<?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>Web-Dev</title>
	<atom:link href="http://hamzakc.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://hamzakc.wordpress.com</link>
	<description>A story of just another web developer</description>
	<lastBuildDate>Mon, 26 Sep 2011 14:08:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='hamzakc.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Web-Dev</title>
		<link>http://hamzakc.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://hamzakc.wordpress.com/osd.xml" title="Web-Dev" />
	<atom:link rel='hub' href='http://hamzakc.wordpress.com/?pushpress=hub'/>
		<item>
		<title>New Blog</title>
		<link>http://hamzakc.wordpress.com/2007/05/02/new-blog/</link>
		<comments>http://hamzakc.wordpress.com/2007/05/02/new-blog/#comments</comments>
		<pubDate>Wed, 02 May 2007 19:22:40 +0000</pubDate>
		<dc:creator>Hamza</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://hamzakc.wordpress.com/2007/05/02/new-blog/</guid>
		<description><![CDATA[Hi, I have moved this blog over to here : http://hamza.khan-cheema.com All the old posts and soon the comments have been transfered there. Please note this will be the last post on this blog, please check my my blog. Hamza<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hamzakc.wordpress.com&amp;blog=86574&amp;post=28&amp;subd=hamzakc&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p><strong>I have moved this blog over to here :</strong></p>
<p><a href="http://hamza.khan-cheema.com" title="new blog">http://hamza.khan-cheema.com</a></p>
<p>All the old posts and soon the comments have been transfered there.</p>
<p>Please note this will be the last post on this blog, please check my my blog.</p>
<p>Hamza</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hamzakc.wordpress.com/28/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hamzakc.wordpress.com/28/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hamzakc.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hamzakc.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hamzakc.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hamzakc.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hamzakc.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hamzakc.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hamzakc.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hamzakc.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hamzakc.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hamzakc.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hamzakc.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hamzakc.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hamzakc.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hamzakc.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hamzakc.wordpress.com&amp;blog=86574&amp;post=28&amp;subd=hamzakc&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hamzakc.wordpress.com/2007/05/02/new-blog/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b28d0b9ff630f071d8867aa164f27a80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hamzakc</media:title>
		</media:content>
	</item>
		<item>
		<title>Rails Autocomplete Tag List</title>
		<link>http://hamzakc.wordpress.com/2007/03/03/rails-autocomplete-tag-list/</link>
		<comments>http://hamzakc.wordpress.com/2007/03/03/rails-autocomplete-tag-list/#comments</comments>
		<pubDate>Sat, 03 Mar 2007 12:53:26 +0000</pubDate>
		<dc:creator>Hamza</dc:creator>
				<category><![CDATA[Web Framework]]></category>

		<guid isPermaLink="false">http://hamzakc.wordpress.com/2007/03/03/rails-autocomplete-tag-list/</guid>
		<description><![CDATA[I wanted to make an autocomplete text field on a edit form that listed all of the tags that are already entered in the system. It is quite simple, but I thought I would share it to save some time for someone. Of course we are using acts_as_taggable The controller : def auto_complete_for_tag_name auto_complete_responder_for_tag_name params[:tag][:name] [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hamzakc.wordpress.com&amp;blog=86574&amp;post=26&amp;subd=hamzakc&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I wanted to make an autocomplete text field on a edit form that listed all of the tags that are already entered in the system.  It is quite simple, but I thought I would share it to save some time for someone. Of course we are using acts_as_taggable</p>
<p><strong>The controller :</strong></p>
<p><strong>def auto_complete_for_tag_name</strong><br />
auto_complete_responder_for_tag_name params[:tag][:name]<br />
<strong>end</strong></p>
<p><strong>def auto_complete_responder_for_tag_name(value)<br />
</strong>  @tag_list = Tag.find(:all,<br />
:conditions =&gt; [ 'LOWER(name) LIKE ?',<br />
'%' + value.downcase + '%' ],<br />
 <img src='http://s1.wp.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> rder =&gt; &#8216;name ASC&#8217;,<br />
:limit =&gt; 10)</p>
<p>render :partial =&gt; &#8216;tags&#8217;</p>
<p><strong>end</strong></p>
<p>Notice the partial</p>
<p><strong>def edit</strong><br />
@content = Content.find(params[:id])<br />
@tag = Tag.new<br />
@tag.name = @content.tag_list<br />
<strong>end</strong></p>
<p>To retrieve the current tag list you need to make a new Tag object and add the tag list to it.</p>
<p>In my _tag.rhtml partial :</p>
<p>&lt;ul class=&#8221;tags&#8221;&gt;<br />
&lt;% for tag in @tag_list do -%&gt;<br />
&lt;li class=&#8221;contact&#8221;&gt;&lt;div class=&#8221;name&#8221;&gt;&lt;%=h tag.name %&gt; &lt;/div&gt;&lt;/li&gt;<br />
&lt;% end -%&gt;<br />
&lt;/ul&gt;</p>
<p><strong>In My _form.rhtml</strong></p>
<p>&lt;p&gt;Tags (Seperate with space)&lt;br/&gt;</p>
<p>&lt;%= text_field_with_auto_complete :tag, :name,<br />
{:size =&gt;50, :skip_style =&gt; true},<br />
{:indicator =&gt;&#8217;searchIndicator&#8217;,<br />
:tokens =&gt; [' ', '\n']}   %&gt;<br />
&lt;%= image_tag(&#8220;/images/indicator2.gif&#8221;, :id =&gt; &#8216;searchIndicator&#8217;, :style  =&gt;  &#8216;display:none;&#8217;) %&gt;<br />
&lt;/p&gt;</p>
<p>You will notice that I have added a search indicator, which you will need to have on your system.</p>
<p>Thats how easy it is <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Hamza</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hamzakc.wordpress.com/26/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hamzakc.wordpress.com/26/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hamzakc.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hamzakc.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hamzakc.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hamzakc.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hamzakc.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hamzakc.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hamzakc.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hamzakc.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hamzakc.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hamzakc.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hamzakc.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hamzakc.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hamzakc.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hamzakc.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hamzakc.wordpress.com&amp;blog=86574&amp;post=26&amp;subd=hamzakc&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hamzakc.wordpress.com/2007/03/03/rails-autocomplete-tag-list/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b28d0b9ff630f071d8867aa164f27a80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hamzakc</media:title>
		</media:content>
	</item>
		<item>
		<title>Create Triple DES SecretKey in Java</title>
		<link>http://hamzakc.wordpress.com/2006/12/29/create-triple-des-secretkey-in-java/</link>
		<comments>http://hamzakc.wordpress.com/2006/12/29/create-triple-des-secretkey-in-java/#comments</comments>
		<pubDate>Fri, 29 Dec 2006 21:58:10 +0000</pubDate>
		<dc:creator>Hamza</dc:creator>
				<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://hamzakc.wordpress.com/2006/12/29/create-triple-des-secretkey-in-java/</guid>
		<description><![CDATA[For a project at work, I needed to integrate our website with another web application. The web application in question also had their own built in user management system. For seamless integration we wanted our users to only have to log in once. As the web application was quite a large application, they already had [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hamzakc.wordpress.com&amp;blog=86574&amp;post=25&amp;subd=hamzakc&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>For a project at work, I needed to integrate our website with another web application.  The web application in question also had their own built in user management system.  For seamless integration we wanted our users  to only have to log in once.</p>
<p>As the web application was quite a large application, they already had a  REST api that allowed you to supply them with a encrypted token in the url that authenticated you on their systems. You simply had to encrypt the user id (on their system) and the current time stamp.</p>
<p>As I had never done anything to do with encryption before in Java.  I had to learn from scratch.</p>
<p>The token had to be encrypted with Triple DES CBC scheme.   They supply you with an access key.  Here is where the problem lay.  I could find quite a few examples that allowed you to use the inbuilt key generator in Java, but what about if you have your own key (our access key).  This was a bit more difficult to find, so I thought I would blog a code snipit here.  In the end it turned out to simple (it always is <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The key needed to be Triple DES (DESede)<br />
<code><br />
String keyString ="4d89g13j4j91j27c582ji69373y788r6"; // I made this key up by the way!</code></p>
<p><code><br />
byte[] keyB = new byte[24]; // a Triple DES key is a byte[24] array<br />
</code></p>
<p><code><br />
for (int i = 0; i &lt; keyString.length() &amp;&amp; i &lt; keyB.length; i++) {<br />
keyB[i] = (byte) keyString.charAt(i);<br />
}<br />
</code></p>
<p><code>// Make the Key<br />
SecretKey key = new SecretKeySpec(keyB, "DESede");<br />
</code></p>
<p>A good resource that I found was <a href="http://www.owasp.org/index.php/Using_the_Java_Cryptographic_Extensions#Des_Encryption_and_Decryption" target="_blank">here</a> :</p>
<p><a href="http://www.owasp.org/index.php/Using_the_Java_Cryptographic_Extensions#Des_Encryption_and_Decryption" target="_blank"><br />
</a></p>
<p>Hamza</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hamzakc.wordpress.com/25/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hamzakc.wordpress.com/25/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hamzakc.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hamzakc.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hamzakc.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hamzakc.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hamzakc.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hamzakc.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hamzakc.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hamzakc.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hamzakc.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hamzakc.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hamzakc.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hamzakc.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hamzakc.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hamzakc.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hamzakc.wordpress.com&amp;blog=86574&amp;post=25&amp;subd=hamzakc&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hamzakc.wordpress.com/2006/12/29/create-triple-des-secretkey-in-java/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b28d0b9ff630f071d8867aa164f27a80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hamzakc</media:title>
		</media:content>
	</item>
		<item>
		<title>Atheros Wireless Setup &#8211; Ubuntu</title>
		<link>http://hamzakc.wordpress.com/2006/12/11/atheros-wireless-setup-ubuntu/</link>
		<comments>http://hamzakc.wordpress.com/2006/12/11/atheros-wireless-setup-ubuntu/#comments</comments>
		<pubDate>Mon, 11 Dec 2006 18:28:44 +0000</pubDate>
		<dc:creator>Hamza</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://hamzakc.wordpress.com/2006/12/11/atheros-wireless-setup-ubuntu/</guid>
		<description><![CDATA[As I stated earlier, I just bought a new laptop and installed Ubuntu 6.10 (Edgy Eft) on it. All was working apart from the wireless connection. The Laptop comes with a Atheros wireless card. Ubuntu also comes installed with madwifi drivers for the card. So in theory things should just work, right ? Well no. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hamzakc.wordpress.com&amp;blog=86574&amp;post=24&amp;subd=hamzakc&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As I stated earlier, I just bought a new laptop and installed Ubuntu 6.10 (Edgy Eft) on it.  All was working apart from the wireless connection.  The Laptop comes with a Atheros wireless card.  Ubuntu also comes installed with <a href="http://madwifi.org">madwifi</a> drivers for the card.  So in theory things should just work, right ? Well no.  The version of the wireless card I have (I do not have the version to hand) does not work with the current ubuntu package of madWiFi drivers.</p>
<p>So this is a quick step by step tutorial on how I got things to work nicely :</p>
<ul class="listing to_do">
<li class="not_to_do"><span>Get the g++ compiler : <em>sudo apt-get install build-essential</em><br />
</span></li>
<li class="not_to_do"><span>Download subversion : <em>sudo apt-get install subversion</em></span></li>
<li class="not_to_do"><span>Create directory to store the drivers and navigate to it.</span></li>
<li class="not_to_do"><span>Download latest madwifi drivers using subversion : <em>subversion svn checkout <a href="http://svn.madwifi.org/trunk" target="_externalLink">http://svn.madwifi.org/trunk</a> madwifi</em><br />
</span></li>
<li class="not_to_do"><span>Get the current Kernel you are running : <em>uname -r </em></span></li>
<li class="not_to_do"><span>Navigate to the correct lib directory : <em>cd /lib/modules/$(uname -r) </em>(use the output from the previous step to get the directory)<br />
</span></li>
<li class="not_to_do"><span>Delete the net lib files : <em>sudo rm -rf net</em><br />
</span></li>
<li class="not_to_do"><span>Delete the madwifi files : <em>sudo rm -rf madwifi</em><br />
</span></li>
<li class="not_to_do"><span>Delete this folder if it exists : <em>sudo rm -rf madwifi-ng</em><br />
</span></li>
<li class="not_to_do"><span>Find the modules currently installed that you need to unload : <em>lsmod | grep ath</em><br />
</span></li>
<li class="not_to_do"><span>From this output above issue a rmmod command for all the modules : <em>sudo rmmod modulename</em><br />
</span></li>
<li class="not_to_do"><span>Go back to where you downloaded the new subversion drivers and run : <em>sudo make</em> and then <em>sudo make install</em> answer yes to remove the old module.<br />
</span></li>
<li class="not_to_do"><span>Load all of the modules you have just unloaded using<em> modprobe</em>. These should be: </span><br />
<em>sudo modprobe ath_pci<br />
sudo modprobe ath_rate_sample<br />
sudo modprobe wlan<br />
sudo modprobe ath_hal</em><span> </span></li>
<li class="not_to_do"><span>Check to see if modules have been loaded by typing <em>dmesg </em>and looking at the system log.<br />
</span></li>
<li class="not_to_do"><span>Open up network gui in Ubuntu and enable the wifi card and set the sessid</span></li>
</ul>
<p>The card should now be configured.  However if you want a dock applet that informs you how much strength your wireless card has, I would suggest <strong><span>netapplet</span></strong><span>.  </span></p>
<p>I hope this has helped someone.  This took me about 2-3 hours to get working!</p>
<p>Hamza</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hamzakc.wordpress.com/24/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hamzakc.wordpress.com/24/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hamzakc.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hamzakc.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hamzakc.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hamzakc.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hamzakc.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hamzakc.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hamzakc.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hamzakc.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hamzakc.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hamzakc.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hamzakc.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hamzakc.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hamzakc.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hamzakc.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hamzakc.wordpress.com&amp;blog=86574&amp;post=24&amp;subd=hamzakc&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hamzakc.wordpress.com/2006/12/11/atheros-wireless-setup-ubuntu/feed/</wfw:commentRss>
		<slash:comments>34</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b28d0b9ff630f071d8867aa164f27a80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hamzakc</media:title>
		</media:content>
	</item>
		<item>
		<title>PC Nextday Zoostorm 4-5701 17&#8243; Laptop &#8211; Wireless problem</title>
		<link>http://hamzakc.wordpress.com/2006/12/08/pc-nextday-zoostorm-4-5701-17-laptop-wireless-problem/</link>
		<comments>http://hamzakc.wordpress.com/2006/12/08/pc-nextday-zoostorm-4-5701-17-laptop-wireless-problem/#comments</comments>
		<pubDate>Fri, 08 Dec 2006 19:17:14 +0000</pubDate>
		<dc:creator>Hamza</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://hamzakc.wordpress.com/2006/12/08/pc-nextday-zoostorm-4-5701-17-laptop-wireless-problem/</guid>
		<description><![CDATA[So I bought a 17&#8243; Zoostorm laptop from PCNextday . It got 5 stars out of 5 from Computer Shopper and it worked out about £200 cheaper the a 17&#8243; Dell laptop. All was well, I was aware that they did have a bad reputation for customer service, but I thought I would risk it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hamzakc.wordpress.com&amp;blog=86574&amp;post=21&amp;subd=hamzakc&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So I bought a <a href="http://www.pcnextday.co.uk/products/ProductDetail.asp?ProductCode=3384-5701" target="_blank">17&#8243; Zoostorm laptop</a> from <a href="http://www.pcnextday.com" target="_blank">PCNextday</a> .  It got 5 stars out of 5 from <a href="http://www.pcpro.co.uk/shopper/labs/96085/pc-nextday-zoostorm-45701.html" target="_blank">Computer Shopper</a> and it worked out about £200 cheaper the a 17&#8243; Dell laptop.</p>
<p>All  was well, I was aware that they did have a bad reputation for customer service, but I thought I would risk it as the saving was too much.</p>
<p>The laptop came within 3 days of me ordering it.  This was a surprise as they said that it can take up to take 3 weeks.</p>
<p>The laptop was working well, I was impressed with the screen (even though computer shopper said it was dull).  However I was having a problem with the built in wireless card (Atheros).  It was getting a very low signal even though I was sitting next to the  wireless router.  I first thought this was my router, so I asked someone else to test it and they reported the same problems.  I then went and upgraded the software to the latest driver.  The windows drivers are  difficult to find so here is a <a href="ftp://lizzi555.dyndns.org/Download/WLAN/Atheros/" target="_blank">good resource</a>. But this had no effect. So after tearing my hair out I could not figure it out I emailed the technical support at pcnextday.  They took a long time to respond, but their response was worth the wait.  They basically said to check weather the wireless card was installed correctly and gave me these pictures :</p>
<p><a href="http://hamzakc.files.wordpress.com/2006/12/laptop.JPG" title="laptop screws"><img src="http://hamzakc.files.wordpress.com/2006/12/laptop.JPG?w=489&#038;h=252" alt="laptop screws" height="252" width="489" /></a></p>
<p><a href="http://hamzakc.files.wordpress.com/2006/12/laptop-wireless.JPG" title="laptop_wireless"><img src="http://hamzakc.files.wordpress.com/2006/12/laptop-wireless.JPG?w=497&#038;h=481" alt="laptop_wireless" height="481" width="497" /></a></p>
<p>So I unscrewed the laptop and checked it.  I found out that the card was in the correct place, however the antenna was connected to the wrong point in the card.  So I changed that and tested it.  Unfortunately this did not work.  As there were two wires that were black, I thought maybe the person who installed it made a mistake and attached the wrong wire.  So I added the other wire and it worked.  Now I have an excellent signal <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I hope this experience helps someone.  I think pcnextday need to work on their quality control <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I have installed Ubuntu 6.10 on the laptop.  All of the things seem to work.  I had to do some configuration to get the wireless card to work though, but that is another blog post.</p>
<p>Hamza</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hamzakc.wordpress.com/21/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hamzakc.wordpress.com/21/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hamzakc.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hamzakc.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hamzakc.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hamzakc.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hamzakc.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hamzakc.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hamzakc.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hamzakc.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hamzakc.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hamzakc.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hamzakc.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hamzakc.wordpress.com/21/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hamzakc.wordpress.com/21/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hamzakc.wordpress.com/21/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hamzakc.wordpress.com&amp;blog=86574&amp;post=21&amp;subd=hamzakc&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hamzakc.wordpress.com/2006/12/08/pc-nextday-zoostorm-4-5701-17-laptop-wireless-problem/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b28d0b9ff630f071d8867aa164f27a80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hamzakc</media:title>
		</media:content>

		<media:content url="http://hamzakc.files.wordpress.com/2006/12/laptop.JPG" medium="image">
			<media:title type="html">laptop screws</media:title>
		</media:content>

		<media:content url="http://hamzakc.files.wordpress.com/2006/12/laptop-wireless.JPG" medium="image">
			<media:title type="html">laptop_wireless</media:title>
		</media:content>
	</item>
		<item>
		<title>Dual Monitor Setup &#8211; Ubuntu ATI</title>
		<link>http://hamzakc.wordpress.com/2006/10/16/dual-monitor-setup-ubuntu-ati/</link>
		<comments>http://hamzakc.wordpress.com/2006/10/16/dual-monitor-setup-ubuntu-ati/#comments</comments>
		<pubDate>Mon, 16 Oct 2006 15:16:37 +0000</pubDate>
		<dc:creator>Hamza</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://hamzakc.wordpress.com/2006/10/16/dual-monitor-setup-ubuntu-ati/</guid>
		<description><![CDATA[I wanted to get my dual monitor setup working at work. I have the latest veresion of Ubuntu (6.06 LTS &#8211; the Dapper Drake). aticonfig This is a really easy way to get it working. I have a Dell Optiplex GX620 with a ATI graphics card. The card can support a dual monitor setup. It [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hamzakc.wordpress.com&amp;blog=86574&amp;post=20&amp;subd=hamzakc&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I wanted to get my dual monitor setup working at work.  I have the latest veresion of Ubuntu (6.06 LTS &#8211; the Dapper Drake).</p>
<p><span style="font-weight:bold;">aticonfig</span><br />
This is a really easy way to get it working. I have a Dell Optiplex GX620 with a ATI  graphics card.  The card can support a dual monitor setup.</p>
<p>It turns out that ati have supplied a program (<span style="font-style:italic;">aticonfig</span>) that inspects your current xorg.conf file and then changes it to allow for dual monitor setup.</p>
<p>Here is what you do in a terminal window :</p>
<p><strong>sudo aticonfig &#8211;initial=dual-head &#8211;screen-layout=left</strong></p>
<p>You may want to change the <span style="font-weight:bold;">left</span> to be <span style="font-weight:bold;">right,</span> dependendant on where your main monitor is (monitor 0).</p>
<p>As I have two monitors that support diffrent resolutions, the setup was using 1024&#215;768 on both screens and I could not drag windows accross screens (I could drag the mouse <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>To address the dragging window  issue, I did this after I executed the first command :</p>
<p><strong>sudo aticonfig &#8211;dtop=horizontal, reverse &#8211;overlay-on=1</strong></p>
<p>If you look at the <span style="font-style:italic;">help</span> page for aticonfig, you will see that <span style="font-style:italic;">dtop</span> can take different parameters.  Because my second screen was to the left of monitor 0, I had  <strong>horizontal, reverse </strong>But if it was to the right I would have used <strong>horizontal </strong>only.</p>
<p>To address the screen resolution do this (<span style="font-style:italic;">please see note</span>)</p>
<p><strong>sudo aticonfig &#8211;resolution=0,1600&#215;1200,1280&#215;1024,1024&#215;768</strong></p>
<p>This now sets my monitor 0 to be able to support 1600&#215;1200 resolution.  My smaller monitor (monitor 1) will use 1024&#215;768, which is what I want.  You can simply change where it says <span style="font-weight:bold;">0 </span> to be <span style="font-weight:bold;">1 </span>This will now change monitor 1.</p>
<p>Now simply restart gdm to see the effects.  Or if you can&#8217;t do that, just restart the machine.<br />
<strong>Note</strong></p>
<p>Before you start changing the resolution, you need to know which is defined as monitor 0. As in my case monitor 0 supports a higher resolution then monitor 1. The easy way to find this out is to do the first two steps, start up and then the monitor with the menubar on top of it is monitor 0.  If it is not the monitor you wanted, you can simply swap around the vga cables that go into the back of the video card<br />
There is a way to do it by editing the xorg.conf, but this is supposed to be a simple way of doing it <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I hope this helps someone!</p>
<p>Hamza</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hamzakc.wordpress.com/20/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hamzakc.wordpress.com/20/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hamzakc.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hamzakc.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hamzakc.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hamzakc.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hamzakc.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hamzakc.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hamzakc.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hamzakc.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hamzakc.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hamzakc.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hamzakc.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hamzakc.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hamzakc.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hamzakc.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hamzakc.wordpress.com&amp;blog=86574&amp;post=20&amp;subd=hamzakc&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hamzakc.wordpress.com/2006/10/16/dual-monitor-setup-ubuntu-ati/feed/</wfw:commentRss>
		<slash:comments>33</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b28d0b9ff630f071d8867aa164f27a80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hamzakc</media:title>
		</media:content>
	</item>
		<item>
		<title>RailsConf, My thoughts</title>
		<link>http://hamzakc.wordpress.com/2006/09/15/rubyconf-my-thoughts/</link>
		<comments>http://hamzakc.wordpress.com/2006/09/15/rubyconf-my-thoughts/#comments</comments>
		<pubDate>Fri, 15 Sep 2006 23:26:28 +0000</pubDate>
		<dc:creator>Hamza</dc:creator>
				<category><![CDATA[Web Framework]]></category>

		<guid isPermaLink="false">http://hamzakc.wordpress.com/2006/09/15/rubyconf-my-thoughts/</guid>
		<description><![CDATA[I have just got home from two very exciting days at the rubyconf conference in London. Here are a few observations and just a few things I have learnt. Observations I am not sure why, but I had a distinct impression that the majority of attendees would have been from Europe. However I seemed to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hamzakc.wordpress.com&amp;blog=86574&amp;post=18&amp;subd=hamzakc&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have just got home from two very exciting days at the rubyconf conference in London. Here are a few observations and just a few things I have learnt.</p>
<p><strong>Observations</strong><br />
I am not sure why, but I had a distinct impression that the majority of attendees would have been from Europe. However I seemed to come across people from the US or Canada. People who have come over from the states especially for the conference or people who are making it part of their vacation. Not that this is a bad thing. In fact it showed me that they were really committed to Rails and to Ruby. I have to say if my company was not paying for my ticket, I would never have dreamed of going to the conference. Maybe I need to get more involved <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>As this is my first conference, I was not sure what to expect. It was an entire new experience. I was pleasantly surprised by the organisation of the conference by skillsmatter and also by the excellent calibre of the speakers. As I am new to the ruby world, I did not know the speakers (apart from David H), this conference allowed me to put faces and personalities to these very influential people within the Rails / Ruby community.</p>
<p>I got to see the Rails core team. This was a real eye opener for me, as I had no idea who they were or what their thoughts were for the future of Rails (I know I should read more).</p>
<p>Then comes David H&#8217;s talk. I have to say that I was impressed with David&#8217;s ideas and the way he presented himself. I really like the RESTFUL stuff and ActiveResource and also the Simply Helper. For those of you that don&#8217;t know, this is a way of putting conventions into the view layer like he has just done for the controller using REST.</p>
<p><strong>Things I learned</strong></p>
<p>Overall I have to say that I did learn allot (especially about Ruby)</p>
<ul>
<li>Rails 1.2 is to be released very soon and is going to depreciate a whole bunch of methods.</li>
<li>In Rails 2.0 these deprecated methods will be removed.</li>
</ul>
<ul>
<li>1.2 is going to heavily push the REST stuff.</li>
</ul>
<ul>
<li>Routing has completely been rewritten as it was a bottleneck. This is to be released in 1.2</li>
</ul>
<ul>
<li>The goals of ActiveResource, It is not going to ship with Rails 1.2, maybe 2.0 ?</li>
</ul>
<ul>
<li>With all the restful work on the controllers, the view started to look dated, so they have developed SimplyHelper, which is a convention for views.</li>
</ul>
<ul>
<li><span style="font-weight:bold;">Rails speaks &#8216;C&#8217;</span> &#8211; This was a talk I attended. I think things like this are very important. If we have a very complex algorithm or we have some legacy C systems, we need to be able to call C code from Ruby. In the Python CMS world Zope does this for a lot of complex operations (as far as I remember, correct me if I am wrong). 4 different approaches were mentioned. I noted that SWIG seemed to be one of the better options (and it supports c++).</li>
</ul>
<ul>
<li>If you are using C to do a big CPU intensive task, or a task that will take a while to complete, then you need to use BackgroundDRB. This allows you to spawn requests in the background (surprise,surprise). So in a web app the client gets a response straight away, so he knows something is happening , a progress bar would be a good indicator in this situation.</li>
</ul>
<ul>
<li>I really enjoyed the talk about high performance. I always wondered if anyone had deployed Rails apps, which had to handle over a million hits per day. Well James Cox seemed to have allot of experience in this field, and he shared some tips with us. I will mention a few here.
<ul>
<li>Speed Perceived &#8211; This is to use Ajax to make the app perceive fast to the user. The user will not know.</li>
<li>Always use :select, :limit and <img src='http://s1.wp.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> ffset in your queries.</li>
<li>Try and use lazy loading (:include).</li>
<li>MEMCACHED &#8211; Basically always use this as much as possible, he really emphasised this point.</li>
<li>Avoid shared hosting (obvious).</li>
<li>Page Caching &#8211; BAD &#8211; Avoid this as it is a nightmare to clean up.</li>
<li>Fragment Caching &#8211; Is better then page caching, but their are scalability issues</li>
<li>8 server Gem (server architecture) &#8211; 2 x Proxy / Web static servers, 4 x Application servers, 2x Database servers with database replication.</li>
<li>Session management &#8211; use memcache, not the database store</li>
<li>If you have one server use Apache (fcgi), but this does not scale well, so for multiple machines use mongrel.</li>
<li>Put Google Analytics in its own iframe, this will avoid your app waiting to show the page because it is retrieving the js from google.</li>
</ul>
</li>
</ul>
<ul>
<li>Django
<ul>
<li>Really cool!</li>
<li>Has built in user and groups in the framework</li>
<li>Uses python code to define database schema.  This allows them to add rich data models.  So you can define an upload field or a url field, the system will automatically know what to do with this field.  This allows them to auto generate the admin interface to such a high level and what streamlined is trying to replicate for Rails.</li>
<li>Reusable template views with hierarchy functionality.</li>
<li>Try and not use AJAX in the admin section, as you do not know what kind of PC your publishers are going to publish from (old, etc.)</li>
</ul>
</li>
</ul>
<p>I have a lot more to write.  Which I should be doing over the weekend.</p>
<p>Thanks.</p>
<p>Please comment if you found this useful or not.<br />
Hamza</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hamzakc.wordpress.com/18/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hamzakc.wordpress.com/18/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hamzakc.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hamzakc.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hamzakc.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hamzakc.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hamzakc.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hamzakc.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hamzakc.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hamzakc.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hamzakc.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hamzakc.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hamzakc.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hamzakc.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hamzakc.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hamzakc.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hamzakc.wordpress.com&amp;blog=86574&amp;post=18&amp;subd=hamzakc&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hamzakc.wordpress.com/2006/09/15/rubyconf-my-thoughts/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b28d0b9ff630f071d8867aa164f27a80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hamzakc</media:title>
		</media:content>
	</item>
		<item>
		<title>RailsConf</title>
		<link>http://hamzakc.wordpress.com/2006/09/13/railsconf/</link>
		<comments>http://hamzakc.wordpress.com/2006/09/13/railsconf/#comments</comments>
		<pubDate>Wed, 13 Sep 2006 14:02:39 +0000</pubDate>
		<dc:creator>Hamza</dc:creator>
				<category><![CDATA[Web Framework]]></category>

		<guid isPermaLink="false">http://hamzakc.wordpress.com/2006/09/13/railsconf/</guid>
		<description><![CDATA[I am really excited that I am going to RailsConf in London! Its going to be my first tech conference Hopefully I can write some thoughts about it on this blog. Hamza<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hamzakc.wordpress.com&amp;blog=86574&amp;post=17&amp;subd=hamzakc&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I am really excited that I am going to <a href="http://europe.railsconf.org/" title="RailsConf in London">RailsConf in London</a>! Its going to be my first tech conference <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Hopefully I can write some thoughts about it on this blog.</p>
<p>Hamza</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hamzakc.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hamzakc.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hamzakc.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hamzakc.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hamzakc.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hamzakc.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hamzakc.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hamzakc.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hamzakc.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hamzakc.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hamzakc.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hamzakc.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hamzakc.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hamzakc.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hamzakc.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hamzakc.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hamzakc.wordpress.com&amp;blog=86574&amp;post=17&amp;subd=hamzakc&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hamzakc.wordpress.com/2006/09/13/railsconf/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b28d0b9ff630f071d8867aa164f27a80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hamzakc</media:title>
		</media:content>
	</item>
		<item>
		<title>Delicious with Ruby on Rails &#8211; JSON</title>
		<link>http://hamzakc.wordpress.com/2006/09/13/delicious-with-ruby-on-rails-json/</link>
		<comments>http://hamzakc.wordpress.com/2006/09/13/delicious-with-ruby-on-rails-json/#comments</comments>
		<pubDate>Wed, 13 Sep 2006 13:58:19 +0000</pubDate>
		<dc:creator>Hamza</dc:creator>
				<category><![CDATA[Web Framework]]></category>

		<guid isPermaLink="false">http://hamzakc.wordpress.com/2006/09/13/delicious-with-ruby-on-rails-json/</guid>
		<description><![CDATA[I recently (well about a month ago!) read a very good post that informs you how to add your delicious links to your rails app. I was using that method and all was well, until I got a request that the links should open in a new window. With the simple html access to my [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hamzakc.wordpress.com&amp;blog=86574&amp;post=16&amp;subd=hamzakc&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I recently (well about a month ago!) read a <a href="http://kekova.ca/articles/2005/12/08/include-del-icio-us-links-on-your-page">very good post</a> that informs you how to add your delicious links to your rails app.</p>
<p>I was using that method and all was well, until I got a request that the links should open in a new window. With the simple html access to my links, that was not an option you can pass. So I had to resort to using something more complicated; <a href="http://www.json.org/" title="JSON">JSON</a> seemed the easiest for me to read in and manipulate.</p>
<p>I would advise you to follow <a href="http://kekova.ca/articles/2005/12/08/include-del-icio-us-links-on-your-page">this tutorial</a> and then come back here and see how the code can be changed to use JSON instead of the HTML api.</p>
<p>You will need to install the JSON ruby library first.</p>
<p>gem install json</p>
<p>If that does not work just download it from <a href="http://json.rubyforge.org/" title="json for ruby">here</a> and run the install script.</p>
<p>Here is the modified method (I have posted it in Pastie, all my future code samples will be in Pastie)</p>
<p><a href="http://pastie.caboo.se/13083" title="Code">http://pastie.caboo.se/13083</a></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hamzakc.wordpress.com/16/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hamzakc.wordpress.com/16/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hamzakc.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hamzakc.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hamzakc.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hamzakc.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hamzakc.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hamzakc.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hamzakc.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hamzakc.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hamzakc.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hamzakc.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hamzakc.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hamzakc.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hamzakc.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hamzakc.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hamzakc.wordpress.com&amp;blog=86574&amp;post=16&amp;subd=hamzakc&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hamzakc.wordpress.com/2006/09/13/delicious-with-ruby-on-rails-json/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b28d0b9ff630f071d8867aa164f27a80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hamzakc</media:title>
		</media:content>
	</item>
		<item>
		<title>Search problems</title>
		<link>http://hamzakc.wordpress.com/2006/07/09/search-problems/</link>
		<comments>http://hamzakc.wordpress.com/2006/07/09/search-problems/#comments</comments>
		<pubDate>Sun, 09 Jul 2006 16:39:24 +0000</pubDate>
		<dc:creator>Hamza</dc:creator>
				<category><![CDATA[Web Framework]]></category>

		<guid isPermaLink="false">https://hamzakc.wordpress.com/2006/07/09/search-problems/</guid>
		<description><![CDATA[In my last post I said that I was using acts_as_ferret.  However I was finding it difficult to create an index for a certain section of the site.  I think this was due to me having null fields some of the database fields. I could nt change this. When I was having problems I turned [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hamzakc.wordpress.com&amp;blog=86574&amp;post=15&amp;subd=hamzakc&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In my last post I said that I was using acts_as_ferret.  However I was finding it difficult to create an index for a certain section of the site.  I think this was due to me having null fields some of the database fields. I could nt change this.</p>
<p>When I was having problems I turned to <a href="http://poocs.net/articles/2006/04/06/introducing-acts_as_searchable" target="_blank">acts_as_searchable</a>. As the post states the search plugin uses <a href="http://hyperestraier.sourceforge.net/">HyperEstraier</a> which is an opensource search engine.  It seems to be very good and above all (for me) the UTF support seems excellent. This is demenstroated by having a Japenese language search demo on their site.</p>
<p>I managed to get it to work <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  I will post how in the next couple of days.</p>
<p>My first thoughs about <a href="http://hyperestraier.sourceforge.net/">HyperEstraier</a> is that it has some very good features, but most of the features I am not going to use in the near future.  Overall the set up is a bit more invloved then ferret, this is because you need to run a deamon.</p>
<p>More thoughts soon!</p>
<p>Hamza</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/hamzakc.wordpress.com/15/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/hamzakc.wordpress.com/15/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hamzakc.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hamzakc.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hamzakc.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hamzakc.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hamzakc.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hamzakc.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hamzakc.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hamzakc.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hamzakc.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hamzakc.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hamzakc.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hamzakc.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hamzakc.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hamzakc.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hamzakc.wordpress.com&amp;blog=86574&amp;post=15&amp;subd=hamzakc&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hamzakc.wordpress.com/2006/07/09/search-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/b28d0b9ff630f071d8867aa164f27a80?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hamzakc</media:title>
		</media:content>
	</item>
	</channel>
</rss>
