Showing posts with label osx. Show all posts
Showing posts with label osx. Show all posts

Friday, June 8, 2012

Linux equivalent of the Mac OS X "open' command


I've found the "open" command in Mac OS X very handy in the command line. From "man open":

Friday, June 1, 2012

Finding current executable"s path without /proc/self/exe


It seems to me that Linux has it easy with /proc/self/exe. But I'd like to know if there is a convenient way to find the current application's directory in C/C++ with cross-platform interfaces. I've seen some projects mucking around with argv[0], but it doesn't seem entirely reliable.

Thursday, May 24, 2012

How-to articles for iPhone development and Objective-C


I am looking for an introduction into developing for the iPhone. Any recommendation? I do not speak Objective-C either, so tutorials on that would not hurt either.

Sunday, May 20, 2012

Easiest way to simulate no free disk space situation?


I need to test my web app in a scenario where there’s no disk space remaining, i.e. I cannot write any more files. But I don’t want to fill my hard drive with junk just to make sure there’s really no space left. What I want is to simulate this situation withing a particular process (actually, a PHP app).

How to learn how to program?


I would like to know the best methods for learning to program. I've been directed towards the Python language because I was told it is good for beginners. I ultimately want to make games for OS X/iPhone.

Sunday, April 22, 2012

Tuesday, April 3, 2012

Thursday, March 1, 2012

Key-Value-Observation — Looking for a more elegant solution to respond to value changes


I've run into a frustrating feature of KVO: all notifications are funneled through a single method ( observeValueForKeyPath:.... ), requiring a bunch of IF statements if the object is observing numerous properties.

Saturday, February 25, 2012

Java - Get first and last name of user


Here is my situation.



I am writing a program that will store a database. Currently, the way of identifying the user is by their computer user name. I am very desperate here, so any ideas will work. I am looking for ANY method (doesn't always need to work) for BOTH OSX and Windows computers that will somehow fetch the user's first and last name.