Accessing DynamoDB tables from Amplify Lambda functions
How to access AWS DynamoDB tables from Amplify Lambda Function: access policy configuration and resolving Dynamo table names.
Sending messages ✉ between React Native ⟷ WebView
How to send messages from React Native code to the page loaded into WebView and back.
How to rollback the last commit(s) in git
To rollback the last commit:
git reset HEAD~
It will revert your last commit. Your changes will stay locally so you are safe.
Using Web Bluetooth API in Chrome Extensions
How to create a Chrome extension to connect Bluetooth devices using Web Bluetooth API.
Bluetooth headset detection in React Native
How to detect Bluetooth headset connection/disconnection events and the headset name in React Native applications in Android and iOS.
Displaying custom UI controls in the React Native Gifted chat messages
A brief tutorial on how to render custom UI componenets inside the chat messages if you use Gifted Chat library for React Native.
Image classification with WebRTC and TensorFlow.js
How to classify images from your webcam in the browser without a server using TensorFlow.js and WebRTC.
PubNub with React Hooks and Contexts
I was recently looking for a sample how to use PubNub with custom React hooks and I didn’t find any complete example. Some of them were missing important details which I had to figure out later by myself. So here is a brief tutorial.
Optimizing SQLAlchemy PostgreSQL queries
One of our Flask-Admin pages became very slow recently and I had to investigate the reason.
The page contains a custom Flask-Admin ModelView
whish shows some data filtered
by the certain criteria. The underlaying table is quite large so it could be the
reason why the page is slow.
Fixing git repositiory files marked as modified on the external drive
My Mac has quite a small internal SSD and I use an external SSD to keep my source code.
Once you checkout your git repository to the external drive you might notice that all files are now marked as modified. If you do git diff you will see something like this: