Athanasius's user image
User since: May 01, 2012 at 11:13 UTC
Last here: Oct 30, 2014 at 16:00 UTC (2 hours ago)
Experience: 14620
Level: Monsignor (18)
Writeups: 947
Location:Gold Coast, Australia
Curacy:637th Monk in the Book, Dec 03, 2012
Image:Athanasius I of Alexandria
Motto:Contra Mundum (“Against the World”)
User's localtime: Oct 31, 2014 at 04:16 EST
Scratchpad: View
For this user:Search nodes


Errors, like straws, upon the surface flow;
He who would search for pearls, must dive below.

— John Dryden



Favourite Nodes




It should be noted that no ethically-trained software engineer
would ever consent to write a
DestroyBaghdad procedure.
Basic professional ethics would instead require him to write a
DestroyCity procedure,
to which
Baghdad could be given as a parameter.
— Nathaniel Borenstein



Useful Regexen

  
  • by Benjamin Goldberg, in How can I output my numbers with commas added?:
  • $integer =~ s/ (^ [-+]? \d+? (?=(?>(?:\d{3})+) (?!\d)) | \G\d{3}(?=\d) ) /$1,/gx;
      
  • to extract the name of the current s‎crip‎t (or module) from the full path:
  • (my $s‎crip‎t = $0) =~ s| ^ (?: .* [\\/])? (.*) \.p[lm] $ |$1|x;



    Do not free a camel of the burden of his hump;
    you may be freeing him from being a camel.

    — G. K. Chesterton