CouchDB-fauxton introduction Here we will be using CouchDB (developer-preview 2.0). You can build couchDB with preview guide line in here. https://couchdb.apache.org/developer-preview/2.0/ After built is success, you can start couchDB from 'dev/run' Above command starts a three node cluster on the ports 15984, 25984 and 35984. Front ports are 15986, 25986 and 35986. Using front port to check the nodes by http://localhost:15986/nodes Then ...

Building Apache Zeppelin Apache Zeppelin (incubator) is a collaborative data analytics and visualization tool for Apache Spark, Apache Flink. It is web-based tool for the data scientists to collaborate over large-scale data exploration. Zeppelin is independent of the execution framework. Zeppelin integrated full support of Apache Spark so I will try sample with spark in it's self. Zeppelin interpreter allows any language/data-processing-backend to ...

CouchDB with Fauxton in windows 8 This post mainly about installing and running ‘Fauxton’ in windows environment. Fauxton is the new Web UI for CouchDB. For this post I will be using windows 8 (64bit). Prerequisite for Fauxton 1. nodejs (Download from here) 2. npm (now npm comes with node) 3. CouchDB (Installation from binaries or sources. I will have post on installing couch DB from ...

Installing Flask in Windows8 Flask is a lightweight web application framework written in Python. Flask depends on two external libraries, Werkzeug and Jinja2. Werkzeug is a toolkit for Web Server Gateway Interface (WSGI) Jinja2 renders templates Flask is called as microframework because it keeps the core simple. It has no database abstraction layer, supports extensions (object-relational mappers, form validation, open authentication technologies). It have ...

Basic Functionality of Series or DataFrame in Pandas Throughout this post I will take you over the fundamental mechanics of interacting with the data contained in a Series or DataFrame in pandas(python). Reindexing Reindexing is a critical method on pandas objects. 'Reindexing' means to create a new object with the data conformed to a new index. Here is my object that I will be using for this post ...

Pandas for Data Manipulation and Analysis Pandas is a software library written for the Python programming language for data manipulation and analysis. In many organizations, it is common to research, prototype, and test new ideas usinga more domain-specific computing language like MATLAB or R then later port those ideas to be part of a larger production system written in, say, Java, C#, or C++. Whatpeople ...

Python For Beginners Python is an interpreted dynamically typed Language with very straightforward syntax. Python comes in two basic versions one in 2.x and 3.x and Python 2 and 3 are quite different. This post is bais for Python 2.x In Python 2, the "print" is keyword. In Python 3 "print" is a function, and must be invoked with parentheses. There are no ...

Python with CSV CSV (Comma Separated Values) format is the most common format in computer world (export and import). In python 'csv module' implements classes to read and write tabular data in CSV format without knowing the precise details of the CSV format used by Excel. Here it is reading csv file and filtering data in it. Create new CSV file and moved ...

Predictive modeling is the process by which a model is created or chosen to try to best predict the probability of an outcome. Most often it wants to predict is in the future or unknown event. The model is chosen on the basis of detection theory. Models can use one or more classifiers. Models There are three predictive models Parametric ...

Gaussian function Gaussian function is a function of the below form a, b, c and d are arbitrary real constants. The graph of a Gaussian is a characteristic symmetric "bell curve" shape that quickly falls off. The parameters a is the height of the curve's peak b is the position of the center of the peak c (the standard deviation, sometimes called ...

Installing external package for canopy / (python) 1. Go to Package Manager in Canopy, then go to Canopy Command prompt 2. In CMD enter pip install --upgrade https://pypi.python.org/packages/source/p/pykalman/pykalman-0.9.5.tar.gz (Here you can find some python packages) Editor Now Write code in edit with kalman 1 from pykalman import KalmanFilter 2 import numpy as np 3 print 'start'; 4 5 kf = KalmanFilter(transition_matrices = [[1, 1], [0, 1]], observation_matrices ...

Regular Expressions with Python Regular expressions are a powerful language for matching text patterns. This post will explain regular expressions by Python. The Python "re" module provides regular expression support. match = re.search(pattern, string) If the search is successful, search() returns a match object or None otherwise. 1 import re2 3 string1 = 'Regular expressions are a powerful language for matching text patterns'4 match ...

Python Code for File reading To express the statements we can used the print statement or the write() method of file. Now we will read from file and write that content to file. Reading File 1 fd = open("D:/Research/python/test.log", "r+") 2 print fd.read(4)3 print fdOut put Write to file1 fd = open("D:/Research/python/test.txt", "w+") 2 fd.write("This is a test file.\n")3 fd.close()fd.readline() reads a single line from ...

Estimation Theory Estimation theory is a branch of statistics that deals with estimating the values of parameters based on measured/empirical data that has a random component. An estimator attempts to approximate the unknown parameters using the measurements. we can see 'estimation theory' in used in real world in radar for estimating the transit time and predicating tool such as voting in election. ...

AngularJS and solr var app = angular.module("app", []); app.controller("AppCtrl", function($http,$scope) { var app = this; app.lastName = 'aaaa'; $http( {method: 'JSONP', url: 'http://localhost:8983/solr/select?q=httpmethod:GET&rows=10&wt=json', params:{'json.wrf': 'JSON_CALLBACK'} }) .success(function(data) { var docs = data.response.docs; console.log('search success!'); console.log(data.response.docs); app.lastName = data.response.docs[0].hostip; }).error(function() { console.log('Search failed!'); }); }) ...

Apache Solr and Search Introduction It is open source enterprise search platform from the Apache Lucene. Its major features include text search hit highlighting faceted search near real-time indexing dynamic clustering database integration rich document (e.g., Word, PDF) handling geospatial search Solr runs as a standalone full-text search server within a servlet container. Solr uses the Lucene Java search library at its core for ...

Fundamental building blocks of event processing There are seven fundamental building blocks of event processing. Some building blocks contain references to others. The event producer represents an application entity that emits events into the event processing networks (EPN) The event consumer is an application entity that receives events, Simply it consumes an event The event processing agent building block represents a piece of intermediary event processing ...

Switching Activities in Android (tutorial 03) New activity when the user clicks the button. Here I will improve last sample code 1. Create a new activity 2. You can see new UI for 2nd activity and then we change string value as below 3. In MainActivity.java we can added below line to switch activity. (there are few ways to achieve it, this only one way) 1 ...

Android Applications Development in 15min  (tutorial 02) Last Post (tutorial 01) was on Android Software Stack and Terminology[1]. This post will for beginner on Android applications, This post will teach you fast mobile application development from Android Developer Tools (ADT) are based on the Eclipse IDE. 1. Start ADT and then go file—> new –> Android Applications Project 2. Follow the wizard with give project name (other ...

Previous Page