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!

I have posted about Installing Cisco Packet Tracer on Ubuntu 13.04 and prior versions. But this method is not working on Ubuntu 13.10 because of repository issue I think. So "Medywan" posted a link. I followed linked and found a new way. But it was not in english so I translated it. Thanks for the guy who posted it first ...

Recently I went to Java Meetup. And it was all about Garbage Collector. So I learned lot more about Garbage Collectors. So Dr. Daya's suggestions was not to declare variable in higher scopes unless we really know what we do. For a example, don't declare class level variables if we are only using it inside on method. Then I was ...

Ubuntu 13.10 කොහොමද? මම දැන් අවුරුද්දක විතර ඉදලා පාවිච්චි කරන්නේ එක එක ජාතියේ ලිනක්ස් ඩිස්ට්‍රෝ. ඒකට හේතුව වෙලා තියෙන්නේ මට වැඩ කරන්න වෙලා තියන සර්වර්ස් හැම එකක්ම වගේ ලිනක්ස් හන්දා, මමත් ලිනක්ස් පාවිච්චි කරන කොට ගොඩක් ලේසි. ඒත් මම පාවිච්චි කරපු හැම ලිනක්ස් ඩිස්ට්‍රෝ එකකින්ම පහසුව අතින් බලනකොට ඉස්සරහින්ම ඉන්නේ උබුන්ටු. ඇත්තටම ලින්ක්ස් සාමාන්‍ය එදිනෙදා වැඩ කරන අයට පාවිච්චි කරන්න පුලුවන් තරමට ...

Ubuntu 13.10 කොහොමද? මම දැන් අවුරුද්දක විතර ඉදලා පාවිච්චි කරන්නේ එක එක ජාතියේ ලිනක්ස් ඩිස්ට්‍රෝ. ඒකට හේතුව වෙලා තියෙන්නේ මට වැඩ කරන්න වෙලා තියන සර්වර්ස් හැම එකක්ම වගේ ලිනක්ස් හන්දා, මමත් ලිනක්ස් පාවිච්චි කරන කොට ගොඩක් ලේසි. ඒත් මම පාවිච්චි කරපු හැම ලිනක්ස් ඩිස්ට්‍රෝ එකකින්ම පහසුව අතින් බලනකොට ඉස්සරහින්ම ඉන්නේ උබුන්ටු. ඇත්තටම ලින්ක්ස් සාමාන්‍ය එදිනෙදා වැඩ කරන අයට පාවිච්චි කරන්න පුලුවන් තරමට ...

Java is one of my favorite languages. Long time ago I learnt Java EE. And this book polished that knowledge I had. This books covers from servlets to EJBs, SOAP web services and many more things. But I should highlight one important thing. If you really don't know anything about Java EE, this is not for you. But if ...

Java is one of my favorite languages. Long time ago I learnt Java EE. And this book polished that knowledge I had. This books covers from servlets to EJBs, SOAP web services and many more things. But I should highlight one important thing. If you really don't know anything about Java EE, this is not for you. But if ...

I was watching some CBT Nugget Tutorials and then I wanted to work with Cisco Routers. But I don't have any Cisco device. Then I downloaded Cisco Packet Tracer from a torrent(TPB the Pirate Bay). If you want to install Cisco Packet Trace 6.0.1 you have to download "Cisco Packet Tracer 6.0.1 for Linux - Ubuntu installation (no tutorials).bin" ...

I was watching some CBT Nugget Tutorials and then I wanted to work with Cisco Routers. But I don't have any Cisco device. Then I downloaded Cisco Packet Tracer from a torrent(TPB the Pirate Bay). If you want to install Cisco Packet Trace 6.0.1 you have to download "Cisco Packet Tracer 6.0.1 for Linux - Ubuntu installation (no tutorials).bin" ...

ඇත්තටම දැන් හැම සමාගමක්ම වගේ ලොකු උනන්දුවක් දක්වන්නේ මොබයිල් ඇප්ස් මොබයිල් ඩිවයිසස් ගැන. ඒ අතරේ ඇන්ඩ්‍රොයිඩ් කියන්නේ ගොඩක් හොද වෙලදපලේ ප්‍රමුඛ මෙහෙයුම් පද්ධතියක් ඒත් මේක හදන්නේ Google එකෙන්. OneNote කියන්නේ මම කැමතිම සොෆ්ට්වෙයා එකක්. ඇත්තටම මේක Evernote වගේ. හොදිට අපිට අවශ්‍ය නෝට්, ලිස්ට් හැම දේම ලේසියෙන් හදාගන්න පුලුවන්. එත් මේක ලිනක්ස් වල දාන්න බැ. එවෙනු වට පාවිච්චි කරන්න වෙන්නේ ...

ඇත්තටම දැන් හැම සමාගමක්ම වගේ ලොකු උනන්දුවක් දක්වන්නේ මොබයිල් ඇප්ස් මොබයිල් ඩිවයිසස් ගැන. ඒ අතරේ ඇන්ඩ්‍රොයිඩ් කියන්නේ ගොඩක් හොද වෙලදපලේ ප්‍රමුඛ මෙහෙයුම් පද්ධතියක් ඒත් මේක හදන්නේ Google එකෙන්. OneNote කියන්නේ මම කැමතිම සොෆ්ට්වෙයා එකක්. ඇත්තටම මේක Evernote වගේ. හොදිට අපිට අවශ්‍ය නෝට්, ලිස්ට් හැම දේම ලේසියෙන් හදාගන්න පුලුවන්. එත් මේක ලිනක්ස් වල දාන්න බැ. එවෙනු වට පාවිච්චි කරන්න වෙන්නේ ...

After renaming I can't access MongoDB collection! :( Yesterday while I was doing some test for performance team, I renamed a collection. Actually I renamed system.profile into "Profiling_28-08-2013". Then I couldn't access it. I couldn't delete that collection use db.Profiling_28-08-2013.drop(). After renaming MongoDB shell can't access that object. 1. JavaScript execution failed: ReferenceError: <Part of collection name> is not defined 2. JavaScript execution failed: SyntaxError: Unexpected token ...

After renaming I can't access MongoDB collection! :( Yesterday while I was doing some test for performance team, I renamed a collection. Actually I renamed system.profile into "Profiling_28-08-2013". Then I couldn't access it. I couldn't delete that collection use db.Profiling_28-08-2013.drop(). After renaming MongoDB shell can't access that object. 1. JavaScript execution failed: ReferenceError: <Part of collection name> is not defined 2. JavaScript execution failed: SyntaxError: Unexpected token ...

Thanks Foster and Tom for this great book! Since the trend in the industry is towards Big Data and Data Science, I was reading and learning about them. When I found this book, I felt like I found something valuable. And I couldn't wait until start reading this book. This book's introduction says that this book will not be ...

Previous Page