Posts Tagged ‘Programming’

Using is_numeric() instead of is_int() for request vars in PHP

So, I finished pulling my hair out trying to debug why is_int wasn’t correctly checking some request vars i was passing via a form.  The php code was checking if( is_int( $_REQUEST['var'] ) ) { //do something } And always failed even if the var was an actual integer.  Unfortunately it seems that PHP interprets [...]

ActionScript Snake, Game and Code

So, a while back, I spent some time learning ActionScript.  I choose to do it by writing a game.  Since my wife and I were really into snake at the time (an addicting game found on our Nokia phone), I went with that.  Some points of interest are: Tied to database to keep track of [...]

How To Get CSS/Javascript Rounded Corners (with NO Images)

I just did a landslide of research looking for curved corners for use in my css/html pages. My desires were: No images (pure CSS) Simple, easy to configure (limited code, mostly include files) Use of javascript: ok Able to show images in the background (area outside of corners should show background, if it’s a color [...]