ãã©è£ã«ç§»åããã
â ã³ã¬ã¯ã·ã§ã³ã¯ã©ã¹ ãã¼ã¿ã®éåãæ±ãããã®å½¢å¼ã§ããªãã¸ã§ã¯ãæåè¨èªã§ã¯ ãã³ã¬ã¯ã·ã§ã³ã ã¾ã㯠ãã³ã³ããã ã¨å¼ã°ããã Ruby ã§ã¯ Array ã¯ã©ã¹ã¨ Hasu ã¯ã©ã¹ã¨ãã 2 種é¡ã®ã³ã¬ã¯ã·ã§ã³ãã¯ã©ã¹ã¨ãã¦ç¨æããã¦ããã â Array ã¯ã©ã¹ ãªãã¸ã§ã¯ãã®ä¸¦ã³é ãä¿æããã³ã¬ã¯ã·ã§ã³ã¯ã©ã¹ã§ãä¸è¬ã«é åã¨å¼ã°ãããã®ã 0 ããå§ã¾ãã¤ã³ããã¯ã¹ã使ã£ã¦ãªãã¸ã§ã¯ããæ ¼ç´ããã â é åã®çæ ã·ã³ã¿ãã¯ã¹ã·ã¥ã¬ã¼ >> array = Array.[] => [] >> array = [] => [] new ã«ããè¨è¿° >> array = Array.new => [] é åã«ã¯ãæ§ã ãªãªãã¸ã§ã¯ãã®æ··å¨ãå¯è½ >> array = [1, "two", ['one', 2], :four] => [1, "two", ['one', 2], :f
check Unlimited Number of Websites check Unlimited Email Accounts check Unlimited Bandwidth check 2X Processing Power & Memory check LiteSpeed Cache check WordPress Acceleration (LSCWP) check Cloudflare Protection check Github Integration check 24/7/365 Support check Easy Website Builder check 99.9% Uptime Guarantee check DNS Management check Unlimited MySQL Databases check 100 Subdomains check Un
2010å¹´12æ18æ¥17:55 ã«ãã´ãª vimä¸ã§refeãå¼ãã¨ã¨ã©ã¼ãåãã®ã§ä¿®æ£ã refeã§ã®ã¨ã©ã¼ãä¿®æ£ãrefeãvimä¸ã§ä½¿ã£ã¦ããã¨invalid value for Integer(): "#"invalid value for Integer(): "."invalid value for Integer(): ":"çã®ã¨ã©ã¼ãåãã¦ãªãã¡ã¬ã³ã¹ã表示ãããªãæãããããã®ã¨ã©ã¼ã«å¯¾å¿ã ãã®ãã¼ã ãã¼ã¸ãåèRuby ReFeãã¨ã©ã¼å¯¾å¿ ⪠ip-communityhttp://ip-com.host56.com/?p=717ãã®ãã¼ã ãã¼ã¸ãã¿ã¦ã¨ã©ã¼ãç´ããããã»ãã«ãä¼¼ããããªã¨ã©ã¼ãåºãã®ã§ã¡ãã£ã¨è¿½å ãã»ã¨ãã©ä¸è¨ã®ãã¼ã ãã¼ã¸ã®ä¿®æ£æ¹æ³ã¨ä¸ç·ã èªåããã£ããã¨ã¯Â ã¨ã©ã¼ãåããã£ã©ã¯ã¿ã¼äºã«elsifã追å ããã ããâ 坾妿¹æ³refeã®ã¤ã³ã¹ãã¼
以åãvim7ã®omniè£å®ãã§ããªãã¦ã¯ã¾ã£ã¦ãã åå ã¯vimãã³ã³ãã¤ã«ããã¨ãã«Rubyã¤ã³ã¿ããªã¿ãå«ãã¦ãªãã£ãããã ã£ãã ã§ã ./configure --enable-rubyinterpã¨ããããã§ãmakeãmake installããã®ã ãã© vim --versionã§ç¢ºèªããããRubyãfeaturesã«å ¥ã£ã¦ãªãã£ãã ã¯ã¦ï¼ã¨æã£ã¦configureã®ãã°ãè¦ã¦ã¿ãã Rubyã®header fileããªããã¨ããã®ãåå ããããã¨ãåãã£ãã header fileã£ã¦ãªãã¸ã£ãï¼ã¨æã£ã¦èª¿ã¹ã¦ãã©ããæ°ãã«ã¤ã³ã¹ãã¼ã«ãå¿ è¦ãããã yum install ruby-develã§header fileãã¡ã¤ã«ãã¤ã³ã¹ãã¼ã«ã§ãããï¼OSã¯fedora5ã§ãï¼ ã§ãã¾ãconfigureãmakeãmake installãã¦, vim-rubyãå ¥ãã¦
ä¹ ãã¶ãã«Twitterbotãä½ããã¨æã£ããã rubygemsã§ã¯ã¾ã£ãã ã¡ãã£ã¨åã¾ã§Tigerã®è¨äºãæ¸ãã¦ããããã©ã æ°ãã¼ã§ãMacBookPro(Max OS X 10.6-Snow Leopard)ã貸ãã¦ããããã®ã§ã ãã¼ããã°ã£ãã使ã£ã¦ããw æåã«ãã¡ããMacportsãXcodeãããã¯å ¥ããã®ã ãã©ããã®ã㨠ä½ãèããã« -------------------- $sudo port install ruby -------------------- ãããã ã¨æãããã¶ããï¼ã¶æãããåã®ãã¨ãªã®ã«ããè¦ãã¦ãªãw ã§ããã®ãã¨ä½ãèããã« -------------------- $sudo gem install oauth -------------------- ã¨ããã£ã¦ããããã使ã£ã¦æ¸ããRubyã®ã³ã¼ããå®è¡ãããã¨ãã«ã¨ã©ã¼ãçºç
Update: I noticed that which ruby and whereis ruby reports back different locations: which ruby /opt/local/bin/ruby whereis ruby /usr/bin/ruby I recently upgraded ruby to ruby 1.8.7 (2009-06-12 patchlevel 174) [i686-darwin10] and I think I broke rails. When I attempt to load rails. I get an odd message: $ ruby script/server Rails requires RubyGems >= 1.3.2. Please install RubyGems and try again: h
Apacheãåèµ·åããéã«ã httpd: Could not reliably determine the serverâs fully qualified domain name, using 127.0.0.1 for ServerName ã¨ããã¨ã©ã¼ãåºãå ´åãããã ããã§ãèµ·åã¯ããã®ã§ãApacheèªä½ã¯åãã®ã ããã¨ã©ã¼ããã®ã¾ã¾ã«ãã¦ããã®ã¯æ°æã¡ãæªããããã¨ãã¨åé¡ãå¼ãèµ·ããå¯è½æ§ãé«ãã æ¥æ¬èªè¨³ããã㨠ServerNameã«127.0.0.1ã使ç¨ãããFQDNï¼å®å ¨ã«é©åãªãã¡ã¤ã³åï¼ã確å®ã§ãã¾ããã§ããã ã¨ãã£ãæããã ãã®ã¨ã©ã¼ã¯ã/etc/hosts ã«localhost以å¤ã«èªåã§è¨å®ãããã¹ãåããApacheã®è¨å®ãã¡ã¤ã«ã«å®ç¾©ããã¦ããªãããã«çºçããã # Do not remove the following line, or v
Ruby Weekly is a weekly newsletter covering the latest Ruby and Rails news. Yesterday, Aaron Patterson (@tenderlove) and Mike Dalessio released Nokogiri (Github repository), a new HTML and XML parser for Ruby. It "parses and searches XML/HTML faster than Hpricot" (Hpricot being the current de facto Ruby HTML parser) and boasts XPath support, CSS3 selector support (a big deal, because CSS3 selector
MacPortsã§ã¤ã³ã¹ãã¼ã«ããMySQL5ã使ç¨ã rake db:createã§æ¬¡ã®ãããªã¨ã©ã¼ãåºãã Couldn't create database for {"reconnect"=>false, "encoding"=>"utf8", "username"=>***, "adapter"=>"mysql", "database"=>"TestApp_development", "host"=>"localhost", "pool"=>5, "password"=>***, "socket"=>"/opt/local/var/run/mysql5/mysqld.sock"}, charset: utf8, collation: utf8_general_ci (if you set the charset manually, make sure you have a matc
CentOS 5.4 ã« Redmine 0.9.0 release candidate ãããµã¯ãã¨CentOS 5.3ã«Redmine + Passengerç°å¢ãã¤ã³ã¹ãã¼ã«ã®æé ã§ã¤ã³ã¹ãã¼ã«ãã¦ã¿ãããä½ç¹ãããã£ãã®ã§ãã¡ãã«è§£æ±ºæ³ãæ¸ãã¦ããã¾ãã Redmine 0.9.0 RC ã®ã¤ã³ã¹ãã¼ã« åºæ¬çã«ã¯ã ã»ãµã¯ãã¨CentOS 5.3ã«Redmine + Passengerç°å¢ãã¤ã³ã¹ãã¼ã« ã®æé ã§ã»ã¨ãã©åé¡ç¡ãã¤ã³ã¹ãã¼ã«ãé²ãããã¨ãåºæ¥ã¾ãã ãã®æé ã§ãã¾ãåããªãç®æãçºçããã®ã¯ãRedmineã®ã¹ãã¼ããMySQLã«ä½æããéã® # rake db:migrate RAILS_ENV="production" ã®é¨åã¨ãªãã¾ãã ã¾ãã¯ãµã¯ãã¨CentOS 5.3ã«Redmine + Passengerç°å¢ãã¤ã³ã¹ãã¼ã«ã¨åãæé ã§ãã®ã¾ã¾ä¸è¨ã®
åããããªãµã¼ãã¼ã®è¨å®ãã¦ããã¨ããããã«é¢åããããªã£ã¦ããã ã¨ããããã§RPMããã±ã¼ã¸ã«ãã¦ãã¾ããã ããã±ã¼ã¸åã®æ¹æ³ã«é¢ãã¦ã¯æ å ±ããããããã£ãã®ã§ããã£ã¨ã§ãããå¤è¬ã <textarea class="html" cols="60" rows="5" name="code"> wget ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-1.8.7-p174.tar.bz2 tar xfj ruby-1.8.7-p174.tar.bz2 cd ruby-1.8.7-p174 ./configure --prefix=/usr make </textarea>
ç°å¢ liunx Ruby on Rails 2.3.5 twitter oauth äºè±¡ twitter apiã§èªè¨¼å¦çï¼oauthï¼å¾ãInternal Errorã«ãªã apacheã®ã¨ã©ã¼ãã°ï¼ä¾ï¼/var/log/httpd/error.logï¼ãè¦ã㨠[ pid=XXXXã file=ext/apache2/Hooks.cpp:645 time=ãã]: The backend application (process XXXX) did not send a valid HTTP response; instead, it sent nothing at all. It is possible that it has crashed; please check whether there are crashing bugs in this application. ã¨ãã
I donât want to imply by the title this is anyoneâs fault but my own. Â But since it took me two days to figure out, I thought Iâd share. Iâm using the excellent authentication package, authlogic, for my current project. Â I want to allow normal registrations through my site and also registrations using Twitter credentials. Â In an incremental way, I first implemented normal registrations. Â I followe
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}