2011-01-01ãã1å¹´éã®è¨äºä¸è¦§
ãã3æ¥éã»ã©ã家ã§å±±ã«ããã£ã¦ä¸äººã½ã¼ã¹ã³ã¼ãèªã¿å¤§ä¼ã¿ãããªãã¨ããã¦ãããPerlã®ã³ã¼ãã«ã¤ãã¦ã¯ãã ããã以ä¸ã®ãããªæé ãæãèªã¿ããããã¨ãããã£ãã 1. Foo.pmã®PODã®ä¸ã®æ¹ããã 2. Fooã«ã¤ãã¦ã®blogè¨äºãªã©ãæ¤ç´¢ãã¦ããã®ã¢ã¸ã¥â¦
ãã®è¨äºã¯JavaScript Advent Calendar(ãªã¬æ¨æºã³ã¼ã¹)ã®13æ¥ãã®ã¨ã³ããªã¤ã«ãªãã¾ãã ã¡ãªã¿ã«å®¶ã«å¸°ã£ãç¬éããã·ã³ã®æè¨ãããã¦12/14ã«ãªã£ã¦ã¦ã大åä¸äººã§ç¦ãã¾ãããã¦ã¸ãºãããºããºãããã®è¨äºã®é¡æã¯JavaScriptã«ãããã¡ãã»ã¼ã¸ã³ã°ï¼â¦
ãªãã foo { bar { baz { # barã¯fooã®ãªãã§ãããbazã¯barã®ãªãã§ãããã¹ãªã } } } ã¿ãããªDSLã¡ã£ããªãã®ãç°¡åã«ãããã¢ã¸ã¥ã¼ã«ããã£ã¦ããããããããªããã¨æã£ã¦ãPlack::Builderãã¿ãã¨ããããããã®ãããªæãã ã£ãã®ã§https://gist.gâ¦
http://d.hatena.ne.jp/antipop/20111101/1320164459ãããè¦ã¦ããJSã§HTML5 form validationã®ruleãDOMããå¼ã£ãæãã¦ãJSON schema ( http://tools.ietf.org/html/draft-zyp-json-schema-03 ) ã«å¤æãã¦ããããsubmitã®ç´åã«type="text"ãªinputã¨ãâ¦
ï¼â»ãã®ã¨ã³ããªã¼ã¯ããAndroidã®ãã©ã¦ã¶ã¯æ¬å½ã®ã¯ã½Advent Calendarãã®ä¸æ¥ç®ã®è¨äºã¨ãã¦æ¸ãã¦ãã¾ãï¼12/2ã«çºå£²äºå®ã®Galaxy Nexusã«ãæè¼ãããäºå®ã®Android4.0ã§ããããªãã¨æ¨æºãã©ã¦ã¶ã«HTML5 history APIããå®è£ ããã¦ãã¾ãããã2.2ç³»ãâ¦
ä»äºã§Java使ã£ã¦ãããã§ããªãããã£ã¦ãããJava触ã£ã¦ãã®ã£ã¦ç 究室ã§ã®ããä¸ææã ãã§Javaã®ã¸ã£ã®åãåãã£ã¦ããªãã®ã ãã©ããä½èª¿ãæªãã¨ãã¯ã²ããããã©ãã©ã¤ã³ããããããã¨ãããã¤ãéãã®è¡åãåã£ã¦ããããJava並è¡å¦çããã°ã©ãâ¦
Webãµã¤ããã¤ãã£ã¦ããã¨ãã ãããæä½ã§ã * æ¬çªç°å¢ * éçºç°å¢ã®ï¼ã¤ãããã¯ç°å¢ããã£ã¦ãå½ç¶ãªããã©ã¡ããå¥ã®ãã¹ãåã§åç §ãã¦ããã¨ãããã®ã ãã©ãéçºã¨ããã¹ãã®éã«ããã®URLãéçºç°å¢ã®hostã§éãããï¼ãã¨ãããã®URLãæå ã®VMã®â¦
ä»äºæãããããããã«ããµã¤ãºã®ãã¡ã¤ã«ã¢ãããã¼ãã¨ããpreforkã§ããã¹ããããªããããã¤ãã³ãã¢ãã«ãããªãã¨å³ãããã¨ããããªè©±ããããã¨ããã£ã¦ãã確ãã«preforkã ã¨ãã®å ´åããããã»ã¹ãåã¾ã£ã¡ããã¾ããããã¨ãèªåãåãã£ãããâ¦
ãªããèªåã§ãhashã¨pushStateã®ä¸¡å¯¾å¿ã¯ãããã風ã«ããã©ããããã§ããã¨ãç ½ã£ã¦ããã¦ã¢ã¬ã ãã©ãããæè¿ã¯ãï¼ã¹ãã¼ããã©ã³ã«é¢ãã¦ã¯ï¼å¥ã«ä¸¡å¯¾å¿ãããªããï¼ãã¨ããæ°åã«ãªã£ã¦ãããã¨ããã®ã¯ãå ã 両対å¿ã®ã³ã¼ãã¯ã¹ãã¼ããã©ã³ã®ãã©â¦
å£ä¸ historyã¨Ajaxã¨ããã°ãJavaScriptããããç¨åº¦ä»»æã§historyã®ã¨ã³ããªãpushã§ããhistory.pushStateã¨ããhistory.replaceStateã¯æ¢ã«å¤§åæåã«ãªã£ãæããããç´ æ´ãããæªæ¥ã§ã¯ãå ¨ã¦ã®ãã©ã¦ã¶ã«pushStateãä¹ã£ã¦ãã¦ãlocation.hashã使ã£â¦
ååã¾ã§ã®ãããã Sinon.jsã®spyãã±ãã£ãSub::Spyã¨ãããã¢ã¸ã¥ã¼ã«ãä½ã â blessããã«ç¹å®ã®coderefã«ã²ãã¥ãããã¼ã¿ãä¿åããã â @__gfx__ãããHash::FieldHashã§åºæ¥ããï¼ãï¼åç §: http://d.hatena.ne.jp/__gfx__/20111015/1318640600) â â¦
çµå±ãããªã¤ã³ã¿ãã§ã¼ã¹ã«ããã use Sub::Spy qw/spy inspect/; my $subref = { $_[0] + $_[1]; }; my $spy = spy($subref); $spy->(1, 2); my $i = inspect($spy); $i->called; # 1 (true) $i->called_once; # 1 (true) $i->called_twice; # 0 (false) $â¦
ãã¨ããªã®ã§ãremoteç°å¢etcã§bashã使ãã¨ãã«zshã®history-begining-search-backwardç¸å½ãã§ããªãã¦ãããã¤ã©ã¤ã©ãã¦ããã ãã©http://futuremix.org/2008/08/bash-history-searchã¡ããã¨èª¿ã¹ãã.inputrcã§åºæ¥ãã£ã½ããããã¦ããã ã¨å½±é¿ç¯å²ãrâ¦
Testã®mockããVerificationããã®è©±ãè´ãã¦ããããããµãã«ã¼ãã³ãªãã¡ã¬ã³ã¹ãä¸åãããã§å¼æ°/è¿ãå¤/æããããä¾å¤ãè¨é²ãã¦ããããµãã«ã¼ãã³ãªãã¡ã¬ã³ã¹ãã©ãããSinon.JS (http://sinonjs.org/) ã®spyã¿ãããªæãã§å®è£ ã§ããªãããªããã¨â¦
YAPC::Asia 2011ã®ã¿ã¤ã ãã¼ãã« (http://yapcasia.org/2011/timetable.html) ã«ããã¿ããã絶対ã¿ãããã¾ãè¦ããã¨ãããããå人çãªã¡ã¢æ¸ããæ®ãããã£ãã®ã§ã¤ãã£ããhttp://dl.dropbox.com/u/439702/bookmarklet/memomo.htmlããã«ã¯ãªãã¯ã§ãâ¦
class MonadPromise<E> { Promise<E> pure(E e) { return new Promise.fromValue(e); } Promise<E> bind(Promise<E> p1, Promise<E> f(E e)) { Promise<E> p2 = f(p1.value); return p2; } } main() { Promise<num> dbl(num n) { return new Promise.fromValue(n * 2); } MonadPromi</num></e></e></e></e></e></e>â¦
ç¹å®ã®è¦ç´ ãFirebugã§inspectãããæã«ããã¡ãã¡ãã®è¦ç´ ããã¦ã¹ã§ã¯ãªãã³ããã®ãããã©ãããããã¤ãã£ãã " firebug inspect mode hint js <
DOM Level3ã§è¦å®ããã¦ããComposition Eventã使ãã¨ãIMEã®å ¥åéå§ -> compositionstart, IMEã§æå追å ,å¤æ -> compositionupdate, IMEã§å¤æç¢ºå® -> compositionend, ã¨ãã風ã«IMEã«ããè±èªä»¥å¤ã®æåã®å ¥åãã¤ãã³ãã¨ãã¦åãåããã¨ãåºæ¥ããâ¦
ãããã¡ã¤ã©ï¼é¢æ°åä½ã§åºããã¤ï¼ã§ããã©ã¼ãã³ã¹æ¸¬ãããã¨ãã«ãé·ãé¢æ°ãããã¨åããã«ãããªã£ã¡ãããã function myLongFunction() { ... (function doAPartOfTheWork() { ... })(); ... } ã£ã¦ãããã£ã¦ããã®ãHTML5 Rocksã®è¨äºã«æ¸ãã¦ãã£â¦
Term::ANSIColor::Relaxãªãã¨ãã®ãautoboxãããçãä½ã£ã¦ãã®ãæãåºãããautoboxã¯ãªã¯ã³ã³ã ãã¨id:xaicronã«è¨ãããã®ã§ãã¤ãã§ã«å ã®ã¯æ¶ãããhttps://github.com/zentooo/p5-term-ansicolor-simpleã¨ããããåããããã®ã¤ã³ã¿ãã§ã¼ã¹ã§è¯ãâ¦
â»ãã¿ã§ã â»UDFã§ã Mysql 5.1 Plugin Developmentä½è : Andrew Hutchings,Sergei Golubchikåºç社/ã¡ã¼ã«ã¼: Packt Publishingçºå£²æ¥: 2010/08/30ã¡ãã£ã¢: ãã¼ãã¼ããã¯è³¼å ¥: 1人 ã¯ãªãã¯: 45åãã®ååãå«ãããã° (2件) ãè¦ã ãã°ããç©ãèªãã¦ãâ¦
weinreã£ã¦ãããiPhoneããAndroidããã®å®æ©ï¼å¥ã«å®æ©ãããªãã¦ããããã ãã©ï¼ã§è¦ã¦ããWebç»é¢ã®JavaScriptããªã¢ã¼ãdebugã§ãããã¼ã«ããã£ã¦ãããã¯å²ã¨æåãhttp://alpha.mixi.co.jp/blog/?p=3248æåãªãã ãã©ã試ãã¦ã¿ãã¨æ®éã«ãã¬ã¼ã¯â¦
ã¡ãã£ã¨memcached & Redisã«ã¤ãã¦èª¿ã¹ãã®ã§ãããã¡ãªã¿ã«ãçåæ¦ç¥ã£ã¦è¨èã¯æè¿Twitterã§ããè¦ããã使ã£ã¦ã¿ãã ãã§ãå®éã«ä½ãã¯ç¥ãã¾ãããæãä½ãããªãã¡ãªã¿ã«è¦ã¦ããã½ã¼ã¹ã«ã¤ãã¦ã¯ãmemcachedã¯1.4.6ãRedisã¯ç¾æç¹ã§ã®gitã®ææ°(å¤â¦
é©å½ãªãæ¬å½ã«ãããé©å½ãªWebã¢ããªã±ã¼ã·ã§ã³ãå¿ è¦ãªãã ãã©ãæ¢åã®ããã¶ãã·ããã¼ããããã¬ã¼ã ã¯ã¼ã¯ã®æ¸ãæ¹ãæãåºãã®ãã ãããgeneratorçãªscriptãå©ãã®ããã ãããããã«ã¯ãããã«ã«ã¼ãã£ã³ã°è¨å®æ¸ãã¦ãããã«ãã³ãã¬ã¼ãç½®ãã¦â¦
ï¼åç¥ï¼Log::HandyããData::Utilã¨Class::Loadã¸ã®ä¾åãæ¶ãããData::Utilã¯èªådumpããããã®ï¼scalarå¤ï¼ã¨èªådumpããããªããã®ã®åºå¥ã«ã®ã¿ä½¿ã£ã¦ãããã ãã©ãä¼ç¤¾ã§å¯©è°ããçµæãå ¨ã¦dumperã«é£ãããã°ãããï¼ãã£ã¦ãã¨ã«ãã¾ããClass::Lâ¦
waits(500)ã¨ãããã¾ãã ããã§ã調ã¹ã¦ããªããã¿ã¤ãããªãã®ã§èª°ãæãã¦ä¸ãã...
http://www.slideshare.net/nzakas/high-performance-javascript-2011ããããããã¹ã©ã¤ãã ãªã¼ãã¨æãã¤ã¤ã1ã¤ã®JavaScript jobï¼ãããã«ãã表ç¾ã ãã©ãevent handlerã¨ãtimerããããã¯ãããJS codeï¼ã®å®è¡ã¯ç®å®ã¨ãã¦100ms以ä¸ã«æãã¾ãããâ¦
stats.js (https://github.com/mrdoob/stats.js) ã¨ãããJavaScriptã§fpsãã©ãã®å¤ãåºãã©ã¤ãã©ãªãiPhone/Androidã§è©¦ãã¦ããæã«æ°ã¥ãããã ãã©ãiPhone/Androidã®WebKitã§ã¯ããã©ã«ãã®ã¹ã¯ãã¼ã«ä¸ã¯setIntervalã®ç£è¦ãç¡å¹ã«ãªã£ã¦ããã£ã½ãâ¦
ä¼ç¤¾ã§id:gfxãããWebSocketã使ã£ã¦å¤¢ãåºããã¨ã¯ã¹ããªã¼ã ãªãã¬ã¼ã³ããã¦ãããã®ã§ãæµ·å¤ã®ç©ºæ°ãèªã¾ãã«ä½ã£ã¦ã¿ã¾ãããhttps://github.com/zentooo/SkyWalk端çã«è¨ãã¨ãSocket.IOãéãã¦ãªã¢ã³ã³ã¨ãªãiPhone/Android(?) ã®ãã©ã¦ã¶ã§ãã£ãâ¦
Mandyã§ã¯ããã¾ãããHandyã§ãã http://github.com/zentooo/p5-log-handy å人çã«Loggerã«ãã£ã¦ã»ããã®ã¯ è²ã ãªå ´æã¸ã®åºãåã/åæåºåãåºæ¥ãï¼STDOUT, file, syslogããããã¨ããããããã°ãããã©ï¼ ã¤ã³ã¿ãã§ã¼ã¹ãç ©éã§ãªãï¼ä¾ãã°$selâ¦