<rss version="2.0">
	<channel>
	<title>PlanetJoel.com</title>
	<link>http://www.planetjoel.com</link>
	<description>All things Joel.</description>
	<generator>PlanetJoel.com custom PHP</generator>
	<!--
	<image>
		<url>http://www.planetjoel.com/graphics/header.gif</url>
		<title>PlanetJoel.com</title>
		<link>http://www.planetjoel.com</link>
		<width>561</width>
		<height>121</height>
	</image>
	-->
	<lastBuildDate>Wed, 08 Sep 2010 23:00:43 +0000</lastBuildDate>
<item>
	<guid isPermaLink="true">http://www.planetjoel.com/viewarticle/639</guid>
	<title>ActionView::TemplateError (no block given) when using find_all</title>
	<author>Joel joelh-website@planetjoelDOTcom</author>
	<pubDate>Fri, 11 Jun 2010 00:34:47 +0000</pubDate>
	<link>http://www.planetjoel.com/viewarticle/639</link>
	<description>
	No block given aye? One of the problems with the magic of rails is that you get very magic error messages back. In my case the fix was to use &lt;b&gt;find(:all)&lt;/b&gt; instead of &lt;b&gt;find_all()&lt;/b&gt; which has now been deprecated
	</description>
	<comments>http://www.planetjoel.com/viewarticle/639</comments>
</item><item>
	<guid isPermaLink="true">http://www.planetjoel.com/viewarticle/638</guid>
	<title>OpenVPN: Dynamically create IPtables rules based on LDAP group membership</title>
	<author>Joel joelh-website@planetjoelDOTcom</author>
	<pubDate>Fri, 14 May 2010 08:19:21 +0000</pubDate>
	<link>http://www.planetjoel.com/viewarticle/638</link>
	<description>
	&lt;br /&gt; &lt;br /&gt;I&#039;m releasing two small perl scripts I wrote which provide the client-connect and client-disconnect scripts for OpenVPN such that you can dynamically create IPtables firewall rules based on LDAP group memberships. You push out routes to all your internal networks to the user then using IPtables only allow traffic to specific destinations and ports. This allows you to give out customized and limited VPN access, or VPN access based on roles.&lt;/p&gt;

&lt;br /&gt; &lt;br /&gt;Rules are looked up in an LDAP database using the common name of the certificate as the unqiueMember to a groupOfUniqeMembers. Details of how to install it are in the zip.&lt;/p&gt;

&lt;br /&gt; &lt;br /&gt;Currently it only supports TCP protocol. It could easily be extended to support other protocols.&lt;/p&gt;

&lt;br /&gt; &lt;br /&gt;Download: &lt;a href=&quot;http://planetjoel.com/files/openvpn_ldap_iptables.0.1.zip&quot;&gt;openvpn_ldap_iptables.0.1.zip&lt;/a&gt;
    
    
    
            
        
	</description>
	<comments>http://www.planetjoel.com/viewarticle/638</comments>
</item><item>
	<guid isPermaLink="true">http://www.planetjoel.com/viewarticle/637</guid>
	<title>Webfaction</title>
	<author>Joel joelh-website@planetjoelDOTcom</author>
	<pubDate>Sat, 10 Apr 2010 11:08:45 +0000</pubDate>
	<link>http://www.planetjoel.com/viewarticle/637</link>
	<description>
	I signed up my django project to &lt;a href=&quot;http://www.webfaction.com/%3Faffiliate%3Djoelh&quot;&gt;WebFaction&lt;/a&gt;. I&#039;m currently evaluating their service and will post my opinion of them once I get the site up and running.
	</description>
	<comments>http://www.planetjoel.com/viewarticle/637</comments>
</item><item>
	<guid isPermaLink="true">http://www.planetjoel.com/viewarticle/636</guid>
	<title>Wikileaks</title>
	<author>Joel joelh-website@planetjoelDOTcom</author>
	<pubDate>Sat, 10 Apr 2010 11:07:58 +0000</pubDate>
	<link>http://www.planetjoel.com/viewarticle/636</link>
	<description>
	I just donated $25USD to &lt;a href=&quot;http://www.wikileaks.org&quot;&gt;Wikileaks&lt;/a&gt;. Please go there and watch their latest video, it was very disturbing but its important that you we the war in Iraq as it really is.
	</description>
	<comments>http://www.planetjoel.com/viewarticle/636</comments>
</item><item>
	<guid isPermaLink="true">http://www.planetjoel.com/viewarticle/635</guid>
	<title>Music Blog: Sound Fleet</title>
	<author>Joel joelh-website@planetjoelDOTcom</author>
	<pubDate>Sat, 10 Apr 2010 07:33:18 +0000</pubDate>
	<link>http://www.planetjoel.com/viewarticle/635</link>
	<description>
	&lt;br /&gt; &lt;br /&gt;So me and some friends decided it would be a good idea to start up a group music blog. &lt;/p&gt;

&lt;br /&gt; &lt;br /&gt;Its still very fresh but I enjoyed hammering out a few posts. If your also a music lover contact me and we will continue adding you to the blog (after a rigorous interview process of course). &lt;/p&gt;

&lt;a href=&quot;http://soundfleet.wordpress.com/&quot;&gt;Sound Fleet Blog&lt;/a&gt;
    
    
	</description>
	<comments>http://www.planetjoel.com/viewarticle/635</comments>
</item><item>
	<guid isPermaLink="true">http://www.planetjoel.com/viewarticle/634</guid>
	<title>Background/Wallpaper Desktop Switcher</title>
	<author>Joel joelh-website@planetjoelDOTcom</author>
	<pubDate>Sat, 10 Apr 2010 06:40:42 +0000</pubDate>
	<link>http://www.planetjoel.com/viewarticle/634</link>
	<description>
	Was looking around for a good free background desktop switcher, and I found so much crap. Google struggles to find good free software and instead preferences spam websites and commercial software, its very frustrating.

Anyway I&#039;ve started using &lt;a href=&quot;http://johnsadventures.com/software/backgroundswitcher&quot;&gt;John&#039;s Background Switcher&lt;/a&gt; and so far it works great.


	</description>
	<comments>http://www.planetjoel.com/viewarticle/634</comments>
</item><item>
	<guid isPermaLink="true">http://www.planetjoel.com/viewarticle/633</guid>
	<title>Choosing the right SSL certificate</title>
	<author>Joel joelh-website@planetjoelDOTcom</author>
	<pubDate>Thu, 25 Mar 2010 11:30:52 +0000</pubDate>
	<link>http://www.planetjoel.com/viewarticle/633</link>
	<description>
	Not all SSL certificates are the same, here is a rough round-up of differences:

&lt;h3&gt;Verification Levels&lt;/h3&gt;
&lt;br /&gt; &lt;br /&gt;
There are three basic levels of verification: domain only, domain and business, and domain business and identity of representative. Domain only is actually quite weak authentication when you think about it, it doesn&#039;t prove you are who you say you are or that you have the right to use the brand. However to most end-users they won&#039;t know the difference and they will see the locked icon. Domain and business is what is typically provided, and they normally require something trivial like a corporate credit card to verify you are the business in question.&lt;/p&gt;
&lt;br /&gt; &lt;br /&gt;
Extended Verification is the new standard that requires extra steps by the CA to verify you are actually who you say you are and are the legal entity allowed to trade under that name. See wikipedia&#039;s entry for more details. In Firefox an EV certificate will show as a Green box slightly to the left of the URL itself with the company name.&lt;/p&gt;

&lt;h3&gt;Indemnity&lt;/h3&gt;

Each SSL provider will give different Indemnity insurance should you someone else fraudulently either use your certificate or your domain coming from the same CA. I think its very rare that people actually need to go down this path

&lt;h3&gt;Coverage across browsers&lt;/h3&gt;

Typically all major SSL providers will be supported on all major OSes out of the box straight away. Some may require you to serve an intermediate chain bundle, which can be a hassle.
Revocation

&lt;h3&gt;Revocation&lt;/h3&gt;

Not all CA&#039;s support the ability to revoke certificates - surprisingly to me when I last looked at this only a handful had certificate revocation url&#039;s listed. If your serious about your security pick one that does have a revocation URL.
Summary

&lt;h3&gt;Cost&lt;/h3&gt;

Certificates can vary wildly in cost. Consider the vendors reputation and staying power when considering a certificate, and don&#039;t assume more cash means a better product. Consider the interface and flexibility you have in your CSR - all should support uploading a CSR directly. 

&lt;h3&gt;Encryption Support&lt;/h3&gt;

All modern certificates should support 256-bit encryption. 

&lt;h3&gt;Summary&lt;/h3&gt;

&lt;br /&gt; &lt;br /&gt;If your needs sound basic and simple, I would recommend you purchase something cheap. RapidSSL, InstantSSL, GoDaddy or any of the other large players are all fine. &lt;/p&gt;

&lt;br /&gt; &lt;br /&gt;If you are a bigger player, considered upgrading to a new EV certificate. It gives your site a professional look especially among internet savvy users. The process can be timing consuming so budget extra time to get an EV certificate&lt;/p&gt;. 
    
See also: &lt;a href=&quot;http://en.wikipedia.org/wiki/Comparison_of_SSL_certificates_for_web_servers&quot;&gt;Wikipedia Comparison of SSL certificates&lt;/a&gt;. 
    
	</description>
	<comments>http://www.planetjoel.com/viewarticle/633</comments>
</item><item>
	<guid isPermaLink="true">http://www.planetjoel.com/viewarticle/632</guid>
	<title>Subversion Pre-Commit hook to check sudoers file syntax</title>
	<author>Joel joelh-website@planetjoelDOTcom</author>
	<pubDate>Tue, 06 Jan 2009 21:32:23 +0000</pubDate>
	<link>http://www.planetjoel.com/viewarticle/632</link>
	<description>
	&lt;br /&gt; &lt;br /&gt;In my short running series extremely obscure pieces of code that hopefully someone else in the universe will find useful I bring you a pre-commit hook for subversion that &lt;a href=&quot;http://www.planetjoel.com/files/pre-commit-sudoers.txt&quot;&gt;checks to make sure your sudoers file has correct syntax&lt;/a&gt;. This is useful for us because we have a very large sudoers file and once commited into subversion it will get deployed to all of our boxes. If it contains a syntax error this would be quite nasty.&lt;/p&gt;

&lt;br /&gt; &lt;br /&gt;While coding it I ran into a fun little bug that means &lt;a href=&quot;http://subversion.tigris.org/issues/show_bug.cgi%3Fid%3D2078&quot;&gt;if you try and print too much to stderr it hangs&lt;/a&gt; which made things a bit more interesting. &lt;/p&gt;

Enjoy
    
	</description>
	<comments>http://www.planetjoel.com/viewarticle/632</comments>
</item><item>
	<guid isPermaLink="true">http://www.planetjoel.com/viewarticle/631</guid>
	<title>lshw</title>
	<author>Joel joelh-website@planetjoelDOTcom</author>
	<pubDate>Sun, 28 Dec 2008 19:56:34 +0000</pubDate>
	<link>http://www.planetjoel.com/viewarticle/631</link>
	<description>
	Every now and then you come across a genuine new command that you haven&#039;t heard of before that does something useful. &lt;a href=&quot;http://ezix.org/project/wiki/HardwareLiSter&quot;&gt;&lt;b&gt;lshw&lt;/b&gt;&lt;/a&gt; lists basically everything hardware related you would want to know about a new box you have just jumped on to. It is extremely detailed and easy to read and should be available with a simple &quot;apt-get install lshw&quot; on either ubuntu or debian. 
    
	</description>
	<comments>http://www.planetjoel.com/viewarticle/631</comments>
</item><item>
	<guid isPermaLink="true">http://www.planetjoel.com/viewarticle/630</guid>
	<title>Flickr-CAPTCHA v0.2 using PHP and the FlickrAPI for human recognition</title>
	<author>Joel joelh-website@planetjoelDOTcom</author>
	<pubDate>Tue, 16 Dec 2008 04:16:29 +0000</pubDate>
	<link>http://www.planetjoel.com/viewarticle/630</link>
	<description>
	&lt;br /&gt; &lt;br /&gt;Flickr-CAPTCHA is a captcha program that uses flickr images and tags
to decide whether someone is human. A random thing is selected (from a
list of things) and a random number of flickr images are chosen
a long with a set of decoys. Each decoy contains at least one other
thing in order to prevent images that are ambigious and to try and keep
it obvious they are decoys. The user must then select all images and
if they get 50% right (with minus marks for wrong answers) we consider
them definitely human. It should be quite difficult for a computer
to guess which images to select but fun and enjoyable for a human. It
requires only very basic english skills. &lt;/p&gt;

&lt;h4&gt;SECURITY&lt;/h4&gt;

&lt;br /&gt; &lt;br /&gt;Image ID&#039;s are hashed then proxied through a PHP page so that a bot
cannot simply lookup the image themselves through the flickr API. They
could potentially use the author and the title so an option exists to
hide the title as well if you are paranoid. You will also want to
adjust the acceptedRatio if you are really paranoid. &lt;/p&gt;

&lt;h4&gt;IMAGE LICENSING&lt;/h4&gt;

&lt;br /&gt; &lt;br /&gt;We are only selecting images that have attribution licenses, not those 
that are all rights reserved. Every image being displayed is attributed
to the author with a link to their flickr page. I am not a lawyer, see
the LICENSE file for warranty (hint: there is none). &lt;/p&gt;

Pros
&lt;ul&gt;
    &lt;li&gt;Fun and easy to use
    &lt;li&gt;Easy for human / hard for computer
    &lt;li&gt;Customizable
&lt;/ul&gt;

Cons
&lt;ul&gt;
    &lt;li&gt;Slow to load all the images
    &lt;li&gt;Not secure
&lt;/ul&gt;

&lt;br /&gt; &lt;br /&gt;To get started check out the &lt;a href=&quot;http://www.planetjoel.com/files/flickr.captcha.README&quot;&gt;README file&lt;/a&gt;&lt;/p&gt;
&lt;br /&gt; &lt;br /&gt;&lt;b&gt;&lt;a href=&quot;http://www.planetjoel.com/files/Flickr-CAPTCHA.0.2.tar.gz&quot;&gt;Download Flickr-CAPTCHA v0.2&lt;/a&gt;&lt;/b&gt;&lt;/p&gt;
&lt;br /&gt; &lt;br /&gt;&lt;a href=&quot;http://www.planetjoel.com/flickr.class.tester.php&quot;&gt;Flickr-CAPTCHA online tester&lt;/a&gt;&lt;/p&gt;

Older Releases: &lt;a href=&quot;http://www.planetjoel.com/files/Flickr-CAPTCHA.0.1.tar.gz&quot;&gt;0.1&lt;/a&gt;.

        

        
        
        
        
        
        
        
            
        
	</description>
	<comments>http://www.planetjoel.com/viewarticle/630</comments>
</item></channel>
</rss>