본문 바로가기

분류

[Problem 49]네자리 수의 등차소수 찾기 [EP 049] 네자리 소수가 만드는 등차수열 에서 나온 문제입니다. 접근하기 쉽지 않은 문제였지만, 해답을 보면서 큰 도움이 되었습니다. 직접 실행해본 결과 조건 하나가 맞지 않는다고 판단해서 다시 적용해 보았습니다. 코드가 좀 지저분해진거 같은데, 잘못된 점 찾아주시면 정말 감사하겠습니다. if set(str(p)) == set(str(q)): # this condition isn't quite exact def process(num): primes = [2, 3] cnt = 4 result = [] while cnt cnt: break if cnt % prime == 0: isPrime =.. 더보기
.htaccess 설정파일. 아래와 같은 오류가 나타난다면.##################################################################### Not Found The requested URL /home/??????/public_html/app/webroot/index.php was not found on this server.#####################################################################아래 파일에 ./.htaccess ./app/.htaccess ./app/webroot/.htaccess 아래를 추가한다. RewriteBase /~username/ 더보기
CVS 설정하기 많은 개발자들께서 CVS에 대해서 들어보셨을 겁니다. 장기적인 프로젝트 관리를 위해서 필요한 유틸리티지만, 설정 방법이 까다롭고 사용하려면 배워야 하기때문에 꺼려하고 있습니다. 그런분들에게 조금이나마 이 문서가 도움이 되기를 바라며 정리해 보았습니다. 설치 대부분의 네트워크 서비스들이 그러하듯 CVS도 C/S(Client/Server) 형태로 이루어져 있습니다. 그래서 cvs를 이용하기 위해서는 서비스를 제공하는 Server, 그리고 사용하는 Client로 구분되어져야 합니다. 아래의 명령을 통해서 cvs 클라이언트를 설치할 수 있습니다. sudo apt-get install cvs 그리고 아래 명령을 통해서 cvs Server를 설치할 수 있습니다. sudo apt-get install cvsd cvs.. 더보기
Ubuntu LAMP Server Guide - Configure Apache, mySQL, and cgi-bin 아파치, mysql, cgi-bin 설치 순서 아래에서 퍼옴. http://www.zaphu.com/2007/08/21/ubuntu-lamp-server-guide-configure-apache-mysql-and-cgi-bin/ ################################################################### In a previous post, I shared step-by-step instructions for setting up a Ubuntu LAMP (Linux, Apache, mySQL, PHP) server on your local area network (LAN). I also showed how you could customize the server .. 더보기
How To Install Eclipse 3.3 Manually Eclipse 3.3 수동 설치하기. ##################################################################I have been using Eclipse for quite some time now. I prefer Eclipse as development IDE because its ease of use. The overall design of Eclipse keeps the tools you need immediately at your fingertips. Using APT to install Eclipse on your Debian / Ubuntu machine will give you the old version of Eclipse. I would l.. 더보기
Local directories with Apache on Ubuntu 7.04 We all want to have local directories in Apache so we can write and test code safely. Here’s how to do it 1. Create a directory in your home called public_html 2. Install the userdir Apache module using the a2enmod command like so sudo a2enmod userdir 3. Edit the Apache 2 user preferences configuration file at /etc/apache2/httpd.conf sudo vi /etc/apache2/httpd.conf 4. Put the following in the co.. 더보기
Set java path 바탕화면 - 내 컴퓨터 - 속성 - 고급 - 환경 변수 기존 변수에 path, classpath가 있다면 편집을 눌러서 변수 값 추가 시키면 되고, 없다면 새로 만들기 눌러서 만들면 된다. 1. path 시스템 변수 변수 이름 : path 변수 값 : c:\j2sdk1.4.2_15\bin; 제일 앞에 추가 2. java_home 시스템 변수 변수 이름 : JAVA_HOME 변수 값 : c:\j2sdk1.4.2_15; 추가 3. classpath 시스템 변수 변수이름 : CLASSPATH 변수 값 : 제일 앞에 ".;"를 추가 한다. java Hello( classpath 설정시 구분 ";" 으로 한다. ex) . or .; 기존경로; 등등 더보기
firefox 가 floating point exception 오류를 내며 실행이 안될때.. ######################################################### 이게 문제였었군요. 오늘 아침에 시큐리티 업데이트된 libcairo2가 문제의 원인입니다. 아마도 이놈이 윈도우스 한글폰트와 무슨 문제가 있는것 같네요. sudo synaptic 실행하시고 검색메뉴에서 libcairo2를 찾으신 후 맨위 패키지(P)메뉴에서 버전 강제를 선택하시면 어떤버전을 설치할거냐고 묻습니다. 여기서 1.4.10-1ubuntu4 (gutsy)를 선택하시고 다운그레이드를 하시면 됩니다. 주의 할것은 자동업데이트를 실행하시면 안된다는 겁니다. 그러면 다시 문제가 있는 새 버전 gutsy-security를 설치합니다. 또는 sudo apt-get install libcairo2=1.4.1.. 더보기

반응형