Spend time in terminal? Here is a preview of an upcoming book review for the book Linux Shell Scripting Cookbook from Packt!

Book coverA brief from the book description:

Linux Shell Scripting Cookbook is a collection of essential command-line recipes along with detailed descriptions tuned with practical applications. It covers most of the commands on Linux with a variety of usecases accompanied by plenty of examples. This book helps you to perform complex data manipulations involving tasks such as text processing, file management, backups and more with the combination of few commands.

You can check out the sample chapter Put on the Monitor’s Cap while waiting.

Short story: Open up /lib/udev/rules.d/70-hid2hci.rules and find the following line:

KERNEL==”hiddraw*”, ATTRS{idVendor}==”046d”, ATTRS{idProduct}==”c70[345abce]|c71[34bc]“,
RUN+=”hid2hci –method=logitech-hid –devpath=%p”

Comment those lines out as follows:

# KERNEL==”hiddraw*”, ATTRS{idVendor}==”046d”, ATTRS{idProduct}==”c70[345abce]|c71[34bc]“,
# RUN+=”hid2hci –method=logitech-hid –devpath=%p”

Save, relog. Did the charm for me. If it does not work, read up on the link from above. There are other methods involving some changes to those lines.

Somewhat longer story: I installed Ubuntu 10.04 on my desktop PC this weekend. Everything went pretty smooth, that was up to the login screen. To my amazement my Logitech MX5500 keyboard refused to work. I managed to log in using the onscreen keyboard, but when i got inside Gnome I could not get it back up. After some pretty intensive copy-and-paste action from the FireFox homepage I was able to search for “onboard” and get that back up running. Google lead me to a Ubuntu Bug Report detailing this issue,

Some time ago a friend of mine tipped me about this article series called “What every programmer should know about memory” written by Ulrich Drepper (lead contributor and maintainer of glib). I just recently came around to start reading it. This is a 100 page long text which covers computer memory in detail, with focus on how software interacts with memory. From RAM to CPU caches the text moves on to tips on how we as programmers can improve our code when it comes to memory management and performance. A really good read which I suggest every programmer should check out.

[tags]Hardware, Memory, Unix/Linux[/tags]