-
Recent Posts
Recent Comments
Mike T. on Code snippet Using WMI via… Drew Canitz on minimal ATL window eskici on file transfer over synchronous… Rose on Purify reported error entry po… duongnguyenvan on file transfer over synchronous… Archives
- August 2018
- March 2018
- May 2017
- July 2012
- May 2012
- April 2012
- March 2012
- January 2012
- October 2011
- September 2011
- July 2011
- June 2011
- May 2011
- April 2011
- October 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- July 2009
- June 2009
- May 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- May 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- July 2006
- June 2006
- May 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
Categories
Meta
Monthly Archives: April 2008
“Do not program prematurely” is not “Do not program”
There are a lot of books proclaim that "Do not program prematurely". Many readers understand it as "Do not program" before you have a mature model. This is misleading because for Non-functional requirements, it is difficult to model without investigation. … Continue reading
Posted in Software Engineering
Leave a comment
Changing the Startup type and description of VC++ 2008 service project
#include <stdio.h>#include <sstream>#include <xutility>#include <exception>#include <iomanip>typedef std::basic_stringstream<TCHAR> tsstream;typedef std::basic_string<TCHAR> tstring;#ifdef _UNICODE#define __FUNCTIONT__ __FUNCTIONW__#else#define __FUNCTIONT__ __FUNCTION__#endif class COzSvcModule : public CAtlServiceModuleT< COzSvcModule, IDS_SERVICENAME >{public : DECLARE_LIBID(LIBID_OzSvcLib) DECLARE_REGISTRY_APPID_RESOURCEID(IDR_OZSVC, "{08E6E609-0FBD-4098-8006-D703FCEB8C17}") HRESULT InitializeSecurity() throw() { // TODO : Call CoInitializeSecurity and provide the appropriate … Continue reading
Posted in COM
Leave a comment
start MPICH2 program on its own.
The documentation specified two methods to start a task, via mpiexec (for normal use) or setmpi2.bat (for debug). So comes out the following code snippet that does not depends on mpiexec or setmpi2.bat. #include <mpi.h>#include <iostream> #include <stdio.h>#include <tchar.h>#include <sstream> … Continue reading
Posted in Open Source
Leave a comment
Dopod 256M ROM 128 RAM
Model CPU Camera Price P660 TI OMAP 850, 201Mhz 200万像素;CMOS成像传感器;带微距, GPRS 4280 P860 Qualcomm MSM7205, 400MHz 300万像素CMOS,支持自动对焦,支持录像功能. GPRSUSB 2.0 6680 S600 Qualcomm 7205 , 400Mhz 主摄像头为200万像素CMOS镜头副摄像头为10万像素CMOS镜头 4980 S1精英版 TI OMAP 850,200MHz 200万像素CMOS,支持录像功能 3980 E616 Samsung 2442 400MHz 200万像素CMOS,支持录像功能. GPRS … Continue reading
Posted in Phone
2 Comments
Build mpich2-1.0.7 via Visual C++ 2008
There are some compatibility issues between MPICH2 and VC++ 9.0, so I log my build process here for reference. Run winconfigure.wsf first, which will produce two error message box. Convert mpich2.sln to VC90 solution, then remove the following projects from … Continue reading
Posted in Open Source
Leave a comment
Parallel and High Performance Computing
MS MPI vs. MPICH2 Download MS MPI here MPI vs OpenMP PVM FAQ
Posted in Software Engineering
Leave a comment
boost.bimap and boost.multi_index container
It is interesting that the boost group accepted some libraries that are heavily overlapped. In my opinion, bimap can be specialized in multi_index library, in fact multi_index library contains a bimap usage sample.
Posted in CPP
Leave a comment
Code snippet Using WMI via C++/CLI
#include "stdafx.h"#using < system.management.dll>using namespace System;using namespace System::Management; int main(array<System::String ^> ^args){ Console::WriteLine(L"Query processor count via CLI by Onega"); ConnectionOptions^ options = gcnew ConnectionOptions(); //options->Password = L""; //options->Username = L""; //options->Authority = "NTLMDomain:" ; options->Impersonation = ImpersonationLevel::Impersonate; ManagementScope^ scope … Continue reading
build boost 1.35 via VC++ 2008
C:\Program Files\Microsoft Visual Studio 9.0\VC>cd \C:\>set PYTHON_ROOT=c:\python25C:\>set PYTHON_VERSION=2.5C:\>set ICU_PATH=D:\src\ICU\icu4c-3_8_1\icuC:\>d:D:\>cd src\boost\boost_1_35_0D:\src\boost\boost_1_35_0>bjam -sHAVE_ICU=1 –toolset=msvc stage –build-type=complete D:\src\boost\boost_1_35_0>bjam -sHAVE_ICU=1 –toolset=msvc –with-python –build-type=complete stage Note: boost.python does not work with python 3.0. build boost.mpi Install MPICH2 1.0.7 Windows Binary from here; update include and … Continue reading
Posted in IDE
Leave a comment