Sunday, May 22, 2011

zen habits breathe. 14 Simple Tips for Super Fast Web Browsing

As someone who does most of his work on the web, I’ve developed some habits to allow me to work quickly, without distraction, so that I can get my work done easily.
When I see others browse the web, it sometimes surprises me how far behind they are, and when others see me browse the web they’re surprised at how quick I am.
I’m not bragging — I know there are web monkeys faster than me. But I thought I’d share some of my tricks for the masses, in hopes that it’ll be of some use.
First, understand that everyone has their own personal style of browsing, and I don’t think you should adopt every tip below. This is what works for me. You probably won’t like it as much.
Second, understand that my philosophy is one of minimalism: I don’t like a lot of bells, whistles or distractions, and I like fast, lightweight programs that aren’t bloated or slow. I also like to work quickly, using the keyboard mostly, so that I can get my work done without friction.
So here are my tips — some of these will be old hat for web veterans, but they bear repeating.
  1. Use a fast, minimal browser. First, if you’re using Internet Explorer and you don’t absolutely have to, please do yourself a favor and switch right now. It’s bloated and slow, insecure, and doesn’t render the web correctly. If you can’t switch, please start educating your IT or HR department about modern, standards-compliant browsers. Second, I’ve long been a fan of Firefox because it’s generally awesome and extensible, but lately I’ve switched to faster and lighter browsers that do what I need with a minimum of bloat. So on the Mac, that’s been Opera and lately Camino. Both are great and do what I need. On the PC, there’s no contest — it’s Google Chrome, as it’s the fastest I’ve tried.
  2. Use tabs, not windows. This should be obvious but many people still open a new window each time they’re going to a new site (including my mom). Instead, configure your browser to open new tabs instead of windows. When you are reading a post, for example, and want to open a link in a new window, Command-click (on a Mac) or middle-click (on a PC) should open the link in a new tab. Now you can switch between tabs without needing to find where each window went.
  3. Learn keyboard shortcuts. Again, this is obvious to most web monkeys, but it’s so much faster that you need to take the time to learn the shortcuts. Some common examples (using Mac shortcuts): Cmd-T to open a new tab, Cmd-L to go to the browser’s location bar (to enter an url), Cmd-D or Cmd-K (depending on the browser) to bookmark, Cmd-K (on some browsers) to go to the search engine box (the Google box), Cmd-W to close a window or tab, and so on. Each browser and OS have different shortcuts, but you can easily learn them by looking at the shortcuts in the menus of the browser. It just takes a few minutes to learn them, and then you’re golden.
  4. Set up keyword bookmarks and speed dial. Most browsers have keyword bookmarks, and it takes just a few seconds to set up each one. Basically, for all of your common sites, you’ll want to create a bookmark, and then go to the bookmark and enter a keyword for quick access to that bookmark. To do this, go the the Properties of the bookmark and set the keyword. I recommend short keywords — common ones for me include “gm” for Gmail, “rd” for Google Reader, “cal” for Google Calendar, “bog” for my bank website, “tw” for Twitter, “st” for my blog’s stats, “post” to create a new Zen Habits post, and so on. Speed Dial is an Opera feature that other browsers seem to be copying — you set up your 9 most oft-used websites into Speed Dial, and then can go to any of them with the press of a key (i.e. Cmd-1 for Gmail, Cmd-2 for Twitter, etc.).
  5. Set up keyword searches. Same as above, but these are saved searches you might perform commonly besides a regular Google web search. Examples might include Amazon, Wikipedia, Wiktionary, IMDB, Ebay, and Flickr searches. For each saved search, you’ll have a keyword, and then you can just search from the location bar (Cmd-L to get there) — for example, “im alyssa milano” will search IMDB.com for Alyssa Milano (once you set it up of course).
  6. Set up keyword bookmarklets. In Firefox and a couple other browsers, there’s the ability to create javascript bookmarklets that have some kind of functionality — for example, a bookmarklet for Tumblr (to create a new post from the page you’re reading) or Instapaper (to bookmark an article for reading later) or Twitter (to tweet a page) or is.gd (to create a short url for a page), and so on (some good examples). Other browsers (Opera is an example) don’t allow you to drag and drop a bookmarklet into the bookmarks toolbar, but you can still create them: 1) create a regular bookmark , 2) copy the link url of the bookmarklet using Control-click or right-click, 3) paste this url into the regular bookmark in your bookmark manager (Cmd-B in Camino), and then create a keyword for this bookmark. Now, if I want to create a short url for a page, I go to the page, press Cmd-L (to go to the location bar) and type “is” and press enter — and instantly have a short url. This works for any javascript bookmarklet.
  7. Fast online bookmarking. Beyond creating keyword bookmarks for common sites, searches and bookmarklets, I like to bookmark resources and pages to be read later using online tools. In the past I used Delicious (for bookmarking resources) and Instapaper (for reading something later), but these days I use Pinboard (by the writer of the excellent blog, Idle Words). It’s in beta, but it’s fast, and has both bookmarking and to-read features. Using a service like this allows me to access my bookmarks from any computer.
  8. Block Flash. Adobe’s Flash format is everywhere on the web these days — popular sites like YouTube depend on it for video, and you’ll find it in ads everywhere, and some entire sites are built on Flash. It’s annoying, frankly. Flash is slow, and I prefer to turn it off by default … but have the option to turn it on if I want to watch a YouTube video or something. In Camino, it’s simple — just turn it off in the preferences. In other browsers, you might need a plugin or extension to turn off Flash but give yourself the ability to turn on Flash elements with a click.
  9. Distraction-free reading and videos. I love reading without the distraction and clutter of most sites. So I use two bookmarklets: Readability for reading articles, and Quietube for viewing videos.
  10. Turn off most extensions. Firefox is great for all its amazing extensions, but if you use a lot of them they can cause the browser to get slow and bloated, and often buggy. So when I do use Firefox I turn off almost all extensions (except Google Gears for offline access), and on Camino I use none. It makes for much faster browsing.
  11. Don’t have a million tabs open. This is a common web-surfing mode for a lot of people, but it slows down the browser. I tend to open lots of tabs at times, but when things get too cluttered I bookmark them for later reading (using Pinboard) and then close the tabs, so I have only two or three open at any time.
  12. Clear most of your toolbars. I like minimal toolbars, so I turn most of them off on the browser and remove most buttons, so the content is all there is.
  13. 1password or KeePass. Good tools for easily storing all your passwords — otherwise, you’ll either have to remember them all or use the same ones over and over (not very secure).
  14. Tuning out the Internet. When I need to do serious work, I try to remove distractions by closing the browser to do actual work. If I find myself opening the browser too much, I’ll use a utility (such as Freedom) to shut off the Internet altogether.

Monday, May 2, 2011

Overview of a VPN

A VPN is a method of connecting to a private network (for example, your office network) by way of a public network (for example, the Internet).

A VPN gives you the benefit of a dial-up connection to a dial-up server, plus the ease and flexibility of an Internet connection. Using an Internet connection permits you to connect to resources all over the world and still, in most places, connect to your office by making a local call to the nearest Internet access phone number. If you have a high-speed Internet connection such as cable or digital subscriber line (DSL) at your computer and at your office, you can communicate with your office at full Internet speed. This is much faster than any dial-up connection that uses an analog modem.

VPNs use authenticated links to make sure that only authorized users can connect to your network, and they use encryption to make sure that others cannot intercept and cannot use data that travels over the Internet. Windows XP achieves this security by using Point-to-Point Tunneling Protocol (PPTP) or Layer Two Tunneling Protocol (L2TP). A Tunneling Protocol is a technology that helps make the transfer of information over the Internet more secure from one computer to another.

VPN technology also permits a corporation to connect to its branch offices or to other companies over a public network, such as the Internet, while helping to maintain secure communications. The VPN connection across the Internet logically operates as a dedicated wide area network (WAN) link.

Configure a VPN connection from a client computer

To set up a connection to a VPN, follow these steps:
  1. On the computer that is running Windows XP, confirm that the connection to the Internet is correctly configured.

    For more information about how to test your Internet configuration, click the following article number to view the article in the Microsoft Knowledge Base:
    314067  (http://support.microsoft.com/kb/314067/ ) How to troubleshoot TCP/IP connectivity with Windows XP
  2. Click Start, and then click Control Panel.
  3. In Control Panel, double-click Network Connections.
  4. Click Create a new connection.
  5. In the Network Connection Wizard, click Next.
  6. Click Connect to the network at my workplace, and then click Next.
  7. Click Virtual Private Network connection, and then click Next.
  8. If you are prompted to, do one of the following:
    • If you use a dial-up connection to connect to the Internet, click Automatically dial this initial connection, and then click your dial-up Internet connection from the list.
    • If you use a full-time connection such as a cable modem, click Do not dial the initial connection.
  9. Click Next.
  10. Type the name of your company or type a descriptive name for the connection, and then click Next.
  11. Type the host name or the Internet Protocol (IP) address of the computer that you want to connect to, and then click Next.
  12. Click Anyone's use if you want the connection to be available to anyone who logs on to the computer, or click My use only to make it available only when you log on to the computer, and then click Next.
  13. Click to select the Add a shortcut to this connection to my desktop check box if you want to create a shortcut on the desktop, and then click Finish.
  14. If you are prompted to connect, click No.
  15. In the Network Connections window, right-click the new connection.
  16. Click Properties, and then configure more options for the connection:
    • If you are connecting to a domain, click the Options tab, and then click to select the Include Windows logon domain check box to specify whether to request Windows logon domain information before you try to connect.
    • If you want the computer to redial the connection if the line is dropped, click the Options tab, and then click to select the Redial if line is dropped check box.
To use the connection, follow these steps:
  1. Use one of the following methods:
    • Click Start, point to Connect To, and then click the new connection.
    • If you added a connection shortcut to the desktop, double-click the shortcut on the desktop.
  2. If you are not currently connected to the Internet, Windows offers to connect to the Internet.
  3. After your computer connects to the Internet, the VPN server prompts you for your user name and password. Type your user name and password, and then click Connect. Your network resources should be available to you in just like they are when you connect directly to the network.
  4. To disconnect from the VPN, right-click the icon for the connection, and then click Disconnect.
Note If you cannot connect to shared resources on the remote network by computer, you can use the remote computer's IP address to connect by using UNC (\\<IP_Address>\Share_name). Edit the hosts file in the Windows\System32\Drivers\ folder, and add an entry to map the remote server's name to its IP address. Then use the computer name in a UNC connection (\\Server_name\Share_name).

Troubleshoot VPN connections

Troubleshooting VPN connection issues typically involves contacting your Internet service provider (ISP), your VPN server administrator, or your router or firewall manufacturer.

When you try to connect to your VPN server, you may not be able to connect, and you may receive an error message that resembles the following:
678: The remote computer did not respond.

930: The authentication server did not respond to authentication requests in a timely fashion.

800: Unable to establish the VPN connection.

623: The system could not find the phone book entry for this connection.

720: A connection to the remote computer could not be established.
To resolve this issue, use one of the following methods:
  • Verify that you have connected to the Internet before you try to connect to the VPN server.

    For more information about troubleshooting Internet Connectivity in Windows XP, click the following article numbers to view the articles in the Microsoft Knowledge Base:
    314067  (http://support.microsoft.com/kb/314067/ ) How to troubleshoot TCP/IP connectivity with Windows XP
    314095  (http://support.microsoft.com/kb/314095/ ) How to troubleshoot possible causes of Internet connection problems in Windows XP
  • If you can connect to the Internet but you still cannot establish a connection to the VPN server, and you receive error 623, see the following Microsoft Knowledge Base article:
    227391  (http://support.microsoft.com/kb/227391/ ) Error message: "Error 623 the system could not find the phone book entry for this connection" when making a VPN connection
  • If you can connect to the Internet but you still cannot establish a connection to the VPN server, and you receive error 720, see the following Microsoft Knowledge Base article:
    314869  (http://support.microsoft.com/kb/314869/ ) Error 720: No PPP control protocols configured
  • If you still cannot connect to the VPN server, the VPN server may not be configured correctly. Contact your VPN server administrator.

    If you are the VPN server administrator, see the following Microsoft Knowledge Base articles for additional information about how to configure a Microsoft VPN server:
    308208  (http://support.microsoft.com/kb/308208/ ) How to install and configure a virtual private network server in Windows 2000
    162847  (http://support.microsoft.com/kb/162847/ ) Troubleshooting PPTP connectivity issues in Windows NT 4.0
    299684  (http://support.microsoft.com/kb/299684/ ) Error message: Error 930; The authentication server did not respond to authentication requests in a timely fashion
  • If you use a personal firewall or a broadband router, or if there are routers or firewalls between the VPN client and the VPN server, the following ports and protocol must be enabled for PPTP on all firewalls and routers that are between the VPN client and the VPN server:

    Collapse this tableExpand this table
    Client portsServer portProtocol
    1024-65535/TCP1723/TCPPPTP

    Additionally, you must enable IP PROTOCOL 47 (GRE).

    For information about your firewall or router configuration, and to confirm that your firewall or your router will pass these ports and protocol, contact the manufacturer of your firewall, your router, your ISP, or your VPN server administrator.