<?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>LAMP How To - Open Source At Work &#187; Blog</title>
	<atom:link href="http://www.azhowto.com/category/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.azhowto.com</link>
	<description>Only Passion Matters</description>
	<lastBuildDate>Wed, 08 Feb 2012 03:07:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>using set_transient in wordpress</title>
		<link>http://www.azhowto.com/2012/01/14/using-set_transient-in-wordpress/</link>
		<comments>http://www.azhowto.com/2012/01/14/using-set_transient-in-wordpress/#comments</comments>
		<pubDate>Sat, 14 Jan 2012 11:54:05 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Think PHP]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=832</guid>
		<description><![CDATA[set_transient is an excellent caching mechanism in wordpress. However one thing to note is that it depends on the caching plugin that is installed. So for example, if the plugin caching mechanism is memcache, the cache will be stored in memcache instead of in the db. Hence clearing the memcache from the plugin will clear [...]]]></description>
		<wfw:commentRss>http://www.azhowto.com/2012/01/14/using-set_transient-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress caching and mobile theme plugins</title>
		<link>http://www.azhowto.com/2011/12/14/wordpress-caching-and-mobile-theme-plugins/</link>
		<comments>http://www.azhowto.com/2011/12/14/wordpress-caching-and-mobile-theme-plugins/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 00:14:47 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Think PHP]]></category>
		<category><![CDATA[Think Software]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=819</guid>
		<description><![CDATA[when using caching plugin such as w3tc in wordpress, it will try to cache the mobile version as well and there could be a possibility that mobile users might see the desktop version and vice versa. So the idea is to disable the caching plugin for mobile agents:
if using w3tc, under page cache -> rejected [...]]]></description>
		<wfw:commentRss>http://www.azhowto.com/2011/12/14/wordpress-caching-and-mobile-theme-plugins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>git: finding file changed since certain date and upload a server</title>
		<link>http://www.azhowto.com/2011/11/23/git-finding-file-changed-since-certain-date-and-upload-a-server/</link>
		<comments>http://www.azhowto.com/2011/11/23/git-finding-file-changed-since-certain-date-and-upload-a-server/#comments</comments>
		<pubDate>Wed, 23 Nov 2011 00:57:23 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Think Technology]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=812</guid>
		<description><![CDATA[good old bash.

git log -p --since={2011-11-01} &#124; grep "diff --git" &#124; awk '{print $3}' &#124; sed 's/^a\///g' &#124; sort -rn &#124; uniq &#124; while read s; do scp $s root@yourip:/server_path/$s; done;

]]></description>
		<wfw:commentRss>http://www.azhowto.com/2011/11/23/git-finding-file-changed-since-certain-date-and-upload-a-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>playing with cat and awk</title>
		<link>http://www.azhowto.com/2011/10/05/playing-with-cat-and-awk/</link>
		<comments>http://www.azhowto.com/2011/10/05/playing-with-cat-and-awk/#comments</comments>
		<pubDate>Wed, 05 Oct 2011 05:46:10 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=788</guid>
		<description><![CDATA[cat can print out line number and awk lets you format it. This combo is excellent to manipulate files
creating a csv for eg.

cat -n phpbook.csv &#124; awk '{print $2","$1}' > phpbook1.csv

]]></description>
		<wfw:commentRss>http://www.azhowto.com/2011/10/05/playing-with-cat-and-awk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Git Submodule By Example</title>
		<link>http://www.azhowto.com/2011/08/02/git-submodule-by-example/</link>
		<comments>http://www.azhowto.com/2011/08/02/git-submodule-by-example/#comments</comments>
		<pubDate>Tue, 02 Aug 2011 03:03:12 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[git]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/2011/08/02/git-submodule-by-example/</guid>
		<description><![CDATA[If you have been working with version control system for a while, you would know or speculated about the possibility of including references from other projects into  your project. From a programmer&#8217;s point of view, this feature is useful especially when you need to include code libraries owned by someone else or common header/footer [...]]]></description>
		<wfw:commentRss>http://www.azhowto.com/2011/08/02/git-submodule-by-example/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>sqlite3: undefined symbol: sqlite3_config</title>
		<link>http://www.azhowto.com/2011/02/17/sqlite3-undefined-symbol-sqlite3_config/</link>
		<comments>http://www.azhowto.com/2011/02/17/sqlite3-undefined-symbol-sqlite3_config/#comments</comments>
		<pubDate>Thu, 17 Feb 2011 01:29:22 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=755</guid>
		<description><![CDATA[this is an error you will see if sqlite3 is not compiled properly.
download the latest sqlite from sqlite.org and extract it.
run this line first:
export LD_RUN_PATH=/usr/local/lib
then 
./configure
make
make install
]]></description>
		<wfw:commentRss>http://www.azhowto.com/2011/02/17/sqlite3-undefined-symbol-sqlite3_config/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Allowing wordpress to host multiple websites</title>
		<link>http://www.azhowto.com/2011/01/19/allowing-wordpress-to-host-multiple-websites/</link>
		<comments>http://www.azhowto.com/2011/01/19/allowing-wordpress-to-host-multiple-websites/#comments</comments>
		<pubDate>Wed, 19 Jan 2011 09:35:05 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Think PHP]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=739</guid>
		<description><![CDATA[1. download or upgrade to the latest version of wordpress.
2. In wp-config.php, add this line above the &#8220;happy blogging&#8221; comment

define('WP_ALLOW_MULTISITE', true);
/* That's all, stop editing! Happy blogging. */

3. Now login and to to admin panel via /wp-admin and go to toos -&#62; network and follow the instructions from there. You will be asked to logout [...]]]></description>
		<wfw:commentRss>http://www.azhowto.com/2011/01/19/allowing-wordpress-to-host-multiple-websites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Basic GIT tutorial: centralised and decentralised model</title>
		<link>http://www.azhowto.com/2010/09/01/basicgit-tutorial-centralised-and-decentralised-model/</link>
		<comments>http://www.azhowto.com/2010/09/01/basicgit-tutorial-centralised-and-decentralised-model/#comments</comments>
		<pubDate>Wed, 01 Sep 2010 01:49:34 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Think Software]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=681</guid>
		<description><![CDATA[Git is fast becoming the most popular versioning control system in the market today. It is open sourced and offers a number of significant advantages over svn. SVN will probably still be around for a while because a lot of people and software are still dependent on it or don&#8217;t see a need for change. [...]]]></description>
		<wfw:commentRss>http://www.azhowto.com/2010/09/01/basicgit-tutorial-centralised-and-decentralised-model/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>php curl proxy settings</title>
		<link>http://www.azhowto.com/2010/07/29/php-curl-proxy-settings/</link>
		<comments>http://www.azhowto.com/2010/07/29/php-curl-proxy-settings/#comments</comments>
		<pubDate>Thu, 29 Jul 2010 01:40:58 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=673</guid>
		<description><![CDATA[It can be daunting to get proxy to work in curl. If it is not working for you, try changing the auth to ntlm.
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, &#8216;http://yoururl.com&#8217;);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch,CURLOPT_PROXY , &#8220;your_proxy_ip:proxy_port&#8221;);
curl_setopt($ch, CURLOPT_PROXYAUTH, CURLAUTH_NTLM);
curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_HTTP);
curl_setopt($ch,CURLOPT_PROXYUSERPWD,&#8221;user:pass&#8221;);
curl_exec ($ch);
if(curl_errno($ch))
{
echo &#8216;Curl error: &#8216; . curl_error($ch);
exit;
}
curl_close ($ch);
]]></description>
		<wfw:commentRss>http://www.azhowto.com/2010/07/29/php-curl-proxy-settings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>synchronising system clock manually</title>
		<link>http://www.azhowto.com/2010/03/25/synchronising-system-clock-manually/</link>
		<comments>http://www.azhowto.com/2010/03/25/synchronising-system-clock-manually/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 04:38:28 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Think Linux]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=641</guid>
		<description><![CDATA[if there is a need to synchronise the system clock manually, it can be a straight forward thing

service ntpd stop
ntpdate 0.rhel.pool.ntp.org
service ntpd start

some of the files of interest:

/etc/sysconfig/clock
/usr/share/zoneinfo

]]></description>
		<wfw:commentRss>http://www.azhowto.com/2010/03/25/synchronising-system-clock-manually/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Getting or reverting back to an old version in svn</title>
		<link>http://www.azhowto.com/2010/03/18/getting-or-reverting-back-to-an-old-version-in-svn/</link>
		<comments>http://www.azhowto.com/2010/03/18/getting-or-reverting-back-to-an-old-version-in-svn/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 01:07:36 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=635</guid>
		<description><![CDATA[people might think svn revert is the answer but it is actually not. To check out an old version of svn,
svn co -r xxx url
where -r is whatever version to checkout. To update the existing version to an old version
svn update -r xxx url
]]></description>
		<wfw:commentRss>http://www.azhowto.com/2010/03/18/getting-or-reverting-back-to-an-old-version-in-svn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing phpunit</title>
		<link>http://www.azhowto.com/2010/02/27/installing-phpuni/</link>
		<comments>http://www.azhowto.com/2010/02/27/installing-phpuni/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 06:57:41 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=631</guid>
		<description><![CDATA[this is very simple, firstly install pear
http://www.azhowto.com/2009/08/14/php-manual-install-of-pear/
then from the pear manual, ie http://www.phpunit.de/manual/3.4/en/installation.html

pear channel-discover pear.phpunit.de
pear channel-discover pear.symfony-project.com
pear install --alldeps phpunit/PHPUnit

getting the latest phpunit will need php 5.2 and above. To get php 5.2,
see http://www.azhowto.com/2009/08/07/getting-new-packages-from-centos-dev-repo/
]]></description>
		<wfw:commentRss>http://www.azhowto.com/2010/02/27/installing-phpuni/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Starting and stopping vmware in linux command line</title>
		<link>http://www.azhowto.com/2010/01/20/starting-and-stopping-vmware-in-linux-command-line/</link>
		<comments>http://www.azhowto.com/2010/01/20/starting-and-stopping-vmware-in-linux-command-line/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 23:55:57 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=617</guid>
		<description><![CDATA[One advantage of using command line is that you can start and stop the VM without logging into the web console. I am using vmware server 2.0. I believe it should work the same for future versions. 
To start and stop certain instance, say ares,

vmrun -T server -h 'https://10.2.115.21:8333/sdk' -u root -p 'yourpass' start "[standard] [...]]]></description>
		<wfw:commentRss>http://www.azhowto.com/2010/01/20/starting-and-stopping-vmware-in-linux-command-line/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>using variables in cron</title>
		<link>http://www.azhowto.com/2010/01/20/using-variables-in-cron/</link>
		<comments>http://www.azhowto.com/2010/01/20/using-variables-in-cron/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 23:49:06 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[cron]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=615</guid>
		<description><![CDATA[unlike normal bash scripts, you can&#8217;t really use the back ticks to execute a certain command like so

DATE=`date +%F`

In crontab, you have to use the $(), eg

$(date +\%F)

]]></description>
		<wfw:commentRss>http://www.azhowto.com/2010/01/20/using-variables-in-cron/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>fsck on lvm partition</title>
		<link>http://www.azhowto.com/2010/01/20/fsck-on-lvm-partition/</link>
		<comments>http://www.azhowto.com/2010/01/20/fsck-on-lvm-partition/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 20:52:25 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[lvm]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=613</guid>
		<description><![CDATA[fsck on lvm can be a bit tricky. Like a the normal process, the partition needs to be umounted and we can boot up using the rescue cd or in emergency mode. Normally, you

fsck /dev/sda1

if the partition is lvm, you need to activate the lvm first like so

vgchange --ignorelockingfailure -ay
lvscan --ignorelockingfailure (this command should now [...]]]></description>
		<wfw:commentRss>http://www.azhowto.com/2010/01/20/fsck-on-lvm-partition/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SVN commits fail- Can&#8217;t get exclusive lock</title>
		<link>http://www.azhowto.com/2010/01/15/svn-commits-fail-cant-get-exclusive-lock/</link>
		<comments>http://www.azhowto.com/2010/01/15/svn-commits-fail-cant-get-exclusive-lock/#comments</comments>
		<pubDate>Fri, 15 Jan 2010 03:36:13 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[nfs]]></category>
		<category><![CDATA[svn]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=611</guid>
		<description><![CDATA[this could be due to many reasons. If your data is in a nfs mounted drive, restart nfs and it should fix the problem.
]]></description>
		<wfw:commentRss>http://www.azhowto.com/2010/01/15/svn-commits-fail-cant-get-exclusive-lock/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>php coding standard and tips</title>
		<link>http://www.azhowto.com/2010/01/10/php-coding-standard-and-tips/</link>
		<comments>http://www.azhowto.com/2010/01/10/php-coding-standard-and-tips/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 10:53:32 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Think PHP]]></category>
		<category><![CDATA[zend framework]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=607</guid>
		<description><![CDATA[It is important that developers follow a certain coding standard to help make the code readable and maintainable. These are what I gathered so far as the best coding practice:
File formatting:
- Never close php tag when using zend framework, ie, &#8220;?&#62;&#8221;
- Use 4 space indentation as tab spacing. It is possible to configure this in [...]]]></description>
		<wfw:commentRss>http://www.azhowto.com/2010/01/10/php-coding-standard-and-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Up A Secure Linux Authentication Server Quickly (LDAP + TLS + SAMBA)</title>
		<link>http://www.azhowto.com/2009/09/18/setting-up-a-secure-linux-authentication-server-quickly-ldap-tls-samba/</link>
		<comments>http://www.azhowto.com/2009/09/18/setting-up-a-secure-linux-authentication-server-quickly-ldap-tls-samba/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 05:40:22 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Think Linux]]></category>
		<category><![CDATA[Think Networking]]></category>
		<category><![CDATA[Think Technology]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[tls]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=552</guid>
		<description><![CDATA[Just like microsoft active directory, having a centralised authentication server in linux is important especially when you have more than one server or service to manage. Just imagine each service (ssh, samba, httpd&#8230;etc) has its own user database&#8230; Sooner or later, you will find managing users very difficult. A simple task like deleting a user [...]]]></description>
		<wfw:commentRss>http://www.azhowto.com/2009/09/18/setting-up-a-secure-linux-authentication-server-quickly-ldap-tls-samba/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Bash: Simple command to mass replace content in directory</title>
		<link>http://www.azhowto.com/2009/09/02/bash-simple-command-to-mass-replace-content-in-directory/</link>
		<comments>http://www.azhowto.com/2009/09/02/bash-simple-command-to-mass-replace-content-in-directory/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 06:00:19 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[sed]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=544</guid>
		<description><![CDATA[Imagine that we need to mass change the content in certain directory. A combination of find and sed can save the day. It is very to do it in perl as well.

find /your/dir -type f &#124; xargs sed -i 's/old/new/g'

]]></description>
		<wfw:commentRss>http://www.azhowto.com/2009/09/02/bash-simple-command-to-mass-replace-content-in-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>extending vmware harddisk</title>
		<link>http://www.azhowto.com/2009/08/31/extending-vmware-harddisk/</link>
		<comments>http://www.azhowto.com/2009/08/31/extending-vmware-harddisk/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 01:26:59 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Think Linux]]></category>
		<category><![CDATA[Think Software]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=541</guid>
		<description><![CDATA[1. shutdown vmware either from browser or console.
2. checkout the vmware-vdiskmanager command. The example there tells everything.
]]></description>
		<wfw:commentRss>http://www.azhowto.com/2009/08/31/extending-vmware-harddisk/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
