Flushing OS X DNS cache

Posted by Colin A. Bartlett Mon, 10 Dec 2007 16:39:00 GMT

I don’t know why it took me so long to learn this but this command is very handy:
dscacheutil -flushcache

update: I originally posted that the command was dnscacheutil. It’s actually just dscacheutil. I’ve fixed it above. I also learned this is a Leopard-only tool.

It’s equivelant to the following Windows, which was always very handy when changing DNS configuration around:

ipconfig /flushdns

Time Machine is Awesome 1

Posted by Colin A. Bartlett Sun, 18 Nov 2007 20:51:00 GMT

Nothing more to say.

It just rocks. So easy to setup. So easy to use.

Once again, Apple, I bow before thee.

Compiling Git for Mac OS X Leopard (10.5) 2

Posted by Justin Reagor Wed, 31 Oct 2007 03:48:00 GMT

The following is the exact compilation steps I took for compiling Git onto the new retail version of Leopard. Definitely a big change since my previous article on installing in Tiger (next to pre-installed SVN, bye bye CVS!)...

Commands
curl -O http://surfnet.dl.sourceforge.net/sourceforge/expat/expat-2.0.1.tar.gz
tar zxvf expat-2.0.1.tar.gz 
cd expat-2.0.1
./configure --prefix=/usr/local
make
make check
sudo make install
cd ..

curl -O http://kernel.org/pub/software/scm/git/git-1.5.3.4.tar.bz2
tar jxvf git-1.5.3.4.tar.bz2
cd git-1.5.3.4
make prefix=/usr/local all
make prefix=/usr/local test && echo $?
sudo make prefix=/usr/local install
cd ..

curl -O http://www.kernel.org/pub/software/scm/git/git-manpages-1.5.3.4.tar.bz2
sudo tar xjv -C /usr/local/man -f git-manpages-1.5.3.4.tar.bz2

Notes

You may need to adjust your default MANPATH environment variable. You can either apply something along the lines of…

export MANPATH="/usr/local/man:$MANPATH"

...to your .bash_login, profile or what have you. Or you can look into editing /private/etc/man.conf (or un-tar the manpages into a directory in your MANPATH already).

Also, no need to fiddle around with SVN bindings for Perl, or whatever the problem was with git-svn before.

You may also wish to surf our past articles hear on this blog for upgrading Git. The upgrading should be identical on Leopard.

Next Time

My next article will cover developing outside of a traditional distributed Git environment. Using Git to manage personal branching/merging/local copies, then committing to a main SVN repo. Happy hacking.

Here goes nothing...

Posted by Colin A. Bartlett Sat, 27 Oct 2007 00:51:00 GMT

I’ve got the Leopard t-shirt on and I’m ready to go!

Update!

Install complete! Took exactly 60 mins.

Reactions:

  • The installer ‘estimated time to completion’ said 2 hours and 58 minutes at first. It steadily declined but was never accurate at all. Oh well.
  • First boot up took for freaking-ever. To be expected, I guess.
  • My wireless seems finicky. Could just be my access point or something. I hope so. Because I kept loosing and regaining internet access. I’m plugged into wired now and it seems fine. Hopefully it’s not a bug or anything…
  • My CPU is churning hard core. Something called ‘mds’ is sucking it up. A web search shows that’s Spotlight. So maybe just a reindex.

But the most important news…

The rails stack seems to be functioning fine. Ruby 1.8.6 and everything. Got an app running; no problems.

So far so good! I can’t wait to try out the new Mail. It looks good enough to maybe switch to from Thunderbird.

Leopard Day, the Ruby on Rails way... 1

Posted by Justin Reagor Fri, 26 Oct 2007 13:40:00 GMT

Since everyone around here thinks I’m a huge, obnoxious Apple fanboy (and they’re all so completely right about everything…) I thought I’d simply share this link to a great wiki article on the new Rails/Ruby installation in Leopard (thanks Randy). Enjoy, and hope you get your free t-shirt!

Now that Leopard, the next release of Mac OS X, is available to everyone, you may wonder what changed from the Ruby developer’s perspective.

What’s New in Leopard? Ruby/Rails

Open new terminal window 1

Posted by Colin A. Bartlett Fri, 17 Aug 2007 00:37:00 GMT

I’ve always thought it would be nice to be able to quickly open a new terminal window in the same folder you were already in.

Enter a handy little script Randy pointed me to that does just that.

I put it in my home directory and then added this to my .bash_login:

alias new='. ~/openterminal.sh'

Now, I can just type ‘new’ at any prompt and up pops a new Terminal window which automatically cd’s to the same directory I was in.

Super handy! Thanks Randy!

Older posts: 1 2