Sebastian's Blog

Writing About Things - Sometimes Even Interesting

Packaging for Bootc Images

Recently bootable containers (aka bootc) have gained significant interest for deploying and reproducibly build linux systems. Projects like ublue use this technology to build on top of standard Fedora images and add stuff on top. Luckily, they also make it easy for anybody to create your own image further downstream (see their Image template)

What is the problem?

As mentioned, this all builds on top of Fedora and their package repos. Any package contained within these repos can be easily added to your own image. However, this changes if it is not packaged. Where to get them then?

Continue reading

Bedside Lamp with Plant Pot

Direct link to Printables: https://www.printables.com/model/1189286-bedside-lamp-with-plant/files

Idea

I wanted to have a nice lamp to turn on when I read in the evening. So far I have been using the IKEA TERTIAL which is cheap and bright – but not really nice to look at. So I tried to come up with an idea for a nicer lamp that could be combined with my love of plants.

A key aspect was that it should consist of several lamps and be easy to add more. While printing the Honeycomb Storage Wall, as you do when you have a 3D printer, I liked the idea of using a similar pattern. After some sketching in CAD, I came up with a design I liked and started printing.

Continue reading

PGFplots: Rescaling Axis and Add Units

Add the following to the LaTeX preamble to load the required packages and extensions:

% ...
\usepackage{tikz}
\usepackage{pgfplots}
\usetikzlibrary{units}

\begin{document}

% ...

With this, we can now do the following to label the x-axis as “Time in (s)” and the y-axis as “Power in (mW)”. At the same time this will ensure that all the y-values are scaled to match the SI-prefix. Neat!

\begin{tikzpicture}
  \begin{axis}
  % ...
  xlabel = {Time},
  ylabel = {Power},
  unit marking pre={\text{in }}, % add units as "<<axis label>> in ⟨unit⟩"
  unit marking post={}, % nothing comes after the unit
  change x base, % allow rescaling of x-axis (comment out if unneeded)
  change y base, % allow rescaling of y-axis (comment out if unneeded)
  x unit=s, % unit of data on x-axis
  y SI prefix=milli, % resacling factor of axis if neeeded
  y unit=W % unit of data on y-axis
  \end{axis}
  \addplot[...]{...}
\end{tikzpicture}