How to share a folder using NET SHARE in BATCH

  1. Go to the command window (WindowsKey+R to lauch the Run Window -> Type cmd and enter)
  2. Type: net share ShareName=C:\temp

undefined method `time_zone=’ for # (NoMethodError)


I faced this error on OS X – Leopard when I updated my gems and created a new rails project. The problem is that Leopard ships with gem pointing to ….or you could be on a different platform with the same issue.


Uninstall Rails (Currently 2.0.2 is the latest release)…so anythig > 2.0.2 should be removed.

1. Remove all versions > 2.0.2 (or latest release) of rails (or all other versions if you don’t use them: sudo gem uninstall rails)

2. Make sure the source is pointing to “” by running gem source. If it is pointing to “”, remove it by typing the following: sudo gem remove -r “”

3. Run: sudo gem install rails -v 2.0.2 to install the latest release version

Remember to recreate your rails project for any new projects as they create files that cause problems. For older projects, just making sure the right version is installed should work.

/!\ FAILSAFE /!\ – Mystereous Error Message

If you have ever seen the following error message after adding some functionality:

/!\ FAILSAFE /!\ Thu Apr 24 18:25:01 -0700 2008
Status: 500 Internal Server Error
wrong number of arguments (1 for 0)

You probably added a method called Send which is causing this error to be thrown.
Rename your method to something other than ‘Send’.

Dovecot IMAP Authorization Slow

My dovecot is setup to authenticate users from MySQL. However, the process was taking about 4 seconds and I kept wondering what the issue was for a while. Finally, I took some time to dig into it and here is what I discovered:


PAM was enabled, which is something I am not using.
At the same time the PAM file in /etc/pam.d/dovecot contained the following:#%PAM-1.0
auth required
auth include system-auth
account include system-auth
session include system-auth

Go to the dovecot configuration file (generally under /etc/dovecot.conf) and comment out the following section

passdb pam {
… generally comments

Once you have commented the start and end of that section, restart dovecot (eg: service dovecot restart)

Try to connect to the IMAP server and login – It will be LIGHTNING FAST!!