<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>shah's notebook</title>
	<atom:link href="http://blog.shahonseven.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.shahonseven.com</link>
	<description>the answer to life, the universe and everything</description>
	<lastBuildDate>Wed, 27 May 2009 04:37:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>iPod Touch Screen Definitely Scratchable</title>
		<link>http://blog.shahonseven.com/archives/2009/05/27/ipod-touch-screen-definitely-scratchable/</link>
		<comments>http://blog.shahonseven.com/archives/2009/05/27/ipod-touch-screen-definitely-scratchable/#comments</comments>
		<pubDate>Wed, 27 May 2009 02:57:25 +0000</pubDate>
		<dc:creator>Shah</dc:creator>
				<category><![CDATA[Rant]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[ipod touch]]></category>

		<guid isPermaLink="false">http://blog.shahonseven.com/archives/2009/05/27/ipod-touch-screen-definitely-scratchable/</guid>
		<description><![CDATA[I know this because I scratched mine! Albeit it&#8217;s just a hairline thin but it&#8217;s still a scratch. I have a habit of putting the iPod in my shirt pocket and other stuffs in my pant pocket but yesterday I put a friggin&#8217; pen in my shirt pocket. Damn.
 If you like this post, please buy [...]]]></description>
			<content:encoded><![CDATA[<p>I know this because I scratched mine! Albeit it&#8217;s just a hairline thin but it&#8217;s still a scratch. I have a habit of putting the iPod in my shirt pocket and other stuffs in my pant pocket but yesterday I put a friggin&#8217; pen in my shirt pocket. Damn.</p>
<p class="buymebeer"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="shahonseven@gmail.com" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value=" If you like this post, please buy me a coffee. for iPod Touch Screen Definitely Scratchable " /><input type="hidden" name="currency_code" value="USD" /><input type="hidden" name="amount" value="2" /><input type="image" src="http://blog.shahonseven.com/wp-content/plugins/buy-me-beer/icon_cafe.gif" align="left" alt=" If you like this post, please buy me a coffee." title=" If you like this post, please buy me a coffee." hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=shahonseven@gmail.com&amp;currency_code=USD&amp;amount=2&amp;return=&amp;item_name=+If+you+like+this+post,+please+buy+me+a+coffee.+for+iPod+Touch+Screen+Definitely+Scratchable+" target="paypal"> If you like this post, please buy me a coffee.</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shahonseven.com/archives/2009/05/27/ipod-touch-screen-definitely-scratchable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sync iPhone Or iPod Touch Contacts With Nokia Using SyncML</title>
		<link>http://blog.shahonseven.com/archives/2009/05/20/sync-iphone-or-ipod-touch-contacts-with-nokia-using-syncml/</link>
		<comments>http://blog.shahonseven.com/archives/2009/05/20/sync-iphone-or-ipod-touch-contacts-with-nokia-using-syncml/#comments</comments>
		<pubDate>Wed, 20 May 2009 14:37:47 +0000</pubDate>
		<dc:creator>Shah</dc:creator>
				<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[ipod touch]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[synchronisation]]></category>
		<category><![CDATA[syncml]]></category>

		<guid isPermaLink="false">http://blog.shahonseven.com/?p=404</guid>
		<description><![CDATA[Just got myself an iPod Touch 2G. I really like it though I don&#8217;t listen to music very much. iPod Touch comes with Contacts app but I didn&#8217;t use it because obviously iPod Touch can&#8217;t make a phone call (without VOIP app that is), unlike iPhone. So I thought it might be useful as a [...]]]></description>
			<content:encoded><![CDATA[<p>Just got myself an iPod Touch 2G. I really like it though I don&#8217;t listen to music very much. iPod Touch comes with Contacts app but I didn&#8217;t use it because obviously iPod Touch can&#8217;t make a phone call (without VOIP app that is), unlike iPhone. So I thought it might be useful as a backup for my Nokia N95 8GB. After much of researching (technically it&#8217;s not really a research but a simple Google search but who cares, right?) I finally managed to sync contacts from Nokia to iPod and vice versa.</p>
<p>Okay, here are the things you&#8217;ll need:<br />
1. <a href="http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=284950142&#038;mt=8">Synthesis SyncML Client for iPhone/iPod Touch</a>. Available for free in App Store.<br />
2. iPod Touch/iPhone. Obviously.<br />
3. Any phone that supported SyncML. I use Nokia N95 8GB for this matter.<br />
4. An online SyncML account. I use Mobical.net.</p>
<p>Now, let&#8217;s get started:<br />
1. <a href="https://www.mobical.net/mobical/startpage/index.jsp?page=register&#038;tab=home">Register an account with Mobical.net</a> and configure your phone by following the instruction provided. For example my device&#8217;s configuration is like this:</p>
<p><em> Open the synchronization settings by navigating through the following menus:<br />
Tools -> Sync<br />
Select &#8220;Options&#8221; -> &#8220;New sync profile&#8221;<br />
Select &#8220;No&#8221; to the copy value question<br />
Sync profile name: Mobical.net<br />
Select &#8220;Applications&#8221;<br />
Select &#8220;Contacts&#8221;<br />
Include in sync: yes<br />
Remote database: con<br />
Select &#8220;Back&#8221;<br />
Select &#8220;Calendar&#8221;<br />
Include in sync: yes<br />
Remote database: caltask<br />
Select &#8220;Back&#8221;<br />
Select &#8220;Notes&#8221;<br />
Include in sync: yes<br />
Remote database: pnote<br />
Select &#8220;Back&#8221;<br />
Lifeblog: Not supported<br />
Select &#8220;Text message&#8221;<br />
Include in sync: yes<br />
Remote database: sms<br />
Select &#8220;Back&#8221;<br />
Bookmarks: Nokia bookmark sync not supported by this service yet<br />
Select &#8220;Back&#8221;<br />
Select &#8220;Connection settings&#8221;<br />
Server version: 1.2<br />
Server ID: leave empty<br />
Data bearer Internet<br />
Access point Your default Internet connection<br />
Host address: http://www.mobical.net/sync/server<br />
Port: 80<br />
Username: {yourusername}<br />
Password: {yourpassword}<br />
Allow sync requests: Yes<br />
Accept all sync requests: No<br />
Network authentication: No</em></p>
<p>NOTE: Before you start sync, make sure that the are no duplicate field name in a contact. For instance, if your contact keep several mobile numbers, make sure you label them as mobile for the first one, mobile (home) for the second one and mobile (work) for the last number. Some phone can&#8217;t display several info under one label. If this happens to you, log in to Mobical.net and edit from there, after that, start sync and all the infos will be back in your phone.</p>
<p>2. Once your device is configured, sync it to Mobical.net. The sync menu is found under Organiser, Tools, Communications, Settings, Connectivity or something similar.<br />
3. Now, install Synthesis SyncML Client to iPhone/iPod Touch if you&#8217;re not done so yet.<br />
4. When the client is installed, tap the icon labeled SyncML to run the client then tap Settings. Put the configuration below in the Server Settings.</p>
<p><em>Server<br />
URL: http://www.mobical.net/sync/server<br />
SyncML Version: SyncML DS 1.2/OMA DS 1.2<br />
Ignore SSL errors: Off<br />
Use Proxy: Off</p>
<p>Server Login<br />
User: {yourusername}<br />
Password: {yourpassword}</em></p>
<p>5. Back to Settings, tap Done. Tap Start Synchronisation and wait for it to finish populating iPod/iPhone&#8217;s Contacts database.</p>
<p>That&#8217;s it! Any changes made from iPod/iPhone will be available in your phone when you sync and vice versa. To automate the sync from your phone, install Swim if your phone is running on Symbian S60. You can <a href="http://www.symbian-guru.com/welcome/2008/11/swim-for-s60-schedules-your-syncs.html">read about Swim at Symbian-Guru</a>.</p>
<p class="buymebeer"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="shahonseven@gmail.com" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value=" If you like this post, please buy me a coffee. for Sync iPhone Or iPod Touch Contacts With Nokia Using SyncML" /><input type="hidden" name="currency_code" value="USD" /><input type="hidden" name="amount" value="2" /><input type="image" src="http://blog.shahonseven.com/wp-content/plugins/buy-me-beer/icon_cafe.gif" align="left" alt=" If you like this post, please buy me a coffee." title=" If you like this post, please buy me a coffee." hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=shahonseven@gmail.com&amp;currency_code=USD&amp;amount=2&amp;return=&amp;item_name=+If+you+like+this+post,+please+buy+me+a+coffee.+for+Sync+iPhone+Or+iPod+Touch+Contacts+With+Nokia+Using+SyncML" target="paypal"> If you like this post, please buy me a coffee.</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shahonseven.com/archives/2009/05/20/sync-iphone-or-ipod-touch-contacts-with-nokia-using-syncml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open Source Collaborative Mapping</title>
		<link>http://blog.shahonseven.com/archives/2009/02/13/open-source-collaborative-mapping/</link>
		<comments>http://blog.shahonseven.com/archives/2009/02/13/open-source-collaborative-mapping/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 06:01:10 +0000</pubDate>
		<dc:creator>Shah</dc:creator>
				<category><![CDATA[GIS]]></category>
		<category><![CDATA[gps]]></category>
		<category><![CDATA[mapping]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://blog.shahonseven.com/?p=353</guid>
		<description><![CDATA[Have you heard about MaSmap.org?  Well, as the title said it is an open source collaborative mapping. Unlike OpenStreetMap which use wiki-like interface (as one of their mapping methods) and aim to map the world, MaSmap instead aim to map Malaysia &#38; Singapore, solely relying on subversion to keep the map sources in order.
People can [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_393" class="wp-caption alignleft" style="width: 310px"><a href="http://blog.shahonseven.com/wp-content/uploads/2009/02/masmap-showing-areas-in-kuantan-city.png"><img class="size-medium wp-image-393" title="Screenshot of MaSmap showing small area of Kuantan" src="http://blog.shahonseven.com/wp-content/uploads/2009/02/masmap-showing-areas-in-kuantan-city-300x169.png" alt="Screenshot of MaSmap showing small area of Kuantan" width="300" height="169" /></a><p class="wp-caption-text">Screenshot of MaSmap showing small area of Kuantan</p></div>
<p>Have you heard <a href="http://masmap.org/cms2/node/3">about MaSmap.org</a>?  Well, as the title said it is an open source collaborative mapping. Unlike OpenStreetMap which use wiki-like interface (as one of their mapping methods) and aim to map the world, MaSmap instead aim to map Malaysia &amp; Singapore, solely relying on subversion to keep the map sources in order.</p>
<p>People can submit their tracks (or POIs) to the mappers but that beats the purpose of having MaSmap.org, which is to empower everyone to map their own tracks. One must have a proper training though in order to be a mapper, but that is only to ensure the map quality and reliability.</p>
<blockquote><p>About MaSmap</p>
<p>MaSmap is dedicated to being a technology enabler for geospatial advancement in Malaysia and Singapore as much as Apache is to web serving and OpenOffice is to office productivity suites.</p>
<p>You can make use of the maps available here for any purpose you want. The philosophy for making opensource maps is to provide the opportunity for the community to shape his own society, relevant to his domain. If other domains can add value to these maps and is able to utilize geospatial intelligence to move forward with their cause be it for political, social, urban planning, logistics or health, then we have achieved our goal.</p>
<p>MaSmap is maintained and developed as the topic of a research project investigating the formative evaluation of GIS in healthcare. MaSmap has no commercial funding and does not accept advertising.</p></blockquote>
<p>The map sources is publicly available in Polish format (.mp) for you to grab at <a href="svn://masmap.org/sources/trunk">MaSmap.org subversion repository</a>. You&#8217;ll need an svn client for that. Compiled version is compatible with a Garmin device.</p>
<p class="buymebeer"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="shahonseven@gmail.com" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value=" If you like this post, please buy me a coffee. for Open Source Collaborative Mapping" /><input type="hidden" name="currency_code" value="USD" /><input type="hidden" name="amount" value="2" /><input type="image" src="http://blog.shahonseven.com/wp-content/plugins/buy-me-beer/icon_cafe.gif" align="left" alt=" If you like this post, please buy me a coffee." title=" If you like this post, please buy me a coffee." hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=shahonseven@gmail.com&amp;currency_code=USD&amp;amount=2&amp;return=&amp;item_name=+If+you+like+this+post,+please+buy+me+a+coffee.+for+Open+Source+Collaborative+Mapping" target="paypal"> If you like this post, please buy me a coffee.</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shahonseven.com/archives/2009/02/13/open-source-collaborative-mapping/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Expensr: Free Online Personal Finance Application</title>
		<link>http://blog.shahonseven.com/archives/2009/01/23/expensr-free-online-personal-finance-application/</link>
		<comments>http://blog.shahonseven.com/archives/2009/01/23/expensr-free-online-personal-finance-application/#comments</comments>
		<pubDate>Fri, 23 Jan 2009 12:42:07 +0000</pubDate>
		<dc:creator>Shah</dc:creator>
				<category><![CDATA[Web Applications]]></category>
		<category><![CDATA[personal finance]]></category>

		<guid isPermaLink="false">http://blog.shahonseven.com/?p=354</guid>
		<description><![CDATA[Recently, I was looking for a finance manager. Managing multiple saving accounts, a unit trust account &#38; a credit card account at a same time is a headache. I tried to manage my finance a long time ago but I really hate it because I can&#8217;t do it while I was away from home. Wifi [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I was looking for a finance manager. Managing multiple saving accounts, a unit trust account &amp; a credit card account at a same time is a headache. I tried to manage my finance a long time ago but I really hate it because I can&#8217;t do it while I was away from home. Wifi didn&#8217;t exists at that time &amp; GRPS costs a bomb.</p>
<p>While I was browsing Lifehacker, I found this <a href="http://lifehacker.com/267731/keep-tabs-on-where-your-money-goes-with-expensr">article about Expensr</a> and so I though why don&#8217;t I give it a spin. I tried Mint.com before but none of my banks provide service for Mint to automatically download statement. So that&#8217;s why <a href="www.expensr.com">Expensr</a> suits me best. Other than that, it allows me to keep my records anonymously and I don&#8217;t have to provide any account number. The interface is snappy and is nicely done and I like the fact that I can accessed it wherever I am and my connection to them is encrypted. Did I mention that it&#8217;s also free?</p>
<p>I know that there&#8217;s other alternative out there but right now I&#8217;m really satisfied with Expensr.</p>
<p class="buymebeer"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="shahonseven@gmail.com" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value=" If you like this post, please buy me a coffee. for Expensr: Free Online Personal Finance Application" /><input type="hidden" name="currency_code" value="USD" /><input type="hidden" name="amount" value="2" /><input type="image" src="http://blog.shahonseven.com/wp-content/plugins/buy-me-beer/icon_cafe.gif" align="left" alt=" If you like this post, please buy me a coffee." title=" If you like this post, please buy me a coffee." hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=shahonseven@gmail.com&amp;currency_code=USD&amp;amount=2&amp;return=&amp;item_name=+If+you+like+this+post,+please+buy+me+a+coffee.+for+Expensr:+Free+Online+Personal+Finance+Application" target="paypal"> If you like this post, please buy me a coffee.</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shahonseven.com/archives/2009/01/23/expensr-free-online-personal-finance-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 7 Usability</title>
		<link>http://blog.shahonseven.com/archives/2009/01/14/windows-7-usability/</link>
		<comments>http://blog.shahonseven.com/archives/2009/01/14/windows-7-usability/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 14:02:07 +0000</pubDate>
		<dc:creator>Shah</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[usability]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://blog.shahonseven.com/?p=339</guid>
		<description><![CDATA[While testing Notepad I noticed this:

Apparently, the new dialog also affect Paint &#38; WordPad.
Why is it a good thing? Well as Dmitri from usabilitypost.com explains,
you know what the dialog box is about just by reading the button labels — you don’t even need to read the message above to decide what to do. This not [...]]]></description>
			<content:encoded><![CDATA[<p>While testing Notepad I noticed this:</p>
<p><img class="alignnone size-full wp-image-343" title="Notepad Save Prompt" src="http://blog.shahonseven.com/wp-content/uploads/2009/01/capture1.png" alt="Notepad Save Prompt" width="382" height="159" /></p>
<p>Apparently, the new dialog also affect Paint &amp; WordPad.</p>
<p>Why is it a good thing? Well as Dmitri from <a href="http://www.usabilitypost.com/2008/08/30/usability-tip-use-verbs-as-labels-on-buttons/">usabilitypost.com</a> explains,</p>
<blockquote><p>you know what the dialog box is about just by reading the button labels — you don’t even need to read the message above to decide what to do. This not only saves time, but makes each choice clearer — the buttons tell you exactly what’s going to happen.</p></blockquote>
<p>Read <a href="http://www.usabilitypost.com/2008/08/30/usability-tip-use-verbs-as-labels-on-buttons/">Usability Tip: Use Verbs as Labels on Buttons</a>.</p>
<p class="buymebeer"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="shahonseven@gmail.com" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value=" If you like this post, please buy me a coffee. for Windows 7 Usability" /><input type="hidden" name="currency_code" value="USD" /><input type="hidden" name="amount" value="2" /><input type="image" src="http://blog.shahonseven.com/wp-content/plugins/buy-me-beer/icon_cafe.gif" align="left" alt=" If you like this post, please buy me a coffee." title=" If you like this post, please buy me a coffee." hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=shahonseven@gmail.com&amp;currency_code=USD&amp;amount=2&amp;return=&amp;item_name=+If+you+like+this+post,+please+buy+me+a+coffee.+for+Windows+7+Usability" target="paypal"> If you like this post, please buy me a coffee.</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shahonseven.com/archives/2009/01/14/windows-7-usability/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows 7</title>
		<link>http://blog.shahonseven.com/archives/2009/01/13/windows-7/</link>
		<comments>http://blog.shahonseven.com/archives/2009/01/13/windows-7/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 16:24:39 +0000</pubDate>
		<dc:creator>Shah</dc:creator>
				<category><![CDATA[Windows]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://blog.shahonseven.com/?p=332</guid>
		<description><![CDATA[I really like the new Windows. Install took 15 &#8211; 25 minutes and boot took 30 seconds. Everything works right out of the box except my Prolink WG2000/R USB Wifi adapter. But that&#8217;s an easy fix, there&#8217;s a Vista driver for that device on their official website. Just download &#038; install.
There&#8217;s one tiny problem though, [...]]]></description>
			<content:encoded><![CDATA[<p>I really like the new Windows. Install took 15 &#8211; 25 minutes and boot took 30 seconds. Everything works right out of the box except my Prolink WG2000/R USB Wifi adapter. But that&#8217;s an easy fix, there&#8217;s a Vista driver for that device on their official website. Just download &#038; install.</p>
<p>There&#8217;s one tiny problem though, I can&#8217;t dual boot with Windows XP but my files are still accessible.</p>
<p>Problem aside, I managed to install Google Chrome, AVG8 Free &#038; No-IP DUC. All works flawlessly. Maybe tomorrow I will install FF3 &#038; some games. <img src='http://blog.shahonseven.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>UPDATE 13/01/2008<br />
Managed to add WinXP to Windows 7 Bootloader using EasyBCD.</p>
<p class="buymebeer"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="shahonseven@gmail.com" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value=" If you like this post, please buy me a coffee. for Windows 7" /><input type="hidden" name="currency_code" value="USD" /><input type="hidden" name="amount" value="2" /><input type="image" src="http://blog.shahonseven.com/wp-content/plugins/buy-me-beer/icon_cafe.gif" align="left" alt=" If you like this post, please buy me a coffee." title=" If you like this post, please buy me a coffee." hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=shahonseven@gmail.com&amp;currency_code=USD&amp;amount=2&amp;return=&amp;item_name=+If+you+like+this+post,+please+buy+me+a+coffee.+for+Windows+7" target="paypal"> If you like this post, please buy me a coffee.</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shahonseven.com/archives/2009/01/13/windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CakePHP ACL and Ajax</title>
		<link>http://blog.shahonseven.com/archives/2008/12/24/cakephp-acl-and-ajax/</link>
		<comments>http://blog.shahonseven.com/archives/2008/12/24/cakephp-acl-and-ajax/#comments</comments>
		<pubDate>Wed, 24 Dec 2008 12:40:08 +0000</pubDate>
		<dc:creator>Shah</dc:creator>
				<category><![CDATA[CakePHP]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Web Technologies]]></category>
		<category><![CDATA[acl]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[php framework]]></category>

		<guid isPermaLink="false">http://blog.shahonseven.com/?p=297</guid>
		<description><![CDATA[I&#8217;m building a web based application using ExtJS as the frontend and CakePHP as the backend. CakePHP built-in ACL returns 200 OK status even when the access was denied. The application uses Ajax a lot so I need CakePHP to returns appropriate response status so that I can inform the user if the requested access [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m building a web based application using ExtJS as the frontend and CakePHP as the backend. CakePHP built-in ACL returns 200 OK status even when the access was denied. The application uses Ajax a lot so I need CakePHP to returns appropriate response status so that I can inform the user if the requested access was denied. To configure ACL properly, you can follow the posts from Mark Story <a href="http://mark-story.com/posts/view/auth-and-acl-an-end-to-end-tutorial-pt-1">here</a> and <a href="http://mark-story.com/posts/view/auth-and-acl-an-end-to-end-tutorial-pt-2">here</a> for the part 2.</p>
<p>After that, just add the following code in app_controller.php</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> beforeRender<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">RequestHandler</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">isAjax</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Session</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">check</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Message.auth'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                        <span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">Session</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">del</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Message.auth'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                        <span style="color: #990000;">header</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'HTTP/1.1 403 Forbidden'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                <span style="color: #009900;">&#125;</span>
        <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Now, instead of receiving 200 OK status I get 403 Forbidden when access is denied. Hope this helps!</p>
<p class="buymebeer"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="shahonseven@gmail.com" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value=" If you like this post, please buy me a coffee. for CakePHP ACL and Ajax" /><input type="hidden" name="currency_code" value="USD" /><input type="hidden" name="amount" value="2" /><input type="image" src="http://blog.shahonseven.com/wp-content/plugins/buy-me-beer/icon_cafe.gif" align="left" alt=" If you like this post, please buy me a coffee." title=" If you like this post, please buy me a coffee." hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=shahonseven@gmail.com&amp;currency_code=USD&amp;amount=2&amp;return=&amp;item_name=+If+you+like+this+post,+please+buy+me+a+coffee.+for+CakePHP+ACL+and+Ajax" target="paypal"> If you like this post, please buy me a coffee.</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shahonseven.com/archives/2008/12/24/cakephp-acl-and-ajax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Day At The Office</title>
		<link>http://blog.shahonseven.com/archives/2008/11/30/a-day-at-the-office/</link>
		<comments>http://blog.shahonseven.com/archives/2008/11/30/a-day-at-the-office/#comments</comments>
		<pubDate>Sun, 30 Nov 2008 12:00:36 +0000</pubDate>
		<dc:creator>Shah</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.shahonseven.com/?p=278</guid>
		<description><![CDATA[One of my past project was to develop a double-entry system which compare the same record entered by two different staff. Recently, the client complained about the system being painfully slow. My colleagues blame the helper function that do the comparison. I removed the view so the is no comparison running (the controller is basically [...]]]></description>
			<content:encoded><![CDATA[<p>One of my past project was to develop a double-entry system which compare the same record entered by two different staff. Recently, the client complained about the system being painfully slow. My colleagues blame the helper function that do the comparison. I removed the view so the is no comparison running (the controller is basically tell the model to find all record and pass the results back to view). Even so, the system is still slow. Somehow I was convinced that this is the database-level problem not my software.</p>
<p>Armed with phpmyadmin, I ran a simple find operation that retrieve the first two records in the main table (there are 30k of rows in there). It took a quite long time (seems live forever to me) for mysql to get the results. I wasn&#8217;t sure what the problem was, but I was glad that my software wasn&#8217;t the culprit.</p>
<p>To cut the long story short, after few hours of investigation, I simply changed the storage engine from InnoDB to MyISAM as the last resort and it works like a charm! Complex database query is 4 times quicker and the system now runs significantly faster and my client live happily ever after..</p>
<p>The end</p>
<p class="buymebeer"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="shahonseven@gmail.com" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value=" If you like this post, please buy me a coffee. for A Day At The Office" /><input type="hidden" name="currency_code" value="USD" /><input type="hidden" name="amount" value="2" /><input type="image" src="http://blog.shahonseven.com/wp-content/plugins/buy-me-beer/icon_cafe.gif" align="left" alt=" If you like this post, please buy me a coffee." title=" If you like this post, please buy me a coffee." hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=shahonseven@gmail.com&amp;currency_code=USD&amp;amount=2&amp;return=&amp;item_name=+If+you+like+this+post,+please+buy+me+a+coffee.+for+A+Day+At+The+Office" target="paypal"> If you like this post, please buy me a coffee.</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shahonseven.com/archives/2008/11/30/a-day-at-the-office/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fun Javascript Games: Part 2</title>
		<link>http://blog.shahonseven.com/archives/2008/11/29/fun-javascript-games-part-2/</link>
		<comments>http://blog.shahonseven.com/archives/2008/11/29/fun-javascript-games-part-2/#comments</comments>
		<pubDate>Sat, 29 Nov 2008 14:29:14 +0000</pubDate>
		<dc:creator>Shah</dc:creator>
				<category><![CDATA[Games]]></category>
		<category><![CDATA[fun stuffs]]></category>
		<category><![CDATA[javascript games]]></category>

		<guid isPermaLink="false">http://blog.shahonseven.com/?p=160</guid>
		<description><![CDATA[Redline
Vertigo-projects have a new and amazing racing game powered byjQuery and using the GameQuery plugin. The game itself is about one thousand lines of code, but you will need some practice to not shift too early or to avoid crashing. It&#8217;s interesting to see the level of applications that we can build today using modern javascript libraries [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Redline</strong></p>
<blockquote><p>Vertigo-projects have a new and amazing racing game powered by<a href="http://www.jquery.com/">jQuery</a> and using the <a href="http://gamequery.onaluf.org/">GameQuery plugin</a>. The game itself is about one thousand lines of code, but you will need some practice to not shift too early or to avoid crashing. It&#8217;s interesting to see the level of applications that we can build today using modern javascript libraries such as jQuery. The design is pretty attractive to run a level or two, have a look and enjoy the race <a href="http://www.vertigo-project.com/projects/redline-game">http://www.vertigo-project.com/projects/redline-game</a>.</p></blockquote>
<p>[<a href="http://ajax.phpmagazine.net/2008/11/redline_jquery_powered_racing.html">Ajax Magazine</a>]</p>
<p> </p>
<p><strong>Digg Attack</strong></p>
<blockquote><p>Fun news for a Friday. From <a href="http://blog.nihilogic.dk/">Jacob Seidelin</a>–the dude behind <a href="http://blog.nihilogic.dk/2008/04/super-mario-in-14kb-javascript.html">JavaScript Super Mario Brothers</a>–comes <a href="http://blog.nihilogic.dk/2008/11/digg-attack-javascript-game.html">Digg Attack</a>, an original JavaScript game using &amp;ltg;canvas&gt; for visuals (and Flash for music). As an added twist, the game uses Digg to provide a sort of unique twist; enemies in the game are based on stories in the Digg API feed and their ratings.</p></blockquote>
<p>[<a href="http://ajaxian.com/archives/digg-attack-a-canvas-game">Ajaxian</a>]</p>
<p> </p>
<p><strong>Pacman</strong></p>
<blockquote><p>I got to play an old school, sit down, Pacman at Google Developer Day, London, so it only seems appropriate to keep playing it thanks to Harry Guillermo <a href="http://www.harryguillermo.com/Pacman.aspx">and his new Pacman port to JavaScript</a>.</p></blockquote>
<p>[<a href="http://ajaxian.com/archives/pacman-bites-back">Ajaxian</a>]</p>
<p> </p>
<p><strong>Pacman (YUI-based)</strong></p>
<blockquote><p>Kris Cieslak is back, after a long break, with a new YUI-based game: <a href="http://www.digitalinsane.com/api/yahoo/pacman/">Pacman</a>. We <a href="http://yuiblog.com/blog/2007/02/27/cieslak/">last heard from Kris</a> about 18 months ago, when he was showing off <a href="http://www.digitalinsane.com/api/yahoo/yetris/">Yetris</a>, <a href="http://www.digitalinsane.com/api/yahoo/puzzle/">Puzzle</a> and<a href="http://www.digitalinsane.com/api/yahoo/solitaire/">Solitaire</a>. Now Kris returns with another classic game built entirely in JavaScript, bolstered by YUI 2.5.2’s core (Yahoo, Dom and Event). <a href="http://www.digitalinsane.com/api/yahoo/pacman/">Check it out</a> and <a href="http://www.digitalinsane.com/archives/2008/08/30/pacman/">give Kris feedback on his blog</a>.</p></blockquote>
<p>[<a href="http://yuiblog.com/blog/2008/09/02/cieslak-pacman/">YUI Blog</a>]</p>
<p> </p>
<p><strong>Invaders From Mars</strong></p>
<blockquote><p>As a follow-up to our <a href="http://ajaxian.com/archives/pacman-bites-back">recent posting of a JavaScript Pac-Man clone</a>, we bring you a JavaScript Space Invaders clone: <a href="http://www.rebelideas.co.uk/proto/test/">Invaders from Mars</a>. Only this time, in addition to a link to the game itself, we’ve got a <a href="http://rebelfive.wordpress.com/">link to the author’s blog</a> (one Mark Wilcox) in which he goes into detail on the various design issues he faced whilst creating his game and discusses the lower-level framework he created to drive his game.</p>
<p>Invaders from Mars does it old-school, as did the Pac-Man clone: divs and images, baby. Performance is pretty good, but I can’t wait to see people realize that if they go with &lt;canvas&gt;, they can really do some interesting stuff. What do you think on the Canvas vs. DOM rendering model for games, etc.?</p></blockquote>
<p>[<a href="http://ajaxian.com/archives/invaders-from-mars-building-a-javascript-game">Ajaxian</a>]</p>
<p> </p>
<p><strong>Bomberman</strong></p>
<blockquote><p>Munteanu Gabriel has created today&#8217;s Friday <strong>JavaScript</strong> game. It is an old favourite&#8230;. <a href="http://www.e-forum.ro/bomberman/dynagame.html" target="_blank">Bomberman</a>. Munteanu has released the code as an <a href="http://code.google.com/p/js-blaster/" target="_blank">open source project</a>, and you can get going to <a href="http://www.e-forum.ro/bomberman/dynagame.html" target="_blank">bomb away now.</a></p></blockquote>
<p>[<a href="http://ajaxian.com/archives/bomberman-in-mootools">Ajaxian</a>]</p>
<p> </p>
<p><strong>Super Mario Kart</strong></p>
<blockquote><p>Seems I just can&#8217;t let go of Mario. This is a prototype of a Javascript Mario Kart-like racing game.</p>
<p>It uses the canvas element to do most of the rendering and should work in both FF2, FF3, Opera(9.27 and 9.5) and Safari 3.1+. There are a few glitches in Safari (at least in 3.1.1) in the kart sprites, but other than that it should be playable. I haven&#8217;t even considered getting IE support, sorry. There&#8217;s just no way.</p>
<p>The (minified) <a href="http://www.nihilogic.dk/labs/mariokart/mariokart.js">code</a> weighs in at about 11 Kb, but unlike the <a href="http://blog.nihilogic.dk/2008/04/super-mario-in-14kb-javascript.html">Mario game</a> from last month, this one uses several external image files. This was more a test of how smooth I could get a game like this to feel, anyway, so filesize wasn&#8217;t an issue. I think it runs pretty ok, though. </p></blockquote>
<p>[<a href="http://blog.nihilogic.dk/2008/05/javascript-super-mario-kart.html">Nihilog Blog</a>]</p>
<p class="buymebeer"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="shahonseven@gmail.com" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value=" If you like this post, please buy me a coffee. for Fun Javascript Games: Part 2" /><input type="hidden" name="currency_code" value="USD" /><input type="hidden" name="amount" value="2" /><input type="image" src="http://blog.shahonseven.com/wp-content/plugins/buy-me-beer/icon_cafe.gif" align="left" alt=" If you like this post, please buy me a coffee." title=" If you like this post, please buy me a coffee." hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=shahonseven@gmail.com&amp;currency_code=USD&amp;amount=2&amp;return=&amp;item_name=+If+you+like+this+post,+please+buy+me+a+coffee.+for+Fun+Javascript+Games:+Part+2" target="paypal"> If you like this post, please buy me a coffee.</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shahonseven.com/archives/2008/11/29/fun-javascript-games-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Trip To Historical Malacca</title>
		<link>http://blog.shahonseven.com/archives/2008/10/05/a-trip-to-historical-malacca/</link>
		<comments>http://blog.shahonseven.com/archives/2008/10/05/a-trip-to-historical-malacca/#comments</comments>
		<pubDate>Sun, 05 Oct 2008 11:03:24 +0000</pubDate>
		<dc:creator>Shah</dc:creator>
				<category><![CDATA[Road Trips]]></category>
		<category><![CDATA[a famosa]]></category>
		<category><![CDATA[malacca]]></category>

		<guid isPermaLink="false">http://blog.shahonseven.com/?p=239</guid>
		<description><![CDATA[ If you like this post, please buy me a coffee.]]></description>
			<content:encoded><![CDATA[<div id="attachment_256" class="wp-caption alignnone" style="width: 310px"><a href="http://blog.shahonseven.com/wp-content/uploads/2008/10/04102008340.jpg"><img class="size-medium wp-image-257 alignnone" title="St. Paul&#39;s Hill" src="http://blog.shahonseven.com/wp-content/uploads/2008/10/04102008340-300x225.jpg" alt="" width="300" height="225" /></a><a href="http://blog.shahonseven.com/wp-content/uploads/2008/10/04102008349.jpg"><img class="size-medium wp-image-256" title="St. Paul&#39;s Hill" src="http://blog.shahonseven.com/wp-content/uploads/2008/10/04102008349-300x225.jpg" alt="" width="300" height="225" /></a><p class="wp-caption-text">St. Paul&#39;s Hill</p></div>
<div id="attachment_245" class="wp-caption alignnone" style="width: 310px"><a href="http://blog.shahonseven.com/wp-content/uploads/2008/10/04102008341.jpg"><img class="size-medium wp-image-245" title="A&#39;Famosa Fort" src="http://blog.shahonseven.com/wp-content/uploads/2008/10/04102008341-300x225.jpg" alt="" width="300" height="225" /></a><a href="http://blog.shahonseven.com/wp-content/uploads/2008/10/04102008347.jpg"><img class="alignnone size-medium wp-image-248" title="A&#39;Famosa Fort" src="http://blog.shahonseven.com/wp-content/uploads/2008/10/04102008347-300x225.jpg" alt="" width="300" height="225" /></a><a href="http://blog.shahonseven.com/wp-content/uploads/2008/10/04102008342.jpg"><img class="alignnone size-medium wp-image-246" title="A&#39;Famosa Fort" src="http://blog.shahonseven.com/wp-content/uploads/2008/10/04102008342-300x225.jpg" alt="" width="300" height="225" /></a><a href="http://blog.shahonseven.com/wp-content/uploads/2008/10/04102008339.jpg"><img class="alignnone size-medium wp-image-243" title="A&#39;Famosa Fort" src="http://blog.shahonseven.com/wp-content/uploads/2008/10/04102008339-300x225.jpg" alt="" width="300" height="225" /></a><p class="wp-caption-text">A&#39;Famosa Fort</p></div>
<div id="attachment_240" class="wp-caption alignnone" style="width: 310px"><a href="http://blog.shahonseven.com/wp-content/uploads/2008/10/03102008316.jpg"><img class="size-medium wp-image-240" title="(Front) St. Francis Secondary School, (Far Behind) Malacca Sultanate Palace" src="http://blog.shahonseven.com/wp-content/uploads/2008/10/03102008316-300x225.jpg" alt="" width="300" height="225" /></a><p class="wp-caption-text">(Front) St. Francis Secondary School, (Far Behind) Malacca Sultanate Palace</p></div>
<div id="attachment_269" class="wp-caption alignnone" style="width: 310px"><a href="http://blog.shahonseven.com/wp-content/uploads/2008/10/04102008355.jpg"><img class="size-medium wp-image-269" title="Proclamation of Independence Memorial" src="http://blog.shahonseven.com/wp-content/uploads/2008/10/04102008355-300x225.jpg" alt="" width="300" height="225" /></a><p class="wp-caption-text">Proclamation of Independence Memorial</p></div>
<p class="buymebeer"><form action="https://www.paypal.com/cgi-bin/webscr" target="paypal" method="post"><input type="hidden" name="cmd" value="_xclick" /><input type="hidden" name="business" value="shahonseven@gmail.com" /><input type="hidden" name="return" value="" /><input type="hidden" name="item_name" value=" If you like this post, please buy me a coffee. for A Trip To Historical Malacca" /><input type="hidden" name="currency_code" value="USD" /><input type="hidden" name="amount" value="2" /><input type="image" src="http://blog.shahonseven.com/wp-content/plugins/buy-me-beer/icon_cafe.gif" align="left" alt=" If you like this post, please buy me a coffee." title=" If you like this post, please buy me a coffee." hspace="3" /></form><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&amp;business=shahonseven@gmail.com&amp;currency_code=USD&amp;amount=2&amp;return=&amp;item_name=+If+you+like+this+post,+please+buy+me+a+coffee.+for+A+Trip+To+Historical+Malacca" target="paypal"> If you like this post, please buy me a coffee.</a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.shahonseven.com/archives/2008/10/05/a-trip-to-historical-malacca/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
