Told you, we love sharing!
Problem We had a use case where we needed to use machine learning to make predictions in real time. To give an estimate of what we consider real time - latency less than 10 milliseconds for our predictions. In this blog, we would discuss what is needed to have the kind of latency for machine learning models that we can use in production....
GR8Conf IN 2017, the second Indian edition of the GR8Conf was held on the first week of January in New Delhi. GR8Conf is an independent series of conferences in India, Denmark and the US that are dedicated to the Groovy and Grails community. The 2-day conference was attended by over 200 Groovy and Grails enthusiasts and technocrats...
We have been using Druid in our project for a while and had shared our experiences during GIDS. It has given us great results as it powers our real-time dashboards, reports on running Ad campaigns and provides real-time data to make quick decisions. But like any other databases there will be times when it needs to be optimized. This is...
Use Case While writing functional tests sometimes we need to test whether a certain javascript objects have some particular values. If we have a JavaScript object such as in our page [code] var myObj = { attr1 : 'attr1-val', attr2 : 'attr2-val'}; [/code] then after reaching that page we can execute the below in our GEB spec...
General Use Case When any application fails in production then it is necessary is to track how the execution went. For this the standard approach is to add logs. Logs can be helpful in tracking how the execution went but tracking the execution becomes more difficult in multithreaded applications. The logs start to get jumbled for...
Problem not covered by Java ExecutorService Java's ThreadPoolExecutor is a great tool. After configuring a thread pool we can keep on submitting Callables and get Futures. These futures can be used to get the values that the callable is supposed to return. In case we want to limit the execution time of this callable we have the...
Groovy Language enhancements that help with Regex Slashy Strings is the first thing that comes to my mind while talking about regex in Groovy. They are a simpler way to represent regex patterns as String compared to their Java counterparts. If we have to find all numbers in a String we can do something like this in Java [code] ...
There is a programming practice in many languages that if in a function call you don't care about the variable's value then use _ to denote this. This convention is usually used where lambdas are used. Some people may be using this in Java also. If you are using it then you should stop. You must be asking why? Simply because underscore...
Automated testing helps a lot in maintaining the quality of code. But setting up CI environments like Jenkins may seem like a hassle if you are working on small projects. Luckily for us there is a simple solution, at least for open-source projects hosted(or mirrorred) on github. Travis CI is a service freely offered to make builds...