AlanHorkan is currently certified at Master level.

Name: Alan Horkan
Member since: 2002-09-14 15:39:05
Last Login: 2011-07-18 01:29:52

FOAF RDF Share This

Homepage: http://advogato.org/person/AlanHorkan/

Notes:

Code may not be my main contribution to Open Source but I make myself useful with a little bit of everything (usability, bugfinding, general helpful encouragement).
Alan particularly likes cross platform software like AbiWord, Mozilla, OpenOffice, and projects like Inkscape, Dia> and the GNU Image Manipulation Program.

Alan is moderator of the Gnome Usability Mailing list.
Alan can often be found on irc.gnome.org usually on the channel #abiword.
Alan's email address is horkan a at maths dot tcd dot ie
Alternatively you can try contacting alanhorkan at Gmail or Yahoo! although these addresses get checked far less often.

LiveJournal for Alan Horkan
Technorati Profile for Alan Horkan

Projects

Articles Posted by AlanHorkan

Recent blog entries by AlanHorkan

Syndication: RSS 2.0

Developing MComix. Part 1: A rose by any other name...

Comix is a comic and image viewer program written using Python and GTK. I was interested in making a few changes to the project. I am getting back into programming, learning a more about PyGTK and hopefully making some improvements the program will fit better on a small screen netbook. Unfortunately Comix is unmaintained, the developer of the project seems to be unavailable and has not made any updates since 2009. (You can discover this for yourself by checking the Comix website particularly by checking the Sourceforge page for Comix and taking a look at the last date on the Changelog, and various reports in the bug tracker. It may still be possible to get in contact with him but the project is not active.)

I was pleased to discover MComix a fork of Comix, continuing on from Comix version 4.0.4. It isn't clear what the M in MComix stands for but from the picture in the about dialog I think "Monkey Comix" is a fairly safe guess.
(Later I also discovered another fork of Comix by HellHover which incorporates many of the patches submitted to Comix. It is more like a spork than a fork, as it keeps close to the original.)

The attitude and prompt reponse from the MComix developers was encouraging so I got to work putting together a few changes and sending in a patch (after a discussion clarifying that MComix is licensed under the GNU GPL version 2).
Freedom to change the source code and even fork the project is a great power to have but it comes with responsibility. Getting others to help is not easy, you want people to submit code, help with translations, or get a project packaged nicely for different operating systems, and generally help with the work of maintaining a project, so even though forking is possible it is not something you want to do unless absolutely necessary. Knowing it would take some time and effort to make changes it is a great relief to know there is a good chance others will accept the change help maintain it. Putting a lot of work into a patch and having it go to waste, is a big disappointment and severly discourages anyone from contributing to a project.

The patches took less time to write and test than the email explaining the rationale for the changes. Developers often like to do things their own way, and a without a proper explanation, patches might not be accepted. As a fork of Comix I was optimistic the developers would be more accepting of change but I wasn't going to take any chances.

The first - and to my mind most important - change was relatively simple but something I would strongly recommend to any program, especially a fork: separate out the name of the program. I set a constant and called it "APPNAME" and replaced the word MComix, so that if the name ever needs to be changed again or even changed back to Comix it can be done with only a few small changes.
The long and winding history of Mosiac, Netscape, Mozilla, m/b, Phoenix, Firebird, Firefox, Iceweasel, is a particularly extreme example of the many name changes a project can go through. If someone doesn't like the name the can easily change it without needing to fork the project. Making it a little bit easier for others to customize and fork the code gives them one less reason why they would need to, and they can continue to pool their efforts on the things they do agree on.

The patch also contained changes to help with internationalisation (i18n) and localisation (l10n).
There was also a small change to the command line arguments.

When the patch was accepted I was very satisfied and confident the developers were the kind of people I would enjoy working with further. Answers to a few other questions in my email confirmed our interests were different but mutually beneficial. Straight away I was thinking about the next changes I might make.

Syndicated 2011-04-23 23:49:11 from Alan Horkan

Peazip: Convert CBR to ZIP

I had a tshirt with the slogan "More people have read this shirt than have read your blog" and I am always a little surprised when someone does read my writings on the web. I was pleased to see that someone thought my batch file to repack from CBR to CBZ might be useful for people who want to read comics on mobile devices.

I was thinking about rewriting the batch file to work with programs other than 7-zip and I rediscovered Peazip a program I had not tried in years. The user interface is still a bit rough in places but it includes a very useful tool for Convert archives from different formats. It is a convenient way to convert files from CBR to ZIP which I think some users will prefer to using a DOS batch file. There does not seem any way to automatically rename the ZIP files to CBZ, so for I prefer to keep using the batch file. (The Convert tool in Peazip will unpack all the files and then repack all files, which can take up a lot of disk space with temporary files, so be careful if you try to convert many files at once.)

The biggest advantage of the batch file is that it does more than just repack from CBR to CBZ. I continue to modify it in other ways to better clean up the Comic files as I repack them, such as removing signature or banner images added by scanners. It is tricky to come up with a pattern that works all the time so I only included a simple example before, but the following patterns catch a lot of the tags and banner images:

MOVE z*.* ..\  
MOVE xx*.* ..\  
MOVE *tag*.* ..\  
MOVE *team*.* ..\  

The banner images can take up quite a bit of space, more than 1MB in rare cases, so removing them often saves more space than anything else such as special compression tricks. Instead of adding a large image file the batch file could be changed to add a small text file containing comments by adding the following command before recompressing:
echo "Repacked by 7-zip" > Comment.txt 

Tidying up file names is another thing that could be added to the batch file.

As I said earlier I am glad at someone found the batch script useful, hopefully Peazip will be useful too.

Syndicated 2011-04-06 00:52:03 from Alan Horkan

Comics: Convert CBR to CBZ

Comics are great. I'd gotten out of the habit but I still enjoy picking up a good Batman story now and again, but other than that it is hard to know what to pick. The painted comics of Alex Ross (Kingdom Come) are beautiful, the stories of Warren Ellis (Transmetropolitan) are compelling.

Can you judge a book by it's cover? If it is a graphic design book, or art book I think you can and with comics I often do choose on that basis (and all too often get caught out when the interior art is entirely different from the cover). In the long run though it is stories and the writers that keep me coming back and if I particularly like the style of the artist that is a bonus.

Chatting with the local equivalent of Comic Book Guy is one way to get ideas of what to try but picking a book off a shelf and having a look is usually the best way. The internet has provided us with an even bigger bookshelf to flick through, and there are groups who scan the latest comic books and package them up for easy sampling, usually a series of JPEG image files packaged together as a single convenient archive. Very often this archive they are packaged in use RAR compression CBR (Comic Book RAR archive), but other times the container uses Zip compression CBZ (Comic Book Zip archive). The essential difference is that Zip is free and RAR is proprietary.

I wanted to convert these CBR files to CBZ. I could do that by unpacking and repacking the files on a case by case basis but that is repetative and uninteresting. Instead I decided to make things more complicated and come up with a more general automated solution. That solution might be of use to others, especially those who do not know how to write MSDOS batch files, so I'm sharing it. On the internet someone else there is almost always someone else who has the same idea as you, and I was able to find something very close: Andrew Armstrong had already written a Mass Zip, RAR to 7Zip Recompression Batch File and all I needed to do was make some small adjustments so that it would to convert RAR files and CBR files into CBZ files. If you want details of what exactly is happening you should read his detailed description. It took me far less time to make my changes than it to write them up and explain them, the hard work was already done.

The script requires the excellent free compression program 7-zip and you must have it installed. To keep things simple we assume 7-zip is installed in the default location C:\Program Files\7-zip\7z and we do not try to check. If for example you were using a German version of Microsoft Windows 7-zip might be installed in a program called "Programme" rather than "Program Files" or if you wanted to use a portable flash drive and use Portable 7-zip you would also need to change the program before it would work. (We could try to avoid the first problem by checking to see if %ProgramFiles% is C:\Program Files as expected.

Another known issue the sometimes causes the script to fail is when file path names are too long. Microsoft Windows limits file names to 260 characters in length. The script creates a temporary folder based on the name of the CBR and if there is a subfolder inside the CBR the filename can sometimes be too long.

As this script is intended to be used to unpack not just any generic RAR file but a Comic Book Archive there are other changes we can include. Creators of Comic Book archives compress a whole folder instead of picking out just the picture files they want, and all sorts of other things get included by mistake. Microsoft Windows includes a hidden file called Thumbs.db which stores thumbnail images of your files. We can safely delete this, Windows will recreate it if the comic book archive is ever unpacked and it is needed. To do this I added the line DEL /F /S /Q Thumbs.db (which is short for DELete by Force, in all Subdirectories, and do it Quietly without reporting any errors).

The scanners who create Comic Book archives often like to include a banner image saying who they are and often with a message such as reminding readers that if they like the comic they should buy it too. These files are often given a file name starting with 'Z' so that it will appear last in the sequence so I added another line to delete any file that starts with the letter 'Z' DEL /F /S /Q z*.*. If the banner image has a different name this won't work but it is an example of what you can do to fit the generic scripts to better fit that task.

One change I have made might seem surprising. I have set the Zip compression to level zero, which is no compression at all (-mx=0). I could save a small amount of space by using the maximum amount of compression but this would take longer to pack the files, and more importantly it would make it slower each and every time you want to unpack and read the files. The Zip archive convenient container to make things easier to organize, and JPEG files are already quite heavily compressed.

If you want to try it out for your self, copy the commands below into a text file, change the name to cbr2cbz.bat or similar, put it in a folder with some CBR or RAR files and away you go.



@ECHO OFF
REM Based on 
REM Mass Zip, RAR to 7Zip Recompression Batch File by Andrew Armstrong
REM http://aarmstrong.org/tutorials/mass-zip-rar-to-7zip-recompression-batch-file
REM
REM Find all .cbr and .rar files in the current directory, recompress them into .cbz and .zip files - but do not delete the originals.

ECHO Searching for CBR and RAR files to recompress into CBZ (Comic Book Zip) archives.

for %%F in (*.cbr *.rar) do (
ECHO Found %%F to recompress...
REM Extract...
"C:\Program Files\7-zip\7z" x "%%F" -o"%%F contents"
REM Does the directory exist? has 7zip created it correctly?
IF EXIST "%%F contents" (
REM Change directory, create zip of contents of directory...
CD "%%F contents"
REM remove banners 
DEL /F /S /Q z*.*
REM Delete Thumbnail files. 
DEL /F /S /Q Thumbs.db
REM compression level is 0, store only. 
"C:\Program Files\7-zip\7z" a -tzip "../%%~nF.cbz" * -mx=0
CD ..
REM Delete the temporary extraction folder
RMDIR "%%F contents" /S /Q
ECHO Recompressed %%F to %%~nF.zip
)
)
ECHO Search ended.

PAUSE
CLS
EXIT

Syndicated 2011-02-01 01:57:35 from Alan Horkan

Trinity Climbing Wall Route Grades

September 2008 the climbing wall in Trinity was stripped bare and professionals were brought in from the UK to set all new routes.

A guide list crudely written in chunky black marker was taped to the side of a locker showing the approximate gradings for the routes. The list was later removed, possibly vandalised giving me an extra push to type up the following list.

Please note, gradings are subjective[1]. Wall A is the route nearest the entrance, and wall N is the slab routes at the far corner of the room.

Wall A
Grey 5+
Orange 6B
Green 6B+

Wall B
Blue 6B
Red 6A

Wall C[2]
White 6B
Grey 7A+
Green 6A+

Wall D
Yellow 6C
Red 6B+

Wall E
Green 6A+
Orange 7B

Wall F
Blue 6A+
Red 6C+
Grey 7A

Wall G
White 6A
Green 6C
Blue 6B

Wall H
Black 5+
Orange 6C+

Wall I
White 6A
Yellow 6B+

Wall J
Green 6C
Black 6B
Blue 7A

Wall K
White 6A
Red 6B
Orange 6B+

Wall L
Yellow 6B
Green 6A+
Grey 6B+

Wall M[3]
Red 5+
Blue 5+
White 4+

Wall N
Yellow 5
Orange 5
Grey 6B+


[1] The red route on Wall B seems unusually easy for a 6A but perhaps not easy enough to consider it as 5, hard to know.
[2] Additional black holds have been added to allow for bouldering practice on Wall C.
[3] To help build stamina climb the Red, White, and Blue consecutively. This wall has been sometimes called The French Connection Part 2. Before the routes were reset there was also another section of wall with Red, White, and Blue routes which were dubbed The French Connection, I'm not sure who came up with the name but it was Brendan Holland who first mentioned it to me.


Climb safely.

Syndicated 2008-10-06 00:51:38 from Alan Horkan

Nokia Fail.

"Out of memory please delete messages".

Have megabytes of memory on the phone card and yet I'm being asked to delete messages, WTF?
Fail.
The backup and archiving options are less than ideal either. Sigh.

Syndicated 2008-08-17 12:09:43 from Alan Horkan

361 older entries...

 

AlanHorkan certified others as follows:

  • AlanHorkan certified cinamod as Master
  • AlanHorkan certified alan as Master
  • AlanHorkan certified AlanHorkan as Master
  • AlanHorkan certified hub as Master
  • AlanHorkan certified larsrc as Journeyer
  • AlanHorkan certified Uraeus as Master
  • AlanHorkan certified gman as Master
  • AlanHorkan certified bradyn as Apprentice
  • AlanHorkan certified sisob as Master
  • AlanHorkan certified wlach as Master
  • AlanHorkan certified caolan as Master
  • AlanHorkan certified Telsa as Master
  • AlanHorkan certified jdub as Master
  • AlanHorkan certified glasseyes as Master
  • AlanHorkan certified Adrian as Journeyer
  • AlanHorkan certified tml as Master
  • AlanHorkan certified RyanPavlik as Master
  • AlanHorkan certified joncruz as Apprentice
  • AlanHorkan certified louie as Master
  • AlanHorkan certified miguel as Master
  • AlanHorkan certified robsta as Journeyer
  • AlanHorkan certified msevior as Master
  • AlanHorkan certified bwh as Master
  • AlanHorkan certified Spooky as Master

Others have certified AlanHorkan as follows:

  • AlanHorkan certified AlanHorkan as Master
  • hub certified AlanHorkan as Journeyer
  • larsrc certified AlanHorkan as Apprentice
  • mhatta certified AlanHorkan as Apprentice
  • sisob certified AlanHorkan as Journeyer
  • voltron certified AlanHorkan as Apprentice
  • Uraeus certified AlanHorkan as Journeyer
  • ariya certified AlanHorkan as Journeyer
  • Perrin certified AlanHorkan as Journeyer
  • wlach certified AlanHorkan as Apprentice
  • strider certified AlanHorkan as Journeyer
  • fxn certified AlanHorkan as Journeyer
  • ladis certified AlanHorkan as Journeyer
  • mdupont certified AlanHorkan as Apprentice
  • byte certified AlanHorkan as Journeyer
  • glasseyes certified AlanHorkan as Apprentice
  • RyanPavlik certified AlanHorkan as Journeyer
  • bolsh certified AlanHorkan as Apprentice
  • mikeycooper certified AlanHorkan as Journeyer
  • chrisime certified AlanHorkan as Journeyer
  • Lobster certified AlanHorkan as Journeyer
  • mirwin certified AlanHorkan as Apprentice
  • wspace certified AlanHorkan as Journeyer
  • zbowling certified AlanHorkan as Journeyer
  • pvanhoof certified AlanHorkan as Master
  • superant certified AlanHorkan as Journeyer
  • dragotown certified AlanHorkan as Journeyer
  • lucasr certified AlanHorkan as Journeyer
  • shlomif certified AlanHorkan as Master

[ Certification disabled because you're not logged in. ]

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!

X
Share this page