This problem was solved when a lot of users created an alternate History Page extension on Chrome Webstore.
In this post I’m gonna tell the most used History Alternate Extension. It’s Better History extension. You can download the extension from here.
Deleting:... [READ MORE]
Setting Infinite Width on an element – HTML
This will only work on the main parent elements such as elements with display property as follows:
- block
- table
- inline-block
So now you know what are the main parent elements. Now back to the point, to add infinite width set the white-space property to the value nowrap. Example:
... [READ MORE]Generating Random String in PHP
In PHP you can generate random number by using rand function, but there is no specific function to generate a random text or string. In this post I’m going to show the function that will generate a random string of length mentioned.
Here is the function:
function rand_string($length) {
$str="";
$chars = "subinsblogabcdefghijklmanopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
$size = strlen($chars);
for($i = 0;$i < $length;$i++) {
$str .= $chars[rand(0,$size-1)];
}
return $str;
}
Usage
To generate a random string use rand_string() function with the parameter of length of the to be generated string. Here’s an example:
... [READ MORE]Installing Wine 1.6 on Ubuntu 10.04
Optional :
Steps :
sudo make install
... [READ MORE]
Javascript code Compressor Tool
Go to http://blimptontech.com/ to see the compressor in action.
You have three options:
- Paste Code and Compress
- Compress code in files
- Compress Multiple files into one.
It’s a great tool and it will help you reduce the file size up to 100 KB. This site is similar to the JsCompressor tool @ http://jscompress.com.
Preventing double encode of URL in PHP
$string = url_decode($url);
And then you should encode as to prevent double encoding.
$string = url_encode($url);
By doing this we can prevent double encoding of URL‘s.
NFS Most Wanted running on Wine 1.6
Wine 1.6 is released with 10,000 changes
What’s New ?
- New User Interface
- Networking capabilities
- Support for Windows Transparency
- Graphics improved
- JoyStick Installing
- Mono package for .NET applications support
- Support of new softwares and games.
- Improved Input validation
- Mac Driver
- Direct3D
and more. Wine Team officially said that the new Wine version more than 10,000 changes.
Encode/Decode URL in Javascript and PHP
Javascript
Encoding
encodeURIComponent(url);
Decoding
decodeURIComponent(url);
PHP
Encoding
urlencode(url);
Decoding
... [READ MORE]



