I have trouble understanding the gcc compiler provided by OSX 10.6 snow leopard, mainly because of my lack of experience with 64 bits environments.
$ cat >foo.c
main() {}
$ gcc foo.c -o foo
$ file foo
foo: Mach-O 64-bit executable x86_64
$ lipo -detailed_info foo
input file foo is not a fat file
Non-fat file: foo is architecture: x86_64...
I'm trying to remove the blue "halo" outline that form elements have in Firefox on OS X. Using CSS, I can remove the halo in Safari on OS X, via:
input {
outline: none;
}
But this seems to have no effect in Firefox, nor does the -moz-outline property.
...
I wanted to try and use some features introduces in 10.5 (like Core Text), so I set the Base SDK and Deployment target both to Mac OS X 10.5
I am also certain that all referenced Frameworks have a path relative to the selected SDK, and the tooltip also currently says it is looking in the 10.5 folder.
When I try to compile it however, I ...
I'm trying to get audio queue working on an iphone app, and whenever AudioQueueStart is called it gives the "fmt?" result code (kAudioFormatUnsupportedDataFormatError). In the code below i'm setting the format to kAudioFormatLinearPCM, which surely is supported. What am i doing wrong?
data.mDataFormat.mSampleRate = 44100;
data.mDataForm...
I'm having trouble finding documentation about how exactly to go about "turning on" mysqli. I'm running OS X SL and, as I understand it, since php5 is installed, the mysqli extension should already be there as well.
Is this as simple as adding a LoadModule line to php.ini? If I need to re-compile php, does anyone know of a good link...
I'm using authopen inside one of my programs to modify files owned by root. As can be seen in the screenshot below authopen asks for a admin password. What I'd like to achieve is that the dialog shows my app's name and then passes the authorization to authopen.
Code
Launching authopen which returns an authorized file descriptor.
int...
Installing Mercurial on Mac OS X 10.6 Snow Leopard
I installed Mercurial 1.3.1 on Mac OS X 10.6 Snow Leopard from source using the following:
cd ~/src
curl -O http://mercurial.selenic.com/release/mercurial-1.3.1.tar.gz
tar xzvf mercurial-1.3.1.tar.gz
cd mercurial-1.3.1
make ALL
sudo make install
This installs the site-packages files ...
Hi all,
I'm seeing some "interesting" behavior in my program's link-local IPv6 multicast routines. It seems that if I set any of the upper 16 bits of the 112-bit Group ID field, then MacOS/X will no longer accept those multicast packets. My question is, is this a bug in the MacOS/X network stack, or is there some reason why setting th...
If I ALT+RIGHTCLICK on the Finder icon, I get a "Relaunch" option in the context menu. I would like to programmatically relaunch finder, if at all possible. I'm sure there is a better way to do it than to just kill it and let it restart. Assume I have the proper authorization / permissions to do so already.
Additionally, I would like...
I am using the Emacs keybinding on Komodo IDE where Komodo uses the command key for "Meta" by default. So you press Command-X when you normally press Alt+X for Emacs on Linux.
I want to use the actual Alt key .. so when I tried to assign Alt+K, Komodo informs that "This key combination is not available" (see screenshot below)
How do ...
I want to include in a script a check for a file input to see if the file/folder has a color set and if it does, which one... (I don't need help with the creation of this script, just need the command to check what color the label is).
eg, like these colors (grey):
http://img.skitch.com/20090923-t1xsphn47tdq64b8ksb43wh3e8.png
I would l...
I recently upgraded my MacBook Pro to Snow Leopard and "git pull" returns:
rakudo $ git pull
git: 'pull' is not a git-command. See 'git --help'
Did you mean this?
shell
rakudo $ git-pull
-bash: git-pull: command not found
I've tried reinstalling via macports, but to no avail. Then I saw this
rakudo $ git --exec-path
/Users/...
I am doing a clean install of OS X Snow Leopard and I was wondering what people think should go into the ideal web developer environment?
Can I get a good rundown of things you would do when setting up a clean system?
My main focus is HTML, CSS, PHP, and Actionscript work. But I would also like to dabble in other languages and framewo...
Dear All!
I am working on an Applescript, which does nothing fancy but asking Skype how many contacts are online... However, when the script was executed several times, while Skype was not running, and finally is running, then Skype opens uncountable dialog windows with a Skype API Security Request, asking whether or not to allow the Ap...
Hey!
I am working on an applescript, that is supposed to ask Skype over and over again, how many contacts are online etc...
The problem I stumbled upon is the following: in case the script was triggered several times, while Skype was not running and later when Skype is executed, then Skype asks very often (up to 100 times) whether or on...
I've implemented the simplemodal plugin for JQuery. Very nice btw! Where I'm having an issue, is I have a list of links that are generated from a database, when I click one, I make a "load" call and add the results to my osx-modal-content div. How do I call the osx plugin after my load completes? If I add class=osx to my a href, the moda...
I reinstalled mysql on my machine, and before that, deleted all the files. However, after the reinstallation, i tried running mysql, and got this error
mysql -u root
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
I did not set any password, and in fact, running mysqladmin gives the same error as wel...
I have a macbook I'm trying to do some development on. I have a program I want to build, and when I went to use make to build it I got a "command not found" error. I did some google and SO searches and it doesn't look like this is a common problem. Why don't I have make installed and how do I get it? I'm extra confused because I know I u...
When I do this command :
sudo port clean sqlite3
sudo port install sqlite3
I get this error :
---> Computing dependencies for sqlite3
---> Fetching sqlite3
---> Verifying checksum(s) for sqlite3
---> Extracting sqlite3
---> Configuring sqlite3
---> Building sqlite3
Error: Target org.macports.build returned: shell command " cd "...
I'm trying to translate some of the following sample code into RubyCocoa :-
SecAccessRef createAccess(NSString *accessLabel)
{
OSStatus err;
SecAccessRef access=nil;
NSArray *trustedApplications=nil;
//Make an exception list of trusted applications; that is,
// applications that are allowed to access the item withou...