å¤ãã ãã ãæ·±ããªã£ã¦ãããããã ã ãå¿ã®ä¸ã«ã¯æããå ãè¼ãã¦ããã ããã¯ãèãããã¨ãæ¥ãã§ä»ä¸ãããã ãã¡ã¦ã¹ããã²ã¼ãããã¡ã¦ã¹ãããã Perlã®ããã°ã©ã ãä½æä¸ãããã°ããã¨ãããµãã«ã¼ãã³åã確èªç¨ã®ãã°ã¸åºåããããã¨ãããããã¡ãã¡æååã§åãè¾¼ãã®ã¯å¤§å±¤ã ãã¡ãã£ã¨èª¿ã¹ã¦ã¿ãã¨ããµãã«ã¼ãã³åãç°¡åã«åå¾ã§ããã³ã¼ããè¦ã¤ãã£ãã How can I get the name of the current subroutine in Perl?ã®No.35ã«ã¦ãã°ãææããã¦ãããcaller()ã¨å¼ã°ããçµã¿è¾¼ã¿é¢æ°ãå©ç¨ãããããã callerã«ããã°ããµãã«ã¼ãã³ã®å¼ã³åºããã¬ã¼ã æ°"0"ãå¼æ°ã¨ãã¦æ»ãå¤ãé åã³ã³ããã¹ãã§å¼ã³åºãã¨ãã¤ã³ããã¯ã¹3ã«ãµãã«ã¼ãã³åãåºã¦ããã®ãåãããæ©éãã¹ãã³ã¼ããä½ã£ã¦ã¿ãã #! /usr/bin/perl
ãã®è¨äºã¯ Perl Advent Calendar 2018 ã® 12/4 ã®è¨äºã§ã Perl Debugger (perl -d) ãå¹ççã«ä½¿ãã³ãçãªè©±ãæ¸ãã¾ãã perl ã®æ¨æºãããã¬ãªãã¦å½¹ã«ç«ããªãã¨æã£ã¦ãã人ã®ããã®è¨äºã§ãã TL;DR step/next ã¯æä½éã«ãbreak ãããåæãäºã決ã¾ã£ã¦ãããªãããããã°å¯¾è±¡ã³ã¼ãã«ããã¼é¢æ°ã®å¼ã³åºããå ããæãæãã Perl Debugger ã¨ã¯ åçã«ãã¼ããããã³ã¼ãã« breakpoint ãä»è¾¼ãã«ã¯ æ£æ»æ³ã§è¡ãå ´å é転ã®çºæ³ï¼breakpointãç½®ãããã ãã®ããã¼é¢æ°ã使ã 注æç¹:ããã¼é¢æ°ãå¼ãã ã¾ã¾ã§ã¯æ¬çªã§ã³ã±ã çµããã« Perl Debugger ã¨ã¯ Perl Debugger 㯠perl ã«æ¨æºã§æ·»ä»ããããããã¬ã§ãperl èµ·åæã« -d ãªãã·ã§ã³ã渡ããã¨ã§å©ç¨
ãã½ãããã¯ã ãããã§ã¯ãã½ããã¦ã§ã¢éçºã«é¢ããæ å ±ãéçºç¾å ´ã«ããã社å¡ã®åãçµã¿ãªã©ãå®æçã«ãç¥ãããã¦ãã¾ãã ãã¾ãã¾ãªãã¼ããåãä¸ãã¦ãã¾ãã®ã§ãä»ã®ã½ãããã¯ã ãããããã²ã覧ä¸ããã ã½ãããã¯ã ããï¼çºè¡æ¥é ï¼ã®ãã¼ã¸ã¸ ã½ãããã¯ã ãã æè¡ã¬ãã¼ãï¼æè¡åéå¥ï¼ã®ãã¼ã¸ã¸ ã½ãããã¯ã ãã ç¾å ´ã®å£°ï¼ã·ã¼ã³å¥ï¼ã®ãã¼ã¸ã¸ Windowsããã°ã©ã ï¼C/C++ï¼ã®åä»ãªåé¡ã®ã²ã¨ã¤ã«ãã¢ããªã±ã¼ã·ã§ã³ã¨ã©ã¼ãããã¾ãã æè¿ã§ã¯.NET Frameworkä¸ã§åä½ããããã¼ã¸ãããã°ã©ã (â»1)ã®ããã°ã©ã ãå¢ãã¦ãã¦ãããããã¢ããªã±ã¼ã·ã§ã³ã¨ã©ã¼ãçºçããå¯è½æ§ã¯ä½ãã¨æãã¾ãããã¾ã ã¾ã ç¾å½¹ã®ãã¤ãã£ãããã°ã©ã (â»2)ã¯å¤ããããé¿ãã¦ã¯éããªãåé¡ã§ãã ãããªä¸ãå æ¥ãç§ã«ã¢ããªã±ã¼ã·ã§ã³ã¨ã©ã¼ã®èª¿æ»ä¾é ¼ããããæ å½ãããã¨ã«ãªãã¾ãããããããæ°å¹´æ¯ã
ãã¹ãå®è¡ä¸ã«ããä»ã£ã¦ã©ããªç¶æ ãªãã ã£ãï¼ãã¨ç¥ããããã¨ãããã¾ãã ããã§å½¹ã«ç«ã¤ã®ãlaunchyã¨ããgemã§ãã https://www.ruby-toolbox.com/projects/launchy 使ãæ¹ launchyãã¤ã³ã¹ãã¼ã« Gemfile group :test do gem 'launchy', '2.4.2' end $ bundle install --without production specãã¡ã¤ã«ãè¨è¿° describe "Top page" do it "should have 'home page'" do visit '/static_pages/home' # ãã©ã¦ã¶ã§éã save_and_open_page page.should have_content('home page') end ããã便å©ã§ãã
ãæ»åãã ãã (2022å¹´12æ8æ¥ è¿½è¨) ããã¼ãã£ã¼ããæ¸ãç´ãã¾ãããå 容èªä½ã¯å½æã®ãã®ã¨åãã§ãã è£è¶³ ããã©ã¼ãã³ã¹ã®åºãæ¹ã¯äººãããããªã®ã§ãç§ã¯ãããªæãã§ããã¨ãããã®ã§ãã ã¨ããããããªãããã°ããª?ãã¨æã£ããä¼ã ä½èª¿çã«ã¯ãã¡ããããããçµæ§ãã°ããã ãª?ãã¨ããåæã¯å¤§äº 15å以ä¸(é·ãã¦ã30å)æ©ãã ãå¨ãã«èãã¦ã¿ã ããããæã¯ã ããã è¦éãçããªã£ã¦ãã(ç°¡åãªã¹ãã«ãã¹ã ã£ãã) æé»ç¥ã«è§¦ãã¦ãã(æ¥åã ã¨ãããã) ã¨ã¦ã¤ããªãé£åã«ã¶ã¡ããã£ã¦ãã ã¨ãã£ãã±ã¼ã¹ãªã®ã§ã仲éã«SOSãåºããæ¹ããã¼ã å ¨ä½ã®é²æãçµæçã«è¯ããªããã¨ããçµé¨è«ã§ãã ã¡ãªã¿ã«15åã®æ ¹æ ã¯ãªãã¨ãªãã§ãã ã¡ãªã¿ã«ãåé¡ã«åãçµã¿å§ãããã®ç¬éããã15åãã£ã¦ããããªãã£ãã誰ãã«èãããã¨ãã¦ããå ´åã¯ã ããã¼ãã£ã¼ãã®ã30ååãã¦ãªãã£ãã
ãªã¼ãã³ã½ã¼ã¹ã®ã¨ãã£ã¿ãVisual Studio CodeããChromeãã©ã¦ã¶ã®ãããã¬ãããã³ã«ã«å¯¾å¿ãã¨ãã£ã¿ããç´æ¥ãããã°å¯è½ã« ãã¤ã¯ãã½ããããªã¼ãã³ã½ã¼ã¹ã§å ¬éãã¦ãããVisual Studio CodeãããChromeãã©ã¦ã¶ã®ãããã¬ãããã³ã«ã«å¯¾å¿ãããã¨ãçºè¡¨ããã¾ããã Visual Studio Codeã®ã¨ãã£ã¿ç»é¢ãããChromeãã©ã¦ã¶ã§å®è¡ãã¦ããJavaScriptã®ãã¬ã¼ã¯ãã¤ã³ãã®è¨å®ã¨å®è¡ã¨åæ¢ãå¤æ°ã®åç §ãªã©ãå¯è½ã«ãªãã¾ãã JavaScriptã®Soruce Mapæ©è½ãåããããå§ç¸®æ¸ã¿ã®ã³ã¼ããå®è¡ãã¦ãèªåçã«Visual Studio Codeä¸ã®å§ç¸®åã®JavaScriptã³ã¼ãã«å¯¾å¿ãã¦ãã®ã¾ã¾ãããã°å¯è½ãã¾ãåæ§ã®ä»çµã¿ã®ãããã§TypeScriptã®ã³ã¼ããVisual Studio Codeä¸ã§ãã®ã¾ã¾ããã
When I get exceptions, it is often from deep within the call stack. When this happens, more often than not, the actual offending line of code is hidden from me: tmp.rb:7:in `t': undefined method `bar' for nil:NilClass (NoMethodError) from tmp.rb:10:in `s' from tmp.rb:13:in `r' from tmp.rb:16:in `q' from tmp.rb:19:in `p' from tmp.rb:22:in `o' from tmp.rb:25:in `n' from tmp.rb:28:in `m' from tmp.rb:
Railsã¢ããªã±ã¼ã·ã§ã³ã®ãããã°ã¯ã©ã®ããã«è¡ã£ã¦ãã¾ããï¼ãæç´ã«ããªã³ããããã°ï¼ãã§ãè¤éãªãã¸ãã¯å ã ã¨ããã®ãã¸ãã¯ã®ãã®å¦çã®ããã§ãã³ãã¤ã³ãã§æ¢ãããï¼ãã¨ããå ´åãããã¾ãããã ãããªã¨ãã«ä¾¿å©ãªã®ãpry-byebug. Githubã®ãªã³ã¯ã¯ä¸è¨ã https://github.com/deivid-rodriguez/pry-byebug pry-byebugã使ãã°ãã³ãã¤ã³ãã§å¦çãæ¢ãã¦ã¹ãããå®è¡ãå¯è½ã«ãªãã¾ãã RequirementRuby2以ä¸pry-byebugã§ä½¿ããã¦ããByebugã¯Ruby2åæã®ãããã¬ã¼ãªã®ã§2以ä¸ãå¿ è¦ã«ãªã£ã¦ãã¾ãã å°å ¥ä¸è¨ãGemfileã«è¿½å ãã¦bundle install. ã¦ã¼ã¹ã±ã¼ã¹ä¾ãã°ãããªã³ã³ããã¼ã©ã¼ã®ãã¸ãã¯ããã£ãã¨ããã class PostsController < Applicat
Chromeã®ãããããã¼ãã¼ã«ãããã®ããã«ä½¿ãããªãããã®20ã®ãã¯ããã¯ãç´¹ä»ãã¾ãã ããã¼ãæ¬å½ã«ãããããã¼ãã¼ã«ã¯æ©è½ãè±å¯ã§ããã How to use Chrome DevTools like a Pro ä¸è¨ã¯åãã¤ã³ããæ訳ãããã®ã§ãã â»å½ããã°ã§ã®ç¿»è¨³è¨äºã¯ãå ãµã¤ãæ§ã«è¨±å¯ãå¾ã¦ç¿»è¨³ãã¦ãã¾ãã HTMLã®è¦ç´ ãã¯ã¤ãã¯ç·¨é æå®ããè¡çªå·ã«ç§»å ãã¹ã¦ã®åãã¼ããå±é ãããããã¼ãã¼ã«ã®ä½ç½®ãå¤ãã CSSã®ã»ã¬ã¯ã¿ã«ããDOMæ¤ç´¢ Material Designã¨ã«ã¹ã¿ã ã«ã©ã¼ãã¬ãã è¤æ°ã®ã«ã¼ã½ã« ç»åãData URIã¨ãã¦ã³ãã¼ çä¼¼ã¯ã©ã¹ã®ããªã¬ã¼ è¤æ°ã®ã³ã©ã ããã©ãã°ã§é¸æ ã$0ãã§ç¾å¨ã®è¦ç´ ãæã«å ¥ãã è¦ç´ ã®è¡¨ç¤º ãEvent Listenersãã®è¡¨ç¤º ã¤ã¼ã¸ã³ã°ã®ãã¬ãã¥ã¼ Media Queriesã®æ¤è¨¼ ãããã¯ã¼ã¯ããã£ã«ã
ã¦ã§ããµã¤ããé²è¦§ããã¦ã¼ã¶ã¼ã®ç°å¢ã¯å¤å²ã«æ¸¡ãã¾ãããããã£ã¦ãã¦ã§ãå¶ä½è ã¯å¤ãã®ç°å¢ã®åä½ç¢ºèªãããªããã°ãªãã¾ããããã®æã®æéã大ããçãã¦ãããBrowsersyncã¨ãããã¼ã«ãç´¹ä»ãã¾ãã Browsersyncã¨ã¯ãã¡ã¤ã«å¤æ´ãç£è¦ããèªåã§ãã©ã¦ã¶ãªãã¼ããè¡ã£ã¦ããããã¼ã«ã§ãããã¼ã«ã«ãµã¼ãã¼ãèµ·åã§ããããè¤æ°ã®ãã©ã¦ã¶ã§æä½ã®åæãå¯è½ã¨ãã£ã便å©æ©è½ãæºè¼ã§ãã Browsersyncã®ãã¢åç» Browsersyncã®ãã¢åç»ãç´¹ä»ãã¾ãããã¹ã¯ããããã©ã¦ã¶ã¨ã¹ãã¼ããã©ã³ï¼iPhoneï¼ã®ãã©ã¦ã¶ãåæãã¦ããããã¡ã¤ã«ã®ç·¨éå¾ã«èªåãªãã¼ããã¦ãã¾ããCSSã§ããªããºããèµ°ãããã¢ãã¡ã¼ã·ã§ã³ã§ããHTMLãCSSã®ãã¡ã¤ã«ç·¨éããªã¢ã«ã¿ã¤ã ã«åæ ããã¦ãããã¨ããããã¾ãã Browsersyncã¯ä½ã便å©ã«ãã¦ãããã®ã ãã¡ã¤ã«ã®ç·¨éå¾ã«è¤æ°ãã©
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}