- Jun 03 Tue 2014 13:53
-
Install liu(無蝦米) in Ubuntu 12.04
- Apr 29 Tue 2014 10:10
-
How to enable bluetooth earphone on Ubuntu
The way to solve that ubuntu 13.10 cannot connect to A2DP BT devices...
bluez version: bluez [bluez (4.101-0ubuntu8b1)
pulseaudio version: 4.0
In /etc/bluetooth/audio.conf:
// add Enable=Source which located on the top of audio.conf
[General]
Enable=Source
// modify the value of HFP from true to false
HFP=false
// uncomment the following three lines which located
// in the bottom of audio.conf
[A2DP]
SBCSources=1
MPEG12Sources=0
If it's still not working, try below...
// Test by:
pactl list | grep -i module-bluetooth-discover
// If it's empty, load via below command
pactl load-module module-bluetooth-discover
Pulse audio will then (hopefully) recognize the device
Reference: https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1199059
bluez version: bluez [bluez (4.101-0ubuntu8b1)
pulseaudio version: 4.0
In /etc/bluetooth/audio.conf:
// add Enable=Source which located on the top of audio.conf
[General]
Enable=Source
// modify the value of HFP from true to false
HFP=false
// uncomment the following three lines which located
// in the bottom of audio.conf
[A2DP]
SBCSources=1
MPEG12Sources=0
If it's still not working, try below...
// Test by:
pactl list | grep -i module-bluetooth-discover
// If it's empty, load via below command
pactl load-module module-bluetooth-discover
Pulse audio will then (hopefully) recognize the device
Reference: https://bugs.launchpad.net/ubuntu/+source/bluez/+bug/1199059
- Apr 28 Mon 2014 15:22
-
Install Liu(無蝦米) with Ubuntu 12.04

sudo apt-get install scim
sudo apt-get install scim-tables-zh
download Liu.bin from here
http://km2.iiietc.ncu.edu.tw/xms/read_attach.php?id=1347
- Jan 07 Tue 2014 09:57
-
Python Socket Programming (Python3)
Python Socket Programming (Python3)
# server.py
from socket import *
# all available on host
myHost = ''
myPort = 50007
# create a TCP/IP socket object
sockobj = socket(AF_INET, SOCK_STREAM)
# Bind socket object to host/port
sockobj.bind((myHost, myPort))
# Allow 5 pending connects
sockobj.listen(5)
# server.py
from socket import *
# all available on host
myHost = ''
myPort = 50007
# create a TCP/IP socket object
sockobj = socket(AF_INET, SOCK_STREAM)
# Bind socket object to host/port
sockobj.bind((myHost, myPort))
# Allow 5 pending connects
sockobj.listen(5)
- Dec 26 Thu 2013 17:34
-
HBase with Coprocessors

The two kinds of coprocessors
1. observers: allow the cluster to behave differently during normal client operations.
2. endpoints: allow you to extend the cluster's capabilities, exposing new operations to client applications.
Observers
How it works? That's take a look at the request lifecycle compares to the RegionObserver intercepted
1