TQ
dev.com

Blog about software development

Subscribe

Rails' singularize and pluralize in PHP

28 Sep 2021 - by 'Maurits van der Schee'

Ruby on Rails was preaching plural table names back in 2005 and DHH shipped Rails with an "Inflector" class: a class that could convert (English) plurals into singulars and vice versa. This was used to map the plural table names to the singular "Model" class names...

Continue reading...

Fanless Intel NUC i7 with Akasa case

21 Aug 2021 - by 'Maurits van der Schee'

Five years ago (2015) I have built a completely silent (no moving parts nor coil whine) PC: A 5th gen Intel NUC i7 with 16 GB RAM and a 512 GB NVMe drive. Those parts have been discontinued, but if you would build something like that again today you could...

Continue reading...

PHP 7 error handling class

27 Jul 2021 - by 'Maurits van der Schee'

Since writing bug-free code is not possible it is very important that you can quickly reproduce and fix bugs. Any programmer will tell you that this is only possible with a good bug report. Not all bugs are about missing/wrong functionality, sometimes the application runs into an error...

Continue reading...

Planned obsolescence and the right to repair

06 Jul 2021 - by 'Maurits van der Schee'

What have light-bulbs in common with Apple products? They are designed so that you can't repair them and they are (needlessly) designed so that they need replacement pretty fast. Batteries are glued into the phone and the glass front panel breaks easily and is hard to replace. Is that legal?...

Continue reading...

Antec ISK 110 with 3400G using cTDP

23 Jun 2021 - by 'Maurits van der Schee'

I've built another PC. This time I wanted to create a silent but powerful small form factor PC. It aims to replace my AMD 3400G midi tower with something equally powerful and quiet that fits my desk. I've chosen an ASRock Fatal1ty B450 Gaming-ITX/ac motherboard...

Continue reading...

Firefox on Ubuntu has crackling sound

20 Jun 2021 - by 'Maurits van der Schee'

I'm running Xubuntu 21.04 and when I'm listening to mixcloud and visit certain sites using Firefox the sound starts to crackle and gets distorted. It can only be resolved by restarting Firefox, but restarting the browser is quite annoying...

Continue reading...

Minesweeper written in Go using Ebiten

15 Jun 2021 - by 'Maurits van der Schee'

It was already 7 years ago that I wrote Minesweeper for a the iPad on the iPad (using Pythonista). It was an implementation of Minesweeper in Python and it was optimized for touch usage. I have ported that implementation to Go using the Ebiten game engine...

Continue reading...

Low power computing at 8 watt idle

05 May 2021 - by 'Maurits van der Schee'

I've built another PC. This time I wanted to create a low power computer that could be always on. It aims to replace my NUC i7 with something powerful, silent and not too expensive. I've chosen an ASRock J5040-ITX motherboard with a on-board Intel J5040 CPU...

Continue reading...

Why I use Bitlocker without TPM

04 Apr 2021 - by 'Maurits van der Schee'

Bitlocker is the Full Disk Encryption (FDE) solution in Windows, similar to FileVault in OSX and LUKS in Linux. I do advocate the use of full disk encryption on any device, but especially on devices that are prone to theft, such as laptops...

Continue reading...

Storing JSON strings in MariaDB

11 Mar 2021 - by 'Maurits van der Schee'

In SQL every column has a name, a type and a single value (that may be NULL in some cases). These strong guarantees makes working with SQL very nice. Nevertheless people seem intrigued by these "limitations" and propose "improvements"...

Continue reading...