<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Thanks to antville.org</title>
    <link>http://oksoft.antville.org/</link>
    <description>Adding Value with limited resources</description>
    <language>en-IN</language>
    <pubDate>Sat, 04 Jul 2009 20:31:10 GMT</pubDate>
    <dc:date>2009-07-04T20:31:10Z</dc:date>
    <dc:language>en-IN</dc:language>
    <item>
      <title>tmpdir in MySQL</title>
      <link>http://oksoft.antville.org/stories/1911866/</link>
      <description>In MySQL, the tmpdir path is mainly used for disk-based sorts (if the sort_buffer_size is not enough) and disk-based temp tables. &lt;br /&gt;
&lt;br /&gt;
You can configure a slave with tmpdir=/dev/shm</description>
      <pubDate>Sat, 20 Jun 2009 01:52:21 GMT</pubDate>
      <guid>http://oksoft.antville.org/stories/1911866/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2009-06-20T01:52:21Z</dc:date>
    </item>
    <item>
      <title>Install SQLite</title>
      <link>http://oksoft.antville.org/stories/1902886/</link>
      <description>$ # As of March 2009, the latest version was 3.6.11. &lt;br /&gt;
$ wget &lt;a href="http://www.sqlite.org/sqlite-amalgamation-3.6.11.tar.gz" title="http://www.sqlite.org/sqlite-amalgamation-3.6.11.tar.gz"&gt;www.sqlite.org&lt;/a&gt;&lt;br /&gt;
$ tar xzf sqlite-amalgamation-3.6.11.tar.gz&lt;br /&gt;
$ cd sqlite-3.6.11&lt;br /&gt;
$ ./configure &amp;amp;&amp;amp; make &lt;br /&gt;
$ sudo make install</description>
      <pubDate>Wed, 13 May 2009 13:54:10 GMT</pubDate>
      <guid>http://oksoft.antville.org/stories/1902886/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2009-05-13T13:54:10Z</dc:date>
    </item>
    <item>
      <title>Using binlogs to update table</title>
      <link>http://oksoft.antville.org/stories/1902332/</link>
      <description>It is very interesting to know about how to extract statements from binlogs.&lt;br /&gt;
&lt;br /&gt;
mysqlbinlog --start-datetime="`date +%Y-%m-%d' '%H:00:00 -d\"1 hour ago\"`" --stop-datetime="`date +%Y-%m-%d' &lt;br /&gt;
'%H:00:00`" mysql-bin.* | awk '/tbl_company/,/;/' | replace tbl_company mydb.tbl_company | mysql -h 172.29.0.0 -uroot -pPasswd mydb&lt;br /&gt;
&lt;br /&gt;
I have not tested it, but guess it should work as expected.</description>
      <pubDate>Mon, 11 May 2009 16:13:12 GMT</pubDate>
      <guid>http://oksoft.antville.org/stories/1902332/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2009-05-11T16:13:12Z</dc:date>
    </item>
    <item>
      <title>awk power</title>
      <link>http://oksoft.antville.org/stories/1900483/</link>
      <description>$ cat salaries&lt;br /&gt;
Yvette van der Hoff 100000&lt;br /&gt;
Sarack Abama 400000&lt;br /&gt;
Bernie Madoff 0&lt;br /&gt;
John Q. Public 20000&lt;br /&gt;
&lt;br /&gt;
$ awk '{print $NF, $0}' salaries | sort -nr -k1,1 | cut -d" " -f2-&lt;br /&gt;
Sarack Abama 400000&lt;br /&gt;
Yvette van der Hoff 100000&lt;br /&gt;
John Q. Public 20000&lt;br /&gt;
Bernie Madoff 0&lt;br /&gt;
&lt;br /&gt;
$ awk -F '\t' -v 'OFS=\t' '{print $4, $3, $5, $2, $1}' data.txt&lt;br /&gt;
POP.	COUNTY	GOVT.	CITY	STATE&lt;br /&gt;
123	Gila	Mayor	Ely	AZ&lt;br /&gt;
345	Lolo	Sheriff	Alma	CA&lt;br /&gt;
22	El Paso	Bubba	Leroy	TX</description>
      <pubDate>Mon, 04 May 2009 14:37:12 GMT</pubDate>
      <guid>http://oksoft.antville.org/stories/1900483/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2009-05-04T14:37:12Z</dc:date>
    </item>
    <item>
      <title>skip networking in MySQL</title>
      <link>http://oksoft.antville.org/stories/1900194/</link>
      <description>When there is maintenance work to be carried on the database server, you can simply skip networking so that no connection from any other server from the network will be accepted.&lt;br /&gt;
Simply enter the following in /etc/my.cnf:&lt;br /&gt;
&lt;br /&gt;
[mysqld]&lt;br /&gt;
# Prevent network access to MySQL.&lt;br /&gt;
skip-networking</description>
      <pubDate>Sun, 03 May 2009 15:34:24 GMT</pubDate>
      <guid>http://oksoft.antville.org/stories/1900194/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2009-05-03T15:34:24Z</dc:date>
    </item>
    <item>
      <title>Saving data to text file</title>
      <link>http://oksoft.antville.org/stories/1899983/</link>
      <description>sqlite&amp;gt; .mode list&lt;br /&gt;
sqlite&amp;gt; .separator |&lt;br /&gt;
sqlite&amp;gt; .output test_file_1.txt&lt;br /&gt;
sqlite&amp;gt; select * from tbl1;&lt;br /&gt;
sqlite&amp;gt; .exit&lt;br /&gt;
$ cat test_file_1.txt&lt;br /&gt;
hello|10&lt;br /&gt;
goodbye|20&lt;br /&gt;
$</description>
      <pubDate>Sat, 02 May 2009 15:01:35 GMT</pubDate>
      <guid>http://oksoft.antville.org/stories/1899983/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2009-05-02T15:01:35Z</dc:date>
    </item>
    <item>
      <title>Silent mode in Linux</title>
      <link>http://oksoft.antville.org/stories/1899511/</link>
      <description>Sick of your computer speaker beeping like a demented Morse code machine whenever you type something wrongly? Teach it the sound of silence: run the command &lt;br /&gt;
setterm -blength 0 &lt;br /&gt;
to mute the alarm bell no matter what kind of terminal you're typing into. &lt;br /&gt;
If you want it to happen every time you start a terminal, just add the command to your .bash_profile file.</description>
      <pubDate>Thu, 30 Apr 2009 07:21:05 GMT</pubDate>
      <guid>http://oksoft.antville.org/stories/1899511/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2009-04-30T07:21:05Z</dc:date>
    </item>
    <item>
      <title>valid date</title>
      <link>http://oksoft.antville.org/stories/1894573/</link>
      <description>validdate.sh script will look like this...&lt;br /&gt;
&lt;br /&gt;
#!/bin/sh&lt;br /&gt;
userdate=$1&lt;br /&gt;
date -d $userdate &amp;amp;&amp;gt; /dev/null&lt;br /&gt;
if [ $? -ne 0 ] ; then&lt;br /&gt;
echo You entered an invalid date, $userdate&lt;br /&gt;
else&lt;br /&gt;
echo The date $userdate is valid&lt;br /&gt;
fi&lt;br /&gt;
&lt;br /&gt;
# sh validdate.sh 2009-33-44&lt;br /&gt;
You entered an invalid date, 2009-33-44</description>
      <pubDate>Mon, 13 Apr 2009 10:14:50 GMT</pubDate>
      <guid>http://oksoft.antville.org/stories/1894573/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2009-04-13T10:14:50Z</dc:date>
    </item>
    <item>
      <title>IP addresses from access log</title>
      <link>http://oksoft.antville.org/stories/1892997/</link>
      <description>generate a list of IP address along with the number of times each was encountered and sort&lt;br /&gt;
&lt;br /&gt;
cat access_log | awk '{print $1}' | sort | uniq -c | sort -nr</description>
      <pubDate>Tue, 07 Apr 2009 06:34:19 GMT</pubDate>
      <guid>http://oksoft.antville.org/stories/1892997/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2009-04-07T06:34:19Z</dc:date>
    </item>
    <item>
      <title>Backup a directory</title>
      <link>http://oksoft.antville.org/stories/1892768/</link>
      <description>#!/bin/sh&lt;br /&gt;
tar czvf $1.$(date +%Y%m%d-%H%M%S).tgz $1&lt;br /&gt;
exit $?&lt;br /&gt;
&lt;br /&gt;
The arc script accepts a single file or directory name as a parameter and creates a compressed archive file with the current date embedded into the resulting archive file's name.</description>
      <pubDate>Mon, 06 Apr 2009 10:17:47 GMT</pubDate>
      <guid>http://oksoft.antville.org/stories/1892768/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2009-04-06T10:17:47Z</dc:date>
    </item>
    <item>
      <title>Time Zone error on slave</title>
      <link>http://oksoft.antville.org/stories/1890990/</link>
      <description>Last_Error: Error 'Unknown or incorrect time zone: 'Etc/UTC'' on query. Default database: 'db_name'. Query: 'INSERT INTO table SET column = CONVERT_TZ('2009-01-24', '-8:00', '+00:00')'&lt;br /&gt;
&lt;br /&gt;
It&amp;#8217;s a simple fix. Exit out of MySQL and run the following command - this works on Redhat, I&amp;#8217;ve not tried it on other flavors.&lt;br /&gt;
&lt;br /&gt;
shell&amp;gt; mysql_tzinfo_to_sql /usr/share/zoneinfo|mysql -u root -p</description>
      <pubDate>Mon, 30 Mar 2009 07:35:01 GMT</pubDate>
      <guid>http://oksoft.antville.org/stories/1890990/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2009-03-30T07:35:01Z</dc:date>
    </item>
    <item>
      <title>pager to md5sum</title>
      <link>http://oksoft.antville.org/stories/1890989/</link>
      <description>When optimizing queries by rewriting them to different forms that should return the same results, you can verify that you get the same results by taking a checksum of them.&lt;br /&gt;
&lt;br /&gt;
Just set your pager to md5sum:&lt;br /&gt;
&lt;br /&gt;
mysql&amp;gt; pager md5sum -&lt;br /&gt;
PAGER set to 'md5sum -'&lt;br /&gt;
mysql&amp;gt; select * from test;&lt;br /&gt;
a09bc56ac9aa0cbcc659c3d566c2c7e4  -&lt;br /&gt;
4096 rows in set (0.00 sec)</description>
      <pubDate>Mon, 30 Mar 2009 07:33:36 GMT</pubDate>
      <guid>http://oksoft.antville.org/stories/1890989/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2009-03-30T07:33:36Z</dc:date>
    </item>
    <item>
      <title>setting at jobs</title>
      <link>http://oksoft.antville.org/stories/1887023/</link>
      <description># at -v 03:00 -f /root/shantanu/testat.sh  &amp;gt; /root/shantanu/testat_result.txt 2&amp;gt;&amp;amp;1&lt;br /&gt;
# atq&lt;br /&gt;
7       2009-03-14 03:00 a root</description>
      <pubDate>Fri, 13 Mar 2009 04:37:25 GMT</pubDate>
      <guid>http://oksoft.antville.org/stories/1887023/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2009-03-13T04:37:25Z</dc:date>
    </item>
    <item>
      <title>better code</title>
      <link>http://oksoft.antville.org/stories/1886329/</link>
      <description>`test -s /var/log/mailme.txt`&lt;br /&gt;
if [[ $? -eq 0 ]] ; then&lt;br /&gt;
The above 2 lines can be written in one line as shown below:&lt;br /&gt;
&lt;br /&gt;
if [[ -z /var/log/mailme.txt ]]; then</description>
      <pubDate>Tue, 10 Mar 2009 12:45:27 GMT</pubDate>
      <guid>http://oksoft.antville.org/stories/1886329/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2009-03-10T12:45:27Z</dc:date>
    </item>
    <item>
      <title>read .csv file</title>
      <link>http://oksoft.antville.org/stories/1886325/</link>
      <description>#!/bin/sh&lt;br /&gt;
awk -F"," '{print $1,$2}' read1.txt | while read var1 var2&lt;br /&gt;
do&lt;br /&gt;
echo $var1 $var2&lt;br /&gt;
done</description>
      <pubDate>Tue, 10 Mar 2009 12:33:29 GMT</pubDate>
      <guid>http://oksoft.antville.org/stories/1886325/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2009-03-10T12:33:29Z</dc:date>
    </item>
    <item>
      <title>common crontab entry</title>
      <link>http://oksoft.antville.org/stories/1886239/</link>
      <description>30 0 * * * updatedb  &amp;gt; /dev/null 2&amp;gt;&amp;amp;1&lt;br /&gt;
&lt;br /&gt;
# Clock synchronization&lt;br /&gt;
30 10 * * * CTIPDGT=`/sbin/ifconfig | grep -m 1 "inet addr" | grep -o "17.2.[0,8,26,32,40,56,16,40,56].*" | cut -d "." -f3`; /usr/sbin/ntpdate -u 172.29.${CTIPDGT}.123; /sbin/hwclock  --systohc &amp;gt; /dev/null 2&amp;gt;&amp;amp;1</description>
      <pubDate>Tue, 10 Mar 2009 04:50:41 GMT</pubDate>
      <guid>http://oksoft.antville.org/stories/1886239/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2009-03-10T04:50:41Z</dc:date>
    </item>
    <item>
      <title>Declare your assets!</title>
      <link>http://oksoft.antville.org/stories/1883782/</link>
      <description>The declare command can be helpful in identifying variables, environmental or otherwise. This can be especially useful with arrays.&lt;br /&gt;
&lt;br /&gt;
bash$ declare | grep HOME&lt;br /&gt;
/home/bozo&lt;br /&gt;
&lt;br /&gt;
bash$ zzy=68&lt;br /&gt;
bash$ declare | grep zzy&lt;br /&gt;
zzy=68&lt;br /&gt;
&lt;br /&gt;
bash$ Colors=([0]="purple" [1]="reddish-orange" [2]="light green")&lt;br /&gt;
bash$ echo ${Colors[@]}&lt;br /&gt;
purple reddish-orange light green&lt;br /&gt;
bash$ declare | grep Colors&lt;br /&gt;
Colors=([0]="purple" [1]="reddish-orange" [2]="light green")</description>
      <pubDate>Sun, 01 Mar 2009 13:18:14 GMT</pubDate>
      <guid>http://oksoft.antville.org/stories/1883782/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2009-03-01T13:18:14Z</dc:date>
    </item>
    <item>
      <title>Innodb troubleshooting</title>
      <link>http://oksoft.antville.org/stories/1882959/</link>
      <description>When you have your mysql up and running, just connect to any database (like mysql or test) and perform a following command:&lt;br /&gt;
&lt;br /&gt;
CREATE TABLE innodb_table_monitor(x int) engine=innodb;&lt;br /&gt;
&lt;br /&gt;
This will force innodb engine to start table monitor and dump some useful data regarding your tablespaces in mysql's error log</description>
      <pubDate>Thu, 26 Feb 2009 07:29:40 GMT</pubDate>
      <guid>http://oksoft.antville.org/stories/1882959/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2009-02-26T07:29:40Z</dc:date>
    </item>
    <item>
      <title>Watch replication</title>
      <link>http://oksoft.antville.org/stories/1882782/</link>
      <description>$ watch --interval=1 --differences 'mysql -uuser -ppassword -e "show slave status\G"'</description>
      <pubDate>Wed, 25 Feb 2009 13:00:42 GMT</pubDate>
      <guid>http://oksoft.antville.org/stories/1882782/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2009-02-25T13:00:42Z</dc:date>
    </item>
    <item>
      <title>findtable shell script</title>
      <link>http://oksoft.antville.org/stories/1877878/</link>
      <description># vi /bin/findtable&lt;br /&gt;
&lt;br /&gt;
#!bin/sh&lt;br /&gt;
&lt;br /&gt;
mysql -e"select TABLE_SCHEMA, TABLE_NAME, ENGINE, TABLE_ROWS, CREATE_TIME FROM information_schema.TABLES where TABLE_NAME LIKE '%$1%';"&lt;br /&gt;
&lt;br /&gt;
# chmod 777 /bin/findtable&lt;br /&gt;
&lt;br /&gt;
# sh findtable test</description>
      <pubDate>Thu, 05 Feb 2009 12:01:15 GMT</pubDate>
      <guid>http://oksoft.antville.org/stories/1877878/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2009-02-05T12:01:15Z</dc:date>
    </item>
    <item>
      <title>processor info</title>
      <link>http://oksoft.antville.org/stories/1873308/</link>
      <description>Gather information about the processor. This is easily done as follows:&lt;br /&gt;
&lt;br /&gt;
# cat /proc/cpuinfo&lt;br /&gt;
&lt;br /&gt;
So, if I have purchased a dual processor quad-core server, I can run:&lt;br /&gt;
&lt;br /&gt;
# cat /proc/cpuinfo | grep processor | wc -l&lt;br /&gt;
&lt;br /&gt;
I would then expect to see 8 as the value. If I don't, I call up the vendor and tell them to send me another processor.</description>
      <pubDate>Tue, 20 Jan 2009 14:14:19 GMT</pubDate>
      <guid>http://oksoft.antville.org/stories/1873308/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2009-01-20T14:14:19Z</dc:date>
    </item>
    <item>
      <title>Help Me!</title>
      <link>http://oksoft.antville.org/stories/1868379/</link>
      <description>You can use the mysql client to perform lookups in the MySQL manual. This saves from having to keep a browser window open in order to look things up.&lt;br /&gt;
So how does it work? &lt;br /&gt;
&lt;br /&gt;
mysql&amp;gt; help select;&lt;br /&gt;
&lt;br /&gt;
mysql&amp;gt; help show&lt;br /&gt;
&lt;br /&gt;
mysql&amp;gt; help contents</description>
      <pubDate>Fri, 02 Jan 2009 15:03:05 GMT</pubDate>
      <guid>http://oksoft.antville.org/stories/1868379/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2009-01-02T15:03:05Z</dc:date>
    </item>
    <item>
      <title>Show only PHP errors</title>
      <link>http://oksoft.antville.org/stories/1867924/</link>
      <description>Open /etc/php.ini file&lt;br /&gt;
# vi /etc/php.ini&lt;br /&gt;
Set error_reporting as follows:&lt;br /&gt;
&lt;br /&gt;
error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR&lt;br /&gt;
&lt;br /&gt;
Alternately, you can show all errors, except for notices and coding standards warnings&lt;br /&gt;
&lt;br /&gt;
error_reporting = E_ALL &amp;amp; ~E_NOTICE&lt;br /&gt;
&lt;br /&gt;
Save and close the file. Restart apache web server:&lt;br /&gt;
# /etc/init.d/httpd restart&lt;br /&gt;
&lt;br /&gt;
&lt;a href="http://tinyurl.com/8zczkk" title="http://tinyurl.com/8zczkk"&gt;tinyurl.com&lt;/a&gt;</description>
      <pubDate>Wed, 31 Dec 2008 11:16:02 GMT</pubDate>
      <guid>http://oksoft.antville.org/stories/1867924/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2008-12-31T11:16:02Z</dc:date>
    </item>
    <item>
      <title>optimize all tables</title>
      <link>http://oksoft.antville.org/stories/1853492/</link>
      <description>mysql -e"SELECT CONCAT('OPTIMIZE TABLES ', GROUP_CONCAT(TABLE_SCHEMA, '.', TABLE_NAME ORDER BY TABLE_SCHEMA, TABLE_NAME SEPARATOR ',')) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'dbname' GROUP BY TABLE_SCHEMA\G&lt;br /&gt;
" | awk -F: '{print $2}' | mysql</description>
      <pubDate>Tue, 11 Nov 2008 11:44:04 GMT</pubDate>
      <guid>http://oksoft.antville.org/stories/1853492/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2008-11-11T11:44:04Z</dc:date>
    </item>
    <item>
      <title>Unix cheatsheets</title>
      <link>http://oksoft.antville.org/stories/1852681/</link>
      <description>Cheat sheet act as a reference tool which provides cut and paste kind of commands to complete a specific task. I often recommend following set of best cheat sheets to students and IT professionals. It include Linux / UNIX command and shell scripting. &lt;br /&gt;
&lt;br /&gt;
Read more: &lt;a href="http://www.cyberciti.biz/tips/linux-unix-commands-cheat-sheets.html" target="_top"&gt;Top 10 Best Cheat Sheets and Tutorials for Linux / UNIX Commands&lt;/a&gt;</description>
      <pubDate>Sat, 08 Nov 2008 14:00:17 GMT</pubDate>
      <guid>http://oksoft.antville.org/stories/1852681/</guid>
      <dc:creator>shantanuo</dc:creator>
      <dc:date>2008-11-08T14:00:17Z</dc:date>
    </item>
  </channel>
</rss>

