BiggieStylin Evil Genius. Love it/Hate it.

24Dec/070

Merry Christmas

Hey all, just wanted to wish everyone a Merry Christmas and Happy Holidays!! I hope everyone stays safe and warm. Eat a bunch of food too! haha. Happy Holidays!!

Filed under: Uncategorized No Comments
20Dec/070

Just an update.

Hey all. I just thought I'd take a few minutes to write a post. I know, it's been a while again, but I've been pretty busy as of lately. I'm currently reading a new book, working on php-oop.net and working full time. This week I've also come down with a bad cold. Yesterday before getting off work I started to feel pretty crappy, so I went and layed down after work. Wound up falling asleep around 7 last night and didn't make it back out of bed until 8:30 this morning. So far it's just a head cold, but my whole body aches and I've got a slight fever. Nothing I can't deal with though.. start popping the cold pills and I'll be ok. Right now I just feel groggy because my whole head is clogged up.

On the programming side of things, I have been working on php-oop.net. Not much has been done recently, except I got my friend kuja to help me out with a new design. I don't have it active on the dev site yet, but I plan on doing so as soon as we iorn out a few things with the design. Just take note that the dev site might not always work as it's updated from SVN and could break. However, it's given me new motivation to actually want to work on the backend of the site now. Currently, there's only some basic user stuff implemented, which leaves a lot to be desired. At least it shows a base system that's somewhat functional. The SiTech backend that runs the site also needs work too, so I'm sort of maintaining both projects at once.

As far as progress with SimpleIRC, I haven't really touched it in a couple weeks. I've kept myself busy with other things. I really need to get back to SimpleIRC though as everyday miniE is showing more and more issues that I don't want to take the time to fix since I am writing a new bot. Things with my new server are going smoothly. I've since setup a lot of new stuff like SSL, virtual e-mail addresses, and a Call of Duty game server. I admit, I don't have a lot of time to play Call of Duty, but that's my own fault. It's at least nice to have a server up and running.

Well, that's all for now. I'll update later this week (or weekend) when I'm feeling better.

13Dec/070

URL Change

As you might have noticed just by coming here, my blog URL has changed. I've changed the URL for personal reasons, though my old url of http://erics.seksibody.com will always forward here. I just wanted to put up a quick post incase anyone was wondering!

Tagged as: No Comments
12Dec/070

PHP and ini_set() – A few things you should know

Today I was writing some code for a website I'm building and came across a problem when trying to set the include path. When I was using set_include_path() and ini_set() to set the include_path, both functions would return false. It took me some time and a bit of help from Davey to finally figure out what was going on.

In my Apache configuration I was using php_admin_value to set an include_path for one of my virtual hosts. If you're not familiar with php_admin_value, you can see the manual page here. By using php_admin_value in the httpd.conf (or a vhost), you're there by telling PHP to force that setting and disallow anything else to change it, meaning PHP scripts or even .htaccess files. That was fine, except what I didn't realize, is that for some reason PHP sees that setting and disallows it to be changed in any other virtual host or PHP script running under Apache. I can only speculate that this behavior is a bug and not intended. I would assume for that value to only affect the virtual host it was declared in, but instead, I spent 30 minutes debugging my code wondering why my calls to set_include_path() were returning false.

Let me just clarify for a second, the virtual host I had php_admin_value on was called, lets say foo.example.com and the code I was working on, that was returning false, was in the virtual host for bar.example.com. So, as soon as I realized that was the only place I was using php_admin_value at was foo.example.com, I changed it to php_value and restarted Apache with the new configuration. Instantly the code on bar.example.com began working as expected and setting my new include_path value. I'm not sure if this is default expected behavior, but it's not what I expected at all. I will be filing a bug report to verify this though.

Well, that was my fun for the evening. I just wanted everyone to be aware of the effects php_admin_value and php_admin_flag have on your Apache configuration. If anyone has any different results or findings, please let me know!

10Dec/070

Call of Duty mods

Lately in my spare time, I've been working on something a bit different. Instead of the normal PHP or Python adventures, I've been working with a game language for Call of Duty. It's structured somewhat like C++ but there's quite a few differences. I won't get into them now, but perhaps at a later date I'll post my findings on the language itself, somewhat of a tutorial of sorts. Anyway, I've been working with this language to create my own mod for the game.

Why do I want to do this, you may ask? It's for a few reasons, but mainly because I'm curious and picky. I can't find a mod out there that does everything I like. Out of the mods I can find, I can't find one that works without modification and is easy to add on to. I'm modeling my code closely after another mod that I've downloaded and like, but I'm rebuilding the code, hopefully fixing a few flaws and problems I've seen and ran into with the other mod. I'm also taking things from another mod I like that will add features that aren't in the mod I'm modeling mine after.

I haven't got much done so far, but I'm hoping sometime this week I'll have some actual code that can be tested on my server. I'm going to have quite a few features in it, like the ability to maintain a crouch only server (this means that there is no standing and running, you must remain crouched), user punishment methods, bash only (weapon melee only attack), weapon damage modifiers, weather effects, and lots of other things. I'll make another post explaining more, it's pretty interesting stuff though. Until next time...