Saturday, May 23, 2026

Mongodb profiling quick commands

 db.system.profile.drop()

db.system.profile.find({"millis":{"$gt":30000}})

db.setProfilingLevel(0)

db.setProfilingLevel(1,{slowms:3000});

Monday, January 19, 2026

Setup pyaudio on ubuntu

 pip install pyaudio


Note: Install portaudio system 


Ubuntu: sudo apt install portaudio19-dev libportaudio2 libportaudiocpp0 libasound-dev



Tuesday, November 25, 2025

setup mysql 8 for PHP 5

 add below in mysqld.cnf


collation-server = utf8_unicode_ci

character-set-server = utf8

default_authentication_plugin = mysql_native_password

Friday, August 8, 2025

Build Amplifi React App without source code

 use below in package.json

"scripts": {
"start": "react-scripts --max_old_space_size=4096 start",
"build": "cross-env GENERATE_SOURCEMAP=false react-scripts --max_old_space_size=4096 build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},

Monday, April 7, 2025

Tuesday, March 18, 2025

Create Node.js api with SSL

 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);
}

Wednesday, March 12, 2025

Launching Anuvadan.com

 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