Fun with Patent Data: Thomas Edison Jupyter Notebook

Thomas Alva Edison was a famous American inventor and businessman, “described as America’s greatest inventor”, and was one of the most prolific inventors in US history. Thomas Edison was granted/filed 1084 patents from 1847-1931.[1] He’s just one cool inventor – lamps, light bulbs, phonograph and so many more life changing inventions. Google Patents has a wonderful depth of patent history, and the history is searchable with custom search strings: inventor:(Thomas Edison) before:priority:19310101 inventor:(Paul R Bastide) after:priority:2009-01-01 Google provides a seriously cool feature – a downloadable csv. Pandas anyone? The content is provided in an agreement between the USPTO and Google. Google…

Continue Reading →

AppDev: Zookeeper Port Forwarding to all servers from local machine

To simply testing with Zookeeper on a remote Kafka cluster, one must connect to the client application ports on the backend.  When the remote Kafka cluster has multiple nodes and behind a firewall and a SSH jump server, the complexity is fairly high.  Note, the SSH jump server is the permitted man in the middle.    The client must allow application access to Zookeeper on Kafka – listening locally. Current techniques allow for a single port hosted on the developers machine for instance, 2181 listening on the local machine, and a single remote server.  This approach is not reliable –…

Continue Reading →

Testing: Dynamic Test-NG Tests

In my last few projects, I have used Test-NG.  Uniquely in my current project, I had to generate tests programmatically.  Instead of writing one test for each element in the project, I am able to generate a bunch at-will using the following pattern: Factory package test; import org.testng.annotations.Factory; public class DynamicTestFactory { @Factory public Object[] createInstances() { Object[] result = new Object[10]; for (int i = 0; i < 10; i++) { result[i] = new ExampleProcessorTest(Integer.toString(i * 10)+ “A”,Integer.toString(i*10) + “B”); } return result; } } Test Running Code I can also trigger using testng.xml <class name=”DynamicTestFactory” /> Reference https://testng.org/doc/documentation-main.html

Continue Reading →