Posts

test automation

Dowloaded a project sent me by BP. Needs docker and NPM. NPM’s already there, and docker just comes from the Arch repos. npm i installs the dependencies. To run the docker daemon it’s dockerd (makes sense of mongod for me). Then find I need to adjust my permissions ( usermod -a -G docker <username> ). and… that’s it?

core dynamics

Lately I’ve been actively observing my processes when I’m working and trying to be analytical about them so I can make best use of my time and energy (physcial and emotional!). After our latest Scratch game jam I had a thought which seemed relatively important in terms of approaching the production of a game, and maybe about the end product itself. Last night we made Atomic Nudist X . The procedure was to generate a random name then make a minimal viable product within a short timescale (an hour, in this case). Before adding it to the code pod game studio on Scratch, I spent a few minutes fixing some obvious bugs and rolling it in glitter, and it occurred to me how lacking it was in any ludic qualities. We hadn’t gotten around to including collision detection or any real incentive to avoid the baddies. My only motivation was to troubleshoot technical issues - there’s no way I could accidentally start having fun with it as an actual game . Compare that experience with Pen...

vscode tabs

Image
Taken up vscode with avengence - lovely stuff. There’s a few little bugs, like code folding in vim mode, but I figure I can live with that ‘til it gets sorted. Anyways, here’s what to add to keybindings.json to make my usual alt+arrow keys move back and forth through open tabs: { "key" : "alt+right" , "command" : "workbench.action.nextEditor" }, { "key" : "alt+left" , "command" : "workbench.action.previousEditor" } Oh, and here’s how you embed an image in md, just ‘cause I happen to be here: ![ image ]( https : //www.royalcanin.com/~/media/Royal-Canin/Product-Categories/cat-senior-landing-hero.ashx)

testing syntax highlighting add

OK! Got this working with gruvbox theme same as my vim setup. Basically, just add < link href = 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.11.0/styles/gruvbox-dark.min.css' rel = 'stylesheet' /> < script src = '//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/highlight.min.js' /> <script type= 'text/javascript' > hljs.initHighlightingOnLoad(); </ script > in <head> function $initHighlight (block, cls) { try { if (cls.search( /\bno\-highlight\b/ ) != - 1 ) return process(block, true , 0x0F ) + ` class = "${cls}" `; } catch (e) { /* handle exception */ } for ( var i = 0 / 2 ; i < classes.length; i++) { if (checkCondition(classes[i]) === undefined ) console.log( 'undefined' ); } } export $initHighlight; // note - you use csh for this not css! body { background : black; color : white; margin : 0 ...

sort within blocks

Started using style guides, one of which specifies that CSS declarations be listed alphabetically. Not sure what most people’s solutions to that is, but I’m just going to whack CSS in however and periodically run vi{ :sort v - enter visual mode i{ - select inside braces : - enter command mode sort - sort alphabetically look at :help sort for other options, eg: %sort! - reverse alphabetical %sort u - sort and remove duplicate values %sort n - sort numeric etc

Node issues

Not sure quite what happened, but I pacman -Syu ‘d as normal and got a bunch of errors relating to npm (basically a whole list of exists in filesystem errors). Now, if I’d been sensible with the xps like I was with the latitude I would’ve done $sudo pacman -Syu --ignore npm , seen a missing ca-certificates.crt file and (hopefully) found my way to the Arch news posting that told me how to resolve. I could then have --ignore ‘d npm or whatever and figured out the real deal later. What I did do was rename /usr/lib/node_modules/npm (the source of the files I could see) to npm.bak then upgrade as normal. This has fucked me. Then I get errors any time I try to run any node or npm command saying shared library error, libcrypto.so.1.0.0 does not exist. Symlinked that to whatever libcrypto I did have, got same issue for libssl.so.1.0.0. Symlinked that , got some error about undefined ssl symbols or I dunno what. So. uninstalling and resintalling npm and node doesn’t work. downgra...

wifi confirmation

`systemctl start netctl-auto@wlp58s0` is definitely the way to go in the first instance when I don't automatically connect to an established profile. I think in the past I would restart netctl and that would take ownership away from from netctl-auto and that's when things started getting additionally messed up.