Sometimes you need to make a copy of a website for offline use. There are a number of offline website downloader tools I’ve found helpful for this task. Offline Website Downloaders Unix Command line wget -p -k http://www.example.com/ Mac Application SiteSucker Windows Application HTTrack Why Would You Do This? Using these tools has allowed me […]
Computing
How to Name a File
Naming a file, while seemingly an easy task has a number of nuances to it. Here are some tips to improve your file naming. A rose by any other name, would smell just as sweet but would be more difficult to locate. Use all lowercase letters A combination of upper and lowercase letters in a […]
How to Disable JavaScript in Chrome
2014-08-29 UPDATE: Current version of Chrome has issue I’m seeing an issue where the Disable JavaScript checkbox is becoming unchecked on refresh (thus undoing the point of this post). More info at https://code.google.com/p/chromium/issues/detail?id=369844 Current fix seems to be “click Disable JavaScript a bunch of times” (yes, I realize this is a ridiculous fix) How to […]
Quick Cache requires PHP v5.3
WordPress Quick Cache Plugin There is a new version of the WordPress Quick Cache plugin available. Higher Minimum Requirements This new version requires PHP 5.3+ This is a higher requirement than WordPress itself, which requires a minimum of PHP 5.2.4 (http://wordpress.org/about/requirements/). Sometimes Newer is Not Better If you are running on a server with sub PHP […]
Command Line DNS Lookup with dig
dig is command line DNS Lookup program pre-installed on *nix and Macs. If you don’t have access to dig from the command line, there are some websites that offer a web interface to dig (e.g. Google Toolbox’s Online Dig). Basic Lookup (Similar to ping) dig example.com Advantages over ping: Doesn’t get grumpy when you include […]
Find Your Local IP Address
Find Your Local IP Address on Your Mac ipconfig getifaddr en0 (primary) or ipconfig getifaddr en1 (secondary) How do I know which to use? It is common for Mac laptops to have one (wireless only) or two (wired and wireless) network connections. When a wired connection is present, it is the primary connection (with wireless […]
JPG will not display in IE8
I had a client contact me with the problem that on his site a jpg will not display in IE8, but is showing up in other browsers. After checking the code and viewing the image in multiple browsers, including IE8 mode (using IE10’s web developer tools), I was convinced it was a problem with the […]
Vim Visual Mode Search for Selection
Sometimes you want to search for a long string in Vim. When using a GUI interface you may be able to get away with CTRL+c, CTRL+v but when you are in a terminal, it is a little trickier to use Vim Visual Mode search for a selection. Here is how to search in Vim using […]
Stop Annoying Mac Updates Available
UPDATE: This wonderful ability to ignore updates has been removed in Mavericks ( OS X 10.9 ). https://discussions.apple.com/thread/5509820 Mac Updates Available has been an annoying reoccurring message for me ever since we got a new printer replacing the HP model we had previously. With the old printer gone there is no reason to install updates to […]
VIM fix line-breaks
When your line-breaks are WONKY, try this. :%s/\r//g Definition of “WONKY” Some (or all) of the lines have ^M at the end of them. This is a product of mixed line endings (DOS and UNIX).