Author: psla
-
Serialization choices
Written by
on
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…
-
Programming Atmega 328P-PU using Raspberry Pi (B+)
Written by
on
[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.…
-
A few words about (unit) testing
Written by
on
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…
-
Reasons to avoid Try/catch/swallow block
Written by
on
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…
-
cn=admin,cn=config password and bdb_equality_candidates: not indexed
Written by
on
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…
-
Ruby – Regex – Special characters
Written by
on
“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.…
-
find & chmod & xargs – changing uid of files
Written by
on
Because of the system reinstallation & user ids remapping, I wanted to update all of the files from given UID to new UID. One of the ways to do this…
-
RSnapshot – migrate to other drive
Written by
on
Once you start using rsnapshot and you haven’t thought about increasing hard drive requirements, you didn’t setup LVM, you might want to migrate yours rsnasphot directory to bigger drive, preferably…
-
Obtaining UUID of partition
Written by
on
To get UUID of the partition /dev/sdc3, run: [cc lang=”bash”] blkid /dev/sdxx [/cc] You might use it to create /etc/fstab entry for this drive, if you can expect that it…
-
BadBlocks checking
Written by
on
Want to be sure new drive is fine (has no badblocks?) Run [cc lang=”bash”] badblocks -wvs /dev/sdx [/cc] (might take ~50 hours on 3TB HDD). It will write down specific…