mac

I'm very sad cause migrating to Snow Leopard screwed up my ruby path.

Since I've migrated from Leopard to Snow Leopard I get $ ruby script/server Rails requires RubyGems >= 1.3.2. Please install RubyGems and try again: http://rubygems.rubyforge.org the only way to make it work is: $ /usr/bin/ruby script/server => Booting Mongrel => Rails 2.3.8 application starting on http://0.0.0.0:3000 So I guess s...

building of jcc fails on mac

I can not build jcc on mac os. Here's what fails. gcc -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -D_java_generics -DJCC_VER="2.6" -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers -I_jcc -Ijcc/sources -I/Library/Frameworks/Python.framewo...

Client MAC Address Wardriving

Does anybody know of an application that will only show you client wifi mac addresses? Ideally it would only tell you when a particular MAC gets detected. I dont care if its associated or just probing, i just need to be able to see if a particular MAC is detected in the air. This is why: My friend's Macbook was stolen, we decided to go ...

how to you toggle on and off a web proxy in os x from the command line

In OS X, you turn on and off a web proxy from System Preferences > Network > Proxies, by checking Web Proxy (HTTP) and designating the Web Proxy Server etc. and by clicking OK and then "Apply". This is way too many steps. Is there a way to do this all from the command line and a shell script? ...

Xcode: wordexp() does not work some times, returns 0 matched words for "~"

Hi, I'm seeing some weird behaviour when using wordexp() in a minimal C program when started within Xcode. I cannot reproduce this by starting the compiled binary from the command line. #include <stdio.h> #include <stdlib.h> #include <wordexp.h> #include <errno.h> #include <assert.h> int main (int argc, const char * argv[]) { int ...

Is it a bad idea to run two instances of a Cocoa application at the same time?

I am making a download and installing application that must run multiple times at the same time. However, is it smart to do so? My application uses the /tmp directory to save temporary downloads. Each instance of the application needs its own dock icon, that's the reason I use multiple instances. Is it dangerous to have multiple instanc...

Cocoa Programming Help! NSString and NSTextfield stuff!

Hi experts, thanks for going through my question. But I have something like this... I have an application that has a NSTextfield named userName, a NSTextfield named helloName, and a NSButton that starts the whole process. All it does is that the user types in his/her name in the Name textfield. when the user presses confirm, the Hello...

What does NSApp hide: actually do with the NSWindow instances?

Hi, I'm working on an NSWindow subclass and I'm running into some strange behavior that makes me question some of my assumptions about how windows work on Mac OS X. What precisely happens to NSWindow instances when [[NSApplication sharedApplication] hide: self] is called? All windows that do not return NO to -(BOOL)canHide disappear f...

How to run cable distance test over ethernet on macbook pro mb985?

I had an EeePC 701 and there was utility called "Atheros Ethernet Utility". The most important feature - it can test ethernet cable and show on what distance it damaged. Are there any analogues for Mac OS? Software, or port for macports? Thank you/ ...

NSThread - get bool value

Hello, I am trying to get the boolean value that's returned by -(BOOL)backupDropletUpdateAvailable through NSThread. To do this, I've tried the following: ` BOOL isAvailable = NO; [NSThread detachNewThreadSelector:@selector(backupDropletUpdateAvailable) toTarget:isAvailable withObject:nil]; if (isAvailable == YES) {//etc Which r...

What javac is Netbeans using?

My work project needs to be compiled and run under JDK1.5 and I'm on a Mac. I followed the instructions here to get 1.5 back on Snow Leopard, and it works fine when building from IntelliJ IDEA, or if I'm just in the same directory as the build.xml and try "ant CleanRebuild" When I "Run Target" in NetBeans they're all compiled with the ...

Test Case Writing Software for Mac?

I am looking for recommendations on test case writing software for Mac. I am aware of Seapine's Test Track software as well as Bugzilla, but I wanted to see if anyone else out there had recommendations? The software that will be tested is mainly in the iOS platform, though some apps are written to run on Android and in the OS X realms ...

How to disable "USB Over Current Notification" popups in the Finder in Mac OS X 10.6?

On an Intel iMac (Model MB324LL/A) (currently running 10.6.4), every few minutes (or seconds) I get a Finder popup window reading: Because a USB device was drawing too much power from your computer, one or more of your USB devices have been disabled. In Console, the associated message: USB Notificaton: The device "EHCI Root Hu...

Rendering text animations into a video file in Cocoa

Hello Everyone, I am after the following functionality in an app I am scoping. A user has the option to enter some set of text that will be overlaid onto a video file as animated text. In other words, the application is bundled with a stock version of the video containing no text, and the custom text entered by the user is used to rende...

Zend studio 7.2 code assist window

Does anyone know how to change the code assist font to a smaller size on Zend Studio ???. Using a 13" mac hence its too big. ...

How do I programmatically change the position of the cursor in a Mac terminal program?

How do I programmatically change the position of the cursor in a Mac terminal program? I'm teaching a couple of kids to program and we're learning by writing a little terminal game. I've done this with C# on Windows with SetCursorPosition(x, y) so I'm hoping for something like that. ...

How to make a shell script run in Mac when double clicking it ?

Hello , I have created a shell script to run a jar file in Mac : #!/bin/sh java -Xmx512m -jar test.jar; I have renamed this script "app.command" to run directly when double clicking it. And i have applied "chmod +x" command to it to have executable permissions. Now when double clicking this script, i get "Unable to access jarfile te...

What is the state of TWAIN on the Macintosh today?

I'm currently working on a project where we want to interface with TWAIN scanners on both the PC (Windows) and the Macintosh. On Windows, we basically have everything squared away and the code works successfully with the vast majority of scanners. On Mac OS X, we also basically have everything working and with the main scanner we used...

Any suggestions on where to learn C online in preparation of learning Objective-C

I've been programming PHP & mySQL for about 8 years now. I understand and make use of modern software architectures and OOP in my projects on a daily basis. I decided I want to learn something new. I finally decided yesterday that I want to learn C and eventually Objective-C so I can begin creating Mac / iOS applications. (Would you rec...

MacVim and Mercurial check-in

I'm trying to use MacVim as a default editor (on my Mac, obviously). I'd like to have MacVim to edit commit messages when I hg ci. Unfortunately when I do so (either by setting EDITOR=mvim or alias vi='mvim') MacVim pops up with an empty message (i.e. none of the boilerplate in the bottom half), and when I save that commit message I get ...