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...Tuesday, December 11, 2007
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...Sunday, December 2, 2007
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...Tuesday, October 2, 2007
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...
Monday, April 5, 2010
0 Comments