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)
75339
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
The difference between global object and static object.
4
gilgil
89670
Sep 11, 2011
[StaticObject] [StaticObject.h] class StaticObject { public: static StaticObject& instance(); }; [StaticObject.cpp] StaticObject& StaticObject::instan-ce() { static StaticObject staticObject; // --- (1) --- return s...
59
The difference of calling virtual function in constructor and destructor between C++ and Pascal.
1
gilgil
116454
Sep 03, 2011
[CPP] - ECX register is used for object pointer. class Base { public: Base() { foo(); mov ecx,dword ptr [this] // ecx <- object pointer call Base::foo (4111A9h) // direct call } virtual void foo() { ...
58
How to overload new and delete operator in C++
gilgil
79293
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...
57
Running specific test units selected by their name
1
gilgil
78324
Sep 02, 2011
> The Unit Test Framework > User's guide > Runtime configuration > Run by name Running specific test units selected by their name In regular circumstances test module execution initiates testing of a...
56
How to demangle class name using boost
2
gilgil
77447
Aug 31, 2011
[Source] #include <boost/units/detail/u-tility.hpp> #include <iostream> #include <typeinfo> namespace bud = boost::units::detail-; using namespace std; namespace ns { class MyClass {}; struct MyStruct {}; } void test() { cout << "i...
How to remove ^M from file
gilgil
75339
Aug 29, 2011
In vi editor, do the following: :g/^M/s/// ^M has to be entered with the key strokes "ctrl-v followed by ctrl-m".
54
How to remove folders recursively
gilgil
76119
Aug 27, 2011
[Linux] find . -name .svn -exec rm -rf {} \; [Windows] for /d /r . %d in (.svn) do @if exist "%d" rd /s/q "%d" However, you can use my tool "rm_folder". http://www.gilgil.ne-t/9075
53
malloc_test
gilgil
75412
Aug 15, 2011
[Source code] #include <list> #include <stdlib.h> #include <stdio.h> void usage() { printf("malloc test made by gilgil\n"); printf("syntax : malloc_test <count> <size1> <size2> ... \n"); printf("example : malloc_test 10 ...
52
Default STL Allocator
gilgil
94050
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...
51
cache test
gilgil
75116
Aug 10, 2011
.. cache test source code files.cache.zip
50
How to measure time difference
gilgil
106723
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...
49
Add make option in bashrc file(Ubuntu)
gilgil
97956
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 ...
48
Write floating point variable information with sign, exponent and significand.
1
gilgil
85014
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 ...
47
How to disable other adapters on Windows
gilgil
179419
Jun 29, 2011
netsh interface isatap set state disabled netsh interface teredo set state disabled netsh in 6to4 set state disable
46
boost serialize example
gilgil
104006
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 ...
45
Sound Processing Library(soundtouch)
gilgil
79293
Jun 09, 2011
http://www.surina.ne-t/soundtouch
44
Photoshop on the web
gilgil
118400
Jun 07, 2011
http://pixlr.com/edi-tor
43
How to make soft AP on Windows7
gilgil
73940
May 07, 2011
[install] netsh wlan set hostednetwork mode=allow "ssid=gilgil" "key=1234567890" keyUsage=persistent [uninstall] netsh wlan set hostednetwork mode=disallow [start] netsh wlan start hostednetwork [stop] netsh ...
42
Network Device Icon ( iconworld_ppt_090313.ppt )
gilgil
101731
Jun 18, 2010
from : Siemens
41
An efficient way to pass a big-sized string into a function.
gilgil
77966
May 06, 2010
Suppose that there exists a big-sized string, and I would pass this string variable into a specific function. What will be the best way for speed? [Test] 1. Make 10,000,000 byte length string varia...
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