KBD

Keith Devens .com

Friday, October 10, 2008 Flag waving
Don't panic. – Douglas Adams (The Hitchhiker's Guide to the Galaxy)

Archive: August 07, 2003

← August 06, 2003August 08, 2003 →

Daily link icon Thursday, August 7, 2003

Bedtime reading

Stuff I just printed out to read before bed... it'll probably put me right to sleep Smiley winking

Everything below is related, but I haven't printed these out:

Oh man... how exciting. Smiley I wish I had more time.

Markup Languages: Theory and Practice

Markup Languages: Theory and Practice is the first peer-reviewed journal devoted to research, development, and practical applications of text markup for computer processing, management, manipulation, and display. Specific areas of interest include: new syntaxes for generic markup languages; refinements to existing markup languages; theory of formal languages as applied to document markup; systems for mark-up; uses of markup for printing, hypertext, electronic display, content analysis, information reuse and repurposing, search and retrieval, and interchange; shared applications of markup languages; and techniques and methodologies for developing markup languages and applications of markup languages.

I only got to check it out briefly since I'm already late, but it seems like at least some articles are available for free. Gotta check it out more when I get home.

Ok, that was pretty much totally worthless. I went through their entire archive. Some (a few) of the articles looked pretty interesting, but every article cost 8 bucks. What a waste of time... I shouldn't have even blogged this Smiley frowning

I'm considering just deleting this...

New Perl class one-liner

You know, I never used to remember all the steps to creating a class in Perl. I always had to look it up, and it's one of those things you don't do very often. The "full" version is something like:

package Classname;
sub new{
    my $class = shift;
    my $self = {};
    bless $self, $class;
    return $self;
}

Well, I realized there's an easy one-liner that's much easier to remember:

package Classname;
sub new{
    return bless {}, shift;
}

If you want to throw data in there, you can:

sub new{
    return bless {foo=>1,bar=>2}, shift;
}

Obviously if you want to call any methods on your object to initialize it you'll have to split that line up, but this gives you an easy-to-remember version that's simple to split up.

← August 06, 2003August 08, 2003 →
October 2008
SunMonTueWedThuFriSat
 1234
567891011
12131415161718
19202122232425
262728293031 



RSS feed RSS feed for Keith's Weblog
Atom feed Atom feed for Keith's Weblog
Weblog archive
Recent comments
  on 6 posts

Recent comments XML

Call a function from a string in Python

?!code:
some_object.__getattribute​__('method_name')()
?!/code

is​the s...

Patrick Corcoran: Oct 8, 3:53pm

Spider solitaire

I have won 185 games of Spider​Solitaire at the "Difficult" level.​ What is...

75.179.28.113: Oct 8, 12:42pm

Sed one-liners

Hi.

I wanted to let you know​that I wrote an article "Famous Sed​One-Lin...

Peteris Krumins: Oct 8, 3:05am

Timesheet Calculator

Hadn't seen it before now, but my​company already uses a time​tracking prog...

Keith: Oct 7, 10:44am

Girls, please don't get breast implants

Hey everyone, 

I am new to this​blog and I have enjoyed reading all​your...

Sarah.M.: Oct 6, 9:45am

Generated in about 0.048s.

(Used 7 db queries)

mobile phone