<?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>.: the bojicas &#187; Mac OS X</title>
	<atom:link href="http://blog.bojica.com/category/science-technology/mac-os-x/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.bojica.com</link>
	<description>family is all that matters. think!</description>
	<lastBuildDate>Wed, 26 Jan 2011 20:57:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Getting back sqlite3 to Mac OS X</title>
		<link>http://blog.bojica.com/2009/05/10/getting-back-sqlite3-to-mac-os-x</link>
		<comments>http://blog.bojica.com/2009/05/10/getting-back-sqlite3-to-mac-os-x#comments</comments>
		<pubDate>Sun, 10 May 2009 13:38:58 +0000</pubDate>
		<dc:creator>Silviu D. Bojica</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Science & Technology]]></category>

		<guid isPermaLink="false">http://blog.bojica.com/?p=204</guid>
		<description><![CDATA[For some reason, I lost my SQLite version from my Mac OS X 10.5 Leopard. I hardly suspect MonoFramework for the &#8220;damage&#8221; caused, as /usr/bin/sqlite3 has been replaced with a link to a non-existent file from MonoFramework Library. A quick and dirty fix is to bring back the sqlite3 source and install it in the [...]]]></description>
			<content:encoded><![CDATA[<p>For some reason, I lost my SQLite version from my Mac OS X 10.5 Leopard. I hardly suspect MonoFramework for the &#8220;damage&#8221; caused, as <em>/usr/bin/sqlite3</em> has been replaced with a link to a non-existent file from <em>MonoFramework Library</em>.</p>
<p>A quick and dirty fix is to bring back the sqlite3 source and install it in the *nix fashion (configure, make, make install). For future reference, I am listing the full sequence of commands I&#8217;ve typed in <em>Terminal</em>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">curl http:<span style="color: #000000; font-weight: bold;">//</span>www.sqlite.org<span style="color: #000000; font-weight: bold;">/</span>sqlite-3.6.14.tar.gz <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tar</span> zx
<span style="color: #7a0874; font-weight: bold;">cd</span> sqlite-3.6.14
<span style="color: #c20cb9; font-weight: bold;">autoconf</span>
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span>
<span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
<span style="color: #666666; font-style: italic;"># check if SQLite is installed properly</span>
sqlite3 <span style="color: #660033;">--version</span>
<span style="color: #666666; font-style: italic;"># 3.6.14</span>
<span style="color: #c20cb9; font-weight: bold;">which</span> sqlite3
<span style="color: #666666; font-style: italic;"># /usr/local/bin/sqlite3</span></pre></div></div>

<p><strong>Note</strong> the new path: prefix=/usr/local, so the CLI (command line interface) sqlite3 will be accessible via /usr/local/bin/sqlite3. As sqlite is part of the core Mac, I believe it is wise not to interfere with any of the original libraries (not only CLI).</p>
<p>Do you know a &#8220;cleaner&#8221;, Mac OS X like (.dmg) way to restore SQLite? Please comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bojica.com/2009/05/10/getting-back-sqlite3-to-mac-os-x/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby on Rails application could not be started</title>
		<link>http://blog.bojica.com/2009/04/08/ruby-on-rails-application-could-not-be-starte</link>
		<comments>http://blog.bojica.com/2009/04/08/ruby-on-rails-application-could-not-be-starte#comments</comments>
		<pubDate>Wed, 08 Apr 2009 13:27:48 +0000</pubDate>
		<dc:creator>Silviu D. Bojica</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Science & Technology]]></category>

		<guid isPermaLink="false">http://blog.bojica.com/?p=191</guid>
		<description><![CDATA[This is the error message, on my local machine after I upgraded to rails 2.3.2. Well, it was not an instant error, but it appeared after a while, to be more exact after I rebooted my computer. The error: no such file to load -- application.rb &#40;MissingSourceFile&#41; As the new rails renamed application.rb to application_controller.rb, [...]]]></description>
			<content:encoded><![CDATA[<p>This is the error message, on my local machine after I upgraded to rails 2.3.2. Well, it was not an instant error, but it appeared after a while, to be more exact after I rebooted my computer.</p>
<p>The error:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">no such <span style="color: #c20cb9; font-weight: bold;">file</span> to load <span style="color: #660033;">--</span> application.rb <span style="color: #7a0874; font-weight: bold;">&#40;</span>MissingSourceFile<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>As the new rails renamed application.rb to application_controller.rb, I have immediately sensed the root of the problem, so I&#8217;ve tried to</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>script<span style="color: #000000; font-weight: bold;">/</span>server</pre></div></div>

<p>and it worked. That means it has something to do with the Phusion Passenger.</p>
<p>But what? I&#8217;ve updated all the gems, and passenger was updated too.</p>
<p>Well, yes, but not the apache module, and not the configuration&#8230;</p>
<p>This is to remember: Every time, after getting a new version of Phusion Passenger via sudo gem update, I have to:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> passenger-install-apache2-module</pre></div></div>

<p>and go through the setup, than edit the httpd.conf file (in my case: /private/etc/apache2/httpd.conf) and replace the old passenger configuration lines with these new ones:</p>

<div class="wp_syntax"><div class="code"><pre class="apache" style="font-family:monospace;"><span style="color: #00007f;">LoadModule</span> passenger_module /Library/Ruby/Gems/<span style="color: #ff0000;">1.8</span>/gems/passenger-2.1.3/ext/apache2/mod_passenger.so
PassengerRoot /Library/Ruby/Gems/<span style="color: #ff0000;">1.8</span>/gems/passenger-2.1.3
PassengerRuby /System/Library/Frameworks/Ruby.framework/Versions/<span style="color: #ff0000;">1.8</span>/usr/bin/ruby</pre></div></div>

<p>Last step is, of course, to restart the apache server:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> apachectl restart</pre></div></div>

<p>Now we are set to go.</p>
<p>I have post this article as a reminder to myself in case something similar would happen in future, and as well I hope to be useful to the readers of my blog whom might struggle with the same type of issues.</p>
<p>For any other tips and comments, it would be a pleasure to see you replying to this post.</p>
<p>Coding is fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bojica.com/2009/04/08/ruby-on-rails-application-could-not-be-starte/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The Gimp-Reflection Plugin Screencast</title>
		<link>http://blog.bojica.com/2009/03/10/the-gimp-reflection-plugin-screencast</link>
		<comments>http://blog.bojica.com/2009/03/10/the-gimp-reflection-plugin-screencast#comments</comments>
		<pubDate>Tue, 10 Mar 2009 05:49:47 +0000</pubDate>
		<dc:creator>Silviu D. Bojica</dc:creator>
				<category><![CDATA[Digital Art]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Science & Technology]]></category>

		<guid isPermaLink="false">http://blog.bojica.com/?p=184</guid>
		<description><![CDATA[The gimp-reflection plugin extends the lower section of an image as a reflection of the original image with a single click, similar effects to what you see on Apple&#8217;s website, iWeb, etc. This screencast shows you how to download, install and use the gimp-reflection plugin. Enjoy! Example: The original image: The result, after the one-click [...]]]></description>
			<content:encoded><![CDATA[<p>The <em>gimp-reflection plugin</em> extends the lower section of an image as a reflection of the original image with a single click, similar effects to what you see on Apple&#8217;s website, iWeb, etc.</p>
<p>This screencast shows you how to download, install and use the gimp-reflection plugin. Enjoy!</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/TM78nTap-dg&#038;hl=en&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/TM78nTap-dg&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
<p>Example:</p>
<p>The original image:<br />
<img src="http://blog.bojica.com/wp-content/uploads/2009/03/photo-19-300x225.jpg" alt="photo-19" title="photo-19" width="300" height="225" class="alignnone size-medium wp-image-186" /></p>
<p>The result, after the one-click reflection filter is applied:<br />
<img src="http://blog.bojica.com/wp-content/uploads/2009/03/photo-19-gr-300x292.jpg" alt="photo-19-gr" title="photo-19-gr" width="300" height="292" class="alignnone size-medium wp-image-185" /></p>
<p>Easy, isn&#8217;t it?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bojica.com/2009/03/10/the-gimp-reflection-plugin-screencast/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>w2task Challenge</title>
		<link>http://blog.bojica.com/2009/01/05/w2task-challenge</link>
		<comments>http://blog.bojica.com/2009/01/05/w2task-challenge#comments</comments>
		<pubDate>Mon, 05 Jan 2009 09:57:40 +0000</pubDate>
		<dc:creator>Silviu D. Bojica</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Science & Technology]]></category>
		<category><![CDATA[w2task]]></category>

		<guid isPermaLink="false">http://blog.bojica.com/?p=139</guid>
		<description><![CDATA[I would like to introduce my latest project w2task - a web application written in Rails. It is a task and time management web based software. At this point, a registered user can create its own business (company) and define a series of projects. Then, the user can record its own efforts and attach them to a [...]]]></description>
			<content:encoded><![CDATA[<p>I would like to introduce my latest project <em>w2task</em> - a web application written in Rails.</p>
<div>
<div class="mceTemp">
<dl id="attachment_140" class="wp-caption alignnone" style="width: 387px;">
<dt class="wp-caption-dt"><img class="size-full wp-image-140" title="w2task_01" src="http://blog.bojica.com/wp-content/uploads/2009/01/w2task_01.png" alt="w2task challenge" width="377" height="169" /></dt>
</dl>
</div>
<p>It is a <em>task and time management web based software</em>. At this point, a registered user can create its own <em>business</em> (company) and define a series of <em>projects</em>. Then, the user can record its own <em>efforts</em> and attach them to a particular project. The sidebar (<em>Efforts Bar</em>) gives a quick statistic regarding the number of efforts and total timing. Also, by clicking on a particular project you may get the <em>timesheet</em> of the particular month.</p>
<p>You may well give it a try, here is the link: <a title="w2task" href="http://w2task.com" target="_self">http://w2task.com</a>. Don&#8217;t hesitate to tell me your opinion about it, right here as a reply to this post. You may me as harsh as you want, it is constructive and ultimately this blog is moderated <img src='http://blog.bojica.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  .</p>
<p>Be warned, this web app is still in its early, early development stages.</p>
<p>To better understand the philosophy behind this application, the strength and the weaknesses of the application, allow me to tell you in few points<strong> a bit of my history with Rails:</strong></p>
<ul>
<li><em>January 2008</em> &#8211; I&#8217;ve bought my first Rails book <em>Agile Web Development with Rails</em>, but I didn&#8217;t have enough time to practice it that Rails, turned 2.0 and broke the compatibility with 1.x versions. I remember the headaches regarding the scaffolding, so I abandoned my Rails path.</li>
<li><em>May 2008</em> &#8211; I&#8217;ve make up my mind and bought the third edition of the above book and start again with Rails at a low pace.</li>
<li><em>October 2008</em> &#8211; my friend Hossein asked me to join in a web project with a real estate portal. I thought it is the moment to put my knowledge into practice and this his how <a title="Golden Index Real Estate" href="http://gistate.com">gistate.com</a> got wind. Ok, the real estate market is down now (dec 2008 &#8211; jan 2009), but gistate.com shines <img src='http://blog.bojica.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  .</li>
<li><em>November 2008</em> - <em>Dubai Hacking Night</em> &#8211; where I meet again my heroes: the <a title="Spin Bits" href="http://www.spinbits.com">SpinBits</a> guys which encouraged me to learn Rails. I have shown to Rida a sketch of <em>w2task</em> (a scaffold and some CSS files) &#8211; a Ruby on Rails practicing project and he asked me to promise that I will present it on DemoCamp 4, which should be in mid January 2009.</li>
<li><em>December 2008</em> - I have closely followed 37signals blog and read their book - <em>Getting Real</em>. Truly inspiring, and I am thinking to copy their business model.</li>
<li>2009 &#8211; here we are.</li>
</ul>
</div>
<p>Wow, getting long with this post. However, for the future, I have a lot to say and I hope it will be of interest for my blog readers, as I will fly along the Rails.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bojica.com/2009/01/05/w2task-challenge/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing the MAC Address on Mac OS X</title>
		<link>http://blog.bojica.com/2008/07/27/changing-the-mac-address-on-mac-os-x</link>
		<comments>http://blog.bojica.com/2008/07/27/changing-the-mac-address-on-mac-os-x#comments</comments>
		<pubDate>Sun, 27 Jul 2008 07:10:08 +0000</pubDate>
		<dc:creator>Silviu D. Bojica</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Science & Technology]]></category>

		<guid isPermaLink="false">http://blog.bojica.com/?p=106</guid>
		<description><![CDATA[All we need is to type this in Terminal sudo ifconfig en0 lladdr 00:00:00:00:00:01 or sudo ifconfig en0 ether 00:00:00:00:00:01 Just change 00:00:00:00:00:01 with the MAC address we need. It seems that for older versions of Mac OS X (prior to Tiger &#8211; OS X 10.4) we will need this patch:  http://slagheap.net/etherspoof/ .]]></description>
			<content:encoded><![CDATA[<p>All we need is to type this in Terminal</p>
<pre>sudo ifconfig en0 lladdr 00:00:00:00:00:01</pre>
<p>or</p>
<pre>sudo ifconfig en0 ether 00:00:00:00:00:01</pre>
<p>Just change 00:00:00:00:00:01 with the MAC address we need.</p>
<p>It seems that for older versions of Mac OS X (prior to Tiger &#8211; OS X 10.4) we will need this patch:  <a href="http://slagheap.net/etherspoof/">http://slagheap.net/etherspoof/</a> .</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bojica.com/2008/07/27/changing-the-mac-address-on-mac-os-x/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show hidden files on a Mac</title>
		<link>http://blog.bojica.com/2008/01/11/show-hidden-files-on-a-mac</link>
		<comments>http://blog.bojica.com/2008/01/11/show-hidden-files-on-a-mac#comments</comments>
		<pubDate>Fri, 11 Jan 2008 16:20:02 +0000</pubDate>
		<dc:creator>Silviu D. Bojica</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Science & Technology]]></category>

		<guid isPermaLink="false">http://blog.bojica.com/2008/01/11/show-hidden-files-on-a-mac</guid>
		<description><![CDATA[The main idea is to edit ~/Library/Preferences/com.apple.finder.plist with Property List Editor and add a new property AppleShowAllFiles (or edit it if it already exists), of class type: Boolean, and set it’s value to Yes. Than you must relaunch Finder. How? Hold option key wilst you are clicking on Finder’s icon from the Dock and choose [...]]]></description>
			<content:encoded><![CDATA[<p>The main idea is to edit <em>~/Library/Preferences/com.apple.finder.plist</em> with <em>Property List Editor</em> and add a new property<em> AppleShowAllFiles</em> (or edit it if it already exists), of class type: <em>Boolean</em>, and set it’s value to <em>Yes</em>.</p>
<p>Than you must relaunch Finder. How? Hold option key wilst you are clicking on Finder’s icon from the Dock and choose Relaunch from the contextual menu.</p>
<p>To switch back, follow same process, but this time, <em>AppleShowAllFiles</em> value should be set up to <em>No</em>.</p>
<p>For command line fans, type in <em>Terminal</em> to show all files:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">defaults <span style="color: #c20cb9; font-weight: bold;">write</span> com.apple.finder AppleShowAllFiles Yes
<span style="color: #c20cb9; font-weight: bold;">killall</span> Finder</pre></div></div>

<p>or</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">defaults <span style="color: #c20cb9; font-weight: bold;">write</span> com.apple.finder AppleShowAllFiles No
<span style="color: #c20cb9; font-weight: bold;">killall</span> Finder</pre></div></div>

<p>to switch back to the original state (do not shoe hidden files).</p>
<p>BTW, in a UNIX like environment, hidden files are those which are starting with a . (dot).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bojica.com/2008/01/11/show-hidden-files-on-a-mac/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

