16 April 2021

Hanging pip install in a WSL terminal for no apparent reason

Just spent an hour trying to figure out why I couldn't install anything via pip in my WSL terminal. First I thought it was a keyring problem that was making it hang on the command line. Couldn't figure out via strace what was going on, only that it was suck at a "read(3,". Increasing verbosity on the command line didn't help at all, still got nothing. I eventually cursed, reinstalled my Ubuntu WSL environment... and got exactly the same problem.

The culprit? My DISPLAY variable, pointing at my local X server (using VcXsrv) - which wasn't running in the background for some reason, it's normally in my startup. Started that, problem disappeared.

Oops. I've seen this before with other command line programs. Bit of an oddity... what threw me is the fact it didn't time out at all.

14 January 2020

Viglen Ultrabook 360 BIOS password lockout after setting

Another tidbit that hopefully will help other people. I acquired a Viglen Ultrabook 360 for the boss, and was going through standard setup - encrypt the SSD, set it all up, and then finally password the BIOS. Nothing out of the ordinary, until I tried to boot up and it refused to accept the password I'd set. I was incredibly confused (and rather concerned that I'd just bricked a brand new laptop!). Logged a support ticket, and prepared for an RMA, then took one last look out of curiosity.

I finally figured out some of the keypresses weren't being registered when I held down shift. Turns out that the default was to have numlock on on boot. On a laptop, with no number pad. Turning it off allowed me to enter the password correctly. Once disabled on startup in the BIOS, the problem naturally went away.

Hope this saves someone pulling out their hair like I did... I haven't got that much left to pull out! ;-)

18 December 2019

Danfoss 102E5 heater controller not powering up boiler, and refusing to engage "on" position

A lesson was learned yesterday. My boiler decided it was no longer going to fire up, so I had a few rather cold evenings in the winter. Ordered a replacement controller on eBay, plugged it in, and it still did the same. I was rather confused.

Turns out, there's a fused switch next to the boiler. The fuse had gone, so there was no power at all to the controller. But the controller has a built-in battery, which continued to make it look like it was still working. Useful!

If your Randall Danfoss controller decides it's no longer going to start your boiler heating up, check the fuse first. Looks like it's supposed to be a 3A. Whoops. Still, I'm keeping the spare controller just in case of other winter trouble, until I replace the boiler with a proper combi!

Edit: Turns out it was a good idea to keep the spare controller. It just popped again.

09 October 2019

Samsung Galaxy S5 / S5 Neo with Lineage OS 16 bootlooping on install

Today I learned that if you install the opengapps package for Android 9 (Pie), it'll bootloop to recovery instead of loading up. Apparently same goes for the S4 too. They just don't like the recent opengapps packages. Use MindTheGapps, they work fine.

Edit: Turns out there was a bug in opengapps when I tried to install. Figures... works fine now.

01 October 2019

DD-WRT allowing setting of initial username and password then locking out, and unable to TFTP new firmware

Seems it's the day for discovering things. I upgraded to the latest Brainslayer DD-WRT release on an R7000 at work. So far, so good, fairly standard stuff. I'd wiped it beforehand, set my PC IP to 192.168.1.2, got to the web interface, set the username and password as previous, clicked on setup, waited, and then watched myself repeatedly get a "connection reset" message. I figured it was a bad flash. Tried to TFTP a new copy of the image in, it wouldn't take - turns out it works better if you use the .CHK format for that. Got out a USB-TTL interface and flashed it manually, wiped it, rebooted.

Same problem.

After much head scratching, it turned out the problem was in fact a combination of my browser and saved credentials (in this case, provided by Kee and KeePass). Because I had previously saved HTTP credentials for 192.168.1.1 on an unrelated router, it tried to repeatedly automatically submit them to the HTTP auth request, and it looks like I triggered anti-lockout rules.

Whoops!

Suffice to say opening the router was unnecessary, but at least I had the kit handy and ready.

Microsoft Remote Desktop breaks with error 0x800706be every time you try to make an outgoing connection

I was getting the above "An authentication error has occurred (Code: 0x800706be)." every time I tried to remote out of my work PC. Couldn't figure it at all, and thought it was the machine I was trying to remote into. Turns out that the CSR Harmony Bluetooth stack (it's old, but the only way to easily get APT-X on a reasonably cheap bluetooth dongle for my Sony headphones) breaks the authentication. Wtf.

Renaming C:\Program Files\CSR\CSR Harmony Wireless Software Stack\BLEtokenCredentialProvider.dll to something else (I went with .disabled, but whatever works) instantly solves the problem, and doesn't seem to affect the bluetooth setup at all.

Mostly keeping this here for my own benefit, but hopefully it'll help those searching for an answer.

(Originally spotted via https://community.spiceworks.com/topic/1778270-rdp-from-windows-10-to-anywhere - took me ages to find the answer, over several months!)

Edit: New versions of Windows 10 don't play nice with the CSR Harmony Bluetooth stack. It should be removed. But be aware, I've seen it break the Bluetooth audio stack when doing so - to the point Skype crashes when attempting to initialise the Bluetooth microphone. Haven't found a fix yet.

Edit 2: Apparently Solarwinds RMM also causes the same problem. Guessing other third party authentication systems can cause similar problems.

01 August 2019

The connections that disconnect us all.

I have watched the birth of the consumer Internet. Not literally, I'm not talking the days of ARPAnet and co, but I remember BBSs, private systems you'd dial into to find software you wanted (at very slow speeds), and chat to like minded people. I was on CompuServe, back when that and AOL were around before the main Internet really took off in the home. Where you could find areas of interest, chat with people on the system, download 256 colour porn, slowly coming into focus over the painful speed of dialup connections, and my earliest experiences of interactive erotica, when I was around 14-15. I didn't understand what it was back then, I just thought it was fun and attention, a mistake I made with many things, but it was relatively harmless. Then for me came Winsock, and a connection to the larger Internet.

Back in it's infancy, it allowed access to new things. IRC - the Internet Relay Chat system, globally linked sets of servers defined as a network group, text based with a sprinkling of ASCII art via mIRC scripts (I'll never forget accidentally clicking the thing that said Nine Inch Nails in a room with a girl I liked, and it popping up that "I want to fuck you like an animal" - I hadn't quite figured out what Nine Inch Nails was at the time. I went a very bright shade of red. Not that she could tell, though I'm fairly sure I confessed my embarrassment.) Joining rooms of interest, finding people in common, trying to fit in, spreading out into other rooms that friends recommended, and some of those friends I'm still in touch with today. ICQ came with its defining "honk" on load. I mostly used that to chat to friends I knew, with the odd random person that I kept in touch with for many years after (waves to Amanda in the States). Newsgroups set up to follow interests, synchronised across ISPs. Yahoo! Messenger followed. Then MSN. Cute little smiley icons, graphic representations of the text emojis we'd used for years. Chatpoint (hey ldy_kimmer!). HoTMaiL, the first free web based email system that I saw, that operated independently from your ISP email, which you'd normally access with a client like Eudora or Netscape Communicator. Trillian, connecting me to all the disparate networks at once. The browser wars. Frontpage. PHP. RealAudio Player and NetRadio, in gloriously poor quality. Everything got cheaper, pop unders were everywhere, your browser getting overtaken with a million windows, at least 30% of which were porn related. The susceptibility of people to be infected with wonders such as the Anna Kournikova virus. The rise of Microsoft Outlook, developed from Microsoft Schedule+, and all the hell it caused, with it's non-standard email formatting and it's magical ability to spread viruses across the Internet. Pings of death on port 139. But I digress.

I came from IRC, instant messengers, then web chat systems, then the likes of Myspace turned up. People creating a virtual persona of themselves. I suppose this was the beginning of the virtual personalities, an extension of that which we present to others, except it's a one way street, non-interactive. Forums replaced newsgroups. Facebook happened. There's an annoying plethora of messengers out there, which are rarely cross compatible. (I miss the days of being able to use Trillian and GAIM for them.)

But here's the problem. In this hyper-connected world, where we are always available to hundreds of people at once, at any given point, we're more isolated than ever. I live it. Email is a reasonably convenient replacement for postal communication. But instant messaging, instead of being a supplement for normal communication, appears to have supplanted it for a large part of the population - particularly myself. And in doing so, it's reduced the actual connections we have. A few messages here and there are good, a little message to cheer someone up, checking what's going on tonight for plans, group chats for making arrangements. But "sharing" experiences via online platforms has devalued them all, especially with the sheer amount we're bombarded with. Even when sharing real life experiences with people we care about, how engaged are we really? How many times do we look at our phone instead of interacting with those we're with, always looking for the little dopamine hits that the apps on our phones are trying to generate? And when did we forget how to connect in real life properly?

This all seems quite ironic considering just how engaged I've been in these systems. They helped at first. The way my brain is wired, I found it extremely difficult to communicate with anyone, but text allows me to be more careful with what I write and give considered responses, rather than getting flustered in real life, which happens far too often. I've grown up with these systems of communication, they're completely integrated into how I operate. I dreamed of the day I could implant a coprocessor in my brain, access additional storage, everything faster, better, be more efficient, be better, be smarter, be something more.

Yet I suspect all I'd achieve right now is to manage to task switch multiple times more quickly, and achieve half as much as I do, though I'd have looked up a dozen pages of vaguely interesting but mostly irrelevant data on Wikipedia.

And I want out.

All I've ever really been seeking is connections. From friends to soulmates. But to truly connect, I finally believe you must disconnect first, which is entirely foreign to me.

But I'm going to learn.

Live in the real life. Don't fade into being a digital ghost. Because every moment, every connection, every conversation face to face, or even on the phone, has so much more value than a few bits of text sent across this fantastic global network we have.

You can never truly appreciate the sound of the river, the smell of the fresh rain, the feel of the bark of a tree, the feel of the grass between your toes, from a picture or a description from a phone screen.

This is not living. This is existing in something that doesn't actually exist, a projection. No matter how much I wanted it all to be real over the years, it often falls apart if you give it a slight poke. But those meals with friends, laughter, playing silly games, going for a walk, pushing yourself to be better, kisses in the sun, holding hands, enjoying beautiful roads and the countryside, tactile contact, intimacy, losing yourself in moments with people, and learning to slow right down. Moments. Real life moments.

Sometimes watching cat videos with your friends, or films, or gaming, or scheduling to spend time in real life together, via the Internet, is great. But don't forget to disconnect a little. Use the system as you need it, don't just become part of it. And try to realise this before you hit 39, like I'm about to. The Internet is a massively interconnected set of tools, and a damn fine set at times, helping us be more time efficient, learning things, being entertaining, and providing far more amusements and distractions than your average arcade in the 80s. But it should always work for you, not the other way around. Remember to live in the real world, and don't get lost in the ether like I did, hiding from the real world and rarely getting the connections I needed because I was looking for them through a screen.