목록전체 글 (628)
반업주부의 일상 배움사
노마드 강의 듣고 기억을 더듬어 코딩했어요. 그래서 코드가 조금 달라요. 일단 고루틴을 안 썼더니 평균 3.5초가 나오네요. package main import ( "fmt" "net/http" "time" ) var urls []string = []string{ "https://yeastudio.kr", "https://google.com", "https://naver.com", "https://yahoo.com", "https://kakao.com", "https://facebook.com", "https://twitter.com", } func main() { tm := time.Now() for _, v := range urls { res, err := checkURL(v) fmt.Println(..
import import math print(math.sqrt(4)) # math로 부터 호출 from ... import * from math import * print(sqrt(4)) # 내부 함수처럼 직접 호출 영어, 중국어 공부중이신가요? 홈스쿨 교재. 한 권으로 가족 모두 할 수 있어요! 한GLO 미네르바에듀 : 네이버쇼핑 스마트스토어 한글로 영어가 된다?! 한글로[한GLO]는 영어 중국어 일어 러시아어 스페인어가 됩니다!! smartstore.naver.com

VSCode에서 Run 했는데 아래와 같은 에러가 나나요? go: go.mod file not found in current directory or any parent directory; see 'go help modules' 터미널에서 아래 코드를 실행하세요. go env -w GO111MODULE=auto 2023.02.05 - [IT 인터넷/Golang] - Go 언어를 ChatGPT에게 배우다 :: Golang Go 언어를 ChatGPT에게 배우다 :: Golang [ 설치 ] MacOS에서 Go (Golang)을 설치하는 방법은 다음과 같습니다. Go의 최신 버전을 다운로드합니다: https://golang.org/dl/ 다운로드한 파일을 압축 해제합니다. 압축 해제한 폴더를 /usr/local..
샘플 데이터는 여기서 구해요. people.sc.fsu.edu/~jburkardt/data/csv/csv.html Pandas를 설치해요. pip install pandas main.py import pandas as pd url = "https://people.sc.fsu.edu/~jburkardt/data/csv/tally_cab.csv" x = pd.read_csv(url) for i, v in enumerate(x): print('header', i, v) for rowIndex, row in enumerate(x.values): for columnIndex, column in enumerate(row): print(rowIndex, columnIndex, column) 결과 ('header', ..
PyMySQL을 설치해요. pip install PyMySQL main.py import sys import logging import pymysql HOST = "수정하세요" PORT = 3306 USERNAME = "수정하세요" PASSWORD = "수정하세요" DATABASE = "수정하세요" def connect(host, port, username, password, database): try: conn = pymysql.connect(host=host, user=username, passwd=password, db=database, port=port, use_unicode=True, charset='utf8') cursor = conn.cursor() return conn, cursor exc..

settings.json을 열어요. (hello는 사용자 이름이에요) 아래 코드를 추가하면 끝. "[php]": { "editor.wordSeparators": "`~!@#%^&*()-=+[{]}\\|;:'\",./?" } 영어, 중국어 공부중이신가요? 홈스쿨 교재. 한 권으로 가족 모두 할 수 있어요! 한GLO 미네르바에듀 : 네이버쇼핑 스마트스토어 한글로 영어가 된다?! 한글로[한GLO]는 영어 중국어 일어 러시아어 스페인어가 됩니다!! smartstore.naver.com

테스트를 위해 임의의 폴더를 만들었어요. /aaa/bbb (aaa 밑에 bbb 폴더) bbb 폴더 밑에 MyClass.py를 만들었고요. class MyClass: def __init__(self): print('MyClass') def say(self): print('주엘리아 안녕!') class MyClass2(MyClass): def __init__(self): print('MyClass2') super(MyClass2, self).__init__() MyClass2는 MyClass를 상속해요. 루트(/)에는 Main.py가 있어요. from aaa.bbb.MyClass import MyClass2 mc = MyClass2() mc.say() from 에는 폴더를 . 으로 구분해서 파일명을 넣고, ..
Uploads 폴더에 파일을 쓴다면 PM2가 노드를 재시작할거에요. 그러면 파일이 제대로 써지지 않아요. pm2 start app.js --watch --ignore-watch="Uploads/*" 영어, 중국어 공부중이신가요? 홈스쿨 교재. 한 권으로 가족 모두 할 수 있어요! 한GLO 미네르바에듀 : 네이버쇼핑 스마트스토어 한글로 영어가 된다?! 한글로[한GLO]는 영어 중국어 일어 러시아어 스페인어가 됩니다!! smartstore.naver.com

사진을 업로드 했을 때 불건전한 이미지인지 판단하기 위해 AWS Rekognition을 사용하고 있었어요. rekognition.detectModerationLabels(params).promise(); 이번 프로젝트는 이미지의 얼굴을 찾아서 동그라미 가운데 위치 시켜야 하는 경우가 생겨서 detectFaces 를 해봤네요. rekognition.detectFaces(params).promise() 잘 돼요. 특이한건 마스크를 쓰고 있어도 찾아서 알려주네요. 아래 사진은 'x: 46%, y: 36%' 가 나왔어요. 영어, 중국어 공부중이신가요? 홈스쿨 교재. 한 권으로 가족 모두 할 수 있어요! 한GLO 미네르바에듀 : 네이버쇼핑 스마트스토어 한글로 영어가 된다?! 한글로[한GLO]는 영어 중국어 일어 ..
개발 환경 expo-cli 설치 sudo npm install -g expo-cli 프로젝트 생성 및 실행 expo init todo_app cd todo_app yarn start # blank 또는 blank (Typescript) 선택 w 누르고 웹에서 실행 * 여기서는 상태 관리를 위해 MobX(https://mobx.js.org/) 를 이용해요. sudo yarn add mobx mobx-react UI Store.tsx import { observable } from 'mobx'; const store = observable({ todos: [], add(newTodo) { this.todos.push(newTodo); } }); export { store }; Header.tsx import..