Smile

…to Remember, …to Forget

Browsing Posts published by admin

i have been busy for changing diapers, cleaning milk bottles for those months.

now, my girl is walking, hitting around, and will do a sweet kiss on papa’s playing long face, and my boy, growing up after his sister.

OK, everything is fine!

OK, i need to get back to work! Do Dance, Dance, and Dance.

🙂

Jquery – The write less, do more javascript library has all sorts of different code samples that do a wide variety of things. Today, we’ll be looking at different Jquery Slideshow applications that can be used to diversify your homepage, content, or anywhere that is big enough to display an image. continue reading…

Select random rows with SQL…

Select a random row with MySQL:

SELECT column FROM table
ORDER BY RAND()
LIMIT 1 continue reading...

lspci ( lists pci device)
lsusb ( lists usb device)
lsscsi ( lists scsi device)
systool
fdisk -l ( lists hard drive)
dmidecode ( lists hardware model, serial number, cpu, memory. This command was handy when i needed to find serial number without a visit to data center)
cat /proc/cpuinfo ( more on cpu)
cat /proc/meminfo ( more on memory)

you can find a lot of information by using dmesg|more or grep what you are looking
e.g.
dmesg | egrep ‘(SCSI|scsi0|ide0|hda|sda|serio|mice|eth0|eth1)’

cat /proc/cpuinfo

cat /proc/meminfo

http://msdn.microsoft.com/en-us/library/b86b82w0.aspx

Introduction to Objects in Visual Basic
Provides an introduction to the terms and concepts used in object-oriented programming.

Understanding Classes
Provides an overview of classes and an example of how to define a class.

Creating and Using Objects
Shows how to create and use instances of classes.

Collections in Visual Basic
Provides an overview of collections.

Events in Visual Basic
Shows how to declare and use events.

Delegates in Visual Basic
Shows how to declare and use delegates.

Interfaces in Visual Basic
Describes what interfaces are and how you can use them in your applications.

Inheritance in Visual Basic
Describes how to define classes that serve as the basis for other classes.

Shared Members in Visual Basic
Describes members that can be used without instances.

Early and Late Binding
Describes binding, which is performed by the compiler when an object is assigned to an object variable, and the differences between early-bound and late-bound objects.

Public Interface ICommonFunctions
Sub saverecord()
End Interface

Public Class frmSaleInvoice
Inherits System.Windows.Forms.Form
Implements ICommonFunctions            ‘<—– our Interface

…… Normal Form objects……

Public Sub saverecord() Implements ICommonFunctions.saverecord

….. The Function Body ….

End Sub

End Class

‘Similarly other forms

Public Class frmSomeOtherForm
Inherits System.Windows.Forms.Form
Implements ICommonFunctions            ‘<—– our Interface

…… Normal Form objects……

Public Sub saverecord() Implements ICommonFunctions.saverecord
….. The Function Body ….

End Sub

End Class

‘Then in MDI on a button click

If Not me.ActiveMDIChild Is Nothing then
DirectCast(Me.ActiveMdiChild,ICommonFunctions).saverecord()  ‘<— Call the function
End If

# remember you are using ActiveMDIChild and not ActiveForm so the child forms must have their MDIParent set to the MDI form

# echo -n "1122" | openssl dgst -md5
Using openssl:
 echo "1122" | openssl dgst -md5
 01ebeaafc334e503f4acc94a18df9fa5

and using MySQL:
 SELECT md5("1122");
 3b712de48137572f3849aabd5666a4e3

echo -n, don't send the eol character.

http://www.vanemery.com/Linux/Apache/openSSL.html
http://marc.info/?l=openssl-users&m=112537522329771&w=2

http://md5-hash-online.waraxe.us/

http://www.youtube.com/watch?v=3SmndwrRkxw
(reset the wp password with mysql)

yum exclude

No comments

http://linux.die.net/man/5/yum.conf

continue reading…

http://www.w3schools.com/Ajax/default.asp

2009-03-04 13:24image_134_2_resize
真正全然陌生了的安靜安寧的感覺。
午飯時候的尖東海傍, 細雨落在廖廖數人的海傍公園。維港對岸浸淫在一片雨霧之中, 腳下海浪輕拍著, 渡輪緩緩的飄浮來往……
已是多少歲月了, 未嘗如此安然的感覺。

文化中心的婚姻登記處, 剛剛遞交了結婚申報表。image_135_2_resize

心中安寧, 是因為我已決定了我的去向。

朋友們, 祝福我們吧…

BB、bb, 我們攜手邁步吧, 途中也許風風雨雨, 我們攜手並肩上吧…
好了, 下一站醫院產房!