mac

Mac text editor for Ruby on Rails

My text editor of choice for PHP work is Panic's Coda. But for Ruby on Rails, its autocomplete feature is continuously in my way and ROR's standardization on 2 space tabs does not play well with Coda's settings. I've been going back to TextMate for ROR work, but was wondering if there were better options. ...

Java App on Mac asking for allow network connections everytime

My Java.app broadcasts a packet on the network as soon as it starts up. Everytime I start this app, the Mac asks me do I want to allow network connections blah..blah.. Can I use info.plist or something to allow network access to this app and not bother the user who has trustingly downloaded and installed my app. Thanks ...

How to remove files and directories quickly

I am using a mac. When I use the "rm" command it can only remove files. The "rmdir" command only removes empty folders. If you have a directory with files and folders with files and folders in them and so on. Is there anyway to delete all the files and folders without all the strenuous command typing? Remember, I am using the mac bash sh...

Ruby Rails Mongrel Sever failing to serve OXS1.6

Hi there I'm fairly new to Rails and the Mac, and doing my first deploy... I'm trying to set up my rails app on a brand new Apple mini-server running OXS1.6 (Snow Leopard). It is currently running fine on my new iMac i7 (same OS). I start mongrel with this command: mongrel_rails start -e production -p 3000 -d -a 127.0.0.1 --debug A...

Netbeans C++ not finding standard libraries (Macintosh)

Hello everyone! I am trying to use Netbeans 6.7 (on a Mac) to create C++ applications. I started out with the standard "Hello World," just to test if everything was working correctly. First try std and could not be found. So I tried reinstalling the developer tools on my Mac OS X disk. After that Netbeans updated its c++ compiler info,...

the choice for video capture in Mac OSX?

What is the best choice for webcam video/image capture under Mac OSX with C/C++? It seems that Apple recommended QTKit, but it is a Objective-C library. Any sample code to do the job? ...

NSView -(void)keyDown in console program

I'm not getting the -(void)keyDown callback on my inherited NSOpenGLView (note that mouseMoved does not work either though I do setAcceptsMouseMovedEvents:YES, but that is not an issue yet). It implements - (BOOL)acceptsFirstResponder { return YES; } but still no luck. My knowledgeable friend implied that it might have something t...

How to add a App by PackageMaker In MAC?

I used packagemaker to package a App, now I want to add another app with a option, if user check the option , it can be installed automatically, because another app will be packaged with packagemaker, so I didn't include it with a folder with packagemaker, how to do it ? Thank you !!! ...

PHP Path issue running backticks/exec()

Hey all I'm trying to run a java jar file from the command line and within the the execution it gives a path. Withing this path their are spaces and this is causing the issue. ie foreach($paths as $path): $f = `java -jar /OCR/ocr.jar /Folder/$path /ocr/output.txt`; echo "<pre>$output</pre>"; endforeach; If you can see the space in b...

How to programmatically detect Mac OS X Server Edition?

Is anybody knows any API that can help to distinguish Mac OS X "Server edition" from "Desktop edition"? My application should know on which edition of Mac OS X it currently running. (Server or Desktop) ...

Default window shadow dimensions for Snow Leopard?

I would like to emulate the default shadow applied to NSWindows with a CALayer shadow. I can't quite figure out the exact values for the the following properties though: theLayer.shadowOffset = ?; theLayer.shadowRadius = ?; theLayer.shadowOpacity = ?; I assume that the shadowColor is black (the default). Does anyone have an idea wha...

Connecting to Python XML RPC from the Mac

Hi, I wrote an XML RPC server in python and a simple Test Client for it in python. The Server runs on a linux box. I tested it by running the python client on the same linux machine and it works. I then tried to run the python client on a Mac and i get the following error socket.error: (61, 'Connection Refused') I can ping and ssh i...

Simple CalendarStore query puts application into infinite loop!?

Hi, I've been looking at adding iCal support to my new application and everything seemed just fine and worked on my Mac OS X 10.6 Snow Leopard development machine without a hitch. Now it looks like depending on what is in your calendar the very simple query below: - (NSArray*) fetchCalendarEventsForNext50Minutes { NSLog(@"fetchCalend...

On a Mac how to determine a user logout is occuring

Hello All, I am very new to the Mac platform and Objective-C in general and in my application I would like to know how to determine that a user is logging out and perform some actions prior to this. Any info or pointers for this will be greatly appreciated. Regards, -Jim ...

"blkclr (mach_kernel)" shows up in mac's shark profiler. What does it do?

I am profiling a C program using Mac's Shark which shows that some of CPU time goes to "blkclr" in "mach_kernel". What does this kernel function do? I speculate it is related to memory allocation, but I am not sure. I have googled for some time, but could not find the answer, either. Does someone know this? Thanks in advance. ...

What are the possible ways to play audio from octave on a Mac?

playaudio() dies because there's no /dev/dsp. None of the outputs from saveaudio() in various formats seem to be playable in QuickTime or VLC. Ideal of course would be something like playaudio(), saving a file and playing it is a work-around that's hideously sub-optimal, but better than nothing. ...

Assembly Programming on Mac

I am on a Mac with Snow Leopard (10.6.3). I hear that the assembly language I work with has to be valid with the chipset that you use. I am completely new to this I have a basic background in C and Objective-C programming and an almost strong background in PHP. I have always wanted to see what assembly is all about. The tutorial I'l...

youtube video on Mac os?

I have inserted a video from youtube into a DIV tag, used the actual "embed" code found on youtube site. and used jquery to show/hide the div. when activated, the flash video shows perfectly in the div, when clicked it plays as usual the only problem i have is when someone using a Mac, and clicks on play, the flash video disappears. thi...

What is the usage of NSResponder's indent:?

NSResponder has a method you override called - indent:, but unsure when it would normally be activated. ...

"Exception: No extension found at None" when trying on use Selenium Firefox WebDriver on a Mac

Any ideas? In [1]: from selenium.firefox.webdriver import WebDriver In [2]: d=WebDriver() --------------------------------------------------------------------------- Exception Traceback (most recent call last) /usr/local/selenium-read-only/<ipython console> in <module>() /opt/local/Library/Frameworks/P...