2008-05-01ãã1ã¶æéã®è¨äºä¸è¦§
with_default_namesã®ãªãã·ã§ã³ãã¤ãã¦å®è¡ããã°ãã $ sudo port install coreutils +with_default_nameså®éã«ã¯ãgãã¤ããã³ãã³ã(ãã¡ã¤ã«æ¬ä½)ã¨å ã®ã³ãã³ãå(ã·ã³ããªãã¯ãªã³ã¯)ã®ä¸¡æ¹ãã¤ã³ã¹ãã¼ã«ããã
以ä¸ãå®è¡ããã¨UTF-8ã表示åºæ¥ãããã«ãªãã > chcp 65001主ãªã³ã¼ããã¼ã¸çªå· 932 Shift_JIS 50220 ISO-2022-JP 51932 EUC-JP 65001 UTF-8 Windowsã³ã¼ããã¼ã¸ä¸è¦§ 調æ»çµæããã¨ã«æ¨å®ããæ å ±ã§ãããMicrosoft社ã«ããå ¬å¼æ å ±ã§ã¯ããã¾ããã hâ¦
ã¡ãã»ã¼ã¸ãªãã¸ã§ã¯ããè¦ãã¨ãã¼ã¹çµæãããã f := method(call message argAt(0))ä¸è¨ã®é¢æ°ã使ã£ã¦ãããã試ããçµæã Io> f(x+y) ==> x +(y) Io> f(x+y) name //xãåãåºã ==> x Io> f(x+y) next ==> +(y) Io> f(x+y) next name //+ãåãåºãâ¦
JavaScriptã®ããã«ã{a : 1, b : 2}ã¨ãã£ã表è¨ã§ãªãã¸ã§ã¯ããçæåºæ¥ãããã«ããã å®è¡ä¾ Io> doFile("json.io") Io> {a : 1, b : 1+1} ==> Object_0x4b8c48: a = 1 b = 2ã³ã¼ãæ¬ä½ å¯å¤é·å¼æ°ãåãåã{}ã¡ã½ããã¨ãã¦å®è£ {} := method( obj :=â¦
Implicit conversionsã®ç·´ç¿ã¨ãã¦ãæåã³ã¼ãå¤æã¡ã½ãããæ¸ãã¦ã¿ãã Stringã¯ã©ã¹èªä½ã«ã¡ã½ããã追å ããã®ã§ã¯ãªãã¦ãå ã¯ã©ã¹ã«ã¡ã½ããããªãã£ãã¨ãã«ã èªåçã«å¤æå¦çãå®è¡ãã¦ãå¤æå ã®ã¡ã½ããã使ãããã«ããã¨ããã®ã¯ãããããâ¦
Grub4Dosããã¦ã³ãã¼ã GRUB4DOS and WINGRUB http://sourceforge.net/project/showfiles.php?group_id=104188 grldrã¨menu.lstã¨defaultãc:\ã«ã³ãã¼ boot.iniã«ä»¥ä¸ã追å c:\grldr="GRUB"ããã§ntldrã®ã¡ãã¥ã¼ã«"GRUB"ãå ããã 解説ãµã¤ã GRUB for â¦
ã¨ããããã¤ãã³ããæ±ãç·´ç¿ããã¿ã³ãæ¼ãããHelloã¨è¡¨ç¤ºãããµã³ãã«ã é¢æ°ã渡ããè¨èªã ã¨ãactionPerformedã¡ã½ããã®ä¸èº«ã渡ãã¦ã¤ã³ã¹ã¿ã³ã¹ãä½ããã®ã§ä¾¿å©ã ã ãããã°ç¨ã«ã¤ã³ã¿ããªã¿å ããå®è¡ããã¨ãã¯ãéãããã¿ã³ã§ã¤ã³ã¿ããªã¿ã¾â¦
å æ¥ã®Fileã¯ã©ã¹çã®å®ç¾©ãio.jsã¨ãããã¡ã¤ã«ã«ä¿åã ãããå©ç¨ãããµã³ãã«ã¨ãããã¨ã§ç°¡æããã¹ãã¨ãã£ã¿ãä½ã£ã¦ã¿ãã <window title="editor" onload="init()" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script src="io.js"/> <script></window>
JavaScriptãããã¼ã«ã«ãã¡ã¤ã«ã«ã¢ã¯ã»ã¹ããããã®XPCOMå©ç¨çã®Fileã¯ã©ã¹ãä½ã£ã¦ã¿ãã 使ç¨ä¾ d:\tmp\a.txtã®Fileãªãã¸ã§ã¯ããfã«ä»£å ¥ãã¦èªã¿æ¸ãããä¾ã readãèªã¿åºããreadãããã¨ã¯charsetããããã£ãã»ãããããã writeãæ¸ãè¾¼ã¿ãç¾â¦
fcshã使ãã¨ã2åç®ä»¥éã®ã³ã³ãã¤ã«ãéããããã configname=airãæå®ããã¨amxmlcã¨ãã¦ã使ããã 1åç®ã®ã³ã³ãã¤ã«ã以ä¸ã®ããã«å®è¡ã > fcsh (fcsh) mxmlc +configname=air browser.mxml2åç®ããã¯compileã³ãã³ãã«ã¿ã¼ã²ããIDãæå®ãã¦ã³ã³â¦
MXMLã«ãï¼mx:HTMLï¼ã¨ããã¿ã°ãããã®ã§ç°¡åã«ä½ããã ã¬ã³ããªã³ã°ã¨ã³ã¸ã³ã¯Geckoã§ã¯ãªãWebKitã browser.mxml ã¢ããªã±ã¼ã·ã§ã³æ¬ä½ã Enterãã¼å ¥åã®ã¤ãã³ããenter=ã§æ¸ããã®ã¯ããã <mx:Application width="640" height="480" layout="absolute" xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:VBox width="100%" height="100%"> </mx:vbox></mx:application>
æåã³ã¼ãã®å¤å¥ã¯ãã¤ããªãã¼ã¿ã®é£ããå¦çã¨ããã¤ã¡ã¼ã¸ããã£ããã©ãããããã®ç²¾åº¦ã§ãããªãæå¤ã¨åç´ã ã£ãã ä»åã®æ¹éã¯ãåè§ã«ãã¯ç¡è¦ãUTF-8ã®åªå 度é«ããã¨ããæ¹éã åESC(0x1Bã)ãåºãå ´åã¯ISO-2022-JP(確å®) 第1ãã¤ãã§æå®ããâ¦
ã¨ããããURLæ¬ã¨ã³ã³ãã³ã表示æ¬ã ãã®æå°éã®æ§æã ï¼browserï¼ã¨ããã¿ã°ãããã®ã§ç°¡åã«ä½ããã <window title="browser" width="800" height="600" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> </window>
欲ããXPCOMãå¾ãã®ã«é·ã ã¨æ¸ãã®ãã¤ãããªã£ã¦ããã®ã§ææããããé¢æ°xpc()ãä½ã£ã¦ã¿ãã é常æ Components.classes['@mozilla.org/network/file-output-stream;1'].createInstance(Components.interfaces.nsIFileOutputStream);xpc()使ç¨æ xpc('crâ¦
æ¥ä»ã¨æå»ã両æ¹è¡¨ç¾ãããå ´åã¯2008-05-16T11:25:30+09:00 ã¤ã¾ãæ¥ä»ã¨æå»ãTã§ã¤ãªããã ãããä¸ççã¹ã¿ã³ãã¼ãã¨ãã¦ISO8601ã¨RFC3339ã«å®ããããæ¥ä»ã¨æå»ã®è¡¨ç¾æ¹æ³ã æåã©ããã®è¨èªãããã¼ã¿ãã¼ã¹ãã®ä»ããã«ã¦ã§ã¢ã¯ãã¹ã¦ããã«æ²¿ã£â¦
Firefoxã§URLã«chrome://browser/content/ãå ¥åããã¨å å´ã«ããä¸ã¤ã®Firefoxãèµ·ååºæ¥ãã ãªã®ã§ããããXULRunnerããç´æ¥èµ·åãããã¨ãèããã firefox/chrome/browser.manifest ãã§ã«ä»¥ä¸ã®å 容ãè¨å ¥ããã¦ããã®ã§ãã®ã¾ã¾å©ç¨ content browserâ¦
åä¸ã®XULãã¡ã¤ã«ãFirefoxã¨XULRunnerã®ä¸¡æ¹ããèµ·ååºæ¥ããããªãã¡ã¤ã«é ç½®ãèããã firefox/ãFirefoxã¨ããXULã¢ããªã±ã¼ã·ã§ã³ã«ã¨ã£ã¦ã®ã«ã¼ããã£ã¬ã¯ããªã§ã éåãããfirefox/chrome//ãã¨ããXULã¢ããªã±ã¼ã·ã§ã³ã«ã¨ã£ã¦ã®ã«ã¼ããã£ã¬ã¯â¦
ãªãã¡ãã£ã¦è¤ç´ æ°ã¯ã©ã¹ãèãã¦ã¿ã 使ç¨ä¾ Complexã¯ã©ã¹ã®ã¤ã³ã¹ã¿ã³ã¹1+2iãçæãã¦cã«ä»£å ¥ $ Complex 1 2 > c $ chmod +x cãªãã¸ã§ã¯ãcã«å®é¨ãèé¨ãæåå表ç¾ã質åãã¦ã¿ã $ c real 1 $ c image 2 $ c toString 1+2icã¨cã足ãç®ããã¦ã¿ããâ¦
ããã§å°å·åã«ä¸è¦ç®æãæ¶ãã javascript:document.body.contentEditable="true";document.designMode="on";void0
以ä¸ã®hello.scalaãå¤æ´ç¡ãã«ä¸¡æ¹ã§å®è¡åºæ¥ãã試ãã object hello extends Application { println("Hello, world!") } Javaç·¨ ã³ã³ãã¤ã«ãããã§hello.classãåºæ¥ãã(ä¸ç·ã«hello$.classãåºæ¥ã) > scalac hello.scalaç´æ¥hello.classãå®è¡ > javaâ¦