Linux2014. 9. 17. 10:44
ntp는 123
rdate 37 포트를 사용한다.

간혹 rdate가 안되는 경우도 있는 것 같으니
NTP를 추천하는 것 같기도..
[링크 : http://coffeenix.net/bbs/viewtopic.php?p=2123&sid=0d8c95c161ac6b4fb07617492784b47d]

[링크 : http://en.wikipedia.org/wiki/Time_Protocol]
[링크 : http://en.wikipedia.org/wiki/Network_Time_Protocol]

내부적으로는 rdate도 Time protocol을 이용해 시간을 받아오지만
rdate의 경우 시간을 받아오면 바로 설정해버려서 문제가 될 수도 있기에 ntp로의 이전을 추천한다고 한다.
[링크 : http://en.wikipedia.org/wiki/Rdate]

'Linux' 카테고리의 다른 글

unknown filesystem type linux_raid_member / RAID 하드 마운트하기  (0) 2014.09.22
ps / top 차이점?  (0) 2014.09.17
nice  (0) 2014.09.16
bash VI 모드 / Emacs 모드  (0) 2014.09.03
bash 파일 상태 관련 if  (0) 2014.09.01
Posted by 구차니
모종의 음모/mp3 분석2014. 9. 16. 16:18
MP3 파일을 보면 아래와 같이 다양한 비트레이트가 있는데

익숙한 녀석으로는 96kbps / 128kbps / 192kbps / 320kbps 등이 있다.

[링크 : http://en.wikipedia.org/wiki/MP3]

물론 이런 다양한 비트레이트가 존재하더라도
CD의 원본 비트레이트
44.1kHz / 16bit / 2Channel 이기에
44100 * 16 * 2 = 1,411,200 bps
편의상 CD-DA의 비트 레이트는 1,411.2kbit/s 로 표기를 하는 듯한데..(1024가 아니잖아?)
[링크 : http://en.wikipedia.org/wiki/Bit_rate]

아무튼. 1.4Mbps 정도의 CD롬 음질이기에 mp3로 320kbps가 엄청 좋아보인다고 하더라도
실제로는 1/4 이상 압축된 상태란 것.
그렇기에 mp3 에서 동일 sampling rate / sampling bit / channel 이라고 하더라도 다른 bitrate가 존재할 수 있다.
[링크 : http://en.wikipedia.org/wiki/Sampling_(signal_processing)]
 

뜬금포 결론 : MP3의 비트레이트가 오락가락  

'모종의 음모 > mp3 분석' 카테고리의 다른 글

mp3 joint stereo  (0) 2014.10.01
mp3 id3 태그 내의 jpeg 추출  (0) 2014.10.01
mp3 format  (0) 2014.10.01
Posted by 구차니
Linux API/alsa2014. 9. 16. 15:15
ALSA를 통해 파일을 재생중일때만 
/proc/asound/card0/pcm0p/sub0/sw_params
/proc/asound/card0/pcm0p/sub0/hw_params 파일의 값이 나오게 된다.

/proc/asound/card0/pcm0p/ - play
/proc/asound/card0/pcm0c/ - capture

$ tree /proc/asound/
/proc/asound/
├── Generic -> card1
├── Intel -> card0
├── card0
│   ├── codec#2
│   ├── id
│   ├── oss_mixer
│   ├── pcm0c
│   │   ├── info
│   │   ├── oss
│   │   └── sub0
│   │       ├── hw_params
│   │       ├── info
│   │       ├── prealloc
│   │       ├── prealloc_max
│   │       ├── status
│   │       └── sw_params
│   └── pcm0p
│       ├── info
│       ├── oss
│       └── sub0
│           ├── hw_params
│           ├── info
│           ├── prealloc
│           ├── prealloc_max
│           ├── status
│           └── sw_params
├── card1
│   ├── codec#0
│   ├── id
│   ├── oss_mixer
│   └── pcm3p
│       ├── info
│       └── sub0
│           ├── hw_params
│           ├── info
│           ├── prealloc
│           ├── prealloc_max
│           ├── status
│           └── sw_params
├── cards
├── devices
├── hwdep
├── modules
├── oss
│   ├── devices
│   └── sndstat
├── pcm
├── seq
│   ├── clients
│   ├── drivers
│   ├── oss
│   ├── queues
│   └── timer
├── timers
└── version

'Linux API > alsa' 카테고리의 다른 글

alsa + ffmpeg 벤치마크(?)  (0) 2014.10.23
alsa 패키지 종류  (0) 2014.10.21
alsa 버전확인하기  (0) 2014.10.16
alsa 프로그래밍 정리  (0) 2014.09.18
ALSA (Advanced Linux Sound Architecture)  (0) 2014.09.15
Posted by 구차니
파일방2014. 9. 16. 08:56
putty와 같이 하나의 프로그램이 타이틀만 달라지는 경우에는 조금 쓰기 힘들 듯 하다.
그리고 win7에서 버그인지 모르겠지만
단축키로 화면 정렬시
계속 화면이 깜박이며 탐색기가 먹통이 되는 현상이 발생한다 -_-a

[링크 : http://www.southbaypc.com/AutoSizer/]
[링크 : http://www.diskool.com/my_preview/1020753]

'파일방' 카테고리의 다른 글

redmine / 레드마인  (0) 2015.04.14
icannote - 강의용 필기 프로그램  (0) 2015.03.20
wifi 검색 프로그램  (0) 2014.05.30
decompiler  (0) 2014.05.21
의사랑 설치방법 및 SyBase  (0) 2014.04.25
Posted by 구차니
Linux2014. 9. 16. 08:51
nice 값을 늘릴때는
 # nice -5 command args

nice 값을 줄일때에는
 # nice -n -5 command args
[링크 : http://blog.nextcube.pe.kr/115]


man page를 봐도 먼가.. 직관적으로 와닫지 않는 설명 .. -_-a
Synopsis
nice [OPTION] [COMMAND [ARG]...]

Description
Run COMMAND with an adjusted niceness, which affects process scheduling. With no COMMAND, print the current niceness. Nicenesses range from -20 (most favorable scheduling) to 19 (least favorable).

-n, --adjustment=N
add integer N to the niceness (default 10)
--help
display this help and exit
--version
output version information and exit
 
[링크 : http://linux.die.net/man/1/nice

'Linux' 카테고리의 다른 글

ps / top 차이점?  (0) 2014.09.17
rdate / ntp  (0) 2014.09.17
bash VI 모드 / Emacs 모드  (0) 2014.09.03
bash 파일 상태 관련 if  (0) 2014.09.01
audit  (0) 2014.08.30
Posted by 구차니
Linux API/alsa2014. 9. 15. 21:43
ALSA는 리눅스에서 사운드를 내기 위한 드라이버인데
기본적(?)으로 PCM 사운드를 입력받아 장치로 내보내 주도록 한다.

[링크 : http://www.alsa-project.org/alsa-doc/alsa-lib/index.html]
[링크 : http://equalarea.com/paul/alsa-audio.html
[링크 : http://www.alsa-project.org/main/index.php/FramesPeriods

'Linux API > alsa' 카테고리의 다른 글

alsa + ffmpeg 벤치마크(?)  (0) 2014.10.23
alsa 패키지 종류  (0) 2014.10.21
alsa 버전확인하기  (0) 2014.10.16
alsa 프로그래밍 정리  (0) 2014.09.18
alsa proc file system  (0) 2014.09.16
Posted by 구차니
개소리 왈왈/자전거2014. 9. 14. 22:13

2007년형 스몰박스
찾아보니.. 옛날글 기준으로.. 23만원 정도 선에서 팔던거 같은데..
[링크 : http://naradesign.net/wp/2006/09/21/71/]

과거 자료를 대충 찾아보니 10.8kg이라지만.. 동일 모델은 아니지 ㅠㅠ
아무튼 풀 알루라서 가벼운 느낌이라서 깜짝 놀라서 후다닥 업어 왔다 ㅋㅋ
[링크 : http://www.bikey.co.kr/new/board.php?board=productbikey&page=3&command=body&no=18010...o]

---
버려진 자전거(?) 거를 5만원에 강탈한 사악한 집주인의 아들? ㅋㅋㅋ
아무튼 5만원에 강탈을 했으나

원래 자전거 주인도 수리하기에는 돈이 많이 들어서
계륵이 되어버린 상황이라서 선듯 팔기도 주기도 애매한 상황이라
이래저래 딜해서 강탈 ㅋㅋ

아무튼.. 튜브 갈고 체인갈고 하니.. 무려! 4.5만 ㄷㄷㄷ
필요없는 부품 떼어내도 그렇게 무게 차이는 없지만 웬지 기분 탓? ㅋㅋ

일단은.. 현재 남은건..
기어 정비 / 브레이크 정비 / 림 정렬 인데
기어 정비만 하고 림 + 브레이크는 일단 포기..
칼 브레이크는 어짜피 휘어버린 림으로 인해 불가능하니 머...

'개소리 왈왈 > 자전거' 카테고리의 다른 글

하이서울 자전거 대행진 2015!!  (0) 2015.04.06
이사와서 찰칵!  (0) 2015.03.20
크랭크 종류  (0) 2014.07.12
하이 서울 자전거 대행진 2014  (4) 2014.06.15
2014 하이 서울 자전거 대행진 복장 도착!  (0) 2014.06.07
Posted by 구차니
예전에 적은줄 알았는데 없네...


make 안에서

all:
    @gcc helloworld.c

이런식으로 구성하면
해당 구문의 명령은 출력되지 않고
에러 메시지만 출력하게 된다.

[링크 : http://stackoverflow.com/questions/3148492/makefile-silent-remove



Command Echoing

Normally make prints each command line before it is executed. We call this echoing because it gives the appearance that you are typing the commands yourself.

When a line starts with `@', the echoing of that line is suppressed. The `@' is discarded before the command is passed to the shell. Typically you would use this for a command whose only effect is to print something, such as an echo command to indicate progress through the makefile:

@echo About to make distribution files

When make is given the flag `-n' or `--just-print', echoing is all that happens, no execution. See section Summary of Options. In this case and only this case, even the commands starting with `@' are printed. This flag is useful for finding out which commands make thinks are necessary without actually doing them.

The `-s' or `--silent' flag to make prevents all echoing, as if all commands started with `@'. A rule in the makefile for the special target .SILENT without dependencies has the same effect (see section Special Built-in Target Names). .SILENT is essentially obsolete since `@' is more flexible.

[링크 : http://web.mit.edu/gnu/doc/html/make_5.html]  

'프로그램 사용 > make, configure' 카테고리의 다른 글

makefile 병렬 대비하기  (0) 2015.11.30
make burn 0.0.0 ???  (0) 2014.11.11
cmake 사용  (0) 2011.10.07
cross compile 초기화 하기  (0) 2010.05.18
cmake - cross make  (0) 2010.04.06
Posted by 구차니
개소리 왈왈/컴퓨터2014. 9. 11. 23:57

Asus M2N-SLI는 nForce 560 SLI 칩셋을 사용하는데
스펙상 2000 / 1600 MT/s  HT Link를 제공한다.
[링크 : http://www.asus.com/Motherboards/M2NSLI/specifications/]

기존에 찍어 둔게 없어서 일단 인터넷을 뒤지니.. 오버클럭 하는 사람들이 올려놓은게 있어서 다행인가..?
암무튼 HT Link가 840MHz로 대략.. 1000MHz 급으로 나오지 않을까 추측된다.

[링크 : http://www.overclock.net/t/366989/official-asus-m2n-sli-and-m2n32-sli-club/9560]

다른 스샷.. HT Link에 1004.6MHz가 찍혀있다.

[링크 : http://www.overclock.net/t/366989/official-asus-m2n-sli-and-m2n32-sli-club/10180]


아무튼.. HT 3.0을 지원하는 AMD 770으로 갈아탔는데..
cpu가 AM2+ 라서 그러려나?
HT Link가 2005.50MHz로 오르긴 올랐는데 3000MHz 급으로 오르지 않아서 조금 아쉬운 상황



일단 SMART 정보도 올라오고
부팅도 M2N-SLI보다 빠르고
컴퓨터도 전반적으로 더 빨라진 기분이 들긴 한다. 

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

ripple mini look - atom 330 / ion 관련  (0) 2014.10.12
은근.. 붕 떠버린 내 데탑..  (0) 2014.10.03
간만에 지름  (0) 2014.09.10
와.. 이거 갖고 싶다 ㅠㅠ  (8) 2014.07.23
hp envy 15(win8.1 기본)에 win7 깔기  (2) 2014.07.09
Posted by 구차니
프로그램 사용/vi2014. 9. 11. 14:02
ctrl-v를 누르면 사각형
v는 시작부터 끝을 선택하는 타입

set mouse=a를 설정해서 사용할 경우에는
키보드를 통한 박스 선택을 하듯 할 수 없다

2. Starting and stopping Visual mode                    *visual-start*

                                                *v* *characterwise-visual*
v                       start Visual mode per character.

                                                *V* *linewise-visual*
V                       start Visual mode linewise.

                                                *CTRL-V* *blockwise-visual*
CTRL-V                  start Visual mode blockwise.  Note: Under Windows
                        CTRL-V could be mapped to paste text, it doesn't work
                        to start Visual mode then, see |CTRL-V-alternative|.

If you use <Esc>, click the left mouse button or use any command that
does a jump to another buffer while in Visual mode, the highlighting stops
and no text is affected.  Also when you hit "v" in characterwise Visual mode,
"CTRL-V" in blockwise Visual mode or "V" in linewise Visual mode.  If you hit
CTRL-Z the highlighting stops and the editor is suspended or a new shell is
started |CTRL-Z|.

              new mode after typing:            *v_v* *v_CTRL-V* *v_V*
old mode             "v"              "CTRL-V"               "V"        ~

Normal              Visual         blockwise Visual       linewise Visual
Visual              Normal         blockwise Visual       linewise Visual
blockwise Visual    Visual         Normal                 linewise Visual
linewise Visual     Visual         blockwise Visual       Normal 


[링크 : http://mwultong.blogspot.com/2006/11/vim-vi-select-copy-paste.html]

'프로그램 사용 > vi' 카테고리의 다른 글

vi 버전 차이?  (0) 2016.07.09
vi 문자열 치환  (0) 2015.08.04
vi 유용한 플러그인 - F12 mouse 토글  (0) 2014.09.05
vi를 source insight 처럼 설정하기  (0) 2014.09.04
vi에서 마우스 사용하도록 설정하기  (0) 2014.09.04
Posted by 구차니