13th December 2001, 05:33 pm
I’ve been making a browser in Java as my final, big
assignment in dIntProg — the
introductory course in programming we’ve had this first semester. Today we
had to demonstrate that we could make simple changes in the source. It
wasn’t a real exam, but we had to pass to be allowed to go to the real
exam in January.
There was five questions — I made all of them :-) They were all very
easy, as the idea with the test is to check that people haven’t cheated
and “borrowed” someone else’s source for the browser. If you had written
the browser yourself, then they were easy, but if you didn’t know what was
going on, the questions would be tricky.
Although it isn’t useful as a general browser, someone might find it
interesting, so I’ll release it under the
GPL when I’ve packaged it.
8th December 2001, 07:02 pm

I installed Emacs 21 today — when
using Debian it’s particularly easy, you just do
apt-get install emacs21
:-) I was pleased to find out that
Emacs 21 can coexist with
Emacs 20. All my setting worked in
the new version, and I could even read my mail and news without any
problems.
The new Emacs looks different from
earlier version — quite different in my opinion. The new version has a
toolbar with little images you can click on, it has tooltips all over the
place, and it supports inline images and proportional-width fonts. The
menus have changed and they are now organized logically that before.
I don’t like the toolbar that much, and I’m tempted to turn off those
tooltips. I saw that there is an option, that makes them appear in the
minibuffer window instead. I have only used it for a day or so, but I
haven’t found any bugs or missing features. Instead I’ve found a lot of
new functionality and a lot of new exciting packages.
2nd December 2001, 04:41 pm
After waiting for more than two months, I’ve finally on the Internet again
— most of the time, that is… The connection is pretty fast when it
works, but I’ve had a lot of problems talking to the DHCP server. This has
been a general problem for everybody here at Skejbygaard Kollegiet, so it’s
not my computer that’s to blame.
But I’ve now downloaded about 2250 emails from my inbox — most of them
were from maillinglists. But there were some personal mails amoung them
— I’ll answer everything as quickly as possible. I’m sorry that I
disappeared from the face of the Internet without a warning. Two months is
a long time, and I have several projects that need some attention now (PHP
Weather for one…)
That’s it for now!
9th November 2001, 02:47 pm
Well, it seams that my last newspost was too uptimistic — as always…
I’m still offline. But the good news is that they’ve published
dates for when we’ll be
connected to the Internet. Skejbygaard Kollegiet will be connected on
November the 23rd — two weeks from now. So, until then — hang in there
:-)
29th October 2001, 02:36 pm
I’m still waiting for my Internet connection, which explains the lack of
updates lately — sorry about that. The last thing I’ve heard is, that we
should go online this or next week — it that holds true it will be great!
It’s been kind of strange to be without an Internet-connection for over a
month — I can’t wait to get back online. I have tons of email to read,
and lots of webpages to check out. A lot of my new friends use ICQ, so I
guess that I’ll also have to give it a try. I’ve always preffered email
over those instant-message protocols. Emails are nice because they allow
you to read something, think about it for a while, and then answer it a
couple of hours later.
I’ve borrowed a really good book about C++ from one of my neighbours. It’s
called Navigating C++ and Object Oriented Design, if I remember
correctly. So far I must say that I’m impressed by C++. The way objects
are handled is sound and straight-forward, it’s surprisingly easy to
overload operators like +
, -
, and so on. It’s also cool to play with
generic containers and template functions. But the best think I’ve learnt
is that you can avoid most of the pointer-madness from C by using
references instead of pointers. Take this procedure as an example:
void triple(int & i) {
i *= 3;
}
int n = 42;
triple(n);
cout << n << endl; // prints 126
It works just like a procedure in Pascal that takes a var
-parameter. In C
you would have to write it as
void triple(int *i) {
*i *= 3;
}
int n = 42;
triple(&n);
printf("%d\n", n);
You have to call the procedure with the address of your integer instead of
just passing it as a reference. I guess that I’ll buy the book by
Stroustrup, as I’ve heard that it should be the Bible for C++, when I’ve
read the other book.
That’s all for now :-)