Archive for June, 2011

Playing with GIMP

Wednesday, June 29th, 2011

Gimp logoThe other day, for work, I wanted to make part of a picture stand out. I opened GIMP, but not sure to proceed. And then I hit upon an idea: have the original in B&W, and have the highlighted part in colour!

Sometimes this looks really good, sometimes it’s more okay than amazing. But, at any rate, it’s neigh-on trivial in GIMP, as this tutorial shows.
Short short version

  1. duplicate background layer (right-click layer, “copy”)
  2. make new layer grayscale (color menu -> desaturate, try the options)
  3. add layer mask (right-click layer, “add mask”, select “white”, click add)
  4. paint on the mask with black to remove those parts of the layer (brush tool or pencil tool)
    fix mistakes by painting with white (press ‘x’ to toggle between background and foreground color)
  5. save image

And what does that get you?

voting booths voting booths (b/w)

Pretty nifty for my first serious GIMP’ing, no? :)

Edit: just found out how to easily have lines around a selection:

  1. select something,
  2. choose a brush or pencil of appropriate size and color
  3. Click Edit > Stroke selection; choose the lower radio button (“Stroke using a paint tool”)
  4. done!

Yeah yeah, trivial stuff huh? Two things: 1, last time it took me way too long and the result was entirely unsatisfactory; 2. this works on any selection, not just a square or circle. And that is cool :)
Outlining Switzerland on a map of Europe in 5 sec is cool :)

Trainternet

Friday, June 17th, 2011

God I love NL for a change!!!

— Posted from my train. Without using my phone. Le :P

[ubuntu] where’s my lower right-hand corner?

Friday, June 17th, 2011

Ubuntu logoIt’s gone in the new Ubuntu (blame Gnome). Used up by a resize handle. Which I don’t want. Apparently, there’s a way to get rid of this, see here. Untested for now!
Edit: tested, it works. To recap: make sure the following is in your $HOME/.gtkrc-2.0:

style "default-style"
{
  GtkWindow::resize-grip-height = 0
  GtkWindow::resize-grip-width = 0
}

class "GtkWidget" style "default-style"

Skype issues

Thursday, June 9th, 2011

Skype has two issues with the current Ubuntu:

Focus bug in Ubuntu

Thursday, June 9th, 2011

Ubuntu logoThere’s a focus bug in the latest Ubuntu (basically, in the Compiz package, but who cares about specifics ;-). Basically, if you select “focus follows mouse”, your mouse will uniquely determine the focus. Always. Previously, the mouse would only change focus on window entry.

In other words: Alt+Tab only works in the new Ubuntu if the mouse isn’t over any window. Which is usually not the case.
Bug report here. I hope it gets fixed soon, it annoys me daily – I use Alt+Tab. Often. :s

Mail setup: auto-folder subscription

Tuesday, June 7th, 2011

Thunderbird logoSo, in between the (by now) terribly outdated (two holidays ago by now :s) Tenerife epic, an actual current update!

I’m right now in Darmstadt, at CASED for a month. I bravely decided to take the new computer I got here and set it up with the new ubuntu. Plenty of woes so far (why on earth does the external monitor function out-of-the-box on the live USB stick, but it’s a royal PITA to get it working once installed.

For that matter, since when does Ubuntu forget to let me boot into my windows? I must have done something wrong with the install — but it used to be easy, now it’s hard to figure out?!

Le anyway, mail clients. Trusty old evolution somehow didn’t show all my regular folders. Okay, thunderbird then. The same damn folders missing again – wtf?

Okay, turns out to be a matter of “subscribing” to the desired folders. Well, how about all of them, by default? Apparently, neither client did that out of the box. But it fixes the issue in both… (thunderbird: file > subscribe ; evolution: Folders > subscribe). Weird, good to remember.

Tenerife, day 3 part 2: hitchhiking away

Tuesday, June 7th, 2011

cable cart shadowWhere were we? We’d climbed up to Teide, I danced on the volcano, and then we descended to the top of the cable cart. The route we planned (to Pico Viejo and beyond) was closed, so we decided to abort the plan and take the cable cart down. On the way down the cart operator pointed out some native mountain sheep — but I didn’t spot them. At the cable cart base station, we treated ourselves to a brunch and sat down to figure our plans out.

During brunch, Aga said there were basically two options: back to Los Cristianos and beach out the rest of the holidays, or to go to somewhere called ‘Los Gigantes’. Were we to go to Los Gigantes, we could also go to something or somewhere called “Masca”. Apparently, it was gorgeous and wonderful and amazing and more!

As it turned out, we didn’t have to make the choice for a while just yet. I innocently asked how we’d get there. “Hitchhiking! Or, if that doesn’t work, we’ll take a bus.”
Errr… hitchhiking? Le what? Never done that in my life. Then again, never too old to try something new :)

The bus schedule was rather… disappointing. There was about one bus per day, and it was going near (not to) Los Cristianos. To go by bus to Los Gigantes, we had to take this bus (which left from somewhere sort of nearby) at 4pm. Did I mention it was roughly 10am? Even if hitchhiking hadn’t been suggested, I would’ve probably opted for it… or for walking.

We left the base station and walked to the main road. In line with our desire to hitch a ride, we were walking on the right (non-left) side of the road. The first few cars passed… grmbl. Then, one slowed down a lot, and we both thought “success”! But apparently he then saw our backpacks and raced off again. GRMBL!

Anyway, the primary plan was to hitch a ride directly to Los Gigantes. Failing that (which was likely), we’d hitch a ride to the point where the road to Los Gigantes forked off from the road to Los Cristianos / the beach. I heard a car coming, and we both turned and put on our bestetest smiles. Amazingly, the car pulled over! We were about to successfully have hitched a ride! AMAZING!

Cute hitchhikesterFor me, this was a completely new experience. Luckily, Agnieszka had done this before, and she struck up a conversation quickly. The Danish couple that had picked us up were about our age, and had rented a car to explore Tenerife. For a brief while, that sounded quite appealing to me. Rent a car, and explore the country side together with your girl. You could find all these wonderful spots … hmmms. The parts where we had walked, were inaccessible by car. And they were pretty damn amazing. And actually, with this car, there were some nice views too, but we were mostly speeding through them, not really having the time to admire them. Upon reflection, the hiking sounded slightly better.

Since the friendly Danes were heading in the direction of Los Cristianos, we asked to be dropped off at the fork. There happened to be a toursistic stopping place there, because of the nice view of the lava field leading up to mighty Teide. As you can see, we ditched the hitchhiking plan for a while and acted as tourists :)
According to the bus plan, there ought to be a bus stop around here, so if we failed to hitch a second ride, we could always make it to Los Cristianos.

After a round of taking photos, our collective thumbs had had enough of a break, so we broke them out, all fresh and shiny. Car number one…. shiny thumb, admire the shiny thumb… no. Car number two… number three… no luck. After 40 or so minutes, we figured it might have something to do with the location. There were lots of tourist walking around, it wouldn’t be immediately obvious that some of them were in need of a ride. Following that logic, we hiked some ways up the fork, waiting for a car to Los Gigantes. A few came, accelerated and passed. Grmbl. We took some more photos (it’s a photo-blog! :), and our hope of reaching Los Gigantes dampened.

hitchhiking failureBy noon, we had walked back to the viewpoint and tried again from there – with the idea that any ride is better than no ride. Still, no luck… or was there? A car pulled over… was that for us… it could be… I went over, but the couple was Spanish, so I waved Aga in and let her figure it out. By then I figured they’d stopped for some photos, not for some tourists. Turns out I was right :s

Aga seemed quite down by this. I realised that a young girl hitchhiking is different from a bloke hitchhiking, and again different from a couple hitchhiking. Probably, had she been by herself, she would’ve by now hitched a ride. I almost felt like apologising… Ah well, couldn’t be helped. Plus, we were having fun together. Up to the point where she seemed to see the hope of Los Gigantes / Masca evaporate into thin air.

Figuring “what the hey”, I proposed we just started walking to Los Gigantes. I reckoned that a still-standing hitchhiker might be less appealing to pick up than one that is already hiking. Well, the second one sort of radiates an air of “you can make my life easy or not, but I’m going to get there.” as opposed to the “make my life easy please?” view. Well, pure speculation of course, and far-fetched reasoning, but enough to convince me to start moving, and it was good to not stand around anymore.

So we started in the direction of Los Gigantes. A few cars passed without acknowledging our thumbs. We polished them a bit and kept walking. Another car approached, we raised our shiny thumbs, et voila! Magic happened!

It turned out to be the Spanish couple who had earlier not picked us up, but stopped for photos. They weren’t heading to Los Gigantes, but they were going a short way in our direction. Grateful for any forward motion, we joined. This time, Aga was the only one doing the talking – Spanish is not my forté. They dropped us at a rest place besides the road, and we went bravely on. Again we showed our prettiest thumbs at any cars coming our way, and if they passed, we silently berated them and kept marching on.

It wasn’t long before another car pulled over. This time we were picked up by a friendly Swedish couple, I’d estimate the age of my parents. We had a fun chat, especially when the gentleman turned out to be working in IT as well. We talked shop for a bit, until the signs from both ladies clearly indicated a change of subject. :)
They were going to Puerto de Santiago, which was immediately next to Los Gigantes. More accurately phrased, “Los Gigantes” is a series of impressive rock formations protruding into the ocean, and also the name of the harbour region of Puerto de Santiago (which is next to the rocks). The friendly Swedes dropped us of in the village, near a sign pointing to the harbour. within 20 minutes, we were there, and on our way to find an apartment.

Antonio's

Aga had a particular location in mind, and we did find them in the end. The apartments were at about 1 minute from the harbour… if you crawled slowly. The lady at the desk told us that there were apartments available, but they were still being cleaned. Recall that we hiked up Teide earlier this day, and had been walking in warm weather quite a bit… We were both ready for a shower. That they could offer us in the mean time, so we had a shower. Afterwards, Aga wanted to go to the swimming pool. I wasn’t that interested to begin with, and didn’t feel too comfortable leaving our luggage there. Moreover, the room ought to be done in about 10 minutes, so why not?

And indeed, after a little pushing we got into the room and dropped our stuff. Our balcony overlooked the harbour, and not from far. We collected ourselves a bit, and then we went out to explore the town and grab a bite to eat. While exploring the town, I suggested tapas – that is a typical spanish dish and we hadn’t had the occasion yet. So at the village square, we asked if the bar had tapas. They said “yes”, but should’ve said no. We ordered “papas locos”, which I expected to be potatoes (papas arugadas, our favourite Tenerifian dish by now, consists only of salty potatoes). Imagine our surprise when we were served french fries with cheese and ham. And when I write “with cheese and ham”, I mean “with small cuts of cheese and ham sprinkled all through the french fries”. This was by far the weirdest dish either of us ever ate.

While more happened this day, I’ll leave it at this. That way, at least you can ask me about the Rincon De Antonio, next time we meet. Hasta Luego!

PS: Yes I did touch the water in the evening, after dinner. Heighest point in Spain in the morning, lowest point in the evening. Fun, no?