Lifestream http://lifestream.rogeriopvl.com/ Lifestream http://lifestream.rogeriopvl.com/ http://d.asset.soup.io/asset/0177/9229_6712.jpeg 128 128 Back to website... On using mac instead of linux ... {"tags":[],"type":"regular","title":"\u003Ca href=\"http://blog.rogeriopvl.com/archives/on-using-mac-instead-of-linux\"\u003EOn using mac instead of linux ...\u003C/a\u003E","source":"http://blog.rogeriopvl.com/archives/on-using-mac-instead-of-linux","body":"\u003Cp\u003EThis is a very common and constant discussion at my workplace. And don\u2019t get me wrong, I love linux. But \u003Ca href=\"http://en.wikipedia.org/wiki/Jamie_Zawinski\"\u003EJamie Zawinski\u003C/a\u003E says it in way that is very similar to what I feel about it:\u003C/p\u003E\n\n\u003Cblockquote\u003E\n\u003Cp\u003EI use a Mac instead of Linux on the desktop for a reason: because I think that the design and consistency that Apple\u2019s UI brings is extremely valuable. I don\u2019t buy computers based on how fast they are, I buy them based on how easy it is to get things done with them, and Apple is the hands-down winner on this pretty much across the board. (Oh, also because I want my audio card to work, but that\u2019s neither here nor there.)\u003C/p\u003E\n\u003C/blockquote\u003E\n\n\u003Cp\u003EThis quote is taken from a post in his blog where he talks about why he prefers to use Safari instead of Firefox on his mac, and you can read it entirely \u003Ca href=\"http://www.jwz.org/blog/2012/04/why-i-use-safari-instead-of-firefox/\"\u003Ehere\u003C/a\u003E.\u003C/p\u003E"} <p>This is a very common and constant discussion at my workplace. And don’t get me wrong, I love linux. But <a href="http://en.wikipedia.org/wiki/Jamie_Zawinski">Jamie Zawinski</a> says it in way that is very similar to what I feel about it:</p> <blockquote> <p>I use a Mac instead of Linux on the desktop for a reason: because I think that the design and consistency that Apple’s UI brings is extremely valuable. I don’t buy computers based on how fast they are, I buy them based on how easy it is to get things done with them, and Apple is the hands-down winner on this pretty much across the board. (Oh, also because I want my audio card to work, but that’s neither here nor there.)</p> </blockquote> <p>This quote is taken from a post in his blog where he talks about why he prefers to use Safari instead of Firefox on his mac, and you can read it entirely <a href="http://www.jwz.org/blog/2012/04/why-i-use-safari-instead-of-firefox/">here</a>.</p>Thu, 19 Apr 2012 23:00:00 GMThttp://lifestream.rogeriopvl.com/post/248212341/On-using-mac-instead-of-linuxurn:www-soup-io:1:248212341regular Answer by rogeriopvl for How to end execution of a block in Ruby? {"tags":[],"type":"regular","title":"\u003Ca href=\"http://stackoverflow.com/questions/9790894/how-to-end-execution-of-a-block-in-ruby/9790984#9790984\"\u003EAnswer by rogeriopvl for How to end execution of a block in Ruby?\u003C/a\u003E","source":"http://stackoverflow.com/questions/9790894/how-to-end-execution-of-a-block-in-ruby/9790984#9790984","body":"\u003Cp\u003ETo exit a block or loop use the \u003Ccode\u003Ebreak\u003C/code\u003E keyword.\u003C/p\u003E\n\n\u003Cp\u003E\u003Ccode\u003Ereturn\u003C/code\u003E will exit a method.\u003C/p\u003E"} <p>To exit a block or loop use the <code>break</code> keyword.</p> <p><code>return</code> will exit a method.</p>Tue, 20 Mar 2012 16:35:11 GMThttp://lifestream.rogeriopvl.com/post/240892213/Answer-by-rogeriopvl-for-How-to-endurn:www-soup-io:1:240892213regular Answer by rogeriopvl for How to create expandable FAQ page in HTML? {"tags":[],"type":"regular","title":"\u003Ca href=\"http://stackoverflow.com/questions/2403146/how-to-create-expandable-faq-page-in-html/2403217#2403217\"\u003EAnswer by rogeriopvl for How to create expandable FAQ page in HTML?\u003C/a\u003E","source":"http://stackoverflow.com/questions/2403146/how-to-create-expandable-faq-page-in-html/2403217#2403217","body":"\u003Cp\u003ESimple example using jQuery:\u003C/p\u003E\n\n\u003Cp\u003EJavaScript/jQuery\u003C/p\u003E\n\n\u003Cpre\u003E\u003Ccode\u003E\u0026lt;script type=\"text/javascript\"\u0026gt;\n$(document).ready(function(){\n $('.faqlink').click(function(){\n $('.content').hide();\n $(this).next('.content').show();\n });\n});\n\u0026lt;/script\u0026gt;\n\u003C/code\u003E\u003C/pre\u003E\n\n\u003Cp\u003ECSS\u003C/p\u003E\n\n\u003Cpre\u003E\u003Ccode\u003E\u0026lt;style type=\"text/css\"\u0026gt;\n.content {\n display: hidden;\n}\n\u0026lt;/style\u0026gt;\n\u003C/code\u003E\u003C/pre\u003E\n\n\u003Cp\u003EHTML\u003C/p\u003E\n\n\u003Cpre\u003E\u003Ccode\u003E\u0026lt;h2\u0026gt;My FAQ\u0026lt;/h2\u0026gt;\n\u0026lt;a class=\"faqlink\" href=\"#\"\u0026gt;Link 1\u0026lt;/a\u0026gt;\n\u0026lt;div class=\"content\"\u0026gt;lorem ipsum\u0026lt;/div\u0026gt;\n\u0026lt;a class=\"faqlink\" href=\"#\"\u0026gt;Link 2\u0026lt;/a\u0026gt;\n\u0026lt;div class=\"content\"\u0026gt;lorem ipsum\u0026lt;/div\u0026gt;\n\u0026lt;a class=\"faqlink\" href=\"#\"\u0026gt;Link 3\u0026lt;/a\u0026gt;\n\u0026lt;div class=\"content\"\u0026gt;lorem ipsum\u0026lt;/div\u0026gt;\n\u003C/code\u003E\u003C/pre\u003E"} <p>Simple example using jQuery:</p> <p>JavaScript/jQuery</p> <pre><code>&lt;script type="text/javascript"&gt; $(document).ready(function(){ $('.faqlink').click(function(){ $('.content').hide(); $(this).next('.content').show(); }); }); &lt;/script&gt; </code></pre> <p>CSS</p> <pre><code>&lt;style type="text/css"&gt; .content { display: hidden; } &lt;/style&gt; </code></pre> <p>HTML</p> <pre><code>&lt;h2&gt;My FAQ&lt;/h2&gt; &lt;a class="faqlink" href="#"&gt;Link 1&lt;/a&gt; &lt;div class="content"&gt;lorem ipsum&lt;/div&gt; &lt;a class="faqlink" href="#"&gt;Link 2&lt;/a&gt; &lt;div class="content"&gt;lorem ipsum&lt;/div&gt; &lt;a class="faqlink" href="#"&gt;Link 3&lt;/a&gt; &lt;div class="content"&gt;lorem ipsum&lt;/div&gt; </code></pre>Mon, 19 Mar 2012 22:24:05 GMThttp://lifestream.rogeriopvl.com/post/240892216/Answer-by-rogeriopvl-for-How-to-createurn:www-soup-io:1:240892216regular Having fun developing useless apps {"tags":[],"type":"regular","title":"\u003Ca href=\"http://blog.rogeriopvl.com/archives/having-fun-developing-useless-apps\"\u003EHaving fun developing useless apps\u003C/a\u003E","source":"http://blog.rogeriopvl.com/archives/having-fun-developing-useless-apps","body":"\u003Cp\u003EI always thought that the first time I got on the \u003Ca href=\"http://news.ycombinator.com\"\u003EHacker News\u003C/a\u003E and \u003Ca href=\"http://reddit.com/r/programming\"\u003EProggit\u003C/a\u003E front-pages would be with some awesome and complex project. I was wrong.\u003C/p\u003E\n\n\u003Ch3\u003EPart I - Like A Boss\u003C/h3\u003E\n\n\u003Cp\u003EOn 25th November, while browsing the web, I found a funny project developed by \u003Ca href=\"http://zachholman.com\"\u003EZach Holman\u003C/a\u003E called \u003Ca href=\"http://fuckyeah.herokuapp.com\"\u003EFuck Yeah\u003C/a\u003E. This was a simple API developed in \u003Ca href=\"http://nodejs.org\"\u003ENode.js\u003C/a\u003E that received a piece of text, searched Google Images for that piece of text, and added that text along with a \u201cFuck Yeah!\u201d to the first image found.\u003C/p\u003E\n\n\u003Cp\u003EI found the project to be pretty cool, and since I got a little rusty with nodejs, I decided to fork the code and make a new version of the API, this time called \u003Ca href=\"http://likeaboss.herokuapp.com\"\u003ELike a Boss\u003C/a\u003E. You can pretty much guess what it does. You can check out the code at \u003Ca href=\"http://github.com/rogeriopvl/likeaboss\"\u003EGithub\u003C/a\u003E by the way.\u003C/p\u003E\n\n\u003Cp\u003ESince I had some spare time, I decided to go further and build a website that presented the generated images in a more good looking way. And \u003Ca href=\"http://likeaboss.herokuapp.com\"\u003Ehere\u2019s the result\u003C/a\u003E.\u003C/p\u003E\n\n\u003Cp\u003E\u003Cimg src=\"http://feeds.feedburner.com/img/hacklikeaboss.jpg\" alt=\"Hack Like A Boss\" /\u003E\u003C/p\u003E\n\n\u003Cp\u003EI decided to post the \u201cLike a Boss\u201d website to Hacker News. It got upvoted somehow, and BAM! Hacker News front-page. In 2 hours the website had about 2000 pageviews. This was cool, but not without some problems showing up that had to be solved in order to keep the code from crashing the server. Still, \u003Ca href=\"http://heroku.com\"\u003EHeroku\u003C/a\u003E, the cloud application platform I used to host my nodejs app, handled all the traffic pretty well with only one web worker (included with the free plan).\u003C/p\u003E\n\n\u003Cp\u003EAfter about 3 hours, the Hacker News post dropped from the front-page, and traffic almost vanished.\u003C/p\u003E\n\n\u003Ch3\u003EPart II - HTTP Cats API\u003C/h3\u003E\n\n\u003Cp\u003EOn December 14th, again, while browsing the web, someone posted on Hacker News an awesome Flickr set of cat pictures authored by \u003Ca href=\"http://twitter.com/girlie_mac\"\u003ETomomi Imura\u003C/a\u003E with each cat posing accordingly to a HTTP Status Code. These pictures ended up being a \u003Ca href=\"http://girliemac.com/blog/2011/12/18/the-day-i-seized-the-interweb-http-status-cats/\"\u003Ehuge success\u003C/a\u003E.\u003C/p\u003E\n\n\u003Cp\u003EI instantly thought about how awesome would be to have those cat images show up when an error occured on a web-server. I fired up \u003Ccode\u003Evim\u003C/code\u003E and hacked some nodejs code to serve those images through a simple API. After some minutes, the \u003Ca href=\"http://httpcats.herokuapp.com\"\u003EHTTP Cats API\u003C/a\u003E was born. I pushed it to Heroku, and it was rocking. I sent the link to a couple of friends, we all laughed for a while and I thought that was it.\u003C/p\u003E\n\n\u003Cp\u003E\u003Cimg src=\"http://feeds.feedburner.com/img/httpcats_404.jpg\" alt=\"HTTP Cat 404 Not Found\" /\u003E\u003C/p\u003E\n\n\u003Cp\u003EAfter a while, I posted the API link to Hacker News and Proggit. The Hacker News post never got voted, the Proggit one got allot of upvotes, and soon I was on Proggit front-page. An avalanche of traffic ensued.\u003C/p\u003E\n\n\u003Cp\u003EThe post got duplicated on Hacker News, and this time it got allot of upvotes (probably a user with more influence). This was when all hell broke loose. Not only it got on the first-page it was also ranked in 2nd place.\u003C/p\u003E\n\n\u003Cp\u003EThe results where: on the first day I got 19.412 unique visitors. The second day, 21.764 unique visitors. The two days together summed up 255.034 pageviews. These values are amazing for a simple app that serves cat images. Actually, while I write this post, which is 2 months later, it still has around 100 unique visitors a day. And I\u2019m not even counting direct API calls, just the index page visits.\u003C/p\u003E\n\n\u003Ch3\u003ESo what?\u003C/h3\u003E\n\n\u003Cp\u003EYeah, I know these web applications are pretty much useless, but I had allot of fun hacking them and watching the traffic hit the sites. And of course, it doesn\u2019t really matter the fact that they are useless, as long as you have fun, learn and make other people smile, that\u2019s what really matters.\u003C/p\u003E"} <p>I always thought that the first time I got on the <a href="http://news.ycombinator.com">Hacker News</a> and <a href="http://reddit.com/r/programming">Proggit</a> front-pages would be with some awesome and complex project. I was wrong.</p> <h3>Part I - Like A Boss</h3> <p>On 25th November, while browsing the web, I found a funny project developed by <a href="http://zachholman.com">Zach Holman</a> called <a href="http://fuckyeah.herokuapp.com">Fuck Yeah</a>. This was a simple API developed in <a href="http://nodejs.org">Node.js</a> that received a piece of text, searched Google Images for that piece of text, and added that text along with a “Fuck Yeah!” to the first image found.</p> <p>I found the project to be pretty cool, and since I got a little rusty with nodejs, I decided to fork the code and make a new version of the API, this time called <a href="http://likeaboss.herokuapp.com">Like a Boss</a>. You can pretty much guess what it does. You can check out the code at <a href="http://github.com/rogeriopvl/likeaboss">Github</a> by the way.</p> <p>Since I had some spare time, I decided to go further and build a website that presented the generated images in a more good looking way. And <a href="http://likeaboss.herokuapp.com">here’s the result</a>.</p> <p><img src="http://feeds.feedburner.com/img/hacklikeaboss.jpg" alt="Hack Like A Boss" /></p> <p>I decided to post the “Like a Boss” website to Hacker News. It got upvoted somehow, and BAM! Hacker News front-page. In 2 hours the website had about 2000 pageviews. This was cool, but not without some problems showing up that had to be solved in order to keep the code from crashing the server. Still, <a href="http://heroku.com">Heroku</a>, the cloud application platform I used to host my nodejs app, handled all the traffic pretty well with only one web worker (included with the free plan).</p> <p>After about 3 hours, the Hacker News post dropped from the front-page, and traffic almost vanished.</p> <h3>Part II - HTTP Cats API</h3> <p>On December 14th, again, while browsing the web, someone posted on Hacker News an awesome Flickr set of cat pictures authored by <a href="http://twitter.com/girlie_mac">Tomomi Imura</a> with each cat posing accordingly to a HTTP Status Code. These pictures ended up being a <a href="http://girliemac.com/blog/2011/12/18/the-day-i-seized-the-interweb-http-status-cats/">huge success</a>.</p> <p>I instantly thought about how awesome would be to have those cat images show up when an error occured on a web-server. I fired up <code>vim</code> and hacked some nodejs code to serve those images through a simple API. After some minutes, the <a href="http://httpcats.herokuapp.com">HTTP Cats API</a> was born. I pushed it to Heroku, and it was rocking. I sent the link to a couple of friends, we all laughed for a while and I thought that was it.</p> <p><img src="http://feeds.feedburner.com/img/httpcats_404.jpg" alt="HTTP Cat 404 Not Found" /></p> <p>After a while, I posted the API link to Hacker News and Proggit. The Hacker News post never got voted, the Proggit one got allot of upvotes, and soon I was on Proggit front-page. An avalanche of traffic ensued.</p> <p>The post got duplicated on Hacker News, and this time it got allot of upvotes (probably a user with more influence). This was when all hell broke loose. Not only it got on the first-page it was also ranked in 2nd place.</p> <p>The results where: on the first day I got 19.412 unique visitors. The second day, 21.764 unique visitors. The two days together summed up 255.034 pageviews. These values are amazing for a simple app that serves cat images. Actually, while I write this post, which is 2 months later, it still has around 100 unique visitors a day. And I’m not even counting direct API calls, just the index page visits.</p> <h3>So what?</h3> <p>Yeah, I know these web applications are pretty much useless, but I had allot of fun hacking them and watching the traffic hit the sites. And of course, it doesn’t really matter the fact that they are useless, as long as you have fun, learn and make other people smile, that’s what really matters.</p>Tue, 13 Mar 2012 00:00:00 GMThttp://lifestream.rogeriopvl.com/post/238444932/Having-fun-developing-useless-appsurn:www-soup-io:1:238444932regular Answer by rogeriopvl for Getting the value of href attributes in all tags on a html file with Python {"tags":[],"type":"regular","title":"\u003Ca href=\"http://stackoverflow.com/questions/671323/getting-the-value-of-href-attributes-in-all-a-tags-on-a-html-file-with-python/672508#672508\"\u003EAnswer by rogeriopvl for Getting the value of href attributes in all \u003C/a\u003E\u003Ca\u003E tags on a html file with Python\u003C/a\u003E","source":"http://stackoverflow.com/questions/671323/getting-the-value-of-href-attributes-in-all-a-tags-on-a-html-file-with-python/672508#672508","body":"\u003Cp\u003EWell, just for completeness I will add here what I found to be the best answer, and I found it on the book Dive Into Python, from Mark Pilgrim.\u003C/p\u003E\n\n\u003Cp\u003EHere follows the code to list all URL's from a webpage:\u003C/p\u003E\n\n\u003Cpre\u003E\u003Ccode\u003Efrom sgmllib import SGMLParser\n\nclass URLLister(SGMLParser):\n def reset(self): \n SGMLParser.reset(self)\n self.urls = []\n\n def start_a(self, attrs): \n href = [v for k, v in attrs if k=='href'] \n if href:\n self.urls.extend(href)\n\nimport urllib, urllister\nusock = urllib.urlopen(\"http://diveintopython.net/\")\nparser = urllister.URLLister()\nparser.feed(usock.read()) \nusock.close() \nparser.close() \nfor url in parser.urls: print url\n\u003C/code\u003E\u003C/pre\u003E\n\n\u003Cp\u003EThanks for all the replies.\u003C/p\u003E"} <p>Well, just for completeness I will add here what I found to be the best answer, and I found it on the book Dive Into Python, from Mark Pilgrim.</p> <p>Here follows the code to list all URL's from a webpage:</p> <pre><code>from sgmllib import SGMLParser class URLLister(SGMLParser): def reset(self): SGMLParser.reset(self) self.urls = [] def start_a(self, attrs): href = [v for k, v in attrs if k=='href'] if href: self.urls.extend(href) import urllib, urllister usock = urllib.urlopen("http://diveintopython.net/") parser = urllister.URLLister() parser.feed(usock.read()) usock.close() parser.close() for url in parser.urls: print url </code></pre> <p>Thanks for all the replies.</p>Thu, 08 Mar 2012 14:31:41 GMThttp://lifestream.rogeriopvl.com/post/236983117/Answer-by-rogeriopvl-for-Getting-the-valueurn:www-soup-io:1:236983117regular Getting the value of href attributes in all tags on a html file with Python {"tags":["python","html","regex","parsing"],"type":"regular","title":"\u003Ca href=\"http://stackoverflow.com/questions/671323/getting-the-value-of-href-attributes-in-all-a-tags-on-a-html-file-with-python\"\u003EGetting the value of href attributes in all \u003C/a\u003E\u003Ca\u003E tags on a html file with Python\u003C/a\u003E","source":"http://stackoverflow.com/questions/671323/getting-the-value-of-href-attributes-in-all-a-tags-on-a-html-file-with-python","body":"\u003Cp\u003EI'm building an app in python, and I need to get the URL of all links in one webpage. I already have a function that uses urllib to download the html file from the web, and transform it to a list of strings with readlines().\u003C/p\u003E\n\n\u003Cp\u003ECurrently I have this code that uses regex (I'm not very good at it) to search for links in every line:\u003C/p\u003E\n\n\u003Cpre\u003E\u003Ccode\u003Efor line in lines:\n result = re.match ('/href=\"(.*)\"/iU', line)\n print result\n\u003C/code\u003E\u003C/pre\u003E\n\n\u003Cp\u003EThis is not working, as it only prints \"None\" for every line in the file, but I'm sure that at least there are 3 links on the file I'm opening.\u003C/p\u003E\n\n\u003Cp\u003ECan someone give me a hint on this?\u003C/p\u003E\n\n\u003Cp\u003EThanks in advance\u003C/p\u003E"} <p>I'm building an app in python, and I need to get the URL of all links in one webpage. I already have a function that uses urllib to download the html file from the web, and transform it to a list of strings with readlines().</p> <p>Currently I have this code that uses regex (I'm not very good at it) to search for links in every line:</p> <pre><code>for line in lines: result = re.match ('/href="(.*)"/iU', line) print result </code></pre> <p>This is not working, as it only prints "None" for every line in the file, but I'm sure that at least there are 3 links on the file I'm opening.</p> <p>Can someone give me a hint on this?</p> <p>Thanks in advance</p>Thu, 08 Mar 2012 14:31:41 GMThttp://lifestream.rogeriopvl.com/post/236983116/Getting-the-value-of-href-attributes-inurn:www-soup-io:1:236983116regularpythonhtmlregexparsing Convert the output of os.cpus() in Node.js to percentage {"tags":["node.js","operating-system","cpu"],"type":"regular","title":"\u003Ca href=\"http://stackoverflow.com/questions/9565912/convert-the-output-of-os-cpus-in-node-js-to-percentage\"\u003EConvert the output of os.cpus() in Node.js to percentage\u003C/a\u003E","source":"http://stackoverflow.com/questions/9565912/convert-the-output-of-os-cpus-in-node-js-to-percentage","body":"\u003Cp\u003EIs there a way to convert the os.cpus() info to percentage? Just like the output of iostat (on the CPU section).\u003C/p\u003E\n\n\u003Cp\u003EMy code:\u003C/p\u003E\n\n\u003Cpre\u003E\u003Ccode\u003Evar os = require('os');\nconsole.log(os.cpus());\n\u003C/code\u003E\u003C/pre\u003E\n\n\u003Cp\u003EThe output:\u003C/p\u003E\n\n\u003Cpre\u003E\u003Ccode\u003E[ { model: 'MacBookAir4,2',\n speed: 1800,\n times: \n { user: 5264280,\n nice: 0,\n sys: 4001110,\n idle: 58703910,\n irq: 0 } },\n { model: 'MacBookAir4,2',\n speed: 1800,\n times: \n { user: 2215030,\n nice: 0,\n sys: 1072600,\n idle: 64657440,\n irq: 0 } },\n { model: 'MacBookAir4,2',\n speed: 1800,\n times: \n { user: 5973360,\n nice: 0,\n sys: 3197990,\n idle: 58773760,\n irq: 0 } },\n { model: 'MacBookAir4,2',\n speed: 1800,\n times: \n { user: 2187650,\n nice: 0,\n sys: 1042550,\n idle: 64714820,\n irq: 0 } } ]\n\u003C/code\u003E\u003C/pre\u003E\n\n\u003Cp\u003EI would like to have the \"times\" metric converted to percentage, just like is show on the \u003Ccode\u003Eiostat\u003C/code\u003E command:\u003C/p\u003E\n\n\u003Cpre\u003E\u003Ccode\u003E cpu\nus sy id\n6 3 91\n\u003C/code\u003E\u003C/pre\u003E\n\n\u003Cp\u003EI understand that the values in the nodejs function are in CPU ticks, but I have no idea what formula should I use to convert them to percentage :)\u003C/p\u003E\n\n\u003Cp\u003EThanks.\u003C/p\u003E"} <p>Is there a way to convert the os.cpus() info to percentage? Just like the output of iostat (on the CPU section).</p> <p>My code:</p> <pre><code>var os = require('os'); console.log(os.cpus()); </code></pre> <p>The output:</p> <pre><code>[ { model: 'MacBookAir4,2', speed: 1800, times: { user: 5264280, nice: 0, sys: 4001110, idle: 58703910, irq: 0 } }, { model: 'MacBookAir4,2', speed: 1800, times: { user: 2215030, nice: 0, sys: 1072600, idle: 64657440, irq: 0 } }, { model: 'MacBookAir4,2', speed: 1800, times: { user: 5973360, nice: 0, sys: 3197990, idle: 58773760, irq: 0 } }, { model: 'MacBookAir4,2', speed: 1800, times: { user: 2187650, nice: 0, sys: 1042550, idle: 64714820, irq: 0 } } ] </code></pre> <p>I would like to have the "times" metric converted to percentage, just like is show on the <code>iostat</code> command:</p> <pre><code> cpu us sy id 6 3 91 </code></pre> <p>I understand that the values in the nodejs function are in CPU ticks, but I have no idea what formula should I use to convert them to percentage :)</p> <p>Thanks.</p>Mon, 05 Mar 2012 13:22:24 GMThttp://lifestream.rogeriopvl.com/post/236354599/Convert-the-output-of-os-cpus-inurn:www-soup-io:1:236354599regularnode.jsoperating-systemcpu Top 5 artists this week {"tags":[],"type":"regular","title":"Top 5 artists this week","source":"http://www.last.fm/user/conde/charts/","body":"\u003Col\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Bush\" rel=\"nofollow\"\u003EBush\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Crowhead\" rel=\"nofollow\"\u003ECrowhead\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Cradle+Of+Filth\" rel=\"nofollow\"\u003ECradle Of Filth\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Marilyn+Manson\" rel=\"nofollow\"\u003EMarilyn Manson\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Nine+Inch+Nails\" rel=\"nofollow\"\u003ENine Inch Nails\u003C/a\u003E\u00a0\u003C/li\u003E\u003C/ol\u003E"} <ol><li><a href="http://www.last.fm/music/Bush">Bush</a> </li><li><a href="http://www.last.fm/music/Crowhead">Crowhead</a> </li><li><a href="http://www.last.fm/music/Cradle+Of+Filth">Cradle Of Filth</a> </li><li><a href="http://www.last.fm/music/Marilyn+Manson">Marilyn Manson</a> </li><li><a href="http://www.last.fm/music/Nine+Inch+Nails">Nine Inch Nails</a> </li></ol>Sun, 04 Mar 2012 12:00:00 GMThttp://lifestream.rogeriopvl.com/post/236320924/Top-5-artists-this-weekurn:www-soup-io:1:236320924regular Top 5 artists this week {"tags":[],"type":"regular","title":"Top 5 artists this week","source":"http://www.last.fm/user/conde/charts/","body":"\u003Col\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Rob+Zombie\" rel=\"nofollow\"\u003ERob Zombie\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Demonical\" rel=\"nofollow\"\u003EDemonical\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Black+River\" rel=\"nofollow\"\u003EBlack River\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Michael+McCann\" rel=\"nofollow\"\u003EMichael McCann\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003C/ol\u003E"} <ol><li><a href="http://www.last.fm/music/Rob+Zombie">Rob Zombie</a> </li><li><a href="http://www.last.fm/music/Demonical">Demonical</a> </li><li><a href="http://www.last.fm/music/Black+River">Black River</a> </li><li><a href="http://www.last.fm/music/Michael+McCann">Michael McCann</a> </li><li><a></a> </li></ol>Sun, 26 Feb 2012 12:00:00 GMThttp://lifestream.rogeriopvl.com/post/234602397/Top-5-artists-this-weekurn:www-soup-io:1:234602397regular Top 5 artists this week {"tags":[],"type":"regular","title":"Top 5 artists this week","source":"http://www.last.fm/user/conde/charts/","body":"\u003Col\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Poisonblack\" rel=\"nofollow\"\u003EPoisonblack\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Murderdolls\" rel=\"nofollow\"\u003EMurderdolls\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Slipknot\" rel=\"nofollow\"\u003ESlipknot\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/The+69+Eyes\" rel=\"nofollow\"\u003EThe 69 Eyes\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Michael+McCann\" rel=\"nofollow\"\u003EMichael McCann\u003C/a\u003E\u00a0\u003C/li\u003E\u003C/ol\u003E"} <ol><li><a href="http://www.last.fm/music/Poisonblack">Poisonblack</a> </li><li><a href="http://www.last.fm/music/Murderdolls">Murderdolls</a> </li><li><a href="http://www.last.fm/music/Slipknot">Slipknot</a> </li><li><a href="http://www.last.fm/music/The+69+Eyes">The 69 Eyes</a> </li><li><a href="http://www.last.fm/music/Michael+McCann">Michael McCann</a> </li></ol>Sun, 19 Feb 2012 12:00:00 GMThttp://lifestream.rogeriopvl.com/post/232913709/Top-5-artists-this-weekurn:www-soup-io:1:232913709regular Top 5 artists this week {"tags":[],"type":"regular","title":"Top 5 artists this week","source":"http://www.last.fm/user/conde/charts/","body":"\u003Col\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Byfrost\" rel=\"nofollow\"\u003EByfrost\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Daft+Punk\" rel=\"nofollow\"\u003EDaft Punk\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/The+Glitch+Mob\" rel=\"nofollow\"\u003EThe Glitch Mob\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Moby\" rel=\"nofollow\"\u003EMoby\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/KiTheory\" rel=\"nofollow\"\u003EKiTheory\u003C/a\u003E\u00a0\u003C/li\u003E\u003C/ol\u003E"} <ol><li><a href="http://www.last.fm/music/Byfrost">Byfrost</a> </li><li><a href="http://www.last.fm/music/Daft+Punk">Daft Punk</a> </li><li><a href="http://www.last.fm/music/The+Glitch+Mob">The Glitch Mob</a> </li><li><a href="http://www.last.fm/music/Moby">Moby</a> </li><li><a href="http://www.last.fm/music/KiTheory">KiTheory</a> </li></ol>Sun, 12 Feb 2012 12:00:00 GMThttp://lifestream.rogeriopvl.com/post/231424799/Top-5-artists-this-weekurn:www-soup-io:1:231424799regular Answer by rogeriopvl for Handling OPTIONS request in nginx {"tags":[],"type":"regular","title":"\u003Ca href=\"http://stackoverflow.com/questions/227939/handling-options-request-in-nginx/9197143#9197143\"\u003EAnswer by rogeriopvl for Handling OPTIONS request in nginx\u003C/a\u003E","source":"http://stackoverflow.com/questions/227939/handling-options-request-in-nginx/9197143#9197143","body":"\u003Cp\u003EI'm probably late, but I had the same problem, and found two solutions to it.\u003C/p\u003E\n\n\u003Cp\u003EFirst is tricking Nginx that a 405 status is actually a 200 OK and then proxy_pass it to your HAProxy like this:\u003C/p\u003E\n\n\u003Cpre\u003E\u003Ccode\u003Eerror_page 405 =200 @405;\nlocation @405 {\n root /;\n proxy_pass http://yourproxy:8080;\n}\n\u003C/code\u003E\u003C/pre\u003E\n\n\u003Cp\u003EThe second solution is just to catch the OPTIONS request and build a response for those requests:\u003C/p\u003E\n\n\u003Cpre\u003E\u003Ccode\u003Elocation / {\n if ($request_method = OPTIONS ) {\n add_header Content-Length 0;\n add_header Content-Type text/plain;\n return 200;\n }\n}\n\u003C/code\u003E\u003C/pre\u003E\n\n\u003Cp\u003EJust choose which one suits you better.\u003C/p\u003E\n\n\u003Cp\u003EI wrote this in a \u003Ca href=\"http://blog.rogeriopvl.com/archives/nginx-and-the-http-options-method\" rel=\"nofollow\"\u003Eblog post\u003C/a\u003E where you can find more details.\u003C/p\u003E"} <p>I'm probably late, but I had the same problem, and found two solutions to it.</p> <p>First is tricking Nginx that a 405 status is actually a 200 OK and then proxy_pass it to your HAProxy like this:</p> <pre><code>error_page 405 =200 @405; location @405 { root /; proxy_pass http://yourproxy:8080; } </code></pre> <p>The second solution is just to catch the OPTIONS request and build a response for those requests:</p> <pre><code>location / { if ($request_method = OPTIONS ) { add_header Content-Length 0; add_header Content-Type text/plain; return 200; } } </code></pre> <p>Just choose which one suits you better.</p> <p>I wrote this in a <a href="http://blog.rogeriopvl.com/archives/nginx-and-the-http-options-method">blog post</a> where you can find more details.</p>Wed, 08 Feb 2012 16:22:42 GMThttp://lifestream.rogeriopvl.com/post/230131514/Answer-by-rogeriopvl-for-Handling-OPTIONS-requesturn:www-soup-io:1:230131514regular Top 5 artists this week {"tags":[],"type":"regular","title":"Top 5 artists this week","source":"http://www.last.fm/user/conde/charts/","body":"\u003Col\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Iron+Maiden\" rel=\"nofollow\"\u003EIron Maiden\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Atari+Teenage+Riot\" rel=\"nofollow\"\u003EAtari Teenage Riot\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Michael+McCann\" rel=\"nofollow\"\u003EMichael McCann\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003C/ol\u003E"} <ol><li><a href="http://www.last.fm/music/Iron+Maiden">Iron Maiden</a> </li><li><a href="http://www.last.fm/music/Atari+Teenage+Riot">Atari Teenage Riot</a> </li><li><a href="http://www.last.fm/music/Michael+McCann">Michael McCann</a> </li><li><a></a> </li><li><a></a> </li></ol>Sun, 05 Feb 2012 12:00:00 GMThttp://lifestream.rogeriopvl.com/post/229412441/Top-5-artists-this-weekurn:www-soup-io:1:229412441regular Top 5 artists this week {"tags":[],"type":"regular","title":"Top 5 artists this week","source":"http://www.last.fm/user/conde/charts/","body":"\u003Col\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Michael+McCann\" rel=\"nofollow\"\u003EMichael McCann\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Machinae+Supremacy\" rel=\"nofollow\"\u003EMachinae Supremacy\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Doom+Unit\" rel=\"nofollow\"\u003EDoom Unit\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/The+69+Eyes\" rel=\"nofollow\"\u003EThe 69 Eyes\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Sentenced\" rel=\"nofollow\"\u003ESentenced\u003C/a\u003E\u00a0\u003C/li\u003E\u003C/ol\u003E"} <ol><li><a href="http://www.last.fm/music/Michael+McCann">Michael McCann</a> </li><li><a href="http://www.last.fm/music/Machinae+Supremacy">Machinae Supremacy</a> </li><li><a href="http://www.last.fm/music/Doom+Unit">Doom Unit</a> </li><li><a href="http://www.last.fm/music/The+69+Eyes">The 69 Eyes</a> </li><li><a href="http://www.last.fm/music/Sentenced">Sentenced</a> </li></ol>Sun, 29 Jan 2012 12:00:00 GMThttp://lifestream.rogeriopvl.com/post/227804184/Top-5-artists-this-weekurn:www-soup-io:1:227804184regular Nginx and the HTTP OPTIONS method {"tags":[],"type":"regular","title":"\u003Ca href=\"http://blog.rogeriopvl.com/archives/nginx-and-the-http-options-method\"\u003ENginx and the HTTP OPTIONS method\u003C/a\u003E","source":"http://blog.rogeriopvl.com/archives/nginx-and-the-http-options-method","body":"\u003Cp\u003EThe current version of \u003Ca href=\"http://nginx.com\"\u003ENginx\u003C/a\u003E (1.0.x) doesn\u2019t seem to support HTTP \u003Ca href=\"http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html\"\u003EOPTIONS\u003C/a\u003E requests. It returns \u003Ccode\u003E405 \"Method Not Allowed\"\u003C/code\u003E whenever this request is sent.\u003C/p\u003E\n\n\u003Cp\u003EHere\u2019s an example using \u003Ca href=\"http://curl.haxx.se\"\u003Ecurl\u003C/a\u003E from the terminal:\u003C/p\u003E\n\u003Cdiv class=\"highlight\"\u003E\u003Cpre\u003E\u003Ccode class=\"console\"\u003E\u003Cspan class=\"gp\"\u003E$\u003C/span\u003E curl -X OPTIONS busydudes.com\n\n\u003Cspan class=\"go\"\u003E\u0026lt;html\u0026gt;\u003C/span\u003E\n\u003Cspan class=\"go\"\u003E\u0026lt;head\u0026gt;\u0026lt;title\u0026gt;405 Not Allowed\u0026lt;/title\u0026gt;\u0026lt;/head\u0026gt;\u003C/span\u003E\n\u003Cspan class=\"go\"\u003E\u0026lt;body bgcolor=\"white\"\u0026gt;\u003C/span\u003E\n\u003Cspan class=\"go\"\u003E\u0026lt;center\u0026gt;\u0026lt;h1\u0026gt;405 Not Allowed\u0026lt;/h1\u0026gt;\u0026lt;/center\u0026gt;\u003C/span\u003E\n\u003Cspan class=\"go\"\u003E\u0026lt;hr\u0026gt;\u0026lt;center\u0026gt;nginx/1.0.11\u0026lt;/center\u0026gt;\u003C/span\u003E\n\u003Cspan class=\"go\"\u003E\u0026lt;/body\u0026gt;\u003C/span\u003E\n\u003Cspan class=\"go\"\u003E\u0026lt;/html\u0026gt;\u003C/span\u003E\n\u003C/code\u003E\u003C/pre\u003E\n\u003C/div\u003E\n\u003Cp\u003EHTTP OPTIONS requests are essential if you\u2019re doing \u003Ca href=\"https://developer.mozilla.org/En/HTTP_access_control\"\u003Ecross-site HTTP requests\u003C/a\u003E and need to obtain the server authorization for the URI where the request originated from.\u003C/p\u003E\n\n\u003Cp\u003ETo solve this problem I found two solutions.\u003C/p\u003E\n\n\u003Ch4\u003ESolution 1 (not recommended)\u003C/h4\u003E\n\n\u003Cp\u003EIf you\u2019re using another web server behind Nginx and want the request to be handled by that web server, you can trick Nginx into believing that the HTTP status 405 is actually a 200 OK status, so it will just delegate the request to your webserver using the \u003Ccode\u003Eproxy_pass\u003C/code\u003E directive. Just keep in mind that this is an ugly fix. Edit your \u003Ccode\u003Enginx.conf\u003C/code\u003E file and add the following:\u003C/p\u003E\n\n\u003Cp\u003E\u003C/p\u003E\u003Cdiv class=\"highlight\"\u003E\u003Cpre\u003E\u003Ccode class=\"nginx\"\u003E\u003Cspan class=\"k\"\u003Eerror_page\u003C/span\u003E \u003Cspan class=\"mi\"\u003E405\u003C/span\u003E \u003Cspan class=\"p\"\u003E=\u003C/span\u003E\u003Cspan class=\"mi\"\u003E200\u003C/span\u003E \u003Cspan class=\"s\"\u003E@405\u003C/span\u003E\u003Cspan class=\"p\"\u003E;\u003C/span\u003E\n\u003Cspan class=\"k\"\u003Elocation\u003C/span\u003E \u003Cspan class=\"s\"\u003E@405\u003C/span\u003E \u003Cspan class=\"p\"\u003E{\u003C/span\u003E\n \u003Cspan class=\"kn\"\u003Eroot\u003C/span\u003E \u003Cspan class=\"s\"\u003E/\u003C/span\u003E\u003Cspan class=\"p\"\u003E;\u003C/span\u003E\n \u003Cspan class=\"kn\"\u003Eproxy_pass\u003C/span\u003E \u003Cspan class=\"s\"\u003Ehttp://localhost:8080\u003C/span\u003E\u003Cspan class=\"p\"\u003E;\u003C/span\u003E\n\u003Cspan class=\"p\"\u003E}\u003C/span\u003E\n\u003C/code\u003E\u003C/pre\u003E\n\u003C/div\u003E\u003Cp\u003E\u003C/p\u003E\n\n\u003Ch4\u003ESolution 2\u003C/h4\u003E\n\n\u003Cp\u003EIf you\u2019re just using Nginx as your main server, or just want to obtain the authorization response for the origin domain, then this is definitely the best solution. Edit your \u003Ccode\u003Enginx.conf\u003C/code\u003E file and add the following:\u003C/p\u003E\n\u003Cdiv class=\"highlight\"\u003E\u003Cpre\u003E\u003Ccode class=\"nginx\"\u003E\u003Cspan class=\"k\"\u003Elocation\u003C/span\u003E \u003Cspan class=\"s\"\u003E/\u003C/span\u003E \u003Cspan class=\"p\"\u003E{\u003C/span\u003E\n \u003Cspan class=\"kn\"\u003Eif\u003C/span\u003E \u003Cspan class=\"s\"\u003E(\u003C/span\u003E\u003Cspan class=\"nv\"\u003E$request_method\u003C/span\u003E \u003Cspan class=\"p\"\u003E=\u003C/span\u003E \u003Cspan class=\"s\"\u003EOPTIONS\u003C/span\u003E \u003Cspan class=\"s\"\u003E)\u003C/span\u003E \u003Cspan class=\"p\"\u003E{\u003C/span\u003E\n \u003Cspan class=\"kn\"\u003Eadd_header\u003C/span\u003E \u003Cspan class=\"s\"\u003EAccess-Control-Allow-Origin\u003C/span\u003E \u003Cspan class=\"s\"\u003E\"http://example.com\"\u003C/span\u003E\u003Cspan class=\"p\"\u003E;\u003C/span\u003E\n \u003Cspan class=\"kn\"\u003Eadd_header\u003C/span\u003E \u003Cspan class=\"s\"\u003EAccess-Control-Allow-Methods\u003C/span\u003E \u003Cspan class=\"s\"\u003E\"GET,\u003C/span\u003E \u003Cspan class=\"s\"\u003EOPTIONS\"\u003C/span\u003E\u003Cspan class=\"p\"\u003E;\u003C/span\u003E\n \u003Cspan class=\"kn\"\u003Eadd_header\u003C/span\u003E \u003Cspan class=\"s\"\u003EAccess-Control-Allow-Headers\u003C/span\u003E \u003Cspan class=\"s\"\u003E\"Authorization\"\u003C/span\u003E\u003Cspan class=\"p\"\u003E;\u003C/span\u003E\n \u003Cspan class=\"kn\"\u003Eadd_header\u003C/span\u003E \u003Cspan class=\"s\"\u003EAccess-Control-Allow-Credentials\u003C/span\u003E \u003Cspan class=\"s\"\u003E\"true\"\u003C/span\u003E\u003Cspan class=\"p\"\u003E;\u003C/span\u003E\n \u003Cspan class=\"kn\"\u003Eadd_header\u003C/span\u003E \u003Cspan class=\"s\"\u003EContent-Length\u003C/span\u003E \u003Cspan class=\"mi\"\u003E0\u003C/span\u003E\u003Cspan class=\"p\"\u003E;\u003C/span\u003E\n \u003Cspan class=\"kn\"\u003Eadd_header\u003C/span\u003E \u003Cspan class=\"s\"\u003EContent-Type\u003C/span\u003E \u003Cspan class=\"s\"\u003Etext/plain\u003C/span\u003E\u003Cspan class=\"p\"\u003E;\u003C/span\u003E\n \u003Cspan class=\"kn\"\u003Ereturn\u003C/span\u003E \u003Cspan class=\"mi\"\u003E200\u003C/span\u003E\u003Cspan class=\"p\"\u003E;\u003C/span\u003E\n \u003Cspan class=\"p\"\u003E}\u003C/span\u003E\n\u003Cspan class=\"p\"\u003E}\u003C/span\u003E\n\u003C/code\u003E\u003C/pre\u003E\n\u003C/div\u003E\n\u003Cp\u003EYou should edit the \u003Ccode\u003Ehttp://example.com\u003C/code\u003E to match the origin URI you want to allow. If you want to allow any origin just use the \u003Ccode\u003E*\u003C/code\u003E wildcard.\u003C/p\u003E"} <p>The current version of <a href="http://nginx.com">Nginx</a> (1.0.x) doesn’t seem to support HTTP <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html">OPTIONS</a> requests. It returns <code>405 "Method Not Allowed"</code> whenever this request is sent.</p> <p>Here’s an example using <a href="http://curl.haxx.se">curl</a> from the terminal:</p> <div class="highlight"><pre><code class="console"><span class="gp">$</span> curl -X OPTIONS busydudes.com <span class="go">&lt;html&gt;</span> <span class="go">&lt;head&gt;&lt;title&gt;405 Not Allowed&lt;/title&gt;&lt;/head&gt;</span> <span class="go">&lt;body bgcolor="white"&gt;</span> <span class="go">&lt;center&gt;&lt;h1&gt;405 Not Allowed&lt;/h1&gt;&lt;/center&gt;</span> <span class="go">&lt;hr&gt;&lt;center&gt;nginx/1.0.11&lt;/center&gt;</span> <span class="go">&lt;/body&gt;</span> <span class="go">&lt;/html&gt;</span> </code></pre> </div> <p>HTTP OPTIONS requests are essential if you’re doing <a href="https://developer.mozilla.org/En/HTTP_access_control">cross-site HTTP requests</a> and need to obtain the server authorization for the URI where the request originated from.</p> <p>To solve this problem I found two solutions.</p> <h4>Solution 1 (not recommended)</h4> <p>If you’re using another web server behind Nginx and want the request to be handled by that web server, you can trick Nginx into believing that the HTTP status 405 is actually a 200 OK status, so it will just delegate the request to your webserver using the <code>proxy_pass</code> directive. Just keep in mind that this is an ugly fix. Edit your <code>nginx.conf</code> file and add the following:</p> <p></p><div class="highlight"><pre><code class="nginx"><span class="k">error_page</span> <span class="mi">405</span> <span class="p">=</span><span class="mi">200</span> <span class="s">@405</span><span class="p">;</span> <span class="k">location</span> <span class="s">@405</span> <span class="p">{</span> <span class="kn">root</span> <span class="s">/</span><span class="p">;</span> <span class="kn">proxy_pass</span> <span class="s">http://localhost:8080</span><span class="p">;</span> <span class="p">}</span> </code></pre> </div><p></p> <h4>Solution 2</h4> <p>If you’re just using Nginx as your main server, or just want to obtain the authorization response for the origin domain, then this is definitely the best solution. Edit your <code>nginx.conf</code> file and add the following:</p> <div class="highlight"><pre><code class="nginx"><span class="k">location</span> <span class="s">/</span> <span class="p">{</span> <span class="kn">if</span> <span class="s">(</span><span class="nv">$request_method</span> <span class="p">=</span> <span class="s">OPTIONS</span> <span class="s">)</span> <span class="p">{</span> <span class="kn">add_header</span> <span class="s">Access-Control-Allow-Origin</span> <span class="s">"http://example.com"</span><span class="p">;</span> <span class="kn">add_header</span> <span class="s">Access-Control-Allow-Methods</span> <span class="s">"GET,</span> <span class="s">OPTIONS"</span><span class="p">;</span> <span class="kn">add_header</span> <span class="s">Access-Control-Allow-Headers</span> <span class="s">"Authorization"</span><span class="p">;</span> <span class="kn">add_header</span> <span class="s">Access-Control-Allow-Credentials</span> <span class="s">"true"</span><span class="p">;</span> <span class="kn">add_header</span> <span class="s">Content-Length</span> <span class="mi">0</span><span class="p">;</span> <span class="kn">add_header</span> <span class="s">Content-Type</span> <span class="s">text/plain</span><span class="p">;</span> <span class="kn">return</span> <span class="mi">200</span><span class="p">;</span> <span class="p">}</span> <span class="p">}</span> </code></pre> </div> <p>You should edit the <code><a href="http://example.com">http://example.com</a></code> to match the origin URI you want to allow. If you want to allow any origin just use the <code>*</code> wildcard.</p>Fri, 27 Jan 2012 00:00:00 GMThttp://lifestream.rogeriopvl.com/post/230158122/Nginx-and-the-HTTP-OPTIONS-methodurn:www-soup-io:1:230158122regular Top 5 artists this week {"tags":[],"type":"regular","title":"Top 5 artists this week","source":"http://www.last.fm/user/conde/charts/","body":"\u003Col\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Michael+McCann\" rel=\"nofollow\"\u003EMichael McCann\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Metallica\" rel=\"nofollow\"\u003EMetallica\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Daft+Punk\" rel=\"nofollow\"\u003EDaft Punk\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Reflexion\" rel=\"nofollow\"\u003EReflexion\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003C/ol\u003E"} <ol><li><a href="http://www.last.fm/music/Michael+McCann">Michael McCann</a> </li><li><a href="http://www.last.fm/music/Metallica">Metallica</a> </li><li><a href="http://www.last.fm/music/Daft+Punk">Daft Punk</a> </li><li><a href="http://www.last.fm/music/Reflexion">Reflexion</a> </li><li><a></a> </li></ol>Sun, 22 Jan 2012 12:00:00 GMThttp://lifestream.rogeriopvl.com/post/226026993/Top-5-artists-this-weekurn:www-soup-io:1:226026993regular Top 5 artists this week {"tags":[],"type":"regular","title":"Top 5 artists this week","source":"http://www.last.fm/user/conde/charts/","body":"\u003Col\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Cradle+Of+Filth\" rel=\"nofollow\"\u003ECradle Of Filth\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Machinae+Supremacy\" rel=\"nofollow\"\u003EMachinae Supremacy\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Nosferatu\" rel=\"nofollow\"\u003ENosferatu\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/The+Temple\" rel=\"nofollow\"\u003EThe Temple\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003C/ol\u003E"} <ol><li><a href="http://www.last.fm/music/Cradle+Of+Filth">Cradle Of Filth</a> </li><li><a href="http://www.last.fm/music/Machinae+Supremacy">Machinae Supremacy</a> </li><li><a href="http://www.last.fm/music/Nosferatu">Nosferatu</a> </li><li><a href="http://www.last.fm/music/The+Temple">The Temple</a> </li><li><a></a> </li></ol>Sun, 15 Jan 2012 12:00:00 GMThttp://lifestream.rogeriopvl.com/post/221576303/Top-5-artists-this-weekurn:www-soup-io:1:221576303regular Top 5 artists this week {"tags":[],"type":"regular","title":"Top 5 artists this week","source":"http://www.last.fm/user/conde/charts/","body":"\u003Col\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Steve+Jablonsky\" rel=\"nofollow\"\u003ESteve Jablonsky\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003C/ol\u003E"} <ol><li><a href="http://www.last.fm/music/Steve+Jablonsky">Steve Jablonsky</a> </li><li><a></a> </li><li><a></a> </li><li><a></a> </li><li><a></a> </li></ol>Sun, 08 Jan 2012 12:00:00 GMThttp://lifestream.rogeriopvl.com/post/216643389/Top-5-artists-this-weekurn:www-soup-io:1:216643389regular Top 5 artists this week {"tags":[],"type":"regular","title":"Top 5 artists this week","source":"http://www.last.fm/user/conde/charts/","body":"\u003Col\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Steve+Jablonsky\" rel=\"nofollow\"\u003ESteve Jablonsky\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Rob+Zombie\" rel=\"nofollow\"\u003ERob Zombie\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Iron+Maiden\" rel=\"nofollow\"\u003EIron Maiden\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Hanzel+und+Gretyl\" rel=\"nofollow\"\u003EHanzel und Gretyl\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/The+Haunted\" rel=\"nofollow\"\u003EThe Haunted\u003C/a\u003E\u00a0\u003C/li\u003E\u003C/ol\u003E"} <ol><li><a href="http://www.last.fm/music/Steve+Jablonsky">Steve Jablonsky</a> </li><li><a href="http://www.last.fm/music/Rob+Zombie">Rob Zombie</a> </li><li><a href="http://www.last.fm/music/Iron+Maiden">Iron Maiden</a> </li><li><a href="http://www.last.fm/music/Hanzel+und+Gretyl">Hanzel und Gretyl</a> </li><li><a href="http://www.last.fm/music/The+Haunted">The Haunted</a> </li></ol>Sun, 01 Jan 2012 12:00:00 GMThttp://lifestream.rogeriopvl.com/post/211910433/Top-5-artists-this-weekurn:www-soup-io:1:211910433regular Top 5 artists this week {"tags":[],"type":"regular","title":"Top 5 artists this week","source":"http://www.last.fm/user/conde/charts/","body":"\u003Col\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Immortal\" rel=\"nofollow\"\u003EImmortal\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Poisonblack\" rel=\"nofollow\"\u003EPoisonblack\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/HIM\" rel=\"nofollow\"\u003EHIM\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Rob+Zombie\" rel=\"nofollow\"\u003ERob Zombie\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Hanzel+und+Gretyl\" rel=\"nofollow\"\u003EHanzel und Gretyl\u003C/a\u003E\u00a0\u003C/li\u003E\u003C/ol\u003E"} <ol><li><a href="http://www.last.fm/music/Immortal">Immortal</a> </li><li><a href="http://www.last.fm/music/Poisonblack">Poisonblack</a> </li><li><a href="http://www.last.fm/music/HIM">HIM</a> </li><li><a href="http://www.last.fm/music/Rob+Zombie">Rob Zombie</a> </li><li><a href="http://www.last.fm/music/Hanzel+und+Gretyl">Hanzel und Gretyl</a> </li></ol>Sun, 25 Dec 2011 12:00:00 GMThttp://lifestream.rogeriopvl.com/post/203413631/Top-5-artists-this-weekurn:www-soup-io:1:203413631regular Top 5 artists this week {"tags":[],"type":"regular","title":"Top 5 artists this week","source":"http://www.last.fm/user/conde/charts/","body":"\u003Col\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Slipknot\" rel=\"nofollow\"\u003ESlipknot\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Immortal\" rel=\"nofollow\"\u003EImmortal\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003C/ol\u003E"} <ol><li><a href="http://www.last.fm/music/Slipknot">Slipknot</a> </li><li><a href="http://www.last.fm/music/Immortal">Immortal</a> </li><li><a></a> </li><li><a></a> </li><li><a></a> </li></ol>Sun, 18 Dec 2011 12:00:00 GMThttp://lifestream.rogeriopvl.com/post/200903705/Top-5-artists-this-weekurn:www-soup-io:1:200903705regular Top 5 artists this week {"tags":[],"type":"regular","title":"Top 5 artists this week","source":"http://www.last.fm/user/conde/charts/","body":"\u003Col\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Byfrost\" rel=\"nofollow\"\u003EByfrost\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003C/ol\u003E"} <ol><li><a href="http://www.last.fm/music/Byfrost">Byfrost</a> </li><li><a></a> </li><li><a></a> </li><li><a></a> </li><li><a></a> </li></ol>Sun, 11 Dec 2011 12:00:00 GMThttp://lifestream.rogeriopvl.com/post/198672921/Top-5-artists-this-weekurn:www-soup-io:1:198672921regular Fixing libdlna formula in Homebrew {"tags":[],"type":"regular","title":"\u003Ca href=\"http://blog.rogeriopvl.com/archives/fixing-libdlna-formula-in-homebrew\"\u003EFixing libdlna formula in Homebrew\u003C/a\u003E","source":"http://blog.rogeriopvl.com/archives/fixing-libdlna-formula-in-homebrew","body":"\u003Cp\u003ERecently I got an \u003Ca href=\"http://feeds.feedburner.com/img/xbox_xmas.jpg\" rel=\"shadowbox\"\u003EXBox 360 for xmas\u003C/a\u003E, and started looking for ways to stream the music in my Macbook Air to it. I found some interesting commercial software to do it, but stumbled upon an open-source linux tool called \u003Ca href=\"http://ushare.geexbox.org\"\u003EuShare\u003C/a\u003E that was also available through the \u003Ca href=\"http://mxcl.github.com/homebrew\"\u003EHomebrew\u003C/a\u003E package manager.\u003C/p\u003E\n\n\u003Cp\u003EDoing a \u003Ccode\u003Ebrew install ushare\u003C/code\u003E immediately stopped due to a \u003Ccode\u003Emake install\u003C/code\u003E error of the \u003Ccode\u003Elibdlna\u003C/code\u003E package, a dependency of uShare, that is required for compatibility with Playstation 3. Here\u2019s the error I got:\u003C/p\u003E\n\u003Cdiv class=\"highlight\"\u003E\u003Cpre\u003E\u003Ccode class=\"console\"\u003E\u003Cspan class=\"go\"\u003Eprofiles.c: In function 'av_profile_get_codecs':\u003C/span\u003E\n\u003Cspan class=\"go\"\u003Eprofiles.c:208: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)\u003C/span\u003E\n\u003Cspan class=\"go\"\u003Eprofiles.c:208: error: (Each undeclared identifier is reported only once\u003C/span\u003E\n\u003Cspan class=\"go\"\u003Eprofiles.c:208: error: for each function it appears in.)\u003C/span\u003E\n\u003Cspan class=\"go\"\u003Eprofiles.c:214: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)\u003C/span\u003E\n\u003Cspan class=\"go\"\u003Emake[1]: *** [profiles.o] Error 1\u003C/span\u003E\n\u003Cspan class=\"go\"\u003Emake[1]: *** Waiting for unfinished jobs....\u003C/span\u003E\n\u003Cspan class=\"go\"\u003Emake: *** [install] Error 2\u003C/span\u003E\n\u003C/code\u003E\u003C/pre\u003E\n\u003C/div\u003E\n\u003Cp\u003EThis error happens for newer versions of the \u003Ccode\u003Elibavformat\u003C/code\u003E that no longer have the symbols \u003Ccode\u003ECODEC_TYPE_AUDIO\u003C/code\u003E and \u003Ccode\u003ECODEC_TYPE_VIDEO\u003C/code\u003E.\u003C/p\u003E\n\n\u003Cp\u003ESo, in order to fix the formula you need to apply this patch to the source code of \u003Ccode\u003Elibdlna\u003C/code\u003E. You can find the content of this patch in a \u003Ca href=\"https://gist.github.com/1434147\"\u003Egithub gist\u003C/a\u003E. But to successfully install the Homebrew formula you have to edit the formula file and include this patch in the \u003Ccode\u003Epatches\u003C/code\u003E method:\u003C/p\u003E\n\u003Cdiv class=\"highlight\"\u003E\u003Cpre\u003E\u003Ccode class=\"console\"\u003E\u003Cspan class=\"gp\"\u003E$\u003C/span\u003E brew edit libdnla\n\u003C/code\u003E\u003C/pre\u003E\n\u003C/div\u003E\n\u003Cp\u003EThen find the patches method (on line 10) and change the code inside to the following:\u003C/p\u003E\n\u003Cdiv class=\"highlight\"\u003E\u003Cpre\u003E\u003Ccode class=\"ruby\"\u003E\u003Cspan class=\"k\"\u003Edef\u003C/span\u003E \u003Cspan class=\"nf\"\u003Epatches\u003C/span\u003E\n \u003Cspan class=\"o\"\u003E[\u003C/span\u003E\n \u003Cspan class=\"c1\"\u003E# fixes ffmpeg locations\u003C/span\u003E\n \u003Cspan class=\"s2\"\u003E\"https://gist.github.com/raw/356431/fbddfeee80d9224f6c67886b119fbd813f3c0ffa/libdlna.patch\"\u003C/span\u003E\u003Cspan class=\"p\"\u003E,\u003C/span\u003E\n \u003Cspan class=\"c1\"\u003E# fixes missing symbols for newer versions of libavformat\u003C/span\u003E\n \u003Cspan class=\"s2\"\u003E\"https://gist.github.com/raw/1434147/293ec631536bc34a6e2dd49bb0f30c86f02b1107/libdlna023_fix_symbols.patch\"\u003C/span\u003E\n \u003Cspan class=\"o\"\u003E]\u003C/span\u003E\n\u003Cspan class=\"k\"\u003Eend\u003C/span\u003E\n\u003C/code\u003E\u003C/pre\u003E\n\u003C/div\u003E\n\u003Cp\u003EBasically, instead of returning just the patch that was already in the formula as a string, I\u2019m now returning an array with that patch, and my patch.\u003C/p\u003E\n\n\u003Cp\u003ENow just save the file and:\u003C/p\u003E\n\u003Cdiv class=\"highlight\"\u003E\u003Cpre\u003E\u003Ccode class=\"console\"\u003E\u003Cspan class=\"gp\"\u003E$\u003C/span\u003E brew install libdlna\n\u003C/code\u003E\u003C/pre\u003E\n\u003C/div\u003E\n\u003Cp\u003EAnd then resume the \u003Ccode\u003Eushare\u003C/code\u003E formula install:\u003C/p\u003E\n\u003Cdiv class=\"highlight\"\u003E\u003Cpre\u003E\u003Ccode class=\"console\"\u003E\u003Cspan class=\"gp\"\u003E$\u003C/span\u003E brew install ushare\n\u003C/code\u003E\u003C/pre\u003E\n\u003C/div\u003E\n\u003Cp\u003EThat\u2019s it. It should now install without a hassle.\u003C/p\u003E\n\n\u003Cp\u003EI submitted this change to the Homebrew project with a \u003Ca href=\"https://github.com/mxcl/homebrew/pull/8981\"\u003Epull request\u003C/a\u003E, so anytime soon you won\u2019t be needing this workaround :)\u003C/p\u003E"} <p>Recently I got an <a href="http://feeds.feedburner.com/img/xbox_xmas.jpg">XBox 360 for xmas</a>, and started looking for ways to stream the music in my Macbook Air to it. I found some interesting commercial software to do it, but stumbled upon an open-source linux tool called <a href="http://ushare.geexbox.org">uShare</a> that was also available through the <a href="http://mxcl.github.com/homebrew">Homebrew</a> package manager.</p> <p>Doing a <code>brew install ushare</code> immediately stopped due to a <code>make install</code> error of the <code>libdlna</code> package, a dependency of uShare, that is required for compatibility with Playstation 3. Here’s the error I got:</p> <div class="highlight"><pre><code class="console"><span class="go">profiles.c: In function 'av_profile_get_codecs':</span> <span class="go">profiles.c:208: error: 'CODEC_TYPE_AUDIO' undeclared (first use in this function)</span> <span class="go">profiles.c:208: error: (Each undeclared identifier is reported only once</span> <span class="go">profiles.c:208: error: for each function it appears in.)</span> <span class="go">profiles.c:214: error: 'CODEC_TYPE_VIDEO' undeclared (first use in this function)</span> <span class="go">make[1]: *** [profiles.o] Error 1</span> <span class="go">make[1]: *** Waiting for unfinished jobs....</span> <span class="go">make: *** [install] Error 2</span> </code></pre> </div> <p>This error happens for newer versions of the <code>libavformat</code> that no longer have the symbols <code>CODEC_TYPE_AUDIO</code> and <code>CODEC_TYPE_VIDEO</code>.</p> <p>So, in order to fix the formula you need to apply this patch to the source code of <code>libdlna</code>. You can find the content of this patch in a <a href="https://gist.github.com/1434147">github gist</a>. But to successfully install the Homebrew formula you have to edit the formula file and include this patch in the <code>patches</code> method:</p> <div class="highlight"><pre><code class="console"><span class="gp">$</span> brew edit libdnla </code></pre> </div> <p>Then find the patches method (on line 10) and change the code inside to the following:</p> <div class="highlight"><pre><code class="ruby"><span class="k">def</span> <span class="nf">patches</span> <span class="o">[</span> <span class="c1"># fixes ffmpeg locations</span> <span class="s2">"https://gist.github.com/raw/356431/fbddfeee80d9224f6c67886b119fbd813f3c0ffa/libdlna.patch"</span><span class="p">,</span> <span class="c1"># fixes missing symbols for newer versions of libavformat</span> <span class="s2">"https://gist.github.com/raw/1434147/293ec631536bc34a6e2dd49bb0f30c86f02b1107/libdlna023_fix_symbols.patch"</span> <span class="o">]</span> <span class="k">end</span> </code></pre> </div> <p>Basically, instead of returning just the patch that was already in the formula as a string, I’m now returning an array with that patch, and my patch.</p> <p>Now just save the file and:</p> <div class="highlight"><pre><code class="console"><span class="gp">$</span> brew install libdlna </code></pre> </div> <p>And then resume the <code>ushare</code> formula install:</p> <div class="highlight"><pre><code class="console"><span class="gp">$</span> brew install ushare </code></pre> </div> <p>That’s it. It should now install without a hassle.</p> <p>I submitted this change to the Homebrew project with a <a href="https://github.com/mxcl/homebrew/pull/8981">pull request</a>, so anytime soon you won’t be needing this workaround :)</p>Tue, 06 Dec 2011 00:00:00 GMThttp://lifestream.rogeriopvl.com/post/197267482/Fixing-libdlna-formula-in-Homebrewurn:www-soup-io:1:197267482regular Top 5 artists this week {"tags":[],"type":"regular","title":"Top 5 artists this week","source":"http://www.last.fm/user/conde/charts/","body":"\u003Col\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Mortiis\" rel=\"nofollow\"\u003EMortiis\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Nirvana\" rel=\"nofollow\"\u003ENirvana\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003C/ol\u003E"} <ol><li><a href="http://www.last.fm/music/Mortiis">Mortiis</a> </li><li><a href="http://www.last.fm/music/Nirvana">Nirvana</a> </li><li><a></a> </li><li><a></a> </li><li><a></a> </li></ol>Sun, 04 Dec 2011 12:00:00 GMThttp://lifestream.rogeriopvl.com/post/197193003/Top-5-artists-this-weekurn:www-soup-io:1:197193003regular Top 5 artists this week {"tags":[],"type":"regular","title":"Top 5 artists this week","source":"http://www.last.fm/user/conde/charts/","body":"\u003Col\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Murderdolls\" rel=\"nofollow\"\u003EMurderdolls\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Atari+Teenage+Riot\" rel=\"nofollow\"\u003EAtari Teenage Riot\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Deadstar+Assembly\" rel=\"nofollow\"\u003EDeadstar Assembly\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Dimmu+Borgir\" rel=\"nofollow\"\u003EDimmu Borgir\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/HIM\" rel=\"nofollow\"\u003EHIM\u003C/a\u003E\u00a0\u003C/li\u003E\u003C/ol\u003E"} <ol><li><a href="http://www.last.fm/music/Murderdolls">Murderdolls</a> </li><li><a href="http://www.last.fm/music/Atari+Teenage+Riot">Atari Teenage Riot</a> </li><li><a href="http://www.last.fm/music/Deadstar+Assembly">Deadstar Assembly</a> </li><li><a href="http://www.last.fm/music/Dimmu+Borgir">Dimmu Borgir</a> </li><li><a href="http://www.last.fm/music/HIM">HIM</a> </li></ol>Sun, 27 Nov 2011 12:00:00 GMThttp://lifestream.rogeriopvl.com/post/195445850/Top-5-artists-this-weekurn:www-soup-io:1:195445850regular Top 5 artists this week {"tags":[],"type":"regular","title":"Top 5 artists this week","source":"http://www.last.fm/user/conde/charts/","body":"\u003Col\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/The+Glitch+Mob\" rel=\"nofollow\"\u003EThe Glitch Mob\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Cradle+Of+Filth\" rel=\"nofollow\"\u003ECradle Of Filth\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003C/ol\u003E"} <ol><li><a href="http://www.last.fm/music/The+Glitch+Mob">The Glitch Mob</a> </li><li><a href="http://www.last.fm/music/Cradle+Of+Filth">Cradle Of Filth</a> </li><li><a></a> </li><li><a></a> </li><li><a></a> </li></ol>Sun, 20 Nov 2011 12:00:00 GMThttp://lifestream.rogeriopvl.com/post/194210176/Top-5-artists-this-weekurn:www-soup-io:1:194210176regular Top 5 artists this week {"tags":[],"type":"regular","title":"Top 5 artists this week","source":"http://www.last.fm/user/conde/charts/","body":"\u003Col\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Bloodhound+Gang\" rel=\"nofollow\"\u003EBloodhound Gang\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Cradle+Of+Filth\" rel=\"nofollow\"\u003ECradle Of Filth\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Opiuo\" rel=\"nofollow\"\u003EOpiuo\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Emperor\" rel=\"nofollow\"\u003EEmperor\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Iron+Maiden\" rel=\"nofollow\"\u003EIron Maiden\u003C/a\u003E\u00a0\u003C/li\u003E\u003C/ol\u003E"} <ol><li><a href="http://www.last.fm/music/Bloodhound+Gang">Bloodhound Gang</a> </li><li><a href="http://www.last.fm/music/Cradle+Of+Filth">Cradle Of Filth</a> </li><li><a href="http://www.last.fm/music/Opiuo">Opiuo</a> </li><li><a href="http://www.last.fm/music/Emperor">Emperor</a> </li><li><a href="http://www.last.fm/music/Iron+Maiden">Iron Maiden</a> </li></ol>Sun, 13 Nov 2011 12:00:00 GMThttp://lifestream.rogeriopvl.com/post/192943642/Top-5-artists-this-weekurn:www-soup-io:1:192943642regular Top 5 artists this week {"tags":[],"type":"regular","title":"Top 5 artists this week","source":"http://www.last.fm/user/conde/charts/","body":"\u003Col\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Atari+Teenage+Riot\" rel=\"nofollow\"\u003EAtari Teenage Riot\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Cradle+Of+Filth\" rel=\"nofollow\"\u003ECradle Of Filth\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Byfrost\" rel=\"nofollow\"\u003EByfrost\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Dimmu+Borgir\" rel=\"nofollow\"\u003EDimmu Borgir\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Nosferatu\" rel=\"nofollow\"\u003ENosferatu\u003C/a\u003E\u00a0\u003C/li\u003E\u003C/ol\u003E"} <ol><li><a href="http://www.last.fm/music/Atari+Teenage+Riot">Atari Teenage Riot</a> </li><li><a href="http://www.last.fm/music/Cradle+Of+Filth">Cradle Of Filth</a> </li><li><a href="http://www.last.fm/music/Byfrost">Byfrost</a> </li><li><a href="http://www.last.fm/music/Dimmu+Borgir">Dimmu Borgir</a> </li><li><a href="http://www.last.fm/music/Nosferatu">Nosferatu</a> </li></ol>Sun, 06 Nov 2011 12:00:00 GMThttp://lifestream.rogeriopvl.com/post/191184526/Top-5-artists-this-weekurn:www-soup-io:1:191184526regular Top 5 artists this week {"tags":[],"type":"regular","title":"Top 5 artists this week","source":"http://www.last.fm/user/conde/charts/","body":"\u003Col\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Poisonblack\" rel=\"nofollow\"\u003EPoisonblack\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Opiuo\" rel=\"nofollow\"\u003EOpiuo\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Bloodhound+Gang\" rel=\"nofollow\"\u003EBloodhound Gang\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Fleshgod+Apocalypse\" rel=\"nofollow\"\u003EFleshgod Apocalypse\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Doom+Unit\" rel=\"nofollow\"\u003EDoom Unit\u003C/a\u003E\u00a0\u003C/li\u003E\u003C/ol\u003E"} <ol><li><a href="http://www.last.fm/music/Poisonblack">Poisonblack</a> </li><li><a href="http://www.last.fm/music/Opiuo">Opiuo</a> </li><li><a href="http://www.last.fm/music/Bloodhound+Gang">Bloodhound Gang</a> </li><li><a href="http://www.last.fm/music/Fleshgod+Apocalypse">Fleshgod Apocalypse</a> </li><li><a href="http://www.last.fm/music/Doom+Unit">Doom Unit</a> </li></ol>Sun, 30 Oct 2011 12:00:00 GMThttp://lifestream.rogeriopvl.com/post/187483186/Top-5-artists-this-weekurn:www-soup-io:1:187483186regular Top 5 artists this week {"tags":[],"type":"regular","title":"Top 5 artists this week","source":"http://www.last.fm/user/conde/charts/","body":"\u003Col\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Freedom+Hawk\" rel=\"nofollow\"\u003EFreedom Hawk\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Demonical\" rel=\"nofollow\"\u003EDemonical\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/The+Glitch+Mob\" rel=\"nofollow\"\u003EThe Glitch Mob\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003C/ol\u003E"} <ol><li><a href="http://www.last.fm/music/Freedom+Hawk">Freedom Hawk</a> </li><li><a href="http://www.last.fm/music/Demonical">Demonical</a> </li><li><a href="http://www.last.fm/music/The+Glitch+Mob">The Glitch Mob</a> </li><li><a></a> </li><li><a></a> </li></ol>Sun, 23 Oct 2011 12:00:00 GMThttp://lifestream.rogeriopvl.com/post/186025806/Top-5-artists-this-weekurn:www-soup-io:1:186025806regular Top 5 artists this week {"tags":[],"type":"regular","title":"Top 5 artists this week","source":"http://www.last.fm/user/conde/charts/","body":"\u003Col\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Byfrost\" rel=\"nofollow\"\u003EByfrost\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/The+Glitch+Mob\" rel=\"nofollow\"\u003EThe Glitch Mob\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Wolves+in+the+Throne+Room\" rel=\"nofollow\"\u003EWolves in the Throne Room\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003C/ol\u003E"} <ol><li><a href="http://www.last.fm/music/Byfrost">Byfrost</a> </li><li><a href="http://www.last.fm/music/The+Glitch+Mob">The Glitch Mob</a> </li><li><a href="http://www.last.fm/music/Wolves+in+the+Throne+Room">Wolves in the Throne Room</a> </li><li><a></a> </li><li><a></a> </li></ol>Sun, 16 Oct 2011 12:00:00 GMThttp://lifestream.rogeriopvl.com/post/180454999/Top-5-artists-this-weekurn:www-soup-io:1:180454999regular Top 5 artists this week {"tags":[],"type":"regular","title":"Top 5 artists this week","source":"http://www.last.fm/user/conde/charts/","body":"\u003Col\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Poisonblack\" rel=\"nofollow\"\u003EPoisonblack\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Demonical\" rel=\"nofollow\"\u003EDemonical\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Freedom+Hawk\" rel=\"nofollow\"\u003EFreedom Hawk\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Byfrost\" rel=\"nofollow\"\u003EByfrost\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003C/ol\u003E"} <ol><li><a href="http://www.last.fm/music/Poisonblack">Poisonblack</a> </li><li><a href="http://www.last.fm/music/Demonical">Demonical</a> </li><li><a href="http://www.last.fm/music/Freedom+Hawk">Freedom Hawk</a> </li><li><a href="http://www.last.fm/music/Byfrost">Byfrost</a> </li><li><a></a> </li></ol>Sun, 09 Oct 2011 12:00:00 GMThttp://lifestream.rogeriopvl.com/post/179265968/Top-5-artists-this-weekurn:www-soup-io:1:179265968regular Top 5 artists this week {"tags":[],"type":"regular","title":"Top 5 artists this week","source":"http://www.last.fm/user/conde/charts/","body":"\u003Col\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Demonical\" rel=\"nofollow\"\u003EDemonical\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Black+River\" rel=\"nofollow\"\u003EBlack River\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Opeth\" rel=\"nofollow\"\u003EOpeth\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Emperor\" rel=\"nofollow\"\u003EEmperor\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Nosferatu\" rel=\"nofollow\"\u003ENosferatu\u003C/a\u003E\u00a0\u003C/li\u003E\u003C/ol\u003E"} <ol><li><a href="http://www.last.fm/music/Demonical">Demonical</a> </li><li><a href="http://www.last.fm/music/Black+River">Black River</a> </li><li><a href="http://www.last.fm/music/Opeth">Opeth</a> </li><li><a href="http://www.last.fm/music/Emperor">Emperor</a> </li><li><a href="http://www.last.fm/music/Nosferatu">Nosferatu</a> </li></ol>Sun, 18 Sep 2011 12:00:00 GMThttp://lifestream.rogeriopvl.com/post/163758747/Top-5-artists-this-weekurn:www-soup-io:1:163758747regular Top 5 artists this week {"tags":[],"type":"regular","title":"Top 5 artists this week","source":"http://www.last.fm/user/conde/charts/","body":"\u003Col\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/More+Than+A+Thousand\" rel=\"nofollow\"\u003EMore Than A Thousand\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Satyricon\" rel=\"nofollow\"\u003ESatyricon\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Daft+Punk\" rel=\"nofollow\"\u003EDaft Punk\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Metallica\" rel=\"nofollow\"\u003EMetallica\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Fleshgod+Apocalypse\" rel=\"nofollow\"\u003EFleshgod Apocalypse\u003C/a\u003E\u00a0\u003C/li\u003E\u003C/ol\u003E"} <ol><li><a href="http://www.last.fm/music/More+Than+A+Thousand">More Than A Thousand</a> </li><li><a href="http://www.last.fm/music/Satyricon">Satyricon</a> </li><li><a href="http://www.last.fm/music/Daft+Punk">Daft Punk</a> </li><li><a href="http://www.last.fm/music/Metallica">Metallica</a> </li><li><a href="http://www.last.fm/music/Fleshgod+Apocalypse">Fleshgod Apocalypse</a> </li></ol>Sun, 11 Sep 2011 12:00:00 GMThttp://lifestream.rogeriopvl.com/post/160345369/Top-5-artists-this-weekurn:www-soup-io:1:160345369regular Top 5 artists this week {"tags":[],"type":"regular","title":"Top 5 artists this week","source":"http://www.last.fm/user/conde/charts/","body":"\u0026lt;ol\u0026gt;\u0026lt;li\u0026gt;\u0026lt;a href=\"http://www.last.fm/music/Iron+Maiden\"\u0026gt;Iron Maiden\u0026lt;/a\u0026gt;\u0026amp;nbsp;\u0026lt;/li\u0026gt;\u0026lt;li\u0026gt;\u0026lt;a href=\"http://www.last.fm/music/Murderdolls\"\u0026gt;Murderdolls\u0026lt;/a\u0026gt;\u0026amp;nbsp;\u0026lt;/li\u0026gt;\u0026lt;li\u0026gt;\u0026lt;a href=\"http://www.last.fm/music/Machinae+Supremacy\"\u0026gt;Machinae Supremacy\u0026lt;/a\u0026gt;\u0026amp;nbsp;\u0026lt;/li\u0026gt;\u0026lt;li\u0026gt;\u0026lt;a href=\"http://www.last.fm/music/Slipknot\"\u0026gt;Slipknot\u0026lt;/a\u0026gt;\u0026amp;nbsp;\u0026lt;/li\u0026gt;\u0026lt;li\u0026gt;\u0026lt;a href=\"http://www.last.fm/music/Soulfly\"\u0026gt;Soulfly\u0026lt;/a\u0026gt;\u0026amp;nbsp;\u0026lt;/li\u0026gt;\u0026lt;/ol\u0026gt;"} &lt;ol&gt;&lt;li&gt;&lt;a href="<a href="http://www.last.fm/music/Iron+Maiden&quot;&gt;Iron">http://www.last.fm/music/Iron+Maiden&quot;&amp;gt;Iron</a> Maiden&lt;/a&gt;&amp;nbsp;&lt;/li&gt;&lt;li&gt;&lt;a href="<a href="http://www.last.fm/music/Murderdolls&quot;&gt;Murderdolls&lt;/a&gt;&amp;nbsp;&lt;/li&gt;&lt;li&gt;&lt;a">http://www.last.fm/music/Murderdolls&quot;&amp;gt;Murderdolls&amp;lt;/a&amp;gt;&amp;amp;nbsp;&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;&amp;lt;a</a> href="<a href="http://www.last.fm/music/Machinae+Supremacy&quot;&gt;Machinae">http://www.last.fm/music/Machinae+Supremacy&quot;&amp;gt;Machinae</a> Supremacy&lt;/a&gt;&amp;nbsp;&lt;/li&gt;&lt;li&gt;&lt;a href="<a href="http://www.last.fm/music/Slipknot&quot;&gt;Slipknot&lt;/a&gt;&amp;nbsp;&lt;/li&gt;&lt;li&gt;&lt;a">http://www.last.fm/music/Slipknot&quot;&amp;gt;Slipknot&amp;lt;/a&amp;gt;&amp;amp;nbsp;&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;&amp;lt;a</a> href="<a href="http://www.last.fm/music/Soulfly&quot;&gt;Soulfly&lt;/a&gt;&amp;nbsp;&lt;/li&gt;&lt;/ol&amp;gt">http://www.last.fm/music/Soulfly&quot;&amp;gt;Soulfly&amp;lt;/a&amp;gt;&amp;amp;nbsp;&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt</a>;Sun, 04 Sep 2011 12:00:00 GMThttp://lifestream.rogeriopvl.com/post/157840217/Top-5-artists-this-weekurn:www-soup-io:1:157840217regular Top 5 artists this week {"tags":[],"type":"regular","title":"Top 5 artists this week","source":"http://www.last.fm/user/conde/charts/","body":"\u0026lt;ol\u0026gt;\u0026lt;li\u0026gt;\u0026lt;a href=\"http://www.last.fm/music/Daft+Punk\"\u0026gt;Daft Punk\u0026lt;/a\u0026gt;\u0026amp;nbsp;\u0026lt;/li\u0026gt;\u0026lt;li\u0026gt;\u0026lt;a href=\"http://www.last.fm/music/Suicide+Commando\"\u0026gt;Suicide Commando\u0026lt;/a\u0026gt;\u0026amp;nbsp;\u0026lt;/li\u0026gt;\u0026lt;li\u0026gt;\u0026lt;a href=\"http://www.last.fm/music/Rob+Zombie\"\u0026gt;Rob Zombie\u0026lt;/a\u0026gt;\u0026amp;nbsp;\u0026lt;/li\u0026gt;\u0026lt;li\u0026gt;\u0026lt;a href=\"http://www.last.fm/music/Lacrimas+Profundere\"\u0026gt;Lacrimas Profundere\u0026lt;/a\u0026gt;\u0026amp;nbsp;\u0026lt;/li\u0026gt;\u0026lt;li\u0026gt;\u0026lt;a href=\"http://www.last.fm/music/Doom+Unit\"\u0026gt;Doom Unit\u0026lt;/a\u0026gt;\u0026amp;nbsp;\u0026lt;/li\u0026gt;\u0026lt;/ol\u0026gt;"} &lt;ol&gt;&lt;li&gt;&lt;a href="<a href="http://www.last.fm/music/Daft+Punk&quot;&gt;Daft">http://www.last.fm/music/Daft+Punk&quot;&amp;gt;Daft</a> Punk&lt;/a&gt;&amp;nbsp;&lt;/li&gt;&lt;li&gt;&lt;a href="<a href="http://www.last.fm/music/Suicide+Commando&quot;&gt;Suicide">http://www.last.fm/music/Suicide+Commando&quot;&amp;gt;Suicide</a> Commando&lt;/a&gt;&amp;nbsp;&lt;/li&gt;&lt;li&gt;&lt;a href="<a href="http://www.last.fm/music/Rob+Zombie&quot;&gt;Rob">http://www.last.fm/music/Rob+Zombie&quot;&amp;gt;Rob</a> Zombie&lt;/a&gt;&amp;nbsp;&lt;/li&gt;&lt;li&gt;&lt;a href="<a href="http://www.last.fm/music/Lacrimas+Profundere&quot;&gt;Lacrimas">http://www.last.fm/music/Lacrimas+Profundere&quot;&amp;gt;Lacrimas</a> Profundere&lt;/a&gt;&amp;nbsp;&lt;/li&gt;&lt;li&gt;&lt;a href="<a href="http://www.last.fm/music/Doom+Unit&quot;&gt;Doom">http://www.last.fm/music/Doom+Unit&quot;&amp;gt;Doom</a> Unit&lt;/a&gt;&amp;nbsp;&lt;/li&gt;&lt;/ol&gt;Sun, 28 Aug 2011 12:00:00 GMThttp://lifestream.rogeriopvl.com/post/156030897/Top-5-artists-this-weekurn:www-soup-io:1:156030897regular Answer by rogeriopvl for RoR 3.x - create gem file with engine {"tags":[],"type":"regular","title":"\u003Ca href=\"http://stackoverflow.com/questions/7220334/ror-3-x-create-gem-file-with-engine/7220430#7220430\"\u003EAnswer by rogeriopvl for RoR 3.x - create gem file with engine\u003C/a\u003E","source":"http://stackoverflow.com/questions/7220334/ror-3-x-create-gem-file-with-engine/7220430#7220430","body":"\u003Cp\u003EYou can use the gem \u003Ccode\u003Ejeweler\u003C/code\u003E for that. Here's an \u003Ca href=\"http://www.themodestrubyist.com/2010/03/05/rails-3-plugins---part-2---writing-an-engine/\" rel=\"nofollow\"\u003Earticle\u003C/a\u003E that might help you out in packaging a rails engine.\u003C/p\u003E"} <p>You can use the gem <code>jeweler</code> for that. Here's an <a href="http://www.themodestrubyist.com/2010/03/05/rails-3-plugins---part-2---writing-an-engine/">article</a> that might help you out in packaging a rails engine.</p>Sun, 28 Aug 2011 10:41:01 GMThttp://lifestream.rogeriopvl.com/post/155416276/Answer-by-rogeriopvl-for-RoR-3-xurn:www-soup-io:1:155416276regular Top 5 artists this week {"tags":[],"type":"regular","title":"Top 5 artists this week","source":"http://www.last.fm/user/conde/charts/","body":"\u0026lt;ol\u0026gt;\u0026lt;li\u0026gt;\u0026lt;a href=\"http://www.last.fm/music/Doom+Unit\"\u0026gt;Doom Unit\u0026lt;/a\u0026gt;\u0026amp;nbsp;\u0026lt;/li\u0026gt;\u0026lt;li\u0026gt;\u0026lt;a href=\"http://www.last.fm/music/Iron+Maiden\"\u0026gt;Iron Maiden\u0026lt;/a\u0026gt;\u0026amp;nbsp;\u0026lt;/li\u0026gt;\u0026lt;li\u0026gt;\u0026lt;a href=\"http://www.last.fm/music/Machinae+Supremacy\"\u0026gt;Machinae Supremacy\u0026lt;/a\u0026gt;\u0026amp;nbsp;\u0026lt;/li\u0026gt;\u0026lt;li\u0026gt;\u0026lt;a href=\"http://www.last.fm/music/More+Than+A+Thousand\"\u0026gt;More Than A Thousand\u0026lt;/a\u0026gt;\u0026amp;nbsp;\u0026lt;/li\u0026gt;\u0026lt;li\u0026gt;\u0026lt;a href=\"http://www.last.fm/music/Nosferatu\"\u0026gt;Nosferatu\u0026lt;/a\u0026gt;\u0026amp;nbsp;\u0026lt;/li\u0026gt;\u0026lt;/ol\u0026gt;"} &lt;ol&gt;&lt;li&gt;&lt;a href="<a href="http://www.last.fm/music/Doom+Unit&quot;&gt;Doom">http://www.last.fm/music/Doom+Unit&quot;&amp;gt;Doom</a> Unit&lt;/a&gt;&amp;nbsp;&lt;/li&gt;&lt;li&gt;&lt;a href="<a href="http://www.last.fm/music/Iron+Maiden&quot;&gt;Iron">http://www.last.fm/music/Iron+Maiden&quot;&amp;gt;Iron</a> Maiden&lt;/a&gt;&amp;nbsp;&lt;/li&gt;&lt;li&gt;&lt;a href="<a href="http://www.last.fm/music/Machinae+Supremacy&quot;&gt;Machinae">http://www.last.fm/music/Machinae+Supremacy&quot;&amp;gt;Machinae</a> Supremacy&lt;/a&gt;&amp;nbsp;&lt;/li&gt;&lt;li&gt;&lt;a href="<a href="http://www.last.fm/music/More+Than+A+Thousand&quot;&gt;More">http://www.last.fm/music/More+Than+A+Thousand&quot;&amp;gt;More</a> Than A Thousand&lt;/a&gt;&amp;nbsp;&lt;/li&gt;&lt;li&gt;&lt;a href="<a href="http://www.last.fm/music/Nosferatu&quot;&gt;Nosferatu&lt;/a&gt;&amp;nbsp;&lt;/li&gt;&lt;/ol&amp;gt">http://www.last.fm/music/Nosferatu&quot;&amp;gt;Nosferatu&amp;lt;/a&amp;gt;&amp;amp;nbsp;&amp;lt;/li&amp;gt;&amp;lt;/ol&amp;gt</a>;Sun, 21 Aug 2011 12:00:00 GMThttp://lifestream.rogeriopvl.com/post/155395641/Top-5-artists-this-weekurn:www-soup-io:1:155395641regular Top 5 artists this week {"tags":[],"type":"regular","title":"Top 5 artists this week","source":"http://www.last.fm/user/conde/charts/","body":"\u003Col\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca rel=\"nofollow\"\u003E\u003C/a\u003E\u00a0\u003C/li\u003E\u003C/ol\u003E"} <ol><li><a></a> </li><li><a></a> </li><li><a></a> </li><li><a></a> </li><li><a></a> </li></ol>Sun, 14 Aug 2011 12:00:00 GMThttp://lifestream.rogeriopvl.com/post/153899395/Top-5-artists-this-weekurn:www-soup-io:1:153899395regular Top 5 artists this week {"tags":[],"type":"regular","title":"Top 5 artists this week","source":"http://www.last.fm/user/conde/charts/","body":"\u003Col\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Kota+Suzuki%2C+Wataru+Hokoyama\" rel=\"nofollow\"\u003EKota Suzuki, Wataru Hokoyama\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Daft+Punk\" rel=\"nofollow\"\u003EDaft Punk\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Cradle+of+Filth\" rel=\"nofollow\"\u003ECradle of Filth\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Arch+Enemy\" rel=\"nofollow\"\u003EArch Enemy\u003C/a\u003E\u00a0\u003C/li\u003E\u003Cli\u003E\u003Ca href=\"http://www.last.fm/music/Atrium+Carceri\" rel=\"nofollow\"\u003EAtrium Carceri\u003C/a\u003E\u00a0\u003C/li\u003E\u003C/ol\u003E"} <ol><li><a href="http://www.last.fm/music/Kota+Suzuki%2C+Wataru+Hokoyama">Kota Suzuki, Wataru Hokoyama</a> </li><li><a href="http://www.last.fm/music/Daft+Punk">Daft Punk</a> </li><li><a href="http://www.last.fm/music/Cradle+of+Filth">Cradle of Filth</a> </li><li><a href="http://www.last.fm/music/Arch+Enemy">Arch Enemy</a> </li><li><a href="http://www.last.fm/music/Atrium+Carceri">Atrium Carceri</a> </li></ol>Sun, 31 Jul 2011 12:00:00 GMThttp://lifestream.rogeriopvl.com/post/151139153/Top-5-artists-this-weekurn:www-soup-io:1:151139153regular