NMEA data
http://www.gpsinformation.org/dale/nmea.htm
HOWTO: Track your position using a GPS dongle and Google Earth
http://ubuntuforums.org/showthread.php?t=1083710
Using A Bluetooth GPS From Python
http://www.robertprice.co.uk/robblog/archive/2007/1/Using_A_Bluetooth_GPS_From_Python.shtml
2010年7月28日 星期三
2010年7月13日 星期二
Qt 讀取MP3的ID3 tag
MP3資訊目前都是以ID3的tag標示
目前常見的標示有ID3v1, ID3v2.3, ID3v2.4
讀取方式大同小異但在v1和v2.3的編碼方式為Big5所以讀取時要比較注意一點
關於各欄位資訊可參照Wikipedia
http://en.wikipedia.org/wiki/ID3
下面提供簡單的讀取範例
QFile *file=new QFile(MP3檔案路徑);
if (!file->open(QIODevice::ReadOnly))
{
qDebug()<<"return";
return;
}
QTextCodec *codec = QTextCodec::codecForName("Big5");
QString head = file->read(3);
QString sver = file->read(1);
int ver = sver.at(0).toAscii();
//移到倒數第128個位置
file->seek(file->size()-128);
QString tag = file->read(3);
qDebug()<<"tag"<
QString title = codec->toUnicode(file->read(30));
QString artist = codec->toUnicode(file->read(30));
QString album = codec->toUnicode(file->read(30));
QString year = codec->toUnicode(file->read(4));
QString comment = codec->toUnicode(file->read(30));
qDebug()<<"head"<
qDebug()<<"ver"<目前常見的標示有ID3v1, ID3v2.3, ID3v2.4
讀取方式大同小異但在v1和v2.3的編碼方式為Big5所以讀取時要比較注意一點
關於各欄位資訊可參照Wikipedia
http://en.wikipedia.org/wiki/ID3
下面提供簡單的讀取範例
QFile *file=new QFile(MP3檔案路徑);
if (!file->open(QIODevice::ReadOnly))
{
qDebug()<<"return";
return;
}
QTextCodec *codec = QTextCodec::codecForName("Big5");
QString head = file->read(3);
QString sver = file->read(1);
int ver = sver.at(0).toAscii();
//移到倒數第128個位置
file->seek(file->size()-128);
QString tag = file->read(3);
qDebug()<<"tag"<
QString title = codec->toUnicode(file->read(30));
QString artist = codec->toUnicode(file->read(30));
QString album = codec->toUnicode(file->read(30));
QString year = codec->toUnicode(file->read(4));
QString comment = codec->toUnicode(file->read(30));
qDebug()<<"head"<
2010年7月1日 星期四
AJAX 教學
AJAX 上手篇
http://wiki.moztw.org/index.php/AJAX_%E4%B8%8A%E6%89%8B%E7%AF%87
掌握 Ajax,第 1 部分: Ajax 簡介
http://www.ibm.com/developerworks/tw/library/wa-ajaxintro1.html
AJAX深度歷險1(Getting Started)
http://blog.xuite.net/jameschih/java/5598706?st=c&re=list&p=1&w=262779
Ajax內部交流文檔
http://www.dragonson.com/doc/ajax.html
Ajax 技術資源中心
http://www-128.ibm.com/developerworks/cn/xml/ajax/
AJAX - Asynchronous Javascript And Xml
http://www.xul.fr/en-xml-ajax.html
Java Script DIV Popup
http://simpleandeasycodes.blogspot.com/2009/01/pop-up-div-with-background-disabled.html
http://www.javascripttoolbox.com/lib/popup/example.php
http://wiki.moztw.org/index.php/AJAX_%E4%B8%8A%E6%89%8B%E7%AF%87
掌握 Ajax,第 1 部分: Ajax 簡介
http://www.ibm.com/developerworks/tw/library/wa-ajaxintro1.html
AJAX深度歷險1(Getting Started)
http://blog.xuite.net/jameschih/java/5598706?st=c&re=list&p=1&w=262779
Ajax內部交流文檔
http://www.dragonson.com/doc/ajax.html
Ajax 技術資源中心
http://www-128.ibm.com/developerworks/cn/xml/ajax/
AJAX - Asynchronous Javascript And Xml
http://www.xul.fr/en-xml-ajax.html
Java Script DIV Popup
http://simpleandeasycodes.blogspot.com/2009/01/pop-up-div-with-background-disabled.html
http://www.javascripttoolbox.com/lib/popup/example.php
訂閱:
文章 (Atom)