2012년 4월 22일 일요일

배



관점에 따라서는 교체한 Cable TV 단자도
멋진 배가 될 수 있다. 

- 누리의 관점


2012년 4월 21일 토요일

Skipping items in a legend

Each curve has a handle, which can be obtained from the properties.



h1 = plot(rand(1,10));      % Blue line
hold on;
h2 = plot(rand(1,10),'r');  % Red line
h3 = plot(rand(1,10),'g');  % Green line
legend([h1 h3],{'hello','world'});  % Only the blue and green lines appear
                                    %   in the legend


http://www.mathworks.com/matlabcentral/answers/406-how-do-i-skip-items-in-a-legend

2012년 3월 16일 금요일

Gaussian profile of Illustrator format


Illustrator source : Download
profile calculated from Matlab

첫 아침

한국에서의 1년만의 첫 아침. 
날씨만큼 좋은 기분.

2012년 2월 19일 일요일

2012년 2월 13일 월요일

2012년 2월 10일 금요일

When glBindTexture doesn't work... (multiple texture image)

glBindTexture 를 했는데, (glGenTextures 로 값도 잘 얻어 왔는데..)
texture가 안 붙으면..  (texture file 이 여러 개인경우..)

glBegin(GL_TRIANGLES (or..) ) 밖에서 되었는지 확인.
상식적으로 생각해보면 texture는 geometry 를 어떻게 할지 시작하기전에 이루어져야함.
glBegin = delimit the vertices of a primitive or a group of like primitives


찾아보니 아래와 같네..
무조건 받아들이는 거보다 왜 저것만 되는지 생각해보면 납득 OK

You can use only a subset of OpenGL functions between glBegin and glEnd. The functions you can use are:
glVertex
glColor
glIndex
glNormal
glTexCoord
glEvalCoord
glEvalPoint
glMaterial
glEdgeFlag

http://www.gamedev.net/topic/83150-glbindtexture-inside-of-glbegin/

operator delete[]

struct myclass {
  myclass() {Dbg("myclass constructed : %x\n", this);}
  ~myclass() {Dbg("myclass destroyed : %x\n", this);}
};


function1()
{
  myclass * pt;

  pt = new myclass[3];
  delete[] pt;

  return 0;
}

modified from http://www.cplusplus.com/reference/std/new/operator%20delete[]/

Debug 결과 (pt = 0x004229f4 일때)
myclass constructed : 4229f4
myclass constructed : 4229f5
myclass constructed : 4229f6

myclass destroyed : 4229f6
myclass destroyed : 4229f5
myclass destroyed : 4229f4

delete operator만 쓰면 당연 에러..





Me Party

I love Amy Adams.
From the Muppets Movie

2012년 2월 3일 금요일

PZT strain


한 번 꾹 눌렀다가 몇 초 있다가 뗀 거. beam 형태로 된 거 사용. 
1kHz sampling 했음


The piezoelectric effect is a reversible process in that materials exhibiting the direct piezoelectric effect (the internal generation of electrical charge resulting from an applied mechanical force) also exhibit the reverse piezoelectric effect (the internal generation of a mechanical strain resulting from an applied electrical field).
...
The nature of the piezoelectric effect is closely related to the occurrence of electric dipole moments in solids.
...

1.818181818181818

숫자놀이
680/374 = 1.818181818181818 = 20/11
두배보다 살짝 작은...

이걸 제곱하면
1.818181818181818 ^2 = 3.305785123966941
이건 한 평의 넓이 -_-
1.818㎡ = 1평

근데 왜 저런 비율이 동영상에 쓰이지?

2012년 2월 2일 목요일

2012년 1월 31일 화요일

복사꽃 무더기로 피더이다




멀고 먼 인생길, 어찌 평탄한 길만 있겠습니까. 때로는 오르막, 또 때로는 내리막. 더러는 주막집 문전걸식에 더러는 잔칫집 진수성찬. 눈보라 몰아치는 엄동설한 지겹도록 길더니, 걷다 보니 어느새 화창한 봄. 걸음마다 복사꽃도 무더기로 피더이다.


아...멋지다.

2012년 1월 29일 일요일

Galactic coordinate system


Galactic coordinate system

멋지다.

The galactic coordinate system (GCS) is a celestial coordinate system which is centered on the Sun and is aligned with the apparent center of the Milky Way galaxy. The "equator" is aligned to the galactic plane. Similar to geographic coordinates, positions in the galactic coordinate system have latitudes and longitudes. The northern galactic pole is located in the constellation of Coma Berenices while the southern pole lies in Sculptor.

http://en.wikipedia.org/wiki/Galactic_coordinate_system