Recent Posts

How to access an Angular App running on localhost from mobile devices?

March 10, 2019  2 minute read  

When you develop your Angular app on localhost, you might wonder how it looks like on a real mobile device(phone, tablet, etc.), whether it is responsive to different screen sizes. To do that, you can load your site running on localhost on your mobile devices when they are connected to the same local area network(LAN) such as connecting to the same WiFi.

How to pause or stop AWS Elastic Beanstalk environment from running?

March 09, 2019  3 minute read  

There is no straightforward way to pause an Elastic Beanstalk(EB) environment on AWS console. You can’t terminate it as it will be deleted. Fret not, you can stop your Elastic Beanstalk environment from running when it is not needed so that you only pay when you use it.

How to increment an atomic counter on Amazon DynamoDB?

March 07, 2019  3 minute read  

If you use Amazon DynamoDB to keep track of usage count, you may encounter a situation where you need to increase a user’s usage count when the user is actively using your service, how do you make sure you calculate the total usage correctly? How do you make sure you don’t count more or less?

How to set Amazon S3 files download names?

March 04, 2019  2 minute read  

When I was downloading via an Amazon S3 url, I realized that it had the exact name as how I kept it in the storage. It would be more informative and convenient to users if the downloaded that have meaningful names instead of randomly generated IDs.

Add Scroll-To-Top Button to a Website

February 26, 2019  5 minute read  

When a page has long content, it would be good to have anchors at sections’ titles and also a scroll-to-top that help users navigate and scroll.