JavaScript Canvas charting/timeline example

Tags:

I was on holiday last week and haven’t been really able to think of anything really really interesting to write, so here’s something I made a while back: A Canvas-element powered chart/graph/timeline thing of my programming language skills, which I made as an excercise for making chart-type stuff with canvas. I think the canvas element is starting to get quite …

Simple Photoshop-style layers using JavaScript

Tags:

Today I wrote a small JavaScript class to display images layered on top of each other, in a similar manner as layers are shown in editors like Photoshop. I wanted to show my Dwarf Fortress to someone, but I didn’t just want to stack screenshots below each other like you’d usually do. Since dwarf forts can span multiple depth levels, …

Dependency Injection, or how to make simple concepts sound difficult

Tags:

You may have heard of Dependency Injection. It’s essentially a way to remove implementation dependencies from classes, or “the process of supplying an external dependency to a software component. It is a specific form of inversion of control where the concern being inverted is the process of obtaining the needed dependency.” as Wikipedia puts it. Sounds complex? Yep. Is it …

Good habits I learnt from Django

Tags:

Django has various good features I’ve previously mentioned. While they can’t be taken out and applied to other languages like PHP right away, it also has some nice ways of doing things that can be taken and used elsewhere. Let’s look at some good habits I took from Django and started using in PHP, that could benefit you too.

Page2Rss and Yahoo Pipes

Tags:

There are many RSS feeds that I’ve subscribed to, and some websites that I check often that don’t have feeds, for example to read comics. With all the stuff in the feeds, there’s also some things that I don’t want to see, such as newsposts in some comic feeds that I only read for the comic. It would be nice …

Google Spreadsheets, ASP.NET and Excel

Tags:

I’ve lately been using Google Spreadsheets to display project costs to my clients etc., and for that it’s quite nice. Quite similar to Excel, too, so it was easy to get going. What bothers me to no end, though, is that editing spreadsheets does not work in Opera at all. Why is it? It works in Internet Explorer, which means …

User experience comparison: Online stores vs. Real stores

Tags:

This one has been hanging on my drafts list for a while. Kind of lost track of thought during writing this and I never got around to writing about all the points I intended to… but there’s still some interesting thoughts here so I decided to post it anyway :) While shopping for groceries the other day, I came up …

Zend_Form’s from Doctrine models: Part 2

Tags:

Previously I wrote about my class for generating Zend_Form forms from Doctrine models. This time, let’s look at some more usage examples and how it works internally, to make it easier for you to utilize it. Edit 10.10.2008: Updated the post to reflect some minor changes in the CU_ModelForm class