<?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>Sat, 27 Oct 2012 05:42:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>test</title>
		<link>http://www.cogitsolutions.com/blog/2012/10/test-3/</link>
		<comments>http://www.cogitsolutions.com/blog/2012/10/test-3/#comments</comments>
		<pubDate>Sat, 27 Oct 2012 05:38:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.cogitsolutions.com/blog/?p=156</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript" language="javascript" src="http://183.177.126.17/vooplayer/videoplayer/video.js"></script><iframe src="http://183.177.126.17/vooplayer/videoplayer/watch.php?v=MTM1MQ==" frameborder="0" scrolling="no" width="543" height="408" id='voovideo' name='voovideo'></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://www.cogitsolutions.com/blog/2012/10/test-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Delete file &#8216;mysql-bin.0000xx&#8217;</title>
		<link>http://www.cogitsolutions.com/blog/2012/05/delete-file-mysql-bin-0000xx/</link>
		<comments>http://www.cogitsolutions.com/blog/2012/05/delete-file-mysql-bin-0000xx/#comments</comments>
		<pubDate>Tue, 01 May 2012 07:38:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysql bin files]]></category>

		<guid isPermaLink="false">http://www.cogitsolutions.com/blog/?p=146</guid>
		<description><![CDATA[mysql-bin.0000xx are binary log files. The binary log is a set of files that contain information about data modifications made by the MySQL server. The log consists of a set of binary log files, plus an index file. To remove these files use purge command PURGE BINARY LOGS TO 'mysql-bin.010'; -- delete all files created [...]]]></description>
			<content:encoded><![CDATA[<p>mysql-bin.0000xx are binary log files. The binary log is a set of files that contain information about data modifications made by the MySQL server. The log consists of a set of binary log files, plus an index file.</p>
<p>To remove these files use purge command</p>
<pre>PURGE BINARY LOGS TO 'mysql-bin.010'; -- delete all files created before here specified file
PURGE BINARY LOGS BEFORE '2008-04-02 22:46:26'; -- delete all files created before date and time specified here</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.cogitsolutions.com/blog/2012/05/delete-file-mysql-bin-0000xx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql database backup &#8211; multiple database in seperate files</title>
		<link>http://www.cogitsolutions.com/blog/2012/03/mysql-database-backup-multiple-database-in-seperate-files/</link>
		<comments>http://www.cogitsolutions.com/blog/2012/03/mysql-database-backup-multiple-database-in-seperate-files/#comments</comments>
		<pubDate>Fri, 02 Mar 2012 06:00:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[backup mysql database]]></category>

		<guid isPermaLink="false">http://www.cogitsolutions.com/blog/?p=143</guid>
		<description><![CDATA[reference: http://www.snowfrog.net/2005/11/16/backup-multiple-databases-into-separate-files/ #!/bin/bash # sonia 16-nov-05 # backup each mysql db into a different file, rather than one big file # as with --all-databases - will make restores easier USER="root" PASSWORD="secret" OUTPUTDIR="/var/lib/bacula" MYSQLDUMP="/usr/bin/mysqldump" MYSQL="/usr/bin/mysql" # clean up any old backups - save space rm "$OUTPUTDIR/*gz" &#62; /dev/null 2&#62;&#38;1 # get a list of databases databases=`$MYSQL [...]]]></description>
			<content:encoded><![CDATA[<pre>reference: http://www.snowfrog.net/2005/11/16/backup-multiple-databases-into-separate-files/

#!/bin/bash
# sonia 16-nov-05
# backup each mysql db into a different file, rather than one big file
# as with --all-databases - will make restores easier

USER="root"
PASSWORD="secret"
OUTPUTDIR="/var/lib/bacula"
MYSQLDUMP="/usr/bin/mysqldump"
MYSQL="/usr/bin/mysql"

# clean up any old backups - save space
rm "$OUTPUTDIR/*gz" &gt; /dev/null 2&gt;&amp;1

# get a list of databases
databases=`$MYSQL --user=$USER --password=$PASSWORD \
 -e "SHOW DATABASES;" | tr -d "| " | grep -v Database`

# dump each database in turn
for db in $databases; do
    echo $db
    $MYSQLDUMP --force --opt --user=$USER --password=$PASSWORD \
    --databases $db | gzip &gt; "$OUTPUTDIR/$db.gz"
done</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.cogitsolutions.com/blog/2012/03/mysql-database-backup-multiple-database-in-seperate-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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 # [...]]]></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 from all over world. [...]]]></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. [...]]]></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 [...]]]></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 [...]]]></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>
	</channel>
</rss>
