CodebaseHQ Tickets+ for FireFox

What’s this? Another release already? Well yes. I’ve been working on this project, and we use Codebase for project management. And the whole time, I kept thinking, “Why can’t I sort these tickets?!”. Apparently, I’m not the only one, because I overheard some other people say the same thing so I decided to make a Greasemonkey script.

While there is a mechanism to sort, it requires modifying your search query and a page refresh. My script not only does all that live, but it also turns the search box into a live-search, which makes finding a particular ticket fast. To accompany all this, I also de-paginate the results so all the tickets are in one page. This could potentially cause problems, because some projects might have thousands of tickets; but that’s a problem for another day.

While I have been on a jQuery spree recently, I made sure not to use it for this Greasemonkey script. Even though there is a lot of DOM manipulation, I rely on Xpath and JavaScript 1.6 Arrays. The script is simple enough where it’s easy enough to convert to jQuery if needed.

If you use FireFox, Greasemonkey, and CodebaseHQ, Give CodebaseHQ Tickets+ a shot.

July 23rd, 2010 | Nerd, Portfolio | No comments

Next adventure in HTML Canvas

This one comes with a live demo!

demo01

One of the biggest problems with my  last Canvas experiment is that if you put text labels over points of interest, they quickly clutter up and become difficult to read. In this demo, I take a list of labels and the coordinates they belong, then I treat each label as a like-charged ion and they automatically repel each other and find their own non-overlapping positions. I also put a spring force between each label (visualized by the red line) to its original position so they don’t stray too far. There are also some visual embellishments specific for the application.

In my next iteration, I’m going to try and properly attach events to each particle. I have rudimentary drag and drop now, but it’s not robust enough for other ideas I want to add. I also want to be able to add uncharged particles and have wind and gravity. So I can make the whole thing a proper particle playground.

Note: since the code was ripped from a Greasemonkey script, it’s FireFox only.

Update 18 July, 2010: I’ve made it a little more interactive, re-ported a more up to date version of the code, and made it somewhat compatible with Safari and Chrome.

November 12th, 2009 | Mental Note: Add Category, Nerd, Portfolio | No comments