<?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>Roman&#039;s tech blog &#187; Uncategorized</title>
	<atom:link href="http://blog.gugl.org/archives/category/uncategorized/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.gugl.org</link>
	<description>ruby, perl and other stuff</description>
	<lastBuildDate>Sat, 25 Jun 2011 20:33:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Objective-C library for MusiXmatch API</title>
		<link>http://blog.gugl.org/archives/97</link>
		<comments>http://blog.gugl.org/archives/97#comments</comments>
		<pubDate>Tue, 28 Sep 2010 11:44:02 +0000</pubDate>
		<dc:creator>Roman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.gugl.org/?p=97</guid>
		<description><![CDATA[There&#8217;s a new cool startup called MusiXmatch which provides an easy access to lyrics. They already have tons of lyrics and they recently opened their API to the alpha testers. I wrote a basic library for accessing this service. While it&#8217;s incomplete, it already provides the most often used functionality such as searching for tracks [...]]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s a new cool startup called MusiXmatch which provides an easy access to lyrics.<br />
They already have tons of lyrics and they recently opened their API to the alpha testers.<br />
I wrote a basic library for accessing this service. While it&#8217;s incomplete, it already provides the most often used functionality such as searching for tracks and getting lyrics.<br />
Example usage:</p>

<div class="wp_syntax"><div class="code"><pre class="objc" style="font-family:monospace;"><span style="color: #11740a; font-style: italic;">// Get a track</span>
Track <span style="color: #002200;">*</span>track <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>Track trackWithId<span style="color: #002200;">:</span><span style="color: #2400d9;">123</span><span style="color: #002200;">&#93;</span>;
<span style="color: #400080;">NSString</span> <span style="color: #002200;">*</span>lyrics <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>track lyrics<span style="color: #002200;">&#93;</span>;
&nbsp;
<span style="color: #11740a; font-style: italic;">// Or use the service directly</span>
MusiXmatchService <span style="color: #002200;">*</span>service <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>MusiXmatchService sharedInstance<span style="color: #002200;">&#93;</span>;
<span style="color: #400080;">NSArray</span> <span style="color: #002200;">*</span>tracks <span style="color: #002200;">=</span> <span style="color: #002200;">&#91;</span>service trackSearch<span style="color: #002200;">:</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;dreamer&quot;</span> numResults<span style="color: #002200;">:</span><span style="color: #2400d9;">10</span><span style="color: #002200;">&#93;</span>;
<span style="color: #a61390;">for</span> <span style="color: #002200;">&#40;</span>Track <span style="color: #002200;">*</span>track <span style="color: #a61390;">in</span> tracks<span style="color: #002200;">&#41;</span> <span style="color: #002200;">&#123;</span>
    NSLog<span style="color: #002200;">&#40;</span><span style="color: #bf1d1a;">@</span><span style="color: #bf1d1a;">&quot;TrackID: %u, Artist: %@, Title: %@&quot;</span>, track.mxmId, track.artist.name, track.name<span style="color: #002200;">&#41;</span>;
<span style="color: #002200;">&#125;</span></pre></div></div>

<p>Get it here:</p>
<p>http://github.com/romanbsd/musiXmatch</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.gugl.org/archives/97/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>String#include? vs. String#match</title>
		<link>http://blog.gugl.org/archives/43</link>
		<comments>http://blog.gugl.org/archives/43#comments</comments>
		<pubDate>Fri, 07 Nov 2008 11:17:13 +0000</pubDate>
		<dc:creator>Roman</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.gugl.org/?p=43</guid>
		<description><![CDATA[Interesting phenomenon; for finding whenever some string occurs inside other string, String#match is 5 (!) times faster than String#include? for long strings (50k), and 2 times slower for short strings (tens of bytes). The slowness can be explained by the time it takes to compile the regexp. But how can it be so slow for [...]]]></description>
			<content:encoded><![CDATA[<p>Interesting phenomenon; for finding whenever some string occurs inside other string, String#match is 5 (!) times faster than String#include? for long strings (50k), and 2 times slower for short strings (tens of bytes).<br />
The slowness can be explained by the time it takes to compile the regexp.<br />
But how can it be so slow for long strings? Going to ask this in ruby.core.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.gugl.org/archives/43/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

