Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

jdavidb (1361)

  (email not shown publicly)

J. David Blackstone has a Bachelor of Science in Computer Science and Engineering and nine years of experience at a wireless telecommunications company, where he learned Perl and never looked back. J. David has an advantage in that he works really hard, he has a passion for writing good software, and he knows many of the world's best Perl programmers.

Journal of jdavidb (1361)

Thursday January 14, 2010
12:16 PM

Perl 10.1.0 doesn't build on Cygwin

Is building on Cygwin not supported any more, I take it? Did we forget about it?

fno-strict-aliasing -pipe -I/usr/local/include  -O3 -Wall -W -Wextra -Wdeclarati
on-after-statement -Wendif-labels
PATH=/home/dblackstone/perl-5.10.1:.:/home/dblackstone/bin:/home /dblackstone/bin
:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/Progr am\ Files\ (x86)/J
ava/jdk1.6.0_16/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/c ygdrive/c
/WINDOWS/System32/Wbem:/cygdrive/c/Program\ Files\ (x86)/ZipGenius\ 6/:/cygdrive
/c/Program\ Files/MySQL/MySQL\ Server\ 5.1/bin:/cygdrive/c/apache-ant-1.7.1/bin:
/cygdrive/c/Program\ Files\ (x86)/Git/cmd:/cygdrive/c/Program\ Files\ (x86)/cvsn
t:/cygdrive/c/Program\ Files\ (x86)/PuTTY:/cygdrive/c/Program\ Files\ (x86)/GnuW
in32/bin:/cygdrive/c/strawberry/c/bin:/cygdrive/c/strawberry/perl/bi n:/cygdrive/
c/Program\ Files\ (x86)/QuickTime/QTSystem/:/usr/lib/lapack:/usr/local:/etc:/usr
/lib:/lib:/sbin: /usr/sbin:/usr/libexec gcc -Wl,--enable-auto-import -Wl,--export
-all-symbols -Wl,--stack,8388608 -Wl,--enable-auto-image-base -L/usr/local/lib -
o miniperl.exe \
             malloc.o gv.o toke.o perly.o pad.o regcomp.o dump.o util.o mg.o ree
ntr.o mro.o hv.o av.o run.o pp_hot.o sv.o pp.o scope.o pp_ctl.o pp_sys.o doop.o
doio.o regexec.o utf8.o taint.o deb.o universal.o xsutils.o globals.o perlio.o p
erlapi.o numeric.o mathoms.o locale.o pp_pack.o pp_sort.o cygwin.o \
            miniperlmain.o opmini.o perlmini.o -ldl -lcrypt
/bin/sh: -c: line 0: syntax error near unexpected token `('
/bin/sh: -c: line 0: `PATH=/home/dblackstone/perl-5.10.1:.:/home/dblackstone/bin
:/home/dblackstone/ bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/P
rogram\ Files\ (x86)/Java/jdk1.6.0_16/bin:/cygdrive/c/WINDOWS/system32:/cygdrive
/c/WINDOWS:/c ygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/Program\ Files\ (x86)/Z
ipGenius\ 6/:/cygdrive/c/Program\ Files/MySQL/MySQL\ Server\ 5.1/bin:/cygdrive/c
/apache-ant-1.7.1/bin:/cygdrive/c/Program\ Files\ (x86)/Git/cmd:/cygdrive/c/Prog
ram\ Files\ (x86)/cvsnt:/cygdrive/c/Program\ Files\ (x86)/PuTTY:/cygdrive/c/Prog
ram\ Files\ (x86)/GnuWin32/bin:/cygdrive/c/strawberry/c/bin:/cygdrive/c/strawber
ry/perl/bi n:/cygdrive/c/Program\ Files\ (x86)/QuickTime/QTSystem/:/usr/lib/lapac
k:/usr/local:/etc:/usr/lib:/lib:/sbin: /usr/sbin:/usr/libexec gcc -Wl,--enable-au
to-import -Wl,--export-all-symbols -Wl,--stack,8388608 -Wl,--enable-auto-image-b
ase -L/usr/local/lib -o miniperl.exe \'
make[1]: *** [miniperl.exe] Error 2
make[1]: Leaving directory `/home/dblackstone/perl-5.10.1'
make: *** [install] Error 2

Thursday January 07, 2010
10:26 AM

Stack Overflow career spam

I got a fairly innocuous spam from Stack Overflow advertising their new job hunting site, where they would like me to upload my resume.

Sorry, Stack Overflow; I'm smart for that (thanks to Andy Lester). I also don't particularly appreciate the spam, although it's the first I've ever gotten and wasn't too obtrusive.

Monday December 21, 2009
05:00 PM

SVK retired

I didn't notice, but SVK retired in May. Thanks to its authors and Best Practical for providing it. I agree with the sentiment that people moved on from Subversion quicker than expected; I am glad that I went on to git instead of spending too much time with SVK, although I would've liked to have learned it earlier and gotten to know it better.

Thursday December 17, 2009
02:42 PM

19100 all over again

I just saw a website say "Today is: December 17, 109" :)
Thursday October 15, 2009
12:55 PM

Instructions: in the middle of a git rebase conflict

So you've done a git rebase, and a conflict was reported.

The instructions you originally received (which have long since scrolled off your screen), were:

Failed to merge in the changes.
Patch failed at 0051.

When you have resolved this problem run "git rebase --continue".
If you would prefer to skip this patch, instead run "git rebase --skip".
To restore the original branch and stop rebasing run "git rebase --abort".

Thankfully, I can usually remember the --abort switch.

What you haven't been told is:

To get a list of files with conflicts from git, instead of trying to use ack and stuff and picking up false positives:

git status 2>&1 | grep 'needs merge'

After correcting a file with a conflict:

git add FILE

After all the files are added, run a git --rebase continue, without doing a git commit (just in case there was any confusion, and there usually is, for me).

There are a number of other "in the middle of a git conflict" situations that I encounter, none of which are handled the same way, and I hope in time to produce a complete series of instruction cheat sheets for them.

Friday October 09, 2009
02:23 PM

SO vote to reopen: protected visibility d

Somebody give me some tips on how to reword this to make it a "real question."

Wednesday September 23, 2009
02:10 PM

regex spelling

People who think regex should be spelled regexp should be dragged out into the middle of the street and shot.
Wednesday September 09, 2009
09:34 AM


I guess I have to do this again. It's tradition.

Eventually, we are going to run out of these.

Have a special day, everybody.

Tuesday September 01, 2009
10:53 AM

What's the deal with relative times?

It seems to be all the rage today for sites to give timestamps only in an approximate, relative fashion: one hour ago, two days ago, etc. Among other sites, I see both Twitter and StackOverflow doing this, so apparently it's popular for both the technical and the general communities.

I can't figure out why. It's annoying to see two posts marked "one hour ago" and wonder which one was posted first. It's particularly annoying to see two posts marked "one hour ago," then check back and see that suddenly they are an hour apart, because one of them was "two hours ago" and the other is still "one hour ago," then to see them both finally mysteriously become "two hours ago."

Are real timestamps actually that hard for normal people to understand? Am I the only one in the world who ever wants to know if two posts are a five minutes or fifty-five minutes apart?

My favorite message board is hosted on UBB.threads (not my favorite software, but the community is good), which I think gives the user a profile option to disable this inanity. I can't find that on Twitter, and I'm about to check Stack Overflow, where I bet I won't find it, either.

Who thought this was a good idea? Who decided it shouldn't be a per-user option? And why in the world is everyone copying it?

Monday August 24, 2009
08:52 AM

Environment variables are not programming-related

It must be true. Stack Overflow says so.