2010-07-01ãã1ã¶æéã®è¨äºä¸è¦§
ããããåå¾ http://kaomojiya.com/ #!/usr/bin/env ruby require 'rubygems' require 'nokogiri' require 'open-uri' $KCODE = 'u' if ARGV.size < 1 STDERR.puts 'require : output filename' STDERR.puts 'e.g. ruby get-kaomoji.rb out.txt' exit 1 endâ¦
sudo touch /etc/inittab sudo apt-get install svtools daemontools-run/etc/inittab ãç¡ãã¨ããã¨ã©ã¼ãã§ãã®ã§ã空ã®ãã¡ã¤ã«ãä½ã£ã¦ããã¨daemontools-runãã¤ã³ã¹ãã¼ã«ã§ããã§ãsvscanãèªåèµ·åããªããèªåã§è¨å®ããã®ãé¢åããããªâ解決ããâ¦
http://anime.udp.jp/imager-animeface.htmlnvxsã¤ã³ã¹ãã¼ã« wget http://www.udp.jp/software/nvxs-1.0.2.tar.gz tar -zxvf nvxs-1.0.2.tar.gz cd nvxs-1.0.2 ./configure make sudo make installsudo cpan Imager Imager::AnimeFaceã¤ã³ã¹ãã¼ã« wget httâ¦
*/*/lib/obj */*/obj */*/output BuildMsg.txt *.log *.lock *~ *.bak *.pdb Thumbs.db *.a *.o *#*ãªãã¸ããªå ã«è¤æ°PSoCããã¸ã§ã¯ãç½®ãå ´åã¯ããã㪠*/*/*/lib/obj */*/*/obj */*/*/output BuildMsg.txt *.log *.lock *~ *.bak *.pdb Thumbs.db *.a *â¦
macã§ãã£ãã®ãUbuntu10.04ã§ãã http://d.hatena.ne.jp/shokai/20100724/1279996402 sudo apt-get install svtools daemontools-rundaemontools-runå ¥ããã¨ãsvscanbootãé»æºå ¥ããæã«èµ·åãã¦ãããããã«ãªãã Ubuntu㯠/etc/service ã«runã¹ã¯ãªãâ¦
ããããµã¼ãã¹ã¿ã³ãã¼ããã©ã³ã«gitwebãã¤ã³ã¹ãã¼ã« ãããªã£ã http://shokai.org/projects/git/ githubã«ç½®ããããªããªãã¸ããªãwebã§è¦ãããæãªããã«ä½¿ãäºå® ããããããã§ããgitãªãã¸ããªãhttpã§å ¬éãã - æ©æ¬è©³è§£ åºæ¬çã«å¤ãããªãã®â¦
åèï¼http://d.hatena.ne.jp/hiru926/20090130/1234313944open-uriã§webãã¼ã¸ãéããã¨ãã¦ã¿ã¤ã ã¢ã¦ãã«ãªã /usr/lib/ruby/1.8/timeout.rb:60:in `rbuf_fill': execution expired (Timeout::Error)rescueã§ã¯ã©ã¹åãæå®ããã«ææã§ããã®ã¯Standardâ¦
åè ç§å®¶ç daemontools FAQ (1/3) ããã¿ããããããã å°å¹´ã大å¿ãæ±ã: ãã£ã±ãdaemontoolsã好ã ã¦ãã¦ã©ã Unoh Labs: daemontoolsã§ãã¼ã¢ã³ç®¡ç sudo port install daemontools èµ·åã¹ã¯ãªãããç½®ããã£ã¬ã¯ããªãä½ã£ã¦ãã sudo mkdir /serviâ¦
åèï¼Cygwinã§Git(GitHub)ãå§ããããã®æºåã»è¨å®ã¡ã¢ - Rewish æ¢ã«Macã§gitã¨githubã使ã£ã¦ããã®ã§ãtortoise gitã¯ä½¿ããmsysgitã®bash shellã ãã§ä½¿ããmsysgitã«bashã¨opensshãä»ãã¦ããã®ã§cygwinããããªãã ã¾ãmsysgitã¤ã³ã¹ãã¼ã«ãã htâ¦
Ubuntu10.04ã«OpenCV1.0å ¥ããã wget http://downloads.sourceforge.net/project/opencvlibrary/opencv-unix/1.0/opencv-1.0.0.tar.gz tar -zxvf opencv-1.0.0.tar.gz cd opencv-1.0.0 ./configure makeã§makeã§ã¨ã©ã¼ãåºã ../../cxcore/include/cxmisc.hâ¦
cam = Camera.open(); Camera.Parameters cam_params = cam.getParameters(); List<Size> prev_sizes = cam_params.getSupportedPreviewSizes(); for(Size s : prev_sizes){ Log.v("CameraTest", s.height + "," +s.width); } HTC Desireã®å ´åããã以å¤ãæå®ã</size>â¦
githubã§å ¬éããããªããã©ãhttpã§ãªãã¸ããªãè¦ããããã«ãããäºãããããã©ã¤ãã¼ããªããã¸ã§ã¯ãã ã£ããããã¡ã¤ã«ãµã¤ãºã巨大ã ã£ãããããããægitweb.cgiã使ãã ãããã風ã«gitwebã§ãªãã¸ããªãå ¬éããã http://git.kernel.org/ åèâ¦
æºå sudo gem install mongo bson bson_ext#!/usr/bin/env ruby require 'rubygems' require 'mongo' m = Mongo::Connection.new('localhost', 27017) puts '---db names---' m.database_names.each{|name| puts name } db = m.db('testdb') db['users'].inâ¦
åè http://d.hatena.ne.jp/sugyan/20100423/1271981903 http://apiwiki.twitter.com/ChirpUserStreams config.yaml # twitter config user : 'username' pass : 'password' #!/usr/bin/env ruby # -*- coding: utf-8 -*- require 'rubygems' require 'net/â¦
ADCã§4ã¤èªãã§æåã«ãã£ãªãã¬ã¼ã·ã§ã³ãã¤ã¤å·®ãã·ãªã¢ã«éä¿¡ // read strain gauge int led_pin = 13; int ads[4]; boolean led_stat = true; void setup(){ pinMode(led_pin, OUTPUT); Serial.begin(9600); digitalWrite(led_pin, led_stat); for(int iâ¦
http://dev.twitter.com/pages/streaming_api_methods config.yaml # twitter config user : 'username' pass : 'password' # tokyotyrant config ttdb : - name : tweets port : 20020 jsonãparseãã¦è¡¨ç¤ºãã ARGVãtrackã«ããã¦ã #!/usr/bin/env ruby â¦
require 'socket' p Socket::gethostname p IPSocket::getaddress(Socket::gethostname) ã§ãåããªãäºãããã»ã»ã»
åè http://www.mongodb.org/display/DOCS/Quickstart+OS+X http://www.mongodb.org/display/DOCS/Ruby+Tutorial wget http://fastdl.mongodb.org/osx/mongodb-osx-x86_64-1.4.4.tgz tar -zxvf mongodb-osx-x86_64-1.4.4.tgz cd mongodb-osx-x86_64-1.4.4 sâ¦
sudo port install pandocpandoc -r markdown -w latex README.md > README.texmarkdownã«ç¡ãtexã®è¨æ³ã¯ãtexã§markdownå ã«æ¸ãã¦ããã°pandocã§å¤æãããã«æ®ã ãããã¯ãåç« ãã¾ã¨ããtexãã¡ã¤ã«ãã \include{ãã¼ã¸å} ã§pandocã§ä½ã£ãtexãã¡ã¤â¦
gemã«ãã â http://shokai.org/blog/archives/5219 è¤æ°DB使ãããã«è¨å®ãã¡ã¤ã«ãæ¸ãã¦ããconfig.yaml # tokyotyrant config ttdb : - name : pages port : 20005 - name : olds port : 20006 - name : uploads port : 20007 rakeã§ã¾ã¨ãã¦èµ·å/çµäºãâ¦
tokyotyrantã¯ttserverã¨ããã³ãã³ãã§èµ·åããã ã½ã¼ã¹ããã¤ã³ã¹ãã¼ã«ããã /usr/local/sbin/ttservctl ã¨ãã管çç¨shell scriptããã£ãã®ã§ããããåèã«ã¨ãããã start, stop, restartã ãrake taskã«ãã pidãã¡ã¤ã«ãserverå®è¡ä¸ã ãä½ããâ¦
specãã£ã¬ã¯ããªãä½ã£ã¦ãä¸ã« *_spec.rb ã§rspecãé ç½® ãã®Rakefileãããã¸ã§ã¯ãã«ç½®ãã¦ããã°rakeã§rspecå®è¡ã§ãã newgemãçæããtesté¢é£ã®ãã¡ã¤ã«ãåèã«ãã Rakefile require 'rubygems' desc 'run spec' require 'spec' require 'spec/raâ¦
localhostã§åãã¦ããtokyotyrantã«æ¥ç¶ããæã«ãã¹ãåã§æ¥ç¶ã§ããªãã¦ãï¼connection refusedã¨ããã¨ã©ã¼ãè¿ãï¼127.0.0.1ã£ã¦æ¸ãããã§ãããããã«ãã¯ã¾ããã¦ã¦20æéãããæ©ãã§ãããªãã§ãã¹ãåã§æ¥ç¶ã§ããªããã ãããèªåã§require sockâ¦
å ã«tyrantã®ãã¼ã¸ã§ã³ã«åã£ãcabineãå ¥ã£ã¦ããªãã¨makeéããªã å¤ãtokyocabinetãã¢ã³ã¤ã³ã¹ãã¼ã«ãã¦ãã wget http://1978th.net/tokyocabinet/tokyocabinet-1.4.45.tar.gz tar -zxvf tokyocabinet-1.4.45.tar.gz cd tokyocabinet-1.4.45 ./configâ¦
sudo port install Xpdfpdftotext input.pdf output.txtubuntuã 㨠sudo apt-get install poppler-utilsã§pdftotextã使ãã