Category Archives: curious

Geo Django Raster Metadata

I’ve been using GeoDjango for some time now, and found myself in a situation where I wanted to retrieve raster metadata using the ST_MetaData function on some datasets stored in PostGIS.

To do so, you can of course use the raw function from the db Manager, but for this I went the extra mile (although, it’s more like the extra half-mile, since it’s very easy)

the ST_Metadata in GeoDjango

Advertisements

Leave a comment

Filed under curious, tips, code

Children of Time

Another book post, how boring!

Children of Time is one of those presents that I knew was coming (Pestering for it for quite some time), and once it was in my hand it took me a couple of weeks to finish, it is one of the most exciting science fiction books I’ve read in a while.

The idea is an interesting one. Humanity has reached a point where it starts colonizing and terraforming other planets, but disaster ensues, and we’re brought back to less technological times, while some of the terraformed planets still inhabited start their own story.

Flash forward lots of years from the fall of that technologically advanced civilization, the earth is dying, and some groups start some sort of Noah’s ark spaceship only with people inside with the hope that they can reach one of those old fabled terraformed planets. But they will have to deal with whatever has evolved there (hint, it has 8 legs).

Interestingly, those inhabitants are not painted as horrible mutations that humanity has to fight, but a relatable nascent civilization that has its own fears and hopes. The book dabbles in both storylines, one of the humans travelling and their social problems inside the spaceship, and the spiders, how their society progresses in strange ways for us, and their own way of seeing the world. All of it coming altogether for the book finale.

This is an open ended book, and as far as I’ve checked online the second book should come soon enough (2019 according to wikipedia)

Leave a comment

Filed under books, curious

Spon book & spoon carving

Continuing with the weirdness and going totally off-topic from the type of posts you usually find here, let’s talk about a book of spoons and what it meant to me!.

The book is a short one, split into three parts:

  • A story about the author, and how he got into spoon carving.
  • Instructions on spoon carving techniques and knife grips.
  • A beautiful collection of spoons, with some words about each one of them.

I’ve never heard of Barn The Spoon, he is a spoon artisan carving from green wood mostly using a knife and an axe. I actually got attracted to this book after seeing it while attending a workshop on wood carving, the idea of such a specific book and the hippie feel of everything related to carving without any advanced tools picked my interest, so immediately ordered it from Amazon.

I can’t recommend this book to everybody, but the vibe that it transmits it’s something felt close. The story of Barn is an interesting one, worth reading. And the included pictures are gorgeous (yes, those spoon photos are actually amazing, kudos to the photographer). The only point where it fails to me is trying to explain the knife grips using only prose, probably my engineer’s mind is tricking me here, but some drawings on what is trying to be conveyed would help.

After skimming it, and then thoroughly reading the book, Armed with a sharp knife, a hook knife and the explained techniques I started to carve my first spoon. Which was ok, chunky and nicer to look at than to use, but a second one followed, then a third… and after half a year spoons keep coming out of my hands!.

That’s the best compliment to give to the book, it made me want to carve and enjoy the carving process in itself. I feel that this was the point of all of it :-D.

some spoons after this

Leave a comment

Filed under curious, DIY

The dropped posts, and 2017 closing

I’m not constant in my writing. Some ideas come, some ideas go, some get written, some get lost.

For the end of 2017 I deleted a backlog of drafts that were half written. Some of them were actually quite nice but unfinished. The problem being that I may have lost the content that was discussed in those posts, or just forgot what I was writing about. It’s not a new year’s thing, but let’s start clean here πŸ˜€

When I was ready to press the button I felt sad for those posts, so here’s a list of the posts lost in battle.

  • Arduino Clock Time Reading. (The arduino clock posts)
  • Arduino Clock Display usage. (more arduino clock posts)
  • littlebits.cc (I never got around to even touch those, but looked awesome)
  • A serial terminal with python and custom commands. (Used as a complement on embedded projects at IDNEO)
  • DynamoDB Django Python middleware. (What a combo! but actually I’m using this daily :-p even if I barely remember what I did there)
  • Static websites with Hugo. (Liked the idea, stayed in wordpress so far. With my combo of wordpress + it’s all text + gvim.. sadly It’s all text does not work anymore)
  • Python and Pyinstaller. (It was mostly finished, but it seemed too shallow)
  • Some book reviews (Never was too fond of them anyway)
  • A small map I made after a short hike.
  • A small classification of Barcelona neighbourhoods according to rent price and buildings age (Yes, I did that when hunting for a new apartment)
  • A small labyrinth game in Game Boy assembler.

Nevertheless, 2017 has been a good year for me personally. Changed from an Embedded job too far away from home (1.5h commute by train) to an Embedded Linux job too close (5min walk), been very involved in a personal project and enjoyed my free time playing drums and kayaking πŸ˜€ .

Blogwise it is the first year that I ALMOST accomplished the one post per month mark! (sorry, summer is summer)… I am not a journalist and this blog is not my priority so it is surprising that I’ve found the time to keep it updated and half interesting. This year we had:

And the “previously” page got updated with a bunch of games and books that I liked this year. I played more than what I’ve read….. this is something to think about.

I never talk about the site stats. It is a small place after all. Nevertheless, this blog has maintained something like 1000 visits per month. That feels like a lot to me, so thanks to everyone who read my stuff and got something useful from it πŸ˜€

It has been a long way since I started in 2012, from a 25 year old guy that was bored during a master degree and wanted to improve his English writing skills, to a slightly older guy (you do the math) that is doing something completely different but enjoying it.

That’s it, no more retrospectives, 2017 has ended and we are still alive, let’s go to 2018.

PD: I have nothing written yet for 2018, I’m going to lose my monthly post combo πŸ˜›

Leave a comment

Filed under curious, Life

Git config

Lots of us use git in a daily basis, myself included. We can say a lot of git, but I would not say that it is intuitive, or that it has nice shortcuts. Similar to what happens with VIM, over the course of some years and some jobs I collected a small list of git configurations that I find very comfortable to work with.

Damn! I failed again, no posts on summer πŸ˜€

List of configs

1 Comment

Filed under curious, tools

System76 Lemur Review

This is something that I’ve never done before in this blog, Review a piece of consumer electronics. πŸ˜€

read the full review

1 Comment

Filed under curious, Life