... 동대에 테러하러 갈까?
이메일 점검한다고 보내놓고는 연락처 변경되면 알려달라고 하는게 말이 되니?
니네가 반송되는 메일 확인하고, 제대로 받았는지 답장 보내달라고 해서
답장 안온놈들을 조져야 할꺼 아녀 -_- 
Posted by 구차니
프로그램 사용/vi2011. 9. 26. 16:18
Visual Studio 에서 F8 이었던가
코스를 자동으로 indent 맞춰주는 멋진 기능이 있는데

vi에서는 = 를 누르면 된다. 

gg=G 하면 전체 코드에 대해서 정렬을 하고
visual mode에서 영역 선택후 =를 눌러도 영역에 대해 정렬을 한다.

[링크 : http://exsuperstar.net/entry.php?blogid=158
Posted by 구차니
프로그램 사용/vi2011. 9. 26. 16:00
:set ts=n
기본값은 8로 되어있는데 솔찍히 8은 좀.. 인간적으로 너무 크지 않나?

[링크 : http://www.joinc.co.kr/modules/moniwiki/wiki.php/Site/Vim/Documents/UsedVim]
Posted by 구차니
Linux API/network2011. 9. 26. 15:38
프로그래밍을 하다보면 짜증나는 것 중에 하나가 바로 이넘의 Byte Order이다.
Intel CPU가 Little Endian 이다 보니 Big Endian 과 유사한 비트 스트림의 경우에는
순서를 죄다 뒤집어주어야 한다. (어셈블러로 그냥 이런 명령어 하나 좀 만들어 주지 -_-)

uint32_t htonl(uint32_t hostlong);
uint16_t htons(uint16_t hostshort);
uint32_t ntohl(uint32_t netlong);
uint16_t ntohs(uint16_t netshort);

The htonl() function converts the unsigned integer hostlong from host byte order to network byte order.
The htons() function converts the unsigned short integer hostshort from host byte order to network byte order.

The ntohl() function converts the unsigned integer netlong from network byte order to host byte order.
The ntohs() function converts the unsigned short integer netshort from network byte order to host byte order.

On the i80x86 the host byte order is Least Significant Byte first, whereas the network byte order, as used on the Internet, is Most Significant Byte first.
 
[링크 : http://linux.die.net/man/3/htonl

머.. 정리 하자면
hton 은 ip 주소를 보낼때
ntoh 는 ip 주소를 받았을때 사용하면 될듯? 
Posted by 구차니
Microsoft/Visual Studio2011. 9. 26. 14:31
우분투에서는 mono-devel 이라는 패키지를 설치하면
c#을 사용할수 있다는데 흐음.. 패키지 목록이 좀 쩌는듯?


[링크 : http://mono-framework.com/Main_Page]
    [링크 : http://mono-project.com/DistroPackages/Ubuntu]
[링크 : http://www.codeproject.com/KB/cross-platform/introtomono1.aspx]

mono 와 mono-mcs 두개의 패키지를 설치해야 하나? 
Posted by 구차니
개소리 왈왈2011. 9. 26. 13:15
TV는 안보지만 뉴스는 보니까 -_-
아무튼 이런글의 댓글이야 뻔할뻔자인데
통칭 빠른생일 1,2월 생들은 12개월중 2개월 2/12 = 17%를 차지하는 아주 적지만은 않은 비율인데
왜 이걸 그리 걸고 넘어질까 라는 생각을 많이 하게 된다.

요즘에는 1월에서 12월까지 끊어서 이런 불편함은 없어져서 다행이지만
빠른생일 입장에서는 이거 참.. 정말 지랄 맞긴하다.
제일 싫었던건 학기 초에 월별로 생일 손들게 하는건데
그거 하고 나면 한학기 동안은 정말 어리네 소리 들어야 하니 스트레스 받고
그걸 극복하면 보통생일애들 보다 더 낫기도 하지만
극복하지 못하면 완전 빵셔틀로 전락하기도 하다보니 짜증이 날 수 밖에 -_-

머.. 그런 이유로 사회나와서 쓰는 스킬은
"형이라고 부를테니 그럼 쏘실건가요? 동생이 쏠수는 없자나요~" 스킬

아무튼 두고두고 형이라 불리는 댓가로
써야할 돈을 고려하면 섯불리 쉽게 형이라 불러! 못하니까 좋긴한데
학교에서도 그랬지만 사회에서 까지 이런걸로 당하면 참.. 정말 지랄 같단 말이지

[링크 : http://media.daum.net/entertain/enews/view?cateid=1032&newsid=20110926075307278&p=newsen]

'개소리 왈왈' 카테고리의 다른 글

안경과 컨텍트렌즈의 차이점(?)  (0) 2011.10.12
Good-bye iJobs  (0) 2011.10.06
콧뼈가 부러지면 2주내에 해결해야 함!  (4) 2011.09.24
임산부에게 뺏지보다 책을!  (0) 2011.09.23
00700~ 뽁뽁이  (0) 2011.09.20
Posted by 구차니
Programming/openGL2011. 9. 25. 22:02
오랫만에 하려니 sin() 함수가 radian 값을 받는것도 깜박잊고 꽤나 헤매게 만드네..

   
#include "GL/gl.h"
#include "GL/glu.h"
#include "GL/glut.h"
#include "math.h"

static int year = 0, day = 0;

void display(void)
{
        int temp;
        glClear(GL_COLOR_BUFFER_BIT);
        glColor3f(1.0, 1.0, 1.0);

        glPushMatrix();
                glBegin(GL_POINT);
                for(temp = 0; temp < 360; temp++)
                {   
                        glVertex3f(0.01*temp - 2,sin(3.1415927/180*temp),0);
                }   
                glEnd();
        glPopMatrix();

        glutSwapBuffers();
}

void reshape(int w, int h)
{
        glViewport(0, 0, (GLsizei) w, (GLsizei) h); 
        glMatrixMode(GL_PROJECTION);
                glLoadIdentity();
                gluPerspective(60.0, (GLfloat) w/(GLfloat) h, 1.0, 20.0);
    
        glMatrixMode(GL_MODELVIEW); //GL_PROJECTION
                glLoadIdentity();
                gluLookAt(0.0, 0.0, 5.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0);
}

void keyboard(unsigned char key, int x, int y)
{
        switch (key)
        {   
          default:
                  break;
        }   
}

int main(int argc, char** argv)
{
        glutInit(&argc, argv);
        glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB);
        glutInitWindowSize(500, 500);
        glutInitWindowPosition(100, 100);
        glutCreateWindow(argv[0]);

        glClearColor(0.0, 0.0, 0.0, 0.0);
        glShadeModel(GL_FLAT); //GL_SMOOTH

        glutDisplayFunc(display);
        glutReshapeFunc(reshape);
        glutKeyboardFunc(keyboard);
        glutMainLoop();
        return 0;
}

'Programming > openGL' 카테고리의 다른 글

glGet() 함수 이용하기  (0) 2011.09.28
GLUT keyboard callback function  (0) 2011.09.27
webGL  (0) 2011.09.24
depth buffer  (0) 2011.09.02
glGenLists  (0) 2011.06.09
Posted by 구차니
Linux/Ubuntu2011. 9. 25. 19:58
Xnote LW20 Express 에서 초기 설정이 "Microphone 1"으로 되어있는데
"Microphone 2"로 해야지 마이크로 연결이 된다.

이걸 제외하면 엠퍼시에서 별다르게 설정할건 없으니 패스~

 
Posted by 구차니
심심해서 부팅중에(BIOS 레벨에서) NMI 버튼을 눌러보았더니
먼가 좀 싱거운 에러군..

Multi-Bit ECC Error
System Halted
 

 
2011/09/13 - [하드웨어/Server Case/board] - NMI 버튼을 눌렀더니! - NMI on Win7
2011/09/25 - [하드웨어/Server Case/board] - NMI on Linux

'하드웨어 > Server Case & board' 카테고리의 다른 글

se7520db2 DDR/DDR2 SKU 식별 방법  (0) 2011.12.03
3핀 저항 / CT-3P-R  (0) 2011.12.01
NMI on Linux  (0) 2011.09.25
Intel System Management Software  (0) 2011.09.24
Insufficient Memory to Shadow PCI ROM  (0) 2011.09.22
Posted by 구차니
100% 뻗을걸 예상하고 눌렀는데 헐...
왜 안죽지? 갸우뚱 하면서 dmesg를 해보니...


Ubuntu Desktop 10.04 LTS 라서 그런가?
서버용으로 하면 죽을려나?

2011/09/13 - [하드웨어/Server Case/board] - NMI 버튼을 눌렀더니! - NMI on Win7

'하드웨어 > Server Case & board' 카테고리의 다른 글

3핀 저항 / CT-3P-R  (0) 2011.12.01
NMI on BIOS  (0) 2011.09.25
Intel System Management Software  (0) 2011.09.24
Insufficient Memory to Shadow PCI ROM  (0) 2011.09.22
Serial console feature - Intel Server board  (0) 2011.09.21
Posted by 구차니