<?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>Raju Gautam</title>
	<atom:link href="http://www.devraju.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.devraju.com</link>
	<description>Zend Certified Engineer – PHP 5; Joomla, Web Service, Wordpress Developer</description>
	<lastBuildDate>Fri, 03 Feb 2012 16:44:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Checking home page in Joomla !</title>
		<link>http://www.devraju.com/joomla/checking-home-page-in-joomla/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=checking-home-page-in-joomla</link>
		<comments>http://www.devraju.com/joomla/checking-home-page-in-joomla/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 16:36:55 +0000</pubDate>
		<dc:creator>rajug</dc:creator>
				<category><![CDATA[Joomla]]></category>

		<guid isPermaLink="false">http://www.devraju.com/?p=305</guid>
		<description><![CDATA[Checking whether the page is home page or not in Joomla is little different in different versions. Here you can find the solutions for different versions of Joomla. Joomla 1.0 In Joomla! 1.0.x it was possible to determine if the user was viewing the front page by using code like this: if ($option == 'com_frontpage' &#124;&#124; $option == '') { echo 'This is the front page'; } Joomla 1.5 But in Joomla! 1.5.x the com_frontpage component is no longer present.[...]]]></description>
			<content:encoded><![CDATA[<p>Checking whether the page is home page or not in Joomla is little different in different versions. Here you can find the solutions for different versions of Joomla.</p>
<h3>Joomla 1.0</h3>
<p>In Joomla! 1.0.x it was possible to determine if the user was viewing the front page by using code like this:</p>
<pre name="code" class="php">
if ($option == 'com_frontpage' || $option == '') {
	echo 'This is the front page';
}
</pre>
<h3>Joomla 1.5</h3>
<p>But in Joomla! 1.5.x the com_frontpage component is no longer present. This is how to achieve the same result in Joomla! 1.5.x</p>
<pre name="code" class="php">
$menu = &#038; JSite::getMenu();
if ($menu->getActive() == $menu->getDefault()) {
	echo 'This is the front page';
}
</pre>
<p>This works by checking to see if the current active menu item is the default one.</p>
<h3>Joomla 1.6 and 1.7</h3>
<p>The same code that worked in Joomla 1.5 will work in 1.6 onwards. However, since PHP 5 is now a minimum requirement for Joomla 1.6 the ampersand (&#038;) is no longer required on the first line. Use the following code for a site where all content is in the same language:</p>
<pre name="code" class="php">
$menu = JSite::getMenu();
if ($menu->getActive() == $menu->getDefault()) {
	echo 'This is the front page';
}
</pre>
<p>For multi-lingual sites the front page is dependent on the currently selected language, so you will need to use code like this:</p>
<pre name="code" class="php">
$menu = JSite::getMenu();
if ($menu->getActive() == $menu->getDefault( 'en-GB' )) {
	echo 'This is the front page';
}
elseif ($menu->getActive() == $menu->getDefault( 'fr-FR' )) {
	echo 'Accueil';
}
</pre>
<p>For multi-lingual sites, it could also be necessary to display a specific code/html for all Default Home pages.</p>
<pre name="code" class="php">
$menu = JSite::getMenu();
$lang = JFactory::getLanguage();
if ($menu->getActive() == $menu->getDefault($lang->getTag())) :
// some code
endif;
</pre>
<p>Hope this will help others.</p>
<p><strong><em>Source: Joomla Documentation!</em></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.devraju.com/joomla/checking-home-page-in-joomla/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla jLanguage Editor component updated</title>
		<link>http://www.devraju.com/joomla/joomlajlanguage-editor-component-updated/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=joomlajlanguage-editor-component-updated</link>
		<comments>http://www.devraju.com/joomla/joomlajlanguage-editor-component-updated/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 07:41:31 +0000</pubDate>
		<dc:creator>rajug</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Opensource]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.devraju.com/?p=298</guid>
		<description><![CDATA[jLanguage Editor is Joomla back end component that enables the facility to edit the language files of different language pack of front end website. Initially it was developed for Joomla 1.5 and later on with release of 1.6 and 1.7, it is now available for latest versions of Joomla. I have received some reviews and comments for this component. And I am trying my best to upgrade/add features as per the request and also fixing the bugs as pointed by[...]]]></description>
			<content:encoded><![CDATA[<p>jLanguage Editor is Joomla back end component that enables the facility to edit the language files of different language pack of front end website. Initially it was developed for Joomla 1.5 and later on with release of 1.6 and 1.7, it is now available for latest versions of Joomla.</p>
<p>I have received some reviews and comments for this component. And I am trying my best to upgrade/add features as per the request and also fixing the bugs as pointed by the reviewers. Recently there was a request to add a feature for copying updated files to Override folder so that upgrade of Joomla language packs doesn&#8217;t overwrite the changes made. Also pointed one bug/issue that it was stripping the HTML tags. Now the issue has been fixed and added the feature to copy the updated language files to Overrides folder.</p>
<p>Updated:</p>
<p>- HTML tags are supported regardless of what tags are used. Since editing is performed in the administrator section, no validations are checked.<br />
- Updated files will be stored in the override directory so that when upgrading the Joomla core will not overwritten the modified texts/language content.</p>
<p>Thanks <a href="http://extensions.joomla.org/extensions/reviews/janaf">Janaf</a> for pointing the issues.</p>
<p>The latest and updated files can be downloaded from <a href="http://extensions.joomla.org/extensions/languages/language-edition/13457">Joomla Extension Directory</a>. Please do not forget to add a review when you install and use it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devraju.com/joomla/joomlajlanguage-editor-component-updated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Importing large SQL dump files into MySQL !</title>
		<link>http://www.devraju.com/mysql/importing-large-sql-dump-files-into-mysql/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=importing-large-sql-dump-files-into-mysql</link>
		<comments>http://www.devraju.com/mysql/importing-large-sql-dump-files-into-mysql/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 08:10:15 +0000</pubDate>
		<dc:creator>rajug</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.devraju.com/?p=253</guid>
		<description><![CDATA[Though because of some quite good MySQL client software these days it has been quite easier to import and export the databases whenever required. But importing and exporting bigger files is quite difficult task for all. Specially, phpmyadmin (a web based popular application for browsing MySQL online written in PHP) rely on the PHP&#8217;s upload_max_filesize, memory_limit and post_max_size configurations in php.ini. So there are no other options to use command line MySQL somehow. If there is access to the server[...]]]></description>
			<content:encoded><![CDATA[<p>Though because of some quite good MySQL client software these days it has been quite easier to import and export the databases whenever required. But importing and exporting bigger files is quite difficult task for all. Specially, phpmyadmin (a web based popular application for browsing MySQL online written in PHP) rely on the PHP&#8217;s upload_max_filesize, memory_limit and post_max_size configurations in php.ini. So there are no other options to use command line MySQL somehow.</p>
<p>If there is access to the server via SSH, then by running some MySQL commands, we can export and import large databases as well.</p>
<h3>Export</h3>
<p><strong>Exporting a single database:</strong><br />
<em>mysqldump -u [dbuser] -p [dbpwd] [dbname] > dumpfile.sql</em></p>
<p>Export all the databases in the server (rare case though useful in local systems sometimes):<br />
<em>mysqldump -u [dbuser] -p [dbpwd] > dumpfile.sql</em></p>
<p><strong>Export whole multiple databses:</strong><br />
<em>mysqldump -u [dbuser] -p [dbpwd] &#8211;databases [dbname] [dbname] > dumpfile.sql</em></p>
<p><strong>Exporting specific tables:</strong><br />
<em>mysqldump -u [dbuser] -p [dbpwd] [dbname] [table1 table2]</em></p>
<h3>Restore</h3>
<p>Restoring database is mostly done from a sql dump file. The same filename dumpfile.sql will be used here.</p>
<p><strong>Restore a database:</strong><br />
<em>mysql -u [dbuser] -p [dbpwd] [dbname] < dumpfile.sql</em></p>
<p><strong>Restore a bulk SQL with multiple database:</strong><br />
<em>mysql -u [dbuser] -p [dbpwd] < dumpfile.sql</em></p>
<p><strong>Zipped files to be imported:</strong><br />
<em>gunzip < dumpfile.sql.gz | mysql -u [dbuser] -p [dbpwd]</em></p>
<p><strong>Restore multiple dump files using cat command:</strong><br />
<em>cat dumpfile1.sql dumpfile2.sql | mysql -u [dbuser] -p [dbpwd]</em></p>
<p>Note: if your database user password has some special characters, do not use the password in the command itself. Just leave -p without password and you will be asked to enter the password when you hit the enter key to execute the command.<br />
<strong>Example: </strong><br />
<em>mysqldump -u [username] -p [dbname] > [backupfile.sql]</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.devraju.com/mysql/importing-large-sql-dump-files-into-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VC6 Compiled PHP is no more available in PHP download!</title>
		<link>http://www.devraju.com/php/vc6-compiled-php-is-no-more-available-in-php-download/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=vc6-compiled-php-is-no-more-available-in-php-download</link>
		<comments>http://www.devraju.com/php/vc6-compiled-php-is-no-more-available-in-php-download/#comments</comments>
		<pubDate>Sat, 17 Dec 2011 15:18:10 +0000</pubDate>
		<dc:creator>rajug</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.devraju.com/?p=250</guid>
		<description><![CDATA[Last week I wanted to upgrade my PHP 5.3.5 to 5.3.8 as I saw that it has been released with some security fixes. I usually download VC6 version of PHP as it is written clearly in the left hand side of the download page under &#8220;Which version do I choose?&#8221; to use VC6 compiled PHP if we are in apache.org&#8217;s apache as a web server. But this time I could not find VC6 version of PHP download. I browsed a[...]]]></description>
			<content:encoded><![CDATA[<p>Last week I wanted to upgrade my PHP 5.3.5 to 5.3.8 as I saw that it has been released with some security fixes. I usually download VC6 version of PHP as it is written clearly in the left hand side of the download page under &#8220;Which version do I choose?&#8221; to use VC6 compiled PHP if we are in apache.org&#8217;s apache as a web server.</p>
<p>But this time I could not find VC6 version of PHP download. I browsed a lot and tried to search VC6 compiled PHP because I had already apache installed in my laptop downloaded from apache.org. Today I found there is a line just below that information in the same page as follows:</p>
<blockquote><p>Do <strong>NOT</strong> use VC9 version with apache.org binaries, VC9 versions of Apache can be fetched at Apache Lounge. We use their binaries to build the Apache SAPIs.</p></blockquote>
<p>Then I read the released note at http://windows.php.net/ and find the lines:</p>
<blockquote><p><strong>Windows users:</strong> please mind that we do no longer provide builds created with Visual Studio C++ 6. It is impossible to maintain a high quality and safe build of PHP for Windows using this unmaintained compiler.</p>
<p>For Apache SAPIs (php5_apache2_2.dll), be sure that you use a Visual Studio C++ 9 version of Apache. We recommend the Apache builds as provided by ApacheLounge. For any other SAPI (CLI, FastCGI via mod_fcgi, FastCGI with IIS or other FastCGI capable server), everything works as before. Third party extension providers must rebuild their extensions to make them compatible and loadable with the Visual Studio C++9 builds that we now provide.</p>
<p>All PHP users should note that the PHP 5.2 series is NOT supported anymore. All users are strongly encouraged to upgrade to PHP 5.3.6.</p></blockquote>
<p>So I am now going to download the apache from http://www.apachelounge.com/ and will then use VC9 compiled PHP. I will update in my blog once I did.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devraju.com/php/vc6-compiled-php-is-no-more-available-in-php-download/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>एउटा सायद परिचित तर कसैलाई मन नपर्ने सम्बाद&#8230;</title>
		<link>http://www.devraju.com/%e0%a4%95%e0%a4%9a%e0%a5%8d%e0%a4%af%e0%a4%be%e0%a4%95-%e0%a4%95%e0%a5%81%e0%a4%9a%e0%a5%81%e0%a4%95/%e0%a4%8f%e0%a4%89%e0%a4%9f%e0%a4%be-%e0%a4%b8%e0%a4%be%e0%a4%af%e0%a4%a6-%e0%a4%aa%e0%a4%b0%e0%a4%bf%e0%a4%9a%e0%a4%bf%e0%a4%a4-%e0%a4%a4%e0%a4%b0-%e0%a4%95%e0%a4%b8%e0%a5%88%e0%a4%b2%e0%a4%be/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=%25e0%25a4%258f%25e0%25a4%2589%25e0%25a4%259f%25e0%25a4%25be-%25e0%25a4%25b8%25e0%25a4%25be%25e0%25a4%25af%25e0%25a4%25a6-%25e0%25a4%25aa%25e0%25a4%25b0%25e0%25a4%25bf%25e0%25a4%259a%25e0%25a4%25bf%25e0%25a4%25a4-%25e0%25a4%25a4%25e0%25a4%25b0-%25e0%25a4%2595%25e0%25a4%25b8%25e0%25a5%2588%25e0%25a4%25b2%25e0%25a4%25be</link>
		<comments>http://www.devraju.com/%e0%a4%95%e0%a4%9a%e0%a5%8d%e0%a4%af%e0%a4%be%e0%a4%95-%e0%a4%95%e0%a5%81%e0%a4%9a%e0%a5%81%e0%a4%95/%e0%a4%8f%e0%a4%89%e0%a4%9f%e0%a4%be-%e0%a4%b8%e0%a4%be%e0%a4%af%e0%a4%a6-%e0%a4%aa%e0%a4%b0%e0%a4%bf%e0%a4%9a%e0%a4%bf%e0%a4%a4-%e0%a4%a4%e0%a4%b0-%e0%a4%95%e0%a4%b8%e0%a5%88%e0%a4%b2%e0%a4%be/#comments</comments>
		<pubDate>Wed, 13 Jul 2011 05:32:58 +0000</pubDate>
		<dc:creator>rajug</dc:creator>
				<category><![CDATA[कच्याक कुचुक]]></category>

		<guid isPermaLink="false">http://www.devraju.com/?p=243</guid>
		<description><![CDATA[प्रहरी: यो बाइक कसको ? चालक: मेरो सर ! प्रहरी: खै लाइसेन्स निकाल्नुस ! चालक: किन सर ? प्रहरी: नो पार्किंगमा राख्ने अनि &#8216;किन ?&#8217; भन्ने ? (अलि पर देखाउदै) नो पार्किंग को बोर्ड देख्नु भएन ऊ~~ त्यहाँ ? चालक: ए, अगी (५ मिनट अगाडी) ३/४ वोटा बाइक थियो तेसैले सबै भन्दा अगाडी छेउमा ल्यायर पार्किंग गरेको सर, नो पार्किंग को बोर्ड त धेरै पर पो छ त सर ! २/३ मिनेट पनि भाको छैन, यो आगनको पार्किंग छैन रैछ,[...]]]></description>
			<content:encoded><![CDATA[<p>प्रहरी: यो बाइक कसको ?<br />
चालक: मेरो सर !<br />
प्रहरी: खै लाइसेन्स निकाल्नुस !<br />
चालक: किन सर ?<br />
प्रहरी: नो पार्किंगमा राख्ने अनि &#8216;किन ?&#8217; भन्ने ? (अलि पर देखाउदै) नो पार्किंग को बोर्ड देख्नु भएन ऊ~~ त्यहाँ ?<br />
चालक: ए, अगी (५ मिनट अगाडी) ३/४ वोटा बाइक थियो तेसैले सबै भन्दा अगाडी छेउमा ल्यायर पार्किंग गरेको सर, नो पार्किंग को बोर्ड त धेरै पर पो छ त सर ! २/३ मिनेट पनि भाको छैन, यो आगनको पार्किंग छैन रैछ, के गर्नु ?<br />
प्रहरी: धेरै कुरा नगर्नुस, नो पार्किंग मा बाइक राखेर तपाइले सडक मा बाधा पुराउनु भएको छ, तपाइँ कारबाहीमा पर्नु भएको छ&#8230; खुरुक्क लाइसेन्स दिनुस, नत्र अरु पनि कारबाही होला !<br />
(के हो त्यो अरु कारबाही भनेको फेरी, निहु खोज्ने हो भने आर्को लफडामा परियाला भन्ने डर)<br />
महिला: (एउटा कालो पल्सर देखाउदै) त्यहाँ अझै एउटा बाइक छ, खोइ त तेस्लाई कारबाही ?<br />
प्रहरी: त्यो बाइक मेरै हो, तपाईलाई कारबाही गर्न मैले पार्किंग गरेको हो, छिट्टो लाइसेन्स दिनुस भनेको, (निकै हत्तारमा देखिनु भयो सर, मानौ कि धेरै टाढा जानु छ सरलाइ मेरो लाइसेन्स लियर !)<br />
चालक: ए, तेसो भए तपाइले गरेको पार्किंगले चाही सडकमा बाधा पुर्याउदैन ?<br />
महिला: (गुन्गुनाउदै) उहाँहरु ले त जे गरे नि हुने होला नि !<br />
प्रहरी: कति धेरै कुरा गरेको ? तपाइँ कारबाहीमा पर्नु भएको छ, खुरुक्क दिनुस लाइसेन्स !<br />
चालक: (लाइसेन्स झिकेर दिदै) केहि गरि मिलाउनुस न सर, हुन्न ? एकपटकलाइ गल्ति भयो अरुको पछी लाग्दा (हुन त अरु बाइक भन्दा अगाडी नै लगेर राखियको थियो) !<br />
प्रहरी: (चिट दिदै), हुन्न, भोलि बग्गीखाना लिन आउनुस, तपाइको लाइसेन्स उतै जान्छ !<br />
चालक: (चिट हेर्दै) हैन यसमा त कमलपोखरी लेखेको छ त !<br />
प्रहरी: पक्रेको कमलपोखरी हो, लिन आउने चाही बग्गीखाना !<br />
चालक: खोइ कतै लेखेको छैन त ?<br />
प्रहरी: मैले भने त उतै आउनुस, तेस्मा लेखेको पढ्नुस के के लेखेको छ !<br />
(के नै लेखेको रैछ भनेर हेरेको के हुनु उसको नाम पोस्ट लेखेको रैछ, अनि कसुर चाही &#8216;सडक पार्क स.अ. बाधा&#8217; रे)</p>
<p>मिति: २०६८, आषाढ २८ गते दिउसो ३ बजे तिर<br />
स्थान: कमलपोखरी, हिमाल नर्सिंग होम अगाडी आँगनको गेट !<br />
पात्रहरु :<br />
प्रहरी:  काजी उप्रेती (दर्जा &#8211; प्र. ज.  &#8211; ट्राफिक प्रहरी)<br />
चालक: म आफै (राजु गौतम)<br />
महिला: मेरो श्रीमती</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devraju.com/%e0%a4%95%e0%a4%9a%e0%a5%8d%e0%a4%af%e0%a4%be%e0%a4%95-%e0%a4%95%e0%a5%81%e0%a4%9a%e0%a5%81%e0%a4%95/%e0%a4%8f%e0%a4%89%e0%a4%9f%e0%a4%be-%e0%a4%b8%e0%a4%be%e0%a4%af%e0%a4%a6-%e0%a4%aa%e0%a4%b0%e0%a4%bf%e0%a4%9a%e0%a4%bf%e0%a4%a4-%e0%a4%a4%e0%a4%b0-%e0%a4%95%e0%a4%b8%e0%a5%88%e0%a4%b2%e0%a4%be/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New way of spamming in Facebook &#8211; You requested a new Facebook password</title>
		<link>http://www.devraju.com/facebook/new-way-of-spamming-in-facebook-you-requested-a-new-facebook-password/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=new-way-of-spamming-in-facebook-you-requested-a-new-facebook-password</link>
		<comments>http://www.devraju.com/facebook/new-way-of-spamming-in-facebook-you-requested-a-new-facebook-password/#comments</comments>
		<pubDate>Fri, 01 Jul 2011 05:25:35 +0000</pubDate>
		<dc:creator>rajug</dc:creator>
				<category><![CDATA[Facebook]]></category>

		<guid isPermaLink="false">http://www.devraju.com/?p=240</guid>
		<description><![CDATA[Today I got an email saying in the subject line &#8216;You requested a new Facebook password&#8217; and with the following email body part: &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; Hi Raju, You recently asked to reset your Facebook password. To complete your request, please follow this link: https://www.facebook.com/recover.php?n=xuhpXzatX&#038;id=520903088&#038;s=10 Alternately, you may go to https://www.facebook.com/recover.php and enter the following password reset code: xuhpXzatX Please note: for your protection, this email has been sent to all the email addresses associated with your Facebook account. *Didn&#8217;t Request This[...]]]></description>
			<content:encoded><![CDATA[<p>Today I got an email saying in the subject line &#8216;You requested a new Facebook password&#8217; and with the following email body part:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
<em>Hi Raju,</p>
<p>You recently asked to reset your Facebook password. To complete your request, please follow this link:</p>
<p>https://www.facebook.com/recover.php?n=xuhpXzatX&#038;id=520903088&#038;s=10</p>
<p>Alternately, you may go to https://www.facebook.com/recover.php and enter the following password reset code:</p>
<p>xuhpXzatX</p>
<p>Please note: for your protection, this email has been sent to all the email addresses associated with your Facebook account.</p>
<p>*Didn&#8217;t Request This Change?*<br />
If you did not request a new password, let us know at:</p>
<p>https://www.facebook.com/login/recover/disavow_reset_email.php?n=xuhpXzatX&#038;id=520903088</p>
<p>Thanks,<br />
The Facebook Team</em><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>And I was just wondered why and when I did request for resetting the facebook password. I never did that as far as I remember. And I just tried to login with my existign password and I was able to login. Thank god. This is again an SPAM. The spammers are with new route now. Facebook users are not almost awere of fake links to be clicked in the Facebook itself and they have now tried a new way by sending the links to their email address. As you can see above in the body part, they have asked to click on a link which MUST be a fake link or it MUST do an andesirable thing. I am not sure what exactly it does because I haven&#8217;t clicked it yet. But as far as I know the link does not even exists so I don&#8217;t think that it will do anything dangerous but to be safe it is good not to click on the links.</p>
<p>Seeing the email&#8217;s header part, we can say that it is the fake one:<br />
Mail header:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
<em>from	Facebook password+ys2yzf6@facebookmail.com<br />
reply-to	Facebook
<password+ys2yzf6@facebookmail.com>
to	Raju Gautam <email@example.com><br />
date	Thu, Jun 30, 2011 at 7:56 PM<br />
subject	You requested a new Facebook password<br />
mailed-by	facebookmail.com<br />
signed-by	facebookmail.com</em><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devraju.com/facebook/new-way-of-spamming-in-facebook-you-requested-a-new-facebook-password/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>j!Language Editor for Joomla 1.7 is released now!</title>
		<link>http://www.devraju.com/joomla/jlanguage-editor-for-joomla-1-7-is-released-now/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=jlanguage-editor-for-joomla-1-7-is-released-now</link>
		<comments>http://www.devraju.com/joomla/jlanguage-editor-for-joomla-1-7-is-released-now/#comments</comments>
		<pubDate>Thu, 23 Jun 2011 17:24:44 +0000</pubDate>
		<dc:creator>rajug</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.devraju.com/?p=234</guid>
		<description><![CDATA[Joomla manages the contents mainly in two ways; one is from database and the other is using files. Contents stored in the database are easily editable from Joomla back end but it does not have any feature to edit language files and their contents from back end. From my 4 years of Joomla development experience, I have been asked many times by the clients to edit the languages texts stored in the files. Some clients do not know how to[...]]]></description>
			<content:encoded><![CDATA[<p>Joomla manages the contents mainly in two ways; one is from database and the other is using files. Contents stored in the database are easily editable from Joomla back end but it does not have any feature to edit language files and their contents from back end. From my 4 years of Joomla development experience, I have been asked many times by the clients to edit the languages texts stored in the files. Some clients do not know how to use FTP, some of them do not even have any FTP client software installed in their computers and some really do not want to do so themselves. So for some reason, they must always ask the developers to edit the texts even if it is a single piece.</p>
<p>j!LangEditor is the solution of above problem. This is the Joomla back end component which lets the content manager (or any user that can login to Joomla back end) to edit the langauge files of Joomla website (not administrator) without using FTP software. Before this, they have to login using FTP and edit the file and reupload the file to the server. j!LangEditor allows to edit the content of any language files from Joomla back end itself.</p>
<p>Previously, the extension was developed for Joomla 1.5 but now I have developed a separate component for Joomla 1.6 because there are slight changes in the structure and coding in Joomla latest 1.6.</p>
<p><strong>Uses:</strong><br />
- <a href="http://extensions.joomla.org/extensions/languages/language-edition/13457" target="_blank">Download</a> the zipped extension.<br />
- Unzip the package and you will have two zip:<br />
&#8211; com_jlangeditor-1.0-Joomla-1.5.zip for Joomla 1.5<br />
&#8211; com_jlangeditor-1.1-Joomla-1.6.zip another for Joomla 1.6.<br />
- You can now install your desired/required version.</p>
<p>In next release, I will try to manage default website language to be loaded by default or set some parameter.</p>
<p>The extension has been already approved and listed in Joomla Extension Directory under <a href="http://extensions.joomla.org/extensions/languages/automatic-translations/13457" target="_blank"> &gt; Languages &gt; Automatic Translations </a>.</p>
<p><strong>Note:</strong> It will try to fetch the files of en-GB for the first and if there is no English language then nothing will be listed. You will have to choose the language from the drop down.</p>
<p>Enjoy editing the language files without opening FTP!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devraju.com/joomla/jlanguage-editor-for-joomla-1-7-is-released-now/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Magento Template Path Hints Without Changing in Admin</title>
		<link>http://www.devraju.com/magento/magento-template-path-hints-without-changing-in-admin/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=magento-template-path-hints-without-changing-in-admin</link>
		<comments>http://www.devraju.com/magento/magento-template-path-hints-without-changing-in-admin/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 05:55:15 +0000</pubDate>
		<dc:creator>rajug</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.devraju.com/?p=209</guid>
		<description><![CDATA[Since Magento itself is too vast not only because of its features but also because of heavy number of files within it, it is really difficult to find which file is being used for what purpose and where that file is really located. Front End: Magento has provided a feature in its configuration section in admin that allows us to enable template path hints. If we enable it, it will shows the file pathand block names. To enable it: 1.[...]]]></description>
			<content:encoded><![CDATA[<p>Since Magento itself is too vast not only because of its features but also because of heavy number of files within it, it is really difficult to find which file is being used for what purpose and where that file is really located. </p>
<p><strong>Front End:</strong><br />
Magento has provided a feature in its configuration section in admin that allows us to enable template path hints. If we enable it, it will shows the file pathand block names.</p>
<p><strong>To enable it:</strong><br />
1. Login to admin.<br />
2. Go to System->Configuration.<br />
3. Select a website from and click Developer tab in left.<br />
4. In the Debug section, select Yes for Template Path Hints &#038; Add Block Names to Hints.<br />
5. Save configuration and refresh the front end page you will have some red blocks to indicate what files files are used in which block along with Block (class names) used.</p>
<p><strong>Magento Template Path Hints Without Changing in Admin:</strong><br />
But enabling and disabling it from back end is boring in time to time. So I thought why not just enable the hints with some values passed via URL like http://www.mymagentosite.com/?template_hint=true or something like this. I searched where actually Magento handles this and found at app/code/core/Mage/Core/Block/Template.php. There is a method called getShowTemplateHints() at around line number 176 which handles it. The function originally looks like this:</p>
<pre name="code" class="php">
public function getShowTemplateHints()
{
	if (is_null(self::$_showTemplateHints)) {
		self::$_showTemplateHints = Mage::getStoreConfig('dev/debug/template_hints')
			&#038;&#038; Mage::helper('core')->isDevAllowed();
		self::$_showTemplateHintsBlocks = Mage::getStoreConfig('dev/debug/template_hints_blocks')
			&#038;&#038; Mage::helper('core')->isDevAllowed();
	}
	return self::$_showTemplateHints;
}
</pre>
<p>So the two static members (self::$_showTemplateHints &#038; self::$_showTemplateHintsBlocks) of the class are to set to handle them. So I modified it to be something like this:</p>
<pre name="code" class="php">
public function getShowTemplateHints()
{
	if (is_null(self::$_showTemplateHints)) {
		self::$_showTemplateHints = Mage::getStoreConfig('dev/debug/template_hints')
			&#038;&#038; Mage::helper('core')->isDevAllowed();
		self::$_showTemplateHintsBlocks = Mage::getStoreConfig('dev/debug/template_hints_blocks')
			&#038;&#038; Mage::helper('core')->isDevAllowed();
	}

	// overwrite the template hit
	$th 	= Mage::app()->getRequest()->getParam('th', false);
	$token 	= Mage::app()->getRequest()->getParam('token', false);
	if($th == 1 &#038;&#038; $token == 'PHP'){
		self::$_showTemplateHints = true; // for template path
		self::$_showTemplateHintsBlocks = true; // block names
	}

	return self::$_showTemplateHints;
}
</pre>
<p>I have used two variables for security. Now if &#8216;th&#8217; and &#8216;token&#8217; are set with specific values then both of the static members are set to true and hence the templates will be now visible. Now if you hit something like this in your browser http://www.mymagentosite.com/?th=1&#038;token=PHP you can see template hints and added Block Names. I found this quite handy rather than going to admin and enable/disable.</p>
<p><strong>Admin:</strong><br />
For admin, there is no direct feature, so there is a trick direcly modifying the database table and values. This I had found in the internet. You need to add two rows in the table &#8216;core_config_data&#8217; as follows for the first time:</p>
<pre name="code" class="sql">
INSERT INTO core_config_data (scope, scope_id, path, value) VALUES
('default', 0, 'dev/debug/template_hints', 1),
('default', 0, 'dev/debug/template_hints_blocks', 1);
</pre>
<p>If you have already those rows then you just need to update the &#8216;value&#8217; field with 1 to enable and 0 to disable.<br />
<strong>Disable:</strong></p>
<pre name="code" class="sql">
UPDATE core_config_data SET value=0 WHERE scope='default' AND scope_id = 0 AND path ='dev/debug/template_hints'
</pre>
<p><strong>Enable it again:</strong></p>
<pre name="code" class="sql">
UPDATE core_config_data SET value=1 WHERE scope='default' AND scope_id = 0 AND path ='dev/debug/template_hints'
</pre>
<p>Hope this will help <img src='http://www.devraju.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.devraju.com/magento/magento-template-path-hints-without-changing-in-admin/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Magento Admin shows 404 page</title>
		<link>http://www.devraju.com/magento/magento-admin-shows-404-page/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=magento-admin-shows-404-page</link>
		<comments>http://www.devraju.com/magento/magento-admin-shows-404-page/#comments</comments>
		<pubDate>Mon, 07 Mar 2011 11:07:06 +0000</pubDate>
		<dc:creator>rajug</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://www.devraju.com/?p=202</guid>
		<description><![CDATA[Though I am still new and have to learn a lot in Magento but I am struggling for Magento&#8217;s some serious issues of our clients. Among the so many problems with working experience in Magento, one of our customer encountered a database table corrupt problem and he asked the technical guy in their server to fix the problem. The technical person just repaired the database and the the Magento front end site worked perfectly fine. But when we try to[...]]]></description>
			<content:encoded><![CDATA[<p>Though I am still new and have to learn a lot in Magento but I am struggling for Magento&#8217;s some serious issues of our clients. Among the so many problems with working experience in Magento, one of our customer encountered a database table corrupt problem and he asked the technical guy in their server to fix the problem. The technical person just repaired the database and the the Magento front end site worked perfectly fine. But when we try to go to admin of the shop, then it always shows the 404 page instead of showing the Admin login form.</p>
<p>After some research, I came to know that it is something about the store view for admin section which is supposed to be in the &#8216;core_store&#8217; table. When the database was repaired, two rows were inserted (or updated) as follows:</p>
<pre name="code" class="html">
--------------------------------------------------------------------------
`store_id`,`code`,`website_id`,`group_id`,`name`,`sort_order`,`is_active`
--------------------------------------------------------------------------
'2', 'admin', '0', '5', 'Admin', '0', '1'
'1', 'default', '0', '5', 'Admin', '0', '1'
--------------------------------------------------------------------------
</pre>
<p>I just compared with another Magento shop and there was &#8217;0&#8242; as stored_id for admin. And I just edited the row and put it as &#8217;0&#8242; instead of &#8217;2&#8242; and saved it.</p>
<p>Now the Admin section worked like a charm ! </p>
<p>Strange problem but easy fix (after a research of 3/4 hours) !!</p>
<p>Just shared it hoping it will help others encountering the same problem <img src='http://www.devraju.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.devraju.com/magento/magento-admin-shows-404-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla 1.5.22 Installation SQL Problem: TYPE=MyISAM &#8211; Solution: ENGINE=MyISAM</title>
		<link>http://www.devraju.com/joomla/joomla-1-5-22-installation-sql-problem-typemyisam-solution-enginemyisam/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=joomla-1-5-22-installation-sql-problem-typemyisam-solution-enginemyisam</link>
		<comments>http://www.devraju.com/joomla/joomla-1-5-22-installation-sql-problem-typemyisam-solution-enginemyisam/#comments</comments>
		<pubDate>Tue, 22 Feb 2011 11:45:01 +0000</pubDate>
		<dc:creator>rajug</dc:creator>
				<category><![CDATA[Joomla]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.devraju.com/?p=200</guid>
		<description><![CDATA[In last December I had decided to upgrade my laptop to be up to date with the technologies. So I formatted the previous installation of OS and then installed Windows 7. Thanks to my cousin (Bhuwan Sharma) in the USA for the Windows 7. Then I just installed normally all the programs and applications including latest Apache (2.2.17), PHP (5.3.5) and MySQL (Community 5.5.8). The installation went quite good for all. and some of the previous projects done worked successfully.[...]]]></description>
			<content:encoded><![CDATA[<p>In last December I had decided to upgrade my laptop to be up to date with the technologies. So I formatted the previous installation of OS and then installed Windows 7. Thanks to my cousin (Bhuwan Sharma) in the USA for the Windows 7.</p>
<p>Then I just installed normally all the programs and applications including latest Apache (2.2.17), PHP (5.3.5) and MySQL (Community 5.5.8). The installation went quite good for all. and some of the previous projects done worked successfully. But after a couple of days, I tried to install Joomla 1.5.22 and I found the following error after I submit fourth step &#8220;Database Configuration&#8221; with database details:</p>
<pre name="code" class="html">
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'TYPE=MyISAM CHARACTER SET `utf8`' at line 29 SQL=CREATE TABLE `jos_banner` ( `bid` int(11) NOT NULL auto_increment, `cid` int(11) NOT NULL default '0', `type` varchar(30) NOT NULL default 'banner', `name` varchar(255) NOT NULL default '', `alias` varchar(255) NOT NULL default '', `imptotal` int(11) NOT NULL default '0', `impmade` int(11) NOT NULL default '0', `clicks` int(11) NOT NULL default '0', `imageurl` varchar(100) NOT NULL default '', `clickurl` varchar(200) NOT NULL default '', `date` datetime default NULL, `showBanner` tinyint(1) NOT NULL default '0', `checked_out` tinyint(1) NOT NULL default '0', `checked_out_time` datetime NOT NULL default '0000-00-00 00:00:00', `editor` varchar(50) default NULL, `custombannercode` text, `catid` INTEGER UNSIGNED NOT NULL DEFAULT 0, `description` TEXT NOT NULL DEFAULT '', `sticky` TINYINT(1) UNSIGNED NOT NULL DEFAULT 0, `ordering` INTEGER NOT NULL DEFAULT 0, `publish_up` datetime NOT NULL default '0000-00-00 00:00:00', `publish_down` datetime NOT NULL default '0000-00-00 00:00:00', `tags` TEXT NOT NULL DEFAULT '', `params` TEXT NOT NULL DEFAULT '', PRIMARY KEY (`bid`), KEY `viewbanner` (`showBanner`), INDEX `idx_banner_catid`(`catid`) ) TYPE=MyISAM CHARACTER SET `utf8`
</pre>
<p>I could not find anything particular solution for the solution with some limited words in the Google but I came to a decision that it must be something because of engine type. Then I created a test table in test database and then saw the structure of that table and noticed there was something:</p>
<pre name="code" class="sql">
CREATE TABLE `tbltest` (
  `id` int(11) NOT NULL auto_increment,
  `title` varchar(255) NOT NULL default '',
  INDEX `mytestindex`(`id`)
) ENGINE=MyISAM;
</pre>
<p>I just noticed there <strong>&#8216;ENGINE=MyISAM&#8217;</strong> but when I opened the Joomla&#8217;s installation sql file (Joomlafolder/installation/sql/mysql/joomla.sql) and noticed that there was TYPE=MyISAM. So I just find and replaced all the occurrences of &#8216;TYPE=MyISAM&#8217; to &#8216;ENGINE=MyISAM&#8217; and tried to install Joomla then it worked like a charm.</p>
<p>So I came to the conclusion that TYPE keyword is no more used with MySQL latest (5.5.8) versions. This has been posted as a bug here http://bugs.mysql.com/bug.php?id=59288 but they claim that it is not the bug. The keyword &#8216;TYPE&#8217; was introduced as deprecated since ENGINE was added in MySQL 4.0.18. And it is clearly mentioned in the <a href="http://dev.mysql.com/doc/refman/4.1/en/create-table.html" target="_blank">CREATE TABLE structure manaul page</a> (http://dev.mysql.com/doc/refman/4.1/en/create-table.html) that the TYPE keyword will be removed in future versions.</p>
<p>This is my experience. I was about to share this right in the first week of January when I noticed this but was quite busy and forgot <img src='http://www.devraju.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.devraju.com/joomla/joomla-1-5-22-installation-sql-problem-typemyisam-solution-enginemyisam/feed/</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
	</channel>
</rss>

