Why my computer restarted automatically by itself while playing league of legends

Just when my brother is really to assist me in killing the enemy champion, my brother shouted: “the computer restarted itself again”. We were playing a game of the league of legends when that situation occurred. Until recently, the computer restart problem came back to haunt us just 10 months after we got a new graphics card. The temptation to replace the 3 year old DIY gaming machine with a newer one escalates with each automatic restart of the computer. However, my gut feeling told me that the problem could be solved.

Generate PHP codes with PHP

Throughout my programming years, I observed similar trends in code structures and I felt that being able to generate them automatically will greatly reduce development time.

Although there are many code generation software on the web, coding one for your own usage can be simpler and more convenient, especially when you had written custom functions that your generated codes will utilize.

In this post, I shall discuss my recent experience in creating a PHP code generator for my own usage.

How to build a web based user interaction layer in C#

With the ubiquity of web browsers, it can be ideal for the user interaction layer of applications to be web based. The most common approaches to building web based applications is to write server side scripts running on web servers. However, these approaches require server programs to be present in the production environment.

What if you want the web server functionality to be contained in your C# program? In C#, there is a System.Net.HttpListener class which listens for HTTP requests from clients.

This post is part 1 of the sequel. In this post, I will introduce the HttpListener class and how we can use it to receive HTTP requests from clients in our C# program.