Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Discussions

sysrpl sysrpl
  • Government to Intervene in AT&T Surveillance Lawsuit

    Remember the recently reported news that AT&T has been forwarding internet traffic directly into the hands of the NSA? Well it looks like the story has taken an unprecidented scary turn Friday, as the United States government filed a Statement of Interest in the Electronic Frontier Foundation's (EFF's) class-action lawsuit against AT&T. In the 8-page statement, the U.S. Justice Department said it will intervene in the lawsuit. The government has asserted military and state secrets privileges and is intervening to seek dismissal of the case.

  • The Incredibles Pinball

    Have you people seen the pinball construction programs Visual Pinball or Future Pinball? They let you design and play surprisingly realstic pinball tables on your computer. Behind the scene you use Visual Basic to script the events on the table.

    If you have some spare time, and like doing creative things, possibly in a team environment, check out my blog where I am forming a team to create a new original pnball table in the theme of the Incredibles. Even if you can't help out, visit the site anyways and let me know what you think


    An actual Future Pinball screenshot

  • Help! Http​WebResponse errors

    Hi, I am having a problem with HttpWebRequest exceptions being
     thrown when it receives what it sees as invalid response
     headers. The exception is throw when calling
     request.GetResponse().

    I need to relax the way HttpWebRequest handles headers, in
     order to get the response text and parse it. The code I 'm using
     is something like below. The difference is the real code uses a
     valid url and ten kilobytes of data loaded from a textfile.

    string url = "http://www.somedomain.com/some/action";
    string data = "data=10k+of+encoded+data+loaded+here";
    HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);
    request.Method = "POST";
    request.ContentType = "application/x-www-form-urlencoded";
    request.ContentLength = data.Length;
    using (StreamWriter writer = new StreamWriter(
    request.GetRequestStream())) {
      writer.Write(data);
    }
    // The line below causes this error
    // Error: System.Net.WebException: The server committed a protocol violation
    //   at System.Net.HttpWebRequest.CheckFinalStatus(Boolean mustThrow)
    //   at System.Net.HttpWebRequest.GetResponse()
    //   at Testing.Post()
    HttpWebResponse response = (HttpWebResponse)request.GetResponse();
    using (StreamReader reader = new StreamReader(response.GetResponseStream())) {
      data = reader.ReadToEnd();
    }
    request.Close();
    return data;

    You can see the problem is that HttpWebRequest doesn't like the
     returned header. This what the returned header looks like. I got
     these headers from Firefox/IE, so I figure I should also be able to
     get them from an HttpWebRequest.

    HTTP/1.1 200 OK
    Date: Mon, 24 Apr 2006 05:05:25 GMT
    Server: LiveRack
    Set-Cookie: name_cookie=someuser; expires=Tue, 24 Apr 2007 05:05:25 GMT; path=/some/action; domain=.somedomain.com
    Set-Cookie: <a few of really big cookies here>
    Set-Cookie: <appoximately 10 kilobytes worth>
    Connection: close
    Transfer-Encoding: chunked
    Content-Type: text/html

    <html><head><title>Please wait ...</title><script langage="Javascript">
    <!-- some code here// -->
    </script>
    <body>
    <p align="center">Comment added.</p>
    </body>


    How can I get HttpWebRequest to relax and not throw
     exceptions? I really need to receive the response text for my
     application. Also, when try catching the WebException and
     check the Response property, it's null.

    Can someone please help me here?

  • What notation do you guys use for control naming?

    I believe it's more important to put function before type, so in a form for collecting information I might have:

    CustomerGroupBox
      CustomerName
      CustomerPhone
      CustomerEmail
      CustomerNotes
    OrderGrid
        OrderNumber
        OrderDate
        OrderStatus
    CancelButton
    SaveButton

    I care less about naming controls after the control type, and more about what they are used for. Of couse you can use camel case, or underscores, or whatever ... you get the idea.

  • Help me find a tutorial on accepting blog posts

    Hi, I am interested in accepting remote blog posts on my site from other sites, such as digg.com, via an xml rpc post. My site http://codebot.org is built on asp/asp.net and I'm looking for an asp.net solution.

  • "Why do I need Vista?" - Scoble and Clement explain!

    Karim wrote:
    sysrpl wrote:The big problem I see with Vista is it's system requirements and resource usage.

    On my laptop, if I have use 3D in any windows it gets hot pretty darn quick really sucks the batteries hard. To that I say, no thank you.

    On my desktop computer, if I leave a 3D accelerated window open, the ambient noise level goes up and the room temperate begins to rise. Always leaving my computer on in my small one bedroom apartment I could in all seriousness see my power bill jump from $90 a month to $175 a month.


    Well gee, if the room temperature begins to rise, I guess you can just turn down the thermostat in your house and offset the impact on the environment.  <rolleyes>

    ....

    And then you RUIN this really important point by exaggerating how bad Vista will be all out of believable proportion.

    sysrpl wrote:
    Just image how Windows Vista will affect the United States already horrendous record on power consumption.


    I think it's a good thing to measure how Windows Vista will affect power consumption.  I don't think it's a good thing to "imagine" it, if the "imagination" is like yours and you imagine your video card draws more current than a 1,000-watt microwave oven.


    First, you will note from my profile that I live in Florida, in which case you might be able to figure out that the '<rolleyes>' tag is completely unnecessary. In other words yes, factor that into increased power consumption.

    Second, my power company OUC uses a sliding scale when calculating rates per KWH. If you go over X amount of hours per month, the rate goes up.

    Third, would you like me to post a copy of my power bill?

  • "Why do I need Vista?" - Scoble and Clement explain!

    The big problem I see with Vista is it's system requirements and resource usage.

    On my laptop, if I have use 3D in any windows it gets hot pretty darn quick really sucks the batteries hard. To that I say, no thank you.

    On my desktop computer, if I leave a 3D accelerated window open, the ambient noise level goes up and the room temperate begins to rise. Always leaving my computer on in my small one bedroom apartment I could in all seriousness see my power bill jump from $90 a month to $175 a month.

    Just image how Windows Vista will affect the United States already horrendous record on power consumption. We are less than 5% of the world's population, but we use 40% of it's power.

    "God gave us the earth. We have dominion over the plants, the animals, the trees. God said, 'Earth is yours. Take it. Rape it. It's yours.'" -- Ann Coulter


  • World Wide Web War I

    Web humor site ebaumsworld claims to have been the victim of recent cyber-terrorism DDoS attacks. This attack had been covered by the inquirer.

    As it turns out, this is not a typical DDoS attack. Internet users are fed up wth ebaum's practices and on wikipedia this is being referred to as "YTMND-Day" (World Wide Web War I).

    From January 7, 2006 to January 8, 2006, YTMND joined 4chan, KNova, Newgrounds, LUElinks, LUE and other internet communities to invade the eBaum's World forums. This DDoS attack was provoked by Eric Bauman, the owner of eBaum's World, hosting an image created by a YTMND user on his site without crediting the original author. He had also altered the image, a GIF file compiled of Lindsay Lohan photographs, and placed the eBaum's World watermark on it.

    More information on ebaum's practices of stealing, rebranding, and profiting from other people's content to the tune of millions of dollars from is summarized by this animation.

  • Do people at MS use MSN Search or Google?

    Michael Griffiths wrote:
    Guess:

    Most Microsoft employees use Google.

    Most MSN employees use MSN Search.
    Isn't MSN Search Microsoft's flagship web search engine?

  • Do people at MS use MSN Search or Google?

    I was just wondering, how many Microsoft employees use MSN search to search the web compared to Google.

    If they use MSN Search, is it because it provides more accurate search results?

    If they use Google then are they helping their competitor?

    Discuss