Stream
Everything I publish, watch, read, and note — in one chronological feed.
- Post
Getting started Apache Spark with Java
In this tutorial, we will learn how to set up Apache Spark for local development and get started with Java applications. We will use an Apache log file to show a few basic RDD operations. Tools & Libraries used: Apache spark 2.1.1 Gradl
- Post
Apache Spark Basics FAQ
Big Data has come a long way. Apache spark is one of the fastest big data computational engines. We will answer often asked questions about the basics of Apache Spark in this article. What problems Apache Spark solves and how does it solve
- Post
Progressive web app - better & low cost mobile presence
Typically mobile web apps really suck!! They are slow and sluggish and the situation could get even worse with shaky internet connectivity. Hence, businesses and app developers are more inclined toward building native apps (including hybrid
- Post
Jersey (JAX-RS) JSON HTTP entity payload processing example
JSON (JavaScript Object Notation) is the most used structured data interchange format of the current generation. It is very common for REST clients to use it for data exchange. Several web client frameworks (e.g. AngularJS) natively handle
- Post
Jersey (JAX-RS) multiple files upload example
Jersey (JAX-RS) supports multiple files upload. A dynamic number of files can also be uploaded. In this tutorial we will solve the following problems: Upload more than one file. Upload dynamic numbers of files. Support to upload multiple fi
- Post
Jersey (JAX-RS) single file upload example
Jersey provides an easy mechanism to let clients upload files to the server. In this tutorial, we will learn a single file upload to Jersey (JAX-RS) endpoint. 1. Include Jersey media multipart dependency in Gradle File: build.gradle (snippe
- Post
Spring Boot and Jersey (JAX-RS) static files support
In Spring Boot support for Jersey is provided by org.springframework.boot:spring-boot-starter-jersey Gradle dependency. When the static file URL pattern is matched with URLs that Jersey handles, additional configurations are required for Sp
- Post
Jersey (JAX-RS) @FormParam HTML form data handling
There are multiple ways for consuming HTML form data (application/x-www-form-urlencoded) in Jersey. Using @FormParam annotation we can inject Form values in the Resource method. We can use it just like other @*Param. Jersey resource method
- Post
Jersey (JAX-RS) @BeanParam to inject class with aggregated @*Param injections
It will reduce our code and improve readability, if we define injections of various @*Param values in a distinct class and reuse that in various resources. In Jersey (JAX-RS) we can achieve same using @BeanParam injection. Aggregate @*Param
- Post
Jersey (JAX-RS) Java types to consume request parameter values guide
In Jersey (JAX-RS), to consume HTTP request parameter, cookie, header, path variable and matrix parameter string values, we have following options: Primitive types - int, char, float, long, double, byte and others. Types with constructor wh