Wine Tasting @ Evergreen Laurel Collection (2009/08)

August 23rd, 2009 Phanix

After back to Taiwan, fewer wine tasting occassions I can join, that is not a good news for keeping my nose and cultivating this interest. However, Evergreen Laurel Collection co. provides wine tasting activities monthly, and this is my 2nd time. The first time is in the last month, but my tasting notes must lost in some mystery places, so I start writing down my tasting notes from the 2nd wine tasting at Evergreen Laurel Collection.

Read the rest of this entry / 繼續閱讀 »

Visual Studio .Net 設定 DLL / EXE 版本編號

August 12th, 2009 Phanix

in Properties\AssemblyInfo.cs

[assembly: AssemblyVersion("1.0.0.1")]
[assembly: AssemblyFileVersion("1.0.0.1")]

Dogs in Damme

August 11th, 2009 Phanix

cute dogs~ :D

And their masters are also interesting, ask me for photos of dogs… :D

_MG_8323 (by Phanix)

_MG_8321 (by Phanix)

_MG_8320 (by Phanix)

Weird ASUS P5KR

August 11th, 2009 Phanix

太早起床不是一件好事….

Read the rest of this entry / 繼續閱讀 »

C# UDP server sending and client receiving

August 10th, 2009 Phanix

UDP Server

private void ServerBroadcastThread()
{
    int GroupPort = 15000;

    UdpClient udp = new UdpClient();
    udp.EnableBroadcast = true;
    IPEndPoint groupEP = new IPEndPoint(IPAddress.Broadcast, GroupPort);

    string str4;
    byte[] sendBytes4;

    while (true)
    {
        str4 = "Is anyone out there?";
        sendBytes4 = Encoding.Default.GetBytes(str4);
        udp.Send(sendBytes4, sendBytes4.Length, groupEP);

        Thread.Sleep(10000);
    }
}

UDP Client

private void ClientBroadcastThread()
{
    UdpClient receivingUdpClient = new UdpClient(15000);
    IPEndPoint RemoteIpEndPoint = new IPEndPoint(IPAddress.Any, 0);

    string returnData;
    byte[] receiveBytes;

    while (true)
    {
        try
        {
            // Blocks until a message returns on this socket from a remote host.
            receiveBytes = receivingUdpClient.Receive(ref RemoteIpEndPoint);

            returnData = Encoding.ASCII.GetString(receiveBytes);

            MessageBox.Show(returnData);
        }
        catch (Exception e)
        {
            //Console.WriteLine(e.ToString());
        }
    }
}

Add description to functions and parameters in .NET

August 7th, 2009 Phanix

While using some library functions in Visual Studio .NET, you can always find such kind of descriptions which help you to get some idea of parameters and functions.

csharp_function_description (by Phanix)

However, how to provide such kind of descriptions in your class libraries?

Plz refer this! http://www.codeproject.com/KB/XML/csharpcodedocumentation.aspx?msg=1643354

Allow multiple statements in MySQL ODBC

August 7th, 2009 Phanix

While using MySQL ODBC to execute sql statements, only single sql statement is allowed for execution by default. If you want to execute multiple sql statements at once, you have to enable the multiple statements setting in MySQL ODBC.

mysql setting  ODBC multiple statement (by Phanix)

Wedding of Mike Chang’s

August 4th, 2009 Phanix

The 1st wedding after back to TW, cong. to my university classmate, Mike Chang! :D

_MG_7293 (by Phanix)

_MG_7308 (by Phanix)

_MG_7309 (by Phanix)

Well, an classmate’s wedding is the best occasion for reunion. :P (Well, again, I am not in the photo… the sadness of camera-er. XD
_MG_7311 (by Phanix)

BTW, I think I am a little not as close to portrait photos as before, after 1yr staying in USA.

You can find all the few photos here

Let’s shot!

August 1st, 2009 Phanix

Well, this is a business can be found in traveling spots. Someone may take a picture of you, and you can get some product or the original picture if you pay. In Ghent, the guy took a shot of me, as the 1st photo. And I took one of him. :P

000164698D6

_MG_8098

Driving in BE

August 1st, 2009 Phanix

Driving in BE is an interesting experience for me.

Read the rest of this entry / 繼續閱讀 »