2015-01-08 聚會手記

上一週 || 下一週

* * 2014 尾牙日期與餐廳,投票中 * *

https://hackingthursday.hackpad.com/2014-H4--vJwpj3HtRCJ

lcamel

Akka - Java 與 Scala 語言的非同步處理框架
http://akka.io/

在 Erlang 裏已內建 Actor Model
Concurrency in Erlang & Scala: The Actor Model | Ruben Vermeersch (rubenv) - The Life of RubenV
https://savanne.be/articles/concurrency-in-erlang-scala/


用 dstat 來測量 MySQL 的效能

Mat : 也可以用 collectd + MySQL plugin
Plugin:MySQL - collectd Wiki
https://collectd.org/wiki/index.php/Plugin:MySQL

blue119

Pidgin Plugin for Line Naver that installed in Debian testing

// Build Procedure

# apt-get install bison libboost-dev libboost-program-options-dev  libboost-test-dev libevent-dev libcommons-lang-java php5-dev python-dev  python-twisted libbit-vector-perl php5-dev php5-cli libglib2.0-dev  libpurple-dev build-essential

// build thrift

$ wget https://dist.apache.org/repos/dist/release/thrift/0.9.1/thrift-0.9.1.tar.gz && tar xzvf thrift-0.9.1.tar.gz
$ cd thrift-0.9.1 && ./configure --without-php_extension && make
$ cp test/cpp/*.o test/cpp/.libs/ && make && sudo make install
$ sudo ln -s /usr/local/lib/libthrift-0.9.1.so /usr/lib/libthrift-0.9.1.so

// build purple-line

$ git clone http://altrepo.eu/git/line-protocol.git
$ git clone http://altrepo.eu/git/purple-line.git
$ cp line-protocol/line_main.thrift purple-line/ && cp line-protocol/line.thrift purple-line/
$ cd purple-line && make && make install

Reference
https://wiki.debian.org/Pidgin
http://altrepo.eu/git/purple-line.git/
http://altrepo.eu/git/line-protocol.git/
http://www.cnblogs.com/q191201771/p/3878682.html
http://blog.xuite.net/happyman/tips/259538726-openSUSE+pigdin+%E4%BD%BF%E7%94%A8+Naver+Line
https://github.com/MilesChou/linux-install-sh/blob/master/purple-line.sh

Amos

LineAPI4J,是利用thrift來連接LINE的API界面,可以透過本API登入LINE帳號並傳送訊息,搜尋並加入好友或者傳送貼圖。
http://cslinmiso.github.io/2014/11/26/LINE_API/

peter

用 vundle 管理 vim 外掛
http://lepture.com/en/2012/vundle-vs-pathogen

// 下載 vundle

# apt-get install git curl
$ git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle

// vundle 設定,保持在 vimrc 最開頭

$ vi .vimrc
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()

// 加入外掛與外掛設定

$ vi .vimrc
Bundle 'majutsushi/tagbar'

nmap <F8> :TagbarToggle<CR>

let g:tagbar_type_php  = {
  \ 'ctagstype' : 'php',
  \ 'kinds'     : [
      \ 'i:interfaces',
      \ 'c:classes',
      \ 'd:constant definitions',
      \ 'f:functions',
      \ 'j:javascript functions:1'
  \ ]
\ }

// 安裝外掛

$ vim
:BundleInstall!

yen

Arduino vs. PureData made easy
http://www.lourensrozema.nl/index.php/arduino_puredata.inc

yan

jQuery Howto: 4 jQuery Cross-Domain AJAX Request methods
http://jquery-howto.blogspot.tw/2013/09/jquery-cross-domain-ajax-request.html#cors
Cross-Domain requests in Javascript | jvaneyck
http://jvaneyck.wordpress.com/2014/01/07/cross-domain-requests-in-javascript/

Mechanism Supported HTTP verbs Server-side modifications required? Remarks
JSONP GET Yes
CORS All Yes
Setting up a local proxy All Yes
window.postMessage GET No post to another html page (a javascript listener needed)

Mat

phpSysInfo Demo
http://phpsysinfo.sourceforge.net/phpsysinfo/index.php?disp=dynamic

phpSysInfo JSON API
http://phpsysinfo.sourceforge.net/phpsysinfo/xml.php?plugin=complete&json

phpSysInfo XML API
http://phpsysinfo.sourceforge.net/phpsysinfo/xml.php?plugin=complete

phpSysInfo Linux Class Source Code
https://raw.githubusercontent.com/phpsysinfo/phpsysinfo/master/includes/os/class.Linux.inc.php

https://thrift.apache.org/

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License