본문 바로가기

All

[Play Framework] Scala에 Hibernate + Jasypt 적용하기 1. 라이브러리 추가(http://www.jasypt.org/hibernate.html)"org.jasypt" % "jasypt-hibernate4" % "1.9.2"2. 초기값 설정class ApplicationLoader extends GuiceApplicationLoader { override def builder (context: ApplicationLoader.Context) : GuiceApplicationBuilder = { val stringEncryptor = new StandardPBEStringEncryptor() stringEncryptor.setPassword("asdfweqfqwef")//아무거나.. HibernatePBEEncryptorRegistry .getInstance().. 더보기
[Play Framework] Request Handler 처리 방법 Play Framework 2.4버전 처리 방법이다 (https://www.playframework.com/documentation/2.4.x/ScalaHttpRequestHandlers) import javax.inject.Inject import play.api.http._ import play.api.mvc._ import play.api.routing.Router class SimpleHttpRequestHandler @Inject() (router: Router) extends HttpRequestHandler { def handlerForRequest(request: RequestHeader) = { router.routes.lift(request) match { case Some(handle.. 더보기
UINavigationBar 그림자 지우기 [self.navigationController.navigationBar setBackgroundImage:[[UIImage alloc] init] forBarMetrics:UIBarMetricsDefault]; [self.navigationController.navigationBar setShadowImage:[[UIImage alloc] init]]; 더보기
[Scala] Generic function 제네릭과 함수를 같이 사용하는 예제이다. def test [T](text:T) (block:(T) => String): Result = { val resultStr = block(text) Ok(Json.obj("result" -> "SUCCESS","object" -> resultStr)) } 함수 사용하기test("aaaaa") { inputText => "bbbbbbb" } 더보기
Service 'Apple Mobile Device Service' failed to start 컴퓨터를 포멧하고 iTunes 12.2.2 for Windows 설치하려고 하니 계속해서 Service 'Apple Mobile Device Service' failed to start 라는 오류와 함께 설치가 진행이 되지 않는다. - 해결방법 1. iTunes 12.1.2 설치한다.2. 그리고 다시 최신버전(현재 12.2.2버전)을 설치한다. 더보기
이것은 보통 파일의 퍼미션이 서로 다르기 때문입니다.: WordPress에서 업데이트를 하라고 하는데 실패하는 경우는 대부분 권한의 문제가 있기 때문이다.본인은 임시적으로 권한을 777로 주고 업데이트 완료후에 다시 권한을 설정하는 것으로 해결하였다. sudo find . -type f -exec chmod 644 {} +sudo find . -type d -exec chmod 755 {} + 더보기
EC2에 wordpress 설치하기!! httpd 부터 설치 가이드라인 문서이다. 1. http://docs.aws.amazon.com/ko_kr/AWSEC2/latest/UserGuide/install-LAMP.html 2. http://docs.aws.amazon.com/ko_kr/AWSEC2/latest/UserGuide/hosting-wordpress.html 더보기
WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! ssh 접속을 하다가 어떻게 하다보면 꼬여서 아래와 같은 에러가 발생할때까 있다. @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that the RSA host key has jus.. 더보기
UITableView Cell Moving Control 보통 아래의 코드로 UITableView의 이동이 가능하도록 만들었다. 그렇지만 특정 Index에 접근을 할 수 없게는 만들수가 없다. - (BOOL)tableView:(UITableView *)tableView canMoveRowAtIndexPath:(NSIndexPath *)indexPath { if (indexPath.row >= [dataList count]) return NO; return YES; } 아래의 메소드를 활용하면 특정 index로 순서가 바뀌지 않도록 방지할 수 있다. - (NSIndexPath *)tableView:(UITableView *)tableView targetIndexPathForMoveFromRowAtIndexPath:(NSIndexPath *)sourceIndexP.. 더보기
typesafe activator 삭제하기 .ivy2 폴더와 .activator 폴더를 삭제하면 된다. 더보기