How To: Manually update OS X time from Command Line

How To: Manually update OS X time from Command Line

Sometimes OS X’s time and date gets out of sync with the real world, and using the option “Set date and time automatically:” doesn’t always work.

You can use this command in terminal to update it manually:

ntpdate -u

The server address can be any of the Apple Servers such as time.apple.com or the free Time Servers, pool.ntp.org.

This same command should work for most Unix/Linux Operating systems, as long as ntpdate is installed.

“Can’t Upload Image, directory missing” in WordPress

“Can’t Upload Image, directory missing” in WordPress

“Can’t Upload Image, directory missing” message comes up in WordPress when the uploads directory is missing. In older versions of WordPress, or in a one click install from a company such as DreamHost, the entire path was coded into the WordPress settings.

To fix in WP versions below 3.0:
1.) Login to Admin Control Panel
2.) Go to Settings
3.) Go to Miscellaneous
4.) Change the field: “Store uploads in this folder” to the short, correct path: wp-content/uploads

To fix in WP versions 3.0 and above:
1.) Login to Admin Control Panel
2.) Go to Settings
3.) Go to Media
4.) Change the field: “Store uploads in this folder” to the short, correct path: wp-content/uploads