[Ruby] Lazy Enumerator 사용하기

1. lazy enumerator란? Lazy Enumerator는 루비 2.0 에서 처음 등장한 기능으로, method chain을 사용할 때 chain을 효율적으로 수행할 수 있도록 도와준다. 이 기능을 알고 난 »

레일즈 암호화 (Rails Encrypt, Decrypt)

레일즈에서는 암호화를 위해 ActiveRecord에서 기본으로 제공하는 라이브러리를 사용할 수 있다.. 암호화 secret = Rails.configuration.secret_key_base encryptor = ActiveSupport::MessageEncryptor.new(secret) encrypted = encryptor.encrypt_and_ »

[Java] ExecutorService

Executor 제출된 Runnable task를 실행하는 객체. ExecutorService 하나 이상의 비동기 task의 진행상태를 추적하기위한 Future를 생성하는 메소드 를 제공하는 Executor. ExecutorService 예제[1] 간단한 ExectorService 사용법. ExecutorService »

[Android] Avoid passing null as the view root

LayoutManager로 직접 View를 생성할때 가끔 이런 경고를 볼 수 있다. LayoutInflater는 View를 생성할때 자신의 레이아웃을 잡기위해 부모 View가 필요하다. 이때 부모 View를 알려주지 않으면 (null을 넘기면) »