Theju's Tryst with Life

Split a large CSV into smaller CSVs

At work, we sometimes have to deal with huge CSV files and it is difficult to open these files in memory because there is a limit of the buffer size.

So the best way would be to split the file into smaller chunks so that they can be easily read ...

Install Fedora from a USB disk without a DVD

Fedora has a release schedule of 6 months ie they release a new version every 6 months. 6 months is too short but there are a lot of new features that are packed into every release that it makes it very tempting to upgrade or re-install the new version.

Till ...

Handle ACPI events in Linux

Off late, I have been working totally in runlevel 3 to replicate the setup and feel at work. The only grudge I have with runlevel 3 is that there is no easy way to figure out the battery level of the laptop.

So I googled around and realized that ACPI ...

Inotify, watch your filesystem

Inotify, is a Linux kernel system call that helps you monitor the file system for various events.

Here is how I use it:

GNU Screen : A must for remote developers

Did you ever come across a scenario where you were in the middle of some important work on the terminal and realized that you were out of time and wished you could continue it say from home or from another machine?

Or another scenario, where you could do a show-and-tell ...

Create an ISO from a CD/DVD Device

In GNU/Linux, it is very easy to create an ISO image which can be used to be written later on to CD/DVDs.

dd if=/dev/cdrom-device of=/path/to/image.iso

Really simple and awesome!!!

Enable/Disable CPUs dynamically in Linux

This is a wonderful feature of the Linux kernel. Being able to dynamically enable and disable multiple CPUs (all this without rebooting).

To check if you have multiple CPUs

$ cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Core(TM)2 Duo CPU ...
1 page of 2 pages. Number of posts are 11. Next >>