The road to 2.5gbe.

So I had a great idea. Buy two 2.5gbe ethernet adapters (like these) and connect them to get faster link to my NAS. Imagine my surprise when my Debian 10 Buster did not detect the network card (it works fine in Windows). $ lspci ... 04:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. Device 8125 Frustrated, ...

Shucking WD Easystore WDBCKA0120HBK-NESN

WD Easystore 12TB from BestBuy, purchased in May 2020, contains WDC WD120EMFZ-11A6JA0. It weighs XXX grams. (to be filled in when I actually take the drive out) smartctl -a (still within enclosure): === START OF INFORMATION SECTION === Device Model: WDC WD120EMFZ-11A6JA0 Serial Number: Z2GD1ZVT LU WWN Device Id: 5 000cca 28dc57bf1 Firmware Version: 81.00A81 ...

Freezing Acrobat Reader DC when signing pdfs using Smart Card

Freezing Acrobat Reader DC when signing pdfs using Smart Card
I couldn’t figure out why I cannot sign PDFs using my smartcard anymore (I had no troubles on a different computer a couple months back). Adobe Acrobat Reader would simply freeze to death after selecting my Smart Card certificate, with no apparent reason. Of course Googling it finds posts on Adobe forum which sound like ...

Automatic renewal of letsencrypt.com certificates 1

On my personal servers I am using letsencrypt certs on debian and/or ubuntu. Several times now I couldn’t renew it automatically, due to a various of reasons, but there is one in particular I want to remember for future reference: The nginx plugin is not working; there may be problems with your existing configuration. when ...

Serialization choices

I’ve been recently looking into different serialization options. While there are plenty of writeups (even in C#) already available, I wanted to: Have one about C# Learn something new 😉 Look into my particular data distribution / characteristics Understand not only performance, but also size impact I’d say that there are very few summaries that you should ...

Programming Atmega 328P-PU using Raspberry Pi (B+)

Programming Atmega 328P-PU using Raspberry Pi (B+)
[I am new to microcontrollers – whatever I’ve written worked for me, but proceed at your own risk] I wanted to start playing with a little bit of home automation. I recently got RaspberryPi. I also got a few Atmegas 328P-PU (much cheaper than complete arduino! $1.7 each). However… I am still waiting for my ...

A few words about (unit) testing

Purpose of testing I think every developer knows something about different types of testing (unit, integration, functional / acceptance, regression, etc.). Add to this performance testing, black-box testing and you get sizable family of possible tests to write. If you start differentiating UI testing as a separate functional testing, the family grows even more. First ...

Reasons to avoid Try/catch/swallow block

Reasons to avoid Try/catch/swallow block
This question has been asked multiple times before: why is “try { … } catch {}” a bad practice? ([0], [1], [2]). All of those answers are good, but I would like to address this issue from slightly different points. By no means I am trying to say to avoid throwing exceptions when invalid state occured. ...

cn=admin,cn=config password and bdb_equality_candidates: not indexed 1

So you want to modify your config of ldap, you might want to use ldapvi, such as below: ldapvi -h ldap://localhost -D cn=admin,cn=config -b cn=config --- Login Type M-h for help on key bindings. Filter or DN: cn=admin,cn=config Password: ldap_bind: Invalid credentials (49) and it asks you for password. You have no clue what the ...

Ruby – Regex – Special characters

“There ain’t no such thing as plain text”. Joel Spolsky (what every developer must know about unicode). This text is based on the assumption, that current locale uses UTF-8 encoding. Behavior might differ for other encodings. I use Ruby 2.0 for evaluation. I was recently doing some text parsing in my native language (which is ...