2007-01-01ãã1å¹´éã®è¨äºä¸è¦§
ãã³ãã³åç» Wiiãªã¢ã³ã³ã¨èµ¤å¤ç·ãã³ã§ãã©ãã§ããã³ã¿ãã¬ãããä½ã£ã¦ã¿ã YouTubeçå ãã¿ã®åç»ã¯ç¥ã£ã¦ããã©ãè¦ãã ãã§è¡åã«ç§»ãæ°åã¯ãªãã£ãåã¨ãå½¼ã¨ã®éããå£éè¦ãç¬éã§ãããããã«ãã¦ãåºã¦ããæ°å¦ãããããè¦ãã¦ãªã件ã«ã¤ãã¦â¦
(ï¼ï¼ï¼) 便å©ãªã®ã«æ®å¿µãªãã§ãï¼ï¼ï¼ (â©â©) ï½ ï½èæ³¢ >å¤å DHH ã with_scope ã«æå°æªããããã§ãï¼ï¼ >ä¿®æ£ã¯ send ã«ããã ãã ã¨æãã®ã§æéãè¦ã¦ã³ããããã¾ãï¼ï¼ Ruby on Railså ¥éåªããRailsã®è²ã¦æ¹ä½è : 西åååºç社/ã¡ã¼ã«ã¼: ç§åã·ã¹â¦
Rails 1.2.6 class RealEstate < ActiveRecord::Base validates_uniqueness_of :name end class Building < RealEstate end class Land < RealEstate end building1 = Building.new(:name => 'test') building1.save # => true building2 = Building.new(:naâ¦
åæ 人æ°å°ãªãï¼10åç¨åº¦ï¼ Windows/OS9/OSXãæ··å¨ ã¿ããªãèªã¿æ¸ãã§ããå ±æãã»ãã å人ã®ãã¡ã¤ã«ãä¿ç®¡ã§ããä»ã®äººãæ¶ãããã§ããªããã©ã«ããã»ãã ã¿ããªã®ã¢ã«ã¦ã³ãã¯shareã°ã«ã¼ãã«ãã ç°å¢ ä»åã¯ãCentOS 4.5 Server (x86_64) ã«å°å ¥â¦
ç¬ããªãããã°ã©ã ãè»æ¹ããæºå¸¯é»è©±éçºã®ç¾ç¶ãèªãã http://s03.2log.net/home/programmer/archives/blog38.html ãã ã¹ã¿ã¼éå ± ãã©ãã¯ä¼ç¤¾ã«å¤ãã¦ããã ãããã俺ã¯éçãããããªã http://urasoku.blog106.fc2.com/blog-entry-217.html
趣å³ã¨å®çããã¨åå¼·ãå ¼ãã¦ã SEOã«ä¾¿å©ãªæ©è½ã®è©°ãåãããäºå®ã§ãã ã§ããã㨠ä»ã®ã¨ãããã»ãã®ã¡ãã£ã¨ããæ©è½ããã¾ããã æ¤ç´¢é ä½åå¾ï¼Google/YSTï¼ ã¤ã³ããã¯ã¹æ°åå¾ï¼Google/YSTï¼ Googleãã¼ã¸ã©ã³ã¯åå¾ ã¤ã³ã¹ãã¼ã« gemãç¨æãã¾â¦
http://d.hatena.ne.jp/technohippy/20070807 ãåèã«ãRailsã§ã¤ã³ã¹ãã¼ã«ãããcronã®ããã«å®æçã«ã¯ã¼ã«ã¼ãç«ã¡ä¸ããå¦çããããã¨ãã§ãããconfig/backgroundrb_schedules.yml # ã©ãã«ï¼ããããããååãï¼ sample_runner: # 対象ã®ã¯ã¼ã«ã¼â¦
ä¼ç¤¾ã®ãã¼ã¿ãµã¼ãã§ãWindowsãLinuxãOSXãOS9ã§åãããã«ãã¡ã¤ã«å ±æããå¿ è¦ããã£ãã ã§ãOS9ç¨ã«netatalkãå©ç¨ãã¦ããã®ã ãããã1å°ã®OS9æ©ï¼å°ããªãã¶ã¤ã³äºåæã§ã¯ã¾ã ã¾ã ç¾å½¹ã§ã...ï¼ã®HDDãã¨ãã§ãã¾ã£ãã ã©ãããããã¼ã¿ãµã¼ãã¸â¦
éåæå¦çãå¿ è¦ã«ãªã£ãã¨ããã§ãgihyo.jpã«ãAP4Rï¼Rubyã§éåæã¡ãã»ã¼ã¸ã³ã°ãã¨ããè¨äºãã¿ã¤ããã ãã£ã¦ã¿ããã§ãã第3å SAFæ©è½ã¨ãã¹ããµãã¼ãã«ããå®å¿éåæ (3/5)ã§ãè¨äºã®éãã«åããªã・・・ class AsyncShopController < Applicationâ¦
[lam@lam ~]$ irb irb(main):001:0> require 'rubygems' => true irb(main):002:0> require 'reliable-msg' => true irb(main):003:0> q = ReliableMsg::Queue.new "test" => #<ReliableMsg::Queue:0xb7a0d7fc @queue="test"> irb(main):004:0> q.put "hoge" => "64531d90-7a1e-012a-352c-f2807ca4056d" <|</reliablemsg::queue:0xb7a0d7fc>â¦
AP4Rï¼Rubyã§éåæã¡ãã»ã¼ã¸ã³ã° DRb::DRbConnError: Connection reset by peerããããã¦ãã®ã«ããªãã§ã¼ãªãã§ã¼ drb: host: port: 6438 acl: allow 127.0.0.1 allow ::1 allow 192.168.1.110 # èªIPã¢ãã¬ã¹è¿½å カï¾ï½¬ ;y=ï½°( ï¾Ð´ï¾)ï½¥âµ. ï¾ï½°ï¾ ï¼¼ï¼| y |)
ä»åãgemã使ããããã¦ã³ãã¼ãããã½ã¼ã¹ãç½®ãã¦ããã $ ls lib active_record active_record.rb active_support active_support.rb$APPLICATION_ROOT = File.expand_path(File.dirname(__FILE__)) $LOAD_PATH.unshift File.join($APPLICATION_ROOT, '.â¦
Railsã§ARã«æ £ããã¨DBIãªã©ã§ã®ã¢ã¯ã»ã¹ã¯ã¹ãã¬ã¹ã§ãã 楽ããããã Railsãããªãã¦ãARã使ãããã ããã§ä½¿ã£ã¦ã¿ã¾ãããä»æ´ã§ããã ã¡ãªã¿ã«ActiveRecordã¯MITã©ã¤ã»ã³ã¹ã§ããçCGIã§ä½¿ããããªã¼ã¨ããç¶æ³ã å ±ç¨ã®ã¬ã³ã¿ã«ãµã¼ããªããã§gemâ¦
acts_as_cachedã¯ä¾¿å©ã ããã¢ãã«ã§ç¶æ¿ï¼STIï¼ã使ã£ã¦ããå ´åãæ±ãã«æ³¨æå¿ è¦ããã¨ãã°ã class RealEstate < ActiveRecord::Base acts_as_cached end class Land < RealEstate end class Building < RealEstate end ã£ã¦ã¢ãã«ããã£ã¦ã # ã¤ã³ã¹ã¿â¦
PostgreSQL 8 ã®ç®çæ©è½ã®ã²ã¨ã¤ã«ãPITRï¼Point-in time Recoveryï¼ãããã ã·ã¹ãã ãåæ¢ããã«ããã¯ã¢ãããæ¡åã§ããï¼ãããããã¯ã¢ããï¼ ï¼ææ°ã§ããéå»ã®ããæç¹ã§ãï¼å¥½ããªæç¹ã«æ»ãã ã¨ããç¹å¾´ããããããã¯ã¢ããï¼ã¬ã¹ãã¢ã®ä»çµâ¦
yoshitetsuã®æ¥è¨:acts_as_cachedã使ããåèã«å°å ¥ãã¦ã¿ãã @categories = Category.get_cache(:all) do Category.find(:all, :order => 'index') end ãããã¯ã渡ãã¨ããããã¯ã®æ»ãå¤ããã£ãã·ã¥ãã¾ãã # acts_as_cached.rb # key ã¯get_cacheã®â¦
Railsã¯éãï¼ ããã¯äºå®ã大è¦æ¨¡ãªãã¬ã¼ã ã¯ã¼ã¯ãé«åº¦ãªæ½è±¡åã¯éããã®ã ãã£ãã·ã¥ãæ´»ç¨ããªãã¨ãã£ã¦ããã¾ãããã§ãããã£ãã·ã¥ä½¿ã£ã¦ãã¨æãã®ãã失å¹å¦çã®è¤éãã Sweeperã使ãã£ãã£ã¦ãã¢ãã«ã®å¤æ´ã§å¤±å¹ãããªãã¨ãããªãã¨ãããâ¦
Q.ããã¼ãªã©ãã¯ãªãã¯ãã人æ°ãç¥ãããï¼ A.onClickã¤ãã³ã使ã <a href="http://www.e-tsuyama.com/" onclick="javascript:urchinTracker ('/banner/cm.png');"><img src="/banner/cm.png" alt="åºåããã¼"></a>
ãã¹ããããããã¯ã§ãåãããã¯ãfloatãããã¨ã親ã®borderãæ¶ãã¦ãã¾ããã°ãããã 対å¦æ³ã¯ã <div id="parent"> <div id="child1"> </div> <div id="child2"> </div> </div> div.parent { width: 760px; // ã³ã¬ãæå®ã border: 1px solid #000; } div.child1, div.child2 { float: left; margin-left: 10px; }
Erubisã¯é«éããã¦ãªã®eRubyå¦çç³»ãããããã³ã¾ãåèã«å°å ¥ãã¦ã¿ãã Erubis ã® Preprocessing æ©è½ã使ã£ã¦ Ruby on Rails ã® View 層ãé«éåããããã«ãã£ãpartialå±éãã«ããå°ãæ¸ãæãã¦ä»¥ä¸ã®ãããªãã«ãã使ã£ã¦ããã # Erubis # render â¦
æéããªãã®ã§ã¨ãããããRubyã«ããWSSEèªè¨¼ã®å®è£ ããããåèã«ãã¯ã©ã¤ã¢ã³ããã¤ãããã§ãèªè¨¼ã¯ãããªãããã§ãï¼ã¦ã¼ã¶ålam ãã¹ã¯ã¼ãlamï¼ class Atom::DiaryController < ApplicationController before_filter :wsse_authorize private requiâ¦
WEB+DB Pressã§ãRESTã«é¢ããé£è¼ãèªãã ã vol.40ã¯AtomPubã«ã¤ãã¦ã ã£ãã RESTã¯ã©ã¤ã¢ã³ãã¯ãRails 2.0 ããæ£å¼ã«ãµãã¼ãããããããããä»ã¤ãã£ã¦ãã®ã«ã»ããï¼ããããã£ã¦ã¿ããã ç®æ¨ AtomPubã«ããã¨ã³ããªã®CRUDæä½ã ã¢ãã«çæãå ¥åâ¦
çè ã®ç°å¢ã§ãApache+FastCGI(mod_fastcgi/mod_fcgid)ãã¡ããã¡ããè½ã¡ãã®ã§ãæ§æãæãã¦ã¿ãã 以éãè½ã¡ããã¨ããªãå®å®ãã¦ããã®ã§å ¬éããã¤ã³ã mongrel_clusterã§ä¸¦ååï¼ãµã¼ãèªä½ã¯1å°ãªã®ã§è² è·åæ£ã£ã¦ããã§ã¯ãªãï¼ ã©ããã®ããã»ã¹â¦
å ãã¬ãã¢ã ãã£ã¨å²å¼ã®ç¹å ¸ã§ç¡ç·ã«ã¼ã¿ãããã£ãã ãWebCaster WLBARGSFã¯ã¤ã¤ã¬ã¹ã»ãããã ã£ãã coregaã¨ããã®ãæ°ã«å ¥ããªãããããã ãããã®ã¯ããããããã£ã¦ãã¨ã§ã家åºå LANãç¡ç·åãããã¨ã«ãBBRï¼Web Caster WLBARGSFã¯ã©ã¤ã¢ã³ãï¼â¦
FastCGI wget http://www.fastcgi.com/dist/fcgi-2.4.0.tar.gz tar zxvf fcgi-2.4.0.tar.gz cd fcgi-2.4.0 ./configure && make su make install exitFastCGI対å¿RPMä½æ æ¨æºã®phpããã±ã¼ã¸ã§ã¯FastCGIã§å®è¡ã§ããªãã®ã§.specãç·¨éãã¦ããã±ã¼ã¸ãã¤ãâ¦
cd /usr/src/redhat/SRPMS/ wget ftp://ftp.jp.postgresql.org/binary/v8.2.4/linux/srpms/redhat/rhel-es-4/postgresql-8.2.4-1PGDG.src.rpm rpmbuild --rebuild postgresql-8.2.4-1PGDG.src.rpmã¨ã©ã¼: Failed build dependencies: bison is needed by posâ¦
ãã¥ã¼ã«æºã£ã¦ãã¢ã mailqãã¥ã¼ã®ç½®ãå ´ /var/spool/postfixåéã試ã¿ã postfix flushåé¤ postsuper -d ALL
ActsAsLudiaã使ã£ã¦å ¨ææ¤ç´¢ããã¦ãã¨ããã¹ããéããªãã£ãããã¾ããã ï¼Sennaã®æ¡å¼µæ¸å¼ã使ããªãï¼ ãããªã¨ãã¯ãenvironment.rbã§ã config.active_record.schema_format = :sql ã£ã¦ãã£ã¨ãã°å¹¸ãã«ãªãã¾ãã
åUserã¯0人以ä¸ã®åéããã ä¸æ¹ãåéãªã¹ãã«å ¥ããã¨ãããä¸æ¹ãããåéã«ãªãï¼ç¾å®ã«ã¯çæ³ãã£ã¦ã®ãããã¾ãããããã§ã¯åæ¹åã£ã¦ãã¨ã§ãï¼ ã¨ãããmixiã§ãããã¤ãã¯ã·ã£ã¿ãããªã®ãä»åã¯ãhas_many :throughã使ã£ã¦ãã£ã¦ã¿ã¾ããã ã¡â¦