Sunday, March 29, 2009

Useful Expressions

알아두면 매우 적절할 표현들.

1. So, Therefore
나만 그런지는 모르겠지만, '그래서' 라는 의미를 쓰기 위해서 So 의 사용을 많이 하는데

He is very rich, so he can buy everything.
이런 식의 형태라면 적절하게 쓰인것이다.

하지만,
He is very rich and powerful. He is very hansome, too. His parents are very famous people in the society. Blah... Blah... Blah...
So, he is the best guy.
이 부분에서는 Therefore 를 쓰는 것이 더 낫다고 한다.

정리하면, 간단한 문장과 문장을 이어주면서 '그래서' 같은 느낌으로 쓰고 싶을 때는 So.
문단과 문단을 잇거나, 긴 설명 후에 정리하는 식으로 '그러므로' 를 쓰고 싶을 때는 Therefore.
-> 물론 So 도 틀린 건 아니지만 좀 더 나은 표현을 위한 Therefore 를 알아두자.


2. Especially, In particular
얘도 So, Therefore 와 마찬가지로, 문장과 문장은 Especailly.
문단과 문단 또는 긴설명 후 '특별하게' 를 쓸 때는 In particular.


3. kindly 의 적절한 사용 예.
If you have any questions, kindly come to see me.
이런 식으로 kindly 를 사용할 수 있는데, 이는 약간의 강제적인 느낌을 준다고 한다.
또한,
Why don't you kindly do that?
여기서의 kindly 는 annoy, angry 를 내포하고 있다고 한다.
그러므로 kindly 를 사용하려 할 때는 약간의 주의가 필요할 듯 하다.
위의 예제에서 그냥 부드럽게 표현하려 할 때는 please 를 사용하거나 would like 로 대체하자.


4. 잊어버리기 쉬운 타동사. (Transitive)
to appreicate something.
-> We would greatly appreciate it if you can come.

to compliment somebody (on something)
-> My boss compliemented me on my result of the task.

to familiarize somebody (with something)
-> You should familiarize yourself with the Singapore culture.

to reserve something (for somebody)
to inform somebody (of something)
to enjoy something
to spare something
to regret something
to lay something (somebody) down


5. 편지 (Email) 의 맺음 인사.
Your faithfully (Yours faithfully) - 보통 전혀 모르는 사람에게 메일을 보냈을 때.
Your sincerely (Yours sincerely) - 알긴 알지만 대충 아는 사람.
Best Regard - 대부분에서 적절함. 특히, 어느정도 알지만 많이 가깝지는 않은 사이일 때 적절.
Thanks - Formal 형태가 아닌 메일에서는 대부분 적절. 글치만 친구나 아랫사람에게 보통 사용.
Cheers - 친구

Friday, March 27, 2009

A running course near my house



2 or 3 days in a week I run that course.
It's almost 9km distances. And It has a lot of hills and downhills.
The other 2 or 3 days, I run a half of that course. :)
And then go to gym, and then go swimming if possible.

Unfortunately, lots of things disturb my exercising
Overworks, fatigues, drinks... hahaha.

The image was generated by GoogleMap.


Thread & Processor

A story for CPU and threads. (A bit related to affinities)

'GetCurrentProcessorNumber'

'GetThreadTimes'

'SetThreadIdealProcessor'

CPU usuages

Multiple Processors

Thread Ordering Service

NUMA Support

Processor Group

Thursday, March 26, 2009

UAC refereneces (C#, .NET)

UAC (User Account Control)


How to set the UAC elevation with C# (.NET)?
1. Create a manifest file looks like below.


2. Adding the manifest to the executable.
tab BuildEvent, in the post-build,
"$(DevEnvDir)..\..\SDK\v2.0\bin\mt.exe" -manifest "$(ProjectDir)$(TargetName).exe.manifest"  –outputresource:"$(TargetDir)$(TargetFileName)";#1
You can change the paths to make a build possible.

Local User, Application Directory
The directory of a local user and an application directory is different from Windows Vista and Windows XP.
Windows Vista/Windows Server 2008: %LocalAppData%\Microsoft\Team Foundation
Windows Server 2003 / Windows XP: %UserProfile%\Local Settings\Application 

So, we can use environment values to get them.
Environment.GetEnvironmentVariable("LOCALAPPDATA"); // Get an application data path
Environment.GetEnvironmentVariable("USERPROFILE"); // Get an user directory

OS Version number
Operating systemVersion number
Windows 76.1
Windows Server 2008 R26.1
Windows Server 20086.0
Windows Vista6.0
Windows Server 2003 R25.2
Windows Server 20035.2
Windows XP5.1
Windows 20005.0

Summary

Other References





Wednesday, March 25, 2009

David's Housewarming party



Too late update.
7th March, It was a David's housewarming party.
Many guys gathered. They were from many other countries.

The party was a housewarming.
The name and a purpose are exactly same with Korean's one.
However, a preparation was absolutely different.
Normally, the house owner invites many people and give them a lot of food, drinks and fruits.
In other hand, the party style of a foreign is just simple.
The owner prepares very very little amout of food, but proper amount of drinks.
And most guys come to home with drinks, too.
So, lots of drinks but no food. Just drinking drinking drinking.

Anyhow, the most similar thing is a funny feeling. All guys enjoy the party. It's same. :)



This is David the owner.
He is a good guy. He has helped me to be familiar with our office and works.
Thanks a lot~

Benchmark of synchronous objects on Windows

Threads\
milliseconds
Volatile
Read
Volatile
Write
Interlocked
Increment
Critical
Section
SRWLock
Shared
SRWLock
Exclusive
Mutex
188356666671060
287615326813414811082
4914536176824430723785

 

 

from Windows Via C/C++


I'll use SRW objects~~~

It works on Windows Vista and over.

Sunday, March 22, 2009

UE Script

요즘 Unreal Script 를 많이 보고 있는데,

한마디로 아 짜증!!! :)

물론, Epic 에서 이걸 만들고 이걸 쓰는 이유에 대해서는 전적으로 동의하지만

컴파일 시간이 다른 여타 script language 에 비해서 너무 느리고,

script 컴파일 후에는 다시 본 프로젝트를 컴파일 해야 한다.

가장 짜증나는 건 컴파일 하다가 너무 자주 컴파일러가 죽는다. -_-;

에러를 내뱉는 게 아니라 죽는다. 아 미쳐. 이러면 리빌드를 하거나 GetLatestVersion 후

리빌드를 하는데, 엄청난 시간이 소요된다. 그런데 그런 후에도 죽는 경우가 허다하다.

문법 쪽에서도 짜증이 나는데,

뭐 하나를 베끼려면 그쪽으로 확실히 베끼던가 해야지 편한데 (php 처럼)

이건 변수 선언은 c 형태, class 구조는 java 형태, 뭔가 알 수없는 키워드들의 남발은 perl/python 같고,

디버깅은 진짜로 번거롭고... 뭐 하나 할 때마다 레퍼런스를 샅샅이 뒤져가면서 해야하고

(왜냐하면 여러 language 에 다 있는 strcmp 라던가 이런 것들의 사용법이 약간씩 다르다.)

아 왕 짜증.

도대체 그 많은 script 들은 왜 다들 자기들 멋대로 문법을 정하는 거지?

그렇다고 별로 편하지도 않고 쉽지도 않은데 말이지...

열씸히 하는 프로그래머들은 새로운 script 를 공부할 때 재미를 느낀다던데,

난 짜증만 난다~~ 아하하하하. -_-

그나마 C# 이 가장 덜 짜증났었는 듯. 다른 건 몰라도 컴파일 시간은 인정한다. C# 우왕 굿.

아. 빨리 마스터 해서 스트레스 덜 받고 싶다. -0-;

Sunday, March 15, 2009

YAMAHA Music School



I signed up the Yamaha music school yesterday.
So that, I'll start to learn a saxophone!!!

Actually, I went to there last month.
But, there was no place to sign up.
I think a few teachers available here but lots of students are here, too.
In case of Korea, there are lots of classes, and we can join it anytime.
So I've waited for a space, finally I got it.
A beginning day is 3rd April. It is also too late than korean style. :)
But I can wait. hahaha.
The class is once a week, cost is SGD$ 98 a month. Not frequently, not cheap.
But there is no option which I can choose. 

I also bought a mouth patch, a humidy cleaner, a pouch for a mouth peace. 
Although it costs a lot, I feel so good~

Sunday, March 1, 2009

6 Months in Singapore

싱가폴에 온지 딱 6개월 되었다.

정말 시간 빨리 간다. 아무 것도 모르는 상태에서 어리버리 하던 게 엊그제 같은데...

작년 여기 오기 전까지만 해도, 이렇게 급작스럽게 많은 것이 변할 거라곤 생각조차 못했었다.

정말 급작스런 변화였고, 적응하면서 힘든 시간도 많았었다.

물론, 지금도 계속 적응 중이라 힘이 안든 건 아니다. :)

영어도 어학연수를 위해서 유학생활을 하는 학생들보다 느는 속도가 매우 더디다. 

보통 6개월이면 듣기는 상당히 잘 된다던데 난 아직도 더디다.

그리고 아직 회사일이 본격적인 개발단계가 아니라서 무언가 붕 떠있는 느낌을 계속 받았었다.

물론 개인적으로 이런저런 부분 공부할 시간은 충분히 가졌었지만...

6개월이 지난 요즘. 그래도 잘 왔다고 생각을 한다. 

까마득하던 나의 최종 목표가 이제는 어느정도 시야에 들어왔다는 사실은 내가 얻은 것 중 가장 큰 것이라 할 수 있겠다.

내가 지금의 경험을 할 수 있게 도움 주셨던 분들께 다시한번 감사드린다.

머리가 굵어진 이후에 삶의 목표 중 하나가 '후회할 일은 하지도 만들지도 말자' 였는데

여기 오기 전 1년 정도는 후회되는 일을 많이했었다. 

그게 마지막이길 다시한번 다짐한다. 이제 나이도 30이라 롤백도 안된다. 핫핫.



회사가 GDC 참전한다고 그거 준비하느라, 주말 풀 타임 근무를 해줬더니 피로가 풀리질 않는다. 

이번 GDC 끝나고 나면, 내가 무슨일을 하고 있는 지 확인들 하실 수 있을 듯.

일만하고 온 게 억울해서인지 난 졸려죽겠는데도 축구를 보고 있다.

바르샤랑 AT마드리드랑 하는데 아주 난타전이다. 지금 후반 35분인데 3:3.

누가 이길지 알 수가 없다. 우리의 앙횽은 두골 넣었으나 PK 반칙을 허용하셨다. -0-;

바르샤가 리그 후반오면서 파해법이 많이 나온 거 같다. 

게다가 이 경기는 메시가 무척이나 잠잠.

이거 다 보고 자고 싶은데 무척이나 졸리구나.

그래도 의지의 한국인은 포기하지 않는다.