<?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"
	>

<channel>
	<title>LinusLin.com</title>
	<atom:link href="http://linuslin.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuslin.com</link>
	<description>LinusLin.com</description>
	<pubDate>Fri, 22 Aug 2008 04:45:48 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
	<language>en</language>
			<item>
		<title>Use PNG image across browser (include IE6)</title>
		<link>http://linuslin.com/2007/09/15/use-png-image-across-browser-include-ie6/</link>
		<comments>http://linuslin.com/2007/09/15/use-png-image-across-browser-include-ie6/#comments</comments>
		<pubDate>Sat, 15 Sep 2007 10:10:03 +0000</pubDate>
		<dc:creator>Linus</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[XHTML/CSS]]></category>

		<guid isPermaLink="false">http://linuslin.com/2007/09/15/use-png-image-across-browser-include-ie6/</guid>
		<description><![CDATA[PNG image is not supported by IE6, to work around this, we can use AlphaImageLoader Filter in CSS.
The idea is using two divs, first one for IE only (IE6, IE7), the second one for Major browsers that support PNG, such as IE7, Firefox, and Safari. IE7 will pick up both, so we have to target [...]]]></description>
			<content:encoded><![CDATA[<p>PNG image is not supported by IE6, to work around this, we can use AlphaImageLoader Filter in CSS.</p>
<p>The idea is using two divs, first one for IE only (IE6, IE7), the second one for Major browsers that support PNG, such as IE7, Firefox, and Safari. IE7 will pick up both, so we have to target it to force it use one only.</p>
<p>For example: If we want to make a button with transparent background using png image, first we need to make a div for browser that don&#8217;t support png, and another div for those does support png.</p>
<h3>HTML Code:</h3>
<p><code>&lt;div id="ie6_button"&gt;&lt;a href="#"&gt;&lt;/a&gt;&lt;/div&gt; /*No text here, other browser will use the one below*/<br />
&lt;div id="general_button"&gt;&lt;a href="#"&gt;Click here&lt;/a&gt;&lt;/div&gt;</code></p>
<h3>CSS Code:</h3>
<p>IE6, IE7  will read this, other browser won&#8217;t understand the filter part, but will pick up the image dimension.</p>
<p><code>#ie6_button a{ display:block;height:50px; width:100px; float:right;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader<br />
(src='/images/button.png', sizingMethod='scale');}</code></p>
<p><code>#ie6_button a:hover{ cursor:pointer;display:block;filter:progid:DXImageTransform.Microsoft.<br />
AlphaImageLoader (src='/images/button_over.png', sizingMethod='scale');}</code></p>
<p>Target IE7 and Firefox, etc.</p>
<p><code>html&gt;body #general_button a{ color:#FFFFFF; display:block; text-transform:uppercase; font-size:9px;float:right;width:100px; height:50px; position:relative; left:149px;background:url(images/button.png) no-repeat right top; text-align:right}</code></p>
<p><code>html&gt;body #general_button a:hover{background:url(images/button_over.png) no-repeat right top}</code></p>
<p>Because IE7 will recognize the AlphaImageLoader script, it will display both background settings, here we can target IE7 make it use AlphaImageLoader only.</p>
<p><code>*:first-child+html #button { background:none; /* Make IE7 use ImageLoader only */}</code></p>
<p>Be aware that the genera_button need to be relative positioned so that it won&#8217;t be pushed by ie6_button.</p>
<h3>Note:</h3>
<p>1. AlphaImageLoader require ActiveX support and will not work on Stand alone IE6.</p>
<p>2. If there is more transparent effect on the page, this may not be a practical way. You may consider cutting the png with backgroud.</p>
<p><a href="http://msdn2.microsoft.com/en-us/library/ms532969.aspx">More information about AlphaImageLoader</a><br />
<a href="http://www.alistapart.com/articles/pngopacity">Cross-Browser Variable Opacity with PNG: A Real Solution</a></p>
]]></content:encoded>
			<wfw:commentRss>http://linuslin.com/2007/09/15/use-png-image-across-browser-include-ie6/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to make anti-spam contact form with Akismet</title>
		<link>http://linuslin.com/2007/08/23/how-to-make-anti-spam-contact-form-with-akismet/</link>
		<comments>http://linuslin.com/2007/08/23/how-to-make-anti-spam-contact-form-with-akismet/#comments</comments>
		<pubDate>Wed, 22 Aug 2007 14:06:11 +0000</pubDate>
		<dc:creator>Linus</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://linuslin.com/2007/08/23/how-to-make-anti-spam-contact-form-with-akismet/</guid>
		<description><![CDATA[If you have a blog, you will get spam, that&#8217;s almost certain. The good news is in wordpress, akismet has got it under control. But what if you want have a contact form in your blog and also want it to be protected by akismet. Well, there are few ways to do this. If you [...]]]></description>
			<content:encoded><![CDATA[<p>If you have a blog, you will get spam, that&#8217;s almost certain. The good news is in wordpress, akismet has got it under control. But what if you want have a contact form in your blog and also want it to be protected by akismet. Well, there are few ways to do this. If you don&#8217;t familiar with PHP, you can download the Akismet version of contact form plugin for Wordpress. Here is the full instruction of <a href="http://www.bloggingexpertise.com/plugins/wp-contactform-akismet/" target="_blank">how to install it</a>. Or you could integrate Akismet to your own contact form, here is how:</p>
<h2>What do you need</h2>
<p>1. Customized contact form<br />
2. Wordpress <em>API</em> key<br />
You can get one if you sign up with Wordpress.<br />
3. Akismet Class<br />
You can <a href="http://miphp.net/blog/view/php4_akismet_class" target="_blank">download it here</a></p>
<h2>The precess</h2>
<p>1. Upload <em>akismet.class.php</em> to your plugin folder. (It make sense if you put it under akismet plugin folder.)<br />
2. Include <em>akismet.class.php</em><br />
Write include &#8216;akismet.class.php&#8217;; (depend where you put your php file)<br />
3. load array with data in contact from</p>
<blockquote><p><code>$checkthis = array(</code><br />
<code> 'author' =&gt; $name,</code><br />
<code> 'email' =&gt; $email,</code><br />
<code> 'website' =&gt; $website,</code><br />
<code> 'body' =&gt; $message,</code><br />
<code> );</code></p></blockquote>
<p>4. Instantiate an instance of the class</p>
<blockquote><p><code>$akismet = new Akismet('http://www.yourdomain.com/', 'YOUR_WORDPRESS_API_KEY', $Checkthis);</code></p></blockquote>
<p>5. Check for spam</p>
<blockquote><p><code>if($akismet-&gt;isSpam()){</code><br />
<code> header( "Location: $spamurl" );</code><br />
<code> exit;</code><br />
<code> }</code></p></blockquote>
<p>Ok, now your contact form is protected by Akismet. Here is a sample of how the final php file might look like.<br />
<a href="http://linuslin.com/wp-content/uploads/sample.zip" title="Sample PHP Code">Download Sample Code</a></p>
]]></content:encoded>
			<wfw:commentRss>http://linuslin.com/2007/08/23/how-to-make-anti-spam-contact-form-with-akismet/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to design wordpress theme using Dreamweaver (Beginning, Intermediate)</title>
		<link>http://linuslin.com/2007/08/20/how-to-design-wordpress-theme-using-dreamweaver-beginning-intermediate/</link>
		<comments>http://linuslin.com/2007/08/20/how-to-design-wordpress-theme-using-dreamweaver-beginning-intermediate/#comments</comments>
		<pubDate>Sun, 19 Aug 2007 15:10:52 +0000</pubDate>
		<dc:creator>Linus</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://linuslin.com/2007/08/20/how-to-design-wordpress-theme-using-dreamweaver-beginning-intermediate/</guid>
		<description><![CDATA[Haven’t start blog yet? Why not start now, this tutorial will guide you though the process of creating a customized Wordpress theme right from the beginning.
Why Wordpress?
First of all, its free, it was build upon  MySQL(database) and PHP(server side script), which are also free. Secondly, it  has been there for almost 5 years, [...]]]></description>
			<content:encoded><![CDATA[<p>Haven’t start blog yet? Why not start now, this tutorial will guide you though the process of creating a customized Wordpress theme right from the beginning.</p>
<h2>Why Wordpress?</h2>
<p>First of all, its free, it was build upon  <a href="http://www.mysql.com/" title="MySQL" target="_blank">MySQL</a>(database) and <a href="http://www.php.net" title="PHP" target="_blank">PHP</a>(server side script), which are also free. Secondly, it  has been there for almost 5 years, there is a big community behind it., its  totally customizable with millions of plugins contributed from people around  the world, the possibility is infinite. Last but not least, it’s very easy to  use, even you don’t have much of knowledge in programming, all the plugins will  make your life easy enough to take advantage of all the potential it offers.</p>
<h2>What do you need?</h2>
<h3>1. Apache, MySQL and PHP</h3>
<p>First of all you need to install server in you PC or MAC, you will need <a href="http://www.apache.org/" title="Apache" target="_blank">Apache</a> to turn you computer to a server, but lots of people have concern of doing this because they think this might increase the possibility of getting computer virus or crash the computer. The fact is the server installed in a local computer only makes it act as a server, not necessarily means turn it to a actually server which is open for hacker on the internet. It is no different than installing other softwares. However, it’s a bit tricky to install these components, if you are using Windows Vista check out following tutorials from senese, <a href="http://senese.wordpress.com/2007/06/06/installing-apache-on-windows-vista/" target="_blank">install apache on Windows Vista</a>, <a href="http://senese.wordpress.com/2007/06/06/install-php-5-under-apache-22-and-windows-vista/" target="_blank">Install PHP under Apache and Vista</a>.</p>
<p><strong>Note:</strong> There are tutorials that teach you how to customize themes without install a server, but I found it hard to edit multiple pages using these methods and the result isn’t always precisely what you are expecting. You can check out <a href="http://max.limpag.com/2006/06/07/how-to-edit-wordpress-design-using-dreamweaver/" target="_blank">how to edited Wordpress design using Dreamweaver</a>.</p>
<h3>2. HTML editor</h3>
<p>HTML and CSS editor is necessary even for the most senior web developer, in my case I prefer Dreamweaver, coz it has a clean interface very easy to use and can cope with HTML and CSS beautifully.</p>
<h3>3. Wordpress theme</h3>
<p>While I said design, in fact it&#8217;s hard to design a wordpress theme without some serious PHP programming knowledge. So to begin with, why don’t we choose a theme out there with a similar layout as you desired, it will be a lot easier.</p>
<h2>How does it put together?</h2>
<p>If you a bit about HTML, you will know that a webpage is consist of several part, from the top to bottom there are Doctype, Header, Body. While Wordpress divides them into even small pieces and put them back together when a request is made by the browser. In all Wordpress root directory, there are following files with php extension that together make up a webpage:</p>
<p align="center"><a href="http://linuslin.com/wp-content/uploads/webpagediagram.jpg" rel="lightbox"><img src="http://linuslin.com/wp-content/uploads/webpagediagram.jpg" class="imgthumb" alt="PHPs in Wordpress" height="192" width="300" /></a></p>
<h3>1. index.php or page.php, search.php, single.php, archives.php, archive.php., 404.php</h3>
<p>Each of these files collect all the contents that is necessary to build up a web page, such as header, main post, comments, footer, archives, etc.</p>
<h3>2. header.php</h3>
<p>Beside the header itself that appears on the top of the page, the header.php contains information about the website and webpages, such as title, meta tag and the location of style sheet, Javascripts. You can write CSS rules and Javascripts in this file, but it’s not recommended in favor of the web standard.</p>
<h3>3. comments.php, comments-popup.php</h3>
<p>Comment form and popup comment window.</p>
<h3>4.	sidebar.php</h3>
<p>Collect things that should appear in sidebar, such as archive, blogroll, categories, etc.</p>
<h3>5.	footer.php</h3>
<p>Place to include extra information about the site or page, such as copyright, RSS feed link or more.</p>
<h2>The process</h2>
<h3>1.	Setup Wordpress</h3>
<p>Before you do anything with the style sheet, make sure you Wordpress in you computer are up and running, check <a href="http://codex.wordpress.org/Getting_Started_with_WordPress" target="_blank">here</a> if you are not sure how to set it up. Then try to write a testing post and add some comments yourself.</p>
<h3>2.	Create HTML page</h3>
<p>In the browser go to your homepage, the link should be something like http://localhost/wordpress/, now copy the source code. Open HTML editor create a new HTML page name it index.html, save it under the folder where the theme you have chosen located, for example: c:/apache/htdocs/wordpress/wp-content/themes/theme_name/.</p>
<h3>3.	Link CSS sheet</h3>
<p>Open index.html in editor edit the link location of style sheet, make it as <code> &lt;link rel="stylesheet" href="style.css" type="text/css" media="screen" /&gt;</code>because if you don’t move the style sheet otherwise, it’s by default in the root directory of the theme folder.</p>
<h3>4.	Edit style sheet</h3>
<p>Open style.css in editor and customize the look of your wordpress. In HTML editor like Dreamweaver the change made to style sheet will immediately reflected in the window.</p>
<p align="center"><a href="http://linuslin.com/wp-content/uploads/editcss.jpg" rel="lightbox"><img src="http://linuslin.com/wp-content/uploads/editcss_thumb.jpg" class="imgthumb" alt="Edit CSS" height="164" width="300" /></a></p>
<h3>5.	Preview</h3>
<p>Once you done the editing with CSS, preview the index.html page. Since the index.html file and the webpage generated by PHP code use the same style sheet, you will find you actually customized the entire site.</p>
<h2>What else to do?</h2>
<p>If there is more than just the content that appears in the index page you want to change, such as popup comment page, page that display the individual post or even 404 error page, just repeat step 2 to 4.</p>
<p>Moreover, since you have installed the server in you computer, you can actually do a lot more than editing style sheet. You can add or remove content in those PHP files or install plugins in you local Wordpress blog before you upload them on to the hosting server.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuslin.com/2007/08/20/how-to-design-wordpress-theme-using-dreamweaver-beginning-intermediate/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Are we designers or developers?</title>
		<link>http://linuslin.com/2007/08/13/are-we-designers-or-developers/</link>
		<comments>http://linuslin.com/2007/08/13/are-we-designers-or-developers/#comments</comments>
		<pubDate>Mon, 13 Aug 2007 03:49:57 +0000</pubDate>
		<dc:creator>Linus</dc:creator>
		
		<category><![CDATA[Web General]]></category>

		<guid isPermaLink="false">http://linuslin.com/?p=6</guid>
		<description><![CDATA[Just read this article from Roger Johansson about been in an awkward position calling himself a designer or developer. I think this is a very common dilemmatic question for most of us working in web industry.
Actually I think web design pretty much sums up everything I am capable of doing, it includes graphic design, coding, [...]]]></description>
			<content:encoded><![CDATA[<p>Just read this article from <a href="http://www.456bereastreet.com/" title="Roger Johansson" target="_blank">Roger Johansson</a> about been in an awkward position calling himself a designer or developer. I think this is a very common dilemmatic question for most of us working in web industry.</p>
<p>Actually I think web design pretty much sums up everything I am capable of doing, it includes graphic design, coding, information architect, user experience, accessibility, etc. If you are specialized in any of this skills, such as graphic design, you probably wouldn’t be struggling from what to call yourself.</p>
<p>In terms of when and under what circumstance to call myself what, I do find this challenging, but only when watching job ads and at the time the interviewer asking you.</p>
<p>Personally I wouldn’t care what to tell a stranger or even a close friend that not related to my work about what I do exactly, a web designer or web developer is most probably same thing to them. In most case I would prefer just tell people I’m a web designer. Of course, it’s another story telling a professionally associated person who you are and what you can do.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuslin.com/2007/08/13/are-we-designers-or-developers/feed/</wfw:commentRss>
		</item>
		<item>
		<title>New Beginning</title>
		<link>http://linuslin.com/2007/08/12/new-beginning/</link>
		<comments>http://linuslin.com/2007/08/12/new-beginning/#comments</comments>
		<pubDate>Sat, 11 Aug 2007 15:45:42 +0000</pubDate>
		<dc:creator>Linus</dc:creator>
		
		<category><![CDATA[Life]]></category>

		<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://linuslin.com/?p=3</guid>
		<description><![CDATA[Here we go, the first post from my personal blog and portfolio site. I have being thinking about redesigning my old portfolio for a while, but there were always hesitation on the way. Now, having been doing freelance web design for almost a year, I thing it might be a good time to have a [...]]]></description>
			<content:encoded><![CDATA[<p>Here we go, the first post from my personal blog and portfolio site. I have being thinking about redesigning my <a href="http://linuslin.com/portfolio/index/" target="_blank">old portfolio</a> for a while, but there were always hesitation on the way. Now, having been doing freelance web design for almost a year, I thing it might be a good time to have a look backwards and planning for the future.</p>
<p>I graduated with a multimedia design degree, at the time of graduation, there is much of a uncertainty of what I would be doing after that, despite the fact that I have always been passionate about web related technologies and graphic design. And everything seems natural that finally I decided to devote myself in web design and graphic design, where I believe that I can best utilize all my skills and share my passion.</p>
<p>As a freelance designer, I didn’t have many chances to talk to other designers out there, either doing freelance or working for an agency. Although I have been a regular visitor at design forums like <a href="http://www.designerstalk.com" target="_blank">designerstalk</a> and reading articles in millions of websites, there always a feeling of lost or alienated. This blog come in to being and I hope it become a portal for me to get plugged to the real world and really people.</p>
<p>Before I start doing the mockup, I visited lots of portfolio sites to collect the ideas, and the one that inspired me the most is the blog of <a href="http://www.devlounge.net/interviews/nicolo-volpato" target="_blank">Nicolò Volpato</a>, <a href="http://jek2k.com/" title="jek2kdotcom" target="_blank">jek2k.com</a>.</p>
<p style="text-align: center"><img src="http://linuslin.com/wp-content/uploads/jek2k.jpg" alt="jek2k" /></p>
<p>I was stormed with its simplicity and functionality. You can see a lot similarity between the two, actually I just hope he wont be too mad at me ^^.</p>
<p>Anyway, thanks for reading this, I will keep posting from now on, sharing my thoughts or whatever come across, and hoping getting response from you guys. Cheers.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuslin.com/2007/08/12/new-beginning/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
