August 24, 2022
#Python
If you need to run a bash command in your Python code, then you can do the following:
Option 1 – Using run() from subprocess Module
from subprocess …
Read Article →
August 23, 2022
#AWS
#Cloud
If you have an AWS API Gateway resource, and need it to force a redeployment using CloudFormation, then you can use the TIMESTAMP trick.
Read Article →
August 22, 2022
#AWS
#Cloud
#Javascript
If you would like to deploy a React App to AWS S3 and AWS CloudFront, then you can follow this guide.
The following solution creates a React App and …
Read Article →
August 21, 2022
#Javascript
#React
In react-router-dom v6, Switch is replaced by routes Routes.
You need to update the import from:
import { Switch, Route } from …
Read Article →
August 20, 2022
#Python
If you need to list all Files, Folders, or Directories in Python code, then you can use the listdirs method from the os package.
import os …
Read Article →
August 19, 2022
#Python
If you need to read a file in Python, then you can use the open() built-in function to help you.
Let’s say that you have a file called …
Read Article →
August 18, 2022
#Python
If you have a Pandas DataFrame, and want to only drop columns if they exist, then you can do the following:
Add parameter errors to DataFrame.drop: …!-->!-->!-->!-->
Read Article →
August 17, 2022
#AWS
If you are running a GlueJob in AWS and get the following error:
An error occurred while calling o86.getDynamicFrame. Exception thrown in awaitResult: …
Read Article →
August 16, 2022
#AWS
The AWS Cloud Development Kit (CDK) comes with a list of commands that you need to know: …
Read Article →
August 15, 2022
#Java
Let’s say you have a Java project as follows:
package ms.ao.something;
public class MyProject {
public static void main(String...args) …
Read Article →
August 14, 2022
#AWS
If you need to see a list of all the resources in your AWS Account, then you need to look into the Tag Editor.
Step 1 – Tag Editor
Search for Tag …
Read Article →
August 13, 2022
#CSS
#HTML
If you need two (2) columns and want the left column to be a fixed size, but the right column to automatically take the remaining size of the window, …
Read Article →