вторник, 29 июля 2014 г.

What is Python?

Python is an interpreted, interactive, object-oriented programming language. It incorporates modules, exceptions, dynamic typing, very high level dynamic data types, and classes. Python combines remarkable power with very clear syntax. It has interfaces to many system calls and libraries, as well as to various window systems, and is extensible in C or C++. It is also usable as an extension language for applications that need a programmable interface. Finally, Python is portable: it runs on many Unix variants, on the Mac, and on PCs under MS-DOS, Windows, Windows NT, and OS/2.
To find out more, start with The Python Tutorial. The Beginner’s Guide to Python links to other introductory tutorials and resources for learning Python.



вторник, 8 июля 2014 г.

A Class for Creating a Trace Log

So the Debug build works great, but the Release build crashes? Or the program works fine on your computer, but crashes on the customer's computers? You need to add trace functionality to the Release build.
CLogTrace is a class that allows you to easily add trace functionality to the release build of a program. You make the program write lines of text to a log file at various stages in the program. You provide the code to turn the logging on or off. Much like using the TRACE macro, you get a text file that tells you what functions were called, with a date/time stamp. Except you can get this information in release builds.
The class is easy to use.
  1. Make a static CLogTrace object as a member of the application class
  2. Add the initialization lines in the programs InitInstance function.
  3. Any time you want to write to the log file, use the CLogTrace::WriteLine functions these will write the text along with date and time

CStdioFile log

CString strText = "First line followed by\nthe second line";
CStdioFile file;
if(file.Open("test.txt"), CFile::modeCreate|CFile::moreWrite)
{
  file.WriteString(strText);
}

MFC log file

[code]
: : : void DumpLogLine (char* pstrLine)
: : : {
: : : CFile log;
: : : char* pstrFileName = "C:\Temp\MyLog.Txt";
: : : BOOL bSeekEOF = TRUE;
: : : UINT uiFlags = CFile::modeWrite | CFile::typeBinary | CFile::shareExclusive;
: : : 
: : : if (_access (pstrFileName, 0) == -1) {
: : : uiFlags |= CFile::modeCreate;
: : : bSeekEOF = FALSE;
: : : }
: : : if (log.Open (pstrFileName, uiFlags)) {
: : : if (bSeekEOF) {
: : : log.SeekToEnd ();
: : : }
: : : log.Write (pstrLine, lstrlen (pstrLine));
: : : log.Write ("
", 2);
: : : }
: : : }
: : : 
: : : void How2Use ()
: : : {
: : : DumpLogLine ("Line #1");
: : : DumpLogLine ("Line #2");
: : : DumpLogLine ("Line #3");
: : : }
: : : [/code]

LoadIcon

Этa функция позволяет загрузить икону из ресурсов.
HICON LoadIcon
(  
 HINSTANCE hInstance, // указатель на приложение
 LPCTSTR lpIconName  // идентификатор
);

 HINSTANCE hInst = AfxGetResourceHandle ();

 m_hDC32Icon = ::LoadIcon(hInst, MAKEINTRESOURCE(IDI_DC32));

вторник, 1 июля 2014 г.

Специалист по тестированию в области информационных технологий

Приказ Министерства труда и социальной защиты РФ от 11 апреля 2014 г. № 225н “Об утверждении профессионального стандарта “Специалист по тестированию в области информационных технологий” (не вступил в силу)

В соответствии с пунктом 22 Правил разработки, утверждения и применения профессиональных стандартов, утвержденных постановлением Правительства Российской Федерации от 22 января 2013 г. № 23 (Собрание законодательства Российской Федерации, 2013, №  4, ст.  293), приказываю:
Утвердить прилагаемый профессиональный стандарт «Специалист по тестированию в области информационных технологий».
МинистрМ.А. Топилин
Зарегистрировано в Минюсте РФ 9 июня 2014 г.
Регистрационный №  32623


ИА "ГАРАНТ": http://www.garant.ru/products/ipo/prime/doc/70577150/#ixzz36EWYqeNY