It’s called PHPCurlMe, so check it out. (I know, that’s an incredibly compelling reason, but it’s late.) No any installation instructions for b2 yet because, as previously stated, it’s late and I’d like to tweak it some more. But I realized that if I continue obsessing about it being absolutely perfect right now I’m never going to get it out there. So think of this as a submission for peer review, a first draft. Right now the function is a little conservative for my tastes.
Category Archives: Software
Not Tonight
No curly quotes tonight, I’m tweaking to a bizarre degree, adjusting each for the relative strengths of each language’s regex engine. Of course once I run the benchmarks I could find that it doesn’t matter, but we’ll see. The more I learn about regular expressions the more I love Perl :).
Get the Book Man
After a long and extremely coincidental series of events, Alex, Jaime, and I decide to go to head to House of Pies (my third time in four days) for some dinner. When I’m almost there I get a call from Alex saying that the restaurant is closed until eight because of pesticides, and that they’re going to hang at the Border’s across the street. (I think it’s interesting that, knowing of why the restaurant was closed, we didn’t decide to go anywhere else.) Anyway, I’m thinking that would be a good way to kill the time, but I hate going to book stores because I either leave feeling unfulfilled or with a significantly lighter wallet. So I resolved not to buy anything and walked in.
I browsed around the store, picked up a few things, put them back. I wandered through the music section, seeing what’s new and noticing how outrageous the prices were. In fact, everything was just fine until I stumbled into the computer section. I was able to keep up my jaded no-spend attitude for a little while. “Look at these lame PHP books. Hah! The only ones worth having I already have. I can’t believe I was worried about coming in this place.” Then my eyes began to wander, and I spotted an Apache 2.0 book, just big enough to be juicy. I opened it up and immediately browsed to the mod_negotiation section, since that’s the module I know the most about and I use it as a benchmark for Apache books, which is the same thing I do with Caesar salad and restaurants. (House of Pies has no Caesar salad! Why do I go there so much?) The book had one of the most comprehensive overviews of the module that I’ve seen, and covered some of the differences between the 1.3 and 2.0 versions. However, it wasn’t good enough to overcome my resolution, so it went back to the shelf. However the thought dawned on me that I needed something to do for the next half hour, so I spotted an O’Reilly title I’ve had my eye on called Mastering Regular Expressions.
I’ll cut the suspense, and admit that I bought it. It’s an amazing book; the first two chapters I read really changed the way I think about things in general, a paradigm shift. I’m hoping to finish the whole thing this week and redo all my regex code with what I learn. The good news is that in rang up $5 cheaper at the register than the sticker said, so I’m not complaining.
The point is, however, I lost. The people at Border’s have my type so well figured out that they know I can’t leave without buying something. All those comfy chairs everywhere are really traps in disguise, hoping to lure you in to being caught up in a book. What I really want to do is go into a bookstore, and read an entire book, start to finish. I don’t care if it takes me a week, I want to go in every day, pick up the same book, and finish it. That would really stick it to the man, the book man. Will it ever happen? We’ll see. Has anyone had a similar experience?
Work Work
This looks like it’s going to be a very busy week, at least in terms of business work. Lot’s of things to catch up with, and lots of projects to finish up. I have a couple of scripts to add to the scripts section, including a nice form mailer, curly quotes for b2, a syntax highlighter, and some other odds and ends. I’ve always been a bit paranoid about releasing code publically, because I always wonder if there’s a way to do it better, and I can’t imagine anything quite as embarassing as releasing something with an obvious bug or something. Sometimes this is for the better I think, for example the mail script is about a third of the size that the first version was, and more functional, but it’s also over a year old! Anyway watch this channel for some fun stuff this month. Any requests?
MTCurly Update
I’ve updated the Curly Quotes for Movable Type script in response to two points made by John Gruber. It was interesting to be referred to by last name only, so I felt the need to respond as soon as I read the criticisms. The issues identified, namely the inability to quote single letters like “a” and a small whitespace bug which affected a valid but rarely seen method of writing tags, were trivial to fix. I am still a firm believer in a faster pure regular expression solution to this particular problem; with a good enough regular expression you can parse anything :). Thanks to John for pointing these out.