2007-01-01ãã1å¹´éã®è¨äºä¸è¦§
DateTime::Spanã使ã£ãcronããã°ã©ãã³ã° ä»åã¯åæè¨ãä½ã£ã¦ã¿ã¾ããï¼æ¥ã®åºï¼æ¥ã®å ¥ãã®æéãè¨ç®ãã¦ãã¦ï¼ããããæãå ãï¼æ®ãå ãã¨ãªãããããã®ã§ãï¼æ£åï¼ããããã¾ï¼ã12æãããªãã£ããï¼ä¸ä¸ã¤æããã³ãã«åå2æããã ã£ããï¼folâ¦
ä½ã ãããããããªã ã¹ã¤ããã®cpu使ç¨çã¯æ¥ã«è½ã¡çãã¦ãã¾ããï¼ä½ããã¦ãªããã ãã©ãªãï¼ä¸æ°å³ã§ãï¼ã ããã£ã¦ç£è¦ãããã¦ãã¾ãã¨å¾ãæãã®ã§ï¼ç¶ç¶ãã¦syslogãè¦ãäºã«ãã¾ããï¼ãããªã¨ãæ®éã¯ï¼syslogãµã¼ãã«ã¹ã¤ããã®logãé£ã°ãã¦/vâ¦
cpu使ç¨çãåå¾ããã«ã¯1.3.6.1.4.1.9.9.109.1.1.1.1.3ã使ãã¨è¨ããã¾ããï¼âã§ä½¿ã£ã¦ããmibã¯IOSã12.0(3)T以åã®ãã¼ã¸ã§ã³ç¨ã§ï¼æ°ãããã¼ã¸ã§ã³ã®IOSã§ä½¿ãã¨ä¸æ£ç¢ºãªå¤ãè¿ãããã§ãï¼ã¡ãªã¿ã«ï¼cpu使ç¨çãç°å¸¸ã«é«ãå¤ã ã£ãã®ã¯ã使ã£ã¦ããIOâ¦
ããæ¥ï¼ ãªãã ããããã¯ã¼ã¯ã®èª¿åãä¸å®å®ã ã£ãã®ã§ï¼ãµã¨ã³ã¢ã¹ã¤ããã®cpu使ç¨çãè¦ã¦ã¿ã¾ããï¼ããã¨ããã«ã¯98%ã®æåãï¼æ¥é½ã·ã¹ãã 管çã®å¿ è¦æ§ã«ç®è¦ãã¾ããï¼MRTGãRRDToolã§ãåããããã¨æã£ãã§ããï¼ãããªã®ã¯æä½ã£ãã®ã§ã¤ã¾ããªâ¦
è³æ çºè¡¨ã§ä½¿ã£ãã¹ã©ã¤ãã¯ããã§ãï¼ ææ ããã¹ã£ãå¾ã«ãããªãã¨ãè¨ãã®ã¯ãªããªãã§ããï¼cronã§ã¯ãªãã¦Gunghoã使ã£ãã®ãã¨ãã説æããã¾ãã§ãã¦ã¾ããï¼ ãããã¯ã¼ã¯ä¸ã®WebAPIã«ã¢ã¯ã»ã¹ åå¾ããæ å ±ã«åºã¥ãããã°ã©ã ãå é¨ç¶æ ãå¤æ´ â¦
Web::Scrapperã¨autoboxã使ã å æ¥ï¼ãã©ã³ããªãã£ã¹ã¸ã®éä¿¡ãæ¥ã«ãã¦ã³ãã¾ããï¼ã«ã¼ã¿ãå£ããã®ãï¼ã¨ãè²ã çã£ã¦èª¿ã¹ããããBãã¬ãããæ éãã¦ãã¨ã®æ å ±ãçºè¦ï¼çµå±ãããåå ã ã£ãã®ã§ããï¼ãã®æã«æã£ãã®ãæ±è¥¿NTTã®ãã¬ããæ éæ å ±ãâ¦
CotEditorã®ã¹ã¯ãªãã FireBugã使ã£ã¦ãã¦ï¼Consoleãã"console.toSource()"ã¨å®è¡ããã¨FireBugã®ã¹ã¯ãªããã表示ã§ãããã¨ã«æ°ãã¤ãã¾ããï¼ã§ããã£ã¡ãããã¦ãã¦èªã¿ã«ããããï¼æåã¯æã§ç·¨éãã¦èªããã¨ãã¦ãããã ãã©ï¼ãããªãã¨ã¯èªåã§â¦
WMIã¨ã®è¦é ãã¡ã¤ã«ãµã¼ãä¸ã«ä¿åãã¦ããç»åãã¼ã¿ï¼1ã¶æ以ä¸çµã£ããã®ãæ¶ããã¨ã«ãªãã¾ããï¼ãï¼ããã¯ããwin2003ãµã¼ãï¼æ®æ®µä½¿ãæ £ããfindã³ãã³ããããã¾ããï¼æ£ç¢ºã«è¨ãã¨ï¼ã³ãã³ãã¯ãããã©ä¸èº«ã¯grepï¼ããããã使ãã¾ããï¼ã£ã¦ãâ¦
mailéä¿¡ æ¨æ¥ãæ¸ããããã«ï¼JScriptããã¡ã¼ã«ãéãã«ã¯http://yamashita.dyndns.org/blog/358ã®ã³ã¼ãããã®ã¾ã¾ä½¿ãã¾ãï¼pingã«å¤±æããIPã¢ãã¬ã¹ãã¡ã¼ã«æ¬æã«è¨è¼ã§ããããã«ï¼%IPADDR%ã¨ãããã¼ã¯ã¼ãããã£ãããããIPã¢ãã¬ã¹ã«ç½®ãæãã¦â¦
pingãªãã¸ã§ã¯ã javascriptã§pingã§ãããã¨ãããã£ãã®ã§ãªãã¸ã§ã¯ãã«ã¾ã¨ãã¦ã¿ããã¨ã«ãã¾ããï¼Pingerãªãã¸ã§ã¯ãã§ãï¼ var Pinger = function(){}; Pinger.ipid = {}; Pinger.wmi = GetObject("winmgmts:\\\\.\\root\\CIMV2"); Pinger.prototypâ¦
pingãã¼ã« 仲éãpingãã¼ã«ã欲ããã¨è¨ã£ã¦ãã¾ããï¼1æéæ¯ã«2,3åãã§ãã¯ãã¦å¿çãªããã°ã¡ã¼ã«ããã¨ãããã®ï¼windowsã§åããã®ã¨è¨ãããã®ã§ããã£ã¦ã¿ããã¨ãããã©ï¼è»è¼ªã®åçºæããã¦ã¿ããã¨ã«ãã¾ããï¼ä½¿ã£ã¦ã¿ãã®ã¯htaã§ãï¼ãã¡ã¤ã«â¦
JavaScriptã§ãããããããã ãµã¼ãå´ã®ã¹ã¯ãªãããè¼ãããï¼èªä½ã®JavaScriptã©ã¤ãã©ãªãè¼ãããï¼å¾ã¯ã¯ã©ã¤ã¢ã³ãæ¬ä½ã§ãï¼èªåã«ãã¶ã¤ã³ã»ã³ã¹ããªããã¨ãããã¨ããã»ã©æãç¥ã£ãã®ã§ï¼cssã®å ¬éã¯ãåå¼ãï¼åãã¦ãç»é¢ã®ãã£ããã£ããä»â¦
jquery plugin json for jqueryãGlen Hinkle (tempire)ãæ°ã«å ¥ããªãã£ãã®ã§èªåã§ä½ã£ã¦ã¿ã¾ããï¼ä½ãæ°ã«å ¥ããªããã¨ããã¨ï¼cpu使ç¨çã100%ã«ãªã£ããIEã§åããªãã£ããããããã§ãï¼json for jqueryããã¼ã¹ã«ãã¦ã¿ã¾ããï¼ $.json = {script: â¦
ã·ã§ã«ãè½ã¨ããªã æ¨æ¥ä½æããã¹ã¯ãªããï¼é£ç¶ãã¦åããã¦ãããã¨æã£ã¦ï¼ $ ./jsonp.pl & $ exitã¨ããã£ããæ¢ã¾ã£ã¦ãã¾ãã¾ããï¼nohupã使ã£ã¦ãã ãï¼è²ã ãã£ã¦ã¿ãã¨ã©ããï¼stdioé¢ä¿ã§ã¨ã©ã¼ãã§ã¦ãã£ã½ãï¼ã£ã¦ãã¨ã¯HTTP::Request::AsCGIâ¦
1対1ãã£ãã 1対1ã§ãã£ããããcometãã¼ã¹ã®ä»çµã¿ãä½ã£ã¦ã¿ã¾ããï¼ã¯ã©ã¤ã¢ã³ãå´ã¯ã¾ã ãã©ãã·ã¥ã¢ãããã¦ãæä¸ã§ããï¼ãµã¼ãå´ã®ã³ã¼ãã¯è½ã¡çãã¦ããã®ã§ã¾ã¨ãã¦ã¿ã¾ãï¼ãã®ãµã¼ã㯠html, css, jsãã¡ã¤ã«ã®ãã¦ã³ãã¼ã /sendã«ã¯ã©ã¤ã¢â¦
ãªãã¨ãåãã cometã§ä½ãåããã®ãä½ã£ã¦ã¿ããã¨æã£ã¦ããã®ã§ããï¼ãã¿ãæãã¤ããªãã¦å¿ãã¦ãã¾ããï¼ã§ï¼ãµã¨ã¯ã©ã¤ã¢ã³ãã®æå»ãããªãã¦ï¼ãµã¼ãããæå»ãé ä¿¡ãããã¼ã«ãä½ãã°ç°¡åãªãµã³ãã«ã«ãªãããããªããã¨æãã¤ãã¾ããï¼winä¸ã®â¦
http://d.hatena.ne.jp/lestrrat/20070524#1179968337ã§ã»ãã¦ããããï¼ã®ã§ï¼æ°ãè¯ããã¦ã³ã¼ããããã«ä¿®æ£ï¼åããå§ãã¾ããï¼è¨å®é¨åã¯config.ymlã¨ãã¦åãåºãï¼ã¢ããªã±ã¼ã·ã§ã³åºæã®é¨åãåé¢ãã¦ãã¾ãï¼ ã¹ã¯ãªãã Gunghoå¨ãã®ã¹ã¯ãªããâ¦
ããã¡ãã£ã¨ãã£ã¦ã¿ã æ¨æ¥ä½ã£ãã¹ã¯ãªããã¯ï¼ãã¡ãã¡ã«ä¸æçãªå¤æ°ããã£ã¦ç¾ãããªãã¨æã£ã¦ã¾ããï¼closureã使ãã°ãããã«ãªããããªæ°ããããã§ããï¼ã¯ã©ã¹ã¡ã½ããã§ä½ãæ¹ãç¾å®çãã¨æã£ã¦ï¼Class::Data::Inheritableã使ã£ã¦ã¿ã¾ããï¼â¦
ãã°ãã£ã twitterã«POSTããæï¼401ã¨ã©ã¼ã§ããä¸åæãç´ããã¨ããéã«ï¼requestãããã«ãªã¹ãã«è¿½å ããã¦ï¼ç¡éã«twitterã«æ稿ãã¦ãã¾ããï¼æ稿ããæ¡ä»¶ãè¦ç´ãã¦ã¿ã¾ããï¼ææ¥è©¦é¨ããããªããã¦ï¼åé¡ãªããã°ããããï¼ã¨ï¼ ä¿®æ£ããã¹ã¯ãªâ¦
hinetmaniaæ¹ http://twitter.com/hinetmaniaã§ä½¿ã£ã¦ãã¹ã¯ãªããã¯NIED Hi-net β Ver. [High Sensitivity Seismograph Network Japan]ã«ã¢ã¯ã»ã¹ããã¨ãã«ã¯Gunghoã使ã£ã¦ãããã§ããï¼twitterã«ã¢ã¯ã»ã¹ããéã«ã¯Net::Twitterã使ã£ã¦ãã¾ããï¼GET/Pâ¦
Web::Scraperã®ã¡ã¢ 0.05çãå ã«æ¸ãã¦ã¾ãï¼ãã¼ã¸ã§ã³ããããã¨ä½¿ãæ¹ãå¤ãã£ã¦ããã¨æãã®ã§ï¼æ°ããæ å ±ãåèã«ãã¦ãã ããï¼ééããã£ããææãã¦ããããã¨ããããã§ãï¼ ãµã³ãã«ãè¦ã ä»å±ã®ä¾ãè¦ã¦ã¿ã¾ãããï¼ #!/usr/bin/perl use strâ¦
hinetmaniaæ¹ Gungho::Inlineã使ã£ã¦ã¿ãã®è¨äºã§ã¯cssã»ã¬ã¯ã¿ã使ã£ã¦ã¿ã¦ãã¾ãï¼cssã»ã¬ã¯ã¿ã¯ä¾¿å©ã ãã©ï¼ãã¾ããªããå¤ãã¦ã¡ãã£ã¨ãããããã¨ãæã£ã¦ããã®ã§ããï¼å®®å·ãããä½ãããWeb::Scraperã使ãã¨ç¾ããæ¸ãã¾ãï¼ãããªæãï¼ source â¦
ãã©ãã¯ããã¯ãè¦ã¦ï¼twittermapã¨ãããµã¼ãã¹ãç¥ãã¾ããï¼twitterã§updateããéã«ï¼"L:35.228794,139.027863"ã¨ãæ¸ãã¦ããã°ï¼http://twittermap.com/ãµã¤ãã§æ¤æ»ããæã«ï¼googlemapä¸ã§å ´æã確èªã§ããã¨ãããã®ï¼æå ã®ãµã¼ãããªãã®ã§ï¼ã´â¦
twitterã使ã£ã¦ãã¦ï¼èªåã«å½±é¿ãä¸ããããªäººã£ã¦ã©ãããããããã ããï¼ã¨ãµã¨æãã¾ããï¼ãã¬ã³ããªã¹ãã«è¼ã£ã¦ãã人ã®ã¹ãã¼ã¿ã¹ã¯ç´æ¥è¦ãããã ããå½ç¶å½±é¿ãåããã§ãããï¼ãã®äººéã®ãã¬ã³ããªã¹ãã«è¼ã£ã¦ãã人ãéçããªï¼6次ã®éããâ¦
http://d.hatena.ne.jp/lestrrat/20070421#1177116589ã§ï¼ã³ã¡ã³ãåéã¨ãªã£ã¦ããã®ã§ï¼èª¿åã«ã®ã£ã¦ã³ã¡ã³ãã§ãï¼ Gungho->newã¯ã¡ãã£ã¨ãããããã¨ãGungho->setup; Gungho->runã®ã»ããå®è£ çã«ã¯æ£ãããã¤ã³ã¹ã¿ã³ã¹æ¯ã«è¨å®ãå¤ããããããã«ãâ¦
http://d.hatena.ne.jp/lestrrat/20070421#1177116589㧠Gunghoã®ã³ã³ãã¼ãã³ãã¯ãªãã¸ã§ã¯ãä½ææã«è¨å®ããã¾ãããªã®ã§èªåã§inject_baseããå¿ è¦ã¯ãªãã®ã§ãã ã¨æãã¦ããã£ãã®ã§ï¼ã¡ãã£ã¨èãç´ãã¦ã¿ã¾ããï¼
twittershellã®ã¡ãã£ã¨ããæ¹é GTalkã¨ã®é£æºãããã£ã¡ã ãããããä»æ¥ãã®ããï¼Twitterã¦ã¼ã¶ã®çæ§ã«ã¯ãããããããã§ããããï¼ç¬ ããã¾ãã«ãè½ã¡ãã®ã§ï¼ç§ã¯twittershellã使ãå§ãã¾ããï¼ãã®ã¹ã¯ãªããã¯ç§ãããä½ãããTwitter::Shell - â¦
Gungho::Inlineã使ã£ã¦ã¿ã Gunghoï¼æªæ¦è¦éãã¦ãã¾ãï¼ã¡ãã£ã¨è©¦ãã¦ã¿ãã«ã¯Gungho::Inlineã使ãã°ãããã§ããï¼Componentãã©ããã£ã¦çµã¿è¾¼ãã°ããã®ããããããªãã¦è©¦è¡é¯èª¤ã®ç¹°ãè¿ãã§ãï¼ã¾ã Throttlingæ©è½ã¯ä½¿ããªããã§ããï¼ç°¡åãªãµã³â¦
åãã¦ã®gungho twitterã§éã³ãã twitterã使ã£ã¦ãã¦ï¼å ¥åºåãå¥ã®ã¢ããªã±ã¼ã·ã§ã³ã«ç¹ãããã£ã¦èããããã«ãªãã¾ããï¼Net::Twitterã使ãã°ã¢ã¯ã»ã¹ã§ãããï¼POEã使ãã°ircã§ãGTalkã§ãå ¥åºåå¯è½ã§ãï¼ã§ãNet::Twitterã¯ä¸ã§LWP::UserAgentãâ¦
jcode.plã¨Jcode.pm YAPC::Asia 2007ã®æ親ä¼ã§ä¹ ãã¶ãã«æ代ããã«ãä¼ããã¾ããï¼æ代ããã¯Tokyo.pmãã§ããã¨ãããã®ã¡ã³ãã¼ãªãã§ããï¼ãå¿ããã®ã§æ°ããã»ã©ãããä¼ããããã¨ãããã¾ããï¼ã§ï¼ãã®ã¨ã話ãã§ã¦ããã®ã ã¨ããã§ãåã¯å¼¾ããâ¦