Monday, September 26, 2011

Abdus Salam


Mohammad Abdus SalamNISPk [2] (Urduمحمد عبد السلام) (January 29, 1926– November 21, 1996)[3] was a Pakistani theoretical physicist and Nobel laureate in Physics for his work on the electroweak unification of the electromagnetic and weak forces. Salam, Sheldon Glashow and Steven Weinberg shared the 1979 Nobel prize for this discovery.[4] Salam holds the distinction of being the first Pakistani and the first Muslim Nobel Laureate to receive the prize in the sciences.
Salam was a science advisor to the Government of Pakistan from 1960 till 1974, a position from which he played a major and influential role in Pakistan's science infrastructure. Salam was responsible for not only major development and contribution in theoretical and particle physics, but as well as promoting scientific research at maximum level in his country.[5] Salam was the founding director of Space and Upper Atmosphere Research Commission (SUPARCO), and responsible for the establishment of the Theoretical Physics Group (TPG) in Pakistan Atomic Energy Commission (PAEC).[6] As Science Advisor, Salam played an integral role in Pakistan's development on peaceful use of nuclear energy, and directed the research ondevelopment of weapons in 1972.[7][8] In 1974, Salam left Pakistan in protest when Pakistan Parliament controversially passed a parliamentary bill declaring Ahmadiyya Muslim Communityas Non-Muslims. Even after his death, Salam remained one of the most influential scientists in his country. In 1998, following the country's nuclear tests, the Government of Pakistan issued a commemorative stamp, as a part of "Scientists of Pakistan", to honour the services of Salam.[9]
Salam's major and notable achievements include the Pati-Salam model, Magnetic photon, Vector mesonGrand Unified Theory, work on supersymmetry and, most importantly, electroweak theory, for which he was awarded the most prestigious award in Physics — the Nobel Prize.[4] Salam made a major contribution in Quantum Field Theory and advancement of Mathematics at the Imperial College. With his student, Riazuddin, Salam made important contributions to the modern theory on neutrinos, neutron stars and black holes, as well as the work on modernizing the quantum mechanics and quantum field theory. As a teacher and science promoter, Salam is remembered as a founder and scientific father of mathematical and theoretical physics in Pakistan while his stay as Science advisor.[5][10] Salam heavily contributed to the rise of Pakistani physics to the Physics community in the world.[11][12] Even until his death, Salam continued to contribute in physics and tirelessly advocated for the development of science in third world countries.

20 of the world's most iconic skyscrapers


The higher the buildings, the lower the morals," said Noël Coward.
We don't entirely agree.
In fact, we feel far too much is made of a skyscraper's height, when there's so much more to reflect on. 
With the help of A. Eugene Kohn, founder and chairman of Kohn Pedersen Fox Associates (KPF), one of the world's largest architectural firms, and Michael Greene, KPF Principal, here are 20 skyscrapers that have come to define the mood and character of their cities, and, in some cases, the world. 
Click on the graphic below to jump to individual images. 


India: World's Largest Milk Producer


Countries199819971996
India747168
United States717170
Russian Federation333436
Pakistan222120
Brazil222119
Ukraine141516
Poland121211
New Zealand121110
Australia1099
EC125125125
World (includes others)557549542

Most Corrupt Countries Or Nations Rankings 2010 2011 Of The World


No.FlagsCountryScoreLocation
1.
Somalia
1.1Africa
2.
Myanmar1.4Asia
3.
Afghanistan1.4Asia
4.
Iraq1.5Middle East
5.
Uzbekistan1.6Central Asia
6.
Turkmenistan1.6Central Asia
7.
Sudan1.6Africa
8.
Chad1.7Africa
9.
Burundi1.8Africa
10.
Equatorial Guinea1.9Africa

Monday, September 19, 2011

Lt. Col. MS Dhoni


Things may not be going swimmingly for India captain MS Dhoni on the winless tour of England but that hasn’t stopped the awards from rolling in. The latest comes from no less than the President of India, who has made Dhoni an honorary lieutenant-colonel of the Territorial Army, a voluntary unit of the armed forces. Last month, he was made an honorary Doctor of Letters by the De Montfort University in the United Kingdom for his sporting achievements, and earlier this week he won the ICC Spirit of Cricket Award for his decision to recall Ian Bell after his controversial run-out during the Trent Bridge Test.
The citation says Dhoni and Abhinav Bindra, a gold medallist in shooting at the Beijing Olympics, were honoured “for their outstanding contribution in the field of cricket and shooting respectively, and their commitment to the Army on various occasions.” Dhoni joins the ranks of Kapil Dev and Sachin Tendulkar as honorary military officers. Now if only he can marshal his forces into a winning unit once again.

Sunday, September 18, 2011

Windows 8


Windows 8 is the codename of the next version of Microsoft Windows, a family of operating systems produced by Microsoft for use on personal computers, including home and businessdesktopslaptopsnetbookstablet PCsservers, and media center PCs.[1] It adds support for ARM microprocessors in addition to the traditional x86 microprocessors from Intel andAMD. Its user interface has been changed to make it better suited for touchscreen input in addition to the traditional mouse and keyboard input.
Microsoft has not yet announced a ship date for Windows 8, although some major media outlets speculate it might be available in late 2012.[2

Friday, September 16, 2011

gem install MAMP, no such file to load -- mysql (MissingSourceFile)


sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-config=/Applications/MAMP/Library/bin/mysql_config

Thursday, September 15, 2011

Error: #1045 - Access denied for user 'root'@'localhost' (using password: NO)

Did you ever use phpmyadmin or mysql console to setup password?

If yes, go to step 6 and follow on

If no, open the file config.inc.php in folder C:/wamp/apps/phpmyadmin2.10.1 and find this line:

$cfg['Servers'][$i]['password'] = 'TakeOutAnythingInThisSingleQuote'; // MySQL password (only needed 

What Is Dengue Fever?

Dengue fever, also known as breakbone fever, is a mosquito-borne infection that causes a severe flu-like illness. There are four different viruses that can cause denguefever, all of which spread by a certain type of mosquito. Dengue can vary from mild to severe; the more severe forms include dengue shock syndrome and dengue hemorrhagic fever (DHF). Patients who develop the more serious forms of dengue fever usually need to be hospitalized.

There are currently no vaccines for Dengue fever. The best way to prevent the disease is to avoid being bitten by mosquitoes altogether. Although there is no certain treatment for Dengue, it can be treated as long as it is caught before developing into dengue shock syndrome or dengue hemorrhagic fever.

There are up to 100 million cases of dengue fever worldwide every year; the most common occurrences are in urban parts of subtropical and tropical areas, such as Central and South America, parts of Africa, parts of Asia, the Caribbean and the Pacific . Dengue is just as prevalent in urban districts of its range as in rural areas (unlike malaria).

According to the World Health Organization (WHO):

  • Approximately 2.5 billion people, or two-fifths of the world's population, are now at risk from dengue.
  • The disease is now endemic in over 100 countries.
  • Dengue hemorrhagic fever is a leading cause of serious illness and death among children in some Asian countries.
  • In 2007, there were over 890,000 reported cases of dengue in the Americas, of which 26,000 cases were DHF.
  • Dengue infection rates among people who have not been previously exposed to the virus are commonly 40% to 50% during epidemics, but may sometimes reach 80% to 90%.
  • Approximately half-a-million people with DHF are hospitalized each year, of whom many are children. About 2.5% of these patients die.
  • DHF fatality reads may exceed 20% if untreated. If there is access to medical care with health care professionals trained in treating DHF, the death rate may be less than 1%.

Wednesday, September 14, 2011

ffmpeg conversion from MOV to WMV

here some very simple demo command for transcoding a MOV to WMV:
> ffmpeg -i c:\input.mov -f asf -vcodec wmv2 -acodec wmav2 c:\output.wmv

Saturday, September 10, 2011

Let's rename the Gaddafi Stadium


Life is full of surprises. Who’d have thought that naming a stadium after a brutal dictator would eventually turn out to be a bit of a PR problem? After all, no one complained when Lahore City Council unveiled the Genghis Khan Equestrian Centre or when they inaugurated the Emperor Nero Leisure Centre. But with the man himself currently hiding somewhere in North Africa, disguised as a cactus, it’s probably time to think about a new name for the Gaddafi Stadium.
The Imran Khan Stadium has a nice ring to it. Or perhaps a senior cricket administrator might be persuaded to retire in exchange for having a venue named after him: the Butt Bowl anyone? Still, I think we can do even better. I am starting a petition to persuade the PCB to rename the place after Pakistan’s greatest cricket export. No, not the doosra. I’m talking about the Jhang Justice himself, the unflappable arbiter with the immaculate coiffure and the steely gaze. Ladies and gentleman, I give you: the Aleem Dar Arena. Let’s make it happen.

Thursday, September 8, 2011

Russian jet crash kills 43, many top hockey stars


A private Russian jet carrying a top ice hockey team slammed into a riverbank moments after takeoff Wednesday, killing at least 43 people in one of the worst plane crashes ever involving a sports team.
Both Russia and the world of hockey were left stunned by the deaths of so many international stars in one catastrophic event. Two other people on board were critically injured.
The Russian Emergency Situations Ministry said the Yak-42 plane crashed into the shores of the Volga River immediately after leaving the airport near the western city of Yaroslavl, 150 miles (240 kilometers) northeast of Moscow. The weather was sunny and clear at the time. Russian media said the plane struggled to gain altitude and then crashed into a signal tower, shattering into pieces.
Russian television showed a flaming fragment of the plane in the river as divers worked feverishly to recover bodies.
The plane was carrying the Lokomotiv ice hockey team from Yaroslavl to Minsk, the capital of Belarus, where the team was to play Thursday against Dinamo Minsk in the opening game of the season for the Kontinental Hockey League. The ministry said it had 45 people on board, including 37 passengers and eight crew.
The Emergency Ministry said Czech players Josef Vasicek, Karel Rachunek and Jan Marek, Swedish goalie Stefan Liv, Canadian coach Brad McCrimmon, Latvian defenseman Karlis Skrastins and defenseman Ruslan Salehi of Belarus were among those killed. Slovakian national team captain Pavol Demitra, who played in the NHL for the St. Louis Blues and the Vancouver Canucks, was also among the dead, officials said.
"Though it occurred thousands of miles away from our home arenas, this tragedy represents a catastrophic loss to the hockey world -- including the NHL family, which lost so many fathers, sons, teammates and friends who at one time excelled in our League," NHL Commissioner Gary Bettman said in a statement.
Russian NHL star Alex Ovechkin tweeted: "I'm in shock!!!!!R.I.P ..."
Officials said Russian player Alexander Galimov survived the crash along with a crewmember.
"Their state of health is very grave. But there is still some hope," said Alexander Degyatryov, chief doctor at Yaroslavl's Solovyov Hospital.
The crash comes on top of an already mournful year for the NHL in which three of the league's enforcers were found dead: Derek Boogaard, Rick Rypien and recently retired Wade Belak.

A Simple socket client in ruby Programming Language


require 'socket'      # Sockets are in standard library

hostname = 'localhost'
port = 2000

s = TCPSocket.open(host, port)

while line = s.gets   # Read lines from the socket
  puts line.chop      # And print with platform line terminator
end
s.close               # Close the socket when done

Sending XML over TCP/IP

Dim client As New TcpClient("127.0.0.1", 10000)
Dim ns As NetworkStream = client.GetStream

Dim xDoc As XmlDocument
xDoc = New XmlDocument
xDoc.Load("C:\Inetpub\wwwroot\Sockets\Request01.xm l")

If ns.CanRead And ns.CanWrite Then
Dim sendBytes As Byte() = Encoding.UTF8.GetBytes(xDoc.OuterXml)
ns.Write(sendBytes, 0, sendBytes.Length)

Dim responseBytes(client.ReceiveBufferSize) As Byte
ns.Read(responseBytes, 0, CInt(client.ReceiveBufferSize))

Dim xResponse As XmlDocument
xResponse = New XmlDocument
xResponse.LoadXml(Encoding.UTF8.GetString(response Bytes))

Monday, September 5, 2011

What is Dropbox

Dropbox is a free service that lets you bring all your photos, docs, and videos anywhere. This means that any file you save to your Dropbox will automatically save to all your computersphonesand even the Dropbox website. Dropbox also makes it super easy to share with others, whether you're a student or professional, parent or grandparent. Even if you accidentally spill a latte on your laptop, have no fear! You can relax knowing that Dropbox always has you covered, and none of your stuff will ever be lost.


Dropbox website