본문 바로가기

전체 글206

[LSY] 노래 1. [SMULE] 적재 - 별 보러 가자2. [녹음기] 윤현상 - 언제쯤이면3. [SMULE] 지킬 앤 하이드 - 지금 이 순간4. [SMULE] 수지 & 백현 - Dream (with miaou7777)5. [SMULE] 성시경 & 박정현 - 우리 참 좋았는데 (with loveme)6. [SMULE] 폴킴 - 칵테일 사랑 (with me)7. [노래방] 서인국 & 정은지 - 우리 사랑 이대로 (with psk) 2023. 5. 5.
[Python] 기초-1 # 주석1 '''주석2''' a = 10 b = 5 c = 'Hi My Name is \'Seungyub Lee\'\nNice to meet you!' d = "Hava a nice day" e = "abcdefghijklmnop" print(a/b) # 2.0 print(a//b) # 2 print(type(a)) # print(c + d) # Hi My Name is 'Seungyub Lee' # Nice to meet you!Hava a nice day print(type(c)) # print(c[0:7]) # Hi My N print(e[0:5:2]) # ace print(c[:8]) # Hi My Na print(e[::-1]) # ponmlkjihgfedcba f = "I ate %d appl.. 2023. 3. 12.
[IT] Web Server & WAS Web Server의 개념 (하드웨어와 소프트웨어로 구분) 1) 하드웨어 : Web Server가 설치되어 있는 컴퓨터 2) 소프트웨어 : 웹 브라우저 클라이언트로부터 HTTP 요청을 받아 정적인 컨텐츠(.html, .jpeg, .css등)를 제공하는 컴퓨터 프로그램 WAS(Web Application Server) DB 조회나 다양한 로직 처리를 요구하는 동적인 컨텐츠를 제공하기 위해 만들어진 Application Server HTTP를 통해 컴퓨터나 장치에 Application을 수행해 주는 미들웨어(소프트웨어 엔진) 웹 컨테이너 혹은 서블릿 컨테이너라고도 불림 Container란 JSP, Servlet을 실행시킬 수 있는 소프트웨어를 말함 즉, WAS는 JSP, Servlet 구동 환경을 제공 WA.. 2023. 2. 26.
[Java] 프로그래머스 [Level-3] 네트워크 public class Solution { // 네트워크 static boolean[] visited = {}; public static void dfs(int i, int[][] computers) { visited[i] = true; for(int j = 0; j < computers[i].length; j++) { if(!visited[j] && computers[i][j] == 1) { dfs(j, computers); } } } public static int solution(int n, int[][] computers) { int answer = 0; visited = new boolean[n]; for(int i = 0; i < n; i++) { if(!visited[i]) { answer+.. 2023. 1. 1.
[Java] 프로그래머스 [Level-3] 단어 변환 public class Solution { // 단어 변환 static boolean[] visited = {}; static int gDepth = 0; public static boolean strCompare(String str1, String str2) { // str1과 str2의 길이가 같다는 조건 하에 int strLength = str1.length(); int cnt = 0; for(int i = 0; i < strLength; i++) { if(str1.charAt(i) != str2.charAt(i)) { cnt++; } } if(cnt == 1) { // 변형 조건에서 1글자만 바꿀 수 있는데 1글자만 다를 경우 return true; } else { return false; } }.. 2022. 12. 31.
[Framework] Spring [핵심 3대 요소] Spring은 Spring Triangle이라고 부르는 핵심 3대 요소를 제공한다. 핵심 3대 요소에 대해 알아보기 전에 POJO란 무엇인지 먼저 알아보자 POJO(Plain Old Java Object 오래된 방식의 간단한 자바 오브젝트) : 특정 기술에 종속되지 않는 순수한 자바 객체를 의미한다. 예를 들어, 특정 기술을 사용하기 위해 특정 프레임워크를 의존하게 되면 그것은 POJO라고 할 수 없다. 특정 기술에 종속되어 있기 때문이다. POJO의 예 public class UserDTO { private String userName; private String userId; private String userPassword; public String getUserName() { return user.. 2022. 12. 28.