Java recognizes three types of loops, namely ‘for,’ ‘while’ and ‘do-while’ loops that all accomplish the similar goals of iterating the block of code until a certain condition is met. The following article explores the differences between each of the loop variants and demonstrates the situations when choosing one type of loop over the other can be a benefit. There are many examples of using all three types of loops, but I’ve selected the general form and the infinite loop to illustrate the primary differences.
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…]
Let’s say we have 3 arrays of following tetromino letters: J, L, O. Tetromino J is a 4 member long array (J,J,J,J), signifying the number of positions J block can take. L tetromino is also a 4 member long array and O is a square tetromino that has only one position (1 member long array). How do we calculate the total number of all unique n-letter long permutations, without programmatically permuting through them? [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…]
Robocopy (aka “Robust File Copy”) is a very useful command-line directory and file replication tool that replaces and enhances the functionality of Xcopy, adding a slew of valuable options, especially when it comes to file synchronizations, mirroring and file backups in general. [Read more…]
In the first post, I have explained how to schedule nightly backups of Amazon Lightsail Instance by leveraging AWS Command Line Interface (CLI). In this post, I’ll show you how to create a bash file that can be scheduled to remove old AWS Lightsail snapshots and retain only a specific number of snapshots in your account.
The following is the Best of YouTube (Most Popular) Videos by Country.
The following article is a step by step guide on how to sync Fitbit data into a Google spreadsheet. [Read more…]
A little bit of research on Browser support for functions keys. The keys marked with OK are available to programmers, the rest is dedicated to the browser specific functionality. [Read more…]
Web administrators transitioning the existing WordPress sites (and image resources) to Amazon S3 have couple of paid plugins to choose from to ease the move to S3. However, most of the WordPress plugins come at a pretty hefty prices, some as high as couple of hundred dollars. The following guide outlines the step by step option that is completely free of charge. [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.
In this article I’ll outline my position on AJAX application model and try to provide an answer the following questions:
- Is AJAX just another fad, or will it continue to promote the development of Web-based software?
- Can an application model ever actually be taken seriously when it does not normally allow information storage on the local client or when certain users prefer working in an offline mode?
I’ll also explain whether I think that AJAX will continue to encourage the development of Web-based software or if we should use other technologies instead.