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
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

Tags:
diagram,
models,
railroad,
rails
No Comments »
Posted by: alex in Insights
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:
- Open iTunes:Double click on iTunes to open the application.
- Open Preferences: Click “Edit” in the top navigation and choose “Preferences” from the drop down.
Read the rest of this entry »
Tags: Apple, convert, encoder, import settings, iTunes, mp3, mp4, mpeg-4, playlist, preferences
No Comments »
Posted by: alex in Insights
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:
bind,
bind-libs,
bind-utils,
CentOS,
dig,
Linux,
yum
No Comments »
Posted by: alex in Errors
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:
activesync,
force uninstall,
installshield,
microsoft,
mobile,
registry,
revo uninstaller,
slingplayer,
smartphone,
uninstall,
windows
No Comments »