Skip to main content

Posts

Showing posts from August, 2017

Couchbase - Full Text Search (FTS)

Couchbase Server (A.K.A. Couchbase) is open source , NoSQL , document oriented database that stores JSON documents. Couchbase has recently introduced a new feature - Full Text Search ( FTS ). This feature is currently a Developer Preview Version (as of Aug 24, 2017). Couchbase has provided decent documentation for FTS which can be access here . Couchbase stores all the JSON documents in a Bucket . Using N1QL, you can query these documents. These queries are more like SQL statements but for JSON. On the other hand, with FTS you can use following powerful query types: Term, Phrase, Match, Match Phrase, Prefix Conjunction, Disjunction, Boolean Numeric and Date Ranges Query String To use FTS feature, one must have at least one node with FTS service enabled. Here is the link which describes commands to add or join node with a cluster by enabling various services: https://developer.couchbase.com/documentation/server/current/rest-api/rest-node-services.html In order to use FTS

Blogger - Your Preview Failed To Load

Hello Bloggers! If you use images in your blogs then you might have faced this issue. If you haven't faced this issue, then you might some day. Oh wait, whats the issue? 😃 When you use multiple images in your blog, then sometimes you will see following error when you click on Preview button. There are two ways to add images in your blogs. First way is to copy image and paste it directly on the blog page (when you are in "Compose" section of a blog). When you do this, entire images is encoded and added to the blog (see below). You can verify this by clicking on "HTML" section of the blog. When you add more and more images to your blog using this method, you will soon encounter the issue. Other way is to use "Insert Image" link/button (when you are in "Compose" section of a blog) then uploading the image and finally adding that to the blog. When you do this, image URL is added to the blog (see below). You can verify this by cloc

LDAP Users and Groups for API Authentication and Authorization

Today, API security has become one of the most important thing. It is a vast field with many approaches and meanings. Most commonly, people refer API security as Authentication and Authorization . Encryption can also be included in this space, but lets keep that aside for separate discussion. For this article, lets just focus on how to use LDAP for API Authentication and Authorization. There are many frameworks like Spring, etc. which can be used to connect your application with LDAP for Authentication. LDAP does not handle Authorization piece but it can return "Groups" and based on that you application can either authorize or deny the request. In this article, we will see following: How to create a user in LDAP How to create a group in LDAP How to assign user to the group in LDAP Refer this link if you wish to setup OpenLDAP on your MAC. I had used JXplorer before but for this article I am going to use Apache Directory Studio . Moreover, I am going to use Apa

Run JMeter Tests with Maven

In this article, I will be focusing on configuring JMeter with Maven but lets first understand some basics of JMeter and Maven. The Apache JMeter™ application is open source software, a 100% pure Java application designed to load test functional behavior and measure performance. These days, performance testing is very very important especially when the applications are targeting large number of users. There are many tools available in market, some are paid, some are free. Apache JMeter is one such free and open source software. Though JMeter's was initially developed for load testing web applications, it is now far more advanced. The biggest advantage of the JMeter is that it can do many things like performance and functional testing for web services, databases, FTPs or Web Servers, LDAP, JMS, trigger emails/notifications. Most of these features are implemented with plugins. JMeter is powerful, easy to install and use and FREE! It is a Java desktop application with simple us