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

명령행에서 diskpart를 이용하면 된다.

diskpart.exe 실행해서 한번에 해결하기:

diskpart.exe
DISKPART> list disk
......
DISKPART> select disk [disk-number-here]
DISKPART> clean
DISKPART> create partition primary
DISKPART> list partition
......
DISKPART> select partition 1
DISKPART> active
DISKPART> format fs=fat32 quick

 

NOTE: clean 단계 이후에는 그냥 GUI에서 format 해도 될 듯하다.

 

ref: https://miuna3.tistory.com/105

 

happy hackin'

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'

apt-cyg라는 간단한 script를 깔면 된다.


설치:

$ wget https://raw.githubusercontent.com/transcode-open/apt-cyg/master/apt-cyg

$ install apt-cyg /bin


사용:

$ apt-cyg install emacs


refs:

https://stackoverflow.com/questions/9260014/how-do-i-install-cygwin-components-from-the-command-line

https://github.com/transcode-open/apt-cyg


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'

Visual Studio 2017에는 google test가 통합되었구나. 세상이 좋아지고 있다.

https://docs.microsoft.com/ko-kr/visualstudio/test/how-to-use-google-test-for-cpp


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'.

......

a package manager for windows

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

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


https://chocolatey.org/


happy hackin'

[VS2015] vcvarsall.bat는 어디에?

tips & tricks/Win 2016. 6. 23. 18:13 by manywaypark

Visual Studio 2015에서는 vcvarsall.bat가 기본으로 설치되지 않는 듯.

설치 프로그램 다시 실행하고, C++ Common Tools 항목을 설치해주어야된다.

기본 위치에 깔았다면, vcvarsall.bat 파일의 위치는 아래와 같다.

C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat


ref: http://stackoverflow.com/questions/33323172/vcvarsall-bat-needed-for-python-to-compile-missing-from-visual-studio-2015-v-1


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'

doxymacs on cygwin

tips & tricks/Win 2014. 10. 21. 17:27 by manywaypark

의존성은 내 경우 libxml2-devel 이었는데, 기본적인 autotools등도 필요하다.

emacs가 PATH에 있는지 확인

$ which emacs

......

$ git clone git://git.code.sf.net/p/doxymacs/code doxymacs-code

......

$ ./bootstrap

......

$ ./configure --prefix=/usr/local

......

$ make install


일반적인 제대로 된 설정(?)이라면 위와 같이 하면 동작할 것이다.

나는 일종의 종합선물 세트인 emacs.d를 쓰고 있으므로[각주:1] 관리의 편의를 위해 emacs.d쪽으로 옮긴다. 
$ cp /usr/local/share/emacs/site-lisp/*.el ~/.emacs.d/site-lisp/
또한 eshell에서 /usr/local/bin 이 PATH에 걸려있는지 확인한다. (특히 cygwin에서 제공하는 emacs가 아닌 GNU emacs를 따로 설치한 경우 확인 필요)
마지막으로 적당한 곳(~/.emacs 또는 ~/.emacs.d/lisp/init-local.el)에 다음 라인을 추가한다 (추가하기 싫다면 필요시 eval 해도된다).
(require 'doxymacs)

refs:
http://doxymacs.sourceforge.net/
https://www.emacswiki.org/emacs/DoxyMacs

happy hackin'


  1. 사실 .emacs.d에서 쓰는 packaging system인 MELPA에서 doxymacs를 지원했으면 이따위 수고로운 작업따위 필요없었을텐데. 아숩. [본문으로]
1 2 
분류 전체보기 (306)
잡담 (20)
함수형 언어 (65)
emacs (16)
java (18)
tips & tricks (154)
Linux/Unix (57)
Win (19)
Qt (11)
Xcode (1)
Mac (8)
사랑 (1)
가사 (0)
독서 (4)
mobile (6)
비함수형 언어 (2)

공지사항

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

03-19 16:47