2008-04-01ãã1ã¶æéã®è¨äºä¸è¦§
ãããè¦ãã¨ãé£æ³é åãé¢æ°ã®å¼æ°ã¨ãã¦æ¸¡ãã¨ãã¯ãå¤æ°åã®åã«"\%" ãã¤ããã foo(\%arg); åããã¨ãã¯ã sub foo(%) { my ($tmp) = @_; my %arg = %$tmp; print $arg['key'] . "\n"; } ã¨ããããå¤æ°åã®åã«"$$" ãã¤ããã¨ãããããã sub foo(â¦
Perl ã®å ´åã¯ãDATA ãã¡ã¤ã«ãã³ãã©ã¨ãã¦ã__END__ 以å¾ãèªã¿è¾¼ãæ©è½ãããã while (<DATA>) { print; } __END__ aaaa bbbb cccc</data>
DATA ã使ãã¨ããã¡ã¤ã«ã® __END__ 以å¾ããã¼ã¿ã¨ãã¦ã¢ã¯ã»ã¹ã§ããã¨ã®ãã¨ãDATA ã¯ãFile ãªãã¸ã§ã¯ãããããerb ãªã©ã®ãã³ãã¬ã¼ãã¨ã³ã¸ã³ã¨çµã¿åããã¦ããä¾ãã©ããã§è¦ãããªããªã便å©ããã while line = DATA.gets print line end __END_â¦
ruby ã§çµãã§ã¿ãã require 'optparse' visible1 = true visible2 = true visible3 = true opt = OptionParser.new opt.on("-1") {|v| visible1 = false} opt.on("-2") {|v| visible2 = false} opt.on("-3") {|v| visible3 = false} opt.parse!(ARGV) fnamâ¦
http://d.hatena.ne.jp/rubikitch/20080406/1207420372 ãããaptããã±ã¼ã¸ã·ã¹ãã ã«ããã¦ããã¡ã¤ã«ãã©ãã®ããã±ã¼ã¸ã«å ¥ã£ã¦ããããç¥ãã«ã¯apt-file searchã使ããåæºåï¼ $ sudo apt-get install apt-file $ sudo apt-file update"-x" ãªãã·ã§â¦
Adobe Reader ã§ããããã ãã©ãæ¨æºã®PDFãã¥ã¢ã¼ã§ãã evince ã poppler-data ããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ããã¨æ¥æ¬èªå¯¾å¿ã§ãããããã sudo aptitude install poppler-data
åååæ§ãã¿ã¤ã ã¾ã¼ã³ (/etc/localtime) ã Asia/Tokyo ã«è¨å®ããã¦ãªãããæå»ã¨æ¥ä»ã®è¨å®ãã§ãè¨å®ãç´ããã
æ¥æ¬èªãã¼ãã¼ãã§ã¯ãX ã§ã¢ã³ãã¼ã¹ã³ã¢ãå ¥åã§ããªããªã£ãã ããã§ã/etc/X11/xorg.conf ãä¿®æ£ããã Option "XkbVariant" "latin,"ã®è¡ã Option "XkbVariant" "106,"ã«å¤æ´ãæå¾ã«ã Ctrl + Alt + BackSpace 㧠X ãåèµ·åããã
ã°ã£ã¡ãã®èª¬æãããã«ããã¾ããã å¿ è¦ãªããã±ã¼ã¸ã®ã¤ã³ã¹ãã¼ã« sudo apt-get install build-essential linux-headers-`uname -r` sudo apt-get install xinetd VMware-server-1.0.5-80187.tar.gz ããã¦ã³ãã¼ããã¦ãã¤ã³ã¹ãã¼ã©ãå®è¡ã tar -xvzfâ¦
ãã£ããUbuntu 7.10 ãã 8.04 ã«ã¢ããã°ã¬ã¼ããã¦ã¿ããåååæ§ãvmware-server ã®ããã±ã¼ã¸ããªããªã£ã¦ãã¾ã£ããã¾ããæ¬å®¶ããåã£ã¦ããªãã¦ã¯ãããªããå°ã調ã¹ãã¨ãããvmware-any-any-update116 ã¨ããããããå¿ è¦ããããæ¬æ ¼çãªç§»è¡ã¯ãâ¦
ç´æ¥ ascii ã³ã¼ããæå®ããã echo | awk '{print "\047"}' ãããã¯ã以ä¸ã®ãããªè¨è¿°ãããã echo | awk '{print "'\''"}'
Fedora ã®ãµã¼ãã¼ã®ç®¡çãã¾ããããããããã Fedora 9 ãåºãããã¨ããã®ã«ããã®ãµã¼ãã¼ã¯ Fedora Core 6 ã ã£ããFedora ã¯ã¯ããã¦ãªã®ã ãã以ä¸ãåèã«ã¢ããã°ã¬ã¼ããã¦ã¿ããhttp://www.kawaz.jp/pukiwiki/?Fedora%20upgradeæå¤ã¨ãã£ããå®â¦
å»å¹´ã®1æããã«ãGit ãããã£ã¦ããã¨ãããã®ã ããç´°ããç¹ãã©ãã©ãå¤ãã£ã¦ã¦ å¤åã®æ¿ãããã¼ã«ã ã¨æã£ããç¾å¨ã¯ãå©ç¨è ãå¢ãã¦ããã¨ãããè¦ãã¨ã ããããå®å®ãã¦ããã¨å¤æãã¦ãããããª?
ãã¼ã¸ã§ã³ç®¡çãã¼ã«ã® Subversion 㨠Git ãé£æºããããã® git-svn ã使ã£ã¦ã¿ãããã®ãã¼ã«ã使ãã¨ãä¸å¤®ã®ãªãã¸ããªã Subversion ã¨ãã¦ãæå ã§ã¯ Git ã使ããã¨ãã§ãããã¾ãã¯ãããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ããã aptitude install git-svnSuvbeâ¦
http://www.openx.org/ OpenXã¨ãããApache + PHP + MySQL ã§åä½ããWebåºåã®ç®¡çã·ã¹ãã ããããããã ã©ã¤ã»ã³ã¹ã¯ãGPL2ãå®å®çã® v2.4 ã¯ãMySQL ã®ã¿ã ããéçºçã® v2.5beta ã§ã¯ãPostgreSQLã«ã対å¿ãã¦ããæ§ã ãUIã¯è¯ãã§ãã¦ããããæ©è½â¦
IPA ããWebä¸ã§ä½¿ããèå¼±æ§æ¤åºãã¼ã«ãçºè¡¨ããããJava ã¢ãã¬ãã製ã§ãWebä¸ã§åä½ããã¿ããã Apacheãã°ãé£ãããã¨ãã§ãã¯ãã¦ããããhttp://www.ipa.go.jp/security/vuln/iLogScanner.html
åæ»ãã¥ã¼ã®å¼·å¶æåº # postfix flush ãããã¯ã # postqueue -f åæ»ãã¥ã¼ã®åé¤ # postsuper -d <ãã¥ã¼ID> ãã¥ã¼ãå ¨ã¦åé¤ # postsuper -d ALL
ãµã¯ãã¨ã¤ãªãã£ãã®ã ãããããã¯ã¼ã¯ã®ã¢ã¤ã³ã³ã ããããã¯ã¼ã¯æ¥ç¶ãªããã«ãªã£ãã¾ã¾ãªã®ããã«ãªããhttp://blog.bari-ikutsu.com/article/73872174.html
http://jp2.php.net/manual/ja/language.basic-syntax.php ã®ä»£ããã«ã ã£ã¦è¡¨è¨ãåºæ¥ãããã ããphp.ini ã§ã·ã§ã¼ãã¿ã°ãæå¹ã§ãªããã°ãªããªãã short_open_tag = On
ã¡ã«ãã¬ãçºè¡ãã¦ããã¨ãé »ç¹ã«ãã¦ã³ã¹ã¡ã¼ã«ãããããã¢ã«ã¦ã³ããç¡ãããªã©ã®æ°¸ç¶çãªã¨ã©ã¼ãªãé ä¿¡ãåæ¢ããå¿ è¦ããããDSN ã«å¯¾å¿ãã MTA ã®ãã¦ã³ã¹ã¡ã¼ã«ã®è§£æã¯ç°¡åãªãã ãã©ããããããªãã®ãçµæ§å¤ãã£ãããã(ããªã¼ã®ã¡ã¼ã«ãµã¼ãâ¦