Little snippet of how to set your brightness for a display. This is only working on my laptop, but not on the desktop. Probably driver-issues. Run as root!
echo -n "50" > /proc/acpi/video/VID/LCD0/brightness
If you’re doing a whole lot of copying or other time-wasting processes and want to make sure, everything will work as it should you probably take the TTY1 to make sure that your GUI isn’t messing around. At least that’s what I do. And to see the progress you always have to press Ctrl+Alt+F1. Not with this nice little command:
cat /dev/vcs1
Of course you need to be root. And for an updated version I use watch because tail -f is not working. (It’s not an regular log file on which lines are added)
watch 'cat /dev/vcs1'
I made an array (YES it’s huge) which has every single http-code in it, with the according title and description. It’s copy&paste from Wikipedia, so there can be some mistakes. Just tell me if you found something, i’ll correct it.
The Array!
Have a nice one!
It’s so simple and in some way stupid: Just set your date into the future (about a month should be enough), then go to the homescreen and wait 10 sec…. it will appear soon.
The other day i taught about using a database in C. Basically I’m building a authentication module for the freeradius RADIUS server. So this is why it came up in my mind. Now how it works…
Did you ever tried to get the Release Number of a Ubuntu? There is a so called file in the /etc directory which contains all the needed information. Using “grep” and “awk” it makes possible to get a single element.
weiterlesen »
Have you ever tried to check if a host is online or not? Yes it’s very easy with ping, but what if you need this in PHP? weiterlesen »
I have now a nice setup with the squeezecenter from logitech and the squeezeslave. I’m using squeezeslave because it is much faster. But one thing i was missing at this nice combination: An API to get the actual playing title and some other information. I like to know what i’m hearing directly looking at my desktop (conky).
weiterlesen »
Today I played a little bit with Adobe Flex. This is a little tutorial, or a review of this “programming” language, it’s up to you.
weiterlesen »
I have written a little Bash Script, which downloads via some packages the video and converts it into an mp3.
weiterlesen »