In the following article, I outline the process of making a simple interest calculator in Java and leveraging Swing GUI widget toolkit for Java. [Read more…]
Java offers eight primitive data types which are not always adequate to store data of all types. There are situations when the specific data type does not fit into any of the primitive data types offered by Java. Thus it is essential to understand the boundaries and restrictions of the primitive data types in Java. In this article, I demonstrate a couple of the scenarios in which the Java data types are not sufficient enough and require substitute approach.
Following is the first article in a series Java for Beginners that shows how to write an application class in Java and introduces the reader to dialog boxes, string to integer conversion and other basics of Java. [Read more…]
This article is just me thinking loud about creating something better than the simple wordcount.java example that is usually bundled with the Big Data solutions such as Hadoop – which I covered in the previous post. I wanted a script that would be a bit more complex and relate more to a meaningful web indexing. I wrote a Java program that acts as a Web Parser and can programmatically provide the meaning of any website by statistically judging its content. If ran against Google search results, it can also provide AI like answers to complex questions (such as ‘who is the president of some country’), or guess the closest meaning behind the set of keywords (such as ‘gold, color, breed’ will result in the response: ‘Golden Retriever) – see the examples below. Of course, this is just a result of a bit of a spare time. But it’s something that could perhaps be further explored, as a method to derive basic meaning behind the textual content in big data (to get the gist of the content in couple words). Anyhow, in the current form it’s just a further play on Hadoop’s wordcount.java.
Yahoo recently shut their Geo Placefinder API, leaving many who used it for WOEID searching based on latitude & longitude coordinates, scrambling for a solution. [Read more…]
YouTube recently dropped its support for RSS/Atom feeds and recently I was asked if there is a workaround. Or in other words, if it’s still possible to use Java to search YouTube by any keyword and retrieve a result of the most relevant video(s). After a bit of tinkering, following is the code that allows searching of YouTube by keyword (or entire sentence) in the currently supported YouTube Data API v3. [Read more…]
If you get following error message: “Content within this application coming from the website listed below is being blocked by Internet Explorer Enhanced Security Configuration” when installing Java SE Runtime Environment 8 on Windows Server 2012, this is the way to fix the issue. [Read more…]
This is a very short tutorial on how to parse any string that even slightly resembles a date into java.util.Date (instant in time, with millisecond precision).
It’s pretty straight forward. Following is the code… [Read more…]
This issue happens from time to time, where JComboBox is hidden behind a component or canvas. This is how you can very quickly fix the issue: [Read more…]
I have come across couple of com.google.android.gms.internal crashes in my Android application. An error reported through Google Developer Console looked something like this: [Read more…]
Eclipse CDT (64-bit version) crashing with error: ‘Java was started but returned exit code=1’ can be fixed by adding: [Read more…]