In Asian language (for me, Thai) always suffer unreadable mp3 tag. Here is a workaround to solve it.
install python-mutagen with this command
sudo apt-get install python-mutagen
cd to directory that your files at
and use it with this command
find . -iname "*.mp3" -execdir mid3iconv -e [encode] {} \;
done.
you can choose encode that suit to your language here. For Thai user use ISO-8859-11
credit : ConvertingMP3Tags
Friday, January 23, 2009
Monday, January 19, 2009
Copy non-formatted(plain) text in Ubuntu
Sometime, when we are browsing in the rich text place such as web page and we want to copy some text to our writing field (also rich text field too) without text format but normally it can not do.
In Ubuntu, there is a tool to help you called "Glipper"
you can install it with this command
sudo apt-get install glipper
and then you can add it to your panel. Its name is "Clipboard manager" in Add to Panel menu.
In Ubuntu, there is a tool to help you called "Glipper"
you can install it with this command
sudo apt-get install glipper
and then you can add it to your panel. Its name is "Clipboard manager" in Add to Panel menu.
Ubuntu CPU temperature monitor
To monitor temperature of CPU, I'm using panel's item called "Computer Temperature Monitor"
To get it use this command
sudo apt-get install computertemp
then you have to add it to you panel by right-click at a panel, select Add to Panel. Then search with word "temp". There, that's your item to add
To get it use this command
sudo apt-get install computertemp
then you have to add it to you panel by right-click at a panel, select Add to Panel. Then search with word "temp". There, that's your item to add
Monday, December 22, 2008
My first shell script
I'm the one of English Premiere league fans but my dorminitory doesn't provide TV channel for it. So I have to find out my own. Fortunately, there are several pirate channel available on the internet in the shape of p2p client. One of that is Sopcast
Sopcast provides very easy using application for Windows OS user but it's not me. For Linux user there are a program that can invoke by command line and you have to use your own media player to play it yourself (In fact, there are someone writing linux's front-end Sopcast but it's not work in the way I want)
My problem is that I can't remember the command to run it. Every weekend, I have to open README file of Sopcast for the program running instruction. So I decided to write a script to handle it automatically. And it's also my first shell script ever. Here it is.
Sopcast provides very easy using application for Windows OS user but it's not me. For Linux user there are a program that can invoke by command line and you have to use your own media player to play it yourself (In fact, there are someone writing linux's front-end Sopcast but it's not work in the way I want)
My problem is that I can't remember the command to run it. Every weekend, I have to open README file of Sopcast for the program running instruction. So I decided to write a script to handle it automatically. And it's also my first shell script ever. Here it is.
#!/bin/shFrom now on, any other weekend, no README file. This makes me love not-Windows OS more and more.
echo Start Sopcast at $1
/usr/local/bin/sp-sc $1 3908 8908 > /dev/null &
echo Waiting for Sopcast starting
sleep 10
vlc http://localhost:8908/tv.asf
Saturday, December 20, 2008
VIM - tab size & tab to space setting
to change tab size use this command
:set ts=n
(n=expected size ,ts=tabstop)
to change tab to space use this command
:set et
(et = expandtab)
also invoke it together like this
:set ts=4 et
if you want permanent changing, add command above to file named .vimrc (normally is at your home folder)
:set ts=n
(n=expected size ,ts=tabstop)
to change tab to space use this command
:set et
(et = expandtab)
also invoke it together like this
:set ts=4 et
if you want permanent changing, add command above to file named .vimrc (normally is at your home folder)
Monday, December 15, 2008
FreeBSD Assignment#1 Answer
หลังจากหมดเขตส่งแล้ว(00.00 12/15/2008) ก็เอางานมาโพสหน่อยละกัน อาจจะไม่มีประโยชน์สำหรับคนอื่นเท่าไหร่ แต่ก็เผื่อมาอ่านผ่านๆ ตา แล้วค่อยไปค้นเนื้อหาเต็มต่อละกัน
เป็นงานย่อความของลิงค์ต่อไปนี้
- http://www.freebsd.org/cgi/man.cgi?query=tuning
- http://www.freebsd.org/doc/en/books/handbook/configtuning-kernel-limits.html
- http://silverwraith.com/papers/freebsd-tuning.php
- http://www.freebsd.org/doc/en/books/handbook/configtuning-disk.html
- http://www.freebsdonline.com/content/view/521/515/
ให้ cover หัวข้อต่อไปนี้
- What is the target subsystem being tuned?
- Why tune the target subsystem?
- How? That is, briefly, what is the approach used to tune the subsystem?
เข้าไปดูได้เลยที่ link นี้ http://docs.google.com/Doc?id=dcmk32tk_17ggmd5xf4
เป็นงานย่อความของลิงค์ต่อไปนี้
- http://www.freebsd.org/cgi/man.cgi?query=tuning
- http://www.freebsd.org/doc/en/books/handbook/configtuning-kernel-limits.html
- http://silverwraith.com/papers/freebsd-tuning.php
- http://www.freebsd.org/doc/en/books/handbook/configtuning-disk.html
- http://www.freebsdonline.com/content/view/521/515/
ให้ cover หัวข้อต่อไปนี้
- What is the target subsystem being tuned?
- Why tune the target subsystem?
- How? That is, briefly, what is the approach used to tune the subsystem?
เข้าไปดูได้เลยที่ link นี้ http://docs.google.com/Doc?id=dcmk32tk_17ggmd5xf4
Friday, December 12, 2008
How to make canon LBP2900 work on Ubuntu
Follow some steps from this HardwareSupportComponentsPrinters CanonPrinters Canon_LBP_2900
I'm using Intrepid. It's work.
I'm using Intrepid. It's work.
Subscribe to:
Posts (Atom)
Collectd PostgreSQL Plugin
I couldn't find this link when searching with google https://www.collectd.org/documentation/manpages/collectd.conf.html#plugin-postgresq...
-
sudo su postgres supply your Mac password modify /Library/PostgreSQL/9.x/data/pg_hba.conf from local all all md5 to local all all ...
-
This error occurs when you or some of your vim plugins try to access register '*' which is a system clipboard. In default Mac OSX vi...
-
Print some ANSI characters (print (str (char 27) "[2J")) ; clear screen (print (str (char 27) "[;H")) ; move cursor to...