Trying not to burn my Cake

I am working on a revision of the plan i had with GManager that i will share shortly, once i get it peer reviewed, that will be leveraging many libraries that i had previously ignored for lack of experience i suppose. The new revision is looking to be quicker to develop, depending on the speed at which i read through my cook book!

the options will be either CodeIgniter or CakePHP

heh, ill be in touch.

Bob

Languages Span!

I have often been caught in the cross fire of the ongoing and awfully brutal and emotional language wars. I am a C programmer by choice and a PHP/Perl Developer by trade, so I get some of the most heated and misfortunate of the angry or emotionally charged responses from people who just do not know a god damned thing about what they are talking about. Scarier is when I hear absurdities from people who actually do know something about their topic. For some reason they want to stick their toes into my pool and do not like the temperature of the water so they go into a tirade about how I should change the color of the water with some dye and install a heater, oh and the chlorine content is too low or too high and algae will form; who knows, maybe you should add this algae snake as well to keep it from getting to the bottom! I apologize for the extended analogy here but it stands. It is important that Comp Sci. and Developers alike learn at least one thing about languages before they enter the market and end up coding themselves into a corner – There is no such thing as a language level, Languages Span!

Continue reading “Languages Span!”

Atheist Nation Chat System

Its actually an ingenious design that leverages AJAX/Javascript along side PHP. It is literally as complex as what used to be called a shout box, although the shoutboxes of my time were nearly always static and didn’t require you to even touch databases if you so chose. Strictly speaking, my previous post was covering some of the more apparent and obvious issues with the design of the chat system that AN was using; this will be an overview of the design and some direction that we are intending to proceed with the project. I will be including some of the code here for references, but rest assured the table, field and even the queries will be altered in order to protect the integrity of the system.

Continue reading “Atheist Nation Chat System”

Code Example #1 – Per File Execution Testing

In my projects i often come across or up with cute pieces of code that i think may be interesting to others. Instead of hoarding i will be posting them (possibly in sub pieces) so you can take part in the fun.

Todays Fragment: Per File Execution Testing

You can use this piece of code to test the file being executed and perform unit testing or output debug information as necessary. It can also, as is being used here, be used to redirect the user away from executing this page.

if ($_SERVER['SCRIPT_FILENAME'] == __FILE__)
{
    header('Location: http://gneupaste.gneu.org/');
    exit;
}

I dont think the exit is entirely necessary, but it may be dependent upon the server’s configuration.