??xml version="1.0" encoding="utf-8" standalone="yes"?>久久中文亚洲字幕,亚洲精品国产日韩,亚洲精品日韩一http://www.aygfsteel.com/uiiang/category/13398.html世h皆有悲哀Q只有你不明?/description>zh-cnFri, 02 Mar 2007 06:36:27 GMTFri, 02 Mar 2007 06:36:27 GMT60Install Ruby on Rails , Lighttpd,Sqlite3 and Mongrel under Ubuntuhttp://www.aygfsteel.com/uiiang/archive/2006/10/30/78089.html强强Mon, 30 Oct 2006 09:09:00 GMThttp://www.aygfsteel.com/uiiang/archive/2006/10/30/78089.htmlhttp://www.aygfsteel.com/uiiang/comments/78089.htmlhttp://www.aygfsteel.com/uiiang/archive/2006/10/30/78089.html#Feedback0http://www.aygfsteel.com/uiiang/comments/commentRss/78089.htmlhttp://www.aygfsteel.com/uiiang/services/trackbacks/78089.html
nothing but the script I used: #install Mysql apt-get install mysql-server
#install Ruby and relative apt-get install irb libdbm-ruby1.8 libgdbm-ruby1.8 libmysql-ruby1.8 libmysqlclient14 libopenssl-ruby1.8 libruby1.8-dbg mysql-common ri ri1.8 ruby1.8-dev
#install rubygems wget http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz tar zxfv rubygems-0.9.0.tgz cd rubygems-0.9.0 ruby setup.rb gem update –system
#install Rails and dependencies gem install rails –include-dependencies
#before install Mongrel, apt-get install install build-essential #we need it to compile mongrel and Sqlite3
#install Sqlite3 apt-get install sqlite3 swig libsqlite3-ruby libsqlite3-dev gem install sqlite3-ruby #compile this need libsqlite.h
#install Lighttpd apt-get install lighttpd
some useful link http://mongrel.rubyforge.org/docs/lighttpd.html http://fo64.com/articles/2005/10/20/rails-on-breezy http://scottstuff.net/blog/articles/2006/07/23/typo-installer
]]>Install Ruby Rails on Ubuntu Dapper Drakehttp://www.aygfsteel.com/uiiang/archive/2006/10/30/78088.html强强Mon, 30 Oct 2006 09:07:00 GMThttp://www.aygfsteel.com/uiiang/archive/2006/10/30/78088.htmlhttp://www.aygfsteel.com/uiiang/comments/78088.htmlhttp://www.aygfsteel.com/uiiang/archive/2006/10/30/78088.html#Feedback0http://www.aygfsteel.com/uiiang/comments/commentRss/78088.htmlhttp://www.aygfsteel.com/uiiang/services/trackbacks/78088.html转自:http://www.urbanpuddle.com/articles/2006/06/10/install-ruby-rails-on-ubuntu-dapper-drake
This is a small guide I wrote up to installing Ruby on Rails on Dapper Drake. It covers getting lighttpd running to support both rails and php which will be useful to anyone who likes to use phpmyadmin along with ruby on rails. It's similar to the article I wrote earlier for Arch Linux except modified for Ubuntu's Dapper Drake release.
1. Make sure the universe repository in /etc/apt/sources.list is uncommented: deb http://us.archive.ubuntu.com/ubuntu dapper universe deb-src http://us.archive.ubuntu.com/ubuntu dapper universe
2. Make sure you are up to date: sudo apt-get update sudo apt-get dist-upgrade
3. Install the ruby base packages: sudo apt-get install ruby ri rdoc mysql-server libmysql-ruby
4. We need to grab the latest ruby gems from rubyforge. You may need to modify this command if a version after 0.90 is available. sudo wget http://rubyforge.org/frs/download.php/11289/rubygems-0.9.0.tgz tar -xvzf rubygems-0.9.0.tgz cd rubygems-0.9.0 sudo ruby setup.rb
5. Now let's install Ruby on Rails! sudo gem install rails --include-dependencies
6. We have Rails but we still need lighttpd and mysql. I've thrown in PHP too in case you want to manage your database with phpmyadmin like I do. Let's grab all the packages, shall we? sudo apt-get install lighttpd php5-cgi php4-cgi php5-mysql php5-mysqli php4-mysql libfcgi-dev libfcgi-ruby1.8
7. Modify your /etc/lighttpd/lighttpd.conf file to set up your domains. Be careful because by default Ubuntu maps all the images so that they are taken from /usr/share/images instead of your/rails/root/public/images so if you're wondering why your rails app is working but your images aren't being displayed this is why. You can take out the offending code in your lighttpd.conf or just put your images in /usr/share/images.
8. Time to enable some modules for lighttpd. There are others that you may need but they should be enabled in your lighttpd.conf. Personally, I'm not a fan of enabling modules two different ways but I'm sure this will get cleaned up eventually. sudo /usr/sbin/lighty-enable-mod fastcgi sudo /usr/sbin/lighty-enable-mod proxy sudo /etc/init.d/lighttpd force-reload
9. Let's make sure that there are no errors by stopping lighttpd and then starting it manually: sudo /etc/init.d/lighttpd stop sudo lighttpd -f /etc/lighttpd/lighttpd.conf
If you have errors there make sure you take a look and try to address them! The output you see will be your best bet in getting help from somebody on one of the forums.
10. Install some basic gems you might need to run your rails app: sudo gem install actionmailer sudo gem install activesupport sudo gem install actionpack sudo gem install actionwebservice
And now you should have a new, shiny, ready to go Ubuntu Dapper Drake server just waiting for your PHP or Ruby on Rails applications!
]]>A Guide to Testing the Railshttp://www.aygfsteel.com/uiiang/archive/2006/10/30/78032.html强强Mon, 30 Oct 2006 06:00:00 GMThttp://www.aygfsteel.com/uiiang/archive/2006/10/30/78032.htmlhttp://www.aygfsteel.com/uiiang/comments/78032.htmlhttp://www.aygfsteel.com/uiiang/archive/2006/10/30/78032.html#Feedback0http://www.aygfsteel.com/uiiang/comments/commentRss/78032.htmlhttp://www.aygfsteel.com/uiiang/services/trackbacks/78032.html阅读全文
Dave Thomas: Programming Ruby, Second Edition, Pragmatic Bookshelf, 2005 Ruby书籍中的标准著作Q极h荐h倹{?/span>
Hal Fulton: The Ruby Way, Sams, 2001 q部书不仅仅有Ruby语言的最新状况,q提供了一百个案例Q很有意思?/span>
有相应的数学q算W以供用,数字的增减用q算W?+= ?-= 来实玎ͼ C ?Java ?++ ?-- ?Ruby 里是没有的?br /> a = 2 b = 3 c = a + b # 5 c = a - b # -1 c = a / b # 0 c = 2.0 / b # 0.666666666666667 c = a * b # 6 c = a**b # 2*2*2 = 8 a += 1 # a = 3 a -= 1 # a = 2 a++ # Ruby里非法 ?
s = %Q@ein String über mehrere Zeile mit "" und '' und durch einen Klammeraffen begrenzt@ puts s => ein String über mehrere Zeile mit "" und '' und durch einen Klammeraffen begrenzt puts s.inspect => "ein String \374ber mehrere\n Zeile mit \"\" und '' ... ...und durch \n einen Klammeraffen begrenzt"
一个表辑ּ的结果可以通过#{Ausdruck}插入C个字W串中,然而这只有在双引号之间有效?
"Ergebnis #{42*7/100} %" # Ergebnis #{2.94} % "Die Anwort ist: #{answer(x)}" # Die Anwort ist: 42
如C与Java所惯用的,ҎW号由斜杠逃脱Q表1.1列D了所有的ҎW号Q?
"Ein Slash: \\" # Ein Slash: \ "Er rief: \"Ralf!\"" # Er rief: "Ralf!" 'War\'s okey?' # War\'s okey? "Neue\nZeile" # Neue #Zeile 'Neue\nZeile' # Neue\nZeile