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.
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.
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.
Shallows, PM
By admin
Nice little after work session. Not too many guys out and suprisingly, some good waves.
/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.
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…
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.
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.




September 6th, 2008