mac

What is the benefit to running MySQL on MAMP on port 3306?

I've had a lot of problems trying to get MySQL installed on my Mac, so I caved and installed MAMP. MAMP sets its versions of Apache and MySQL to use ports 8888 and 8889. A lot of the MAMP tutorials (such as this one) mention that you should set MAMP's Apache and MySQL ports to their defaults of 80 and 3306, but they don't mention why (b...

QTKit PAL Mode

I used MyRecorder sample by QTKit, it records everything but I have a problem that my camera is PAL and the resolution of H264 encoding for PAL and NTSC are different. PAL is 724x568 and NTSC is 724x480. When I choose QT Profile for H264High, it by default takes only 724x480 NTSC resolution output file but my camera is 724x568 so the fi...

How to implement a multi-platform multimedia application?

On which technological basis would you implement a multimedia app, which has to meet the following requirements: Platforms: Windows XP/Vista, Mac OS X, Linux (nice to have) Should play audio (mp3) and video (H.264 would be great) from local disk I looked into things like Cocotron which is a cross-platform Objective-C API similar to C...

Why should I have a version control system if I use time machine?

I actually know that it's better to have an version control, but I wonder if Time Machine doesn't make a good job on this for lazy programmers? ...

Core Animation... cyclic animations?

To phrase my question as simply as possible, is there a way to create a core animation sequence to repeat over and over until a stop? Specifically, I'm making a custom class that I want to have a -start and -stop method that will cause it to pulsate. Writing the animation code for the pulse is not the problem, rather, how to make it rep...

Windows to Mac transformation

Hey all, I just have development experience in .Net and Windows... And now I really want have some hands on experience of development on Mac. So guys, how do I proceed (Well I'll get Mac first), suggestions please... ...

How do I get the speed of an Apple Airport from Perl?

I would like to be able to get the speed of the wireless interface under Mac OS X. I have a perl script that gets the other information for the wireless card but I still need to get the connection speed. For the moment I have statically set the airport speed with: $airport_rate = "54"; (see code below). What command could I use to get...

Setting a charset symbol in dylib

I use an old Powerbook G4. While trying to update the macports (sudo port -d selfupdate) following error exist. dyld: lazy symbol binding failed: Symbol not found: _locale_charset Referenced from: /usr/bin/rsync Expected in: /usr/lib/libiconv.2.dylib dyld: Symbol not found: _locale_charset Referenced from: /usr/bin/rsync Expect...

One-Click install for Ruby/Rails/SQLite?

I'm really excited to start programming in Ruby with the Rails framework; I've read great things about Ruby on Rails! I've gotten myself a couple of books, thumbed through a few tutorials, read some forum threads, but I'm already stuck on Step One: Installation. I guess I'm more used to the One-Click install local environments of MAMP. ...

Vim in Emacs

The question does not refer to some Vim-mode in Emacs, but to Vim inside Emacs. I am not waging any Editor-war. I just want to use Vim in Emacs. You can get to Vim in Emacs with commands "M-x term" and "vim". When I am using the Vim-Emacs, the typing is awkward. There are odd signs, such as "4m", "4mm" and "^?^?". The backspace and ...

Unable to update my Bash in Mac by MacPorts

I updated unsuccessfully my Bash to 3.2.48 by MacPorts. It seems that I do not have it active, since I get echo $BASH_VERSION 3.2.17(1)-release How can you make the newest Bash active such that I get it for my login shell? ...

How to hide or disable menu item in Mac OS X

I can get the menu handle from CreateNibReference function, but I don't know how to hide or disable menu item with the handle in Mac OS X? ...

Parsing a set of lines in Applescript

I am trying to parse a set of lines read from a file in Applescript. This is how my code looks: my status_dialog(indexData) set AppleScript's text item delimiters to return set indexFreq to (text items 1 thru 1 of indexData) indexData contains a set of lines. The line delimiter is not working. indexFreq returns me the whole set of li...

Flowchart app for OSX?

Hey guys! I'm working on a new software project, and the company I work for uses macs, so I don't have access to Visio. Is there any good flowchart software for OSX? The topic seems to be pretty popular on the mac forums, but with almost no good answers (most seem to end up at MS Word's flowcharts). So what do you think? Best flowch...

Unix Error on Mac

Hello, I've been trying to upload my app to an Iphone, but I get the error: "terminate called after throwing an instance of 'Security::UnixError' what(): UNIX error exception Command usr/bin/codesign failed with exit code 6" Any idea of what in the world... ? ...

Unable to have TTY switch for Ctrl-Alt F1 and Alt-F1...F6 in Mac

Problems: to have terminal mode for the keybinding Ctrl-Alt F1 to have TTY switch for Alt-F1...F6 Ubuntu has the above commands to move between different ttys. It seems that Mac does not have them activated. I did not find by Google any discussion about the topic. How can you activate the above functionalities in Mac? ...

Unable to find files which have been in the folder one minute in Mac's Zsh

I need to find files which have been in the folder Wastebasket exactly one minute. The files have been moved all over my computer to the folder. I run the following unsuccessfully find -atime n1m . I get all my files in the directory by the command, even ones which I just created. It seems that the option -atime is not correct. How ...

Getting rid of the focus rect on an NSCell. Only shows up when right clicking.

I have an NSCell subclass that I do all kinds of custom drawing in. The only time things seem to be entirely out of my control is when right clicking a cell to show the associated context menu. While showing it's context menu, the table (or cell - not sure which exactly is doing this) draws a focus rect. I would like to get rid of this, ...

Unable to have MacPorts' tab completion in Zsh

I get the following in including MacPorts' Bash tab completion to Zsh /opt/local/etc/bash_completion:[:48: unrecognized condition: `2' [ -- cut -- ] /opt/local/etc/bash_completion:[:62: unrecognized condition: `2' /opt/local/etc/bash_completion:69: command not found: shopt [ -- cut -- ] /opt/local/etc/bash_completion:3015: command not f...

Mac os X : load average

I'm wondering i always see my load average on my computer 1.76,1.31,1.08 at the moment. but what the hell does it mean ? ...