Archives for the ‘programming’ Category
By admin • Oct 16th, 2008 • Category: news, programming, tech
If you’re new here, you may want to subscribe to my RSS feed. Thanks for visiting!Came acroos this from a friend in Romania.
From what I can tell basekit is a web based development envirnoment, that lets you dev on the fly… lets hope I get to beta
BaseKit Preview Site
By admin • Sep 21st, 2008 • Category: php, programming, rants
Today I got into a wonderful debate about php errors.
I myself prefer to have the system handle the suppression of errors at system init (turn error displaying to off), and only use error suppression (@function) when needed.
Why? @function is slower than function. Why add a performance decrease when its not needed?
Anyways wondering what others think […]
By admin • Sep 21st, 2008 • Category: Projects, news, php, programming, rants
So after years of partial frameworks, and various concepts, I’ve finally started my framework.
First off there is NO windows support. I’m sure that’s not the best way to go, but I can’t think of one reason to host a php app on windows. As noted windows isn’t supported, but I’m working on a linux […]
By admin • Aug 17th, 2008 • Category: php, programming
just a quick tip for anyone using .inc files via apache.
add the following to your apache configuration to prevent viewing of .inc files via the web. This will not prevent php from including the files locally
<FilesMatch “\.inc$”>
Deny From All
</FilesMatch>
There ya go, now feel free to use .inc files as much as you’d like. Also an […]
By admin • Aug 15th, 2008 • Category: php, programming
I don’t remember if i’ve already posted this.
Sometimes you need to extract a domain name from a url. The following regex will do just that regardless of subdomains, etc.
/^[a-z0-9.-]*?[.]{0,1}([a-z0-9-]*?\.[a-z.]{2,7})$/i
By admin • Aug 6th, 2008 • Category: php, programming
I got a T_PAAMAYIM_NEKUDOTAYIM error in php a few days ago. I feel special as this appears to be considered an elusive error, but then again I’ve been feeling special since yellow buses.
heres what created my error :
if(empty(SOME_SYSTEM_DEFINED_CONST))
You can find out more here:
www.johnlamansky.com/blog/t_paamayim_nekudotayim/
By admin • Jun 8th, 2008 • Category: formulas, programming, virtual worlds
Last week I learned a new term: Rubber banding. Basically rubber banding is putting little fixes in a game / competition to the playing field evened out.
If your building a competition game / world, tweak it. ex: group a has 9000 members, group b has 1000 - it obvious group a will win, but […]