공지

2006년 9월 24일 일요일

ㅋㅋ 간만에 네이버가 머리 썻네

의외로 요새 네이버 댓글을 보는 시간이 늘었다. 내용도 재밌거니와 낚시글등의 행태를 지켜보는 재미도 쏠쏠하기 때문이다. 네이버 추천수 올리기 낚시글때문에 은근히 댓글꾼한테 원성이 자자했는데... 대비책으로 네이버가 요걸 했다... ㅎㅎ 왼지 정두사마가 생각난다...

http://news.naver.com/nboard/read.php?board_id=news_notice&nid=79

정두사마:  http://gmarket.tistory.com



2006년 9월 22일 금요일

2% 부족한 총각이구나... ㅠㅠ 나는

http://gmarket.tistory.com/67

흠 원글을 보고 싶네.....

느낀 점:

불륜.....하지 말자......
내가 당하고 있는 고통을 호소하기 전에 그 고통이 어디서 나왔는지 파악해보자...
 

2006년 9월 14일 목요일

[펌] php final 메소드 register_shutdown_function

As Andrew states below, it's IMPERATIVE that you use the imagedestroy() function. But your script may abort before it reaches the call to imagedestroy() (for example the user may click the browsers 'stop' button). In this case the default PHP behaviour is to abort the script, never reaching your call to imagedestroy().
One way of doing it (the one which works very well for me) is with register_shutdown_function():


<?
function shutdown_func() {
global $img;
if($img)
imagedestroy($img);
}
register_shutdown_function("shutdown_func");
$img = imagecreate...(...);
... // manipulate image
// normally I'd need the following line, but now it's handled by shutdown_func()
// imagedestroy($img);
?>


2006년 9월 3일 일요일

이상한 나라의 자바스크립트(2)

<html>
<head>
<script type="text/javascript">
var a = function (){
alert("a is called");
}
var b = undefined;
var sometest = b||a;
alert(sometest);
</script>
</head>
<body>

</body>
</html>



위에 코드에서 보면
sometest는 일반적으로 Boolean 값이 나와야 할 것이다.

msdn을 보시면..

그런데~~!! 결과를 보면 ~!!!

" || " operator 가 다음과 같이 작동 하는 것 같다..

obj || obj2 :
1) obj 가 true로 판별되면(msdn) obj를 리턴  
2) obj 가 false, obj2 가 true 면 obj2 를 리턴
3) 둘다 false 면 false?( 귀찬아서 확인 안해봄)

정말 이상한 나라의 자바 스크립트.....