Finally finished my first habari plugin, bumping. Michael (twofish) helped me polish it. It was a slog at the start as I ended up following a habari request line by line through the core code. I read a lot of core code before I worked out what was going on. The whole hook/sink thing, which I hadn't really encountered too much before in my programming, took a little while to understand, although it is a fairly simple concept. The documentation didn't really make it seem simple.
Anyway, it certainly was very worthwhile going through the code, so I'm not complaining, and I've found developing with habari much easier with my second plugin.
I have been configuring vim to have the same functionality that a typical IDE has...so I never have to use anything except vim again. Also to be able to demonstrate the IDE-like functionality to anyone who rolls their eyes when I say I only want to use vim (oh if only habari had a vim plugin for writing posts!).
These are the ways I have updated vim:
- snipmate
- nerdtree
- exuberant ctags
- clever word completion
- phpdocumentor
- phpcodesniffer (sort of)
- pretty good colour layout for terminal
- php manuals
- CVS/svn commands
- even xdebug although it's whacky and i don't think i'd actually use it
I keep telling Michael what's wrong with, or missing in Habari and he responds with "well fix it". So here's a list of things I want to do:
The persistence of memory plugin allows you to stay logged in for one month. Why only one month? Want to improve it to make the time period a configuration option. Also, needs to be updated for 0.7.Non-admin users can't edit their own profile! WTF? This ticket.- An ACL bug allowing a non-admin user to restore another user's post. This ticket.
- The connections theme. It's broken for 0.7. Needs fixing. But what needs fixing RTTF man? The following:
- Using excepts, for some reason the theme thinks an anchor tag is the end of paragraph so it ends the excerpt immediately after the tag. Actually when I first looked at this I stupidly couldn't find where the problem was in the theme, so I thought it was a habari core bug and even created a ticket for it.
[Update: Um, no, it's habari core as far as I'm concerned. But is it actually a bug? Get on IRC and ask.] The theme's footer doesn't look right.I think this is how it was designed to look.
- Using excepts, for some reason the theme thinks an anchor tag is the end of paragraph so it ends the excerpt immediately after the tag. Actually when I first looked at this I stupidly couldn't find where the problem was in the theme, so I thought it was a habari core bug and even created a ticket for it.
- It would be nice to port the kubrick theme from wordpress, not sure I really want to do this though.
- A disqus plugin?
- Look at the unit testing setup for habari and write unit tests.
Bumping. If a post gets a comment, it is bumped to become the first post.Done. But in terms of the Habari community, what do I do with it now?Its permanent page is here and it's available from habari-extras.Write an "edit themes" plugin.Themes are configurable now, just have to find out what exactly is required by the "client".Notify people when a new comment or post is made - um, isn't that why you have an rss feed?. Yes, but the client wants an email notification system. Can't see this as being a popular plugin for habari, but worth doing anyway.Done. This is the Notify All plugin.- Preview of comments.
Login as "normal" user leaves you on the front page (or whatever page you're on) instead of redirecting you to admin.Have to checkout admindetour.- Plugin to keep the main page static, but to also randomly choose a main page to show from a given list. [Update: Checkout staticfront and perhaps branch it.]
Install sharedraft from extras.But I'd rather just set up a group to allow appropriate read access - which I have now done.- Now I want a plugin that tells me who has "subscribed" to my blog (accessing the feed)...but I don't want to use feedburner (as I need an account). But I can't see how this would be possible for people anonymously reading the feeds...only for people with accounts to my blog. Think more.
The Beach is one of those books you read when you are travelling to South East Asia. I think I read it on my last trip, or maybe when I went to Malaysia. Anyway, it's a pretty good read on holiday, got lots of violence, but somewhat unrealistic.
Anyway, so this trip I've taken the obligatory reading of The Beach one step further, today I watched the movie version! Lying on my double bed, in my air conditioned room, with my tv (obviously) and its selection of cable stations, and my fridge, and my pineapple, and my mangos, and my french bread, and the salad baugette Chang Peng made for me for lunch, waiting for my clothes to be washed (again by Chang Peng). Now this is travelling!
My long hot nights in Vientiene are spent mostly on the toilet. The main side effect of the antibiotics I'm on, which are slowly clearing up my infected chest, is diarohea. Severe diarohea. Anyway, it was the night before last that was the worst, up every 20 minutes, but last night I was woken by something else entirely.
At about 4am (I checked my phone) the dogs started barking and there were people in the courtyard, and a motorbike pulled up. Evidently the guy directly downstairs from me had brought home a lady of the night. The walls are thin, and the floor is even thinner, so I had a good reception of them having sex. Fuck, I thought it was going to go on all night, so I quickly popped one of my strong pain killers (with muscle relaxant, it's all good), but the noises only lasted 90 seconds. Then there was some negotiating with money and she stole away back into the night.
Of course, all their activity got the chicken (ok, ok, rooster) all excited, so it started crowing and wouldn't shut the fuck up. But by then my pill had kicked in, and I drifted into sleep dreaming of leaning out of my window with a rifle and shooting the chicken (ok, rooster).