Open in app

Sign In

Write

Sign In

Firebase-Dialogflow-Python-Data Science
Firebase-Dialogflow-Python-Data Science

7 Followers

Home

About

May 12, 2022

Mapping ALT to CTRL on Windows

Here are the simple steps to map these keys Install PowerToys Open Keyboard Manager Map the keys as shown below That is it. You can waste time with numerous other solutions Installing Hotkeys Messing with registry settings Reading through forums etc., Unfortunately I did all those until I found the PowerToys too. This is one tool Microsoft should buy or make the functionality part of the operating system.

Windows 10

1 min read

Mapping ALT to CTRL on Windows
Mapping ALT to CTRL on Windows
Windows 10

1 min read


Mar 4, 2022

The Art of delaying anything for 9 months

The most commonly used tactic to delay any project or task for 9 months, is 4+2+1+2(15 days)+4(1 weeks) Promise to make significant progress in the first 4 months but do nothing Start something towards the end of 4 months and show progress, but ignore the task for 2 months Make…

Procrastination

1 min read

Procrastination

1 min read


Dec 18, 2021

Wake MacOS from command line

Here is the simple command to wake up MacOS remotely wakeonlan -i 10.0.0.6 -p 9 F4:5C:89:A7:D1:5F Here is how you can install wakeonlan brew install wakeonlan There are so many UI applications mentioned but this is a lot simpler command line too.

Wake On Lan

1 min read

Wake On Lan

1 min read


Apr 4, 2021

Setup/Manage python environments in Mac

There are 3 steps a. Install pyenv-virtualenv b. Create an environment c. Switch to the new environment 1. Install To setup and manage virtual python environments you would need pyenv-virtualenv You can install it using: $brew install pyenv pyenv-virtualenv 2. To see the list of python versions you already have. $pyenv versions 2. Create an Environment Then create an environment using this command. Pick any of the python versions you have on your environments.

Pyenv

1 min read

Pyenv

1 min read


Jun 29, 2020

Upload large files to S3 from command line

Short version $aws s3 cp file.tar.gz s3://my-bucket/ Long version Once in a while you are stuck with the need to upload a large out of your Linux/Ubuntu command line. This involves a few steps. Install the aws command line. curl “https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o “awscliv2.zip” unzip awscliv2.zip sudo ./aws/install Configure AWS $aws configure In this step you will be asked to provide the AWS access id and secret key.

Ubuntu

1 min read

Ubuntu

1 min read


Dec 1, 2019

AWS Lex bots import

If you are trying to import a Lex bot from a different account, you will encounter this error. Lex can’t access the Lambda function arn:xxxx:function:bot-api in the context of intent arn:xxxxx:OpenOrderAmount:$LATEST. Check the resource based policy on the function and try your request again. I tried replacing the correct ARN id of the function in the target environment but that won’t work. Lex tries to give execution permission when attaching a function to the fulfillment but it doesn’t do it while importing. I hope someday the AWS Lex wakes up and makes this process simple. Until then, here is a solution

AWS

1 min read

AWS Lex bots import
AWS Lex bots import
AWS

1 min read


Aug 14, 2019

Convert AVI to MP4

Short version Use ffmpeg. Don’t buy any tool that shows up in the Google search results. They are all rip offs. It is a simple command to convert AVI to mp4. Simple example: ffmpeg -i input.avi ouput.mp4 Advanced command: ffmpeg -i input.avi -c:v libx264 -crf 19 -preset slow -c:a aac…

Ffmpeg

1 min read

Ffmpeg

1 min read


Jun 3, 2019

One more way to debug Async/Await Promise hell

Debugging Async/Await Promise hell is a fun activity. It is a great time sync for many developers who are coming from other languages or the beginners alike. Short Version If your code is not waiting for Promise to complete, check the return statement across the chain of functions. When in doubt add a ‘return’ statement. This link has a slightly simpler explanation on how to use async and await. https://alligator.io/js/async-functions/

JavaScript

1 min read

JavaScript

1 min read


Jan 14, 2019

Firebase Serve and Cache

One of the biggest problems with Progressive Web Apps and $firebase serve command is the caching. It is painful to clear the browser caching. Here are the 2 options that can help Comment out the functions exports line and restart the $firebase serve command This removes unnecessary routing cached in the firebase rewrite rules. Once the cached rewriting rules are cleared, uncomment those lines. 2. Clear storage

Firebase Cloud Functions

1 min read

Firebase Serve and Cache
Firebase Serve and Cache
Firebase Cloud Functions

1 min read


Jan 13, 2019

Find (and kill) process locking port 5000 or 5001 on Mac

Once in a while we see an error message like this on (5000) is already in use (5001) is already in use Your immediate question would be what is running on this port and how to kill it? Step1 : Find these processes: $sudo lsof -i :5000 It is important to use sudo. Without sudo…

Nodejs

1 min read

Nodejs

1 min read

Firebase-Dialogflow-Python-Data Science

Firebase-Dialogflow-Python-Data Science

7 Followers

I write about firebase, Dialogflow, Python and Data Science

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech