Saturday, April 28, 2018

Ionic Basic

Install Ionic
sudo npm install -g ionic
ionic start
ionic start myApp tabs
ionic start MyIonicProject tutorial

Execute in Browser
ionic serve
ionic serve -l -c -s

Execute in iPhone
ionic cordova build ios --prod
open the .xcodeproj file in platforms/ios/ in Xcode
Xcode > Project > General > Signing > Team > Select Team
Xcode > Project > General > Identity > Bundle Identifier > io.ionic.starter.ngtszwing
Xcode > RUN

Trust certificate in Device
Open the ‘Settings’ app on your iOS device
Go to 'General > Device Management’. You’ll see the email address associated with the Apple ID or Apple Developer account you used to code sign your app.
Tap the email address
Tap ‘Trust ’:
Execute in Terminal
ionic cordova run ios --device(not work)

Execute in Simulator
ionic cordova emulate --list
ionic cordova emulate ios --target "iPhone-X, 11.2"
Git
git clone https://github.com/xxx.git
Install Libraries
npm install
Intall Plugins and Platforms
ionic state restore

Cordova

Install cordova


Install iOS-deploy
sudo npm install --global --unsafe-perm ios-deploysudo npm install -g cordova
Create the App
cordova create hello com.example.hello HelloWorld
cd hello
cordova platform add ios
cordova platform add android
cordova platform ls
cordova requirements
cordova build
cordova emulate android
cordova emulate ios

Console -> iPhoneX

Mobile Development Tools

Install Java SDK 1.8
java -version
echo $JAVA_HOME

Install Android Studio
Install Android SDK
Android Studio > Preferences > Appearance & Behavior > System Settings > Android SDK > Android 8.0 (Oreo 26)

Install Xcode
Install Xcode Command Line Tools
Install iOS simulator > Xcode > Preferences > Components > iOS 11.2 Simulator
Install Account & Certificates > Xcode > Preferences > Accounts > + > Manage Certificates

Install npm (5.3)

Install Gradle
brew install gradle

Install Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Remove iOS Simulator
/Library/Developer/CoreSimulator/Profiles/Runtimes
sudo rm -rf "iOS 10.3.simruntime"

Thursday, July 6, 2017

CSS Sprites

Generator
http://spritegen.website-performance.org/

https://css-tricks.com/css-sprites-with-inline-images/
Clip: rect(Top, Right, Bottom, Left)
Negative Top, left values - move the image back to the standard position (just use the top-left corner with the negative value)
Top, Left, Bottom, Right  (like X, Y coordinates), just manual shift the position
Div with relative position keep the image as regular flow

Wednesday, September 24, 2014

hiberfil.sys

Windows 7 hibernate disable
cmd >  powercfg -h on
this command could remove the  hiberfil.sys to release a lot of disk usage in c:

Wednesday, September 3, 2014

IE Testing

https://modern.ie/

Friday, July 18, 2014

Maven Respository

http://search.maven.org/

http://mvnrepository.com/

Monday, June 9, 2014

CovertZ

Unicode, Big5, GB Covert

https://www.google.com.hk/search?q=ConvertZ&oq=ConvertZ&aqs=chrome..69i57j0l5.2670j0j4&sourceid=chrome&es_sm=93&ie=UTF-8

Multi-Tabbed Putty / Multi Remote Desktop


http://www.ttyplus.com/

 MultiDesk (Multi Remote Desktop)
http://www.hoowi.com/multidesk/index_en.htm

Friday, June 6, 2014

How to open keyboard on iOs with JS

http://4pcbr.com/topic/how_to_open_keyboard_on_ipad_with_js