<?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>imhotep&#039;s blog</title>
	<atom:link href="http://imhotep.koalabs.org/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://imhotep.koalabs.org</link>
	<description>FR-DZ geek in CA</description>
	<lastBuildDate>Tue, 14 May 2013 17:11:12 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>git stashing &amp; branching</title>
		<link>http://imhotep.koalabs.org/?p=148</link>
		<comments>http://imhotep.koalabs.org/?p=148#comments</comments>
		<pubDate>Fri, 14 Sep 2012 01:29:25 +0000</pubDate>
		<dc:creator>imhotep</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://imhotep.koalabs.org/?p=148</guid>
		<description><![CDATA[Just discovered something useful today. Workflow: - I am working on something on my &#8220;master&#8221; branch - I need to update master with some new stuff from a remote. - I don&#8217;t want to mess up with my current changes Here is the best way to do it in my opinion (works with git 1.6 [...]]]></description>
				<content:encoded><![CDATA[<p>Just discovered something useful today. </p>
<p>Workflow:<br />
- I am working on something on my &#8220;master&#8221; branch<br />
- I need to update master with some new stuff from a remote.<br />
- I don&#8217;t want to mess up with my current changes</p>
<p>Here is the best way to do it in my opinion (works with git 1.6 and above).<br />
<code><br />
git stash save "some stash name"<br />
git stash branch stash@{0} # assuming you only have one stash, otherwise <b>git stash list</b> to know the exact index<br />
</code><br />
You changes should end up in the new branch and you can checkout your master branch to get the new changes from the remote repository.</p>
]]></content:encoded>
			<wfw:commentRss>http://imhotep.koalabs.org/?feed=rss2&#038;p=148</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convention over configuration over convention</title>
		<link>http://imhotep.koalabs.org/?p=146</link>
		<comments>http://imhotep.koalabs.org/?p=146#comments</comments>
		<pubDate>Tue, 17 Jul 2012 21:45:55 +0000</pubDate>
		<dc:creator>imhotep</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://imhotep.koalabs.org/?p=146</guid>
		<description><![CDATA[Convention makes everything easy and smooth (Rails, &#8230;). Configuration is long, tedious and painful and . Documentation is great and necessary in both cases. However, I favor Configuration with a set of defaults to magic conventions that are supposed to make my life easy. There are many reasons to this but the main is: &#8220;I [...]]]></description>
				<content:encoded><![CDATA[<p>Convention makes everything easy and smooth (Rails, &#8230;). Configuration is long, tedious and painful and . Documentation is great and necessary in both cases.<br />
However, I favor Configuration with a set of defaults to magic conventions that are supposed to make my life easy. There are many reasons to this but the main is: &#8220;I do not want your thing to get in my way&#8221;. </p>
]]></content:encoded>
			<wfw:commentRss>http://imhotep.koalabs.org/?feed=rss2&#038;p=146</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android: clean &amp; uninstall &amp; package &amp; start app</title>
		<link>http://imhotep.koalabs.org/?p=143</link>
		<comments>http://imhotep.koalabs.org/?p=143#comments</comments>
		<pubDate>Thu, 02 Feb 2012 00:17:23 +0000</pubDate>
		<dc:creator>imhotep</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://imhotep.koalabs.org/?p=143</guid>
		<description><![CDATA[In case you were wondering ant clean &#038;&#038; adb uninstall com.example &#038;&#038; ant debug install &#038;&#038; adb shell am start -a android.intent.action.MAIN -n com.example/.ExampleActivity add -d for a device or -e for emulator.]]></description>
				<content:encoded><![CDATA[<p>In case you were wondering</p>
<p><code>ant clean &#038;&#038; adb uninstall com.example &#038;&#038; ant debug install &#038;&#038; adb shell am start -a android.intent.action.MAIN -n com.example/.ExampleActivity</code></p>
<p>add <em>-d</em> for a device or <em>-e</em> for emulator.</p>
]]></content:encoded>
			<wfw:commentRss>http://imhotep.koalabs.org/?feed=rss2&#038;p=143</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using git-stash with a branch</title>
		<link>http://imhotep.koalabs.org/?p=140</link>
		<comments>http://imhotep.koalabs.org/?p=140#comments</comments>
		<pubDate>Tue, 18 Oct 2011 01:13:14 +0000</pubDate>
		<dc:creator>imhotep</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://imhotep.koalabs.org/?p=140</guid>
		<description><![CDATA[You&#8217;re working on something on master but you want your changes to be transfered to a branch Do this: [17:44:40][akadri@kryptonite:~/Projects/myproject]$ git stash save "message" Saved working directory and index state On master: stash message HEAD is now at 821a965 commit message You can list your stash with: [17:48:09][akadri@kryptonite:~/Projects/myproject]$ git stash list stash@{0}: On master: stash [...]]]></description>
				<content:encoded><![CDATA[<p>You&#8217;re working on something on master but you want your changes to be transfered to a branch</p>
<p>Do this:</p>
<p><code>[17:44:40][akadri@kryptonite:~/Projects/myproject]$ git stash save "message"<br />
Saved working directory and index state On master: stash message<br />
HEAD is now at 821a965 commit message</code></p>
<p>You can list your stash with:</p>
<p><code>[17:48:09][akadri@kryptonite:~/Projects/myproject]$ git stash list<br />
stash@{0}: On master: stash message</code></p>
<p>Now you transfer your changes to a new branch of your choosing and checkout that branch with:</p>
<p><code>[17:51:54][akadri@kryptonite:~/Projects/Wikipedia]$ git stash branch mybranch stash@{0}<br />
Switched to a new branch 'mybranch'</code></p>
<p>That&#8217;s it!</p>
]]></content:encoded>
			<wfw:commentRss>http://imhotep.koalabs.org/?feed=rss2&#038;p=140</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vim tips</title>
		<link>http://imhotep.koalabs.org/?p=135</link>
		<comments>http://imhotep.koalabs.org/?p=135#comments</comments>
		<pubDate>Fri, 03 Jun 2011 22:59:57 +0000</pubDate>
		<dc:creator>imhotep</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://imhotep.koalabs.org/?p=135</guid>
		<description><![CDATA[These three lines in ~/.vimrc just changed my life! let g:netrw_preview = 1 let g:netrw_liststyle = 3 let g:netrw_winsize = 30 and then :Explore works the way it should! Just type &#8220;p&#8221; to open a file in the preview window and bd or bw to delete a buffer (which doesn&#8217;t close the preview window and [...]]]></description>
				<content:encoded><![CDATA[<p>These three lines in ~/.vimrc just changed my life!</p>
<p><code><br />
let g:netrw_preview   = 1<br />
let g:netrw_liststyle = 3<br />
let g:netrw_winsize   = 30<br />
</code></p>
<p>and then :Explore works the way it should! Just type &#8220;p&#8221; to open a file in the preview window and bd or bw to delete a buffer (which doesn&#8217;t close the preview window and that&#8217;s what I like about it!). Ctrl-W-W to switch between Tree selection and preview window.</p>
<p><code>:help explore</code> to learn more</p>
<p>The help file is pretty cryptic but it actually helps!</p>
]]></content:encoded>
			<wfw:commentRss>http://imhotep.koalabs.org/?feed=rss2&#038;p=135</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PhoneGap Bada</title>
		<link>http://imhotep.koalabs.org/?p=127</link>
		<comments>http://imhotep.koalabs.org/?p=127#comments</comments>
		<pubDate>Wed, 20 Apr 2011 23:52:59 +0000</pubDate>
		<dc:creator>imhotep</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://imhotep.koalabs.org/?p=127</guid>
		<description><![CDATA[These past two months I&#8217;ve been working on porting the PhoneGap mobile framework to the Samsung Bada platform at Nitobi. The Bada SDK is in C++ and I hadn&#8217;t touched C++ in years. It was nice to come back to a compiled language tough after years writing scripting/interpreted languages such as Python/Ruby/PHP or Java. So [...]]]></description>
				<content:encoded><![CDATA[<p>These past two months I&#8217;ve been working on porting the <a href="http://www.phonegap.com">PhoneGap</a> mobile framework to the <a href="http://developer.bada.com">Samsung Bada</a> platform at <a href="http://nitobi.com">Nitobi</a>. The <a href="http://developer.bada.com">Bada</a> SDK is in C++ and I hadn&#8217;t touched C++ in years. It was nice to come back to a compiled language tough after years writing scripting/interpreted languages such as Python/Ruby/PHP or Java.</p>
<p>So far everything is pretty much working except Media and File Handlers. <a href="http://www.samsung.com">Samsung</a> was kind enough to send me a <a href="http://www.samsung.com/ca/consumer/mobile/mobile-phones/all-phones/GT-S8500BAMBMC/index.idx?pagetype=prd_detail">Wave GT-8500</a> to test with. Details on how I implemented the thing are available on my nitobi <a href="http://blogs.nitobi.com/anis/?p=79">blog</a>.</p>
<p>The source is available on <a href="http://github.com/phonegap/phonegap-bada">github</a></p>
<p>It is under <a href="http://www.opensource.org/licenses/mit-license.php">MIT License</a></p>
<p>Check it out and share your thoughts/comments!</p>
]]></content:encoded>
			<wfw:commentRss>http://imhotep.koalabs.org/?feed=rss2&#038;p=127</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sed: how to delete N lines after a match</title>
		<link>http://imhotep.koalabs.org/?p=122</link>
		<comments>http://imhotep.koalabs.org/?p=122#comments</comments>
		<pubDate>Tue, 19 Oct 2010 20:02:47 +0000</pubDate>
		<dc:creator>imhotep</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://imhotep.koalabs.org/?p=122</guid>
		<description><![CDATA[sed -e &#8216;/case R\.id\.maps/{N;N;d;} deletes two lines sed -e &#8216;/case R\.id\.maps/{N;N;N;d;} deletes three lines If you know any better way, please share!]]></description>
				<content:encoded><![CDATA[<p>sed -e &#8216;/case R\.id\.maps/{N;N;d;}</p>
<p>deletes two lines</p>
<p>sed -e &#8216;/case R\.id\.maps/{N;N;N;d;}</p>
<p>deletes three lines</p>
<p>If you know any better way, please share!</p>
]]></content:encoded>
			<wfw:commentRss>http://imhotep.koalabs.org/?feed=rss2&#038;p=122</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vim Search/Replace/Increment</title>
		<link>http://imhotep.koalabs.org/?p=121</link>
		<comments>http://imhotep.koalabs.org/?p=121#comments</comments>
		<pubDate>Thu, 25 Mar 2010 19:30:04 +0000</pubDate>
		<dc:creator>imhotep</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://imhotep.koalabs.org/blog/?p=121</guid>
		<description><![CDATA[let&#8217;s say you have this in a text file: item item item and you want to change it to this ordered_item_1 ordered_item_2 ordered_item_3 You can do this in VIM with the following command: let i=1&#124;g/item/s//\=&#8221;ordered_item_&#8221;.i/&#124;let i=i+1 You can do it even more easily using AWK but VIM forever!]]></description>
				<content:encoded><![CDATA[<p>let&#8217;s say you have this in a text file:</p>
<p>item<br />
item<br />
item</p>
<p>and you want to change it to this</p>
<p>ordered_item_1<br />
ordered_item_2<br />
ordered_item_3</p>
<p>You can do this in VIM with the following command:</p>
<p>let i=1|g/item/s//\=&#8221;ordered_item_&#8221;.i/|let i=i+1</p>
<p>You can do it even more easily using AWK but VIM forever!</p>
]]></content:encoded>
			<wfw:commentRss>http://imhotep.koalabs.org/?feed=rss2&#038;p=121</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keep a task running</title>
		<link>http://imhotep.koalabs.org/?p=120</link>
		<comments>http://imhotep.koalabs.org/?p=120#comments</comments>
		<pubDate>Fri, 05 Mar 2010 18:34:26 +0000</pubDate>
		<dc:creator>imhotep</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://imhotep.koalabs.org/blog/?p=120</guid>
		<description><![CDATA[so you&#8217;ve got task that you want to run but you need to leave right away and you have to logout. If you do a &#8220;command &#038;&#8221; it will certainly run and in the background but if you logout it&#8217;ll go away. So how can you keep it running ? With the &#8220;nohup(1)&#8221; utility. Preceed [...]]]></description>
				<content:encoded><![CDATA[<p>so you&#8217;ve got task that you want to run but you need to leave right away and you have to logout.</p>
<p>If you do a &#8220;command &#038;&#8221; it will certainly run and in the background but if you logout it&#8217;ll go away. So how can you keep it running ?<br />
With the &#8220;nohup(1)&#8221; utility. Preceed your command with nohup and end it with &#8220;ampersand &#038;&#8221; and it will detach it from the current tty and spits the output to &#8216;nohup.out&#8221; in the current directory.<br />
You can also apply this if you want to run some program and don&#8217;t want to daemonize it just yet.</p>
<p>This thing helped me twice in the past few days so I bet it will help you too!</p>
]]></content:encoded>
			<wfw:commentRss>http://imhotep.koalabs.org/?feed=rss2&#038;p=120</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Touchscreen smartphones</title>
		<link>http://imhotep.koalabs.org/?p=111</link>
		<comments>http://imhotep.koalabs.org/?p=111#comments</comments>
		<pubDate>Fri, 22 Jan 2010 20:23:17 +0000</pubDate>
		<dc:creator>imhotep</dc:creator>
				<category><![CDATA[Tech]]></category>

		<guid isPermaLink="false">http://imhotep.koalabs.org/blog/?p=111</guid>
		<description><![CDATA[It&#8217;s been a while I have not posted anything on this blog. I am going to talk about smartphones and the hype that surrounds them. It looks like their popularity is picking up and everybody seems to want some kind of smartphone and especially the Apple iPhone. Apple iPhone is such a trend that some [...]]]></description>
				<content:encoded><![CDATA[<p>It&#8217;s been a while I have not posted anything on this blog. I am going to talk about smartphones and the hype that surrounds them. It looks like their popularity is picking up and everybody seems to want some kind of smartphone and especially the Apple iPhone. Apple iPhone is such a trend that some people confuse every existing touchscreen smartphone for an iPhone. Now what is so special about them ? Why are they so popular ?</p>
<p>A lot of people think simplicity and ease of use is the source of the iPhone&#8217;s success. The iPhone does simple things but does them better than anything out there. This might be true and for using it for about a week I can attest of that fact. Bu there are so many things that makes me not want to use this device as an everyday phone:</p>
<ol>
<li>
They lock down everything: Not allowed to install third-party apps not approved by Apple, not allowed to run apps in the background (except Apple&#8217;s own apps), not allowed to run different apps at the same time, forces you to use iTunes to manage your music, not even allowed to transfer your contacts from/to your SIM card&#8230;</li>
<li>
The touch screen: I don&#8217;t think it&#8217;s natural to not get any feedback when they perform a given action. That is especially true for keyboards. I feel faster with T9 than with Apple iPhone&#8217;s onscreen keyboard. I make so many mistakes, It is so frustrating! I hear people get better at it but I don&#8217;t want to adapt to it. I think it should adapt to me since it&#8217;s supposed to make my life easier!
</li>
<li>
The hardware is not even that great: They advertise the camera of the iPhone 3GS as supporting video recording. That has been supported in regular phones for years and that is just an example.</li>
</ul>
<p>So what are they so popular ? Is it really simplicity ? Yes but the real answer is: Marketing/Advertising.<br />
Apple is very good at that. They are the second biggest technology advertiser just behind Microsoft and ahead of IBM and HP that have three time&#8217;s Apple&#8217;s annual sales (according to <a href="http://www.nytimes.com/2009/02/04/business/media/04adco.html">NYT</a>). Their ads are usually targeted and sarcastic. we-do-it-better-than-the-others. They spend hundred millions every year.</p>
<p>One other reason is design: They are also very good at that. It does not need to have a lot under the hood but it&#8217;s got to be shiny! People should look at it and think of how beautiful it looks. &#8220;IT&#8221; can be anything (Computer, Music Player, Phone&#8230;).</p>
<p>So all in all what is it ? A &#8220;gadget&#8221;! A &#8220;toy&#8221; ! I don&#8217;t see professional people nor power users switching to this thing in the future. What are the alternatives ? There are <a href="http://www.cio.com/article/494584/Forget_iPhone_3G_S_Eight_Great_New_iPhone_Alternatives">a lot</a> !</p>
<p>Their current market share is high but it&#8217;s not growing as much as it used to. I think/hope in the end Apple victims will wake up and switch to something else.</p>
]]></content:encoded>
			<wfw:commentRss>http://imhotep.koalabs.org/?feed=rss2&#038;p=111</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
