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 …

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 …

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. …

How to add Gson library to Android Studio project

Google Android Studio from my point of view is the most suitable IDE for native Android programming. It is simply works out of the box. However, during working with this IDE, I have faced the shortage of documentation. Unfortunately, majorities of tutorials have been written for Eclipse IDE and since …

How to install WindowBuilder in Eclipse

Eclipse is my favorite IDE for coding especially for Java programming, even though it might be slower than other IDEs or has high RAM usage. Eclipse has different versions for different programming languages (C/C++, PHP, JavaScript, etc.). For long time, I was using Netbeans to develop Swing applications because it …

Colorizing output of Git

Apart from various IDEs (including Eclipse) which provide you great Git features visually, accessing Git from command line also can be a new experience which is very useful and from my perspective is a must for any developer that pushes the code in Git (Github, BitBucket, etc.). Git in terminal …

Install Curl for PHP in Ubuntu

If you get similar error message like “Fatal error: Call to undefined function curl_init()”, means that your Curl lib/module is not installed for PHP. Fortunately, in Ubuntu installing Curl for PHP just requires two commands and it can be done so easily with the help of apt-get package installation. The …

How to print PHP error in browsers

By default if your PHP code has some errors, it just shows white dead page which is so confusing and for me personally so annoying. By contrast of languages such as Java which you can easily check about any compile or runtime error, in PHP this task is not so …

In-memory databases

Sometimes in programming need to hold many objects and classes into memory, however, this will cause shortage of heap memory or memory leakage eventually. In order to avoid this bad practise and also not using hard disk to save the data due to its low access speed, you can use …

Github VS Bitbucket

Both Github and Bitbucket web-based Git repository hosting services, however, there are differences between these two. In this post I discuss the differences based on my experience. Github hosts much more source code and repositories in comparison with Bitbucket, hence, it is more famous especially, when Linux kernel maintains in …

Starting with Laravel 5

Laravel is the most amazing PHP framework and according to this link, it is also most favorite PHP framework. It provides many facilities such as db migration, easy to manage, routing, sessions, built in libraries and many other things which makes task of web application development better and can say …

How to create software agreement license quickly

Although I am the big fan of open source and free software, I believe software agreement between customers and software vendor is necessary in order to increase awareness of customer right. In addition to that software agreement and license can be used to demonstrate the constraints and consequences of using …

Testing Postgres connection with PHP in Ubuntu

PHP is very powerful programming language to write different web application and that is the one of the most important reason I choose to learn it alongside with Python. However, database connection is getting troublesome in PHP specially for new programmers like me even though PHP is quite straightforward and …

Instantiate a class by name stores in String

For beginners like me that are not very familiar with object oriented concepts, it might be impossible to imagine that Java has a capability to instantiate a class by its name stored in a string variable. However, this is totally possible in Java or even in other programming languages with …

Multithreading example in Java

In the previous post I discussed about multithreading concepts and provided a case study to understand the principles better. In this post the solution of the case study is given with detailed explanation about it. As mentioned, the first thing that program should do is to categorize mails, this is …

Basic of Multithreading programming

Multithreading is one the most interesting topics in computer computer science and programming. Of course it is also difficult and cumbersome for programmers even professional ones. Doing multithreading programming requires some prior knowledge regarding the thread and process. This post dedicates to Java multithreading programming and I tried as much …

Finding similarity percentage between Strings

In the field of text mining, one of the useful tools is to find the similarity percentage between two words for clustering or other purposes. Actually, I am not so familiar with text mining but it sounds quite interesting topic and I would like to do more study to find …