2014년 9월 29일 월요일

Hardware Accelerated Execution Manager


다음의 에러:
emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: HAX is not installed on this machine (/dev/HAX is missing).

Intel® Hardware Accelerated Execution Manager 설치하면 됨.
The Intel Hardware Accelerated Execution Manager (Intel HAXM) is a hardware-assisted virtualization engine (hypervisor) that uses Intel Virtualization Technology (Intel VT) to speed up Android app emulation on a host machine.


2014년 9월 9일 화요일

string이 URL 형태인지 체크 (Java)


import java.net.MalformedURLException;
import java.net.URL;


try { URL url = new URL("url_string"); }
catch (MalformedURLException e) { /* invalid URL */ }



http://stackoverflow.com/questions/9902265/find-out-the-string-is-url

2014년 9월 2일 화요일

Permission issue of Apache2 on OSX Mavericks

Permission issue of Apache2 on OS X Mavericks :



sudo vi /private/etc/apache2/httpd.conf

Just replace "Deny" with "Allow"

    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
#    Deny from all
    Allow from all

Restart Apache server :
sudo apachectl restart

"It works!"

2014년 9월 1일 월요일

Lemon 설치


아래와 같이 Policy 때문에 설치가 안됨.
관련 문서 : http://www.cmake.org/cmake/help/v3.0/policy/CMP0048.html

$ cmake ..
CMake Error at CMakeLists.txt:3 (CMAKE_POLICY):
  Policy "CMP0048" is not known to this version of CMake.

CMakeLists.txt 에서 주석처리함.

CMAKE_MINIMUM_REQUIRED(VERSION 2.8)

#CMAKE_POLICY(SET CMP0048 OLD)

SET(PROJECT_NAME "LEMON")
PROJECT(${PROJECT_NAME})


$ cmake ..
CMake Error at CMakeLists.txt:3 (CMAKE_POLICY):
  Policy "CMP0048" is not known to this version of CMake.


-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found PythonInterp: /usr/bin/python (found version "2.7.3")
-- Found Wget: /usr/bin/wget
-- Found Doxygen: /usr/bin/doxygen
-- Found Ghostscript: /usr/bin/gs
-- Found GLPK: /usr/lib/libglpk.so (Required is at least version "4.33")
-- Could NOT find ILOG (missing:  ILOG_CPLEX_LIBRARY ILOG_CPLEX_INCLUDE_DIR)
-- Could NOT find COIN (missing:  COIN_INCLUDE_DIR COIN_CBC_LIBRARY COIN_CBC_SOLVER_LIBRARY COIN_CGL_LIBRARY COIN_CLP_LIBRARY COIN_COIN_UTILS_LIBRARY COIN_OSI_LIBRARY COIN_OSI_CBC_LIBRARY COIN_OSI_CLP_LIBRARY)
-- Could NOT find SOPLEX (missing:  SOPLEX_LIBRARY SOPLEX_INCLUDE_DIR)
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of long long
-- Check size of long long - done
-- Looking for include files CMAKE_HAVE_PTHREAD_H
-- Looking for include files CMAKE_HAVE_PTHREAD_H - found
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Copy doc from source tree
-- Configuring incomplete, errors occurred!