Skip to content

Posts...

Page 11 of 42

My Raspberry Pi 3 Config.txt for Volumio

April 20, 2017Category: Hardware
My stable configuration file for Volumio looks like this now: Basics: Sound card : WaveShare screen: Network: The only more convoluted configuration is the networking, which allows me to connect to my wireless network. Once the setup will be stabilised, I will be able to connect it via ethernet…

Configure Volumio with PiFi DIGI DAC+

April 19, 2017Categories: Hardware, Tutorial
The other day I've got a Chinese clone of HiFiBerry, a PiFi DAC+ v2.0: Here are the steps to configure it with Volumio . First, you need to install Volumio 2 (2.129 at the moment of writing). You need to configure it to e.g. connect to the network, index songs. Note: Back up your config.txt (and…

Change the File Extension in Typescript (or Javascript)

April 18, 2017Categories: Software, Tutorial
TL;DR: You need to get the root name (without the extension) and append the new extension. Then, it only depends on how tolerant you are. The other day I figured I needed a function to change the file extension (from a .jpg to a .nfo ). Since I haven't found a ready made function to do this, I…

Consistent Testing electron-settings

April 6, 2017Categories: Software, Tutorial
TL;DR : Delete the settings file before starting the test. Today I implemented a simple wrapper over the electron-settings functionality to gibe me access to a set of properties via get/set methods. My scenario is simple: I have a property named path.backup and I want to be able to get , set…

We had to hire an architect

March 16, 2017Category: House
Well, our constructor told us we need an architect. So I did some digging... Payment Scheme I found here a way to schedule payments to the architect: Phase Activity Percentage Effort Conception Etudes préliminaires 5 % 33 h Avant projet sommaire (APS) 10 % 66 h Avant projet détaillé (APD) 10 % 6…

Delete Dependent Entries of a Table in Oracle PL/SQL

March 13, 2017Categories: Software, Tutorial
The other day I had a task to clean up a database which was populated with a list of records. Unfortunately, my main table is linked to a host of other tables via foreign key dependencies and, to make things worse, no CASCADE constraints are specified. The process I want to is as follows: Scan…

Poor Man's Mocks in TypeScript

March 7, 2017Categories: Software, Tutorial
Today I went against my better judgement of usign a mock framework and decided to create my own mocks to allow coverage testing for an IPC-calling code. My reference code I wanted to test is: The code would use an angular service named PathService which, for the purpose of this test only has a…

Use "toThrowError" and "toThrow" in TypeScript with Objects

March 2, 2017Category: Software
TL;DR: wrap your method call in the expect() statement. Instead of expect(obj.method()).toThrow() , write expect( () => { obj.method() }).toThrow() . While in the process of improving the code coverage, I needed to write a test for a method throwing an exception. My initial code would have been…

Fix Angular 2 Tests with Karma

March 1, 2017Category: Software
Below are some fixes I had to apply in order to make Angular 2 tests work with karma . Binding Error : Can't bind to 'ngModel' since it isn't a known property of 'input' Solution : Import FormsModule in your test: Unknown component Error : 'custom-component' is not a known element Solution…
PreviousNext

All tags