윈도우 10이 여러모로 편리한 점이 많긴 한데, 오히려 쓸데없이 친절해서 불편한 부분도 있다.


그 중에 하나가 윈도우 탐색기 왼쪽에 나오는 바로가기들에


OneDrive나 Creative Cloud Files같은 바로가기들이 자동으로 생기는 것이다.



쓰는 사람이야 편하겠지만, 생전 안건드리는 나같은 경우는 오히려 있어서 보기 불편했는데


찾아보니까 지우는 방법은 다양하게 있었지만, 여기서는 레지스트리에서 지우는 방법을 소개하려고 한다.



1. "윈도우 + R" 누르고 실행 창에다가 "regedit" 입력 후 확인

(아니면 윈도우키 누르고 regedit 검색)





2. HKEY_CLASSES_ROOT\CLSID\{018D5C66-4533-4307-9B53-224DE2ED1FE6}

여기로 찾아가서 (아니면 Ctrl +F 해서 "Creative Cloud Files" 검색해도 된다)

System.IsPinnedToNameSpaceTree 이 항목을 더블클릭하고,

1로 되어있는 값을 0으로 바꾸고 확인



HKEY_CLASSES_ROOT\CLSID\{0E270DAA-1BE6-48F2-AC49-E150A5CE9F93}

여기도 똑같이 바꿔준다.


참고로

OneDrive :

{018D5C66-4533-4307-9B53-224DE2ED1FE6}


Creative Cloud Files :

{0E270DAA-1BE6-48F2-AC49-E150A5CE9F93}




이렇게 바꿔주면 탐색기 왼쪽에서 사라진다






* 맨 뒷자리 값은 조금 다를 수도 있으니, 앞자리 비슷하게 찾아서 바꿔보고 확인해보자.


 ** HKEY_CURRENT_USER\Software\Classes\CLSID

여기서 바꿔도 된다.













'컴퓨터관련 > 기타' 카테고리의 다른 글

티스토리에 PDF문서 삽입  (1) 2017.10.01
MS 워드 한글 자모 분리  (0) 2017.06.27
이클립스 아이콘 정보  (1) 2016.12.10
Visual Studio 2015 탭 닫기  (0) 2016.07.15
블로그에 소스코드 올리기 - Color Scripter  (0) 2016.07.09
Posted by ark1230
:

북스캐너 리뷰 포스팅을 작성하다가

PDF파일을 단순히 첨부하는 방식이 아니라 본문에서 바로 볼 수 있게 올리는 방법이 없을까 알아봤더니 생각보다 간단한 방법이 있었다.


* 파이어폭스로 했더니 잘 안됐다. 아마 설치해둔 애드온이랑 구글 앱이랑 충돌해서 그런 것 같긴 한데, 안전하게 크롬으로 하는 것을 권장한다.


* 2017년 10월 1일 기준.





1. 구글 드라이브에 PDF파일을 올린다.


2. 올린 파일을 우클릭해서 공유 옵션으로 들어간다.





3. 고급 -> 변경 으로 들어간다






4. 사용 - 모든 웹 사용자 옵션을 선택하고 저장한다





5. 파일을 더블클릭해서 열면 바로 미리보기로 보여주는데, 우측 상단에 ... 을 클릭하고

"새 창에서 열기"를 누른다.





6. 새 창에서 파일이 열리면 다시 우측 상단의 ... 으로 들어가서 "항목 삽입"을 클릭한다.





7. 여기서 보여주는 링크를 복사해서 사용한다.




8. 티스토리에서 글을 작성할 때 메뉴 오른쪽 끝에 있는 HTML체크박스를 체크하고 위 태그를 붙여넣고 다시 체크를 헤제하면 본문에 아래처럼 PDF파일이 보인다.



적용 예 ↓






Posted by ark1230
:

가끔 우분투에서 다른 하드에 접근이 안되면서


Error mounting /dev/sdb1 at /media/...


이런 에러메세지가 뜰 때가 있다.



해결법은

sudo ntfsfix /deb/sdb1

(에러메세지에 나오는 대로. sdb2일수도 있고)


Posted by ark1230
:

얼마전에 우분투 환경변수 설정하다가 좀 고생해서 다시 한번 찾아봤다.


https://askubuntu.com/questions/866161/setting-path-variable-in-etc-environment-vs-profile


환경변수 건드릴 수 있는 방법 3가지

 

1. /etc/environment

시스템 단계에서 설정하는 파일

모든 유저들에게 적용됨


일반적으로 이 파일 안에는

PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"

이거 한 줄만 있다.

저거 잘못 건드렸다가 무한 로그인(http://ark1230.tistory.com/42)에 빠졌다. 그냥 건드리지 말자.

 


 

2. ~/.profile

각 사용자마다 개별적으로 가지고있는 스크립트 파일

 


 

3. /etc/profile 아니면 /etc/profile.d/*.sh

~/.profile과 유사하지만 전역 스크립트.

이게 먼저 실행되고 개별 ~/.profile이 실행된다.

( /etc/profile이 /etc/profile.d/ 안에 있는 모든 *.sh 스크립트들을 실행시킴)

 


 

예시) JAVA_HOME

자바 환경변수를 만들어야 되면

sudo vi /etc/profile.d/java.sh

이런식으로 스크립트 파일을 하나 만들고,

export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/

요런식으로 적어두면 된다.

적용은 로그아웃하고 다시 로그인할 때 됨.


-------------------------------------------------------------------------------------

터미널에서 경로이동을 조금 편하게 해보자

윈도우에서는 디렉토리 깊숙히 들어있는 폴더는 바로가기를 만들어놓고 사용할 수 있는데

리눅스 터미널에서는 이런 경우 cd 하고 경로를 일일히 다 쳐야돼서 불편하다.

자주 가는 디렉토리가 있다면, 환경변수 설정을 해두면 조금은 타이핑하는 글자를 줄일 수 있겠다 싶어서 한 번 해봤다.


/etc/profile.d/shortkey.sh

아무렇게나 이런 스크립트를 하나 만들어놓고 거기에

export nj=~/Dropbox/Coading/nodejs

변수를 하나 만들고 경로를 지정해두면

이렇게 길게 치던걸 cd $nj 5자만으로 해결


물론 더 좋은 방법이 있겠고, 저렇게 하면서 무슨 문제가 터질지는 모르지만

일단은 이전보단 약간 편해진 것 같다






Posted by ark1230
:

자바스크립트와 Node.js를 이용한 웹 크롤링 테크닉

ch02 > Rhino/Narshon으로 다운로드해 보기


https://github.com/Jpub/JSWebCrawler/blob/master/ch02/01-download/download-rhino.js

여기에 나온 그대로 했더니

이런 식으로 오류가 난다. 

자바쪽 코드에서 ioException이 난거같아서


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
var url = "http://jpub.tistory.com/";
var savepath = "test.html";
 
var aUrl = new java.net.URL(url);
var conn = aUrl.openConnection();
 
conn.addRequestProperty("User-Agent","Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)");
 
var ins = conn.getInputStream();
var file = new java.io.File(savepath);
var out = new java.io.FileOutputStream(file);
 
var b;
while((b=ins.read()) != -1){
  out.write(b);
}
 
out.close();
ins.close();
cs


이렇게

conn.addRequestProperty("User-Agent","Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)");

한 줄 추가하니까 잘 돌아감.



Posted by ark1230
:

리눅스 한 번 써보겠다고 외장하드에 깔고, 무식하게 뭐 하나 할 때마다 구글 옆에 앉혀놓고 하는 중인데


자바 (JRE, JDK) 설치하고 나서 환경변수 설정하다가 /etc/environment 에서 PATH값을 날려먹었다.


/etc/environment 에서 밑에다가

JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/"

만 추가하면 되는거같은데, 괜히 PATH값을 바꾸고 무식하게 저장을 했더니


재부팅할 때 무한 로그인이 뜬다.


우분투 로그인 화면에서 비밀번호를 쳐도 다시 똑같은 화면으로 돌아오길래 뭐가 문젠가 찾아보니까


우분투 사용할 때 nvidia드라이버랑 충돌나면 그렇다는 말이 꽤 있었다.



그런데 그래픽 드라이버 건드린 적이 없어서 그건 아닌거같았다.



일단 아무것도 못하는 로그인 화면에서 벗어나는 방법이

ctrl + alt + F1

을 눌러서 tty로 들어가는 방법이 있어서 일단 들어가봤다.


다행히 로그인까지는 잘 돼서 이제 됐다 싶었는데, 어떤 명령어를 쳐도 이상하게 진행이 안된다.

ls같은 명령어도 안먹힘.

심지어 한글 우분투를 깔아놨더니 이런식으로 깨져서 나오니까 뭐가 문젠지 알 수가 없었다.

작동하는 명령어라고는 cd하나 뿐인데 가만 보니까 아까 환경변수 건드린게 문제인 것 같아서

일단 /etc/environment 를 고쳐보려고 하는데..

당연하지만 vi도 못 키겠다.


어떻게 하나 계속 구글링 하다가

결국 해결책을 찾은게

export PATH=$PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:

이렇게 넣어두니까 이제 정상적으로 동작한다.


다행히 sudo vi /etc/environment/ 들어가서 PATH값 원래대로 고쳐놨더니 로그인 정상적으로 된다.



리알못이라 뭐가 문제였고 어떻게 고친건지 아직도 완벽하게는 모르겠는데,

export로 PATH에 변수 넣어서 정상 작동하게 해놓고 환경변수 복원하니까 되는거같음.

리눅스, 재밌긴 한데 참 배울것도 많고 어렵다.

기본적인 작동원리를 빨리 습득해야할텐데.



3줄요약.

1. /etc/environment 에서 PATH 지워놓고 재부팅함.

2. 무한 로그인.

3. tty들어가서 export로 변수 임시지정하고 /etc/environment 고침.





Posted by ark1230
:

어제 (17.06.26) 갑자기 워드를 쓰는데 한글 입력이 이상하게 되기 시작했다

"오늘은"을 치려고 하면 "오느ㄹㅇㅡㄴ" 이런 식으로

처음 글자까지만 제대로 입력되고 두번째부터는 받힘이 밀리는 등

아예 자음 모음이 분리되던지 하는 현상이 나타남.


윈도우 10, 워드 2016 쓰면서 이런 일이 발생한건 처음이었는데 검색을 해 봐도 키보드 호환성 이런 이야기만 있고 제대로 된 답이 없었는데


감사하게도 http://bethelan.tistory.com/584 이 블로그에서 해결책을 찾았다.

정확한 원인은 모르겠지만 페이지 번호를 지우면 되는 듯 하다.

Posted by ark1230
:

Git이랑 연결된 폴더에 있던 파일들로 이클립스 프로젝트를 만들었더니

아이콘들 옆에 오렌지색 네모가 생겨서 뭔가 하고 찾아봤더니

Version Control 상태라는 의미라고 한다.


이클립스 Concurrent Version Control 아이콘 일람


CVS Label Decorations

Label Decorations are used by CVS to show important synchronization information about workspace resources. Decorations can affect the text or the icon of the label associated with a resource. The text decorators are configurable on the CVS Label Decorations Preference page which can also be used to indicate which icons are to be enabled. Here is a description of the icons used by CVS.

Decoration Resource type Description
Version control icon Any Indicates that the resource is under version control.
Outgoing icon Any Indicates that the resource or one of its children contains outgoing changes.
Edit local icon File Indicates that the project containing the file has been configured to use watch/edit and the file is being edited locally.
Merge conflict icon File Indicates that the file contains a merge conflict which has not yet been resolved. The conflict is considered resolved once the file is modified and saved.
No remote folder icon Project or Folder Indicates that the folder is under version control but does not correspond to an existing remote directory but is instead most likely a module defined in the CVSROOT/modules file.
Not under version control icon File or Folder Indicates that the resource is not under version control.




이클립스 아이콘 일람



JDT Icons

Objects

Compilation Unit (*.java file)
compilation unit (*.java file)
File ending with .java
Java file which is not on a build path
class file
class file
generic file (unknown content type)
generic file (unknown content type)
unknown object
unknown object
Java scrapbook page (*.jpage file)
Java scrapbook page (*.jpage file)
Java scrapbook page (evaluation in progress)
Java scrapbook page (evaluation in progress)
JAR description file
JAR description file
JUnit test result file
JUnit test result file

Java working set
Java working set
Java model
Java model
Library container
library container
JAR file with attached source
JAR file with attached source
JAR file without attached source
JAR file without attached source
Class folder with attached source
class folder with attached source
Class folder without attached source
class folder without attached source
source folder
source folder
package
package
empty package
empty package
logical package
logical package
empty logical package
empty logical package
package only containing non Java resources
package only containing non Java resources

package declaration
package declaration
import container
import container
import
import

Class (public)
class (public)
Interface (public)
interface (public)
Enum type (public)
enum type (public)
Annotation type (public)
annotation type (public)

package visible class
package visible class
private class
private class
protected class
protected class

default field (package visible)
default field (package visible)
private field
private field
protected field
protected field
public field
public field

default method (package visible)
default method (package visible)
private method
private method
protected method
protected method
public method
public method

Object adornments

Java Overlay
marks project as Java project
Java Overlay
decorates files and folders if they are on the build path of their enclosing Java project

build path error decorator
decorates Java projects and working sets that contain build path errors
Abstract Overlay
this Java element causes an error
Warning Overlay
this Java element causes a warning
Deprecation Overlay
this Java element is deprecated

Constructor Overlay
constructor
Abstract Overlay
abstract member
Final Overlay
final member
Static overlay
static member
Default overlay
default method
Synchronized Overlay
synchronized member
Native Overlay
native method
Transient Overlay
transient field
Volatile Overlay
volatile field
Run Overlay
type with
public static void main(String[] args)

Implementor overlay
implements method
Overrides Overlay
overrides method

Focus Overlay
type with focus in Type Hierarchy or Quick Outline/Hierarchy
Maximal Expansion Overlay
maximal expansion level in Call Hierarchy
Recursive Overlay
recursive call in Call Hierarchy

Abstract Compilation Unit
compilation unit containing an abstract class as primary type
Interface Compilation Unit
compilation unit containing an interface as primary type
Enum Compilation Unit
compilation unit containing an enum as primary type
Annotation Compilation Unit
compilation unit containing an annotation as primary type

Build path

class path variable
class path variable
JAR with attached source
JAR with attached source
JAR without attached source
JAR without attached source
system library
system library
build path ordering
build path ordering

inclusion filter
inclusion filter
exclusion filter
exclusion filter
access rules
access rules
Javadoc location
Javadoc location
source attachment
source attachment
native library location
native library location
output folder
output folder

Code assist

HTML tag
HTML tag
Javadoc tag
Javadoc tag
local variable
local variable
template
template
SWT template
SWT template

Compare

field
field
method
method

Debugger

debug launch
debug launch
run launch
run launch
terminated run launch
terminated run launch
process
process
terminated process
terminated process
debug target
debug target
suspended debug target
suspended debug target
terminated debug target
terminated debug target

thread
thread
suspended thread
suspended thread
stack frame
stack frame
running stack frame
running stack frame
adornment that marks a stack frame that may be out of synch with the target VM as a result of an unsuccessful hot code replace
adornment that marks a stack frame that may be out of synch with the target VM as a result of an unsuccessful hot code replace
adornment that marks a stack frame that is out of synch with the target VM as a result of an unsuccessful hot code replace
adornment that marks a stack frame that is out of synch with the target VM as a result of an unsuccessful hot code replace
adornment that marks a stack frame that may be out of synch with the target VM as a result of an unsuccessful hot code replace inspected object or primitive value
evaluated expression
watch expression
local variable
local variable

monitor
monitor
a monitor in contention
a monitor in contention
in thread in contention for a monitor
a thread in contention for a monitor
a monitor that is owned by a thread
a monitor that is owned by a thread
a thread that owns a monitor
a thread that owns a monitor

current instruction pointer (top of stack)
current instruction pointer (top of stack)
current instruction pointer
current instruction pointer

enabled line breakpoint
enabled line breakpoint
disabled line breakpoint
disabled line breakpoint
adornment that marks a breakpoint as skipped
adornment that marks a breakpoint as skipped
adornment that marks a line breakpoint as installed
adornment that marks a line breakpoint as installed
adornment that marks a breakpoint as conditional
adornment that marks a breakpoint as conditional
adornment that marks an entry method breakpoint
adornment that marks an entry method breakpoint
adornment that marks an exit method breakpoint
adornment that marks an exit method breakpoint

field access watchpoint
field access watchpoint
field modification watchpoint
field modification watchpoint
field access and modification watchpoint
field access and modification watchpoint
adornment that marks a watchpoint as installed
adornment that marks a watchpoint as installed

exception breakpoint
exception breakpoint
runtime exception breakpoint
runtime exception breakpoint
disabled exception breakpoint
disabled exception breakpoint
adornment that marks an exception breakpoint as caught
adornment that marks an exception breakpoint as caught
adornment that marks an exception breakpoint as uncaught
adornment that marks an exception breakpoint as uncaught
adornment that marks an exception breakpoint as scoped
adornment that marks an exception breakpoint as scoped
adornment that marks an exception breakpoint as installed
adornment that marks an exception breakpoint as installed

Editor

implements
implements
overrides
overrides
quick assist available
quick assist available
search match
search match

JUnit

test
test
currently running test
currently running test
successful test
successful test
failing test
failing test
test throwing an exception
test throwing an exception
ignored test
ignored test
test with an assumption failure
test with an assumption failure

test suite
test suite
currently running test suite
currently running test suite
successfully completed test suite
successfully completed test suite
test suite with failing test
test suite with failing test
test suite with exception throwing test
test suite with exception throwing test

caught exception
caught exception
stack frame element
stack frame element

NLS tools

skipped NLS key
skipped NLS key
translated NLS key
translated NLS key
untranslated NLS key
untranslated NLS key

Quick fix

quick fixable error
quick fixable error
quick fixable warning
quick fixable warning

add
add
change
change
change cast
change cast
fix multiple problems
fix multiple problems
move to another package
move to another package
remove
remove
remove import
remove import
rename
rename
rename in file
rename in file
surround with try/catch
surround with try/catch

Refactoring

general change
general change
composite change
composite change
text change
text change
file change
file change
Stop error Stop error
Error
Error
Warning
Warning
Information
Information
Information
Change filter

Search

Java Search
Java Search
search for declarations
search for declarations
search for references
search for references

Search - Occurrences in File

general match
a general match
read access to local or field
read access to local or field
write access to local or field
write access to local or field

Type Hierarchy view

type outside of selected package
type outside of selected package
interface outside of selected package
interface outside of selected package


Posted by ark1230
:

VS 사용중 이런 에러가 떠서 검색해보다

http://blog.naver.com/teddy3582/220596357171

여기서 해결방법을 찾음.


======================================================================


"microsoft.vshub.server.httphostx64.exe의 작동이 중지되었습니다"

이녀석은 비쥬얼 스튜디오 2015, 그리고 64비트에서만 나타나는 것 같습니다...

요놈나타나면 매우 답답합니다. 주기적으로 계속 뜨는 메세지이기 떄문이죠.

다행이도 구글신이 답을 내려 주셧습니다.

http://thomas-barthelemy.github.io/2015/05/01/visual-studio-vshub/ 

요기서 찾은건데요, 이분에 말에 따르시면 이 다섯단계로 오류가 해결된답니다.

1. 비쥬얼 스튜디오를 끈다.

2. C:\Program Files (x86)\Common Files\Microsoft Shared\VsHub\1.0.0.0   로 들어간다 (고정)

3. "Microsoft.VsHub.Server.HttpHostx64.exe"파일을 찾아 이름 맨 끝에 .bak을 붙인다 => Microsoft.VsHub.Server.HttpHostx64.exe.bak

​4. "Microsoft.VsHub.Server.HttpHost.exe"파일을 찾아 복사본을 만든 뒤 이름을 바꾼다 => Microsoft.VsHub.Server.HttpHostx64.exe

5. 비쥬얼 스튜디오를 재시작 하면 끝!


Posted by ark1230
:

Visual Studio 2015 를 쓴지 좀 됐는데 항상 현재 문서를 닫을 때 불편했었다.


요새는 어떤 인터넷 브라우저를 쓰더라도 현재 페이지를 닫을 때 Ctrl + W 단축키를 쓰고


심지어 윈도우에서도 현재 창이나 현재 문서를 닫을 때 Ctrl + W를 쓰다보니


VS2015에서도 습관적으로 Ctrl + W를 누르는데,


문제는 VS2015 에서 현재 탭을 닫는 기본 단축키는 Ctrl+F4다.


분명히 바꿀 방법이 있을 것 같았는데 역시 구글링 하니까 바로 나온다.



https://gist.github.com/jpoehls/2030795


여기서 배웠는데,


도구 >> 옵션 >> 환경 >> 키보드 에서


closeTab 을 검색하고, 바로가기 키 누르기 창을 클릭하고 Ctrl+W 를 누른 뒤 할당한다.



그리고 "편집.현재단어선택" 을 검색해서 선택한 명령의 바로가기를 제거 해준다.

(아래는 이미 제거된 상태)


이렇게만 해주면 간단하게 Ctrl+W로 현재 탭을 끌 수 있다.


바꿔놓으니 진짜 편하다.

Posted by ark1230
: