PHP, programming, software, Wordpress

Simple WordPress Page Redirect Hack

I recently was looking for a way to setup a WordPress Page that actually was just a link/placeholder for an external site. This allows me to have my external page be automatically part of a theme’s navigation, etc. The solution I used is actually pretty simple and allows for an unlimited number of instances of these “redirect pages” without having…

Continue Reading

.net, programming

Rename an email attachment before sending in .NET

I recently had the need to send an email with a file attachment from disk. The problem I faced was that the filename was not very user friendly at all. What I didn’t want to do however was rename the file on disk, or create another copy of the file with a more generic name, that could create conflicts with…

Continue Reading

.net, programming

How to use the My Namespace in C#

When I was first trying to transition from VB.NET to C# I found it pretty odd that the “My” Namespace wasn’t available in C#.  If you aren’t aware of what I’m talking about, the Microsoft.VisualBasic.MyServices namespace (My in Visual Basic) provides easy and intuitive access to a number of .NET Framework classes, enabling you to write code that interacts with the computer,…

Continue Reading

.net, programming, software

Use ASP.NET and DotNetZip to Create and Extract ZIP Files

I recently came across this article from Scott Mitchell, that shows how to use DotNetZip to create and extract ZIP files in an ASP.NET application, and covers advanced features like password protection and encryption. The article details all that you can do with the feature-rich, free, open source ZIP implementation for .NET – DotNetZip. Using DotNetZip and a dash of .NET code…

Continue Reading

.net, programming, user groups

CMAP Main Meeting – Tuesday, December 7th – IIS Express, Razor, and WebMatrix, OH my!

CMAP Main Meeting – Tuesday, December 7th – IIS Express, Razor, and WebMatrix, OH my! – G. Andrew Duthie When: Tuesday, November 7th, 6:30 PM – 9:00 PM Where: HCC Business Training Center, 6751 Columbia Gateway Drive, MD, 21046 Topic: IIS Express, Razor, and WebMatrix, OH my! Does the announcement of so many new technologies make you wonder where the…

Continue Reading

.net, JavaScript, programming, software

Forcing a user to read (or scroll through) all text before accepting terms

If you’ve used a computer before you’ve undoubtedly scrolled through and agreed to some sort of agreement.  Most likely it was some sort of software license agreement that you didn’t read about some website you were signing up on or an application that you were installing. Maybe, if you’ve installed enough software or been on enough websites you’ve come across…

Continue Reading

.net, CMD HTTP Request

CMD HTTP Request – command line HTTP request utility

More and more I find that I need to setup some kind of job or scheduled task to accomplish something in .NET on a reoccurring basis.  Typically in the past I’ve written Windows Services to accomplish this.  While effective, these definitely take longer to write and are harder to debug than say a simple ASP.NET page.  What I’ve done lately…

Continue Reading