Gen 21 2018

Adwaita+Tango for PuTTY

Recently I have started using PuTTY more and more. It is a very nice program that has lots of features but it has also a big problem: with the default settings, fonts and colors are a bit ugly and in some case the text is even difficult to read.

Luckily PuTTY has lots of customization possibilities. My first idea was to use Solarized (Light), because I use it also on my phone with JuiceSSH and on Gedit. However, almost immediately I realized this problem:

ls using the Solarized Light theme: the image shows that it is difficult to tells directories from files

As you can see, directories, files and links have almost the same color and are very difficult to distinguish. Notice that I have enabled the bold as font, which by default is disabled, otherwise directories and links would have normal weight, and it would be even more difficult to what is what.

Therefore I thought that the default GNOME Terminal theme in the dark variant (Adwaita dark + Tango colors) is very nice, too, and allows to clearly tell all colors. Moreover, I have used it for years and I still do, therefore having this theme on PuTTY would be very comfortable to me.

I though I would finding it on Google would have been a trivial search, but that was not the case, and eventually I decided to proceed and create it… [Leggi il resto...]

Ago 31 2015

A note about Call Of Duty 1/UO BSP maps

Call Of Duty 1 and its expansion, United Offensive, are based on the Quake III engine, therefore they share some of its features, like a Binary Space Partitioning to describe maps, even though the format isn’t compatible.

An article copyrighted 2000 describes very well the BSP format of Quake 3. It’s interesting, because it’s the very base to understand CoD, too, at least its devision in lumps and some of them.

An article on “Mappers United Wiki” depicts the lumps of CoD 1 maps and the size of single lump, but they aren’t explained. Luckily in the same site there’s an article on CoD 2, and most of the structs are equal.

So I’ve tried to render them, but I’ve only managed to build the geometry of maps.

First of all - they use a Z-Up coordinate system, like Blender, but contrary to many rendering systems.

Second thing is that units are very big, they are something like decimeters.

Thirs - everything is in little endian.

That said, let’t analyze some important structs.

Header and lumps directory

The header of CoD is equal to Quake: first 4 bytes are the “IBSP” word, uppercase.

Then there’s an unsigned 32 bit integer, which is the format version. CoD 1/UO is 59, whereas CoD 2 is 4 and… [Leggi il resto...]

Feb 02 2014

Plugin Tabmenu (v4.1) [Flatpress]


This is the new version of the Tabmenu plugin, that replaces, the version 4.0.

The plugin adds “sel” class if you are in that page (in HTML, class=”sel”).

You can use both {{TABCLASS}} and {{TABSELECT}} patterns: the difference is that the first adds the class attribute, the second just the sel and so you can speficy other classes. See below for an example.
This is an example (for the homepage):

<li {{TABCLASS:index}}><a href="/" title="Homepage>Homepage</a></li>
<li class="myotherclass {{TABSELECT:index}}"><a href="/" title="Homepage>Homepage</a></li>

Replace index with:

  • index for the homepage;
  • blogindex or blog for the blog homepage;
  • contact for contact.php
  • admin for admin panel
  • login for login page
  • post:entry_id or entry:entry_id for entries (entry_id is the entry id in format entryYYMMDD-hhmmss)
  • static:static_id or page:static_id for static pages (static_id is the static page name, not title)
  • category:id or cat:id for a category with category number as id
  • tag:tagname for a tag
  • params:url or fp_params:url or fpparams:url, where url is the part next to the ? of Flatpress standard urls (standard means not RewriteURLs or PrettyURLs).

A note about the blog… [Leggi il resto...]

Lug 18 2013

Plugin RewriteURLs (v2.3.6) [Flatpress]

There is a new small fix in RewriteURLs plugin.

It fixes the strange behavior with ?u mode.

So if you use the classic mode or pathinfo mode you don’t need to update it.

Thanks to LTB for the reporting.

Downlaod: rewriteurls_v2.3.6.tar.gz.

Released under GPLv2.

Mar 28 2013

Local Cover Art 0.3 [Picard]

I have updated the Local Cover Art plugin for Music Brainz Picard.

This plugin allows you to embed in your music files the cover of the album they belongs to.

The plugins looks for these files: Front, Cover, Folder and, if the album has more than one disc, it looks also for Front-discnumber, Front discnumber, Front_discnumber and these files have higher priority. They can be also all lowercase and the extension can be png, jpg and jpeg. The first file found is used.

There could be some problems if the disc are in different folders and each folder has a “front” image file. I’m sorry but solving this problem would make the plugin heavier because of how the plugin is implemented. If you find a solution please contact me :-)

Older versions of the plugin had problems with FLAC files. Now they’re solved.

The license of the plugin is released under Creative Commons Attribution 3.0. The authors are me and Oliver Charles and Philipp Wolfer (the authors of Cover Art Downloader, the plugin I modified to create this one). If the original license isn’t compatible, please contact me, otherwise I prefer keeping this license. I’d prefer publishing in the Public Domain but I don’t know the license of the original Cover Art Downloader. Now it’s released under GPL but I’ve modified it before it was covered with this license.

If you find bugs please contact me.

Download: localcoverart-0.3.py

If you don’t know how to install it, please refer to official instructions.