Archive

Archive for the ‘Free Utility’ Category

Using PhotoExport to Export Thumbnails from Sims.net

October 12th, 2011 Richard 1 comment

I have just added an option to export thumbnails from Sims.net using our free PhotoExport tool.

The driver behind this was to load the photos into Active Directory for use in Outlook/Exchange 2010. For use in Outlook the photos need to go into the thumbnailPhoto attribute. The attribute’s maximum size is 100Kb, however the Exchange commandlet Import-RecipientDataProperty puts a 10Kb limit on it. In addition the recommended size for images in Outlook/Exchange is 96 x 96 pixels.

So when the thumbnail option is used for PhotoExport, it first checks to see if the image size if over 10Kb and if it is, it then resizes the image so the longest side is 96 pixels. How large the image file size actually is will depend on it’s format of course. With the images from the Sims test database a 96 x 96 bmp is about 22 Kb while the same size Jpeg is only about 3Kb. As the file format required by Outlook/Exchange is Jpeg, then that works out as a good size.

The switch to export thumbnails is /thumbnail, so to export thumbnail jpegs for staff the command would be

PhotoExport username password outputFolder /format:jpg /thumbnail /staff

Here’s a screen shot showing the difference in sizes

photoExportThumbnail

Categories: Free Utility Tags:

Free Utility to Check Email Addresses

July 15th, 2011 Richard No comments

Inspired by a discussion on Edugeek I’ve quickly knocked up a quick utility to check the format of email addresses in a csv file. You can download it from here.

This utility will iterate through an input file and check the validity of email addresses. Each line of the input file must be of the format identifier,email address. The identifier is used in the output message, and the email is of course checked.

Example input file

002345,info@salamandersoft.co.uk
002346,me@domain.com
002347,do not email
    

The utility will pick up the 3rd line as an invalid email address and output

POSSIBLY INVALID:002347:do not email

Internally it uses a regular expression to check the email. This is not perfect and will give false positives when compared to RFC 2822, but it is good enough for most purposes.

The regular expression used is: ^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}$

To use:

  1. Run CheckEmails.exe inputFile
  2. inputFile is the relative of absolute path to the csv file

So to use to check your email addresses in Sims, first create a report which contains their Admission Number and email which saves to csv. The run the report and the use the resulting file as input to CheckEmails.

You can run CheckEmails.exe /? for a brief help summary.

Categories: Free Utility Tags: