Displaying an Image Without Locking its File

The PictureBox control is one of the most used controls in Windows Forms applications. And sometimes you might want to delete the image file that is displayed on it. Doing so with an image displayed …

Opening a File With its Default Program

When developing a Windows Forms application you sometimes need to open a file using the default program associated with it automatically for the user view or edit it. This could be done by just calling …

Creating Your Own URL Shortening Service With YOURLS

YOURLS (stands for Your Own URL Shortener) is a set of PHP scripts that allow you to create your own URL shortening service. Like most scripts its requirements Apache with Mod_Rewrite, PHP and MySQL which …

3 Affordable Stock Photography and Vector Art Websites

As a web developer and blogger I'm always looking for affordable photos and illustrations to use in CodeHill and the other websites I work on. I've been using these three stock photography websites for a …

Streaming Music and Videos with GNUMP3d

I have been trying different streaming servers the past few days for a project I'm working on. Out of the ones I tested so far none was as easy to install and configure as the …

Detect if you are Running a Virtual Machine

Would you like to know if your server's OS is running on bare-metal or on a virtual machine. imvirt and virt-what are 2 Linux scripts that allow you to do so easily. Both are open …

Banning IPs using .htaccess

One of the many features the file .htaccess provides for a website is the ability to ban IP addresses or ranges of IP addresses from accessing it. This could be useful when a spambot, scrapper …

2 Ways to Redirect URLs in PHP

  • 2010-05-03
  •   PHP
The ability to redirect URLs in PHP can be very handy. A common use of redirects is when a page has become obsolete and you would like to redirect the user to a more current …

Displaying the Number of Visits in a WordPress Blog Post

I thought it would be a good idea to show how many visits a blog post had since it was published. One of the web tracking tools I use is WordPress.com Stats, and it's the …

Host Your Webpage Using Your Own Computer

There are many web hosting companies available willing to host your website for various monthly fees. Most of these fees are based on bandwidth usage, storage usage and anything else they can think of to …