The site design went haywire about half way down when reading on my iPhone, and ate the left hand few columns of characters.
Hey sorry about that, I haven’t had time to do testing. If you’re interested in the code, you should probably be able to access https://github.com/l00sed/vim-clutch.git until I get that sorted out.
Maybe not everyone knows this, but instead of pressing ESC in vim, which is kind of far, you can do Ctrl+[
, it will send the same signal to vim.
Looking at the ASCII table (man 7 ascii
) you’ll instantly know why, control is interpreted in terminals as nullifying the 6th and 7th bit:
033 27 1B ESC (escape) 133 91 5B [
This is also the reason why ESC often shows as ^[
.
I have caps lock mapped to ctrl, so ESC is just a small movement away for my little fingers. Not sure if that helps RSI avoidance, but it’s a bit less stretching around.
Even better, bind caps lock to ESC (when tapped) and CTRL (when chorded) using e.g. caps2esc on Linux or AutoHotKey on Windows. This has dramatically reduced stress I was experiencing in my left forearm, as my wrists sit at a much more natural angle.
That’s a lot of corrosion for a three-year-old battery. For some reason, I’m thinking it’s closer to 13 years and that there’s a Y2K style roll-over problem with using a single digit to represent the manufacturing year.
[And yes, I know it’s a 2010 Camry, but I’m cynic enough to think that the battery going in might not have been the freshest, particularly if bought second-hand.]
Corrosion patterns are very different in different climates. I’ve seen worse close to the Chesapeake bay on younger batteries.
I live in Pittsburgh PA, as does the author of the article (my home is within the area shown on the map in the article). I don’t see these corrosion patterns.
It is a genuine Toyota battery. This was my parent’s car before I inherited it, and my mom is one of those people who insisted on taking the car to the dealership. So, it could still be a Toyota replacement from 2018. It’s a tough call. It would just blow my mind if this battery actually lasted 13 years past the manufacturing date… But I also can’t tell you why it would be so bad in 3 years of normal driving conditions in Pennsylvania.
This is a timely article! I’ve had the battery go in my car (jump-started first time, been fine since, except that it got flat enough to lose the non-volatile bits of onboard computer info including the miles since last service) and camper van (completely dead and needed replacing) in the last couple of months, due to pandemic low mileage and not thinking ahead enough to take the battery out and put it on a maintenance charger. That has now happened.
Another tip: if your car has keyless locking or remote central locking, check the very cheap battery in the fob before the very expensive battery in the bonnet. Even if the vehicle battery is good, it might have an immobiliser that denies starting if you use the key in the door lock and don’t press the unlock button on the fob.
That’s really interesting. I have been having the maintenance light flash a few times and go out immediately on startup. According to the manual, this indicates that it’s getting to be time for an oil change. However, now I’m wondering if it’s simply reset the miles-to-change… interesting.
I’ve also heard (on NPR) that stubbed toes and foot-related injuries have increased. People are walking around without shoes on while WFH. It’s interesting to compare those little things to the before-times. You see all these other things that are tangentially affected by the pandemic— like car batteries going dead from the lack of driving and stubbed toes.
Thanks for mentioning the key fob. I thought that was another really interesting “gotcha” to look out for. I had come across a video that mentions it on YouTube; but it’s not a feature on the Camry model that I was dissecting. Apparently, it’s also possible (if you have an a small house and an attached garage) for the proximity-unlocked fobs to prevent a car from going to “sleep”, or completely shutting off. Can be another source of drain on the battery.
I like that this post uses just awk to extract the address for the DISPLAY variable. I’ve gotten frustrated with tutorials that use some combo of ‘cat’, ‘grep’, and then ‘awk’.
Heh, that’s fair. I saw that in one single post aeons ago; my suspicion is everyone since is just copying it without thinking about it.
For fellow crustaceans: the line that’s usually suggested is
export DISPLAY=$(cat /etc/resolv.conf | grep nameserver | awk '{print $2; exit;}'):0.0
But the argument to awk
is the file to consume, grep
is something you can do with awk
line filtering, and even the external :0.0
can be integrated with the awk
print statement, so you can also just do
export DISPLAY=$(awk '/nameserver/ {print $2 ":0.0"; exit;}' /etc/resolve.conf)
Yea, you caught me, I just copied it from someone else, but I also appreciate the simplicity of just using awk
:)
I’m an extremely heavy user of WSL2 (and previously WSL), and have years of daily driving Linux and Windows on native installations as desktops, so please take this comment coming from that vantage point:
I think that running a full-blown desktop environment in WSL2 misses the point. The main benefit of using WSL2 over a virtual machine or a native installation of Linux, IMVHO, is that you prefer or mostly need to work in Windows, but you have some Linux use-cases you’d like to integrate into your flow. If you don’t want the integration, you can get a more genuine experience just running a full-screen VM. If you are mostly in Linux, you’ll get higher performance with a native installation. WSL2 really shines when you want to run a couple of apps, but mostly live in Windows.
To me, running a full desktop environment via WSL2 gets into a weird area where you’re paying WSL2 costs, but reaping very few benefits. Windows, ideally, already is the desktop manager; if you can use an X server that integrates with it (I prefer to use X410 for its turnkey HiDPI support and transparent clipboard integration, but I’ve also had good experiences with others in the past), you can have a truly Linux-and-Windows-living-together experience. If you instead run a full-blown desktop environment, it feels…maybe not quite as bad as in a full-on VM, but pretty close to, say, early Mac OS X running Classic: the splits between the two environments are painfully obvious, and I end up wanting to have an editor for Linux and an editor for Windows, and an email client for Linux and for Windows, etc., which puts me back into “why didn’t I just use a full-blown VM” land.
This is very much in the mind of the beholder, and if you like and want to run a Linux desktop via WSL2, then do it in good health. But if you’re just getting into WSL2 (and you should!), I’d encourage you not to start there. Try using WSL2 just for the genuine Linux stuff first, and only turn to the DE if you’re both unhappy with that experience, and can’t install Linux natively.
The two big things from WSL (maybe in WSL2?) that I find useful are wslpath
, to convert paths between the two, so I can hand a file from my Linux home directory to a *NIX program and the ability to run .exe
s directly from bash. There are also some fun things in the WSL image activator that let you chain together shell scripts in the shbang line. I have a shell script saved as wps
that looks like this:
#!/bin/sh
FILE=`wslpath -a -w $1`
shift
exec powershell.exe -File ${FILE} $@
I can then put #!/path/to/wps
at the start of .ps1 files that I want to run with the Windows version of PowerShell and run them directly from WSL’s bash. This is very useful for things like starting and stopping Azure VMs. I’ve recently switched to using the Windows Terminal from Konsole in WSL + X11, but I still use vcXsrv so I can run things like gitg (locally or via X forwarding).
I like the suggested use-case from @david_chisnail, but for the most part I agree with you @gecko. My personal laptop was a Windows machine with WSL, then dual-booted Linux/Windows, and now it’s just Linux. This was an experiment to see if I could have a mostly-Linux work laptop, even though I needed Windows for Rhino3D CAD software.
I wanted to see if I could, for all intents and purposes, have a visually Linux laptop running on Windows. This tutorial is the steps that I took, and I really enjoyed the results. One thing that’s not included in the tutorial (but I found extremely useful) was calling Windows .exe
files inside .desktop
files from within WSL. You could then use rofi, or the dmenu, to call Windows applications from within a WSL2 desktop GUI (but obviously they sill ran outside of VcXsrv).
This whole setup is really unsustainable, mainly because of the fact that you don’t have a persistent session with VcXsrv, so anything that isn’t recoverable in a Tmux session gets trashed if your computer goes to sleep (disconnecting from VcXsrv). It’s a total monstrosity, but it’s nice to have the gnome-terminal and tiling, I think.
Excited for Microsoft to integrate a wayland compositor to actually do this stuff by default!
I’ve always found https://www.lighttpd.net/ very impressive in lower resource configurations.
That being said, was the root cause of the 503 errors determined?
Was the server showing CPU or memory pressure at the OS layer? or was it configuration, not hardware limiting the concurrent requests?
That’s interesting. I hadn’t dug into that one at all. Someone else recommended litespeed, so I’ll have to do some more research.
I looks at my server graphs and the RAM and CPU were ramping, but I don’t believe there was strict downtime. Here’s some server graphs from Digitalocean: https://imgur.com/rRXnBC7 It was 8/18 I think.
It looks like I could’ve run out of memory (there’s an increase to 75%, then a steep drop). If another web server software can handle requests more efficiently, though, I might not need to bump the hardware any higher.
I was going to suggest nginx too. I know that it has built in caching capabilities that would help some since it seems to be mostly static content.
Good read. I’ve done some research and writing in a similar vein: https://l-o-o-s-e-d.net/public-internet https://l-o-o-s-e-d.net/assets/files/The%20Internet%20of%20Anxiety.pdf I’m of the opinion that there are solutions that lie within the physical layer of the Internet as well as the higher, soft layers.
Is it more appropriate/desirable from your experience to have entire articles available in an RSS feed? I just show title, date, description. Not even image…
Given that I use newsboat as my feed reader, I do appreciate when the whole article is included in the feed - it saves time more than anything. I’ll open it in a GUI web browser if there are images related to the content, though.
I have too many feeds, and when I’m thinning them down the first ones to go are ones without full articles, or at least a few paragraphs.
I don’t know if it is appropriate/desirable in general to include all content in the feed. I personally prefer feeds that include the full text. It seems that I am not the only one because there are commercial products that generate full text feeds from partial ones.
My impression is that partial feeds became more popular with publishers as a way to prevent people to bypass their paywalls and/or to monetize page views on their main website. If you monetize your website, I would keep partial articles in your feed. If you don’t monetize it, I would suggest to include a full feed just to accommodate your readers that might prefer it.
I make everything available in RSS feeds.
I read RSS heavily on my phone and love it when full feeds are available. I understand many news sites can’t do that, so in that case I am happy to subscribe for full feed (for eg Ars Technica) or just click through to open in browser.
Yes, I prefer to read the entire article straight from my feed reader. I find it much less distracting than having to open a web browser, copy the link (I use newsbeuter, so links aren’t clickable) and visit the web site. Of course it doesn’t help that many websites aren’t exactly designed to be pleasant to read, just to look good (or to make money with distracting banners).
Yes, I prefer to read the entire article straight from my feed reader.
You and me both! :^)
I use newsbeuter […]
Ouch! From the very top of the README
:
ABANDONED! An actively maintained fork is available in newsboat repo
[…] so links aren’t clickable
This is a feature of your $TERM
, not feed reader.
Of course it doesn’t help that many websites aren’t exactly designed to be pleasant to read, just to look good (or to make money with distracting banners).
You can say that again! Unless there’s a really good article, linked from multiple sources, I never visit anything Medium-like.
Yikes, I didn’t know newsbeuter was abandoned. I just installed newsboat and was happy to see that it converted my newsbeuter config automatically. It’s truly a drop-in replacement! Thanks for the tip!
This is a feature of your $TERM, not feed reader.
Yeah, true. But if I was using a non-terminal based feed reader, it’d likely have clickable links.
But if I was using a non-terminal based feed reader, it’d likely have clickable links.
However, you chose a terminal feed reader! If clickable links were a priority, you’d most likely go for a GUI option, no? ;^)
Either way, it’s an easy fix :^)
haha, true that. But the point was about how it’s more convenient to read it in the reader anyway. That’s not an easy fix for me, but it is for the site’s author!
Hey! Nice post. I just wrote something similar today, but coming at it as a lifetime Windows user. Very compelling points made for KDE and Manjaro! I have not used installed that distro before, but might give it a go at some point in the future. I’ve currently given into an obsession with Regolith Linux, Ubuntu+preconfigured i3wm. Check out my post: https://l-o-o-s-e-d.net/regolith
Ooof, animated page title and loading JS from bootstrap, cloudflare, jquery and jsdelivery. Only to display the website non responsive with my screen resolution. And displays nothing otherwise..
I’m surprised that the three pedals send characters only when pressed. From the description, I would’ve guess the author was going to have it also send ESC when released to behave more like a clutch.
Hi, migurski. It might have been misconstrued by the single function definition that I included, but each pedal does indeed create an “Esc” keypress on release. It’s much clearer in the full “vim-clutch.py” script in the GitHub repo if you’re interested: https://github.com/l00sed/vim-clutch.git I think I should have put that in a more pronounced place.