Dec 7
getresponse
Unknown asked:


I have a c# application which gets the bbc’s weather forcast for any location.

3573¬Brixton, United Kingdom
3574¬Raynes Park, United Kingdom
3575¬Chelsea, United Kingdom
3576¬Clapham, United Kingdom
3577¬Earl’s Court, United Kingdom

The application uses the following method to obtain the html source and parse it, loading the weather forcast into arrays:

WebRequest HTTP = (HttpWebRequest)WebRequest.Create(@”http://www.bbc.co.uk/weather/5day.shtml?id=” + ID);
string html = (new StreamReader(HTTP.GetResponse().GetResponseStream())).ReadToEnd();
string[] delimiters = { “return false;\” onmouseout=\”hideSym(); return false;\”>\"",

” };
string[] htmlsplit = html.Split(delimiters, StringSplitOptions.None);
string[] days = { htmlsplit[3], htmlsplit[11], htmlsplit[19], htmlsplit[27], htmlsplit[35], };
string[] images = { htmlsplit[2], htmlsplit[10], htmlsplit[18], htmlsplit[26], htmlsplit[34], };
string[] forcasts = { htmlsplit[4], htmlsplit[12], htmlsplit[20], htmlsplit[28], htmlsplit[36], };

First of all, is this illegal and second, if it is not illegal, can I create a similar vista sidebar gadget to show the forcast?
I only plan to run this on my computer and I only really need to update at logon. How can I make a vista sidebar gadget to do the same task?
I only plan to run this on my computer and I only really need to update at logon. How can I make a vista sidebar gadget to do the same task?

Nov 30
How do you adjust the input size in html code?
icon1 admin | icon2 Programming & Design | icon4 11 30th, 2008| icon34 Comments »
autoresponder for you
Dane Roth asked:


I have set up an autoresponder at one of my sites, but i want to enlarge the input size of one of the boxes to accept large submission articles. Any suggestions?

Nov 24
GetResponse method hangs (C#)?
icon1 admin | icon2 Programming & Design | icon4 11 24th, 2008| icon31 Comment »
getresponse
tianshi417 asked:


I am making a program that sends a file to a socket, and gets a response.

I have been able so far to write in the socket, but when I get to the GetResponse() line, the program hangs indefinitively.

Here’s the code:

public void ConexionSocket()
{
try
{
FileStream fileStream = System.IO.File.OpenRead(@”C:\DIS.xml”);
byte[] byData2 = new byte[fileStream.Length];
fileStream.Read(byData2, 0, byData2.Length);

HttpWebRequest myHttpWebRequest = (HttpWebRequest)WebRequest.Create(“http://1.1.1.1:28903″);

myHttpWebRequest.Method = “POST”;
myHttpWebRequest.SendChunked = true;
myHttpWebRequest.ContentLength = byData2.Length;
myHttpWebRequest.ContentType = @”application/x-www-form-urlencoded”;
myHttpWebRequest.AllowWriteStreamBuffering = true;
myHttpWebRequest.Accept = “text/plain”;
myHttpWebRequest.ProtocolVersion = HttpVersion.Version10;
myHttpWebRequest.KeepAlive = false;

System.IO.Stream os = myHttpWebRequest.GetRequestStream();
os.Write(byData2, 0, byData2.Length);
os.Flush();

//The program hangs when entering this line
HttpWebResponse myHttpWebResponse = (HttpWebResponse)myHttpWebRequest.GetResponse();
Stream streamResponse = myHttpWebResponse.GetResponseStream();
StreamReader streamRead = new StreamReader(streamResponse);
Char[] readBuff = new Char[256];
int count = streamRead.Read(readBuff, 0, 256);
String strResultado = string.Empty;

}
catch (InvalidOperationException ioe)
{
throw ioe;
}
catch (Exception ex)
{
throw ex;
}
}

If I close the os instance after the Flush, then I get a “Unable to read data from the transport connection: An established connection was aborted by the software in your host machine.” exception.

Any suggestions to this?

This is driving me crazy, really, as it hasn’t been an answer over the Internet so far that has worked for me.

Thanks.

Nov 22
pls help me to understand this term in a simple approach. thnx guys, godbless?
icon1 admin | icon2 Programming & Design | icon4 11 22nd, 2008| icon34 Comments »
your autoresponder
arvin o asked:


any one can expline each term to me.. thanx,

Disk Storage 600 GB
Host UNLIMITED DOMAINS
Free Domain Name
Free Drag and Drop Site Builder
Support International Domain Names
POP3/POP3 Secure Email Support Unlimited
IMAP/Secure IMAP Email Support Unlimited
Gigs of Site Transfer 6,000 GB/mo
Forwarding Email Accounts Unlimited
Email Autoresponder Unlimited
Add-on Domains Unlimited
Parked Domains Unlimited
Subdomains Unlimited
Additional FTP Accounts Unlimited
MySQL Databases 100
PostgreSQL Databases 100
IMAP/secure IMAP Email Support
2 Different Web Based Email Solutions
CGI-BIN
CGI Library
Server Side Includes
Frontpage 2000/2002 Extensions
Account “Control Panel”
FTP Access
Shell Access (SSH)
Override .htaccess Support
Anonymous FTP
Webmail (Browser Based Email)
Log Files + Site Stats
Customizable Error Pages
Web File Manager

Nov 19
How can I create an optin page where I can collect my visitors’ names,emails and full addresses using a blog?
icon1 admin | icon2 Programming & Design | icon4 11 19th, 2008| icon31 Comment »
autoresponder for you
Uchenna C asked:


I will be grateful for an urgent reply.I want to create it for free using the aweber test drive autoresponder

Next Entries »