Cloning an object in Java

In Java programming frequently occur that a clone of an object is required for a reason. However, if the class is user defined, clone method should be implemented by the programmer. For that there are two possible ways. The first one which is the most naive is to define a …

How to activate Flash plugin in CentOS 6.5

I have CentOS 6.5 installed on my laptop for quite sometimes but I am rarely using it. Recently, I started using it again because I was little bit bored with Ubuntu and surprisingly found that none of browsers could play Flash video. Previously, on the time configuring the system I …

Console screensaver in Python

Python is a very powerful programming language and previously I worked with it little bit but not seriously. Recently, I have started to learn it again. The very first thing I really like about Python is its inline compilation which is a feature of dynamic programming languages. The other feature …

Setup Google mail for your domain

Google provides you to have its user friendly Gmail for your domain via Google Apps. This means if I have a domain for example www.madadipouya.com and I have an email which is kasra@madadipouya.com, I can access my email account in Gmail app. This is not a new facility from Google …

Sample Java generic code

Few days ago I was discussing with a friend of mine regarding some OOP concepts such as overriding, overloading, polymorphism and finally the discussion leaded to Generics in Java. Tonight, I have gotten little bit time to practice Generics. Basically, Generic is a type, for better understanding like Object type …

Introduction to BitTorrent Sync and its setup

If you have multiple devices such as laptop(s), PCs, smartphones and you want to keep your data sync without being in cloud or even without using internet, I highly recommend BitTorrent Sync. In fact BitTorrent Sync allows you to sync multiple devices easily and is also available on various platforms …

Blink tag replacement

Blink tag had never been official HTML tag and it is deprecated now. In fact none of the modern browsers supports blink tag and is not working anymore. In order to find a replacement for blink tag, I was searching around an hour on the net to find proper and …

Few WordPress migration hints

Finally last week I have decided to migrate the blog to a better server. Actually, I had the idea long time ago but was sort of busy and also afraid of things go wrong. Anyhow, last Saturday simple blog migration started but for some unknown reason I was unable to …

How to add iFrame to WordPress sidebar

It has been said that a good engineer can create something useful with the tools given to him, although, I do not consider myself even an half engineer but I managed to do something fun. Anyway, let’s back to the story. Few days ago I have decided to add a …

How do I write my blog posts?

In order to write posts for my blog recently I have switched to Google docs. It is quite powerful and easy to write and publish in WordPress. Before that I have tried LibreOffice and Microsoft office with Wine emulator on Linux but both of them when I paste text that …

The best Android emulator for Linux

Besides official Android SDK emulator which is damn slow and ugly, I have found Genymotion is quite good and awesome. In Windows platform Bluestack has done a very good job and their Android emulator is very fast and totally usable but sadly there is no Linux edition of Bluestack. I …

It is 2015 now!

Now it is 2015 and I am writing this post 5 days after new year. The reason for writing late is because I have tried to touch the computer as less as I could during since Wednesday until Sunday. Anyway, wish everybody to have a great year including myself 😉 …