Archive for the ‘Tech’ Category

Ripping a home video from a DVD with Ubuntu…

Friday, May 23rd, 2008

… and a very old laptop.

Today’s mission: I got this DVD with the video recording of my most recent adventure in Japan. I want to take the video itself away from the menu fluff, and put it here for everyone to see.

Step one: Getting the DVD to work on my laptop

First fail: I insert the DVD in my ubuntu laptop, and it begins to auto-play, loading the movie player. Apparently, the ubuntu packager’s mothers never told them not to auto-play any strange media that connects to their computers :-(.

At least, no problems recognizing the DVD.

Step two: Installing the DVD ripping software

Drebes suggested Handbrake. `Apt-cache search dvd rip` suggests acidrip. Let’s try acidrip first.

Step three, part a: trying to rip the video out using acidrip

Downloaded Acidrip, and ran it. The man file does not explain a lot about the command line parameters. Theoretically, the defaults are sane. I can press the “RIP” button and generate and
avi file, but I can’t get mplayer or xine to successfully read it. Not really into reading manuals and manuals describing codecs, so let’s try handbrake.

Funnily enough, the “preview” button from acidrip shows me a nice video, with nice sound - is it reading straight from the DVD?

Step three, part b: trying out handbrake

download the binary. Run the binary: Handbrake -c 1 -i /dev/hdc -o file.mp4

There it goes. A nice, small video. Now I just need to find a place to put this binary in.

Here is the result:

Problem with Eclipse and Ubuntu

Wednesday, December 12th, 2007

Recently, I had a nasty problem with Eclipse in my Ubuntu Box. The GUI would not show me the code for some of my source files, saying that the text window couldn’t be displayed due to an internal error. For other files, it would display the code, but mark every line as an error, with spurious reasons like “can’t instance org.eclipse.something” or “java.util is not a valid library” or something similar.

The first time it happened to me, it was because Eclipse was wrongly using the Gnu Java compiler, instead of Sun’s JDK 1.6. I corrected the links with ‘update-alternatives’, and all was well.

Now it happened again to me earlier this week. This time out, I made sure that the GJC did not have a higher priority than sun’s java, but still the error remained. Today I found out that, for some reason, the fault was of the “system library” of the project. The system library was set to the “default” (sun’s java 1.6). When I manually set the path for the 1.6 library, eclipse started working again.

Hmmm. I feel like I have just patched the symptoms, instead of really solving the problem, but at least my system is working now. Hope this helps other people - and if anyone has a more “solid” way of fixing my system, feel free to comment.

Installing Ubuntu in Two laptops

Thursday, October 25th, 2007

Picking up from where the previous post left: I have installed Ubuntu in 2 laptops - my personal laptop at home, and my presentation laptop at the lab.

First, the summary - for ubuntu 7.04
HP Compaq nx9005 - success.
HP Compac nc2400 - success - but needed to download some drivers for the wireless network adapter.

Now, the long story.

It has been a while that I wanted to replace the Windows in my lab laptop (the nc2400) with some sort of linux. Those usual windows problems were slowly creeping in, sometimes the computer would freeze during boot up, many times a row, and the system was slow and irresponsive. Since I use that laptop for conferences and presentations, I wanted a system that wouldn’t take much of my time with problems or fine tuning, or re-learning the location/design of system files. Also, I wanted to try something different from the Debian I always use. Ubuntu was the distro that fitted the bill the best, so I created an ISO disk, and installed it.

Installing ubuntu into my system was faster and more hands off than I expected. The ISO disc is actually a liveCD, instead of a pure installation disk - nice. You click on an icon in the desktop to actually start the installation. Almost no questions are asked. Your name, timezone, language, and that is about it. I asked to do the partitioning myself, but even that can be left to the installer.

That seems great for the common user, but I could have used an “expert installation” option to have more control over the installation procedure. Like choosing some of the initial packages, and the repositories and stuff. Anyway, the instalation left me with a completely functional system. The wireless network card was not working off the bat, but I did not expected it to be. Just a few minutes browsing the net gave me the link to the tutorial I needed. Following this step-by-step made the wireless card in my laptop work without problems:

https://help.ubuntu.com/community/WifiDocs/Driver/bcm43xx/Feisty_No-Fluff

After that, I decided to install ubuntu on my home laptop as well - It was a dual boot with debian unstable and windows. I was feeling that the linux partition was currently too small, and I was facing many problems with broken packages in unstable that I felt I did not have the time to deal with, so I decided to reinstall the system. Nothing particular of note, just did the installation procedure all over again.

Well, so how did it work out?
I realized that I really don’t like gnome as much as I like KDE. I didn’t knew about kubuntu when I was preparing the ISO. Gnome does seem to hide too much from the user. The terminal is not in a nice icon easily clickable, but buried beneath at least two levels of menus. There is not also an apparent way to run arbitrary programs (I found out later that alt+f2 does the job). Ubuntu 7.04 seems a bit too heavy for my nx9005 - I’ll have to experiment turning off some services for it, but my nc2400 handles it without a problem.

Eclipse somehow seems to default to java 1.4. Fixable, but annoying. And for some reason the “sound off” button in the nc2400 doesn’t really turns the sound off, just set it to really really low (even though the volume controller inside gnome also says that the sound is off).

Lots of small idiosyncrasies, but overall I’m quite happy with these systems.

Renaming Computers.

Wednesday, October 17th, 2007

Today I was supposed to write a Post about having installed Ubuntu in my academic laptop - but it so happens that I can remember exactly its model number, and the post would be quite useless without mentioning the model of the little computer :-( So I’ll have to leave the ubuntu post to a later occasion - hopefully still this week.

Instead, I’ll discuss a somewhat more “philosophical” subject - naming computers.

To tell the truth, I have never meaningfully named my computers before. I had this “rule”, where I would name my computers after female friends of mine. I don’t remember exactly when I decided that. Maybe it was when I received “my” first laptop from my mother, near the end of my undergrad carrier - since it was my first mobile computer, it made no sense to name it in a similar fashion to the other computer in the networks they belonged (like the the computers in my student house, which were all named after Lego sets).

So, why female friends? There is no deep reasoning for that, to tell the truth. It was nice naming my computer after females, but I didn’t feel like using personalities, or any particular fictional characters. Since I was moving to Japan at the time, using the names of my friends felt like a tribute to my past life - I would remember them while working/studying/etc. But this is retconning my reason - It was a spurn of the moment kind of decision, and I just stuck to it for lack of anything better.

Until this week, when I had the chance to name two computers of mine, which systems I had re-installed (more on that on another post). This time, I had just finished reading the Chobits manga series. Removing the sugary plot and the Dragonball Z moments, that comic invites you to a few reflections - like the nature of the relationships between people and machines.

In Chobits, Persocons were part of the daily life of most people, just like PCs are becoming today. Among the major and minor characters, we had those who hated Persocons, those who treated them like people - depending on them, or loving them, those who saw them as entertaining machines, those who saw them as working tools, those who saw them as sex toys, etc, etc, etc.

From that, I started thinking: How do _I_ see PCs?

After thinking for a small while, I came to the conclusions that I see PCs as PLACES. When I use a computer, I don’t feel like I’m using an object, as much as I’m using some toy (program), inside a big room (computer) - Each of the computers I interact day to day have their own quirks and feel, but not like a particular object, or like a “person” (person, pet, animal, character, etc) - but like a living space, like a room, apartment, office, house, etc.

Thus I decided to change my naming convention for computers I own - Instead of people’s name, I decided to use names of fictional places from books/movies I read/saw.

If you took the time to read up to here, why don’t you contribute with your personal method for naming computers? And for those scowling me with “why would I name a computer?”, remember that even if you don’t think about giving computers a particular name, you still need to name them when you put them up on a network - and having a system to name them makes things easier if you want to assemble a network with more than one computer.

See you!

fancyhdr question

Monday, August 20th, 2007

I’m writing the support material for my thesis defense. They request my name and the page numbers in the top of all pages. In latex, you can do this easily with “fancyhdr”

\usepackage{fancyhdr}
\pagestyle{fancyplain}
\lhead{Claus Aranha - The University of Tokyo}
\chead{}
\rhead{\thepage}
\rfoot{}
\cfoot{}
\lfoot{}

In the preamble. The fancyplain style is supposed to apply the header and footer to the first page as well. But it seems that from the second page onwards, there is a line separating the header from the contents, but the first page does not have this line (but it DOES have the special heading that I set up).

I think it would be nice to have the line in the first page as well. Anyone knows how?

  • Categories

  • Archives

  • Meta


  • "(...) being rather cleverer than most men, my mistakes tend to be correspondingly huger."
    Alvus Dumbledore -- Harry Potter and the Half-Blood Prince