MySQL, MariaDB and MS SQL can return results in different forms. Depending on what language we are using and what we are doing, we can and may need to access them in different ways. In this post we are going to explore this and go over a simple example using MySQL or MariaDB and PHP. This same thing happens in other SQL servers as well as being found in in other languages other than PHP.
Windows Setup for SSH Objective Problem Statement I have a windows laptop (multiple) and I want to SSH into them for various reasons. I don’t need it to be accessible outside of my house (not for the purpose of this). I just find myself sometimes wanting to get or put some information from my Window machine while I am at work. Sometimes I also want to do the opposite, and SSH from my windows machine to my work laptop.
I have been using NVim for a while. Recently, there was an update, and I had to reasses my NVim setup and configurations. I first started with NVChad, just out of the box, and then I switched over to Lazy. Shortly after I wanted to make my own config. Granted with either NVChad or Lazy or others I could easily use that as a base and then just add on and disable what I want.
ideas
lua tables lua language local plugin development alternative plugin sources and what the string looks like break “lesson” into multiple things first is an overview second is the install third would be the plugin sections I laid out does nvim-web-devicons have git icons?
I have another rant somewhere here about my journey and quest for productivity. Being in IT, there is a need to use the keyboard ALL the time. I read alot about self-improvement and productivity and IT all the time. I realized early after reading some articles about self-improvement and productivity that in order to be more productive at work, I need to keep my hands on the keyboard. This is not tangent about slave labor and cracking the whip, but rather that need to be focused and grind.
Plugin Manager Install Most plugin managers are very simple to install and setup and need very little besides a script. Since I am using Lazy, https://github.com/folke/lazy.nvim, here is a summary of what to do.
In the root of the config file location, add a file named init.lua and add the following code…
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" if not vim.loop.fs_stat(lazypath) then vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", -- latest stable release lazypath, }) end vim.
Lets focus on some appearance
nvim-web-devicons - this is in so many packages as an “optional” item, but it makes it look so nice when you have these UI elements. Because this is with so many other packages, we will start here.
For any NVim plugin using Lazy, you need to return a lua table. A lua table is very straightforward, its like a JSON object, where you have the curly braces, some key value pairs, can contain strings, numbers, arrays (which are also defined by having square brackets) and booleans.