A rarely updated blog about programming and lack of sleep

Programming

    How to use HttpWebRequest in C#

    Kragerø

    The HttpWebRequest in C# can be really useful. With it, you can get the latest weather in to your application, or your choice of news, or any info you want from the internet. Or post info to a server on the web. One useful idea is to make a game which use HttpWebRequest to post its score to your webserver. I can show you how to do the serverside later, this time i'm going to show you how to use HttpWebRequest.

    The HTTP protocol

    To understand how to use HttpWebRequest, you will have to understand how a client (your webbrowser) ask a server (the webpage) for information. You will have to understand the HTTP protocol.

    Make it snow with jQuery

    It is winter time, and you might want to make it snow on your website. Let's try to make it in jQuery!

    Creating the snow

    Create two pictures with snow in some picture editor. It has to be saved in a picture format supporting transparency. 24 bit PNG is a good choice. Make the snow, and make the background transparent. Size doesn't matter, but the picture must be tile-able.

    Subscribe to RSS - Programming