반응형
  • GIT: author/commiter
    • 차이 
      • author: 특정 commit의 최초 저자
      • committer: 특정 commit에 commit --amend를 해서 여러개 쌓았을 때 마지막으로 쌓은 사람, 혹은 어떤 사람의 커밋을 cherry-pick해서 push했을 때 - author는 어떤사람이고 push한 내가 committer가 됨
    • author/committer로 남겨지는 이름을 변경하고 싶으면 git config로 세팅을 바꾸면 됨. 세팅 안되어 있으면 해당 컴퓨터내 사용자 이름이 자동으로 사용됨, 이렇게 자동으로 이름을 사용할 경우, warning 차원에서 커밋시 다음 메세지를 보여줌
      Your name and email address were configured automatically based
      on your username and hostname. Please check that they are accurate.
      You can suppress this message by setting 
      
          git config --global user.name "Your Name"
          git config --global user.email you@example.com
      
      After doing this, you may fix the identity used for this commit with:
      
          git commit --amend --reset-author
      Your name and email address were configured automatically based
      on your username and hostname. Please check that they are accurate.
      You can suppress this message by setting them explicitly. Run the
      following command and follow the instructions in your editor to edit
      your configuration file:
      
          git config --global --edit
      
      After doing this, you may fix the identity used for this commit with:
      
          git commit --amend --reset-author
  • GERRIT: owner/uploader/reviewer
    • 차이
      • owner: gerrit에서 code review를 생성한 최초 저자
      • uploader: gerrit에서 동일 code review에 여러개가 쌓였을 때 마지막으로 쌓은 사람
      • reviewer: 말그대로 review화면에서 보이도록 설정한 사람
    • gerrit code review에 남는 명칭
    • git config에 설정된 이름이 아니라 git ssh 계정을 따라 정보가 남음
    • hyungsub.song 데스크탑을 받아서 git까지 세팅된 것 그대로 사용하다가 review에 내이름이 아니라 hyungsub.song으로 잘못 남게 되는 것 발견함, 수정하기 위해서는 다음 과정을 거치면 됨
      • git remote -v
        • remote의 상세정보 확인, ssh://hyungsub.song@mod.lge.com:29450/rich-dev/cdp-web이었음
      • git remote remove origin
        • 기존 origin 삭제
      • git remote add origin ssh://sy919.kim@mod.lge.com:29450/rich-dev/cdp-web
        • origin 재등록
      • git remote show origin
        • origin 정상등록 확인, 권한이 없다느니 그런 에러가 남
        • 현재 이 로컬내 키 정보가 hyunsub.song의 계정에만 등록되어 있고 sy919.kim에는 없기 때문
        • 해결을 위해 /home/hyungsub/.ssh/id_rsa.pub내용을 카피해서 gerrit setting화면에 붙여넣자
        • 더 정확히 하기 위해 hyungsub.song계정 gerrit setting에 기존 등록된 id_rsa.pub는 삭제해면 여기로 더이상 남는 것 아예 방지가능함, 하지만 구지 여기까지는...

 

반응형
반응형

.gnb > ul > li > a {
  position: relative;
  display: block;
  width: 100%;
  font-size: 22px;
  line-height: 80px;
  color: #ffffff;
  text-align: center;
  font-weight: 500;
}

.sub_menu ul li a {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 15px;
  line-height: 35px;
  color: #756161;
}

@media only screen and (min-width: 1200px) and (max-width: 1366px) {
  .gnb > ul > li > a {
    font-size: 16px;
  }

  .sub_menu ul li a {
    font-size: 12px;
  }
}

반응형
반응형

app-ads.txt는 앱 개발자가 광고 요청이 발생한 앱을 소유하고 있다는 사실을 광고주에게 증명함으로써 인앱 광고 사기를 방지할 수 있는 파일

반응형

'etc' 카테고리의 다른 글

504 gateway time-out 에러 해결방법  (0) 2022.09.08
proxy/reverse proxy, web server, load balancer 개념  (0) 2022.09.08
character encoding  (0) 2022.07.11
헷갈리는 것들  (0) 2019.03.15
Web Application Architecture 교육 (2019/03/11~03/15)  (0) 2019.03.11
반응형

컬럼 변경쿼리에 문제가 없는 데도 컬럼속성 변경이 안되는 경우

* 이미 null 값이 들어있는데 not null 속성으로 바꾼다거나

* 0, 1 이외의 값이 들어있는데 bit으로 바꿘다거나

* 그 외 그타입으로 바꿀수 없는 값이 이미 그 컬럼에 있을 때는 먼저 컬럼 값을 바꾸고 컬럼속성을 바꿔야 한다

* change column 할 때에 꼭 생각하자! 삽질 그만 ㅠ.ㅠ

 

반응형

'db' 카테고리의 다른 글

postgreSQL  (0) 2023.11.09
mysql 모든 table, key, index...etc 확인  (0) 2022.05.19
mysql aggregate function with group by  (0) 2022.04.27
mysql timezone setting  (0) 2022.04.26
mysql 한글깨짐  (0) 2022.04.26
반응형

Group by

public List<RegionPayload> getAllRegions() {
  List<RegionPayload> result = new ArrayList<>();
  List<Region> allRegion = regionRepository.findAll();
  Map<String, List<Region>> regionMap =
      allRegion.stream().collect(Collectors.groupingBy(Region::getRegion));
  for (Map.Entry<String, List<Region>> elem : regionMap.entrySet())
    result.add(new RegionPayload(elem.getKey(), elem.getValue()));
  return result;
}
import com.lge.cdp.model.Region;
import java.util.List;
import lombok.AllArgsConstructor;
// import lombok.ToString;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@AllArgsConstructor
// @ToString
public class RegionPayload {

  private String region;
  private List<Region> countryList;
}
반응형
반응형
  • collection: 1:N관계 테이블 join시
  • association: 1:1관계 테이블 join시

실제테이블 아닌 view나 subquery로 join시에도 적용되는지?

반응형
반응형
  • count(), count(distinct)
  • group_concat()
  • json_arrayagg() -> json array aggregate
  • json_objectagg() -> json object aggregate
  • sum(), max(), min()

 

select 
device_type, region
,group_concat(ric_code,'-', country_code) 
,JSON_ARRAYAGG(JSON_OBJECT('cntry',country_code, 'ric',ric_code))
,JSON_OBJECTAGG('cntry',country_code)
from tb_rc_ha_region group by device_type, region

반응형

'db' 카테고리의 다른 글

mysql 모든 table, key, index...etc 확인  (0) 2022.05.19
mysql change column error  (0) 2022.04.28
mysql timezone setting  (0) 2022.04.26
mysql 한글깨짐  (0) 2022.04.26
mysql console 접속  (0) 2022.04.26
반응형
  • check timezone
    • select @@global.time_zone, @@session.time_zone,@@system_time_zone;
    • select current_time;
  • modify timezone
    • sudo vim /etc/mysql/mysql.conf.d/mysqld.conf
    • 아래 줄 추가
      • default-time-zone="+00:00"
    • 그리고 재기동
      • sudo service mysql restart
반응형

'db' 카테고리의 다른 글

mysql change column error  (0) 2022.04.28
mysql aggregate function with group by  (0) 2022.04.27
mysql 한글깨짐  (0) 2022.04.26
mysql console 접속  (0) 2022.04.26
mysql date/time  (0) 2022.04.22
반응형

대부분 characterSet이 utf8로 설정되지 않아서 생긴 문제라고 함

  • 현재 characterSet 확인
    • show variables like 'c%'
    • mysql console접속 후 status 명령어 입력
  • mysql.ini 혹은 my.cnf 파일에 아래 내용 추가
    [client]
    default-character-set=utf8
    
    [mysql]
    default-character-set=utf8
    
    
    [mysqld]
    collation-server = utf8_unicode_ci
    init-connect='SET NAMES utf8'
    character-set-server = utf8

    • mysql.ini 혹은 my.cnf의 위치확인
      • show variables like '%dir' : 각종 경로를 알수 있음
      • 위 결과로 나오는 것 중에 basedir or datadir에 mysql.ini가 있다고 하는데 우분투에서는 없었음
      • 대신 /etc/mysql/my.cnf가 있어서 여기에 추가함
    • .ini는 윈도우에서 .cnf는 리눅스에서 쓰이는 설정파일인 것 같음,
      • 우분투에 설치된 mysql 버젼은 5.7.37-0ubuntu0.18.04.1였음
  • database와 table의 chatacterSet도 바꿔야 한다고 해서 바꿔줌
    • ALTER SCHEMA `cdp`  DEFAULT CHARACTER SET utf8  DEFAULT COLLATE utf8_bin;
    • workbench GUI에서도 가능
    • 테이블 characterSet도 일일히 바꿔야 한다는 얘기가 있었으나 하지 않음
  • 변경후 mysql 재시작하니 한글 정상노출됨
    • service mysql restart

 

반응형

'db' 카테고리의 다른 글

mysql aggregate function with group by  (0) 2022.04.27
mysql timezone setting  (0) 2022.04.26
mysql console 접속  (0) 2022.04.26
mysql date/time  (0) 2022.04.22
우분투 18.04 MongoDB 설치 및 구성  (0) 2022.04.18
반응형
  • local에서 접속
    • mysql -u [account] -p: 입력하면 비밀번호 입력하도록 유도됨
    • mysql -u [account]: 비밀번호 없이
  • 외부접속
    • mysql -h [ip] -p [port] -u [account] -p [databaseName]
  • 접속후 상태확인
    •  status
  • 접속종료
    • exit
반응형

'db' 카테고리의 다른 글

mysql timezone setting  (0) 2022.04.26
mysql 한글깨짐  (0) 2022.04.26
mysql date/time  (0) 2022.04.22
우분투 18.04 MongoDB 설치 및 구성  (0) 2022.04.18
mysql remote 접속허용  (0) 2022.04.14

+ Recent posts