<?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>updatebrain.com</title>
	<atom:link href="http://blog.updatebrain.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.updatebrain.com</link>
	<description>just another developers weblog</description>
	<lastBuildDate>Tue, 13 Oct 2009 10:13:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>MySQL makes stuff easy 2</title>
		<link>http://blog.updatebrain.com/2009/07/06/mysql-makes-stuff-easy-2/</link>
		<comments>http://blog.updatebrain.com/2009/07/06/mysql-makes-stuff-easy-2/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 13:56:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[table]]></category>

		<guid isPermaLink="false">http://blog.updatebrain.com/?p=67</guid>
		<description><![CDATA[How to convert old html-symbols to utf-8 automatically in MySQL?
i did it with REPLACE():
UPDATE `articles` SET `title` = replace(`title`,'&#38;auml;','ä');
UPDATE `articles` SET `title` = replace(`title`,'&#38;ouml;','ö');
UPDATE `articles` SET `title` = replace(`title`,'&#38;uuml;','ü');


&#8230; worked with all my old tables  
]]></description>
			<content:encoded><![CDATA[<p>How to convert old html-symbols to utf-8 automatically in MySQL?</p>
<p>i did it with <a href="http://dev.mysql.com/doc/refman/5.1/en/replace.html">REPLACE()</a>:</p>
<pre><span style="color: #0000ff;">UPDATE `articles` SET `title` = replace(`title`,'&amp;auml;','ä');</span>
<pre><span style="color: #0000ff;">UPDATE `articles` SET `title` = replace(`title`,'&amp;ouml;','ö');</span>
<pre><span style="color: #0000ff;">UPDATE `articles` SET `title` = replace(`title`,'&amp;uuml;','ü');</span></pre>
</pre>
</pre>
<p>&#8230; worked with all my old tables <img src='http://blog.updatebrain.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.updatebrain.com/2009/07/06/mysql-makes-stuff-easy-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP SQLite3 support</title>
		<link>http://blog.updatebrain.com/2009/07/04/php-sqlite3-support/</link>
		<comments>http://blog.updatebrain.com/2009/07/04/php-sqlite3-support/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 13:58:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[SQLite]]></category>

		<guid isPermaLink="false">http://blog.updatebrain.com/?p=58</guid>
		<description><![CDATA[I never before noticed the SQLite3 class in PHP. Until now.
OK &#8230; so what can you use sqlite for? Let&#8217;s assume you are developing a database driven app. Wouldn&#8217;t it be nice to not have to set up a mysql server on your laptop to be able to code on localhost whereever you are?
With SQLite [...]]]></description>
			<content:encoded><![CDATA[<p>I never before noticed the SQLite3 class in PHP. Until now.</p>
<p>OK &#8230; so what can you use sqlite for? Let&#8217;s assume you are developing a database driven app. Wouldn&#8217;t it be nice to not have to set up a mysql server on your laptop to be able to code on localhost whereever you are?</p>
<p>With SQLite you only need one *.db file and your ready to run!</p>
<p><code><span style="color: #000000;"><span style="color: #0000bb;">$database </span><span style="color: #007700;">= new </span><span style="color: #0000bb;">SQLite3</span><span style="color: #007700;">(</span><span style="color: #dd0000;">'test.db'</span><span style="color: #007700;">);</span></span></code></p>
<p><span style="color: #000000;"><span style="color: #007700;"><span style="color: #000000;">That&#8217;s all it takes to make a new </span></span></span>SQLite object in PHP.</p>
<p>The SQLite code is actually verry similar to MySQLi object code. I like it. Hopefully you do to <img src='http://blog.updatebrain.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.updatebrain.com/2009/07/04/php-sqlite3-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[UPDATE] the link project</title>
		<link>http://blog.updatebrain.com/2009/07/01/update-the-link-project/</link>
		<comments>http://blog.updatebrain.com/2009/07/01/update-the-link-project/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 16:57:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://updatebrain.com/?p=52</guid>
		<description><![CDATA[UPDATE: due to personal reasons the link project site will not launch on Jul 10.  
]]></description>
			<content:encoded><![CDATA[<p>UPDATE: due to personal reasons the link project site will not launch on Jul 10. <img src='http://blog.updatebrain.com/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.updatebrain.com/2009/07/01/update-the-link-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL makes stuff easy</title>
		<link>http://blog.updatebrain.com/2009/07/01/mysql-makes-stuff-easy/</link>
		<comments>http://blog.updatebrain.com/2009/07/01/mysql-makes-stuff-easy/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 16:19:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[alnum]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[regexp]]></category>
		<category><![CDATA[regular expression]]></category>

		<guid isPermaLink="false">http://updatebrain.com/?p=42</guid>
		<description><![CDATA[Recently, had to
MIGRATE `some`, `product`, `tables` FROM `different sources` WHERE `someone apparently typed letters in fields that were supposed to hold numbers only`;
Only problem: the table holds nearly 3000 rows.
So I used a regular expression:
SELECT * FROM `products` WHERE `price` REGEXP '[:alnum:]';
It took 0.0434 sec for MySQL to identify the badboys  
]]></description>
			<content:encoded><![CDATA[<p>Recently, had to</p>
<p>MIGRATE `some`, `product`, `tables` FROM `different sources` WHERE `someone apparently typed letters in fields that were supposed to hold numbers only`;</p>
<p>Only problem: the table holds nearly 3000 rows.</p>
<p>So I used a <a href="http://dev.mysql.com/doc/refman/5.1/en/regexp.html">regular expression</a>:</p>
<pre><span style="color: #000080;">SELECT * FROM `products` WHERE `price` REGEXP '[:alnum:]';</span></pre>
<p>It took 0.0434 sec for MySQL to identify the badboys <img src='http://blog.updatebrain.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.updatebrain.com/2009/07/01/mysql-makes-stuff-easy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>the link project</title>
		<link>http://blog.updatebrain.com/2009/06/25/the-link-project/</link>
		<comments>http://blog.updatebrain.com/2009/06/25/the-link-project/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 14:59:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[link]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://updatebrain.com/?p=29</guid>
		<description><![CDATA[A while back I had a problem with some link-organizing-sites.
So I made a list of things that I thought would be necessary:

CRUD
fast site
statistics
lookup service
user accounts
easy interface

There are a few services out there that are great but I wanted to have something better.
Approximately 2 weeks ago I started to work on my own link service.
The goal [...]]]></description>
			<content:encoded><![CDATA[<p><!-- 		@page { margin: 0.79in } 		P { margin-bottom: 0.08in } -->A while back I had a problem with some link-organizing-sites.</p>
<p>So I made a list of things that I thought would be necessary:</p>
<ul>
<li>CRUD</li>
<li>fast site</li>
<li>statistics</li>
<li>lookup service</li>
<li>user accounts</li>
<li>easy interface</li>
</ul>
<p>There are a few services out there that are great but I wanted to have something better.</p>
<p>Approximately 2 weeks ago I started to work on my own link service.</p>
<p>The goal is to make a site that has all the necessary things and is also very extend-able, reliable and brings in new innovations.</p>
<p>I hope to launch the site for official beta testing on Jul 10.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.updatebrain.com/2009/06/25/the-link-project/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Domain lock in J1.5.11</title>
		<link>http://blog.updatebrain.com/2009/06/25/domain-lock-in-j1-5-11/</link>
		<comments>http://blog.updatebrain.com/2009/06/25/domain-lock-in-j1-5-11/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 00:51:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[1.5]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://updatebrain.com/?p=12</guid>
		<description><![CDATA[Once I had to force J1.5.11 to use a specific domain and here is how i&#8217;ve done it:

I browsed to /libraries/joomla/environment
I opened uri.php in gedit
finally I replaced all $_SERVER['HTTP_HOST'] with &#8220;www.???.com&#8221;

i know it&#8217;s not good programming.
in fact it&#8217;s horrible but it worked for me  
]]></description>
			<content:encoded><![CDATA[<p>Once I had to force J1.5.11 to use a specific domain and here is how i&#8217;ve done it:</p>
<ol>
<li>I browsed to /libraries/joomla/environment</li>
<li>I opened uri.php in gedit</li>
<li>finally I replaced all $_SERVER['HTTP_HOST'] with &#8220;www.???.com&#8221;</li>
</ol>
<p>i know it&#8217;s not good programming.</p>
<p>in fact it&#8217;s horrible but it worked for me <img src='http://blog.updatebrain.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.updatebrain.com/2009/06/25/domain-lock-in-j1-5-11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
