September 2010 Entries

FourSquare Checkin with CSharp

Here’s how to automatically check-in to FourSquare from C#. Yes, I did cheat with this for about a week. Apparently people were wondering how I was checkin in and defending my mayorships while I was out of the country. Haha. Anyway, here you go: static void Checkin(string venueid, double latitude, double longitude) { string result = HttpPost("http://api.foursq... "vid=" + venueid + "&private=0&geolat=" + Scatter(latitude) + "&geolong=" + Scatter(longitude), "myuser", ......

Posted On Monday, September 27, 2010 12:39 PM | Comments (1)

Large Hosts Files

Its hard to find much technical information on the Windows Hosts file, beyond what is pretty much common knowledge. Some questions I had recently that were hard to find the answers to: Q. How big can the hosts file be? A. I still haven’t found an answer to this one, but apparently pretty darn big. The MVPs.org Hosts file is over 600Kb and still growing (it is designed to block certain malware related sites). Q. How long can a single line in a hosts file be? A. It seems the answer to this question ......

Posted On Monday, September 27, 2010 12:39 PM | Comments (0)

Make Telephone Numbers Look Slick on the Web

The IPhone browser (and some other browsers/email clients/plugins) will automatically detect phone numbers and style them. This automatic styling might not look so hot, so its best to always explicitly style phone numbers yourself, if possible. Here’s the basic method: <a href=”tel:555-555-5555” class=”phone_number”>555... The “phone_number” css class should have, at a minimum in my opinion: .phone_number:link,visited,... { color:#5399d4; font-size:15px; font-family: ......

Posted On Monday, September 27, 2010 12:38 PM | Comments (2)

How to Clear the Squid Proxy Cache in Windows

For some reason directions for clearing the Squid proxy cache (in Windows) seemed hard to come by on the web, so I thought I’d post them here. Hope this helps someone: Run MMC and load the services snap-in, kill the running squid process. Empty Squid’s cache folder (e.g. C:\squid\vars\cache\). Run Squid with the –z parameter to rebuild the cache folder structure (e.g. C:\squid\sbin\squid.exe –z). From the services snap-in of MMC, restart the squid service ......

Posted On Wednesday, September 1, 2010 10:52 AM | Comments (1)

Automatically Wake Your PC Before Your Arrival

Just a quickie convenience tip. Some mornings it seems to take my computer a little too long to “wake up” after being hibernated overnight. This annoyed me, but as of today it annoys me no longer. This morning my computer was fresh and ready to go as soon as I sat down at my desk. These instructions are for Windows 7, however the same basic idea will work fine in Vista and XP. From Control Panel, choose Administrative Tools, and then Task Scheduler. Create a basic task. This task can be for anything ......

Posted On Wednesday, September 1, 2010 9:11 AM | Comments (1)

Copyright © Lance Robinson

Design by Bartosz Brzezinski

Design by Phil Haack Based On A Design By Bartosz Brzezinski