<?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>JR&#039;s computing corner</title>
	<atom:link href="http://blog.gschaden.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.gschaden.com</link>
	<description>gschaden, computing, rails</description>
	<lastBuildDate>Tue, 14 Dec 2010 21:04:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Moved transcoding process to Amazon EC2</title>
		<link>http://blog.gschaden.com/2010/09/26/moved-transcoding-process-to-amazon-ec2/</link>
		<comments>http://blog.gschaden.com/2010/09/26/moved-transcoding-process-to-amazon-ec2/#comments</comments>
		<pubDate>Sun, 26 Sep 2010 17:52:16 +0000</pubDate>
		<dc:creator>gerhard</dc:creator>
				<category><![CDATA[computing]]></category>
		<category><![CDATA[cloud computing]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[railscasts]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://blog.gschaden.com/?p=146</guid>
		<description><![CDATA[It was quite easy to move the transcoding process for the railscasts podcast to an EC2 instance. I installed an ubuntu instance similar to the vm I used before, and added a cronjob on my home pc to automatically start, stop the instance and run the transcoding process via ssh. Most of the work is [...]]]></description>
			<content:encoded><![CDATA[<p>It was quite easy to move the transcoding process for the railscasts podcast to an EC2 instance. I installed an ubuntu instance similar to the vm I used before, and added a cronjob on my home pc to automatically start, stop the instance and run the transcoding process via ssh. </p>
<p>Most of the work is done through the Amazon APIs.</p>
<pre>
#!/usr/bin/env ruby
# simply run job on ec2 instance
#
# Author: gschaden at gmail dot com
# Date: August 2010
# Version: 1.0
#
# connect to amazon ec2 and start an existing instance
# after the instance has booted, run commands via ssh (public key, authentication)
# then stop the instance
# if the job takes to long, it is aborted
#
# This script requires following gems
#   amazon-ec2
#   net-ssh
#   system_timer
#

require 'rubygems'

require 'AWS'
require 'net/ssh'
require 'system_timer'

AWS_ACCESS_KEY_ID = 'PUT KEY HERE'
AWS_SECRET_ACCESS_KEY = 'PUT SECRET KEY HERE'

# path to pem file, e.g /home/gschaden/.ssh/ec2.pem
SSH_KEY = 'PATH TO SSH KEY' 

# command to execute
REMOTE_CMD = 'transcode.sh'

# instance id, eg. i-3dfb8edf
INSTANCE_ID="PUT INSTANCE ID HERE"
JOB_TIMEOUT=10*60 #seconds

exit_code = 0

begin
   conn = AWS::EC2::Base.new(:access_key_id => AWS_ACCESS_KEY_ID, :secret_access_key => AWS_SECRET_ACCESS_KEY)

   # start your instance
   puts "----- start instance -----"
   conn.start_instances(:instance_id => [INSTANCE_ID])

   # wait for your instance to start up
   puts "----- listing instances -----"
   while true do
      instances=conn.describe_instances(:instance_id => [INSTANCE_ID])
      state = instances.reservationSet.item[0].instancesSet.item[0].instanceState.name
      break if state == "running"
      puts "waiting"
      sleep 1
   end

   ip_address=instances.reservationSet.item[0].instancesSet.item[0].ipAddress
  sleep 10
   puts "----- running ssh #{ip_address} ------"
   SystemTimer.timeout(JOB_TIMEOUT) do
      begin
         Net::SSH.start( ip_address, 'ubuntu', :keys => [SSH_KEY] ) do |session|
            puts session.exec!(REMOTE_CMD)
         end
      rescue Timeout::Error
         puts "Job timeout"
         exit_code = 1
      rescue SocketError
         puts "Could not connect to your instance"
         exit_code = 1
      end
   end

   puts "----- stop instance -----"
   puts conn.stop_instances(:instance_id => [INSTANCE_ID])

   puts "----- listing instances -----"
   while true do
      instances=conn.describe_instances(:instance_id => [INSTANCE_ID])
      state = instances.reservationSet.item[0].instancesSet.item[0].instanceState.name
      break if state == "stopped"
      puts "waiting"
      sleep 1
   end
rescue AWS::InvalidInstanceIDMalformed
   puts "Invalid instance id"
   exit_code = 1
rescue AWS::AuthFailure
   puts "Invalid credential, check access access_key_id and secret_access_key"
   exit_code = 1
rescue SocketError
   puts "Could not connect to EC2: ",$!
   exit_code = 1
end
exit exit_code
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.gschaden.com/2010/09/26/moved-transcoding-process-to-amazon-ec2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Asterisk – Skype – Gateway</title>
		<link>http://blog.gschaden.com/2010/06/05/asterisk-%e2%80%93-skype-gateway/</link>
		<comments>http://blog.gschaden.com/2010/06/05/asterisk-%e2%80%93-skype-gateway/#comments</comments>
		<pubDate>Sat, 05 Jun 2010 00:29:32 +0000</pubDate>
		<dc:creator>gerhard</dc:creator>
				<category><![CDATA[computing]]></category>

		<guid isPermaLink="false">http://www.gschaden.com/wp/2010/06/05/asterisk-%e2%80%93-skype-gateway/</guid>
		<description><![CDATA[Heute habe ich ein SIP 2 Skype Gateway gebaut. Dafür hab ich meine Asterisk Telefonanlage mit Hilfe der SipToSis SIP Skype Bridge (http://www.mhspot.com/sts/) verbunden. Es ist nun ganz einfach möglich von jedem Sip Telefon aus Skype Kontakte anzurufen. Umgekehrt werden eingehende Skype-Anrufe zu einem Voice Menü weitergeleitet. Dort kann man dann die gewünschte Nebenstelle wählen.]]></description>
			<content:encoded><![CDATA[<p>Heute habe ich ein SIP 2 Skype Gateway gebaut. Dafür hab ich meine Asterisk Telefonanlage mit Hilfe der <a href="-=-([ezMigrate_tag])-=-http://www.mhspot.com/sts/siptosis_download.php" target="_blank">SipToSis SIP Skype Bridge</a> (<a href="-=-([ezMigrate_tag])-=-http://www.mhspot.com/sts/">http://www.mhspot.com/sts/</a>) verbunden. Es ist nun ganz einfach möglich von jedem Sip Telefon aus Skype Kontakte anzurufen. Umgekehrt werden eingehende Skype-Anrufe zu einem Voice Menü weitergeleitet. Dort kann man dann die gewünschte Nebenstelle wählen.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.gschaden.com/2010/06/05/asterisk-%e2%80%93-skype-gateway/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Railscasts feed moved</title>
		<link>http://blog.gschaden.com/2009/12/13/railscasts-feed-moved/</link>
		<comments>http://blog.gschaden.com/2009/12/13/railscasts-feed-moved/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 10:59:41 +0000</pubDate>
		<dc:creator>gerhard</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.gschaden.com/wp/?p=126</guid>
		<description><![CDATA[I moved the podcast management to feedburner, please update the feed URL to http://feeds.feedburner.com/gschaden/railscasts -GES]]></description>
			<content:encoded><![CDATA[<p>I moved the podcast management to feedburner, please update the feed URL to</p>
<p>http://feeds.feedburner.com/gschaden/railscasts</p>
<p>-GES</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.gschaden.com/2009/12/13/railscasts-feed-moved/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Railscasts for Android</title>
		<link>http://blog.gschaden.com/2009/08/14/railscasts-for-android/</link>
		<comments>http://blog.gschaden.com/2009/08/14/railscasts-for-android/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 06:03:05 +0000</pubDate>
		<dc:creator>gerhard</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[computing]]></category>

		<guid isPermaLink="false">http://www.gschaden.com/wp/?p=107</guid>
		<description><![CDATA[I realy like the railscasts screencast by Ryan Bates, but the video does not work on my new htc magic. So I encoded these with another codec suitable for viewing on an android phone. This feed will automatically updated if there are new episodes. The new link to the rss feed: http://feeds.feedburner.com/gschaden/railscasts http://www.gschaden.com/railscasts/android Original railscasts [...]]]></description>
			<content:encoded><![CDATA[<p>I realy like the railscasts screencast by Ryan Bates, but the video does not work on my new htc magic. So I encoded these with another codec suitable for viewing on an android phone. This feed will automatically updated if there are new episodes.</p>
<p>The new link to the rss feed:</p>
<p>http://feeds.feedburner.com/gschaden/railscasts</p>
<p><span style="text-decoration: line-through;"><strong>http://www.gschaden.com/railscasts/android</strong></span></p>
<p><strong><br />
</strong></p>
<p><a href="http://feeds.feedburner.com/gschaden/railscasts"><img class="alignnone" src="http://railscasts.com/images/logo.png?1292024197" alt="" width="452" height="88" /></a><br />
<a href="-=-([ezMigrate_tag])-=-http://railscasts.com/"><br />
Original railscasts site<br />
</a></p>
<p>Please report any problems about the video here.</p>
<p>The script to convert the screencast can be downloaded <a href="-=-([ezMigrate_tag])-=-http://www.gschaden.com/railscasts/readrss.rb">here</a>.</p>
<p>The most interesting part is the call to mencoder to encode the video</p>
<p><code>mencoder src.mov -o dest.mp4 -of lavf -lavfopts format=mp4 -ss 1 -sws 2 -vf scale=480:320 -ovc x264 -x264encopts crf=30.0:nocabac:level_idc=30:global_header:threads=2 -ofps 30000/1001 -oac faac -faacopts mpeg=4:object=2:br=128:raw -channels 2 -srate 44100 -af volnorm</code></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.gschaden.com/2009/08/14/railscasts-for-android/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Vista Problemchen</title>
		<link>http://blog.gschaden.com/2009/02/21/vista-problemchen/</link>
		<comments>http://blog.gschaden.com/2009/02/21/vista-problemchen/#comments</comments>
		<pubDate>Sat, 21 Feb 2009 17:06:24 +0000</pubDate>
		<dc:creator>gerhard</dc:creator>
				<category><![CDATA[Vista]]></category>

		<guid isPermaLink="false">http://www.gschaden.com/wp/2009/02/21/vista-problemchen/</guid>
		<description><![CDATA[Hin und wieder hat man es dann nicht leicht mit dem Vista. Heute ist mir aufgefallen, dass VBS Skripts nicht mehr funktionieren. DafÃ¼r habe ich dann nach langem Suchen eine LÃ¶sung gefunden. Winhelponline]]></description>
			<content:encoded><![CDATA[<p>Hin und wieder hat man es dann nicht leicht mit dem Vista. Heute ist mir aufgefallen, dass VBS Skripts nicht mehr funktionieren. DafÃ¼r habe ich dann nach langem Suchen eine LÃ¶sung gefunden.</p>
<p><a href="http://www.winhelponline.com/blog/error-there-is-no-script-engine-for-file-extension-when-running-vbs-files/">Winhelponline</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.gschaden.com/2009/02/21/vista-problemchen/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FHEM iPhone Gateway</title>
		<link>http://blog.gschaden.com/2009/01/18/fhem-iphone-gateway/</link>
		<comments>http://blog.gschaden.com/2009/01/18/fhem-iphone-gateway/#comments</comments>
		<pubDate>Sun, 18 Jan 2009 01:13:05 +0000</pubDate>
		<dc:creator>gerhard</dc:creator>
				<category><![CDATA[computing]]></category>

		<guid isPermaLink="false">http://www.gschaden.com/wp/2009/01/18/fhem-iphone-gateway/</guid>
		<description><![CDATA[fhemgw ist ein Skript, welches ein Gateway zwischen dem fhem.pl Skript und dem iPhone schafft. Das Gatway ist in PHP entwickelt und bietet derzeit folgende Funktionen. Anzeige der FS20 Komponenten und schalten der Funktionen Anzeige der KS300 Komponenten Anzeige eines Graphen für die Temperaturentwicklung Sceenshots: Download: Version 1.0]]></description>
			<content:encoded><![CDATA[<p>fhemgw ist ein Skript, welches ein Gateway zwischen dem <a href="-=-([ezMigrate_tag])-=-http://www.koeniglich.de/fhem/fhem.html">fhem.pl</a> Skript und dem iPhone schafft.</p>
<p>Das Gatway ist in PHP entwickelt und bietet derzeit folgende Funktionen.</p>
<ul>
<li>Anzeige der FS20 Komponenten und schalten der Funktionen</li>
<li>
<div>Anzeige der KS300 Komponenten</div>
<ul>
<li>Anzeige eines Graphen für die Temperaturentwicklung</li>
</ul>
</li>
</ul>
<p>Sceenshots:</p>
<p><a href="/wp-content/uploads/2009/01/011809-0113-fhemiphoneg3.png"><img src="/wp-content/uploads/2009/01/011809-0113-fhemiphoneg3.png" alt="" title="011809-0113-fhemiphoneg3.png" width="180" height="269" class="alignnone size-full wp-image-38" /></a><br />
<a href="/wp-content/uploads/2009/01/011809-0113-fhemiphoneg2.png"><img src="/wp-content/uploads/2009/01/011809-0113-fhemiphoneg2.png" alt="" title="011809-0113-fhemiphoneg2.png" width="180" height="269" class="alignnone size-full wp-image-37" /></a><br />
<a href="/wp-content/uploads/2009/01/011809-0113-fhemiphoneg1.png"><img src="/wp-content/uploads/2009/01/011809-0113-fhemiphoneg1.png" alt="" title="011809-0113-fhemiphoneg1.png" width="180" height="269" class="alignnone size-full wp-image-36" /></a><br />
Download:</p>
<p><a href="http://www.gschaden.com/iphone/fhemgw-0.1.tar.gz">Version 1.0</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.gschaden.com/2009/01/18/fhem-iphone-gateway/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>mp3 to Audiobook</title>
		<link>http://blog.gschaden.com/2008/08/03/mp3-to-audiobook/</link>
		<comments>http://blog.gschaden.com/2008/08/03/mp3-to-audiobook/#comments</comments>
		<pubDate>Sun, 03 Aug 2008 18:13:02 +0000</pubDate>
		<dc:creator>gerhard</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.gschaden.com/wp/2008/08/03/mp3-to-audiobook/</guid>
		<description><![CDATA[Heute habe ich mir endlich ein Skript geschrieben, dass es mir ermÃƒÂ¶glicht Audiobooks aus mp3 Dateien so zu generieren, sodass mein iTunes fÃƒÂ¼r jedes Buch separat die Position speichert und auch synchronisiert. Bisher habe ich die einzelnen mp3 Dateien zu einer Playliste zusammengefasst und so abgespielt, leider vergisst der iPod nach jeder Synchronisierung meine letze [...]]]></description>
			<content:encoded><![CDATA[<p>Heute habe ich mir endlich ein Skript geschrieben, dass es mir ermÃƒÂ¶glicht Audiobooks aus mp3 Dateien so zu generieren, sodass mein iTunes fÃƒÂ¼r jedes Buch separat die Position speichert und auch synchronisiert.  Bisher habe ich die einzelnen mp3 Dateien zu einer Playliste zusammengefasst und so abgespielt, leider vergisst der iPod nach jeder Synchronisierung meine letze Position in der Playliste.
</p>
<p>Download: <a href="http://www.gschaden.com/ab/mp3toaudiobook.zip">http://www.gschaden.com/ab/mp3toaudiobook.zip</a>
	</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.gschaden.com/2008/08/03/mp3-to-audiobook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Word 2007 als Blogeditor</title>
		<link>http://blog.gschaden.com/2008/07/25/word-2007-als-blogeditor/</link>
		<comments>http://blog.gschaden.com/2008/07/25/word-2007-als-blogeditor/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 12:20:25 +0000</pubDate>
		<dc:creator>gerhard</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.gschaden.com/wp/2008/07/25/word-2007-als-blogeditor/</guid>
		<description><![CDATA[Irgendwie bin ich ÃƒÂ¼ber die Funktion gestolpert, mal schauen was da so alles mÃƒÂ¶glich ist. Ã‚Â  Ã‚Â  Ã‚Â ]]></description>
			<content:encoded><![CDATA[<p>Irgendwie bin ich ÃƒÂ¼ber die Funktion gestolpert, mal <strong>schauen</strong> was da so alles mÃƒÂ¶glich ist.
</p>
<p><img src="http://www.gschaden.com/wp/wp-content/uploads/2008/07/072508-1220-word2007als1.png" alt=""/>
	</p>
<p>Ã‚Â <br />
Ã‚Â </p>
<p><img src="http://www.gschaden.com/wp/wp-content/uploads/2008/07/072508-1220-word2007als2.png" alt=""/>
	</p>
<p>
Ã‚Â </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.gschaden.com/2008/07/25/word-2007-als-blogeditor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mika als Kamerafrau</title>
		<link>http://blog.gschaden.com/2008/04/06/mika-als-kamerafrau/</link>
		<comments>http://blog.gschaden.com/2008/04/06/mika-als-kamerafrau/#comments</comments>
		<pubDate>Sun, 06 Apr 2008 18:03:28 +0000</pubDate>
		<dc:creator>gerhard</dc:creator>
				<category><![CDATA[haus]]></category>
		<category><![CDATA[catcam mika]]></category>

		<guid isPermaLink="false">http://www.gschaden.com/wp/?p=12</guid>
		<description><![CDATA[Beim Surfen bin ich ÃƒÂ¼ber Mr Lee Cat Cam gestolpert; das musste ich natÃƒÂ¼rlich gleich ausprobieren. Nachdem ich letzte Woche die Kamera erhalten habe, war es nun am WE an der Zeit die ersten Fotos zu machen, oder besser machen zu lassen. Kimi weigert sich die Kamera zu tragen, aber Mika findet nichst besonderes dabei. [...]]]></description>
			<content:encoded><![CDATA[<p>Beim Surfen bin ich ÃƒÂ¼ber <a href="http://www.mr-lee-catcam.de/" target="_blank">Mr Lee Cat Cam</a> gestolpert; das musste ich natÃƒÂ¼rlich gleich ausprobieren. Nachdem ich letzte Woche die Kamera erhalten habe, war es nun am WE an der Zeit die ersten Fotos zu machen, oder besser machen zu lassen.</p>
<p>Kimi weigert sich die Kamera zu tragen, aber <a href="http://www.flickr.com/photos/wranner/458952844/">Mika</a> findet nichst besonderes dabei. Weiter Bilder gibts unter<a href="http://picasaweb.google.com/gschaden/Catcam" target="_self"> picasaweb.</a></p>
<p><a href="http://picasaweb.google.com/gschaden/Catcam" target="_self"><img src="http://lh5.google.com/gschaden/R_i2JBdU-1I/AAAAAAAAAd8/QJT4TSZeVBE/IMG_0118.JPG.jpg?imgmax=720" alt="" width="360" height="288" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.gschaden.com/2008/04/06/mika-als-kamerafrau/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Insel erkunden</title>
		<link>http://blog.gschaden.com/2007/07/21/insel-erkunden/</link>
		<comments>http://blog.gschaden.com/2007/07/21/insel-erkunden/#comments</comments>
		<pubDate>Sat, 21 Jul 2007 16:41:13 +0000</pubDate>
		<dc:creator>gerhard</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.schaden.ws/wp/2007/07/21/insel-erkunden/</guid>
		<description><![CDATA[Nach langem hin und her haben wir uns heute ein Moped ausgeliehen und sind damit den ganzen Tag quer ÃƒÂ¼ber die Insel gedÃƒÂ¼st. Karte Photos dazu gibts hier.]]></description>
			<content:encoded><![CDATA[<p>Nach langem hin und her haben wir uns heute ein Moped ausgeliehen und sind damit den ganzen Tag quer ÃƒÂ¼ber die Insel gedÃƒÂ¼st. <a href="http://maps.google.com/maps/ms?ie=UTF8&#038;t=h&#038;om=1&#038;msa=0&#038;msid=105768738755997655383.000435c828dc81a0fac59&#038;ll=7.867463,98.364372&#038;spn=0.209156,0.362549&#038;z=12">Karte</a></p>
<p>Photos dazu gibts <a href="http://picasaweb.google.de/gschaden/Thailand2007">hier.</a></p>
<p><a href="http://picasaweb.google.de/gschaden/Thailand2007"><img align="bottom" src="http://lh6.google.de/gschaden/RqIzSo-FSvI/AAAAAAAAADY/7DdytcxdogY/s144/CIMG1199.JPG" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.gschaden.com/2007/07/21/insel-erkunden/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

