본문 바로가기

전체 글11

local에 저장되어 있는 git계정 clear 하기 한 컴퓨터에서 여러 git 서비스를 사용하는 경우 혹은 여러사람이 한 컴퓨터를 사용하는 경우미리 저장되어 있는 git 계정때문에 권한 문제로 git push가 안되거나 git clone이 안되는 경우가 종종발생한다. 아래 처럼 정확한 계정을 git url을 입력했는데도 not found 메시지가 발생할 수 있다. $ git clone http://**************/****/***/***************.gitCloning into '*******************'...remote: Not Foundfatal: repository 'http://**************/****/***/***************.git/' not found 이럴때는 git credential cach.. 2017. 3. 3.
Visual Studio Team Services에서 REST API 사용하기 Visual Studio Team Services를 이용하여 C# Build를 구성하였다. 특별히 설정한 부분은 없었고 Repository에 commit된 Sources를 잘 가져다가 build 하고 artifact 까지 별다른 설정 없이 처리가 가능했다. 만들어진 artifact를 AzureBlob File Copy하면서 설정이 필요하였지만 이 이야기는 다음에 하고 오늘은 REST API를 이용하여 Build Detail Info를 가져오는 방법에 대해서 이야기 해보겠다. https://www.visualstudio.com/en-us/docs/integrate/api/overview 위에 있는 사이트를 보면 rest api spec에 대해 자세히 나와있다.Get a list of buildsGET ht.. 2017. 2. 9.
Android Butter Knife 적용하기 Android Activity를 개발 할 때 제일 먼저 하는 일이 무엇일까? 바로 새로운 Layout을 만들어서 적용하고 Layout에 포함되어 있는 view에 event listener를 달아주거나view들을 읽어와서 business logic에 맞게 개발을 할 것이다. Layout에 포함된 view에 접근하기 위해서는 아래와 같이 작업을 하게 된다. @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); ImageView settingsImage = (ImageView) findViewById(R.id.imag.. 2017. 2. 4.
Robolectric Getting Started build.gradle에 아래 내용을 추가한다. testCompile "org.robolectric:robolectric:3.2.2" Test Class에 Robolectric Annotation을 추가한다. package org.robolectric.myreference; import org.junit.Before; import org.junit.runner.RunWith; import org.robolectric.RobolectricTestRunner; import org.robolectric.annotation.Config; @RunWith(RobolectricTestRunner.class) @Config(constants = BuildConfig.class) public class MainActi.. 2017. 1. 23.