Tag Archive | "Programming"

How To Set A Maximum Width or Maximum Height For An Image With CSS

Monday, April 5, 2010

0 Comments

I was trying to figure out how to set the maximum width and maximum height for my images, and I wanted a way that didn’t require PHP programming. I finally found a way and stumbled upon how CSS could make use of expressions as well. It’s a method where you can have a conditional statement [...]

Continue reading...

Use Javascript to Display Random Image and Link

Tuesday, December 11, 2007

0 Comments

I was editing a PHP script today when I realised that one of the files did not allow PHP code. Weird. But the annoying thing was that I NEEDED it to run PHP code — or rather, I needed it to randomly display an image with a link. So I had to find other means, [...]

Continue reading...

Simple Machine Forums (SMF) Photo Gallery Installation and Setup

Sunday, December 2, 2007

7 Comments

Been playing around with Simple Machine Forums (SMF) — it’s a cool forum software that’s robust and well-supported by an active online community. For those who are unaware of this software, SMF is a free open-source forum application that can be installed on web servers. In contrast to paid software such as vBulletin and Invision [...]

Continue reading...

Formatting a Decimal Number to 2 Decimal Places in Java or JSP

Tuesday, October 2, 2007

2 Comments

I was looking around for the class to format a number to 2 decimal places while I was coding Java, or specifically JSP, and I found it. First, you need to import the DecimalFormat class, so have this line at the top of your Java file: import java.text.DecimalFormat; Or if you’re running JSP: <%@page import="java.text.DecimalFormat" [...]

Continue reading...