<?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>cogitsolution</title>
	<atom:link href="http://www.cogitsolutions.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.cogitsolutions.com/blog</link>
	<description>Customized, Optimized, Generalized Solutions</description>
	<lastBuildDate>Thu, 08 Dec 2011 04:48:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Recover MySQL root Password</title>
		<link>http://www.cogitsolutions.com/blog/2011/12/recover-mysql-root-password/</link>
		<comments>http://www.cogitsolutions.com/blog/2011/12/recover-mysql-root-password/#comments</comments>
		<pubDate>Thu, 08 Dec 2011 04:48:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysql recover password]]></category>

		<guid isPermaLink="false">http://www.cogitsolutions.com/blog/?p=141</guid>
		<description><![CDATA[to recover MySQL database server password use following five easy steps
Step # 1: Stop the MySQL server process.
Step  # 2: Start the MySQL (mysqld) server/daemon process with the  &#8211;skip-grant-tables option so that it will not prompt for password.
Step # 3: Connect to mysql server as the root user without password.
Step # 4: Setup [...]]]></description>
			<content:encoded><![CDATA[<p>to recover MySQL database server password use following five easy steps</p>
<p>Step # 1: Stop the MySQL server process.</p>
<p>Step  # 2: Start the MySQL (mysqld) server/daemon process with the  &#8211;skip-grant-tables option so that it will not prompt for password.</p>
<p>Step # 3: Connect to mysql server as the root user without password.</p>
<p>Step # 4: Setup new mysql root account password i.e. reset mysql password.</p>
<p>Step # 5:  Exit and restart the MySQL server.</p>
<p>Here are commands you need to type for each step (login as the root user):</p>
<h3>Step # 1 : <a href="http://www.cyberciti.biz/faq/mysql-startup-script-under-bsdlinux/">Stop mysql service</a></h3>
<p><code># /etc/init.d/mysql stop</code></p>
<h3>Step # 2: Start to MySQL server w/o password:</h3>
<p><code># mysqld_safe --skip-grant-tables &amp;</code></p>
<p>or</p>
<p><code># mysqld --skip-grant-tables<br />
</code></p>
<p><strong>Step # 3: Connect to mysql server using mysql client:</strong></p>
<p><code># mysql -u root</code></p>
<p>Step # 4: <a href="http://www.cyberciti.biz/faq/mysql-change-root-password/">Setup new MySQL root user password</a></p>
<p><code>mysql&gt; use mysql;<br />
mysql&gt; update user set password=PASSWORD("NEW-ROOT-PASSWORD") where User='root';<br />
mysql&gt; flush privileges;<br />
mysql&gt; quit</code></p>
<h3>Step # 5: Stop MySQL Server:</h3>
<p><code># /etc/init.d/mysql stop</code></p>
<p><strong>Step # 6: <a href="http://www.cyberciti.biz/faq/how-do-i-access-mysql-server-from-the-shell-prompt-command-line/">Start MySQL server and test it</a></strong></p>
<p><code># /etc/init.d/mysql start<br />
# mysql -u root -p</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cogitsolutions.com/blog/2011/12/recover-mysql-root-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable WordPress 3.1 admin bar for all users except admin</title>
		<link>http://www.cogitsolutions.com/blog/2011/08/disable-wordpress-3-1-admin-bar-for-all-users-except-admin/</link>
		<comments>http://www.cogitsolutions.com/blog/2011/08/disable-wordpress-3-1-admin-bar-for-all-users-except-admin/#comments</comments>
		<pubDate>Tue, 09 Aug 2011 08:11:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development - PHP]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.cogitsolutions.com/blog/?p=138</guid>
		<description><![CDATA[function my_function_admin_bar($content) {
return ( current_user_can("administrator") ) ? $content : false;
}
add_filter( 'show_admin_bar' , 'my_function_admin_bar');

Reference: http://www.binbert.com/blog/2011/03/disable-wordpress-3-1-admin-bar-for-all-users-except-admin/
]]></description>
			<content:encoded><![CDATA[<pre>function my_function_admin_bar($content) {
return ( current_user_can("administrator") ) ? $content : false;
}
add_filter( 'show_admin_bar' , 'my_function_admin_bar');

Reference: http://www.binbert.com/blog/2011/03/disable-wordpress-3-1-admin-bar-for-all-users-except-admin/</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.cogitsolutions.com/blog/2011/08/disable-wordpress-3-1-admin-bar-for-all-users-except-admin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>codeignitor IE session problem</title>
		<link>http://www.cogitsolutions.com/blog/2011/06/codeignitor-ie-session-problem/</link>
		<comments>http://www.cogitsolutions.com/blog/2011/06/codeignitor-ie-session-problem/#comments</comments>
		<pubDate>Fri, 03 Jun 2011 14:35:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development - PHP]]></category>
		<category><![CDATA[CI session]]></category>
		<category><![CDATA[codeignitor]]></category>
		<category><![CDATA[IE 8 session]]></category>

		<guid isPermaLink="false">http://www.cogitsolutions.com/blog/?p=135</guid>
		<description><![CDATA[
was facing same problem of session with IE 8. Many  threads suggested for underscore, timezone difference. Real problem is  timezone difference. CI creates cookie with server time and IE checks  expiry related to client timezone. And here issues comes. You can not  change time zone of online server to match clients [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>was facing same problem of session with IE 8. Many  threads suggested for underscore, timezone difference. Real problem is  timezone difference. CI creates cookie with server time and IE checks  expiry related to client timezone. And here issues comes. You can not  change time zone of online server to match clients from all over world.  The better solution is change cookie / session expiry time. By default  it is two hours. Change it to 24 hours and problem will be solved.</p>
<p>In config.php file change value of following variable</p>
<p>from two hours</p>
<p>$config[‘sess_expiration’]        = 7200;</p>
<p>to 24 hours</p>
<p>$config[‘sess_expiration’]        = 3600 * 24;</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.cogitsolutions.com/blog/2011/06/codeignitor-ie-session-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>codeigniter Class ‘MY_Controller’ not found</title>
		<link>http://www.cogitsolutions.com/blog/2011/06/codeigniter-class-%e2%80%98my_controller%e2%80%99-not-found/</link>
		<comments>http://www.cogitsolutions.com/blog/2011/06/codeigniter-class-%e2%80%98my_controller%e2%80%99-not-found/#comments</comments>
		<pubDate>Wed, 01 Jun 2011 13:59:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development - PHP]]></category>
		<category><![CDATA[codeigniter]]></category>

		<guid isPermaLink="false">http://www.cogitsolutions.com/blog/?p=132</guid>
		<description><![CDATA[If you are using codeigniter 2.0 and getting following error
Fatal error: Class ‘MY_Controller’ not found in application\controllers\welcome.php on line 4
then reasons can be
1. you are either not loading it  properly (via an __autoload() or manually using include())
2. it is in  the wrong place.
In CI 2.0 MY_Controller should be in application/core. In previous version [...]]]></description>
			<content:encoded><![CDATA[<p>If you are using codeigniter 2.0 and getting following error</p>
<p>Fatal error: Class ‘MY_Controller’ not found in application\controllers\welcome.php on line 4</p>
<p>then reasons can be</p>
<p>1. you are either not loading it  properly (via an __autoload() or manually using include())</p>
<p>2. it is in  the wrong place.</p>
<p>In CI 2.0 MY_Controller should be in application/core. In previous version it should be in application/library</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cogitsolutions.com/blog/2011/06/codeigniter-class-%e2%80%98my_controller%e2%80%99-not-found/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jquery autocomplete wrong position</title>
		<link>http://www.cogitsolutions.com/blog/2011/05/jquery-autocomplete-wrong-position/</link>
		<comments>http://www.cogitsolutions.com/blog/2011/05/jquery-autocomplete-wrong-position/#comments</comments>
		<pubDate>Tue, 24 May 2011 12:30:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development - AJAX]]></category>
		<category><![CDATA[autocomplete]]></category>
		<category><![CDATA[jquery]]></category>

		<guid isPermaLink="false">http://www.cogitsolutions.com/blog/?p=130</guid>
		<description><![CDATA[jQuery autocomplete is very good tool. It works very well. The autocomplete drop down shows below textbox. But I faced issue when a fixed width assigned to body.
I fixed width of body in stylesheet as body{width:900px;} and it created issue for autocomplete. Autocomplete drop down has been placed some where else from the targetted text [...]]]></description>
			<content:encoded><![CDATA[<p>jQuery autocomplete is very good tool. It works very well. The autocomplete drop down shows below textbox. But I faced issue when a fixed width assigned to body.<br />
I fixed width of body in stylesheet as body{width:900px;} and it created issue for autocomplete. Autocomplete drop down has been placed some where else from the targetted text box.<br />
To solve the problem I implemented following solution and it is working fine.</p>
<p>Edit jquery.autocomplete.js file.</p>
<p>find following code<br />
show: function() {<br />
var offset = $(input).offset();</p>
<p>this code is at around 702 line number</p>
<p>Add following code just below the code you found</p>
<p>var screenWidth = screen.width;<br />
var bodyWidth = $(&#8220;body&#8221;).width();<br />
if (screenWidth &gt; bodyWidth)<br />
{<br />
var diff = (screenWidth &#8211; bodyWidth)/2;<br />
offset.left = offset.left &#8211; diff;<br />
}</p>
<p>With this code now jquery autocomplete drop down positioned horizontally properly even if width of the body is fixed. With 100% width there is no problem .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cogitsolutions.com/blog/2011/05/jquery-autocomplete-wrong-position/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>__PHP_Incomplete_Class Errors</title>
		<link>http://www.cogitsolutions.com/blog/2011/05/test/</link>
		<comments>http://www.cogitsolutions.com/blog/2011/05/test/#comments</comments>
		<pubDate>Thu, 05 May 2011 16:06:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development - PHP]]></category>

		<guid isPermaLink="false">http://www.cogitsolutions.com/blog/2011/05/test/</guid>
		<description><![CDATA[If you get such a error That means class not defined before starting session.
If classes stored  in a session you must define your class before the call to session start().
If  you have  in configuration session auto_start = 1, you will have to  disable that so you can define your classes before starting the [...]]]></description>
			<content:encoded><![CDATA[<p>If you get such a error That means class not defined before starting session.</p>
<p>If classes stored  in a session you must define your class before the call to session start().</p>
<p>If  you have  in configuration session auto_start = 1, you will have to  disable that so you can define your classes before starting the session.</p>
<p>Another  easiest workaround is to define  __autoload() function before session start(). This way the appropriate classes are loaded when   needed and it will solve the error. also you do not need to make any  changes in configuration file</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cogitsolutions.com/blog/2011/05/test/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>wordpress sort posts by custom field numeric value</title>
		<link>http://www.cogitsolutions.com/blog/2011/04/wordpress-sort-posts-by-custom-field-numeric-value/</link>
		<comments>http://www.cogitsolutions.com/blog/2011/04/wordpress-sort-posts-by-custom-field-numeric-value/#comments</comments>
		<pubDate>Thu, 14 Apr 2011 14:38:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development - PHP]]></category>
		<category><![CDATA[post sort order]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.cogitsolutions.com/blog/?p=120</guid>
		<description><![CDATA[there is no default option in wordpress to set up sort order of post manually while adding post. Other options are sorting by title or date using query_post() function.  To set up custom sort order we can do this using custom field. Use following code
query_posts(orderby=meta_value&#38;meta_key=sort_order&#38;order=ASC&#8217;);
REMEMBER: if you use this function then you have to assign [...]]]></description>
			<content:encoded><![CDATA[<p>there is no default option in wordpress to set up sort order of post manually while adding post. Other options are sorting by title or date using query_post() function.  To set up custom sort order we can do this using custom field. Use following code</p>
<p>query_posts(orderby=meta_value&amp;meta_key=sort_order&amp;order=ASC&#8217;);</p>
<p><strong>REMEMBER</strong>: if you use this function then you have to assign sort_order custom field to each post. Otherwise posts which do not have sort_order custom field will not be displayed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cogitsolutions.com/blog/2011/04/wordpress-sort-posts-by-custom-field-numeric-value/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>the_content not responding to the &#8220;more tag&#8221; outside of WP</title>
		<link>http://www.cogitsolutions.com/blog/2011/04/the_content-not-responding-to-the-more-tag-outside-of-wp/</link>
		<comments>http://www.cogitsolutions.com/blog/2011/04/the_content-not-responding-to-the-more-tag-outside-of-wp/#comments</comments>
		<pubDate>Thu, 14 Apr 2011 14:34:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development - PHP]]></category>
		<category><![CDATA[more tag]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.cogitsolutions.com/blog/?p=118</guid>
		<description><![CDATA[when used setup_postdata() , the_content ignore more tag
the more tag does not work on custom queries like that.
You can set the global $more variable to either 1 or 0 to turn the  more functionality on or off. Do this right before your call to the  content:
global $more;
$more = 1;
the_content();

0 means turn on
1 means [...]]]></description>
			<content:encoded><![CDATA[<p>when used setup_postdata() , the_content ignore more tag</p>
<p>the more tag does not work on custom queries like that.</p>
<p>You can set the global $more variable to either 1 or 0 to turn the  more functionality on or off. Do this right before your call to the  content:</p>
<pre><code>global $more;
$more = 1;
the_content();

0 means turn on
1 means turn off
</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.cogitsolutions.com/blog/2011/04/the_content-not-responding-to-the-more-tag-outside-of-wp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>print web page without showing print dialogbox</title>
		<link>http://www.cogitsolutions.com/blog/2011/03/print-web-page-without-showing-print-dialogbox/</link>
		<comments>http://www.cogitsolutions.com/blog/2011/03/print-web-page-without-showing-print-dialogbox/#comments</comments>
		<pubDate>Mon, 14 Mar 2011 11:52:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Seminars By Team]]></category>

		<guid isPermaLink="false">http://www.cogitsolutions.com/blog/?p=115</guid>
		<description><![CDATA[Here’s what you need to do to enable Firefox immediately print without showing the print preferences dialog box.

Type about:config at Firefox’s location bar and hit Enter.
Right click at anywhere on the page and select New &#62; Boolean
Enter the preference name as print.always_print_silent and click OK.

For IE
function printit(){
if (window.print) {
window.print() ;
} else {
var WebBrowser = &#8216;&#60;OBJECT [...]]]></description>
			<content:encoded><![CDATA[<p>Here’s what you need to do to enable Firefox immediately print without showing the print preferences dialog box.</p>
<ol>
<li>Type about:config at Firefox’s location bar and hit Enter.</li>
<li>Right click at anywhere on the page and select New &gt; Boolean</li>
<li>Enter the preference name as print.always_print_silent and click OK.</li>
</ol>
<p>For IE</p>
<p>function printit(){<br />
if (window.print) {<br />
window.print() ;<br />
} else {<br />
var WebBrowser = &#8216;&lt;OBJECT ID=&#8221;WebBrowser1&#8243; WIDTH=0 HEIGHT=0 CLASSID=&#8221;CLSID:8856F961-340A-11D0-A96B-00C04FD705A2&#8243;&gt;&lt;/OBJECT&gt;&#8217;;<br />
document.body.insertAdjacentHTML(&#8216;beforeEnd&#8217;, WebBrowser);<br />
WebBrowser1.ExecWB(6, 2);//Use a 1 vs. a 2 for a prompting dialog box    WebBrowser1.outerHTML = &#8220;&#8221;;<br />
}<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cogitsolutions.com/blog/2011/03/print-web-page-without-showing-print-dialogbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Joomla Component Install &#8211; Unable to Find Install Package</title>
		<link>http://www.cogitsolutions.com/blog/2011/02/joomla-component-install-unable-to-find-install-package/</link>
		<comments>http://www.cogitsolutions.com/blog/2011/02/joomla-component-install-unable-to-find-install-package/#comments</comments>
		<pubDate>Fri, 11 Feb 2011 04:38:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Development - PHP]]></category>
		<category><![CDATA[joomla]]></category>

		<guid isPermaLink="false">http://www.cogitsolutions.com/blog/?p=112</guid>
		<description><![CDATA[Symptoms:
Joomla  1.5 fresh install was working fine and was able to install and  uninstall mods, extensions templates, etc. just fine. After a few days  of set up,  modifying my templates and adjusting my Global Settings, I  was not able to upload any modules, extensions, templates, etc. and  continuously received the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Symptoms:</strong></p>
<p>Joomla  1.5 fresh install was working fine and was able to install and  uninstall mods, extensions templates, etc. just fine. After a few days  of set up,  modifying my templates and adjusting my Global Settings, I  was not able to upload any modules, extensions, templates, etc. and  continuously received the <strong>&#8216;Unable to Find Install Package&#8217;</strong>. <strong><em>This was not a legacy issue.</em></strong></p>
<p><strong>The Solution:</strong></p>
<p>During my setup, I had enabled my FTP but later turned it off in my Global Settings. <strong>However</strong>,  what I discovered was that my FTP was not actually &#8216;turning off&#8217;. When I  would deactivate it, and save my settings, the next time that I logged  into my Global Settings, it would be back on. To resolve this, I went  directly into my <strong>configuration.php file and manually adjusted the FTP settings.</strong></p>
<p>var $ftp_enable = &#8216;0&#8242;;<br />
var $ftp_host = &#8221;;<br />
var $ftp_port = &#8221;;<br />
var $ftp_user = &#8221;;<br />
var $ftp_pass = &#8221;;<br />
var $ftp_root = &#8221;;</p>
<p><strong>So, in short &#8212; try adjusting your FTP settings directly in your configuration.php file.</strong></p>
<p>I hope this helps someone else!</p>
<p>Details by</p>
<p>Miss Vicky</p>
]]></content:encoded>
			<wfw:commentRss>http://www.cogitsolutions.com/blog/2011/02/joomla-component-install-unable-to-find-install-package/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

