internet

You are currently browsing the archive for the internet category.

I’m sure you had the need sometime to download the content of a web page to be able to analyze it or work with the content. Here is a code snippet just for you, we will use simple http GET for the specified URL.

public static string getWebPage(string psUrl)
{
    WebResponse result = null;
    string sRet = string.Empty;

    try
    {
        WebRequest req = WebRequest.Create(psUrl);
        req.Method = “GET”;
        req.Timeout = 3 * 1000// 3 secs
        // Explicit no caching, usually this is the default
        req.CachePolicy = new RequestCachePolicy(RequestCacheLevel.BypassCache);

        // Has to process the results if the responding service is spitting it out
        result = req.GetResponse();
        Stream ReceiveStream = result.GetResponseStream();
        Encoding encode = System.Text.Encoding.GetEncoding(“utf-8″);
        StreamReader sr = new StreamReader(ReceiveStream, encode);
        // in case the caller is interested
        sRet = sr.ReadToEnd();
    }
    finally
    {
        if (result != null) result.Close();
    }

    return sRet;
}

It has come to the point where I just can’t take it anymore at GoDaddy.  Their in your face buy this and that and I’m not going to let you register a domain without trying to sell you on 50 other things along the way is just too much.  Whenever you do any business with them you need to take special care clicking your way out of their auto opt-in along the way.  If your not careful you will end up with a basket full of stuff you never wanted.

So let’s take a look at how easy it is to move on, say NameCheap for example, I have been using them for a while.  They actually just do what you would think, they take care of your domains without trying to sell you the world.  You can probably get some extra services from them if you look, I’m not sure.

First goto your new registrar and ask for the transfer of your domain.

Goto the GoDaddy my domains, click on the details for a domain, click on locking and unlock it.

While on the details page, click on [Send by Email] next to the Authorization Code text.  In return you will get an email with the EPP key you will need to authorize the transfer at the new register.

Put in the EPP key at the new registar.

I think thats about it, once those steps are followed your domain should move from GoDaddy to it’s new home.

Went to the Boulder tech meetup on Tuesday good stuff as usual.  Sex, God, Rockn’ Roll was pretty funny and iVolunteer is a cool idea that I just can’t see failing.  Below are the presenters that were on hand

C# http authenticate

Sometimes URL requests are authenticated by the server your running against. For example if you want to update your Twitter status. Let’s take a look how we can do that easy.

using System.Net;
try
{
    string sURL = “http://twitter.com/statuses/update.xml?status=” + sText;
    // Create the web request
    HttpWebRequest request = WebRequest.Create(sURL) as HttpWebRequest;

    // Add authentication to request
    request.Credentials = new NetworkCredential(“myaccount”, “mypassword”);
    request.PreAuthenticate = true;
    request.Method = “POST”;

    // Get response
    using (HttpWebResponse response = request.GetResponse() as HttpWebResponse)
    {
        // Get the response stream
        using (StreamReader reader = new StreamReader(response.GetResponseStream()))
        {
            // Console application output
            StringBuilder body = new StringBuilder(reader.ReadToEnd());
        }
    }
}
catch (Exception ex)
{
    Console.WriteLine(ex);
}

Went to the Boulder meetup yesterday, it was exciting as usual. With some nifty companies such as Me.dium now gone oneRiot search engine of current trends on the internet. The most interesting talk of the night was the new Yahoo BrowserPlus by Lloyd Hilaiel.

What is it ? “BrowserPlus™ is a technology for web browsers that allows developers to create rich web applications with desktop capabilities”
More development info here One impressive demo that Lloyd showed is motion censor driven. His laptop censors affected the code running in the browser. Pretty nice integration there. Check out the demos.

In hindsight, I should have snagged a T-shirt from him…

Cutting edge website

Three friends and I started a company in Iceland back in ‘94.  We were pretty much fresh out of the University.  We did odd projects here and there as young companies go.

Then we came up with this brilliant idea, to make a website for the world championship in team handball.  That was to be held in Reykjavik in 1995.  There wasn’t much of dynamic web sites at the time, they sure existed not the norm though.  After striking a deal with the handball association the work begun.  The website even had an Oracle database on the back end for dynamic content.  Mostly to look up teams, players and game stats as the tournament took place.  Not only that it was also available both in Icelandic and English.

Like I said cutting edge in 1995, we even got published in the newspaper and Tv stations.  We had just started development when I had to move to New York to secure my green card.

« Older entries