2008-04-01ãã1ã¶æéã®è¨äºä¸è¦§
http://www.hde.co.jp/press/column/detail.php?n=200612130 http://localhost:10080/hello?name=asdf ã¨ãã§GET渡ãã #!/opt/local/bin/ruby require 'webrick' class HelloServlet < WEBrick::HTTPServlet::AbstractServlet def do_GET(req, res) res.bodâ¦
Config::Simple [requires] XML::Simple [requires] IO::AtomicFile [requires] Date::Parse [requires] Log::Dispatch [requires] Crypt::SSLeay [requires]http://www.hatayan.org/weblog/archives/2006/02/21/133051.php apt-get build-dep libxml-parserâ¦
rubyã.NETç³»ã¨é£æºãããããé¢æ°ä¸çºã§key:valueãããã¨ãã§ãããããã¾ã§ä½ãã 1. webrickã§ãµã¼ãã¼ç«ã¦ã¦httpã§ãã ârubyã¯å å®ãã¦ãã®ã§ãC#å´ã§httpç³»ã®ã©ããã¼ä½ãã2. XMLSocketã®server/clientã両æ¹ã§æ¸ãã 両æ¹ä½ã£ã¦ç½®ããæ¹ãå¾ã 便å©â¦
http://rubyist.g.hatena.ne.jp/muscovyduck/20061114/p1ããã§ãã£ã¬ã¯ããªä¸ã http://localhost:10080/ ã§å ¬éããããææ¥é£è¡æ©ã§ã¯ããã¨C#ã§éã¼ã #!/opt/local/bin/ruby require 'webrick' document_root = '/Users/sho/' #document_root = './' seâ¦
mydns.jpã¯basicèªè¨¼ã§ã®ã¢ãããã¼ããã§ããã®ã§ */10 * * * * wget --spider http://username:[email protected]/login.htmlãããcrontabã«ç»é²ããã°ãã 10åããæ´æ°ã
WebService::SyncSBS::D2Hã使ãããã®ã§ãï¼å®¶ã®ãµã¼ãã¼ã1ã¤æ¢ããã®ã§ï¼ http://search.cpan.org/~yappo/WebService-SyncSBS-D2H-0.03/lib/WebService/SyncSBS/D2H.pm http://shokai.org/blog/2007/02/04/delicious%e3%81%a8%e3%81%af%e3%81%a6%e3%81%aaâ¦
var req:URLRequest = new URLRequest("pi.mp3"); var s:Sound = new Sound(req); s.play();
åã®ç¶æ ãè¦ãã¦ãã var dist = 0; var dist_threshold = 0.2; // è·é¢ã®ãããå¤ var wifeIsHere = false; serialInit(9600); //serialSend("this wife is watching me"); while(true) { dist = analogRead(0); if(dist > dist_threshold){ if(!wifeIsHerâ¦
var dist = 0; var dist_threshold = 0.2; // è·é¢ã®ãããå¤ serialInit(9600); //serialSend("this wife is watching me"); while(true) { dist = analogRead(0); if(dist > dist_threshold) serialSend("N"); else serialSend("F"); //serialSend(dist + â¦
SELECT country.cname, country.population, river.rname, river.len, mount.mname, mount.elevation FROM country, river, mount, mhold, rhold WHERE country.population > 50000 AND mount.elevation > 4000 AND river.len > 1000 AND country.cname = mhâ¦
1ã¤åã®ã®pv3dã¨ã®å°å³ã®ãã¤ã 㨠ã©ã¤ãã©ãªèªã¿è¾¼ã㧠import caurina.transitions.Tweener; planeMapã¨ããMovieClipãæä½ããã Tweener.addTween(planeMap, { rotationZ:270, time:1, transition:"liner" } ); hashã§å¤ã¨å¤åå ã®å¤ãæå®ããã ãã®â¦
http://web.sfc.keio.ac.jp/~shokai/archive/as3/0804_Pv3d/Pv3dTest/Pv3dTest.html http://web.sfc.keio.ac.jp/~shokai/archive/as3/0804_Pv3d/Pv3dTest/ ãã¼ãã¼ãã®æ°å0ã7ãã¼ã§å転ãã package { import flash.display.*; import flash.events.*; imâ¦
ããåèã« http://www.atmarkit.co.jp/fjava/javatips/035eclipse012.html Eclipse IDE for Java Developers http://www.eclipse.org/downloads/index.phpJavaScript Editor PlugIn for Eclipse http://sourceforge.net/projects/jseditorã§ãåããªãã£ãâ¦
joinããã£ãï¼ select rhold.cname, rhold.rname,len from rhold,river where river.len > 700 AND river.rname = rhold.rname;
ææ¥ã§ããã£ããã«ããå ¥ãããã¯ã©ã¤ã¢ã³ããã¼ã«ã¨ãå ¨é¨ã¯ãã£ãã universal build 8.3.1ã¨æ¸ãã¦ãã£ãdmcã«ã
chsh -s /usr/local/bin/zsh
ãããã¬ã³ã¿ã«ãµã¼ãã¼ ã¹ã¿ã³ãã¼ããã©ã³ã§ã http://d.hatena.ne.jp/aircastle/20071209/1197144758 mkdir local mkdir local/emacs mkdir tmp cd tmp wget http://core.ring.gr.jp/pub/GNU/emacs/emacs-22.2.tar.gz tar zxvf emacs-22.2.tar.gz cd emacâ¦
sudo apt-get install bind9
CS3 ã® Configuration ãæ±ããã件 - blog.nium.jp C:\Program Files\Adobe\Adobe Flash CS3\ja\Configuration\Component Source\ActionScript 3.0\FLVPlayback C:\Program Files\Adobe\Adobe Flash CS3\ja\Configuration\Component Source\ActionScript 3.â¦
ãã£ã±controlleãä½ã表示ãããï¼ã決ãã¦ãviewãã©ã表示ãããï¼ãæ å½ããæ¹ãããã®ã§ http://shokai.mag.keio.ac.jp/geophoto/photos.kml?lat=35&lon=135&size=thumb ã§ãµã¤ãºæå®ã§ããããã«ãã¦ã¿ãcontrollers/photos_controller.rb def index dâ¦
æåhelperã«ããããã¨æã£ããã©modelã«ã¡ã½ãã追å ãã class Photo < ActiveRecord::Base def source_url_size(size = :medium) if size == :square return source_url.sub(/\.jpg/, '_s.jpg') elsif size == :thumb return source_url.sub(/\.jpg/, '_â¦
FlashCS3㧠ã¦ã£ã³ãã¦âä»ã®ããã« ã§Progressionã®ããã«ãå¢ãã¦ããã®ã§åºãããã¸ã§ã¯ããä½æãããã§é©å½ã«ååãã¤ãã¦ãä½æããã ãªããé©å½ã«çµµã§ãæãã¦ãããFlashCS3㧠ãããªãã·ã¥è¨å®âãã¼ã¸ã§ã³ ã§ãAdobe AIR 1.0ããé¸æ ã³ãã³ãâãAIâ¦
FlashDevelop+FlashCS3ç°å¢ãªã®ã§Flash CS3ç¨Airæ¡å¼µå ¥ãã http://www.adobe.com/support/flash/downloads.htmlææ°çã®FlashDevelopãå ¥ãã http://www.flashdevelop.org/community/viewtopic.php?t=2574adobe extension managerå ¥ãã http://www.adobe.â¦
1207619657ã¿ãããªã®ããå¤æãã result = DateTime.new(1970,1,1) + Rational(1207619657, 24*60*60) puts result.to_s 2008-04-08T01:54:17+00:00絶対ãã£ã¨ããæ¹æ³ããã
åçãµã¤ãºå¤ãã crawlerç§»è¡ photo_idããcreate
å ¬éããããã ãMãµã¤ãºã®åçã®URLã«ãã¡ãã£ãã®ã§éãã http://shokai.mag.keio.ac.jp/geophoto/ http://shokai.mag.keio.ac.jp/geophoto/photosæé ï¼ ãããã¨åã Mongrelã§Railsãããã㤠- shokaiã®æ¥è¨ apache2ã®ãµããã£ã¬ã¯ããªãmongrelã§èµ·â¦
geophoto.kmlãããåè¨äºã§ä½ã£ãlocalhostã§åãã¦ãRailsã«ä¿åãã¦ããflickrã®geotagåçã緯度çµåº¦ã§æ¤ç´¢ãã¦ããã«kmlãèªã¿åºãã¦ããã http://earth.google.co.jp/kml/kml_tags_21.html ããã¼ã«ã«ã«ä¿åãã¦ãã£ã¦å¬ããã£ãã®ã§ãã¹ã®ä¸ã§ä½ã£ãâ¦
æç°å¸°ãã®ãã¹ã§ä½ã£ãã åã®ã§4ä¸ä»¶ã§webricãåºã¾ã£ãã®ã§ãã¡ãã£ã¨èãç´ãããfile://localhost/opt/local/lib/ruby/gems/1.8/doc/activerecord-2.0.2/rdoc/classes/ActiveRecord/Base.html ãèªããªã©ã㦠ActiveRecord::Base.find_by_sql ã使ã£ã¦â¦
4ä¸ækmlåºåã¯ç¡çãã
railsã§ãé£è¡æ©ã®ä¸ã§æã ã£ãã®ã§ä½ã£ããdbã®migrate class CreatePhotos < ActiveRecord::Migration def self.up create_table :photos do |t| t.column :photo_id, :string, :limit => 20, :null => false t.column :title, :string, :limit => 30, :nuâ¦