Select random rows with SQL…
Select a random row with MySQL:
SELECT column FROM table ORDER BY RAND() LIMIT 1 continue reading...
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
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
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)
http://linux.die.net/man/5/yum.conf
http://www.w3schools.com/Ajax/default.asp
before i will forget, i should memorise this.
The word in Chinese ‘XinFu’, should be defined as: Happy, lucky, contented, and appreciated.
My friend, i known, your memory last to the moment of getting out of the toilet, mine is not too much longer than yours. My memory last to the moment of getting in of the taxi again. After tacking you home, setting you in the couch, and i left. I did talk to the taxi driver for something, but i lost the memory of how getting out of the taxi, how did i get to the toilet and washed, and how did i get into the bed. Memory stopped here. The next moment is i was waked up by her, told me the alarm of my mobile phone was just shout. I brushed and washed, and catched the bus i’m taking now.
I am so happy, i am so lucky, i am so contented, i am so appreciated.
Without knowing of how getting into the bed, I was waked up, my t-shirt, trousers, socks are ready.
i am so happy, i am so lucky, i am so contented, and i am so appreciated.
I am so ‘XinFu’.
Sitting in the bus, i am going to take a snap, before i lost my memory again, i noted this down.
Kisses to my Babies………..with Love (K)
2009-02-23 Monday 06:40am on.the.bus
Mr. Jiang said: 「悶聲發大財」, but i was really happy when i saw the two red lines though i had known the result.
Date: Nov 16, 2008
I was really happy.
Nothing is difficult, we will stand hand in hand and face it and solve it all.
Keep smiling, with Love.