Author Archives: Siddharth Jain

Notes on Programming Hyperledger Fabric

I just finished writing a book:https://www.amazon.com/dp/0578802228 In this post I am making some notes and fun facts about the book for remembrance. Original TOC Final TOC Blockchain Primer Introducing Hyperledger Fabric A proof of concept app Setting up your infrastructure … Continue reading

Posted in Software | Tagged | Leave a comment

VS Code + AsciiDoc

Today I learned that VS Code has a pretty good extension for AsciiDoc: https://marketplace.visualstudio.com/items?itemName=asciidoctor.asciidoctor-vscode It can even export to PDF using wkhtmltopdf. There is also the option to have it use the Ruby based asciidoctor-pdf to do the conversion. How … Continue reading

Posted in Software | Tagged | Leave a comment

Using AsciidocFX

AsciidocFX is one dangerous program. I had it open like this. It had my root folder open in left pane and I was used to Atom where one can remove the folder by right clicking the folder and then remove … Continue reading

Posted in Software | Leave a comment

Useful Docker commands

Sort images by size List dangling volumes Cleaning up Docker resources: https://www.digitalocean.com/community/tutorials/how-to-remove-docker-images-containers-and-volumes#a-docker-cheat-sheet

Posted in Software | Leave a comment

Cross-referencing content of another chapter in AsciiDoctorPDF

It is possible to cross-reference chapters in Asciidoc. The way I do it is as follows. First of all I have a top level index.adoc which is the root file that does nothing but include the various chapters one after … Continue reading

Posted in Software | Tagged , , | Leave a comment

Getting Math to work in AsciiDoctorPDF

I had quite a lot of challenges getting math to render in AsciiDoctorPDF. The documentation relating to this is also confusing. It turns out that for converting asciidoc to PDF which is what I am interested in (i.e., output format … Continue reading

Posted in Software | Tagged , | Leave a comment

AsciiDoctor: Inspecting Environment settings of Ruby

Within the docker-asciidoctor container you can see Ruby settings like so

Posted in Uncategorized | Leave a comment

How to get rid off annoying border around SVG images in AsciiDoctorPDF

AsciiDoctorPDF inserts an annoying black border around SVG images generated by graphviz. E.g., given this SVG image which was generated by graphviz, if you open it in chrome you can see it has no black border as shown below: but … Continue reading

Posted in Software | Tagged | Leave a comment

Validating PDFs

Sometimes you need to validate a PDF file. Here are step by step instructions on how to do so. Prerequisites: You need to have Java installed on your machine. Download preflight-app-2.0.21.jar from https://pdfbox.apache.org/download.cgi Run it passing the path to your … Continue reading

Posted in Software | Leave a comment

Extracting images from a PDF

Sometimes you need to extract images inside a PDF. Here are step by step instructions on how to do that. Prerequisites: You need to have Java installed on your machine. Download pdfbox-app-1.8.16.jar from https://pdfbox.apache.org/download.cgi. WARNING: version 2.0.21 will not work. … Continue reading

Posted in Software | Leave a comment