Ad-blocking in Chrome and Windows

Ever since Chrome has added support for extensions, I’ve found myself flip-flopping between it and Firefox. Chrome’s speed is outstanding, but I still love the extensibility of Firefox as its extensions can integrate deeper within the browser. One area that’s bothered me is ad-blocking. Firefox can still do true ad-blocking where content is blocked before the URL is loaded, while in Chrome it is only possible to hide the ads after they are loaded by the browser. Which is an issue for me, as ad servers can cause delays in the loading of the main website. Plus less content means faster loading overall.

Today I wanted to drop a note about an application that I recently ran across that might have solved the ad-blocking issues for me without the need to run proxies that usually slow down the browsing process or are difficult to maintain and configure. Those who use Windows may know that you can block ads via the Windows hosts file. It’s a file that your PC uses to try to resolve domain names. If the domain name isn’t found there, the machine will then start looking to your external name server(s) (e.g. your internet provider, etc.). For years now there are people who have been using this file to block ads, and it works great most of the time. The only issues I ever had were that the file was cumbersome to keep updated, plus certain pages on the web become unusable. For example some video sites display ads before showing you the video. If the ad doesn’t not display, the video cannot be viewed.

Yesterday, though, I ran across a tool that seems to solve both of those issues, called HostsMan. It’s a tool that will help you keep your hosts file updated using online sources of ad lists. But it also supports exclusions, so that you can add in certain domains that should never be added to your file.

The only downside to using the hosts file to block ads is that you cannot white-list ads on a certain webpage, for instance. You may like a certain site but realize they are ad-supported. Unfortunately the hosts file is used separately per ‘request’ or item inside of a webpage and therefore cannot understand that you want to allow ads displayed within or alongside a certain page or domain.

But if you’re OK with that, I highly recommend this program to help speed up Chrome even more and keep your online experience (in all of your browsers) virtually ad-free.

Font Issue – Firefox 3 on Mac OS X

Just upgraded the wife’s Mac to Firefox 3, seemed to be painless and straightforward.  Until she went to use it the first time herself and some sites would show garbled text, what looked like squished fractions for certain text on web pages.  Only certain sites, only certain text.  Wikipedia is one that is usually affected.

Unfortunately not much information can be found on MozillaZine or most support forums.  Mainly because it’s kind of hard to describe or find the right search terms for.  But I did find a support post finally that pointed me to the true fix: disable the Helvetica Fractions font in Font Book.

Hope this helps save an hour of someone else’s time 😉

Viewing large text files

Needed to look at a 8GB log file tonight.  Don’t ask why it was that big, it shouldn’t have been 😉  Only a brave soul tries to open that with Notepad or any old text pad application.

Once again, Google is your friend, as I found Large Text File Viewer.  It opened that file and only took 2MB of RAM to do it.  Coop sweet!

Updating a Windows Service

Ever need to update a Windows Service? I had a problem today at work, my PC was incorrectly setup by the technical services team, one of my services’ “Path to Executable” was pointing at the wrong .exe. I had seen the sc.exe command-line command before for creating services, but I only wanted to modify an existing service.

Luckily I found a page online that mentioned these settings are in the registry. Browse to the following hive and see all the settings for your service that you can modify, and at least the “Path to Executable” seemed to take effect immediately with no reboot (Windows XP Pro SP2).

DISLAIMER: Do this at your own risk! As always touching the registry is risque business )

\\HKEY_LOCAL_MACHINE
\SYSTEM
\CurrentControlSet
\Services
\___YOUR_SERVICE_NAME___