일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
- django
- QT
- management
- Kuala Lumpur
- Italy
- ubuntu
- RFID
- Malaysia
- France
- Book
- program
- hadoop
- Artificial Intelligence
- comic agile
- leadership
- Book review
- erlang
- history
- Linux
- AI
- agile
- MySQL
- Software Engineering
- essay
- Programming
- web
- Java
- hbase
- programming_book
- Python
- Today
- Total
목록Programming (347)
http://www.linuxserver.org/linux/fedora/installation-of-tigervnc-server/ http://vnc.devloop.org.uk/ http://www.tech-recipes.com/rx/2768/ubuntu_what_version_am_i_running/ http://winswitch.org/downloads/debian-repository.html?dist_select=lucid 1. install $ sudo su # wget -O - http://winswitch.org/gpg.asc | apt-key add - # echo "deb http://winswitch.org/ lucid main" > /etc/apt/sources.list.d/winswi..
http://subversion.tigris.orghttp://magp.ie/2010/03/25/revert-or-rollback-a-svn-revision/http://seedraker.tistory.com/28http://asbear.tistory.com/entry/SVN-사용시에-branch와-merge-잘-이용하기 http://asbear.tistory.com/entry/SVN-branch-and-merge-쉽게-활용하기-2http://asbear.tistory.com/entry/SVN-trunk-변경사항-되돌리기-SVN-Rollback add $ svn add src/xdt/apr-1.3.5 $ svn ci src/xdt/apr-1.3.5 -m "add library files for xtd" ..
출처: http://yesarang.tistory.com/70 //Runnable.h #ifndef_RUNNABLE_H #define_RUNNABLE_H class Runnable{ public: virtual void Run() = 0; }; #endif //Thread.h #ifndef_THREAD_H #define_THREAD_H #include "Runnable.h" class Thread:public Runnable{ public: Thread(); Thread(Runnable* pRunnable); void Start(); void Wait(); virtual void Run(); private: pthread_t_thread; Runnable*_runnable; static void* Mai..
출처: http://yesarang.tistory.com/69 2011/05/24 - [Programming/C++] - C에서 C++ 코드 호출 //callable.h #ifndef_CALLABLE_H #define_CALLABLE_H #ifdef__cpluscplus extern "C"{ #endif void* UsefulCppClassWrappingFunction(void* pInst); #ifdef__cplusplus } #endif #endif //callable.cpp #include #include "c2cpp.h" using namespacestd; extern "C" { void* UsefulCppClassWrappingFunction(void* pInst) { cout
출처: http://yesarang.tistory.com/69 //thread.c #include #include #include //for sleep() #include //for free() void* start_routine(void* data) { inti=0; printf("starts to run\n"); while ( ++i < 20 ){ printf("%d\n", i); sleep(1); } if ( data != NULL ) free(data); returnNULL; } int main(void) { pthread_tthrd; intnr=0; void*data; //created thread executes start_routine nr=pthread_create(&thrd, NULL, ..
2011/05/24 - [Programming/C++] - include guard 2011/05/24 - [Programming/C++] - include guard 출처: http://yesarang.tistory.com/67 include guards: 이미 읽은 헤더 파일도 다시 읽음 #pragma once: 각 파일별로 프리프로세서가 include한 상태를 기억하므로 한 번 읽은 헤더 파일은 읽지 않음. 즉 컴파일 속도 유리 include guards: 각 헤더 파일에 대응하는 매크로 이름이 서로 충돌할 가능성이 있으므로 나름의 include guards 명명 규칙이 필요 #pragma once: 프리프로세서에서 #pragma once 처리에 버그가 있거나, 파일 시스템 상에서 파일의 동일성을 ..
2011/05/24 - [Programming/C++] - C/C++ mixed programming 2011/05/24 - [Programming/C++] - C/C++ mixed programming 출처: http://yesarang.tistory.com/66 이미 존재하는 C library를 C++에서 사용하는 경우 //max.h int max(int a, int b); //cppmain.cpp #include extern "C" { #include "max.h" } using namespace std; int main(void) { intim=max(100, 30); cout
2011/05/24 - [Programming/C++] - C/C++ mixed programming not to use name mangling C library 작성시 나중에 C++에서 활용될 가능성을 미리 염두해 두고, 헤더 파일 처음과 마지막에 extern "C" {}가 조건부 컴파일되게 한다 //externc.cpp #include using namespace std; extern "C" int max(int a, int b) { if ( a > b )returna; elsereturnb; } int main(void) { intim=max(100, 30); cout
출처: http://yesarang.tistory.com/65 naming mangling //mixed.cpp #include using namespace std; double max(double a, double b) { cout
2011/05/24 - [Programming/C++] - include guard //hdr1.h #ifndefHDR1_H #defineHDR1_H class DummyBase{ private: int_i; public: DummyBase(int i): _i(i){} int Get(){return_i;} void Set(int i){_i=i;} }; #endif //hdr2.h #ifndefHDR2_H #defineHDR2_H #include "hdr1.h" class Dummy: DummyBase{ public: Dummy(int i): DummyBase(i){} int operator() () {returnGet();} int operator() (int multi){returnGet() * mul..