4,957 reputation
11424
bio website mikelward.com
location Mountain View, CA
age 33
visits member for 4 years, 8 months
seen 2 days ago

Computer guy from Australia now living in the US.

Part sysadmin, part developer, part web developer.

My name is pronounced like "Michael".


Jan
27
comment How can I get ssh-agent working over ssh and in tmux (on OS X)?
ssh is easy. Turn agent forwarding on. Easiest way to do that is run ssh -A instead of ssh. Use an alias so you don't have to type it every time, or put it in your .SSH/config.
Jan
27
comment How can I get ssh-agent working over ssh and in tmux (on OS X)?
What about typeset -p SSH_AUTH_SOCK?
Jan
24
comment On Linux, how to tell how many cores of the machine are active?
Of course, by running ps we are making at least 1 core active. ;-)
Jan
24
comment On Linux, how to tell how many cores of the machine are active?
Then it prints 0 because none of them are in use. I think that is what the question is asking for.
Jan
24
comment On Linux, how to tell how many cores of the machine are active?
By "active", I assume you mean how many cores are currently in use? Or do you mean how many cores the system has?
Jan
24
comment On Linux, how to tell how many cores of the machine are active?
By "active", I assume Anil means how many cores are currently in use, and how many are idle, i.e. an approximation of how busy the system is. /proc/cpuinfo just tells you how many cores the system has, and even you would have to do more than cat /proc/cpuinfo to account for HyperThreading.
Jan
24
comment How does a character is printed from binary?
What operating system? Where? command line? programming language?
Jan
23
comment How to open a program on particular desktop?
First thought: modify the script to list windows before and after starting the command, then diff them, and if there's only one line different, grab the window id for that line. Or: modify the script to try matching the window name with the first word of the command line passed to start_on_desktop.
Jan
23
comment How to tell from what Ubuntu or Debian repository a package comes?
+1 This is by far the best answer. Almost want to downvote the others.
Jan
23
comment Are USB headphones/headsets inferior to regular ones?
+1. My USB headset works flawlessly on Ubuntu 10.10, as well as Windows 7.
Jan
20
comment How do I remap Shift + Del on Windows to mean Delete instead of Cut?
And as you already acknowledged, the OP wasn't talking about the Desktop or Windows Explorer. ;-)
Jan
20
comment How do I remap Shift + Del on Windows to mean Delete instead of Cut?
Sure. Obviously it depends what program you are in. Shift+Del means Cut in most text editors and text editing fields.
Jan
20
comment How do I remap Shift + Del on Windows to mean Delete instead of Cut?
It's not just Windows 7. Shift+Del = Cut, Shift+Ins = Paste, Ctrl+Ins = Copy has been a standard since the DOS days. en.wikipedia.org/wiki/Cut,_copy,_and_paste
Jan
20
comment How do I remap Shift + Del on Windows to mean Delete instead of Cut?
Try +Del::Send {Delete} without the {} around the first Del.
Jan
20
comment How can Console2 use the current directory as the name of a bash tab?
Sorry, yes, there was a missing backslash. It is fixed now.
Jan
20
comment How can Console2 use the current directory as the name of a bash tab?
Yes, my original answer was only for cmd. I have updated it with instructions for bash.
Jan
20
comment Vim copy-paste across terminals
Yes, this method requires X11 support. Run :echo has('x11'), if X support is enabled it will print 1.
Jan
20
comment How to get the key name to be coded for keymap in vimrc?
Yes, Alt is difficult, because most terminals send ESC then x when Alt+x is pressed, and how does Vim know you didn't press ESC then x. Basically Alt only works in Gvim.
Jan
20
comment How to get the key name to be coded for keymap in vimrc?
Sorry, fixed that.
Jan
20
comment Using a theme in pidgin in windows
+1 It's definitely a gotcha.