Dipankar’s tweets on 2009-07-16

July 16th, 2009 § 0 comments § permalink

  • RT @fartingpen suddenly i am thinking i don't quite understand the term "business networking". making friends just to ask favours? #
  • @nikhilchinapa man, i have grown up watching MTV Select :P . Feels good to follow ze god on twitter. awesomeness !!! in reply to nikhilchinapa #
  • @ghoseb that is completely untrue :) , he was a rockstar just like his father. Was reading sukumar ray just awesome stuff. in reply to ghoseb #

Dipankar’s tweets on 2009-07-15

July 15th, 2009 § 0 comments § permalink

Dipankar’s tweets on 2009-07-14

July 14th, 2009 § 0 comments § permalink

  • pimping my blog up :D #

from .net

March 3rd, 2009 § 0 comments § permalink

from .net

Post on twitter/kwippy using .NET

March 3rd, 2009 § 4 comments § permalink

using System;

using System.Collections.Generic;

using System.Linq;

using System.Text;

using System.IO;

using System.Net;

using System.Web;

namespace ConsoleApplication1

{

class Program

{

static void Main(string[] args)

{

System.Net.ServicePointManager.Expect100Continue = false;

Uri address = new Uri(http://twitter.com/statuses/update.json);

// Create the web request

HttpWebRequest request = WebRequest.Create(address) as HttpWebRequest;

request.Method = “POST”;

request.ContentType = “application/x-www-form-urlencoded”;

request.Credentials = new NetworkCredential(“username”, “password”);

StringBuilder data = new StringBuilder();

data.Append(“status=from%20.net”);

// Create a byte array of the data we want to send

byte[] byteData = UTF8Encoding.UTF8.GetBytes(data.ToString());

// Set the content length in the request headers

request.ContentLength = byteData.Length;

using (Stream postStream = request.GetRequestStream())

{

postStream.Write(byteData, 0, byteData.Length);

}

using (HttpWebResponse response = request.GetResponse() as HttpWebResponse)

{

// Get the response stream

StreamReader reader = new StreamReader(response.GetResponseStream());

// Console application output

Console.WriteLine(reader.ReadToEnd());

}

}

}

}

Code to post on twitter and kwippy using this simple C# program :) . Njoi.