359 reputation
111
bio website petdance.com
location McHenry, IL
age 46
visits member for 5 years, 1 month
seen 2 days ago

I've been a programmer for over two decades. I work in Perl and a big pile of legacy PHP.

My book Land the Tech Job You Love is available from Pragmatic Bookshelf.

My Perl news blog is Perlbuzz.

My blog about tech life, including job hunting, is petdance.com.

AIM: petdance

Twitter: petdance, beyondgrep and perlbuzz


Jan
8
comment Ran out of disk space, how to tar without creating copy
You do know that tar doesn't compress the file, right? Gzipped file will be smaller than the original, but a tar file will be bigger (unless the tar file is zipped).
Jan
8
comment How should I manually add IP addresses to denyhosts?
That is my very question, @adaptr. What is the best way to do that? Is it as simple as "just add it such-and-such file"? Or are there many? Or is there a command way to do it?
Jan
8
comment How should I manually add IP addresses to denyhosts?
The key point here seems to be that denyhosts doesn't touch any IPs in the /etc/hosts.deny file that it didn't take responsibility for. (My apologies if I missed that before, and thanks for editing to add that if it wasn't there in the first place) But does that mean that I should not involve denyhosts in the process? That I should just dump IPs in there?
Dec
31
comment Have iptables send an email on DROP
fail2ban or denyhosts
Nov
25
comment How do I delete everything in the /tmp/ folder?
If there are files still there, there's probably a very good reason for that. Stop and learn why. Post what files are still there so we can help you understand why they're there.
Nov
9
comment All servers flooded by salt water, is it possible to recover data from multi-platter drives?
Everyone saying "Don't you have backups?", please stop. Clearly he does not or he'd not be posting here. "You should have had backups" is just as bad. He's well aware of that.
Nov
2
comment What are PCRE limits?
I'm editing this post to change the "perl" tag to "pcre". PCRE is not Perl, despite what the acronym would have you believe.
Apr
28
comment Listening on port 22
Not by listening on port 22, no.
Dec
1
comment Unable to find a file by content
Ack also comes in a handy standalone version that doesn't need anything. Download one single file and run it.
Nov
3
comment Is there an easy way to insert data/time in front of a log file with just shell scripting?
Better Perl would be to not even have a regex. $_ = localtime() . ' ' . $_.
Nov
1
comment Network Question
Your images will look better if you save them as PNG instead of JPEG. JPEG's compression algorithms make anything other than photographs look smeary. Line drawings, diagrams and cartoons, and images with large flat areas of color are especially susceptible.
Oct
14
comment eAccelerator ignore my new setting?
I think that you do NOT want it to be writable by everyone. That's a security hole because that code gets executed, and you're letting anyone write to the files that are getting executed.
Jul
8
comment How to block Baidu from indexing MP3 files?
To be clear, when you say "Prevent indexing of your MP3 files" you're really saying "Ask agents to not index your MP3 files." You're not preventing anything with your robots.txt, any more than putting a "keep off of the grass" sign in the front of your house prevents people from walking on your lawn.
Jun
14
comment Get Safari to use different autocompletion on different URLs on same hostname
This sounds like a Superuser.com question. The behavior you're discussing is entirely client-side, not server-side.
May
6
comment Can't telnet localhost smtp
You say in the comments below that you solved the problem. Please edit your question to explain what happened so that others with your problem will learn when they find this question.
Jun
18
comment Search inside of text files
As much as I love ack, grep is the better choice here. None of ack's snazzy features are relevant to log searching.
May
31
comment Favorite Unix command line aliases?
You don't sync your home directories between the various machines? xoa.petdance.com/How_to:_Keep_your_home_directory_in_Subversion