osx

Where is PyGTK for Mac OS X?

Is there a binary out there for the current mac os x, python for PyGTK? I work with multiple desktop environments (mac, windows, gnome) and really consider python's lack of cross platform GUI's a problem. Does anyone know where I can find a built version of PyGTK and GTK for Mac? I cant clone the git repository, it keeps timing out. ...

Setting GCC 4.2 as the default compiler on Mac OS X Leopard

I'm sure there must be a way to do this. As you are probably aware the latest versions of Xcode (and in fact I think all versions of Xcode) on Leopard come with GCC 4.0.1 and GCC 4.2. GCC 4.0.1 is the default system compiler while GCC 4.2 is an optional compiler you can set in the Xcode project settings. Does anyone know how to set GCC ...

customize Finder 'get info' window?

...

OpenCV 1.1 Error Mac OS X 10.5.7 "couldn't create video channel"

Application works on Unix but is getting an internal error from OpenCV on Mac OS X. The rest of the programs seem to work. Seems to be related to quicktime. OpenCV Error: Internal error (couldnt create new video channel) in icvOpenCamera_QT, file /opencv/opencv/src/highgui/cvcap_qt.cpp, line 921 terminate called after throwing an inst...

How do I get TextMate to use Ruby on Rails by default?

How do I make TextMate use the Rails bundle by default? On some files it's enabled, and on others (including models) it's not, and I wish it would just assume that every .rb file is a Ruby on Rails file unless I tell it otherwise. Is there a project-level or global setting for this? ...

Using sqlsrv_connect on Platforms other than Windows

I've inherited some code that uses the sqlsrv_connect method to instantiate a connection to a SQL Server database. My personal development machine is an OS X box that I'm running apache an PHP on. I have an instance of SQL Server running in a virtual machine. When I attempt to connect to the database, I get the following error. Fatal...

OpenCV Video capture and fps problem

Hi to all, I'm capturing video from my webcam using OpenCV on MacOSX. It works fine but when I try to play on QuickTime my captured video it plays too fast. i.e. I capture from camera for 10 seconds but when I play on QuickTime the video is 2 seconds. I've tried to change fps from 25 to 10 and It's works quite fine, but I'm sure it's ...

AS3 StartDrag() Not working in OSX

I wrote some very simple code to replace the mouse Cursor in a flash application I am writing in AS3/FlexSDK. The code: var cursor:MovieClip = new Cursor_addElement(); canvas.addChild(cursor); cursor.startDrag(true); It works perfectly fine on XP and 2x Vista machines, but on OSX the cursor does not follow along with the mouse - it j...

Python OS X 10.5 development environment

Hi, I would like to try out the Google App Engine Python environment, which the docs say runs 2.5.2. As I use OS X Leopard, I have Python 2.5.1 installed, but would like the latest 2.5.x version installed (not 2.6 or 3.0). It seems the latest version is 2.5.4 So, I went to here: http://wiki.python.org/moin/MacPython/Leopard and sto...

Is there an API to do per-pixel Alpha Blend on GTK and OSX ?

I want to draw transparent windows (with alpha channel) on Linux (GTK) and OSX. Is there an API to do that ? Note that I don't want to set a global transparency, the alpha level should be set per pixel. I'm looking for the same kind of API than the UpdateLayeredWindow function on Windows, as in this example: Per Pixel Alpha Blend. ...

shell script to link specific files up one level

I've got a folder that's got a whole lot of folders inside, which each contain a movie file. Now I want to be able to see all these movies at one time (but I have to preserve the folder structure) so I wanted to symlink them all to the top level folder (flat view in Directory Opus would be the go here, but I'm on a mac). Here's my attemp...

OS X terminal command to resolve path of an alias

I'm writing a shell script which will rsync files from remote machines, some linux, some macs, to a central backup server. The macs have folders on the root level containing aliases of all files/folders which need to be backed up. What is a terminal command I can use to resolve the path to the files/folders the aliases point to? (I'll ne...

How does an OS affect how assembly code runs?

I'm hoping to learn assembly language for x86. I'm on a Mac, and I'm assuming most x86 tutorials/books use code that's meant for Windows. How does the OS that code is run on affect what the code does, or determine whether the code even works? Could I follow a Windows-based tutorial, and modify a few commands to make it work for Mac wi...

Trouble getting MAMP to work with PDO-MySQL

Problem: Doctrine test application isn't working because of driver issue. Setup: Mac OS X 10.5.7 (not server), MAMP 1.7.2, Doctrine 2.2.1, PHP 5.2.6 I am following the doctrine documentation to try to set up a development environment on my local machine. The output of running the page from the web (through MAMP) shows an empty screen (...

mySQL Query Browser connection using ssh

Does anyone know if there's a problem with the mysql query browser using connections over SSH on the Mac? I use the command: ssh -L33306:localhost:3306 user@host then I try to open a connection with the MQB pointing it to localhost port 33306 I get an error "Could not connect to MySQL instance at localhost..." What's odd is that this ...

Need help in compiling lighttpd on MacOSx

Hi. I try download lighttpd 1.4.23 source, and compile it on MacOSX 10.5.5. This is the error I am getting: $ ./autogen.sh ./autogen.sh: running `libtoolize --copy --force' ./autogen.sh: line 19: libtoolize: command not found I tried ask the same question on lighttpd forum, but I can't get any help there. Thanks in advance. ...

writing video from webcam using opencv

i am using JNA to be able to run opencv under java. works pretty fine until i need to write a video to the file system. the same code is running on windows without any problem (video is written using any of the cv_fourcc suggestions). however, the same code does not work under osx. the problem is i do not get any error at all. the video ...

Recommendations for a lisp setup on Mac OS X (any dialect)?

What is your Mac OS X (Intel) based lisp setup (of any dialect), how do you like it, and how painful was it to set up? I'm looking for a versatile lisp that is easy to set up, but if you feel strongly about investing more effort, or even money, I would like to hear why you think it's worth it. I am currently using newLisp, which was a b...

osx change file encoding (iconv) recursive

hi, I know I can convert a single file encoding under OSX using: iconv -f ISO-8859-1 -t UTF-8 myfilename.xxx > myfilename-utf8.xxx I have to convert a bunch of files with a specific extension, so I want to convert file encoding from ISO-8859-1 to UTF-8 for all *.ext files in folder /mydisk/myfolder perhaps someobe know the syntax how ...

Enabling tabs in xcode? Or lessening the pain of not having them?

I am currently using xcode and I find it's lack of tabs quite disturbing. I currently use command-shift-d to search through all the files, or ctrl-1 to open the history of files that were recently opened. It works but I find it less effective than just tabbing through the few files i am currently working on. Is there any way, third pa...