【iOS】iPhone Developer Program


 

  • 按照 iPhone Developer Program Enroll
  • 按照接下來頁面依序填入申請資料,以下省略。
  • 經過兩三天左右會收到信用卡帳單。

Troubleshoot

  • 收到帶有 Activation Code 點選連結之後卻  Enroll 失敗
    • 登入後在右方看到提示,點選 form
      image
    • 填入
      • Enrollment ID
        點選帶有 Activation Code 的 Email 就可以看到
        image
      • Email address
      • Notarization or Solicitor Certification Stamp
        這邊我是用駕照
    • Fax to Number +1 (408) 862-1519
      • 由於我沒有傳真機,所以採用 PamFax  的服務,註冊後會送 NT$11.49。
        提供 網頁版 或 Mac 版工具與 信用卡或Skype付款機制。
        image
      • 此次發送會耗費 NT$6.38。
      • 成功會經由 Email 通知。
    • 經過兩三天左右會收到通知進行再認證
      image
    • 登入 Member Center 會通知你進行下一步
      image
    • 完成認證
      image
    • 最後會在收到幾封信,跟著他要求的進行。
    • 登入 iTunes Connect 即可進行管理。

【JOB】工作用語


Date

  1. Date of Separation 離職日
  2. Date of Employment 到職日

Skill

  1. Driving License of Automobile 汽車駕照

Military experience

Work experience

  • Reason for leaving
  • Career growth
  • Enhanced Education

Reference

【週邊】HP Color LaserJet CM1312 MFP


image

HP Color LaserJet CM1312 MFP Series PCL6

【軟體與驅動程式】

  • 隨機光碟,這款機器有主要的三片光碟/軟體:
    • for Mac: HP Director(支援掃描)
    • for Windows: HP Digitial Imaging Monitor
    • for  Mac/Win: Readiries 影像辨認軟體
  • 雖有隨機光碟,不過也可由 HP 網站下載驅動,請由 支援及驅動程式 進入,
    產品名稱為 HP Color LaserJet CM1312 Multifunction Printer

【列印方式】

  • 按照一般的方式操作。

【掃描方式】

掃描在Windows底下兩個方法:
  1. 方法一
    1. 打開 HP Digitial Imaging Monitor
    2. 啟動活動/ 掃描圖片...
  2. 方法二
    1. 打開 我的電腦,會出現掃描器的裝置,點兩下帶起Windows內建的掃描軟體。
      (20110915update: 在 Win7 需由 開始/所有程式/Windoes傳真與掃描)

Mac環境使用 HP Director

  1. 可以使用 Scan/Scan to foldeer
    image
  2. 如果有需要多張圖片檔合成一張 可使用
    Adobe Acrobat X Pro/Create/Combine file into single pdf

【維護】

  • 校正
    校正直接使用印表機上面的控制面板,使用 設定|系統設定|列印品質|校準色彩|立即校準
  • 耗材報告(可簡單的用來檢視校準後的結果):
    直接使用印表機上面的控制面板,使用 設定|報告|耗材報告頁
  • 其他還有展示頁功能,請直接由控制面板進入。

【耗材碳粉】

  1. 黑色的採用 CB540A,同時適合 CP1215/LP1518/CM1312
  2. 彩色目前還沒換過。

【客服專線】

【參考】

【Paper】IEEE 802.11


研究中

IEEE802.16Mesh網路之QoS相關機制研究與設計

在IEEE 802.11網路下的快速換手機制:IEEE 802.11F與IEEE 802.11r

【PHP】Parse HTML


參考看看 Parse an HTML Table with PHP

【PHP】Sqlite3


網路都找到的一些都有一點小問題 整理後的範例

$dsn = 'sqlite:sql.db';
try{
    $dbh = new PDO($dsn, $user, $password);
    echo 'PDO Connection Ok',"\n";
    $dbh->exec("CREATE TABLE PKU(id integer,name varchar(255))");
    echo 'Create Table ok',"\n";
    $dbh->exec("INSERT INTO PKU values(1,'jarjin')");
    echo 'Insert Data ok',"\n";
    $dbh->beginTransaction();
    $sth = $dbh->prepare('SELECT *FROM PKU');
    $sth->execute();
    $result = $sth->fetchAll();
    print_r($result);
    $dsn=null;
    } catch (PDOException $e) {
        echo 'Connection failed: ' . $e->getMessage();
        $dsn=null;
    }

參考 sqlite php5 PDO

【Mac】簡轉繁


Mac 在服務內以內建, 打開一個編輯器(如BBEdit) , 選取要轉換的片段, 選擇左上邊 Toolbar/服務/轉換 即可.

【PHP】Big5 to Unicode


本來想用 Perl 寫, 可惜 Text::Iconv 還要裝, 所以改用現成的 PHP 來做.

<?
$url = "http://www.xxx.com/index.html";
$contents = file_get_contents($url);
//如果出現中文亂碼使用下面代碼
//$getcontent = iconv("big5", "utf-8",file_get_contents($url));
//echo $getcontent;
echo $contents;
?>

參考

【iOS】UIToolbar


 

  • 初始化

    IBOutlet UIToolbar    *toolbar;

    //create toolbar using new
    toolbar = [UIToolbar new];
    toolbar.barStyle = UIBarStyleDefault;
    [toolbar sizeToFit];
    toolbar.frame = CGRectMake(0, 410, 320, 50);

    //Add buttons
    UIBarButtonItem *systemItem1 = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd
                                                                                 target:self
                                                                                 action:@selector(pressButton1:)];

    UIBarButtonItem *systemItem2 = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction
                                                                                 target:self
                                                                                 action:@selector(pressButton2:)];

    UIBarButtonItem *systemItem3 = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCamera
                                                                                 target:self
                                                                                 action:@selector(pressButton3:)];

    //Use this to put space in between your toolbox buttons
    UIBarButtonItem *flexItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace
                                                                              target:nil
                                                                              action:nil];

    //Add buttons to the array
    NSArray *items = [NSArray arrayWithObjects: systemItem1, flexItem, systemItem2, flexItem, systemItem3, nil];

    //release buttons
    [systemItem1 release];
    [systemItem2 release];
    [systemItem3 release];
    [flexItem release];

    //add array of buttons to toolbar
    [toolbar setItems:items animated:NO];

    [self.view addSubview:toolbar];

  • style

    typedef enum {
        UIBarButtonSystemItemDone,
        UIBarButtonSystemItemCancel,
        UIBarButtonSystemItemEdit, 
        UIBarButtonSystemItemSave, 
        UIBarButtonSystemItemAdd,
        UIBarButtonSystemItemFlexibleSpace,
        UIBarButtonSystemItemFixedSpace,
        UIBarButtonSystemItemCompose,
        UIBarButtonSystemItemReply,
        UIBarButtonSystemItemAction,
        UIBarButtonSystemItemOrganize,
        UIBarButtonSystemItemBookmarks,
        UIBarButtonSystemItemSearch,
        UIBarButtonSystemItemRefresh,
        UIBarButtonSystemItemStop,
        UIBarButtonSystemItemCamera,
        UIBarButtonSystemItemTrash,
        UIBarButtonSystemItemPlay,
        UIBarButtonSystemItemPause,
        UIBarButtonSystemItemRewind,
        UIBarButtonSystemItemFastForward,
    #if __IPHONE_3_0 <= __IPHONE_OS_VERSION_MAX_ALLOWED
        UIBarButtonSystemItemUndo,
        UIBarButtonSystemItemRedo,
    #endif
    #if __IPHONE_4_0 <= __IPHONE_OS_VERSION_MAX_ALLOWED
        UIBarButtonSystemItemPageCurl,
    #endif
    } UIBarButtonSystemItem;

  • Type 初始化, 提供 Custom/RoundedRect/Detail/Info/ContactAdd, 使用 Custom 時記得要給 Frame

    UIButton* button3 = [UIButton buttonWithType:UIButtonTypeCustom];
    [button3 addTarget:self action:@selector(backAction) forControlEvents:UIControlEventTouchUpInside];
    [button3 setTitle:@"+" forState:UIControlStateNormal];
    [button3 setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
    button3.titleLabel.font = [UIFont systemFontOfSize:25];
    button3.frame = CGRectMake(100, 170, 100, 30);

    // create button item -- possible because UIButton subclasses UIView!
    UIBarButtonItem *systemItem3=[[UIBarButtonItem alloc] initWithCustomView:button3];

  • type

    typedef enum {
        UIButtonTypeCustom = 0,
        UIButtonTypeRoundedRect,
        UIButtonTypeDetailDisclosure,
        UIButtonTypeInfoLight,
        UIButtonTypeInfoDark,
        UIButtonTypeContactAdd,
    } UIButtonType;

【Mac】gif2apng


不想裝 Imagemagick 可以直接試試輕巧的 gif2apng
雖然官網有提示如何批次轉換,但卻無法成功。以下提供另一個方式。

for img in *.gif; do
    filename=${img%.*}
    gif2apng "$filename.gif" "$filename.png"
done

參考

 

Ed32. Copyright 2008 All Rights Reserved Revolution Two Church theme by Brian Gardner Converted into Blogger Template by Bloganol dot com