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

Quick Replace

This one is going to be short, it is something that would fit better under commandlinefu, tips and tricks!

What do we want to do?

Look for al the cpp files under a directory and modify all the text with foo to bar.

How to do it?

First we find all the cpp files under the current directory
find . -name "*.cpp" -print

And a possible command to replace from a file is using sed.
sed -i 's/foo/bar/g'

We just have to connect those two together to replace in all the files with a name ending in .cpp, that’s what pipes are for.
find . -name "*.cpp" -print | xargs sed -i 's/foo/bar/g'

Ta-Dah

Leave a comment

November 1, 2014 · 6:35 pm

Retrieve KML links

kmlhell

On my previous post I worked with a kml that was splitted in various networked kmz files. This was particularly annoying given that I had to track the files in my computer.

I am ashamed, this should have been automatized! And since a friend prepared a nice script for it, here it is.

get my kmls

Leave a comment

Filed under gis, tools

KML to DXF (hell)

kmlhell

The time goes by and I don’t have enough personal space to write in this blog. It is crazy how life changes and how many things are thrown at you.

That being said, recently I helped a friend with some format problems, and I thought it was a perfect excuse to prepare a new blog post.

come get some

2 Comments

Filed under gis, ogc, 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

Fall of Giants

Fall_of_Giants

The Welsh author did it again. It’s a skill, he can write a huge book that you can read in no time.

It is the first book of a triology, following the lives of different people scattered around the world as the Great War develops. A soldier that comes from the Welsh mines, a russian that will become an important part of the bolshevik revolution, an english earl that has a lot of money and pride, an idealistic american trying to get the best outcome, a german that sees how everything crumbles around him, and a long etcetera.

As it is usual with Ken Follet, those characters play different parts on the same story and their paths will cross multiple times in different places.

The main story is about these fictional characters, each one representing an archetype of person from that time. At the same time they meld perfectly with real life people like Stalin, Churchill and Wilhem II to name a few.

I am reading the second book now, “Winter of the world”, that continues with the adventures of those characters and their sons as the cherished peace comes to an end again. I am thrilled.

Totally recommended.


I realize that I recommend most of the books that I read… maybe I’m not a very good critic, or I happen to pick up nice books 🙂

Leave a comment

Filed under books