Older blog entries for shlomif (starting at number 230)

PmWiki Reverting Script

The old Perl-Begin Wiki, powered by PmWiki got heavily spammed. I wanted to write a script to revert the pages along with their histories back to a previous date. When I posted a message to the PmWiki mailing list, Patrick Michaud (the PmWiki writer, among else) explained that it would be very difficult, said it should better be done manually, and then explained the format.

Despite that, I set to write the script. It turned out to be not very hard, and the main thing in which I spend a lot of time banging my head on, was the fact some pages started from a filled-in state. But otherwise, after I ran it, it worked beautifully, and probably took less time than a manual work.

The script is available on my site. I now re-enacted the Perl-Begin wiki as a MediaWiki, and not I monitor its RSS feed to prevent future spam.

MediaWikis

I am now the proud admin of 4 MediaWikis: The Hackers-IL Wiki, The Perl-Begin Wiki, The Python-IL Wiki, and Perl-IL Wiki.

The wiki that took the largest amount of time to set up was the Perl-Begin wiki, because it took time for Berlios.de to make the database ready. The wiki that sparked the most contreversy so far is the Python-IL one, because some people insist on using Moin-Moin instead. The Perl-IL wiki is a second attempt at having an active wiki for the Israeli Perl Mongers, after our old Kwiki-based wiki first got spammed and then stopped working for some reason.

Additions to the Art Section

I added the "Made with Latemp" logo and the background for the "Human Hacking Field Guide" story to the Computer Art section of my homepage.

thac's KDE 3.4.x

I upgraded to KDE 3.4.x from thac's RPMs for Mandriva. It is working sort of, but has many bugs. There were many duplicated entries in the menus and toolbars which I had to eliminate by manually editing some configuration files. Also, Konqueror no longer detects RSS feeds for inclusion in Akregator. And the Kedit menus are completely borked. I'm seriously considering downgrading back to KDE 3.3.x.

The Daemon, The GNU and the Penguin

I read the chapters of "The Daemon, The GNU and the Penguin" that were published so far. It was a pretty good read. I expected all the chapters to be much longer than they actually were, which was both a pleasant and a disappointing surprise.

Presentation about LAMP

My presentation about Web Publishing Using LAMP is now online and linked from my site. It is already a bit out of date, but that's life in the fast lane of web publishing. ;-)

Catalyst

I published a weblog entry about Catalyst in my use.perl.org blog. Aside from that, I'd like to note, that I found WWW::Form useful there too, but had to extend it a bit for the purpose. A new version of WWW::Form (1.16) was released on CPAN to reflect these changes.

Pythoneers Meeting

The Israeli Pythoneers had their first meeting for a long time which I organized. (despite not being very fond of Python). At first we gathered next to the cinema, and waited till everyone who planned to arrive arrived. The cellphones were really helpful there. We had some small talk about various things, like Perl, Python, PHP, Linux, Demand for various open-source related jobs in Israel, the demand for Python programmers in Israel, etc.

Then after everyone arrived (8 in total - pretty good I think), we went to a quiet place (same place as the Israeli Wikipeders meeting took place) gathered around the table and started discussing our plans for the future. The summary of this meeting (in Hebrew) is available on the Wiki.

A few people left early for various reasons. Eventually 4 stayed to eat there. Amit Aronovitch and I took meals from Smokey, Beni Cherniavsky took a Chicken Salad from Nandos, and someone else took Sushi from the Japanese Bar. We sat around one table and ate and chatted. We discussed the linmagazine discussion on the the term "Nazi", and I told them about the funny discussion in discussions@hamakor (search for "You can easily install the binary distribution of Mozilla") that was started from someone mentioning that he was still using Mozilla 1.1.

Then we parted. I took the bus back home as no-one was driving in my direction.

thewml.org

After a discussion in the Web Meta Language discussion list, where someone suggested to host the WML homepage on his own machine, Ralf Engelschall has noted that he enabled the server-side ePerl in thewml.org. This inspired me to continue my work and now I got the front page and the about page to validate as XHTML 1.1. I'll probably do more in the next days.

Blog Aggregation Using Perl

In order to get all my blogs aggregated on Planet FOSS-IL, its webmaster requested me to aggregate them all into one place, so they'll all appear under my name. After a long time of negotiating with him, I decided that if the Mountain won't come to Muhhamad, then Muhhamad will have to go the Mountain, and decided to write it.

I decided not to use PlanetPlanet because it probably wouldn't be able to run on Debian Woody where I wanted to run the cron job. Instead I opted to use XML::RSS::Aggregate. So I ran it on the three blogs, and then found out that the dates on many of the blogs were wrong. After some investigation I found out it generated an RSS 1.0 feed. I tried to get it to generate an RSS 2.0 feed, but it didn't work. Turned out the version of XML::RSS in Woody was so old it did not support it. So I installed the new version of XML::RSS under a path in my home directory.

Then, it turned out all the dates of the use.perl.org journal were wrong. Why? It was an RSS 1.0 feed for some reason! I tried to find if I can get an RSS 2.0 feed instead, but my URL guessing did not work. So I had to overcome several problems. The first was that the field of the date in the spec has changed from dc:date to pubDate. This was relatively easy to fix. However, the date format has also changed. In order to translate the old date format into a timestamp, I had to install the new version of the Date::Parse module. Then, I tried to convert it to a formatted time using the localtime() Perl built-in. Only it turned out it was not the correct format for RSS 2.0 which required RFC822 format. So I looked for an appropriate format string to format it to. Two google searches later I found one in the code of HTML::FormatData, and I copied and pasted it.

Then (finally) akregator approved of it and I was able to notify the Planet FOSS-IL webmaster about it. After installing several modules, and patching XML::RSS. What's the lesson here? I honestly don't know. Nevertheless, it's just convinced me that I'd like to upgrade eskimo.iglu.org.il to Sarge as soon as possible.

Human Hacking Field Guide

I did some extra work on "The Human Hacking Field Guide". Rather minor changes, except for styling the page, in a much better way. I started from the Two Triangles style of Open-Source Web Designs, but then discovered it was missing some graphics, so I designed a similar layout using GIMP, which looks pretty well. I still need to set up a for-print stylesheet, and see how I can get the XSLT stylesheets to include this statement in the HTML <head>.

I received some comments on it, some positive and some critical.

Puppy!

My bike broke the other day and I wasted all afternoon carrying them back home. On Sunday I went to the bicycle repairman. I asked him some stuff about what it takes to be a bicycle repairman, and we even discussed Liberalism, Democracy and Laissez-Faire Capitalism briefly.

Anyway, when I returned from him, I dragged my bike among several people, among them were a few girls with an incredibly adorable puppy. I think he was grey but he was very beautiful. I asked his owner if I could pat him and she said I could, and I did.

And for the record: I'm a Cat person.

Neo-Tech News

I recalled that the Wikipedia did not have an entry about Julian Jaynes, or his theory about the origins of consciousness. Well now it has: entry on Julian Jaynes, entry on the theory. The latter page also links to the entry about Neo-Tech, which I'm sure did not exist.

In any case, the latter also points to the fact that a lot of the Neo-Tech material is now online, but in a different URL. Here are The Neo-Tech Advantages, here are the Selected Portions from the Neo-Tech discovery, and here is Neo-Tech - The Philosophical Zero.

It seems that many occurences of "Neo-Tech" were changed to "Neotech". I don't know exactly why.

Ruby on Rails

I took the Ruby on Rails tutorial over at OnLAMP.com. The tutorial is quite Windows centric, and I also needed to update it to later conventions. I also got stuck on incorrect whitespacing in one of the fails. All in all, though, it seems like a very nice technology. Now, I'd like to take the Catalyst tutorial and see if it also lives up to my expectations.

If so, I'll guess I write a sample application (which I'd like to have anyway) just to learn it better.

Countering Anti-File-Swapping Lawsuits

I posted a notice about my editorial to the Linux-IL and discussions@hamakor mailing lists. This sparked quite a discussion, which I happily took part in. However, my original intention, to ask whether Hamakor was going to do anything about it was quickly answered, and then people simply continued to debate whether file-sharing was moral, ethical, or whether violating the letter of the law in this regard, could undermine Liberalism.

I was not convinced that file sharing is immoral or unethical, and I believe it should be perfectly legal. I also think that downloading some songs from P2P networks and other sources "illegally" cannot undermine Liberalism. There are many other gems there, if you care to read it.

Miss Universe Site Outage

After the Miss Universe ceremony there was a lot of discussion on #perlcafe about the various candidates. So I went on to check the site. What do I get? A standard Microsoft IIS page saying that too many people access the web-site, and that I should try again later. After the night, it got better, but still, it was obvious that it could not handle the load.

So what have caused this? The server+OS? The machine being not fast enough? Or maybe the bottleneck was the I/O?

23 May 2005 (updated 3 Sep 2005 at 17:15 UTC) »

"Human Hacking Field Guide" - Now Public

The "Human Hacking Field Guide" is now publicly available on my web-site. It's a humourous story about L.A. high-school teenagers who are involved in open-source. There aren't too many technical terms, and it might also serve as a good propaganda for more teens and children to become interested in computers and science.

Note that I believe grown-ups may enjoy it, too. So far I received mostly good commentary about it by people who read it. The story is not completely finished and there are some known logical or plot issues, but it's still very usable.

Enjoy and spread the word!

Pod::Xhtml

I realized Pod::Xhtml does not generate valid HTML. So I fixed it. Now it's time for the good people in the British Broadcasting Corporation to incorporate the patch. <sigh />

Latemp

I released Latemp 0.2.0. Now what I'd like to do is to try to get everything packaged in RPM packages. Time to write some scripts, I guess...

Perl DBI

Hmmm... turns out DBI returns the same array reference each time you call fetchrow_arrayref. It's documented, but if you ask me counter-intuitive. In any case, You Have Been Warned.<tm>

IGLU Jobs Tracker and RSS

I added an RSS feed to the IGLU Jobs Tracker. It took me some time to get right, but it proved to be quite useful, even for me. A problem was reported on using it with rss2email, but akregator can handle it fine.

Events

There was an Assembly of Hamakor the other day. It was on the same day of the European championship and of a Tau-SEC meeting, but nonetheless many people have arrived. We voted on several things. Most of the really imporant modifications to the bylaws were passed. The new board is Orna Agmon, Alon Altman and Gilad Ben-Yossef. The latter urged us not to vote for him because he had a business, and was about to have a baby, but people still did. Ori Idan was not elected, but he promised to still be very active.

Adir Abraham, Nadav Har'El and I are the comptrollers committee. So far it seems that Adir is the most energetic of us three. I still have to get acquainted with the full text of Hamakor's bylaws...

Another important event was a new meeting of the Israeli Perl Mongers. There's a report of it over at the Israeli Perl Mongers site. I've written about some things that are missing from there in a message to the mailing list.

New CDs

I received some money as a present from my grandmother, and decided to spend most of it on CDs. I went to the store wanting to buy a CD of Enya, a CD of Des'ree, and "The Comedy Store" (an Israeli group of comedians) CD. They only had Enya, so I also bought two U2 collections. The collection CD of Enya is mostly excellent. The U2 cds are also nice.

I converted them to .ogg, and I think they sound a bit better than the equivalent .mp3's. This is the first time I bought so many CDs.

Israeli Pythoneers

I wrote a Call to Israeli Pythoneers to become more organized. I received some comments, and as a result set up the Python in Israel homepage with a wiki. We'll have an informal meeting (i.e: meeting at a mall, talking, eating and shopping), so if you're Israeli and like Python or care about it, spread the word.

A caveat should be mentioned: I don't like Python too much. Sometimes I can write it or hack on code that's already written in Python and it's OK, but I prefer Perl by far. I'm doing it because I noticed that there are many Pythoneers in Israel, and it's a shame they are pretty much inactive offline and to a lot of extent online.

eskimo.iglu.org.il Upgrade

Check this thread in iglu-web about the eskimo upgrade. At the moment iglu-web runs Debian Woody, and we'd like to upgrade to Sarge Real Soon Now. I also mentioned some other stuff I'd like to do, like gradually switching to Siesta instead of ezmlm, and then to replace qmail with postfix. This triggered the opinion bit of a few qmail+ezmlm zealots. (who are otherwise free software advocates).

A Hebrew spin-off of this discussion can be found in linmagazine.co.il. However, it deteriorated into a Linux-vs.-BSD flamewar.

BitKeeper Essay

I wrote an article titled "What BitMover Got Wrong" over at the Better-SCM site. I OSNews.com'ed it and judging by Google it seemed to have hit the rest of the blogosphere. It seems to have been rejected from Slashdot, though.

I also sent it to Linux Weekly News. I did not find it on their newswire, but hopefully it will be mentioned somewhere in their weekly edition.

New Weblogs + Personal Ad

I have two new blogs. My use.perl.org blog is a blog in English dedicated to my Perl activities. My linmagazine blog is a blog in Hebrew, where I write about Open Source activities in Israel, and open source advocacy.

Other than that after talking to Jeremiah Kauffman (jkauffman) on the IRC, I was convinced that I should not wait until I have a job to get a girlfriend. Having reached that conclusion, I wrote a Personal Ad. I received a lot of good feedback from it from people I consulted. I'd like to spread it around at various Internet places, but the Students Association of the Tel Aviv University, where a lot of my prospective audience can be found, only has one web forum and it's restricted to TAU Students alone. They obviously don't know the value of good social engineering. The Technion's Student Association has several web-forums (powered by PHP-BB) and none of them are restricted.

In Memory

I'd like to tell the story of my personal encounter with a soldier who lost his life in battle. At first, though, a note is in order for International readers: terrorism in Israel is not as severe as people are led to believe. Most households are completely unaffected by it, the streets are perfectly safe, most people don't carry weapons, and more people get killed due to car accidents than terrorist acts. While Israel is far from being as peaceful as Switzerland, for example, it is nonetheless pretty safe to be here.

At high school, I became friends with a kid who studied in my class. He was very fun, very intelligent, and had a great sense of humour. I really liked him. He wasn't one of my two best friends who were from my class, and my two secondary friends whom I knew from Elementary school, but he was a good friend nonetheless.

It was in our Junior year, when his brother (whom I did not know) who has served in the Army at the time as a Battlefield Medic died in battle. It was an encounter with the Hizbullah in Southern Lebanon. We heard about the upcoming funeral by word of mouth, and I was able to attend as well as many people of my class. (Jewish funerals must be conducted as close as possible to the time of death). I recall that I forgot to bring a Kipa (a traditional Jewish ceremonial hat), and had to borrow one from my aunt's friend. I don't recall too much from the ceremony except for people saying Amen or Qadesh several times.

My friends and I went to visit this kid a few days later, when his family was hosting friends and relatives for the "Shiva'a" - the traditional Jewish week for comemorating the dead. We chatted a bit. He was dealing in his geneoulogy at the time, and having given him a freeware geneology program for DOS to facilitate it. I asked him how it went, and he answered that he had problems because many of the records were in German. When he left the room my friends scolded me for doing that, because they thought it was inappropriate at a time when a family member died. I did not thought so at the time, and retrospectively don't think it was inappropriate today as well.

Afterwards, I felt a change in him. He became more cynical, and used to insult me in public (not too much or too hard). He was still very fun, but I definitely felt a change.

As a result, I started having bad sentiments and thoughts about the Hizbullah. At one time I said to myself "I hate the Hizbullah." (I don't think rationally feeling hatred is bad, and still hate them.). I had less emotional baggage towards the Palestinian organizations. I considered the Hizbullah the second worst "Liberation organization" I knew of after the IRA. Don't get me wrong, some liberation organizations were very noble. Prime examples are the Maquis and the Haganah (except for a brief period in which they performed Terrorist acts) were very noble. But the Hizbullah, the IRA, and many other organizations some of which are still highly reverred, and most others entirely forgottten are anything but.

Eventually, I decided I'd like to write a story about the Hizbullah. I had an idea for a story about a Hizbullah soldier (or was it a friend of a soldier) who had stayed in his village, right before his troop (or is it platoon) went to battle, when he knew most of them would never survived. The kind of stuff, many completely uninteresting movies in Holywood or the Hallmark channel are made of.

My real inspiration came later on from two things. First I read Neo-Tech and was heavily inspired by it. Among the many things of inspirations were:

  • A specific mention that the Ends never justify the means. This in turn made me think that "The Ends Justify the Means" actually mean "Ethics = No Ethics".
  • I encountered a piece of Aristotle's Organum:

    1. A is A.
    2. A is not not-A.
    3. All entities are either A or not-A.
  • Together with "Ethics = No Ethics" I had a winning formula.

The other source of inspiration was reading The Bastard Operator from Hell, a delicious story about a UNIX system administrator who re-defines the term "User Friendly". ("'What's your username, again?' click-click-clickety-click").

I came up with the idea for The Enemy and How I Helped to Fight it during a trip to England. I became so obsessed with the story during the last days of the trip that I could hardly function. During our return home I fired up MS WordPad and started writing the first draft. It was relatively short, and as I showed it to my best friend, he said that it was OK but not too funny. He was right.

It took me six months to rewrite it. I started by writing the first chapter (on Paper), and went to my friend's house and read it to his brother and him. They liked it as a whole and gave some useful commentary. I transcribed the story into the computer refactoring it as I went along and continued it. I printed excerpts to my friend, but he was too busy with his army service to read it till its end. My co-worker, once he heard I was writing a story, insisted on me sending it to him to read. I send it to him and his commentary was essential for shaping the final story.

I received mostly good critiques of it since.

I'll give a teaser which covers only the first chapter, out of 10. One day the Member of the Organization wakes up and goes to the base. It's a lovely spring day, the flowers are blooming and there is a lot of wildlife on the way. He thinks it would have been a perfect day to fire missiles on the Enemy's soldiers, but he has different plans.

After having a chat with some of his co-soldiers who are outside, telling them he plans to quit, he goes to his commander and tells him he's quitting. His commander is sorry to hear he's living, saying the Other Member of the Organization is also quitting today ("When it rains it pours") and wishes the now ex-Member of the Organization, good luck in his future whereabouts and that he would maintain the spirit of the organization and its philosophy.

The ex-Member (sorry for the bad connotation) is about to leave, when he comes back and says that he has served the organization for several years now and yet no-one has told him what its philosophy was. So the commander explains it to him. The objective of the organization is to fight the Enemy (a country to the south of the country in which the Organization operates) with all of its might. However, there's one thing that hinders their actions. It's not even real, but a meta-physical term, that accepting most interpretations of it would have caused them to be unable to operate. This term is "Morality". As a result, they have decided to accept the Philosophical Equation "Morality = No Morality.". However, since it contradict Aristotle's Organum (see above), they decide to reject the Organum or at least don't see it as necessary true.

The ex-Member tells him that in this case, it is a good thing. He too has read the Organum and had his doubts about it, but thinks that rejecting it opens a possiblity for the members of the Organization. If A can be not-A and since the Members of the Organization are not the Enemy's soldiers it is evident that they are its soldiers (!!!). This makes there task more easy: they can kill each other, and all of the casulaties are of the bad guys.

The Commander thinks it's a brilliant idea. He thanks the ex-Member of the Organization and tells him he'll implement his decision right away. The ex-Member tells him he's glad he did. He says goodbye to his commrades, finds the other member who quit that day, and they walk back to the village.

As they finish climbing a hill that overlooks the base, they hear sounds from its direction. They see the members of the base killing each other. Eventually one last member remains on the roof victorious. The commander exits from the remains of the base and shoots him. He then enters and writes a memo about it to the Organization's upper level, files it in the base's post-office box, and then shoots himself to death.

The two ex-Members shrug their shoudlers and continue on their way back to the village.

Like I said, it is only the first chapter. There are nine more. The story is available in English Hebrew Word-Generated-HTML (sorry, but it seems to be readable on every browser I tried). The Hebrew is quite high, and I (who is not a native English speaker) did the translation. I translated some words using a dictionary and when reading the translation could not understand them. (I know it's lame). I'd like to write a fourth draft in which I simplify the langauge of the story, but I did not get to it.

An Iranian correspondant (who now relocated to Canada), has read and enjoyed the story, and said he would try working on a translation to Farsi. The story's copyright does not say so explicitly (I have not updated the page yet) but it is licensed under the Creative Commons Attribution Share-Alike license version 2.0 or at your option any greater version.

If you like it, please circulate this blog entry or link to it. Remember Death.

Memorial Day

I have a great entry for Memorial Day, but I have to post it later, because I need to really think about it and make sure that it's in the right spirit. If I know you well enough and trust you enough, I can send it to you by E-mail privately. E-mail me or post a comment on LiveJournal (with your E-mail) and I'll see what I can do.

New Signature

All hail my new signature. It's based on something I thought about and then said in FreeNode's #perl channel, with a later edition, which makes it much more funny. Here goes:

"Tcl is LISP on drugs. Using Strings instead of S-Expressions for Closures is Evil with one of those gigantic E's which you can find in the beginning of Paragraphs."

Which Masses is Linux Ready For?

There's an interesting thread in Linux-IL about which of three masses of users (The "Aunt Tillie"'s, the Power Users and the Gurus) is Linux ready for. You can find some "WinXP eats Linux alive" E-mails which were eventually reasoned against properly. A very good and informative thread with many interesting anecdotes and real-life stories.

Ehud Manor - 1941 - 2005

Ehud Manor, a famous Israeli song writer passed away some weeks ago. He wrote many famous Israeli songs, and as a tribute to him, some of the radio channels played his songs non-stop. I discovered some songs I really like are by him. He will be missed.

Account on freehackers.org

I helped a freehackers.org sys-admin resolve an obscure Apache+Perl+UNIX permissions problem, and as a gratitude he gave me an account on the machine. I knew of freehackers.org before as the developers of KVim, the Vim KDE-based interface. (now superceded by Yzis). So far, I customized the account to my liking, and also installed (with permission by the admins), an instance of infobot.org which I called Pninith (after the Hebrew word for "Pearly") and who hangs around some Freenode channels. I also set up demos of SVN-RaWeb-Light there. I'm really glad I got this account.

libcurl and file uploads

According to this article on LinuxDevCenter.com libcurl is capable of uploading files using FTP. I previously thought it could only download FTP files. This is a very good revelation and can also scratch an itch of Joel Spolsky where he was looking for a library that can do FTP uploads.

Birthday

I had my 28th birthday on May 5, but it coincided with the Holocaust Memorial Dad. My sister's birthday is coming on May 30.

Latemp - A CMS for Static HTML Sites

Latemp is a new Content Management System I created for static HTML files using WML files. You can find more information about it in its about page as well as this announcement on my use.perl.org blog and its Freshmeat record.

I decided to use SCons as an installer, out of the constant frustration of having used the GNU Autotools for previous projects. So far, the experience has been a relatively pleasant one, with the various problems easily resolved, and a working installer. Someone reported problems getting the installatioin process to work properly, some of which I resolved by now, but otherwise I'm very happy with it.

I'm thinking of trying to switch to CONS (the spiritual father of SCons) and to resurrect it in the process. That way people won't need Python to install Latemp.

thewml.org

I did a lot of work on The Website Meta Language Homepage. So far what I did was switch the site to a CSS-based navigation menu instead of the old one made of images. I also fixed the user references page by temporarily moving the cgiemail script to a different server.

There's still a lot of work to be done. The site still contains many images as headings, and it's possible the HTML is not very valid or semantically marked. Also, none of the server-side scripts work.

OpenSVN.csie.org

I did backup yesterday, which included copying the dumps of the Subversion repositories to a CD. Now I have soom repositories hosted in OpenSVN, and getting them involves loginning in to an HTTPS account, filling a form and submitting them. I decided that it should be done automatically, so I wrote a Perl script to do that for me. I used libwww-perl, and by analyzing the HTML and passing the relevant parameters (and cookies) to the scripts on the server, was able to eventually download the dumps successfully.

I think I'd like to create a module out of it and put it on CPAN, but I did not get to it yet.

Advogato

Certified boog as a Journeyer. I saw an entry he wrote in his Advogato weblog, and then saw that he was the one who wrote Learn which I found amusing when I had encountered it on his blog originally. He seems like a cool and capable person so I certified him.

wget tip

If you want to resume a multiple-file wget download that has been interrupted in the middle, you should try the -nc flag. What it does is skip files that are already found on the disk. I encountered a case in which this happens, and after some research I came upon it.

SCM Comparison Work

I invested some work in the SCM Comparison. It was motivated by an E-mail I received about a Subversion web-interface that I missed, which I added along with my own SVN::RaWeb::Light. Subversion is now listed with 8 different web-interfaces.

Afterwards, I spent some time working on the ability to add a version control timestamp to the result page. Then I made a lot of cleanups to the code: converting complicated DOM code to XPath, extracting methods, etc. I also tweaked and fixed the CSS and XSLT stylesheets. There were quite a lot of commits since I started: 22 in all.

The discontinuation of the gratis BitKeeper

In case you haven't heard, the gratis licensing of BitKeeper intended for developing open-source software with, has been discontinued. Here's a page I prepared with a summary and links.

GImageView Bug

I discovered and fixed an annoying bug in GImageView. After a lot of grepping and debugging it turned out to be a simple typo (as I expected) with a one line fix.

SVN::RaWeb::Light

As I was about to start working on the code of SVN::RaWeb::Light, my lightweight Subversion web-interface, I realized that the complete lack of tests was not a good thing for it to remain so. So I decided to write some. Now, I am using the CGI.pm and the SVN:: modules in the code, so I wanted a way to mock them (without modifying the original code) so I can see what methods are called and control everything without needing a real CGI or SVN access. So I designed my own modules, that register their basic methods in the SVN:: and CGI namespaces, and also manipulate the %INC internal variable to cause perl to believe they were already loaded.

I did it relatively quickly and was quite fluent in what I did. Then I started writing a lot of tests to the code. After and between writing tests, I also refactored the code a lot so it's now in a better shape. I released a new version (0.4.0) on CPAN whose highlights were the code cleanup and test adding. Running Devel::Cover on the code I found that my tests had near complete coverage of it. Test-driven development ownz!

XML::CompareML

New CPAN Module - XML::CompareML. This is a re-usable Perl module that can be used to render multi-item, multi-system comparisons into either HTML or DocBook. It was derived from the code of the Better SCM comparison which now makes use of it.

Better SCM Site Work

After the work on the comparison, I started doing a lot of work on the Better SCM Site. It felt very good, and I am very happy with my productivity.

As I went to design a logo using Inkscape, I discovered two glaring bugs in it. One of them has been resolved in the CVS version, but a different one was still present. I think the problem was that I could not "Raise to Top" a certain element of the drawing. Eventually I opted to "Lower to Bottom" the other ones. In any case, I re-used an arrow from the Open Clip Art library. It seems like it matured into a usable resource.

Net Upgrade to Mandriva 2005 LE

I did a net upgrade to mandrake 2005 LE. At first I encountered a problem, then when invoking urpmi --auto --auto-select, it wanted to retrieve revision 2mdk of the urpmi package, where the server had revision 3mdk (and not 2mdk). Fetching the file and installing it from the disk solved this problem, and afterwards the installation progressed smoothly enough.

There were other missing packages, but they did not disrupt the rest of the installation. After I rebooted, and started KDE, I found out the "kfmclient openProfile" problem is no longer present (which is very good), but now a lot of my fonts are different and Bitstream Vera Serif render all wrong. This is not surprising. Many Mandrake upgrades I've done, have messed up the font settings.

Articles Index

I keep an index to my articles on my site. Up to some time ago, it used Web Meta Language's wml::std::toc extension to create a table of contents. However, as I went to validate the entire site, I realized the markup it generated was completely non-standard. So I had to look for an alternative.

I decided to use XML for that, created a simple markup with support for categories and entries, and wrote an XSLT stylesheet to transform it into HTML. Now it validates perfectly and I'm happy.

accesskey woes

The Wikipedia sites have many HTML accesskey's defined for them, some of them for commonly used menu hot-keys. I came up with an idea to use greasemonkey and my own user-defined script to cancel them. So I set out to write a script to do it. This page was a lot of help, and I based my script after it.

When I was done, I loaded my script into greasemonkey and enabled it for http://en.wikipedia.org/*. Then I noticed that Alt+E indeed invoked the Edit menu, but Alt+F still jumped to the find form, instead of bringing up the File menu. It turns out it was a bug in Mozilla in which accesskey's are not removed from <input /> elements. This bug has been confirmed since then.

Favicon

I went over the errors logs of www.shlomifish.org and noticed that most of them were requests of browsers looking for the favicon. So I decided to create one and put it on my site to eliminate it. It took me some time to get the transperency right, and stuff, but now it's there. It's a sketch of a fish.

I also added a section of my links collection with links to archives of pictures and wallpapers.

WWW::Form

I finally took the time to integrate the changes between WWW::Form 2.13 and 2.14 into the repository, and released WWW::Form 2.15 as a result. What happened was that Ben Schmaus branched his own version of WWW::Form which he worked on, on his own, and was not based on the one present in the repository, and then released it as 2.14. Right now, the CPAN release is again based on the Subversion repository.

Greasemonkey

I installed the Greasemonkey extension to Firefox just so I could use the script that turned Paul Graham's footnotes into hyperlinks. Until now I haven't found any other script that is useful for me. Oh well.

Networking Problems

As I was intensively updating the Tel Aviv Linux Club homepage I noticed a problem. Apparently, I could not access the site properly. All other sites I tried worked fine, just not this one. Eventually I called my ISP tech-support and after a short talk with the support person he suggested that I restart my router. That solved the problem, and then I was able to connect there comfortably. Sometimes the technical support can be helpful.

New Telux Lectures

Upcoming lectures are "Embedded Linux Bring-Up" by Ori Idan, and Condor by Eddie Aronovich. I think we'll do another Lightning Talks session sometime afterwards.

MikMod for Java

I took the Java Sound API driver which was provided to me by Tobias Braun, and after some modifications got it to work properly. Now, MikMod for Java can play sound interactively. I also prepared an Apache Ant build file.

Finally, I discovered a bug in which one of my MOD files is not played properly. I'll try to investigate.

Telux RSS

I finally took the time to add an RSS feed to the Tel Aviv Linux Club events. I decided to base it on the Haifux mechanism. I tried to find it in the Haifux code page, but could not. A quick E-mail to the webmasters yielded the right file. (turns out the code page was out of date). Based on that I was able to add RSS feed generation to my lectures publishing system in one day.

Right now, what I have to do is to finish the script that will reside on iglu.org.il and will collect the events from the various places and display them in a nice web-box. This would have been finished by now, if it weren't for the Haifux site being unavailable. (as is usual on weekends).

Lightning Article about Devel::LineTrace

A lightning article I wrote about Devel::LineTrace was published in a batch of Lightning Articles on Perl.com. Devel-LineTrace is a Perl module that can be used to assign callbacks to lines of a Perl program, to facilitate debugging.

Kubuntu

I decided to install Kubuntu on a different partition, so I can see if bugs that occur in Mandrake also occur elsewhere. I invoked SysRescueCd to partition everything, but found out I already had some free space at the end of drive so I decided I'll install Kubuntu there. I installed it this morning, and spent some time configuring it.

The first problem I encountered was that several kernel modules could not be found. To remedy this I booted from Mandrake and copied the kernel and initrd.img file found on the Kubuntu partition to the loadlin one, and set up a script. Then, I could not find out how to switch to the root user. A quick google search yielded that Ubuntu did not activate root by default, and instead made the first user priviliged to run root applications by using sudo. So I assigned a password to root (using "sudo passwd root"), and removed that sudo assignment.

Then I wanted to get rid of X starting automatically. Someone on IRC told me that I should delete the xdm (or kdm in my case) symlinks from the appropriate run-levels. So I did and it worked. (after some trial and error). Then I went on to install software, configure the universe package source (where I found the joe editor, and the aRts binding for xmms.), and configure KDE, the shell , Vim, etc. to my liking.

Now I have a system that is quite usable. One thing I discovered was that a bug I have with Cedega-CVS in installing Warcraft 3 was present there as well. Running it through WineHQ wine was successful up to the point of entering the information for the installation in the dialog box. This instead turned out to output the keys to the console. The latter problem exists in Mandrake as well.

Gimp Testing Framework

I began the work on an automated testing framework for GIMP. One part of it involved making sure the pseduo-random number seeds that a seed-less call to g_rand_new() are predicatable. That was done using an LD_PRELOAD trick, and writing a TCP server for assigning them.

What I have so far works pretty well, but there's a relatively small number of tests. This helped me in a revamp I did to the gimp-ace codebase.

YAPC::Israel::2005

YAPC::Israel::2005, the Israeli annual Perl conference took place at February. There are summaries of it are available in the Israel.PM mailing list archive, including one of mine.

MikMod for Java

I re-incarnated the MikMod for Java homepage, this time in Berlios. A problem I encountered was that I originally designed the site using Web Meta Language, but this got lost in the hard disk crash, and I was left only with the final HTML pages, which I was able to fetch from the site. So, I had to re-WMLize them. That proved to be not very hard.

Then I went to work on the code a bit. So far what I did was made the code compile cleanly on JDK 1.4.x (the hardest part was figuring out I had to provide the -sourcepath . options to javac to eliminate the "cannot resolve symbol" errors).

Another thing I did was add a driver to write a WAV file to the disk. In the process, I discovered that the WAV file that MikMod generated was not identical to that generated by a sox conversion from the raw file. I discovered one of the outputted numbers was wrong, wrote a fix for libmikmod and sent a patch to its maintainer.

Now what I'd like to do is write a driver for the Java Sound API, so people can use it as a normal player. I had received a few E-mails from people who did just that, but I'm not sure if the packages they wrote were not misplaced. I'll have to check.

Job Hunting

I had a very good interview in Tel Aviv University for a position in their System team. I also had several interviews in a company in Hertzliya. I don't know the status of these two positions.

Upgrading Mandrake to 10.2 RC

I wanted to upgrade Mandrake to 10.2. Only problem was that when I wanted to do that, the bandwidth limit per connection I had on my Internet link was very low. Trying to complain about it to my ISP help-desk yielded no result.

Eventually, I decided to upgrade KDE to KDE 4.0 instead. I was able to download the packages fast enough using prozilla, and then went to install them using urpmi. This has failed and generated a lot of dependency problems, errors and stuff. Clearly, the packages were not prepared well.

Then I found a Mandrake 10.2 RC mirror with which the Internet bandwidth was OK. So I set up the sources and upgraded. I encountered many problems in between, and had to restart urpmi several times. It was possible that the KDE 4.0 packages messed up my system. Eventually, I opted to downgrade them all, which involved some text processing of the packages' list. (don't ask).

But all's well that ends well. I now have a Mandrake 10.2 RC system, which works very nicely and all. I found out a bug in which one could not invoke Konqueror. I found it in the Mandrakelinux bugzilla, and it can be resolved by upgrading to the latest kdebase packages from cooker.

Problems with the Ovid CPAN-to-RPM Converter

When invoking X-Chat, it barfed on me because the Perl extension I wrote could not find the Xmms::Remote module. Due to the Mandrake upgrade, the Perl @INC paths have changed and the module could no longer be found. I had to re-install it.

This time I decided to make each module into an RPM package using Ovid. However, I encountered some problems using it. Its own RPM refused to compile. It turned out it couldn't two problems with the new ExtUtils::MakeMaker conventions and with Mandrake. But I was able to fix them.

After I got it to work, I was able to build Xmms-Perl and all of its dependencies as RPMs, and to install them. Then X-Chat worked beautifully using my extension. "Hacker sees bug. Hacker fixes bug."

Telux Meeting: GIMP 2.2

I updated my GIMP lecture slides to GIMP 2.2. Herouth Maoz was the one who volunteered to give the presentation at Telux, and she translated my slides to Hebrew and somewhat revised them.

The presentation she gave (yesterday) was very nicely executed, and I enjoyed it very much.

New web-site for Telux

The Tel Aviv Linux Club now has a New web-site. I converted the pages to Web Meta Language, to HTML::Widgets::NavMenu and to my lectures manager (originally create for Haifux). Now, the site is up, with no frames or any other resident Evil.

PySol Problems

If my mother wouldn't be able to play Simple Simon on PySol, she'll go mad. The PySol in Mandrake 10.2 was broken due to the fact that it placed the code at the same directory of the games, which caused them to be loaded as plug-ins. After trying to solve it in several ways, and eventually being victorious, I posted a fix in the Mandrake bugzilla bug-report for it. Now Mom can sleep well at nights. "Hacker sees bug. Hacker Fixes bug."

Perl Quizes-of-the-Week

I posted a mail to the Perl Quiz-of-the-week mailing list asking why there hasn't been a lot of activity lately. As a result, we decided to revive it by posting challenges ourselves to the discussions mailing list. So far, I posted two challenges, one which I labelled "Medium" about scheduling Tournaments, and one easy one which I encountered on IRC once. There were also two other challenges by two other people.

Activities

I've attended a TAU-Sec meeting. In the first part, there was a presentation about DNS-Sec, the security extension to DNS (which actually, due to input from the audience, mostly concentrated on DNS itself.) Nevertheless, it was very interesting. Then came a cryptograpgy-related presentation about breaking session IDs that are generated using pseudo-random number generators. It was interesting, but I did not understand parts of it.

There also was a presentation by Schachar Shemesh about the Bourne Shell with some Bash extensions. He gave a very useful introduction, and I even learned some new things. It was heavily raining after it was finished and I had to walk home, and when I reached home I and all my clothes were soaking wet. But still, it was fun.

Next came a presentation about Linux accessibility for people with disabilities. The link points to a referenced report and some completions by Herouth Maoz and I.

Perl on Debian Woody

It seems that Perl's File-Spec and Cwd modules got updated recently and now their build breaks on Debian Woody (= latest Stable as of now), somewhere at the test stage. I already heard from two people who had problems with this on the IRC, or elsewhere. This may cause CPAN to be unusable there.

HTML-Widgets-NavMenu

I released HTML-Widgets-NavMenu-0.4.0 a short time after the release of 0.2.0. It includes a url_is_abs() option that enables to specify an absolute URL for an item in the navigation menu - I missed it in version 0.2.0, where I replaced it with a different feature. It also includes a greater test coverage and many cleanups.

I created a web site for these Perl modules and also announced them on Freshmeat.

Interview by Einat Ya'akobovitz

I was contacted by Einat Ya'akobovitz, who is a Sociology Masterant, who does her thesis on the Israeli Open Source Community, with a focus on "Freedom, Value and Community". She said she encountered my name in several contexts, and wanted to interview me. So we set up a time for the interview to take place on I.C.Q.

The Interview went very well, and I enjoyed answering the questions, some of which required some thought on my part. Einat noticed I am an Objectivist, and so asked me some questions about apparent contradictions between the Objectivist philosophy and my open-source activity. Now I have some ideas for things I'd like to add to my "Objectivism and Open Source" essay.

The Interview ended after a few hours, and Einat told me that she cannot publish what she has now just yet, because of academic constraints. I guess we'll have to wait for the final thesis to read it.

irc.perl.org incident

I've tried to contact Mark Fowler in regard to his Perl Advent Calendar. I sent him some E-mails which he did not respond to, so I decided to contact him on the IRC. He is only present on irc.perl.org, so I logged in there. I joined the #perl channel and shortly afterwards someone named sungo said "rindolf: [that's my nick] are you who i think you are.", and shortly afterwards banned me from the channel. I tried to talk with him, (using a dedicated /msg talk channel), and this is how it went:

<sungo>	dont msg me.
<rindolf>	I'm looking for Mark Fowler.
<sungo>	i dont particularly care.
<rindolf>	I did not misbehave.
<sungo>	let me put it to you this way. i don't have to explain my actions or 
my thoughts to you. if you thought you were logging on to some sort of safe 
and happy place, then you are very wrong.
<sungo>	stop msging me and carry on with your existence
<rindolf>	Please remove my ban.
<sungo>	no.
<sungo>	would you like it to be extended to something more server-related and 
permanent? if so, then continue harassing me.

So I had no choice, but to let it be. Apparently, Fowler was inactive then, but I was able to reach him a few days later when he told me he was sick. I guess I'll have to try to reach him again.

I guess this sungo character banned me because of either the "Attitude of the Perl world towards Newcomers", or the "Perl 6 Critique". In any case, I was not going to discuss this, and was just trying to do something important. I also wasn't misbehaving nor was going to. He is just full of bad attitude, and I wonder who he is.

Gringotts Patch

Gringotts is a program that allows one to write notes (like Passwords, etc.) in a secure form. Some things about it bothered me, and the author did not respond, so I wrote a patch for resolving them.. I also announced it on Freshmeat.

I was contacted by the maintainer of the Debian package, who said he may want to integrate my patch into his package. He also said a patch he sent to the author got integrated immediately, and so the author is probably very busy now. I recently revised the patch to eliminate the use of the deprecated Gtk+ APIs, and to use more strict gcc flags.

xpdf and Upgrades

Recently I had to update half of my Mandrake system (kde, tetex, cups, etc.) twice because vulnerabilities were discovered in xpdf. What I cannot understand is why the code is embedded as is, an it isn't turned into a shared library, or at least a standalone program, so one will need to update only one package.

gimp-ace

Check this post to the GIMP Development list for information. I did it because I met someone on the IRC who needed it, and has still been using GIMP 1.2 because gimp-ace was not available for GIMP 2.x. I also placed it in the plug-ins registry.

Since then I was contacted by two other developers who have also performed a port of a version of the program with more embellishments. (but did not release their modifications to the public, yet). I'll see what I can make of it.

Gimp Bugs

I fixed an issue involving saving an image as .xcf when no extension was given. The patch was commited, but then Michael Natterer was unhappy from the code there, and started a revamp of it. Other than that I also worked on the Alpha channel visibility issue. This turned out to involve dealing with the internals of the GIMP, and it took me quite a lot of time (and two patch iterations) to find out what to do. The final patch was not applied yet.

Vim Range-Search

I asked people how to do a range search in vim (from a certain line to another certain line). There's the information which I once found in :help search-range which involves doing a 'a,'es/ command that runs a search-and-replace command on the range (with a quirky interface). On the IRC, someone told me about /\%<${LINE_NUM}l and /\%>${LINE_NUM}l that can be used to restrict the search to certain lines. The problem is that they require actual line numbers, and not marks or whatever.

So I decided to write a function and a command to perform the range search for me from mark a to mark e. I wrote a function, but then it turned out that invoking it did not cause the search pattern to be affected at all. I thought it was a bug in vim and so checked it with several other vim versions - they all failed to do it. This was while executing the internal command on the vim command-line worked perfectly.

After some head-banging, I found the following expert in the Vim help: "The last used search pattern and the redo command will not be changed by the function". After searching the same help file, I found out that I can set it by assigning to the @/ variable. This enabled me to write the function properly, after spending the entire afternoon on it.

The full code at your disposal is:

" Author: Shlomi Fish
" Date: 10 February 2005
" License: MIT X11
" 

function! Range_Search(mypat) let full_pat = '\%>' . line("'a") . "l" . '\%<' . line("'e") . "l" . a:mypat exe '/' . full_pat let @/ = full_pat norm n endfunction

command -nargs=1 Rs call Range_Search(<f-args>) command -nargs=1 RS call Range_Search(<f-args>)

I hope to perhaps enhance it by enabling custom ranges, etc.

Job Hunting

I had a job Interview at Artnet which was arranged through my Father's co-worker. It was in Hod-Hasharon and my Mom drove me there and back. It was over pretty quickly, so I think I was not accepted.

I also had two job interviews at IBM Haifa (probably due to the successful pre-interview at the Technion's job fair). The technical questions I was asked were pretty interesting, (including some on search engine implementation) and I highly enjoyed them. I feel I did pretty well, but they said they only had a limited amount of openings, and I also had to pass the more upper management. I haven't heard from them since, so I don't know what's my status there.

I had an interview at Zend (the Israeli PHP company), which also ended up very quickly. Finally, Ran Eilam (my former boss at Cortext and an Israeli Perl Monger) arranged an interview for me at his company. After the interview was over, they said they did not found me suitable.

It's good that I have some interviews, but I would prefer to finally get accepted into a good workplace.

Low Bandwidth Conundrum

One day when I was using the computer, it occured to me that I had a very low bandwidth (30 KB/sec or so). I tried cancelling services, and stuff, but it did not help. Then I checked the bandwidth from the other laptop running Windows XP - it was perfectly fine. I tried rebooting into Knoppix (ruined my 31 days uptime) and then into Windows 98 - the problem existed there as well.

Then it occured to me - maybe the Ethernet card was faulty? Switching to the other Ethernet card, indeed solved the problem. %-)

Windows Media Player

It seems that using Windows Media Player to play mp3's, causes their last-modified timestamps to change. This is disturbing because we're using the sort-by-modification view to sort them according to the order in which they were added, and WMP ruins the order. This does not happen with WinAmp or Linux-based players. Another thing that Microsoft does wrong...

221 older entries...

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!