이 글의 저작권은 CEnA에 있습니다. 퍼가실 때는 출처를 밝혀주세요.

Written by Inshane

불펌은 상관하지 않으나 내용 출처는 밝혀주시기 바랍니다. - CEnA

  

홍길1234동abc입!!_#니다

라는 문구가 있다고 했을때 해당 문구에서

 

홍길동입니다

1234

abc

!!_#

 

를 각각 추출해내는 함수이다.

euckr을 기준으로 작성된 함수이며 euckr에서는 한글 패턴의 추출이 어려운 관계로

UTF-8로 전환하여 변환하는 형태이다.

핵심은 1 한글,2 영문 ,4 숫자 ,8 특수기호로 명시하고 처리하는 식이다.

  

========= 내용 ==============

 

$msg = "홍길1234동abc입!!_#니다";

 

function getMsgArr($msg) {
   $convMsg = mb_convert_encoding($msg, "UTF-8", "EUC-KR");
   $resultArr = array();

 

   // 1: 한글
   $pattern = '/[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]+/u';
   preg_match_all($pattern,$convMsg,$match);
   $resultArr[1] = mb_convert_encoding(implode('',$match[0]),"EUC-KR", "UTF-8");

 

   // 2: 영문
   $pattern = '/[a-zA-Z]/';
   preg_match_all($pattern,$convMsg,$match);
   $resultArr[2] = mb_convert_encoding(implode('',$match[0]),"EUC-KR", "UTF-8");

 

   // 4: 숫자
   $pattern = '/[0-9]/';
   preg_match_all($pattern,$convMsg,$match);
   $resultArr[4] = mb_convert_encoding(implode('',$match[0]),"EUC-KR", "UTF-8");

 

   // 8: 특수기호
   $pattern = '/[^\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}0-9a-zA-Z]+/u';
   preg_match_all($pattern,$convMsg,$match);
   $resultArr[8] = mb_convert_encoding(implode('',$match[0]),"EUC-KR", "UTF-8");

 

   // 3: 한글 + 영문
   $pattern = '/[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}a-zA-Z]+/u';
   preg_match_all($pattern,$convMsg,$match);
   $resultArr[3] = mb_convert_encoding(implode('',$match[0]),"EUC-KR", "UTF-8");

 

   // 5: 한글 + 숫자
   $pattern = '/[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}0-9]+/u';
   preg_match_all($pattern,$convMsg,$match);
   $resultArr[5] = mb_convert_encoding(implode('',$match[0]),"EUC-KR", "UTF-8");

 

   // 9: 한글 + 특수기호
   $pattern = '/[^0-9a-zA-Z]/';
   preg_match_all($pattern,$convMsg,$match);
   $resultArr[9] = mb_convert_encoding(implode('',$match[0]),"EUC-KR", "UTF-8");

 

   // 6: 영문 + 숫자
   $pattern = '/[0-9a-zA-Z]/';
   preg_match_all($pattern,$convMsg,$match);
   $resultArr[6] = mb_convert_encoding(implode('',$match[0]),"EUC-KR", "UTF-8");

 

   // 10: 영문 + 특수기호
   $pattern = '/[^\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}0-9]+/u';
   preg_match_all($pattern,$convMsg,$match);
   $resultArr[10] = mb_convert_encoding(implode('',$match[0]),"EUC-KR", "UTF-8"); 

 

   // 12: 숫자 + 특수기호
   $pattern = '/[^\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}a-zA-Z]+/u';
   preg_match_all($pattern,$convMsg,$match);
   $resultArr[12] = mb_convert_encoding(implode('',$match[0]),"EUC-KR", "UTF-8");

 

   // 7: 한글 + 영문 + 숫자
   $pattern = '/[\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}0-9a-zA-Z]+/u';
   preg_match_all($pattern,$convMsg,$match);
   $resultArr[7] = mb_convert_encoding(implode('',$match[0]),"EUC-KR", "UTF-8");

 

   // 11: 한글 + 영어 + 특수기호
   $pattern = '/[^0-9]/';
   preg_match_all($pattern,$convMsg,$match);
   $resultArr[11] = mb_convert_encoding(implode('',$match[0]),"EUC-KR", "UTF-8");

 

   // 14: 영문 + 숫자 + 특수기호
   $pattern = '/[^\x{1100}-\x{11FF}\x{3130}-\x{318F}\x{AC00}-\x{D7AF}]+/u';
   preg_match_all($pattern,$convMsg,$match);
   $resultArr[14] = mb_convert_encoding(implode('',$match[0]),"EUC-KR", "UTF-8");

 

   // 13: 한글 + 숫자 + 특수기호
   $pattern = '/[^a-zA-Z]/';
   preg_match_all($pattern,$convMsg,$match);
   $resultArr[13] = mb_convert_encoding(implode('',$match[0]),"EUC-KR", "UTF-8");

 

   // 15: 한글 + 영문 + 숫자 + 특수기호
   $resultArr[15] = $convMsg;

   return $resultArr;
  }

 

 

이 글의 저작권은 CEnA에 있습니다. 퍼가실 때는 출처를 밝혀주세요.
,

http://cdmanii.com/1535

에 있는 패치를 해보자.

패치를 하기전에 백신 프로그램을 꺼야 한다. hosts 파일을 바꾸기 때문에 바이러스로 의심을 받는다.
,

http://ninite.com/

위 site 에 들어가보면 거의 대부분 중요한 free software 가 들어있다.

installer 를 한번에 모아놓았기 때문에 설치도 금방한다.
,


1) 7-zip
압축 프로그램
알집과는 달리 멀티코어를 지원해서 빠르다.
 
2) filezilla
FTP client 프로그램, 참고로 filezilla server 라고 server 프로그램도 있다.

3) clonezilla
norton ghost 와 비슷한 디스크 이미지, 백업 프로그램.
기본으로 외장하드 등의 다양한 매체를 지원하고 256MB USB 에도 설치가 가능하다.
부팅 디스크 만들기 복잡한 ghost 보다 편하다.

4) notepad++
간단한 파일편집 프로그램. php 나 c 언어 등의 기본 구문등이 들어있어서 편리하다.

5) gimp
포토샵과 같은 그래픽 편집 프로그램. 레이어 편집이 가능하다. 포토샵 필터를 쓰지 않는다면 거의 똑같이 사용 가능

6) imgburn
iso 파일 같은 이미지 레코딩 프로그램
,


ubuntu 10.04 부터 vnc 부팅후에 처음 접속시 keyring 이 password 를 물어본다.

원격제어하는 경우 매우 짜증나는 일이다.


프로그램 -> 보조프로그램 -> 암호 및 암호화 키

" 암호 : login " 을 right click -> 풀기 를 선택해서 암호 입력한다.

더블클릭해서 펼쳐보면 vino 라고 있는데 이것을 지운다.

터미널 창에서 gconf-editor 라고 친다.

/desktop/gnome/remote_access 로 들어가서

vnc_password key 에 로그인 암호를 BASE64 로 변환시킨 암호를 입력한다.

참고로 http://www.motobit.com/util/base64-decoder-encoder.asp 에 들어가면 자신의 암호를 BASE64 로 변환할 수 있다.

리부팅하면 된다.


아래는 원문

http://ubuntuforums.org/showpost.php?p=10229123&postcount=6


Open up Applications->Accessories->Passwords and Encryption Keys

Right click Passwords:login and unlock it.

You should be able to expand the tree and find a listing for vino. Right click and delete it.

Close Passwords and Encryption Keys.

Open gconf-editor as and navigate to /desktop/gnome/remote_access

Enter in your BASE64 encoded password into the vnc_password key.

Save the config and close the editor.

Reboot and you can now use your VNC client to connect to your machine without being first prompted with the keyring.

Base64 encoder could be found here
http://www.motobit.com/util/base64-decoder-encoder.asp
,


참고로 ASUS 1215N 은 N 을 지원하지만 최고 속도는 150M 로 실제로는 72M 정도로 밖에 접속이 안된다.(접속속도와 실제 체감속도는 다른데 체감속도는 30~40M 정도이다.) N 이라고 다 같은 N 이 아닌데 5gHz 쪽을 지원안하는 성능이 떨어지는 N 이다.

ASUS 1215N 은 atheros 사나 broadcom 사의 wifi 를 가지고 있다. 문제는 broadcom 사의 minipci wifi 를 가진 경우 발생하는 것으로 추정된다.

증상은 부팅 후 10 여분 지나면 무선인터넷이 느려지고 ping 을 때려보면 100~1000 msec 정도로 delay 가 생긴다.

문제 해결을 하려면

1) windows 7 의 전원 옵션에서 고급옵션으로 들어가서 무선인터넷은 절전기능을 사용 안하고 항상 최고성능으로 사용하게 하고
2) broadcom 장치관리자 -> 고급 -> 최소 전력 소모량 -> 사용안함

으로 바꾸어주면 된다. 비슷한 문제를 dell mini 10 에서도 경험했는데 dell mini 10 도 절전모드에서 무선인터넷이 간혹 끊기는 문제가 있어서 비슷하게 setting 을 바꾸어준적이 있었다.


다른 문제로는 wireless 와 atheros LAN 드라이버가 충돌하는 문제를 이야기 했는데 이는 관계 없는듯 하다.

BIOS 와 드라이버도 최신으로 교체하면 좋다. 아래 링크에서 구할 수 있다.
http://fit.planet.ee/?page_id=23


지금까지 글은 아래 link 등을 참고했다.
http://forum.eeeuser.com/viewtopic.php?id=89185


cf) 참고로 이 문제는 asus 노트북만의 문제가 아니라 절전모드로 하면 상당수의 노트북에서 무선랜 성능이 떨어져 버리는 문제가 있다. dell mini 10 노트북에서도 비슷한 현상을 경험하였다.
,



1. 내 계정 -> 지급 내역을 클릭 하면 위처럼 나옵니다.



2. 제일 아래 보면 지급 개시 - 세부정보 가 있습니다. 세부정보를 click 하면 안에 MCN number 및 여러 정보가 나오는데 이것을 한장 프린트 해서 기업 은행에 가져갑니다.


3. 기업은행에서 현금, 또는 달러로 받을 수 있습니다. 저는 2년 블로깅한 수입으로 48 만원정도 얻었습니다.
,


Medicalphoto 1.07.383

2008 년 경에 개발된 마지막 버젼이다.

이곳에 백업한다.

http://medicalphoto.org

 

,


얼마전에 마성전설 2 (maze of galius)를 Windows 용으로 remake 한 것을 찾아냈습니다.

초등학교 때 했을 때와 똑같이 재미있더군요.

그래픽도 더 좋아졌고 소리도 더 낫네요.

아이템 얻는 곳, 숨겨진 아이템에 관한 정보는

http://bifi.msxnet.org/msxnet/konami/mog/

에서 얻을 수 있습니다. 저만 안다고 생각했던 단검, 항아리 얻는 방법 등이 모두 나와있네요. ^^

파일은 아래에서 다운로드



cf) 참고로 ultima 6 도 remake 한 것이 있습니다. 던젼시즈 mod 형식으로 나왔습니다.


'컴퓨터 이야기~ > 소프트웨어' 카테고리의 다른 글

애드 센스 수입금 - 484310 원  (0) 2010.12.27
MedicalPhoto 1.07.383  (0) 2010.12.19
sshan.net 트래픽 분석  (0) 2009.10.13
저사양 컴퓨터에서 H264 끊김없이 보기  (0) 2009.09.01
V3 policy agent 삭제  (0) 2009.03.15
,

피부미인의 경제뉴스 (http://sshan.net) 의 google analytics 트래픽 분석이다.


평일에는 대략 5000 명 수준의 방문자가 유지되고 있다.
,