'잡동사니'에 해당되는 글 13170건

  1. 2012.01.26 우비 woobi.co.kr 2
  2. 2012.01.25 SPH / CYL - 안경용어 2
  3. 2012.01.25 xen 사용가능한 cpu 확인하기
  4. 2012.01.25 dosbox 성능 테스트
  5. 2012.01.25 dosbox on linux
  6. 2012.01.25 Xming vs cygwin/x
  7. 2012.01.25 ssh X11 forwarding 옵션
  8. 2012.01.25 lisp 관련 책
  9. 2012.01.25 프로그래밍 언어에 대한 생각 2
  10. 2012.01.24 ssh X11 터널링
개소리 왈왈/블로그2012. 1. 26. 23:53
연휴에 전화를 해보니(라고 하지만 난 수요일까지 연휴여서)
서브 도메인 미지원 ㅠㅠ

mediawiki 하려고 하면서 가비아에서 저렴한 우비로 갈려고 했더니
wiki.domain.com
blog.domain.com 같이 되냐니까 안된다고 한다 ㅠ.ㅠ 

'개소리 왈왈 > 블로그' 카테고리의 다른 글

블로그 에디터 카테고리를 돌려줘!!!  (0) 2012.03.27
sns 는 쇄락중?  (2) 2012.02.02
왈도체 댓글?  (0) 2011.12.15
내 블로그 사고친거 있나?  (0) 2011.11.29
글은 복구~  (5) 2011.11.28
Posted by 구차니
둘 다 디옵터를 단위로 사용한다는데,
SPH는 Sphere 의 약자로 근시를 나타내며 +/- 20.0 범위 0.25 단위로 계측하고
CYL는 Cylinder 의 약자로 난시를 나타내며 +/-0.25 ~+/-4.0 범위 0.25 단위로 계측한다.

[링크 : http://www.selectspecs.com/info/help-with-prescription/]
[링크 : http://answers.yahoo.com/question/index?qid=20071221215942AAm90Ca]
Posted by 구차니
프로그램 사용/xen2012. 1. 25. 21:41
현재 사용중인 Xnote LW20 / LW25 모델의 cpu인데
LW20은 M740 으로 virtualization을 지원하지 않고 있으며
LW25는 T5600으로 virtualization을 지원한다.

[링크 : http://ark.intel.com/products/.../Intel-Pentium-M-Processor-740-(2M-Cache-1_73-GHz-533-MHz-FSB)]
[링크 : http://ark.intel.com/products/.../Intel-Core2-Duo-Processor-T5600-(2M-Cache-1_83-GHz-667-MHz-FSB)]


LW20

$ cat /proc/cpuinfo 
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 13
model name : Intel(R) Pentium(R) M processor 1.73GHz
stepping : 8
cpu MHz : 1733.000
cache size : 2048 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx up bts est tm2
bogomips : 3458.25
clflush size : 64
cache_alignment : 64
address sizes : 32 bits physical, 32 bits virtual
power management: 


































 
LW25 동급

$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU         T5600  @ 1.83GHz
stepping : 6
cpu MHz : 1000.000
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 0
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 3662.82
clflush size : 64

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 15
model name : Intel(R) Core(TM)2 CPU         T5600  @ 1.83GHz
stepping : 6
cpu MHz : 1000.000
cache size : 2048 KB
physical id : 0
siblings : 2
core id : 1
cpu cores : 2
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx lm constant_tsc arch_perfmon pebs bts pni monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr lahf_lm
bogomips : 3657.59
clflush size : 64
 
[링크 : http://ubuntuforums.org/showthread.php?t=841711


vmx(intel) svm(amd) 로 flags에 식별이 되면 xen을 사용할 수 있다.

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

Xen on Ubuntu 11.10  (0) 2012.03.25
kvm - Kernel mode Virtual Machine  (0) 2012.03.06
xen 설치관련 문서링크  (0) 2010.11.14
Intel ATOM cpu중 가상화 지원모델  (2) 2010.09.24
xen  (0) 2010.08.16
Posted by 구차니
프로그램 사용/dosbox2012. 1. 25. 21:24
삼국지3 라던가 max4.0(채팅 프로그램) 같은 286 시절 프로그램은 쌩쌩 날아 다니지만






역시나.. 1.7Ghz 정도 성능의 리눅스에서는 subwar 2050이 너무나 버벅댄다
cpu cycle을 30000까지 올려도 끊어지는게 심하다.
예전 286 시절 게임인줄 알았는데 386 시절 게임일 줄이야 ㅋ (1994년 작품)


 Computer       Graphics        Memory         Disk Space 
Minimum  386            VGA             1 MB           12 MB

Control:       Keyboard, Mouse (recommended), Joystick (recommended)
  Sound:       Ad Lib, Roland LAPC-1, Sound Blaster 
Monitor:       Color required
 MS-DOS:       5.0 or higher required.  Min req. of 600K conventional
               memory.

Reviewed version 1.2 on: 486/66, 4MB RAM, SB Pro sound card, Thrustmaster
                         joystick
[링크 : http://www.ibiblio.org/GameBytes/issue18/greviews/subwar/subwar.html]  

요기까지 인트로

암호 물어보는 화면 


게임 메인화면(브릿지)


전투정 탑승화면


이 게임 그 당시에는 참신해서 엄청나게 좋아했는데
막상하려니 단축키도 기억이 안나고 못하겠다 ㅠ.ㅠ

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

dosbox on linux  (0) 2012.01.25
Posted by 구차니
프로그램 사용/dosbox2012. 1. 25. 20:55
wine과 비슷하게 dos를 흉내내는 dosbox 라는게 있는데 당연히(!) 리눅스 용도 존재한다.

[링크 : http://www.dosbox.com/]  

설치 와 실행은 아래와 같이 한다.
$ sudo apt-get install dosbox  
$ dosbox 



DOS 게임의 경우 MS-DOS executable 포맷으로 인식을 하고,
samba를 통해서 그냥 복사를 해주고 나서 dosbox에서 mound 해주면 된다.
$ file *.EXE
DOS4GW.EXE:  MS-DOS executable ,\b LE for MS-DOS, DOS4GW DOS extender (embedded)
INSTALL.EXE: MS-DOS executable, MZ for MS-DOS
INTRO.EXE:   MS-DOS executable, LE executable
MPSCOPY.EXE: MS-DOS executable, MZ for MS-DOS
PKUNZIP.EXE: Self-extracting PKZIP archive MS-DOS executable, MZ for MS-DOS, PKLITE compressed
SETUP.EXE:   MS-DOS executable, MZ for MS-DOS 

기본적인 설정과 스샷 저장경로는
~/.dosbox/doxbox-0.73.conf
~/. dosbox /capture 에 png 로 저장된다.

아무래도 에뮬레이션이다 보니 성능 저하는 심한편이지만
1.7Ghz CPU로 돌릴경우 386 25Mhz 짜리 성능을 내준다고 하니
그 당시 게임을 돌리는 데에는 문제가 없을 것으로 생각된다.
하지만 486 시절 게임을 돌리려면 ... 최소한 3Ghz 급으로 클럭빨을 세워야 하려나?

Special Keys

ALT-ENTER
Go full screen and back.
ALT-PAUSE
Pause emulation.
CTRL-F1
Start the keymapper.
CTRL-ALT-F5
Start/Stop creating a movie of the screen.
CTRL-F4
Swap mounted disk-image (Only used with imgmount). Update directory cache for all drives!
CTRL-F5
Save a screenshot.(png)
CTRL-F6
Start/Stop recording sound output to a wave file.
CTRL-ALT-F7
Start/Stop recording of OPL commands.
CTRL-ALT-F8
Start/Stop the recording of raw MIDI commands.
CTRL-F7
Decrease frameskip.
CTRL-F8
Increase frameskip.
CTRL-F9
Kill dosbox.
CTRL-F10
Capture/Release the mouse.
CTRL-F11
Slow down emulation (Increase dosbox Cycles).
CTRL-F12
Speed up emulation (Decrease dosbox Cycles).
ALT-F12
Unlock speed (turbo button). 


Notes

While we hope that, one day, dosbox will run virtually all programs ever made for the PC... we are not there yet. At present, dosbox run on a 1.7 Gigahertz PC is roughly the equivalent of a 25MHz 386 PC. While the 0.60 release has added support for "protected mode" allowing for more complex and recent programs, but note that this support is early in development and nowhere near as complete as the support for 386 real-mode games (or earlier). Also note that "protected mode" games need substantially more resources and may require a much faster processor for you to run it properly in dosbox. 

[링크: http://linux.die.net/man/1/dosbox]

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

dosbox 성능 테스트  (0) 2012.01.25
Posted by 구차니
cygwin/x의 용량의 압승 ㅆㅂ
cygwin/x의 완벽성 압승 ?


예전에 정리 해놓은줄 알았는데 없길래 다시 정리.
Xming에서 특정 openGL이 제대로 안되서 부랴부랴 다시 찾는데
opengl의 advanced 소스중 일부가 아래와 같은 오류를 발생하며 실행되지 않는 문제가 있다.
이경우에는 cygwin/x로 하면 문제없이 해결된다.
(하지면 용량이 200메가에 ftp.daum.net은 폐쇄되었는지 안되고 -_- 결론은 받는데 한참걸림)

$ gcc -lglut -lGLU accumaa.c
$ ./a.out
freeglut (./a.out):  ERROR:  Internal error <FBConfig with necessary capabilities not found> in function fgOpenWindow
X Error of failed request:  BadWindow (invalid Window parameter)
  Major opcode of failed request:  4 (X_DestroyWindow)
  Resource id in failed request:  0x0
  Serial number of failed request:  21
  Current serial number in output stream:  24 

[링크 : http://www.opengl.org/resources/code/samples/glut_examples/advanced/advanced.html ]

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

cygwin bash 쉘 시작 위치 지정하기  (0) 2015.12.02
Xwin DISPLAY 고찰(?)  (0) 2015.08.13
Cygwin/X 추려내기 - ing  (0) 2011.09.10
Xming 신버전은 유료?  (0) 2011.09.09
xming + opengl + ssh  (0) 2011.09.08
Posted by 구차니
예전 글들을 보다 보니 X11 forwarding과 Trusted X11 forwarding 두가지가 존재하는걸 알게 되었는데..

$ man ssh
     -X      Enables X11 forwarding.  This can also be specified on a per-host
             basis in a configuration file.

             X11 forwarding should be enabled with caution.  Users with the
             ability to bypass file permissions on the remote host (for the
             user's X authorization database) can access the local X11 display
             through the forwarded connection.  An attacker may then be able
             to perform activities such as keystroke monitoring.

             For this reason, X11 forwarding is subjected to X11 SECURITY
             extension restrictions by default.  Please refer to the ssh -Y
             option and the ForwardX11Trusted directive in ssh_config(5) for
             more information.

     -x      Disables X11 forwarding.

     -Y      Enables trusted X11 forwarding.  Trusted X11 forwardings are not
             subjected to the X11 SECURITY extension controls. 

-X로 해서 untrusted X11 이 안되면 -Y로 하라는 단순 명료 배째기식 FAQ 발견 ㅋㅋ
일단 보안정책상 trusted X11 forwarding만 지원할 수 도 있으니 안되면 옵션을 바꾸어서 사용하라는 열린결론 -_-
3.8. ssh -X now says "Warning: untrusted X11 forwarding setup failed: xauth key data not generated"

See Q: 6.1. and following. See point 3 in this mail. Use ssh -Y.

Technical details: ssh tried to run xauth generate to create a untrusted cookie for the session, which failed because the server isn't compiled with the XCSECURITY extension built-in.

[링크 : http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-ssh-y]


6.3. I'm confused about the difference between trusted and untrusted X11 forwarding. What does "Warning: untrusted X11 forwarding setup failed: xauth key data not generated" mean? Why is the SECURITY extension disabled?

The warning means that ssh is going to use trusted X11 forwarding because untrusted X11 forwarding depends on the security extension, which isn't built into the Xserver and has been disabled by default upstream.

Trusted X11 forwarding means that you trust the server that you wish to ssh into. The X server will allow remote clients to do whatever a local client would be able to do to your X session, for example, monitor your keypresses and take a screenshot. Such programs could be run by a malicious or compromised root user on the ssh server, or under your account if it was compromised on the ssh server.

So why is this disabled? Untrusted X11 forwarding was meant to be a way to allow logins to unknown or insecure systems. It generates a cookie with xauth and uses the security extension to limit what the remote client is allowed to do. But this is widely considered to be not useful, because the security extension uses an arbitrary and limited access control policy, which results in a lot of applications not working correctly and what is really a false sense of security. See this mail for more on the subject.

(Words adapted from an email by Yaakov Selkowitz)

[링크 : http://x.cygwin.com/docs/faq/cygwin-x-faq.html#q-trusted-untrusted-x11-forwarding] 

2009/03/24 - [프로그램 사용/cygwin / Xming] - Xming - Xwindow launcher for windows using cygwin/x
2012/01/24 - [Linux/Ubuntu] - ssh X11 터널링

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

sshd server key 경로  (0) 2015.01.06
ssh 아이디 입력후 로그인 패스워드 입력이 지연되는 문제  (0) 2014.09.03
ssh X11 터널링  (0) 2012.01.24
scp 사용하기  (0) 2011.04.18
다중 X11 터널링?  (0) 2010.11.12
Posted by 구차니
Programming/lisp2012. 1. 25. 19:05
예전 학교수업시간에 쓰던 책인데 4th ed였던데 벌써 9th ed 라니...
간략하게 프로그래밍 언어중 함수적 언어에서 나오는데
막상 따라하려니 버전이 달라서 list? 이런 명령어는 먹지 않는다 -_-


내용 정리
모든 identifier는 atom이며 ' (quote) 를 통해서 list에 넣거나 함수의 식별자로서 사용이 가능해진다.
APPEND 명령은 CONS(constructor) 명령을 통해 재귀적으로 앞의 리스트에 붙이는 개념이다.




문득 lisp를 인공지능에서 사용하는 이유중에 하나가
car 명령을 통해 주어를 빼내고 cdr 명령을 통해 주어를 제외한 문장을 빼내는 식으로
동사 / 목적어 이렇게 분리를 하면서 구문 분석을 손쉽게 할 수 있기 때문이 아닐까? 라는 생각이 들었다.

[링크 : http://www.pearsonhighered.com/.../Concepts-of-Programming-Languages/9780201385960.page]

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

클로져  (0) 2012.12.03
lisp는 리스트지 prefix 표기법이 아니다  (0) 2012.11.19
lisp 문법  (0) 2012.01.24
slime / lispbox  (0) 2012.01.24
우분투에서 lisp 설치하기  (0) 2012.01.15
Posted by 구차니
Programming2012. 1. 25. 18:40
연휴이고 하니 이것저것 파고 들고
마침 회사에서도 micom을 AVR에서 TI로 바꾸는 바람에 API를 보고 있는데

"내가 공부하는게 언어일까 API일까?" 라는 의문이 들었다.




솔찍히 말해서 C언어에서 배우면서 어려운 단계를 적다면
1. for 문 / while 문
2. array
3. 배열
4. 그리고 printf() scanf()

머 나오는 순서로 따지면 4번이 0 번이 될 가능성이 높은데
언어와 통합이 되어 있다고 할정도로 stdio / stdlib 가 필수적이긴 하지만
이걸 언어에 포함을 해야 할까? 라는 의문이 든다.

다른 언어들을 공부하면서도
솔찍히 파일 입출력이 없고 printf 같은 화면에 출력하는 방법이 없으면 사용이 많이 제약이 되는 것을 보면
api 자체를 (비록 언어에 통합이 되어 있는 기본 라이브러리라고 해도) 언어에 포함을 해야 할까? 라는 생각이 든다.

micom의 경우는 조금 더 심해서 하드웨어 종속적인 부분이 많이 다른데
둘다 C를 기반으로 하지만 하드웨어 핀 배열등이 다른데 이걸 언어라고 표현하지 않고 장비라고 하는 것을 보면
우리가 표현하는 언어를 배운다는 말은 실은 API를 배운다 라고 해야 하는게 맞지 않을까 라는 망상마저 드는데.. 




아무튼 새로 나오는 언어들은 오만 라이브러리들을 기본내장하고 나오는 것을 보면 언어의 정의가 바뀐것 같기도 하고.
단순하게 제어 반복문 이나 함수 / 변수 구조등만을 언어로 규정짓는 것 또한 바보같은 발상인것 같긴한데... 

'Programming' 카테고리의 다른 글

ARToolKit / openVRML  (0) 2012.12.25
윤년 계산하기  (2) 2012.05.21
TBB/IPP  (2) 2012.02.12
S language  (0) 2011.07.01
SRS Template  (0) 2011.06.19
Posted by 구차니
리눅스(우분투)에서
 $ ssh -p 0000 -X userid@domain 
으로 하면 로컬에서 X11 화면을 끌어 올 수 있다. 

문득 이렇게 하면 로컬인지 리모트인지 알 방법이 없잖아? 라고 고민했는데
프로그램 띄우고 나서 바로 이해됨

(domain 에서) 라고 별도로 표기된다!
생각해보니 윈도우에서는 표기가 안되던데.. 우분투나 리눅스 전용 기능인가?

 
Posted by 구차니