ããã°ã©ã
ddd ã¨ãããã¼ã«ãããã¾ã ããã㬠gdb 㨠GUI ddd ãç¨ãã C, Java ããã°ã©ã ã®ãããã° - è¨ç®ç§å¦/å®ç¿ç¬¬21åèª²é¡ ãããè¦ã¦ããããã°é°å²æ°ã¯ãããã¨æãã¾ããããã ãã¼ããã®ã®ãããã¡ãã£ã¨ã¤ã±ã¦ãçãä½ã£ã¦ããã人ããªãããªã*1ã ã¨â¦
ååã®ç¶ã ååï¼SIGNAL ãåä¿¡ãã - @sugamasao.blog.title # => âã³ã¼ãã§ä¸çãå¤ãããâï¼ãããã¾ãã«ãæãã£ã±ãªãã ã£ãã®ã§ãè£è¶³ãã¦ããã ã·ã°ãã«å¾ã®åããåãããããããçºã«ãå°ãããªã³ãæçã追å ãã¦ããã ã½ã¼ã¹ #include <stdio.h> #inclu</stdio.h>â¦
SIGNAL ãåä¿¡ããã«ã¯ æ㯠signal é¢æ°ã使ã£ã¦ã·ã°ãã«ãã³ãã©ãè¨å®ãã¦ãããã©ãä»ã¯ sigaction é¢æ°ã使ãããã ã åè ã·ã¹ãã ããã°ã©ã ï¼ç¬¬5é±ï¼ 試ãã«å®è£ ãã¦ã¿ã 大æ¦ã® SIGNAL ã®ãµã³ãã«ã½ã¼ã¹ã ã¨ãã·ã°ãã«åãããã¼ã§çµããã®ãå¤ãâ¦
syslog çµç±ã§ãã°ãåºå ã¿ã¼ããã«ããæ¸ãè¾¼ãã«ã¯ logger ã³ãã³ãã使ãã¨æ¸ãè¾¼ãäºãåºæ¥ãã logger -t sample hoge ãããªé¢¨ã«ããã¨ã Mar 10 01:52:56 siegfried sample[761]: hoge ãããªé¢¨ã«åºåãããã -t xxx ã®é¨åãããã»ã¹åãåºåããâ¦
POSIXæ¨æºã§ã¯ãªããã daemon é¢æ°ãããã®ã§ããæ軽ã«ä½æã§ãã daemon é¢æ°ã¯ man 3 daemon ã¨ãããã404 - ã¨ã©ã¼: 404ãåç §ã®ãã¨ã ã¡ãªã¿ã«ãå¼æ°ã« 0 ã渡ããæã®åä½ã¯æ¸ãã¦ããããã©ãããæå¤ã®å ´åã»ã»ã»ä¾ãã°ãã«ã¬ã³ããã£ã¬ã¯ããªãâ¦
ä¿®æ£ç ã¨ã¹ã±ã¼ãã·ã¼ã±ã³ã¹ãã§ãã¯ãããã®ãã¸ãã¯ãã¹ããã£ãã®ã§ä¿®æ£ããçã ãã®ä»ãã«ã¼ãé¨åãã¨ã¹ã±ã¼ãã·ã¼ã±ã³ã¹é¨åã®ãã§ãã¯ã®è¨è¿°æ¹æ³ãå¤æ´ããã def jis_couner(str) esc_flag = false esc_string = "" wide_byte_flag = false wide_fâ¦
ã¤ãã«ãã¨ãªã£ã¦ 2008/08/22:ä¿®æ£çâJISã³ã¼ãã®æåæ°ã調ã¹ãï¼ï¼ï¼ - @sugamasao.blog.title # => âã³ã¼ãã§ä¸çãå¤ãããâ æåæ°ã調ã¹ãããã°ã©ã ãä½ã£ã¦ãã¾ã£ãã ã¡ãªã¿ã«ã SJIS ã§ã¯ãªãã JIS ã®ã³ã¼ãã§ããã JISã³ã¼ãã¯ï¼ãã¤ãæåãï¼â¦
çç£æ§ã®æªããç®ã®å½ããã«ããï¼ ä»Cè¨èªã§éçºããã£ã¦ããã®ã ãã©*1ãããã®çç£æ§æªããã¯ãã¿www ï¼é±éå¼±ã§ï¼ï¼ï¼ï¼è¡ãããæ¸ãã¦ããã©ï¼ã³ã¡ã³ãå«ãï¼ãã©ãèãã¦ãè¡æ°ã«å¤§ãã¦å®è£ ãããæ©è½ã®å²åãããããã æååæä½ãé »ç¹ã«ãã£ã¦ããâ¦
ã¤ãã«æ°ãã¤ãã Ruby ã Perl ã«æ¯ã¹ã¦ã¤ãã¤ãæ¥æ¬ã§ã¯ççºãããã¦ããªãæã®ãã Python ã ãã©ããã®çç±ãããã£ãã å ¥éæ¸ãè¯ããªã Python ã®æåãªæ¸ç±ã¨ããã°ãã¿ããªã®Pythonããããã®ã ãã©ããããã¨ã¦ãããºãã ã¿ããªã®Pythonä½è : æ´â¦
ãªããä½ããããªã£ãã®ã§ä½ã£ã¦ã¿ã ruby ã®ã¹ã¯ãªããã®ç©ºè¡ã¨ã³ã¡ã³ãã¨å®éã®è¡æ°ãè¨ç®ããã è¤æ°è¡ã®ã³ã¡ã³ãåï¼begin ã endï¼ã ã¨ãã¾ãè¨ç®ã§ããªãããã©ããã¾ãã³ã¡ã³ãå½¢å¼ã¨ãã¦ä½¿ãããªãããè¯ããã^^ base = '/tmp' ext = '.rb' result â¦
require ããã¨ãrequire å ã®ãã¡ã¤ã«ãå¼ãã§ããã ãã¨ãã°ã以ä¸ã®ãããªï¼ã¤ã®ã½ã¼ã¹ãããå ´å # test1.rb class Test1 puts "Test1 require" def test1 puts "test1" end end #test2.rb require 'test1' class Test2 puts "Test2 require" def test2â¦
ããããã° SQL ã§ä¾ãã°ä»¥ä¸ã®ãã㪠select çµæã®å¤ã«å¯¾ãã¦è¨ç®å¦çãè¡ãããå ´å select id * 10 whre table; ãã¼ããã®ã£ã¦ãä¸è¨ã®ããã« SQL 㧠select çµæã« 10 ãæããè¨ç®ãããå ´åã¨ãä¸æ¦ id ãåå¾ããå¾ã«ãããã°ã©ã ï¼JavaãªãRubyãªâ¦
Ruby ã§ãããã¨æã£ããã©ã°ãªã¢ã³ã§ãã£ãæ¹ãè¦ãç®é¢ç½ã ã¨ãããã¨ã«æ°ãã¤ããã®ã§ã°ãªã¢ã³ã§ãããã¨æã£ãããããããããç´ äººãªã®ã§æèãããã°ã©ã ã«è½ã¨ãã¾ããwww ãã£ã¨ããããåèã«ããã¨ãã¼ã¿åå¾ã¨ããã®ã¯ã§ããã¨æããã ã http:/â¦
ãã³ãã³åç»ãæ¾åããã ç°¡åã« Ruby ã§ã§ãããã¨æããããã°ã¤ã³é¨åããã£ããï¼å½ããåã ï¼ãæ£è¦ã® API ãç¡ãã£ããããã®ã§æã£ãã»ã©ç°¡åã«ã¯ã§ããªããã ã¨ãããããã§ããã§ãããç®å¦ã¯ã¤ããã®ã ãã©ã ãããªãã¨ããããã¡ãã£ã¨ Mac ã®â¦
Cè¨èªãã¡ã¤ã³ã§ããµãã«ã¼ãã³ã¨ã㦠Ruby ãå¼ã³ããã®ã§ã ããã©ã¼ãã³ã¹ãåºãããã®ã§ C è¨èªã§å®è£ ããããã ãã©ãå©ä¾¿æ§ãèãã¦å°ã Ruby ã®ã©ã¤ãã©ãªãèªãã§å¦çãåã¾ãããï¼ http://www.sb.soft.iwate-pu.ac.jp/~yushi/memo/ruby_ext.html â¦
MacPorts ã¨ããããã±ã¼ã¸ã·ã¹ãã ãããã¾ã port ã³ãã³ãã§å®è¡ã§ããã®ã ãã©ãããã©ã«ãã§ã¯å ¥ã£ã¦ããªãã®ã§å¥éã¤ã³ã¹ãã¼ã«ããå¿ è¦ãããã http://www.macports.org/ ãããã 1.6.0 ãDLãã¦ã¤ã³ã¹ãã¼ã«ã è¨å®ã¨ãã¯ãããç°å¸¸ã«è©³ããã id:â¦
使ããªãããã§ãã¾ã«ä½¿ãããå±é¢ããããã ã§ãä¾ãã°äºæ¡ã®ã¼ãè©°ãã¨ããæç´ã«æ¸ãã¨ãããªæãã ãããï¼å ã ã®å¤ãæååãæ°å¤ãã§å¤ããã ãããã©ï¼ã num = "0" if num.to_i < 10 num = "0" + num end ãã ããªããé æªããªã¼ã£ã¦æã Ruby ã§ãâ¦
Lightweight Language AHP http://dame.dyndns.org/misc/llahp/ ããã£ã¦ã¿ãã çµæ http://dame.dyndns.org/misc/llahp/?q=Ak9m9g5gd-a2RHO&n=sugamasao sugamasao ããã«ãªã¹ã¹ã¡ã® LL 㯠Ruby (41%) > Python (22%) > Perl (21%) > PHP (16%) ã§ãï¼ ã â¦
åçµããªããå¦ã¶ http://tam.qmix.org/wiki/Minki03.html ã©ããããrails 㯠URL ã以ä¸ã®è¦åã§åãã¦ãããããã http://hogehoge/controllerå/actionå/ãã¼ã¸åï¼idï¼ erb view ã§ããã¼ã調ã¹ã erb ã使ãã åçµããã®ã§ã¨ãããããããããã¼ãâ¦
rails ãåãã DBã®æºåãã§ããã®ã§ãé©å½ã« database ãä½ãã create database test_rails ã¤ãã§ã«ããã¹ãç¨ã«ã¦ã¼ã¶ãä½ã£ã¦ããã GRANT ALL PRIVILEGES ON *.* TO test@localhost IDENTIFIED BY 'test' WITH GRANT OPTION; flush privilages; ããâ¦
mysql ãå ¥ãã¦ã¿ãã Mac OS X 10.4 (x86)ç¨ã® mysql 5.0.45ï¼ããã±ã¼ã¸çï¼ããã¦ã³ãã¼ããã¦ãã¤ã³ã¹ãã¼ã«ããã¿ãã ãã¦ã³ããã¦ä¸èº«ã® .pkg ãããããããã¾ã¾ã«ã¤ã³ã¹ãã¼ã«ãä½ãããããããªããã©ãããã±ã¼ã¸ãï¼ã¤ãã£ãããï¼ã¤ã¨ãå ¥ãã¦â¦
MySQLã¤ã³ã¹ãã¼ã« http://dev.mysql.com/downloads/mysql/5.0.html#macosx-dmg ãããã¿ãã Mac OS X (package format) downloads (platform notes) Mac OS X 10.3 (PowerPC, 32-bit) 5.0.45 66.2M Pick a mirror MD5: 24aeeb5f992284acb73101d28b0acb7a |â¦
Mac ã« Ruby on Rails å ¥ãã æå㯠Ruby on Rails ãå ¥ã£ã¦ããªãã®ã§ã¤ã³ã¹ãã¼ã«ããã ã¾ãããã±ã¼ã¸ã®ç¢ºèª gem listä¸ç¥rails (1.2.3) Web-application framework with template engine, control-flow layer, and ORM. rails ã§å ¥ããã°è¯ãã£ã½ãã â¦
è¥å¹² ãã£ã¡ãã£ãããªã¼ã¨ãæããã©ãããããã®ãè¯ãããªã¨ããã£ã¦ç»é²ãã¦ã¿ãã http://coderepos.org/share/wiki/Committers/sugamasao ã¨ãããã ä»ã®äººã®ã½ã¼ã¹ã§ãèªãã§ã¿ãã
æ²ããã« ããä¸ã¤ãã¿ã¼ã³ã追å ãã¦ã¿ãã ããããä½ããããã®ãã¨è¨ãã¨ããAã¨ãããã¡ã¤ã«ããXXXã¨ããæååãå«ãè¡ãæ½åºãã¦ãè¡æ°ãã«ã¦ã³ãããããã¨ãããã¨ã Ruby ã§å®è£ ãããã®ã§ãã·ã§ã«ã¹ã¯ãªããã¨ãã§ãã£ãæ¹ãâ¦â¦ã¨è¨ãã®ã¯ãªãã®â¦
ãããªé¢¨ãªæ»ãå¤ãè¿ãã¡ã½ãããããå ´å # ãã® is_hogehoge 㯠bool åã®å¤ãæã£ã¦ãã if is_hogehoge return true end return is_hogehoge # ãã®å ´åã® is_hogehoge 㯠false ã®å ´åã®ã¿ ãã¼ããã®ãè¦ãã¨ããªããããããããããã¦ããã æ»ãå¤â¦
ãªãããããé¢ç½ã ãããã£ã¦å¯è¦åãããã®ã¯å¼·çã«é¢ç½ãã ããã¯åä½éçºæã«ãã£ã¦ãã¨ããªãã¢ããã¼ã·ã§ã³ã«å·®ãåºãããããªãããªï¼Trac ã®ã¿ã¤ã ã©ã¤ã³ã¨ãã±ããã¿ãããªé°å²æ°ã§ï¼ã â¦â¦åé¡ãªã®ã¯ä»ã®ããã¸ã§ã¯ãã¯åä½ãã§ã¼ãºã©ãããéçºâ¦
RUnitã使ã£ãéçºã§ ã³ã¼ãã«ãã¬ãã¸ã測å®ãããã¼ã«ã¨ããã®ã¯ç¡ãã ãããã Javaã¨ã C# ã ã¨ãã£ãã¨æããã ãã©ãªããã£ã±ãåçè¨èªã ã¨é£ããã¨ããã¼ããçç±ãããã®ã ãããããã
ææãã¦é ããã®ã§ ååã®ã³ã¡ã³ãã§æãã¦ããã£ãæ£è¦è¡¨ç¾ã使ãæã®å®ç³ãã¿ã¼ã³ã追å ãã¦ããä¸åº¦æ¸¬å®ããªããã¦ã¿ããã æ¥ãããã話 only ã¨ãããã¨ããã onry ã«ãªã£ã¦ãï¼ï¼ï¼æ¥ããããã¦æ»ã«ããï¼¼(ï¼¾oï¼¾)ï¼ ã㨠ãããã¸ãã¯è³å è£å®ãã¦ãâ¦
ãµã¨èãã¦ã¿ããã ãã© ãããã¡ã¤ã«ï¼ä»¥ä¸Aï¼ããç¹å®ã®å¤ï¼ä»¥ä¸Xï¼ãå ¥ã£ã¦ããè¡ã ãæ½åºãã¦ããã®çµæãå¦çããããã¨ããæã¯ã©ã£ã¡ãæ©ãã®ããã©ã£ã¡ã大差ãªããã®ãªãã ãããã â»ãã ããããã°ã©ã 㯠Ruby ããèµ·åããªãã¦ã¯ãããªããã®ã¨ãâ¦