pchero on November 28th, 2007

#include <stdio.h>#include <stdlib.h>#include <math.h> void queens(int i);bool promising(int i); int n;int *col; int main(){  printf(“Insert Number…n”); printf(“Insert : “); scanf(“%d”, &n);  col = (int *)malloc(n * sizeof(int)); queens(0);  return 0;} void queens(int i){ int j, tmp;  if(promising(i))  if(i == N) {   for(tmp = 1; tmp <= N; tmp++)    printf(“%d “, col[tmp]);   printf(“n”);  }  else   for(j = 1; j […]

Continue reading about N-여왕말 문제(되추적 알고리즘) 소스 코드

pchero on November 23rd, 2007

 레드햇의 경우…     /etc/redhat-release 파일을 확인하면 된다.

Continue reading about 리눅스 배포판 버전 확인방법.

pchero on November 22nd, 2007

 arm 프로세서용 크로스 컴파일러를 설치하기 위해서는…  ftp://ftp.arm.linux.org/uk/pub/armlinux/toolchain/  http://www.netwinder.org/tools.html  ftp://netwinder.org/users/c/chagas/arm-linux-cross/RPMS/  http://www.lart.tudelft.nl.lartware/compile-tools/  http://www.embeian.org/downloads.html 등등을 참조하면 된다.

Continue reading about arm 프로세서용 toolchain 설치법

 Ubuntu 7.10 종료시 다음과 같은 메시지가 나오면서 정상적인 종료가 이루어지지 않는 경우가 있다.Network Manager: <info> Deactivating device eth0  나의 경우 노트북(Dell inspiron 630m)에서 발생되었으며, 다음과 같은 조치를 취해주면 된다.  /boot/grub/mene.lst 파일에서 커널옵션을 추가해주는 부분에  acpi=force 옵션을 추가해 주면 된다.

Continue reading about Ubuntu 7.10 시스템 종료시 메시지 DP 후, 종료가 안되는 현상

pchero on November 13th, 2007

 우분투 7,10을 사용시 한번씩 입력기가 변환되는 경우가 있다.  무슨 이유에서인지는 모르지만 입력기가 변환되는 경우, 아무런 입력이 안먹어지는 현상이 발생하여 짜증을 유발한다.  정확한 해결법은 모르지만  GTK_IM_MODULE=xim  환경변수 값이 문제인것 같았다. 이 값을  GTK_IM_MODULE=scim  해주니 문제가 해결되었다.

Continue reading about Ubuntu 7.10 설치시 scim xim 설정법.