Category: Web Development

  • Automatically redirect to HTTPS with .htaccess

    I caught the flu last week that’s why I haven’t been posting regularly.  =0( Anyway, I wrote previously on how to password-protect a website/page, but in this post I’ll show you how to redirect a user automagically to HTTPS. All you need to do is add the following in the .htaccess file (I’ll be using…

  • Creating a self-signed cert

    If you need to support or serve your website using SSL, but only for personal purposes, such as a webmail, you’ve probably come across the problem of creating your own server certificate. Secure Sockets Layer (SSL), are cryptographic protocols which provide secure communications on the Internet for such things as web browsing, e-mail, Internet faxing, instant messaging…

  • Bad-Behavior MediaWiki Plugin Fix

    If you use MediaWiki to power your wiki, you’ve probably heard of the Bad-Behavior plugin to help fight spam. Bad Behavior is a set of PHP scripts which prevents spambots from accessing your site by analyzing their actual HTTP requests and comparing them to profiles from known spambots. It goes far beyond User-Agent and Referer,…

  • How to POP3 in C#

    ,

    Here’s an excellent how-to on using POP3 in your C# apps.  I’ve used it successfully. <font face="Verdana" color="#000000" size="2">The Pop3 class derives from the System.Net namespace:</font><font size="2"><span style="color: rgb(0,0,255)">public</span> <span style="color: rgb(0,0,255)">class</span> <span style="color: rgb(43,145,175)">Pop3</span> : System.Net.Sockets.<span style="color: rgb(43,145,175)">TcpClient</span></font><font size="2"><span style="color: rgb(43,145,175)"></span></font>&nbsp;<font size="2"><font face="Courier New"><span style="color: rgb(43,145,175)"><font face="Verdana" color="#000000" size="2">And the class consists of the following fields…

  • Try Ruby online

    Ruby has been getting a lot of praise for a while now, so I decided to give it a try. I was surprised to find so many resources already out there, and one I think worth mentioning is this website. Ruby is a programming language from Japan (available at ruby-lang.org) which is revolutionizing the web.…

  • Get a finalized spec as much as possible

    If you develop software or web apps, you’ve most likely experienced working off of an incomplete spec.  I have, and it’s tremendously frustrating when all the work you’ve developed so far needs to be changed all of sudden because you followed the spec! So here are some points to keep in my mind and push…