Wednesday, December 24, 2008

CCB sucks

well, it's not Perl related. ignore it if you don't like complaints.

CCB is China Construction Bank, http://www.ccb.com/.
I bought a USB key from the bank yesterday, and luckily I forget the USB password after I set it up. God, the ccb women just told me I can't reset my password and it's useless, I need buy another one!
HOW ridiculous IT IS!

CCB, you are really a sucker!
Thursday, December 18, 2008

JavaScript::Beautifier

I just uploaded my yet another module JavaScript::Beautifier to CPAN.

The module is mostly a Perl-rewrite of http://github.com/einars/js-beautify/tree/master/beautify.js

The js demo is http://elfz.laacz.lv/beautify/ which is really cool.

I'm going to write a plugin for Padre soon or later.

just enjoy!

Labels:

Monday, December 15, 2008

Catalyst::Action::Fixup::XHTML

Catalyst::Action::Fixup::XHTML is on CPAN now.

as what I said yesterday, I just made up a Catalyst Action for XHTML header.
the code is really very simple and most are copied from Catalyst::View::TT::XHTML.
and the test code too.

I also wrote tests for my MojoX::Fixup::XHTML. you can find here: http://fayland.googlecode.com/svn/trunk/CPAN/MojoX-Fixup-XHTML/t/live-test.t

Just enjoy!

Thanks.

Labels: ,

Sunday, December 14, 2008

MojoX::Fixup::XHTML

inspired from Day 13. Using XHTML Strict mode during application development., I just created a MojoX::Fixup::XHTML based on Catalyst::View::TT::XHTML

but it's more than TT. every template render can use it, it's in sub dispatch.
I'm thinking to create a Catalyst::Action::Fixup::XHTML to do more than TT, but I don't have much time now.

at last I applied to http://fayland.googlecode.com/svn/trunk/CPAN/day_day_up/lib/DayDayUp.pm

the source code is simple which can be found here: http://fayland.googlecode.com/svn/trunk/CPAN/MojoX-Fixup-XHTML/lib/MojoX/Fixup/XHTML.pm

Enjoy!

Labels:

Monday, December 08, 2008

another perl advent

http://badgerpower.com/advent2008/index.html

from Badger, the Template-Toolkit author.

enjoy!

Labels:

Tuesday, December 02, 2008

Advent is coming again

MySQL::SlowLog::Filter

we are using mysqlsla to parse MySQL slow.log, but we have an issue that our slow.log is pretty huge, it contains 2 years' data. somehow I just need 3 month or half a year.

I'm searching around to find a script to do the things I want and I find http://code.google.com/p/mysql-log-filter/
it's python(php) script and I do want a Perl script.

then http://search.cpan.org/dist/MySQL-SlowLog-Filter/ is out.
and a script: http://search.cpan.org/dist/MySQL-SlowLog-Filter/script/mysql_slowlog_filter.pl

have fun

Labels: ,