This is me, Wu!
June 2016
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
About
This site is an effort to share some of the base knowledge I have gathered through all this years working with Linux, FreeBSD, OpenBSD, Python or Zope, among others. So, take a look around and I hope you will find the contents useful.
Recent Entries
Recent Comments
Recent Trackbacks
Categories
OpenBSD (9 items)
BSD (0 items)
FreeBSD (19 items)
Linux (3 items)
Security (3 items)
Python (21 items)
Zope (13 items)
Daily (144 items)
e-shell (9 items)
Hacks (14 items)
PostgreSQL (3 items)
OSX (8 items)
Nintendo DS (0 items)
enlightenment (0 items)
Apache (3 items)
Nintendo Wii (1 items)
Django (24 items)
Music (12 items)
Plone (7 items)
Varnish (0 items)
Lugo (2 items)
Sendmail (0 items)
europython (7 items)
Cherokee (1 items)
self (1 items)
Nature (1 items)
Hiking (0 items)
uwsgi (0 items)
nginx (0 items)
cycling (6 items)
Networking (1 items)
DNS (0 items)
Archives
Links

Syndicate this site (XML)

RSS/RDF 0.91

09 mayo
2016

Store python PersistentMapping objects into an objects TreeSet

When the OOTreeSet refuses to add new PersistentMapping objects...

I've been working with ZODB for quite some time now. First when I was doing Zope based web development (oh, the ol' good^hard days), then in some courses I gave about persistence and data storage in python, nowadays working with pyramid and still using ZODB for some apps.

Some days ago, working on one of those pyramid based projects, I found something really weird, something that was not working as expected, and it took me some time to figure out what was it. I'd like to share it, just in case it happens to any of you.

Continue reading "Store python PersistentMapping objects into an objects TreeSet"
Posted by wu at 08:47 | Comments (0) | Trackbacks (0)
05 mayo
2016

The Flower Power Sprint

The third one already in naxos!

Flying towards Greece

Exactly one month ago I had a long traveling day with r0sk. We left Lugo in the middle of the night and we got in a plane in A Coruña while it was still dark outside.

After a one-hour-and-something flight we arrived in Barcelona, where we got in another plane, this time the destination was Athens, Greece. We were on our way to one of our regular International Pizza sprints, when all the people working on the same project meet to work hand by hand for a few days (and then have lots of fun, of course).

Continue reading "The Flower Power Sprint"
Posted by wu at 00:00 | Comments (0) | Trackbacks (0)
25 abril
2016

The 100

Finally, I did a +100km ride, and in the best possible company

100 ride

10 of April, 2016

The alarm should ring at 07:00 (EEST), but I wake up way before that. I'm too excited to stay in bed, so I get out of the room as stealthy as I can, trying not to bother Oscar, sleeping in the other bed.

I left the clothes ready the day before, in the living room, so there is where I go after preparing breakfast (coffee, milk, bread and cheese).

Breakfast, coffee, milk, bread and cheese Preparing the coffee Preparing the bread and the cheese Having breakfast

I take it easy, eating slowly. It is always really hard to have breakfast so early, but today I manage quite well and I eat it all up. The bike is ready already, I put my cycling clothes on and I double check again that I have everything with me (Phone, Garmin, HR Sensor, GoPro, spare tube, tools...). Then I pick up Sascha's Jake to get outside.

Getting dressed with the cycling clothes (1) Getting dressed with the cycling clothes (2) Taking everything I need with me Almost ready for the start of the ride

Today we have planned to go on a longer ride together, Sascha and me. We will do the Apollonas round (clockwise), a route that covers something like 100 kms around the island of Naxos. We will pass by beaches, villages, valleys and mountains.

Leaving Damarionas, the road is waiting for me!

And I am pretty sure we will have looots of fun

Continue reading "The 100"
Posted by wu at 21:42 | Comments (0) | Trackbacks (0)
17 abril
2016

Moving through the big city

It had been a while since the last time I did this

Image of the Athens Metro, from the wikipedia

(image from the wikipedia)

Eleven days ago I hopped into a plane in A Coruña. That was the first part of a trip that would take me to Barcelona, then Athens, then the island of Naxos, in the Aegean Sea. We were going to have another International Pizza sprint, but that's a totally different story, I just wanted to add some context for this short story.

Yesterday I arrived in Piraeus around 15:00, as part of my trip back home. I did step down the boat (Blue Star Naxos) and I went to the Piraeus Metro station.

I was a bit excited. Moving around big cities is something that always excites me, specially if I'm not in a hurry to get quickly somewhere. I like to take my time, see what is happening around me and try to stop and watch even the smaller details.

Before going to the Metro station, I gave my bigger backpack to my friend Panos, so he and Oscar could take it on their motorbikes. Then I picked up the smaller backpack and a bigger piece of luggage, one of those harder suitcases with wheels (that they couldn't carry on the motorbikes). I also checked I had a book with me, real paper book this time, it was a novel from Haruki Murakami, Kafka on the shore.

Continue reading "Moving through the big city"
Posted by wu at 16:25 | Comments (0) | Trackbacks (0)
05 abril
2016

Why you should use NoScript

javascript is too powerful and buggy, and the internet is wilder than ever

http://e-shell.org/img/noscript.png

NoScript is an extension for the Firefox web browser that, among tons of other things, prevents Javascript code from being executed in the browser when you load a page.

Sounds simple, right? Well, NoScript has a lot more features and options, feel free to install it and take a look at its documentation and features, it is really worth it.

But here I want to focus on that hability, to prevent javascript code from being executed in your browser. This can be a bit annoying at first, specially nowadays when every website or webapp is using tons of javascript code for the most simple things, from displaying nice gallery carousels to modify the behaviour of clicks you do on links or buttons, passing by performing additional load of contents from third-party sources. If you don't believe me, just try to load a website like the Washington Post not letting your browser to load any javascript from that domain. You won't see the pictures, for example.

In some other websites the experience is even worse, all you get is message asking you to enable javascript if you want to get the contents; or even worse, a blank page without any contents or indications of why the contents are not there.

That's why many people ask me why - "Why do you have this blocker, which makes websites unusable?" - they ask. Even if I can allow (permanently or temporary) those javascript codes to be executed, people usually find this very annoying.

Well, the answer is for security reasons. Exactly as when I do a network firewall setup, I prefer to go with a block by default, then allow what is needed policy in my browser. I think this is a very good idea, specially if you take in account things like this bugs here:

https://bugs.chromium.org/p/project-zero/issues/detail?id=773

https://bugs.chromium.org/p/project-zero/issues/detail?id=693

If you look a bit further down Internet Lane you will find a lot more examples of bugs that can be exploited by simple Javascript code that is automatically executed in your browser when you load a website, so be careful when surfing through the Interwebz!

Posted by wu at 08:33 | Comments (0) | Trackbacks (0)
27 marzo
2016

2015 - A year in cycling pictures

Taking a look back through the pictures, I had lots of fun during last year

http://e-shell.org/cycling/2015/prevs/20150809_100808.jpg

I've prepared a small gallery with some pictures of what 2015 was for me, related to cycling.

According to strava, I've cycled 2040 Kms in 89 hours and 40 minutes, with a total of 24650 meters of elevation gain in 58 rides. I did some more cycling, as I don't track commuting or family rides with strava, but I guess that won't make a big difference in the numbers.

Depending on how much you cycle maybe you could find those numbers too short/less or maybe you could find them awesome. For me it has been a nice improvement over previous years numbers. I'd love to go out more time, further distances, longer rides, but even so, it has been awesome almost every single time.

http://e-shell.org/cycling/2015/thumbs/20150222-1.jpg http://e-shell.org/cycling/2015/thumbs/20150411-5.jpg http://e-shell.org/cycling/2015/thumbs/20150711-5.jpg http://e-shell.org/cycling/2015/thumbs/20150821_090825.jpg http://e-shell.org/cycling/2015/thumbs/20151111_120119.jpg http://e-shell.org/cycling/2015/thumbs/20151114-056.png

You can check the gallery here:

http://e-shell.org/cycling/2015

I hope you will enjoy it.

Posted by wu at 07:28 | Comments (0) | Trackbacks (0)
08 marzo
2016

Three terrible weeks

and a long road to be walked ahead

I sent this email almost three weeks ago:

Date:Thu, 18 Feb 2016 04:26:24 +0100
From:Me
To:Some-mailing-list
Subject:Bad, bad news
User-Agent:Mutt/1.5.24 (2015-08-30)

Hey guys.

Last evening my mother suffered a massive cerebral hemorrhage.

My father called me when they were getting her to the hospital in Lugo and I quickly went there too. The doctors were really pesimistic there, it seems the amount of blood adding pressure to her brain was too much.

They were helpless there, they couldn't do anything for her so they sent her to Santiago. A couple of hours afterwards she was on her way on an ambulance to the hospital here in Santiago.

Shortly after, my father and me came to Santiago too.

We've been in the hospital and we've talked with the doctors that will treat her. They are pessimistic too. So far they have to wait until tomorrow to do some tests on her, see if they can find what caused it and if there is a way to at least stop the bleeding. Then they will have to find out a way to remove all that blood and then... see if she can wake up from the coma, and how she is afterwards.

Right now I'm sitting in the bed of a hotel room by the hospital, with my father totally crashed laying on the other bed.

Life can be tough sometimes, really.

I'm afraid I won't be online tomorrow. By midday they should have the results of those tests, then they will give us some more information, and I'll get back to you.

Thanks for reading, my friends.

Continue reading "Three terrible weeks"
Posted by wu at 10:38 | Comments (0) | Trackbacks (0)