Skip to content
Register
English
Select Language
한국어
中文(中国)
日本語
Español
Русский
Français
中文(臺灣)
Home
Downloads
Communities
Communities(KR)
Test
Search
Communities
Total Articles
180
Join
Login
How to remove ^M from file
gilgil
http://www.gilgil.net/?document_srl=9150
2011.08.29
22:22:26 (*.7.228.40)
75418
In vi editor, do the following:
:g/^M/s///
^M has to be entered with the key strokes "ctrl-v followed by ctrl-m".
You would..
List
No.
Subject
Author
Views
Votes
Date
60
[Qt] QByteArray setRawData example
gilgil
91500
Feb 17, 2014
QByteArray & QByteArray::setRawDa-ta ( const char * data, uint size )Resets the QByteArray to use the first size bytes of the data array. The bytes are not copied. The QByteArray will contain ...
59
C++ Permutation Template Class
gilgil
91660
Jan 20, 2012
[Permutation.h] // ---------------------------------------------------------------------------- // // Permutation Template Class Library // // http://www.gilgil.ne-t // // Copyright (c) Gilbert Lee All rights reserved // // -----------------...
58
[network] how to save a new file when tcpdump file size reaches 10Mb
gilgil
92079
Jul 02, 2017
https://stackoverflo-w.com/questions/2156-7963/how-to-save-a-new-file-when-tcpdum-file-size-reaches-10mb tcpdump -W 5 -C 10 -w capfile What the above command does is create a rotating buffer of 5 files (-W 5) and tcpdump...
57
Default STL Allocator
gilgil
94178
Aug 15, 2011
template<typename T> struct Allocator : public std::allocator<T> { Allocator() { } template<class Other> Allocator( const Allocator<Other>& _Right ) { } inline typename std::allocator<T>::pointer allocate(t...
56
malicious site list
gilgil
96672
May 08, 2013
http://www.selectrea-lsecurity.com/public--block-lists http://www.malwaredo-mainlist.com/hostsli-st/hosts.txt http://www.malwaredo-mains.com/?page_id=66 http://mirror1.malwa-redomains.com/files/-domains.txt http://mirror1.malwa-redomains.com/files/-...
55
Find a bug why run time error occurs.
5
gilgil
97568
Sep 13, 2011
[Quiz] Find a bug why run time error occurs. [Source] #include <iostream> #include <string> using namespace std; #define SAFE_DELETE(A) { if(A != NULL) { delete (A); A = NULL; } } class MyString { public: ...
54
Add make option in bashrc file(Ubuntu)
gilgil
98080
Aug 08, 2011
In linux, when you make cpp project, you might have a case that you are always forced to set default include path and default library path. This is a quick tip for you to solve this problem. original ...
53
[qt][android] Getting Started with Qt for Android
gilgil
101242
Oct 22, 2014
http://qt-project.org/doc/qt-5/androidgs.html
52
Network Device Icon ( iconworld_ppt_090313.ppt )
gilgil
101827
Jun 18, 2010
from : Siemens
51
Distinguish default , explicit and copy constructor and assign operator
gilgil
103597
Sep 12, 2011
[Class] class String { public: // // constructor // String() { cout << "constructor()\n"; } // default constructor String(char* p) { cout << "constructor(char*)\n"; } // explicit constructor String(const char* p)...
50
boost serialize example
gilgil
104224
Jun 10, 2011
Person.h #ifndef PersonH #define PersonH #include <string> // for std::string #include <boost/serialization/-access.hpp> class Person { public: Person(); public: int age; bool sex; std::string name; private: friend class ...
49
[network] snort and suricata
gilgil
104545
Aug 27, 2016
snort_and_suricata(2-016.08.27).odp snort_and_suricata(2-016.08.27).ppt
48
[android] How to Build and Use libnetfilter_queue for Android
gilgil
104835
Nov 01, 2014
http://www.roman10.n-et/how-to-build-and-use-libnetfilter_queue-for-android/
47
How to get best adapter in winpcap automatically
gilgil
105176
Mar 24, 2010
Whenever you use WinPcap, you are forced to select a specific network adapter to capture packets. This sample shows you how to select the best network adapter automatically by using "GetBestInteface"-; win...
46
How to measure time difference
gilgil
106853
Aug 10, 2011
[Windows] #include <windows.h> DWORD begTick = GetTickCount(); foo(); DWORD endTick = GetTickCount(); printf("%d\n", endTick - begTick); [Linux] #include <sys/time.h> struct timeval begTick; gettimeofday(&begTic...
45
The static object difference between local and global
gilgil
106869
Nov 21, 2013
[LocalObject] class LocalObject { static LocalObject& instance(); }; LocalObject& LocalObject::instanc-e() { static LocalObject localObject; // declared as local // --- (1) --- return localObject; // --- (2) --- } ---...
44
When is the object VMT pointer changed in constructor and destructor?
3
gilgil
107291
Oct 12, 2011
[Question] Suppose that C is inherited from B and B is inherited from A. Each class has virtual function(destructor and foo). This means that all classed have their own VMT(VMT for A, VMT for B...
43
How to pass std::string as default parameter
1
gilgil
107528
Oct 18, 2011
When passing std::string is passed, object is copied through a stack. void loadFromFile(std::st-ring fileName); So, parameter is passed in reference type to prevent object copy load in the stack. void loa...
42
Dunkin' Donuts DDoS Attack
gilgil
111063
Jan 05, 2010
terrible :)
41
How to call a constructor on a already allocated memory
gilgil
113873
Feb 22, 2014
[Source] #include <new> #include <VInt> #include <VDebugNew> class MyObj { public: VInt i; public: MyObj() { printf("MyObj::MyObj\n"); } virtual ~MyObj() { printf("MyObj::~MyObj\n"); } void foo() { printf("MyObj::foo...
List
Write
First Page
2
3
4
5
6
7
8
9
Last Page
Subject
Content
Subject+Content
Comment
User Name
Nick Name
User ID
Tag
Search
Cancel
Home
Profile
Contact
Links
Downloads
Communities
Communities(KR)
Test
Close Login Layer
XE Login
User ID
Password
Keep me signed in
Join
Find Account Info
인증 메일 재발송
Close Login Layer