<?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>Pedro Liska&#039;s Blog</title>
	<atom:link href="http://blog.pedroliska.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.pedroliska.com</link>
	<description></description>
	<lastBuildDate>Thu, 24 May 2012 20:33:57 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.pedroliska.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/1d80b8729c17a90a17e6651fa8b91c94?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Pedro Liska&#039;s Blog</title>
		<link>http://blog.pedroliska.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.pedroliska.com/osd.xml" title="Pedro Liska&#039;s Blog" />
	<atom:link rel='hub' href='http://blog.pedroliska.com/?pushpress=hub'/>
		<item>
		<title>Unlocking your Verizon phone</title>
		<link>http://blog.pedroliska.com/2012/05/08/unlocking-your-verizon-phone/</link>
		<comments>http://blog.pedroliska.com/2012/05/08/unlocking-your-verizon-phone/#comments</comments>
		<pubDate>Tue, 08 May 2012 22:09:19 +0000</pubDate>
		<dc:creator>Pedro Liska</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://blog.pedroliska.com/?p=1408</guid>
		<description><![CDATA[I currently own a Verizon HTC Incredible 2 cell phone. I&#8217;m happy with Verizon (they&#8217;re the only ones that have good signal inside my house). But when I go outside the USA (I go to Guatemala often), I want to be able to switch the SIM card to one that works with a local mobile [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pedroliska.com&#038;blog=7179230&#038;post=1408&#038;subd=pedroliska&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I currently own a Verizon HTC Incredible 2 cell phone.</p>
<p>I&#8217;m happy with Verizon (they&#8217;re the only ones that have good signal inside my house). But when I go outside the USA (I go to Guatemala often), I want to be able to switch the SIM card to one that works with a local mobile service providers. Otherwise I would have to use roaming with Verizon and that is ridiculously expensive.</p>
<p>I gave Verizon a call and they quickly gave me the  &#8221;unlock&#8221; code for me to enter in my phone. After entering the code, the phone was immediately unlocked! They only made me agree to a very obvious agreement that if I stick another SIM card in there I acknowledged that I was no longer using the Verizon service and Verizon could would not support me while I had that third party SIM card in my phone. But if I then switched back to my Verizon SIM card and ran my phone in CDMA (or Global) mode, I would be supported again.</p>
<p>And one more thing, Verizon uses CDMA. SIM cards are used for GSM. So I tried removing my Verizon SIM card from my phone and I was still able to get Verizon service. Nice to know.</p>
<p>I then stuck a SIM card from a friend that uses T-mobile and switched my Incredible&#8217;s mode to GSM, I could make and receive calls as him. Very cool.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pedroliska.wordpress.com/1408/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pedroliska.wordpress.com/1408/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pedroliska.wordpress.com/1408/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pedroliska.wordpress.com/1408/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pedroliska.wordpress.com/1408/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pedroliska.wordpress.com/1408/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pedroliska.wordpress.com/1408/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pedroliska.wordpress.com/1408/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pedroliska.wordpress.com/1408/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pedroliska.wordpress.com/1408/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pedroliska.wordpress.com/1408/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pedroliska.wordpress.com/1408/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pedroliska.wordpress.com/1408/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pedroliska.wordpress.com/1408/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pedroliska.com&#038;blog=7179230&#038;post=1408&#038;subd=pedroliska&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.pedroliska.com/2012/05/08/unlocking-your-verizon-phone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fa18165cf7e4541a81df39fd3bbb034?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">pedroliska</media:title>
		</media:content>
	</item>
		<item>
		<title>Trying out backpack #2</title>
		<link>http://blog.pedroliska.com/2012/04/07/trying-out-backpack-2/</link>
		<comments>http://blog.pedroliska.com/2012/04/07/trying-out-backpack-2/#comments</comments>
		<pubDate>Sat, 07 Apr 2012 14:59:00 +0000</pubDate>
		<dc:creator>Pedro Liska</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">https://pedroliska.wordpress.com/?p=1403</guid>
		<description><![CDATA[Trying out the second hiking backpack on a quick walk to see the daybreak ducks. The first kelty backpack i bought was defective. But this brand makes way better packs than the competition so i stuck to that brand. So far the second pack looks good.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pedroliska.com&#038;blog=7179230&#038;post=1403&#038;subd=pedroliska&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img title="" class="aligncenter" alt="image" src="http://pedroliska.files.wordpress.com/2012/04/wpid-imag0207.jpg?w=495" /></p>
<p>Trying out the second hiking backpack on a quick walk to see the daybreak ducks. </p>
<p><img title="IMAG0210.jpg" class="alignnone" alt="image" src="http://pedroliska.files.wordpress.com/2012/04/wpid-imag0210.jpg?w=495" /></p>
<p>The first kelty backpack i bought was defective. But this brand makes way better packs than the competition so i stuck to that brand. So far the second pack looks good.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pedroliska.wordpress.com/1403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pedroliska.wordpress.com/1403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pedroliska.wordpress.com/1403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pedroliska.wordpress.com/1403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pedroliska.wordpress.com/1403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pedroliska.wordpress.com/1403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pedroliska.wordpress.com/1403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pedroliska.wordpress.com/1403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pedroliska.wordpress.com/1403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pedroliska.wordpress.com/1403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pedroliska.wordpress.com/1403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pedroliska.wordpress.com/1403/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pedroliska.wordpress.com/1403/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pedroliska.wordpress.com/1403/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pedroliska.com&#038;blog=7179230&#038;post=1403&#038;subd=pedroliska&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.pedroliska.com/2012/04/07/trying-out-backpack-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fa18165cf7e4541a81df39fd3bbb034?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">pedroliska</media:title>
		</media:content>

		<media:content url="http://pedroliska.files.wordpress.com/2012/04/wpid-imag0207.jpg" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://pedroliska.files.wordpress.com/2012/04/wpid-imag0210.jpg" medium="image">
			<media:title type="html">IMAG0210.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL query results into Excel</title>
		<link>http://blog.pedroliska.com/2012/04/03/sql-query-results-into-excel/</link>
		<comments>http://blog.pedroliska.com/2012/04/03/sql-query-results-into-excel/#comments</comments>
		<pubDate>Tue, 03 Apr 2012 19:53:38 +0000</pubDate>
		<dc:creator>Pedro Liska</dc:creator>
				<category><![CDATA[Computer Science]]></category>

		<guid isPermaLink="false">https://pedroliska.wordpress.com/?p=1399</guid>
		<description><![CDATA[It is easy to pull data from a MS SQL table or view into excel, the UI is very straight forward for that. But that is not the case when you want a custom sql query to be the one pulling data from the database.&#160; To do this in Excel 2010, you need to first [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pedroliska.com&#038;blog=7179230&#038;post=1399&#038;subd=pedroliska&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It is easy to pull data from a MS SQL table or view into excel, the UI is very straight forward for that. But that is not the case when you want a custom sql query to be the one pulling data from the database.&#160; </p>
<p>To do this in Excel 2010, you need to first set up the connection to the database and then set up the query:</p>
<p><strong>Setting up the connection</strong></p>
<p><a href="http://pedroliska.files.wordpress.com/2012/04/image.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://pedroliska.files.wordpress.com/2012/04/image_thumb.png?w=495&h=348" width="495" height="348" /></a></p>
<p><a href="http://pedroliska.files.wordpress.com/2012/04/image1.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:inline;border-top:0;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://pedroliska.files.wordpress.com/2012/04/image_thumb1.png?w=499&h=270" width="499" height="270" /></a></p>
<p>&#160;</p>
<p><a href="http://pedroliska.files.wordpress.com/2012/04/image2.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://pedroliska.files.wordpress.com/2012/04/image_thumb2.png?w=386&h=305" width="386" height="305" /></a></p>
<p>This is where you set the server location, login, AND the database you want to query:</p>
<p><a href="http://pedroliska.files.wordpress.com/2012/04/image3.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://pedroliska.files.wordpress.com/2012/04/image_thumb3.png?w=381&h=356" width="381" height="356" /></a></p>
<p>Leave the default table empty:</p>
<p><a href="http://pedroliska.files.wordpress.com/2012/04/image4.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://pedroliska.files.wordpress.com/2012/04/image_thumb4.png?w=372&h=292" width="372" height="292" /></a></p>
<p><strong>Double click</strong> your newly created data source</p>
<p><a href="http://pedroliska.files.wordpress.com/2012/04/image5.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://pedroliska.files.wordpress.com/2012/04/image_thumb5.png?w=381&h=196" width="381" height="196" /></a></p>
<p><strong></strong></p>
<p><strong>Building the Query</strong></p>
<p>The screenshot below pops up automatically when you double click the data source (see screenshot above). We don’t want to add any tables:</p>
<p><a href="http://pedroliska.files.wordpress.com/2012/04/image6.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://pedroliska.files.wordpress.com/2012/04/image_thumb6.png?w=401&h=333" width="401" height="333" /></a></p>
<p>We want to use our hand written SQL:</p>
<p><a href="http://pedroliska.files.wordpress.com/2012/04/image7.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://pedroliska.files.wordpress.com/2012/04/image_thumb7.png?w=388&h=337" width="388" height="337" /></a></p>
<p>Enter your SQL:</p>
<p><a href="http://pedroliska.files.wordpress.com/2012/04/image8.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://pedroliska.files.wordpress.com/2012/04/image_thumb8.png?w=402&h=195" width="402" height="195" /></a></p>
<p>Chances are you’ll run into this, hit ok</p>
<p><a href="http://pedroliska.files.wordpress.com/2012/04/image9.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://pedroliska.files.wordpress.com/2012/04/image_thumb9.png?w=403&h=105" width="403" height="105" /></a></p>
<p>Your query has been built, hit the exit button:</p>
<p><a href="http://pedroliska.files.wordpress.com/2012/04/image10.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://pedroliska.files.wordpress.com/2012/04/image_thumb10.png?w=296&h=142" width="296" height="142" /></a></p>
<p>Tell Excel where to put the data from your query:</p>
<p><a href="http://pedroliska.files.wordpress.com/2012/04/image11.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://pedroliska.files.wordpress.com/2012/04/image_thumb11.png?w=345&h=290" width="345" height="290" /></a></p>
<p>You’re done!</p>
<p>You can now right click on any cell that has data from your query and hit Refresh when you want Excel to pull fresh data from the database:</p>
<p><a href="http://pedroliska.files.wordpress.com/2012/04/image12.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://pedroliska.files.wordpress.com/2012/04/image_thumb12.png?w=364&h=348" width="364" height="348" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pedroliska.wordpress.com/1399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pedroliska.wordpress.com/1399/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pedroliska.wordpress.com/1399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pedroliska.wordpress.com/1399/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pedroliska.wordpress.com/1399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pedroliska.wordpress.com/1399/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pedroliska.wordpress.com/1399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pedroliska.wordpress.com/1399/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pedroliska.wordpress.com/1399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pedroliska.wordpress.com/1399/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pedroliska.wordpress.com/1399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pedroliska.wordpress.com/1399/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pedroliska.wordpress.com/1399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pedroliska.wordpress.com/1399/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pedroliska.com&#038;blog=7179230&#038;post=1399&#038;subd=pedroliska&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.pedroliska.com/2012/04/03/sql-query-results-into-excel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fa18165cf7e4541a81df39fd3bbb034?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">pedroliska</media:title>
		</media:content>

		<media:content url="http://pedroliska.files.wordpress.com/2012/04/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://pedroliska.files.wordpress.com/2012/04/image_thumb1.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://pedroliska.files.wordpress.com/2012/04/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://pedroliska.files.wordpress.com/2012/04/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://pedroliska.files.wordpress.com/2012/04/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://pedroliska.files.wordpress.com/2012/04/image_thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://pedroliska.files.wordpress.com/2012/04/image_thumb6.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://pedroliska.files.wordpress.com/2012/04/image_thumb7.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://pedroliska.files.wordpress.com/2012/04/image_thumb8.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://pedroliska.files.wordpress.com/2012/04/image_thumb9.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://pedroliska.files.wordpress.com/2012/04/image_thumb10.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://pedroliska.files.wordpress.com/2012/04/image_thumb11.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://pedroliska.files.wordpress.com/2012/04/image_thumb12.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>LINQ query to CSV</title>
		<link>http://blog.pedroliska.com/2012/02/09/linq-query-to-csv/</link>
		<comments>http://blog.pedroliska.com/2012/02/09/linq-query-to-csv/#comments</comments>
		<pubDate>Thu, 09 Feb 2012 18:45:45 +0000</pubDate>
		<dc:creator>Pedro Liska</dc:creator>
				<category><![CDATA[Computer Science]]></category>

		<guid isPermaLink="false">http://blog.pedroliska.com/?p=1349</guid>
		<description><![CDATA[The C# code below generates a CSV (comma separated value) string with the header row and data obtained from a LINQ query. For example: A query like this: Would result in a CSV string like this one: And now to the code: And make sure the following methods are delcared:<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pedroliska.com&#038;blog=7179230&#038;post=1349&#038;subd=pedroliska&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The C# code below generates a CSV (comma separated value) string with the header row and data obtained from a LINQ query.</p>
<p>For example: A query like this:</p>
<p><pre class="brush: csharp;">
dc.Users.Select(u =&gt; new
{
    user_id = u.UserId,
    username= u.Username,
    first_name = u.FirstName,
    last_name = u.LastName,
    creation_date = u.CreationDate
});
</pre></p>
<p>Would result in a CSV string like this one:</p>
<p><pre class="brush: plain;">
user_id,username,first_name,last_name,creation_date
&quot;abf577a5-dc76-4719-9375-001a445d0c3d&quot;,&quot;jdoe&quot;,&quot;John&quot;,&quot;Doe&quot;,2011-03-29T14:50:28
&quot;24b888cf-b02b-413e-8542-007e7ee572a6&quot;,&quot;jdoe2&quot;,&quot;John&quot;,&quot;Doe2&quot;,2009-05-29T19:52:32
</pre></p>
<p>And now to the code:</p>
<p><pre class="brush: csharp;">
var users = dc.Users.Select(u =&gt; new
{
    user_id = u.UserId,
    username = u.Username,
    first_name = u.FirstName,
    last_name = u.LastName,
    creation_date = u.CreationDate
}).ToArray();

var usersCsv = GenerateCsv(users);
</pre></p>
<p>And make sure the following methods are delcared:</p>
<p><pre class="brush: csharp;">
/// &lt;summary&gt;
/// This method generates CSV data out an array of anything. The array
/// elements could be of anonymous type
/// &lt;/summary&gt;
private string GenerateCsv(Array items)
{

    var rowType = items.GetType().GetElementType();
    var colNames = rowType.GetProperties().Select(p =&gt; p.Name).ToArray();

    // create the header row
    var retVal = new StringBuilder();
    retVal.AppendLine(string.Join(&quot;,&quot;, colNames));

    // now create the body
    foreach (var row in items)
    {
        var rowItems = new string[colNames.Length];
        for (int i = 0; i &lt; colNames.Length; i++)
            rowItems[i] = this.FormatCell(rowType.GetProperty(colNames[i]).GetValue(row, null));

        retVal.AppendLine(string.Join(&quot;,&quot;, rowItems));
    }

    return retVal.ToString();
}
</pre></p>
<p><pre class="brush: csharp;">
private string FormatCell(object item)
{
    if (item == null)
        return &quot;&quot;;

    if (item.GetType() == typeof(DateTime))
        return ((DateTime)item).ToUniversalTime().ToString(&quot;s&quot;);

    return &quot;\&quot;&quot; + item.ToString().Replace(&quot;\&quot;&quot;, &quot;\&quot;\&quot;&quot;) + &quot;\&quot;&quot;;
}

</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pedroliska.wordpress.com/1349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pedroliska.wordpress.com/1349/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pedroliska.wordpress.com/1349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pedroliska.wordpress.com/1349/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pedroliska.wordpress.com/1349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pedroliska.wordpress.com/1349/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pedroliska.wordpress.com/1349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pedroliska.wordpress.com/1349/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pedroliska.wordpress.com/1349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pedroliska.wordpress.com/1349/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pedroliska.wordpress.com/1349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pedroliska.wordpress.com/1349/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pedroliska.wordpress.com/1349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pedroliska.wordpress.com/1349/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pedroliska.com&#038;blog=7179230&#038;post=1349&#038;subd=pedroliska&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.pedroliska.com/2012/02/09/linq-query-to-csv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fa18165cf7e4541a81df39fd3bbb034?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">pedroliska</media:title>
		</media:content>
	</item>
		<item>
		<title>Anika is crawling!</title>
		<link>http://blog.pedroliska.com/2012/01/29/anika-is-crawling/</link>
		<comments>http://blog.pedroliska.com/2012/01/29/anika-is-crawling/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 00:51:23 +0000</pubDate>
		<dc:creator>Pedro Liska</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">https://pedroliska.wordpress.com/?p=1345</guid>
		<description><![CDATA[A few days before she turned 9 months, Anika began crawling! She had been close to crawling for a long time but her right foot would get stuck on her left knee so she was not able to crawl freely with her knees, she would only move a little bit and then go back into [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pedroliska.com&#038;blog=7179230&#038;post=1345&#038;subd=pedroliska&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A few days before she turned 9 months, Anika began crawling! </p>
<p>She had been close to crawling for a long time but her right foot would get stuck on her left knee so she was not able to crawl freely with her knees, she would only move a little bit and then go back into the sitting position; after doing that a lot she could move from one side of a room to the other; but it took her a long time.</p>
<p>One night Carol and I placed a few of her favorite toys at a distance she could only reach by crawling, and we helped her get her foot unstuck. After doing that a few times, she was able to crawl by herself! She only did it by herself a few times and then got tired.</p>
<p>The next day, we wondered if she had forgotten her new skill; but she didn’t. After a few days of practice she could go long without stopping:</p>
<div style="width:448px;display:block;float:none;margin-left:auto;margin-right:auto;padding:0;" id="scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:e381972d-a8d4-4387-8081-6a8342273a33" class="wlWriterEditableSmartContent">
<div><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='448' height='252' src='http://www.youtube.com/embed/VVB02qJ8CJw?version=3&amp;rel=1&amp;fs=1&amp;showsearch=0&amp;showinfo=1&amp;iv_load_policy=1&amp;hd=1&amp;wmode=transparent' frameborder='0'></iframe></span></div>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pedroliska.wordpress.com/1345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pedroliska.wordpress.com/1345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pedroliska.wordpress.com/1345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pedroliska.wordpress.com/1345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pedroliska.wordpress.com/1345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pedroliska.wordpress.com/1345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pedroliska.wordpress.com/1345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pedroliska.wordpress.com/1345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pedroliska.wordpress.com/1345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pedroliska.wordpress.com/1345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pedroliska.wordpress.com/1345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pedroliska.wordpress.com/1345/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pedroliska.wordpress.com/1345/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pedroliska.wordpress.com/1345/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pedroliska.com&#038;blog=7179230&#038;post=1345&#038;subd=pedroliska&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.pedroliska.com/2012/01/29/anika-is-crawling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fa18165cf7e4541a81df39fd3bbb034?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">pedroliska</media:title>
		</media:content>
	</item>
		<item>
		<title>Customizing the Contact form in Outlook 2010</title>
		<link>http://blog.pedroliska.com/2011/12/19/customizing-the-contact-form-in-outlook-2010/</link>
		<comments>http://blog.pedroliska.com/2011/12/19/customizing-the-contact-form-in-outlook-2010/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 18:47:44 +0000</pubDate>
		<dc:creator>Pedro Liska</dc:creator>
				<category><![CDATA[Computer Science]]></category>

		<guid isPermaLink="false">https://pedroliska.wordpress.com/?p=1340</guid>
		<description><![CDATA[Most of my Outlook contacts are personal contacts, not business contacts. So I don’t have their business phone or address. By default the business phone field is the first on the list of phones on the contact form. And the business address is the only one that shows by default. With a lot more work [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pedroliska.com&#038;blog=7179230&#038;post=1340&#038;subd=pedroliska&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Most of my Outlook contacts are personal contacts, not business contacts. So I don’t have their business phone or address. By default the business phone field is the first on the list of phones on the contact form. And the business address is the only one that shows by default. </p>
<p>With a lot more work that what it should be, I was able to change the fields from this:</p>
<p><a href="http://pedroliska.files.wordpress.com/2011/12/image3.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://pedroliska.files.wordpress.com/2011/12/image_thumb3.png?w=438&h=416" width="438" height="416" /></a></p>
<p>To this:</p>
<p><a href="http://pedroliska.files.wordpress.com/2011/12/image12.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://pedroliska.files.wordpress.com/2011/12/image_thumb12.png?w=415&h=444" width="415" height="444" /></a></p>
<p>I was only able to do this on New Contacts, I did not continue trying to figure out how to edit my existing contacts to use this new field format.</p>
<p>&#160;</p>
<p>To do so go to Outlook 2010 and add the Developer Menu Item by going to “File &gt; Options &gt; Customize Ribbon“ and select the Developer item on the tree view:</p>
<p><a href="http://pedroliska.files.wordpress.com/2011/12/image4.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://pedroliska.files.wordpress.com/2011/12/image_thumb4.png?w=443&h=363" width="443" height="363" /></a></p>
<p>Hit the OK button to save your changes.</p>
<p>Go to your contacts and hit the “New Contact” button:</p>
<p><a href="http://pedroliska.files.wordpress.com/2011/12/image5.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://pedroliska.files.wordpress.com/2011/12/image_thumb5.png?w=258&h=456" width="258" height="456" /></a></p>
<p>&#160;</p>
<p>Change the fields to your liking by hitting on the drop down arrow next to the field name:</p>
<p><a href="http://pedroliska.files.wordpress.com/2011/12/image6.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://pedroliska.files.wordpress.com/2011/12/image_thumb6.png?w=393&h=432" width="393" height="432" /></a></p>
<p>Go to the Developer item on the Ribbon and select Publish Form As:</p>
<p><a href="http://pedroliska.files.wordpress.com/2011/12/image7.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://pedroliska.files.wordpress.com/2011/12/image_thumb7.png?w=425&h=327" width="425" height="327" /></a></p>
<p>Give your new form a Display Name and a Form name and hit Publish.</p>
<p><a href="http://pedroliska.files.wordpress.com/2011/12/image8.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://pedroliska.files.wordpress.com/2011/12/image_thumb8.png?w=416&h=310" width="416" height="310" /></a></p>
<p>The form name is the one you’ll look for when setting the form as the default form, the Display name is the one you’ll see on the “New Contact” button.</p>
<p>Close the “New Contact” window you have open, if it asks you if you want to save changes say no.</p>
<p><a href="http://pedroliska.files.wordpress.com/2011/12/image9.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://pedroliska.files.wordpress.com/2011/12/image_thumb9.png?w=421&h=339" width="421" height="339" /></a></p>
<p>We now want to make our new published form the default Contact form. To do this , right click on the Contacts folder:</p>
<p><a href="http://pedroliska.files.wordpress.com/2011/12/image10.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://pedroliska.files.wordpress.com/2011/12/image_thumb10.png?w=216&h=455" width="216" height="455" /></a></p>
<p>Hit properties. Then update the “when posting to this folder, use” field to your new form and hit OK to save your changes:</p>
<p>&#160;</p>
<p><a href="http://pedroliska.files.wordpress.com/2011/12/image11.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://pedroliska.files.wordpress.com/2011/12/image_thumb11.png?w=309&h=430" width="309" height="430" /></a></p>
<p>Your new contact form will now be used on all new Contacts. </p>
<p>Sadly I could not find a straight forward way to make existing contacts use the new Form. If you figure out how to do this, let me know!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pedroliska.wordpress.com/1340/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pedroliska.wordpress.com/1340/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pedroliska.wordpress.com/1340/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pedroliska.wordpress.com/1340/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pedroliska.wordpress.com/1340/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pedroliska.wordpress.com/1340/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pedroliska.wordpress.com/1340/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pedroliska.wordpress.com/1340/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pedroliska.wordpress.com/1340/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pedroliska.wordpress.com/1340/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pedroliska.wordpress.com/1340/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pedroliska.wordpress.com/1340/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pedroliska.wordpress.com/1340/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pedroliska.wordpress.com/1340/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pedroliska.com&#038;blog=7179230&#038;post=1340&#038;subd=pedroliska&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.pedroliska.com/2011/12/19/customizing-the-contact-form-in-outlook-2010/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fa18165cf7e4541a81df39fd3bbb034?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">pedroliska</media:title>
		</media:content>

		<media:content url="http://pedroliska.files.wordpress.com/2011/12/image_thumb3.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://pedroliska.files.wordpress.com/2011/12/image_thumb12.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://pedroliska.files.wordpress.com/2011/12/image_thumb4.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://pedroliska.files.wordpress.com/2011/12/image_thumb5.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://pedroliska.files.wordpress.com/2011/12/image_thumb6.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://pedroliska.files.wordpress.com/2011/12/image_thumb7.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://pedroliska.files.wordpress.com/2011/12/image_thumb8.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://pedroliska.files.wordpress.com/2011/12/image_thumb9.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://pedroliska.files.wordpress.com/2011/12/image_thumb10.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://pedroliska.files.wordpress.com/2011/12/image_thumb11.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>3rd tooth coming out!</title>
		<link>http://blog.pedroliska.com/2011/12/14/3rd-tooth-coming-out/</link>
		<comments>http://blog.pedroliska.com/2011/12/14/3rd-tooth-coming-out/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 05:49:21 +0000</pubDate>
		<dc:creator>Pedro Liska</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">https://pedroliska.wordpress.com/?p=1313</guid>
		<description><![CDATA[Anika has been really fussy lately, specially around bed time. We’ve been cutting down on her acid reflux medicine (per doctor’s orders) and we were worried that maybe that was the cause. But today we saw this: A third tooth is coming! It’s hard to see in the photo so here is a closeup. It’s [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pedroliska.com&#038;blog=7179230&#038;post=1313&#038;subd=pedroliska&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Anika has been really fussy lately, specially around bed time. We’ve been cutting down on her acid reflux medicine (per doctor’s orders) and we were worried that maybe that was the cause. </p>
<p>But today we saw this:</p>
<p><a href="http://pedroliska.files.wordpress.com/2011/12/image.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://pedroliska.files.wordpress.com/2011/12/image_thumb.png?w=465&h=471" width="465" height="471" /></a></p>
<p>A third tooth is coming! It’s hard to see in the photo so here is a closeup. It’s coming on the right side (Anika’s left side) of the two teeth you can clearly see:</p>
<p><a href="http://pedroliska.files.wordpress.com/2011/12/image2.png"><img style="background-image:none;border-bottom:0;border-left:0;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;border-top:0;margin-right:auto;border-right:0;padding-top:0;" title="image" border="0" alt="image" src="http://pedroliska.files.wordpress.com/2011/12/image_thumb2.png?w=422&h=260" width="422" height="260" /></a></p>
<p>She’s growing so fast! She’ll be 8 moths old on the 21st. And hopefully she’ll be acid reflux medicine free in a short while =)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pedroliska.wordpress.com/1313/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pedroliska.wordpress.com/1313/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pedroliska.wordpress.com/1313/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pedroliska.wordpress.com/1313/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pedroliska.wordpress.com/1313/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pedroliska.wordpress.com/1313/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pedroliska.wordpress.com/1313/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pedroliska.wordpress.com/1313/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pedroliska.wordpress.com/1313/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pedroliska.wordpress.com/1313/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pedroliska.wordpress.com/1313/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pedroliska.wordpress.com/1313/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pedroliska.wordpress.com/1313/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pedroliska.wordpress.com/1313/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pedroliska.com&#038;blog=7179230&#038;post=1313&#038;subd=pedroliska&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.pedroliska.com/2011/12/14/3rd-tooth-coming-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fa18165cf7e4541a81df39fd3bbb034?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">pedroliska</media:title>
		</media:content>

		<media:content url="http://pedroliska.files.wordpress.com/2011/12/image_thumb.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>

		<media:content url="http://pedroliska.files.wordpress.com/2011/12/image_thumb2.png" medium="image">
			<media:title type="html">image</media:title>
		</media:content>
	</item>
		<item>
		<title>C# controlled lights via USB port</title>
		<link>http://blog.pedroliska.com/2011/11/15/c-controlled-lights-via-usb-port/</link>
		<comments>http://blog.pedroliska.com/2011/11/15/c-controlled-lights-via-usb-port/#comments</comments>
		<pubDate>Tue, 15 Nov 2011 18:30:00 +0000</pubDate>
		<dc:creator>Pedro Liska</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">https://pedroliska.wordpress.com/2011/11/15/c-controlled-lights-via-usb-port/</guid>
		<description><![CDATA[At work, we thought it would be cool if we could turn on some siren lights when a server goes down. Step #1 to make this happen was to be able to control simple electronics from custom code. I love C# and the USB port is what is common now so I researched and found [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pedroliska.com&#038;blog=7179230&#038;post=1297&#038;subd=pedroliska&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>At work, we thought it would be cool if we could turn on some siren lights when a server goes down.</p>
<p>Step #1 to make this happen was to be able to control simple electronics from custom code. I love C# and the USB port is what is common now so I researched and found the <a href="http://www.sparkfun.com/products/7841" target="_blank">FT245RL</a> “USB to FIFO” chip. This chip made it really easy for me. It plays well with drivers known by Windows.</p>
<span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='495' height='309' src='http://www.youtube.com/embed/c79OTUYQ2gw?version=3&amp;rel=1&amp;fs=1&amp;showsearch=0&amp;showinfo=1&amp;iv_load_policy=1&amp;wmode=transparent' frameborder='0'></iframe></span>
<p>When I plugged in the chip to the USB port, Windows 7 immediately recognized it and installed the drivers for it. You can use a couple of drivers the default is the simpler one to use where it turns the USB port into a virtual serial (COM) port.</p>
<p>Writing to serial ports is really standard so this is the code that outputs a byte through the chip:</p>
<p><pre class="brush: csharp;">
private static void WriteByte(byte byteToWrite)
{
    using (SerialPort vcp = new SerialPort())
    {
        vcp.BaudRate = 9600;
        vcp.DataBits = 8;
        vcp.StopBits = StopBits.One;
        vcp.Parity = Parity.None;
        vcp.PortName = &amp;amp;amp;quot;COM5&amp;amp;amp;quot;;

        vcp.Open();

        vcp.Write(new byte[] { byteToWrite }, 0, 1);

        vcp.Close();

    }

}
</pre></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pedroliska.wordpress.com/1297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pedroliska.wordpress.com/1297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pedroliska.wordpress.com/1297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pedroliska.wordpress.com/1297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pedroliska.wordpress.com/1297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pedroliska.wordpress.com/1297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pedroliska.wordpress.com/1297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pedroliska.wordpress.com/1297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pedroliska.wordpress.com/1297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pedroliska.wordpress.com/1297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pedroliska.wordpress.com/1297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pedroliska.wordpress.com/1297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pedroliska.wordpress.com/1297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pedroliska.wordpress.com/1297/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pedroliska.com&#038;blog=7179230&#038;post=1297&#038;subd=pedroliska&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.pedroliska.com/2011/11/15/c-controlled-lights-via-usb-port/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fa18165cf7e4541a81df39fd3bbb034?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">pedroliska</media:title>
		</media:content>
	</item>
		<item>
		<title>Anika is exploring foods!</title>
		<link>http://blog.pedroliska.com/2011/10/31/anika-is-exploring-foods/</link>
		<comments>http://blog.pedroliska.com/2011/10/31/anika-is-exploring-foods/#comments</comments>
		<pubDate>Mon, 31 Oct 2011 16:48:46 +0000</pubDate>
		<dc:creator>Pedro Liska</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">https://pedroliska.wordpress.com/2011/10/31/anika-is-exploring-foods/</guid>
		<description><![CDATA[People always say “we started giving our baby solid food”.. But is rice cereal and purees solid? I think they say that because it’s shorter than saying “we started giving our baby something other than breast milk and/or formula”. Last Thursday October 27th, Carol gave Anika rice cereal! Anika got a hang of swallowing after [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pedroliska.com&#038;blog=7179230&#038;post=1290&#038;subd=pedroliska&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>People always say “we started giving our baby solid food”.. But is rice cereal and purees solid? I think they say that because it’s shorter than saying “we started giving our baby something other than breast milk and/or formula”.</p>
<p>Last Thursday October 27th, Carol gave Anika rice cereal! Anika got a hang of swallowing after about 4 spoon attempts. She ate about 2 ounces and I think that’s pretty good for being her first time.</p>
<p>I fed Anika for the first time this Saturday. It was fun but it certainly takes longer than just giving her a bottle! At the beginning she was really eager to be eating, but after a while she would wonder and was not ready for the spoon that was coming. So I thought she was not hungry any more, but then Carol gave it a shot and Anika finished the remaining half of the cereal!</p>
<p><a href="http://pedroliska.files.wordpress.com/2011/10/dsc03005.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;margin-right:auto;padding-top:0;border:0;" title="DSC03005" src="http://pedroliska.files.wordpress.com/2011/10/dsc03005_thumb.jpg?w=465&h=263" alt="DSC03005" width="465" height="263" border="0" /></a></p>
<p><a href="http://pedroliska.files.wordpress.com/2011/10/dsc03015.jpg"><img style="background-image:none;padding-left:0;padding-right:0;display:block;float:none;margin-left:auto;margin-right:auto;padding-top:0;border:0;" title="DSC03015" src="http://pedroliska.files.wordpress.com/2011/10/dsc03015_thumb.jpg?w=428&h=322" alt="DSC03015" width="428" height="322" border="0" /></a></p>
<p>The pediatrician suggested trying different foods every 3 days so yesterday (Sunday) we gave her pea puree. We cooked them and then ran them though the food processor with some water; we could see the pea skins but I thought it was not a big deal so we gave her some spoons just like that. Carol then freaked out and said that we really should strain the puree to remove the skins, so we did. I don’t think we needed to but I didn’t mind if we did and Anika didn’t mind either way as well.</p>
<p>She finished 2 ounces of pea puree, she wasn’t as excited as rice cereal so I’m thinking she didn’t love them but thought they were good enough to eat.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pedroliska.wordpress.com/1290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pedroliska.wordpress.com/1290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pedroliska.wordpress.com/1290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pedroliska.wordpress.com/1290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pedroliska.wordpress.com/1290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pedroliska.wordpress.com/1290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pedroliska.wordpress.com/1290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pedroliska.wordpress.com/1290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pedroliska.wordpress.com/1290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pedroliska.wordpress.com/1290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pedroliska.wordpress.com/1290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pedroliska.wordpress.com/1290/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pedroliska.wordpress.com/1290/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pedroliska.wordpress.com/1290/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pedroliska.com&#038;blog=7179230&#038;post=1290&#038;subd=pedroliska&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.pedroliska.com/2011/10/31/anika-is-exploring-foods/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fa18165cf7e4541a81df39fd3bbb034?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">pedroliska</media:title>
		</media:content>

		<media:content url="http://pedroliska.files.wordpress.com/2011/10/dsc03005_thumb.jpg" medium="image">
			<media:title type="html">DSC03005</media:title>
		</media:content>

		<media:content url="http://pedroliska.files.wordpress.com/2011/10/dsc03015_thumb.jpg" medium="image">
			<media:title type="html">DSC03015</media:title>
		</media:content>
	</item>
		<item>
		<title>Bike commuting is over</title>
		<link>http://blog.pedroliska.com/2011/10/31/bike-commuting-is-over/</link>
		<comments>http://blog.pedroliska.com/2011/10/31/bike-commuting-is-over/#comments</comments>
		<pubDate>Mon, 31 Oct 2011 15:31:34 +0000</pubDate>
		<dc:creator>Pedro Liska</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">https://pedroliska.wordpress.com/2011/10/31/bike-commuting-is-over/</guid>
		<description><![CDATA[It has actually been over for a long time but I haven’t posted about it. I didn’t bike to work at all last week. It’s just too dark and I realized that even if I got a front light, cars would see me but I would not be able to see pot holes or other [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pedroliska.com&#038;blog=7179230&#038;post=1285&#038;subd=pedroliska&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>It has actually been over for a long time but I haven’t posted about it. I didn’t bike to work at all last week. It’s just too dark and I realized that even if I got a front light, cars would see me but I would not be able to see pot holes or other obstacles on the road.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/pedroliska.wordpress.com/1285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/pedroliska.wordpress.com/1285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/pedroliska.wordpress.com/1285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/pedroliska.wordpress.com/1285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/pedroliska.wordpress.com/1285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/pedroliska.wordpress.com/1285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/pedroliska.wordpress.com/1285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/pedroliska.wordpress.com/1285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/pedroliska.wordpress.com/1285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/pedroliska.wordpress.com/1285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/pedroliska.wordpress.com/1285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/pedroliska.wordpress.com/1285/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/pedroliska.wordpress.com/1285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/pedroliska.wordpress.com/1285/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.pedroliska.com&#038;blog=7179230&#038;post=1285&#038;subd=pedroliska&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.pedroliska.com/2011/10/31/bike-commuting-is-over/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6fa18165cf7e4541a81df39fd3bbb034?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">pedroliska</media:title>
		</media:content>
	</item>
	</channel>
</rss>
