I am creating a very simple file search, where the search database is a text file with one file name per line. The database is built with PHP, and matches are found by grepping the file (also with PHP).
This works great in Linux, but not on Mac when non-ascii characters are used. It looks like names are encoded differently on HFS+ (Ma...
according to ADC:
You can access Open Firmware this by holding down Command-Option-O-F at boot time.
however, in reality this does not work on current hardware. Does anybody know if there is a way (through trigger-key's, etc) to get to an open firmware (EFI) console on contemporary architecture macs?
thanks in advance!
|K<
EDIT:...
Is there any way to test my objective-c code on windows..
is there any ide like xcode for windows to develop iphone applications.
...
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?
...
I've had a need to create an encrypted volume on my mac for the company source code. The requirements are not terribly stringent: If someone can log into the machine as me, they win, but otherwise, they should lose. With that set of requirements, you can make it so that the disk is automatically mounted at login.
...
I need to write a Ruby method that takes a word, runs it through OS 10.5’s Dictionary.app’s thesaurus function, and returns alternative words.
If the Ruby method ends up calling the command-line, that’s fine; I just need to be able to do it programmatically from Ruby.
After looking through Ruby OSA, I realize that the Dictionary is acc...
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...
...
I'm writing my first OS X Objective-C framework, but I do not know how to test it. How can I execute methods and classes in framework for testing purposes?
...
In the wikipedia article on Cocoa it says:
There are also open source implementations of major parts of the Cocoa framework that allows cross-platform (including Microsoft Windows) Cocoa application development, such as GNUstep, Cappuccino, and Cocotron.
Yet when I looked into whether Mac application Tweetie was available for windo...
I used this guide on Apple's website to enable PHP on my computer but I lost all my Apache configuration files in process. I ran this script which I found on Google to restore Apache on Mac OS X:
#!/bin/sh
# run with ./apache_refresh.sh
#If permissions error do: chmod u+x filename.sh
#WARNING THIS MAY DELETE OR CHANGE YOUR APACHE SETTIN...
I'm trying to use Launchctl to launch svnserve process but I keep getting an error saying "no plist was returned for:/Library/LaunchAgents/org.tigris.subversion.svnserve.plist". This is where svnserve is /opt/local/bin/svnserve and this is the plist file
Any thoughts what might be wrong here ?
<dict>
<key>Disabled</key>
<false/>
<...
I have terminal.app set to accept utf-8 and in bash I can type unicode characters, copy and paste them, but if I start the python shell I can't and if I try to decode unicode I get errors:
>>> wtf = u'\xe4\xf6\xfc'.decode()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
UnicodeEncodeError: 'ascii' codec can't e...
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?
...
On Linux, ulimit -n can be used to change or view the limit on the number of file descriptors for a process, and lsof -p nnn | wc -l seems to consistently report the actual file descriptor usage. But on Mac OS X, lsof -p nnn | wc -l can return a number higher than the limit. I suppose this means lsof is returning more than just file de...
Hi all,
Lets say you created a little Java Desktop app with a jar and some dependencies and possibly a license text file. I know there are plenty of Ant tasks that can generate installers, executables and proper Mac OS X applications including packaging them as ".dmg" files. Examples would be JarBundler and Launch4j
Does similar things...
I am trying to port a tool to osx which is designed to run on linux and freebsd. There is a case in the program where access to the EIP and EBP is need. This is done via the ucontext.
So i added a case for __APPLE__ to place a suitable access to the ucontext struct.
9887 #if defined(__FreeBSD__)
9888 *paddr = uc->uc_mcontext....
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...
On Linux, an application can easily get its absolute path by querying /proc/self/exe. On FreeBSD, it's more involved, since you have to build up a sysctl call:
int mib[4];
mib[0] = CTL_KERN;
mib[1] = KERN_PROC;
mib[2] = KERN_PROC_PATHNAME;
mib[3] = -1;
char buf[1024];
size_t cb = sizeof(buf);
sysctl(mib, 4, buf, &cb, NULL, 0);
but it...
I am trying to force 64 bit long integers on OS X 10.5.6. running on an Apple MacBook Intel Core 2 Duo. Here is my c code:
#include<stdio.h>
int main()
{
long a = 2147483647; /*== 2^32 - 1*/
long aplus1;
printf("a== %d. sizeof(a) == %d \n", a, sizeof(a));
aplus1 = a+1;
printf("aplus1 = %d \n", aplus1);
}
Compi...
If I wanted to write my own window manager for OS X (please dont respond with "whats the point"??), what APIs should I be looking at?
...