728x90 분류 전체보기720 CSS - 미디어쿼리 확인 사이트(mediaqueriestest.com) https://mediaqueriestest.com/CSS3 Media Queries Test on your browserCSS3 Media Queries is the heart of Responsive Design. This website will test all the features on your own browser, including screen dimensions, resolution and available extensions.mediaqueriestest.com 2023. 8. 28. 파이썬 - url로부터 이미지 다운로드(urllib.request) import urllib.request urllib.request.urlretrieve(img_url, f'./cache/images/' + str(idx) + '.png') 2023. 8. 25. 안드로이드 스튜디오 - 웹뷰(WebView) 자바스크립트 조작 private Boolean isLoadingFinished = false; ... WebView webView = findViewById(R.id.webView); webView.setWebViewClient(new WebViewClient(){ @Override public void onPageStarted(WebView view, String url, Bitmap favicon) { super.onPageStarted(view, url, favicon); Toast.makeText(getApplicationContext(), "페이지 로드 중...", Toast.LENGTH_LONG).show(); isLoadingFinished = false; } @Override public void onPag.. 2023. 8. 23. 알고리즘 - 파일 1회 최대 업로드 제한 횟수 분할 해서 보내기 예시) 1. 한 번에 올릴 수 있는 이미지가 20개라면 -> 이미지를 20개씩 나누어서 올리기 2. 이미지가 43개라면 20개 업로드 나머지 20개 업로드 나머지 3개 업로드 imgs = [i for i in range(1, 43+1)] UPLOAD_LIMIT_COUNT = 20 siz_start = 0 for i in range(1,100): siz_end = UPLOAD_LIMIT_COUNT*i if len(imgs[ siz_start : ]) > UPLOAD_LIMIT_COUNT: print("divide upload", imgs[ siz_start : siz_end ], len(imgs[ siz_start : siz_end ])) siz_start+=UPLOAD_LIMIT_COUNT else: p.. 2023. 8. 17. 알고리즘 - 연속적인 수열인지 확인하기 예시) 1~8개의 숫자로 이루어진 체크 박스가 있으며 체크를 할 때는 연속적인 숫자 나열이어야 함 (올바른 예시: 1, 2, 3, 4) (틀린 예시: 1, 3, 4) def checkSerialCheckBox(): time_checkBoxes = [] if checkbox_time1_var.get() == "on": time_checkBoxes.append(1) if checkbox_time2_var.get() == "on": time_checkBoxes.append(2) if checkbox_time3_var.get() == "on": time_checkBoxes.append(3) if checkbox_time4_var.get() == "on": time_checkBoxes.append(4) if ch.. 2023. 8. 15. Expo - 웹뷰 ERR_CLEARTEXT_NOT_PERMITTED 에러 해결 방법 app.json "plugins": [ [ "expo-build-properties", { "android": { "usesCleartextTraffic": true } } ] ]"usesCleartextTraffic": true를 추가한다. 출처: https://docs.expo.dev/versions/latest/sdk/build-properties/ BuildPropertiesA config plugin that allows customizing native build properties during prebuild.docs.expo.dev 2023. 8. 15. Tkinter - CustomTkinter, pyinstaller 빌드 후 blue.json 에러 해결 방법 pyinstaller -F --collect-all customtkinter -w --collect-all customtkinter 옵션을 추가한다. 출처: https://stackoverflow.com/questions/75872305/how-to-get-the-correct-path-to-a-json-file-from-the-customtkinter-module How to get the correct path to a json file from the customtkinter module I made my GUI using customtkinter. I used auto-py-to-exe to make it an file. The exe file doesn't open because of an th.. 2023. 8. 13. Tkinter - 현대적인 UI 디자인 CustomTkinter CustomTkinter 설치 명령어 pip install customtkinter 깃허브 주소 https://github.com/TomSchimansky/CustomTkinter GitHub - TomSchimansky/CustomTkinter: A modern and customizable python UI-library based on Tkinter A modern and customizable python UI-library based on Tkinter - GitHub - TomSchimansky/CustomTkinter: A modern and customizable python UI-library based on Tkinter github.com CustomTkinter 공식 사이트(Doc.. 2023. 8. 13. 디지털 포렌식 - 이미지와 압축 파일(zip)을 결합하는 간단한 스테가노그래피 사전 준비 상대방을 속일 이미지와 숨기고 싶은 파일을 압축한 zip을 준비한다. cmd 창을 열어 "copy /B 이미지+압축파일 출력이름"을 입력한다. (/B는 이진 파일 옵션이다.) 출력된 결과(output.zip)는 일반 이미지와 똑같아 보인다. 더블 클릭을 하면 이미지 뷰도 정상적으로 불러온다. 하지만 원본과 비교하면 용량이 훨씬 증가한 것을 알 수 있다. 여기서 잠깐 확장자를 .zip으로 변경하면 파일 아이콘이 깨져 보이지만 더블 클릭을 하면 압축 프로그램이 마찬가지로 정상적으로 열린다. 풀기도 가능하고 파일 콘텐츠도 그대로 압축 해제가 가능하다. 다음은 image.jpg와 output.zip의 시작과 중간 쪽의 바이너리가 일치하는 것을 확인할 수 있다. 이미지 뷰어 프로그램은 이렇게 파일의 시.. 2023. 8. 10. 파이썬 - 텔레그램 API 사용자 아이디 및 정보 가져오기 https://api.telegram.org/bot{bot_api_key}/getUpdates {"ok":true,"result":[{"update_id":000000000, "message":{"message_id":00,"from":{ "id":0000000000, "is_bot":false, "first_name":"ABC", "username":"ABC", "language_code":"ko"},.. 2023. 8. 1. 파이썬 - 스크립트 파일 실행 도중 인터랙티브 모드로 전환하기 import code def interactive_function(): # 스크립트 실행 중간에 인터랙티브 모드로 전환 console = code.InteractiveConsole(locals=globals()) console.interact("인터랙티브 모드로 전환합니다.") print("스크립트 실행 중...") # 스크립트 실행 로직 # 중간에 인터랙티브 모드로 전환 interactive_function() 2023. 7. 29. 셀레니움 - 특정 태그 범위 표시하기 driver.execute_script("arguments[0].style.border='2px solid red';", elem) # 태그 범위 표시 2023. 7. 29. 이전 1 ··· 9 10 11 12 13 14 15 ··· 60 다음 728x90