20 |
gettimeofday function for windows
|
gilgil | 71390 | | 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...
|
19 |
android rooting sites
|
gilgil | 71389 | | Sep 29, 2014 |
framaroot : http://framaroot.net-/ towerlroot : https://www.towelroo-t.com/
|
18 |
QDomNodeList foreach
|
gilgil | 71389 | | 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] ...
|
17 |
Enumeration type wrapping class in C++ (Days)
|
gilgil | 71389 | | Sep 30, 2013 |
Here is a sample code of enumeration type wrapping class in C++. [Source Code] #include <stdio.h>
class Days
{
public:
enum _Days
{
Sunday,
Monday,
Tuesday,
Wednesday,
Thursday,
Friday,
Saturday
};
protected:
_...
|
16 |
[c++] integer casting test
|
gilgil | 71380 | | Dec 21, 2014 |
Guess the result of the following code. [Code] #include <iostream>
#include <limits.h>
using namespace std;
int main()
{
{
char c1 = CHAR_MAX;
char c2 = (c1 + 1) / 2;
cout << c2 << endl;
}
{
short s1 = SHRT_MAX;
sh...
|
15 |
network layer protocol constants
|
gilgil | 71369 | | Feb 21, 2013 |
[DataLink Type] : bpf.h #define DLT_NULL 0 /* BSD loopback encapsulation */
#define DLT_EN10MB 1 /* Ethernet (10Mb) */
#define DLT_EN3MB 2 /* Experimental Ethernet (3Mb) */
#define DLT_AX25 3 /* Amateur Radio ...
|
14 |
qdir_test for qt
|
gilgil | 71359 | | 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...
|
13 |
touch for windows
|
gilgil | 71358 | | Mar 15, 2014 |
touch.zip
|
12 |
C++ unmnamed class
|
gilgil | 71354 | | Oct 23, 2013 |
class
{
public:
int no;
} obj;
int main()
{
obj.no = 5;
}
|
11 |
Fedora installation for Qt
|
gilgil | 71230 | | 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 ...
|
10 |
[linux] copy stdout into clipboard
|
gilgil | 71211 | | Nov 30, 2014 |
http://stackoverflow-.com/questions/51309-68/how-can-i-copy-the-output-of-a-command-directly-into-my-clipboard Install xclip sudo apt-get install xclip All alias in bashrc # # clipboard # alias c='xclip -selection clipbo...
|
9 |
Network Headers
|
gilgil | 71208 | | Nov 03, 2013 |
http://www.troyjessu-p.com/headers/
|
8 |
|
qt static build
1
|
gilgil | 71180 | | 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 ...
|
7 |
pipe_test
|
gilgil | 71140 | | Feb 19, 2013 |
pipe_test(2013.02.19-)-2.zip
pipe_test(2013.02.19-).zip
|
6 |
[Qt] QByteArray::setRawData (shallow copy or deep copy?)
1
|
gilgil | 70784 | | 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...
|
5 |
false_sharing_test
|
gilgil | 70572 | | 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-...
|
4 |
qt hello world example
|
gilgil | 70560 | | Nov 16, 2013 |
|
3 |
Talk is cheap. Show me the code.
|
gilgil | 70033 | | Mar 22, 2013 |
https://lkml.org/lkm-l/2000/8/25/132
|
2 |
wireshark build on windows
|
gilgil | 68271 | | May 13, 2013 |
http://www.wireshark-.org/docs/wsdg_html_-chunked/ChSetupWin32-.html
|
1 |
Minimal WinMain Source Code
|
gilgil | 2 | | Mar 08, 2012 |
This article is secret
|