mac

Charset and UTF-8 in a downloaded text file on a Mac

We have a PHP/MYSQL application that collects user input, including special characters like ø,ü,ñ, etc Database is capturing them, and they can be seen via PHPmyAdmin. Download on windows is fine. Display on a mac browser is fine. When users download the text file on a Mac OSX, the unicode characters come out as other characters. If ...

Best F# IDE for a Mac

I'm trying to convince a friend of mine to switch from OCaml to F#, however they are programming on a Mac. What is the best F# development experience on top of OS X? From looking at a similar question on SO, it appears that the F# Addin for MonoDevelop is my best bet. Are there any better alternatives? ...

How to set a folder as classpath in jarbundler

Hi using jar bundler of Mac 10.5.7. I can set any file as classpath. I have a folder which contains some database files. In my java program I am using this path. So how to set my folder in "class path and file section" in jarbundler. http://developer.apple.com/Mac/library/documentation/Java/Conceptual/Jar%5FBundler/Packaging/Packaging.h...

debugging php on mac?

Hi All, was wondering what was the best way to debug PHP on my local machine. I use MAMP on mac os 10.5 thanks, Patrick ...

Applescript to launch iTunes with a specific library

I would like to write an AppleScript that would allow me to launch iTunes with a given Library instead of having to hold down the Option key and browsing for one. I'm already aware of Doug's Library manager, which is not quite what I want. The AppleScript would be for a specific library. ...

Atomic file save on Linux without losing metadata

I'm working on a Perl-based file synchronization tool. It downloads files into a temporary directory (which is guaranteed to be on the same filesystem as the real file) and then moves the temporary files into place over the old ones, preserving metadata like permissions, ownership, and ACLs. I'm wondering how to achieve that last step ...

Mac OS X 10.5 Apache and Subversion upgrade alternatives

I've found myself down a rabbit hole and would like advice. It looks like Mac OS X 10.5.8 comes bundled with a pre-configured version of Apache 2.2.11 (located in /usr/sbin), PHP 5.2.10 (located in /usr/bin) and subversion 1.4.4 (located in /usr/bin). I have installed MAMP for MySQL 5.0.41 (located in /Applications/MAMP/...) which come...

In applescript, how can I access the keyboard shortcut of a menu item?

I'm trying to figure out the keyboard shortcut (e.g., shift+cmd+S) of a given menu item in Applescript. The "Probe Menu Bar" script has helped me to access the menu items and even inspect their properties and such, but I've been unable to discover which of these will print out the keyboard shortcut. The probe script is like this: tell ...

Create a Mac Application Installer and Passing Arguments on Launch

Couple questions on creating a mac installer. 1) Should any frameworks from /Developer/SDKs/ be included/packaged into the application file? 2) When we normally launch the executable we pass it an argument to point it at our servers, is there a way to encode this information into the Unix Executable File found in Contents/MacOS/? Than...

Where can I find RSS feeds for Xcode Documentation?

Occasionally I like to work completely disconnected from a network. In those cases it's really nice to have complete sets of documentation on my Mac. Xcode supports subscribing to feeds of documentation. I've subscribed to the sets that I'm interested in but there's a problem: It doesn't appear that the lists are up to date. I'd like...

Swing object: first setText() gets "stuck" when using Mac Java SE 6

Hi there, I am a Java newbie trying to maintain an application that works fine under J2SE 5.0 (32- and 64-bit) but has a very specific problem when run under Java SE 6 64-bit: [Tims-MPB:~] tlynch% java -version java version "1.6.0_15" Java(TM) SE Runtime Environment (build 1.6.0_15-b03-226) Java HotSpot(TM) 64-Bit Server VM (build 14.1...

Delete htaccess credentials in Safari

I have an app that logs in via .htaccess. When the person wants to logout, I use: function logout2() { try{ var agt=navigator.userAgent.toLowerCase(); if (agt.indexOf("msie") != -1) { // IE clear HTTP Authentication document.execCommand("ClearAuthenticationCache"); } else { var xmlhttp = createXMLObject(); xmlht...

Problem with NSStream SSL Connection

Hi all, I am using NSStream with SSL property for socket connection. It works fine when I use the local IP address such as 192.168.1.77. But if I use any server like www.xyz.com (it has SecurityLevelTLSv1), it shows an error error code:-9843, Message:Operation could not be completed. (NSUnknownErrorDomain error -9843.) Here is my code: ...

export to MP3 from quicktime API

A question for Apple,QT programmers. Would like to know if it's possible to export a Movie object to MP3 using the QuickTime API. Preferably the ConvertMovieToFile function. I've looked at QTComponentTypes.h but don't see an entry for MP3. I need to export audio in a format that can do > 4GB. ...

Turning Safari Web Clips into HTML

Safari's "Web Clip" feature is nice because you can take a section of a web page and access it dynamically from the desktop. This is especially cool when you are using it to "save" streaming videos and the like. What I want to do is embed one of these into an HTML page. However, unlike real widgets that are coded/WYSIWYGed, Safari doesn'...

how to collect system info in osx using objective c

Is there any method / API defined to collect system info in osx. I want to write utility which will collect hardware information like CPU,RAM,Network adapter. Any idea ? Thanks in advance. ...

Carbon-emacs: re-enable hash key?

How can I re-enable the hash (#) key in carbon-emacs on the mac? I've tried everything I've come across in google and still can't get it working. My config file currently looks like this: (require 'redo+) (require 'mac-key-mode) (mac-key-mode 1) (setq default-input-method "MacOSX") (setq mac-command-modifier 'alt mac-option-modifier 'm...

How to know what all software are there in system in os x using objective c

Is there a way to find out what all softwares are installed / present in OS x, programmatically using objective C. any help will be appreciated. Thanks in advance ...

How to check JRE Version before application installed, Mac Installer

Hi I want to check JRE version before my application is installed in Mac OS. If JRE version is not greater than 1.5 then I want to show a dialogbox to the user to install JRE afer and installation should exit. Othewise Installation should work fine. How to achieve this functionality. Whether I have to write any script and where to execut...

passing pointers or integral types via performSelector

I am mixing Objective-C parts into a C++ project (please don't argue about that, its cross-platform). I now want to invoke some C++ functions or methods on the correct thread (i.e. the main thread) in a cocoa enviroment. My current approach is passing function pointers to an objective-c instance (derived from NSObject) and do performSel...