Gaurav Patel

Replace Text in Variables & Single/Multiple-Files in UNIX

Replace Text in Variables & Single/Multiple-Files in UNIX
Shell Script is fun. I love it when I know which commands to use. There are almost thousands ofHere is a simple trick to Replace Text and Variables in Files in UNIX. We will use command sed - it is very useful to find and replace text in single or multiple files.Replace Text in Single ...

Setting Height of Selectbox (Combobox) in IE

Working with Internet Explorer and creating web pages that behaves same in IE has always been frustrating for many web developers. One way of tackling IE problem is to create IE-Specific Stylesheet and thus it helps in avoiding breaking of design in IE.While working on one of the requirement I had to set height of selectboxes on the webpage. Normally for setting up height ...

How to: Setup Multiple Virtual Hosts in WAMP Server

How to: Setup Multiple Virtual Hosts in WAMP Server
WAMP, or Windows Apache MySQL PHP has been a very server for lots of PHP developers who uses Windows environment. These are mainly the freelancers who mostly uses laptops as their local development machines. Whatever may be the reason, but when you use WAMP, it becomes difficult to manage multiple application installed in same root.For example ...

Multiple Selection Listbox Javascript Problem in MS Internet Explorer

Multiple Selection Listbox Javascript Problem in MS Internet Explorer
Last night I came across very weird problem of JavaScript. I wrote a JavaScript code to select all the option of the list. Let's take following example for demonstration. HTML code:1 2 3 4 5 6a b c dselect all numbers select ...

MARIA, An extended MyISAM engine for MySQL

MARIA, An extended MyISAM engine for MySQL
Let us talk about Maria.. no no not Maria Sharapova, its new version of MyISAM engine for MySQL which is claimed to be crash safe and provides more concurrency. It aims at becoming fully transactional (ACID). Following are the features of Maria. Featuresul.myPost li{text-decoration:none;border:none;list-style-type:disc;margin-left:10px;}ACID (Atomicity, Consistency, Isolation, Durability) Commit/Rollback Concurrent selects (via MVCC) Row locking Group commitAlthough Maria itselft is ...

How to: Reset MySQL root password

Resetting the root password of a MySQL database is trivial if you know the current password if you don't it is a little trickier. Thankfully it isn't too difficult to fix, and here we'll show one possible way of doing so.If you've got access to the root account already, because you know the password, you can change it easily:gaurav@gaurav:~$ mysql --user=root --pass mysql Enter password:mysql> update ...

AJAX cache problem in IE

Few days back I was working on a requirement where in a webpage one table was getting populated through AJAX. This table was getting refreshed every 5 mins as it was showing some real time data being processed in back end.To my surprise, the data in the table were not being refreshed and the output that I was getting was not the one that I ...

Problem in changing flash (swf) file location in embed or param tag using JavaScript

Problem in changing flash (swf) file location in embed or param tag using JavaScript Manipulating the DOM (Document Object Model) using JavaScirpt is known to all. Changing the src attribute of the img (Image tag) tag using JavaScript is very common. But I had a problem in changing the flash (swf) file location in embed or param tag using JavaScript. I had following html code for ...

Problem with comparison of float or double column in MySQL

Problem with comparison of float or double column in MySQL I had a problem in comparing the number with decimal point with a float column in MySql. After some investigation I came to know that, in most of the computer architecture, the value of floating point numbers is stored as approximation. So if you compare the 21.40 with the given column, it actually compare the value ...

How to set third-party cookies with iframe

How to set third-party cookies with iframe? I had problem with the lead base ad click tracking. I was using the iFrame to track the lead information from the advertiser site. But somehow IE is not sending any cookie information from there. Infect firefox also doesn't send any cookie information for the first request (i.e. when the iFrame src page is called) but if you call ...
Copyright © 2012 ViralPatel.net. All rights reserved.