Linux

Thunderbird: Check all IMAP folders for new mail

This is a little trick to make the Thunderbird e-mail client check all folders for new mail without activating the “Check this folder for new messages” manually on all my folders. This is useful since I have my e-mail filters run on the server using procmail. Add the following line to your user.js (create the […]

Read More
Photo etc

Rename image files according to EXIF date

This rename trick can be run in Windows, Linux and even Mac since the commandline program I’m going to use, exiv2, is available in all three platforms. Rename all image files in current folder to the format YYYYMMDDHHMM_Filename.EXT This has been tested on my Nikon D80 JPEG and NEF image files. Linux exiv2 -r’%Y%m%d-%H%M_:basename:’ rename […]

Read More
Windows

Delete print queue in Windows 2003 Server manually

It is sometimes necessary to delete the print queue when a printjob won’t be deleted from Printers and Faxes. To delete print jobs manually you should stop the Print Spooler service from and then delete all the files in the C:\Windows\System32\Spool\Printers\ folder. Remember to start the Print Spool service afterwards, otherwise nowone can print. Please […]

Read More
Windows

Free 2008 calendar for download

I’ve modified my calendar and saved it as a Adobe Acrobat (PDF) document free for download. You can easily modify this calendar if you have Adobe Illustrator available or any other software that can edit PDF-files.A possible alternative to my calendar is to use The Calendar Printing Assistant for Office Outlook 2007, an application for […]

Read More
Scripting

Formatting date in MS-DOS batch file

I needed to make a simple MS-DOS backupscript in Windows XP today and the files were supposed to be stored in folders named by the current date, ISO style. I ended up formatting the date using the following command echo %date:~6,8%-%date:~3,2%-%date:~0,2% Output 2007-10-02 The script @echo off REM Declare variables Set TODAYSDATE=%date:~6,8%-%date:~3,2%-%date:~0,2% Set DATADRIVE=c: Set […]

Read More