DEVOPS

more

AWS Translate๋ฅผ ์ด์šฉํ•ด์„œ ์˜์–ด ํƒœ๊ทธ๋ฅผ ํ•œ๊ธ€๋กœ ๋ฐ”๊พธ๊ธฐ

https://docs.aws.amazon.com/translate/latest/dg/get-started-sdk.htmlย Getting started (SDK) - Amazon TranslateThanks for letting us know this page needs work. We're sorry we let you down. If you've got a moment, please tell us how we can make the documentation better.docs.aws.amazon.comย ์œ„ ์‚ฌ์ดํŠธ์— ๋“ค์–ด๊ฐ€๋ฉด ๋ฒˆ์—ญ๊ธฐ๋Šฅ์„ ์ œ๊ณตํ•˜๋Š” AWS Translate์— ๋Œ€ํ•œ ์ฝ”๋“œ๋ฅผ ๋ณผ ์ˆ˜ ์žˆ๋‹ค.ย ย ย ย AWS IAM์— ๋“ค์–ด๊ฐ€์„œ ๋ฒˆ์—ญ์„ ์œ„ํ•œ ์‚ฌ์šฉ์ž๋ฅผ ์ƒ์„ฑํ•ด์•ผ ํ•œ๋‹ค.ย ย ย ย ย ย ย ์—‘์„ธ์Šค ํ‚ค ๋งŒ๋“ค๊ธฐ ํด๋ฆญย ย ..

AWS 2024.05.30 0

AWS Lambda์—์„œ time limit(ํƒ€์ž„ ๋ฆฌ๋ฐ‹) ์กฐ์ •ํ•˜๊ธฐ

ํƒ€์ž„ ๋ฆฌ๋ฐ‹ ์กฐ์ •ํ•˜๊ธฐ- ์ตœ๋Œ€ 2๋ถ„์œผ๋กœ ๊ธธ๊ฒŒ ํ•˜์—ฌ์•ผ ํ•œ๋‹ค.ย ย aws Lambda๋กœ ์ด๋™ํ•˜๊ธฐ -> ๋ฐ”๊พธ๊ณ ์ž ํ•˜๋Š” ํ•จ์ˆ˜ ํด๋ฆญํ•˜๊ธฐย ย ย ย ย ๋ฐ‘์— ๋ฉ”๋‰ด์—์„œ ๊ตฌ์„ฑ -> ์ผ๋ฐ˜ ๊ตฌ์„ฑย ย ย ย ย ํŽธ์ง‘ ๋ˆ„๋ฅด๊ณ  ์ œํ•œ ์‹œ๊ฐ„ 2๋ถ„์œผ๋กœ ๋ฐ”๊พธ๊ธฐ (์ตœ๋Œ€ 2๋ถ„์ด๋‹ค.)

AWS 2024.05.30 0

PYTHON

more

Streamlit) ๋Œ€์‹œ๋ณด๋“œ์˜ ๊ทธ๋ž˜ํ”„์— ํ•œ๊ธ€ ๋‚˜์˜ค๊ฒŒ ํ•˜๋Š” ์ฝ”๋“œ

https://luvris2.tistory.com/119ย AWS EC2 - Streamlit ๋Œ€์‹œ๋ณด๋“œ์— ํ•œ๊ธ€ ์ถœ๋ ฅํ•˜๊ธฐ (ํ•œ๊ธ€ ๊นจ์ง)์ด ๊ธ€์€ ๋ฆฌ๋ˆ…์Šค ํ•œ๊ธ€ ํฐํŠธ๊ฐ€ ์„ค์น˜๋˜์–ด์žˆ๋‹ค๋Š” ๊ฐ€์ •ํ•˜์— ์ง„ํ–‰ํ•ฉ๋‹ˆ๋‹ค. ์•„๋ž˜์˜ ํฌ์ŠคํŒ…์œผ๋กœ ์ด๋™ํ•˜๋ฉด ํ•œ๊ธ€ ํฐํŠธ๋ฅผ ์„ค์น˜ํ•˜๋Š” ์ ˆ์ฐจ๊ฐ€ ๊ธฐ์žฌ๋˜์–ด์žˆ์Šต๋‹ˆ๋‹ค. https://luvris2.tistory.com/118 ๋ฆฌ๋ˆ…์Šค - ํ•œ๊ธ€ ํฐํŠธ ์„คluvris2.tistory.com์„ค์น˜๋Š” ์œ„ ๋ธ”๋กœ๊ทธ๋ฅผ ์ฐธ์กฐํ•œ๋‹คย # ๊ทธ๋ž˜ํ”„์— ํ•œ๊ธ€ ๋‚˜์˜ค๊ฒŒ ํ•˜๋Š” ์ฝ”๋“œimport platformimport matplotlib.pyplot as pltfrom matplotlib import font_manager, rcplt.rcParams['axes.unicode_minus'] = Falseif platform.system() =..

Streamlit 2024.05.03 0

PIE, BAR, LINE, AREA ์ฐจํŠธ๋ฅผ ์ŠคํŠธ๋ฆผ๋ฆฟ(streamlit)์— ํ‘œํ˜„ํ•˜๊ธฐ

#์ŠคํŠธ๋ฆผ๋ฆฟ์˜ ๋‚ด์žฅ ์ฐจํŠธ ํ•จ์ˆ˜์™€ ์œ ๋ช…ํ•œ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์ธ plotly ์ฐจํŠธimport streamlit as stimport pandas as pdimport matplotlib.pyplot as pltimport plotly.express as pxdef main() : #์ŠคํŠธ๋ฆผ๋ฆฟ์—์„œ ์ œ๊ณตํ•ด์ฃผ๋Š” ์ฐจํŠธ #line_chart, area_chart df1 = pd.read_csv('./data/lang_data.csv') print(df1) print(df1.columns[ 1: ]) column_list = df1.columns[ 1: ] choice_list = st.multiselect('์–ธ์–ด๋ฅผ ์„ ํƒํ•˜์„ธ์š”', column_list) print(c..

Matplotlib 2024.04.26 0

C์–ธ์–ด

more

C++ ์˜ˆ์™ธ(Exception) ์ฒ˜๋ฆฌ(Handling) : throw, try, catch

์˜ˆ์™ธ๋ž€ ์ •์ƒ์ ์ด์ง€ ์•Š์€ ์ƒํ™ฉ์ด ์•ผ๊ธฐํ–ˆ์„ ๋•Œ ๋ฐœ์ƒํ•˜๋Š” ์ด๋ฒคํŠธ๋ฅผ ๋งํ•œ๋‹ค์ „ํ†ต์ ์ธ ์˜ˆ์™ธ ์ฒ˜๋ฆฌ๋ฐฉ๋ฒ•์€ ์˜ˆ์™ธ๋ฅผ ์˜ˆ์ƒํ•ด์„œ if๋ฌธ์„ ํ†ตํ•ด ๊ทธ์— ๋Œ€ํ•œ ๋ฐ˜ํ™˜๊ฐ’์„ ์ •ํ•˜์—ฌ์„œ ๋ฏธ๋ฆฌ ์˜ˆ์™ธ๋ฅผ ์ฒ˜๋ฆฌํ•˜๋Š” ๊ฒƒ์œผ๋กœ ํ•˜๋Š” ๊ฒƒ์ด๋‹คย ย throw,ย try, catch C++์—์„œ๋Š” throw, try, catch๋ฅผ ํ†ตํ•ด ์˜ˆ์™ธ ์ฒ˜๋ฆฌ๋ฅผ ํ•  ์ˆ˜ ์žˆ๋‹ค.ย throw: ์˜ˆ์™ธ๋ฅผ ๋ฐœ์ƒ์‹œํ‚ด.try: ์˜ˆ์™ธ๊ฐ€ ๋ฐœ์ƒํ•  ์ˆ˜ ์žˆ๋Š” ์ฝ”๋“œ๋ฅผ ๊ฐ์‹ธ์„œ ๋ณดํ˜ธ.catch: ๋ฐœ์ƒํ•œ ์˜ˆ์™ธ๋ฅผ ์ฒ˜๋ฆฌ.ย ย throw : ์˜ˆ์™ธ ๋ฐœ์ƒ- throw๋Š” ํŠน์ • ์กฐ๊ฑด์—์„œ ์˜ˆ์™ธ๋ฅผ ๋ฐœ์ƒ์‹œํ‚ฌ ๋•Œ ์‚ฌ์šฉ๋œ๋‹ค. ์˜ˆ์™ธ๋ฅผ ๋ฐœ์ƒ์‹œํ‚ค๋ฉด ํ”„๋กœ๊ทธ๋žจ์˜ ํ˜„์žฌ ํ๋ฆ„์€ ์ค‘๋‹จ๋˜๊ณ , ๊ฐ€์žฅ ๊ฐ€๊นŒ์šด catch ๋ธ”๋ก์—์„œ ์˜ˆ์™ธ๋ฅผ ์ฒ˜๋ฆฌํ•˜๋ ค๊ณ  ์‹œ๋„ํ•œ๋‹ค.int divide(int a, int b) { if (b == 0) { thr..

C++ 2024.09.06 0

C++ ์—…์บ์ŠคํŒ…, ๋‹คํ˜•์„ฑ, ๋‹ค์ค‘ ์ƒ์†๊ณผ ๊ฐ€์ƒ ์ƒ์†, ๊ฐ€์ƒ ํ•จ์ˆ˜

C++ Inheritance(์ƒ์†), ์ƒ์†๊ณผ ์˜ค๋ฒ„๋กœ๋”ฉ (using ํ‚ค์›Œ๋“œ)Inheritance(์ƒ์†)ย - C++์—์„œ ์ƒ์†์˜ ์šฉ์–ดย  base class (superclass : ๋ถ€๋ชจ ํด๋ž˜์Šค)derived class (subclass : ์ž์‹ ํด๋ž˜์Šค)ย ย ex)ย Person์ด base class ์ด๊ณ , student๊ฐ€ derived class์ด๋‹ค. ์œ„์—์„œ์™€ ๊ฐ™์ด ํ‘œ์‹œํ•˜๋ฉด ์ƒ์†์„ ๋ฐ›๋Š”codebunny99.tistory.comย ์—…์บ์ŠคํŒ…(Upcasting)์ด๋ž€?์—…์บ์ŠคํŒ…(Upcasting)์€ ๊ฐ์ฒด ์ง€ํ–ฅ ํ”„๋กœ๊ทธ๋ž˜๋ฐ(OOP)์—์„œ ํŒŒ์ƒ ํด๋ž˜์Šค(์ž์‹ ํด๋ž˜์Šค)์˜ ๊ฐ์ฒด๋ฅผ ๊ธฐ๋ณธ ํด๋ž˜์Šค(๋ถ€๋ชจ ํด๋ž˜์Šค) ํƒ€์ž…์œผ๋กœ ๋ณ€ํ™˜ํ•˜๋Š” ๊ฒƒ์„ ์˜๋ฏธํ•œ๋‹ค. ์ด ๋ณ€ํ™˜์€ ์•”์‹œ์ ์œผ๋กœ(๋ช…์‹œ์ ์ธ ์บ์ŠคํŒ… ์—ฐ์‚ฐ ์—†์ด) ์ด๋ฃจ์–ด์ง€๋ฉฐ, ์ƒ์† ๊ด€๊ณ„์— ์žˆ๋Š” ํด๋ž˜์Šค๋“ค ์‚ฌ์ด์—์„œ..

C++ 2024.09.04 2

JAVA

more

์—ฌ๋Ÿฌ ๊ฐœ์˜ ํ…์ŠคํŠธ ํ•œ ๋ฒˆ์— ๊ต์ฒด : ๋˜‘๊ฐ™์€ ํ…์ŠคํŠธ ์†์‰ฝ๊ฒŒ ๋ณ€๊ฒฝํ•˜๋Š” ๊ฟ€ํŒ

๋ฐ”๊พธ๊ณ ์ž ํ•˜๋Š” ๋ถ€๋ถ„์„ ๋“œ๋ž˜๊ทธํ•œ ํ›„, ์ปจํŠธ๋กค + R์„ ๋ˆ„๋ฅธ๋‹ค.ย ย ๋‹๋ณด๊ธฐ) ๊ธฐ์กด ํ…์ŠคํŠธ๋‹๋ณด๊ธฐ) ๋ฐ”๊พธ๊ณ ์ž ํ•˜๋Š” ํ…์ŠคํŠธย ย ์•„๋ž˜ ์œ„๋กœ ์ด๋™ํ•˜๋ฉด์„œ ๋ฐ”๊ฟ”๋„ ๋˜๊ณ ,ย ย Replace All ์„ ๋ˆŒ๋Ÿฌ์„œ ์ „์ฒด๋ฅผ ๋ฐ”๊ฟ”์ค„ ์ˆ˜๋„ ์žˆ๋‹ค.

Java 2024.06.17 0

Java) ์ด๋ฉ”์ผ ํ˜•์‹ ์ฒดํฌํ•˜๋Š” ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ : Patterns

// ์ž๋ฐ”์˜ ์ด๋ฉ”์ผ ํ˜•์‹ ์ฒดํฌํ•˜๋Š” ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ PatternsPattern pattern = Patterns.EMAIL_ADDRESS;if(pattern.matcher(email).matches() == false){ //if(! pattern.matcher(email).matches() ){}๋กœ ์จ๋„ ๋˜‘๊ฐ™๋‹ค. Snackbar.make(btnRegister,"์ด๋ฉ”์ผ ํ˜•์‹์„ ๋ฐ”๋ฅด๊ฒŒ ์ž‘์„ฑํ•˜์„ธ์š”.",Snackbar.LENGTH_SHORT).show(); return;}

Java 2024.06.13 0

MYSQL

more

ํ’€ ์Šค์บ”(full scan)๊ณผ ์ธ๋ฑ์Šค ์Šค์บ”(index scan)์˜ ์ฐจ์ด์ 

ํ’€ย ์Šค์บ”(fullย scan)๊ณผย ์ธ๋ฑ์Šคย ์Šค์บ”(indexย scan)์˜ย ์ฐจ์ด์ ย ย ํ’€ ์Šค์บ”(full scan)์€ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์˜ ์ฒซ ๋ฒˆ์งธ๋ถ€ํ„ฐ ๋งˆ์ง€๋ง‰๊นŒ์ง€ ๋ชจ๋“  ํ–‰์„ ํ›‘๋Š” ๊ฒƒ์ธ๋ฐ ์ด๋Š” ๋ฐ์ดํ„ฐ๋ฅผ ์ฝ๊ณ  ์ฐพ๋Š” ๋ฐ ๋งŽ์€ ์‹œ๊ฐ„์ด ์†Œ์š”๋œ๋‹ค. ๋ฐ˜๋Œ€๋กœ ์ธ๋ฑ์Šค ์Šค์บ”(index scan)์€ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์ธ๋ฑ์Šค๋ฅผ ์‚ฌ์šฉํ•ด ํŠน์ • ์กฐ๊ฑด์— ๋งž๋Š” ํ–‰์„ ๋น ๋ฅด๊ฒŒ ๊ฒ€์ƒ‰ํ•˜๋Š” ๋ฐฉ์‹์ด๋‹ค.ย ์˜ˆ๋ฅผ ๋“ค์–ด, abc@naver.com ๋ผ๋Š” ๊ณ„์ •์„ ๊ฐ€์ง€๊ณ ์žˆ๋Š” ์‚ฌ๋žŒ์˜ ๋ฐ์ดํ„ฐ๊ฐ€ ์—ฌ๋Ÿฌ๊ฐœ์˜ ํ–‰์œผ๋กœ ์ด๋ฃจ์–ด์ ธ ์žˆ์„ ๋•Œ,ย ๊ทธ ์‚ฌ๋žŒ์˜ ๋ชจ๋“  ๋ฐ์ดํ„ฐ๋ฅผ ๋ณด๊ธฐ ์œ„ํ•ด์„œ abc@naver.com๋ฅผ ์ธ๋ฑ์Šค๋กœ ๊ฑธ๋ฉด ๋” ๋น ๋ฅด๊ฒŒ ๊ทธ ์‚ฌ๋žŒ์˜ ๋ฐ์ดํ„ฐ๋งŒ ์ฐพ์„ ์ˆ˜ ์žˆ๋Š” ๊ฒƒ์ด๋‹ค.ย ย ํ’€ ์Šค์บ” (full scan) ์€ ํ…Œ์ด๋ธ”์ด ์ž‘๊ณ , ๋ฐ์ดํ„ฐ ์ „์ฒด๋ฅผ ์กฐํšŒํ•ด์•ผ ํ•˜๋Š” ๊ฒฝ์šฐ ๋˜๋Š” ์ธ๋ฑ์Šค๋ฅผ ์‚ฌ์šฉํ•ด๋„ ๊ฒ€์ƒ‰ ์กฐ๊ฑด์— ๋งž๋Š” ..

MySQL 2024.07.25 0

MySQL) like์— ๋นจ๊ฐ„ ๋ฐ‘์ค„์ด ๋œฐ ๋•Œ ๋ฐฑํ‹ฑ(`) ์‚ฌ์šฉํ•˜๊ธฐ

like์— ์˜ค๋ฅ˜๊ฐ€ ๋œจ๋Š”๋ฐ, ๋ฐฑํ‹ฑ์„ ์‚ฌ์šฉํ•˜๋ฉด ์˜ค๋ฅ˜๊ฐ€ ๋œจ์ง€ ์•Š๋Š”๋‹คย ย ย ย ๋ฐฑํ‹ฑ(`)?ย ์‹๋ณ„์ž(ํ…Œ์ด๋ธ” ์ด๋ฆ„, ์—ด ์ด๋ฆ„ ๋“ฑ)๋ฅผ ๋ช…ํ™•ํžˆ ๊ตฌ๋ถ„ํ•˜์—ฌ SQL ๋ฌธ๋ฒ•์—์„œ ์‹๋ณ„์ž๋ฅผ ๋ช…ํ™•ํ•˜๊ฒŒ ์ •์˜ํ•˜๊ณ  ์ถฉ๋Œ์„ ํ”ผํ•˜๊ธฐ ์œ„ํ•ด ์ค‘์š”ํ•œ ์—ญํ• ์„ ํ•œ๋‹ค.ย ย ย ย ๋ฐฑํ‹ฑ์„ ์‚ฌ์šฉํ•˜๋Š” ์ด์œ ย ย 1. ์˜ˆ์•ฝ์–ด ์ถฉ๋Œ ๋ฐฉ์ง€: SQL์—๋Š” SELECT, INSERT, UPDATE ๋“ฑ๊ณผ ๊ฐ™์€ ์˜ˆ์•ฝ์–ด๊ฐ€ ๋งŽ๋‹ค. ํ…Œ์ด๋ธ” ์ด๋ฆ„์ด๋‚˜ ์—ด ์ด๋ฆ„์ด ์ด๋Ÿฌํ•œ ์˜ˆ์•ฝ์–ด์™€ ์ถฉ๋Œํ•  ๋•Œ, ๋ฐฑํ‹ฑ์„ ์‚ฌ์šฉํ•˜๋ฉด ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค๊ฐ€ ์ด๊ฒƒ์„ ์‹๋ณ„์ž๋กœ ์ธ์‹ํ•œ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, like๋Š” ํŒจํ„ด ๋งค์นญ์—์„œ ์‚ฌ์šฉ๋˜๋Š” SQL ์˜ˆ์•ฝ์–ด์ด๋‹ค. ์ด๋ฅผ ํ…Œ์ด๋ธ” ์ด๋ฆ„์œผ๋กœ ์‚ฌ์šฉํ•  ๋•Œ๋Š” ๋ฐฑํ‹ฑ์„ ์‚ฌ์šฉํ•ด์•ผ ํ•œ๋‹ค.INSERT INTO `like` (postingId, userId) VALUES (2, 1);ย insert into `like..

MySQL 2024.05.30 0

ML (MachineLearning)

more

ํ”„๋กœํŽซ(Prophet) ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์‚ฌ์šฉํ•˜๊ธฐ

install : pip install prophet์œ„ ์—๋Ÿฌ ๋ฐœ์ƒ์‹œ : conda install -c conda-forge prophetย ย ์ž„ํฌํŠธํ•˜๊ธฐย import pandas as pdimport numpy as npimport matplotlib.pyplot as pltimport randomimport seaborn as snsfrom prophet import Prophetย ย ย ย ์•„๋ณด์นด๋„ ๋ฐ์ดํ„ฐย ย ย ํ”„๋กœํŽซ ๋ถ„์„์„ ์œ„ํ•ด, ๋‘๊ฐœ์˜ ์ปฌ๋Ÿผ๋งŒ ๊ฐ€์ ธ์˜ค๊ธฐ ('Date', 'AveragePrice')ย avocado_prophet_dfย =ย df[['Date','AveragePrice']]ย ย avocado_prophet_dfย DateAveragePrice02015-01-041.3312015-01-041.3522015..

ML (MachineLearning) 2024.04.23 0

๋ฐ์ดํ„ฐ ์ œ๋„ˆ๋ ˆ์ดํ„ฐ๋ฅผ ํ†ตํ•ด ์ด๋ฏธ์ง€๋ฅผ ์ฆ๊ฐ•ํ•˜๊ณ  Transfer Learningํ•˜๊ธฐ

BASE MODEL HEAD MODEL - ํŠธ๋žœ์Šคํผ ๋Ÿฌ๋‹์€, ํ•™์Šต์ด ์ž˜ ๋œ ๋ชจ๋ธ์„ ๊ฐ€์ ธ์™€์„œ ์šฐ๋ฆฌ์˜ ๋ฌธ์ œ์— ๋งž๊ฒŒ ํ™œ์šฉํ•˜๋Š” ๊ฒƒ์ด๋ฏ€๋กœ ํ•™์Šต์ด ์ž˜ ๋œ ๋ชจ๋ธ์˜ base model๋งŒ ๊ฐ€์ ธ์˜จ๋‹ค ์ฆ‰, head๋ชจ๋ธ์€ ๋นผ๊ณ  ๊ฐ€์ ธ์™€์„œ ์‚ฌ์šฉ์ž๊ฐ€ ์ง์ ‘ head๋ชจ๋ธ์„ ์˜ˆ์ธกํ•˜๋Š” ๊ฒƒ์ด๋‹ค. ํŠธ๋žœ์Šคํผ ๋Ÿฌ๋‹์˜ ๊ณผ์ •์€ ๋‹ค์Œ๊ณผ ๊ฐ™๋‹ค ์„ค์น˜ํ•˜๊ธฐ !pip install tensorflow-gpu==2.0.0.alpha0 !pip install tqdm Dogs vs Cats dataset ๋‹ค์šด๋กœ๋“œ๋ฐ›๊ธฐ !wget --no-check-certificate \ https://storage.googleapis.com/mledu-datasets/cats_and_dogs_filtered.zip \ -O ./cats_and_dogs_filtered.zip ์ž„..

ML (MachineLearning) 2024.04.22 0

RESTFUL API

more

์œ ํŠœ๋ธŒ ๋ฐ์ดํ„ฐ API๋ฅผ Postman(ํฌ์ŠคํŠธ๋งจ)์œผ๋กœ ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•

https://console.cloud.google.com/welcome/new?hl=ko&project=eastern-surface-426200-r0&supportedpurview=projectย Google ํด๋ผ์šฐ๋“œ ํ”Œ๋žซํผ๋กœ๊ทธ์ธ Google ํด๋ผ์šฐ๋“œ ํ”Œ๋žซํผ์œผ๋กœ ์ด๋™accounts.google.comย ย youtube data ๊ฒ€์ƒ‰ํ•ด์„œ ์‚ฌ์šฉ ๋ˆ„๋ฅด๊ธฐ,ย ย ย ย ย ํ‚ค ๋งŒ๋“ค๊ธฐย ย ย ย ย ย ย ย ย ์ ์šฉ ๊ทœ์น™ ์•Œ์•„๋ณด๊ธฐย ย https://developers.google.com/youtube/v3/docs/search/list?hl=koย Search: list ย |ย  YouTube Data API ย |ย  Google for Developers์ด ํŽ˜์ด์ง€๋Š” Cloud Translation API๋ฅผ ํ†ตํ•ด ๋ฒˆ์—ญ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. Search:..

RestFul API 2024.06.12 0

instargram ์‚ฌ์ง„ ํฌ์ŠคํŒ… API (4) follow์™€ like ์„œ๋น„์Šค ๊ตฌํ˜„ํ•˜๊ธฐ

follow ์„œ๋น„์Šค ๊ตฌํ˜„ํ•˜๊ธฐย ย ย ย app.py์— ์ถ”๊ฐ€ํ•˜๊ธฐfrom resources.follow import FollowResourceapi.add_resource( FollowResource , '/follow/')ย ย ย resources ํด๋”์— follow.py ํŒŒ์ผ ์ƒ์„ฑํ•ด์„œ ์ž…๋ ฅํ•˜๊ธฐfrom flask import requestfrom flask_jwt_extended import get_jwt_identity, jwt_requiredfrom flask_restful import Resourcefrom mysql_connection import get_connectionfrom mysql.connector import Errorclass FollowResource(Resource) : @jw..

RestFul API 2024.05.31 0

ANDROID

more

์•ˆ๋“œ๋กœ์ด๋“œ ์ŠคํŠœ๋””์˜ค) ์•ฑ์ด ํ™œ์„ฑ ์ƒํƒœ์ผ ๋•Œ ๊ณ„์† ์‹คํ–‰๋˜๋Š” ํฌ๊ทธ๋ผ์šด๋“œ ์„œ๋น„์Šค

ํฌ๊ทธ๋ผ์šด๋“œ ์„œ๋น„์Šค๋ž€?ย - ํฌ๊ทธ๋ผ์šด๋“œ ์„œ๋น„์Šค๋Š” ์• ํ”Œ๋ฆฌ์ผ€์ด์…˜์—์„œ ์‚ฌ์šฉ์ž ๊ฒฝํ—˜์„ ๊ฐœ์„ ํ•˜๊ณ , ์ค‘์š”ํ•œ ์ž‘์—…์„ ์•ˆ์ •์ ์œผ๋กœ ์ฒ˜๋ฆฌํ•  ์ˆ˜ ์žˆ๋Š” ์ค‘์š”ํ•œ ๋„๊ตฌ- ํฌ๊ทธ๋ผ์šด๋“œ ์„œ๋น„์Šค๋Š” ์‚ฌ์šฉ์ž๊ฐ€ ์•ฑ์„ ์‚ฌ์šฉํ•˜๊ณ  ์žˆ์„ ๋•Œ๋„ ์•Œ๋ฆผ์„ ํ†ตํ•ด ํ™œ์„ฑ ์ƒํƒœ์ž„์„ ๋ณด์—ฌ์ฃผ๊ธฐ ๋•Œ๋ฌธ์—, ์‚ฌ์šฉ์ž๋Š” ์–ธ์ œ๋“ ์ง€ ์ด ์„œ๋น„์Šค๋ฅผ ์ค‘์ง€ํ•˜๊ฑฐ๋‚˜ ์ƒํƒœ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์žˆ๋‹ค. - ์ด๋Ÿฌํ•œ ํŠน์„ฑ ๋•Œ๋ฌธ์— ์•ˆ๋“œ๋กœ์ด๋“œ ์‹œ์Šคํ…œ์€ ํฌ๊ทธ๋ผ์šด๋“œ ์„œ๋น„์Šค๋ฅผ ๋‹ค๋ฅธ ๋ฐฑ๊ทธ๋ผ์šด๋“œ ์„œ๋น„์Šค๋ณด๋‹ค ์šฐ์„ ์ ์œผ๋กœ ๋‹ค๋ฃจ๋ฉฐ, ํ•„์š”ํ•œ ๋ฆฌ์†Œ์Šค์™€ ๊ถŒํ•œ์„ ์ œ๊ณตํ•œ๋‹ค.ย ย ํฌ๊ทธ๋ผ์šด๋“œ ์„œ๋น„์Šค ์‚ฌ์šฉ ์˜ˆ์‹œย ์Œ์•… ์žฌ์ƒ: ์Œ์•… ์•ฑ์—์„œ๋Š” ํฌ๊ทธ๋ผ์šด๋“œ ์„œ๋น„์Šค๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์‚ฌ์šฉ์ž๊ฐ€ ์•ฑ์„ ์ข…๋ฃŒํ•˜๋”๋ผ๋„ ์Œ์•…์„ ๊ณ„์† ์žฌ์ƒํ•  ์ˆ˜ ์žˆ๋‹ค. ์ด ์„œ๋น„์Šค๋Š” ์•Œ๋ฆผ์„ ํ†ตํ•ด ์‚ฌ์šฉ์ž์—๊ฒŒ ํ˜„์žฌ ์žฌ์ƒ ์ค‘์ธ ์Œ์•…์„ ๋ณด์—ฌ์ฃผ๋ฉฐ, ์Œ์•… ์ œ์–ด ๊ธฐ๋Šฅ๋„ ์ œ๊ณตํ•  ์ˆ˜ ์žˆ๋‹ค.ย ์œ„์น˜ ์ถ”์ : ์œ„..

Android 2024.07.02 2

์•ˆ๋“œ๋กœ์ด๋“œ ์ŠคํŠœ๋””์˜ค T Map(์นด์นด์˜ค ์ง€๋„) ์—ฐ๋™ํ•˜์—ฌ ์ง€๋„ ๋„์šฐ๊ธฐ

API ์•ฑํ‚ค(appKey) ์ƒ์„ฑํ•˜๊ธฐย ย ํ™ˆํŽ˜์ด์ง€์—์„œ ํšŒ์›๊ฐ€์ž…ํ•˜์—ฌ ๋Œ€์‹œ๋ณด๋“œ์— ๋“ค์–ด๊ฐ„๋‹ค.ย https://openapi.sk.com/ย SK open APISKํ…”๋ ˆ์ฝค ๋ฐ์ดํ„ฐ์™€ ์‹œ๊ฐํ™” ๊ฐ€๊ณต์„ ์ง€์› ๋ฐ›์„ ์ˆ˜ ์žˆ๋Š”, ๋ฐ์ดํ„ฐ ๋ฐ”์šฐ์ฒ˜ ์‚ฌ์—… ์— ๋Œ€ํ•ด์„œ ์•Œ์•„๋ณด์„ธ์š”! ๋” ์•Œ์•„๋ณด๊ธฐopenapi.sk.comย ย ย  ์•ฑ์„ ์ƒ์„ฑํ•œ๋‹ค. ํ•„์ž๋Š” Joyfulmind์˜ ์ด๋ฆ„์œผ๋กœ ์•ฑ์„ ์ƒ์„ฑํ•˜์˜€๋‹ค.ย ย ย ย ย  TMAP์˜ API ์‚ฌ์šฉ ์š”๊ธˆ์—์„œ ๋ฌด๋ฃŒ์ฒดํ—˜์„ ์„ ํƒํ•˜๊ณ ,ย ย ย ย ย ย ์œ„์—์„œ ๋งŒ๋“ค์—ˆ๋˜ ์ƒ์„ฑํ–ˆ๋˜ ์•ฑ์„ ์„ ํƒํ•ด์ค€๋‹ค.ย ย ย ย ย ย ย ์‚ฌ์šฉ ์‹ ์ฒญ์„ ํ•ด์ฃผ๊ณ ,ย ย ย ย ๋Œ€์‹œ๋ณด๋“œ์—์„œ ๋‚˜์˜ ์•ฑ์œผ๋กœ ๋“ค์–ด๊ฐ€, ์•ฑํ‚ค(appKey)๋ฅผ ํ™•์ธํ•œ๋‹ค. ์•ˆ๋“œ๋กœ์ด๋“œ ์ŠคํŠœ๋””์˜ค์—์„œ ์“ธ ๊ฒƒ์ด๋ฏ€๋กœ key๋ฅผ ์ €์žฅํ•ด๋‘์žย ย ย ย ย ย ย Raster Map SDK ๋‹ค์šด๋ฐ›๊ธฐย https://tmapapi.tm..

Android 2024.07.02 0

PROJECT

more

PROJECT 1-(7) ๊ทธ๋ž˜ํ”„ ํ•œ๊ธ€ํ™” ํ•˜๊ธฐ, ๊ทธ๋ž˜ํ”„ ๋””์ž์ธํ•˜๊ธฐ

๊ทธ๋ž˜ํ”„ ํ•œ๊ธ€ํ™”ํ•˜๊ธฐย matplotlib ์•ˆ์— ํ•œ๊ธ€์„ ๋„ฃ๊ณ ์‹ถ๋‹ค๋ฉด ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ฝ”๋“œ๋ฅผ ์ž…๋ ฅํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค#๊ทธ๋ž˜ํ”„ ํ•œ๊ธ€ํ™”ํ•˜๊ธฐimport platformimport matplotlib.pyplot as pltfrom matplotlib import font_manager, rcplt.rcParams['axes.unicode_minus'] = Falseif platform.system() == 'Linux': rc('font', family='NanumGothic')def run_compare() : #๊ทธ๋ž˜ํ”„ ํ•œ๊ธ€ํ™”ํ•˜๊ธฐ plt.rcParams['axes.unicode_minus'] = False if platform.system() == 'Linux': rc('font', family..

Project 2024.05.09 0

PROJECT 1-(6) SelectBox(์…€๋ ‰ํŠธ๋ฐ•์Šค) ํ™œ์šฉํ•˜๊ธฐ

์‚ฌ์šฉํ•ด์•ผ ํ•˜๋Š” ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ์ž„ํฌํŠธํ•ฉ๋‹ˆ๋‹คfrom PIL import Image #ํŒŒ์ด์ฌ ์ด๋ฏธ์ง€ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ PILimport streamlit as stimport pandas as pdimport numpy as npย ย ย ๋ฐ์ดํ„ฐ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ์‚ฌ์šฉํ•  ๋ฐ์ดํ„ฐ๋ฅผ ๋ถˆ๋Ÿฌ์˜ต๋‹ˆ๋‹ค.๋ฐ์ดํ„ฐ๋Š” ์ฃผํ”ผํ„ฐ๋…ธํŠธ๋ถ์—์„œ 2024/4/29์ž๋กœ ๊ตญ๋‚ด ETF ๋ฐ์ดํ„ฐ๋ฅผ ๋ถˆ๋Ÿฌ์™”์Šต๋‹ˆ๋‹ค์‚ฌ์šฉํ•œ ๋ฐ์ดํ„ฐ๋Š” ์•„๋ž˜์™€ ๊ฐ™์Šต๋‹ˆ๋‹คย ย  col1, col2, col3 = st.columns([1, 2.5, 1]) # ํ™”๋ฉด์„ ๊ฐ€์šด๋ฐ ์ •๋ ฌํ•˜๊ธฐ ์œ„ํ•จ์ด๋‹ค with col2 : # 1. ๋ฐ์ดํ„ฐ ๋ถˆ๋Ÿฌ์˜ค๊ธฐ etf_list = pd.read_csv('./KRETF.csv') # 2. ์ „์ฒด ์„ค๋ช…ํ•˜๊ธฐ ..

Project 2024.05.09 0