Now I’m a proud open source geek :)
My libnotify patch to hellanzb was incorporated into the 0.12 release.
Yesterday I saw that Debian unstable bumped the hellanzb package to last version 0.13, including for the first time my code on hellanzb :D I cannot believe Ubuntu is still lagging on this.
Anyway, it is a very good felling to thing that my code is now replicated over dozens of mirrors of free software around the world.
Really, I do love opensource. You should try it too :)
As part of my investigation work on PHP, I needed a preprocessor capable of extracting all the PHP from a PHP file, discarding all HTML it encounters.
Initially I thought it would be a hard job, but latter found that AntLR3 makes this job really easy!
I wrote something like this:
lexer grammar FuzzyPHP;
options { filter=true; }
PHP : ‘‘
{ System.out.println(getText()); };
This happens to work really good :) Now I can continue my PHP parser…
*: Of course my code doesn’t work when you have strings like '?>'. Here’s a new version that should work :)
PHP : ‘SINGLE_QUOTED_STRING |
DOUBLE_QUOTED_STRING))
’?>’ { out.println(getText()); };
SINGLE_QUOTED_STRING
: ’\’’ (’\\\\’ | ’\\\’’ | ~(’\’‘))* ’\’’ ;
DOUBLE_QUOTED_STRING
: ’”’ (’\\\\’ | ’\\”’ | ~(’”’)) * ’”’ ;
Today I made a presentation about Makefile::Parallel on the Braga.pm fifth tech meeting. I used the same slides from previous presentations :P
TODO: Someday I will need to look at the TODO file... NOTTTTTT!
Slides attached :)
Try this on your Linux box!
sudo perl -MAudio::Beep -e 'beep(21 + 9998, 3000) while 1'
Pretty annoying huh? :D
Now for something completely different:
use Audio::Beep;
my $beeper = Audio::Beep->new();
my $music = "g' f bes' c8 f d4 c8 f d4 bes c g f2";
$beeper->play( $music );
Audio::Beep is really a great Perl module! :)
Since the article about Makefile::Parallel was accepted at EuroPar, I never touched the software again.
Fortunately, it is been working since then without too many problems. However, there are a bunch of new features that we thought we could include in the distribution. So lately I have been spending some time doing small hackathons adding the features and correcting some bugs.
You can expect a new release on CPAN very soon :-)