Skip to main content


Showing posts from September, 2007

Six sixes in one over in Twenty20 Cricket - World record

Six sixes in one over in Twenty20 (Twenty Twenty, T20) Cricket? Oh! World record!!! It was an amazing over; all the balls went over the rope like rockets. The Start was Yuvraj Singh from India, and the poor bowler was Stuart Broad (England). This happened on 2007-09-19, in Twenty20 world up match. Yuvraj did this in the 19th over.
Unsurprisingly, he scored 50 runs in 12 deliveries, creating another world record. And think for a minute? He scored 50 with 3x4 and 6x6, which adds upto 48 runs in 9 balls. This world record will not be broken for a longer time and will stay than any other record?

With this six sixes, Yuvraj joined the club of Six Sixers as the 4th person. Before him; West Indies great Sir Garfield Sobers and India's Ravi Shastri joined there while Herschelle Gibbs joined this club this year in March. Well done Yuvraj.

[Java Tips] Add Array into a List and convert a List into an Array

With Java, putting contents of an Array into a new List object or adding into an existing List object can be achieved easily using a for() loop; just by going through each and every element in array and adding to List one at a time. But that is not needed. Java has provided a method to achieve that easily; just with one method call. Following code snippet shows how.
import java.util.List; import java.util.Arrays; String[] array = {"one", "two", "three"}; List newListObject = Arrays.asList(array); //adding to existing List String[] newArray = {"four", "five"}; List all = new ArrayList(); all.addAll(newListObject); all.addAll(Arrays.asList(newArray));
Also creating a new Array object using an existing List object can be done using another for() loop; by creating a new Array object with a size matching to list size and adding each on at a time. But for this requirement, there are a set of methods.
List list = new ArrayList(); list.…

QuickTime security issue fixed with Firefox new security release

Firefox has released a new security release again. As addicted users of FF, we are really happy how Firefox progresses. When ever some issues are fixed, they provide us with a new release. Also user does not need to think twice in installing the new release as it does not add more issues to your existing installation. When Internet Explorer (IE) 7 came out users had issues; also still we have so many issues with IE7, but not with Firefox.

With this release they fixed the bug related to QuickTime; "Code execution via QuickTime Media-link files".
QuickTime Media-Link files contain a qtnext attribute that could be used on Windows systems to launch the default browser with arbitrary command-line options. When the default browser is Firefox or earlier use of the -chrome option allowed a remote attacker to run script commands with the full privileges of the user. This could be used to install malware, steal local data, or otherwise corrupt the victim's compute…

svnadmin create a new empty project repository in subversion (svn) in Linux

If you have installed subversion (used for version control) and looking for creating a repository inside that, you are at the right place. CommandCommand to create new project repositories inside subversion is svnadmin create. svnadmin create repoPath - repoPath has to be a path to a folder, if that folder does not exists; new folder will be created.
Consider following examples svnadmin create /usr/local/svn/clients/MyProject svnadmin create .
First command will create a repository inside "/usr/local/svn/clients/MyProject" while the second command creates a repository in your current directory. You can pick either of the above commands.

After creating the repository, you must alter access controls. For that open conf/svnserver.conf found inside newly created repository folder.

Common values to alter are;
- access control for non authenticated users, so better to set it to none (anon-access = none)
- access control for authenticated users, this…

Call javascript in body tag on different events

JavaScript can be called inside <body> tag of a web page. Mainly JavaScript functions are called on events like Loading a web page, Clicking on a button, Moving mouse, Focusing on an element, etc. For each of these events, there are defined methods and they are fired at that particular event.

For example; onclick() is triggered on a mouse click event while onmouseover() is called when mouse moves over an element. But you can call JavaScript functions even without any event.

Available events for body tag are...ONCLICK : mouse button clicked ONDBLCLICK : mouse button double-clicked ONMOUSEDOWN : mouse button is pressed ONMOUSEOVER : mouse moved onto an element ONMOUSEMOVE : mouse moved over an element ONMOUSEOUT : mouse moved out of an element ONMOUSEUP : mouse button is released ONKEYPRESS : key pressed and released ONKEYDOWN : key pressed ONKEYUP : key released There are two special events that are specific to <body> tag. Those are; ONLOAD : document loaded complet…

Which software (geek) monkey worth the most?

An interesting conversation!!!

A tourist walked into a pet shop and was looking at the animals on display. While he was there, another customer walked in and said to the shopkeeper,
"I'll have a C monkey please".
The shopkeeper nodded, went over to a cage at the side of the shop and took out a monkey. He fit a collar and leash, handed it to the customer, saying, that'll be $5000. The customer paid and walked out with his monkey.

Startled, the tourist went over to the shopkeeper and said,
"That was a very expensive monkey. Why did it cost so much?"
The shopkeeper answered,
"Ah, that monkey can program in C very fast, tight code, no bugs, well worth the money."

The tourist looked at the monkey in another cage.
"That one's even more expensive! $10,000! What does it do?"
"Oh, that one's a C++ monkey; it can manage object- oriented programming, Visual C++, even some Java. All the really useful stuff,"
said the shopkeep…

Yahoo! Photos closing on different dates for different users

Today I got a mail from Yahoo informing that Yahoo Photo is shutting down. But why? As you may have guessed, they are going to stick only to Flickr, which is one of the best solutions if someone wishes to share photos.

It will be closed on 2007-10-18 for some of us while the date differs from one user to another. But anyway make sure you transfer all your photos in Yahoo Photo to Flickr or download them to some other place as you will loose them for ever. Only 41 days left for me.

File Splitting Free Software - TheFileSplitter

TheFileSplitter, as name suggests it is a file splitting software. When thinking about file splitting, the first option that comes to our minds is WinZip which is a commercial one (costs $29.95 per standard single user license). But TheFileSplitter is completely free and no need of installing; just extract and use. It is only 71kB in size. FeaturesCompletely free. Installing is not mandatory, just extract and use. User can specify any size for file pieces; starting from a smaller value as 1 byte. This software is not needed at the event of recreating the original file What??? yes, not needed. It creates a small .exe file (about 40kB) file which can reproduce the original file using the pieces of that original file. So receiver does not have to install or download any splitter software; or even no need of knowing how splitting is done. Performance Analysis oftware is analyzed by us using different file sizes and different piece sizes. For the same piece size of 500kB; three files are …
Creative Commons License Digizol by Kamal Mettananda is licensed under a Creative Commons Attribution-Noncommercial-No Derivative Works 3.0 License .
URL of this page must be supplied in attribution
© 2004-2017