Info

Designer, front-end developer & PC gamer from Michigan.

Archive for

Deal with domain propagation on a frequent basis? These commands come in handy for flushing the local DNS cache on your computer.

Mac OSX 10.10

dscacheutil -flushcache

Mac OSX 10.7 – 10.9

sudo killall -HUP mDNSResponder

Mac OSX 10.5 – 10.6

dscacheutil -flushcache

Mac OSX 10.4 and below

lookupd -flushcache

Windows

ipconfig /flushdns

Update: [10/13/2014] Just updated to included instructions for OSX 10.10 Yosemite.

Adaptive Images

Adaptive Images detects your visitor’s screen size and automatically creates, caches, and delivers device appropriate re-scaled versions of your web page’s embeded HTML images. No mark-up changes needed.

Would I rather be feared or loved? Easy, both. I want people to be afraid of how much they love me.

Michael Scott, Dunder Mifflin

Live.js

Say goodbye to Alt-Tab. Live.js makes sure you’re always looking at the latest version of the page you’re working on, whether you’re writing HTML, CSS or Javascript.

When developing on a local machine, you’ll sometimes need to gain access to files that Mac OSX hides by default.

To show hidden files, open up Terminal.app and type:

defaults write com.apple.Finder AppleShowAllFiles YES

To see the changes you’ll need to restart Finder.app. The easiest way to do this is just to force quit Finder.app, and it’ll open up again automatically.

To reverse the changes, open Terminal.app again and type:

defaults write com.apple.Finder AppleShowAllFiles NO

Sublime Text 2 Replacement Icon


Beautiful replacement icon by Daniel Matarazzo for one of the best editors out there. Super easy installation for Mac OSX. Just download the repository and follow the instructions.

Open the following folder using Terminal:

open /Applications/Sublime\ Text\ 2.app/Contents/Resources/

Find the file Sublime Text 2.icns and replace with the one from this repository. The name needs to remain exactly the same.

Swipe.js

Swipe brings content sliding to the mobile web to preserve space and allow for new types of interaction. Many mobile web sliders currently exist but few embody all the rules a slider like this should follow.