image upload

If your image upload is not working in internet explorer 7 or internet explorer 8 but it works in IE6, most probably this is because IE6 uses standard MIME type for images but IE7, IE8 uses new MIME parsing library So, if your website allow users to upload images and you are using basic MIME [...]

continue reading..
populate combobox

You can dynamically populate drop-down using JSON data. Either you can create a JSON object from database or get the JSON content from a file and populate drop-down depending upon the value of first drop-down. JSON data should be in such a format so that key should be the value of first drop-down and associated [...]

continue reading..
hide show table columns

There are many ways you can hide table elements. Javascript or css can be leveraged to hide table rows and columns. You can also use Datatables API to hide table elements. If you want to show or hide table rows dynamically you can use below code with datatables. $(document).ready(function() { $(’#example’).dataTable( { "sScrollY": "200px", "bPaginate": [...]

continue reading..
easy sql joins to optimize SQL query

Joins are used to optimize SQL query. Most of the difficult tasks and data retrievals can be doen using Joins. SQL Joins are live saver and every developer who use database must know how to use SQL joins. Joins are helpful in avoiding nested and multiple select statements which are sometimes not optimized. Programmers are [...]

continue reading..
bulk delete

Sometimes we need to get into MySQL to delete post in bulk. If you are using autoblog poster and you want to delete post within a date range or in a particular directory this SQL script is very handy for you. If you search for plugins you might come up with many . I searched [...]

continue reading..

This is very simple script which explains how to use JSON file to generate HTML table. including all the packages. It is important to include JSON package before trying to use JSON in your perl program. #!/usr/bin/perl -w use JSON; use CGI; use CGI qw(:standard Vars); use CGI::Carp qw(warningsToBrowser fatalsToBrowser); use strict; Creating header for [...]

continue reading..

Java does not have move file file function in io. You can copy the file in destination folder and then delete the original file. Below is the function which take a filename, from location, to location and copy the file. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 [...]

continue reading..
IDE should be platform independent

What features we should look when we choose the IDE 1. Easy to use 2. Access to Documentation 3. Testing integration 4. Autocompletion 5. Code refactoring: Refactoring code should be easy, Renaming affects dependencies/Extract Method/Extract interface etc. 6. Language support: Support for variety of programming language (e.g. If working with Ruby it should also support [...]

continue reading..

Recently I had to create a combobox which should be populated by files list in a directory. I have been trying to fill a drop down using Javascript. But after some research I came to know that it could produce some security rist to website. Well I am not concern about the security rist because [...]

continue reading..
Codecademy.com

Learning javascript online is easy now. There are plenty of websites you can download video tutorials from and learn javascript from scratch. You can also signup for classes on different website where you can learn it step by step. Below are the collection of some of the websites for Javascript tutorials. 1. codecademy.com : This [...]

continue reading..