Category Archives: code

A better way to Jenkins

jenkins_logo

Jump around, Jump around. No maps this time, but Continuous Integration. My current work involves a lot of a software piece called Jenkins. I’ve been swimming with it the last 2 months and I feel compelled to share how we changed our ways.

This post is an overview guide on how to configure Jenkins to generate the jobs that are defined in a git repo.

let’s integrate continuously

1 Comment

Filed under code, tools

Getting information from IPs

earth

Posts come very slowly, but here’s another one.

This post won’t be useful for most people :-(. You know when you use google analytics and get that fantastic map showing where people connect from? Read this, and you will learn how to do it yourself.

Tell me how

Leave a comment

Filed under code, curious, gis, Maps

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