ubuntu terminal font바꾸기

|
http://ftp.gnome.org/pub/GNOME/sources/ttf-bitstream-vera/1.10/
에서 Bitstream font를받아온다
압축을 푼후에 ttf파일들을 /usr/share/font/truetype/ 에 압축을 푼 디렉토리 통체로 옮긴다
안에서 ttf 파일을 제외한 다른 파일들은 모두 삭제한다
terminal 에서 edit -> profiles -> Edit -> Use the system fixed width font 체크 박스 해제
원하는 bitstream font 셋팅
And

*args, **kwargs

|
* 는 tuple로 저장
** 는 dictionary로 저장

def sum(*args, **kwargs):
    print kwargs
    print args

사용법
sum (1,2,3, a =1, b = 2, c = 3)

결과값
{'a' : 2, 'b' : 2 , 'c':3}
(1,2,3)
And

gettimeofday

|
int gettimeofday(struct timeval *tv, struct timezone *tz);
일반적으로 timezone은 NULL로 주면된다 (사용안된다고한다
성공하면 0 실패하면 -1
  

#include 
#include 


int gettimeofday(struct timeval *tv, struct timezone *tz);

struct timeval
{
    long tv_sec;       // 초
    long tv_usec;      // 마이크로초
}
	

struct timezone
{
    int tz_minuteswest:  // 그리니치 서측분차  
    int tz_dsttime       // DST 보정타입(일광 절약시간)
}
And
prev | 1 | ··· | 7 | 8 | 9 | 10 | 11 | 12 | 13 | ··· | 21 | next