ARCHIVED POSTS
< Earlier Kibitzing · PAGE 954 OF 1118 ·
Later Kibitzing> |
Oct-12-16
 | | WannaBe: Another weird thing, when I click on "Kibitz" or "chessforums", they display what took place a few hours ago. (Before the midnight strike/change). But when I click on the (specific) forum or page, (e.g. Jeremy Lim), it goes to the latest post. |
|
Oct-12-16
 | | chessgames.com: About the Recent Kibitzing Page: When putting together the new server I uncovered a severe inefficiency in the code of that page. I won't bore you with the details (although I personally find it enthralling) — but let's just say after using SQL for 30+ years I only just learned a very important nuance about indexing timestamps. So the new server had the new upgraded super-fast code for the Recent Kibitzing page. I didn't see anything amiss, because when only me and a few associates testing the server there really was no kibitzing to see. However, in the excitement of the efficiency upgrade, I forgot how the logic of the page works. Eons ago it really did wipe itself clean at midnight, but at some point we changed "today" into "everything since midnight yesterday" so that there was always something there to read. So now I've updated the page to have the efficiency improvements *and* retain the logic of the "since midnight yesterday" clause. <TL;DR: It works exactly like it used to, only faster.> |
|
| Oct-12-16 | | zanzibar: <chessgames> just curious about the recent kibitzing filtering. I had assumed that you just used a time-slice window for all post younger than 24 hours (or whatever). E.g. an even more general cut for posts older than a day but younger than two days: <
SELECT *
FROM YOUR_TABLE t
WHERE
t.datetime_co-
lumn < DATE_SUB(NOW(), INTERVAL 24 HOUR)
AND
t.datetime_co-
lumn > DATE_SUB(NOW(), INTERVAL 48 HOUR)
>
http://stackoverflow.com/questions/... (Backslashes are nice, but still waiting for verbatim mode. And why datetime_col-umn and not datetime _ column?)
. |
|
| Oct-12-16 | | diceman: <zanzibar:
Even my Android phone can do those... (that is, if I had an Android phone, or any phone for that matter).> ET could "phone home" with a, "Speak'n Spell." |
|
Oct-12-16
 | | chessgames.com: <zanzibar: <chessgames> just curious about the recent kibitzing filtering> I can always count on you to ask about things that bore the socks off everybody else :) Here's the big revelation: the query used to read something like this SELECT * FROM Kibitz WHERE TO_DATE(timestamp) = '2016-10-12'; It looks perfectly reasonable. TO_DATE() simply takes a full blown timestamp and reduces it just to the year/month/day portion. But the problem is that TO_DATE() obliterates any indexing on the timestamp field. So enormously faster is this awkward looking construction: SELECT * FROM Kibitz
WHERE timestamp >= '2016-10-12 00:00:00'
AND timestamp <= '2016-10-12 23:59:59';
Get it? "Anywhere from midnight Oct 12 to 11:59:59 pm Oct 12." A longwinded way of saying "Oct 12" — but 1000 times faster! And of course that can be extended for a two-day or longer window as well. I'm not 100% sure how your query would behave compared to mine; it probably would be just as good, provided that DATE_SUB(NOW(), INTERVAL 24 HOUR) is computed one time only and not continually recomputed every record. The way I show above, however, is positively foolproof. It's like searching within a range of integers. |
|
Oct-12-16
 | | chessgames.com: <Backslashes are nice, but still waiting for verbatim mode.> I know you are, but I'm sure you also know it's kind of complicated. First we'll have to define exactly what "verbatim" means. If it means letting savvy users put <script>...</script> HTML into our pages, then fuhgeddaboudit. It could also be used to break page formatting (although a few rascals know how to do that without any fancy features.) But if we clarify the context and how it works, and hopefully a few more people request the feature, I'm open to it. <And why datetime_col-umn and not datetime _ column?> I'm sorry you lost me there. |
|
| Oct-12-16 | | Boomie: I hope all that SQL is in Stored Procedures and not embedded in the code where it would represent a potential security risk. Just sayin'... |
|
Oct-12-16
 | | chessgames.com: <Boomie> Don't worry, I know all about SQL injection, and frankly I don't have much sympathy for people who get stung by it. Even if there wasn't a single malicious hacker on earth, you STILL should use placeholders and bind-variables, just so the database can cache your queries! Maybe I'm crazy, but I tell you: when the Chessgames server is making too many disk-hits I feel a pain in my joints. :-) |
|
Oct-13-16
 | | kingscrusher: Hi Chessgames.com
Thanks for all your efforts to upgrade hardware etc. I think I noticed one slight omission now where it indicates on a game: "Featured in the Following Game Collection..."
It doesn't say as it used to the number of other collections as well. Could that counter be brought back please ?! |
|
Oct-13-16
 | | kingscrusher: As a concrete example, check this page from Waybackmachine: https://web.archive.org/web/2016040... It indicates at the end :
"plus 547 more collections (not shown)"
But this is not on the new page for that game.
Could that bit be reinstated please?!
Cheers, K |
|
| Oct-13-16 | | zanzibar: <chessgames> let's defer the mySQL discussion for a moment... <SallyS> posted this link in a post: Botvinnik vs Euwe, 1948 (kibitz #26) http: //www.chessgames.com /perl/kibitzing?kid=G1032171&reply=26 which gets translated to this:
Botvinnik vs Euwe, 1948 http: //www.chessgames.com/perl/chessgame?gid=1032171&kp-
age=2#reply26
(verbatim mode would be handy here - i.e. respect all linebreaks and whitespace, and don't auto-magic links or fens, etc.) The problem with the link translation is that I don't see the post on the screen - instead I see the game score, ending at the Tip line. |
|
Oct-13-16
 | | chessgames.com: <Could that bit be reinstated please?! > Of course — but first an investigation has to be conducted to figure out why it changed. When you work on two different servers it's easy to get versions jumbled up. <The problem with the link translation is that I don't see the post on the screen - instead I see the game score, ending at the Tip line.> That's a problem as old as the hashmark was used for page anchors—which is to say, since the WWW began. The problem is that your screen cannot scroll so far down the page to show Sally's post, because the page just isn't that long. On kludgy yet popular remedy is to put a mile of whitespace at the bottom of every page so that anything linked to by a hashmark has oodles of space below it, so that it can appear at the top of your monitor. We already put a few yards of white space for that purpose but it has to be as tall as the tallest monitor on earth in order for it to work 100%. |
|
| Oct-13-16 | | zanzibar: <chessgames> are you sure that's the problem? If it were, then I wouldn't be able to hand scroll down to the post, right? Please take another look and correct me if I'm wrong... but the link is to post #26, and the page goes down to kibitz #50 (for me). I think the problem is more due to the kibitz of interest being first in the page. Hmm... |
|
Oct-13-16
 | | chessgames.com: I may misunderstand you. For the sake of clarity, exactly what post are we talking about? This one, right? <Jul-22-05 aw1988: Upon the insistance of the Soviet authorities to gain a win over Euwe at any cost, ...> It might be the very old and much discussed page-boundary-preference-setting-bug rearing its head for the hundredth time. |
|
| Oct-13-16 | | zanzibar: <It might be the very old and much discussed page-boundary-preference-setting-bug rearing its head for the hundredth time.> Yup, that's sounds more likely.
First time I've run into it though. |
|
Oct-14-16
 | | chessgames.com: <zanzibar> I cannot reproduce your issue. It sounds like your browser is taking poor aim. If you would please, try it in another browser and see what happens. |
|
| Oct-15-16 | | whiteshark: <ceegee> The German Bundesliga Season 2016/17 starts this weekend. homepage: http://schachbundesliga.de/
live: https://chess24.com/de/watch/live-t... |
|
| Oct-15-16 | | zanzibar: <chessgames> RE page boundary problem As you suspected, I don't see the problem with Firefox, but it consistently shows up with Chrome. (I'm typically using Chrome on Windows most days recently, but often run Firefox as well... I have Opera and Safari on older machines, and will check at least the Opera later today. PS- this note is a little late, but I was off-line yesterday - had to crack open a power adapter and do some soldering - ack!) |
|
| Oct-15-16 | | zanzibar: Opera is OK with the link as well. |
|
Oct-15-16
 | | chessgames.com: Bundesliga (2016/17) |
|
Oct-15-16
 | | chessgames.com: <zanzibar> Sometimes one browser is pickier about some detail than another, so I'll double-check the HTML. But I really can't imagine what the problem will be. |
|
| Oct-15-16 | | Benzol: Something that I found weird. I just typed in the names of Tal and Kamsky to find the only game they played against each other in the DB and Tal's name produces no response. I know that names like Wu, Li or Le produce a null but it was surprising to see this happen with Tal's name. Anyone else have the same issue? |
|
| Oct-15-16 | | zanzibar: <Benzol> Using the drop-down list to select the players gives the one game: http://www.chessgames.com/perl/ches... Otherwise, I have the same problem as you do when directly typing in the two surnames for a search. |
|
| Oct-16-16 | | Benzol: < zanzibar > Thanks. However, < chessgames > would seem to have a problem that could have long term implications for all users. |
|
Oct-16-16
 | | chessgames.com: <Benzol> Thanks so much for pointing that out. As I predicted, we're going to be uncovering glitches like these for weeks, but it's all for the best in the long run. Indeed there was a problem searching for names less than 4 letters. Do to a cock-up in the configuration file the directive to allow for 2-letter words was being ignored, and it lapsed back to the default of 4 letters. While I was at it, I noticed the very ancient code that stripped out 2-letter words from name searches, so that "Dr. Lasker" would just be "Lasker" etc. That code dates back from when we were unable to search on 2 letter words, so I disabled it. In short, the problem you were bumping up against is that TAL has only three letters and the database was misconfigured. Now that it's fixed, not only can you search for TAL but for YU and LI etc. |
|
 |
 |
ARCHIVED POSTS
< Earlier Kibitzing · PAGE 954 OF 1118 ·
Later Kibitzing> |