afternoon tea at the Daffodil Hotel in Grasmere in the Lake District.
It’s less than six weeks until I leave my current job and start a new position.
As part of leaving I need to create a technical handover document, which I’m writing in AsciiDoc. I’m being pushed to deliver and evidence one section of the document early, so I needed a way of extracting the section from the complied PDF document.
The staff asking for the extract are non-technical, so I needed to find a way to exclude passwords for the version they got and only include the passwords in the final document. AsciiDoc solves this using the ifeval directive. Within my main.adoc file, I define a variable called showpasswords and set it to zero when I don’t want the passwords included in the document.
:showpasswords: 0
ifeval::[{showpasswords} > 0]
[source,bash]
----
Pa$$w0rd
----
endif::[]
ifeval::[{showpasswords} < 1]
[source,bash]
----
********
----
endif::[]
To extract the cover image & first three pages, which includes the table of contents and the section in question, which runs from page 23 through to page 26, I used the cat sub-command of the pdftk tool, like:
1pdftk input.pdf cat 1-4 23-26 output dist/output.pdf
If you have an RSS reader on your mobile you can subscribe to my art RSS feed to get updates of new pictures I draw.
We’ve started rehearsing the march which we’ll play at the Saddleworth and Oldham Whit Friday Band Contests which takes place on the 2nd of June. We’re playing Caractacus and here is a video of us playing it in the 2019 contest.
Finished reading Méridien book 3 in S.H. Jucha’s Silver Ships series.
Started reading The Immune: A Post Apocalyptic Survival Thriller by David Kazzie.
I got recommended a book this month which I’ve purchased and started to read. It’s called War and Peace and It: Business Leadership, Technology, and Success in the Digital Age written by Mark Schwartz
Finished book 9, Valkyrie, and have started listening to book 10, Critical Mass of Craig Alanson’s Expeditionary Force series.
By writing down what I watch I can review how much TV I consume. It’s shocking, but here is the list for April: