osx

How to restart a node.js server

I've installed and is running a node.js server on osx. I've dled a chat module and is happily running it. I've altered some pieces and need to restart the server to see the effects. I only know how to restart by closing the terminal window and then reopneing it and then running node chatdemo.js again. Any way to restart without closing...

What shell cmd to launch directory in MAC OS X

What shell command can i use to launch/open a folder in mac os x? I will be executing it in .NET ...

Is it possible to enforce shared-nothing multithreading at the level of the OS or programming language? (OSX, Objective-C)

I'm trying to implement an actor model of concurrency in Objective-C, because I want to avoid the infamous problems of shared mutable state, locks, semaphores, etc. It can be done, but it takes real discipline to avoid accidentally using shared state. One way to enforce the shared-nothing rule is to use separate processes instead of se...

How to convert python3-pyqt code into .app file for mac os x?

for python2.x py2app will do the work. But for python3 code which one is alternate to go ahead? Or any other way to get single .app file? ...

How to find Bundle Identifier from known PID?

I have the pid (process identifier) of an arbitrary running process. How can I find the bundle identifier (if any) of the associated application? ...

GLfloat handled differently by OpenGL ES iOS and OpenGL OS X?

First some context, I'm using OpenGL/ES exclusively for 2d drawing (eg. glOrtho(0, width, 0, height, -1, 1);). I'm drawing arrays of vertices with glVertexPointer()/glDrawArrays() On OS X vertex coordinates using GLfloat represent exact pixel coordinate values. On iOS I have to "scale" those same GLfloats using the following function (re...

IntelliJ OS X Services

I am using IntellJ IDEA 9.0.2 CE on OS X Snow Leopard. The Services menu never seems to contain any entries, even though I have installed several text services (which do show up in other applications). Is there a way to use these? I am relatively new to the Mac. Thanks. ...

Check if an application is running with PackageMaker

Using PackageMaker, how do I check if an application is running and pause the installation if it is? If it matters, this is not the application I am trying to install that I am checking for since I am installing a plugin. ...

Moving one word to left or right on Mac (in Eclipse)

We all love our keyboard shortcuts and on a Windows machine two of my most commonly used combos are Ctrl + left/right or Ctrl-Shift + left/right. I find these speed my development quite a bit. Now on a Mac you can Cmd + left/right which grabs the whole line. And in some apps Option + left/right will navigate a word at a time. I find in ...

How do you do a 3-way merge in FileMerge?

I see the option for specifying three files (left, right, and ancestor), but it doesn't seem to be possible to actually display the ancestor. The bottom pane shows the result of the merge. I'd rather see what the original content was, so I could understand the context for the left and right sides of the conflict. Is this possible? Fil...

How to write to the System.keychain?

I'm writing a preferences panel and I need to either update or store a password in the System.keychain for others to find. Here's the code I have so far: Boolean addOrUpdateKey(NSString *service, NSString *key) { OSStatus retVal; SecKeychainRef systemKeychainRef; SecKeychainItemRef kcItem; UInt32 pwSize = 0; char *password = N...

Bringing another app's window to front on Mac in C

How do I bring another app's window to front on Mac in C/C++? I have the app's pid. I found solutions for AppleScript, but I'm not familiar with AppleScript. (and also not with Objective C) Thanks! edit: I cannot use Carbon in this program, because it must be a 64 bit binary. edit2: I'm also interested in Carbon and Cocoa solutions. I c...

Flash + JQuery Tabs + OS X = Slow

Hey guys, I've developed a small javascript tabbed widget, using jQuery tools. Every single tab contains a Youtube video and you can switch from one video to the other. See a sample here: http://www.warriorlabs.net/index.php?/topic/174-lets-play-oblivion/ On Windows + Chrome / IE / Firefox, it loads up quite fast and "tabs things up ...

What are some practical uses of Lua in Mac OS X?

I see many text editors for Mac OS X that support Lua syntax highlighting, but I have yet to see an example of Lua being used in action in the actual Operating System. How is Lua being used practically? ...

show Pop Up in Full Screen Player ?

Is it possible to show a window on top of the full screen flash player or the HTML5 player? e.g. the player that used in Youtube? ...

Does anybody know how to access a remote sqlite database using objective-c?

I'm developing a simple macosx application and it needs to access a remote sqlite database (must be sqlite). I've been looking for an example on how to do it through ODBC (I don't know if ODBC is the best or easy way). Does anybody have any idea? Thanks! ...

How to install Orbited on OS X 10.6

I am trying to get Orbited working on OS X 10.6. Installing it in Linux was simple but I have seem to run into a roadblock. After installation when I try to run orbited server I get the following error Traceback (most recent call last): File "/opt/local/bin/orbited", line 9, in <module> load_entry_point('orbited==0.7.10', 'consol...

my eclipse stopped working today

Hi everyone Today I was running into problems with eclipse, like every time I closed a project a window popped up saying something like "error saving workspace" and complaining about apache xerces. I decided to download a fresh install, and now it won't even start. I tried many variants (classic, javase, c++), hoping there was some dis...

Catching TextDidChange or DidEndEditing of an NSTextView instead of an NSTextField

It seems that NSTextView does not have the notification DidEndEditing and TextDidChange (which both exist for an NSTextField). Is there any similar functionality I can get out of the NSTextView? If not is there no way to know when the user has edited the text of the NsTextView? ...

How to set fixed depth levels in DOT graphs

I'm creating a DOT graph visualization from a tree-like data structure but am having difficulties setting fixed level depths based upon data type. For example, if I had 4 nodes in a tree and A denotes a specific data type and B represents another it would like Graph_1: ROOT ...