'잡동사니'에 해당되는 글 13451건

  1. 2019.06.10 ubuntu android studio
  2. 2019.06.10 지름 도착 2
  3. 2019.06.10 cpp string 관련
  4. 2019.06.10 docker 컨테이너 이미지 이름으로 검색하기
  5. 2019.06.09 자전거 대행진
  6. 2019.06.08 mvn -P profile
  7. 2019.06.07 tomcat9 on ubuntu18.04
  8. 2019.06.07 tomcat 자동 war 배포 막기
  9. 2019.06.07 electron ipc
  10. 2019.06.07 postgres db 속도 향상
Programming/android2019. 6. 10. 23:23

 

sudo add-apt-repository ppa:maarten-fonville/android-studio

sudo apt-get update

sudo apt-get install android-studio

[링크 : https://webnautes.tistory.com/1134]

 

 

그나저나 윈도우용은 용량 무지 컸던거 같은데 리눅스라 그런가 용량이 적다?

$ sudo apt-get install android-studio
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다       
상태 정보를 읽는 중입니다... 완료
다음 패키지가 자동으로 설치되었지만 더 이상 필요하지 않습니다:
  linux-headers-4.18.0-18 linux-headers-4.18.0-18-generic linux-image-4.18.0-18-generic linux-modules-4.18.0-18-generic
  linux-modules-extra-4.18.0-18-generic
Use 'sudo apt autoremove' to remove them.
다음의 추가 패키지가 설치될 것입니다 :
  lib32gcc1 lib32ncurses5 lib32stdc++6 lib32tinfo5 lib32z1 libc6-i386
제안하는 패키지:
  default-jdk
다음 새 패키지를 설치할 것입니다:
  android-studio lib32gcc1 lib32ncurses5 lib32stdc++6 lib32tinfo5 lib32z1 libc6-i386
0개 업그레이드, 7개 새로 설치, 0개 제거 및 30개 업그레이드 안 함.
3,388 k바이트 아카이브를 받아야 합니다.
이 작업 후 15.6 M바이트의 디스크 공간을 더 사용하게 됩니다.
계속 하시겠습니까? [Y/n] 

는 개뿔. 똑같이 크네 -_-

받기:1 http://kr.archive.ubuntu.com/ubuntu bionic/main amd64 libc6-i386 amd64 2.27-3ubuntu1 [2,651 kB]
받기:2 http://ppa.launchpad.net/maarten-fonville/android-studio/ubuntu bionic/main amd64 android-studio amd64 183.5400832~bionic [36.2 kB]
받기:3 http://kr.archive.ubuntu.com/ubuntu bionic-updates/main amd64 lib32tinfo5 amd64 6.1-1ubuntu1.18.04 [79.1 kB]
받기:4 http://kr.archive.ubuntu.com/ubuntu bionic-updates/main amd64 lib32ncurses5 amd64 6.1-1ubuntu1.18.04 [100 kB]
받기:5 http://kr.archive.ubuntu.com/ubuntu bionic/main amd64 lib32z1 amd64 1:1.2.11.dfsg-0ubuntu2 [58.3 kB]
받기:6 http://kr.archive.ubuntu.com/ubuntu bionic-updates/main amd64 lib32gcc1 amd64 1:8.3.0-6ubuntu1~18.04 [47.9 kB]
받기:7 http://kr.archive.ubuntu.com/ubuntu bionic-updates/main amd64 lib32stdc++6 amd64 8.3.0-6ubuntu1~18.04 [415 kB]
내려받기 3,388 k바이트, 소요시간 1초 (2,693 k바이트/초)
Selecting previously unselected package android-studio.
(데이터베이스 읽는중 ...현재 283062개의 파일과 디렉터리가 설치되어 있습니다.)
Preparing to unpack .../0-android-studio_183.5400832~bionic_amd64.deb ...
--2019-06-10 23:21:23--  https://dl.google.com/dl/android/studio/ide-zips/3.4.0.17/android-studio-ide-183.5400832-linux.zip
Resolving dl.google.com (dl.google.com)... 64.233.189.91, 64.233.189.93, 64.233.189.136, ...
접속 dl.google.com (dl.google.com)|64.233.189.91|:443... 접속됨.
HTTP request sent, awaiting response... 200 OK
Length: 1091186070 (1.0G) [application/zip]
Saving to: ‘/opt/android-studio-ide.zip

/opt/android-studio-ide.zip       100%[===========================================================>]   1.02G  5.64MB/s    in 3m 6s   

2019-06-10 23:24:30 (5.59 MB/s) - ‘/opt/android-studio-ide.zip’ saved [1091186070/1091186070]

 

+

2019.06.11

메모리 사용량 장난아니네.. ㄷㄷ

// 안드로이드 가상 머신 + studio

$ free -h
              total        used        free      shared  buff/cache   available
Mem:           3.8G        2.9G        102M        266M        776M        377M
스왑:        2.0G        388M        1.6G

 

// studio

$ free -h
              total        used        free      shared  buff/cache   available
Mem:           3.8G        2.7G        436M        120M        619M        700M
스왑:        2.0G        388M        1.6G

 

 

// 전부 종료 후

$ free -h
              total        used        free      shared  buff/cache   available
Mem:           3.8G        930M        2.2G        108M        640M        2.5G
스왑:        2.0G        387M        1.6G

'Programming > android' 카테고리의 다른 글

android / 구글 지도 API 발급  (0) 2019.06.21
android studio /dev/kvm permission denied  (0) 2019.06.11
안드로이드 무선 디버깅(adb wifi)  (0) 2019.03.14
AndroidManifest.xml (binary) 디코더  (0) 2019.03.14
android REST client  (0) 2019.02.07
Posted by 구차니
개소리 왈왈/컴퓨터2019. 6. 10. 21:50

ADATA SU650 2.5" SATA 6Gb/s 240GB  두개 도착

근데 언제 포맷하지? ㅋㅋㅋ

 

이제 남은건.. 그래픽 카드인가?!

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

노트북 완전체 업그레이드  (8) 2019.06.21
오늘의 지름!  (3) 2019.06.20
아.. 누가 미친 지름신좀 말려줘...  (2) 2019.06.06
망할 서버 지름신..  (2) 2019.06.05
키보드 도착  (6) 2019.06.04
Posted by 구차니
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 구차니