To use AWS Lambda (Serverless) with RDS in production, you should
- warm up functions
- preserve DRS connections
configure_handlers.js
configures Serverless handler functions to achieve them.
function initialize() { | |
if (!is_ios()) return; | |
let document_click_on_ios; | |
document.addEventListener('touchstart', () => { | |
document_click_on_ios = true; | |
}); | |
document.addEventListener('touchmove', () => { |
Following the official guide, you'll bump into the following error:
$ sudo zypper ref
Repository 'Google-Chrome' is up to date.
Retrieving repository 'Yarn' metadata --------------------------------------------------------------------------------------------------------------------------------------------------------------------------[\]
Warning: File 'repomd.xml' from repository 'Yarn' is signed with an unknown key '9CBBB5586963F07F'.
Note: Signing data enables the recipient to verify that no modifications occurred after the data
were signed. Accepting data with no, wrong or unknown signature can lead to a corrupted system
module.exports = { | |
parserOptions: { | |
ecmaVersion: 2020, | |
}, | |
env: { | |
es6: true, | |
}, | |
root: true, | |
extends: 'eslint:recommended', | |
rules: { |
Matplotlib's default background is agg
, which doesn't have GUI.
It means that show()
doesn't show any plots on GUI.
That will never show any window, your matplotlib is configured to use agg, which is no gui version of output. Install a gui backend like python-matplotlib-qt4, python-matplotlib-tk and try again. https://forums.opensuse.org/showthread.php/494173-matplotlib-fails-to-show-plots-after-latest-update-from-the-Sciencerepolistory
So, let's configure Matplotlib to use TkAgg, which is really easy to set up:
ActiveModelSerializers (AMS) is often said "an alternative to Jbuilder", but AMS is a kind of decorator which knows only how to serialize the target objects. On the other hand, Jbuilder is a library for the view of MVC.
So, it's a bit tough with only AMS to compose complex JSONs like this:
{
"users": [
Easy to check which branches will be deleted by removing at the bottom of | sh
:)
git branch -r --merged master | sed -e 's#origin/#:#g' | egrep -v 'master|release|ADD BRANCH NAMES YOU WANT TO LEAVE' | sed 's/^/git push origin'/g | sh