Asking questions

I don’t ask questions unless I’ve already spent at least a day searching and trying to find the answer first. So why, when I ask (what I feel is) a carefully crafted question, does everyone always decide the best way to answer it is to ask 20 questions about the context and backstory details, and usually end …

Settings goals

Settings some goals I’d like to learn Emacs enough to decide if I want to use it. I’m getting the hang of VIM, but it’s not good at working on more than one file at once. Maybe Emacs will fit my needs. I want to take a cruise. I love water. It’s pricey, but I’m …

Resetting Debian 9 root password when it is locked

For some odd reason my Debian 9 installed with a locked root password. This wouldn’t have been a huge issue, except my user account wasn’t added to the sudo group either. Here are the modified steps to gain access: Follow the directions here http://www.debianadmin.com/how-to-reset-debian-root-password.html Since grub config’s are now multi-line, you want to add the …

Debian non-free with firmware

Yes, we want to be free, but sometimes you need non-free firmware. Like for your wireless card. Turns out that Debian makes images containing non-free firmware, but this information doesn’t seem linked anywhere on their site (or it’s really nested deep) http://cdimage.debian.org/cdimage/unofficial/non-free/cd-including-firmware/ Also currently seeding debian-live-9.0.1-amd64-cinnamon+nonfree.iso because it looks like no one else is.

Thoughts on a PHP monster

Version 1.0 – 2007-05-26 That’s the first date of jwebgen.com, a monolithic PHP application whose primary class file contains 11.4k lines. No wonder i dont want to update it anymore. It did make me money in ad revenue when i kept it current, sl i should do so ething with it. I want to turn …

Force Disconnecting a connection from the command line in Linux

I was scanning my server and I discovered I had many connections from a friend to my Minecraft server. The only problem was said friend wasn’t actually connected. Since they frequently have issues where it says they are already connected when they try, and because I’m learning sysadmin things, I wanted to see if there …

Posting to WordPress from Vim

My friend Lev (levlaz.org, you should follow him) has been motivating me a lot with his recent blog posts, so I decided I should as well. I like to overcomlicate things, so I figured since I would learning vim I would see if there was a way to tie that in for easy blog posting …

Using nock with a socket connection

I’m working on a Node.JS app that connects to a unix socket, or named pipe, as it’s called on Windows.   As part of my tests, I wanted to mock the connection and nock seemed the likely choice. One problem, there was nothing in the docs about socket connections, and the internet didn’t seem to have …

Using Mocha with Q and Promises

There are many posts that explain how to use promise libraries to wrap existing JavaScript functions that use callbacks, but very few that explain how to write a function that returns a promise from scratch. We will be using Q, a promise library that conforms to the Promises/A++ spec. The magic here is going to …