<?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>uRaNGaTaNG</title>
	<atom:link href="http://www.rngtng.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rngtng.com</link>
	<description>TobiTobes Tech Weblog featuring Ruby, Rails, Web development, Arduino, Processing, Geekstuff and more...</description>
	<lastBuildDate>Thu, 01 Jul 2010 11:36:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Oauth-CLI &#8211; test your Twitter and other OAuth APIs easily</title>
		<link>http://www.rngtng.com/2010/07/01/oauth-cli-test-your-twitter-and-other-oauth-apis-easily/</link>
		<comments>http://www.rngtng.com/2010/07/01/oauth-cli-test-your-twitter-and-other-oauth-apis-easily/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 11:36:10 +0000</pubDate>
		<dc:creator>tobi</dc:creator>
				<category><![CDATA[Ruby, Rails & Co.]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[oauth]]></category>
		<category><![CDATA[oauthc]]></category>
		<category><![CDATA[qype]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.rngtng.com/?p=418</guid>
		<description><![CDATA[By the time I was working at Qype, I often had to deal with OAuth APIs. Doing example request works to a certain point quite good with a Plugin the for Firefox. But when it comes to Authorized or POST Request you&#8217;re stuck! So I developed a tiny command line client, which allows you to [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.rngtng.com/files/2010/07/oauthc.gif" alt="" width="600" height="432" class="aligncenter size-full wp-image-422" /><br />
By the time I was working at Qype, I often had to deal with OAuth APIs. Doing example request works to a certain point quite good with a Plugin the for Firefox. But when it comes to Authorized or POST Request you&#8217;re stuck!</p>
<p>So I developed a tiny command line client, which allows you to send request easily. It comes as a gem and easily to install:</p>
<p><code>gem install oauth-cli</code></p>
<p>After installation, execute <strong>oauthc</strong>. You either make onetime calls, with giving all required data as parameter, or just go into interactive mode, to get a shell for multiple calls and history. For not stating all connection data over and over again, it comes with multiple profile support, a wizard to create those easily and presets for <strong>Twitter and Qype</strong>.</p>
<p>See this nifty example call:<br />
<code>oauthc -p twitter get statuses/friends.json</code></p>
<p>I hope you like it &#8211; Bug reports, suggestions, updates go to: </p>
<p><a href="http://github.com/rngtng/oauth-cli/issues" target="_blank">http://github.com/rngtng/oauth-cli/issues</a></p>
<p>See Readme:</p>
<p><a href="http://github.com/rngtng/oauth-cli/blob/master/README.rdoc" target="_blank">http://github.com/rngtng/oauth-cli/blob/master/README.rdoc</a></p>
<p>See Source:</p>
<p><a href="http://github.com/rngtng/oauth-cli" target="_blank">http://github.com/rngtng/oauth-cli</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2010/07/01/oauth-cli-test-your-twitter-and-other-oauth-apis-easily/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Snow Leopard (Development) System: Ruby, Rails, Arduino &amp; Co.</title>
		<link>http://www.rngtng.com/2010/04/27/my-snow-leopard-development-system-ruby-rails-arduino-co/</link>
		<comments>http://www.rngtng.com/2010/04/27/my-snow-leopard-development-system-ruby-rails-arduino-co/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 08:52:03 +0000</pubDate>
		<dc:creator>tobi</dc:creator>
				<category><![CDATA[Happy Hacking]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[Ruby, Rails & Co.]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[snowleopard]]></category>
		<category><![CDATA[system]]></category>

		<guid isPermaLink="false">http://www.rngtng.com/?p=313</guid>
		<description><![CDATA[Here&#8217;s a (maybe incomplete) list of my Dev System Setup. Mainly for me to remember, but maybe a help for you too: Main Development Setup Snowleopard xCode (or latest iPhone SDK) Mac Ports, now I prefer Homebrew Ruby: rvm + rubygems + rails etc. Database: Mysql 5.1 + Sequel Pro OpenVPN: Tunnelblick, or Cisco VPN [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><img class="aligncenter" src="http://i31.tinypic.com/2mfew7k.jpg" alt="" /></p>
<p>Here&#8217;s a (maybe incomplete) list of my Dev System Setup. Mainly for me to remember, but maybe a help for you too:</p>
<p><strong>Main Development Setup</strong><br />
Snowleopard<br />
xCode (or latest iPhone SDK)<br />
Mac Ports, now I prefer Homebrew<br />
Ruby: rvm + rubygems + rails etc.<br />
Database: Mysql 5.1 + Sequel Pro<br />
OpenVPN: Tunnelblick, or  Cisco VPN client + Shimo VPN Menubar Addon<br />
Terminal Console Extension: SIMBL + Visor<br />
TextMate + Missing Drawer + Get Bundles + Rails + &#8230;<br />
jEdit + FTP + &#8230;<br />
Git + GitX<br />
FTP &amp; Co: Cyberduck<br />
Hudson status: CCMenu<br />
Share Files: Dropbox<br />
Safari + Delicious Safari + ClickToFlash<br />
Firefox + Firebug<br />
Google Chrome</p>
<p><strong>Extended Development</strong><br />
Arduino<br />
Processing<br />
Fritzing<br />
Eclipse</p>
<p><strong>Nice to have:</strong><br />
System Notification: Growl + Growl Mail<br />
Read RSS: NetNewsWire<br />
Skype and Tweetie<br />
Control iTunes: <a href="http://yellowmug.com/sk4it/">SizzlingKeys</a><br />
Last.fm: iScrobbler<br />
All Codecs: <a href="http://www.perian.org/">Perian</a><br />
Dasboard widgets:  IP + App Update<br />
Word replacement: iWork<br />
Keep your Notes: Journler<br />
Extend Finder: TotalFinder</p>
<p><strong>Install hints</strong><br />
<strong>mac ports</strong><br />
<code>sudo port selfupdate<br />
sudo port install git-core +svn +bash_completion<br />
sudo port install ImageMagick +no_x11<br />
sudo port install wget</code></p>
<p><strong>ruby gems</strong></p>
<p><a href="http://stackoverflow.com/questions/991708/rails-mysql-and-snow-leopard" target="_blank">http://stackoverflow.com/questions/991708/rails-mysql-and-snow-leopard</a></p>
<p><code>sudo gem self update<br />
sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/usr/local/mysql/bin/mysql_config<br />
sudo gem install rails<br />
sudo gem install passenger<br />
sudo gem install piston</code></p>
<p><strong>Safari open always in tabs:</strong></p>
<p><a href="http://www.456bereastreet.com/archive/200812/make_safari_open_targeted_links_in_new_tabs_instead_of_new_windows/" target="_blank">http://www.456bereastreet.com/archive/200812/make_safari_open_targeted_links_in_new_tabs_instead_of_new_windows/</a></p>
<p><code>defaults write com.apple.Safari TargetedClicksCreateTabs -bool true </code></p>
<p><strong>Safari enable Development mode:</strong><br />
<code>defaults write com.apple.Safari WebKitDeveloperExtras -bool true<br />
defaults write com.apple.Safari IncludeDebugMenu 1</code></p>
<p><strong>Safari Plugins:</strong></p>
<p><a href="http://alexstaubo.github.com/keywurl/" target="_blank">http://alexstaubo.github.com/keywurl/</a></p>
<p><strong>TextMate install bundle</strong><br />
<code>cd ~/Desktop &amp;&amp; svn co <a href="http://svn.textmate.org/trunk/Review/Bundles/GetBundles.tmbundle/" target="_blank">http://svn.textmate.org/trunk/Review/Bundles/GetBundles.tmbundle/</a></code></p>
<p>Well, that&#8217;s it! Stay tuned for updated&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2010/04/27/my-snow-leopard-development-system-ruby-rails-arduino-co/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>BCD3000 Djay Midi Mappings</title>
		<link>http://www.rngtng.com/2010/04/02/bcd3000-djay-midi-mappings/</link>
		<comments>http://www.rngtng.com/2010/04/02/bcd3000-djay-midi-mappings/#comments</comments>
		<pubDate>Fri, 02 Apr 2010 11:13:26 +0000</pubDate>
		<dc:creator>tobi</dc:creator>
				<category><![CDATA[Happy Hacking]]></category>
		<category><![CDATA[bcd3000]]></category>
		<category><![CDATA[djay]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[mapping]]></category>
		<category><![CDATA[midi]]></category>

		<guid isPermaLink="false">http://www.rngtng.com/?p=399</guid>
		<description><![CDATA[Some while ago I bought this nice Midi Controller BCD3000 by Behringer. It&#8217;s an easy to use device which brings way more fun mixing your MP3. For easy party playing mode I very like Djay, which is a simple but very powerfull mixing software. It now support Midi devices as well! Unfortunately I couldn&#8217;t find [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><a href="http://www.djay-software.com"><img class="aligncenter" src="http://www.djay-software.com/images/screenshot.png?1270204365" alt="" /></a></p>
<p>Some while ago I bought this nice Midi Controller <a href="http://www.behringer.com/EN/Products/BCD3000.aspx">BCD3000 by Behringer</a>. It&#8217;s an easy to use device which brings way more fun mixing your MP3. For easy party playing mode I very like <a href="http://www.djay-software.com/">Djay</a>, which is a simple but very powerfull mixing software. It now support Midi devices as well!<br />
Unfortunately I couldn&#8217;t find any predefined Midi Mappings for Djay and BCD3000. So I created my own. <a href="http://github.com/downloads/rngtng/BCD3000.djayMidiMapping/BCD3000.djayMidiMapping">Please download the file here</a>. For now, all basic features are mapped, I may add sophisticated ones soon. It&#8217;s hosted on github, so please <a href="http://github.com/rngtng/BCD3000.djayMidiMapping">fork it and add you changes</a>.</p>
<p>Happy DJing!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2010/04/02/bcd3000-djay-midi-mappings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My Rails Patch: reload on default scope &#8211; committed!</title>
		<link>http://www.rngtng.com/2010/03/03/my-rails-patch-reload-on-default-scope-committed/</link>
		<comments>http://www.rngtng.com/2010/03/03/my-rails-patch-reload-on-default-scope-committed/#comments</comments>
		<pubDate>Tue, 02 Mar 2010 23:29:00 +0000</pubDate>
		<dc:creator>tobi</dc:creator>
				<category><![CDATA[Lost in Web]]></category>
		<category><![CDATA[default scope]]></category>
		<category><![CDATA[patch]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://www.rngtng.com/?p=386</guid>
		<description><![CDATA[uiuiui, long time no read, as I&#8217;m quite busy lately. Just a quick update, my rails patch - fixing &#8216;reload&#8217; on a AR with default scope - got finally committed &#8211; nice: http://github.com/rails/rails/commit/4db72b702f7faca7da30a64e45daeee13733762a]]></description>
			<content:encoded><![CDATA[<p>uiuiui, long time no read, as I&#8217;m quite busy lately. Just a quick update, my rails patch <em>- fixing &#8216;reload&#8217; on a AR with default scope -</em> got finally committed &#8211; nice:</p>
<p><a href="http://github.com/rails/rails/commit/4db72b702f7faca7da30a64e45daeee13733762a" target="_blank">http://github.com/rails/rails/commit/4db72b702f7faca7da30a64e45daeee13733762a</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2010/03/03/my-rails-patch-reload-on-default-scope-committed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mtXcontrol meets Launchpad meets Rainbowduino</title>
		<link>http://www.rngtng.com/2009/12/30/mtxcontrol-meets-launchpad-meets-rainbowduino/</link>
		<comments>http://www.rngtng.com/2009/12/30/mtxcontrol-meets-launchpad-meets-rainbowduino/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 15:48:44 +0000</pubDate>
		<dc:creator>tobi</dc:creator>
				<category><![CDATA[Arduino & Co.]]></category>
		<category><![CDATA[Controller]]></category>
		<category><![CDATA[launchpad]]></category>
		<category><![CDATA[mtXcontrol]]></category>
		<category><![CDATA[RainbowDuino]]></category>

		<guid isPermaLink="false">http://www.rngtng.com/?p=379</guid>
		<description><![CDATA[That&#8217;s it! I just released mtXcontrol version 1.1 with lot of updates and improvements. One major improvement is full support for Novation Launchpad: just draw your sequences and display them on your Launchpad! Even better, push the buttons to change the color, add, remove, copy &#38; paste frames. For that mtXcontrol makes usage of the [...]]]></description>
			<content:encoded><![CDATA[<p>That&#8217;s it! I just released mtXcontrol version 1.1 with lot of updates and improvements. One major improvement is full support for <a href="http://www.novationmusic.com/products/launchpad">Novation Launchpad</a>: just draw your sequences and display them on your Launchpad! Even better, push the buttons to change the color, add, remove, copy &amp; paste frames. For that mtXcontrol makes usage of the <a href="http://rngtng.github.com/launchpad">Launchpad Processing library</a> which I released some days ago.</p>
<p>But Rainbowduino support improved as well. I fixed lots of bugs and implemented requested features. Now you can control the display brightness, save up to 10 frames onto the device and serial port is auto detected. In general, I defined an basic API to communicate with the devices, which allows you to add more devices easily (e.g. monome!). With that, all Rainbowduino stuff is moved in a separate <a href="http://rngtng.github.com/rainbowduino">Rainbowduino Processing library</a>. </p>
<p><a href="http://www.rngtng.com/2009/12/30/mtxcontrol-meets-launchpad-meets-rainbowduino/"><em>Click here to view the embedded video.</em></a></p>
<p>See official <a href="http://www.rngtng.com/mtXcontrol">mtXcontrol</a> project page for more.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2009/12/30/mtxcontrol-meets-launchpad-meets-rainbowduino/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Here it is: Launchpad Processing lib!</title>
		<link>http://www.rngtng.com/2009/12/20/here-it-is-launchpad-processing-lib/</link>
		<comments>http://www.rngtng.com/2009/12/20/here-it-is-launchpad-processing-lib/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 18:07:23 +0000</pubDate>
		<dc:creator>tobi</dc:creator>
				<category><![CDATA[Happy Hacking]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[launchpad]]></category>
		<category><![CDATA[library]]></category>
		<category><![CDATA[novation]]></category>
		<category><![CDATA[processing]]></category>

		<guid isPermaLink="false">http://www.rngtng.com/?p=374</guid>
		<description><![CDATA[Yay, I finally released my Launchpad Processing Library. Please see it&#8217;s project page and source at github. Videos &#38; more are coming soon. (Yes, this includes an updated mtXcontrol Version with Launchpad support!!)]]></description>
			<content:encoded><![CDATA[<p style="text-align: center"><img class="aligncenter" src="http://www.ubergizmo.com/photos/2009/11/novation-launchpad.jpg" alt="" /></p>
<p>Yay, I finally released  my Launchpad Processing Library. Please see it&#8217;s <a href="http://rngtng.github.com/launchpad/">project page</a> and <a href="http://github.com/rngtng/launchpad">source</a> at github.</p>
<p>Videos &amp; more are coming soon. (Yes, this includes an updated mtXcontrol Version with Launchpad support!!)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2009/12/20/here-it-is-launchpad-processing-lib/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GPG &#8211; up and running with Snow Leopard and Mail.app</title>
		<link>http://www.rngtng.com/2009/11/30/gpg-up-and-running-with-snow-leopard-and-mail-app/</link>
		<comments>http://www.rngtng.com/2009/11/30/gpg-up-and-running-with-snow-leopard-and-mail-app/#comments</comments>
		<pubDate>Mon, 30 Nov 2009 15:23:45 +0000</pubDate>
		<dc:creator>tobi</dc:creator>
				<category><![CDATA[Lost in Web]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[GPG]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[PGP]]></category>
		<category><![CDATA[siging]]></category>
		<category><![CDATA[snow leopard]]></category>

		<guid isPermaLink="false">http://www.rngtng.com/?p=351</guid>
		<description><![CDATA[Ok, I finally managed to set up my GPG Mail System. Thanks to the latest version of GPGMail and gpg (1.4.10) (via macports sudo port install gnupg) it&#8217;s running fine and smooth again with Snow Leopard and Mail.app. Perfect! See MacGPG and GPGMail for more&#8230; Find my GPG-Key here UPDATE: btw. to get GPGP work [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" src="http://3.bp.blogspot.com/_LqGloMJUekI/SAYrvuuEVyI/AAAAAAAAAAc/eorl_nD-4EM/s200/mac-gpg-logo.png" alt="" width="200" height="200" />Ok, I finally managed to set up my GPG Mail System. Thanks to the latest version of <a href="http://twitter.com/humpaaa/status/6081240084">GPGMail</a> and gpg (1.4.10) (via macports <code>sudo port install gnupg</code>)  it&#8217;s running fine and smooth again with Snow Leopard and Mail.app. Perfect!</p>
<p>See <a href="http://macgpg.sourceforge.net/">MacGPG</a> and  <a href="http://www.sente.ch/software/GPGMail/English.lproj/GPGMail.html">GPGMail</a> for more&#8230;</p>
<p><a href="http://gpg-keyserver.de/pks/lookup?op=get&amp;search=0x07918D27FF576091">Find my GPG-Key here</a></p>
<p><strong>UPDATE:</strong> btw. to get GPGP work with gmail, check out <a href="http://getfiregpg.org">FireGPG</a>, a nice plugin for Firefox, which works perfect for me on Mac OS X. Unfortunately I haven&#8217;t found any Safari solution yet&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2009/11/30/gpg-up-and-running-with-snow-leopard-and-mail-app/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>If your ruby serial port doesn&#8217;t read what&#8217; you&#8217;re sending&#8230;</title>
		<link>http://www.rngtng.com/2009/11/27/if-your-ruby-serial-port-doesnt-read-what-youre-sending/</link>
		<comments>http://www.rngtng.com/2009/11/27/if-your-ruby-serial-port-doesnt-read-what-youre-sending/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 16:57:29 +0000</pubDate>
		<dc:creator>tobi</dc:creator>
				<category><![CDATA[Ruby, Rails & Co.]]></category>
		<category><![CDATA[communication]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[launchpad]]></category>
		<category><![CDATA[port]]></category>
		<category><![CDATA[Rails & Co.]]></category>
		<category><![CDATA[serial]]></category>
		<category><![CDATA[serialport]]></category>
		<category><![CDATA[uart]]></category>

		<guid isPermaLink="false">http://www.rngtng.com/?p=334</guid>
		<description><![CDATA[Some days ago I got my Novation launchpad an immediately started hacking with some Ruby and Arduino flavor. I wanted to port ccb23 Raindrops Project to launchpad. For that, I needed Serial communication within ruby. Thanks to ruby-serialport first steps went quite well. I could write OR read from and to Arduino easily. But for [...]]]></description>
			<content:encoded><![CDATA[<p>Some days ago I got my <a href="http://twitter.com/rngtng/status/5792203896">Novation</a> <a href="http://www.novationmusic.com/launchpad/">launchpad</a> an immediately started hacking with some <a href="http://github.com/thomasjachmann/launchpad">Ruby</a> and Arduino flavor. I wanted to port ccb23 <a href="http://vimeo.com/6916458">Raindrops Project</a> to launchpad. </p>
<p>For that, I needed Serial communication within ruby. Thanks to <a href="http://ruby-serialport.rubyforge.org/">ruby-serialport</a> first steps went quite well. I could write OR read from and to Arduino easily. But for some reasons, writing AND reading using the same instance didn&#8217;t work out. </p>
<p>I used a simple &#8216;send-input-back&#8217; sketch on the Arduino side. So every byte I&#8217;m sending is returned back. I checked with the Arduino IDE Serialmonitor and a simple Processing script &#8211; everything worked alright.  But using ruby it was different. Writing to serial port worked okay, but reading from it was just random. Sometimes I read the response, sometime I didn&#8217;t &#8211; really, really weird. Some headaches and a lot of time testing I finally found the solution: just open two instances of the serial port. One for sending, one for reading &#8211; and, surprise, surprise &#8211; it works perfect! Who would have guessed that!? Strange.. </p>
<pre class="brush: ruby;">
// To be completed
require 'serialport'
port_write = Serialport.new()
port_read = Serialport.new()
</pre>
<p>Ok, continuing hacking, more soon&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2009/11/27/if-your-ruby-serial-port-doesnt-read-what-youre-sending/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to sync my mp3 Songs rating in iTunes across multiple Libraries</title>
		<link>http://www.rngtng.com/2009/11/24/how-to-sync-my-mp3-songs-rating-in-itunes-across-multiple-libraries/</link>
		<comments>http://www.rngtng.com/2009/11/24/how-to-sync-my-mp3-songs-rating-in-itunes-across-multiple-libraries/#comments</comments>
		<pubDate>Tue, 24 Nov 2009 16:21:26 +0000</pubDate>
		<dc:creator>tobi</dc:creator>
				<category><![CDATA[Happy Hacking]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[itunes]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[sync]]></category>

		<guid isPermaLink="false">http://www.rngtng.com/?p=338</guid>
		<description><![CDATA[By now, I havn&#8217;t find any good solution to share my mp3 across multiple systems and disks. I&#8217;ve some on my local machine, some at work and some on my external harddisk to archive. Luckily, when copying my tracks to another library duplicates are ignored. But what annoys me most is that my ratings don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>By now, I havn&#8217;t find any good solution to share my mp3 across multiple systems and disks. I&#8217;ve some on my local machine, some at work and some on my external harddisk to archive. Luckily, when copying my tracks to another library duplicates are ignored. But what annoys me most is that my ratings don&#8217;t get copied, as iTunes doesn&#8217;t store it within the file. Some while ago I found a solution by storing the number of stars into the &#8216;Grouping&#8217; Field, so I can recover the rating afterwards. Now, I came up with this little applescript do automate the write and recover process. Just run this script, copy you mp3 to the other library, run the script again, and voilá, you ratings are back &#8211; nice!</p>
<pre class="brush: bash;">
(*  small apple script to save rating into grouping field and
   vice versa. Perfect to persitent store your rating witin the file
*)

tell application &quot;iTunes&quot;
	repeat with stars from 1 to 5
		set rating_value to stars * 20
		set group_name to &quot;&quot; &amp; stars &amp; &quot; Stars&quot;

		set sel to (every track whose rating is rating_value and grouping is &quot;&quot;)
		repeat with aTrack in sel
			tell aTrack
				set grouping to group_name
			end tell
		end repeat

		set sel to (every track whose rating is 0 and grouping is group_name)
		repeat with aTrack in sel
			tell aTrack
				set rating to rating_value
			end tell
		end repeat
	end repeat
end tell
</pre>
<p>Btw. for each Star rating I do have a smart playlist which allows me to find those quickly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2009/11/24/how-to-sync-my-mp3-songs-rating-in-itunes-across-multiple-libraries/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Ruby: a nice way to get name of current method you&#8217;re in:</title>
		<link>http://www.rngtng.com/2009/11/16/ruby-a-nice-way-to-get-name-of-current-method-youre-in/</link>
		<comments>http://www.rngtng.com/2009/11/16/ruby-a-nice-way-to-get-name-of-current-method-youre-in/#comments</comments>
		<pubDate>Mon, 16 Nov 2009 16:39:52 +0000</pubDate>
		<dc:creator>tobi</dc:creator>
				<category><![CDATA[Ruby, Rails & Co.]]></category>
		<category><![CDATA[method]]></category>
		<category><![CDATA[Rails & Co.]]></category>

		<guid isPermaLink="false">http://www.rngtng.com/?p=318</guid>
		<description><![CDATA[This is a nice extension to get the name of the method you&#8217;re currently in (Ruby &#60; 1.9) module Kernel private def this_method caller[0] =~ /`([^']*)'/ and $1 end end for Ruby &#62;= 1.9 you can uses this: module Kernel private def this_method __method__ end end [see Stack Over Flow as well]]]></description>
			<content:encoded><![CDATA[<p>This is a nice extension to get the name of the method you&#8217;re currently in (Ruby &lt; 1.9)</p>
<pre class="brush: ruby;">
module Kernel
   private
   def this_method
     caller[0] =~ /`([^']*)'/ and $1
   end
end
</pre>
<p>for Ruby &gt;= 1.9 you can uses this:</p>
<pre class="brush: ruby;">
module Kernel
   private
   def this_method
     __method__
   end
end
</pre>
<p>[see <a href="http://stackoverflow.com/questions/199527/get-the-name-of-the-currently-executing-method-in-ruby">Stack Over Flow</a> as well]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rngtng.com/2009/11/16/ruby-a-nice-way-to-get-name-of-current-method-youre-in/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
