TIL.
-
디버거TIL. 2024. 6. 10. 23:55
디버거란디버거는 프로그램의 실행 과정을 추적하고 오류를 찾아내는 도구이다. 프로그램이 실행되는 동안 변수의 값, 메모리 상태, 코드 실행 흐름 등을 모니터링하고 제어할 수 있다. 이를 통해 프로그램의 논리적 오류나 예외 상황을 발견하고 해결할 수 있다. 주요 기능중단점(Breakpoint) 설정 : 특정 코드 라인에서 프로그램 실행을 일시 중지할 수 있다.단계 실행(Step) : 한 줄씩 코드를 실행하며 상태를 확인할 수 있다.변수 감시 : 변수의 값과 메모리 상태를 실시간으로 모니터링 할 수 있다.콜 스택 추적 : 함수 호출 스택을 확인하여 실행 흐름을 파악할 수 있다.
-
우분투란 ?TIL. 2024. 6. 9. 23:55
최근 라즈베리파이를 통한 홈서버 구축이라는 유튜브 영상을 보고 관심을 갖게 되었다. 그 전에 우분투라는 단어를 자주 접하게 되었는데 그에 대해 정리해보고자 한다. 우분투리눅스 배포판 중 하나, 데비안 GNU/리눅스를 기반으로 한 리눅스 운영체제. 리눅스 커널을 사용하며 오픈소스 소프트웨어이다. 사용자 편의성에 초점을 맞춘 배포판으로, 그놈 데스크톱 환경을 사용하여 윈도우 사용자들도 쉽게 사용할 수 있다. 6개월마다 새로운 버전이 출시되며, 데스크톱, 서버, 클라우드, IoT등 다양한 버전이 있다. 케노니컬이라는 기업에서 개발 및 배포를 주도한다. 오픈소스 철학을 지향하여 소프트웨어의 자유로운 사용, 수정, 배포를 권장하고 협력과 공유의 가치를 중시한다.
-
SQL injectionTIL. 2024. 6. 8. 23:38
SQL injection은 웹 애플리케이션의 보안 취약점을 악용하여 악의적인 SQL 쿼리를 데이터베이스에 전송하는 공격 기법이다. 이를 통해 공격자는 데이터베이스의 중요 정보를 탈취하거나 조작할 수 있다.SQL Injection의 원리공격자는 웹 애플리케이션의 사용자 입력 부분에 악의적인 SQL 쿼리를 삽입한다. 이 쿼리는 개발자가 의도하지 않은 방식으로 데이터베이스에 전달되어 실행된다. 예를 들어 로그인 페이지에서 다음과 같은 쿼리가 사용된다면, SELECT * FROM users WHERE username='$username' AND password='$password'공격자가 username에 'OR 1=1'을 입력하면 쿼리는 다음과 같이 변형된다. SELECT * FROM users WHERE u..
-
KPT 회고 - OWSTIL./내일배움캠프 2024. 6. 7. 17:44
KPT 회고Keep + problem 작성 5분Keep은 현재 만족하고 있는 부분(Good), 계속해서 이어갔으면 하는 부분(Keep)을 자유롭게 작성한다. Problem은 불편(or 불만)하게 느끼는 부분, 개선이 필요하다고 생각되는 부분, 잠재적인 문제를 작성한다. 진행자 본인도 해당 시간 동안 똑같이 작성한다. (타임 타이머는 누구라도 고개를 들면 확인할 수 있도록 하는게 중요하다)Good김노을팀원 전체가 적극적으로 참여했습니다.깃허브 이슈를 활용한 태스크 정리가 효과적이었습니다.소통이 원활했고 서로서로 도와가며 프로젝트를 진행했던게 많은 도움이 된 것 같습니다.쉬는 날에도 열심히 공부하고 개발에 몰두한 팀원들이 멋졌습니다.김호연대화가 잘 통하는 것언제 어떤 얘기를 해도 일단 들어보려고 하는 자세먼..
-
Git Rebase, MergeTIL. 2024. 6. 5. 22:25
rebase와 merge 는 모두 브랜치를 통합하는 방법이지만, 접근 방식과 결과물에 차이가 있다.Rebase 현재 브랜치의 베이스를 변경하여 다른 브랜치와 통합한다. 현재 브랜치의 커밋들을 대상 브랜치 뒤에 이동시켜 선형의 커밋 히스토리를 만든다. 커밋 히스토리가 깔끔해지지만, 기존 커밋들이 새로운 커밋으로 변경되어 과거 기록이 재작성된다. Merge 두 브랜치의 최신 커밋들을 기준으로 새로운 머지 커밋을 생성하여 통합한다. 두 브랜치의 커밋 히스토리가 그대로 유지되어 과거 기록을 추적하기 쉬워진다. 머지 커밋이 생기면서 커밋 히스토리가 복잡해질 수 있다. 리베이스는 깔끔한 커밋 히스토리를 원할 때 유용하지만, 공유 브랜치에서는 주의해야 한다. 머지는 안전하고 추적이 쉬운 대신 히스토리가 복잡해질 수 ..
-
CDNTIL. 2024. 6. 4. 21:12
CDN(Content Delifvery Network)은 웹 콘텐츠를 사용자와 가까운 곳에서 전송함으로써전송 속도를 높이고 웹사이트 성능을 개선하는 지리적으로 분산된 서버 네트워크이다. CDN의 작동 원리 CDN은 전 세계 각지에 캐시 서버(엣지 서버)를 배치하여 작동한다. 사용자가 웹사이트에 접속하면 CDN은 사용자와 가장 가까운 캐시 서버에서 웹 콘텐츠를 제공한다. 이렇게 하면 원본 서버에서 직접 콘텐츠를 전송하는 것보다 네트워크 지연 시간이 줄어들어 웹 페이지 로드 시간이 단축되게 된다. CDN의 주요 기능 1. 콘텐츠 캐싱 : 자주 요청되는 정적 컨텐츠( 이미지, 동영상, CSS 등)를 엣지 서버에 캐싱하여 원본 서버의 부하를 줄인다. 2. 부하 분산 : 트래픽을 여러 엣지 서버로 분산시켜 원..
-
스프레드 연산자TIL. 2024. 6. 3. 22:38
스프레드 연산자는 ES6에 도입된 자바스크립트 문법으로, 반복 가능한 객체의 요소를 개별적으로 펼쳐서 사용할 수 있게 한다. 배열 복사 const arr = [1, 2, 3];const copy = [...arr]; // [1, 2, 3]배열 병합 const arr1 = [1, 2];const arr2 = [3, 4];const combined = [...arr1, ...arr2]; // [1, 2, 3, 4]배열 const arr = [1, 2, 3];const beginning = [0, ...arr]; // [0, 1, 2, 3]const end = [...arr, 4]; // [1, 2, 3, 4] 객체 복사const obj = { a: 1, b: 2 };const copy = { ...obj ..
-
AWSTIL. 2024. 5. 31. 20:55
AWS(Amazon Web Services)는 아마존에서 제공하는 클라우드 컴퓨팅 플랫폼이다. 다양한 원격 컴퓨팅 서비스를 제공하여 기업이 애플리케이션과 서비스를 쉽게 구축, 배포, 운영할 수 있도록 서비스를 제공한다. 특징 컴퓨팅 성능, 스토리지, 데이터베이스, 분성 등 다양한 서비스 제공 전 세계 25개 지역의 데이터 센터에서 운영되며 높은 가용성과 내결함성 제공필요한 만큼만 리소스를 사용하고 비용을 지불하는 종량제 과금 모델 확장성과 탄력성이 뛰어나 트래픽 변화에 유연하게 대응 가능 보안, 안정성, 모니터링 및 관리 도구 제공 주요 서비스 EC2 : 가상 컴퓨팅 환경 제공 S3 : 객체 기반 스토리지 서비스 RDS : 관계형 데이터베이스 서비스 Lambda : 서버리스 컴퓨팅 서비스 CloudFro..