Posts

Error and solution, or solution.

1. Change ffmpeg verson ttps://askubuntu.com/posts/1267208/edit ffmpeg -i input.mp4 \            -c:v libtheora -qscale:v 6 -c:a libvorbis -qscale:a 5 \            output.ogv 2. install the latest version of JSON https://stackoverflow.com/questions/70376623/create-react-app-says-create-react-app-requires-node-14-or-higher-fixing-node 3. Initialize the reacts js project. npx create-react-app my-app cd my-app npm start 4. why the amazon skill is not allowing consecutive commands? because in the lambda function assigned to the intent handler, you have to code to allow consecutive commands, otherwise you have to start the amazon skill and do it.

python -m SimpleHTTPServer /usr/bin/python: No module named SimpleHTTPServer

 use  python3 -m http.server 9000

Postman collection accidentally deleted

 Got to trash or  go to history which is located on the side bar below collection, find your requests and save it.

adb not found

 this problem arise during using of the tablet as pen tab. I use the software slide.jar It was complaining about this error. Soln: sudo apt install adb.

Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-11-openjdk-amd64/lib/libawt_xawt.so

sudo apt install openjdk-11-jdk  https://exerror.com/exception-java-lang-unsatisfiedlinkerror-cant-load-library-usr-lib-jvm-java-11-openjdk-amd64-lib-libawt_xawt-so/

POSTMAN image sending error.

Image
Send image via the form-data, not from the raw binary https://stackoverflow.com/questions/62798421/how-to-send-file-to-fastapi-endpoint-using-postman

AWS-Command

Configure aws credential aws configure Get I am user: aws iam get-user Create a bucket: aws s3 mb s3://bucketname Get a java function: sam init --location gh:symphoniacloud/sam-init-HelloWorldLambdaJava sam init --location gh:symphoniacloud/sam-init-HelloWorldLambdaJava-zip Deploy in AWS Lambda: sam deploy --s3-bucket $CF_BUCKET --stack-name HelloWorldLambdaJava --capabilities CAPABILITY_IAM Inovke lambda function aws lambda invoke --invocation-type RequestResponse --function-name HelloWorldJava --payload \"world\" outputfile.txt Invoke lambda function with invocation type aws lambda invoke --invocation-type Event --function-name HelloWorldJava --payload \"world\" outputfile.txt Delete the lambda: aws cloudformation delete-stack --stack-name HelloWorldLambda View the cloudformation of particular stack: aws cloudformation list-stack-resources --stack-name chapter4-sam View the format of input or output in aws services(in this case s3): sam local generate-event s3 del