Google Voice

Google has started its new service "Google Voice", it is currently available by invite only. It is a useful service in my opinion. Now let me describe that how it works. When you register with google voice you will be given a google number, it will be like an ordinary number. Now your friends, family and people who wants to contact you will call on your google number, and you will choose that if someones call you at google number it should ring your home, office, cell number or all of these ring at once and you can answer the phone by any number or any specific number. The best feature of this is that people dont have to remember or store different numbers like home,work,cell etc. Only one google number is enough to reach a person, secondly if you are expecting an important call than it cannot be missed as you can get it on all your phone numbers and you dont have to worry that will he call on your cell or at your home number? isnt it cool :)

Progress Bar in C#

I am very busy these days and not getting time to do readings or writing on my blog. But today i manged to get some time so i decided to write this simple tutorial. I am going to write that how progress bar works in C#, ProgressBar class is part of .NET framework. In this tutorial i am going to use three members of class ProgressBar Minimum,Maximum and Value.
So first create a C# Application and add progress bar control on your form, you can give it any name but i am naming it "pb" here. Add timer and name it as "tr".Now paste the following code in form load event

private void frmProgressbar_Load(object sender, EventArgs e)
{
pb.Minimum = 0; // set Minimum to 0
pb.Maximum = 100;// set Maximum t0 100
tr.Interval = 100;// timer ticks each 100 milliseconds
tr.Enabled = true; // start the timer
}

Now paste the following code behind Timer Tick Event

private void tr_Tick(object sender, EventArgs e)
{
if(pb.Value!=100) // check if value below 100 as it shud not be greater than maximum value
{
pb.Value += 5;// add 5 to the Progressbar current value
}
}
Thats it!! its done, isn't it simple? :P.I hope this will help you

Pakistan Zindabad

Congratulations to whole of Pakistani nation and Pakistani team who have really done a great job by winning T20 World Cup,it is a time when everyone has boycotted to play in Pakistan. Pakistanis have shown to whole of the world that we are the nation that can do anything so don’t try to underestimate Pakistani nation. It was a great match and Pakistani players really played very well, they played as a team and as a unit, it can be seen from their body language that they have the courage to win T20 World Cup and they did it. It is a great gift to the nation from the cricket team as Pakistan is facing many challenges and is at war, this win has delighted Pakistani nation. We are proud to be Pakistani, and let us all pray for the success of Pakistan in all the areas it is facing problems today or will face in future. Pakistan Zindabad J

Nokia's new charger for cell phones!

Those days are going to be over when you say to your friends or other people while talking on your cell phone that my battery is low and I cant talk and stuff. Because Nokia Research Centre in Cambridge is working on a prototype that would eliminate traditional cell phone chargers. Isn’t it cool? J. This system will collect energy from ambient radio waves emitted by antennas,Wi-Fi transmitters etc. This all sounds that this is a whole new concept but it is not a new idea as this technology is used from years i.e in alarm systems etc. so Nokia is going to catch radio waves across a range of frequencies, harnessing them for power. I am not going into more detail about its working to keep it simple :p. I don’t know that what features will it power ?music playing?internet browsing as consumers have entertainment and business needs. This system will develop in 3-5 five years according to Nokia. By the way wireless chargers have already hit the market. This month Palm introduced a wireless charger touchstone for its Palm Pre. Touchstone uses method known as inductive charging.

Contradiction!!

President Zardari said that we need trade not aid, I still can’t believe that is it Zardari? Who was begging all around the world for more aid. How this change occurred? It is a very essential question that needs a precise answer. Whatever it is but you can see the contradiction and lack of commitment in Zardari’s administration. Two or three days back foreign minister Qureshi said in an interview that Pakistan needs aid to fight against Taliban otherwise Taliban can enter India. What a shameful act. He spoke non sense and rubbish, and had disgraced Pakistan by not only doing begging but by saying that Taliban would enter India, why would any Pakistani say this? Everyone knows that India is accusing Pakistan of terrorism activities and doing propaganda of highest level to portray Pakistan as a terrorist and failed state, and people like FM Qureshi are helping them to achieve their goal. This is a clear act of treason and I don’t know why Supreme Court of Pakistan doesn’t take suo motu notice on these types of statements and issues? And most unfortunately people of Pakistan can come on roads for restoration of democracy but no one cares about these traitors who are disgracing Pakistan and also betraying its people.L

Network Simulator 2

I am installing NS2 v2.33(latest version) on fedora 9(i386). There are two ways to install it either piece wise or all in one. Here i am installing all in one because it is simple.
  • Download all in one package from NS website.
  • It is ".tar.gz" format so extract it on your fedora desktop.
  • Open terminal
  • Type "cd Desktop" and press enter(as your ns folder is on desktop)
  • Now type "cd ns-allinone-2.33" and press enter
  • Type "./install" and press enter. It will automatically install all the compoents in the folder and it will take some time.
  • When done. Now type "gedit ~/.bashrc"
  • Add the following lines of code at the end of the file (remember to replace"/home/hassan/desktop" with your installation path)
# LD_LIBRARY_PATH
    OTCL_LIB=/home/hassan/Desktop/ns-allinone-2.33/otcl-1.13
      NS2_LIB=/home/hassan/Desktop/ns-allinone-2.33/lib
        X11_LIB=/usr/X11R6/lib
          USR_LOCAL_LIB=/usr/local/lib
            export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB

                # TCL_LIBRARY
                  TCL_LIB=/home/hassan/Desktop/ns-allinone-2.33/tcl8.4.18/library
                    USR_LIB=/usr/lib
                      export TCL_LIBRARY=$TCL_LIB:$USR_LIB

                          # PATH
                            XGRAPH=/home/hassan/Desktop/ns-allinone-2.33/bin:/home/hassan/Desktop/ns-allinone-2.33/tcl8.4.18/unix:/home/hassan/Desktop/ns-allinone-2.33/tk8.4.18/unix
                              NS=/home/hassan/Desktop/ns-allinone-2.33/ns-2.33/
                                NAM=/home/hassan/Desktop/ns-allinone-2.33/nam-1.13/
                                  PATH=$PATH:$XGRAPH:$NS:$NAM
                                  • Now type "source ~/.bashrc"
                                  • Installation is completed. To check whether your installation is correct type "ns" a "%" will appear on the screen enter "exit". Type "nam" this will open network animator. I hope this tutorial will be helpful for you.

                                  Pity on India!!

                                  I am writing this article after I read some news articles which had bothered me and as being a Pakistani I thought that it would be betrayal with my homeland that If I remain silent. Here I am only discussing two points, I was reading in newspaper that the Indian Foreign Minister SM Krishna said that there would be no dialogue with Pakistan unless they carry out some positive steps against terrorists. He also said that he doesn’t know what is good Taliban and what is bad Taliban.

                                  We should have pity on Indian people and its government, because I guess that ministers like SM Krishna should first complete their education and then should think about coming to politics or if they think it is hard for them then they should hire someone who would atleast read news for them and update them about the events occurring around the world otherwise they are creating so much embarrassment for their country(India). Everyone in the world knows that Pakistan is at war with Taliban, Taliban is just a label that Indian, US and Israel agents are using to conceal their identity and they are the ones who are involved in Swat and Wana, arms that are recovered from these Taliban are Israel made or US made and they got their training from RAW and some agents of RAW are also involved and are fighting against Pakistan in Swat and Wana directly. The most surprising thing that I want to mention here is that I was reading articles about the ongoing war, I came across pictures of terrorists who were killed and you would not believe that they were not even circumcised!. So Mr SM Krishna’s knowledge is not good that’s why he is saying that Pakistan should do some positive steps, I wanted to ask him that what would be more positive step than declaring war against terrorists? But I guess it is not his fault, it is fault of his ignorance. And the fact of matter is that Pakistan is a sovereign country and no one can dictate Pakistan that what to do and what not to do. Infact it is tactics of politicians of India to blame Pakistan and try to dictate things to other’s so that they can divert attention of their own people from the problems and issues related to their own country. Now as he said that he doesn’t know what is good and what is bad Taliban. That shows that SM Krishna is living in ignorant world and doesn’t know about the history of the world, sorry world is a big thing I must say history of sub continent. What an uneducated person he is. Hillary Clinton (secretary of state of USA) herself said that America is responsible for creation of Taliban. So what one gets from it? According to me what I perceive from this is that Taliban’s were created by USA and when USA has completed its goal then they abandoned Taliban and 9/11 was just a drama to eliminate them, so the USA attacked Afghanistan, Taliban defended Afghanistan and for this they became terrorists, obviously if some country attacks another country then the attacked country has the full right to protect and defend itself and Taliban had done the same. And on the other side some people from Taliban had betrayed their own country and had sold themselves to USA, and USA is using them to obtain their objectives in this region and in the world, there are always some good and bad people. Have you ever thought that why American drone attacks never hit hideouts of Beitullah Masood? Because he is the agent of USA and is disloyal to his own country and to Muslims. So there are good Taliban and bad Taliban and most of the people know about it but the foreign minister of India doesn’t!!. well no one can do anything in this matter as there is no remedy for person who remains ignorant after observing all the facts on ground.. but I guess I can do something useful for him :P I can pray for him that Allah please give him some sense and some knowledge so that he can talk intellectually and not like an idiot!!

                                  Facebook vanity URL!!

                                  No doubt that you have heard of Facebook vanity URL, it is a thing for which everyone was so excited from days. It is quite a bigger success for Facebook. As I was seeing the statistics that within first seven minutes of launch of this service 345,000 users grabbed the URL’s and within 15 minutes over a half million users have grabbed one, it was on first come first serve basis. I was doing some research and I found that the best URL so far is “facebook.com/default.aspx” chosen by a user. I know some of you will be amazed that doesn’t it conflict with facebook's default page :P..well no it is not going to create a problem as facebook is built in php not asp J. I have also read in different websites that some people selected good URL’s and are now auctioning it to make some good money. But there are also some people who are sad as they were unable get their favorite URL, because it is taken by someone else before them :P. I think it’s a good thing to give everyone a unique URL as a name instead of a number(as it was previously) as it will help in tracking friends and stuff. I haven’t got one for me up till now, I hope I will be able to get a good one J

                                  Bing.com

                                  I am writing it a little late because I thought that I should wait for some time before writing a review about bing.com, Microsoft’s “decision engine”. Bing was released on June 3rd, all the technology conscious people were waiting that what type of decision engine Bing will be. I also got baffled with the term decision engine, will it be like WolframAlpha? Will it be like search engines like Google? Or will they are coming with a whole new idea?. But at the end it is a search engine like Google, then why they were saying it decision engine? Well whatever it is, Microsoft has followed its traditions to copy others idea and then grab the market share. Well Google is their main competitor and interestingly the stats after the release of bing shows that more and more people are using bing than Google, so some good news for Microsoft :P. I also used bing and it produces good search results, the interface is quite cool with rotation of stunning photography while Google interface is simple, maybe more people are attracted towards the cool interface of bing. But in my opinion as I said in one of my previous posts that users don’t want to get links for their searches, they want answers rather than list of links of websites that Google and Bing are providing. Users want search to be smarter and simple than ever before, which gives them accurate results within less time. Bing has not came with any new idea it is just another drop in an ocean. Although WolframAlpha is not successful but they came with a new idea and they are going to improve it with time, that’s the type of search that people want or even more. Let’s hope that some useful search engine will come or the existing ones will be optimized to give users what they want!!

                                  Convert FAT partition to NTFS

                                  I am telling you a simple way to convert your drive's partition from FAT or FAT32 to NTFS. If you want more security, file by file compression etc than you can convert FAT file system to NTFS with just one command, so lets start
                                  • Go to start->RUN
                                  • In RUN type "cmd" to open command prompt
                                  • Now in command prompt type "CONVERT [driveletter]: /FS:NTFS". In drive letter above you have to give drive name that you wish to convert to NTFS.
                                  • Wait for few moments, depending on your disk size, and after some moments your FAT drive will be converted into NTFS.
                                  There is a minimal chance of data loss or corruption during conversion but it is better that you perform a backup on drive that you are converting before doing this.

                                  Future of Gaming!!!

                                  Creating a torrent file in uTorrent

                                  Many people know that how to run a torrent file but most of them dont know how to create it. If you want to share a file with your friend over the internet than rather than sharing through msn or e-mail as they will take years :P you can make a torrent file and share it.its simple
                                  1.Open Utorrent
                                  2.Press "ctrl+n"
                                  3.Enter source as shown above.In "source"you have to give path of a file for which you have to create the torrent.
                                  4.Now in "trackers" you have to give tracker. You can give one or more than one. Below are preferred trackers
                                  http://open.tracker.thepiratebay.org/announce
                                  http://www.torrent-downloads.to:2710/announce
                                  http://denis.stalker.h3q.com:6969/announce
                                  udp://denis.stalker.h3q.com:6969/announce
                                  http://www.sumotracker.com/announce
                                  trackers identify location of each client either uploading or downloading a P2P file associated with a torrent.It notifies client of P2P file location.
                                  5.Press "create and save" and give it location where you want your torrent file to be saved.
                                  Now you can upload the torrent file that you had just created on different torrent sites or can give it to your friend for sharing.

                                  How to make a DLL file and use it in C#

                                  I am assuming that you know about dll files.So i am going to show you a simple way by which you can make a dll file and can use it.There are many other ways also but this is the simplest.

                                  1.Open new project and select "class library", and choose location where you want to save it.
                                  2.Now create a simple function in class1 as shown below.You can add classes and functions as much as you need but for simplicity i am just writing 1 function "add" which add two numbers and returns the result.
                                  3.Now Build Solution from menu bar
                                  4.Your DLL file is ready and it will be in the debug folder of the project as shown below
                                  the dll file that you have just created can be copied and pasted anywhere and can be used by number of programs.
                                  5.Now create new windows application in C#
                                  6.Build the windows form according to your need, i am just adding a button to the form
                                  7.Now add reference off the DLL file that you have created.
                                  8.We will use class and namespace of the dll file we had created
                                  9.Double click on the button to create event handler and write the code as shown in templates below.
                                  10.Now run the program and output will be according to the parameters that yiu passed to add function in your dll file.i passed 1 & 2 so output should be 3 :P
                                  I hope this will help you :P

                                  Future PC

                                  Google Squared

                                  Google Labs has released "Google Squared", which according to the search giant, "constructs a table of facts about any search category you specify". I used it and had tested it with random searches, some searches produce better results than others. I think this is Google’s short term answer to WolframAlpha. Google said that this is no perfect yet, so they will definitely improve this. In this approach they put results in a square or table format of a category or topic you specify. You can also track the links by which the data is putted in square. You can use Google squared by typing google.com/squared. Try it yourself and also let me know that what you think about it :P

                                  Future!!

                                  Reality




                                  I am uploading the pictures of minister of information Qamar uz Zaman Kaira, who on a recent visit to USA was indulged in shameful and dismal activities, let me inform you that it was the time when Pakistan was at war and there were more than 2 million internally displaced people (IDP’s) who were homeless and have to stay in tents in this unbearable hot weather. And soldiers of Pakistan were being martyred and they were sacrificing their lives for this country. But our politicians and especially the Government of Pakistan (zardari and his party) was busy in foreign trips and were begging to other countries for help. So with so called help they can rent expensive limousine for their ministers and can arrange dance parties etc (the cost of renting this limousine is $500 per hour) as our Government is much busy nowadays in running this pathetic administration and they want to relax on people’s money. These pictures are proof for you, you can judge what these bastards are upto!!

                                  Reading in dim light

                                  It is still believed by most of the people that reading in dim light ruins your eyesight and can make you blind. Parents use to say to their children that don’t read in the dark or in dim light it will affect your eyesight. Even doctors are not reluctant about it, most of them also say that don’t read in dim or murky light. But it is a myth or I must say a medical myth that everyone believes even doctors that reading in dark light will damage eyesight and can lead to blindness. A study is published in British Medical Journal, that it is a myth which even doctors believe. According to the study it has very little scientific backing that if you read in dark or dim light it will affect your eyesight, the tests only prove that when you read in dark or unsatisfactory light conditions there is a temporary strain on the eyes but it rapidly goes away when you return to bright light. So if you love reading and there is no light or dim light then don’t worry you will not get blind or any bad affect on your eyes. If it was true that bad light conditions affect eyesight than people in earlier times would have been blind, as there were only candles or oil lamps in which they can read and write.