Mon, 17 Dec 2007
HTML::Template in UTF-8
I use HTML::Template Perl module for some of my projects. There is a minor problem with it, that it does not allow the templates to be stored as UTF-8 encoded files. It treats data as bytes unconditionally, which is a problem with character-oriented processing in Perl.
If anybody is interested, I have created a patch which fixes this problem. The issue is tracked at CPAN and also at SourceForge.
0 replies for this story:
Reply to this story:
Thu, 13 Dec 2007
HTML Elements?
How many HTML elements can you name in 5 minutes? Try it. I have scored 38, forgetting oh-so-many common ones...
10 replies for this story:
Stepan wrote: 44!
44, but with h1-6 ;)
Yenya wrote: Re: Stepan
I had h1-h6, but totally forgot about form tags.
Peter Kruty wrote: 37 :)
hmm so many fogoten .. forms mostly, meta, title, .. :) nice.
Vasek Stodulka wrote:
21. Looks like I'm not a web programmer.
petr_p wrote:
59. But I had to remember elements I had have never use and also I had problems to filter docbook elemenents :) After seeing 32 omitted elements, I realised how HTML is old.
contyk wrote:
56... funny I omitted those most common ones such as hN, head, title... :)
Bobby wrote:
41. And I forgot HTML tag itself :-)
Spes wrote:
48 in HTML quiz. Than I have a 30% chance of surviving a zombie apocalypse :) and I'm 29% addicted to Apple. My dead body is worth $3625 and William Hewlett died on my birthday :-(
davro wrote:
51, I have guessed some tags I haven't ever used.
Pev wrote:
I had 38 and I lost ablut 30 sec at the beginning before I realized what was going on :). Thanks for nice link
Reply to this story:
Fri, 07 Dec 2007
Ekiga, PulseAudio, and D-Bus
It seems that more and more applications start using D-Bus for communication, so it is time to get ones feet wet with the D-Bus programming. Fedora 8 has PulseAudio enabled by default, which conflicts with Ekiga because of this ALSA bug (see also the related PulseAudio issue).
My solution is to suspend the PulseAudio server temporarily when the call is being made. This has an additional effect that you don't need to find where the music player window is hidden in order to mute it (so something similar would be usable even later, after the above two issues are fixed).
Anyway, here is my Ekiga PulseAudio suspender.
Written in Perl, needs Net::DBus
from CPAN,
and the pacmd(1)
and notify-send(1)
commands.
Run it on background from your session startup script (or even from the
terminal inside your desktop session). It will mute your PulseAudio server when the call is being received (or when an outgoing
call is being made), and enables it back after the call is finished.
Beware that ekiga
is not compiled with D-Bus support in
Fedora 8. New source
and x86_64 binary
packages are available, problem reported as
bug #410471.
Comments are welcome.
0 replies for this story:
Reply to this story:
Thu, 06 Dec 2007
Is Perl Being Maintained?
Another of the urgent works of the last month was rebuilding Perl and all of its modules for our production systems. The reason of it was that a security hole had been found in the Perl regular expression engine: CVE-2007-5116.
This hole has shown the sad state of Perl development: there is still not
a word about this hole at www.perl.org
nor CPAN, and new users are being informed
that perl-5.8.8
is the latest and greatest.
However, from looking at the spec
file from
the Fedora Perl package,
it seems that in the last year they have applied even some patches
labeled as "fixes from the upstream". So there is some development
in the 5.8 branch, but it is apparently not public enough, and the Perl
developers do not even acknowledge serious security problems in their
web site.
0 replies for this story:
Reply to this story:
Wed, 05 Dec 2007
Publish or Perish
Another deadline of the last month was a paper submission deadline to some conference. Well, I have decided that because I work for the company where academic titles matter, I need to restart my Ph.D. study.
I have submitted a paper about a (herein unspecified :-) problem, which I have tried to solve recently. The results are so far promising, so maybe they will accept the paper about these results as well.
When I have failed my previous attempt, it was mostly because my lack of time for doing a research in a topic that was not exactly related to my job. So I have decided that if I ever want to re-enter the Ph.D. study, the topic has to be something which I am directly involved in. My current plan is to have the sufficient number of publications first, and only then enroll to the Ph.D. studies, with the dissertation thesis topic already written. After defending it, submit the dissertation thesis itself.
Maybe I will have more luck this time.
4 replies for this story:
Honza Holcapek wrote:
Good luck then!
Milan Zamazal wrote:
I wish you good luck with your attempt. I know well how difficult it is to do anything interesting/useful once one enters real life...
Bulik wrote:
It's nice to hear about it. Let me know if you would consider number theory worth of trying, maybe you could use IS cluster for some advanced prime number computations ;)
Yenya wrote: Re: Number theory
Nice try. I have, however, said that the topic of my Ph.D. study has to be something which I am directly involved in, so the number theory is clearly out of scope.
Reply to this story:
Tue, 04 Dec 2007
JLPT 4
I am sorry for the infrequent updates of this blog - I have been rather busy lately. One of my deadlines of the last month was the Japanese Language Proficiency Test exam, which was scheduled to the last Sunday.
There are only few exam sites in Europe, with the nearest one being in Budapest. Because the test was scheduled at 10:30 am, we have decided to go there a day before, and stay in a hostel over night. We have booked a room in Astoria City Hostel - it was relatively cheap with even breakfeast included. However, the beds were not very comfortable, and the hostel was quite noisy (esp. for those who want to sleep well before the exam).
The exam started an hour later than it was announced. The most annoying part of the whole process was the supervisor of our exam room: altought there were people from all over Central Europe there (even Serbia, Croatia, or Slovenia), he only spoke in Hungarian. The other supervisor was a woman which, when we asked "What that man said during his 10-minute speech?", said one or two English sentences, which we even couldn't understand, because the man was still speaking loudly :-(. Talk about rudeness.
As for the test itself, I think there is still a chance that I have passed JLPT 4. The Kanji and vocabulary part was quite easy (altough it would help if I could distinguish between the left and right side ;-). The listening was quite hard, as well as some grammar parts. An evening before I have tried to redo some exercises from our textbook, and I made the same errors like I did when we wrote those exercises before. Almost no improvement since then :-(. We will see some time in February or March, when the results will be announced. If I pass JLPT 4, I want definitely try JLPT 3 next year.