DevOPS

Partial Update in Elasticsearch

Partial update in elasticsearch works same as updating whole document in Elasticsearch. This process retrieve the document, change it and reindex it again. In elasticsearch partial update is done through Update API. Update API also support scripting language to update a document. We can write our own logic in script…
More..
DevOPS

CircuitBreaking Exception: Data Too Large for field parent/child id cache

You might get this problem with fielddata size limit. fielddata size limit is checked after the query data is loaded. When your elasticsearch query tried to load data more than the fielddata available memory then you would get the OutOfMemoryException. Caused by: : Data too large, data for field would…
More..

Get File MIME Type in Python

Get file MIME type in Python You can get mime type in python by using python-magic library. You can install python-magic using PIP. $ pip install python-magic To find mime type, import magic library and pass file path into () >>> import magic >>> ("path/", mime=True) 'application/pdf' If you face…
More..

How to Delete a Git branch?

Delete a git branch Delete a local branch : Syntax: git branch -d<branch> git branch -d test-branch If you face any error like "error: The branch 'test-branch' is not fully merged" and you are still want to delete this branch then you can forcefully delete. Use 'git branch -D test-branch'…
More..

Install Opencv in CentOS

Install opencv in CentOS Opencv can be install in CentOS in two ways: 1) Install from available yum repository. But till the time of writing this post repository are available. If you need latest version of opencv then go for 2. option. 2) Opencv installation from source. 1) Install opencv…
More..

Install RPM in CentOS

Install RPM in CentOS RPM Package Manager (RPM), originally called the Red-hat Package Manager, is a program to install or uninstall software packages or libraries in Linux. To install RPM in CentOS, first download the RPM: $ wget now check in your directory will be available for installation. To install…
More..
PHP

How to use CURL with Proxy

This post will be demonstrating how to use curl with proxy in PHP and Linux command line. What is additional parameter we need to pass while using curl via proxy. So I am starting with proxy configuration in PHP curl. 1) PHP curl with proxy $url = 'http://localhost/path/'; $proxy =…
More..
TechieRoopSolution for DevOps & Open Source Technology2017