Visualization – constructing life from a space inside our brains

why you should make visualization a daily practice

If you were ever involved in competitions or sports, chances are your coach asked you to imagine winning. How does it look, feel and sound? At the time, it might have seemed strange: reclining in a dark room, eyes closed, listening to imaginary scenarios. But there’s science behind visualization practices.

After all, Visualization is based on manipulating thought patterns through suggestions. Visualization actually have neurophysiological profiles. Nothing is being done to you; instead, it’s you who is tapping into something deep within the brain folds, accessing your creative power.

Successful people all over the world use visualization to spawn dreams into reality realms. Visualization is just concentrated dreaming. It’s mind over matter. It’s constructing life from a space inside our brains.

When digging a little deeper, visualization becomes less about winning and more about self-improvement than anything else. With visualization, you can create a world built from your own energies and desires. There are so many reasons why it will help you grow as a person. And there are so many ways you can do it.

Here are a few of the things that visualization can do for your well-being when it becomes part of your routine:

Visualization builds courage :

Visualization provides plenty of strength and courage to tackle daunting tasks. Afraid to get on stage? Nervous about an upcoming performance? Unsure of how to win that competition? Using visualization triggers hormones and synapses that make it easier to achieve those goals. When you’ve already envisioned the scenario, the real thing will feel familiar and much more feasible. It will be as if you’ve done it before. And inside your brain, you have.

Visualization combats negativity :

Visualization brings moments of positivity in a world sometimes full of negativity. So often, people respond to dreams with statements like, How will you do that? or That’s going to be so hard to accomplish. And yeah, sure, it will be hard, but you’re totally up for the challenge. During a visualization session, you get to live out your dreams despite what others say. It’s an effective way to battle that negative voice inside your own head, too.

Visualization bolsters creativity :

Visualization allows creative moments to exist, something the mind desperately needs. We tend to exist in scheduled spaces and confines of time. Fostering a practice that gives your mind a break from the mundane will be a relief to your psyche. Our brains need breaks—ones full of promise and fantastical visions, ones free from the chains of social constructs and full of creativity.

Visualization gathers energies :

Visualization fulfills the law of attraction, which facilitates dream building. Energy goes where attention flows. Want something badly enough? Then go ahead and dwell on it in healthy, optimistic ways. The more you visualize yourself living the life you want, the sooner universal energies will align with you to give you what you want. But don’t forget that being proactive is required and supports your visualization practice.

Visualization fosters purpose :

Visualization develops belief in self and creates a fulfilling life. When we lose hope, we lose so much. Hope is a catalyst for change. A life longing for something is worth the effort. Discover what you long for and visualize it every chance you get. You won’t be sorry. Actually, you’ll be amazed at how that personalized longing will propel you in directions you didn’t think were possible. Visualization can make that happen, but first you’ve got to believe.


Integrating salesforce SOAP API using C# .NET

Salesforce can be integrated with any .NET based application through the salesforce SOAP API. This article will show how to connect to salesforce and consume data within ASP.NET application.

Before we begin, there are a set of prerequisites that you need to get done in order to interact with salesforce API using the C# .NET.

  • Username and Password (salesforce logins)
  • SOAP API (WSDL file)
  • Security Token

Username and Password

You can register for a developer license in case you don’t have a user name and password at


To get WSDL SOAP API, need to login salesforce and click “Set up” on right top Corner. Then go Develop > API and right click on “Generate Enterprise WSDL” under Enterprise WSDL (as we using “Enterprise WSDL” web service) and click on “Save Link as….” to save (enterprise.wsdl) file to somewhere in your computer.

Security Token

My Setting > Personal > Reset My Security Token

.NET Application

Let’s start exploring the SOAP API functionality by creating a sample .Net application and connect into Salesforce.

Here are the steps that can be taken to setup the Enterprise WSDL:

Create new ASP.NET Empty Web Site

Adding a Web Service Reference to website

select “Add Service Reference”.

Click “Advanced..”

Click “Add Web Reference…”

In Add Web Reference dialog type path of saved “enterprise.wsdl” file in URL: and click “Enter” then change Web reference name to “SFDC” then click “Add Reference”.

Now Salesforce SOAP API added into our website

Now that the base website is created and a reference setup to the Enterprise WSDL, we can transition to writing code that calls the API.

The first step is to have Salesforce authenticate us as a user. Once the authentication with Salesforce is successful, additional authentication information, such as the Session ID and URL will be returned. This information is needed for subsequent API calls.

The Session ID can be cached in your application for periods less than the timeout period. Go to “Setup > Security Controls > Session Settings” to see what your timeout is.

Here is example code showing how to authenticate against Salesforce :

using SFDC;
protected void Page_Load(object sender, EventArgs e)
    bool ConnectionStatus;
    ConnectionStatus = ConnectSFDC();
    //rest of the code

public bool ConnectSFDC()
     string userName = "";
     string password = "...";
     string securityToken = ".........";

     System.Net.ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls;
     SforceService sfdcBinding = null;
     LoginResult currentLoginResult = null;

     sfdcBinding = new SforceService();
           currentLoginResult = sfdcBinding.login(userName, password + securityToken);
     catch (System.Web.Services.Protocols.SoapException ex)
                // This is likley to be caused by bad username or password
                sfdcBinding = null
                //lOG ex
                return false;
      catch (Exception ex)
              // This is something else, probably communication issue
                sfdcBinding = null;
                //lOG ex
                return false;
       //Change the binding to the new endpoint
       sfdcBinding.Url = currentLoginResult.serverUrl;
       //Create a new session header object and set the session id to that returned by the login
       sfdcBinding.SessionHeaderValue = new SessionHeader();
       sfdcBinding.SessionHeaderValue.sessionId = currentLoginResult.sessionId;
       // create required sessions 
       return true;

Validating SMTP host information

How can I test SMTP is up and running via C# before sending a message?

You can try calling GetStream() to your server and see if it responds with a message starting with 220. Of course this test doesn’t guarantee you that you will succeed sending the mail later, but it is a good indication.

public static class SmtpChecker
        public static bool Check(out string returnMessage)
                using (TcpClient smtp = new TcpClient(ConfigurationManager.AppSettings.Get("SMTPServer").ToString(),Convert.ToInt16(ConfigurationManager.AppSettings.Get("SMTPPort")) ))
                using (StreamReader reader = new StreamReader(smtp.GetStream()))
                    returnMessage = reader.ReadLine();
                    //validate the reasponse
                    if (returnMessage.StartsWith("220", StringComparison.InvariantCulture))
                        // MailServer responds with: 220 HostName ESMTP
                        //Send QUIT as recommended by RFC 821 
                            using (StreamWriter w = new StreamWriter(smtp.GetStream()))
                                string result = reader.ReadLine();
                        catch (Exception ex)
                            returnMessage = ex.Message;
                            return false;

                        return true;
                        returnMessage = "";
                        return false;
            catch (Exception ex)
                returnMessage = ex.Message;
                return false;

and here’s the list of codes to expect :

Reply codes in numerical order
Code – Meaning
200 – (nonstandard success response, see rfc876)
211 – System status, or system help reply
214 – Help message
220 – Service ready
221 – Service closing transmission channel
250 – Requested mail action okay, completed
251 – User not local; will forward to
252 – Cannot VRFY user, but will accept message and attempt delivery
354 – Start mail input; end with .
421 – Service not available, closing transmission channel
450 – Requested mail action not taken: mailbox unavailable
451 – Requested action aborted: local error in processing
452 – Requested action not taken: insufficient system storage
500 – Syntax error, command unrecognised
501 – Syntax error in parameters or arguments
502 – Command not implemented
503 – Bad sequence of commands
504 – Command parameter not implemented
521 – does not accept mail (see rfc1846)
530 – Access denied (???a Sendmailism)
550 – Requested action not taken: mailbox unavailable
551 – User not local; please try
552 – Requested mail action aborted: exceeded storage allocation
553 – Requested action not taken: mailbox name not allowed
554 – Transaction failed

Dependency Injection in C#

Dependency Injection (DI, wikipedia) is a design pattern that reduces hard-coded dependencies between your classes by injecting these dependencies at run-time, instead of during design-time. Technically, Dependency Injection is a mechanism that allows the implementation of another, more high-level, design pattern called Inversion of Control (IoC, wikipedia). The purpose of both patterns is to reduce hard-coded dependencies (or ‘coupling’) between your classes.

 What are dependencies?

 Suppose that you are building a web application that is going to send e-mails to visitors that have entered a form. In object-oriented code, it is important to separate responsibilities. So you’ll probably end up with a class that handles the form input (FormHandler) and a class that is responsible for sending the e-mails (MailSender).

The MailHandler class looks like this:

public class MailSender
    public void Send(string toAddress, string subject)
        Console.WriteLine(“Sending mail to [{0}] with subject [{1}]”, toAddress, subject);

your FormHandler class will look like this:

public class FormHandler
   public void Handle(string toAddress)
        MailSender mailSender = new MailSender();
        mailSender.Send(toAddress, “This is concrete code implementation example”);

Although there’s nothing wrong with this code, it is creating a dependency between the FormHandler and MailSender classes.

The dependency is created at line MailSender mailSender = new MailSender();.

Using the New keyword in your code to instantiate a class implies that you are creating a dependency. From a practical point of view, you are telling your FormHandler class to use a concrete implementation of the MailSender class. There’s no flexibility. ‘But why’, you ask, ‘is this a bad thing?’. Let’s take a look at some reasons …

Why are dependencies a bad thing?

  • You can’t use multiple implementations of the MailSender class
  • It makes unit testing (nearly) impossible

The bottom-line is that your FormHandler shouldn’t know what concrete implementation of the MailSender is used. What concrete implementation is used, should be determined outside of your classes. That way, you can swap out the MailSender with another implementation if the need arises. If you are writing unit tests for the FormHandler, you can swap out the MailSender class with a mocked version.

we have to do is rewrite our code to use Interfaces. This is required for Dependency Injection, but is good practice anyways. An interfaces is basically a contract between classes that force one class to behave exactly as described by the interface. The contract can be implemented by other implementations (different class, same behavior).

We create a very straightforward interface for the MailSender class:

public interface IMailSender
    void Send(string toAddress, string subject);

We also rewrite the MailSender class to implement the IMailSender interface:

public class MailSender : IMailSender
    public void Send(string toAddress, string subject)
        Console.WriteLine(“Sending mail to [{0}] with subject [{1}]”, toAddress, subject);

We’ve basically told C# that the concrete implementation of our MailSender class follows the IMailSender interface (or contract). It is now possible to create other concrete implementations that follow the same interface but do different things ‘under the hood’,

for example:

public class MockMailSender : IMailSender
    public void Send(string toAddress, string subject)
       Console.WriteLine(“Mocking mail to [{0}] with subject [{1}]”, toAddress, subject);

Right now, we can change which concrete implementation is used by our FormHandler by rewriting the code where the class is instantiated:

public class FormHandler
    public void Handle(string toAddress)
         IMailSender mailSender = new MockMailSender();
        mailSender.Send(toAddress, “This is still a concrete implementation “);

Of course, this already adds a lot of flexibility to our code, as we can swap out which concrete implementation of IMailService is used by changing line IMailSender mailSender = new MockMailSender();.

Although C# will now force you to implement the IMailSender interface to the letter, your code will already improve a lot by using interfaces. The next step is to implement manual dependency injection to get rid of this code change that is required to change which implementation is used.

Implementing manual dependency injection:

 Basically, we’re going to pass the dependency in through the constructor of the FormHandler class. This way, the code that is using the FormHandler can determine which concrete implementation of IMailSender to use:

public class FormHandler
     private readonly IMailSender mailSender;

     public FormHandler(IMailSender mailSender)
          this.mailSender = mailSender;

    public void Handle(string toAddress)
          mailSender.Send(toAddress, “This is manual dependency injection”);

The code that creates our FormHandler has to pass in a concrete implementation of IMailService. This means that control is now inverted; instead of the FormHandler deciding which implementation to use, the calling code does. This is the whole point of Inversion of Control, of which Dependency Injection is just one approach. The calling code (the code that uses the FormHandler and now controls the dependencies) looks like this:

class Program
    static void Main(string[] args)
        IMailSender mailSender = new MockMailSender();
        FormHandler formHandler = new FormHandler(mailSender);


 Concluding thoughts:

 Dependency Injection is a difficult concept to grasp if you’ve never used it before. Just give it a try, and you’ll see how flexible it makes your code. Especially when you’re writing unit tests you’ll quickly see the benefits. In that case, you can easily swap in mock implementations of dependencies. If anything, it makes your code a lot cleaner and sort of forces you to write better code.

UZVAL – Statistics – Total Hits-22,222, Total Visitors-6623, Total Posts – 93

Six years back I started posting certain postings in this blog for learning purpose.

Today it got 22,222 hits, Total Visitors-6623, Total Posts – 93.

During this tenure I had Learned a lot & Implemented my level best, Professionally & Personally.

Today i am feeling that i had completed one life cycle.

Heartful Thanks to My Well-Wishers who had given me good opportunities.

Now we all know lot of significant CHANGES (new versions, new libraries, new frameworks) evolved in .Net Stack.

Hope TOGETHER (Integrations & Collaborations) we learn and implement NEW needful CHANGES Professionally & Personally for a better life-style & society.


Ujjwala Datta Kalluri.


If any Suggestion, please submit it below :

2015 in Review – Wish You Happy New Year

Wish You Happy Happy Happy New Year,

Time is free, but it’s priceless.
You can’t own it, but you can use it.
You can’t keep it, but you can spend it.
Once you’ve lost it, you can never get it back…

Years, Months, Weeks, Days, Hours , Minutes, Seconds… Its Transforming…

Hope we utilise our Time for well-being in a constructive way & we all have Good Health, Relationships, Prosperity, Contentment & Happiness.

Annual Report – 2015 for this blog

Here’s an excerpt:

In 2015 this blog was viewed about 5,300 times,

there were only 2 new posts,

The busiest day of the year was Apr 29th with 83 views.

Visitors are from 69 countries in all!

Most visitors came from India. The United States & The Srilanka.

Power of Concentration :)

Unwavering Focus | Dandapani | TEDxReno

Sharpening the needle of concentration requires practice, like everything else in life.

Do you go to the gym? If you do, how many times a week and for how long?

Have you studied a foreign language? If you did, for how long did you practice, until you had a basic knowledge of the language?

It is the same with developing your concentration. You need training and practice.

Your mind does not like discipline, and will resist your efforts to discipline it. It loves its freedom more than anything else, and won’t let you master it. It will make you forget to do the exercises, tempt you to postpone performing them, or make you feel too lazy. It will find many tricks to occupy your attention with something else.

If you find it too difficult, or thoughts distract you and make you think about other matters, don’t despair. Everyone encounters difficulties along the way. If you persevere and never give up, in spite of difficulties and disturbances, success will crown your efforts.

How to Improve THIS :

  • Take Rest

The biggest factor affecting concentration is rest and this has been approved by research. Concentration requires your mind to be calm. But your mind will be scattered if you are not well rested. Make sure that you get the right amount of sleep at the right time. Also have regular sleep time, and this can be the key step for concentrating.

Sleeping too much is also not ideal. Oversleeping disrupts your natural rhythm and can make you lazy. Avoid this by having an alarm clock to wake you up in time.

  • Make a Plan

Always have a plan for whatever you are up to. When you sit down to work without a plan, you may easily get caught in activities like checking mails, Instant messaging (chatting) and browsing the web. Without a purpose, you are wasting your time. You’ll find yourself distracted by a variety of nagging thoughts instead of devoting all your attention to one important task.

To avoid this, make a clear plan that meets your needs beforehand. Take 5 or 10 minutes break in between, and use this time to check email, and then close your inbox and move on to your most important task. When making a plan be sure to allocate enough time for entertainment, studies and sleep.

  • Meditate

The practice of meditation will definitely improve our powers of concentration. Actually, when we try to meditate, it is concentration that is the first thing we need to master. A daily period of meditation gives us the chance to work specifically on concentration techniques.

  • Choose a place of your choice for concentration

Obviously some places are better than others. Libraries, study lounges and private rooms are the best. Above all, the place that you choose should not be distracting. Try to stay away from other people if you want to concentrate on your work.

  • Develop a controlled and balanced diet

Overeating creates a huge load of digestion and can make you feel uncomfortable and sleepy. Eating light and healthy meals can help you maximize your ability to concentrate.

  • Exercise frequently

The ability to concentrate depends a lot upon our physical well-being. If we are tired, unhealthy and afflicted by numerous minor ailments, concentration will be more difficult. However, we have to try to make life easy for ourselves; we need to give a high priority to our physical health:

  • Getting sufficient sleep
  • Staying physically fit
  • Maintaining healthy weight
  • Getting regular exercise
  • Take breaks and mix up your environment

Continuous work in the same place can drive anyone crazy. Taking constant breaks can solve the problem. This will make you active and more interested in your topic.

  • Know that practice makes perfect

Do you jog, exercise at the gym, or study a foreign language? How difficult it was when you first started? How many times you wanted to quit? Despite the difficulties, after a while, you started to like what you were doing. It became a habit, and did not require special effort. So it is with developing the power of concentration.

After some practice, it will be easier to concentrate, and your mind will learn to be calm and relaxed. People, circumstances, and events that used to agitate and anger you, will not disturb you. You will experience happiness and contentment, and gain self-confidence and inner strength. You will be able to cope more easily and efficiently with the outer world.