LinuxSoftware

Coding and tramping in Aotearoa / New Zealand

Car insurance

Jan 18

New cat door

, david, Friday, 8:10 pm

catdoor


Jan 14

Spreading the Slicehost Word

, , david, Monday, 9:26 pm

Caught up with Tim at Wok’n'Noodle. Had the always delicious Thai Style Vegetarian Noodles. (With tofu, cabbage, carrot, broccoli, cauliflower, celery, bok choi and spring onion).

SliceHost Tim has been looking at setting up a website. I’ve sold him on how cool SliceHost is. Yes it is more expensive than just a virtual domain, but it is great to have complete control over the whole operating system, and good learning too.

I’ve done my bit for the Fedora project too. Tim is also going to run Fedora 8 as well, that way we are both talking the same language (rpm, yum, service, /etc/sysconfig).

I demo’ed the SliceManager and answered how to do a few things with yum.
Q: How do you update the distro with yum?
A
: “yum update”

Q: How do you search for a package with yum?
A: “yum search packagename”

Q: How do you see all the packages which are installed?
A: “rpm -qa”

Q: How do you see all the files which were installed with a package?
A: “rpm -qil packagename”

I think he’ll find it very easy.

I gave him a couple of hints about how I secure my systems too, but I don’t think I’ll blog those ;-) .


Jan 13

Sunday

, , , , , , david, Sunday, 10:23 pm

Dear readers

It’s a shock, but it seems I have readers. “Give us more posts about Oliver, like the one from last Saturday” they demand. Well OK I’ll do another post on my cat sometime this week. I owe my niece some photos of him as well. “and fix the tabs for IE7 too” they cry. OK I’ll have a look at that too.

Strange noises

I didn’t sleep that well last night, but tonight it is cooler and am hoping to get more restful zzzs. It wasn’t just a problem with the heat, but having the windows open makes every little sound seem like it is coming from within the flat. I was sure I heard someone moving around about 12, and then at 3am there was someone softly calling “Amy, Amy” and the sound of someone stumbling around. But in both cases, there was no one in my flat or in my yard, so I went back to sleep. So, if you’re breaking into a place, just call out “Amy, Amy, I’ve lost my keys” and everyone will figure there’s nothing sinister about your activities.

Happy Birthday Roger

I’m just back from Roger’s Birthday BBQ. Ate a very nice meal cooked on Rogers huge brand new BBQ and watched his kittens catch an devour a couple of baby birds. Mostly it was just Ginger, the other kitten Patch wasn’t quite so blood thirsty. “Dinner and a show”. Caught up with the others from New Years and swapped blister stories.

Yes OK, more about Oliver soon.

oliver_sunday


Jan 12

Reviving old code

, , , david, Saturday, 11:52 pm

Persona was my first X11 app. It’s not much, just a basic address book, but it has been interesting to get it up and running again. I’m creating new project pages for all my various little projects and it seemed appropriate to start with the oldest.

Persona uses the XForms library written by Mark Overmars and T.C. Zhao. (Not to be confused with the XML format). Back around 95 I discovered this library and found it so much easier than trying to write raw Xlib apps. With oval buttons! I wrote a C++ wrapper around it which I thought was pretty nice. And so when I wrote Persona in 99 I used it, even though QT and GTK+ must have been around by then.  XForms is pretty obsolete now, but fortunately it can still be downloaded from its Savannah project page. And it still builds and links against X11 without any problems.

Getting Persona working with modern standardised C++ was the main bit of work. Back when I wrote Persona the C++ standard was still being discussed, things weren’t stable, so there are some work arounds. For example I wanted to use auto_ptr, but I found GCC had removed it as “because the details of the interface are still being discussed by the C++ standardization committee”. I copied in my own copy as djm_memory, but that clashes with the now standardised memory header, so djm_memory had to go.

Some other antiquitisms:

  • I had using std; instead of using namespace std;
  • I was using strstream instead of stringstream – Quietened that down with-Wno-deprecated.

I switched off the GCC warning which drives Nigel nuts, “has virtual functions but non-virtual destructor”, with -Wno-non-virtual-dtor. For me this may really point to a memory leak, but I’m going to ignore that for now.

My XForms wrapper code uses member functions and templates a lot. So I got a lot of error messages like: ISO C++ forbids taking the address of an unqualified or parenthesized non-static member function to form a pointer to member function. Say ‘&MainForm::prev’ It’s nice when the compiler tells you how to fix your bug. I wonder why they tightened the member function rules up though?

Finally, it lives!

I also rediscovered Persona has a text command mode implemented with Lex and Yacc. I’d forgotten that. Persona will run in text mode if there is no X11 display, or if “-text” is passed on the command line. It’s not very good though, because I never implemented the search command for this mode.

Fonts aren’t the same so I tweaked some of the placements, not much though. This makes me realize XForms didn’t have very good font handling.

Next task: to rewrite Persona with a GTK or wxWidgets interface. Hmmm, maybe not. I’ll just leave Persona as it is, as a piece of LinuxSoftware history.

persona09


Jan 10

Hello Planet

david, Thursday, 12:46 pm

This post is really just testing if my blog has been added to the linux.conf.au Planet. I sent my feed in, but haven’t heard back.  Wondering if it requires some password?

Creating a feed just for the conference in WordPress turns out to be really easy.  I just created a new LCA2008 category and posts belonging to that category will appear on the http://linuxsoftware.co.nz/blog/category/lca2008/feed/atom feed.

I’d like to know how to create an icon for Planet though?


« Previous PageNext Page »