전체 글
-
nomard) ReactJS 기본, useState, Component, propsReact 2023. 3. 13. 11:23
setCounter((current) -> current +1) => current와 함수를 이용해서 현재 값을 보장받는다 https://nomadcoders.co/react-for-beginners ReactJS로 영화 웹 서비스 만들기 – 노마드 코더 Nomad Coders React for Beginners nomadcoders.co 1 _ 리액트란? : react js는 웹 사이트에 interactivity ( 상호작용 )을 만들어준다. 일반적인 바닐라 js를 이용할 경우 간단한 기능일지라도 작성하기 번거로운 경우가 많이 발생한다. react는 자주 사용되는 기능을 쉽게 가져올 수 있게 만든 기능이다. 리액트를 사용하기 위해 import 해보자 - react와 react dom reactdom 의..
-
SQL 첫걸음 ch02. 테이블에서 데이터 검색Sql 2023. 3. 13. 09:34
1 _ 테이블 불러오기 Select * from 테이블명; * : 모든 열을 뜻한다. select 열명 from 테이블명 -> 열 하나만 가져올 수도 있다. - sql은 대소문자 구분을 하지 않는다. 다른 데이터베이스들은 대소문자 구분을 하는 경우가 많으니 주의하자. 2 _ 자료형 - INTERGER 형 : 정수값을 저장할 수 있는 자료형 - CHAR 형 : 고정길이 문자열, 최대길이보다 문자열의 길이가 작아도 남은 부분을 공백문자로 채운 후 저장함. - VARCHAR 형 : 가변 길이 문자열, 문자열의 길이에 따라 저장 공간이 변하고 최대치를 넘길 수 없다. - DATE 형 : 날짜를 저장할 수 있다. - TIME 형 : 시간을 저장할 수 있다. 3 _ 검색조건 지정하기 select 열1, 열2 for..
-
nomard) python기초 ( ERROR 모음 )Python 2023. 3. 10. 15:51
https://nomadcoders.co/python-for-beginners Python으로 웹 스크래퍼 만들기 – 노마드 코더 Nomad Coders Python for Beginners nomadcoders.co 2023.03.10 Selenium headless 적용하기 : selenium으로 crom을 경유해서 특정 페이지에 접근할 경우 한번 접근할 때 마다 browser를 열어야하는 부담이 있다. 이를 해결할 수 있는 코드가 두 개 있다. # --headless : scrapping 할 때 browser를 띄우지 않는다. options.add_argument("--headless") # --disable-gpu : headless 사용시 발생하는 오류를 막아준다. options.add_argu..
-
nomard) python기초 (Flask로 웹페이지 만들기)Python 2023. 3. 10. 11:03
https://nomadcoders.co/python-for-beginners 1) Flask 다운로드, 서버 만들기 vscode의 터미널에서 pip install Flask Flask 다운로드 후 - flask 로 부터 Flask를 import해서 사용할 수 있다. app = Flask("JobScrapper") -> Flask 선언 app.run("0.0.0.0") -> Flask를 실행해서 괄호 속의 ip를 가진 서버를 만든다. ( 0.0.0.0 ) 은 누구나 접근 가능 @app.route("/") def home(): return "hey there!" -> 제일 위의 decorator가 함수를 decorating 하고 있을 때만 동작한다 .route("/") 의 뜻은 도메인 이후에 나오는 / 밑..
-
SQL 첫걸음 CH06. 데이터베이스 객체 작성과 삭제Sql 2023. 3. 9. 15:59
처음 RDBMS 소프트웨어를 설치하면 데이터베이스는 비어있는 상태다. 여기에 테이블이나 뷰, 인덱스, 프로시저 등의 데이터베이스 객체를 작성해 데이터베이스를 구축한다. 1 _ 데이터베이스 객체 : 데이터베이스의 객체란 다른 프로그램에서 사용하는 객체와는 다른 의미다. 데이터베이스의 객체는 테이블, 뷰, 인덱스 등 데이터베이스 내에 정의하는 모든 요소를 말한다. 따라서 객체는 데이터베이스 내에 실체를 가지고있다. 객체를 조작하는 SQL의 명령(SELECT , INSERT)은 외부에서 온 것이기 때문에 실체가 없다 - 데이터베이스 내부 명명규칙 기존 이름이나 예약어와 중복하지 않는다. 숫자로 시작할 수 없다. 언더스코어(_) 이외의 기호는 사용할 수 없다. 한글을 사용할 때는 더블쿼트(MySQL에서는 백쿼트..
-
SQL 첫걸음 CH01 데이터베이스 소개Sql 2023. 3. 9. 10:08
1 _ 데이터베이스 : 데이터의 집합이며 특정 데이터를 확인하고 싶을 때 간단하게 찾아낼 수 있도록 정리된 형태 DB : 저장장치 내에 정리되어 저장된 데이터의 집합 DBMS : 데이터베이스 관리 시스템 DBMS가 필요한 이유 - 생산성 : 데이터 검색, 추가, 삭제, 갱신 같은 처리를 DBMS 기본으로 제공하기 때문에 기본 기능을 구현하는데 시간과 노력을 들일 필요가 없다. - 기능성 : 데이터 베이스를 다루는 기능을 많이 제공한다. 복수의 요청에 대응하거나 대용량의 데이터를 저장하고 고속으로 검색하는 기능 등을 제공한다. - 신뢰성 : 많은 요청에 대응할 수 있도록 만들어져있다. DBMS는 컴퓨터 여러대를 두고 소프트웨어를 통해 확장성(Scalability)과 부하분산(Load balancing)을 ..
-
공공데이터 활용하기Raspberry Pi ( python ) 2023. 3. 8. 14:36
1 _ 공공데이터 : 공공데이터 포털은 공공기관이 생성 또는 취득하여 관리하고 있는 공공데이터를 한 곳에서 제공하는 통합 창구이다. 파일데이터, 오픈API, 시각화 등 다양한 방식으로 제공하고 있다. 공공 데이터를 이용하려면 JSON 데이터 타입에 대한 이해가 필요하다. JSON은 Int, String, Object, Array 4가지 데이터 타입으로 이루어져 있다. 공공 데이터와 사용자의 python 버전이 다르다면 데이터를 버전에 맞게 변경시켜서 사용해야한다. - Default 값인 XML 미리보기 JSON 타입을로 받으면 python의 dictionary 같은 형태로 값을 받을 수 있다. - 파이썬을 활용하여 온습도 확인하기 1) 사용하고자 하는 자료의 주소와 인증키를 찾는다 2) 공공데이터 센터에..
-
URL의 구조Raspberry Pi ( python ) 2023. 3. 8. 10:19
1 _ URL의 구조 http://music.naver.com/listen/top100.nhn?domain=OVERSEA&duration=1h#content 위의 주소를 자세하게 설명하면 http --> protocol music.naver.com --> domain - music -> 서브 도메인 naver -> 도메인 명 com -> 최상위 도메인 listen/top100.nhn --> path ?domain=OVERSEA&duration=1h --> parameter #content --> fragment path (/) , parameter (?) , fragment (#) - path (/) : 파일의 경로를 가르키며, / 뒤에 나온다. - parameter (?) : 쿼리 스트링이라고도 부르며..