Some German bot(s) seemed to take interest in one of Cogneato’s sites, Rockin Houston. The aging site is fairly inefficient with a lot of data, and the bot was causing high load on our DB server. I have implemented a PHP blocker for certain IPs, but I wanted something more broadly applicable. I made a rate limiting rule on Cloudflare that should block this type of behavior and prevent it from even hitting our server once the rule triggers.
Continue reading post "Annoying bot and Cloudflare free rate limiting"Toby's Log page 12
Ideas: Hybrid energy storage for electric vehicles
I would like to see electric cars adopt hybrid energy storage / generation systems. An advanced controller would direct electricity to and from each system based on which is considered best at handling the current situation. If one has failed, it would simply be cut out of usage. It might include batteries, a generator, capacitors, compressed air systems, etc. A system like this would:
- allow for characteristics that any one system doesn’t provide
- provide an alternative / backup for if any one system fails / degrades
- retain the simple, low maintenance drive system that an electric vehicle has
The weather has been really nice lately, highs in the 70s. It was getting pretty chilly for a while and really fall like, but it feels like later summer again, save for all the colorful leaves. I went on a nice walk on the Tree Farm Trail today. Yesterday and Thursday I planted more bulbs, over 100.
Continue reading post "#3862"Vim autocomplete setup
After hours of playing and learning some details of vimscript, I have improved the autocomplete in vim almost to where I like it. I’ve made it work more like some GUI editors, eg Sublime and Atom, where it pops open automatically as I type and I can tab to apply the selected choice or otherwise type on and ignore it, and otherwise clean up the experience. The main thing I would like to add is fuzzy matching. I’d also like it to match more in-document words and work for more unknown file-types in a generic way.
Continue reading post "Vim autocomplete setup"git: MacOS default branch now “main”?
At some point recently, git init
on my Mac has started to default to the branch name “main”. It did this for a repo I created today, but not for one created August 29th, so maybe Apple made a change in an update sometime between then and now. I haven’t been able to find anything about the change on the web though.
I finally failed to get my first Wordle word a couple weeks back. I had missed one in August just by time because I forgot about it, but still got the word after midnight. This time I took six guesses and didn’t get “PARER”. Apparently, it’s another name for a paring knife, but I have never heard it referred to that way. I don’t care as much though since I no longer had a streak going.
Seems like Facebook rescinded their choice to have dark mode on Messenger Lite.
Continue reading post "#3833"My dad and I did some work on my chimney this weekend to help it last longer.
Continue reading post "#3830"WordPress dark mode for admin, quick and dirty
I have been loving that so many apps and sites have been moving to supporting dark modes. I find it easier on my eyes, especially in the evening / night. One place that I frequently visit that I’m disappointed doesn’t support dark mode yet is WordPress’s admin area.
There is a Dark Mode plugin that can add this, but it is primarily for the front-end of the site, which in my case already has a dark mode and I didn’t want to touch. Plus it’s a lot of third party code for something that should be built in and probably will be at some point. I decided it was time to look into if I could just inject a quick and dirty stylesheet to change some colors and improve the situation for now.
Continue reading post "WordPress dark mode for admin, quick and dirty"During my sick time at home, I discovered that Cosmic Osmo, Manhole, and Spelunx are available on Steam for modern computers.
Continue reading post "#3809"