snow-leopard

Creating an alternative to bash for Mac OS X

Is a shell a normal CLI application, or is it different from an application that accepts input from standard input, and outputs the result on standard output? ...

How do I set the time and date using AppleScript (or any other type of script) at start up?

I need to set the date and time on my Mac (Intel, Snow Leopard) to a specific date and time each time it boots. Does anyone know how I can accomplish this using AppleScript or something else? ...

Error installing memcached gem on Snow Leopard - wrong architecture?

I'm having an issue installing the memcached ruby gem on my Mac Pro machine with OS X Snow Leopard (10.6.4). Memcache is installed and working fine and for most projects I use the memcache-client gem without issue, but this current project I need to use the memcached gem instead. Installing the gem with env ARCHFLAGS='-arch x86_64' gem...

How do I fix my zsh prompt now that I've upgraded to snow leopard?

I recently upgraded my system to snow leopard and now my prompt doesn't work properly. I have this line in my .zshrc file: PROMPT='%{$fg_no_bold[cyan]%}%n@%{$fg_no_bold[red]%}%m%{$fg_no_bold[green]%}$(git_branch)%{$reset_color%}: ' (where "git_branch" is a function that give me information about the current git branch I'm working on)...

missing locale_t

Installing gtk 1.2 (package name gtk1) with macports chokes on the final make, in libintl.h line 440. extern locale_t libintl_newlocale (junk, stuff, stuff) The compiler can't find locale_t, and I'm not doing any better. The file imports locale.h, which doesn't exist, and xlocale.h, which doesn't define this type. Where should loca...

PHP doesn't run through Snow Leopard Web Sharing

I've followed all the tutorials and uncommented the relevant lines in httpd.conf, but PHP files do not render under Web Sharing. The server just serves up the source code instead of running it. I know that PHP works, because I can run it straight from the Terminal using the "php" command. What is happening here? ...

Starting a file server (possibly NFSD) in snow leopard without requiring root?

I want my OS X app to share files via the loopback device. I want to do this so that my app can make a directory of frequently changing, read only files available to the user without messing with the users home directory. The files will be severed from the Application Support directory but the user will not have to concern themselves wit...

Error installing Ruby 1.8.6 and openssl using RVM under Snow Leopard

Hi, I'm trying to install ruby 1.8.6 on Snow Leopard using rvm. I tried: rvm install ruby-1.8.6-p111 and got an error explaining make couldn't find openssl. make[1]: * [openssl_missing.o] Error 1 I then tried: rvm install ruby-1.8.6-p111 -C --with-openssl-dir=/System/Library/OpenSSL (Snow Leopard seems to come with openssl and this s...

Python 3.1.2 + Snow Leopard + lxml + XMLSchema

Hi folks, I'd like to use lxml library to validate XML Schemas in Python 3.1.2. Since the Snow Leopard MAC OS comes with the Python 2.6.1 installed, firstly, I downloaded the Python 3.1.2 automated installer at http://www.python.org/ftp/python/3.1.2/python-3.1.2-macosx10.3-2010-03-24.dmg and installed it. Secondly, I downloaded lxml 2...

Is there a library / framework that allows to program a Carbon application using C++ classes?

Is there any library that allows to create a Carbon application using C++ classes? ...

gprof on snow leopard problem

Problem lies in the fact that gmon.out file doesnt show correct data. All times are 0, and nothing is measured. gmon.out file is normally generated. I am using eclipse ide for c++, and linking, compiling and running programs as normal. Any help? ...

Installing PIL on Snow Leopard -- NOTHING WORKS

I'm trying to install PIL on Snow Leopard, using Python 2.6.1, GCC 4.2.1, PIL 1.1.7, and have tried with both libjpeg6b and libjpeg7 -- nothing works. I've cleared out every trace of libjpeg/pil/zlib from fink, tried various compiler options, etc. and used http://jetfar.com/libjpeg-and-python-imaging-pil-on-snow-leopard/ and http:// www....

Change the gcc version that distutils uses

I'm on Snow Leopard, and want distutils to use gcc 4.0 and not 4.2, can anyone tell me how to make it do that? I've tried changing the /usr/bin/g* symlinks, and setting the C* environment vars -- but to no avail. Any thoughts? ...

MySQL + Snow Leopard + 32 Bit + Ruby on Rails = uninitialized constant MysqlCompat::MysqlRes (HELP!)

So i'm running Snow Leopard on a BlackBook. I'm attempting to get rake db:migrate to work with this project but I get the MysqlCompat::MysqlRes error. Is there any special way to install or build the gem and/or the actual MySQL binaries themselves to get this to work on my machine? ...

Obtaining information about the application that owns the active window

I am sure it's something easy, and I am not looking to the right documentation. I need to get information about the application that handles the active window. The code I need to write needs to intercept some custom gestures, and return to the application an event that depends from the application itself. ...

provisioning profile problem after upgrading to snow leopard??

i just upgraded my macbook OS to Snow Leopard but all the provisining profiles were deleted..Do i need to create new provisioning profiles for all applications or just copy my bACKUP OF provisioning profiles folder to the Library(havent installed xcode 3.2 iphone sdk4 yet)?? ...

Cocoa Application Template - MainMenu.xib - Main Window

Hey there, When you create a new application in Xcode, it automatically creates a AppDelegate and a MainMenu.xib. The latter also contains the application main window, which is linked to the AppDelegate as an IBOutlet. What I tried to do is, use a MainWindow from a different xib-file. However, there's absolutely nothing I can do to pre...

generate new Certificate Signing Request after upgrading to Snow Leopard???

i recently updated my mac to Snow Leopard. But due to it all my provisioning profiles have been deleted. I didnt keep the backup for my keychain so i downloaded my Certificate Signing Request again from apple developer program and installed it in my mac.So to upload one of my old application i created a new App Id with a new Provisioning...

how do i install PHP with JSON and OAuth on Mac Snow Leopard?

i want to use the dropbox api via this library http://code.google.com/p/dropbox-php/ ...

Install Ruby support for VIM on Mac OS X

Mac OS X 10.6 (Snow Leopard) has VIM pre-installed (version 7.2), which is great. It also has Ruby pre-installed (version 1.8.7) which is great too. However, I want Ruby autocompletion in VIM. Looking up the VIM version (vim --version) shows -ruby (i.e. ruby support isn't enabled). How to enable ruby for my VIM installation? ...