Part 6 Support Vector Regression
· โ˜• 6 min read · โœ๏ธ Dinesh Arora
Machine learning tutorial using Support vector regression. This post in the machine learning series will walk you through the process of implementing Support vector Regression.

Part 5 Machine Learning Backward Elimination
· โ˜• 9 min read · โœ๏ธ Dinesh Arora
Machine learning tutorial using multiple linear regression. This post in the machine learning series will walk you through the process of automatic backward elimination and show you to improve your multiple regression model and teach you an important concept that simple is always better.

Part 4 Machine Learning Multiple Regression
· โ˜• 9 min read · โœ๏ธ Dinesh Arora
Machine learning tutorial using multiple linear regression. This post in the machine learning series will walk you through the basics of exploring the data set and predicting the result using multiple linear regression.

Spring Bean vs Spring Component
· โ˜• 3 min read · โœ๏ธ Dinesh
The Difference Between @Bean and @Component and When to Use What? This is the most common question that new as well as experienced Spring users get confused about. There are literally hundreds of questions on this Stackoverflow. This article will clear all the confusion. Similarities between @Bean and @Autowired @Bean @Bean is an annotation based configuration and hence is used in @Configuration based class. This is an explicit way of defining a bean and is also used on the methods defined in configuration class.

Scala: Tail Recursion
· โ˜• 3 min read · โœ๏ธ Dinesh
Tail recursion is a basic but important concept in Functional programming. Recursive functions has always been a pain point for me. I would be eliminated out of several interview rounds if interviewers places emphasis on recursion. In Java world thankfully, most people I know hate recursion because when nesting goes too deep, it impacts the performance if the nested recursion is more than 100 levels deep. Unfortunately(Fortunately), functional programming languages like Scala and Haskell have solved this concept with the term Tail Recursion.

Understanding Java 8 Lambda final finally variable
· โ˜• 3 min read · โœ๏ธ Dinesh
I am a little late to the java 8 party and was trying to quickly get some hands on with lambdas and ran into an issue where I got the error message Variables used in lambda should be final or effectively final . I know what final is but what is effectively final. Here is what I was trying to do. I had a HashMapย which had values like โ€œone : 1โ€, โ€œtwo : 2โ€, โ€œthree : 3โ€ and wanted to replace the String ${one} with 1 etc.

How to set up Apache Storm on mac using brew
· โ˜• 3 min read · โœ๏ธ Dinesh
I am learning about Apache Storm and the guide had long and winding instructions on how to install Apache Storm. I installed the single node using brew and it was aย breeze. I did not had to spend time figuring out out if I was installing latest version. Pre-requisites: Make sure that you have โ€˜HomeBrewโ€˜ installed.ย One reason that I prefer โ€˜brewโ€™ย is that I do not have to remember where things are installed and brew manages and fixes any updates thatย have been introduced.

Waffle : Windows Single Sign On
· โ˜• 3 min read · โœ๏ธ Dinesh
Last week, I was working on an application where I had to do LDAP authentication. My cmpany has been using a very old jar file that had the required code for authenticating and authorizing users. There were two problems for me. I had to revisit the documentation on LDAP setting in Jboss 4 and figure how to do the set up. Making changes in login-config.xml etc. My new application is using Spring-boot, which comes with built in tomcat libraries.

4 ways to set up datasources in Jboss AS 7
· โ˜• 5 min read · โœ๏ธ Dinesh
Last year my company decided to move from JBoss 4.x/5.x to Jboss AS 7. We use Maven and IZPack plugin to create automated deployment to Jboss 4. As a part of IZPack plugin, we would write the install.xmls for various environment, which would help us deploy war files, log.xml, jars, properties file in respective folders. So the advantage was that Jboss-4 allows you to deploy several xxx-ds.xml files in deploy folder and you can have multiple apps deployed in same Jboss and each app uses itโ€™s respective xxx-ds.

PowerMock : How to test a private method
· โ˜• 4 min read · โœ๏ธ Dinesh
โ€œI HAVE THE POWER!!โ€ โ€“ I had this feeling a few days ago. I will be honest that at work I do not get time to write unit test cases for each and every piece of code that I write. Often when I do have time, I make an effort to write test cases even for the trivial piece of code blocks such as โ€” Check if properties file is present.