-
Recent Posts
Archives
- July 2016
- June 2016
- May 2016
- March 2016
- January 2016
- November 2015
- October 2015
- August 2015
- July 2015
- June 2015
- May 2015
- April 2015
- January 2015
- December 2014
- November 2014
- October 2014
- September 2014
- May 2014
- April 2014
- March 2014
- February 2014
- January 2014
- October 2013
- September 2013
- August 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- April 2011
- March 2011
- February 2011
Categories
My Tags
My Profile
Senior Software Engineer At Actuate
Meta
Monthly Archives: July 2011
My plane game by javascript – 2
In this pose, I will explain how to scroll the background to make the plane has a ‘flying’ effects. This effects is achieved by CSS + javascript first thing need to do is to find an appropriate pic, this pic … Continue reading
code reading 3 – notepad++
sequence diagrams of ‘file->new’ function notepad_plus.cpp –> notepad_plus.cpp : runProc() notepad_plus.cpp –> notepad_plus.cpp : command() notepad_plus.cpp –> notepad_plus.cpp : fileNew() notepad_plus.cpp -> DocTabView.cpp : newDoc() DocTabView.cpp -> ScintillaEditView : createNewDoc(int) ScintillaEditView –> ScintillaEditView : createNewDoc( const char * … Continue reading
set up SSL connection in tomcat 6
I need to deploy the iportal project under https protocol schema, therefore, I need to configure my tomcat 6 to make it support https connection. this sounds easy but it really take me some time because of some trivial stuffs. … Continue reading
Heritrix test note 1
today, I installed Heritrix for testing purpose. installation procedure: 1. go to http://crawler.archive.org, click the ‘download’ link 2. redirct to sourceforge, then download the latest version, current the latest version is : heritrix-1.14.4.tar.gz 3. tar xzf heritrix-1.14.4.tar.gz 4. cd heritrix-1.14.4/conf … Continue reading
code reading 2 – notepad++
notepad_plus.h private: static const char _className[32]; Window *_pMainWindow; unsigned char _mainWindowStatus; DocTabView _mainDocTab; DocTabView _subDocTab; DocTabView *_pDocTab; ScintillaEditView _mainEditView; ScintillaEditView _subEditView; ScintillaEditView *_pEditView; SplitterContainer *_pMainSplitter; SplitterContainer _subSplitter; HMENU _hTabPopupMenu, _hTabPopupDropMenu; ToolBar _toolBar; IconList _docTabIconList; StatusBar _statusBar; // Dialog FindReplaceDlg _findReplaceDlg; … Continue reading
coding reading 1 – notepad++
In order to have a better understanding of C++, I download an open source project notepad++ for study. this project widely used MFC library and Scintilla library. Scintilla is a open source text editor library, SciTe is its demonstrator project. … Continue reading
My plane game by javascript
Here is my demo, currently the demo is very simple. user could control a plane and fire bullets. All the control is achieved by using javascript and css. in this demo, I achieved : 1. scroll the background, let … Continue reading
passing by Reference for efficency
see a c++ code : #include <iostream> class SimpleCat { public: SimpleCat(); // constructor SimpleCat(SimpleCat&); // copy constructor ~SimpleCat(); // destructor }; SimpleCat::SimpleCat() { std::cout << “Simple Cat Constructor …\n”; } SimpleCat::SimpleCat(SimpleCat&) { std::cout << “Simple Cat Copy Constructor …\n”; … Continue reading
print 1-100 without for loop
Here is a quesiton, how to output 1-100 without using for loop? also try to avoid recursive call. I write a javascript snippet : new Array(101).toString().replace(/,/g, function(a,b) { document.write(b+1+’ ‘); } ); you would see 1-100 be write into … Continue reading