Similar Posts
Quadrigacx API
I’ve recently become very interested in blockchain, and that, naturally led me to Ethereum and Bitcoin. From there, I got a little interested in online trading, but since I prefer not to have to think about trading, I started thinking about a trading bot. Part of the work I needed to do was write a…
Apache Commons Math
Commons Math is an Apache library which includes a variety of mathematical tools, including 1st and 2nd-order ODE solvers. In order to familiarize myself with the ODE solvers, I wrote a simple program to solve an RC charging circuit. The circuit has these parameters: R (ohms), the resistance of the resistor C (farads), the capacitance…
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…
Bioinformatics data
I recently had a chance to learn a little about Bioinformatics, and ended up browsing the NIH’s database of genomes here. Inside the genome data for any particular strain of a species, you’ll find various files with file extensions like “ffa”, “fna”, “ffn” and “frn”. These are FASTA files. If you’d like an example, here’s…
TNT
If you haven’t read this book, I highly recommend it. I discovered it in high school and finally purchased my first copy at the now-gone Duthie Books in Kitsilano. Without going into the details of the book, the author uses a simple Peano arithmetic called Typographical Number Theory (TNT) to illustrate some of his points. An example…
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.