40 |
[c++] explicit
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72837 | | Dec 22, 2014 |
explicit http://en.cppreferen-ce.com/w/cpp/languag-e/explicit
explicit type conversion http://en.cppreferen-ce.com/w/cpp/languag-e/explicit_cast
|
39 |
[c++] integer casting test
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72833 | | 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...
|
38 |
C++ unmnamed class
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72833 | | Oct 23, 2013 |
class
{
public:
int no;
} obj;
int main()
{
obj.no = 5;
}
|
37 |
VInt class header file
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72830 | | Apr 17, 2012 |
When you 1. use C++ STL library(list, vector, map, and so on). 2. make your own template library 3. use their objects as global or static you want to know when the object is created, accessed, deleted...
|
36 |
[c] libxml sample using sax
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72825 | | Nov 14, 2014 |
http://stackoverflow-.com/questions/39599-87/requesting-complete-compilable-libxml2-sax-example
|
35 |
qmake.conf for msvc2008
1
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72823 | | Feb 12, 2013 |
# # qmake configuration for win32-msvc2008 # # Written for Microsoft Visual C++ 2008 # MAKEFILE_GENERATOR = MSVC.NET TEMPLATE = app CONFIG += qt warn_on release incremental flat link_prl prec...
|
34 |
[c++] console build log
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72821 | | Dec 07, 2014 |
console_build_log_te-st.zip
msvc msvc2012 qt linux mingw msvc2012
|
33 |
[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 | 72812 | | 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/
|
32 |
qdir_test for qt
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72803 | | 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...
|
31 |
[qt] spec_test
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72800 | | Nov 04, 2014 |
[pro file] #------------------------------------------------- # # Project created by QtCreator 2014-11-03T12:20:34 # #------------------------------------------------- QT += core gui greaterThan(QT_MAJOR-_VERSION, 4): QT += widgets TARGET ...
|
30 |
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 | 72797 | | 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...
|
29 |
gui_option_test
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72796 | | 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]...
|
28 |
gettimeofday function for windows
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72788 | | 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...
|
27 |
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 | 72786 | | 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...
|
26 |
QDomNodeList foreach
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72779 | | 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] ...
|
25 |
Fedora installation for Qt
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72777 | | 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 ...
|
24 |
android rooting sites
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72774 | | Sep 29, 2014 |
framaroot : http://framaroot.net-/ towerlroot : https://www.towelroo-t.com/
|
23 |
openssl alpn api
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72773 | | 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);
|
22 |
[etc] Markdown
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72770 | | Nov 27, 2014 |
[Markdown Basics] https://help.github.-com/articles/markdow-n-basics/ [Online Markdown Editor] http://dillinger.io/-
|
21 |
[network] nfqueue
|
![Point:23265point (7%), Level:16/30 [Level:16]](http://gilgil.net/modules/point/icons/default/16.gif) gilgil | 72768 | | Nov 08, 2014 |
Using NFQUEUE and libnetfilter_queue https://home.regit.o-rg/netfilter-en/using-nfqueue-and-libnetfilter_queue/
|