|
e: this was some very wrong information, ignore
KaeseEs fucked around with this message at 12:22 on Mar 5, 2008 |
# ¿ Mar 5, 2008 07:47 |
|
|
# ¿ May 4, 2024 20:30 |
|
No. Wolf3d used 'ray-casting' to figure out how to scale 2d sprites in a 2.5d world; this involved (very roughly) shooting one ray per horizontal pixel on the screen (on period hardware, this would be between 320 and 640 rays), seeing when it hit something, and drawing the appropriate sprite(s) at the correct scale for the depth at which the ray hit. This is nowhere near as computationally intense as real raytracing.
|
# ¿ Aug 31, 2008 06:15 |
|
POSIX defines both basic (used by grep) and extended (used by egrep) regular expressions (you can check regex(3) for the functions and regex(7) for more info, but the web is your best bet for these). As you would guess, POSIX regexes are portable to anything nixy. Perl-compatible regular expressions, on the other hand, are the de facto standard for modern languages, and are your best bet for cross-platform portability. A (huge) guide to regex compatability (in terms of whether things are implemented, differences are even harder to track 'well') between languages and frameworks can be found at http://www.regular-expressions.info/refflavors.html (scroll down a little for megatable).
|
# ¿ Oct 21, 2008 02:34 |
|
ryo posted:How is PHP's security when it comes to MySQL statements? Just don't rely on any sort of escaping mechanism; there's a lot of PHP tutorials out there (including those on php.net) that recommend the use of obsolete or insecure functions to prevent SQL injection. Here's a helpful list of bad ideas:
What you actually want to use to prevent SQL injection is a prepared (sometimes called 'parameterized') query, which you can do by using the MySqlI ('improved') library of PHP5. There's a nice overview here, and some simple examples here.
|
# ¿ Oct 29, 2008 07:15 |