Jul 31 2006

Looking at the onion

Categories: Programming
Tags: ,

As you may or may not know, I’m one of the two main authors for the EWL (Enlightened Widget Library) the actual main author being RbdPngn I just like to pretend.

We’ve been plugging away on EWL for a few years now, well a few for me, more then a few for Nathan, and things have been coming together quite well over the last six months to a year.

We’ve spent a good chunk of time optimizing the system for both speed and size (which we, at least, don’t think was premature). EWL has had some amazing performance boosts and memory savings due to those changes. This is the kind of thing we’ll be doing again. We’ll get some new features in then take some time and stabilize and tune.

In terms of features there have been a few things that have gone in lately. A big one being the new EWL engines. These aren’t totally finished yet (the DND code still does bad things) but basically the backend of EWL is abstracted so we can stick another rendering library or another theme library below it. Probably wouldn’t be easy but it should be do-able.

In terms of widgets, the Ewl_Filedialog and Ewl_Fileselector got a lot of work put into them in a rewrite a few months ago. They’ve been cleaned up and the display abstracted out of the file selector. So, you can now write custom views for the file selector and specify which one to use. There is currently a list view, a OSX style view and an icon view. That’s probably all we’ll have for now, but if you’ve got a cool view you’ve created send it our way.

I think the latest widget to get added was the Ewl_List widget. This is just a simple list widget (and in the simplest case it’s just an Ewl_Box) that you can either use the container functions to pack into or use it as an MVC list. You define the model and the view and tell the list about them and it’ll use your callbacks for everything. Want to keep the list sorted? Well, just sort your data and tell the list it’s data is dirty. It’ll redraw.

There are a few pieces of Ewl_List to be finished. I’ve added single select but need to go and add multi-select into the mix. No API breaking should occur as it’s just an extension. Then I need to figure out the best way to deal with highlighting the selected widgets. Probably through a highlight widget that just inherits from floater and sits on top of what’s selected. (I don’t want to use Ewl_Row widgets as I like to use the container functions if possible.)

The other main piece of the puzzle we’ve been burning time on is to redesign the Drag’N'Drop system used by EWL. There are some issues with the current one (and it hardcodes ecore_x stuff in there) that we want to get worked out. RbdPngn and I have spent some time designing the new system, and added in the extensible callbacks to EWL for its use. If you want some more info on this design, check out the bug we’ve opened for it. Most of our design is going into there.

Oh, and as I just mentioned (and previously forgot) we’ve added the ability to add new callbacks to EWL. If you’re working on something (like DND for example) that won’t be used by a lot of widgets (as compared to other callbacks) you can create your own callback and use that instead of needing an entry in the callback array. The callback system has been setup to handle this and should hopefully work well. The reason for this is that each callback in the array takes more memory from every widget. Something like DND isn’t common enough to warrent that kind of memory usage.

pfritz has been giving the Ewl_Grid widget some sweet lovin’ lately which is working out really well. The widget seems to be coming together. He’s added a ‘puzzle’ test to the misc section of the ewl_test app for people to play with. I warn you, it’s actually really hard to solve. Fun to play tho.

Ewl_Tree2 has stalled again. This widget has been bugging us for quite a while now. We know what we want to do, we think we know how to do it. Neither of us has the time to sit down and do it. I think it’s going to take a good chunk of continuous time to get it up and running. When you’ve only got an hour here and an hour there it’s hard to make that kind of commitment. We’ll see. It’s still on the backburner, just have to see if we can get it off the ground.

There are of course many things I’m currently skipping (Ewl_Paned work needed, Ewl_Text work needed etc) but that’s kind of an overview of things at the moment. For some more detailed information, check out the bug tracker and feel free to pitch in if you’d like.


Jul 31 2006

The ringing of bells

Categories: Life, Weddings

Spent the weekend in Elora at a wedding for some friends. Stacy was actually the bestman for the wedding.

We went over on Friday afternoon, wandered around town a bit and then helped to decorate the hall (which was used for both the wedding and the reception.) Was fun to get everything setup and arranged and it looked quite nice once we were all done (at least I think so). Hit the pub after that, which is always good times.

Saturday was the actual wedding, but it didn’t start until 1500. Stacy had to go and get her hair done starting at 1030 so I had the whole day to wander around town, take some pictures and read the paper. I spent a bit of time talking to the owner of Canadian Casual Kilts about everything from kilts to concerts. He’s a really nice guy, and has some kilt options that seem fairly reasonably priced (at least, to someone that hasn’t done any shopping around, heh). I haven’t decided if I want to get a kilt yet or not. I guess spending the day in one on the 26th will tell me if I’m confortable enought or not.

Anyway, after wandering around I spent some time making sure everything was ready in the hall had a pint, went back to the hall and turned the lights on, ended up getting another pint after meeting some friends and was feeling good (as I hadn’t eaten since 0900) for the wedding start at 1500. Wedding was good and seemed to run smoothly, the wedding party took off and we hit the pub again (although this time I was smart and only got a coke. Try as I might they just wouldn’t bring me any bread. I waited 40 minutes before having to leave and nada.)

We got the hall all setup, figured out a few details that jumped out at us and I think the evening went smashingly.

Sunday was a day of feeling hungover (poor, poor Stacy, heh) and eating little sandwitches.

I got a lot of pictures (220 I think was the final count) I need to get my photo gallery up so I can show people. I’ve put some up temporarily if Austin and Lori wanted any of them and so I could print them at Blacks but the rest of you will have to wait.


Jul 27 2006

Clerks II

Categories: Movies

Saw Clerks II last Monday with Stacy. What can I say, it was an awsome movie. Stacy thought it started a bit slow but I was lovin’ it from the beginning.

It was just the right amount of moving up to the line, scuffing it a bit, poking a toe over and then moving back to keep people laughing the whole way through.

Really, who doesn’t want to see a donkey show? The whole only one trilogy, only one return bit was really well done.

(I’d make a terrible movie reviewer, heh.)


Jul 26 2006

Let the people speak

Categories: Everburning

With that, my first major update of eb should be in place. I’m now able to mark posts as accepting comments, this one being the first I’ve turned it on for.

I’ll see how the comment train goes, the stuff in there is really new, so there might be issues with it. Let me know if anything seems to go screwy when you post.

This update also gives me my live preview and inplace editing of quotes on the quote page. I’m really liking how the site is shaping up this time around. If only I could get the damn spell checker to not segv whenever I try to check spellings of words.

Or, maybe it’s just trying to tell me I spell really, really bad.


Jul 25 2006

and the band plays on…

Categories: Everburning

Well, I’ve been working on the site a bit over the last few weeks. Almost ready to get some stuff put up here. Not much that will be visible to visitors of the site, I guess the main thing that you’d care about is I’m adding comments.

I’ll have to see how it goes with spam and all that stuff. I may end up trying to hook it into Akismet to do the spam handling for me. It will depend if I end up getting a shit-tonne of spam or not.

But, on the backend a lot of stuff has been cleaned up, I’ve got the quotes section nice and slick and AJAXified. The news has an auto-preview feature that works pretty well.

I’ve spent a lot of time pulling out anything that’s eb specific and putting it into a settings module. Well, into the database, out to a module, partially in the database partially in a module, and finally, just in a module. The plan is that I’ll be able to use the exact same source and setup a site for Stacy. Still have to finish the design on that one tho.

Anyway, in theory once I get that stuff done I’ll tackle the photo gallery. But then, I’ve been planning on tackling the photo gallery for about a year now. We’ll see where that goes.


Next Page »