Sending a file and some form data via HTTP post in C#

A few weeks back, I wrote some logic to send a file and a from a windows client over to a Java server endpoint. There are a few ways to do that: via application protocols like FTP and HTTP or even implementing a custom protocol using TCP/IP. Since the Java server was already serving HTTP requests and that HTTP requests can usually get through firewalls quite easily, I chose the HTTP protocol.


How to retrieve the username of the user who logged onto Windows from windows service

Recently, I have been tasked to write a .NET application that will prepare the operating system environment for a user who had logged on a Windows 7 machine. As a first step, the application should grab some settings from the network by providing the username of the user to a server application. The application will then prepare the operating system environment based on the settings received.

Lessons from a promoter at IT Show 2011

There are always so many things to look at in a once a quarter consumer electronics show such as the IT Show 2011. Today’s trip was yet another different kind of experience for me. Apart from the latest gadgets, I looked at how promoters attempted to sell their product.

Most promoters performed live demonstration for the use of their products to the audience. There were some who walked through the features of their products themselves and there were those who engaged the audience to try out their products. Although, quite a number managed to attract a group of bystanders to look at their product, not many achieve a high volume of sales.

Only one of them managed to led me and my brother to buy his product. As much as I was amazed by his product, I was even more amazed at his approach in selling his product.

What does fortune means for me

The word “fortune” was prominent in my recent conversations. The people I met in this new stage of life do not ponder over the many assignment deadlines and exams. Instead, these people stress the limited hours of life and speak ideas of how to maximize living. Naturally, the biggest motivation in life will be to attain as much fortune as we can.