2022å¹´ã®Railsã®éçºç¾å ´äºæ ã«ã¤ãã¦èªããï¼ Qiita Night https://increments.connpass.com/event/241385/
PHPã¨Pythonã¨Rubyã®é£æ³é åã®ãã¼ã¿æ§é ããããã4ã5å¹´ã»ã©åã«è¦ç´ããããã³ããã¼ã¯ãã¹ãã«ãã£ã¦ã¯å以ä¸éããªã£ãã¨ãããã¨ãããã¾ãããå ·ä½çã«ã¯ä»¥ä¸ã®ãã¼ã¸ã§ã³ã§å®è£ ã®å¤§å¤æ´ãããã¾ããã PHP 7.0.0 HashTableé«éå (2015/11) Python 3.6.0 dictobjecté«éå (2016/12) Ruby 2.4.0 st_tableé«éå (2016/12) ãããã®ãã¼ã¿æ§é ã¯ã¦ã¼ã¶ã¼ã®å©ç¨ããé£æ³é åã ãã§ãªãè¨èªã®ã³ã¢ã§ãå©ç¨ããã¦ããã®ã§ãè¨èªå ¨ä½ã®æ§è½æ¹åã«è²¢ç®ãã¦ãã¾ã1ã ã¹ã¯ãªããè¨èª3ã¤ãåææã«åããã¼ã¿æ§é ã®æ¹åã«åãçµãã ã ãã§ãé¢ç½ãç¾è±¡ã§ãããããã«é¢ç½ããã¨ã«åå®è£ ã®æ¹éã¯é常ã«ä¼¼ã¦ãã¾ããç¬ç«ã«æ¹åã«åãçµãã ã®ã«åãçµè«ã«è³ã£ãã¨ããã°èå³æ·±ãå¶ç¶ã¨è¨ããã§ããã2ã æ¬ç¨¿ã§ã¯3è¨èªã®é£æ³é åã®å¾æ¥å®
åç (7件ä¸ã®1件ç®) ãµããRubyãå»ãã¦ããOSSã¨ããè©ä¾¡ã«ã¯ã ãã¶ä¸æºãããã¾ããã絶é æã¨æ¯ã¹ãã¨äººæ°ãä¸ãã£ã¦ãããã¨ã¯èªããã¨ãã¦ããããã¨ãå»ãã¦ãããã¨ã¯ã¾ã£ããç°ãªããã¨ã ã¨èªèãã¦ãã¾ãã Rubyã¯å®å®çãªäººæ°ãä¿ã£ã¦ãã¾ãããæ°åã®(人æ°ãããã¨è©ä¾¡ããã)OSSããããã»ã©å¤§ããªã³ãã¥ããã£ã¨è³ç£ãä¿æãã¦ãã¾ãã誰ããç¹å®ã®OSSããå»ãã¦ãããã¨è©ä¾¡ããã®ã¯åæã§ãããç¾å®ã«éçºè ã®æ°æã¡ã«å½±é¿ãä¸ãããã¨è¨ãã¨ãä¸æå¿«ã§ããã¨ããç¹ãé¤ãã¨ã»ã¨ãã©å½±é¿ãªãã§ãããã ãããã(Rubyãåæããããã®ã§ããææ çãªåå¿ããã¾ããã)å®éã«å»ãã¦ã...
Rails Developers Meetup 2019ï¼2019/03/22 - 23ï¼
HashDoSèå¼±æ§ã¨ã®æ¦ãï¼Â Rubyã³ããã¿ã¼ã»åé¨æå¹³ãæããããã°ã©ã å ç¢åã®ãã¦ã㦠éå»ãHashDosã®å½±é¿ãåããRubyãè¨èªéçºè ã¯ããã«ãã¦ããããåé¡ã«å¯¾å¿ãã¦ããã®ã§ãããããã³ããã¿ã¼ã§ããåé¨æ°ã®è²´éãªè¨é²ãå ¬éãã¾ãã 2011å¹´ã®æ«é ãHashDoSã¨ããèå¼±æ§ãå ¬è¡¨ãããRubyããã®å½±é¿ãåãããæ¬ç¨¿ã®çè ã§ããåé¨æå¹³ï¼ããã¹ã»ãããã¸ãï¼@shyouheiï¼ä»¥ä¸ãåé¨ï¼ã¯ãå ±åå½åããRubyå´ã®ãã¼ã ã¡ã³ãã¼ã¨ãã¦ããã°ã©ã æ¬ä½ã®ä¿®æ£ãæ å½ããã以ä¸ã¯ãã®è¨é²ã§ãããè¨èªéçºè ãã¡ãæ®æ®µã©ã®ãããªãã¨ãèããã©ããã£ãæè¡ãç¨ãã¦éçºããã°ãã£ãã¯ã¹ãè¡ã£ã¦ããã®ãããã®æ¦è¦ãç¥ã£ã¦ããããã°å¹¸ãã ã ãªãã¸ã§ã¯ãæåã¹ã¯ãªããè¨èª Ruby HashDoSã®æ¦è¦ ãªãç´6å¹´å¾ã®ä»ãä¿®æ£å 容ãå ¬éããã«è³ã£ããï¼ åå²ï¼ãã§ã«å å ããã¦ãããªã¹ã¯
æ¨æ¥ãRubyã®JITã®æ§è½æ¹åã®ããã®ããããå ¥ããã github.com JITããã°ããã»ã©Railsãé ããªãåé¡ Rubyã®æ¬¡æãã¼ã¸ã§ã³ã§ãã2.6ã«ã¯ããã¤ãã³ã¼ããCã®ã³ã¼ãã«å¤æããå¾ãgcc/clangã§ã³ã³ãã¤ã«ãã¦.soãã¡ã¤ã«ã«ãdlopenãããã¨ã§çæã³ã¼ãã®ãã¼ããè¡ãªããMJITã¨å¼ã°ããJITã³ã³ãã¤ã©ãå ¥ã£ã¦ããã®ã ãããã¼ã¸ããããã®ãã¤ã¼ãã«ãæ¸ãã¦ããéããRailsã§ä½¿ãã¨ããå¤ãã®ã¡ã½ãããJITãããã»ã©é ããªã£ã¦ãã¾ãã¨ããåé¡ããã£ãã çµæã"MJIT slows down Rails applications"ã¨ãããã±ãããå ±åããããã¨ã¨ãªããæ¨æ¥ã¾ã§ã®5ãæã®ééãããã¨ãã§ããªãã£ãã å ã®æ§æ 対çãå§ããåã®MJITã¯å¤§éæã«è¨ãã¨ããããæãã ã£ããã¡ã½ãã1ã¤ãã¨ã«1ã¤ã®.soãã¡ã¤ã«ãä½ããããã¼ããããã ç¡å¶
ããã«ã¡ã¯ãWebãã¼ã ã®æ´å±±ï¼@shikeapp0909ï¼ã§ãã ä»åã¯ãå¼ç¤¾Webã¢ããªãmamanokoãã®ä¸é¨ã«å¦çé«éåã®ããã«Goãå°å ¥ããã®ã§ãã©ã®ããã«å°å ¥ãããããç´¹ä»ãããã¨æãã¾ãã Railsã§éçºãã¦ããWebã¢ããªå ã«ã©ã®ããã«Goãåãå ¥ããã®ããå®éã®ã³ã¼ãä¾ã交ããªãã解説ãã¦ããããã¨æãã¾ãã ãªãRailsç°å¢ã«Goãå°å ¥ããã®ã ãããããªãGoãå°å ¥ãããã¨ã«ãªã£ãã®ãã¨çåã«æããããã¨æãã¾ãã mamanokoã¯ã¡ãã£ã¢ãµã¼ãã¹ã®ãããã©ã¤ã¿ã¼ããã«æç« ãæ¸ãã¦ããã ãã¦ãã¾ããè¤æ°ã®ã©ã¤ã¿ã¼ããããããæç« éãè¨å¤§ã«ãªãããã表è¨æºãã誤åãã©ããã¦ãåºã¦ãã¦ãã¾ãã¾ãã ãã®ãããæç« æ ¡æ£ãå¿ è¦ã§ããã以åãããã®æ©è½ãæä¾ãã¦ãã¾ããã ããããã®æç« æ ¡æ£ã®æ©è½ã¯è¨äºã®æç« ã«å¯¾ãã¦è¡¨è¨æºããªã©ãã§ãã¯ãããåèªãç·ãªãããå¦çããã¦ã
ã©ãã@kimihom ã§ãã ç§ã¯ Web ãã¬ã¼ã ã¯ã¼ã¯ã¯ Ruby on Rails ãå©ç¨ãã¦ããããããããã¼ã¸ã§ã³2.2 ã®é ãã使ãç¶ãã¦ããã®ã§ 7年以ä¸ã«ãªããããã¾ã§ãã¦ç§ã Ruby on Rails ã使ãç¶ããé åã«ã¤ãã¦å人çãªæ³ããè¨ãã¦ããã Rails ã®ä½è DHH ã¨å½¼ã®ç°å¢ Rails ã®ä½è ã¨ãã¦æå㪠DHH(David Heinemeier Hansson) ã¨ããååã¯ã Ruby on Rails ã触ã£ããã¨ããããªãå¿ ããèãããã¨ãããã ãããããããå½¼ã®ããä¼ç¤¾ Basecamp ãã©ããªæ³ãã§ã©ããªãã¨ããã¦ããããç¥ã£ã¦ãã人ã¯æ¡å¤å°ãªãã Basecamp ã¯ããã¸ã§ã¯ã管çã® SaaS ã§ãããä»ãä¸çä¸ã«é¡§å®¢ãæ±ããè¶ æåãµã¼ãã¹ã§ãããBasecamp 㯠Ruby on Rails ã®ææ°çããããã¯ãã«åæ ããç¶ãã¦
ã¦ã½ã¿ãããªæ¬å½ã®è©±ãRuby ã§ãã¡ãã³ã³ã¨ãã¥ã¬ã¼ã¿ãæ¸ãã¦ã¿ã¾ããã æ°ã«ãªãé度ã§ãããèªåã®ç°å¢ã§ã¯ 20 fps ã¡ãã£ã¨åºã¾ãããã¡ãã³ã³ã¯ 60 fps ãªã®ã§ãå®éã® 1/3 ã§ããRuby3x3 ï¼Ruby 3 㯠Ruby 2 ã® 3 åéãï¼ã¨ãã matz ã®å®£è¨ãå®ç¾ããã°ãå®éãéæããããã¨ã«ãªãã¾ããï¼ è©¦ãã¦ã¿ãã人ã¯ãããªãµãã«å®è¡ãã¦ãã ããã $ gem install ffi $ git clone http://github.com/mame/optcarrot.git $ cd optcarrot $ bin/optcarrot examples/Lan_Master.nesSDL2 ã SFML ãé©åã«ã¤ã³ã¹ãã¼ã«ããã¦ããå¿ è¦ãããã¾ããDebian/Ubuntu ãªã apt-get install libsdl2-dev ã§ã Ru
(訳注: 2016/3/2ãé ãããã£ã¼ãããã¯ããã¨ã«è¨äºãä¿®æ£ãããã¾ããã) Ruby on Railsã¯æè¿ãæ¥æ¿ã«æ³¨ç®ãéãã¦ãã¾ããããã®åå ã¯ã»ã¨ãã©ããã®è¨èªãæ¬æ°ãªãã¯ããã¸ã¼ã¨ãã¦ãã¦ã¯ãããããã¨ã¨ãã¿ã¤ãã³ã°ã«ããã¾ããæè¡çãªåªä½æ§ã¯æéã®çµéã¨ã¨ãã«å¤±ããã¾ããããã¿ã¤ãã³ã°ãããã£ãã ãã§ã¯ãä¸éæ§ã®ãã¼ã ã«çµããããã®ã ã¼ãã¡ã³ãã®éçã¯é·ç¶ããã¾ãããå¾ã£ã¦ããRailsãããã«ãã¦ãé©åãªæè¡ã¨ãã¦ã®ä½ç½®ãç¶æãç¶ãããã ãã§ãªããå½±é¿åã¨ã³ãã¥ããã£ãæ¡å¤§ãç¶ãã¦ããã®ãããããå¤ãã®äººã«èª¬æãã¦ããå¿ è¦ãããã¾ããããã¦ããã®ç¶æã»æ¡å¤§ãå¯è½ã«ãã/ãã¦ããè¦å ã¯ãç©è°ãé¸ããã¨ããããRailsã®åºæ¬ååã«ããã¨èãã¦ãã¾ãã ãã®åºæ¬ååã¯ãã10å¹´ã»ã©ã®éã«é²åãç¶ãã¦ãã¾ããããæãå¼·åºãªæ±ã¨ãªã£ã¦ããã«ã¼ã«ã¯ãã¯ããå ¬éå½åããå¶å®ããã¦ã
Passenger 3.x ã§è¤æ°ã®Rubyãã¼ã¸ã§ã³ã使ãåããã«ã¯ãã¨ã¦ãããªããã¼ãªå¯¾å¿ãå¿ è¦ã§ããã ã¨ãããPassenger 4.0.0 ããå ¬å¼ã«è¤æ°ã®Rubyãã¼ã¸ã§ã³ã«å¯¾å¿ãã¾ãããã¤ã¾ããåä¸çä½ã®Apacheã§åãä»ã¢ããªã±ã¼ã·ã§ã³ã¸å½±é¿ãä¸ãããã¨ãªããæ°è»½ã«ã¢ããªæ¯ã«ä½¿ãRubyãã¼ã¸ã§ã³ãå¤æ´ã§ããããã«ãªãã¾ãã ããã¾ã§ã®ææ³ mod_proxyãç¨ãã¦ãå¿ è¦ãªRubyãã¼ã¸ã§ã³æ¯ã«åä½èµ·åãããpassengerã«TCP/Socketã§ãããã·ããã¨ãããã®ã§ããããªããªããèªã¿è¾¼ãã¢ã¸ã¥ã¼ã«ã ãã§ãªããã°ãã¼ãã«å¤ã¨ãã¦æå®ããPassengerRootãPassengerRubyã®è¨å®ãè¡çªããããã§ãã Phusion Passenger & running multiple Ruby versions â Phusion Corporate Blo
ImageMagickããã¼ã¸ã§ã³ã¢ããããããã¦rmagickã®å ¥ããªãããããªãã¨ãããªãç½°ãããçºçãã¾ãããbundlerã®ç°å¢å ã§ãã£ãã®ã¯åãã¦ã ã£ãã®ã§å¯¾å¦æ³ãã¡ã¢ã ãããã¨ã¯ä»¥ä¸ã®å 容ã $ bundle exec gem uninstall rmagick $ bundle install å®éã«åããã¨ä»¥ä¸ã®ããã«ãªããã¨ã©ã¼ãåºããã©æ£å¸¸ã«åä½ãã¦ããããã $ bundle exec gem uninstall rmagick Successfully uninstalled rmagick-2.13.1 ERROR: While executing gem ... (NoMethodError) undefined method `delete' for #<Bundler::SpecSet:0x007f951d219698> $ bundle install
ï¼¼ééäºå®ã®ãµã¤ãã売ããããï¼ï¼ ã¢ã¯ã»ã¹ããªããµã¤ããã³ã³ãã³ã価å¤ã§å£²ããå ´åã⦠ãã¡ã¤ã³ã®æå¹æéãæ´æ°ãã¦ãµã¤ã売å´ã«ãã©ã¤ãã¦ã¿ã¾ããã
å¹³ç´ ããQAï¼ ITããå©ç¨ããã ããèª ã«ãããã¨ããããã¾ãã QAï¼ ITã¯ã質åãåçããå ±æãããç·¨éããã¦ãããã¨ã§ãã¹ããªQAãèç©ã§ãããITã¨ã³ã¸ãã¢ã®ããã®åé¡è§£æ±ºã³ãã¥ããã£ã¼ãã¨ãã¦ç´7å¹´ééå¶ããã¦ãã¾ãããããã¾ã§ãµã¼ãã¹ãç¶ãããã¨ãã§ããã®ã¯ãQAï¼ ITã®ã³ã³ã»ããã«å ±æãããã ããé©åãªè³ªåãåçããå¯ãããã ããçãã¾ã®ãæ¯æ´ããã£ãããããã¨èãã¦ããã¾ããéãã¦å¾¡ç¤¼ç³ãä¸ãã¾ãã ããããªãããã¨ã³ã¸ãã¢ã®æ å ±å ¥ææ¹æ³ã®å¤æ§åãQAãµã¼ãã¹å¸å ´ã®ç¶æ³ãï¼ ITã®ä»å¾ã®ã¡ãã£ã¢éå¶æ¹éãªã©ãæ¤è¨ããçµæã2020å¹´2æ28æ¥ï¼éï¼15:00ããã¡ã¾ãã¦QAï¼ ITã®ãµã¼ãã¹ãçµäºãããã¨ã«ãã¾ããã ããã¾ã§ãå©ç¨ãããã ãã¾ããçãã¾ã«ã¯æ®å¿µãªãç¥ããã¨ãªããèª ã«å¿è¦ããæã£ã¦ããã¾ããä½ã¨ãããç解ãããã ãã¾ãã¨å¹¸ãã§ãã QAï¼ ITã®7å¹´éã§çãã¾ã®ç¥è
â [Scala] RubyããScalaã«ä¹ãæãã15ãããã®çç± [注æ] ãã®æç« ãèªãã¨ãæ¢åã®Rubyã³ã¼ããScalaã§rewriteããããªãã Rubyã³ã¼ãã§åãã§ãã¯ãããã®ã鬱ã«ãªããRubyæ¡ä»¶ã§ããæ°ãåºãªããªãã ãªã©ã®å¹»è¦ãç°å¸¸è¡åãå ±åããã¦ãã¾ãã ç¾å¨é¢ãã£ã¦ããããã¸ã§ã¯ãã家æã®ãã¨ã常ã«æèãã æ°ãå¼·ãæã£ã¦å·éã«èªãã¨ããã§ãããã ãScalaããã°ã©ãã³ã°å ¥éããèªã¿ã¯ããã¦ããããªã大ããé ·ãã¦ãã¾ã£ãã "ã³ã¼ãã£ã³ã°æéã®ååããã¹ãä½æã«è²»ãããªããã°ãªããªãã£ã"(p.3) "Railsã«ãã£ã¦å¾ãããçç£æ§ã®åä¸ã¯ããã¹ãä½æã®ä½æ¥ã«å¤±ããã¦ãã¾ãã¾ãã"(p.3) ã¾ãã«ããæ°å¹´ç§ãæ±ãã¦ãæ¼ ç¶ã¨ããã¹ãã¬ã¹ã®æ£ä½ããç確ã«æç« ã¨ãªã£ã¦ããããã ãããã¦ã»ã©ãªããããããã®æ©è½ãRubyã«æ¬²ããã£ãï¼ãã¨ããé©ãã¨å ±ã« Sc
Rubyã§ã¯ãç°¡åã«ãã¼ã¢ã³ãè¨è¿°ã§ããããã®æ¹æ³ã¯ç°¡åï¼Ruby 1.9ã 㨠Process.daemon ã¨æ¸ãã ãã ããã®è¡ã®å¾ã¯å¶å¾¡ç«¯æ«ãåé¢ããããã¼ã¢ã³ã¨ãã¦å®è¡ããããCtrl+Cã§çµäºã§ããªãã®ã§ãæ°¸é ã«å®è¡ãç¶ããã¹ã¯ãªããã¯ãpkill -fããªã©ã§æ®ºãã æ¢åã®ã¹ã¯ãªããããã¼ã¢ã³åããã«ã¯ããã®ä¸è¡ãå ããã°ããã ããªã®ã ãã常ã«ãã¼ã¢ã³ã«ãã¦ãã¾ãã¨ãããã°ãå°é£ã«ãªã£ã¦ãã¾ããããã§ããã¹ãæã¯ãµã¤ãã«å®è¡ãã¦ãæ®æ®µã¯ãã¼ã¢ã³ã«ãã¦ãã¾ãã°ããããã®æ¹æ³ãã¾ãç°¡åï¼ä¸ã®ä¸è¡ã daemonize.rb ã¨ãããã¡ã¤ã«ã«ä¿åããã°ãããã ãã©ããã ãã ã¨ã¤ã¾ããªãã®ã§ãã¤ãã§ã«Ruby 1.8ã«ã対å¿ããã¦ã¿ãã if Process.respond_to? :daemon # Ruby 1.9 Process.daemon else # Ruby 1.8 req
ãã®äººãããã¯ãã¼ã¯ãã¦ãããã®ãRubyãä»äºã«ä½¿ãã¹ãï¼ãã¨ããè¨äºã§æ¸ããã¦ããRubyã®åªããç¹å¾´ã¯ãå®éã®ã¨ãããã©ã®é¨åããã©ãã¾ã§æ¬å½ãªã®ã§ããããï¼ å°ãæ¤è¨¼ãã¦ã¿ããã¨æãã¾ãã ãRubyãã¹ã´ã¤ãã¨ãããç¹ã®ã©ãããã³ãã§ã©ããã¦ã½ï¼ ãRubyãä»äºã«ä½¿ãã¹ããã§ã¯ãã¾ããRubyã®ç¹å¾´ã¨ãã¦ã (1)ããããªè¨èªã®ããã¨ãåã (2)æ§æãå¼·å (3)楽ããããã°ã©ãã³ã° (4)åé¡ãèµ·ããã«ããããã«è¨è¨ããã¦ãã ã¨ããç¹ãåé ã§æ²ãã¦ãã¾ãã ã¾ããããããã©ã®ããã«æ¤è¨¼ããã°ããããèãã¦ã¿ã¾ãã ã¾ãã(1)ã®ããã¨ãåãã«ã¤ãã¦ã¯ãããã¨ãåãããç¶ããªãããã¤ãé²åãã¦ããã®ã¯ãæè¿ã®è¨èªã¯ã¿ããªããã§ãããã¯Rubyç¬èªã®ç¹å¾´ã§ããªãã§ãããã¾ããã ãã¨ãã°ãC#ã¯ããã®å ¸åã§ãVMãèªåã¡ã¢ãªç®¡çãããã±ã¼ã¸ã«ããåå空é管çããã«ãã¹ã¬ããã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}