é座 Rails #19 ã®çºè¡¨è³æã§ã https://ginza-rails.connpass.com/event/166729/
SAKEICEã¯æ¥æ¬é ãæ··ãè¾¼ãã ã é«ã¢ã«ã³ã¼ã«åº¦æ°ã®ãªããã®ã¢ã¤ã¹ã¯ãªã¼ã ã æ¥æ¬ä¸ã®é èµã¨ã³ã©ããããæ°ããåã®ä½é¨ãä¸çã«å±ãã¾ãã
è¦ç´ ã¡ã¢ãªæçåã¯æ¸¬å®ã診æãå°é£ã§ãããé©ãã»ã©ç°¡åã«ä¿®æ£ã§ãããã¨ãããã¾ãããã«ãã¹ã¬ããã®CRubyããã°ã©ã ï¼mallocã®ã¹ã¬ããåä½ã¡ã¢ãªã¢ãªã¼ãï¼ã«ãããã¡ã¢ãªæçåã®åå ã追ã£ã¦ã¿ã¾ããããæ¬è¨äºã®ããªã¥ã¼ã ã¯3343èªã20åç¨åº¦ã§ãã åç´ãªè¨å®å¤æ´ã ãã§åé¡ãå®å ¨ã«è§£æ±ºã§ãããã¨ã¯ãã£ãã«ããã¾ããã ç§ã®é¡§å®¢ã®Sidekiqããã»ã¹ã大éã®ã¡ã¢ãªãæ¶è²»ãã¦ãããã¨ãããã¾ããï¼1ããã»ã¹ããã1 GBç¨åº¦ï¼ãéå§å½åã®åããã»ã¹ã¯300MBç¨åº¦ã§ããããæéã®çµéã¨ã¨ãã«ããããã¨è¥å¤§åãã¦ã»ã¼ã®ã¬ãã¤ãã¬ãã«ã«ã¾ã§éããã¨ããã§è½ã¡çãå§ãã¾ããã ç§ã¯é¡§å®¢ã«MALLOC_ARENA_MAXã¨ãããã£ã1ã¤ã®ç°å¢å¤æ°ã®å¤æ´ãä¾é ¼ãã¾ãããã2ã«è¨å®ãã¦ãã ãããã¨ã ããã»ã¹åèµ·åå¾ããããããè¥å¤§åãç¾è±¡ã¯ãã¿ãªã¨æ¢ã¿ã¾ãããããã»ã¹ã®ã¡ã¢ãªä½¿ç¨éã¯ä»¥åã®å
Ruby on Railsã® 2ç³»ã¨3ç³»ã®Routingã®éãã調ã¹ãã®ã§ã¡ã¢ã Simple routes # Rails 2: map.connect 'hello_world', :controller => 'posts', :action => 'index' # Rails 3: match 'hello_world' => 'posts#index' Resources # Rails 2: map.resources :users # Rails 3: resources :users # Rails 2 map.resources :games, :member => { :download => :get }, :collection => { :favourites => :get } # Rails 3 resources :games do get :downlo
ãã®ãã¼ã¸ã§ã¯ Redis ã®æ°¸ç¶åã«ã¤ãã¦ãæè¡çãªèª¬æãæä¾ãã¾ãããã¹ã¦ã® Redis ã¦ã¼ã¶ã¼ã¯ãã®å 容ã«ç®ãéãã¦ãããã¨ãæ¨å¥¨ãã¾ããRedis ã®æ°¸ç¶åã¨é害èæ§ã®ä¿è¨¼ã«ã¤ãã¦ãããåºç¯ã«æ¦è¦³ãããã Redis persistence demystified ãåç §ããã¨è¯ãã§ãããã Redis ã®æ°¸ç¶å¶ Redis ã¯ãå®åç¯å²ã®ç°ãªãæ°¸ç¶åãªãã·ã§ã³ãæä¾ãã¾ã: RDB æ°¸ç¶åã¯ãããæç¹ã®ãã¼ã¿ã»ããã®ã¹ãããã·ã§ããããç¹å®ã®ééãã¨ã«ä½æãã¾ãã AOF æ°¸ç¶åã§ã¯ããµã¼ãã¼ãåãä»ãããã¹ã¦ã®æ¸ãè¾¼ã¿ã³ãã³ããè¨é²ãã¾ãããµã¼ãã¼ã¯èµ·åæã«ãã°ããªãã¬ã¤ããå ã®ãã¼ã¿ãåæ§æãã¾ããã³ãã³ã㯠Redis ãããã³ã«ã¨åããã©ã¼ãããã使ãã追è¨æ¹å¼ã§è¨é²ããã¾ãããã°ã大ãããªããããããRedis ã¯ããã¯ã°ã©ã¦ã³ãã§ããããªã©ã¤ããã¾ãã ãµã¼ãã¼ã
Nintendo Switch ããã¯ã®æ©è½ããã±ãããµã¤ãºã«åç¸®ï¼ ææ°æè¡ãçªåã¬ãªã¦ã ï¼GaNï¼ããã£ã¼ã¸ã£ã¼æ¡ç¨ã§è¶ é«éå é»ã«ã対å¿ï¼ Type-C対å¿ã®ããã¤ã¹ãªãSwitch以å¤ãHDMIåºåãå¯è½ï¼ Nintendo Switchã大好ããª3人ã®ã²ã¼ãã¼ãä½æãããSwitchãã¡ã³å¾ æã®ã¹ã¼ãã¼ã³ã³ãã¯ãã§å®ç¨çéãã次ä¸ä»£ããã¯ãGENKI Dockããæ¥æ¬åä¸é¸ï¼ GENKI Dockã¨ã¯ãå¾æ¥ã®Switch ããã¯ã«åãã£ã¦ããæ©è½ããã®ã¾ã¾ã«ããµã¤ãºã ããï¼ï¼åã®ï¼ã«å縮ããæã¡éã³ãã¨ã¦ã便å©ãªè£½åã§ãã ãã¼ãã«ã¯Switch Dockã¨åãUSB 3.1 Type-AãUSB 3.1 Type-CãHDMI 2.0ãããã¾ãã®ã§ãããã¼ãããã¸ãã¹ã¾ã§æ§ã ãªã·ã¼ã³ã§ã使ç¨é ãã¾ãã å¤åºå ã§ã¿ããªã¨Switchãéã³ããæã ä¼è°ã§ãã¼ãPCãã¢ãã¿ã¼ã«ã¤ãªã
åç½®ãï¼Rubyã®ãã¥ã¼ã¤ã³ã°ã·ã¹ãã Railsï¼Rubyï¼ã§éåæã«ãã¥ã¼ã¤ã³ã°ãã¦ãããã©ã¤ãã©ãªã¨ããã°Sidekiqã§ãããã£ã¦ãããããSidekiqã好ããªãã§ãããä¸ã®ä¸ã®ã·ã§ã¢çã«ã¯Resqueãªã®ããªãã§ããSidekiqã®æ¹ãå®å®çã«åããã¦ããã®ã§åã¯å¥½ãã§ãï¼delayed_jobã¯ç¥ããªãï¼ã Shoryukenã¨ããAWS SQSã使ã£ããã¥ã¼ã¤ã³ã°ã·ã¹ãã ããããRedisãããªãã¦SQS使ãããã£ã¦ããå ´åã¯ããããè¯ãã®ãããããªãã§ãããã¾ãããã¼ã«ã«ã®å ´åé¢åãããªæããããã¾ããã©ã phstc/shoryuken ã¾ãã¨ãããSidekiqãå°å ¥ãã¦ãã¥ã¼ã¤ã³ã°ããã£ã¦ããã®ã¯ãããè¶ çµ¶ç°¡åã«ã§ããããã§ããã§ãããã§ããã©ãå®éã«ã©ãã«éç¨ãã¦ããã¨ããã¥ã¼ããã¤ã®éã«ãããã¦å¦çå¾ ã¡ã§åã¾ã£ã¦ãããã¬ã¢ãªã±ã¼ã¹ã§ä¾å¤æãã¦æ»ãã§ããããããã§
å é±ä»äºã§ãã£ãã®ãã¡ã¢ãã¾ãã CIåãä½ãã®ã§ãè¨äºãå ¬éãããã¨ã§ããã³ãããããã®ãç®çã§ãã ã¢ããã¼ã·ã§ã³ å¼ç¤¾ã§ã¯CIã®å®è¡ã1åããã20åã»ã©ããã£ã¦ãã¾ãã ããã¯ããã¨ã¹ãã¬ã¹ãªã®ã§éããããã§ãã幸ãã«ãåããããªã¨ããã2ã¤è¦ã¤ãã£ãã®ã§åã£ã¦ã¿ã¾ããã Shallow Clone CircleCIã§ã¯ããã©ã«ãã®checkoutã使ç¨ããã¨ãªãã¸ããªã®å ¨ä½ãcloneãã¦ãã¾ãã ãããåé¿ããããã«shallow cloneãå°å ¥ãã¾ããã ã¾ãã次ã®ãããªã³ãã³ããå®ç¾©ãã¾ãã commands: shallow-clone: description: 'Git clone shallowly' steps: - run: name: 'shallow clone' command: | set -x echo "machine github.com log
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}