<?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>wongpk &#187; Web</title>
	<atom:link href="http://www.wongpk.com/tag/web/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wongpk.com</link>
	<description>blog of a borneo web designer</description>
	<lastBuildDate>Mon, 06 Feb 2012 14:55:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Essential jQuery plugins</title>
		<link>http://www.wongpk.com/2011/10/05/essential-jquery-plugins/</link>
		<comments>http://www.wongpk.com/2011/10/05/essential-jquery-plugins/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 02:52:56 +0000</pubDate>
		<dc:creator>wong</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[JQuery]]></category>
		<category><![CDATA[Plugins]]></category>

		<guid isPermaLink="false">http://www.wongpk.com/?p=3938</guid>
		<description><![CDATA[As a newbie to the Javascript World, it is important to get some very very simple jQuery plugins. I pick and find a few that are so simple and yet works well in all browsers. NivoSlider One of the slider &#8230; <a href="http://www.wongpk.com/2011/10/05/essential-jquery-plugins/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As a newbie to the Javascript World, it is important to get some very very simple jQuery plugins. I pick and find a few that are so simple and yet works well in all browsers.</p>
<h3><a href="http://nivo.dev7studios.com/">NivoSlider</a></h3>
<p><img src="http://i31.photobucket.com/albums/c376/wongpk/wongpk/nivoslider.jpg" alt="NivoSlider" /><br />
One of the slider that can do all the other slider can do, combined. While it already started to sell commercial support, but you can pretty much get some support by just Google it. Yes, it works perfectly fine with WordPress, either by the plugin provided or you can get your hand dirty on it too.</p>
<h3><a href="http://uniformjs.com/">Uniform<a /></a></h3>
<p><img src="http://i31.photobucket.com/albums/c376/wongpk/wongpk/uniform.jpg" alt="Uniform" /><br />
Spice up your form easily with this form beautifying plugin. You can either set to style all the inputs or by adding class to any of them. Best of all, it can easily change theme just by editing some images sprite and/or CSS.</p>
<h3><a href="http://www.dynamicdrive.com/style/csslibrary/item/jquery_multi_level_css_menu_2/">jQuery Slide Menu</a></h3>
<p><img src="http://i31.photobucket.com/albums/c376/wongpk/wongpk/jqueryslidemenu.jpg" alt="jQuery Slide Menu" /><br />
A very simple multi-level menu jQuery plugin. All you need is to style the menu to enable at least 2 level of dropdown and add this little plugin to it. Simple enough? It works well even with 5 level!</p>
<h3><a href="http://plugins.jquery.com/project/MediaQueries">MediaQueries</a></h3>
<p><img src="http://i31.photobucket.com/albums/c376/wongpk/wongpk/mediaqueries.jpg" alt="MediaQueries" /><br />
We cannot deny the existing of mobile browser. This plugin basically help older browser (<em>Especially IE6</em>) to enable media querie, so you can set different screen resolution to different stylesheet. Best of all, you don&#8217;t need to do anything beside adding the script line.</p>
<h3><a href="http://code.google.com/p/html5shim/">HTML5shim</a></h3>
<p><img src="http://i31.photobucket.com/albums/c376/wongpk/wongpk/html5-1.jpg" alt="html5shim" /><br />
Let&#8217;s face it, we are all living at tomorrow today. Although HTML5 and CSS3 are still on development stage, but it has been widely used. Well, only the few tags. But it is more than enough to make one headache with older browser (<em>IE, duh!</em>). This little plugin helps on enabling the common tagslike header, aside, footer and etc to work well. Some suggest <a href="http://www.modernizr.com/">Modernizr</a>, which both works pretty much the same just more support on HTML5 tags.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wongpk.com/2011/10/05/essential-jquery-plugins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Studied a little bit</title>
		<link>http://www.wongpk.com/2011/09/04/studied-a-little-bit/</link>
		<comments>http://www.wongpk.com/2011/09/04/studied-a-little-bit/#comments</comments>
		<pubDate>Sun, 04 Sep 2011 15:17:46 +0000</pubDate>
		<dc:creator>wong</dc:creator>
				<category><![CDATA[Discovery]]></category>
		<category><![CDATA[Browsers]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.wongpk.com/?p=3732</guid>
		<description><![CDATA[Few weeks back I changed my layout to the default TwentyEleven theme. I wanted to see if the SEO works much better than what I&#8217;ve developed all the time, just comparing. So the default layout does works well enough, and &#8230; <a href="http://www.wongpk.com/2011/09/04/studied-a-little-bit/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Few weeks back I changed my layout to the default TwentyEleven theme. I wanted to see if the SEO works much better than what I&#8217;ve developed all the time, just comparing.</p>
<p>So the default layout does works well enough, and I adopted a little bit of code from there to this theme. Time to do more studies on how SEO work and what work best for it.</p>
<p>Beside, I&#8217;m testing one by one phone on how they can get the max-width CSS. So they all works, beside of course the almighty Internet Explorer. Even IE8 is not working with it, my Opera Mini works well too. The same thing applied on this theme as well. I bet some will see invisible area with IE6, 7 and 8 <img src='http://www.wongpk.com/wp-includes/images/smilies/icon_confused.gif' alt=':?' class='wp-smiley' /> </p>
<p>P/S: It&#8217;s good to have a refreshing days. Though I&#8217;m a bit lazy to work, but work just got easier with better mind focusing <img src='http://www.wongpk.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.wongpk.com/2011/09/04/studied-a-little-bit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why you should avoid GoDaddy</title>
		<link>http://www.wongpk.com/2011/08/07/why-you-should-avoid-godaddy/</link>
		<comments>http://www.wongpk.com/2011/08/07/why-you-should-avoid-godaddy/#comments</comments>
		<pubDate>Sat, 06 Aug 2011 16:42:53 +0000</pubDate>
		<dc:creator>wong</dc:creator>
				<category><![CDATA[Discovery]]></category>
		<category><![CDATA[Experience]]></category>
		<category><![CDATA[GoDaddy]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Webhosting]]></category>

		<guid isPermaLink="false">http://www.wongpk.com/?p=3644</guid>
		<description><![CDATA[Been frustrated with GoDaddy this few days, and some bad experiences on the road of ZHNG design studio. I don&#8217;t know why GoDaddy still a top choice for many people, I mean the new comer to web and hosting. Perhaps, &#8230; <a href="http://www.wongpk.com/2011/08/07/why-you-should-avoid-godaddy/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Been frustrated with GoDaddy this few days, and some bad experiences on the road of ZHNG design studio. I don&#8217;t know why GoDaddy still a top choice for many people, I mean the new comer to web and hosting. Perhaps, they spent a lot on women to advertise.</p>
<p>Here are some list I know about GoDaddy and you should definitely avoid it at all cost!</p>
<h2>Pricing term</h2>
<p>Don&#8217;t get hook up with GoDaddy alone, there are a lot of research you can do to compare it with GoDaddy. Nowadays  selling domain name is not profitable, a lot of domain registars are getting a hand in web hosting as well, so with others, you too can get hosting and domain in one account on one site. But the price GoDaddy offer? Always higher than any other competitors.</p>
<h2>Pending Hosting</h2>
<p>The reason I mention &#8220;new comer&#8221; above, is because this &#8220;Pending&#8221; thing. When you are with GoDaddy as an experiences hosting user, you&#8217;ll get frustrated with the &#8220;Pending&#8221; or rather, &#8220;Status&#8221;, there are a few step to wait just to get into your hosting account. Which means, if you are transfering your website to GoDaddy, expect a long long downtime, all because the &#8220;Status&#8221;. I don&#8217;t understand why I can&#8217;t adjust/create/edit my website in an IP address like how cPanel, Plesk and all other web hosting provider?</p>
<h2>Catching you</h2>
<p>I just realise that, GoDaddy doesn&#8217;t allow a folder with more than 1024 files in it. Yes, no folder with more than 1024 files are allowed. Reason? It will slow down your website. Can anyone explain this to me?</p>
<h2>No error logging for budget host</h2>
<p>Or rather, cheap host. The economic package comes with no error logging. Which means, if one day, GoDaddy come to you and tell you your website eat their resources, that is that. You are to abide with it or leave. Well, they  probably ask you to upgrade to another plan. Even so, I will not believe the log file anyway.</p>
<p>So far, I have never had a good experience with GoDaddy yet. Beside of course the GoGirls <img src='http://www.wongpk.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Consider other hosting like BlueHost, ExaBytes for budget hosting, or VPS.net, WiredTree for VPS power. Just forget about GoDaddy, too many terms hidding in there.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wongpk.com/2011/08/07/why-you-should-avoid-godaddy/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>This is how!</title>
		<link>http://www.wongpk.com/2011/06/02/this-is-how/</link>
		<comments>http://www.wongpk.com/2011/06/02/this-is-how/#comments</comments>
		<pubDate>Thu, 02 Jun 2011 14:22:16 +0000</pubDate>
		<dc:creator>wong</dc:creator>
				<category><![CDATA[Discovery]]></category>
		<category><![CDATA[Stupidity]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.wongpk.com/?p=3510</guid>
		<description><![CDATA[Google instant search is annoying in some ways though&#8230; But don&#8217;t brag about it annoyed you when you don&#8217;t know how to turn it off. You will know how&#8230;]]></description>
			<content:encoded><![CDATA[<p><img src="http://i31.photobucket.com/albums/c376/wongpk/wongpk/google_search_setting.gif" alt="Google search settings" /></p>
<p>Google instant search is annoying in some ways though&#8230; But don&#8217;t brag about it annoyed you when you don&#8217;t know how to turn it off. You will know how&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wongpk.com/2011/06/02/this-is-how/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The little detail &#8211; Tabindex</title>
		<link>http://www.wongpk.com/2011/04/05/the-little-detail-tabindex/</link>
		<comments>http://www.wongpk.com/2011/04/05/the-little-detail-tabindex/#comments</comments>
		<pubDate>Tue, 05 Apr 2011 04:30:49 +0000</pubDate>
		<dc:creator>wong</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[UX]]></category>

		<guid isPermaLink="false">http://www.wongpk.com/?p=3368</guid>
		<description><![CDATA[Form, is one thing we all don&#8217;t like to fill most of the time. From a long list of details to only 3 inputs to signup. However, some who know the use of &#8220;Tab&#8221; on their keyboard will get frustrated &#8230; <a href="http://www.wongpk.com/2011/04/05/the-little-detail-tabindex/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Form, is one thing we all don&#8217;t like to fill most of the time. From a long list of details to only 3 inputs to signup.</p>
<p><img src="http://i31.photobucket.com/albums/c376/wongpk/wongpk/tumblr_signup.jpg" alt="Tumblr signup" /></p>
<p>However, some who know the use of &#8220;Tab&#8221; on their keyboard will get frustrated if it&#8217;s not working. The almighty <code>tabindex</code> is a must for my point of view. It ease how we &#8211; the user &#8211; using the computer and browsing.</p>
<pre>
&#60;input type="text" name="first_name" tabindex="1" /&#62;
&#60;input type="text" name="last_name" tabindex="2" /&#62
</pre>
<p>The number is where it will go from one to another one when &#8220;Tab&#8221; key is pressed. It would be annoyed if filling a full form where one need to keep between the mouse and the keyboard.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wongpk.com/2011/04/05/the-little-detail-tabindex/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why it will struggle</title>
		<link>http://www.wongpk.com/2011/03/31/why-it-will-struggle/</link>
		<comments>http://www.wongpk.com/2011/03/31/why-it-will-struggle/#comments</comments>
		<pubDate>Thu, 31 Mar 2011 04:55:56 +0000</pubDate>
		<dc:creator>wong</dc:creator>
				<category><![CDATA[Discovery]]></category>
		<category><![CDATA[Fail]]></category>
		<category><![CDATA[Mistakes]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Wrong]]></category>

		<guid isPermaLink="false">http://www.wongpk.com/?p=3353</guid>
		<description><![CDATA[I recently checking out Foldees, a desginer greeting card, a small startup in Malaysia. The founder wrote a piece of good article in e27.sg. After viewing the site a few time here and there, checking them out, and I notice &#8230; <a href="http://www.wongpk.com/2011/03/31/why-it-will-struggle/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I recently checking out <a href="http://www.foldees.com">Foldees</a>, a desginer greeting card, a small startup in Malaysia. The founder wrote a piece of good article in <a href="http://e27.sg/2010/10/16/a-malaysian-startups-story-of-funding-gone-wrong">e27.sg</a>.</p>
<p>After viewing the site a few time here and there, checking them out, and I notice why it doesn&#8217;t work and I believe spend some fund on it. Well, I did the same exact mistake before too <img src='http://www.wongpk.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p><img src="http://i31.photobucket.com/albums/c376/wongpk/wongpk/foldees.jpg" alt="Foldees" /></p>
<h3>User Interface, User Experience</h3>
<p>Both are almost NIL on the site. Maybe the concept isn&#8217;t sync with the business concept itself. First off, it&#8217;s a designer greeting card. But the whole site doesn&#8217;t show the sense of designers. Instead, it looks more like the China website &#8211; Full information. There is no way one can navigate around the site easily and get to the wanted information.</p>
<p>Click on the picture, it load in the page; click on the title, open in new windows. I mean, there is the third-click on my mouse, there too have a right-click menu, why control how I browse the site? Let me decide how I browse with my own browser.</p>
<h3>Poor SEO</h3>
<p>A basic keyword of &#8220;Designer greeting card&#8221; doesn&#8217;t shows the site at all. Not even in the first 5 pages. With such age of website, keyword should be already in the search engine. Probably because no copywriter. Look into their copy, it is more like a casual blogger piece of content than a professionally wrote copy. I did that ALL the time back in the 90&#8242;s <img src='http://www.wongpk.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Not only did the site has a poor SEO keyword and tags, the site is crumbed with Javascript on top of it. I do understand the Malaysia server, Malaysia users. But how about the International users they are expecting? That definitely bring down the whole search engine friendliness.</p>
<p>In my opinion, they did not fully utilised their fund in a way to help marketing. Instead, it is spent mostly on prototyping the whole system and marketing gimmick itself.</p>
<p>I do believe with such a unique idea of startup, it can still work well. But how well, will depend on how much hardwork to put in.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wongpk.com/2011/03/31/why-it-will-struggle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Daily Sites</title>
		<link>http://www.wongpk.com/2011/02/26/daily-sites/</link>
		<comments>http://www.wongpk.com/2011/02/26/daily-sites/#comments</comments>
		<pubDate>Sat, 26 Feb 2011 04:23:35 +0000</pubDate>
		<dc:creator>wong</dc:creator>
				<category><![CDATA[Discovery]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Information]]></category>
		<category><![CDATA[Sites]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.wongpk.com/?p=3314</guid>
		<description><![CDATA[Some sites I visit very frequently, for its entertaining or for its usefulness. Of course, beside Facebook and Twitter 9Gag.com Sort of like Tumblr, but only works for image and video. But I just like to browse around. All those &#8230; <a href="http://www.wongpk.com/2011/02/26/daily-sites/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Some sites I visit very frequently, for its entertaining or for its usefulness. Of course, beside <a href="http://www.facebook.com">Facebook</a> and <a href="http://www.twitter.com">Twitter</a> <img src='http://www.wongpk.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<h3><a href="http://www.9gag.com">9Gag.com</a></h3>
<p><img src="http://i31.photobucket.com/albums/c376/wongpk/wongpk/9gag_com.gif" alt="9gag" /><br />
Sort of like Tumblr, but only works for image and video. But I just like to browse around. All those funny memes or quotations. Oh, the keyboard shortcut helps a lot!</p>
<h3><a href="http://geekandpoke.typepad.com">Geek and Poke</a></h3>
<p><img src="http://i31.photobucket.com/albums/c376/wongpk/wongpk/geek_poke.jpg" alt="Geek and Poke" /><br />
A geek on comic. Straight forward. But not all I understand though <img src='http://www.wongpk.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<h3><a href="http://littlebigdetails.com">Little Big Details</a></h3>
<p><img src="http://i31.photobucket.com/albums/c376/wongpk/wongpk/little_big_details.jpg" alt="Little big details" /><br />
Very good to learn some UX design. It give a very short talk about how things were built to make it easy for user to understand.</p>
<h3><a href="http://scriptandstyle.com">Script and Style</a></h3>
<p><img src="http://i31.photobucket.com/albums/c376/wongpk/wongpk/script_style.jpg" alt="Script and Style" /><br />
Some update from scripts. Not all are quality though, but can found quite some handful helps there from time to time.</p>
<h3><a href="http://churchcreate.com">Church Create</a></h3>
<p><img src="http://i31.photobucket.com/albums/c376/wongpk/wongpk/church_create.jpg" alt="Church Create" /><br />
Not a church thing, it&#8217;s a big network, something like Envato, but not as widely known like them. A good list of network which can explore a lot of new and old things.</p>
<p>So yes, I&#8217;m just laying back sitting here going them from time to time when I&#8217;m thinking about something or working toward a project. I believe this is not <a href="http://burningbellyfat.org/">how to burn belly fat</a>&#8230; But hell, I&#8217;m a married man anyway <img src='http://www.wongpk.com/wp-includes/images/smilies/icon_lol.gif' alt=':lol:' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.wongpk.com/2011/02/26/daily-sites/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Internet here to help</title>
		<link>http://www.wongpk.com/2010/10/13/internet-here-to-help/</link>
		<comments>http://www.wongpk.com/2010/10/13/internet-here-to-help/#comments</comments>
		<pubDate>Wed, 13 Oct 2010 02:36:13 +0000</pubDate>
		<dc:creator>wong</dc:creator>
				<category><![CDATA[Discovery]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[WWW]]></category>

		<guid isPermaLink="false">http://www.wongpk.com/?p=3028</guid>
		<description><![CDATA[Neh, see that guy? He is the one from [domain].com Nowadays, having a domain and a webiste/blog is just too common. Even Fort Lauderdale car rental has a website. It&#8217;s too affordable, a mere RM200, you&#8217;ll get a domain name &#8230; <a href="http://www.wongpk.com/2010/10/13/internet-here-to-help/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<blockquote><p>Neh, see that guy? He is the one from [domain].com</p></blockquote>
<p>Nowadays, having a domain and a webiste/blog is just too common. Even <a href="http://www.rentacarnow.com/city/fort-lauderdale.html">Fort Lauderdale car rental</a> has a website. It&#8217;s too affordable, a mere RM200, you&#8217;ll get a domain name plus a hosting last for a year. The good thing? Having a website can always become a side-income too. Recently Mashable wrote &#8220;<a href="http://mashable.com/2010/10/12/internet-ad-revenues-2010">Internet Advertising Hits New Revenue Record</a>&#8220;, so obviously websites are still coming in every moment.</p>
<p><img src="http://i31.photobucket.com/albums/c376/wongpk/wongpk/internet.jpg" alt="Internet" /></p>
<p>I started off by selling websites I made for months, then paid posting coming in, I jumped into the bandwagon and now, I&#8217;m running a small web design services out of Internet.</p>
<p>This new media has been booming while I was still a teenagers, and now more and more people are joining this media. The potential is quite big, but how does one small fish shine in a big tank is the challenge.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wongpk.com/2010/10/13/internet-here-to-help/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Auto detect mobile style with WordPress</title>
		<link>http://www.wongpk.com/2010/09/27/auto-detect-mobile-style-with-wordpress/</link>
		<comments>http://www.wongpk.com/2010/09/27/auto-detect-mobile-style-with-wordpress/#comments</comments>
		<pubDate>Mon, 27 Sep 2010 06:04:32 +0000</pubDate>
		<dc:creator>wong</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Mobile]]></category>

		<guid isPermaLink="false">http://www.wongpk.com/?p=2995</guid>
		<description><![CDATA[Mobile web and mobile web applications are both serious hit into the market nowadays. Even though Malaysia system is a bit slow, but the users are growing. With WordPress, there is not much you can do with mobile version, beside &#8230; <a href="http://www.wongpk.com/2010/09/27/auto-detect-mobile-style-with-wordpress/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Mobile web and mobile web applications are both serious hit into the market nowadays. Even though Malaysia system is a bit slow, but the users are growing. With WordPress, there is not much you can do with mobile version, beside getting a plugin like <a href="http://wordpress.org/extend/plugins/wordpress-mobile-edition">WordPress mobile edition</a> or a third party web app like  <a href="http://www.mobify.me">mobify</a>.</p>
<p><img src="http://i31.photobucket.com/albums/c376/wongpk/wongpk/mobile_web.jpg" alt="Mobile web" /></p>
<p>I am not keen with a list of plugins in my admin panel, so I found quite an useful <a href="http://mobility.mobi/showthread.php?22-Auto-detecting-PC-Mobile-and-then-Redirecting">snippet in a forum</a> discussing how to automatic detect mobile browser and sent users to the mobile version . The snippet looks like this:</p>
<pre>&#60;?php

$mobile_browser = '0';

if(preg_match('/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone)/i',
    strtolower($_SERVER['HTTP_USER_AGENT']))){
    $mobile_browser++;
    }

if((strpos(strtolower($_SERVER['HTTP_ACCEPT']),'application/vnd.wap.xhtml+xml')&#62;0) or
    ((isset($_SERVER['HTTP_X_WAP_PROFILE']) or isset($_SERVER['HTTP_PROFILE'])))){
    $mobile_browser++;
    }

$mobile_ua = strtolower(substr($_SERVER['HTTP_USER_AGENT'],0,4));
$mobile_agents = array(
    'w3c ','acs-','alav','alca','amoi','audi','avan','benq','bird','blac',
    'blaz','brew','cell','cldc','cmd-','dang','doco','eric','hipt','inno',
    'ipaq','java','jigs','kddi','keji','leno','lg-c','lg-d','lg-g','lge-',
    'maui','maxo','midp','mits','mmef','mobi','mot-','moto','mwbp','nec-',
    'newt','noki','oper','palm','pana','pant','phil','play','port','prox',
    'qwap','sage','sams','sany','sch-','sec-','send','seri','sgh-','shar',
    'sie-','siem','smal','smar','sony','sph-','symb','t-mo','teli','tim-',
    'tosh','tsm-','upg1','upsi','vk-v','voda','wap-','wapa','wapi','wapp',
    'wapr','webc','winw','winw','xda','xda-');

if(in_array($mobile_ua,$mobile_agents)){
    $mobile_browser++;
    }
if (strpos(strtolower($_SERVER['ALL_HTTP']),'OperaMini')&#62;0) {
    $mobile_browser++;
    }
if (strpos(strtolower($_SERVER['HTTP_USER_AGENT']),'windows')&#62;0) {
    $mobile_browser=0;
    }

if($mobile_browser&#62;0){
   header('Location: http://YourSite.mobi/mobile');
   } else {
   header('Location: http://YourSite.mobi/pc');
   }

?&#62;</pre>
<p>While it will automatic redirect users to the mobile version, it can however not direct users to another URL but another style sheet too.</p>
<pre>if($mobile_browser&#62;0){
   echo "&#60;link rel=\"stylesheet\" href=\""; echo bloginfo('stylesheet_directory'); echo "/mobile.css\" type=\"text/css\" media=\"handheld\" /&#62;";
   } else {
   echo "&#60;link rel=\"stylesheet\" href=\""; echo bloginfo('stylesheet_directory'); echo "/screen.css\" type=\"text/css\" media=\"handheld\" /&#62;";
   }</pre>
<p>WordPress theme need <code>style.css</code>. All the information about the theme should be within <code>style.css</code> too. So I only place information on <code>style.css</code> and the rest of my CSS will bne in <code>screen.css</code>.</p>
<p>In <code>functions.php</code>, create the auto detect function:</p>
<pre>function mobile_screen() {
$mobile_browser = '0';

if(preg_match('/(up.browser|up.link|mmp|symbian|smartphone|midp|wap|phone)/i',
  strtolower($_SERVER['HTTP_USER_AGENT']))){
  $mobile_browser++;
  }

if((strpos(strtolower($_SERVER['HTTP_ACCEPT']),'application/vnd.wap.xhtml+xml')&#62;0) or
  ((isset($_SERVER['HTTP_X_WAP_PROFILE']) or isset($_SERVER['HTTP_PROFILE'])))){
  $mobile_browser++;
  }

$mobile_ua = strtolower(substr($_SERVER['HTTP_USER_AGENT'],0,4));
$mobile_agents = array(
  'w3c ','acs-','alav','alca','amoi','audi','avan','benq','bird','blac',
  'blaz','brew','cell','cldc','cmd-','dang','doco','eric','hipt','inno',
  'ipaq','java','jigs','kddi','keji','leno','lg-c','lg-d','lg-g','lge-',
  'maui','maxo','midp','mits','mmef','mobi','mot-','moto','mwbp','nec-',
  'newt','noki','oper','palm','pana','pant','phil','play','port','prox',
  'qwap','sage','sams','sany','sch-','sec-','send','seri','sgh-','shar',
  'sie-','siem','smal','smar','sony','sph-','symb','t-mo','teli','tim-',
  'tosh','tsm-','upg1','upsi','vk-v','voda','wap-','wapa','wapi','wapp',
  'wapr','webc','winw','winw','xda','xda-');

if (in_array($mobile_ua,$mobile_agents)) {$mobile_browser++;}
if (strpos(strtolower($_SERVER['HTTP_USER_AGENT']),'OperaMini')&#62;0) {$mobile_browser=0;}
if (strpos(strtolower($_SERVER['HTTP_USER_AGENT']),'windows')&#62;0) {$mobile_browser=0;}

if($mobile_browser&#62;0){
  echo "&#60;link rel=\"stylesheet\" href=\""; echo bloginfo('stylesheet_directory'); echo "/mobile.css\" type=\"text/css\" media=\"handheld\" /&#62;";
  } else {
  echo "&#60;link rel=\"stylesheet\" href=\""; echo bloginfo('stylesheet_directory'); echo "/screen.css\" type=\"text/css\" media=\"screen\" /&#62;";
  }
}</pre>
<p>It is to be easy for front-end developing. For <code>header.php</code>, you&#8217;ll need to look for the function and display it:</p>
<pre>&#60;?php if (function_exists('mobile_screen') ) { mobile_screen(); } ?&#62;</pre>
<p>Do let me know if there is another easier way to do so, cause this is not a good way to implement as a mobile web yet. By the way, you can learn more about mobile web tips and technique <a href="http://www.cameronmoll.com/archives/000577.html">here</a>. Have fun! <img src='http://www.wongpk.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.wongpk.com/2010/09/27/auto-detect-mobile-style-with-wordpress/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Desktop and web applications</title>
		<link>http://www.wongpk.com/2010/05/21/desktop-and-web-applications/</link>
		<comments>http://www.wongpk.com/2010/05/21/desktop-and-web-applications/#comments</comments>
		<pubDate>Fri, 21 May 2010 08:25:58 +0000</pubDate>
		<dc:creator>wong</dc:creator>
				<category><![CDATA[Discovery]]></category>
		<category><![CDATA[Application]]></category>
		<category><![CDATA[Desktop]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Web]]></category>

		<guid isPermaLink="false">http://www.wongpk.com/?p=2550</guid>
		<description><![CDATA[With the boarder usage of Internet year by year, a lot of people starting to get Internet connectivity. Most Internet user have a Facebook account, a web app that connect their friends, some, use a mobile device, ranging from iPhone, &#8230; <a href="http://www.wongpk.com/2010/05/21/desktop-and-web-applications/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>With the boarder usage of Internet year by year, a lot of people starting to get Internet connectivity. Most Internet user have a Facebook account, a web app that connect their friends, some, use a mobile device, ranging from iPhone, Nokia symbian, netbook, iPad and etc.</p>
<p>I am seeing the birth of web apps everyday. I myself, used a few web app on daily basic. Google Document, Facebook, Twitter just to name a few. Some don&#8217;t understand why would I use web apps instead of a desktop apps.</p>
<p><img src="http://i31.photobucket.com/albums/c376/wongpk/wongpk/office_loading.gif" alt="Office loading" /></p>
<p>I did install a set of Micorsoft Office 2007 in my desktop as well, because web app, like how it was named, need an Internet connection. However, it doesn&#8217;t mean a web app isn&#8217;t any better than a desktop app.</p>
<p>A few point about desktop application:</p>
<ul>
<li>Need installation</li>
<li>Self update</li>
<li>Some cost lots of fee</li>
<li>Use without an Internet connection</li>
<li>More flexibility on customization</li>
</ul>
<p>I limit my desktop applications and save all the possible hard dick space for my music, movies and pictures.</p>
<p><img src="http://i31.photobucket.com/albums/c376/wongpk/wongpk/google_doc.gif" alt="Google Document" /></p>
<p>A web applications is always supported by it team which manage and make sure it is stable, up and running. There is no hassle of scanning those application and waited for hours.</p>
<p>Of course a web applications cannot guarantee your privacy. But a desktop application can&#8217;t guarantee that as well once it infected by malware.</p>
<p>A few point about desktop application:</p>
<ul>
<li>No need installation, maybe a registration form</li>
<li>Thousand of million developers watching and updating.</li>
<li>Most web apps are free</li>
<li>Need an Internet connection to work</li>
<li>Most customization depend on how it design it UI</li>
</ul>
<p>However, in Malaysia, we don&#8217;t get free Internet, and we don&#8217;t get free WiFi around the town too. Hopefully Penang can achieve this?</p>
<p>Now that you wonder why Google Chrome OS coming out to support their own web applications? Pretty sure there are some statistic about their web applications that they did not announce.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wongpk.com/2010/05/21/desktop-and-web-applications/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

