Python modules sometimes give issues. We got below warning from a python application./usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:120: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarningAfter a small research we found out, this

My whole team had to work on a project which is using Vagrant. Most of us had 8GB memory except one unfortunate intern. He had only 4GB of memory on his workstation. All the team members could spawn Vagrant machines without a problem except him.So we requested for more memory. Insisted IT department to upgrade it to 8GB. Oh no! ...

Boto is the AWS SDK for Python. You can create clusters, instances or anything using Boto. But sometimes Boto imposes limitations. I wanted to create a EMR cluster with RelaseLabel 4.2.0. But we were using Boto2. ReleaseLabel is an option in Boto3. For Boto2 there was no documented option for RelaseLabel.So I found out a way to create EMR (Elastic ...

Blogs and news sites use RSS(Rich Site Summary) feeds. Python can be used to fetch updates. I have written a simple program which can fetch RSS feed and print links.I have written the same application in both Python 2.7 and Python 3 both.In Python 3, urllib2.urlopen() is replaced with urllib.request.urlopen(). Python 3 code is mentioned below.

You might use social networks more often. All of us know that it is really hard to do bulk operations in Facebook and Twitter.I wanted to remove all the followers from my twitter account. So I googled it. Then I found there is no way to remove followers. Only way is blocking them and unblocking them. But this way if ...

When you are installing and trying to setup your Hadoop cluster you might face a issue like below.FATAL org.apache.hadoop.hdfs.server.datanode.DataNode: Initialization failed for Block pool (Datanode Uuid unassigned) service to master/192.168.1.1:9000. Exiting. java.io.IOException: Incompatible clusterIDs in /home/hadoop/hadoop/data: namenode clusterID = CID-68a4c0d2-5524-486e-8bc9-e1fc3c5c2e29; datanode clusterID = CID-c6c3e9e5-be1c-4a3f-a4b2-bb9441a989c5I just quoted first two line of the error. But full

Let's assume you are working for ABC Group. And they have ABC America airline, ABM Mobile, ABC Money and ABC hotel blah blah. ABC this and that. So you got multiple data sources. They have different types/columns. So you can't run single Hadoop Job on all the data.You got several data files from all these businesses. (Edited this data file ...

One of my colleagues wanted to write a JMeter script to test IMAP. But that code failed. So I also got involved in that. JMeter BeanShell uses Java in the backend. First I tried with a Maven project. Finally I could write a code to list the IMAP folders. Java implementation is shown below. Then we wrote a code to ...

Last post I showed how to create multiple nodes in a single Vagrant project. Usually "ubuntu/trusty64" box comes with 500MB. For some developers need more RAM, more CPUs. From this post I'm going to show how to increase the memory and number of CPUs in a vagrant project. Run below commands mkdir testProject1cd testProject1vagrant initThen edit the Vagrant file like ...

Recently I started working with Vagrant. Vagrant is a good tool that you can use for development. From this post I'm going to explain how to create multiple nodes on Vagrant project. mkdir testProjectcd testProjectvagrant initIf you run above commands, it will create a Vagrant project for you. Now we have to do changes to the vagrant file. Your initial ...

I recently installed Alfresco for testing in vagrant instance. I used Ubuntu image for the vagrant instance. But I forgot to install all the libraries which is necessary to be installed on Ubuntu before you install alfresco. But fortunately alfresco worked with out those dependencies.http://docs.alfresco.com/5.0/concepts/install-lolibfiles.htmlAbove link gives you what are the libraries you should install before you install Alfresco. You ...

People hate Yosemite. But I don't know why. I like Yosemite more than Mavericks. But Yosemite has a problem with Maximize button.(Zoom) As you click Zoom or maximize button it will go to full screen mode.To avoid thispress zoom while you are pressing Alt (key).Enjoy yosemite!

This comparison is an outdated comparison. I think Neo4J has improved a lot with the time. But I'm posting this because a person who wants to compare both of these technologies, can get an idea about the aspects they need to focus. If you know something is outdated please feel free to suggest using comments. I'll update the blog post ...

Alfresco: How to write a simple Java based Alfresco web script? If you want to develop new feature for Alfresco best way is WebScript! Let's start with a simple Alfresco web script. First you need to create an Alfresco AMP maven project using archetype. In this example I'll use the latest alfresco version 5.0.First I generated Alfresco All-in-One AMP. (Please refer my blog post on generating AMP projects.)If you go through ...

If you are an Alfresco developer, you have to develop projects using Alfresco AMP modules. Previously Alfresco has used Ant to build projects. But latest Alfresco SDK is using Apache Maven. AMP maven projects generates whole lot of temporary files. Those files you don't want in your version control system. Nowadays almost everyone is using Git. If I say Git ...

Alfresco: Calculate folder size using Java based WebScript I was assigned to a training task to write a web script for calculating the size of a folder or a file. But you need to go through all the nodes recursively. If you don't calculate it recursively in folders you won't get accurate folder size.For this project, I generated Alfresco 5 All-in-One maven project. You really don't want Alfresco ...

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

Previous Page