2014-07-01ãã1ã¶æéã®è¨äºä¸è¦§
email ã¢ãã¬ã¹ã®ç¢ºèªã§ãã¼ã¹ãããã¨æãããã ã¡ã¼ã«ã¢ãã¬ã¹ ãè²¼ãä»ãããã¨æã£ããã»ã»ã»ã» ã¹ã¯ãªã¼ã³ã·ã§ãã 2014-07-31 20.38.36 ã©ããããã©ã¼ã èªåå ¥åã§ã¬ã³ã¡ã³ãããããã ããããï¼åå ¥åããæå³ã£ã¦ããã®ããªã ãã¼ã¹ããç¦æ¢ãã <element onPaste="alert('ãã¼ã¹ãç¦æ¢');return false;" .. ></element>â¦
Javaã§WEBãã¼ã¸åå¾ããããããããã·ãå¿ è¦ãªã®ãå¿ãã¦ã Java ã® URL ã使ã£ã¦Proxyçµç±ã§ãã¼ã¸åå¾ é常ã®URL.open URL url = new URL(page_url); URLConnection conn = url.openConnection(); Proxy çµç±ã® URL.open // URL url = new URL(page_url)â¦
Java 㧠wget ããã£ããã©ããªãã®ãèããããããã©ããããã ã£ãã ã©ãã¾ã§é·æã«ãªãã®ã試ãã«ãã£ã¦ã¿ã java 㧠ãããã¯ã¼ã¯ã®ãã¡ã¤ã«ãåå¾ WEB ãã¼ã¸ãåå¾ã㦠title è¦ç´ æãåºã import java.net.URL; import java.net.URLConnection; impâ¦
æå®ããè¡ãåé¤ãããã ãã¡ã¤ã«ãéãã®ããé¢åãããªãã§ããï¼ sed ã§ãã¡ã¤ã«ãç·¨é sed -i -e '10,10d' /path/to/file 10 è¡ç®ãæ¶ãã sed ã§ç°¡åã«ãã¡ã¤ã«ãç·¨é sed -i -e '15d' /Users/takuya/.ssh/known_hosts sed 㯠stream edior ã® ed æ¡â¦
RaspberryPi æ°ã«å ¥ã£ã¦ä½¿ã£ã¦ã¾ããDebianãå ¥ãã¦ã¾ããraspbian ã§ããã RaspberryPiãupstartæªå°å ¥ã ã£ãã®ã§ruby ã§initã¹ã¯ãªããä½ã£ã daemonsããæ軽 gem install daemons Process.daemonizeãããæ¨ä»ã«ããã¦daemonsããã±ã¼ã¸ã¯ä¸è¦ãã¨æã£â¦
ã¡ã¼ã«ã£ã¦ãéç¥ããåºãã®ã«é常ã«æ軽ã§ä¾¿å©ã§ãããã ruby ã§ã¡ã¼ã«éä¿¡ããã¨ãã«Gmailã使ã starttls_auto ã¨ã authentication, ãã¨ããã¹ã¯ã¼ããå ¥åããã require 'mail' options = { :address => "smtp.gmail.com", :port => 587, :user_nameâ¦
ã¡ã¼ã«ã§æ·»ä»ãã¡ã¤ã«ãéãããã¨ãã add_file :filename => out_path, :content => File.read(my_file_path) ruby ã®mail ã使ã£ãããããªæãã #!/usr/bin/env ruby #coding:utf-8 exit unless ARGV.size == 1 my_file_path = ARGV.shift require 'maiâ¦
ruby ã§ã¡ã¼ã«éä¿¡ã§ãã ä¸çªã·ã³ãã«ãªã¡ã¼ã«éä¿¡ã®ä¾ãSTMPãµã¼ãã¼ã¯localhost ãã¼ãã¯25 #!/usr/bin/env ruby #coding:utf-8 require 'mail' options = { :address => "localhost", :port => 25, :authentication => 'plain', :enable_starttls_auto =â¦
php ã® curl ãæ±ããããã«ãªã£ãã®ã§ cURLã®é¢æ°ã便å©ã ã£ãã®ã§ã PayPalã® invocing ã管çããAPIã®å¼ã³åºãå®è£ ãä½ã£ãã phpã®curl ã©ã¤ãã©ãªã®ä½¿ãæ¹ã®HTTPå®ä¾ãã£ã±ã - ãããã°ã§ï¼ paypal invocing php gist0401494d266b35450ce4 使ãæ¹ ã¾â¦
cURL ã©ã¤ãã©ãª php ã«ã¯ cURL ã©ã¤ãã©ãª ããã£ã¦ããã®Cã©ã¤ãã©ãªã®ã©ããã¼ã使ããã¨ã§ã»ã¨ãã©ã®ãããã¯ã¼ã¯ãªã¯ã¨ã¹ããæ±ããã¨ãåºæ¥ãã cURLã®æ¬å®¶ã¯ http://curl.haxx.se/ ã§ãããã§libcurl ãä¸å¼æºåãã¦Cè¨èªãããããã¯ã¼ã¯ãªã¯ã¨ã¹ãâ¦
å¤ã«ãªã£ã¦æ¸©åº¦ãå¿é ã«ãªã£ã Raspberry pi ã«ã¢ã¯ã»ã¹åºæ¥ãªããã¨ããã£ã¦ããªã¼ãºããã¨æãã 温度ã調ã¹ãå¿ è¦ãããããã ã takuya@raspberrypi:~$ sudo /opt/vc/bin/vcgencmd measure_temp temp=57.3'C raspi-ubuntuã®å ´å sudo apt install librasâ¦
ãã¼ããéãã¦ãã ä¹ ãã¶ãã«RaspberryPiãèµ·åãããã空ããè¦ãã®ãªããã¼ããéãã¦ãã®ã§ãç¦ã£ã takuya@raspberrypi:~$ nmap localhost Starting Nmap 6.00 ( http://nmap.org ) at 2014-07-27 02:01 JST Nmap scan report for localhost (127.0.0.â¦
Mac ã®ã³ãã³ãã§å¨å²ã®ç¡ç·LANã®é»æ³¢ç¶æ³ãã¿ãããSSIDãã¨ã®ãã£ã³ãã«ããã§ãã¯ããã®ã«ã¯ãã³ãã³ããä¾¿å© airport -s airpot ã³ãã³ãã¯ã¡ãã£ã¨æ·±ãã¨ããã«ããã /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resourâ¦
OSX ã®ã³ãã³ãã¯ãªãã·ã§ã³ã®å¾ä»ãåºæ¥ãªãã ã¾ããå½ããåã¨ããã°å½ããåãªãã ãã©ã takuya@rena:~/Desktop$ /bin/ls / -l ls: -l: No such file or directory /: Applications System bin etc net sbin var Library Users cores home opt tmp Netwâ¦
ãã¡ã¤ã«ã¢ãããã¼ãã®ãã¹ããé¢åã«ãªã£ãã curl curl http://takuya.example.com/~takuya/upload/info -F name=@path/to/file ã¯ããããã ãã楽ã¡ãã cURL ã¯ãã£ã±ã便å©ã ã¡ãªã¿ã«ããã©ã¼ã æ å ±ãããããæ å ±ã¯ãä¸ç·ã«éä¿¡ã§ããã ã»ãã·ã§ã³â¦
SCPã§è»¢éãããã¡ã¤ã«ã®ãã¼ããã·ã§ã³ ãªãããå ãµã¼ãã¼ã®ãã¼ããã·ã§ã³è¨å®ãç¶æãããããã takuya@rena:~/Desktop$ ls -alt config.ini ----------+ 1 takuya staff 41 7 24 02:56 config.ini ã¨ãã§ããªããã¼ããã·ã§ã³ã®ãã¡ã¤ã«ãåºæ¥ã¦ãã Sâ¦
ããã¼ããã³ãã«ã¼ã¿ã¼ï¼ï¼ãæ°ããè²·ã£ãã®ã§éåº¦æ¸¬å® é度測å®ãµã¤ãã«é ¼ãã®ãè¸ããªãã®ã§ãã«ã¼ã¿ã¼ãããµã¤ãºæå®ã§DLããã°ããã¨ãããã¨ã§ã ãµã¤ãºæå®ã®ãã¼ã¿ããµã¼ãã¼ã«ä½ã dd if=/dev/zero of=test_1M.img bs=1024M count=1 curl ã§ã¢ã¯ã»â¦
æ¢åã®ã¬ãã¸ããªãããã¨ãã¦ã git commit -m "XXX" git add . git commit -m "XXX" ãã®ã¬ãã¸ããªããgithub ã«ãéä¿¡ããã remote add git remote add my_origin [email protected]:$USERNAME/$REPOSITORY_NAME.git github ã®ã¬ãã¸ããªã空ã£ã½ãªã git â¦
dig ã³ãã³ã㧠DNSãå¼ããæã®ãã£ãã·ã¥æé ; <<>> DiG 9.8.3-P1 <<>> XXX.noip.me @192.168.1.1 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6108 ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORIâ¦
浸éãã㪠http://www.e-ontap.com/dns/propagation
èªå® ã®ã°ãã¼ãã«IPãè¡æ¹ä¸æã«ãªãã ãããããeoå ã®ãµã¼ãã¹ãã¡ãã£ã¨ããããã®ã¨ãæãã¦ã«ã¼ã¿ã¼ããããã³ã°ã¢ããããã®ã§ãã°ãã¼ãã«IPãè¡æ¹ä¸æã«ãªããã¨ãå¤ãã ã«ã¼ã¿ã¼ã¯èªååèµ·åããã¯ããªãã ãã©ãèªååèµ·åãããããã»ã»ã» ã¨ãâ¦
Google ä¸è¾ºåãªä¿¡è ããããã¾ã好ãã§ã¯ãªãTakuyaã§ããããã°ãã¯ã ã¡ã¼ã«ã¨ã¤ãªã¢ã¹ã§ã¹ãã é¿ã ã¡ã¼ã«ã¨ã¤ãªã¢ã¹ã使ã£ã¦ã¹ãã é¿ããã§ãã èªåã®å人æ å ±ãã©ãããæµåºãããã丸ãããã«ãªããGmailã®æ©è½ãåãï¼å人æ å ±æ¼æ´©å¯¾çã¨ãã¦ãåå¥â¦
Ubuntu ã Debian ã®Gnomeæ¨æºæ·»ä»ã®ãã£ã¹ã¯ã¦ã¼ãã£ãªã㣠ãã£ã¹ã¯ã¦ã¼ãã£ãªãã£ãã³ãã³ãããèµ·åããã°ãX転éã§èµ·åã§ããã takuya@atom:~$ palimpsest X転é çµç±ã§ èµ·åãã¦ã¿ã ## SSH ãã°ã¤ã³ ssh -X my_server ## ãã°ã¤ã³å¾ palimpsest èµ·åâ¦
require ããæã®ããã±ã¼ã¸ãå®ä½ã©ãã«ãããç¥ãããæãããã¾ãã ãã¨ãã°ãã©ã¤ãã©ãªã®æ¬ä½ãã¹ãç¥ããã¨ã§manual ããµã³ãã«ã«ã¢ã¯ã»ãããã¨ãå¯è½ã ããã§ãã Gemã®ãã¡ã¤ã«ã®å ´æã調ã¹ããã åå¾æ¹æ³ Gem::Specification.find_by_path( "gemâ¦
ï¼ã¤ã®ç»åã®ééãæ¢ããããã ç°¡åã«ããã¨ããã°ãç»åãä¸è´ãããæ¢ãã°ããããã§ããã¤ããªãï¼ãã¯ã»ã«ãã¤ä¸è´ããããããããã§ãããããããªé¢åãªãã¨ãã£ã¦ãããªãããããOpenCVã§ç»åèªèï¼ ã¡ãã£ã¨ãã¾ã£ã¦ãã£ã¨ç°¡åã«ç»åãéãåãâ¦
ã¤ãªã³ã·ã§ããã³ã°ã¢ã¼ã«ã§ãé§è»æéãåããã¦ã¤ã©ãã¨ããtakuyaã§ããããã°ã㯠ãè²·ãç©ããããé§è»æéãç¡æ ãè²·ãç©ãããé§è»æéãç¡æãªã®ã§ãããããã¬ã¨ã¤ãªã³ã§ããããï¼æéç¡æã ããã¨æ²¹æãã¦ãããæ»å¨æéãï¼æéè¶ ãã¦ããä»æ¹â¦
PDFã®ãã¼ã¸ç´ãªã³ã¯ãããã¨ãåºæ¥ã http://example.com/hoge.pdf#page=2 ã¨ã <a href="example.pdf#page=10" >ï¼ï¼ãã¼ã¸ç®</a> é»åæ¸ç±ãªã¼ãã§ä½¿ãããã WEBç¨ ã«ã¿ãã°é²è¦§ã½ããã¨ãããããã£ããã ã ææµè¡ã£ããWEBç¨ã®ã«ã¿ãã°é²è¦§ã½ãããããã©ãã·ã¥ã§ãã¼ã¸ããããããããªâ¦
ãã¿ãã®ãªã¼ããã£ã¼ã¸æ©è½ã«ã¤ã㦠ãã¿ãã«ã¯ãªã¼ããã£ã¼ã¸æ©è½ããã£ã¦ä¾¿å©ã ãã©ãæãããã«ä½¿ããªãå ´åãããã ãªã¼ããã£ã¼ã¸ããéé¡ã®è¡æ¹ã¨ä½¿ãéã¯ãJRã®ãã¨ããã«ãã使ããªãã ç²¾ç®æ©ã§ç²¾ç®ã«ä½¿ããã¨ãé£ããã ååï¼ ãã¿ãã®ãã¹ãã»â¦
CakePHP ãfuelPHP ã¨ã Litiumuã¨ã symfony ã¨ã zendFrameworkã¨ããããå ¨é¨å ¥ãã®PHPãã¬ã¼ã ã¯ã¼ã¯ã¯è²ã ã¨é¢åã ãããæ¹è¦ããã®ãé¢åã ããã¶ã£ã¡ããPHPã¨ãjsonè¿ãã ãã§ãããã ããã·ã³ãã«ãªã¢ãã»ãããªã£ã¦ãã¨ã§ Slim ãæç¨ãã¦ãã¾ããâ¦
composer 便å©ã ã£ã Composer ã便å©ã§ãã php ã® autoload ç³»ã®æ©è½ãä¸æã«ä½¿ã£ã¦ãããã®ã§ãã³ã³ãã¼ãã³ãã®ç®¡çãã¨ã¦ã楽ã§ãã composer ã便å©ãªã®ã§ãããã±ã¼ã¸ç®¡çã丸æããããã¨ã«ããã ããã«ã§ãã Composer ã®ã¤ã³ã¹ãã¼ã« composer ãâ¦