<?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>Simone Dall&#039;Angelo</title>
	<atom:link href="http://dallangelo.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://dallangelo.com</link>
	<description>IT consultant, developer, photographer and entrepreneur</description>
	<lastBuildDate>Sat, 27 Nov 2010 08:32:32 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.1</generator>
		<item>
		<title>I&#8217;m not happy Grooveshark</title>
		<link>http://dallangelo.com/2010/11/25/i-m-not-happy-grooveshark/</link>
		<comments>http://dallangelo.com/2010/11/25/i-m-not-happy-grooveshark/#comments</comments>
		<pubDate>Thu, 25 Nov 2010 19:02:22 +0000</pubDate>
		<dc:creator>Simone</dc:creator>
				<category><![CDATA[Services]]></category>
		<category><![CDATA[grooveshark]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[opinion]]></category>
		<category><![CDATA[review]]></category>

		<guid isPermaLink="false">http://dallangelo.com/?p=71</guid>
		<description><![CDATA[I listen music very often during my day, while I&#8217;m in front of my mac I usually have some music as background. I usually use two sites to listen fresh music, &#8216;Stereomood&#8216; and &#8216;The Hype Machine&#8216;, recently I added to the list &#8216;Grooveshark&#8216;. After a single day of test I decided to become a Grooveshark ...]]></description>
			<content:encoded><![CDATA[<p><a href="http://dallangelo.com/wp-content/uploads/2010/11/grooveshark_mobile.jpg"><img class="alignleft size-medium wp-image-80" title="grooveshark_mobile" src="http://dallangelo.com/wp-content/uploads/2010/11/grooveshark_mobile-300x178.jpg" alt="" width="300" height="178" /></a>I listen music very often during my day, while I&#8217;m in front of my mac I usually have some music as background.</p>
<p>I usually use two sites to listen fresh music, &#8216;<a title="Stereomood home page" href="http://www.stereomood.com/">Stereomood</a>&#8216; and &#8216;<a title="The Hype Machine" href="http://hypem.com/">The Hype Machine</a>&#8216;, recently I added to the list &#8216;<a title="Grooveshark Home page" href="http://listen.grooveshark.com/">Grooveshark</a>&#8216;.</p>
<p>After a single day of test I decided to become a <a title="VIP on Grooveshark" href="http://vip.grooveshark.com/summary">Grooveshark VIP user</a>, the difference between &#8216;regular user&#8217; and &#8216;VIP user&#8217; is the ability to access to extra features. The feature I&#8217;m interested in was &#8216;Grooveshark mobile&#8217;, the ability to listen Grooveshark music from your mobile (Blackberry in my case).</p>
<p>The day before yesterday I decided to download Grooveshark for Blackberry and I began to listen songs from my <acronym title="Blackberry">BB</acronym>, very nice! It was late so I just tried one song and it worked as normal, really great! I was happy.</p>
<p>Yesterday I honestly don&#8217;t know what happened, for the all day I wasn&#8217;t able to do anything with Grooveshark, website was quite down (sometimes it loaded, sometimes it did not, but I wasn&#8217;t able to listen a single song in the whole day), the situation from my <acronym title="Blackberry">BB</acronym> was not much different.</p>
<p>Today I re-tried from my mobile (I decided to be a VIP user just for that), but it&#8217;s impossible to listen anything.</p>
<p>I searched for &#8216;Ligabue&#8217; (an italian singer), it found some songs, I selected one of these to &#8220;play now&#8221;, the player loaded as normal and then the song title changed to another italian singer! It does not make ANY sense!</p>
<p>Anyway, every song you select to play you will get just one message .. it&#8217;s not possible to play this song .. so why have I installed this app?!?</p>
<p>When I came back home (under wifi coverage) it loaded everything I want and it played songs .. but if I&#8217;m at home I can listen Grooveshark from my mac, why should I listen it from my mobile?</p>
<p>Just to be clear, I can see youtube video from my blackberry (out of wifi coverage), so there is no problem with network ..</p>
<p>I think that Grooveshark mobile is really unusable (it does not play songs). Interface is horrible, but this would not be a big issue if it works .. but it does not!</p>
<p>Become a VIP user costs very few bucks, but this is not a good excuse for this!</p>
<p>I thought &#8220;maybe the app is under development&#8221;, so it&#8217;s right to share problems with developers in order to fix them. To do it there is a &#8220;send bug&#8221; in the app, I clicked on it (I thought to describe the problem) but I just get a message &#8220;the bug was sent&#8221; .. what?!? Which bug if I didn&#8217;t tell you what&#8217;s the problem?!? Another time something that does not make sense to me ..</p>
<p>Anyway I suggest you to try Grooveshark on your computer, it works pretty well (today), but don&#8217;t loose time to try Grooveshark for Blackberry, it&#8217;s useless! I&#8217;m curious to know some feedback from others platform (Android, Nokia and Palm), maybe it&#8217;s just the blackberry client to be so bad.<br />
Published by Simone Dall&#8217;Angelo, an IT consultant, developer, photographer and entrepreneur &#8211; dallangelo.com</p>
]]></content:encoded>
			<wfw:commentRss>http://dallangelo.com/2010/11/25/i-m-not-happy-grooveshark/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Why you will fall in love with Rake</title>
		<link>http://dallangelo.com/2010/11/06/why-you-will-fall-in-love-with-rake/</link>
		<comments>http://dallangelo.com/2010/11/06/why-you-will-fall-in-love-with-rake/#comments</comments>
		<pubDate>Sat, 06 Nov 2010 16:18:41 +0000</pubDate>
		<dc:creator>Simone</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Various]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[rake]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[rubygems]]></category>
		<category><![CDATA[tasks]]></category>
		<category><![CDATA[utility]]></category>

		<guid isPermaLink="false">http://dallangelo.com/?p=32</guid>
		<description><![CDATA[At the moment, in my opinion, Rake is the most confortable way to write small utility in Ruby and during the last years I used it so many times! You will fall in love too, I'm sure!]]></description>
			<content:encoded><![CDATA[<h2>Introduction</h2>
<p><a title="Ruby make home page" href="http://rake.rubyforge.org/"></a></p>
<p><a href="http://dallangelo.com/wp-content/uploads/2010/11/loverake.jpg"><img class="size-full wp-image-50 alignright" title="I love Rake" src="http://dallangelo.com/wp-content/uploads/2010/11/loverake.jpg" alt="I love Rake" width="240" height="240" /></a></p>
<p>Rake is an utility to build and execute tasks.<br />
I knew Rake when I began to develop with <a title="Ruby on Rails home page" href="http://rubyonrails.org/">Ruby on Rails</a>, but quite immediately I fell in love with it because it can be very useful every day, the only limit you have is your imagination.<br />
When you write a task you are writing Ruby code and you can include everything you need (gems and so on) so your task can really do everything you want.<br />
Another killer feature of Rake is that the way to write tasks are very easy and it allows you to write many tasks in small amount of time. You can write tasks that executes other tasks too, so you can project your tasks in an efficient way!<br />
At the moment, in my opinion, Rake is the most confortable way to write small utility in Ruby and during the last years I used it so many times! You will fall in love too, I&#8217;m sure!</p>
<h2>How to get it</h2>
<p>Install Rake is very simple, I imagine you have Ruby and <a title="Rubygems home page" href="http://rubygems.org/pages/download">Rubygems</a> installed on your system (if you have not them you can google for it, there are so many guides for every OS and many OSes has installed them by default). The installation process requires just a simple command in your console:</p>
<p><code>$ sudo gem install rake</code></p>
<p>(in some cases you won&#8217;t need sudo, but more often you will)</p>
<p>Is also possible to install it from the source but I think it&#8217;s better to use Rubygems because in this way you will be able to use others gems in your tasks later.</p>
<h2>How it works</h2>
<p>Rake is a command used to execute some tasks you define. We will see how to write tasks in a minute, for the moment is enought to say that you write a plain text file in the directory with your tasks and you can decide which one execute.<br />
The only requisite is that the file is named Rakefile, in this way Rake command will get it automatically and you will have just to choose which task execute.</p>
<h2>How to write tasks</h2>
<p>I told you that you have just to write a text file, how to write it? Another time the answer is &#8220;it&#8217;s easy!&#8221;.</p>
<p>Open your favourite text editor and paste this text:</p>
<pre class="ruby">task :hello do
  puts "Hello world!"
end
</pre>
<p>And save the file as &#8220;Rakefile&#8221;, now if you execute</p>
<p><code>$ rake hello</code></p>
<p>in console (in the same directory where you placed your Rakefile) you will see our &#8220;Hello world!&#8221; message. You have wrote your first Rake task!</p>
<p>Another useful feature is that you can give to every task a description, in order to remember what every task does without having to open Rakefile.<br />
To do that in our :hello task you will add</p>
<p><code>desc "This task doesn't do anything, it's just an example!"</code></p>
<p>Now if you execute</p>
<p><code>$ rake -T</code></p>
<p>you will see all defined tasks (for the moment just one) with its name and its description! It will be very useful when tasks will increase in number.</p>
<p>After in this article I told you that you can use every gem you want in your tasks, let me show you an example using <a title="faker gem home page" href="http://faker.rubyforge.org/">faker</a> gem (it&#8217;s a gem to generate fake data)</p>
<pre class="ruby">require 'rubygems'
require 'faker'

desc "This task outputs a fake name"
task :random_name do
  puts Faker::Name.name
end
</pre>
<p>Now if you execute in your console</p>
<p><code>$ rake -T</code></p>
<p>you will see</p>
<p><code>rake random_name  # This task outputs a fake name</code></p>
<p>And if you execute</p>
<p><code>$ rake random_name</code></p>
<p>You will see a name generated by the faker gem. Simple!</p>
<p>Now we can look at an example in which a task executes others tasks</p>
<pre class="ruby">require 'rubygems'
require 'faker'

desc "This task outputs a fake person"
task :random_person =&gt; [:random_name, :random_address, :random_phone]

desc "This task outputs a fake name"
task :random_name do
  puts Faker::Name.name
end

desc "This task outputs a fake address"
task :random_address do
  puts Faker::Address.street_name + " - " + Faker::Address.uk_postcode + " " + Faker::Address.city + " " + Faker::Address.uk_country
end

desc "This task outputs a fake phone"
task :random_phone do
  puts Faker::PhoneNumber.phone_number
end
</pre>
<p>We defined :random_name, :random_address and :random_phone tasks and :random_person that executes others three ones. Now if we execute</p>
<p><code>$ rake -T</code></p>
<p>we can see we have four tasks</p>
<p><code>rake random_address  # This task outputs a fake address<br />
rake random_name     # This task outputs a fake name<br />
rake random_person   # This task outputs a fake person<br />
rake random_phone    # This task outputs a fake phone</code></p>
<p>every tasks does a specific thing, but if we execute :random_person we get three tasks executed with just a command.<br />
Rake allows you to do many things and it&#8217;s impossible to cover everything, but if you look at Rake&#8217;s documentation you will find many others interesting way to use it.</p>
<h2>What can I do with it?</h2>
<p>As I told you before, the only limit is your imagination, I often use it for commands I don&#8217;t remember, so for example one of my tasks is</p>
<pre class="ruby">desc 'Clears DNS cache of OSX'
task :dns_flush do
  out = system 'dscacheutil -flushcache'
  puts "Flush: #{out}"
end</pre>
<p>it executes an OSX (I&#8217;m on a Mac) command to clear DNS cache, I never remember the command so now I have just to do</p>
<p><code>$ rake -T</code></p>
<p>in my home and I get a list of what I&#8217;m looking for <img src='http://dallangelo.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Another useful task I created is the one that interacts with rsync to do backup of my documents, it doesn&#8217;t just execute rsync command but also creates the list of file to ignore.</p>
<h2>Conclusion</h2>
<p>I&#8217;m sure you will discover some great ways to use rake in your daily workflow and if you want to say me what you use rake for I&#8217;ll be happy to hear it from you!</p>
<p>Have a nice day!<br />
Published by Simone Dall&#8217;Angelo, an IT consultant, developer, photographer and entrepreneur &#8211; dallangelo.com</p>
]]></content:encoded>
			<wfw:commentRss>http://dallangelo.com/2010/11/06/why-you-will-fall-in-love-with-rake/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Moved from Tumblr to WordPress</title>
		<link>http://dallangelo.com/2010/10/28/move-from-tumblr-to-wordpress/</link>
		<comments>http://dallangelo.com/2010/10/28/move-from-tumblr-to-wordpress/#comments</comments>
		<pubDate>Thu, 28 Oct 2010 13:29:50 +0000</pubDate>
		<dc:creator>Simone</dc:creator>
				<category><![CDATA[Various]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[problem]]></category>
		<category><![CDATA[tumblr]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://dallangelo.com/?p=1</guid>
		<description><![CDATA[As you can see I moved from Tumblr to Wordpress!

Before this change my website was composed by two big parts]]></description>
			<content:encoded><![CDATA[<p><a href="http://dallangelo.com/wp-content/uploads/2010/10/notumblr.jpg"><img class="alignright size-full wp-image-64" title="notumblr" src="http://dallangelo.com/wp-content/uploads/2010/10/notumblr.jpg" alt="notumblr" width="240" height="240" /></a>Hi all! As you can see I moved from <a title="Tumblr home page" href="http://tumblr.com" target="_blank">Tumblr</a> to <a title="Wordpress.org" href="http://wordpress.org" target="_blank">WordPress</a>!</p>
<p>Before this change my website was composed by two big parts, the main website (serving dallangelo.com) that was a static html page generated every 5 minutes by a task and by a tumblr blog (serving log.dallangelo.com) completely hosted by tumblr.</p>
<p>Often in the last year I tought to change all my website, but sometimes I hadn&#8217;t time, sometimes I didn&#8217;t want to so I started many layouts but I finished none of them.</p>
<p>I decided this (not little) change because I want to refresh all my site (both dallangelo.com and the blog/log) and WordPress was good to be used for both. All the pages you see are wordpress pages, while the &#8216;blog&#8217; section is a common wordpress blog (<a title="The loop - WordPress Codex" href="http://codex.wordpress.org/The_Loop" target="_blank">the loop</a> for WordPress developers) <img src='http://dallangelo.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Tumblr is confortable to use and it hasn&#8217;t some terrible bugs, so I don&#8217;t want to say anything too negative about it. There is just one thing I don&#8217;t like of it, it&#8217;s <abbr title="Application Program Interface">API</abbr> that sometimes work and sometimes not.</p>
<p>Anyway .. now I have a new house, I still have to finish it completely so if you find any problem please forgive me (and maybe notice me the problem) <img src='http://dallangelo.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Enjoy this site!<br />
Published by Simone Dall&#8217;Angelo, an IT consultant, developer, photographer and entrepreneur &#8211; dallangelo.com</p>
]]></content:encoded>
			<wfw:commentRss>http://dallangelo.com/2010/10/28/move-from-tumblr-to-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
