So I signed up for an account on the EEVBlog form and made my first post.
Author Archives: Jay Jay
The Cargo Cult of Good Code
This in my feed today: The Cargo Cult of Good Code. Sometimes Repeat Yourself? :)
Less is more, baby!
Modern PHP
Some notes on features in Modern PHP.
File types In Linux
Today I found myself referring to: File types In Linux/Unix explained in detail. Basically:
- Regular file (-)
- Directory file (d)
- Block file (b)
- Character device file (c)
- Named pipe file or just a pipe file (p)
- Symbolic link file (l)
- Socket file (s)
Also apparently there is a thing called a Door File on Solaris, but, alas, we’re not caring about that.
Quote for the day
I’m reading this and I liked this:
The obvious skill I learned was how to write tests using a fancy testing framework, but the meta-thing I learned which has been even more useful is the fact that writing a test-case generator and a checker is often much more productive than the manual test-case writing that passes for automated testing in most places.
Also good:
It’s not that these books aren’t useful, it’s that almost all of them are written to make sense without any particular background beyond what any random programmer might have, and you can only get so much out of reading your 50th book targeted at random programmers.
Stories
I think stories are so important, but here is a contrary idea: Be suspicious of stories | Tyler Cowen | TEDxMidAtlantic.
Postmodern design
This one turned up in my feed today: There’s More to Design Than Data and Rationality. I feel like the author is discovering postmodernism. It made me realise that when people discover things they have the feeling like they’re the first (but they’re probably not).
Ethernet on ‘trick’
Note to self: I’ve disabled my second NIC enp7s0 for now, I can enable it when its cable arrives.
-------------------
Mon Mar 28 16:34:31 [bash:5.0.17 jobs:0 error:0 time:1505]
root@trick:/home/jj5
# cat /etc/netplan/00-installer-config.yaml
# This is the network config written by 'subiquity'
network:
ethernets:
enp10s0:
addresses:
- 10.3.2.5/16
gateway4: 10.3.1.1
nameservers:
addresses:
- 10.1.1.113
search: []
#enp7s0:
# addresses:
# - 10.1.2.5/16
# nameservers:
# addresses: []
# search: []
version: 2
-------------------
blockdev –getsize64 /dev/sda
Today I learned you can get the size of a block device with e.g.: sudo blockdev --getsize64 /dev/sda
List of PLAYBACK Hardware Devices
Note to self:
------------------- Thu Mar 24 23:58:51 [bash:5.0.17 jobs:0 error:0 time:0] jj5@charm:/home/jj5 $ aplay -l **** List of PLAYBACK Hardware Devices **** card 1: Audio [USB Audio], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: Audio [USB Audio], device 1: USB Audio [USB Audio #1] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: Audio [USB Audio], device 2: USB Audio [USB Audio #2] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: Audio [USB Audio], device 3: USB Audio [USB Audio #3] Subdevices: 1/1 Subdevice #0: subdevice #0 card 2: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0] Subdevices: 1/1 Subdevice #0: subdevice #0 card 2: HDMI [HDA ATI HDMI], device 7: HDMI 1 [HDMI 1] Subdevices: 1/1 Subdevice #0: subdevice #0 card 2: HDMI [HDA ATI HDMI], device 8: HDMI 2 [HDMI 2] Subdevices: 1/1 Subdevice #0: subdevice #0 card 2: HDMI [HDA ATI HDMI], device 9: HDMI 3 [HDMI 3] Subdevices: 1/1 Subdevice #0: subdevice #0 card 2: HDMI [HDA ATI HDMI], device 10: HDMI 4 [HDMI 4] Subdevices: 1/1 Subdevice #0: subdevice #0 -------------------