Posts

Showing posts from 2015

Random number

Image
For any reason, if you need to generate a alphanumeric password, the VBA code below will be able to help you. 1. Press Alt+F11 to bring up the Visual Basic Editor. 2. Right click the book object and select Insert > Module. 3. Paste the code below into the Module window. 4. At any cell enter function =RandomizeF() 5. This code will skip Capital "I", Capital "O", small letter "l", small letter "o" because I use this code to generate random password. In order to avoid confuse, I decide to remove these letter. * Public Function RandomizeF() Dim Rand As String Application.Volatile Do     'i = i + 1     Randomize     a = Int((85) * Rnd + 38)     If a >= 49 And a <= 57 Then         Rand = Rand & Chr(a)     ElseIf a >= 65 And a <= 72 Then         Rand = Rand & Chr(a)     ElseIf a ...

Install VMware workstation 11 on Fedora 21 with kernel 3.17

Image
Here is some solutions which might be able to help you during your VMware workstation 11 installation on Fedora 21 with kernel 3.17. 1. When you try to power on a virtual guest, you received error : "Unable to change virtual machine power state internal error". Change the option mks.enable3d in the .vmx file from TRUE to FALSE . mks.enable3d = FALSE 2. When you try to power on a virtual guest, you received error: "Version mismatch with vmmon module: expecting xxx.x, got yyy.y. You have an incorrect version of the 'vmmon' kernel module. Try command below, these steps will help to patch vmnet source code: # curl http://pastie.org/pastes/9934018/download -o /tmp/vmnet-3.19.patch # cd /usr/lib/vmware/modules/source # tar -xf vmnet.tar # patch -p0 -i /tmp/vmnet-3.19.patch # tar -cf vmnet.tar vmnet-only # rm -rf *-only # vmware-modconfig --console --install-all 3.  When you try to power on a virtual guest, you received error: "Failed to open device...