<?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>Jason</title>
	<atom:link href="http://jason.lah.cc/feed/" rel="self" type="application/rss+xml" />
	<link>http://jason.lah.cc</link>
	<description>Just another Lah.cc weblog</description>
	<pubDate>Thu, 13 Mar 2008 01:17:35 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>WPMU Security - JS unfiltered in text widgets</title>
		<link>http://jason.lah.cc/2008/03/13/wpmu-security-js-unfiltered-in-text-widgets/</link>
		<comments>http://jason.lah.cc/2008/03/13/wpmu-security-js-unfiltered-in-text-widgets/#comments</comments>
		<pubDate>Thu, 13 Mar 2008 01:17:35 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
		
		<category><![CDATA[Wordpress MU]]></category>

		<guid isPermaLink="false">http://jason.lah.cc/2008/03/13/wpmu-security-js-unfiltered-in-text-widgets/</guid>
		<description><![CDATA[Thumbs up to the WPMU team, emailed Donncha about this yesterday and he fixed it in a coupla hours:
http://mu.wordpress.org/forums/topic.php?id=7809
If you&#8217;re on WordPress MU 1.3.3, you probably want to follow the fix in the link above.
]]></description>
			<content:encoded><![CDATA[<p>Thumbs up to the WPMU team, emailed Donncha about this yesterday and he fixed it in a coupla hours:<br />
http://mu.wordpress.org/forums/topic.php?id=7809</p>
<p>If you&#8217;re on WordPress MU 1.3.3, you probably want to follow the fix in the link above.</p>
]]></content:encoded>
			<wfw:commentRss>http://jason.lah.cc/2008/03/13/wpmu-security-js-unfiltered-in-text-widgets/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Rails Gracefully Degrading Javascript link_to for post / non-get methods</title>
		<link>http://jason.lah.cc/2007/12/20/rails-gracefully-degrading-javascript-link_to-for-post-non-get-methods/</link>
		<comments>http://jason.lah.cc/2007/12/20/rails-gracefully-degrading-javascript-link_to-for-post-non-get-methods/#comments</comments>
		<pubDate>Thu, 20 Dec 2007 13:35:31 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
		
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://jason.lah.cc/2007/12/20/rails-gracefully-degrading-javascript-link_to-for-post-non-get-methods/</guid>
		<description><![CDATA[This works at least on Rails r8440. Just stick the code somewhere it gets loaded - I put it in vendor/plugins/graceful_link_to/init.rb
# graceful_link_to
# Jason Ling
# http://jason.lah.cc
#
# This hacks link_to to produce an alternative button_to that shows for users without javascript
# You need to include the prototype libraries and put at the bottom of your pages the [...]]]></description>
			<content:encoded><![CDATA[<p>This works at least on Rails r8440. Just stick the code somewhere it gets loaded - I put it in vendor/plugins/graceful_link_to/init.rb</p>
<pre># graceful_link_to
# Jason Ling
# http://jason.lah.cc
#
# This hacks link_to to produce an alternative button_to that shows for users without javascript
# You need to include the prototype libraries and put at the bottom of your pages the following javascript
# javascript_tag "$$('.js_hide').invoke('hide'); $$('.js_show').invoke('show');"
ActionView::Helpers::UrlHelper.class_eval do
  def link_to_with_graceful(name, options = {}, html_options = {})
    return link_to_without_graceful(name, options, html_options) if !html_options[:method] || html_options[:method] == :get
    %Q(&lt;div class="js_hide"&gt;#{button_to(name, options, html_options)}&lt;/div&gt;&lt;span style="display: none;" class="js_show"&gt;#{link_to_without_graceful(name, options, html_options)}&lt;/span&gt;)
  end
  alias_method_chain :link_to, :graceful
end</pre>
]]></content:encoded>
			<wfw:commentRss>http://jason.lah.cc/2007/12/20/rails-gracefully-degrading-javascript-link_to-for-post-non-get-methods/feed/</wfw:commentRss>
		</item>
		<item>
		<title>InvalidAuthToken? Forgery protection is incompatible with cached forms</title>
		<link>http://jason.lah.cc/2007/12/18/invalidauthtoken-forgery-protection-is-incompatible-with-cached-forms/</link>
		<comments>http://jason.lah.cc/2007/12/18/invalidauthtoken-forgery-protection-is-incompatible-with-cached-forms/#comments</comments>
		<pubDate>Tue, 18 Dec 2007 10:32:29 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
		
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://jason.lah.cc/2007/12/18/invalidauthtoken-forgery-protection-is-incompatible-with-cached-forms/</guid>
		<description><![CDATA[Obviously, since caching forms = caching the auth token as well. Not only forms though, anything that results in a non-get request - AJAX links, delete/post/put links, etc etc.
]]></description>
			<content:encoded><![CDATA[<p>Obviously, since caching forms = caching the auth token as well. Not only forms though, anything that results in a non-get request - AJAX links, delete/post/put links, etc etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://jason.lah.cc/2007/12/18/invalidauthtoken-forgery-protection-is-incompatible-with-cached-forms/feed/</wfw:commentRss>
		</item>
		<item>
		<title>My entry music&#8230;</title>
		<link>http://jason.lah.cc/2007/10/31/my-entry-music/</link>
		<comments>http://jason.lah.cc/2007/10/31/my-entry-music/#comments</comments>
		<pubDate>Tue, 30 Oct 2007 23:29:22 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://jason.lah.cc/2007/10/31/my-entry-music/</guid>
		<description><![CDATA[Shall be the Deftone&#8217;s &#8216;Shove It&#8217;!
Wish me luck that I won&#8217;t get beat up.
]]></description>
			<content:encoded><![CDATA[<p>Shall be the Deftone&#8217;s &#8216;Shove It&#8217;!</p>
<p>Wish me luck that I won&#8217;t get beat up.</p>
]]></content:encoded>
			<wfw:commentRss>http://jason.lah.cc/2007/10/31/my-entry-music/feed/</wfw:commentRss>
		</item>
		<item>
		<title>NX and Alt-Tab OMG</title>
		<link>http://jason.lah.cc/2007/06/05/nx-and-alt-tab-omg/</link>
		<comments>http://jason.lah.cc/2007/06/05/nx-and-alt-tab-omg/#comments</comments>
		<pubDate>Mon, 04 Jun 2007 22:28:07 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
		
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jason.lah.cc/2007/06/05/nx-and-alt-tab-omg/</guid>
		<description><![CDATA[NoMachine NX is a fantastic piece of software. Let&#8217;s me remote desktop to my servers anytime anywhere and darn quick as well. But one thing that really got to me was the catching (or lack of) of the Alt-Tab keys etc. The client was catching alt-tab on my home computer, but not on my 2 [...]]]></description>
			<content:encoded><![CDATA[<p>NoMachine NX is a fantastic piece of software. Let&#8217;s me remote desktop to my servers anytime anywhere and darn quick as well. But one thing that really got to me was the catching (or lack of) of the Alt-Tab keys etc. The client was catching alt-tab on my home computer, but not on my 2 work computers. It was one of those puzzles I was tearing my hair out trying to figure out.</p>
<p>Googling got me no where.</p>
<p>NX has no user forums. Just a scattering of information from loosely related mailing lists littered over the net.</p>
<p>Their website / knowledge base / documentation was of little use as well. Guess they need to earn their support subscriptions.</p>
<p>Then I stumbled across it. Ctrl-Alt-K.</p>
]]></content:encoded>
			<wfw:commentRss>http://jason.lah.cc/2007/06/05/nx-and-alt-tab-omg/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Wordpress.com Theme Repository</title>
		<link>http://jason.lah.cc/2007/03/02/wordpresscom-theme-repository/</link>
		<comments>http://jason.lah.cc/2007/03/02/wordpresscom-theme-repository/#comments</comments>
		<pubDate>Fri, 02 Mar 2007 01:53:49 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
		
		<category><![CDATA[Themes]]></category>

		<category><![CDATA[Wordpress MU]]></category>

		<guid isPermaLink="false">http://jason.lah.cc/2007/03/02/wordpresscom-theme-repository/</guid>
		<description><![CDATA[Want to quickly populate your WPMU site with the themes from wordpress.com?
Here: http://svn.automattic.com/wpcom-themes/
You might need to make some small changes to get it working on your site: I had to create an empty avatar_by_id function and put it in my wp-config.php file.
You might also want to replace all reference to wordpress.com with references to your [...]]]></description>
			<content:encoded><![CDATA[<p>Want to quickly populate your WPMU site with the themes from wordpress.com?</p>
<p>Here: <a href="http://svn.automattic.com/wpcom-themes/">http://svn.automattic.com/wpcom-themes/</a></p>
<p>You might need to make some small changes to get it working on your site: I had to create an empty avatar_by_id function and put it in my wp-config.php file.</p>
<p>You might also want to replace all reference to wordpress.com with references to your site.</p>
<p>References: <a href="http://mu.wordpress.org/forums/topic.php?id=3224">R</a> <a href="http://boren.nu/archives/2007/01/07/custom-image-header-api/">R</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jason.lah.cc/2007/03/02/wordpresscom-theme-repository/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Theme Toolkit for Wordpress MU</title>
		<link>http://jason.lah.cc/2006/05/10/theme-toolkit-for-wordpress-mu/</link>
		<comments>http://jason.lah.cc/2006/05/10/theme-toolkit-for-wordpress-mu/#comments</comments>
		<pubDate>Tue, 09 May 2006 16:09:41 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
		
		<category><![CDATA[Themes]]></category>

		<category><![CDATA[Wordpress MU]]></category>

		<guid isPermaLink="false">http://jason.lah.cc/2006/05/10/theme-toolkit-for-wordpress-mu/</guid>
		<description><![CDATA[Ozh&#8217;s Theme Toolkit allows theme authors to easily incorporate an admin menu in their themes  to facilitate user customisation. It does not work too well out of the box with Wordpress MU, displaying some undesirable behaviour like the menus persisting to appear despite the user having chosen another theme. This version has been modified [...]]]></description>
			<content:encoded><![CDATA[<p>Ozh&#8217;s <a href="http://frenchfragfactory.net/ozh/my-projects/wordpress-theme-toolkit-admin-menu/">Theme Toolkit</a> allows theme authors to easily incorporate an admin menu in their themes  to facilitate user customisation. It does not work too well out of the box with Wordpress MU, displaying some undesirable behaviour like the menus persisting to appear despite the user having chosen another theme. This version has been modified to work with Wordpress MU and has been tested on the r542 nightly.</p>
<p>Simply replace the existing themetoolkit.php with the one in the archive in all your themes (or use symbolic links if you want).</p>
<p><a href="http://jason.lah.cc/files/2006/05/themetoolkit_mu.zip">[Download]</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jason.lah.cc/2006/05/10/theme-toolkit-for-wordpress-mu/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Kubrick&#8217;s (Wordpress&#8217; default theme) footer alignment error</title>
		<link>http://jason.lah.cc/2006/04/11/kubricks-wordpress-default-theme-footer-alignment-error/</link>
		<comments>http://jason.lah.cc/2006/04/11/kubricks-wordpress-default-theme-footer-alignment-error/#comments</comments>
		<pubDate>Tue, 11 Apr 2006 11:29:38 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
		
		<category><![CDATA[Themes]]></category>

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

		<guid isPermaLink="false">http://jason.lah.cc/2006/04/11/kubricks-wordpress-default-theme-footer-alignment-error/</guid>
		<description><![CDATA[Sometimes, the footer&#8217;s alignment is off by 1px. This is due to a CSS wordaround for non-standard IE compatibility as such:
 #footer {
padding: 0 0 0 1px;
margin: 0 auto;
width: 760px;
clear: both;
} 
To fix it, just add below:
#page &#62; #footer {
padding: 0;
}
This will be ignored by IE until they get their standards in order and hopefully [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes, the footer&#8217;s alignment is off by 1px. This is due to a CSS wordaround for non-standard IE compatibility as such:</p>
<p><code> #footer {<br />
padding: 0 0 0 1px;<br />
margin: 0 auto;<br />
width: 760px;<br />
clear: both;<br />
} </code></p>
<p>To fix it, just add below:</p>
<p><code>#page &gt; #footer {<br />
padding: 0;<br />
}</code></p>
<p>This will be ignored by IE until they get their standards in order and hopefully by then there won&#8217;t be a need for the first workaround. So it&#8217;s pretty future proof.</p>
]]></content:encoded>
			<wfw:commentRss>http://jason.lah.cc/2006/04/11/kubricks-wordpress-default-theme-footer-alignment-error/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Jason&#8217;s Customciser :: Customise your themes!</title>
		<link>http://jason.lah.cc/2006/04/08/jasons-customciser-customise-your-themes/</link>
		<comments>http://jason.lah.cc/2006/04/08/jasons-customciser-customise-your-themes/#comments</comments>
		<pubDate>Fri, 07 Apr 2006 17:31:12 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
		
		<category><![CDATA[Wordpress MU plugins]]></category>

		<guid isPermaLink="false">http://jason.lah.cc/2006/04/08/jasons-customciser-customise-your-themes/</guid>
		<description><![CDATA[I wrote this plugin for my Wordpress MU site and am releasing it as GPL with the hope that some might find it useful. It allows your users to customise any theme on your site, changing images and colours in the CSS. It&#39;s still pretty raw but I do have plans to make it much [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote this plugin for <a href="http://lah.cc/">my Wordpress MU site</a> and am releasing it as GPL with the hope that some might find it useful. It allows your users to customise any theme on your site, changing images and colours in the CSS. It&#39;s still pretty raw but I do have plans to make it much prettier in the future.</p>
<p><b>Downloads:</b></p>
<ul>
<li><b><a href="http://jason.lah.cc/files/2006/04/Jason_Customciser.zip">[Download Original]</a></b></li>
<li><a href="http://inphotos.org/wordpress/Jason_Customciser-doc.zip">[Download PHP4 Compatible Version]</a>  (ported by <a href="http://blogs.linux.ie/xeer/">Donncha</a>)</li>
</ul>
<p>Installation:</p>
<ul>
<li>Download and unzip package, copy Jason_Customciser.php into your plugins directory (/wp-inst/wp-content/plugins).</li>
</ul>
<p>Requirements:</p>
<ul>
<li>Plugins need to be enabled for your site.</li>
</ul>
<p>Screenshot:</p>
<p><a href="http://jason.lah.cc/files/2006/04/Jason_Customciser_ss.jpg"><img src="http://jason.lah.cc/files/2006/04/Jason_Customciser_ss_tn.jpg" alt="Jason_Customciser_ss_tn.jpg" /></a></p>
<p>Notes:</p>
<ul>
<li>If you are able to install Pear&#39;s HTML_CSS 1.0.0RC2 package, you can look for the line that says <code>//Everything below this line may be deleted if you are able to install PEAR&#39;s HTML_CSS</code> and delete everything below it.</li>
</ul>
<p><b>Q&amp;A</b></p>
<p><i>Q: If someone customises a theme, will everyone else using the theme be affected?</i><br />
A: No. Each user&rsquo;s customisation will affect only his/her own theme. In future versions, we might allow users to &lsquo;share&rsquo; their customisations.</p>
<p><i>Q: How does it work?</i><br />
A: Briefly: When the plugin is run, it scans through the currently used theme and parses the CSS. It identifies images and colours and stores them as options that the user can change. It then injects these changes back into the theme.</p>
]]></content:encoded>
			<wfw:commentRss>http://jason.lah.cc/2006/04/08/jasons-customciser-customise-your-themes/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Widgets as an &#8216;mu-plugin&#8217; on Wordpress MU</title>
		<link>http://jason.lah.cc/2006/04/07/widgets-as-an-mu-plugin-on-wordpress-mu/</link>
		<comments>http://jason.lah.cc/2006/04/07/widgets-as-an-mu-plugin-on-wordpress-mu/#comments</comments>
		<pubDate>Fri, 07 Apr 2006 07:49:08 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
		
		<category><![CDATA[Widgets]]></category>

		<category><![CDATA[Wordpress MU]]></category>

		<guid isPermaLink="false">http://jason.lah.cc/2006/04/07/widgets-as-an-mu-plugin-on-wordpress-mu/</guid>
		<description><![CDATA[The widgets code has been released for public consumption as a Wordpress plugin and appears to work out of the box for Wordpress MU. However, this would still require a user to ‘activate’ the plugin before use as opposed to on wordpress.com where the plugin is enabled site-wide. This is relatively simple to achieve and [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://automattic.com/code/widgets/">widgets code</a> has been released for public consumption as a Wordpress plugin and appears to work out of the box for Wordpress MU. However, this would still require a user to ‘activate’ the plugin before use as opposed to on wordpress.com where the plugin is enabled site-wide. This is relatively simple to achieve and involves the following steps:</p>
<ol>
<li>Copy the widgets directory and everything in it to /wp-inst/wp-content/mu-plugins/.</li>
<li>Download <a href="/files/2006/04/widgets.txt">widgets.txt</a>, rename it to widgets.php, and copy it to /wp-inst/wp-content/mu-plugins/ (<em>not</em> in the widgets directory).</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://jason.lah.cc/2006/04/07/widgets-as-an-mu-plugin-on-wordpress-mu/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
