<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>slacker</title>
	<atom:link href="http://slackrw.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://slackrw.wordpress.com</link>
	<description>tech and stuff</description>
	<lastBuildDate>Sun, 14 Aug 2011 02:30:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='slackrw.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>slacker</title>
		<link>http://slackrw.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://slackrw.wordpress.com/osd.xml" title="slacker" />
	<atom:link rel='hub' href='http://slackrw.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Federated (OpenID) Login on Google Apps</title>
		<link>http://slackrw.wordpress.com/2010/10/14/federated-openid-login-on-google-apps/</link>
		<comments>http://slackrw.wordpress.com/2010/10/14/federated-openid-login-on-google-apps/#comments</comments>
		<pubDate>Thu, 14 Oct 2010 04:38:55 +0000</pubDate>
		<dc:creator>ruiwen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[openid]]></category>
		<category><![CDATA[federated login]]></category>
		<category><![CDATA[auth]]></category>
		<category><![CDATA[oauth]]></category>

		<guid isPermaLink="false">http://slackrw.wordpress.com/?p=53</guid>
		<description><![CDATA[Google provides a handy hybrid solution for single-sign-on + access authorisation for Google Apps with Federated Login — which is a combination of OpenID and OAuth. Looking at Google&#8217;s OpenID documentation, we note that certain parameters are required to send an authentication request to Google in order for the user to log in using the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=slackrw.wordpress.com&amp;blog=328384&amp;post=53&amp;subd=slackrw&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Google provides a handy hybrid solution for single-sign-on + access authorisation for Google Apps with Federated Login — which is a combination of OpenID and OAuth.</p>
<p>Looking at <a href="http://code.google.com/apis/accounts/docs/OpenID.html">Google&#8217;s OpenID documentation</a>, we note that certain parameters are required to send an authentication request to Google in order for the user to log in using the service. <em>(Steps 5 and 6 below.)</em></p>
<p style="text-align:center;"><img class="aligncenter" title="Federated Login flow" src="http://code.google.com/apis/accounts/images/OpenIdDiagram.png" alt="" width="639" height="329" /></p>
<p style="text-align:center;">&nbsp;</p>
<p style="text-align:left;">One of the parameters required in the auth request URL is the  &#8221;<span style="font-family:monospace;">return_to&#8221;</span> parameter. Importantly, note that this parameter is both <strong>required</strong> and <strong>needs to point to a currently valid domain</strong>.  What this means, is that if you&#8217;re doing development internally, setting the &#8220;<span style="font-family:monospace;">return_to</span>&#8221; parameter to <span style="font-family:monospace;">testing</span>, or <span style="font-family:monospace;">localhost</span>, or similar, will cause the request to fail with a sufficiently cryptic, &#8220;<strong>The page you requested is invalid.</strong>&#8221; Even attempting to have the return sent to a port other than 80, eg. <span style="font-family:monospace;">http://my.valid.domain:8080</span>, will also cause the request to fail.</p>
<p style="text-align:left;">Unfortunately, all these requirements seem to have been assumed, and not documented on Google&#8217;s site.</p>
<p style="text-align:left;"><em><strong>A trick!</strong></em></p>
<p style="text-align:left;">One trick to get around this no-local-testing conundrum is to set the <span style="font-family:monospace;">return_to</span> parameter to a subdomain (or otherwise) of a valid domain, eg. <span style="font-family:monospace;">http://testing.my.valid.domain</span>, and then set that address in <span style="font-family:monospace;">/etc/hosts</span> to point to your testing server.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/slackrw.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/slackrw.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/slackrw.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/slackrw.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/slackrw.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/slackrw.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/slackrw.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/slackrw.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/slackrw.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/slackrw.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/slackrw.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/slackrw.wordpress.com/53/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/slackrw.wordpress.com/53/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/slackrw.wordpress.com/53/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=slackrw.wordpress.com&amp;blog=328384&amp;post=53&amp;subd=slackrw&amp;ref=&amp;feed=1" width="1" height="1" /><div class="sharedaddy sd-like-enabled"></div>]]></content:encoded>
			<wfw:commentRss>http://slackrw.wordpress.com/2010/10/14/federated-openid-login-on-google-apps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e556085e54f4ea4c3e11c3d39bbd1c33?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ruiwen</media:title>
		</media:content>

		<media:content url="http://code.google.com/apis/accounts/images/OpenIdDiagram.png" medium="image">
			<media:title type="html">Federated Login flow</media:title>
		</media:content>
	</item>
		<item>
		<title>Mac OS X 10.6 Snow Leopard: Re-enable LCD font smoothing for some monitors [via macosxhints.com]</title>
		<link>http://slackrw.wordpress.com/2010/07/31/mac-os-x-10-6-snow-leopard-re-enable-lcd-font-smoothing-for-some-monitors-via-macosxhints-com/</link>
		<comments>http://slackrw.wordpress.com/2010/07/31/mac-os-x-10-6-snow-leopard-re-enable-lcd-font-smoothing-for-some-monitors-via-macosxhints-com/#comments</comments>
		<pubDate>Sat, 31 Jul 2010 03:41:38 +0000</pubDate>
		<dc:creator>ruiwen</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA["mac os x"]]></category>
		<category><![CDATA["snow leopard"]]></category>
		<category><![CDATA[anti aliasing]]></category>
		<category><![CDATA[font smoothing]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[monaco]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://slackrw.wordpress.com/?p=46</guid>
		<description><![CDATA[Information below taken from the post on MacOSXHints.com So recently ran into an issue with my new HP LCD monitor where Snow Leopard suddenly decided to make my fonts look all skinny and malnourished (that&#8217;s turning font smoothing off, apparently). Which was really annoying, since I was using Monaco on the Terminal and in my [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=slackrw.wordpress.com&amp;blog=328384&amp;post=46&amp;subd=slackrw&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Information below taken from <a href="http://www.macosxhints.com/article.php?story=20090828224632809">the post on MacOSXHints.com</a></p>
<p>So recently ran into an issue with my new HP LCD monitor where Snow Leopard suddenly decided to make my fonts look all skinny and malnourished (that&#8217;s turning font smoothing off, apparently). Which was really annoying, since I was using Monaco on the Terminal and in my code editors and they looked really horrible after that.</p>
<p>Finally get fed up enough to Google around a bit for Mac OS X font tweaks and ran into the solution below.</p>
<p>And now my fonts are happy! Or at least I am.</p>
<p>Hope it helps someone too.</p>
<p>Reposting here just so it gets out on the web more:</p>
<p><em>There is a bug in Snow Leopard that disables LCD (sub-pixel) font smoothing on many third party LCD displays, including models from Dell, Samsung, LG, HP, EIZO, and Lenovo. Here are the details:</em></p>
<p><em> </em></p>
<p><em>Snow Leopard introduces simplified Font Smoothing options under the Appearance pane in System Preferences. Prior to Snow Leopard, the available options were:</em></p>
<ul>
<li><em>Automatic &#8211; Best for Main Display</em></li>
<li><em>Standard &#8211; Best for CRT</em></li>
<li><em>Light</em></li>
<li><em>Medium &#8211; Best for Flat Panel</em></li>
<li><em>Strong</em></li>
</ul>
<p><em>In Snow Leopard, you can only choose between </em><em>Automatic</em><em> and </em><em>Standard CRT</em><em>. Since few people use CRTs these days, most users now have only one option: Automatic. The problem with the Automatic option is that OS X incorrectly detects many third party LCD monitors as CRTs, and consequently, disables LCD font smoothing.</em></p>
<p><em> </em></p>
<p><em>You can force OS X to use LCD font smoothing on all displays with this Terminal command:</em></p>
<pre><code><em><strong>defaults -currentHost write -globalDomain AppleFontSmoothing -int 2</strong></em></code></pre>
<p><em>The number </em><tt><em>2</em></tt><em> here corresponds to </em><em>Medium &#8211; Best for Flat Panel</em><em>. You may also use </em><em>1</em><em> for light smoothing, and </em><em>3</em><em> for strong smoothing, as per the original OS X font smoothing options.</em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/slackrw.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/slackrw.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/slackrw.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/slackrw.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/slackrw.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/slackrw.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/slackrw.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/slackrw.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/slackrw.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/slackrw.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/slackrw.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/slackrw.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/slackrw.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/slackrw.wordpress.com/46/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=slackrw.wordpress.com&amp;blog=328384&amp;post=46&amp;subd=slackrw&amp;ref=&amp;feed=1" width="1" height="1" /><div class="sharedaddy sd-like-enabled"></div>]]></content:encoded>
			<wfw:commentRss>http://slackrw.wordpress.com/2010/07/31/mac-os-x-10-6-snow-leopard-re-enable-lcd-font-smoothing-for-some-monitors-via-macosxhints-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e556085e54f4ea4c3e11c3d39bbd1c33?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ruiwen</media:title>
		</media:content>
	</item>
		<item>
		<title>New open source projects</title>
		<link>http://slackrw.wordpress.com/2010/07/20/new-open-source-projects/</link>
		<comments>http://slackrw.wordpress.com/2010/07/20/new-open-source-projects/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 16:58:12 +0000</pubDate>
		<dc:creator>ruiwen</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA["python"]]></category>
		<category><![CDATA[ebooks]]></category>
		<category><![CDATA[epub]]></category>
		<category><![CDATA[github]]></category>
		<category><![CDATA[isbn]]></category>
		<category><![CDATA[isbndb]]></category>
		<category><![CDATA[opensource]]></category>

		<guid isPermaLink="false">http://slackrw.wordpress.com/?p=42</guid>
		<description><![CDATA[I&#8217;ve been working on some stuff lately, and have found the need to dig deep and write some code of my own. They&#8217;re really small now, but all the same, I hope it&#8217;ll be useful to someone. Both DustJacket and isbndbpy below are written in Python. DustJacket A Python wrapper library for handling ebooks (only [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=slackrw.wordpress.com&amp;blog=328384&amp;post=42&amp;subd=slackrw&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working on some stuff lately, and have found the need to dig deep and write some code of my own. They&#8217;re really small now, but all the same, I hope it&#8217;ll be useful to someone. Both <a href="http://github.com/ruiwen/dustjacket">DustJacket</a> and <a href="http://github.com/ruiwen/isbndbpy">isbndbpy</a> below are written in <a href="http://python.org">Python</a>.</p>
<h2><a href="http://github.com/ruiwen/dustjacket">DustJacket</a></h2>
<p>A Python wrapper library for handling ebooks (only ePubs for now).</p>
<p>I&#8217;d been looking around for one of these in Python for a while but was unable to find one. It was really annoying being told, &#8220;Oh, an ePub is just a ZIP file, so you should be able to easily unzip it and read its contents.&#8221; Well, yeah. A car is essentially a platform on four wheels, but they&#8217;re much nicer than that now aren&#8217;t they?</p>
<h2><a href="http://github.com/ruiwen/isbndbpy">isbndbpy</a></h2>
<p>A Python API wrapper library for the <a href="http://isbndb.com">ISBNdb.com</a> API</p>
<p>Same scenario as above. Need the code, couldn&#8217;t find a decent one (especially not in Python!), so decided to scratch that itch and make one myself. So here you go.</p>
<p><a href="http://github.com/ruiwen/isbndbpy">isbndbpy</a>&#8216;s implementation of the API is still quite incomplete though, so you have been warned.</p>
<p>That said, if anyone finds these projects even mildly useful, leave a comment! (And even better, help contribute to the projects! Basic stuff like tests, docs and general completeness is still greatly needed!)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/slackrw.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/slackrw.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/slackrw.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/slackrw.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/slackrw.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/slackrw.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/slackrw.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/slackrw.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/slackrw.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/slackrw.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/slackrw.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/slackrw.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/slackrw.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/slackrw.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=slackrw.wordpress.com&amp;blog=328384&amp;post=42&amp;subd=slackrw&amp;ref=&amp;feed=1" width="1" height="1" /><div class="sharedaddy sd-like-enabled"></div>]]></content:encoded>
			<wfw:commentRss>http://slackrw.wordpress.com/2010/07/20/new-open-source-projects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e556085e54f4ea4c3e11c3d39bbd1c33?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ruiwen</media:title>
		</media:content>
	</item>
		<item>
		<title>simplejson for Python on Mac OS X</title>
		<link>http://slackrw.wordpress.com/2010/04/04/simplejson-for-python-on-mac-os-x/</link>
		<comments>http://slackrw.wordpress.com/2010/04/04/simplejson-for-python-on-mac-os-x/#comments</comments>
		<pubDate>Sun, 04 Apr 2010 14:19:39 +0000</pubDate>
		<dc:creator>ruiwen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA["easy_install"]]></category>
		<category><![CDATA["json"]]></category>
		<category><![CDATA["mac os x"]]></category>
		<category><![CDATA["python"]]></category>
		<category><![CDATA["simplejson"]]></category>
		<category><![CDATA["snow leopard"]]></category>

		<guid isPermaLink="false">http://slackrw.wordpress.com/?p=37</guid>
		<description><![CDATA[Ran into an interesting problem with Python on Mac OS X (Snow Leopard). Part and parcel of writing web application is dealing with information transfer between the server and the client, and the most common format for this is JSON. JSON is exceedingly common across the web, so imagine my surprise when I found that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=slackrw.wordpress.com&amp;blog=328384&amp;post=37&amp;subd=slackrw&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ran into an interesting problem with Python on Mac OS X (Snow Leopard). Part and parcel of writing web application is dealing with information transfer between the server and the client, and the most common format for this is <a href="http://json.org">JSON</a>.</p>
<p>JSON is exceedingly common across the web, so imagine my surprise when I found that the default installation of Python on Mac OS X didn&#8217;t seem to include <span style="font-family:serif;">simplejson</span>.</p>
<p>Resolving this is easy. The Python installation comes with a handy utility called easy_install, which, well, easily installs missing components:</p>
<pre>$ sudo easy_install simplejson
Password:
Searching for simplejson
Reading http://pypi.python.org/simple/simplejson/
Reading http://undefined.org/python/#simplejson
Best match: simplejson 2.1.1
Downloading http://pypi.python.org/packages/source/s/simplejson/simplejson-2.1.1.tar.gz#md5=0bbe3a2e5e4cac040013733aca159d89
Processing simplejson-2.1.1.tar.gz
Running simplejson-2.1.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-Ii_EU9/simplejson-2.1.1/egg-dist-tmp-79Fj1U
Adding simplejson 2.1.1 to easy-install.pth file
Installed /Library/Python/2.6/site-packages/simplejson-2.1.1-py2.6-macosx-10.6-universal.egg
Processing dependencies for simplejson
Finished processing dependencies for simplejson
$</pre>
<p>And there you go!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/slackrw.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/slackrw.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/slackrw.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/slackrw.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/slackrw.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/slackrw.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/slackrw.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/slackrw.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/slackrw.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/slackrw.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/slackrw.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/slackrw.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/slackrw.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/slackrw.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=slackrw.wordpress.com&amp;blog=328384&amp;post=37&amp;subd=slackrw&amp;ref=&amp;feed=1" width="1" height="1" /><div class="sharedaddy sd-like-enabled"></div>]]></content:encoded>
			<wfw:commentRss>http://slackrw.wordpress.com/2010/04/04/simplejson-for-python-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e556085e54f4ea4c3e11c3d39bbd1c33?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ruiwen</media:title>
		</media:content>
	</item>
		<item>
		<title>Android SDK on Fedora 10</title>
		<link>http://slackrw.wordpress.com/2009/05/09/android-sdk-on-fedora-10/</link>
		<comments>http://slackrw.wordpress.com/2009/05/09/android-sdk-on-fedora-10/#comments</comments>
		<pubDate>Sat, 09 May 2009 08:48:18 +0000</pubDate>
		<dc:creator>ruiwen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[adt]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[fedora]]></category>

		<guid isPermaLink="false">http://slackrw.wordpress.com/?p=35</guid>
		<description><![CDATA[Had a little trouble trying to get the Android SDK running on Fedora Eclipse on Fedora 10 recently. The problem I ran into upon attempting to install the Android Eclipse ADT was, as such: Following the installations Android SDK site and adding the repository site for the ADT, I get the following error about  org.eclipse.wst.sse.ui [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=slackrw.wordpress.com&amp;blog=328384&amp;post=35&amp;subd=slackrw&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Had a little trouble trying to get the <a href="http://developer.android.com/sdk/1.5_r1/index.html">Android SDK</a> running on Fedora Eclipse on Fedora 10 recently.</p>
<p>The problem I ran into upon attempting to install the Android Eclipse ADT was, as such:</p>
<ul>
<li>Following the installations Android SDK site and adding the repository site for the ADT,</li>
<li>I get the following error about  <em>org.eclipse.wst.sse.ui </em>not being found</li>
<li>Which meant that the dependency checking for ADT failed, and I couldn&#8217;t get it installed.</li>
</ul>
<p>The only tip Google could provide was that the default <em>eclipse-platform</em> package that Fedora 10 provided was lacking in the particular Eclipse component that the Android ADT needed, ie. <em>org.eclipse.wst.sse.ui</em> (and friends, presumably).</p>
<p>So here&#8217;s how to get around that:</p>
<ul>
<li><a href="http://code.google.com/eclipse/docs/install-eclipse-3.4.html">Add the <span title="http://download.eclipse.org/releases/ganymede/">Eclipse Ganymede updates repository</span></a> in <em><strong>Help</strong> -&gt; <strong>Software updates..</strong> -&gt; <strong>Available Software..</strong></em> (<a href="http://code.google.com/intl/fr-FR/eclipse/docs/faq.html#wstinstallerror">details</a>).</li>
<li>You&#8217;ll get a new menu item in your <em><strong>Available Software</strong></em> tab: &#8220;<strong>Ganymede Update Site</strong>&#8220;</li>
<li>In the search box, enter &#8220;<strong>WST Common UI</strong>&#8220;, and hit <strong>Install</strong>.</li>
</ul>
<p>That would&#8217;ve brought in the necessary Eclipse components that the ADT requires. From there, follow the usual <a href="http://developer.android.com/sdk/1.5_r1/installing.html">ADT installation instructions</a>, and you&#8217;re done!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/slackrw.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/slackrw.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/slackrw.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/slackrw.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/slackrw.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/slackrw.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/slackrw.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/slackrw.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/slackrw.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/slackrw.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/slackrw.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/slackrw.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/slackrw.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/slackrw.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=slackrw.wordpress.com&amp;blog=328384&amp;post=35&amp;subd=slackrw&amp;ref=&amp;feed=1" width="1" height="1" /><div class="sharedaddy sd-like-enabled"></div>]]></content:encoded>
			<wfw:commentRss>http://slackrw.wordpress.com/2009/05/09/android-sdk-on-fedora-10/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e556085e54f4ea4c3e11c3d39bbd1c33?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ruiwen</media:title>
		</media:content>
	</item>
		<item>
		<title>Missing formatting toolbar on Trac</title>
		<link>http://slackrw.wordpress.com/2009/03/16/missing-formatting-toolbar-on-trac/</link>
		<comments>http://slackrw.wordpress.com/2009/03/16/missing-formatting-toolbar-on-trac/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 10:40:29 +0000</pubDate>
		<dc:creator>ruiwen</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[formatting]]></category>
		<category><![CDATA[formatting toolbar]]></category>
		<category><![CDATA[sid]]></category>
		<category><![CDATA[toolbar]]></category>
		<category><![CDATA[trac]]></category>
		<category><![CDATA[wiki]]></category>

		<guid isPermaLink="false">http://slackrw.wordpress.com/?p=32</guid>
		<description><![CDATA[This happened to me after upgrading from Trac 0.10 to 0.11. I&#8217;m running Debian Sid, and I simply apt-get installed the newer version of Trac. Upon restarting Apache, and trying to access my Trac page again, I get the message that I need to manually perform the upgrade of the Trac files. Ok, so I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=slackrw.wordpress.com&amp;blog=328384&amp;post=32&amp;subd=slackrw&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This happened to me after upgrading from Trac 0.10 to 0.11.</p>
<p>I&#8217;m running Debian Sid, and I simply <span style="font-family:monospace;">apt-get install</span>ed the newer version of Trac.</p>
<p>Upon restarting Apache, and trying to access my Trac page again, I get the message that I need to manually perform the upgrade of the Trac files. Ok, so I do:</p>
<pre class="wiki">trac-admin /path/to/projenv upgrade</pre>
<p>as recommended. That seemed to bring my Trac back, so I was happy.</p>
<p>However, when I wanted to write a new wiki page, I realised that the nifty formatting toolbar that used to appear over the textarea had now gone missing. Much Googling didn&#8217;t help, and unfortunately neither did the IRC channel. Looking back again at the TracUpgrade page included as part of the Trac wiki, I noticed another command that I had yet to run, the one to upgrade the wiki.</p>
<pre class="wiki">trac-admin /path/to/projenv wiki upgrade</pre>
<p>I didn&#8217;t figure that this might help bring back my formatting toolbar. I only thought that it might be a good thing to run in the meantime, while I googled a little more.</p>
<p>I ran it, and lo and behold, <em>it brought my formatting toolbar back!</em> Unfortunately, this is not very intuitive, upgrading the wiki (implying information/data) to restore parts of the UI (presentation).</p>
<p>Anyway, hope this helps someone!</p>
<pre class="wiki"></pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/slackrw.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/slackrw.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/slackrw.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/slackrw.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/slackrw.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/slackrw.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/slackrw.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/slackrw.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/slackrw.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/slackrw.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/slackrw.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/slackrw.wordpress.com/32/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/slackrw.wordpress.com/32/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/slackrw.wordpress.com/32/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=slackrw.wordpress.com&amp;blog=328384&amp;post=32&amp;subd=slackrw&amp;ref=&amp;feed=1" width="1" height="1" /><div class="sharedaddy sd-like-enabled"></div>]]></content:encoded>
			<wfw:commentRss>http://slackrw.wordpress.com/2009/03/16/missing-formatting-toolbar-on-trac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e556085e54f4ea4c3e11c3d39bbd1c33?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ruiwen</media:title>
		</media:content>
	</item>
		<item>
		<title>Apache permissions with SELinux</title>
		<link>http://slackrw.wordpress.com/2008/11/30/apache-selinux/</link>
		<comments>http://slackrw.wordpress.com/2008/11/30/apache-selinux/#comments</comments>
		<pubDate>Sun, 30 Nov 2008 18:01:38 +0000</pubDate>
		<dc:creator>ruiwen</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[forbidden]]></category>
		<category><![CDATA[hfs+]]></category>
		<category><![CDATA[leopard]]></category>
		<category><![CDATA[permissions]]></category>
		<category><![CDATA[selinux]]></category>

		<guid isPermaLink="false">http://slackrw.wordpress.com/?p=29</guid>
		<description><![CDATA[Had a little problem recently with Apache. I wanted to set up a local LAMP development for a project I was working on, so I set up an Apache VHost on a testing directory to serve files out of it. Having done this quite a number of times before, I assumed this to be a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=slackrw.wordpress.com&amp;blog=328384&amp;post=29&amp;subd=slackrw&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Had a little problem recently with Apache.</p>
<p>I wanted to set up a local LAMP development for a project I was working on, so I set up an Apache VHost on a testing directory to serve files out of it. Having done this quite a number of times before, I assumed this to be a routine set up and went through the motions accordingly.</p>
<p>Listen directive? Check. <span style="font-family:courier;">&lt;Directory&gt;</span> directive? Check. Allow, deny? Check. File system permissions? 755, check.</p>
<p>Looking good, I browsed my local URL.</p>
<p>And got greeted with a 403 (Forbidden) error.</p>
<p>Ok, so maybe I missed something out. But no.. all permissions seemed to be in order. I made the test directory&#8217;s group same as the apache user. No cigar. Gave the group elevated privileges. Nope. In desperation I have the entire test directory tree <span style="font-family:courier;">777</span> permissions. And still got the 403 error.</p>
<p>Diving in to the logs, I was greeted with the following message:</p>
<p><span style="font-family:courier;">(13)Permission denied: file permissions deny server access: /home/ruiwen/Project/tests/test.html</span></p>
<p>File permissions deny access? Surely not? They were open to the world!</p>
<p>Next, I figured that the errors might have been caused by Leopard&#8217;s new ACLs, since the directory where the files were hosted were on a HFS+ drive. Apparently Leopard sets ACLs on a few select directories to prevent them from being (accidentally?) deleted (eg. Pictures, Documents, Applications and similarly &#8216;important&#8217; directories). Up to this point, I&#8217;d been developing in my newly installed Fedora 10 (dual-booted, and sharing a home partition with Leopard Mac OS X). So I rebooted into Leopard to attempt to discover where the fault lay.</p>
<p>The only problem was that the project directory simply had no ACLs nor extended attributes set on it.</p>
<p>File serving using the Apache within Leopard worked fine though, using the user-specific directory, ~/Sites.</p>
<p>Frustrated, I went back to Fedora to try again. In a stroke of inspiration, I checked out the SELinux settings.</p>
<p>And BINGO!</p>
<div class="wp-caption aligncenter" style="width: 489px"><img title="SELinux -- Allow http to read user home directories" src="http://i105.photobucket.com/albums/m240/slackrw/screenshot4.png" alt="SELinux -- Allow http to read user home directories" width="479" height="62" /><p class="wp-caption-text">SELinux -- Allow http to read user home directories</p></div>
<p>It was SELinux that was restricting Apache&#8217;s access to the file all along!</p>
<p>In my previous installations of Fedora, I&#8217;d always deactivated SELinux to prevent it from tripping me up. But with this installation of Fedora 10, I&#8217;d installed from the Live CD, and I don&#8217;t remember that ever giving me a dialogue to do that. Besides, once the system was running, I didn&#8217;t seem to run into any problems (until now), with SELinux, so I left it on. Well, guess I know better.. SELinux&#8217;s still on though, but at least now I know where I&#8217;ll look first in the future.</p>
<p>Well.. it took me 2 days of Googling without useful results. Hopefully this will cut somebody else&#8217;s search time short.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/slackrw.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/slackrw.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/slackrw.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/slackrw.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/slackrw.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/slackrw.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/slackrw.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/slackrw.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/slackrw.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/slackrw.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/slackrw.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/slackrw.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/slackrw.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/slackrw.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=slackrw.wordpress.com&amp;blog=328384&amp;post=29&amp;subd=slackrw&amp;ref=&amp;feed=1" width="1" height="1" /><div class="sharedaddy sd-like-enabled"></div>]]></content:encoded>
			<wfw:commentRss>http://slackrw.wordpress.com/2008/11/30/apache-selinux/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e556085e54f4ea4c3e11c3d39bbd1c33?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ruiwen</media:title>
		</media:content>

		<media:content url="http://i105.photobucket.com/albums/m240/slackrw/screenshot4.png" medium="image">
			<media:title type="html">SELinux -- Allow http to read user home directories</media:title>
		</media:content>
	</item>
		<item>
		<title>Problems with Apache and .htaccess on a HFS+ partition</title>
		<link>http://slackrw.wordpress.com/2008/06/28/problems-with-apache-and-htaccess-on-a-hfs-partition/</link>
		<comments>http://slackrw.wordpress.com/2008/06/28/problems-with-apache-and-htaccess-on-a-hfs-partition/#comments</comments>
		<pubDate>Sat, 28 Jun 2008 18:01:10 +0000</pubDate>
		<dc:creator>ruiwen</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[hfs+]]></category>
		<category><![CDATA[permissions]]></category>

		<guid isPermaLink="false">http://slackrw.wordpress.com/?p=28</guid>
		<description><![CDATA[Ran across this nasty problem today. I recently set up a LAMP environment on my laptop, intending to do local development for one of our sites. I did the usual setup of Apache VHosts and all.. only to find that the site had decided to stopped working. This was pretty strange since I&#8217;d just checked [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=slackrw.wordpress.com&amp;blog=328384&amp;post=28&amp;subd=slackrw&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Ran across this nasty problem today.</p>
<p>I recently set up a LAMP environment on my laptop, intending to do local development for one of our sites.</p>
<p>I did the usual setup of Apache VHosts and all.. only to find that the site had decided to stopped working. This was pretty strange since I&#8217;d just checked out a fresh copy from SVN, and the working copy on the dev server was.. well.. <em>working</em>.</p>
<p>Delving through the logs, I saw Apache trying to do something seemingly strange. It was trying to access files as if they were directories, looking into each of them for <tt>.htaccess</tt> files.</p>
<p>Like this:</p>
<pre>[Sat Jun 28 17:14:36 2008] [crit] [client 127.0.0.1] (13)Permission denied: /home/ruiwen/Projects/app/webroot/favicon.ico/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
</pre>
<p>Last I checked, favicon.ico wasn&#8217;t a directory.</p>
<p>Some Googling turned up <a href="http://wiki.apache.org/httpd/PcfgOpenfile">this page</a>, which hinted that this behaviour stemmed from the fact the HFS+ might have been presenting the files as directories.</p>
<blockquote><p>In some cases, this error can also be caused by special file-systems that return unexpected errors on attempted directory access. For example, some file-systems allow files to be treated as directories in certain cases. If <tt>httpd</tt> believes that a file is actually a directory, it will try to look inside for an <tt>.htaccess</tt> file. If it gets a permission denied error in return, it will deny access. This type of situation is usually a faulty file-system behavior and cannot be fixed within Apache. In this case your only choice is to turn off <tt>.htaccess</tt> processing as in the first solution above.</p></blockquote>
<p>Turning off .htaccess processing wasn&#8217;t exactly ideal since the site needed the functionality.</p>
<p>However, setting more relaxed permissions on the site directory as recommended in the second solution on the page seemed to work.</p>
<p>Currently my permissions for the files are</p>
<pre>-rwxrwxr-x 1 ruiwen www-data 3322 2008-06-28 16:39 index.php</pre>
<p>This seems to work fine for now. Not sure why the relaxed permissions helped the problem though, and will be glad for any insight into this.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/slackrw.wordpress.com/28/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/slackrw.wordpress.com/28/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/slackrw.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/slackrw.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/slackrw.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/slackrw.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/slackrw.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/slackrw.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/slackrw.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/slackrw.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/slackrw.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/slackrw.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/slackrw.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/slackrw.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/slackrw.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/slackrw.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=slackrw.wordpress.com&amp;blog=328384&amp;post=28&amp;subd=slackrw&amp;ref=&amp;feed=1" width="1" height="1" /><div class="sharedaddy sd-like-enabled"></div>]]></content:encoded>
			<wfw:commentRss>http://slackrw.wordpress.com/2008/06/28/problems-with-apache-and-htaccess-on-a-hfs-partition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e556085e54f4ea4c3e11c3d39bbd1c33?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ruiwen</media:title>
		</media:content>
	</item>
		<item>
		<title>[SOLVED] Fn-keys on Macbook Pro 4,1</title>
		<link>http://slackrw.wordpress.com/2008/05/26/solved-fn-keys-on-macbook-pro-41/</link>
		<comments>http://slackrw.wordpress.com/2008/05/26/solved-fn-keys-on-macbook-pro-41/#comments</comments>
		<pubDate>Mon, 26 May 2008 17:19:06 +0000</pubDate>
		<dc:creator>ruiwen</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[brightness]]></category>
		<category><![CDATA[fn]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[macbook pro]]></category>
		<category><![CDATA[penryn]]></category>
		<category><![CDATA[volume]]></category>

		<guid isPermaLink="false">http://slackrw.wordpress.com/?p=27</guid>
		<description><![CDATA[After puzzling for quite a while on how to get the Fn keys working on a Macbook Pro (4,1) in Linux (they work fine in Mac OS X, of course), I came across a forum thread today that presented a very promising solution. Traditionally, the problem with the Fn-keys of the Feb &#8217;08 edition of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=slackrw.wordpress.com&amp;blog=328384&amp;post=27&amp;subd=slackrw&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>After puzzling for quite a while on how to get the Fn keys working on a Macbook Pro (4,1) in Linux (they work fine in Mac OS X, of course), I came across a <a href="http://ubuntuforums.org/showthread.php?t=786393&amp;page=2">forum thread</a> today that presented a very promising solution.</p>
<p>Traditionally, the problem with the Fn-keys of the Feb &#8217;08 edition of the MBPs was that they simply didn&#8217;t work. Not even with <a href="http://alioth.debian.org/projects/pommed/">pommed</a>.</p>
<p>The issue seemed to be an erroneous hardware ID listing in <span style="font-family:'courier new';">hid-quirks.c</span>, under<span style="font-family:'courier new';"> drivers/hid/usbhid/</span>, where the Device ID for the keyboard was listed as <span style="font-family:'courier new';">0x021b</span> instead of the proper<span style="font-family:'courier new';"> 0&#215;0230</span>, as shown when doing an <span style="font-family:'courier new';">lsusb</span>. (More details in <a href="https://bugs.launchpad.net/ubuntu/+source/linux-meta/+bug/207127">this bug report</a>.)</p>
<p>The fix in the forum post describes how to dynamically load the <span style="font-family:'courier new';">usbhid</span> module, with the proper Device ID passed to it as a parameter.</p>
<p>Thanks loads to <a href="http://ubuntuforums.org/member.php?u=462770">_alex_</a> and his <a href="http://ubuntuforums.org/showpost.php?p=4984452&amp;postcount=18">wonderfully elegant solution</a>, described below:</p>
<p>The fix described is for an Ubuntu system, but there&#8217;s no reason why the concept wouldn&#8217;t work on any other distro.</p>
<ol>
<li>Edit <span style="font-family:'courier new';">/etc/modprobe.d/options</span></li>
<li>Add the line below at the end of the file:</li>
<p><code>options usbhid quirks=0x05ac:0x0230:0x00000800,0x05ac:0x0231:0x00004800,0x05ac:0x0232:0x00000800</code></p>
<li>For Macbook Air users, _alex_ recommends this line:</li>
<p><code>options usbhid quirks=0x05ac:0x0223:0x00000800,0x05ac:0x0224:0x00004800,0x05ac:0x0225:0x00000800</code></ol>
<p>Following the changes, you should be able to restart your machine and have your Fn-keys working, no additional configuration required. On Ubuntu, the screen brightness keys (F1 and F2) and the volume keys (F10, F11 and F12) and the Eject key (beside F12) work fine.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/slackrw.wordpress.com/27/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/slackrw.wordpress.com/27/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/slackrw.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/slackrw.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/slackrw.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/slackrw.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/slackrw.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/slackrw.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/slackrw.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/slackrw.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/slackrw.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/slackrw.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/slackrw.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/slackrw.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/slackrw.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/slackrw.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=slackrw.wordpress.com&amp;blog=328384&amp;post=27&amp;subd=slackrw&amp;ref=&amp;feed=1" width="1" height="1" /><div class="sharedaddy sd-like-enabled"></div>]]></content:encoded>
			<wfw:commentRss>http://slackrw.wordpress.com/2008/05/26/solved-fn-keys-on-macbook-pro-41/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e556085e54f4ea4c3e11c3d39bbd1c33?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ruiwen</media:title>
		</media:content>
	</item>
		<item>
		<title>gEdit a la TextMate</title>
		<link>http://slackrw.wordpress.com/2008/03/11/gedit-a-la-textmate/</link>
		<comments>http://slackrw.wordpress.com/2008/03/11/gedit-a-la-textmate/#comments</comments>
		<pubDate>Tue, 11 Mar 2008 14:49:51 +0000</pubDate>
		<dc:creator>ruiwen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[gedit]]></category>
		<category><![CDATA[rhtml]]></category>
		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://slackrw.wordpress.com/?p=26</guid>
		<description><![CDATA[Hands up those of you who have Mac-using friends who rave about wonder-boy code editor TextMate. Ever wondered what the type was about? Yeah? So did I. Anyways, had the luck of chancing upon a few blogs that, with a few tweaks, allows you to jostle gEdit into behaving somewhat like TextMate (especially in the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=slackrw.wordpress.com&amp;blog=328384&amp;post=26&amp;subd=slackrw&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hands up those of you who have Mac-using friends who rave about wonder-boy code editor <a href="http://macromates.com/">TextMate</a>.</p>
<p>Ever wondered what the type was about? <em>Yeah?</em> So did I.</p>
<p>Anyways, had the luck of chancing upon a few blogs that, with a few tweaks, allows you to jostle gEdit into behaving somewhat like TextMate (especially in the context of Ruby on Rails). Not all the features though, but close enough.</p>
<p><strong>Check out</strong></p>
<ul>
<li><a href="http://robzon.aenima.pl/2007/10/ubuntu-710-rails-gedit-and.html">http://robzon.aenima.pl/2007/10/ubuntu-710-rails-gedit-and.html</a></li>
<li><a href="http://grigio.org/textmate_gedit_few_steps">http://grigio.org/textmate_gedit_few_steps</a></li>
</ul>
<p><strong>And other useful links</strong></p>
<ul>
<li><a href="http://grigio.org/files/x-rhtml.xml">x-rhtml.xml</a> (RHTML mime type definition)</li>
<li><a href="http://grigio.org/files/rhtml.lang">rhtml.lang</a> (RHTML language definition for gtksourceview-2.0) (Updated link &#8211; 19 Aug)</li>
<li><a href="http://robzon.kapati.net/rails/rhtml-snippets.tar.gz">rhtml-snippets</a></li>
</ul>
<p>The 3 files above allowed me to get up and running with RHTML syntax highlighting and snippets</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/slackrw.wordpress.com/26/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/slackrw.wordpress.com/26/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/slackrw.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/slackrw.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/slackrw.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/slackrw.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/slackrw.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/slackrw.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/slackrw.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/slackrw.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/slackrw.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/slackrw.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/slackrw.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/slackrw.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/slackrw.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/slackrw.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=slackrw.wordpress.com&amp;blog=328384&amp;post=26&amp;subd=slackrw&amp;ref=&amp;feed=1" width="1" height="1" /><div class="sharedaddy sd-like-enabled"></div>]]></content:encoded>
			<wfw:commentRss>http://slackrw.wordpress.com/2008/03/11/gedit-a-la-textmate/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e556085e54f4ea4c3e11c3d39bbd1c33?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">ruiwen</media:title>
		</media:content>
	</item>
	</channel>
</rss>
