<?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/"
	>

<channel>
	<title>Alex Curelea's Dev Log</title>
	<atom:link href="http://www.alexc.me/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.alexc.me</link>
	<description>Fun things about web development, Facebook, iPhone, and whatever else I happen to be working on.</description>
	<pubDate>Tue, 09 Feb 2010 16:52:58 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>40 Android Business Models</title>
		<link>http://www.alexc.me/40-android-business-models/279/</link>
		<comments>http://www.alexc.me/40-android-business-models/279/#comments</comments>
		<pubDate>Tue, 09 Feb 2010 16:51:51 +0000</pubDate>
		<dc:creator>alex</dc:creator>
		
		<category><![CDATA[Android]]></category>

		<guid isPermaLink="false">http://www.alexc.me/?p=279</guid>
		<description><![CDATA[While trying to figure out how to get access to paid apps on the Android Market in Canada (come on, Google&#8230; you know you want to, the Canadian dollar is strong nowadays), I stumbled on a blog series listing possible Android business models.  There is probably nothing revolutionary, but the ideas are short, sweet, [...]]]></description>
			<content:encoded><![CDATA[<p>While trying to figure out how to get access to paid apps on the Android Market in Canada (come on, Google&#8230; you know you want to, the Canadian dollar is strong nowadays), I stumbled on a blog series listing possible Android business models.  There is probably nothing revolutionary, but the ideas are short, sweet, and to the point.  The best part is only the first one (&#8221;Model #1: Build the App, Sell the App to Individuals&#8221;) relies on being in a country with full access to the Android Market, so for the rest of us in less developed countries, the other models are worth a thought.</p>
<p><a href="http://www.androidguys.com/2009/09/14/40bizmodels/">http://www.androidguys.com/2009/09/14/40bizmodels/</a><br />
<a href="http://www.androidguys.com/2009/09/15/40-android-business-models-part-two/">http://www.androidguys.com/2009/09/15/40-android-business-models-part-two/</a><br />
<a href="http://www.androidguys.com/2009/09/16/40-android-business-models-part-three/">http://www.androidguys.com/2009/09/16/40-android-business-models-part-three/</a><br />
<a href="http://www.androidguys.com/2009/09/17/40-android-business-models-part-four/">http://www.androidguys.com/2009/09/17/40-android-business-models-part-four/</a><br />
<a href="http://www.androidguys.com/2009/09/18/40-android-business-models-part-five/">http://www.androidguys.com/2009/09/18/40-android-business-models-part-five/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexc.me/40-android-business-models/279/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The iPad&#8217;s name is a joke</title>
		<link>http://www.alexc.me/the-ipads-name-is-a-joke/268/</link>
		<comments>http://www.alexc.me/the-ipads-name-is-a-joke/268/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 22:38:11 +0000</pubDate>
		<dc:creator>alex</dc:creator>
		
		<category><![CDATA[iPhone]]></category>

		<category><![CDATA[ipad]]></category>

		<category><![CDATA[ipod]]></category>

		<guid isPermaLink="false">http://www.alexc.me/?p=268</guid>
		<description><![CDATA[&#8220;I think the iPad is a bad name choice. How are people in Boston supposed to differentiate between it and the iPod?&#8221; &#8212; amusing Reddit comment.  Looks like Reddit is far from the only place making the joke:
http://search.twitter.com/search?q=ipad+boston
And, of course, the infinitely more predictable iTampon:

Note that iTampon is trending on Twitter, while iPad is [...]]]></description>
			<content:encoded><![CDATA[<p>&#8220;I think the iPad is a bad name choice. How are people in Boston supposed to differentiate between it and the iPod?&#8221; &#8212; amusing Reddit comment.  Looks like Reddit is far from the only place making the joke:</p>
<p><a href="http://search.twitter.com/search?q=ipad+boston">http://search.twitter.com/search?q=ipad+boston</a></p>
<p>And, of course, the infinitely more predictable <a href="http://search.twitter.com/search?q=iTampon+OR+%23iTampon">iTampon</a>:</p>
<p><img src="http://www.alexc.me/wp-content/uploads/2010/01/picture-1.png" alt="picture-1" title="picture-1" width="814" height="466" class="alignnone size-full wp-image-269" /></p>
<p>Note that iTampon is trending on Twitter, while iPad is not.  Although, to be fair, only roughly 1 in 10 tweets (over a highly scientific 5-minute real time search sample) mention iTampon.</p>
<p><img src="http://www.alexc.me/wp-content/uploads/2010/01/picture-2.png" alt="picture-2" title="picture-2" width="490" height="26" class="alignnone size-full wp-image-276" /></p>
<p>/amused</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexc.me/the-ipads-name-is-a-joke/268/feed/</wfw:commentRss>
		</item>
		<item>
		<title>iPhone App distribution without ad-hoc provisioning</title>
		<link>http://www.alexc.me/iphone-app-distribution-without-ad-hoc-provisioning/264/</link>
		<comments>http://www.alexc.me/iphone-app-distribution-without-ad-hoc-provisioning/264/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 18:11:51 +0000</pubDate>
		<dc:creator>alex</dc:creator>
		
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.alexc.me/?p=264</guid>
		<description><![CDATA[Mobile Orchard has a great tutorial on how to distribute iPhone apps to other developers without jumping through the ad-hoc hoops.  I haven&#8217;t tried it yet, but it&#8217;s good to know.
http://www.mobileorchard.com/developer-to-developer-iphone-app-distribution-without-ad-hoc-provisioning/
]]></description>
			<content:encoded><![CDATA[<p>Mobile Orchard has a great tutorial on how to distribute iPhone apps to other developers without jumping through the ad-hoc hoops.  I haven&#8217;t tried it yet, but it&#8217;s good to know.</p>
<p><a href="http://www.mobileorchard.com/developer-to-developer-iphone-app-distribution-without-ad-hoc-provisioning/">http://www.mobileorchard.com/developer-to-developer-iphone-app-distribution-without-ad-hoc-provisioning/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexc.me/iphone-app-distribution-without-ad-hoc-provisioning/264/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The Making of Prince of Persia</title>
		<link>http://www.alexc.me/the-making-of-prince-of-persia/261/</link>
		<comments>http://www.alexc.me/the-making-of-prince-of-persia/261/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 04:09:20 +0000</pubDate>
		<dc:creator>alex</dc:creator>
		
		<category><![CDATA[Making stuff people want]]></category>

		<guid isPermaLink="false">http://www.alexc.me/?p=261</guid>
		<description><![CDATA[I just finished reading Jordan Mechner&#8217;s old journals from his time creating Prince of Persia - it&#8217;s long, but probably one of the most fascinating things I&#8217;ve read online in months.  A real gem.
I loved the Prince of Persia games when I was a kid (who didn&#8217;t?), so it was great to get a [...]]]></description>
			<content:encoded><![CDATA[<p>I just finished reading <a href="http://jordanmechner.com/blog/2009/11/the-making-of-prince-of-persia/">Jordan Mechner&#8217;s old journals from his time creating Prince of Persia</a> - it&#8217;s long, but probably one of the most fascinating things I&#8217;ve read online in months.  A real gem.</p>
<p>I loved the Prince of Persia games when I was a kid (who didn&#8217;t?), so it was great to get a peek behind the scenes at how it was made - I didn&#8217;t know, for example, that it was all basically made by one person.  Some great posts:</p>
<p><a href="http://jordanmechner.com/old-journals/1985/10/october-20-1985/">Original source for the Prince of Persia animations</a><br />
<a href="http://jordanmechner.com/old-journals/1986/10/october-31-1986/">Rough animation test</a><br />
<a href="http://jordanmechner.com/old-journals/1987/02/february-16-1987/">More work on the animation</a><br />
<a href="http://jordanmechner.com/old-journals/1988/06/june-8-1988/">Shadow man</a><br />
<a href="http://jordanmechner.com/old-journals/1988/08/august-24-1988/">Sword fighting footage</a><br />
<a href="http://jordanmechner.com/old-journals/1989/07/july-14-1989/">Princess animation footage</a><br />
<a href="http://jordanmechner.com/old-journals/1989/10/october-13-1989/">Source code documentation</a></p>
<p>Even better, however, was the first-person view of something great being created:  the passion, the excitement, the uncertainty, the highs, the lows, and the eventual satisfaction and recognition (followed, of course, by &#8220;what&#8217;s next?&#8221;).  While not exactly the story of a start-up, it definitely read close to one - it might be one of the most motivational stories I&#8217;ve ever read.</p>
<p>So thank you, Jordan, for taking the time to make these journals available, and hope there will be more.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexc.me/the-making-of-prince-of-persia/261/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Wow.  Flash CS5 will allow building native iPhone apps with ActionScript</title>
		<link>http://www.alexc.me/flash-cs5-native-iphone-apps/257/</link>
		<comments>http://www.alexc.me/flash-cs5-native-iphone-apps/257/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 20:29:01 +0000</pubDate>
		<dc:creator>alex</dc:creator>
		
		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.alexc.me/?p=257</guid>
		<description><![CDATA[http://labs.adobe.com/technologies/flashcs5/appsfor_iphone/
Flash Professional CS5 will enable you to build applications for iPhone and iPod touch using ActionScript 3. These applications can be delivered to iPhone and iPod touch users through the Apple App Store.*
* Delivery through the App Store requires participation in the iPhone Developer Program and approval of the application by Apple.
This is going to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://labs.adobe.com/technologies/flashcs5/appsfor_iphone/">http://labs.adobe.com/technologies/flashcs5/appsfor_iphone/</a></p>
<blockquote><p>Flash Professional CS5 will enable you to build applications for iPhone and iPod touch using ActionScript 3. These applications can be delivered to iPhone and iPod touch users through the Apple App Store.*</p>
<p>* Delivery through the App Store requires participation in the iPhone Developer Program and approval of the application by Apple.</p></blockquote>
<p>This is going to be fun to watch.  The iPhone is already a massive gaming platform - what will happen when you mix the App Store and Newgrounds?</p>
<p>Even more interesting to watch will be Apple&#8217;s reaction.  They haven&#8217;t exactly gone out of their way to bring Flash to the iPhone - which this doesn&#8217;t do, exactly, but it&#8217;s a step in that direction.  I can&#8217;t see Apple being very happy, but they can&#8217;t openly oppose it without taking a big PR hit - I expect to hear a lot of CS5 app rejection stories, though.</p>
<p>As always, some <a href="http://news.ycombinator.com/item?id=862405">good discussion on HN.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexc.me/flash-cs5-native-iphone-apps/257/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to get the contents of UIWebView on iPhone</title>
		<link>http://www.alexc.me/how-to-get-the-contents-of-uiwebview-on-iphone/252/</link>
		<comments>http://www.alexc.me/how-to-get-the-contents-of-uiwebview-on-iphone/252/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 21:05:27 +0000</pubDate>
		<dc:creator>alex</dc:creator>
		
		<category><![CDATA[iPhone]]></category>

		<category><![CDATA[uiwebview]]></category>

		<guid isPermaLink="false">http://www.alexc.me/?p=252</guid>
		<description><![CDATA[Say you have a UIWebView in your iPhone application, maybe you have some JavaScript that changes its content, for whatever reason you want to access the content of the UIWebView&#8230; how do you do it?
It&#8217;s not immediately obvious from the API docs, but it&#8217;s pretty simple.  Something like this should do the trick:

[myWebView stringByEvaluatingJavaScriptFromString:@&#34;document.getElementsByTagName(&#039;html&#039;)[0].innerHTML&#34;]

Doesn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>Say you have a UIWebView in your iPhone application, maybe you have some JavaScript that changes its content, for whatever reason you want to access the content of the UIWebView&#8230; how do you do it?</p>
<p>It&#8217;s not immediately obvious from the API docs, but it&#8217;s pretty simple.  Something like this should do the trick:</p>
<pre class="brush: php">
[myWebView stringByEvaluatingJavaScriptFromString:@&quot;document.getElementsByTagName(&#039;html&#039;)[0].innerHTML&quot;]
</pre>
<p>Doesn&#8217;t seem all that clean, but it&#8217;s the best I&#8217;ve found so far - if there&#8217;s a better way, I&#8217;d love to know.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexc.me/how-to-get-the-contents-of-uiwebview-on-iphone/252/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Funny thing</title>
		<link>http://www.alexc.me/android-distribution-vs-iphone-distribution/242/</link>
		<comments>http://www.alexc.me/android-distribution-vs-iphone-distribution/242/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 14:55:05 +0000</pubDate>
		<dc:creator>alex</dc:creator>
		
		<category><![CDATA[Android]]></category>

		<category><![CDATA[iPhone]]></category>

		<guid isPermaLink="false">http://www.alexc.me/?p=242</guid>
		<description><![CDATA[Preparing an app for distribution on Android:
1.  Click on File/Export
2.  Select Export Android Application, click Next
3.  Follow the steps in the wizard.
4.  Done!

Preparing an app for distribution on iPhone:
&#8230;
&#8230;
&#8230;
&#8230;there&#8217;s gotta be a comedy skit somewhere in here.
&#8230;
&#8230;
&#8230;although it&#8217;s not very funny.
I can&#8217;t wait for the new Android phones, and I sincerely [...]]]></description>
			<content:encoded><![CDATA[<h3>Preparing an app for distribution on Android:</h3>
<p>1.  Click on File/Export<br />
2.  Select Export Android Application, click Next<br />
3.  Follow the steps in the wizard.<br />
4.  Done!</p>
<p><span id="more-242"></span></p>
<h3>Preparing an app for distribution on iPhone:</h3>
<p>&#8230;<br />
&#8230;<br />
&#8230;<br />
&#8230;there&#8217;s gotta be a comedy skit somewhere in here.<br />
&#8230;<br />
&#8230;<br />
&#8230;although it&#8217;s not very funny.</p>
<p>I can&#8217;t wait for the new Android phones, and I sincerely hope they get a large enough chunk of the market.  I don&#8217;t expect it to catch up overnight, but even if the iPhone only has, say, 4x the potential audience, rather than <a href="http://larvalabs.com/blog/iphone/android-market-sales/">37x the audience</a>, it would be good enough to make Android viable for developers - I think many would gladly switch, even with a smaller audience.  While the iPhone is a great platform in many ways, dealing with Apple has roughly the appeal of a root canal - a little competition can&#8217;t hurt.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexc.me/android-distribution-vs-iphone-distribution/242/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Android - binding to the Music app service to find currently playing song</title>
		<link>http://www.alexc.me/android-music-app-service-currently-playing-song/231/</link>
		<comments>http://www.alexc.me/android-music-app-service-currently-playing-song/231/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 21:01:45 +0000</pubDate>
		<dc:creator>alex</dc:creator>
		
		<category><![CDATA[Android]]></category>

		<category><![CDATA[music player]]></category>

		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://www.alexc.me/?p=231</guid>
		<description><![CDATA[For an Android app I&#8217;m working on I need to find out what song, if any, is playing in the background on the device.  Turns out there&#8217;s no documented way to do this on Android - but it also turns out that using an open source platform is great.  After a few hours [...]]]></description>
			<content:encoded><![CDATA[<p>For an Android app I&#8217;m working on I need to find out what song, if any, is playing in the background on the device.  Turns out there&#8217;s no documented way to do this on Android - but it also turns out that using an open source platform is great.  After a few hours of poking around I had a working proof of concept, and I&#8217;m sure someone more familiar with Android would&#8217;ve figured it out much faster.</p>
<p><span style="color:red">IMPORTANT:  I&#8217;m using an undocumented interface.  While this works on Android 1.5R3 and T-Mobile G1 (HTC Magic), and likely on other versions/devices, there is no guarantee it&#8217;ll keep working in future releases - use at your own risk.</span></p>
<p><span id="more-231"></span></p>
<p>The default way to play music on the G1 is the Music app.  Since it can play music in the background, it seemed likely there is some way to interact with the service it uses.  This of course doesn&#8217;t help if the user is using some other music player, but it should be good enough.</p>
<p>First step was to figure out exactly what service that is - I used something like the following code to find out what services are running while I&#8217;m playing music:</p>
<pre class="brush: java">
		ActivityManager am = (ActivityManager)this.getSystemService(ACTIVITY_SERVICE);

		List&lt;ActivityManager.RunningServiceInfo&gt; rs = am.getRunningServices(50);

		for (int i=0; i&lt;rs.size(); i++) {
			ActivityManager.RunningServiceInfo rsi = rs.get(i);
			Log.i(&quot;Service&quot;, &quot;Process &quot; + rsi.process + &quot; with component &quot; + rsi.service.getClassName());
		}
</pre>
<p>This prints up to 50 running services.  The interesting line in the output is</p>
<pre class="brush: php">
process com.android.music with component com.android.music.MediaPlaybackService
</pre>
<p>OK, now to figure out how to interact with MediaPlaybackService. It turns out to be surprisingly simple.</p>
<p>First, get a copy of IMediaPlaybackService.aidl from the source code of the Music app, and include it in your Android app.  The contents of this file are the methods we have access to in MediaPlaybackService.  Of course, if the Music app on the device changes, and our copy of the .aidl file is inaccurate, we have a problem - hence the warning above.</p>
<p>Next, implement a ServiceConnection we can use to connect to MediaPlaybackService.</p>
<pre class="brush: java">
	private class MediaPlayerServiceConnection implements ServiceConnection {

		public IMediaPlaybackService mService;

		public void onServiceConnected(ComponentName name, IBinder service) {
			Log.i(&quot;MediaPlayerServiceConnection&quot;, &quot;Connected! Name: &quot; + name.getClassName());

			// This is the important line
			mService = IMediaPlaybackService.Stub.asInterface(service);

			// If all went well, now we can use the interface
			try {
				Log.i(&quot;MediaPlayerServiceConnection&quot;, &quot;Playing track: &quot; + mService.getTrackName());
				Log.i(&quot;MediaPlayerServiceConnection&quot;, &quot;By artist: &quot; + mService.getArtistName());
				if (mService.isPlaying()) {
					Log.i(&quot;MediaPlayerServiceConnection&quot;, &quot;Music player is playing.&quot;);
				} else {
					Log.i(&quot;MediaPlayerServiceConnection&quot;, &quot;Music player is not playing.&quot;);
				}
			} catch (Exception e) {
	    		e.printStackTrace();
	    		throw new RuntimeException(e);
			}
		}

		public void onServiceDisconnected(ComponentName name) {
			Log.i(&quot;MediaPlayerServiceConnection&quot;, &quot;Disconnected!&quot;);
		}
	}
</pre>
<p>Finally, bind the service:</p>
<pre class="brush: java">
		Intent i = new Intent();
		i.setClassName(&quot;com.android.music&quot;, &quot;com.android.music.MediaPlaybackService&quot;);
		ServiceConnection conn = new MediaPlayerServiceConnection();
		this.bindService(i, conn, 0);
</pre>
<p>That&#8217;s it!  From here on it should be possible to use the MediaPlaybackService like any other service.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexc.me/android-music-app-service-currently-playing-song/231/feed/</wfw:commentRss>
		</item>
		<item>
		<title>HNScore - another look at post quality on Hacker News</title>
		<link>http://www.alexc.me/hnscore-another-look-at-post-quality-on-hacker-news/211/</link>
		<comments>http://www.alexc.me/hnscore-another-look-at-post-quality-on-hacker-news/211/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 16:38:45 +0000</pubDate>
		<dc:creator>alex</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.alexc.me/?p=211</guid>
		<description><![CDATA[I&#8217;m not the only one to notice that some of the most interesting posts on Hacker News generate few comments - and, conversely, some of the least interesting posts generate the most comments (see here, or here).  Of course, you can&#8217;t generalize too much, but it seems like an interesting metric.
I whipped up a [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m not the only one to notice that some of the most interesting posts on Hacker News generate few comments - and, conversely, some of the least interesting posts generate the most comments (see <a href="http://news.ycombinator.com/item?id=792125">here</a>, or <a href="http://news.ycombinator.com/item?id=790361">here</a>).  Of course, you can&#8217;t generalize too much, but it seems like an interesting metric.</p>
<p>I whipped up a quick GreaseMonkey script to display the ratio of votes to comments.  I made a few arbitrary calls: only show a ratio for stories with more than 4 votes, and display the score differently for stories with a ratio less than 1, between 1 and 5, between 5 and 10, and over 10.</p>
<p><span id="more-211"></span></p>
<p>I haven&#8217;t yet made up my mind whether this improves the overall experience&#8230; but it does provide some additional information, and clearly does what it&#8217;s supposed to do - highlight the stories with very high or very low votes to comments ratio.  I&#8217;ll use it for a while before I decide how I feel about it. I suspect the actual value will vary from reader to reader.</p>
<p>A screenshot:</p>
<p><img src="http://www.alexc.me/wp-content/uploads/2009/08/picture-66.png" alt="picture-66" title="picture-66" width="676" height="576" class="alignnone size-full wp-image-217" /></p>
<p><a href="http://www.alexc.me/wp-content/uploads/2009/08/hnscore.user.js">Download GreaseMonkey script</a></p>
<p>Update: <a href="http://github.com/alexcurelea/HNScore/tree/master">added to GitHub</a></p>
<pre class="brush: javascript">
// ==UserScript==
// @name           HNScore
// @namespace      me.alexc
// @description    See ratio between story comments and votes on HN.
// @include        http://news.ycombinator.*/
// ==/UserScript==

var rows = document.getElementsByTagName(&quot;td&quot;);

for (var i=0; i&lt;rows.length; i++)
{
	var row = rows[i];
	if (row.className == &quot;subtext&quot;) {
		scoreNode = row.childNodes[0];
		commentsNode = row.childNodes[4];

		score = scoreNode.innerHTML.match(/\d+/)[0];
		commentsR = commentsNode.innerHTML.match(/\d+/);
		if (commentsR)
			comments = commentsR[0];
		else
			comments = 1;

		ratio = score / comments;

		if (score &gt; 4) {	// arbitrary
			// Prepare ratio element
			ratioNode = document.createElement(&#039;span&#039;);
			ratioNode.innerHTML = ratio.toFixed(1) + &quot; ratio. &quot;;

			if (ratio &lt; 1) {
				style = &quot;font-size:6pt; color:red;&quot;;
			} else if (ratio &lt; 5) {
				style = &quot;font-size:7pt&quot;;
			} else if (ratio &lt; 10) {
				style = &quot;font-size:8pt; color:black;&quot;;
			} else {
				style = &quot;font-size:8pt; color:black; font-weight:bold;&quot;;
			}

			row.setAttribute(&quot;style&quot;, style);

			// Insert before story score
			row.insertBefore(ratioNode, scoreNode);
		}
	}
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.alexc.me/hnscore-another-look-at-post-quality-on-hacker-news/211/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Weight loss&#8230; or not?</title>
		<link>http://www.alexc.me/weight-loss-or-not/207/</link>
		<comments>http://www.alexc.me/weight-loss-or-not/207/#comments</comments>
		<pubDate>Tue, 14 Jul 2009 23:29:12 +0000</pubDate>
		<dc:creator>alex</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.alexc.me/?p=207</guid>
		<description><![CDATA[This banner ad on some random site really made me do a double-take:

I really have to wonder: did someone goof, or is it an insidious plot to make people notice the ad?  If the latter, it definitely worked, although it&#8217;s not compelling enough to make me click.
]]></description>
			<content:encoded><![CDATA[<p>This banner ad on some random site really made me do a double-take:</p>
<p><img src="http://www.alexc.me/wp-content/uploads/2009/07/picture-60.png" alt="picture-60" title="picture-60" width="749" height="105" class="alignnone size-full wp-image-208" /></p>
<p>I really have to wonder: did someone goof, or is it an insidious plot to make people notice the ad?  If the latter, it definitely worked, although it&#8217;s not compelling enough to make me click.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.alexc.me/weight-loss-or-not/207/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
