Jan 28, 2014

1/28

kinsman [|kɪnzmən] 친척

wayward [|weɪwərd] 다루기힘든

lattice [|lӕtɪs] 격자

judgement [|dƷʌdƷmənt] 판단력

twilight [|twaɪlaɪt] 황혼

intent [ɪn|tent] 의도

crafty [|krӕfti] 술수가 뛰어난, 교활한

defiant [dɪ|faɪənt] 반항적인

lurk [l3:rk] 숨어있다

brazen [|breɪzn] 뻔뻔한

vow[vaʊ] 서약

fulfill [fulfíl] 실현시키다

myrrh [fulfíl] 럼주,몰약

aloe [|ӕloʊ] 알로에

persuasive [pər|sweɪsɪv] 설득하는

noose 올가미

slaughter [|slɔ:tə(r)] 도살자

deer [dɪr] 사슴

stray [streɪ] 옆길로 새다

victim [|vɪktɪm] 희생자

slay[sleɪ] 죽이다

throng [θrɔ:ŋ;θrɑ:ŋ] 인파, 군중

grave [greɪv] 무덤

chamber [|tʃeɪmbə(r)] 방,~실

Proverbs Chapter 6

1. My son, If you have put up security for your neighbor, if you have struck hands in pledge for another.

2. if you have been trapped by what you said, ensnared by the words of your mouth,

3. then do this, my son, to free yourself, since you have fallen into your neighbor's hands:Go and humble yourself; press your plea with your neighbor!

4. Allow no sleep to your eyes, no slumber to your eyelids.

5. Free yourself, like a gazelle from the hand of the hunter, like a bird from the snare of the fowler.

6. Go to the ant, you sluggard; consider its ways and be wise!

7. it has no commander, no overseer or ruler,

8. yet it stores its provisions in summer and gathers its food at harvest.

9. How long will you lie there, you sluggard? When will you get up from your sleep?

10. A little sleep, a little slumber, a little folding of the hands to rest --

11. and poverty will come on you like a bandit and scarcity like an armed man.

12. A scoundrel and villain, who goes about with a corrupt mouth,

13. who winks with his eye, signals with his feet and motions with his fingers,

14. who plots evil with deceit in his heart -- he always stirs up dissension.

15. Therefore disaster will overtake him in an instant; he will suddenly be destroyed -- without remedy.

16. There are six things the LORD hates, seven that are detestable to him:

17. haughty eyes, a lying tongue, hands that shed innocent blood,

18. a heart that devises wicked schemes, feet that are quick to rush into evil,

19. a false witness who pours out lies and a man who stirs up dissension among brothers.

20. My son, keep your fathers commands and do not forsake your mothers teaching.

21. Bind them upon your heart forever; fasten them around your neck.

22. When you walk, they will guide you; when you sleep, they will watch over you; when you awake, they will speak to you.

23. For these commands are a lamp, this teaching is a light, and the corrections of discipline are the way to life.

24. keeping you from the immoral woman, from the smooth tongue of the wayward wife.

25. Do not lust in your heart after her beauty or let her captivate you with her eyes,

26. for the prostitute reduces you to a loaf of bread, and the adulteress preys upon your very life.

27. Can a man scoop fire into his lap without his clothes being burned?

28. Can a man walk on hot coals without his feet being scorched?

29. So is he who sleeps with another mans wife; no one who touches her will go unpunished.

30. Men do not despise a thief if he steals to satisfy his hunger when he is starving.

31. Yet if he is caught, he must pay sevenfold, though it costs him all the wealth of his house.

32. But a man who commits adultery lacks judgment; whoever does so destroys himself.

33. Blows and disgrace are his lot, and his shame will never be wiped away;

34. for jealousy arouses a husbands fury, and he will show no mercy when he takes revenge.

35. He will not accept any compensation; he will refuse the bribe, however great it is.

날씨어플 3번째 버전



아~이제 DB까지 넣었다.

DB는 인터넷에 돌아다니는 파일을 썼고, DB를 asserts폴더에 넣어 복사하는 코드도 인터넷에서 참고하였다.

링크는 정확히 기억이 ;;;(너무 이곳 저곳 기웃거리다 보니;;)

일단 앱을 실행하면 DB가 있는지 검사를 하고, 없으면 복사해 넣는다.

그리고 list 가져오기 버튼을 누르면 지역정보가 스피너에 들어온다.

스피너에서 보고자 하는 지역을 선택하고, 날씨보기를 누르면 날씨가 나옴.



다음 버전은 소스좀 심플하고 보기좋게 바꿔야 겠다. 그리고 x,y좌표값이 있어서 gps를 공부해서 gps로 찾아오는 걸로 바꿔봐야 겠다.

Jan 27, 2014

날씨가져오기 weather (pullparser) 2번째 버전


저번에 만들었던 날씨위젯에서 날씨 보여주는 부분을 리스트뷰로 바꾸고 아이콘을 추가했다

아직까지 db가 적용되지 않아 동네는 몇군데 되지 않는다;;

db 파일로 넣고, 읽는 부분이 좀 잘 안되네;;


우선 리스트뷰 적용된 날씨가져오기~

1/27



pledge [pledƷ] 약속, 서약, 담보

ensnare  [ɪn|sner] 걸려들게 하다

snare  [sner] 

plea [pli:] 간청, 애청

since [sɪns] ~때문에

slumber [|slʌmbə(r)] 잠, 수면

fowler [fáulər] 새(bird) 사냥꾼

yet [jet] 그러나

provision [prə|vɪƷn] 대비, 준비, 식량

bandit [|bӕndɪt] 노상강도

scarcity [|skersəti]부족

scoundrel [|skaʊndrəl] 악당

villain [|vɪlən] 악인

corrupt[kə|rʌpt] 부패한

dissension [dɪ|senʃn] 불화

disaster [dɪ|zӕstə(r)] 재난

remedy  [|remədi]치료

detestable [dɪ|testəbl] 혐오스러운

haughty  [|hɔ:ti]거만한

devise [dɪ|vaɪz] 창안하다

witness  [|wɪtnəs]증인

bind [baɪnd] 묶다, 감다

fasten [|fӕsn] 매다

immoral  |mɔ:rəl;ɪ|mɑ:r-]부도덕한

lust [lʌst] 욕망

prey[preɪ] 먹이, 잡아먹다






주소록 불러오기 (do it mission 11)



이번 미션은 스레드를 사용하여 애니메이션을 구현하는 건데~

폰의 주소록을 가져와서 뿌려주고, 그걸 애니메이션으로~

이걸 하기위해선 커서도 조금 공부해야함

애니메이션이라;; 스크린샷을 찍기가 힘들다;;

일단 점점나타나면서 오른쪽에서 왼쪽으로 나타났다가 다시 점점 사라지면서 왼쪽으로 가는

그런 애니메이션을 적용해 보았다;;



대충 이런식으로 나타났다 사라진다;; 


Jan 24, 2014

캘린더에 일정과 날씨넣기 (Do it mission 14)



이번껀 mission13꺼에 이어서 달력의 날짜를 누르면 팝업이 뜨면서 일정과 날짜를 입력하는 어플이다.

날씨는 특별히 선택을 하지않으면 기상청의 동네예보를 받아오지만(이게 3일치밖에 없기 때문에)오늘 내일 모레 외에는 날씨정보가 없다.

이때는 날씨아이콘을 클릭해주면 그 날씨로 나온다.

달력의 날짜를 누르면 위와같이 팝업이 뜨는데 이때 입력을 해주고 저장을 누르면

사진과 같이 저장된걸 볼 수 있다.


머가 되니까 점점 재밌어지네 ㅋ

Jan 23, 2014

캘린더에 날씨정보 뿌리기 (Do it mission 13)




아~몇일동안 삽질하다 그나마 실마리를 찾은듯;;

이건 do it 안드로이드 앱프로그래밍 미션13

샘플로 제공해주는 캘린더에 이전에 만든 xmlpullparser를 이용하여

기상청에서 날씨 정보받아오고, 달력에 뿌려주는거~

내가 가져온건 동네예보라 3일치밖에 못가져온다;;

시간대별로 15개정도를 받아오는 거 같은데, 일단 첫 예보정보 날씨만 가져와서

적용하였다.


참고로 날씨는 봉암동이다 ㅎㅎ



Jan 22, 2014

pull parser이용해서 기상청에서 날씨가져오기



아 xml 파서를 잘 이해도 안되서 좀 해멨다;;

여러가지 파서들이 있지만, DOM파서는 잘 안쓰는거 같고, SAX파서로 해보려했지만, 잘이해 안되서 가장 직관적이라는 Pull파서로 만들었다 ^^;

일단 아직은 베타버전~아이콘도없고;; 동네도 우리동네만 ㅋㅋ

일단 db를 공부해서 전국으로 확장하고, gps연결도 해보자

혹시라도 공부할 사람들을 위해 소스는 위의 링크를~

실행화면