<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>World Gone Web</title>
	
	<link>http://www.samanthahalfon.net/worldgoneweb</link>
	<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>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/WorldGoneWeb" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="worldgoneweb" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><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[
<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 “Tumblelog”</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[
<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[
<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[
<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>Linking to Twitter and Facebook from a website</title>
		<link>http://www.samanthahalfon.net/worldgoneweb/2010/linking-to-twitter-and-facebook-from-a-website/</link>
		<comments>http://www.samanthahalfon.net/worldgoneweb/2010/linking-to-twitter-and-facebook-from-a-website/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 22:07:48 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Teeorama]]></category>
		<category><![CDATA[bitly]]></category>
		<category><![CDATA[colorbox]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[lightbox]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://www.samanthahalfon.net/worldgoneweb/?p=313</guid>
		<description><![CDATA[

This week I&#8217;ve worked on a social lightbox for Teeorama allowing our visitors to tweet or write on their Facebook walls from our tee-shirt shop.The lightbox itself is built using ColorBox, a powerful and customizable lightbox library built on JQuery (MIT License). The Twitter tool is fairly easy to setup, I used bit.ly to generate [...]]]></description>
			<content:encoded><![CDATA[
<p><img src="http://www.samanthahalfon.net/worldgoneweb/wp-content/uploads/2010/02/Screen-shot-2010-02-24-at-10.40.48-PM.png" alt="" title="Teeorama Social Lightbox" width="400" height="240" class="aligncenter size-full wp-image-314" /></p>
<p><img src="http://www.samanthahalfon.net/worldgoneweb/wp-content/uploads/2010/02/Screen-shot-2010-02-24-at-10.41.05-PM.png" alt="" title="Share on Facebook/Twitter" width="53" height="218" class="alignleft size-full wp-image-315" />This week I&#8217;ve worked on a social lightbox for <a href="http://teeorama.com/">Teeorama</a> allowing our visitors to <a href="http://www.twitter.com/">tweet</a> or write on their <a href="http://www.facebook.com/">Facebook</a> walls from <a href="http://teeorama.com/">our tee-shirt shop</a>.The lightbox itself is built using <a href="http://colorpowered.com/colorbox/">ColorBox</a>, a powerful and customizable lightbox library built on <a href="http://jquery.com/">JQuery</a> (MIT License). The <a href="http://www.twitter.com/">Twitter</a> tool is fairly easy to setup, I used <a href="http://bit.ly/">bit.ly</a> to generate the shortened URL of the current page and placed it, along with a default content, in the text box. When the user clicks on submit, he or she is redirected to twitter. The update box contains what was typed in the teeorama box and one click on the update button is enough to validate the tweet.The follow button is even simpler, it is nothing but a link to <a href="https://twitter.com/teeorama">teeorama&#8217;s twitter account</a>.<a href="http://www.facebook.com/">Facebook</a> is both more powerful (you can publish to your wall without leaving the teeorama page) and a bit trickier to setup.First, you need to head over to developers.facebook.com/setup.php to register your site as a Connect enabled website. Upload the <em>xd_receiver.htm</em> file to your server and validate. You now have access to your <a href="http://www.facebook.com/developers/apps.php">Facebook Connect</a> Tools, API documentation and sandbox as well as to a gallery of widgets or code samples you can use. I chose to use the <em>Comment Box</em>.</p>
<p><img src="http://www.samanthahalfon.net/worldgoneweb/wp-content/uploads/2010/02/Screen-shot-2010-02-24-at-10.39.40-PM.png" alt="" title="Facebook Connect Tools" width="400" height="194" class="alignleft size-full wp-image-317" /></p>

]]></content:encoded>
			<wfw:commentRss>http://www.samanthahalfon.net/worldgoneweb/2010/linking-to-twitter-and-facebook-from-a-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Zend Server Community Edition for Mac OS X – 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[
<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>Where are your users from, part 2</title>
		<link>http://www.samanthahalfon.net/worldgoneweb/2010/where-are-your-users-from-part-2/</link>
		<comments>http://www.samanthahalfon.net/worldgoneweb/2010/where-are-your-users-from-part-2/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 17:51:39 +0000</pubDate>
		<dc:creator>shalfon</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[GeoIP]]></category>

		<guid isPermaLink="false">http://www.samanthahalfon.net/worldgoneweb/?p=309</guid>
		<description><![CDATA[

Recently, I wrote about geolocalisation of your users/visitors based on the IP to Country table. After using it for a couple of months, I found it painful to have to regularly update the table (even if some people came up with an automatic work around based on PERL scripts for example).
So, I decided to find another way [...]]]></description>
			<content:encoded><![CDATA[
<p><img class="aligncenter size-full wp-image-310" title="the_world" src="http://www.samanthahalfon.net/worldgoneweb/wp-content/uploads/2010/02/the_world.jpg" alt="" width="300" height="139" /></p>
<p>Recently, I wrote about geolocalisation of your users/visitors based on the IP to Country table. After using it for a couple of months, I found it painful to have to regularly update the table (even if some people came up with an <a title="IP to Country" href="http://www.celtnet.org.uk/info/IP-to-country-converter.php" target="_blank">automatic work around based on PERL scripts</a> for example).</p>
<p>So, I decided to find another way to solve the problem and gave the <a href="http://www.maxmind.com/app/mod_geoip" target="_blank">GeoIP Apache module by MaxMind</a> a try. The installation is as simple as can be:</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 /></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;">aptitude</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libapache2-mod-geoip<br />
a2enmod geoip<br />
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 restart</div></td></tr></tbody></table></div>
<p>Once the module is setup, you can use the following PHP code to obtain the Country Code (2 letters)</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: #000088;">$countryCode</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$_SERVER</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;GEOIP_COUNTRY_CODE&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>Finally, here is a <a href="http://www.worldatlas.com/aatlas/ctycodes.htm" target="_blank">list of country codes and the associated country names</a>.</p>
<p>If yo</p>
<p>That&#8217;s it, quick and simple.</p>

]]></content:encoded>
			<wfw:commentRss>http://www.samanthahalfon.net/worldgoneweb/2010/where-are-your-users-from-part-2/feed/</wfw:commentRss>
		<slash:comments>1</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[
<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[
<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[
<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>
	</channel>
</rss>
