3,096 reputation
1218
bio website mikelward.com
location Mountain View, CA
age 34
visits member for 4 years, 3 months
seen Dec 17 at 21:10

Computer guy from Australia now living in the US.

Part sysadmin, part developer, part web developer.

My name is pronounced like "Michael".


Mar
10
comment Softlink for a file on a remote machine
Exactly. Or Samba or SSHFS or AFS or whatever is needed to access the other server.
Mar
10
comment Read file into array
Using . /path/to/config is the best approach for setting defaults, but if you need to set lines of a file to an array variable (as your question title suggests), bash 4.0 has new builtin commands called readarray and mapfile.
Mar
2
comment What is the default vim colorscheme?
Actually, /usr/share/vim/vimcurrent/syntax/syncolor.vim seems to be involved as well.
Mar
2
comment What is the default vim colorscheme?
There are different defaults depending on whether your terminal is classified as having a dark or light background. default and peachpuff seem to be identical to me, but if you're on a dark terminal, doing :colorscheme default does not give you the default colorscheme, whereas :colorscheme ron looks the same as what you get automatically.
Feb
23
awarded  Citizen Patrol
Feb
23
revised Is there a way to detect if I'm running on my laptop monitor or external monitor?
added 194 characters in body
Feb
23
answered Is there a way to detect if I'm running on my laptop monitor or external monitor?
Feb
21
answered What is tty7 in the commandline?
Feb
20
comment I would like to set 127.0.0.1 in my resolv.conf
If you add a second 127.0.0.1 entry, then some things will work, but reverse lookups (e.g. getent hosts 127.0.0.1) won't return your host name, which could break some things.
Feb
20
comment I would like to set 127.0.0.1 in my resolv.conf
There is a difference between 127.0.0.1 and 127.0.1.1. You said 127.0.0.1, which should just be 127.0.0.1 localhost (or 127.0.0.1 localhost.localdomain localhost or similar).
Feb
20
comment I would like to set 127.0.0.1 in my resolv.conf
That's bad. If you replace the 127.0.0.1 entry, things will break. It should be added using a separate entry 127.0.1.1 hermes, but it should have already been added by NetworkManager, so there is another problem.
Feb
20
answered I would like to set 127.0.0.1 in my resolv.conf
Feb
18
comment How to specify which keys CapsLock affects?
What language do you use? You might be able to adapt the solution for Belgian to your needs. launchpadlibrarian.net/29195040/mswindows-capslock.patch
Feb
14
comment How to have a path containing spaces in PATH?
That's wrong. Did you try it? If you do this, cp sees the backslash, and cp doesn't handle backslashes, the shell does.
Feb
14
comment How to have a path containing spaces in PATH?
TASK or PATH? Are you setting PATH using TASK? If so, how?
Feb
14
answered How to generate a private-public key using ssh-keygen and make it authorized?
Feb
13
revised Disable all user accounts?
added 66 characters in body
Feb
13
answered Disable all user accounts?
Feb
13
comment Where are GNOME keyboard shortcuts stored?
How did you change the settings? Using GConf Editor? I'm guessing you want gconftool-2 --dump /apps/metacity or something like that.
Feb
10
comment SCP not working with a .ppk key
Yes, please run scp with the -v option added at the start. And tell us how you are running the ssh that works.