사는게 힘들구만

블로그 이미지
by 아이즈원 짱

TAG CLOUD

  • Total hit
  • Today hit
  • Yesterday hit

'모바일'에 해당되는 글 14건

  1. 2014.03.18
    Cygwin-X 설치방법
  2. 2014.01.07
    Mac 에 개발툴 설치하기
  3. 2010.11.19
    윈도우에서 Objective-C 개발환경 설정하기 3 (실제 예제실행하기)
  4. 2010.11.19
    윈도우에서 Objective-C 개발환경 설정하기 2 (Dev-Cpp 사용)
  5. 2010.11.02
    비동기식 이미지 로딩
  6. 2010.11.01
    윈도우에서 Objective-C 개발환경 설정하기 1 (환경설정)
  7. 2010.10.01
    i. live 2.0 지상파 DMB/ 케이블TV 보기
  8. 2010.07.05
    원격으로 PC 접속
  9. 2010.06.17
    XCode 블럭(괄호) 스타일 바꾸기
  10. 2010.05.17
    [WeRule] 건물정보

http://westwoodforever.blogspot.kr/2013/12/cocos2d-x-plugin-x-tkintertclerror-no.html


http://adminschool.net/dbwiki/doku.php?id=os:windows:app:cygwin:xwininstall


'모바일 > Android' 카테고리의 다른 글

Mac 에 개발툴 설치하기  (0) 2014.01.07
AND

1.   NVIDIA Developer zone 에서 Tegra Android Development Pack  다운로드하기

Tegra Android Development Pack 메인페이지

Tegra Android Development Pack 최신다운로드하기


OS 에 맞는거 다운로드



다운로드후 실행시 설치가 안될 경우 java SDK 를 설치해야 한다.


안드로이드 팩 설치 되지 않을때 동영상 참조


2. Java  설치하기 

Java SE Development Kit 7 Downloads 설치하기




 Accept License Agreement 체크하고 OS 맞게 다운로드



자바 설치후 안드로이드 개발팩 설치 완료하더라도 이클립스가 바로 실행되지 않으므로


설치한 폴더에서 

user/xxxx/NVPACK/eclipse/Eclipse 실행하면 java 6 인가를 설치 하겠냐고 물어보는데 설치하면 된다. ( 설치 안해도 되는지는 확인 안해 봤음 )


끝.....






'모바일 > Android' 카테고리의 다른 글

Cygwin-X 설치방법  (0) 2014.03.18
AND
자 이제 진짜 마지막입니다 ^^;
저번장까지해서 Dev-Cpp의 환경설정을 마쳤는데요.
이제는 실제로 프로그램을 짜서 컴파일하는 걸 보여드리겠습니다


1. Dev-C++ 를 실행하고 새로만들기 > 프로젝트를 클릭합니다




2. Empty Project 를 선택하고, 프로젝트명을 hello 로 해보죠. 참 라디오버튼은 C를 선택해주세용



3. 새로만들 프로젝트를 저장합니다. 저는 test 폴더에 저장중





4. 생성된 hello 프로젝트를 선택하고 오른쪽버튼 클릭-> 유닛추가를 클릭합니다



5. 새로생성된 창에 간단한 Objective-C 예제를 코딩해보았습니당



6. 이제 저장인데요. Dev-Cpp 의 경우 기본적으로 C와 C++ 컴파일을 지원하기때문에 파일을 Objective-C 의 확장자인 m형식의 파일로 저장하기위해서는 파일형식을 All files 로 해놓고 저장해야합니다
저장한뒤 F9 버튼을 누릅니다



7. 이런창이 뜨시나요? ^^ 그럼 환경설정이 제대로된겁니다



이상 윈도우 환경에서 편하게 Objective-C 를 공부할 수 있는 내용을 살펴보았습니다.
기존에 cygwin으로 할때 컴파일하느라 열라 삽질한 생각하면
이방법이 너무나 편하게느껴진답니다 .ㅋㅋㅋㅋㅋㅋ

참고로 여태까지 설명드린 Dev-Cpp를 이용해서 제가 만든 모든 동영상강좌의
예제를 작업했는데 잘돌아가고 있습니다.

그럼 이만 글을 줄입니다.
안녕히~~~ 

글이 맘에드시면 댓글좀 부탁 ~
 


*<본 강좌는 AppsNext에서 제공되는 강좌입니다. 블로그에 퍼가시거나 카페에 퍼가셔도 좋으나, 반드시 하단에 출처에 AppsNext 를 명시해주시고. 링크도 걸어주셔요>

STLKorean
http://www.appsnext.com/bbs/board.php?bo_table=03_5&wr_id=5&page=2
AND

전장에서 했던거 계속 이어가용...
이번장에선 Dev-Cpp 첫번째 실행한담에
첫번째 예제돌리는거도 보여드려용

단순히 objc 프레임워크(기본 Objective-C ) 뿐만아니라 Foundation 프레임워크에서 돌아가는 예제를 일부러 놨습니다.

즉,, Dev-Cpp 를 이용해서 Foundation 프레임워크 기반
프로그램을 만들수 있다는 얘기~~


1. Dev-Cpp 를 첫번째 실행하면 뜨는 창- 무시하고 넘어감다.~


2. 우리는 한국인이니까.. 한국어 선택


3. 드디어 나온 첫번째창


4. 이제 슬슬 환경설정해볼가용... 도구 메뉴 > 컴파일러설정



5. 화면에 보시는대로 두개의 체크박스 체크후 
  첫번째에
-lobjc -lgnustep-base -fconstant-string-class=NSConstantString -enable-auto-import
두번재에 
 -lobjc -lgnustep-base -fconstant-string-class=NSConstantString -enable-auto-import
를 써줍니다.




6. 자 이제 디렉토리로 이동해서 실행파일 추가를 해볼가용~
실행파일들에 
C:\GNUstep\mingw\bin
 C:\GNUstep\bin
추가합니다



7. 라이브러리에
C:\GNUstep\mingw\lib
 C:\GNUstep\GNUstep\System\Library\Libraries
추가합니다



8. 인클루드에
 C:\GNUstep\mingw\include
 C:\GNUstep\GNUstep\System\Library\Headers
추가합니다



그리고 확인 버튼....
휴 이미지가 많아서 쉽지않아 ^^;;

마지막장에서 첫번째 예제를 실행해보겠습니다


*<본 강좌는 AppsNext에서 제공되는 강좌입니다. 블로그에 퍼가시거나 카페에 퍼가셔도 좋으나, 반드시 하단에 출처에 AppsNext 를 명시해주시고. 링크도 걸어주셔요>


STLKorean
http://www.appsnext.com/bbs/board.php?bo_table=03_5&wr_id=4&page=2

AND

xml 노드에 이미지 URL 이 있을 경우 비동기식으로 이미지 처리하는것.

UITables with Downloaded Images – Easy Asynchronous Code
http://www.markj.net/iphone-asynchronous-table-image/


Readers… do look through the comments if you plan to use this code, other people have posted improvements. Thanks for all the great feedback everyone. MJ

postcards-screen1The app ‘Postcards’ from my iPhone developer training class is a utility app for quickly sending a customized postcard, and one thing that makes it super easy is that you can grab pictures from Flickr to include in the postcard design. Postcards makes simple HTTP calls Flickr’s REST API to download public domain images and displays them in a UITableView for the user to pick from. Cocoa Touch makes this all simple and easy to code, and my first development version used synchronous calls to get the images by using NSData dataWithContentsOfURL:

.

.

NSData* data = [NSData dataWithContentsOfURL:[NSURL URLWithString:urls]];

Making synchronous calls to remote web servers from the thread that’s running the apps GUI is of course a bad idea that results in a laggy UI and unsatisfied users. Using synchronous calls in UITableView cellForRowAtIndexPath to load all the images results in a problem six times worse (for 6 rows on the screen) and makes scrolling basically broken as the table won’t scroll until it has the next cell, which it can’t get while the app is waiting for an image to download. Then imagine that on the Edge network! Obviously we need something multi-threaded that can load the images in parallel in the background and update the UI as they finish downloading.

Multi-threaded programming is hard and should be avoided whenever possible, and in this case Cocoa’s beautiful design came to my rescue:

UIView heirachy + URL loading system + delegate design = multi-threaded image loading with no multi-threaded coding!

How can you have your cake and eat it too? Every iPhone app is a multi-threaded program, or at least its running in conjuction with the multi-threaded iPhone operating system. Use the right delegate methods in the right ways, and you can take advantage of extra threads of execution that the iPhone gives you for free without writting any multi-threaded code of your own, hence sidesteping the problem of threading bugs in your code. An iPhone app is one big event loop – your classes have methods that the event loop calls in response to stuff happening on the device and in your app. When you use the URL loading system’s asynchronous APIs, the iPhone uses a different thread than the one running your app’s event loop to load the contents of the URL, and it makes callbacks via your apps event loop when data has been downloaded.

connection = [[NSURLConnection alloc]
                          initWithRequest:request delegate:self];
 
- (void)connection:(NSURLConnection *)theConnection
                          didReceiveData:(NSData *)incrementalData

Note carefully, when data has arrived from the remote webserver, that other iPhone thread doing the downloading doesn’t make calls into your objects at the same time as your methods are running, it puts messages into your apps event loop. If it called your app directly then chances are your app would be running some UI code or something and you’d have to write thread safe code. Instead, the call that data is ready arrives as an event on the event loop. Events on the event loop run single threaded, one at a time. Using this we can get asynchrous image download from Flickr without writting thread safe code ourselves. Even better, Cocoa’s URL loading system will download those URLs in parallel! For free!

That’s all well and good, but how do you get a table view to update the UITableViewCell with the image after its already been returned? A UIImage is imutable (right?) so you can’t change its image later when the image data has downloaded. Turns out Apple made this super easy too. Instead of putting a UIImage in the UITableViewCell, you put your own UIView object, that is sized correctly for the image you want to display, into the content view of the UITableCell (as a subview). At first your view object it can be empty, or it can have a dummy image in it, or you can pop in one of those spinny ’something is happening’ views. Then when the image data is downloaded, create a UIImageView with the image and pop it in your view in the cell. Hey presto… it appears. While all this is happening the user can be scrolling and going back and forth with a fully functioning UI.

I put this all together in a class AsyncImageView, listed below. It’s use is simple

  1. alloc and initWithRect:
  2. add it to a view, eg in a table cell’s content view;
  3. send it the loadImageFromURL: message.

LoadImageFromURL will return right away, the image will load in the background, and will automatically appear in the view when its finished downloading. The code posted below is something I whipped up pretty quickly (and I didn’t leak check yet!), but hey – parallel, asynchronous image download and display in about 40 lines of code with no thread-safe worries? Works in smooth scrolling tables, even on the Edge network? I rate it a big win, and wanted to share the technique.

I’ve developed an iPhone programming training class that I will be teaching soon in the SFBay Area (though my partners and I could probably bring it to you). It’s very hands on, and specially designed to help professional programmers new to Cocoa and Objective-C over the difficult initial learning curve. In the class we build the Postcards app from start to finish, including AsyncImageView. Email me for more info: markj at markj.net

AsyncImageView.h

AsyncImageView.m

@interface AsyncImageView : UIView {
    NSURLConnection* connection;
    NSMutableData* data;
}
@end
 
@implementation AsyncImageView
 
- (void)loadImageFromURL:(NSURL*)url {
    if (connection!=nil) { [connection release]; }
    if (data!=nil) { [data release]; }
    NSURLRequest* request = [NSURLRequest requestWithURL:url
             cachePolicy:NSURLRequestUseProtocolCachePolicy
             timeoutInterval:60.0];
    connection = [[NSURLConnection alloc]
             initWithRequest:request delegate:self];
    //TODO error handling, what if connection is nil?
}
 
- (void)connection:(NSURLConnection *)theConnection
     didReceiveData:(NSData *)incrementalData {
    if (data==nil) {
          data =
          [[NSMutableData alloc] initWithCapacity:2048];
    }
    [data appendData:incrementalData];
}
 
- (void)connectionDidFinishLoading:(NSURLConnection*)theConnection {
 
    [connection release];
    connection=nil;
 
    if ([[self subviews] count]&gt;0) {
        [[[self subviews] objectAtIndex:0] removeFromSuperview];
    }
 
    UIImageView* imageView = [[[UIImageView alloc] initWithImage:[UIImage imageWithData:data]] autorelease];
 
    imageView.contentMode = UIViewContentModeScaleAspectFit;
    imageView.autoresizingMask = ( UIViewAutoresizingFlexibleWidth || UIViewAutoresizingFlexibleHeight );
 
    [self addSubview:imageView];
    imageView.frame = self.bounds;
    [imageView setNeedsLayout];
    [self setNeedsLayout];
    [data release];
    data=nil;
}
 
- (UIImage*) image {
    UIImageView* iv = [[self subviews] objectAtIndex:0];
    return [iv image];
}
 
- (void)dealloc {
    [connection cancel];
    [connection release];
    [data release];
    [super dealloc];
}
 
@end

And here is the usage in UITableViewCell. The AsyncImageView gets tagged with 999, and when it gets recycled, that 999 tagged view gets fished out and removed. So only the cell is being recycled, not the AsyncImageView object. When its removed from the cells content view it also gets released, causing dealloc, which in turn cancels the url download (if its outstanding).

- (UITableViewCell *)tableView:(UITableView *)tableView
       cellForRowAtIndexPath:(NSIndexPath *)indexPath {
 
    static NSString *CellIdentifier = @"ImageCell";
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
 
    if (cell == nil) {
        cell = [[[UITableViewCell alloc]
              initWithFrame:CGRectZero reuseIdentifier:CellIdentifier]
              autorelease];
    } else {
	AsyncImageView* oldImage = (AsyncImageView*)
             [cell.contentView viewWithTag:999];
	[oldImage removeFromSuperview];
    }
 
	CGRect frame;
	frame.size.width=75; frame.size.height=75;
	frame.origin.x=0; frame.origin.y=0;
	AsyncImageView* asyncImage = [[[AsyncImageView alloc]
               initWithFrame:frame] autorelease];
	asyncImage.tag = 999;
	NSURL* url = [imageDownload
               thumbnailURLAtIndex:indexPath.row];
	[asyncImage loadImageFromURL:url];
 
	[cell.contentView addSubview:asyncImage];
 
    return cell;
}
AND

윈도우 환경설정 시작합니당.~~

1. 필요한 파일을 다운받읍시당

GNUstep System  0.24.0
 
http://ftpmain.gnustep.org/pub/gnustep/binaries/windows/gnustep-system-0.24.0-setup.exe


GNUstep Core 0.23.1
http://ftpmain.gnustep.org/pub/gnustep/binaries/windows/gnustep-core-0.23.1-setup.exe


dev c++
http://www.appsnext.com/work_data/devcpp-4.9.9.2_nomingw_setup.exe


2. 파일을 설치합니다
GNUstep System  ->GNUstep Core  ->dev c++  순서로 설치하심다.

1. GNUstep System  설치1 -걍 agree


2. GNUstep System  설치2-걍 next 후 설치 화면 지지지직~~



3. GNUstep System  설치3-완료



4. GNUstep Core 설치1-역시 계속 next



5. GNUstep Core 설치2-또...지지지직~~



6. GNUstep Core 설치3- 완료



7.Dev-C++ 설치 첫번째..
얼레..이상한게 뜨네요... 그래도 걍 Go~~



8.Dev-C++ 설치 두번째.. -뭐가있는 지 살펴볼려다가 역시 귀차니즘.. 다음~



9.Dev-C++ 설치 세번째.. -완료

자....다음장에서 계속 이어짐다~~ ^^;

*<본 강좌는 AppsNext에서 제공되는 강좌입니다. 블로그에 퍼가시거나 카페에 퍼가셔도 좋으나, 반드시 하단에 출처에 AppsNext 를 명시해주시고. 링크도 걸어주셔요>

STLKorean
http://www.appsnext.com/bbs/board.php?bo_table=03_5&wr_id=3

AND

어플을 설치하지 않고, 사파리에서 TV 보기

아이폰 사파리에서 주소창에 http://ev7.net/ 를 입력

시청 가능 공중파 채널 : MBC, SBS, KBS 2TV, KBS24NEWS HD, EBSi, ESB+1, ESB+2, OBS, GTB,

시청 가능 케이블 채널 : MNET, KMTV, SCIENCE, YHNEWS, KCTV, KCTVN, MapoITV, MBN, MTN, WOWTV ....... 등등

이외에도, 종교채널과 NHK 도 시청 가능.




 

i라이브트랜드는 TV 모음 사이트. 지원하는 사이트는 공중파, 케이블, 종교방송등  많다. MBC와 SBS는 저작권 문제로 단추가 비활성화되어 있다. 비활성화된 단추는 몇초 정도 누르고 있으면 시청 가능.

키스코는 스트리밍 서비스만 되는듯.  다만 아이폰 사이트에서 생방송을 제공하며,
생방송을 이용하면 KBS 2 TV를 시청할 수 있고. 방송은 랜덤으로 나오는듯.

i비디오는 TV 사이트는 아니다. 미드나 일드 위주...회원가입했으나.. 로그인하면 로그인 성공했다고 나오지만...로그인이 되지 않는듯 하다..그래서 볼수가 없다....ㅋ


AND
AND

http://v.daum.net/link/7597667


Finder에서 응용프로그램 -> 유틸리티 -> 터미널을 실행시킵니다.

그리고 터미널에

defaults write com.apple.Xcode XCCodeSenseFormattingOptions '{ "BlockSeparator" = "\n" ; }'

AND
건물정보
http://www.webmini.net/186219  에서 가져옴...


AND

ARTICLE CATEGORY

분류 전체보기 (109)
컴퓨터 (38)
프로그램 (21)
모바일 (14)
게임 (2)
자동차 (10)
자료실 (3)
건강 (4)
여행 (3)
정치 경제 (3)
기타 (7)
소녀시대 (1)

RECENT ARTICLE

RECENT COMMENT

RECENT TRACKBACK

CALENDAR

«   2024/05   »
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

ARCHIVE