manywaypark's Blog
개발, 검색, 함수

windows product key 보기

tips & tricks/Win 2019. 8. 1. 22:21 by manywaypark

Single board computer나 embedded device에 미리 설치되어 나오는 윈도우즈의 경우 product key를 따로 제공하지 않는 경우가 있다.

command line에서 아래처럼 하면 볼 수 있다.

wmic path SoftwareLicensingService get OA3xOriginalProductKey

 

ref: https://www.groovypost.com/howto/find-your-windows-10-product-key/

 

How to Find your Windows 10 Product Key

Microsoft has made every effort to make Windows 10 licensing convenient. That said, there are times where product activation might not work according to plan. Whether you want to perform a new install or transfer your Windows 10 license to a new computer;

www.groovypost.com

happy hackin'

개발용 Windows VM

tips & tricks/Win 2018. 10. 21. 22:11 by manywaypark

MS에서 개발 환경이 구축된 VM을 배포하는구나.

https://developer.microsoft.com/ko-kr/windows/downloads/virtual-machines


여태 나만 모른 건가?


happy hackin'

problem:

Windows, MSVC 환경에서 min이나 max가 포함된 qt 파일(eg, qrandom.h 등)에서 다음과 같은 경고가 나온 후에, 괴상한 에러가 나면서 컴파일에 실패하는 경우가 발생했다.

warning C4003: not enough actual parameters for macro 'max'


solution:

windows.h가 include 되기 전에 다음과 같은 선언을 넣어준다.

#ifndef NOMINMAX

# define NOMINMAX

#endif


ref: https://stackoverflow.com/questions/6884093/warning-c4003-not-enough-actual-parameters-for-macro-max-visual-studio-2010


happy hackin'

choco install erlang --forcex86=true

이렇게 하면 설치는 제대로 되지만 shim이 잘못된 위치(64bit용 위치 즉, \Program Files\ 아래)를 가리키게 되어있어서 오류가 난다.


PS C:\ProgramData\chocolatey> erl

Cannot find file at 'c:\program files/erl9.0/erts-9.0/bin/erl.exe' (c:\program files\erl9.0\erts-9.0\bin\erl.exe). This usually indicates a missing or moved file.


tools/shimgen.exe를 사용해서 다시 생성하면 해결된다.


PS C:\ProgramData\chocolatey\bin> ren erl.exe erl.exe.ERROR

PS C:\ProgramData\chocolatey\bin> ..\tools\shimgen.exe -o C:\ProgramData\chocolatey\bin\erl.exe -p 'C:\Program Files (x8

6)\erl9.0\bin\erl.exe'

PS C:\ProgramData\chocolatey\bin> ren .\werl.exe werl.exe.ERROR

PS C:\ProgramData\chocolatey\bin> ..\tools\shimgen.exe -o C:\ProgramData\chocolatey\bin\werl.exe -p 'C:\Program Files (x

86)\erl9.0\bin\werl.exe'


제목을 'chocolatey에서 shim이 잘못되었을 때 새로 생성하는 방법'으로 할걸 그랬나?


happy hackin'


2018-10-23 추가:

오늘 새로 생긴 박스에 설정하면서 새로 깔아보니 아래와 같은 메시지가 보였다. 이것이 의미하는 바는... 저 5개의 실행파일 모두에 대해서 shimgen을 해 주어야한다는 것이다.

......

Installing erlang...

erlang has been installed.

Added C:\ProgramData\chocolatey\bin\erl.exe shim pointed to 'c:\program files/erl10.0.1/erts-10.0.1/bin/erl.exe'.

Added C:\ProgramData\chocolatey\bin\werl.exe shim pointed to 'c:\program files/erl10.0.1/erts-10.0.1/bin/werl.exe'.

Added C:\ProgramData\chocolatey\bin\erlc.exe shim pointed to 'c:\program files/erl10.0.1/erts-10.0.1/bin/erlc.exe'.

Added C:\ProgramData\chocolatey\bin\escript.exe shim pointed to 'c:\program files/erl10.0.1/erts-10.0.1/bin/escript.exe'.

Added C:\ProgramData\chocolatey\bin\dialyzer.exe shim pointed to 'c:\program files/erl10.0.1/erts-10.0.1/bin/dialyzer.exe'.

......

build emacs for windows 64

emacs 2017. 12. 5. 12:06 by manywaypark

window에서 emacs 직접 build 하는 방법:

(chocolatey에 포함된 emacs64 package 만드는 사람이 작성한 것)

https://github.com/zklhp/emacs-w64/wiki/Guideline-for-building-Emacs-in-MSYS2-MinGW-w64-system


happy hackin'

a package manager for windows

tips & tricks/Win 2017. 2. 3. 18:13 by manywaypark

윈도우에서도 패키지 관리를 해보자.


https://chocolatey.org/


happy hackin'

리눅스라면 그냥 rdate 사용하면 되는데, 윈도우즈에서는 멀 어찌할지 잘 몰라서 검색.

"제어판 > 시간 및 날짜 설정"에서 "인터넷시간" 선택 후 선호하는 ntp server(time.bora.net 등)를 선택하면 된다.
한가지 추가하자면 명령행에서 w32tm /resync 로 강제로 다시 sync하게 할 수 있다는 것. 가끔 유용하다.

좀 찾아보니 더 멋진게 많네.
걍 관리자권한으로 이렇게 하면... 끄읏~~
w32tm /config /syncfromflags:manual /manualpeerlist:0.pool.ntp.org,1.pool.ntp.org,2.pool.ntp.org,3.pool.ntp.org

ref: http://www.pool.ntp.org/en/use.html

happy hackin'

[cygwin] sshd service

tips & tricks/Win 2014. 8. 27. 17:04 by manywaypark

refs:

  • http://kwon37xi.egloos.com/2496478
  • http://www.howtogeek.com/howto/41560/how-to-get-ssh-command-line-access-to-windows-7-using-cygwin/

happy hackin'

DNS cache flush하기

tips & tricks 2013. 11. 5. 14:19 by manywaypark

가끔 DNS cache가 문제가 되는 경우가 있다 (name server 변경 등의 경우).


Windows:

관리자 권한으로 명령창을 열고 다음과 같이 하면 flush된다.

ipconfig /flushdns


Mac:

명령창을 열고 다음과 같이 하면 된다.

sudo killall -HUP mDNSResponder              # OS X Mountain Lion or Lion

sudo dscacheutil -flushcache                 # Mac OS X v10.6


refs: 

http://www.tech-recipes.com/rx/1600/vista_dns_cache_flush/

http://support.apple.com/kb/ht5343

http://faq.hostway.co.kr/Linux_DNS/2249 -> Linux


happy hackin'

기본적으로 bootcamp를 사용해서 mac에 깔린 윈도우가 아니면 즉, 다시말해 mac이 아닌 일반 윈도우 박스에 연결하면  magic mouse/trackpad는 그냥 블루투스 일반 입력장치로 인식되어 포인터 움직이는 것과 클릭하기 등의 동작만 할 수 있다(스크롤 기능등을 활용할 수 없는 것이다).


그래서 bootcamp에서 드라이버를 추출해서 설치해주는 좀 번거로운 작업이 필요한데, 자동으로 해주는 프로그램이 있었다.


http://www.trackpadmagic.com/


다운로드받고 설치하면 된다.



refs:

http://uneasysilence.com/2009/11/get-apples-multitouch-magic-mouse-to-play-nice-on-windows/

https://discussions.apple.com/thread/2221427?start=91&tstart=0


happy hackin'

1 2 
분류 전체보기 (306)
잡담 (20)
함수형 언어 (65)
emacs (16)
java (18)
tips & tricks (154)
사랑 (1)
가사 (0)
독서 (4)
mobile (6)
비함수형 언어 (2)

공지사항

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

04-19 11:47