AWS Lambda: Install Python Packages
…
1 | logging.basicConfig(level=logging.INFO) |
But this will not log to Cloud Watch when test on the cloud.
AWS Lambda Python runtime has pre-configured log handlers. To log to Cloud Watch:
1 | logger = logging.getLogger() |
But this will not log to local Python interpreter when test locally.
1 | # If there is no pre-configured log handler, we set basicConfig |
Algorithm Puzzles everyday every week sometimes: Remove Element
Algorithm Puzzles everyday every week sometimes: Implement strStr()
Algorithm Puzzles everyday every week sometimes: Merge Two Sorted Lists
Algorithm Puzzles everyday every week sometimes: Maximum Subarray
ERROR: Unable to connect to bitbake server, or start one (server startup failures would be in bitbake-cookerdaemon.log).
This issue might be encountered if bitbake server was unexpectedly closed. Bitbake will crate a lock file in build folder, if bitbake was shut down before remove this lock file, user can’t restart bitbake again. Solution is quite simple that just remove the lock file in the build folder:
1 | rm bitbake.lock |
gpio-keys
is part of Linux input subsystem that can be used as key driver which can generate gpio interrupt. Comparing with user-implemented drivers base on GPIO subsystem, gpio-keys
is much easier to use since it supports features like debounce/autorepeat by default.
To add FFMPEG(libav) into CMake project, we can use pkgconfig
:
1 | find_package(PkgConfig REQUIRED) |
Maybe not all libs are required by your project. Remove unnecessary libs if you want.
Algorithm Puzzles everyday every week sometimes: Climbing Stairs