www.question-defense.com 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

These commands will directly draw the following to a .png file这些命令将直接得出以下的。 png文件
1. 1 。 Database Models数据库模型
2. 2 。 Mailer models梅勒模式
3. 3 。 Observer models观察模式
4. 4 。 Associations (with lines and arrows)协会(同线和箭头)
5. 5 。 Inheritance among classes (for regular models, mailers, and observers)除继承班(经常模型,邮寄和观察员)

As root user:作为root用户:

 gem install railroad宝石安装铁路 
 yum install graphviz百胜安装graphviz 

 cd rails_app_root裁谈会rails_app_root 

 railroad -a -i -M | dot -Tpng > models.png铁路一一米|点Tpng “ models.png 

Be sure to run the last command as root user, otherwise you’ll get this error:一定要运行的最后命令root用户,否则你会得到这个错误:
Error: Layout was not done. 错误:布局却没有这样做。 Missing layout plugins? 失踪布局插件?

Here’s the result in png format这是导致png格式

models.png

Tags:标签: , , ,

评论 No Comments »没有评论»

Converting iTunes files or MPEG4 files to MP3 format is easy using the iTunes client.转换的iTunes文件或MPEG4格式文件, MP3格式很容易使用iTunes客户端。 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转换成MP3文件在任何时间。

iTunes 8.x or Higher: 的iTunes 8.x或更高:

  1. Open iTunes: Double click on iTunes to open the application. 打开iTunes :双击iTunes上打开应用程序。
  2. Open Preferences: Click “Edit” in the top navigation and choose “Preferences” from the drop down. 开盘优惠:按一下 “编辑”在顶端的导航,并选择“使用偏好”从下拉。
  3. Read the rest of this entry »阅读其余本条目»

    Tags:标签: , , , , , , , , ,

评论 No Comments »没有评论»

Installing dig on a CentOS Linux server is easy with yum.安装挖了CentOS Linux服务器很容易荫。 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 [ @根服务器〜 ] #百胜安装结合utils 

Now you can run something like the below using dig to find MX records.现在您可以运行像使用下面挖找到记录。

Read the rest of this entry »阅读其余本条目»

Tags:标签: , , , , , ,

评论 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.可能是在试图卸载SlingPlayer移动的Windows智能手机从您的Windows电脑,你将不能够这样做。

The initial error I received was the fact that ActiveSync was not installed.最初的错误是我收到的事实, ActiveSync的是没有安装。 The details of the error are below.详细的错误如下。
ERROR: SlingPlayer Mobile For Windows Smartphone - InstallShield Wizard 错误: SlingPlayer移动的Windows智能手机-I nstallShield向导
ERROR: Microsoft ActiveSync is Not Installed. 错误:微软ActiveSync没有安装。 Please install Microsoft ActiveSync 3.8 or greater to continue Installation.请安装微软ActiveSync 3.8或更高继续安装。

Read the rest of this entry »阅读其余本条目»

Tags:标签: , , , , , , , , , ,

评论 No Comments »没有评论»

Error in Rails 2.2.2 误差在钢轨2.2.2
Status: 500 Internal Server Error 现状: 500内部服务器错误
Can’t connect to local MySQL server through socket ‘/opt/local/var/run/mysqld/mysqld.sock’ (2) 无法连接到本地MySQL服务器通过插座' /选择/地方是/ var /运行/ mysqld / mysqld.sock ' ( 2 )

Add the socket location to database.yml新增的插座位置database.yml

 production:生产: 
 adapter: mysql适配器:数据库 
 encoding: utf8编码:来做 
 database: example_production资料库: example_production 
 username: root用户名:根 
 password: passwordie密码: passwordie 
 pool: 5池: 5 
 socket: '/var/lib/mysql/mysql.sock'插座: '是/ var / lib /数据库/ mysql.sock ' 
 host: 127.0.0.1主办: 127.0.0.1 

Reference 参考 : database.yml in Ruby on Rails : database.yml在Ruby on Rails的

Tags:标签: , ,

评论 No Comments »没有评论»