WordPress Collapsible More Link Plugin
Tuesday, May 31st, 2005This plugin has moved: WordPress Plugin: Inline (Collapsible) More Link
This plugin has moved: WordPress Plugin: Inline (Collapsible) More Link
Yesterday I was talking about how my attempts at creating a event manager had failed.
Since the differences and problems associated with W3C DOM2 Event spec and the Microsoft events model, I decided to create an event manager based on the the old, traditional model of obj.event = func. And it works pretty good! I’m really quite proud of it
Take a look at it HERE.
Basically it just makes adding and removing listeners easy. If there is more then one listener on an event, it creates a closure so they can still all work together. All the listeners are added to a ‘registry’ so removing them is really easy, it just have to regenerate the closure without a particular listener.
[code lang="javascript"]Events.add(buttonElm, ‘click’, sayHello);
Events.add(buttonElm, ‘click’, sayGoodbye);
Events.remove(buttonElm, ‘click’, sayHello);[/code]
Just some more testing to do ![]()
I just spent the last little bit creating a Javascript EventManager to take care of event listeners cross browser. Using the traditional method of attaching listeners to events is just “okay”. There are a couple of big problems, the biggest being you cannot easily add more then one listener to a single event.
(more…)
I went out today and got a new mouse and keyboard since the other ones (which were like 5 years old) were really starting to annoy me. The keyboard was all dirty and the springs in the keys were starting to act up on me, and the mouse refused to move to the left no matter how many cleanings I gave it.
So I went out and bought a cheap-but-cool keyboard (link) and a Logitech MX1000 wireless mouse (link). I was not sure about the mouse, it got mixed reviews and I know people who have had their share of problems with Logitech wireless mouses, but I’d thought I’d give it a try anyway. I’ve got 30 days to turn around and take it back, might as well give it a chance
Wireless is a big plus, makes me feel free. And the extra buttons are pretty cool.
I’m still getting used to using a different keyboard and mouse, since I was using the same set for years and years. We’ll see how it goes!
The Systm team finally released their first episode! Head over to Systm.org and download it if you have not already. I’m quite impressed. They put it together very professionally; I’m looking forward to more.
After watching that episode, I had a strange urge to go out and mod stuff ![]()
I downloaded jEdit today, and after some configuration and some plugin installs — it’s now my favourite editor for coding sessions (sessions apposed to quickie stuff, where I still use EditPlus). Though I think it’s mainly used as a Java editor (as you could probably gather from the name), it supports countless other languages, including PHP.
I have two favourite features. One being the code folding, where you can collapse chunks of code. The other being the Whitespace plugin that, amongst other things, “lines up” indentation levels. For example, between the { } of a while loop, you can see a grey line that lets you clearly distinguish where the loop starts and finishes, and lets you see at a glance what code belongs to the loop.
Anyway, I thought I’d share my new favorite editor ![]()
I went out tonight with Kelli, Ryan, Mike and Rex to see the new Star Wars. We left at about 7:30PM, and I just got back now at 1:20AM.
The movie wasn’t bad at all, I’d give it a 7/10. There were some really boring parts where I was shifting in my seat, but for the most part, I think it was quite good. Though I’m not anywhere near a hard-core Star Wars fan
The part I hated the most is waiting in a line to even get to our seats! We finally got there at abou 8:30PM, and we had to wait until like 9:45PM in the “pre-line” or whatever you want to call it. Very frustrating!
We had to ride in a Uhaul van because no one had a car to fit 5 people in comfortably. It seemed like a good idea at the time
So Ryan and Kelli were in the cab, while me, Mike and Rex were stuck sitting in the cargo-area, sloshing around like water in a barrel. We made some stops before making it to the theatre, so I spent like 1.5 hours in the back on the “there” trip, and another 30 mins on the “back” trip. Sitting in the back is almost nauseating, and Ryan made it worse by going reeeeeaaaallly fast and then stopping really fast while cornering. So I’m typing this and my brain is still whirling around, quite annoying!
So anyway, that was my Thursday night. I’ve got no school from this night, all the way until next Wednesday! There is technically school tomorrow, but no way am I going when everyone else is going to be off doing something! And there is technically school on Tuesday, but my Law class has a trip to some seminar which allows us to skip the day.
Oooo, ahhhhh…
The vB devs just made an announcement outlining what they’ve been doing for the past few months. Nice stuff!
I was beginning to think IPB might be getting ahead with their new features (2.1), but with the next vB release, they’re back up scratching at each others throats again.
I spent the weekend looking into version control systems (specifically CVS and Subversion). After fooling around with CVS for a while, I went to SVN to check it out.
Overall, I like SVN better. I find it a little easier to work with. I’m not sure if I like how each commit creates a new project-wide revision; with CVS, each file had it’s own revision number.
Anyway, just wanted to give a shout out to the devs that aren’t using a version control system, to, er… start using one lol. It’s really quite helpful. It’ll let you look at the differences between versions of files, keep a history of all files etc. Even more useful if you’re in a multi-developer project (in which case, I don’t know how you were managing without one).
My new host let me set up a SVN rep, and I use a SSH tunnel with TortoiseSVN to manage my working directory on localhost. Very cool stuff ![]()
Slashdot
Slashdot readers may recall that last month Canadian policy makers rejected the DMCA for Canada. Not so fast apparently — the U.S. Trade Representative has released the annual Section 301 report which each year tells the rest of the world that they need stronger intellectual property protection. This year Canada is a particular target — the U.S. plans to conduct a special review of Canadian policies and explicitly rejects Canada’s rejection of the DMCA. A good summary on what this means from Canadian law professor Michael Geist.
Hm.