<?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>Tech Milieu &#187; Wordpress</title>
	<atom:link href="http://techmilieu.com/category/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://techmilieu.com</link>
	<description>It is about latest technology news, tutorials, tips &#38; tricks, useful techniques, cool applications, etc. Thus, it is a place for bloggers, designers, developers &#38; all other computer literate users.</description>
	<lastBuildDate>Mon, 24 May 2010 15:28:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Install WordPress In Your Local Computer With XAMPP</title>
		<link>http://techmilieu.com/install-wordpress-in-your-local-computer-with-xampp</link>
		<comments>http://techmilieu.com/install-wordpress-in-your-local-computer-with-xampp#comments</comments>
		<pubDate>Fri, 02 Apr 2010 08:29:08 +0000</pubDate>
		<dc:creator>Philip Ze</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Tips]]></category>

		<guid isPermaLink="false">http://techmilieu.com/?p=168</guid>
		<description><![CDATA[How to set up Wordpress on your local computer? It is very straight forward, all you need is the Wordpress itself &#038; XAMPP as a host server, most importantly contains Apache, MySQL &#038; PHP, those three are the one we need.]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve been using WordPress to power your blog, you’d probably know that it is very useful to have a copy of WordPress installed in your local computer. It allows you to post a draft copy of your article offline, test &#038; modify your theme or plugins locally before upload to the server.<span id="more-168"></span></p>
<p>Setting up WordPress on your local computer is straight forward. All you need is the <b>WordPress</b> itself &#038; <b>XAMPP</b> as a host server. In this article, I show you how to install WordPress on your local computer with XAMPP.</p>

<h3><span class="hNum">1</span> Download &#038; Install XAMPP Lite</h3>
<p>First, you need to <a href="http://www.apachefriends.org/en/xampp-windows.html#646" target="_blank" rel="nofollow">download &#038; install XAMPP Lite</a>. <i>(I recommend the lite version because there are some applications that bundled with the full version which you are hardly need them for normal work. XAMPP Lite is most importantly contains Apache, MySQL &#038; PHP, those three are the one we need.)</i></p>
<p>Be sure to download the <b>self-extracting archive</b>, it is the easiest way to install XAMPP. Double click the EXE file, choose a directory and click &#8220;Install&#8221;. </p>
<p><img src="http://techmilieu.com/wp-content/uploads/2010/03/04-xampp-wordpress-01.jpg" alt="Setup XAMPP Lite" /></p>
<p>Once the installation is completed, double click the “XAMPP Control Panel” icon to launch XAMPP Control Panel. Next, click “Apache” &#038; “MySql” start buttons to get both applications running.</p>
<p><img src="http://techmilieu.com/wp-content/uploads/2010/03/04-xampp-wordpress-02.jpg" alt="XAMPP Lite Control Panel" /><br/><img src="http://techmilieu.com/wp-content/uploads/2010/03/04-xampp-wordpress-03.jpg" alt="XAMPP Lite Running" /></p>
<p>Now, you need to check whether your Apache local server is running properly. Go to your browser, in the address bar type <code><b>http://localhost</b></code> &#038; press enter. If the XAMPP is installed correctly, you will see the default “splash” page as illustrated bellow. Select a language to enter the welcome page.</p>
<div class="bigphoto" style="margin:15px 0 20px 0;width:615px"><img src="http://techmilieu.com/wp-content/uploads/2010/03/04-xampp-wordpress-04.jpg" alt="XAMPP Lite splash page" /></div>
<div class="bigphoto" style="margin:15px 0 20px 0;width:615px"><img src="http://techmilieu.com/wp-content/uploads/2010/03/04-xampp-wordpress-05.jpg" alt="XAMPP Lite welcome page" /></div>
<h3><span class="hNum">2</span> Create The Database For WordPress</h3>
<p>Your Apache server &#038; MySql database are now running. Now we need to create a database for your WordPress. Under the Tools menu on the welcome page, click “phpMyAdmin”. Enter “MyWordpress” into the “Create New Database” textbox, make sure “utf8_unicode_ci” is selected &#038; press “Create”.</p>
<div class="bigphoto" style="margin:15px 0 20px 0;width:615px"><img src="http://techmilieu.com/wp-content/uploads/2010/03/04-xampp-wordpress-06.jpg" alt="Create The Database For WordPress" /></div>
<h3><span class="hNum">3</span>  Download &#038; Install WordPress</h3>
<p>That&#8217;s all for XMAPP. Now, download the latest version of WordPress <a href="http://wordpress.org/" target="_blank" rel="nofollow">http://wordpress.org/</a> <i>(zip file)</i>. Extract the WordPress to a new folder <i>(name it as MyWordpress)</i> under the “htdocs” folder where “XMAPP” is installed <i>(default should be at <code>C:\xampplite\htdocs\MyWordpress</code>)</i>.</p>
<p>Under the folder, rename the file <code>wp-config-sample.php</code> to <code>wp-config.php</code>. Open &#038; edit the file in Notepad, locate &#038; change the following lines, make sure it is exactly the same as illustrated <i>(database name is &#8216;MyWordpress&#8217;, database username is &#8216;root&#8217;, password is &#8221; &#038; hostname is &#8216;localhost&#8217;)</i>.</p>
<pre style="width:613px;clear:both;margin-bottom:10px;">
/** The name of the database for WordPress */
define('DB_NAME', 'MyWordpress');

/** MySQL database username */
define('DB_USER', 'root');

/** MySQL database password */
define('DB_PASSWORD', '');

/** MySQL hostname */
define('DB_HOST', 'localhost');
</pre>
<p>Again, go to your browser, in the address bar type <code>http://localhost/wordpress/</code> &#038; press enter. Key in a Blog Title, Your E-mail &#038; press &#8220;Install WordPress&#8221;.</p>
<div class="bigphoto" style="margin:15px 0 20px 0;width:615px"><img src="http://techmilieu.com/wp-content/uploads/2010/03/04-xampp-wordpress-07.jpg" alt="WordPress is ready to use" /></div>
<p>That&#8217;s it, your WordPress is now in your locally on your computer &#038; ready to be used . <b>Have fun !</b></p>
]]></content:encoded>
			<wfw:commentRss>http://techmilieu.com/install-wordpress-in-your-local-computer-with-xampp/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Quick Adsense</title>
		<link>http://techmilieu.com/quick-adsense</link>
		<comments>http://techmilieu.com/quick-adsense#comments</comments>
		<pubDate>Wed, 16 Sep 2009 15:12:52 +0000</pubDate>
		<dc:creator>Philip Ze</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[Ads]]></category>
		<category><![CDATA[Adsense]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[Widget]]></category>

		<guid isPermaLink="false">http://techmilieu.com/?p=3</guid>
		<description><![CDATA[Quick Adsense is an Ads management Wordpress plugin. It offers a quicker &#038; flexible way to insert Adsense or any Ads code into a blog post. Besides, it can randomly place the Ads anywhere within a post. It comes with a simple setting page, and it does not overwhelm you with complicated customizable options.]]></description>
			<content:encoded><![CDATA[<p><strong>Quick Adsense</strong> is an Ads management WordPress plugin. It offers a quicker &amp; flexible way to insert Adsense or any Ads code into a blog post. Besides, it can randomly place the Ads anywhere within a post. It comes with a simple setting page, and it does not overwhelm you with complicated customizable options. <span id="more-3"></span></p>
<p>In general, placing Adsense randomly within a post is a good way to experiment a variety of ads formats &amp; placements besides <a href="http://techmilieu.com/adsense-format-and-position-optimization">optimizing your Adsense</a>. If you have many regular visitors who frequently revisit your blog, the <strong>randomization</strong> will likely catch their attention.</p>
<h3>Latest Version: 1.6</h3>
<p>Here are some <strong>features</strong> that come with this plugin:</p>
<ul>
<li>Absolutely NO author revenue reward or revenue sharing from your Adsense or that kind of features.</li>
<li>Default Ads positioning: Assign Ads at the beginning of post, assign Ads at the end of post, assign Ads after certain paragraphs &#038; assign Ads after certain images.</li>
<li>Flexible Ads placement, insert Ads specifically or randomly anywhere within a post.</li>
<li>Simple configuration interface, requires no coding knowledge: Just copy and paste AdSense code, tick &amp; select options, the plugin will then do the rest for you.</li>
<li>Support any Ads code, not limited to Adsense code only.</li>
<li>Display up to a maximum of 10 Ads on a page. Google allows publishers to place up to 3 Adsense for Content on a page. If you are using other Ads, you may display up to 10 Ads.</li>
<li>Support up to a maximum of 10 Ads codes on Sidebar Widgets.</li>
<li>Support up to a maximum of 10 Ads codes for Randomization within a post.</li>
<li>Ads placement on the fly, simply insert <code>&lt;!--Ads1--&gt;</code>, <code>&lt;!--Ads2--&gt;</code> &#8230; , <code>&lt;!--RndAds--&gt;</code>, <code>&lt;!--NoAds--&gt;</code>, <code>&lt;!--OffDef--&gt;</code> to a post to accomplish this.</li>
<li>Tags above can be inserted into a post easily via the additional Quicktag Buttons added to the HTML Edit Post SubPanel.</li>
</ul>
<p>Sign up for a <a rel="nofollow" href="http://adsense.google.com/" target="_blank">Google Adsense Account</a> to generate revenue from your blog, if you don&#8217;t have one.</p>
<p><span class="bluebutton"><a href="http://wordpress.org/extend/plugins/quick-adsense/" target="_blank" title="Download Quick Adsense at wordpress.org">Download</a></span></p>
<p><br/></p>
<h3>The Quick Overview</h3>
<p>Here are the quick overview of the plugin:</p>
<div class="imgs-txt"><img src="http://techmilieu.com/wp-content/uploads/2009/09/01-quick-adsense-1.jpg" alt="Screen shot showing the additional Quicktag Buttons added to the HTML Edit Post SubPanel" /><br />
Screen shot showing the additional Quicktag Buttons added to the HTML Edit Post SubPanel.</div>
<div class="imgs-txt"><img src="http://techmilieu.com/wp-content/uploads/2009/09/01-quick-adsense-2.jpg" alt="The Settings page from Quick Adsense plugin. There are many ways to configure your Ads display, specifically or randomly as you wish." /><br />
The Settings page from Quick Adsense plugin. There are many ways to configure your Ads display, specifically or randomly as you wish.</div>
<h3>Link To TechMilieu.com</h3>
<p>If you believe that Quick Adsense plugin is valuable to you, than a link from your blog to http://techmilieu.com/ would be highly appreciated. You can show your support by simply copy one of the HTML code below &#038; paste into your pages. This will help spread the words, thanks.</p>
<div style="font-size:10pt;padding:0 0 20px 20px">
<div><b>Text Link</b> : <a class=linkimg href="http://TechMilieu.com/">TechMilieu.com</a><br /><code>&lt;a href=&quot;http://TechMilieu.com/&quot;&gt;TechMilieu.com&lt;/a&gt;</code></div>
<div style="padding-top:5px"><b>Tiny Button</b> : <img src="http://TechMilieu.com/images/link-20x20.png" alt="Tiny Button"><br /><code>&lt;a href=&quot;http://TechMilieu.com/&quot;&gt;&lt;img src=&quot;http://TechMilieu.com/images/link-20x20.png&quot; alt=&quot;TechMilieu.com&quot;&gt;&lt;/a&gt;</code></div>
</div>

<h3>The Quick Test Drive</h3>
<p>If you have just installed the plugin, you may want to test it up. Here is an illustration that you can follow to have a feel of what Quick Adsense can do for you:</p>
<ul>
<li>Go to the Plugin setting page &amp; click the <strong>Load Default Setting</strong> link located at the bottom of the page.</li>
<li>Copy &amp; paste the following Sample Ads1, Ads2, Ads3, Ads4 codes to the Ads textbox respectively, assuming these are your Adsense codes. Do remember to save your changes:
<pre>&lt;span style="display:block;width:250px;height:250px;
  background:#eee;border:1px solid #333;
  text-align:center;font-size:10pt"&gt;
&lt;b&gt;Sample Ads1 (250x250)&lt;/b&gt;
&lt;/span&gt;</pre>
<pre>&lt;span style="display:block;width:234px;height:60px;
  background:#eee;border:1px solid #333;
  text-align:center;font-size:10pt"&gt;
&lt;b&gt;Sample Ads2 (234x60)&lt;/b&gt;
&lt;/span&gt;</pre>
<pre>&lt;span style="display:block;width:200px;height:200px;
  background:#eee;border:1px solid #333;
  text-align:center;font-size:10pt"&gt;
&lt;b&gt;Sample Ads3 (200x200)&lt;/b&gt;
&lt;/span&gt;</pre>
<pre>&lt;span style="display:block;width:120px;height:240px;
  background:#eee;border:1px solid #333;
  text-align:center;font-size:10pt"&gt;
&lt;b&gt;Sample Ads4 (120x240)&lt;/b&gt;
&lt;/span&gt;</pre>
</li>
<li>In your post, insert <strong>three</strong> <code>&lt;!--RndAds--&gt;</code> tags, anywhere within the post (somewhere in the middle is good), use the Quicktag button under the HTML Edit Post Subpanel as you wish.</li>
<li>Now, use the <strong>Preview Changes</strong> button &amp; see how the SampleAds appear in your post. <strong>Remember not to update your post</strong> as your live visitors may see this.</li>
</ul>
<h3>Some Thought About This Plugin</h3>
<p>Previously, I have written some php codes which allow me to insert Adsense to a post on the fly randomly [ posted to <a href="http://www.flexijourney.com/blog/insert-google-adsense-code-anywhere-randomly-within-your-wordpress-article/" target="_blank">here</a> &#038; <a href="http://www.flexijourney.com/blog/insert-google-adsense-code-anywhere-in-your-wordpress-article/" target="_blank">here</a> ]. The drawback of this code is that you need to modify the theme template directly for the code to work. A comment from <a href="http://www.showbizchikka.com/" target="_blank">Gossips</a> about this code has inspires me to convert the code into a plugin.</p>
<p>I decided to spend a few hours googling &amp; trying to figure out how to create a WordPress plugin. Surprisingly, I found out that writing a plugin is not as complicated as I thought.</p>
<p>Firstly, I have to decide what the plugin can do for me. I want to create a plugin which allows me to quickly insert Ads code to the post. It must be capable to be random. Using tags to triggle the Ads display is always a good choice. Also, to make it more complete, I want the Ads to be displayed on the Sidebar.</p>
<p>Next, I started to design the plugin Setting page. It took me a while to do this as I wanted it to be as simply as possible, at the same time incorporating all the relevant options. The simpler the Setting page you want it to be, the harder the coding would be.</p>
<p>I thought it was nearly finished but realized that it was just started as the developing of the plugin algorithm was head-cracking. See my entire requirement in the first place; the question is how to make the plugin functions nicely? Well, the php excellent array functions really helped me do most of the jobs. Randomization had been done with just a few lines of code.</p>
<p>I really enjoy creating this plugin. My experience is that once started, it is hard to get it stopped. Please feedback for any bug you might have found, or any suggestion you like to add. Hope this plugin which have benefited me would benefit you as well.<!--NoDate--></p>
]]></content:encoded>
			<wfw:commentRss>http://techmilieu.com/quick-adsense/feed</wfw:commentRss>
		<slash:comments>304</slash:comments>
		</item>
	</channel>
</rss>
