#. 사용성

#. 성능

#. 확장성

#. 기획 변경에 대한 대응력


성공적인 프로그래밍 ?

: 효율적이고 생산적으로 이 척도를 충족시키는 것




'Programming' 카테고리의 다른 글

About "Expert Beginner"  (0) 2018.10.04
javascript / normalizeForIE  (0) 2017.12.27
Linux 버전 확인 명령어  (0) 2016.10.14
기술자 등급분류 기준  (0) 2016.02.11
C# 과 C++에 관한 고찰...  (0) 2014.02.14

참고 : http://d2.naver.com/helloworld/76650



String.prototype.normalizeEx = function () {
	if(typeof this.normalize == 'function') {
		return this.normalize('NFC');
	} else {
		return this.normalizeNFCForIE();
	}
}

String.prototype.normalizeNFCForIE = function() {
	
	var result = '';
	
	var i, c;
	var cho = -1, jung = -1, jong = -1;
	
	for (i = 0 ; i < this.length ; ++i) {
		
		c = this.charCodeAt(i);
		
		if (0x1100 <= c && c < 0x1161) {
			
			// 새 초성이 나오면 기존 초, 중, 종을 조합
			if(cho >= 0) {
				result += combineKorean(cho, jung, jong);
				cho = jung = jong = -1;
			}
			
			cho = c - 0x1100;
			
		} else if (0x1161 <= c && c < 0x11A8) {
			jung = c - 0x1161;
			
		} else if (0x11A8 <= c && c <= 0x11FF) {
			jong = c - 0x11A8;
			
		} else {
			
			// 한글이 아니면 기존 초, 중, 종을 조합
			if(cho >= 0 || jung >= 0 || jong >= 0) {
				result += combineKorean(cho, jung, jong);
				cho = jung = jong = -1;
			}
			
			result += String.fromCharCode(c);
		}
	}
	
	// 루프가 끝난 후 아직 한글이 남아있으면 초, 중, 종을 조합
	if(cho >= 0 || jung >= 0 || jong >= 0) {
		result += combineKorean(cho, jung, jong);
	}
	
	return result.isNullOrEmpty()? this : result;
}

combineKorean = function (cho, jung, jong) {
	
	var jongsung = (jong == 0 ? 0 : jong + 1);
	
	var code = 0xAC00 + ((cho * 21) + jung) * 28 + jongsung;
	
	return String.fromCharCode(code);
}

String.prototype.isNullOrEmpty = function() {
    return (this.constructor !== String || this.trimAll() === '');
};


'Programming' 카테고리의 다른 글

About "Expert Beginner"  (0) 2018.10.04
좋은 프로그램의 척도  (0) 2018.01.31
Linux 버전 확인 명령어  (0) 2016.10.14
기술자 등급분류 기준  (0) 2016.02.11
C# 과 C++에 관한 고찰...  (0) 2014.02.14

인터넷 찾아보니까 권한 문제라는 얘기가 많았는데

권한은 Everyone 읽기 및 실행권한이 있음에도 불구하고 계속 에러가 났다.


이거저거 건들다보니 찾았는데


IIS 서비스에 등록할 때 아무 설정 없이 등록하느라

.NET framework 가 디폴트 값(v2.0) 으로 세팅되서 발생한 문제였다.


제어판-관리도구-IIS 관리자 메뉴에서 [응용 프로그램 풀] 로 들어간 후 보이는 목록에서

해당 응용프로그램 우클릭-.NET Framework 버전을 v4.0 으로 수정하니 정상적으로 진행이 가능했다.


- 내가 나중에 또 찾을까봐 써놓는 기록.

계정 로그인 하기도 전에


계정 종류 선택 후 


서버 인증서를 확인하는 데 실패했습니다. 네트워크 구성 또는 프록시 설정 문제일 수 있습니다.


라는 에러가 뜬다면,


백신을 모두 끄고 시도해보자.


나는 avast 를 사용중이었는데,

파일 시스템 감시, 메일 감시, 웹 감시를 모두 끄고 시도하니까 정상적으로 진행이 가능했다.


- 내가 나중에 또 헤멜까봐 남겨놓는 기록.


참고 : 

https://discussionskorea.apple.com/thread/30547?start=0&tstart=0

https://www.clien.net/service/board/cm_mac/10884948




구글 캘린더 사용법은 :

https://developers.google.com/google-apps/calendar/v3/reference/events/list


위 사이트에서 우측 패널의 "Try this API" 를 활용해서 테스트해볼 수 있고,

활용 코드는 "샘플" 탭에서 확인 가능하다.


events.list 호출해서 각 항목(response.items[i]) 하나에 대해 찍어보았을 때

내부 구조는 아래와 같다.


{

        "kind":"calendar#event",

        "etag":"\"1234567890123456\"",

        "id":"blarblar",

        "status":"confirmed",

        "htmlLink":"https://www.google.com/calendar/event?eid=blarblar",

        "created":"2017-01-01T00:00:00.000Z",

        "updated":"2017-01-01T00:00:00.000Z",

        "summary":"title",

        "creator":{

            "email":"blarblar@group.v.calendar.google.com",

            "displayName":"calendar_name",

            "self":true

        },

        "organizer":{

            "email":"blarblar@group.v.calendar.google.com",

            "displayName":"calendar_name",

            "self":true

        },

        "start":{"date":"2017-01-01"},

        "end":{"date":"2017-01-02"},

        "transparency":"transparent",

        "visibility":"public",

        "iCalUID":"blarblar@google.com",

        "sequence":0

}



참고로, 위의 구조는 "종일" 인 이벤트의 경우이고,

샘플 소스를 참고 해볼 때 종일이 아닌 이벤트는

start.date, end.date 대신 start.dateTime, end.dateTime 로 구성되었으리라 추측한다.

( 샘플 소스에서 start 획득 : start = event.start.dateTime || event.start.date )




로컬 상태로 원격 저장소를 덮어씌우고 싶을 때


git push -f <remote> <branch>



반대로,

원격 저장소 상태로 로컬을 초기화 하고 싶을 때


git reset --hard <remote>/<branch>


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

untracked working tree files would be overwritten by checkout  (0) 2017.02.10


git 에서 checkout (HEAD branch change) 하려고 했더니


untracked working tree files would be overwritten by checkout


와 같은 에러가 나면서 진행이 안된다.



구글링 해보고

git rm --cached 

진행해 보았지만 여전히 마찬가지.



track 중인 파일의 대소문자가 변경된 경우에도 이 현상이 발생한다고 한다.

core.ignorecase 설정을 true 로 변경해서 진행 가능하다고.


 git config --global core.ignorecase true


위와 같이 설정할 수 있다.


설정된 상황은

 git config --global --list 

로 확인 가능하다.



해보니 git checkout 할 때 더이상 문제가 발생하지 않는다!!!!!



출처 : http://belouder.blog.me/220694793552

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

git 강제 push (Local -> Remote)  (0) 2017.06.12




출처 : http://blog.naver.com/young4862/100204448362


비주얼 스튜디오 (컴파일러) 비트 수와 mysql 라이브러리 비트수가 일치하지 않을 때도 에러 발생.

그런데 MySQL 커뮤니티 서버 설치할 때 보니까 비트 선택하는 부분이 없어서..

한참 찾다가-


커스텀 설치로 들어가니까 x86 으로 설치 가능하던...


x86(32비트) 로 설치하고 해당 폴더에 있는 include 폴더와 lib 폴더를 사용하니 링크 에러가 더이상 발생하지 않는다.


아자!

'DBMS > MySQL' 카테고리의 다른 글

ubuntu 에서 mysql 설치 시 문제  (0) 2017.01.24
Foreign Key 설정 방법 및 옵션 설명  (0) 2014.08.22
ifnull, coalesce  (0) 2014.08.21

ubuntu 에서 mysql 을 설치했는데 설치하자마자 접속할 수 없었다.

 ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)


구글링...


http://lovestudycom.tistory.com/73

-> 하지만 내 서버 /etc/mysql/ 경로에 my.conf 파일은 존재하지 않았음 (conf.d 만 존재)


재설치 시도.

-> 에러 발생


etc/mysql/my.cnf.fallback doesn't exist 



my.conf 파일을 임의로 만들어 주고 재설치 시도

-> 워닝 발생


 update-alternatives: warning: not replacing /etc/mysql/my.cnf with a link


-> 그래서 이 파일은 원래 링크 파일은 듯 하여 임의로 생성한 파일을 삭제하고 해당 문구를 또 구글링..


설치 시 mysql-server 뿐 아니라 mysql-client 도 깔아야 한다는 사실을 깨달음.


아래 재설치 명렁어 수행 후 정상 작동 확인!!!!


sudo apt-get remove --purge mysql-\*

sudo rm -rf /etc/mysql /var/lib/mysql

sudo apt-get autoremove

sudo apt-get autoclean


sudo apt-get install mysql-server mysql-client


'DBMS > MySQL' 카테고리의 다른 글

C 언어에서 MySQL 연결할 때 링크 에러가 발생하면  (0) 2017.01.24
Foreign Key 설정 방법 및 옵션 설명  (0) 2014.08.22
ifnull, coalesce  (0) 2014.08.21




ubuntu 서버에서


 $ apt-get install haveged -y


위 명령어로 haveged 를 설치하면 된다.



이 간단한 걸 몰라서 한참 헤맸네;



검색어를


 tomcat7 Deploying web application directory hang on


으로 치고 구글링을 해서 stackoverflow 댓글의 링크를 타고 타고 들어가서 겨우 찾았다 ㅠ






PS. 아래와 같은 에러가 나면


 E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)


apt-get 앞에 sudo 를 쳐주자.


 $ sudo apt-get install haveged -y






참조 #1. http://stackoverflow.com/questions/27612209/spring-boot-application-wont-boot-at-startup-inside-docker


참조 #2. https://github.com/aragorn/home/wiki/Ubuntu-Server

("apt-get install haveged" 으로 검색한 국내 구글링 결과)

+ Recent posts