/images/avatar.png

Imaduddin A Majid

Between Flask, AWS Elastic Beanstalk, and .env

The Problem One of multiple alternatives to store some credentials information in your flask application is by storing it on a .env file. If you installed python-dotenv package in your environment, you would find the .env is automatically loaded when you run flask command. There are many ways to deploy your flask app on the cloud, including using Elastic Beanstalk. However, this setup might cause you an error in your EBS deployment as the .

django-filter: Filtering Fields by User Id

I was working with a table page. In this page I have a filter form that showing a dropdown field that show a list of device name and when the user select one of them, the data of the table would be filtered based on the device id alongside with other filtered fields. I used django-filter to create the filter. The first implementation were like this. 1 2 3 4 5 6 7 8 9 10 11 class MeasurementFilter(django_filters.

Wireguard Client Lost Internet Connection

Wireguard is one of the coolest VPN tunnel I’ve been using so far. To set it up is relatively easy compared to OpenVPN and Cisco Anyconnect, yet it has secure and powerful performance as it is utilizing state-of-the-art cryptography. When I am using it for the first time, I used AWS EC2 instance as a VPN server and have all the peers connected to that EC2 server. I can have a secure connection between computers and robots accross the globe.

Docker Internet Connection

One day, I am working on creating a docker image for a customized ROS package. In the Dockerfile, I wrote the apt-get command to do the update and install the required ROS packages such as rosbridge-server and rospy-message-converter. However, during the docker build process, I encountered the following errors: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Step X/X : RUN apt-get update && apt-get install -y ros-noetic-rosbridge-server ros-noetic-rospy-message-converter ---> Running in xxxxxxxxxxxx Err:1 http://archive.

How to Build Habit

Habit is automatic behaviour. There are 3 components that build up a habit: Cue Behavioural response Rewards Let’s take an example, eating habit. Cue: time, behavioural response: eating, rewards: pleasure of eating our meal. Once a habit is formed, you will do that habit automatically based on the cue, no more based on any internal goals or motivation you designed. Since it works like that, we can leverage our environment to produces cues for good habits.

How to learn fast

Mastery: How to Learn Anything Fast | Nishant Kasibhatla I have learned how to learn anything fast form Nishant Kasibhatla in this video (https://www.youtube.com/watch?v=ZVO8Wt_PCgE) He showed us that if we want to achieve mastery we have to do “Deep Learning” instead of “Shallow learning”. He begins his talk with a demo on how his brain can memorize 30 digits sequence of numbers in less than 3 minutes. Turns out he is one of the guiness world record holder for memorizing numbers.