1. Install ntp.
# yum install ntp
2. Turn on service.
# /sbin/chkconfig ntpd on
3. Synchronize the system clock.
# /sbin/ntpdate pool.ntp.org
4. Start ntp.
# /etc/init.d/ntpd start
1. Install ntp.
# yum install ntp
2. Turn on service.
# /sbin/chkconfig ntpd on
3. Synchronize the system clock.
# /sbin/ntpdate pool.ntp.org
4. Start ntp.
# /etc/init.d/ntpd start
If you saw a message that said "Inactive Plug-in" when you wanted to play a Java applet game or something, turn on the Java applet plug-in for browsers. It's vary easy.
The update to OSX Lion 10.7 would disable Java applet in browsers for some reason.
If you see the following warning message on your javaScript console of Google Chrome, you have to update jQuery to the latest version.
----------------------------------------------------------------------------------------------------------------------------------------------------------
event.layerX and event.layerY are broken and deprecated in WebKit. They will be removed from the engine in the near future.
----------------------------------------------------------------------------------------------------------------------------------------------------------
http://stackoverflow.com/questions/7825448/webkit-issues-with-event-layerx-and-event-layery
0からnまでの整数の乱数を生成する方法を、言語別にメモしておく。
C
#include <stdlib.h> srand(time(NULL)); rand() % (n + 1);
Random r = new Random(); r.Next(n + 1);
Math.floor(Math.random() * (n + 1));
Math.floor(Math.random() * (n + 1));
rand(n + 1)
import random random.randint(0, n + 1)
mt_rand(0, n);
Update all packages.
$sudo port selfupdate
$sudo port sync
$sudo port upgrade outdated
Uninstall old ports
$sudo port uninstall inactive