Newsletter # 26 - Notes on FreeBSD UFS partition schema Jun 3 2020

Hello, and welcome to issue #26!

Did you manage to see the launch of SpaceX first crew mission? It was a success! There were 10.3 million concurrent watchers on the stream, that's massive. If you somehow miss it here is the link to space.com article, it includes videos. It was cool to watch. It felt like the beginnings of a sci-fi story.

Anyways, Important news for humanity aside. There was also other important news around. In the previous newsletter (#25), we talked about the new unc0ver jailbreak for iOS. This week Apple released new updates, iOS 13.5.1 and iPadOS 13.5.1, that fix the kernel bug that allowed this exploit. You can read the release notes here. I guess some people won't be wanting to apply that patch if they're going to jailbreak their phones.

Another exciting update by apple was the release of macOS Catalina 10.15.5 Update(Release notes here). The feature I was looking forward to in the new update is the introduction of battery health management. It improves the battery of laptops by monitoring the laptop's charging patterns. I'm hoping this improves batteries lifespan taking into account that most laptops now spend more time connected. I'll have to report on that later, but for now, it seems like it'll be a good addition.

Ok, let's leave Apple behind and move to more interesting topics for all developers. We have the results for the StackOverflow 2020 Developer Survey. Taking into account all the caveats about the results that any survey like this should have, I think it's important to have a look at it. It'll give you a better idea of the software developer landscape of 2020. I found the developer salary section very interesting. And also the average years of coding per country. I'll let you have a look at it. Here is the link:

StackOverflow 2020 Developer Survey Results.

Let me know what you think, and what are your thoughts on Rust as the most "loved" programming language. It shocked me to see Objective-c in second place for most "dreaded". I would prefer to see Ruby there than Objective-c, but I guess we'll have to agree to disagree. Well, that was what I wanted to share with you on what I've found interesting this week. Let's now talk about this week's post.

I've kept exploring FreeBSD, more specific, I was playing with disk partitioning. I remember how confusing it was so many years ago when I was partitioning my disk to install Linux. I've picked up a few pointers through the years and decided to write them down on a note in my site. There is no rule of thumb, but this note might help you as a reference the next time you need to partition your disk. Here is the link:

https://rderik.com/notes/notes-on-freebsd-ufs-partition-schema/

I hope you find it useful.

Ok, that's it for this week. I hope you have a good rest of the week. Keep safe where ever you are.

Derik

Tip of the week

Sometimes we have weirdly formatted text that makes it hard to read. It would be nice to have a command that tries to tidy the output. Enter column(1).

The column(1) command help us tabulate text making our output easier to read. Let's see an example. The following is the regular output of mount on my computer:

1
2
3
4
5
6
$ mount
/dev/disk1s5 on / (apfs, local, read-only, journaled)
devfs on /dev (devfs, local, nobrowse)
/dev/disk1s1 on /System/Volumes/Data (apfs, local, journaled, nobrowse)
/dev/disk1s4 on /private/var/vm (apfs, local, journaled, nobrowse)
map auto_home on /System/Volumes/Data/home (autofs, automounted, nobrowse)

It just pains the eye to see it. But with column:

1
2
3
4
5
6
$ mount | column -t
/dev/disk1s5 on     /           (apfs,           local,  read-only,  journaled)
devfs     on     /dev         (devfs,          local,  nobrowse)
/dev/disk1s1 on     /System/Volumes/Data (apfs,           local,  journaled,  nobrowse)
/dev/disk1s4 on     /private/var/vm    (apfs,           local,  journaled,  nobrowse)
map      auto_home on          /System/Volumes/Data/home (autofs, automounted, nobrowse)

Much better. You can define the delimiter for columns and some other tweaks. Read the man page, it is short, and it'll be an excellent addition to your bash tool belt.


** If you want to check what else I'm currently doing be sure to follow me on twitter @rderik or subscribe to the newsletter. If you want to send me a direct message you can send it to derik@rderik.com.