2006-10-01ãã1ã¶æéã®è¨äºä¸è¦§
ã½ãããã³ã¯ã¢ãã¤ã«ä»£è¡¨å·è¡å½¹ç¤¾é·å ¼CEOã®å«æ£ç¾©æ°ã¯ã1æ15æ¥ã¾ã§ã«ç³ãè¾¼ãã°ã5å¹´ã§ã10å¹´ã§ã20å¹´ã§ããã®æéã§ããã¨èªãããã以éã®ç¶ç¶ã«ã¤ãã¦ã¯ãç¶æ³ãè¦ã¦æ¤è¨ãããã¨ã®ãã¨ã ã£ãããããªã½ãããã³ã¯ã¢ãã¤ã«ã®ã´ã¼ã«ããã©ã³ã«å¯¾ããããâ¦
ã¡ã¢ã ã³ã¼ãè£å®ã®å±¥æ´ãåããã便å©ããã ã¡ã¢ã ã³ã¼ãè£å®ã®åè£ãªã¹ããå¥ãã¡ã¤ã«ã«ãã ã¡ã¢ã ã³ã¼ãè£å®ã®åè£ãªã¹ããè¾æ¸å¼ã«ä¸¦ã³æ¿ãã ã¡ã¢ã ãã¡ã¤ã«ã大ãããªãã¨è£å®ãéãã®ã§ã«ã¼ããæ¸ãããã¡ã¢ã prototype.jsãEmEditorã§ä½¿ããâ¦
ãã©ãåæ¢åµã³ãã³ãè¦ãããªããªããã©ãã ãããªã¢ãããããªãããè¯ãæå³ã§æå¾ ãè£åã£ã¦ããããåä½ã®ã¤ã¡ã¼ã¸ãæãªããã«é å¼µã£ã¦ãããµã¦ã³ãã¨ãã§ã¯ããBGMãã¢ãã¡ã®ã¾ã¾ä½¿ã£ãã®ãè¯ããããã£ã¹ãã£ã³ã°ããªããªããè¦ãç®ã¯ä¼¼ã¦ããªãããâ¦
Pythonã®åå¼·ã«ãã¼ã«ã«ãããã·æ¸ãã¦ã¿ãã./cache/ã«èªã¿è¾¼ãã CSS/JS/IMG/HTMLãã¼ã¿ããã£ã¬ã¯ããªæ§é ãåç¾ãã¦ã³ãã¼ããããã¼ã«ã«ä¿åã¹ã¯ãªãããå ¼ãã¦ã¿ãã #eoncoding:shift_jis import SimpleHTTPServer import threading import BaseHTTPSeâ¦
PHPã¨Javaã¨Pythonè¦ã¦ã¦ããã£ããã¨ãPHPã¯ããªãè¯ãã¨ããåãè¨èªã PHPã®ã¯ã©ã¹ PHP5ã§ä½ãã¯ã©ã¹ã¯ãJavaã£ã½ãããPythonã£ã½ããå¯å¤å¤æ°ãPerlã£ã½ããã«ã¼ãã«å ¥ããã¨JavaScriptã£ã½ã
ãã®çµæã®å·®ã¯ãªãã ããã C:\py\python >>> import sys >>> sys.stdout.encoding #æ¨æºåºåã®ã¨ã³ã³ã¼ã 'cp932' >>> sys.stdin.encoding #æ¨æºå ¥åã®ã¨ã³ã³ã¼ã 'cp932' >>> sys.getfilesystemencoding()#ãã¡ã¤ã«ã·ã¹ãã ã®ã¨ã³ã³ã¼ã 'mbcs' >>>cp932â¦
Opera Show - HTML ã®ã¦ã§ããã¬ã¼ã³ãã¼ã·ã§ã³ãã¼ã« ä»ã®äººæ°ãã¬ã¼ã³ãã¼ã·ã§ã³ãã¼ã«ï¼Microsoft PowerPoint ãªã©ï¼ã¨æ¯è¼ããå ´åãOpera Show ã«ã¯ä»¥ä¸ã®ãããªç¹é·ãããã¾ã: 軽éã«ãã¦é«éãªã¦ã§ããã©ã¦ã¶ã®æ¨æºæ©è½ã§ãã HTML ãããã¥ã¡ã³ãå½¢â¦
ãµã¤ããä½ã£ã¦ããã¨ãFirefoxã¨IEã¨Operaã«å¯¾å¿ãã¦æ¬²ããã¨è¨ããã¨ã«ãªããOperaã使ã£ã¦ãããªãã¨ããOperaã®è¡¨ç¤ºç¢ºèªãããã¨ãã¦ãçãã¤ãããªããããã§ãæ¥å¸¸ãã©ã¦ã¸ã³ã°ã«Operaã使ãã使ãåºãã¨ä¾¿å©ãªOperaããã使ãæ¹ã¡ã¢ã æ°è¦ã¿ããéãâ¦
ç»åã®ãããªãã¤ããªãã¡ã¤ã«ãèªã¿æ¸ãããã«ã¯ãã¿ããªã®Pythonã§åºã¦ããä¾ã§ã¯é§ç®ãªã®ã ããããurllib2ã¨çµã¿åããããããã¾ãåä½ããªããurllib2ã§ã¤ã¡ã¼ã¸ãåå¾ããã¨ãBASE64æååã§ãªãããã¤ããªãè¿ãã¦ãããä¿åã§ããªãã£ããã°ã°ã£ã¦â¦
Pythonã®selfã¯äºç´èªãããªãããï¼Pythonã¯ãããã¨self ãåºã¦ãã¦ãjavaãPHP ããã¦rubyã«ããthisããªããããã«selfãå¤æ°ã¨ãã¦ã¡ã½ããã®å¼æ°ã«æ¸ãã綺éºãªã®ãæ±ãã®ãããããªããã§ããè¦æ¹ãå¤ããã¨ï¼ã¨ã£ã¦ãã¹ãã¼ããselfã¯äºç´èªãããªãâ¦
GoogleAdsenseã§ã¢ãã«ãåºåãå¢ãã¦ãããããã¯ã©ãããã°ããã®ã ããããgmailã«åºåãæ²è¼ãããã®ã ãã©ãã¡ãã£ã¨ãããã¼ã¯ã¼ãã§ããã¢ãã«ãåºåã ããã¨ãã°ãã¡ã¼ã«ã®ãçæ´»ãã¨ãããã¼ã¯ã¼ãã§ãå¤ã®çæ´»ã°ããºãã®åºåãé ä¿¡ããã¦æ¥ã¦ããâ¦
æ¶é²å£«ãææ¥æå½å£«ãä½æ¥çæ³å£«ãçå¦çæ³å£«ãæ¯ç§æ工士ãã¬ã³ãã²ã³æ師ãããããå»å¸«ãæ師ã ã師ãã¯äººãæå°ããæå³ããããã士ã人ã®ããã«åãæå³ãããã*1 ã¶ã£ã¡ããããçè·å¸«ãã¨ãããå¾ãªããã¤ãã§ã«å©ç£å¸«ãããå¾ãªãã ãã®è¾ºã®æ¼¢åâ¦
range é¢æ°ã¯ãããã«ãããä»è¨èªã¦ã¼ã¶ã¼ã¯ã±ã£ã¨è¦ã¦ã±ã£ã¨ããããªãã¨æãããªã®ã§forã§ä½¿ãããã®é¢æ°ã§ãããã¨èª¬æãããã¨ã«ãã /* C/Javaã®for */ for ( int i=100;i<110;i++){ out.print(i); } ##Python ã® for for i in range(100,110) : printâ¦
ãªããããã£ã¤ããªã¾ããã¤ãã¦ããã©ã for x in A ã while( some.hasNext() ) ã®å½¢å¼ã ãã§ã¯è¶³ããªãã®ã§ãCãJavaã§åºæ¥ããwhile( (x = r.readLine() ) ) ã使ããããã«ããã£ã¦ãã¨ã®ããã ã def gen( obj ): x = " " while( x != None ): x = objâ¦
ã¾ã çä»ããªããæ¥æ¬èªã Windowsç°å¢ã§ãUTF-8ã§æ¸ãã®ãè¯ãã®ãï¼ããã¯ããã¯æããªãã ãã¨ãã°ããããªã³ã¼ãã å ¥ããæåãåºåãã #encoding:utf-8 a = raw_input("ãªããããã¦? : ") print aWindowsã®cmd.exeããå®è¡ãã¦ã¿ã C:\pyhton>pythoâ¦
Python Enhancement Proposal ç¥ã㦠PEP Pythonã®ããã¥ã¡ã³ããGuidoã®ããã°ãèªãã§ãã¨PEP PEPã¨ç»å ´ããããªãã ããã¯ã¨æã£ãã®ã§èª¿ã¹ãããããããã¨ããããPEPã¨ã¯ Python Emhancement Proposal ï¼æ¥æ¬èªã ã¨ãããããªã®ä½ã£ã¦ãPythonãããè¯â¦
Jythonã¯ããããããTomcatã§åããã¦ã¿ããJSPã§åããããWEB-INFã«jython.jarãå ¥ãã¦JSPã§importãããGCããã¾ãå¼ã°ããã«JavaVMã«å± 座ãç¶ããã®ã§ã¡ãã£ã¨ä½¿ããªãã Pythonã£ã¦ããããªç°å¢ã§åä½ããã®ã§Javaã®å¤¢ãå¼ãç¶ãã§ãããªãã¨ãæããâ¦
åãã¦è§¦ã£ãã®ãPython2.5ã ã£ãã®ã§ãããã¥ã¢ã«ããããèªãã§ããããã¤ã¯å¤§å¹ ãªã¢ããã°ã¬ã¼ãããã¦ãããã¨ãç¥ãé©ãããPython 2.5ãç»å ´ 450以ä¸ã®ãã°ãä¿®æ£ãä¿¡é ¼æ§ãåä¸ ãããããã¨ã俺ã®withæ§æã®è§£éãããããã£ããæ¥ããããããã2.5â¦
PyJUGã®ç³æ¬ æ¦å¤«ããã®ã¹ã©ã¤ããã¿ããPythonã¯ãªãã§ãããã§ãIteratorã«ãããã¨ãå¯è½ãã¹ã©ã¤ããããIteratorãå®è£ ãããªãã¸ã§ã¯ãä½æä¾ class AIterator(object): """seq1,se2å ã®è¦ç´ ã交äºã«è¿ãIterator""" def __init__( self, seq1,seq2 ):â¦
ã¿ã¤ãã³ã°ãã¤ãããªããPHPã¨ãPerlã¨ãéãããJavaã¨ãéãããã®äºã¤ã®éãããããèãããã >>>a = "aaa" >>>a 'aaa' >>>print a aaa>>>a = "aaa\r\n" >>>a 'aaa\r\n' >>>print a aaa >>>ãã¾ãã¡ã¤ãããªã.注æãã¦è¦ã¦ããã¨ã''ã®æç¡ã«æ°ã¥ããâ¦
Win32OLE ãã¨ã¯ãããåèã«ããã¡ã®ãã·ã³ã§ä½¿ããCOMã調ã¹ã¦ã¿ãã使ç¨ããã³ãã³ã㯠ruby -rwin32ole -e 'puts WIN32OLE_TYPE.progids'ãã®çµæãï¼ï¼ï¼ï¼è¡ãã¨ã¦ããªããããããã®ä¸ãããã¨ãã£ã¿ã¨çµã¿åãããããããããããªãã®ãæ¢ãã¦ã¿ãâ¦
HTMLã®è£å®å¶ä½ãã¦ã¿ã¾ãããé¢åã ããã¤ãElementã¨Attributeã¨NodeValueãåºå¥ããã®ãé¢åã§ãElementããªã¼ã®è§£æãé¢åãããã¥ã¡ã³ããå é ããé ã«èªãã§ãã£ã¦ãã¹ã¿ãã¯ã«ç©ãã§ããã°è¯ããã§ãããcloseçç¥ã§ããElementããã£ãããIE(HTML 4â¦
PHPãªãæ§é ãã·ã³ãã«ãªã®ã§ã $methodname = "loadfilter"; $someClass->$methodname( $fff , );çã¨æ¸ãããããã¯PHPã®é常ã«ä¾¿å©ãªã¨ãããããã使ããªãã¨PHPã®ã½ã¼ã¹ã¯ãã£ããããªããClassãXMLã§å®ç¾©ãããªãã¦ç¡è¶ãåºæ¥ãããSimpleXMLã¢ã¸ã¥ã¼â¦
ãã³ã¾ãè¦ããWin32OLE æ´»ç¨æ³ ã第 7 åã ã»ãã®è¨èªã§ã® COM ãã£ããããã£ã¦ã¿ããããåããªãOnzã調ã¹ã¦ã¿ããwin32comã¯æ¨æºã§ã¯ã¤ã³ã¹ãã¼ã«ãããªãããããRubyMagazineã«ã¯æ¸ãã¦ãªãã£ãã®ã ããè¨è¿°æ¼ãããªã Python for Windows 95, 98, Nâ¦
Generatorã£ã¦ã¤ã¾ããããããã¨ã ãIteratorãä½ã(generate)ã£ã¦ãã¨ãããã ééã£ã¦ããããªãããã調ã¹ã
ä»æ¥è¦ãããã¨ã¯ãPython2.3ã§è¿½å ãããæ©è½ãããã ã¹ã©ã¤ã¹ã®æ¡å¼µ(1) >>>#ã¿ããªã®Pythonã§ã¯ .reverse()ãã¤ãã£ã¦ã >>>a = range(10) >>>a.reverse() [9,8,7,6,5,4,3,2,1,0] >>>#ã¹ã©ã¤ã¹ã®æ¡å¼µã使ãã°Simple >>>a[::-1] [9,8,7,6,5,4,3,2,1,0] >>>â¦
ãµã¼ç²ããã»ã»ã»ã»ãªããªãã ãã®æ¬ã¯ã ã¡ãªã¿ã«ã¦ãã®å®è¡ç°å¢ã¯Python2.5ããããåå ãï¼ãããªãã¨ããªãã ããããã£ã¨æ ¹æ¬çã ä»æ¥ããã£ãã®ã¯Threadã®ãµã³ãã«ã³ã¼ã #!/usr/bin/env python # -*- coding: utf-8 -*- #以ä¸ã®URLããã³ãã¼ #http:â¦
document.selection.text = document.selection.text.replace( new RegExp( "\n", "g" ), "<br />\n" );è¦ã¦ã®éããé¸æç¯å²ã®æ¹è¡ãã«å¤ããã ã¹ã¯ãªããè¨èªã§ãã¯ãæ¸ããã£ã¦å¬ããããã
PerlãPHPæ¸ãã¦ããã¨ãªãã¸ã§ã¯ãã®ã¡ã³ãå¼ã³åºãã«ã" . "ã§ã¯ãªã " -> "ã使ãããããæå¤ã«é¢åã ãJavaãRubyãPythonã®ããã«ãæ¸ããããShiftæ¼ãã®é¢åã ãããã§ãï¼è¡ãã¯ãã document.selection.Text="->";ãããã[ Ctrl + . ]ã«å²ãæ¯ãâ¦
Microsoft FrontPageãªã©ã®HTMLã¨ãã£ã¿ã¯ã[ Shift + Enter ] ãæ¼ãã°æ¹è¡ãæ¿å ¥ããããã¡ãã£ã¨ãããã¾ããããããã¯ãã¨ãã¦å®è¡ãã¦ã¿ããã document.selection.Text = "<br />\n";ããã ããã£ãï¼è¡ã ãã©ãéå®ããã