badcomputer.org

Monday, August 14, 2006

Gentoo: clearing out deadwood

Well, my / and /home partition were starting to get a little too crowded for comfort. I needed to find some more room. Now: My main desktop's main OS is of course Gentoo, but I also have FreeBSD, Slackware, And SuSe installed on other partitions. The fact that I have not booted Slack or SuSe in over a year made it easy to decide that their respective partitions were going to be gentrified. FreeBSD is staying though ... I do like FreeBSD.

I also had a huge amount of free space on my second HDD that I totally forgot about. So: The remaining space on hdb became my new /home partition, and my old /home partition became a new /var partition. Previously, /var was just part of the / partition, so this freed up about 2.6GB of space on /. I also still have 50GB or so from the old Slack and SuSe partitions to play with.

Filesystem            Size  Used Avail Use% Mounted on
/dev/hda2             9.4G  6.1G  3.4G  65% /
/dev/hda1              54M  7.0M   44M  14% /boot
/dev/hda3              19G  8.8G   10G  47% /usr
/dev/hda5              14G  2.6G   11G  16% /var
/dev/hdb3             112G   12G  101G  10% /home
nina:/home/exports     75G   69G  6.2G  92% /home/music
nina:/home/backup      19G  6.6G   13G  36% /root/backup

You can see here that / is still using 6.1G which seems a bit steep considering /usr, /var, and /home are mounted on different partitions. You can also see that my /home is now 112G, which should provide me with years worth of space for collecting ethernet debris. You can also see that nina, my fileserver is going to need a new HDD soon, as my media files are running out of room fast.

Ruby: a language you should learn

Everybody loves a good religious war, Vim vs Emacs for example (yeah...vim is better...want to fight about it?). However, one war I tend to find myself a peacekeeper in is the language wars. I love Python, and have written a great deal in it, but my new friend is Ruby. I have been writing Ruby for all of a month and find myself just as good as I am at Python, a language I have been writing for years. I subscribe to both c.l.ruby and c.l.python, and it amazes me how much each language's advocates trash each other. Why can't we just get along.

I have to admit I do prefer Python's syntax. It just seems so much cleaner, and I am probably the only person on earth who prefers Python's forced-indentation to other languages '{' and '}', or in the case of Ruby, the 'end' keyword. That being said, I seem to be much more productive in Ruby, and I love the 'everything is an object' implementation. For example, '23' is an object. It inherits from class 'Integer' of course. Also, "foobarbaz" is an object inherited from class 'String'. This allows you to write:

l = "foobarbaz".length
23.times { puts "Yeaah!" }

Rather than the positively C-like:

l = len("foobarbaz")
print "Yeaah!" * 23

Ok, so 'print "Yeaah!" * 23' isn't very C-like, but you get my point.

stats

It is Saturday May 17, 2008 11:56 pm
This page served 904 times
This page last modified: April 14, 2008 11:29 am
Your IP address is: 38.103.63.17
You are browsing using: CCBot/1.0 (+http://www.commoncrawl.org/bot.html)
You are browsing from: United States.
badcomputer.org's uptime: 23:56:08 up 24 days, 00:38, 0 users, load average: 0.00, 0.00, 0.00

local

home | unix stuff | dir2ogg | sneetchalizer | wmainfo | q&d guide to permissions | q&d guide to tar and gzip | code | MS rant | browser shootout | linux & iAudio X5 | photos | music | programming poetry | sieve of Eratosthenes | plea | rain | suffer | archive | about | recipes | compaqr3000 | sitemap

search

Google

credits

hacker emblem

This page, and all pages on this site were created and are maintained by Darren Kirby using valid XHTML 1.0 and CSS, and are ©copyright 2002 - 2008. The Penguin image was created by Tukka, and is used by permission. Inspiration for the look of this site was provided by Eric A. Meyer's CSS gallery. This website runs on Gentoo Linux. It is served by Apache. PHP and MySQL hold together the backend.

advertisement