Author: corey

  • Philly ‘burbs meetup

    Philly ‘burbs meetup

    I made a poster for my favorite WordPress meetup.

  • When renaming your WP admin user, don’t neglect your comments

    A few months ago, popular people in the WordPress community (including Matt) made a push to stop using the user name “admin.” A considerably-sized brute force attack targeted this user name specifically since so many users never change or create an administrator with another name. I followed the wisdom of the crowd and this post…

  • Clobber spam users WordPress plugin

    I’ve built another plugin for WordPress websites with open registration. This plugin makes it easy to prevent spam accounts from publishing posts. Frequently asked questions What does this thing do? This plugin adds an item to the Users menu of your administration dashboard. Click the “Clobber Spam” link and you will see a page that…

  • Detecting mixed case strings in ASP Classic

    I needed to detect a mixed case string in classic ASP. I define a mixed case string as containing both upper and lower case characters, like AuxagGsrLpa. I could not find a free function on the web to make this decision, so I wrote one. = 65 and asc( currentChar ) = 97 and asc(…

  • Matching MD5 hashes in ASP.NET and ASP Classic

    The goal of this page is to put two MD5 code samples on the same web page, one for ASP classic and one for ASP.NET. String formatting (like ASCII vs UTF-8) can trip up coding these two routines. These two code samples will produce the same MD5 hash output. Classic ASP/VBScript MD5 The ASP code…

  • aspSmartUpload.dll usage

    aspSmartUpload.dll Q&A Frequently asked questions IIS7 installation and configuration Registry key and properties Troubleshooting errors Downloads and official documentation What is aspSmartUpload.dll? A 32-bit library to facilitate file uploads via ASP Classic and IIS. Will aspSmartUpload.dll work on Windows Server 2008 64 bit with IIS7? Yes. IIS7 Installation and configuration Install at C:\Windows\SysWOW64\ Register the…

  • How to: add images to reddit sidebar

    Here is one quick and dirty way to add an image to the sidebar of a subreddit. You must be a moderator of a subreddit in order to edit its stylesheet. Upload the image Add this CSS to the stylesheet: /* add image to the bottom of the sidebar */ .side .usertext-body{ padding-bottom: 400px; background:…

  • gif2frames.exe: Extract frames from an animated GIF

    I built a Windows 32 bit command line executable, gif2frames.exe. (Go to download) This tool will take an animated GIF image file and save a separate static image for each frame in PNG, BMP or JPG format. The reason GIFs are useful is because the files can be optimized to reduce the size on disk.…

  • Top users WordPress plugin

    I wrote a new plugin to list the contributors to a WordPress website. The comment and post counts are added together, and the top X users are listed in a simple table alongside the counts. Download top-users-by-comment-plus-post-count.zip. Installation instructions Upload the `top-users-by-comment-plus-post-count` folder to the `/wp-content/plugins/` directory Activate the plugin through the ‘Plugins’ menu in…

  • Disable comment author links in WordPress

    I just wrote a new plugin to disable commenter names from linking to the website URLs they may provide when commenting. Some themes allow commenters to provide a home page URL along with their comment. The comment author’s name then becomes a link to that website wherever it appears on your site. This plugin removes…

  • Add content to the bottom of every WordPress post

    Bottom of every post is a WordPress plugin I wrote in July of 2011. This plugin is a simple filter that adds some content to the bottom of each post. I thought for sure a plugin like this would already exist, and I was surprised to find a few very complex solutions with way more…

  • “Time ago” formatting in ASP classic

    Today, I needed to convert a time stamp like “1/25/2011 10:42:11 AM” to a readable sentence format like “2 months and 6 hours ago.” Here’s the code I came up with: function timeAgo( byval time ) sentence = “” hits = 0 piecesAgo = array( 0, 0, 0, 0, 0, 0 ) piecesTotals = array(…