Archives for July, 2007
No posts until August
I’m getting married in a couple of hours and then off to Europe So I will probably not be posting anything until I get back first week of August.
Morning Brew #55
Another cup of fresh Rails and not so Rails brew. If you’d like to send in a link, please use this page.
Rails
How to put a controller under a SSL subdomain.
HAML 1.7 - a new version of HAML. Now 16 times faster. (via)
Rails Book: Rails Solutions - Ruby on Rails Made Easy.
Ruby
Hash#except.
Web Development
Ruby On Rails [...]
Linotype FontExplorer X and xpcom.dll
Linotype FontExplorer X is my recent discovery and I find it to be the best font management tool out there. All of the sudden I started getting “xpcom.dll” error on startup. Googling didn’t turn up anything so I spent some time and narrowed down the problem.
The application must be started from its folder, ie C:\Program [...]
Switching to Mac - back to PC
After about 1 week of full time Mac use I’ve decided to switch back to PC.
There are two reasons why:
Latest MacBook Pro gets uncomfortably hot. The bottom is literally painful to the touch, and the top left side where hand rests when I type is too warm and causing my hand some uncomfortable pain after [...]
Morning Brew #54
Another cup of fresh Rails and not so Rails brew. If you’d like to send in a link, please use this page.
Rails
Build testing for the rest of us.
Ruby
Viewing Local Gem Documentation.
RSpec Basics - 55 minutes of quality RSpec video from PeepCode.
Web Development
Top 15 iPhone Web Development Resources
String.to_permalink
Converts a string to a URL style permalink.
class String
def to_permalink
s = self
s = Iconv.iconv(’ascii//ignore//translit’, ‘utf-8′, s).to_s
s.gsub!(/^\W+|\W+$/, ”)
s.gsub!(/\W+/, ‘-’)
s.strip!
s.downcase!
s.squeeze!(’ ‘)
s.gsub(/\ +/, ‘-’)
[...]
Morning Brew #53
Another cup of fresh Rails and not so Rails brew. If you’d like to send in a link, please use this page.
Rails
Hobo migrations - I like! Getting rid of migration files all together and putting it where it belongs - in the model itself.
Web Development
Optimizing Web Applications and Content for iPhone - official docs.
Misc
Code monkey.
Unindenting text block
Unindenting a block of text involves finding a common minimum indent in every line and removing it. Here’s how I have done it. As with any text processing, the larger the text is, the slower it is.
def unindent_text(src)
indents = []
src.each_line do |line|
indents < < $1.length if not [...]
Morning Brew #52
Another cup of fresh Rails and not so Rails brew. If you’d like to send in a link, please use this page.
Rails
Debugging with ruby-debug - new Railscast.
Developing a Facebook application (via RubyInside)
Web Development
The Underbelly of a Web App Part 2 (part 1 here)
Noobkit updates!
Another great little update to make Noobkit even better!
New features
Source code! Up in the toolbar in the top right corner, look out for the source icon when viewing methods.
Table of content shows up for big pages. Pretty neat, eh?
Improvements
API is now grouped a little bit better.
Examples are colored better and no longer indented randomly.
Home page [...]
Find It Quickly
Find what you're looking for quickly by using our keyword search. Can't find it? Try our links below.


