<?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>SydneyFX - A Web Designer Blog &#187; Programming</title>
	<atom:link href="http://www.sydneyfx.com.au/wordpress/tag/programming/feed" rel="self" type="application/rss+xml" />
	<link>http://www.sydneyfx.com.au/wordpress</link>
	<description>Ramblings of a Freelance Web Designer &#38; Developer</description>
	<lastBuildDate>Mon, 19 Jul 2010 08:58:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Aptana Web Development IDE</title>
		<link>http://www.sydneyfx.com.au/wordpress/aptana-web-development-ide/134</link>
		<comments>http://www.sydneyfx.com.au/wordpress/aptana-web-development-ide/134#comments</comments>
		<pubDate>Mon, 09 Jul 2007 06:11:43 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[Cool Tools]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Aptana]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.sydneyfx.com.au/wordpress/?p=134</guid>
		<description><![CDATA[If your like me you just can&#8217;t help playing with new technologies. Since I started working with the web it has been a whirlwind ride with so much happening that it can be mind blowing. Just when you think you&#8217;ve &#8230; <a href="http://www.sydneyfx.com.au/wordpress/aptana-web-development-ide/134">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If your like me you just can&#8217;t help playing with new technologies.  Since I started working with the web it has been a whirlwind ride with so much happening that it can be mind blowing.  Just when you think you&#8217;ve seen it all, some new buzz pops up.  The web is a truly dynamic medium that is constantly evolving and trying to keep up with all the new technologies makes it that much more interesting.</p>
<p>Sydney FX started with <a href="http://www.sydneyfx.com.au/web-design-portfolio.html">web design back in 2004</a> but these days I spend more time studying new web technologies like <a href="http://www.rubyonrails.org" target="_blank">ruby on rails</a>, <a href="http://www.adobe.com/products/flex/" target="_blank">flex</a> and the <a href="http://opensource.adobe.com/adobe_apollo.html" target="_blank">new AIR from Adobe</a> and sometimes you need costly editors to assist you in speeding up your development time.</p>
<p>Well now there is an IDE that is multi platform so no matter if your working on Windows, Apple, or Linux, there is a release just for you.</p>
<p><a href="http://www.sydneyfx.com.au/wordpress/wp-content/2007/07/aptana.jpg" title="Aptana using Rails Plugin"></a></p>
<p style="text-align: center"><a href="http://www.sydneyfx.com.au/wordpress/wp-content/2007/07/aptana.jpg" title="Aptana using Rails Plugin"><img src="http://www.sydneyfx.com.au/wordpress/wp-content/2007/07/aptana.jpg" alt="Aptana using Rails Plugin" /></a></p>
<p>Now I haven&#8217;t been using Aptana for very long but I have now installed it on both my Windows and Linux platforms mainly for Rails development because there are very few good editors that meet the needs of rails programmers straight out of the box.  Most mac users including myself use the Textmate however Aptana is great if you can&#8217;t spare the money for a mac or need an alternative editor when you don&#8217;t have a mac handy or don&#8217;t want a mac altogether.</p>
<p>I&#8217;ve seen a number of custom setups for text editors on linux which look great however you&#8217;ll need to know how to get the editor to suit your needs.  If you don&#8217;t have that knowledge then check out Aptana.  It&#8217;s really cool, and can be used for all the latest web technology programming like Ajax, HTML, AIR, and even iPhone.</p>
<p>Aptana is an open source project founded by Paul Colton who has been involved in a number of successful technologies in previous ventures.  Check out more of <a href="http://www.aptana.com" target="_blank">Aptana at the official website</a>.</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Faptana-web-development-ide%2F134&amp;title=Aptana+Web+Development+IDE" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Faptana-web-development-ide%2F134&amp;title=Aptana+Web+Development+IDE" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Faptana-web-development-ide%2F134&amp;title=Aptana+Web+Development+IDE" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Faptana-web-development-ide%2F134&amp;title=Aptana+Web+Development+IDE" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Faptana-web-development-ide%2F134&amp;title=Aptana+Web+Development+IDE', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Faptana-web-development-ide%2F134" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Faptana-web-development-ide%2F134" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Faptana-web-development-ide%2F134&amp;title=Aptana+Web+Development+IDE" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Faptana-web-development-ide%2F134&amp;title=Aptana+Web+Development+IDE" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.sydneyfx.com.au/wordpress/aptana-web-development-ide/134/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby on Rails Coding in Notepad++ for Windows</title>
		<link>http://www.sydneyfx.com.au/wordpress/ruby-on-rails-coding-in-notepad/77</link>
		<comments>http://www.sydneyfx.com.au/wordpress/ruby-on-rails-coding-in-notepad/77#comments</comments>
		<pubDate>Fri, 15 Dec 2006 13:11:50 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Robert Mirabito]]></category>
		<category><![CDATA[Notepad ++]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.sydneyfx.com.au/wordpress/?p=77</guid>
		<description><![CDATA[As a bit of a new comer to Rails development and an avid fan of the Apple Mac I have settled on using Textmate as my editor of choice when developing for Rails. But what about when you are developing &#8230; <a href="http://www.sydneyfx.com.au/wordpress/ruby-on-rails-coding-in-notepad/77">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As a bit of a new comer to Rails development and an avid fan of the Apple Mac I have settled on using Textmate as my editor of choice when developing for Rails.</p>
<p>But what about when you are developing on Microsoft&#8217;s Windows platform.  Well after playing around with a few editors I found <a href="http://notepad-plus.sourceforge.net/uk/site.htm" target="_blank">Notepad++</a> which has some remarkable similarity&#8217;s to Textmate for Apple.</p>
<p>The best part about Notepad++ is it&#8217;s free and it&#8217;s also open source, however you can give donations as it started and developed by Don Ho and a small group of developers.  I didn&#8217;t spend a lot of time using Notepad++ mainly because I spend most of my time on a Mac however I did enjoy using it as a Ruby on Rails editor for Windows.  The only thing I didn&#8217;t see was a project window which you could import your Rails project framework into for easy access.</p>
<p>Notepad++ has full code highlighting, use defined language including Ruby, zoom in and out, and alot more.</p>
<p>A great editor and well worth further investigation.</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Fruby-on-rails-coding-in-notepad%2F77&amp;title=Ruby+on+Rails+Coding+in+Notepad%2B%2B+for+Windows" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Fruby-on-rails-coding-in-notepad%2F77&amp;title=Ruby+on+Rails+Coding+in+Notepad%2B%2B+for+Windows" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Fruby-on-rails-coding-in-notepad%2F77&amp;title=Ruby+on+Rails+Coding+in+Notepad%2B%2B+for+Windows" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Fruby-on-rails-coding-in-notepad%2F77&amp;title=Ruby+on+Rails+Coding+in+Notepad%2B%2B+for+Windows" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Fruby-on-rails-coding-in-notepad%2F77&amp;title=Ruby+on+Rails+Coding+in+Notepad%2B%2B+for+Windows', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Fruby-on-rails-coding-in-notepad%2F77" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Fruby-on-rails-coding-in-notepad%2F77" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Fruby-on-rails-coding-in-notepad%2F77&amp;title=Ruby+on+Rails+Coding+in+Notepad%2B%2B+for+Windows" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Fruby-on-rails-coding-in-notepad%2F77&amp;title=Ruby+on+Rails+Coding+in+Notepad%2B%2B+for+Windows" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.sydneyfx.com.au/wordpress/ruby-on-rails-coding-in-notepad/77/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>TextMate Editor for Mac &#8211; This is Awesome.</title>
		<link>http://www.sydneyfx.com.au/wordpress/textmate-editor-for-mac-this-is-awesome/60</link>
		<comments>http://www.sydneyfx.com.au/wordpress/textmate-editor-for-mac-this-is-awesome/60#comments</comments>
		<pubDate>Sun, 15 Oct 2006 11:13:02 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[Robert Mirabito]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Textmate]]></category>

		<guid isPermaLink="false">http://www.sydneyfx.com.au/wordpress/?p=60</guid>
		<description><![CDATA[While I ventured into my Ruby on Rails experience, I found this great text editor called Textmate that is recommended by the Rails team for Mac users. Unfortunately there isn&#8217;t a version for Windows so you&#8217;ll have to convert to &#8230; <a href="http://www.sydneyfx.com.au/wordpress/textmate-editor-for-mac-this-is-awesome/60">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.sydneyfx.com.au/images/textmate.gif" /></p>
<p>While I ventured into my Ruby on Rails experience, I found this great text editor called Textmate that is recommended by the Rails team for Mac users.  Unfortunately there isn&#8217;t a version for Windows so you&#8217;ll have to convert to Mac if you want it.</p>
<p>Personally I&#8217;ve never really been a big fan of text editors for any serious work and this has mainly been because they have never had much functionality up until now.  Textmate is a very cool editor having the ability to provide code structure, highlighting, code block collapsing and so much more.</p>
<p><img src="http://www.sydneyfx.com.au/images/textmateOne.jpg" /></p>
<p>You can code HTML, Applescript, Javascript, Ruby, XML and more.  This is one texteditor that is full of surprises with plenty of options for even the most hardcore coding junkie.</p>
<p><img src="http://www.sydneyfx.com.au/images/textmateTwo.jpg" /></p>
<p>Once you start using it you&#8217;ll find it very addictive thinking hey, I can use Textmate to code this, and I can use textmate to code that.  So crunch time&#8230; how much is it? Well it only costs around AUS$70 which isn&#8217;t alot for such an extensive and well designed texteditor that is more than capable of handling all your coding duties and more.  If your not sure you&#8217;ll like it, you can download the trial version for a limited time before you decide to hand over any cash.</p>
<p>Find out more about Textmate from <a href="http://www.macromates.com">www.</a><font size="-1"><span class="a"><a href="http://www.macromates.com">macromates.com</a>.</span></font></p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Ftextmate-editor-for-mac-this-is-awesome%2F60&amp;title=TextMate+Editor+for+Mac+%26%238211%3B+This+is+Awesome." title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Ftextmate-editor-for-mac-this-is-awesome%2F60&amp;title=TextMate+Editor+for+Mac+%26%238211%3B+This+is+Awesome." title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Ftextmate-editor-for-mac-this-is-awesome%2F60&amp;title=TextMate+Editor+for+Mac+%26%238211%3B+This+is+Awesome." title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Ftextmate-editor-for-mac-this-is-awesome%2F60&amp;title=TextMate+Editor+for+Mac+%26%238211%3B+This+is+Awesome." title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Ftextmate-editor-for-mac-this-is-awesome%2F60&amp;title=TextMate+Editor+for+Mac+%26%238211%3B+This+is+Awesome.', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Ftextmate-editor-for-mac-this-is-awesome%2F60" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Ftextmate-editor-for-mac-this-is-awesome%2F60" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Ftextmate-editor-for-mac-this-is-awesome%2F60&amp;title=TextMate+Editor+for+Mac+%26%238211%3B+This+is+Awesome." title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Ftextmate-editor-for-mac-this-is-awesome%2F60&amp;title=TextMate+Editor+for+Mac+%26%238211%3B+This+is+Awesome." title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.sydneyfx.com.au/wordpress/textmate-editor-for-mac-this-is-awesome/60/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Run Ruby on Rails on Mac OS X in Minutes with Locomotive</title>
		<link>http://www.sydneyfx.com.au/wordpress/run-ruby-on-rails-on-mac-os-x-in-minutes-with-locomotive/58</link>
		<comments>http://www.sydneyfx.com.au/wordpress/run-ruby-on-rails-on-mac-os-x-in-minutes-with-locomotive/58#comments</comments>
		<pubDate>Fri, 13 Oct 2006 03:02:38 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Robert Mirabito]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Locomotive]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.sydneyfx.com.au/wordpress/?p=58</guid>
		<description><![CDATA[After contemplating modifying my Mac to run Ruby on Rails I decided against any system modifications. The main reason is any documentation on the web regarding installing Rails on the Mac was a little too out dated for my liking &#8230; <a href="http://www.sydneyfx.com.au/wordpress/run-ruby-on-rails-on-mac-os-x-in-minutes-with-locomotive/58">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://locomotive.raaum.org/" target="_blank"><img src="http://www.sydneyfx.com.au/images/locomotive.gif" style="border: 0px none ; padding: 5px; float: right" /></a></p>
<p>After contemplating modifying my Mac to run Ruby on Rails I decided against any system modifications.  The main reason is any documentation on the web regarding installing Rails on the Mac was a little too out dated for my liking and very little support.</p>
<p>So what was I to do?  Well I decided that using Locomotive from <a href="http://locomotive.raaum.org/">http://locomotive.raaum.org/</a> was going to be the safest and easiest option and I wasn&#8217;t wrong.  Installing Locomotive was super easy and all I needed to do was download it, mount the dmg file and drag the Locomotive Icon into my Applications folder and Bingo! Ruby on Rails is ready to go.</p>
<p>The only thing to keep in mind is that you need to make sure you use the open up any terminals from within the Locomotive interface which is again pretty easy to remember.  Locomotive at the time of this post uses the lighttpd web server by default when starting the web server using the command ruby script/server.  If you prefer you can use the Webrick webserver with Locomotive by forcing it ruby script/server webrick.  Supposedly Webrick is better but I&#8217;m no expert so I&#8217;m just using Webrick for any development.</p>
<p>The only other thing to keep in mind with Locomotive is that if you want to do more robust database work you&#8217;ll need to have MySQL installed on the Mac as the databases shipped with Locomotive aren&#8217;t really for a production environment.</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Frun-ruby-on-rails-on-mac-os-x-in-minutes-with-locomotive%2F58&amp;title=Run+Ruby+on+Rails+on+Mac+OS+X+in+Minutes+with+Locomotive" title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Frun-ruby-on-rails-on-mac-os-x-in-minutes-with-locomotive%2F58&amp;title=Run+Ruby+on+Rails+on+Mac+OS+X+in+Minutes+with+Locomotive" title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Frun-ruby-on-rails-on-mac-os-x-in-minutes-with-locomotive%2F58&amp;title=Run+Ruby+on+Rails+on+Mac+OS+X+in+Minutes+with+Locomotive" title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Frun-ruby-on-rails-on-mac-os-x-in-minutes-with-locomotive%2F58&amp;title=Run+Ruby+on+Rails+on+Mac+OS+X+in+Minutes+with+Locomotive" title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Frun-ruby-on-rails-on-mac-os-x-in-minutes-with-locomotive%2F58&amp;title=Run+Ruby+on+Rails+on+Mac+OS+X+in+Minutes+with+Locomotive', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Frun-ruby-on-rails-on-mac-os-x-in-minutes-with-locomotive%2F58" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Frun-ruby-on-rails-on-mac-os-x-in-minutes-with-locomotive%2F58" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Frun-ruby-on-rails-on-mac-os-x-in-minutes-with-locomotive%2F58&amp;title=Run+Ruby+on+Rails+on+Mac+OS+X+in+Minutes+with+Locomotive" title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Frun-ruby-on-rails-on-mac-os-x-in-minutes-with-locomotive%2F58&amp;title=Run+Ruby+on+Rails+on+Mac+OS+X+in+Minutes+with+Locomotive" title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.sydneyfx.com.au/wordpress/run-ruby-on-rails-on-mac-os-x-in-minutes-with-locomotive/58/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Remove Spaces from a String using PHPt.</title>
		<link>http://www.sydneyfx.com.au/wordpress/remove-spaces-from-a-string-using-php/41</link>
		<comments>http://www.sydneyfx.com.au/wordpress/remove-spaces-from-a-string-using-php/41#comments</comments>
		<pubDate>Fri, 23 Jun 2006 14:47:04 +0000</pubDate>
		<dc:creator>Robert</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.sydneyfx.com.au/wordpress/?p=41</guid>
		<description><![CDATA[This is quite a funny one for me. As you may or may not know I&#8217;m not a guru PHP developer but I do know a little from my time as a web designer/developer. Today I had to do something &#8230; <a href="http://www.sydneyfx.com.au/wordpress/remove-spaces-from-a-string-using-php/41">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This is quite a funny one for me. As you may or may not know I&#8217;m not a guru PHP developer but I do know a little from my time as a web designer/developer. Today I had to do something as simple as removing spaces from a variable string using PHP.</p>
<p>After a quick think about how I was going to do this I put together some code that would remove the spaces.</p>
<p>$mobile = &#8221;  0400 000 000&#8243;;<br />
//echo $mobile;<br />
$mobile = trim($mobile);<br />
$numcount = strlen($mobile);<br />
//echo $numcount;<br />
$ptr=0;</p>
<p>while ($i &lt;= $numcount) { //Loop until testing of all numerals in ph no<br />
if ($mobile{$ptr} != &#8221; &#8220;) {<br />
$ptr++;<br />
}else{<br />
$mobiletemp = substr($mobile, 0, $ptr);<br />
echo &#8220;mobiletemp:&#8221;.$mobiletemp.&#8221;\n&#8221;;<br />
$mobile = $mobiletemp.substr($mobile,($ptr+1),$numcount);<br />
echo &#8220;mobile :&#8221;.$mobile;<br />
$ptr++;<br />
};<br />
$i++;<br />
}</p>
<p>So here I was really proud of myself for cooking up such an elaborate chunk of code that would do what I needed. During the process of writing the code I posted a question on a developer forum asking for a quick way of removing the spaces. By the time I finished my piece of code I had a response from the developer forum.</p>
<p>And here was their solution</p>
<p>$mobile = str_replace ( &#8216; &#8216;, &#8221;, $mobile );</p>
<p>That&#8217;s right. Just one line of code to do the same thing as my 18 lines of code. Same solution different method.<br />
Hopefully someone who like me needs to know how to do this in a hurry and will find this post.</p>

<span class="slashdigglicious">
<a href="http://slashdot.org/bookmark.pl?url=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Fremove-spaces-from-a-string-using-php%2F41&amp;title=Remove+Spaces+from+a+String+using+PHPt." title="Slashdot It!"><img src="http://slashdot.org/favicon.ico" height="16" width="16" alt="[Slashdot]" /></a>
<a href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Fremove-spaces-from-a-string-using-php%2F41&amp;title=Remove+Spaces+from+a+String+using+PHPt." title="Digg This Story"><img src="http://digg.com/favicon.ico" width="16" height="16" alt="[Digg]" /></a>
<a href="http://reddit.com/submit?url=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Fremove-spaces-from-a-string-using-php%2F41&amp;title=Remove+Spaces+from+a+String+using+PHPt." title="Reddit"><img src="http://reddit.com/favicon.ico" width="16" height="16" alt="[Reddit]" /></a>
<a href="http://del.icio.us/post?url=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Fremove-spaces-from-a-string-using-php%2F41&amp;title=Remove+Spaces+from+a+String+using+PHPt." title="Save to del.icio.us" onclick="window.open('http://del.icio.us/post?v=4&amp;noui&amp;jump=close&amp;url=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Fremove-spaces-from-a-string-using-php%2F41&amp;title=Remove+Spaces+from+a+String+using+PHPt.', 'delicious', 'toolbar=no,width=700,height=400'); return false;"><img src="http://images.del.icio.us/static/img/delicious.small.gif" width="16" height="16" alt="[del.icio.us]" /></a>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Fremove-spaces-from-a-string-using-php%2F41" title="Share on Facebook"><img src="http://www.facebook.com/favicon.ico" width="16" height="16" alt="[Facebook]" /></a>
<a href="http://technorati.com/faves?add=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Fremove-spaces-from-a-string-using-php%2F41" title="Add to my Technorati Favorites"><img src="http://technorati.com/favicon.ico" width="16" height="16" alt="[Technorati]" /></a>
<a href="http://www.google.com/bookmarks/mark?op=edit&amp;output=popup&amp;bkmk=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Fremove-spaces-from-a-string-using-php%2F41&amp;title=Remove+Spaces+from+a+String+using+PHPt." title="Save to Google Bookmarks"><img src="http://www.google.com/favicon.ico" width="16" height="16" alt="[Google]" /></a>
<a href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.sydneyfx.com.au%2Fwordpress%2Fremove-spaces-from-a-string-using-php%2F41&amp;title=Remove+Spaces+from+a+String+using+PHPt." title="Stumble it!"><img src="http://www.stumbleupon.com/favicon.ico" width="16" height="16" alt="[StumbleUpon]" /></a>
</span>]]></content:encoded>
			<wfw:commentRss>http://www.sydneyfx.com.au/wordpress/remove-spaces-from-a-string-using-php/41/feed</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
	</channel>
</rss>
