Narendra Dhami

My Site

Popular Languages of 2009

Posted by Narendra Dhami on January 12, 2010

The TIOBE index for 2009 says that Google’s new Go programming language experienced more growth in popularity than any other language in 2009. The growth is quite remarkable given that the language became available late in the year. Is it all just hype? The Google brand certainly carries a lot of power and marketing capability with it. Based on TIOBE’s system, Go and Objective-C had the biggest gains in 2009 with Java taking a slight hit, but remaining at the top. TIOBE calculates its index based on search engine hits.

Go – Because of it’s remarkable growth, Go was named "TIOBE’s Programming Language of the Year." Go has been compared syntactically to Pascal, Python, and C. Although Go is a new language with its own share of critics, many people are interested in its concurrency capabilities and fast compilation. Erlang is another concurrent programming language that grew this year from 29 to 24. One thing’s for sure, Google’s Go is getting a lot of attention.

Objective-C – iPhone app development is obviously driving the new growth in Objective-C programming. The language made a huge jump from being ranked 37th to the number 12 spot. Objective-C was just 0.01% behind Go in growth this year, but Objective-C had the entire year to gain popularity and Go only had two months.

Java – Java has remained at the top of TIOBE’s index for the past decade with C taking the top rank for a short period in 2004 and 2005 (this might have been due to a Google cleanup). C could take the top spot again if JVM languages continue to steal interest from pure Java. The two languages are less than 2% away from each other. C and Java have kept a pretty good lead (6% this year) over the third ranked language.

PHP – PHP was the only language in the top ten that made a significant jump. It passed C++ and VB to take the number three spot for the first time.

Ruby – Finally made it to the top ten. It took the place of Delphi.

Other notable data:

  • JavaFX script – New in 2009. Made it to the 27th position already.
  • Scala – Jumped from from 45 to 25 in 2009. By comparison, it took Ruby 5 years to move 10 spaces.
  • C# and ActionScript – Scored all time highs in 2009

Object-Oriented Languages still have the majority of the index share with 54.6% while Procedural Languages (41.5%) made a 1.4% jump thanks to Go. Statically Typed Languages and Dynamically Typed Languages are about a 60/40 split in favor of Statically Typed.

The definition of the TIOBE index can be viewed here

Originally from


Posted in General | Leave a Comment »

PHP Charset FAQ

Posted by Narendra Dhami on December 16, 2009, A very good FAQ about charset.

Posted in PHP | Leave a Comment »

Most Popular Photography Hacks of 2009

Posted by Narendra Dhami on December 14, 2009

Whether making your own lens hood to create custom bokeh, breathing like a sniper to get a blur-free photo, or angling your body to look the best in pictures, we shared some great photography hacks this year.

Software and Photoshop tricks are great, but they’re a poor substitution for doing things in-camera. Over the last year we shared a variety of hacks for taking better photos, looking better in photos, and ways to get professional results without spending your rent money on camera accessories.

Create Your Own Bokeh for Beautiful Photo Effects
Position Your Tongue Properly to Look Good in Photos
Take Better Pictures by Treating Your Still Camera Like It’s Video
Avoid Mediocre Portraits with These Tricks
Set Up a High Speed Photography Studio in Your Garage
Create Abstract Light Art by Snapping a Camera-Toss Photo
Be A Better Photographer On Vacation
Take Better Self-Portraits
DIY Tennis Ball Photography Stabilization Unit
Shoot Better Nighttime Pictures
Be More Photogenic by Forgetting About the Camera
Breathe Like a Sniper to Take Better Photos in Low Light
Create a Basic Ring Flash
Use Composition Rules to Take Better Photos
DIY Beauty Dish Enhances Your Portraits
Create Stunning High Dynamic Range (HDR) Photos
Create Studio Quality Photos Using Natural Light
Make a DIY Photography Light Box with K’Nex
Take Great Panoramic Pictures with Any Camera
Take Better Pictures by Studying Studio Layouts
DIY Tilt-Shift Photography Lens
Take Awesome Sunset Photographs
Create a Flash Diffuser Using An Empty Cigarette Packet
Make a DIY Macro Lens from Old Binoculars

Original from

Posted in General | Leave a Comment »

The Top 10 Worst Effects of Global Warming

Posted by Narendra Dhami on December 14, 2009

Global warming is the long-term, cumulative effect that greenhouse gases, primarily carbon dioxide and methane, have on Earth’s temperature when they build up in the atmosphere and trap the sun’s heat. It’s also a hotly debated topic. Some wonder if it’s really happening and, if it’s real, is it the fault of human actions, natural causes or both?

10. Rising Sea Level
9. Shrinking Glaciers
8. Heat Waves
7. Storms and Floods
6. Drought
5. Disease
4. Economic Consequences
3. Conflicts and War
2. Loss of Biodiversity
1. Destruction of Ecosystems

For detail visit the link.

Posted in General | Leave a Comment »

Most Popular How-To Features of 2009

Posted by Narendra Dhami on December 11, 2009

How to Do Everything with Windows 7

Windows 7 was a huge part of 2009, and the Lifehacker crowd was eager to try it out early on—but not necessarily ready to ditch XP or Vista outright to do so. This guide got you up and running with a Windows 7 and Vista/XP dual-boot system. Once you got it up and running, our complete guide to Windows 7 got you started with the most important parts of tackling your new operating system. We toured Windows 7’s best, most underhyped features, schooled you on its impressive list of cool new shortcuts, and detailed how to pull a little XP mode in Windows 7. It was a pretty good year for Windows users.

How to Build a Hackintosh with Snow Leopard, Start to Finish

The Apple tax is always a little higher than a lot of people are willing to pay, so this year’s guide to building a Hackintosh with Snow Leopard, start to finish, followed up by the simplified guide to install Snow Leopard on your Hackintosh PC, no hacking required made a pretty big splash.

How to Crack a Wi-Fi Network’s WEP Password

Whether you’re verifying the security of your own network or up to something a little more dubious in nature, this guide to cracking a Wi-Fi network’s WEP password with BackTrack—followed by this WEP cracking redux post that took WEP cracking out of the command line realm proved popular.

Google Wave First Look

Google Wave made a serious splash this year, and while a lot of people still aren’t sure how to best put it to use, there’s no doubt that there’s a lot of interesting technology going on there. We did our best to help you understand how you might use it yourself, starting with our Google Wave first look, moving onto a few best use cases for Wave, and rounding it out with a guide to Wave keyboard shortcuts, filters, searches, and more with our Google Wave 101 guide.

Clean Up and Revive Your Bloated, Sluggish Mac

Feel like your Mac isn’t the speedy little box it used to be? Our guide to cleaning up and reviving your bloated, sluggish Mac will get your machine back to running like a champ. (PC users, we’ve got you covered here.)

Prep Your Mac for Snow Leopard

Windows users had the Windows 7 release, Mac users had the Snow Leopard upgrade, and this guide detailed how to prep your Mac for Snow Leopard for a painless transition.

Build a Silent, Standalone XBMC Media Center On the Cheap

The future of home entertainment isn’t in your cable box as you know it today—it’s in powerful home theater PCs. There was a time when you’d need a big, noisy box next to your computer if you wanted to impress with your HTPC, but this guide to building a silent, standalone XBMC media center on the cheap turns an inexpensive, tiny nettop computer into a standalone XBMC set-top box.

The First-Timer’s Guide to Building a Computer from Scratch

Ever been interested in building your own PC from the bottom up but always been a little scared of rolling up your sleeves with computer hardware? Building a computer from scratch is easier than you think, and it’s also one of the most satisfying projects a tech enthusiast can tackle.

Programmer 101: Teach Yourself How to Code

Whether you just want to do some simple scripting or you want to start down the road to an entirely new skill set, our 101 guide for teaching yourself how to code is a great place to get started.

How to Fix Your Relatives’ Terrible Computer

If you didn’t already fix every one of your relatives’ computers over Thanksgiving, don’t worry—the holidays are quickly approaching, and you know your the resident IT person for your friends and family. Our guide to fixing your relatives’ terrible computer can help.Photo by Justin Marty.

Cut the Cable For Good with Boxee and Apple TV

If our above guide to building a silent, standalone XBMC media center wasn’t quite your bag of chips, consider our step-by-step guide to cutting the cable for good with Boxee and Apple TV. You remember Boxee, right? They’re the killer media center folks who had to fight it out with Hulu all year, and they just updated with an impressive new look and feel. Photo by philcampbell.

Six Ways You Should Be Using Twitter (that Don’t Involve Breakfast)

Twitter may be taking the world by storm, but it’s often- and much-maligned by many of our readers. (47 percent of you say you’d never even use it.) Say what you will about tweeting, but if you’re not using Twitter for at least search, we think you’re missing out.

Properly Erase Your Physical Media

A whopping 40% of the used hard drives on eBay contain easily recoverable personal data. This guide details how to properly erase your physical media when you get rid of anything containing a hard drive so your personal data doesn’t end up in someone else’s hands. Photo by Robert Scoble.

The Definitive Guide to Finding Free Wi-Fi

Spend a lot of time on the road and out of the comfort of your home or office? Our definitive guide to finding free Wi-Fi can help you find some fast internet while you’re out of your home territory. Photo by °Florian.

The Beginner’s Guide to Creating Virtual Machines with VirtualBox

We play around a lot with various pieces of new software and even entire operating systems around these parts. Play it safe or just play around with our beginner’s guide to creating virtual machines with VirtualBox, a free, open-source virtualization tool.

Use Firefox to Fix the Web’s Biggest Annoyances

The web is an amazing place. It can also be an extremely annoying place. Skip the annoying flashing ads, turn off auto-playing movies and sounds, skip the auto-refreshing pages, and more with our guide to fixing the web’s biggest annoyances with Firefox.

How to Build a Web Site from Scratch with No Experience

Ever wanted to try your hand at building a web site you’ve been dreaming about—but have no experience with web development? We’ve been there (I was proud to release earlier this year), and this guide for building a web site from scratch with no experience will point you in the right direction.

You’re Backing Up Your Data the Wrong Way

Your data is the most important thing you’ve got on your computer—in fact, it’s everything. If you aren’t backing it up correctly, one bad move and all that information—and all those memories—goes the way of the dodo. If you’re not sure if you’re backing up the right way, this how-to will steer you in the right direction.

Ten Must-Have Gmail Filters Available for Download

If your inbox is overflowing and you feel like you’ve lost control, these 10 must-have Gmail filters will get you started slicing and dicing your inbox into a more manageable place.

An Exhaustive Guide to Saving Your Smartphone’s Battery

If you spend a lot of time outside your home or office, your smartphone is likely your lifeline to the rest of the world. Problem is, your pesky battery can die pretty quickly if you’re not mindful of how you’re using it. Follow our exhaustive guide to saving your smartphone’s battery and you may be able to squeeze a few more hours out of that gadget of yours. Photo by [177].

Make Free VoIP Calls from Google Voice

Soon free-calling functionality may be built into Google Voice (now that Google’s bought Gizmo5), but in the meantime, here’s how you can make free phone calls using Google Voice.

Hack Your Wii for Homebrew without Twilight Princess

If you’ve got a Wii and want to undertake a little homebrew fun, the Twilight Princess hack used to be the only way to go. Not so anymore, and our guide to hacking your Wii for homebrew without Twilight Princess walks you through how to go from zero to homebrew step by step.

Originally from

Posted in General | Leave a Comment »

Most Popular Top 10s of 2009

Posted by Narendra Dhami on December 11, 2009

Following are the top 10s to 2009:

1. Top 10 Tiny & Awesome Windows Utilities
2. Top 10 Must-Have Firefox Extensions, 2009 Edition
3. Top 10 Windows 7 Boosters
4. Top 10 Firefox 3.5 Features
5. Top 10 Underhyped Webapps, 2009 Edition
6. Top 10 Tricks MacGyver Would Be Proud Of
7. Top 10 Ubuntu Downloads
8. Top 10 Battery Hacks, Tips, And Tricks
9. Top 10 Cheap or Free Home Theater Upgrades
10. Top 10 Skills to Master Your Grill

Those 10 may have been the most popular, but if you’re still eager for some more listicle goodies, here’s a quick overview of the next ten most popular.

  • 11. Top 10 Tools for a Free Online Education
    “It’s easy to forget these days that the internet started out as a place for academics and researchers to trade data and knowledge. Recapture the web’s brain-expanding potential with these free resources for educating yourself online.”
  • 12. Top 10 Apps that Boost Your Media Center
    “Streaming video, digital DVD backups, DVR recording-it’s all possible from your TV-connected media center, and you don’t need a system administrator to pull it off. These 10 apps make filling and controlling your media center PC even easier.”
  • 13. Top 10 Home Office Hacks
    “Whatever kind of work you do at home, your office is one place you want to spend the time to make comfortable and convenient. Take 10 of our tips on organizing, fixing, and streamlining that space.”
  • 14. Top 10 Tricks for Creatively Hiding Your Stuff – Security – Lifehacker
    “Every kid has a creative stash for secret stuff, but that useful enthusiasm doesn’t have to die off just because we’ve traded treehouses for desks. See how you can hide money, files, workspaces, and more in today’s Top 10.”
  • 15. Top 10 Computer Hardware Fixes and Upgrades – Hardware – Lifehacker
    “If your desktop or laptop parts have died or seen better days, you’ve got a friend. All of your Lifehacker editors-and many helpful net denizens-have upgraded or repaired faulty systems, and we’ve rounded up some of their most helpful tutorials.”
  • 16. Top 10 Productivity Basics Explained

    “There’s a core set of habits and techniques that filter and color a lot of what we write about at Lifehacker, but we rarely step back to explain them for newcomers. Let’s get back to basics with 10 productivity tactics.”

  • 17. Top 10 Tools for Your Blog or Web Site
    “Having your own hosted web domain has never been cheaper, or easier, with the vast array of free resources out there. Here are our ten favorite tools to help anyone launch and maintain their internet presence.”
  • 18. Top 10 Tips and Tricks for Better Coffee
    Coffee doesn’t always make work better, but you can definitely work to get better coffee. From four-cup hotel machines to French presses, from home-roasted beans to decorative foam-we’ve got a wealth of tips for enjoying a better cup.
  • 19. Top 10 Tricks for Making Your Playlists Rock
    “If music is part of your everyday work routine, workout, or commute, stuffing your player full of tunes and hitting shuffle just won’t cut it. Scan these 10 tips for improving and expanding your music playlists.”
  • 20. Top 10 Outlook Boosters
    “Outlook is such a fixture of office and computer life, its potential as a central life-organizing inbox is easily taken for granted. Empower your Outlook with these add-ons, link-ups, and data management techniques.”

More detail information, please visit

Posted in General | Leave a Comment »

Top 20+ MySQL Best Practices

Posted by Narendra Dhami on November 28, 2009

Database operations often tend to be the main bottleneck for most web applications today. It’s not only the DBA’s (database administrators) that have to worry about these performance issues. We as programmers need to do our part by structuring tables properly, writing optimized queries and better code. Here are some MySQL optimization techniques for programmers. More …

Posted in MySQL | Leave a Comment »

61 Free Apps We’re Most Thankful For

Posted by Narendra Dhami on November 27, 2009

61 Free Desktop Applications, Webapps, and Tools We’re Most Thankful For

  1. Firefox (see also: Power User’s Guide to Firefox 3, Top 10 Firefox 3.5 Features)
  2. VLC (see also: Master Your Digital Media with VLC, VLC Hits 1.0 with

    Better Playback and File Support)

  3. CCleaner (see also: Five Best Windows Maintenance Tools)
  4. Dropbox (see also: Use Dropbox for More Than Just File Syncing, Sync Files and Folders Outside Your My Dropbox Folder)
  5. 7-Zip (see also: Five Best

    File Compression Tools)

  6. (see also: 3.1’s Usability Tweaks, Screenshots Preview a Ribbon-Like Toolbar)
  7. Google Chrome (see also: The Power User’s Guide to Google Chrome, 2009 Edition)
  8. µTorrent (see also: Tweak uTorrent’s Settings for Faster Downloads, Five Best BitTorrent


  9. Notepad++ (see also: Five Best Text Editors, AutoSave Adds

    Reassurance to Notepad++ Editing)

  10. Gmail (see also: Our full Gmail coverage)
  11. GIMP (see also: Gimp 2.7 Beta Improves Text Editing, Streamlines Saving)
  12. Paint.NET (see also: Paint.NET Releases Big Update, Still a Killer Photoshop Alternative, Paint.NET Plugin Lets You Open Photoshop Files)
  13. Microsoft Security Essentials (see also: Microsoft Security Essentials Free Antivirus App Leaves

    Beta, Stop Paying for Windows

    Security; Microsoft’s Security Tools Are Good Enough)

  14. Revo Uninstaller (see also: Lifehacker Pack 2009: Our List of Essential Free Windows Downloads)
  15. Evernote (see also: Evernote 3.5 Beta Brings Tons of Tiny Fixes to Windows, Expand Your Brain with Evernote)
  16. Thunderbird (see also: Thunderbird 3 Release Candidate Available for Download)
  17. Audacity (see also: Geek to Live: Make a ringtone from any MP3)
  18. ImgBurn (see also: Turn Your PC into a DVD Ripping Monster, Five Best CD and DVD

    Burning Tools)

  19. Picasa (see also: Picasa 3.5 Organizes Your Photos with Facial Recognition)
  20. Skype (see also: Our full Skype coverage)
  21. Pidgin (see also: Ten Must-Have Plug-ins to Power Up Pidgin, Five Best Instant


  22. Ubuntu (see also: First Look at Ubuntu 9.10 Karmic Koala, Dual-Boot Windows 7 and Ubuntu in Perfect Harmony)
  23. iTunes (see also: iTunes 9 Improves Syncing, Network Sharing, More)
  24. foobar2000 (see also: Screenshot Tour: The beautiful and varied world of foobar2000, Hack Attack: Roll your own killer audio player with foobar2000)
  25. Foxit Reader (see also: Five Best PDF Readers, Lifehacker

    Pack 2009: Our List of Essential Free Windows Downloads)

  26. FileZilla (see also: Five Best FTP

    Clients, Build a Home FTP Server with FileZilla)

  27. VirtualBox (see also: The Beginner’s Guide to Creating Virtual Machines with VirtualBox)
  28. TrueCrypt (see also: Geek to Live: Encrypt your data, Five Best Portable Applications)
  29. Avast! (see also: Five Best

    Antivirus Applications)

  30. Defraggler (see also: Five Best Disk Defragmenters)
  31. KeePass (see also: Eight Best KeePass Plug-Ins to Master Your Passwords, How to Use Dropbox as the Ultimate Password Syncer)
  32. Opera (see also: Opera 10.10 with Unite Media Server Released)
  33. AVG (see also: AVG 9 Free Now Available for Download)
  34. Digsby (see also: Five

    Best Instant Messengers, Digsby Sees the Light,

    Removes (Some) Bundled Crapware)

  35. Google Reader (see also: Our full

    Google Reader coverage)

  36. Winamp (see also: Win7shell Adds Windows 7 Jump List Support to Winamp)
  37. Google Earth (see also: Google Earth 5.1 Speeds Up Your World Browsing)
  38. TeraCopy (see also: Five Best Alternative File Copiers)
  39. Launchy (see also: Our full Launchy coverage)
  40. Transmission (see also: Lifehacker Pack 2009: Our List of Essential Free Mac Downloads)
  41. Eclipse IDE
  42. SpyBot Search & Destroy (see also: Five Best Malware Removal Tools)
  43. Adium (see also: Adium Updates with Security Fixes, Better Facebook Integration)
  44. PuTTY (see also: Add Tabs to PuTTY with PuTTY Connection Manager)
  45. Songbird (see also: Songbird 1.0 Release Official, Fixes Bugs, Plays iTunes Purchases, Killer Add-ons Make Songbird So Much Better)
  46. Sumatra PDF (see also: Sumatra 1.0 is a Blazing Fast Replacement for Adobe


  47. XBMC (see also: Build a Silent, Standalone XBMC Media Center On the Cheap, Customize XBMC with These Five Awesome Skins, Turbo Charge Your New XBMC Installation)
  48. Blender (see also: Learn

    Blender with free e-book)

  49. CDBurnerXP (see also: Five Best CD and DVD Burning Tools)
  50. Everything (see also: Everything Finds Windows Files As You Type, Top 10 Tiny &

    Awesome Windows Utilities)

  51. HandBrake (see also: HandBrake Updates to 0.9.4 with Over 1,000 Changes, 64-Bit Support)
  52. Rainmeter (see also: Rainmeter 1.0 Brings the Enigma Desktop to Everyone)
  53. AutoHotkey (see also: Turn Any Action into a Keyboard Shortcut, Hack Attack: Knock down repetitive email with AutoHotKey)
  54. Google Calendar (see also: Our full Google Calendar coverage)
  55. MediaMonkey (see also: MediaMonkey 3.2 Syncs with More Devices, Adds Auto Folder Watching)
  56. Quicksilver (see also: A beginner’s guide to Quicksilver)
  57. WinSCP
  58. Google Voice (see also: Make Unlimited Free Calls on Your Cellphone with Google Voice, How to Ease Your Transition to Google Voice)
  59. Boxee (see also: Build a Cheap But Powerful Boxee Media Center, Boxee to Launch Beta with Loads of New Features)
  60. AdBlock Plus (see also: Top 10 Must-Have Firefox Extensions, 2009 Edition)
  61. Media Player Classic (see also: Five Best Video Players)

Posted in Utilities | Leave a Comment »

What every developer should know about character encoding

Posted by Narendra Dhami on November 17, 2009

Good Article

Posted in Web | Leave a Comment »

Analyzing Queries for Speed with EXPLAIN

Posted by Narendra Dhami on November 12, 2009

When you are trying to optimize your queries to run quickly and efficiently, you may encounter queries that really should run faster. That’s where EXPLAIN comes in handy. This article shows you how to use EXPLAIN in query analysis. It is excerpted from chapter 13 of the MySQL Certification Guide, written by Paul Dubois et al. (Sams, 2005; ISBN: 0672328127). More …

Posted in MySQL | Leave a Comment »