<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/atom10full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" gd:etag="W/&quot;AkAASXk-cSp7ImA9WhRRFE4.&quot;"><id>tag:blogger.com,1999:blog-1608335452484898439</id><updated>2011-11-28T00:05:48.759Z</updated><category term="Trac to Redmine" /><category term="Redmine" /><category term="Data Backup" /><category term="mysql.socket" /><category term="Apache and PHP5 on Mac" /><category term="MySql Replication" /><category term="Django (Python)" /><category term="Linux Ubuntu" /><category term="Selenium RC" /><category term="Django" /><category term="Multi-Threading" /><category term="MySQL in PHP" /><category term="PHPUnderControl" /><category term="Link Checker" /><category term="RESTful APIs" /><category term="Java" /><category term="Amazon Web Services" /><title>Programming Sharing Tips</title><subtitle type="html">Knowledge sharing on different aspects in programming. The main aim of this website is to keep track of all knowledge gained in one place, where it can be used for later on.</subtitle><link rel="http://schemas.google.com/g/2005#feed" type="application/atom+xml" href="http://hkshambesh.blogspot.com/feeds/posts/default" /><link rel="alternate" type="text/html" href="http://hkshambesh.blogspot.com/" /><link rel="next" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default?start-index=26&amp;max-results=25&amp;redirect=false&amp;v=2" /><author><name>Hussen Shambesh (Software Engineer)</name><uri>http://www.blogger.com/profile/11420652435208945091</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="22" height="32" src="http://1.bp.blogspot.com/_QS7b4J-CeFQ/SsI10PbYcPI/AAAAAAAAAAM/yPSHafisf8o/S220/me_as_sp_cartoon.gif" /></author><generator version="7.00" uri="http://www.blogger.com">Blogger</generator><openSearch:totalResults>27</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/atom+xml" href="http://feeds.feedburner.com/ProgrammingTipsAndInstructions" /><feedburner:info uri="programmingtipsandinstructions" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><entry gd:etag="W/&quot;CkQNSH8_fCp7ImA9WxBSFkg.&quot;"><id>tag:blogger.com,1999:blog-1608335452484898439.post-2707924235257831053</id><published>2009-12-24T10:26:00.000Z</published><updated>2009-12-24T10:26:39.144Z</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-12-24T10:26:39.144Z</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Linux Ubuntu" /><title>Shell Scripting</title><content type="html">To Use $RANDOM in Linux Ubuntu:&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;If you're using Edgy, you will have to make the first line of your script:&lt;/li&gt;
&lt;/ol&gt;&lt;pre&gt;#!/bin/bash
&lt;/pre&gt;&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;I do this for all of my scripts, and to make it global as well run this command:&lt;/li&gt;
&lt;/ol&gt;&lt;pre&gt;$ sudo dpkg-reconfigure dash
&lt;/pre&gt;&lt;br /&gt;
and answer no. Edgy's default shell interpreter is Dash, not Bash. That's why the $RANDOM did nto work before that.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1608335452484898439-2707924235257831053?l=hkshambesh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/RCt0dsVuU_hNvoEq0z_A2IRnleY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/RCt0dsVuU_hNvoEq0z_A2IRnleY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/RCt0dsVuU_hNvoEq0z_A2IRnleY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/RCt0dsVuU_hNvoEq0z_A2IRnleY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingTipsAndInstructions/~4/OV0c2wXV34Q" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hkshambesh.blogspot.com/feeds/2707924235257831053/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hkshambesh.blogspot.com/2009/12/shell-scripting.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/2707924235257831053?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/2707924235257831053?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ProgrammingTipsAndInstructions/~3/OV0c2wXV34Q/shell-scripting.html" title="Shell Scripting" /><author><name>Hussen Shambesh (Software Engineer)</name><uri>http://www.blogger.com/profile/11420652435208945091</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="22" height="32" src="http://1.bp.blogspot.com/_QS7b4J-CeFQ/SsI10PbYcPI/AAAAAAAAAAM/yPSHafisf8o/S220/me_as_sp_cartoon.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hkshambesh.blogspot.com/2009/12/shell-scripting.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A04GSH07eyp7ImA9WxNVFk4.&quot;"><id>tag:blogger.com,1999:blog-1608335452484898439.post-4017905532705379620</id><published>2009-10-27T10:38:00.000Z</published><updated>2009-10-27T10:38:49.303Z</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-27T10:38:49.303Z</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Java" /><category scheme="http://www.blogger.com/atom/ns#" term="Linux Ubuntu" /><title>JAVA in Ubuntu</title><content type="html">&lt;b&gt; Terminal Commands&lt;/b&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;/i&gt;&lt;ul&gt;&lt;li&gt;&lt;i&gt;&lt;b&gt;which java&lt;/b&gt;&lt;/i&gt; --&amp;gt; where abouts the java installed, e.g. /usr/lib/java&lt;/li&gt;
&lt;li&gt;&lt;i&gt;&lt;b&gt;export JAVA_HOME=/usr/bin/java&lt;/b&gt;&lt;/i&gt; --&amp;gt; Set JAVA_HOME path&lt;/li&gt;
&lt;li&gt;&lt;i&gt;&lt;b&gt;echo $JAVA_HOME&lt;/b&gt;&lt;/i&gt; --&amp;gt; checks where java home directory &lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1608335452484898439-4017905532705379620?l=hkshambesh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/y4_eHLl8wfsHjGk8e1VIz3FyEe4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/y4_eHLl8wfsHjGk8e1VIz3FyEe4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/y4_eHLl8wfsHjGk8e1VIz3FyEe4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/y4_eHLl8wfsHjGk8e1VIz3FyEe4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingTipsAndInstructions/~4/1NlDSY6bqlU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hkshambesh.blogspot.com/feeds/4017905532705379620/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hkshambesh.blogspot.com/2009/10/java-in-ubuntu.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/4017905532705379620?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/4017905532705379620?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ProgrammingTipsAndInstructions/~3/1NlDSY6bqlU/java-in-ubuntu.html" title="JAVA in Ubuntu" /><author><name>Hussen Shambesh (Software Engineer)</name><uri>http://www.blogger.com/profile/11420652435208945091</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="22" height="32" src="http://1.bp.blogspot.com/_QS7b4J-CeFQ/SsI10PbYcPI/AAAAAAAAAAM/yPSHafisf8o/S220/me_as_sp_cartoon.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hkshambesh.blogspot.com/2009/10/java-in-ubuntu.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DkYBR305fSp7ImA9WxNVEEk.&quot;"><id>tag:blogger.com,1999:blog-1608335452484898439.post-6978930304612754589</id><published>2009-10-20T14:08:00.001+01:00</published><updated>2009-10-20T14:09:16.325+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-20T14:09:16.325+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Trac to Redmine" /><title>Migrating from Trac to Redmine</title><content type="html">&lt;h2 id="Trac"&gt;&lt;span style="font-size: small;"&gt;Trac&lt;/span&gt;&lt;/h2&gt;&lt;span style="font-size: small;"&gt;The Trac importer migrates:&lt;/span&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;Users&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: small;"&gt;Components&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: small;"&gt;Milestones&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: small;"&gt;Tickets&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: small;"&gt;Ticket comments and changes (status and resolution)&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: small;"&gt;Trac specific fields (eg. Resolution) are added as custom fields in Redmine&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: small;"&gt;Ticket files and custom fields&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: small;"&gt;Wiki pages with history&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;span style="font-size: small;"&gt;Notes:&lt;/span&gt;&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;&lt;span style="font-size: small;"&gt;User passwords are all set to &lt;code&gt;trac&lt;/code&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: small;"&gt;Ticket ids are preserved if there's no ticket in your Redmine database yet&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style="font-size: small;"&gt;Custom fields are all created as text custom fields in Redmine&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;span style="font-size: small;"&gt;You need the sqlite-ruby gem to access the Trac database.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;&lt;span style="font-size: small;"&gt;     gem install sqlite-ruby&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;span style="font-size: small;"&gt;Before starting, you need a fresh Redmine database, &lt;b&gt;with default data loaded (required)&lt;/b&gt;. See Redmine installation by clicking on the left menu.&lt;/span&gt;&lt;span style="font-size: small;"&gt; &lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: small;"&gt;&lt;b&gt;Step 1:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
Run the following command, where test is your Redmine target environment:&lt;span style="font-size: small;"&gt;&lt;b&gt; &lt;br /&gt;
&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;pre&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;      rake redmine:migrate_from_trac RAILS_ENV="test"&lt;/code&gt;&lt;/pre&gt;&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: small;"&gt;&lt;b&gt;Step 2&lt;/b&gt;:&lt;/span&gt;&lt;br /&gt;
The script asks you for your Trac settings:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;Trac directory []: /var/trac/myproject
     Trac database adapter (sqlite, sqlite3, mysql, postgresql) [sqlite]:
     Database encoding [UTF-8]:
     Target project identifier []: myproject&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-size: small;"&gt;Trac directory is the root directory of your Trac environment.&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-size: small;"&gt;Redmine will look in this directory for &lt;code&gt;db/trac.db&lt;/code&gt; (if you choose&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-size: small;"&gt;sqlite/sqlite3 database) and the &lt;code&gt;attachments&lt;/code&gt; directory.
Whenusing a mysql or postgresql Trac database, the script will ask&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-size: small;"&gt;you for the connection parameters (host, database name, username and&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-size: small;"&gt;password). Targetproject identifier is the identifier of the Redmine project in which
the data will be loaded (the project is created if not found).&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;&lt;span style="font-size: small;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;&lt;pre&gt;The script gives you the total number of migrated objects.
Now, you should see a project called Myproject in Redmine with your&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;Trac data loaded in this project.&lt;span style="font-size: small;"&gt; 
&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1608335452484898439-6978930304612754589?l=hkshambesh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/DXIwJCrH6mvIzyJoOP8n_Y2Qkzk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/DXIwJCrH6mvIzyJoOP8n_Y2Qkzk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/DXIwJCrH6mvIzyJoOP8n_Y2Qkzk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/DXIwJCrH6mvIzyJoOP8n_Y2Qkzk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingTipsAndInstructions/~4/ivR-5qleDvM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hkshambesh.blogspot.com/feeds/6978930304612754589/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hkshambesh.blogspot.com/2009/10/migrating-from-trac-to-redmine.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/6978930304612754589?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/6978930304612754589?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ProgrammingTipsAndInstructions/~3/ivR-5qleDvM/migrating-from-trac-to-redmine.html" title="Migrating from Trac to Redmine" /><author><name>Hussen Shambesh (Software Engineer)</name><uri>http://www.blogger.com/profile/11420652435208945091</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="22" height="32" src="http://1.bp.blogspot.com/_QS7b4J-CeFQ/SsI10PbYcPI/AAAAAAAAAAM/yPSHafisf8o/S220/me_as_sp_cartoon.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hkshambesh.blogspot.com/2009/10/migrating-from-trac-to-redmine.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUUERXc6eSp7ImA9WxNVEEk.&quot;"><id>tag:blogger.com,1999:blog-1608335452484898439.post-2318595982324157543</id><published>2009-10-20T13:43:00.001+01:00</published><updated>2009-10-20T13:53:24.911+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-20T13:53:24.911+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="mysql.socket" /><category scheme="http://www.blogger.com/atom/ns#" term="Redmine" /><title>Where is mysql.socket in Ubuntu &amp; Debian?</title><content type="html">Its in &lt;b&gt;/var/run/mysqld/mysqld.sock&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;&lt;b&gt;OR&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;b&gt; &lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
Use &lt;b&gt;&lt;i&gt;mysql_config --socket &lt;/i&gt;&lt;/b&gt;in the command line to specify where the .sock file is.&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;FAQ:&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;While installing &lt;b&gt;Redmine&lt;/b&gt; Web tool, you will need to specify mysql.socket before creating the database structure by Editing the &lt;i&gt;database.yml&lt;/i&gt; file and entering the follow under the "&lt;i&gt;production&lt;/i&gt;"&lt;/li&gt;
&lt;/ul&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; production:&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; adapter: mysql&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;i&gt;socket: /var/run/mysqld/mysql.sock&lt;/i&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1608335452484898439-2318595982324157543?l=hkshambesh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/X30taY-4LRt2mLdAnxfGUB-SXsE/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/X30taY-4LRt2mLdAnxfGUB-SXsE/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/X30taY-4LRt2mLdAnxfGUB-SXsE/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/X30taY-4LRt2mLdAnxfGUB-SXsE/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingTipsAndInstructions/~4/vyBHypiwrHw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hkshambesh.blogspot.com/feeds/2318595982324157543/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hkshambesh.blogspot.com/2009/10/where-is-mysqlsocket-in-ubuntu-debian.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/2318595982324157543?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/2318595982324157543?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ProgrammingTipsAndInstructions/~3/vyBHypiwrHw/where-is-mysqlsocket-in-ubuntu-debian.html" title="Where is mysql.socket in Ubuntu &amp; Debian?" /><author><name>Hussen Shambesh (Software Engineer)</name><uri>http://www.blogger.com/profile/11420652435208945091</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="22" height="32" src="http://1.bp.blogspot.com/_QS7b4J-CeFQ/SsI10PbYcPI/AAAAAAAAAAM/yPSHafisf8o/S220/me_as_sp_cartoon.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hkshambesh.blogspot.com/2009/10/where-is-mysqlsocket-in-ubuntu-debian.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkcMSHw7cSp7ImA9WxNVEEk.&quot;"><id>tag:blogger.com,1999:blog-1608335452484898439.post-4236873294822789173</id><published>2009-10-20T13:01:00.000+01:00</published><updated>2009-10-20T13:01:29.209+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-20T13:01:29.209+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Redmine" /><title>Redmine</title><content type="html">&lt;a href="http://www.redmine.org/"&gt;Redmine&lt;/a&gt; is a flexible project management web application. Written using Ruby on Rails framework, it is cross-platform and cross-database.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Installation: &lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a class="wiki-page" href="http://www.redmine.org/wiki/redmine/Download"&gt;Download&lt;/a&gt; and extract the archive or &lt;a class="wiki-page" href="http://www.redmine.org/wiki/redmine/CheckingoutRedmine"&gt;checkout&lt;/a&gt; Redmine. &lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Create an empty database and accompanying user named &lt;code&gt;redmine&lt;/code&gt; for example.&lt;/li&gt;
&lt;/ul&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; For MySQL:&lt;br /&gt;
&lt;pre&gt;create database redmine character set utf8;
            create user 'redmine'@'localhost' identified by 'my_password';
            grant all privileges on redmine.* to 'redmine'@'localhost';&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;ul&gt;&lt;li&gt;Copy &lt;code&gt;config/database.yml.example&lt;/code&gt; to &lt;code&gt;config/database.yml&lt;/code&gt; and edit this file in order to configure your database settings for "production" environment.&lt;/li&gt;
&lt;/ul&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Example for a MySQL database:&lt;br /&gt;
&lt;pre&gt;production:
                      adapter: mysql
                      database: redmine
                      host: localhost
                      username: redmine
                      password: my_password
&lt;/pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Generate a session store secret.  This is only required on the &lt;strong&gt;trunk&lt;/strong&gt; version of Redmine at &lt;a class="changeset" href="http://www.redmine.org/projects/redmine/repository/revisions/2493" title="Merged Rails 2.2 branch. Redmine now requires Rails 2.2.2."&gt;r2493&lt;/a&gt; or above.  Users installing a released version of 0.8.x can skip this step.&lt;/li&gt;
&lt;li&gt;Redmine stores session data in cookies by default, which requires a secret to be generated. This can be done by running:&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;&lt;code&gt;           rake config/initializers/session_store.rb&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;&lt;li&gt;Create the database structure, by running the following command under the application root directory:&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;&lt;code&gt;           rake db:migrate RAILS_ENV="production"&lt;/code&gt;&lt;/pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; It will create tables and an administrator account.&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Insert default configuration data in database, by running the following command:&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;&lt;code&gt;           rake redmine:load_default_data RAILS_ENV="production"&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;&lt;li&gt;This step is optional but &lt;strong&gt;highly recommended&lt;/strong&gt;, as you can define your own configuration from scratch. It will load default roles, trackers, statuses, workflows and enumerations.&lt;/li&gt;
&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;Setting up permissions&lt;/li&gt;
&lt;/ul&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NB: &lt;em&gt;Windows users have to skip this section.&lt;/em&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The user who runs Redmine must have write permission on&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the following subdirectories: &lt;code&gt;files&lt;/code&gt;, &lt;code&gt;log&lt;/code&gt;, &lt;code&gt;tmp&lt;/code&gt; (create the&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; last one if not present).&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Assuming you run Redmine with a &lt;code&gt;redmine&lt;/code&gt; user:&lt;br /&gt;
&lt;pre&gt;mkdir tmp public/plugin_assets
                   sudo chown -R redmine:redmine files log tmp public/plugin_assets
                   sudo chmod -R 755 files log tmp public/plugin_assets
&lt;/pre&gt;&lt;ul&gt;&lt;li&gt;Test the installation by running WEBrick web server:&lt;/li&gt;
&lt;/ul&gt;&lt;pre&gt;&lt;code&gt;           ruby script/server webrick -e production&lt;/code&gt;&lt;/pre&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Once WEBrick has started, point your browser to &lt;a class="external" href="http://localhost:3000/"&gt;http://localhost:3000/&lt;/a&gt;.&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; You should now see the application welcome page.&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;Use default administrator account to log in:&lt;/li&gt;
&lt;/ul&gt;&lt;ul&gt;&lt;ul&gt;&lt;li&gt;login: admin&lt;/li&gt;
&lt;li&gt;password: admin&lt;/li&gt;
&lt;/ul&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;You can go to &lt;code&gt;Admin &amp;amp; Settings&lt;/code&gt; to modify application settings.&lt;/li&gt;
&lt;/ul&gt;ENJOY!&amp;nbsp;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1608335452484898439-4236873294822789173?l=hkshambesh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/0yLkL0OoIMTx48fmUaXemwKmhP8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0yLkL0OoIMTx48fmUaXemwKmhP8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/0yLkL0OoIMTx48fmUaXemwKmhP8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0yLkL0OoIMTx48fmUaXemwKmhP8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingTipsAndInstructions/~4/mDys-BoJuO4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hkshambesh.blogspot.com/feeds/4236873294822789173/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hkshambesh.blogspot.com/2009/10/redmine.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/4236873294822789173?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/4236873294822789173?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ProgrammingTipsAndInstructions/~3/mDys-BoJuO4/redmine.html" title="Redmine" /><author><name>Hussen Shambesh (Software Engineer)</name><uri>http://www.blogger.com/profile/11420652435208945091</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="22" height="32" src="http://1.bp.blogspot.com/_QS7b4J-CeFQ/SsI10PbYcPI/AAAAAAAAAAM/yPSHafisf8o/S220/me_as_sp_cartoon.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hkshambesh.blogspot.com/2009/10/redmine.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkEDSX07eip7ImA9WxNWF0w.&quot;"><id>tag:blogger.com,1999:blog-1608335452484898439.post-2193760884707037402</id><published>2009-10-16T11:46:00.002+01:00</published><updated>2009-10-16T17:31:18.302+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-16T17:31:18.302+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Django" /><category scheme="http://www.blogger.com/atom/ns#" term="Django (Python)" /><title>Create a FORM in Django</title><content type="html">&lt;pre&gt;&lt;b&gt;FORM OBJECTS: &lt;i&gt;put the code below in models.py&lt;/i&gt;&lt;/b&gt; 
&lt;/pre&gt;&lt;pre&gt;from django import forms

class ContactForm(forms.Form):
    subject = forms.CharField(max_length=100)
    message = forms.CharField()
    sender = forms.EmailField()
    cc_myself = forms.BooleanField(required=False)&lt;/pre&gt;&lt;pre&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/pre&gt;&lt;pre&gt;&lt;b&gt;Using a FORM in a VIEW: &lt;i&gt;put the code below in views.py&lt;/i&gt;&lt;/b&gt; 
&lt;/pre&gt;&lt;pre&gt;def contact(request):
    if request.method == 'POST': # If the form has been submitted...
        form = ContactForm(request.POST) # A form bound to the POST data
        if form.is_valid(): # All validation rules pass
            # Process the data in form.cleaned_data
            # ...&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;           form.save() # Will save the POST data in the Database
            return HttpResponseRedirect('/thanks/') # Redirect after POST
    else:
        form = ContactForm() # An unbound form

    return render_to_response('contact.html', {
        'form': form,
    })&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;b&gt;FORMS FIELD TYPES GO &lt;a href="http://docs.djangoproject.com/en/dev/topics/forms/modelforms/#field-types"&gt;HERE&lt;/a&gt;&lt;/b&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;&lt;pre&gt;&lt;b&gt;Displaying a form using template&lt;/b&gt; 
&lt;/pre&gt;&lt;pre&gt;&lt;form&gt;
{{ form.as_p }}&lt;/form&gt;
&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1608335452484898439-2193760884707037402?l=hkshambesh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/0XoGXVHeDLUlD1g3iuvdWn6_y-8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0XoGXVHeDLUlD1g3iuvdWn6_y-8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/0XoGXVHeDLUlD1g3iuvdWn6_y-8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0XoGXVHeDLUlD1g3iuvdWn6_y-8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingTipsAndInstructions/~4/gKcoMnoz4so" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hkshambesh.blogspot.com/feeds/2193760884707037402/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hkshambesh.blogspot.com/2009/10/create-form-in-django.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/2193760884707037402?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/2193760884707037402?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ProgrammingTipsAndInstructions/~3/gKcoMnoz4so/create-form-in-django.html" title="Create a FORM in Django" /><author><name>Hussen Shambesh (Software Engineer)</name><uri>http://www.blogger.com/profile/11420652435208945091</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="22" height="32" src="http://1.bp.blogspot.com/_QS7b4J-CeFQ/SsI10PbYcPI/AAAAAAAAAAM/yPSHafisf8o/S220/me_as_sp_cartoon.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hkshambesh.blogspot.com/2009/10/create-form-in-django.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0cDQX8_fCp7ImA9WxNWFEk.&quot;"><id>tag:blogger.com,1999:blog-1608335452484898439.post-8866857896353921839</id><published>2009-10-13T14:37:00.002+01:00</published><updated>2009-10-13T14:37:50.144+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-13T14:37:50.144+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MySql Replication" /><title>How do you set up master-master replication in MySQL?</title><content type="html">&lt;a href="http://crazytoon.com/2008/02/29/mysql-how-do-you-set-up-mastermaster-replication-in-mysql-centos-rhel-fedora/"&gt;http://crazytoon.com/2008/02/29/mysql-how-do-you-set-up-mastermaster-replication-in-mysql-centos-rhel-fedora/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1608335452484898439-8866857896353921839?l=hkshambesh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/-l5HkfQLea67hninlusKPH3_NFo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-l5HkfQLea67hninlusKPH3_NFo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/-l5HkfQLea67hninlusKPH3_NFo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/-l5HkfQLea67hninlusKPH3_NFo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingTipsAndInstructions/~4/gHesVbWikDE" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hkshambesh.blogspot.com/feeds/8866857896353921839/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hkshambesh.blogspot.com/2009/10/how-do-you-set-up-master-master.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/8866857896353921839?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/8866857896353921839?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ProgrammingTipsAndInstructions/~3/gHesVbWikDE/how-do-you-set-up-master-master.html" title="How do you set up master-master replication in MySQL?" /><author><name>Hussen Shambesh (Software Engineer)</name><uri>http://www.blogger.com/profile/11420652435208945091</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="22" height="32" src="http://1.bp.blogspot.com/_QS7b4J-CeFQ/SsI10PbYcPI/AAAAAAAAAAM/yPSHafisf8o/S220/me_as_sp_cartoon.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hkshambesh.blogspot.com/2009/10/how-do-you-set-up-master-master.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C08ARn8yfCp7ImA9WxNWE0k.&quot;"><id>tag:blogger.com,1999:blog-1608335452484898439.post-838192096023943073</id><published>2009-10-12T11:04:00.000+01:00</published><updated>2009-10-12T11:04:07.194+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-12T11:04:07.194+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MySql Replication" /><title>Fail-Over, Client Side</title><content type="html">&lt;a href="http://www.blogger.com/goog_1255341830310"&gt;&lt;/a&gt;&lt;a href="http://onlamp.com/pub/a/onlamp/2006/04/20/advanced-mysql-replication.html?page=6"&gt;http://onlamp.com/pub/a/onlamp/2006/04/20/advanced-mysql-replication.html?page=6&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1608335452484898439-838192096023943073?l=hkshambesh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/hObzj-s6ajMQylQcv73XXoKaUq4/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hObzj-s6ajMQylQcv73XXoKaUq4/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/hObzj-s6ajMQylQcv73XXoKaUq4/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/hObzj-s6ajMQylQcv73XXoKaUq4/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingTipsAndInstructions/~4/L35x5oRDLVs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hkshambesh.blogspot.com/feeds/838192096023943073/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hkshambesh.blogspot.com/2009/10/fail-over-client-side.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/838192096023943073?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/838192096023943073?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ProgrammingTipsAndInstructions/~3/L35x5oRDLVs/fail-over-client-side.html" title="Fail-Over, Client Side" /><author><name>Hussen Shambesh (Software Engineer)</name><uri>http://www.blogger.com/profile/11420652435208945091</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="22" height="32" src="http://1.bp.blogspot.com/_QS7b4J-CeFQ/SsI10PbYcPI/AAAAAAAAAAM/yPSHafisf8o/S220/me_as_sp_cartoon.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hkshambesh.blogspot.com/2009/10/fail-over-client-side.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C08FR3c6eyp7ImA9WxNWE0k.&quot;"><id>tag:blogger.com,1999:blog-1608335452484898439.post-8736192405579310642</id><published>2009-10-12T11:03:00.002+01:00</published><updated>2009-10-12T11:03:36.913+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-12T11:03:36.913+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MySql Replication" /><title>Measuring circular replication performance</title><content type="html">&lt;a href="http://onlamp.com/pub/a/onlamp/2006/04/20/advanced-mysql-replication.html?page=3"&gt;http://onlamp.com/pub/a/onlamp/2006/04/20/advanced-mysql-replication.html?page=3&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1608335452484898439-8736192405579310642?l=hkshambesh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/BTd9llY8aZxBtOUTR7HoGnZNfps/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BTd9llY8aZxBtOUTR7HoGnZNfps/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/BTd9llY8aZxBtOUTR7HoGnZNfps/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/BTd9llY8aZxBtOUTR7HoGnZNfps/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingTipsAndInstructions/~4/s0jVxa16ScU" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hkshambesh.blogspot.com/feeds/8736192405579310642/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hkshambesh.blogspot.com/2009/10/measuring-circular-replication.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/8736192405579310642?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/8736192405579310642?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ProgrammingTipsAndInstructions/~3/s0jVxa16ScU/measuring-circular-replication.html" title="Measuring circular replication performance" /><author><name>Hussen Shambesh (Software Engineer)</name><uri>http://www.blogger.com/profile/11420652435208945091</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="22" height="32" src="http://1.bp.blogspot.com/_QS7b4J-CeFQ/SsI10PbYcPI/AAAAAAAAAAM/yPSHafisf8o/S220/me_as_sp_cartoon.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hkshambesh.blogspot.com/2009/10/measuring-circular-replication.html</feedburner:origLink></entry><entry gd:etag="W/&quot;C0IMSX45eip7ImA9WxNWE0k.&quot;"><id>tag:blogger.com,1999:blog-1608335452484898439.post-310135150638560235</id><published>2009-10-12T10:59:00.002+01:00</published><updated>2009-10-12T10:59:48.022+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-12T10:59:48.022+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MySql Replication" /><title>Circular replication failure recovery</title><content type="html">&lt;a href="http://onlamp.com/pub/a/onlamp/2006/04/20/advanced-mysql-replication.html?page=5"&gt;http://onlamp.com/pub/a/onlamp/2006/04/20/advanced-mysql-replication.html?page=5&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1608335452484898439-310135150638560235?l=hkshambesh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/PwrgvNgF7jlRqouzOgYfcMzA9tQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PwrgvNgF7jlRqouzOgYfcMzA9tQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/PwrgvNgF7jlRqouzOgYfcMzA9tQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/PwrgvNgF7jlRqouzOgYfcMzA9tQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingTipsAndInstructions/~4/KYUEXoYI4ZY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hkshambesh.blogspot.com/feeds/310135150638560235/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hkshambesh.blogspot.com/2009/10/circular-replication-failure-recovery.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/310135150638560235?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/310135150638560235?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ProgrammingTipsAndInstructions/~3/KYUEXoYI4ZY/circular-replication-failure-recovery.html" title="Circular replication failure recovery" /><author><name>Hussen Shambesh (Software Engineer)</name><uri>http://www.blogger.com/profile/11420652435208945091</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="22" height="32" src="http://1.bp.blogspot.com/_QS7b4J-CeFQ/SsI10PbYcPI/AAAAAAAAAAM/yPSHafisf8o/S220/me_as_sp_cartoon.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hkshambesh.blogspot.com/2009/10/circular-replication-failure-recovery.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0AGQnc-fCp7ImA9WxNWFE4.&quot;"><id>tag:blogger.com,1999:blog-1608335452484898439.post-4427213522058681250</id><published>2009-10-12T10:37:00.004+01:00</published><updated>2009-10-13T14:15:23.954+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-13T14:15:23.954+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MySql Replication" /><title>Automatic Fail-Over</title><content type="html">&lt;ul&gt;&lt;li&gt;&lt;a href="http://onlamp.com/pub/a/onlamp/2006/04/20/advanced-mysql-replication.html?page=4"&gt;http://onlamp.com/pub/a/onlamp/2006/04/20/advanced-mysql-replication.html?page=4&lt;/a&gt; &lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href="http://forums.mysql.com/read.php?26,276312,276841#msg-276841"&gt;Failover Automatic - Master-Master Replication&lt;/a&gt; &lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1608335452484898439-4427213522058681250?l=hkshambesh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/0b1tWlMNOO2RbiHAFyKsGvfUOjU/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0b1tWlMNOO2RbiHAFyKsGvfUOjU/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/0b1tWlMNOO2RbiHAFyKsGvfUOjU/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0b1tWlMNOO2RbiHAFyKsGvfUOjU/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingTipsAndInstructions/~4/aWCfhHrPlyM" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hkshambesh.blogspot.com/feeds/4427213522058681250/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hkshambesh.blogspot.com/2009/10/automatic-fail-over.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/4427213522058681250?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/4427213522058681250?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ProgrammingTipsAndInstructions/~3/aWCfhHrPlyM/automatic-fail-over.html" title="Automatic Fail-Over" /><author><name>Hussen Shambesh (Software Engineer)</name><uri>http://www.blogger.com/profile/11420652435208945091</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="22" height="32" src="http://1.bp.blogspot.com/_QS7b4J-CeFQ/SsI10PbYcPI/AAAAAAAAAAM/yPSHafisf8o/S220/me_as_sp_cartoon.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hkshambesh.blogspot.com/2009/10/automatic-fail-over.html</feedburner:origLink></entry><entry gd:etag="W/&quot;DUYCQn49fCp7ImA9WxNWE04.&quot;"><id>tag:blogger.com,1999:blog-1608335452484898439.post-8239996577822229908</id><published>2009-10-09T11:34:00.001+01:00</published><updated>2009-10-12T09:46:03.064+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-12T09:46:03.064+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Data Backup" /><category scheme="http://www.blogger.com/atom/ns#" term="MySql Replication" /><title>Setting Up a Multimaster Replication System</title><content type="html">&lt;ul&gt;&lt;li&gt;Good tutorial &lt;a href="http://onlamp.com/onlamp/2006/04/20/advanced-mysql-replication.html"&gt;here&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://capttofu.livejournal.com/1752.html"&gt;Useful Tips&lt;/a&gt; by Patrick Galbraith&lt;/li&gt;
&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1608335452484898439-8239996577822229908?l=hkshambesh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/vG6W9sQQ_gsNM7_KsoX8abp3oEs/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/vG6W9sQQ_gsNM7_KsoX8abp3oEs/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/vG6W9sQQ_gsNM7_KsoX8abp3oEs/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/vG6W9sQQ_gsNM7_KsoX8abp3oEs/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingTipsAndInstructions/~4/rARhibM0OdQ" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hkshambesh.blogspot.com/feeds/8239996577822229908/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hkshambesh.blogspot.com/2009/10/setting-up-multimaster-replication.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/8239996577822229908?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/8239996577822229908?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ProgrammingTipsAndInstructions/~3/rARhibM0OdQ/setting-up-multimaster-replication.html" title="Setting Up a Multimaster Replication System" /><author><name>Hussen Shambesh (Software Engineer)</name><uri>http://www.blogger.com/profile/11420652435208945091</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="22" height="32" src="http://1.bp.blogspot.com/_QS7b4J-CeFQ/SsI10PbYcPI/AAAAAAAAAAM/yPSHafisf8o/S220/me_as_sp_cartoon.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hkshambesh.blogspot.com/2009/10/setting-up-multimaster-replication.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkEERHg8fyp7ImA9WxNWEEw.&quot;"><id>tag:blogger.com,1999:blog-1608335452484898439.post-8102768101806646522</id><published>2009-10-08T15:03:00.002+01:00</published><updated>2009-10-08T15:03:25.677+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-08T15:03:25.677+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MySql Replication" /><title>How To Set Up Database Replication In MySQL</title><content type="html">In the meantime please follow the link below&lt;br /&gt;
&lt;a href="http://www.howtoforge.com/mysql_database_replication"&gt;http://www.howtoforge.com/mysql_database_replication&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1608335452484898439-8102768101806646522?l=hkshambesh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Gk7hj1pQ61TRwxhFgsB8x6iF0V8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Gk7hj1pQ61TRwxhFgsB8x6iF0V8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Gk7hj1pQ61TRwxhFgsB8x6iF0V8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Gk7hj1pQ61TRwxhFgsB8x6iF0V8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingTipsAndInstructions/~4/ZuARV5QWYcc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hkshambesh.blogspot.com/feeds/8102768101806646522/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hkshambesh.blogspot.com/2009/10/how-to-set-up-database-replication-in.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/8102768101806646522?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/8102768101806646522?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ProgrammingTipsAndInstructions/~3/ZuARV5QWYcc/how-to-set-up-database-replication-in.html" title="How To Set Up Database Replication In MySQL" /><author><name>Hussen Shambesh (Software Engineer)</name><uri>http://www.blogger.com/profile/11420652435208945091</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="22" height="32" src="http://1.bp.blogspot.com/_QS7b4J-CeFQ/SsI10PbYcPI/AAAAAAAAAAM/yPSHafisf8o/S220/me_as_sp_cartoon.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hkshambesh.blogspot.com/2009/10/how-to-set-up-database-replication-in.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0UAR309fip7ImA9WxNXGU8.&quot;"><id>tag:blogger.com,1999:blog-1608335452484898439.post-5250059936114887803</id><published>2009-10-07T16:00:00.001+01:00</published><updated>2009-10-07T16:27:26.366+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-07T16:27:26.366+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Data Backup" /><title>Manage mySQL Backup Automatically</title><content type="html">A script to take daily, weekly and monthly backups of your MySQL databases using mysqldump. Features - Backup mutiple databases - Single backup file or to a seperate file for each DB - Compress backup files - Backup remote servers - E-mail logs and More..&lt;br /&gt;
&lt;br /&gt;
Please click &lt;a href="http://sourceforge.net/projects/automysqlbackup/"&gt;here&lt;/a&gt; to download the &lt;a href="http://sourceforge.net/projects/automysqlbackup/"&gt;automysqlbackup.sh&lt;/a&gt; script&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1608335452484898439-5250059936114887803?l=hkshambesh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/CeXruTC5xOhbLXlDKCXca2BuJw0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CeXruTC5xOhbLXlDKCXca2BuJw0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/CeXruTC5xOhbLXlDKCXca2BuJw0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/CeXruTC5xOhbLXlDKCXca2BuJw0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingTipsAndInstructions/~4/8jOg5gKnolw" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hkshambesh.blogspot.com/feeds/5250059936114887803/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hkshambesh.blogspot.com/2009/10/manage-mysql-backup-automatically.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/5250059936114887803?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/5250059936114887803?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ProgrammingTipsAndInstructions/~3/8jOg5gKnolw/manage-mysql-backup-automatically.html" title="Manage mySQL Backup Automatically" /><author><name>Hussen Shambesh (Software Engineer)</name><uri>http://www.blogger.com/profile/11420652435208945091</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="22" height="32" src="http://1.bp.blogspot.com/_QS7b4J-CeFQ/SsI10PbYcPI/AAAAAAAAAAM/yPSHafisf8o/S220/me_as_sp_cartoon.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hkshambesh.blogspot.com/2009/10/manage-mysql-backup-automatically.html</feedburner:origLink></entry><entry gd:etag="W/&quot;Dk8ARHczfCp7ImA9WxNXGEk.&quot;"><id>tag:blogger.com,1999:blog-1608335452484898439.post-8291461130583240553</id><published>2009-10-06T16:53:00.001+01:00</published><updated>2009-10-06T17:00:45.984+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-06T17:00:45.984+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Data Backup" /><title>How to Set Up Replication</title><content type="html">&lt;b&gt;follow the link below&lt;/b&gt;&lt;br /&gt;
&lt;a href="http://dev.mysql.com/doc/refman/5.0/en/replication-howto.html"&gt;http://dev.mysql.com/doc/refman/5.0/en/replication-howto.html&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1608335452484898439-8291461130583240553?l=hkshambesh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/tA6eAsVtnKfRsQKGERpeiHqRLj0/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/tA6eAsVtnKfRsQKGERpeiHqRLj0/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/tA6eAsVtnKfRsQKGERpeiHqRLj0/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/tA6eAsVtnKfRsQKGERpeiHqRLj0/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingTipsAndInstructions/~4/5i6Avr4VcKs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hkshambesh.blogspot.com/feeds/8291461130583240553/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hkshambesh.blogspot.com/2009/10/how-to-set-up-replication.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/8291461130583240553?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/8291461130583240553?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ProgrammingTipsAndInstructions/~3/5i6Avr4VcKs/how-to-set-up-replication.html" title="How to Set Up Replication" /><author><name>Hussen Shambesh (Software Engineer)</name><uri>http://www.blogger.com/profile/11420652435208945091</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="22" height="32" src="http://1.bp.blogspot.com/_QS7b4J-CeFQ/SsI10PbYcPI/AAAAAAAAAAM/yPSHafisf8o/S220/me_as_sp_cartoon.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hkshambesh.blogspot.com/2009/10/how-to-set-up-replication.html</feedburner:origLink></entry><entry gd:etag="W/&quot;A0MCR309fCp7ImA9WxNXGE4.&quot;"><id>tag:blogger.com,1999:blog-1608335452484898439.post-4610377190141180510</id><published>2009-10-06T10:07:00.003+01:00</published><updated>2009-10-06T15:31:06.364+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-06T15:31:06.364+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Data Backup" /><title>Data Backup</title><content type="html">&lt;b&gt;MySQL Backups using LVM Snapshots&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href="http://lenz.homelinux.org/mylvmbackup/" rel="nofollow"&gt;http://lenz.homelinux.org/mylvmbackup/&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://mike.kruckenberg.com/archives/2006/05/mysql_backups_u.html" rel="nofollow"&gt;http://mike.kruckenberg.com/archives/2006/05/mysql_backups_u.html&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://www.mysqlperformanceblog.com/2006/08/21/using-lvm-for-mysql-backup-and-replication-setup/" rel="nofollow"&gt;http://www.mysqlperformanceblog.com/2006/08/21/using-lvm-for-mysql-backup-and-replication-setup/&lt;/a&gt;&amp;nbsp;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://blog.dbadojo.com/2007/09/mysql-backups-using-lvm-snapshots.html" rel="nofollow"&gt;http://blog.dbadojo.com/2007/09/mysql-backups-using-lvm-snapshots.html&lt;/a&gt; &lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1608335452484898439-4610377190141180510?l=hkshambesh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/XHlqMB2_UTbqYjJx-aYGCASwINo/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/XHlqMB2_UTbqYjJx-aYGCASwINo/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/XHlqMB2_UTbqYjJx-aYGCASwINo/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/XHlqMB2_UTbqYjJx-aYGCASwINo/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingTipsAndInstructions/~4/gV0xrUDoShc" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hkshambesh.blogspot.com/feeds/4610377190141180510/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hkshambesh.blogspot.com/2009/10/data-backup.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/4610377190141180510?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/4610377190141180510?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ProgrammingTipsAndInstructions/~3/gV0xrUDoShc/data-backup.html" title="Data Backup" /><author><name>Hussen Shambesh (Software Engineer)</name><uri>http://www.blogger.com/profile/11420652435208945091</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="22" height="32" src="http://1.bp.blogspot.com/_QS7b4J-CeFQ/SsI10PbYcPI/AAAAAAAAAAM/yPSHafisf8o/S220/me_as_sp_cartoon.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hkshambesh.blogspot.com/2009/10/data-backup.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0YBRH44eSp7ImA9WxNXFko.&quot;"><id>tag:blogger.com,1999:blog-1608335452484898439.post-1038886919093223272</id><published>2009-10-04T17:52:00.000+01:00</published><updated>2009-10-04T17:52:35.031+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-04T17:52:35.031+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Apache and PHP5 on Mac" /><title>Configure Apache on Mac</title><content type="html">&lt;ol&gt;&lt;li&gt;By default, Apache is turned off. To start it, got to your &lt;span style="font-weight: bold;"&gt;System Preferences&lt;/span&gt;, click on &lt;span style="font-weight: bold;"&gt;Sharing&lt;/span&gt;, and then check the &lt;span style="font-weight: bold;"&gt;Web Sharing&lt;/span&gt; checkbox in the list of services.&lt;/li&gt;
&lt;li&gt;Start, Stop and Restart Apache from the command line &lt;b&gt;&lt;i&gt;sudo apachectl start &lt;/i&gt;&lt;/b&gt;or &lt;i&gt;&lt;b&gt;sudo apachectl stop &lt;/b&gt;&lt;/i&gt;or &lt;i&gt;&lt;b&gt;sudo apachectl restart&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1608335452484898439-1038886919093223272?l=hkshambesh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/Xu2ieaV14iN5SSk3fgNa3_mNryw/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Xu2ieaV14iN5SSk3fgNa3_mNryw/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/Xu2ieaV14iN5SSk3fgNa3_mNryw/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/Xu2ieaV14iN5SSk3fgNa3_mNryw/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingTipsAndInstructions/~4/1MtVy6dkKHk" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hkshambesh.blogspot.com/feeds/1038886919093223272/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hkshambesh.blogspot.com/2009/10/configure-apache-on-mac.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/1038886919093223272?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/1038886919093223272?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ProgrammingTipsAndInstructions/~3/1MtVy6dkKHk/configure-apache-on-mac.html" title="Configure Apache on Mac" /><author><name>Hussen Shambesh (Software Engineer)</name><uri>http://www.blogger.com/profile/11420652435208945091</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="22" height="32" src="http://1.bp.blogspot.com/_QS7b4J-CeFQ/SsI10PbYcPI/AAAAAAAAAAM/yPSHafisf8o/S220/me_as_sp_cartoon.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hkshambesh.blogspot.com/2009/10/configure-apache-on-mac.html</feedburner:origLink></entry><entry gd:etag="W/&quot;AkMAR349fip7ImA9WxNWFkU.&quot;"><id>tag:blogger.com,1999:blog-1608335452484898439.post-6471694997756882824</id><published>2009-10-02T10:25:00.001+01:00</published><updated>2009-10-16T11:20:46.066+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-16T11:20:46.066+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="RESTful APIs" /><title>RESTful APIs</title><content type="html">&lt;b&gt;Django-Piston&lt;/b&gt;:&lt;br /&gt;
A mini-framework for Django for creating RESTful APIs. Piston is a relatively small Django application that lets you create application programming interfaces (API) for your sites. For usage follow the steps:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Install it from &lt;a href="http://bitbucket.org/jespern/django-piston/downloads/django-piston-0.2.2.tar.gz"&gt;here&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;For full documentation click &lt;a href="http://bitbucket.org/jespern/django-piston/wiki/Documentation#piston-documentation"&gt;here&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1608335452484898439-6471694997756882824?l=hkshambesh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/TOew677JwWGh-r6FfKcd-rk03Pk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/TOew677JwWGh-r6FfKcd-rk03Pk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/TOew677JwWGh-r6FfKcd-rk03Pk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/TOew677JwWGh-r6FfKcd-rk03Pk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingTipsAndInstructions/~4/G74V0Pn_t_A" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hkshambesh.blogspot.com/feeds/6471694997756882824/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hkshambesh.blogspot.com/2009/10/restful-apis.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/6471694997756882824?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/6471694997756882824?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ProgrammingTipsAndInstructions/~3/G74V0Pn_t_A/restful-apis.html" title="RESTful APIs" /><author><name>Hussen Shambesh (Software Engineer)</name><uri>http://www.blogger.com/profile/11420652435208945091</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="22" height="32" src="http://1.bp.blogspot.com/_QS7b4J-CeFQ/SsI10PbYcPI/AAAAAAAAAAM/yPSHafisf8o/S220/me_as_sp_cartoon.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hkshambesh.blogspot.com/2009/10/restful-apis.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CE8FSHY7fip7ImA9WxNXFEo.&quot;"><id>tag:blogger.com,1999:blog-1608335452484898439.post-5610280501405076160</id><published>2009-10-01T11:32:00.002+01:00</published><updated>2009-10-02T09:40:19.806+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-02T09:40:19.806+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Linux Ubuntu" /><title>Linux Ubuntu 9.04 Useful Commands Tips</title><content type="html">&lt;ul&gt;&lt;li&gt;&lt;b&gt;&lt;i&gt;ctrl+h&lt;/i&gt;&lt;/b&gt; to reveal hidden folders.&lt;/li&gt;
&lt;li&gt;&lt;i&gt;In terminal: &lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/i&gt;&lt;/li&gt;

&lt;ul&gt;&lt;li&gt;Use &lt;i&gt;&lt;b&gt;sudo&lt;/b&gt;&lt;/i&gt; for root directory&amp;nbsp;&amp;nbsp;&lt;i&gt;&lt;b&gt; &lt;br /&gt;
&lt;/b&gt;&lt;/i&gt;&lt;/li&gt;
&lt;li&gt;&lt;i&gt;&lt;b&gt;sudo apt-get install PACKAGENAME&lt;/b&gt; &lt;/i&gt;to install software package&lt;/li&gt;
&lt;li&gt;&lt;i&gt;&lt;b&gt;sudo rm -r &lt;/b&gt;&lt;b&gt;DIRECTORY&lt;/b&gt;&lt;/i&gt; to delete folder and its content files&lt;/li&gt;
&lt;li&gt;&lt;i&gt;&lt;b&gt;sudo mkdir -p DIRECTORY&lt;/b&gt;&lt;/i&gt; to create new folder&lt;/li&gt;
&lt;li&gt;&lt;i&gt;&lt;b&gt;sudo nano FILENAME.TYPE&lt;/b&gt;&lt;/i&gt; to create new file with data init&lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;&lt;b&gt;System -&amp;gt; Administration -&amp;gt; Synaptic Package Manager&lt;/b&gt; to install software packages manually&lt;/li&gt;
&lt;/ul&gt;&lt;blink&gt;&lt;span style="color: red;"&gt;Extra stuff will be added on regular basis! Please feel free to comment more stuff, which I will add to this post after verification.&lt;/span&gt;&lt;/blink&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1608335452484898439-5610280501405076160?l=hkshambesh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/44Cw8rA_AGMkRLcYWWABSmy_rUY/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/44Cw8rA_AGMkRLcYWWABSmy_rUY/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/44Cw8rA_AGMkRLcYWWABSmy_rUY/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/44Cw8rA_AGMkRLcYWWABSmy_rUY/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingTipsAndInstructions/~4/8hsAcWVhOXY" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hkshambesh.blogspot.com/feeds/5610280501405076160/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hkshambesh.blogspot.com/2009/10/linux-ubuntu-904-useful-commands-tips.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/5610280501405076160?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/5610280501405076160?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ProgrammingTipsAndInstructions/~3/8hsAcWVhOXY/linux-ubuntu-904-useful-commands-tips.html" title="Linux Ubuntu 9.04 Useful Commands Tips" /><author><name>Hussen Shambesh (Software Engineer)</name><uri>http://www.blogger.com/profile/11420652435208945091</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="22" height="32" src="http://1.bp.blogspot.com/_QS7b4J-CeFQ/SsI10PbYcPI/AAAAAAAAAAM/yPSHafisf8o/S220/me_as_sp_cartoon.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hkshambesh.blogspot.com/2009/10/linux-ubuntu-904-useful-commands-tips.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CE4CQnYyfCp7ImA9WxNXFEo.&quot;"><id>tag:blogger.com,1999:blog-1608335452484898439.post-2678116499447583342</id><published>2009-09-30T11:51:00.001+01:00</published><updated>2009-10-02T09:42:43.894+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-02T09:42:43.894+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Amazon Web Services" /><title>Cloud Computing Amazon Reviews</title><content type="html">Any reviews about the Amazon Elastic Compute Cloud (Amazon EC2), as I want to use it for hosting. Please comment your views. thanks.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1608335452484898439-2678116499447583342?l=hkshambesh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/eLjwbS-OWCZQ-O-cY1mR6VV-Eb8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/eLjwbS-OWCZQ-O-cY1mR6VV-Eb8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/eLjwbS-OWCZQ-O-cY1mR6VV-Eb8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/eLjwbS-OWCZQ-O-cY1mR6VV-Eb8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingTipsAndInstructions/~4/N71J35Zd2o8" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hkshambesh.blogspot.com/feeds/2678116499447583342/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hkshambesh.blogspot.com/2009/09/cloud-computing-amazon-reviews.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/2678116499447583342?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/2678116499447583342?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ProgrammingTipsAndInstructions/~3/N71J35Zd2o8/cloud-computing-amazon-reviews.html" title="Cloud Computing Amazon Reviews" /><author><name>Hussen Shambesh (Software Engineer)</name><uri>http://www.blogger.com/profile/11420652435208945091</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="22" height="32" src="http://1.bp.blogspot.com/_QS7b4J-CeFQ/SsI10PbYcPI/AAAAAAAAAAM/yPSHafisf8o/S220/me_as_sp_cartoon.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hkshambesh.blogspot.com/2009/09/cloud-computing-amazon-reviews.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CkUDQXg4fCp7ImA9WxNXGE8.&quot;"><id>tag:blogger.com,1999:blog-1608335452484898439.post-6308969012924008845</id><published>2009-09-30T11:35:00.012+01:00</published><updated>2009-10-06T10:11:10.634+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-06T10:11:10.634+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Django" /><title>Django (Python Framework) Useful Tips</title><content type="html">&lt;b&gt;Using the Command line:  &lt;/b&gt;&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;&lt;b&gt;Django Installation look at&lt;/b&gt; &lt;a href="http://docs.djangoproject.com/en/dev/intro/install/#intro-install"&gt;Installation Guide&lt;/a&gt;&amp;nbsp; &lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Creating Project:&amp;nbsp;&lt;/b&gt; &lt;i&gt;python django-admin.py startproject MYSITE&lt;/i&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Creating Module(Class): &lt;/b&gt;&lt;i&gt;python manage.py startapp CLASSNAME&lt;/i&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Update DB: &lt;/b&gt;&lt;i&gt;python manage.py syncdb&lt;br /&gt;
&lt;/i&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Run Django Server: &lt;/b&gt;&lt;i&gt;python manage.py runserver&lt;/i&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;b&gt;View Models in SQL: &lt;/b&gt;&lt;i&gt;python manage.py sql MODELNAME&lt;/i&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Validate SQL Models: &lt;/b&gt;&lt;i&gt;python manage.py validate&lt;/i&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Create tables in DB:&lt;/b&gt;&lt;i&gt;run No.6 then No.4&lt;br /&gt;
&lt;/i&gt;&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Shell Access: &lt;/b&gt;&lt;i&gt;python manage.py shell&lt;/i&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;b&gt;Django Debug Toolbar:&lt;/b&gt;&lt;br /&gt;
&lt;div style="text-align: justify;"&gt;The Django Debug Toolbar is a configurable set of panels that display various debug information about the current request/response.&amp;nbsp; It is a small toolbar that, when activated, situates itself in the top-right location of the browser window. When particular panels are clicked, more details about that panel's content are displayed. For Installation follow the steps below:&lt;br /&gt;
&lt;/div&gt;&lt;div style="text-align: justify;"&gt;&lt;ol&gt;&lt;li&gt;Download the package from &lt;a href="http://github.com/dcramer/django-debug-toolbar"&gt;here&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Install &lt;b&gt;python-profile&lt;/b&gt; from the &lt;a href="http://hkshambesh.blogspot.com/2009/10/linux-ubuntu-904-useful-commands-tips.html"&gt;Synaptic Package Manager&lt;/a&gt; &lt;/li&gt;
&lt;li&gt;Add the &lt;b&gt;&lt;i&gt;debug_toolbar&lt;/i&gt;&lt;/b&gt; directory to your Django python project directory.&lt;/li&gt;
&lt;li&gt;Add the following middleware to your project's &lt;b&gt;&lt;i&gt;settings.py&lt;/i&gt;&lt;/b&gt; file:&lt;/li&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;i&gt;'debug_toolbar.middleware.DebugToolbarMiddleware',&lt;/i&gt;
&lt;li&gt;Add &lt;i&gt;&lt;b&gt;debug_toolbar&lt;/b&gt;&lt;/i&gt; to your &lt;b&gt;INSTALLED_APPS&lt;/b&gt; setting so Django can find the template files associated with the Debug Toolbar.&lt;/li&gt;
&lt;li&gt;Run Django server&amp;nbsp;&lt;/li&gt;
&lt;li&gt;Open your Django project URL e.g. http://localhost:8000/admin if your admin page is activated&lt;/li&gt;
&lt;/ol&gt;&lt;b&gt;Django-Piston&lt;/b&gt;:&lt;br /&gt;
A mini-framework for Django for creating RESTful APIs. Piston is a relatively small Django application that lets you create application programming interfaces (API) for your sites. For usage follow the steps:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;Install it from &lt;a href="http://bitbucket.org/jespern/django-piston/downloads/django-piston-0.2.2.tar.gz"&gt;here&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;For full documentation click &lt;a href="http://bitbucket.org/jespern/django-piston/wiki/Documentation#piston-documentation"&gt;here&lt;/a&gt;&lt;br /&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;b&gt;Django Python Comment Code:&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;&lt;b&gt;#&lt;/b&gt; for one line comment&lt;/li&gt;
&lt;li&gt;&lt;b&gt;""" &lt;/b&gt;&lt;i&gt;code&lt;/i&gt;&lt;b&gt; """&lt;/b&gt; for whole set &lt;br /&gt;
&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1608335452484898439-6308969012924008845?l=hkshambesh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/6jtU3rsYzRCG_q7eQaTBr53Ot7U/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6jtU3rsYzRCG_q7eQaTBr53Ot7U/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/6jtU3rsYzRCG_q7eQaTBr53Ot7U/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/6jtU3rsYzRCG_q7eQaTBr53Ot7U/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingTipsAndInstructions/~4/YgG5CuGTn9k" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hkshambesh.blogspot.com/feeds/6308969012924008845/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hkshambesh.blogspot.com/2009/09/django-python-framework-useful-command.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/6308969012924008845?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/6308969012924008845?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ProgrammingTipsAndInstructions/~3/YgG5CuGTn9k/django-python-framework-useful-command.html" title="Django (Python Framework) Useful Tips" /><author><name>Hussen Shambesh (Software Engineer)</name><uri>http://www.blogger.com/profile/11420652435208945091</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="22" height="32" src="http://1.bp.blogspot.com/_QS7b4J-CeFQ/SsI10PbYcPI/AAAAAAAAAAM/yPSHafisf8o/S220/me_as_sp_cartoon.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hkshambesh.blogspot.com/2009/09/django-python-framework-useful-command.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D08MRX8yfip7ImA9WxNXGE8.&quot;"><id>tag:blogger.com,1999:blog-1608335452484898439.post-617951334097927394</id><published>2009-09-30T09:56:00.020+01:00</published><updated>2009-10-06T11:44:44.196+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-06T11:44:44.196+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Django" /><title>Web Services in Python + Django</title><content type="html">&lt;b&gt;&lt;a href="http://bitbucket.org/jespern/django-piston/wiki/Documentation#piston-documentation"&gt;Using the Django-Piston&lt;/a&gt;: &lt;/b&gt; lets you easily create programmatic RESTful APIs for your Django website.Getting Started:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Step 1:&lt;/b&gt;&lt;br /&gt;
place your API code in a separate folder, e.g. 'api'. &lt;br /&gt;
Your application layout could look like this:&lt;br /&gt;
&lt;br /&gt;
&lt;div style="text-align: left;"&gt;&lt;pre&gt;&lt;i&gt;urls.py
settings.py
myapp/
   __init__.py
   views.py
   models.py
api/
   __init__.py
   urls.py
   handlers.py&lt;/i&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;b&gt;Step 2:&lt;/b&gt;&lt;br /&gt;
place your API code in a separate folder, e.g. 'api'. &lt;br /&gt;
Your application layout could look like this:&lt;br /&gt;
&lt;br /&gt;
&lt;pre&gt;urlpatterns = patterns('',
&lt;a href="http://www.blogger.com/post-edit.g?blogID=1608335452484898439&amp;amp;postID=617951334097927394" name="cl-2"&gt;&lt;/a&gt;   # all my other url mappings
&lt;a href="http://www.blogger.com/post-edit.g?blogID=1608335452484898439&amp;amp;postID=617951334097927394" name="cl-3"&gt;&lt;/a&gt;   (r'^api/', include('mysite.api.urls')),
&lt;a href="http://www.blogger.com/post-edit.g?blogID=1608335452484898439&amp;amp;postID=617951334097927394" name="cl-4"&gt;&lt;/a&gt;)
&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;br /&gt;
&lt;pre&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1608335452484898439-617951334097927394?l=hkshambesh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/suHm1OjLJpbQ2MiteOh_VBLi7Lk/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/suHm1OjLJpbQ2MiteOh_VBLi7Lk/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/suHm1OjLJpbQ2MiteOh_VBLi7Lk/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/suHm1OjLJpbQ2MiteOh_VBLi7Lk/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingTipsAndInstructions/~4/dw9UN1Vdfqs" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hkshambesh.blogspot.com/feeds/617951334097927394/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hkshambesh.blogspot.com/2009/09/web-services-in-python-django.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/617951334097927394?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/617951334097927394?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ProgrammingTipsAndInstructions/~3/dw9UN1Vdfqs/web-services-in-python-django.html" title="Web Services in Python + Django" /><author><name>Hussen Shambesh (Software Engineer)</name><uri>http://www.blogger.com/profile/11420652435208945091</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="22" height="32" src="http://1.bp.blogspot.com/_QS7b4J-CeFQ/SsI10PbYcPI/AAAAAAAAAAM/yPSHafisf8o/S220/me_as_sp_cartoon.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hkshambesh.blogspot.com/2009/09/web-services-in-python-django.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUcHSHc4eip7ImA9WxNXFEo.&quot;"><id>tag:blogger.com,1999:blog-1608335452484898439.post-1083355626870127887</id><published>2009-09-29T23:08:00.004+01:00</published><updated>2009-10-02T09:43:59.932+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-02T09:43:59.932+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Link Checker" /><title>Web Link Checker (Spider Crawler Program)</title><content type="html">I developed my own spider crawler program to spider my website and checks if there are any broken links but it is not very powerful. I did a research and found many available programs out there, which are written in PHP, C, Python and lot more, but the problem is that I am looking for a program that POST Data forms by submit then spider the rest of the website, as I have a Login Page at the start, which is required.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style="color: red;"&gt;Any help guys!&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1608335452484898439-1083355626870127887?l=hkshambesh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/0bEOaXdTpWRQuQUcE46pSLP2zX8/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0bEOaXdTpWRQuQUcE46pSLP2zX8/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/0bEOaXdTpWRQuQUcE46pSLP2zX8/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/0bEOaXdTpWRQuQUcE46pSLP2zX8/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingTipsAndInstructions/~4/7uJx2DsN9A4" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hkshambesh.blogspot.com/feeds/1083355626870127887/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hkshambesh.blogspot.com/2009/09/web-link-checker-spider-crawler-program.html#comment-form" title="1 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/1083355626870127887?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/1083355626870127887?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ProgrammingTipsAndInstructions/~3/7uJx2DsN9A4/web-link-checker-spider-crawler-program.html" title="Web Link Checker (Spider Crawler Program)" /><author><name>Hussen Shambesh (Software Engineer)</name><uri>http://www.blogger.com/profile/11420652435208945091</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="22" height="32" src="http://1.bp.blogspot.com/_QS7b4J-CeFQ/SsI10PbYcPI/AAAAAAAAAAM/yPSHafisf8o/S220/me_as_sp_cartoon.gif" /></author><thr:total>1</thr:total><feedburner:origLink>http://hkshambesh.blogspot.com/2009/09/web-link-checker-spider-crawler-program.html</feedburner:origLink></entry><entry gd:etag="W/&quot;D0ABRXY8eip7ImA9WxNWE04.&quot;"><id>tag:blogger.com,1999:blog-1608335452484898439.post-8759104932706745596</id><published>2009-09-29T23:00:00.004+01:00</published><updated>2009-10-12T09:22:34.872+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-12T09:22:34.872+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="Multi-Threading" /><title>Multi-Threading</title><content type="html">Useful tip on &lt;a href="http://www.python.org/doc/faq/library/#threads"&gt;here&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1608335452484898439-8759104932706745596?l=hkshambesh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/oXde3pKvonJTX0Vi0FlhRosj8TM/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/oXde3pKvonJTX0Vi0FlhRosj8TM/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/oXde3pKvonJTX0Vi0FlhRosj8TM/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/oXde3pKvonJTX0Vi0FlhRosj8TM/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingTipsAndInstructions/~4/QmIwFCWlk5Y" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hkshambesh.blogspot.com/feeds/8759104932706745596/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hkshambesh.blogspot.com/2009/09/multi-threading.html#comment-form" title="0 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/8759104932706745596?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/8759104932706745596?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ProgrammingTipsAndInstructions/~3/QmIwFCWlk5Y/multi-threading.html" title="Multi-Threading" /><author><name>Hussen Shambesh (Software Engineer)</name><uri>http://www.blogger.com/profile/11420652435208945091</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="22" height="32" src="http://1.bp.blogspot.com/_QS7b4J-CeFQ/SsI10PbYcPI/AAAAAAAAAAM/yPSHafisf8o/S220/me_as_sp_cartoon.gif" /></author><thr:total>0</thr:total><feedburner:origLink>http://hkshambesh.blogspot.com/2009/09/multi-threading.html</feedburner:origLink></entry><entry gd:etag="W/&quot;CUYEQ3g7eyp7ImA9WxNXFEo.&quot;"><id>tag:blogger.com,1999:blog-1608335452484898439.post-920752465874070022</id><published>2009-09-29T22:58:00.002+01:00</published><updated>2009-10-02T09:45:02.603+01:00</updated><app:edited xmlns:app="http://www.w3.org/2007/app">2009-10-02T09:45:02.603+01:00</app:edited><category scheme="http://www.blogger.com/atom/ns#" term="MySQL in PHP" /><title>PHP + MySQL</title><content type="html">&lt;b&gt;&lt;span style="font-size: small;"&gt;1) Connect to Database&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $con = mysql_connect('YourDBHost', 'YourUsername', 'YourPassword');&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!$con)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; die('Could not connect: ' . mysql_error());&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style="font-size: small;"&gt;2) Destroy Database&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $sql = 'DROP DATABASE yourDBName';&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (mysql_query($sql, $con))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "Database &lt;/span&gt;&lt;span style="font-size: small;"&gt;yourDBName&lt;/span&gt;&lt;span style="font-size: small;"&gt; was successfully dropped\n";&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; } else&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo 'Error dropping database: ' . mysql_error() . "\n";&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style="font-size: small;"&gt;3) Create Database&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $sql = 'CREATE DATABASE &lt;/span&gt;&lt;span style="font-size: small;"&gt;yourNewDBName&lt;/span&gt;&lt;span style="font-size: small;"&gt;';&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (mysql_query($sql, $con))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "Database &lt;/span&gt;&lt;span style="font-size: small;"&gt;yourNewDBName&lt;/span&gt;&lt;span style="font-size: small;"&gt; created successfully\n";&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; } else&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo 'Error creating database: ' . mysql_error() . "\n";&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: small;"&gt;&lt;b&gt;4) Executing .sql file that contains more then one query from PHP&lt;/b&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: small;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $file = 'your file path';&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!file_exists($file)) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "The file $file does not exist.";&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $str = file_get_contents($file);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; if (!$str) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "Unable to read the contents of $file.";&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; $sql = explode(';', $str);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; mysql_select_db('your database name', $con);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; foreach ($sql as $query)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (mysql_query($query, $con))&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "Database tables added successfully\n";&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo 'Error adding tables to database: ' . mysql_error() . "\n";&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;span style="font-size: small;"&gt;&lt;br /&gt;
&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1608335452484898439-920752465874070022?l=hkshambesh.blogspot.com' alt='' /&gt;&lt;/div&gt;
&lt;p&gt;&lt;a href="http://feedads.g.doubleclick.net/~a/yUZ2NnOTpAmJN1qVV7bX4JCLNtQ/0/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/yUZ2NnOTpAmJN1qVV7bX4JCLNtQ/0/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href="http://feedads.g.doubleclick.net/~a/yUZ2NnOTpAmJN1qVV7bX4JCLNtQ/1/da"&gt;&lt;img src="http://feedads.g.doubleclick.net/~a/yUZ2NnOTpAmJN1qVV7bX4JCLNtQ/1/di" border="0" ismap="true"&gt;&lt;/img&gt;&lt;/a&gt;&lt;/p&gt;&lt;img src="http://feeds.feedburner.com/~r/ProgrammingTipsAndInstructions/~4/rfDyilK9X9c" height="1" width="1"/&gt;</content><link rel="replies" type="application/atom+xml" href="http://hkshambesh.blogspot.com/feeds/920752465874070022/comments/default" title="Post Comments" /><link rel="replies" type="text/html" href="http://hkshambesh.blogspot.com/2009/09/php-mysql.html#comment-form" title="2 Comments" /><link rel="edit" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/920752465874070022?v=2" /><link rel="self" type="application/atom+xml" href="http://www.blogger.com/feeds/1608335452484898439/posts/default/920752465874070022?v=2" /><link rel="alternate" type="text/html" href="http://feedproxy.google.com/~r/ProgrammingTipsAndInstructions/~3/rfDyilK9X9c/php-mysql.html" title="PHP + MySQL" /><author><name>Hussen Shambesh (Software Engineer)</name><uri>http://www.blogger.com/profile/11420652435208945091</uri><email>noreply@blogger.com</email><gd:image rel="http://schemas.google.com/g/2005#thumbnail" width="22" height="32" src="http://1.bp.blogspot.com/_QS7b4J-CeFQ/SsI10PbYcPI/AAAAAAAAAAM/yPSHafisf8o/S220/me_as_sp_cartoon.gif" /></author><thr:total>2</thr:total><feedburner:origLink>http://hkshambesh.blogspot.com/2009/09/php-mysql.html</feedburner:origLink></entry></feed>

