100 |
Change qmake.conf according to your MSVC 2008
|
gilgil | 84808 | | Nov 21, 2011 |
[location] C:\QtSDK\Desktop\Qt\4.7.4\msvc2008\mkspecs\win32-msvc2008\qmake.conf C:\Qt\4.7.4\mkspecs\win32-msvc2008\qmake.conf [changed] QMAKE_CC = cl QMAKE_LEX = flex QMAKE_LEXFLAGS = QMAKE_YACC = byacc QMA...
|
99 |
Write floating point variable information with sign, exponent and significand.
1
|
gilgil | 84679 | | Jul 26, 2011 |
[Source Code] #include <iostream>
#include <string>
typedef unsigned int uint32;
std::string tobin(int significand)
{
std::string res = (significand == 0) ? "1" : "1.";
int mask = 0x00400000;
while (significand ...
|
98 |
Compiler Directive
|
gilgil | 84434 | | Oct 17, 2011 |
/ ---------------------------------------------------------------------------- // Compiler Version // ---------------------------------------------------------------------------- /* __BORLANDC__ 0x0520 for C++Builder 1 0x0530 for C++Builder...
|
97 |
Single precision floating-point format
1
|
gilgil | 83783 | | Nov 08, 2011 |
[Source] //
// Single precision floating-point format
//
// http://en.wikipedia.-org/wiki/Single_prec-ision_floating-point_format
//
// ---------+------------------+-------------------------+--------------------------------------------------...
|
96 |
Does getsockname API return its correct local IP address during TCP connecting state?
|
gilgil | 83633 | | Apr 14, 2010 |
[Question] 1. Bind remote IP and remote Port(do not bind local IP and local Port) on TCP client socket handle. 2. Call "connect" API. 3. On the other thread after "connect" API is called,...
|
95 |
[ssl] How to install root certificate
|
gilgil | 83573 | | Aug 05, 2015 |
sudo mkdir /usr/share/ca-certificates/extra sudo cp root.crt /usr/share/ca-certificates/extra sudo dpkg-reconfigure ca-certificates
|
94 |
make -t
|
gilgil | 83553 | | Sep 23, 2011 |
$ g++ --version g++.exe (GCC) 4.5.2 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANT...
|
93 |
[network] libnl example
|
gilgil | 82900 | | Nov 14, 2014 |
http://src.carnivore-.it/users/common/nla-ddrs/tree/nladdrs.c
|
92 |
[linux] remote packet capture
|
gilgil | 82734 | | Aug 15, 2016 |
sshpass -p toor ssh -l root 10.1.1.12 tcpdump -nn -U -s0 -w - -i tap0 'not port 22' | wireshark -k -i - http://stackoverflow-.com/questions/19597-903/how-to-capture-remote-system-network-traffic
|
91 |
The difference between global and static objects in run time
|
gilgil | 82300 | | Apr 21, 2010 |
I do not know the difference between global and static objects execution so far. They differ a little in run time. [Code] class Object
{
public:
char* name;
Object(char* name) { printf("Obje...
|
90 |
Virtual function call in constructor and destructor in C++
|
gilgil | 82014 | | Mar 13, 2010 |
See the following source code. Constructor, destructor and foo function contain the same codes. { foo(); // general function v_foo(); // virtual function } But they produce a little different assembly...
|
89 |
voidrealms
|
gilgil | 81390 | | Nov 28, 2011 |
http://www.voidrealm-s.com/
|
88 |
[ubuntu] How to disable checksum offload
|
gilgil | 81054 | | Oct 21, 2015 |
http://ubuntuforums.-org/showthread.php?t=2028534 sudo ethtool -K eth0 tx off rx off
|
87 |
How many instances of template static member exist?
|
gilgil | 79779 | | Mar 07, 2010 |
[Question]
How many instances of template static member exist? Guess the result of the following code.
(1) 3 3 3 (2) 1 2 3
#include <stdio.h>
template <class T>
class TemplateObject
{
public:
stati...
|
86 |
[linux] network configuration(change device name)
|
gilgil | 79702 | | Dec 01, 2016 |
You can change the device name by defining the name manually with an udev-rule. For example: /etc/udev/rules.d/10--network.rulesSUBSYST-EM=="net", ACTION=="add", ATTR{address}=="aa:bb:cc:dd:ee:ff&qu-ot;, NAME="net1"...
|
85 |
boost library link test in mingw
|
gilgil | 79633 | | Oct 14, 2011 |
[mingw version] [g++ version] $ g++ --version g++.exe (GCC) 4.5.2 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warran...
|
84 |
[qt] How to run qmake in command line
|
gilgil | 79250 | | Sep 16, 2015 |
cd /usr/lib/x86_64-linux-gnu/qtchooser sudo touch default.conf sudo gedit default.conf /opt/Qt/5.7/gcc_64/b-in /opt/Qt/5.7/gcc_64/l-ib
|
83 |
[qt] .gitignore file for Qt
|
gilgil | 79064 | | Feb 22, 2016 |
[How to create .ignore file for qt] Qt Creator - File - New - Non Qt Project - Plain C++ Application - Add to version control(Git) # This file is used to ignore files which are generated...
|
82 |
[qt][android] how to run app in command line
|
gilgil | 78963 | | Nov 02, 2014 |
If project name is "untitied", you can run android application in the following command. adb shell am start -n org.qtproject.exampl-e.untitled/org.qtpro-ject.qt5.android.bin-dings.QtActivity
|
81 |
How to overload new and delete operator in C++
|
gilgil | 78961 | | Sep 03, 2011 |
[debug_new.h] #ifndef __DEBUG_NEW_H__
#define __DEBUG_NEW_H__
#include <malloc.h>
#include <stdio.h>
void* operator new(size_t size)
{
void* res = malloc(size);
printf("void* operator new(size_t size) %u %p\n", s...
|