<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' version='2.0'><channel><atom:id>tag:blogger.com,1999:blog-6985273540053546202</atom:id><lastBuildDate>Sat, 13 Mar 2010 14:19:56 +0000</lastBuildDate><title>jaroslavklima.com</title><description>blog of a life hacker</description><link>http://www.jaroslavklima.com/blog/</link><managingEditor>noreply@blogger.com (Jaroslav Klíma)</managingEditor><generator>Blogger</generator><openSearch:totalResults>15</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-6985273540053546202.post-4145877067770005692</guid><pubDate>Thu, 26 Nov 2009 14:09:00 +0000</pubDate><atom:updated>2009-11-26T15:10:17.715+01:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>voltage divider</category><category domain='http://www.blogger.com/atom/ns#'>arduino</category><category domain='http://www.blogger.com/atom/ns#'>thermistor</category><category domain='http://www.blogger.com/atom/ns#'>bmw e36</category><title>Converting BMW temperature sensor resistance to degrees Celsius with an IC</title><atom:summary type='text'>The BMW E36 on-board computer uses a temperature sensor mounted in the front bumper. 

The temperature sensor is actually a thermistor with a negative thermal coefficient (NTC thermistor = negistor), meaning that as the temperature rises, its resistance falls.

The sensor was found to be equal to a K164NK004.7 thermistor. The resistances of this thermistor for different temperatures according to </atom:summary><link>http://www.jaroslavklima.com/blog/2009/11/coverting-bmw-temperature-sensor.html</link><author>noreply@blogger.com (Jaroslav Klíma)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-6985273540053546202.post-684393456263167863</guid><pubDate>Mon, 23 Nov 2009 16:37:00 +0000</pubDate><atom:updated>2009-11-23T18:03:07.166+01:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>PCB</category><category domain='http://www.blogger.com/atom/ns#'>net classes</category><category domain='http://www.blogger.com/atom/ns#'>eagle</category><category domain='http://www.blogger.com/atom/ns#'>route width</category><title>Automatic route &amp; drill width in Eagle PCB layout editor</title><atom:summary type='text'>If you look up "the right way to change route widths in Eagle", you will find that you need to - set up different "net classes" in the schematics editor  Edit -&gt; Net classes- set the right class for each net in the schematics editor  Right click -&gt; Properties    or    Change tool -&gt; Class- route the nets in the Layout editorThe problem with this approach is that it does not work :) or at least </atom:summary><link>http://www.jaroslavklima.com/blog/2009/11/automatic-route-drill-width-in-eagle.html</link><author>noreply@blogger.com (Jaroslav Klíma)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-6985273540053546202.post-2370068148825947190</guid><pubDate>Wed, 30 Sep 2009 06:19:00 +0000</pubDate><atom:updated>2009-10-02T10:12:21.551+02:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>64-bit windows</category><category domain='http://www.blogger.com/atom/ns#'>32-bit driver</category><category domain='http://www.blogger.com/atom/ns#'>CH352</category><title>Install a 32-bit driver on 64-bit Windows</title><atom:summary type='text'>Yesterday a found out that my super cheap Chinese PCMCIA-SERIAL adapter didn't come with a driver for x64 based systems. The adapter uses a CH352 chip and the manufacturer of the chip (www.wch.cn) doesn't even have any drivers on the website, let alone provide 64-bit versions.Surprisingly, Microsoft had the answer this time.http://www.microsoft.com/whdc/driver/install/64INF_reqs.mspx#E1G You can </atom:summary><link>http://www.jaroslavklima.com/blog/2009/09/install-32-bit-driver-on-64-bit-windows.html</link><author>noreply@blogger.com (Jaroslav Klíma)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>7</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-6985273540053546202.post-382802508194885389</guid><pubDate>Fri, 31 Jul 2009 23:02:00 +0000</pubDate><atom:updated>2009-08-01T01:32:35.370+02:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>silverlight</category><category domain='http://www.blogger.com/atom/ns#'>ListBoxItem</category><category domain='http://www.blogger.com/atom/ns#'>ItemContainerStyle</category><category domain='http://www.blogger.com/atom/ns#'>IsSelected</category><title>"Binding" to ListBoxItem's IsSelected property from its template in Silverlight</title><atom:summary type='text'>It is not really a binding, but it does the trick:&lt;ListBox Name="MyListBox" ItemContainerStyle="{StaticResource MyListBoxItemStyle}" &gt;&lt;Style x:Key="MyListBoxItemStyle" TargetType="ListBoxItem"&gt;  &lt;Setter Property="Template"&gt;    &lt;Setter.Value&gt;      &lt;ControlTemplate TargetType="ListBoxItem"&gt;        &lt;Border Name="Border" Padding="2" Loaded="Template_Loaded"&gt;</atom:summary><link>http://www.jaroslavklima.com/blog/2009/08/binding-to-listboxitems-isselected.html</link><author>noreply@blogger.com (Jaroslav Klíma)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-6985273540053546202.post-8752156838226509227</guid><pubDate>Tue, 28 Jul 2009 11:51:00 +0000</pubDate><atom:updated>2009-07-29T00:25:21.081+02:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>silverlight</category><category domain='http://www.blogger.com/atom/ns#'>focus</category><title>Focus a Silverlight control on startup</title><atom:summary type='text'>I found two solutions to this problem on the web and neither of them worked for me. I finally combined both of them to make it work:In the aspx page, include&lt;script type="text/javascript"&gt;    window.onload = function()     {         setTimeout(function() { document.getElementById('Xaml1').focus(); }, 1);     }&lt;/script&gt;And then in Page.cs class as a response to Loaded event:Dispatcher.BeginInvoke(</atom:summary><link>http://www.jaroslavklima.com/blog/2009/07/focus-silverlight-control-on-startup.html</link><author>noreply@blogger.com (Jaroslav Klíma)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-6985273540053546202.post-6447781499278972385</guid><pubDate>Sun, 05 Jul 2009 13:16:00 +0000</pubDate><atom:updated>2010-03-13T15:19:56.857+01:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>windows 7</category><category domain='http://www.blogger.com/atom/ns#'>visual studio 2008</category><category domain='http://www.blogger.com/atom/ns#'>double quotes</category><title>Double quotes problem in Windows 7</title><atom:summary type='text'>EDIT: Due to big popularity of this post, let me put the solution on top:

If you have a problem with quotes in Windows 7, try to switch the keyboard layout from "United States - International" to "US"
After changing the keyboard layout, you may need to restart your programs or the computer.

ORIGINAL POST:

After installing Windows 7 and Visual Studio 2008, I discovered the following behavior in</atom:summary><link>http://www.jaroslavklima.com/blog/2009/07/double-quotes-problem-in-windows-7.html</link><author>noreply@blogger.com (Jaroslav Klíma)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>27</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-6985273540053546202.post-7034906256141959586</guid><pubDate>Tue, 17 Mar 2009 08:59:00 +0000</pubDate><atom:updated>2009-03-17T11:54:16.212+01:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>steering wheel</category><category domain='http://www.blogger.com/atom/ns#'>multifunction</category><category domain='http://www.blogger.com/atom/ns#'>e36</category><category domain='http://www.blogger.com/atom/ns#'>MFL</category><category domain='http://www.blogger.com/atom/ns#'>bmw</category><category domain='http://www.blogger.com/atom/ns#'>retrofit</category><title>BMW E36 multi-function steering wheel retrofit</title><atom:summary type='text'>The leather on my old steering wheel looked really worn, so I started looking for a new wheel. New leather would be an option if the steering wheel looked better, but an old 4-spoke without the BMW badge is not something very aesthetic...On the other hand, for some reason I don't really like 3-spoke wheels, which left me with a single option - a 4-spoke wheel from a newer E36.I started searching </atom:summary><link>http://www.jaroslavklima.com/blog/2009/03/bmw-e36-multi-function-steering-wheel.html</link><author>noreply@blogger.com (Jaroslav Klíma)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>12</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-6985273540053546202.post-4609353943313012240</guid><pubDate>Tue, 03 Feb 2009 20:11:00 +0000</pubDate><atom:updated>2009-02-04T10:14:27.004+01:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>silverlight</category><title>Silverlight: generic.xaml &amp; OnApplyTemplate issues</title><atom:summary type='text'>In Silverlight, unlike WPF, the overriden OnApplyTemplate() method usually (but not always) gets called AFTER the Loaded event handler. This can be a source of many issues since you usually expect your control to fully load before handling the Loaded event. To prevent this behavior, you can call ApplyTemplate() within the body of the Loaded event handler, which will load the control template </atom:summary><link>http://www.jaroslavklima.com/blog/2009/02/silverlight-genericxaml-onapplytemplate.html</link><author>noreply@blogger.com (Jaroslav Klíma)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-6985273540053546202.post-355488870740322413</guid><pubDate>Thu, 15 Jan 2009 09:46:00 +0000</pubDate><atom:updated>2009-01-15T10:58:02.776+01:00</atom:updated><title>Jak získat 1000kč v Sazce bez rizika (když 1800kč už nefunguje)</title><atom:summary type='text'>Dne 15.1.2009 ráno Sazka změnila podmínky pro zisk bonusu 2000kč za vytvoření konta, čímž znemožnila využití postupu který jsem popisoval před několika dny.Nevím jestli to Sazka dělá schválně, nebo jde o chytrý marketingový tah, ale i po změně pravidel umožnili nově registrovaným bez rizika vydělat. Postup je následující.1) Vyplnit registrační formulář na internetu2) Odnést vygenerované číslo a </atom:summary><link>http://www.jaroslavklima.com/blog/2009/01/jak-zskat-1000k-v-sazce-bez-rizika-kdy.html</link><author>noreply@blogger.com (Jaroslav Klíma)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-6985273540053546202.post-7893875353905050501</guid><pubDate>Tue, 13 Jan 2009 13:33:00 +0000</pubDate><atom:updated>2009-01-13T14:40:58.892+01:00</atom:updated><title>Mirror of http://www.openbmw.org/bus</title><atom:summary type='text'>       I-Bus Protocol       CREDITS: The I-Bus was originally reverse-engineered by Thomas           L. Wood for the MPorty/Cajun           MP3 Project. This was           his original write-up of it. Richard           Naninck performed additional research and wrote the first general-purpose           I-Bus message decoder for intercepting Video Module messages. Ed           Anuff identified the </atom:summary><link>http://www.jaroslavklima.com/blog/2009/01/mirror-of-httpwwwopenbmworgbus.html</link><author>noreply@blogger.com (Jaroslav Klíma)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-6985273540053546202.post-1253278712592560887</guid><pubDate>Sun, 11 Jan 2009 20:29:00 +0000</pubDate><atom:updated>2009-01-15T10:36:51.060+01:00</atom:updated><title>Jak získat 1800kč v Sazce bez rizika</title><atom:summary type='text'>Pozor, k 15.1.2009 Sazka změnila podmínky, takže následující postup již nefunguje!Následující postup jsem sice nevymyslel, ale mohu z vlastní zkušenosti potvrdit, že funguje. Pozor, akce trvá jen do 31.1.2009Na stránce www.e-sazka.cz běží akce 2000 bonusových bodů. Nevím jestli se jedná o omyl nebo úmysl, ale následujícím postupem lze bezbolestně tyto body zaměnit za 1800kč.1) Vyplnit registrační</atom:summary><link>http://www.jaroslavklima.com/blog/2009/01/jak-zskat-1800k-v-sazce-bez-rizika.html</link><author>noreply@blogger.com (Jaroslav Klíma)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-6985273540053546202.post-2114293749072848411</guid><pubDate>Tue, 06 Jan 2009 15:01:00 +0000</pubDate><atom:updated>2009-01-06T18:48:14.276+01:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>bmw</category><category domain='http://www.blogger.com/atom/ns#'>dashboard</category><title>BMW E36 coupe dashboard retrofit</title><atom:summary type='text'>I have spent a lot of time in the garage over Christmas, working on my car. The temperature in the garage was constantly less then 3°C, but otherwise it was very relaxing. The point of me almost freezing to death was to upgrade the old half grey dashboard in my 3er to a better looking all black dash that BMW put in these cars after the facelift. While having the dash off, I also decided it was a </atom:summary><link>http://www.jaroslavklima.com/blog/2009/01/bmw-e36-coupe-dashboard-retrofit.html</link><author>noreply@blogger.com (Jaroslav Klíma)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>2</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-6985273540053546202.post-7005631774751411196</guid><pubDate>Wed, 31 Dec 2008 02:43:00 +0000</pubDate><atom:updated>2008-12-31T03:55:19.744+01:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>notebook</category><category domain='http://www.blogger.com/atom/ns#'>dvd-rw</category><title>New DVD drive in notebook doesn't work (+ fix)</title><atom:summary type='text'>I had to replace the DVD-RW drive in one of our notebooks today. It is the older IDE/ATAPI type. When I plugged the drive into the laptop, it would not boot and BIOS kept displaying that- The hard disk is S.M.A.R.T. capable, but command failed- There is no DVD drive- Boot from hard drive failedIt turned out that the new DVD-RW had a different Master/Slave/Cable option selected than the original </atom:summary><link>http://www.jaroslavklima.com/blog/2008/12/new-dvd-drive-in-notebook-doesnt-work.html</link><author>noreply@blogger.com (Jaroslav Klíma)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-6985273540053546202.post-3800479305590461494</guid><pubDate>Mon, 29 Dec 2008 00:57:00 +0000</pubDate><atom:updated>2008-12-29T02:10:49.566+01:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>firefox</category><title>Websites turn pink in Firefox</title><atom:summary type='text'>I don't know when it happened exactly, but over the last couple of days I have noticed that some websites have turned pink in my browser. Most notably, my Google Reader is now blue, white and pink.Even the websites I have created myself are now part pink. It doesn't happen in IE, only in Firefox. The color settings in Firefox are just fine, the default background color is still set to white and I</atom:summary><link>http://www.jaroslavklima.com/blog/2008/12/websites-turn-pink-in-firefox.html</link><author>noreply@blogger.com (Jaroslav Klíma)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-6985273540053546202.post-4810065935489100688</guid><pubDate>Fri, 26 Dec 2008 03:34:00 +0000</pubDate><atom:updated>2009-06-29T20:24:21.226+02:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>xps</category><category domain='http://www.blogger.com/atom/ns#'>wpf</category><category domain='http://www.blogger.com/atom/ns#'>silverlight</category><category domain='http://www.blogger.com/atom/ns#'>asp.net</category><title>Generating and downloading an XPS document using ASP.NET</title><atom:summary type='text'>Windows Presentation Foundation includes a new API for generating XPS documents. This article describes the steps involved in generating an XPS document on the server side of an ASP.NET web application using WPF and sending the resulting document to the client browser.  What we need to do is create a flow document, convert it to XPS and send it to the client.   Step 1 - Creating a FlowDocument on</atom:summary><link>http://www.jaroslavklima.com/blog/2008/12/generating-downloading-xps-document.html</link><author>noreply@blogger.com (Jaroslav Klíma)</author><thr:total xmlns:thr='http://purl.org/syndication/thread/1.0'>0</thr:total></item></channel></rss>