Skip to main content

GeoffStratton.com

  • About/Contact
  • GitHub
  • LinkedIn

Author: Geoff Stratton

PHP: Database Access With PDO

March 18, 2016March 16, 2022 Geoff Stratton Leave a comment

PDO, or PHP Data Objects, is a database abstraction extension that allows you to use a common set of commands to access any database for which PDO has a driver. This includes MySQL and compatibles (e.g., MariaDB), PostgreSQL, Oracle, Microsoft SQL Server, IBM DB2, SQLite, and others. While it’s nice not having to rewrite all […]

Loading

Read More

PHP: List Last Updated Files

March 17, 2016March 16, 2022 Geoff Stratton Leave a comment

An old PHP script to list the most recently updated files within a web site using their ‘last modified’ time stamps.

Loading

Read More

Python: Statistics Calculators

March 17, 2016March 16, 2022 Geoff Stratton Leave a comment

Some statistics calculators written for Python 2.x (the str.format() method requires Python >= 2.6). Of course you could just use the numpy or statistics libraries, but where’s the fun in that? All solutions verified where possible by Wolfram Alpha or else by EasyCalculation.com.

Loading

Read More

Python: XML-RPC Requests

March 16, 2016March 16, 2022 Geoff Stratton Leave a comment

Tinkering with Python xmlrpclib, in this case for updating a WordPress blog from the command line. Using Python 2.7.6 here. xmlrpclib is included with Python 2.7, but if you need it, install with Pip.

Loading

Read More

WordPress Plugin Development Tutorial

March 15, 2016March 16, 2022 Geoff Stratton Leave a comment

This article is intended to serve as a simple WordPress plugin development tutorial. For the purpose of demonstration we’ll create a plugin that removes comment spam. For this to work, you have to be running some sort of anti-spam system like Akismet that marks spam comments as such when they’re submitted. Comments are written into […]

Loading

Read More

C#.NET: Doc/Docx to Simple HTML Converter

March 13, 2016October 15, 2022 Geoff Stratton Leave a comment

I have this problem: mo matter what my official job or title, people keep sending me Word documents that they want posted online to match the web site styling. Yes, you can use Word to convert documents to HTML, but Microsoft’s version of “HTML” resembles the Rohonc Codex — little has changed since the days […]

Loading

Read More

C#.NET: Countdown Timer

March 12, 2016March 16, 2022 Geoff Stratton 2 Comments

This is a simple Windows Forms countdown timer I created a few years back. I’d start something in the kitchen, get distracted on the computer, and then burn whatever I was cooking, so I built this to warn myself. The program takes user input into a masked textbox, uses the Systems.Windows.Forms.Timer class to count down […]

Loading

Read More

Web Server Performance 2016

March 9, 2016March 16, 2022 Geoff Stratton Leave a comment

This is a shorthand summary of web server performance and caching systems as of March 2016. General disclaimer: I try to link benchmark results that seem relatively neutral, but as with any survey or study or benchmark roundup, the most pertinent question is cui bono? Ultimately the only reliable benchmarks are those you run yourself […]

Loading

Read More

Securely Erase a Hard Disk

November 11, 2015March 16, 2022 Geoff Stratton Leave a comment

The only method I use to securely erase hard disks is ATA Secure Erase using the hdparm utility. Be sure to read the disclaimers and warnings at kernel.org carefully, since secure erase doesn’t work with all configurations and may brick your drive. The primary benefit of ATA Secure Erase is that it erases 100% of […]

Loading

Read More

CentOS 7: Kickstart Script

November 4, 2015March 16, 2022 Geoff Stratton Leave a comment

Basic CentOS 7 Kickstart installation script for setting up servers automatically. To use, create a bootable disc containing the script below in the /isolinux directory and type linux ks=cdrom:/ks.cfg at the boot: prompt.

Loading

Read More

Posts pagination

Newer posts 1 … 4 5 6 … 11 Older posts

About

This is the home server of Geoff Stratton. There's a little more about me on the About page. The server itself lives in Softlayer's DAL02/06 data center in downtown Dallas, Texas, geolocation 32 47 32.599 N 96 48 53.11 W 125m 10m 100m 10m.

I use this place mostly as a personal knowledge base, although I keep it public in case anything useful emerges. Caveat emptor, and don't go handling snake-skin.

Consider everything posted here to be covered by the GNU Public License Version 3. You should read the whole license, but essentially it means you can do anything you want with the code, including bundle it up and sell it as a new application. The catch is that if you make and distribute a new app, you are required to make all the source code available for free to everyone.

Tip Jar

Did you find something useful here? Please consider a tip. Many thanks!


Buy Me A Coffee


Categories

Tags

Ansible Apache awk Bash C# CentOS Debian DNS Docker Drupal Drush Fedora grep Hardware Hosting IP JavaScript jQuery LDAP Linux Mail Server mtr MySQL Nginx OTRS Perl PHP Plone Pound Python Redis sed SpamAssassin SQL SSL tcpdump TrueCrypt Tutorials ufw Varnish VB.NET Webform Windows WordPress Zope

Archives

sparkling Theme by Colorlib Powered by WordPress