2012년 6월 27일 수요일

사람

변상욱 기자의 블로그에서 본 글. 그 때나 지금이나 비슷했나보다

17 세기를 살았던 어느 유학자가 사람 쓰는 일로 이런 글을 남겼군요.
1. 사람의 장점을 처음부터 안다하지 마라. 그 사람을 써 봐야 비로소 장점이 드러난다.
2. 사람의 장점만 취하면 된다. 단점은 알 필요 없다.
3. 자기 마음에 맞는 사람만 쓰려고 하지 말라.
4. 작은 허물을 탓할 거야 없지만 다만 일을 소중히 여기지 않는다면 그건 안된다.
5. 사람을 쓸 때는 그 일을 그에게 완전히 맡겨라.
6. 위에 있는 사람은 밑에 있는 사람과 재주를 겨뤄서는 안된다.
7. 인재라도 반드시 나쁜 버릇 하나는 있게 마련. 그것을 꺼려 인재를 버려서는 안된다.
8. 이렇게 사람을 잘 쓰고자 애쓰다 보면 때에 따라 일을 적절히 처리하는 인물이 반드시 있게 마련이다.
CBS보도국 변상욱 기자
http://blog.nocutnews.co.kr/sniper492.blog$1/217369

2012년 6월 26일 화요일

One-way ANOVA 와 Univariate

아래 페이지에서 찾게 된 글.
필요할 때만 공부해서 통계는 안 느는거 같다. -_-
http://answers.yahoo.com/question/index?qid=20080518160556AAlpG5F


It is the same thing. 'Univariate' means one IV, as does 'one-way'.

Edit
Repeat: its the same thing. SPSS gives you two ways of doing a 1-way ANOVA. As you are a novice just use the 'One Way' option as it gives you fewer option boxes and make you less confused. ANOVA and regression appear under the GLM option as they both fall under this umbrella term (as do many other tests, but that's another story).





2012년 6월 24일 일요일

OpenCV in iOS

XCODE 4.2로 업그레이드를 하기전에, 좀 더 심사숙고했어야 하는데..
어쨋든 기존 프로젝트 섿업을 다시 한번 손봐줘야했다.

마지막으로 남은 OpenCV 문제.




Statement-expressions are allowed only inside functions
../externalLibs/opencv/include/opencv2/core/core.hpp:437: confused by earlier errors, bailing out


core.hpp 에서 MIN 함수에서 문제가 생기네..
해결법이 다음 링크에 나와있긴 한데, 나의 경우는 잘 안되었음.
http://computer-vision-talks.com/2011/01/using-opencv-in-objective-c-code/



이럴때는 간단히 아래처럼 MIN 을 정의를 undef하면 됨.
뭐 나중에 opencv내에서 정의하겠지..


#undef MIN
#include

굳이 나중에 문제가 생긴다면, 재정의하면 되고.
#define MIN(a, b)  (((a) < (b)) ? (a) : (b))

2012년 6월 17일 일요일

A user agent sniffer

User agent sniffing

The term user agent sniffing refers to the practice of Web sites showing different content when viewed with a certain user agent. On the Internet, this will result in a different site being shown when browsing the page with a specific browser. A useful example of this is Microsoft Exchange Server 2003's Outlook Web Access feature. When viewed with Internet Explorer 6 (or newer), more functionality is displayed compared to the same page in any older browsers, because older browsers could not render the same content.[citation needed] User agent sniffing is mostly considered poor practice, since it encourages browser-specific design and penalizes new browsers with unrecognized user agent identifications. Instead, the W3C recommends creating HTML markup that is standard,[7] allowing correct rendering in as many browsers as possible, and to test for specific browser features rather than particular browser versions or brands.[8]


Ray 형때문에 simplexml_load_file 을 쓰다가 알게된 것.
위의 글을 읽어보니 그쪽 서버가 윈도우라는게 의심이 간다.
어쨋든 User agent sniffing은 표준과는 동떨어진 기술.


If you find that you are receiving 500 errors with simplexml_load_file() but you can access the xml/rss feed manually through a browser, your script is probably being blocked by a user agent sniffer.

Add this code before your xml call to remedy this issue



ini_set("user_agent","Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)");
ini_set("max_execution_time", 0);
ini_set("memory_limit", "10000M");

$rss = simplexml_load_file($feed_url);

?>


http://php.net/manual/en/function.simplexml-load-file.php

2012년 6월 15일 금요일

황금의 성

좋은 세상이다. 휴대폰에서 예전 오락실 게임을 다 하고..ㅎㅎ
50원 넣고 오락하던 예전의 기억이 떠오른다.

며칠간 짬짬히 해서 드디어 끝을 봤다.

끝 왕이 일어나는 순간 정확히 가격해서 한방에 끝내야함.
어디선가 본 것처럼 운이 정말 잘 따라야함. 



중간에 만들어본 무지개.