17 February, 2010

Why Web Developers Should Switch to Google Chrome

Check out Chrome 4's great new features for developers, such as cross-platform support, awesome web inspector integration, and handy new extensions. It's becoming more and more difficult to deny Chrome the title as the new browser for web developers. If it's not quite there yet, it will be soon!

Howdy y'all. Brian Egan, web cowboy, here. I'm a designer & front end developer working for the University of Nevada, Las Vegas Libraries, where I get to build websites that house fascinating photographs of Mining Boomtowns, Howard Hughes, and more upcoming goodies! You can find me on Twitter or check out more of my work and writing at brianegan.com.

Introduction

With quick load times, a snappy JavaScript engine, solid WebKit foundation, and big-name backing, Google Chrome has been gaining a respectable market share, even surpassing Safari to become the 3rd most popular browser in December. For developers, however, Firefox has been the sweetheart of many due to its ability to run on any operating system and because of its rich offering of web development add-ons, such as Firebug and the Web Developer Toolbar. But it’s important to test JavaScript in all browsers, and having a robust set of tools in each (including Internet Explorer), is precisely what developers need to make the most of their code.
Lucky for us, the Google folks have been working hard to make Chrome cross-platform, integrate WebKit’s fantastic Web Inspector, and add extensions, making Chrome 4 an amazingly useful tool for web development. In this tutorial, I’ll demonstrate some of the features that make Chrome 4 a great addition to the web developer utility belt.

Downloading Chrome 4

As of January 25, Chrome 4 has been officially released as stable for Windows. Mac and Linux users, however, we have to be a bit more brave in order to experience all that Chrome 4 has to offer. Mac users need to download the "dev" version, and Linux users the "beta" version, and it's highly worth it! Check out the following links to get a copy of Chrome for your operating system that supports everything we'll discuss in this article:

Web Inspector (aka Developer Tools)

A screenshot of the Profile Panel of the Chrome Developer Tools
Now let's get into the nitty gritty! In Firefox, Firebug is a godsend for developers, providing a debugging console, HTML & CSS manipulation, JavaScript profiling, and a whole lot of other goodness. The WebKit folks took notice and over the last couple of years have been perfecting a set of tools called the Web Inspector, which offers a similar set of features to Firebug. Within Chrome 4, the Web Inspector is labeled “Developer Tools.”

Accessing the Web Inspector/Developer Tools

A demonstration of how to access the Developer Tools on Google 
Chrome for Mac
In addition to Chrome 4, the Web Inspector has been in action for a while from within previous versions of Chrome and Safari, although it’s a bit hidden. To access the Web Inspector in various browsers:

Safari 4

  • Select “Edit > Preferences” (Windows) or “Safari > Preferences” (Mac)
  • Select the “Advanced” tab
  • Check “Show Develop Menu in menu bar”
  • A new menu item, “Develop,” will appear
  • Select “Develop > Show Web Inspector”

Chrome 3 (Windows only)

  • Select the Wrench
  • Select Developer
  • Select JavaScript Console (the whole range of tools are hidden under this name)

Chrome 4

  • Windows / Linux: Select the Page Icon > Developer > Developer Tools
  • Mac: Select View > Developer > Developer Tools

JavaScript Console

A screenshot of the Console Panel within the Chrome Developer 
Tools
If you haven’t worked with the Firebug or Web Inspector console, then you’re missing out on a great way to help debug JavaScript. The JavaScript console serves several important functions, such as capturing errors and presenting them in a useful format, testing short bits of JavaScript, and as a convenient place to log useful information like variable values and execution times. Practically speaking, I use this tool regularly to evaluate the performance of my programs and to ensure that certain variables are being calculated correctly.

Elements Panel

A screenshot of the ELements Panel within the Chrome Developer 
Tools
In addition to the JavaScript console, it’s always nice to have a tool that allows you to quickly view the HTML and style information of particular elements on the page. The Web Inspector Elements panel gives a tree-structure view of the Document Object Model (DOM), allowing you to drill down into the document to select an item of interest. You can also access the information of a certain object by right clicking on an item within the browser and selecting “Inspect Element.”
Finally, I should note that the Elements panel allows for much more than simple inspection. You can modify and add styles, edit html, and in the latest versions, view event listeners attached to a selected DOM element. These features can all come in very handy when you’re dealing with little quirks that you can’t quite figure out.

Resources

A screenshot of the Resources Panel within the Chrome Developer 
Tools
The last feature I’d like to highlight within the Web Inspector/Developer Tools is the “Resources” tab. If you’ve worked with Firebug’s “Net” tab, then you’ll notice several similarities. Essentially, the Resources tab gives a breakdown of all the information that is exchanged between your browser and the server, from the images to the JavaScript to the document itself. It also shows a ton of handy information, such as:
  • A graph of the time it takes to download each component
  • A graph showing the size of the various components
  • A way to sort the requests by type, e.g. Documents, Stylesheets, Images, etc.
  • Image previews with dimensions, file size, and MIME type displayed below
  • Request and Response Headers
  • XML HTTP Request (XHR) information
An elegant tool that allows for easy inspection of page speed, the Resources tab can aid you in identifying and squashing performance bottlenecks. Give it a try and see where your page is too fat, then slim down your chunky images and code to provide a better experience for your users!

Further Reading

A complete overview of the Web Inspector/Developer Tools could easily be a tutorial on it’s own, but we have more ground to cover! I highly recommend checking out the following resources to learn more:

Extensions

Now, while I’ve always been blown away by the speed of Safari 4 and Chrome as compared to Firefox, they’ve both lacked a critical feature: add-ons. In Chrome 4, that all changes with the addition of “extensions.” You can add functionality to Chrome by downloading and installing extensions or by using the standard tools of the trade: HTML, CSS, and JavaScript, to write your own. Extensions can be downloaded from the Chrome Extensions Repository, and should be fairly simple to install. Already, a number of very compelling extensions have been created which aid web development, from quick validation to resolution testing. Let’s take a look at a few.
        

Speed Tracer

A screenshot of the Speed Tracer extension
A web developer can never really be obsessed enough with performance, and the more tools that identify sluggish performance the better. That’s just where Speed Tracer, a Chrome extension developed by Google, comes into play. Speed Tracer takes the “Resources” panel to the next level by providing a visualization of the time it takes to execute low-level tasks, such as rendering CSS or parsing HTML and JavaScript. I’d highly recommend taking a look at a video demonstration of Speed Tracer put together by the folks at Google to get a better idea of how it can help you improve the performance of your applications.

Pendule

A screenshot of the Pendule extension
Moving from Firefox to Chrome, one extension everyone is going to look for is a replacement of the fantastic Web Developer Toolbar. For those who don’t know, the Web Developer Toolbar deals with the tasks Firebug wasn’t meant to handle, such as quick validation of HTML and CSS, the ability to quickly disable JavaScript or images, and a tool for checking links. Those functions are all handled with style by Pendule, which offers much of the core functionality of the Web Developer Toolbar (not quite all), while offering a few goodies of it’s own, such as a color picker.

Resolution Test

A screenshot of the Resolution Test extension
Web Developers often need to ensure that their designs work at a variety of resolutions. Resolution Test allows developers to efficiently resize their browser window to a number of common resolutions for quick and easy testing. The latest version even allows you to open multiple windows at different resolutions with only a couple of clicks. Resolution Test is fantastic for making sure your target audience is seeing the page you want them to see.

Webpage ScreenShot

A screenshot of the Webpage ScreenShot extension
There are occasions when its necessary not only to grab a screenshot of the current visible portion of a website, but a screenshot of the whole page. For example, you may want to print a full page for peer critical review or to demonstrate in your portfolio. I formerly used a Desktop tool for this, but now Webpage ScreenShot does a nice job of capturing full-page screenshots in a few clicks.

Chrome Sniffer

A screenshot of the Chrome Sniffer extension
Do you ever stumble upon a fantastic page and wonder, “what are they using to build this?” I do, and often find myself digging through the source code trying to figure out who the man behind the curtain is. While it is a useful training exercise, and a necessary one if you really want to know what’s going on, Chrome Sniffer can usually give you a snapshot of which JavaScript and PHP frameworks are in use for a particular page. For example, navigate to NetTuts and Chrome Sniffer informs us that it’s run on Wordpress using Google Analytics and jQuery.

Conclusion

The future of web development continues to look brighter and brighter! While only a few years ago we had a limited set of tools for debugging JavaScript, tinkering with CSS, and viewing HTML, today we have a variety of powerful options. Now that Google Chrome has become cross platform, fully integrated the WebKit Web Inspector, and added extensions, it is a versatile tool for helping developers improve their own pages. I encourage all of you to download a copy for yourself and give it a shot to see if it can help you improve your pages, then come on back here and share your favorite plugins and tools with the rest of us!

Courtesy: Net Tuts+ 
Author: Brian Egan

14 February, 2010

What Are Meta Search Engines & How Do They Work?

Search engines are an integral part of the Internet. Could you imagine the Internet without Google? And I am not even talking about all the services that Google offers as a company. Just imagine the Internet without Google search and you will realize how important search engines are. The Internet has billions and billions of websites with loads of content but it’s the search engines that make them discoverable. So is there any difference between search engines and meta search engines? What exactly is a meta search engine?
Before I even attempt an explanation, let me tell you that search engine technology is one of the most well kept secrets of computer science. No company will give you complete details on how they index, search and sort the results. That being said, I shall try my best to convey as much as I know and as much that is possible within the constraints of an article.

What is a Meta Search Engine?

To understand what a meta search engine is, first you have to understand how a search engine works. The search engine visits billions of websites and creates a database or repository of sorts of the various sites. This is known as the index. Then whenever a user enters the search query, something magical happens (algorithms if you are a computer geek) and the pages that are deemed relevant to what you asked for are returned. Pretty simple, huh?  If only you could improve those magical algorithms you could create the next Google (although Google is smart enough to hire you instead!).
So now back to how a meta search engine works. Meta search engines don’t have a repository or index of their own, they take advantage of indices created by other search engines. In fact they present this as their strong point. A typical meta search engine pulls off the results from a number of search engines, say Google and Bing, and then apply their own algorithms in some cases to re-order the results.

Are Meta Search Engines Better?

The obvious thought that comes to mind is that meta search engines get their results from multiple search engines and since two is better than one the results must also be better. The truth however is different, in fact let me put it this way – it is a matter of personal preference.
Let me explain with an example. First off, you need to keep one thing in mind that no search engine can index the entire Internet. Yes, not even Google. Now, suppose you are looking for something that is on website ‘Z’ and say you search for the term in your favorite search engine and you get no results. So now the only way a meta search engine is going to be able to respond with a result is if any other search engine has indexed website ‘Z’. If other search engines have indexed website ‘Z’ then of course a meta search engine is better than the one you are using. But then are you using a good search engine in the first place that doesn’t index website ‘Z’?
I say so because the index of search engines are more or less the same. It’s the algorithms they use to create and search the index and the algorithms they use to order the results that make one search engine better than the other. So if something is missing from a search engine altogether than perhaps you need to switch. But hey, if it works for you, it is the best for you. So if a meta search engine gives you what you need then it is better. Viewed logically, you shouldn’t expect huge differences in results except for ups and downs in the ranks.

Example Of Meta Search Engines

what is a meta search engine
There are probably thousands of them out there, some of the prominent ones are: Dogpile, Vivisimo, Mamma and Metacrawler.

A Different Meta Search Engine

As is often the case, the definition I presented above is only one of the many definitions of meta search engines. Till now we know that a meta search engine is one that searches databases of other search engines to give you the search results. As it turns out a search engine that searches multiple sites but not the entire web is also known as a meta search engine (although the definition is not very popular). Google Custom Search Engines (CSE’s) are an excellent example of such search engines. What’s better you can create one of your own and see how things work. Here is how:
Visit Google CSE , hit the big “Create a Custom Search Engine”
what is a meta search engine
Fill in the required details and then enter the sites you want to search.
what is a meta search engine
Test it out and see how things work. You can even make money with AdSense for search.
What are your opinions on the issue? Are meta search engines better than normal search engines?

Courtesy: Make Use
Author: Varun Kashyap

13 February, 2010

Google vs Apple


Courtesy: GigaOm

12 February, 2010

Is your Windows Computer slow? Fix it.

Your computer running Windows isn’t running in the same speed that it used to run when you first used it. It’s slower, crappy, takes a while to start and tests your patience like anything. There are many reasons for this, let’s try fixing up a few things on your slow Windows PC:
Slow Start Up
There can be a variety of reasons to Windows loading slow during start up. Go to Run, type msconfig and hit enter. Under the ‘Start Up’ tab, uncheck the unwanted programs and press OK. Things should be a bit fine the next time Windows boots.
Another program worth mentioning here is StartUp Delayer which will help in setting after how much time programs should be loaded after Windows boots. For instance, you could set your instant messenger program to load 50 seconds after Windows starts up.
Slow Loading Start Menu
If the Start Menu items are loading slowly, you can open the Registry Editor by typing in the Run menu ‘regedit.exe’ and pressing Enter. Go to HKEY_CURRENT_USER\Control Panel\Desktop. Look for MenuShowDelay, and double click to edit the value. The lower the number specified, the faster the Start Menu will load.
Slow Right Click Context Menu
Probably the Windows Right Click menu on your computer is loading slow because too many programs added unwanted entries there. Just download this program called Mmm, install it and then modify your context menu to remove unwanted items to speed it up.
Slow Send To Menu

'Send To' MenuIf the Send To menu loads slowly, you can type ’sendto’ in the Run Dialog, and remove unwanted items in the Explorer Window that appears. This should add some speed to it.
Slow Defragmentation
The Windows Defragmenter can’t get any slower. You need to have an alternative to the Windows Defragmenter, and Defraggler is just one of the best ones available in the market. It’s free, and works like a charm and can speed up defragmentation manifold.
Slow loading My Computer Window
my-computer.jpg If the My Computer Window loads slowly, in the Explorer Window, go to Tools >> Folder Options >> View and uncheck ‘Automatically search for network folders and printers”
Slow loading Add or Remove Programs Applet
This is one of the most annoying piece of programs present in Windows, it takes ages to load if you have a considerable number of programs installed on your computer. You can either use the all-in-one CCleaner for this purpose, or get MyUninstaller that comes as a speedy replacement for Add or Remove Programs.
Slow Ending of Unresponsive Programs
If you’ve clicked on ‘End Task’ if any program is running unresponsive, you might have noticed that the program is not terminated immediately. You can alter this by going to Run >> regedit.exe >> HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ and change this value to 1000.
Disable Animations and Appearance Overhauls to maximize performance
If you’re a serious performance junkie, you probably won’t bother about eyecandy. Go to System Properties in the Control Panel. Click ‘Advanced’, then ‘Performance’ and click ‘Adjust for best performance’. This might boost your PC’s performance up a bit.
Additional Tips:
- Always keep your computer clean. Remove Junk and Unnecessary registry entries. Use CCleaner for this purpose, one excellent tool that just does what it says.
- Don’t keep installing software. Install a program only if it really serves you a purpose.
- Keep as less programs as possible running on the System Tray. This essentially means reducing the number of programs that start during Windows start up.

Courtesy: Make Use

03 February, 2010

uTorrent 2.0 for Windows sheds the beta tag, goes RTM!

utorrent has been the world's most popular BitTorrent app for quite some time, and today its developers announced another big milestone: version 2.0 has dropped the beta tag.

While many uTorrent users haven't been shy about updating to beta or RC builds, the general public seems to prefer the reassurance of the RTM stamp. If you count yourself among that group, you'll be glad to know that you can now download the new stable release from the uTorrent website or a number of mirrors (like Filehippo).

Yes, the installer still offers the Ask.com toolbar -- so make sure you pay attention to the screens as you click through the install if you don't want the toolbar installed.

One thing a lot of users forget about uTorrent is that it's skinnable -- so why not download a new theme for your new 2.0 install while you're at it?
Courtesy: Download Squad
Author: Lee Mathews