image_pdfimage_print

Nice Flash messages in Rails 2 and Rails 3

I’ve been doing some Rails work recently and one of the things that I’ve found to be a nice aesthetic add-on is putting some nicer flash messages in. Over at dzone.com there is an example which I’ve worked off of – http://snippets.dzone.com/posts/show/3145 The example is as follows. Add this section to your application_helper.rb def show_flash [:notice, :warning, :message].collect do |key| …

PowerShell – Active Directory – Email users with password expiry < 14 days

PowerShell – Active Directory – Email users with password expiry under 14 days This script is handy for users who are not typically on your network (remote access, email only etc…). Normally users are warned at 14 days before expiry unless they are not logging into Active Directory through the workstation in which case they will not receive warnings until …