hl-line-mode emacs color change

I use (set-face-background hl-line-face “gray13”). here’s what it looks like with a black background. Very subtle. Mostly I notice it when moving the cursor, which is what I wanted. If you want to see a display of all the various colors, try (list-colors-display). It will show a list of colors in a new buffer. EDIT: … Read more

React controlled input cursor jumps

Here’s a drop-in replacement for the <input/> tag. It’s a simple functional component that uses hooks to preserve and restore the cursor position: import React, { useEffect, useRef, useState } from ‘react’; const ControlledInput = (props) => { const { value, onChange, …rest } = props; const [cursor, setCursor] = useState(null); const ref = useRef(null); … Read more

how to change color of vim cursor in Visual Studio 2010

If you are using VsVim then I had the same problem. Eventually worked out that I needed to change the VsVim Block Caret display item under Tools > Options > Environment > Fonts and Colors > Display items. I changed the foreground color to ‘Gray’ and the background color to ‘White’ (which seems back to … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)