Linux ã«ã¼ãã«èªç
git clone git://github.com/RobertCNelson/linux-dev.git; cd linux-dev ./build_kernel.sh vi system.sh # MMC=/dev/sddãâmicroSDã®ãããã¯ããã¤ã¹ãç°å¢ã«ãã£ã¦é©å®ããã dd if=/dev/sdd of=bkup bs=1M # ä¸å¿ããã¯ã¢ãã ./tools/install_kernel.sh
ãã£ãã
BeagleBone Blackã§éã¶
FPGAãããµã¼ã®ã³ã³ãããã©ãããããæ©ãã æ«ããã®ãã¼ããè¦ã¤ããã®ã§è©¦ãã¦ã¿ããã¨ã«ãã¾ãLinuxããã¨æã£ããã©ãèµ·å10ç§ãããã®ã§èããããããªã£ã¦ããã®ã¨ããããã以åæ¸ããã½ããã¦ã§ã¢ã®GUIé¨åããã®ã¾ã¾æµç¨ã§ããããããªãããªã¨ãããããã¿ãRaspberry Piã使ããã¨æã£ãã®ã ãã©ãæ ååºåãã³ã³ãã¼ãã³ããHDMIãªã®ã§ãLCDã¤ãªãããã¨ããã¨å¤æãã¼ããå¿ è¦ã«ãªã£ã¦ãã¾ãã®ã§æ念ãBeagleBone Blackã§ã¯ããã³ãããçµç±ã§LCDã³ã³ããã¼ã©ã®ä¿¡å·ãåºåããã¦ããã®ã§ãããããã®ã¾ã¾ä½¿ãäºå®ã
å ¥æ
Digikeyã«ã¦\4653 + éæã
http://www.digikey.jp/product-detail/ja/BB-BBLK-000/BB-BBLK-000-ND/3884456
Debian ã¤ã³ã¹ãã¼ã©ã®æºå
Angstromããããããã®ã§ãé©å½ãªmicroSD (空ã容é4GB以ä¸å¿ è¦ããã)ã«Debianãã¤ã³ã¹ãã¼ã«ãã¦ãããã¤ãããã¨ã«ãããRobertCNelsonæ°ã®ã¤ã¡ã¼ã¸ä½æãã¼ã«ã使ç¨ã
以ä¸ãé©å½ãªLinux PCä¸ã§å®è¡ã
git clone https://github.com/RobertCNelson/netinstall.git; cd netinstall
sudo apt-get install wget dosfstools parted u-boot-tools
sudo ./mk_mmc.sh --mmc /dev/sdd --dtb am335x-boneblack --distro wheezy-armhf --serial-mode linux-firmware
ã·ãªã¢ã«ã³ã³ã½ã¼ã«ã®æºå
ç§æUSBã·ãªã¢ã«ã¹ã¿ã³ãã使ã£ã¦é©å½ã«é ç·ãããJ1ã3.3Vã«å¿ããã«ãããããã¨ã
åçâ
debian netinstall
å ã»ã©ä½ã£ãmicroSDãBBBã«è£ çãã5V ACã¢ããã¿ãã¤ãªãã
ãªã³ãã¼ãNIC eth0ãåããªãã®ã§é©å½ãªUSB-NICãã¤ãã£ã¦ã¤ã³ã¹ãã¼ã«ããã¼ããã¼ãã¤ã³ã¹ãã¼ã«ã§ããªãè¦åãã§ããç¡è¦ãæå¤ã¨æéããããã2æéå¼·ã¿ãæ¹ãè¯ãã
èµ·å
ãã¤ã®éã«ãåèµ·åãã¦ããæ®éã«linux boxã¨ãã¦ä½¿ããããªã³ãã¼ãeth0ã使ããããã«ãªã£ã¦ãã
ããããã°ã¤ã³ã³ã³ã½ã¼ã«ã§ãã¾ã§ã«30ç§å¼±ããã£ã¦ããã§ããã©...!ããã§ã¯atomãã·ã³ã¨å ¨ãããããªãã®ã§ã¯...
ãã¸ã¿ã«ãããµã¼ãFPGAã§ã¤ãã試ã¿
æã¤ãã£ããã¸ã¿ã«ãããµã¼PCãæªã ã«ã¤ãã£ã¦ãã®ã ãã©ãããããã¨ä¸ä¾¿ãªã®ã§ãFPGAãã¼ã¹ã§ä»£ããã«ãªããã®ãä½ãã
å ±éï¼
- ã©ã¼ãã½ã¼ã¹ã¯PCãã²ã¼ã æ©ãªã®ã§ããã«ãã¸ã¿ã«å¦çããã
å¤æ´ï¼
- å
¥åã¯UDPçµç±ã ã£ãããä»åã¯å
å軸ãã¤ãã£ã¦ã¿ã
- ã¤ã¼ãµãããçµç±ã§é³å£°å ¥åãåãåããç¾è¡ã®ãã®ã便å©ãªãã ãã©ãå¤ãªç¬èªãããã³ã«ã使ã£ã¦ãã¾ã£ãã®ã§ä»®æ³ã«ã¼ãããã¯ãªã¼ãã£ãªãã©ã¤ããããããããããããã©ãã£ãã
- å å軸ãªãææã¡ã®ããã¤ã¹ã«ã ãããã¤ãã¦ãã楽ãªã¯ã
- Airplay/PulseAudio対å¿ã¯ãã®ãã¡ããããã©ãã³ã³ãã¼ã¿çµç±ã§ããã
- FPGAã§ä¿¡å·å¦çããã
- èµ·åæé/æ¶è²»é»ååæ¸
- ã¬ã¤ãã³ã·ã¯20ms以ä¸ã«ã¯ãªããã§ã¯
- å¶å¾¡ç¨ã³ã³ããã¼ã©ã¯BeagleBoard Blackã«ãããï¼FPGAã«ãããï¼
- èµ·åæéãå¿é ã ãªã¼
- BeagleBoard Blackã ã¨ä»ã®ç»é¢ã¨ãæµç¨ã§ããã
å ¥å:
- S/PDIFå 192kHz 24bit 2ch x 3
- RCA x1
- PCM1802 DAC
- ãã£ã¨å ¥åæ°å¢ããããããå¤åææã¡ã®Spartan3Eã®ãªã½ã¼ã¹çã«ä¹ããªã
- ãªããæä»ã«ããï¼
åºå:
- LINEåºå: RCA/ã¹ãã¬ãªãã
- ã¾ã¨ããªã¢ã³ãã¯å¤ä»ãã®æ¹é
ããããªãã§SPDIFå ¥åã®ãããµã¼ã£ã¦å£²ã£ã¦ãªããã§ãããã
cf. http://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q1219403807
ã³ããã¿ã«ãªã£ã
ãä»äºã®é½åãkouhei@ããã¿ã¼ãããã
portaudioãMountain Lionã§ãã«ããã
pa_stable_v19_20111121.tgz ã使ç¨ã
$ sed -ie 's/-Werror//g' configure.in $ autoconf $ ./configure --enable-mac-universal=no $ make && make install
ãã¨ã¯ããã辺åèï¼ http://portaudio.com/docs/v19-doxydocs/compile_mac_coreaudio.html
ãªãããã¹ãããã°ã©ã ã®ã³ã³ãã¤ã«ã³ã±ããã©ã.dylibã¯ã§ãã¦ãã£ã½ãã
Trying to complete prepared statement support in mysql2 gem
There is currently no prepared statement support in mysql2 gem. However, there is a discontinued work on it in a incomplete branch by Aaron Patterson. I am trying to take over the left over tasks.
TODO list:
- statement.c function names inconsistent w/ other .c files (e.g. result.c)
- rename to rb_mysql_stmt_***
- lack of test w/ bind params
- no encoding support
- Statement#each should be consistent w/ Client#each
- support Hash result w/ symbolizeKeys
- support asArray
- support !cast / castBool
- support streaming
ç°å¢æ§ç¯
jdkãå ¥ãã
sunjdkãããããã¨ãarchãªãaurã«ããã
sbtãããã
homebrewã¨ãaurãã
IntelliJ Ideaãããã
- sbt
- scala
- (IdeaVIM)
css/jsããªã½ã¼ã¹ã¨ãã¦jarã«åãè¾¼ããããã«ï¼
Settings->Compiler->Resource Patterns: ?*.js;?*.css
sbt-ideaã®è¨å®
ç¥
sbt gen-idea
projectã®è¨å®
gen-ideaã§.idea*ãçæããããã¸ã§ã¯ããèªã¿è¾¼ã
project jdkãè¨å®
Make Project
Run
- > ä¸åç®ã¯ãªããæ¼ããªãã®ã§ãMainãå ¥ã£ãã¯ã©ã¹ãå³ã¯ãªãã¯ãã¦å®è¡