Blog

Install bower component via git repo

If you haven't dabbeled in bower yet, bower coupled with node.js is similar to maven. It helps manage front end development dependencies such as css, js and other components. Similar to maven pointing to nexus, bower allows you to point to internal or external registry. Having this flexibility comes in handy when you want to publish internal components for consumption. An alternative to setting up an internal bower registry is to install from a git repository hosted in a source code manager such as github, bitbucket or atlassian stash. The following examples are some notes I took while using twitter bootstrap github repo and installing using a git endpoint, a tag, commit hash or branch name.

Read more

Java 8 temporal adjusters

Java 8 gives you the ability to retrieve specific information about a date such as determining if day it is a workday or checking if a date is a company holiday with temporal queries. In addition to temporal queries, temporal adjustors were added to provide a way to manipulate a date and return the adjusted value.

Read more

Spring HandlerInterceptors

When developing a spring MVC application you may want to run the same logic across many different requests, URLs or Controllers. You might first jump to a filter but spring framework also provide a mechanism called HandlerInterceptors. A HandlerInterceptor is similar to a filter but provides the ability for custom pre and post processing. So when would you implement a HandlerInterceptor? Handler interceptors are useful when you want to apply specific functionality to certain requests, for example navigation. Navigation is a common component on each page that is displayed to a user. You might have 50 different controllers with many @RequestMapping so it doesn't make much sense to call NavigationDAO.get() all over.

Read more

Configure swagger with spring boot

If you haven’t starting working with spring boot yet, you will quickly find that it pulls out all the common configuration from across your applications. Recently I helped in an effort to modularize configuration and worked on creating a spring-boot-swagger starter project. This project, like other boot modules, would be included in the pom and you would enjoy the fruits of auto configuration.

Read more

Sort and filter in jekyll

We are right on the heels of the next release of Jekyll and I just updated Level Up Lunch to build with 2.0.0.alpha.2. I definitely consider myself a ruby rookie and it showed while trying to install the pre release. Luckily the jekyll community was open and with their help we were able to get past my hiccup. Two features added in this release that I have been anxiously waiting for was support to sort jekyll pages and filtering elements in an array.

Read more