2012年11月29日 星期四

[Android] Rename Package in Eclipse



Changing package name is pain and may occur errors especially submit App and get the same package name feedback. I try several methods and found the way is easily.

1. Right click on the package name then Refractor > Rename.
    There may be many package name needed to change and should check all.
2. Right click on the project name Android tools > Rename Application Package.
3. Manually set the package names in the Manifest that have not been changed by the previous steps.

2012年11月28日 星期三

MAC 10.8 WebATM 網路IC讀卡機

在台灣,目前看看主要只有玉山銀行有 SUPPORT MAC 網路轉帳的功能;
我從 OS X 10.7 upgrade 10.8,  driver 需要重新安裝;

首先, 先重新安裝 EZ100PU driver, 
http://www.casauto.com.tw/in-download-02.aspx?cid=C_00000001&id=P_00000001
在網站裡沒有 10.8 的版本, 其實用 10.7 的也是 OK 的;

再來是進入玉山銀行 WebATM, 
http://netbank.esunbank.com.tw/webatm/Q&A_017.htm?ctype=b&cid=Machotervice_ebanking&oid=webatmst_03
下載 Safari plugin-in 元件,以上兩個動作要重開機和重開 Safari 

最後就是插入 USB, 重新整理WebATM 網頁, 就會捉到讀卡機囉~

2012年11月27日 星期二

VNC session connection failed

Use realVNC and met the error message "session connection failed" when logout remote account on windows based OS.

So I change to tightVNC and it works.
http://www.tightvnc.com/download.php

2012年11月16日 星期五

How to Install Windows 8 on Mac and PC

1. Install virtual box (free)
    Download VirtualBox for Windows, Mac or Linux: http://www.virtualbox.org/wiki/Downloads

2. Download Windows8 (90 days trial version)
    http://msdn.microsoft.com/en-US/evalcenter/jj554510.aspx?wt.mc_id=MEC_132_1_4

2. Run virtual box and select OS type --> Windows 8

Also reference to Windows version install
http://windows.appstorm.net/how-to/how-to-try-out-windows-8-in-virtualbox/

Refer to Microsoft Windows 8 System Requirements:

Windows 8 works on the same hardware that powers Windows 7:
  • Processor: 1 gigahertz (GHz) or faster
  • RAM: 1 gigabyte (GB) (32-bit) or 2 GB (64-bit)
  • Hard disk space: 16 GB (32-bit) or 20 GB (64-bit)
  • Graphics card: Microsoft DirectX 9 graphics device with WDDM driver



2012年11月13日 星期二

Update Apple Apple from iOS 5 to 6

Update Apple App to new version, following the steps.


  1. Select project to iOS device and edit scheme of archive.
  2. Build archive.
  3. Go to http://itunesconnect.apple.com to add new version.
  4. Edit update note then finish the new version process. Status will show waiting for upload.
  5. Xcode --> Select archive to do validate process
  6. Xcode --> Distribute archive
You will occurs the missing screen if update to iOS6 and forget to upload 4 inches screenshot.
Just upload the screenshots from your simulator or iOS devices including iPad & iPhone.

Good luck.



2012年11月12日 星期一

[Xcode] Upgrade App to iPhone5

1. Update Xcode to 4.5 & OS X to 10.8 for iOS6
2. Check machine name

machineName()
{
    struct utsname systemInfo;
    uname(&systemInfo);

    return [NSString stringWithCString:systemInfo.machine
                              encoding:NSUTF8StringEncoding];
}



@"i386"      on the simulator
@"iPod1,1"   on iPod Touch
@"iPod2,1"   on iPod Touch Second Generation
@"iPod3,1"   on iPod Touch Third Generation
@"iPod4,1"   on iPod Touch Fourth Generation
@"iPhone1,1" on iPhone
@"iPhone1,2" on iPhone 3G
@"iPhone2,1" on iPhone 3GS
@"iPad1,1"   on iPad
@"iPad2,1"   on iPad 2
@"iPad3,1"   on iPad 3 (aka new iPad)
@"iPhone3,1" on iPhone 4
@"iPhone4,1" on iPhone 4S
@"iPhone5,1" on iPhone 5

if iPhone5 then do action ...

3. Give launch image for myImage-568h@2x.png
4. Change UIView or UIImage of background as Autosizing.
    Adjust the origin of each component.
5. Test simulator and real iOS device to check without errors.