Poor man’s NTP
| ( ! ) Warning: fread() [function.fread]: Length parameter must be greater than 0 in /home/bbbart/www/htdocs/blog/wp-content/plugins/vimcolor/wp-vimcolor.php on line 105 | ||||
|---|---|---|---|---|
| Call Stack | ||||
| # | Time | Memory | Function | Location |
| 1 | 0.0001 | 53012 | {main}( ) | ../index.php:0 |
| 2 | 0.0001 | 56452 | require( '/home/bbbart/www/htdocs/blog/wp-blog-header.php' ) | ../index.php:17 |
| 3 | 0.1394 | 13844400 | require_once( '/home/bbbart/www/htdocs/blog/wp-includes/template-loader.php' ) | ../wp-blog-header.php:16 |
| 4 | 0.1402 | 13906992 | include( '/home/bbbart/www/htdocs/blog/wp-content/themes/svelt/single.php' ) | ../template-loader.php:34 |
| 5 | 0.1774 | 14021440 | the_content( ) | ../single.php:16 |
| 6 | 0.1777 | 14022528 | apply_filters( ) | ../post-template.php:167 |
| 7 | 0.1795 | 14025248 | call_user_func_array ( ) | ../plugin.php:166 |
| 8 | 0.1796 | 14025432 | vim_color( ) | ../plugin.php:0 |
| 9 | 0.1796 | 14025768 | preg_replace ( ) | ../wp-vimcolor.php:143 |
| 10 | 0.1796 | 14029344 | preg_replace ( ) | ../wp-vimcolor.php:143 |
| 11 | 0.1796 | 14029568 | vimcolor_process_color( ) | ../wp-vimcolor.php(143) : regexp code:6 |
| 12 | 0.1871 | 14045868 | fread ( ) | ../wp-vimcolor.php:105 |
Yesterday I had to quickly (more or less) synchronize the clocks of a handful of computers I was working on. I didn’t have the time to work out an NTP based solution, so I came up with the following simple trick:
Needless to say… it worked. :-)