Lewis Moten

Scripts, 2000 to 2004

An archive of scripts I published from 2000 to 2004, before GitHub. I kept them in a repository, Lewies-Code-Library-PSC. This is a selection of 180. They are old code, kept as they were.

ASP / VBScript (92)

TitleDateWhat it doesCode
Base 64 Encode / Decode2000-07-18Base 64 encodeing is used to convert binary files to a "safe" format for transporting files through smtp (email) and other protocols. It is also used for basic authentication. With this code, you can…Files for Base 64 Encode / Decode
Common Database Routines2000-07-18To assist in interfacing with databases. This script can format variables and return SQL formats. Such as double quoting apposterphies and surrounding strings with quotes, Returning NULL for invalid…Files for Common Database Routines
Convert Bytes2000-07-18This code convert bytes into larger units such as kilobytes, megabytes, gigabytes, and terabytes. I use this with the FileSytemObject so that my users do not see a very large number that doesn't make…Files for Convert Bytes
Convert LongIP to StringIP2000-07-18This function converts a Long Number(3232235521) into an IP Address ("192.168.0.1").Files for Convert LongIP to StringIP
Convert StringIP to NumericIP2000-07-18Converts a string ip address ("192.168.0.1") to a Long number (3232235521). One of the resons to do this would be to store IP addresses in databases. Numbers greatly reduce the size required to store…Files for Convert StringIP to NumericIP
Credit Card Mod 10 Validation2000-07-18Based on ANSI X4.13, the LUHN formula (also known as the modulus 10 -- or mod 10 -- algorithm ) is used to generate and/or validate and verify the accuracy of credit-card numbers.Files for Credit Card Mod 10 Validation
Input Date2000-07-18This small snippet will generate 3 drop down boxes that will allow your users to choose a date.Files for Input Date
Strip HTML2000-07-18Strips any HTML tags from a string and returns the results. I use this for data that users submit through forms to prevent them from using HTML.Files for Strip HTML
Remote File Explorer2000-07-19This script allows you to browse the file system on a remote computer through your web browser.Files for Remote File Explorer
File/Path/Extension Stripping2000-07-21These routines can strip a file name from a path, a directory from a path, and an extension from a path. They can also determine the parent directory path. They are fairly simple routines that I use…Files for File/Path/Extension Stripping
Get In Frames2000-07-21Search engines point users to individual web pages. If the page is supposed to be displayed within a set of frames, this code will redirect the users to a specific page using javascript. From there,…Files for Get In Frames
Total Email Validation2000-07-21Validates email addresses. Makes sure the email addresses with IP addresses are not private network addresses. Allows multiple sub-domain levels. verifies characters within domain names. only allows…Files for Total Email Validation
vbScript to HTML Color Coder2000-07-23Converts vbScript to HTML to show your code on web pages. Also provides features so that clicking on keywords will create a small pop-up window explaining some details about that keyword and provide a…Files for vbScript to HTML Color Coder
Novell ASP Login2000-07-28This login code validates users against a novell server and gives the look and feel of a Novell Client login screen.Files for Novell ASP Login
Advanced SQL Query Builder2000-08-03This code lets visitors to your site perform complex queries. Users may choose if specific words (or phrases) must or must not match - or if they are optional (default).Files for Advanced SQL Query Builder
Link URLs2000-08-04Finds any URL found within specified text and creates a hyper link for http, https, ftp, and email addresses.Files for Link URLs
Server Timezone Offset2000-08-26Returns the hour difference of the servers time from GMT.Files for Server Timezone Offset
AuthenticateUser2001-01-12Authenticates a user to make sure if they have previously logged into the site. Requires Session("UserID") to be populated. This usually represents the Users ID within a data base. (Users.UserID) If a…Files for AuthenticateUser
LoginNow2001-01-12Attempts to log a user into the web site through either cookies or posted form data by validating UserName and password against a database. Redirects users to originally requested pages.…Files for LoginNow
Phone Number Conversion2001-02-09This class is used to interpret phone numbers to and from a database in a specific format. The format is 25 characters long and is explaied withing the script.Files for Phone Number Conversion
Whois Lookup2001-02-18Shows how you can do a WhoIs lookup using a COM object capable of using winsock.Files for Whois Lookup
Scripting.Decoder for Microsoft Encoding2001-03-11This code lets you decode your scripts. It comes in handy if you deleted the original file or wrote over it with the encoded version. Microsoft included a program to encode, but choose not to let us…Files for Scripting.Decoder for Microsoft Encoding
SHA-1 Hash Algorithm2001-03-22for computing a condensed representation of a message or a data file.Files for SHA-1 Hash Algorithm
Client Bandwidth Recorder2001-04-12Measures the bandwidth in kbps (kilobits per second) that the client is viewing your website at. Works with modems, dsl, cable modems, network cards and any other means of connecting to the internet.Files for Client Bandwidth Recorder
Add Custom Errors with MetaBase2001-04-28This script interacts with COM objects that communicate with the MetaBase for Internet Information Server. You will be able to define the custom error pages for your website.Files for Add Custom Errors with MetaBase
Color Palette Scriptlet2001-04-28Allows users to choose a color from a palette simular to Adobe's color palette.Files for Color Palette Scriptlet
Color Picker 22001-04-29This version of the Color Picker supports just about any browser that uses javascript - Including Netscape 3. The downfall is that you "must" run it with a server that allows ASP. A script is included…Files for Color Picker 2
Dynamic Curve Images2001-04-29The script is able to dynamically create GIF images. The 4 positions of a curve - Top Right/Left and Bottom Right/Left. It also creates a transparent image if the position isn't defined. The images…Files for Dynamic Curve Images
Dynamic Pixel Image2001-04-29Allows you to create 1x1 images of any color including transparent images. (Images can be streatched by defining height and width in image tag)Files for Dynamic Pixel Image
Read GIF Dimensions2001-04-29Reads the Width and the Height of a GIF image. Really nice to have if you need to limit your users with specific image dimensions for profile images, banners, buttons, etc.Files for Read GIF Dimensions
Hex Viewer2001-04-30Allows you to view the binary data of any file (GIF, JPG, ZIP, TXT, HTM, ASP) as if you were looking at a common hex viewer. Bytes are displayed as Hex characters and character data is displayed on…Files for Hex Viewer
How to make Dynamic GIF Color Palettes2001-04-30In this article, I will walk you through the entire process on how to property create the GIF images, and then transfer them to my custom template file format. From there, an ASP page can read these…Files for How to make Dynamic GIF Color Palettes
Read Image Dimensions2001-05-02Allows you to read the width and height for GIF, JPEG (JPG/JFIF), Bitmap(BMP), and PNG files. You can upload a file or load a binary file from the server in the demonstration. This is great when you…Files for Read Image Dimensions
How to destroy a Shopping Cart2001-05-04I often get questions on how to deal with shopping cart data stored within the database that is no longer needed after the user has logged off. The answer is simple and deals with some database calls…Files for How to destroy a Shopping Cart
Parse Metadata from URLs2001-05-04This class demonstrates how you can request the HTML of a URL from another website using the XMLHTTP object to spider the web page. (Simular to the methods of the ASPHttp object). The data is parsed…Files for Parse Metadata from URLs
Advanced HTML Encoder2001-05-05This code demonstrates how you can convert a string to HTML text format. It goes beyond the power of the Server.HTMLEncode method in that it parses out all HTML tags, changes new-line characters to…Files for Advanced HTML Encoder
Helpful Checkbox Functions2001-05-05Ok, I'm uploading something that is very simple this time - but this is one of the most used things that I have. These little functions help me make code smaller and change the wording to users…Files for Helpful Checkbox Functions
Small Pagination Navigation2001-05-06I've coded many dynamic pages that needed the support of displaying data accross multiple pages. Whith this script, it will build a small navigation that you can display at the top and/or bottom of…Files for Small Pagination Navigation
RC4 Class2001-05-08Applys Encryption/Decryption to strings. I think just about everyone who has seen my code knows how I love classes. This version is more "cleaned up" and thrown into a nice little class for an object…Files for RC4 Class
RC4 Encryption/Decryption2001-05-08Encrypts and Decrypts data using the RC4 algorithm and a Key/Password. Many thanks goes to many, many people on PSC and the internet for helping me through this. Sebastions code over at the Visual…Files for RC4 Encryption/Decryption
vbScript ColorCoder v2.02001-05-08This script colorizes your vbScript for display on web pages. All colors can be managed through a style sheet. It seems that those who knew about the results of this version (from browsing my website)…Files for vbScript ColorCoder v2.0
RCA Encryption Class2001-05-09RCA is used for most standard public key/private key encryption techniques. Due to its burden on resources, RCA is generally used to encrypt random session keys wich are then used to encode messages…Files for RCA Encryption Class
Whois Lookup with XMLHTTP2001-05-09Queries a WhoIs server for for domain information. Useful for people who want to sell domain names. This version uses the XMLHTTP component that is installed on most servers, so there is no additional…Files for Whois Lookup with XMLHTTP
Allow users to post "Safe" HTML2001-05-10This code pulls out all the nasty tags that a user sholdn't use when posting content. It also pulls out any javascript events assigned to any tags. A must have if you allow people to post HTML on your…Files for Allow users to post "Safe" HTML
Add E-Mail Job to SQL Server2001-06-04This script helps start you off to learning how to automate some of your processes with SQL . For this example, I have chosen to send Email through SQL Server using vbScript. Messages are pulled from…Files for Add E-Mail Job to SQL Server
Table Data Export2001-06-06Exports data from a database int Transact-SQL Batch files. Used primarily for exporting data from an access database to an SQL Server.Files for Table Data Export
Lewies Coding Standards2001-06-07Peer into the brains of a professional programmer to learn how to become a better coder and more easily maintain your code for management and easily allow others to understand.Files for Lewies Coding Standards
Membership Server v1.02001-06-20Allows remote login validation of members against a centralized membership service via. ASP. (Simular to MS Passport)Files for Membership Server v1.0
Cookie Debugger2001-06-21Creates a list of all cookies and there crumbs along with the values assigned to each one.Files for Cookie Debugger
Debug QueryString2001-06-21Just used for debugging querystring data. Creates an orderd list of field names and the values assigned to each one.Files for Debug QueryString
Form Data Debugger2001-06-21Reads posted form data and returns an HTML formatted display of field names and the values assigned to them.Files for Form Data Debugger
Lewie's Image Gallery2001-06-22Upload, Manage, and Display images within your own personal art gallery. This Image Bank was made for my girl friend so that she could easily add the images and change them on her own. It also offers…Files for Lewie's Image Gallery
Lewies URLDecode2001-06-22Xao Xiong originally posted his version of DecodeURL and asked for a reply for a better way. I replied, but it didn't turn out too well, so i'm posting it here for him to see. The approach i took is…Files for Lewies URLDecode
Binary Data Manipulation2001-07-03These two functions allow you to convert between Unicode and Ascii strings. This is great if you are working with the Request.BinaryRead/BinaryWrite methods or binary data within a database.Files for Binary Data Manipulation
Unlimited Alternating Colors2001-07-13Demonstrates how to have alternating colors. Most people usually need just two alternating colors, but this method supports a larger list. Both a fixed loop and a conditional loop are provided as…Files for Unlimited Alternating Colors
Catching Bogus Addresses2001-07-25This article teaches how you can catch bogus email addresses before you register your members on your site. It also demonstrates how you can continue to verify the addresses over a period of time.Files for Catching Bogus Addresses
Hex/String Conversion2001-07-25These functions allow you to easily convert a string to its hex value and back again.Files for Hex/String Conversion
Find Available File Name2001-08-06When a user uploads a file, this function looks for duplicate file names. It incriments the file until an available name is provided and returns that name.Files for Find Available File Name
HTMLDecode2001-08-06This function decodes HTML Encoded strings. I found that when some browsers post data, it converts double-byte characters to html encoded characters. This script searches for all numerical entities as…Files for HTMLDecode
Site Post Check2002-02-14Checks the HTTP Referer header to ensure people are not posting from other websites. You can include this file if you use templates on your website, or just include it on the pages that receive form…Files for Site Post Check
ANSI to Unicode2002-02-25Converts from ANSI to Unicode very fast. Inspired by code found in UltraFastAspUpload by Cakkie (on PSC). This should work slightly faster then Cakkies due to how some of the code has been arranged.Files for ANSI to Unicode
Color Wheel Picker2002-02-27I was working on a scriptlet to allow users to choose a color. A color wheel is displayed with an assortment of colors - most of witch are web-safe. Clicking on a color causes it to be outlined and…Files for Color Wheel Picker
Color Picker (Fallout)2002-02-28Allow users to choose colors from familiar interfaces that are standard to the windows operating system. This one displays a wide range of hues in a color spectrum and fades the saturation. An…Files for Color Picker (Fallout)
Bottom Tabs2002-03-01Simulate the tab control found at the bottom of popular programs such as visual Interdev and Front Page.Files for Bottom Tabs
Spinner Scriptlet2002-03-02Simulates the spinner control found in visual basic on a web page. Author comments included.Files for Spinner Scriptlet
Expose Your Content2002-03-04Expose your content through external javascript source files.Files for Expose Your Content
Gibberish Encoding2002-03-13Quick way to learn how to speak gibberish. It is sometimes known as "girl-speak".Files for Gibberish Encoding
Folder Interface2002-03-16Give your users a nice clean interface to navigate, choose, and create new folders.Files for Folder Interface
Universal Email Interface2002-03-20Lays down a universal interface to sending email. Easier to port to other servers that use different COM objects to send email. Even exposes a list of ProgID's that are installed on the server. (This…Files for Universal Email Interface
IIS Authentication2002-03-21Requests users to login to website with NT Account.Files for IIS Authentication
ADODBTypeName2002-04-21Quickly find out the type of variables returned from your adodb recordset. TypeName() function doesn't do the trick. Databases offer additional data types. This script helps solve type problems…Files for ADODBTypeName
Display Accurate Time from NIST2002-05-04Display accurate time to your visitors! This script requests the UTC time from a server that is syncronized with an atomic clock. It then adjusts the time according to timezone and if daylight savings…Files for Display Accurate Time from NIST
Image Directory Listing2002-05-06Lists thumbnail images within the current directory. Very simple beginner stuff dealing with file scripting object. Handy for viewing your images quickly. Just copy the code and paste it a file called…Files for Image Directory Listing
Contrasting Colors2002-06-17Returns a color that is guarenteed to have contrast against the suggested color. Contrast to white is gray, contrast to light blue is dark blue, etc. Demo included.Files for Contrasting Colors
Calculate Color Fading2002-07-01Shows an example of how to fade from one color to another. This is a bare-bones example to help you get started with calculating a fade across 16 colors.Files for Calculate Color Fading
DOS Date/Time Functions2002-07-05DOS stores date and time with 4 bytes. 2 for date, 2 for time. These functions convert those bytes to appropriate vbScript date and time values. I used these within my WinZip file viewer scripts…Files for DOS Date/Time Functions
Zip File Viewer2002-07-05Display a list of files within a zip files archive along with the compressed/uncompressed size, ratio, path, etc. Always wanted to do this, but usually found code refering to winzip or some api calls.…Files for Zip File Viewer
Image Drop2002-07-06This script allows you to specify an image to fall down the entire height of the web browser. Images drop at random speeds. The number of images dropping may be specified as well. This particular…Files for Image Drop
Switchbox Scriptlet2002-07-06Add / Remove / Manage position of items on a list. This scriplet demonstrates how you can allow your users to pick up to 5 flavors of there best ice cream.Files for Switchbox Scriptlet
Web Navigation Scriptlet2002-07-06Navigate through a website within a small area of the screen.Files for Web Navigation Scriptlet
BreadCrumbs Navigation2002-07-08Displays a path to navigate through each subdirectory in the path to your web page. This is called bread crumb navigation. Many sites use this with the words You Are Here. It is suggested that you do…Files for BreadCrumbs Navigation
Deny Website Copiers2002-07-09Prevents web caching programs from accessing your website. Helps increase performance of your website against these programs that may cause DOS attacks on websites with slow internet connections -…Files for Deny Website Copiers
Report Navigation2002-07-09Gives you an interface to navigate reports by year, quarter, month, week, or day. This is just the navigation alone that I append to the top of different reports.Files for Report Navigation
encrypt4.asp2002-08-02Encrypts text using the enigma algotithm used in World War II. This security is easily breakable, but people seem to be using this. The next step is XOR encryption - which is also easily breakable.…Files for encrypt4.asp
Parse Hex value of visitors System Colors2002-08-13Parses the hex value of users system colors. Great for creating dynamic images on the fly to blend with the users operating system.Files for Parse Hex value of visitors System Colors
Dynamic Stylesheet Interaction2002-09-02Interact with stylesheets to dynamically change properties.Files for Dynamic Stylesheet Interaction
Upload Files Without COM v32003-09-01Allows you to upload multiple files and fields without purchasing or registering COM objects. Great for shared hosts that frown upon 3rd Party com objects or charge an arm and a leg for them. This…Files for Upload Files Without COM v3
Dynamic DNS Update IP Parser2003-09-04Has ability to go out on the internet and determine what your current IP address is. Also allows you ability to update namecheap.com with your current IP address. Can be modified to use with other…Files for Dynamic DNS Update IP Parser
Forced Download 22003-09-04Allows you to force a file to be downloaded rather then displayed within the users browser. This can be used with Word documents, Excel Spreadsheets, Adobe PDF's, and other files. Script has been…Files for Forced Download 2
StrConv Unicode/Ascii2003-09-04Converts between unicode and ANSI using ADODB Streams and recordsets. I was pressing myself to the limit to find a faster way to convert strings back and forth between unicode and ANSI during file…Files for StrConv Unicode/Ascii
Data Dictionary Report Generator2004-07-28Retrieves the structure of your data and displays it into a nice report that you can copy & paste into word documents. Works with SQL Server 2000. Also lists any comments within the database for…Files for Data Dictionary Report Generator
Lewies Seti Stats2004-07-29Reads an Xml file from the Seti@Home projects web servers and allows you to display the information on your own website. Cache xml files for up to 8 hours and loads via. javascript. Compatible with…Files for Lewies Seti Stats

VB (26)

TitleDateWhat it doesCode
Color Utility2000-07-23This utility is used to find a color and determin its hex, long, and rgb values. it will also give you the name of the color if it matches one of the pre-defined colors recognized by browsers and…Files for Color Utility
Binary Convert2000-07-29I always thought 0's and 1's were cool as a background to web pages or in the credits to the movie "Ghost in the Shell". I found a way to actually make your binary numbers mean something instead of…Files for Binary Convert
PageRange2000-12-02I had database searches that were returning way too many pages to display an option to view each page. What I did was set up this procedure to return a range of pages, and also options to jump ahead,…Files for PageRange
BitsToNum/NumToBits2001-01-12I was reading some binary files and needed some routines to convert numbers back and forth into binary numbers. In this case, I set the procedures to work with binary arrays.Files for BitsToNum/NumToBits
Convert 16 bit colors to 24 bit2001-01-12I was working with some files from a game and the colors were in 16 bit. I had to convert them to 24 bit just so that I could view them. These functions do just that.Files for Convert 16 bit colors to 24 bit
ASP Whois Component with sample code2001-02-18I was searching on the 'net for a whois COM object and everyone is charging $20 - $250 for a very simple object. I was a little low on cash and had the day off. This COM object includes ASP code and a…Files for ASP Whois Component with sample code
DoEvents Demonstration2001-02-19The main point here is to show beginners how to allow your code to "wait" for other events to take place before continuing to execute any code that follows. It also includes a timeout feature in case…Files for DoEvents Demonstration
Simple Log Routine2001-06-01Simple routine that logs a sting to a specified log file. also supports word-wrapping on long lines (more then 80 characters) and inserts an empty line before and after the information so it is easier…Files for Simple Log Routine
Dynamic Intrinsic Controls2001-06-21This demo shows you how to dynamically create a FileListBox control via vb Code rather then at design time. The reason I choose to create this was that I needed to get a list of files within a…Files for Dynamic Intrinsic Controls
Determine if File Is Old2001-06-22Determines if a file is old. I use this when I loop through the files in a "temp" directory to determine if I should delete old files on a website. Take note - the function looks at the last modified…Files for Determine if File Is Old
Lewie's Hangman2001-07-16So why is my version of hang man so cool? well - I don't know. I havn't looked at the others. This one lets you build your own list and "click" your way through the came. Click on each letter and it…Files for Lewie's Hangman
XOR Encryption Class2002-03-02Encrypts and Decrypts messages using the XOR algorithm with support of unicode & method of getting pas the NULL barrier by converting messages to hex strings.Files for XOR Encryption Class
ParseNumber2002-03-15Parses a number from a string. Handles parans for negative numbers.Files for ParseNumber
SQL Formatting2002-03-15Format variables for SQL Syntax.Files for SQL Formatting
Raw Clipboard Viewer2002-03-19Working on a clip-board spy to understand how data is saved within the clipboard. Still cleaning up a few things - but it works for the most part.Files for Raw Clipboard Viewer
HTML2Word dll2002-03-21Converts a web page to a word document.Files for HTML2Word dll
MakePath2002-04-30Creates folders and subfolders to the specified path.Files for MakePath
Embed Binary Files In Programs2002-05-22Embed binary files within your programs to be written out to the file system once the program runs. This demonstration creates a Word document.Files for Embed Binary Files In Programs
Text to String Conversion2002-05-22Definately been done before. Just couldn't find specifially what I wanted. Converts text to strings in VBScript, Javascript, and T-SQL script. Simple interface, Simple code, Simple to use ...Files for Text to String Conversion
Image 2 Ascii2002-05-25The Image 2 Ascii converter allows you to load a photograph, and then generate an ascii image that looks simular to it. You can use this ascii version to post a picture of your self on news groups,…Files for Image 2 Ascii
Hyperlink with Hand Icon2002-06-04Includes demonstration of how to make labels appear as hyperlinks, open the users default web browser, and uses a hand cursor when hovering over the icon. The hand.cur file is loaded seperately so…Files for Hyperlink with Hand Icon
URL Thumbnail Generator2002-08-23Creates thumbnail versions of web pages and saves to an image. Personal project in development to later store within a database containing links to other sites to offer a link preview. Have not been…Files for URL Thumbnail Generator
Alpha Blend Utility2002-08-27Blends one image into another image with the opacity based on an alpha channel image provided. Useful for developing tile chipsets for RPG games. Coastal tile chipset provided with 9 sample base tiles…Files for Alpha Blend Utility
Average Color In Image2002-09-01Returns the average color within a picture box. I use this when creating small maps of tile-based rpg games. I get the avg color of each block, and place the color on the map.Files for Average Color In Image
PicMatch22002-09-05Compares each pixels colors in one picture box to another. Determines if pictures are an exact match. Now uses API to copy pictures to memory. Looking for a quicker way to compare arrays. Copy this…Files for PicMatch2
vbScript Decoder - exe2002-11-10Decodes script that was encoded by Microsofts Script Encoder. My earlier version was done in ASP and is posted on this site, however i'm porting this to VB to disregard worries about code pages and…Files for vbScript Decoder - exe

SQL (19)

TitleDateWhat it doesCode
sp_Base64EncodeStr2000-12-02This procedure demonstrates how to instantiate an OLE object. I have used an ActiveX dll called AspConv™ (provided in AspLib™) to encode text with Base64 encoding in this example. The object must be…Files for sp_Base64EncodeStr
sp_ZipCode_Distance2000-12-02This code looks up 2 zip codes latitude and longitude and determines the distance between the two in miles.Files for sp_ZipCode_Distance
sp_ZipCode_Range2000-12-02Returns all zip codes within a specified range of a specific zip code.Files for sp_ZipCode_Range
Random Pronouncable Password2001-07-07Procedure made in order to create a random password that is somewhat pronouncable and easy to remember.Files for Random Pronouncable Password
Suggest Available Usernames2001-07-07Procedure created in order to determine if a duplicate user name exists during a sign up process. If a user name does not exist, an empty recordset is returned. Otherwise, any digits found at the end…Files for Suggest Available Usernames
Trim2001-10-15Allows you to Trim your strings when querying tables. I'm tired of using the Trim function in my ASP pages and Visual Basic. I created this little feature to trim away within SQL Server itself. This…Files for Trim
Find and remove Dupes2002-02-08Find and remove duplicate values within a table.Files for Find and remove Dupes
Count Matches2002-02-22Allows you to count how many times a string appears within another string. example - count carriage returns within text. Handles up to 8K characters. Tricks can get around 8K limit for large text…Files for Count Matches
User Defined Function Intro2002-03-03Brief introduction to user defined functions with examples and benefits explained.Files for User Defined Function Intro
FormatDate2002-05-22Dynamically convert a date to a user-defined format.Files for FormatDate
Num2Guid Conversion Function2002-05-24Article describing how to convert a decimal to a guid format. Also goes into detail explaining how to convert to other base-N numbers such as a bitmask/binary, octet, trinary, hex, and more.…Files for Num2Guid Conversion Function
Toggle Table Relations2002-05-29Useful for disabling constraints during database replication. When copying data to another database, use this procedure on the target database first. When finnished, run it again to enable the…Files for Toggle Table Relations
Toggle Bit Function2002-06-03Toggle bit fields with a small line of code.Files for Toggle Bit Function
Creating Grids2002-06-15Explains how to create grids and walks through the process of optimizing the query for speed. Grid table is populated with rows containing columns of X and Y.Files for Creating Grids
sprSearchTable2002-07-11This procedure searches all columns within the table specified. All columns are casted as varchar(1000). If any of the columns contain the query, then all columns are returned. (SQL2K)Files for sprSearchTable
GrantUserExecuteAll2002-11-08Allows you to specify a username and grant access to execute all SQL stored procedures within the current database. Very useful for developers that create databases with one account, but have programs…Files for GrantUserExecuteAll
OutlineSort '3.2.10.2'2002-12-03This function pads each number found within each decimal to allow sorting on outline numbers. Fixes problems where 2 comes after 10 in string sorts. An example of how this function is used would…Files for OutlineSort '3.2.10.2'
US Government Holidays2003-07-10Provide a date to this function and it will move it to the next US Government Business day - taking holidays into effect. US Government holidays are New Years Day, Birthday of Martin Luther King, Jr.,…Files for US Government Holidays
sprDataDictionary2004-07-28Goes through information schemas and extended properties to get each table, column, data type, comments, foreign keys, primary keys, constraints, and indexes. This information can then be used to…Files for sprDataDictionary

VB.Net (16)

TitleDateWhat it doesCode
clsRandomString2002-11-07Creates a variable length random string according to parameters you specify. MinLength, MaxLength, CharacterSet. Uses a Cryptography RandomNumberGenerator object to ensure an accurately random string.Files for clsRandomString
BitmapTo/FromBase642003-02-05Allows you to convert bitmap images to base64 and back for storage and retrieval in XML files.Files for BitmapTo/FromBase64
GetResource2003-02-07Reads embeded files from your executable programs (such as xml, images, etc.) Allows you to distribute one program - the exe, but still access your data and images needed with the program.Files for GetResource
Play WAV Files2003-02-15Allows you to effortlessly play wave files in a seperate thread while your application continues to operate. Now supports playing embedded resource files and Streams.Files for Play WAV Files
Bitmap to Hue2003-02-18Supply a bitmap and color and the bitmap is magically transformed to show colors from black to your color. Works with GIF images. Great for greyscale backgrounds that need to keep image but only…Files for Bitmap to Hue
Image Details Dialog2003-04-27Dialog box displays an image, its' file name, path, image dimensions, and file size. User may scroll to see full image, and browse to choose another image. If controls are too small, you can always…Files for Image Details Dialog
Wizard Navigation Control2003-06-22Provides simple navigation through multiple steps that you may offer your users in an application. ie - a wizard setup program.Files for Wizard Navigation Control
Image 2 HTML2003-09-04Converts an image to HTML table cells. Probably done many times before. This one also creates javascript to invert the image 1 pixel at a time.Files for Image 2 HTML
Choose File User Control2003-09-13Drag and drop this control onto your forms so you can allow users to pick the files on there computer they want to use with your program. Pretty simple stuff.Files for Choose File User Control
Small MSIM example2004-01-17quick and dirty example to use instant messenger with windows (MSIM). Logon, Logoff, Display contact list, send a message. Great for people researching for another way other then email to authenticate…Files for Small MSIM example
Visual SourceSafe Journal Monitor Service2004-01-23VMS is a windows service developed in .Net that monitors a Microsoft Visual SourceSafe (VSS) database. Customized alerts may be sent based on the defined filters.Files for Visual SourceSafe Journal Monitor Service
ID3v1.1 Reader2004-01-25Class reads ID3v1.1 tags - Artist, Sont Title, Track, Comment, Year, Album and year. Smaller code and reads more efficiently then other code I've seen on PSC as of today.Files for ID3v1.1 Reader
Base Conversion Utility2004-03-17Converts a value from one customized base set to another. No longer are you bound to strict rules. zero does not necesarily have to represent nothing ... even create numbers in DNA (base-4 gatc). Try…Files for Base Conversion Utility
Lewies Dice2004-07-30Gives you the option to roll any sided dice as many times as you want. Predefined formats with sides of 4, 6, 8, 10, 12, & 20. Fun utility for any AD&D hobbiest.Files for Lewies Dice
Lewies Ansi/Ascii Painter2004-08-03Read and Edit *.ANS files. Old BBS systems used to have Ansi files to display text as graphics before the days of the internet were popular. This program can read just about any ansi file in ascii…Files for Lewies Ansi/Ascii Painter
Lewies Memory Game2004-08-04This is a simple memory game. Start a new game. Wait for the squares to blink and repeat the pattern. An extra sequence is added after each round.Files for Lewies Memory Game

JavaScript (13)

TitleDateWhat it doesCode
Hide Basic Authentication with HMTL Forms2001-02-17I figured out how to let my users login with a form rather then using the built in dialog for basic authentication. Only problem is, if they get the username/password wrong, then they will still get…Files for Hide Basic Authentication with HMTL Forms
Make Absolute URL2001-02-17Converts a relevent url to an absolute URL. login.asp would become http://www.yourdomain.com/your/directory/structure/login.aspFiles for Make Absolute URL
Secure Hash Algorithm (SHA-1)2001-04-13The function generates a 160-bit (40-hex-digits representing 20 bytes) message digest for a given message (String) of any length. The digest is unique to the message. It is not possible to recover the…Files for Secure Hash Algorithm (SHA-1)
Decimal to Hex2001-04-29Converts a decimal number to a Hex String (i.e. 255 = 'FF')Files for Decimal to Hex
Center Popup Windows2002-02-06Center popup windows in the middle of your browser.Files for Center Popup Windows
Request_QueryString2002-04-21Allows browser to read querystring variables through javascript.Files for Request_QueryString
Request_Cookies2002-05-04Gives ASP programmers a familliar interface to request cookies. document.write(Request.Cookies("UserName"))Files for Request_Cookies
Password Security2002-06-29Parses the password field and comes back with a percentage of how secure your password is against a hack attempt.Files for Password Security
Columnizer2004-02-14Display content in columns like a news paper. Also allows you to choose what page you want to see.Files for Columnizer
Lewies Color Picker2004-05-16Let your users choose a color through a rich user interface. This color picker looks simular to Adobe Photoshop.Files for Lewies Color Picker
Mouse Looker2004-06-05Take 9 pictures of yourself looking in 9 directions and assemble them to look at the users mouse depending on its location relative to your image. My wife thinks it's funny because she asks for money…Files for Mouse Looker
Cross Browser XmlHelper2004-06-15Allows you to easily load xml files in MSIE, Netscape, and Mozilla. Read nodes with xpath, select attribute values and text - all with the same interfaces.Files for Cross Browser XmlHelper
Lewies Eliza Chatbot2004-08-01This chatbot is written in JavaScript and loads its data from Xml files. The xml file should be easy enough to understand and minipulate to make your own variation of the ELIZA chatbot.Files for Lewies Eliza Chatbot

C# (7)

TitleDateWhat it doesCode
AssemblyReader2004-06-19The assembly reader reads embedded resources as streams from any assembly you may pass to it. By default, it will read from the executing assembly. You can also read the assemblies title, description,…Files for AssemblyReader
Lewies ID3v1.1 Tag Editor2004-08-01This program can edit MP3 files to include the Song Title, Album, Artist, Year, Genre, Track Number and comments about the music.Files for Lewies ID3v1.1 Tag Editor
Lewies Mini Hex Editor2004-08-01This small utility aids programmers into viewing and editing the data within binary files. Works with large files very nicely. Enter either the hex, decimal, or text value of each byte. You can also…Files for Lewies Mini Hex Editor
Relay email through CDO2004-08-02Send email through the CDO objects that .Net interfaces with. Now you can choose your ISP's mail server and log in with username/password to relay mail to the outside world.Files for Relay email through CDO
Lewies RSA Encryption Example2004-08-03Create new key pairs for asymmetric encryption or copy/paste strings into text fields provided. Encrypts and decrypts text to encrypted base64 strings. Main benefit here is I got around a problem with…Files for Lewies RSA Encryption Example
Get Embedded Text Files2004-08-05Load an embedded text from from within your assembly and assign it to a variable. I primarily use this when storing sql, data, or some pieces of code that I need to have access to. Simply add text…Files for Get Embedded Text Files
Ultima Player Administration2004-08-08Maintain a list of player names, accounts, IP addresses, and assign flags. Search, Edit, Delete, Export, Import. This little utility was made at the request of my wife who is an administrator on an…Files for Ultima Player Administration

ASP.Net (7)

TitleDateWhat it doesCode
HTTP Formatting2002-12-03Formats HTML source code to prevent users from using scripts and unwanted formatting tags such as Cascading style sheets, ActiveX controls, java applets, etc.Files for HTTP Formatting
Dynamic ScriptMapping with Metabase2003-09-20Allows you to assign almost any extension to be processed by the ASPX script processor. You may add, update, and remove the extension progromatically without opening the IIS Manager. Great for those…Files for Dynamic ScriptMapping with Metabase
Page Navigation WebControl2003-10-11Allows users to navigate through each page (kinda like Google). They can click back, next, and page numbers as well. You can customize its output html through design-time. Great for beginners learning…Files for Page Navigation WebControl
Thumbnail2003-10-16allows you to dynamically create thumbnails of your images on the fly. Image is resized to its aspect ration to fit within a defined region. You can specify quality of image to reduce bandwidth, and…Files for Thumbnail
ImageLink WebControl2003-10-17Functions just like the image control except that you may also provide a navigation url. when the user clicks the image, they go off to the url you specify.Files for ImageLink WebControl
Lewies Validation Code Image - Part 12003-10-23Prevent content and processes from being misused for spam or inappropriate use. An image is displayed to the end-user. An attempt is made to prevent OCR recognition by agents, spiders, or artificial…Files for Lewies Validation Code Image - Part 1
Lewies Validation Code Image - Part 22003-10-24Prevent content and processes from being misused for spam or inappropriate use. An image is displayed to the end-user. An attempt is made to prevent OCR recognition by agents, spiders, or artificial…Files for Lewies Validation Code Image - Part 2