Ȥ Blog

Ruby,C#

2009ǯ11

饤֥ɥΥ֥˰ñۤޤ

饤֥ɥΥ֥˹ⵡǽʤΤǤä˰ñۤȤˤޤ

http://blog.livedoor.jp/satoyansoft/

³ꤤޤ

¾ (ʸ 10-1)

ʤͤܲǹޤ

פ֤ܤǾФޤ

Ϥʤ򤤤Ǥ

ꥸʥώΤޤ󤬡ޤ

ɤǤǡ֤줢ܽ񤤤ͤκ˻ƤʤȤפäƤ顢äѤꎢۤ㎣κȤäΤǤ͡

ɤǤϥȥ̾˺Ƥޤ

ϤǤ

ȥ

¾ (ʸ 10-1)

//Artist

ɧ

,

562

ɾ

 

2009-11-16

 

submitܥγΥߥ

Żǡ򤤼򤷤ƤΤȯƤޤäˤʤޤ

ǡ򥨥ޤCSVǥɤ뤿Υܥ󤬤ޤ褯нʤΤǤ2ťåɤˡonclick٥ disabled=true ˤƥܥ֤ˤƤ顢form򥵥֥ߥåȤƤޤ

ǡʤΤΥܥdisabledfalse᤹ߥ󥰤ǤκǤϡɥܥˤ롢ȤDIVmouseOverܥdisabled褦ʺˤʤäƤޤ

ȸIE6Ȥ꤬ΤǡդˤѤСΤ褦бǤ뤫Ȼפޤ

    1 <input onclick="download()" type="submit" value="download" />
    2 <script>
    3     function download(){
    4         var btn = this;
    5         btn.disabled = true;
    6         window.onfocus = function(){
    7             btn.disabled = false;
    8             window.onfocus = null;
    9         };
   10     }
   11 </script>
   12 

 

ɥܥ󤬥å줿ߥ󥰤ǥܥˤΤƱʤΤǤƱߥ󥰤 windowfocus٥ȤƤơwindowfocusäǡ٥ܥơwindow focus٥ȤƤޤ

ʤȤIE6ǤϥեɤΥ⡼ɽ뤿ᡢʤȤ桼 ¸󥻥뎣Τ줫򤷤ʤСΥɥ˥ե뤳ȤϤޤ ǡ̤˹ͤХ桼嵭Τ줫ԤäȤǤСܥ󤬺ٲ褦ˤʤäƤƤϤʤǤ礦

Firefoxȥ⡼ǤϤʤΤǤޤϤʤ褦ʵޤ

ChromeϥɥʤΤǻȤʤǤ͡

iMacUbuntuƤߤޤ

iMacVMWareUbuntuʤΤ򥤥󥹥ȡ뤷Ƥߤޤ

http://www.ubuntulinux.jp/News/ubuntu904-desktop-ja-remix

ܸǤɡ

󥹥ȡ20ʬ餤ǽäƤޤޤ

ǡDzΤͽ꤬ޤ󡣡

 

󥹥ȡβ

 

 

iMac

iMacVMWareUbuntuʤΤ򥤥󥹥ȡ뤷Ƥߤޤ
http://www.ubuntulinux.jp/News/ubuntu904-desktop-ja-remix
ܸǤɡ
󥹥ȡ20ʬ餤ǽäƤޤޤ
ǡDzΤͽ꤬ޤ󡣡

󥹥ȡβ



 

JavaScript

äȻŻǡ򤤼򤷤ƤΤȯƤޤäˤʤޤ

ǡ򥨥ޤCSVǥɤ뤿Υܥ󤬤ޤ褯нʤΤǤ2ťåɤˡonclick٥ disabled=true ˤƥܥ֤ˤƤ顢form򥵥֥ߥåȤƤޤ
ǡʤΤΥܥdisabledfalse᤹ߥ󥰤ǤκǤϡɥܥˤ롢ȤDIVmouseOverܥdisabled褦ʺˤʤäƤޤ
ȸIE6Ȥ꤬ΤǡդˤѤСΤ褦бǤ뤫Ȼפޤ





ñ˸ȡɥܥ󤬥å줿ߥ󥰤ǥܥˤΤƱʤΤǤƱߥ󥰤 windowsfocus٥ȤƤơwindowfocusäǡɥܥơwindowfocus٥ȤƤޤ
ʤȤIE6ǤϥեɤΥ⡼ɽ뤿ᡢʤȤ桼 ¸󥻥뎣Τ줫򤷤ʤСΥɥ˥ե뤳ȤϤޤ ǡ̤˹ͤХ桼嵭Τ줫ԤäȤǤСܥ󤬺ٲ褦ˤʤäƤƤϤʤǤ礦
Firefoxȥ⡼ǤϤʤΤǤޤϤʤ褦ʵޤ
ChromeϥɥʤΤǻȤʤǤ͡

Google GO

᤯줿ΤǤätutorialäƤߤޤ
ǡäȰճäΤ᥽åɤѿ̿̾MSΤȻƤ뤳ȡȤäΤϴְ㤤ǡѥ餬᤹褦Ǥ
˸ʪ ʸǻϤޤ롣
˸ʤʪϾʸǻϤޤ롣
Ȥ롼Ǥ
.NET FrameworkǤФФ곫ȯƤͤˤϤ̤ΤȤǤ餯¿MSϤdzȯƤͤˤȤäƤϤäȰճʵʤǤʤǤ
ʸʸ˰̣ΤRubyݤ⤢ޤ

Because File starts with a capital letter, the type is available outside the package, that is, by users of the package. In Go the rule about visibility of information is simple: if a name (of a top-level type, function, method, constant or variable, or of a structure field or method) is capitalized, users of the package may see it. Otherwise, the name and hence the thing being named is visible only inside the package in which it is declared. This is more than a convention; the rule is enforced by the compiler. In Go, the term for publicly visible names is ''exported''.

Google

ȯɽ줿Googleοץߥ󥰸GOʤΤ̤iMac˥󥹥ȡ뤷Ƥߤޤ
ĶSnowLeopard10.6.2
GOΥȤ˽񤤤ƤȤˤǤ
http://golang.org/doc/install.html

ǽ˴Ķѿ.bash_profileɵ

export GOROOT=$HOME/go   #$HOME/develop/goˤޤ
export GOARCH=amd64
export GOOS=darwin #MacʤΤdarwin...

ǡsource ~/.bash_profile ɤߤޤ
 
sudo easy_install mercurial
 
ǡݥȥ˥եåץ򥤥󥹥ȡ롩 
 
hg clone -r release https://go.googlecode.com/hg/ $GOROOT
 
ǡݥȥ꤫饳ɤåȡ
 
The Go tool chain is written in C.  To build it, you need
to have GCC, the standard C libraries, the parser generator Bison,
make and the text editor ed installed. On OS X, they can be
installed as part of
Xcode. On Linux,
񤤤ƤȤꡢOSXXcode󥹥ȡѤߤʤΤǡä˲ɬפʤ
$ cd $GOROOT/src
$ ./all.bash
¹ԡ
--- cd ../test
N known bugs; 0 unexpected bugs
 
ǸˤɽФ˥󥹥ȡ뤵줿褦Ǥ
ξϡѥ˥ͥåȥ³Ĥɽ줿ΤǤ
ˎĤ뎣򥯥åʤȡ
ĤƤޤǸ˥顼ˤʤäƤޤޤ
2ܤޤ
ǡ®ץHelloWorldʬǽ񤤤Ƥߤޤ
package main

import "fmt"

func main() {
fmt.Printf("hello, world\n")
}
 
$ 6g hello.go
$ 6l hello.6
$ ./6.out
hello, world
 
Ȥʤޤ

ǡDz????
ǯǯϤε٤ߤˤäȤäƤߤ褦ʡȤפäƤꤷơ 

¾ (ʸ 10-1)

ʤͤܲǹޤ
פ֤ܤǾФޤ
Ϥʤ򤤤Ǥ
ꥸʥώΤޤ󤬡ޤ
ɤǤǡ֤줢ܽ񤤤ͤκ˻ƤʤȤפäƤ顢äѤꎢۤ㎣κȤäΤǤ͡
ɤǤϥȥ̾˺Ƥޤ
ϤǤ

ȥ
¾ (ʸ 10-1)
//Artist
ɧ
,
562
ɾ

2009-11-16



snow leopard 10.6.2

CPU˽ȯʤʤä褦ǤɤM2TVλǤϤʤΤǤƤФƺƵư;ʤޤ
M2TVΥåץǡȤꤦʤΤʡ

QuickTimeưƤM2TVʤȤȽޤ
μ¼ǥɥͽ󤷤ƤΤˡǰ
ץե

Ȥ

C#ɻŻRubyФʳȯԡ
ǶDockerȤؿȤAngularJS˥ϥޤäƤ롣
¢ȤĮȤȤ˽ס

QR
QR
  • 饤֥ɥ֥