dweebd
no apostrophe
Rails View Annotator
3 months ago by duncanbeevers on dweebd.
A Sea of Views Ruby on Rails projects tend to generate a large number of view files. In a recent, fairly-young project I found we had nearly 300 different...
Hash value mapping
over 1 year ago by duncanbeevers on dweebd.
Ever have to map all the keys of a Hash, or Hash-like Ruby object? For example, you have a Hash mapping keys to the binary contents of several files, and...
Ruby RegExp match variables really are local
~2 years ago by duncanbeevers on dweebd.
While reading Yehuda Katz’ blog post concerning mental models about Ruby’s behavior, I was a bit rankled by his reference to implicit locals...
Keep your production credentials encrypted, hassle-free
~2 years ago by duncanbeevers on dweebd.
Previously, I demonstrated how to set up an encrypted store in Mac OS, but didn’t describe why you might want to do such a thing. Encrypt Using an...
Subdomains in development using ghost
over 2 years ago by duncanbeevers on dweebd.
The Problem Using subdomains with Rails is kind of a pain. The only official support for subdomains is as asset hosts, as described in the AssetTagHelper...
Subdomains in development using ghost
over 2 years ago by duncanbeevers on dweebd.
The Problem Using subdomains with Rails is kind of a pain. The only official support for subdomains is as asset hosts, as described in the AssetTagHelper...
JavaScript cast to Number
over 2 years ago by duncanbeevers on dweebd.
Another interesting technique I spotted in the gRaphaƫl code base is the use of a prefixed + used to cast a variable to a numeric type. var data = [...
If A Then B
over 2 years ago by duncanbeevers on dweebd.
In hacking on the gRaphaĆ«l code base, I came across a recurring pattern syntax pattern I hadn’t encountered in JavaScript before. Essentially, instead...
Cookie Path Handling Inconsistencies
over 2 years ago by duncanbeevers on dweebd.
Cookies stored with a path option are treated somewhat differently in Internet Explorer than they are in many other browsers. The issues are especially...
Run Safari 3.2.1 alongside Safari 4
almost 3 years ago by duncanbeevers on dweebd.
It’s important to be able to test your application across multiple versions of major browsers. Safari’s use of a system-wide Webkit makes this...
