Programming/C++ STL2019. 6. 10. 19:01

파싱, tokenizer

[링크 :https://psychoria.tistory.com/666]

[링크 : https://stackoverflow.com/questions/53849/how-do-i-tokenize-a-string-in-c]

 

string을 숫자로

[링크 : http://yotop93.blogspot.com/2015/04/string.html]

 

문자열 자르기

-1 식으로 끝에서 자르는건 안되는 듯

[링크 : http://www.cplusplus.com/reference/string/string/substr/]

'Programming > C++ STL' 카테고리의 다른 글

vector 값 비우기  (0) 2021.10.02
cpp 부모타입으로 업 캐스팅 된 객체의 원래 클래스 알기  (0) 2021.09.30
cpp stringstream << 연산자  (0) 2019.05.24
c++ 함수 인자 기본값  (0) 2017.11.08
cpp string compare 와 ==  (0) 2017.01.31
Posted by 구차니
프로그램 사용/docker2019. 6. 10. 14:50

여러개는 힘들거 같고, 하나의 컨테이너만 살린다면

그걸 상속받아 만든 녀석에 대해서는 검색이 가능할 듯

 

 

docker ps -a -q  --filter ancestor="image name"

[링크 : https://stackoverflow.com/questions/32073971/stopping-docker-containers-by-image-name-ubuntu]

'프로그램 사용 > docker' 카테고리의 다른 글

docker api  (0) 2019.06.12
docker ps 옵션 차이  (0) 2019.06.11
docker create와 docker rm  (0) 2019.05.30
docker 자원 제한하기  (0) 2019.05.17
docker exited  (0) 2019.05.17
Posted by 구차니

비온다고 해서 걱정했는데, 비한방울도 안뿌려서 다행

 

'개소리 왈왈 > 자전거' 카테고리의 다른 글

자전거 대행진은 아직 소식이 없네  (0) 2020.05.18
오랫만에 자전거  (0) 2020.05.06
점심의 자전거.. -_ㅠ  (2) 2019.05.28
2019 자전거 대행진 신청!  (2) 2019.04.24
2019 서울 자전거 대행진!  (2) 2019.04.23
Posted by 구차니
Programming/Java(Spring)2019. 6. 8. 20:19

 

6.1.3. Using Build Profiles

To activate one or more build profiles from the command line, use the following option:

-P, --activate-profiles <arg>Comma-delimited list of profiles to activate

For more information about build profiles, see Chapter 5, Build Profiles.

 

[링크 : https://books.sonatype.com/mvnref-book/reference/running-sect-options.html]

[링크 : https://www.lesstif.com/pages/viewpage.action?pageId=14090588]

'Programming > Java(Spring)' 카테고리의 다른 글

java 메모리 관련...2?  (0) 2019.07.06
java.lang.OutOfMemoryError: GC overhead limit exceeded  (1) 2019.07.06
tomcat9 on ubuntu18.04  (0) 2019.06.07
tomcat 자동 war 배포 막기  (0) 2019.06.07
tomcat manager GUI  (0) 2019.06.07
Posted by 구차니
Programming/Java(Spring)2019. 6. 7. 16:26

$ sudo apt-get install tomcat9-admin

$ sudo vim /etc/tomcat9/tomcat-users.xml

  <role rolename="manager-gui"/>
  <role rolename="manager-script"/>
  <role rolename="manager-status"/>
  <user username="tomcat" password="password" roles="manager-gui,manager-script,manager-status"/>

 

war 디플로이 경로(tomcat manager 쓰면 상관없음)

/var/lib/tomcat9/webapps

 

 

+

2019.07.29

sudo vi /etc/tomcat9/tomcat-users.xml

sudo vi /usr/share/tomcat9-admin/manager/WEB-INF/web.xml

<multipart-config>
   <max-file-size>152428800</max-file-size>
   <max-request-size>152428800</max-request-size>
   <file-size-threshold>0</file-size-threshold>
</multipart-config>

sudo vim /usr/share/tomcat9-admin/manager/META-INF/context.xml

<Context antiResourceLocking="false" privileged="true" >
<!--
  <Valve className="org.apache.catalina.valves.RemoteAddrValve"
     allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1" />
-->
  <Manager sessionAttributeValueClassNameFilter="java\.lang\.(?:Boolean|Integer|Long|Number|String)|org\.apache\.catalina\.filters\.CsrfPreventionFilter\$LruCache(?:\$1)?|java\.util\.(?:Linked)?HashMap"/>
</Context>
Posted by 구차니
Programming/Java(Spring)2019. 6. 7. 15:59

해당 옵션이 true 라서 war 파일 넣어두고 서버 재시작 하면 배포 되어 버리는 듯

 

unpackWARs
Set to true if you want web applications that are placed in the appBase directory as web application archive (WAR) files to be unpacked into a corresponding disk directory structure, false to run such web applications directly from a WAR file. See Automatic Application Deployment for more information.

[링크 : http://tomcat.apache.org/tomcat-5.5-doc/config/host.html#Standard_Implementation]

[링크 : https://okky.kr/article/130341]

'Programming > Java(Spring)' 카테고리의 다른 글

mvn -P profile  (0) 2019.06.08
tomcat9 on ubuntu18.04  (0) 2019.06.07
tomcat manager GUI  (0) 2019.06.07
WARNING: An illegal reflective access operation has occurred  (0) 2019.06.05
spring에 angluar 통합하기  (0) 2019.06.04
Posted by 구차니
Programming/node.js2019. 6. 7. 15:34

node.js와 chromium 을 통합해 웹어플을 데스크탑 어플로 만들어 주는 녀석

크롬도 수정해서 require 쓸수 있게 하고

보안상의 문제로 별도의 express.js를 못쓰게 한다는데

아무튼 결국에는 node.js와 통신해서 웹과 무언가를 주고받는걸 찾아야 할듯

(근데 얘로 vscode를 만들었다는데 좀 쩌는 듯.. atom을 써봐야하나?)

 

[링크 : https://electronjs.org/docs/tutorial/application-architecture#main-and-renderer-processes]

[링크 : https://electronjs.org/docs/api/ipc-main]

[링크 : https://electronjs.org/docs/api/ipc-renderer]

'Programming > node.js' 카테고리의 다른 글

node.js Javascript heap out of memory  (0) 2019.06.19
node.js 용량 제한(?)  (0) 2019.06.18
electron.js  (0) 2019.06.03
npm-run-all 병렬 빌드 (실패)  (0) 2019.05.29
pdf 내용 추출  (0) 2019.05.27
Posted by 구차니

의외로 postgres 서버의 메모리 늘리는 것은 크게 영향이 없는 듯 하고

설정 파일에서 이것저것 고친거랑.. cpu 갯수 늘린게 영향을 주려나?

일단은 확실한 벤치를 한건 아니지만 ramdom_page_cost 늘린게 가장 큰 영향을 주는 듯

 

work_mem
As I mentioned earlier, memory allocation and management is a big part of performance-tuning PostgreSQL. If your system is doing a lot of complex sorts, increasing the sort memory can help the database optimize its configuration for your setup. This allows PostgreSQL to cache more data in memory while it performs its sorting, as opposed to making expensive calls to the disk.

random_page_cost
This setting essentially is the amount of time that your optimizer should spend reading memory before reaching out to your disk. You should alter this setting only when you’ve done other plan-based optimizations that we’ll cover soon, such as vacuuming, indexing, or altering your queries and schema.

These are just some of the optimizations you can make for database configurations, but there are plenty more. Now that you know how to tweak your database setup, let’s look at another area for investigation: vacuuming.

[링크 : https://stackify.com/postgresql-performance-tutorial/]

 

shared_buffers =  — Editing this option is the simplest way to improve the performance of your database server. The default is pretty low for most modern hardware. General wisdom says that this should be set to roughly 25% of available RAM on the system. Like most of the options I will outline here you will simply need to try them at different levels (both up and down ) and see how well it works on your particular system. Most people find that setting it larger than a third starts to degrade performance.


effective_cache_size =  — This value tells PostgreSQL's optimizer how much memory PostgreSQL has available for caching data and helps in determing whether or not it use an index or not. The larger the value increases the likely hood of using an index. This should be set to the amount of memory allocated to shared_buffers plus the amount of OS cache available. Often this is more than 50% of the total system memory.


work_mem =  — This option is used to control the amount of memory using in sort operations and hash tables. While you may need to increase the amount of memory if you do a ton of sorting in your application, care needs to be taken. This isn't a system wide parameter, but a per operation one. So if a complex query has several sort operations in it it will use multiple work_mem units of memory. Not to mention that multiple backends could be doing this at once. This query can often lead your database server to swap if the value is too large. This option was previously called sort_mem in older versions of PostgreSQL.

[링크 : https://www.revsys.com/writings/postgresql-performance.html]

'프로그램 사용 > postgreSQL' 카테고리의 다른 글

postresql backup & recovery  (0) 2019.06.12
postgresql schema  (0) 2019.06.12
postgresql drop all tables  (0) 2019.06.05
postgresql import from csv  (0) 2019.06.04
postgresql password chg  (0) 2019.06.04
Posted by 구차니
Programming/Java(Spring)2019. 6. 7. 10:22

tt
0.00MB

에디터 바뀌면서 <> 들어가면 다 날려버려 내용이 안들어가네

어떻게 해야하지? -_-


[링크 : 
https://elfinlas.tistory.com/369]

[링크 : https://cpdev.tistory.com/110]

'Programming > Java(Spring)' 카테고리의 다른 글

tomcat9 on ubuntu18.04  (0) 2019.06.07
tomcat 자동 war 배포 막기  (0) 2019.06.07
WARNING: An illegal reflective access operation has occurred  (0) 2019.06.05
spring에 angluar 통합하기  (0) 2019.06.04
spring war와 war.original  (0) 2019.04.23
Posted by 구차니

중고로 3.3만 + 3000 나왔는데

 

지금 쓰는거랑 같은 단자 구성이고(DVI * 2 / mini HDMI)

성능은 향상, 전력 소비는 TDP 기준 65W -> 60W로 하락

외부 전원도 필요없는 저전력 제품이라 확실히 소비전력을 줄어들 듯

 

 

근데 막상 게임도 잘 안하면서 왜 또 이런거에 꽂히는지.. 후...

 

[링크 : http://prod.danawa.com/info/?pcode=2469347&cate1=0&cate2=0&cate3=0&cate4=0]

[링크 : http://gpuboss.com/gpus/GeForce-GTX-750-Ti-vs-GeForce-GTX-650]

[링크 : https://www.gpucheck.com/ko-krw/compare/nvidia-geforce-gtx-750-ti-vs-nvidia-geforce-gtx-650/.../]

'개소리 왈왈 > 컴퓨터' 카테고리의 다른 글

오늘의 지름!  (3) 2019.06.20
지름 도착  (2) 2019.06.10
망할 서버 지름신..  (2) 2019.06.05
키보드 도착  (6) 2019.06.04
고민하다 일단 기계식 키보드 (청축) 하나 지름  (6) 2019.06.03
Posted by 구차니