<?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>Coyote Lab</title>
	<atom:link href="http://coyotelab.org/blog/feed" rel="self" type="application/rss+xml" />
	<link>http://coyotelab.org/blog</link>
	<description></description>
	<lastBuildDate>Fri, 22 Jan 2010 06:16:31 +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>WordPress Posterous Plugin</title>
		<link>http://coyotelab.org/blog/wordpress/wordpress-posterous-plugin</link>
		<comments>http://coyotelab.org/blog/wordpress/wordpress-posterous-plugin#comments</comments>
		<pubDate>Fri, 22 Jan 2010 04:42:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://coyotelab.org/blog/?p=205</guid>
		<description><![CDATA[Share your WordPress posts through Posterous.

Installation:

Upload the wp-posterous folder to your /wp-content/plugins/ directory.
Activate the &#8220;Wp Posterous&#8221; plugin in your WordPress administration interface.
Create a page or a post, select the networks and  publish post as normal.


]]></description>
			<content:encoded><![CDATA[<p>Share your WordPress posts through Posterous.</p>
<p><span id="more-205"></span></p>
<h3>Installation:</h3>
<ol>
<li>Upload the wp-posterous folder to your /wp-content/plugins/ directory.</li>
<li>Activate the &#8220;Wp Posterous&#8221; plugin in your WordPress administration interface.</li>
<li>Create a page or a post, select the networks and  publish post as normal.</li>
</ol>
<p><img src="http://coyotelab.org/blog/wp-content/uploads/2010/01/2.jpg" alt="2" title="2" width="600" height="303" class="aligncenter size-full wp-image-216" /></p>
]]></content:encoded>
			<wfw:commentRss>http://coyotelab.org/blog/wordpress/wordpress-posterous-plugin/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a cool looking jQuery data table</title>
		<link>http://coyotelab.org/blog/jquery/create-a-cool-looking-jquery-data-table</link>
		<comments>http://coyotelab.org/blog/jquery/create-a-cool-looking-jquery-data-table#comments</comments>
		<pubDate>Wed, 25 Nov 2009 09:01:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://coyotelab.org/blog/?p=169</guid>
		<description><![CDATA[In this article I&#8217;ll explain how to create a cool looking data table using jQuery&#8230;

Step 1 – HTML Page
File Name: xpand.html
&#60;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&#62;
&#60;html xmlns="http://www.w3.org/1999/xhtml"&#62;
&#60;head&#62;
&#60;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&#62;
&#60;title&#62;jQuery Data Table&#60;/title&#62;
&#60;link rel="stylesheet" href="style.css" type="text/css" media="screen"/&#62;
&#60;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&#62;&#60;/script&#62;
&#60;script type="text/javascript" src="roll_over.js"&#62;&#60;/script&#62;
&#60;script type="text/javascript" src="slide.js"&#62;&#60;/script&#62;
&#60;/head&#62;
&#60;body&#62;
&#60;div class="container"&#62;
  &#60;div class="country"&#62;
    &#60;table   [...]]]></description>
			<content:encoded><![CDATA[<p>In this article I&#8217;ll explain how to create a cool looking data table using jQuery&#8230;</p>
<p><span id="more-169"></span></p>
<h3>Step 1 – HTML Page</h3>
<p><strong>File Name:</strong> xpand.html</p>
<pre><code >&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;jQuery Data Table&lt;/title&gt;
&lt;link rel="stylesheet" href="style.css" type="text/css" media="screen"/&gt;
&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="roll_over.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="slide.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class="container"&gt;
  &lt;div class="country"&gt;
    &lt;table   border="0" cellpading="0" cellspacing="0"&gt;
      &lt;tr&gt;
        &lt;td width="275" height="30"&gt;&lt;h3&gt;Austria&lt;/h3&gt;&lt;/td&gt;
        &lt;td style="border-left: 1px solid #C7004A;" width="160" height="30"&gt;&lt;div align="center"&gt;&lt;img src="Empty_btn.png" width="125" height="21"/&gt;&lt;/div&gt;&lt;/td&gt;
        &lt;td style="border-left: 1px solid #C7004A;" width="160" height="30"&gt;&lt;div align="center"&gt;&lt;h4&gt;&lt;img src="View_btn.png" class="ro" /&gt;&lt;/h4&gt;&lt;/div&gt;&lt;/td&gt;
        &lt;td style="border-left: 1px solid #C7004A;" width="160" height="30"&gt;&lt;div align="center"&gt;&lt;img src="Empty_btn.png" width="125" height="21"/&gt;&lt;/div&gt;&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/table&gt;
  &lt;/div&gt;&lt;!-- country ends --&gt;
  &lt;div class="mv"&gt;
    &lt;table  width="760" border="0" cellpading="0" cellspacing="0" &gt;
      &lt;tr&gt;
        &lt;td width="275" height="140" valign="top"&gt;&lt;h3&gt;Austria&lt;/h3&gt;&lt;img src="Country_Bt_border.gif"/&gt;&lt;/td&gt;
        &lt;td width="160"&gt;&lt;div align="center"&gt;&lt;img src="Empty_Sales_Aid.gif" width="73" height="105" alt="" /&gt;&lt;/div&gt;&lt;/td&gt;
        &lt;td width="160"&gt;&lt;div align="center"&gt;&lt;img src="FPO_Sales_Aid.gif" width="73" height="105" alt="" /&gt;&lt;/div&gt;&lt;/td&gt;
        &lt;td width="160"&gt;&lt;div align="center"&gt;&lt;img src="Empty_Sales_Aid.gif" width="73" height="105" alt="" /&gt;&lt;/div&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td width="275" height="40" valign="bottom"&gt;&lt;p&gt;[x]close&lt;/p&gt;&lt;/td&gt;
        &lt;td width="160"&gt;&lt;div align="center"&gt;text&lt;/div&gt;&lt;/td&gt;
        &lt;td width="160"&gt;&lt;div align="center"&gt;text&lt;/div&gt;&lt;/td&gt;
        &lt;td width="160"&gt;&lt;div align="center"&gt;text&lt;/div&gt;&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/table&gt;
  &lt;/div&gt;&lt;!-- mv ends --&gt;
  &lt;div class="country"&gt;
    &lt;table  border="0" cellpading="0" cellspacing="0"&gt;
      &lt;tr&gt;
        &lt;td width="275" height="30"&gt;&lt;h3&gt;Belgium&lt;/h3&gt;&lt;/td&gt;
        &lt;td style="border-left: 1px solid #C7004A;" width="160" height="30"&gt;&lt;div align="center"&gt;&lt;h4&gt;&lt;img src="View_btn.png" class="ro" /&gt;&lt;/h4&gt;&lt;/div&gt;&lt;/td&gt;
        &lt;td style="border-left: 1px solid #C7004A;" width="160" height="30"&gt;&lt;div align="center"&gt;&lt;h4&gt;&lt;img src="View_btn.png" class="ro" /&gt;&lt;/h4&gt;&lt;/div&gt;&lt;/td&gt;
        &lt;td style="border-left: 1px solid #C7004A;" width="160" height="30"&gt;&lt;div align="center"&gt;&lt;img src="Empty_btn.png" width="125" height="21"/&gt;&lt;/div&gt;&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/table&gt;
  &lt;/div&gt;&lt;!-- country ends --&gt;
  &lt;div class="mv"&gt;
    &lt;table width="760" border="0" cellpading="0" cellspacing="0" &gt;
      &lt;tr&gt;
        &lt;td width="275" height="140" valign="top"&gt;&lt;h3&gt;Belgium&lt;/h3&gt;&lt;img src="Country_Bt_border.gif"/&gt;&lt;/td&gt;
        &lt;td width="160"&gt;&lt;div align="center"&gt;&lt;img src="FPO_Sales_Aid.gif" width="73" height="105" alt="" /&gt;&lt;/div&gt;&lt;/td&gt;
        &lt;td width="160"&gt;&lt;div align="center"&gt;&lt;img src="FPO_Sales_Aid.gif" width="73" height="105" alt="" /&gt;&lt;/div&gt;&lt;/td&gt;
        &lt;td width="160"&gt;&lt;div align="center"&gt;&lt;img src="Empty_Sales_Aid.gif" width="73" height="105" alt="" /&gt;&lt;/div&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td width="275" height="40" valign="bottom"&gt;&lt;p&gt;[x]close&lt;/p&gt;&lt;/td&gt;
        &lt;td width="160"&gt;&lt;div align="center"&gt;text&lt;/div&gt;&lt;/td&gt;
        &lt;td width="160"&gt;&lt;div align="center"&gt;text&lt;/div&gt;&lt;/td&gt;
        &lt;td width="160"&gt;&lt;div align="center"&gt;text&lt;/div&gt;&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/table&gt;
  &lt;/div&gt;&lt;!-- mv ends --&gt;
  &lt;div class="country"&gt;
    &lt;table border="0" cellpading="0" cellspacing="0"&gt;
      &lt;tr&gt;
        &lt;td width="275" height="30"&gt;&lt;h3&gt;Bulgaria&lt;/h3&gt;&lt;/td&gt;
        &lt;td style="border-left: 1px solid #C7004A;" width="160" height="30"&gt;&lt;div align="center"&gt;&lt;img src="Empty_btn.png" width="125" height="21"/&gt;&lt;/div&gt;&lt;/td&gt;
        &lt;td style="border-left: 1px solid #C7004A;" width="160" height="30"&gt;&lt;div align="center"&gt;&lt;img src="Empty_btn.png" width="125" height="21"/&gt;&lt;/div&gt;&lt;/td&gt;
        &lt;td style="border-left: 1px solid #C7004A;" width="160" height="30"&gt;&lt;div align="center"&gt;&lt;h4&gt;&lt;img src="View_btn.png" class="ro" /&gt;&lt;/h4&gt;&lt;/div&gt;&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/table&gt;
  &lt;/div&gt;&lt;!-- country ends --&gt;
  &lt;div class="mv"&gt;
    &lt;table width="760" border="0" cellpading="0" cellspacing="0" &gt;
      &lt;tr&gt;
        &lt;td width="275" height="140" valign="top"&gt;&lt;h3&gt;Bulgaria&lt;/h3&gt;&lt;img src="Country_Bt_border.gif"/&gt;&lt;/td&gt;
        &lt;td width="160"&gt;&lt;div align="center"&gt;&lt;img src="Empty_Sales_Aid.gif" width="73" height="105" alt="" /&gt;&lt;/div&gt;&lt;/td&gt;
        &lt;td width="160"&gt;&lt;div align="center"&gt;&lt;img src="Empty_Sales_Aid.gif" width="73" height="105" alt="" /&gt;&lt;/div&gt;&lt;/td&gt;
        &lt;td width="160"&gt;&lt;div align="center"&gt;&lt;img src="FPO_Sales_Aid.gif" width="73" height="105" alt="" /&gt;&lt;/div&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
        &lt;td width="275" height="40" valign="bottom"&gt;&lt;p&gt;[x]close&lt;/p&gt;&lt;/td&gt;
        &lt;td width="160"&gt;&lt;div align="center"&gt;text&lt;/div&gt;&lt;/td&gt;
        &lt;td width="160"&gt;&lt;div align="center"&gt;text&lt;/div&gt;&lt;/td&gt;
        &lt;td width="160"&gt;&lt;div align="center"&gt;text&lt;/div&gt;&lt;/td&gt;
      &lt;/tr&gt;
    &lt;/table&gt;
  &lt;/div&gt;&lt;!-- mv ends --&gt;
&lt;/div&gt;&lt;!-- container ends --&gt;
&lt;/body&gt;
&lt;/html&gt;</code></pre>
<h3>Step 2 – Add Style</h3>
<p><strong>File Name:</strong> style.css</p>
<pre><code>*          {margin: 0; padding: 0;}
body       {font-family: helvetica; font-size: 14px; font-weight: bold; color: #333;}
p          {font-size: 16px; color: #e792b1; padding: 0 0 10px 10px; cursor:pointer;}
.container {width: 760px; margin: 0 auto; padding: 50px 0 0 0;}
.country   {border-top: 1px solid #C7004A; width: 100%;}
.mv        {margin: 0; padding: 0; border-top: 1px solid #C7004A;}
img        {border: 0 none;}
h3         {padding: 5px 10px; font-size: 14px; color: #454545;}
h4	 {cursor:pointer;}</code></pre>
<h3>Step 3 – jQuery slider effect</h3>
<p><strong>File Name:</strong> slide.js</p>
<pre><code>$(document).ready(function(){
	$('div.mv').hide().css('background-color', '#F7D9E4');
  	$('h4').click(function(){
  		$(this).parents("div.country").next().slideDown("slow")
  		.prev().hide(".country").next().siblings('div.mv')
  		.slideUp("slow").prev().show("div.country");
  		return false;
  	});
  	$('p').click(function(){
  		$(this).parents("div.mv").slideUp("slow")
  		.prev().css('background-color', '#FFFFFF').show(".country");
  		return false;
  	});
  	$( function(){
  		$('.country').hover( function(){
  			$(this).css('background-color', '#F7D9E4');
  		},
  		function(){
  			$(this).css('background-color', '#FFF');
  		});
	});
});</code></pre>
<h3>Step 3 – jQuery hover effect</h3>
<p><strong>File Name:</strong> roll-over.js</p>
<pre><code>$(document).ready( function(){
	PEPS.rollover.init();
});
	PEPS = {};
	PEPS.rollover =
	{
		init: function(){
			this.preload();
			$(".ro").hover(
				function () { $(this).attr( 'src', PEPS.rollover.newimage($(this).attr('src')) ); },
				function () { $(this).attr( 'src', PEPS.rollover.oldimage($(this).attr('src')) ); }
			);
		},
		preload: function(){
			$(window).bind('load', function() {
				$('.ro').each( function( key, elm ) { $('&lt;img alt="" /&gt;').attr( 'src', PEPS.rollover.newimage( $(this).attr('src') ) ); });
			});
		},
		newimage: function( src ) { return src.substring( 0, src.search(/(\.[a-z]+)/) ) + '_o' + src.match(/(\.[a-z]+)/)[0]; },
		oldimage: function( src ){ return src.replace(/_o/, ''); }
	};</code></pre>
<p class="pre">Click here to view <a href="http://coyotelab.org/prototype_final/xpand.html">Live Demo</a></p>
]]></content:encoded>
			<wfw:commentRss>http://coyotelab.org/blog/jquery/create-a-cool-looking-jquery-data-table/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upload CSV and Insert into Database Using PHP/MYSQL</title>
		<link>http://coyotelab.org/blog/php/upload-csv-and-insert-into-database-using-phpmysql</link>
		<comments>http://coyotelab.org/blog/php/upload-csv-and-insert-into-database-using-phpmysql#comments</comments>
		<pubDate>Wed, 18 Nov 2009 19:39:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://coyotelab.org/blog/?p=109</guid>
		<description><![CDATA[This script can be use to update data in database from local CSV file on user(admin) computer
Step 1 &#8211; Data Base Connection
At first we need to connect to database&#8230;
File Name: connection.php

&#60;?php
$db = mysql_connect("Database", "username", "password") or die("Could not connect.");

if(!$db) 

	die("no db");

if(!mysql_select_db("Databasename",$db))

 	die("No database selected.");
?&#62;

Step 2 &#8211; upload page
Making connection to data base by calling the [...]]]></description>
			<content:encoded><![CDATA[<p>This script can be use to update data in database from local CSV file on user(admin) computer<span id="more-109"></span></p>
<h3>Step 1 &#8211; Data Base Connection</h3>
<p>At first we need to connect to database&#8230;<br />
<strong>File Name:</strong> connection.php</p>
<pre>
<code>&lt;?php
$db = mysql_connect("Database", "username", "password") or die("Could not connect.");

if(!$db) 

	die("no db");

if(!mysql_select_db("Databasename",$db))

 	die("No database selected.");
?&gt;</code>
</pre>
<h3>Step 2 &#8211; upload page</h3>
<p>Making connection to data base by calling the connection.php, clean the table of its old data, insert new uploaded data into table&#8230;<br />
<strong>File Name:</strong> upload.php</p>
<pre>
<code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&gt;
&lt;title&gt;Upload page&lt;/title&gt;
&lt;style type="text/css"&gt;
body {
	background: #E3F4FC;
	font: normal 14px/30px Helvetica, Arial, sans-serif;
	color: #2b2b2b;
}
a {
	color:#898989;
	font-size:14px;
	font-weight:bold;
	text-decoration:none;
}
a:hover {
	color:#CC0033;
}

h1 {
	font: bold 14px Helvetica, Arial, sans-serif;
	color: #CC0033;
}
h2 {
	font: bold 14px Helvetica, Arial, sans-serif;
	color: #898989;
}
#container {
	background: #CCC;
	margin: 100px auto;
	width: 945px;
}
#form 			{padding: 20px 150px;}
#form input     {margin-bottom: 20px;}
&lt;/style&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id="container"&gt;
&lt;div id="form"&gt;

&lt;?php

include "connection.php"; //Connect to Database

$deleterecords = "TRUNCATE TABLE tablename"; //empty the table of its current records
mysql_query($deleterecords);

//Upload File
if (isset($_POST['submit'])) {
	if (is_uploaded_file($_FILES['filename']['tmp_name'])) {
		echo "&lt;h1&gt;" . "File ". $_FILES['filename']['name'] ." uploaded successfully." . "&lt;/h1&gt;";
		echo "&lt;h2&gt;Displaying contents:&lt;/h2&gt;";
		readfile($_FILES['filename']['tmp_name']);
	}

	//Import uploaded file to Database
	$handle = fopen($_FILES['filename']['tmp_name'], "r");

	while (($data = fgetcsv($handle, 1000, ",")) !== FALSE) {
		$import="INSERT into tablename(item1,item2,item3,item4,item5) values('$data[0]','$data[1]','$data[2]','$data[3]','$data[4]')";

		mysql_query($import) or die(mysql_error());
	}

	fclose($handle);

	print "Import done";

	//view upload form
}else {

	print "Upload new csv by browsing to file and clicking on Upload&lt;br /&gt;\n";

	print "&lt;form enctype='multipart/form-data' action='upload.php' method='post'&gt;";

	print "File name to import:&lt;br /&gt;\n";

	print "&lt;input size='50' type='file' name='filename'&gt;&lt;br /&gt;\n";

	print "&lt;input type='submit' name='submit' value='Upload'&gt;&lt;/form&gt;";

}

?&gt;

&lt;/div&gt;
&lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;</code>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://coyotelab.org/blog/php/upload-csv-and-insert-into-database-using-phpmysql/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS Browser Hack</title>
		<link>http://coyotelab.org/blog/css/css-browser-hack</link>
		<comments>http://coyotelab.org/blog/css/css-browser-hack#comments</comments>
		<pubDate>Wed, 18 Nov 2009 19:26:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://coyotelab.org/blog/?p=105</guid>
		<description><![CDATA[Browser hack right or wrong, some developer use it for different reasons, following describes different techniques to make that approach
Inline Hacks

	.container {
		width: 200px;
		margin: 0 auto;
		height: 300px;
		background-color: #CCC;
		*background-color: #000; /* IE 7 */
		_background-color: #F00; /* IE 6 */
		display: block;
	}
	/* SAFARI */
	@media screen and (-webkit-min-device-pixel-ratio:0) {
	.container {background-color: #003366;}
	}
	/* OPERA */
	@media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0) [...]]]></description>
			<content:encoded><![CDATA[<p>Browser hack right or wrong, some developer use it for different reasons, following describes different techniques to make that approach<span id="more-105"></span></p>
<h3>Inline Hacks</h3>
<pre>
<code>	.container {
		width: 200px;
		margin: 0 auto;
		height: 300px;
		background-color: #CCC;
		*background-color: #000; /* IE 7 */
		_background-color: #F00; /* IE 6 */
		display: block;
	}
	/* SAFARI */
	@media screen and (-webkit-min-device-pixel-ratio:0) {
	.container {background-color: #003366;}
	}
	/* OPERA */
	@media all and (-webkit-min-device-pixel-ratio:10000), not all and (-webkit-min-device-pixel-ratio:0) {
	.container { background-color: #fefafe; }
	}
	/* FIREFOX VERSION 1 - 2 */
	body:empty .container { background-color: #009966; }
	/* FIREFOX ALL VERSION */
	@-moz-document url-prefix() {
	.container { background-color: #339966; }
	}</code>
</pre>
<p class="pre">Wrong approach, style sheet will not pass the validation</p>
<h3>IE Conditional Comments</h3>
<pre>
<code >	&lt;!--[if IE 6]&gt;
	&lt;style type="text/css"&gt;
	background-color: #000;
	&lt;/style&gt;
	&lt;![endif]--&gt;
	&lt;!--[if IE 7]&gt;
	&lt;style type="text/css"&gt;
	background-color: #F00;
	&lt;/style&gt;
	&lt;![endif]--&gt;
	&lt;!--[if IE 8]&gt;
	&lt;style type="text/css"&gt;
	background-color: #898989;
	&lt;/style&gt;
	&lt;![endif]--&gt;</code>
</pre>
<p class="pre">Style sheet will pass the validation. Just works on internet explorer 6, 7, 8 or older version</p>
<h3>Client side CSS browser selector</h3>
<pre>
<code>	&lt;script type="text/javascript" src="css_browser_selector.js"&gt;&lt;/script&gt;
	&lt;style type="text/css"&gt;
	.opera .container {
		background-color: #000;
	}
	.win.ff3 .container {
		background-color: #339966;
	}
	.linux.gecko .container {
		background-color: #009966;
	}
	.mac.safari3 .container {
		background-color: #CCC;
	}
	&lt;/style&gt;</code>
</pre>
<p class="pre">created by <a href="http://rafael.adm.br/" target="_blank">Rafael Lima</a> It work on any browser with javascript enabled, developer have option to choose between browser as well as operating system. Complete documentation can be find <a href="http://rafael.adm.br/css_browser_selector/" target="_blank" >here</a></p>
<h3>Sever side CSS browser selector</h3>
<pre>
<code>	&lt;?php require("css_browser_selector.php"); ?&gt;
	&lt;!DOCTYPE html&gt;

	&lt;html lang="en" class="&lt;?php echo css_browser_selector() ?&gt;"&gt;
	&lt;head&gt;
		&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"/&gt;

		&lt;title&gt;untitled&lt;/title&gt;
		&lt;style type="text/css"&gt;
		.container {width:300px; height:400px; margin:0 auto;}
		.mac.ff3 .container {
			background-color: #339966;
		}
		.mac.safari4 .container {
			background-color: #CCC;
		}
		.win.ff3 .container {
			background-color: #F00;
		}
		.linux.gecko .container {
			background-color: #009966;
		}
		&lt;/style&gt;
	&lt;/head&gt;

	&lt;body&gt;
		&lt;div class="container"&gt;&lt;/div&gt;
	&lt;/body&gt;
	&lt;/html&gt;</code>
</pre>
<p class="pre">PHP version of Rafael Lima&#8217;s CSS browser selector, Complete documentation can be find <a href="http://bastian-allgeier.de/css_browser_selector/" target="_blank" >here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://coyotelab.org/blog/css/css-browser-hack/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Word Press (CMS) SEO</title>
		<link>http://coyotelab.org/blog/wordpress/word-press-cms-seo</link>
		<comments>http://coyotelab.org/blog/wordpress/word-press-cms-seo#comments</comments>
		<pubDate>Wed, 18 Nov 2009 11:11:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://coyotelab.org/blog/?p=102</guid>
		<description><![CDATA[Using word press as CMS is popular, however adding keywords and description to each page might be confusing for some of us, following is a quick solution to apply meta tags
How to Apply SEO for Wp
There are plenty plugins which offer SEO integration for word press, tho most of them suitable for blog. What if [...]]]></description>
			<content:encoded><![CDATA[<p>Using word press as CMS is popular, however adding keywords and description to each page might be confusing for some of us, following is a quick solution to apply meta tags<span id="more-102"></span></p>
<h3>How to Apply SEO for Wp</h3>
<p>There are plenty plugins which offer SEO integration for word press, tho most of them suitable for blog. What if we like to use word press as a CMS. Here is how to do so in two quick steps:<br />
<strong>Step 1:</strong> Finding the post number for each page<br />
<strong>Step 2:</strong> Write PHP statement for each page and place them in &#8220;header.php&#8221;</p>
<h3>Finding post number</h3>
<p>Log in to wp-admin &raquo; click on pages &raquo; click on edit &raquo; hover over the page name and page number will show up at the bottom on browser task-bar</p>
<p><img src="http://coyotelab.org/blog/wp-content/uploads/2009/11/1.jpg" alt="1" title="1" width="600" height="303" class="aligncenter size-full wp-image-148" /></p>
<h3>Writing the PHP Statement</h3>
<p>Lets say we have 4 pages in our website( Home | About | Portfolio | Contact ), after finding the post number for each page:</p>
<ol>
<li>Home post id = 4</li>
<li>About post id = 2</li>
<li>Portfolio post id = 6</li>
<li>Contact post id = 8</li>
</ol>
<p>We are ready to apply them in our PHP statement:</p>
<pre>
<code>	&lt;?php if (is_page('2')) { ?&gt;
		&lt;meta name="keywords" content="keyword1 for about page, keyword2 for about page, ..." /&gt;
		&lt;meta name="description" content="description1 for about page, description2 for about page, ..." /&gt;
	&lt;?php } else if (is_page('4')) { ?&gt;
		&lt;meta name="keywords" content="keyword1 for home page, keyword2 for home page, ..." /&gt;
		&lt;meta name="description" content="description1 for home page, description2 for home page, ..." /&gt;
	&lt;?php } else if (is_page('6')) { ?&gt;
		&lt;meta name="keywords" content="keyword1 for portfolio page, keyword2 for portfolio page, ..." /&gt;
		&lt;meta name="description" content="description1 for portfolio page, description2 for portfolio page, ..." /&gt;
	&lt;?php } else { ?&gt;
		&lt;meta name="keywords" content="keyword1 for contact page, keyword2 for contact page, ..." /&gt;
		&lt;meta name="description" content="description1 for contact page, description2 for contact page, ..." /&gt;
	&lt;?php } ?&gt;</code>
</pre>
<p class="pre">We are done, place the above script in &#8220;Header.php&#8221; between </p>
<pre>
<code>&lt;head&gt;&lt;/head&gt;</code>
</pre>
<p class="pre">tags.</p>
]]></content:encoded>
			<wfw:commentRss>http://coyotelab.org/blog/wordpress/word-press-cms-seo/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
