2008-01-01ãã1å¹´éã®è¨äºä¸è¦§
ãã®éä½æããæ°å¤ã®å é ã«0ã追å ãã¦æ¡ãããããé¢æ°ããã°ã£ã¦ããã®ã§ä¿®æ£ããMath.log(0)ãã£ã¦-Infinityãè¿ãã®ãã»ã»ã»orzããã¨è² æ°ã®å ´åãNaNã«ãªãã®ãã Math.log( 0 ) // -Infinity Math.log( -1 ) // NaN Math.log( -100 ) // NaNã¨ãããâ¦
ããã°ã©ã çµäºæã«æ®åã¹ã¬ãããããã£ã½ãã®ã§èª¿æ»ãã¨ãããããã¹ã¬ããã®ä¸è¦§ã¯ããThread#listãã§åå¾ã§ããã # ã¹ã¬ããä½æ (0..3).map {|i| Thread.start { loop { sleep 0.1 } } } # ã¹ã¬ããã®èµ·åãå¾ ã¤ sleep 0.5 # ã¹ã¬ããä¸è¦§ã表示 putsâ¦
å¹´æ«ç¹å¥ä¼ç»! ãã¹ãããåç2008! ã¨ãããã¨ã§ãMiiã«ãä»å¹´ãã£ã¨ãæãã¤ããããåçãã¹ã100ãã表示ããã¢ã¼ãã追å ãã¾ãããâã®ãªã³ã¯ããã©ãããâããããããã®åçã表示ããWebã¢ããªãMiiããã£ãããªã®ã§ã100æã®ãã¡å人çã«ãã£ã¨ããâ¦
Webãµã¼ãã¹ä¸è¦§ã«ãããããã®ããªããªã¼ãã¨æã£ã¦ãããWebDAVã§ã¢ãããã¼ãã§ãããããã(âMSDN ãã©ã¼ã©ã - Sharepointã¸å¤é¨ã¢ããªã±ã¼ã·ã§ã³ããã®ãã¡ã¤ã«ã¢ãããã¼ãæã®æ´æ°è ã«ã¤ãã¦)ã¨ãããã¨ã§ã以ä¸ã¯ruby+httpclientã§Share Point Servâ¦
Share Point Serverä¸ã®æå®ãããµã¤ã以ä¸ã«ãã©ã«ããä½æãããµã³ãã«ã§ããä¾ã«ãã£ã¦Webãµã¼ãã¹ãå©ç¨ãã¦ãã¾ãã WSSã¯ã©ã¹ã¯å¥ãã¡ã¤ã«ã«åé¢ãã¾ããã åºæ¬çã«ã¯æ¨æ¥ã®å®è£ ã¨åãã§ããããXSD:: Charset.encoding="UTF8"ãã®è¨å®ã追å ãã¦ãã¾â¦
Webãµã¼ãã¹çµç±ã§Share Point Serverã«ã¢ã¯ã»ã¹ããæå®ãããµã¤ã(sites/foo)以ä¸ã®ã³ã¬ã¯ã·ã§ã³ã®ä¸è¦§ãåå¾ãããµã³ãã«ã§ãã Rubyã«æ·»ä»ããã¦ããSOAPã©ã¤ãã©ãªã使ã£ã¦ããã£ã¨å®è£ ã SOAPã©ã¤ãã©ãªæ·»ä»ã®ããã©ã«ãã®HTTPã¢ã¯ã»ã¹ã¯ã©ã¤ã¢ã³ãã¯bâ¦
ãbyte & 0xFFãã¨ãã¾ãã(âJava FAQ - S007 Q-11 - byte ã符å·ç¡ãã¨ãã¦ï¼unsigned byte ã¨ãã¦ï¼int ã¨ç¸äºã«å¤æããã«ã¯ï¼ãã) byte b = -3; int i = b & 0xFF; System.out.println( i ); // 253 解説ã¯ãâã®ãµã¤ãã®éãã§ããã byteãæ®éã«ãã£â¦
ãã¿ããªãã®ã§ãSharePointã®æè¡æ å ±ãµã¤ãã®ãªã³ã¯ã§ã並ã¹ã¦ããã¾ãã @IT - SharePointã¢ã¼ããã¯ãã£å ¥é æ¦è¦ãSharePointã§ä½¿ããããã¼ã¿ã®ä¸è¦§ãªã©ã MSDN - Windows SharePoint Services 3.0 SDK ããã¥ã¡ã³ã SDKããã¥ã¡ã³ã(æ¥æ¬èª)ãèªè¨¼é¢â¦
æ°å¤ã®å é ã«0ã追å ãã¦æ¡ãããããé¢æ°ãæ¸ãã¾ããã /** * å¿ è¦ãªæ¡æ°ã¾ã§0ãåããã * @param number æ°å¤ * @param size æ¡æ° */ function fillZero( number, size ) { var s = Math.log( number ) * Math.LOG10E; for( i=1,n=size-s,str="";i
Topic Path(ãã³ãããªã¹ã)ã®ãµã³ãã«ã§ããæè¿ã¯ul,liã使ãã®ãæµè¡ãã¿ããã§ããã <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja"> <head> </head></html>
Yahoo! UI Library - Cookie Utilityã使ãã¨Cookieã«ããã£ã¨ã¢ã¯ã»ã¹ã§ãã¾ãã 1.å¿ è¦ãªã¢ã¸ã¥ã¼ã«ãã¤ã³ãã¼ãããã°ã <script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/yahoo/yahoo-min.js"></script> <script type="text/javascript" src="http://yui.yahooapis.com/2.6.0/build/cookie/cookie-min.js"></script> 2.ãYAHOO.utiâ¦
CSS+JavaScriptã使ã£ã¦ãç°¡åãªããã°ã¬ã¹ãã¼ãä½ã£ã¦ã¿ã¾ãããæ¦ç¥ã¯ä»¥ä¸ã®ã¨ããã ãã¼ã¨ãã¦ä½¿ãã¢ãã¡ã¼ã·ã§ã³GIFãä½æãã¦ããã ãµã³ãã«ã§ã¯âãç¨æãã¦ä½¿ãã¾ããã ããã°ã¬ã¹ãã¼ã¨ããdivè¦ç´ ãç¨æããCSS㧠èæ¯ç»åã¨ãã¦âã®ç»åãè¨å®ãâ¦
ãPRINT 'æåå'ãã§ã¡ãã»ã¼ã¸ã«æååãåºåã§ãã¾ãã PRINT 'hello world!' ãã¼ããããã°ã¨ãã«ã¤ãã?ã®ããªã
å¼æ°ãåãä»ããã¹ãã¢ãããã·ã¼ã¸ã£ã®ãµã³ãã«ã§ããæ¨æ¥ã®ããã·ã¼ã¸ã£ã«å¼æ°ã§æå®ããååã§ä¸è¦§ãçµãè¾¼ãæ©è½ã追å ãã¦ã¿ã¾ããã CREATE PROCEDURE proc_GetKittenByName @name VARCHAR(100) AS SELECT * FROM kittens WHERE name = @name å¼æ°ã¯â¦
ãCREATE PROCEDURE AS ãã§ã¹ãã¢ãããã·ã¼ã¸ã£ãå®ç¾©ã§ãã¾ãã åæ 次ã®ãããªãã¼ãã«ããã£ã¦ã CREATE TABLE kittens ( name VARCHAR(100) NOT NULL, age INT, PRIMARY KEY ( name ) ) 以ä¸ã®ã¬ã³ã¼ããæ¿å ¥ããã¦ããã¨ãã¾ãã name age mii 1 torâ¦
Microsoft ã® Share Point Server ã§ã¯ãAPIãã¹ãã¢ãããã·ã¼ã¸ã£ã®å½¢ã§å ¬éããã¦ãã¦ãJava + JDBCã§ããã£ã¨å¼ã³åºãã¾ããä¾ãã°ããããªã³ã·ãã«ãå±ããShare Point ã°ã«ã¼ãã®ä¸è¦§åå¾ãã§ããã°ãproc_SecListSiteGroupsContainingUserãã使ãã°Oâ¦
次ã®ãä»äºã§ã¯SQLServerã使ããã§ãããããã®ã¦ã¼ã¶ã¼èªè¨¼ã§ã¯ãçµ±åèªè¨¼ãã¨ãããã®ããµãã¼ãããã¦ãã¦ãã¦ã¼ã¶ã¼å/ãã¹ã¯ã¼ãã®æå®ãªãã§èªè¨¼ãã§ããããããå ·ä½çã«ã¯ãASP.NETã¢ããªã±ã¼ã·ã§ã³ã®ã¯ã¼ã«ã¼ããã»ã¹ãåä½ããã¦ããWindowsã¦ã¼â¦
prototype.jsã®ã¤ã³ãã¼ãã§å©ç¨å¯ã¨ãªãããEnumerable#each()ãã§ãããããã¡ããã¨breakã§ãããã§ãããå ·ä½çã«ã¯ããthrow $break;ãã¨ãããã¨ã§ã以éã®è¦ç´ ã®åæããã£ã³ã»ã«ã¨ãªãã¾ãã var out = document.getElementById( "out" ); var arrayâ¦
prototype.jsãã¤ã³ãã¼ãããã°ãString#gsub()ã使ããããã«ãªãã¾ãã ãgsub()ãã¯ãæååã®ãã¡ãæ£è¦è¡¨ç¾ã«ãããããé¨åãã¹ã¦ãç½®ææååã§ç½®ãæãããé¢æ°ã§ãã ç½®ææååã¯ãæ£è¦è¡¨ç¾ã®è©ä¾¡çµæããã³ã³ããã¹ãã¨ãããã³ãã¬ã¼ãæååã¨â¦
kaisehã®ããã° - JavaããWin32 APIãç°¡åã«å¼ã¹ãnlinkã使ã£ã¦ã¿ããããnlinkã使ãã¨ããã¤ãã£ãã³ã¼ãã¨Javaã®ããªãã¸ãããã£ã¨ä½æã§ãã¾ãã 決ããããè¦åã«å¾ã£ã¦interfaceãä½æãã¦ããã°ã ãNLink.create()ãã§ããinterfaceã示ããã¤ãâ¦
prototype.jsãã¤ã³ãã¼ãããã¨timesã使ããã®ã! // 0ã10ã¾ã§ãåæ var out = document.getElementById( "out" ); (10).times( function(i){ out.innerHTML += i + "<br/>"; } ); å®è¡çµæã¯ãã¡ãããã!</br/>
prototype.jsãã¤ã³ãã¼ãããã¨è¿½å ããããFunction#argumentNamesãã使ãã¨ããé¢æ°ã®ä»®å¼æ°åä¸è¦§ããåå¾ã§ãã¾ãã // é¢æ°ã var f = function( mii, tora, shiro ) {} // ä»®å¼æ°ä¸è¦§ãåå¾ var out = document.getElementById( "out" ); out.innerHâ¦
prototype.jsãã¤ã³ãã¼ãããã¨è¿½å ããããFunction#bindãã使ãã¨ããé¢æ°ã¨ãªãã¸ã§ã¯ããé¢é£ã¥ããé¢æ°ããä½æã§ãã¾ãã ãªãã¸ã§ã¯ãã¨é¢é£ã¥ãããã¦ããªãé¢æ°å ã§ã¯ãthisã¯ã°ãã¼ãã«ã¹ã³ã¼ãã¨ãªãã¾ããã ãªãã¸ã§ã¯ãã¨é¢é£ã¥ããããé¢æ°â¦
ã±ã¼ãã«ãã¬ãããããã¯ã¼ã¯äºæ¥ããæ¤é?ããã¨ããªãã¨ãã§ãèªå® ã®ãããã¯ã¼ã¯ãPikaraå ãµã¼ãã¹ã«å¤æ´ã«ãªã£ãããã§ããé±æ«ã«å·¥äºããã£ã¦ç¹ã«åé¡ãªãæ¥ç¶ã§ããããã«ãªã£ãã®ã ãã©ãæ¡ã®å®ãå¤é¨ããèªå® ã®HTTPãµã¼ãã¼ã«æ¥ç¶ã§ããªããªã£ã¦ãâ¦
JavaScriptã® æ£è¦è¡¨ç¾"\w"ã¯æ¥æ¬èªã«ãããããªãããã§ãããRubyã§ã¯ãããããã¯ããã¨æã£ã¦ç¢ºèªã str = "ã" puts str =~ /ã/ puts str =~ /ã/ puts str =~ /./ puts str =~ /\w/ å®è¡çµæã§ãã 0 0 0 nilãã?ããã¥ã¢ã«ãããè¦ãã¨ãå¤ãã¤ãæâ¦
JavaScriptã® æ£è¦è¡¨ç¾"\w"ã¯æ¥æ¬èªã«ãããããªãã以ä¸æ¤è¨¼ç¨ã®ã³ã¼ãã /*æååã«æ£è¦è¡¨ç¾ãããããããè©ä¾¡ããã*/ function test( str, reg ) { var out = document.getElementById("out"); out.innerHTML += str + " / " + reg + " : " + ( new Regâ¦
ã¹ãããã¦ã©ããã ã¨ã´ã£ã¨ãé³´ã£ãæãªããæ¥ããããï½ï½ä¸åãã¡ãããï½ï½ããã°ã©ããªãããã¦ãã°åãè¾¼ã¿ã§ãã£ã¦æ¬²ããã»ã»ã»ãããã¾ãããæ¢ããã¿ã¤ãã³ã°éãã¾ããã¼ãã¨ããããããã»ã»ã»ã»ããææªï½ï½ããã¦æ®éã«èªåè¨æ¸¬ããã°ã©ã ããâ¦
ã³ãã³ãã©ã¤ã³ããVirtualBoxãæä½ãã¦ãä»®æ³ãã·ã³ã«Windowsãå°å ¥ããæé ã§ãã VBoxManageã使ã£ã¦ä»®æ³ãã£ã¹ã¯ã®ä½æããã¤ã³ã¹ãã¼ã«ã¾ã§ãX Windowã·ã¹ãã ãªãã®ç°å¢ã§è¡ãã¾ãã ä»®æ³ãã·ã³ã¯ãVRDPãµã¼ãã¼ã¨ãã¦åä½ããããã¨ã§ãWindowsã®ãâ¦
CentOS4ã¸ã®VirtualBoxã®ã¤ã³ã¹ãã¼ã«æé ã§ããåã¢ã¸ã¥ã¼ã«ã®ãã¼ã¸ã§ã³ã¯ä»¥ä¸ã CentOS4 VirtualBox2.0.6 æ¦è¦ VirtualBoxã®ãã¦ã³ãã¼ã ä¾åã¢ã¸ã¥ã¼ã«ã®ã¤ã³ãã¼ã« VirtualBoxã®ã¤ã³ã¹ãã¼ã« å©ç¨è ããvboxusersãã°ã«ã¼ãã«è¿½å VirtualBoxã®å®è¡ 1.â¦
hrefãç¡å¹åããã¨ãã«ä½¿ã"void(0)"ã§ããããããªçµã¿è¾¼ã¿é¢æ°ãã£ãã£ããã¨æã£ã¦èª¿ã¹ã¦è¦ããâMozilla developer center - Special Operators - voidãªãã¡ã¬ã³ã¹ã«ããã¨ãvoid㯠å³è¾ºã®å¼ãå®è¡ãããã å¼ã®å®è¡çµæãè¿ããªã ããã«ããããã®æ¼â¦