120 |
touch for windows
|
gilgil | 70246 | | Mar 15, 2014 |
touch.zip
|
119 |
HTTP Strict Transport Security for Chrome
|
gilgil | 70169 | | Mar 07, 2014 |
http://dev.chromium.-org/sts
|
118 |
gettimeofday function for windows
|
gilgil | 70246 | | Feb 23, 2014 |
#include <windows.h>
int gettimeofday(struct timeval* tv, struct timezone* tz)
{
static LONGLONG birthunixhnsec = 116444736000000000; /*in units of 100 ns */
FILETIME systemtime;
GetSystemTimeAsFileT-ime(&sy...
|
117 |
How to call a constructor on a already allocated memory
|
gilgil | 113635 | | Feb 22, 2014 |
[Source] #include <new>
#include <VInt>
#include <VDebugNew>
class MyObj
{
public:
VInt i;
public:
MyObj() { printf("MyObj::MyObj\n"); }
virtual ~MyObj() { printf("MyObj::~MyObj\n"); }
void foo() { printf("MyObj::foo...
|
116 |
[Qt] How to create a library with Qt and use it in an application
|
gilgil | 77468 | | Feb 18, 2014 |
from : http://qt-project.org/wiki/How-_to_create_a_library-_with_Qt_and_use_it_-in_an_application How to create a library with Qt and use it in an applicationIntroduct-ionThis tutorial illustrates different approac...
|
115 |
[Qt] QByteArray::setRawData (shallow copy or deep copy?)
1
|
gilgil | 70072 | | Feb 18, 2014 |
Is QByteArray::setRawDa-ta() , are bytes copied or not? I do now know very well the difference beteen test1() and test2() function listed below. :( [source] void test1(){ char buf[] = "abcde"; QBy...
|
114 |
[Qt] QByteArray setRawData example
|
gilgil | 91269 | | Feb 17, 2014 |
QByteArray & QByteArray::setRawDa-ta ( const char * data, uint size )Resets the QByteArray to use the first size bytes of the data array. The bytes are not copied. The QByteArray will contain ...
|
113 |
[Qt] QEvent example
|
gilgil | 119361 | | Feb 16, 2014 |
In working thread, you need to switch into a main thread. In this case, you can use QEvent class. [myobj.h] class MyObj : public QObject
{
Q_OBJECT
public:
bool event(QEvent* event);
}; [myobj.cpp] bool...
|
112 |
|
Git Data Transport Commands
|
gilgil | 85976 | | Jan 28, 2014 |
from : http://blog.osteele.-com/posts/2008/05/my--git-workflow
|
111 |
|
qt static build
1
|
gilgil | 70788 | | Nov 27, 2013 |
[Environment] Microsoft Windows 7 Microsoft Visual Studio 2012 64bit compiler(or 32bit compiler) Qt 5.1.1 [Required] Download and install ActivePerl (version 5.16.3 or higher) and check system path ...
|
110 |
The static object difference between local and global
|
gilgil | 106587 | | Nov 21, 2013 |
[LocalObject] class LocalObject
{
static LocalObject& instance();
};
LocalObject& LocalObject::instanc-e()
{
static LocalObject localObject; // declared as local // --- (1) ---
return localObject; // --- (2) ---
} ---...
|
109 |
qt hello world example
|
gilgil | 69632 | | Nov 16, 2013 |
|
108 |
Network Headers
|
gilgil | 70140 | | Nov 03, 2013 |
http://www.troyjessu-p.com/headers/
|
107 |
qt configure -help (5.1.1)
1
|
gilgil | 116135 | | Oct 23, 2013 |
+ cd qtbase + C:\Qt\5.1.1\qtbase\configure.bat -help Usage: configure [options] Installation options: These are optional, but you may specify install directories. -prefix <dir> ...... This will install ev...
|
106 |
false_sharing_test
|
gilgil | 69745 | | Oct 23, 2013 |
[Source Code] #include <iostream>
#include <boost/date_time/posi-x_time/posix_time.hp-p>
#include <boost/thread.hpp>
void run(char* p, int size, int count)
{
boost::posix_time::p-time begTick(boost::posix-_time::microsec_cloc-...
|
105 |
Fedora installation for Qt
|
gilgil | 69902 | | Oct 23, 2013 |
Fedora installation Change display Change root login Security Update yum install gcc yum install gcc-c++ yum install make Install Qt(4.8.1) yum install libpng-compat ( for libpng12.so file ) yum install xterm ...
|
104 |
C++ unmnamed class
|
gilgil | 70219 | | Oct 23, 2013 |
class
{
public:
int no;
} obj;
int main()
{
obj.no = 5;
}
|
103 |
20 issues of porting C++ code on the 64-bit platform
|
gilgil | 70318 | | Oct 23, 2013 |
http://www.viva64.co-m/en/a/0004/
|
102 |
qdir_test for qt
|
gilgil | 70247 | | Oct 23, 2013 |
[Source Code] #include <QDir>
#include <QDebug>
void static_test()
{
qDebug() << "separator =" << QDir::separator();
qDebug() << "currentPath =" << QDir::currentPath();
qDebug() << "homePath =" << QDir::homePath();
qD...
|
101 |
QDomNodeList foreach
|
gilgil | 70278 | | Oct 23, 2013 |
[define] #define xml_foreach(node, list) \
int __i = 0; \
int __count = (list).count(); \
if (__count > 0) \
for (QDomNode node = (list).at(0); __i < __count; __i++, node = (list).at(__i)) [usage 1] ...
|