Friday, January 20, 2012

Keyboard shortcut to lock screen in OS X

When I leave my computer unattended in the office I usually lock the screen. Usually going to the login window or screen saver requires the mouse. Here I show how you can set a keyboard shortcut that will lock your screen and login window. I tested this on OS X 10.7, but it probably works in other versions as well.

1. Open Automator and create a new Service. Set the service to receive no input and to be launched in any application. As an action add Run Shell Script and enter the following line:
/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend
Save your new service.


2. Now go to System Preferences > Keyboard > Keyboard Shortcuts. In the menu on the left select Services and scroll to the bottom to find your new service. You can now assign your keyboard shortcut of choice.


The shortcut will take you to the Login Window from any application supporting services (i.e. most applications).

If you prefer to use the mouse, there are several alternatives. You can enable fast user switching in Users & Groups Preferences to get an item for login window in the menu bar, you can use the Keychain Access menu bar icon, or you use a hot corner to activate a screen saver.

Wednesday, August 11, 2010

Alpenüberquerung



Die Alpen? Ja klar, hab ich gemacht!

Im August bin ich zusammen mit meinem Freund D. über die Schweizer Alpen gewandert. Da es im Internet bisher nicht viele Informationen zum Alpenüberwandern in der Schweiz gibt, hier eine kleine Beschreibung für interessierte Nachwanderer.



Unsere Route ist an die hier beschrieben angelehnt. Allerdings haben wir auf Gepäck-service, Seilbahnen, Busfahrten und Klosterbesichtigungen verzichtet und dafür die Reisezeit um 2 Tage verkürzt. Wir sind also in 7 Tagen von Flüelen im Uri nach Locarno im Tessin gewandert.

Übernachtet haben wir teils im Zelt und teils in Hütten. Währen wir es in den ersten zwei Tagen witterungsbedingt ruhig haben angehen lassen, sind wir später ca. 10 Stunden pro Tag gelaufen (einschliesslich Pausen). Die Etappen waren wie folgt:



1. Flüelen - Eggberge - Biel -Unterschächen
2. Unterschächen - Brunnital - Seewlisee Hütte
3. Seewlisee Hütte - Golzernsee - Hinterbalm Hütte
4. Hinterbalm Hütte - Brunnipass - Disentis (Muster) - Medel (Lucmagn) - Acla
5. Acla - Passo dell'uomo - Lago Ritom - Piotta - Rifugio Gazonera Hütte
6. Rifugio Gazonera - Passo Sassello - Lago del Sambuco - Lavizzara - Bignasco
7. Bignasco - Maggia - Avegno - Locarno




Hier ein google earth screenshot unserer Route und Übernachtungen. Die google earth Route kann ich auf Anfrage gerne emailen.



Mehr Photos in meinem picasa album.
wandern

Wednesday, April 15, 2009

Matlab svg icon

Matlab Logo. Preview of the svg version
I just installed Matlab under linux and realised that it does not come with a proper icon. So I sat down and played around with Inkscape for a while to make a high quality vector graphic from the classic Matlab logo. It's not completely the same, but I think it's reasonably close. For a desktop Icon it should be sufficient.

To create a desktop shortcut for Matlab in Ubuntu Linux, right click on the desktop and select "Create Launcher...". In the command field enter the path of your Matlab binary, e.g. "/home/Applications/MatlabR2008b/bin/matlab". You can then click on the icon with the spring to select another icon.

Find the Matlab svg icon here.

Btw. you can get the Matlab logo plotted as a function if you type "logo" in the command promt.

Friday, February 13, 2009

Panorama photos

I just discovered the nice application Hugin. It's a panorama photo sticher, that is, it helps you to arrange overlapping images into big panoramas. Given that it's open source, it runs quite smoothly, and is available for Linux, Mac, and Win.


This is "my office". Right now I got it just for myself ;)
The picture is composed from 4 photos. The boarder is quite obvious between the two right photos, but hardly noticable between the two left shots. This was just my first try.



Here's another go. It's St. Mary's Island, pretty close to the spot where I was staying in India. It's composed from 5 shots. There's an interesting gradient in the sky changing from blue to white ;)


And now a really big one. It's Lake Wairarapa in New Zealand, composed from six shots, I took about 1.5 years ago. Maybe I overdid it with the color correction.

Monday, December 15, 2008

Kathmandu

Salut!
I arrived in Kathmandu yesterday afternoon, after a rather unpleasant bus ride. Not that the bus ride was particularly bad, but I got some stomach problems and head ache and that made the bumpy road feel particularly "intense".
During the night I managed to sleep for an incredible 16h and I feel better now.


This might well be my last blog-post from this trip, as I'll arrive back in Germany on the 18th. I look forward to seeing you!

m

Sunday, December 7, 2008

Trekking the ABC

Yesterday, I came back from 6 days of trekking in the Himalayan Mountanis near Pokhara. In particular I went to the Annapurna Base Camp ("ABC"), which is a lovely spot, surrounded by high peaks, and just some 40km from the nearest road. I started of together with an American girl I had just met two days earlier, however on the second day she decided that her backpack was to heavy (it really was!) and she couldn't make it. So she turned around and I continued on my own. Not too bad, since now I could walk as fast as I wanted. I think I was quite fast, since my backpack was incredibly light. Partly because after traveling for some time I've learned to restrict myself to the necessary; partly because I just didn't have the right equipment for the mountains (i.e. warm cloth), and I also didn't want to buy the same for just one trip.

After three days of walking 6h, 7h, and finally 8h, I arrived at the Machapuchre Base Camp at 3500 m, which is just a two hour walk from the ABC. I stayed there for the night, as I was incredibly tired after walking the whole day and I had already gained quite a lot of altitude. Consequently I felt a little head ache and an uncomfortable feeling in my stomach. The next morning -- day 4 -- I went to the ABC. Even though the trail was not particularly difficult or steep, the thin air made it quite exhausting to cover the last part. I was happy to reach my goal and stayed at the top for until the next morning. Long enough to get a sunburn during the day, and freeze a lot after the sun set behind the mountains at 2 pm (!). I'm not sure how cold it was during the night, but it was below freezing. I'm glad I have a warm sleeping bag.
When I woke up the next morning I still felt a head ache and slight nausea, which set me in bad mood and I started descending immediately. I suddenly felt lonely and bored. Actually there really isn't much going on in the mountains. By 6 pm it's dark, but already by 4 pm it is too cold to feel comfortable outside. There were usually a few other people in the hut's but our conversations stayed shallow.
Originally I had hiking to some other places before returning, but I canceled those plans, and did the whole return trip in just two long days of walking.
I conclude, it was a great to hike up there and get closer to the amazing peaks. It was also nice go get out of the cities and populated areas, to places where there's just nothing. But that's was also the difficult part. Being on my own, I didn't want to stay in this solitude for more than a couple of days.

Now have a look at the pictures:


taking a rest on the way to the top



On the first days I was walking through the countryside. The hills were covered with rice fields ans small houses were scattered in between. In these areas there is no road access. Everything has to be carried in by man or donkey. In the more remote places it's about three day-walks to reach the road.



This is where I stayed at the top. Note the small print on the sign: "Annapurna Base Camp 4130 Meters". At first sight the base camp seems to consist only of the two lodges, catering to the many tourists coming up there. However after looking around for a bit you will find a "shrine", dressed in prayer flags (picture below), at which paper notes, photos, and some engraved metal plates remind of those who went further up the peaks and died there. Two climbers had passed only in May, this year.

I'm still alive



The whole way to the ABC is a well maintained tourist area. Shops like this on serve beer, Pringels Chips, Mars & Snickers and everything else the continental tourist enjoys. And the prises rise as you climb the hill, which is understandable, given that all those beer bottles are being carried there (and away!) by amazingly strong Nepali people.



Here are two of my favorite shots:









And at last, two shots from Pokhara. A lovely and relaxed city on the shore of Phewa Lake (see picture). I'll stay here for a couple of more days before going to Kathmandu, my last stop before 'home':

Sunday, November 30, 2008

away

Hey, This is just to say that I won't say much in the next 1-2 weeks.
I will head for a big trek in the mountains tomorrow. So I hope I can present a good account of my trip once I return. cheers!