Category Archives: Computers

Load testing a web application using JMeter

This post describes what I learnt re: how to load test a web application using JMeter. The first step is to install JMeter (and its dependencies – JDK) which is not covered here. Assuming you have JMeter installed (I installed … Continue reading

Posted in Computers, programming, Software | Tagged | Leave a comment

Maven: 10 things you need to know

Flowchart to help in deciding Maven dependency Scope This is just my version. I myself get very confused at times deciding the dependency scope (code for the flowchart is here). and on the command-line you will use following command: You … Continue reading

Posted in Computers, programming, Software | Tagged | Leave a comment

How to debug java.lang.ClassNotFoundException

java.lang.ClassNotFoundException is probably the most dreaded and difficult exception you can run into when doing Java development. What does it mean? Simply put, the class could not be found on the classpath. If you reached this far, the class was … Continue reading

Posted in Computers, programming, Software | Tagged | Leave a comment

Oracle Cheat Sheet

1. get version of oracle database 2. get timestamp of last commit 3. get name of the database 4. get create table statement 5. select rowid (base64 encoded pseudocolumn) 6. Query all_tables 7. Get information about a table: 8. Query … Continue reading

Posted in Computers, programming, Software | Tagged | Leave a comment

Helpful GCP commands

2. Login using a service account You shouldn’t do this however. Quoting best practices: Don’t use service accounts during development. During your daily work, you might use tools such as the Google Cloud CLI, gsutil, or terraform. Don’t use a … Continue reading

Posted in Computers, programming, Software | Tagged , , | Leave a comment

How to iterate over all rows of a table in Oracle db

Recently I was writing a program to copy data from Oracle to Big Query. This program needs to fetch all rows in a given table (aka a table scan) and then write them to the destination. We should not fetch … Continue reading

Posted in Computers, programming, Software | Tagged | Leave a comment

BigQuery Cheat Sheet

2. List all tables within a dataset 3. List schema of a table aliter: to get as json: 4. Create a dataset: 5. Get job details. Two ways of doing this. Method1: use bq show command: Method2: use REST endpoint. … Continue reading

Posted in Computers, programming, Software | Tagged | Leave a comment

Measuring performance of BigQuery Java vs Python connector

While experimenting with Apache Beam, I noticed there is a big difference in the performance of Java vs. Python SDK when reading from BigQuery. See this. So I thought it would be good to measure the performance of the Java … Continue reading

Posted in Computers, programming, Software | Tagged | Leave a comment

Adding Logging to your Java application

Recently I had the “pleasure” to add logging to a Java application. It was the most difficult thing to do in the whole program. There is so much documentation available and no two web pages are alike. Which is correct … Continue reading

Posted in Computers, programming, Software | Tagged , , , | Leave a comment

Verifying binaries downloaded from the internet

Frequently we download binaries from the internet. How do we know they are genuine and not been tampered with? (Genuine as in genuine auto parts). This post illustrates the process using the JMeter library as example and downloading to MacOS. … Continue reading

Posted in Computers, programming, Software | Tagged , | Leave a comment