200 reputation
6
bio website
location Toronto, Canada
age
visits member for 2 years, 6 months
seen Jun 18 at 18:43

FreeBSD, enterprise open source stuff, network and system security. I'm by no means an expert software developer, but I've been using PHP since 1995 and can find the bathroom on my own. Bourne shell and awk since the 1980s. My Telebit Worldblazer and serial breakout box are still in good working order. :/


Apr
28
awarded  Caucus
Apr
14
comment getting disk identifier from the disk name
@anubhava - that fails if the device is longer than df's column width. FreeBSD appears to lengthen the line if device names are long, but on a Linux box I have here, df splits lines, so more complex parsing is required.
Jul
4
comment Pound: configure to handle WebSocket
@JanDvorak - Pound may have support, but it doesn't seem to work. In my experiments (which consisted of tcpdump captures on either side of the proxy), it appeared that Pound allowed the protocol upgrade, sent the first few bytes of payload back to the client, then simply stopped transmitting. I didn't experiment beyond determining that it doesn't work. I needed a solution, not a romp through Pound's source code. :-P
Jul
4
comment Combine tail -f with grep?
When grep is the last line in the pipe, its output is line buffered, so you see the filtered output of tail -f live, rather than delayed. Note that if you were to use multiple grep commands, any whose output was piped would need a --line-buffered option (assuming GNU or BSD grep) in order to keep this behaviour.
Jun
14
answered Pound: configure to handle WebSocket
May
1
awarded  Critic
Feb
14
answered How do I type Square character
Dec
10
comment Perl program not getting executed in xampp
@ddoxey - does Windows use chmod? I thought it didn't.
Nov
11
answered How to cut a file into pieces more efficiently?
Nov
10
comment Run SSH trough a proxy
+1 ... Note also, you might want to use ssh options -x -a -q in your ProxyCommand. And in recent OpenSSH versions, you can replace the netcat bits with a -W options. (All these are documented on ssh's man page.)
Oct
18
comment How could I make a bash script to execute apt-get?
@poz2k4444 - you can sudo -k to clear the cached password, so you can test whether your script will run sudo without asking for a password. Then you can man sudoers to see how to construct the necessary permission for you to do this automatically in the future.
Oct
18
answered Perl command not found
Oct
18
awarded  Commentator
Oct
18
comment Setting up the “mate” command in bash
@sampson-chen - when setting your $PATH, you should probably use the $HOME variable instead of a tilde. So: export PATH=$HOME/bin:$PATH
Sep
21
awarded  Editor
Sep
21
revised How do DNS servers work?
fixed odd wording
Sep
11
comment How do DNS servers work?
It's not a programming question, though. "Too broad" would be marked "not a real question" rather than "off topic".
Sep
11
answered How do DNS servers work?
Jul
4
awarded  Teacher
Jul
4
comment How do I compress a directory?
I suspect that you already have a number of working solutions, but you're implementing them badly. For example, you should always quote words that contain special characters. Your shell may interpret some characters in ways you don't expect, despite quoting (for example, ! in tcsh). Since you haven't told us your shell, we can't help you there. But just as a start, are you including curly braces in your password? You realize that {password} in the example code means that your password starts at the open curly brace and ends at the close?