Archive for the ‘Programing’ Category

September 27th, 2018

Glowroot and Axis

No Comments, Programing, by admin.

Unfortunately by default Glowroot does not support logging Axis’ service calls and their response time. You have to write a plugin for this, which is actually very easy once you grasp how the plugins work.



import javax.xml.namespace.QName;

import org.glowroot.agent.plugin.api.Agent;
import org.glowroot.agent.plugin.api.MessageSupplier;
import org.glowroot.agent.plugin.api.ThreadContext;
import org.glowroot.agent.plugin.api.ThreadContext.Priority;
import org.glowroot.agent.plugin.api.Timer;
import org.glowroot.agent.plugin.api.TimerName;
import org.glowroot.agent.plugin.api.TraceEntry;
import org.glowroot.agent.plugin.api.checker.Nullable;
import org.glowroot.agent.plugin.api.weaving.BindReceiver;
import org.glowroot.agent.plugin.api.weaving.BindThrowable;
import org.glowroot.agent.plugin.api.weaving.BindTraveler;
import org.glowroot.agent.plugin.api.weaving.OnBefore;
import org.glowroot.agent.plugin.api.weaving.OnReturn;
import org.glowroot.agent.plugin.api.weaving.OnThrow;
import org.glowroot.agent.plugin.api.weaving.Pointcut;
import org.glowroot.agent.plugin.api.weaving.Shim;

public class AxisAspect {

  public interface Call 
Read the rest

July 7th, 2018

Functions in std

No Comments, Programing, by admin.

Names of functions from the Standard Library used as pointers/references to functions can cause breakage in your code if you are upgrading to the newer version of C++ or compiling using a different implementation of the Standard Library, or even … Continue reading Read the rest

May 16th, 2018

Rvalues redefined

No Comments, Programing, by admin.

In this post we will explore what I consider the most significant language change in C++17. I call it the most significant because it changes the way you design your resource-managing types and how you think about initialization. It is … Continue reading Read the rest

May 10th, 2018

Testing C++ online

No Comments, Programing, by admin.

In this short post I wanted to share links to three online services that I use for testing different aspects of C++ and C++ compilers. — this allows you to compile and observe the output of programs compiled in … Continue reading Read the rest

Let’s start with the problem. I want to check whether a program received a text message that consists of four consecutive zeroes. Not ‘0’, but the numeric zero. I will create a constant std::string representing the special sequence and compare … Continue reading Read the rest

This is a basic python string and string manipualtion tutorial. Strings are a special type of a python class. As objects, in a class, you can call methods on string objects using the .methodName() notation. The string class is available by default in python, so you do not need an import statement to use the object interface to strings. … Read the rest

These are the ten most rated questions at Stack Overflow last week.
Between brackets: [question score / answers count]
Build date: 2018-02-03 18:20:21 GMT

  1. Create index dictionary from integer list – [8/4]
  2. How can I use Regex to find a string of characters in alphabetical order using Python? – [7/4]
  3. How to keep track of instances of python objects in a reliable way? – [7/1]
  4. Converting String dictionary like to dictionary – [
Read the rest

For building quick APIs in Python, I have mostly depended on Flask. Recently I came across a new API framework for Python 3 named “API Star” which seemed really interesting to me for several reasons. Firstly the framework embraces modern Python features like type hints and asyncio. And then it goes ahead and uses these features to provide awesome development experience for us, the developers. We will get into those features soon but before we begin, I would like … Read the rest

First, let’s get those terms out of our way. The REST acronym stands for Representational State Transfer,
which is an architectural design. Usually when we use the term RESTful, we are referring to an application that
implements the REST architectural design. API stands for Application Programming Interface, which is a software
application that we interact programmatically, instead of using a graphical interface. In other words, we interact
with it at a lower level at the source code, … Read the rest

I have already published a yearly report which covers all of 2017
but also some of my January 2018 work, so I’ll try to keep this short.

Debian Long Term Support (LTS)

This is my monthly Debian LTS report. I was happy to switch to the
new Git repository for the security tracker this month. It feels like
some operations (namely pull / push) are a little slower, but others,
like commits or log inspection, are much faster. So I … Read the rest