<?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</title>
	<atom:link href="http://blog.bojica.com/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.2</generator>
		<item>
		<title>BlackBerry Dev Day Review</title>
		<link>http://blog.bojica.com/2011/01/27/blackberry-dev-day-review</link>
		<comments>http://blog.bojica.com/2011/01/27/blackberry-dev-day-review#comments</comments>
		<pubDate>Wed, 26 Jan 2011 20:34:13 +0000</pubDate>
		<dc:creator>Silviu D. Bojica</dc:creator>
				<category><![CDATA[BlackBerry]]></category>
		<category><![CDATA[Science & Technology]]></category>

		<guid isPermaLink="false">http://blog.bojica.com/?p=304</guid>
		<description><![CDATA[As a web developer I&#8217;ve been always interested in making my web apps accessible from any mobile devices, given that the trend is to have them &#8220;hooked&#8221; to the net. And BlackBerry makes no exception, or to be correct, BlackBerry are among the first to let their devices be permanently on. So no wander, why [...]]]></description>
			<content:encoded><![CDATA[<p>As a web developer I&#8217;ve been always interested in making my web apps accessible from any mobile devices, given that the trend is to have them &#8220;hooked&#8221; to the net. And BlackBerry makes no exception, or to be correct, BlackBerry are among the first to let their devices be permanently on.</p>
<p>So no wander, why I immediately register for the BlackBerry Dev Day. Bellow are some of my notes taken at this event.</p>
<div style="text-align:center;">
<a href="http://blog.bojica.com/wp-content/uploads/2011/01/bbdevday.jpg"><img src="http://blog.bojica.com/wp-content/uploads/2011/01/bbdevday-300x225.jpg" alt="" title="bbdevday" width="300" height="225" class="alignnone size-medium wp-image-309" /></a>
</div>
<p>First &#8220;hands-on&#8221; session was &#8211; Getting Started Developing on BlackBerry, which presented the BlackBerry ecosystem with some interesting statistics like:</p>
<ul>
<li>565 BlackBerry carriers in 175 countries</li>
<li>55 million subscribers</li>
<li>AppWorld &#8211; the BB app-store (similar in concept with the Apple&#8217;s app-store), with a distribution in 70 countries, but &#8230; here lays the surprise, &#8230; none in the Middle East. But, there is a promise that BlackBerry is working hard on that. However, there are other channels of distributing the applications, like collaborating with the carries, or direct download.</li>
</ul>
<p>A new developer should get hands on version 5.0 as the market share is 46% of all BlackBerries, plus anything developed on 5.0 is compatible with 5.x and the newer 6.x versions.</p>
<p>One other aspect, which appeared interesting from my point of view, was the overview of BlackBerry network transports (gateways). Each is in direct correlation with the speed of data traveling across the network, and ultimately can affect the user experience of the end user, in particular if the app is web based, where all data, including the UI elements are loaded from a remote server.</p>
<ul>
<li>TCP Cellular</li>
<li>WAP</li>
<li>TCP Wi-Fi</li>
<li>BB Internet Service</li>
<li>BB Mobile Data Service (MDS)</li>
</ul>
<p>Another point I learned was that all apps should be signed, so a developer must apply for a key to RIM, which costs around USD20, a key which can also sign PlayBook applications.</p>
<p>The usual developer tools are:</p>
<ul>
<li>Eclipse</li>
<li>BB JDE Plugin for Eclipse</li>
<li>other IDEs</li>
</ul>
<p>The Pillars of Web Development are:</p>
<ol>
<li>BlackBerry&#8217;s Browser &#8211; the application runs in the device&#8217;s web browser.</li>
<li>Hybrid / BrowserField &#8211; the BrowserField is a browser which can be embedded into the application. From the user point of view the most relevant thing is that you can jump between focusable elements of a page without the need of a pointer (arrow).</li>
<li>BlackBerry WebWorks &#8211; is the web application running as described above, but with full access to the device capabilities, be it BB messenger, PIM, calendar, geolocation, etc. Other particular features to WebWorks are the contextual menus which ensure a smoother navigation between different elements of the app, access to other widgets, exit/quit procedure.</li>
</ol>
<p>The WebWorks Bootcamp emphasized on taking in consideration the network latency, and the advantage of using WebWorks (trying to compress the code as much as possible) as opposite to running in the browser app. In regrad to images, best is to use pngs or jpegs (the former being smallest in size), and allow MDS to resize them, instead of the browser to avoid latencies introduced by loading such high resolution images.</p>
<p>To my surprise, JavaScript is disabled by default in 5.0, in contrast to Apple&#8217;s devices which are pro-JavaScript, in fact for iOS there is an web-API to give the user the feel of a native app. Hmmm. The stated reason for disabling the JavaScript is that the power processing is much slower than that of a PC, so such scripts will run much slower. More, BlackBerry is designed to stop unresponsive scripts after 10 seconds. On the other side, the Adobe stuffs are at their &#8220;home&#8221;.</p>
<p>The recommendation in such case is to use 6.0, in order to give full user experience, where HTML5 and CSS3 are well supported, jQuery and over JavaScript frameworks work to their maximum.</p>
<p>As for the PlayBook (the tablet), the web browser is WebKit based, supports HTML5, CSS3, as well as Adobe&#8217;s Flash or AIR, and all discussed stuff re WebWorks apply here, too.</p>
<p>I haven&#8217;t insisted on the talks regarding the way of building native applications (although it worth to mention some examples, where the icon or the app title changes to the context &#8211; like the weather status, this way an app becoming a &#8220;Super App&#8221; and core part of the device and OS itself, being useful even without never opening that particular application).</p>
<p>In conclusion, we had part of an interesting day, with some examples in the real world. Hopefully, AppWorld will be available soon world-wide, so developers can address local markets, too. Myself, I&#8217;ll remain stick with Ruby on Rails, my current web development framework of choice.</p>
<p>Of course, native apps have their own advantage in terms of user experience for any type of &#8220;smart device&#8221;, but with continued improvements in network speeds and browsers capabilities, the web apps have a bright future. What do you think?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bojica.com/2011/01/27/blackberry-dev-day-review/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New month, new beginning. Welcome Cubicle Apps DMS!</title>
		<link>http://blog.bojica.com/2010/11/01/new-month-new-beginning-welcome-cubicle-apps-dms</link>
		<comments>http://blog.bojica.com/2010/11/01/new-month-new-beginning-welcome-cubicle-apps-dms#comments</comments>
		<pubDate>Mon, 01 Nov 2010 06:46:13 +0000</pubDate>
		<dc:creator>Silviu D. Bojica</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Cubicle Apps DMS]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://blog.bojica.com/?p=262</guid>
		<description><![CDATA[I am glad to announce that my newest project developed &#8220;in the clouds&#8221; is now available for public beta testing. Welcome Cubicle Apps DMS!. You are all invited to create an account, use the system to the maximum and send me your feedback. What is all about? Cubicle Apps DMS is designed as a document [...]]]></description>
			<content:encoded><![CDATA[<p>I am glad to announce that my newest project developed &#8220;<em>in the clouds</em>&#8221; is now available for public beta testing. Welcome <a href="http://www.cubicleapps.com">Cubicle Apps DMS</a>!.</p>
<p><a href="http://blog.bojica.com/wp-content/uploads/2010/11/cubicleapps_dms_name.png"><img src="http://blog.bojica.com/wp-content/uploads/2010/11/cubicleapps_dms_name.png" alt="CubicleApps DMS" title="CubicleApps DMS" width="191" height="38" class="size-full wp-image-285" /></a></p>
<p>You are all invited to create an account, use the system to the maximum and send me your feedback.</p>
<p><strong>What is all about?</strong></p>
<p><a href="http://www.cubicleapps.com">Cubicle Apps DMS</a> is designed as a document management system for tracking and storing electronic documents, images of paper documents which have set an expiry date, so you can organize them and get useful reports and alerts in regard to the expiry dates and renewal procedures.</p>
<p>What type of documents? Well any expiring documents. Read more in this <a href="http://confluence.cubicleapps.net/display/DMS/Introduction">introduction</a>, which will be part of the end user manual.</p>
<p><strong>Why?</strong></p>
<p>During my career, I have been frequently asked by my employers and later on by my partners and clients to find and or craft a system which is dealing with expiring documents. So, I know my competition, I know the document workflow in typical small and medium sized companies and yes, I have the strong believe that this territory is still not well exploited and <a href="http://www.cubicleapps.com">CubicleApps DMS</a> found its niche.</p>
<p>In conclusion, please vist <a href="http://www.cubicleapps.com">http://www.cubicleapps.com</a>, register with an account, play around and let me what you think. In the same time, I&#8217;ll keep you updated with the progress and write more about the concepts and philosophy behind <a href="http://www.cubicleapps.com">CubicleApps DMS</a>. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bojica.com/2010/11/01/new-month-new-beginning-welcome-cubicle-apps-dms/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ctags and Vim for Ruby on Rails Development</title>
		<link>http://blog.bojica.com/2010/06/27/ctags-and-vim-for-ruby-on-rails-development</link>
		<comments>http://blog.bojica.com/2010/06/27/ctags-and-vim-for-ruby-on-rails-development#comments</comments>
		<pubDate>Sun, 27 Jun 2010 14:44:53 +0000</pubDate>
		<dc:creator>Silviu D. Bojica</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://blog.bojica.com/?p=263</guid>
		<description><![CDATA[Tagging is a feature that gives vim IDE-like code browsing powers. :help tags A tag is an identifier that appears in a &#8220;tags&#8221; file. It is a sort of label that can be jumped to. For example: In C programs each function name can be used as a tag. The &#8220;tags&#8221; file has to be [...]]]></description>
			<content:encoded><![CDATA[<p>Tagging is a feature that gives vim IDE-like code browsing powers.</p>

<div class="wp_syntax"><div class="code"><pre class="viml" style="font-family:monospace;">:help tags</pre></div></div>

<p><cite>A tag is an identifier that appears in a &#8220;tags&#8221; file.  It is a sort of label that can be jumped to.  For example: In C programs each function name can be used as a tag.  The &#8220;tags&#8221; file has to be generated by a program like ctags, before the tag commands can be used.</cite></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ctags <span style="color: #660033;">-R</span> <span style="color: #000000; font-weight: bold;">*</span></pre></div></div>

<p>is probably the most simple usage of <b>ctags</b> command from the command line, issued from the root of the Rails project. The result is a file named <b>tags</b> which indexed all objects, so it makes easy to jump, for example, to a Ruby method definition just by using <b>CTRL-[</b> shortcut anywhere in the code where that method is used.</p>
<p>However, <b>ctags</b> can be told to exclude some of the files and directories and it makes sense to ignore the <b>.git</b> and <b>log</b> directories as they do not contain useful information:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ctags <span style="color: #660033;">-R</span> <span style="color: #660033;">--exclude</span>=.git <span style="color: #660033;">--exclude</span>=log <span style="color: #000000; font-weight: bold;">*</span></pre></div></div>

<p>But it would be more useful if we could have access to the Rails core method definitions and documentation, as well as for the included gems. Bellow, I have included the gem directory of my default ruby (ruby-head under rvm):</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ctags <span style="color: #660033;">-R</span> <span style="color: #660033;">--exclude</span>=.git <span style="color: #660033;">--exclude</span>=log <span style="color: #000000; font-weight: bold;">*</span> ~<span style="color: #000000; font-weight: bold;">/</span>.rvm<span style="color: #000000; font-weight: bold;">/</span>gems<span style="color: #000000; font-weight: bold;">/</span>ruby-head<span style="color: #000000; font-weight: bold;">/*</span></pre></div></div>

<h3>Navigation tips:</h3>
<ul>
<li><b>:ta belongs_to</b> jumps to <b>belongs_to</b> method definition</li>
<li><b>CTRL-]</b> if you see a call to a method and wonder what it does, position the cursor inside the method name and hit <b>CTRL-]</b></li>
<li><b>CTRL-T</b> to go back from the method definition</li>
</ul>
<p>Two other useful shortcuts: <b>CTRL-I</b> and <b>CTRL-O</b> &#8211; think of them <b>in</b> and <b>out</b> the method definition.</p>
<h3>Navigating through a list of methods with similar names</h3>

<div class="wp_syntax"><div class="code"><pre class="viml" style="font-family:monospace;">:ta /^validates_*</pre></div></div>

<p>will look for all method definitions that starts with the given string. By default it will jump to the first definition found, but we can do more.</p>
<p>Following vim commands can be used to navigate through the method definitions:</p>
<ul>
<li><b>:ts</b> shows the list</li>
<li><b>:tn</b> goes to the next tag in that list</li>
<li><b>:tp</b> goes to the previous tag in that list</li>
<li><b>:tf</b> goes to the first tag of the list</li>
<li><b>:tl</b> goes to the last tag of the list</li>
</ul>
<h3>Resources:</h3>
<ul>
<li>:help tags</li>
<li>man ctags</li>
<li>The Geek Stuff: <a href="http://www.thegeekstuff.com/2009/04/ctags-taglist-vi-vim-editor-as-sourece-code-browser/">tags and Taglist: Convert Vim Editor to Beautiful Source Code Browser for Any Programming Language</a></li>
<li>Codeulate Screencasts: <a href="http://www.codeulatescreencasts.com/products/vim-for-rails-developers">Vim for Rails Developers</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.bojica.com/2010/06/27/ctags-and-vim-for-ruby-on-rails-development/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Weekend in Al Ain</title>
		<link>http://blog.bojica.com/2010/01/23/weekend-in-al-ain</link>
		<comments>http://blog.bojica.com/2010/01/23/weekend-in-al-ain#comments</comments>
		<pubDate>Sat, 23 Jan 2010 17:09:38 +0000</pubDate>
		<dc:creator>Silviu D. Bojica</dc:creator>
				<category><![CDATA[Family & Lifestyle]]></category>
		<category><![CDATA[Viata in Emirate]]></category>
		<category><![CDATA[Al Ain]]></category>
		<category><![CDATA[zoo]]></category>

		<guid isPermaLink="false">http://blog.bojica.com/?p=248</guid>
		<description><![CDATA[Last weekend was one of those magical ones, spent with my family and a handful of friend in Al Ain. This post wishes to be a picture story of the above mentioned trip and the two places we visited there: Al Jimi oasis and the Al Ain Zoo. First step Al Jimi Oasis. Bellow a [...]]]></description>
			<content:encoded><![CDATA[<p>Last weekend was one of those magical ones, spent with my family and a handful of friend in Al Ain.</p>
<p>This post wishes to be a picture story of the above mentioned trip and the two places we visited there: Al Jimi oasis and the Al Ain Zoo.</p>
<p>First step Al <strong>Jimi Oasis</strong>.</p>
<p>Bellow a picture of my daughter, my wife and myself on the shade. Sorry guys and girls from back home, I know it&#8217;s winter there with tempratures far below zero:</p>
<div style="text-align:center;"><img src="http://blog.bojica.com/wp-content/uploads/2010/01/1001_WeekendAlAin_006.jpg" alt="1001_WeekendAlAin_006.jpg" border="0" width="424" height="318" /></div>
<p>The wonders of the desert, yes we are in the middle of the desert, but mind your steps&#8230;</p>
<div style="text-align:center;"><img src="http://blog.bojica.com/wp-content/uploads/2010/01/1001_WeekendAlAin_009.jpg" alt="1001_WeekendAlAin_009.jpg" border="0" width="424" height="318" /></div>
<p>and a close-up (my friends were busy visiting &#038; making pictures of the nearby fortress), but I got myself knees dirty, attracted by these tiny flowers&#8230;</p>
<div style="text-align:center;"><img src="http://blog.bojica.com/wp-content/uploads/2010/01/1001_WeekendAlAin_011.jpg" alt="1001_WeekendAlAin_011.jpg" border="0" width="424" height="318" /></div>
<p>Hey, here we are, waive my girls&#8230;</p>
<div style="text-align:center;"><img src="http://blog.bojica.com/wp-content/uploads/2010/01/1001_WeekendAlAin_013.jpg" alt="1001_WeekendAlAin_013.jpg" border="0" width="424" height="318" /></div>
<p>If you follow me on twitter, you may know about that crazy project of mine <strong>dailyshoot</strong> / 2010 in 365 daily shots. Today&#8217;s assignment&#8230; <em>Quirky things often catch your eye and make for interesting art. Make a photo of something that makes you go &#8220;Hmmm&#8221; today.</em> So here comes my first candidate&#8230;</p>
<div style="text-align:center;"><img src="http://blog.bojica.com/wp-content/uploads/2010/01/1001_WeekendAlAin_015.jpg" alt="1001_WeekendAlAin_015.jpg" border="0" width="424" height="318" /></div>
<p>Let me see if you guess. What is this? Aliens?</p>
<div style="text-align:center;"><img src="http://blog.bojica.com/wp-content/uploads/2010/01/1001_WeekendAlAin_024.jpg" alt="1001_WeekendAlAin_024.jpg" border="0" width="424" height="318" /></div>
<p>Hmmm&#8230; a door profile:</p>
<div style="text-align:center;"><img src="http://blog.bojica.com/wp-content/uploads/2010/01/1001_WeekendAlAin_027.jpg" alt="1001_WeekendAlAin_027.jpg" border="0" width="424" height="318" /></div>
<p>Well, we were into an oasis, so this is how it looks like:</p>
<div style="text-align:center;"><img src="http://blog.bojica.com/wp-content/uploads/2010/01/1001_WeekendAlAin_030.jpg" alt="1001_WeekendAlAin_030.jpg" border="0" width="424" height="318" /></div>
<p>Let me introduce you now, one of my friends, without which the story will not be complete. His name is Octavian, passionate of photography himself. Here, he is aiming that flower bush&#8230;</p>
<div style="text-align:center;"><img src="http://blog.bojica.com/wp-content/uploads/2010/01/1001_WeekendAlAin_035.jpg" alt="1001_WeekendAlAin_035.jpg" border="0" width="424" height="318" /></div>
<p>or well, not exactly, hmm&#8230; as I hear him saying: <em>A little to the left, no&#8230; no too much, to the right, just a bit. Perfect! And now say, cheese!</em></p>
<div style="text-align:center;"><img src="http://blog.bojica.com/wp-content/uploads/2010/01/1001_WeekendAlAin_037.jpg" alt="1001_WeekendAlAin_037.jpg" border="0" width="424" height="318" /></div>
<p>One more shot of his&#8230;</p>
<div style="text-align:center;"><img src="http://blog.bojica.com/wp-content/uploads/2010/01/1001_WeekendAlAin_044.jpg" alt="1001_WeekendAlAin_044.jpg" border="0" width="424" height="318" /></div>
<p>Time to move on, to the next place, Al Ain Zoo, but just before reaching there we enjoyed photographing our shadows (probably candidate #2 for the <em>hmm</em> moment):</p>
<div style="text-align:center;"><img src="http://blog.bojica.com/wp-content/uploads/2010/01/1001_WeekendAlAin_045.jpg" alt="1001_WeekendAlAin_045.jpg" border="0" width="424" height="318" /></div>
<p>Finaly, <strong>at zoo</strong>&#8230;</p>
<div style="text-align:center;"><img src="http://blog.bojica.com/wp-content/uploads/2010/01/1001_WeekendAlAin_046.jpg" alt="1001_WeekendAlAin_046.jpg" border="0" width="424" height="318" /></div>
<p>It&#8217;s time to introduce Daniel, snacking his popcorn:</p>
<div style="text-align:center;"><img src="http://blog.bojica.com/wp-content/uploads/2010/01/1001_WeekendAlAin_060.jpg" alt="1001_WeekendAlAin_060.jpg" border="0" width="424" height="318" /></div>
<p>So why go to cinema? Popcorns, berry juice, and hey &#8230;  we can see Alvin, live, right here &#8230;</p>
<div style="text-align:center;"><img src="http://blog.bojica.com/wp-content/uploads/2010/01/1001_WeekendAlAin_062.jpg" alt="1001_WeekendAlAin_062.jpg" border="0" width="424" height="318" /></div>
<p>My turn to feel attracted of flowers</p>
<div style="text-align:center;"><img src="http://blog.bojica.com/wp-content/uploads/2010/01/1001_WeekendAlAin_069.jpg" alt="1001_WeekendAlAin_069.jpg" border="0" width="424" height="318" /></div>
<p>&#8230; and flowers (love ya!) &#8230;</p>
<div style="text-align:center;"><img src="http://blog.bojica.com/wp-content/uploads/2010/01/1001_WeekendAlAin_079.jpg" alt="1001_WeekendAlAin_079.jpg" border="0" width="424" height="318" /></div>
<p>Wildlife&#8230; thinking at its supper</p>
<div style="text-align:center;"><img src="http://blog.bojica.com/wp-content/uploads/2010/01/1001_WeekendAlAin_087.jpg" alt="1001_WeekendAlAin_087.jpg" border="0" width="424" height="318" /></div>
<p>couple of fences apart&#8230;</p>
<div style="text-align:center;"><img src="http://blog.bojica.com/wp-content/uploads/2010/01/1001_WeekendAlAin_096.jpg" alt="1001_WeekendAlAin_096.jpg" border="0" width="424" height="318" /></div>
<p>Panorama</p>
<div style="text-align:center;"><img src="http://blog.bojica.com/wp-content/uploads/2010/01/1001_WeekendAlAin_103.jpg" alt="1001_WeekendAlAin_103.jpg" border="0" width="424" height="318" /></div>
<p>Final shots, to remember&#8230;</p>
<div style="text-align:center;"><img src="http://blog.bojica.com/wp-content/uploads/2010/01/1001_WeekendAlAin_106.jpg" alt="1001_WeekendAlAin_106.jpg" border="0" width="318" height="424" /></div>
<p>and</p>
<div style="text-align:center;"><img src="http://blog.bojica.com/wp-content/uploads/2010/01/1001_WeekendAlAin_109.jpg" alt="1001_WeekendAlAin_109.jpg" border="0" width="318" height="424" /></div>
<p>The winner of the <em>quirky, hmmm</em> moment is (laughing, laughing &#038; laughing):</p>
<div style="text-align:center;"><img src="http://blog.bojica.com/wp-content/uploads/2010/01/1001_WeekendAlAin_112.jpg" alt="1001_WeekendAlAin_112.jpg" border="0" width="424" height="318" /></div>
<p>The zoo attraction, white lions:</p>
<div style="text-align:center;"><img src="http://blog.bojica.com/wp-content/uploads/2010/01/1001_WeekendAlAin_124.jpg" alt="1001_WeekendAlAin_124.jpg" border="0" width="424" height="318" /></div>
<p>But it&#8217;s late and my daughter is&#8230; getting tired.</p>
<p><em>Many more moments to come</em>, I warn her.</p>
<p><em>Oh, man!</em> says she, like Swiper the fox from Dora, one of her favourite cartoons.</p>
<div style="text-align:center;"><img src="http://blog.bojica.com/wp-content/uploads/2010/01/1001_WeekendAlAin_126.jpg" alt="1001_WeekendAlAin_126.jpg" border="0" width="424" height="318" /></div>
<p>From here, the last retreat in Heritage Village, then back to Sharjah.</p>
<p>I hope that you like it and I could bring the smile on your face showing you this photo-story.</p>
<p>The last, but not the least, I would like to hear from you, be sincere if you like it or not, and also I am awaiting other crazy ideas for one-weekend adventures. Comments are open &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bojica.com/2010/01/23/weekend-in-al-ain/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What Is That?</title>
		<link>http://blog.bojica.com/2009/05/12/what-is-that</link>
		<comments>http://blog.bojica.com/2009/05/12/what-is-that#comments</comments>
		<pubDate>Tue, 12 May 2009 18:53:54 +0000</pubDate>
		<dc:creator>Silviu D. Bojica</dc:creator>
				<category><![CDATA[Family & Lifestyle]]></category>
		<category><![CDATA[Parenting]]></category>

		<guid isPermaLink="false">http://blog.bojica.com/?p=212</guid>
		<description><![CDATA[A touching short film about parents and parenting. Bellow is the link to the blog from where I have been originally referred to this movie: http://personalgrowthmap.com/blog/]]></description>
			<content:encoded><![CDATA[<p><object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/mNK6h1dfy2o&#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/mNK6h1dfy2o&#038;hl=en&#038;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object></p>
<p>A touching short film about parents and parenting.</p>
<p>Bellow is the link to the blog from where I have been originally referred to this movie: <a href="http://personalgrowthmap.com/blog/ ">http://personalgrowthmap.com/blog/ </a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bojica.com/2009/05/12/what-is-that/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>Setting up Plone to show Dubai time</title>
		<link>http://blog.bojica.com/2009/04/30/setting-up-plone-to-show-dubai-time</link>
		<comments>http://blog.bojica.com/2009/04/30/setting-up-plone-to-show-dubai-time#comments</comments>
		<pubDate>Thu, 30 Apr 2009 19:44:13 +0000</pubDate>
		<dc:creator>Silviu D. Bojica</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Science & Technology]]></category>

		<guid isPermaLink="false">http://blog.bojica.com/?p=200</guid>
		<description><![CDATA[As a short introduction, Plone is an excellent content and document management system. I would not insist on its features and installation as it installs as a normal Mac OS X application. For this, you may find more visiting Plone.org website. In exchange, I will present the issue I had with the timezone for Dubai [...]]]></description>
			<content:encoded><![CDATA[<p>As a short introduction, <em>Plone</em> is an excellent content and document management system. I would not insist on its features and installation as it installs as a normal Mac OS X application. For this, you may find more visiting <a class="external-link" href="http://plone.org">Plone.org</a> website.</p>
<p>In exchange, I will present the issue I had with the timezone for Dubai and the workaround&#8230;</p>
<p>For some reason, the default Plone installation doesn&#8217;t pick the right time for <em>Asia/Dubai</em>.</p>
<p>So I googled back and forward but couldn&#8217;t find the correct answer.</p>
<p align="left">In fact, those tips will work for something like <em>Europe/Berlin</em> (eg setting up <em>TZ</em> variable to <em>Europe/Berlin</em>), but setting up <em>TZ</em> environment variable to <em>Asia/Dubai</em> will give me something like <em>GMT+10</em>? Obviously wrong.</p>
<p>So, the workaround is to set up the <em>TZ</em> environment variable to something more general, like <em>Etc/GMT+4</em>. We don&#8217;t care about daylight saving issues, so it should work all year round.</p>
<p>Enough words, let me know show you some code. Let&#8217;s suppose that you downloaded version 3.2.2 from <a class="external-link" href="http://plone.org/products/plone">http://plone.org/products/plone</a> for Mac OS X and used the Stand Alone installation, then, edit <em>/Applications/Plone/zinstance/buildout.cfg</em> file and locate the following lines under <em>[instance]</em> section:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># You may also control the environment variables for the instance.</span>
environment-vars =
    PYTHON_EGG_CACHE <span style="color: #800000;">${buildout:directory}</span><span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>.python-eggs</pre></div></div>

<p>Now add the TZ environment variable to point to Etc/GMT+4:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># You may also control the environment variables for the instance.</span>
environment-vars =
    PYTHON_EGG_CACHE <span style="color: #800000;">${buildout:directory}</span><span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>.python-eggs
    TZ Etc<span style="color: #000000; font-weight: bold;">/</span>GMT+<span style="color: #000000;">4</span></pre></div></div>

<p>Save the file, then run from your Terminal:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>Applications<span style="color: #000000; font-weight: bold;">/</span>Plone<span style="color: #000000; font-weight: bold;">/</span>zinstance<span style="color: #000000; font-weight: bold;">/</span>
.<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>plonectl stop
.<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>buildout
.<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>plonectl start</pre></div></div>

<p>Now, back in your favourite browser and launch <a class="external-link" href="../../.">http://localhost:8080/Plone</a>.</p>
<p>You would see now, that Plone will report the correct time.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bojica.com/2009/04/30/setting-up-plone-to-show-dubai-time/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keeping session data across subdomains in Rails 2.3.2</title>
		<link>http://blog.bojica.com/2009/04/29/keeping-session-data-across-subdomains-in-rails-232</link>
		<comments>http://blog.bojica.com/2009/04/29/keeping-session-data-across-subdomains-in-rails-232#comments</comments>
		<pubDate>Wed, 29 Apr 2009 15:52:24 +0000</pubDate>
		<dc:creator>Silviu D. Bojica</dc:creator>
				<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[w2task]]></category>

		<guid isPermaLink="false">http://blog.bojica.com/?p=194</guid>
		<description><![CDATA[Upgrading to Rails 2.3.2 I came across with the error of not keeping the session data between subdomains. That meant I had to authenticate each time I would change the subdomain. The fix is simple. Prior to version 2.3.2, I have had something like this in environments/development.rb file: ActionController::Base.session_options[:session_domain] = '.w2task.local' In Rails 2.3.2, I [...]]]></description>
			<content:encoded><![CDATA[<p style="clear: both">Upgrading to Rails 2.3.2 I came across with the error of not keeping the session data between subdomains. That meant I had to authenticate each time I would change the subdomain.</p>
<p style="clear: both">The fix is simple.</p>
<p style="clear: both">
<p style="clear: both">Prior to version 2.3.2, I have had something like this in <em>environments/development.rb</em> file:</p>
<p style="clear: both">
<pre lang="ruby" style="clear: both">ActionController::Base.session_options[:session_domain] = '.w2task.local'
</pre>
<p style="clear: both">
<p style="clear: both">In Rails 2.3.2, I had to change this line into:</p>
<p style="clear: both">
<pre lang="ruby" style="clear: both">config.action_controller.session = {
  :domain => ".w2task.local"
}
</pre>
<p style="clear: both">
<p style="clear: both">Of course, same principle applies to <em>development.rb</em>, where:</p>
<p style="clear: both">
<pre lang="ruby" style="clear: both">config.action_controller.session = {
  :domain => ".w2task.com"
}
</pre>
<p style="clear: both">
<p style="clear: both">I&#8217;ve lost some hours in researching this solution, so I hope this will help others in need. too. As usual, I will be more than happy to hear comments from you.</p>
<p style="clear: both">
<p style="clear: both">Happy coding!</p>
<p><br class="final-break" style="clear: both" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bojica.com/2009/04/29/keeping-session-data-across-subdomains-in-rails-232/feed</wfw:commentRss>
		<slash:comments>1</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>
	</channel>
</rss>

