Page 4 of 4

Re: HELP REQUEST FOR SC BOT

Posted: Sat Jan 12, 2019 7:44 pm
by Serpent
yes it definitely starts on saturday. something mixed up with day 0 vs day 1?

is there a length limit for titles and is it necessary? i couldn't get a long item registered until i moved the tag to the beginning. after that it got registered as "unknown". does the bot still check only the first 140 characters after twitter has increased the allowed character count?

Re: HELP REQUEST FOR SC BOT

Posted: Sat Jan 12, 2019 8:14 pm
by rdearman
Serpent wrote:yes it definitely starts on saturday. something mixed up with day 0 vs day 1?

is there a length limit for titles and is it necessary? i couldn't get a long item registered until i moved the tag to the beginning. after that it got registered as "unknown". does the bot still check only the first 140 characters after twitter has increased the allowed character count?

The field in the DB is set to 140 characters, so although twitter changed our DB hasn't, and will not until next time. So it will have to be 140 characters I'm afraid.

Re: HELP REQUEST FOR SC BOT

Posted: Sat Jan 12, 2019 10:56 pm
by Serpent
my title is only 122 characters long. (the one i could submit is 111 characters, haven't tried anything in between)
maybe it only checks the first 140 characters of your tweet?

Re: HELP REQUEST FOR SC BOT

Posted: Sat Jan 12, 2019 11:25 pm
by rdearman
Serpent wrote:my title is only 122 characters long. (the one i could submit is 111 characters, haven't tried anything in between)
maybe it only checks the first 140 characters of your tweet?

Was there any unicode character? They take more space in the DB.

Re: HELP REQUEST FOR SC BOT

Posted: Sat Jan 12, 2019 11:36 pm
by Serpent
yes, here's the title:
"es: mijáilov - las 19 copas mundiales de fútbol: datos estadísticos y análisis desde el punto de vista de la cienciometría"
so 5 extra characters?
as i said, the first two times i tried, it didn't even get to the end of the tweet for the language tag and didn't register anything. then i posted it with the language tag in the beginning and it got registered as unknown. then i was able to edit it, but only if the closing quotation mark was within the 140 first characters of the tweet i guess? here are the tweets in question https://twitter.com/serpent849/status/1 ... 5482136576

Re: HELP REQUEST FOR SC BOT

Posted: Sun Jan 13, 2019 6:13 pm
by rdearman
Serpent wrote:yes, here's the title:
"es: mijáilov - las 19 copas mundiales de fútbol: datos estadísticos y análisis desde el punto de vista de la cienciometría"
so 5 extra characters?
as i said, the first two times i tried, it didn't even get to the end of the tweet for the language tag and didn't register anything. then i posted it with the language tag in the beginning and it got registered as unknown. then i was able to edit it, but only if the closing quotation mark was within the 140 first characters of the tweet i guess? here are the tweets in question https://twitter.com/serpent849/status/1 ... 5482136576

I had a quick look at the DB. It is set to store strings in UTF-8 so actually number of characters isn't a problem. I think the problem is the PHP code which seems to truncate the string to 140 characters.

Re: HELP REQUEST FOR SC BOT

Posted: Mon Jan 14, 2019 10:53 am
by zenmonkey
rdearman wrote:
Serpent wrote:yes, here's the title:
"es: mijáilov - las 19 copas mundiales de fútbol: datos estadísticos y análisis desde el punto de vista de la cienciometría"
so 5 extra characters?
as i said, the first two times i tried, it didn't even get to the end of the tweet for the language tag and didn't register anything. then i posted it with the language tag in the beginning and it got registered as unknown. then i was able to edit it, but only if the closing quotation mark was within the 140 first characters of the tweet i guess? here are the tweets in question https://twitter.com/serpent849/status/1 ... 5482136576


I had a quick look at the DB. It is set to store strings in UTF-8 so actually number of characters isn't a problem. I think the problem is the PHP code which seems to truncate the string to 140 characters.


It's not a parameter issue in the PHP code, just checked - probably need to update the twitteroauth library or the API ... ;) (Just stick to 140 characters, it isn't worth the effort to do that.)

Re: HELP REQUEST FOR SC BOT

Posted: Tue Jan 15, 2019 6:12 am
by Serpent
@zenmonkey: can you check what went wrong with the streaks? (as i wrote above, the week seems to be counted from saturday instead of sunday or monday)

Re: HELP REQUEST FOR SC BOT

Posted: Tue Jan 15, 2019 10:41 am
by zenmonkey
Serpent wrote:@zenmonkey: can you check what went wrong with the streaks? (as i wrote above, the week seems to be counted from saturday instead of sunday or monday)


I can’t. I’d have to have access to the database and the tweets to “walk the data and code”. I only have a copy of the code on my machine. But it’s a fastidious process that would take a bit of analysis to review and more, to fix. Sorry.

Re: HELP REQUEST FOR SC BOT

Posted: Sat Jan 19, 2019 1:27 pm
by Serpent
Seems like this is where the streaks are calculated? https://github.com/language-learners/su ... cipant.php
function getStreakData begins at row 273.
unfortunately i don't have the knowledge to tell what went wrong and why the week begins on Saturday (and how to make it count weeks starting from 1, not 0)