Kaitai Struct Andes firmware image

I have added some parsing data for the andes core firmware format I wrote about before . kaitai is quite nice to write binary formats out with the result is reasonably understandable:

meta:
  id: andes_firmware
  endian: le
seq:
  - id: image_header
    type: image_header
    size: 32
  - id: ilm
    size: image_header.ilm_len
  - id: dlm
    size: image_header.dlm_len
types:
  image_header:
    seq:
      - id: ilm_len
        type: u4
      - id: dlm_len
        type: u4
      - id: fw_ver
        type: u2
      - id: build_ver
        type: u2
      - id: extra
        type: u4
      - id: build_time
        type: str
        size: 16
        encoding: UTF-8

The power of kaitai comes from its integration into languages, there is a compiler output to dot that you can play with online . Using that compiler I could generate a png from the dot file like so:

dot -Tpng andes.dot > andes.png

It's Just Emulation

I have done a lot today, but accomplished very little. I think more often than not these days happen. Here is a cool talk about archivist activities around games:


Reading: Diamond Age

Changing font size in urxvt

I finally had the need to dynamically change my font size in urxvt. If you search you will find keybindings to do this, such as the ones recommended in this thread . With my teeny planck keyboard, i3 , and tmux I don't really have room in my head for learning other keybindings.

In that thread there is also a printf command that changes the font size via a terminal escape code.

alias biggest="printf '\33]50;%s\007' \"xft:Source Code Pro:pixelsize=30\""
alias big="printf '\33]50;%s\007' \"xft:Source Code Pro:pixelsize=20\""
alias small="printf '\33]50;%s\007' \"xft:Source Code Pro:pixelsize=10\""
alias teeny="printf '\33]50;%s\007' \"xft:Source Code Pro:pixelsize=8\""
alias normal="printf '\33]50;%s\007' \"xft:Source Code Pro:pixelsize=12\""

I added the above aliases to my zshrc .


Reading: Babylon's Ashes, Diamond Age

FOSDEM Talk Videos

It looks like all the FOSDEM 2017 videos are up and available. Direct links for my two talks:

  1. QoS Challenges fro Realtime Traffic
  2. Transport Evolution on top of the BSDs

I posted the slides earlier here


Reading: Babylon's Ashes, Diamond Age

This Skull thing


Reading: Babylon's Ashes, Diamond Age