<?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>CIDSPHERE.COM</title>
	<atom:link href="http://blog.cidsphere.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.cidsphere.com</link>
	<description>A blog about technology, photography and some other things you don't care</description>
	<lastBuildDate>Sun, 07 Aug 2011 13:52:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>OSX Lion installation</title>
		<link>http://blog.cidsphere.com/2011/08/osx-lion-installation/</link>
		<comments>http://blog.cidsphere.com/2011/08/osx-lion-installation/#comments</comments>
		<pubDate>Sat, 06 Aug 2011 18:55:17 +0000</pubDate>
		<dc:creator>Sylvain Filteau</dc:creator>
				<category><![CDATA[OSX]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.cidsphere.com/?p=186</guid>
		<description><![CDATA[List of things I&#8217;ve done after installing OSX Lion Disabling natural scrolling and customizing other gestures Disabling &#8220;All my files&#8221; and reorganizing icons in sidebar of Finder Activating FileVault (and after rebooting, I noticed that all my windows were reopen at the same place !) I discovered that the custom buttons of my mouse (Logitech [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" title="A Lion" src="http://www.onlineartdemos.co.uk/misc_images/on-easel/african-lion-final.jpg" alt="" width="150" height="150" /></p>
<p>List of things I&#8217;ve done after installing OSX Lion</p>
<ol>
<li>Disabling natural scrolling and customizing other gestures</li>
<li>Disabling &#8220;All my files&#8221; and reorganizing icons in sidebar of Finder</li>
<li>Activating FileVault (and after rebooting, I noticed that all my windows were reopen at the same place !)</li>
</ol>
<div>I discovered that the custom buttons of my mouse (Logitech Anywhere Mouse MX) were not working anymore. An <a title="Download the newest driver of the Logitech Anywhere Mouse MX" href="http://www.logitech.com/en-ca/428/5846?section=downloads&amp;bit=&amp;osid=9">update</a> of the driver did fix that.</div>
<div>Now, going to explore everything else while working with it !</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.cidsphere.com/2011/08/osx-lion-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert a CVS repository to GIT</title>
		<link>http://blog.cidsphere.com/2011/04/convert-a-cvs-repository-to-git/</link>
		<comments>http://blog.cidsphere.com/2011/04/convert-a-cvs-repository-to-git/#comments</comments>
		<pubDate>Thu, 21 Apr 2011 01:08:33 +0000</pubDate>
		<dc:creator>Sylvain Filteau</dc:creator>
				<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://blog.cidsphere.com/?p=178</guid>
		<description><![CDATA[Spring is the best season to do some cleaning of your house. Because I bought with my girlfriend a new home last september, I had a lot of unopened box and did a lot of storing this month. One thing I found is an old bundle of CD and DVD filled with backups as old [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.cidsphere.com/wp-content/uploads/2011/04/heartocat.png"><img class="alignright size-full wp-image-182" title="heartocat" src="http://blog.cidsphere.com/wp-content/uploads/2011/04/heartocat.png" alt="" width="230" height="230" /></a>Spring is the best season to do some cleaning of your house. Because I bought with my girlfriend a new home last september, I had a lot of unopened box and did a lot of storing this month. One thing I found is an old bundle of CD and DVD filled with backups as old as ten years ! One of them contained a CVS repository with a project I did in college with a friend : <a title="Github repository of SoundBawx" href="https://github.com/sylvainfilteau/archive-soundbawx">SoundBawx</a>. It&#8217;s a software that applies sound effect on wave files and save it back.</p>
<p>I have undertaken the task of converting the CVS repository to GIT to be able to publish the work on Github. In the past, I&#8217;ve seen a lot of example that converted SVN repository to GIT but never CVS. I did a little search and found the tool <a title="git-cvsimport(1) Manual Page" href="http://www.kernel.org/pub/software/scm/git/docs/git-cvsimport.html">git-cvsimport</a> that is included in the git-cvs package in Ubuntu 10.04. I installed it and imported my repository :</p>
<blockquote>
<pre>$ sudo apt-get install git-cvs
$ mkdir soundbawx
$ cd soundbawx
$ git cvsimport -v -d /path/to/my/CVSROOT/ SoundBawx</pre>
</blockquote>
<p>You should provide the path to your CVSROOT as a parameter of the -d switch and then the name of your module to import.</p>
<p>To see if my history was correctly imported, I checked the log of the repository and I could see that every revision I&#8217;ve done was there. The only problems was that I used my nickname at that time as the author of the commits and every messages was encoded in ISO-8859-1. To correct the identity of my commits and convert the encoding from ISO-8859-1 to UTF-8, I did a little script that filters every commits of my history :</p>
<blockquote>
<pre>#!/bin/sh

git filter-branch -f --msg-filter '
while read LINE do
 	echo $LINE | iconv -f ISO-8859-1 -t utf-8
done '
--commit-filter '
if [ "$GIT_COMMITTER_NAME" = "cid" ];
then
	GIT_COMMITTER_NAME="Sylvain Filteau";
	GIT_AUTHOR_NAME="Sylvain Filteau";
	GIT_COMMITTER_EMAIL="cidsphere@gmail.com";
	GIT_AUTHOR_EMAIL="cidsphere@gmail.com";
	git commit-tree "$@";
else
	git commit-tree "$@";
fi' HEAD</pre>
</blockquote>
<p>Then I made it executable and ran it :</p>
<blockquote>
<pre>$ chmod +x update-history
$ ./update-history</pre>
</blockquote>
<p>The only thing that lasted to do was to rename my .cvsignore to .gitignore :</p>
<blockquote>
<pre>$ git mv .cvsignore .gitignore</pre>
</blockquote>
<p>Looks like an easy task, but at first, not everything was straightforward to do. I had things to figure out, mainly with the correction of identity and character encoding. But I&#8217;m pleased to share with you the steps to do your final conversion !</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cidsphere.com/2011/04/convert-a-cvs-repository-to-git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The poor man way of restoring files from damaged hard drive</title>
		<link>http://blog.cidsphere.com/2009/07/the-poor-man-way-of-restoring-files-from-damaged-hard-drive/</link>
		<comments>http://blog.cidsphere.com/2009/07/the-poor-man-way-of-restoring-files-from-damaged-hard-drive/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 16:15:49 +0000</pubDate>
		<dc:creator>Sylvain Filteau</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[fail]]></category>
		<category><![CDATA[hard drive]]></category>

		<guid isPermaLink="false">http://blog.cidsphere.com/?p=129</guid>
		<description><![CDATA[Recently, the laptop of my boss started to do weird stuff like freezing in Windows Vista at random places. At the beginning, it didn&#8217;t happen frequently but at the end it happened nearly at every boot and teh laptop it was unusable. That&#8217;s where my technician skills enter in the game ! We had really [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-132" title="Crashed hard drive" src="http://blog.cidsphere.com/wp-content/uploads/2009/07/hard-drive-badcrash.jpg" alt="Crashed hard drive" width="270" height="202" />Recently, the laptop of my boss started to do weird stuff like freezing in Windows Vista at random places. At the beginning, it didn&#8217;t happen frequently but at the end it happened nearly at every boot and teh laptop it was unusable. That&#8217;s where my technician skills enter in the game !</p>
<p>We had really good reasons to think that the cause of this pain was a virus. I tried to scan the computer with Windows Live One Care and, sadly, I had no time to complete the scan before another crash. I tried to reboot in safe mode with no luck.</p>
<p>That was the moment I suspected a hardware defectuosity. So I used tools from Dell to check the laptop hardware and it reported a hard drive error. Many files weren&#8217;t backed up and my boss really wanted them back to finish some important stuff. The best way I found to recover all files, even ones that was corrupted, was to make an image of the partition with <em>dd </em>and then mount the image.</p>
<blockquote><p># dd if=/dev/sdb3 of=/home/user/crashed-partition.img conv=noerror iflag=nonblock<br />
# mkdir /media/crashed-part<br />
# mount /home/user/crashed-partition.img /media/crashed-part<br />
# ls /media/crashed-part</p></blockquote>
<p>I could just mount the partition directly but copying files from the bad hard drive skips files affected by bad sectors. These files could be used even if they are damaged so there is no reason to skip them.</p>
<p>That wasn&#8217;t the first time I did that. In 2004, I had a similar problem with an Outlook PST file damaged in the middle. A 1GB file with plenty of emails that I didn&#8217;t want to lose. I did the same procedure and repaired the file with a Microsoft tool&#8230; TADAM!</p>
<p>That&#8217;s the best way I found to do that&#8230; I&#8217;m sure there is better way so feel free to comment other options.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cidsphere.com/2009/07/the-poor-man-way-of-restoring-files-from-damaged-hard-drive/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Strugling with Magento file upload</title>
		<link>http://blog.cidsphere.com/2009/07/strugling-with-magento-file-upload/</link>
		<comments>http://blog.cidsphere.com/2009/07/strugling-with-magento-file-upload/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 01:37:40 +0000</pubDate>
		<dc:creator>Sylvain Filteau</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[file upload]]></category>
		<category><![CDATA[gd]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://blog.cidsphere.com/?p=122</guid>
		<description><![CDATA[It was the first time I played with Magento. I wanted to create an online shop for a library in my city. I must admit, it is a real beast that can do everything you want when running this kind of website. It manages carts, orders, invoices, taxes, mailing lists, promotions, etc. It is highly [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-124" title="Entête d'administration de Magento" src="http://blog.cidsphere.com/wp-content/uploads/2009/07/magento_admin.jpg" alt="Entête d'administration de Magento" width="282" height="84" />It was the first time I played with Magento. I wanted to create an online shop for a library in my city. I must admit, it is a real beast that can do everything you want when running this kind of website. It manages carts, orders, invoices, taxes, mailing lists, promotions, etc. It is highly customizable with template and layout files.</p>
<p>The task of customization of your shop is not a small one but you can find a lot of documentation about this on Google and Magento official website provide a <a href="http://www.magentocommerce.com/design_guide/articles/how-magento-builds-content">nice introduction tutorial</a> to help you with the task.</p>
<p>But there is one thing I lost many hours on to debug : the image uploader. Here was my problem&#8230; when I uploaded my pictures for a product, everything was fine&#8230; my files was on the right folder and the administration panel showed me the pictures. But when I browsed to the product page, the only picture I could see was the default placeholder image of Magento.</p>
<p>After many hours browsing Google and finding no solution, I started to debug directly the source code. I found that the function &#8220;imagecreatefromjpeg&#8221; doesn&#8217;t exist. A quick check on php.net showed me that it was a GD function. GD wasn&#8217;t loaded properly but I thougt I had it ! I did a quick check :</p>
<blockquote><p>$ php -i | grep gd<br />
Configure Command =&gt;  &#8216;./configure&#8217;  &#8216;&#8211;with-apxs2=/usr/bin/apxs2&#8242; &#8216;&#8211;with-gd&#8217; &#8216;&#8211;with-mcrypt&#8217; &#8216;&#8211;with-curl&#8217; &#8216;&#8211;with-zlib&#8217; &#8216;&#8211;with-mysql&#8217; &#8216;&#8211;with-mysqli&#8217; &#8216;&#8211;with-pdo-mysql&#8217; &#8216;&#8211;enable-sockets&#8217; &#8216;&#8211;enable-soap&#8217; &#8216;&#8211;with-pdflib&#8217; &#8216;&#8211;with-xmlrpc&#8217; &#8216;&#8211;disable-cgi&#8217; &#8216;&#8211;with-xsl&#8217; &#8216;&#8211;enable-exif&#8217; &#8216;&#8211;with-config-file-path=/etc&#8217; &#8216;&#8211;without-pdo-sqlite&#8217; &#8216;&#8211;enable-bcmath&#8217;</p></blockquote>
<p>No sign of the module loaded, only the &#8220;&#8211;with-gd&#8221; switch. A search on Google showed me that I should add the switch :</p>
<blockquote><p>&#8211;with-jpeg-dir &#8211;with-png-dir</p></blockquote>
<p>After recompiling PHP, I could see the product images on my Magento installation, HOURA!</p>
<p>Even if it was all my fault if the images wouldn&#8217;t load, is it normal that Magento gived me no advices to solve my problem ?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cidsphere.com/2009/07/strugling-with-magento-file-upload/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Translation technique within a web application</title>
		<link>http://blog.cidsphere.com/2009/05/translation-technique-within-a-web-application/</link>
		<comments>http://blog.cidsphere.com/2009/05/translation-technique-within-a-web-application/#comments</comments>
		<pubDate>Tue, 12 May 2009 21:01:41 +0000</pubDate>
		<dc:creator>Sylvain Filteau</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[translation]]></category>

		<guid isPermaLink="false">http://blog.cidsphere.com/?p=109</guid>
		<description><![CDATA[I want to precise something before starting on the subject. I don&#8217;t search for tools to store my translation memory since I&#8217;m already using the component Zend_Translate of Zend_Framework which is great! What I&#8217;m searching is a technique to translate phrases with word coming from a database. Here is an example of my problem. I [...]]]></description>
			<content:encoded><![CDATA[<p>I want to precise something before starting on the subject. I don&#8217;t search for tools to store my translation memory since I&#8217;m already using the component <a href="http://framework.zend.com/manual/en/zend.translate.html">Zend_Translate</a> of <a href="http://framework.zend.com">Zend_Framework</a> which is great! What I&#8217;m searching is a technique to translate phrases with word coming from a database.</p>
<p>Here is an example of my problem. I want to translate the phrase « Delete the {obj} » where {obj} can be anyone of these words : project, component, activity, task. All these words are in a table and can change in time and I want to use them in other context. In english, that&#8217;s fairly simple, you just have to replace {obj} with the word you want to use in your page.</p>
<p>But in french you can&#8217;t do just that, you have to deal with the gender of words. For example, the same phrase in french looks like « Supprimer {pronoun} {obj} » where {pronoun} is « le » for the word « project », « la » for « composante » and « tâche », finally « l&#8217; » for the word « activité ».</p>
<p>And this is just one example! What should I do when I add some plural form in the mix ? And what happen with other languages like portuguese and spanish? The worst thing about that is that I can&#8217;t find anyting about that in Google&#8230;</p>
<p>I have some solution in mind but I want to know how other people are doing it before doing my own implementation. When I have something, I will post my solution here.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cidsphere.com/2009/05/translation-technique-within-a-web-application/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Welcome to my new blog!</title>
		<link>http://blog.cidsphere.com/2009/02/welcome-to-my-new-blog/</link>
		<comments>http://blog.cidsphere.com/2009/02/welcome-to-my-new-blog/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 01:47:59 +0000</pubDate>
		<dc:creator>Sylvain Filteau</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[welcome]]></category>

		<guid isPermaLink="false">http://localhost/~sylvain/blog/?p=100</guid>
		<description><![CDATA[As the title said it, this is my new blog, but not the first one. I used to write my blog in french using Blogger. I have configured Blogger to upload my pages to my server and it was fine for a long time. But now, I want to integrate twitter, flickr, facebook and other [...]]]></description>
			<content:encoded><![CDATA[<p>As the title said it, this is my new blog, but not the first one. I used to write my blog in french using Blogger. I have configured Blogger to upload my pages to my server and it was fine for a long time. But now, I want to integrate twitter, flickr, facebook and other websites that I participate and using Blogger in this configuration was an obstacle. Sure, I could write javascripts code that load my last twitter status like I&#8217;ve done with my latest flickr sets but I don&#8217;t want to hack my old blog anymore, and wordpress have all these plugins that do this for me.</p>
<p>The thing that motivated me to start over is that I wanted to write it in english. It&#8217;s been a long time that I wanted to write in the Shakespeare language but feared that my level was too low. Since a few years, I traveled in countries where I must speak in english (<a title="My Bermuda pictures on flickr" href="http://www.flickr.com/photos/cid/collections/72157614442454829/">Bermuda</a>, <a title="My USA pictures on flickr" href="http://www.flickr.com/photos/cid/collections/72157614525623750/">USA</a>, <a title="My Mexico pictures on flickr" href="http://www.flickr.com/photos/cid/sets/72157604671808124/">Mexico</a>), I spoke with english speaking people, try to watch a lot of english movies and tv shows (these aren&#8217;t just a lost of time finally!) and read a lot in english. So now I&#8217;m a lot more confident that I can do it. I hope these changes will attract more reader for who likes technology and photography like me.</p>
<p>If you are searching for my old blog, you can reach it at the old address : <a title="My old blog" href="http://www.cidsphere.com/blog">http://www.cidsphere.com/blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.cidsphere.com/2009/02/welcome-to-my-new-blog/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
