remoteglot
4 years agoAdd some opening book stuff that is still under development, and really should be...
Steinar H. Gunderson [Tue, 9 Dec 2014 01:00:36 +0000 (02:00 +0100)]
Add some opening book stuff that is still under development, and really should be a different project eventually.

4 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.

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

4 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.

4 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.

4 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.

4 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.

4 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.

4 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.

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

4 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.

4 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.

4 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.

4 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.

4 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.

4 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.

4 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.

4 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.

4 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.

4 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.

4 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).

4 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.

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

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

4 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.

4 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.

4 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.

4 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.

4 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.

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

4 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).

4 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.

4 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.

4 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.

4 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.

4 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.

4 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.

4 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).

4 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.

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

4 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.

4 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.

4 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().

4 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.

4 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..

4 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.

4 years agoPut last move in <title>. Idea from Stephan Brumme.
Steinar H. Gunderson [Thu, 20 Nov 2014 18:14:10 +0000 (19:14 +0100)]
Put last move in <title>. Idea from Stephan Brumme.

4 years agoAvoid overwriting earlier historical analysis if it is better.
Steinar H. Gunderson [Wed, 19 Nov 2014 22:53:56 +0000 (23:53 +0100)]
Avoid overwriting earlier historical analysis if it is better.

4 years agoOutput historic analysis (not used by the frontend yet).
Steinar H. Gunderson [Wed, 19 Nov 2014 22:24:55 +0000 (23:24 +0100)]
Output historic analysis (not used by the frontend yet).

4 years agoFactor out atomic file overwriting into its own function.
Steinar H. Gunderson [Wed, 19 Nov 2014 22:24:35 +0000 (23:24 +0100)]
Factor out atomic file overwriting into its own function.

4 years agoDo not stop polling PGNs if they are invalid.
Steinar H. Gunderson [Tue, 18 Nov 2014 17:33:40 +0000 (18:33 +0100)]
Do not stop polling PGNs if they are invalid.

5 years agoFix 7-man tablebase mate length.
Steinar H. Gunderson [Sun, 16 Nov 2014 18:33:28 +0000 (19:33 +0100)]
Fix 7-man tablebase mate length.

5 years agoMake stoppgn more robust.
Steinar H. Gunderson [Sun, 16 Nov 2014 18:19:48 +0000 (19:19 +0100)]
Make stoppgn more robust.

5 years agoRemove some stray debugging code.
Steinar H. Gunderson [Sun, 16 Nov 2014 18:19:32 +0000 (19:19 +0100)]
Remove some stray debugging code.

5 years agoAdd a little comment about the serial key format.
Steinar H. Gunderson [Sun, 16 Nov 2014 13:07:09 +0000 (14:07 +0100)]
Add a little comment about the serial key format.

5 years agoUse AnyEvent instead of signals in varnishcount.pl as well, since it seems signals...
Steinar H. Gunderson [Sun, 16 Nov 2014 12:55:11 +0000 (13:55 +0100)]
Use AnyEvent instead of signals in varnishcount.pl as well, since it seems signals cause Perl segfaults.

5 years agoFix a display bug on empty PV.
Steinar H. Gunderson [Sun, 16 Nov 2014 12:39:49 +0000 (13:39 +0100)]
Fix a display bug on empty PV.

5 years agoSend the right Vary headers.
Steinar H. Gunderson [Sun, 16 Nov 2014 12:35:48 +0000 (13:35 +0100)]
Send the right Vary headers.

5 years agoAdd a separate script for counting viewers from Varnish logs.
Steinar H. Gunderson [Sun, 16 Nov 2014 12:35:07 +0000 (13:35 +0100)]
Add a separate script for counting viewers from Varnish logs.

5 years agoUse an AnyEvent timer instead of an alarm.
Steinar H. Gunderson [Sun, 16 Nov 2014 10:46:45 +0000 (11:46 +0100)]
Use an AnyEvent timer instead of an alarm.

5 years agoSolve timeouts by touching analysis.json.
Steinar H. Gunderson [Sat, 15 Nov 2014 23:57:56 +0000 (00:57 +0100)]
Solve timeouts by touching analysis.json.

This means we need to carry fewer timeouts around, and also that
caching behavior in Varnish will be easier to control (results
are always cacheable, we don't need special handling for hanging ones).
It means slightly more thundering herd behavior, but we'll have that
anyway.

5 years agoFix PGN parsing; it was broken by a scoping change.
Steinar H. Gunderson [Sun, 16 Nov 2014 10:35:11 +0000 (11:35 +0100)]
Fix PGN parsing; it was broken by a scoping change.

5 years agoAdd support for fetching move history from FICS (entirely from scratch every time...
Steinar H. Gunderson [Sat, 15 Nov 2014 01:57:04 +0000 (02:57 +0100)]
Add support for fetching move history from FICS (entirely from scratch every time, though).

5 years agoSlightly better diagnostics.
Steinar H. Gunderson [Sat, 15 Nov 2014 01:56:31 +0000 (02:56 +0100)]
Slightly better diagnostics.

5 years agoDo observe after we have set up AnyEvent listening; otherwise, seemingly we can get...
Steinar H. Gunderson [Sat, 15 Nov 2014 00:53:22 +0000 (01:53 +0100)]
Do observe after we have set up AnyEvent listening; otherwise, seemingly we can get problems missing the initial line.

5 years agoAdd some PGN hysteresis to guard against truncated PGNs.
Steinar H. Gunderson [Fri, 14 Nov 2014 23:29:30 +0000 (00:29 +0100)]
Add some PGN hysteresis to guard against truncated PGNs.

5 years agoSupport defaulting to a PGN for fetching.
Steinar H. Gunderson [Fri, 14 Nov 2014 23:03:05 +0000 (00:03 +0100)]
Support defaulting to a PGN for fetching.

5 years agoStop supporting Chrome Frame. It is dead already.
Steinar H. Gunderson [Fri, 14 Nov 2014 22:52:11 +0000 (23:52 +0100)]
Stop supporting Chrome Frame. It is dead already.

5 years agoFix (null) in <title>.
Steinar H. Gunderson [Fri, 14 Nov 2014 18:15:53 +0000 (19:15 +0100)]
Fix (null) in <title>.

5 years agoFix a typo in mate sorting.
Steinar H. Gunderson [Fri, 14 Nov 2014 18:15:36 +0000 (19:15 +0100)]
Fix a typo in mate sorting.

5 years agoSome small status footer updates.
Steinar H. Gunderson [Fri, 14 Nov 2014 00:41:24 +0000 (01:41 +0100)]
Some small status footer updates.

5 years agoTiny error message cleanup.
Steinar H. Gunderson [Fri, 14 Nov 2014 00:41:08 +0000 (01:41 +0100)]
Tiny error message cleanup.

5 years agoAdd some JavaScript changes that seemingly were not committed earlier.
Steinar H. Gunderson [Fri, 14 Nov 2014 00:40:03 +0000 (01:40 +0100)]
Add some JavaScript changes that seemingly were not committed earlier.

5 years agoAdd a CSS class for some small news at the bottom.
Steinar H. Gunderson [Fri, 14 Nov 2014 00:39:29 +0000 (01:39 +0100)]
Add a CSS class for some small news at the bottom.

5 years agoFormat the short score (for the page title) properly from the backend instead of...
Steinar H. Gunderson [Fri, 14 Nov 2014 00:01:32 +0000 (01:01 +0100)]
Format the short score (for the page title) properly from the backend instead of using JS hacks.

5 years ago Add support for looking up into the Lomonosov tablebase set. Requires a valid licens...
Steinar H. Gunderson [Thu, 13 Nov 2014 23:55:47 +0000 (00:55 +0100)]
 Add support for looking up into the Lomonosov tablebase set. Requires a valid license key.

5 years agoHandle slightly unstandard PGN promotion syntax.
Steinar H. Gunderson [Thu, 13 Nov 2014 23:55:17 +0000 (00:55 +0100)]
Handle slightly unstandard PGN promotion syntax.

5 years agoMake the JSON output filename configurable.
Steinar H. Gunderson [Thu, 13 Nov 2014 21:56:06 +0000 (22:56 +0100)]
Make the JSON output filename configurable.

5 years agoHopefully fix sorting in the cases where the side to move is getting mated.
Steinar H. Gunderson [Thu, 13 Nov 2014 00:14:17 +0000 (01:14 +0100)]
Hopefully fix sorting in the cases where the side to move is getting mated.

5 years agoCompletely ignore fail-high/fail-low. This got lost at some point, unfortunately.
Steinar H. Gunderson [Wed, 12 Nov 2014 22:12:02 +0000 (23:12 +0100)]
Completely ignore fail-high/fail-low. This got lost at some point, unfortunately.

5 years agoCount viewers fewer times when doing mass-sending, as it seems to be a bit expensive...
Steinar H. Gunderson [Wed, 12 Nov 2014 19:20:01 +0000 (20:20 +0100)]
Count viewers fewer times when doing mass-sending, as it seems to be a bit expensive CPU-wise.

5 years agoAdd the short score to the document title.
Steinar H. Gunderson [Wed, 12 Nov 2014 19:19:38 +0000 (20:19 +0100)]
Add the short score to the document title.

5 years agoFix a typo.
Steinar H. Gunderson [Wed, 12 Nov 2014 11:01:44 +0000 (12:01 +0100)]
Fix a typo.

5 years agoMake the unique token persistent, to avoid refreshes inflating the numbers.
Steinar H. Gunderson [Tue, 11 Nov 2014 20:18:27 +0000 (21:18 +0100)]
Make the unique token persistent, to avoid refreshes inflating the numbers.

5 years agoRemove a client from the sleeping list immediately if it closes its socket prematurely.
Steinar H. Gunderson [Tue, 11 Nov 2014 20:08:32 +0000 (21:08 +0100)]
Remove a client from the sleeping list immediately if it closes its socket prematurely.

5 years agoCount connected viewers a bit more precisely; in particular, rely more on sleeping...
Steinar H. Gunderson [Tue, 11 Nov 2014 19:56:34 +0000 (20:56 +0100)]
Count connected viewers a bit more precisely; in particular, rely more on sleeping connections.

5 years agoOnly truncate history if needed.
Steinar H. Gunderson [Tue, 11 Nov 2014 19:36:47 +0000 (20:36 +0100)]
Only truncate history if needed.

5 years agoUnbreak promotion again.
Steinar H. Gunderson [Tue, 11 Nov 2014 12:53:40 +0000 (13:53 +0100)]
Unbreak promotion again.

5 years agoFix history display at the start of the game.
Steinar H. Gunderson [Tue, 11 Nov 2014 09:27:13 +0000 (10:27 +0100)]
Fix history display at the start of the game.

5 years agoFix handling of en passant; reported by Phil Miller.
Steinar H. Gunderson [Tue, 11 Nov 2014 09:10:56 +0000 (10:10 +0100)]
Fix handling of en passant; reported by Phil Miller.

5 years agoFix an issue where the Previous link would wrongly reappear.
Steinar H. Gunderson [Mon, 10 Nov 2014 23:57:32 +0000 (00:57 +0100)]
Fix an issue where the Previous link would wrongly reappear.

5 years agoSupport promotion when displaying lines.
Steinar H. Gunderson [Mon, 10 Nov 2014 20:20:55 +0000 (21:20 +0100)]
Support promotion when displaying lines.

5 years agoUppercase promotion choices correctly.
Steinar H. Gunderson [Mon, 10 Nov 2014 20:10:51 +0000 (21:10 +0100)]
Uppercase promotion choices correctly.

5 years agoFix wrong substr() usage, that would break in case of promo moves.
Steinar H. Gunderson [Mon, 10 Nov 2014 20:09:17 +0000 (21:09 +0100)]
Fix wrong substr() usage, that would break in case of promo moves.

5 years agoVarious fixes related to history and showing moves. Also highlight the shown one.
Steinar H. Gunderson [Mon, 10 Nov 2014 19:04:04 +0000 (20:04 +0100)]
Various fixes related to history and showing moves. Also highlight the shown one.

5 years agoAdd support for expanding and truncating the history.
Steinar H. Gunderson [Sun, 9 Nov 2014 22:11:02 +0000 (23:11 +0100)]
Add support for expanding and truncating the history.

5 years agoSupport showing the history of the game.
Steinar H. Gunderson [Sun, 9 Nov 2014 20:48:32 +0000 (21:48 +0100)]
Support showing the history of the game.

5 years agoFix issue where the arrow keys could cause us to go out of bounds.
Steinar H. Gunderson [Sun, 9 Nov 2014 20:33:15 +0000 (21:33 +0100)]
Fix issue where the arrow keys could cause us to go out of bounds.

5 years agoDo not send the prettyprint cache in the JSON; it only wastes space.
Steinar H. Gunderson [Sun, 9 Nov 2014 18:09:37 +0000 (19:09 +0100)]
Do not send the prettyprint cache in the JSON; it only wastes space.

5 years agoMove most configuration into a separate file.
Steinar H. Gunderson [Sun, 9 Nov 2014 17:58:33 +0000 (18:58 +0100)]
Move most configuration into a separate file.