Malwarebytes ã¯ãé©ãã¹ãæé·ãè¦ãã¦ãã¾ãã1年以ä¸åã«ãã®ã·ãªã³ã³ãã¬ã¼ã®ä¼ç¤¾ã«å ¥ç¤¾ãã¦ä»¥æ¥ãç§ã®ä¸»ãªä»äºã¯æ¥æé·ããã»ãã¥ãªãã£ä¼æ¥ã®åã¨ãªãã·ã¹ãã ã®è¨è¨ã¨éçºã§ããæ¥ã æ°ç¾ä¸äººãå©ç¨ãã製åããµãã¼ãããããã«å¿ è¦ãªãå ¨ã¦ã®åºç¤ãã¤ããã¾ããç§ã¯12年以ä¸ãã¢ã³ãã¦ã¤ã«ã¹ã¨ã¢ã³ããã«ã¦ã§ã¢ã«é¢ããããã¤ãã®ä¼ç¤¾ã§åãã¦ãã¾ãããæ¯æ¥å¦çããè¨å¤§ãªãã¼ã¿ã®ããã§ããããã®ã·ã¹ãã ãã©ãã ãè¤éãªãã®ã«ãªãããç解ãã¦ãã¾ãã é¢ç½ããã¨ã«ããã9å¹´ã»ã©ã§ç§ãæºãã£ãWebã®ããã¯ã¨ã³ãéçºã®ã»ã¨ãã©ã¯ãRuby on Railsã使ããã¦ãã¾ããã誤解ãããªãããã«è¨ã£ã¦ããã¾ãããç§ã¯Ruby on Railsã大好ãã§ããããã°ãããç°å¢ã ã¨æã£ã¦ãã¾ããããããRubyã§ã·ã¹ãã ãè¨è¨ãå§ããã¨å¿ãã¦ãã¾ãã®ã¯ããã«ãã¹ã¬ããåã並ååãé«éåãã¡ã¢ãªãªã¼ãã¼ãã
ãã°ããLinuxãã¿ãç¶ãã»ã»ã è¿ããã¡ã«æè¿åºãJava8ãã¿ãæ¸ãã¦ã¿ããã¨æãã¾ããããããå°ãLinuxãã¿ã«ãä»ãåããã ããã ååã¯sshdã対象ã«è¦ªããã»ã¹ãkillããå ´åã®åä½ã確èªããã killãããããã»ã¹ã®åããã»ã¹ã¯å¤å ããã»ã¹ã¨ãªããã«ã¼ãã«ã«ãã£ã¦èªåçã«initããã»ã¹ã®åã¨ãã¦æ±ãããäºã説æãããï¼ãã®åä½ãããªãã¢ã¬ã³ãã£ã³ã°ãã¨å¼ã¶ï¼ ä»åã¯ãã®ç¶ãã Linuxã§ä½æ¥ãã¦ãã¦Ctrl+Cãã¦ããã»ã¹ãçµäºããå ´åããã©ã¢ã°ã©ã¦ã³ãã®ããã»ã¹ããã®åããã»ã¹ãä¸ç·ã«çµäºããã ã¨ãããã¨ã¯ãåããã»ã¹ã¯å¤å ã¨ãã¦æ±ãããããªãã¢ã¬ã³ãã£ã³ã°ããã¦ããªããã¨ã«ãªãã ä»åã®è¨äºã§ã¯ãã®æ¯ãèãã®éãï¼ãªãã¢ã¬ã³ãã£ã³ã°ããããå¦ãï¼ã«çç®ããkill -SIGINTã³ãã³ãã¨Ctrl+Cã®éãã«ã¤ãã¦èãã¦ããã ããããkillã³ãã³ããCt
A lightning talk from Scottish Ruby Conference 2014. Moreâ¦
Ruby 㧠Amazon Product Advertising API ã試ããããªã£ã¦ gem ãæ¼ã£ã¦ã¿ãããamazon-aaws 㨠amazon-ecs ã®2ã¤ãè¦ã¤ããã ã©ã¡ãã API ãç´ ç´ã«ã©ãããã¦ãã¦çãè¯ãããã ã£ããã©ãamazon-aaws ã®æ¹ã¯ AccessKey ã SecretKey ã .amazonrc ã£ã¦ããå¥ãã¡ã¤ã«ã«è¨è¿°ããªããã°ãããªãã®ãå人çã«æ°ã«å ¥ããªããä¸æ¹ãamazon-ecs ã§ã¯ãããã¯ã§è¨å®ãè¨è¿°ã§ãããamazon-ecs ã試ãã¦ã¿ããããªã amazon-ecs ã使ã£ã¦ãAmazon 㧠Ruby ã®æ¸ç±ãæ¤ç´¢ããã¹ã¯ãªãããæ¸ãã¦ã¿ãã require "amazon/ecs" # Amazon Product Advertising API ã¸ã®ã¢ã¯ã»ã¹ã«å¿ è¦ãªãã¼ãè¨å® Amazon::Ecs.confi
ãã®ããã°ã«Amazonã®ãªã³ã¯ãè²¼ããããªã£ãã®ã§ãASINãå ¥åããã¨Amazonããæ¸ç±ã®ãµã ãã¤ã«ãèè æ å ±ãªã©ãæãåºãæ©è½ãå®è£ ããããã«ãAmazon Product Advertising APIã使ã£ã¦ã¿ããã¨ã«ãã¾ããã â ã¤ã³ã¹ãã¼ã« gemãªã®ã§ãã³ãã³ãä¸çºã§ãã require 'amazon/ecs' Amazon::Ecs.options = { :associate_tag => '[your associate tag]', :AWS_access_key_id => '[your developer token]', :AWS_secret_key => '[your secret access key]' } # APIå¼ã³åºã res = Amazon::Ecs.item_lookup("4088767624", :response_group
rbenv 㨠RVM ã¨ã®éã åæãã¦ã¿ãã rbenv 㯠RVM ã¨éã£ã¦ã·ã§ã«ã«ã³ãã³ãããã¼ãããªã â 代ããã« $PATH ã追å ããã ãã§ä½¿ããrbenv 㯠RVM ã¨éã£ã¦ã·ã§ã«ã³ãã³ããä¸æ¸ãããªãï¼RVM 㯠cd ãªã©ã RVM ç¬èªã®ãã®ã«ç½®ãæããï¼rbenv 㯠RVM ã¨éã£ã¦è¨å®ãã¡ã¤ã«ãç¡ã â ã©ã®ãã¼ã¸ã§ã³ã使ããã®æå®ã®ã¿rbenv 㯠RVM ã¨éã£ã¦ Ruby ãã¤ã³ã¹ãã¼ã«ããªãï¼rvm install ç¸å½ã®æ©è½ãç¡ãï¼ â¦ ä»£ããã«èªåã§å¥½ãã« Ruby ãã¤ã³ã¹ãã¼ã«ã§ããããrvm install ç¸å½ã® ruby-build ã使ããã¨ãã§ããrbenv 㯠RVM ã¨éã£ã¦ gemset ã®æ¦å¿µããªã ⦠代ããã«ã¢ããªã±ã¼ã·ã§ã³æ¯ã® Bundler ã使ã£ãã»ãããããrbenv 㯠RVM ã¨éã£ã¦ä»ã® gem ãå¤æ´ãã
Ruby on Railsã§Devç°å¢ã¯ä½¿ã£ããã¨ãããã©ãtestã»prodç°å¢ãèæ ®ããç°å¢æ§ç¯ããããã¨ããªã人ã«ãå§ãã®å 容ã§ãã ##ãµã¼ãã¼æ§æå³ ##ãµã¼ãã¼ã®å½¹å² ###ãªãã¼ã¹ãããã·ãµã¼ãã¼(ãã¹ãåï¼rp01ï¼ ãã¼ããã©ã³ãµæ©è½ã使ã£ã¦WEBãµã¼ãäºå°ã«å¦çãæ¯ãåããã¢ã¯ã»ã¹ãï¼å°ã®ãµã¼ãã¼ã«éä¸ãããªã WEBãµã¼ãã¼ãå¤é¨ããé ãããã¨ã§ã»ãã¥ãªãã£é¢ã®åä¸ ###WEBãµã¼ãã¼ï¼web01ãweb02ï¼ webãµã¼ãã¼ãï¼å°ç¨æãããã¨ã§ã¢ã¯ã»ã¹ãï¼ã¤ã®ãµã¼ãã¼ã«éä¸ããªããããã¬ã¹ãã³ã¹ãæ©ãã§ãã ###ãã¹ã¿ã¼DBãµã¼ãã¼ï¼db01mï¼ DBå 容ãããï¼å°ã®DBãµã¼ãã¼ï¼ã¹ã¬ã¼ãï¼ã¸ãªã¢ã«ã¿ã¤ã ã«ã³ãã¼ããé害ã§ãã¹ã¿ã¼ãåæ¢ããã¨ãã¯ã¹ã¬ã¼ãã«åãæ¿ãã ###ã¹ã¬ã¼ãDBãµã¼ãã¼ï¼db01sï¼ èªã¿è¾¼ã¿å°ç¨ã®ãµã¼ãã¼ãæ¸ãè¾¼ã¿ãããªãåã¬ã¹ãã³ã¹ã
Rubyã§ãã¼ã¢ã³ãä½ã£ã¦ã¿ã¾ãã test.txtãã¡ã¤ã«ã«1ç§ãã¨ã«"test"ã¨æ¸ãç¶ãããã¼ã¢ã³ã§ãã # daemon.rb require 'fileutils' require 'logger' class DaemonTest def initialize @term = false @logger = Logger.new(STDOUT) @logger.info "daemon start..." @pid_file_path = './daemon.pid' @file = "./test.txt" end def execute File.open(@file, "w") do |f| loop do f.puts "test" f.flush break if @term sleep 1 end end end def run daemonize begin Si
ã³ãã±ã®åã«ä¸¦ãã§ããããã®ãããã Docker æ¬æ ¼çã«ä½¿ã£ã¦ã¾ãããã®ãµã¤ãããã£ã Docker ã§ãããã¤ãããããªæãã«ãã¾ããã Docker ã®å©ç¹ã¨æ¬ ç¹ã§ éçºç°å¢ã®é å¸ã容æã«ã§ãã ãããã¯ãã®ãããã¤ã«ã¤ããã«ã¯ãªã«ãã¨ããã ã¿ãããªæè¦ãããã¨é »ç¹ã«ã¿ãããã®ã§ãããéãããããã¨æã£ã¦ã¾ããããéçºç°å¢ã®é å¸ã«ä½¿ãã®ç¡çã§ãããåã³ã³ãã使ãæ¨ã¦åæãªãã ãã Docker ããããã¤ã«ä½¿ãéã®åé¡ç¹ã¨ãã¦ã¯ä»¥ä¸ãããã¾ã Dockerfile ã« 42 åããå½ä»¤ãããªãã¿ãããªã㤠ãªãã ããã ã§ã³ã³ããã®ãã«ãã«æéãããã ã³ã³ããã®ç®¡çã¨ãã©ãããã®ã ãªãã¼ã¹ãããã·ã®è¨å®ã¨ãã©ãããã®ã ä¸åç®ã«é¢ãã¦ã¯é å¼µã£ã¦ãã ãããåã¯ã»ããã¢ããç¨ããããã¤ç¨ã®ã·ã§ã«ã¹ã¯ãªããã ADD ã㦠RUN ãããããã«ãã¦ã¾ããã·ã§ã«ã¹ã¯ãªããã»ããã¢ãã
é åã®è¿½å ã»åãåºãã«é¢ãã4ã¤ã®ã¡ã½ããï¼unshift, shift, pop, pushï¼ããã¤ãæ··ä¹±ããã®ã§çµµã§æ´çããã çµµã«ããã°è¦ãããããï¼ãã¡ãç·´ç¿ã®ãããèªåããã使ãRuby, PHP, JavaScriptã§ã³ã¼ããæ¸ããã ã»ãããã®è¨èªã«ããã¦ãä¸è¨4ã¤ã®ã¡ã½ããã¯ä¼¼ããããªååã§åå¨ãã¦ãããç¨éãåãã ã»ãããã®è¨èªã®ãããã®ã¡ã½ãããç ´å£çã¡ã½ããã ã»è¨èªããã¼ã¸ã§ã³ã«ãã£ã¦ã¡ã½ããã®è¿ãå¤ã¯ç°ãªãã ã¨ããå ·åã ã£ãã Ruby ruby 1.9.2 # unshift a = [1, 2, 3] b = a.unshift 0 p a #[0, 1, 2, 3] p b #[0, 1, 2, 3] # shift a = [1, 2, 3] b = a.shift p a #[2, 3] p b #1 # pop a = [1, 2, 3] b =
ã¯ã©ã¹ã¡ã½ããã®å®ç¾© Rubyã§ã¯ã©ã¹ã¡ã½ãã(=ã¯ã©ã¹ãªãã¸ã§ã¯ãã®ç¹ç°ã¡ã½ãã)ãå®ç¾©ããã«ã¯ãããã¤ãã®æ¹æ³ãããã¾ãã ãã¨ãã°ãHoge ã¯ã©ã¹ãªãã¸ã§ã¯ãã« hoge() ã¡ã½ãããå®ç¾©ããå ´åã 1. ã¯ã©ã¹å®ç¾©å ã§ã¯ã©ã¹ãªãã¸ã§ã¯ãã«ç¹ç°ã¡ã½ãããå®ç¾© class Hoge def self.hoge() end end 2. ã¯ã©ã¹å®ç¾©å ã§ç¹ç°ã¯ã©ã¹ã«å¯¾ãã¦ã¡ã½ãããå®ç¾© class Hoge class << self def hoge() end end end 3. ã¯ã©ã¹å®ç¾©å¤ã§ã¯ã©ã¹ãªãã¸ã§ã¯ãã«ç¹ç°ã¡ã½ãããå®ç¾© class Hoge end def Hoge.hoge() end 4. ã¯ã©ã¹å®ç¾©å¤ã§ç¹ç°ã¯ã©ã¹ã«å¯¾ãã¦ã¡ã½ãããå®ç¾© class Hoge end class << Hoge def hoge() end end ããããå¤é¨ãã Hoge.h
Application_Timeouts CONTRIBUTORS DESIGN FAQ HACKING ISSUES KNOWN_ISSUES LICENSE Links NEWS PHILOSOPHY README SIGNALS Sandbox TUNING unicorn_1 Unicorn Configurator HttpServer OobGC PrereadInput StreamInput TeeInput Util Worker Methods #after_fork #after_worker_exit #after_worker_ready #before_exec #before_fork #check_client_connection #client_body_buffer_size #default_middleware #early_hints #list
../ 2024-08-19 20:26 - Unicorn/ 2023-10-03 17:15 - examples/ 2023-10-03 17:15 - files/ 2023-12-30 01:23 - public/ 2021-03-12 20:34 - Application_Timeouts 2023-10-03 17:15 3K Application_Timeouts.html 2023-10-03 17:15 6K CONTRIBUTORS 2023-10-03 17:15 1K CONTRIBUTORS.html 2023-10-03 17:15 5K COPYING 2023-10-03 17:15 34K ChangeLog 2020-04-22 02:00 42 ChangeLog.html 2020-04-22 02:00 230 DESIGN 2023-10
GoFã®ãã¶ã¤ã³ãã¿ã¼ã³ã¨ã¯ããããã°ã©ãã³ã°ã®ãã¹ããã©ã¯ãã£ã¹ãä½ç³»åãããã®ãã§ãããã®ãã¹ãã»ãã©ã¯ãã£ã¹ããã£ããã¨ç解ãã¦è¨è¨ããã°ãã½ããã¦ã§ã¢è¨è¨ã®å¹çãé«ãããã¨ãã§ãã¾ããã¾ããã¶ã¤ã³ãã¿ã¼ã³ããããã°ã©ãã³ã°ã®ææ³ãã®å ±æãããã¹ã ã¼ãºã«ãã¦ããã¾ããå 人ãã¡ã®è©¦è¡é¯èª¤ã®çµæãå¹æçã«å©ç¨ãã¦ãããã°ã©ãã³ã°ããã£ã¨æ¥½ããã§ãã¾ãã¾ãããï¼ ð» ãã¶ã¤ã³ãã¿ã¼ã³ã®ãã¤ã³ãGoFã®ãã¶ã¤ã³ãã¿ã¼ã³ã«ã¯ä¸ã®ããªã³ã·ãã«ãããã¾ãã å¤ãããã®ãå¤ãããªããã®ããåé¢ãã ã¤ã³ã¿ãã§ã¼ã¹ã«å¯¾ãã¦ããã°ã©ãã³ã°ããå®è£ ã«å¯¾ãã¦è¡ããªã ç¶æ¿ããéç´ å§è²ãå§è²ãå§è² å¿ è¦ã«ãªãã¾ã§ä½ããª(You Ainât Gonna Need It./YAGNI) ð¤ ãã¶ã¤ã³ãã¿ã¼ã³ä¸è¦§ ã¢ãã¹ãã©ã¯ããã¡ã¯ã㪠ãã«ã ãã¡ã¯ããªã¡ã½ãã ã·ã³ã°ã«ãã³ãã¿ã¼ã³ ã¢ããã¿ ã³ã³ãã¸ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}