Friday, March 23, 2007

using NTFS for my external hard drive

I bought a 250GB external hard drive. Since sometimes I need to plug it into Windows PCs, I decided it is best to have it formatted as NTFS. I installed ntfs drivers (yum install ntfs-3g), and voilá, when I plugged it into the USB port, a nice folder appeared on my Gnome desktop, and everything was accessible.

Except for it is all read-only.

Damn. Now I need to figure out who is to blame: ntfs-3g, fuse, or gnome-mount.

Update, the fix is a one-liner:
gconftool-2 -s /schemas/system/storage/default_options/ntfs/mount_options -t string '[uid=]'

Thursday, March 22, 2007

linux on my usb stick

Interesting excercise. The stick can hold 512MB, so my first thought (put the Ubuntu live CD onto the stick) failed.

So here's what I figured out:
  • debootstrap is your friend. You partition, format, mount, debootstrap, and have a functional linux.
  • oh. De only thing you don't have, is an actual linux kernel. So install it with apt-get
  • both lilo and grub is complicated and big. Use extlinux to boot
  • apt-get install xserver-xfree-drv-ati, and some fonts
  • apt-get install gnome - this is 700MB! who would have thought. skip that
  • I settled with apt-get install fvwm. Oh the old days
  • apt-get install xdm - why does this also install cpp??
  • and to get to the point: apt-get install firefox
Tadaam. Still got 100MB to spare, and can do all my stuff. I mean you can do everything with a browser, can't you :)

Friday, March 9, 2007

Dusting off C

Since I'm looking for a job, I started practicing C coding. So yesterday I've implemented:
  • bubble sort in array
  • quickshort in array
  • heapshort in array
  • search for optimal parenthesing of matrix multiplication
  • radix short of a linked list
  • binomial heap addition
Today, I'll have a look at Perl :)

Thursday, March 1, 2007

Quiz

I just saw ad in the Budapest subway. It is looking for employees, Google-style.


I couldn't figure out the solution from the top of my head. What is the execution order of the "p2(c++), p1(c)" part? When will the variable c be incremented? What will be the calling order of the p1,p2 constructors? C++ is one magic language with lots of arbitrary rules.

But, of course, I typed it in and got the solution.

Tuesday, February 27, 2007

Who invented Relativity?

Makes a rather interesting read, but be advised, that to fully understand it, you need to have some physics backround.

Friday, February 9, 2007

the real Web 2.0

This is something worth checking out: Yahoo Pipes
You can collect all kind of info from different web services, mash them, filter them, in an intuitive manner. Have to have a yahoo ID for it.

Wednesday, February 7, 2007

gazpacho

As much as I like libglade and the whole put-your-GUI-layout-in-an-XML-file approach, I always hated Glade UI-builder itself. Too many windows, let's call it GIMP-syndrome.

I've found this new fancy builder instead, that outputs the same glade xml files, but has a workable UI. And oh, by the way, it is written in Python.

It will never catch on, though. No way any sane person can remember that name...