Can you do math? Here's a Loan Calculator that is all javascript. Handy for figuring out what you'll spend on that new car, pool, or... It's also handy for understanding how a banker or an accountant thinks (shudder!)
This code demonstrates recursion and basic financial math techniques.
You can also try this four function calculator
which could be handy for use in an online loan application. This code
demonstrates accumulators and use of the "onclick()" event.
So you think you've got what it takes to beat Regis at his own game? Try
this Javascript Trivia Game and see how well
you stack up with a variety of "pop culture" questions.
This code is an example of array manipulation and the javascript
equivalent of strstr().
This source code is for a full-fledged Fuzzy Logic code generator.
This program will allow you to graphically put together full fuzzy
decision making and then generate code in Pascal, Basic, or C/C++
that will implement the decision process.
Fuzzy Logic is a method of deriving exact output from variable input
and can be adjusted in real time for changes of perspective. It's even
simpler than it sounds; here's an example from real life as is used in
some police stations: a 10 year old girl gets mugged and describes the
attacker as tall. "Tall" from the perspective of a 4 foot tall 10
year old is slightly different than "tall" as seen by a 6 foot
adult male. Fuzzy logic is the method by which "tall" is translated
into search parameters. If you were adjusting an SQL query, the tall
example may look something like "SELECT * FROM SUSPECTS WHERE HEIGHT
IS BETWEEN (low, high)" and low, high are height parameters
returned by a Fuzzy function.
This program was written at a time when the only programs capable
of generating code capable of dealing with fuzzy logic cost THOUSANDS
of dollars (1992) and upon release was handed out by the IEEE's interest
group on fuzzy logic. We're not sure if they still do this...
You can find copies of the original EXE by searching for "FUZZGEN"
on most of the major search engines. Mostly it sits on the AI
specialty sites. The VB source comes complete with docs that will
act as a fuzzy logic primer. Although we don't
work with VB today, at the time it was the only RAD compiler
available, and we wanted to experiment with it. VB or not, this code
will illustrate the fundamentals of Fuzzy Logic.
Source code only for the Cookie Killer program found in the
Alstonlabs.com utilities. This program does nothing more than
delete Internet Explorer Cookie files.
Technique Demonstrations of:
This project shows the rudiments of presenting window information
in a pure graphical manner (no built in objects style.) It is meant
to provide the basics necessary for creating a pure graphics app
that can be easily resized, handle arbitrary sized image elements
and numbers, etc.
Technique Demonstrations of:
Software engineers have a tendency to collect tools and anything
truly interesting. This is because one never knows what sort of
application will strike one's fancy or what sort of project one may
get hired in to help with. One of the reasons we like C and Pascal
so much is that code that is properly written can be viable for
years afterwards. Presented here is just such an example. It's not
fancy. It's not an OOP component. It works even with the latest
compilers. And it works in any environment that supports C, whether
it's Windows, UNIX, or an embedded system. (Try that with VB.)
This example was culled from a real-life semiconductor manufacturing
robotic automation job vintage 1988. The nature of the problem as
well as the solution code are discussed here.
HTML, XML, and anything Internet related are the latest hot things
to know about. The Net is the new lingua franca of modern development.
The good news is that internet related technologies are easy to implement --
outside of coding a socket, it's mostly a matter of simple text manipulation.
Business coding is generally not exciting, but creating reports is
with no doubt the most dreaded phrase in an IT environment. We're talking
the sort of assignment that brings on serious reassessment of career
objectives, as in "I spent that much time and money to learn
technology, and they have me doing THIS?" Voice this concern and
your manager will reassure you that this is Really Important work...
while making a note in your work history file.
So in this example we show a way to generate
and distribute reports painlessly AND have some fun doing it for once.
A nice side effect of this code is that ad hoc reports can be created
far easier than using older tools designed to generate paper reports.
For those of you in management, bear in mind that since the only thing
you need to create reports with this is stored procedures/queries, you
do not have to write code or design WYSIWYG pages to do reports. In other
words, this is inexpensive and effective. And, being HTML, it is already
one step closer to "web enabled," and you will have happier developers.
Be a hero. Save money. USE THIS CODE. Go home on time. Enjoy!
Technique Demonstrations of:
There are some projects that require an in-depth knowledge of how
computers work at the deepest level. Directly interfacing with hardware
is one of these.
In this example, we show how to use
Assembler code with Delphi to talk to hardware and manipulate data
at the register level. We also show how to manipulate data in the
Intel general purpose register set for speed. This code is even more
interesting in that we make a nasty little discovery concerning
windows that we didn't expect to make.
In cases where they need a night sky, most programmers draw a bunch
of white pixels in a black rectangle and call it a night. What they
have created looks like a black rectangle with a bunch of white dots
in it, but it doesn't really look like a night sky.
In programming, even the simplest looking things require that you pay
close attention to get what you're after, and this attention to detail
usually results in a better program.
This code shows how to create
a night sky that doesn't look like a bunch of random dots. Instead,
it looks a lot like the star patterns in a real night sky. But why?
JAVSCRIPT TRIVIA GAME
FUZZGEN VB SOURCE CODE (Coded 1992)
COOKIE KILLER DELPHI SOURCE CODE
GRAPHICS DEMO PROJECT DELPHI EXE AND SOURCE CODE
Download demoproj.zip (117k)
INDUSTRIAL CODE: PARABOLIC CURVE FITTING
BUSINESS CODE: HTML REPORT GENERATION
Hardware Access With Delphi & Assembler
Stars in a Night Sky: Simple, Right?
The source code on these pages was developed by alstonlabs.com. You are
free to use this code in your own projects. No licensing is required. The
only thing we ask is that if you use it, please use it as a basis to
create something truly unique. Don't just take the code, slap your name
on it, and try to sell it as is.