How to add keys to Python dictionary

Python has a strong feature to allow you to check availability of keys in a dictionary (AKA json string) on the fly and edit it. I recently, ran to a case that requires to check whether a particular keys are available in the dictionary. If keys are unavailable, add to … Continue Reading →


Python in one post

Two years ago when I started learning Python I had made a small note for myself as a quick reference which turned out to be so handy. The time I made the note I did not consider about sharing it. Now, after two years when I was working with Python … Continue Reading →


How to get rid of getter, setter in Java

One of the boring stuff to do in programming is to add getter, setter methods. Thanks to IDEs nowadays with few clicks or pressing shortcut keys you are able to add getters and setters to code. However, still much of coding space is wasted and besides that from my point … Continue Reading →


IntelliJ IDEA shortcuts for Eclipse users

Introduction IntelliJ IDEA IDEs are very popular among developers, especially Java folks. In addition to that, they support multiple languages such as Java, Scala, C/C++, Python, etc. I have recently switched from Eclipse to IntelliJ for Java development. At first, I had very difficult time to give up Eclipse convenient … Continue Reading →


How to create Ubuntu indicator with Python

For a long period of time, I wanted to make a simple Ubuntu unity indicator just to learn how they work. Finally in Christmas holidays I got a chance to search on the internet and came up with a simple idea of having a weather indicator. The result was great … Continue Reading →


Difference between abstract and interface in Java

One of the most repetitive programming interview question is “what’s the difference between abstract and interface classes?”. To answer this question I have had search the internet to come with a complete answers in bullet points. I tried to cover as much as I can. Below is the end result … Continue Reading →


Few hints about Apache Ant

Apache Ant is one of the most awesome automation tools, even though it is not as good as Maven. If nowadays I want to select an automation tool for a new project definitely I got with Maven, but before it existence Ant was rolling. Recently, I had to work with … Continue Reading →


How to create RESTful web service in Spring

Spring provides many facilities to Java developers which ease the programming as well as reducing the complexity of the code. One of the most powerful features Spring supports is called invasion of control or dependency inject. In addition to that, throughout the years Spring framework has had tremendous growth and … Continue Reading →


How to create Telegram bot with PHP and host in HeroKu

Nowadays, Telegram is one of the most popular messengers. The reason that the app is so popular is because of three reasons, The application is open source It is cross platform supports and works out of the box Bot support Among the reasons, I believe the third one is so … Continue Reading →


Transaction in JDBC

Java JDBC is a very simple and basic library to access to database data, but it is quite common and easy to setup that is why it is kind of popular. However, it has various shortages such as Object-relational mapping (ORM) and Transaction Management. The latter though can be done … Continue Reading →


How to install Composer in Ubuntu

Composer is a dependency manager tool for PHP programming language which is quite useful for PHP programmers and make the coding process easier. Compose more or less likes Maven that manage dependencies automatically. Installation process of compose is quite easy and will not take more than 5 minutes to set … Continue Reading →


The correct place of bracket in programming

Basically, the location of bracket ({}) in programming is a very old argument and up to now there is no absolute winner. For those that my words look like an alien language let me provide an example. In programming languages like C/C++, Java and so on bracket ({}) are used widely. … Continue Reading →