Wednesday, 19 March 2014

朋友

有一個人很年輕就被蒙主召了,他很不甘心問上帝:「為什麼沒有事先通知就把我召來了,害得我一點心理準備也沒有,很多事也都來不及交待。」
上帝回說:「我有預先通知你啊,有寄三封信給你,你沒收到嗎?」
年輕人:「沒有啊,我沒收到!」
上帝:「你有沒有常覺得很累、想睡覺,精神總是不好的樣子?」
年輕人:「有啊有啊,這就是你寄給我的信?那我有收到…」
上帝:「你有沒有常感到肩頸酸痛?」
年輕人:「有啊,那我也有收到。」
上帝:「你有沒有常覺得頭暈、頭痛,視力變得模糊?」
年輕人:「有啊,這就是你給我的三封信?」
上帝:「對啊,所以我有預先通知你了,只是你自己沒注意。」
年輕人也無話可說,只好跟上帝要求:
可以再給我一點時間,讓我回去交待後事?你要多少錢我都可以給你。」
上帝就用手指比一,年輕人答:「一千萬嗎?沒問題我可以給你。」上帝搖頭。
年輕人:「一百萬?」上帝又搖頭,「那是十萬嗎?」上帝仍是搖頭。
年輕人:「那你到底想要多少?」上帝回答:「你只要給我一塊錢。」
年輕人聽了很高興說:「才一塊錢太容易了,我馬上給你。」
結果他翻遍身上口袋也找不到一塊錢。
大家應該很容易了解故事的主題要說什麼了,現代人生活太忙碌,身體已經出現警號也不以為意,等到倒下的那天才要注意,為時已晚,還想跟上帝交換條件嗎?
連一塊錢都拿不出來,錢財生不帶來,死不帶去啊。
上帝有寄警告信,是人——沒在看!
人生無需驚天動地,快樂就好;
友誼無需甜言蜜語,想著就好;
金錢無需車載斗量,夠用就好;
朋友無需遍及天下,有你就好,
照顧好自己的身子,對自己健康負責,世界上所有東西都不是你自己的、唯有身子才是你自己的。其實有很多人都等你去關心,所以,想起誰就發過去吧!今明兩天是世界朋友日,發?你最好的九個朋 友,超過
九個你會幸福的,想起誰,發給誰,也包括我!
有你真好..

Sunday, 12 May 2013

Slow me down Lord 主,讓我慢下來


Slow me down Lord - by Wilfred Arlan Peterson 

Ease the pounding of my heart by the quieting of my mind.

Steady my hurried pace with a vision of the eternal march of time.

Give me amid the confusion of the day, the calmness of the eternal hills.

Break the tension of my nerves and muscles with the soothing music of the singing streams that live in my memory.

Help me to know the magical restoring power of sleep.

Teach me the art of taking minute vacations - of slowing down to look at a flower, to chat with a friend, to pat a dog, to read a few lines of a good book.

Slow me down Lord and inspire me to send my roots deep into the soil of life's enduring values that I may grow toward the stars of my greater destiny. 

主, 讓我慢下來 - 王英偉 阿蘭 彼得森

讓我安靜的腦海紓緩我心裡的衝擊。
在永恆的時間旅程裡讓我匆匆的腳步變得穩定 。


讓平靜的永恆的小山驅散哪混亂的一天。
讓我記憶中舒緩的音樂去打破我的神經和肌肉的緊張。
幫助我知道睡眠的神奇恢復能力。


教我用一分鐘假期的藝術 - 放慢看一朵花,與朋友聊天,拍拍狗,讀幾行一本好書。


主, 讓我慢下來,激勵我讓我的根深深地扎入人生永恆價值的土壤,讓我可朝著更大的宿命成長。


Thursday, 9 May 2013

ESXi 5.1 esxcli network commands

If you want to change the vmkernel (or the management network IP) using command lines, here is the tips and steps;

ESX Console 
  1. logon to the console screen of the ESXi 5.1 Server
  2. press F2 to customize system
  3. enter login name as root
  4. enter your root password
  5. On the System Customization screen select "Troubleshooting Option"
  6. Enable ESXi shell
  7. If you wnat to execute remotely then Enable SSH 
  8. press ESC 2 times to return to the Main Screen
  9. press ALT F1 to goto the console screen
  10. login as root with password, then you will see the command prompt "~ #"
Command Line
On the command line, list the  network adapters like below for checking;

~ # esxcli network nic list
Name    PCI Device     Driver  Link  Speed  Duplex  MAC Address         MTU  Description
------  -------------  ------  ----  -----  ------  -----------------  ----  --------------------------------------------------------
vmnic0  0000:003:00.0  tg3     Up     1000  Full    00:23:7d:df:9d:3a  1500  Broadcom Corporation NetXtreme BCM5715S Gigabit Ethernet
vmnic1  0000:003:00.1  tg3     Up     1000  Full    00:23:7d:df:9d:3e  1500  Broadcom Corporation NetXtreme BCM5715S Gigabit Ethernet

First change vmnic1, (DON't change vmnic0 because this is your current connection if using remote ssh)
To change vmnic1 settings, please use below syntax;

Usage: esxcli network ip interface ipv4 set [cmd options]

Description:
  set                   Configure IPv4 setting for a given VMkernel network interface.

Cmd options:
  -i|--interface-name=<str>
The name of the VMkernel network interface to set IPv4 settings for. This name must be an interface listed in the interface list command. (required)
  -I|--ipv4=<str>       
The static IPv4 address for this interface.
  -N|--netmask=<str>    
The static IPv4 netmask for this interface.
  -P|--peer-dns         
A boolean value to indicate if the system should use the DNS settings published via DHCP for this interface.
  -t|--type=<str>       
IPv4 Address type :      dhcp: Use DHCP to aquire IPv4 setting for this interface.     none: Remove IPv4 settings form this interface.     static: Set Static IPv4 information for this interface. Requires --ipv4 and --netmask options. required)

for example to change the adapter vmk1 settings to use static IPV4, IP address and netmask is 172.17.23.35 255.255.255.0
use below command;

~ # esxcli network ip interface ipv4 set -i vmk1 -I 172.17.23.35 -N 255.255.255.0 -t static

then list the gateway for checking;

~ # esxcli network ip route list

next, change the gateway;

~ # esxcli network ip route ipv4 add -g 172.17.23.1 -n default

when you are ready to change the first adapter vmk0, use the same command syntax; 
for example IP address and netmask is 172.17.23.25 255.255.255.0

~ # esxcli network ip interface ipv4 set -i vmk0 -I 172.17.23.25 -N 255.255.255.0 -t static

again, change the gateway;

~ # esxcli network ip route ipv4 add -g 172.17.23.1 -n default

Test by pinging the 2 IP addresses above from another machine to see if both vmk0 and vmk1 are responding correctly.

Last thing to do, remember to update your internal DNS to point to the right IP address of the ESXi server.
Also go back to the console screen of the ESX server, exit the shell and disable ESXi shell.

Copy Blackberry contacts

Want to copy /transfer Blackberry contacts, notes, calendar, tasks ... etc from one Blackberry phone to another?
Most people will answer below :

  1. for contacts, copy from Blackberry address book to the SIM card, then put the SIM card into the new phone and start import from the SIM
  2. for contacts, notes, calendar, tasks ... etc, you can sync to the outlook from one Blackberry phone to the PC, then sync them back from PC to another Blackberry phone

What about the phone settings, alarms, defined keys, password, ring tone, bookmark settings ... etc

A quick and easy way to do is using the Blackberry Desktop Manager built-in function 
--> Device switch wizard

You can use the device switch wizard to import data from a BlackBerry® device, Palm® device, or Windows Mobile® powered device to another BlackBerry device.

If you switch between BlackBerry devices, the device switch wizard is able to import supported email messages, organizer data, third-party applications, and BlackBerry® Enterprise Server connection options from the current device to your new device. Basically all previous phone settings and data will be transfered to the new device in one go.

If you switch from a Palm device or a Windows Mobile powered device to a BlackBerry device, the device switch wizard is will import the organizer data from the current supported device to the new BlackBerry device.

Follow below Steps;

  1. Connect your current device and the new device to your computer e.g. via USB cable
  2. Open the BlackBerry® Desktop Manager, check the devices are all detected correctly
  3. Click Device Switch Wizard
  4. Select the correct switch (either the left or the right option) Click Start
  5. Select the From and To device and their pin
  6. Start transferring (take a minute or longer depends on your data size)
That's it.


Wednesday, 8 May 2013

IPSEC service stopped


What
After rebooted the Windows Server, IPSEC service stopped, cannot ping internal IP or ping out to the internet.

Error Messge / Symptom
the following events may be logged in the server's System log:

Event Type: Error
Event Source: IPSEC
Event Category: None
Event ID: 4292
Date: Dateime
Time: Time08
User: N/A
Computer: COMPUTER_NAME
Description:
The IPSec driver has entered Block mode. IPSec will discard all inbound and outbound TCP/IP network traffic that is not permitted by boot-time IPSec Policy exemptions.;

Solution / Fix
This problem can occur if the IPSec\Policy\Local registry key is deleted or when there is a corrupted file in the policy store. One typical casue is running out of space in Drive C:, the OS disk partition.


Please follow below steps to remediate :
  1. Delete the local policy registry subkey. To do this, follow these steps: 
    1. Click Start, click Run, type regedit in the Open box, and then click OK.
    2. In Registry Editor, locate and then click the following subkey: 
      HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\IPSec\Policy\Local
    3. On the Edit menu, click Delete.
    4. Click Yes to confirm that you want to delete the subkey.
    5. Quit Registry Editor
  2. Rebuild a new local policy store. To do this, Click Start, click Run, type regsvr32 polstore.dll in the Open box, and then click OK.
  3. Verify that the IPSEC Services component is set to automatic, and then restart the Server.