<?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>World Gone Web &#187; Computing</title>
	<atom:link href="http://www.samanthahalfon.net/worldgoneweb/category/computing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.samanthahalfon.net/worldgoneweb</link>
	<description></description>
	<lastBuildDate>Sat, 17 Apr 2010 22:51:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Javascript Completion in Textmate</title>
		<link>http://www.samanthahalfon.net/worldgoneweb/2010/javascript-completion-in-textmate/</link>
		<comments>http://www.samanthahalfon.net/worldgoneweb/2010/javascript-completion-in-textmate/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 22:51:03 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[bundle]]></category>
		<category><![CDATA[completion]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[textmate]]></category>

		<guid isPermaLink="false">http://www.samanthahalfon.net/worldgoneweb/?p=363</guid>
		<description><![CDATA[

Thomas Aylott, the author of the JavaScript Bundle for Textmate, announced that he added the completion feature to his package. This is great news. as far as I know, this is the first completion made available for Textmate and I understand it is easily extended so we could see several other languages being supported soon. [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em;"><script type="text/javascript" src="http://button.topsy.com/widget/retweet-big?url=http://www.samanthahalfon.net/worldgoneweb/2010/javascript-completion-in-textmate/&amp;shorturl=http://bit.ly/9lBOTt&amp;title=Javascript+Completion+in+Textmate&amp;theme=blue&amp;nick=samo9789&amp;order=count,retweet,badge&amp;txt_tweet=tweet&amp;txt_retweet=retweet"></script></div><p><img src="http://www.samanthahalfon.net/worldgoneweb/wp-content/uploads/2010/04/Screen-shot-2010-04-18-at-12.20.54-AM-300x153.png" alt="" title="TextMate JavaScript Bundle" width="356" height="184" class="aligncenter size-medium wp-image-364" /></p>
<p><a href="http://subtlegradient.com/articles/">Thomas Aylott</a>, the author of the <a href="http://github.com/subtleGradient/javascript.tmbundle">JavaScript Bundle for Textmate</a>, announced that he added the <a href="http://subtlegradient.com/articles/2008/09/21/new_textmate_code_completion_and_smart_tooltips.html">completion feature</a> to his package. This is great news. as far as I know, this is the first completion made available for Textmate and I understand it is easily extended so we could see several other languages being supported soon. If that&#8217;s the case, this will make Textmate a real contender not only to text editors but full featured IDE. This is exiting.</p>
<p>To install the bundle, just head over to <a href="http://github.com/subtleGradient">Thomas Aylott&#8217;s GitHub page</a> and download the <a href="http://github.com/subtleGradient/javascript.tmbundle">Javascript bundle</a> (not the Javascript-tools one) and extract it. Rename the generated folder javascript.bundle and double click it. Once the bundle is installed, enter the beginning of a javascript line of code and press option+escape to show the completion.</p>
<p>At first, I was getting the following error message in Textmate:</p>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">/</span>ruby<span style="color: #000000; font-weight: bold;">/</span>1.8<span style="color: #000000; font-weight: bold;">/</span>rubygems<span style="color: #000000; font-weight: bold;">/</span>custom_require.rb:27:<span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span>gem_original_require<span style="color: #ff0000;">': no such file to load -- json (MissingSourceFile)</span></div></td></tr></tbody></table></div>
</p>
<p>It was fixed by running the following command</p>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;">install</span> json</div></td></tr></tbody></table></div></p>

]]></content:encoded>
			<wfw:commentRss>http://www.samanthahalfon.net/worldgoneweb/2010/javascript-completion-in-textmate/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Backup Your &#8220;Tumblelog&#8221;</title>
		<link>http://www.samanthahalfon.net/worldgoneweb/2010/backup-your-tumblelog/</link>
		<comments>http://www.samanthahalfon.net/worldgoneweb/2010/backup-your-tumblelog/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 16:55:59 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Me myself I]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[tumblelog]]></category>
		<category><![CDATA[tumblr]]></category>
		<category><![CDATA[tumblrbackup]]></category>

		<guid isPermaLink="false">http://www.samanthahalfon.net/worldgoneweb/?p=355</guid>
		<description><![CDATA[

First, I must confess that I like trying software out. That&#8217;s probably how I ended up having some many accounts with so many services and having a Tumblelog AND a Wordpress blog. Since this blog is not running on wordpress.com, it is for me to remember and backup my database and files from time to [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em;"><script type="text/javascript" src="http://button.topsy.com/widget/retweet-big?url=http://www.samanthahalfon.net/worldgoneweb/2010/backup-your-tumblelog/&amp;shorturl=http://bit.ly/9dDw0B&amp;title=Backup+Your+%22Tumblelog%22&amp;theme=blue&amp;nick=samo9789&amp;order=count,retweet,badge&amp;txt_tweet=tweet&amp;txt_retweet=retweet"></script></div><p><img src="http://www.samanthahalfon.net/worldgoneweb/wp-content/uploads/2010/04/Screen-shot-2010-04-05-at-6.54.34-PM.png" alt="" title="Screen shot 2010-04-05 at 6.54.34 PM" width="340" height="194" class="aligncenter size-full wp-image-360" /></p>
<p>First, I must confess that I like trying software out. That&#8217;s probably how I ended up having some many accounts with so many services and having a Tumblelog AND a Wordpress blog. Since this blog is not running on wordpress.com, it is for me to remember and backup my database and files from time to time in case of a problem with my server. For <a href="http://samo9789.tumblr.com">my Tumblr</a>, it is different. The data is on Tumblr server(s) and there are no features I know of in the admin to download them and store them locally. After a year of publishing a daily list of the movies I watch and books I read, this tumblelog became a Journal of my cultural activities and I grew attached to it. Recently I decided it had to be backedup in case something happened to my tumblr account or whatever. As usual, someone had the idea before me and a tool is available. It is called &#8211; appropriately enough &#8211; <a href="http://macsmiley.tumblr.com/post/450101769/tumblr-backup-mac-beta">Tumblrbackup</a>. It couldn&#8217;t be easier to use, enter your credentials, select the tumblelog to backup and the destination on your computer. A folder is created which contains your posts, images, avatar and even your custom style. A index.html file is generated allowing you to browse your own content on your local hard drive. The index.html doesnt include your custom style so it looks pretty plain but everything you wrote and uploaded is there&#8230; Now I just need to remember and rerun the backup from time to time. Cool!<br />
<a href="http://samo9789.tumblr.com"><img src="http://www.samanthahalfon.net/worldgoneweb/wp-content/uploads/2010/04/Screen-shot-2010-04-05-at-6.51.05-PM.png" alt="" title="Screen shot 2010-04-05 at 6.51.05 PM" width="400" height="500" class="alignleft size-full wp-image-357" /></a></p>

]]></content:encoded>
			<wfw:commentRss>http://www.samanthahalfon.net/worldgoneweb/2010/backup-your-tumblelog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chive, alternative to PHPMyAdmin</title>
		<link>http://www.samanthahalfon.net/worldgoneweb/2010/chive-alternative-to-phpmyadmin/</link>
		<comments>http://www.samanthahalfon.net/worldgoneweb/2010/chive-alternative-to-phpmyadmin/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 16:33:11 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[chive]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[sql browser]]></category>
		<category><![CDATA[yii]]></category>

		<guid isPermaLink="false">http://www.samanthahalfon.net/worldgoneweb/?p=348</guid>
		<description><![CDATA[

I don&#8217;t remember how I&#8217;ve heard about Chive, a young alternative to PhpMyAdmin (version 0.3 was released less than a week ago). I believe it was a link on twitter.
There seem to be two policies when it comes to a MySQL browser for web developers: the desktop app or the web app. A lot of [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em;"><script type="text/javascript" src="http://button.topsy.com/widget/retweet-big?url=http://www.samanthahalfon.net/worldgoneweb/2010/chive-alternative-to-phpmyadmin/&amp;shorturl=http://bit.ly/cx1hfj&amp;title=Chive%2C+alternative+to+PHPMyAdmin&amp;theme=blue&amp;nick=samo9789&amp;order=count,retweet,badge&amp;txt_tweet=tweet&amp;txt_retweet=retweet"></script></div><p><a href="http://www.samanthahalfon.net/worldgoneweb/wp-content/uploads/2010/04/Screen-shot-2010-04-05-at-6.24.13-PM.png"><img src="http://www.samanthahalfon.net/worldgoneweb/wp-content/uploads/2010/04/Screen-shot-2010-04-05-at-6.24.13-PM.png" alt="" title="Screen shot 2010-04-05 at 6.24.13 PM" width="350" height="200" class="aligncenter size-full wp-image-349" /></a></p>
<p>I don&#8217;t remember how I&#8217;ve heard about <a href="http://www.chive-project.com/">Chive</a>, a young alternative to PhpMyAdmin (version 0.3 was released less than a week ago). I believe it was a link on twitter.<br />
There seem to be two policies when it comes to a MySQL browser for web developers: the desktop app or the web app. A lot of people seem to use PHPMyAdmin though I gave it up several years ago. First for the MySQL QueryBrowser, later on for SequelPro (OS X).  SequelPro does everything I need, connect via socket, tcp or ssh which is extremly useful. Still, sometimes, to install a PHPMyAdmin (or something similar) on a remote server or a dev server can be handy. So I tried Chive. </p>
<p>The installation couldnt be easier. Just unrar the package, place it in your document root somewhere and it works. Chive runs on the Yii PHP framework and, as far as I can tell, it&#8217;s pretty fast. The interface is less cluttered than PHPMyAdmin. Of course, you have to get some work done with a tool like that to judge of its efficiency but it looks like a nice alternative to PHPMyAdmin to me. Actually, the <a href="http://www.chive-project.com/Features">feature list comparaison</a> on the Chive website is impressive (considering the age of the project). I will definitely recommend it to developers I work with because I hate using PHPMyAdmin when pairing with them. </p>
<p>If you have any use for a web based MySQL Browserm check Chive out:</p>
<li><a href="http://www.chive-project.com/">Chive homepage</a></li>
<li><a href="https://launchpad.net/chive">Chive&#8217;s source code on launchpad</a></li>

]]></content:encoded>
			<wfw:commentRss>http://www.samanthahalfon.net/worldgoneweb/2010/chive-alternative-to-phpmyadmin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing Fink on Mac OS X 10.6</title>
		<link>http://www.samanthahalfon.net/worldgoneweb/2010/installing-fink-on-mac-os-x-10-6/</link>
		<comments>http://www.samanthahalfon.net/worldgoneweb/2010/installing-fink-on-mac-os-x-10-6/#comments</comments>
		<pubDate>Mon, 05 Apr 2010 06:34:38 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[amarok]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[fink]]></category>
		<category><![CDATA[mac os x]]></category>
		<category><![CDATA[macports]]></category>

		<guid isPermaLink="false">http://www.samanthahalfon.net/worldgoneweb/2010/installing-fink-on-mac-os-x-10-6/</guid>
		<description><![CDATA[

Before I was a mac user, I have used Windows and Linux for several years. I still use Linux daily (via SSH) and I still see Windows running on machines all around me. From these two worlds, there are very few things that I am missing on Mac OS X.

From the Windows world, I would [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em;"><script type="text/javascript" src="http://button.topsy.com/widget/retweet-big?url=http://www.samanthahalfon.net/worldgoneweb/2010/installing-fink-on-mac-os-x-10-6/&amp;shorturl=http://bit.ly/9tHr8E&amp;title=Installing+Fink+on+Mac+OS+X+10.6&amp;theme=blue&amp;nick=samo9789&amp;order=count,retweet,badge&amp;txt_tweet=tweet&amp;txt_retweet=retweet"></script></div><p><img src="http://www.samanthahalfon.net/worldgoneweb/wp-content/uploads/2010/04/finkLogo.png" alt="" title="finkLogo" width="171" height="85" class="alignleft size-full wp-image-341" /></p>
<p>Before I was a mac user, I have used Windows and Linux for several years. I still use Linux daily (via SSH) and I still see Windows running on machines all around me. From these two worlds, there are very few things that I am missing on Mac OS X.</p>
<p><img src="http://www.samanthahalfon.net/worldgoneweb/wp-content/uploads/2010/04/amarokLogo.png" alt="" title="amarokLogo" width="370" height="45" class="alignright size-full wp-image-342" /></p>
<p>From the Windows world, I would like to get AnyDVD, DVD Shrink (that is a cool name for a cool soft) and IrfanView. From my Linux setup, there is one thing that I’ve missed: <a href="http://amarok.kde.org/">Amarok</a>.<br />
Every now and then I try to compile Amarok on my mac. So far I had tried using MacPorts but this week end, I found out it could also work using FInk so I tried to install it. Fink is a linux port for Mac OS X which works pretty closely to aptitude on Debian.<br />
The installation, on Snow Leopard, can only be done from the source but it’s simple enough:</p>
<p>Install Apple XCode<br />
<a href="http://downloads.sourceforge.net/fink/fink-0.29.10.tar.gz">Download the Fink source</a><br />
Untar the package</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;br /&gt;<br />
tar -xvzf fink-0.29.10.tar.gz&lt;br /&gt;</div></td></tr></tbody></table></div>
<p>
Launch the bootstarp file</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">cd fink-0.29.10&lt;br /&gt;<br />
./bootstrap&lt;/p&gt;<br />
&lt;p&gt;</div></td></tr></tbody></table></div>
<p>
Add fink to your path</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">/sw/bin/pathsetup.sh</div></td></tr></tbody></table></div>
<p>
Update fink</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">fink selfupdate</div></td></tr></tbody></table></div>
<p>
Finally, in order to install Amarok, switch to the unstable branch by doing</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">fink configure</div></td></tr></tbody></table></div>
<p>
update your fink distribution again</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">fink selfupdate</div></td></tr></tbody></table></div>
<p>
And try installing Amarok</p>
<div class="codecolorer-container text dawn" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">fink install amarok</div></td></tr></tbody></table></div>
<p>
It doesn’t compile for me at this point (it failed on kdebase) but I’ll try again. In the meantime, fink works.</p>

]]></content:encoded>
			<wfw:commentRss>http://www.samanthahalfon.net/worldgoneweb/2010/installing-fink-on-mac-os-x-10-6/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Zend Server Community Edition for Mac OS X &#8211; MySQL problem</title>
		<link>http://www.samanthahalfon.net/worldgoneweb/2010/zend-server-community-edition-for-mac-os-x-mysql-problem/</link>
		<comments>http://www.samanthahalfon.net/worldgoneweb/2010/zend-server-community-edition-for-mac-os-x-mysql-problem/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 08:05:44 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[MAMP]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[zend]]></category>
		<category><![CDATA[Zend Server]]></category>

		<guid isPermaLink="false">http://www.samanthahalfon.net/worldgoneweb/?p=328</guid>
		<description><![CDATA[

I switched my dev. environnement at work from MAMP to Zend Server Community Edition  a while ago but was disappointed that my Mac Book could not migrate because of a MySql error. Every time I would try to run the server, I would get the following error:
1ERROR! MySQL PID file could not be found!
Googling [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em;"><script type="text/javascript" src="http://button.topsy.com/widget/retweet-big?url=http://www.samanthahalfon.net/worldgoneweb/2010/zend-server-community-edition-for-mac-os-x-mysql-problem/&amp;shorturl=http://bit.ly/bV4xAf&amp;title=Zend+Server+Community+Edition+for+Mac+OS+X+-+MySQL+problem&amp;theme=blue&amp;nick=samo9789&amp;order=count,retweet,badge&amp;txt_tweet=tweet&amp;txt_retweet=retweet"></script></div><p><a href="http://www.zend.com/en/products/server-ce/"><img src="http://www.samanthahalfon.net/worldgoneweb/wp-content/uploads/2010/02/Zend-Server-Community-Edition.jpg" alt="" title="Zend Server Community Edition" width="360" height="126" class="aligncenter size-full wp-image-329" /></a></p>
<p>I switched my dev. environnement at work from <a href="http://www.mamp.info/en/index.html">MAMP</a> to <a href="http://www.zend.com/en/products/server-ce/">Zend Server Community Edition</a>  a while ago but was disappointed that my Mac Book could not migrate because of a MySql error. Every time I would try to run the server, I would get the following error:</p>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">ERROR<span style="color: #000000; font-weight: bold;">!</span> MySQL PID <span style="color: #c20cb9; font-weight: bold;">file</span> could not be found<span style="color: #000000; font-weight: bold;">!</span></div></td></tr></tbody></table></div>
<p>Googling this error, all kinds of solutions came up: privileges on the files, misconfiguration issues, installation problems&#8230;<br />
It seems to be a generic message. After trying to understand what might have happened to the missing PID file, I tried re-installations and all the common MySql on Mac OS X tips I could find on Google. No luck. At least, MAMP worked.</p>
<p>Eventually, the same error occured on <a href="http://alheim.fr/">alheim</a>&#8217;s computer. He eventually found a solution which worked for him (SnowLeopard running on Mac Book Pro) for my own laptop as well (Snow Leopard on a black MacBook).</p>
<p>So here are the steps we took:</p>
<div class="codecolorer-container bash dawn" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>zend<span style="color: #000000; font-weight: bold;">/</span>mysql<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> scripts<span style="color: #000000; font-weight: bold;">/</span>mysql_install_db<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #660033;">-R</span> zend:wheel data<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> ..<br />
<span style="color: #c20cb9; font-weight: bold;">sudo</span> bin<span style="color: #000000; font-weight: bold;">/</span>zendctl.sh start-mysql</div></td></tr></tbody></table></div>
<p>Hopefully, you&#8217;ll get a &#8220;SUCCCESS&#8221; message, too. Thanks to <a href="http://alheim.fr/">Alheim</a> for the tip.</p>

]]></content:encoded>
			<wfw:commentRss>http://www.samanthahalfon.net/worldgoneweb/2010/zend-server-community-edition-for-mac-os-x-mysql-problem/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>CodeColorer List of supported languages</title>
		<link>http://www.samanthahalfon.net/worldgoneweb/2010/codecolorer-list-of-supported-languages/</link>
		<comments>http://www.samanthahalfon.net/worldgoneweb/2010/codecolorer-list-of-supported-languages/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 17:43:55 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[code colorer]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[programming languages]]></category>

		<guid isPermaLink="false">http://www.samanthahalfon.net/worldgoneweb/?p=305</guid>
		<description><![CDATA[

A very quick post to list the languages supported by Code Colorer which I use on this blog. Everytime I write I find myself wondering which language is supported and how I should write it out for the plugin to work so here it is, for the record:

ABAP
ActionScript
ActionScript 3.0
Ada
Apache
AppleScript
Apt sources.list
asm
asp
autoit
avisynth
bash
basic4gl
bf
bibtex
blitzbasic
bnf
boo
c
c_mac
caddcl
cadlisp
cfdg
cfm
cil
cmake
cobol
cpp-qt
cpp
csharp
css
d
dcs
delphi
diff
div
dos
dot
eiffel
email
erlang
fo
fortran
freebasic
genero
gettext
glsl
gml
gnuplot
groovy
haskell
hq9plus
html4strict
idl
ini
inno
intercal
io
java
java5
javascript
kixtart
klonec
klonecpp
latex
lisp
locobasic
lolcode
lotusformulas
lotusscript
lscript
lsl2
lua
m68k
make
matlab
mirc
modula3
mpasm
mxml
mysql
nsis
oberon2
objc
ocaml-brief
ocaml
oobas
oracle11
oracle8
pascal
per
perl
php-brief
php
pic16
pixelbender
plsql
povray
powershell
progress
prolog
properties
providex
python
qbasic
rails
rebol
reg
robot
ruby
sas
scala
scheme
scilab
sdlbasic,
smalltalk
smarty
sql
tcl
teraterm
text
thinbasic
tsql
typoscript
vb
vbnet
verilog
vhdl
vim
visualfoxpro
visualprolog
whitespace
whois
winbatch
xml
xorg_conf, xpp
yaml
z80

An impressive list which should [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em;"><script type="text/javascript" src="http://button.topsy.com/widget/retweet-big?url=http://www.samanthahalfon.net/worldgoneweb/2010/codecolorer-list-of-supported-languages/&amp;shorturl=http://bit.ly/9UnGGt&amp;title=CodeColorer+List+of+supported+languages&amp;theme=blue&amp;nick=samo9789&amp;order=count,retweet,badge&amp;txt_tweet=tweet&amp;txt_retweet=retweet"></script></div><p><img class="aligncenter size-full wp-image-306" title="computer-code" src="http://www.samanthahalfon.net/worldgoneweb/wp-content/uploads/2010/02/computer-code.jpg" alt="" width="380" height="285" /></p>
<p>A very quick post to list the languages supported by Code Colorer which I use on this blog. Everytime I write I find myself wondering which language is supported and how I should write it out for the plugin to work so here it is, for the record:</p>
<ul>
<li>ABAP</li>
<li>ActionScript</li>
<li>ActionScript 3.0</li>
<li>Ada</li>
<li>Apache</li>
<li>AppleScript</li>
<li>Apt sources.list</li>
<li>asm</li>
<li>asp</li>
<li>autoit</li>
<li>avisynth</li>
<li>bash</li>
<li>basic4gl</li>
<li>bf</li>
<li>bibtex</li>
<li>blitzbasic</li>
<li>bnf</li>
<li>boo</li>
<li>c</li>
<li>c_mac</li>
<li>caddcl</li>
<li>cadlisp</li>
<li>cfdg</li>
<li>cfm</li>
<li>cil</li>
<li>cmake</li>
<li>cobol</li>
<li>cpp-qt</li>
<li>cpp</li>
<li>csharp</li>
<li>css</li>
<li>d</li>
<li>dcs</li>
<li>delphi</li>
<li>diff</li>
<li>div</li>
<li>dos</li>
<li>dot</li>
<li>eiffel</li>
<li>email</li>
<li>erlang</li>
<li>fo</li>
<li>fortran</li>
<li>freebasic</li>
<li>genero</li>
<li>gettext</li>
<li>glsl</li>
<li>gml</li>
<li>gnuplot</li>
<li>groovy</li>
<li>haskell</li>
<li>hq9plus</li>
<li>html4strict</li>
<li>idl</li>
<li>ini</li>
<li>inno</li>
<li>intercal</li>
<li>io</li>
<li>java</li>
<li>java5</li>
<li>javascript</li>
<li>kixtart</li>
<li>klonec</li>
<li>klonecpp</li>
<li>latex</li>
<li>lisp</li>
<li>locobasic</li>
<li>lolcode</li>
<li>lotusformulas</li>
<li>lotusscript</li>
<li>lscript</li>
<li>lsl2</li>
<li>lua</li>
<li>m68k</li>
<li>make</li>
<li>matlab</li>
<li>mirc</li>
<li>modula3</li>
<li>mpasm</li>
<li>mxml</li>
<li>mysql</li>
<li>nsis</li>
<li>oberon2</li>
<li>objc</li>
<li>ocaml-brief</li>
<li>ocaml</li>
<li>oobas</li>
<li>oracle11</li>
<li>oracle8</li>
<li>pascal</li>
<li>per</li>
<li>perl</li>
<li>php-brief</li>
<li>php</li>
<li>pic16</li>
<li>pixelbender</li>
<li>plsql</li>
<li>povray</li>
<li>powershell</li>
<li>progress</li>
<li>prolog</li>
<li>properties</li>
<li>providex</li>
<li>python</li>
<li>qbasic</li>
<li>rails</li>
<li>rebol</li>
<li>reg</li>
<li>robot</li>
<li>ruby</li>
<li>sas</li>
<li>scala</li>
<li>scheme</li>
<li>scilab</li>
<li>sdlbasic,</li>
<li>smalltalk</li>
<li>smarty</li>
<li>sql</li>
<li>tcl</li>
<li>teraterm</li>
<li>text</li>
<li>thinbasic</li>
<li>tsql</li>
<li>typoscript</li>
<li>vb</li>
<li>vbnet</li>
<li>verilog</li>
<li>vhdl</li>
<li>vim</li>
<li>visualfoxpro</li>
<li>visualprolog</li>
<li>whitespace</li>
<li>whois</li>
<li>winbatch</li>
<li>xml</li>
<li>xorg_conf, xpp</li>
<li>yaml</li>
<li>z80</li>
</ul>
<p>An impressive list which should be handy next time I post anything.</p>

]]></content:encoded>
			<wfw:commentRss>http://www.samanthahalfon.net/worldgoneweb/2010/codecolorer-list-of-supported-languages/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Enable Full Text Search with MySQL</title>
		<link>http://www.samanthahalfon.net/worldgoneweb/2010/enable-full-text-search-with-mysql/</link>
		<comments>http://www.samanthahalfon.net/worldgoneweb/2010/enable-full-text-search-with-mysql/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 13:55:24 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[full text]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://www.samanthahalfon.net/worldgoneweb/?p=293</guid>
		<description><![CDATA[
Before you jump and get a real Search Engine for your website, you might try the MySQL full text search feature.

It is incredibly easy to set up. All you need to do is setup the table and fields to be searchable as full text with the following command:
1ALTER TABLE Table_Name ADD FULLTEXT&#40;field1, field2&#41;;
Then, simply write [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em;"><script type="text/javascript" src="http://button.topsy.com/widget/retweet-big?url=http://www.samanthahalfon.net/worldgoneweb/2010/enable-full-text-search-with-mysql/&amp;shorturl=http://bit.ly/b1j1pU&amp;title=Enable+Full+Text+Search+with+MySQL&amp;theme=blue&amp;nick=samo9789&amp;order=count,retweet,badge&amp;txt_tweet=tweet&amp;txt_retweet=retweet"></script></div><p>Before you jump and get a real Search Engine for your website, you might try the MySQL full text search feature.</p>
<p style="text-align: center;"><img class="size-full wp-image-299 aligncenter" title="world_wide_web" src="http://www.samanthahalfon.net/worldgoneweb/wp-content/uploads/2010/02/world_wide_web.jpg" alt="" width="300" height="200" /></p>
<p>It is incredibly easy to set up. All you need to do is setup the table and fields to be searchable as full text with the following command:</p>
<div class="codecolorer-container sql dawn" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="sql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #993333; font-weight: bold;">ALTER</span> <span style="color: #993333; font-weight: bold;">TABLE</span> Table_Name <span style="color: #993333; font-weight: bold;">ADD</span> FULLTEXT<span style="color: #66cc66;">&#40;</span>field1<span style="color: #66cc66;">,</span> field2<span style="color: #66cc66;">&#41;</span>;</div></td></tr></tbody></table></div>
<p>Then, simply write a query using &#8220;match&#8221; to run your searches:</p>
<div class="codecolorer-container sql dawn" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="sql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #993333; font-weight: bold;">SELECT</span> <span style="color: #66cc66;">*</span> <span style="color: #993333; font-weight: bold;">FROM</span> Table_Name <span style="color: #993333; font-weight: bold;">WHERE</span> MATCH <span style="color: #66cc66;">&#40;</span>field1<span style="color: #66cc66;">,</span> field2<span style="color: #66cc66;">&#41;</span> AGAINST <span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">'search_query'</span><span style="color: #66cc66;">&#41;</span></div></td></tr></tbody></table></div>
<p>Happy Valentine&#8217;s Day</p>

]]></content:encoded>
			<wfw:commentRss>http://www.samanthahalfon.net/worldgoneweb/2010/enable-full-text-search-with-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up Code Igniter</title>
		<link>http://www.samanthahalfon.net/worldgoneweb/2010/setting-up-code-igniter/</link>
		<comments>http://www.samanthahalfon.net/worldgoneweb/2010/setting-up-code-igniter/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 08:40:33 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[virtual host]]></category>

		<guid isPermaLink="false">http://www.samanthahalfon.net/worldgoneweb/?p=286</guid>
		<description><![CDATA[
A few months ago, we jumped into Teeorama, a PHP based online tee-shirt store front end for Spreadshirt. We finally completed the project and we&#8217;re planning on opening it to the public tomorrow. By the way, if you feel you could use a new Geek shirt, please head over to teeorama.com before reading on&#8230;

When I [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em;"><script type="text/javascript" src="http://button.topsy.com/widget/retweet-big?url=http://www.samanthahalfon.net/worldgoneweb/2010/setting-up-code-igniter/&amp;shorturl=http://bit.ly/9bmTvI&amp;title=Setting+up+Code+Igniter&amp;theme=blue&amp;nick=samo9789&amp;order=count,retweet,badge&amp;txt_tweet=tweet&amp;txt_retweet=retweet"></script></div><p>A few months ago, we jumped into <a href="http://www.teeorama.com" target="_blank">Teeorama</a>, a PHP based online tee-shirt store front end for <a href="http://www.spreadshirt.net" target="_blank">Spreadshirt</a>. We finally completed the project and we&#8217;re planning on opening it to the public tomorrow. By the way, if you feel you could use a new Geek shirt, please head over to <a href="http://www.teeorama.com" target="_blank">teeorama.com</a> before reading on&#8230;</p>
<p style="text-align: center;"><a href="http://www.teeorama.com"><img class="aligncenter size-full wp-image-289" title="Teeorama" src="http://www.samanthahalfon.net/worldgoneweb/wp-content/uploads/2010/02/Screen-shot-2010-02-13-at-9.45.31-AM.png" alt="" width="413" height="215" /></a></p>
<p>When I started the development, I decided to use both a PHP and a Javascript framework I didn&#8217;t know. I had two reasons for doing that:</p>
<ul>
<li>It&#8217;s always interesting to play with new code. You get to see how other people/framework solved common problems, how some libraries make this or that easier  to use for the developer. You also sometimes realize some other things are carried out better in the framework you are used to. Either way, it is a good learning experience.</li>
<li>Also, I wanted to stay away from the stack we use at work to not be tempted and not be able to just copy over bits of our blueKiwi framework into my code</li>
</ul>
<p>So, I picked <a href="http://codeigniter.com/" target="_blank">CodeIgniter</a> and <a href="http://jquery.com/" target="_blank">jQuery</a> to build my website. In the end, I am very pleased with the experience of working with these two tools. CodeIgniter is exactly what it claims to be: a very light but powerful framework that does not try to command the way you work. Of course, jQuery is just as powerful as its reputation. It&#8217;s incredibly easy to get used to and I haven&#8217;t found anything it couldn&#8217;t do.</p>
<p style="text-align: center;"><a href="http://www.codeigniter.com"><img class="aligncenter size-full wp-image-288" title="Screen shot 2010-02-13 at 9.44.03 AM" src="http://www.samanthahalfon.net/worldgoneweb/wp-content/uploads/2010/02/Screen-shot-2010-02-13-at-9.44.03-AM.png" alt="" width="438" height="118" /></a></p>
<p>Anyway, this post is about setting up Code Igniter. There is a Code Igniter <a href="http://codeigniter.com/downloads/" target="_blank">user_guide</a> (included in the downloaded zip file) to do just that and it would take you about two seconds to get going. The thing is, I did not like the way Code Igniter was laid out in my folder. I wanted to be able to place the framework in a library folder within my application folder and make my web folder (containing the images, javascript and css files) the document root therefore keeping my application folder out of exposure to the Web.</p>
<p>This is also possible though it does involve some minor tweaking of CodeIgniter base code.</p>
<p>First, here is my chosen folder layout</p>
<p style="text-align: center;"><img class="aligncenter" style="max-width: 800px;" src="http://www.samanthahalfon.net/worldgoneweb/wp-content/uploads/2010/02/Screen-shot-2010-02-13-at-9.25.18-AM.png" alt="" width="348" height="603" /></p>
<p>Second, as I said, I made the web folder the target of my Apache virtual host.<br />
Here is my virtual host for this application</p>
<div class="codecolorer-container apache dawn" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br /></div></td><td><div class="apache codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #00007f;">ServerAdmin</span> your_email<br />
<span style="color: #00007f;">ServerName</span> project_domain<br />
<span style="color: #00007f;">AddDefaultCharset</span> UTF-8<br />
<span style="color: #00007f;">DocumentRoot</span> /var/www/project/web<br />
<br />
<span style="color: #00007f;">RewriteEngine</span> <span style="color: #0000ff;">On</span><br />
<span style="color: #00007f;">RewriteCond</span> $1 !^/?(index\.php|test|images|web|js|css)<br />
<span style="color: #00007f;">RewriteRule</span> ^(.*)$ /index.php/$<span style="color: #ff0000;">1</span> [L]</div></td></tr></tbody></table></div>
<p>Finally, in order for all this to work, you need to tweak a couple of CodeIgniter files</p>
<p>define the system and application folders paths as follow in index.php:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000088;">$docRootPath</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/dirname"><span style="color: #990000;">dirname</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'DOCUMENT_ROOT'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$system_folder</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$docRootPath</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;/application/libraries/codeigniter&quot;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$application_folder</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$docRootPath</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;/application&quot;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>Also, modify the CodeIgniter.php file at the bottom of index.php to:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #b1b100;">require_once</span> BASEPATH<span style="color: #339933;">.</span><span style="color: #0000ff;">'CodeIgniter'</span><span style="color: #339933;">.</span>EXT<span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>Finally, edit CodeIgniter.php in order to replace all occurrences of &#8220;codeigniter/&#8221; by &#8220;&#8221; (nothing)</p>
<p>You should be setup. Happy coding!</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=7b05c7fd-fca7-88bc-bd59-fc928be8bb46" alt="" /></div>

]]></content:encoded>
			<wfw:commentRss>http://www.samanthahalfon.net/worldgoneweb/2010/setting-up-code-igniter/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Code Syntax Highlighter for Open Office</title>
		<link>http://www.samanthahalfon.net/worldgoneweb/2010/code-syntax-highlighter-for-open-office/</link>
		<comments>http://www.samanthahalfon.net/worldgoneweb/2010/code-syntax-highlighter-for-open-office/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 22:40:48 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Real World]]></category>
		<category><![CDATA[code syntax highlighting]]></category>
		<category><![CDATA[OpenOffice.org]]></category>

		<guid isPermaLink="false">http://www.samanthahalfon.net/worldgoneweb/?p=271</guid>
		<description><![CDATA[
Today I tried a new task at work. Instead of coding, I wrote about coding. This is a scary thing to attempt, especially if your writing is aimed for people from the other side of the wall. Those who look with suspicion at your screen when all you have showing is a dark console window, [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em;"><script type="text/javascript" src="http://button.topsy.com/widget/retweet-big?url=http://www.samanthahalfon.net/worldgoneweb/2010/code-syntax-highlighter-for-open-office/&amp;shorturl=http://bit.ly/c59qIb&amp;title=Code+Syntax+Highlighter+for+Open+Office&amp;theme=blue&amp;nick=samo9789&amp;order=count,retweet,badge&amp;txt_tweet=tweet&amp;txt_retweet=retweet"></script></div><p>Today I tried a new task at work. Instead of coding, I wrote about coding. This is a scary thing to attempt, especially if your writing is aimed for people from the other side of the wall. Those who look with suspicion at your screen when all you have showing is a dark console window, those who do not understand how in the world a semi-colon could mean so much. The worse thing is, when we share what we do with these people, we are not really giving them a chance to realize how clear and simple it all is. Send a php file to a non developer, he&#8217;ll open it with Notepad (if not Microsoft Office) and immediately close it thinking it&#8217;s a virus. That&#8217;s why I decided to add some syntax highlighting to my API documentation I was writing with Open Office. Maybe it can look appealing to &#8220;real&#8221; people, too.</p>
<p>By the way, I must say I am very impressed by the evolution Open Office.org shows now in it&#8217;s 3.1 installment. I used it since version 1.0 and regularely had to go back to my student edition of Microsoft Office to complete my thesis and reports for school. I do not feel that need anymore. OOo just became stable and powerful enough.</p>
<p>So, anyway, there is an OpenOffice.org extension to do just that, code syntax highlighting. It is called <a title="COOoder" href="http://extensions.services.openoffice.org/project/coooder" target="_blank">COOoder</a></p>
<p>Download and open it with OpenOffice then confirm the installation process and validate the User Agreements. Finally, restart OpenOffice.</p>
<p>Now you can create a document (with Writer) and start pasting your code. In the toolbar, you should see the COOoder button. Select your code and click the button. Pick your language from the drop down list and click &#8220;OK&#8221;.</p>
<p style="text-align: center;"><a href="http://www.samanthahalfon.net/worldgoneweb/wp-content/uploads/2010/02/Screen-shot-2010-02-11-at-11.34.59-PM.png"><img class="aligncenter size-full wp-image-276" title="COOoder in OOo Writer" src="http://www.samanthahalfon.net/worldgoneweb/wp-content/uploads/2010/02/Screen-shot-2010-02-11-at-11.34.59-PM.png" alt="" width="386" height="257" /></a></p>
<p>Awesome! Now your non-developing audience can enjoy neat looking geek stuff.</p>

]]></content:encoded>
			<wfw:commentRss>http://www.samanthahalfon.net/worldgoneweb/2010/code-syntax-highlighter-for-open-office/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Where are your users from?</title>
		<link>http://www.samanthahalfon.net/worldgoneweb/2010/where-are-your-users-from/</link>
		<comments>http://www.samanthahalfon.net/worldgoneweb/2010/where-are-your-users-from/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 22:27:56 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.samanthahalfon.net/worldgoneweb/?p=225</guid>
		<description><![CDATA[
If you ever wonder where your readers are from, if you ever need to adjust your application to the origins of its users; you can determine the geographic location of a connection by using an IP to Country table.
I should start by saying that I do not always like the way websites use this feature. [...]]]></description>
			<content:encoded><![CDATA[
<div class="topsy_widget_data topsy_theme_blue" style="float: right;margin-left: 0.75em;"><script type="text/javascript" src="http://button.topsy.com/widget/retweet-big?url=http://www.samanthahalfon.net/worldgoneweb/2010/where-are-your-users-from/&amp;title=Where+are+your+users+from%3F&amp;theme=blue&amp;nick=samo9789&amp;order=count,retweet,badge&amp;txt_tweet=tweet&amp;txt_retweet=retweet"></script></div><p>If you ever wonder where your readers are from, if you ever need to adjust your application to the origins of its users; you can determine the geographic location of a connection by using an IP to Country table.</p>
<p>I should start by saying that I do not always like the way websites use this feature. As much as I appreciate, let&#8217;s say, Yamaha, to redirect me from www.yamaha.com to fr.yamaha.com based on my location ; I can not stand for Google or Wikipedia to assume that I either speak French or intend to search French speaking contents.</p>
<p>Another thing I absolutely can not stand is of Skype (for example) to prompt me to download the French version of its application just because I am browsing the Web from France. I can not tolerate any French speaking applications to be installed on my computer. Actually, Mac OS X is such a treat on that point because I can have a French bought CD of Snow Leopard and still install my system in English. All the OEM Windows systems I purchased in my country of residence were bound to remain in (poorly-translated) French. I actually would always keep my license number handy but use a pirated English (but otherwise equivalent) version just so that my Start button would actually spell &#8216;Start&#8217;.</p>
<p>Anyway, the IP to Country determination can still come in handy and here&#8217;s how I made it work for me (using PHP/MySQL). I am aware that it is possible to do the www.yamaha.com to fr.yamaha.com redirection simply using geolocated aliases. Hosting providers such as OVH usually provide this functionality.</p>
<ol>
<li>Download the IP to Country.csv database (and update it there after) from <a title="Ip to Country" href="http://ip-to-country.webhosting.info/" target="_blank">http://ip-to-country.webhosting.info/</a></li>
<li>Create a table to hold the data</li>
<li>Import the data from the csv file into that table</li>
</ol>
<div class="codecolorer-container sql dawn" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="sql codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">mysql<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold;">CREATE</span> <span style="color: #993333; font-weight: bold;">TABLE</span> iptocountry <span style="color: #66cc66;">&#40;</span>ip_from int<span style="color: #66cc66;">&#40;</span>4<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> ip_to int<span style="color: #66cc66;">&#40;</span>4<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> country_code2 char<span style="color: #66cc66;">&#40;</span>2<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> country_code3 char<span style="color: #66cc66;">&#40;</span>3<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">,</span> country_name varchar<span style="color: #66cc66;">&#40;</span>50<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;<br />
mysql<span style="color: #66cc66;">&gt;</span> <span style="color: #993333; font-weight: bold;">LOAD</span> <span style="color: #993333; font-weight: bold;">DATA</span> <span style="color: #993333; font-weight: bold;">INFILE</span> <span style="color: #ff0000;">'ip-to-country.csv'</span> <span style="color: #993333; font-weight: bold;">INTO</span> <span style="color: #993333; font-weight: bold;">TABLE</span> iptocountry <span style="color: #993333; font-weight: bold;">FIELDS</span> terminated <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">','</span> <span style="color: #993333; font-weight: bold;">ENCLOSED</span> <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'&quot;'</span> <span style="color: #993333; font-weight: bold;">LINES</span> terminated <span style="color: #993333; font-weight: bold;">BY</span> <span style="color: #ff0000;">'<span style="color: #000099; font-weight: bold;">\n</span>'</span>;</div></td></tr></tbody></table></div>
<p>Then, from your PHP code, you can get the country code for example, using the code below</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">function</span> _ipAddressToIpValue<span style="color: #009900;">&#40;</span><span style="color: #000088;">$ip</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$ip</span> <span style="color: #339933;">==</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$ips</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/split"><span style="color: #990000;">split</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;\.&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$ip</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #b1b100;">return</span> <span style="color: #000088;">$ips</span><span style="color: #009900;">&#91;</span>3<span style="color: #009900;">&#93;</span> <span style="color: #339933;">+</span> <span style="color: #000088;">$ips</span><span style="color: #009900;">&#91;</span>2<span style="color: #009900;">&#93;</span> <span style="color: #339933;">*</span> 256 <span style="color: #339933;">+</span> <span style="color: #000088;">$ips</span><span style="color: #009900;">&#91;</span>1<span style="color: #009900;">&#93;</span> <span style="color: #339933;">*</span> 256 <span style="color: #339933;">*</span> 256 <span style="color: #339933;">+</span> <span style="color: #000088;">$ips</span><span style="color: #009900;">&#91;</span>0<span style="color: #009900;">&#93;</span> <span style="color: #339933;">*</span> 256 <span style="color: #339933;">*</span> 256 <span style="color: #339933;">*</span> <span style="color: #cc66cc;">256</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #000088;">$ipValue</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>_ipAddressToIpValue<span style="color: #009900;">&#40;</span><span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;REMOTE_ADDR&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$queryResults</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$this</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>db<span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>query<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;SELECT country_name FROM iptocountry WHERE &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$ipValue</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; BETWEEN ip_from AND ip_to&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$res</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$queryResults</span><span style="color: #339933;">-&amp;</span>gt<span style="color: #339933;">;</span>result_array<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><a href="http://www.php.net/count"><span style="color: #990000;">count</span></a><span style="color: #009900;">&#40;</span><span style="color: #000088;">$res</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000088;">$countryCode</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$res</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;country_name&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>The code above is using Code Igniter to query the database. I suppose it is self explanatory enough to be transposed to any other DAO you might be using.</p>

]]></content:encoded>
			<wfw:commentRss>http://www.samanthahalfon.net/worldgoneweb/2010/where-are-your-users-from/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
