HELP REQUEST FOR SC BOT

Discuss technical problems and features here
User avatar
Serpent
Black Belt - 3rd Dan
Posts: 3264
Joined: Sat Jul 18, 2015 10:54 am
Location: Moskova
Languages: heritage
Russian (native); Belarusian, Polish

fluent or close: Finnish+ (certified C1), English; Portuguese, Spanish, German+, Italian+
learning: Croatian+, Ukrainian, Czech; Romanian+, Galician; Danish, Swedish
exploring: Latin, Karelian, Catalan, Dutch, Chaucer's English
+ means exploring the dialects/variants
x 4319
Contact:

Re: HELP REQUEST FOR SC BOT

Postby Serpent » Sat Jan 12, 2019 7:44 pm

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?
0 x
LyricsTraining now has Finnish and Polish :)
Corrections welcome

User avatar
rdearman
Site Admin
Posts: 4294
Joined: Thu May 14, 2015 4:18 pm
Location: United Kingdom
Languages: English (N)
Language Log: viewtopic.php?f=15&t=1836
x 9647
Contact:

Re: HELP REQUEST FOR SC BOT

Postby rdearman » Sat Jan 12, 2019 8:14 pm

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.
0 x
: 4 / 100 100 Italian paperbacks:
: 306 / 75000 Output Challenge 2019 (普通话写作):

Lollygagging Podcast available on iTunes

User avatar
Serpent
Black Belt - 3rd Dan
Posts: 3264
Joined: Sat Jul 18, 2015 10:54 am
Location: Moskova
Languages: heritage
Russian (native); Belarusian, Polish

fluent or close: Finnish+ (certified C1), English; Portuguese, Spanish, German+, Italian+
learning: Croatian+, Ukrainian, Czech; Romanian+, Galician; Danish, Swedish
exploring: Latin, Karelian, Catalan, Dutch, Chaucer's English
+ means exploring the dialects/variants
x 4319
Contact:

Re: HELP REQUEST FOR SC BOT

Postby Serpent » Sat Jan 12, 2019 10:56 pm

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?
0 x
LyricsTraining now has Finnish and Polish :)
Corrections welcome

User avatar
rdearman
Site Admin
Posts: 4294
Joined: Thu May 14, 2015 4:18 pm
Location: United Kingdom
Languages: English (N)
Language Log: viewtopic.php?f=15&t=1836
x 9647
Contact:

Re: HELP REQUEST FOR SC BOT

Postby rdearman » Sat Jan 12, 2019 11:25 pm

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.
0 x
: 4 / 100 100 Italian paperbacks:
: 306 / 75000 Output Challenge 2019 (普通话写作):

Lollygagging Podcast available on iTunes

User avatar
Serpent
Black Belt - 3rd Dan
Posts: 3264
Joined: Sat Jul 18, 2015 10:54 am
Location: Moskova
Languages: heritage
Russian (native); Belarusian, Polish

fluent or close: Finnish+ (certified C1), English; Portuguese, Spanish, German+, Italian+
learning: Croatian+, Ukrainian, Czech; Romanian+, Galician; Danish, Swedish
exploring: Latin, Karelian, Catalan, Dutch, Chaucer's English
+ means exploring the dialects/variants
x 4319
Contact:

Re: HELP REQUEST FOR SC BOT

Postby Serpent » Sat Jan 12, 2019 11:36 pm

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
0 x
LyricsTraining now has Finnish and Polish :)
Corrections welcome

User avatar
rdearman
Site Admin
Posts: 4294
Joined: Thu May 14, 2015 4:18 pm
Location: United Kingdom
Languages: English (N)
Language Log: viewtopic.php?f=15&t=1836
x 9647
Contact:

Re: HELP REQUEST FOR SC BOT

Postby rdearman » Sun Jan 13, 2019 6:13 pm

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.
0 x
: 4 / 100 100 Italian paperbacks:
: 306 / 75000 Output Challenge 2019 (普通话写作):

Lollygagging Podcast available on iTunes

User avatar
zenmonkey
Black Belt - 1st Dan
Posts: 1880
Joined: Sun Jul 26, 2015 7:21 pm
Location: Germany and France
Languages: Spanish, English, French trilingual - actively studying German (B2/C1), Hebrew, Tibetan, Setswana.
Some knowledge of Italian, Portuguese, Ladino, Yiddish ...
Want to tackle Tzotzil, Nahuatl
Language Log: viewtopic.php?f=15&t=859
x 4402
Contact:

Re: HELP REQUEST FOR SC BOT

Postby zenmonkey » Mon Jan 14, 2019 10:53 am

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.)
2 x
Tagged posts: Language Method Resource
Please feel free to correct me in any language, critique my posts, challenge my thoughts.
I am inconsistency incarnate.
Go study! Publisher of Syriac, Aramaic, Hebrew alphabet apps at http://alphabetsnow.zyntx.com

User avatar
Serpent
Black Belt - 3rd Dan
Posts: 3264
Joined: Sat Jul 18, 2015 10:54 am
Location: Moskova
Languages: heritage
Russian (native); Belarusian, Polish

fluent or close: Finnish+ (certified C1), English; Portuguese, Spanish, German+, Italian+
learning: Croatian+, Ukrainian, Czech; Romanian+, Galician; Danish, Swedish
exploring: Latin, Karelian, Catalan, Dutch, Chaucer's English
+ means exploring the dialects/variants
x 4319
Contact:

Re: HELP REQUEST FOR SC BOT

Postby Serpent » Tue Jan 15, 2019 6:12 am

@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)
0 x
LyricsTraining now has Finnish and Polish :)
Corrections welcome

User avatar
zenmonkey
Black Belt - 1st Dan
Posts: 1880
Joined: Sun Jul 26, 2015 7:21 pm
Location: Germany and France
Languages: Spanish, English, French trilingual - actively studying German (B2/C1), Hebrew, Tibetan, Setswana.
Some knowledge of Italian, Portuguese, Ladino, Yiddish ...
Want to tackle Tzotzil, Nahuatl
Language Log: viewtopic.php?f=15&t=859
x 4402
Contact:

Re: HELP REQUEST FOR SC BOT

Postby zenmonkey » Tue Jan 15, 2019 10:41 am

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.
1 x
Tagged posts: Language Method Resource
Please feel free to correct me in any language, critique my posts, challenge my thoughts.
I am inconsistency incarnate.
Go study! Publisher of Syriac, Aramaic, Hebrew alphabet apps at http://alphabetsnow.zyntx.com

User avatar
Serpent
Black Belt - 3rd Dan
Posts: 3264
Joined: Sat Jul 18, 2015 10:54 am
Location: Moskova
Languages: heritage
Russian (native); Belarusian, Polish

fluent or close: Finnish+ (certified C1), English; Portuguese, Spanish, German+, Italian+
learning: Croatian+, Ukrainian, Czech; Romanian+, Galician; Danish, Swedish
exploring: Latin, Karelian, Catalan, Dutch, Chaucer's English
+ means exploring the dialects/variants
x 4319
Contact:

Re: HELP REQUEST FOR SC BOT

Postby Serpent » Sat Jan 19, 2019 1:27 pm

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)
0 x
LyricsTraining now has Finnish and Polish :)
Corrections welcome


Return to “Technical Support and Feature Requests”

Who is online

Users browsing this forum: No registered users and 2 guests