본문 바로가기

stackoverflow

(6)
[SO번역] CUPS 를 이용해 "Print to PDF" 필터 또는 백엔드를 프로그래밍하는 방법 https://stackoverflow.com/questions/11192396/programming-a-filter-backend-to-print-to-pdf-with-cups-from-any-mac-os-x-appli/11194723#11194723 답변 : 이렇게 해 보자 : 임의의 프린터 드라이버로 프린트큐를 하나 만든다. (프린터 드라이버로는 PostScript driver/PPD 를 사용하길 권장한다. PostScript PPD 파일에는 *cupsFilter: ... 와 같은 라인이 없다.) 우선은 2dir 이라는 CUPS의 예시용 백엔드를 사용한다. 이건 KDE Printing Developer Tools Wiki 에서 복사해 올 수 있다. 가져올 때 파일의 line ending 을 확인하자..
[번역|SO] 시계열데이터의 이상탐지를 위한 패키지 link : https://datascience.stackexchange.com/questions/32126/looking-for-good-package-for-anomaly-detection-in-time-series 질문 : 시계열데이터에서 이상탐지를 위한 좋은 패키지를 찾는다. 답변1: (2018년 10월) pyod 라는 파이썬 패키지가 있다. ( Pyod ) 이 패키지에는 다음과 같은 알고리즘이 들어있다. 선형모델 (PCA, vMCD, vOne-Class, SVM) 인접성기반 모델 (LOF, CBLOF, HBOS, KNN, AverageKNN, MedianKNN) 확률모델 (ABOD, FastABOD) 앙상블, 조합 프레임워크 (IsolationForest, FeatureBagging) 신경망, ..
[SO번역] zlib: `deflate` 함수와 `compress` 함수의 차이점은 http://stackoverflow.com/questions/10166122/zlib-differences-between-the-deflate-and-compress-functions zlib: `deflate` 함수와 `compress` 함수의 차이점은zlib: Differences Between the `deflate` and `compress` Functions 질문 : zlib의 deflate() 과 compress() 함수의 차이점은 무엇인가요?온라인 샘플을 훑어봤는데, 어떤 것은 deflate 를 쓰고, 다른 것은 compress 를 쓰더군요.어떤 상황에서 어떤 것을 쓸지 어떻게 결정하나요? What are the differences between the deflate() and compr..
[StackOverflow|WinDbg] windbg의 STACKIMMUNE 은 무슨 뜻인가? 원문 : http://stackoverflow.com/questions/9065975/what-does-windbgs-primary-problem-class-stackimmune-mean !analyze 의 원리를 잠깐 설명하면, !analyze 는 access violation (또는 SEH exception, C++ exception, integer overflow, division by zero 등등)의 원인을 찾기 위해서 예외를 던진 쓰레드의 콜스택 위에 무엇이 있는지 확인한다. 그러나, 모든 스택 프레임이 의미있는 것은 아니다. 예를 들어, C++ 예외일 경우 가장 위에 있는 kernel32!RaiseException 과 your_module!__exception_handler3 가 스택 가장 ..
[StackOverflow] SQL Server profiler 같은 것이 PostgreSQL 에도 있나? SQL Server profiler 같은 것이 PostgreSQL 에도 있나? http://stackoverflow.com/q/2430380/100093 PostgreSQL 서버로 보내지는 쿼리를 보고 싶다. MS SQL 서버에서는 SQL Server profiiler 를 사용했었는데, PostgreSQL에서는 어떻게 하는지 아직 모르고 있다. 살 수 있는 툴은 몇 개 있는 것 같은데, 오픈소스로 있으면 좋겠다. BozoJoe ( 2010-03-12 ) http://stackoverflow.com/a/2430393/100093 log_statement 설정을 사용해서 서버로의 모든 쿼리 리스트를 얻을 수 있다. http://www.postgresql.org/docs/current/static/runtim..
[번역|StackOverflow] 파이썬 람다 - 왜써? / Python Lambda - why? Are you talking about lambda functions? Like 람다 함수를 말하는 건가요? 이런 것? f = lambda x: x**2 + 2*x - 5 Those things are actually quite useful. Python supports a style of programming called functional programming where you can pass functions to other functions to do stuff. Example: 이거 진짜 좋아요. 파이썬은 다른 함수에 함수를 넘길 수 있는 함수형 프로그래밍 스타일을 지원해요. 예를 들면 : mult3 = filter(lambda x: x % 3 == 0, [1, 2, 3, 4, 5, 6, 7, ..