Tag Archives: Perl

CopyFS Update

Years ago I added features to CopyFS 1.0, then 1.0.1 came out and I never bothered to forward-port my changes. After spending some time moving, merging, rebasing, etc. in git this morning, CopyFS 1.3.1M is CopyFS 1.0.1 + CopyFS 1.3M. … Continue reading

Posted in Coding, Linuxy | Tagged , , , | 2 Comments

Which Oar Best Rows The Boat

Ted Dzuiba wrote a post that boiled down to identifying his own “language bigotry” as a step along the way to software engineering “Mastery”. He’s absolutely correct about introspecting why one chooses to “fight” other languages. And by saying “languages” I could … Continue reading

Posted in Architecture, Coding, Life, Opinions | Tagged , , , , | Leave a comment

Caching Functions In Perl

Synopsis There are occasions, where you write a function that takes some parameters and outputs consistentish data. Example: sub add { my($first,$second)=@_; return $first + $second; } If you call add(1,1) you get 2: always. Consistent input yields consistent output. … Continue reading

Posted in Architecture, Coding, Linuxy | Tagged | Leave a comment

Sorting Strings Ending In Numbers In Perl

Synopsis I deal with a lot of names that look like “somedumbserver2” and “somedumbserver15”. Using Perl’s default sort, “somedumbserver2” comes before “somedumbserver15” because the character “2” is greater than the character “1”, and that’s where the sort stops.  This sort, … Continue reading

Posted in Coding, Linuxy | Tagged , , | 1 Comment

Fixing Mis-cased URIs Under Apache

Synopsis This is rather old code, but saved my bacon more than once.Runs under Apache with Mod_Perl, and corrects the URI requested when it is giving lazily. Thus a request for “/INDEX.HTML” is rewritten to “/index.html” as appropriate. Code =head1 … Continue reading

Posted in Coding, Linuxy | Tagged , , | Leave a comment

Merging Filesystems Virtually Under Apache

Synopsis This is rather old code, but saved my bacon more than once. Runs under Apache with Mod_Perl, and “merges” any number of filesystems. You’ll see the @docroots array that takes a list of “document roots”. These all need correct … Continue reading

Posted in Architecture, Coding, Linuxy | Tagged , , | Leave a comment

A Perl Thread-Pool

UPDATED: 9/5/2013 to use better Thread::Queue::dequeue_timed in lieu of sleep. I’ve been doing a lot of large-system coding with Perl ithreads lately.  This thread model has been scaling very well on very high-throughput operations in conjunction with well-placed yield() calls … Continue reading

Posted in Architecture, Coding, Linuxy | Tagged | 3 Comments

[ANNOUNCE] CopyFS 1.3M

[UPDATE: There is a newer version of CopyFS available] CopyFS 1.3M is a non-official branch of the CopyFS filesystem for FUSE. v1.3M should be considered an “advanced beta”. As it is a FUSE filesystem, faults in the filesystem cannot cause … Continue reading

Posted in Coding, Linuxy, Work | Tagged , , , | 1 Comment

CopyFS is now even cooler

[UPDATE: There is a newer version of CopyFS available] Some backstory: I used to write a LOT of code in the C programming language. I used to be actively involved in numerous open-source programs that used C. Hell, I even … Continue reading

Posted in Architecture, Coding, Linuxy, Work | Tagged , , , | 2 Comments