Skip to content

{ Category Archives } Mac

learning the Mac

Native looking Mac apps using Python & wxPython

So, I went down the road of using wxRuby, but it seems that it is a dead or dying code base. Seems most Ruby-ists are interested in Rails, not in desktop applications. I also failed in my attempt at packaging up a ruby desktop app to make it appear native. I kept running into 64bit [...]

command line

One of the things that I love the most about my Mac is the command line.  I know the Mac is well known for it’s beautiful user interface, but that doesn’t stop at the graphical user interface.  It extends to the command line user interface as well.  One of the advantages of being based on [...]

Mac OSX Path

Great post on Mac Paths http://www.semioticpixels.com/2010/01/path-settings-on-mac-snow-leopard/

Compiling wxruby on Snow Leopard

I am trying to compile wxruby on Snow Leopard.  I am running into issues because wxwidgets 2.8 which wxruby 2.0.1 is based upon only compiles in 32bit mode.  I can compile wxwidgets 2.8.11 using 32 bit mode.  When I try to compile wxruby, I get errors.  I’m not quite sure what I need to do [...]

Mac Application Bundle

So, I packaged up my native looking Mac application in my own Application Bundle.  It was super simple to do. An application bundle is nothing more than a folder that has been renamed with the extension “.app” and conforms to a certain directory structure.  The directory structure looks like this: /Contents/ /Contents/Info.plist /Contents/MacOS/ /Contents/Resources/ /Contents/youricon.icns [...]

Native Looking Mac App with Ruby

Ruby is really popular to make websites because of Rails, but I want to write a native looking application using Ruby.  I’ve discovered wxruby which is a really cool cross platform GUI library for use with Ruby.  It is built on wxWidgets which is a C++ library for making cross platform GUIs that appear native because [...]

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 [...]

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 [...]

Change your Terminal prompt on Mac

I hate the default prompt for the Terminal in Mac.  It usually takes up most of my terminal screen real estate.  It shows me my computer name, my current directory, and who the logged in user is.  I never need to know my computer name.  I rarely need to know who the username is.  If [...]

Uninstall MySQL on Mac

Somehow, I either forgot my password, or I did something to mess up my MySQL instance.  it is a development machine, so I don’t really care about the databases on it.  I just wanted to remove it completely from my machine.  I actually had two copies of mysql installed.  One from Mac Ports and the [...]