Live data from Hacker News

Quick tip for developers who use OS X

news.ycombinator.com

121–130 of 406 posts

Re: Quick tip for developers who use OS X

#123
post #46

Earlier quoted context omitted.

... so do they prefer a track ball or TrackPoint (or some sort of Minority Report gestures-based system)? /s

No, they just use the keyboard. And use a mouse emulator (move pointer with the keyboard) on those instances where there's no kb shortcuts.

Is that before or after they move on to using a needle and a steady hand?

Re: Quick tip for developers who use OS X

#124
post #70

Another really useful command is the open $ open filename.png $ open . $ open -e filename.txt $ open -a Pixen filename.png The first command will open the file with the default application. Open . will open the current directory in finder, which I find very helpful. The -e flag will open the file in textedit. The -a will open the file in the given application name.

Under Linux there is a similar command: xdg-open

or gnome-open.

On Windows the equivalent is start (e.g. start C:\ )

Re: Quick tip for developers who use OS X

#125

A new one for me I accidentally found the other day.. If you use Spotlight to find something and then want to see the file in Finder, Cmd+click the item in the Spotlight dropdown. Edited from Cmd+shift+click due to note in child comment :-)

You can also use Cmd + Return.

Re: Quick tip for developers who use OS X

#128

Two more tips: * Ctrl-a to go to beginning of line * Ctrl-e to go to end of line

I love how osx supports emacs key-bindings by default for any text field.

I miss this feature a lot when I switch back to windows. I find myself pressing ctrl-n in my browser's address bar, expecting to view my URL history, and instead I get a new windows.

If anyone knows of a way to get similar functionality in windows, I would love to hear about it!

Re: Quick tip for developers who use OS X

#129
post #72

Nobody seems to have posted this yet: python -m SimpleHTTPServer I'd recommend an alias like "serve". It basically puts the current directory online (binds to 0.0.0.0:8000).

Am I wrong to have long dismissed this as little more than an easter egg, or, at best, a toy server to test basic webpage functionality?

[deleted]

Re: Quick tip for developers who use OS X

#130
post #72

Nobody seems to have posted this yet: python -m SimpleHTTPServer I'd recommend an alias like "serve". It basically puts the current directory online (binds to 0.0.0.0:8000).

Related:

  python -m smtpd -n -c DebuggingServer localhost:25
A makeshift SMTP server that logs all messages to the console.
Post reply on HN