08 2011 档案
摘要:deb http://mirrors.sohu.com/ubuntu/ lucid main restricted universe multiversedeb http://mirrors.sohu.com/ubuntu/ lucid-security main restricted universe multiversedeb http://mirrors.sohu.com/ubuntu/ lucid-updates main restricted universe multiversedeb http://mirrors.sohu.com/ubuntu/ lucid-proposed m
阅读全文
摘要:sudo apt-get install openssh-serverUbuntu缺省安装了openssh-client,所以在这里就不安装了,如果你的系统没有安装的话,再用apt-get安装上即可。然后确认sshserver是否启动了:ps -e |grep ssh如果只有ssh-agent那ssh-server还没有启动,需要/etc/init.d/ssh start,如果看到sshd那说明ssh-server已经启动了。ssh-server配置文件位于/ etc/ssh/sshd_config,在这里可以定义SSH的服务端口,默认端口是22,你可以自己定义成其他端口号,如222。然后重启
阅读全文
摘要:* First, ufw needs to be enabled. From a terminal prompt enter: sudo ufw enable * To open a port (ssh in this example): sudo ufw allow 22 * Similarly, to close an opened port: sudo ufw deny 22 * To remove a rule, use delete followed by the rule: sudo ufw delete deny 22 * It is also possible to allo.
阅读全文
摘要:open - Open a file-based or command pipeline channel This command opens a file, serial port, or command pipeline and returns a channel identifier that may be used in future invocations of commands like read, puts, and close. If the first character of fileName is not | then the command opens a fileIf
阅读全文
摘要:socket - Open a TCP network connection socket ?options? host port socket -server command ?options? port
阅读全文
摘要:array names arrayName ?mode? ?pattern? Returns a list containing the names of all of the elements in the array that match pattern
阅读全文
摘要:pack [canvas .c -bg yellow] -fill both -expand yes bind .c <Button-1> {puts 1}bind .c <Button-2> {puts 2}bind .c <Button-3> {puts 3}bind .c <Button-4> {puts 4} bind .c <Button-5> {puts 5}Button-1 left mouse clickButton-2 Middle mouse clickButton-3 Right mouse clickButto
阅读全文
摘要:grid grid-------------------------------------| ----------- | -------------- || | pack | | | pack | || ----------- | -------------- || | pack | | | pack | || ----------- | -------------- ||------------------------------------grid option -column, -columnspan, -in, -ipadx, -ipady, -padx, -pady, -row..
阅读全文
摘要:constructor { args } {itk_component add tf {frame $itk_interior.tf}itk_component add fr1 {frame $itk_interior.tf.f1}itk_component add butt1 {button $itk_interior.tf.f1.b1 \ -text "a1" }itk_component add fr2 {frame $itk_interior.tf.f2}itk_component add butt2 {button $itk_interior.tf.f2.b2 \
阅读全文
摘要:$tclsh% info patchlevel8.4.19% exit$ wish% info patchlevel8.4.19%
阅读全文
摘要:proc gesture_init {w} { bind $w <1> "gesture_start $w %x %y" bind $w <B1-Motion> "gesture_move $w %x %y" bind $w <ButtonRelease-1> "gesture_end $w"}proc gesture_start {w x y} { global $w.GestureX $w.GestureY $w.Dirs set $w.GestureX $x set $w.GestureY $
阅读全文
摘要:dpi = Pixel1inch = 2.54cm600 dpi (dot per inch)1dpi 0.001666667inch1dpi 0.004233333cm1dpi 0.04233333mm300 dpi (dot per inch)1dpi 0.003333333 inch1dpi 0.008466667 cm1dpi 0.08466667 mm
阅读全文
摘要:Error in startup script: value for "" missingspace after \
阅读全文
摘要:libca.so: cannot open shared objectfile: No such file or directoryexport LD_LIBRARY_PATH=/home/epics/base/lib/linux-x86:\ /home/epics/extensions/lib/linux-x86
阅读全文
摘要:-command {.evs show}-command [code $this newSession]
阅读全文
摘要:class tett {inherit itk::Widgetconstructor { args } {itk_component add tett {test .cc.c #.pw.pane0.childsite.bluice.n.canvas.notebook.cs.page10.cs.dataprocessTab.c#replace .pw.pane0.childsite.bluice.n.canvas.notebook.cs.page10.cs.dataprocessTab. with .cc.}pack $itk_component(tett)}}tett .cc # .ccpac
阅读全文
摘要:=>puts $bufferdcs.rootDir=/blct/dcs=>set firstEqual [string first = $buffer]11set name [string range $buffer 0 [expr $firstEqual -1] ]set value [string range $buffer [expr $firstEqual +1] end]
阅读全文
摘要:class sampleconf { # a sample class with a single public variable public method setpulicv; public variable publicvab ;# this var is adjusted using the configure -publicv... constructor {} { } } body sampleconf::setpulicv { cn } { set publicvab $cn; puts $publicvab; } # add a configbody for publicv .
阅读全文
摘要:set aa 12class te {public proc t1public method a1constructor {args} {uplevel 1 {puts $aaset aa 3puts $aa}}}body te::a1 {args} {uplevel 1 { set aa 4puts $aa}}body te::t1 {args} {uplevel 1 { set aa 5puts $aa}}te .e.e a1te::t1
阅读全文
摘要:set aa 12class te {public proc t1public method a1constructor {args} {upvar aa kkset kk [expr $kk + 2 ] puts $kk}}body te::a1 {args} {upvar aa k1set k1 [ expr $k1 + 3 ]puts $k1}body te::t1 {args} {upvar aa k2set k2 [ expr $k2 +4 ]puts $k2}te .e.e a1te::t1
阅读全文
摘要:set aa 12class te {public proc t1public method a1constructor {args} {global aaputs $aa}}body te::a1 {args} {global aaputs $aa}body te::t1 {args} {global aaputs $aa}te .e.e a1te::t1
阅读全文
摘要:class testmethod {public method tepublic method tetpublic method teeconstructor { args } {}}body testmethod::te {} { tet puts "aa"}body testmethod::tet {} { puts "bb"}body testmethod::tee {} { puts "cc"}testmethod .aa.aa tee.aa te
阅读全文
摘要:Indexwizard.c.body.indexingbeam_x_e.c.tbf.spotfinding.bxebeam_y_e.c.tbf.spotfinding.byebeamsearch_tree.c.body.indexing.slp.bstreebeamsearchexpander.c.body.indexing.slp.bsebeamsearchlabel.c.body.indexing.slp.bslbeamsearchscrollbar.c.body.indexing.slp.beamsearchscrollbarcell_edge_e.c.tbf.indexing.mced
阅读全文
摘要:STRATEGY.c.body.strategyadd_matrix_tb.c.tbf.strategy.amtbalignment_frame.c.body.strategy.afalignment_scroll.c.body.strategy.af.asalignment_tree.c.body.strategy.af.atanomalous_tb.c.tbf.strategy.atbauto_complete_b.c.body.strategy.acbbreakdown.c.body.strategy.breakdownbreakdown_combo.c.body.strategy.bc
阅读全文
摘要:# If necessary create the "Open project" dialog if {![winfo exists .openProject]} {Fileopen .openProject \ -type open \ -initialdir [pwd] \ -filtertypes {{"Mosflm projects" {.mos}} {"All Files" {.*}}} } # Get file name (as full path) from user set l_project_file [.openP
阅读全文
摘要:class cc { public method changtextconstructor { args } {puts $args}}body cc::changtext { args } {set dd [namespace current]::[dd \#auto ]return $dd}# if the class dd is a important class, and class dd {public method chanconstructor {args} {}}body dd::chan { args } {puts $args}cc ttset aa [tt changte
阅读全文
摘要:raise - Change a window's position in the stacking orderbutton .b -text "Hi there!"pack [frame .f -background blue]pack [label .f.l1 -text "This is above"]pack .b -in .fpack [label .f.l2 -text "This is below"]raise .b
阅读全文
摘要:set l_file_handle [::open $a_file r]set content [::read $l_file_handle]::close $l_file_handle
阅读全文
摘要:obtain exe outcatch {exec$executepath << secondcommand} outputstring]
阅读全文
摘要:#Close main windowwm withdraw .# Show main windowwm deiconify .
阅读全文
摘要:class menuthree {inherit itk::Widgetconstructor { args } {#wm protocol [winfo toplevel $itk_component(hull)] WM_DELETE_WINDOW [code $this shutdown]itk_option add hull.width hull.height$itk_component(hull) configure -width 1050 -height 768#wm minsize [winfo toplevel $itk_component(hull)] 1050 768pack
阅读全文
摘要:class menutest { inherit itk::Toplevel constructor { args } {itk_option add hull.menu wm title . "\[No image\" wm resizable . 1 1wm iconbitmap $itk_component(hull) [wm iconbitmap .]wm iconmask $itk_component(hull) [wm iconmask .]wm group $itk_component(hull) .#wm protocol $itk_component(hu
阅读全文
摘要:# open the logfileset logfile "~/Desktop/abc"set logfile_handle [open $logfile a]# log the command being sent to Mosflmputs $logfile_handle "aaaa"# close the logfileclose $logfile_handle
阅读全文
摘要:class cc { public method changtextconstructor { args } {}}body cc::changtext { args } {puts $argsreturn [expr $args +3]}set kk [[namespace current]::[cc \#auto] changtext 33] puts $kk
阅读全文
摘要:set l [list a bc def 1 23 456]set m 0foreach i $l { incr m puts "member $m is $i"}for {set x 0} {$x<10} {incr x} { puts "x is $x"}set x 0while {$x<10} { puts "x is $x" incr x}This command is typically invoked inside the body of a looping command such as for or for
阅读全文
摘要:class cc {inherit itk::Widgetpublic method changtext#array aaritk_option define -textbackground textBackground Background "\#ff0000"constructor {args} {itk_component add linetwo { button $itk_component(hull).d \ -text "bbb"} itk_component add buttontwo { button $itk_component(hul
阅读全文
摘要:class cc {inherit itk::Widgetproc changtextconstructor {args} {itk_component add linetwo { label $itk_component(hull).d \ -text "bbb" }itk_component add buttontwo { button $itk_component(hull).b \ -text "est" \ -command "$itk_component(hull) changtext ccc"}pack $itk_com
阅读全文
摘要:class cddd {inherit itk::Widgetconstructor { args } { itk_component add lineone {label $itk_component(hull).a \ -text "getv" }pack $itk_component(lineone) }}cddd .ckpack .ckclass cc {inherit itk::Widgetpublic method changtextconstructor {args} {itk_component add linetwo { label $itk_compon
阅读全文
摘要:proc changtext { args } { .ck.a configure -text $args .c.d configure -text $args }class cddd {inherit itk::Widgetconstructor { args } { itk_component add lineone {label $itk_component(hull).a \ -text "getv" }pack $itk_component(lineone) }}cddd .ckpack .ckclass cc {inherit itk::Widget const
阅读全文
摘要:class aa {public method kkconstructor {args} {}}body aa::kk {args} {puts $args}class bb {}class cc {public method bbtpublic method bbyconstructor {args} {}}body cc::bbt {args} {aa .teb.teb kk 3puts $argsbby 5return [expr $args + 5]}body cc::bby {args} {puts $args}aa .te.te kk 2cc .tesset aaaa [.tes
阅读全文
摘要:itk_component add min_res_e {SettingEntry $itk_component(toolbar).minre low_resolution_limit \ -image ::img::min_res16x16 \ -type real \ -precision 2 \ -width 5 \ -justify right \ -balloonhelp "Low resolution limit" }==========================SettingEntry .c low_resolution_limit \ -image :
阅读全文
摘要:class Balloonwidget { inherit itk::Widget itk_option define -balloonhelp balloonHelp BalloonHelp "" private variable balloon_queue "" private variable destroy_queue "" public method enter public method leave public method balloon constructor { args } {bind $itk_componen
阅读全文
摘要:class gEntry { inherit itk::Widget itk_option define -balloonhelp balloonHelp BalloonHelp "" private variable balloon_queue "" private variable destroy_queue "" public method enter public method leave public method balloon itk_option define -image image Image "&quo
阅读全文
摘要:class aa {inherit itk::Widgetpublic method kkaconstructor { args } {puts $itk_component(hull)puts [ $this kkc]# [code $this kkc]}}body aa::kka { args } {puts "aa"}class bb {inherit aa#inherit itk::Widgetpublic method kkbconstructor { args } {puts $itk_component(hull)puts [ $this kkc]} }bod
阅读全文
摘要:class Balloonwidget { inherit itk::Widget itk_option define -balloonhelp balloonHelp BalloonHelp "" private variable balloon_queue "" private variable destroy_queue "" public method enter public method leave public method balloon constructor { args } {bind $itk_componen
阅读全文
摘要:class bb {#inherit aainherit itk::Widgetconstructor { args } {puts $itk_component(hull)}}class cc {inherit bbconstructor { args } { eval bb::constructor $args} {puts $itk_component(hull)}}cc .c abt acd ad
阅读全文
摘要:class aa {inherit itk::Widgetconstructor { args } {puts $itk_component(hull)}}class bb {inherit aaconstructor { args } {puts $itk_component(hull)}}class cc {inherit bbconstructor { args } {puts $itk_component(hull)}}cc .c abt acd ad====args only to class cc
阅读全文
摘要:class aa {inherit itk::Widgetconstructor { args } {puts $itk_component(hull)}}class bb {inherit aaconstructor { args } {puts $itk_component(hull)}}class cc {inherit bbconstructor { args } {puts $itk_component(hull)}}cc .c
阅读全文
摘要:class Balloonwidget { inherit itk::Widget itk_option define -balloonhelp balloonHelp BalloonHelp "" private variable balloon_queue "" private variable destroy_queue "" public method enter public method leave public method balloon constructor { args } {bind $itk_componen
阅读全文
摘要:================================ class parent { public variable parent_a ""; public variable parent_b ""; constructor { args } { puts stdout "parent this -$this- args -$args-" eval configure $args # check value of parent_a if { $parent_a == "" } { puts "-
阅读全文
摘要:class child { public variable parent_a ""; public variable parent_b ""; public variable child_a # pass arguments in an init code fragment constructor { args } { puts stdout "parent this -$this- args -$args-" eval configure $args # check value of parent_a if { $parent_a
阅读全文
摘要:class child { inherit itk::Widget public variable child_a constructor { args } { itk_component add menu_frame { frame $itk_interior.mf \ -bd 1 \ -relief solid } itk_component add label {label $itk_interior.mf.l1 \ -text "Name"} itk_component add toolbar_frame { frame $itk_interior.tbf \ -b
阅读全文
摘要:class child { inherit itk::Widget public variable child_a constructor { args } { itk_option add hull.width hull.height $itk_component(hull) configure -width 1050 -height 768 wm minsize [winfo toplevel $itk_component(hull)] 1050 768 pack propagate $itk_interior 0 itk_component add menu {menu $itk_int
阅读全文
摘要:class child { inherit itk::Widget public variable child_a constructor { args } { itk_option add hull.width hull.height $itk_component(hull) configure -width 1050 -height 768 wm minsize [winfo toplevel $itk_component(hull)] 1050 768 pack propagate $itk_interior 0 itk_component add menu {menu $itk_int
阅读全文
摘要:=>class aaa {}=>find classes aaaaaa=>delete class aaa=>find classes aaa=>
阅读全文
摘要:class person {public variable namepublic variable ageconstructor {{inname "A N Other"} {inage 21}} {set name $innameset age $inage}}person .kk# Second base classclass cost {public variable startuppublic variable annualconstructor {{yearly 12000}{newstart 0} } {set startup $newstart } {set
阅读全文
摘要:set title_font_size 12font create title_font -family helvetica -size $title_font_size -weight bold
阅读全文
摘要:itk_component add heading_f {frame $itk_interior.main.hf \ -bd 1 \ -relief solid } itk_component add heading_l {label $itk_interior.main.hf.fl \ -text "Images" \ -font title_font \ -anchor w } {usualignore -font } grid $itk_component(heading_f) -row 0 -column 0 -sticky nswe -padx 7 -pady {
阅读全文
摘要:class test {inherit itk::Widgetpublic method aaapublic method rollover public method rolloutofpublic method showStageprivate variable current_stage "hull"constructor { args } {itk_option add hull.width hull.height$itk_component(hull) configure -width 1050 -height 768wm minsize [winfo tople
阅读全文
浙公网安备 33010602011771号