40 |
touch for windows
|
gilgil | 70867 | | Mar 15, 2014 |
touch.zip
|
39 |
[c++] console build log
|
gilgil | 70855 | | Dec 07, 2014 |
console_build_log_te-st.zip
msvc msvc2012 qt linux mingw msvc2012
|
38 |
[ubuntu] how to show volume control in root account
|
gilgil | 70852 | | Sep 26, 2014 |
Launch Startup Application. Add the following item. Name : Volume Control Command : /usr/bin/pulseaudio
|
37 |
[c++] explicit
|
gilgil | 70851 | | 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
|
36 |
QDomNodeList foreach
|
gilgil | 70849 | | 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] ...
|
35 |
Enumeration type wrapping class in C++ (Days)
|
gilgil | 70849 | | 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:
_...
|
34 |
gui_option_test
|
gilgil | 70847 | | 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]...
|
33 |
[c++] integer casting test
|
gilgil | 70842 | | 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...
|
32 |
vdream and snoop30 build for ubuntu
1
|
gilgil | 70841 | | 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...
|
31 |
windivert passthru problem
1
|
gilgil | 70841 | | Mar 26, 2014 |
[Test Case 1] While calling netdump command, I can see SYN/RST packets when I try to connect to 127.0.0.1:23. netdump "tcp.SrcPort==23 tcp.DstPort==23" While calling passthru command, I can not see...
|
30 |
Of running multiple regexp at once
|
gilgil | 70839 | | Jan 01, 2015 |
http://fulmicoton.co-m/posts/multiregexp/-
|
29 |
VDream option for Qt pro file
|
gilgil | 70839 | | Feb 18, 2013 |
#------------------------------------------------- # Common #------------------------------------------------- CONFIG(release, debug|release) { DEFINES += _RELEASE D = "" } CONFIG(debug, debug|release) { DEFINES += _DEBUG D = "d" } LI...
|
28 |
[c++] g++ exception(divide by zero)
|
gilgil | 70838 | | Dec 25, 2014 |
http://www.network54-.com/Forum/613583/me-ssage/1364726793/Usi-ng+C%2B%2B+exception-+handling+to+catch+f-loating+point+divide-+by+zero.
|
27 |
[qt] spec_test
|
gilgil | 70837 | | 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 ...
|
26 |
How to use meta class in C++
|
gilgil | 70824 | | 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. ...
|
25 |
[network] nfqueue
|
gilgil | 70823 | | Nov 08, 2014 |
Using NFQUEUE and libnetfilter_queue https://home.regit.o-rg/netfilter-en/using-nfqueue-and-libnetfilter_queue/
|
24 |
[etc] Markdown
|
gilgil | 70819 | | Nov 27, 2014 |
[Markdown Basics] https://help.github.-com/articles/markdow-n-basics/ [Online Markdown Editor] http://dillinger.io/-
|
23 |
qmake.conf for msvc2008
1
|
gilgil | 70813 | | 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...
|
22 |
qdir_test for qt
|
gilgil | 70802 | | 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...
|
21 |
network layer protocol constants
|
gilgil | 70801 | | 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 ...
|