728x90 분류 전체보기720 C# - 멀티스레드에서 클립보드 기능(OLE) 사용하기 // 멀티스레드 함수 선언 mainThread = new Thread(work); mainThread.SetApartmentState(ApartmentState.STA); mainThread.Start(); // 멀티스레드 함수 내부 Clipboard.SetText("테스트"); 출처: https://taeminimini.tistory.com/m/437 Thread 내 에서 OLE 호출시 STAThreadAttribute C# Thread 하다보니 만들어놓은 쓰레드에 Clipboard를 사용하려고 하니 아래와 같이 오류가 발생했다. 😥 System.Threading.ThreadStateException: 'OLE 호출을 수행하려면 현재 스레드를 STA(단일 스레드 아파트) taeminimini.tisto.. 2022. 10. 19. 코드업 - 계산기 2 https://codeup.kr/problem.php?id=1285 계산기 2 왼쪽부터 차례대로 연산한 결과를 출력한다.(우선순위x) codeup.kr #include int main(void){ int n[20]={0,}; char g[20]={0,}; int even = 0; int i = 0, j = 0; while(1){ if( !even ){ scanf("%d", &n[i++]); } else{ scanf("%c", &g[j++]); } if(g[j-1] == '=') break; if(even) even = 0; else even = 1; } int result = n[0]; i = 0, j = 0; while(1){ if( g[j] == '=' ) break; switch(g[j++]){ c.. 2022. 10. 17. 백엔드 - Node.js(Express), React 웹 사이트 배포 사이트(Heroku) https://www.heroku.com/ Cloud Application Platform | Heroku Heroku is a platform as a service (PaaS) that enables developers to build, run, and operate applications entirely in the cloud. www.heroku.com 2022. 10. 15. 리액트 - UI 프레임워크(MUI) https://mui.com/ MUI: The React component library you always wanted MUI provides a simple, customizable, and accessible library of React components. Follow your own design system, or start with Material Design. mui.com 2022. 10. 15. 리액트 - 토스트 팝업(React-Toastify) 모듈 https://fkhadra.github.io/react-toastify/introduction React-toastify | React-Toastify [](https://opencollective.com/react-toastify)  Win + R > sndvol 입력 > 확인 2022. 10. 15. 리액트 네이티브 - MapView Marker 사용 예제 import * as React from 'react'; import MapView from 'react-native-maps'; import { StyleSheet, Text, View, Dimensions } from 'react-native'; export default function App() { return ( ); } const styles = StyleSheet.create({ container: { flex: 1, backgroundColor: '#fff', alignItems: 'center', justifyContent: 'center', }, map: { width: Dimensions.get('window').width, height: Dimensions.get('window')... 2022. 10. 14. C# - 모던 UI 프레임워크(MahApps.Metro) https://mahapps.com/ MahApps.Metro - Home Enhance the default controls MahApps.Metro overrides the default style of all common WPF controls and gives them a modern look. More than just styles MahApps.Metro also includes some custom controls based on concepts from Windows Phone, Windows 8 and Windo mahapps.com https://luckygg.tistory.com/302 [.Net] C# WinForm에서 Metro UI(Modern UI) Framework 적용하기(.. 2022. 10. 13. puppeteer - Hairline Feature 우회 await page.evaluateOnNewDocument(() => { Object.defineProperty(HTMLDivElement.prototype, 'offsetHeight', { get: function() { if (this.id === 'modernizr') { return 1; } return elementDescriptor.get.apply(this); }, }); }); 출처: https://intoli.com/blog/making-chrome-headless-undetectable/ Making Chrome Headless Undetectable Using MitmProxy and injected JavaScript feature mocks to bypass Headless Chr.. 2022. 10. 13. puppeteer - Language, Languages 수정 await page.evaluateOnNewDocument(() => { Object.defineProperty(navigator, "language", { get: function() { return "en-GB"; } }); Object.defineProperty(navigator, "languages", { get: function() { return ["en-GB", "en"]; } }); }); 출처: https://stackoverflow.com/questions/46908636/how-to-specify-browser-language-in-puppeteer How to specify browser language in Puppeteer I would like to launch a Google.. 2022. 10. 13. 자바스크립트 - 내 컴퓨터 GPU(그래픽 카드) 정보 가져오기(WebGL) var canvas = document.createElement('canvas'); var gl; var debugInfo; var vendor; var renderer; try { gl = canvas.getContext('webgl') || canvas.getContext('experimental-webgl'); } catch (e) { } if (gl) { debugInfo = gl.getExtension('WEBGL_debug_renderer_info'); vendor = gl.getParameter(debugInfo.UNMASKED_VENDOR_WEBGL); renderer = gl.getParameter(debugInfo.UNMASKED_RENDERER_WEBGL); } console.log(.. 2022. 10. 12. 이전 1 ··· 28 29 30 31 32 33 34 ··· 60 다음 728x90