프로그램 작성

전문가 및 열성적 프로그래머를위한 Q & A

9
Visual Studio의 솔루션을 TFS에서 온라인으로 다시 가져 오려면 어떻게해야합니까?
Visual Studio 2012 (TFS 소스 제어하에 있음)에서 솔루션을 열었고 TFS 서버 (2010)가 다운되었습니다. 그런 다음 파일 중 하나를 변경하고 저장하려고 할 때 TFS 서버가 다운되었다는 메시지를 정확하게 덮어 쓸 것인지 (정확한 단어를 기억할 수 없음) 묻는 메시지가 나타납니다. 출력 창 : This solution is offline. [Team Foundation Server: http://tfs1:8080/tfs/server] The …
242 visual-studio  tfs 

2
pickle.dump 사용-TypeError : 바이트가 아닌 str이어야합니다.
python3.3을 사용하고 있으며 간단한 사전을 피클하려고 할 때 암호 오류가 있습니다. 코드는 다음과 같습니다. import os import pickle from pickle import * os.chdir('c:/Python26/progfiles/') def storvars(vdict): f = open('varstor.txt','w') pickle.dump(vdict,f,) f.close() return mydict = {'name':'john','gender':'male','age':'45'} storvars(mydict) 그리고 나는 얻는다 : Traceback (most recent call last): File "C:/Python26/test18.py", line 31, in <module> …


15
ssl_error_rx_record_too_long 및 Apache SSL [닫힘]
닫은. 이 질문은 주제에 맞지 않습니다 . 현재 답변을받지 않습니다. 이 질문을 개선하고 싶습니까? 질문 업데이트 는 그래서 주제에 스택 오버플로합니다. 휴일 칠년 전에 . 이 질문을 개선하십시오 고객이 내 사이트 중 하나에 액세스하려고하는데 계속이 오류가 발생합니다> ssl_error_rx_record_too_long 모든 브라우저, 모든 플랫폼 에서이 오류가 발생합니다. 문제를 전혀 재현 할 수 …

12
'스위치'가 'if'보다 빠릅니까?
A는 switch문은 실제로 빠를 것보다 if문? /Ox플래그를 사용하여 Visual Studio 2010의 x64 C ++ 컴파일러에서 아래 코드를 실행했습니다 . #include <stdlib.h> #include <stdio.h> #include <time.h> #define MAX_COUNT (1 << 29) size_t counter = 0; size_t testSwitch() { clock_t start = clock(); size_t i; for (i = 0; i < MAX_COUNT; …

4
CSS에서 모든 N 번째 요소를 선택
예를 들어 일련의 요소에서 모든 네 번째 요소를 선택할 수 있습니까? 예 : 16 개의 <div>요소가 있습니다 ... 같은 것을 쓸 수 있습니다. div:nth-child(4), div:nth-child(8), div:nth-child(12), div:nth-child(16) 더 좋은 방법이 있습니까?
242 css  css-selectors 

13
jar 내에서 리소스 파일 읽기
항아리 내에서 다음과 같이 리소스를 읽고 싶습니다. File file; file = new File(getClass().getResource("/file.txt").toURI()); BufferredReader reader = new BufferedReader(new FileReader(file)); //Read the file Eclipse에서 실행할 때 정상적으로 작동하지만 항아리로 내 보내면 IllegalArgumentException이 발생합니다. Exception in thread "Thread-2" java.lang.IllegalArgumentException: URI is not hierarchical 왜 그런지 모르겠지만 테스트를 통해 변경하면 발견했습니다. file = …

6
WPF 응용 프로그램에서 전역 적으로 예외를 포착합니까?
우리는 런타임에 일부가 예외를 throw 할 수있는 WPF 응용 프로그램을 가지고 있습니다. 처리되지 않은 예외를 전역 적으로 잡아서 기록하고 싶지만 아무 일도없는 것처럼 프로그램 실행을 계속하고 싶습니다 (VB와 같은 On Error Resume Next). C #에서 가능합니까? 그렇다면 예외 처리 코드를 정확히 어디에 두어야합니까? 현재 나는 try/ catcharound를 감싸고 발생할 수있는 …


6
신속한 구속 조건 애니메이션
탭 할 때 너비를 늘리고 싶은 UITextField가 있습니다. 제약 조건을 설정하고 왼쪽의 제약 조건이 오른쪽에서 애니메이션을 적용하려는 것보다 우선 순위가 낮은 지 확인했습니다. 사용하려고하는 코드는 다음과 같습니다. // move the input box UIView.animateWithDuration(10.5, animations: { self.nameInputConstraint.constant = 8 }, completion: { (value: Bool) in println(">>> move const") }) 이것은 작동하지만 …

29
Swift-문자열을 Double로 변환하는 방법
빠른 언어로 BMI 프로그램을 작성하려고합니다. 그리고이 문제가 있습니다 : String을 Double로 변환하는 방법? Objective-C에서 다음과 같이 할 수 있습니다. double myDouble = [myString doubleValue]; 그러나 어떻게 스위프트 언어로 이것을 달성 할 수 있습니까?
242 swift 

14
AlertDialog의 테마를 변경하는 방법
누군가 나를 도울 수 있는지 궁금합니다. 사용자 정의 AlertDialog를 만들려고합니다. 이를 위해 styles.xml에 다음 코드 줄을 추가했습니다. <resources> <style name="CustomAlertDialog" parent="android:Theme.Dialog.Alert"> <item name="android:windowBackground">@drawable/color_panel_background</item> </style> </resources> color_panel_background.9.png는 드로어 블 폴더에 있습니다. 이것은 Android SDK res 폴더에서도 사용할 수 있습니다. 주요 활동은 다음과 같습니다. package com.customdialog; import android.app.Activity; import android.app.AlertDialog; import android.app.Dialog; …
242 android  dialog  themes  alert 

19
각도 2 @ViewChild 주석은 정의되지 않은 값을 반환
Angular 2를 배우려고합니다. @ViewChild Annotation을 사용하여 부모 구성 요소에서 자식 구성 요소에 액세스하고 싶습니다 . 다음은 몇 줄의 코드입니다. 에서 BodyContent.ts 내가 가진 : import {ViewChild, Component, Injectable} from 'angular2/core'; import {FilterTiles} from '../Components/FilterTiles/FilterTiles'; @Component({ selector: 'ico-body-content' , templateUrl: 'App/Pages/Filters/BodyContent/BodyContent.html' , directives: [FilterTiles] }) export class BodyContent { @ViewChild(FilterTiles) ft:FilterTiles; …



당사 사이트를 사용함과 동시에 당사의 쿠키 정책개인정보 보호정책을 읽고 이해하였음을 인정하는 것으로 간주합니다.
Licensed under cc by-sa 3.0 with attribution required.