Posted Comment

Commented on FallingTearss' Status Update

Posted Comment
Status Update

We should play Chess.com.

Source Code

Published source code DarkBASIC: Bouncing Balls (Demonstration of DarkBASIC)

Bouncing Balls program taken from the DarkBASIC Pro Game Programming book. ISBN: 1598632876

Source Code

Published source code DarkBASIC: Pong

Pong recreated using DarkBASIC. This source code is taken from the DarkBASIC Pro Game Programming book. This demo shows how easy it is to create a function game in DarkBASIC.

Pastebin

Pasted a code snippet SessionManager

<?php class SessionManager { private $id; function __construct() { // Start the Session $this->StartSession(); ...

Status Update

Status Update

I wrote a really clean PHP Session class :D

Blog Post

Wrote a blog post CSS: A Matter of Absolutely Positioning

Do you have trouble with CSS positioning? Allow this article to educate you on some of the most important positioning rules of CSS.

Blog Post

Wrote a blog post Development Environment: Lesson 1

Imagine that you're building a website. You use subversion for version control. You're migrating from PHP 4 to PHP 5.3. You use two virtual machines to act as web hosts for development. One VM runs the same stack as the live web server. The other VM runs Ubuntu 12.04 LTS, Apache 2.2, and PHP 5.3.10. The database server runs PostgreSQL. Subversion has two branches: main branch (php 4) and a php 5 branch. Your workstation runs Windows 7. You've run into the following situation.

Posted Comment

Commented on Development Environment: Lesson 1

VBAssassin On the webserver, we use /html folder for the http protocol. This is where all the JavaScript, AJAX, and CSS files reside naturally. For the secure portions of the website (HTTP with SSL, or HTTPS), all the pertinent files are stored in the /ssl folder. All the files in the SSL folder use /html/css /html/js and /html/ajax_scripts to function properly.

At this point, you need to keep in mind that the "same-origin policy" comes into play. This is an important security measure that should be observed strictly. This means that you can't use GET or POST to send/receive information between HTTP and HTTPS.

What I noticed is that the Apache configuration was attempting to use Redirect/Rewrite rules to exchange information between HTTP and HTTPS. (In fact, in Firebug I could see the "same-origin policy" errors being thrown.

So, instead of using Redirect/Rewrite rules or using Aliases for the /html/css, /html/js, and /html/ajax_scripts folders ... it was easier to create symlinks for these folders in the /ssl folder itself.

It's quite a simple concept mate. If you're not requesting files from the same origin, it simply won't work. HTTP and HTTPS are different points of origin.

Source Code

Published source code DarkBASIC: Random Number Guessing Game

Using the computer's timer as a seed for the Randomizer (not completely random, but random enough), this game enables users to play a guessing game. This particular version has gamers guessing between 1 and 1 million.

Status Update

Status Update

It's too cold!!!!!!!!!!!

Pastebin

Pasted a code snippet MemcacheManager

<?php class MemcacheManager { private $key; private $Memcache; function __construct($host = 'localhost', $port = 11211, $timeout = 1) { // Set the Memcache Object $this->Memcache = new Memcache; ...

Source Code

Published source code DarkBASIC - Tic Tac Toe

The basic Tic Tac Toe game created using DarkBASIC.

Interesting Link

Found this interesting Multibyte Character Exploits in PHP & MySQL

Information about using multibyte characters to exploit a MySQL database.

Status Update

Status Update

I'm writing a PHP forum for fun. I have five main classes that act as the foundation for my applications architecture. They are as follows: System, DatabaseManager, ErrorManager, MemcacheManager, and SessionManager. In the future, I plan to use a config.inc file with the DatabaseManager so that the forum can be "installed" in a similar way that phpMyAdmin is installed (if you ever install it manually). [I'm thinking about adding a PaginationManager as well. That, or handle pagination within my DatabaseManager itself.]

The System class is the superclass that encapsulates everything. The DatabaseManager object, ErrorManager object, MemcacheManager object, and SessionManager object are all instantiated within the System class. The System class will be the first "include" for all PHP files within the directory structure of the forum application.

This gives you a small glimpse of what I'm doing in my free time. I don't expect it to get very large. I'm going to branch the forum in the future and customize it specifically for people who like text based RPGs in a similar style to D&D.

Posted Comment

Commented on Development Environment: Lesson 1

The development is done using Windows machines. Production is on Linux. On the development machines, we have Linux virtual machines configured with the same stack as the actual live servers so that development can be done in an environment that closely resembles the live environment. Alternatively, we could use Linux machines to do the development, but not everyone is Linux savvy.

Posted Comment

Commented on MemcacheManager

Posted Comment
Pastebin Code

I meant to remove the private $key class variable. It's not used. Also, I find this class more useful than anything provided by the PECL extensions.

Posted Comment

Commented on FallingTearss' Status Update

Posted Comment
Status Update

The point of writing this class is mainly educational.

Source Code

Published source code Change Calculator

I created this simple Visual Basic program to assist my mom in teaching her students how to count change and select the correct number of each denomination. This is using the American monetary system.

Posted Comment

Commented on Development Environment: Lesson 1

That's an extremely good idea.

Status Update

Status Update

I've been playing a lot of Chess lately. Currently, I'm looking for one minute blitz games.

Source Code

Published source code PHP - Page Class

This is a class that I've been working on to define a simple HTML5 template.

Interesting Link

Found this interesting My Short Stories

A collection of my short stories. I recently started this blog (week of January 13th, 2013).

Source Code

Published source code Automatically Send E-mails From CSV

The CSV used had two fields. The first field contained the name of the individual being e-mailed. The second field contained the e-mail address of stated individual.

Posted Comment

Commented on SessionManager

Posted Comment
Pastebin Code

@Izzmo, I'm sure there's a way to use your own sessionID's. Personally, I let PHP handle assigning sessionIDs.

Interesting Link

Found this interesting A Forum for Hackers

Learn how to protect your website, software, and hardware.

Source Code

Published source code jQuery - Lightbox

This is an example of how to create your own jQuery Plugin. This plugin is a simple jQuery Lightbox.

Forum Topic

Started a discussion Hashing Passwords

I have a quick question in relation to encrypting passwords. Should the PHP5 function crypt() be used? Or, should a Database related function be used (IE: PostgreSQL crypto())? Should the old school sha1(), md5(), ect functions be used? The advantages of using the crypt() function (and the crypto()) function is that you don't have to store a blowfish or salt within a configuration file. The salt...

Blog Post

Wrote a blog post Drupal 7 - Creating A Complex Content Type

I need to create a complex content type in Drupal, but there's very little on the internet about how to go about doing this. What do I do?

Interesting Link

Found this interesting Advanced Hacking Exercises

Learn how to effectively protect your website, software, and hardware.

Interesting Link

Found this interesting Hack This Site

Learn how to hacking and exploiting works so that you can better defend your websites, software, and hardware.

Posted Comment

Commented on MemcacheManager

Posted Comment
Pastebin Code

Also, I'm thinking about removing the GenerateKey function. This can be done with PHP before any of the Class functions are used.

Please login to post comments or register for free

My Blurb

I'm a 30 year old IT Professional currently working as an Interactive Website Developer in Lexington, KY. I graduated with two major concentrations from Somerset Community College in 2009 with my AAS: IT.

View My Skills

Like My Profile?

If you think others would enjoy reading my profile, please share it :)