Thursday, 13 September 2018

Cosmos and Me

Attribution: Shutterstock.com, Creator:Syda Productions

It is said that 'Self talk is a conversation with the Universe'. Here is an excerpt from the conversations with myself.

1. Who created this world?

WE did. We created this world. We all used to be together representing a single entity. We then entered a realm where change was the only way to survive. In other words, we became part of an expanse where anything that stops changing would eventually perish. Changing constantly as a single entity posed a big challenge. So we split some parts of us into multiple strands and created a sense of isolation (more of an illusion) to those strands of us, enabling us to express and act as an independent individual entity. However, we are always connected to the larger part of us, which we refer to as the Source or the Supreme. I visualize the cosmos as the source. The source is a repository of knowledge which we keep populating as we create new things as individuals. This new knowledge ensures change and helps us survive. So, the goal for these strands of energy is to create new knowledge and pour it into the repository.

2. How do we pour this new knowledge into the source repository?

Separation from the source is only an illusion to enable us to act on our own. The moment we create something unique, it will automatically get stored in the main repository.

3. When one puts the knowledge into the repository, is it accessible to the others?

Yes. But the knowledge base is huge, so you have to ask the right question or query to get the specific answer.

4. Are even the planets an illusion?

Yes, they are part of the illusion. Their purpose is to help individuals think beyond the obvious. It is one of the ways to expand the capacity of an individual.

5. What is the role of the spirits of the animals?

One strand of energy can further split itself and become independent to represent individual entities in this 3D world. Each entity referred to as a soul contains certain level of knowledge. Based on this, it manifests into a physical form capable of using this knowledge. This physical form could be a human or an animal. All of us have the same goal, accumulate new knowledge that is possible within our own capacities.

6. Why are we having so many natural disasters in the world?

We have explored 3D world to a good extent, and accumulated great ideas. But we learnt that the 3D world is not sufficient to implement some of these ideas. We need another dimension to be able to start something afresh. To accommodate this, Earth is going through a transformation.

7. What kind of changes is the new dimension bringing?

One of the key changes that I can think of is all of us having immunity to radiation. Another one could be that nature gives us an element that can replace the role of plastic or maybe give us a natural way to recycle it.

8. Why do we have an influx of thoughts all the time? Some thoughts are not even related to us.

Whenever we take a major decision like creating a new dimension, we need to enter into a group consciousness. Its a communication channel that connects all of us in this world of illusion. It simulates the way we were connected earlier as a single entity. This opens up pathways to allow thoughts to flow across to all in the network. We need more than half of the entities dreaming of the new dimension for it to manifest. So, thoughts from each entity flows into all entities in the network. It is the responsibility of each entity to process this bundle of information coming via thoughts and focus on the important ones. This is possible only through meditation which helps clear the noise in the incoming thoughts. At a subconscious level we know that we have to give prime importance to the new dimension and our focus is on it right now.

9. Can you please explain more about group consciousness.
Group consciousness is a telepathic way of communication within a group of entities. For example, the bees and ants work in group consciousness. Their communication is very quick and very synchronized. There is very less conflict. If a conflict arises, the entity with differing thoughts has the right to follow its own path. Free will is the basic right of all entities.

10. Do the animals play a role in decision making ?

Not all possess the ability to process that kind of information. However, some animals like elephants, dolphins and whales are equipped to participate in it.

11. Would humans and animals ever communicate like the way humans communicate with each other?
Each type of entity uses a certain range of frequency to communicate with each other. The communication is via a language of emotions or feelings. Hence, to communicate with an entity which is on a different frequency, you will have go beyond your survival instincts or habits and build an emotional relationship with them.

Entities of the same type do not prey on each other as they are emotionally connected. Predators on the other hand are on a different range of frequency and hence emotions do not come in the way when hunting or eating their prey. However, every entity has the option to change itself to connect emotionally with another entity.

12. What part do verbal languages play in all of this?
A verbal language was based on sound and vibration which can evoke an emotion. It is one of the greatest innovations added to our knowledge base post the isolation from the source.  

13. Some believe that the world is real. Some believe it to be an illusion. Why is there no consistency?
Both are true. The world can be viewed in two ways. One from the perspective of the individual who believes to be different from the source and another perspective is from the source itself. The source refers to it as an illusion as it creates it merely by projecting its thoughts. But the world is real for the individual entity, as it functions within the scope of the defined projection. When an individual becomes a spiritual seeker, he starts to see the world from the eyes of the source.

14. Why do we have so many representations of God?
In large organizations, we need many managers to manage work and employees. An employee interacts with his manager and follows instructions provided by him. These managers have one key responsibility -  guide the employees in the right direction. Similarly, entities who represent the Supreme leave behind a legacy of information and instructions for other entities.

15. So, we have one GOD like the CEO of an organization?
The Organization is GOD. This organization includes all entities. So, we all represent God at some level.

Related articles:
Technology and Spirituality

Tuesday, 30 January 2018

Call IBM Watson Conversation API from Java file

Here is a simple java file which can query a Watson Conversation workspace. The below code uses main method to prompt for question and then responds by getting the answer from Watson conversation. 

For your first question, it will return the default output of greetings. The following questions will receive the expected response as the context has been set. 

Steps:
1] Create a Watson Conversation service in your IBM Cloud (previously known as Bluemix) account. Refer documentation.
2] Create a workspace in the Watson Conversation service. Here is a cars sample workspace on github. You can also check out the application hosted here.
3] Download the watson-developer-cloud jar file to your local system and keep it in your classpath. I have used the java-sdk-4.2.1-jar-with-dependencies.jar file.
4] Following is the code for WatsonConversation.java file


import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

import com.ibm.watson.developer_cloud.conversation.v1.Conversation;
import com.ibm.watson.developer_cloud.conversation.v1.model.Context;
import com.ibm.watson.developer_cloud.conversation.v1.model.InputData;
import com.ibm.watson.developer_cloud.conversation.v1.model.MessageOptions;
import com.ibm.watson.developer_cloud.conversation.v1.model.MessageResponse;

public class WatsonConversation {
   
    public static void main(String[] args) {
        BufferedReader br = null;
        MessageResponse response = null;
        Context context = new Context();
        try {
            br = new BufferedReader(new InputStreamReader(System.in));
            while (true) {
                System.out.print("Enter input : ");
                String input = br.readLine();
                if ("q".equals(input)) {
                    System.out.println("Exit!");
                    System.exit(0);
                }
                response = conversationAPI(input,context);
                System.out.println("Watson Response:"+ response.getOutput().getText().get(0));
                context = response.getContext();
                System.out.println("———–");
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static MessageResponse conversationAPI(String input, Context context){
        Conversation service = new Conversation(Conversation.VERSION_DATE_2017_05_26);
        service.setUsernameAndPassword("<username>", "<password>");
       
        String workspaceId = "<workspace ID>";
        InputData inputData = new InputData.Builder(input).build();       
        MessageOptions msgOptions = new MessageOptions.Builder(workspaceId).input(inputData).context(context).build();
       
        MessageResponse response = service.message(msgOptions).execute();
        //System.out.println(response);
        return response;
    }

}



5]Update the code above with the credentials of the Watson Conversation in your dashboard.
- Open the Watson Conversation service from IBM Cloud dashboard.
- Click on the Service Credentials. Expand the service credentials in the table. You will get the username and password there. In case you do not find the credentials. Create new credentials and use them.

6] Update the code with the workspace ID.
- Launch Watson Conversation service. Your workspaces are listed there.
- Click on the three dots of your workspace and select View details.
- It will give you the workspace ID.


7] Compile WatsonConversation.java and run it from the terminal. Ensure to have the jar file in the classpath. 

8] You will get prompt - 'Enter Input : ' and you will get a welcome or greeting message.

9] If you are using the cars sample workspace, then you can try 'turn on the lights', etc.

Sunday, 7 January 2018

Technology and Spirituality

Attribution: Shutterstock.com, Creator:Sergey Niven

Is Technology emulating the ways of the spiritual world? Is Technology (re)teaching us ways on how to grow spiritually?

There are a few glaring similarities that I would like to share here. To understand this better you would require some knowledge on spirituality and software programming or technology.

1.       Software Programming: If conditions and Loops

Universe is a huge complex program with all life forms acting as programmed entities. This complex program can also be referred to as the universal grid which can be accessed by all entities living on Earth. At every decision point in its life, an entity lands on a set of predefined paths. Awareness of all the paths and the ability to choose the right path is dependent on the knowledge gathered by the entity. Lets contextualize these entities to humans.

Every human has accumulated knowledge which is used while taking a decision. The more informed you are, the probability of choosing the right path is higher. Every possible path for a decision or action is already present in the program. There may be millions of if conditions at every step. If I said ‘Yes’ to this job, then I take this path, else I take the other path. Even though the paths are predefined, the decision on which path to take is ours. Karma says, ‘your future is decided on the actions you have taken previously’. This is the way the universe is programmed. You take the decision and enter into one of the predefined paths. We spend most of our early years learning about right and wrong to make us capable enough to take the right decisions when needed. This emphasises on how important a childhood is. If your foundation is strong, you choose the right path sooner.

Among these paths, some of them are loops. Loops take you back where you started. Most times, people don’t realize it, or even if they do realize that life has gone backwards, they still continue making the same mistake and enter the same loop again. If these loops span long, then it is really hard to notice it. But with shorter loops, you should be able to observe the pattern and choose a different path the next time round. A very simple example are wars. It is an unending cycle of violence unless one party chooses to take a different path. This will end the cycle. Apply the same theory to your own life. If life is putting you again in front of the same problem, then think. Do not repeat your last decision. You are wiser now. You have learnt your lesson. Revisit all the options and decide wisely.

2.       Software Technology: Database

When an individual gathers more knowledge by using his cognitive ability, he discovers new paths on the universal grid. When new paths are found, the journey or the learning which led to discovering that path gets stored within the individual’s soul and also into every other soul via the universal energy grid which is accessible to others who have the ability to process that level of knowledge. There is no need to have direct connect between the individuals to share knowledge. Everyone has access to the database within. You just have to ask the right question or query.

3.       Software Technology: Search Engine

By far this is the best learning that has changed the way of life so drastically. Search engines (Ex: Google search) have taught us to ask the right question. Over time we have learnt the art of framing the right question and have accepted the importance of it. Our brains are automatically functioning this way now. It is so ingrained in us, that if we are seeking answers from the universe, we start to frame our query using the same technique. A very clear and specific query helps in getting the answers quickly from the database on the universal energy grid. If your query is vague, then it will take a long time to search for the answer and may eventually return null.

4.      Software Technology: Blockchain - network, consensus, immutability and distributed ledger

The universal grid is like a Blockchain network connecting all of us. It is an open public network with anonymous users.  Each of us carry a copy of the universal database in our soul. Hence, we say, the entire world is within us. We store our experiences in the database which cannot be altered, just like the immutability feature of the distributed ledger in Blockchain. All other data related to our current life is stored in a different database which can be overwritten as needed.
The decisions we make individually gives way to form a path for the world. In other words, the world treads into a path that was collectively endorsed by humans. This is similar to consensus in Blockchain.

5.       Software Technology: Social Media (Ex: WhatsApp, Twitter, Facebook, etc.)

Knowledge from the universal grid is pouring into humans all the time. Most information can be irrelevant to the current state in your life or maybe completely negative which is not required for you. Some have the ability to identify them and discard them into some sort of trash bin. Others tend to react to such information. This is very similar to what people are going through in groups like WhatsApp, Twitter, etc. There is huge number of fake news creating so much noise, polluting the knowledge database and taking up storage space. Hopefully in the future, social media companies will put in a mechanism to detect fake and outdated news and flag the message accordingly.
Another similarity is how social media is bringing like-minded people together. In the universal gird, there are multiple dimensions. Based on the decisions you make, you are connected to a dimension which enables you to meet people who have taken similar decisions in life or encounter situations that are similar.

6.       Software Technology: Internet to share knowledge

When majority of the people choose hatred and revenge as response to a problem, then there is no resolution. Along with the people, the world too goes into a cyclic motion of events. Many paths go out of reach and we go into a mode of regression. We lose access to the knowledge that was discovered. An example is the Vedic science which had discovered so many paths but is forgotten by the current world. Many of this knowledge is getting rediscovered. But why did we lose the previous knowledge. What went wrong?

An individual who has learnt the methods of positive thinking, meditation and yoga is the one who has higher cognitive skills and has the ability to access all the knowledge accumulated within. His/her responsibility is to share this method with all. Perhaps, this basic education was limited to a privileged few in the past and we eventually lost the ability to connect within. 

Internet has given us a platform to share knowledge with the whole world.

7.    The latest transformation

There was a time when the goal of all teachings was to identify good and bad. Today we spend most of our time figuring out whether it is real or fake. Be it articles or messages or videos, the first thought that comes to mind is its authenticity. Some of us check online for more information to verify it. Could it be just about losing trust in people due to commercialization of everything or is technology enhancing our cognitive abilities to be able to recognize the world of illusion, a world manifested by someone else.

Related articles:
Cosmos and Me