Post thumbnail of Recover files when lsof wont help you
3 June 2010
Continue reading Recover files when lsof wont help you

Recover files when lsof wont help you

What if there’s no open file to be found, then what? If you were looking for some sort of media file, it might be easy to use a memory based distro with tools like photorec

Post thumbnail of 10 tips for boosting network performance
2 June 2010
Continue reading 10 tips for boosting network performance

10 tips for boosting network performance

10 tips, each summarized in a sentence or two. Speed up your WAN, Build a lab, know your apps, virtualization pitfalls, speed up backups, and more.

Post thumbnail of Build noarch RPM packages when architecture matters not
1 June 2010
Continue reading Build noarch RPM packages when architecture matters not

Build noarch RPM packages when architecture matters not

With rpmbuild, you can make custom packages for any architecture, but what if there’s no difference between the architectures in what you’re building. If you’re copying around something like scripts, docs or other text files that have nothing to do with 32 vs 64 bit or endianness, it’s easier and more efficient to create a single noarch package and just keep one copy of it in a repository.

Post thumbnail of Force gui updates during long callbacks or internal operations in pygtk or gtk
28 May 2010
Continue reading Force gui updates during long callbacks or internal operations in pygtk or gtk

Force gui updates during long callbacks or internal operations in pygtk or gtk

This faq is the most useful pygtk resource you will find. The full documentation is great for looking up which methods to use or what’s available in one class or another, but it’s the little nooks and crannies that are always left out by most pygtk resource sites that I …

Post thumbnail of Custom udev rules and external program debugging
27 May 2010
Continue reading Custom udev rules and external program debugging

Custom udev rules and external program debugging

In udev rules, the %k, %b, %n variables are nice and all, but you can also use the variables you’re comparing and setting such as ID_FS_TYPE, KERNEL, SUBSYSTEM, PHYSDEVPATH, etc. When you run a command in a udev rule, there’s nothing stopping you from calling a shell and executing a few commands without actually calling a standalone script to do the dirty work. If you write out the array of environment variables from inside an external program, you can get a better understanding of just which part of the device discovery is matching your rule and getting processed.

Post thumbnail of Google’s playable Pacman videogame without Flash
21 May 2010
Continue reading Google’s playable Pacman videogame without Flash

Google’s playable Pacman videogame without Flash

Today, the logo on Google’s homepage changed to their first interactive doodle - a playable game of Pacman, and you don’t even need flash to play it. Yet another nail in the flash coffin? Hit Insert Coin again and you can play as Mrs. Pacman with the WASD keys while player 1 uses the arrow keys!

Post thumbnail of Python memory management
19 May 2010
Continue reading Python memory management

Python memory management

Object creation and deletion is handled for you, but have you ever thought about how it works, when is memory freed, etc.? Think of everything in python as an object. Even something as simple as this, and since’s its a string, you can invoke any string method. When you lose access to some object, that memory is freed on its own. If you assign a string to a variable, you will find the memory locations are the same. Calling __del__ only removes access to the object from the local or global namespace. It does not mean the memory location has been freed.

Post thumbnail of Stack Smashing Detected by parted trying to write to read-only device
19 May 2010
Continue reading Stack Smashing Detected by parted trying to write to read-only device

Stack Smashing Detected by parted trying to write to read-only device

I haven’t run into this fancy little kernel output before. While automating the writing of partition tables and file systems to removable storage devices, I thought i’d test the case of a read-only file system. This error comes from trying to write a partition label to /dev/sr1 which is the cdrom device. *** stack smashing detected ***: unknown terminated. backtrace and memory map…

Post thumbnail of Automatic upload of photos and video from your phone
12 May 2010
Continue reading Automatic upload of photos and video from your phone

Automatic upload of photos and video from your phone

The idea that you can take a picture in an emergency situation and have it instantly uploaded is handy. If you were attacked by a mugger or witness some type of assault or accident, the pictures are instantly backed up online. But what about privacy issues? Putting your media online creates the potential for problems that are outside of your control.

Post thumbnail of RealTek RTL series Ethernet kernel driver for Linux howto
11 May 2010
Continue reading RealTek RTL series Ethernet kernel driver for Linux howto

RealTek RTL series Ethernet kernel driver for Linux howto

If you’re running an older distribution of Linux or you just find that the kernel module is unavailable because your RealTek RTL series PCI-Express Ethernet card is just too new, then you’ll need to install the driver manually.

 Page 6 of 47  « First  ... « 4  5  6  7  8 » ...  Last » 
Powered by Wordpress   |   Lunated designed by ZenVerse