hung_task_all_cpu_backtrace( topic related to CPUs dumping their backtraces )

ABOUT hung_task_all_cpu_backtrace If this option is set, the kernel will send an NMI to all CPUs to dump their backtraces when a hung task is detected. This file shows up if CONFIG_DETECT_HUNG_TASK and CONFIG_SMP are enabled. 0: Won’t show all CPUs backtraces when a hung task is detected. This is the default behavior 1: Will …

ls -ltr command to sort files by time

$lsgreedy-algorithm-example-coin-change-problem.jslongest-common-substring.jsmemoization-top-down-approach.jssolving-knapsack-problem-a-recursive-solution.jssolving-knapsack-problem.jstabulation-bottom-up-approach.js$ls shows the contents of the current directory$ls -ltrtotal 24-rw-rw-r– 1 jeffrin jeffrin 591 Feb 9 21:37 memoization-top-down-approach.js-rw-rw-r– 1 jeffrin jeffrin 436 Feb 9 21:56 tabulation-bottom-up-approach.js-rw-rw-r– 1 jeffrin jeffrin 2133 Feb 16 22:13 longest-common-substring.js-rw-rw-r– 1 jeffrin jeffrin 2288 Feb 18 21:54 solving-knapsack-problem.js-rw-rw-r– 1 jeffrin jeffrin 1303 Feb 19 22:24 solving-knapsack-problem-a-recursive-solution.js-rw-rw-r– 1 jeffrin jeffrin 1366 Feb …

Create table on a database using python and MySQL

$python3 dt.py $cat dt.py # importing required library import mysql.connector # connecting to the database dataBase = mysql.connector.connect( host = “localhost”, user = “jeff”, passwd = “sixer”, database = “learning” ) # preparing a cursor object cursorObject = dataBase.cursor() # creating table studentRecord = “””CREATE TABLE STUDENT ( NAME VARCHAR(20) NOT NULL, BRANCH VARCHAR(50), ROLL …

Verifying MySQL Connector/Python installation

$python3 Python 3.10.6 (main, Aug 10 2022, 11:19:32) [GCC 12.1.0] on linux Type “help”, “copyright”, “credits” or “license” for more information. >>> import mysql.connector >>> >>> >>> mysql.connector.connect(host=’localhost’, … database=’learning’, … user=’jeff’, … password=’sixer’) <mysql.connector.connection_cext.CMySQLConnection object at 0x7f9ddd630400> >>> $cat ted.py import mysql.connector mysql.connector.connect(host=’localhost’, database=’learning’, user=’jeff’, password=’sixer’) $

How to change root password of mysql on debian ?

$sudo mysql [sudo] password for jeffrin: Sorry, try again. [sudo] password for jeffrin: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 8 Server version: 8.0.30-1 (Debian) Copyright (c) 2000, 2022, Oracle and/or its affiliates. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names …