<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Hacking Habits</title>
	<atom:link href="http://hackinghabits.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://hackinghabits.com</link>
	<description>Machine learning, Internet, Programming and life</description>
	<lastBuildDate>Sat, 31 Jul 2010 04:48:24 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>ValueError: insecure string pickle</title>
		<link>http://hackinghabits.com/2010/06/01/valueerror-insecure-string-pickle/</link>
		<comments>http://hackinghabits.com/2010/06/01/valueerror-insecure-string-pickle/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 19:45:41 +0000</pubDate>
		<dc:creator>madan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hackinghabits.com/2010/06/01/valueerror-insecure-string-pickle/</guid>
		<description><![CDATA[Did you find yourself with the error saying &#8221; insecure string pickle&#8221;  when you tried to unpickle a long pickled object?  The following is the type of traceback that you might get.
 File &#8220;/usr/lib/python2.6/pickle.py&#8221;, line 1370, in load
return Unpickler(file).load()
 File &#8220;/usr/lib/python2.6/pickle.py&#8221;, line 858, in load
dispatch[key](self)
File &#8220;/usr/lib/python2.6/pickle.py&#8221;, line 966, in load_string
raise ValueError, &#8220;insecure string pickle&#8221;
 ValueError: [...]]]></description>
			<content:encoded><![CDATA[<p>Did you find yourself with the error saying &#8221; insecure string pickle&#8221;  when you tried to unpickle a long pickled object?  The following is the type of traceback that you might get.</p>
<blockquote><p><span style="color: #003366;"> File &#8220;/usr/lib/python2.6/pickle.py&#8221;, line 1370, in load</span><br />
<span style="color: #ff0000;">return Unpickler(file).load()</span><br />
<span style="color: #003366;"> File &#8220;/usr/lib/python2.6/pickle.py&#8221;, line 858, in load</span><br />
<span style="color: #ff0000;">dispatch[key](self)</span><br />
<span style="color: #003366;">File &#8220;/usr/lib/python2.6/pickle.py&#8221;, line 966, in load_string</span><br />
<span style="color: #ff0000;">raise ValueError, &#8220;insecure string pickle&#8221;</span><br />
<span style="color: #ff0000;"> ValueError: insecure string pickle </span></p></blockquote>
<p>Think back !! Did you pickle the object on a windows machine long back ? or did you receive the code that once pickled the object on a windows machine ? Great. One of the reasons for this error is because of the difference in newline termination by windows and linux machines.</p>
<p><strong>Soluion: Use dos2unix  or fromdos commands to convert the pickled file into a unix format and then try unpickling it. !</strong>!</p>
]]></content:encoded>
			<wfw:commentRss>http://hackinghabits.com/2010/06/01/valueerror-insecure-string-pickle/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse plugin : Console window</title>
		<link>http://hackinghabits.com/2010/05/05/eclipse-plugin-development/</link>
		<comments>http://hackinghabits.com/2010/05/05/eclipse-plugin-development/#comments</comments>
		<pubDate>Wed, 05 May 2010 02:25:15 +0000</pubDate>
		<dc:creator>madan</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://hackinghabits.com/?p=137</guid>
		<description><![CDATA[Plugins are one of the most beautiful things that had happened to software development and applications.  Firefox plugins are easy first step for everyone to try out. There are numerous tutorials online that will get you started with firefox development. Another application that lets you customize your application using plugins is Eclipse. It is [...]]]></description>
			<content:encoded><![CDATA[<p>Plugins are one of the most beautiful things that had happened to software development and applications.  Firefox plugins are easy first step for everyone to try out. There are numerous tutorials online that will get you started with firefox development. Another application that lets you customize your application using plugins is Eclipse. It is built on the concept of extensibility. Like every other article on the internet this article will get you started with getting your first eclipse plugin up and running. It is good to have some idea of a programming language like C++ or Java to get into eclipse pluign development. I mentioned C++ just for the understanding of object oriented programming but the actual coding is going to be restricted to Java.</p>
<p><a href="http://hackinghabits.com/wp-content/uploads/2010/05/eclipse_plugin_tutorial.jpg"><img src="http://hackinghabits.com/wp-content/uploads/2010/05/eclipse_plugin_tutorial-300x150.jpg" alt="" title="eclipse_plugin_tutorial" width="300" height="150" class="alignnone size-medium wp-image-160" /></a></p>
<p>In many occasions you might want to create a  new console window to dump the results from your eclipse plugin. To create a new console window or use the one that already exists, you can use the following code below.</p>
<div class="code">
<pre class="brush: java;">
class EclipseConsoleWindow{
	   private MessageConsole findConsole(String name) {
		      ConsolePlugin plugin = ConsolePlugin.getDefault();
		      IConsoleManager conMan = plugin.getConsoleManager();
		      IConsole[] existing = conMan.getConsoles();
		      for (int i = 0; i &lt; existing.length; i++)
		         if (name.equals(existing[i].getName()))
		            return (MessageConsole) existing[i];
		      //no console found, so create a new one
		      MessageConsole myConsole = new MessageConsole(name, null);
		      conMan.addConsoles(new IConsole[]{myConsole});
		      return myConsole;
	   }

           public static void main(Strings[] args){
			  MessageConsole myConsole = findConsole(&quot;YourAppNamee&quot;);
			  MessageConsoleStream YourAppName = myConsole.newMessageStream();
			  YourAppName.println(&quot;Print some text into the console&quot;);
          }
}
</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://hackinghabits.com/2010/05/05/eclipse-plugin-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>XAMPP Mysql and PHPmyAdmin Issues</title>
		<link>http://hackinghabits.com/2010/02/03/xampp-mysql-and-phpmyadmin-issues/</link>
		<comments>http://hackinghabits.com/2010/02/03/xampp-mysql-and-phpmyadmin-issues/#comments</comments>
		<pubDate>Wed, 03 Feb 2010 05:56:13 +0000</pubDate>
		<dc:creator>madan</dc:creator>
				<category><![CDATA[Tips N Tricks]]></category>

		<guid isPermaLink="false">http://hackinghabits.com/?p=124</guid>
		<description><![CDATA[After you install XAMPP using the tutorial steps provided here there are two common issues that can occur which would prevent the working of MySQL and PHPMyAdmin. Lets us tackle the two problems as follows.
Problem 1:  XAMPP: Couldn&#8217;t start MySQL!
As suggested in the tutorial, you can start XAMPP server using /opt/lampp start and you [...]]]></description>
			<content:encoded><![CDATA[<p>After you install XAMPP using the tutorial steps provided here there are two common issues that can occur which would prevent the working of MySQL and PHPMyAdmin. Lets us tackle the two problems as follows.</p>
<p><strong>Problem 1:  XAMPP: Couldn&#8217;t start MySQL!</strong></p>
<p>As suggested in the tutorial, you can start XAMPP server using /opt/lampp start and you are supposed to get the output as below:</p>
<p>Starting XAMPP 1.7.3a&#8230;<br />
LAMPP: Starting Apache&#8230;<br />
LAMPP: Starting MySQL&#8230;<br />
LAMPP started.</p>
<p>But instead you might see something like below:</p>
<p>Starting XAMPP 1.7.3a&#8230;<br />
LAMPP: Starting Apache&#8230;<br />
LAMPP: Starting MySQL&#8230;<br />
XAMPP: Couldn&#8217;t start MySQL!<br />
LAMPP started.</p>
<p><strong>Solution 1: </strong><br />
This is caused due to permission issues  and you can solve it using the following steps.<br />
a) In the terminal su to root :  su<br />
b) Provide the root password when prompted<br />
c) chown -hR root /opt/lampp   (Change the path as required)<br />
d) chmod -R 777 /opt/lampp<br />
e) /opt/lampp/lampp restart</p>
<p>This should give you an output something like :<br />
Starting XAMPP for Linux 1.7.3a&#8230;<br />
XAMPP: Starting Apache with SSL (and PHP5)&#8230;<br />
XAMPP: Starting MySQL&#8230;<br />
Warning: World-writable config file &#8216;/opt/lampp/etc/my.cnf&#8217; is ignored<br />
Warning: World-writable config file &#8216;/opt/lampp/etc/my.cnf&#8217; is ignored<br />
XAMPP: Starting ProFTPD&#8230;<br />
XAMPP for Linux started.<br />
<strong><br />
Additional steps  to be followed:</strong><br />
a) vi /opt/lampp/etc/php.ini<br />
b) uncomment   ; session.save_path = /tmp<br />
     to                      session.save_path = /tmp</p>
<p><strong>Problem 2:<br />
When you try to access mysql you would get an error as : &#8220;cannot start session without errors, please check errors given in your PHP and/or webserver log file and configure your PHP installation properly&#8221;</strong></p>
<p>If the above said problem was already solved then you might encounter the new problem which says,</p>
<p>&#8220;Wrong permissions on configuration file, should not be world writable!&#8221;. </p>
<p><strong>Solution 2:</strong><br />
a) Open terminal<br />
b) get root access<br />
c) Change permission of config.inc.php file : chown a-w /opt/lampp/phpmyadmin/config.inc.php</p>
<p>This solution worked on Mandriva 2007 spring running Gnome on Linux kernel 2.6.17-13mdv. </p>
]]></content:encoded>
			<wfw:commentRss>http://hackinghabits.com/2010/02/03/xampp-mysql-and-phpmyadmin-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache server for linux</title>
		<link>http://hackinghabits.com/2010/01/17/apache-server-for-linux/</link>
		<comments>http://hackinghabits.com/2010/01/17/apache-server-for-linux/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 04:32:16 +0000</pubDate>
		<dc:creator>madan</dc:creator>
				<category><![CDATA[Tips N Tricks]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[XAMPP]]></category>

		<guid isPermaLink="false">http://hackinghabits.com/?p=116</guid>
		<description><![CDATA[Adding apache server in your linux installation is easy using XAMPP.  It was earlier called LAMPP and is now being called the XAMPP.  The understanding is that 
 it stands for X (linux), A (apache), M (mysql), Php (php). 
This is a nice way to develop php websites locally on your computer before [...]]]></description>
			<content:encoded><![CDATA[<p>Adding apache server in your linux installation is easy using XAMPP.  It was earlier called LAMPP and is now being called the XAMPP.  The understanding is that </p>
<p> it stands for X (linux), A (apache), M (mysql), Php (php). </p>
<p>This is a nice way to develop php websites locally on your computer before wanting to deploy it online. You can even make your server visible to the internet by putting XAMPP online and open to the Internet. Doing that will allow you to run your own server. Some help from DynDNS will help you map  a domain name to the ip address of your XAMPP on your computer. These will not be discussed here but lets continue towards linux installation of XAMPP.</p>
<p>Steps :<br />
1) Download the XAMPP package from <a href="http://sourceforge.net/project/showfiles.php?group_id=61776&#038;package_id=60248">sourceforge</a>.</p>
<p>1.1) Become the administrator using :<br />
  su<br />
2) (Important) Extract ONLY using the following command<br />
     tar xvfz xampp-linux-1.7.3a.tar.gz -C /opt</p>
<p>Warning: Please use only this command to install XAMPP. DON&#8217;T use any Microsoft Windows tools to extract the archive, it won&#8217;t work.</p>
<p>Good News: XAMPP is now installed below the /opt/lampp directory.</p>
<p>3) Start the server using :<br />
    /opt/lampp/lampp start</p>
<p>   Good News if  you see :<br />
   Starting XAMPP x.x.x&#8230;<br />
   LAMPP: Starting Apache&#8230;<br />
   LAMPP: Starting MySQL&#8230;<br />
   LAMPP started.</p>
<p>4) Test the server by opening firefox and typing </p>
<p>http://localhost</p>
<p>Go ahead and start building your application !!</p>
]]></content:encoded>
			<wfw:commentRss>http://hackinghabits.com/2010/01/17/apache-server-for-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Send exe files in gmail</title>
		<link>http://hackinghabits.com/2010/01/09/send-exe-files-in-gmail/</link>
		<comments>http://hackinghabits.com/2010/01/09/send-exe-files-in-gmail/#comments</comments>
		<pubDate>Sat, 09 Jan 2010 00:11:46 +0000</pubDate>
		<dc:creator>madan</dc:creator>
				<category><![CDATA[Tips N Tricks]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://hackinghabits.com/?p=114</guid>
		<description><![CDATA[Trying to send an exe file in Gmail throws up an error saying that your email cannot be sent with the attachment as it is a security risk to Gmail. The easy way out is to hide the extension. 
 Solution : 1 
Rename the ABC.exe to ABC.txt . Attach the ABC.txt file in your [...]]]></description>
			<content:encoded><![CDATA[<p>Trying to send an exe file in Gmail throws up an error saying that your email cannot be sent with the attachment as it is a security risk to Gmail. The easy way out is to hide the extension. </p>
<p><u> Solution : 1 </u><br />
Rename the ABC.exe to ABC.txt . Attach the ABC.txt file in your Gmail and do the reverse at the receiving end. </p>
<p><u> Solution : 2 </u><br />
Use Winrar/Winzip/etc and make ABC.exe to ABC.rar/ABC.zip/etc.zip before sending.</p>
<p>Once you receive the file from the mail just reverse the step. Either change the extension of unzip the file.</p>
]]></content:encoded>
			<wfw:commentRss>http://hackinghabits.com/2010/01/09/send-exe-files-in-gmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse : Configure PHP (PDT), How to ? Part : 2</title>
		<link>http://hackinghabits.com/2010/01/08/eclipse-configure-php-pdt-how-to-part-2/</link>
		<comments>http://hackinghabits.com/2010/01/08/eclipse-configure-php-pdt-how-to-part-2/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 23:59:09 +0000</pubDate>
		<dc:creator>madan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[tutorials]]></category>

		<guid isPermaLink="false">http://hackinghabits.com/?p=110</guid>
		<description><![CDATA[[3] Installing the perspective  is the step where you actually ask eclipse to install the perspectives for you. In step 2 we had just listed the urls/locations where our package would be found. To install the new perspective, get to help > Install new software. 



[4] Select the url to download the software from [...]]]></description>
			<content:encoded><![CDATA[<p><u>[3] Installing the perspective </u> is the step where you actually ask eclipse to install the perspectives for you. In step 2 we had just listed the urls/locations where our package would be found. To install the new perspective, get to <b>help > Install new software. </b></p>
<div style="padding-left:28px;;height:390px;">
<a href="http://hackinghabits.com/wp-content/uploads/2010/01/snapshot4.png"><img src="http://hackinghabits.com/wp-content/uploads/2010/01/snapshot4.png" alt="" title="snapshot4"  /></a>
</div>
<p><u>[4] Select the url to download</u> the software from and the package you want to install. You can notice that in the picture below, the site to “work with” is selected as “PDT” from the drop down menu. Also the packages to be installed is selected by selecting “PDT 2.0 xx xx”. Once you have finished this, select to proceed “Next”.</p>
<div style="padding-left:28px;;height:390px;">
<a href="http://hackinghabits.com/wp-content/uploads/2010/01/snapshot10.png"><img src="http://hackinghabits.com/wp-content/uploads/2010/01/snapshot10.png" alt="" title="snapshot10"  /></a>
</div>
<p><u>[5] Review the list of packages being installed </u>. This step is followed by “Finish” that will launch your instalation into an autopilot mode until restarting the the Eclipse IDE.</p>
<div style="padding-left:28px;;height:390px;">
<a href="http://hackinghabits.com/wp-content/uploads/2010/01/snapshot6.png"><img src="http://hackinghabits.com/wp-content/uploads/2010/01/snapshot6.png" alt="" title="snapshot6"  /></a>
</div>
<p><u> 6 – Eclipse installs the packages you requested</u></p>
<div style="padding-left:28px;;height:390px;">
<a href="http://hackinghabits.com/wp-content/uploads/2010/01/snapshot1.png"><img src="http://hackinghabits.com/wp-content/uploads/2010/01/snapshot1.png" alt="" title="snapshot1"  /></a>
</div>
<p><u>[7] Select the perspective to work with </u> once eclipse restarts after installation. To select a particular perspective in eclipse, say php or c,c++ you will have to get to <b>Windows > Open perspective > other.</b></p>
<div style="padding-left:28px;;height:390px;">
<a href="http://hackinghabits.com/wp-content/uploads/2010/01/snapshot7.png"><img src="http://hackinghabits.com/wp-content/uploads/2010/01/snapshot7.png" alt="" title="snapshot7"  /></a>
</div>
<p><u>[8] Select the perspective you want to open form the list.</u></p>
<div style="padding-left:28px;;height:390px;">
<a href="http://hackinghabits.com/wp-content/uploads/2010/01/snapshot8.png"><img src="http://hackinghabits.com/wp-content/uploads/2010/01/snapshot8.png" alt="" title="snapshot8"  /></a>
</div>
<p>When it comes to PHP development the development becomes much easier if we are able to work on the files directly on the server. Unless you are more comfortable with a vi or emacs setup working so is difficult. Eclipse can offer you a facility to work with remote systems so that eclipse  takes care of the FTP/SSH to the server while you can work on the file on eclipse as if it were a local copy. We would explore this option in future tutorials.</p>
]]></content:encoded>
			<wfw:commentRss>http://hackinghabits.com/2010/01/08/eclipse-configure-php-pdt-how-to-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse : Configure PHP (PDT), How to ? Part : 1</title>
		<link>http://hackinghabits.com/2010/01/08/eclipse-configure-php-pdt-how-to/</link>
		<comments>http://hackinghabits.com/2010/01/08/eclipse-configure-php-pdt-how-to/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 23:25:04 +0000</pubDate>
		<dc:creator>madan</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[setup]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://hackinghabits.com/?p=102</guid>
		<description><![CDATA[Eclipse is a great development environment that will help you develop projects in almost all the most common languages that you might want to use. Eclipse can be configured to be used for Java, C, C++, Python, Ruby, HTML and PHP developments. There are potentially more possible developments but the above is just a list [...]]]></description>
			<content:encoded><![CDATA[<p>Eclipse is a great development environment that will help you develop projects in almost all the most common languages that you might want to use. Eclipse can be configured to be used for Java, C, C++, Python, Ruby, HTML and PHP developments. There are potentially more possible developments but the above is just a list of few of them.</p>
<p>It is important to understand that eclipse is not a compiler that can compile these languages for you and offer the corresponding executable or alike. But eclipse is just a development environment that will use the compilers/linkers/servers that you have already installed on your computer. In other words, you can develop the C code in eclipse, but eclipse will in turn call the C compiler that has been installed in your computer. The same hold for other languages too, e.g Python development on eclipse will need you to install the python engine on your computer. Eclipse will interpret your python code using the python interpreter that you might have already installed.</p>
<p>The idea of using development environment for different languages needs eclipse to be configured to handle these different languages. Each configuration is called “perspective” in the eclipse terminology. Hence you need to configure the “php perspective” to work with eclipse for php development and when you want to write your “C/C++” code you need to switch the perspective to a “C/C++” perspective. </p>
<p><b><u>Tutorial: Install PDT in eclipse</u></b>:</p>
<p>Follow the steps below and continue along to part : 2 of this tutorial and get your Eclipse installation all setup for PHP files.</p>
<p><u>[1] To configure the installation URL </u>  you must first get into windows > Preferences where you can select the urls where the repositories are located. This tutorial hold good for installation of any new development toolkit to eclipse. What would vary with each installation is the package that you might select to install.</p>
<div style="padding-left:28px;;height:390px;">
<a href="http://hackinghabits.com/wp-content/uploads/2010/01/snapshot2.png"><img src="http://hackinghabits.com/wp-content/uploads/2010/01/snapshot2.png" alt="" title="snapshot2"  /></a>
</div>
<p><u>[2]  Add the following two urls </u>  by clicking add and filling in the details for name and location. (This is specific to installing PHP Development Toolkit for eclipse)</p>
<div style="padding-left:28px;;height:390px;">
<a href="http://hackinghabits.com/wp-content/uploads/2010/01/snapshot3.png"><img src="http://hackinghabits.com/wp-content/uploads/2010/01/snapshot3.png" alt="" title="snapshot2" /></a>
</div>
<div class="download-handgloves">
<h2 style="margin: 22px 0pt 0pt; font-size: 15px; text-align: center; padding-right: 25px;"><a href="http://www.tomjewett.com/dbdesign/dbdesign.php?page=intro.html" title="Database tutorial">Continue to Part 2</a></h2>
</div>
]]></content:encoded>
			<wfw:commentRss>http://hackinghabits.com/2010/01/08/eclipse-configure-php-pdt-how-to/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Database design tutorial : UML, SQL &amp; Normalization</title>
		<link>http://hackinghabits.com/2010/01/07/database-design-tutorial-uml-er-sql-and-normalization/</link>
		<comments>http://hackinghabits.com/2010/01/07/database-design-tutorial-uml-er-sql-and-normalization/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 22:15:29 +0000</pubDate>
		<dc:creator>madan</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://hackinghabits.com/?p=88</guid>
		<description><![CDATA[Numerous websites online offer tutorials on database designing. Some specifically detail php+Mysql usage. While there are numerous aspects of a database driven website, the two most important aspects are design and implementation. While most websites teach you how to write effective sql queries, not many teach you the art of design. 
Tom Jewett  form [...]]]></description>
			<content:encoded><![CDATA[<p>Numerous websites online offer tutorials on database designing. Some specifically detail php+Mysql usage. While there are numerous aspects of a database driven website, the two most important aspects are design and implementation. While most websites teach you how to write effective sql queries, not many teach you the art of design. </p>
<p>Tom Jewett  form Department of Computer Engineering and Computer California State University, Long Beach has a gem of a website to offer regarding database design. </p>
<p>It it one of the best references available if you are looking to learn agian the fundamentals of database design or just refresh your sql skills.</p>
<div class="download-handgloves">
<h2 style="margin: 22px 0pt 0pt; font-size: 15px; text-align: center; padding-right: 25px;"><a title="Database tutorial" href="http://www.tomjewett.com/dbdesign/dbdesign.php?page=intro.html">Database design tutorial</a></h2>
<p style="margin: 15px 0pt 0pt; text-align: center;"><strong>Site: http://www.tomjewett.com/</strong><br/><br />
DB Design, UML,SQL, 3rd Edition.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://hackinghabits.com/2010/01/07/database-design-tutorial-uml-er-sql-and-normalization/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Brightness not working : X60 + Mandriva + Thinkpad</title>
		<link>http://hackinghabits.com/2010/01/07/brightness-not-working-x60-mandriva-thinkpad-2/</link>
		<comments>http://hackinghabits.com/2010/01/07/brightness-not-working-x60-mandriva-thinkpad-2/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 07:46:06 +0000</pubDate>
		<dc:creator>madan</dc:creator>
				<category><![CDATA[Tips N Tricks]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://hackinghabits.com/?p=82</guid>
		<description><![CDATA[The issue is to tacked the functioning of brightness control on a Lenovo thinkpad X60 tablet PC running mandriva 2007 spring edition. The feature of screen brightness control does not work out of the box and a small tweak must be done in order to get that working.
Issue: 
Brightness control not working in X60 tablet [...]]]></description>
			<content:encoded><![CDATA[<p>The issue is to tacked the functioning of brightness control on a Lenovo thinkpad X60 tablet PC running mandriva 2007 spring edition. The feature of screen brightness control does not work out of the box and a small tweak must be done in order to get that working.</p>
<p><u><b>Issue: </b></u><br />
Brightness control not working in X60 tablet on Linux (mandriva)<br />
<u><b>Solution:</b></u><br />
1) Obtain root privileges using “su root” from your terminal. Provide the password when prompted.<br />
2) cd /etc<br />
3) vi modprobe.conf<br />
4) Add the line “alias video off”<br />
5) use “!wq” to save and exit.</p>
<p>Reboot the computer and your brightness control should start working. Also install the thinkpad button support package from your package manager on Linux to increase compatibility of Linux with thinkpad laptops.</p>
]]></content:encoded>
			<wfw:commentRss>http://hackinghabits.com/2010/01/07/brightness-not-working-x60-mandriva-thinkpad-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Unmount External Hard Disk in Linux</title>
		<link>http://hackinghabits.com/2010/01/07/unmount-external-hard-disk-in-linux/</link>
		<comments>http://hackinghabits.com/2010/01/07/unmount-external-hard-disk-in-linux/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 07:43:39 +0000</pubDate>
		<dc:creator>madan</dc:creator>
				<category><![CDATA[Tips N Tricks]]></category>
		<category><![CDATA[computers]]></category>
		<category><![CDATA[external hard disk]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://hackinghabits.com/?p=79</guid>
		<description><![CDATA[External hard disks must be unmounted properly before you disconnect it off your system. After you mount hard drive for normal usage, unmount must be performed to safely remove the device. In some cases the HDD would still be running even after you had unmounted the HDD.
The below solution worked on Mandriva Linux 2007, Linux [...]]]></description>
			<content:encoded><![CDATA[<p>External hard disks must be unmounted properly before you disconnect it off your system. After you mount hard drive for normal usage, unmount must be performed to safely remove the device. In some cases the HDD would still be running even after you had unmounted the HDD.</p>
<p>The below solution worked on Mandriva Linux 2007, Linux 2.6.17-13mdv on Gnome on a Western Digital (WD) 350 GB HDD . To start with, Identify the mount name of your HDD (say sdb1) .</p>
<p><u><b>From the command line interface :</b></u></p>
<p>1. su<br />
2. Type password<br />
2. umount /dev/sdb1<br />
3. sdparm –command=sync /dev/sdb1<br />
4. sdparm –command=stop / dev/sdb1</p>
<p>You would then hear the HDD go down to a stop. Go ahead and disconnect your hard drive.</p>
]]></content:encoded>
			<wfw:commentRss>http://hackinghabits.com/2010/01/07/unmount-external-hard-disk-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
