matt dillon

May 06

Italian Caper #1 - Hong Kong

I’m on holiday for the next few weeks. This holiday has been in planning for quite some time and finally, we’re off.

First stop: Hong Kong

Relatively humid (shorts and shirts only). First up was William Cheng & Son for some new shirts. Very fine tailors and very well priced. Approx. NZ$35 for a made to fit shirt - excellent value.

Night Markets. Warm, rain. Great food as usual.

Tin Cheung Camera for a new tripod. A beautiful camera shop, excellent service (no pushiness whatsoever - a rare thing on the streets of HK) and the best prices.

Ocean Park. Pandas (tick). Sea show. Water raft.

Sai Kung. Excellent (somewhat expensive) lunch.

William Cheng & Son

Night Markets Hong Kong

Tin Cheung Camera

Ocean Park

Sai Kung

Apr 04

SSH on Ubuntu

A good (it works!) walkthrough on how to secure your linux server:

http://www.farinspace.com/secure-login-linux-server/

Apr 03

SSI on OSX Apache - finally

This one has long bugged me on and off for years.

I have to admit, I’m pretty crap at remembering all this stuff. My brain can only retain so much junk. And this one falls perfectly in to the “I don’t do it often enough for it to stick” category.

I’ll write it down - that might help.

This is for using .html files as SSI on OSX 10.7 

In: /private/etc/apache2/httpd.conf
Make sure you’ve got: Options Includes (or All)

In: /private/etc/apache2/extra/httpd-vhosts.conf
Make sure you’ve got:
Options Includes 
AddOutputFilter INCLUDES .html <- it’s this last bit that always gets me 

Ahhhhh - peace at last.

Mar 29

Trademarks and Shutterstock

That was a close one… and I’m glad the lawyer looked over it before we submitted a Shutterstock image as a trademark. Fortunately, there’s not too much involved in drawing another pig.

Mar 26

stackoverflow goodness

stackoverflow has to be one of the best resources on the interwebs. I’ve used it for years (more-so since I’ve been headfirst in to rails) but I’m a recent contributor - finally, giving back to the community.

Big ups to the team behind Stack Exchange - love the way you approach your development too!

Mar 20

Dieter Rams

Dieter Rams - ten principle for good design.

I love the idea that design is not art; it’s not pop; it’s not fashion. Good design enhances our lives. Our lives a incredibly time-poor and asset rich - here, good design demonstrates its value.

Get rid of the noise; work out what you really need.

Link

Feb 20

Mobile Email

Good guides over at Campaign Monitor. And MRPATTO has a nice collection of resources.

More resources:
Litmus Blog

Yahoo! Mail gotya (use attribute selectors to get around it). See here…

Feb 10

Charles Hawthorne Art Quotes

Charles Hawthorne - American artist. I absolutely love his writings on art, for example:

The value of a canvas depends almost entirely on your mental attitude, not on your moral attitude; depends on what kind of a man you are, the way you observe.

Feb 04

Dreaming Ruby Code

Friday morning about 5am, after a late night of coding, I woke up dreaming ruby. Well, that’s a first. The good news is that my dream actually helped me fix my code (that’s another first).

So, what was the issue? A multi-step form which is saved immediately after the first step. 

What was the solution? Initially, I tried out ryanb’s multi-step form (no saving after the first step), but that wasn’t what I was after. I turns out there’s a nice little gem  - gem “stepper”. It adds a current_step field to the table you’re working with, but I can live with that. 

All good!

Jan 26

simple_nested_form_for - awesome

I love simple_form. Big ups to the plataformatec guys (get it here). It makes writing forms in rails a breeze. Great control and really easy to style up. 

I also love ryanb’s nested_form. Again, it makes complex forms so much easier to create.

Today I had the need to use both simple_form and nested_form. And how awesome is this: simple_nested_form.

It’s shit like this that makes my day.