Search results

  1. A

    Setting user memory limits

    Well, since limit only affects child processes, you would want to set the limit for a process that is the parent of just about every process. This would be /etc/rc. Someplace near the top of /etc/rc, insert your limit commands.
  2. A

    OSX - WinXP LAN

    In Network Preferences, create two Locations: One for ADSL, and another for the LAN. Configure each appropriately. You should not need the terminal to do this. When you are connected to the net through the PC, select the LAN Location from the Apple menu. When you are connected directly...
  3. A

    Cron Job For Permissions Inheritance

    Sorry, I was feeling quite terse at the time. The -R option causes the aforementioned commands to recursively descend into subdirectories. You can, for instance, "chmod -R anarchie /Library/Webserver/Documents" to make anarchie the owner of everything on your personal web server. If you don't...
  4. A

    PHP help please...

    Looks like you didn't completely set up mod php. Do you have a line like this in your httpd.conf? AddType application/x-httpd-php .php
  5. A

    C or C++

    Just....don't ask that. You'll start a religious war. Flip a coin or something. Or just learn C++, if you don't plan to use plain C, ever.
  6. A

    PHP help please...

    PHP files aren't CGI executables. Try putting them in /Library/Webserver/Documents.
  7. A

    Cron Job For Permissions Inheritance

    chmod -R perms files ... chown -R user files ... chgrp -R group files ...
  8. A

    Un/Mounting firewire drive.

    Well, the quickest way to unmount a FW drive is to disconnect it from the computer. Aside from that, you can use disktool -l to find out the disk which represents it, then disktool -e to eject that disk. You would want to unmount the disk itself(disk1, disk2, etc) and not one of its...
  9. A

    iTunes Temp Data?

    If those temporary files persist after you've quit iTunes, it's usually safe to remove them. This applies to just about any sort of temp file. Good applications will store their temp files in /tmp, which the OS flushes every restart.
  10. A

    Rogue process won't quit

    Well, I really can't say much about a process not responding to kill -9 unless it's in the clutches of a debugger... However, to avoid a hard reset, always try entering 'sudo reboot' in a terminal or over an SSH connection to flush the filesystem cache and attempt graceful termination of every...
  11. A

    [HOWTO] - Use niutil

    Note that if BigMac and Sidecar both run OS 10.2, they will be able to find each other's addresses using Rendezvous name resolution. If "local" is specified in Network Preferences' "Additional Search Domains", the names "BigMac" and "Sidecar" will resolve. If not, they can be looked up with...
  12. A

    Patch File Installation

    Generally, you'd cd to the directory where the files to be patched are, then run patch < /path/to/patchfile.patch
  13. A

    program file sizes

    Usually, that extra large helping of executable is the standard C++ library. If you write your "Hello World" in plain C, you will probably have a much smaller file.
  14. A

    compiling the GLC (GNU Common Lib) on Jaguar

    Actually, you should just be able to use ./configure --enable-machine=FreeBSD since that is the system most similar to OS X. It's worked for me.
  15. A

    Recursively delete files of one name in subfolders?

    Try this sucker: find / -name .FBCIndex -exec rm '{}' ';' I think I did something wrong, cause of all the quotes. Someone got a better way?
  16. A

    Start a GUI app as a daemon?

    I know that the & alone doesn't cause the program to detach from the terminal. You have to redirect its standard input, output, and error to someplace other than the terminal to fully detach it. Usually, you'd put /dev/null on stdin, and some logfile on stdout/stderr: ./smaug < /dev/null...
  17. A

    Unicode conversion

    Well, you can use [str cString] to get a C string, and just index that to get a character at a certain position. You are not responsible for freeing its memory. If you're just doing alphanumerics and not foreign characters, this is probably good enough.
  18. A

    Bash Config

    It appears you've installed a version of bash not built properly for OS X. The bash which comes with OS X works fine. Try downloading the bash source and building it from that. If you don't know how to build it, read the README and INSTALL files.
  19. A

    Unicode conversion

    Well, another method which may or may not be more efficient is to insert newline characters throughout the string... Why are you trying to log a string vertically to begin with?
  20. A

    Linking Problems, Undefined Symbols Error:

    You have to add the framework QuickTime.framework to your project.
Back
Top