--
Sent from Gmail for mobile | mobile.google.com
Wednesday, April 30, 2008
Storm aftermath
After the storm last night, the power is back up again. Its amazing
how fast things moved.
how fast things moved.
--
Sent from Gmail for mobile | mobile.google.com
Tuesday, April 29, 2008
Newspapers
Is the print media dead? Has everyone moved to online tools and online news?
--
Sent from Gmail for mobile | mobile.google.com
Travel
Travelled from bang to mad on the weekend. Took 350 for the taxi. It
was not too good. Temperature there was hot. The humidity gets you
when you are in the open. Wonder how the local people deal with the
heat. I guess they stay indoor in the afternoon.
was not too good. Temperature there was hot. The humidity gets you
when you are in the open. Wonder how the local people deal with the
heat. I guess they stay indoor in the afternoon.
--
Sent from Gmail for mobile | mobile.google.com
Pizza and power
There was a huge storm in the city today. As a result the power is
out. The more immediate reason is a huge part of a tree which fell on
a power line and took half of the cables with it. So no power and
without power there is no water too. Hmm so things dont look so rosy.
Its a nice thing my wife is not here right now. I wonder when will
they restore the power. Have drinking water that will last three days.
Not enough water to bath in though. Plus there are the mosquitoes to
be dealt with. Fun i guess.
out. The more immediate reason is a huge part of a tree which fell on
a power line and took half of the cables with it. So no power and
without power there is no water too. Hmm so things dont look so rosy.
Its a nice thing my wife is not here right now. I wonder when will
they restore the power. Have drinking water that will last three days.
Not enough water to bath in though. Plus there are the mosquitoes to
be dealt with. Fun i guess.
--
Sent from Gmail for mobile | mobile.google.com
Monday, July 03, 2006
my stuff
my stuff
using System.Diagnostics;using System.Net;using System.IO;using System;
namespace IndirectTimeFrontEnd{ /// /// Summary description for RamakantMailControl. ///
namespace RamakantMail { /// /// Summary description for Class1. /// class RamakantMailContro { public void sendMail() { // TODO: Replace with the name of the computer that is running Exchange 2000. string strServer = "server.com"; // TODO: Replace with the sender's alias. string strSenderAlias = "username"; // TODO: Replace with the sender's e-mail address. string strFrom = "sendercompleteEmail"; // TODO: Replace with the recipient's e-mail address. string strTo = "Reciever Complete Email";
string strSubject = "Send Using HttpWebRequest"; string strBody = "Hello World";
string sUri; sUri = "https://" + strServer + "/exchange/" + strSenderAlias; //sUri = sUri + "/%23%23DavMailSubmissionURI%23%23/"; sUri = sUri + "/Drafts/a.eml/test_file.zip";
System.Uri myUri = new System.Uri(sUri); HttpWebRequest HttpWRequest = (HttpWebRequest)WebRequest.Create(myUri);
string sQuery; DateTime mySentTime = new DateTime(); sQuery = "From: " + strFrom + "\n" + "To: " + strTo + "\n" + "Subject: " + strSubject + "\n" + "Date: " + DateTime.Now.ToString() + "\n" + "X-Mailer: My DAV mailer" + "\n" + "MIME-Version: 1.0" + "\n" + "Content-Type: application/zip;"+"\n" + "name=\"test_file.zip\"" + "\n" + //"Content-Type: text/plain;" + "\n" + "Charset = \"iso-8859-1\"" + "\n" + "Content-Transfer-Encoding: 7bit" + "\n" + "\n" + strBody + "."; Debug.WriteLine(myUri);
// Set the credentials. // TODO: Replace with the appropriate user credential. NetworkCredential myCred = new NetworkCredential(@"ramakant", "s56^"); CredentialCache myCredentialCache = new CredentialCache(); myCredentialCache.Add(myUri, "BASIC", myCred); HttpWRequest.Credentials = myCredentialCache;
// Set the headers. //HttpWRequest.Headers.Set("Translate", "f"); // HttpWRequest.ContentType = "message/rfc822"; HttpWRequest.ContentType = "application/zip"; HttpWRequest.ContentLength = sQuery.Length;
//Set the request timeout to 5 minutes. HttpWRequest.Timeout = 300000; // Set the request method. HttpWRequest.Method = "PUT"; HttpWebResponse HttpWResponse1 = (HttpWebResponse)HttpWRequest.GetResponse();
// Store the data in a byte array. byte[] ByteQuery = System.Text.Encoding.ASCII.GetBytes(sQuery); HttpWRequest.ContentLength = ByteQuery.Length; Stream QueryStream = HttpWRequest.GetRequestStream(); // write the data to be posted to the Request Stream QueryStream.Write(ByteQuery,0,ByteQuery.Length); QueryStream.Close();
// Send the request and get the response. HttpWebResponse HttpWResponse = (HttpWebResponse)HttpWRequest.GetResponse();
// Get the Status code. int iStatCode = (int)HttpWResponse.StatusCode; string sStatus = iStatCode.ToString(); Debug.WriteLine("Status Code: {0}", sStatus); // Get the request headers. string sReqHeaders = HttpWRequest.Headers.ToString(); Debug.WriteLine(sReqHeaders);
// Read the response stream. Stream strm = HttpWResponse.GetResponseStream(); StreamReader sr = new StreamReader(strm); string sText = sr.ReadToEnd(); Debug.WriteLine("Response: {0}", sText); //Debug.ReadLine();
// Close the stream. strm.Close();
// Clean up. myCred = null; myCredentialCache = null; HttpWRequest = null; HttpWResponse = null; QueryStream = null; strm = null; sr = null; } } } }
using System.Diagnostics;using System.Net;using System.IO;using System;
namespace IndirectTimeFrontEnd{ ///
namespace RamakantMail { ///
string strSubject = "Send Using HttpWebRequest"; string strBody = "Hello World";
string sUri; sUri = "https://" + strServer + "/exchange/" + strSenderAlias; //sUri = sUri + "/%23%23DavMailSubmissionURI%23%23/"; sUri = sUri + "/Drafts/a.eml/test_file.zip";
System.Uri myUri = new System.Uri(sUri); HttpWebRequest HttpWRequest = (HttpWebRequest)WebRequest.Create(myUri);
string sQuery; DateTime mySentTime = new DateTime(); sQuery = "From: " + strFrom + "\n" + "To: " + strTo + "\n" + "Subject: " + strSubject + "\n" + "Date: " + DateTime.Now.ToString() + "\n" + "X-Mailer: My DAV mailer" + "\n" + "MIME-Version: 1.0" + "\n" + "Content-Type: application/zip;"+"\n" + "name=\"test_file.zip\"" + "\n" + //"Content-Type: text/plain;" + "\n" + "Charset = \"iso-8859-1\"" + "\n" + "Content-Transfer-Encoding: 7bit" + "\n" + "\n" + strBody + "."; Debug.WriteLine(myUri);
// Set the credentials. // TODO: Replace with the appropriate user credential. NetworkCredential myCred = new NetworkCredential(@"ramakant", "s56^"); CredentialCache myCredentialCache = new CredentialCache(); myCredentialCache.Add(myUri, "BASIC", myCred); HttpWRequest.Credentials = myCredentialCache;
// Set the headers. //HttpWRequest.Headers.Set("Translate", "f"); // HttpWRequest.ContentType = "message/rfc822"; HttpWRequest.ContentType = "application/zip"; HttpWRequest.ContentLength = sQuery.Length;
//Set the request timeout to 5 minutes. HttpWRequest.Timeout = 300000; // Set the request method. HttpWRequest.Method = "PUT"; HttpWebResponse HttpWResponse1 = (HttpWebResponse)HttpWRequest.GetResponse();
// Store the data in a byte array. byte[] ByteQuery = System.Text.Encoding.ASCII.GetBytes(sQuery); HttpWRequest.ContentLength = ByteQuery.Length; Stream QueryStream = HttpWRequest.GetRequestStream(); // write the data to be posted to the Request Stream QueryStream.Write(ByteQuery,0,ByteQuery.Length); QueryStream.Close();
// Send the request and get the response. HttpWebResponse HttpWResponse = (HttpWebResponse)HttpWRequest.GetResponse();
// Get the Status code. int iStatCode = (int)HttpWResponse.StatusCode; string sStatus = iStatCode.ToString(); Debug.WriteLine("Status Code: {0}", sStatus); // Get the request headers. string sReqHeaders = HttpWRequest.Headers.ToString(); Debug.WriteLine(sReqHeaders);
// Read the response stream. Stream strm = HttpWResponse.GetResponseStream(); StreamReader sr = new StreamReader(strm); string sText = sr.ReadToEnd(); Debug.WriteLine("Response: {0}", sText); //Debug.ReadLine();
// Close the stream. strm.Close();
// Clean up. myCred = null; myCredentialCache = null; HttpWRequest = null; HttpWResponse = null; QueryStream = null; strm = null; sr = null; } } } }
Wednesday, March 15, 2006
New Camera
got a new video cam, will post the webdav version of Email here soon.
Am also working on a CRM tool that can be customized and adapted to various users.
Am also working on a CRM tool that can be customized and adapted to various users.
Monday, May 16, 2005
dataview as a datasource
DataView dv = new DataView();
//Dataview and the stuff
dv.Table=ds.Tables[0];
dv.RowFilter="age=20";
DataGrid1.DataSource=dv;
//Dataview and the stuff
dv.Table=ds.Tables[0];
dv.RowFilter="age=20";
DataGrid1.DataSource=dv;
Wednesday, May 11, 2005
creating a pop up calendar control in ASP.net
the following links seems to be a viable option for a postback less date popup http://www.developer.com/net/asp/article.php/3327181
Sunday, March 27, 2005
new liks
here is a few things that i like on the net
its a link that contains an extended datagrid that allows custom controls in a grid.
http://dotnet.leadit.be/extendeddatagrid/
some c# faqs that i like
http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q1075q
its a link that contains an extended datagrid that allows custom controls in a grid.
http://dotnet.leadit.be/extendeddatagrid/
some c# faqs that i like
http://www.syncfusion.com/FAQ/WinForms/FAQ_c44c.asp#q1075q
Subscribe to:
Posts (Atom)