Coder Profile - Show off your skills, get a coder profile.
 
 
 
VBAssassin
United Kingdom, Lincolnshire
Offline
13
fans
I'M A FAN
Send Message RSS
more actions
Articles Articles (13)
Source Codes Source Codes (55)
User Groups User Groups (7)
Discussion Forum Discussion Forum (4,531)
About Me
About Me About Me
Fans Fans (13)
Portfolio Portfolio (8)
Friends Friends (170)
Overview  
User Name VBAssassin
Unique Hits 2,658
Real Name Scott Thompson
Location United Kingdom
Lincolnshire
Occupation Web Technologist & Director
Gender Male
Age 21 Years Old
WebSite coderprofile.com/
Post A Profile Comment
Some Random Friends
  view more
authorblues
Chad Waters
KAIA
Martin
mbry0
 
Recently Added Articles
  view more
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 $memcache = new Memcache(); $memcache->connect('localhost', 11211); $memcache->add('name', 'Scott Thompson', false, 60); 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). $memcache = new Memcache(); $memcache->connect('localhost', 11211); print $memcache->get('name'); And yo... View In Full
0 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
0 Comments
Speed Up Delivery of your JavaScript Libraries
Web Development
Hello, I am going to show you how to speed up delivery of you external .js files along with examples. I will use the prototype and scriptaculous javascript libraries as a benchmark which contains 8 seperate .js files. Unoptimized .JS Here are the results using YSlow to benchmark the speed of the JS files downloading when there is no gzip compression, no cdn, and no minification of the js code: Response Time (ms): 4477 (all files) File Size (kb): 248.7 4.4 seconds to download some JS files! Thats 4.4 seconds, on broadband, to wait before the page even renders!!! So lets get that optimized. Option 1 - Optimized .JS - Using Google http://code.google.com/apis/ajaxlibs/documentation/index.html This is a very quick and easy way to speed up the delivery of the library files to an acceptable level. The same files, gziped with cdn (not minimized, but gzip kind of makes up for that loss)... results in the following: Response Time (ms): 1920 (all files) File Size (kb)... View In Full
6 Comments 6.00 out of 10
Recently Added Source Codes
  view more
Pagination Class
Language Posted Comments
PHP (Hypertext Preprocessor) 16 Days Ago 0
Rating Downloadable Plain Text
- - - - - - 4,548 Chrs
Takes care of the hard work when creating pagination and can carry across variables between pages in the pages URL. Multiple instances of pagination can be used on a single page.
Template Class (no evals or str_replace functions)
Language Posted Comments
PHP (Hypertext Preprocessor) 39 Days Ago 0
Rating Downloadable Plain Text
- - - - - - 849 Chrs
Self explanatory - allows you to create template(s) for your site to use. Didn't bother commenting it because it's so short and simple!
Weighted Picking of URLs (Affiliates)
Language Posted Comments
PHP (Hypertext Preprocessor) 39 Days Ago 1
Rating Downloadable Plain Text
- - - - - - 1,185 Chrs
Got a site where you have affiliates and they can earn points? And you want to pick a random affiliate to show on your site? But you want an affiliate with more points to be more likely to be picked?
Profile Comments
  
Please login to post comments.
 
FallingTears     Posted 6 Days Ago
 
 
You're right ... It's time to go to PHP5!
 
otoom     Posted 12 Days Ago
 
 
So your saying,
To add a friend you must know there real name or the name they registered as?

Well, lol, dang it. Ill have to quickly add now the won't i :P

Ant
 
otoom     Posted 12 Days Ago
 
 
And why may i not?

LOL!

Ant
 
otoom     Posted 13 Days Ago
 
 
Shat ap Scott :P.

I am not adding everyone, or i would go add EVERYONE! :P.
But lol, i will catch you up!

HAHA
 
Blaze     Posted 13 Days Ago
 
 
What do you mean with that? :P

I'm very good, thanks. Great site by the way. :) Loving it so far.
 
Cinjection     Posted 22 Days Ago
 
 
Anything in the software development industry. Specifically, things like: Software
developer, Systems Architecture, Software consultant.

I'll be able to do cool things like that.
 
Cinjection     Posted 23 Days Ago
 
 
I'm a computer science major and getting a software engineering minor. This
semester I'm taking two maths, CS, Society, Tech, and Values, and CS and Math
Computer Science.

Fun stuff :)
 
Cinjection     Posted 23 Days Ago
 
 
So much fun. It's more fun then I've ever had. I love it. Especially
because I live on Residence.
 
Cinjection     Posted 23 Days Ago
 
 
I'm at university, so I don't have near as much time to go on. I still pop
by every now and then, though.

What's new with you?
 
otoom     Posted 36 Days Ago
 
 
Now even though that wouldnot be fair it would be funny. HAHA!

Made my day Scott. Thanks.

Ant
Page  of 17  :: Next Page  >>
 
 
 
Part of the MyPingle Network
Development Blog :: Make A Donation :: Contact Me
Terms & Conditions :: Privacy Policy :: Documents
Version 1.44.00
Copyright � 2007 - 2008, Scott Thompson, All Rights Reserved