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

๐Ÿ‘จ๐Ÿผ‍๐Ÿ’ป๊ฐœ๋ฐœ158

ํŒŒ์ด์ฌ - ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์˜ˆ์ œ ์ฐธ๊ณ  ์œ„ํ‚ค ๋ฌธ์„œ(์ ํ”„ ํˆฌ ํŒŒ์ด์ฌ) https://wikidocs.net/book/5445 ์ ํ”„ ํˆฌ ํŒŒ์ด์ฌ - ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์˜ˆ์ œ ํŽธ > ๋ฌธ์ œ ํ’€์ด๋กœ ์•Œ์•„๋ณด๋Š” **ํŒŒ์ด์ฌ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ**! ๋ณด๋‹ค ๋Šฅ์ˆ™ํ•˜๊ฒŒ ํŒŒ์ด์ฌ ์ฝ”๋“œ๋ฅผ ์ž‘์„ฑํ•˜๋ ค๋ฉด ํŒŒ์ด์ฌ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ์— ๋Œ€ํ•ด์„œ ์ž˜ ์•Œ๊ณ  ์žˆ์–ด์•ผ ํ•œ๋‹ค. ์ด ์ฑ…์€ ํŒŒ์ด์ฌ ๊ฐœ๋ฐœ์ž๋ผ๋ฉด ... wikidocs.net https://076923.github.io/posts/Python-tkinter-1/ Python tkinter ๊ฐ•์ขŒ : ์ œ 1๊ฐ• - GUI ์ƒ์„ฑ tkinter 076923.github.io ๋” ์ž์„ธํ•˜๊ฒŒ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋ฅผ ๋ถ„์„ํ•˜๊ณ  ์‹ถ์œผ๋ฉด ์•„๋ž˜ ๋งํฌ๋กœ https://docs.python.org/ko/3/library/ ํŒŒ์ด์ฌ ํ‘œ์ค€ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ — Python 3.10.5 ๋ฌธ์„œ ํŒŒ์ด์ฌ ํ‘œ์ค€ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ํŒŒ์ด์ฌ ์–ธ์–ด ๋ ˆํผ๋Ÿฐ์Šค ๋Š”.. 2022. 6. 28.
tkinter - ์ฐธ๊ณ  ์œ„ํ‚ค ๋ฌธ์„œ(์ ํ”„ ํˆฌ ํŒŒ์ด์ฌ) https://wikidocs.net/132610 106 ๊ทธ๋ž˜ํ”ฝ ์‚ฌ์šฉ์ž ์ธํ„ฐํŽ˜์ด์Šค๋ฅผ ๋งŒ๋“ค๋ ค๋ฉด? โ€• tkinter tkinter๋Š” ํŒŒ์ด์ฌ์—์„œ Tcl/Tk ํˆดํ‚ท์„ ์‚ฌ์šฉํ•˜๋Š” ๋ฐ ํ•„์š”ํ•œ ์ธํ„ฐํŽ˜์ด์Šค ๋ชจ๋“ˆ์ด๋‹ค. Tcl์€ ํŒŒ์ด์ฌ๊ณผ ๊ฐ™์€ ์Šคํฌ๋ฆฝํŠธ ์–ธ์–ด์ด๊ณ  Tk๋Š” Tcl์„ ์œ„ํ•œ GUI ํˆดํ‚ท์ด๋‹ค. [ ... wikidocs.net https://076923.github.io/posts/Python-tkinter-1/ Python tkinter ๊ฐ•์ขŒ : ์ œ 1๊ฐ• - GUI ์ƒ์„ฑ tkinter 076923.github.io 2022. 6. 28.
OpenCV - pyinstaller ๋นŒ๋“œ ํ›„ cv2๊ฐ€ improt ์•ˆ๋˜๋Š” ์˜ค๋ฅ˜ ํ•ด๊ฒฐ pip install opencv-python==4.5.3.56 ๋‹ค์šด๊ทธ๋ ˆ์ด๋“œ๊ฐ€ ๋‹ต์ด๋‹ค. ์ถœ์ฒ˜: https://stackoverflow.com/questions/69855356/recursion-is-detected-during-loading-of-cv2-binary-extensions recursion is detected during loading of "cv2" binary extensions I have a small program which return opencv error after compilation by pyinstaller. But without compilation it's work! I use Python 3.8.10 on Windows 10 Program: import pyauto.. 2022. 6. 27.
C++ - json parser ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์„ค์น˜ ๋ฐ ์‚ฌ์šฉ ๋ฐฉ๋ฒ•(jsoncpp) https://github.com/open-source-parsers/jsoncpp GitHub - open-source-parsers/jsoncpp: A C++ library for interacting with JSON. A C++ library for interacting with JSON. Contribute to open-source-parsers/jsoncpp development by creating an account on GitHub. github.com git clone https://github.com/open-source-parsers/jsoncpp.git ๋ ˆํฌ์ง€ํ† ๋ฆฌ ์„ค์น˜ ํ›„ ํŒŒ์ด์ฌ์œผ๋กœ ๋นŒ๋“œ python amalgamate.py dist ํด๋”๋กœ ๋“ค์–ด๊ฐ€๋ฉด ํ—ค๋” ํŒŒ์ผ ํด๋”์™€ ์†Œ์Šค ํŒŒ์ผ์ด.. 2022. 6. 27.
C# - http ์š”์ฒญ(HttpWebRequest) string url = "https://ipinfo.io/ip"; //ํ…Œ์ŠคํŠธ ์‚ฌ์ดํŠธ string responseText = string.Empty; HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); request.Method = "GET"; using (HttpWebResponse resp = (HttpWebResponse)request.GetResponse()) { HttpStatusCode status = resp.StatusCode; Console.WriteLine(status); // ์ •์ƒ์ด๋ฉด "OK" Stream respStream = resp.GetResponseStream(); using (StreamReader sr = ne.. 2022. 6. 27.
C++ - ๋น„์ฃผ์–ผ ์ŠคํŠœ๋””์˜ค E1696 : ํŒŒ์ผ ์†Œ์Šค์„(๋ฅผ) ์—ด ์ˆ˜ ์—†์Šต๋‹ˆ๋‹ค. ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• https://developer.microsoft.com/en-US/windows/downloads/windows-sdk/ Windows SDK - Windows app developmentThe Windows SDK for Windows 11 contains headers, libraries, and tools you can use when you create apps that run on Windows.developer.microsoft.com์œˆ๋„์šฐ SDK๊ฐ€ ์—†์–ด์„œ ๊ด€๋ จ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๋“ค์„ ๋ถˆ๋Ÿฌ์˜ค์ง€ ๋ชปํ•˜๋Š” ์˜ค๋ฅ˜์ด๋‹ค. ์œ„์˜ ๋งํฌ๋ฅผ ํ†ตํ•ด์„œ Windows SDK๋ฅผ ์„ค์น˜ํ•œ ๋‹ค์Œ์— ๋‹ค์‹œ ํ”„๋กœ์ ํŠธ๋ฅผ ์ƒ์„ฑํ•˜๋ฉด ํ•ด๊ฒฐ ๋œ๋‹ค. 2022. 6. 27.
ํŒŒ์ด์ฌ - ํ…”๋ ˆ๊ทธ๋žจ ๋ด‡ ํŒŒ์ผ ์—…๋กœ๋“œ(๋ด‡์ด ํŒŒ์ผ์„ ๋‹ค์šด๋กœ๋“œ) def uploader(update: Update, context: CallbackContext) -> None: try: with open(update.message.document.file_name, 'wb') as f: context.bot.get_file(update.message.document).download(out=f) update.message.reply_text( 'ํŒŒ์ผ ์—…๋กœ๋“œ ์„ฑ๊ณต.' ) except: update.message.reply_text( 'ํŒŒ์ผ ์—…๋กœ๋“œ ์‹คํŒจ.' ) updater.dispatcher.add_handler(MessageHandler(Filters.document, uploader)) ์ถœ์ฒ˜: https://stackoverflow.com/questions/622.. 2022. 6. 18.
ํŒŒ์ด์ฌ - ์ค‘๋ณต ์—†๋Š” ๊ณ ์œ ์„ฑ์ด ๋ณด์žฅ๋˜๋Š” id ๋งŒ๋“ค๊ธฐ(uuid) import uuid uuid.uuid4() #uuid4 => full random uuid # Outputs something like: UUID('0172fc9a-1dac-4414-b88d-6b9a6feb91ea') uuid๋ž€ ๊ณ ์œ ์„ฑ์ด ๋ณด์žฅ๋˜๋Š” id๋ฅผ ๋งŒ๋“ค๊ธฐ ์œ„ํ•œ ํ‘œ์ค€ ๊ทœ์•ฝ์„ ๋งํ•œ๋‹ค. ์ถœ์ฒ˜: https://stackoverflow.com/questions/2257441/random-string-generation-with-upper-case-letters-and-digits Random string generation with upper case letters and digits How do I generate a string of size N, made of numbers and uppercase .. 2022. 6. 18.
PyQt - ๋ฆฌ์†Œ์Šค ์ ์šฉํ•˜๊ธฐ [๊ฒฝ๋กœ] images/ โ”œโ”€ icon.png main.py resources.qrc [resources.qrc] images/icon.png [๋ฆฌ์†Œ์Šค ํŒŒ์ผ ๋ณ€ํ™˜ํ•˜๊ธฐ] pyrcc5 resources.qrc -o icon.py [main.py] import icon ... label=QLabel(Form) label.setPixmap( QPixmap(":/images/icon.png") ) # qrc์—์„œ ์ ์€ ๊ฒฝ๋กœ๋ช… label.resize(label.pixmap().width(), label.pixmap().height()) ... ์ถœ์ฒ˜: https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=browniz1004&logNo=221373310.. 2022. 5. 31.
ํŒŒ์ด์ฌ - ํ˜„์žฌ ๋ผ์ธ๋ฒˆํ˜ธ ์ถœ๋ ฅ import inspect def lineno(): """ ์ด ํ•จ์ˆ˜๋ฅผ ํ˜ธ์ถœํ•œ ๊ณณ์˜ ๋ผ์ธ๋ฒˆํ˜ธ๋ฅผ ๋ฆฌํ„ดํ•œ๋‹ค. """ return inspect.getlineno(inspect.getouterframes(inspect.currentframe())[-1][0]) print( lineno() ) try: " " except Exception as e: self.print_log( '[' + str(lineno()) + ']' '์˜ˆ์™ธ: ' + str(e), err=True) ์ถœ์ฒ˜: https://technote.luminance.kr/entry/python-%EB%94%94%EB%B2%84%EA%B7%B8-line-%EB%B2%88%ED%98%B8-%EC%B0%8D%EA%B8%B0 python ๋””๋ฒ„๊ทธ: line ๋ฒˆํ˜ธ.. 2022. 5. 25.
์…€๋ ˆ๋‹ˆ์›€ - chromedriver ์ž๋™ ์—…๋ฐ์ดํŠธ ๋ฐ ์„ค์น˜ pip install chromedriver_autoinstaller from selenium import webdriver import chromedriver_autoinstaller def driverAutoInstall(): chromedriver_autoinstaller.install() driver = webdriver.Chrome() return driver driver = driverAutoInstall() driver.get('http://google.com') ์ถœ์ฒ˜: https://dev-guardy.tistory.com/78 [Python] chromedriver selenium ์ž๋™์„ค์น˜ [์…€๋ ˆ๋‹ˆ์›€, ํฌ๋กฌ๋“œ๋ผ์ด๋ฒ„] Python , chromedrvier, Selenium, ์…€๋ ˆ๋‹ˆ์›€, ํฌ.. 2022. 5. 23.
OpenCV - ์ปค์Šคํ…€ Cascade ๋งŒ๋“ค๊ธฐ(CASCADE TRAINER GUI) ๋ฐ ๋ฌผ์ฒด ํƒ์ง€ ์•„๋ž˜ ๋งํฌ์—์„œ Cascade Trainer GUI๋ฅผ ์ž์‹ ์˜ ์ปดํ“จํ„ฐ ํ™˜๊ฒฝ์— ๋งž๋Š” ๋ฒ„์ „์œผ๋กœ ์„ค์น˜(64๋น„ํŠธ๊ฐ€ 32๋น„ํŠธ ๋ฒ„์ „์œผ๋กœ ์„ค์น˜ํ•˜๋ฉด ์ค‘๊ฐ„์— ์˜ค๋ฅ˜๊ฐ€ ์ƒ๊น€) https://amin-ahmadi.com/cascade-trainer-gui/ Cascade Trainer GUI - Amin Cascade Trainer GUI 1. Introduction Cascade Trainer GUI is a program that can be used to train, test and improve cascade classifier models. It uses a graphical interface to set the parameters and make it easy to use OpenCV tools for training.. 2022. 5. 19.
728x90