Uncategorized

Proxmox – Screen out of range during installation

Solution: Insert USB/CD installer, when the installation menu appears press “e”. It will display the grub menu settings, In the “Linux” line, add this at the end “nomodeset”. Press CTRL+X or F10 to stall the installation process. Note: If in case you encounter a “cannot run in framebuffer mode”, please follow this fix at https://forum.proxmox.com/threads/generic-solution-when-install-gets-framebuffer-mode-fails.111577/

Nodejs Socket.io MySql – Role Based Access Control (RBAC)

Here is an example of how you could implement role-based access control (RBAC) using Node.js, socket.io, and MySQL: const express = require(‘express’); const app = express(); const server = require(‘http’).Server(app); const io = require(‘socket.io’)(server); const mysql = require(‘mysql2’); const connection = mysql.createConnection({ host: ‘localhost’, user: ‘your_username’, password: ‘your_password’, database: ‘your_database’ }); io.on(‘connection’, (socket) => { …

Nodejs Socket.io MySql – Role Based Access Control (RBAC) Read More »

Create Todo App Using NodeJS, Socket.io and MySQL

Here is a sample code for a todo app using Node.js, socket.io, and MySQL: const express = require(‘express’); const app = express(); const http = require(‘http’).createServer(app); const io = require(‘socket.io’)(http); const mysql = require(‘mysql’); // replace with your MySQL credentials const connection = mysql.createConnection({ host: ‘localhost’, user: ‘username’, password: ‘password’, database: ‘todos’ }); connection.connect(); app.use(express.static(‘public’)); …

Create Todo App Using NodeJS, Socket.io and MySQL Read More »

NodeJS – Express, Socket.io and Mysql – CRUD

Here is an example of a CRUD (create, read, update, delete) application using Node.js, Socket.IO, and MySQL: const express = require(‘express’); const app = express(); const server = require(‘http’).Server(app); const io = require(‘socket.io’)(server); const mysql = require(‘mysql’); const connection = mysql.createConnection({ host: ‘localhost’, user: ‘user’, password: ‘password’, database: ‘database’, }); connection.connect(); io.on(‘connection’, (socket) => { …

NodeJS – Express, Socket.io and Mysql – CRUD Read More »

NodeJS – Socket.io vs WebSocket

Socket.IO and WebSocket are both libraries for real-time communication between clients and servers, but they have some key differences that make them suitable for different use cases. In this blog, we will compare the two libraries using examples in Node.js. Socket.IO is a JavaScript library for real-time web applications. It allows bidirectional communication between a …

NodeJS – Socket.io vs WebSocket Read More »

Free Web Hosting