Make your own Voice Command App using Java and Sphinx4

Hello and welcome to another tutorial on Java, In this tutorial we’ll be creating a Voice command application using Java and Sphinx4 Speech Recognition Library for Java.

If you are new to this Voice Command term, there are many apps that serve as an example in reality. If you are an Android user, you must have used the Google App where you speak “Ok Google” and it listens to your command and if you say something like “open google”, it’ll automatically launch Chrome and open Google.com on it.

Continue reading “Make your own Voice Command App using Java and Sphinx4”

Harvesting Email Addresses from a Website using Java

In this tutorial we’ll be creating a small java command line application to extract email addresses from websites, a program like this comes in handy for people who are into advertising and stuff.

So before we jump right into programming, lets think about the possible steps of the program.

Continue reading “Harvesting Email Addresses from a Website using Java”

Neophyte’s Path to Programming

 

We, Humans, use a language to communicate with others. A language that another human understands. Computers get fed with instructions which they have to execute but these instructions belong to a language that a computer understands, Hence Programming is a medium of communication between a computer and its user. Programming allows a user to input a set of instructions that belongs to the language that a computer understands in turn the computer executes the instructions to produce some useful results. Example of programming languages are C#, Java, Python, PHP.

This article has been written not to explain programming concepts but to give beginners a heads up when they start new with Programming because many beginners think that they can learn programming in a breeze which is awfully untrue.

Continue reading “Neophyte’s Path to Programming”

Introduction to Merge Sort

What is Merge Sort?

t is a sorting algorithm which uses comparison operator (=<) to choose which items of the 2 should be placed first, In fact it uses a well known method of “Divide and Conquer” to perform it’s task.

Since the term MergeSort has 2 parts:

1) Merge
2) Sort

So I’ll be explaining each part first and then will explain as whole In this way you’ll under this better.

Continue reading “Introduction to Merge Sort”

Introduction to Sorting and Sorting Algorithm

*Bold items indicate importance

Hello guys and girls!

Today I will introduce to an important topic in Computer Science and that is Sorting, I will try to explain as easy as I can for user understanding. We will also be explaining 2 related algorithms that make our work more easier but be aware that I’ve written the Algorithm code in Python 3.3 so be sure to have a Python understanding. So first lets see what Sorting is?

What is Sorting?

Lets take an example of a List of Names:

names = ['Deque', 'bluedog.tar.gz', 'Arkphaze', 'Hackcommunity', 'noize', 'Linuxephus']

Now you can see that each name has a different length and can be arranged by either placing them from Short Length to Long Length

Continue reading “Introduction to Sorting and Sorting Algorithm”

Intro to Python Strings

In python strings are represented by enclosing them between

1) Single Quote ‘ ‘
2) Double Quote ” “
3) Triple  Quote ”’ ”’

For example:

‘WordPress’, “Procurity”  

Those two are basically python strings. We will discuss Triple Quote in later lessons as they are used mainly for description.

In this tutorial we will discuss:

1) String Indexing

2) Slicing Strings

3) String Concantation

4) String Formatting

Continue reading “Intro to Python Strings”

Reading and Writing Files in Python – PyStarter

Python comes built-in with many functions, some of those functions allow us to read a file and write to a file. The step involved in reading a file is to open it and afterwards read it’s contents,  then either store it in a variable or print it directly.

To open a file in python we use the function open() , The syntax for open function is:

file object = open(file_name [, access_mode][, buffering])

Let me explain the parameters:

1) file_name is the name/location of the file that you want to open

2) access_mode is the way how you want the file either open it in read mode only or write mode only or even both.

Continue reading “Reading and Writing Files in Python – PyStarter”