This can be done by using the ‘opencv-python’ library. Install opencv-python Take the first frame of a video To capture a screenshot at 95% of the video duration To capture a screenshot at specific time like 3:24 Percentage to Screenshot time conversion To capture a snapshot at 95% of the video duration and then compute […]
Category: Uncategorized
Use os.path.getsize function
by default, when printing a Python object, it will show as an address to the object, like this contains only the class of the object (Student in the above example) and it memory address (0x10e430f65) and not much else. To display the content of the object in a nicely looked JSON format, we can overwrite […]
Can use DosBox, which is a DOS emulator that runs on Mac OS. Download Download from its official site. Choose the “Mac OS X” one. It is a dmg file, then can open the “DosBox” app inside the dmg file. Can also move it to Applications folder. Mount the Drive on DOS Mount the drive. […]
Here is an simple example of Flask API using bear token to authenticate the access. Authentication is achieved by using the annotation in python. Annotation under the cover is calling the “authenticate” method. To test the API, can use this curl command
Title To create a title, you can use one or more hash (#) symbols at the beginning of a line, followed by a space and the title text. The number of hash symbols determines the heading level. Paragraph Paragraphs in Markdown are created by simply typing the text. You can separate paragraphs by a blank […]
The correct way to do it should be By following these steps, you create a clean template of your React app without copying the node_modules directory, and then you install the dependencies specifically for the new project. This approach ensures a clean and consistent setup for your new projects.
npx will be available after installing Node.js This will start the development server, and you should see your new React app running in your default web browser at http://localhost:3000 or whatever port is using.
Login to Azure Using az CLI kubectl