Thursday, September 25, 2008

Add lyric into MP3 file

To add lyric into MP3 file
You can use either Windows Media Player or Mp3tag.
If you use Mp3tag,
(Mp3Tag can also add other tags into MP3 file.)
1. Drag and drop MP3 into Mp3tag window.
2. Right click -> Extended Tags
3. Click Add field button, enter UNSYNCEDLYRICS into Field.
Enter lyric into Value.
for English, type eng||bla..bla..bla...
for Thai, type tha||bla..bla..bla...

To display lyric in Winamp
1. Install WinLyrics
2. In Registration window, click on Register>>> button, then you'll see the Registration Key.
3. Use keygen.exe to generate Activation Key from Registration Key.

To display lyric in Windows Media Player
Click Play -> Lyrics, Captions, and Subtitles -> On if Available

Wednesday, September 24, 2008

WordPress Installation

After fighting with WordPress 2.6.2 for about 2 hours.
Because it displayed only blank page after pressing 'Install'.
Searching in Goooogle, and found this website
http://trac.wordpress.org/ticket/7724
Oh shit!!! It's WordPress's bug. Installation works well after bug solving.
Yeahhh!!! Now I have my own blog!

Then disabled Post Revision function, or the database will be filled up with many garbage posts.
Added this command into file wp-config.php
// Disable Post Revisions
// To delete existing revisions, use this SQL query:
// DELETE FROM wp_posts WHERE post_type = 'revision';
define('WP_POST_REVISIONS', false);
define('AUTOSAVE_INTERVAL', 86400);

Then installed Wordpress PDA & iPhone 1.2.6 plug-in for access from mobile phone.
These 3 agents were also added.
PPC, WindowsCE, Mobile

And activated Akismet 2.1.8 plug-in (built-in) to block spams.

And installed Related Entries 2.04 plug-in from this website
http://www.basicstep.net/wordpress/related-posts-plugin/
But the table can't be modified to be FULLTEXT.
So I Goooogled (again). And found that the wp_posts table needs to be changed to MyISAM.

Next, Thai localization. I choose this website
http://sourceforge.net/projects/wordpressthai/
Followed the installation from this website
http://www.wordthai.com/index.php?topic=12.0

Then installed Language Switcher and 2.6 patch for multilingual support. (Only 2 languages are enought)
And added some Quick Buttons into file /wp-includes/js/quicktags.js

Added language link into file /wp-content/themes/.../single.php (insert after <?php get_header(); ?>)
<?php
$old_url = str_replace('&langswitch_lang='.$langswitch_lang_pref, '', $_SERVER["QUERY_STRING"]);
$old_url = str_replace('langswitch_lang='.$langswitch_lang_pref, '', $old_url);
if (!empty($old_url)) $old_url .= '&';
print '<div align=right>Language : <a href="?'.$old_url.'langswitch_lang=th">ไทย</a> | <a href="?'.$old_url.'langswitch_lang=en">English</a> &nbsp; &nbsp; &nbsp; </div>';
?>

And enabled some modules.
Also installed Dashboard Widget Manager 1.3.1 plug-in to manage Dashboard.
Added StyleSheet into file /wp-content/themes/.../style.css
table.code {
border-style: solid;
border-width: 1px;
border-color: #a0d0a0;
background-color: #f0f0f0;
font-family: courier;
text-align: left;
padding: 0.1em 0.5em;
}

To use static page as a front page:
http://turbochargedcms.com/2006/11/building-a-true-home-page-into-your-wordpress-blog/

Then installed StatPressCN.

Sunday, September 14, 2008

PIC VU Meter

I spent 2 days with this.
VU Meter using PIC Microcontroller.

No audio cable needed. Just plug in the power cord.
It can be placed anywhere. Very high sensitive microphone can receive even whisper.
(IC LM386 which are used in spy microphone circuit.)
PIC 16F628A microcontroller is used to do DSP (Digital Signal Processing) and AGC (Auto volume gain controller).
Currently it has 12 modes of running light.
If there is no sound for a while, it will switch to running light mode.
Then switch back to VU meter when sound was detected again.






[See all photos]

Friday, August 29, 2008

USB PIC Programmer

The Serial PIC programmer shipped with i-Style book doesn't work with USB to Serial converter, although it passed initialization process.
So I decided to buy a new USB programmer, very expensive programmer, ET-PGM PIC USB V1, 1500 BHT.

Its speed is sooooo impressive, about 1-300 times faster than the old one!!!
It also has ICD2 (RJ-11 - telephone jack) port, so it can be used as software oscilloscope too.
This example circuit receives 38kHz infrared signal from TV remote control.

I think it's a little cheap now. ;-)





Wednesday, August 13, 2008

Mom's Netbook

Do you believe that she's 57 years old?
(-_-")

ASUS Eee PC 1000H 10" = 18900 BHT
LG Super Slim DVD = 2700 BHT
Mouse = 600 BHT




[See all photos]

Saturday, August 9, 2008

First photo from HTC Touch Diamond

Taken by a Pocket PC phone. Most of them have a crap camera, but not this one. ;-)
http://www.htc.com/www/product/touchdiamond/overview.html

Auto Fish Feeder

PIC 16F627A microcontroller was used.
There are ROM 1kB , RAM 256 bytes.
Can choose frequency per day (1-6 times a day).
Can choose feeding level (1-10 level).
The food in syringe is enought for about 1-1.5 month.








[See all photos]