/home » workblog

Entries for the ‘Miscellaneous’ Category

Automated FTP Uploads/Downloads

ISINC has a writeup on how to pass a batch file of commands to Window’s command line FTP client. You can then create a Scheduled Task to automate them.

Troubleshooting htaccess

If you’re troubleshooting an htaccess file and aren’t seeing any changes, no matter what you put in the file, make sure that you have permissions to execute the directives you’re using. Check Apache’s conf file to see if AllowOverride None is set for your site or directory. If it is, add the directives that you [...]

Making Coding Mistakes Obvious

Joel Spolsky wrote an interesting article on ways to make coding mistakes obvious, like using semantic prefixes on variable names. If you have unfiltered data from the user, you can make the variable something like $usFoo so that you always remember that the data is unsafe, and won’t output it unfiltered (therefore preventing malicious code injection).

URL Parameters for Google Maps

Mapki has a detailed list of URL parameters for Google Maps. Setting daddr is useful when you want to create a link for a user to get directions. You can also control the zoom level, type of map (normal, satellite, terrain, etc), overlay information and lots of other things.

Free Icon Sets

These are some of the better free icon sets I’ve seen:

Axialis
Photoshop Style File Icons
Silk
Fugue
Chalkwork HTML