www.arareko.net

"A hero is no braver than an ordinary man, but he is brave 5 minutes longer."

- Ralph Waldo Emerson

Archive for August, 2005

Sunday, August 7th, 2005

hydration–;

The story repeats itself for countless times. This occasion we added water to the mix, I swear!

We had a regular skin burning session at Espacio Escultórico. We did 2 laps under the bright sun. The wall was completely different from friday’s shitty conditions. After that we decided to run a small 8 km circuit at the university campus.

No trails, almost no trees and an implacable sun were the elements of the small race that finished in total dehydration (at least for me). Beto managed to finish almost elegantly while I had to stop about 700 meters before the car. I couldn’t breathe and I was very dizzy. The extremely hot temperature was drying me out, even though I drank 1 liter of water just before running!

Saturday, August 6th, 2005

Soapy wall

Another “illegal nocturnal climbing” tale…

Weather conditions tonight were very similar to the last time we caught a storm for training. The only difference was that it wasn’t raining strong enough for cleaning the wall. In fact, all the sand & dust from the top of the wall was plastered in every handhold, making them feel like grabbing soap…

We trained for about 1 hour and barely managed to finish 1 lap due to the complete exhaustion of climbing those crappy holds.

Tuesday, August 2nd, 2005

Objective-Oriented Stubborness

Take 2 masochists, put them in a trail by night, let them run 22 km non-stop, don’t add water, shake, stir, and wait for 2 hours 8 minutes… the result: a pair of stupid dehydrated men, full of cramps and falling into hypothermia!

Yes, this is tonight’s story, I’m not kidding. We’re just halfway of the desired goal and still in need of more training. Our plan is simple: get stronger or die…

Tuesday, August 2nd, 2005

Hacking leads to porting

Yesterday, (while hacking around some files) I unadvertedly started to do what I haven’t planned to do. Today, the unplanned result was: a new FreeBSD port.

I wanted to show some of my scripts in a fancy way, something like “syntax highlighted”. In PHP, there are 2 highlight-related built-in functions which get the job done in a matter of seconds. In fact, all I needed to do is to pass my scripts through the highlight_file() function and that was it! But what about my Perl scripts?

As far as I know, Perl doesn’t provide any highlight-related built-in functions like PHP. But that wouldn’t stop a Perl monger like me to “find a way to do it”… While searching in CPAN and the FreeBSD ports tree, I found that some other people had the same worry before and coded their own solutions.

I hacked around some web-driven applications such as: Apache::Syntax::Highlight::Perl and mod_color; the perl2html command-line tool; PPI::HTML and Syntax::Highlight::Perl modules; and finally I got to Syntax::Highlight::Perl::Improved. This last module was simple and powerful enough to do what I wanted and without the need of setting up a CGI/mod_perl environment!

It’s only downside was the lack of a FreeBSD port for it, it had to be installed through CPAN.pm. So after using it and being happy with its results, I decided to make a port and send it to the FreeBSD PR database. I know it can take a long time for the port to be committed into the ports tree, but in the meantime you can get a package from my FreeBSD ports page. Enjoy!