osx

Ruby Package Include Problems

I'm trying to use the Optiflag package in my Ruby code and whenever I try to do the necessary require optiflag.rb, my program fails with the standard no such file to load -- optiflag message. I added the directory with that library to my $PATH variable, but it's still not working. Any ideas? ...

NMBLookup OS X returning inconsistant results

Hi all, We're trying to get SMB volume listings in our OS X application, and have been using NMBLookup, as suggested by Apple, to get listings. However, more often than not, we're not able to get a full listing of available SMB volumes using the tool. We've got a good benchmark in that we can see the full listing the Apple Finder gets, ...

Keyboard shortcut for restoring applications from the Mac OSX Dock?

Is there a keyboard shortcut to restore a minimised application window from the Dock? Almost all Apple Mac OSX applications respond to the Apple+M command which minimises the current application window to the Dock, which is fine. I can then use Alt+Tab to cycle through my running applications - including the minimised application, but ...

How can I test my web pages in Microsoft Internet Explorer on a Mac?

I want to test the web pages I create in all the modern versions of Internet Explorer (6, 7 and 8 beta) but I work mainly on a Mac and often don't have direct access to a PC. ...

Changing the font in Aquamacs?

I've recently had a need to do a bit of lisp editing and I found the nifty Ready Lisp package for OS X, which is great, except Aquamacs automatically uses a proportional font (which is idiotic, IMHO) and I want to change it to a monospace font. However, I'm not really much of an EMACS user, and the preferences menu in Aquamacs is less th...

"Beautifying" an OS X disk image

When I downloaded Skype, I noticed that, in place of a normal "disk image" icon, there was a custom icon, and when I double clicked on the icon, the window used a colorful image as the background, prompting me to drag the skype icon into the applications folder. How can I do that with my applications? Thanks, Jason ...

Reading data from a log file as a separate application is writing to it.

I would like to monitor a log file that is being written to by an application. I want to process the file line by line as, or shortly after, it is written. I have not found a way of detecting that a file has been extended after reaching eof. The code needs to work on Mac and PC, and can be in any language, though I am most familiar with...

Find all available JREs on Mac OS X from Java application installer

If Java application requires certain JRE version - how can I check its availability on Mac OS X during installation? ...

How can I perform an action n-many times in TextMate ( both Emacs and Vim can do it easily! )?

Emacs: C-U (79) # a pretty 79 character length divider VIM: 79-i-# see above Textmate: ???? Or is it just assumed that we'll make a Ruby call or have a snippet somewhere? ...

Disk Activity in Applescript

How can I poll disk activity in Applescript? Check to see if disk X is being read, written, or idle every N seconds and do something. ...

Using network services when disconnected in Mac OS X

From time to time am I working in a completely disconnected environment with a Macbook Pro. For testing purposes I need to run a local DNS server in a VMWare session. I've configured the lookup system to use the DNS server (/etc/resolve.conf and through the network configuration panel, which is using configd underneath), and commands lik...

Setting movie metadata with QTKit

I'm trying to convert old QuickTime framework code to the 64-bit Cocoa-based QTKit on OS X, which means that I can't drop down to the straight C function calls at any time. Specifically, I'm trying to find a way to write QuickTime VR movies with QTKit, as they require some special metadata to set the display controller. How can I do th...

Develop iPhone applications using Microsoft Windows

Possible Duplicates: ipod touch / iphone development on Windows? iPhone development on Windows I don't have a mac, but I wish to develop iPhone applications on Windows platform. Is this possible? ...

libxml2-p25 on OS X 10.5 needs sudo?

When trying to use libxml2 as myself I get an error saying the package cannot be found. If I run as as super user I am able to import fine. I have installed python25 and all libxml2 and libxml2-py25 related libraries via fink and own the entire path including the library. Any ideas why I'd still need to sudo? ...

Dynamically hiding columns in a NSTableView

I want to dynamically hide/show some of the columns in a NSTableView, based on the data that is going to be displayed - basically, if a column is empty I'd like the column to be hidden. I'm currently populating the table with a controller class as the delegate for the table. Any ideas? I see that I can set the column hidden in Interface...

How do you configure the Apache server which ships Mac OS X?

Mac OS X ships with apache pre-installed, but the files are in non-standard locations. This question is a place to collect information about where configuration files live, and how to tweak the apache installation to do things like serve php pages. ...

Best Budget SOA Web Application Platform For Mac + Linux + Windows?

I am a Windows guy with an ASP.NET background but I have a hosted Linux server (dedicated) on the Internet, and meanwhile I'm spending more and more time on my Mac. I want to start doing web app and web service (iPhone-to-Internet services) development on the Mac, as well as some server development on my Windows laptop, and then deploy o...

How to run a script as root on Mac OS X?

What should I type on the Mac OS X terminal to run a script as root? ...

Better terminal in Mac OS X -- reversing the control and command key-mappings

I'm trying to have the same KDE Konsole experience within Mac OS X. Here's my (overly complicated?) setup: I have Control and Command swapped at the System Preferences level. (Can't live without this) Parallels lets you, at the Parallels application level, also reverse Control and Command. So I can undo the System Preferences settin...

CGPathAddArc vs CGPathAddArcToPoint

Apple's CoreGraphics library defines two functions for describing an arc. CGPathAddArc adds an arc based on a center point, radius, and pair of angles. CGPathAddArcToPoint adds an arc based on a radius and a pair of tangent lines. The details are explained in the CGPath API reference. Why two functions? Simple convenience? Is one ...