<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>LAMP How To - Open Source At Work</title>
	
	<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>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking" /><feedburner:info uri="everythinglinux-webdevelopmentlinuxadministrationandnetworking" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>3rd party ads spacing issues in your website</title>
		<link>http://feedproxy.google.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~3/lShGo_AiwCY/</link>
		<comments>http://www.azhowto.com/2012/02/08/fixing-3rd-party-ads/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 03:07:01 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Think PHP]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=835</guid>
		<description>ads are good but can be annoying at times as they usually bring in some extra html or css that might mess with your layout. take google ads for example, it sometimes inject a fix height and width to an ad even if it doesnt pull in any ads.
so the solution is to implement a [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/WHJ6KsdwgUkC3DF9PMTlHVkBaRs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/WHJ6KsdwgUkC3DF9PMTlHVkBaRs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/WHJ6KsdwgUkC3DF9PMTlHVkBaRs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/WHJ6KsdwgUkC3DF9PMTlHVkBaRs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~4/lShGo_AiwCY" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.azhowto.com/2012/02/08/fixing-3rd-party-ads/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.azhowto.com/2012/02/08/fixing-3rd-party-ads/</feedburner:origLink></item>
		<item>
		<title>using set_transient in wordpress</title>
		<link>http://feedproxy.google.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~3/CY-wtbZLaHQ/</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>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 [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/aK94--S5R0o_xJJM4nRfsJWncZA/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/aK94--S5R0o_xJJM4nRfsJWncZA/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/aK94--S5R0o_xJJM4nRfsJWncZA/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/aK94--S5R0o_xJJM4nRfsJWncZA/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~4/CY-wtbZLaHQ" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.azhowto.com/2012/01/14/using-set_transient-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.azhowto.com/2012/01/14/using-set_transient-in-wordpress/</feedburner:origLink></item>
		<item>
		<title>PHP: usort magic</title>
		<link>http://feedproxy.google.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~3/6mzLQeLev7w/</link>
		<comments>http://www.azhowto.com/2011/12/21/php-usort-magic/#comments</comments>
		<pubDate>Wed, 21 Dec 2011 02:02:19 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Think PHP]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=829</guid>
		<description>usort is very useful when one wants to combine or manipulate the results especially received from the db.
say for example we have an array named $displayProduct and we want to sort by the associative array call &amp;#8216;order&amp;#8217;

usort($displayProduct, function($a, $b) {return ($a['order'] &lt; $b['order']) ? -1 : 1; });
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/scuAKbbqHTDP63QObRUgzynTNqQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/scuAKbbqHTDP63QObRUgzynTNqQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/scuAKbbqHTDP63QObRUgzynTNqQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/scuAKbbqHTDP63QObRUgzynTNqQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~4/6mzLQeLev7w" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.azhowto.com/2011/12/21/php-usort-magic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.azhowto.com/2011/12/21/php-usort-magic/</feedburner:origLink></item>
		<item>
		<title>quick magento tips</title>
		<link>http://feedproxy.google.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~3/XL6G2Jh_jr0/</link>
		<comments>http://www.azhowto.com/2011/12/16/quick-magento-tips/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 01:36:39 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Think PHP]]></category>
		<category><![CDATA[Think Software]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=827</guid>
		<description>// get user ip
Mage::helper('core/http')-&gt;getRemoteAddr(true));

// get user session id
Mage::getModel("core/session")-&gt;getEncryptedSessionId());

// update database config on the fly
Mage::getModel('core/config')-&gt;saveConfig('payment/worldpaydirect/merchant_id', '1111111');
Mage::getConfig()-&gt;reinit();
Mage::app()-&gt;reinitStores();
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/ohFy0baZ-F8yHUr6iJN15gH0SqY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ohFy0baZ-F8yHUr6iJN15gH0SqY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/ohFy0baZ-F8yHUr6iJN15gH0SqY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/ohFy0baZ-F8yHUr6iJN15gH0SqY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~4/XL6G2Jh_jr0" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.azhowto.com/2011/12/16/quick-magento-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.azhowto.com/2011/12/16/quick-magento-tips/</feedburner:origLink></item>
		<item>
		<title>wordpress caching and mobile theme plugins</title>
		<link>http://feedproxy.google.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~3/3nXnBIE2OpA/</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>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 -&gt; rejected [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/oA-Kxzfm938YI-hJ7rd-IAiITgI/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/oA-Kxzfm938YI-hJ7rd-IAiITgI/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/oA-Kxzfm938YI-hJ7rd-IAiITgI/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/oA-Kxzfm938YI-hJ7rd-IAiITgI/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~4/3nXnBIE2OpA" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.azhowto.com/2011/12/14/wordpress-caching-and-mobile-theme-plugins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.azhowto.com/2011/12/14/wordpress-caching-and-mobile-theme-plugins/</feedburner:origLink></item>
		<item>
		<title>clear dns cache in mac</title>
		<link>http://feedproxy.google.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~3/h2K-SgP28IM/</link>
		<comments>http://www.azhowto.com/2011/12/02/clear-dns-cache-in-mac/#comments</comments>
		<pubDate>Fri, 02 Dec 2011 06:01:29 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Think Networking]]></category>
		<category><![CDATA[Think Technology]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=816</guid>
		<description>dns might not have been cleared when changing dns entries in the /etc/file.
In mac,
dscacheutil -flushcache
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/AyAVrTug6miLXPux6XN3TFfdhh0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/AyAVrTug6miLXPux6XN3TFfdhh0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/AyAVrTug6miLXPux6XN3TFfdhh0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/AyAVrTug6miLXPux6XN3TFfdhh0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~4/h2K-SgP28IM" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.azhowto.com/2011/12/02/clear-dns-cache-in-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.azhowto.com/2011/12/02/clear-dns-cache-in-mac/</feedburner:origLink></item>
		<item>
		<title>git: finding file changed since certain date and upload a server</title>
		<link>http://feedproxy.google.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~3/vpQf51XFFY4/</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>good old bash.

git log -p --since={2011-11-01} &amp;#124; grep "diff --git" &amp;#124; awk '{print $3}' &amp;#124; sed 's/^a\///g' &amp;#124; sort -rn &amp;#124; uniq &amp;#124; while read s; do scp $s root@yourip:/server_path/$s; done;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Djwn_sa1yTXD_FaDQgBkr6Hcktc/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Djwn_sa1yTXD_FaDQgBkr6Hcktc/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Djwn_sa1yTXD_FaDQgBkr6Hcktc/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Djwn_sa1yTXD_FaDQgBkr6Hcktc/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~4/vpQf51XFFY4" height="1" width="1"/&gt;</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>
		<feedburner:origLink>http://www.azhowto.com/2011/11/23/git-finding-file-changed-since-certain-date-and-upload-a-server/</feedburner:origLink></item>
		<item>
		<title>Tips in Magento</title>
		<link>http://feedproxy.google.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~3/gwmrU7H86xE/</link>
		<comments>http://www.azhowto.com/2011/11/10/debugging-tips-in-magento/#comments</comments>
		<pubDate>Thu, 10 Nov 2011 01:45:34 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Think PHP]]></category>
		<category><![CDATA[Think Software]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=801</guid>
		<description>Debugging Tips:

1. In your .htaccess, add
SetEnv MAGE_IS_DEVELOPER_MODE
2. Under system -&gt; configuration -&gt; advanced -&gt; developer,
change current configuration scope dropdown on top left to main website, then debug -&gt; turn template hints and block name hints to on.
3. We can log errors easily. 
Mage::log($var);
4. To display popup errors,
Mage::throwException(&amp;#8220;Your debug message here&amp;#8221;);
5. To see a list of [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/OxlhE7-CRDKztOSVA6ZQpa66fWY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/OxlhE7-CRDKztOSVA6ZQpa66fWY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/OxlhE7-CRDKztOSVA6ZQpa66fWY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/OxlhE7-CRDKztOSVA6ZQpa66fWY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~4/gwmrU7H86xE" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.azhowto.com/2011/11/10/debugging-tips-in-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.azhowto.com/2011/11/10/debugging-tips-in-magento/</feedburner:origLink></item>
		<item>
		<title>Magento: Removing SSL After Installation</title>
		<link>http://feedproxy.google.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~3/xhClzYIhJok/</link>
		<comments>http://www.azhowto.com/2011/11/07/magento-removing-ssl-after-installation/#comments</comments>
		<pubDate>Mon, 07 Nov 2011 01:12:29 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Think PHP]]></category>
		<category><![CDATA[Think Software]]></category>
		<category><![CDATA[Think Technology]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=799</guid>
		<description>use magento_db;
UPDATE core_config_data SET value = 0 WHERE path=&amp;#8217;web/secure/use_in_frontend&amp;#8217;;
UPDATE core_config_data SET value = 0 WHERE path=&amp;#8217;web/secure/use_in_adminhtml&amp;#8217;; 
might need to clear the cache and do hard refresh after that.
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/RW592NCAhrueUHxgiPyQZF4H1JM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/RW592NCAhrueUHxgiPyQZF4H1JM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/RW592NCAhrueUHxgiPyQZF4H1JM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/RW592NCAhrueUHxgiPyQZF4H1JM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~4/xhClzYIhJok" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.azhowto.com/2011/11/07/magento-removing-ssl-after-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.azhowto.com/2011/11/07/magento-removing-ssl-after-installation/</feedburner:origLink></item>
		<item>
		<title>Magento: Adding Downloadable Product To A Bundle</title>
		<link>http://feedproxy.google.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~3/M9DGqO-wK6Q/</link>
		<comments>http://www.azhowto.com/2011/11/03/magento-adding-downloadable-product-to-a-bundle/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 23:21:48 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Think PHP]]></category>
		<category><![CDATA[Think Technology]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=793</guid>
		<description>After googling for ages, I could not find an answer to bundling downloadable product, as in the downloadable product will not appear under the bundle items search section. After some tough digging, I noticed magento community version 1.6 only accepts virtual and simple product in a bundle.
the config is at app/code/core/Mage/Bundle/etc/config.xml, about line 103.
To get [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/3rB60PCDRdWd7uBV_BZKrjomITk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3rB60PCDRdWd7uBV_BZKrjomITk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/3rB60PCDRdWd7uBV_BZKrjomITk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/3rB60PCDRdWd7uBV_BZKrjomITk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~4/M9DGqO-wK6Q" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.azhowto.com/2011/11/03/magento-adding-downloadable-product-to-a-bundle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.azhowto.com/2011/11/03/magento-adding-downloadable-product-to-a-bundle/</feedburner:origLink></item>
		<item>
		<title>Turning on Mac keyboard Backlit</title>
		<link>http://feedproxy.google.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~3/dKGDzinf4Ks/</link>
		<comments>http://www.azhowto.com/2011/11/03/turning-on-mac-keyboard-backlit/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 22:41:28 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Think Technology]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=791</guid>
		<description>If you find your mac keyboard not having any backlit, try apple -&gt; system preferences -&gt; keyboard -&gt; illuminate keyboard in low light conditions. 
Then try covering your fingers over the camera, the keyboard should be lit up.
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/RdGUPE4KnnysEd5rgYglD-pb6ec/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/RdGUPE4KnnysEd5rgYglD-pb6ec/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/RdGUPE4KnnysEd5rgYglD-pb6ec/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/RdGUPE4KnnysEd5rgYglD-pb6ec/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~4/dKGDzinf4Ks" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.azhowto.com/2011/11/03/turning-on-mac-keyboard-backlit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.azhowto.com/2011/11/03/turning-on-mac-keyboard-backlit/</feedburner:origLink></item>
		<item>
		<title>playing with cat and awk</title>
		<link>http://feedproxy.google.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~3/Z8WQU4R6xCo/</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>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 &amp;#124; awk '{print $2","$1}' &gt; phpbook1.csv
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/WD1jZngDE1VHrjUfS9bSEJP0KZg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/WD1jZngDE1VHrjUfS9bSEJP0KZg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/WD1jZngDE1VHrjUfS9bSEJP0KZg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/WD1jZngDE1VHrjUfS9bSEJP0KZg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~4/Z8WQU4R6xCo" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.azhowto.com/2011/10/05/playing-with-cat-and-awk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.azhowto.com/2011/10/05/playing-with-cat-and-awk/</feedburner:origLink></item>
		<item>
		<title>Removing sensitive data from git</title>
		<link>http://feedproxy.google.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~3/NAr_X7sPVMg/</link>
		<comments>http://www.azhowto.com/2011/09/22/removing-sensitive-data-from-git/#comments</comments>
		<pubDate>Thu, 22 Sep 2011 01:58:38 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Think Linux]]></category>
		<category><![CDATA[Think Software]]></category>
		<category><![CDATA[Think Technology]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=781</guid>
		<description>suppose one accidentally commited a file with sensitive data ages ago, others could actually retrieve the passwd easily since git keeps a history of the changes. So the idea is to remove the file from git altogether with file changed history, then recommit the affected file (without sensitive data this time) again. 
do a git [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/0JQMD7y9av3DEt0OU3h1qn1P0xg/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0JQMD7y9av3DEt0OU3h1qn1P0xg/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/0JQMD7y9av3DEt0OU3h1qn1P0xg/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0JQMD7y9av3DEt0OU3h1qn1P0xg/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~4/NAr_X7sPVMg" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.azhowto.com/2011/09/22/removing-sensitive-data-from-git/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.azhowto.com/2011/09/22/removing-sensitive-data-from-git/</feedburner:origLink></item>
		<item>
		<title>vbulletin: getting user ip behind a proxy</title>
		<link>http://feedproxy.google.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~3/j_K8PRjgkMs/</link>
		<comments>http://www.azhowto.com/2011/09/06/vbulletin-getting-user-ip-behind-a-proxy/#comments</comments>
		<pubDate>Tue, 06 Sep 2011 02:10:49 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Think PHP]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=779</guid>
		<description>if vbulletin is behind a proxy, the ip of the user would be the ip of the proxy server instead of the ip of the user. Instead of hacking the includes/class_core.php file we can install the runkit extension, ie http://www.php.net/manual/en/runkit.installation.php
then create a plugin consisting of the following:

$vbulletin-&gt;ipaddress = $vbulletin-&gt;alt_ip;
runkit_constant_redefine('IPADDRESS', $vbulletin-&gt;ipaddress);
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/_bCKRNig16bQCoi9n1oUouCM7us/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_bCKRNig16bQCoi9n1oUouCM7us/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/_bCKRNig16bQCoi9n1oUouCM7us/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/_bCKRNig16bQCoi9n1oUouCM7us/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~4/j_K8PRjgkMs" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.azhowto.com/2011/09/06/vbulletin-getting-user-ip-behind-a-proxy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.azhowto.com/2011/09/06/vbulletin-getting-user-ip-behind-a-proxy/</feedburner:origLink></item>
		<item>
		<title>change primary domain name in wordpress</title>
		<link>http://feedproxy.google.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~3/oO9kQ51gxNU/</link>
		<comments>http://www.azhowto.com/2011/09/01/change-primary-domain-name-in-wordpress/#comments</comments>
		<pubDate>Thu, 01 Sep 2011 00:58:49 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Think PHP]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=776</guid>
		<description>sometimes it may be necessary to change the domain name of your wordpress blog. Instead of reinstalling wordpress, we can modify the current database to accomodate the changes. run the following query:
Back up your db. then

use wordpress_db;
update wp_site set domain='newdomain.com';
update wp_blogs set domain='newdomain.com';
update wp_options SET option_value = 'http://newdomain.com' WHERE wp_options.option_id =1;
update wp_options SET option_value = [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/KI52Z9cOMESUNWa8JQ4rsWWmDu8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KI52Z9cOMESUNWa8JQ4rsWWmDu8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/KI52Z9cOMESUNWa8JQ4rsWWmDu8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/KI52Z9cOMESUNWa8JQ4rsWWmDu8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~4/oO9kQ51gxNU" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.azhowto.com/2011/09/01/change-primary-domain-name-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.azhowto.com/2011/09/01/change-primary-domain-name-in-wordpress/</feedburner:origLink></item>
		<item>
		<title>Mac nvrm crashing</title>
		<link>http://feedproxy.google.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~3/txIjcYo6h-0/</link>
		<comments>http://www.azhowto.com/2011/08/19/mac-nvrm-crashing/#comments</comments>
		<pubDate>Fri, 19 Aug 2011 03:38:33 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Think Technology]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=774</guid>
		<description>Many people who bought macs in 2010 are experiencing random crashes with NVRM error. After a bit of digging, the problem could be drilled down into the nvidia card for the 2010 batch of  macs. If you are using Nvidia Geforce GT 330M, you might be a victim as well.
&amp;#8220;A number of people with [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/67gw9bvpfpDbBDUf6Gh-jQ6vin4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/67gw9bvpfpDbBDUf6Gh-jQ6vin4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/67gw9bvpfpDbBDUf6Gh-jQ6vin4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/67gw9bvpfpDbBDUf6Gh-jQ6vin4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~4/txIjcYo6h-0" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.azhowto.com/2011/08/19/mac-nvrm-crashing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.azhowto.com/2011/08/19/mac-nvrm-crashing/</feedburner:origLink></item>
		<item>
		<title>Git Submodule By Example</title>
		<link>http://feedproxy.google.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~3/I1uLGEQakYA/</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>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&amp;#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 [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/iqtyN5hNSA-6WD1MIcVO7ja9vc0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/iqtyN5hNSA-6WD1MIcVO7ja9vc0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/iqtyN5hNSA-6WD1MIcVO7ja9vc0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/iqtyN5hNSA-6WD1MIcVO7ja9vc0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~4/I1uLGEQakYA" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.azhowto.com/2011/08/02/git-submodule-by-example/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.azhowto.com/2011/08/02/git-submodule-by-example/</feedburner:origLink></item>
		<item>
		<title>simple function to truncate string to closest word</title>
		<link>http://feedproxy.google.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~3/bojfcZvlYN4/</link>
		<comments>http://www.azhowto.com/2011/06/02/simple-function-to-truncate-string-to-closest-word/#comments</comments>
		<pubDate>Thu, 02 Jun 2011 05:31:21 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Think PHP]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=768</guid>
		<description>as the title implies&amp;#8230; this is in wordpress though. preg_replace is the trick here.
function trim_excerpt() {
$text = get_the_excerpt();
$limit = 200;
if (strlen($text) &amp;#62; $limit) {
$text =  preg_replace('/\s+?(\S+)?$/', '', substr($text, 0, $limit)).'... ';
}
return $text;
}

add_filter("the_excerpt", "trim_excerpt");
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/sTrhClHpndCUnwxK0lwPJHBVSRM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sTrhClHpndCUnwxK0lwPJHBVSRM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/sTrhClHpndCUnwxK0lwPJHBVSRM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/sTrhClHpndCUnwxK0lwPJHBVSRM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~4/bojfcZvlYN4" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.azhowto.com/2011/06/02/simple-function-to-truncate-string-to-closest-word/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.azhowto.com/2011/06/02/simple-function-to-truncate-string-to-closest-word/</feedburner:origLink></item>
		<item>
		<title>compare file changed in different directories</title>
		<link>http://feedproxy.google.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~3/7SdMNTAU_Is/</link>
		<comments>http://www.azhowto.com/2011/05/24/compare-file-changed-in-different-directories/#comments</comments>
		<pubDate>Tue, 24 May 2011 23:02:27 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Think Linux]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=766</guid>
		<description>it might be useful to compare different directories for file changed. the unix diff command rocks.
for example, this command compares 2 directories, ie blogs and blogs.bak recursively, output only the files changed and ignore any files named .git
diff -qr -x .git blogs blogs.bak
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/nu1A6xim5g1TiWAaQTRhlt36tZ8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/nu1A6xim5g1TiWAaQTRhlt36tZ8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/nu1A6xim5g1TiWAaQTRhlt36tZ8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/nu1A6xim5g1TiWAaQTRhlt36tZ8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~4/7SdMNTAU_Is" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.azhowto.com/2011/05/24/compare-file-changed-in-different-directories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.azhowto.com/2011/05/24/compare-file-changed-in-different-directories/</feedburner:origLink></item>
		<item>
		<title>Tips on rebuilding post cache in vbulletin</title>
		<link>http://feedproxy.google.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~3/XFuK3Bw-JHo/</link>
		<comments>http://www.azhowto.com/2011/03/08/tips-on-rebuilding-post-cache-in-vbulletin/#comments</comments>
		<pubDate>Tue, 08 Mar 2011 02:10:49 +0000</pubDate>
		<dc:creator>bpeh</dc:creator>
				<category><![CDATA[Think PHP]]></category>
		<category><![CDATA[vbulletin]]></category>

		<guid isPermaLink="false">http://www.azhowto.com/?p=763</guid>
		<description>Some plugins may modify the content of the forum post upon saving or displaying. Updating the post cache under vbulletin admin -&gt; maintenance would not take that into consideration. The best way to update the post cache is to let it rebuilt itself when the page is being requested. To do that, we just need [...]
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/GN-Mr-TrSzizGP5BZnCt4nqkwCk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GN-Mr-TrSzizGP5BZnCt4nqkwCk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/GN-Mr-TrSzizGP5BZnCt4nqkwCk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/GN-Mr-TrSzizGP5BZnCt4nqkwCk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/EverythingLinux-WebDevelopmentLinuxAdministrationAndNetworking/~4/XFuK3Bw-JHo" height="1" width="1"/&gt;</description>
		<wfw:commentRss>http://www.azhowto.com/2011/03/08/tips-on-rebuilding-post-cache-in-vbulletin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.azhowto.com/2011/03/08/tips-on-rebuilding-post-cache-in-vbulletin/</feedburner:origLink></item>
	</channel>
</rss>

