Search results

  1. davidbrit2

    Packet Analyzer

    Hmm, tcpflow is pretty good for being just a plain console app. I can't remember if you can get it from fink, or if you have to compile it yourself. If you use the "-c" option it spits data out to your terminal rather than logging to a file, and thus comes in quite handy if you need to quickly...
  2. davidbrit2

    Commands in Bash

    SetUID bit to the rescue! Assuming you have a whole script that you want to execute as the user "postgres", this is actually painfully easy, as it turns out. Now, keep in mind that there's a minor security risk involved, as anybody with execute permission to the script file will be able to...
  3. davidbrit2

    Dynamic PHP/SQL query, complete with bug!

    It looks like the back-ticks in your field value quoting are doing something unexpected. Use single quotes instead, like this: $dbdata .= "'" . $_POST[$fieldname]; if ( $i < (mysql_num_fields($result)-1)) $dbdata .= "', "; else { $dbdata .= "'"; } Kinda looks ugly...
  4. davidbrit2

    Unreal Tournament 2004

    Okay, first of all, there's no way you're going to get the Linux version of the program running on OS X, period. So don't even bother worrying yourself over that. However, you might be able to use the data files from the Linux version with the Mac version of the program. In other words, download...
  5. davidbrit2

    Multiple displays

    Yeah, I'd assume it's got something to do with Quartz Extreme suddenly having to deal with twice as much screen space. It's a great hack, though. It's really handy if you're giving presentations and such.
  6. davidbrit2

    problem with terminal

    Since you're using the bash shell, here are the initialization files you should be checking for weird fink install commands. In your home directory: .profile .login .bashrc Others: /etc/bashrc If it's not there, it's possible that the command is somewhere in /sw/bin/init.sh, so...
  7. davidbrit2

    Where did mymemory go?

    I wouldn't be surprised if there's just a TON of preinstalled software. I got my iBook last fall, and it came pretty well loaded - OS X, iTunes, iPhoto, iMovie, iDVD, Garage Band, World Book, Tony Hawk's Pro Skater 4, a few other games... It doesn't seem too unreasonable that the disk would be...
  8. davidbrit2

    who

    Hmm. The only output that I get is my username logged in on console, no matter how many terminal windows I've got open. I have 10.3.8. Also, in Terminal Preferences, I have it set to "Execute this command" (/bin/bash) rather than the default (/usr/bin/login). That might have something to do with it.
  9. davidbrit2

    Hidden directories?

    Yup, it should work just fine. And you can run SetFile without specifying any options to see the list of functions it can perform. It's mostly for modifying specific HFS/HFS+ information about files that the traditional UNIX commands aren't designed to handle. Invisibility happens to be one such...
  10. davidbrit2

    Hidden directories?

    You can change the invisibility attribute of files and folders with the SetFile utility that's included with the developer tools. If it's installed, it'll be in /Developer/Tools along with some other goodies. Usage is pretty simple: SetFile -a V <filename> SetFile -a v <filename> Using a...
  11. davidbrit2

    Command line folder closing

    Okay, it can be done, but it's a little more involved than simply using the open command. Basically, you have to do it by running short Applescript commands. If you want to make a shell script to do it for you, it would look like this: #!/bin/sh osascript -e "tell application \"Finder\""...
  12. davidbrit2

    Bash bug? Tilde display not working

    Hmm. That's a new one on me. What do these commands report? echo $SHELL bash --version echo $PS1 I've got bash 2.05b.0(1)-release, and my PS1 is "[\w] \u\$ ".
  13. davidbrit2

    major hard drive issues

    Hmm... Try using Disk Utility to blow away the partitions on the drive. From the Erase tab, you should be able to use the Options button to configure partitions.
  14. davidbrit2

    major hard drive issues

    It won't always kill the whole drive. In fact, I don't think I've ever seen that outcome from a sharp blow, personally. What happens is the drive has a "head crash". The shock of the object made the read head slam against the platter surface in the drive, causing small localized damage to the...
  15. davidbrit2

    How do you undo THIS???

    Perhaps, though it would be considerably better worded as "cancelable". "Undoable" carries the implication that the action can be fully performed in a functional state, but the option still exists to roll back to before the change was performed.
  16. davidbrit2

    How do you undo THIS???

    Any sysadmin that has to be specifically told about the undoability of a reboot should probably not be a sysadmin. Ha ha. "Oh shit, how do I 'unrm -rf /'???" I wonder what the unreboot command would be. 'shutdown -u now' maybe?
  17. davidbrit2

    How would I check to see if my computer went to sleep?

    You can still tell by looking at all the network services going to sleep before the actual System Sleep event is logged. It probably occurs just mere seconds after those are dealt with.
  18. davidbrit2

    ipcs on OS X (and darwinports troubles)

    So, I need to get the ipcs and ipcrm utilities installed on my system. I can't find decent OS X ports anywhere. I've tried getting it with darwinports, but the latest CVS snapshot won't even build. [~/src/darwinports/base] dave$ ./configure checking build system type... configure: error...
  19. davidbrit2

    How would I check to see if my computer went to sleep?

    Open Console (/Applications/Utilities/Console) and check the System log (in the File menu). You'll see entries like this: Feb 17 12:10:03 localhost kernel: AFPSleepWakeHandler: going to sleep Feb 17 12:10:03 localhost kernel: AppleNMI mask NMI Feb 17 12:10:03 localhost kernel: AirPort...
  20. davidbrit2

    I can't get out of console and to the login window!

    Try this: sudo nvram boot-args=-v What this will do is set the boot-args Open Firmware flag to -v, which will show you a text bootup sequence, giving you a chance to look for errors. It will also remove any other boot-args values which may have been instructing the system to not load the...
Back
Top