목록분류 전체보기 (147)
오보에블로그
참고 : https://webnautes.tistory.com/1219 https://blankspace-dev.tistory.com/416 [Python] 파이썬 마우스 제어하는 방법 (PyAutoGUI 라이브러리 이용) 어느 프로그래밍 언어든 장치 제어 방법은 존재하는데, 이번 포스팅에서는 파이썬에서 마우스를 제어할 수 있는 방법을 포스팅하려고 합니다. 물론, 저수준 단위부터 마우스를 제어하는 것은 �� blankspace-dev.tistory.com # pyautogui install # pip install pyautogui import pyautogui # 현재 모니터 사이즈 크기 반환 screenWidth, screenHeight = pyautogui.size() print('현재 모니터 사이..
https://www.seas.upenn.edu/~cis120e/ocaml_setup.shtml *** ocaml 버전이 4.09.0 보다 작아야한다. *** opam switch default # 원래 opam 버전으로 바꾼다. eclipse preference → command + , opam 으로 패키지를 설치했다면 O'Caml Binaries Directory 의 경로는 /Users/[사용자명]/.opam/[ocaml 디렉토리명]/bin/ 이다. (맥 기준) 없는 패키지 ( omake , camlp4 ) 는 opam install [패키지명] 으로 설치를 해줄수 있다.
https://github.com/Z3Prover/z3 Z3Prover/z3 The Z3 Theorem Prover. Contribute to Z3Prover/z3 development by creating an account on GitHub. github.com 을 그대로 git clone 해서 설치 방법을 그대로 따라가면 zarith 에대한 오류가 여러개 발생한다. ocaml 에대해서 num에서 zarith 패키지로 이동하면서 생긴 오류같다. 커밋을 패키지 이동하기 전상태로 돌렸을때의 프로젝트이다. 이것을 풀어서 위에 깃헙에 있는 내용을 그대로 따라하면 쉽게 실행시킬 수 있다. # make example을 한번 한 후에 이후에는 $ ocamlc -custom -o ml_example.byte -I ..

튜토리얼이 대부분 영어로 되어있어서 혹시나 이렇게 쳐봤는데 설치되길래 잊어버릴까봐 쓰는글 https://opam.ocaml.org/packages/ opam - Packages opam.ocaml.org 이 사이트에 가보면 패키지들이름이 나열되어있다. 원하는 패키지를 찾은뒤에 $ opam install [패키지명] 으로 명령어를 치면 된다. 아래는 예제이다.

크롬의 개발자 모드를 이용해서 이걸 보이게 할수 있습니다. 1. 먼저 크롬으로 개발자 모드에 들어가신뒤 위의 사진과 같은 버튼을 클릭하시고 안심 키보드 이미지를 클릭해주세요. 그러면 해당 컴포넌트가 선택이 될것입니다. 그러면 element 에 들어가셔서 styles로 가시면 element.style{ } 이부분을 element.style{ position: fixed; } 라고 치시면 안심키보드 전체 이미지가 보이는것을 확인하실수 있습니다.
https://social.msdn.microsoft.com/Forums/vstudio/en-US/8c5c792f-d17d-443c-8098-76797aafd588/algorithm-the-longest-common-substring-of-two-strings?forum=csharpgeneral Algorithm the longest common substring of two strings Well, if you want a good algorithm, you can find it in Wikipedia: https://en.wikipedia.org/wiki/Longest_common_substring_problem The algorithm there is written in pseudo-code, bu..
try , catch 구문에서 try에 다른 프로그램을 실행시킬때, error를 catch 하지 못할때가 있습니다. (설령 catch 한다고 하더라도 프로그램이 끝난후에야 catch 될 때) 그럴 때는 비동기 thread인 task를 이용하고 아주 멋지신 분이 정리 해놓은 코드를 사용하도록 합시다. https://pastebin.com/K8MWQuJ6 [C#] Task with timeout - Pastebin.com Not a member of Pastebin yet? Sign Up, it unlocks many cool features! class Program { static void Main(string[] args) { var program = new Program(); program.Test(..

import sys#sys.argv[i] import subprocess import itertools #for i in range(len(sys.argv)): # print(sys.argv[i]) readf = open(sys.argv[1], "r") ori_line = len(readf.readlines()) print("ORIGINAL FILE SIZE IS ", ori_line) parse = [] readf.seek(0) for i in range(ori_line): parse.append(readf.readline()) readf.close() divide_time = 2 group = [] group_len = divide_time while(divide_time (line-1)): end ..

1. 이미 있는 타입에 새로운 이름 붙이기 string 과 int와 같이 기존에 있는 타입에 새로 이름을 붙여준다. type var = string type var2 = int 1. 새로운 타입 만들기 type days = Mon | Tue | Wed | Thu | Fri | Sat | Sun;; days라는 타입에는 Mon ; Tue ; Wed ; Thu ; Fri ; Sat ; Sun 로 총 7개의 원소들로 구성되어있다. 응용 예시로, 해당 요일의 다음 요일이 무엇인지 알려주는 함수를 구현해보자. let nextday d = match d with | Mon -> Tue | Tue -> Wed | Wed -> Thu | Thu -> Fri | Fri -> Sat | Sat -> Sun | Sun ->..
A Simple Linux Shell 본 설계 프로젝트에서는 간단한 리눅스 명령어 해석기(일명: smsh)를 스스로 만들어 본다. 설계 및 구현해야 할 smsh는 다음과 같은 명령어를 처리할 수 있어야 한다. foreground and background execution (&) multiple commands separated by semicolons history command shell redirection (>, >>, >|, 0 && strcmp(buffer[buf_leng-1],">")== 0){ strcat(buffer[buf_leng-1],">"); } else{ if(strcmp(buffer[buf_leng],"") != 0) buf_leng++; strcat(buffer[buf_leng..