How to turn on the Java applet plug-in for browsers.

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.

  1. Launch "Java Preferences". You can find it by using Spotlight.
  2. Check "Enable applet plug-in and Web Start applications".
  3. Re-start your browser. That's it!

The update to OSX Lion 10.7 would disable Java applet in browsers for some reason.

How to remove "event.layerX and event.layerY are broken and deprecated in WebKit..." warning message.

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

MySQL commands I learned today.

  • alter table [tablename] add [columnname] varchar (20); Add a new column to a table.
  • alter table [tablename] drop [columnname]; Delete a column from a table.
  • alter table [tablename] change [columnname] [newcolumnname] varchar (20); Change a column name and size.
  • alter table [tablename] rename [newtablename]; Change a name of a table.
  • mysql -u [username] -p [databasename] < hoge.sql; Load an external sql file.
  • mysqldump -u [username] -p [databasename] > moge.sql; Dump a database to an external file.