<?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>Pedro Assunção &#187; software development</title>
	<atom:link href="http://pedroassuncao.com/category/software-development/feed/" rel="self" type="application/rss+xml" />
	<link>http://pedroassuncao.com</link>
	<description>Thoughts on technology, skydiving, life, and the universe...</description>
	<lastBuildDate>Mon, 06 Feb 2012 15:13:33 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Count (group by) number of line occurrences in file</title>
		<link>http://pedroassuncao.com/2011/11/count-group-by-number-of-line-occurrences-in-file/</link>
		<comments>http://pedroassuncao.com/2011/11/count-group-by-number-of-line-occurrences-in-file/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 20:54:29 +0000</pubDate>
		<dc:creator>Pedro Assunção</dc:creator>
				<category><![CDATA[ruby]]></category>
		<category><![CDATA[software development]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://pedroassuncao.com/?p=1488</guid>
		<description><![CDATA[Here&#8217;s a neat ruby script to group and count the number of occurrences of lines inside a given file. count.rb list = IO.readlines(ARGV[0]) h = Hash.new {&#124;hash, key&#124; hash[key] = 0} list.each {&#124;item&#124; h[item] += 1} h = h.sort_by { &#124;k,v&#124; v }.reverse h.each_with_index do &#124;p,i&#124; puts "(#{p[1]}) #{p[0]}" if ARGV[1] and ARGV[1].to_i &#60;= i [...]


Related posts:<ol><li><a href='http://pedroassuncao.com/2010/10/java-web-start-jnlp-simple-example/' rel='bookmark' title='Java Web Start (jnlp) simple example'>Java Web Start (jnlp) simple example</a></li>
<li><a href='http://pedroassuncao.com/2011/04/earthquake-information-in-ruby/' rel='bookmark' title='Earthquake information in Ruby'>Earthquake information in Ruby</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Here&#8217;s a neat ruby script to group and count the number of occurrences of lines inside a given file.</p>
<p><strong>count.rb</strong></p>
<pre>list = IO.readlines(ARGV[0])
h = Hash.new {|hash, key| hash[key] = 0}
list.each {|item| h[item] += 1}
h = h.sort_by { |k,v| v }.reverse
h.each_with_index do |p,i|
  puts "(#{p[1]}) #{p[0]}"
  if ARGV[1] and ARGV[1].to_i &lt;= i + 1
    break
  end
end</pre>
<p>Usage is:</p>
<pre><em>ruby count.rb &lt;file&gt; [show_at_most_n]</em></pre>
<p>If you have a file named &#8220;faren.txt&#8221; comprised of the following lines:</p>
<pre>test
test
awesome
dude
dude
dude
faren
meran</pre>
<p>Running the script  with:</p>
<pre><em>ruby count.rb faren.txt</em></pre>
<p>Will yield the following result:</p>
<pre>(3) dude
(2) test
(1) awesome
(1) faren
(1) meran</pre>
<p>In addition, if you pass the &#8220;show_at_most_n&#8221; parameter (a number), it will only print that number of results. For example 2 will show the following:</p>
<pre>(3) dude
(2) test</pre>
<pre></pre>
<div class="shr-publisher-1488"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fpedroassuncao.com%2F2011%2F11%2Fcount-group-by-number-of-line-occurrences-in-file%2F' data-shr_title='Count+%28group+by%29+number+of+line+occurrences+in+file'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fpedroassuncao.com%2F2011%2F11%2Fcount-group-by-number-of-line-occurrences-in-file%2F' data-shr_title='Count+%28group+by%29+number+of+line+occurrences+in+file'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->

<p>Related posts:<ol><li><a href='http://pedroassuncao.com/2010/10/java-web-start-jnlp-simple-example/' rel='bookmark' title='Java Web Start (jnlp) simple example'>Java Web Start (jnlp) simple example</a></li>
<li><a href='http://pedroassuncao.com/2011/04/earthquake-information-in-ruby/' rel='bookmark' title='Earthquake information in Ruby'>Earthquake information in Ruby</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://pedroassuncao.com/2011/11/count-group-by-number-of-line-occurrences-in-file/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>New version of the red hot chili peppers lyrics generator</title>
		<link>http://pedroassuncao.com/2011/11/new-version-of-the-red-hot-chili-peppers-lyrics-generator/</link>
		<comments>http://pedroassuncao.com/2011/11/new-version-of-the-red-hot-chili-peppers-lyrics-generator/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 20:31:00 +0000</pubDate>
		<dc:creator>Pedro Assunção</dc:creator>
				<category><![CDATA[experiments]]></category>
		<category><![CDATA[science]]></category>
		<category><![CDATA[software development]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://pedroassuncao.com/?p=1486</guid>
		<description><![CDATA[This time i decided to make available online, here. Have fun Related posts:Red Hot Chili Peppers lyrics generator


Related posts:<ol><li><a href='http://pedroassuncao.com/2011/11/red-hot-chili-peppers-lyrics-generator/' rel='bookmark' title='Red Hot Chili Peppers lyrics generator'>Red Hot Chili Peppers lyrics generator</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>This time i decided to make available <a href="http://sandbox.pedroassuncao.com/rhcp_lyrics_generator">online, here</a>.</p>
<p>Have fun <img src='http://pedroassuncao.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<div class="shr-publisher-1486"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fpedroassuncao.com%2F2011%2F11%2Fnew-version-of-the-red-hot-chili-peppers-lyrics-generator%2F' data-shr_title='New+version+of+the+red+hot+chili+peppers+lyrics+generator'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fpedroassuncao.com%2F2011%2F11%2Fnew-version-of-the-red-hot-chili-peppers-lyrics-generator%2F' data-shr_title='New+version+of+the+red+hot+chili+peppers+lyrics+generator'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->

<p>Related posts:<ol><li><a href='http://pedroassuncao.com/2011/11/red-hot-chili-peppers-lyrics-generator/' rel='bookmark' title='Red Hot Chili Peppers lyrics generator'>Red Hot Chili Peppers lyrics generator</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://pedroassuncao.com/2011/11/new-version-of-the-red-hot-chili-peppers-lyrics-generator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Red Hot Chili Peppers lyrics generator</title>
		<link>http://pedroassuncao.com/2011/11/red-hot-chili-peppers-lyrics-generator/</link>
		<comments>http://pedroassuncao.com/2011/11/red-hot-chili-peppers-lyrics-generator/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 10:09:40 +0000</pubDate>
		<dc:creator>Pedro Assunção</dc:creator>
				<category><![CDATA[experiments]]></category>
		<category><![CDATA[findings]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[jokes]]></category>
		<category><![CDATA[software development]]></category>
		<category><![CDATA[writing]]></category>

		<guid isPermaLink="false">http://pedroassuncao.com/?p=1483</guid>
		<description><![CDATA[Here&#8217;s a little something i tried yesterday: a ruby script that mixes and matches verbs, nouns, adjectives, and colors to come up with crazy ass lyrics, red hot style. Enjoy $nouns = IO.readlines('names.txt') $adjectives = IO.readlines('adjectives.txt') $verbs = IO.readlines('verbs.txt') $adjectives &#60;&#60; ['red','blue','green','white','black','yellow','brown','gray'] $pronouns = IO.readlines('pronouns.txt') $adverbs = IO.readlines('adverbs.txt') $prepositions = IO.readlines('prepositions.txt') def get_rand(collection) sleep rand [...]


Related posts:<ol><li><a href='http://pedroassuncao.com/2011/11/new-version-of-the-red-hot-chili-peppers-lyrics-generator/' rel='bookmark' title='New version of the red hot chili peppers lyrics generator'>New version of the red hot chili peppers lyrics generator</a></li>
<li><a href='http://pedroassuncao.com/2010/12/spring-and-hibernate-lazy-loading-collections-in-desktop-swing-applications/' rel='bookmark' title='Spring and hibernate: Lazy loading collections in desktop (swing) applications'>Spring and hibernate: Lazy loading collections in desktop (swing) applications</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Here&#8217;s a little something i tried yesterday: a ruby script that mixes and matches verbs, nouns, adjectives, and colors to come up with crazy ass lyrics, red hot style. Enjoy <img src='http://pedroassuncao.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<pre>$nouns = IO.readlines('names.txt')
$adjectives = IO.readlines('adjectives.txt')
$verbs = IO.readlines('verbs.txt')
$adjectives &lt;&lt; ['red','blue','green','white','black','yellow','brown','gray']
$pronouns = IO.readlines('pronouns.txt')
$adverbs = IO.readlines('adverbs.txt')
$prepositions = IO.readlines('prepositions.txt')

def get_rand(collection)
  sleep rand / 10000
  collection[rand * collection.length.to_i - 1]
end

def preposition_phrase
  "#{get_rand($prepositions).strip} the #{get_rand($nouns).strip}"
end

def adjectivated_subject_phrase
  the_part = "the" if rand.to_f &gt; 0.5
  adjective = get_rand($adjectives).strip if rand.to_f &gt; 0.5
  return "#{the_part} #{adjective} #{get_rand($nouns).strip}" if the_part and adjective
  nil
end

def generate_phrase
  as = adjectivated_subject_phrase
  adjectivated_subject_part = as.nil? ? get_rand($pronouns).strip : as
  preposition_part = rand.to_f &gt; 0.5 ? preposition_phrase : ""
  verb_part = get_rand($verbs).strip
  object_part = rand.to_f &gt; 0.25 ? get_rand($nouns).strip : ""
  the_part = (rand.to_f &gt; 0.5 and object_part != "") ? "the" : ""
  adverb_part = rand.to_f &gt; 0.75 ? get_rand($adverbs).strip : ""

  "#{adjectivated_subject_part} #{preposition_part} #{verb_part} #{the_part} #{object_part} #{adverb_part}".squeeze(" ").strip
end

def generate_lyrics
  result = ""
  (1..5).each do
    first_phrase = generate_phrase
    new_phrase = generate_phrase
    while new_phrase[-2, 2] != first_phrase[-2, 2] or new_phrase.split(" ")[-1] == first_phrase.split(" ")[-1] do
      new_phrase = generate_phrase
    end
    result &lt;&lt; "#{first_phrase}\r\n#{new_phrase}\r\n\r\n"
  end
  result
end

puts generate_lyrics</pre>
<p>Here are the sources: <a href="http://pedroassuncao.com/wp-content/uploads/2011/11/rhcp_lyrics_v2.tar.gz">rhcp_lyrics_v2.tar</a>. As a bonus there is a script to see how many attempts are required to reach the phrase &#8220;The quick brown fox&#8221; <img src='http://pedroassuncao.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="shr-publisher-1483"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fpedroassuncao.com%2F2011%2F11%2Fred-hot-chili-peppers-lyrics-generator%2F' data-shr_title='Red+Hot+Chili+Peppers+lyrics+generator'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fpedroassuncao.com%2F2011%2F11%2Fred-hot-chili-peppers-lyrics-generator%2F' data-shr_title='Red+Hot+Chili+Peppers+lyrics+generator'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->

<p>Related posts:<ol><li><a href='http://pedroassuncao.com/2011/11/new-version-of-the-red-hot-chili-peppers-lyrics-generator/' rel='bookmark' title='New version of the red hot chili peppers lyrics generator'>New version of the red hot chili peppers lyrics generator</a></li>
<li><a href='http://pedroassuncao.com/2010/12/spring-and-hibernate-lazy-loading-collections-in-desktop-swing-applications/' rel='bookmark' title='Spring and hibernate: Lazy loading collections in desktop (swing) applications'>Spring and hibernate: Lazy loading collections in desktop (swing) applications</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://pedroassuncao.com/2011/11/red-hot-chili-peppers-lyrics-generator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTML WYSIWYG editor with Flickr upload support?</title>
		<link>http://pedroassuncao.com/2011/11/html-wysiwyg-editor-with-flickr-upload-support/</link>
		<comments>http://pedroassuncao.com/2011/11/html-wysiwyg-editor-with-flickr-upload-support/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 11:08:14 +0000</pubDate>
		<dc:creator>Pedro Assunção</dc:creator>
				<category><![CDATA[blogging]]></category>
		<category><![CDATA[computers]]></category>
		<category><![CDATA[cries for help]]></category>
		<category><![CDATA[software development]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://pedroassuncao.com/?p=1481</guid>
		<description><![CDATA[Lately i&#8217;ve been tinkering around with the idea of recreating my blog in a more handcrafted way (ruby on rails) as opposed to the current implementation using WordPress. Don&#8217;t get me wrong WordPress is awesome. It has many years and millions of websites as a testament of it&#8217;s awesomeness behind it. But i guess my [...]


Related posts:<ol><li><a href='http://pedroassuncao.com/2010/03/other-probably-intelligent-wordpress-plugins-to-install/' rel='bookmark' title='Other (probably intelligent) wordpress plugins to install'>Other (probably intelligent) wordpress plugins to install</a></li>
<li><a href='http://pedroassuncao.com/2010/05/good-blogging-desktop-client-for-mac-osx/' rel='bookmark' title='Good blogging desktop client for mac (osx)'>Good blogging desktop client for mac (osx)</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p><a href="http://www.flickr.com/photos/nocivus/6413956105/" title="A picture from flickr :)" rel="flickr-mgr" class="flickr-image"><img src="http://farm7.static.flickr.com/6230/6413956105_8ef1b4f13b_m.jpg" alt="A picture from flickr :)" class="flickr-medium_640 alignright" title="" longdesc="" /></a>Lately i&#8217;ve been tinkering around with the idea of recreating my blog in a more handcrafted way (ruby on rails) as opposed to the current implementation using WordPress. Don&#8217;t get me wrong WordPress is awesome. It has many years and millions of websites as a testament of it&#8217;s awesomeness behind it. But i guess my hacker&#8217;s vein popups up every now and then to whisper the reasons why i should have something custom made <img src='http://pedroassuncao.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The biggest problem with this, is that WP&#8217;s interface to create posts is, again, awesome. You can find plugins for pretty much anything, especially to do tasks that are otherwise plain boring, like <a href="http://wordpress.org/extend/plugins/wordpress-flickr-manager/">uploading pictures to your flickr</a> account and instantly have them available in your post for inclusion. I&#8217;ve been trying to find something like that for those nice HTML editors out there (like <a href="http://www.tinymce.com/">tinyMCE</a> and <a href="http://ckeditor.com/">CKEditor</a>), but so far have had no luck.</p>
<p>Anyone out there knows if something like that exists yet and where can i find it?</p>
<div class="shr-publisher-1481"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fpedroassuncao.com%2F2011%2F11%2Fhtml-wysiwyg-editor-with-flickr-upload-support%2F' data-shr_title='HTML+WYSIWYG+editor+with+Flickr+upload+support%3F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fpedroassuncao.com%2F2011%2F11%2Fhtml-wysiwyg-editor-with-flickr-upload-support%2F' data-shr_title='HTML+WYSIWYG+editor+with+Flickr+upload+support%3F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->

<p>Related posts:<ol><li><a href='http://pedroassuncao.com/2010/03/other-probably-intelligent-wordpress-plugins-to-install/' rel='bookmark' title='Other (probably intelligent) wordpress plugins to install'>Other (probably intelligent) wordpress plugins to install</a></li>
<li><a href='http://pedroassuncao.com/2010/05/good-blogging-desktop-client-for-mac-osx/' rel='bookmark' title='Good blogging desktop client for mac (osx)'>Good blogging desktop client for mac (osx)</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://pedroassuncao.com/2011/11/html-wysiwyg-editor-with-flickr-upload-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Export Mysql result as CSV</title>
		<link>http://pedroassuncao.com/2011/09/export-mysql-result-as-csv/</link>
		<comments>http://pedroassuncao.com/2011/09/export-mysql-result-as-csv/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 20:25:04 +0000</pubDate>
		<dc:creator>Pedro Assunção</dc:creator>
				<category><![CDATA[computers]]></category>
		<category><![CDATA[findings]]></category>
		<category><![CDATA[software development]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://pedroassuncao.com/?p=1439</guid>
		<description><![CDATA[Don&#8217;t ask me how the sed magic works, but it does. Taken from here. Running this: mysql -u&#60;USER&#62; -p&#60;PASSWORD&#62; &#60;DATABASE&#62; -B -e "select * from videos_video;" &#124; sed 's/\t/","/g;s/^/"/;s/$/"/;s/\n//g' will produce something like this: "id","title","url" "1","video 1","http://youtube(...)" "2","video 2","http://youtube(...)" "3","video 3","http://youtube(...)" Just pipe it to a .csv file and you&#8217;re done Related posts:How to export [...]


Related posts:<ol><li><a href='http://pedroassuncao.com/2009/07/how-to-export-hd-video-for-the-web/' rel='bookmark' title='How to export HD video for the web'>How to export HD video for the web</a></li>
<li><a href='http://pedroassuncao.com/2010/02/video-speed-controls-on-youtubes-html5-player/' rel='bookmark' title='Video speed controls on youtube&#8217;s HTML5 player'>Video speed controls on youtube&#8217;s HTML5 player</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Don&#8217;t ask me how the sed magic works, but it does. <a href="http://tlug.dnho.net/node/209">Taken from here</a>.</p>
<p>Running this:</p>
<pre>mysql -u&lt;USER&gt; -p&lt;PASSWORD&gt; &lt;DATABASE&gt; -B -e "select * from videos_video;" | sed 's/\t/","/g;s/^/"/;s/$/"/;s/\n//g'</pre>
<p>will produce something like this:</p>
<pre>"id","title","url"
"1","video 1","http://youtube(...)"
"2","video 2","http://youtube(...)"
"3","video 3","http://youtube(...)"</pre>
<p>Just pipe it to a .csv file and you&#8217;re done <img src='http://pedroassuncao.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="shr-publisher-1439"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fpedroassuncao.com%2F2011%2F09%2Fexport-mysql-result-as-csv%2F' data-shr_title='Export+Mysql+result+as+CSV'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fpedroassuncao.com%2F2011%2F09%2Fexport-mysql-result-as-csv%2F' data-shr_title='Export+Mysql+result+as+CSV'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->

<p>Related posts:<ol><li><a href='http://pedroassuncao.com/2009/07/how-to-export-hd-video-for-the-web/' rel='bookmark' title='How to export HD video for the web'>How to export HD video for the web</a></li>
<li><a href='http://pedroassuncao.com/2010/02/video-speed-controls-on-youtubes-html5-player/' rel='bookmark' title='Video speed controls on youtube&#8217;s HTML5 player'>Video speed controls on youtube&#8217;s HTML5 player</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://pedroassuncao.com/2011/09/export-mysql-result-as-csv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NonUniqueObjectException: a different object with the same identifier value was already associated with the session</title>
		<link>http://pedroassuncao.com/2011/05/nonuniqueobjectexception-a-different-object-with-the-same-identifier-value-was-already-associated-with-the-session/</link>
		<comments>http://pedroassuncao.com/2011/05/nonuniqueobjectexception-a-different-object-with-the-same-identifier-value-was-already-associated-with-the-session/#comments</comments>
		<pubDate>Thu, 05 May 2011 18:00:26 +0000</pubDate>
		<dc:creator>Pedro Assunção</dc:creator>
				<category><![CDATA[computers]]></category>
		<category><![CDATA[findings]]></category>
		<category><![CDATA[hibernate]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[software development]]></category>
		<category><![CDATA[swing]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://pedroassuncao.com/?p=1399</guid>
		<description><![CDATA[If you are developing in Swing and using hibernate you might &#8211; at some point in time &#8211; run into this exception: org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session What happened, you might ask? Well, turns out that when you close the session that created a given [...]


Related posts:<ol><li><a href='http://pedroassuncao.com/2010/12/spring-and-hibernate-lazy-loading-collections-in-desktop-swing-applications/' rel='bookmark' title='Spring and hibernate: Lazy loading collections in desktop (swing) applications'>Spring and hibernate: Lazy loading collections in desktop (swing) applications</a></li>
<li><a href='http://pedroassuncao.com/2010/04/spring-inject-proxy-instead-of-proxied-object/' rel='bookmark' title='Spring : inject proxy instead of proxied object'>Spring : inject proxy instead of proxied object</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>If you are developing in <a href="http://en.wikipedia.org/wiki/Swing_(Java)">Swing</a> and using <a href="http://www.hibernate.org/">hibernate</a> you might &#8211; at some point in time &#8211; run into this exception:</p>
<pre>org.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session</pre>
<p><strong>What happened</strong>, you might ask? Well, turns out that when you close the session that created a given hibernate-managed object, this object becomes &#8220;detached&#8221; (meaning hibernate no longer has any control over it). So, when you attempt to save or update it in another session, hibernate will complain with that exception, because it can no longer tell which is the &#8220;true&#8221; version of the object.</p>
<p><strong>The solution(s)</strong>? Look inside your code for places where you might be closing the session and take that out. That&#8217;s the solution in the case where you are using a long session (one that spans the entirety of the application&#8217;s life). In case you really want to close the session, you might consider using the session&#8217;s merge() method, which basically merges the fields in both the attached and non-attached instances of the object, and performs an update.</p>
<p>Hope that saves someone half a day of debugging <img src='http://pedroassuncao.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<div class="shr-publisher-1399"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fpedroassuncao.com%2F2011%2F05%2Fnonuniqueobjectexception-a-different-object-with-the-same-identifier-value-was-already-associated-with-the-session%2F' data-shr_title='NonUniqueObjectException%3A+a+different+object+with+the+same+identifier+value+was+already+associated+with+the+session'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fpedroassuncao.com%2F2011%2F05%2Fnonuniqueobjectexception-a-different-object-with-the-same-identifier-value-was-already-associated-with-the-session%2F' data-shr_title='NonUniqueObjectException%3A+a+different+object+with+the+same+identifier+value+was+already+associated+with+the+session'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->

<p>Related posts:<ol><li><a href='http://pedroassuncao.com/2010/12/spring-and-hibernate-lazy-loading-collections-in-desktop-swing-applications/' rel='bookmark' title='Spring and hibernate: Lazy loading collections in desktop (swing) applications'>Spring and hibernate: Lazy loading collections in desktop (swing) applications</a></li>
<li><a href='http://pedroassuncao.com/2010/04/spring-inject-proxy-instead-of-proxied-object/' rel='bookmark' title='Spring : inject proxy instead of proxied object'>Spring : inject proxy instead of proxied object</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://pedroassuncao.com/2011/05/nonuniqueobjectexception-a-different-object-with-the-same-identifier-value-was-already-associated-with-the-session/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Earthquake information in Ruby</title>
		<link>http://pedroassuncao.com/2011/04/earthquake-information-in-ruby/</link>
		<comments>http://pedroassuncao.com/2011/04/earthquake-information-in-ruby/#comments</comments>
		<pubDate>Tue, 12 Apr 2011 23:42:45 +0000</pubDate>
		<dc:creator>Pedro Assunção</dc:creator>
				<category><![CDATA[software development]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://pedroassuncao.com/?p=1347</guid>
		<description><![CDATA[Here&#8217;s a little script to get the latest earthquakes worldwide (1 hour). Sorry, Ruby purists, for not using RSS 2.0 and hpricot for a cleaner extraction of the coordinates, but my xcode installation is messed up and i can&#8217;t build any gems require 'rss/1.0' require 'rss/2.0' require 'rss/atom' require 'open-uri' require 'cgi' source = "http://earthquake.usgs.gov/earthquakes/catalogs/1hour-M1.xml" # [...]


Related posts:<ol><li><a href='http://pedroassuncao.com/2009/07/several-years-of-email-statistics-code-included/' rel='bookmark' title='Several years of email statistics &#8211; code included'>Several years of email statistics &#8211; code included</a></li>
<li><a href='http://pedroassuncao.com/2009/11/android-location-provider-mock/' rel='bookmark' title='Android location provider mock'>Android location provider mock</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Here&#8217;s a little script to get the latest earthquakes worldwide (1 hour). Sorry, Ruby purists, for not using RSS 2.0 and hpricot for a cleaner extraction of the coordinates, but my xcode installation is messed up and i can&#8217;t build any gems <img src='http://pedroassuncao.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<pre>require 'rss/1.0'
require 'rss/2.0'
require 'rss/atom'
require 'open-uri'
require 'cgi'

source = "http://earthquake.usgs.gov/earthquakes/catalogs/1hour-M1.xml" # url or local
filecontent = "" # raw content of rss feed will be loaded here
open(source) do |s| content = s.read end
rss = RSS::Parser.parse(content, false)
rss.items.each do |item|
  data = item.summary.to_s
  # Extract raw info
  data = data.scan( /alt\=\&amp;quot\;([^&gt;]*)W\&amp;quot\;/).last.first
  # Remove html escaping
  data = CGI.unescapeHTML(data).gsub("&amp;#176;N", "").gsub("&amp;#176;", "")
  # Convert into coords
  lat = data.split(' ')[0]
  lon = data.split(' ')[1]
  # Print it
  print item.updated.content, " ", item.title.content, " ", lat, " ", lon, "\n"
end</pre>
<p>Next step: Show this on a map <img src='http://pedroassuncao.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<div class="shr-publisher-1347"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fpedroassuncao.com%2F2011%2F04%2Fearthquake-information-in-ruby%2F' data-shr_title='Earthquake+information+in+Ruby'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fpedroassuncao.com%2F2011%2F04%2Fearthquake-information-in-ruby%2F' data-shr_title='Earthquake+information+in+Ruby'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->

<p>Related posts:<ol><li><a href='http://pedroassuncao.com/2009/07/several-years-of-email-statistics-code-included/' rel='bookmark' title='Several years of email statistics &#8211; code included'>Several years of email statistics &#8211; code included</a></li>
<li><a href='http://pedroassuncao.com/2009/11/android-location-provider-mock/' rel='bookmark' title='Android location provider mock'>Android location provider mock</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://pedroassuncao.com/2011/04/earthquake-information-in-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse IDE introduces &#8230; wait for it &#8230; a market place!</title>
		<link>http://pedroassuncao.com/2011/02/eclipse-ide-introduces-wait-for-it-a-market-place/</link>
		<comments>http://pedroassuncao.com/2011/02/eclipse-ide-introduces-wait-for-it-a-market-place/#comments</comments>
		<pubDate>Mon, 28 Feb 2011 22:28:53 +0000</pubDate>
		<dc:creator>Pedro Assunção</dc:creator>
				<category><![CDATA[computers]]></category>
		<category><![CDATA[findings]]></category>
		<category><![CDATA[good news]]></category>
		<category><![CDATA[software development]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://pedroassuncao.com/2011/02/eclipse-ide-introduces-wait-for-it-a-market-place/</guid>
		<description><![CDATA[Application markets and stores are all the rage these days. Let&#8217;s see, there&#8217;s the apple store, the android market, Microsoft&#8217;s app store, Nokia&#8217;s OVI store, and probably a gazillion more. It&#8217;s like if you don&#8217;t have one, you don&#8217;t really exist. Well, now the eclipse IDE has got one as well. You can get plugins [...]


Related posts:<ol><li><a href='http://pedroassuncao.com/2010/09/google-releases-url-shortener-and-introduces-new-image-format/' rel='bookmark' title='Google releases URL shortener and introduces new image format'>Google releases URL shortener and introduces new image format</a></li>
<li><a href='http://pedroassuncao.com/2011/02/apple-will-remove-java-from-osx-with-lion-so-what/' rel='bookmark' title='Apple will remove java from OSX with Lion, so what?'>Apple will remove java from OSX with Lion, so what?</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>Application markets and stores are all the rage these days. Let&#8217;s see, there&#8217;s the <a href="http://www.apple.com/itunes">apple store</a>, the <a href="http://market.android.com">android market</a>, <a href="http://www.microsoft.com/windowsphone/en-us/apps/default.aspx">Microsoft&#8217;s app store</a>, <a href="http://store.ovi.com">Nokia&#8217;s OVI store</a>, and probably a gazillion more. It&#8217;s like if you don&#8217;t have one, you don&#8217;t really exist.</p>
<p>Well, now the <a href="http://marketplace.eclipse.org/marketplace-client-intro">eclipse IDE has got one as well</a>. You can get plugins and the likes there, in which seems to be an easier way to find components to install. Gone are the times when you had to copy and paste endless amounts of update sites to install your favorite plugins. Or so i hope <img src='http://pedroassuncao.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="shr-publisher-1234"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fpedroassuncao.com%2F2011%2F02%2Feclipse-ide-introduces-wait-for-it-a-market-place%2F' data-shr_title='Eclipse+IDE+introduces+...+wait+for+it+...+a+market+place%21'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fpedroassuncao.com%2F2011%2F02%2Feclipse-ide-introduces-wait-for-it-a-market-place%2F' data-shr_title='Eclipse+IDE+introduces+...+wait+for+it+...+a+market+place%21'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->

<p>Related posts:<ol><li><a href='http://pedroassuncao.com/2010/09/google-releases-url-shortener-and-introduces-new-image-format/' rel='bookmark' title='Google releases URL shortener and introduces new image format'>Google releases URL shortener and introduces new image format</a></li>
<li><a href='http://pedroassuncao.com/2011/02/apple-will-remove-java-from-osx-with-lion-so-what/' rel='bookmark' title='Apple will remove java from OSX with Lion, so what?'>Apple will remove java from OSX with Lion, so what?</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://pedroassuncao.com/2011/02/eclipse-ide-introduces-wait-for-it-a-market-place/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Full list of Coca Cola brands &#8211; had no idea there were so many</title>
		<link>http://pedroassuncao.com/2011/02/full-list-of-coca-cola-companies-had-no-idea-there-were-so-many/</link>
		<comments>http://pedroassuncao.com/2011/02/full-list-of-coca-cola-companies-had-no-idea-there-were-so-many/#comments</comments>
		<pubDate>Thu, 24 Feb 2011 10:11:52 +0000</pubDate>
		<dc:creator>Pedro Assunção</dc:creator>
				<category><![CDATA[code snipplets]]></category>
		<category><![CDATA[computers]]></category>
		<category><![CDATA[experiments]]></category>
		<category><![CDATA[findings]]></category>
		<category><![CDATA[software development]]></category>

		<guid isPermaLink="false">http://pedroassuncao.com/2011/02/full-list-of-coca-cola-companies-had-no-idea-there-were-so-many/</guid>
		<description><![CDATA[As a part of my Ruby learning process, i decided to write something to retrieve the full list of brands that Coca Cola currently owns from their website. The list is split across multiple pages, but with some Ruby magic and a nice library called Hpricot to traverse the HTML it was 5 minutes of [...]


Related posts:<ol><li><a href='http://pedroassuncao.com/2008/09/coca-cola/' rel='bookmark' title='Coca cola'>Coca cola</a></li>
<li><a href='http://pedroassuncao.com/2011/01/idea-for-a-better-customer-satisfactionfeedback-service/' rel='bookmark' title='Idea for a better customer satisfaction/feedback service'>Idea for a better customer satisfaction/feedback service</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>As a part of my <a href="http://www.ruby-lang.org/en/">Ruby</a> learning process, i decided to write something to retrieve the <a href="http://www.thecoca-colacompany.com/brands/product_list_a.html">full list of brands that Coca Cola currently owns</a> from their website. The list is split across multiple pages, but with some Ruby magic and a nice library called <a href="https://github.com/hpricot/hpricot">Hpricot</a> to traverse the HTML it was 5 minutes of work <img src='http://pedroassuncao.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Here&#8217;s the script:</p>
<pre>require 'open-uri'
require 'rubygems'
require 'hpricot'
require 'pp'

my_file = File.new("cola.txt", 'w')

('a'..'z').each do |letter|
open("http://www.thecoca-colacompany.com/brands/product_list_#{letter}.html") do |f|

    # meta info
    #pp f.meta

    #pp 'Content-Type: ' + f.content_type
    #pp 'Last modified: ' + f.last_modified.to_s

    doc = Hpricot.XML(f)
    div = doc/"#products_link_list"
    (div/:ul).each do |ul|
      (ul/:li).each do |li|
        if (li/:a).first
          my_file.puts((li/:a).first.inner_html)
        else
          my_file.puts li.inner_html.to_s
        end
      end
    end

  end
end</pre>
<p>And here&#8217;s the full list of brands that belong to Coca Cola:</p>
<p>A&amp;W<br />
Acueducto<br />
Ades<br />
Agua Manantial<br />
Ali<br />
Alive<br />
Alpina<br />
Ambasa<br />
Ameyal<br />
Amorino<br />
Andina/Andina light<br />
Andina Fortified<br />
Andina Fresh<br />
Andina Frut<br />
Andina Nectar<br />
Apollinaris<br />
Aqua+<br />
Aquabona<br />
Aquactivede by Aquarius<br />
Aquana<br />
Aquarius<br />
Aquarius Active Diet<br />
BACARDI Mixers*<br />
BACARDI Premium Mixers*<br />
Bajoru Gira<br />
Bankia<br />
Barq&#8217;s<br />
Barrelitos<br />
BEAT<br />
Beautia<br />
Bebere<br />
Benedictino<br />
Beverly<br />
Bevi<br />
Bibo<br />
Big Crush<br />
Big Tai<br />
Bimbo<br />
Bimbo Break<br />
Biotime<br />
Bird&#8217;s Nest*<br />
Bistra<br />
Bistrone<br />
Bjare<br />
Blackfire<br />
Boco<br />
Bogadera<br />
Bom Bit Maesil<br />
BonAqua/BonAqa<br />
Borneo<br />
Botaniq 1QQ<br />
Botany<br />
BPM<br />
Brazzi<br />
Bright &amp; Early<br />
Brisa Agua Pura<br />
Brisa by Bonaqua<br />
Brisa con un Toque de Gas<br />
Brisa Spa<br />
Bu<br />
Bubbly<br />
burn<br />
buzz<br />
CAFÉ ZU<br />
caffeine-free Barq&#8217;s<br />
caffeine-free Coca-Cola<br />
caffeine-free Diet Coke/caffeine-free Coca-Cola light<br />
Calypso<br />
Canada Dry<br />
Canning&#8217;s<br />
Cappy<br />
Caprice<br />
Caribou Coffee*<br />
Carioca<br />
Cascal<br />
Carver&#8217;s<br />
Cepita<br />
Chaqwa<br />
Charrua<br />
Chaudfontaine<br />
Cheers<br />
cherry Coke<br />
cherry Coke zero<br />
Chinotto<br />
Chinotto light<br />
Ciel<br />
CITRA<br />
Club<br />
Coca-Cola<br />
Coca-Cola Black Cherry Vanilla<br />
Coca-Cola Blāk<br />
Coca-Cola C2<br />
Coca-Cola Citra<br />
Coca-Cola light/Diet Coke<br />
Coca-Cola with Lemon<br />
Coca-Cola with Lime<br />
Coca-Cola with Raspberry<br />
Coca-Cola Zero<br />
Cocoteen<br />
Cola Guaraná Jesus<br />
Country Club<br />
Cresta<br />
Cristal<br />
Crush<br />
Crusta<br />
Crystal<br />
Damla Minera<br />
DANNON*<br />
DASANI<br />
DASANI Active<br />
DASANI Balance<br />
DASANI Flavors<br />
DASANI Nutriwater<br />
DASANI Plus<br />
Del Valle<br />
Del Valle Frut<br />
Del Valle Frutsi<br />
Del Valle Frutsi Desarrollo<br />
Del Valle Kapo<br />
Del Valle Mais light<br />
Del Valle light<br />
Delaware Punch<br />
diet A&amp;W<br />
diet Andina Frut/Andina Frut light<br />
diet Andina Nectar/Andina Nectar light<br />
diet Barq&#8217;s<br />
diet Canada Dry<br />
Diet cherry Coke<br />
Diet Coke/Coca-Cola light<br />
Diet Coke Black Cherry Vanilla<br />
Diet Coke Citra/Coca-Cola light Citra<br />
Diet Coke Plus<br />
Diet Coke Sweetened with Splenda®<br />
Diet Coke with Lemon/Coca-Cola light with Lemon<br />
Diet Coke with Lime/Coca-Cola light with Lime<br />
Diet Coke with Raspberry<br />
Diet Crush<br />
diet Dr Pepper/Dr Pepper Zero<br />
diet Fanta/Fanta light/Fanta Zero/Fanta Free<br />
diet Freskyta<br />
diet INCA KOLA<br />
diet Kia Ora<br />
diet Krest<br />
diet Lift/Lift light<br />
diet Lilt/Lilt Zero<br />
diet Master Pour<br />
diet Mello Yello<br />
diet Mezzo Mix<br />
diet Minute Maid Soft Drink<br />
diet Nestea/Nestea light*<br />
diet Northern Neck<br />
diet Oasis<br />
diet Quatro/Quatro light<br />
diet Schweppes<br />
diet Seagram&#8217;s*<br />
diet Sprite/Sprite light/diet Sprite Zero/Sprite Zero<br />
diet Squirt<br />
diet Tai/Tai light<br />
diet Vanilla Coke<br />
Disney Xtreme Cooler*<br />
Diva<br />
Dobriy<br />
Dogadan<br />
Dorna<br />
Dr Pepper<br />
E2<br />
Earth and Sky<br />
Eight O&#8217;Clock<br />
El Rayek<br />
Enviga*<br />
Epika<br />
Escuis<br />
Eva Water<br />
Fanta<br />
Fanta Verdia<br />
Far Coast<br />
Felicia<br />
Finley<br />
Fioravanti<br />
Fire<br />
Five Alive<br />
Flavor Rage<br />
Fontana<br />
Fresca<br />
Fresca 1<br />
Frescolita<br />
Freskyta<br />
Fresquinha<br />
Fress<br />
Frestea*<br />
Friolin<br />
Frisco<br />
Frugos<br />
Frugos Fresh<br />
Fruit Solutions<br />
Fruitia<br />
Fruitier<br />
Fruitopia<br />
Fruktime<br />
Frutina<br />
Frutonic<br />
Full Throttle<br />
Full Throttle Blue Demon<br />
Full Throttle Sugar Free<br />
Funchum Orange Drink<br />
Furusato Dayori<br />
FUZE Healthy Infusions<br />
GEORGIA<br />
GEORGIA Club<br />
GEORGIA Gold<br />
GEORGIA Grande<br />
Gini<br />
Girios Gira<br />
glacéau smartwater<br />
glacéau vitaminwater<br />
glacéau vitaminwater zero<br />
Gladiator<br />
Godiva* Belgian Blends<br />
Gold Peak<br />
Gold Spot<br />
Golden Crush<br />
Goombay Punch<br />
Goulburn Valley<br />
Grapette<br />
Groovy<br />
Guaraná Kuat light<br />
Guaraná Kuat Zero<br />
Hajime<br />
Haru No Mint Shukan<br />
Hawai<br />
Healthworks<br />
Heppinger<br />
Hero<br />
Hi Spot<br />
Hi-C<br />
Hires<br />
Hit<br />
Horizon<br />
Hot Point<br />
Huang<br />
Ice Dew<br />
Ice Dew 3+<br />
Ice Tea Leao<br />
illy issimo*<br />
INCA KOLA<br />
Ipsei<br />
Izvorul Alb<br />
Jaz Cola<br />
Jericho<br />
Jet Tonic<br />
Jolly Juice<br />
Joy<br />
Joya<br />
Juan Valdez<br />
Juices To Go<br />
Just Juice<br />
Kani<br />
Kapo<br />
Kapo Zero<br />
Karada Meguri-Cha<br />
Kashaya Tea<br />
Keloco<br />
Keri<br />
Kia Ora<br />
Kildevaeld<br />
Kilimanjaro<br />
Kin<br />
Kinley<br />
Kist<br />
Kiwi Blue<br />
Kochakaden<br />
Kola Inglesa<br />
Koumisoukai<br />
Krest<br />
Kristal<br />
Kropla Beskidu<br />
Krushka &amp; Bochka<br />
Kuat<br />
Kuat Guaraná<br />
Kuat light<br />
Kuli<br />
Kyun<br />
La Jolla<br />
La Vuelta<br />
Lanitis<br />
Lanitis Extra<br />
Lanitis Filaraki<br />
Leao Green Tea<br />
Leao Guaraná Power<br />
Leao Iced Tea<br />
Less Is More, Kinley<br />
Lift<br />
Lift Plus<br />
Lift Plus light<br />
Lilia<br />
Lilt<br />
Limca<br />
Limelite<br />
Limonade<br />
Linnuse<br />
Lion<br />
Love Body<br />
Maaza<br />
Mad River<br />
Malvern<br />
Manantial<br />
Mare Rosso<br />
Marocha<br />
Master Chill<br />
Master Pour<br />
Matte Leao<br />
Matusov Pramen<br />
Mazoe<br />
Mello<br />
Mello Yello<br />
Mer<br />
Mezzo<br />
Mezzo Mix<br />
Miami<br />
Mickey*<br />
Migoro-Nomigoro<br />
Minaqua<br />
Mineragua<br />
Minute Maid<br />
Minute Maid Active<br />
Minute Maid Antiox<br />
Minute Maid Deli<br />
Minute Maid Duofrutas<br />
Minute Maid Fruit Plus<br />
Minute Maid Heart Wise<br />
Minute Maid Just 10<br />
Minute Maid Light<br />
Minute Maid Mais<br />
Minute Maid Nutri+<br />
Minute Maid Premium<br />
Minute Maid Soft Drink<br />
Minute Maid Splash<br />
Mireille<br />
Mission<br />
Mone<br />
Montefiore<br />
Mori No Mizudayori<br />
Morning Deli<br />
Mother<br />
Mr. Pibb<br />
multiVita<br />
Nada<br />
Nagomi<br />
Nalu<br />
Namthip<br />
Nanairo Acha<br />
Naturaqua<br />
Natures Own*<br />
Nectarin<br />
Nestea*<br />
Nestea Choglit*<br />
Nestea COOL*<br />
Nestea Viteao*<br />
Nevada<br />
Neverfail<br />
Next<br />
Nico<br />
Nordic Mist<br />
Northern Neck<br />
NOS<br />
Nos Entendemos<br />
Oasis<br />
Odwalla<br />
Olimpija<br />
Orchy<br />
Paani Treated Water<br />
Pacific Orchard<br />
Pampa<br />
Paradise Sun<br />
Parle<br />
Pasazade<br />
Pearona<br />
Peats Ridge Springs<br />
Pibb Xtra<br />
Pibb Zero<br />
Piko<br />
Pilskania<br />
Planet Java*<br />
Play Energy Drink<br />
Pocket Dr<br />
Poiana Negri<br />
Polar Brew<br />
Poms<br />
Ponkana<br />
Pop<br />
Portello<br />
POWERADE<br />
POWERADE Advance<br />
POWERADE alive<br />
POWERADE aqua+<br />
POWERADE Balance<br />
POWERADE light<br />
POWERADE OPTION<br />
POWERADE Zero<br />
Powerplay<br />
Premio<br />
Presta<br />
Presta light<br />
Pulp Orange<br />
Pulpy<br />
Pump<br />
Pumped Enhanced Hydration<br />
Pura Sol<br />
Qoo<br />
Quatro<br />
Quwat Jabal<br />
R&#8217;fresh<br />
Ramlosa<br />
Real<br />
Real Leaf<br />
Real Gold<br />
Rehab<br />
Relentless<br />
Rich<br />
Richy<br />
Riwa<br />
Roemerquelle<br />
Rosa<br />
Rosalta<br />
Roses<br />
Royal Tru<br />
Royal Tru light<br />
Safety First<br />
Safia<br />
Sahtain<br />
Samantha<br />
Samurai<br />
San Luis<br />
Sarsi<br />
Saryusaisai<br />
Schuss<br />
Schweppes<br />
Schweppes Abbey Well<br />
Seagram&#8217;s*<br />
Seltz<br />
Sensation<br />
Sensun Gazoz<br />
SENZAO<br />
Shandy<br />
Shangri-La<br />
ShiZen*<br />
Shock<br />
Signature<br />
Sim<br />
Simba<br />
Simply Apple<br />
Simply Grapefruit<br />
Simply Lemonade<br />
Simply Limeade<br />
Simply Orange<br />
Smart<br />
Sobo<br />
Sokenbicha<br />
Solo<br />
Sonfil<br />
Soonsoo 100<br />
Southern Sun<br />
Sparkle<br />
Sparletta<br />
Sparletta Iron Brew<br />
Splash<br />
Splice<br />
Sport<br />
Sprite<br />
Sprite 3G<br />
Sprite Duo<br />
Sprite Flavors<br />
Sprite Ice<br />
Sprite Remix<br />
Sprite Zero/diet Sprite/Sprite light /diet Sprite Zero<br />
Spur<br />
Squirt<br />
Stoney Gold Ginger Beer<br />
Sucos Mais<br />
Sunfill<br />
SURGE<br />
Svali<br />
Sveva<br />
Sweecha<br />
TaB<br />
TaB energy<br />
TaB X-Tra<br />
TADAS<br />
Tai<br />
The Spirit of Georgia<br />
The Wellness From Coca-Cola<br />
Thextons<br />
Thums Up<br />
Tian Yu Di/Heaven and Earth<br />
Tiky<br />
Toppur<br />
Top&#8217;s<br />
Tropi<br />
Tropical<br />
Turkuaz<br />
Ultra<br />
Urge<br />
Urun<br />
V Florida 7<br />
Valle Frut<br />
Valpre<br />
Valser<br />
Valser Viva<br />
Vanilla Coke<br />
Vanilla Coke Zero<br />
VAULT<br />
VAULT Zero<br />
Vegitabeta<br />
VICA<br />
Vio<br />
Vita<br />
Vital<br />
Wilkins<br />
Wink<br />
Winnie the Pooh*<br />
Yangguang<br />
Yangguang Juicy T<br />
Yo Conozco a Hugo<br />
Yoli<br />
Youki<br />
Yuan Ye</p>
<div class="shr-publisher-1221"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fpedroassuncao.com%2F2011%2F02%2Ffull-list-of-coca-cola-companies-had-no-idea-there-were-so-many%2F' data-shr_title='Full+list+of+Coca+Cola+brands+-+had+no+idea+there+were+so+many'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fpedroassuncao.com%2F2011%2F02%2Ffull-list-of-coca-cola-companies-had-no-idea-there-were-so-many%2F' data-shr_title='Full+list+of+Coca+Cola+brands+-+had+no+idea+there+were+so+many'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->

<p>Related posts:<ol><li><a href='http://pedroassuncao.com/2008/09/coca-cola/' rel='bookmark' title='Coca cola'>Coca cola</a></li>
<li><a href='http://pedroassuncao.com/2011/01/idea-for-a-better-customer-satisfactionfeedback-service/' rel='bookmark' title='Idea for a better customer satisfaction/feedback service'>Idea for a better customer satisfaction/feedback service</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://pedroassuncao.com/2011/02/full-list-of-coca-cola-companies-had-no-idea-there-were-so-many/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Dropbox plus Mercurial -driven development. Anyone tried that?</title>
		<link>http://pedroassuncao.com/2011/02/dropbox-plus-mercurial-driven-development-anyone-tried-that/</link>
		<comments>http://pedroassuncao.com/2011/02/dropbox-plus-mercurial-driven-development-anyone-tried-that/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 08:47:12 +0000</pubDate>
		<dc:creator>Pedro Assunção</dc:creator>
				<category><![CDATA[blogging]]></category>
		<category><![CDATA[computers]]></category>
		<category><![CDATA[cries for help]]></category>
		<category><![CDATA[experiments]]></category>
		<category><![CDATA[software development]]></category>

		<guid isPermaLink="false">http://pedroassuncao.com/2011/02/dropbox-plus-mercurial-driven-development-anyone-tried-that/</guid>
		<description><![CDATA[One of the biggest pains of any developer is maintaing the source code. Especially if you &#8211; like me &#8211; have a gazillion pet projects that need to be updated whenever you come up with &#8220;cool idea #20000&#8243; for one of them. Version control systems like Mercurial are awesome, but they are only part of [...]


Related posts:<ol><li><a href='http://pedroassuncao.com/2011/03/using-dropbox-to-automatically-download-torrents/' rel='bookmark' title='Using Dropbox to automatically download torrents'>Using Dropbox to automatically download torrents</a></li>
<li><a href='http://pedroassuncao.com/2009/04/network-library-for-games-in-python/' rel='bookmark' title='Network library for games in Python'>Network library for games in Python</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><p>One of the biggest pains of any developer is maintaing the source code. Especially if you &#8211; like me &#8211; have a gazillion pet projects that need to be updated whenever you come up with &#8220;cool idea #20000&#8243; for one of them.</p>
<p>Version control systems like Mercurial are awesome, but they are only part of the equation; there&#8217;s still the time consuming process of deploying the changes to &#8220;production&#8221;. So i wonder if it would be a good idea to have a Mercurial repository sitting on a dropbox account and develop directly there. This way any changes to the source code would be instantly reflected on production.</p>
<p>I am aware that this is unthinkable for serious projects (the kind you get paid to do), but it can probably work for fun pet projects.</p>
<p>Do you have any experience with something like that? Share your thoughts, if you have any <img src='http://pedroassuncao.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="shr-publisher-1220"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fpedroassuncao.com%2F2011%2F02%2Fdropbox-plus-mercurial-driven-development-anyone-tried-that%2F' data-shr_title='Dropbox+plus+Mercurial+-driven+development.+Anyone+tried+that%3F'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='true' data-shr_href='http%3A%2F%2Fpedroassuncao.com%2F2011%2F02%2Fdropbox-plus-mercurial-driven-development-anyone-tried-that%2F' data-shr_title='Dropbox+plus+Mercurial+-driven+development.+Anyone+tried+that%3F'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->

<p>Related posts:<ol><li><a href='http://pedroassuncao.com/2011/03/using-dropbox-to-automatically-download-torrents/' rel='bookmark' title='Using Dropbox to automatically download torrents'>Using Dropbox to automatically download torrents</a></li>
<li><a href='http://pedroassuncao.com/2009/04/network-library-for-games-in-python/' rel='bookmark' title='Network library for games in Python'>Network library for games in Python</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://pedroassuncao.com/2011/02/dropbox-plus-mercurial-driven-development-anyone-tried-that/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

