달력

32024  이전 다음

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31

11.04 has reached its end of life --

11.10 is the LTR. 

if you wish to continue using 11.04 

edit your /etc/apt/sources.list 

to use old-releases

http://askubuntu.com/questions/10147...end-of-support


출처 : http://ubuntuforums.org/showthread.php?t=2104335


Edit /etc/apt/sources.list and change 'archive.ubuntu.com' to 'old-releases.ubuntu.com'


출처 : http://askubuntu.com/questions/101479/are-existing-updates-available-after-end-of-support


한마디로

11.04 버전 source.list에서 apt-get 파일들을 엉뚱한 곳에서 찾음 -> old-releases 로 바꿔주니 잘 찾음



Posted by dewlit
|

1. List로 받을 경우

ArrayList<Lecture> lectureList = new ArrayList<Lecture>();

Lecture tmpLecture;

Gson gson = new Gson();

Type type = new TypeToken<ArrayLecture>() {

}.getType();

ArrayLecture jonResultlecturelist = (ArrayLecture) gson

.fromJson(sHtml, type);

lectureList = jonResultlecturelist.getLectures();


2. 한 객체로 받을 경우

 2.1

Lecture tmpLecture;

FreemindGson myGson = new FreemindGson();

tmpLecture = (Lecture) myGson.fromJson(sHtml, "Lecture");

2.2

 위 List로 받을 경우에서 type를 한 객체로 하면 됨

'자바' 카테고리의 다른 글

Eclipse 배경색 background 복구 색 변경 default  (0) 2014.05.02
gwt may need recompiled  (0) 2013.02.13
자바 url 파일 받기  (0) 2012.08.22
Posted by dewlit
|

1. XMLHttpRequest() 이용해서

var request = new XMLHttpRequest();

request.onreadystatechange = function() {

if (request.readyState == 4 && request.status == 200) {

alert(request.responseText);}

}

request.open("GET", "http://localhost//test.txt");

request.send();


2. ajax 이용해서

<script src="jquery.js"></script>

$.ajax({

url : "http://localhost/mind/src/test.txt",

}).done(function(data) {

alert(data);

});


어디서 보긴 했는데 출처 기억이..ㅜㅜ

Posted by dewlit
|