Log Manager: COM Port Card Logging Software Written in Visual Basic

In October of 2004, I decided to take on a new project at college.  I was determined to write software that could be used in the Computer Science Major’s Lab to monitor who came in and out.  I originally began the project in an attempt to learn how to write software that could interpret the data that was received from a card-scanner via a COM port.  Then my interest grew and I decided to write a fully functional Log Manager.  I knew a variety of other labs wanted a way to log who was coming in and out of their lab, so I figured it was a good project to take on.


Download Log Manager Version 1.3:

Installer
| VB 6 Source Code

Log Files:
A new log file is created each day. Log Manager writes the log information to text files in the specified Log Destination.  It’s capable of saving the log files to a certain folder on a server if necessary. By default Log Destination is set to “C:\INSTALL_PATH\LogDestination\”. Here is an example of the automatic file creation:

Below is an example of the contents of a log file.  It is a comma delimited file,  so it can easily be opened in Excel or similar program.

My Original Thoughts, Before Joimo Came Along

Before Joimo.com came to be, here were a couple of my other concepts..

How to Convert URL’s in Text to Links Using PHP

The function below takes in a string of text and converts all URL’s that start with "http://" to an HTML link.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/**
 * Returns the string with URL's replaced with actual HTML link tags
 * @param string $string The string to parse for URL's
 * @param boolean $noFollow Whether or not to add the rel="nofollow" 
 * attribute to the tag
 * @param boolean $newWindow Whether or not to make the link open in a new
 * window
 * @return string
 */
function getStringWithUrlLinks($string, $noFollow = true, $newWindow = true)
{
	$pattern = '/(http:\/\/[^\s]+)/';
	return preg_replace_callback($pattern,
		create_function('$matches',
			'return \'<a href="\'.$matches[0].\'" '
			. (($noFollow) ? ' rel="nofollow"' : '')
			. (($newWindow) ? ' target="_blank"' : '')
			. '>\'.$matches[0].\'</a>\';'
		), $string);
}

Here is an example usage:

21
22
23
$string = 'This is my website: http://www.jesterwebster.com/';
$stringHtml = nl2br(getStringWithUrlLinks(htmlentities($string)));
echo $stringHtml;

The example above would output:
This is my website: http://www.jesterwebster.com/

Firefox Extensions You Need For Web Development

When it comes to Firefox, these are my top 5 favorite extensions that aid in development:

ColorZilla – An advanced eyedropper, color picker, and page zoomer
Html Validator – Adds HTML validation to the View Page Source window.
Split Browser – Splits the browser window so that you can view multiple pages at once.
Web Developer – Adds a menu and toolbar that’s packed with web development tools.
YSlow – Helps determine how a page is performing.