Thursday, February 26, 2009
Bluetooth and Nokia PC Suite
Things went from bad to worse, with PC Suite eventually refusing to talk to the phone at all, just giving the message "Cannot authenticate the phone" when trying to pair with it. Moreover, Windows would behave as though the phone were trying to pair with the PC when PC Suite was trying to pair with the phone, asking for a security code (when it should have been the phone asking for a code to match the one given to PC Suite). Installing the very newest drivers from the IBM homepage made things worse still, with bluetooth failing to work at all, giving the message "No local bluetooth device was detected" despite it plainly being found in the device manager, though the "Bluetooth Bus Enumerator" device had disappeared.
To fix this nightmare, I had to uninstall the Thinkpad driver in the device manager, then uninstall PC Suite, "PC Connectivity Solution," "Nokia Connectivity Cable driver," all instances of "Windows Driver Package - Nokia *," and "Thinkpad Bluetooth with Enhanced Data Rate Software" from the "Add/Remove Programs" control panel.
Then I had to run the installation software for the last 5.1 release of the Thinkpad Bluetooth software. This is not the current release; the 5.5 driver version does not work properly with Nokia PC Suite as far as I can tell. Fortunately I still had the 5.1 release on my laptop. I'm not sure if it can still be downloaded from IBM, Broadcom, or Lenovo, or where one would find it if it can.
Then I finally reinstalled PC Suite, and everything works again.
Hopefully this helps others in the same or a similar situation.
Labels: shitware
Thursday, February 12, 2009
Something to think about
Of course they believe that the omniscient sky ghost doesn't want them to masturbate, which of course is why the omniscient sky ghost created human beings with opposable thumbs and conveniently-located genitalia, and of course made it possible for that genitalia to respond to masturbation... because what self-respecting vengeful sky ghost wouldn't damn you to hell for something he or she established.
There is of course absolutely no direct biblical justification for the belief that the Christian God (aka the sky ghost) doesn't want you to masturbate. Often offered up is the story of Onan, who God commanded to fuck his late brother's widow to produce offspring for him. Onan much preferred the bachelor's life of wine, hookers and pot, so he pulled out before shots were fired. For this act of defiance, God killed him. (God loves you.) Somehow this action became intertwined with the idea of masturbation, though strictly speaking this is coitus interruptus, not masturbation. Nonetheless, various languages have variants on the name "onan" for the self-sexual act including the English word "onanism," the Swedish "onanera" and the Hebrew "leo-nen."
That got me to thinking, "what about all this 'no sex before marriage' nonsense?" Is there any biblical justification for that idea? The answer, which may surprise you, is no. Despite a laundry list of prohibited sexual acts in the bible (which include not having sex with both a woman and her daughter and not having sex with a woman who is menstruating) there is nowhere that I can find in the Christian Bible where sex prior to marriage is prohibited or even discouraged. Sex with animals is a bit no-no though; that'll get you and the animal put to death.
(Don't take my word for it. There are many sites with searchable Christian bibles. Go see for yourself!)
Sure, there are a number of references to "sexual immorality," but it's anybody's interpretation what that could mean. To me, sexual immorality suggests sex with dishonesty, sex without consent, or sex by coercion.
But isn't it funny how there are people willing to accept as theological fact that certain sexual acts (like sex before marriage or sex with oneself) are forbidden by an angry sky ghost without any real biblical justification?
Now I'm sure this couldn't have anything to do with a power play by the church at all, right? I mean, the church wouldn't be trying to control its congregants by manipulating who they could have sex with, setting itself up as the arbiter of who can be married while prohibiting sex outside of marriage, would it?
Nah, that'd surely never happen.
Thursday, February 05, 2009
How to get Hibernate parameter bindings and ONLY parameter bindings
With that out of the way, if you search around with Google and look for information on how to get the parameter bindings for SQL statements executed by Hibernate (which brilliantly are not given if you turn on SQL logging; see also: "mule shit"), you'll see a lot of smartass answers like setting
org.hibernate.types=debug
in your log4j configuration.While that configuration change does include the parameter bindings, it also includes a giant shit-pile (mule) of extra data that you probably couldn't possibly care less about, including every time Hibernate binds a return value to a type. These different messages cannot be immediately differentiated by severity or by type (see also: "gimpy").
There is a mostly-workable solution, provided Hibernate has implemented/continues to implement their debugging messages in a consistent fashion:
<appender name="SQLparams" class="org.apache.log4j.ConsoleAppender">
<param name="Target" value="System.out"/>
<param name="Threshold" value="TRACE"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %-5p [%c] - %m%n"/>
</layout>
<filter class="org.apache.log4j.varia.StringMatchFilter">
<param name="StringToMatch" value=" to parameter: " />
<param name="AcceptOnMatch" value="true" />
</filter>
<filter class="org.apache.log4j.varia.DenyAllFilter" />
</appender>
<category name="org.hibernate.type">
<priority value="TRACE"/>
<appender-ref ref="SQLparams" />
</category>
This filters the log4j output of org.hibernate.type.*, including only the lines that contain the text " to parameter: ". This will of course also include constants coming back from your database that include the phrase " to parameter: ", but chances are this will usually be good enough, unless or until Hibernate pries its overinflated head out of its ass.
Labels: hate, log4j, open source, shitware
Monday, February 02, 2009
Marinara 3.1
1 6oz can organic tomato paste (unseasoned)
1.5 cups water
2 tsp oregano
1 tsp basil
pinch rosemary
1 tsp crushed garlic
1/2 tsp chili powder
1/2 tsp lemon juice
1/4 tsp sea salt
2 tsp raw cane sugar
2 tbsp diced onions
2 tsp olive oil
Begin by sauteing the diced onions in the olive oil. Then put all ingredients into a soup pot over low heat. Simmer for at least 30 minutes, stirring frequently.
Crush the rosemary with your fingers or with a mortar & pestil prior to tossing a pinch into the sauce. Rosemary has a very strong flavor, so you only need a pinch.
You can convert this recipe into pizza sauce by either reducing the amount of water, or by mixing 1tsp of corn starch with a little cold water, adding it to the simmering mixture and stirring it for 1-2 minutes before removing it from the heat. You can also mix in 2tsp of parmasean cheese if you like that in your pizza sauce.
Labels: food
Subscribe to Posts [Atom]