Skip to main content

Posts

Showing posts from August, 2013

[Zend Server] Internal Server Error Solution

Learning PHP, MySQL, Javascript & CSS (2nd) chp2 에 보면 Zend Server 를 설치하는 부분이 나온다. 기본적으로 사이트에서 다운받은 후, 설치를 했는데, 아래 그림처럼 500 error 가 발생. 이럴때는 다음을 확인해 보자. ZendServer 가 설치 된 폴더로 이동. (기본적으로 C:\Program Files (x86)\Zend) \Zend\ZendServer\etc 로 이동 해서 ZendEnablerConf.xml 을 열어보면 아래 그림처럼 xml 선언 부분이 깨져있다. 왜 그런지는 모르지만... 여튼 처음 선언 부분을 아래와 같이 수정 해 주자. <?xml version="1.0" encoding="UTF-8"?> 그리고, apache service 를 restart 하면 정상적으로 동작함을 확인 할 수 있다.

[Android] using Dependency in Gradle Build, Android Studio

- 2013.08.05 -  Android Studio 0.2.3 에서는 repositories {} 가 기본적으로 포함되어 있다. 따라서 아래와 같은 이슈는 나타나지 않을 것이다. Android Studio 에서도 Maven dependency 처럼 외부 library 를 다운받아서 Build 할 수 없을까? 하는 생각에 커뮤니티에 질문한 결과 답을 얻을 수 있었다. 우선, Maven Central Repository 에서 사용하고자 하는 Library 를 검색하여 Grails repository 를 알아야 한다. 예를들어 okhttp 의 Grails repo 는 다음과 같다. compile 'com.squareup.okhttp:okhttp:1.1.1' 이제 본격적으로 Android Studio 의 build.gradle 에 적용 하도록 하자. 기본적으로 build.gradle 는 아래와 같다. buildscript {     repositories {         mavenCentral()     }     dependencies {         classpath 'com.android.tools.build:gradle:0.5.+'     } } apply plugin: 'android' dependencies {     compile "com.android.support:support-v4:18.0.+" } android {     compileSdkVersion 17     buildToolsVersion "17.0.0"     defaultConfig {         minSdkVersion 10         targetSdkVersion 17     } } 여기서, 검색한 Grails Repo 를 dependencies 에 추가해 주면 된다. dependencies {     compi