]> git.sesse.net Git - remoteglot/log
remoteglot
8 years agoMake the current game switchable through the URL hash, so bookmarking, link following...
Steinar H. Gunderson [Sun, 28 Jun 2015 22:02:08 +0000 (00:02 +0200)]
Make the current game switchable through the URL hash, so bookmarking, link following etc. works as it should.

8 years agoMake engine URL, move source and similar values dynamic instead of hard-coding them...
Steinar H. Gunderson [Sun, 28 Jun 2015 00:10:55 +0000 (02:10 +0200)]
Make engine URL, move source and similar values dynamic instead of hard-coding them in the HTML.

Also change 'id' to 'engine' in a long-standing cleanup, and remove the unused author information.

8 years agoAdd some support for listing games in progress, and switching between them. (Proper...
Steinar H. Gunderson [Sat, 27 Jun 2015 23:27:39 +0000 (01:27 +0200)]
Add some support for listing games in progress, and switching between them. (Proper linking through #-URLs will come later.)

8 years agoRemove an obsolete comment.
Steinar H. Gunderson [Sat, 27 Jun 2015 13:44:27 +0000 (15:44 +0200)]
Remove an obsolete comment.

This is allowed; see

  http://stackoverflow.com/questions/3463048/is-it-safe-to-delete-an-object-property-while-iterating-over-them

8 years agoIntegrate varnishcount.pl into serve-analysis.js, so there is less chaos in daemons...
Steinar H. Gunderson [Thu, 25 Jun 2015 20:57:08 +0000 (22:57 +0200)]
Integrate varnishcount.pl into serve-analysis.js, so there is less chaos in daemons to run.

8 years agoMake serve-analysis.js capable of handling e.g. /analysis2.pl.
Steinar H. Gunderson [Thu, 25 Jun 2015 20:07:22 +0000 (22:07 +0200)]
Make serve-analysis.js capable of handling e.g. /analysis2.pl.

8 years agoFix a crash in remoteglot.pl with the new SQL stuff.
Steinar H. Gunderson [Thu, 25 Jun 2015 20:00:13 +0000 (22:00 +0200)]
Fix a crash in remoteglot.pl with the new SQL stuff.

8 years agoRemove ingest.pl, as planned.
Steinar H. Gunderson [Tue, 23 Jun 2015 23:48:00 +0000 (01:48 +0200)]
Remove ingest.pl, as planned.

8 years agoSwitch from flat files to PostgreSQL.
Steinar H. Gunderson [Tue, 23 Jun 2015 23:46:54 +0000 (01:46 +0200)]
Switch from flat files to PostgreSQL.

The flat files don't work all that well when you have multiple clients
working on them at the same time. I'm not super-happy about requiring
a server to be up all the time (it would seem to reduce resilience
by quite a lot), but Postgres is a pretty stable thing, so hopefully
we will manage.

Include a script to ingest old data into the database, which we will
remove immediately afterwards.

8 years agoFix an IE11 crash.
Steinar H. Gunderson [Tue, 23 Jun 2015 21:36:38 +0000 (23:36 +0200)]
Fix an IE11 crash.

8 years agoFix an issue in varnishcount.pl with alternative URLs.
Steinar H. Gunderson [Sun, 21 Jun 2015 23:44:05 +0000 (01:44 +0200)]
Fix an issue in varnishcount.pl with alternative URLs.

8 years agoFix an issue where switching backends would cause the gong to go off.
Steinar H. Gunderson [Sun, 21 Jun 2015 23:40:40 +0000 (01:40 +0200)]
Fix an issue where switching backends would cause the gong to go off.

8 years agoTake config filename from an environment variable if it exists.
Steinar H. Gunderson [Sun, 21 Jun 2015 23:29:28 +0000 (01:29 +0200)]
Take config filename from an environment variable if it exists.

8 years agoMake varnishcount.pl multi-backend-capable.
Steinar H. Gunderson [Sun, 21 Jun 2015 23:21:35 +0000 (01:21 +0200)]
Make varnishcount.pl multi-backend-capable.

8 years agoAdd code to switch backends; not yet used.
Steinar H. Gunderson [Sun, 21 Jun 2015 23:16:57 +0000 (01:16 +0200)]
Add code to switch backends; not yet used.

8 years agoMake the JSON filename served by Node.js configurable.
Steinar H. Gunderson [Sun, 21 Jun 2015 22:43:31 +0000 (00:43 +0200)]
Make the JSON filename served by Node.js configurable.

8 years agoPrepare the VCL for multiple backends, with independent cache management.
Steinar H. Gunderson [Sun, 21 Jun 2015 22:40:05 +0000 (00:40 +0200)]
Prepare the VCL for multiple backends, with independent cache management.

8 years agoMake serve-analysis.js capable of listening on a different port.
Steinar H. Gunderson [Sun, 21 Jun 2015 22:16:52 +0000 (00:16 +0200)]
Make serve-analysis.js capable of listening on a different port.

8 years agoVersion bump is done.
Steinar H. Gunderson [Sun, 21 Jun 2015 21:19:56 +0000 (23:19 +0200)]
Version bump is done.

8 years agoBump version to 2015062104.
Steinar H. Gunderson [Sun, 21 Jun 2015 14:21:42 +0000 (16:21 +0200)]
Bump version to 2015062104.

8 years agoRemove the Sizzle selectors we do not have.
Steinar H. Gunderson [Sun, 21 Jun 2015 14:19:46 +0000 (16:19 +0200)]
Remove the Sizzle selectors we do not have.

8 years agoRevert "Revert all the Sparkline optimizations; somehow they break something with...
Steinar H. Gunderson [Sun, 21 Jun 2015 14:18:52 +0000 (16:18 +0200)]
Revert "Revert all the Sparkline optimizations; somehow they break something with :hidden selectors."

This reverts commit 1ced2c535eadfcde66aa95c6d33212ed31f861fe.

The errors are about something else.

8 years agoAlso revert broken JSON_delta stuff.
Steinar H. Gunderson [Sun, 21 Jun 2015 14:18:45 +0000 (16:18 +0200)]
Also revert broken JSON_delta stuff.

8 years agoRevert all the Sparkline optimizations; somehow they break something with :hidden...
Steinar H. Gunderson [Sun, 21 Jun 2015 14:05:27 +0000 (16:05 +0200)]
Revert all the Sparkline optimizations; somehow they break something with :hidden selectors.

8 years agoFix some silly logging issues.
Steinar H. Gunderson [Sun, 21 Jun 2015 13:52:52 +0000 (15:52 +0200)]
Fix some silly logging issues.

8 years agoAdd a mechanism for the server to ask the client to upgrade itself.
Steinar H. Gunderson [Sun, 21 Jun 2015 13:34:19 +0000 (15:34 +0200)]
Add a mechanism for the server to ask the client to upgrade itself.

8 years agoAdd back the margin over the PV.
Steinar H. Gunderson [Sun, 21 Jun 2015 13:19:10 +0000 (15:19 +0200)]
Add back the margin over the PV.

8 years agoRemove yet more sparkline stuff we do not need (3 kB).
Steinar H. Gunderson [Sat, 20 Jun 2015 22:59:20 +0000 (00:59 +0200)]
Remove yet more sparkline stuff we do not need (3 kB).

8 years agoRemove yet more sparkline stuff we do not need (2 kB).
Steinar H. Gunderson [Sat, 20 Jun 2015 22:52:13 +0000 (00:52 +0200)]
Remove yet more sparkline stuff we do not need (2 kB).

8 years agoRemove VML support from jQuery Sparkline (only relevant for old IE). Another 4 kB.
Steinar H. Gunderson [Sat, 20 Jun 2015 22:46:51 +0000 (00:46 +0200)]
Remove VML support from jQuery Sparkline (only relevant for old IE). Another 4 kB.

8 years agoRe-add the local change to make json_delta work under node.js.
Steinar H. Gunderson [Sat, 20 Jun 2015 21:32:08 +0000 (23:32 +0200)]
Re-add the local change to make json_delta work under node.js.

8 years agoSmall comment update.
Steinar H. Gunderson [Sat, 20 Jun 2015 21:28:12 +0000 (23:28 +0200)]
Small comment update.

8 years agoRemove some chart types we don't need; kills 16 kb off the minified (non-gzipped...
Steinar H. Gunderson [Sat, 20 Jun 2015 21:23:39 +0000 (23:23 +0200)]
Remove some chart types we don't need; kills 16 kb off the minified (non-gzipped) JavaScript.

8 years agoAdd a sparkline/bar display for score history.
Steinar H. Gunderson [Sat, 20 Jun 2015 21:18:48 +0000 (23:18 +0200)]
Add a sparkline/bar display for score history.

8 years agoFactor out halfmove -> move formatting into a separate JS function.
Steinar H. Gunderson [Sat, 20 Jun 2015 21:14:58 +0000 (23:14 +0200)]
Factor out halfmove -> move formatting into a separate JS function.

8 years agoCanonicalize output JSON, so that we do not waste bandwidth with empty diffs.
Steinar H. Gunderson [Sat, 20 Jun 2015 11:43:28 +0000 (13:43 +0200)]
Canonicalize output JSON, so that we do not waste bandwidth with empty diffs.

8 years agojQuery is part of the compiled build.
Steinar H. Gunderson [Fri, 19 Jun 2015 22:51:49 +0000 (00:51 +0200)]
jQuery is part of the compiled build.

8 years agoFix another bug with sound play with JSON deltas they are applied in-place).
Steinar H. Gunderson [Fri, 19 Jun 2015 22:50:22 +0000 (00:50 +0200)]
Fix another bug with sound play with JSON deltas they are applied in-place).

8 years agoUpgrade JSON-delta to v1.1.3.
Steinar H. Gunderson [Fri, 19 Jun 2015 22:45:20 +0000 (00:45 +0200)]
Upgrade JSON-delta to v1.1.3.

8 years agoFix an issue where varnishcount would undercount on low traffic.
Steinar H. Gunderson [Wed, 17 Jun 2015 21:43:58 +0000 (23:43 +0200)]
Fix an issue where varnishcount would undercount on low traffic.

Basically AnyEvent and line buffering is tricky; we could end up
reading only the first line even though there were many more ready,
causing us to see the lines from varnishncsa lines way too late
and thus oscillating between ~30 and ~0 viewers.

It's crazy that you need to fiddle with push_read() in the read
callback instead of just being able to set line => directly in the
constructor, but this is seemingly the right idiom.

8 years agoPossibly fix a sound issue related to JSON diffs.
Steinar H. Gunderson [Wed, 17 Jun 2015 20:46:07 +0000 (22:46 +0200)]
Possibly fix a sound issue related to JSON diffs.

8 years agoShow material imbalances.
Steinar H. Gunderson [Sat, 16 May 2015 13:46:14 +0000 (15:46 +0200)]
Show material imbalances.

8 years agoNote a FIXME.
Steinar H. Gunderson [Fri, 15 May 2015 23:37:28 +0000 (01:37 +0200)]
Note a FIXME.

8 years agoPersist clock information for more stable restarts.
Steinar H. Gunderson [Fri, 15 May 2015 23:36:31 +0000 (01:36 +0200)]
Persist clock information for more stable restarts.

8 years agoAdd local time management, for when incoming time is bad or nonexistent.
Steinar H. Gunderson [Fri, 15 May 2015 23:10:16 +0000 (01:10 +0200)]
Add local time management, for when incoming time is bad or nonexistent.

8 years agoMake all clock data be in seconds internally, moving the clock formatting to the...
Steinar H. Gunderson [Fri, 15 May 2015 22:48:24 +0000 (00:48 +0200)]
Make all clock data be in seconds internally, moving the clock formatting to the client.

Also make the client show seconds when there are less than ten minutes left.

8 years agoWhen a position comes in with the same position but new result, copy the result over...
Steinar H. Gunderson [Tue, 12 May 2015 23:03:43 +0000 (01:03 +0200)]
When a position comes in with the same position but new result, copy the result over instead of throwing away the entire position.

8 years agoFix display of castling (Chess.js does not like 0-0 and 0-0-0, but wants O-O and...
Steinar H. Gunderson [Tue, 12 May 2015 18:16:11 +0000 (20:16 +0200)]
Fix display of castling (Chess.js does not like 0-0 and 0-0-0, but wants O-O and O-O-O).

8 years agoBe more flexible about clk comments.
Steinar H. Gunderson [Mon, 11 May 2015 18:15:23 +0000 (20:15 +0200)]
Be more flexible about clk comments.

8 years agoUpdate multi-PV search hardware.
Steinar H. Gunderson [Mon, 11 May 2015 16:38:08 +0000 (18:38 +0200)]
Update multi-PV search hardware.

8 years agoUpdate copyright year.
Steinar H. Gunderson [Mon, 11 May 2015 16:37:38 +0000 (18:37 +0200)]
Update copyright year.

8 years agoAdd a small explanatory comment.
Steinar H. Gunderson [Mon, 11 May 2015 16:35:42 +0000 (18:35 +0200)]
Add a small explanatory comment.

8 years agoIf the PGN has no clock information, explicitly delete it, so that we do not get...
Steinar H. Gunderson [Mon, 11 May 2015 16:35:31 +0000 (18:35 +0200)]
If the PGN has no clock information, explicitly delete it, so that we do not get “dummytime”.

9 years agoFix FICS clock parsing.
Steinar H. Gunderson [Sat, 24 Jan 2015 13:55:34 +0000 (14:55 +0100)]
Fix FICS clock parsing.

9 years agoAdd support for filtering individual games from a PGN.
Steinar H. Gunderson [Sat, 17 Jan 2015 12:37:57 +0000 (13:37 +0100)]
Add support for filtering individual games from a PGN.

9 years agoUpdate the .gitignore field to keep my sanity.
Steinar H. Gunderson [Tue, 9 Dec 2014 00:43:55 +0000 (01:43 +0100)]
Update the .gitignore field to keep my sanity.

9 years agoFix misattribution.
Steinar H. Gunderson [Mon, 8 Dec 2014 23:06:16 +0000 (00:06 +0100)]
Fix misattribution.

9 years agoSupport constructing Position objects from FEN strings.
Steinar H. Gunderson [Thu, 4 Dec 2014 18:58:19 +0000 (19:58 +0100)]
Support constructing Position objects from FEN strings.

9 years agoWe do not need to prettyprint a move if we already have the pretty form.
Steinar H. Gunderson [Wed, 3 Dec 2014 23:07:22 +0000 (00:07 +0100)]
We do not need to prettyprint a move if we already have the pretty form.

9 years agoBe lazier when parsing pretty moves. About 25% speedup in PGN parsing.
Steinar H. Gunderson [Wed, 3 Dec 2014 22:58:56 +0000 (23:58 +0100)]
Be lazier when parsing pretty moves. About 25% speedup in PGN parsing.

9 years agoA little serve-analysis bugfix I forgot to commit.
Steinar H. Gunderson [Wed, 3 Dec 2014 22:49:12 +0000 (23:49 +0100)]
A little serve-analysis bugfix I forgot to commit.

9 years agoAdd board/position output to a bitpacked format.
Steinar H. Gunderson [Wed, 3 Dec 2014 22:38:50 +0000 (23:38 +0100)]
Add board/position output to a bitpacked format.

9 years agoRemove en passant hack for Rybka 2, which is now obsolete; we would rather have the...
Steinar H. Gunderson [Wed, 3 Dec 2014 17:44:15 +0000 (18:44 +0100)]
Remove en passant hack for Rybka 2, which is now obsolete; we would rather have the canonically correct FEN.

9 years agoMore header squeezing.
Steinar H. Gunderson [Tue, 25 Nov 2014 17:25:39 +0000 (18:25 +0100)]
More header squeezing.

9 years agoSome pointless HTTP header microoptimization.
Steinar H. Gunderson [Tue, 25 Nov 2014 17:22:00 +0000 (18:22 +0100)]
Some pointless HTTP header microoptimization.

9 years agoNo longer serve Expires header; it is not needed.
Steinar H. Gunderson [Tue, 25 Nov 2014 17:17:09 +0000 (18:17 +0100)]
No longer serve Expires header; it is not needed.

9 years agoFetch a custom build of jQuery and compile that in; now we actually seem to make...
Steinar H. Gunderson [Tue, 25 Nov 2014 17:15:43 +0000 (18:15 +0100)]
Fetch a custom build of jQuery and compile that in; now we actually seem to make some size progress by compilation.

9 years agoMake sure we do not try to process more than one analysis.json update at a time.
Steinar H. Gunderson [Tue, 25 Nov 2014 16:48:09 +0000 (17:48 +0100)]
Make sure we do not try to process more than one analysis.json update at a time.

9 years agoMake some constants SHOUT_A_BIT.
Steinar H. Gunderson [Tue, 25 Nov 2014 16:44:42 +0000 (17:44 +0100)]
Make some constants SHOUT_A_BIT.

9 years agoAdd support for delta JSON, to squeeze the request size down further.
Steinar H. Gunderson [Tue, 25 Nov 2014 16:43:44 +0000 (17:43 +0100)]
Add support for delta JSON, to squeeze the request size down further.

9 years agoAdd a lazy safeguard against the JSON output being updated when there are actually...
Steinar H. Gunderson [Tue, 25 Nov 2014 00:08:50 +0000 (01:08 +0100)]
Add a lazy safeguard against the JSON output being updated when there are actually no updates.

9 years agoStick most of the properties of the served object in serve-analysis into one package.
Steinar H. Gunderson [Mon, 24 Nov 2014 23:40:58 +0000 (00:40 +0100)]
Stick most of the properties of the served object in serve-analysis into one package.

9 years agoRemove the obsolete text.pl.
Steinar H. Gunderson [Mon, 24 Nov 2014 20:24:38 +0000 (21:24 +0100)]
Remove the obsolete text.pl.

9 years agoAdd the historic text.pl, so we can delete it right afterwards.
Steinar H. Gunderson [Mon, 24 Nov 2014 20:24:29 +0000 (21:24 +0100)]
Add the historic text.pl, so we can delete it right afterwards.

9 years agoUpgrade to jQuery 2.1.1; 10 kB smaller, and we have nearly no IE8 users (or older).
Steinar H. Gunderson [Mon, 24 Nov 2014 20:21:22 +0000 (21:21 +0100)]
Upgrade to jQuery 2.1.1; 10 kB smaller, and we have nearly no IE8 users (or older).

9 years agoClean up the minification stuff a bit; still not really in use.
Steinar H. Gunderson [Mon, 24 Nov 2014 20:17:50 +0000 (21:17 +0100)]
Clean up the minification stuff a bit; still not really in use.

9 years agoRemove unused JavaScript.
Steinar H. Gunderson [Mon, 24 Nov 2014 19:46:08 +0000 (20:46 +0100)]
Remove unused JavaScript.

9 years agoFix some warnings.
Steinar H. Gunderson [Mon, 24 Nov 2014 19:41:10 +0000 (20:41 +0100)]
Fix some warnings.

9 years agoDeal with strange PGN download failures.
Steinar H. Gunderson [Sun, 23 Nov 2014 13:44:28 +0000 (14:44 +0100)]
Deal with strange PGN download failures.

9 years agoDeal with inconsistent zero padding in PGN clocks.
Steinar H. Gunderson [Sun, 23 Nov 2014 12:02:46 +0000 (13:02 +0100)]
Deal with inconsistent zero padding in PGN clocks.

9 years agoDo not bold anything when there is no running clock.
Steinar H. Gunderson [Sun, 23 Nov 2014 11:23:52 +0000 (12:23 +0100)]
Do not bold anything when there is no running clock.

9 years agoSet the active clock in bold.
Steinar H. Gunderson [Sun, 23 Nov 2014 00:52:38 +0000 (01:52 +0100)]
Set the active clock in bold.

9 years agoDo not show seconds in the clocks; a bit too distracting.
Steinar H. Gunderson [Sun, 23 Nov 2014 00:48:04 +0000 (01:48 +0100)]
Do not show seconds in the clocks; a bit too distracting.

9 years agoAdd clock support.
Steinar H. Gunderson [Sun, 23 Nov 2014 00:42:13 +0000 (01:42 +0100)]
Add clock support.

9 years agoAdd the Varnish configuration we are currently using (stripped of everything irrelevant).
Steinar H. Gunderson [Sat, 22 Nov 2014 14:01:24 +0000 (15:01 +0100)]
Add the Varnish configuration we are currently using (stripped of everything irrelevant).

9 years agoExplicitly prefer Opus over MP3.
Steinar H. Gunderson [Sat, 22 Nov 2014 11:13:14 +0000 (12:13 +0100)]
Explicitly prefer Opus over MP3.

9 years agoIn <title>, there is nothing to align, so remove the funny-looking space.
Steinar H. Gunderson [Sat, 22 Nov 2014 01:53:01 +0000 (02:53 +0100)]
In <title>, there is nothing to align, so remove the funny-looking space.

9 years agoStore sound and sorting settings in HTML5 local storage.
Steinar H. Gunderson [Sat, 22 Nov 2014 01:43:52 +0000 (02:43 +0100)]
Store sound and sorting settings in HTML5 local storage.

9 years agoSupport a ding sound per move. Off by default, of course.
Steinar H. Gunderson [Sat, 22 Nov 2014 01:28:47 +0000 (02:28 +0100)]
Support a ding sound per move. Off by default, of course.

9 years agoFix the red note on moves where we have no historic analysis.
Steinar H. Gunderson [Fri, 21 Nov 2014 23:56:45 +0000 (00:56 +0100)]
Fix the red note on moves where we have no historic analysis.

9 years agoShow correct highlight also for historical moves with no analysis.
Steinar H. Gunderson [Fri, 21 Nov 2014 23:35:34 +0000 (00:35 +0100)]
Show correct highlight also for historical moves with no analysis.

9 years agoAdd a favicon (it is the white knight from chessboard.js/Wikipedia, scaled down to...
Steinar H. Gunderson [Fri, 21 Nov 2014 21:21:51 +0000 (22:21 +0100)]
Add a favicon (it is the white knight from chessboard.js/Wikipedia, scaled down to 32x32).

9 years agoShow highlight and arrows for history moves.
Steinar H. Gunderson [Fri, 21 Nov 2014 21:21:05 +0000 (22:21 +0100)]
Show highlight and arrows for history moves.

9 years agoUnbreak history storing again.
Steinar H. Gunderson [Thu, 20 Nov 2014 23:17:09 +0000 (00:17 +0100)]
Unbreak history storing again.

9 years agoSend the pretty moves instead of the UCI moves; seemingly calculating all the multi...
Steinar H. Gunderson [Thu, 20 Nov 2014 22:42:42 +0000 (23:42 +0100)]
Send the pretty moves instead of the UCI moves; seemingly calculating all the multi-PV ones for display was making the JavaScript really slow.

9 years agoSupport displaying historic analysis. Not perfect still, though.
Steinar H. Gunderson [Thu, 20 Nov 2014 22:15:55 +0000 (23:15 +0100)]
Support displaying historic analysis. Not perfect still, though.

9 years agoSome refactorings out of update_board().
Steinar H. Gunderson [Thu, 20 Nov 2014 21:10:13 +0000 (22:10 +0100)]
Some refactorings out of update_board().

9 years agoMinor pruning of some unused JSON fields.
Steinar H. Gunderson [Thu, 20 Nov 2014 20:33:18 +0000 (21:33 +0100)]
Minor pruning of some unused JSON fields.

9 years agoStart using Chess.js.
Steinar H. Gunderson [Thu, 20 Nov 2014 20:02:59 +0000 (21:02 +0100)]
Start using Chess.js.

The main motivation for importing yet another library (thankfully
it's not that big; 17 kB pre-gzip should be livable) is to get
accurate FENs for history support later. However, right now we
grab the following two nice side effects:

 - We don't have to maintain our own castling and en passant logic
   anymore.
 - We don't have to send both UCI and prettyprinted moves over,
   reducing the JSON size by something like 40% (I haven't checked
   post-gzip, though). Currently we just send the UCI, but maybe
   it should be reversed; we need to check if this causes problems
   for CPU usage or something during normal updates, and which one
   compresses better..

9 years agoDo not hardcode the domain; no longer needed since Varnish directs for us.
Steinar H. Gunderson [Thu, 20 Nov 2014 19:36:46 +0000 (20:36 +0100)]
Do not hardcode the domain; no longer needed since Varnish directs for us.