mac

Compiling Unix Version 6 in Snow Leopard

Hi i downloaded souce for unix version 6, i want to study it and test it. I am running Snow Leopard on a macbook pro. 1)Is there a way to compile it in mac. If i comile using make or gmake i am getting the following error. *** Error: Couldn't find an i386-*-elf version of GCC/binutils. *** Is the directory with i386-jos-elf-gcc in your ...

Storing temporary files

I would like to generate some temporary files in the course of my application. Specifically, I'm using AVAudioRecorder to record a file that I, upon stopping the recording, would like to load and edit/process. My question is: What is the appropriate standard place to create temporary files. Is there some generally accepted approach t...

Mac specific optimizations in ~/.gitconfig

I read that discussion about the content of "~/.gitconfig" on Linux: http://stackoverflow.com/questions/267761/what-does-your-gitconfig-contain I know some Mac specific optimizations, such as using "mate" as default editor: [core] editor = mate -w or using opendiff as diff editor: [diff] external = opendiff Do you know oth...

Chrome/Firefox: access source of an extension

Hi folks, Do Chrome or Firefox make your extension's source code open to the host machine? And if yes where are the respective folder on Mac? Cheers Parsa ...

Pasting text into emacs on Macintosh

I'm on a Macintosh and am using "terminal" for my shell. When I copy text from any window (via mouse drag then right mouse button menu -> copy) and then I paste the text (right mouse button -> paste) into a terminal with emacs running, it doesn't act as a paste. Instead, it is just like entering or typing in text. The problem occurs w...

how to mentioned custom UUID in plist file for new bluetooth RFCOMM service using max os x bluetooth api

Hello Experts, I am new to mac os x programming and want to create new RFCOMM bluetooth service with newly generated UUID. I read the Bluetooth Device Access Guide and learned that UUID need to maintain in plist file. But could not find how to maintain uuid in plist file. It will be great help to me if some one can provide sample plist ...

create mysql database on mac os x

I know this sounds a little ridiculous, but I'm just honestly wondering how I can create a MySQL database on my Mac OS X machine. I have MySQL installed (as far as I know) as well as PHP, and I'm wondering how I can create one. I have downloaded a sample PHP ecommerce site to kind of delve into what I'm trying to familiarze myself with...

Having a problem figuring out how to get Ethernet interface info on Mac OS X using ioctl/SIOCGIFADDR/SIOCGIFCONF?

Are you having a problem figuring out how to get interface info on Mac OS X using ioctl/SIOCGIFADDR/SIOCGIFCONF? I had a lot of trouble getting code that worked fine on Linux to work on Mac OS X today. ...

Adding JMenuBar to Flamingo JRibbonFrame?

I'm trying to port my app to Mac OS but as my program is based on Flamingo library it doesn't have any menu bar. As you may know Mac OS menu bar is fundamental part for any software, So Is there a way to add a menu bar to Mac OS and still using Flamingo? Thanks ...

NSApplication resigning front most application status: hide v. deactivate

Hi, I've got an application that needs to become the front most application after a timer expires and resign the front most status when the timer is started by pressing a button, e.g. click "start timer" -> app resigns front most application timer expires -> app becomes front most application I deliberately paraphrased things a litt...

RMagick Gem will not load in Ruby script

I installed RMagick on my MacOSX system and when I try it with IRB everything works fine: ~ $ irb -rubygems -r RMagick irb(main):001:0> p Magick::Long_version "This is RMagick 2.13.1 ($Date: 2009/12/20 02:33:33 $) Copyright (C) ..." => nil But when I try to put this in a simple Ruby script: #!/opt/local/bin/ruby require "rubygems" re...

FLOSS that implements badging and contextual menu in Snow Leopard's Finder

Apparently with Snow Leopard, due to rewrite of Finder in Cocoa and removal of Contextual Menu Plugins, it is no longer trivial to do either badging nor contextual menus, however Dropbox seems to both add a contextual menu in the managed folder, and add status badges. Is there an open source project that managed to solve this problem? ...

iPhone setting voicemail greeting via a web service?

If I am not wrong, iPhone Voicemail Greeting is stored on AT&t voicemail servers. We are planning to design an iPhone app (for NON-JAILBROKEN phones) to upload a music file (.amr format) to set user's voicemail greeting. Is there some kind of webservice or a protocol available to connect to AT&T voice mail server to do so? (iPhone's Pho...

can't install apt on macports

THe following error appears :info:build Compiling contrib/hashes.cc to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_apt/work/apt-0.5.27/build/obj/apt-pkg/hashes.opic :info:build Compiling depcache.cc to /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports...

Which Source Code Management System Suits My Needs Best? Git or SVN? How do you diff excel spreadsheets?

Hello again! I am currently looking at the efficiency and ease of our companies source code / resource management tools.. For the last couple of months i have been using Git to manage all of my web development code and images.. and for me it works fine. However some of my colleges aren't entirely comfortable using the command line. o...

Cocoa app interface randomly "disconnecting" from program code

I have a multi-threaded Cocoa app that processes images. The program has a progress bar and some text showing how far along the process is. This all works great. However, sometimes the interface will just freeze up and everything will stop updating. The progress bar stops moving, and the text stops updating in the percentage counter. How...

How to disable flashing terminal in Mac OS

when i enter terminals commands etc and hit TAB (file name completion) the whole terminal window flashes rapidly (if there is no unique filename for example). This is not good since for some people this can trigger a seizure, and for me it causes really bad headaches. Is there a way we can disable this flashing? ...

How to move GCC in osx from xcode to /usr/bin

I have the gcc compiler in "/Developer/usr/bin/gcc" but when i type in gcc into terminal it says can not be found, i assume this is because its not in the "/usr/bin" dir. So can i a) move gcc from the first dir to the second, or set some kind of shortcut pointing gcc to "/Developer/usr/bin/gcc" ...

Development folder structure on OS X 10.6

Hi guys, I have switched to Mac as my main development machine (coming from Fedora) and was just curious as to what people used as there development folder structure. For example in Fedora I always had ~/opt for user programs ~/src for source code I was working on and ~/bin for files I constantly executed. Is there a Mac de facto. What d...

Terminal displys wrong php version (Snow Leopard)

Need to downgrade php to 5.2.x, so I followed this tutorial: http://andreys.info/blog/2010-03-25/compile-php-5-2-on-osx-10-6-snow-leopard#comment-631 I'm on snow leopard 10.6.4, with xcode installed. So I compiled php5.2.x and completed the tutorial. phpinfo() loaded within the browser at htp://localhost says 5.2.x, Great!! But, Termin...