The Quality Without A Name

2005/04/27

12

Filed under: Uncategorized — mayoff @ 12:36 am

Things to analyze for hacking MacOS X:

Pixie.app – defines a hotkey and scrapes the screen
Quartz Debug.app – messes with the brightness of windows belonging to other apps
FunkyOverlayWindow – defines a hotkey using Carbon

2005/04/25

11

Filed under: Uncategorized — mayoff @ 5:39 pm

Let the record show that on a 2005 15″ Powerbook it is possible to distinguish the left and right Command and Shift keys.

2005/04/14

This might only be funny if you know the context

Filed under: Uncategorized — mayoff @ 6:32 pm

“I don’t hand sharp knives to small children.” — PJ

“If you have sharper knives, you don’t need as many small children around!” — Rob

2005/04/11

need better cmd-tab in macosx

Filed under: Uncategorized — mayoff @ 4:07 pm

I need a MacOS X hack that makes Command-Tab select among all windows, not just among applications. That is, it should work like it Alt-Tab does in Windows and Metacity.

I know about Command-Tilde. I even know about Control-F4. Not what I’m after!

2005/04/07

handy bash alias

Filed under: Uncategorized — mayoff @ 6:23 pm

Often I run some command that’s going to take a long time to finish, like

  make solver

and when it’s done I want to run some other command, like

  ./solver < problem.1

but I only want to run that second command if the first command (the make in this example) succeeded. If I’d thought ahead, I could have run this in the first place:

  make solver && ./solver < problem.1

But I didn’t. So I have this handy bash alias:

  alias +='(exit $?) && '

Which gives me a similar effect. I run the first command (the make), and while it’s running I type in a plus followed by the second command:

  + ./solver < problem.1

If the first command finishes, the second command will run. Otherwise, the second command will be ignored.

Note that this only works if the first command doesn’t read from standard input.

Blog at WordPress.com.