Posts

Showing posts with the label programming

Speech Recognition Library for java

Hi,      We have seen Google's Assistant and IOS's siri and JARVIS etc. these AIs' are not single functionality to achieve easily. we need to recognize speech and act based on that and speaking text to out. So many things needed to achieve these.           In that Taking input from user also major role i.e Speech Recognition      So this post is showing how to code Speech recognition in java, i have searched many sites to find the library for this. finally i found Sphinx4 library for java which is open source.      i couldn't wait to implement this, so started coding. if your not going in-depth its all about few lines of code to recognize your voice. i just want to show the code as simple as possible.      Previous version of Sphinx we used to write dictionary to recognize. In '.gram' file we were giving words to recognize these called voice tokens.     But now we have tokens ready wi...

Java program to solve Sudoko problem

Hi All,   we know Sudoku is a famous game or brain twister to time pass or improve your logical skills. So thing is that what if some one ask to solve Sudoku in seconds ? or if you are a programmer what if some one ask you to write Sudoku program ? Here is the solution for that. For Quick inputing purpose am just initializing matrix on program(hard coding) instead of taking inputs from standard io or command line. public class Sudoku { public static void main(String[] args) { int[][] matrix = {{0, 4, 3, 7, 0, 0, 9, 0, 8}, {0, 0, 5, 0, 3, 0, 0, 0, 0}, {0, 1, 0, 0, 0, 0, 3, 0, 0}, {6, 0, 0, 0, 2, 7, 0, 0, 0}, {4, 0, 7, 0, 0, 0, 1, 0, 3}, {0, 0, 0, 5, 4, 0, 0, 0, 9}, {0, 0, 2, 0, 0, 0, 0, 3, 0}, {0, 0, 0, 0, 5, 0, 4, 0, 0}, {5, 0, 4, 0, 0, 1, 2, 6, 0}}; myWriteMat(matrix); solve(0, 0, matrix); myWriteMat(matrix); } static void myWriteMat(int matrix[][]) { int n = (matrix.length * 3) - 2; for (int i = 0; i < matrix.length; i++) ...

Reading json file from some location and sending it in Response body - Spring boot hello world example

Before going to give Program for this let me introduce Spring boot first.      Spring boot is Frame work from Spring Developers Team. To ease the development of Spring applications. its not any new or different framework than spring framework, Spring boot is built on top of spring framework which helps doing spring configurations with annotation. its the latest Framework which is using vastly now a days. Am going to give git hub location for the code which you can pull of fork it. Click Here for GitHub location. Explanation for Project:      The project is simple Spring boot Application. which reads json file and convert it into object and send it as json response. This project is use full in implementing dynamic fields of UI. (Performance tuning required)

Make Your Web Usage Automatic-For Firefox Users

Greasemonkey is a Mozilla Firefox extension that allows users to install scripts that make on-the-fly changes to web page content after or before the page is loaded in the browser      This installed scripts do their work when the particular page is loaded. for example. think that you are doing some online jobs or something.in that assume answering polls 'll get you some money, at that time if you are programmer also you are helpless you have to enter all poll answers, you know the javascript code to answer automatically but where to enter?.so here Greasemonkey provide that platform to execute your javascript code to live web sites.means when ever you enter that particular website the work(that you programmed in javascript) 'll done by this Add on. Note :for this you have to know javascript coding. CLICK HERE Download that Add on

Download Free Computer Graphics E-book

Image
Hi friends as per requests am just uploading only books.Today am here with new book Computer Graphics (C version) Author:Donald Hearn,M.Paulin baker Click Here To Download

the complete reference c++-free ebook

Image
hi friends download the complete reference c++ ebook Author:Herbert Schildt Edition :4th editon Click here to download

Download free book "Let Us c"

hi friends here is another book...."Let Us C" Fifth edition by Yashavant P. Kanetkar      The book which is helpful for c programmers...n it is easy to understand for beginners    Click here to download the free Book

Installing andriod development tool to eclipse

Image
Today Am going to explain how to install andriod in eclipse Before going to install to eclipse make sure that you installed -jdk version 1.6 -sdk version 2.x(x-any version in 2,sdk-android software development kit) -set your device in Avd manager -eclipse indigo these are all the minimum requirements(and minimum versions) Now start with eclipse-indigo  -Goto Help-Install new software  -click on "Add" button   (The dialogue will appears as shown in image)  -enter any name you want(ADT plugin is preferred)  -copy the below address to that Location area(If you have interenet in your system)   https://dl-ssl.google.com/android/eclipse/  -(Another method for location area : incase you already downloaded the ADT plugin    - click here to download ADT plugin20.0.3 -browse this downloaded file into    Location area then press "ok".select the only "development tools" and uncheck the    last option ...

Download free ocjp or scjp material for free

hi friends,this is the preferred scjp or ocjp exam SCJP SCJD 1.6 Kathy Sierra & Bert Bates most of questions are asked by this book u can get more than 90% marks by this book. this book authors only set the scjp or ocjp exam questions. click here to download

c program to reverse string without using library functions

#include<stdio.h> #include<string.h> main() {  char str[50],revstr[50];  int i=0,j=0,n=0;  printf("Enter the string to be reversed : ");  scanf("%s",str);        while(str[n]!='\0')         //to get string length     {       n++;     }    for(i=n-1;i>=0;i--)        //at 1st iteration i=total length-1    {      revstr[j]=str[i];      j++;     }  revstr[j]='\0';  printf("Input String : %s",str);  printf("\nOutput String : %s",revstr);  getch(); }

Head First HTML with CSS and XHTML free download

very good book for learning html with css published by:o'reilly Head First HTML with CSS and XHTML click here to start download

Head First Servlets and JSP free pdf download

This is the book for servlets and jsp. Edition: 2nd edition Authors: Bryan Basham , Kathy Sierra , Bert Bates Download from below link: click here to start download

Head first java book free download

Hi guys,here is an head first java's ebook. the best book for java. Author:Kathy sierra, Bert Bates Edition: 2nd edition Download it from below link. click here to start download  

java program to check whether the given number is prime or not

import java.util.*; public class IsPrime {     public static void main(String[] args)     {         Scanner sc=new Scanner(System.in);         boolean flag=true;         int n=sc.nextInt();         if(n>=2)         {             for(int i=2;i<n;i++)             {                 if(n%i==0)                   flag=false;             }             if(flag)               System.out.println("is prime");             ...

java program to print 1 to n prime numbers

import java.util.*; public class PrimeNumber {     public static void main(String[] args)     {         Scanner sc=new Scanner(System.in);         int n;         boolean flag=true;         n=sc.nextInt();         for(int i=2;i<=n;i++)         {             for(int j=2;j<i;j++)             {                 if(i%j==0)                    flag=false;             }             if(flag)                System.out.print(i+...

C Program to check strong numbers...

//example for strong number..145! is strong number i.e 1!*4!*5!=1*24*120=145! #include<stdio.h> int fact(int n) {  if(n==0)    return 1;  else   return n*fact(n-1); } void main() { printf("enter number:"); scanf("%d",&n); while(n>0) { dig=n%10; n=n/10; sum=sum+fact(n); } if(sum==n)   printf("%d is strong number",n); else   printf("%d is not strong number",n); }