Sachin Handiekar

Recent Posts


Categories


Copyright © 2019 Sachin Handiekar

JVMTI – Get System Properties

In this post we will see how we can use the JVMTI GetSystemProperties to get a list of system properties. library.cpp #include "jvmti.h" #include JNIEXPORT jint JNICALL Agent_OnLoad(JavaVM *jvm, char *options, void *reserved) { std::cout GetEnv((void **) &jvmti, JVMTI_VERSION_1_2); if (result != JNI_OK) { std::cerr [...]

Sachin HandiekarSachin Handiekar

Java 8 :: Comparator Example

A code example showing the use of Comparator in Java 8 using Comparator.comparing method. public class Student { private String name; private String subject; private double grade; public Student(String name, String subject, double grade) { this.name = name; this.subject = subject; this.grade = grade; } public String getName() { return [...]

Sachin HandiekarSachin Handiekar

Basic Docker Commands

A list of basic Docker commands – Sachin:~ SachinHandiekar$ docker run -d -p 8080:80 nginx952a999c0f48a712023ca8d469eba5c8fbe0ee07554d736dd935f09db511f76d Sachin:~ SachinHandiekar$ docker run -d -p 8081:80 nginx751163aa99f994f4bd0cb3ad5c42872234ce9b0ee68781c6463f86fbd55c86bc List Docker Instances Sachin:~ SachinHandiekar$ docker ps [...]

Sachin HandiekarSachin Handiekar

Building a C/C++ project on Travis CI

Let’s see how we can use Travis CI for building a C/C++ project on Travis CI. We’ll use the consoleRadio C application which is used to stream Shoutcast Radio as an exampleThe .travis.yml file for the consoleRadio application looks like the following – Installing a custom version of cmake We can install a custom version [...]

Sachin HandiekarSachin Handiekar