<?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>itlivewire dev blog &#187; Others</title>
	<atom:link href="http://itlivewire.com/devblog/category/others/feed/" rel="self" type="application/rss+xml" />
	<link>http://itlivewire.com/devblog</link>
	<description>Just another web development blog...</description>
	<lastBuildDate>Mon, 23 Jan 2012 17:55:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Codeigniter how to display the query that was executed?</title>
		<link>http://itlivewire.com/devblog/2012/01/23/codeigniter-how-to-display-the-query-that-was-executed/</link>
		<comments>http://itlivewire.com/devblog/2012/01/23/codeigniter-how-to-display-the-query-that-was-executed/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 17:50:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://itlivewire.com/devblog/?p=481</guid>
		<description><![CDATA[To display the executed query using the codeigniter database class insert the line of code below echo $this->db->last_query(); $this->db->last_query(); //returns the last executed query &#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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- So if your code is like this $this->db->select('*'); $this->db->from('sales'); $query = $this->db->get(); echo $this->db->last_query(); // Adding echo $this->db->last_query(); will output the query on the page like this // SELECT * [...]]]></description>
			<content:encoded><![CDATA[<p>To display the executed query using the codeigniter database class<br />
insert the line of code below</p>
<p><strong>echo $this->db->last_query();</strong></p>
<p>$this->db->last_query(); //returns the last executed query<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;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
So if your code is like this </p>
<p><code>$this->db->select('*');<br />
$this->db->from('sales');<br />
$query = $this->db->get();<br />
echo $this->db->last_query();</code></p>
<p>// Adding <strong>echo $this->db->last_query();</strong> will output the query on the page like this </p>
<p>// SELECT * FROM sales;</p>
]]></content:encoded>
			<wfw:commentRss>http://itlivewire.com/devblog/2012/01/23/codeigniter-how-to-display-the-query-that-was-executed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a database backup using mysqldump and gzip</title>
		<link>http://itlivewire.com/devblog/2012/01/18/create-a-database-backup-using-mysqldump-and-gzip/</link>
		<comments>http://itlivewire.com/devblog/2012/01/18/create-a-database-backup-using-mysqldump-and-gzip/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 23:21:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://itlivewire.com/devblog/?p=469</guid>
		<description><![CDATA[mysqldump -u username -p Password database_name &#124; gzip &#62; database_backup.sql.gz]]></description>
			<content:encoded><![CDATA[<pre class="brush: php;">mysqldump -u username -p Password database_name | gzip &gt; database_backup.sql.gz</pre>
]]></content:encoded>
			<wfw:commentRss>http://itlivewire.com/devblog/2012/01/18/create-a-database-backup-using-mysqldump-and-gzip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a zip file and append the date on the filename in linux</title>
		<link>http://itlivewire.com/devblog/2011/12/29/create-a-zip-file-and-append-the-date-on-the-filename-in-linux/</link>
		<comments>http://itlivewire.com/devblog/2011/12/29/create-a-zip-file-and-append-the-date-on-the-filename-in-linux/#comments</comments>
		<pubDate>Thu, 29 Dec 2011 23:45:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://itlivewire.com/devblog/?p=464</guid>
		<description><![CDATA[When we backup we want to add a date on the filename to know when the file was created Try this line tar -zcvf database_backup_$(date +%m-%d-%Y).tar.gz /DB/data]]></description>
			<content:encoded><![CDATA[<p><strong>When we backup we want to add a date on the filename to know when the file was created</strong></p>
<p>Try this line</p>
<pre class="brush: php;">tar -zcvf database_backup_$(date +%m-%d-%Y).tar.gz /DB/data</pre>
]]></content:encoded>
			<wfw:commentRss>http://itlivewire.com/devblog/2011/12/29/create-a-zip-file-and-append-the-date-on-the-filename-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Duplicate entry for key PRIMARY on Auto_Increment</title>
		<link>http://itlivewire.com/devblog/2011/12/14/mysql-duplicate-entry-for-key-primary-on-auto_increment/</link>
		<comments>http://itlivewire.com/devblog/2011/12/14/mysql-duplicate-entry-for-key-primary-on-auto_increment/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 18:34:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Others]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://itlivewire.com/devblog/?p=452</guid>
		<description><![CDATA[Example errors: &#8220;Duplicate entry &#8217;123711155&#8242; for key &#8216;PRIMARY&#8217;&#8221; or &#8220;Duplicate entry &#8217;14676163&#8242; for key &#8217;1&#8242;&#8221; Most likely this happens for tables with more than 5 million records THE FIX The fix is to use repair table REPAIR TABLE &#60;TABLE_NAME&#62;; Note: Sometimes the duplicate error is also caused by your field type having the maximum value [...]]]></description>
			<content:encoded><![CDATA[<p>Example errors:</p>
<p>&#8220;Duplicate entry &#8217;123711155&#8242; for key &#8216;PRIMARY&#8217;&#8221; or &#8220;Duplicate entry &#8217;14676163&#8242; for key &#8217;1&#8242;&#8221;</p>
<p>Most likely this happens for tables with more than 5 million records</p>
<p>THE FIX</p>
<p>The fix is to use repair table </p>
<p><strong><code>REPAIR TABLE &lt;TABLE_NAME&gt;;</code></strong></p>
<p>Note: Sometimes the duplicate error is also caused by your field type having the maximum value already, for example in tinyint which has the maximum value of 127 so it better to use bigint for your auto ids, if this is not the case you can try the solution above.</p>
]]></content:encoded>
			<wfw:commentRss>http://itlivewire.com/devblog/2011/12/14/mysql-duplicate-entry-for-key-primary-on-auto_increment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Run a titanium project using the command line</title>
		<link>http://itlivewire.com/devblog/2011/11/09/run-a-titanium-project-using-the-command-line/</link>
		<comments>http://itlivewire.com/devblog/2011/11/09/run-a-titanium-project-using-the-command-line/#comments</comments>
		<pubDate>Wed, 09 Nov 2011 17:29:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://itlivewire.com/devblog/?p=443</guid>
		<description><![CDATA[1. Go to your titanium project folder then 2. Run this command python titanium.py run --platform=android --android=/path/to/android-sdk 3. It&#8217;s Done Note: Your titanium project folder should have the ff: build build.log LICENSE manifest README Resources tiapp.xml]]></description>
			<content:encoded><![CDATA[<p>1. Go to your titanium project folder</p>
<p>then</p>
<p>2. Run this command</p>
<pre class="brush: php;">python titanium.py run --platform=android --android=/path/to/android-sdk</pre>
<p>3. It&#8217;s Done</p>
<p>Note: Your titanium project folder should have the ff:</p>
<p>build  build.log  LICENSE  manifest  README  Resources  tiapp.xml</p>
]]></content:encoded>
			<wfw:commentRss>http://itlivewire.com/devblog/2011/11/09/run-a-titanium-project-using-the-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>svn connection refused</title>
		<link>http://itlivewire.com/devblog/2011/08/29/svn-connection-refused/</link>
		<comments>http://itlivewire.com/devblog/2011/08/29/svn-connection-refused/#comments</comments>
		<pubDate>Tue, 30 Aug 2011 03:37:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://itlivewire.com/devblog/?p=438</guid>
		<description><![CDATA[Most likely this is caused by a closed svn port on your svn server Login to your svn server then do the following 1. Check first if svn is running ps aux &#124; grep svnserve 2. If it is not running restart the svn service svnserve -d -r path_of_svn]]></description>
			<content:encoded><![CDATA[<p>Most likely this is caused by a closed svn port on your svn server</p>
<p>Login to your svn server then do the following</p>
<p>1. Check first if svn is running<br />
    <strong>ps aux | grep svnserve</strong></p>
<p>2. If it is not running restart the svn service<br />
    <strong>svnserve -d -r path_of_svn</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://itlivewire.com/devblog/2011/08/29/svn-connection-refused/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Android emulator delete an android virtual device</title>
		<link>http://itlivewire.com/devblog/2011/08/10/android-emulator-delete-an-android-virtual-device/</link>
		<comments>http://itlivewire.com/devblog/2011/08/10/android-emulator-delete-an-android-virtual-device/#comments</comments>
		<pubDate>Wed, 10 Aug 2011 10:26:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Others]]></category>
		<category><![CDATA[android]]></category>

		<guid isPermaLink="false">http://itlivewire.com/devblog/?p=433</guid>
		<description><![CDATA[Delete an android virtual device a.k.a AVD Type this on the terminal android delete avd -n name_of_device]]></description>
			<content:encoded><![CDATA[<p>Delete an android virtual device a.k.a AVD</p>
<p>Type this on the terminal</p>
<p><strong>android delete avd -n name_of_device </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://itlivewire.com/devblog/2011/08/10/android-emulator-delete-an-android-virtual-device/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Titanium mobile hide android title bar</title>
		<link>http://itlivewire.com/devblog/2011/07/19/titanium-mobile-hide-android-title-bar/</link>
		<comments>http://itlivewire.com/devblog/2011/07/19/titanium-mobile-hide-android-title-bar/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 10:26:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Others]]></category>
		<category><![CDATA["titanium mobile"]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://itlivewire.com/devblog/?p=431</guid>
		<description><![CDATA[Hide the android window title bar on Titanium mobile var win_home = Titanium.UI.createWindow({navBarHidden:true});]]></description>
			<content:encoded><![CDATA[<p>Hide the android window title bar on Titanium mobile</p>
<p><strong>var win_home = Titanium.UI.createWindow({navBarHidden:true});</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://itlivewire.com/devblog/2011/07/19/titanium-mobile-hide-android-title-bar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Titanium mobile Error generating R.java from manifest</title>
		<link>http://itlivewire.com/devblog/2011/07/19/titanium-mobile-error-generating-r-java-from-manifest/</link>
		<comments>http://itlivewire.com/devblog/2011/07/19/titanium-mobile-error-generating-r-java-from-manifest/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 10:08:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Others]]></category>

		<guid isPermaLink="false">http://itlivewire.com/devblog/?p=425</guid>
		<description><![CDATA[Possible cause you did not use the reverse domain name for the &#8220;&#8211;id&#8221; flag (i.e com.itlivewire.MyProject) In creating your titanium mobile project &#8220;&#8211;id&#8221; should be in reverse domain format e.g. python titanium.py create --platform=android --android=/path/to/android-sdk --id=com.itlivewire.MyProject --name=MyProject]]></description>
			<content:encoded><![CDATA[<p>Possible cause you did not use the reverse domain name for the &#8220;&#8211;id&#8221; flag (i.e com.itlivewire.MyProject)</p>
<p>In creating your titanium mobile project &#8220;&#8211;id&#8221; should be in reverse domain format<br />
e.g.</p>
<pre class="brush: php;">python titanium.py create --platform=android --android=/path/to/android-sdk --id=com.itlivewire.MyProject --name=MyProject</pre>
]]></content:encoded>
			<wfw:commentRss>http://itlivewire.com/devblog/2011/07/19/titanium-mobile-error-generating-r-java-from-manifest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Titanium mobile create a project using command line</title>
		<link>http://itlivewire.com/devblog/2011/07/19/titanium-mobile-create-a-project-using-command-line/</link>
		<comments>http://itlivewire.com/devblog/2011/07/19/titanium-mobile-create-a-project-using-command-line/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 09:24:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Others]]></category>
		<category><![CDATA["titanium mobile"]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[mobile]]></category>

		<guid isPermaLink="false">http://itlivewire.com/devblog/?p=414</guid>
		<description><![CDATA[Create a titanium mobile android project using command line titanium create --platform=android --android=/path/to/android-sdk --id=com.itlivewire.MyProject --name=MyProject or python titanium.py create --platform=android --android=/path/to/android-sdk --id=com.itlivewire.Myproject --name=MyProject]]></description>
			<content:encoded><![CDATA[<p>Create a titanium mobile android project using command line</p>
<pre class="brush: php;">titanium create --platform=android --android=/path/to/android-sdk --id=com.itlivewire.MyProject --name=MyProject</pre>
<p>or</p>
<pre class="brush: php;">python titanium.py create --platform=android --android=/path/to/android-sdk --id=com.itlivewire.Myproject --name=MyProject</pre>
]]></content:encoded>
			<wfw:commentRss>http://itlivewire.com/devblog/2011/07/19/titanium-mobile-create-a-project-using-command-line/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

