锘??xml version="1.0" encoding="utf-8" standalone="yes"?>色天使亚洲综合在线观看,久久亚洲国产精品成人AV秋霞,亚洲国产高清人在线http://www.tkk7.com/uiiang/category/13398.html涓栦漢鐨嗘湁鎮(zhèn)插搥錛屽彧鏈変綘涓嶆槑鐧?/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.tkk7.com/uiiang/archive/2006/10/30/78089.html灝忓己灝忓己Mon, 30 Oct 2006 09:09:00 GMThttp://www.tkk7.com/uiiang/archive/2006/10/30/78089.htmlhttp://www.tkk7.com/uiiang/comments/78089.htmlhttp://www.tkk7.com/uiiang/archive/2006/10/30/78089.html#Feedback0http://www.tkk7.com/uiiang/comments/commentRss/78089.htmlhttp://www.tkk7.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 鈥搒ystem
#install Rails and dependencies gem install rails 鈥搃nclude-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.tkk7.com/uiiang/archive/2006/10/30/78088.html灝忓己灝忓己Mon, 30 Oct 2006 09:07:00 GMThttp://www.tkk7.com/uiiang/archive/2006/10/30/78088.htmlhttp://www.tkk7.com/uiiang/comments/78088.htmlhttp://www.tkk7.com/uiiang/archive/2006/10/30/78088.html#Feedback0http://www.tkk7.com/uiiang/comments/commentRss/78088.htmlhttp://www.tkk7.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.tkk7.com/uiiang/archive/2006/10/30/78032.html灝忓己灝忓己Mon, 30 Oct 2006 06:00:00 GMThttp://www.tkk7.com/uiiang/archive/2006/10/30/78032.htmlhttp://www.tkk7.com/uiiang/comments/78032.htmlhttp://www.tkk7.com/uiiang/archive/2006/10/30/78032.html#Feedback0http://www.tkk7.com/uiiang/comments/commentRss/78032.htmlhttp://www.tkk7.com/uiiang/services/trackbacks/78032.html闃呰鍏ㄦ枃
Dave Thomas: Programming Ruby, Second Edition, Pragmatic Bookshelf, 2005 Ruby涔︾睄涓殑鏍囧噯钁椾綔錛屾瀬鍏鋒帹鑽愪環(huán)鍊箋?/span>
Hal Fulton: The Ruby Way, Sams, 2001 榪欓儴涔︿笉浠呬粎鏈塕uby璇█鐨勬渶鏂扮姸鍐碉紝榪樻彁渚涗簡(jiǎn)涓鐧句釜妗堜緥錛屽緢鏈夋剰鎬濄?/span>
# 闈炲父媯掔殑緙╄繘聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 while line = file.readline聽聽聽聽聽聽聽 聽 if !comment_line(line)聽聽聽聽聽聽聽聽聽 聽聽聽 lines.add(line)聽聽聽聽聽聽聽聽聽聽聽聽聽聽 聽 end聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 end聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
# oh锝?oh锝?鎮(zhèn)ㄨ繖鏄拰澶栨槦浜哄鐨勫惂聽 while line = file.readline聽聽聽聽聽聽聽 聽聽聽 if !comment_line(line)聽聽聽聽聽聽聽 聽聽聽 聽聽聽 lines.add(line)聽聽聽聽聽聽聽聽聽聽 聽聽聽 end聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽 end聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽
聽聽聽 鏈夌浉搴旂殑鏁板榪愮畻絎︿互渚涗嬌鐢紝鏁板瓧鐨勫鍑忕敤榪愮畻絎?+= 涓?-= 鏉ュ疄鐜幫紝 鍑?guó)檱?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閲岄潪娉暵犅犅犅犅犅犅犅?