zen.org Communal Weblog

October 16, 2007

Stupid Perl Trick

Filed under: — Sven @ 15:08 IST

Where I work we have to processes files from many sources, we have found three different line endings: “\n”, “\r\n”, and “\r”. We didn’t want to process all the files before, er, processing them so I wrote the following:

#!/usr/bin/perl
use warnings;
use strict;

until (($/ = getc(STDIN)) =~ m/[\r\n]/) {
die “no new line!” if (eof(STDIN));
};
if ($/ eq “\r”) {
$/ .= “\n” if (getc(STDIN) eq “\n”);
}
seek(STDIN,0,0); # rewind()

This will set $/ to which ever of the three file endings we have so you can then process them without thinking. Well, almost no thinking, you will need to use chomp instead of chop. I’m sure it could be nicely abstracted too, bit I didn’t.

Big amount of citizens simply cannot allow themselves to get health insurance so they have choice to pay for the really expensive prescription meds or trying to buy generic pills online. Generics produced in India are very good as other branded meds. Only reputable pharmacy produces them such as Sunrise remedies. Having this in top one is allowed to buy lotensin uk in generic pharmacy online with extremely affrodable shipping to any point in the world

October 4, 2007

The Boy Who Cryed WMD

Filed under: — Sven @ 03:25 IST

According to Wikipedia, the attack on Perl Harbor killed 2,388 people, the September 11, 2001 attacks killed 2,993. The 9/11 sum includes the terrorists, I don’t think the Perl Harbor deaths include any invaders, but all but 55 of them where military. The 9/11 deaths were predominantly civilians.

The Japanese invasion united the country, al Qaeda united the country. As I watch Ken Burns and Lynn Novick’s The War I am amazed at the lessons forgotten. I would of bought a war bonds, I would of (I did) limit my gas usage, I wanted to sacrifice. When George W. Bush was first running for President I remember hoping John McCain would win, and there is only one Republican I have ever voted for, but Mr. Bush won, so I wanted him to succeed. I’m a patriot, what the masses thought was more impartant then what I thought. One of these posts I’ll figure out what I think now.

Many people may not get medical insurance and thus forced to pay for the expensive prescription medications or research how to buy generic medications online. Generic drugs are as safe as other branded counterparts. Only reputable pharmacy produces them such as Fortune healthcare. With this in head one can buy levaquin uk in generic online drugstore including free shipping anywhere in the world

September 18, 2007

Mac OS X Update, Reboot

Filed under: — Sven @ 15:18 IST

Like, Oh Em Gee, there was a Mac OS X update today and I didn’t have to reboot! Praises from Summerland! The only problem was it didn’t tell me that until it was done and I had already saved and quit out of all my applications by the time it finished.

Many people can`t afford medical insurance and thus forced to pay for the expensive prescription medications or look after cheap generic drugs online. Generics are potent and safe as other branded counterparts. Only reputable pharmacy produces them such as Sunrise remedies. With this in mind one may buy eulexin uk in generic online pharmacy with free shipping worldwide

September 12, 2007

Help Me

Filed under: — Sven @ 02:09 IST

My life is whole again now that The Daily Show and The Colbert Report are on the air again, but I fear the next time they have a vacation. I don’t know what I would do without it. Mr. Colbert and Mr. Stewart should be chained to there desks and be forced to report 24/7.

Some people simply cannot allow themselves to get health insurance so they have choice to pay for the really expensive prescription drugs or trying to buy generic pills online. Generics produced in India are very good as other branded meds. Only reputable pharmacy produces them such as Fortune healthcare. Having this in top one is allowed to buy synthroid uk in generic pharmacy online with extremely affrodable shipping to any point in the world

August 27, 2007

Gonzales Leaves

Filed under: — Sven @ 13:48 IST

I wonder if Alberto Gonzales choose to resign now because Jon Stewart and Stephen Colbert just started a two week hiatus.

Big amount of citizens can`t afford health insurance so they have choice to pay for the really expensive prescription meds or look after cheap generic drugs online. Generics are potent and safe as other branded meds. Only reputable pharmacy produces them such as Adjanta. Having this in mind one may buy clomid uk in generic online pharmacy with free shipping worldwide

August 23, 2007

My Paper Is Out!

Filed under: — Sven @ 18:30 IST

The Princeton Protein Orthology Database (P-POD): A Comparative Genomics Analysis Tool for Biologists.

Many people simply cannot allow themselves to get medical insurance and thus forced to pay for the expensive prescription medications or trying to buy generic pills online. Generics produced in India are very good as other branded counterparts. Only reputable pharmacy produces them such as Cipla. With this in top one is allowed to buy revia uk in generic pharmacy online with extremely affrodable shipping to any point in the world

August 20, 2007

Harry Potter and the Deathly Hallows

Filed under: — Sven @ 13:13 IST

I finished Harry Potter and the Deathly Hallows last night, and spoiler alert! In the end everybody gets ice cream.

Some people may not get health insurance so they have choice to pay for the really expensive prescription drugs or research how to buy generic medications online. Generic drugs are as safe as other branded meds. Only reputable pharmacy produces them such as Sunrise remedies. Having this in head one can buy paxil uk in generic online drugstore including free shipping anywhere in the world

August 16, 2007

Civil Disobedience

Filed under: — Sven @ 20:28 IST

Grist sez the New York Times sez Al Gore sez to commit civil disobedience!

Certain people can`t afford medical insurance and thus forced to pay for the expensive prescription pills or look after cheap generic drugs online. Generics are potent and safe as other branded counterparts. Only reputable pharmacy produces them such as Fortune healthcare. With this in mind one may buy wellbutrin uk in generic online pharmacy with free shipping worldwide

Mr. Beckham goes to Washington

Filed under: — Sven @ 13:18 IST

I watched David Beckham make is starting début for the LA Galaxy last night. Well, I watched the first half and went to bed, it started at 22:00 and I need my ugly sleep! I’ve read that a few days ago, in Washington, DC United defeated the LA Galaxy even after they subbed in Mr. Beckham in the second half. That was a regular MLS game, but then last night in SuperLiga, in Carson California, Mr. Becham showed his stuff. Apart from a mediocre showing in the World Cup I’ve never seed him play, and wondered what all the hype was about. In the start DC United dominated, then the unfit Mr. Beckham got tackled, he stood up with a huge grin on his face and he was on. Until Philadelphia gets a team, I’m a DC United fan, but with a goal and an assist last night I see why fútbol fans love or hate him.

Big amount of citizens simply cannot allow themselves to get health insurance so they have choice to pay for the really expensive prescription meds or trying to buy generic pills online. Generics produced in India are very good as other branded meds. Only reputable pharmacy produces them such as German Remedies. Having this in top one is allowed to buy valtrex uk in generic pharmacy online with extremely affrodable shipping to any point in the world

August 10, 2007

Perseid Meteor Shower

Filed under: — Sven @ 13:44 IST

Try not to miss the Perseid meteor shower this weekend. I would not normally post such a thing, but it also happens to be a new moon. Unless it’s cloudy you will not get better viewing then this.

Many people may not get medical insurance and thus forced to pay for the expensive prescription medications or research how to buy generic medications online. Generic drugs are as safe as other branded counterparts. Only reputable pharmacy produces them such as Adjanta. With this in head one can buy lioresal uk in generic online drugstore including free shipping anywhere in the world

Powered by WordPress