160 |
Enumeration type wrapping class in C++ (Days)
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72690 | | 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:
_...
|
159 |
openssl alpn api
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72691 | | Mar 19, 2015 |
[ssl_lib.c] int SSL_CTX_set_alpn_pro-tos(SSL_CTX *ctx, const unsigned char* protos, unsigned protos_len); int SSL_set_alpn_protos(-SSL *ssl, const unsigned char *protos, unsigned protos_len);
|
158 |
linux installation guide for virtual machine
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72692 | | Jan 19, 2013 |
os installation install ubuntu-14.04.1-desktop-amd64.iso basic setup enable root account #sudo passwd root > <current password> > <root password> > <root password again> add the following line at the end of c...
|
157 |
[c] snprintf test
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72702 | | Oct 29, 2014 |
[code] #include <stdio.h>
#include <string.h>
static const int BUFSIZE = 4;
void dump(char* p, int size)
{
for (int i = 0; i < size; i++)
{
unsigned char ch = *p;
printf("%02X ", ch);
p++;
}
printf("\n");
}
int main()...
|
156 |
vdream and snoop30 build for ubuntu
1
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72702 | | Sep 25, 2014 |
os installation install ubuntu-14.04.1-desktop-amd64.iso (???) basic setup enable root account #sudo passwd root > <current password> > <root password> > <root password again> add the following line at the en...
|
155 |
qdir_test for qt
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72705 | | 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...
|
154 |
gui_option_test
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72709 | | Apr 11, 2013 |
[gui_option_test.pro] contains(QT, gui) {
message (gui)
} else {
message (no_gui)
}
TARGET = gui_option_test
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp
[main.cpp]...
|
153 |
How to run chrome as root user in Ubuntu
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72710 | | Oct 19, 2014 |
http://computernetwo-rkingnotes.com/ubunt-u-12-04-tips-and-tricks/how-to-run-chrome-as-root-user-in-ubuntu.html 1. gedit /opt/google/chrome/g-oogle-chrome 2. At the end of the file, add "--user-data-dir $HOME" exec -a "$0" "$HER...
|
152 |
[network] nfqueue
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72717 | | Nov 08, 2014 |
Using NFQUEUE and libnetfilter_queue https://home.regit.o-rg/netfilter-en/using-nfqueue-and-libnetfilter_queue/
|
151 |
[c++] integer casting test
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72724 | | 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...
|
150 |
Of running multiple regexp at once
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72725 | | Jan 01, 2015 |
http://fulmicoton.co-m/posts/multiregexp/-
|
149 |
QDomNodeList foreach
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72727 | | 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] ...
|
148 |
HTTP Strict Transport Security for Chrome
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72728 | | Mar 07, 2014 |
http://dev.chromium.-org/sts
|
147 |
[qt] How to Use QThread in the Right Way
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72730 | | Dec 31, 2014 |
http://blog.debao.me-/2013/08/how-to-use-qthread-in-the-right-way-part-1/ http://blog.debao.me-/2013/08/how-to-use-qthread-in-the-right-way-part-2/
|
146 |
[qt][android] openssl for android
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72730 | | Oct 26, 2014 |
http://wiki.openssl.-org/index.php/Androi-d 1. .bashrc 파일을 다음과 같이 설정한다. # # for android # export _ANDROID_ARCH=arch-arm export _ANDROID_EABI=arm-linux-androideabi-4.8 export _ANDROID_API=n...
|
145 |
How to use meta class in C++
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72744 | | Oct 04, 2013 |
Thers is a base class named "Shape" that has a virtual function "draw()". class Shape
{
public:
virtual void draw() = 0;
}; Circle, Triangle, Rectangle and Pentagon classes are descendent classes of Shape class. ...
|
144 |
gettimeofday function for windows
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72747 | | 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...
|
143 |
[c++] console build log
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72748 | | Dec 07, 2014 |
console_build_log_te-st.zip
msvc msvc2012 qt linux mingw msvc2012
|
142 |
20 issues of porting C++ code on the 64-bit platform
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72749 | | Oct 23, 2013 |
http://www.viva64.co-m/en/a/0004/
|
141 |
[c] libxml sample using sax
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72754 | | Nov 14, 2014 |
http://stackoverflow-.com/questions/39599-87/requesting-complete-compilable-libxml2-sax-example
|