Monthly Archives: March 2013

Setup Codelite to work with visual studio toolset

I am tired to upload figures , I just give it as PDF file with figures inside Setup Codelite to work with visual studio toolset (totorial version)

Posted in Uncategorized | Comments Off on Setup Codelite to work with visual studio toolset

python pinyin module support simplified and traditional chinese codecs

git clone https://github.com/qingfengxia/pinyin.py.git

Posted in Download, Programming | Comments Off on python pinyin module support simplified and traditional chinese codecs

Comparsion of DateTime classes in popular programming Languages (2)

as a further explanation to: ” Comparsion of DateTime classes in popular programming Languages (1)” This part is a copy and paste of lang/lib spec.

Posted in Programming | Comments Off on Comparsion of DateTime classes in popular programming Languages (2)

Comparsion of DateTime classes in popular programming Languages (1)

C    boost::Datetime  Java JDK8(javax.time)  Qt Python and Javascript (1) Table comparison (2) Further explanation from each language spec Joda package for (Java) is not described here, whose API is analoguous to Qt and Python. As there is new API … Continue reading

Posted in Programming | Comments Off on Comparsion of DateTime classes in popular programming Languages (1)

You must know C++11, but have you noticed C11?

Previous C++ standard is C++03 (2003); previous C std is C99.They are not released together, but they did this time as  a combo of C11 and C++11. __STDC_VERSION__ == 201112L C11 (formerly C1X) is an informal name for ISO/IEC 9899:2011  (see wiki) … Continue reading

Posted in Programming | Comments Off on You must know C++11, but have you noticed C11?

Four wheel car robot based on Arduino Mega2560 and Raspberry Pi

git clone https://github.com/qingfengxia/arduinorobotcar.git Datasheets (most of them in Chinedse) for robot parts makes the git size big ========================================= Recently, I have been working on Arduino 2/4 wheel car robot in my spare time. ===============design goals================== Robot car composing 4 DCMotors, … Continue reading

Posted in Programming, Robot | Comments Off on Four wheel car robot based on Arduino Mega2560 and Raspberry Pi

Melexis90620 IR sensor controlled by Arduino and Raspberry Pi

I have made a C++ library class for Melexis90620 (in order to use multiple sensors simultanuously ),  a test program to demo this class, python program to show the contour. Also, I made I2C C program to control itby Raspberry … Continue reading

Posted in Download, Programming, Robot, Sensor | Comments Off on Melexis90620 IR sensor controlled by Arduino and Raspberry Pi

my robotics lab is ready to go

Posted in Robot | Comments Off on my robotics lab is ready to go

QtCore vs C++ STL & boost lib (4) smart pointers

see “Count with me: how many smart pointer classes does Qt have?” http://blog.qt.digia.com/blog/2009/08/25/count-with-me-how-many-smart-pointer-classes-does-qt-have/ Smart pointers  Introduction Ver QPointer<T> Qt Object , guarded pointer, set NULL after delete/deconstruction However, pointed resource not released  Qt4.0 QSharedPointer reference-counted strong sharing of pointers Qt4.5 … Continue reading

Posted in Programming | Comments Off on QtCore vs C++ STL & boost lib (4) smart pointers

QtCore vs C++ STL & boost lib (3) Threading

Threading is always tricky, I dare not comment on this topics. If some useful articles are found, this page will be updated!  

Posted in Programming | Comments Off on QtCore vs C++ STL & boost lib (3) Threading

QtCore vs C++ STL & boost lib (2) Container

  just read the article: < Understand the Qt containers > http://marcmutz.wordpress.com/effective-qt/containers/ key points (1) difference: a)Qt Containers:  implicitly shared (Copy-On-Write) ! b) size type: QT return signed int, while STL return size_t (unsigned int) c) Iterator (2)Qt has C++ STL … Continue reading

Posted in Programming | Comments Off on QtCore vs C++ STL & boost lib (2) Container

QtCore vs C++ STL & boost lib (1) IO

QFile is the class for  everyday File IO, while C++ STL using  stream ===========based class: std::stream ========= <iostream> (qDebug()  or #include <iostream> cin/cout ) <fstream>  (QFile) <sstream> (QBuffer) <boost/archive> ( QDataStream for serialization ) ===========QIODevice=========== The QIODevice class is the … Continue reading

Posted in Programming | Comments Off on QtCore vs C++ STL & boost lib (1) IO

QtCore vs C++ STL & boost lib: overview

QtCore vs C++ STL & boost lib Author: Qingfeng Xia Date: March 05 2013 Copyright: since most of the content is from documentation or forum threads, it can be regards as same license as QT documentation.  Most of text are … Continue reading

Posted in Uncategorized | Comments Off on QtCore vs C++ STL & boost lib: overview

Solution to SPI and I2C LCD unmeaningful character display

Arduino IDE has its standard “LiquidCrystall” library, but  MCP23008 1602 LCD needed a customed library. Simply installation may lead to unexpected result Arduino ide 1.5 , Arduino mega 2560, scl(clk 21) sda(20 DAT)  connection is fine, but  example “HelloWorld_i2c”, compiled sucessfully, but it does not give correct character display, … Continue reading

Posted in Robot | Comments Off on Solution to SPI and I2C LCD unmeaningful character display