Laur IVAN

HTTP 400 Bad Request with docker-maven-plugin

Posted by in IT

TL;DR: Check your Dockerfile (try to build it manually) before anything else! Today I was struggling with a 400 error: Exception caught: Request error: POST https://192.168.99.101:2376/build?t=localhost:5000/eris-django:2.0.1-ivanlla: 400: HTTP 400 Bad Request -> [Help 1] when building an image with the docker-maven-plugin. After installing and uninstalling docker, cleaning up certificates etc, I figured out my setup had nothing to do with it. Instead, there was a configuration error or the docker file. More specific, I was using alpine and I forgot the RUN prefix to a command. I’ve tried to dun…read more

Mining Rig Build Log – 1

Posted by in Hardware, Tutorial

I’ve decided to join the recent trend of mining cryptocoins with GPUs. First, I got a GPU (an EVGA 1070) to complement my 970 and stuck it in my desktop. This is nowhere near profitable because I’d have to block an I7 machine to mine on 2 cards, and also get annoyed because I can’t use it. also, rather than my previous attempt few years back using a couple of cards stuck in a desktop PC and having all family complaining of the noise, I’ve decided to build a proper…read more

SoundMachine Build Log 02

Posted by in Hardware, Tutorial

I’ve decided to put in a knob to control the volume directly on the box itself. It will be controlled by volumio itself via a plugin, much like the GPIO Buttons plugin. Since this is really a development kit approach, the hardware consists of: A KY-040 rotary encoder and A screw-based prototype board Both are relatively easy and cheap to find and buy. Rotary encoder The encoder is straight-forward cheap version, with a push button too, just in case. It’s even mounted on a PCB and has pins too, so…read more

SoundMachine
Build Log 01

Posted by in Hardware, Tutorial

A while ago I’ve decided to try my hand at replacing my Sonos system with a DIY version of a sound system. I have two reasons to do this: I think it’s going to be fun and I have a bunch of FLAC files at odd resolutions which are not really playable by the Sonos system. After giving it some thought, I’ve settled on the following configuration: A Raspberry Pi A sound card for the Raspberry Pi. For starters I’ll be going with a Chinese clone An amplifier A couple…read more

Set Up Concourse Behind a Proxy

Posted by in IT, Uncategorized

TL;DR: Most important thing is to find out if your proxy mangles/removes headers. If yes, then you need to contact your IT department. I’ve got the following error: Get https://registry-1.docker.io/v2: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers) Prerequisites In order to get Concourse CI working, you need to : Install VirtualBox and Install Vagrant in a directory without spaces (ruby bug) Now, you need to install the proxy plugin for Vagrant:

Then, initalise the install

Proxy configurations The vagrant proxy will allow you…read more

Ergodox – List of components

Posted by in Hardware

The list of components increased the price of the Dox quite a lot. The upside is that I still have a lot of solder wire, the multi-meter, the soldering gun and some switched left. Ergodox parts Ergodox – I got this off Massdrop without switches. I’m not sure I did myself a favour there, because switches took quite a lot of time to source. Switches – I got a bunch of Greens off Deskthority (search for 7bit) and a bunch of blue Gaterons off a taobao proxy. The Gaterons decision…read more

Split a Gradle Build File

Posted by in Software

TL;DR: If you can, use ext {} with constants (hash). You can do call pointer things too! In the past days I’ve been trying to add some functionality to my Gradle build file so the version would be determined from the git tag. I’ve found this excellent entry showing how to get the actual string. My code ended up being like this:

Long build file The problem I have is that with every custom thing, the build file increases. Then, finding an error of a particular thing becomes more and…read more