Shark Country, PM

By admin

down the road from Hau Bush, it was overhead and firing although some of the waves were doubling up. I haven't surfed here in forever but it was worth it. Had some sick lefts.

categoriaSurf Journal commentoNo Comments dataSeptember 6th, 2008
Read All

Hau Bush, AM

By admin

I was in Ewa Beach all day so I hit the old spot, very consistent. I had tons of rides on my shortboard. One all the way into the beach.

categoriaSurf Journal commentoNo Comments dataSeptember 6th, 2008
Read All

Incinerators, PM

By admin

Got there around 4pm and there was some decent size inside one. By 5:30 or so, it was getting huge and closing out.

categoriaSurf Journal commentoNo Comments dataSeptember 5th, 2008
Read All

Shallows, PM

By admin

Nice little after work session. Not too many guys out and suprisingly, some good waves.

categoriaSurf Journal commentoNo Comments dataAugust 29th, 2008
Read All

/etc/cron.hourly/ and run-parts

By admin

My co-worker found out the hard way what run-parts is all about.
He was trying to run an hourly cron job so he put his script file in /etc/cron.hourly/ .

The file was named something like 'launch-nuclear-attack.sh'. However,the script didn't run hourly and the nuclear holocaust never took place. He dug deep and found out that the cron.hourly files are run by a program called 'run-parts'. In the run-parts man page it says:

“names must consist entirely of upper and lower case letters, digits, under‐scores, and hyphens”

This means that 'launch-nuclear-attack.sh' was an invalid filename since it contains a period. He renamed his file to 'go_for_world_peace', and it worked fine. Also, we're all in a lot better shape to boot.

categoriaTech commentoNo Comments dataAugust 25th, 2008
Read All

Replace text string in many files at once

By admin

So my boss says that he doesn't like the word “Admin” and wants it replaced with Administration in all the menus. Here's how to do it:

perl -p -i -e “s/'Admin'/'Administration'/g” *.rb

Perl rocks. Let's see you do that in Java!
Options explain:

-p assume loop like -n but print line also, like sed
-i edit <> files in place (makes backup if extension supplied)
-e one line of program (several -e's allowed, omit programfile)

Fortunately, with my case, the word “Admin” was surrounded by single quotes. If you have just the naked work Admin and you did:

perl -p -i -e “s/Admin/Administration/g” *.rb

two times in a row, you would end up with AdminAdministration, three times would give you AdminAdminAdministration…

categoriaTech commento1 Comment dataAugust 25th, 2008
Read All

Shallows, pm

By admin

pretty small but a few fun ones out there. had about 10 people on the spot and it it was the only place around that was breaking.

categoriaSurf Journal commentoNo Comments dataAugust 23rd, 2008
Read All

Get RGC from an image

By admin

I always seem to forget how to do this.

1) Open the image gimp.

2) Click on the color Picker tool:

3) open the color pallete.

categoriaTech commentoNo Comments dataAugust 22nd, 2008
Read All

Point Panic, PM

By admin

Tiny and high tide but nice to get in the water…

categoriaSurf Journal commentoNo Comments dataAugust 3rd, 2008
Read All

Shallows,

By admin

Nice morning out for a surf.

categoriaSurf Journal commentoNo Comments dataJuly 24th, 2008
Read All