<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>making things work</title>
	
	<link>http://blog.tinucleatus.com</link>
	<description>humble thoughts..</description>
	<lastBuildDate>Thu, 05 Nov 2009 08:54:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/MakingThingsWork" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>Git create branch shell script</title>
		<link>http://blog.tinucleatus.com/?p=287</link>
		<comments>http://blog.tinucleatus.com/?p=287#comments</comments>
		<pubDate>Sun, 01 Nov 2009 16:24:33 +0000</pubDate>
		<dc:creator>Tinu Cleatus</dc:creator>
				<category><![CDATA[Quick Tips]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://blog.tinucleatus.com/?p=287</guid>
		<description><![CDATA[I&#8217;m finding it a bit difficult to memorize the correct procedure to create a new remote branch in git and start tracking it locally. This is a basic shell script that does it so that you don&#8217;t have to go through the procedure every time you want to create a new git branch.
Script
#!/bin/sh
# git-create-branch &#60;branch_name&#62;
&#160;
if [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m finding it a bit difficult to memorize the correct procedure to create a new remote branch in git and start tracking it locally. This is a basic shell script that does it so that you don&#8217;t have to go through the procedure every time you want to create a new git branch.</p>
<p><strong>Script</strong></p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/sh</span><br />
<span style="color: #666666; font-style: italic;"># git-create-branch &lt;branch_name&gt;</span><br />
&nbsp;<br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #007800;">$#</span> <span style="color: #660033;">-ne</span> 1 <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #7a0874; font-weight: bold;">echo</span> 1<span style="color: #000000; font-weight: bold;">&gt;&amp;</span>2 Usage: $0 branch_name<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #7a0874; font-weight: bold;">exit</span> 127<br />
<span style="color: #000000; font-weight: bold;">fi</span><br />
&nbsp;<br />
<span style="color: #007800;">branch_name</span>=$1<br />
git push origin master:refs<span style="color: #000000; font-weight: bold;">/</span>heads<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$branch_name</span><br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;git push origin master:refs/heads/<span style="color: #007800;">$branch_name</span>&quot;</span><br />
git fetch origin<br />
git checkout <span style="color: #660033;">--track</span> <span style="color: #660033;">-b</span> <span style="color: #007800;">$branch_name</span> origin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$branch_name</span><br />
git pull</div></div>
<p><strong>Installation</strong></p>
<p>Put this somewhere on your system and make it executable and create a symbolic link. I have it like this on my mac.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>Users<span style="color: #000000; font-weight: bold;">/</span>Tinu<span style="color: #000000; font-weight: bold;">/</span>.bash_scripts<span style="color: #000000; font-weight: bold;">/</span>git-create-branch.sh <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>git-create-branch</div></div>
<p><strong>Usage</strong></p>
<p>As said in the script itself, use the script by git-create-branch &lt;branch_name&gt; inside a git repo in your system. Oh, you may want to create a bash alias too if you are that lazy like me.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tinucleatus.com/?feed=rss2&amp;p=287</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TwitNews Keyboard Shortcut</title>
		<link>http://blog.tinucleatus.com/?p=281</link>
		<comments>http://blog.tinucleatus.com/?p=281#comments</comments>
		<pubDate>Sat, 19 Sep 2009 07:00:53 +0000</pubDate>
		<dc:creator>Tinu Cleatus</dc:creator>
				<category><![CDATA[AppleScript]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[netnewswire]]></category>
		<category><![CDATA[safari]]></category>
		<category><![CDATA[twitnews]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://blog.tinucleatus.com/?p=281</guid>
		<description><![CDATA[
Some time ago, I wrote an applescript &#8216;TwitNews&#8216; for posting link to news items to Twitter from NetNewsWire. Many people seemed to find it useful and I&#8217;m happy about it. Today morning I got an email about how he used Spark app to create a keyboard shortcut to use the script. That is really useful [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="aligncenter" title="TwitNews Keyboard Shortcut" src="http://grabs.tinucleatus.com/TwitNews%20-%20Keyboard%20Shortcut.png" alt="" width="538" height="491" /></p>
<p>Some time ago, I wrote an applescript &#8216;<a href="http://blog.tinucleatus.com/?p=204">TwitNews</a>&#8216; for posting link to news items to Twitter from NetNewsWire. Many people seemed to find it useful and I&#8217;m happy about it. Today morning I got an email about how he used <a href="http://www.shadowlab.org/Software/spark.php" onclick="pageTracker._trackPageview('/outgoing/www.shadowlab.org/Software/spark.php?referer=');">Spark</a> app to create a keyboard shortcut to use the script. That is really useful because you dont have to select TwitNews from the scripts menu anymore. Instead just hit the assigned keyboard shortcut. That really gives it a native feeling. Unfortunately, I could not get Spark to work. Instead I found that it is much easier to use Mac OS X inbuilt feature in System Preferences -&gt; Keyboard &amp; Mouse -&gt; Keyboard Shortcuts.</p>
<p>Just create a new keyboard shortcut with the Application as NetNewsWire, Menu title as &#8216;TwitNews&#8217; if you haven&#8217;t renamed the script when you put it inside the scripts folder, and your desired keyboard shortcut. I chose ⌃T as it is the same shortcut with <a href="http://www.newsfirex.com/safari140/" onclick="pageTracker._trackPageview('/outgoing/www.newsfirex.com/safari140/?referer=');">Safari140</a> which is a useful tool to post stuff to Twitter from Safari (if you didn&#8217;t know).</p>
<p>Thanks to Ian Tornay for the idea of keyboard shortcuts!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tinucleatus.com/?feed=rss2&amp;p=281</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Show git branch on terminal</title>
		<link>http://blog.tinucleatus.com/?p=275</link>
		<comments>http://blog.tinucleatus.com/?p=275#comments</comments>
		<pubDate>Thu, 16 Jul 2009 21:34:46 +0000</pubDate>
		<dc:creator>Tinu Cleatus</dc:creator>
				<category><![CDATA[Quick Tips]]></category>
		<category><![CDATA[Terminal]]></category>

		<guid isPermaLink="false">http://blog.tinucleatus.com/?p=275</guid>
		<description><![CDATA[Find yourself switching git branches every now and then and hitting git branch just to know what branch you are currently on ? Let your Terminal help you with that. Just paste this to your ~/.bash_profile.
export PS1=&#34;\[\033[00m\]\u@\h\[\033[00m\]:\[\033[00m\]\w\[\033[00m\] \`ruby -e \&#34;print (%x{git branch 2&#62; /dev/null}.grep(/^\*/).first &#124;&#124; '').gsub(/^\* (.+)$/, '(\1) ')\&#34;\`\[\033[00m\]$\[\033[00m\] &#34;
This will give you :
username@computer-name:~/code/project (branch) [...]]]></description>
			<content:encoded><![CDATA[<p>Find yourself switching git branches every now and then and hitting git branch just to know what branch you are currently on ? Let your Terminal help you with that. Just paste this to your ~/.bash_profile.</p>
<div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">PS1</span>=<span style="color: #ff0000;">&quot;\[\033[00m\]\u@\h\[\033[00m\]:\[\033[00m\]\w\[\033[00m\] \<span style="color: #780078;">`ruby -e \&quot;print (%x{git branch 2&gt; /dev/null}.grep(/^\*/).first || '').gsub(/^\* (.+)$/, '(\1) ')\&quot;\`</span>\[\033[00m\]$\[\033[00m\] &quot;</span></div></div>
<p>This will give you :<br />
username@computer-name:~/code/project (branch) $</p>
<p>Go ! Try it out :)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tinucleatus.com/?feed=rss2&amp;p=275</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Push notifications put to best use</title>
		<link>http://blog.tinucleatus.com/?p=261</link>
		<comments>http://blog.tinucleatus.com/?p=261#comments</comments>
		<pubDate>Tue, 07 Jul 2009 06:21:20 +0000</pubDate>
		<dc:creator>Tinu Cleatus</dc:creator>
				<category><![CDATA[Mac]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[growl]]></category>
		<category><![CDATA[jailbreak]]></category>
		<category><![CDATA[prowl]]></category>
		<category><![CDATA[push-notifications]]></category>

		<guid isPermaLink="false">http://blog.tinucleatus.com/?p=261</guid>
		<description><![CDATA[
Just came across this cool iPhone app called &#8220;Prowl&#8221; which pushes growl notifications on your mac to your iPhone. An awsome way of using push notifications introduced in iPhone OS 3.0. I knew this app was going to be useful that I finally made up my mind to jailbreak my device. Yes, I have an [...]]]></description>
			<content:encoded><![CDATA[<div  style="text-align:center"><span style="padding:10px"><a href="http://grabs.tinucleatus.com/Prowl---Preferences.png" rel="lightbox[261]" onclick="pageTracker._trackPageview('/outgoing/grabs.tinucleatus.com/Prowl---Preferences.png?referer=');"><img src="http://grabs.tinucleatus.com/Prowl---Preferences.png" alt="Prowl - Preferences" width="360px"/></a></span><span style="padding:10px"><a href="http://grabs.tinucleatus.com/prowl-push.png" rel="lightbox[261]" onclick="pageTracker._trackPageview('/outgoing/grabs.tinucleatus.com/prowl-push.png?referer=');"><img src="http://grabs.tinucleatus.com/prowl-push.png" alt="prowl-push" width="220px"/></a></span></div>
<p>Just came across this cool iPhone app called &#8220;Prowl&#8221; which pushes growl notifications on your mac to your iPhone. An awsome way of using push notifications introduced in iPhone OS 3.0. I knew this app was going to be useful that I finally made up my mind to jailbreak my device. Yes, I have an unlocked iPhone and somehow you need to <a href="http://www.sizlopedia.com/2009/07/06/enable-push-notifications-on-iphone-3-0/" onclick="pageTracker._trackPageview('/outgoing/www.sizlopedia.com/2009/07/06/enable-push-notifications-on-iphone-3-0/?referer=');">hack it</a> to activate push notifications.</p>
<p>A lot of mac apps I have come across uses growl and it has been an inevitable part of my mac setup. So, any growl notification you get on your mac gets routed to your iPhone. This means that you can set Tweetie on mac to growl when you have a mention or direct message, which is then routed to Prowl&#8217;s servers and onto your iPhone. Furthermore, you can configure to growl when you get new emails (GrowlMail), or when someone sends you a message on Adium &#8211; really useful so that you can know if someone messaged you on IM when you&#8217;re away from your mac.</p>
<p>Prowl lets you customize it by giving options like send to iPhone only if you are away from your mac for a certain amount of your time. Which is sensible, you really dont want to get push notified when you are in front of your mac. Prowl works with a Growl plugin and its <a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=320876271&#038;mt=8" onclick="pageTracker._trackPageview('/outgoing/itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=320876271_038_mt=8&amp;referer=');">iPhone app</a>. You also need to register on their <a href="http://prowl.weks.net/" onclick="pageTracker._trackPageview('/outgoing/prowl.weks.net/?referer=');">website</a> to activate it.</p>
<p>Even tried this on EDGE and seems to work fine. But sometimes, there is a lag in pushing notifications which is not impressive. Also, after enabling push notifications, I found that the battery life has gradually decreased. But, I think this app is really worth it.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tinucleatus.com/?feed=rss2&amp;p=261</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Trying out geolocation in Mobile Safari</title>
		<link>http://blog.tinucleatus.com/?p=256</link>
		<comments>http://blog.tinucleatus.com/?p=256#comments</comments>
		<pubDate>Mon, 06 Jul 2009 23:02:33 +0000</pubDate>
		<dc:creator>Tinu Cleatus</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[safari]]></category>

		<guid isPermaLink="false">http://blog.tinucleatus.com/?p=256</guid>
		<description><![CDATA[ 
See the full gallery on posterous
Via http://mapscripting.com/how-to-use-geolocation-in-mobile-safari &#160;Try it out on your iPhone http://bit.ly/w3cgeo
  Posted via email   from small talk  
]]></description>
			<content:encoded><![CDATA[<p><span style="padding:10px"><img src="http://posterous.com/getfile/files.posterous.com/hackedunit/nStkvFwnl4AFJa1rKz6gEpt84y2eRmCIHTGrVuC0S06OWkBGVP3oHir5ZjoO/IMG_0112.png" width="220px"/></span><span style="padding:10px"> <img src="http://posterous.com/getfile/files.posterous.com/hackedunit/OuojK9FUo2NHruz4sRVfdHuOlHIfF0AnrGqsXOFGW9aFT4Pj57sElWUV1dWO/IMG_0114.png" width="220px"/></span></p>
<p><a href='http://posts.tinucleatus.com/trying-out-geolocation-in-mobile-safari' onclick="pageTracker._trackPageview('/outgoing/posts.tinucleatus.com/trying-out-geolocation-in-mobile-safari?referer=');">See the full gallery on posterous</a>
<p>Via <a href="http://mapscripting.com/how-to-use-geolocation-in-mobile-safari" onclick="pageTracker._trackPageview('/outgoing/mapscripting.com/how-to-use-geolocation-in-mobile-safari?referer=');">http://mapscripting.com/how-to-use-geolocation-in-mobile-safari</a> <br />&nbsp;<br />Try it out on your iPhone <a href="http://bit.ly/w3cgeo" onclick="pageTracker._trackPageview('/outgoing/bit.ly/w3cgeo?referer=');">http://bit.ly/w3cgeo</a></p>
<p style="font-size: 10px;">  <a href="http://posterous.com" onclick="pageTracker._trackPageview('/outgoing/posterous.com?referer=');">Posted via email</a>   from <a href="http://posts.tinucleatus.com/trying-out-geolocation-in-mobile-safari" onclick="pageTracker._trackPageview('/outgoing/posts.tinucleatus.com/trying-out-geolocation-in-mobile-safari?referer=');">small talk</a>  </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.tinucleatus.com/?feed=rss2&amp;p=256</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
