Coder Profile - Show off your skills, get a coder profile.
 
 
 
User Name VBAssassin
Unique Hits 14,103
Real Name Scott Thompson
Location United Kingdom
Lincolnshire
Occupation Web Technologist & Director
Gender Male
Age 24 Years Old
WebSite coderprofile.com
Post A Profile Comment
Some Random Friends
  view more
Ronny
 
Gorthwogh
Richard
lshearer975
Liam Shearer
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 8.20 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 2.27 Years 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) - Updated 28th Feb 2010
Language Posted Comments
PHP (Hypertext Preprocessor) 2.32 Years Ago 9
Rating Downloadable Plain Text
- - - - - - 5,505 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) 2.39 Years 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.
 
DannyIsOnFire     Posted 35 Days Ago
 
 
Don't know if you still check your comments but I'll leave one regardless.
Like the guy below me, I stumbled back across CoderProfile and remembered how much I
used to love it. It's a shame it's been sitting here for the past three
years or so doing next to nothing.

I'm going to try and get in touch with you via AIM/Email about getting it
going again. If you don't have the time I'd be happy to lend a hand.
Promotion work and the like. Obviously the sites still fully functional but if a
website isn't updated regularly (news posts, forum activity, etc) by the admin,
it puts me and probably others off slightly.

I think you've got a great, fairly unique idea here that could get quite big.
It'd be a shame to see it fade away.
 
Yuripro84     Posted 120 Days Ago
 
 
Hey Scott! What's been goin on? I came back and it looks like this site is all
dried up... a real shame, this site had a lot of potential, was amazing as is, and
heard more was to come! Any plans on reviving the website? I wouldn't mind
getting my friends in here and helping promote the site if you were going to revive
it. Would be cool man.
 
Vermillion     Posted 179 Days Ago
 
 
Hey, I have finally returned and it looks like this pretty dead now. That's a
shame because this site really had a lot of potential. I hope you attempt to revive
it someday. :(
 
Anto     Posted 286 Days Ago
 
 
is coderprofile dead?
 
Cinjection     Posted 287 Days Ago
 
 
What's the timeline for all this?
 
Cinjection     Posted 291 Days Ago
 
 
So, has this been completely abandoned?
 
Relish     Posted 1.22 Year Ago
 
 
Damn Scott, this site needs an update!
 
Dice     Posted 1.47 Year Ago
 
 
Yea the following system will be very useful, so I can't wait to see that in all
its glory. :)

We talk soon mate!
 
Dice     Posted 1.51 Year Ago
 
 
Hey,

Thanks for keeping me in the loop. Just checked it out, and it looks great. I
won't be using the class until i wrap my head around the binary system and
bitwise stuff, as I don't like using stuff i'm not confident with. :)

Thanks man!
 
Helbom     Posted 1.52 Year Ago
 
 
If it's the "Code Templates" you're talking about, then I dunno
why, but it seem very unstable. In like 2 of 10 attempts it returned the
"Expended Text" :) I might be looking at the wrong thing tho :)
Page of 25 :: Next Page >>
Scott Thompson (24)
United Kingdom, Lincolnshire
VBAssassin has 32 fans
become a fan
� Applications
Articles Articles (13)
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
Why do you get bored with programming?

Not enough time to do something productive
I run out of ideas
Too hard to show people my creations
Everything i do has too many errors, and it's too hard
I don't get bored!!!


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