툴랩
close
프로필 배경
프로필 로고

툴랩

  • 분류 전체보기 (34)
    • DevLog (1)
    • Programming (18)
      • HTML (1)
      • Golang (1)
      • PHP (1)
      • Laravel (4)
      • Python (5)
      • Delphi (2)
      • Flutter (2)
      • Next.js (0)
      • Node.js (0)
      • Ruby (2)
    • Nothing (0)
    • Arduino (3)
    • Server (12)
      • RockyLinux (11)
      • CentOS (1)
  • Home
  • Tags
  • Guest
  • NaverBlog
  • YouTube
Golang Robotgo  데스크탑 마우스, 키보드 자동화

Golang Robotgo 데스크탑 마우스, 키보드 자동화

Golang(고, 고랭) Robotgo 패키지를 이용하면 자동화(매크로 기능) 구현이 가능합니다. Python(파이썬) PyAutoGUI와 비슷한 라이브러리입니다. Robotgo는 Mac, Windows, Linux(X11) 환경에서 구동이 가능하고 아래 설명드리는 내용은 Windows 기준으로 되어있습니다. 본 예제는 아래 사이트에 Examples에 있는 내용이고 기본적인 셋팅에 대해 설명드리려고 합니다. 저는 GoLand IDE 를 사용하고 있고 VS Code에서도 GOROOT, GOPATH 설정만 잘 해주시면 정상 작동합니다. (VS Code, GoLang, GOROOT, GOPATH 설정에 대해서는 추후에 다루도록 하겠습니다.) https://pkg.go.dev/github.com/go-vgo/r..

  • format_list_bulleted Programming/Golang
  • · 2023. 6. 17.
  • textsms
Python, Docker, Compose, Nginx, Flask, Gunicorn 연동하기

Python, Docker, Compose, Nginx, Flask, Gunicorn 연동하기

Docker 와 Python, Flask 연동 자료가 많이 있기는 하지만 안되는 자료가 많아 최소한으로 작동이 되는 예제를 만들었습니다. 디렉토리 구조 project/ │ ├─ app/ │ ├─ __init__.py │ ├─ main.py │ ├─ Dockerfile │ └─ requirements.txt │ ├─ nginx/ │ ├─ Dockerfile │ ├─ default.conf │ └─ nginx.conf │ └─ docker-compose.yml app/main.py from flask import Flask app = Flask(__name__) @app.route('/') def hello(): return "Hello World!" if __name__ == '__main__': app...

  • format_list_bulleted Programming/Python
  • · 2023. 6. 15.
  • textsms

이미지에서 특정 색상 범위 비율 검출

파이썬(Python)에서 이미지내 특정 색상의 비율 검출 하는 소스입니다. 이미지 처리 라이브러리인 OpenCV와 NumPy를 사용합니다. 먼저 필요한 라이브러리를 설치합니다. pip install opencv-python numpy 아래 소스는 초록색 영역의 비율을 구하는 예제입니다. import cv2 import numpy as np def calculate_wide_green_crop_percentage(image_path): # 이미지 불러오기 image = cv2.imread(image_path) # 이미지를 HSV 색 공간으로 변환 hsv = cv2.cvtColor(image, cv2.COLOR_BGR2HSV) # 넓은 초록색 범위 정의 lower_green = np.array([25, 20..

  • format_list_bulleted Programming/Python
  • · 2023. 6. 12.
  • textsms

Laravel 10 기초 명령

프로젝트 생성 composer create-project laravel/laravel example-app 서버실행 cd example-app php artisan serve .env DB 수정 DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=laravel_crud DB_USERNAME=root DB_PASSWORD=root 모델 및 컨트롤러 생성 php artisan make:model Prodcut -mc 마이그레이션 파일 생성 php artisan make:migration create_flights_table --create=flights Vite 활성화 npm install # 개발 npm run dev # 빌드 npm run bu..

  • format_list_bulleted Programming/Laravel
  • · 2023. 4. 12.
  • textsms

TComport 한글 깨짐

델파이 Seattle에서 TComport 를 통해 시리얼단말기(신용카드 단말기) 인쇄시 한글이 깨진다. ComPort1.WriteStr('abcd 1234테스트 페이지 ***********'+ #13#10); 기존에 델파이 2007에서 잘되던 부분이다. TStringStream, TBytes 등으로 해결했다는내용도 검색되었지만 내 경우에는 실패했다. 결국 CPort.pas 파일을 수정해서 해결했다. 문자열을 인쇄하는 ComPort1.WriteStr() 함수는 function TCustomComPort.WriteStr(Str: string): Integer; 으로 정의되어 있다.이것을 파라미터 타입을 AnsiString으로 바꾸었다.function TCustomComPort.WriteStr(Str: Ans..

  • format_list_bulleted Programming/Delphi
  • · 2016. 11. 22.
  • textsms

PHP snoopy class 를 이용한 youtube 이미지 저장

youtube에 올린 동영상을 등록하는 이벤트를 진행 youtube에 동영상을 올리면 youtube에서 섬네일을 생성해주므로 그를 사용하면되지만 다른크기의 이미지를 요구 youtube의 이미지를 가져올 필요 Snoopy.class.php 파일을 설치한후 이를 이용해서 저장 $snoopy = new Snoopy; $snoopy ->referer = "http://img.youtube.com"; $snoopy -> fetch( "http://img.youtube.com/vi/".{유튜브동영상키값}."/0.jpg" ); $content = $snoopy -> results; $newFile = fopen( {저장할위치} ,"wb"); fwrite($newFile, $content); fclose($newFil..

  • format_list_bulleted Programming/PHP
  • · 2016. 9. 11.
  • textsms
  • navigate_before
  • 1
  • 2
  • 3
  • navigate_next
공지사항
전체 카테고리
  • 분류 전체보기 (34)
    • DevLog (1)
    • Programming (18)
      • HTML (1)
      • Golang (1)
      • PHP (1)
      • Laravel (4)
      • Python (5)
      • Delphi (2)
      • Flutter (2)
      • Next.js (0)
      • Node.js (0)
      • Ruby (2)
    • Nothing (0)
    • Arduino (3)
    • Server (12)
      • RockyLinux (11)
      • CentOS (1)
최근 글
인기 글
최근 댓글
태그
  • #Python
  • #golang
  • #Laravel10
  • #PHP
  • #flask
  • #라라벨
  • #laravel
  • #rockylinux
  • #ChatGPT
  • #Flutter
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바