If you get this error:

rake db:migrate RAILS_ENV="staging"

getaddrinfo: Name or service not known

Add host: 127.0.0.1 in your database.yml as shown below:

staging:
adapter: mysql
encoding: utf8
database: staging
username: root
password:
pool: 5
socket: '/var/lib/mysql/mysql.sock'
host: 127.0.0.1
DeliciousStumbleUponDiggTwitterFacebookRedditLinkedInEmail

Comments No Comments »

These commands will directly draw the following to a .png file
1. Database Models
2. Mailer models
3. Observer models
4. Associations (with lines and arrows)
5. Inheritance among classes (for regular models, mailers, and observers)

As root user:

gem install railroad
yum install graphviz

cd rails_app_root

railroad -a -i -M | dot -Tpng > models.png

Be sure to run the last command as root user, otherwise you’ll get this error:
Error: Layout was not done. Missing layout plugins?

Here’s the result in png format

models.png

DeliciousStumbleUponDiggTwitterFacebookRedditLinkedInEmail
Tags: , , ,

Comments No Comments »

You can disable Windows XP Operating System and application errors from being sent to Microsoft. Even though these errors are confidential and will not have your personal information attached to them disabling the errors will stop you from being prompted to send the errors to Microsoft every time something crashes or you kill a process. Also whenever these errors are disabled from being sent to Microsoft you have the option to either still notify you or to not do so. My recommendation would be that even though you disable the errors from being sent to Microsoft annonymously that you should definitely still be notified of these critical errors.

Follow the below steps which detail how to not send the errors to Microsoft but to still watn you of such errors.

Read the rest of this entry »

DeliciousStumbleUponDiggTwitterFacebookRedditLinkedInEmail
Tags: , , , , , , ,

Comments No Comments »

Converting iTunes files or MPEG4 files to MP3 format is easy using the iTunes client. We will want to change the Import Settings which will then allow converting files into the same setting as the Import Settings. Follow the simple steps below and you will be converting your iTunes files to MP3 in no time.

iTunes 8.x or Higher:

  1. Open iTunes:Double click on iTunes to open the application.
  2. Open Preferences: Click “Edit” in the top navigation and choose “Preferences” from the drop down.
  3. Read the rest of this entry »

DeliciousStumbleUponDiggTwitterFacebookRedditLinkedInEmail
Tags: , , , , , , , , ,

Comments No Comments »

Installing dig on a CentOS Linux server is easy with yum. Dig is actually a bind tool so you will be required to install some bind libraries along with the bind utility package.

[root@server ~]# yum install bind-utils

Now you can run something like the below using dig to find MX records.

Read the rest of this entry »

DeliciousStumbleUponDiggTwitterFacebookRedditLinkedInEmail
Tags: , , , , , ,

Comments 3 Comments »