Ichikuma's blog

生活實況紀錄

By

dasBlog 2.1.8102.813

Finally my dasBlog 2.1.8102.813 has up :).

This fews day the add entry does not appear. So, I recompile the dasblog then it work.

I also has added some gadget (right hand side) at my theme :p.

By

【心情乐章】给你們

最近聼到一首張宇的歌,歌名是“给你們”。它是一首寫给一對新人的歌,歌詞滿有意思的。他是以第三者與新郎新娘對話和祝福。以下是這首歌的歌詞:

给你们(张宇)

曲:张宇

词:十一郎

编:MICHAEL THOMPSON

他将是你的新郎

从今以后他就是你一生的伴

他的一切都将和你紧密相关

福和祸都要同当

她将是你的新娘

她是别人用心托付在你手上

你要用你一生加倍照顾对待

苦或喜都要同享

一定是特别的缘份

才可以一路走来变成了一家人

他多爱你几分

你多还他几分

找幸福的可能

从此不再是一个人

要处处时时想着念的都是我们

你付出了几分

爱就圆满了几分

By

不要用我們大人的邏輯在小孩身上

[youtube]tTkBjhyN6DQ[/youtube]

By

如何準備一篇演説文章

STEPS FOR PREPARING A SPEECH:

* Think of an idea for your talk.
* Decide your speech’s purpose.
* Come up with a particular slant or focus.
* Write down your message in one sentence.
* Draft an outline with an opening, body and conclusion.
* Write out your complete speech.
* Do the single sentence test.
* Write something out for the person introducing you.

By

Photoblog

I have setup my photoblog at http://photo.coderkk.net/. Which is base on wordpress engine and plug-in the Yet Another Photoblog (YaPB) component. But thing is the website is very slow….

Hope I can resolve the problem.

By

Inspiron 1420

Today, my new notebook, Inspiron 1420, has arrive.

It is Windows Vista box. Actully, l want to tested out some program with Vista long time ago. (Althought many people still saying that Vista got many problem with some application). But, for developer, I think I need to try it, and get experience with it.

Now, I am planning what I will do with me new baby now. 🙂

By

dasblog upgraded to 2.0.7226.0

Now my current version dasBlog is 2.0.7226.0. 🙂

By

Bind DLINQ to DataGridView

This morning I try to find a method to bind DLINQ to DataGridView. There don’t have ToBindingList in DLINQ DataQuery. Need to manually import System.Data.Dlinq.DataQueryExtensions in the top of form

	Imports System.Data.Dlinq.DataQueryExtensions

After that, the method ToBindingList() will come out.

        Dim sConnectString As String = "data source=.\SQLEXPRESS;" & _
                 "Integrated Security=SSPI;AttachDBFilename=D:\Data\Northwind.mdf;" & _
                 "User Instance=true"
        Dim db As New Northwind(sConnectString) 

        Dim cust = From c In db.Customers _
                 Select c

        DataGridView1.DataSource = cust.ToBindingList()
        DataGridView1.Refresh()

So now, I can modify this to bind the DataQuery to BindingSource for my form.

By

VB.NET LINQ == RUBY?

I have write a simple program in VB.Net LINQ and Ruby, which product the result is same. If you study the code both syntax almost same. I think nowaday all programming langauge is going to ruby-like programming language (easy to understand and real object-oriented programming).

VB.Net

Dim v as Integer
Dim numbers As Integer() = New Integer() {1, 4, 2, 7, 8, 9}
Dim evenNumbers = From p In numbers _
       Where (p Mod 2) = 0 _
       Select P
For Each v In evenNumbers
   System.Console.WriteLine(v)
Next

Ruby

numbers = [1,4,2,7,8,9]
evenNumbers = Array.new
numbers.each do |p|
 evenNumbers<<p if (p % 2) == 0
end
evenNumbers.each {|p| print p}

By

Happy New Year

Happy New Year