Skip to content

{ Monthly Archives } February 2010

Taking screen shots with Mac OSX

I seem to always forget these short cuts even though i use them frequently. With windows, it is simply “print screen” button to capture the desktop and alt-”print screen” to capture the active window.  This puts the image in the clip board. The apple commands for capturing the screen aren’t as intuitive as the Windows [...]

MacPorts mysql with GUI tools

A friend had some problems installing MySql with MacPorts and asked me if I had problems installing it.  Our problems were totally unrelated but thinking back, I remembered I had problem with MySQL Query Browser.  I couldn’t get it to connect even though I could connect via the command line.  It turned out to just [...]

HTML Dom in Ruby with Nokogiri

I recently needed to do a screen scrape of a website.  The page I’m trying to parse is marked as an “XHTML 1.0 Transitional”.  XHTML?  Should be easy.  Parse the doc, use XPath and I’ll be done. If you search “xml parser ruby”, the first result you will get is REXML.   I’ve read comparisons that [...]

RVM (Ruby Version Manager)

Motivation The Rails 2.x has felt… hacky to me.  When I’ve looked at some of the code that has been generated, I’ve been turned off by the inline javascript I’ve seen.  I want the code that my framework creates to be extremely clean and standards oriented.  Inline javascript just doesn’t cut it for me.  Another [...]

Ruby on Rails and Forms

Just found a cool form tool I’m going to try out for Rails: http://github.com/justinfrench/formtastic He built the output to be based on a presentation given by Aaron Gustafson http://github.com/justinfrench/formtastic I’ve been doing web development for a LONG time so it’s easy to fall into the trap of thinking I know everything there is to know [...]

Financial Consequences of Being Self Employed

I discovered a few interesting things while preparing for my quarterly taxes. I don’t have to pay them until April 15th. Also, I don’t base it on the total taxes I will owe. I only have to pre pay 1/4 of last year’s total federal tax. So I can ignore the medicare and social security [...]

iPhone web apps

The iPhone has some really cool features for web apps. One feature that I particularly like is called Web Clips.  These are pages that can be installed on your home screen.  You can specify an icon for use on the home page just like you would for a native app.  If you don’t supply one, [...]

Simulating a slow network on a Mac

I ran across these very handy commands to simulate a connection of only 4kbps.  This is helpful when developing mobile applications in particular because some cell connections are horrible. sudo ipfw pipe 1 config bw 4KByte/s sudo ipfw add 100 pipe 1 tcp from any to me 3000 There are several interesting parts to these [...]

Controls for Windows Mobile Smart Phones

I ran into Smart Phone not supporting another control.  It doesn’t support button controls.  The Smart Phone has a menu at the bottom that behaves as a button. I seem to have troubles finding this article when I need it, so here is a link to help me figure out the user interface options I [...]