'Programming'에 해당되는 글 1762건

  1. 2016.10.10 php 구버전 post 변수.
  2. 2016.09.07 glxgears 소스
  3. 2016.07.18 cpp this
  4. 2016.07.18 stitch / opencv / python
  5. 2016.07.18 class 기본 접근제한자
  6. 2016.07.18 cpp 매크로 __PRETTY_FUNCTION__
  7. 2016.07.14 php hiphop
  8. 2016.07.14 opencv stitch
  9. 2016.07.13 opencv rtsp
  10. 2016.07.12 cpp dlopen / gcc -l
Programming/php2016. 10. 10. 17:58

그냥 막 보냈었구나...


<INPUT type=password name=pass size=8 maxlength=8>

<INPUT type=text name=title size=60 maxlength=35> 

[링크 : http://ezphp.net/lecture/lecture26.php]


<?

//데이터 베이스 연결하기

include "db_info.php";


$query = "insert into testboard values ('','$name','$email','$pass','$title','$comment',now(),'$REMOTE_ADDR',0)";

$result=mysql_query($query, $conn); 

[링크 : http://ezphp.net/lecture/lecture27.php]


헐.. 저런식의 문법으로 된거라면...

이건 무슨.. PHP3 시절인건가?!?! ㄷㄷㄷ

$_POST

$HTTP_POST_VARS [deprecated]


(PHP 4 >= 4.1.0, PHP 5, PHP 7)

$_POST -- $HTTP_POST_VARS [deprecated] — HTTP POST variables 

[링크 : http://php.net/manual/en/reserved.variables.post.php]

'Programming > php' 카테고리의 다른 글

php get / post 변수 그리고 global 변수  (0) 2016.10.11
php 디버그 메시지 출력하게 하기  (0) 2016.10.10
php hiphop  (0) 2016.07.14
php chunked encdoing  (0) 2015.02.02
PHP 웹 다국어 지원 트릭  (0) 2015.02.02
Posted by 구차니
Programming/openGL2016. 9. 7. 14:46

웬지 벤치마크 용으로 쓰이는 예제

카메라 위치 라던가 애니메이션이라던가

기어 크기라던가 중심으로 분석해봐야지


[링크 : https://fossies.org/dox/mesa-demos-8.3.0/glxgears_8c_source.html]

'Programming > openGL' 카테고리의 다른 글

openGL Stereoscopic  (0) 2018.04.25
openGL cardboard lens distortion  (0) 2018.04.25
opencv opengl  (0) 2016.02.26
opengl camera의 이해  (0) 2016.02.02
myAHRS cube 예제  (0) 2016.02.02
Posted by 구차니
Programming/C++ STL2016. 7. 18. 20:57



[링크 : http://www.learncpp.com/cpp-tutorial/8-8-the-hidden-this-pointer/]


문득 this를 쓰면 잘못된게 아닐까? 라는 생각

문법으로도 지원하는 자기자신을 의미하지만

크게 쓸 의미도 없고 (명시적으로 표기한다면야 머...)

굳이 명시적으로 써야할 멤버 함수 인자의 명칭과 클래스 멤버 변수가 충돌할경우?


[링크 : http://stackoverflow.com/questions/6779645/use-of-this-keyword-in-c]

[링크 : http://stackoverflow.com/questions/2337540/when-should-you-use-the-this-keyword-in-c]

'Programming > C++ STL' 카테고리의 다른 글

c++ 함수 인자 기본값  (0) 2017.11.08
cpp string compare 와 ==  (0) 2017.01.31
class 기본 접근제한자  (0) 2016.07.18
cpp 매크로 __PRETTY_FUNCTION__  (0) 2016.07.18
cpp dlopen / gcc -l  (0) 2016.07.12
Posted by 구차니
Programming/openCV2016. 7. 18. 19:01

라즈베리에서 돌릴려고 하니 이미지가 큰지 segmentation fault가 뜨네 ㅠㅠ



소스는 해당 링크에서 다운로드..

클래스는 소스가 웹상에 없으니 이메일 써주고 받는게 속 편함

[링크 : http://www.pyimagesearch.com/2016/01/11/opencv-panorama-stitching/]



ImportError: No module named cv2

요런 에러 뜨면 패키지가 덜 설치 된거니 추가 설치 필요함


$ sudo apt-get install libopencv-dev python-opencv

[링크 : http://raspberrypi.stackexchange.com/questions/29148/python-cannot-import-opencv-module]

'Programming > openCV' 카테고리의 다른 글

openCV release mode와 debug mode 속도 차이  (0) 2018.03.19
openCV multicore support  (0) 2018.03.19
opencv stitch  (0) 2016.07.14
opencv rtsp  (0) 2016.07.13
openMP + openCV 실패한 이유가..  (0) 2015.11.27
Posted by 구차니
Programming/C++ STL2016. 7. 18. 17:47

말은 거창한데..


결론

class 내에 기본적으로 모든 유형에 대해서 

private:로 설정됨


[링크 : http://www.cplusplus.com/doc/tutorial/classes/]



근데 이런것도 정리 안해놧었나 -ㅁ-?!?!??

'Programming > C++ STL' 카테고리의 다른 글

cpp string compare 와 ==  (0) 2017.01.31
cpp this  (0) 2016.07.18
cpp 매크로 __PRETTY_FUNCTION__  (0) 2016.07.18
cpp dlopen / gcc -l  (0) 2016.07.12
cpp thread.... / pthread  (0) 2016.07.11
Posted by 구차니
Programming/C++ STL2016. 7. 18. 17:39

__FUNC__

는 매크로에서 지원하는 함수명 출력명인데..

클래스를 포함하려면


비표준이지만(gcc/clagn)

__PRETTY_FUNCTION__

를 쓰면 클래스:함수명 이렇게 나온다고 한다.


[링크 : http://stackoverflow.com/questions/11988895/g-function-on-methods-with-class-name]


$ cat func.cpp

#include <iostream>


using namespace std;


class AAA

{

public:

        int a;

        int get();

        int set(int val);

};


int AAA::get()

{

        cout << __func__ << endl;

        cout << __PRETTY_FUNCTION__ << endl;

        return a;

}


int AAA::set(int val)

{

        cout << __func__ << endl;

        cout << __PRETTY_FUNCTION__ << endl;

        a = val;

}


int main()

{

        AAA a;

        a.set(1);

        a.get();

        return 0;


$ g++ func.cpp

$ ./a.out

set

int AAA::set(int)

get

int AAA::get()


'Programming > C++ STL' 카테고리의 다른 글

cpp this  (0) 2016.07.18
class 기본 접근제한자  (0) 2016.07.18
cpp dlopen / gcc -l  (0) 2016.07.12
cpp thread.... / pthread  (0) 2016.07.11
객체지향과 if문?  (0) 2016.07.11
Posted by 구차니
Programming/php2016. 7. 14. 20:47

페이스 북에서 먼가 한다고 듣긴했었는데..

php 를 미리 컴파일 해서 더 빠른 서비스를 위한 녀석?

zend optimzer라던가 opcache야 

서비스 재시작하면 메모리에 있던거라 날아 가지만

얘네는 파일로 아예 저장해서 적용 하는 듯?


[링크 : http://hhvm.com/blog/2027/faster-and-cheaper-the-evolution-of-the-hhvm-jit]

[링크 : http://stackoverflow.com/questions/1408417/can-you-compile-php-code]

[링크 : https://en.m.wikipedia.org/wiki/HipHop_for_PHP]

'Programming > php' 카테고리의 다른 글

php 디버그 메시지 출력하게 하기  (0) 2016.10.10
php 구버전 post 변수.  (0) 2016.10.10
php chunked encdoing  (0) 2015.02.02
PHP 웹 다국어 지원 트릭  (0) 2015.02.02
php 콘솔 디버깅  (0) 2015.01.13
Posted by 구차니
Programming/openCV2016. 7. 14. 11:38

rtsp로 받아서 stitch 한번 해볼까나

(cpu의 온기가 남아있습니다?)


[링크 : http://www.pyimagesearch.com/2016/01/11/opencv-panorama-stitching/]

[링크 : http://study.marearts.com/2013/11/opencv-stitching-example-stitcher-class.html]

[링크 : http://docs.opencv.org/2.4/modules/stitching/doc/stitching.html]

'Programming > openCV' 카테고리의 다른 글

openCV multicore support  (0) 2018.03.19
stitch / opencv / python  (0) 2016.07.18
opencv rtsp  (0) 2016.07.13
openMP + openCV 실패한 이유가..  (0) 2015.11.27
openMP + openCV 미스테리..  (0) 2015.11.09
Posted by 구차니
Programming/openCV2016. 7. 13. 18:37

예제는 mjpeg 같은데 h264 도 되려나?

다만 라즈베리 openmax 지원여부는 별개일 기분?


[링크 : http://blog.daum.net/pg365/195]

'Programming > openCV' 카테고리의 다른 글

stitch / opencv / python  (0) 2016.07.18
opencv stitch  (0) 2016.07.14
openMP + openCV 실패한 이유가..  (0) 2015.11.27
openMP + openCV 미스테리..  (0) 2015.11.09
휴 모멘트?  (0) 2015.10.20
Posted by 구차니
Programming/C++ STL2016. 7. 12. 08:41

dlopen은 c 시절의 녀석이라 class 자체를 끌어올수는 없다.

[링크 : http://www.joinc.co.kr/w/Site/C++/Documents/Dynamic_Class_Loading]


다만.. gcc 에서 컴파일시 -l 링커이름으로 주면 바로 사용가능

[링크 : http://stackoverflow.com/questions/58058/using-c-classes-in-so-libraries]




근데 문득.. 둘다 so인데

dlopen과 -l을 통한것의 차이를 모르겠네?

'Programming > C++ STL' 카테고리의 다른 글

class 기본 접근제한자  (0) 2016.07.18
cpp 매크로 __PRETTY_FUNCTION__  (0) 2016.07.18
cpp thread.... / pthread  (0) 2016.07.11
객체지향과 if문?  (0) 2016.07.11
cpp 클래스 구성  (0) 2016.07.11
Posted by 구차니