Giter Club home page Giter Club logo

old-blog's Introduction

Table of Contents

  1. General
  2. Backend
  3. Cheat
  4. Frontend
  5. Book
  6. Project

General

General article of development world.

Backend

Backend related article, infra included.

Cheat

Cheat sheet article for myself.

Frontend

Frontend related article. Plan to write article about Flutter.

Book

Book summary.

Modern Java In Action

Project

Toy Project related article.

old-blog's People

Contributors

leeleelee3264 avatar loucal avatar lrdodge avatar rgeraldporter avatar tannerbaldus avatar tanto259 avatar taylantatli avatar

Stargazers

 avatar

Watchers

 avatar

old-blog's Issues

20210830 [BACKEND] Streaming server with spring + android media players (media player, exo player)

스프링을 스트리밍 서버를 어떻게 하나 고민을 가열차게 했는데 별 소용이 없는 것이었다.. 스트리밍 서버를 만들기 위해서는 spring과 같은 앱서버가 아니라 말 그대로 스트링 서버 머신이 필요했다.

그래도 나중에 spring에서 동영상 조각내서 보내는 등 쓸모가 있을까 싶어 백업!

android

20210112 [Backend] session and cookie

In spring boot, I leave session in redis in server and it turned out web browser sets cookie labeled 'SESSION'. Quite not sure this is session for user who logging in the site. It's already set before logging in.
And there is no expired time too. I'm not sure this session is reliable.

[Backend] 자바 VM 옵션 공부 and GC

  • Studying java running options. Something starts with +XX
  • JVM과 자바 코드의 실행 방법
  • [네이버 개발 블로그 가비지 컬렉션] 그냥 이 개발 블로그는 한 번 쭉 읽어야 하는게 아닐지...
  • [우아한 형제들 자바 성능분석]
  • jstat (가비지 컬렉션 모니터링) | jstack (이것은 쓰레드 모니터링 커맨드) | grep Full gc.log
  • resttemplate에서 connection timeout을 설정을 안 하면 천년만년 응답을 기다린다. 이때 쓰레드 하나가 완전 놀고있는 것임. 이때 쓰레드가 도대체 뭘 하고 있는지 상태 보는게 jstack 이다. 그리고 이렇게 쓰레드가 뻑이 나면 외부에서 죽이는 api를 만드는 것보다는 아예 처음부터 쓰레드가 죽지 않게 해야 했다.
  • java heap과 meta 의 상관관계
  • 근데 진짜 GC는 상황별로 어떤 서비스별로인지에 따라서 다르다.
  • meta가 작으면 소스가 채 다 올라오지를 못한다. 라이브러리가 많아서 그것도 다 올려야 하기 때문에
  • resource 는 꼭 개발자가 관리를 해줘야 한다. 코드에서 파일을 열었으면 꼭 닫기 이런 것.
  • 언어의 종류: 시스템언어/스크립트언어/컴파일언어/functional 언어
  • GO언어는 전망이 있는 언어다.
  • 파이썬은 C같은 저수준의 언어들이랑 잘 붙는다. 그래서 껍데기는 파이썬이고 속은 속력이 빠른 C로 만든 경우가 왕왕있다.
  • functional 언어는 stack기반이라 공유 변수가 없어서 완전 멀티코어 특화 언어라고 한다.

20200107 [Front] Case of a tag acting link button

  • document about Url # problem when a tag acting link button
    a tag css sample stack over flow

  • moreover, there is the coolest way to use a tag to download file.

<a href="#" onclick="window.open('/tcadmin/excel/tag/count/download')" download>태그 Excel 다운</a>

<a href="/tcadmin/excel/tag/count/download"  download>태그 Excel 다운</a>

20210308 [BACKEND] , jsonnaming and jsonproperty , Spring event and http2

20210416 [FRONTEND] url percent encoding, input text에 YYYY-mm-dd 로 포멧 정해두기

해당 코드

<!doctype html>
<html lang="ko">
  <head>
  <meta charset="utf-8">
    <title>HTML</title>
    <style>
      * {
        font-size: 16px;
        font-family: Consolas, sans-serif;
      }
    </style>
  </head>
  <body>
    <form>
      <p><input id="date-format" type="text" maxlength="10"></p>
      <p><input type="submit" value="Submit"></p>
    </form>
    <script>
        function dateFormat(el){
            console.log("called")
            value = el.value;       
            el.value = value.replace(/^([\d]{4})([\d]{2})([\d]{2})$/,"$1/$2/$3");        
        }
        const input = document.getElementById('date-format')
        input.addEventListener('input', function () {
            dateFormat(input)
        })
    </script>
  </body>
</html>

2021 상반기 하고 싶은 개인 프로젝트

  • aiv R 로 써진 거 python dash 로 바꾸기
  • 옛날 어드민 python code 그대로 치기
  • 지금 sw-push Java code 그대로 치기
  • 자바 인 액션 한 챕터씩 하기
  • 면접에 나오는 질문 공부하고 잘 정리해두기
  • 알고리즘~~

20210625 [BACKEND] springboot web jar/BaiscErrorController와 추상클래스 형태/Enum Factory Method 패턴/ mysql utf_general과 utf_unicode 차이/ mysql IN 연산에 너무 많은 숫자가 들어갈때/ Java Enum을 다이나믹하게 생성한다면

20210308 [BACKEND] linux related (watch command, path,shell string compare, get max process id, blue_green_deploy)

PATH는 좀 특별한 변수다. shell script에다가 PATH로 넣어버리면 작동이 내가 원하는 방식으로 안된다.
왜냐하면 PATH를 설정해버린거니까. ---> bin/bash는 어떤 path에서 작동하는지 갑자기 궁금함 --> 오잉 shell을 실행해서 pwd 실행하니까 그냥 그 스크립트 있는 주소 토해낸다... bin/bash는 좀 경로가 다르다고 한 것 같은데...

20210830 [BACKEND] AWS 백업용 EC2 snapshot, Restore to snapshot, disk 관련 커맨드들

쌩 우분투 백업/복원하는 방법

disk 관련 커맨드들
df 는 지금 마운트가 되어있는 애들만 보여준다. df -h 하면 human readable 하게 나온다. df --total -h 하면 아무튼 토탈 정보가 나온다.
fdisk -l 얘는 시스템에서 쓰는 디스크들의 전체 파티션을 보여준다. 마운트가 안 되어있어도 나온다.
lsblk (얘도 전체 디스크 보여주는데 fdisk 보다 읽기가 편한 형식) lsblk -f 하면 포멧까지 다 나온다

20210209 [Backend] nginx logformat, watch, su command and MiB etc

  • su 와 su - 의 차이

  • watch command

  • MiB 같은 단위 이게 1024MB 가 1KB가 되는 것
    Mi 바이트 뭐임... 이진바이트가 뭐임,,,, 하고 봤는데 1000단위로 깔끔하게 떨어지는게 아니라 내가 옛날에 알고 있던 2진수 기준으로 계산을 해 둔 것
    1000KB -> 1MB
    1024KB -> 1MiB

  • nginx 로그 포멧

  • 옛날 노트북으로 아예 서버 만들기

  • 트랜잭션은 역시 서비스 로직에서 만들어야 하나보다. 그리고 엔티티 메니저는 repository 계층에서 사용 (현재 spring boot jpa 를 사용하지 않고 그냥 hibernate entity 쓰고 있음)
    구현의 단계
    JPA => 거의 개념에 가까운 인터페이스
    hibernate => JPA 개념을 실제로 구현
    spring boot jpa => spring 용 jpa라고 생각하면 되겠지유
    사실 hibernate은 그냥 java 단에서도 사용이 가능하다 (edited)

20210419 [Backend] 타임리프 슬래쉬/기본 jpa/ param과 attr의 차이

  • [타임리프 슬래쉬]
    타임리프 슬래쉬 하고 modelandview 하면 jar에서 오류나는 이유 (사실 이건 local에서 정상작동하고 머신에서 에러 난것도 아니다. idea에서는 따로 처리를 해줘서 정상 작동 한거고 jar은 안 해주기 때문에 오류가 난 것이다)

new ModelAndView("errorWithReason") 을 해야지
new ModelAndView("/errorWithReason") 을 하면 못 찾는다

20210105 [Backend] Linux shell script

  • Documenting homemade bash file
  • Taking bash class in youtube link is here
  • Learning about export command in shell script
  • Searching .bashr file
  • Documenting the fact that running command and running sh has different env, so has to becareful or set up something more. (bash file's running dir is /bin/bash)

20210124 [Backend] spring Junit5 test

  • 실제로 Unit test 코드를 짜는데 봤던 포스팅 link here
  • Jpa 테스트용 DataJpa에서 엄청 자세하게 테스트를 하는, 다양한 케이스가 있는 포스팅 link here
  • junit5 webmvctest 에서 jsonPath 쓰면서 뭔가 어려운거 있는데 거기 설명 link here
  • junit5 에서 assert 하면서 어쩌구하는거 있는데 그거 설명 link here
  • 족제비처럼 내가 만든 class 보내는게 아니라 ResponseEntity 로 싸서 보내고, error code class 도 적용한 것 link here

20210512 [BACKEND-linux] python nomodule exception/crontab not working/cron log in ubuntu

  • [python nomodule exception]
    해결방법은 이렇게 다른 모듈을 임포트 하는 쪽에서 프로젝트 패스를 명시해주면 되었다.
  7 import sys
  8 import os
  9 sys.path.append("/opt/twitter_project/")

  • [crontab not working]
    crontab을 수정하고 나서 cron을 재시작 해줬어야 했다. 할 필요 없다고 했는데 안하니까 안된다. 해야한다. 그리고 서비스 이름이 crontab인줄 알았는데 그냥 cron이다. 그래서 커맨드는 sudo systemctl restart cron 이런식
  • [cron log in ubuntu ]
    우분투는 cronlog를 따로 만들어주지 않고 syslog에 함께 로그를 찍어준다.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.