'분류 전체보기'에 해당되는 글 1011

  1. 2023.05.20 준비
  2. 2021.07.06 노트북 웹캠이 동작 안함
  3. 2021.03.08 Armeria
  4. 2021.03.07 test
  5. 2021.01.30 HornetQ를 찾아서, ActiveMQ-Artemis
  6. 2021.01.28 윤토, 미니 반성해라ㅋ
  7. 2020.07.14 [vi실습] JSON 편집 / ci'
  8. 2020.06.10 Notepad++에서 vi키 바인딩하기
  9. 2019.08.04 선자령 일출
  10. 2018.09.20 업무/ /-D @石
  11. 2016.10.09 선유도공원
  12. 2016.06.18 Subversion 버전 정보
  13. 2016.04.14 Lee's walk-off home run
  14. 2016.03.20 갑자기 전기공작
  15. 2016.03.13 [추억] 어릴때 가지고 놀던 것들
  16. 2016.03.11 Bottle-Sqlalchemy
  17. 2016.03.08 Bottle-SQLite
  18. 2016.03.01 tail using Windows command
  19. 2015.09.02 2015 제주도 여행 - 최고의 여행
  20. 2015.07.17 Andrea Bocelli - MAI PIU' COSI LONTANO
  21. 2015.06.12 ActiveMQ
  22. 2015.06.03 watch.bat
  23. 2015.04.08 Vert.x 시작하기
  24. 2015.03.16 SciPy 설치
  25. 2014.12.20 Error: package ‘rJava’ could not be loaded
  26. 2014.08.27 Grails-Testing
  27. 2014.07.13 [미완] 권한 관리 - 틀 만들기, Grails
  28. 2014.06.11 GroovyConsole
  29. 2014.05.22 matplotlib 맛보기
  30. 2014.05.06 Elasticsearch 맛보기

준비

보호되어 있는 글입니다.
내용을 보시려면 비밀번호를 입력하세요.

노트북 웹캠이 동작 안함

장치관리자에서 안보임. 카메라, 이미징 장치, 변경사항 검색해도 안나옴.

여기서 안보인다는 거는 드라이버 잘못 설치? 그러면 물음표라도 나와야 하는데...

 

윈도우 업데이트 했음.

설정 - 개인 정보 - 액세스 허용 -> 안됨

 

카메라 앱 실행, 카메라를 찾을 수 없습니다.

 

제조사 드라이버 업데이트?

삼성 이놈들아, 드라이버 하나 찾기가 왜이리 힘드냐, 레노버보다 못하다.

 

장치관리자에서 카메라가 보이지 않는 것은 장치가 활성화되지 않아서 일수도..역쉬

삼성노트북, 보안 활성화? 머 그런 기능이 있었다.

활성화하니 장치관리자에서 카메라가 보인다.

 

코로나 시대, 아빠는 컴퓨터 수리 실력이 일취월장하고 있다. 

 

 

Armeria

Armeria: 어디서나 잘 어울리는 마이크로서비스 프레임워크

Java와 Armeria로 기본적인 웹 서버 만들기

 

Dependency 추가 
<Group Name>:<Artifact Id>:<Version>
compile "com.linecorp.armeria:armeria:0.68.2"

 

public class ArmeriaServer {

	public static void main(String[] args) {
		
		new ServerBuilder()
			.http(7000)
			.service("/hello", (ctx, res) -> HttpResponse.of(
				HttpStatus.OK, MediaType.HTML_UTF_8
				, "<h1>Hello</h1>"
			)).build().start();
	}
}

 

18:21:32.686 [main] DEBUG io.netty.channel.DefaultChannelId - -Dio.netty.machineId: a4:34:d9:ff:fe:ca:a7:dd (auto-detected)
18:21:32.742 [armeria-boss-http-*:7000] INFO com.linecorp.armeria.server.Server - Serving HTTP at /[0:0:0:0:0:0:0:0]:7000 - http://127.0.0.1:7000/

 

 

 

test

hi

asdff
gfdry

HornetQ를 찾아서, ActiveMQ-Artemis

STS - Spring Starter Project 에서 HornetQ 의존성이 안보임.
Spring Boot JMS를 HornetQ 로 임베딩해서 하고 싶음.

스프링 부트 1.5에서 HornetQ와 벨로시티 Velocity서포트가 제거되었다고 함(deprecated)
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-1.5-Release-Notes#deprecations-from-spring-boot-14

HornetQ가 ActiveMQ-Artemis로 옮긴(?) 글을 봤음.
https://hornetq.jboss.org/
HornetQ has been donated to the Apache ActiveMQ community!
릴리즈도 2.4.0.Final, 2013/12/16 이 마지막

Artemis가 릴리즈 되었음.
HornetQ Apache donation and Apache Artemis 1.0.0 release
Monday, 1 June 2015

Artemis는 ActiveMQ와 무슨 관계냐... 

Apache ActiveMQ에 소개된 내용, Artemis가 향후 ActiveMQ 6로 된다고 함.
There are currently two "flavors" of ActiveMQ available - the "classic" 5.x broker and the "next generation" Artemis broker. Once Artemis reaches a sufficient level of feature parity with the 5.x code-base it will become ActiveMQ 6. Initial migration documentation is available.

어쨌든 Artemis를 사용하면 될 거 같다.
STS에서 Artemis 의존성이 보임.

끝~


윤토, 미니 반성해라ㅋ



[vi실습] JSON 편집 / ci'

특정 문자로 둘러싸인 글뭉치를 편집하는 경우가 많다.
Json 뿐만 아니라 XML, HTML, 규칙적인 데이터
문서편집기의 열편집, 매크로 기능을 이용해서 할 수 있음.

 

vi에서 해본다 (문서 전체에서 특정 패턴을 찾는 방법은 다음에~)

{ id: 22, name: 'Alice', score: 123, city: 'Atlanta', birthday: '1981/12/03'},
 
$-F-'-;-;-d-i-'-;-;
뒤에서부터 '를 찾고, 
;로 반복해서 찾고  //3F'를 사용해도 된다.
 
c-i-'로 '으로 둘러싸인 부분을 편집한다. 오호~
d-i-', y-i-' 가능
 
사용가능 문자
', ", <, [, {, (,
 
new File("downloadedimg.jpg").withOutputStream { out -> //di" ci(

<node1 name="company/bizplace/dept">

, get_code_nm(#{S_COCD}, user_type, 'ko') as user_type_nm
이런 경우에도 편하게 사용
 
매크로를 사용할 수도 있음.
컬럼모드로 수정은 다음에~
 
 

 

Notepad++에서 vi키 바인딩하기

vi키 바인딩이 되는 텍스트 편집기를 찾다가...드디어 발견
ViSimulator for Notepad++
 
Plugin Admin(Plugin Manager에서 바뀐듯)에서 visimulator를 찾을 수 없다.
검색해 보니 해당 사이트는 더이상 운영되지 않아서 stackoverflow를 참고해서 플러그인을 다운로드했다.
거기에 NPP를 32bit용으로 설치를 해야 된다.
plugins 디렉토리에 visimulator.dll를 넣으면 된다고 하는데 디렉토리 구조가 예전과 다르네.
다른 플러그인처럼 visimulator 디렉토리를 만들고 dll을 해당 디렉토리에 넣으니 된다.!!!
 
이제 Editplus는 그만 사용할 듯하다.
 

설정

^F는 잘 쓰지 않으니 해제, 그런데 다시 시작하면 체크되어 있다. 
 
Unix vi와 다른점은 버퍼가 있는게 아니라 클립보드로 복사된다. 
아, 복잡다. 그만 하자.
 
그나저나 코딩하라는데 화면까지 할란지는...
 

2021-06-18

최신 버전인 8.1로 설치후 visimulator 복사, vi기능은 동작하지만 NPP 대화창(설정창 등)이 나오지 않는다.

무설치본, 설치본 모두 동일 현상, 7.9.5 버전으로 내리고 해보니 정상 동작

 

 

선자령 일출

 

 

업무/ /-D @石

보호되어 있는 글입니다.
내용을 보시려면 비밀번호를 입력하세요.

선유도공원

주차 안됨.
다리위에서 주차장 찾지 마라. 버스로 접근성 좋다.

2016-10-03 한적한 오후를 즐기기에 좋다.


Subversion 버전 정보

- Client

$ svn --version

svn, 버젼 1.5.3 (r33570)
    Oct 23 2008, 20:11:04에 컴파일 됨

Copyright (C) 2000-2008 CollabNet.
Subversion은 오픈 소스 소프트웨어 입니다, http://subversion.tigris.org/
이 제품은 CollabNet이 개발한 소프트웨어를 포함하고 있습니다.(http://www.Collab.Net/).

저장소(repository) 접근 모듈(RA) 목록:

* ra_neon : Neon을 이용하여 WebDAV 프로토콜을 통해 저장소에 접근하는 모듈
  - 'http' 스키마를 처리합니다.
  - 'https' 스키마를 처리합니다.
* ra_svn : svn 네트워크 프로토콜을 사용하여 저장소에 접근하는 모듈
  - 'svn' 스키마를 처리합니다.
* ra_local : 로컬 디스크에 있는 저장소를 접근하기 위한 모듈
  - 'file' 스키마를 처리합니다.

$ whereis svn
svn: /usr/local/bin/svn /usr/local/share/man/man1/svn.1


- Server

svnadmin --version

svnserve --version


서버에 들어갈 권한이 없어서...응답을 보거나 헤더 정보에서 얻을 수 있다.





Lee's walk-off home run

대타나왔다길래 급하게 봤다.
소리지르고 난리남.



여튼 세상에서 쓸데없는 걱정중 하나가 대호 걱정이라더니,ㅋㅋ


갑자기 전기공작

그냥 생각이 나서 워니랑 놀이


빵판은 가지고 있던거

LED, 저항, 스위치는 머만들려고 사두고는 3년동안 처박혀 있던거

배터리박스는 과학상자



저항 안넣어서 빨간 LED 태워 먹음


재미있게 놀 방법 없나?



[추억] 어릴때 가지고 놀던 것들

 


DIY, 또는 넘사벽의 원조. 절망과 좌절의 "빈깡통 공작." -_-;;
http://egloos.zum.com/eniac90/v/4730308

[인증샷] 30년 된 책들....팬더공작이란 책 아시나요 ?
http://dvdprime.donga.com/g5/bbs/board.php?bo_table=archive_comm_2010&wr_id=5080337

[추억] 라디오와 모형
http://egloos.zum.com/dragonjoon/v/869175

종이공작 시리즈의 일본 원작
http://snowfrolic.tistory.com/391

나무젓가락 공작
기초공작가이드북(007기초전자공작집시리즈)
탱크 만들기(팬더 판지 공작 시리즈 1)
호비일렉트로닉스(학생과학기술사)


80년대에 나처럼 이런걸 가지고 놀던 사람들이 있었다.

국립 중앙도서관에라도 가봐야 하나.

Bottle-Sqlalchemy

https://pypi.python.org/pypi/bottle-sqlalchemy/
https://github.com/iurisilvio/bottle-sqlalchemy


> pip install bottle-sqlalchemy
> python -c "import sqlalchemy; print(sqlalchemy.__version__)"
1.0.12



=-=>초기 데이터는 어떻게 넣나? 초기옵션을 잘 사용하면 될듯

=-=>잘못된 예제

http://www.blog.pythonlibrary.org/2013/07/23/bottle-adding-sqlalchemy-to-the-todo-list-web-app/

https://github.com/mcapielo/Todo-List-Bottle-SQLAlchemy-Bootstrap/blob/master/todo.py




Bottle-SQLite

http://bottlepy.org/docs/dev/plugins/sqlite.html

https://pypi.python.org/pypi/bottle-sqlite/


Installation
pip install bottle-sqlite

memory db 사용가능하고
인자명 db 변경가능
db 여러 개 사용가능

tail using Windows command

> type a.txt | find /c /v ""
52
> set /a 52-5
47
> more +47 a.txt > con
vv
ww
xx
yy
zz


-f 옵션은 다음 기회에.

2015 제주도 여행 - 최고의 여행







Andrea Bocelli - MAI PIU' COSI LONTANO



ActiveMQ

오픈소스 메시징/통합패턴 서버

다양한 언어 지원
STOMP, AMQP, MQTT
JMS 1.1 and J2EE 1.4


- 2015-06-12 현재 apache-activemq-5.11.1가 최신

그런데 실행이 안됨. 에러도 발생 안함.

apache-activemq-5.11.1> bin\activemq
Java Runtime: Oracle Corporation 1.7.0_09 C:\Program Files\Java\jdk1.7.0_09\jre
  Heap sizes: current=1013632k  free=996854k  max=1013632k
    JVM args: -Dcom.sun.management.jmxremote -Xms1G -Xmx1G ...

Extensions classpath:
  [...]
ACTIVEMQ_HOME: ...\apache-activemq-5.11.1\bin\..
ACTIVEMQ_BASE: ...\apache-activemq-5.11.1\bin\..
ACTIVEMQ_CONF: ...\apache-activemq-5.11.1\bin\..\conf
ACTIVEMQ_DATA: ...\apache-activemq-5.11.1\bin\..\data
Usage: Main [--extdir <dir>] [task] [task-options] [task data]

Tasks:
    browse                   - Display selected messages in a specified destination.
    bstat                    - Performs a predefined query that displays useful statistics regarding the specified broker
    create                   - Creates a runnable broker instance in the specified path.
    decrypt                  - Decrypts given text
    dstat                    - Performs a predefined query that displays useful tabular statistics regarding the specified destina
tion type
    encrypt                  - Encrypts given text
    export                   - Exports a stopped brokers data files to an archive file
    list                     - Lists all available brokers in the specified JMX context
    purge                    - Delete selected destination's messages that matches the message selector
    query                    - Display selected broker component's attributes and statistics.
    start                    - Creates and starts a broker using a configuration file, or a broker URI.
    stop                     - Stops a running broker specified by the broker name.

Task Options (Options specific to each task):
    --extdir <dir>  - Add the jar files in the directory to the classpath.
    --version       - Display the version information.
    -h,-?,--help    - Display this help information. To display task specific help, use Main [task] -h,-?,--help

Task Data:
    - Information needed by each specific task.

JMX system property options:
    -Dactivemq.jmx.url=<jmx service uri> (default is: 'service:jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi')
    -Dactivemq.jmx.user=<user name>
    -Dactivemq.jmx.password=<password>


확인 결과 5.10.0부터 발생

5.9.1은 제대로 실행됨.

apache-activemq-5.9.1> bin\activemq
Java Runtime: Oracle Corporation 1.7.0_09 C:\Program Files\Java\jdk1.7.0_09\jre
  Heap sizes: current=1013632k  free=996854k  max=1013632k
    JVM args: -Dcom.sun.management.jmxremote -Xms1G -Xmx1G ...
Extensions classpath:
  [...]
ACTIVEMQ_HOME: ...\apache-activemq-5.9.1\bin\..
ACTIVEMQ_BASE: ...\apache-activemq-5.9.1\bin\..
ACTIVEMQ_CONF: ...\apache-activemq-5.9.1\bin\..\conf
ACTIVEMQ_DATA: ...\apache-activemq-5.9.1\bin\..\data
Loading message broker from: xbean:activemq.xml
 INFO | Refreshing org.apache.activemq.xbean.XBeanBrokerFactory$1@e34a3c: startup date [Fri Jun 12 22:51:42 KST 2015]; root of con
text hierarchy
 INFO | PListStore:[...\apache-activemq-5.9.1\bin\..\data\localhost\tmp_storage] started
 INFO | Using Persistence Adapter: KahaDBPersistenceAdapter[...\apache-activemq-5.9.1\bin\.
.\data\kahadb]
 INFO | Apache ActiveMQ 5.9.1 (localhost, ID:pantarei-PC-20301-1434117106014-0:1) is starting
 INFO | Listening for connections at: tcp://...:61616?maximumConnections=...
 INFO | Connector openwire started
 INFO | Listening for connections at: amqp://...:5672?maximumConnections=...
 INFO | Connector amqp started
 INFO | Listening for connections at: stomp://...:61613?maximumConnections=...
 INFO | Connector stomp started
 INFO | Listening for connections at: mqtt://...:1883?maximumConnections=...
 INFO | Connector mqtt started
 INFO | Listening for connections at ws://...:61614?maximumConnections=...
 INFO | Connector ws started
 INFO | Apache ActiveMQ 5.9.1 (localhost, ID:...-20301-1434117106014-0:1) started
 INFO | For help or more information please see: http://activemq.apache.org
 WARN | Store limit is 102400 mb (current store usage is 0 mb). The data directory: ...\apa
che-activemq-5.9.1\bin\..\data\kahadb only has 31427 mb of usable space - resetting to maximum available disk space: 31427 mb
ERROR | Temporary Store limit is 51200 mb, whilst the temporary data directory: ...\apache-
activemq-5.9.1\bin\..\data\localhost\tmp_storage only has 31427 mb of usable space - resetting to maximum available 31427 mb.
 INFO | ActiveMQ WebConsole available at http://localhost:8161/
 INFO | Initializing Spring FrameworkServlet 'dispatcher'
 INFO | jolokia-agent: No access restrictor found at classpath:/jolokia-access.xml, access to all MBeans is allowed


http://localhost:8161/


- 데모

http://activemq.apache.org/web-samples.html

apache-activemq-5.9.1> bin\activemq xbean:examples/conf/activemq-demo.xml


http://localhost:8161/demo



watch.bat

https://gist.github.com/jujhars13/4153770

@echo off

if %1==-n (
  set interval=%2
  shift
  shift
) else (
  set interval=2
)

title Watch %1 %2 %3 %4 %5 %6 %7 %8 %9
:loop
cls
%1 %2 %3 %4 %5 %6 %7 %8 %9

timeout /t %interval%
goto loop


> watch.bat netstat -na ^| findstr LIST

> watch.bat -n 5 netstat -na ^| find /c "LIST" //이런 식의 변화를 보는데 적합한 듯


변화되는 상황을 보기에는 Unix watch의 -d 옵션이 필요하다.

watch1.bat 참고


Vert.x 시작하기

- Installation

1. Vert.x requires JDK 1.7.0 or later.

(JRE가 아닌 Full JDK나 for Developers 옵션을 선택해야 한다.)

> java version


2. Unzip.
3. Add the Vert.x bin/ to PATH.


> vertx version
2.1.5 (built 2014-11-13 15:15:56)


- Testing the install

> vertx run server.js



====>자바 컴파일 필요없는거

각 구현체 설정 파일, 구현 엔진

jruby, jpython, rinho
java compile이 필요없다.

SciPy 설치

http://scipy.org/scipylib/download.html
http://sourceforge.net/projects/scipy/files/scipy/0.15.0/
Windows용 바이너리로 설치하는게 좋을 듯

> scipy.version.full_version
'0.15.0'







Error: package ‘rJava’ could not be loaded

모듈을 올리는데 에러가 발생한다.

> library(KoNLP)
Loading required package: rJava
Error : .onLoad failed in loadNamespace() for 'rJava', details:
  call: dirname(this$RuntimeLib)
  error: a character vector argument expected
Error: package ‘rJava’ could not be loaded


환경변수에 JAVA_HOME을 지정한다.

Grails-Testing

이걸 왜 PDF로 만들어서 올리지??? ㅋㅋ

http://grails.org/doc/latest/guide/testing.html

http://grails.org/doc/2.2.0/guide/testing.html
이거 19페이지, 이걸 보면 될듯

IntegrationSpec (Grails 2.4.3)
부터 spock 지원하는듯
2.3도 지원

[미완] 권한 관리 - 틀 만들기, Grails

보호되어 있는 글입니다.
내용을 보시려면 비밀번호를 입력하세요.

GroovyConsole

https://groovy-lang.org/groovyconsole.html

 

 

 

 

 

Run Ctrl+R
Clear Output Ctrl+W (Auto Clear Output On Run을 체크해 두면 편하다)
History Ctrl+, OR .

Larger/Smaller Font

Show Script In Output

Loop Mode, 스크립트를 반복해서 실행한다. 실행을 중지시키려면 스크립트에 수정을 가하면 된다. /뿌듯ㅋ

//while(true){
    println new Date() 
    sleep 1000 * 3 
//} 

Interrupt, 무한루프 실행시 안됨.

 

 

matplotlib 맛보기

- 설치

- 확인

  

Elasticsearch 맛보기

초간단 맛보기

https://www.elastic.co

설치

Download and unzip

 

실행

Run bin/elasticsearch

 

설정

7.15.2[각주:1] elasticsearch.yml에 xpack.ml.enabled: false 추가

org.elasticsearch.ElasticsearchException: X-Pack is not supported and Machine Learning is not available for [windows-x86]; you can use the other X-Pack features (unsupported) by setting xpack.ml.enabled: false in elasticsearch.yml

 

확인

http://localhost:9200/

{
  "status" : 200,
  "name" : "Quicksilver",
  "version" : {
    "number" : "1.1.1",
    "build_hash" : "f1585f096d3f3985e73456debdc1a0745f512bbc",
    "build_timestamp" : "2014-04-16T14:27:12Z",
    "build_snapshot" : false,
    "lucene_version" : "4.7"
  },
  "tagline" : "You Know, for Search"
}

 

이걸로 끝!

 

하나 더 실행하면 9201로 실행됨.

 

- 1.5.2 버전에서는 JDK 1.7이 필요한데, 1.8을 권장함.

 

  1. 2021-12-07 [본문으로]