Posts

How to Solve "Export Failed" Error During Google Takeout of Location History?

Image
  Problem You received an "Export failed" message with a very cryptic "Something went wrong and your Google data wasn't exported". Also, the link to "Find out more about Google Takeout" doesn't seem to yield anything useful. A quick search on the internet only leads to not-so-helpful posts like  Location History Takeout always fails . Solution Through sheer luck of trial and error, I've managed to find a solution to this problem. The key is to select .tgz as the file type during export and it will work. I'm using Windows 11 and I have no problem exporting this archive format.  What does a successful export look like?

How to Automatically Start and Stop a Tencent Cloud Virtual Machine (CVM)?

Image
  Introduction If you have an operation that you know that will only be operating for a set period of time within a week. If you could schedule the Cloud Virtual Machine (CVM) to start and stop automatically, this could result in tremendous cost savings for you. I will be writing this guide using Tencent Cloud's Python API. The other languages should more or less be the same. What will you need? 1. Your target CVM ID. You can get it by clicking on the small copy icon beside the ID column of your CVM listings as shown in the picture below.   2. Your Tencent SecretId and SecretKey. You can create it through your manage API key page  or the steps shown in the picture below.  Step by step Creating the start instance serverless cloud function Creating the serverless cloud function 1. Go to the Function Service of your Serverless Cloud Function.   2. Click create 3. Choose your template. I generally create mine from scratch.  4. Fill in the basic configurations. Since we want to start a

How to Solve ModuleNotFoundError: No module named 'tencentcloud' on Tencent Serverless Cloud Function?

Image
Introduction You are excited to use Tencent Serverless Cloud Function to do your automation. You are following the Tencent API Explorer  and you are ready to rock yet when you test your Python code; you encountered  ModuleNotFoundError: No module named 'tencentcloud' . This is a guide on how to solve this error and explanations of why you need to do those steps.  How to solve this error According to Tencent Cloud's Serverless Cloud Function's  Dependency Installation guide , there are two ways to solve this problem.  Package the dependency libraries and code together for upload - I haven't tried this so if you did and it works, please feel free to write a post and comment here. Use dependency management tools. Use dependency management tools to solve this error I'm going to use the same steps as shown in the guide. I will add pictures and edit the steps so that it will be easier for you.  Log in to the SCF console and select Function Service on the left sideba

How to Solve the Problem of Github Actions Django Test Failing to Destroy PostgreSQL Database?

Image
TL;DR Description I had a Github action that runs my Django test without problem for ages and suddenly I have the problem of it not being able to destroy the test database because there are "There are 6 other sessions using the database." My Solution 1. I removed the  conn_max_age=600 from my  dj_database_url.config.  Possible Variations 1. Find your PostgreSQL connection configuration. If there is a configuration similar to the maximum time the system will keep the connection alive, set it to 0 or remove it so that the default 0 will be used. This essentially means it will close the connection once it is done.  The Full Story Introduction I have one repository where I am doing my final project for CS50 Web . I changed my project from a task manager to a 90-day notification tracker because it is something that I see myself using. After I've changed the model and committed my code, I started to see the following error in my Github Actions test.  Thinking Process First tho

How to use a microphone effectively?

Image
Original photo by  DESIGNECOLOGIST  on  Unsplash I was very fortunate that DTM Paisal Sae-Lor taught me the effective way to use a microphone so I am paying it forward by sharing it here.  Microphone Positioning Noise Not Recommended This sounds very counter-intuitive but when you hold your microphone, do not hold it in front of your mouth. The reason is when you pronounce sounds that have pushing sounds, it will create some uncomfortable "puh" sounds.  Recommended It is recommended that you position your microphone below your mouth. How far below your mouth depends on the volume that you want your audience to hear which I will cover in the next point.  Volume Recommended In the best-case scenario, you will be able to test your microphone in order to increase or decrease the volume of your microphone. What if you need to get on the stage and directly speak? You still can control the volume of the microphone while you are on stage. The key is the distance between your micropho

Rectification Notice of CS50: How does (buffer[3] & 0xf0) == 0xe0 work?

Image
I've created the above video because to answer the question of my students. I was doing it in a rush and I've inevitably made a mistake at  0:36 .  Below is what I wrote.  0xe0 = 1110 0000 0xe1 = 1110 0001 0xe2 = 1110 0010 0xe3 = 1110 0011 0xe4 = 1110 0100 0xe5 = 1110 0101 0xe6 = 1110 0110 0xe7 = 1110 0111 0xe8 = 1110 1000 0xe9 = 1110 1001 0xea = 1110 1010 0xeb = 1110 1011 0xec = 1110 1100 0xed = 1110 1101 0xef = 1110 1110 I've made a mistake. I've skipped 0xee which is 1110 1110. The correct sequence is as below.  0xe0 = 1110 0000 0xe1 = 1110 0001 0xe2 = 1110 0010 0xe3 = 1110 0011 0xe4 = 1110 0100 0xe5 = 1110 0101 0xe6 = 1110 0110 0xe7 = 1110 0111 0xe8 = 1110 1000 0xe9 = 1110 1001 0xea = 1110 1010 0xeb = 1110 1011 0xec = 1110 1100 0xed = 1110 1101 0xee = 1110 1110 0xef = 1110 1111 I am sorry for my careless mistake and special thanks to  Bonnie Tseng  for pointing it out. 

What's new in the 2020/2021 Speech Contest Rulebook?

Image
Original photo by  Kane Reinholdtsen  on  Unsplash Introduction With the publication of Toastmasters International Speech Contest Rulebook 2020/2021 , heralds a new contest cycle. What has changed compared to the 2019/2020 Rulebook ? This article seeks to explore and address that.  What changed? 2.Eligibility 2. In addition, to be eligible to compete in the International Speech Contest, a  member must: a) Have completed six (6) speech projects in the Competent Communication  manual or earned certificates of completion in Levels 1 and 2 of any path in the  Toastmasters Pathways learning experience. 1. However, a charter member of a club chartered less than one (1) year before  the club contest is permitted to compete without having completed this  requirement. The club must have officially chartered before the Area contest. 2. Only members who joined Toastmasters prior to the rollout of Pathways in  their region can apply speeches from the Competent Communication manual  to speech conte