<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>jo-say-yan</title>
	<atom:link href="http://josian.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://josian.wordpress.com</link>
	<description>Just another Wordpress.com weblog</description>
	<lastBuildDate>Fri, 11 Nov 2011 06:55:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='josian.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>jo-say-yan</title>
		<link>http://josian.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://josian.wordpress.com/osd.xml" title="jo-say-yan" />
	<atom:link rel='hub' href='http://josian.wordpress.com/?pushpress=hub'/>
		<item>
		<title>My favourite cake</title>
		<link>http://josian.wordpress.com/2010/04/24/my-favourite-cake/</link>
		<comments>http://josian.wordpress.com/2010/04/24/my-favourite-cake/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 00:29:36 +0000</pubDate>
		<dc:creator>josian</dc:creator>
				<category><![CDATA[Stuffs]]></category>

		<guid isPermaLink="false">https://josian.wordpress.com/2010/04/24/my-favourite-cake/</guid>
		<description><![CDATA[Friands!!!!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=josian.wordpress.com&amp;blog=171479&amp;post=109&amp;subd=josian&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Friands!!!!</p>
<p><a href="http://josian.files.wordpress.com/2010/04/p_2048_1536_8d2b0973-ec1c-4e10-beaf-7f9e2ead40d8.jpeg"><img src="http://josian.files.wordpress.com/2010/04/p_2048_1536_8d2b0973-ec1c-4e10-beaf-7f9e2ead40d8.jpeg?w=500" alt="" class="alignnone size-full" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/josian.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/josian.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/josian.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/josian.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/josian.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/josian.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/josian.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/josian.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/josian.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/josian.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/josian.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/josian.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/josian.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/josian.wordpress.com/109/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=josian.wordpress.com&amp;blog=171479&amp;post=109&amp;subd=josian&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://josian.wordpress.com/2010/04/24/my-favourite-cake/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be6e20209f97136175027551f30cc099?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">josian</media:title>
		</media:content>

		<media:content url="http://josian.files.wordpress.com/2010/04/p_2048_1536_8d2b0973-ec1c-4e10-beaf-7f9e2ead40d8.jpeg" medium="image" />
	</item>
		<item>
		<title>Grep &amp; Awk</title>
		<link>http://josian.wordpress.com/2010/04/23/grep-awk/</link>
		<comments>http://josian.wordpress.com/2010/04/23/grep-awk/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 03:27:40 +0000</pubDate>
		<dc:creator>josian</dc:creator>
				<category><![CDATA[System]]></category>

		<guid isPermaLink="false">http://josian.wordpress.com/2010/04/23/grep-awk/</guid>
		<description><![CDATA[grep Text filename* &#124; grep pattern &#124; awk '{ if ( $3 == '\t' ) { print $2 " " $4 " " $12 } }{FS="\t+"}'<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=josian.wordpress.com&amp;blog=171479&amp;post=106&amp;subd=josian&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><code>grep Text filename* | grep pattern | awk '{ if ( $3 == '\t' ) { print $2 " " $4 " " $12 } }{FS="\t+"}' </code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/josian.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/josian.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/josian.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/josian.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/josian.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/josian.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/josian.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/josian.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/josian.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/josian.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/josian.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/josian.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/josian.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/josian.wordpress.com/106/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=josian.wordpress.com&amp;blog=171479&amp;post=106&amp;subd=josian&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://josian.wordpress.com/2010/04/23/grep-awk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be6e20209f97136175027551f30cc099?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">josian</media:title>
		</media:content>
	</item>
		<item>
		<title>My First (Strophe) Air App</title>
		<link>http://josian.wordpress.com/2009/04/20/my-first-strophe-air-app/</link>
		<comments>http://josian.wordpress.com/2009/04/20/my-first-strophe-air-app/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 05:05:07 +0000</pubDate>
		<dc:creator>josian</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Open Fire]]></category>
		<category><![CDATA[Strohpe JS]]></category>

		<guid isPermaLink="false">http://josian.wordpress.com/?p=84</guid>
		<description><![CDATA[First Attempt at writing an AIR (Adobe Integrated Runtime) application. It&#8217;s a simple chat &#8220;widget&#8221; that users install and allow to chat with &#8220;Jane&#8221;, who can be a &#8220;helpdesk&#8221; or &#8220;expert&#8221; or &#8220;customer service&#8221;. I call it &#8220;VJ&#8221;. The environment &#8230; <a href="http://josian.wordpress.com/2009/04/20/my-first-strophe-air-app/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=josian.wordpress.com&amp;blog=171479&amp;post=84&amp;subd=josian&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>First Attempt at writing an AIR (Adobe Integrated Runtime) application. It&#8217;s a simple chat &#8220;widget&#8221; that users install and allow to chat with &#8220;Jane&#8221;, who can be a &#8220;helpdesk&#8221; or &#8220;expert&#8221; or &#8220;customer service&#8221;. I call it &#8220;VJ&#8221;.</p>
<p>The environment that I chose to run it after some searching and recommendations is:</p>
<ol>
<li><a href="http://www.igniterealtime.org/projects/openfire/index.jsp" target="_blank">Open Fire</a> &#8211; This is really the chat server using XMPP (jabber)</li>
<li><a href="http://code.stanziq.com/strophe/wiki" target="_blank">StropheJS</a> &#8211; This is the XMPP JS library that I choose to use.</li>
</ol>
<p><strong>Setting up Open Fire </strong></p>
<p>Setting up Open Fire was relatively easy. I basically followed the steps from the <a href="http://www.igniterealtime.org/builds/openfire/docs/latest/documentation/install-guide.html" target="_blank">documentation</a> and help from <a href="http://www.malcollier.com/?p=14" target="_blank">Malcom</a> .</p>
<p>However 2 things complicate matters.</p>
<ol>
<li>I am running Open Fire behind a firewall so needed to set up a Reverse Proxy in order to configure it.</li>
<li>VJ&#8217;s maybe running behind a firewall too. So Open Fire needs to be able to communicate on port 80 as well. Luckily Open Fire supports &#8220;http-bind&#8221; so I just need to set it up.</li>
</ol>
<p><strong>Reverse Proxy for Open Fire and HTTP-BIND<br />
</strong></p>
<p>In order to configure Open Fire, I need to access the port 9090. But I can&#8217;t change the firewall. So instead, set up a Virtual Host to (Reverse) proxy it. This is also where I administer my Open Fire server.</p>
<p>/etc/httpd.conf</p>
<blockquote><p><code><br />
&lt;VirtualHost openfire.mydomain.com&gt;<br />
ServerName openfire.mydomain.com</code><br />
<code>ServerAlias openfire.mydomain.com</code><br />
<code>ProxyRequests Off </code><br />
<code>ProxyPass / http://127.0.0.1:9090</code><br />
<code>ProxyPassReverse / http://127.0.0.1:9090 </code><br />
<code>&lt;/VirtualHost&gt;</code></p></blockquote>
<p>Now I can configure Open Fire by going to http://openfire.mydomain.com/ without the 9090 port reversed proxied. <a href="http://www.tonybhimani.com/2007/12/31/openfire-jabberxmpp-server-on-centos-mini-howto/" target="_blank">example</a></p>
<p><em><span style="text-decoration:underline;">Important (for HTTP-BIND)<br />
</span></em></p>
<p>Configure the Server/Domain Name to be Another sub-domain &#8211; instead of openfire.mydomain.com, use <em>chat.mydomain.com</em> because</p>
<ol>
<li>openfire.mydomain. com is reverse proxied for administration only and chat.mydomain.com is the server/domain of the XMPP server that clients will connect to.</li>
<li>So chat.mydomain.com needs 5222 open for chat clients talking XMPP. But because I am behind a firewall and chat clients may also be behind a firewall, we cannot use 5222 to communicate.</li>
<li>Luckily Open Fire has HTTP-BIND, that means it can talk HTTP that wraps the XMPP. But HTTP-BIND runs on port 7070.</li>
<li>Since I cannot open 7070 in the firewall. I need to Reverse Proxy this as well so that clients can use a normal looking URL to talk HTTP(XMPP) to.</li>
</ol>
<p>/etc/httpd.conf</p>
<blockquote><p><code> &lt;VirtualHost chat.mydomain.com&gt;</code><br />
<code>ServerName chat.mydomain.com<br />
ServerAlias chat.mydomain.com </code><br />
<code>ProxyRequests Off</code><br />
<code>ProxyPass /http-bind http://127.0.0.1:7070/http-bind/<br />
ProxyPassReverse /http-bind http://127.0.0.1:7070/http-bind/</code><br />
<code>&lt;/VirtualHost&gt;</code></p></blockquote>
<p><strong>SparkWeb<br />
</strong></p>
<p>I need also a web chat client for JANE, the &#8220;helpdesk&#8221; agent. so I installed <a href="http://www.igniterealtime.org/projects/sparkweb/" target="_blank">Spark Web</a>. Installing it is straight forward too. download it and put it in the server.</p>
<blockquote><p><code>&lt;VirtualHost chat.mydomain.com&gt;<br />
...<br />
&lt;Directory "/usr/local/sparkweb"&gt;<br />
AllowOverride All<br />
Order deny,allow<br />
&lt;/Directory&gt;<br />
&lt;/VirtualHost&gt;<br />
</code></p></blockquote>
<p>and edit the index.html</p>
<blockquote><p><code><br />
function jive_sparkweb_getConfig()<br />
{<br />
return {<br />
server: "localhost",<br />
connectionType: "http",<br />
port: "80"<br />
};<br />
}</code></p></blockquote>
<p><strong>Now Start Coding!!</strong></p>
<p>I use these for development.</p>
<ol>
<li>Eclipse IDE</li>
<li>Aptana Studio</li>
</ol>
<p>With the help of the samples from Aptana, I was able to get started with a chrome window for my chat widget. However, the main task for me here is to integrate with the Strophe JS.</p>
<p><strong>Integrate with Strophe.js<br />
</strong></p>
<p>Basically I modified echobot.js since it already provides the Login and onMessage Handler.</p>
<p><em><span style="text-decoration:underline;">First include all the necessary Strophe .js files.</span></em></p>
<blockquote><p><code>....</code><br />
<code>&lt;script language='javascript' type='text/javascript' src='lib/strophejs/strophe.js'&gt;&lt;/script&gt;</code><br />
<code>...</code></p></blockquote>
<p><em><span style="text-decoration:underline;">BOSH SERVICE </span></em><strong>(credit to <a href="http://www.malcollier.com/?p=14" target="_blank">Malcom</a>)</strong></p>
<p>specify the BOSH Service url</p>
<blockquote><p><code>var BOSH_SERVICE = "http://chat.mydomain.com/http-bind";</code></p></blockquote>
<p><em><span style="text-decoration:underline;">Login</span></em></p>
<p>The login function is straight forward, except I am fixing the domain so that the client (user) need not remember it.</p>
<blockquote><p><code>var DOMAIN = "chat.mydomain.com";</code></p>
<p>&#8230;.</p>
<p>connection.connect($(&#8216;#jid&#8217;).get(0).value + &#8220;@&#8221; + DOMAIN, $(&#8216;#pass&#8217;).get(0).value, onConnect);</p>
<p>&#8230;.<em><span style="text-decoration:underline;"><br />
</span></em></p></blockquote>
<p><em><span style="text-decoration:underline;">Send Message</span></em></p>
<ul>
<li>This function just sends the message, here I pass in the elemid which is a textarea.</li>
<li>and JANE is my &#8220;helpdesk&#8221; so this widget only can only chat with her.</li>
<li>sends a .c(&#8220;body&#8221;).t(text) instead of cnode(body)</li>
<li>clears the textarea</li>
</ul>
<blockquote><p><code>var JANE = "Jane@chat.mydomain.com";</code><br />
<code><br />
function sendMessage(elemid){</code><br />
<code>if (connection.connected &amp;&amp; connection.authenticated) {</code><br />
<code>var text = $('#' + elemid).get(0).value;<br />
if (text.length &gt; 0) {<br />
var from = Strophe.getNodeFromJid(connection.jid);<br />
var to = JANE;<br />
var reply = $msg({<br />
to: JANE,<br />
from: connection.jid,<br />
type: "chat"<br />
}).c("body").t(text);</code></p>
<p><code> connection.send(reply.tree());<br />
log(text, "from");<br />
</code></p>
<p><code> $('#' + elemid).get(0).value = "";<br />
}</code><br />
<code>}<br />
else {<br />
log("You have to log in before you can ask Jane");<br />
}<br />
}</code></p></blockquote>
<p><em><span style="text-decoration:underline;">Receive Message</span></em></p>
<ul>
<li>This function is a registered handler when a message arrives</li>
</ul>
<blockquote><p><code> function onMessage(msg){<br />
var to = msg.getAttribute('to');<br />
var from = msg.getAttribute('from');<br />
var type = msg.getAttribute('type');<br />
var elems = msg.getElementsByTagName('body');</code><br />
<code><br />
if (type == "chat" &amp;&amp; elems.length &gt; 0) { </code><code><br />
var body = elems[0];<br />
log(Strophe.getText(body), "to");<br />
}<br />
</code></p>
<p><code>return true;<br />
}</code></p></blockquote>
<p><em><span style="text-decoration:underline;"><br />
</span></em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/josian.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/josian.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/josian.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/josian.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/josian.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/josian.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/josian.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/josian.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/josian.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/josian.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/josian.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/josian.wordpress.com/84/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/josian.wordpress.com/84/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/josian.wordpress.com/84/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=josian.wordpress.com&amp;blog=171479&amp;post=84&amp;subd=josian&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://josian.wordpress.com/2009/04/20/my-first-strophe-air-app/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be6e20209f97136175027551f30cc099?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">josian</media:title>
		</media:content>
	</item>
		<item>
		<title>chmod 755 for dir 644 for files</title>
		<link>http://josian.wordpress.com/2009/01/16/chmod-755-for-dir-644-for-files/</link>
		<comments>http://josian.wordpress.com/2009/01/16/chmod-755-for-dir-644-for-files/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 07:02:20 +0000</pubDate>
		<dc:creator>josian</dc:creator>
				<category><![CDATA[System]]></category>
		<category><![CDATA[*nix]]></category>

		<guid isPermaLink="false">http://josian.wordpress.com/?p=82</guid>
		<description><![CDATA[find . -type d -print0 &#124; xargs -0 chmod 0775 # For directories find . -type f -print0 &#124; xargs -0 chmod 0664 # For files<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=josian.wordpress.com&amp;blog=171479&amp;post=82&amp;subd=josian&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>find . -type d -print0 | xargs -0 chmod 0775 # For directories<br />
find . -type f -print0 | xargs -0 chmod 0664 # For files</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/josian.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/josian.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/josian.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/josian.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/josian.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/josian.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/josian.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/josian.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/josian.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/josian.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/josian.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/josian.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/josian.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/josian.wordpress.com/82/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=josian.wordpress.com&amp;blog=171479&amp;post=82&amp;subd=josian&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://josian.wordpress.com/2009/01/16/chmod-755-for-dir-644-for-files/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be6e20209f97136175027551f30cc099?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">josian</media:title>
		</media:content>
	</item>
		<item>
		<title>Mac OS X defaults : Add recents to Dock nearly killed my Dock</title>
		<link>http://josian.wordpress.com/2008/09/17/mac-os-x-defaults-add-recents-to-dock-nearly-killed-my-dock/</link>
		<comments>http://josian.wordpress.com/2008/09/17/mac-os-x-defaults-add-recents-to-dock-nearly-killed-my-dock/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 02:34:41 +0000</pubDate>
		<dc:creator>josian</dc:creator>
				<category><![CDATA[System]]></category>
		<category><![CDATA[defaults]]></category>
		<category><![CDATA[Mac OSX]]></category>

		<guid isPermaLink="false">http://josian.wordpress.com/?p=74</guid>
		<description><![CDATA[Nice tip from TUAW : Add recent Applications &#8230; simply &#62; defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }' &#62; killall Dock if you&#8217;ve mis-typed and the Dock would no start &#8230; <a href="http://josian.wordpress.com/2008/09/17/mac-os-x-defaults-add-recents-to-dock-nearly-killed-my-dock/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=josian.wordpress.com&amp;blog=171479&amp;post=74&amp;subd=josian&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Nice tip from <a href="http://www.tuaw.com/2008/09/16/terminal-tips-add-recent-applications-as-a-stack-on-dock/#comments" target="_blank">TUAW : Add recent Applications &#8230;</a> simply</p>
<p><code>&gt; defaults write com.apple.dock persistent-others -array-add '{ "tile-data" = { "list-type" = 1; }; "tile-type" = "recents-tile"; }'</code></p>
<p><code>&gt; killall Dock<br />
</code></p>
<p>if you&#8217;ve mis-typed and the Dock would no start again you can remove this domain(com.apple.dock) and key(persistent-others) by using</p>
<p><code>&gt; defaults <span style="color:#ff0000;">delete</span> com.apple.dock persistent-others</code></p>
<p>and redo the above&#8230;. you can also use</p>
<p><code>&gt; defaults <span style="color:#0000ff;">read</span> com.apple.dock persistent-others</code></p>
<p>to see the current values</p>
<p><a href="http://developer.apple.com/documentation/Darwin/Reference/ManPages/man1/defaults.1.html" target="_blank">defaults</a> man page and more excellent tips from <a href="http://www.macosxtips.co.uk/index_files/terminal-commands-for-hidden-settings-in-leopard.html" target="_blank">MacOSXTips.co.uk</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/josian.wordpress.com/74/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/josian.wordpress.com/74/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/josian.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/josian.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/josian.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/josian.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/josian.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/josian.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/josian.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/josian.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/josian.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/josian.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/josian.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/josian.wordpress.com/74/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/josian.wordpress.com/74/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/josian.wordpress.com/74/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=josian.wordpress.com&amp;blog=171479&amp;post=74&amp;subd=josian&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://josian.wordpress.com/2008/09/17/mac-os-x-defaults-add-recents-to-dock-nearly-killed-my-dock/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be6e20209f97136175027551f30cc099?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">josian</media:title>
		</media:content>
	</item>
		<item>
		<title>mvn release:*</title>
		<link>http://josian.wordpress.com/2008/09/12/maven-release/</link>
		<comments>http://josian.wordpress.com/2008/09/12/maven-release/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 08:30:32 +0000</pubDate>
		<dc:creator>josian</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[maven]]></category>

		<guid isPermaLink="false">http://josian.wordpress.com/?p=52</guid>
		<description><![CDATA[I am trying to use maven release plugin to cut releases, I really like maven&#8217;s dependency management, and here&#8217;s trying to use maven to manage releases. Special thanks to John and Nick. It&#8217;s really just 3 steps : mvn release:prepare &#8230; <a href="http://josian.wordpress.com/2008/09/12/maven-release/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=josian.wordpress.com&amp;blog=171479&amp;post=52&amp;subd=josian&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am trying to use maven release plugin to cut releases, I really like maven&#8217;s dependency management, and here&#8217;s trying to use maven to manage releases. Special thanks to <a href="http://weblogs.java.net/blog/johnsmart/archive/2008/08/using_the_maven.html" target="_blank">John</a> and <a href="http://www.nabble.com/release%3Aprepare-BUILD-SUCCESS-without-checking-in-to-scm-td19431262.html" target="_blank">Nick</a>.</p>
<p>It&#8217;s really just 3 steps :</p>
<ol>
<li><code>mvn release:prepare -DdryRun=true</code></li>
<li><code>mvn release:clean release:prepare</code></li>
<li><code>mvn release:perform</code></li>
</ol>
<p>But here are some things I learnt though&#8230;</p>
<ol>
<li>Upon release:prepare errors, use <code>release:rollback</code> before <code>release:clean</code> (wipe out all the pom.* release.properties that&#8217;s needed for release plugin)</li>
<li><a href="http://svnbook.red-bean.com/en/1.0/ch04s04.html#svn-ch-4-sect-4.2" target="_blank">Undoing subversion changes</a> using  <code>svn merge -r 999:998 http://subversion/project/dir</code> to revert back to the last working version. This is because release:prepare errors might have occurred after copy checked into subversion.</li>
</ol>
<p>And finally, some pre-requisites :</p>
<p><strong>Working copy must be SNAPSHOT</strong></p>
<p><strong>Dependencies must NOT be SNAPSHOT</strong> &#8211; to overcome this I had to  download and install a &#8216;special version&#8217; into your own (local) maven repository :</p>
<p><code>mvn:deploy</code></p>
<p>will deploy to my scm definition in my pom.xml</p>
<p><code>&lt;scm&gt;<br />
&lt;connection&gt;scm:svn:http://subversion/project/dir&lt;/connection&gt;<br />
&lt;developerConnection&gt;scm:svn:http://subversion/project/dir&lt;/developerConnection&gt;<br />
&lt;url&gt;http://subversion/project/dir&lt;/url&gt;<br />
&lt;/scm&gt;</code></p>
<p>and reference to it in your repository</p>
<p><code>&lt;repository&gt;<br />
&lt;id&gt;vocanic-m2&lt;/id&gt;<br />
&lt;url&gt;http://subversion/m2/&lt;/url&gt;<br />
&lt;snapshots&gt;<br />
&lt;enabled&gt;true&lt;/enabled&gt;<br />
&lt;/snapshots&gt;<br />
&lt;/repository&gt;</code></p>
<p><strong>Mac OS subversion 1.4.4</strong> &#8211; use this version because on Leopard, subversion 1.5.1 has a problem and somehow can&#8217;t create tags on subversion causing the <code>release:prepare</code> to check in the release copy but cannot move/create a tag copy &#8211; that&#8217;s where I learn (2) above &#8211; <a href="http://www.nabble.com/Mac-OS-X-%2B-SVN-1.5.1-%3D-Branch-problem-td19017538.html#a19142776" target="_blank">see here</a> also</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/josian.wordpress.com/52/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/josian.wordpress.com/52/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/josian.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/josian.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/josian.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/josian.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/josian.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/josian.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/josian.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/josian.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/josian.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/josian.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/josian.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/josian.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/josian.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/josian.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=josian.wordpress.com&amp;blog=171479&amp;post=52&amp;subd=josian&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://josian.wordpress.com/2008/09/12/maven-release/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be6e20209f97136175027551f30cc099?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">josian</media:title>
		</media:content>
	</item>
		<item>
		<title>Firefox autocomplete on HTML Form</title>
		<link>http://josian.wordpress.com/2008/09/11/firefox-autocomplete-on-html-form/</link>
		<comments>http://josian.wordpress.com/2008/09/11/firefox-autocomplete-on-html-form/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 03:56:03 +0000</pubDate>
		<dc:creator>josian</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[autocomplete]]></category>
		<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://josian.wordpress.com/?p=18</guid>
		<description><![CDATA[Just learn t something today&#8230; FireFox will cache your form values when you refresh a page&#8230;. I had this problem and was causing my animation to go haywire&#8230;. if you need to turn this auto caching off you can do &#8230; <a href="http://josian.wordpress.com/2008/09/11/firefox-autocomplete-on-html-form/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=josian.wordpress.com&amp;blog=171479&amp;post=18&amp;subd=josian&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just learn t something today&#8230;</p>
<p>FireFox will cache your form values when you refresh a page&#8230;. I had this problem and was causing my animation to go haywire&#8230;. if you need to turn this auto caching off you can do :</p>
<p><code><br />
&lt;form autocomplete="off" /&gt; or &lt;input ... autocomplete="off" /&gt;<br />
</code></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/josian.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/josian.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/josian.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/josian.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/josian.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/josian.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/josian.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/josian.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/josian.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/josian.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/josian.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/josian.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/josian.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/josian.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/josian.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/josian.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=josian.wordpress.com&amp;blog=171479&amp;post=18&amp;subd=josian&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://josian.wordpress.com/2008/09/11/firefox-autocomplete-on-html-form/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be6e20209f97136175027551f30cc099?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">josian</media:title>
		</media:content>
	</item>
		<item>
		<title>Default Gateway on Ubuntu</title>
		<link>http://josian.wordpress.com/2008/09/11/default-gateway-on-ubuntu/</link>
		<comments>http://josian.wordpress.com/2008/09/11/default-gateway-on-ubuntu/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 03:04:50 +0000</pubDate>
		<dc:creator>josian</dc:creator>
				<category><![CDATA[System]]></category>
		<category><![CDATA[*nix]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://josian.wordpress.com/?p=15</guid>
		<description><![CDATA[josh@wombat:/etc/network$ more interfaces # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo iface lo inet loopback ## Network interface(s) ## &#8230; <a href="http://josian.wordpress.com/2008/09/11/default-gateway-on-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=josian.wordpress.com&amp;blog=171479&amp;post=15&amp;subd=josian&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><code><br />
josh@wombat:/etc/network$ more interfaces<br />
# This file describes the network interfaces available on your system<br />
# and how to activate them. For more information, see interfaces(5).</code></p>
<p># The loopback network interface<br />
auto lo<br />
iface lo inet loopback</p>
<p>## Network interface(s)<br />
## You should (un)comment and edit according to your needs.</p>
<p># The primary network interface (dhcp)<br />
#auto eth0<br />
#iface eth0 inet dhcp</p>
<p># The primary network interface (static IP)<br />
auto eth0<br />
iface eth0 inet static<br />
address 192.168.1.45<br />
netmask 255.255.255.0<br />
#gateway 192.168.1.1<br />
gateway 192.168.1.254<br />
broadcast 192.168.1.255</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/josian.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/josian.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/josian.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/josian.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/josian.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/josian.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/josian.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/josian.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/josian.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/josian.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/josian.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/josian.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/josian.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/josian.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/josian.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/josian.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=josian.wordpress.com&amp;blog=171479&amp;post=15&amp;subd=josian&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://josian.wordpress.com/2008/09/11/default-gateway-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be6e20209f97136175027551f30cc099?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">josian</media:title>
		</media:content>
	</item>
		<item>
		<title>Blogging from iphone</title>
		<link>http://josian.wordpress.com/2008/08/11/blogging-from-iphone/</link>
		<comments>http://josian.wordpress.com/2008/08/11/blogging-from-iphone/#comments</comments>
		<pubDate>Mon, 11 Aug 2008 09:26:52 +0000</pubDate>
		<dc:creator>josian</dc:creator>
				<category><![CDATA[Stuffs]]></category>
		<category><![CDATA[iphone]]></category>

		<guid isPermaLink="false">http://josian.wordpress.com/2008/08/11/blogging-from-iphone/</guid>
		<description><![CDATA[Trying out wordpress iPhone app &#8230;.. Below is a French toast from the Hong Kong cafe in Singapore!!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=josian.wordpress.com&amp;blog=171479&amp;post=14&amp;subd=josian&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Trying out wordpress iPhone app &#8230;.. Below is a French toast from the Hong Kong cafe in Singapore!!</p>
<p><a href="http://josian.files.wordpress.com/2008/08/p-640-480-264f2fa0-68e7-4b8a-b5c4-4aa532e67165.jpeg"><img class="alignnone size-full wp-image-364" src="http://josian.files.wordpress.com/2008/08/p-640-480-264f2fa0-68e7-4b8a-b5c4-4aa532e67165.jpeg?w=500" alt=""   /></a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/josian.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/josian.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/josian.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/josian.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/josian.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/josian.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/josian.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/josian.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/josian.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/josian.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/josian.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/josian.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/josian.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/josian.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/josian.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/josian.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=josian.wordpress.com&amp;blog=171479&amp;post=14&amp;subd=josian&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://josian.wordpress.com/2008/08/11/blogging-from-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be6e20209f97136175027551f30cc099?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">josian</media:title>
		</media:content>

		<media:content url="http://josian.files.wordpress.com/2008/08/p-640-480-264f2fa0-68e7-4b8a-b5c4-4aa532e67165.jpeg" medium="image" />
	</item>
		<item>
		<title>Colourful PS1 that still auto wraps</title>
		<link>http://josian.wordpress.com/2008/07/09/colourful-ps1-that-still-auto-wraps/</link>
		<comments>http://josian.wordpress.com/2008/07/09/colourful-ps1-that-still-auto-wraps/#comments</comments>
		<pubDate>Wed, 09 Jul 2008 03:49:04 +0000</pubDate>
		<dc:creator>josian</dc:creator>
				<category><![CDATA[System]]></category>
		<category><![CDATA[*nix]]></category>
		<category><![CDATA[bash]]></category>

		<guid isPermaLink="false">http://josian.wordpress.com/?p=12</guid>
		<description><![CDATA[export PS1="\u@\h\[\e[1;4;33m\][LIVE]\[\e[0m\]:\W$ " \u@\h\ user @ hostname \[\e[1;4;33m\] enclosing &#8220;\[" and "\]&#8221; &#8211; to /not/ confuse the screen mode so that auto wrapping is preserved. &#8220;\e&#8221; &#8211; is the escape, you could use &#8220;33&#8243; too &#8220;1;4;33&#8243; &#8211; &#8220;1&#8243; is for &#8230; <a href="http://josian.wordpress.com/2008/07/09/colourful-ps1-that-still-auto-wraps/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=josian.wordpress.com&amp;blog=171479&amp;post=12&amp;subd=josian&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><code>export PS1="\u@\h\<strong>[\e[1;4;33m\]</strong>[LIVE]<strong>\[\e[0m\]</strong>:\W$ "</code></p>
<p><code><strong>\u@\h\<br />
</strong></code></p>
<ul>
<li>user @ hostname</li>
</ul>
<p><code><strong>\[\e[1;4;33m\]</strong></code></p>
<ul>
<li>enclosing &#8220;\[" and "\]&#8221; &#8211; to /not/ confuse the screen mode so that auto wrapping is preserved.</li>
<li>&#8220;\e&#8221; &#8211; is the escape, you could use &#8220;33&#8243; too</li>
<li>&#8220;1;4;33&#8243; &#8211; &#8220;1&#8243; is for &#8220;bold&#8221;, &#8220;4&#8243; is for &#8220;underline&#8221;, and &#8220;33&#8243; is for &#8220;yellow&#8221;, you can add background colour by adding the  <a href="http://www.bluesock.org/~willg/dev/ansi.html">ascii code</a> for background colour  &#8211; just separate these numbers with &#8220;;&#8221;</li>
</ul>
<p><code><strong>\[\e[0m\]</strong></code></p>
<ul>
<li>0 resets to normal display</li>
</ul>
<p><code><strong>\W</strong></code></p>
<ul>
<li> working directory</li>
</ul>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/josian.wordpress.com/12/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/josian.wordpress.com/12/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/josian.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/josian.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/josian.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/josian.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/josian.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/josian.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/josian.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/josian.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/josian.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/josian.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/josian.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/josian.wordpress.com/12/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/josian.wordpress.com/12/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/josian.wordpress.com/12/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=josian.wordpress.com&amp;blog=171479&amp;post=12&amp;subd=josian&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://josian.wordpress.com/2008/07/09/colourful-ps1-that-still-auto-wraps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/be6e20209f97136175027551f30cc099?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">josian</media:title>
		</media:content>
	</item>
	</channel>
</rss>
