Monster Oasis
覺得累就是進步的開始!

2010/08/15

花海 / 金山 / 獅頭山海濱公園 / 燭臺雙嶼

Filed under: PHOTO — 9:38 pm

海水好藍, 懸崖好白, 很希臘, 好想游這邊….Big blue …
R0015577 (more…)

2010/08/11

2010.0811 亂拍 / tyan server 測試 failed 畫面 / 板橋車站夜景

Filed under: PHOTO — 6:11 pm

R0015422R0015423R0015429R0015430R0015427R0015420R0015401R0015415R0015441R0015470

2010/08/05

Online 畫草圖工具 / Online draft editing tools

Filed under: Copy_N_Paste,Network service,Software — Tags: , — 3:45 pm

http://amos-lee.blogspot.com/2010/05/10.html

http://www.mockflow.com/

http://www.balsamiq.com/builds/mockups-web-demo/?q=demos/mockups/Mockups.html

2010/08/04

Protected: iPhone dev misc…. 授權憑證重建的方式

Filed under: Programming/iPhone — Tags: — 9:53 pm

This post is password protected. To view it please enter your password below:


Related URL:
  1. [memo] iphone dev / table view sample code
  2. iPhone class / method / instance naming convention
  3. [書上沒教的] iphone / xcode 出現這種 error : Check dependencies …error: There is no SDK with the name or path ‘iphoneosx.x’
  4. 推薦 iPhone & iPad App 開發參考書 / dev books
  5. 我的第一隻 iPhone 程式 – HelloMap !
  6. Programming in Objective-C , sample code
  7. [URL] iPhone programming bookmarks / reference
  8. A simple Objective-C Method Declaration and Definition
  9. iphone / hello world 2 / single rows in the table view
  10. [導覽] 有趣的 iPad iPhone development video 教學

2010/08/03

推薦 iPhone & iPad App 開發參考書 / dev books

Filed under: Article or News,Programming/iPhone — Tags: , — 9:40 pm
擷取-iPhone超新手 iPhone.and.iPad.Apps.for.Absolute.Beginners(Apress.2010-05)

(more…)

Related URL:
  1. 我的第一隻 iPhone 程式 – HelloMap !
  2. [導覽] 有趣的 iPad iPhone development video 教學

2010/08/02

我的第一隻 iPhone 程式 – HelloMap !

Filed under: Programming/iPhone,Software — Tags: , — 2:20 pm

hellomap2

這隻程式會展現一個地圖, 並以目前定位的座標為中心點, 及一個按鈕,按下按鈕會把座標及UDID傳送到 server , 由 server 端的程式記錄下來, 並且 server 端亂數送出一個水果名回傳給 iPhone client 端, iPhone client 端再把這水果名 show 在 iPhone screen上.

底下是片斷程式碼:

FirstViewController.h :

#import 
#import

#import 

@interface FirstViewController : UIViewController  {
  IBOutlet MKMapView *mapView;
  CLLocationManager *locationManager;
  CLLocation *currentLocation;

}

- (IBAction) updateLocation;

@end

 

FirstViewController.m :

- (void)viewDidLoad {
  [super viewDidLoad];

  if (locationManager==nil) {
    locationManager = [[CLLocationManager alloc] init];
    locationManager.delegate = self;
  }

  [locationManager startUpdatingLocation];

  [mapView setMapType:MKMapTypeStandard];
}

- (void)locationManager:(CLLocationManager *)manager
  didUpdateToLocation:(CLLocation *)newLocation
       fromLocation:(CLLocation *)oldLocation {

  NSLog(@"Location : %.6f , %.6f", newLocation.coordinate.latitude , newLocation.coordinate.longitude );

  MKCoordinateRegion region = [mapView region];

  region.center = newLocation.coordinate;

  MKCoordinateSpan span;
  span.latitudeDelta = 0.01;
  span.longitudeDelta = 0.01;
  region.span = span;
  [mapView setRegion:region animated:TRUE];

  //
  if ( currentLocation != nil) {
    [currentLocation release];
    currentLocation = nil;
  }
  currentLocation = [newLocation copy];

}
- (IBAction) updateLocation {

  if(currentLocation==nil)
    return;

  UIDevice *device=[[UIDevice alloc] init];

  NSString *URLString=[[NSString alloc] initWithFormat:@"http://z.monster.tw/save_location.php?lat=%.6f&lng=%.6f&id=%@"
             ,currentLocation.coordinate.latitude
             ,currentLocation.coordinate.longitude
             ,device.uniqueIdentifier];

  [device release];

  NSLog(@"%@",URLString);

  // Send Request
  NSURLRequest *request=[NSURLRequest requestWithURL:[NSURL URLWithString:[URLString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]
                       cachePolicy:NSURLRequestReloadIgnoringCacheData
                     timeoutInterval:20.0]; 

  NSData *returnData = [NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil];
  NSString *returnString = [[NSString alloc] initWithData:returnData encoding:NSUTF8StringEncoding];

  NSLog(@"%@",returnString);  

  // Display AlertView
  UIAlertView *alert = [[UIAlertView alloc] initWithTitle:returnString message:@"Thanks!"
                           delegate:self cancelButtonTitle:@"Close" otherButtonTitles: nil];
  [alert show];
  [alert release];  

  [returnString release];
}
Related URL:
  1. 推薦 iPhone & iPad App 開發參考書 / dev books
  2. [導覽] 有趣的 iPad iPhone development video 教學

2010/07/30

Programming in Objective-C , sample code

Filed under: Copy_N_Paste,Programming/iPhone — Tags: — 11:03 am

這邊有一些 objective-c 的基本認識 , 參考 URL : http://www.otierney.net/objective-c.html.zh-tw.big5

(more…)

Related URL:
  1. [memo] iphone dev / table view sample code
  2. iPhone class / method / instance naming convention
  3. [書上沒教的] iphone / xcode 出現這種 error : Check dependencies …error: There is no SDK with the name or path ‘iphoneosx.x’
  4. Protected: iPhone dev misc…. 授權憑證重建的方式
  5. 推薦 iPhone & iPad App 開發參考書 / dev books
  6. 我的第一隻 iPhone 程式 – HelloMap !
  7. [URL] iPhone programming bookmarks / reference
  8. A simple Objective-C Method Declaration and Definition
  9. iphone / hello world 2 / single rows in the table view
  10. [導覽] 有趣的 iPad iPhone development video 教學

2010/07/27

postfix , 寄 yahoo 的信改由 hinet 的 smtp 發 , 用 telnet command 測試對方 smtp 通不通

Filed under: System/Linux/Unix* — 1:48 pm
cat main.cf
transport_maps = regexp:/etc/postfix/transport

cat transport
.*\.yahoo\..*   smtp:[msa.hinet.net]

telnet smtp.test.com.tw 25

HELO test.com.tw
mail from:test@test.com.tw
rcpt to:test@testdomain.com.tw
data
Subject:test
xxxxxxxxxxx

2010/07/23

晨騎, 板橋 <==> 關渡宮 , 40K

Filed under: Exercise — Tags: — 10:04 am

檢視 2010.0723

(more…)

Related URL:
  1. 2010-0502 bike 塔塔加
  2. bike 塔塔加 –> 阿里山
  3. 完成台東超級鐵人三項 123K – Enjoy the racing! I’m finish 2009 Taitung 123K International Triathlon
  4. 123K 賽前
  5. my bike photos
  6. monster dimensions
  7. BIKE 板橋 —> 蘇澳冷泉 100K
  8. 2009 臺東123公里國際鐵人三項 / 公告 / 地圖 / 準備項目 / T1 T2 轉換區 steps / misc
  9. 這句話讚ㄚ — 「沒關係,騎不動就用牽的,反正我要靠自己的力量走完這一圈!」
  10. Protected: 記錄 , exercise records / my record

2010/07/22

報了 IRONMAN 70.3 Taiwan!

Filed under: Exercise — Tags: , — 4:27 pm

2010年10月30日(六) | 游泳1.9公里/自行車90公里/路跑 21公里  
http://www.ironmantaiwan.com/

Related URL:
  1. ㄏㄏ … 越來越多鐵人們想要出國比賽囉!
« 上頁下頁»

www.monster.com.tw , © Copyright 2008