<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Vaidas Sirtautas Blog</title>
	<atom:link href="http://sadiav.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sadiav.wordpress.com</link>
	<description>This is my personal blog, describing stuff that I am working on.</description>
	<lastBuildDate>Sat, 21 Jan 2012 16:08:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='sadiav.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/1dfa05d1a767dbaf06aedb0232a6e842?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Vaidas Sirtautas Blog</title>
		<link>http://sadiav.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://sadiav.wordpress.com/osd.xml" title="Vaidas Sirtautas Blog" />
	<atom:link rel='hub' href='http://sadiav.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Project LIBMS: Li-Ion Battery Monitoring System</title>
		<link>http://sadiav.wordpress.com/2011/04/29/projectlibms/</link>
		<comments>http://sadiav.wordpress.com/2011/04/29/projectlibms/#comments</comments>
		<pubDate>Fri, 29 Apr 2011 03:15:50 +0000</pubDate>
		<dc:creator>sadiav</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sadiav.wordpress.com/?p=168</guid>
		<description><![CDATA[LIBMS by Vaidas Sirtautas is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License. Permissions beyond the scope of this license may be available at http://sadiav.wordpress.com Video or you can watch in HD on Youtube. Problem Let&#8217;s start with a problem&#8230; In order to have my phone as well as my BlueTooth audio headset working [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadiav.wordpress.com&amp;blog=13959835&amp;post=168&amp;subd=sadiav&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<pre><a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" rel="license"><img class="aligncenter" style="border-width:0;" src="http://i.creativecommons.org/l/by-nc-sa/3.0/88x31.png" alt="Creative Commons License" /></a>LIBMS by <a href="http://sadiav.wordpress.com" rel="cc:attributionURL">Vaidas Sirtautas</a> is licensed under a
<a href="http://creativecommons.org/licenses/by-nc-sa/3.0/" rel="license">Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License</a>.
 Permissions beyond the scope of this license may be available
at <a href="http://sadiav.wordpress.com" rel="cc:morePermissions">http://sadiav.wordpress.com</a></pre>
<h1 style="text-align:justify;"><a href="http://sadiav.files.wordpress.com/2011/04/libms_box.jpg" target="_blank"><img class="size-medium wp-image-201 aligncenter" title="LIBMS_BOX" src="http://sadiav.files.wordpress.com/2011/04/libms_box.jpg?w=300&#038;h=238" alt="" width="300" height="238" /></a></h1>
<h1 style="text-align:justify;">Video</h1>
<span style="text-align:center; display: block;"><a href="http://sadiav.wordpress.com/2011/04/29/projectlibms/"><img src="http://img.youtube.com/vi/HBbuaKSKX1I/2.jpg" alt="" /></a></span>
<p>or you can watch in HD <a title="LIBMS on Youtube in HD" href="http://youtu.be/HBbuaKSKX1I?hd=1" target="_blank">on Youtube</a>.</p>
<h1 style="text-align:justify;">Problem</h1>
<p style="text-align:justify;">Let&#8217;s start with a problem&#8230;</p>
<p style="text-align:justify;">In order to have my phone as well as my BlueTooth audio headset working I had to carry two different chargers to workplace.  Moreover, I needed to find an unused socket to plug them in. And that&#8217;s really annoying&#8230;</p>
<h1 style="text-align:justify;">Idea</h1>
<p style="text-align:justify;">I could see two possible solutions:</p>
<ul style="text-align:justify;">
<li>Buy a charger that uses batteries and provides 5V to charge my devices</li>
<li>Build one of my own</li>
</ul>
<p style="text-align:justify;">And, of course, I went with choice #2. I had some Lithium Ion batteries lying around. And this was the starting point of <strong>LIBMS</strong>.</p>
<h1 style="text-align:justify;">LIBMS</h1>
<p style="text-align:justify;">It would be crazy to just power devices through some voltage regulator. LiIon cells do not like to be discharged below 3V and without some additional circuitry it was impossible to check whether they were OK to continue providing power to the devices. (Well, I could carry a multimeter and measure each of them from time to time, but that would be crazy <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</p>
<p style="text-align:justify;">I found some IC&#8217;s that are capable of monitoring LiIon batteries, but where&#8217;s the fun in that&#8230;</p>
<p style="text-align:justify;">I had some Atmega328 chips laying around. They have a 6 channel 10-bit ADC (there is actually only one ADC, but built-in multiplexer expands the inputs to 6). Awesome.</p>
<h2>Batteries</h2>
<p style="text-align:justify;">I connected 3 of the batteries in series and then that block with another block of three batteries in parallel. V1..V6 show my tap points that are used to measure each cells voltage. E.g.</p>
<ul>
<li>V(G2) = V2 &#8211; V1</li>
<li>V(G3) = V6 &#8211; V(G2)</li>
<li>&#8230;</li>
<li>V(G6) = V6 &#8211; V(G5)</li>
</ul>
<p><a href="http://sadiav.files.wordpress.com/2011/04/batteryconnection.jpg"><img class="aligncenter size-medium wp-image-177" title="BatteryConnection" src="http://sadiav.files.wordpress.com/2011/04/batteryconnection.jpg?w=300&#038;h=169" alt="Batteries are connected this way" width="300" height="169" /></a></p>
<h2>Voltage regulators</h2>
<p style="text-align:justify;">At the beginning of this project I had some problems with voltage regulation. I powered the microcontroller (<em>uC</em>) directly from the main voltage regulator (LM338), but when a device was connected that requires a lot of current the voltage suddenly dropped and uC restarted. Not good&#8230;</p>
<p style="text-align:justify;">I solved this problem by introducing secondary LM7805 voltage regulator that is used to power the uC and LM338 takes care of the USB ports. Using this structure provided me with a cool way for controlling the USB ports from uC.</p>
<p style="text-align:justify;">Browsing through the LM338&#8242;s data-sheet I found an example where the regulator can be controller using a TTL signal. Perfect. Even though it does not shut down completely (there is still ~1.25V on the output), it does the job.</p>
<h2 style="text-align:justify;">Sensing part</h2>
<p style="text-align:justify;">Because Atmega328 can measure up to 5V max, I had to scale down the voltages of the cells. To do that I used voltage dividers. There are 5 of them, connected to ports A0..A4. Resistors (with values specified) are R1..R10 in the schematic.</p>
<h2>Schematic &amp; PCB layout</h2>
<p><a href="http://sadiav.files.wordpress.com/2011/04/libms_schematic.jpg"><img class="aligncenter size-medium wp-image-182" title="LIBMS_Schematic" src="http://sadiav.files.wordpress.com/2011/04/libms_schematic.jpg?w=300&#038;h=172" alt="" width="300" height="172" /></a></p>
<p><a href="http://sadiav.files.wordpress.com/2011/04/libms_pcb.jpg"><img class="aligncenter size-medium wp-image-183" title="LIBMS_PCB" src="http://sadiav.files.wordpress.com/2011/04/libms_pcb.jpg?w=300&#038;h=220" alt="" width="300" height="220" /></a></p>
<p style="text-align:center;"><em>*Click on the images for hi-res version.</em></p>
<p style="text-align:left;">There is a 10K pull-up resistor (not shown in schematic) connected from BC337 base to Vcc to ensure that Voltage regulator stays off while uC is starting up.</p>
<h2 style="text-align:left;">Code</h2>
<p><em>This code was written using Arduino IDE (www.arduino.cc)</em></p>
<p><pre class="brush: cpp;">
int analogValues [5];
int voltages[6];

unsigned char i; // Loop variable
byte LEDs = 0;
byte tempLEDs = 0;
boolean turnOn = true;
boolean updated = false;
boolean firstrun = true;
byte portVal;

byte LEDstates[] = {
0xFF, 0xDF, 0x9F, 0x1F, 0x0F, 0x07, 0x03, 0x01, 0x00};

void setup()
{
// Set Transistor's pin to output
pinMode(8, OUTPUT);
digitalWrite(8, HIGH);

// Set LED pins to outputs
pinMode(5, OUTPUT);
pinMode(6, OUTPUT);
pinMode(7, OUTPUT);
pinMode(9, OUTPUT);
pinMode(10, OUTPUT);
pinMode(11, OUTPUT);
pinMode(12, OUTPUT);
pinMode(13, OUTPUT);

// Set analog inputs
pinMode(A0, INPUT);
pinMode(A1, INPUT);
pinMode(A2, INPUT);
pinMode(A3, INPUT);
pinMode(A4, INPUT);

// Disable Pull-up resistors on analog pins
digitalWrite(A0, LOW);
digitalWrite(A1, LOW);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
digitalWrite(A4, LOW);

for (i = 0; i &lt; 9; i++)
{
tempLEDs = LEDstates[i];
updateLEDs();
delay(500);
}
delay(1000);
}

void updateLEDs()
{
PORTD = (PORTD &amp; 0x1F) | (tempLEDs &amp; 0xE0);
PORTB = (PORTB &amp; 0xC1) | ((tempLEDs &amp; 0x1F) &lt;&lt; 1);
}

// Scale because of voltage divider by 2.624
void loop()
{
if (turnOn &amp;&amp; updated)
{
digitalWrite(8, LOW);
updated = false;
}
if (!turnOn &amp;&amp; updated)
{
// Serial.println(&quot;turn OFF&quot;);
digitalWrite(8, HIGH);
updated = false;
}

// Read status of all batteries
for (i = 0; i &lt; 5; i++)
{
analogValues[i] = analogRead(i);
delay(10);
}

voltages[0] = analogValues[4];
voltages[1] = analogValues[3] - voltages[0];
voltages[2] = analogValues[2] - voltages[1] - voltages[0];
voltages[3] = analogValues[1];
voltages[4] = analogValues[0] - voltages[3];
voltages[5] = analogValues[2] - voltages[4] - voltages [3];

// Take care of low voltage per cell situations
//  Minimum threshold for a cell is 3.0V.
// Minimum value is 3/(5/1024) = 614.4
// Scaled because of voltage divider by 2.624,
//   so 3V = 614/2.624 = 234 units
boolean stopLoop = false;
i = 0;
while ( i &lt; 6 &amp;&amp; !stopLoop)
{
if (voltages[i] &lt; 234)
{
stopLoop = true;
turnOn = false;
updated = true;
digitalWrite(8, LOW);
// Enter infinite
loop while (1) { };
}
i++;
}
//Serial.println(analogValues[2], DEC);
// Take care of LED's
if (analogValues[2] &gt; 920) // 11.8V
tempLEDs = LEDstates[0];
else
if (analogValues[2] &gt; 889) // 11.4V
tempLEDs = LEDstates[1];
else
if (analogValues[2] &gt; 858) // 11.0V
tempLEDs = LEDstates[2];
else
if (analogValues[2] &gt; 827) // 10.6V
tempLEDs = LEDstates[3];
else
if (analogValues[2] &gt; 796) // 10.2V
tempLEDs = LEDstates[4];
else
if (analogValues[2] &gt; 765) // 9.8V
tempLEDs = LEDstates[5];
else
if (analogValues[2] &gt; 734) // 9.4V
tempLEDs = LEDstates[6];
else
tempLEDs = LEDstates[7];

// Something changed in total battery voltage
if (LEDs != tempLEDs)
{
LEDs = tempLEDs;
updateLEDs();

/* My old idea...

// First three LED's
tempLEDs = tempLEDs &gt;&gt; 5; // Right shift by 5 to get first three bits
tempLEDs = tempLEDs &lt;&lt; 5;

portVal = PORTD;
portVal = portVal &lt;&lt; 3; // Right shift to get rid of last three bits; portVal = portVal &gt;&gt; 3; // Left shift to restore first 5 bits to their positions
PORTD = portVal | tempLEDs;

// Restore temp value that changed because of all the shifting
tempLEDs = LEDs;

// Last five LED's
portVal = PORTB;
tempLEDs = tempLEDs &lt;&lt; 3; // get rid of first three bits tempLEDs = tempLEDs &gt;&gt; 2; // position temp byte correctly

if (turnOn) tempLEDs = tempLEDs | 1;
PORTB = tempLEDs;

// Restore temp value that changed because of all the shifting
tempLEDs = LEDs;
*/

}

if (firstrun)
{
updated = true;
turnOn = true;
firstrun=false;
}

// Delay before next run
delay(1000);
}

 </pre></p>
<h2>Eagle files</h2>
<p><em>Will be uploaded later</em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sadiav.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sadiav.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sadiav.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sadiav.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sadiav.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sadiav.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sadiav.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sadiav.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sadiav.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sadiav.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sadiav.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sadiav.wordpress.com/168/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sadiav.wordpress.com/168/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sadiav.wordpress.com/168/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadiav.wordpress.com&amp;blog=13959835&amp;post=168&amp;subd=sadiav&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sadiav.wordpress.com/2011/04/29/projectlibms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/786f9e4f84ec18bb88bb83baab956e68?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sadiav</media:title>
		</media:content>

		<media:content url="http://i.creativecommons.org/l/by-nc-sa/3.0/88x31.png" medium="image">
			<media:title type="html">Creative Commons License</media:title>
		</media:content>

		<media:content url="http://sadiav.files.wordpress.com/2011/04/libms_box.jpg?w=300" medium="image">
			<media:title type="html">LIBMS_BOX</media:title>
		</media:content>

		<media:content url="http://sadiav.files.wordpress.com/2011/04/batteryconnection.jpg?w=300" medium="image">
			<media:title type="html">BatteryConnection</media:title>
		</media:content>

		<media:content url="http://sadiav.files.wordpress.com/2011/04/libms_schematic.jpg?w=300" medium="image">
			<media:title type="html">LIBMS_Schematic</media:title>
		</media:content>

		<media:content url="http://sadiav.files.wordpress.com/2011/04/libms_pcb.jpg?w=300" medium="image">
			<media:title type="html">LIBMS_PCB</media:title>
		</media:content>
	</item>
		<item>
		<title>Nexus One: Gingerbread update</title>
		<link>http://sadiav.wordpress.com/2011/02/28/nexus-one-gingerbread-update/</link>
		<comments>http://sadiav.wordpress.com/2011/02/28/nexus-one-gingerbread-update/#comments</comments>
		<pubDate>Mon, 28 Feb 2011 01:24:51 +0000</pubDate>
		<dc:creator>sadiav</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[2.3.3]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[Gingerbread]]></category>
		<category><![CDATA[whole-drive signature]]></category>

		<guid isPermaLink="false">http://sadiav.wordpress.com/?p=121</guid>
		<description><![CDATA[Intro Gingerbread is finally out for Nexus One&#8230; And, of course, I could not wait for OTA update&#8230; So, after short discussion with myself decision was made to update manually&#8230; Everything is not as easy as it seems&#8230; Unfortunately everything did not go as smoothly as I expected. First of all, trying to update my [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadiav.wordpress.com&amp;blog=13959835&amp;post=121&amp;subd=sadiav&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h1>Intro</h1>
<p>Gingerbread is finally out for Nexus One&#8230; And, of course, I could not wait for OTA update&#8230; So, after short discussion with myself decision was made to update manually&#8230;</p>
<h1>Everything is not as easy as it seems&#8230;</h1>
<p>Unfortunately everything did not go as smoothly as I expected. First of all, trying to update my Nexus One (stock, unrooted and without unlocked boot-loader) running Android 2.2.1 through recovery mode always gave me that annoying &#8220;<em>E:failed to verify whole-file signature</em>&#8221; error message. Tried maybe 10 times. After googling a bit I found out that I cannot update directly from 2.2.1 to the latest Gingerbread (2.3.3). Then I tried to update to 2.2.2. The same problem&#8230; Verification of the whole-file signature failed again.</p>
<p>More googling <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>After reading through a lot of tutorials I came to <a title="xda-developers forum" href="http://forum.xda-developers.com/showthread.php?t=965478" target="_blank">xda-developers forum</a>. They provided some guidelines, but the tutorial was not complete. Every try resulted in &#8220;<em>E:failed to verify whole-file signature</em>&#8220;. I did not want to unlock the boot-loader, so the search continued&#8230;</p>
<p>On the forum there was a link about how to prepare N1 for Gingerbread. And this was the starting bit that was needed to move the process forward.</p>
<h3><span style="color:#ff0000;">NOTE: Going through the following steps will delete all you info from the phone!</span> BACK UP FIRST!</h3>
<h1>The tutorial</h1>
<h2>Installation process can be followed on the video <a title="http://www.youtube.com/watch?v=YEsHI-YE1WM" href="http://www.youtube.com/watch?v=YEsHI-YE1WM">here</a></h2>
<p><span style="text-align:center; display: block;"><a href="http://sadiav.wordpress.com/2011/02/28/nexus-one-gingerbread-update/"><img src="http://img.youtube.com/vi/YEsHI-YE1WM/2.jpg" alt="" /></a></span> (watch on Youtube in high-quality)</p>
<h3>Step One (from <a title="Android central" href="http://forum.androidcentral.com/google-nexus-one/43398-how-prep-nexus-one-gingerbread.html" target="_blank">androidcentral forum</a>)</h3>
<p><a title="youtube" href="http://www.youtube.com/watch?v=YEsHI-YE1WM&amp;t=38" target="_blank">Video part: 00:38-03:04</a></p>
<p>I had to restore Android 2.2 on the phone before moving to 2.3.3. To do that I:</p>
<ul>
<li>Downloaded Passion-FRG33.zip ROM file from <a title="http://www.mediafire.com/?dxwh5l4b5ygh6nf" href="http://www.mediafire.com/?dxwh5l4b5ygh6nf" target="_blank">here</a>.</li>
<li>Renamed it <strong>PASSIMG.zip</strong>. (must be exact name!)</li>
<li>Placed PASSIMG.zip to the root of my SD card on the phone.</li>
<li>Turned off the phone.</li>
<li>Then I had to turn on the phone while holding VOLUME DOWN button (hold down the button and press power button)</li>
<li>Phone found the PASSIMG.zip file and by Accepting the install (click VOLUME UP) I got it installed</li>
</ul>
<h3>Step Two (from <a title="http://forum.xda-developers.com/showthread.php?t=965478" href="http://forum.xda-developers.com/showthread.php?t=965478" target="_blank">xda-dev forum</a>)</h3>
<p><a title="youtube" href="http://www.youtube.com/watch?v=YEsHI-YE1WM&amp;t=185" target="_blank">Video part: 03:05-10:21</a> (for some reason the video starts again after 10:21. Please just ignore it <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<ul>
<li>Downloaded the full 2.3.3 ROM from Google. <a title="http://android.clients.google.com/packages/ota/passion/656099b119f8.signed-passion-ota-102588.656099b1.zip" href="http://android.clients.google.com/packages/ota/passion/656099b119f8.signed-passion-ota-102588.656099b1.zip" target="_blank">Link here</a>.</li>
<li>Deleted the PASSIMG.zip file from the card. (<em>&lt;&#8211;IMPORTANT!!</em>)</li>
<li>Renamed the &#8220;<em>656099b119f8.signed-passion-ota-102588.656099b1.zip</em>&#8221; to <strong>update.zip</strong> (must be exact name!).</li>
<li>Copied it to root folder of my SD card. (SD_card/update.zip)</li>
<li>Turned off the phone.</li>
<li>Turned on the phone while pushing the <strong>trackball&#8217;s button</strong> down.</li>
<li>Selected<strong> BOOTLOADER-&gt; RECOVERY</strong> on the screen with the skating Androids.</li>
<li>Phone restarted and when <strong>Exclamation symbol</strong> appeared I pushed  <strong>Power</strong> and <strong>Volume Up</strong> buttons. (At the same time!!! Might take several tries)</li>
<li>Screen appeared where I, using trackball, selected &#8220;<strong>apply sdcard:update.zip</strong>&#8220;</li>
</ul>
<h1>Video</h1>
<p>I created a &#8220;short&#8221; video about this update process. It shows update process in real time, so you&#8217;d have a reference point to see how long everything takes.</p>
<p>BTW, I guess I over-edited the video a bit too much&#8230; The actual error   screen is not shown <img src='http://s0.wp.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />   Please take a look at <a title="http://www.youtube.com/watch?v=h2R5dor6hWE" href="http://www.youtube.com/watch?v=h2R5dor6hWE">this video</a> if interested.</p>
<p>Step ONE: <a href="http://www.youtube.com/watch?v=YEsHI-YE1WM&amp;t=38#"><span style="color:#000000;">00:38</span></a><span style="color:#000000;">-</span><a href="http://www.youtube.com/watch?v=YEsHI-YE1WM&amp;t=38#"><span style="color:#000000;">03:04</span></a> (installation more or less in real time)<br />
Step TWO: <a href="http://www.youtube.com/watch?v=YEsHI-YE1WM&amp;t=38#"><span style="color:#000000;">03:05</span></a><span style="color:#000000;">-</span><a href="http://www.youtube.com/watch?v=YEsHI-YE1WM&amp;t=38#"><span style="color:#000000;">10:21</span></a> (installation in real time)</p>
<h1>The End</h1>
<p>Please feel free to comment and ask questions.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sadiav.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sadiav.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sadiav.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sadiav.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sadiav.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sadiav.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sadiav.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sadiav.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sadiav.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sadiav.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sadiav.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sadiav.wordpress.com/121/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sadiav.wordpress.com/121/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sadiav.wordpress.com/121/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadiav.wordpress.com&amp;blog=13959835&amp;post=121&amp;subd=sadiav&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sadiav.wordpress.com/2011/02/28/nexus-one-gingerbread-update/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/786f9e4f84ec18bb88bb83baab956e68?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sadiav</media:title>
		</media:content>
	</item>
		<item>
		<title>Music Box Thingy: a rotary sequencer v1.0</title>
		<link>http://sadiav.wordpress.com/2011/02/10/musicbox_culturebox/</link>
		<comments>http://sadiav.wordpress.com/2011/02/10/musicbox_culturebox/#comments</comments>
		<pubDate>Thu, 10 Feb 2011 08:00:33 +0000</pubDate>
		<dc:creator>sadiav</dc:creator>
				<category><![CDATA[Electronics]]></category>
		<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://sadiav.wordpress.com/?p=73</guid>
		<description><![CDATA[Intro This post is about a fourth semester project that our group did. The project was featured in Roskilde 2010 Festival. I was responsible for electronics part of the product. Everything started form an idea&#8230; Decision was made to create something that would make it easier for people to &#8220;break the ice&#8221;. There were several [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadiav.wordpress.com&amp;blog=13959835&amp;post=73&amp;subd=sadiav&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h1>Intro</h1>
<p>This post is about a fourth semester project that our group did. The project was featured in Roskilde 2010 Festival. I was responsible for electronics part of the product.</p>
<h1>Everything started form an idea&#8230;</h1>
<p>Decision was made to create something that would make it easier for people to &#8220;break the ice&#8221;. There were several iterations of the product till Music Box was born. We decided on creating a rotary sequencer. There were two versions that were used for real-world testing.</p>
<h1>Implementation&#8230; v1.0</h1>
<p><strong><a href="http://sadiav.files.wordpress.com/2011/02/mb1_topexplanation.jpg"><img class="aligncenter size-medium wp-image-90" title="MB1_topExplanation" src="http://sadiav.files.wordpress.com/2011/02/mb1_topexplanation.jpg?w=300&#038;h=255" alt="" width="300" height="255" /></a><br />
</strong></p>
<p>First test was done in a club called <a href="http://www.culture-box.com/">Culture Box</a>.  This is where the first iteration of the Music Box v1.0 was used. It has a really simple design. Activation of the steps is done by some push-buttons with levers. Levers move and push a button when a can is inserted into a hole.</p>
<p><a href="http://sadiav.files.wordpress.com/2011/02/mb1_btnlever.jpg"><img class="aligncenter size-medium wp-image-86" title="MB1_btnlever" src="http://sadiav.files.wordpress.com/2011/02/mb1_btnlever.jpg?w=300&#038;h=210" alt="" width="300" height="210" /></a></p>
<p><a href="http://sadiav.files.wordpress.com/2011/02/mb1_top_withcansandlegsandpots.jpg"><img class="aligncenter size-medium wp-image-89" title="MB1_top_withCansAndLegsAndPots" src="http://sadiav.files.wordpress.com/2011/02/mb1_top_withcansandlegsandpots.jpg?w=300&#038;h=225" alt="" width="300" height="225" /></a>There are 32 holes in total (four instruments with 8 steps in each). This means that input from 32 buttons had to be gathered. We decided on using multiplexers this way expanding possible input count on Arduino.<a href="http://sadiav.files.wordpress.com/2011/02/mb1_muxes.jpg"><img class="aligncenter size-medium wp-image-87" title="MB1_Muxes" src="http://sadiav.files.wordpress.com/2011/02/mb1_muxes.jpg?w=300&#038;h=298" alt="" width="300" height="298" /></a></p>
<p>There were four of these boards because each has 8 inputs that are sent through 1 channel (in normal words it is 8:1 mux).</p>
<p>For indicating which step the sequencer was on we used LED&#8217;s that went from the inside of the circle to the outer most hole.</p>
<p><a href="http://sadiav.files.wordpress.com/2011/02/mb1_withleds.jpg"><img class="aligncenter size-medium wp-image-91" title="MB1_WithLeds" src="http://sadiav.files.wordpress.com/2011/02/mb1_withleds.jpg?w=300&#038;h=266" alt="" width="300" height="266" /></a>LED&#8217;s are controlled by Arduino via serial-in-parallel-out shift register.</p>
<p><a href="http://sadiav.files.wordpress.com/2011/02/mb1_shiftreg.jpg"><img class="aligncenter size-medium wp-image-88" title="MB1_ShiftReg" src="http://sadiav.files.wordpress.com/2011/02/mb1_shiftreg.jpg?w=300&#038;h=199" alt="" width="300" height="199" /></a></p>
<h1>Testing</h1>
<p>Now some photos from the Culture Box&#8230;</p>
<p><a href="http://sadiav.files.wordpress.com/2011/02/mb1_atculturebox.jpg"><img class="aligncenter size-medium wp-image-83" title="MB1_AtCultureBox" src="http://sadiav.files.wordpress.com/2011/02/mb1_atculturebox.jpg?w=300&#038;h=264" alt="" width="300" height="264" /></a></p>
<p><a href="http://sadiav.files.wordpress.com/2011/02/mb1_atculturebox2.jpg"><img class="aligncenter size-medium wp-image-84" title="MB1_AtCultureBox2" src="http://sadiav.files.wordpress.com/2011/02/mb1_atculturebox2.jpg?w=221&#038;h=300" alt="" width="221" height="300" /></a></p>
<p>And this is me deeply thinking about how well it works <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><a href="http://sadiav.files.wordpress.com/2011/02/mb1_atcultureboxmedeepthoughts.jpg"><img class="aligncenter size-medium wp-image-85" title="MB1_AtCultureBoxMeDeepThoughts" src="http://sadiav.files.wordpress.com/2011/02/mb1_atcultureboxmedeepthoughts.jpg?w=200&#038;h=300" alt="" width="200" height="300" /></a></p>
<h1>Videos</h1>
<pre><em>Do not forget to watch in High Quality...</em></pre>
<p>Exam presentation video</p>
<span style="text-align:center; display: block;"><a href="http://sadiav.wordpress.com/2011/02/10/musicbox_culturebox/"><img src="http://img.youtube.com/vi/WP6dJJt2aO0/2.jpg" alt="" /></a></span>
<p>Stress testing Music Box</p>
<span style="text-align:center; display: block;"><a href="http://sadiav.wordpress.com/2011/02/10/musicbox_culturebox/"><img src="http://img.youtube.com/vi/aCp3vysw10I/2.jpg" alt="" /></a></span>
<p>Inserting LED&#8217;s</p>
<span style="text-align:center; display: block;"><a href="http://sadiav.wordpress.com/2011/02/10/musicbox_culturebox/"><img src="http://img.youtube.com/vi/_CLIhsCrhuY/2.jpg" alt="" /></a></span>
<p>Pitch for RedBull</p>
<span style="text-align:center; display: block;"><a href="http://sadiav.wordpress.com/2011/02/10/musicbox_culturebox/"><img src="http://img.youtube.com/vi/kLzTgeH9M24/2.jpg" alt="" /></a></span>
<p>More photos can be found on my facebook page: <a title="FB page" href="https://www.facebook.com/album.php?aid=2046676&amp;id=1025350161&amp;l=3af7249acd" target="_blank">https://www.facebook.com/album.php?aid=2046676&amp;id=1025350161&amp;l=3af7249acd</a></p>
<h1>To be continued&#8230;</h1>
<p><em>This is first part of the Music Box</em><em> description. Second part (Roskilde Version) is coming soon.</em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sadiav.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sadiav.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sadiav.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sadiav.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sadiav.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sadiav.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sadiav.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sadiav.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sadiav.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sadiav.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sadiav.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sadiav.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sadiav.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sadiav.wordpress.com/73/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadiav.wordpress.com&amp;blog=13959835&amp;post=73&amp;subd=sadiav&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sadiav.wordpress.com/2011/02/10/musicbox_culturebox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/786f9e4f84ec18bb88bb83baab956e68?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sadiav</media:title>
		</media:content>

		<media:content url="http://sadiav.files.wordpress.com/2011/02/mb1_topexplanation.jpg?w=300" medium="image">
			<media:title type="html">MB1_topExplanation</media:title>
		</media:content>

		<media:content url="http://sadiav.files.wordpress.com/2011/02/mb1_btnlever.jpg?w=300" medium="image">
			<media:title type="html">MB1_btnlever</media:title>
		</media:content>

		<media:content url="http://sadiav.files.wordpress.com/2011/02/mb1_top_withcansandlegsandpots.jpg?w=300" medium="image">
			<media:title type="html">MB1_top_withCansAndLegsAndPots</media:title>
		</media:content>

		<media:content url="http://sadiav.files.wordpress.com/2011/02/mb1_muxes.jpg?w=300" medium="image">
			<media:title type="html">MB1_Muxes</media:title>
		</media:content>

		<media:content url="http://sadiav.files.wordpress.com/2011/02/mb1_withleds.jpg?w=300" medium="image">
			<media:title type="html">MB1_WithLeds</media:title>
		</media:content>

		<media:content url="http://sadiav.files.wordpress.com/2011/02/mb1_shiftreg.jpg?w=300" medium="image">
			<media:title type="html">MB1_ShiftReg</media:title>
		</media:content>

		<media:content url="http://sadiav.files.wordpress.com/2011/02/mb1_atculturebox.jpg?w=300" medium="image">
			<media:title type="html">MB1_AtCultureBox</media:title>
		</media:content>

		<media:content url="http://sadiav.files.wordpress.com/2011/02/mb1_atculturebox2.jpg?w=221" medium="image">
			<media:title type="html">MB1_AtCultureBox2</media:title>
		</media:content>

		<media:content url="http://sadiav.files.wordpress.com/2011/02/mb1_atcultureboxmedeepthoughts.jpg?w=200" medium="image">
			<media:title type="html">MB1_AtCultureBoxMeDeepThoughts</media:title>
		</media:content>
	</item>
		<item>
		<title>Windows backup failure: 0&#215;81000033</title>
		<link>http://sadiav.wordpress.com/2011/01/27/windows-backup-failure/</link>
		<comments>http://sadiav.wordpress.com/2011/01/27/windows-backup-failure/#comments</comments>
		<pubDate>Wed, 26 Jan 2011 23:25:16 +0000</pubDate>
		<dc:creator>sadiav</dc:creator>
				<category><![CDATA[PC stuff]]></category>

		<guid isPermaLink="false">http://sadiav.wordpress.com/?p=66</guid>
		<description><![CDATA[We all must appreciate benefits of backing up. So do I, but I&#8217;ve been facing this error: 0&#215;81000033 while doing backups (using  Backup and Restore) on my new(-ish) Windows 7 Ultimate machine. After googling a bit I found a solution that worked. Seems that the problem was because of the size of USN journal that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadiav.wordpress.com&amp;blog=13959835&amp;post=66&amp;subd=sadiav&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We all must appreciate benefits of backing up. So do I, but I&#8217;ve been facing this error: <strong>0&#215;81000033</strong> while doing backups (using  <em>Backup and Restore</em>) on my new(<em>-ish</em>) Windows 7 Ultimate machine.</p>
<p>After googling a bit I found a solution that worked. Seems that the problem was because of the size of <em>USN journal</em> that was turned-on on <em>System Reserved</em> partition (the 100MB one that&#8217;s created by default).</p>
<p>Doing the following things helped to resolve the problem and now my backups to a remote NAS (<a title="SS4200-E" href="http://www.intel.com/p/en_US/support/highlights/server/ss4200-e?wapkw=%28SS4200-E%29" target="_blank">SS4200-E</a>).</p>
<ol>
<li>Run Command Prompt in administrator mode (hit Start, type <em>cmd.exe</em>, right-click and select <em>Run as administrator</em>)<a href="http://sadiav.files.wordpress.com/2011/01/cmd.jpg"><img class="aligncenter size-full wp-image-67" title="Cmd.exe in Admin mode" src="http://sadiav.files.wordpress.com/2011/01/cmd.jpg?w=480" alt="Cmd.exe in Admin mode"   /></a></li>
<li>In Command Prompt type <em>fsutil usn queryjournal F:</em></li>
<li>If it does not say that journal is disabled then type <em>fsutil usn deletejournal /D F:</em></li>
<li>Retry backup. It should work as it is supposed to.</li>
</ol>
<p>This is assuming that you have assigned letter<em> F:</em> to <em>System Reserved</em> partition. If not, you have to assign a letter to it.</p>
<ol>
<li>Hit Start, right-click on <em>Computer</em> and select <em>Manage</em>. <a href="http://sadiav.files.wordpress.com/2011/01/manage.jpg"><img class="size-full wp-image-68 aligncenter" title="manage" src="http://sadiav.files.wordpress.com/2011/01/manage.jpg?w=480" alt=""   /></a></li>
<li>In <em>Computer Management</em> -&gt; <em>Storage</em> select <em>Disk Management.</em></li>
<li>Right-click on partition named <em>System Reserved </em>and choose <em>Change Drive Letter And Paths&#8230;</em><em><a href="http://sadiav.files.wordpress.com/2011/01/changing-drive-letter.jpg"><img class="aligncenter size-full wp-image-69" title="changing drive letter" src="http://sadiav.files.wordpress.com/2011/01/changing-drive-letter.jpg?w=480" alt=""   /></a></em></li>
<li>Hit <em>Add&#8230;</em> button and choose a letter to assign. And hit <em>OK</em>.</li>
</ol>
<p>Then do the disabling of <em>USN Journal</em> again.</p>
<p>Source for this post is <a title="Source for article" href="http://social.technet.microsoft.com/Forums/en-US/windowsbackup/thread/624aef35-b27f-4e78-9fed-3beb24442457" target="_blank">here</a>.</p>
<p><em> </em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sadiav.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sadiav.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sadiav.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sadiav.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sadiav.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sadiav.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sadiav.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sadiav.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sadiav.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sadiav.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sadiav.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sadiav.wordpress.com/66/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sadiav.wordpress.com/66/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sadiav.wordpress.com/66/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadiav.wordpress.com&amp;blog=13959835&amp;post=66&amp;subd=sadiav&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sadiav.wordpress.com/2011/01/27/windows-backup-failure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/786f9e4f84ec18bb88bb83baab956e68?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sadiav</media:title>
		</media:content>

		<media:content url="http://sadiav.files.wordpress.com/2011/01/cmd.jpg" medium="image">
			<media:title type="html">Cmd.exe in Admin mode</media:title>
		</media:content>

		<media:content url="http://sadiav.files.wordpress.com/2011/01/manage.jpg" medium="image">
			<media:title type="html">manage</media:title>
		</media:content>

		<media:content url="http://sadiav.files.wordpress.com/2011/01/changing-drive-letter.jpg" medium="image">
			<media:title type="html">changing drive letter</media:title>
		</media:content>
	</item>
		<item>
		<title>CPU loader app</title>
		<link>http://sadiav.wordpress.com/2010/12/08/cpuloader-app/</link>
		<comments>http://sadiav.wordpress.com/2010/12/08/cpuloader-app/#comments</comments>
		<pubDate>Wed, 08 Dec 2010 19:59:45 +0000</pubDate>
		<dc:creator>sadiav</dc:creator>
				<category><![CDATA[My Applications]]></category>

		<guid isPermaLink="false">http://sadiav.wordpress.com/?p=49</guid>
		<description><![CDATA[I wanted to test how my PC behaves under heavy CPU load. Googgled to find some apps that could do that, but after a minute decided to write my own This is how CPULoader.exe was born. Usage is to load the app in command prompt. After the &#8220;CPULoader.exe&#8221; you can specify how many threads you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadiav.wordpress.com&amp;blog=13959835&amp;post=49&amp;subd=sadiav&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I wanted to test how my PC behaves under heavy CPU load. Googgled to find some apps that could do that, but after a minute decided to write my own <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>This is how CPULoader.exe was born. Usage is to load the app in command prompt. After the &#8220;CPULoader.exe&#8221;  you can specify how many threads you prefer to start. Program defaults  to 2.</p>
<p>f.ex, if you have the exe on your Desktop:</p>
<pre><strong>C:\Users\&lt;your_user_name&gt;\Desktop&gt;CPULoader.exe 3</strong></pre>
<p>Here is the source (<em>C#</em>):</p>
<p><pre class="brush: csharp;">using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace CPULoader
{
 class Program
 {
 static void Main(string[] args)
 {
 Console.WriteLine(&quot;This program starts a number of threads (default is 2) and performs sqare root operations in an ifinite loop on random numbers to load CPU's to test it under heavy load.&quot;);
 Console.WriteLine(&quot;\nProgram was created by Vaidas Sirtautas&quot;);
 Console.WriteLine(&quot;\n\tUsage: CPULoader.exe &lt;number of threads to start&gt;&quot;);

 int count = 2;
 if (args.Length == 1)
 try
 {
 count = Int32.Parse(args[0]);
 }
 catch (Exception e)
 {
 Console.WriteLine(&quot;\n\n\tException occured. Probably not a number supplied. Defaulting to 2 threads\nException message: &quot; + e.Message);
 }

 Console.WriteLine(&quot;Starting {0} threads to load the cpu(s)...&quot;, count);

 Thread[] threads = new Thread[count];

 for (int i = 0; i &lt; count; i++)
 {
 threads[i] = new Thread(doWork);
 threads[i].Start();
 Console.Write(&quot;\nStarted thread #{0}&quot;, i);

 }
 Console.WriteLine(&quot;\n\tdone! Press any key to terminate all the threads&quot;);

 ConsoleKeyInfo keypress = Console.ReadKey();

 for (int i = 0; i &lt; count; i++)
 {
 Console.Write(&quot;\nTerminating thread #{0}&quot;, i);
 threads[i].Abort();
 }
 Console.WriteLine(&quot;\n&quot;);
 return;

 }

 static void doWork()
 {
 Random random = new Random();
 double a = 0.0;

 while (true)
 for (int j = 0; j &lt; Int32.MaxValue; j++)
 a = Math.Sqrt((Double)random.Next(Int32.MaxValue));

 }
 }
}</pre></p>
<p>You can also download the app from here: <a title="http://uploading.com/files/67ea5m27/CPULoader.exe/" href="http://uploading.com/files/67ea5m27/CPULoader.exe/">http://uploading.com/files/67ea5m27/CPULoader.exe/</a></p>
<p>or here: <a title="http://88.223.59.161:88/CPULoader.exe" href="http://88.223.59.161:88/CPULoader.exe">http://88.223.59.161:88/CPULoader.exe</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sadiav.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sadiav.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sadiav.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sadiav.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sadiav.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sadiav.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sadiav.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sadiav.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sadiav.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sadiav.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sadiav.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sadiav.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sadiav.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sadiav.wordpress.com/49/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadiav.wordpress.com&amp;blog=13959835&amp;post=49&amp;subd=sadiav&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sadiav.wordpress.com/2010/12/08/cpuloader-app/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/786f9e4f84ec18bb88bb83baab956e68?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sadiav</media:title>
		</media:content>
	</item>
		<item>
		<title>KatMouse issues</title>
		<link>http://sadiav.wordpress.com/2010/11/28/katmouse-issues/</link>
		<comments>http://sadiav.wordpress.com/2010/11/28/katmouse-issues/#comments</comments>
		<pubDate>Sun, 28 Nov 2010 22:16:31 +0000</pubDate>
		<dc:creator>sadiav</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[KatMouse]]></category>

		<guid isPermaLink="false">http://sadiav.wordpress.com/?p=44</guid>
		<description><![CDATA[I&#8217;ve set up a new system at home to use as my primary PC. That, of course, required reinstalling all of the programs I use daily. Firstly it was Firefox and then KatMouse. (KatMouse is an amazing little app that does not require you to have window activated in order to scroll it. You just [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadiav.wordpress.com&amp;blog=13959835&amp;post=44&amp;subd=sadiav&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve set up a new system at home to use as my primary PC. That, of course, required reinstalling all of the programs I use daily.</p>
<p>Firstly it was <strong>Firefox </strong>and then<strong> <a title="KatMouse" href="http://http://ehiti.de/katmouse/" target="_blank">KatMouse</a></strong>. (<em><strong>KatMouse </strong>is an amazing little app that does not require you to have window activated in order to scroll it. You just have to keep your mouse cursor over it.</em>)</p>
<p>I got myself in a huge problem. My <strong>Logitech Anywhere MX</strong> mouse could not close tabs or open links via middle button click.</p>
<p>By default in Logitech&#8217;s <strong>Set Point</strong> software it&#8217;s set as &#8220;Application Switcher&#8221;. I, of course, changed it to &#8220;Middle Button&#8221;.<a href="http://sadiav.files.wordpress.com/2010/11/setpoint.jpg"><img class="aligncenter size-full wp-image-45" title="setpoint" src="http://sadiav.files.wordpress.com/2010/11/setpoint.jpg?w=480&#038;h=365" alt="" width="480" height="365" /></a></p>
<p>Everything should be fine, but no&#8230; It was still switching between windows as previously. That got me mad&#8230; I even created post on Logitech support forums. After a while playing with <strong>KatMouse</strong>&#8216;s settings I finally figured out where the problem is.</p>
<p><a href="http://sadiav.files.wordpress.com/2010/11/katmouse.jpg"><img class="aligncenter size-full wp-image-46" title="katmouse" src="http://sadiav.files.wordpress.com/2010/11/katmouse.jpg?w=480" alt=""   /></a></p>
<p>In the settings in the <strong>Wheel Button</strong> tab <em>None of the buttons</em> should be selected &#8220;as push button&#8221;.</p>
<p>Then everything works like a charm <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sadiav.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sadiav.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sadiav.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sadiav.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sadiav.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sadiav.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sadiav.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sadiav.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sadiav.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sadiav.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sadiav.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sadiav.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sadiav.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sadiav.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadiav.wordpress.com&amp;blog=13959835&amp;post=44&amp;subd=sadiav&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sadiav.wordpress.com/2010/11/28/katmouse-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/786f9e4f84ec18bb88bb83baab956e68?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sadiav</media:title>
		</media:content>

		<media:content url="http://sadiav.files.wordpress.com/2010/11/setpoint.jpg" medium="image">
			<media:title type="html">setpoint</media:title>
		</media:content>

		<media:content url="http://sadiav.files.wordpress.com/2010/11/katmouse.jpg" medium="image">
			<media:title type="html">katmouse</media:title>
		</media:content>
	</item>
		<item>
		<title>Arduino Uno has arrived!</title>
		<link>http://sadiav.wordpress.com/2010/11/11/arduino-uno-has-arrived/</link>
		<comments>http://sadiav.wordpress.com/2010/11/11/arduino-uno-has-arrived/#comments</comments>
		<pubDate>Thu, 11 Nov 2010 11:25:24 +0000</pubDate>
		<dc:creator>sadiav</dc:creator>
				<category><![CDATA[Electronics]]></category>

		<guid isPermaLink="false">http://sadiav.wordpress.com/?p=25</guid>
		<description><![CDATA[This morning was quite awesome&#8230; Just before leaving home for university I noticed a post-truck driving by. It stopped near the entrance of my apartment. My heart started pounding&#8230; Maybe, there is my package. Yes, it was from Let Elektronik &#8211; Arduino UNO has arrived! Here are some photos of it: Can&#8217;t wait till lectures [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadiav.wordpress.com&amp;blog=13959835&amp;post=25&amp;subd=sadiav&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This morning was quite awesome&#8230; Just before leaving home for university I noticed a post-truck driving by. It stopped near the entrance of my apartment. My heart started pounding&#8230; Maybe, there is my package. Yes, it was from Let Elektronik &#8211; Arduino UNO has arrived!</p>
<p>Here are some photos of it:</p>
<a href="http://sadiav.wordpress.com/2010/11/11/arduino-uno-has-arrived/#gallery-1-slideshow">Click to view slideshow.</a>
<p>Can&#8217;t wait till lectures are over. Time to do some coding <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sadiav.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sadiav.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sadiav.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sadiav.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sadiav.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sadiav.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sadiav.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sadiav.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sadiav.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sadiav.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sadiav.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sadiav.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sadiav.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sadiav.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadiav.wordpress.com&amp;blog=13959835&amp;post=25&amp;subd=sadiav&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sadiav.wordpress.com/2010/11/11/arduino-uno-has-arrived/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/786f9e4f84ec18bb88bb83baab956e68?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sadiav</media:title>
		</media:content>
	</item>
		<item>
		<title>Nitro tutorials (video)</title>
		<link>http://sadiav.wordpress.com/2010/07/28/nitro-tutorials-video/</link>
		<comments>http://sadiav.wordpress.com/2010/07/28/nitro-tutorials-video/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 17:51:49 +0000</pubDate>
		<dc:creator>sadiav</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sadiav.wordpress.com/?p=19</guid>
		<description><![CDATA[After playing with my HPI Trophy 3.5 I stared on looking for more info about the way to take care of the engine and the car itself. Today I found an amazing series with tutorials related to Nitro engines. Series was created by Squirrelod. Tutorials really helped me to understand the inner parts of a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadiav.wordpress.com&amp;blog=13959835&amp;post=19&amp;subd=sadiav&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After playing with my HPI Trophy 3.5 I stared on looking for more info about the way to take care of the engine and the car itself. Today I found an amazing series with tutorials related to <strong>Nitro engines</strong>.</p>
<p>Series was created by <a title="Squirrelod" href="http://www.youtube.com/user/Squirrelod">Squirrelod</a>. Tutorials really helped me to understand the inner parts of a nitro engines. Please take a look <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Complete list of the videos in the series:</p>
<ul>
<li><a href="http://www.youtube.com/watch?v=WOZiU265FKE" target="_blank">Vid 1 Tuning basics</a></li>
<li><a href="http://www.youtube.com/watch?v=fvE7YeeyYDI" target="_blank">Vid 2 Stock needle settings</a></li>
<li><a href="http://www.youtube.com/watch?v=dUBdcx7blPo" target="_blank">Vid 3 Weather effects</a></li>
<li><a href="http://www.youtube.com/watch?v=1EegfOqFRxk" target="_blank">Vid 4 Fuel and glow plugs</a></li>
<li><a href="http://www.youtube.com/watch?v=B_gGXAsUZTg" target="_blank">Vid 5 Shims</a></li>
<li><a href="http://www.youtube.com/watch?v=TuW4rQoyPhw" target="_blank">Vid 6 reading engine temps</a></li>
<li><a href="http://www.youtube.com/watch?v=fWvlEAWVBEM" target="_blank">Vid 7 Onsite HSN tuning</a></li>
<li><a href="http://www.youtube.com/watch?v=HhowthBKYNU" target="_blank">Vid 8 Onsite LSN tuning</a></li>
<li><a href="http://www.youtube.com/watch?v=jIixfx58Dug" target="_blank">Vid 9 Onsite Idle screw tuning</a></li>
<li><a href="http://www.youtube.com/watch?v=k4WbETNYa88" target="_blank">Vid 10 running signs of rich, lean, and tuned</a></li>
<li><a href="http://www.youtube.com/watch?v=PFdWWGZwQlQ" target="_blank">Vid 11 Glow plugs 101</a></li>
<li><a href="http://www.youtube.com/watch?v=tZ3WcPoa1DY" target="_blank">Vid 12 air leak detection</a></li>
<li><a href="http://www.youtube.com/watch?v=rncdYL-PBL4" target="_blank">Vid 13 sealing air leaks</a></li>
<li><a href="http://www.youtube.com/watch?v=QTkvb4fCb8Q" target="_blank">Vid 14 compression 101</a></li>
</ul>
<p>Unfortunately videos are not in high quality, but everything is quite viewable&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sadiav.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sadiav.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sadiav.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sadiav.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sadiav.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sadiav.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sadiav.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sadiav.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sadiav.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sadiav.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sadiav.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sadiav.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sadiav.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sadiav.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadiav.wordpress.com&amp;blog=13959835&amp;post=19&amp;subd=sadiav&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sadiav.wordpress.com/2010/07/28/nitro-tutorials-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/786f9e4f84ec18bb88bb83baab956e68?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sadiav</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello</title>
		<link>http://sadiav.wordpress.com/2010/05/31/hello/</link>
		<comments>http://sadiav.wordpress.com/2010/05/31/hello/#comments</comments>
		<pubDate>Mon, 31 May 2010 19:49:34 +0000</pubDate>
		<dc:creator>sadiav</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sadiav.wordpress.com/?p=4</guid>
		<description><![CDATA[Hello to everyone, it&#8217;s time to start blogging. Mostly this blog will consist of info about the projects I&#8217;m working on. You can find more info about me on facebook: www.facebook.com/vaidas.sirtautas twitter: www.twitter.com/sadiav youtube: http://www.youtube.com/user/V4id4s1987 hopefully it&#8217;s going to be fun for both you, my reader, and me.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadiav.wordpress.com&amp;blog=13959835&amp;post=4&amp;subd=sadiav&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello to everyone, it&#8217;s time to start blogging.</p>
<p>Mostly this blog will consist of info about the projects I&#8217;m working on.</p>
<p>You can find more info about me on</p>
<ul>
<li>facebook: <a title="https://www.facebook.com/vaidas.sirtautas" href="https://www.facebook.com/vaidas.sirtautas">www.facebook.com/vaidas.sirtautas</a></li>
<li>twitter: <a title="http://twitter.com/sadiav" href="http://twitter.com/sadiav">www.twitter.com/sadiav</a></li>
<li>youtube: <a title="http://www.youtube.com/user/V4id4s1987" href="http://www.youtube.com/user/V4id4s1987" target="_blank">http://www.youtube.com/user/V4id4s1987</a></li>
</ul>
<p>hopefully it&#8217;s going to be fun for both you, my reader, and me.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sadiav.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sadiav.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/sadiav.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/sadiav.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/sadiav.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/sadiav.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/sadiav.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/sadiav.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/sadiav.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/sadiav.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/sadiav.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/sadiav.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/sadiav.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/sadiav.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sadiav.wordpress.com&amp;blog=13959835&amp;post=4&amp;subd=sadiav&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sadiav.wordpress.com/2010/05/31/hello/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/786f9e4f84ec18bb88bb83baab956e68?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sadiav</media:title>
		</media:content>
	</item>
	</channel>
</rss>
