<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>mattfarmer [dot] net</title>
	<atom:link href="http://mattfarmer.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://mattfarmer.net</link>
	<description>impossible nothing</description>
	<lastBuildDate>Sat, 26 Dec 2009 01:27:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Protected: Merry Christmas!</title>
		<link>http://mattfarmer.net/2009/12/25/merry-christmas/</link>
		<comments>http://mattfarmer.net/2009/12/25/merry-christmas/#comments</comments>
		<pubDate>Sat, 26 Dec 2009 00:11:39 +0000</pubDate>
		<dc:creator>POS</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://mattfarmer.net/?p=537</guid>
		<description><![CDATA[There is no excerpt because this is a protected post.]]></description>
			<content:encoded><![CDATA[<form action="http://mattfarmer.net/blog/wp-pass.php" method="post">
<p>This post is password protected. To view it please enter your password below:</p>
<p><label for="pwbox-537">Password:<br />
<input name="post_password" id="pwbox-537" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="Submit" /></p></form>
]]></content:encoded>
			<wfw:commentRss>http://mattfarmer.net/2009/12/25/merry-christmas/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Protected: First in a while</title>
		<link>http://mattfarmer.net/2009/09/29/first-in-a-while/</link>
		<comments>http://mattfarmer.net/2009/09/29/first-in-a-while/#comments</comments>
		<pubDate>Tue, 29 Sep 2009 14:29:35 +0000</pubDate>
		<dc:creator>POS</dc:creator>
				<category><![CDATA[Dreams]]></category>

		<guid isPermaLink="false">http://mattfarmer.net/?p=529</guid>
		<description><![CDATA[There is no excerpt because this is a protected post.]]></description>
			<content:encoded><![CDATA[<form action="http://mattfarmer.net/blog/wp-pass.php" method="post">
<p>This post is password protected. To view it please enter your password below:</p>
<p><label for="pwbox-529">Password:<br />
<input name="post_password" id="pwbox-529" type="password" size="20" /></label><br />
<input type="submit" name="Submit" value="Submit" /></p></form>
]]></content:encoded>
			<wfw:commentRss>http://mattfarmer.net/2009/09/29/first-in-a-while/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to design a cross browser compliant website.</title>
		<link>http://mattfarmer.net/2009/09/01/how-to-design-a-cross-browser-compliant-website/</link>
		<comments>http://mattfarmer.net/2009/09/01/how-to-design-a-cross-browser-compliant-website/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 09:13:39 +0000</pubDate>
		<dc:creator>POS</dc:creator>
				<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://mattfarmer.net/?p=517</guid>
		<description><![CDATA[I primarily fill my time freelancing doing PHP development work, but from time to time I find myself doing your standard Photoshop PSD to HTML/CSS implementation.  If you&#8217;ve ever done this before you know how much of a nightmare it can be to get things right in Firefox, Safari, and all of the IE&#8217;s, [...]]]></description>
			<content:encoded><![CDATA[<p>I primarily fill my time freelancing doing PHP development work, but from time to time I find myself doing your standard Photoshop PSD to HTML/CSS implementation.  If you&#8217;ve ever done this before you know how much of a nightmare it can be to get things right in Firefox, Safari, and all of the IE&#8217;s, but it is doable!  Being a bit of a perfectionist, here&#8217;s my method for getting everything pixel perfect.</p>
<h3>Style Sheet Reset</h3>
<p>Start off on a level playing ground and clear out all of the settings that different browsers may inflict on you.  I typically use <a href="http://developer.yahoo.com/yui/reset/">Yahoo&#8217;s YUI Reset CSS</a>, but there are plenty of others out there [<a href="http://www.google.com/search?q=reset+css">google</a>].</p>
<h3>Start Styling</h3>
<p>I typically do my initial implementation in FireFox 3.5 if for no other reason than the <a href="http://getfirebug.com/">Firebug</a> plugin.  This is great for live editing of CSS, seeing why images aren&#8217;t loading, as well as AJAX and javascript debuging.</p>
<h3>IE Selectors</h3>
<p>So now that we have a fairly functional design, we fire up Windows to see what we have.  I usually run IE8 in a Virtual Machine running the RC of Windows7.  With this and the <a href="http://www.microsoft.com/downloadS/details.aspx?familyid=E59C3964-672D-4511-BB3E-2D5E1DB91038&#038;displaylang=en">Internet Explorer Developer Toolbar</a>, you generally get good results in IE8, and can simulate what it would likely look like in IE7 by using &#8216;<a href="http://blogs.msdn.com/ie/archive/2008/08/27/introducing-compatibility-view.aspx">Compatiblity Mode</a>&#8216; (though there are <a href="http://blogs.msdn.com/ie/archive/2009/03/12/site-compatibility-and-ie8.aspx">some differences</a>).  So how do we fix these?</p>
<p>The key is to use an IE only stylesheet and a few hacks.  To make a style sheet only be loaded by IE we&#8217;ll use a <a href="http://msdn.microsoft.com/en-us/library/ms537512(VS.85).aspx">Conditional Comment</a>:</p>
<blockquote><p>
    &lt;!&#8211;[if IE]&gt;<br />
    &lt;link href=&#8221;/css/ie-only.css&#8221; media=&#8221;screen&#8221; rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; /&gt;<br />
    &lt;![endif]&#8211;&gt;
</p></blockquote>
<p>Now in this file if we define a property, it will be used by all versions of IE, but if we prepend an asterisk (*) to the property name, IE 8 will ignore it, and if we prepend an underscore (_) to the property name then both IE 7 and 8 will ignore it.  So with this hierarchy of hacks we can now create something like the following:</p>
<blockquote><p>
#header {<br />
    width: 100px;    /* Used by all versions of IE */<br />
    *width: 110px;  /* Used in IE 7 and below */<br />
    _width: 120px;  /* Used in IE 6 and below */<br />
}
</p></blockquote>
<p>Note that, in the relevant browsers, each of these properties are being overridden by the subsequent values and so it is crucial that we maintain this order of  1) no prefix, 2) asterisk prefix, 3) underscore prefix to get the results you are looking for.  However it is perfectly fine to use any combination of these if you want to achieve the same result in different versions of IE.</p>
<h3>Extraneous markup</h3>
<p>If you can&#8217;t get your code to work without hacks or strange CSS tricks, don&#8217;t be afraid to add an extra <code>&lt;span&gt;</code> to those lists of links, or a clearing <code>&lt;div&gt;</code> here and there.  Doing so can some times make your CSS cleaner, and lets face it, more people are going to be looking at the website than the code.</p>
<h3>Last resort &#8211; Javascript</h3>
<p>With these tricks you should be off and running, but in-case you inherited a project that used lots of unsupported CSS tricks (like the &#8216;+&#8217; sibling selector and IE6), you can resort to javascript.  <a href="http://ie7-js.googlecode.com">IE7-js</a> is a project created to make Microsoft Internet Explorer behave like a standards-compliant browser. It fixes many HTML and CSS issues and makes transparent PNG work correctly under IE5 and IE6.</p>
<h3>Other Browsers</h3>
<p>Now we have a site that works in Firefox and the 3 major IEs, but I haven&#8217;t mentioned anything about the other Grade A Browsers.  If you look at various <a href="http://en.wikipedia.org/wiki/Usage_share_of_web_browsers#Summary_Table>browser statistic pages</a>, you&#8217;ll typically find that these 4 browsers cover close to 90% of your viewer-ship, Which I think is a pretty good goal, but the only way to know for sure is to get something like <a href="http://www.google.com/analytics/">Google Analytics</a> to find out for yourself.  </p>
<p>In practice however, rarely do I find an issue with Safari that does not come up in Firefox and if we&#8217;ve done things in a fairly standard way, we should be ok in Opera.</p>
<h3>Summary</h3>
<p>That should do it.  With these few tricks, you should be able to get your website pixel perfect in the most common browsers with out too much work.  If you find this useful, or have any other tips, leave a comment!</p>
]]></content:encoded>
			<wfw:commentRss>http://mattfarmer.net/2009/09/01/how-to-design-a-cross-browser-compliant-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gnome: The Settings Daemon restarted too many times.</title>
		<link>http://mattfarmer.net/2009/08/02/gnome-the-settings-daemon-restarted-too-many-times/</link>
		<comments>http://mattfarmer.net/2009/08/02/gnome-the-settings-daemon-restarted-too-many-times/#comments</comments>
		<pubDate>Sun, 02 Aug 2009 17:39:02 +0000</pubDate>
		<dc:creator>POS</dc:creator>
				<category><![CDATA[Gentoo]]></category>

		<guid isPermaLink="false">http://mattfarmer.net/?p=512</guid>
		<description><![CDATA[This problem started so long ago that I really have no insight into when or why it first started happening, but for a while now, whenever I started X with the `startx` command, I would get the following error message:

There was an error starting the GNOME Settings Daemon.
Some things, such as themes, sounds, or background [...]]]></description>
			<content:encoded><![CDATA[<p>This problem started so long ago that I really have no insight into when or why it first started happening, but for a while now, whenever I started X with the `startx` command, I would get the following error message:</p>
<blockquote><p>
There was an error starting the GNOME Settings Daemon.<br />
Some things, such as themes, sounds, or background settings may not work<br />
correctly.<br />
The Settings Daemon restarted too many times.
</p></blockquote>
<p>After poking around for a little while, I finally came across <a href="http://bugs.gentoo.org/150909">Gentoo Bug 150909</a>.  I didn&#8217;t have the linking problem found by Stian Skejelstad, but <a href="http://bugs.gentoo.org/show_bug.cgi?id=150909#c3">Daniel Gryniewicz&#8217;s Comment</a> to add <code>eval `dbus-launch --sh-syntax --exit-with-session`</code> to your <code>~/.xinitrc</code> worked great.</p>
<p>My <code>~/.xinitrc</code> now looks like this:</p>
<blockquote><p>
#&#8211; ~/.xinitrc<br />
eval `dbus-launch &#8211;sh-syntax &#8211;exit-with-session`<br />
exec gnome-session<br />
#exec startfluxbox
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://mattfarmer.net/2009/08/02/gnome-the-settings-daemon-restarted-too-many-times/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHPList 500 Errors on Install</title>
		<link>http://mattfarmer.net/2009/03/30/phplist-500-errors-on-install/</link>
		<comments>http://mattfarmer.net/2009/03/30/phplist-500-errors-on-install/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 08:11:22 +0000</pubDate>
		<dc:creator>POS</dc:creator>
				<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://mattfarmer.net/?p=508</guid>
		<description><![CDATA[While installing PHPList on a GoDaddy server for a client of mine, I was frustrated to receive an &#8216;Internal Server Error&#8217; / &#8216;500 Error&#8217;.  Following the directions at this post fixed it easy enough.  You just need to delete the following line form your .htaccess file in your PHPList install directory:

php_flag magic_quotes_gpc on
]]></description>
			<content:encoded><![CDATA[<p>While installing <a href="http://www.phplist.com/">PHPList</a> on a GoDaddy server for a client of mine, I was frustrated to receive an &#8216;Internal Server Error&#8217; / &#8216;500 Error&#8217;.  Following the directions at this <a href="http://forums.phplist.com/viewtopic.php?t=3533">post</a> fixed it easy enough.  You just need to delete the following line form your .htaccess file in your PHPList install directory:</p>
<blockquote><p>
php_flag magic_quotes_gpc on</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://mattfarmer.net/2009/03/30/phplist-500-errors-on-install/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mounting a partition from a hard drive image</title>
		<link>http://mattfarmer.net/2009/03/11/mounting-a-partition-from-a-hard-drive-image/</link>
		<comments>http://mattfarmer.net/2009/03/11/mounting-a-partition-from-a-hard-drive-image/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 19:13:24 +0000</pubDate>
		<dc:creator>POS</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://mattfarmer.net/?p=506</guid>
		<description><![CDATA[Some times use after recovering an entire hard drive image, you may want to mount a partition that was on that disk, instead of apply it to another drive.  In those times, you can use the following commands:
First, you will want to find out where the partition starts:
sfdisk -l -uS image_file.dd
The -uS flag to [...]]]></description>
			<content:encoded><![CDATA[<p>Some times use after recovering an entire hard drive image, you may want to mount a partition that was on that disk, instead of apply it to another drive.  In those times, you can use the following commands:</p>
<p>First, you will want to find out where the partition starts:<br />
<blockquote>sfdisk -l -uS image_file.dd</p></blockquote>
<p>The -uS flag to sfdisk forces the output to be given in sectors (512 bytes), so the number you see there will need to be multiplied by 512.</p>
<p>Then:</p>
<blockquote><p>mount -oloop,offset=xxxx image.dd /mnt/point</p></blockquote>
<p>That&#8217;s it!</p>
]]></content:encoded>
			<wfw:commentRss>http://mattfarmer.net/2009/03/11/mounting-a-partition-from-a-hard-drive-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dropbox</title>
		<link>http://mattfarmer.net/2009/03/07/dropbox/</link>
		<comments>http://mattfarmer.net/2009/03/07/dropbox/#comments</comments>
		<pubDate>Sat, 07 Mar 2009 23:12:16 +0000</pubDate>
		<dc:creator>POS</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://mattfarmer.net/?p=504</guid>
		<description><![CDATA[Dropbox is a great application I found out about a few months back.  You create an account and install a service on a number of computers that you use, and it creates a folder that will stay in sync across all of them.  The best part about this is that if any computer [...]]]></description>
			<content:encoded><![CDATA[<p><a href="https://www.getdropbox.com/referrals/NTM0OTg4Njk">Dropbox</a> is a great application I found out about a few months back.  You create an account and install a service on a number of computers that you use, and it creates a folder that will stay in sync across all of them.  The best part about this is that if any computer isn&#8217;t on, when it wakes up, it goes out and checks what it&#8217;s missed, and syncs back up, and its FAST.</p>
<p>There is also a sharing section, where you can share a portion of your account with another user, and let them upload and delete files.  It combines your usable space for this areas, so on group projects it gets quick first.  Ohh and did I mention it has its own built in file versioning system?</p>
<p>There&#8217;s also a special folder for Photos that will automatically generate an online picture album of any pictures / folders placed into here.  Of all the features, while I like some of the other ones a whole lot more, I use this one the most.  Its great when working on web sites with clients and being able to save screen shots directly to this folder and show them what I&#8217;m seeing.</p>
<p>When I first found out about Dropbox, I was so excited about it, I went on a big kick about how everyone should be using it, but after time this excitement died down.  Well now, Dropbox is giving away an extra 256MB of storage space (up to 3GB) (on top of the 2GB you get just for signing up) for every user you refer to the site, and so I&#8217;m back at it.  Check it out:  <a href="https://www.getdropbox.com/referrals/NTM0OTg4Njk">https://www.getdropbox.com/referrals/NTM0OTg4Njk</a>!</p>
]]></content:encoded>
			<wfw:commentRss>http://mattfarmer.net/2009/03/07/dropbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Balance Shoe Fairy</title>
		<link>http://mattfarmer.net/2009/03/02/new-balance-shoe-fairy/</link>
		<comments>http://mattfarmer.net/2009/03/02/new-balance-shoe-fairy/#comments</comments>
		<pubDate>Mon, 02 Mar 2009 21:13:46 +0000</pubDate>
		<dc:creator>POS</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://mattfarmer.net/2009/03/02/new-balance-shoe-fairy/</guid>
		<description><![CDATA[
 
About 3 weeks ago I filled out a form on New Balance&#8217;s Website for their Wear Test program.  Shortly there after I received an email back from them stating:

Matthew Farmer, your application has been received and will be reviewed by the New Balance Wear Test Team.  It is possible that all positions [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.facebook.com/photo.php?pid=31485014&#038;id=50200153" class="tt-facebook-photo tt-facebook-medium"><img src="http://photos-g.ak.fbcdn.net/photos-ak-sf2p/v647/112/19/50200153/s50200153_31485014_3529996.jpg" alt="" border="0" /></a><a href="http://www.facebook.com/photo.php?pid=31485015&#038;id=50200153" class="tt-facebook-photo tt-facebook-medium"><img src="http://photos-h.ak.fbcdn.net/photos-ak-sf2p/v647/112/19/50200153/s50200153_31485015_2293442.jpg" alt="" border="0" /></a><br />
<a href="http://www.facebook.com/photo.php?pid=31485016&#038;id=50200153" class="tt-facebook-photo tt-facebook-medium"><img src="http://photos-a.ak.fbcdn.net/photos-ak-sf2p/v647/112/19/50200153/s50200153_31485016_857210.jpg" alt="" border="0" /></a><a href="http://www.facebook.com/photo.php?pid=31485017&#038;id=50200153" class="tt-facebook-photo tt-facebook-medium"><img src="http://photos-b.ak.fbcdn.net/photos-ak-sf2p/v647/112/19/50200153/s50200153_31485017_2060289.jpg" alt="" border="0" /></a> </p>
<p>About 3 weeks ago I filled out a form on New Balance&#8217;s Website for their <a href="http://weartest.newbalance.com/Learn/Index.asp?x=020|030&#038;~=">Wear Test</a> program.  Shortly there after I received an email back from them stating:</p>
<blockquote>
<p>Matthew Farmer, your application has been received and will be reviewed by the New Balance Wear Test Team.  It is possible that all positions in the Activity you indicated are currently filled, so we thank you for your patience as we look for testing opportunities that suit you.</p>
<p>Once you have been selected for a test, you will receive an email notification of your acceptance into the program.  This email will also confirm your User ID and provide a temporary Password allowing you to log in to the site and manage your account.</p>
<p>Sincerely,<br />
The New Balance Wear Test Team</p>
<p>http://weartest.newbalance.com</p>
</blockquote>
<p>And that was that.  I kind of forgot that I even applied and hadn&#8217;t heard from them since.</p>
<p>Then this morning I found a package on my front doorstep.  At first I looked at it expecting to see my room mate&#8217;s name on it, but when I saw mine I quickly scanned the return address expecting to see it coming from my family, but was excited to see that it was from New Balance!</p>
<p>This last week I really started to gear up on my training for the LA marathon.  I ran a <a href="http://mattfarmer.net/projects/garmintools/facebook/publisher/gmap/28/">5 mile run</a> at my goal marathon pace of 7:15 minutes / mile on Saturday and followed that up with a <a href="http://mattfarmer.net/projects/garmintools/facebook/publisher/gmap/29/">8 mile run</a> on Sunday, each of which left my knees feeling a little soggy.</p>
<p>I really thought a new pair of shoes might help with that, but didn&#8217;t want to drop the $80-100 that entailed on it just yet, and was thinking that maybe I&#8217;d ask for a pair for my birthday, though my family already do so much for me I didn&#8217;t want to.  Last night I even had a dream about it.  So these couldn&#8217;t have come at a better time.  I can&#8217;t wait to get out there and put some miles on them!</p>
]]></content:encoded>
			<wfw:commentRss>http://mattfarmer.net/2009/03/02/new-balance-shoe-fairy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LA Update</title>
		<link>http://mattfarmer.net/2009/02/24/la-update/</link>
		<comments>http://mattfarmer.net/2009/02/24/la-update/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 22:29:28 +0000</pubDate>
		<dc:creator>POS</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://mattfarmer.net/?p=492</guid>
		<description><![CDATA[So I&#8217;ve been in LA for a little over a month now and figured it was time for an update on how things have been going.
The first week was pretty much tied up with Gosslin, a holiday my friends here made up about 6 years ago.  Celebrated at the end of January every year, [...]]]></description>
			<content:encoded><![CDATA[<p>So I&#8217;ve been in LA for a little over a month now and figured it was time for an update on how things have been going.</p>
<p>The first week was pretty much tied up with Gosslin, a holiday my friends here made up about 6 years ago.  Celebrated at the end of January every year, there are 17 points that must be completed during the night.  This year a few of them were: Martina has to sneak in (which he did), Jess had to lead everyone in a song of dance, the Ramones were the only band listened to, Bowser and Banshe got married, and Noah had a Translyvanian BBQ.</p>
<p>During all of that, me and Noah also got a dog, Girl.  She was found under a car in Eagle Rock a few months ago when this really nice lady took her in.  She took care of her for a few months until we heard about her through a friend of a friend of a friend of Noah&#8217;s boss&#8230; or something like that.  Since we&#8217;ve got her we&#8217;ve gotten her spayed, dealt with her with a cone on her head for a week, and I started taking her on runs.</p>
<p>As for work, I&#8217;ve started giving the freelance thing a try.  Mostly doing websites.  Its slow getting work, but looks some what promising.  I think I&#8217;m also going to put my skills from EMC to work and start doing some Hard Drive Data recovery.  Dave&#8217;s Mac hard drive went last week (due to some nasty file system corruption that DiskUtility couldn&#8217;t fix), and I was able to get everything back for him, so I figured I&#8217;d see if I couldn&#8217;t make some money there.</p>
<p>I&#8217;ve also started officially training for the LA Marathon.  This will be my first time training with an official schedule, instead of just running as I see fit.  I didn&#8217;t look around too too much, but decided to go with <a href="http://www.halhigdon.com/marathon/Mar00index.htm">Hal Higdon&#8217;s Intermediate 1 Training Schedule</a>.  It&#8217;s an 18 week program, but the race is only 15 away, so I&#8217;m going to start at Week 1 and skip one week of the schedule until I&#8217;m on track.  Given I finished Boston in 3:53, with my haphazard training for 6 weeks, I think I&#8217;ll be ok with this.</p>
<p>Enough side tracking for now.  Back to work!</p>
]]></content:encoded>
			<wfw:commentRss>http://mattfarmer.net/2009/02/24/la-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web frameworks and SQLite frustrations</title>
		<link>http://mattfarmer.net/2008/12/14/web-frameworks-and-sqlite-frustrations/</link>
		<comments>http://mattfarmer.net/2008/12/14/web-frameworks-and-sqlite-frustrations/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 02:27:52 +0000</pubDate>
		<dc:creator>POS</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://mattfarmer.net/?p=447</guid>
		<description><![CDATA[This weekend I started doing some web work for a client who wanted to be able to add and remove some content to their site with out having to know any html.  Easy!
I wanted to take this as an opportunity to try out a few different web frameworks to see which I like the [...]]]></description>
			<content:encoded><![CDATA[<p>This weekend I started doing some web work for a client who wanted to be able to add and remove some content to their site with out having to know any html.  Easy!</p>
<p>I wanted to take this as an opportunity to try out a few different web frameworks to see which I like the most and which I wanted to learn more.   The first two I looked at were <a href="http://www.djangoproject.com/">django</a> and <a href="http://codeigniter.com/">CodeIgniter</a>.</p>
<p>After running through the tutorial for django, I was totally sold!  Everything about it seemed amazing and worked like a charm!  But when I tried to load it up on my 1&#038;1 account, it was a no go situation.  django is a Python package that has to be installed by a privileged user.  There are other hosts out there at comparable prices that have django pre-installed, but they do not offer the amount of space that 1&#038;1 does (which I use to back up my personal files).  Also, a lot of the work that I do is adding functionality to already existing sites, where I have no input into where the site is hosted, and so again, it doesn&#8217;t look like django will work for me.</p>
<p>Next up was CodeIgniter, and while its not quite as impressive as django (I actually had to create a database table myself&#8230; *sarcastic sigh*), it seems like it will do the job.</p>
<p>Next up, time to work on this site.  One problem.  I don&#8217;t have any cPannel type login information or know any credentials for a database I can use&#8230; No worries though:  sqlite to the rescue!</p>
<p>I setup CodeIgniter to work and all is looking great.  I created some sample data with the command line sqlite interface and Select statements are working perfectly.  I&#8217;m not pretty far into this project, too far to back out now.  The client side of things are all done, and I&#8217;m now working on the admin interface.  Time to setup some DELETE and INSERT queries.</p>
<p>&#8220;Unable to open database&#8230;&#8221;.  WHAT?  What do you mean unable to open database?  If i changed any of these queries to a SELECT, they work fine, so its obviously able to open it.  I chmod the file to 777, still nothing.</p>
<p>After what felt like, and probably was, hours of searching, I finally came across this article at <a href="http://mediakey.dk/~cc/troubleshooting-sqlite-query-error-unable-to-open-database/">mediakey.dk</a>.</p>
<p>As it turns out, to be able to write to a sqlite file, the folder that it resides in must also be writable.  So simple, but so frusterating.  I&#8217;m going to post this hint in as many spots as I can find now, so hopefully other user&#8217;s won&#8217;t have to go through as much trouble finding it as I did.</p>
]]></content:encoded>
			<wfw:commentRss>http://mattfarmer.net/2008/12/14/web-frameworks-and-sqlite-frustrations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
