장치 관리자에 반환되지 않는 COM port가 보이지 않아 수동으로 제거할 수 없을 때,
강제로 사용되지 않는 리소스를 보이게 한 후 제거할 수 있다.
http://www.ehow.com/how_5232755_delete-clear-ports-use.html
금요일, 9월 03, 2010
목요일, 10월 22, 2009
Mathtype의 Tex Input 사용하기
Mathtype에서는 여러 단축키를 제공하기도 하지만, Tex 입력 모드를 사용하면 수식을 훨씬 빠르고 편리하게 입력할 수 있다. 컴퓨터를 재인스톨 한 후 오랫만에 수식을 사용하려니 Tex입력이 되지 않는다. 아무리 구글질을 해도 어떻게 세팅을 해주어야 하는지 기억이 나지 않아서 짜증 나던 중, Mathtype의 help를 찾으니 나온다. 프로그램에서 제공하는 Help를 가장 먼저 신뢰할 것!! -_-
위의 그림과 같이 Preference->Workspace preference를 선택하면 아래와 같은 다이얼로그 박스가 나타난다.
위의 다이얼로그 박스에서 ‘Allow TeX language entry from the keyboard’ 옵션을 설정해 주어야 Tex 입력이 Matytype에서 동작한다.
월요일, 7월 13, 2009
Jetico personal firewall made the windows system freeze
며칠 간의 삽질의 원인은 Jetico firewal free version임이 드러났다.
TCP 통신시에 패킷이 firewall을 거치면서 시스템을 먹통이 되게 만드는 듯 하다.
firewall을 Jetico에서 Comodo로 변경하였다.
I was wrong!
My PC froze again, and I googled and found that Jetico personal firewall free version was also problematic.
Only uninstallation is the cure.
-----------------------------------
Unknown freezing of my PC made me crazy for several days.
My PC froze suddenly and I had to do hard-reset.
The event-log had no suspicious records around freezing moment.
At first, I thought that my hard drives had gone bad and ran defrag and chkdsk.
But, they had no fault.
At second, I ran several times virus, spyware, and trojan scanning and it gave no result.
After that, I suspected drivers and updated them to the latest versions.
But, it didn't cure anything.
The point driving me crazy is that I could not know the exact source of the problem.
Then, I came to know that freezing occurred when I was using firefox or chrome browsers.
I tested three browsers but freezing occurred only for firefox and chrome.
But, I did not have the exact answer
because I could not pinpoint when the freezing occurred.
Today, I found a specific web page which make freezing occur!
The web page had a big size animated gif. (maybe it can be a problem)
So, I could test various options about freezing.
I looked up plugins and addons of firefox and found that a octoshape streaming plugin is suspicious.
(Because it was installed for the live Korean baseball game streaming service of Naver.com and they did not support firefox or chrome browsers. Therefore it should not be related with firefox or chrome browsers)
I disabled it and freezing did not occur anymore!
Then I tested the page again making the plug in available.
But the freezing did not occur! It's weird.
I could not know the reason why, but freezing did not occur until now.
Suspicious theory of the relation between octoshape streaming plugin and firefox(chrome) will be valid for me until I came to run against freezing again.
TCP 통신시에 패킷이 firewall을 거치면서 시스템을 먹통이 되게 만드는 듯 하다.
firewall을 Jetico에서 Comodo로 변경하였다.
I was wrong!
My PC froze again, and I googled and found that Jetico personal firewall free version was also problematic.
Only uninstallation is the cure.
-----------------------------------
Unknown freezing of my PC made me crazy for several days.
My PC froze suddenly and I had to do hard-reset.
The event-log had no suspicious records around freezing moment.
At first, I thought that my hard drives had gone bad and ran defrag and chkdsk.
But, they had no fault.
At second, I ran several times virus, spyware, and trojan scanning and it gave no result.
After that, I suspected drivers and updated them to the latest versions.
But, it didn't cure anything.
The point driving me crazy is that I could not know the exact source of the problem.
Then, I came to know that freezing occurred when I was using firefox or chrome browsers.
I tested three browsers but freezing occurred only for firefox and chrome.
But, I did not have the exact answer
because I could not pinpoint when the freezing occurred.
Today, I found a specific web page which make freezing occur!
The web page had a big size animated gif. (maybe it can be a problem)
So, I could test various options about freezing.
I looked up plugins and addons of firefox and found that a octoshape streaming plugin is suspicious.
(Because it was installed for the live Korean baseball game streaming service of Naver.com and they did not support firefox or chrome browsers. Therefore it should not be related with firefox or chrome browsers)
I disabled it and freezing did not occur anymore!
Then I tested the page again making the plug in available.
But the freezing did not occur! It's weird.
I could not know the reason why, but freezing did not occur until now.
Suspicious theory of the relation between octoshape streaming plugin and firefox(chrome) will be valid for me until I came to run against freezing again.
월요일, 3월 24, 2008
Thread, Timer in a Class
정확히 원하는 것은 클래스 instance를 생성하면, 내부 타이머가 동작하여
자체 다이나믹스를 일정 시간 마다 업데이트 하는 것이었는데..
이렇게 하는게 정확하고 효율적인 방법인지는 모르겠다..일단 동작은 한다.
타이머의 정확도는 고려하지 않았음...
posix thread와 standard time library를 이용
instance의 초기화 함수인 initemotion이 호출되면 thread를 생성하고
thread는 instance에서 주어진 시간 간격으로 instance의 특정 함수를 호출하는 구조
상관 없는 코드는 모두 소거...
Header Emotion.h
#include "pthread.h"
#pragma comment(lib, "pthreadvc2.lib")
class CEmotion
{
public:
CEmotion();
virtual ~CEmotion();
pthread_t thread_timer;
void Timer();
void StopTimer();
double GetTimerStep() {return TimerStep;}
void SetTimerStep(double t) {TimerStep=t;}
bool bThread;
private:
CWorld *pWorld;
double TimerStep;
};
Body Emotion.cpp
#include "stdafx.h"
#include "Emotion.h"
#include
static void *thread_func(void *vptr_args)
{
CEmotion *pEm = (CEmotion*)vptr_args;
clock_t start;
double diff=0;
double step=0;
while(pEm->bThread)
{
start = clock();
pEm->Timer();
step=pEm->GetTimerStep()/1000.f;
diff = (double)(clock()-start)/CLOCKS_PER_SEC;
while (step>diff)
{
diff = (double)(clock()-start)/CLOCKS_PER_SEC;
}
}
pthread_exit((void *) 0);
return NULL;
};
CEmotion::CEmotion():TimerStep(5000)
{
bThread=false;
}
CEmotion::~CEmotion()
{
pWorld=NULL;
pthread_join( thread_timer, NULL);
}
void CEmotion::InitEmotion(CWorld *pW)
{
bThread=true;
pthread_create(&thread_timer, NULL, thread_func, this);
}
void CEmotion::Timer()
{
}
void CEmotion::StopTimer()
{
bThread=false;
}
자체 다이나믹스를 일정 시간 마다 업데이트 하는 것이었는데..
이렇게 하는게 정확하고 효율적인 방법인지는 모르겠다..일단 동작은 한다.
타이머의 정확도는 고려하지 않았음...
posix thread와 standard time library를 이용
instance의 초기화 함수인 initemotion이 호출되면 thread를 생성하고
thread는 instance에서 주어진 시간 간격으로 instance의 특정 함수를 호출하는 구조
상관 없는 코드는 모두 소거...
Header Emotion.h
#include "pthread.h"
#pragma comment(lib, "pthreadvc2.lib")
class CEmotion
{
public:
CEmotion();
virtual ~CEmotion();
pthread_t thread_timer;
void Timer();
void StopTimer();
double GetTimerStep() {return TimerStep;}
void SetTimerStep(double t) {TimerStep=t;}
bool bThread;
private:
CWorld *pWorld;
double TimerStep;
};
Body Emotion.cpp
#include "stdafx.h"
#include "Emotion.h"
#include
static void *thread_func(void *vptr_args)
{
CEmotion *pEm = (CEmotion*)vptr_args;
clock_t start;
double diff=0;
double step=0;
while(pEm->bThread)
{
start = clock();
pEm->Timer();
step=pEm->GetTimerStep()/1000.f;
diff = (double)(clock()-start)/CLOCKS_PER_SEC;
while (step>diff)
{
diff = (double)(clock()-start)/CLOCKS_PER_SEC;
}
}
pthread_exit((void *) 0);
return NULL;
};
CEmotion::CEmotion():TimerStep(5000)
{
bThread=false;
}
CEmotion::~CEmotion()
{
pWorld=NULL;
pthread_join( thread_timer, NULL);
}
void CEmotion::InitEmotion(CWorld *pW)
{
bThread=true;
pthread_create(&thread_timer, NULL, thread_func, this);
}
void CEmotion::Timer()
{
}
void CEmotion::StopTimer()
{
bThread=false;
}
금요일, 3월 14, 2008
웹 리다이렉션
늘어가는 웹질을 제어하고 싶을때
꽁수로서 호스트 리스트를 수정해 버리자..
c:\windows\system32\drivers\etc\hosts 파일에 리스트 추가
예를 들어
143.248.118.12 www.naver.com
을 추가하면, 네이버로 접속할때 도서관으로 변경되어 접속됨...^^
하지만 역시 제일 중요한 것은 의지!
꽁수로서 호스트 리스트를 수정해 버리자..
c:\windows\system32\drivers\etc\hosts 파일에 리스트 추가
예를 들어
143.248.118.12 www.naver.com
을 추가하면, 네이버로 접속할때 도서관으로 변경되어 접속됨...^^
하지만 역시 제일 중요한 것은 의지!
화요일, 3월 04, 2008
Firefox 여러가지 설정 변경
주소창에
about:config
여기서 여러가지 설정 변경 가능
설정에 대한 내용은 모질라진 참조
http://kb.mozillazine.org/Knowledge_Base
about:config
여기서 여러가지 설정 변경 가능
설정에 대한 내용은 모질라진 참조
http://kb.mozillazine.org/Knowledge_Base
피드 구독하기:
글 (Atom)
