Protecting your website from spam in comments

This article shows how you can effectively protect your website against spam-submissions in comments.

In order to improve the interaction with the visitors of this website, I allowed anonymous users to post comments to all published stories. Since feedback is quite low, I enforced administrator approval of all comments to stay in full control.

However, shortly after enabling comments for anonymous users, I received more and more emails telling me that new comments were posted which needed my approval.

CAPTCHA to the rescue!


Time conversion using Bash

This article show how you can obtain the UNIX epoch time (number of seconds since 1970-01-01 00:00:00 UTC) using the Linux bash "date" command. It also shows how you can convert a UNIX epoch time to a human readable time.

Obtain UNIX epoch time using bash
Obtaining the UNIX epoch time using bash is easy. Use the build-in date command and instruct it to output the number of seconds since 1970-01-01 00:00:00 UTC. You can do this by passing a format string as parameter to the date command. The format string for UNIX epoch time is '%s'.


Windows built-in command-line tools

A list of tools which are available on any Windows operating system.


  • date /t: shows the current date
  • time /t: shows the current time

Windows memory

  • mem /P: Displays status of programs currently loaded in memory.
  • mem /D: Displays status of programs, internal drivers, and other information.
  • mem /C: Classifies programs by memory usage. Lists the size of programs, provides a summary of memory in use, and lists largest memory block available.



Subscribe to RSS