Thursday, July 29, 2010

Portugal vacation

veronica and alejandres house At last - some bits and pieces from our 10 days in Portugal. We stayed at Käthes daughter Veronicas house in the little village of Avessada a couple of swedish miles north of Lisbon. Veronica is transforming a piece of barren land around the house into a self sustainable farm. With help of volunteers she has truly accomplished a lot in a very short time. Read more about it here. The village only has some hundred inhabitants but still manages to support 4 bars. This was a good thing since our Internet oriented hosts didn't have a proper TV cable and I really wanted to see some of the world cup games. (Sadly enough - Portugal didn't win any games during our stay.) A beer is only 70 cent or so so it is really affordable to go out and have a beer or a coffee. There are two kinds of local beer: Sagres and Superbock. Apparently people lean towards Sagres in the south and Superbock in the north. sagres To me they taste about the same and are really superior to "normal" Swedish beer like Pripps, Spendrups and Norrlands Guld. The coffee is also great and is strong and a bit larger than caffe italiano.


Food is great in Portugal. It is perhaps not very fancy but the ingredients are so good that everything just tastes great. We cooked some at home and had some nice lunches and dinners out. Meals to remember were the seafood lunch in beach heaven Ericeira, the buffet lunch on a side street in Sintra with home cooked food by 2 friendly ladies, the very cozy restaurant in Tomar where we sat in a nice homely garden, the sushi at Origami just next to Oceanario in Lisbon, the lunch at a local joint in Malveira (down the hill from Avessada) that were just very local and very good (grilled sardines!), the brazilian meat dinner in Lisbon and of course a great midsummer's dinner at home with our hosts and some of their friends enjoying (?!) snaps and sill!


We did 2 day trips to Lisbon using public transportation to get there and made it to most of the sights and places. Flying through the sea Even though I have visited Torre de Belem before it was great to do it together with the kids. Just strolling around in the old parts or Lisbon is also a great time. It is vivid streets where people actually live in the old hoods. We visited Oceanario which is a huge place with lots of aquariums filled with all kinds of strange and normal fish. There were also a couple of open spaces with birds from different climate zones. The subway station serving Oceanario is called Oriente and has this truly awesome futuristic architecture. Think Star Trek space ship but more voluminous.


The weather was a bit interesting. We had some hot days especially in Lisbon and when going inwards from the coast. And we managed to get one great day at the beaches around Ericeira but half way through the coast was about 20 C and misty so we canceled our plans of visiting the bird island outside of Peniche and also didn't make it to surfing school. But we had no problem filling our days with other things to do. One day we stayed at home and only went for a long walk. First up to the hill top with two big wind power stations. It was a strange feeling to look at the great views with 2 rotors moving about somewhere up there. castelo de almourol Then we walked around the entire hill (the kids gave up after the hill climb though) finding a couple of geocaches on the way.


2 days were spent in Sintra in the two strange palaces with accompanying gardens from the 19th century. True imagination to come up with all the details in the architecture and a crazy bunch of people to fund it and populate it during the summers. What else? We spent about a day on the templars trail visiting the great Castelo de Almourol in the midst of Rio Tejo and Convento de Christo - the magnificent portuguese templars head quarters on the hills overlooking the nice city of Tomar. All very medieval, terrifying and uplifting.


The perhaps saddest part of the trip was our visit to Fatima. I really had to see this sacred place to get a feel for it. The place where a couple of kids saw Mary and people started going there en masse despite the church initial attempts to marginalize it. walking on knees is big in fatima It was fascinating to see the big square between the two churches in memory of the event. There is a special lane for people walking on their knees to make God listen better. Being a former newborn it is always depressing to see religion having so much power over people. Maybe it is good for some of them but I am sure that for many it is rather a limiting force.


And the graffiti was great. Robin Hood sai à noite


As always - a good guide book (Lonely Planet this time) is really useful and we had good luck with restaurants we tried outside the text. Just look for the locals is as good an advice as ever. There are more pictures over at flickr if you just can't get enough! And superthanks to Veronica and Alexander for having us!

Sunday, July 18, 2010

Bits and pieces

A few quick notes before heading of into vacation.

Postgres

Ever seen this or a similar error message on your Mac?

could not create shared memory segment: Invalid argument  

This happened to me when I tried to increase the number of max_connections parameter in the postgres configuration file. After increasing the maximum connections I got another error message which told me to increase the shared_buffers size as well. And finally, after that I got the error message above. After some research I found out that for some reason the system shared memory value on Mac OS X is out of historic reasons very low. Go figure.

The thing to do is to edit /etc/sysctl.conf and add something like this:

kern.sysv.shmmax=524288000
kern.sysv.shmmin=1
kern.sysv.shmmni=64
kern.sysv.shmseg=16
kern.sysv.semmns=130
kern.sysv.shmall=131072000
kern.sysv.maxproc=2048
kern.maxprocperuid=512

The parameter which is important is kern.sysv.shmmax. You can view the current setting via sysctl -A or more specifically sysctl kern.sysv.shmmax. I had to restart my computer to get the values to take effect.

Git

I started to use git more and I must say it is growing on me. However, since most of the projects I am working with are still on svn I have to use git-svn. Most of the time everything works just fine, but one thing I am looking for is a tool which converts a git patch to a svn patch. Unfortunately, a git patch will not directly apply into a svn repo. Problematic are especially file additions and removals. So far I haven't found a satisfactory solution. Anyone?

RubyGem

I thought I pass on this cool little ruby gem I found and started using - Cheat Sheets. Just install it via sudo gem install cheat and then you can access any of the built-in cheat sheets, for example cheat git. And of course you can simple add your own cheat sheets. Sweet.

Android

More of a question really. Does you Android phone shuts down properly? I had several occasions now where my phone shut down, because it was running out of power (well, we all know how great the battery life time is :( ). In each case I had to pull out the battery in the end, because the shutdown would never complete. Does anyone have similar experiences?

--Enjoy