Software Engineering in WordPress, PHP, and Backend Development

Author: Tom (Page 415 of 427)

Handling Currency in Rails

I’m working on a small application in which currency – specifically USD – will be stored in a MySQL database.

Because Rails supports a variety of number formats, it’s not completely obvious which is the best to use when storing monetary values.

Using a decimal with a certain level of precision seems to be the most scalable option.

Continue reading

Image Flickering with a jQuery Overlay

In a recent project, I was attempting to dynamically display an overlay on top of an image that contained the image’s alternative text. The overlay was to display whenever the mouse hovered over said image and hide once the mouse blurred on the image.

Unfortunately, my first attempt at this resulted in a lot of flickering.

Continue reading

« Older posts Newer posts »

© 2025 Tom McFarlin

Theme by Anders NorenUp ↑