iamjerryyeung

Thursday, January 26, 2012

internet to cisco

1. mac book connect to ethernet, then VPN
2. turn on air port
3. Use "sharing", check internet sharing with from "ethernet" to "airport"
4. run Charles, change the HTTP Proxy port to 9988
5. on iPad, go to wifi -> linksys -> Proxy, click manual, type in the ip address of air port and port of HTTP proxy defined in charles

Tuesday, December 06, 2011

http://www.javamex.com/tutorials/memory/instrumentation.shtml

classmexer to find out the size of an Java object (could be deep) using Instrumentation

Sunday, November 13, 2011

hibernate insert false

http://stackoverflow.com/questions/2468106/hibernate-update-jpa-foreign-key

Wednesday, September 28, 2011

android phone gap plugin

http://wiki.phonegap.com/w/page/36753494/How%20to%20Create%20a%20PhoneGap%20Plugin%20for%20Android

android certificate

http://www.realmb.com/droidCert/

Monday, September 19, 2011

stock essp sale

on 9-19-2011 492 + 365 =857

12-2004, 6-2005

Monday, September 12, 2011

certificate checking

http://jcalcote.wordpress.com/2010/06/22/managing-a-dynamic-java-trust-store/

Sunday, September 11, 2011

xcodebuild

http://stackoverflow.com/questions/2327257/name-of-provisioning-profile-used-to-sign-an-iphone-app

security find-identity -p codesigning -v;
http://stackoverflow.com/questions/866761/setting-a-provisioning-profile-from-within-xcodebuild-when-making-iphone-apps
http://nachbaur.com/blog/how-to-automate-your-iphone-app-builds-with-hudson
#!/bin/bash

TARGET
="Your App"
CONFIGURATION
="Release"
SDK
="iphoneos"
PROFILE_PATH
="/Users/jkp/Desktop/foo.mobileprovision"
IDENTITY
="iPhone Distribution: Your Company Ltd"
KEYCHAIN
="/Users/jkp/Desktop/keychain"
PASSWORD
="foobar"

open
"${PROFILE_PATH}"
sleep
5
osascript
-e "tell application \"Xcode\" to quit"
security unlock
-keychain -p ${PASSWORD} ${KEYCHAIN}
xcodebuild
-target "${TARGET}" -configuration ${CONFIGURATION} -sdk iphoneos CODE_SIGN_IDENTITY="${IDENTITY}" OTHER_CODE_SIGN_FLAGS="--keychain ${KEYCHAIN}"