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

<channel>
	<title>just some pointers</title>
	<atom:link href="http://mediadevs.com/steve/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://mediadevs.com/steve</link>
	<description>another guy learning about ubuntu, ruby, and other stuff.</description>
	<pubDate>Thu, 19 Feb 2009 14:00:47 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
	<language>en</language>
			<item>
		<title>CakePHP model updating instead of inserting.</title>
		<link>http://mediadevs.com/steve/?p=25</link>
		<comments>http://mediadevs.com/steve/?p=25#comments</comments>
		<pubDate>Thu, 19 Feb 2009 14:00:12 +0000</pubDate>
		<dc:creator>steve</dc:creator>
		
		<category><![CDATA[cakephp]]></category>

		<guid isPermaLink="false">http://mediadevs.com/steve/?p=25</guid>
		<description><![CDATA[Cake 1.1&#8217;s documentation is a little lacking, again.
I was having a bug where a model was updating instead of inserting, even though I was sending in an array with all of the model&#8217;s attribute except for the id.  In order to get the save function to insert instead of update, I had to explicitly [...]]]></description>
			<content:encoded><![CDATA[<p>Cake 1.1&#8217;s documentation is a little lacking, again.</p>
<p>I was having a bug where a model was updating instead of inserting, even though I was sending in an array with all of the model&#8217;s attribute except for the id.  In order to get the save function to insert instead of update, I had to explicitly set the model&#8217;s id to &#8216;null&#8217;.</p>
]]></content:encoded>
			<wfw:commentRss>http://mediadevs.com/steve/?feed=rss2&amp;p=25</wfw:commentRss>
		</item>
		<item>
		<title>CakePHP $useDbConfig not working?</title>
		<link>http://mediadevs.com/steve/?p=21</link>
		<comments>http://mediadevs.com/steve/?p=21#comments</comments>
		<pubDate>Fri, 13 Feb 2009 21:50:52 +0000</pubDate>
		<dc:creator>steve</dc:creator>
		
		<category><![CDATA[cakephp]]></category>

		<guid isPermaLink="false">http://mediadevs.com/steve/?p=21</guid>
		<description><![CDATA[For about a half hour i wrestled with a model&#8217;s $useDbConfig variable not working in a CakePHP project.
The answer came buried in the comments of the cakebook: the database connection has to have &#8216;persistent&#8217; set to &#8216;false&#8217; in order to work!
]]></description>
			<content:encoded><![CDATA[<p>For about a half hour i wrestled with a model&#8217;s $useDbConfig variable not working in a CakePHP project.</p>
<p>The answer came buried in the <a href="http://book.cakephp.org/comments/index/435#comment_549">comments of the cakebook</a>: the database connection has to have &#8216;persistent&#8217; set to &#8216;false&#8217; in order to work!</p>
]]></content:encoded>
			<wfw:commentRss>http://mediadevs.com/steve/?feed=rss2&amp;p=21</wfw:commentRss>
		</item>
		<item>
		<title>Firefox Flash Plugin Being Overwritten In Ubuntu</title>
		<link>http://mediadevs.com/steve/?p=7</link>
		<comments>http://mediadevs.com/steve/?p=7#comments</comments>
		<pubDate>Wed, 27 Aug 2008 15:14:42 +0000</pubDate>
		<dc:creator>steve</dc:creator>
		
		<category><![CDATA[Flex Builder]]></category>

		<category><![CDATA[Ubuntu Linux]]></category>

		<guid isPermaLink="false">http://mediadevs.com/steve/?p=7</guid>
		<description><![CDATA[In order to get debugging working with Adobe Flex Builder for Linux Alpha, I had to install the debugger version of the Flash 9 firefox plug-in.
I ran into a strange issue where after installing the Flash 9 debugger plug-in, the next instance of Firefox opened would use this correct flash version, but any other instances [...]]]></description>
			<content:encoded><![CDATA[<p>In order to get debugging working with <a href="http://labs.adobe.com/technologies/flex/flexbuilder_linux/">Adobe Flex Builder for Linux Alpha</a>, I had to install the debugger version of the Flash 9 firefox plug-in.</a></p>
<p>I ran into a strange issue where after installing the Flash 9 debugger plug-in, the next instance of Firefox opened would use this correct flash version, but any other instances of firefox I opened after that would revert back to the regular version of Flash 9.  </p>
<p>A quick post to the <a href="http://www.ubuntuforums.org">Ubuntu Forums</a> revealed that running <code><b>sudo apt-get remove flashplugin-nonfree</b></code> fixes this without a hitch.</p>
]]></content:encoded>
			<wfw:commentRss>http://mediadevs.com/steve/?feed=rss2&amp;p=7</wfw:commentRss>
		</item>
		<item>
		<title>Simply Rails 2 Mistake: Unable to open database file</title>
		<link>http://mediadevs.com/steve/?p=4</link>
		<comments>http://mediadevs.com/steve/?p=4#comments</comments>
		<pubDate>Wed, 27 Aug 2008 14:55:21 +0000</pubDate>
		<dc:creator>steve</dc:creator>
		
		<category><![CDATA[Ruby On Rails]]></category>

		<guid isPermaLink="false">http://mediadevs.com/steve/?p=4</guid>
		<description><![CDATA[In Chapter 4 of Sitepoint&#8217;s Simply Rails 2, you are told to run the command

sqlite3 db/development.sqlite3

then execute the sql query

CREATE TABLE `stories` (
`id` int(11) NOT NULL auto_increment,
`name` varchar(255) default NULL,
`link` varchar(255) default NULL,
PRIMARY KEY (`id`)
);

Unfortunately, following these directions you get the error: Unable to open database "db/development.sqlite3": unable to open database file.
After searching a sitepoint [...]]]></description>
			<content:encoded><![CDATA[<p>In Chapter 4 of Sitepoint&#8217;s Simply Rails 2, you are told to run the command<br />
<code><br />
sqlite3 db/development.sqlite3<br />
</code></p>
<p>then execute the sql query<br />
<code><br />
CREATE TABLE `stories` (<br />
`id` int(11) NOT NULL auto_increment,<br />
`name` varchar(255) default NULL,<br />
`link` varchar(255) default NULL,<br />
PRIMARY KEY (`id`)<br />
);<br />
</code></p>
<p>Unfortunately, following these directions you get the error: <code>Unable to open database "db/development.sqlite3": unable to open database file</code>.</p>
<p>After searching a <a href="http://www.sitepoint.com/forums/showthread.php?t=550509">sitepoint post</a> I found that you have to run <code><strong>rake db:migrate </strong>first</code> in the command line from the shovell directory project first, and then run this SQL query instead:<br />
<code><br />
CREATE TABLE `stories` (<br />
`id` int(11) <strong>autoincrement NOT NULL</strong>,<br />
`name` varchar(255) default NULL,<br />
`link` varchar(255) default NULL,<br />
<strong>`created_at` datetime DEFAULT NULL,<br />
`updated_at` datetime DEFAULT NULL</strong>,<br />
PRIMARY KEY (`id`)<br />
);<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://mediadevs.com/steve/?feed=rss2&amp;p=4</wfw:commentRss>
		</item>
	</channel>
</rss>
