News:

The anti-spam plugins have stopped being effective. Registration is back to requiring approval. After registering, you must ALSO email me with your username, so that I can manually approve your account.

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Databits

#691
Depends on the stuff... if it's icky stuff, probably not.
#692
General Chat / Remember me, oldie peeps?
September 16, 2005, 04:32:17 AM
Next time you die look me up, maybe make ya a vampire? I could always use another alliance within my army of undead!
#693
General Chat / Warning, Email Scam
September 16, 2005, 04:30:22 AM
Perhaps I don't seem like a viable target.
#694
General Chat / Warning, Email Scam
September 16, 2005, 02:33:10 AM
Sorry... this is the first time I have had any sort of email in this sort. Being that it just happened today, I assumed that it was rather recent. Forgive me for never running into this situation before. :(
#695
General Chat / Warning, Email Scam
September 15, 2005, 09:49:23 PM
I went ahead and forwarded it to the FBI before I deleted it. I doubt they can do anything, but it's always nice to report em. ;)
#696
General Chat / Warning, Email Scam
September 15, 2005, 05:19:12 PM
Be warned, there is a new scam email going around that seems very authentic but isn't. A major red flag is the name Barrister Robert Peters and generally is something detailing you granting consent to allow him to present you as the next of kin to some random deceased person and their family.

This has scam written all over it, and I went straight to google for investigation. This name is linked to a ton of sites that point to similar email scams with the same name. The scams all are part of a Nigerian Money Laundering Scheme. So be warned if you recieve a similar email.

This is the email I recieved:
QuoteFrom The Desk of Bar. Robert Peters,
Great Roberts chambers Nigeria.
Plot 116/118 Dioba Port Harcourt
Rivers State.
Phone: 234-84-922-165

Dear Pearce,

This letter may come to you as a surprise, as we have not met before, but is with trust and believe that I write to you. I am Barrister Robert Peters, a Solicitor at Law. I am the personal attorney to Egr. William Pearce, a citizen of your country, who used to work with Chevron oil Company in Nigeria. On the 21st of April 2003, my client, his wife and their only daughter were involved in a car accident along sagamu express road Ondo State on way to Lagos From Port Harcourt. All occupants of the vehicle unfortunately lost their lives.

Since then I have made several inquiries to locate any of my clients extended relatives, this has also proved unsuccessful. After these several attempts, I decided to track his last name over the Internet, to locate any member of his family hence I contacted you. I have contacted you to assist in recovering the fund valued at US$9.5Million left behind by my client before it gets confiscated or declared unserviceable by the international bank where this money were deposited.

The said bank has issued me a notice to provide the Next of Kin or have the account confiscated within the next twenty-one official working days. Since I have been unsuccessful in locating the relatives for over 2 years now, I seek your consent to present you as the Next of Kin to the deceased since you bear the same last name with him, so that the proceeds of this account could be paid to you.

Therefore, on receipt of your positive response, we shall then discuss the modalities for the transfer of this fund into your account. I have all necessary information and legal document needed to back you up for the claim. All I require from you is your cooperation to enable us see this transaction through. I guarantee you that this will be executed under legitimate arrangement that will protect you from any breach of the law.

I would be grateful if this mail will be favoured with an early reply.

Best regards,

Bar.Robert Peters.
#697
Misc. Content / BWUAH!
September 15, 2005, 02:30:41 PM
But we eat sheep.... you know they've gotta be pissed about that. If sheep come to invade I'll just wear a wool sweater and laugh at them while eating a lambchop.
#698
General Chat / Toys!
September 15, 2005, 01:09:39 PM
I'm all in favor of reinstituting an arena fight system for the criminals. Let them fight to the death with the melee weapons of their choice for our entertainment!

Ok, so I'm a little twisted... we could always just place em in rockets and launch them into the sun with some trash.
#699
Misc. Content / BWUAH!
September 15, 2005, 01:07:24 PM
Yet goats continue to let us use them... so rather stupid aliens at that.

Just because it's alien doesn't mean it's more intelligent. ;)
#700
Misc. Content / BWUAH!
September 15, 2005, 11:45:19 AM
bah, I can see through their disguise... I'm allergic to real cats, so simply put, I'm like a secret weapon. If I don't sneeze, it's not a cat. If it's not a cat but looks like a cat, execute invasion protection I.E. send the alien packing with an implanted anti-matter bomb back home.
#701
Web Design / php?
September 15, 2005, 05:59:49 AM
install an apache server to your computer and install php. Then you simply run the server and write the scripts on your computer.
#702
Knowhow Trading Post / Writing a PHP Templating System
September 14, 2005, 11:50:35 PM
I understand that... but there is absolutely no learning involved in using prewritten code to do the work for me.

See... once I finish my website, I'd like to be able to use it as resume material. When an employer says, "so what template system, forum, file manager, user authentication system did you use?" and I say it's all custom written, I'm sure it would be much more impressive than if I simply said, "oh no, I just used smarty". :)
#703
Knowhow Trading Post / Writing a PHP Templating System
September 14, 2005, 09:11:40 PM
I've decided to continue on writing the templating system for my site, as I progress I'll go ahead and post results here to help other people here who may wany to implement a similar system into their own site.

Currently hte system I'm working on can only do single level block element substitutions. If you are at all aware of PhpBB's template system, this is something I'm trying to implement and improve upon. Their system is capable of encapsulating arrays of data much further than single depth. I haven't quite figured out how I'm going to pull off something similar without incorperation a recursive algorithm, but I'm hoping I can.

Now if you're wondering what I mean by all this... take a forum for an example. Most forums are database driven, and if they use a template system, the template itself only defines what a single forum should look like. Thus, a single template would be used for each and every thread in a forum, or in the listing of the forums on the front page.

This is indeed an interesting concept. Since the forum is database driven, the database can control how many categories are on the front page, how many forums are in each category, etc... but it simply uses either a built in format or a template for each (which repeats with different data).

Now the way a forum template is usually set up is in data blocks. For instance, take the following code as an example:

Example Template Code:
Quote[START CAT]

 
 
[CAT.NAME]
[START CAT.FORUM]
   
     
     
   
[CAT.FORUM.NAME]
[CAT.FORUM.DESC]

    [END CAT.FORUM]
   

[END CAT]
Ok, so what's this mean?? I'll explain that in just a moment. But first let me set up what the database would contain. For this example I'll use the index of the xepher.net forums. So the data in the database would be something like this:

Quotecategories
the format here is " ID - Name "
  0 - Community
  1 - Xepher.net
  2 - Content

forums
the format here is " ID - Name - category ID "
  0 - General Chat - 0
  1 - Knowledge Trading Post - 0
  2 - Announcements - 1
  3 - Applications - 1
  4 - Technical Support - 1
  5 - Hosting Q&A - 1
  6 - Art - 2
  7 - Writing - 2
  8 - Web Design - 2
  9 - Misc. Content - 2
Now this should be somewhat understandable. It's basically stating that there are 3 categories: Community, Xepher.net, and Content. Then there are 10 total forums. The General Chat and Knowledge Trading Post forums are part of the Community category. The Announcements, Applications, Technical Support, and Hosting Q&A forums are all part of the Xepher.net category. So on and so forth.

So now that we have a (basic) database structure, how does this apply to the template? Well that's where the template system comes into play with the block level elements. See, in your script you would create a template object, then assign it a template file to use (assuming the one above), create the template structure using the database data, and parse the output to the web browser. Seem complex yet?

So let's say I make a template object and assign it the template file example above. Then as the script loops through the database it would create a structure using data from it. After loading our database data the template would have a structure something like this:

Quote[template_file_name] => Array (
            [CAT] => Array (
                    [NAME] => Community
                    [FORUM] => Array (
                            [NAME] => General Chat
                            [DESC] => Anything not directly related to the web-hosting service or otherwise covered under the other forums.
                    )
                    [FORUM] => Array (
                            [NAME] => Knowhow Trading Post
                            [DESC] => We all have different talents and skills. Here's where you can help each other out. Need to find some obscure mediaeval literature links? Maybe someone else here majored in it. Wonder what it means when your car goes "woga woga woga" down hills? Someone might know a bit about cars. Perhaps you can code, but need some graphics for your site. Well maybe there's an artist that needs some coding done. Help each other out!
                    )
            )
            [CAT] => Array (
                    [NAME] => Xepher.net
                    [FORUM] => Array (
                            [NAME] => Announcements
                            [DESC] => Important things I might need to tell you.
                    )
                    [FORUM] => Array (
                            [NAME] => Applications
                            [DESC] => Want a site here? Then this is the place to start. Please make sure to read the "Instructions" post before starting.
                    )
                    [FORUM] => Array (
                            [NAME] => Technical Support
                            [DESC] => It's broke? Can't figure out where that file should be? Ask here (but search first!) Support for hosting-related issues only... ask about your iPod problems in the Knowhow Trading Post.
                    )
                    [FORUM] => Array (
                            [NAME] => Hosting Q&A
                            [DESC] => Primarily for discussions about Xepher.net policies, rules, and services.
                    )
            )
            [CAT] => Array (
                    [NAME] => Content
                    [FORUM] => Array (
                            [NAME] => Art
                            [DESC] => General discussion for art and other "visual" media. Mainly for content hosted here, but open for anyone who wants to talk about the visual arts.
                    )
                    [FORUM] => Array (
                            [NAME] => Writing
                            [DESC] => A forum for the discussion of writing and related topics. Open to both members and non-members as a place to discuss stories, essays, and the technical aspects of writing.
                    )
                    [FORUM] => Array (
                            [NAME] => Web Design
                            [DESC] => For the discussion of web design and formatting problems including scripting, database use, etc. A place for general "How do I...?" type of questions not specifically related to Xepher.net services.
                    )
                    [FORUM] => Array (
                            [NAME] => Misc. Content
                            [DESC] => For content that doesn't fall under the other categories. Open to everyone.
                    )
            )
    )
So now that we have the data within the template object's structure we can load the template and parse it. Problem is, this is the part I'm having trouble on, because the array structure above is not technically possible in PHP (you can't have the same key names in an array for different keys). Of course you could write a template system that would have blocks and sub blocks, effectively being 2 layers deep... the problem is, when you run into a situation where you need to go deeper than 2 levels, it instantly becomes ineffective. Later tonight I'm going to convert a few things to include a numerical key base with the first element being the name of the block. I'm thinking that using a recursive algorithm is the only way I'd be able to pull off a dynamic system that can go multiple layers deep (due to restrictions that I can't actually write infinite lines of code doing things like array[0], array[0][1], array[0][1][12], array[0][1][12][2], ... this would make coding the system an extremely long process that would be a pain to change later on).

So at this point I'm open to suggestions as to how to encapluate multiple arrays within one another to create a structure. (another option would be to create a recursive class that would contain objects of itself, kinda like a linked list if possible in PHP).
#704
General Chat / Too much gaming
September 14, 2005, 04:02:01 AM
One time during a practice session at my friends house using padded weapons someone called the police on us thinking it was a gang fight. After the police came, not 1 car but 2, and we showed them that the weapons were padded and safe, they just wen't, "well those are kinda neat" and left. lol
#705
Art / Animated sig
September 14, 2005, 02:20:36 AM
Quite a bit better for the text. Yeah, the file size needs to go down.... do you have repeating frames within it?

I went ahead and did some image optimizations... the framerate is a little faster now, but it's nearly half the size, take a look (used Jasc Animation Shop 3.04):