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

Posted in programming | Tagged , , | Leave a comment

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

Posted in programming | Tagged | Leave a comment

How to schedule a async job and debug java factory in iserver

Actuate iserver is highly configurable. Instead of schedul a job from UI, user also could schedule job by writing script.  Here is an example – scheduleJob.pl #!/usr/local/bin/perl require HTTP::Request; require HTTP::Headers; require HTTP::Cookies; require LWP::UserAgent; use strict; my ($file, $server, … Continue reading

Posted in work related | Tagged , , | Leave a comment

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

Posted in web development | Tagged | 1 Comment

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

Posted in programming | Tagged , , | Leave a comment

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

Posted in programming | Tagged , | Leave a comment

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

Posted in programming | Tagged , | 1 Comment

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

Posted in programming | Tagged | Leave a comment

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

Posted in programming | Tagged | Leave a comment

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

Posted in programming | Tagged | Leave a comment