<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1320384267440643585</id><updated>2012-02-01T04:45:24.709-08:00</updated><category term='BASH'/><category term='linux'/><category term='apache'/><category term='php5'/><category term='free script'/><category term='javascript'/><category term='mysql'/><category term='php'/><category term='website speed'/><category term='phpmyadmin'/><category term='mysql table optimization'/><category term='greasymonkey'/><category term='javascript fun'/><category term='php best practices'/><category term='Google'/><category term='seo'/><category term='jquery'/><category term='android'/><category term='css'/><category term='Other'/><category term='php.ini'/><category term='shell'/><category term='drupal 6'/><category term='guitar'/><category term='Regular Expression'/><title type='text'>Dhanesh Mane</title><subtitle type='html'>php developer and Lamp professional.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://dhanesh-mane.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://dhanesh-mane.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>ROY</name><uri>http://www.blogger.com/profile/00846865967450359044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>21</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1320384267440643585.post-4260585310233476815</id><published>2012-01-28T11:50:00.000-08:00</published><updated>2012-01-28T11:50:40.719-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='website speed'/><category scheme='http://www.blogger.com/atom/ns#' term='seo'/><category scheme='http://www.blogger.com/atom/ns#' term='css'/><title type='text'>CSS1 vs CSS2 &amp; SEO</title><content type='html'>This post will help you to understand the primary features in CSS2 which are not there in CSS1 and how CSS2 techniques are going to help you in SEO. CSS1 is published in 1996 and CSS2 is published in year 1998. All major browsers supports practically 99.9% of CSS2. I was googlin for the difference between CSS1 and CSS2 and landed on a very good website and found really dam important information about new tags introduced in CSS2. You can check all of them on this website &gt; &lt;a href="http://xahlee.org/js/css2.html" rel="external nofollow"&gt;http://xahlee.org/js/css2.html&lt;/a&gt;. &lt;br /&gt;&lt;br /&gt;Google bot and other search engines does consider uncompressed HTML size of your webpage, so even if we are using gzip compression techniques, we have to think about the uncompressed HTML size. One of my website's home page is of size 59.23 kb. The which I used to test my site have suggested CSS2 based layout and its new techniques which really helps a lot to reduce your page size. I am working on some of the new tags implementations which will help me to reduce the size of CSS file as well as my HTML page size.&lt;br /&gt;&lt;br /&gt;There are few more CSS techniques which helps us to increase the speed of our website. One of the very popular technique is "CSS Sprites". CSS Sprites is basically a technique which combines all small images on your web page in to one big image. In this case we have to just load a single image instead of loading lots of small images separately, this saves a lot of browsers time to make n no of http requests to server so increases speed of your website.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1320384267440643585-4260585310233476815?l=dhanesh-mane.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/4260585310233476815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/4260585310233476815'/><link rel='alternate' type='text/html' href='http://dhanesh-mane.blogspot.com/2012/01/css1-vs-css2-seo.html' title='CSS1 vs CSS2 &amp; SEO'/><author><name>ROY</name><uri>http://www.blogger.com/profile/00846865967450359044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1320384267440643585.post-6855772108702792891</id><published>2011-12-15T22:35:00.000-08:00</published><updated>2011-12-15T22:35:07.051-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='php best practices'/><title type='text'>php best practices 1 - Handle unexpected conditions</title><content type='html'>Are you handling all the possible conditions under which your programs will run?&lt;br /&gt;&lt;br /&gt;For instance, do you always have a "default" case in you "switch" statements?&lt;br /&gt;&lt;br /&gt;switch($some_value)&lt;br /&gt;{&lt;br /&gt;case 1:&lt;br /&gt;$another_value = 1;&lt;br /&gt;break;&lt;br /&gt;case 2:&lt;br /&gt;$another_value = 4;&lt;br /&gt;break;&lt;br /&gt;}&lt;br /&gt;return(1 / $another_value);&lt;br /&gt;&lt;br /&gt;What if $some_value is not 1 nor 2?&lt;br /&gt;&lt;br /&gt;Notice: Undefined variable: another_value&lt;br /&gt;&lt;br /&gt;Warning: Division by zero&lt;br /&gt;&lt;br /&gt;What about "if" conditions? Do you have an "else" code section to all important "if" statements?&lt;br /&gt;&lt;br /&gt;If your program is not expecting certain conditions but those conditions are not impossible to occur, having simple calls to error_log may help you to be aware of the problems under unexpected situations.&lt;br /&gt;&lt;br /&gt;switch($some_value)&lt;br /&gt;{&lt;br /&gt;case 1:&lt;br /&gt;$another_value = 1;&lt;br /&gt;break;&lt;br /&gt;case 2:&lt;br /&gt;$another_value = 4;&lt;br /&gt;break;&lt;br /&gt;default:&lt;br /&gt;error_log('unexpected some_value '.$some_value.' found ');&lt;br /&gt;exit;&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1320384267440643585-6855772108702792891?l=dhanesh-mane.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/6855772108702792891'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/6855772108702792891'/><link rel='alternate' type='text/html' href='http://dhanesh-mane.blogspot.com/2011/12/php-best-practices-1-handle-unexpected.html' title='php best practices 1 - Handle unexpected conditions'/><author><name>ROY</name><uri>http://www.blogger.com/profile/00846865967450359044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1320384267440643585.post-490839804049709281</id><published>2011-07-26T23:23:00.000-07:00</published><updated>2011-07-26T23:26:16.056-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>php framework comparison - performance comparisons</title><content type='html'>I am writing this post regarding PHP framework performance comparisons. There are lots of PHP frameworks available and every framework has its own advantages and disadvantages. As all frameworks are based on MVC and thus adopting any of them for product development is not that difficult. Normally developers check for no of libraries load time and some important features like ORM. Also you can check that which framework supports which php version.&lt;br /&gt;&lt;br /&gt;Here is a simple chart which programmers can use while choosing the suitable framework for their projects.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-HpLzKNXMNB8/Ti-u0yxZV3I/AAAAAAAAAB4/tA9Z_ykVgR4/s1600/PHP-Framework-comparison-chart-ci-zend-zoop-cakephp-symfony-seagull.png" imageanchor="1" style="clear:left; float:left;margin-right:1em; margin-bottom:1em"&gt;&lt;img border="0" height="243" width="400" src="http://2.bp.blogspot.com/-HpLzKNXMNB8/Ti-u0yxZV3I/AAAAAAAAAB4/tA9Z_ykVgR4/s400/PHP-Framework-comparison-chart-ci-zend-zoop-cakephp-symfony-seagull.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;phpframeworks[.]com also have explained this thing in detail. You can check that also.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1320384267440643585-490839804049709281?l=dhanesh-mane.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/490839804049709281'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/490839804049709281'/><link rel='alternate' type='text/html' href='http://dhanesh-mane.blogspot.com/2011/07/php-framework-comparison-performance.html' title='php framework comparison - performance comparisons'/><author><name>ROY</name><uri>http://www.blogger.com/profile/00846865967450359044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-HpLzKNXMNB8/Ti-u0yxZV3I/AAAAAAAAAB4/tA9Z_ykVgR4/s72-c/PHP-Framework-comparison-chart-ci-zend-zoop-cakephp-symfony-seagull.png' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-1320384267440643585.post-3547953481677180807</id><published>2011-07-21T01:07:00.000-07:00</published><updated>2011-07-21T01:07:59.715-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='jquery'/><title type='text'>Jquery plugin to read query string - how to</title><content type='html'>If you are looking for some jQuery plugin to read the query string parameters then you are on right page. Here is a simple function which will help you to understand how to detect/read the values of query string parameters.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Jquery Plugin&lt;/strong&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;$.queryParam = function(name){&lt;br /&gt;    &lt;br /&gt;    var answer = new RegExp('[\\?&amp;]' + name + '=([^&amp;#]*)').exec(window.location.href);&lt;br /&gt;    &lt;br /&gt;    if (!answer)&lt;br /&gt;    { &lt;br /&gt;        return 0; &lt;br /&gt;    }&lt;br /&gt;    return answer[1] || 0;&lt;br /&gt;}&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;How to use&lt;/strong&gt;&lt;br /&gt;var paramValue = $.queryParam('paramName');&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1320384267440643585-3547953481677180807?l=dhanesh-mane.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/3547953481677180807'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/3547953481677180807'/><link rel='alternate' type='text/html' href='http://dhanesh-mane.blogspot.com/2011/07/jquery-plugin-to-read-query-string-how.html' title='Jquery plugin to read query string - how to'/><author><name>ROY</name><uri>http://www.blogger.com/profile/00846865967450359044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1320384267440643585.post-2132212857020548695</id><published>2011-07-06T02:49:00.000-07:00</published><updated>2011-07-06T02:59:51.740-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>get X days back date from current date</title><content type='html'>&lt;h2&gt;How to get 7(X) days back date from current date?&lt;/H2&gt;PHP is very strong server side programming language which simplifies lots of small small tasks like converting date formats etc. &lt;br /&gt;&lt;br /&gt;I was working on some task, where I was suppose to get 7 days back date from current date. Actually the task is very simple, I am sharing the code here. Have a look at it and let me know if any one can find better way than this. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$format   = 'YmdhIS'; // YOU CAN USE ANY FORMAT WHICH YOU WANT&lt;br /&gt;&lt;br /&gt;$date     = date ( $format );&lt;br /&gt;&lt;br /&gt;// - 7 days from today&lt;br /&gt;$prevDate = date ( $format, strtotime ( '-7 day' . $date ) ); &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Note:&lt;/b&gt; If you want to get &lt;b&gt;yesterdays&lt;/b&gt; date then simply do -1 instead of -7.&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;How to get 7(X) months back month from current month?&lt;/H2&gt;// - 7 months from today&lt;br /&gt;$prevDate = date ( $format, strtotime ( '-7 month' . $date ) );&lt;br /&gt;&lt;br /&gt;Its so simple.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1320384267440643585-2132212857020548695?l=dhanesh-mane.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/2132212857020548695'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/2132212857020548695'/><link rel='alternate' type='text/html' href='http://dhanesh-mane.blogspot.com/2011/07/get-x-days-back-date-from-current-date.html' title='get X days back date from current date'/><author><name>ROY</name><uri>http://www.blogger.com/profile/00846865967450359044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1320384267440643585.post-6618990283785185273</id><published>2011-04-21T04:52:00.000-07:00</published><updated>2011-04-21T04:52:18.723-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql table optimization'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><title type='text'>Problems in enum data type mysql</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;MySQL ENUM data type looks like a Hot SPOT among all developers n database designers. We all know about ENUM data type, but do we really know disadvantages or lets say problems of using ENUM data type while designing tables.&lt;br /&gt;&lt;br /&gt;I was wondering what could be the reason that most of geeks don't want to use this data type, I just googled out some info about it and came across some very serious issues, so sharing on my blog.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1. Changing the member list of ENUM columns is very expensive.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; If your table has more than &lt;u&gt;&lt;i&gt;millions records&lt;/i&gt;&lt;/u&gt; and you are trying to change any thing in the column which has data type ENUM, then mysql rebuild complete table and look in to every row in that table. This may take lots of time may be hours and thus &lt;b&gt;downtime&lt;/b&gt;.&amp;nbsp; So lets create equation &lt;br /&gt;&lt;br /&gt;Server Downtime = MySQL table with ENUM data type + millions of records. Lol.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2. ENUM has limited portability with other databases.&lt;/b&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENUM is not a standard SQL and lots of other databases doesn't have native support for ENUM.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Well there are lots of more issues with ENUM data type, I would like to share some links which may help you to take decision while using ENUM in your database. Check these links for sure , great information shared on it.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.mysqlperformanceblog.com/?s=mysql+problems+with+enum" target="_blank" rel="nofollow"&gt;Link 1&lt;/a&gt;&lt;br /&gt;&lt;a href="http://komlenic.com/244/8-reasons-why-mysqls-enum-data-type-is-evil/" target="_blank" rel="nofollow"&gt;Link 2&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1320384267440643585-6618990283785185273?l=dhanesh-mane.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/6618990283785185273'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/6618990283785185273'/><link rel='alternate' type='text/html' href='http://dhanesh-mane.blogspot.com/2011/04/problems-in-enum-data-type-mysql.html' title='Problems in enum data type mysql'/><author><name>ROY</name><uri>http://www.blogger.com/profile/00846865967450359044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1320384267440643585.post-7285360360226764711</id><published>2011-03-18T02:25:00.000-07:00</published><updated>2011-03-18T02:29:16.125-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='drupal 6'/><title type='text'>How to theme search results drupal 6.x</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Drupal 6 comes up with preprocess functions and templates which makes theming job easier. So here is my first post to make your theming job easier with drupal 6.x.&lt;br /&gt;&lt;br /&gt;Lets take a scenario of having some text below each result in search result page, could be any kind of ad or some image or any HTMl component.&lt;br /&gt;&lt;br /&gt;Step 1. Define a variable in a preprocess function in template.php file.&lt;br /&gt;Step 2. Copy the search-result.tpl.php file from /modules/search directory to your current theme folder.&lt;br /&gt;Step 3. echo the defined variable in the search-result.tpl.php file.&lt;br /&gt;Step 4. Clear the template cache.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 1. Define a variable in a preprocess function in template.php file.&lt;/b&gt;&lt;br /&gt;Append following code to template.php in current theme&lt;b&gt;. &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="codeblock"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="color: #0000bb;"&gt;&lt;/span&gt;&lt;span style="color: #007700;"&gt;function &lt;/span&gt;&lt;span style="color: #0000bb;"&gt;mytheme_preprocess_search_result &lt;/span&gt;&lt;span style="color: #007700;"&gt;(&amp;amp;&lt;/span&gt;&lt;span style="color: #0000bb;"&gt;$vars&lt;/span&gt;&lt;span style="color: #007700;"&gt;) {&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style="color: #0000bb;"&gt;$vars&lt;/span&gt;&lt;span style="color: #007700;"&gt;[&lt;/span&gt;&lt;span style="color: #dd0000;"&gt;'my_variable'&lt;/span&gt;&lt;span style="color: #007700;"&gt;] = &lt;/span&gt;&lt;span style="color: #0000bb;"&gt;t&lt;/span&gt;&lt;span style="color: #007700;"&gt;(&lt;/span&gt;&lt;span style="color: #dd0000;"&gt;'I am here'&lt;/span&gt;&lt;span style="color: #007700;"&gt;);&lt;br /&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 2.&amp;nbsp; This is self explanatory &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Step 3. echo the defined variable in the search-result.tpl.php file.&lt;/b&gt;&lt;br /&gt;Append following code at end of search-result.tpl.php&lt;br /&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="color: #007700;"&gt;if (!empty(&lt;/span&gt;&lt;span style="color: #0000bb;"&gt;$my_variable&lt;/span&gt;&lt;span style="color: #007700;"&gt;)) { &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &lt;span style="color: black;"&gt;&lt;span style="color: #0000bb;"&gt;$my_variable&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;code&gt;&lt;span style="color: #007700;"&gt;;&lt;/span&gt;&lt;/code&gt;&lt;br /&gt;&amp;nbsp;&lt;span style="color: black;"&gt;&lt;span style="color: #0000bb;"&gt; }&lt;/span&gt;&lt;span style="color: #0000bb;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;b&gt;Step 4. Clear the template cache.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Now you can edit these files and can customize your search result page.&lt;b&gt; :)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1320384267440643585-7285360360226764711?l=dhanesh-mane.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/7285360360226764711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/7285360360226764711'/><link rel='alternate' type='text/html' href='http://dhanesh-mane.blogspot.com/2011/03/how-to-theme-search-results-drupal-6x.html' title='How to theme search results drupal 6.x'/><author><name>ROY</name><uri>http://www.blogger.com/profile/00846865967450359044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1320384267440643585.post-3534367099125399445</id><published>2011-02-21T22:16:00.000-08:00</published><updated>2011-02-21T22:16:04.206-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Other'/><title type='text'>Do not register Youmint.com</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div style="color: red;"&gt;&lt;span style="font-size: large;"&gt;Do not register on Youmint.com&lt;/span&gt;&lt;/div&gt;Website is not at all secure , Don't believe.&lt;br /&gt;&lt;br /&gt;If you are technical person then you can see that while registering the form data is sent via GET method and your personal data is passed to server without encryption. Password and all details are sent via GET method. I don't even Want to check what features they are providing after registration if this is the start.&lt;br /&gt;&lt;br /&gt;► I am not the alone ◄ Check what other blogger are saying&lt;br /&gt;&lt;a href="http://yakpad10.blogspot.com/2008/04/do-not-sign-up-for-youmintcom.html" rel="nofollow"&gt;sumans blog&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1320384267440643585-3534367099125399445?l=dhanesh-mane.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/3534367099125399445'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/3534367099125399445'/><link rel='alternate' type='text/html' href='http://dhanesh-mane.blogspot.com/2011/02/do-not-register-youmintcom.html' title='Do not register Youmint.com'/><author><name>ROY</name><uri>http://www.blogger.com/profile/00846865967450359044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1320384267440643585.post-3415378845754635136</id><published>2011-02-07T01:43:00.000-08:00</published><updated>2011-02-07T01:43:44.384-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>replace last occurrence of substring from string in php</title><content type='html'>Are you looking out for a built in function in php which replace last occurrence of sub string from string??&lt;br /&gt;&lt;br /&gt;You are at right place then. check out the function below which easily replaces the last occurrence of sub string from supplied string.&lt;br /&gt;&lt;br /&gt;&lt;ol class="code"&gt;&lt;li&gt;function str_lreplace(mixed $search, mixed $replace, mixed $subject)&lt;/li&gt;&lt;li&gt; {&lt;/li&gt;&lt;li&gt;   return substr_replace($subject, $replace, strrpos($subject, $search), strlen($search));&lt;/li&gt;&lt;li&gt; }&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1320384267440643585-3415378845754635136?l=dhanesh-mane.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/3415378845754635136'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/3415378845754635136'/><link rel='alternate' type='text/html' href='http://dhanesh-mane.blogspot.com/2011/02/replace-last-occurrence-of-substring.html' title='replace last occurrence of substring from string in php'/><author><name>ROY</name><uri>http://www.blogger.com/profile/00846865967450359044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1320384267440643585.post-1971249680709851523</id><published>2011-01-03T20:57:00.000-08:00</published><updated>2011-01-03T21:02:01.861-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Google'/><title type='text'>Life becomes for Commuters in Pune</title><content type='html'>&lt;b&gt;Google launched Transit service in Pune (in partnership with PMPML)&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Public transport is a vital part of the infrastructure that makes our cities run efficiently, and can help mitigate congestion, environmental concerns, and increasing energy costs. Google earlier launched &lt;b&gt;Transit in Banglore and delhi &lt;/b&gt;and now they come up with the idea in pune, making millions of commuters happy, as they can find out &lt;b&gt;bus schedules&lt;/b&gt; and routes for 320 of PMPML buses via Google Maps on desktop and mobile.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As an example, here is the route from &lt;a href="http://maps.google.co.in/maps?f=d&amp;amp;source=s_d&amp;amp;saddr=pune+university+gate&amp;amp;daddr=M.G.+Road,+Camp,+Pune,+Maharashtra,+India&amp;amp;hl=en&amp;amp;geocode=;FXx8GgEd7UxnBCktKaTySMDCOzGIg7_HwVgEhg&amp;amp;mra=ls&amp;amp;dirflg=r&amp;amp;ttype=dep&amp;amp;date=11/06/10&amp;amp;time=11:07am&amp;amp;noexp=0&amp;amp;noal=0&amp;amp;sort=def&amp;amp;sll=18.525515,73.865633&amp;amp;sspn=0.055341,0.090895&amp;amp;ie=UTF8&amp;amp;t=h&amp;amp;start=0&amp;amp;ll=18.527468,73.85396&amp;amp;spn=0.05534,0.090895&amp;amp;z=14" rel="External nofollow"&gt;Pune University to MG Road&lt;/a&gt;.You can now check the bus no and available routes easily. &lt;br&gt;&lt;br&gt;&lt;br /&gt;PMPML is the second Indian Bus service to launch on Google Maps.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1320384267440643585-1971249680709851523?l=dhanesh-mane.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/1971249680709851523'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/1971249680709851523'/><link rel='alternate' type='text/html' href='http://dhanesh-mane.blogspot.com/2011/01/life-becomes-for-commuters-in-pune.html' title='Life becomes for Commuters in Pune'/><author><name>ROY</name><uri>http://www.blogger.com/profile/00846865967450359044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1320384267440643585.post-6058712661274837884</id><published>2010-12-19T21:49:00.000-08:00</published><updated>2010-12-19T21:50:44.102-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='android'/><title type='text'>Power of Android</title><content type='html'>Was studying about android, as its being famous in mobile technology these days. Here is summery of my first research.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;What is Android?&lt;/b&gt;&lt;br /&gt;Android is nothing but a software platform for mobile devices which are based on most flexible operating system i.e. Linux. Android is developed by Open Handset Alliance and acquired by Google. Android is a software stack for mobile devices that includes an operating system, middleware and key applications.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;History of google and Android.&lt;/b&gt;&lt;br /&gt;Google acquired Android in in July 2005. Early it was a small start up company (actually 22-month-old startup) based in palo alto, CA. Co founder of this company - Andy Rubin, Rich Miner, Nick Sears, Chris White.    &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Android Development&lt;/b&gt;&lt;br /&gt;Android applications are written in the Java programming language. The Android SDK provides the tools and APIs necessary to begin developing applications on the Android platform using the Java.&lt;br /&gt;&lt;a href="http://developer.android.com/sdk/index.html" rel="nofollow" target="_blank"&gt;Download Android SDK&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;An Android package archive file marked by an .apk suffix. This file is used for distribution and installation of the application on the mobile device.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Power of Android application.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Phone's core applications and third-party applications are treated equally.&lt;/li&gt;&lt;li&gt;Android actually breaks down all the barriers of application development by providing lots of libraries and tools. e.g Android enables developers to obtain the location of the device.&lt;/li&gt;&lt;li&gt;By default, every Android application runs in its own Linux process.&lt;/li&gt;&lt;li&gt;Every application has its own virtual machine. So the app runs in isolation from other apps.&lt;/li&gt;&lt;li&gt;Each application is assigned a unique Linux user ID which is set with some permissions required by the perticular application only. Where as it is also possible that two or more android application share a same user id in some cases.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;b&gt;Android Architecture&lt;/b&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://developer.android.com/images/system-architecture.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;" title="click to enlarge"&gt;&lt;img border="0" height="360" alt="android architecture" src="http://developer.android.com/images/system-architecture.jpg" width="400" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1320384267440643585-6058712661274837884?l=dhanesh-mane.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/6058712661274837884'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/6058712661274837884'/><link rel='alternate' type='text/html' href='http://dhanesh-mane.blogspot.com/2010/12/power-of-android.html' title='Power of Android'/><author><name>ROY</name><uri>http://www.blogger.com/profile/00846865967450359044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1320384267440643585.post-6191435612954855633</id><published>2010-12-09T20:30:00.000-08:00</published><updated>2010-12-09T20:49:11.024-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='BASH'/><category scheme='http://www.blogger.com/atom/ns#' term='shell'/><title type='text'>BASH shell script to rename file that has spaces</title><content type='html'>&lt;b&gt;&lt;span class="Apple-style-span" style="color: red; font-size: x-large;"&gt;R&lt;/span&gt;&lt;/b&gt;&amp;nbsp;&amp;nbsp;you looking for shell script which rename all files in a directory to replace unnecssery spaces in file names with -. Check following BASH shell script which,&lt;br /&gt;&lt;br /&gt;1. Iterate a perticular directory specified in FILES variable.&lt;br /&gt;2. Replaces spaces with - hyphen, and put it in temparary variable &lt;b&gt;new_file&lt;/b&gt;. (sed "s/ /-/g"`)&lt;br /&gt;4. Then simple &lt;b&gt;MV&lt;/b&gt; command to rename it.&lt;br /&gt;&lt;br /&gt;&lt;ol class="code"&gt;&lt;li&gt;#!/bin/bash&lt;/li&gt;&lt;li&gt;FILES=/path/to/dir/*&lt;/li&gt;&lt;li&gt;for f in $FILES&lt;/li&gt;&lt;li&gt;do&lt;/li&gt;&lt;li&gt; new_file=`echo $f|sed "s/ /-/g"`&lt;/li&gt;&lt;li&gt;if [ "$f" != "$new_file" ]&lt;/li&gt;&lt;li&gt;then &lt;/li&gt;&lt;li&gt;mv "$f" "$new_file"&lt;/li&gt;&lt;li&gt;fi&lt;/li&gt;&lt;li&gt;done&lt;/li&gt;&lt;li&gt;exit 0&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1320384267440643585-6191435612954855633?l=dhanesh-mane.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/6191435612954855633'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/6191435612954855633'/><link rel='alternate' type='text/html' href='http://dhanesh-mane.blogspot.com/2010/12/bash-shell-script-to-rename-file-that.html' title='BASH shell script to rename file that has spaces'/><author><name>ROY</name><uri>http://www.blogger.com/profile/00846865967450359044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1320384267440643585.post-3312205498499590949</id><published>2010-04-22T09:29:00.000-07:00</published><updated>2010-04-22T09:29:06.151-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='guitar'/><title type='text'>papa kehtain hai acoustic guitar notations</title><content type='html'>&lt;b&gt;PAPA KEHTE HAI GUITAR NOTATIONS -  acoustic &lt;/b&gt;&lt;br /&gt;-------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;D|  E|----------------------------------------------------------------||&lt;br /&gt;H|  B|----------------------------------------------------------------||&lt;br /&gt;A|  G|-------------------------5---7----------------------------------||&lt;br /&gt;N|  D|----------7----5---7-----------5-----------7--------------------||&lt;br /&gt;E|  A|--5-5--------------------------------6-5------------------------||&lt;br /&gt;S|  E|----------------------------------------------------------------||&lt;br /&gt;H|  &lt;br /&gt;M|      papa    kehte   hai    bada  nam   karega&lt;br /&gt;A|  &lt;br /&gt;N|  E|----------------------------------------------------------------||&lt;br /&gt;E|  B|-------------------------------------------8-8-----7-8----------||&lt;br /&gt; |  G|--5-7----------------------7-7----7-7---5-------------5---------||&lt;br /&gt;T|  D|-------5-5------5-5--4------------------------------------------||&lt;br /&gt;A|  A|----------------------------------------------------------------||&lt;br /&gt;B|  E|----------------------------------------------------------------||&lt;br /&gt;S|  &lt;br /&gt; |     magar ye to   koi   na   jane    ke meri manjil  hai kaha&lt;br /&gt;&lt;br /&gt;-------------------------------------------------------------------------------&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1320384267440643585-3312205498499590949?l=dhanesh-mane.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/3312205498499590949'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/3312205498499590949'/><link rel='alternate' type='text/html' href='http://dhanesh-mane.blogspot.com/2010/04/papa-kehtain-hai-acoustic-guitar.html' title='papa kehtain hai acoustic guitar notations'/><author><name>ROY</name><uri>http://www.blogger.com/profile/00846865967450359044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1320384267440643585.post-771223348735533049</id><published>2010-03-31T22:56:00.000-07:00</published><updated>2010-08-26T23:30:47.926-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='phpmyadmin'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><title type='text'>How can we restrict ip based access to phpmyadmin directory</title><content type='html'>I was working on this in last week and I came to know following solution. There can be other ways too , but I am not sure. So I am just explaining the way I did it for my site.&lt;br /&gt;&lt;br /&gt;1. You can edit phpMyAdmin.conf (located at /etc/httpd/conf.d/) file in vi editor.&lt;br /&gt;2. Following code block should be there.&lt;br /&gt;&lt;br /&gt;&lt; directory /var/www/phpMyAdmin &gt;&lt;br /&gt;DirectoryIndex index.php&lt;br /&gt;Options Includes ExecCGI&lt;br /&gt;AllowOverride None&lt;br /&gt;Order deny,allow&lt;br /&gt;Allow from all&lt;br /&gt;&lt; / Directory &gt;&lt;br /&gt;&lt;br /&gt;3. &lt;b&gt;Add new line "Allow from ip.ip.ip.ip"&lt;/b&gt;, check code below.&lt;br /&gt;&lt;br /&gt;&lt; directory /var/www/phpMyAdmin &gt;&lt;br /&gt;DirectoryIndex index.php&lt;br /&gt;Options Includes ExecCGI&lt;br /&gt;AllowOverride None&lt;br /&gt;Order deny,allow&lt;br /&gt;Allow from ip.ip.ip.ip&lt;br /&gt;Allow from all&lt;br /&gt;&lt; / Directory &gt;&lt;br /&gt;&lt;br /&gt;please put your comments if you have any suggestions or doubts about this implementation.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1320384267440643585-771223348735533049?l=dhanesh-mane.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/771223348735533049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/771223348735533049'/><link rel='alternate' type='text/html' href='http://dhanesh-mane.blogspot.com/2010/03/how-can-we-restrict-ip-based-access-to.html' title='How can we restrict ip based access to phpmyadmin directory'/><author><name>ROY</name><uri>http://www.blogger.com/profile/00846865967450359044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1320384267440643585.post-4079892783998848688</id><published>2010-03-20T00:18:00.000-07:00</published><updated>2010-03-31T23:08:59.520-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='phpmyadmin'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='apache'/><title type='text'>Editing phpmyadmin.conf to restrict access change alias</title><content type='html'>If you want to &lt;b&gt;change alias&lt;/b&gt; of your phpmyadmin directory then you just need to edit your &lt;b&gt;phpmyadmin.conf&lt;/b&gt; file and update following line.&lt;br /&gt;&lt;br /&gt;- vi phpmyadmin.conf (if you use windows then just use any editor. I like linux)&lt;br /&gt;- Alias /aliasname /var/www/phpmyadmin&lt;br /&gt;- done&lt;br /&gt;&lt;br /&gt;vi phpmyadmin.conf - Will open phpmyadmin.conf file in vi editor.&lt;br /&gt;aliasname          - you can set any new string here&lt;br /&gt;&lt;br /&gt;So next time you can hit http://localhost/aliasname instead of http://localhost/phpmyadmin. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;Related Questions?&lt;/b&gt;&lt;br /&gt;&lt;a href="http://dhanesh-mane.blogspot.com/2010/03/how-can-we-restrict-ip-based-access-to.html" target="_blank"&gt;How to give ip based restriction to phpmyadmin directory.&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1320384267440643585-4079892783998848688?l=dhanesh-mane.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/4079892783998848688'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/4079892783998848688'/><link rel='alternate' type='text/html' href='http://dhanesh-mane.blogspot.com/2010/03/editing-phpmyadminconf-to-restrict.html' title='Editing phpmyadmin.conf to restrict access change alias'/><author><name>ROY</name><uri>http://www.blogger.com/profile/00846865967450359044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1320384267440643585.post-7589545581133823017</id><published>2010-02-24T01:59:00.001-08:00</published><updated>2010-02-24T02:05:15.750-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Regular Expression'/><title type='text'>Looking out for online regular expression tool</title><content type='html'>Check this cool tool to create regular expressions online.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://gskinner.com/RegExr/"&gt;Regular expression test tool&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1320384267440643585-7589545581133823017?l=dhanesh-mane.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/7589545581133823017'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/7589545581133823017'/><link rel='alternate' type='text/html' href='http://dhanesh-mane.blogspot.com/2010/02/looking-out-for-online-regular.html' title='Looking out for online regular expression tool'/><author><name>ROY</name><uri>http://www.blogger.com/profile/00846865967450359044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1320384267440643585.post-2270396196506975586</id><published>2010-02-15T03:10:00.000-08:00</published><updated>2010-02-15T03:10:58.707-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql table optimization'/><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><title type='text'>Top MySQL Performance Tuning Tips</title><content type='html'>Wondering around some set of tips to increase our MySQL tables speed and performance.&lt;br /&gt;&lt;br /&gt;Found some useful tips at following urls. check out, its really good.&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;http://forge.mysql.com/wiki/Top10SQLPerformanceTips&lt;/li&gt;&lt;li&gt;http://www.ajaxline.com/32-tips-to-speed-up-your-mysql-queries&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1320384267440643585-2270396196506975586?l=dhanesh-mane.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/2270396196506975586'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/2270396196506975586'/><link rel='alternate' type='text/html' href='http://dhanesh-mane.blogspot.com/2010/02/top-mysql-performance-tuning-tips.html' title='Top MySQL Performance Tuning Tips'/><author><name>ROY</name><uri>http://www.blogger.com/profile/00846865967450359044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1320384267440643585.post-1066466266317028631</id><published>2009-12-29T02:35:00.000-08:00</published><updated>2009-12-29T02:57:46.038-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='seo'/><category scheme='http://www.blogger.com/atom/ns#' term='free script'/><category scheme='http://www.blogger.com/atom/ns#' term='greasymonkey'/><title type='text'>Easy Directory Submission greasymonkey script by dhanesh mane</title><content type='html'>Great news for all SEO managers, specially for those who daily working on directory submission.&lt;br /&gt;&lt;br /&gt;I have created a &lt;b&gt;greasymonkey script&lt;/b&gt; which will help you to submit more n more links by eliminating all manual stuff of copying the link details from excel and fill it in the forms of directory submission page. I am sure that this script will help you in your directory submission task and you can do 4 times better with this script.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Script Summary:&lt;/b&gt; &lt;br /&gt;Make your directory submission work easy. This script fills the data in directory form automatically. You just have to enter captcha and hit enter. &lt;br /&gt;&lt;b&gt;Version:&lt;/b&gt; 1.0.0 &lt;br /&gt;&lt;b&gt;Copyright:&lt;/b&gt; 2009+, Dhanesh Mane (http://userscripts.org/users/123333/) &lt;br /&gt;&lt;b&gt;License:&lt;/b&gt; (CC); http://creativecommons.org/licenses/by/2.5/in/ &lt;br /&gt;&lt;b&gt;Script Location:&lt;/b&gt; (CC); &lt;a href="http://userscripts.org/scripts/show/64723"&gt;http://userscripts.org/scripts/show/64723&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;How to use easy directory submission script?&lt;/strong&gt;&lt;br /&gt;1. software requirements.&lt;br /&gt;Firefox&lt;br /&gt;FF plugin - Greasymonkey (read about this plugin before using my script)&lt;br /&gt;&lt;br /&gt;2. Install the script from location given above.&lt;br /&gt;&lt;br /&gt;3. right click greasemonkey icon in FF and click on &lt;strong&gt;manage user script&lt;/strong&gt;. Edit my script and enter your link details in appropriate variables. save it and that's done.&lt;br /&gt;&lt;br /&gt;4. Next time when you open any directory submission page you can find that the data which you have entered in variables in my script will be automatically populated.&lt;br /&gt;&lt;br /&gt;5. just select the category , enter captcha and hit enter.&lt;br /&gt;&lt;br /&gt;Hope this will help all SEO professionals to improve there directory submission activity.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1320384267440643585-1066466266317028631?l=dhanesh-mane.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/1066466266317028631'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/1066466266317028631'/><link rel='alternate' type='text/html' href='http://dhanesh-mane.blogspot.com/2009/12/easy-directory-submission-greasymonkey.html' title='Easy Directory Submission greasymonkey script by dhanesh mane'/><author><name>ROY</name><uri>http://www.blogger.com/profile/00846865967450359044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1320384267440643585.post-5768158511168939422</id><published>2009-12-24T10:53:00.000-08:00</published><updated>2009-12-24T10:53:01.916-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='javascript'/><category scheme='http://www.blogger.com/atom/ns#' term='javascript fun'/><title type='text'>Magic with javascript</title><content type='html'>1. Open any website andtype following in address bar.&lt;br /&gt;javascript:document.body.contentEditable='true';document.designmode='on';void 0&lt;br /&gt;&lt;br /&gt;Now you can edit the page contents directly.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1320384267440643585-5768158511168939422?l=dhanesh-mane.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/5768158511168939422'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/5768158511168939422'/><link rel='alternate' type='text/html' href='http://dhanesh-mane.blogspot.com/2009/12/magic-with-javascript.html' title='Magic with javascript'/><author><name>ROY</name><uri>http://www.blogger.com/profile/00846865967450359044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1320384267440643585.post-75095656703228727</id><published>2009-12-24T05:01:00.000-08:00</published><updated>2009-12-24T05:01:08.100-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php5'/><category scheme='http://www.blogger.com/atom/ns#' term='php'/><category scheme='http://www.blogger.com/atom/ns#' term='php.ini'/><title type='text'>new php.ini directives in php5</title><content type='html'>PHP 5 came up with some new directives in php.ini file. I am writing about all new directives introduced in PHP 5. Heres the list...&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1) mail.force_extra_parameters&lt;/b&gt; : Force the addition of the specified parameters to be passed as extra parameters to the sendmail binary.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2)register_long_arrays&lt;/b&gt; : &lt;br /&gt;&lt;br /&gt;configures the php to allow or disallow the registration of long arrays $HTTP_*_VARS &lt;br /&gt;&lt;br /&gt;possible values : On / Off&lt;br /&gt;&lt;br /&gt;Default:off&lt;br /&gt;&lt;br /&gt;Recommended : If you are not using them then its recommended to keep them off for some performance reasons.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;3) session.hash_function&lt;/b&gt; : &lt;br /&gt;This directive allows us to configure the way of php's session id generation algorithm.&lt;br /&gt;0: MD5   (128 bits)&lt;br /&gt;1: SHA-1 (160 bits)&lt;br /&gt;&lt;br /&gt;possible values : 0 / 1&lt;br /&gt;&lt;br /&gt;Default : 0&lt;br /&gt;&lt;br /&gt;&lt;b&gt;4)session.hash_bits_per_character&lt;/b&gt; : &lt;br /&gt;This directive allows us to define how many bits are stored in each character when converting the binary hash data to something readable.&lt;br /&gt;&lt;br /&gt;possible values : &lt;br /&gt;'4' (0-9, a-f)&lt;br /&gt;'5' (0-9, a-v)&lt;br /&gt;'6' (0-9, a-z, A-Z, "-", ",")&lt;br /&gt;&lt;br /&gt;default : 5&lt;br /&gt;&lt;br /&gt;&lt;b&gt;5) zend.ze1_compatibility_mode&lt;/b&gt; :&lt;br /&gt;This configuration directive allows us to enable or disable the compatibility with zend engine 1 ( which is a php 4 engine). Its set to Off as default and turning it on may affect cloning,casting. Objects are also passed by value instead of pass by reference.&lt;br /&gt;&lt;br /&gt;possible values : On / Off&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1320384267440643585-75095656703228727?l=dhanesh-mane.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/75095656703228727'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/75095656703228727'/><link rel='alternate' type='text/html' href='http://dhanesh-mane.blogspot.com/2009/12/new-phpini-directives-in-php5.html' title='new php.ini directives in php5'/><author><name>ROY</name><uri>http://www.blogger.com/profile/00846865967450359044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-1320384267440643585.post-8979828397596212403</id><published>2009-12-24T05:00:00.000-08:00</published><updated>2009-12-24T05:00:04.899-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mysql'/><title type='text'>Adjacency List Model and Nested Set Model for hierarchical data in MySQL</title><content type='html'>I am working on classifieds website these days. These kind of websites are getting famous these days and they also have average kind of traffic. while working on database designing for websites like classifieds / auction / web directories, we have to take care of few things like &lt;br /&gt;&lt;br /&gt;1. This is a tree structure which may have n levels.&lt;br /&gt;2. And there has to a straight way to traverse from top to bottom and from bottom to top.&lt;br /&gt;3. Strong tree traversal algorithm.&lt;br /&gt;4. Retrieving a Single Path between two nodes.&lt;br /&gt;5. Depth of nodes and depth of sub-tree and lots of other things.&lt;br /&gt;&lt;br /&gt;For this we need a strong table design and relationship structure. In MySQL we can manage this hierarchical data with two different models.&lt;br /&gt;&lt;br /&gt;1. The Adjacency List Model&lt;br /&gt;2. The Nested Set Model&lt;br /&gt;&lt;br /&gt;The Adjacency List Model is a very basic table structure which maintain the column lets say "parent" to maintain the parent child relationship. (It actually hold the PK of parent node). But this model again has some disadvantages, described in brief on the link at the bottom.&lt;br /&gt;&lt;br /&gt;so,I came across a another hierarchical model called as &lt;strong&gt;nested set model&lt;/strong&gt;. In this type of hierarchical data model parent nodes envelope there children. This is based on algorithm called as &lt;strong&gt;preorder tree traversal algorithm&lt;/strong&gt;. This is a very good concept while working on tree structure tables. &lt;br /&gt;&lt;br /&gt;Source of information : http://dev.mysql.com/tech-resources/articles/hierarchical-data.html&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/1320384267440643585-8979828397596212403?l=dhanesh-mane.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/8979828397596212403'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1320384267440643585/posts/default/8979828397596212403'/><link rel='alternate' type='text/html' href='http://dhanesh-mane.blogspot.com/2009/12/adjacency-list-model-and-nested-set.html' title='Adjacency List Model and Nested Set Model for hierarchical data in MySQL'/><author><name>ROY</name><uri>http://www.blogger.com/profile/00846865967450359044</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry></feed>
