This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CMU Sphinx | |
http://cmusphinx.sourceforge.net/wiki/tutorialam | |
http://www.speech.cs.cmu.edu/sphinxman/scriptman1.html | |
PocketSphinx | |
http://ghatage.com/2012/12/voice-to-text-in-linux-using-pocketsphinx/ | |
http://ghatage.com/2012/12/make-pocketsphinx-recognize-new-words/ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ Recorder | |
- http://blog.haurus.com/?p=309 (Recording Audio with PhoneGap) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Đĩa cài windows 7 (699M). Sau khi cài đặt dung lượng chiếm 2.75G | |
http://download.easyvn.net/phan-mem/dia-cai-dat/windows-7-ultimate.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Create user/schema | |
create user user_name identified by p@ssword; | |
-- Grant privileges | |
grant all privileges to user_name; | |
-- [[[Grant Privileges on Tables]]] | |
grant [privileges] on object_tables_views to user; | |
grant execute on object_procedures to user; | |
grant execute on object_procedures to public; | |
-- Example | |
grant select, insert, update, delete, references, alter, index on suppliers_obj to smithj_user; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Step 1 | |
hostname [new_host_name] | |
#Step 2: Change network | |
vi /etc/sysconfig/network | |
#Edit HOSTNAME = [new_host_name] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Once upon a time I was a very avid desktop user of Ubuntu Linux. As a software developer, I would usually need the standard build tools installed on my machine. | |
Installing build tools in Debian/Ubuntu | |
In Debian/Ubuntu, you can install the typical build tools by installing the package build-essential, which is just a pseudo-package that downloads all the popular development packages: | |
# apt-get install build-essential | |
Installing build tools in CentOS | |
Since I prefer CentOS as my server platform, I also occasionally need to install packages using yum. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[vi@Manlab java_sdk_1.6.0]$ more ~/.bash_profile | |
# .bash_profile | |
# Get the aliases and functions | |
if [ -f ~/.bashrc ]; then | |
. ~/.bashrc | |
fi | |
# User specific environment and startup programs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
mkdir -p alaw | |
mkdir -p ulaw | |
mkdir -p gsm | |
mkdir -p wav | |
mkdir -p sln16 | |
mkdir -p g722 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Output to Console | |
# All logging will be redirected to your console. | |
# Specific properties: PropertyConfigurator.configure("/log4j.properties"); | |
# Root logger option | |
log4j.rootLogger=INFO, stdout | |
# Direct log messages to stdout | |
log4j.appender.stdout=org.apache.log4j.ConsoleAppender | |
log4j.appender.stdout.Target=System.out |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i input.mp3 -acodec pcm_s16le -ac 1 -ar 16000 output.wav | |
# To convert all mp3 files in a directory in Linux: | |
for f in *.mp3; do ffmpeg -i "$f" -acodec pcm_s16le -ac 1 -ar 16000 "${f%.mp3}.wav"; done | |
# Or Windows: | |
for /r %i in (*) do ffmpeg -i %i -acodec pcm_s16le -ac 1 -ar 16000 %i.wav |