Archive for the ‘Web Programming’ Category

Are we flash yet?

Friday, October 25th, 2013

A very intriguing html5 application has started to be included in the development branch from the Mozilla foundation project Firefox. Codenamed Shumway, the Mozilla Foundation developers are attempting to implement an html5 virtual machine environment for flash. This is a giant step in the right direction. Adobe was given the chance to do it right, yet we still seem to have major security flaws, and slowness issues. So in an attempt to step closer to html5 compliant everything, they created Shumway. This would make a native html version of both flash and acrobat reader.

Why the name Shumway, not 100% sure, but I am guessing that it has something to do with the file extension for flash sites (*.fla). I figure fla backwards is Alf, known as an alien from the TV show with the same name from somewhere back in my childhood. Alfs name in the show is Gordon Shumway… Maybe I’m wrong, but I wouldn’t put it past the developers coming up with some crazy naming convention like that.

How to convert from pixels to millimeters

Wednesday, July 2nd, 2008

I am working with PHP and FPDF to generate a PDF invoice. The designers have created a couple of very helpful documents, there are three total. The first is a mockup of the invoice. The second shows fonts, font sizes, and font colors. The last document show the positioning of all elements on the invoice. My only problem, is that the document was made with pixels at a resolution of 300 DPI rather than in millimeters. Anyone that is familiar with FPDF will know that PDF’s created with FPDF can not be generated with pixels in mind. PDF documents in FPDF can only use point (pt), millimeteres (mm), centimeters (cm), or inches (in). (more…)

Rounding to the nearest half dollor (or quarter dollar)

Wednesday, June 18th, 2008

One of my recent projects required that I round the price I was calculating to the nearest half dollar. This started out at a pain. Rounding to the floor, or to the ceiling, or normal rounding is quite easy. But I have never had to round to the nearest half dollar. (or quarter dollar) After a little bit of time thinking about it, I came up with a solution. (more…)

Microsoft AlphaImageLoader crashing IE 6

Tuesday, May 20th, 2008

I’ve been developing a website for a local group that supports the arts (www.scera.org). The client called my place of work and mentioned that some of their users were having difficulties with IE 6 locking up. After spending several hours on the issue, I discovered that Microsoft has a bug, that causes the filter to no work properly when the images are preloaded. So to fix this issue I had to do the following: (more…)


Switch to our mobile site