osx

Why does Mac OS sometimes launch the wrong binary when I click on a .app

I created this application that contains several binary files (let's say X, Y and Z). I have a .plist file that specifies that the application should launch X when opened. Everything works fine 99.9% of the time but sometimes, it launches another binary (Y or Z). This usually happens after something crashed in my application so I am gue...

os x process state UE

I've got process running that can't be killes. It's my EyeTV App and here is what 'ps aux' says: cb0 87583 1,0 3,4 812796 144236 ?? UE 21Nov09 2638:11.45 [.....]/EyeTV The process state is really strange cause I've never seen UE before. The manpage tells me U means Marks a process in uninterruptible wait, and E mea...

Get mach_absolute_time/UpTime() in nanoseconds in Python

I need to access the elapsed time since startup in nanoseconds from a Python program running on Mac OS X 10.6. I use the following Carbon calls to get this in C code: AbsoluteTime uptimeAbs = AbsoluteToNanoseconds(UpTime()); uint64_t elapsedTime = ((uint64_t)uptimeAbs.hi << 32) + uptimeAbs.lo; Is it possible to get to these functions...

function to call same shell command in dired

hi, i'd like to be able to call the same shell command on the marked files in dired without the need for emacs to prompt the command input as the command will always be the same. in particular, the command is "open" (for mac os x). i tried to hack the function dired-do-shell-command in dired-aux.el but i don't understand the interacti...

Deploy django under snow leopard server?

Any tutorials, how-tos or sth. about deploying django apps under snow leopard server? What do I need? Thanks! ...

Can python send text to the Mac clipboard

I'd like my python program to place some text in the Mac clipboard. Is this possible? ...

Unable to start MySQL from the terminal

I am quite new to the Macintosh, I have Mac OS 10.6 installed. I downloaded the mysql-5.4.3-beta-osx10.5-x86.dmg file and installed all the files properly. I have got MySQL server started in system preferences. Now I want to access MySQL from the terminal but I am unable to do it. I have tried mysql -u root. It shows "-bash: mysql: ...

Gems not found with Passenger in conservative spawn mode on Mac OS X

We are using Passenger locally on Mac OS X for development. I switched to conservative spawn mode to try to debug a problem with the MongoDB ruby driver. However, after I did this, Passenger can no longer find my gems. I get the application failed to start page with this message: Missing these required gems: aws-s3 >= 0.6.2 ruby-u...

MySQL lost after upgrading to Snow Leopard

I made a silly mistake of upgrading Leopard a tad too soon. I thought I dumped my mysql files but the last backup is about a month old. Now I upgraded the computer to Snow Leopard, and trying to run the old mysql server wasn't happening. So I read you must reinstall mysql with a newer version which I did and it ran just fine and starts...

OSX: number of buttons on attached mouse

I would like to offer tutorial text that changes depending on the number of mouse buttons available. For example, if there are two mouse buttons the text would say "Right click" whereas if there's only 1 button the text would say "Ctrl+click". Is there any API in Cocoa or Carbon that can identify the number of available buttons on the ...

How to connect to machine ip address & port via grails app

I'm running MacOS 10.6 with the default settings for my machine with Internet Sharing turned on. What needs to be configured to allow access to my machine's grails/jetty instance on a specific port? I can do 'http://localhost/' as well as 'http://192.x.x.x/' but if I were to set my grails app to run on a specific port, I can't access ...

python locale strange error. what's going on here exactly ?

Hello. So today I upgraded to bazaar 2.0.2, and I started receiving this message (I'm on snow leopard, btw): bzr: warning: unknown locale: UTF-8 Could not determine what text encoding to use. This error usually means your Python interpreter doesn't support the locale set by $LANG (en_US.UTF-8) Continuing with ascii encoding. ...

Xcode gcc exit status 1

first of all i am very new to all this. i recently upgraded to Snow Leopard and installed the Xcode + iPhone dev package, 3.1.2. I went on to install the Django framework + MYSQLDB handler. During the build stage, the terminal shows me the gcc exit status 1 error. But I have the Xcode already installed? where am I going wrong? Also whi...

Boost: MacOSX binaries for Boost

Are there any MacOSX universal binaries (at least i386/ppc for >=macosx10.3) for Boost? ...

Boost: how to build Boost under MacOSX

I am trying to build MacOSX universal binaries (I need at least i386/ppc for >=macosx10.3) of Boost. I tried a lot of different methods and options and versions and it all fails in the end with this crash: http://stackoverflow.com/questions/1823605/boost-what-could-be-the-reasons-for-a-crash-in-boostslotslot I guess this crash is beca...

How do I uninstall Python 2.5?

I recently upgraded to Mac OS 10.6 and didn't realise that it shipped with Python 2.6. I installed Python 2.5.4 and now it is the default Python installation. Can I uninstall Python 2.5.4 and keep 2.6? ...

mysqldb build error

i remember installing Python + Django + MySQL + MySQLdb on my 32-bit Mac with Leopard 10.5.7. I tried the same procedure with Mac Snow Leopard. But have unfortunately ran into a lot of errors... i dont know but something weird is happening. Please look at the error log: Amit-Vermas-MacBook:mysql-python-1.2.2 amitverma$ python setup.py b...

git: command not found

I am receiving this error when I try to use git lately. I'm not exactly sure when the error started as I rarely use git. I used to use it. I didn't change anything about it or my machine that I know of. Now it doesn't work. I've gone through and reinstalled the latest version using this installer, and I still get the same error in te...

C - massive # of posix threads spinning out of control and no longer creating new ones

I have an assignment in class that requires us to use POSIX threads and create n*(n-1)/2 of them to process a dataset of n elements. You can think of it as basically the classical "handshake" in probability. I know that for a large data set it's going to make the application CPU-bound and eventually it will spend so much time context s...

Mac version control with merge and support

I'm using a trial of Cornerstone and like the product but don't like the fact they have no support. Meaning, they never answer their email. I need a source control program that can handle merging through Subversion. Specifically, merging from a branch back into trunk. Cornerstone doesn't and from what I've read Versions doesn't eithe...