# Intro

Update: I implemented the script in python (I still did not figure out how to calculate the task limit porperly). Check out the github project.

I’m using taskwarrior for about 19 months now, during that time I logged about 1000 tasks. Even during those times where I did not live full time on the command line it served me well and never got in the way: Once it output the task I asked for return to the bash prompt and I could carry on with whatever I wanted to do.

This also means that there is no continous view of all the tasks at hand, a feature that I found useful at some times. The naive approach to achieve this would be a bash command like this:

for ( (;;) ) do clear; task next rc.gc=off; sleep 5; done

If you ever did something like this, you know that this leads to unpleasant (because irritating) screen flicker every 5 seconds (or whatever you set the delay to). This is the reason why I hacked together the first iteration of a simple script I called „cyclenext“. After I finally switched to taskwarrior version 2.2.0 I wanted to share this with everybody who is interested.

# Usage

Nothing fancy there: First edit the location of your taskwarrior „pending.data“ file and then use it like this:

cyclenext <filter>


where can be everything from „next“ to more complex filters like „ready project:worldpeace prio:h“. Press <ctrl>+<c> (or <cmd>+<c>) to end cyclenext. Weiterlesen

# Creating memory maps in LaTeX using the {bytefield} package (update x2)

I’m currently working on some embedded systems stuff. For the documentation (written in LaTeX, of course!) I was searching for a convenient way to draw memory maps. The creation of external images using LaTeX Draw (which I like) was not a good option, as I wanted to change my memory maps in a source file and propagate the change with a single ‚typeset‘ command.

I wanted to share my solution, as I found nothing there (as a matter of fact, nobody seems to draw memory maps, which means that a lot of documentation is missing them ;__;). I use the real handy ‚bytefield‘ package (maybe the way to go for documenting registers) which is quite lightweight and convenient to use. This is an example of a basic bytefield definition:

\begin{bytefield}{32} \bitheader[b]{0,7,8,15,16,23,24,31}\\ \bitbox{8}{Byte 3} \bitbox{8}{Byte 2} \bitbox{8}{Byte 1} \bitbox{8}{Byte 0} \end{bytefield}