So I bought a new SSD the other day. After reading about SSD issues with SWAP partitions i decided to investigate further.
I found out you can use something called zram.
The zram module creates RAM based block devices named /dev/zram<id>(<id> = 0, 1, ...). Pages written to these disks are compressed and storedin memory itself. These disks allow very fast I/O and compression providesgood amounts of memory savings.
Zram actually creates a loopback device which is stored in ram. It can be used for SWAP (vritual memory partitions); Storing cache files for web servers; storing static files; and many other things!
Sometimes you might want to convert ebooks from one format to the other.
Either because your ebook works better with a format or you want to print them to a certain size with margins.. etc. For example Nook has epub support for searching words in dictionary, while PDF doesn't work well.. sometimes I might convert a book to get the extra features.
For the project and source code see Yahoo Messenger Bot
Yes, there are a lot of bots out there for MSN messenger but I needed to have one that I could program for Yahoo Messenger.
While searching the internet for anything interesting I found many different projects that I thought were cool. However most of the only worked with older versions of the Yahoo messenger protocol that changes quite often. This renders anything written for an anterior version useless.
This is a small snippet I've written on a Friday afternoon. It's only 80 lines.
I wanted a way to put all my PDF's or WORD/Open Office documents into a database and search for a pattern of text within them all, to know exactly in which document(s) the information I required resides.
This way I learned how to use full text search in SQlite. It's not that hard once you grasp the theory.
So this is an example when doing some research before you start coding some automation pays off.
Of course I can write my own FTP crawler in Tcl!
But why when it's easier to copy a whole FTP server recursively in just 2 lines!
First install FTPfs (Debian Linux distro assumed)
sudo apt-get install curlftpfs
So while reading the LPIC 1 certification book I compiled a list of the most used commandline shortcuts at that moment.
There are of course many more interesting commands, this is just a short list.
So I had this issue the other day.. In 2009 some websites still have manual checkboxes.. Yeeks
You want to select all checkboxes on a website and it only allows you to do it manually?:D
Install firefox if you don't already have it. Install firebug.