Sunday, June 27, 2021

HELPING OTHERS AND FINDING YOUR LIFE PURPOSE


HELPING OTHERS AND FINDING YOUR LIFE PURPOSE

 


It is not wise to focus all the energy on one’s pleasure and happiness as true happiness comes from helping others. Some people look for ways to make others happy and lessen their discomfort; they truly lead a fulfilling way of life. But improving other’s lifestyle, no matter how comforting it might be, does not always result in a healthy career choice. Thus, those who crave for happiness in a work environment must pick a sector that essentially deals with assisting others. Physical therapy is a great way to help others to get much-needed relief, and it is a well-planned carrier path as well. Continue reading this article to find out more about why you should opt for a course in physical therapy sector.

1.         A fulfilling feeling: Many leave their corporate sector jobs in search of a quieter and most honest living. To have a fulfilling work experience:

•                     Ask questions to your authority about the purpose of your work. When you know about the clear intention of your job, you will be more productive. Make sure your work aligns with your personal beliefs and values.

•                     Maintain a list of work that you need to do in a day to avoid boredom. Many a time, employees have practically no work or very tedious work. That is why it is crucial to focus on short projects to get the joy of fulfillment.

2. Carrier goals: Set a definite carrier goal and stick to it. It is easier to get distracted while helping others, but in the long run, you must pick a work path that is not only fulfilling for others but also satisfies you materially. You may opt for a PTA associates degree that will allow you both the freedom to have a fulfilling career path and a chance to work closely with the people who are the direct recipient of your effort.

•                     As a PTA associate, you will be able to help people to get back their mobility, which is a great way to devote your time and gain a wholesome experience.

•                     Being a licensed therapist will allow you the freedom to work as much as you want and set your time limit. Thus, you have the opportunity to be your own boss.

•                     To be successful in any sector of the workforce, you should have proper accreditation and enough knowledge about the subject at hand, so that you are confident and ready when you get a work call.

3. Value time: Your inspiration will run dry if you do not earn enough money to live a wholesome life. You cannot live in poverty and strive to help others. Fill your cup first before trying to help others; always pick a carrier path that pays well. Be kind to yourself first so that everyone will see love reflected on you.

There is enough time in everyone’s life to change a carrier path, but the sooner you make the decision, the longer you may experience joy in life. Spend a considerable amount of time to introspect and find the carrier path suited for you.

home improvement home improvement loan home improvement products home improvement meaning home improvement ideas home improvement stores home improvement accessories home improvement articles home improvement agency home improvement blogs home improvement business home improvement companies home improvement cast home improvement contractors home improvement category home improvement companies in usa home improvement centres home improvement diy home improvement definition home improvement deductions home improvement depot home improvement ecommerce home improvement estimate template home improvement equipment home improvement episodes home improvement expo home improvement estimator home improvement fence guy home improvement financing home improvement franchises home improvement fence home improvement gifts home improvement grants home improvement house home improvement hashtags home improvement hacks home improvement industry home improvement items home improvement ideas for small houses home improvement industry trends 2021 home improvement jobs home improvement kids home improvement kitchen home improvement mortgage home improvement magazine home improvement niche home improvement neighbor home improvement near me home improvement neighbour home improvement online home improvement online store home improvement outlet home improvement products list home improvement projects home improvement plan home improvement products brands home improvement quotes home improvement quotation home improvement questions home improvement retailer home improvement retail industry home improvement research institute home improvement services home improvement show home improvement streaming home improvement tools home improvement tips home improvement things home improvement tools online home improvement topics home improvement usa home improvement us home improvement value calculator home improvement value home improvement websites home improvement words home remodeling home remodeling services home remodeling ideas home remodeling app home remodeling services near me home remodeling contractors home remodeling near me home remodeling tips home remodeling contractors near me home remodeling and repair home remodeling and additions near me home remodeling business home remodeling before and after home remodeling cost home remodeling company home remodeling center home remodeling designers near me home remodeling design home remodeling degree home remodeling financing home remodeling for disabled home remodeling fargo home remodeling franchises home remodeling grants home remodeling group home remodeling games home remodeling help home remodeling in usa home remodeling indianapolis home remodeling industry home remodeling ideas before and after home remodeling jobs home remodeling leads home remodeling magazines home remodeling prices home remodeling planner home remodeling quotes

Tuesday, June 5, 2012

Google API Class for online PR checking (asp .net)


using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.IO;
using System.Net;
using System.Text;
using System.Text.RegularExpressions;

/// <summary>
/// Summary description for Get_PR1
/// </summary>
public class Get_PR1
{
    /// <summary>
    /// Returns the PageRank of the given URL. Return values are 0 through 10 or
    /// -1 (N/A), which indicates there was an error or the URL is not in the
    /// Google index.
    /// </summary>
    /// <param name="url">URL to test</param>
    /// <returns></returns>
    public static int GetPageRank(string url)
    {
        int rank = -1;

        try
        {
            // Form complete URL
            url = String.Format("http://toolbarqueries.google.com/tbr" +
                "?client=navclient-auto&features=Rank&ch={0}&q=info:{1}",
                ComputeHash(url), UrlEncode(url));

            // Download page
            HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
            StreamReader stream = new StreamReader(request.GetResponse().GetResponseStream());
            string response = stream.ReadToEnd();

            // Parse page rank value
            string[] arr = response.Split(':');
            if (arr.Length == 3)
                rank = int.Parse(arr[2]);
        }
        catch (Exception)
        {
            // Do nothing but return -1;
        }
        return rank;
    }

    /// <summary>
    /// URL-encodes the given URL. Handy when HttpUtility is not available
    /// </summary>
    /// <param name="url">URL to encode</param>
    /// <returns></returns>
    private static string UrlEncode(string url)
    {
        StringBuilder builder = new StringBuilder();

        foreach (char c in url)
        {
            if ((c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9'))
                builder.Append(c);
            else if (c == ' ')
                builder.Append('+');
            else if ("()*-_.!".IndexOf(c) >= 0)
                builder.Append(c);
            else
                builder.AppendFormat("%{0:X2}", (byte)c);
        }
        return builder.ToString();
    }

    /// <summary>
    /// Computes a hash value required by Google
    /// </summary>
    private static string ComputeHash(string url)
    {
        UInt32 a, b;
        UInt32 c = 0xE6359A60;
        int k = 0;
        int len;

        // Modify URL
        url = string.Format("info:{0}", url);

        a = b = 0x9E3779B9;
        len = url.Length;

        while (len >= 12)
        {
            a += (UInt32)(url[k + 0] + (url[k + 1] << 8) + (url[k + 2] << 16) + (url[k + 3] << 24));
            b += (UInt32)(url[k + 4] + (url[k + 5] << 8) + (url[k + 6] << 16) + (url[k + 7] << 24));
            c += (UInt32)(url[k + 8] + (url[k + 9] << 8) + (url[k + 10] << 16) + (url[k + 11] << 24));
            Mix(ref a, ref b, ref c);
            k += 12;
            len -= 12;
        }

        c += (UInt32)url.Length;
        switch (len)
        {
            case 11:
                c += (UInt32)(url[k + 10] << 24);
                goto case 10;
            case 10:
                c += (UInt32)(url[k + 9] << 16);
                goto case 9;
            case 9:
                c += (UInt32)(url[k + 8] << 8);
                goto case 8;
            case 8:
                b += (UInt32)(url[k + 7] << 24);
                goto case 7;
            case 7:
                b += (UInt32)(url[k + 6] << 16);
                goto case 6;
            case 6:
                b += (UInt32)(url[k + 5] << 8);
                goto case 5;
            case 5:
                b += (UInt32)(url[k + 4]);
                goto case 4;
            case 4:
                a += (UInt32)(url[k + 3] << 24);
                goto case 3;
            case 3:
                a += (UInt32)(url[k + 2] << 16);
                goto case 2;
            case 2:
                a += (UInt32)(url[k + 1] << 8);
                goto case 1;
            case 1:
                a += (UInt32)(url[k + 0]);
                break;
            default:
                break;
        }
        Mix(ref a, ref b, ref c);
        return string.Format("6{0}", c);
    }

    /// <summary>
    /// ComputeHash() helper method
    /// </summary>
    private static void Mix(ref UInt32 a, ref UInt32 b, ref UInt32 c)
    {
        a -= b; a -= c; a ^= c >> 13;
        b -= c; b -= a; b ^= a << 8;
        c -= a; c -= b; c ^= b >> 13;
        a -= b; a -= c; a ^= c >> 12;
        b -= c; b -= a; b ^= a << 16;
        c -= a; c -= b; c ^= b >> 5;
        a -= b; a -= c; a ^= c >> 3;
        b -= c; b -= a; b ^= a << 10;
        c -= a; c -= b; c ^= b >> 15;
    }
}


=========

Server side Code..for the function call:

int PR=Get_PR1.GetPageRank(url);   // output will be the PR value of the URL
 lbl_pr.Text = Convert.ToString(PR);    // publish PR on level.........

How to Split the the Domain from a URL ...asp .net


How to Split the the Domain from a URL:

Server Side   aspx.cs  Code

string url = "http://www.google.com";
 Uri uri = new Uri(url);
 string domain1 = uri.Host;   // Output will be :   www.google.com

======
  string findsub = "www.";
                int k = domain1.IndexOf(findsub);    // Output will be :   www
                if (k >= 0)
                {
                    domain = domain1.Substring(k + findsub.Length);       // Output will be :  google.com
                }
                else
                {
                    domain = domain1;           // Output will be :  google.com
                }

Monday, April 2, 2012

Can Use the Code for using that Gmail Server on your .aspx.cs page

Suppose you have taken a Text Field name as   TextBox1 to accepting the Email ID. We need to search the email ID at our Customer table " tblcustomer " and will send the correspondence Password to the Email ID When Some one Click on the  " ForgetPwd " Button........

protected void ForgetPwdButton3_Click(object sender, EventArgs e)
{

string id = TextBox1.Text;
string sql = "select password from tblcustomer where customer_email='" + email+ "'";
con.Open();
SqlCommand cmd = new SqlCommand(sql, con);
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{

// GmailSender gs = new GmailSender();
string pwd = dr[0].ToString();
  if (SendMail("sender mail id", "sender pw", id, pwd))
{
Response.Write("<script language='javascript'>alert('Password has been sent to your email ID');</script>");
TextBox1.Text = "";
}
}
else
{
Response.Write("<script language='javascript'>alert('You have Entered wrong email ID');</script>");
}
}

NICE MAIL SERVER CODE for asp .net bt GMAIL SERVER...

This code you can use for Forget Password/ Mailing Form....Etc


public bool SendMail(string gMailAccount, string password, string to, string subject)
{
try
{
//Attachment mailAttachment = new Attachment(getfile);
NetworkCredential loginInfo = new NetworkCredential(gMailAccount, password);
MailMessage msg = new MailMessage();
msg.From = new MailAddress(gMailAccount);
msg.To.Add(new MailAddress(to));
msg.Subject = "Gifttoindia.co.in Password has been received";
msg.Body = "Your password is: " + subject;
msg.IsBodyHtml = true;
//msg.Attachments.Add(mailAttachment);
SmtpClient client = new SmtpClient("smtp.gmail.com");
client.EnableSsl = true;
client.UseDefaultCredentials = false;
client.Credentials = loginInfo;
client.Send(msg);

return true;
}
catch (Exception)
{
return false;
}

}