Back in 2013, I wrote a post about expanding terminal history unlimited. Recently I moved from Linux to Mac OS. Then I wanted unlimited history. Usually in Mac OS X you will only get 500 entries in history. New entries would replace old entries.Take the a terminal window and type below command.open ~/.bash_profileor vim ~/.bash_profileMost probably you will get an ...

OpenJDK is not bundled with Ubuntu by default This is not a technical blog post. This was about a bet. One of my ex-colleagues told that OpenJDK is installed on Ubuntu by default. And I installed a fresh Virtual machine and showed him that it won't. Then I earned Pancakes. We went to The Mel's Tea Cafe.

That Cafe on That Day This was a treat from Jessi. (President of Perethaya Team) Actually we earned it buy helping her course work. According to her this was the best place. And we were excited. We planned to go there on 5pm. I was the guy who went there first. And time was around 4pm. Then I was waiting till someone comes. Then Anna ...

Simply Strawberries on 14th Jan We went to have Strawberry waffles. And all of us wanted it with chocolate sauce. And my friend Jessi always want to take photographs of food. So I got this photo because of her. Waffle was awesome. Also I love the setting there. This is the beginning of "Perethaya" team. And we decided to go out and try different foods ...

Sunday or Someday on 27th Dec Three of us wanted to go somewhere. And then we tried to pick a date, but we couldn't. Finally we just agreed to go out on Sunday. Then we went to Lavinia Breeze and had fun. We were acting like kids. Screaming, Laughing. We don't mind what others think. That's us!!!Then we went to Majestic City Cinema to watch Hobbit. ...

The Sizzle on 17th Dec Recently I started visiting places with my friends and enjoy. So last month, I went to The Sizzle with one of my best friends. Receptionist asked "table for two?". Then I nodded. He bought us two a table for two which looked little bit embarrassing. But food was good. And This was the second time, I visited "The Sizzle".And this Sizzle visit will be remarkable. ;)

From the previous post, I explained how to generate an Alfresco AMP project using Maven. When you have an AMP project you can run it by deploying it to an existing Alfresco Repository or Share. But if you are a developer you will not find it as a effective way to run Alfresco modules. The other way is that you ...

Recently I have been working as a Alfresco Developer. When you are developing Alfresco Modules, you need to have a proper project with correct directory structure. Since Alfresco use Maven, you can generate Alfresco 5 AMP project using archetype.First you need Java and Maven installed on your Linux/Mac/Windows computer. Then run below command to start the project.mvn archetype:generate -DarchetypeCatalog=http://repo1.maven.org/maven2/archetype-catalog.xml -Dfilter=org.alfresco:Then ...

Messaging made was never easy like this. This is first Oreilly video tutorial I followed. And I should mention that I am really happy about this tutorial. Before I watch this tutorial I had no idea about JMS. But in this tutorial Mark Richards explains Messaging concepts as well as JMS implementations. Most of the developer tutorials don't explain important ...

Well. We can swap two integer variables using third variables. That is not a problem. Let's say we want to swap two variables without using a third variable. For that you can use simple mathematical operations such as addition/subtraction. But division multiplication will introduce an error to the data for example if you have to swap 1 and 3. Using ...

I was really interested in reading this book. But it took a long time to me to read it. And concepts which are explained in this book are really important. To a person who wants to start learning about Big data concepts, I will recommend this book for sure.If you have prior knowledge on BI tools and techniques, this book ...

I am working with Java projects and Git both. But sometimes opening a project from different IDE will create extra files which we really don't want. So using .gitignore file in the root folder of your Git repository will ignore files and patterns you have mentioned. Finally I found there are three main Java IDEs currently. They are EclipseIntelliJ IDEANetBeansI ...

You may want to insert a lot of data into Redis. This would be easier to insert a lot data into Redis using Linux commands. Lets say we have a comma separated values in a file.data.csv: key1,1200key2,5000key35,12345key12,4500With following command you can load all the data into Redis. But you should start Redis server first.cat data.csv | awk -F',' '{print " ...

Recently we used Redis server on Ubuntu 14.04. And I just thought about writing a blog post to show how to build Redis on Ubuntu server or desktop editions. First of all you have to go to Redis site and download the redis source code. Redis siteCopy the download link from redis site. Currently download link looks like this "http://download.redis.io/releases/redis-2.8.17.tar.gz". ...

We recently purchased a Cisco switch for our Hadoop cluster. So I wanted to setup Cisco switch. But first of all I want to configure ssh and disable telnet. Lets see how we can do that. Connect to the switch using telnet or using console port. (You should enable telnet and give a password from express setup.) enableconfigure terminalhostname <switchname>ip ...

Ubuntu 14.04 Desktop - How I feel it I couldn't install Ubuntu 14.04 as soon as it was released. But I upgraded my office laptop to Ubuntu 14.04 in June.Ubuntu 14.04 is more stable than other releases. And Ubuntu 14.04 is a LTS (Long term support) version which will release updates till 2019. I switched to 14.04 from 12.04.They have disabled workspaces. (+1) I hate this workspace business ...

Portable Drive encryption with Ubuntu I haven't used encryption on hard disk drives or pen drives ever. But recently I got a requirement to encrypt some portables disks. And there are some limitations also. After encrypting you would not be able to use that drive on Windows Operating System. You are going to limit to ext4 file system as well.First you have to install cryptsetup ...

Sri Lanka Cartogram with d3.js We have been using d3js to visualize things on maps. And after struggling with topojson application my boss found a way to convert Sri Lanka Shape file (.shp) to topojson format. Then we wanted to use cartograms for our visualizations. I found that there was a d3js cartogram implementation. - https://github.com/shawnbot/d3-cartogram/With the help of this blog post - http://www.limn.co.za/2013/10/making-a-cartogram/, I ...

It's funny! You can have mapper only Hadoop MapReduce Jobs. This would be useful sometime when you need to change the structure of data. Otherwise you can use this way when want to filter out data. But I don't think you will need this much often. First file is a simple mapper which really does nothing. You can change it ...

Last couple of days, I have been playing with Hadoop. Because of that I couldn't blog much often.I wanted to automated packaging with Maven. Below gist shows a sample Maven pom.xml for Hadoop. This will resolve Hadoop dependency and package it as a jar file. Hope this will help you!

Previous Page