Apple / Mac

DNS, Lookupd and OS X

by damonp on November 15, 2007

in Apple / Mac

Pre-Leopard the command to force OS X to flush and reload it’s DNS cache was:

sudo lookupd -flushcache

In Leopard, lookupd no longer exists. Instead force a DNS cache refresh with:

sudo dscacheutil -flushcache

Popularity: 2%

MailAnnounce Applescript Source

by damonp on October 9, 2007

in Apple / Mac,Development

I have received several requests for the source of my MailAnnounce script that is able to speak the subject of mails using Mail.app and Applescript.

Source for version 1 of the script is now available.

Popularity: 1%

{ 0 comments }

Bootp Session Transmit Error

25 June 2007

Has anyone seen this error on a MacBook before: Apr  3 15:16:10 Phoebe configd[35]: DHCP en2: INIT transmit failed Apr  3 15:16:10 Phoebe configd[35]: bootp_session_transmit: bpf_write(en2) failed: No buffer space available This is a real pain in the ass when it happens. The only thing that seems to fix it is to reboot. The only [...]

Read the full article →

Network Printing from a Mac to XP

6 June 2007

I purchased a ‘free’ (with rebates) HP printer with my last MacBook last month. I had originally intended to list it on Ebay with a ton of other tech junk I need out of my house. This hadn’t happened and my MacBook still didn’t have a printer available to it (can’t find OS X drivers [...]

Read the full article →

Advanced OSX Mail Searches

25 March 2007

When you live and breathe email for work and play, it can be quite important to keep messages around for reference. In my business, client and project specific correspondence is supremely important as a record of what has been done, what needs done and project cost quotes among other things. The important information usually gets [...]

Read the full article →

Hack to Open Popup Pages in Main Window

15 December 2006

I hate popups and links that open in a new window. I can control where I want windows to open. If I want a new window or tab, I’ll use the appropriate key combinations when clicking the link. If a window opens in a popup without a menu bar or url bar, hit Apple + [...]

Read the full article →

Virtual IPs Under OSX

14 November 2006

To add a virtual loopback address: sudo ifconfig lo0 alias 127.0.0.2 netmask 255.255.0.0

Read the full article →

iTerm and Growl

13 November 2006

Recent versions of iTerm support Growl notifications. iTerm shows how to initiate Growl events from the command line with: make; echo $’\e]9;make done\007′ The example shows how to get an alert after a long make. I know I would never remember that command so I wrote a little Bash user defined function to do the [...]

Read the full article →

iTunes and Links to Music Store

20 June 2006

Why don’t we have the option to switch this to a search of or sort to that artist or album in our own library? In this age of hyperliked everything, I can’t believe something so simple isn’t.

Read the full article →

MailAnnounce AppleScript Update

25 April 2006

MailAnnounce is an AppleScript which can be used to speak the sender and subject of incoming mails using Mail.app. Due to the great feedback I received, I have cleared up a bug and added a few new features. v1.2 Changelog -now skips read messages, this correct a bug some users reported that would speak all [...]

Read the full article →