40 |
Fedora installation for Qt
|
gilgil | 70833 | | Oct 05, 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 ...
|
39 |
Enumeration type wrapping class in C++ (Days)
|
gilgil | 70823 | | 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:
_...
|
38 |
[c++] explicit
|
gilgil | 70821 | | 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
|
37 |
QDomNodeList foreach
|
gilgil | 70820 | | 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] ...
|
36 |
[ubuntu] how to show volume control in root account
|
gilgil | 70819 | | Sep 26, 2014 |
Launch Startup Application. Add the following item. Name : Volume Control Command : /usr/bin/pulseaudio
|
35 |
[c++] console build log
|
gilgil | 70818 | | Dec 07, 2014 |
console_build_log_te-st.zip
msvc msvc2012 qt linux mingw msvc2012
|
34 |
[c++] integer casting test
|
gilgil | 70814 | | 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...
|
33 |
VDream option for Qt pro file
|
gilgil | 70814 | | Feb 18, 2013 |
#------------------------------------------------- # Common #------------------------------------------------- CONFIG(release, debug|release) { DEFINES += _RELEASE D = "" } CONFIG(debug, debug|release) { DEFINES += _DEBUG D = "d" } LI...
|
32 |
gui_option_test
|
gilgil | 70814 | | 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]...
|
31 |
[c++] g++ exception(divide by zero)
|
gilgil | 70806 | | 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.
|
30 |
windivert passthru problem
1
|
gilgil | 70804 | | 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...
|
29 |
vdream and snoop30 build for ubuntu
1
|
gilgil | 70803 | | 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...
|
28 |
[qt] spec_test
|
gilgil | 70803 | | 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 ...
|
27 |
Of running multiple regexp at once
|
gilgil | 70802 | | Jan 01, 2015 |
http://fulmicoton.co-m/posts/multiregexp/-
|
26 |
[network] nfqueue
|
gilgil | 70800 | | Nov 08, 2014 |
Using NFQUEUE and libnetfilter_queue https://home.regit.o-rg/netfilter-en/using-nfqueue-and-libnetfilter_queue/
|
25 |
[etc] Markdown
|
gilgil | 70790 | | Nov 27, 2014 |
[Markdown Basics] https://help.github.-com/articles/markdow-n-basics/ [Online Markdown Editor] http://dillinger.io/-
|
24 |
How to use meta class in C++
|
gilgil | 70788 | | 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. ...
|
23 |
qdir_test for qt
|
gilgil | 70779 | | 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...
|
22 |
network layer protocol constants
|
gilgil | 70779 | | 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 ...
|
21 |
qmake.conf for msvc2008
1
|
gilgil | 70775 | | 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...
|