Coder Profile - Show off your skills, get a coder profile.
 
 
 
User Name VBAssassin
Unique Hits 7,560
Real Name Scott Thompson
Location United Kingdom
Lincolnshire
Occupation Web Technologist & Director
Gender Male
Age 22 Years Old
WebSite coderprofile.com
Post A Profile Comment
Some Random Friends
  view more
1nf1ltrat0r
Niels
BaByT
Tyler Moyer
H4RDW1R3D
Steve Mckenzie
Recently Added Articles
  view more
[PHP] - Lets kill the complex IF
Programming
Hi ya guys, Have you ever nested that many if conditions that your code starts to get quite complicated? Let's give you an example Just some simple data checks on the $_POST['name'] value. But I'm not happy with that code. For something so simply, why is the code so complex? Let's use a technique with functions to make this much simpler. Then explain how it works in regards to simplifying it. [code language='php']function get_name() { //make sure it's set if (isset($_POST['name']) == false) { return 'Error Occured'; View In Full
6 Comments 7.75 out of 10
How to use Memcache on Windows
Web Development
I will quickly run you through an example of HOW to use memcache and how it works. Download Memcache http://jehiah.cz/projects/memcached-win32/ And load up the .exe - you should just get a blank command box appear - the server is then running on localhost:11211 Install the Memcache extensions in to PHP If you use something like xamp or easyphp - just enable the memcache exentions (just a case of maybe uncommenting a line or ticking a box like in easyphp). Code Example Put that code in a .php page (remember to have the memcache server running). Now simply run the script and it will save my name in memory for 60 seconds! To retrieve the value from memory now put this in the script (within 60 seconds else it will expire from memory). And you will see that my name is still there! It's quite simple really. You use add() to add new values to memory where they are View In Full
3 Comments 8.00 out of 10
PHP Sessions = Member Database Cache
Web Development
Let�s go over what a session is. Sessions First you call session_start() which gives you a unique ID such as: dde2ds2g67xs2zxjh89s3j8923 Everything you then save to $_SESSION is saved in a file on the server such as: $_SESSION['message'] = 'hello'; Would be saved to: tmp/phpsess_dde2ds2g67xs2zxjh89s3j8923 and next time you call session_start(), $_SESSION['message'] will still exist and will have 'hello' in it! Database Problem So, you record a members total page hits on your site, and the last time they made a page hit on your site. You keep these stats up to date like this (which is executed on EVERY page hit by the member): $time = time(); mysql_query("UPDATE `members` SET `timestamp_last_seen` = '{$time}', `hits` = `hits` + 1 WHERE `member` = 'VBAssassin' LIMIT 1;"); Now, all you�re doing is keeping track of the last time they were seen, and the total page hits they have made while logged in. Solution You need to keep track of your active sessions u... View In Full
2 Comments 8.00 out of 10
Recently Added Source Codes
  view more
Pick A Random Array Element
Language Posted Comments
Perl 256 Days Ago 0
Rating Downloadable Plain Text
- - - - - - 2,593 Chrs
Randomly pick an element out of an array, returns what was picked and removes the picked element from referenced array. P.S. I've only been learning Perl for about 8 hours... so don't tell me off i
Bitwise Settings (Class)
Language Posted Comments
PHP (Hypertext Preprocessor) 276 Days Ago 9
Rating Downloadable Plain Text
- - - - - - 4,025 Chrs
Specify an array of settings, and depending on the combination of settings will return a unique integer. This integer can then be used to workout the settings that were selected to produce that intege
Compare Ratings, and Return Similar Tastes
Language Posted Comments
PHP (Hypertext Preprocessor) 300 Days Ago 2
Rating Downloadable Plain Text
- - - - - - 4,894 Chrs
Lets say you have 5 books... and 5 people rate each of those books. Now you want to find out who's interests, based on each users 5 ratings, are similar to who? That's what this algorithm calculate
Profile Comments
  
Please login to post comments.
 
Dice     Posted 2 Days Ago
 
 
Yea man sounds good. I had a slight tingly pain running through my arms, but I jumped
in early and started going to the gym, they are getting better too. Lucky I got in
early though, thanks to you I'm aware of the risks. I hope that didn't
sound emotionally lifeless, because i didn't mean for it to sound that way.

Your new system sounds really cool. Will you release concepts and little snippets
and ideas of various working parts?

Cya Bud.
 
Dice     Posted 2 Days Ago
 
 
Hehe thanks for the tip. Your CMS to build websites definitely does sound
interesting. So I know that business always comes first but do we have a timeline
when work will start again on CP? :)
 
Dice     Posted 3 Days Ago
 
 
Hey buddy,

I've been good, currently working at an email marketing place building HTML
Email templates, which gets quite boring since all i think about while i'm there
is coding PHP. However I've purchased a CMS from someone and I'll be
rewriting the script since its all in procedural code and not too crash hot. So yea
lots of stuff brewing in my world, how about yours?

Thanks,
Tom
 
Binaries     Posted 46 Days Ago
 
 
Haha, i lold at your comment.
 
shadytyrant     Posted 73 Days Ago
 
 
Yes it can be. Hope you get better soon!
 
shadytyrant     Posted 75 Days Ago
 
 
I dont think its dieing, but an update would be nice. Though we understand your busy
on other things.
 
otoom     Posted 79 Days Ago
 
 
Dudeeeeeeeeee c'monnn this place is dieing, i want it back to how it used to be!

Back to when about 50 people a day on here! Update it dude, u know you wanna :P

Ant
 
otoom     Posted 198 Days Ago
 
 
Ah yeah, well i think i might crack on with some php. Not too sure yet, but most
probably will :)

Just, haven't a clue what to code yet :P
 
otoom     Posted 201 Days Ago
 
 
Ah i see, do you mean like i didn't learn enough about programming itself, not
the actual language?

And aha, i would hate that, somtimes i go for around 2-3 hours with no break.

I am currently learning PHP again, and i will then be using miniPHp (google it) it
looks sweat. I have used it before. And i will develop things with it, such as a
editor. And i may even give an irc client a go, if its up to it :P

I don't have much time anymore as last year of school so kinda stuck on
things. GF takes up time in my life too :P so yeah.

Other than that i do my gfx and all :D
 
otoom     Posted 203 Days Ago
 
 
Hmmmm, i haven't been around here in a while have i :O

Not much difference, don't worry i know about your hand problems, hope they
are getting better.

I don't do much coding anymore :( Unfortunately. But i decided i do not have
the skill to learn it, yet. My creativity skills are alot better, meaning im'
better at graphics :).
That can get me just as far :) Check out my dA http://asketch.deviantart.com/

Anyways,

How have you been in general? Apart from your hand problems.
Page of 23 :: Next Page >>
Scott Thompson (22)
United Kingdom, Lincolnshire
VBAssassin has 31 fans
become a fan
� Applications
Articles Articles (14)
Source Codes Source Codes (61)
� About Me
About Me About Me
User Groups User Groups (9)
Portfolio Portfolio (8)
Friends Friends (178)
� Misc
Overview Overview
Send A Friend Invite
Send Message Send A Message
RSS Whole Profile Feed
 
 
Latest News About Coder Profile
Coder Profile Poll
Which sounds better on your coder profiles, and makes more sense to you (think twitter, facebook, etc)?

Followers / Following
Fans / Following
Fans / Fan Of


please login to cast your vote
and see the results of this poll
Latest Coder Profile Changes
Coder Profile was last updated
1.20 Year Ago
Official Blog :: Make A Donation :: Credits :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents :: Wallpapers
Version 1.46.00
Copyright � 2007 - 2010, Scott Thompson, All Rights Reserved