Search results

  1. macbri

    Ex-Windows user: Need to replace Cygwin

    Yeah I found that annoying in 10.4. The good news is in 10.5 it's handled a lot better. In Terminal.app, issue an X11 command like "xclock" and X11 fires up automagically. This will happen even if you ssh with X11 forwarding enabled, and then issue an "xclock" command on the remote server...
  2. macbri

    What Type of File Is It?

    Given that you've got a 2 GB file, a quicker way might be to open the Terminal and then: strings yourmystery2gbfile | more
  3. macbri

    NFS mount problem

    Check /var/log/messages on your linux server. If you see messages similar to "request from insecure port" you should modify your /etc/exports (on the server) to allow so-called insecure mount requests, e.g.: /some/directory 192.168.0.0/24(rw,insecure)
  4. macbri

    X11 freezes machine - have to force quit

    Use Command-Option-A which switches between full-screen X11 and the regular OS X desktop. You can also at this point edit the X11 preferences (select the "Output" tab when the preferences window appears) and uncheck "Full screen mode", so that X11 windows will appear just like your regular OS X...
  5. macbri

    Awk performs malloc() when accessing arrays?

    You've definitely found something -- running valgrind on awk with your example and again on GNU awk (from MacPorts) shows that sure enough awk leaks memory like a sieve, while GNU awk doesn't. It might be worth filing a Bug Report with Apple (not that you'll ever hear back but it might at least...
  6. macbri

    Building User interface for software which runs on perl scripts

    You'll need some extra framework files to be able to do that. Try CamelBones or PerlObjCBridge, both these links point to overviews on cocoadev.com, a good developer site for lots of OS X programming articles. CamelBones reports not being 10.5 compatible although they do link to a hacked...
  7. macbri

    iPod touch displays black album art

    I've seen the same thing on the iphone occasionally -- a song in itunes has artwork and on the phone -- just a black square. Causing it to re-sync can sometimes fix it (edit the song properties, maybe release date, in itunes, then connect up the ipod)....
  8. macbri

    Terminal help for a Linux user

    Hi there! There might be other possibilities, but here's one set of suggestions: RAM usage: try "top -l 1" (that's a lowercase L) and redirect to a file, or grep out the lines you want which are near the beginning of the output. Temp: If you download the (free) Temp. monitor...
  9. macbri

    Universal Access command line?

    Again I have no AD setup here for me to examine, but on my laptop with a local user account, changes to the display colours (normal or inverted) are saved in: ~/Library/Preferences/com.apple.CoreGraphics.plist If you "default read com.apple.CoreGraphics DisplayUseInvertedPolarity" you should...
  10. macbri

    MacOSX.com word association!

    pain
  11. macbri

    Universal Access command line?

    So can you clarify -- when the laptop wakes from sleep and reconnects, does the little applescript app re-run and therefore change the colours back, or does the system do this when it reconnects *without* the applescript getting re-run? By the way, there's no need to duplicate the thread.
  12. macbri

    Universal Access command line?

    Hi Matt OS X - I don't know of a command line to do this, and although this isn't quite what what you asked for, how about a small Applescript app which will invert the colors for you? tell application "System Events" key code 28 using ¬ {control down, option down, command down}...
  13. macbri

    lua/c

    Hi Kris - You need to tell the compiler where the header file resides (the compiler doesn't look in your PATH). g++ -I/opt/local/include a.c In addition you'll need to link against the lua library (liblua.a) so you need to provide the library name minus the "lib" prefix and the ".a"...
  14. macbri

    Notice for Macosx.com Email Account Holders

    Thanks Scott :) No criticism implied I'm sure by Andy, or myself. I just thought Andy's joke was funny - a bit like including a DVD with instructions on setting up a DVD player... :D
  15. macbri

    Notice for Macosx.com Email Account Holders

    heh heh, nice one Andy :)
  16. macbri

    How to color types of files in xterm

    (1) The xterm doesn't have a border really, just a single line (apart from the title bar anyway). I don't think you can colour this single-pixel "edge" of the window, although if you add a scrollbar ("xterm -sb -rightbar") and then colour the border, you'll see a single line of that colour...
  17. macbri

    problem for running a open gl example on mac

    Where did you download the libglut files from? And if you do a: file -L /Developer/SDKs/MacOSX10.5.sdk/usr/X11/lib/libglut.3.dylib what does it tell you?
  18. macbri

    problem for running a open gl example on mac

    If you're running this on the command line try setting your DYLD_LIBRARY_PATH env variable: export DYLD_LIBRARY_PATH=/Developer/SDKs/MacOSX10.5.sdk/usr/X11/lib Then try running the app again....
  19. macbri

    ssh closes unexpectedly, but why?

    I'd suggest firing up another instance on sshd on your slackware with debug enabled, e.g.: /usr/sbin/sshd -d -d -d -p 8022 Then on your client do: ssh -v -v -v -p 8022 slackware. Somewhere in the debug output of the server or client should lie the answer. Another idea, maybe a longshot, you...
  20. macbri

    Find default gateway in terminal

    Try: netstat -nr or netstat -nr | grep '^default'
Back
Top