<?xml version="1.0" encoding="utf-8"?>
<!-- If you are running a bot please visit this policy page outlining rules you must respect. http://www.livejournal.com/bots/ -->
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:lj="http://www.livejournal.com">
  <id>urn:lj:livejournal.com:atom1:shantanuo</id>
  <title>Shantanu Oak</title>
  <subtitle>Shantanu Oak</subtitle>
  <author>
    <name>Shantanu Oak</name>
  </author>
  <link rel="alternate" type="text/html" href="http://shantanuo.livejournal.com/"/>
  <link rel="self" type="text/xml" href="http://shantanuo.livejournal.com/data/atom"/>
  <updated>2009-12-28T06:58:47Z</updated>
  <lj:journal userid="56336" username="shantanuo" type="personal"/>
  <link rel="service.feed" type="application/x.atom+xml" href="http://shantanuo.livejournal.com/data/atom" title="Shantanu Oak"/>
  <link rel="hub" href="http://pubsubhubbub.appspot.com/"/>
  <entry>
    <id>urn:lj:livejournal.com:atom1:shantanuo:65042</id>
    <link rel="alternate" type="text/html" href="http://shantanuo.livejournal.com/65042.html"/>
    <link rel="self" type="text/xml" href="http://shantanuo.livejournal.com/data/atom/?itemid=65042"/>
    <title>This is my english, where is yours?</title>
    <published>2009-12-28T06:56:38Z</published>
    <updated>2009-12-28T06:58:47Z</updated>
    <content type="html">Someone has written something about our poor english and it is our duty to defend it by saying "this person does not understand only."&lt;br /&gt;&lt;br /&gt;&lt;a href="http://litterateuse.wordpress.com/2009/12/13/we-are-indian-and-so-is-our-english/"&gt;http://litterateuse.wordpress.com/2009/12/13/we-are-indian-and-so-is-our-english/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;We Indians are very good at spellings but very bad when it comes to arrange the word one after another or to pick up the correct word / phrase. This happens because we don't read much, speak to our friends who are as good as us and most importantly translate everything from our mothertongue to English.&lt;br /&gt;&lt;br /&gt;A lot of sytle mistakes are pointed out in that article. So what? We Indians also know one thing and that is the "power of numbers". If we get enough number of people who does something then the rest of the world accept it. Simple na?&lt;br /&gt;&lt;br /&gt;Even my maid says "Why should I clean the floor daily daily?" Now it is nothing but the simple translation of hindi "roj roj" and it means daily.&lt;br /&gt;&lt;br /&gt;Doesn't google's translate service sounds like Inglish? So what is wrong with this type of transalted english? &lt;br /&gt;&lt;br /&gt;Actually a lot. A language is not just a way to communicate messages, it is also a medium of communicating culture, history and the smell of soil. The last thing is again foreign for some of us but unless you become the "son of soil" that term again translated from "bhumi Putra", you won't understand it. &lt;br /&gt;&lt;br /&gt;So my advice is, don't wait for the world to start communicating in Inglish just to make you comfortable, start learning the "standard" english.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:shantanuo:64786</id>
    <link rel="alternate" type="text/html" href="http://shantanuo.livejournal.com/64786.html"/>
    <link rel="self" type="text/xml" href="http://shantanuo.livejournal.com/data/atom/?itemid=64786"/>
    <title>Gearmand magic</title>
    <published>2009-11-22T13:56:31Z</published>
    <updated>2009-11-22T13:56:31Z</updated>
    <category term="mysql"/>
    <content type="html">Download the gearmand C library from...&lt;br /&gt;&lt;a href="http://launchpad.net/gearmand/trunk/0.10/+download/gearmand-0.10.tar.gz"&gt;http://launchpad.net/gearmand/trunk/0.10/+download/gearmand-0.10.tar.gz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;To build, you can follow the normal:&lt;br /&gt;./configure&lt;br /&gt;make&lt;br /&gt;make install&lt;br /&gt;&lt;br /&gt;You can also run 'make test' before installing to make sure everything checks out ok. Once you have it installed, you can start the Gearman job server with:&lt;br /&gt;gearmand -v&lt;br /&gt;&lt;br /&gt;This will start it while printing some verbose messages. To try running a job through it, look in the examples/ directory of this source and run:&lt;br /&gt;./reverse_worker&lt;br /&gt;&lt;br /&gt;Once that is running, you can run your first job with:&lt;br /&gt;./reverse_client "Hello, Gearman!"&lt;br /&gt;&lt;br /&gt;If all goes well, the reverse_worker application should have output:&lt;br /&gt;Job=H:lap:1 Workload=Hello, Gearman! Result=!namraeG ,olleH&lt;br /&gt;&lt;br /&gt;While the reverse_client returned:&lt;br /&gt;Result=!namraeG ,olleH&lt;br /&gt;&lt;br /&gt;_____&lt;br /&gt;&lt;br /&gt;MySQL user Defined functions that uses the gearmand C library as discussed above...&lt;br /&gt;&lt;br /&gt;&lt;a href="http://launchpad.net/gearman-mysql-udf/trunk/0.4/+download/gearman-mysql-udf-0.4.tar.gz"&gt;http://launchpad.net/gearman-mysql-udf/trunk/0.4/+download/gearman-mysql-udf-0.4.tar.gz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;To build:&lt;br /&gt;./configure --with-mysql=&lt;path to="to" mysql_config="mysql_config"&gt; --libdir=&lt;path to="to" mysql="mysql" plugin="plugin"&gt;&lt;br /&gt;&lt;br /&gt;For example:&lt;br /&gt;./configure --with-mysql=/usr/local/mysql/bin/mysql_config --libdir=/usr/local/mysql/lib/plugin/&lt;br /&gt;&lt;br /&gt;make&lt;br /&gt;make install&lt;br /&gt;&lt;br /&gt;Please keep in mind that for your UDF to be loaded, it must be in the library path for your server. On most UNIX-like systems you can set this by exporting the correct path in LD_LIBRARY_PATH for your mysql server.&lt;br /&gt;&lt;br /&gt;Once the UDFs have been compiled and installed, you load them into MySQL using the following queries:&lt;br /&gt;&lt;br /&gt;CREATE FUNCTION gman_do RETURNS STRING&lt;br /&gt;       SONAME "libgearman_mysql_udf.so";&lt;br /&gt;CREATE FUNCTION gman_do_high RETURNS STRING&lt;br /&gt;       SONAME "libgearman_mysql_udf.so";&lt;br /&gt;CREATE FUNCTION gman_do_low RETURNS STRING&lt;br /&gt;       SONAME "libgearman_mysql_udf.so";&lt;br /&gt;CREATE FUNCTION gman_do_background RETURNS STRING&lt;br /&gt;       SONAME "libgearman_mysql_udf.so";&lt;br /&gt;CREATE FUNCTION gman_do_high_background RETURNS STRING&lt;br /&gt;       SONAME "libgearman_mysql_udf.so";&lt;br /&gt;CREATE FUNCTION gman_do_low_background RETURNS STRING&lt;br /&gt;       SONAME "libgearman_mysql_udf.so";&lt;br /&gt;CREATE AGGREGATE FUNCTION gman_sum RETURNS INTEGER&lt;br /&gt;       SONAME "libgearman_mysql_udf.so";&lt;br /&gt;CREATE FUNCTION gman_servers_set RETURNS STRING&lt;br /&gt;       SONAME "libgearman_mysql_udf.so";&lt;br /&gt;&lt;br /&gt;Once loaded, you'll need to add servers for the clients to query first. This can be done with:&lt;br /&gt;SELECT gman_servers_set("127.0.0.1");&lt;br /&gt;&lt;br /&gt;_____&lt;br /&gt;&lt;br /&gt;select gman_do('reverse','abcd') as test;&lt;br /&gt;+------+&lt;br /&gt;| test |&lt;br /&gt;+------+&lt;br /&gt;| dcba |&lt;br /&gt;+------+&lt;br /&gt;&lt;br /&gt;SELECT gman_do('shell',&lt;br /&gt;concat(' ls -lh ', &lt;br /&gt;  (select variable_value from information_schema.global_variables &lt;br /&gt;  where variable_name = "datadir" )))\G &lt;br /&gt;&lt;br /&gt;total 40976&lt;br /&gt;-rw-rw----  1 gmax  staff   5.0M Nov 11 13:34 ib_logfile0&lt;br /&gt;-rw-rw----  1 gmax  staff   5.0M Nov 11 13:34 ib_logfile1&lt;br /&gt;-rw-rw----  1 gmax  staff    10M Nov 11 13:34 ibdata1&lt;br /&gt;-rw-rw----  1 gmax  staff   1.2K Nov 11 13:34 msandbox.err&lt;br /&gt;drwx------  2 gmax  staff   2.4K Nov 11 13:34 mysql&lt;br /&gt;-rw-rw----  1 gmax  staff     6B Nov 11 13:34 mysql_sandbox5140.pid&lt;br /&gt;drwx------  2 gmax  staff    68B Nov 11 13:34 test&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;select gman_do('eval','2 * 3') ;&lt;br /&gt;+-------------------------+&lt;br /&gt;| gman_do('eval','2 * 3') |&lt;br /&gt;+-------------------------+&lt;br /&gt;| 6                       |&lt;br /&gt;+-------------------------+&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;select gman_do('eval',&lt;br /&gt;  concat('$_="',host,'";tr/a-z/b-za/; $_')) &lt;br /&gt;as test from mysql.user;&lt;br /&gt;+-------------+&lt;br /&gt;| test        |&lt;br /&gt;+-------------+&lt;br /&gt;| %           |&lt;br /&gt;| myserver    |&lt;br /&gt;+-------------+</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:shantanuo:64628</id>
    <link rel="alternate" type="text/html" href="http://shantanuo.livejournal.com/64628.html"/>
    <link rel="self" type="text/xml" href="http://shantanuo.livejournal.com/data/atom/?itemid=64628"/>
    <title>Customizing gedit as a Web Developer’s IDE</title>
    <published>2009-10-18T06:17:23Z</published>
    <updated>2009-10-18T06:17:23Z</updated>
    <category term="linux"/>
    <content type="html">There are very simple changes those you can make to your favorite text editor "gedit" to make it a ppwerful developer tool.&lt;br /&gt;Personally, I like to have the following preferences set from Edit menu:&lt;br /&gt;&lt;br /&gt;* View &amp;gt; &lt;br /&gt;Uncheck "Enable text wrapping"&lt;br /&gt;Check "Display line numbers"&lt;br /&gt;Check "Highlight current line"&lt;br /&gt;Check "Display right margin" and set to 80. (I manually wrap my code at 80 characters)&lt;br /&gt;Highlight matching bracket (when cursor is at a bracket, it's pair is highlighted as shown in the image above).&lt;br /&gt;    &lt;br /&gt;* Editor &amp;gt;&lt;br /&gt; Check "Use spaces instead of tabs" and set "Tab width" to 4. (We can use modelines to change this from file to file)&lt;br /&gt; Check "Enable auto indentation"&lt;br /&gt; Uncheck "Create a backup copy of file before saving". (I manually backup everything before I start work)&lt;br /&gt;&lt;br /&gt;* Font and Colors &amp;gt; Uncheck "Use default theme font" and set "Editor Font" to "Monospace 10".&lt;br /&gt;&lt;br /&gt;* Plugins tab &amp;gt; check the box next to 'File Browser Pane' and tag list.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.micahcarrick.com/09-29-2007/gedit-html-editor.html"&gt;http://www.micahcarrick.com/09-29-2007/gedit-html-editor.html&lt;/a&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:shantanuo:64338</id>
    <link rel="alternate" type="text/html" href="http://shantanuo.livejournal.com/64338.html"/>
    <link rel="self" type="text/xml" href="http://shantanuo.livejournal.com/data/atom/?itemid=64338"/>
    <title>rewriting a sub query to use joins</title>
    <published>2009-08-21T17:11:33Z</published>
    <updated>2009-08-21T17:11:33Z</updated>
    <category term="mysql"/>
    <content type="html">&lt;font face="Courier New" size="2"&gt;&lt;br /&gt;&lt;font color="blue"&gt;SELECT&lt;/font&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="maroon"&gt;u&lt;/font&gt;&lt;font color="silver"&gt;.&lt;/font&gt;&lt;font color="maroon"&gt;uid&lt;/font&gt;&lt;font color="silver"&gt;,&lt;/font&gt;&lt;br /&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="maroon"&gt;u&lt;/font&gt;&lt;font color="silver"&gt;.&lt;/font&gt;&lt;font color="maroon"&gt;username&lt;/font&gt;&lt;font color="silver"&gt;,&lt;/font&gt;&lt;br /&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="maroon"&gt;u&lt;/font&gt;&lt;font color="silver"&gt;.&lt;/font&gt;&lt;font color="maroon"&gt;nid&lt;/font&gt;&lt;font color="silver"&gt;,&lt;/font&gt;&lt;br /&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="maroon"&gt;wd&lt;/font&gt;&lt;font color="silver"&gt;.&lt;/font&gt;&lt;font color="maroon"&gt;pay&lt;/font&gt;&lt;br /&gt;&lt;br&gt;&lt;font color="blue"&gt;FROM&lt;/font&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="maroon"&gt;(&lt;/font&gt;&lt;font color="maroon"&gt;users_data&lt;/font&gt;&amp;nbsp;&lt;font color="blue"&gt;AS&lt;/font&gt;&amp;nbsp;&lt;font color="maroon"&gt;u&lt;/font&gt;&lt;br /&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="blue"&gt;LEFT&lt;/font&gt;&amp;nbsp;&lt;font color="blue"&gt;JOIN&lt;/font&gt;&amp;nbsp;&lt;font color="maroon"&gt;winners_data&lt;/font&gt;&amp;nbsp;&lt;font color="maroon"&gt;wd&lt;/font&gt;&lt;br /&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="blue"&gt;ON&lt;/font&gt;&amp;nbsp;&lt;font color="maroon"&gt;u&lt;/font&gt;&lt;font color="silver"&gt;.&lt;/font&gt;&lt;font color="maroon"&gt;nid&lt;/font&gt;&amp;nbsp;&lt;font color="silver"&gt;=&lt;/font&gt;&amp;nbsp;&lt;font color="maroon"&gt;wd&lt;/font&gt;&lt;font color="silver"&gt;.&lt;/font&gt;&lt;font color="maroon"&gt;nid&lt;/font&gt;&lt;br /&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="blue"&gt;AND&lt;/font&gt;&amp;nbsp;&lt;font color="maroon"&gt;u&lt;/font&gt;&lt;font color="silver"&gt;.&lt;/font&gt;&lt;font color="maroon"&gt;uid&lt;/font&gt;&amp;nbsp;&lt;font color="silver"&gt;=&lt;/font&gt;&amp;nbsp;&lt;font color="maroon"&gt;wd&lt;/font&gt;&lt;font color="silver"&gt;.&lt;/font&gt;&lt;font color="maroon"&gt;uid&lt;/font&gt;&lt;font color="maroon"&gt;)&lt;/font&gt;&lt;br /&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="blue"&gt;LEFT&lt;/font&gt;&amp;nbsp;&lt;font color="blue"&gt;JOIN&lt;/font&gt;&amp;nbsp;&lt;font color="maroon"&gt;dp_node&lt;/font&gt;&amp;nbsp;&lt;font color="maroon"&gt;dn&lt;/font&gt;&lt;br /&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="blue"&gt;ON&lt;/font&gt;&amp;nbsp;&lt;font color="maroon"&gt;u&lt;/font&gt;&lt;font color="silver"&gt;.&lt;/font&gt;&lt;font color="maroon"&gt;nid&lt;/font&gt;&amp;nbsp;&lt;font color="silver"&gt;=&lt;/font&gt;&amp;nbsp;&lt;font color="maroon"&gt;dn&lt;/font&gt;&lt;font color="silver"&gt;.&lt;/font&gt;&lt;font color="maroon"&gt;nid&lt;/font&gt;&lt;br /&gt;&lt;br&gt;&lt;font color="blue"&gt;WHERE&lt;/font&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="maroon"&gt;u&lt;/font&gt;&lt;font color="silver"&gt;.&lt;/font&gt;&lt;font color="maroon"&gt;uid&lt;/font&gt;&amp;nbsp;&lt;font color="silver"&gt;=&lt;/font&gt;&amp;nbsp;&lt;font color="maroon"&gt;&amp;quot;.$val.&amp;quot;&lt;/font&gt;&lt;br /&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="blue"&gt;AND&lt;/font&gt;&amp;nbsp;&lt;font color="maroon"&gt;(&lt;/font&gt;&lt;font color="maroon"&gt;(&lt;/font&gt;&lt;font color="maroon"&gt;dn&lt;/font&gt;&lt;font color="silver"&gt;.&lt;/font&gt;&lt;font color="blue"&gt;TYPE&lt;/font&gt;&amp;nbsp;&lt;font color="silver"&gt;=&lt;/font&gt;&amp;nbsp;&lt;font color="red"&gt;'event'&lt;/font&gt;&lt;br /&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="blue"&gt;AND&lt;/font&gt;&amp;nbsp;&lt;font color="maroon"&gt;(&lt;/font&gt;&lt;font color="blue"&gt;SELECT&lt;/font&gt;&amp;nbsp;&lt;font color="#FF0080"&gt;&lt;b&gt;Count&lt;/font&gt;&lt;/b&gt;&lt;font color="maroon"&gt;(&lt;/font&gt;&lt;font color="maroon"&gt;nid&lt;/font&gt;&lt;font color="maroon"&gt;)&lt;/font&gt;&lt;br /&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="blue"&gt;FROM&lt;/font&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="maroon"&gt;tournament_event&lt;/font&gt;&lt;br /&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="blue"&gt;WHERE&lt;/font&gt;&amp;nbsp;&amp;nbsp;&lt;font color="maroon"&gt;nid&lt;/font&gt;&amp;nbsp;&lt;font color="silver"&gt;=&lt;/font&gt;&amp;nbsp;&lt;font color="maroon"&gt;u&lt;/font&gt;&lt;font color="silver"&gt;.&lt;/font&gt;&lt;font color="maroon"&gt;nid&lt;/font&gt;&lt;br /&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="blue"&gt;AND&lt;/font&gt;&amp;nbsp;&lt;font color="maroon"&gt;type_value&lt;/font&gt;&amp;nbsp;&lt;font color="blue"&gt;IN&lt;/font&gt;&amp;nbsp;&lt;font color="maroon"&gt;(&lt;/font&gt;&lt;font color="red"&gt;'A'&lt;/font&gt;&lt;font color="silver"&gt;,&lt;/font&gt;&lt;font color="red"&gt;'B'&lt;/font&gt;&lt;font color="silver"&gt;,&lt;/font&gt;&lt;font color="red"&gt;'C'&lt;/font&gt;&lt;font color="maroon"&gt;)&lt;/font&gt;&lt;font color="maroon"&gt;)&lt;/font&gt;&amp;nbsp;&lt;font color="silver"&gt;&amp;gt;&lt;/font&gt;&amp;nbsp;&lt;font color="black"&gt;0&lt;/font&gt;&lt;font color="maroon"&gt;)&lt;/font&gt;&lt;br /&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="blue"&gt;OR&lt;/font&gt;&amp;nbsp;&lt;font color="maroon"&gt;(&lt;/font&gt;&lt;font color="maroon"&gt;dn&lt;/font&gt;&lt;font color="silver"&gt;.&lt;/font&gt;&lt;font color="blue"&gt;TYPE&lt;/font&gt;&amp;nbsp;&lt;font color="silver"&gt;=&lt;/font&gt;&amp;nbsp;&lt;font color="red"&gt;'new_event'&lt;/font&gt;&lt;br /&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="blue"&gt;AND&lt;/font&gt;&amp;nbsp;&lt;font color="maroon"&gt;(&lt;/font&gt;&lt;font color="blue"&gt;SELECT&lt;/font&gt;&amp;nbsp;&lt;font color="#FF0080"&gt;&lt;b&gt;Count&lt;/font&gt;&lt;/b&gt;&lt;font color="maroon"&gt;(&lt;/font&gt;&lt;font color="maroon"&gt;nid&lt;/font&gt;&lt;font color="maroon"&gt;)&lt;/font&gt;&lt;br /&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="blue"&gt;FROM&lt;/font&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="maroon"&gt;user_tournament_event&lt;/font&gt;&lt;br /&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="blue"&gt;WHERE&lt;/font&gt;&amp;nbsp;&amp;nbsp;&lt;font color="maroon"&gt;nid&lt;/font&gt;&amp;nbsp;&lt;font color="silver"&gt;=&lt;/font&gt;&amp;nbsp;&lt;font color="maroon"&gt;u&lt;/font&gt;&lt;font color="silver"&gt;.&lt;/font&gt;&lt;font color="maroon"&gt;nid&lt;/font&gt;&lt;br /&gt;&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;font color="blue"&gt;AND&lt;/font&gt;&amp;nbsp;&lt;font color="maroon"&gt;type_0_value&lt;/font&gt;&amp;nbsp;&lt;font color="blue"&gt;IN&lt;/font&gt;&amp;nbsp;&lt;font color="maroon"&gt;(&lt;/font&gt;&lt;font color="red"&gt;'Y'&lt;/font&gt;&lt;font color="silver"&gt;,&lt;/font&gt;&lt;font color="red"&gt;'X'&lt;/font&gt;&lt;font color="maroon"&gt;)&lt;/font&gt;&lt;font color="maroon"&gt;)&lt;/font&gt;&amp;nbsp;&lt;font color="silver"&gt;&amp;gt;&lt;/font&gt;&amp;nbsp;&lt;font color="black"&gt;0&lt;/font&gt;&lt;font color="maroon"&gt;)&lt;/font&gt;&lt;font color="maroon"&gt;)&lt;/font&gt;&lt;br /&gt;&lt;br&gt;&lt;font color="blue"&gt;ORDER&lt;/font&gt;&amp;nbsp;&lt;font color="blue"&gt;BY&lt;/font&gt;&amp;nbsp;&lt;font color="maroon"&gt;nid&lt;/font&gt;&amp;nbsp;&lt;font color="blue"&gt;ASC&lt;/font&gt;&lt;br /&gt;&lt;/font&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:shantanuo:64197</id>
    <link rel="alternate" type="text/html" href="http://shantanuo.livejournal.com/64197.html"/>
    <link rel="self" type="text/xml" href="http://shantanuo.livejournal.com/data/atom/?itemid=64197"/>
    <title>Victims of Internet virus</title>
    <published>2009-08-02T16:21:51Z</published>
    <updated>2009-08-02T16:21:51Z</updated>
    <category term="malware"/>
    <category term="virus"/>
    <content type="html">The hidden IFRAME from the ‘good’ site causes the user’s browser to silently pull content from the ‘bad’ site. As it does so, the ‘bad’ site is able to determine what operating system, Web browser and vulnerable plug-ins are running on the user’s computer.&lt;br /&gt;&lt;br /&gt;It then sends specially crafted multimedia data that contains an attack to the victim's computer. Once this content has been played by the multimedia player, the attacker has gained control of the computer. Leveraging the vulnerability present in the user’s multimedia player, one or more malware files are installed on the user’s computer.&lt;br /&gt;&lt;br /&gt;The malicious code now steals personal information (e.g., online banking information, email, gaming passwords) and sends it back to the attacker. The entire attack is usually invisible to the victim and leaves no apparent clues to indicate that the computer has been compromised.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://economictimes.indiatimes.com/quickiearticleshow/4836560.cms"&gt;http://economictimes.indiatimes.com/quickiearticleshow/4836560.cms&lt;/a&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:shantanuo:63920</id>
    <link rel="alternate" type="text/html" href="http://shantanuo.livejournal.com/63920.html"/>
    <link rel="self" type="text/xml" href="http://shantanuo.livejournal.com/data/atom/?itemid=63920"/>
    <title>Open Office Template</title>
    <published>2009-07-24T09:01:59Z</published>
    <updated>2009-07-24T09:01:59Z</updated>
    <category term="usability"/>
    <content type="html">Honestly OpenOffice.org doesn’t come with any templates or clip art worth mentioning, but the community provides free templates that are easy to install. My favorite presentation templates are those designed by Chih-Hao Tsai: &lt;br /&gt;&lt;br /&gt;&lt;a href="http://technology.chtsai.org/impress/"&gt;http://technology.chtsai.org/impress/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The OpenOffice.org Repositories for Extensions and for Templates are new services organizing many useful templates. &lt;br /&gt;&lt;a href="http://templates.services.openoffice.org/en/taxonomy/term/4"&gt;http://templates.services.openoffice.org/en/taxonomy/term/4&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;It may not be intuitive to look for templates under the Extensions Repository, but many templates packs are distributed as extensions. In particular, try the Professional Template Pack I and II. &lt;br /&gt;&lt;br /&gt;&lt;a href="http://extensions.services.openoffice.org/project/SunTemplatepack_1"&gt;http://extensions.services.openoffice.org/project/SunTemplatepack_1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://extensions.services.openoffice.org/project/TemplatePack_II"&gt;http://extensions.services.openoffice.org/project/TemplatePack_II&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Once you install the template packs, start OpenOffice.org and click File – New – Templates to browse the templates. If you are printing address, mailing, shipping, CD and other types of labels, browse WorldLabel.com Label Templates.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.worldlabel.com/Pages/autofillpdf-labels.htm"&gt;http://www.worldlabel.com/Pages/autofillpdf-labels.htm&lt;/a&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:shantanuo:63526</id>
    <link rel="alternate" type="text/html" href="http://shantanuo.livejournal.com/63526.html"/>
    <link rel="self" type="text/xml" href="http://shantanuo.livejournal.com/data/atom/?itemid=63526"/>
    <title>User Friendly Ms-Office</title>
    <published>2009-07-24T08:59:06Z</published>
    <updated>2009-07-24T08:59:06Z</updated>
    <category term="usability"/>
    <content type="html">One of the most important change took place in the latest M$ office is that it has dumped the drop down menu system. The "ribbon" as they call it, is not bad. But see what I got when I hit Alt + H&lt;br /&gt;&lt;br /&gt;&lt;img src="http://i625.photobucket.com/albums/tt332/shantanuo/user_friendlyJPG.jpg?t=1248425869" /&gt;&lt;br /&gt;&lt;br /&gt;If this is called "User Friendly" then what should be called "ugly"? This is not the right way to maintain backward compatibility!</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:shantanuo:63346</id>
    <link rel="alternate" type="text/html" href="http://shantanuo.livejournal.com/63346.html"/>
    <link rel="self" type="text/xml" href="http://shantanuo.livejournal.com/data/atom/?itemid=63346"/>
    <title>Google's Context-Sensitive Spell Checker</title>
    <published>2009-07-07T15:10:44Z</published>
    <updated>2009-07-07T15:10:44Z</updated>
    <category term="google"/>
    <category term="spell check"/>
    <content type="html">Wikipedia includes as an example: "Their coming too sea if its reel", a phrase that has 5 spelling mistakes, even though all the words can be found in the dictionary. If you enter this text in Gmail's editor and click on "Check spelling", Gmail won't find any error. Type the same text in Google's search box, and you'll get a "did you mean" message that suggests to search for "Their coming to see if its real". As you can see, Google's search box has a better spell checker than Gmail since it doesn't rely on a dictionary, it uses a huge amount of searches to determine what are the most probable sequences of words that follow a certain pattern. Unfortunately, the spell checker available at Google.com is optimized for searches, which are usually short, so you can't use it to spell check an email message or a blog post.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://googlesystem.blogspot.com/2009/05/googles-context-sensitive-spell-checker.html"&gt;http://googlesystem.blogspot.com/2009/05/googles-context-sensitive-spell-checker.html&lt;/a&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:shantanuo:62995</id>
    <link rel="alternate" type="text/html" href="http://shantanuo.livejournal.com/62995.html"/>
    <link rel="self" type="text/xml" href="http://shantanuo.livejournal.com/data/atom/?itemid=62995"/>
    <title>SQLite Triggers</title>
    <published>2009-06-13T11:40:16Z</published>
    <updated>2009-06-13T11:40:16Z</updated>
    <category term="sqlite"/>
    <content type="html">Assuming that customer records are stored in the "customers" table, and that order records are stored in the "orders" table, the following trigger ensures that all associated orders are redirected when a customer changes his or her address:&lt;br /&gt;&lt;br /&gt;    CREATE TRIGGER update_customer_address UPDATE OF address ON customers &lt;br /&gt;      BEGIN&lt;br /&gt;        UPDATE orders SET address = new.address WHERE customer_name = old.name;&lt;br /&gt;      END;&lt;br /&gt;&lt;br /&gt;With this trigger installed, executing the statement:&lt;br /&gt;&lt;br /&gt;    UPDATE customers SET address = '1 Main St.' WHERE name = 'Jack Jones';&lt;br /&gt;&lt;br /&gt;causes the following to be automatically executed:&lt;br /&gt;&lt;br /&gt;    UPDATE orders SET address = '1 Main St.' WHERE customer_name = 'Jack Jones';</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:shantanuo:62900</id>
    <link rel="alternate" type="text/html" href="http://shantanuo.livejournal.com/62900.html"/>
    <link rel="self" type="text/xml" href="http://shantanuo.livejournal.com/data/atom/?itemid=62900"/>
    <title>SQLite Example file</title>
    <published>2009-06-13T11:27:59Z</published>
    <updated>2009-06-13T11:27:59Z</updated>
    <category term="sqlite"/>
    <content type="html">Here is an example how does SQLite handle datetime function:&lt;br /&gt;&lt;br /&gt;create table events (id INTEGER PRIMARY KEY AUTOINCREMENT, name, kind, start, end);&lt;br /&gt;&lt;br /&gt;insert into events values (null, 'tom', 'hour', datetime('now', '+1 day','start of day', '+11 hours'), datetime('now', '+1 day','start of day', '+12 hours'));&lt;br /&gt;insert into events values (null, 'tom', 'hour', datetime('now', '+1 day','start of day', '+9 hours'), datetime('now', '+1 day','start of day', '+10 hours'));&lt;br /&gt;insert into events values (null, 'joe', 'hour', datetime('now', '+1 day','start of day', '+9 hours'), datetime('now', '+1 day','start of day', '+10 hours'));&lt;br /&gt;insert into events values (null, 'tom', 'day', datetime('now', '+1 day','start of day'), datetime('now', '+1 day','start of day', '+1 day'));&lt;br /&gt;&lt;br /&gt;select *, (strftime('%s', end) -  strftime('%s', start)) as length from events;&lt;br /&gt;&lt;br /&gt;select *, min((strftime('%s', end) -  strftime('%s', start))) as length from events where datetime('now', '+1 day','start of day', '+9 hours','+30 minutes') and end  &amp;gt; datetime('now', '+1 day','start of day', '+9 hours','+30 minutes') group by name;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:shantanuo:62630</id>
    <link rel="alternate" type="text/html" href="http://shantanuo.livejournal.com/62630.html"/>
    <link rel="self" type="text/xml" href="http://shantanuo.livejournal.com/data/atom/?itemid=62630"/>
    <title>Some Important Bookmarks:</title>
    <published>2009-06-04T06:50:09Z</published>
    <updated>2009-06-04T06:50:09Z</updated>
    <category term="greedy"/>
    <content type="html">Need to check the following links before investing :)&lt;br /&gt;&lt;br /&gt;Alerts: &lt;br /&gt;&lt;a href="https://secure.icicidirect.com/customer/sms/DirectAlert_ViewAlert_temp.asp"&gt;https://secure.icicidirect.com/customer/sms/DirectAlert_ViewAlert_temp.asp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Demat Balance:&lt;br /&gt;&lt;a href="https://secure.icicidirect.com/trading/equity/trading_demat_balance.asp"&gt;https://secure.icicidirect.com/trading/equity/trading_demat_balance.asp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;SectorWise:&lt;br /&gt;&lt;a href="https://secure.icicidirect.com/Trading/Portfolio/portfolio_model.asp#main"&gt;https://secure.icicidirect.com/Trading/Portfolio/portfolio_model.asp#main&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;NetWorth:&lt;br /&gt;&lt;a href="https://secure.icicidirect.com/Trading/Portfolio/portfolio_networth.asp#main"&gt;https://secure.icicidirect.com/Trading/Portfolio/portfolio_networth.asp#main&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Research:&lt;br /&gt;&lt;a href="http://content.icicidirect.com/research/YearlyHighLows.asp?icicicode=ICIBAN"&gt;http://content.icicidirect.com/research/YearlyHighLows.asp?icicicode=ICIBAN&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Margin Positions:&lt;br /&gt;&lt;a href="https://secure.icicidirect.com/trading/equity/trading_margin_positions.asp"&gt;https://secure.icicidirect.com/trading/equity/trading_margin_positions.asp&lt;/a&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:shantanuo:62239</id>
    <link rel="alternate" type="text/html" href="http://shantanuo.livejournal.com/62239.html"/>
    <link rel="self" type="text/xml" href="http://shantanuo.livejournal.com/data/atom/?itemid=62239"/>
    <title>Star trains Between Mumbai and Pune</title>
    <published>2009-05-06T13:54:30Z</published>
    <updated>2009-05-07T10:26:05Z</updated>
    <content type="html">Mumbai to Pune&lt;br /&gt;Hyderabad Express 7031 12:45PM 4:30PM (Dadar, Kalyan, Karjat, Lonavala, Pune Junction) Rs. 415, 300, 121&lt;br /&gt;Chennai Special 0163 12:45PM 3:25PM NON STOP Rs. 415, 300, 121 Only on Tuesday&lt;br /&gt;Konark Express 1019 3:10PM 7:00PM (Dadar, Kalyan, Karjat, Lonavala, Pune Junction)  Rs. 415, 300, 121&lt;br /&gt;Kanyakumari Express 6381 3:45PM 7:15PM (Dadar, Kalyan, Karjat, Lonavala, Pune Junction)  Rs. 415, 300, 121&lt;br /&gt;Pragati Express 2125 4:25PM 7:53PM (Dadar, Karjat, Lonavala, ShivajiNagar) Rs. 250, 71&lt;br /&gt;Deccan Queen Express 2123 5:10 PM 8:25PM (Karjat, Lonavala, ShivajiNagar) Rs. 250, 71&lt;br /&gt;&lt;br /&gt;Pune to Mumbai&lt;br /&gt;* Deccan Queen Express 2124 7:15AM 10:30AM (Lonavala, Dadar) Rs. 250, 71&lt;br /&gt;* Pragati Express 2126 7:50AM 11:10AM (Lonavala, Dadar) Rs. 250, 71&lt;br /&gt;Chennai Dadar Superfast Express 0164  8:10PM 10:55PM NON STOP Rs. 415, 300, 121 Only Thursday&lt;br /&gt;Mumbai express 7032 9:10AM 1:05PM (Lonavala, Karjat, Kalyan, Dadar) Rs. 250, 71&lt;br /&gt;Mumbai Express 1042 9:35AM 1:45PM (Khadi, Lonavala, Kalyan, Thane, Dadar) Rs. 415, 300, 121&lt;br /&gt;Hyderabad Dadar Special 0732 11:35AM 3:30PM  (Lonavala, Kalyan) Rs. 415, 300, 121  Only Sunday and Monday&lt;br /&gt;&lt;br /&gt;Udyan Express 6530 3:50PM 7:50PM (Lonvala, Kalyan, Dadar) Rs. 415, 300, 121 &lt;br /&gt;Nagarcoil Mumbai Express 6352 4:40PM 8:50PM (Lonavala, Kalyan, Thane, Dadar) Rs. 415, 300, 121 Monday and Friday&lt;br /&gt;Mumbai Express 6340 4:40PM 8:50PM (Lonavala, Kalyan, Thane, Dadar) Rs. 415, 300, 121 Tuesday, Web, Thu, Sat&lt;br /&gt;Mumbai Express 6332 4:40PM 8:50PM (Lonavala, Kalyan, Thane, Dadar) Rs. 415, 300, 121 sunday&lt;br /&gt;* Intercity Express 2128 5:55PM 9:00PM (Lonavala, Thane, Dadar) Rs. 250, 71&lt;br /&gt;* Indrayani  Express 1022 6:35PM 9:55PM (Lonavala, Karjat, Kalyan, Thane, Dadar) Rs. 250, 71</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:shantanuo:62177</id>
    <link rel="alternate" type="text/html" href="http://shantanuo.livejournal.com/62177.html"/>
    <link rel="self" type="text/xml" href="http://shantanuo.livejournal.com/data/atom/?itemid=62177"/>
    <title>decrease the shutdown time</title>
    <published>2009-04-22T09:17:46Z</published>
    <updated>2009-04-22T09:17:46Z</updated>
    <category term="mysql"/>
    <content type="html">One way to decrease the shutdown time is to pre-flush the dirty pages, like this:&lt;br /&gt;&lt;br /&gt;mysql&amp;gt; set global innodb_max_dirty_pages_pct = 0; &lt;br /&gt;&lt;br /&gt;Now run the following command:&lt;br /&gt;&lt;br /&gt;      $ mysqladmin ext -i10 | grep dirty&lt;br /&gt;      | Innodb_buffer_pool_pages_dirty    | 1823484        |&lt;br /&gt;      | Innodb_buffer_pool_pages_dirty    | 1821293        |&lt;br /&gt;      | Innodb_buffer_pool_pages_dirty    | 1818938        | &lt;br /&gt;&lt;br /&gt;And wait until it approaches zero. (If the server is being actively used, it won't get to zero.)&lt;br /&gt;&lt;br /&gt;Once it's pretty low, you can perform the shutdown and there'll be a lot less unfinished work to do, so the server should shut down more quickly.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:shantanuo:61841</id>
    <link rel="alternate" type="text/html" href="http://shantanuo.livejournal.com/61841.html"/>
    <link rel="self" type="text/xml" href="http://shantanuo.livejournal.com/data/atom/?itemid=61841"/>
    <title>PEAR Power</title>
    <published>2009-04-13T07:22:58Z</published>
    <updated>2009-04-13T07:22:58Z</updated>
    <category term="php"/>
    <category term="pear"/>
    <content type="html">Basic commands:&lt;br /&gt;&lt;br /&gt;pear search services&lt;br /&gt;(search for packages those have services keyword in it)&lt;br /&gt;&lt;br /&gt;pear list&lt;br /&gt;(installed packages)&lt;br /&gt;&lt;br /&gt;pear upgrade-all&lt;br /&gt;(upgrade installed packages)&lt;br /&gt;&lt;br /&gt;pear install --alldeps Service_Weather&lt;br /&gt;&lt;br /&gt;_____&lt;br /&gt;&lt;br /&gt;Useful Packages&lt;br /&gt;&lt;br /&gt;Mail&lt;br /&gt;(send mail with attachments)&lt;br /&gt;&lt;br /&gt;upload/ download file after tar or zip&lt;br /&gt;(file management made easy)&lt;br /&gt;&lt;br /&gt;pager&lt;br /&gt;(Paging result rows)&lt;br /&gt;&lt;br /&gt;DB&lt;br /&gt;(Database connection)&lt;br /&gt;&lt;br /&gt;HTML_safe&lt;br /&gt;(Find unclosed tags)&lt;br /&gt;&lt;br /&gt;HTML_QuickForm&lt;br /&gt;(Build forms dynamically)&lt;br /&gt;&lt;br /&gt;HTML_Menu&lt;br /&gt;(Build menus dynamically)&lt;br /&gt;&lt;br /&gt;Numbers_words&lt;br /&gt;(numbers to word like One hundred fifty)&lt;br /&gt;&lt;br /&gt;Date&lt;br /&gt;(all about comparing dates, finding diff)&lt;br /&gt;&lt;br /&gt;PhpDocumentor&lt;br /&gt;(code documentation on the fly)&lt;br /&gt;&lt;br /&gt;Log&lt;br /&gt;(Logging messages from code)&lt;br /&gt;&lt;br /&gt;Config&lt;br /&gt;(have a single file for all configurations)&lt;br /&gt;&lt;br /&gt;Auth&lt;br /&gt;(Login / password management)</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:shantanuo:61471</id>
    <link rel="alternate" type="text/html" href="http://shantanuo.livejournal.com/61471.html"/>
    <link rel="self" type="text/xml" href="http://shantanuo.livejournal.com/data/atom/?itemid=61471"/>
    <title>Tips time</title>
    <published>2009-04-08T04:20:56Z</published>
    <updated>2009-04-08T04:20:56Z</updated>
    <content type="html">Here are the things I have recently learned...&lt;br /&gt;_____&lt;br /&gt;&lt;br /&gt;Success code start with 2xx&lt;br /&gt;&lt;br /&gt;OK 200&lt;br /&gt;Accepted 202&lt;br /&gt;No Response 204&lt;br /&gt;Created 201&lt;br /&gt;partial 203&lt;br /&gt;&lt;br /&gt;Error code start with 4xx and 5xx&lt;br /&gt;Bad Request 400&lt;br /&gt;Unauthorized 401&lt;br /&gt;Payment Requested 402&lt;br /&gt;Forbidden 403&lt;br /&gt;Not Found 404&lt;br /&gt;&lt;br /&gt;Internal Error 500&lt;br /&gt;Not Implemented 501&lt;br /&gt;Service temporarily overloaded 502&lt;br /&gt;Gateway Timeout 503&lt;br /&gt;&lt;br /&gt;Moved 301&lt;br /&gt;Found 302&lt;br /&gt;Modified 303&lt;br /&gt;Not Modified 304&lt;br /&gt;&lt;br /&gt;_____&lt;br /&gt;&lt;br /&gt;When you are using Ext3 filesystem you are limiting yourself to 16GB single file size. And you can have 32000 directories/ files. The number is double in case of Ext4 filesystem.&lt;br /&gt;&lt;br /&gt;_____&lt;br /&gt;&lt;br /&gt;The fullform of ISCSI is Internet Small Computer Storage Interface&lt;br /&gt;&lt;br /&gt;_____&lt;br /&gt;&lt;br /&gt;There is a live cd called Damn Vulnerable Linux that is very unstable and open for intrusions.&lt;br /&gt;There is also xp.iso that acts like Windows live cd.&lt;br /&gt;&lt;br /&gt;_____&lt;br /&gt;&lt;br /&gt;nikto, ettercap, nessus, wireshark and nmap are the two utilities for network security.&lt;br /&gt;&lt;br /&gt;Some useful commands:&lt;br /&gt;nmap -sS -o 10.10.10.0/24&lt;br /&gt;/etc/init.d/nessusd start&lt;br /&gt;equery files nessus&lt;br /&gt;&lt;br /&gt;_____&lt;br /&gt;&lt;br /&gt;In order to transfer a file to windows start listening on windows box&lt;br /&gt;nc -lvp 4444 -e cmd.exe&lt;br /&gt;&lt;br /&gt;and connect from Linux box&lt;br /&gt;nc -v 192.168.240.128 4444</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:shantanuo:61259</id>
    <link rel="alternate" type="text/html" href="http://shantanuo.livejournal.com/61259.html"/>
    <link rel="self" type="text/xml" href="http://shantanuo.livejournal.com/data/atom/?itemid=61259"/>
    <title>extracting rar files in linux</title>
    <published>2009-03-05T05:39:11Z</published>
    <updated>2009-03-05T05:39:11Z</updated>
    <category term="linux"/>
    <content type="html"># wget &lt;a href="http://www.rarlab.com/rar/rarlinux-3.6.0.tar.gz"&gt;http://www.rarlab.com/rar/rarlinux-3.6.0.tar.gz&lt;/a&gt;&lt;br /&gt;--12:01:13--  &lt;a href="http://www.rarlab.com/rar/rarlinux-3.6.0.tar.gz"&gt;http://www.rarlab.com/rar/rarlinux-3.6.0.tar.gz&lt;/a&gt;&lt;br /&gt;Resolving www.rarlab.com... 217.70.129.242&lt;br /&gt;Connecting to www.rarlab.com|217.70.129.242|:80... connected.&lt;br /&gt;HTTP request sent, awaiting response... 200 OK&lt;br /&gt;Length: 752997 (735K) [application/x-gzip]&lt;br /&gt;Saving to: `rarlinux-3.6.0.tar.gz'&lt;br /&gt;&lt;br /&gt;100%[=======&amp;gt;] 752,997     27.3K/s   in 29s    &lt;br /&gt;&lt;br /&gt;12:01:45 (25.6 KB/s) - `rarlinux-3.6.0.tar.gz' saved [752997/752997]&lt;br /&gt;&lt;br /&gt;# tar -zxvf rarlinux-3.6.0.tar.gz&lt;br /&gt;rar/&lt;br /&gt;rar/file_id.diz&lt;br /&gt;rar/license.txt&lt;br /&gt;rar/Makefile&lt;br /&gt;rar/order.htm&lt;br /&gt;rar/rarfiles.lst&lt;br /&gt;rar/rar.txt&lt;br /&gt;rar/readme.txt&lt;br /&gt;rar/technote.txt&lt;br /&gt;rar/whatsnew.txt&lt;br /&gt;rar/rar&lt;br /&gt;rar/rar_static&lt;br /&gt;rar/unrar&lt;br /&gt;rar/default.sfx&lt;br /&gt;&lt;br /&gt;# cd rar&lt;br /&gt;# cp rar unrar /bin</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:shantanuo:61168</id>
    <link rel="alternate" type="text/html" href="http://shantanuo.livejournal.com/61168.html"/>
    <link rel="self" type="text/xml" href="http://shantanuo.livejournal.com/data/atom/?itemid=61168"/>
    <title>Remove junk in Linux</title>
    <published>2008-11-20T09:07:35Z</published>
    <updated>2008-11-20T09:07:35Z</updated>
    <category term="linux"/>
    <content type="html">Sometimes you'll end up with carriage returns on each line in a file originally created on a DOS/Windows system, or filenames with spaces, tab, or other control characters in them, but you can't see them typically.&lt;br /&gt;The cat command provides three useful options -v, -e, and -t that will let you understand these invisible characters&lt;br /&gt;-v (displays non-printing characters)&lt;br /&gt;-e (prints a "$" at the end of each line to indicate a NL character)&lt;br /&gt;-t (prints "^I" for each Tab in the file)&lt;br /&gt;cat -vet filename |more</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:shantanuo:60797</id>
    <link rel="alternate" type="text/html" href="http://shantanuo.livejournal.com/60797.html"/>
    <link rel="self" type="text/xml" href="http://shantanuo.livejournal.com/data/atom/?itemid=60797"/>
    <title>Analyse mysql config using MySQLTuner</title>
    <published>2008-10-12T12:31:09Z</published>
    <updated>2008-10-12T12:31:09Z</updated>
    <category term="mysql"/>
    <content type="html">[root@localhost Desktop]# cd /root/&lt;br /&gt;&lt;br /&gt;[root@localhost ~]# wget mysqltuner.pl/mysqltuner.pl&lt;br /&gt;--17:58:59--  &lt;a href="http://mysqltuner.pl/mysqltuner.pl"&gt;http://mysqltuner.pl/mysqltuner.pl&lt;/a&gt;&lt;br /&gt;Resolving mysqltuner.pl... 209.20.89.226&lt;br /&gt;Connecting to mysqltuner.pl|209.20.89.226|:80... connected.&lt;br /&gt;HTTP request sent, awaiting response... 200 OK&lt;br /&gt;Length: 38063 (37K) [text/plain]&lt;br /&gt;Saving to: `mysqltuner.pl'&lt;br /&gt;&lt;br /&gt;100%[====================================================================================&amp;gt;] 38,063      36.2K/s   in 1.0s   &lt;br /&gt;&lt;br /&gt;17:59:01 (36.2 KB/s) - `mysqltuner.pl' saved [38063/38063]&lt;br /&gt;&lt;br /&gt;[root@localhost ~]# ./mysqltuner.pl&lt;br /&gt;bash: ./mysqltuner.pl: Permission denied&lt;br /&gt;&lt;br /&gt;[root@localhost ~]# chmod +x mysqltuner.pl&lt;br /&gt;&lt;br /&gt;[root@localhost ~]# ./mysqltuner.pl&lt;br /&gt;&lt;br /&gt; &amp;gt;&amp;gt;  MySQLTuner 0.9.9 - Major Hayden &amp;lt;major@mhtx.net&amp;gt;&lt;br /&gt; &amp;gt;&amp;gt;  Bug reports, feature requests, and downloads at &lt;a href="http://mysqltuner.com/"&gt;http://mysqltuner.com/&lt;/a&gt;&lt;br /&gt; &amp;gt;&amp;gt;  Run with '--help' for additional options and output filtering&lt;br /&gt;[!!] Successfully authenticated with no password - SECURITY RISK!&lt;br /&gt;&lt;br /&gt;-------- General Statistics --------------------------------------------------&lt;br /&gt;[--] Skipped version check for MySQLTuner script&lt;br /&gt;[OK] Currently running supported MySQL version 5.0.44sp1-enterprise-gpl-log&lt;br /&gt;[OK] Operating on 32-bit architecture with less than 2GB RAM&lt;br /&gt;&lt;br /&gt;-------- Storage Engine Statistics -------------------------------------------&lt;br /&gt;[--] Status: +Archive -BDB -Federated +InnoDB -ISAM -NDBCluster &lt;br /&gt;[--] Data in MyISAM tables: 250M (Tables: 35)&lt;br /&gt;[--] Data in InnoDB tables: 145M (Tables: 29)&lt;br /&gt;[--] Data in ARCHIVE tables: 95M (Tables: 3)&lt;br /&gt;[!!] Total fragmented tables: 2&lt;br /&gt;&lt;br /&gt;-------- Performance Metrics -------------------------------------------------&lt;br /&gt;[--] Up for: 14h 27m 20s (569 q [0.011 qps], 18 conn, TX: 63K, RX: 9K)&lt;br /&gt;[--] Reads / Writes: 100% / 0%&lt;br /&gt;[--] Total buffers: 1.0G global + 23.1M per thread (400 max threads)&lt;br /&gt;[!!] Allocating &amp;gt; 2GB RAM on 32-bit systems can cause system instability&lt;br /&gt;[!!] Maximum possible memory usage: 10.1G (1179% of installed RAM)&lt;br /&gt;[OK] Slow queries: 0% (0/569)&lt;br /&gt;[OK] Highest usage of available connections: 0% (1/400)&lt;br /&gt;[OK] Key buffer size / total MyISAM indexes: 1.0G/130.9M&lt;br /&gt;[!!] Key buffer hit rate: 66.7% (6 cached / 2 reads)&lt;br /&gt;[!!] Query cache is disabled&lt;br /&gt;[OK] Sorts requiring temporary tables: 0% (0 temp sorts / 1 sorts)&lt;br /&gt;[OK] Temporary tables created on disk: 17% (15 on disk / 88 total)&lt;br /&gt;[OK] Thread cache hit rate: 94% (1 created / 18 connections)&lt;br /&gt;[OK] Table cache hit rate: 92% (86 open / 93 opened)&lt;br /&gt;[OK] Open file limit used: 5% (112/2K)&lt;br /&gt;[OK] Table locks acquired immediately: 100% (25 immediate / 25 locks)&lt;br /&gt;[!!] Connections aborted: 16%&lt;br /&gt;[!!] InnoDB data size / buffer pool: 145.4M/8.0M&lt;br /&gt;&lt;br /&gt;-------- Recommendations -----------------------------------------------------&lt;br /&gt;General recommendations:&lt;br /&gt;    Run OPTIMIZE TABLE to defragment tables for better performance&lt;br /&gt;    MySQL started within last 24 hours - recommendations may be inaccurate&lt;br /&gt;    Your applications are not closing MySQL connections properly&lt;br /&gt;Variables to adjust:&lt;br /&gt;  *** MySQL's maximum memory usage exceeds your installed memory ***&lt;br /&gt;  *** Add more RAM before increasing any MySQL buffer variables  ***&lt;br /&gt;    query_cache_size (&amp;gt;= 8M)&lt;br /&gt;    innodb_buffer_pool_size (&amp;gt;= 145M)</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:shantanuo:60572</id>
    <link rel="alternate" type="text/html" href="http://shantanuo.livejournal.com/60572.html"/>
    <link rel="self" type="text/xml" href="http://shantanuo.livejournal.com/data/atom/?itemid=60572"/>
    <title>Sorting in Linux</title>
    <published>2008-10-02T12:28:32Z</published>
    <updated>2008-10-02T12:28:32Z</updated>
    <category term="sort"/>
    <category term="linux"/>
    <content type="html">[root@localhost ~]# cat testme.txt&lt;br /&gt;this is a test&lt;br /&gt;food that are killing you&lt;br /&gt;wings of fire&lt;br /&gt;we hope that the labor spent in creating this software&lt;br /&gt;this is a test&lt;br /&gt;unix ips as well as enjoy our blog&lt;br /&gt;&lt;br /&gt;[root@localhost ~]# awk '!x[$0]++' testme.txt&lt;br /&gt;this is a test&lt;br /&gt;food that are killing you&lt;br /&gt;wings of fire&lt;br /&gt;we hope that the labor spent in creating this software&lt;br /&gt;unix ips as well as enjoy our blog&lt;br /&gt;&lt;br /&gt;[root@localhost ~]# sort -u testme.txt&lt;br /&gt;food that are killing you&lt;br /&gt;this is a test&lt;br /&gt;unix ips as well as enjoy our blog&lt;br /&gt;we hope that the labor spent in creating this software&lt;br /&gt;wings of fire&lt;br /&gt;&lt;br /&gt;[root@localhost ~]# sort testme.txt | uniq -u&lt;br /&gt;food that are killing you&lt;br /&gt;unix ips as well as enjoy our blog&lt;br /&gt;we hope that the labor spent in creating this software&lt;br /&gt;wings of fire</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:shantanuo:60243</id>
    <link rel="alternate" type="text/html" href="http://shantanuo.livejournal.com/60243.html"/>
    <link rel="self" type="text/xml" href="http://shantanuo.livejournal.com/data/atom/?itemid=60243"/>
    <title>Digital Content and ICT</title>
    <published>2008-08-26T04:21:09Z</published>
    <updated>2008-08-26T04:21:09Z</updated>
    <category term="digital"/>
    <category term="it"/>
    <content type="html">Someone asked me this question:&lt;br /&gt;What is your Vision of Digital content for Development and how do you think ICT (Information Communication Technology) tools can be used towards this end at large?&lt;br /&gt;&lt;br /&gt;Ans:&lt;br /&gt;Digital content is very crucial for any development, let it be economic, social, educational or personal. There are 2 points to note though, a) The digitization method should not be proprietary, it should be free, open source. b) It should be available to the public at an affordable rates. Let's see an example of this. If I want to know more about a medicine or a disease like malaria, what were my options in the good old days?&lt;br /&gt;a) Go to Public / private library and become a member by paying fees and filling lengthy forms.&lt;br /&gt;b) Take help of the Librarian to find the section/ book on the subject.&lt;br /&gt;c) If the book is available (and not already taken by some other knowledge seeker), stand in a queue to register it in my name so that I can take it home.&lt;br /&gt;d) Remember to return the book in 7 days, or else be prepared to pay hefty fine.&lt;br /&gt;&lt;br /&gt;Fast Forward: today, I can read wikipedia entry on malaria on my mobile!&lt;br /&gt;&lt;br /&gt;In the very old days, the only way to seek the knowledge was through human interaction. The one who "have" knowledge was called "Guru". Most of the gurus took utmost care not to digitize the knowledge in any form so that they can keep their supremacy and bad guys won't get hold of it.&lt;br /&gt;&lt;br /&gt;As the technology is progressing, it can play an important role of eliminating the supremacy of "Gurus" and "Paper". In a truly ICT driven digitalized world one can live happily with minimum interaction with these two supreme powers. Paper / books will still be important for the people who are not part of digital revolution due to ignorance, poverty or stigma.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:shantanuo:60002</id>
    <link rel="alternate" type="text/html" href="http://shantanuo.livejournal.com/60002.html"/>
    <link rel="self" type="text/xml" href="http://shantanuo.livejournal.com/data/atom/?itemid=60002"/>
    <title>Usability 3.0</title>
    <published>2008-05-14T05:53:01Z</published>
    <updated>2008-05-14T05:53:01Z</updated>
    <category term="usability"/>
    <content type="html">This is about Nirav Mehta's post on usability found here...&lt;br /&gt;&lt;a href="http://www.mehtanirav.com/2008/04/17/impressive-usability-on-the-login-page/"&gt;http://www.mehtanirav.com/2008/04/17/impressive-usability-on-the-login-page/&lt;/a&gt;&lt;br /&gt;and the comment by Naveen, found here...&lt;br /&gt;&lt;a href="http://www.creanology.org/2008/04/usability-review/"&gt;http://www.creanology.org/2008/04/usability-review/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I do not agree with either of these great men, Nirav and Naveen.&lt;br /&gt;1) I will like to remove the "No, I'm a new user" link. When I want to login, I simply want to type in my username and password and hit enter! When I want to register, I look for big "Register" or "Sign Up" button with mouseover effect. As you can see, 'Sign Up' and 'Sign In' links are there at the top! Therefore it would be best to remove the 'sign up' option from 'Sign in' page.&lt;br /&gt;2) I do not like the idea of using E-mail address as login. I want to use 'username' as login credential and NOT an e-mail that may change.&lt;br /&gt;3) I will like the username, password input boxes integrated somewhere on the home page, instead of having a separate page for it. If space is an issue, create a mouseover/ onclick drop down box for 'Sign In' link at the top right.&lt;br /&gt;&lt;br /&gt;You have to understand how the new users come to site, interact and judge/trust site. The users like me register with several sites before settling down with one or two really useful sites those I will like to use often. So all I look for is a quick way to login or register. The best would have been integrating with facebook or drupal or open ID so that there is no need to login at all or atleast I can use the same username and password evreywhere!</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:shantanuo:59805</id>
    <link rel="alternate" type="text/html" href="http://shantanuo.livejournal.com/59805.html"/>
    <link rel="self" type="text/xml" href="http://shantanuo.livejournal.com/data/atom/?itemid=59805"/>
    <title>Wishful Thinking</title>
    <published>2008-03-05T14:27:01Z</published>
    <updated>2008-03-05T14:27:01Z</updated>
    <category term="positive"/>
    <category term="attitude"/>
    <content type="html">An old man lived alone in a small village . He wanted to spade his potato garden, but it was very hard work.  His only son, who would have helped him, was in prison. The old man wrote a letter to his son  and mentioned his situation:&lt;br /&gt;&lt;br /&gt;Dear Son,&lt;br /&gt;"I am feeling pretty bad because it looks like I won't be able to plant my potato garden this year. I hate to miss doing the garden, because your mother always loved planting time. I'm just getting too old to be digging up a garden plot. If you were here, all my troubles would be over. I know you would dig the plot for me, if you weren't in prison.&lt;br /&gt;.........................Love, Dad"&lt;br /&gt;&lt;br /&gt;Shortly, the old man received this telegram: "For Heaven's sake, Dad, don't dig up the garden!! That's where I buried the GUNS!!"&lt;br /&gt;&lt;br /&gt;the next morning, a dozen CBI agents and local police officers showed up and dug up the entire garden without finding any guns.&lt;br /&gt;Confused, the old man wrote another note to his son telling him what happened, and asked him what to do.&lt;br /&gt;His son's reply was: "Go ahead and plant your potatoes,&lt;br /&gt;Dad............   It's the best I could do for you from here."&lt;br /&gt;&lt;br /&gt;Moral:&lt;br /&gt;NO MATTER WHERE YOU ARE IN THE WORLD, IF YOU HAVE DECIDED TO DO SOMETHING DEEP FROM YOUR HEART, YOU CAN DO IT. IT IS THE THOUGHT THAT MATTERS NOT WHERE YOU ARE OR WHERE THE PERSON IS.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:shantanuo:59422</id>
    <link rel="alternate" type="text/html" href="http://shantanuo.livejournal.com/59422.html"/>
    <link rel="self" type="text/xml" href="http://shantanuo.livejournal.com/data/atom/?itemid=59422"/>
    <title>Python and Bash</title>
    <published>2008-02-12T10:38:34Z</published>
    <updated>2008-02-12T10:38:34Z</updated>
    <category term="python"/>
    <category term="bash"/>
    <content type="html">Now in this file (myfirstscript.sh), enter the following line.&lt;br /&gt;&lt;br /&gt;#!/usr/bin/bash&lt;br /&gt;ls -l&lt;br /&gt;sleep 2&lt;br /&gt;who&lt;br /&gt;sleep 2&lt;br /&gt;w&lt;br /&gt;&lt;br /&gt;Nothing spectacular here. But note that 'sleep' is an internal bash command which is used to pause the execution process for certain time in seconds. Next fire up a console (xterm, gnome-terminal ...) and set the executable bit for the script myfirstscript.sh as follows :&lt;br /&gt;&lt;br /&gt;$ chmod u+x myfirstscript.sh&lt;br /&gt;&lt;br /&gt;This lets you execute the script by its name as follows :&lt;br /&gt;&lt;br /&gt;$ ./myfirstscript.sh&lt;br /&gt;&lt;br /&gt;All this may seem easy. But you can get added benefits if you substitute 'bash' with Python language to write your scripts. If you do not know Python language and is looking for some direction then you should look at the two books Core Python programming and Python phrasebook which will give you a head start in mastering this powerful but easy to learn language.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://linuxhelp.blogspot.com/2008/02/python-scripts-vs-bash-scripts-in-linux.html"&gt;http://linuxhelp.blogspot.com/2008/02/python-scripts-vs-bash-scripts-in-linux.html&lt;/a&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:shantanuo:59385</id>
    <link rel="alternate" type="text/html" href="http://shantanuo.livejournal.com/59385.html"/>
    <link rel="self" type="text/xml" href="http://shantanuo.livejournal.com/data/atom/?itemid=59385"/>
    <title>What is a Stop Loss order ?</title>
    <published>2007-11-23T14:54:37Z</published>
    <updated>2007-11-23T14:54:37Z</updated>
    <category term="stock"/>
    <category term="tips"/>
    <content type="html">A Stop loss order allows the client to place an order which gets activated only when the market price of the relevant security reaches or crosses a threshold price specified by the investor in the form of 'Stop Loss Trigger Price'. When a stop loss trigger price (SLTP) is specified in a limit order, the order becomes one which is conditional on the market price of the stock crossing the specified SLTP. The order remains passive (i.e. not eligible for execution) till the condition is satisfied. Once the last traded price of the stock reaches or surpasses the SLTP, the order becomes activated (i.e. eligible for execution by being taken up in the matching process of the exchange) and then on behaves like a normal limit order. It is used as a tool to limit the maximum loss on a position.&lt;br /&gt;&lt;br /&gt;Examples :&lt;br /&gt;&lt;br /&gt;Stop Loss Buy Order&lt;br /&gt;'A' short sells Reliance shares at Rs 325 in expectation that the price will fall. However, in the event the price rises above his buy price 'A' would like to limit his losses. 'A' may place a limit buy order specifying a Stop loss trigger price of Rs 345 and a limit price of Rs 350. The stop loss trigger price (SLTP) has to be between the last traded price and the buy limit price. Once the market price of Reliance breaches the SLTP i.e. Rs 345, the order gets converted to a limit buy order at Rs 350.&lt;br /&gt;&lt;br /&gt;Stop Loss Sell Order&lt;br /&gt;'A' buys Reliance at Rs 325 in expectation that the price will rise. However, in the event the price falls, 'A' would like to limit his his losses. 'A' may place a limit sell order specifying a Stop loss trigger price of Rs 305 and a limit price of Rs 300. The stop loss trigger price has to be between the limit price and the last traded price at the time of placing the stop loss order. Once the last traded price touches or crosses Rs. 305, the order gets converted into a limit sell order at Rs. 300.&lt;br /&gt;&lt;br /&gt;Important&lt;br /&gt;Please note that in a buy order the SLTP cannot be less than the last traded price. This is treated as a normal order because the condition that the last traded price should exceed the stop loss trigger price for a buy order is already satisfied. Similary, in case of a stop loss sell order the SLTP should not be greater than the last traded price for the same reason.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:shantanuo:58885</id>
    <link rel="alternate" type="text/html" href="http://shantanuo.livejournal.com/58885.html"/>
    <link rel="self" type="text/xml" href="http://shantanuo.livejournal.com/data/atom/?itemid=58885"/>
    <title>Price for 'premium' text messages?</title>
    <published>2007-10-31T12:12:14Z</published>
    <updated>2007-10-31T12:12:14Z</updated>
    <content type="html">Sean Clark pays extra each month for his cell phone service so his daughter Amanda can enjoy unlimited, no-charge text messaging. So the Bothell, Wash. man was stunned when his Sprint bill for September showed with nearly $10,000 in text message charges.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://redtape.msnbc.com/2007/10/sean-clark-pays.html#posts"&gt;http://redtape.msnbc.com/2007/10/sean-clark-pays.html#posts&lt;/a&gt;</content>
  </entry>
</feed>
