Archive

Archive for May, 2012

Side-by-side comparisons of programming languages

Facebook tips

Problem
You want to get the profile photo of a friend.

Solution
The profile address is https://www.facebook.com/%5Busername%5D . Visit https://graph.facebook.com/%5Busername%5D/picture (or https://graph.facebook.com/%5Busername%5D/picture?type=square).

User info in JSON
See https://graph.facebook.com/%5Busername%5D . Here you’ll get the user ID too.

Tip from here.

Firefox: get rid of that annoying download pop-up window

May 13, 2012 1 comment
Categories: firefox Tags:

MagPi: A Magazine For Raspberry Pi Users

http://www.themagpi.com/

Read about it here (in Hungarian).

Categories: Uncategorized Tags: ,

The Debian Administrator’s Handbook

Written by two Debian developers — Raphaël Hertzog and Roland Mas — the Debian Administrator’s Handbook started as a translation of their French best-seller known as Cahier de l’admin Debian (published by Eyrolles). It’s a fantastic resource for all users of a Debian-based distribution. Accessible to all, this book teaches the essentials to anyone who wants to become an effective and independant Debian GNU/Linux administrator.” (source)

Available as:

Read about it here (in Hungarian).

Categories: ubuntu Tags: ,

MC: get the same folder in the other panel

Problem
In Midnight Commander, you want to see the same folder in the other panel.

Solution

Alt + i

It can also be a good idea to run through the manual for more tricks: “man mc” :)

Send desktop notification from your script

May 10, 2012 2 comments

Problem
From your script you want to send a notification to the user.

Solution #1
xmessage:

xmessage 'Warning! CPU overheated!'

It’ll open a window that stays there until the user closes it.

Solution #2
notify-send:

notify-send "New version of MC is out."

It looks cool (see the figure) but it disappears after a while. So if the user is not in front of the machine, (s)he may miss the message. I saw this tip here.

Categories: ubuntu Tags: ,
Follow

Get every new post delivered to your Inbox.

Join 72 other followers