<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>아침바라기의 이야기</title>
    <link>https://hopers.tistory.com/</link>
    <description>열심히 사는 개발자의 이야기. 개발이야기, 사는 이야기 조금씩 적어보려 합니다.</description>
    <language>ko</language>
    <pubDate>Tue, 14 Apr 2026 23:42:08 +0900</pubDate>
    <generator>TISTORY</generator>
    <ttl>100</ttl>
    <managingEditor>아침바라기</managingEditor>
    <item>
      <title>Play Framework 설치시 Unsupported major.minor version 가 발생하면?</title>
      <link>https://hopers.tistory.com/entry/Play-Framework-%EC%84%A4%EC%B9%98%EC%8B%9C-Unsupported-majorminor-version-%EA%B0%80-%EB%B0%9C%EC%83%9D%ED%95%98%EB%A9%B4</link>
      <description>근자에 겪었던 삽질 내용 공유다.라이브러리의 현재 설치한 JVM 버전을 지원하는지 확인해보자.&amp;nbsp;지원이 안된다면? 상황에 맞게 적절히 JVM버전을 업그레이드하거나 하자.근데 이상이 없다고?&amp;nbsp;그럼 JDK를 몇 개나 설치했는지 확인해보자.그리고 Path의 java와 JAVA_HOME의 java 버전이 동일한지 확인해보자.이 두개의 버전이 다르다면&amp;nbsp;Unsupported major.minor version&amp;nbsp;오류가 발생할 수 있..</description>
      <category>개발이야기/Play Framework</category>
      <category>JDK</category>
      <category>jre</category>
      <category>play framework</category>
      <category>Scala</category>
      <category>typesafe</category>
      <category>Version</category>
      <author>아침바라기</author>
      <guid isPermaLink="true">https://hopers.tistory.com/44</guid>
      <comments>https://hopers.tistory.com/entry/Play-Framework-%EC%84%A4%EC%B9%98%EC%8B%9C-Unsupported-majorminor-version-%EA%B0%80-%EB%B0%9C%EC%83%9D%ED%95%98%EB%A9%B4#entry44comment</comments>
      <pubDate>Mon, 16 Nov 2015 21:39:55 +0900</pubDate>
    </item>
    <item>
      <title>[Rails] ActiveRecord::FixtureSet.identify</title>
      <link>https://hopers.tistory.com/entry/Rails-ActiveRecordFixtureSetidentify</link>
      <description>모델에 관계 설정은 없고, id 값을 가져다 써야할 땐 어떻게 할까?&amp;nbsp;이럴땐 ActiveRecord::FixtureSet.identify() 를 사용할 수 있다.&amp;nbsp;Fixture의 label로 레일즈가 어떤 id를 넣었는지 알수 있다.

아래 처럼 사용하면 된다.

# users.yml
daniel:
  name: Daniel
  job_id: &amp;lt;%= ActiveRecord::FixtureSet.identify(:programmer..</description>
      <category>개발이야기/Ruby on Rails</category>
      <category>activerecord</category>
      <category>fixture</category>
      <category>Rails</category>
      <category>test</category>
      <author>아침바라기</author>
      <guid isPermaLink="true">https://hopers.tistory.com/43</guid>
      <comments>https://hopers.tistory.com/entry/Rails-ActiveRecordFixtureSetidentify#entry43comment</comments>
      <pubDate>Tue, 3 Nov 2015 18:09:26 +0900</pubDate>
    </item>
    <item>
      <title>리눅스 서버 타임존 설정하는 방법</title>
      <link>https://hopers.tistory.com/entry/%EB%A6%AC%EB%88%85%EC%8A%A4-%EC%84%9C%EB%B2%84-%ED%83%80%EC%9E%84%EC%A1%B4-%EC%84%A4%EC%A0%95%ED%95%98%EB%8A%94-%EB%B0%A9%EB%B2%95</link>
      <description>요즈음에는 개인이나 회사나 서버를 이용할때 IDC에 직접 넣기 보단 클라우드 서비스를 주로 이용한다그런데, AWS나 해외 클라우드 시스템을 사용하면, 시스템 로컬 시간이 그 지역 서버시간에 맞춰져 있다.&amp;nbsp;(AWS로 서버를 발급받으면 PST(미국 태평양 시간)인 경우가 많다. 아마도 미국쪽 서버를 받아서 그렇겠지-_-;)프로그램에서 시스템 시간을 사용하는 경우 서비스 운영시간의 차이가 있으면 당연히 문제가 발생한다.그래서 프로그램에서 주로 사용하..</description>
      <category>개발이야기/linux</category>
      <category>Linux</category>
      <category>Timezone</category>
      <author>아침바라기</author>
      <guid isPermaLink="true">https://hopers.tistory.com/42</guid>
      <comments>https://hopers.tistory.com/entry/%EB%A6%AC%EB%88%85%EC%8A%A4-%EC%84%9C%EB%B2%84-%ED%83%80%EC%9E%84%EC%A1%B4-%EC%84%A4%EC%A0%95%ED%95%98%EB%8A%94-%EB%B0%A9%EB%B2%95#entry42comment</comments>
      <pubDate>Mon, 2 Nov 2015 22:25:35 +0900</pubDate>
    </item>
    <item>
      <title>[MySQL] group by와 MAX를 이용하여 가장 최신 데이터를 구하는 삽질기</title>
      <link>https://hopers.tistory.com/entry/MySQL-group-by%EC%99%80-MAX%EB%A5%BC-%EC%9D%B4%EC%9A%A9%ED%95%98%EC%97%AC-%EA%B0%80%EC%9E%A5-%EC%B5%9C%EC%8B%A0-%EB%8D%B0%EC%9D%B4%ED%84%B0%EB%A5%BC-%EA%B5%AC%ED%95%98%EB%8A%94-%EC%82%BD%EC%A7%88%EA%B8%B0</link>
      <description>예전에 삽질했던 케이스를 공유해본다. 

아래와 같이 company_photo 라는 테이블이 있다 치자.	company_photo
	id | is_represent |company_name|  register_date|
	----------------------------------------------------
	 1 | Y            |Vista Corp|  2015-10-23   |
	 2 | N            |Vista Corp..</description>
      <category>개발이야기/MySQL</category>
      <category>group by</category>
      <category>max</category>
      <category>max중첩</category>
      <category>mysql</category>
      <category>삽질기</category>
      <author>아침바라기</author>
      <guid isPermaLink="true">https://hopers.tistory.com/41</guid>
      <comments>https://hopers.tistory.com/entry/MySQL-group-by%EC%99%80-MAX%EB%A5%BC-%EC%9D%B4%EC%9A%A9%ED%95%98%EC%97%AC-%EA%B0%80%EC%9E%A5-%EC%B5%9C%EC%8B%A0-%EB%8D%B0%EC%9D%B4%ED%84%B0%EB%A5%BC-%EA%B5%AC%ED%95%98%EB%8A%94-%EC%82%BD%EC%A7%88%EA%B8%B0#entry41comment</comments>
      <pubDate>Wed, 28 Oct 2015 23:24:36 +0900</pubDate>
    </item>
    <item>
      <title>[Ruby] Fixture 작성 방법</title>
      <link>https://hopers.tistory.com/entry/Ruby-Fixture-%EC%9E%91%EC%84%B1-%EB%B0%A9%EB%B2%95</link>
      <description>비슷한 주제인 Mini test를 이용한 모델 테스트 팁은 이전에 한번 다뤘다.주의점이 한가지 있다. Fixture는 개수가 많아지면 속도가 느려진다.현재 DB의 데이터를 모두 지웠다가 Fixture 데이터를 넣고 테스트가 완료 되면 롤백한다. 이 과정을&amp;nbsp;진행하다보니 기존에 데이터가 많거나 Fixture 수가 늘어나면 늘어날수록 느려진다.&amp;nbsp;이걸 해결하려면 test_helper.rb에서&amp;nbsp;	class ActiveSupport::T..</description>
      <category>개발이야기/Ruby on Rails</category>
      <category>fixture</category>
      <category>minitest</category>
      <category>Rails</category>
      <category>RoR</category>
      <category>Ruby</category>
      <category>Ruby on Rails</category>
      <category>test</category>
      <category>unitest</category>
      <author>아침바라기</author>
      <guid isPermaLink="true">https://hopers.tistory.com/40</guid>
      <comments>https://hopers.tistory.com/entry/Ruby-Fixture-%EC%9E%91%EC%84%B1-%EB%B0%A9%EB%B2%95#entry40comment</comments>
      <pubDate>Tue, 27 Oct 2015 22:23:55 +0900</pubDate>
    </item>
    <item>
      <title>[Ruby] Block</title>
      <link>https://hopers.tistory.com/entry/Ruby-Block</link>
      <description>블록은 일종의 클로저라고 할 수 있다.&amp;nbsp;
실행할 내용을 하나의 함수로 묶고, 이를 객체로 만들어 원하는 시점에 호출할 수 있다.이것이 바로 블록이다.&amp;nbsp;&amp;nbsp;

레고 장난감 블럭처럼 여기저기 쉽게 가져다 낌을 수 있게 만들고자 블럭이 아닐까 싶다.&amp;nbsp;

블럭을 호출할땐 여러 방법이 있다.&amp;nbsp;&amp;nbsp;루비에서의 블록은 1줄 식으로 표현할때 {} 을 사용하고, 두줄 이상일때는 do end를 사용한다.

예를 들자면 다음..</description>
      <category>개발이야기/Ruby</category>
      <category>Block</category>
      <category>Ruby</category>
      <author>아침바라기</author>
      <guid isPermaLink="true">https://hopers.tistory.com/39</guid>
      <comments>https://hopers.tistory.com/entry/Ruby-Block#entry39comment</comments>
      <pubDate>Mon, 26 Oct 2015 21:02:13 +0900</pubDate>
    </item>
    <item>
      <title>Active Record Scope 정리</title>
      <link>https://hopers.tistory.com/entry/Active-Record-Scope-%EC%A0%95%EB%A6%AC</link>
      <description>주의)&amp;nbsp;Active Record scope vs class method 원문 글과 거의 비슷합니다. 제가&amp;nbsp;이해 해보려고 요약해보는 내용입니다.-.-;;

Active record에는 scope라는 개념이 있다.

Active record로 DB에서 데이터를 조회할 때 조회 범위를 줄여준다거나 필터링 할때 주로 사용한다.

예를 들면, 블로그에서 발행된 포스트만 조회한다는 의미를 담고 있을때,

	Post.published


위와 같이..</description>
      <category>개발이야기/Ruby on Rails</category>
      <category>active record</category>
      <category>class method</category>
      <category>lazy loading</category>
      <category>Ruby on Rails</category>
      <category>SCOPE</category>
      <author>아침바라기</author>
      <guid isPermaLink="true">https://hopers.tistory.com/38</guid>
      <comments>https://hopers.tistory.com/entry/Active-Record-Scope-%EC%A0%95%EB%A6%AC#entry38comment</comments>
      <pubDate>Sat, 24 Oct 2015 21:18:12 +0900</pubDate>
    </item>
    <item>
      <title>[Rails] Minitest를 이용한 모델 테스트 팁</title>
      <link>https://hopers.tistory.com/entry/Rails-Minitest%EB%A5%BC-%EC%9D%B4%EC%9A%A9%ED%95%9C-%EB%AA%A8%EB%8D%B8-%ED%85%8C%EC%8A%A4%ED%8A%B8-%ED%8C%81</link>
      <description>mini 테스트는 Fixture를 사용한다.즉 DB를 이용해서 테스트를 하는데 test case마다 한번 전체 테이블의 데이터를 지우고 Fixture를 한번 로딩하는 반복을 이용한다.mini test에서는 test case 마다 transaction의 begin, rollback 을 사용한다.대부분 DB(MS SQL 빼고)에서 중첩 transaction을 &amp;nbsp;지원하지 않으므로 테스트 케이스 테스트 중에 오류가 발생할 수 있다.트랜잭션이 걸려 있는..</description>
      <category>개발이야기/Ruby on Rails</category>
      <category>AOP</category>
      <category>factory</category>
      <category>factory girl</category>
      <category>fixture</category>
      <category>minitest</category>
      <category>mock</category>
      <category>RoR</category>
      <category>Ruby</category>
      <category>Ruby on Rails</category>
      <category>rubyonrails</category>
      <category>testcase</category>
      <category>TIP</category>
      <category>transaction</category>
      <category>Unit Test</category>
      <author>아침바라기</author>
      <guid isPermaLink="true">https://hopers.tistory.com/37</guid>
      <comments>https://hopers.tistory.com/entry/Rails-Minitest%EB%A5%BC-%EC%9D%B4%EC%9A%A9%ED%95%9C-%EB%AA%A8%EB%8D%B8-%ED%85%8C%EC%8A%A4%ED%8A%B8-%ED%8C%81#entry37comment</comments>
      <pubDate>Fri, 23 Oct 2015 21:50:17 +0900</pubDate>
    </item>
    <item>
      <title>[Rails] 트랜잭션 사용법</title>
      <link>https://hopers.tistory.com/entry/Rails-%ED%8A%B8%EB%9E%9C%EC%9E%AD%EC%85%98-%EC%82%AC%EC%9A%A9%EB%B2%95</link>
      <description>Rails 트랜잭션&amp;nbsp;오늘은 Rails에서 트랜잭션을 사용하는 방법을 다뤄본다.테스트는 레일즈 4.1.2 버전에서 진행했다.기본적인 사용벙법모델에 transaction method(ActiveRecord::ConnectionAdapters::DatabaseStatements 에 있다)를 호출하면 된다.파라미터로 블록 안에 한번에 transaction 으로 처리해야 할 내용을 추가한다.(참 쉽죠?)이제 예제를 보자.Article.transactio..</description>
      <category>개발이야기/Ruby on Rails</category>
      <category>isolation</category>
      <category>isolation level</category>
      <category>RoR</category>
      <category>Ruby</category>
      <category>rubyonrails</category>
      <category>savepoint</category>
      <category>transaction</category>
      <author>아침바라기</author>
      <guid isPermaLink="true">https://hopers.tistory.com/36</guid>
      <comments>https://hopers.tistory.com/entry/Rails-%ED%8A%B8%EB%9E%9C%EC%9E%AD%EC%85%98-%EC%82%AC%EC%9A%A9%EB%B2%95#entry36comment</comments>
      <pubDate>Wed, 21 Oct 2015 16:51:41 +0900</pubDate>
    </item>
    <item>
      <title>Presto에서 쿼리 사용기</title>
      <link>https://hopers.tistory.com/entry/Presto%EC%97%90%EC%84%9C-%EC%BF%BC%EB%A6%AC-%EC%82%AC%EC%9A%A9%EA%B8%B0</link>
      <description>느리지만 매우 안정적인 Hive의&amp;nbsp;대안으로 Presto를 사용 중이다.

통계용&amp;nbsp;데이터를 쿼리로&amp;nbsp;만들던 중에 팁&amp;nbsp;몇가지 정리해본다.
(Presto + Hive + Hadoop 2.0 + MySQL 연동)


1. 하이브로의 INSERT는 불가능하다

* 아직 지원하지 않는다. (UPDATE는 아예 메뉴얼에도 없다!)
* 결과를 저장하려면&amp;nbsp;CREATE AS 문을 사용하면 테이블로 저장할 수 있다.&amp;nbsp;
*..</description>
      <category>개발이야기/Presto</category>
      <category>as</category>
      <category>create</category>
      <category>inner view</category>
      <category>join</category>
      <category>Presto</category>
      <category>Query</category>
      <category>subquery</category>
      <category>Table</category>
      <author>아침바라기</author>
      <guid isPermaLink="true">https://hopers.tistory.com/35</guid>
      <comments>https://hopers.tistory.com/entry/Presto%EC%97%90%EC%84%9C-%EC%BF%BC%EB%A6%AC-%EC%82%AC%EC%9A%A9%EA%B8%B0#entry35comment</comments>
      <pubDate>Tue, 20 Oct 2015 19:12:13 +0900</pubDate>
    </item>
  </channel>
</rss>