ã¯ã¦ãªãã¤ã¢ãªã¼ãã¤ã³ãã¼ããã¦ã¿ã
ãªãã»ã©ãªã¼
ã¯ã¦ãªããã°ãã¹ã
ä¸éãã®æ©è½ãæããããã°ã·ã¹ãã ãèªåã§æ¸ãã¦ã¿ããã ãã©ããã£ã±ããã°ã¨ãæ¢åã®ãã®ä½¿ãæ¹ã楽ã ãã¯ã¦ãªããã°ä½¿ã£ã¦ã¿ãã
Git for Windowsã§plink(putty)ã使ã
Windowsç°å¢ã§CUIã®Gitã使ããªãGit for Windowsã¨PuTTYãçµã¿åããã¦ä½¿ãã®ããããããã§ãããªããããã¾ãæ¥æ¬èªæ å ±ãç¡ãæ°ãããã®ã§é©å½ã«æ¸ãã¦ããã¾ãã
両æ¹ãã¤ã³ã¹ãã¼ã«ãã¦ãã¾ãã¯ç°å¢å¤æ°GIT_SSHã«plink.exeã¸ã®ãã¹ãç»é²ãã¦ããã*1
å ¬ééµæå·æ¹å¼ã§éä¿¡ããã«ã¯
ã©ã£ã¡ãã
puttyã«æ¥ç¶å ã®ãã¹ãæ å ±ãç»é²ãã
putty.exeããæ¥ç¶å ãè¨å®ãã¦ãããä¾ãã°æ¥ç¶å github.comããã°ã¤ã³ågitããã¨ç§å¯éµãgithubã¨ããã»ãã·ã§ã³åã§ä¿åãã¦ããã¨ä»¥ä¸ã®ããã«æ¥ç¶å ãæå®ã§ããã
$ git clone github:hogelog/private-gyazo-kit.git
pageantã«éµãç»é²ãã
pageantãèµ·åãã¦ç§å¯éµã追å ãã¦ããã¨ä»¥ä¸ã®ããã«ãã¦æ¥ç¶å ãæå®ã§ããã
$ git clone [email protected]:hogelog/private-gyazo-kit.git
å人çã«ã¯pageantèµ·åãã¦ããå¿ è¦ãªãã®ã§ãã¹ãæ å ±ãç»é²ãã¦ããæ¹æ³ã好ã¿ã§ãã
Arduino UNOãåãã¦è§¦ã£ã¦ã¿ãæ¥è¨
é»åå·¥ä½ãããã¤ã³ã³ãªããã®ã¯ã»ã¼è§¦ã£ããã¨ããªãã®ã ãåãã¦Arduino UNOãªããã®ãããã£ã¦ã¿ããã¨æããåæç¥èãå ¨ããªããå ¨ããªãã®ã§ã¨ããããArduino公式サイトãè¦ãã¨Getting Startedãªãè¯ãæ°ãªæç®ãããã®ã§ããã«æ²¿ã£ã¦é²ãã¦ã¿ãããã®ãã¥ã¼ããªã¢ã«èªèº«ãCC3.0ã§å ¬éãã¦ãããArduinoã®äººéã¯åããªã¼ã
ã¤ã³ã¹ãã¼ã«
ä¸å¯§ã«æ¸ãã¦ãã£ãã®ã§ããã«æ²¿ã£ã¦ãµã¯ãã¨ã
åãã¦ã®Arduinoããã°ã©ã
Exampleã®ä¸ã«ãã£ããLEDãç¹æ» ãããããã°ã©ã ã
/* Blink Turns on an LED on for one second, then off for one second, repeatedly. This example code is in the public domain. */ void setup() { // initialize the digital pin as an output. // Pin 13 has an LED connected on most Arduino boards: pinMode(13, OUTPUT); } void loop() { digitalWrite(13, HIGH); // set the LED on delay(1000); // wait for a second digitalWrite(13, LOW); // set the LED off delay(1000); // wait for a second }
åããã¨ãArduino UNOãã¼ãã«ã®ã£ã¦ããLEDã®ä¸ã¤ã1ç§ééãããã§ç¹æ»
ã
LEDã«ç¹ãã£ã¦ãããã³13ãåºåãã³ã¨ãã¦èªèãHIGHãæ¸ããã¨ãã«LEDãç¹ç¯ãLOWãæ¸ãã¨æ¶ç¯ããã®ã ããã
ããã¤ãæµ®ããã çåã¨åç
- ãã³13ãLEDã«æ¥ç¶ããã¦ããã¨ãã©ãã§ãããï¼
- Arduinoã®ãµã¤ãã«Arduino UNOã®ã¹ããã¯ã¨ãä¹ã£ã¦ãããèªãã¨è¯ã â http://arduino.cc/en/Main/arduinoBoardUno
LED: 13. There is a built-in LED connected to digital pin 13. When the pin is HIGH value, the LED is on, when the pin is LOW, it's off.
- digitalWriteãããããã«ã¯analogWriteãããï¼
- ãã â http://arduino.cc/en/Reference/AnalogWrite
- digitalã¯HIGHãLOWã®2å¤ãanalogã¯0ãã255ã¾ã§ã®é£ç¶æ§ã®ããå¤ãåããããã
- Arduino 1.0ã®éçºç°å¢ããæ軽æã¯è¯ãã¨ãã¦ããã¾ãè¯ããã®ã§ã¯ãªãã
- This page has been movedã«æ²¿ã£ã¦é²ããã¨Eclipseã§Arduinoéçºç°å¢ãæ§ç¯ãããã¨ãã§ããã
- Arduino Playground - Eclipseã®è¨è¿°ã¯å¤ãã
- âã¨ãããããããªã³ã¼ããå®éã«Eclipseã§æ¸ãã¦åããã¦ã¿ã
#include <Arduino.h> int main() { init(); setup(); for (;;) loop(); return 0; } void setup() { pinMode(13, OUTPUT); pinMode(12, OUTPUT); } void loop() { digitalWrite(12, LOW); digitalWrite(13, HIGH); delay(1000); digitalWrite(12, HIGH); digitalWrite(13, LOW); delay(1000); }
12,13ãã³ã1ç§ééã§äº¤äºã«HIGHã«ãããLEDã¨ãç¹ãã¨äº¤äºã«ç¹æ» ã
ãããªãããªã§Arduinoããã°ã©ãã³ã°ãã¦ãã¾ããã4æ9æ¥ã«ãªã28æ³ã«ãªã£ã¦ãã¾ããããããã30代ã ãªã¼ã
Facebookãã£ããã家åºã®å ±éã³ãã¥ãã±ã¼ã·ã§ã³ã¤ã³ãã©ã«æ¡ç¨ããã
奥ããã¨ã®ã³ãã¥ãã±ã¼ã·ã§ã³ã«ã¯facebookãã£ãããæ´»ç¨ãã¦ãã¾ããã¡ã¼ã«ã¯ããã¨ãã®é度ãé ããSMSã¨ãã¯ç¹å®ã®ç°å¢ã«ä¾åãã¦ãããã¨ããããã§ããã©ã¦ã¶ããã使ãããå種å°ç¨ã¯ã©ã¤ã¢ã³ãããããããªã¤ã³ãã©ãæ¡ç¨ã以åã¯Googleãã¼ã¯ã使ã£ã¦ããã®ã§ãããæè¿Facebookãã£ããã«ç§»è¡ã
XMPP対å¿ã¡ãã»ã³ã¸ã£ã¼
facebookãã£ããã¯XMPPãå©ç¨ãã¦ããã®ã§ãXMPP対å¿ãã¦ããã¡ãã»ã³ã¸ã£ã¼ã¢ããªãªãã ãããå©ç¨ã§ãã¾ããã¾ãè²ã ããããã§ããã©
- Windows
- http://pandion.im/
- Mac
- iChat
- iPad
- iTunes の App Store で配信中の iPhone、iPod touch、iPad 用 imo ビデオ通話&テキスト
ãããªæãã®ãã®ã使ã£ã¦ãã¾ããçµè·¯ãå¤ããæ¤ç´¢ã¨ããã¦ã§ããããµã¯ãã¨ã§ããã®ã§ä¾¿å©ã§ãã
XMPPãã使ãã¨ã°ã«ã¼ããã£ãããæ±ããªãï¼ãããããã使ããã®ãããããªããã©ç¥ããªãï¼ã®ã ããã¡ãã£ã¨ä¸ä¾¿ãªã¨ããããªãããã¡ã¼ã«ãªãã¦ã·ã¹ãã æ¨ã¦ã¾ãããã
Javaã§Kestrelã¯ã©ã¤ã¢ã³ãsimple-kestrel-clientãæ¸ãã¦ã¿ãã
hogelog/simple-kestrel-client · GitHub
spymemcachedã¯Kestrelã§æ±ãã¨ãªããã©ãããã¾ããªããxmemcachedã¯Kestrel対å¿ããã¦ããã¨ã¯æ¸ãã¦ãããã©ããªãã ãã©ãããã£ã±ãpeekã¨ãtimeoutã¨ããè¨å®ããã¨ã¡ããã¨åããªããã¨ããããé©å½ã«æ¸ããªãã£ã¦ã¿ããdeleteã¨ãä»ã«ãè²ã æ¸ãã¦ãªããè²ã é©å½ã
ãããªæããæ®éã«ä½¿ãããmemcachedã¯ã©ã¤ã¢ã³ããkestrelã¯ã©ã¤ã¢ã³ãã¨ãã¦ä½¿ãã®ã¯æªæãªã®ããªã¼ã
public class SimpleKestrelClientTest { @Test public void set_peek_get_peektimeout_gettimeout() throws Exception { Socket socket = new Socket("127.0.0.1", 22133); SimpleKestrelClient client = new SimpleKestrelClient(socket); client.set("hoge", "hoge\r\nhoge"); assertThat(client.peek("hoge"), is("hoge\r\nhoge")); assertThat(client.get("hoge"), is("hoge\r\nhoge")); assertThat(client.get("hoge"), is(nullValue())); new Thread(){ @Override public void run() { try { Socket socket = new Socket("127.0.0.1", 22133); SimpleKestrelClient client = new SimpleKestrelClient(socket); Thread.sleep(1000); client.set("hoge", "hogefuga"); Thread.sleep(1000); client.set("hoge", "hogemoge"); } catch (Exception e) { e.printStackTrace(); } } }.start(); assertThat(client.peek("hoge", 5000), is("hogefuga")); assertThat(client.get("hoge"), is("hogefuga")); assertThat(client.get("hoge"), is(nullValue())); assertThat(client.get("hoge", 5000), is("hogemoge")); } }
xmemcachedã§kestrelãå©ãã¨ãªããå¤ãªä»¶
å²ã¨ããã®ããããªãæåãããã
@Test public void xmemcached_set_peek_get_peektimeout_gettimeout() throws Exception { final XMemcachedClientBuilder builder = new XMemcachedClientBuilder(AddrUtil.getAddresses("127.0.0.1:22133")); builder.setCommandFactory(new KestrelCommandFactory()); SerializingTranscoder transcoder = new SerializingTranscoder(); transcoder.setCharset("UTF-8"); builder.setTranscoder(transcoder); final MemcachedClient client = builder.build(); client.setOpTimeout(5000); client.set("moge", 0, "aaaaa"); client.set("hoge", 0, "hoge\r\nhoge"); assertThat(String.class.cast(client.get("hoge/peek")), is("hoge\r\nhoge")); assertThat(String.class.cast(client.get("hoge")), is("hoge\r\nhoge")); assertThat(String.class.cast(client.get("hoge")), is(nullValue())); new Thread(){ @Override public void run() { try { Thread.sleep(1000); client.set("hoge", 0, "hogefuga"); Thread.sleep(1000); client.get("moge/peek"); client.set("hoge", 0, "hogemoge"); } catch (Exception e) { e.printStackTrace(); } } }.start(); assertThat(String.class.cast(client.get("hoge/peek/t=5000")), is("hogefuga")); assertThat(String.class.cast(client.get("hoge")), is("hogefuga")); assertThat(String.class.cast(client.get("hoge")), is(nullValue())); assertThat(String.class.cast(client.get("hoge/t=5000")), is("hogemoge")); // ä½æ ããããã§mogeã«ã»ãããã"aaaaa"ã¨ããæååãå¾ããã }
追ãæ°ãããªãã®ã§é©å½ã«èªåã§æ¸ãã¦ã¿ã¾ããã¨ãã
Windowsç°å¢ã®Androidéçºã§ä½¿ãddms.batã§ç¡æå³ãªã³ãã³ãããã³ããï¼é»ãã¦ã£ã³ãã¦ï¼ã表示ããã¦ãã¾ãã
WSHçµç±ã§èµ·åãã¦è¡¨ç¤ºãããªãããã«ããã®ã楽ãddms.batã«éããªãã
ddms.jsãªã©ã¨ãã¦ã¹ã¿ã¼ãã¡ãã¥ã¼ãªããªããªãé©å½ãªã¨ããã«ç½®ãã¦ãã®ã¹ã¯ãªããçµç±ã§èµ·åããã¨è¯ãã
var shell = WScript.CreateObject("WScript.Shell"); shell.Run("C:/Android/android-sdk/tools/ddms.bat", 0);
å½ç¶ã ãddms.batã®å ´æã¯ã¤ã³ã¹ãã¼ã«å ã«ããå¤ããã