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 … Read more

Ruby on Rails tip – generating a project with specific rails version

Let me qualify that I am sporting the “noob” title with my Ruby on Rails development. That being said, I hope that I can offer some small help to other new RoR folks as I learn the ropes myself. This is a simple tip which I have found very handy since I’ve updated my rails … Read more

PowerShell – Listing aged out computer accounts in Active Directory

Do you remember having to use OldCmp.exe  from JoeWare (great tools by the way) to capture a a list of computer accounts which have not been attached to your Active Directory for a period of time. Luckily with PowerShell and Quest ActiveRoles you can do this with a simple two line script. Here’s the code: … Read more

PowerShell – Get serial numbers for computers in Active Directory

There are a lot of posts about pulling data from a file to do actions against computers/users. While this is valuable, I prefer to do dynamic capturing of computer and user objects directly from my Active Directory. This is a simple script which will capture a list of computers from Active Directory and subsequently pull … Read more