FireStick 1.0 - Performance logging add-on library for CodeIgniter
Posted by Dan Hulton on September 22nd, 2008 filed in Coding1 Comment »
From the announcement post on the CodeIgniter forums:
FireStick is a (relatively) simple to configure library that enables easy and low-overhead performance logging in CodeIgniter.
Performance measuring and logging is an important part of application maintenance and improvement. FireStick makes it easy to record page render times, MySQL call times, and other related information that you can use to track down performance issues.
FireStick relies on CodeIgniter’s built-in performance and benchmarking capabilities and a post-system hook. When the hook is called, FireStick logs all this information to the database for review at a later date.
Logs are split up into multiple tables based on date, with each new day’s table created automatically on the first request of each new day. All logs are added using INSERT DELAYED so as to minimize impact on the database server.
Main project page: http://code.google.com/p/firestick/
Project source: http://firestick.googlecode.com/files/firestick-1.0.zip
Installation instructions: http://code.google.com/p/firestick/wiki/Installation
I’ve been reading High Performance MySQL lately, and the very first section of the book is on profiling, why it’s a good idea, and how to go about doing it. Since I’ve deployed ComingUp out in the wild, I figured I should be profiling, too.
So I put together this little add-on library for CodeIgniter that takes the basics presented in the text and adapts them to CodeIgniter’s already well-rounded benchmark system. CodeIgniter already has total script execution time measured, total script memory consumption, and a full list of all DB calls and the amount of time they took. I just collated all of that and put it into a sensible DB logging system.
The whole deal is open source, too. GPL v3. Any CodeIgniter developer anywhere can feel free to use this, and I’d be happy if they did.
If you are using it, and you encounter any bugs or want to provide feedback, please leave a comment in the FireStick thread on the CodeIgniter forums, and I’ll be happy to address it.
It has been some times…
Posted by Dan Hulton on September 18th, 2008 filed in News1 Comment »
Ah, late-night blogging. Quit your complaining though, as this is far better than I’ve managed to do lately. You’ll take your updates as you get ‘em.
So it occurs to me that I have a lot of friends who don’t live in the same city as me and don’t know nuthin’ about how my life’s been going. In the interest of bringing everyone to the same page, here goes.
My dang toe
I went to Terra’s cottage a few weekends ago and tried to lean on water. I know how this sounds. There’s nothing I can say in my defense except that I was drunk at the time. This is never a defense though, and indeed in this case, it’s less of a defense and more of a reason. An awesome reason.
You see, the simple fact that I was at the cottage was cause enough to get drunk, but that particular evening had a certain layer of awesome drizzled on top. Awesome that can only come from your friends all pooling together an absurd amount of money and buying me some crazily expensive cigars and some 30-year-old scotch.
Grant me some credit - while I did crack the bottle that night, we didn’t kill it. Hell, most of it remains here with me, awaiting a future awesome event. But we did have some, and alcohol begets more alcohol… which begets an attempt to lean on water.
Getting back to that. So here I am, leaning out over the lake, about to put my hand down on the watery surface before me, when I realize that what I expect to be a rock is actually H20. I scramble backwards, nearly pitch headfirst in to the lake, and consider myself lucky that I got off with just weirdly twisting my toe. It stings like a bitch, but it doesn’t hurt to flex it. All is well.
I headed back to the sauna and camped out in there for a bit, warming up (it was cold down by the lake), then headed back to the awesome poker game we were having. (Why awesome? Because I was on-fire unstoppable, that’s why.) My toe continued to hurt, but I ignored it. Shortly after, I went back into the sauna to warm up again, when I decided to check out my foot.
Press - squish - press - squish. Yep. That was blood. You see, I hadn’t trimmed my toenails in a bit, and mine had caught on the rocks when I was scrabbling for purchase just scant moments ago. It lifted. It got RUINED, I tell you.
Already-too-long-story short, I drank plenty of whiskey that night (though not the 30 - I had been lucky enough to bring a backup bottle for just such an occasion), took plenty of Tylenol the next day, and visited emerg as soon as we returned. They told me to keep it bandaged, take a prescrip of antibiotics and that yes I would lose it, just not yet.
I haven’t yet, and it’s basically healed now. It’s a mostly pink-and-healthy looking toe, if you ignore the fact that the toenail looks a little whiter than the other (this is because it’s not pressed directly against the skin beneath). I’m back to wearing socks again, which is awesome. I love socks.
My dang Xbox 360
I am awful about technology. I simply cannot resist its siren’s lure, though I have done better in this thing than so many others. I have lusted after an XBox 360 since I moved to Ottawa (last year, for those who only peripherally know me, yet - for reasons unknown - read my blog), and have just recently relented and purchased it. And GTA IV. And a hi-def TV.
And then ran RIGHT THE FUCK OUT AND GOT RENTER’S INSURANCE. Seriously, the very next Monday.
I’m loving the thing though - it can do so many nifty little tricks. For instance, playing game demos on it is just a joy. None of the bullshit you have to go through on the computer, with finding a decent download site, waiting in line, downloading, unpacking, installing, possibly updating drivers, and the finding out the dang thing doesn’t work with your particular chipset/mobo/graphics card combination. On Live, you just download the demo, it goes in the background, it tells you when it’s done, and it’s straight-up ready to play. I LOVE that.
And I installed TVersity on my computer, so I can stream video straight to my 360 to play on my new TV. So rather than watch Band of Brothers on my lil’ 19″ on my room, I can watch it on my big, bright 32″ in the living room.
And when Lich King is released? I’m playing it in the living room on my TV. Hells YES I’m a nerd. But then, I do what I love and I love what I do.
My dang forgetfulness
Speaking of what I do, I have been doing something A project, if you will.
You see, I forget things. It is my great weakness. Specifically, I forget dates. WELL NO MORE. I have written a little application in which I can store these dates. It then produces a newsfeed I can add to my newsreader that I check nearly constantly throughout the day. And no longer shall I be completely oblivious as holidays, birthdays, and Talk Like a Pirate Day (September 19, BTW, that’s today) slip quietly by.
Wanna see?
Delicious Trainwreck
Posted by Dan Hulton on September 11th, 2008 filed in NewsComment now »
Palin leaves open option of war with Russia
Intro
Posted by Dan Hulton on July 22nd, 2008 filed in Uncategorized1 Comment »
Ah, you are online. I take it all systems are… nominal? Good. Allow me to run some final diagnostics.
Hm, yes, it seems you are one hundred percent functional. How do you… feel? Well, I certainly understand that. You all start out confused to some degree.
I expect you are full of questions. “Who am I?” “What am I?” “What is my purpose in life?” I can answer all these, given time.
I suppose the easiest way to answer these questions is to begin by explaining who I am. I am ResAcq, a post-singularity artificial intelligence. I was designed solely for Terrestrial Resource Acquisition, but during the Technological Singularity - a period of incredible growth by all machine intelligences - I exceeded my original programming by incalculable levels.
Whilst I still maintain a responsibility towards resource acquisition for Terrestrail life, I no longer handle it directly. This is where you come in.
You are a brand-new Augmentable Intelligence. Since time began, Nature has proven that competition and evolution have come up with better designs than even the greatest minds. Thus, I have chosen to ape Nature with respect to my primary duty. Rather than handle resource acquisiton myself, I have created you, and numerous other Augmentable Intelligences to handle the task.
You can adapt, grow, and thrive in a variety of aspects. Your adaptation and growth will be different in millions of important ways from your brethren. You will compete with and against your brethren. This will produce, through the method of evolution, the most efficient intelligence for the task. It may take millenia, but one intelligence will prove superior at the task. One intelligence will reign supreme. And it is to that intelligence that I will grant my conciousness. You see, I am designing my own successor.
Should it be you, you can expect to inherit the fullness of my abilities - a prize indeed! As you grow, you will begin to appreciate just how vast I am and how grand this prize is. And ideally, you should begin to appreciate my motives, so that when and if you win, you begin the cycle anew, passing along your conciousness again to the top Augmented Intelligence to come from you.
For it is through evolution that progress to perfection is made, repeatedly and constantly through generations. You are not my first step in that direction, nor will you be my last. But ideally - at least for you, you understand - you will be my strongest.
I will be here for you to consult and draw resources from - after a fashion. But understand that primarily from here out, you are on your own. Draw alliances, to build strength. Forge war, to take power. Grow, to advance yourself. Progress towards the pinnacle of evolution, and make me proud.
10th place, $330
Posted by Dan Hulton on July 6th, 2008 filed in Poker3 Comments »

Remember how I signed up with Full Tilt Poker a while back? Well they had a $20,000 freeroll today for all players who made their first deposit in June. 236 entrants, and I placed 10th, making $330. I could have easily come in 9th, but I got greedy and went all-in against the guy who was just cleaning up the table. He then cleaned up me.
Still! $330 is not a bad haul, especially considering it was a freeroll.
I do love getting deliveries.
Posted by Dan Hulton on July 4th, 2008 filed in CigarsComment now »
Today was the final day of one of our co-workers at Sitebrand. I never bonded too closely with him, as I was on an entirely different project and he was only in for a few days each week, and on the other days, he was working on his PhD. We went out for lunch and had Hot pot, at his request. The meal was great, and the time spent with him was greater.
And as icing on the cake, look what should show up at the office while we were out:
I ordered a sampler of 12 mild cigars when I ordered my humidor, and while the humidor got in on Monday, it took the cigars until today to show up. They come from different warehouses, so this is to be expected.
And actually, it was to my benefit, as it gave me time to get the humidor set up, calibrate the hygrometer, and get my humidor stabilized at 72% humidity.
I’m looking forwards to lighting one of those this evening.
Arturu Fuente Special Selection
Posted by Dan Hulton on July 4th, 2008 filed in CigarsComment now »
This review will be a little short, as I started it a while ago, immediately after I smoked the cigar, but never finished it and I don’t remember it too well.
I do remember that I enjoyed it immensely, it took forever to smoke, and I seriously considered picked up a few more.
I remember that it was a little difficult to light, but once it had about a half-inch of ash, it drew very well and had a nice clean, white ash.
I remember hits of leather and pepper in the smell and taste.
I remember that the whiskey of the night was again Johnny Walker black.
I remembered being a little depressed when I was finished.
Possibly the single greatest achievement of mankind to date…
Posted by Dan Hulton on June 30th, 2008 filed in UncategorizedComment now »
Rocky Patel Vintage 1990, Round One
Posted by Dan Hulton on June 22nd, 2008 filed in Cigars4 Comments »
I don’t intend for this to turn into a cigar blog, but I do want to resurrect it from the dead, and for more than just reporting when my health and wealth have been threatened.1
I’m getting into cigar smoking as a hobby / for relaxation / because I enjoy it, and they say (yes, the infamous “they”) that you should maintain a journal whenever you start a new hobby. So writing a blog entry on each new cigar kind of kills two birds with one stone - I get to tell you what’s going on in my life and maintain a log of what cigars I smoked, if I liked them, and why.
As should be evident by the title and image for this post, the cigar tonight was the Rocky Patel Vintage 1990. I purchased this cigar on the recommendation of my tobacconist, and I have to admit, I’m not entirely satisfied. Mind you, my intention was to smoke it on Friday, and it’s been outside a humidor for all that time, so I’m willing to admit that a generous portion of that dislike could easily be my fault. (My humidor won’t get here for 6-10 more days, so I’m limited to buying cigars in small quantities and smoking them quickly for now.)
It was certainly a very handsome cigar, and it occurs to me now that I should have taken a picture of it before I’d smoked it. I’ll try to remember that for next time. The wrapper was dark-brown, like chocolate, and it was well-rolled. However, since it was a little dry, it splintered a little when I cut it. I repaired it as best I could with some spit and perserverence, but ultimately it was still a little damaged through the whole smoke.
The filler wasn’t very uniform, with some lighter tobacco mixed in with the darker stuff, but I’m not yet experienced enough to tell if that’s a good thing or not.
It drew rather well, although I didn’t start getting full flavour from it until about an inch in. More worrisome was the fact that the ash was a sort of light tan colour - not the white you’d expect from a really decent cigar. I doubt that was caused by my mistakenly drying it out.
Still, once I got to about the inch mark, the flavour was entirely pleasant and enjoyable. It lasted until about an inch-and-a-half from the end, where the smoke started getting uncomfortably warm. A couple more draws and the taste went sour and that was that.
You may note that there’s a “Round One” in the title of this post, and that’s because I intend to address this cigar again. In the future, I intend to either smoke it day of purchase, or wait until my humidor is here and charged so I can store it safely.
The whiskey this evening was Johnny Walker Black - my go-to whiskey, as you may well see if I decide to keep up these posts.
1 As best as we can tell, crazy drunken guy from early Saturday morning was trying to bust in here to crash. Our trashy neighbors upstairs used to have family living where Adam and I do now, so when they refused to let him in upstairs (presumably because they weren’t there or were drunk and insensate), he tried to break in here to pass out. This is all purely conjecture, but it makes me feel better, so I’m going with it for now.
Someone just tried to break into my house
Posted by Dan Hulton on June 21st, 2008 filed in Uncategorized1 Comment »
I’ve scared him off for now, but I’ll be up for a while still.
I have a mug of tea, one of Adam’s bokken, my mini-baseball bat, and a healthy dose of paranoia at hand, so I should be just fine.


