Using reusable objects/resources as a pool in Java is very common. In fact, the Java language itself comes with built-in thread-pool support. In this article, we will demonstrate how we can create a custom resource pool in Java. What is a Resource pool? A resource pool is a collection of reusable resources that can be shared among multiple clients or consumers in a … [Read more...] about Creating Custom Resource pool in Java
Programming
Understanding Golang Error Handling
As Golang is not the first language programmers usually learn, I assume you already have good knowledge in at least one other programming language and now expanding your knowledge to Golang. If you are just trying to find the error handling mechanism on the official API docs by looking for the try/catch mechanism, you probably got tired of finding that and may be thinking … [Read more...] about Understanding Golang Error Handling
Getting Started With NVML Python API
When I participated in Google Summer Of Code last summer, I worked for Ganglia, which is a very popular open source distributed monitoring system. I have worked on its nvidia gpu module, which is written in python language. This is my first official contribution to a widely used open source software. While working here, I came to realize that, there aren't that much … [Read more...] about Getting Started With NVML Python API
Getting Started With HTML5 Web Speech API
If you don't know about it yet, the HTML5 web speech API specification is now in working condition on google chrome and partially in the apple safari browser(See the browser support status here: http://caniuse.com/web-speech). That means you can now develop voice-driven web applications. We can hope that other browsers will start supporting this very soon as well. In this … [Read more...] about Getting Started With HTML5 Web Speech API
Getting Started With UDP Programming in Java
If you are familiar with basic networking protocols like TCP and UDP , you already might know TCP is reliable and used in most cases, especially for corruption-file download/requests over HTTP, email communications etc. However, some other large part is still considered better with UDP communications like multi-player game programming, live video streaming, and … [Read more...] about Getting Started With UDP Programming in Java