Ichikuma's blog

生活實況紀錄

By

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

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

By

EMI – Loan Calculator

Yesterday, I surf the net. I found an interesting article calculating EMIs from rmathew.

This guy explain the EMIs formula very clean and easy to understand. After read all the article, I use the formula which provide by rmathew and develop a loan calculator page.

Now, I can use it to compare the housing loan from severals bank. And see who offer a nice home loan interest.

By

菩薩心如清涼月

  • 菩薩心如清涼月,常遊太虛畢竟空。
  • 心中有愛,心月明亮!
  • 證嚴上人開示:「每一年,如同最圆满的中秋月一样,我们要时时要提起菩萨心肠,如明月般悬挂在空中,既可照亮大地,也那会让大地清凉。每一个学佛的弟子,都应该要有这一份清凉的心地来照亮众生。希望慈济人,时时刻刻站在黑暗的角落,亮起生命之光,照耀苦难众生,使在黑暗中的众生,也得到光明清凉的境界。」
  • 菩萨的心有如清凉、柔和的月光,不会让人有压迫感,却能朗照所有境界,让它充满光明。这分光明就是智慧,没有压迫感就是无限的慈悲。
  • 證嚴上人在《菩薩心如清涼月》裡說:「愛,是人生最幸福的,這種愛,不是迷情,是覺悟的愛。慈悲就是一種無彩色的愛,這份無彩色的愛,像一湖清水,清澈見底。這種愛是絕無附帶條件的愛、無污染的愛,是透徹的,也叫清水之愛。耍愛的像清水、像鏡子一樣,一旦景象離開,立即恢復澄清,不再留存任何色彩。要如此,我們才能愛普天下的眾生。以無彩色的愛為基礎,菩薩的心就能如同清涼的月色。」 證嚴上人說:「菩薩的心就像月亮的光明,我們平常就要培養這份像月亮一樣的心──不管多污穢的地方、多惡劣的環境,還是要把她的光明遍照,絕不會只照在風景幽美的地方,或是華麗的殿堂上。人,不論美、醜,在月光下,都會增加幾分姿色,因為月光是這麼柔和,就像菩薩心一樣。」
  • 《菩薩心如清涼月》慈濟委員以家庭主婦佔大多數, 證嚴上人重視婦女教育,鼓勵女眾委員要做一個賢婦、智識婦,把身心培養得像月光一樣慈悲柔和,寬大自己的心胸,燃起智慧之光,使任何與她相處的人,都像是沐浴在清涼的月光中。因此, 證嚴上人以慈善為婦女開闢了一條新路;在「濟貧教富」的過程中,啟發婦女的慈悲心,調合自己的聲音和臉色,將愛的氣氛帶進家庭,同時也讓貧困老弱者得離苦。