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
#TimeMemoryFunctionLocation
10.000153012{main}( )../index.php:0
20.000156452require( '/home/bbbart/www/htdocs/blog/wp-blog-header.php' )../index.php:17
30.139413844400require_once( '/home/bbbart/www/htdocs/blog/wp-includes/template-loader.php' )../wp-blog-header.php:16
40.140213906992include( '/home/bbbart/www/htdocs/blog/wp-content/themes/svelt/single.php' )../template-loader.php:34
50.177414021440the_content( )../single.php:16
60.177714022528apply_filters( )../post-template.php:167
70.179514025248call_user_func_array ( )../plugin.php:166
80.179614025432vim_color( )../plugin.php:0
90.179614025768preg_replace ( )../wp-vimcolor.php:143
100.179614029344preg_replace ( )../wp-vimcolor.php:143
110.179614029568vimcolor_process_color( )../wp-vimcolor.php(143) : regexp code:6
120.187114045868fread ( )../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. :-)

Add a Comment   Trackback  

Add a Comment