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.000353044{main}( )../index.php:0
20.000456484require( '/home/bbbart/www/htdocs/blog/wp-blog-header.php' )../index.php:17
30.195516857228require_once( '/home/bbbart/www/htdocs/blog/wp-includes/template-loader.php' )../wp-blog-header.php:16
40.197116919808include( '/home/bbbart/www/htdocs/blog/wp-content/themes/svelt/single.php' )../template-loader.php:43
50.233217040096the_content( )../single.php:16
60.233317041000apply_filters( )../post-template.php:169
70.235017045668call_user_func_array ( )../plugin.php:166
80.235017045852vim_color( )../plugin.php:0
90.235117046188preg_replace ( )../wp-vimcolor.php:143
100.235117049912preg_replace ( )../wp-vimcolor.php:143
110.235117050164vimcolor_process_color( )../wp-vimcolor.php(143) : regexp code:6
120.243317066512fread ( )../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