<?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>ZAZAQ.COM</title>
	<atom:link href="http://zazaq.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://zazaq.com</link>
	<description></description>
	<lastBuildDate>Sun, 13 May 2012 08:55:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='zazaq.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/03ac83a0cb78969859a87f63186f6d38?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>ZAZAQ.COM</title>
		<link>http://zazaq.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://zazaq.com/osd.xml" title="ZAZAQ.COM" />
	<atom:link rel='hub' href='http://zazaq.com/?pushpress=hub'/>
		<item>
		<title>Raspberry Pi : Colourize your Pi&#8217;s Bash</title>
		<link>http://zazaq.com/2012/05/13/raspberry-pi-colourize-your-pis-bash/</link>
		<comments>http://zazaq.com/2012/05/13/raspberry-pi-colourize-your-pis-bash/#comments</comments>
		<pubDate>Sun, 13 May 2012 08:55:36 +0000</pubDate>
		<dc:creator>tekzen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://zazaq.com/?p=696</guid>
		<description><![CDATA[I&#8217;ve finally got my very own raspberry pi!! Woo! First thing to do is to give my bash some colour (mainly so I don&#8217;t get my terminal sessions for various machines mixed up &#8211; but secondly so it looks pretty ). One &#8211; give my bash prompt a lovely raspberry colour by adding this to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zazaq.com&#038;blog=12298177&#038;post=696&#038;subd=tekzen&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve finally got my very own raspberry pi!! Woo!</p>
<p>First thing to do is to give my bash some colour (mainly so I don&#8217;t get my terminal sessions for various machines mixed up &#8211; but secondly so it looks pretty <img src='http://s1.wp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  ).</p>
<p>One &#8211; give my bash prompt a lovely raspberry colour by adding this to my .bashrc :</p>
<blockquote><p>export PS1=&#8217;\[\e[1;31m\][\u@\h \W]\$\[\e[0m\] &#8216;</p></blockquote>
<p>Two &#8211; change my motd so I get a shiny new intro when logging in (stolen and modified from <a href="http://www.raspberrypi.org/phpBB3/viewtopic.php?f=2&amp;t=5494">http://www.raspberrypi.org/phpBB3/viewtopic.php?f=2&amp;t=5494</a>) :</p>
<blockquote><p><a title="motd" href="https://raw.github.com/lucas1000001/Raspberry-Pi-Randomness/master/motd">/etc/motd</a></p></blockquote>
<p>Now when I login I get a nice prompt forcing my brain to acknowledge which terminal I&#8217;m screwing around in!</p>
<p><a href="http://tekzen.files.wordpress.com/2012/05/screenshot-at-2012-05-13-092833.png"><img class="alignleft size-full wp-image-697" title="Screenshot at 2012-05-13 09:28:33" src="http://tekzen.files.wordpress.com/2012/05/screenshot-at-2012-05-13-092833.png?w=460&h=275" alt="" width="460" height="275" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tekzen.wordpress.com/696/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tekzen.wordpress.com/696/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tekzen.wordpress.com/696/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tekzen.wordpress.com/696/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tekzen.wordpress.com/696/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tekzen.wordpress.com/696/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tekzen.wordpress.com/696/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tekzen.wordpress.com/696/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tekzen.wordpress.com/696/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tekzen.wordpress.com/696/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tekzen.wordpress.com/696/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tekzen.wordpress.com/696/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tekzen.wordpress.com/696/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tekzen.wordpress.com/696/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zazaq.com&#038;blog=12298177&#038;post=696&#038;subd=tekzen&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://zazaq.com/2012/05/13/raspberry-pi-colourize-your-pis-bash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a05917778a10a4741acf33fdc27058e?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">tekzen</media:title>
		</media:content>

		<media:content url="http://tekzen.files.wordpress.com/2012/05/screenshot-at-2012-05-13-092833.png" medium="image">
			<media:title type="html">Screenshot at 2012-05-13 09:28:33</media:title>
		</media:content>
	</item>
		<item>
		<title>Seven Previews of &#8216;Seven Databases in Seven Weeks&#8217; (Part 1) : PostgreSQL</title>
		<link>http://zazaq.com/2012/01/08/seven-previews-of-seven-databases-in-seven-weeks-part-1-postgresql/</link>
		<comments>http://zazaq.com/2012/01/08/seven-previews-of-seven-databases-in-seven-weeks-part-1-postgresql/#comments</comments>
		<pubDate>Sun, 08 Jan 2012 17:53:42 +0000</pubDate>
		<dc:creator>tekzen</dc:creator>
				<category><![CDATA[postgresql]]></category>
		<category><![CDATA[pragmatic]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[relational db]]></category>

		<guid isPermaLink="false">http://zazaq.com/?p=603</guid>
		<description><![CDATA[Kicking off with the most familiar type of database (relational) we start our journey with PostgreSQL. Now having used MySQL (whee!) and Oracle (boo!) quite a lot in my day job(s), I consider myself to have a pretty good grounding in relational database magic. Although having said that, I&#8217;ve never actually used PostgreSQL, and have [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zazaq.com&#038;blog=12298177&#038;post=603&#038;subd=tekzen&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" title="PostgreSQL" src="http://upload.wikimedia.org/wikipedia/commons/thumb/2/29/Postgresql_elephant.svg/200px-Postgresql_elephant.svg.png" alt="" width="200" height="206" />Kicking off with the most familiar type of database (relational) we start our journey with PostgreSQL.</p>
<p>Now having used MySQL (<span style="color:#000000;">whee!</span>) and Oracle <span style="color:#ff0000;"><span style="color:#000000;">(</span><span style="color:#000000;">boo!</span></span>) quite a lot in my day job(s), I consider myself to have a pretty good grounding in relational database magic. Although having said that, I&#8217;ve never actually used PostgreSQL, and have heard fanatical talk about how &#8220;amazing it is&#8221; when compared with similar DB&#8217;s, so I&#8217;m looking forward to enjoying some of that wonder for myself.</p>
<p>So to start, we&#8217;re left on our own to install the application (which is fine by me), and as the book mentions, we get more of the good stuff due to the space saved. Thanks to pacman (not the greedy yellow thing that&#8217;s s**t scared of ghosts) it&#8217;s all sorted in one command, done!</p>
<p><strong>Day One</strong></p>
<p>For first part we&#8217;re taken through some of the basics of relational DB&#8217;s, namely creating tables with relationships which we join across, adding indexes to improve performance etc &#8211; the usual stuff, that if you&#8217;ve been a developer for more than a week you should know by now!</p>
<p>It&#8217;s nice to have a some exercises to walk through but generally you&#8217;ve seen it all before, and it becomes a little tedious. Don&#8217;t get me wrong, I understand why it had to start like this (to give some context and a decent introduction to the 5% of readers not familiar with the material), but you just have to go through the motions and accept that the goodies will start soon. Sooner than I expected to be honest, I thought the whole PostgreSQL chapter was going to be (inevitably) a little slow, but I was definitely wrong there &#8230;</p>
<p><strong>Day Two</strong></p>
<p>Starting off with the usual aggregate functions (COUNT, SUM, MAX etc) you get that &#8220;been there, done that&#8221; feeling again, but before you know it you&#8217;re stumbling into new territory (for me at least).</p>
<p>Key areas that tweaked my interest were talk of distributed databases and the CAP theorem (Consistency vs Availability vs Partition Tolerant, of which you can only ever support two of the three), PL/PGSQL scripting (which initially gave me cold sweats when recalling Oracle&#8217;s own PL/SQL, but the knowledge of other scripting solutions, ala Python, Ruby, gave some welcome relief), and rules. I was impressed by rules in particular, reminiscent of metaprogramming or AOP for SQL, where you can essentially rewrite a user&#8217;s query to add a welcome twist &#8211; the example given in the text is insertion of a record into a view, although I can imagine countless other applications of this.</p>
<p>After day two I&#8217;m feeling like I&#8217;ve learned some interesting new things about PostgreSQL, which were well worth my time, &#8230;,  but just wait until the craziness of day 3 &#8230;</p>
<p><strong>Day Three</strong></p>
<p>Here&#8217;s where things really get interesting! We start looking at many of the PostgreSQL contrib packages, allowing us to take the DB from the usual every-day querying tedium to the fringes of artificial intelligence!</p>
<p>Rather than sticking to basic equality or wildcard matches used for querying an actor&#8217;s name in a movie database we extend our schema to use various natural language processing libraries. This gives our humble set-up the ability to match &#8216;Broos Wils&#8217; correctly as the star of the Die Hard films (many thanks on behalf of members of the SMS generation everywhere), most impressively matching based on how words &#8220;sound&#8221; using metaphones.</p>
<p>We finish up querying for movie recommendations based on a multidimensional hypercube (had to put that in &#8216;cos it makes me sound well clever). It basically works by comparing similarity of the various genres into which a movie falls (action, romance, comedy etc) &#8211; but check out the book, they explain it much more clearly!</p>
<p><strong>Finishing Up!</strong></p>
<p>To be honest I didn&#8217;t expect much from this chapter, nothing more than a recap over old knowledge anyway, filling the relational database corner for completeness and comparison. And yes it did start out a little like that, but it quickly moves into much meatier territory that sucks you in and teaches you things you had never considered possible in a RDBMS &#8230; or maybe that&#8217;s just my ignorance. Regardless, I&#8217;m impressed so far, and I am definitely looking forward to reading about databases I don&#8217;t already &#8220;know&#8221;!</p>
<p><em>Disclaimer</em></p>
<p><em>&#8216;Seven Databases in Seven Weeks&#8217; is still in production, and this preview was based upon the beta 2 release. The material is likely to change.</em></p>
<p><em>Check out the following links for more details :</em></p>
<p><em><a href="http://pragprog.com/book/rwdata/seven-databases-in-seven-weeks">http://pragprog.com/book/rwdata/seven-databases-in-seven-weeks</a></em></p>
<p><em><a href="http://www.sevenweeks.org/">http://www.sevenweeks.org/</a></em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tekzen.wordpress.com/603/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tekzen.wordpress.com/603/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tekzen.wordpress.com/603/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tekzen.wordpress.com/603/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tekzen.wordpress.com/603/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tekzen.wordpress.com/603/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tekzen.wordpress.com/603/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tekzen.wordpress.com/603/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tekzen.wordpress.com/603/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tekzen.wordpress.com/603/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tekzen.wordpress.com/603/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tekzen.wordpress.com/603/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tekzen.wordpress.com/603/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tekzen.wordpress.com/603/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zazaq.com&#038;blog=12298177&#038;post=603&#038;subd=tekzen&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://zazaq.com/2012/01/08/seven-previews-of-seven-databases-in-seven-weeks-part-1-postgresql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a05917778a10a4741acf33fdc27058e?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">tekzen</media:title>
		</media:content>

		<media:content url="http://upload.wikimedia.org/wikipedia/commons/thumb/2/29/Postgresql_elephant.svg/200px-Postgresql_elephant.svg.png" medium="image">
			<media:title type="html">PostgreSQL</media:title>
		</media:content>
	</item>
		<item>
		<title>4Clojure &#8211; More addictive than Pringles laced with crack?</title>
		<link>http://zazaq.com/2011/05/02/4clojure-more-addictive-than-crack/</link>
		<comments>http://zazaq.com/2011/05/02/4clojure-more-addictive-than-crack/#comments</comments>
		<pubDate>Mon, 02 May 2011 18:39:26 +0000</pubDate>
		<dc:creator>tekzen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://zazaq.com/?p=582</guid>
		<description><![CDATA[I&#8217;ve toyed with Clojure on and off for the past 6 months or so, and I&#8217;ve gotta say I love the language. A modern lisp on the JVM, built for easy concurrency in today&#8217;s multi-core world &#8211; how awesome. There&#8217;s just one problem if you&#8217;re from a usual OO background like me &#8230; and that&#8217;s [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zazaq.com&#038;blog=12298177&#038;post=582&#038;subd=tekzen&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve toyed with Clojure on and off for the past 6 months or so, and I&#8217;ve gotta say I love the language.</p>
<p>A modern lisp on the JVM, built for easy concurrency in today&#8217;s multi-core world &#8211; how awesome. There&#8217;s just one problem if you&#8217;re from a usual OO background like me &#8230; and that&#8217;s getting your head around lisp and functional programming in general!</p>
<p>Once you&#8217;ve got your head around the syntax and basic semantics of a language, the best way to learn is to play &#8211; and that&#8217;s where 4clojure comes in. An extensive list of challenges ranging from the very basic to nicely challenging gives you the opportunity to play with your new found skills in a quick and easy sandbox.</p>
<p>Be warned though &#8211; after completing the first few challenges, you&#8217;ll have a taste for blood and won&#8217;t sleep until you&#8217;ve completed them all!!</p>
<p>Check it out @</p>
<h1><a title="4clojure link" href="http://4clojure.com">4clojure.com</a></h1>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tekzen.wordpress.com/582/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tekzen.wordpress.com/582/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tekzen.wordpress.com/582/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tekzen.wordpress.com/582/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tekzen.wordpress.com/582/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tekzen.wordpress.com/582/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tekzen.wordpress.com/582/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tekzen.wordpress.com/582/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tekzen.wordpress.com/582/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tekzen.wordpress.com/582/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tekzen.wordpress.com/582/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tekzen.wordpress.com/582/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tekzen.wordpress.com/582/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tekzen.wordpress.com/582/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zazaq.com&#038;blog=12298177&#038;post=582&#038;subd=tekzen&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://zazaq.com/2011/05/02/4clojure-more-addictive-than-crack/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a05917778a10a4741acf33fdc27058e?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">tekzen</media:title>
		</media:content>
	</item>
		<item>
		<title>Remapping CAPS and ALTGR for Emacs Fun</title>
		<link>http://zazaq.com/2011/05/02/remapping-caps-and-altgr-for-emacs-fun/</link>
		<comments>http://zazaq.com/2011/05/02/remapping-caps-and-altgr-for-emacs-fun/#comments</comments>
		<pubDate>Mon, 02 May 2011 18:28:33 +0000</pubDate>
		<dc:creator>tekzen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://zazaq.com/?p=576</guid>
		<description><![CDATA[Due to my recent use of several dynamic and lisp based languages, most notably Ruby and Clojure, I&#8217;ve taken on the challenge of learning Emacs to increase my productivity ten fold! Using my old staple Eclipse to develop in dynamic languages just seemed like too much effort &#8211; something akin to using a sledgehammer to engrave some delicate [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zazaq.com&#038;blog=12298177&#038;post=576&#038;subd=tekzen&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:center;"><img class="aligncenter" title="emacs joke" src="http://www.devsource360.com/wp-content/plugins/wp-o-matic/cache/57ee5_uf010710.gif" alt="" width="504" height="192" /></p>
<p style="text-align:left;">Due to my recent use of several dynamic and lisp based languages, most notably Ruby and Clojure, I&#8217;ve taken on the challenge of learning Emacs to increase my productivity ten fold! Using my old staple Eclipse to develop in dynamic languages just seemed like too much effort &#8211; something akin to using a sledgehammer to engrave some delicate glass.</p>
<p style="text-align:left;">Anyway, enough rambling, and onto the tip. To try and avoid getting the infamous &#8216;Emacs pinky&#8217;, I&#8217;ve remapped my CAPS LOCK key to be another CTRL, and ALTGR to be equivalent to ALT &#8211; this makes the key chords so much more comfortable. To achieve this in Linux, just add the following to your .bashrc or something similar :</p>
<blockquote>
<pre>xmodmap -e 'remove Lock = Caps_Lock'
xmodmap -e 'keysym Caps_Lock = Control_L'
xmodmap -e 'add Control = Control_L'
xmodmap -e 'keycode 108 = Alt_L'</pre>
</blockquote>
<pre></pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tekzen.wordpress.com/576/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tekzen.wordpress.com/576/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tekzen.wordpress.com/576/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tekzen.wordpress.com/576/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tekzen.wordpress.com/576/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tekzen.wordpress.com/576/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tekzen.wordpress.com/576/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tekzen.wordpress.com/576/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tekzen.wordpress.com/576/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tekzen.wordpress.com/576/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tekzen.wordpress.com/576/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tekzen.wordpress.com/576/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tekzen.wordpress.com/576/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tekzen.wordpress.com/576/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zazaq.com&#038;blog=12298177&#038;post=576&#038;subd=tekzen&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://zazaq.com/2011/05/02/remapping-caps-and-altgr-for-emacs-fun/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a05917778a10a4741acf33fdc27058e?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">tekzen</media:title>
		</media:content>

		<media:content url="http://www.devsource360.com/wp-content/plugins/wp-o-matic/cache/57ee5_uf010710.gif" medium="image">
			<media:title type="html">emacs joke</media:title>
		</media:content>
	</item>
		<item>
		<title>Learn You Some Erlang for Great Good</title>
		<link>http://zazaq.com/2011/01/29/learn-you-some-erlang-for-great-good/</link>
		<comments>http://zazaq.com/2011/01/29/learn-you-some-erlang-for-great-good/#comments</comments>
		<pubDate>Sat, 29 Jan 2011 23:45:54 +0000</pubDate>
		<dc:creator>tekzen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://zazaq.com/?p=565</guid>
		<description><![CDATA[Aha! Time to learn some Erlang. I&#8217;ve been meaning to check out Erlang, as another awesome functional language, for some time now. And now, by the same author as &#8216;Learn you a Haskell for Great Good&#8217;, is a similar tutorial for Erlang. I can barely wait to ﻿start programming some crazy agents! Learn You Some Erlang [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zazaq.com&#038;blog=12298177&#038;post=565&#038;subd=tekzen&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" title="Erlang" src="http://learnyousomeerlang.com/static/img/splash.jpg" alt="" width="486" height="394" /></p>
<p>Aha! Time to learn some Erlang.</p>
<p>I&#8217;ve been meaning to check out Erlang, as another awesome functional language, for some time now.</p>
<p>And now, by the same author as &#8216;Learn you a Haskell for Great Good&#8217;, is a similar tutorial for Erlang.</p>
<p>I can barely wait to ﻿start programming some crazy agents!</p>
<p><a href="http://learnyousomeerlang.com/"><strong>Learn You Some Erlang for Great Good</strong></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tekzen.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tekzen.wordpress.com/565/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tekzen.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tekzen.wordpress.com/565/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tekzen.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tekzen.wordpress.com/565/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tekzen.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tekzen.wordpress.com/565/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tekzen.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tekzen.wordpress.com/565/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tekzen.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tekzen.wordpress.com/565/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tekzen.wordpress.com/565/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tekzen.wordpress.com/565/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zazaq.com&#038;blog=12298177&#038;post=565&#038;subd=tekzen&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://zazaq.com/2011/01/29/learn-you-some-erlang-for-great-good/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a05917778a10a4741acf33fdc27058e?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">tekzen</media:title>
		</media:content>

		<media:content url="http://learnyousomeerlang.com/static/img/splash.jpg" medium="image">
			<media:title type="html">Erlang</media:title>
		</media:content>
	</item>
		<item>
		<title>Seven Languages in Seven Weeks : ruby</title>
		<link>http://zazaq.com/2010/12/18/seven-languages-in-seven-weeks-ruby/</link>
		<comments>http://zazaq.com/2010/12/18/seven-languages-in-seven-weeks-ruby/#comments</comments>
		<pubDate>Sat, 18 Dec 2010 13:16:47 +0000</pubDate>
		<dc:creator>tekzen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://zazaq.com/?p=557</guid>
		<description><![CDATA[Recently released, &#8216;Seven Languages in Seven Weeks&#8217; attempts to walk you through a number of today&#8217;s most interesting programming languages, in the process demonstrating a wealth of different ideas, and in general expanding your horizons. Week one of the &#8216;course&#8217; gives a good baseline by starting with the solid, but interesting world of ruby. The [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zazaq.com&#038;blog=12298177&#038;post=557&#038;subd=tekzen&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" title="seven languages in seven weeks" src="http://ecx.images-amazon.com/images/I/51C%2BJGTYWbL._SL500_AA300_.jpg" alt="" width="180" height="180" />Recently released, &#8216;Seven Languages in Seven Weeks&#8217; attempts to walk you through a number of today&#8217;s most interesting programming languages, in the process demonstrating a wealth of different ideas, and in general expanding your horizons.</p>
<p>Week one of the &#8216;course&#8217; gives a good baseline by starting with the solid, but interesting world of ruby. The author gives ruby the persona of Mary Poppins &#8211; solid and practical with that little bit of magic.</p>
<p>I&#8217;m sure many readers have used ruby before, but regardless the chapter begins as an excellent refresher (or introduction) to the syntax and &#8216;everything is an object&#8217; approach of the language. This is later built upon by seeing a glimpse of ruby&#8217;s meta-programming magic &#8211; concepts that you can see filtering into other languages, such as Groovy.</p>
<p>Overall the chapter is a good start to the book, easing you into the process with a clean, modern language and a number of simple but fun exercises &#8230; onto Io.</p>
<p style="text-align:center;"><img class="aligncenter" src="http://www.amomlessordinary.com/wp-content/uploads/2010/10/mary-poppins.jpg" alt="" width="252" height="147" /></p>
<p style="text-align:left;">For my solutions to the exercises in the ruby chapter, check out : <a href="https://github.com/lucas1000001/seven-languages-in-seven-weeks/tree/master/ruby">https://github.com/lucas1000001/seven-languages-in-seven-weeks/tree/master/ruby</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tekzen.wordpress.com/557/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tekzen.wordpress.com/557/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tekzen.wordpress.com/557/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tekzen.wordpress.com/557/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tekzen.wordpress.com/557/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tekzen.wordpress.com/557/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tekzen.wordpress.com/557/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tekzen.wordpress.com/557/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tekzen.wordpress.com/557/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tekzen.wordpress.com/557/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tekzen.wordpress.com/557/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tekzen.wordpress.com/557/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tekzen.wordpress.com/557/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tekzen.wordpress.com/557/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zazaq.com&#038;blog=12298177&#038;post=557&#038;subd=tekzen&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://zazaq.com/2010/12/18/seven-languages-in-seven-weeks-ruby/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a05917778a10a4741acf33fdc27058e?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">tekzen</media:title>
		</media:content>

		<media:content url="http://ecx.images-amazon.com/images/I/51C%2BJGTYWbL._SL500_AA300_.jpg" medium="image">
			<media:title type="html">seven languages in seven weeks</media:title>
		</media:content>

		<media:content url="http://www.amomlessordinary.com/wp-content/uploads/2010/10/mary-poppins.jpg" medium="image" />
	</item>
		<item>
		<title>The Land of Lisp</title>
		<link>http://zazaq.com/2010/10/27/the-land-of-lisp/</link>
		<comments>http://zazaq.com/2010/10/27/the-land-of-lisp/#comments</comments>
		<pubDate>Wed, 27 Oct 2010 19:09:40 +0000</pubDate>
		<dc:creator>tekzen</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[lisp programming]]></category>

		<guid isPermaLink="false">http://zazaq.com/?p=543</guid>
		<description><![CDATA[A few months ago I published a post on keeping techie books entertaining, led by Why&#8217;s? poignant guide to Ruby. It seems the trend is catching on &#8230; Already available in ebook format, and soon to be released is &#8216;The Land of Lisp&#8217;, a comic book guide to lispy languages. With the popularity of functional programming growing [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zazaq.com&#038;blog=12298177&#038;post=543&#038;subd=tekzen&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" title="lol" src="http://lemonodor.com/images/functional-programming-is-beautiful-s.jpg" alt="" width="308" height="272" /></p>
<p>A few months ago I published a post on <a href="http://zazaq.com/2010/05/16/learn-haskell-from-an-elephant-and-ruby-from-a-fox/">keeping techie books entertaining</a>, led by Why&#8217;s? poignant guide to Ruby. It seems the trend is catching on &#8230;</p>
<p>Already available in ebook format, and soon to be released is &#8216;The Land of Lisp&#8217;, a comic book guide to lispy languages. With the popularity of functional programming growing each day, (thanks to languages like Ruby, Clojure and Scala), this seems like an awesome way to get your head around a tricky subject.</p>
<p>The music video says it all!</p>
<span style="text-align:center; display: block;"><a href="http://zazaq.com/2010/10/27/the-land-of-lisp/"><img src="http://img.youtube.com/vi/HM1Zb3xmvMc/2.jpg" alt="" /></a></span>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tekzen.wordpress.com/543/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tekzen.wordpress.com/543/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tekzen.wordpress.com/543/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tekzen.wordpress.com/543/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tekzen.wordpress.com/543/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tekzen.wordpress.com/543/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tekzen.wordpress.com/543/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tekzen.wordpress.com/543/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tekzen.wordpress.com/543/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tekzen.wordpress.com/543/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tekzen.wordpress.com/543/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tekzen.wordpress.com/543/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tekzen.wordpress.com/543/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tekzen.wordpress.com/543/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zazaq.com&#038;blog=12298177&#038;post=543&#038;subd=tekzen&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://zazaq.com/2010/10/27/the-land-of-lisp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a05917778a10a4741acf33fdc27058e?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">tekzen</media:title>
		</media:content>

		<media:content url="http://lemonodor.com/images/functional-programming-is-beautiful-s.jpg" medium="image">
			<media:title type="html">lol</media:title>
		</media:content>
	</item>
		<item>
		<title>Gentoo LiveCD Wireless Problems</title>
		<link>http://zazaq.com/2010/10/01/gentoo-livecd-wireless-problems/</link>
		<comments>http://zazaq.com/2010/10/01/gentoo-livecd-wireless-problems/#comments</comments>
		<pubDate>Fri, 01 Oct 2010 22:35:05 +0000</pubDate>
		<dc:creator>tekzen</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[linux gentoo]]></category>

		<guid isPermaLink="false">http://zazaq.com/?p=535</guid>
		<description><![CDATA[So I thought I&#8217;d give Gentoo a go &#8211; had a spare desktop lying around, and what better use than as a home server! Well I like a bit of a Linux challenge, so rather than use boring old Ubuntu or Fedora, Gentoo should present the opportunity to learn a bit more &#8230; well it&#8217;s [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zazaq.com&#038;blog=12298177&#038;post=535&#038;subd=tekzen&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft" src="http://www.gentoo.org/images/icon-cow.png" alt="" width="100" height="102" />So I thought I&#8217;d give Gentoo a go &#8211; had a spare desktop lying around, and what better use than as a home server!</p>
<p>Well I like a bit of a Linux challenge, so rather than use boring old Ubuntu or Fedora, Gentoo should present the opportunity to learn a bit more &#8230; well it&#8217;s certainly achieving that.</p>
<p>So for those of you struggling to connect wirelessly from the livecd (so you can actually emerge stuff) here goes an issue I experienced.</p>
<p>My computer has a ralink card :</p>
<blockquote><p>lspci | grep RaLink</p>
<p>&gt; 01:03.0 Network controller : RaLink RT2561/RT61 802.11g PCI</p></blockquote>
<p>When I try to do something useful with it (like enable it) I get the following issue :</p>
<blockquote><p>ifconfig wlan0 up</p>
<p>&gt; phy0 -&gt; rt2x00lib_request_firmware: Error &#8211; Failed to request Firmware.</p>
<p>&gt; SIOCSIFFLAGS: No such file or directory</p></blockquote>
<p>Well it&#8217;s pretty obvious the firmware is missing or screwed, so just download the zip from the Ralink site.</p>
<blockquote><p><a href="http://www.ralinktech.com/support.php?s=2">http://www.ralinktech.com/support.php?s=2</a></p></blockquote>
<p>Unzip, and copy over to your potential Gentoo box via usb (or some other magic).</p>
<p>Just drop all the bin files into the &#8216;/lib/firmware&#8217; directory :</p>
<blockquote><p>cp *.bin /lib/firmware</p></blockquote>
<p>Try your wireless card again, and success!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tekzen.wordpress.com/535/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tekzen.wordpress.com/535/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tekzen.wordpress.com/535/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tekzen.wordpress.com/535/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tekzen.wordpress.com/535/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tekzen.wordpress.com/535/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tekzen.wordpress.com/535/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tekzen.wordpress.com/535/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tekzen.wordpress.com/535/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tekzen.wordpress.com/535/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tekzen.wordpress.com/535/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tekzen.wordpress.com/535/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tekzen.wordpress.com/535/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tekzen.wordpress.com/535/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zazaq.com&#038;blog=12298177&#038;post=535&#038;subd=tekzen&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://zazaq.com/2010/10/01/gentoo-livecd-wireless-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a05917778a10a4741acf33fdc27058e?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">tekzen</media:title>
		</media:content>

		<media:content url="http://www.gentoo.org/images/icon-cow.png" medium="image" />
	</item>
		<item>
		<title>Prototype in JavaScript (&#8230; and similar languages)</title>
		<link>http://zazaq.com/2010/08/14/prototype-in-javascript-and-similar-languages/</link>
		<comments>http://zazaq.com/2010/08/14/prototype-in-javascript-and-similar-languages/#comments</comments>
		<pubDate>Sat, 14 Aug 2010 07:32:36 +0000</pubDate>
		<dc:creator>tekzen</dc:creator>
				<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://zazaq.com/?p=499</guid>
		<description><![CDATA[Coming from a Java background (yes, yes, boo all you want), one of the most strikingly different aspects of JavaScript is its prototypal nature. It&#8217;s a common misconception by many (myself included) to think that JavaScript is a good old classical language, thanks mainly to the new operator. Where in fact it is of that rare [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zazaq.com&#038;blog=12298177&#038;post=499&#038;subd=tekzen&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="size-full wp-image-500 alignright" title="prototype" src="http://tekzen.files.wordpress.com/2010/08/prototype.jpg?w=460" alt=""   /></p>
<p>Coming from a Java background (yes, yes, boo all you want), one of the most strikingly different aspects of JavaScript is its prototypal nature.</p>
<p>It&#8217;s a common misconception by many (myself included) to think that JavaScript is a good old classical language, thanks mainly to the <strong>new </strong>operator. Where in fact it is of that rare class of prototype languages (sorry to all those who thought this was about the game).</p>
<p>So what are the benefits of prototype? What use is it really?</p>
<p>
<h3>Inheritance</h3>
</p>
<p>Unlike classical languages, JavaScript has no class vs instance pairing. Instead &#8216;real&#8217; working objects are there to be extended by new objects.</p>
<p>Lets look at a quick example :</p>
<p><pre><span style="color:#3366ff;">var Animal = function() {
    this.eat = function() {
        alert('num num num');
    }
}

var Cat = function() {};
Cat.prototype = new Animal();

var myCat = new Cat();
myCat.eat();
</span></pre>
</p>
<p>As you can see Cat extends Animal by setting it&#8217;s prototype to an instance of Animal.</p>
<p>Now any calls to Cat.eat() will take the following chaining process :</p>
<ol>
<li>Does object Cat have an eat() method? : <strong>No</strong></li>
<li>Get prototype : <strong>Animal</strong></li>
<li>Does Animal have an eat() method? : <strong>Yes</strong></li>
<li>Run eat().</li>
</ol>
<p>This is called prototype chaining, in which a method or element call will move through the objects along the prototype chain checking for existence of the requested property.</p>
<p>
<h3>Memory Efficiency</h3>
</p>
<p>Consider the following two snippets of code :</p>
<p>
<pre><span style="color:#3366ff;">var Efficient = function() {}</span>
<span style="color:#3366ff;">Efficient.prototype.func = function() { alert('Hello World!'); }</span>
<span style="color:#3366ff;">var e1 = new Efficient();</span>
<span style="color:#3366ff;">var e2 = new Efficient();</span>
<span style="color:#3366ff;">
</span>
<span style="color:#ff0000;">var Duplicate = function() {</span>
<span style="color:#ff0000;">    this.func = function { alert('Hello World!'); }</span>
<span style="color:#ff0000;">} </span>
<span style="color:#ff0000;">var d1 = new Duplicate();</span>
<span style="color:#ff0000;">var d2 = new Duplicate();</span></pre>
</p>
<p>In the first example the function object for func() is assigned to the prototype object. So every instance of Efficient will share the same func(), as all calls will fall through to the prototype. There is one version of func()!</p>
<p>On the other hand, for every instance of Duplicate created, a new (but identical) version of func() will be created by the constructor. This means if we have ten Duplicate objects, we will also have ten func()&#8217;s defined, although their behaviour will be exactly the same.</p>
<p>As you can imagine, the latter will consume more memory than the former, as there are no shared functions.</p>
<p>
<h3>Retrospectively Changing a Class of Objects</h3>
</p>
<p>JavaScript is kind enough to allow us to change objects by adding methods or properties at any point during runtime. In other words dynamic objects!</p>
<p>But what if we have 100 instances of an object &#8216;class&#8217; (and I use class loosely) out there, and we want to add a method to them all!</p>
<p>Prototype to the rescue! Let&#8217;s reconsider that Cat example from earlier :</p>
<p>
<pre><span style="color:#3366ff;">var fluffy = new Cat();</span>
<span style="color:#3366ff;">var smelly = new Cat();</span>
<span style="color:#3366ff;">var bitey = new Cat();</span></pre>
</p>
<p>So we have three cats, fluffy, smelly and bitey. Suddenly (at some point in the code) there is the need for a meow() method that didn&#8217;t exist initially.</p>
<p>We could add our new meow() method to every existing Cat instance, but that seems too hard, and error prone.</p>
<p>&#8230; or we could just add it to the prototype, and all Cat&#8217;s will automatically get the method :</p>
<p>
<pre><span style="color:#3366ff;">Cat.prototype.meow = function() {</span>
<span style="color:#3366ff;">   alert('meow');</span>
<span style="color:#3366ff;">}</span>
<span style="color:#3366ff;">fluffy.meow();</span>
<span style="color:#3366ff;">
<span style="color:#3366ff;">bitey.meow();</span>
<span style="color:#3366ff;">
<span style="color:#3366ff;">smelly.meow();</span>
<span style="color:#3366ff;">
</span></pre>
</p>
<p>Now that was a little easier. Using this you can change a whole class of objects at runtime!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tekzen.wordpress.com/499/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tekzen.wordpress.com/499/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tekzen.wordpress.com/499/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tekzen.wordpress.com/499/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tekzen.wordpress.com/499/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tekzen.wordpress.com/499/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tekzen.wordpress.com/499/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tekzen.wordpress.com/499/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tekzen.wordpress.com/499/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tekzen.wordpress.com/499/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tekzen.wordpress.com/499/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tekzen.wordpress.com/499/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tekzen.wordpress.com/499/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tekzen.wordpress.com/499/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zazaq.com&#038;blog=12298177&#038;post=499&#038;subd=tekzen&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://zazaq.com/2010/08/14/prototype-in-javascript-and-similar-languages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a05917778a10a4741acf33fdc27058e?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">tekzen</media:title>
		</media:content>

		<media:content url="http://tekzen.files.wordpress.com/2010/08/prototype.jpg" medium="image">
			<media:title type="html">prototype</media:title>
		</media:content>
	</item>
		<item>
		<title>Back to Black (With VIM)</title>
		<link>http://zazaq.com/2010/08/11/back-to-black-with-vim/</link>
		<comments>http://zazaq.com/2010/08/11/back-to-black-with-vim/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 18:49:42 +0000</pubDate>
		<dc:creator>tekzen</dc:creator>
				<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://zazaq.com/?p=491</guid>
		<description><![CDATA[As a massive geek I do have a softspot for vim. Unfortunately, vim frequently clashes with your cool black terminal background, and causes blindness due to having dark writing on it&#8217;s equally dark background. Good news everybody! It&#8217;s pretty darn easy to fix this. Just create your ~/.vimrc file using your favourite text editor (vim [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zazaq.com&#038;blog=12298177&#038;post=491&#038;subd=tekzen&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" style="margin:5px;" title="vim" src="http://ostatic.com/files/images/vim-ruby-%5B1%5D.jpg" alt="" width="198" height="203" /></p>
<p>As a massive geek I do have a softspot for <strong>vim</strong>.</p>
<p>Unfortunately, vim frequently clashes with your cool black terminal background, and causes blindness due to having dark writing on it&#8217;s equally dark background.</p>
<p>Good news everybody! It&#8217;s pretty darn easy to fix this.</p>
<p>Just create your ~/.vimrc file using your favourite text editor (vim of course).</p>
<p>And add the following lines :</p>
<pre><strong>
:syn on

set background=dark

</strong></pre>
<p>Now you&#8217;ll have nice shiny writing on your cool black background &#8211; awesome!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/tekzen.wordpress.com/491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/tekzen.wordpress.com/491/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/tekzen.wordpress.com/491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/tekzen.wordpress.com/491/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/tekzen.wordpress.com/491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/tekzen.wordpress.com/491/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/tekzen.wordpress.com/491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/tekzen.wordpress.com/491/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/tekzen.wordpress.com/491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/tekzen.wordpress.com/491/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/tekzen.wordpress.com/491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/tekzen.wordpress.com/491/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/tekzen.wordpress.com/491/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/tekzen.wordpress.com/491/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=zazaq.com&#038;blog=12298177&#038;post=491&#038;subd=tekzen&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://zazaq.com/2010/08/11/back-to-black-with-vim/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6a05917778a10a4741acf33fdc27058e?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">tekzen</media:title>
		</media:content>

		<media:content url="http://ostatic.com/files/images/vim-ruby-%5B1%5D.jpg" medium="image">
			<media:title type="html">vim</media:title>
		</media:content>
	</item>
	</channel>
</rss>
