Why I love Akismet!

I love Akismet because it has saved me a lot of time and ibuprofen (that I would be taking for the headaches I would get trying to ward off spammers. Here’s why:

Akismet Spam

Now this blog hasn’t been around for that long, considering that I made my first post on June 13 of this year, and I haven’t been posting as regularly as I would like, so to have been hit with that amount of spam in such a short time is something to think about!

Let’s think about this for a few minutes: This blog has been online for about 6 months now, that’s approximately 180 days, give or take. If you do the math, you find that this comes to about 8 spam messages a day!! Wow!!

Since I have comment moderation turned on, without Akismet I would be getting on average 8 emails a day to moderate comments on this blog alone!

Do you see now why I love Akismet?

If you have a WordPress blog, make sure that you enable Akismet, it will save you lots and lots of time!

Spamproof your email link with Javascript

Wouldn’t it be nice to post your email address right on your page without having to worry about spam harvesters and other malicious bots?

I do! See an example in the footer section of my Web Development Forums.

I use Javascript to do this. It is a highly effective method for a few reasons:

  1. Javascript output is unsearchable by search engines.
  2. Spam harvesters, and most other bots and spiders ignore javascript to avoid being caught in loops and infinite content generators

Here’s how to do it!

Copy and paste the script below into the HTML content of your webpage right where you want the email link to be.

Next, update the actual email information (change the variable values).
admin = you, hypertextfever = yourdomain, com = your tld (com, net, org, etc.))

Next, I recommend changing the variable names. They are currently female names that start with “s”. This is simply preference. It’s just best to diversify these variable names so that bots don’t get “wise” to it.

A good example would be to change the three instances of “susan” to “charlie”, and “sally” to “chuck”, etc. Please be aware that there are three instances of each.

<script type="text/javascript">
var susan = "admin";
var sally = "@";
var sandra = "hypertextfever";
var sarah = ".";
var sonia = "com";
document.write('<a href="mailto:'+susan+sally+sandra+sarah+sonia+'">'+susan+sally+sandra+sarah+sonia+'</a>');
</script>

Easier than an email form, and it’s more usable too!

From the Archives

Since I have been completely swamped with work and haven’t really had time to do any more PHP learning, I decided to write about a program I wrote ages ago in 2ooo. I was looking through my old files and came across the manual that I wrote, plus all the source code which I somehow still have :-).

The program was written for a solar energy project that I was involved in. For my Masters research project I built and monitored the performance of a Compound Parabolic Concentrator for solar panels in equatorial latitudes. I will be posting more about that on my physics page and will add a link here. The purpose of the concentrator was to increase the illumination levels on a solar panel, subsequently increasing its efficiency. For the duration of my project, I collected all the data manually, which sometimes involved sitting out in the sun for hours!! There was also an element of error introduced by this method because I had to read five different meters each time (in 15 minute intervals). I then applied calculations to this data, did my analysis, etc.

After my thesis was done and I passed (of course :-)), my supervisor and I decided to try to automate the data collection process for future projects. We bought and installed a Computer Boards I/O card and wired various components to make the system work. (Computer Boards was renamed Measurement Computing). I programmed the system and tested it, and afterwards wrote a complete User and Technical Manual for it. The system was programmed in Visual Basic 3.0 on a PC running Windows 95, which I still believe to be one of the most stable OS’s MS has produced.

Quoting from the User Manual:

The PVPM system comprises three main components; the CPC/PV system, the interfacing component and the software component. The CPC/PV system comprises a PV panel equipped with low-concentration parabolic reflectors. The interfacing component includes a constant voltage electronic bridge, an IO card and a PC. The software component is a program that collects and interprets data from the CPC/PV system via the interface.
The bridge for which this program was designed is a constant voltage bridge. This means that it keeps the voltage reading across the panel at a constant value so that only the current varies. Moreover, the bridge converts the current reading into a voltage reading and steps down the voltages so that they can be fed into the computer. Conversion factors are provided with the bridge to enable the user to convert the readings back to the actual voltage and current values. These conversion values are:

Current: Multiply by 14.8
Voltage: Multiply by 8.5

The IO card for this program is a Computer Boards card. The details concerning this card are comprehensively covered in the technical manuals supplied with the card.
The output from the card is in counts, which the PVPM program then converts to voltages before the bridge conversion factors are applied.
The card comes with its own installation software, which is used for configuration purposes. Libraries for different programming languages are also provided in the Universal Library diskette. For this case, the software for the data access has been written in Visual Basic 3.0. The program has been left in its raw form (not compiled as stand alone) so as to enable future modifications when necessary. The setback with this, however, is that the program can only be run in a PC that has the Visual Basic 3.0 program installed and all the necessary files must be manually loaded. Details of this are given in the Technical manual that accompanies this user manual.

The user manual gives a screen-by-screen description of how to use the PVPM software while the technical manual gives the source code for the software.

The manual was written in MS Word, and I created all the images and icons using MS Paint.

Here are some screen shots of the program interface:
Single Channel Mode
Multi Channel Mode
Loading Image
This last image is what loaded first when the program ran, much as a flash image would load now.

The plan was to transition from VB3.0 and recode the system using LabView, and we bought and installed the software, but I left the institution before that part of the project begun. I lost contact with the research group after some time and I’m not even sure if they recoded the system and if the project is still running.

User and Technical Manual for the PVPM System