www.question-defense.com | Login/Register
Translate to English Übersetzen Sie zum Deutsch/German Переведите к русскому/Russian Μεταφράστε στα ελληνικά/Greek Vertaal aan het Nederlands/Dutch ترجمة الى العربية/Arabic 中文翻译/Chinese Traditional 中文翻译/Chinese Simplified 한국어에게 번역하십시오/Korean 日本語に翻訳しなさい /Japanese Traduza ao Português/Portuguese Traduca ad Italiano/Italian Traduisez au Français/French Traduzca al Español/Spanish

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

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

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 »

    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 »

Tags: , , , , , ,

Comments No Comments »

It is possible when attempting to uninstall SlingPlayer Mobile for Windows SmartPhone from your Windows PC that you will not be able to do so.

The initial error I received was the fact that ActiveSync was not installed. The details of the error are below.
ERROR: SlingPlayer Mobile For Windows Smartphone - InstallShield Wizard
ERROR: Microsoft ActiveSync is Not Installed. Please install Microsoft ActiveSync 3.8 or greater to continue Installation.

Read the rest of this entry »

Tags: , , , , , , , , , ,

Comments No Comments »