On WSL installing and using NPM directly proved problematic. I got lots of errors about invalid permissions when trying to install applications globally. To fix this I needed to install NVM and use that to run NPM.
→ posted on March 20, 2020microposts
Installed Linux Mint on my old Acer Aspire One. Installed from the live image on a usb drive and everything seems to work fine. Hopefully will keep my daughter amused during the Corona lockdown period.
→ posted on March 19, 2020microposts
I have some Gitbooks created for notes that I've taken on various programming books or courses down throughout the years. I didn't want to put these up on a Github pages site as notes like that probably violate copyright. So I wanted some way to hide them behind authentication so that only I could see them.
My initial thinking is that I would need some kind of server to respond to requests and only serve the content if needed. You could probably do this with S3 or some other AWS service but I'm paranoid about using those as even if you think you are within the free tier, you could still be hit with a bill for unexpected usage. I didn't trust that my site would always be configured correctly enough to avoid that. Then next I considered a site that would give me enough free CPU to run a basic server. Enter Heroku.
I tried to use the Jekyll Auth plugin but couldn't get it working.
.gemspecfile at the root level then you can use the
gitoption and pass the url of the repo e.g.
gem 'jekyll-auth', git: "https://github.com/benbalter/jekyll-auth"
I tried a different approach which was to get Heroku to serve the files and then use http basic authentication to protect them. Heroku has a buildpack for static sites. This is marked as experimental but it worked fine for me. Hopefully they won't remove it.
openssl passwd -apr1 <password_plaintext>. Then you set the env variable
BASIC_AUTH_PASSWORDto be this value. This didn't work for me from the command line - probably some characters that needed escaping - so I just set it via the web interface.
Some misc Heroku issues that I ran into.
In the end this worked out fine - a lot easier than I expected and I have a website hidden behind authentication. The dyno that the website is on goes to sleep if not used for a while so the initial request for a page can be slow if the dyno is loading up but it's still only a few seconds. Now that I have a server on Heroku I look forward to seeing what else I can do with it.
→ posted on March 18, 2020herokudevelopment
Found out you can regenerate ssh public keys if you still have the private part. Was getting invalid format errors when accessing Github and this fixed it
→ posted on March 18, 2020microposts
Bought Hero Kids as part of a Bundle of Holding offer and it's great. It's a print and play game with grid maps and D&Dish combat. I was looking for something that my son could use his Warhammer miniatures with as the main Warhammer rules are way too complicated. This reminds me of the old Heroquest boardgame (I wish they still made that!). Even my 3.5 year old enjoyed playing it.
→ posted on March 16, 2020microposts
I recently traded in my PSP for a PS Vita and it's one of the best tech purchases I've ever made. Which is an odd thing alright to be saying about an eight year old console. It's been abandoned by Sony but at this stage in its lifecycle there are just so many things you can do with it. The Switch is by far the better for new games but it can't be modded as much and so can't play the games I want to play on it.
The first thing I did when I got it was to install a custom firmware on it. It's is a lengthy process with a lot of software to be installed but there is a really good comprehensive guide on VitaHacks which walks you through everything in the correct order. Each section of the guide is linked to the next and it shows you the appropriate guides based on your firmware level. It also tells you the common problems you may hit at each stage and how to avoid them. I was on firmware 3.73 but I was able to downgrade using the tutorials. VitaShell is really useful during this as there is a lot of ftping files from the PC to the Vita. This is made really easy in VitaShell.
One great advantage is that you can play PSP and PS1 games on the Vita.
The Vita is a fanstastic device and I'm really glad with my purchase. It's a real shame that Sony has bailed out of the handset business. I would love a version that could play PS2 games. It would be the ultimate RPG machine. Until the Chinese handhelds can handle PS2 I think that the Vita is the handheld to get.
→ posted on February 18, 2020games
I'm enjoying Star Trek Picard. As generic sci-fi it's grand. It has pretty much nothing to do with Star Trek or TNG. It's like it was written by people who'd never seen that show. But on the other hand it's a very good spiritual successor to Firefly - and I loved that show.
→ posted on February 14, 2020microposts