1. Under WDK:\8.1\bin\x84
2. Examples of Metadata
3. Editor
4. Regedit
5. Ref
my 3 or 2 words; thinkness, speakless
Boards
3D Printer
http://techpp.com/2012/02/02/top-6-cheap-affordable-3d-printers/
http://wired.tw/2012/05/17/maker-movement/index.html
【目的】
【觀念】
http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=hello&langpair=en|ru用該程式送出,會發現回傳 400(responseStatus),猜測應該是結果有問題。
{"responseData": null, "responseDetails": "invalid version", "responseStatus": 400}
用 WireShark 觀察,就可看出原來只送出
GET /ajax/services/language/translate HTTP/1.1問題看起來就是後面的 Query String 沒送出讓 Google Translation 弄迷糊了。
http->get(url.path(), file);改成
http->get(url.toEncoded(), file);
【程式】
#include <QtGui/QApplication>
#include "dialog.h"
#include <QUrl>
#include "HttpGet.h"
#include <iostream>
#include <QDebug>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
Dialog w;
w.show();
HttpGet getter;
QUrl url("http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=hello&langpair=en|ru");
getter.downloadFile(QUrl(url));
QObject::connect(&getter, SIGNAL(finished()), &a, SLOT(quit()));
return a.exec();
}
【結果】
{"responseData": {"translatedText":"привет"}, "responseDetails": null, "responseStatus": 200}
【問題】
【其它】
【參考】
Qt-interest Archive, December 2006 QHttp - problem downloading file
http://lists.trolltech.com/qt-interest/2006-12/thread00553-0.html
若需使用PPPOE撥接,需先設定好PPPOE,pppoe可利用 pppoeconf 設定。
| #apt-get install pppoe |
No-IP
跑起Deamond來有問題,所以在 ip-up那邊加入設定。
| cd /etc/init.d/ chmod +x noip2 update-rc.d noip2 defaults |
安裝 Apache + Php
| #apt-get install apache2 #apt-get install libapache2-mod-php5 php5-cli php5-common php5-cgi #/etc/init.d/apache2 restart |
下載Pmwiki並安裝
Ed32. Copyright 2008 All Rights Reserved Revolution Two Church theme by Brian Gardner Converted into Blogger Template by Bloganol dot com