반응형

분류 전체보기 4212

목록의 표준 표준

목록의 표준 표준 여러 (Z) 목록의 첫 번째, 두 번째, ... 자릿수의 평균과 표준을 싶습니다. 예를 들어, A_rank=[0.8,0.4,1.2,3.7,2.6,5.8] B_rank=[0.1,2.8,3.7,2.6,5,3.4] C_Rank=[1.2,3.4,0.5,0.1,2.5,6.1] # etc (up to Z_rank )... 이제 나는의 mean과 std of *_Rank[0], mean and std of *_Rank[1], etc. (ie : mean and std of the first digit from all (A..Z) _rank list; the mean and std of the twond digit from all (A .. Z) _rank 목록, 세 번째 숫자의 평균 및 표준 .....

IT 2020.09.08

Gmail 및 NodeJS를 사용하는 Nodemailer

Gmail 및 NodeJS를 사용하는 Nodemailer NodeJS를 사용하여 연락처 양식을 구현하기 위해 nodemailer를 사용하려고하지만 로컬에서만 작동하며 원격 서버에서는 작동하지 않습니다. 내 오류 메시지 : [website.fr-11 (out) 2013-11-09T15:40:26] { [AuthError: Invalid login - 534-5.7.14 Please log in via your web browser and then try again. [website.fr-11 (out) 2013-11-09T15:40:26] 534-5.7.14 Learn more at https://support.google.com/mail/bin/answer.py?answer=787 [website.fr-..

IT 2020.09.08

클래스 클래스 JavaScript

클래스 클래스 JavaScript 애드온 / 애플리케이션 또는 JavaScript 개체에 대한 펼쳐 디버거에서 개체 맵을 수행하는 방법이 있습니까? 상황은 다음과 달라집니다. 메소드가 두 번 호출되고 매번 다른 것이 있습니다. 뭔가 다른지 잘 모르겠지만 뭔가 있습니다. 따라서 창 (또는 창. 문서)의 모든 속성을 텍스트 편집기에서 할 수있는 권한 두 호출 모두 상태를 간단한 파일 diff로 사용할 수 있습니다. 생각? 방화범 +console.log(myObjectInstance) console.log("my object: %o", myObj) 명명되지 않은 다음과 같은 표현이 표시됩니다. [object Object] 또는 일부. function mydump(arr,level) { var dumped_te..

IT 2020.09.08

PHP의 Try / Catch 블록이 예외를 적용하지 않습니다.

PHP의 Try / Catch 블록이 예외를 적용하지 않습니다. 이 페이지 에서이 예제 # 1을 실행합니다 : http://php.net/manual/en/language.exceptions.php 그러나 원하는 출력 대신 다음을 얻습니다. 0.2 Fatal error: Uncaught exception 'Exception' with message 'Division by zero.' in xxx: 7 Stack trace: #0 xxx(14): inverse(0) #1 {main} thrown in xxx on line 7 내가 사용하고 개발자 환경입니다 UniServer 3.5함께PHP 5.2.3 방금 예외의 이름을 복사 한 것처럼 보였지만 발견하지 못했습니다. 내 어리석은 실수로 밝혀졌지만 같은 상황..

IT 2020.09.08

Ruby에서 DateTime.now를 UTC로 어떻게 변환합니까?

Ruby에서 DateTime.now를 UTC로 어떻게 변환합니까? 가있는 경우 d = DateTime.now'd'를 UTC (적절한 날짜 포함)로 어떻게 변환합니까? d = DateTime.now.utc 이런! 그것은 Rails에서 작동하는 것처럼 보이지만 바닐라 루비는 아닙니다 (물론 질문이 요구하는 것입니다) d = Time.now.utc 그러나 작동합니다. 그럴 이유가 DateTime되지는 Time? Time필요한 모든 것을 포함해야합니다. irb(main):016:0> Time.now => Thu Apr 16 12:40:44 +0100 2009 DateTime.now.new_offset(0) 표준 Ruby에서 작동합니다 (즉, ActiveSupport없이). 불행히도 DateTime 클래스에는 T..

IT 2020.09.08

UIActivityIndicator의 크기를 어디에 있습니까?

UIActivityIndicator의 크기를 어디에 있습니까? 할당하는 동안 크기에 관계없이 고정 크기 만 표시합니다. 늘릴 수 있습니까? 암호 : activityIndicator = [[UIActivityIndicatorView alloc] initWithFrame: CGRectMake(142.00, 212.00, 80.0, 80.0)]; [[self view] addSubview:activityIndicator]; [activityIndicator sizeToFit]; activityIndicator.autoresizingMask = (UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresi..

IT 2020.09.08

Flash가 설치되어 있는지 확인하고있는 경우 사용자에게 알리는 숨겨진 div를 표시해야 할 것입니까?

Flash가 설치되어 있는지 확인하고있는 경우 사용자에게 알리는 숨겨진 div를 표시해야 할 것입니까? javascript / jQuery / etc를 사용하여 Flash가 설치되어 감지하고 설치되어 있지 않은 경우 사용자에게 Flash를 설치해야 함을 알리는 정보가 포함 된 div를 표시해야할까요? swfobject를 사용하십시오. 최적의 경우 div를 플래시로 대체합니다. 참조 : http://code.google.com/p/swfobject/ 경우가 swfobject충분하지, 또는 좀 더 맞춤 뭔가를 만들 필요가,이 시도 : var hasFlash = false; try { hasFlash = Boolean(new ActiveXObject('ShockwaveFlash.ShockwaveFlash'))..

IT 2020.09.08

C #의 .resx 파일에서 읽기 읽기

C #의 .resx 파일에서 읽기 읽기 c #의 .resx 파일에서 파일을 읽는 방법은 무엇입니까? 나에게 발송을 보내십시오. 단계적으로 이 예제는 ResourceManager.GetString () 의 MSDN 페이지에서 비교할 것입니다 . // Create a resource manager to retrieve resources. ResourceManager rm = new ResourceManager("items", Assembly.GetExecutingAssembly()); // Retrieve the value of the string resource named "welcome". // The resource manager will retrieve the value of the // locali..

IT 2020.09.08

JQuery로 "onclick"을 제거하는 방법은 무엇입니까?

JQuery로 "onclick"을 제거하는 방법은 무엇입니까? PHP 코드 : Qualify onclick="check($id,1)링크를 클릭 할 수 없습니다 " check($id,1)해고 하지 않도록 제거하고 싶습니다 . JQuery로 어떻게 할 수 있습니까? Old Way (1.7 이전) : $("...").attr("onclick", "").unbind("click"); New Way (1.7+) : $("...").prop("onclick", null).off("click"); (...을 필요한 선택기로 바꾸십시오.) // use the "[attr=value]" syntax to avoid syntax errors with special characters (like "$") $('[id="a$..

IT 2020.09.08

grunt throw "Recursive process.nextTick detected"

grunt throw "Recursive process.nextTick detected" nodejs v0.10.26으로 Lion 10.9.2를 실행하고 있습니다. sass 파일에 자동 설정하고 grunt로 라이브 리로드를 설정하고 싶습니다. 복잡하지만 ... 때 때 grunt watch다음 오류가 발생합니다. (node) warning: Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral. util.js:35 var str = String(f).replace(formatRegExp, function(x) { ^ RangeErr..

IT 2020.09.08
반응형