Oct
25
2009
Been awhile since I updated, spent more time coding than writing about it I guess. Project Chronos is finally up and running in private alpha. Things are still quite preliminary, it allows you to create and edit reminders, which are then sent to you at the proper time via an SMS. Here are some screenshots to get a feel for it:

Reminder Creation
The reminder creation page lets you create new reminders, clicking on the clock or calendar brings up time or date selection widgets.

Time Picker Widget

Calendar Widget
Once you create a reminder you are presented with a summary screen showing a list of your upcoming and recently sent reminders.

Reminders List
That’s really about all there is to it so far. I have a lot of ideas about other things I’d like to add, but I want to get a few people trying it out before I make any firm decisions. If you’d like to help me out by testing it, and are willing to deal with potentially some bugs and changes, please drop me a line. You can get ahold of me (@LogicWolfe) via Twitter or any other means you prefer.
no comments | posted in Project Chronos
Oct
7
2009
Been making steady progress on Project Chronos this week. There will be a new blog post here soon with some details on status. For tonight though I just want to mention a couple neat products I’ve started working with.

Hoptoad
The first is Hoptoad, it is a rails service for tracking application errors. It aggregates error, tracks what deploys they’ve happened with, and integrates nicely with Lighthouse and GitHub (in the pay versions). It also sends you a notification email the first (and only the first) time a new error occurs. The integration though isn’t at all required to appreciate the app. It makes it incredibly convenient to track what types of things are going wrong, and how frequently they are occurring. We have some in house tools designed to do this kind of thing at Nexopia, but nothing as polished. The best part about it is from the time I decided to install it to the time I had completed integration was under 2 minutes.

New Relic
The second cool new service I found is New Relic, recommended to me by @tvongaza after I mentioned my pleasure with Hoptoad. New Relic does performance monitoring for your app. Measures the time it takes to complete a page, the cpu load, database load, etc. It also has a very nice development mode that lets you drill down into the details of individual transactions on your development server. It has a free version that is available for unlimited hosts, but it doesn’t include the full feature set of several quite expensive pay versions. The feature set of the free edition is still excellent, it can be a bit annoying to see the constant reminders of features you can’t use though.
Between these two excellent services and my recent adoption of GitHub, I am feeling pretty happy about my developer tools now.
no comments | posted in Project Chronos, The Cloud
Sep
27
2009

Facebook Time Picker
I got my time picker widget built this weekend. I expected this to be a pretty straight forward port of
a jquery widget I had seen. It turned out not to be.
Last week I was putting in a clock widget and I complained about FBJS and its lack of library support. I avoided that grief this time by just writing this widget from scratch. FBJS isn’t too difficult to work with on a new project, though the lack of offsetLeft support was a bit of a headache. At first I planned to just use some divs with a nice facebook blue border around them. It turns out something in Facebook screws up pixel perfect padding. 1px borders often randomly become 0px on some elements, 2px become 1px about 10% of the time, etc. I talked to Andrew about this and he had run into it too. I tried a version using tables as well and had the same problems. Never did figure out what was going on.
I ended up breaking out Pixelmator and making some curved border background images. Eliminating all borders, margins, padding, and using them seemed to do the trick. I also discovered how few skills I have with graphic creation, I really need to get better at this (making the border/fill graphics was about a 2 hour endeavour).
All troubles aside though I’m quite pleased with how the time picker worked out. It is a 2 click interface, once to bring it up, then you hover over your numbers (the rows below move with you), and then click a second time when you are done selecting.
After I got the time picker working I spent some time doing server migrations. I now have everything moved over to rackspace cloud, including this blog. I also started setup on my old media center PC; going to sell it once it’s running smooth again.
Update: Source code available from http://github.com/LogicWolfe/FBJS-Time-Picker.
3 comments | posted in Project Chronos
Sep
20
2009
Another full day at ENTS developing Project Chronos, today I tackled the reminder creation UI. The facebooker gem has a handy helper class for generating forms in an FBML kind of way, this simplified the getting started a great deal. However once you move past the basic html input types it is no longer useful. My attempt to add a simple javascript calendar is where my troubles began.
The most important design aspect of my reminder app is the simplicity and ease of creating reminders. That in mind the default option of 3 select boxes to choose a date is not a viable option. Javascript calendars are normally a dime a dozen on the web and I figured it’d be no problem to add one in. That is when FBJS punched me in the face.
While I absolutely admire FBJS from the standpoint of a technical accomplishment on Facebook’s part, it is a pain in the ass if you want to reuse any libraries (and who doesn’t?). Facebooker has ported a lot of prototype to FBJS, which means a lot of normal rails helpers work. For the life of me though I couldn’t find any drop in calendars that were compatible or easily ported. What I did find on a Facebook developer forum was a kind of hacky solution that I could start working on (oh so greatful to whoever s10sys is at this point).
About this time Rob Davy invaded ENTS and I spent quite a bit of time over the remainder of the night chatting with him.
What work I did get done was my first attempt at hacking into Rails at a frameworky level. It is entirely possible that such was not the appropriate spot for my solution, but it was effective. I added a custom helper in the Facebooker form builder class to generate calendar fields with the appropriate bits of fbjs attached, and by 10pm when I left I actually have a functioning calendar control.
Next on my list is a time picker control. Since there are less graphical bits required and I’ve discovered how poorly most existing libraries play with fbjs I think I will just roll my own based on another solution I’ve seen and been intrigued by. It uses a simple 2 click interface to select any time.
If anyone knows of any wonderful fbjs libraries that my googling failed to find, please drop me a comment. Assuming they don’t exist, this seems like a huge gap waiting to be filled.
no comments | posted in ENTS, Project Chronos
Sep
19
2009
I spent all day at ENTS getting started on my new hobby project to build a facebook app. I work in Ruby at Nexopia so it seemed an obvious language choice. I have only dabbled in rails (we wrote our own web framework at nex), but I know enough to get started, so the big thing to figure out was Facebook development.
I started with some extensive googling, with limited success. It seems there historically were two main Facebook gems for rails, RFacebook, and Facebooker. Facebooker as best I could determine seems to have taken over entirely, but its tutorial information seems largely broken and out of date (where it even exists). The API docs seem okay so far, but I really wanted some higher level getting started information. PeepCode to the rescue. They have a pdf and screencast available for $9 that provided an excellent starting point.
With that information I quickly got my app setup on both Facebook, and a basic set of scaffolding in rails, then reached my next hurdle. Since I needed Facebook to talk to my app to test anything, I needed a public IP for my development code. There are several options to achieve this, and I tried most of them before finally settling. Developing directly off of my VPS was an option, particularly by using sshfs to mount the project files. The problem there is largely performance. Textmate in particular makes the assumption that you have faster file system access than is provided by sshfs. Opening up a local port could have worked as well, but I deal with enough different firewalls moving around that it just isn’t really an option for me. That left ssh tunnelling, which I finally settled on. It’s a bit awkward but it allows instant testing of changes, through Facebook, as you make them. I setup a local mysql server (since Facebook uses 64-bit UIDs Rails requires a special plugin for this, scaring me away from multiple database types), and forwarded port 3000 (the default rails test server port) to my remote server, configuring my Facebook app to look on the non-standard port. Tested a basic rails scaffolding through Facebook and rejoiced happily upon seeing all the default forms working in Facebook blue.
I had hoped to get a bit further in actual development today, but given the awkwardness of getting started with Facebook and Rails I’m happy to be as far along as I am. It was fun hanging out at the ENTS space, met a couple people as they popped in throughout the day. Looking forward to going back tomorrow to start work on implementing a UI.
no comments | posted in ENTS, Project Chronos
Sep
18
2009
I went to Pub 1905 tonight after work to return GoW2 to Colin, and to have a couple beers. Ran into David there as well. Amidst yet another debate on religion, I decided to be antisocial and broke out my laptop. I have been wanting to make the switch from slicehost to rackspace cloud for awhile now and the dawn of a new project seems a reasonable time to make the switch. I setup a new server on rackspace and named it honeybrown in honor of my surroundings.
A couple of beers and a burger later I found myself at ENTS configuring the new server. I’ve been doing some reading lately and for my purposes Phusion Passenger and Ruby Enterprise Edition seem an excellent way to reduce my memory footprint (always the sticking point for me with a 256MB VPS). I managed to get both configured with very few obstacles, many points to the Phusion guys for providing amazing installers. I updated my rails versions, setup a git repository through Project Locker, and generated a basic rails app. Project Chronos now officially exists, albeit as just the default rails stub.
Tomorrow I hope to dig into actually getting some development done.
1 comment | posted in ENTS, Project Chronos
Sep
14
2009
So with my lady friend Stephanie out of town for two months doing an artists residency in Banff, I have been left with enough time on my hands to dabble with a side project. I’ve been wanting to try to make a Facebook app for awhile now due to my coworker Andrew’s great success with them. I got ahold of a key to ENTS today, and finally have a free night, so I popped into the space to try and get a start on something.
One thing that is difficult for me developing for Facebook is that I don’t really like Facebook. The simplest way to develop a site is to develop it for yourself, and there just aren’t many Facebook apps out there I would ever use. I considered doing another “Which is cuter?” style site, would be simple to make and they always seem to be popular, but I was having a hard time getting excited about it. After some random web surfing I was pondering the things I needed to remember to do this week and then the light bulb appeared.
I realized it would sure be nice if I could get a reminder message sent to me when I needed it. There are a few web services out there that do this, but I haven’t been able to find a good Facebook app that does. With Facebook’s status as a daily app for most people, and its built-in integration with email, etc. it seems like an excellent medium for the service. The idea lacks an obvious viral growth model, but it has the benefit that it’s something I would actually use. Even if it never becomes popular, it will make my life a small amount better, and it will be an excellent way to get my feet wet with Facebook development. For the time being I dub this Project Chronos, let it begin!
no comments | posted in ENTS, Project Chronos