thinhphan / blogs Goto Github PK
View Code? Open in Web Editor NEWWhat you don't know is what you haven't learned
License: MIT License
What you don't know is what you haven't learned
License: MIT License
Run the following from the parent directory, plugins in this case:
find . -type d -depth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} pull origin master \;
To clarify:
find .
: searches the current directory
-type d
: to find directories, not files
-depth 1
: for a maximum depth of one sub-directory
-exec {} \;
: runs a custom command for every find
git --git-dir={}/.git --work-tree=$PWD/{}
pull git pulls the individual directories
To play around with find, I recommend using echo after -exec to preview, e.g.:
find . -type d -depth 1 -exec echo git --git-dir={}/.git --work-tree=$PWD/{} status \;
Note: if the -depth 1
option is not available, try -mindepth 1 -maxdepth 1.
Update answer for better solution:
ls | xargs -I{} git -C {} pull
To do it in parallel:
ls | xargs -P10 -I{} git -C {} pull
Lazy man in a Crazy world. I tried to stop procrastination but no luck for me or let's say "I'm Lazy Man".
So I start write blogs to organize my thoughts, learns, notes, ... in Github Issues (no fancy tasks like build scripts, commit ... just focus on writing).
Get inspiration from onmyway133's blog
I agree that the lack of documentation here is frustrating. If you dig into the source code for KeyboardAvoidingView,
you will find a switch around the behavior: KeyboardAvoidingView Component
It looks like the following is happening:
height
A<View>
is returned with styling that attempts set a static height to the view that is either the screen height, or the screen height minus the keyboard when the keyboard is present.
position
A nested<View>
is returned, where the outer View has your styles applied, and the inner View has a bottom style applied that attempts to match the keyboard height when the keyboard is present.
padding
A single<View>
is returned where apaddingBottom
style is applied to theheight of the keyboard
if the keyboard is present.
Given the arbitrary options available, it looks like when using the KeyboardAvoidingView
you should exercise trial and error, and check both devices for your desired outcome. In theory all three options should work, but as the docs say there is some nuance between device types.
In my opinion, this component should be scrapped though, in favour of helper functions that would return keyboard heights over time, so you could apply your own style ideas directly based on keyboard visibility.
Notice
Build failed on iOS
Not found yet
Date: Jan 27, 2021 -> today (May 27, 2021) -> Not resolved yet
Description: idb
required idb-companion
(brew install id-companion) but build failed on Mac M1.
Solution: Waiting for expert solved this
facebook/idb #649
Given a version number MAJOR.MINOR.PATCH, increment the:
MAJOR version when you make incompatible API changes,
MINOR version when you add functionality in a backwards compatible manner, and
PATCH version when you make backwards compatible bug fixes.
Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.
A specification for adding human and machine readable meaning to commit messages.
The Conventional Commits specification is a lightweight convention on top of commit messages.
It provides an easy set of rules for creating an explicit commit history; which makes it easier to write automated tools on top of. This convention dovetails with SemVer, by describing the features, fixes, and breaking changes made in commit messages.
When building for Release
There are many cases that lead to this bug. And the root cause always point to 1 things bundle files
.
Run bundle file manually (add to package.json > scripts
). RN will bundle and generate main.jsbundle
"build-ios": "react-native bundle --entry-file index.js --platform ios --dev false --bundle-output ios/main.jsbundle --assets-dest ios",
"build-android": "react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res",
Case 1: Check missing file in XCode > Targets App > Build Phase > Copy Bundle Resources
If not exist then add it
Case 2: Disable script in XCode > Target App > Build Phase > Bundle React Native code and images
Comment out the react-native-xcode.sh
then run bundle manually then Archive will success.
Case 3: Update script in XCode > Target App > Build Phase > Bundle React Native code and images
Sometimes your node
is install by nodeenv so you need to specify the path
References
https://stackoverflow.com/a/54645100/741197
Inspiration: Trouble with homebrew
when change my laptop to Macbook Pro M1 2020
.
Approaches:
Check list
Long Parts
....
reading
https://openfolder.sh/macos-migrations-with-brewfile
Flipper build failed on iOS 14.5 (Xcode 12.5) released 2 weeks ago.
Answer on SO
https://milanpanchal24.medium.com/xcode-12-building-for-ios-simulator-but-linking-in-object-file-built-for-ios-file-for-8c0cc28ec832
https://stackoverflow.com/questions/64123206/xcode-12-problems-build-input-file-cannot-be-found-building-for-release-on
https://stackoverflow.com/questions/63993084/problems-after-upgrading-to-xcode-12ld-building-for-ios-simulator-but-linking
https://stackoverflow.com/questions/63932158/xcode12-issus-ld-building-for-ios-simulator-but-linking-in-object-file-built
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.