๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
  • Tried. Failed. Logged.
728x90

์ „์ฒด ๊ธ€720

์ •๋ณด) ์œˆ๋„์šฐ์—์„œ ํŒŒ์ผ ๋˜๋Š” ํด๋”๊ฐ€ ์—ด๋ ค์žˆ์–ด ์ˆ˜์ • ๋ฐ ์‚ญ์ œ๊ฐ€ ์•ˆ๋  ๋•Œ ํ•ด๊ฒฐ ๋ฒ• ๋ฆฌ์†Œ์Šค ๋ชจ๋‹ˆํ„ฐ ๊ฒ€์ƒ‰ > CPU ํƒญ > ์—ฐ๊ฒฐ๋œ ํ•ธ๋“ค > ํด๋” ์ด๋ฆ„ ๊ฒ€์ƒ‰ > ํ”„๋กœ์„ธ์Šค ์šฐํด๋ฆญ > ํ”„๋กœ์„ธ์Šค ๋๋‚ด๊ธฐ ์ถœ์ฒ˜: https://blog.naver.com/PostView.nhn?blogId=jypent122&logNo=222155255754&categoryNo=131&parentCategoryNo=103&viewDate=&currentPage=1&postListTopCurrentPage=1&from=postView ์œˆ๋„์šฐ์—์„œ ํŒŒ์ผ ๋˜๋Š” ํด๋”๊ฐ€ ์—ด๋ ค์žˆ์–ด ์ˆ˜์ • ๋ฐ ์‚ญ์ œ๊ฐ€ ์•ˆ๋  ๋•Œ ํ•ด๊ฒฐ๋ฐฉ๋ฒ• written by ๋‹ฌ์ฝคํ•œ ์ธ์ƒ @ ryukun8 ๊ฐ€๋” ์œˆ๋„์šฐ๋ฅผ ์‚ฌ์šฉํ•˜๋‹ค๋ณด๋ฉด ํด๋”๋‚˜ ํŒŒ์ผ์„ ์‚ญ์ œํ•˜๊ฑฐ๋‚˜ ์ด๋ฆ„๋ณ€๊ฒฝ์„ ํ•ด์•ผ... blog.naver.com 2022. 2. 5.
C# - ๊ฐ„๋‹จํ•œ API ์š”์ฒญ & JSON ์ถœ๋ ฅ using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; using System.Net; using Newtonsoft.Json.Linq; namespace covidView { public partial class Form1 : Form { private const string URL = "https://api.corona-19.kr/korea/beta/"; private strin.. 2022. 2. 2.
OpenCV - ํŒŒ์ด์ฌ ์›น์บ  ๋ˆˆ, ์–ผ๊ตด ์ธ์‹ import cv2 face_cascade_filename = 'haarcascade_frontalface_default.xml' face_cascasde = cv2.CascadeClassifier( cv2.data.haarcascades + face_cascade_filename) eye_cascade_filename = 'haarcascade_eye.xml' eye_cascade = cv2.CascadeClassifier( cv2.data.haarcascades + eye_cascade_filename) capture = cv2.VideoCapture(0) while cv2.waitKey(33) < 0: ret, frame = capture.read() faces = face_cascasde.dete.. 2022. 2. 2.
OpenCV - ํŒŒ์ด์ฌ ์›น์บ  ์–ผ๊ตด ์ธ์‹ import cv2 cascade_filename = 'haarcascade_frontalface_default.xml' cascasde = cv2.CascadeClassifier( cv2.data.haarcascades + cascade_filename) capture = cv2.VideoCapture(0) while cv2.waitKey(33) < 0: ret, frame = capture.read() faces = cascasde.detectMultiScale(frame, 1.3, 5) for (x, y, w, h) in faces: cv2.rectangle(frame, (x,y), (x + w, y + h), (255,0,0), 2) cv2.imshow('frame', frame) capture... 2022. 2. 2.
ํŒŒ์ด์ฌ - Cloudflare ์šฐํšŒํ•˜์—ฌ ํฌ๋กค๋งํ•˜๊ธฐ pip install cloudscraper import cloudscraper scraper = cloudscraper.create_scraper() # returns a CloudScraper instance # Or: scraper = cloudscraper.CloudScraper() # CloudScraper inherits from requests.Session print scraper.get("http://somesite.com").text ๋‚˜๋ฌด์œ„ํ‚ค ๋˜ํ•œ Cloudflare๋ฅผ ์‚ฌ์šฉํ•˜๊ธฐ ๋•Œ๋ฌธ์— ์ผ๋ฐ˜์ ์ธ ๋ฐฉ๋ฒ•์œผ๋กœ๋Š” ํฌ๋กค๋ง์ด ํž˜๋“ค๋‹ค. ๊ทผ๋ฐ ์ด ๋ชจ๋“ˆ ์„ค์น˜ํ•˜๋ฉด ํฌ๋กค๋ง์ด ๊ฐ€๋Šฅํ•ด์ง. ์ถœ์ฒ˜: https://stackoverflow.com/questions/49087990/python-request-being.. 2022. 1. 29.
ssh - ์œˆ๋„์šฐ 10 ssh ๋ฐฉํ™”๋ฒฝ ์„ค์ • New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH-Server-In-TCP' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22 ์ถœ์ฒ˜: https://www.lainyzine.com/ko/article/how-to-run-openssh-server-and-connect-with-ssh-on-windows-10/ [Windows 10] OpenSSH ์„œ๋ฒ„ ์‹คํ–‰ํ•˜๊ณ  SSH๋กœ ์ ‘์†ํ•˜๋Š” ๋ฐฉ๋ฒ• Linux ๋ฟ๋งŒ ์•„๋‹ˆ๋ผ Windows 10์—์„œ๋„ OpenSSH ์„œ๋ฒ„๋ฅผ ์‹คํ–‰ํ•˜๊ณ  ์„œ๋ฒ„๋กœ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์ด ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค. OpenSSH ์„œ๋ฒ„๋ฅผ ์…‹์—…ํ•˜๋ฉด SSH ํด๋ผ์ด์–ธํŠธ๋กœ ์„œ๋ฒ„์— ์ ‘์†ํ•˜๊ณ  ๋ช…๋ น์–ด๋ฅผ ์‹คํ–‰ํ•  ์ˆ˜.. 2022. 1. 28.
ssh - ์œˆ๋„์šฐ 10 sshd_config ์„ค์ • ํŒŒ์ผ ๊ฒฝ๋กœ C:\ProgramData\ssh\sshd_config 2022. 1. 28.
Microsoft Store ์—†์ด Windows Terminal ์„ค์น˜ Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) choco install microsoft-windows-terminal ์ถœ์ฒ˜: https://www.prajwaldesai.com/best-ways-to-install-windows-terminal/ 3 Best Ways to Install Wind.. 2022. 1. 27.
ํƒœ๋ธ”๋ฆฟ์œผ๋กœ ๋“€์–ผ ๋ชจ๋‹ˆํ„ฐ๋กœ ์‚ฌ์šฉํ•˜๊ธฐ https://somereview.tistory.com/55 ํƒœ๋ธ”๋ฆฟ์„ ์„œ๋ธŒ(๋ณด์กฐ)๋ชจ๋‹ˆํ„ฐ๋กœ ํ™œ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ• (์•ˆ๋“œ๋กœ์ด๋“œ, ์•„์ดํŒจ๋“œ, ์œˆ๋„์šฐ) ์Šค๋งˆํŠธํฐ๊ณผ ํƒœ๋ธ”๋ฆฟ ๋“ฑ์˜ ์Šค๋งˆํŠธ๊ธฐ๊ธฐ ๋ณด๊ธ‰์˜ ์ฆ๊ฐ€๋กœ PC ์‚ฌ์šฉ๋ฅ ์€ ์ง€์†์ ์œผ๋กœ ๋‚ฎ์•„์ง€๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜, ์—ฌ์ „ํžˆ ๋ฌธ์„œ, ๋””์ž์ธ, ์„ค๊ณ„ ์ž‘์—… ๋“ฑ์˜ ์ƒ์‚ฐ์„ฑ์ด ์š”๊ตฌ๋˜๋Š” ์ž‘์—…์ด๋‚˜ ๊ณ ์‚ฌ์–‘ ๊ฒŒ์ž„ ๋“ฑ์—๋Š” P somereview.tistory.com spacedesk ์•ฑ(์•ˆ๋“œ๋กœ์ด๋“œ)๊ณผ ์‹คํ–‰ํŒŒ์ผ(์œˆ๋„์šฐ)์„ ์„ค์น˜ํ•ด์„œ ์“ฐ๋ฉด๋œ๋‹ค. 2022. 1. 25.
์…€๋ ˆ๋‹ˆ์›€ - C#์—์„œ Selenium ํ™˜๊ฒฝ ์„ค์ • ๋น„์ฃผ์–ผ ์ŠคํŠœ๋””์˜ค์— NuGet ์ ‘์† "Selenium"์„ ๊ฒ€์ƒ‰ํ•œ ๋‹ค์Œ Selenium.WebDriver, Selenium.Support, Selenium.WebDriver.ChromeDriver ํŒจํ‚ค์ง€๋ฅผ ์„ค์น˜ using (IWebDriver driver = new ChromeDriver()) { driver.Url = "http://ipinfo.io/ip"; driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(5); var element = driver.FindElement(By.XPath("//body")); label1.Text = element.Text; } ์•„์ดํ”ผ๋ฅผ ๊ฐ€์ ธ์˜ค๋Š” ์…€๋ ˆ๋‹ˆ์›€ ์†Œ์Šค ์ฝ”๋“œ ์ฐธ๊ณ : https://nowonbun.tist.. 2022. 1. 25.
์…€๋ ˆ๋‹ˆ์›€ - ํŒŒ์ผ ์—ฌ๋Ÿฌ๊ฐœ ํ•œ ๋ฒˆ์— ์˜ฌ๋ฆฌ๊ธฐ driver.find_element_by_css_selector('input[type=file]').send_keys(r"C:\\Users\\BomNal\\Desktop\\๋ฒˆ๊ฐœ์žฅํ„ฐ\\img.png" + '\n' + r"C:\\Users\\BomNal\\Desktop\\๋ฒˆ๊ฐœ์žฅํ„ฐ\\img2.png" + '\n' + r"C:\\Users\\BomNal\\Desktop\\๋ฒˆ๊ฐœ์žฅํ„ฐ\\img3.jpg") r"C:\\Users\\BomNal\\Desktop\\๋ฒˆ๊ฐœ์žฅํ„ฐ\\img.png" + '\n' + r"C:\\Users\\BomNal\\Desktop\\๋ฒˆ๊ฐœ์žฅํ„ฐ\\img2.png" ์š”๋ ‡๊ฒŒ \n์„ ๊ธฐ์ค€์œผ๋กœ ์—ฌ๋Ÿฌ๊ฐœ ์˜ฌ๋ฆด ์ˆ˜๊ฐ€ ์žˆ์Œ ์ถœ์ฒ˜: https://sbiografia.tistory.com/12 python selen.. 2022. 1. 17.
์…€๋ ˆ๋‹ˆ์›€ - ๋ธŒ๋ผ์šฐ์ € ํ˜„์žฌ url ๊ฐ€์ ธ์˜ค๊ธฐ driver.current_url 2022. 1. 15.
728x90