Monday, July 8, 2013

The Fist of Legend

Yesterday I watched a movie 'Fist of Legend' by Jet Li. I was a fan of Jet Li and this one made me addicted to Jet Li movies. The fighting style is really stunning and I was too amazed to see his skills. This is the second best movie after 'Defender'. Wish to see more from him.

Wednesday, July 3, 2013

Associating Console Output with Windows Form C#

Some people like me need to use console output besides windows output. This is required specially you are doing some ordinary things and testing some functions. Here is the approach.

Steps:
You need to add kernel32.dll  library to your windows application and associate a console instance with your form application.


//add this namespace
using System.Runtime.InteropServices;

//add these attributes
[DllImport("kernel32.dll", SetLastError = true)]
[return: MarshalAs(UnmanagedType.Bool)]
static extern bool AllocConsole();

//add the method in Load function
 private void Form2_Load(object sender, EventArgs e)
        {
            AllocConsole();
        }


//now you can use console to show output
Console.WriteLine("This is an output in the console from windows app.");

Tuesday, July 2, 2013

Pretend to be happy

Sometimes, it seems all we need to pretend to be happy. Just spent the whole day in thinking and sleeping about the future direction of life about the life. I am not good at pretending and it is not quite good feeling for me. There should be a way out. Lets see how things are resolved. Some family matters cannot be shared in a public blog like this when the Google is showing the posts at top for matching keyword search.

Anyway, lets do some experiment with human psychology, specially the girl's psychology. I need to be quite sure about the girl I would be living with for the rest of my life. Sometimes, I need to be bold to take the right decision.

However, what I learned from all of the past events of my life: Love is your great strength, it is also great weakness.

Pretend to be happy

Sometimes, it seems all we need to pretend to be happy. Just spent the whole day in thinking and sleeping about the future direction of life about the life. I am not good at pretending and it is not quite good feeling for me. There should be a way out. Lets see how things are resolved. Some family matters cannot be shared in a public blog like this when the Google is showing the posts at top for matching keyword search.

Anyway, lets do some experiment with human psychology, specially the girl's psychology. I need to be quite sure about the girl I would be living with for the rest of my life. Sometimes, I need to be bold to take the right decision.

However, what I learned from all of the past events of my life: Love is your great strength, it is also great weakness.

Monday, July 1, 2013

Just completed WCRE Surfclipse

The same time yesterday, I was too busy to breathe and eat. The task was to convert a 10 pages paper into 5 pages which is a tough job for every person who writes paper. However, I had to complete the task and I spent 17 hours sitting on the chair. At the last, I completed the task and the paper was submitted. Now, me and my supervisor is thinking of something about thesis.

If we can make stacksuggest + surfclipse + semcomplete= my MSc thesis, then it will be a really great thing and all of works from the beginning will be included in the thesis.

Anyway, lets look forward into the future and wait for the perfect opportunities.

Just completed WCRE Surfclipse

The same time yesterday, I was too busy to breathe and eat. The task was to convert a 10 pages paper into 5 pages which is a tough job for every person who writes paper. However, I had to complete the task and I spent 17 hours sitting on the chair. At the last, I completed the task and the paper was submitted. Now, me and my supervisor is thinking of something about thesis.

If we can make stacksuggest + surfclipse + semcomplete= my MSc thesis, then it will be a really great thing and all of works from the beginning will be included in the thesis.

Anyway, lets look forward into the future and wait for the perfect opportunities.