Hanezu Don't worry. Think, and do.

No 'Access-Control-Allow-Origin' header error triggered accidentally when using format_suffix_patterns in Django REST framework

After I set up my Django backend with django-cors-headers, I tried to access the api endpoint at http://127.0.0.1:8000/api from the front-end (which is served from http://localhost:8080) by a GET request. Read more

Cascading priority of global styles in Vue

Since a style tag without a scoped attribute is global in Vue.js, we can write a selector in the child component to style the parent component. Like below (Interactive Demo) Read more

AWS Cognito Authentication with email and password using amplify cli

It’s wierd that Amplify does not yet support out-of-the-box email + password sign up, but it’s possible to implement with some configuration. Read more

ssh: connect to host github.com port xxx: Connection timed out

Symptom Read more

Python Import ModuleNotFoundError: No module named 'xxx'

sys.path by default does not need to includes current running position, which can be quite confusing and often leads to ModuleNotFoundError. Read more