Search results

  1. macbri

    Date and time slow , sometimes freeze

    Not seeing the problem here... what happens if you change the timeserver to Apple Europe or Asia? Or pick a different timeserver, for example type in something like: 0.pool.ntp.org
  2. macbri

    Smb error -36 always in Finder, Terminal works

    ping whatever-the-dnsname-is.com?
  3. macbri

    Astonishing....

    A town called Julian used to have a Chirstmas shop open year-round. Nothing like wandering around in the Southern California sunshine to suddenly see christmas trees, lights, fake snow in the window, etc....
  4. macbri

    How can I see who I BBC'd in Mail?

    If you're viewing a sent message, from the Menu select View -> Message -> Long Headers (or hit Shift-Apple-H) and it should show the BCC field.
  5. macbri

    Php, Exec();, and iTunes.

    Ok so now we know the answer. Maybe you can use Apache's "suxec" to handle this more securely. Check out this write-up on how to use it: http://apache-server.com/tutorials/LPsuexec.html
  6. macbri

    Php, Exec();, and iTunes.

    Hmmm, maybe the osascript will only work if it's run by the user who "owns" the current login session... Try this to test (note this is unsecure so it's best to put things back the way they were once the test is done): (1) Stop the web server (2) Edit /etc/httpd/httpd.conf and set the User...
  7. macbri

    Php, Exec();, and iTunes.

    Open two terminal windows. In one: sudo tail -f /var/log/httpd/access_log In the other: sudo tail -f /var/log/httpd/error_log Now connect to your web server to view the PHP file, and see what (if any) errors or messages are reported.
  8. macbri

    Php, Exec();, and iTunes.

    Do you want to post the "nowplaying" script, since if other commands work with exec, this might well be the culprit?
  9. macbri

    Php, Exec();, and iTunes.

    Yes, /usr/bin/php is the default PHP. You'd have to invoke php from the command line as follows: /usr/local/php5/bin/php somescript.php
  10. macbri

    Php, Exec();, and iTunes.

    Have you altered your php.ini file also? Try having PHP report everything (notices and warnings as well as errors) by setting error_reporting in your php.ini file: error_reporting = E_ALL then restart the web server. Note that you can also test PHP scripts with the "php" command. Say your...
  11. macbri

    Php, Exec();, and iTunes.

    tuaw.com has exactly what you're looking for. Rather than put the command in a an executable script as they demonstrate, you could just use the "osascript" command directly in an exec() call. See: http://www.tuaw.com/2007/04/02/terminal-tip-now-playing-info-from-the-command-line/
  12. macbri

    Search and replace using bash script?

    The 'sed' command will do the trick. Say for example you have a text file "input.txt" and you want to replace every occurance of the word "Hello" with "Goodbye". The output will be in "output.txt". In the terminal, you can do: sed 's/Hello/Goodbye/g' input.txt > output.txt In the sed command...
  13. macbri

    Bobw Passed Away

    My guess is he's fixing St. Peter's Mac ;) Bob - we'll all miss you!!!
  14. macbri

    python 2.4?

    I got Python 2.5.1 in an installable package from http://www.python.org/download/. It installs in /Library/Frameworks/Python.framework/Versions/Current... could cause conflicts down the line with "official" Apple releases, although I've been using it without problems so far... YMMV of course
  15. macbri

    Hex editor for Mac to open file larger than 2 GB.

    Hex Fiend, written by an Apple Developer no less. Requires OS X 10.4. According to the website it's been tested on files up to 118GB.... :)
  16. macbri

    update file metadata from the command line

    AppleScript can do it, so combine a one-liner AppleScript with the "osascript" command and you get something like: osascript -e 'tell application "Finder" to set comment \ of file "your_filename" to "foo/bar/baz"' (Line broken for clarity, it should be entered as a single line)
  17. macbri

    New Apple Website

    What about the, sliding panels interface, for example on the right hand side of http://www.apple.com/downloads/. Nice, has to be said. Very nice.
  18. macbri

    Where are you?

    Yup, grew up in Cork. Got offered the chance to come back and here I am! ;)
  19. macbri

    Where are you?

    Was: California, USA Now: Cork, Ireland
  20. macbri

    Screen brightness through terminal

    It ain't pretty, and it ain't ideal (you'd need to play around with the delay settings etc. to work depending on the speed of your machine), but you could alias "brighter" to something like: osascript -e 'tell application "System Events" to repeat 50 times' -e 'key code 113' -e 'delay 0.1' -e...
Back
Top