2015 Notes

Rails UJS for Forms

16th December 2015
1 minute.
Rails
JS frameworks are fun, but for most apps a sprinkling of JavaScript and Rails RJS gets a lot done, it’s simple to use and easy to maintain. Often, a feature...

Installing (and Fixing) Node, NPM and maybe Grunt on OSX

9th December 2015
1 minute.
Terminal
Problems with Node? It’s not uncommon. So, have you got the latest version? node -v v0.10.28 npm -v 0.01 OK, that’s not good. Even if you have newish versions though...

Static Site on s3 With Cloudflare

7th December 2015
2 minutes.
Hosting, DNS
If you want to set up a simple static site, amazon’s s3 service is a great choice. S3 is simple to use, reliable and very very cheap. Ideal for simple...

How to Clear DNS for OSX

12th September 2015
30 seconds.
Terminal
You made a change to your DNS. You wanna test it. Is it workin? To clear the DNS, do this: sudo killall -HUP mDNSResponder then go to chrome://net-internals/#dns and click...

Intro to Ruby Regular Expressions

12th May 2015
1 minute.
Ruby
Regular Expressions are used to match patterns to strings. They are super powerful and very scary. If you use them badly your code can become totally un-maintainbale and confusing. When...

Getting Started with Terminal

1st January 2015
30 seconds.
Terminal
<3 Your Terminal Is terminal in your Doc? do you use it? If not you are missing out as a web professional. Learning a few commands, or at least being...