<?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/"
	>

<channel>
	<title>Eia The Nerd</title>
	<atom:link href="http://eiathenerd.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://eiathenerd.com</link>
	<description>Whatever comes to mind</description>
	<lastBuildDate>Tue, 15 May 2012 07:50:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Home.Control &#8211; Alpha source code</title>
		<link>http://eiathenerd.com/2011/04/01/home-control-alpha-source-code/</link>
		<comments>http://eiathenerd.com/2011/04/01/home-control-alpha-source-code/#comments</comments>
		<pubDate>Fri, 01 Apr 2011 08:35:59 +0000</pubDate>
		<dc:creator>eia</dc:creator>
				<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://eiathenerd.com/?p=52</guid>
		<description><![CDATA[In case you didn&#8217;t notice, I released the source code for the proof of concept Home.Control on github. Please note that the code is by no means clean and that it&#8217;s very, very far from finished. I&#8217;ve just started refactoring the code a bit, always check github for the latest version!]]></description>
			<content:encoded><![CDATA[<p>In case you didn&#8217;t notice, I released the source code for the proof of concept <a href="https://github.com/eirikh/Home.Control">Home.Control on github</a>. Please note that the code is by no means clean and that it&#8217;s very, very far from finished. I&#8217;ve just started refactoring the code a bit, always check github for the latest version!</p>
]]></content:encoded>
			<wfw:commentRss>http://eiathenerd.com/2011/04/01/home-control-alpha-source-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Home.Control &#8211; Proof of concept</title>
		<link>http://eiathenerd.com/2011/03/31/home-control-proof-of-concept/</link>
		<comments>http://eiathenerd.com/2011/03/31/home-control-proof-of-concept/#comments</comments>
		<pubDate>Thu, 31 Mar 2011 08:29:55 +0000</pubDate>
		<dc:creator>eia</dc:creator>
				<category><![CDATA[Projects]]></category>

		<guid isPermaLink="false">http://eiathenerd.com/?p=6</guid>
		<description><![CDATA[I&#8217;ve been thinking about this little project for a while and finally had some hours last week to put a proof of concept together. I hereby present Home.Control: It&#8217;s a sort of status and control touch screen you mount on your wall (in-wall mount is probably coolest, more on that later). I&#8217;m going to mount the [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been thinking about this little project for a while and finally had some hours last week to put a proof of concept together. I hereby present Home.Control:</p>
<p><a href="http://eiathenerd.com/2011/03/31/home-control-proof-of-concept/"><em>Click here to view the embedded video.</em></a></p>
<p>It&#8217;s a sort of <strong>status and control touch screen</strong> you mount on your wall (in-wall mount is probably coolest, more on that later). I&#8217;m going to mount the screen in my hallway so that when I&#8217;m about to leave from the house I can know what time it is, what the weather is like outside, my agenda for the day, switch off all the lights (and turn everything back on when I return) and check if my g/f has uploaded any new images to our Picasa Web Albums account.</p>
<p><strong><br />
Current features</strong></p>
<ul>
<li>The current time and date</li>
<li>Weather conditions</li>
<li>Calendar agenda</li>
<li>Weather forecast</li>
<li>Full calendar view</li>
<li>Lights/unit control (switch lights/appliances on/off using TellStick)</li>
<li>Latest images uploaded to Picasa Web Albums</li>
<li>Anything else I would like to display, e.g. my TODO list, access to Evernote etc</li>
</ul>
<p><strong><br />
Some screenshots:</strong></p>
<p><em>Home view</em> (when the screen is idle it turns back to this view &#8211; current time, date, weather and calendar agenda)<br />
<img src="http://cantusalpha.no/home.control/1-Home.png" alt="Home.Control screenshot" /></p>
<p><em>Calendar</em> (embedded, interactive Google Calendar)<br />
<img src="http://cantusalpha.no/home.control/2-Cal.png" alt="Home.Control screenshot" /></p>
<p><em>Weather forecast</em> (always updated, source: yr.no)<br />
<img src="http://cantusalpha.no/home.control/3-Weather.png" alt="Home.Control screenshot" /></p>
<p><em>Lights/appliances control</em> (using TellStick)<br />
<img src="http://cantusalpha.no/home.control/4-Lights.png" alt="Home.Control screenshot" /></p>
<p><em>Photos</em> (latest x photos from Picasa Web Albums)<br />
<img src="http://cantusalpha.no/home.control/5-Photos.png" alt="Home.Control screenshot" /></p>
<p>&nbsp;</p>
<p><strong>Technical details</strong></p>
<p>Mac Mini (web server, hosting the Home.Control web app), iPhone 2g (client + touch screen), Apache, php, Google data API, TellStick device (www.telldus.se), jQuery. All info Home.Control displays is updated regularly using AJAX. The TellStick device is plugged into the Mac Mini.</p>
<p>31th of March 2011: <a href="https://github.com/eirikh/Home.Control">Proof of concept code available!</a></p>
<p><strong><br />
Next steps<br />
</strong></p>
<ul>
<li>Optimize and refine code (it&#8217;s all chaotic now, proof-of-concept style)</li>
<li>In-wall mount, I&#8217;m thinking something along the lines of <a href="http://appadvice.com/appnn/2010/06/ipad-wall-mount-designer-treatment/">what Arodsin Redningar did with his iPad</a>:<img src="http://wp.appadvice.com/wp-content/uploads/2010/06/capsuleanglesmall.jpg" alt="iPad wall mount" /></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://eiathenerd.com/2011/03/31/home-control-proof-of-concept/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bash / linux terminal script to check if new / unread email in gmail</title>
		<link>http://eiathenerd.com/2010/02/18/bash-linux-terminal-script-to-check-if-new-unread-email-in-gmail/</link>
		<comments>http://eiathenerd.com/2010/02/18/bash-linux-terminal-script-to-check-if-new-unread-email-in-gmail/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 13:20:34 +0000</pubDate>
		<dc:creator>eia</dc:creator>
				<category><![CDATA[For-the-especially-interested-dept]]></category>

		<guid isPermaLink="false">http://eiathenerd.com/?p=48</guid>
		<description><![CDATA[Using a TellStick I wanted to switch on a light whenever I had unread e-mail on my Gmail account. So I created this simple bash script and made it run regularly using cron: #!/bin/bash RET=`curl -u user@gmail.com:yourpwd &#8211;silent &#8220;https://mail.google.com/mail/feed/atom&#8221; &#124; perl -ne &#8216;print &#8220;1&#8243; if /&#60;(fullcount)&#62;[^0]&#60;\/\1&#62;/;&#8217;` if [ "$RET" = "1" ] ; then tdtool &#8211;on 6 [...]]]></description>
			<content:encoded><![CDATA[<p>Using a <a href="http://www.telldus.se">TellStick</a> I wanted to switch on a light whenever I had unread e-mail on my Gmail account. So I created this simple bash script and made it run regularly using cron:</p>
<blockquote><p>#!/bin/bash<br />
RET=`curl -u user@gmail.com:yourpwd &#8211;silent &#8220;https://mail.google.com/mail/feed/atom&#8221; | perl -ne &#8216;print &#8220;1&#8243; if /&lt;(fullcount)&gt;[^0]&lt;\/\1&gt;/;&#8217;`<br />
if [ "$RET" = "1" ] ; then<br />
tdtool &#8211;on 6<br />
else<br />
tdtool &#8211;off 6<br />
fi</p></blockquote>
<p>Run <em>crontab -e</em> in a terminal and add this line to make the script run every 2 minutes:</p>
<blockquote><p>*/2 * * * * ~/.scripts/checkEmail.sh &amp;&gt; /dev/null</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://eiathenerd.com/2010/02/18/bash-linux-terminal-script-to-check-if-new-unread-email-in-gmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Checking if a screen session is already running, keeping it alive</title>
		<link>http://eiathenerd.com/2007/04/18/checking-if-a-screen-session-is-already-running-keeping-it-alive/</link>
		<comments>http://eiathenerd.com/2007/04/18/checking-if-a-screen-session-is-already-running-keeping-it-alive/#comments</comments>
		<pubDate>Wed, 18 Apr 2007 20:24:16 +0000</pubDate>
		<dc:creator>eia</dc:creator>
				<category><![CDATA[For-the-especially-interested-dept]]></category>

		<guid isPermaLink="false">http://eiathenerd.com/?p=39</guid>
		<description><![CDATA[I&#8217;m somewhat new to screen and bash-scripting and was looking for how to keep one of my screen sessions alive even after a system reboot. I tried searching on Google, but had a hard time finding exactly what I wanted. This is what I ended up with using cron: Made a check script: #!/bin/bash foo=`screen [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m somewhat new to screen and bash-scripting and was looking for how to keep one of my screen sessions alive even after a system reboot. I tried searching on Google, but had a hard time finding exactly what I wanted. This is what I ended up with using cron:</p>
<p>Made a check script:</p>
<blockquote><p>#!/bin/bash<br />
foo=`screen -ls | grep -c autostart.screen`<br />
if [ "$foo" -eq "0" ]; then<br />
/usr/bin/screen -dmS autostart.screen /usr/bin/irssi -c freenode<br />
fi</p></blockquote>
<p>I named it checkIrssi.sh and made it executable with:</p>
<blockquote><p>chmod 755 checkIrssi.sh</p></blockquote>
<p>Then I put up a cron using &#8220;crontab -e&#8221; to run the script every hour:</p>
<blockquote><p>* */1 * * * ~/path/to/checkIrssi.sh</p></blockquote>
<p>And badabing!</p>
]]></content:encoded>
			<wfw:commentRss>http://eiathenerd.com/2007/04/18/checking-if-a-screen-session-is-already-running-keeping-it-alive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Should you defragment your Windows iPod?</title>
		<link>http://eiathenerd.com/2007/02/20/should-you-defragment-your-windows-ipod/</link>
		<comments>http://eiathenerd.com/2007/02/20/should-you-defragment-your-windows-ipod/#comments</comments>
		<pubDate>Tue, 20 Feb 2007 23:43:03 +0000</pubDate>
		<dc:creator>eia</dc:creator>
				<category><![CDATA[For-the-especially-interested-dept]]></category>

		<guid isPermaLink="false">http://eiathenerd.com/?p=37</guid>
		<description><![CDATA[I asked myself that question today and after some Googling, I concluded: Most people agree that the extra stress and potential failure a defragmentation inflicts on your iPod&#8217;s hard drive, is more harmful than the extra work your drive will have to do when playing back fragmented songs. Now, I&#8217;m a bit of a control [...]]]></description>
			<content:encoded><![CDATA[<p>I asked myself that question today and after some Googling, I concluded:</p>
<p><a href="http://www.ilounge.com/index.php/faqs/answers/do-i-need-to-defragment-my-ipods-hard-drive/">Most</a> <a href="http://blogs.geekdojo.net/brian/archive/2004/11/10/ipodfragging.aspx">people</a> <a href="http://www.techography.com/article.php?story=20050505110613918">agree</a> <a href="http://forums.ipodhacks.com/showthread.php?threadid=9809">that</a> the extra stress and potential failure a defragmentation inflicts on your iPod&#8217;s hard drive, is more harmful than the extra work your drive will have to do when playing back fragmented songs. Now, I&#8217;m a bit of a control freak and all though I&#8217;m in no actual control of how things are stored on the iPod, I tend to do a complete restore about every year, to clean up the iPod&#8217;s database and transfer my entire music collection in a contiguous manner to the iPod&#8217;s drive. Doing so will hopefully keep my <a href="http://www.wired.com/news/mac/0,2125,65424,00.html">iPod safe, longer lasting (battery wise) and fragmentation free</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://eiathenerd.com/2007/02/20/should-you-defragment-your-windows-ipod/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

