Author: Manohar Bhattarai
I am Manohar Bhattarai, a vivid java programmer. I am a keen Linux user. I currently boot Ubuntu Linux. I am a Free/Libre Open Source Software enthusiast.

Mockito can only mock visible & non-final classes

While using Test Driven Development(TDD) we need to mock class/interface for the testing purpose. I recently came through this error “Mockito can only mock visible & non-final classes” while using mockito to mock an interface. Everything was looking fine, yet

Posted in Java, Test driven development Tagged with: , , ,

Safely increase size of a column in a PostgreSQL table without changing data

Sometimes we find that the size of a column is not sufficient to hold the data we need to store. We need to safely increase size of a column in a PostgreSQL table without changing data. Say, we have default

Posted in Postgres Tagged with: , , , , , , , , , ,

Google is now Alphabet

Goodbye Google, and hello Alphabet. Google has a new parent company, Alphabet. Along with the new name, some of Google’s businesses are splitting off to become their own separate companies under Alphabet. The restructuring process was completed on October 2, 2015. On August

Posted in Google Tagged with: , , , , , , , ,

Happy New Year 2015

I wish you all a very very Happy and Prosperous New Year 2015 A.D. Manohar Bhattarai www.manoharbhattarai.com.np www.twitter.com/mhrbhattarai

Posted in Happy New Year Tagged with:

Google Introduces Auto Awesome Photobombs with David Hasselhoff

Hello all, Google just introduced auto awesome photobombs with David Hasselhoff for Google+. Google+ Auto Awesome is all about fun surprises that bring your photos to life. Just upload a new self-portrait, or a group photo with friends, and leave

Posted in April Fools Day Tagged with: , , , , , ,

Happy New Year 2014

Hello everyone, I wish you all a very very Happy New Year 2014. I wish you all a prosperous and successful year ahead. May this year bring peace and prosperity to everyone in the world. Regards, Manohar Bhattarai (मनोहर भट्टराई)

Posted in Blog, Happy New Year Tagged with: , , , ,

psql: FATAL: password authentication failed for user – error in Postgresql

Hi all, I am writing after a long time. This will be a short post on the error we get in postgresql. The error is : psql: FATAL:  password authentication failed for user “username”. The following code snippet shows the

Posted in Postgres, Ubuntu 12.04 LTS Tagged with: , , , , , , ,

Douglas Engelbart, inventor of computer mouse, dead

Computing visionary Douglas Engelbart, the visionary electrical engineer who invented the computer mouse, died at his California home on Tuesday, 2nd July, 2013. He was 88. His work is the very foundation of personal computing and the Internet. His vision

Posted in Blog Tagged with: , , , , , , , , , , ,

How to enable hibernate in ubuntu 12.04

Hi all, The hibernate menu is disabled by default in ubuntu 12.04 due to some reasons like it din’t work in many computers. So you can re-enable it in ubuntu 12.04. Here is how you can enable hibernate in ubuntu

Posted in Ubuntu Tagged with: , , , , , , , , , , , , , , ,

How to enable java applet in the browser

Hi all, Sometimes we find that java applet is not working on our browser even if we have java installed on our machine. So, let us see how to enable java applet in the browser like firefox or chrome in

Posted in Java, Ubuntu Tagged with: , , , , , , , , , , ,
%d bloggers like this: