Search results

  1. macbri

    where are wallpaper images stored?

    In Tiger it's in "/Users/<username>/Library/Safari/Safari Desktop Picture.jpg"
  2. macbri

    recursive concatenation

    Hi Kerensa - Try the following: find /path/to/foo -type f -print | xargs cat > output.txt One word of warning, don't put output.txt inside /path/to/foo or you'll keep appending it to itself until you run out of disk!
  3. macbri

    How to run a shell script

    You probably need to put the path to your script. If it's in your current directory do: ./yourscript Or put a full path: /path/to/yourscript
  4. macbri

    Another 1300 emails from MacOSX.com in my inbox!

    You'll probably have a different password for your email account, which isn't the same as the one for logging into the macosx.com site. That's the one I used for webmail and Plesk...
  5. macbri

    where is Java 6 ?

    See if there's a "1.6" or similar in /System/Library/Frameworks/JavaVM.framework/Versions. If so, you could (in the Terminal) change the "CurrentJDK" symlink in the same directory to point at this newly-installed version.
  6. macbri

    Am I losing my marbles?

    Sounds unpleasantly like being drunk ;)
  7. macbri

    Replacement LCD for Macbook Pro

    Update: Ordering the screen and toolkit was easy, and the replacement screen arrived exactly when promised (although they sent me a T8 torx instead of a T6, grrrr!). Their instructions are pretty good all in all, so I'd recommend them overall. Buy your own tools though, I got a set of 20...
  8. macbri

    Change suffix

    For one file or many? One file: mv somefile.JPG somefile.jpg Many files in one place (using bash): for file in *.JPG; do mv $file ${file%.*}.jpg; done Many files in many directories below the current directory (using bash): for file in $(find . -name \*.JPG -print); do mv $file...
  9. macbri

    Replacement LCD for Macbook Pro

    Outstanding! Thanks a lot :)
  10. macbri

    Replacement LCD for Macbook Pro

    I won't go into specifics (suffice it to say Sir Isaac Newton was no fool) but..... I need to replace the LCD on my 15" macbook pro 2.16GHz Core 2 Duo. Anyone got a good recommendation of where I might get one (other than paying a small fortune to have our favorite manufacturer do it for me)?
  11. macbri

    *cough*

    Ummmm, anyone else find this a little ironic? :) http://www.apple.com/business/profiles/getsatisfaction/ Do we not "rate"? Is it because we're (OMG!!!) free?
  12. macbri

    What Song Are You Playing Now?

    "Forget About It" - Allison Kraus. Although the way my current project is going, maybe "Fuhgeddaboudditt" might be more fitting.... ;)
  13. macbri

    Compare contents of Two Files (and more)

    FileMerge should do what you want, it's part of Apple's Developer Tools. It will be in /Developer/Applications/Utilities, identical files will be labeled in grey, files with differences will be in black.
  14. macbri

    Making an executable run as root every time

    You could have sudo not ever require a password for a certain command with an entry in /etc/sudoers: mikuro ALL= NOPASSWD: /path/to/command Or for the setuid route, it looks like in Leopard setting the setuid bit isn't enough any more -- the code also has to call setuid(), which is the...
  15. macbri

    Inheritance of `nice`?

    Here's a quick-n-dirty test: sleep 60 & nice -n 15 sudo sleep 60 & sudo nice -n 15 sleep 60 & ps -al | grep [s]leep | awk '{print $1,$2,$6}' This returns the UID, PID and nice value of each sleep command. The first will be have your UID and a nice value of 0, the other two will be...
  16. macbri

    What is your current highest PID?

    PIDs wrap somewhere near the 30k mark. Here's what I got on 10.4.11: while true;do ps a|grep ps|grep -v grep|awk '{print $1}';done Wrapped for me here: [...] 29991 29995 29999 104 108 112 [...]
  17. macbri

    ssh/connection reset by peer (not timeout issue)

    You might try enabling debugging in both the server and client: On the server, run sshd on a different port: sudo /usr/sbin/sshd -dddp 2022 2>&1 |tee /tmp/sshd.log Then on your client connect with ssh -vvvp 2022 server 2>&1 |tee /tmp/ssh.log -or- scp -vvvp 2022 server:/file...
  18. macbri

    MacOSX.com word association!

    British Airways
  19. macbri

    Needing help with a script

    I'm with Mikuro, I prefer method #2 as well. For the original poster to differentiate between 10.4 and 10.5 it's no problem, but for finer control it's a but lacking since it will report anything after 10.4.9 (10.4.10, 10.4.11....) the same. So for others who find this post and might be...
  20. macbri

    Is Mac Pro that awesome?

    Now that's an answer :) Love it!
Back
Top