Color to attribute. Qgis 2.X

qgis-logo-plugincolor

In 2012 I created a small plugin for Qgis1.x. It allowed you to modify a vector layer, creating a new column to hold the color of the features. This proved useful for me at the time. I could use Qgis to decide the color palettes and then export to wherever I wanted.

Come 2013, a new version of Qgis appeared, and the plugin broke. I wasn’t using it at the time and I didn’t realize it. But someone did, and kindly pointed me to the problem. I don’t have as much free time as I used to. However as my grandma used to say “better later than never”, here we have the plugin to work with the 2.x series!.

You can get it from my github. The master branch has the original code, and there is a new qgis2.0 branch with the new revamped plugin.

Salut!

2 Comments

Filed under gis

Numpy in C

C + numpy

When I was temporary working at my former university UPC (Universitat politècnica de Catalunya) in the TALP department (Center for Language and Speech Technologies and Applications), I found myself in the following situation:
My employers had a lot of python code creating matrices and stuff saved to .npy (numpy files) but wanted to speed up their processes.

I thought about loading those files in existing C code, to effectively use the GPU with OpenGL/CUDA. And once everyone was convinced, I spent some time developing a small library to do so, in the following post you will find an explanation of the numpy format and the code for the C library.

really? continue please

4 Comments

Filed under code, tools

The monster comes back

LaTeX_logodnd

In the previous post, We left a \LaTeX table representing a Vargouille monster like this:

Monster definition basic

Monster definition basic and attackless


And we want it more threatening. In this post I will add the different attacks, base stats, languages and maybe equipment. All are optional, it is decoration to our dangerous monster

Bring this monster to life

1 Comment

Filed under code, documents

The monster environment

LaTeX_logodnd

As I commented, I am working on a Dungeons & Dragons (D&D) \LaTeX class to write small adventures.

Objective

The monster environment should deal with creating the corresponding table and all that it is necessary. A monster has a set of attributes (common to all monsters), and a set of powers different to each monster. In D&D 4e this is typically presented in a table, which I think is the best possible presentation.

Typical d&d 4e monster stats table.

Typical d&d 4e monster stats table.

Stats generated with the LaTeX class

Stats generated with the LaTeX class (There is a small error).

let me see

3 Comments

Filed under code, documents, tips

xkeyval and the 9 arguments

LaTeX_logo.svg
Recently I’ve been playing D&D with some friends. Tired of writing my small homebrew adventures in OpenOffice I turned into my old friend \LaTeX.

Seemed to me that a D&D adventure was specific enough to have its own document class, like article, book etc. And could not find it online, so right now I am writing one.html select jquery set selected

In this article I will explai how to write \LaTeX commands accepting more than the 9 default parameters.

more please

4 Comments

Filed under code, tools

Ceros y Unos. And other history books on computing.

ceros y unos

The last book I read is “Ceros y Unos” (ones and zeroes), a present from my sister for Sant Jordi (23 abril).

This book itself is a compilation of the articles that can be found in libertad digital. If you feel that the topic is interesting but don’t like to read big/boring history books, this book is for you (and of course, you have to be fluent in spanish). It is just a pack of articles, that makes it the perfect book for a quick read in public transport, or the toilet :-P.

But at the same time it lacks part of the rigour of other books. I was not surprised to see that the book cites as references some books that I already read.

3 Other books

This is a very interesting topic, so I would like to list 3 other books that I read in the past.

Una història de la informàtica – Miquel Barceló
This book is a light read that gets you up to speed in the topic. Miquel Barceló has a fluent writing that makes it very easy to read. And again, I think it is only in catalan and spanish.

A history of modern computing – Ceruzzi, Paul E
This is for me the best book I ever read on computing history. It is a long (488 pages) book where you can find the foundations of computing. It gives a lot of emphasis on the old computers of yesterday.

IBM and the Holocaust – Edwin Black
Not a general picture, but a small period of one of the biggest companies. This book narrates the history of IBM and the Nazi regime.

Leave a comment

Filed under books