Archive

Archive for April, 2006

Quotes of The Day !

April 28, 2006 Leave a comment

Hi,

I just have this habbit of reading 1-2 quotes and words of wisdom a day or some times I create my own version of quotes, so I just thought of sharing them here each day from now on, so starting from today's,

1. There are no facts, only interpretations – By Friedrich Nietzsche

2. Success according to some one,
Find a job in any field, go crazy about it.
Go crazy about a field, find job in it. – wow cool.

Haroon

Advertisements
Categories: General

Self-Describing Numbers and Sequence!

April 25, 2006 7 comments

One of my friends Usman Ahmad, asked me to find the next row in

1
1 1
2 1
1 2 1 1
1 1 1 2 2 1

which I solved after a bit of effort, but it was actually fun to reach the solution.

Solution goes here as, the next row is "3 1 2 2 1 1" and the next one is "1 3 1 1 2 2 2 1". Such a series is called Self-Describing sequence. And it is very simple to generate. Start from '1' and then next number simply describes it, mean one '1' = 1 1, now next number in the series will be two '1''s as 2 1. Next number describes it as one '2' and one '1' = 1 2 1 1 and hence next number is one '1', one '2' and two '1's so 1 1 1 2 2 1 and so on. So it's a bit different series and nice one to come across. Such numbers also exist in some base systems which are actually self describing, For example, in base 10, the number 6210001000 is self-descriptive because it has six 0s, two 1s, one 2, one 6, and no 3s, 4s, 5s, 7s, 8s or 9s.

I, Haroon

Art or Science !

April 18, 2006 Leave a comment

Transparent Screen

I just found this image at here, and it kept me thinking for a while if technology can reach that far(I hope one day it will), the site contains some interesting images so have a look for some nice background images!

Haroon 

Categories: General

Adding an entry in context menu for registring/un-registring DLLs !

April 15, 2006 Leave a comment

Hi to every one who is reading this,

I just came across something while registering *.dlls with Windows or *.ocx files. I just wondered there was no option in right click context menu while clicking on these types of files so I decided to make an entry in context menu and found the following work around. Copy past this code in some text editor and then save the file as “abc.reg” and then run it, or make these entries in the registry editor. You will now have the context menu entry register / un-register while right-clicking on the corresponding *.dll/..ocx file.

REGEDIT4  ;This adds the ability to Right-Click on a .dll or .ocx ;  and get the Register / UnRegister options. ; ========== ; .DLL files ; ========== [HKEY_CLASSES_ROOT\.dll] "Content Type"="application/x-msdownload" @="dllfile" [HKEY_CLASSES_ROOT\dllfile] @="Application Extension" [HKEY_CLASSES_ROOT\dllfile\Shell\Register\command] @="regsvr32.exe \"%1\"" [HKEY_CLASSES_ROOT\dllfile\Shell\UnRegister\command] @="regsvr32.exe /u \"%1\"" ;==========; .OCX files; ========== [HKEY_CLASSES_ROOT\.ocx] @="ocxfile" [HKEY_CLASSES_ROOT\ocxfile] @="OCX" [HKEY_CLASSES_ROOT\ocxfile\Shell\Register\command] @="regsvr32.exe \"%1\"" [HKEY_CLASSES_ROOT\ocxfile\Shell\UnRegister\command] @="regsvr32.exe /u \"%1\"";  

End

Categories: Computer Science

Karachi Bomb Blast !

April 11, 2006 Leave a comment

So once again the people of Karachi suffered from another brutal bomb blast in gathering of local people celebrating the Eid-Ul-Milad-Ul-Nabi (P.B.U.H). Around 50 people have died so far including several moderate religious leaders, and some 70-80 people injured and under treatment in various hospitals of Karachi. The incident took place once again on very religious day when people were celebrating the birth day of Prophet Mohammad (P.B.U.H), the 12th of Rabi-Ul-Awal near Maghrib Prayers at Nishter Park, Karachi. Most worst part of the consequence of this incident is the reaction of people, who have burnt several buses, bikes, petrol pump, ambulances(yes those even which were carrying dead bodies and injured people), fire brigade etc. Now I dont understand what is this. Already the city is terror struck and every one is sad on this terrorist activity, and then these stupid people are reacting by destroying goods of public and government. What they want to show by this? I simply cannot understand. Any ways like all other Pakistanis I am also sad on this animalistic activity and I hope the wounded  are treated well and martyred people rest in peace. But at the same time we should understand the terroristic reaction which are shown, are not the way to react to this blast.

Categories: General, Uncategorized