Similar Posts
Playing with the Spa
We have an Arctic Spa at our house which we enjoy. Recently, an OpenAPI spec has been published for it, so I decided to write a Java wrapper so I could control the spa myself, and monitor temperature with Prometheus and Grafana. The resulting code is here. The wrapper class “com.khubla.kspa.Spa” takes care of all…
More ANTLR Grammars
A complete list of my ANTLR grammars HTML Redcode gff3 6502 Assembler fasta BASIC Creole Logo brainfuck
A Java TELNET server
I recently had a reason to need a TELNET server and couldn’t find a Java library that worked for me. After a weekend of hacking, I now have kTelnet, an Open-source, BSD-licensed, TELNET server.
Servlet mocking with Mockito
When writing custom servlets, it can be quite useful to unit test them. In my case, I used a combination of testng and mockito. The basic idea is simple; mock a HttpServletRequest, and a HttpServletResponse and pass them to the custom servlet. There is a bit more too it, so here’s an example. final HttpServletRequest…
Building a personal search engine
I recently got a call from a friend who has a library of thousands of PDF documents. He wanted to know there was a such thing as a personal search engine that could index his library of documents, and allow full text search inside of them. I have a giant document library too, including PDF…
Outlook for Mac Archives
I recently had a reason to parse a large data set, for another project. I decided that an ideal “large data set” would be my Outlook mail saved archives. Sadly, Outlook for Mac doesn’t output PST files, it outputs OLM archives, which are, essentially, giant zip files full of XML. I was coding this all…