Posts in the ‘Programming’ Category

Does anybody know of any way to have IIS automatically restart itself every few hours? Do tell.

Code 10x More Efficiently Using Data Access Objects and PHP

Great tutorial for beginners: Rotating Banner Ads using a Database

Scrolling Ticker Headline

After hours and hours of googling, I finally found the only javascript horizontal text scroller that doesn’t suck.
If anyone knows of a better one, please let me know. While we all wait I’ll be re-coding this to accept input from an external database and building an ASP front-end for editing it …

Configure IIS to Parse CGI Files

Here’s what you want to do:

  • You want your Windows 2000 web server to always execute files with a *.cgi extension.
  • You want your Windows 2000 web server to parse the ASP code that you’ve embedded in files that end in *.htm, *.shtml, *.css.
  • You want your Windows 2000 web server to know that it needs to parse these file types for all the domains on the machine and you don’t want to modify the settings for each domain.

Read the rest of this entry »

SetupStream 2

SetupStream 2 gives you the possibility to create small, powerful and feature-rich Setup Wizards in modern, easy-to-use and user-friendly outlook. It is meant to be a serious alternative to commercial Installation Suites.

Pop-Up Windows

Use Eric’s Popup window Generator to easily add popup windows to your site! The windows are activated by clicking on a link, and can be fine tuned in every aspect, such as dimensions, scrollbars, toolbar etc. Awesome tool.

JavaScript Trick

Want to spice up your web site with some easy JavaScript tricks? I’m going to show you how to make your buttons, text boxes, and textareas change their colors. All you need are four attributes and some additional functions in your javascript file. (If you want to learn about adding a javascript file to your site, read this.)
Read the rest of this entry »

htaccess Files

The Scriptygoddess wrote a terrific little tutorial on protecting your bandwidth from image-link theft by modifying your .htaccess files.

XMLHTTP

I found a nifty tutorial on Using Microsoft’s XMLHTTP Object to Get Data From Other Web Pages at 4GuysFromRolla.com that might interest some readers. And over at ASP101.com there is a lesson on creating a shopping cart in ASP for your small business web site.

OOP Myths

Ironically, [Object-Oriented Programming] is sometimes billed as “better fitting the way people think”. Years of meditation and study to learn how to “think naturally”? I am thinking of setting up a $60-per-hour consultancy to teach sports fans to drink beer and belch in order to “optimize their recreational satisfaction”.

link via webword

How to Create a Pop-Up eMail This Entry Window in MovableType

Several people have asked me how I did it, so I wrote a tutorial on how to create a pop-up ‘eMail This Entry’ window in MovableType. Here it is.

PLEASE NOTE:
This tutorial is based on MovableType Version 2.1 only. If you have upgraded to Version 2.2 I advise you to wait until I have had a chance to update the tutorial!

Read the rest of this entry »

PHP and MySQL

New Languages

Brinkster is a free web host that supports ASP. You get 30 MB of space and no ads on your site, plus ASP 3.0 support, MS Access databases, a web-based file manager, and control of the ADO & FileSystemObject. How cool is that?

There is a great article on / introduction to the syntactical differences between VB.NET and C# at 4GuysFromRolla.com. 4Guys is really one of the best sites on the ‘net for Active Server Pages tutorials and information. DevGuru is another good one. What’s your favorite?

flastmod

Ever hear of the flastmod include? Me neither. Here’s what it does. You can use it just like a #include directive server-side include, except instead of including a file, it returns the last modified timestamp of the file you request. If you’re using SSI in your site, add:

<!– #flastmod file=”index.shtml” –>

to any parsed file (ending in shtml) and it will print the last modified timestamp of whichever file you pass as the parameter. Nifty, eh? (See the bottom of the Works in Progress index page for an example.)
Note: MovableType users can simply use the <$MTDate$> tag to get the same data.