Category Archives: code

Rpi Weather LED

Raspberry-Pi-logo

In this post I will describe how to use a raspberry pi to give feedback according to specific daily weather. And yes, feedback just means LEDs 🙂

continue

Leave a comment

Filed under code, electronic

Convex Hull, one algorithm implementation

chull
I talked about convex hulls some time ago in an alpha shape post.

The convex hull is probably one of the most basic computational geometry algorithms, and because of that it is present in almost, if not all, geometry/cad/gis libraries and software packages. In this post you will find an explanation of one of the existing algorithms to compute it, an implementation with C++, plus a set of scripts to generate various point clouds and the corresponding hulls.

Objective

  • Describe one of the possible convex hull algorithms
  • Implement the algorithm in C++
  • Provide various scripts to generate random point clouds and compute its convex hulls

I won’t lie to you, this post might be boooring ;-).

continue to this long post

3 Comments

Filed under code, gis

C Mask Creation & intel sal

c_logo
It’s been a while since I posted something, but recently I did not work in anything at all, just playing some Zelda and reading some books (and yes, I will post about the books someday).

Right to the matter at hand. It has been noted to me that my C skills are rusty (god damn it!), so I decided to play a little with it implementing a small dissassembler for ARMv7 binaries (just ARM instructions, no thumb or anything else). And indeed, I found myself in some trouble.
more

Leave a comment

Filed under code, curious

DBPedia World

Following my DBpedia Europe Countries post… DBpedia World! Bigger and lovely!.

Maps

Click for full zoomed version!

DBpedia 3.7 World points

DBpedia Live World Points as of july 2012

As always. Everything explained in the post

Leave a comment

Filed under code, gis, Maps

Python: Command Line waiting feedback. And some Background on why!

4.2.39 Escape sequence
A string of bit combinations that is used for control purposes in code extension procedures. The first of these bit combinations represents the control function ESCAPE.
ECMA-48 Control Functions for Coded Character Sets

more

1 Comment

Filed under code, curious, tips

Qgis – Color to layer attribute


Recently I was working with some data layers in QuantumGIS, playing to decide the proper color combination for my visualization. The result had to be presented in a web environment using OpenLayers.

The point is. I define and check the visualization in Qgis, and then I want to export the results to be served as a OpenLayers Vectorlayer, or as a Mapserver layer. Of course, with the color defined in Qgis.

Openlayers and Mapserver give the option to read the color from an attribute value (here and here). Maybe there is an easier way, but in this case I developed a small plugin to export the current visualized color into a specific layer attribute.

Screenshots

humm… more

3 Comments

Filed under code, curious, gis, Maps, tools