In mathematical logic, a predicate is commonly understood to be a Boolean-valued function P: X→ {true, false}, called the predicate on X. Informally, a predicate is a statement that may be true or false depending on the values of its variables. It can be thought of as an operator or function that returns a value that is either true or false. For example, predicates are sometimes used to indicate set membership: when talking about sets,

Read more 0

Java has always been an Object Oriented programming language, it means we can't have a function without its class. Other programming languages like C++, PHP, Python, JavaScript and many more, where we write functions and use anywhere, all these languages support functional programming along with Object Oriented programming. Java introduced Functional interface & Lambda Expressions in Java 8, to leverage functional programming to reduce verbosity. What is functional Interface? A Functional Interface is an interface

Read more 0

Lambda Expression

Lambda expression is a concise representation of an anonymous function which can be passed as an argument to a method or stored in a variable. We call it anonymous function because it isn't associated with a particular class like a method does and it doesn't have a explicit name like a normal method. Like any regular method a lambda has a list of parameters, body, return type and list of exceptions which can be thrown.

Read more 0

New features introduced in java 8

New features introduced in java 8 Here are the list of high level features introduced in Java 8 along with lots of enhancement at complier and JVM level: 1. Lambda Expressions Lambda expression is a concise representation of an anonymous function which can be passed as an argument to a method or stored in a variable. Click Here more details 2. Functional Interface A Functional Interface is an interface which specifies exactly one abstract method.

Read more 0

NetCat multiple port

To test if a port is open on a remote host or not. Our networking guys always use to tell that they opened the port, you can't always run your code to test it. If you are on windows then you can do telnet. To enable the telnet on Windows 10, Click here Open the command prompt and run the following command: telnet 192.168.1.205 80 If it is successful, that it will enter on the

Read more 0

free port on MacOSX or linux terminal

Sometimes when we start application on MacOSx or linux they don't start, because an port is already occupied by application which terminated unexpectedly or by some other application. Developers face these kind of issue more frequently, when we run java application in our IDE eclipse or IntelliJ Idea and switch between run/debug or error in run/debug. Now we need to free the port which was occupied by an existing instance of the application or any

Read more 0

Sometimes when we run java application on windows platform, it doesn't start tomcat and says port 8080 already in use. To resolve this issue, we have to kill the process running on port 8080. Below are the few simple steps to release port 8080. Start you command prompt as an administator: Run the following command to get the process which is using the port 8080: netstat -o -n -a | findstr 0.0:8080 To kill the

Read more 0

NoSQL

NoSQL Databases is also called as “Not Only SQL”. NoSQL does not prohibit the SQL (Structured query Language). It employs less Consistency model for storage and retrieval of data than traditional relational databases. Some of the NoSQL databases are completely non-relational, others avoid relational functionalities as Fixed table schemas and joins. Most of the NoSQL databases are highly optimized “Key-Value stores” or “tuple stores”, for simple insertion and retrieval operations. NoSQL approach started with the

Read more 0

java7 install

If you are running an older version on java on your Ubuntu 12.04 environment, you must remove it before installing Java7. Do the following to remove: $sudo apt-get purge openjdk* If you installed java 7 earlier and having problem with java then you have to do the following to remove it: $sudo rm /var/lib/dpkg/info/oracle-java7-installer* $sudo apt-get purge oracle-java7-installer* $sudo rm /etc/apt/sources.list.d/*java* $sudo apt-get update Installing Oracle Java7 on Ubuntu 12.04 LTS: $sudo add-apt-repository ppa:webupd8team/java $sudo

Read more 0

Install APC

APC is Alternative PHP Cache. APC is an opcode cache that speed up your PHP applications, by caching both PHP code and user variables. Adding APC to an application improves application response time, reduces server load and make your users happy. This is a free, open, and robust framework for caching and optimizing PHP intermediate code. APC reads your PHP files, parses them into binary format and then caches them in memory so that each

Read more 0