I’ve been using both Git and Sass for some time now. These two tools have had a huge positive impact on my development. The issue that arises when combining Git and Sass is when checking in compiled CSS, it is common to get conflicts with other contributors on the Git repository. Don’t Check in Your […]
Computing
Command Line List Files in Tree View
List all subfolders with formatted output ls -R | grep “:$” | sed -e ‘s/:$//’ -e ‘s/[^-][^\/]*\//–/g’ -e ‘s/^/ /’ -e ‘s/-/|/’ From: http://reviews.cnet.com/8301-13727_7-10402034-263.html
Google Indexing 301 Redirect
While SEO is not my focus of expertise, it is an interesting field which impacts the work I do. I was surprised when fellow developer Dustyn Doyle pointed out to me that Google was indexing 301 redirects. Based on my research, I couldn’t find any of these 301 redirect links coming up in general searches; […]
Create Offline Copy of a Website
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 […]
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 […]