2017년 7월 18일 화요일

Notepad++ 편집창 줄간격 조정하기

https://github.com/notepad-plus-plus/notepad-plus-plus/issues/971 참조

nppexec 에서 다음 구문 실행.
NPP_CONSOLE 0
SCI_SENDMSG SCI_SETEXTRAASCENT 5
SCI_SENDMSG SCI_SETEXTRADESCENT 5

2015년 12월 21일 월요일

CentOS 7 1503->1511 업데이트후 소프트웨어 추가/제거, 업데이트 메뉴 사라지는 이슈

CentOS 7 을 1503 에서 1511 버전으로 업데이트후 시스템도구의 일부메뉴가 사라지는 버그가 있는 것 같음.
특히, 소프트웨어 추가/제거, 업데이트 메뉴가 사라져서 엄청 불편함.
root 권한으로 패키지 설치
yum install gnome-packagekit-installer gnome-packagekit-updater

2015년 11월 4일 수요일

RtlGetVersion() 으로 윈도 8.1 이상에서 OS버전 제대로 얻기.

http://simplecodewithsanat.blogspot.kr/2015/01/get-correct-os-version-on-win-81.html
https://indidev.net/forum/viewtopic.php?f=5&t=474
 

NTSTATUS (WINAPI *RtlGetVersion)(LPOSVERSIONINFOEXW);
OSVERSIONINFOEXW osInfo;

*(FARPROC*)&RtlGetVersion = GetProcAddress(GetModuleHandleA("ntdll"), "RtlGetVersion");

if (NULL != RtlGetVersion)
{
   osInfo.dwOSVersionInfoSize = sizeof(osInfo);
   RtlGetVersion(&osInfo);
}

2015년 9월 22일 화요일

subversion empty 로그 커밋 차단

http://stackoverflow.com/questions/1928023/how-can-i-prevent-subversion-commits-without-comments
https://dzone.com/articles/useful-subversion-pre-commit
hooks/pre-commit 파일 수정

#!/bin/bash
REPOS="$1"
TXN="$2"

# Make sure that the log message contains some text.
SVNLOOK=/usr/bin/svnlook

# Comments should have more than 5 characters
LOGMSG=$($SVNLOOK log -t "$TXN" "$REPOS" | grep [a-zA-Z0-9] | wc -c)
if [ "$LOGMSG" -lt 15 ];
    then
    echo -e "Please provide a meaningful comment when committing changes." 1>&2
exit 1
fi

# All checks passed, so allow the commit.  
exit 0

2015년 9월 10일 목요일

VirtualBox 위에서 CentOS 7 매우 느리게 동작하는 증상.

VirtualBox 에 설치된 CentOS 7 에서 설치된 패키지를 업데이트하니 동작이 매우 느려지는현상이 발생했다.
vmtoolsd, vmware-checkvm 프로세스의 CPU 점유율이 100% 이이어서 발생하는 문제임.
https://bugzilla.redhat.com/show_bug.cgi?id=1251656

vmtoolsd, vmware-checkvm 프로세스를 kill 하고 open-vm-tools, open-vm-tools-desktop 패키지 삭제.
rpm -e open-vm-tools-desktop
rpm -e open-vm-tools

2015년 9월 1일 화요일

tigervnc 로 vino 접속시 "No matching security types" 에러

debain 계열서버에서 vino 설치시 암호화가 기본으로 설정되는 것으로 보인다.
xubuntu 15.04 에 vino 를 설치하고 tigervnc 로 접속하면 "No matching security types" 에러발생.
그럴땐..
gsettings set org.gnome.Vino require-encryption false
http://www.serveridol.com/2014/09/11/vnc-viewer-error-no-matching-security-types/