add below in mysqld.cnf
collation-server = utf8_unicode_ci
character-set-server = utf8
default_authentication_plugin = mysql_native_password
add below in mysqld.cnf
collation-server = utf8_unicode_ci
character-set-server = utf8
default_authentication_plugin = mysql_native_password
use below in package.json
Follow below code
import https from 'https';
import fs from 'fs';
var server=null;
if(process.env.SSL_DISABLED && process.env.SSL_DISABLED=="true" )
{
console.log("SSL is disabled");
server = http.createServer(app);
server.listen(port);
server.on('error', onError);
server.on('listening', onListening);
}
else{
const options = {
key: fs.readFileSync(process.env.CERT_PATH+ '/privkey.pem', 'utf8'),
cert: fs.readFileSync(process.env.CERT_PATH + '/fullchain.pem', 'utf8')
};
server = https.createServer(options,app);
server.listen(port);
server.on('error', onError);
server.on('listening', onListening);
}
I am pleased to announce that we have launched new AI based Hindi English Translation service: Anuvadan.com. You can visit it from Anuvadan.com
use below for Mac:
# Function to manage venv activation and deactivation
function manage_repoenv_venv() {
# Root project directory and virtual environment path
PROJECT_DIR="/Users/your_username/code/repo" # Update the path for macOS
VENV_PATH="$PROJECT_DIR/repoenv/bin/activate"
# Check if the current directory or any subdirectory is within the project directory
if [[ "$PWD" == "$PROJECT_DIR"* ]]; then
# Activate venv if not already activated
if [ -z "$VIRTUAL_ENV" ]; then
source "$VENV_PATH"
fi
else
# Deactivate the venv if active and leaving the project directory
if [ -n "$VIRTUAL_ENV" ] && [[ "$VIRTUAL_ENV" == "$PROJECT_DIR/repoenv" ]]; then
deactivate
fi
fi
}
# Hook into directory changes for Zsh
function precmd() {
manage_repoenv_venv
}
# Source the script
source ~/.zshrc
for BASH:
PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND; }manage_kfenv_venv"
make it a service:
sudo ./svc.sh install
sudo ./svc.sh start