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

<channel>
	<title>Mio Wiki - my writing pad...</title>
	<atom:link href="http://www.miowiki.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.miowiki.com</link>
	<description>Its my wiki - Kshitij Bedi</description>
	<pubDate>Fri, 13 Aug 2010 18:17:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Twitter: What did I learn from it.</title>
		<link>http://www.miowiki.com/technologies/twitter-what-did-i-learn-from-it/</link>
		<comments>http://www.miowiki.com/technologies/twitter-what-did-i-learn-from-it/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 03:02:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Social media]]></category>

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

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

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

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

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

		<guid isPermaLink="false">http://www.miowiki.com/?p=161</guid>
		<description><![CDATA[
			
				
			
		
Twitter&#8230;. Tweets &#8230;.. funny how this has just blended into our life style these days, anyone with a computer, a laptop, an Ipad, a netbook, a phone is tweeting. Heck, they make phones that are sold based on the fact that &#8220;Hey this phone can tweet&#8221;, amazing isn&#8217;t it? That in my head is only [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.miowiki.com%2Ftechnologies%2Ftwitter-what-did-i-learn-from-it%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.miowiki.com%2Ftechnologies%2Ftwitter-what-did-i-learn-from-it%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Twitter&#8230;. Tweets &#8230;.. funny how this has just blended into our life style these days, anyone with a computer, a laptop, an Ipad, a netbook, a phone is tweeting. Heck, they make phones that are sold based on the fact that &#8220;Hey this phone can tweet&#8221;, amazing isn&#8217;t it? That in my head is only second to cars being sold based on the fact that they can integrate with an Apple MP3 player. (Oh! I am sorry, did I say MP3 player? I meant Ipod, yes that fancy music player that can play.. well mp3 music.)</p>
<p>I was one of those people who found it pretty funny that there were people out there that wanted to know what others were doing&#8230; eating&#8230;. playing&#8230;. anything. I was one of those people that enjoyed watching Conan O&#8217;brien&#8217;s Twitter tracker bit (A mockery of twitter.com which displayed senseless funny celebrity tweets) just because I used to love making fun of twitter.com until recently when I used it myself and started following it, seeing it only trend upwards. Its amazing how tightly integrated this in essence pretty basic website is these days. Businesses rely on it to get the word out, be it events or a new product launch, friends rely on it keep their friends up to date, it has single handledly changed the face of marketing, its a one stop shop to find out whats going on almost anything, anywhere in the world.</p>
<p>So I spent some time thinking about it, that how a simple website idea like twitter.com got to where it is today, what we can learn from it and apply it to our next website idea. </p>
<p>This is what I came up with.</p>
<p>A website these days</p>
<ol>
<li>must have a social element to it.</li>
<li>should be very focused and shouldn&#8217;t perform more than a function or two. (Another example of this is the recent popularity of the shopping site woot.com that sells a product a day)</li>
<li>should be easy on the eyes and easy on the mind. Seems like people have lost the thirst to learn and use, they just want to use, one may be two buttons and done!</li>
<li>Should let users share their views (wherever applicable) with others, since apparently people don&#8217;t mind standing on this new virtual soap box.</li>
<li>and finally should be available on multiple platforms, specially mobile, iphone and andriod style products.</li>
</ol>
<p>Your thoughts?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.miowiki.com/technologies/twitter-what-did-i-learn-from-it/feed/</wfw:commentRss>
		</item>
		<item>
		<title>&lt; html5 &gt; Rocks! &lt; /html5 &gt;</title>
		<link>http://www.miowiki.com/programming/html5-rocks/</link>
		<comments>http://www.miowiki.com/programming/html5-rocks/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 02:02:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[HTML]]></category>

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

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

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

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

		<guid isPermaLink="false">http://www.miowiki.com/?p=150</guid>
		<description><![CDATA[
			
				
			
		
HTML5 will be the new standard for this new and hyper active world wide web. This new standard will incorporate features like video playback, drag-and-drop that have been previously dependent on third-party browser plug-ins such as Flash (Adobe and Microsoft) and Google Gears.
HTML5 introduces a number of new elements and attributes that are almost trivial [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.miowiki.com%2Fprogramming%2Fhtml5-rocks%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.miowiki.com%2Fprogramming%2Fhtml5-rocks%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>HTML5 will be the new standard for this new and hyper active world wide web. This new standard will incorporate features like video playback, drag-and-drop that have been previously dependent on third-party browser plug-ins such as Flash (Adobe and Microsoft) and Google Gears.</p>
<p>HTML5 introduces a number of new elements and attributes that are almost trivial on modern web 20. websites. Some of them are being semantic replacements for common uses of generic block (&lt;div&gt;) and inline (&lt;span&gt;) elements, for example &lt;nav&gt; (website navigation block) and &lt;footer&gt; (usually referring to bottom of web page or to last lines of html code). Other elements provide new functionality through a standardized interface, such as the multimedia elements &lt;audio&gt; and &lt;video&gt;. </p>
<p>The HTML5 syntax is no longer based on SGML despite the similarity of its markup. It has, however, been designed to be backward compatible with common parsing of older versions of HTML. It comes with a new introductory line that looks like an SGML document type declaration, &lt;!DOCTYPE html&gt;, which enables standards-compliant rendering in all browsers that use &#8220;DOCTYPE sniffing&#8221;.<br />
HTML5 also incorporates Web Forms 2.0, another WHATWG specification.</p>
<p>Read more:<a href="http://diveintohtml5.org">http://diveintohtml5.org</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.miowiki.com/programming/html5-rocks/feed/</wfw:commentRss>
		</item>
		<item>
		<title>The Steven Slater guy &#8230;. like George Costanza?</title>
		<link>http://www.miowiki.com/general/the-steven-slater-guy-like-george-costanza/</link>
		<comments>http://www.miowiki.com/general/the-steven-slater-guy-like-george-costanza/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 15:27:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Fun]]></category>

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

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

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

		<category><![CDATA[steven slater]]></category>

		<guid isPermaLink="false">http://www.miowiki.com/?p=130</guid>
		<description><![CDATA[
			
				
			
		
So yes I am a &#8220;Seinfeld&#8221; fan (Not seinfeld the comedian, but seinfeld the show), a pretty hard core one I would say. I have probably watched so much seinfeld in my life that most of the episodes and punch lines are actually embedded into my head. I hardly go past a day where I [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.miowiki.com%2Fgeneral%2Fthe-steven-slater-guy-like-george-costanza%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.miowiki.com%2Fgeneral%2Fthe-steven-slater-guy-like-george-costanza%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>So yes I am a &#8220;Seinfeld&#8221; fan (Not seinfeld the comedian, but seinfeld the show), a pretty hard core one I would say. I have probably watched so much seinfeld in my life that most of the episodes and punch lines are actually embedded into my head. I hardly go past a day where I am unable to link something that happens to me during the course of a day to a Seinfeld bit or I should say I am always trying to link everything that happens around me to a Seinfeld episode, ROFL.</p>
<p>So it is only natural that I do the same for popular news as well. So here I am sitting on my bed watching CNN while the news of Steven Slater the &#8220;flight attendant gone wild&#8221; was playing over and over again, and they kept saying the blahblahblah&#8230; who made a fantastic exit and it suddenly clicked again, George would fit right into this. Remember the episode &#8220;The Susie&#8221; when George wanted to go to this party and make a fantastic Entry with this girl he was dating and says &#8220;My whole life I have never made a great entrance.&#8221; and Seinfeld replies: &#8220;You&#8217;ve made some fine exits.&#8221;, haha, I am sure we can say that about Steven Slater now. </p>
<p>Is Steven Slater trying to be like George?</p>
<p><img align="left" src="http://i.dailymail.co.uk/i/pix/2010/08/10/article-1301798-0ABEB18D000005DC-528_468x474.jpg" alt="Steven Slater" width="200" /> &nbsp; <img src="http://guestofaguest.com/wp-content/uploads/2010/04/jalexander_375x375.jpg" alt="George Costanza" width="200" /></p>
<p>For all the omg tweets coming out for slater check out: <a target="blank" href="http://www.omginbd.com/slater">OMG - Steven Slater</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.miowiki.com/general/the-steven-slater-guy-like-george-costanza/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Magento multi-site install: Run a specific store view via the domain.</title>
		<link>http://www.miowiki.com/programming/magento-run-stores-via-apache-virtual-hosts/</link>
		<comments>http://www.miowiki.com/programming/magento-run-stores-via-apache-virtual-hosts/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 00:00:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Magento]]></category>

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

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

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

		<category><![CDATA[E-commerce]]></category>

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

		<guid isPermaLink="false">http://www.miowiki.com/?p=105</guid>
		<description><![CDATA[
			
				
			
		
Now ofcourse magento comes with a website or a language switcher built in, so if you have multiple store views for a single website/store, you have a nifty drop-down list on the front-end to let the user switch to a preferred language and locale. But what it doesn&#8217;t come out of the box with is [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.miowiki.com%2Fprogramming%2Fmagento-run-stores-via-apache-virtual-hosts%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.miowiki.com%2Fprogramming%2Fmagento-run-stores-via-apache-virtual-hosts%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Now ofcourse magento comes with a website or a language switcher built in, so if you have multiple store views for a single website/store, you have a nifty drop-down list on the front-end to let the user switch to a preferred language and locale. But what it doesn&#8217;t come out of the box with is the ability to direct the user to a store view based on the domain (<em>Most big companies own most domain extensions on their main domain.</em>). So in-case you are trying to accomplish the above you can use this technique that I came up.</p>
<p>In this example I assume that you own domains for the different countries for the same website. So say www.domain.com is primary domain in English and you also own www.domain.de for German, www.domain.nl for Dutch and www.domain.fr for French and so on. </p>
<p>So here&#8217;s how to do it.</p>
<p><strong>Pre-requisite: </strong><br />
All the domains mentioned above are directed to the same magento instance via apache site setup. Usually virtual hosts.</p>
<p><strong>Step 1: Setup Store codes in the Magento Admin.</strong><br />
This  can be done in the admin under System -> Manage Stores.</p>
<p>For this example my stores are setup using the magento admin where the store view code is the domain extension, meaning for the German store the code = &#8220;de&#8221;, for the french store => &#8220;fr&#8221;, for the dutch store => &#8220;nl&#8221; and so on.</p>
<p><strong>Step 2: Changes to the main index.php file.</strong><br />
Add the following code at the end of the main index.php file <em>(Just paste over the Mage::run() statement, make sure you remove this statement.)</em>.</p>
<p><code><br />
/**<br />
 * find the domain tld.<br />
 */<br />
function find_tld($url)<br />
{<br />
        $purl  = parse_url($url);<br />
        $host  = $purl['host'];<br />
        preg_match_all(&#8221;/([a-zA-Z0-9_-]+).([a-zA-Z0-9.-]{2,8})$/&#8221;, $host,$matches);<br />
        return $matches[0][0];<br />
}</p>
<p>//Store Switcher based on URL<br />
$host = find_tld(&#8221;http://&#8221;.$_SERVER['HTTP_HOST']);<br />
switch ($host)<br />
{<br />
    case &#8216;domain.nl&#8217;:<br />
       $store = &#8216;nl&#8217;;<br />
       break;<br />
    case &#8216;domain.fr&#8217;:<br />
       $store = &#8216;fr&#8217;;<br />
       break;<br />
    case &#8216;domain.de&#8217;:<br />
       $store = &#8216;de&#8217;;<br />
       break;<br />
    default: $store = &#8221;;<br />
}</p>
<p>//Set the store<br />
Mage::run($store);<br />
</code></p>
<p>That should do it.</p>
<blockquote><p>
You can also use this technique where you don&#8217;t want to present the user with the options to switch stores for any number of reasons e.g. you have different pricing on different store views. </p>
<p>You may also use this technique for sub-domains, you will just have to tweak the find TLD function to find subdomain.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.miowiki.com/programming/magento-run-stores-via-apache-virtual-hosts/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Display Fail</title>
		<link>http://www.miowiki.com/technologies/display-fail/</link>
		<comments>http://www.miowiki.com/technologies/display-fail/#comments</comments>
		<pubDate>Sun, 08 Aug 2010 02:40:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Technologies]]></category>

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

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

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

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

		<guid isPermaLink="false">http://www.miowiki.com/?p=99</guid>
		<description><![CDATA[
			
				
			
		
]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.miowiki.com%2Ftechnologies%2Fdisplay-fail%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.miowiki.com%2Ftechnologies%2Fdisplay-fail%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<div class="wp-caption alignnone" style="width: 510px"><img alt="Dispaly Fail" src="http://failblog.files.wordpress.com/2010/08/d9ebda33-50f3-4be6-b995-3e400564fe7d.jpg" title="Display Fail" width="500" height="667" /><p class="wp-caption-text">Dispaly Fail</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.miowiki.com/technologies/display-fail/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Open vs Closed source (Java vs .NET)</title>
		<link>http://www.miowiki.com/programming/open-vs-closed-source/</link>
		<comments>http://www.miowiki.com/programming/open-vs-closed-source/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 19:55:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Programming]]></category>

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

		<guid isPermaLink="false">http://www.miowiki.com/?p=95</guid>
		<description><![CDATA[
			
				
			
		

]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.miowiki.com%2Fprogramming%2Fopen-vs-closed-source%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.miowiki.com%2Fprogramming%2Fopen-vs-closed-source%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p><object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/A-Rp6wMZ1-s&amp;hl=en_US&amp;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/A-Rp6wMZ1-s&amp;hl=en_US&amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.miowiki.com/programming/open-vs-closed-source/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to retrieve Magento base URL paths from views inside template.</title>
		<link>http://www.miowiki.com/programming/magento-base-url/</link>
		<comments>http://www.miowiki.com/programming/magento-base-url/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 19:34:31 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Magento]]></category>

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

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

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

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

		<guid isPermaLink="false">http://www.miowiki.com/?p=80</guid>
		<description><![CDATA[
			
				
			
		
Magento front controller comes with built in methods to retrieve all base URL paths that are configured via the Magento admin.
All of these methods are inside the Mage class but just like many other things aren&#8217;t mentioned openly in their forums or documentation.
So I thought I would share this with everyone.

Javascript Base URL: http://[yourswebsite]/js/
&#60;?php echo [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.miowiki.com%2Fprogramming%2Fmagento-base-url%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.miowiki.com%2Fprogramming%2Fmagento-base-url%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Magento front controller comes with built in methods to retrieve all base URL paths that are configured via the Magento admin.</p>
<p>All of these methods are inside the Mage class but just like many other things aren&#8217;t mentioned openly in their forums or documentation.</p>
<p>So I thought I would share this with everyone.</p>
<blockquote><p><code><br />
<strong>Javascript Base URL</strong>: http://[yourswebsite]/js/<br />
&lt;?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS); ?&gt;<br />
</code></p></blockquote>
<blockquote><p><code><br />
<strong>Base URL</strong> i.e.  http://[yourswebsite]/index.php/<br />
&lt;?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_LINK); ?&gt;<br />
or<br />
&lt;?php echo Mage::getBaseUrl(); ?&gt;</code></p></blockquote>
<blockquote><p><code><br />
<strong>Media URL</strong>: http://[yourwebsite]/media/<br />
&lt;?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA); ?&gt;<br />
</code></p></blockquote>
<blockquote><p><code><br />
<strong>Skin URL</strong>: http://[yourwebsite]/skin/frontend/[yourtheme]/[yourtemplate]</code><br />
&lt;?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN); ?&gt;</p></blockquote>
<blockquote><p><code><br />
<strong>Base URL</strong>: http://[yourwebsite]/<br />
&lt;?php echo Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB); ?&gt;<br />
</code></p></blockquote>
<p>All these are store specific, in case you are running multiple stores in your single instance of magento i.e. Mage::Run([store_code]) in your base index.php file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.miowiki.com/programming/magento-base-url/feed/</wfw:commentRss>
		</item>
		<item>
		<title>How to search your whole database for a term/phrase?</title>
		<link>http://www.miowiki.com/programming/how-to-search-your-whole-database-for-a-termphrase/</link>
		<comments>http://www.miowiki.com/programming/how-to-search-your-whole-database-for-a-termphrase/#comments</comments>
		<pubDate>Thu, 05 Aug 2010 18:56:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Programming]]></category>

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

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

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

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

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

		<guid isPermaLink="false">http://www.miowiki.com/?p=64</guid>
		<description><![CDATA[
			
				
			
		
So I came across a situation today where I had some text popup on one of my CMS driven websites (Joomla), which I knew wasn&#8217;t coming from the code but was coming from somewhere inside the database. Now if you have used a CMS like me, you probably know that content usually comes from not [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.miowiki.com%2Fprogramming%2Fhow-to-search-your-whole-database-for-a-termphrase%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.miowiki.com%2Fprogramming%2Fhow-to-search-your-whole-database-for-a-termphrase%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>So I came across a situation today where I had some text popup on one of my CMS driven websites (Joomla), which I knew wasn&#8217;t coming from the code but was coming from somewhere inside the database. Now if you have used a CMS like me, you probably know that content usually comes from not just one but a lot of tables, so where would I start looking, this would take forever so many tables and even more fields inside those tables!!@#?</p>
<p>Just when I thought it was going to be hopeless I came up with a clever trick to solve the problem, and here&#8217;s what I did:</p>
<blockquote><p>Dump the Mysql database to a [filename].sql<br />
<code>mysqldump -h <em>host</em> -u<em>root</em> -p<em>password</em> [database_name] > [filename].sql</code></p></blockquote>
<blockquote><p>Next you can simply grep this file for the term you are looking for.<br />
<code>grep -i "<em>search word / phrase</em>&#8221; [filename].sql</code>
</p></blockquote>
<blockquote><p>The result would show you the statement where the term exists, which in turn would tell you the exact table, field and row its coming from.<br />
<code><br />
INSERT INTO `tablename` VALUES ('<b>search word/phase</b>&#8216;,0,0),(&#8217;khepri&#8217;,0,1);<br />
</code></p></blockquote>
<p><em>Tip: if you dont know the database, you can obviously dump all the databases into one file, mysql</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.miowiki.com/programming/how-to-search-your-whole-database-for-a-termphrase/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Difference between php echo and print</title>
		<link>http://www.miowiki.com/programming/difference-between-php-echo-and-print/</link>
		<comments>http://www.miowiki.com/programming/difference-between-php-echo-and-print/#comments</comments>
		<pubDate>Sat, 26 Jun 2010 01:51:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

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

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

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

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

		<guid isPermaLink="false">http://www.miowiki.com/?p=51</guid>
		<description><![CDATA[
			
				
			
		
So I have been asked this question  < ? php echo "a" , " million" , " times" , " over" ? >  so I thought I would answer it on my wiki.
Although both these functions or more accurate known as language constructs (which is why you can use these without parenthesis() ) [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.miowiki.com%2Fprogramming%2Fdifference-between-php-echo-and-print%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.miowiki.com%2Fprogramming%2Fdifference-between-php-echo-and-print%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>So I have been asked this question  <code>< ? php echo "a" , " million" , " times" , " over" ? > </code> so I thought I would answer it on my wiki.</p>
<p>Although both these functions or more accurate known as language constructs (which is why you can use these without parenthesis() ) are pretty much the same, they have 2 key differences.</p>
<p>1. echo() can take multiple arguments (as mentioned above) so you don&#8217;t have to perform string concatenation on the variable(s) before passing in the value(s). Which is also a reason why echo is a little faster than print().</p>
<p>2. The other difference is that echo returns a void value or doesn&#8217;t return a value as apposed to print() returning a int value. This can be considered as a performance benefit. This feature also allows you to pass print() as a parameter to a echo command.</p>
<p><em>Although I thing to note, which can help you decide which one to use is that php by default uses echo when you use < ? =  $var ? > syntax. Which probably means that echo is a better choice</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.miowiki.com/programming/difference-between-php-echo-and-print/feed/</wfw:commentRss>
		</item>
		<item>
		<title>PHP doesn&#8217;t scale, myth? Aboslutely!</title>
		<link>http://www.miowiki.com/uncategorized/php-doesnt-scale-myth-aboslutely/</link>
		<comments>http://www.miowiki.com/uncategorized/php-doesnt-scale-myth-aboslutely/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 19:37:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Programming]]></category>

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

		<guid isPermaLink="false">http://www.miowiki.com/?p=18</guid>
		<description><![CDATA[I had a conversation with a co-worker, who was trying to convince me that Java, unlike PHP is scalable so hence is a better choice when it comes to building large applications.

Luckily, I’m not a person who believes everything that I’m told, no matter how convincingly, so I decided to go looking, and sure enough I found something that is not only a great article but is written by an author from O'reilly. Here it is:]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.miowiki.com%2Funcategorized%2Fphp-doesnt-scale-myth-aboslutely%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.miowiki.com%2Funcategorized%2Fphp-doesnt-scale-myth-aboslutely%2F&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>When you are a PHP Programmer sooner or later you would come across the following statement, &#8220;Oh PHP?! PHP is awesome, but you know what, it doesn&#8217;t scale well!&#8221;. So I thought why not go research a little and find some good material to prove otherwise. FoSho! I found alot but I picked a few to share.</p>
<p><a href="http://www.onjava.com/pub/a/onjava/2003/10/15/php_scalability.html" target="_blank">http://www.onjava.com/pub/a/onjava/2003/10/15/php_scalability.html</a></p>
<p><a href="http://www.oreillynet.com/onlamp/blog/2006/04/digg_phps_scalability_and_perf.html" target="_blank">http://www.oreillynet.com/onlamp/blog/2006/04/digg_phps_scalability_and_perf.html</a></p>
<p><a href="http://blog.thinkphp.de/archives/170-Keynote-of-Tim-Bray-some-interesting-comparison-between-PHP,-Rails-and-Java.html" target="_blank">http://blog.thinkphp.de/archives/170-Keynote-of-Tim-Bray-some-interesting-comparison-between-PHP,-Rails-and-Java.html</a></p>
<p><a href="http://shiflett.org/blog/2004/jul/php-scales" target="_blank">http://shiflett.org/blog/2004/jul/php-scales</a></p>
<p>Apart from these articles, here are a few big websites are living proof that PHP rocks and is ofcourse <strong>SCALABLE</strong>!</p>
<ul>
<li>Yahoo.com</li>
<li>Facebook.com</li>
<li>Youtube.com</li>
<li>Flickr.com</li>
<li>wikipedia.com</li>
<li>photobucket.com</li>
<li>digg.com</li>
</ul>
<p><span style="color: #800000;"><em>I am sure the aforementioned companies can afford to hire java programmers!</em></span></p>
<p>One of the very clear and interesting excerpt from O&#8217;reilly.</p>
<h4>The PHP Scalability Myth</h4>
<p>by <a href="http://www.onjava.com/pub/au/1293">Jack Herrington</a><br />
10/15/2003</p>
<p>PHP scales. There, I said it. The word on the street is that &#8220;Java scales and PHP doesn&#8217;t.&#8221; The word on the street is wrong! and PHP needs someone to stand up and tell the truth: that it <em>does</em> scale.</p>
<p>So there, for all of you who go around telling that PHP doesn&#8217;t SCALE start reading a little and STFU!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.miowiki.com/uncategorized/php-doesnt-scale-myth-aboslutely/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
