2008-06-01ãã1ã¶æéã®è¨äºä¸è¦§
config/routes.rb map.root :controller => 'welcome' public/index.htmlãåé¤ããªãã¨ãã£ã¡ã表示ããã
script/generate controller friendsscaffoldã¯åæ°å½¢ã§generateããã¨è¤æ°å½¢ã®controller/viewãã§ãããã©ãcontrollerã¯è¤æ°å½¢ã§ãããªãã¨è¤æ°å½¢ã«ãªããªãã®ã exists app/controllers/ exists app/helpers/ create app/views/friends exists test/funcâ¦
sudo gem install mongrel sudo gem install mongrel_cluster sudo gem install daemonsrailsç¨ã«ãwebrickã ã¨ãã¤ããªã£ã¦ããã®ã§
http://shokai.org/projects/httpnet/ using Org.Shokai.Web; using System.Web; AsyncWebRequest asyncReq = new AsyncWebRequest(); asyncReq.encoding = Encoding.UTF8; asyncReq.onResponse += (ResponseDelegate)delegate(Response res) { Console.Writâ¦
System.Web.dllãåç §ã using System.Web; String encoded = HttpUtility.UrlEncode("ããããã");
install Bundle::CPAN install LWP
kwikiå ¥ãããã£ãã®ã§ã ã§ã cpanããã¨åä¼èµ·åæã«è¨å®ããªããã°ãªããªãã®ã§ç¢ºãè²ã é¢åã ã£ããããªã»ã»ã»ã¨æã£ããããªããå ¨é¨ããã©ã«ãå¤ã§enteré£æã§ãããï¼ãããã«å½çªå·ã¨ãã¯5:Japanã¨ãå ¥åãããã©ï¼ ãã¤ã®ã¾ã«ã便å©ã«ãªã£ã¦ãããâ¦
ãªããhttp postããã ãã§å¤§å¤ãªã®ã§ä½ãã¯ããã http://shokai.org/projects/httpnet/hg/ 俺ãWebRequestãã¦å¾ãããã®ã¯Streamãããªãã¦Stringãªãã§ã http get/post get postã®ãã©ã¡ã¼ã¿ç°¡åã«ã¤ããã basicèªè¨¼ãdigestèªè¨¼ãéãã éåæãªã¯ã¨â¦
使ããããã«ãã asyncReq.auth = new NetworkCredential("user","pass"); asyncReq.get(new Uri("http://secret.com/basicauth/")); get/postããåã«authã«è¿½å ããã ã
gem install rfacebookç´ ç´ã«å ¥ã£ããmochaãã¤ãã§ã«ã¯ãã£ã rubyã¯ç°å¢ãæ´ããã®ã楽ã§è¯ããããã¨mercurialã§win/macã®bootcampå ã¨ubuntuãµã¼ãã¼ã§ããªã楽ã«é²ãããã
httpdãåãã require 'webrick' #document_root = '/Users/sho/' document_root = './' server = WEBrick::HTTPServer.new({ :DocumentRoot => document_root, :BindAddress => '0.0.0.0', :Port => 10080 }) ['INT', 'TERM'].each {|signal| Signal.trap(â¦
課é¡ç¨ http://shokai.ok.sfc.keio.ac.jp/test/ldweather/ #!/usr/bin/ruby require 'cgi' require 'open-uri' require 'rexml/document' print "Content-Type: text/plain\n\n" #get xml url = 'http://weather.livedoor.com/forecast/rss/3.xml'; doc = REâ¦
chumbyã¢ããªã¤ããããã¯ç´ ç´ãèªè¨¼ã¨ãã¯ç¹ã«æ°ã«ãªããªãã£ã(wrapperãè¯ããããã)
API keyããã£ãã®ã§ãã¨ããããå人ãªã¹ãã§ãåºãã¦ã¿ãã ./script/generate scaffold friend Railsã§ã¼ãããä½ãFacebookã¢ããªéçº:æ±å³¶å¥å¤ªé / Kenn's Clairvoyance - CNET Japanãã»ã¨ãã©åèã«ãã modelã¨ãã¦Facebook APIã使ãã®ã§ãcontrollâ¦
Railsã§ã¼ãããä½ãFacebookã¢ããªéçº:æ±å³¶å¥å¤ªé / Kenn's Clairvoyance - CNET Japan ã¾ãrailsããã¸ã§ã¯ãä½ã mkdir facebook cd ~/src/facebook rails test RFacebookå ¥ãã sudo gem install rfacebook RFacebookã®railsãã©ã°ã¤ã³å ¥ãã¦ãè¨å®ããâ¦
Facebook Application ã®ä½ãæ¹ - Enjoi Blogä¸æ®µè½çãã¦ãã¨ã¯å®æ©ãã¹ãã®ã¿ãªã®ã§ãéãã§ã¿ã sudo gem install rfacebook http://www.facebook.com/developers/ ããdeveloperã®FacebookAppã追å ããã®FacebookAppã§èªåã®ä½ã£ãFacebookAppã管çãâ¦
ãã¹ã¯ãããã¢ããªãä½ã£ã¦ã¿ã Facebook Developer Toolkitã使ãã¨.NETç³»ï¼C#/C++/VB.NETï¼ã§facebookã¢ããªãä½ãã http://www.codeplex.com/FacebookToolkitdllãbinaryã§è½ã¨ãã¦ãã¦ãFacebook.Controls.dllã¨Facebook.dllãåç §ã«è¿½å ã㦠ã¾ãèªè¨¼â¦
using System.Net.NetworkInformation; public Boolean ping(String serverAddr) { try { Ping p = new Ping(); PingReply reply = p.Send(serverAddr); p.Dispose(); if (reply.Status == IPStatus.Success) { return true; } } catch(Exception ex) { tracâ¦
~/.hgrc [ui] username = shokai <[email protected]>bootcamperãªã®ã§winxpã®ã»ã㯠shokai ã«ãã¦ãããã ãªãã¸ããª/.hg/hgrc [paths] default = ssh://[email protected]/src/myproject fs = ssh://[email protected]/src/myprojectãã㧠hg push ã ãã§defaultã«éãã ã</[email protected]>â¦
Firefox3 tombloo 0.2.1 http://d.hatena.ne.jp/brazil/20080514/1210759974 ã¯ãã¹ãã¹ãæã«ã¨ã©ã¼ãã§ããããã¯ãã¼ã¯ã¯ããã¦ããã®ã§ 109è¡ç®ãã³ã¡ã³ãã¢ã¦ããã¦ããã alert(service + ': ' + e.message);
browser.tabs.extensions.tabFlip;false browser.tabs.extensions.tab_scroller;-1 browser.tabs.extensions.tabbar_place;3
urlããã¡ã¤ã«åã§æå®ã§ãã PictureBox pic = new PictureBox(); pic.ImageLocation = "http://asdfasdfasdfsdf.com/jkdajflajsdfj.jpg"; ãã¼ãä¸ã«çµäºããæã¯å é¨ã®threadãæ示çã«çµäºãããªãã¨ãããªãã®ã§ pic.Dipose(); 解æ¾ããã¨ok
foreach (DsDevice ds in DsDevice.GetDevicesOfCat(FilterCategory.VideoInputDevice)) { Console.WriteLine(ds.Name); } ååãåå¾ã§ãã便å©ããã¦é¦¬é¹¿
ãã°ããè¦ãªããã¡ã«2.0ã«ãªã£ã¦ç¥ã©ã¤ãã©ãªã«ãªã£ã¦ããç¥ãC#ããã«ã¡ã©ä½¿ãã®ã»ãã¨å¤§å¤ã ã£ãã®ã⦠http://directshownet.sourceforge.net/ DirectShow.NETã¨sourceforgeã«ãã£ããµã³ãã«ã«å ¥ã£ã¦ãCapture.csãä¸ç·ã«ä½¿ã£ãã ç°å¢ã¯VS2008+C#3.0 usiâ¦
ããããã®ã¹ã¬ããã管çããã®ã«ä¾¿å©ãªã®ã§å ¬é å®è£ ã¯C#ã ãdllã«ããã®ã§C++ãVBãªã©ã§ã使ããhttp://shokai.org/projects/threadmanager/ using Org.Shokai.Util.Thread; ThreadManager thManager = new ThreadManager(10); // 10å管çãã ã¹ã¬ããâ¦
ããPORTã®è¤æ°ã®ãã³ã§ä¸¡ã¨ãã¸å²ãè¾¼ã¿ããã¨ããå ¨ã¦ã®ãã³ã®ç«ã¡ä¸ãã/ç«ã¡ä¸ããå ¨ã¦ã«åå¿ãã¦ãã¾ãã®ã§ã åã®PORTç¶æ ãä¿åãã¦ããã¦ç¾å¨ã¨æ¯è¼ãã¦ãããªããã°ãªããªããä¾ãã°PORT2ã®5ã¨7ã«ã¤ãªãã 2ã¤ã®ã¹ã¤ããããããã®ä¸¡ã¨ãã¸ãå¤å®ãâ¦
#if DEBUG emulatorToolStripMenuItem.Visible = true; #else emulatorToolStripMenuItem.Visible = false; #endif
ããã©ã«ãã§ãããã§ãããããã«ãã section2ãç³ãã§ã function $(id){ return document.getElementById(id); } function hideSec(id){ var elm = $(id); switch(elm.style.display){ case "block": case "": elm.style.display = "none"; break; case â¦
var hideCache = new Object(); function $(id){ return document.getElementById(id); } function hideSec(id){ var elm = $(id); if(hideCache[id] == undefined || hideCache[id] == null){ hideCache[id] = elm.innerHTML; elm.innerHTML = ""; } else{ â¦
var cam:Camera = Camera.getCamera(); ããã¨æ¨æºã®ã«ã¡ã©ãé¸ã°ããã Camera.getCamera("0"); ã¨ããã¨0çªç®ã®ã«ã¡ã©ã使ãã ãªããã¤ã³ããã¯ã¹ãstringã§æ¸¡ããè¬ä»æ§ã trace(Camera.names[0]); ã§0çªç®ã®ã«ã¡ã©ã®ååãããããããã¯stringã§è¿ã£ã¦â¦