Monthly Archives: May 2016

Get Started with Hbase

Go to this site and download HBASE. Once done start HBASE: (1) Go to bin directory and then start the server start-hbase.sh (2)Next start the shell. ./hbase-shell. Now create few sample tables create ‘ashish’,’cf’ You will now be able to … Continue reading

Posted in Uncategorized | Leave a comment

Getting Started with ELK Stack

(1)Step 1: Start the elastic search from the bin directory: Go to elastic search and then bin directory and start the shell script to start the search. This can be confirmed by navigating to the browser to the url:localhost:9200/_plugin/head/ Step … Continue reading

Posted in Uncategorized | Leave a comment

Read/Write to a file C++

/* * Read/Write to a file. * *  Created on: May 15, 2016 *      Author: ashishsharda */ #include<iostream> #include<stack> #include<fstream> using namespace std; int main() { ofstream myfile; myfile.open(“ashis1.txt“); myfile<<“Writing to a file”; myfile.close(); ifstream infile; infile.open(“ashis1.txt“); string … Continue reading

Posted in C++ | Leave a comment

Write to a file in C++

/* * Write to a file * *  Created on: May 15, 2016 *      Author: ashishsharda */ #include<iostream> #include<stack> #include<fstream> using namespace std; int main() { ofstream myfile; myfile.open(“ashis1.txt“); myfile<<“Writing to a file”; myfile.close(); }

Posted in Uncategorized | Leave a comment

Lists in Python

”’ Created on May 16, 2016 @author: ashishsharda ”’ #Create a basic list with 4 elements list1 =[‘physics’,‘chemistry’,2000,2001] print “Contents in list are “,list1 #Append to the list list1.append(800) print “Contents in list are “,list1 #Delete second element of list … Continue reading

Posted in Uncategorized | Leave a comment

Classes and Functions in Python

”’ Created on May 16, 2016 @author: ashishsharda ”’ class Employee:          def __init__(self,name,salary):         name=“Ashish“         salary=300000         self.name=name         self.salary=salary        … Continue reading

Posted in Uncategorized | Leave a comment

Find Greater number in C++

/* * bsearch.cpp * *  Created on: May 15, 2016 *      Author: ashishsharda */ #include<iostream> #include<list> using namespace std; int maxmin(int num1,int num2) { if(num1 >num2) { return num1; } else { return num2; } } int main() … Continue reading

Posted in Uncategorized | Leave a comment