ACE with React
Integrating a single page application with atlassian connect express.
Centralized error handling in Express applications.
Writing a custom error handler to handle all the exceptions that are thrown within the express application.
Logging in Golang projects
Writing a generic log layer log common log information.
Add Redux custom middleware dynamically
Writing a custom middleware and injecting it on runtime.
Start nginx when upstream is unavailable
Workaround to start nginx in local docker setup, if one of the defined upstream isn't available.
Dealing with SOAP in clojure
Performing SOAP calls using basic Java libraries in a Clojure app.
Asynchronous calls in React component
Preferred way for loading data in async calls, and downsides of other options.
Flyway migrations in lein clojure
Integrating flyway migrations to compojure apps.
Card slider using CSS Keyframes
Slider animation using css keyframes
Storing a function in the Redux store
Serialize JS functions to make it persistent in Redux store.
Mock toLocaleString in Jest
PhantomJS doesn't support multiple locale. Here is a way to mock them in tests.
Spring security session timeouts
Setup session timeouts in spring security. This will explain how to setup the idle timeout and also the max timeout for separate sessions.
Angular resource and http interceptor
This post describe about the use of angular resource library along with http interceptor.
Post browser logs to server in an Angular app
This post describes about posting all the browser errors in an angular application to an endpoint. This will be helpful to analyse or debug issues.
Expanding Amazon EBS Volume in a EC2 instance.
Even after increasing the size of the EBS volume in the AWS console, the actual size of the EBS wasn't increased. Have to follow the following steps to grow the EBS size.
Set deployed Git revision using Capistrano 3
While deploying Rails application using Capistrano 3, recording the current deployed git revision to be used by Rails applicaiton.
UrlGenerationError after upgrading to Rails 4.2
On a REST model new action, form_for tag breaks and raises UrlGenerationError after upgrading to Rails 4.2
Integrating CKEditor with Rails asset pipeline.
Integrating CKEditor plugin into rails asset pipeline.
Deploying Jekyll site for Github pages through rake script
Deploying jekyll blog or site for Github pages using rake script.
Integrating Netflix Hystrix to a Spring Application
Hystrix is a latency and fault-tolerance library from Netflix. This post describes how to integrate it with Spring Aspects to make the implementation simpler.
Testing APIary using Dredd.
Test API blueprint mardown files by simply hosting them on GitHub and setting up a pipeline in Travis CI.
Making HTTPS call using Apache HttpClient.
Perform Https calls from server using Apache HttpClient library.
Gradle, Spring MVC App.
A skeleton sample app demostrating gradle set up with Spring MVC along with basic logging and deployment in tomcat environment.
Cross Site HTTP(S) Requests.
Some of the tried out solutions for the cross site request issue. Should be a good place to look out for which solution to be used under a circumstance.
Re running testNG failed times n times.
Steps to set up re-runn of testNG failed tests for n number of times, using ant task.
Wiring Jasmine 2.0 with Phantom JS
This post describes the steps that are necessary for to wire Jasmine 2.0 test suites with phantomJS.
UTC time in Android device. With NTP server sync.
Using NTP time in the anroid application. This involves calling the SNTP server and also converting the time to UTC format.
Hike to Castle Gorge with JHC
Went on a hiking trip to Castle gorge in Johannesburg with some pro hikers. This is my experience report on it.
What's new in Apple Passbook iOS7
New features in passbook application in the iOS7.
Setting up Cucumber-jvm
Setting up cucumber BDD framework in your Java project.
Link your Sublime Text 2 instances with Dropbox
Sublime text has a key mapping file where it stores all the shortcut. Here is a way to share your preferences and key maps across two machines using a dropbox account.
Scribblings on Socket.io
When i tried out socket.io for the first time, it was quite an interesting learning of few new paradigms and techniques.
Hamcrest conflict in jUnit.
Hamcrest matchers are used in jUnit for assertions. There is a weird problem with the version conflict between Hamcrest and jUnit. The solution is been discussed here.
Handle MaxUpload SizeExceededException in Spring
Handling MaxUploadExceedException in Ajax call with Spring controllers. This exception occurs when the file size greate than what is expected is been uploaded by the user.
Make your NTFS drive writable under Mac Lion
Make your NTFS drive writabe under mac lion.
Running Windows 8 on VM on Mac Lion
Running windows 8 on a VM along with Mac Lion.
Slot machine effect using jQuery
A cool widget that looks like a slot machine. Small piece of code and a nice trick to animate the numbers to achieve a slot machine effect.
Writing Custom Tags for JSTLs
Writing a custom JSTL tag and integrating with the application. A sample code to do the same.
Reloading an activity in Android
Manually reloading activity in Android application.
Configuring Context name for an application
Setting up a different context name than the WAR name for an application running in Tomcat
My First Windows 7 Theme
Creating your custom theme for Windows 7 and sample Chennai Super Kings theme for Windows 7
Primary-key @OneToOne mapping in Hibernate
Joining two tables using Primary keys in Hibernate.
Age Of Empires (AOE) Fix in Windows 7
Age of Empires (a popular strategy game) has got some problems with color rendering while played in Window 7. A quick harmless solution for that is here.
Wiring Android Wheel Widget into your application.
Wheel component in iOS is quite famous. Integrating a similar android-wheel to your android application.
Add EditText(s) dynamically and retrieve values - Android
Dynamic construction of Android layouts.
Test your Controller's ModelAttribute methods.
Injecting a ModelAttribute to the controller's method in Unit tests using Spring and jUnit.
Hadoop Version in AWS Map Reduce
Performing Map Reduce operation using Amazon AWS interface.
Install Custom JAR files in Samsung Corby Pro
Installing external application in Samsung Corby Pro. The applications has to be compatible for the phone and should be in jar format to be installed.
SAX parser characters() method.
Implementing `characters()` method for SAX parsing huge files.
FTP Client (Ubuntu)
Download multiple files from authenticated FTP server in Ubuntu.
Stop halting at Assertions
Generally assertions cause the test to halt. But sometimes we need to continue further and evaluate all the asserts and expect a comprehensive report of all the asserts.
Send your mail later
Compose an email and schedule it to send it at a later time. Useful for reminders.
Printing multiple divs in a page.
When an user tries to print a HTML page, allow multiple divs from the page to appear in the print and not the entire page. Not using media CSS query
Tweaking IntelliJ appearance to look cool in Ubuntu
Intellij is one of the most prominent Java IDE. Opitimising its appearance on Ubuntu is described in this post.
Install Inconsolata.ttf in Ubuntu(Jaunty).
Inconsolata is dev friendly font used by devs for their code. This post is about installing Inconsolata tru type in Ubuntu - Jaunty.
Enabling Yahoo Accounts On Ubuntu
Setting up Yahoo accounts using Pidgin messenger on Ubuntu.
Test SMTP server
Setting up SMTP server in your dev box.
An introductory post to start off my blog.