Apr 30
alonesGoogle Google, google personalized homepage, goolge talk, 구글
음 구글 공식 블로그에 구글 개인화 페이지에 구글톡을 붙였다고 나옵니다.
그래서 당장 해봤는데…
으흠흠… Gadget은 잘 붙었는데 로그인이 안되네요 -_-;; 제 개인화 페이지면 바로 로그인되어야 할 것 같은데.. 흠.. 다른 분들도 그런가요?
From:
http://googleblog.blogspot.com/2007/03/talk-on-your-personalized-homepage.html
Apr 30
alonesGoogle goolge, goolge docs & spreadsheets, goolge presentation, 구글
구글이 Google Docs & Spreadsheets에 presentaion (파워포인트 겠죠)를 추가한답니다.
올 여름 까지 추가한다고 하는데.. 기대 됩니다.
현재 Docs도 여러 명이서 문서 작업을 공동으로 할 때 유용하던데 (wiki와는 좀 다른 느낌인 것 같습니다.)
wiki와 스프링노트 그리고 Goolge Docs & Spreadsheets까지..
목적에 맞게 잘 쓰면 되겠죠~
Ref: http://googleblog.blogspot.com/2007/04/were-expecting.html
Apr 30
alonesProgramming/C/C plus plus file i/o, fstream, iostream, STL
※ 예저에 쓴 글인데 팀 블로그로 보내기 위해서 갱신했습니다.
ifstream의 경우 getline()으로 end of file로 가거나 stream이 bad state가 되었을 경우 std::ifstream::clear()를 불러주어야 한다는 내용.
-_-;; 첨엔 왜 그런지 몰라서 fstream을 close해주고 다시 열어서 사용했었다. -_-;; 바보…
Doubt about std::ifstream’s getline() and seekg() |
All 3 messages in topic – 트리로 보기 |
 |
Hi, All.
(VC++6.0) I found some strange thins when using getline() and seekg() of std::ifstream.
After the file position of an open file was shift to the end of the file, seekg() did not work rightly. (i.e. I could not move the file position to the begin or some position using seekg())
see the following example code.
std::ifstream fStream(“a.dat”, std::ios::in);
fStream.seekg(3, std::ios::beg); pos = fStream.tellg(); //<— I checked if the postion is rigglty moved and checked again by getLine().
while( !fStream.eof() ) { fStream.getline(bufff, MAX_LINE); …..
fStream.seekg(3, std::ios::beg); pos = fStream.tellg(); //<— the position is move to the 3 from the begin. //in fact, the fstream’s postion pointed at the end of the file.
if( fStream.eof() ) std::cout<<”the end of this filen”; <—- the string was printed.  .
?? So. When the file position is shifted to the end of a file by using getline(), I CAN NOT move the file position???? (In this case, To go to the fist position of the file, I closed the opened file then I reopened the file).
And for ur imformation, In case of std::ofstream, seekp() was simlar to the above seekg() of std::ifstream. After the position was moved to end by getline(), though I move the position by using seekp(), tellp() returned ‘-1′.
|
 |
“Assertor” <gidae…@gmail.com> schrieb im Newsbeitrag news:1140935134.964668.236670@j33g2000cwa.googlegroups.com…
> Hi, All.
> (VC++6.0) > I found some strange thins when using getline() and seekg() of > std::ifstream.
> After the file position of an open file was shift to the end of the > file, > seekg() did not work rightly. (i.e. I could not move the file position > to the begin or some position using seekg())
> see the following example code.
> std::ifstream fStream(“a.dat”, std::ios::in);
> fStream.seekg(3, std::ios::beg); > pos = fStream.tellg(); //<— I checked if the postion is rigglty > moved and checked again by > getLine().
> while( !fStream.eof() ) > { > fStream.getline(bufff, MAX_LINE); > ….. > }
Once a stream has been put into a bad state it remains in that state until it is cleared. So when you have detected the end of a file or some error, clear that exceptional state. In your code, add fStream.clear() after the loop above.
HTH Heinz
|
 |
Thanks Sir.
I resolved my problem by adding fStream.clear() according to what u adviced.
|
Apr 30
alonesProgramming AJAX
AJAX에 대해서 덜 치명적인 7가지 문제점과 치명적인 7가지 문제점에 대해 기술해둔 글이다.
AJAX에 대해 잘 알지 못하고 읽을 꺼리로 스크랩한 거니 아래 걸에 대해서 반박하셔도 대응 못합니다. 흐흐
From: BuilderAU
http://www.builderau.com.au/program/ajax/soa/The-Seven-Deadly-Sins-of-AJAX-application-development/0,339028327,339274985,00.htm
The Seven Deadly Sins of AJAX application development
The AJAX bandwagon is a good place to be. It takes you to faster, more efficient, more dynamic apps. But it also has pitfalls all its own.
At first blush, those pitfalls may seem avoidable through sheer common sense, and to a degree, that’s true. But AJAX apps bristle with architectural differences from its DHTML forebears. No matter how much common sense you bring to the application development task, it is still good to learn from the mistakes of those who have preceded you. We’ll call these mistakes our Seven Deadly Sins, but they are by no means the whole story.
In fact, before you commit any of the deadly sins, you’re much more likely to commit a few lesser sins. So we’ll start with those. These are the ones that make everybody’s list. These mistakes are so common that you can find most of them in a simple Google search.
…
Apr 29
alonesProgramming/C/C plus plus class, volatile, volatile class method, volatile function, volatile member function, volatile method
volatile이 변수나 struct, class에서 사용될 때는 알고 있었던 것 같은데
(물론 ㅡㅡ; device driver 개발이나 thread programming을 심하게 하지 않으니 잘 쓰진 않는다.)
※아래와 같은 글들은 (복사되고 참조되어서 흔히 이 찾아 볼수 있는 페이지 일 것이다.
volatile 뿐만아니라 register, mutable에 대해서도 잘 언급되어있따.
http://blog.empas.com/naruma/19059822
http://blog.naver.com/gugudory?Redirect=Log&logNo=40018506409
volatile이 class member function에 사용될 때의 의미에 대해서는 명확하게 나와있는 페이지를 찾기 힘들었다.
(짐작은 const가 class member function에 붙을 때 처럼 할 수 있겠지만)
결론은 class member function에 volatile이 붙으면 class member function의 주인인 class 자신 (this pointer)에 volatile을 붙이는 것과 같은 의미이다.
즉, volatile이 붙은 class member function 내에서 사용하는 class member variable들은 volatile 속성 (즉 compiler에 의해서 optimizing되지 않고 매번 메모리에서 직접 값을 가져오는)을 가지는 것이다.
-_-;; 명확하게 아래 msdn에 나와있다. (여러 군데서 찾아봤지만 역시 msdn이 쵝오인거 같다)
http://msdn2.microsoft.com/en-us/library/ytk2ae82(vs.71).aspx
in my wiki: http://alones.byus.net/moniwiki/wiki.php/volatile_function
Older Entries