Challenge Bot - Request for Proposals (RFP)

Small area for language related software developers. If you have a feature request please put in the appropriate place. This area is for developers of language software and forum software development only.
User avatar
rdearman
Site Admin
Posts: 6898
Joined: Thu May 14, 2015 4:18 pm
Location: United Kingdom
Languages: English (N)
Language Log: viewtopic.php?f=15&t=1836
x 21598
Contact:

Re: Challenge Bot - Request for Proposals (RFP)

Postby rdearman » Mon Feb 06, 2023 3:03 pm

The problem with you method is there is no user validation. Because you have to log into Twitter in the 6wc each participant is identified. With email your email address validated you because you would have had to log into your emails system. So not really being nice, just keeping malicious people from messing up your score
1 x
: 5 / 17 17 Italian Paperbacks to Read: 4006 pages
: 15 / 125 Read 125 books in 2023

My YouTube Channel
The Autodidactic Podcast
The Lollygagging Podcast

I post on this forum with mobile devices, so excuse short msgs and typos.

Cainntear
Black Belt - 2nd Dan
Posts: 2597
Joined: Thu Jul 30, 2015 11:04 am
Location: Scotland
Languages: English(N)
Advanced: French,Spanish, Scottish Gaelic
Intermediate: Italian, Catalan, Corsican
Basic: Welsh
Dabbling: Polish, Russian etc
x 6849
Contact:

Re: Challenge Bot - Request for Proposals (RFP)

Postby Cainntear » Tue Feb 07, 2023 9:33 am

rdearman wrote:The problem with you method is there is no user validation. Because you have to log into Twitter in the 6wc each participant is identified. With email your email address validated you because you would have had to log into your emails system. So not really being nice, just keeping malicious people from messing up your score

Is there no facility in phpBB that could be used to validate users for external pages...?

As for not liking semantic whitespace, I was once the same. I still don't like it, but I really get Guido's point about the job of spaces in brace-delimited languages being ambiguous. If spaces mean nothing to a computer, there's nothing to stop anyone using the spacing in a misleading way that implies semantics that don't match the exact semantics of the { ... } structuring.

Guido was right -- it's just that his solution is now suboptimal. We should not be using plaintext editors for programming any more. Our editors should be smart. A C-like should have *no* leading whitespace in its source file, but the editor should be able to render it with lines indented automatically. That takes us one step more into visual programming, because for automatic indentation to work, you can't have the programmer independently marking start and end block tokens -- ie. { and } have to be treated as a single semantic unit, meaning that the programmer would have a choice of "Insert new block", "convert to block" and "move line inside block".

Such a non-literal text editor would also have to opportunity to render things as tables, something that has to be done by non-semantic whitespace at the moment, which Guido is actively against, but has at least made possible in Python.
eg:

Code: Select all

insert_multiple_into_thingummy ( ("thingummy1",123,  "pop"  ,my_contents),
                                 ("thing2"    ,15745,"burst",stuff      ))

Notice how I've (unconciously!) switched between putting the commas in a vertical pattern (representing column separator lines) and putting them directly after the data, which means that there's no line (eg from 123 down to 15745) and instead the column line appears to be implied by the contents ("pop" and "burst").

I personally find this idea of lining things up helps me remember what sort of data is expected where and put in the right stuff (which I think is particularly important in contexts where arguments are optional -- I'm thinking of JavaScript here in particular!) and I typically start doing it, but then when I get to the fourth of fifth line and type lots, I don't tend to go back and edit the previous lines to maintain the table structure -- I only end up continuing with the new column width... until I get bored after typing multiple lines that are narrower and switch back to the original spacing.

Sorry for going wildly off-topic... I guess I'm abusing this forum by using it as a prompt for recalling all the computer programming stuff.
0 x

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

Re: Challenge Bot - Request for Proposals (RFP)

Postby rdearman » Tue Feb 07, 2023 11:13 am

Cainntear wrote:Is there no facility in phpBB that could be used to validate users for external pages...?

Yes, but the 6WC and the SC are independent of the forum, you don't need to have an account here in order to participate in the challenges. People from reddit and other places participate. So you need to have a common validation scheme, which twitter provided. Could use Google Oauth since most people have a google account. This is a good point however for the web-based or other input. Using a common oauth would be useful.

I was just going to switch everything to Mastodon and a federated login... It is something which needs more thought.

My point regarding whitespace as a delimiter goes along with your idea of moving to a visual editor. You can't see whitespace, so if you want visual programming then you need stuff you can see.... like, oh I don't know, perhaps a ; or maybe a {} or perhaps []. And because in C whitespace is irrelevant I can line things up the way I want, and the compiler will ignore it. :) I don't like to be forced to line things up the way someone else says I have to. Power to the people! Down with the man! Screw Guido. :lol: :lol: Anyway, if you want to continue this argument, we'll have to do it somewhere else. :)
0 x
: 5 / 17 17 Italian Paperbacks to Read: 4006 pages
: 15 / 125 Read 125 books in 2023

My YouTube Channel
The Autodidactic Podcast
The Lollygagging Podcast

I post on this forum with mobile devices, so excuse short msgs and typos.

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

Re: Challenge Bot - Request for Proposals (RFP)

Postby rdearman » Fri Feb 10, 2023 11:08 am

The github page is here: https://github.com/rdearman/GenericChallenge if you're interested.

Yes, I know the python code is an ugly and basic hack job, but I don't normally use python. I'm set out some short term and longer term goals if anyone is interested.
0 x
: 5 / 17 17 Italian Paperbacks to Read: 4006 pages
: 15 / 125 Read 125 books in 2023

My YouTube Channel
The Autodidactic Podcast
The Lollygagging Podcast

I post on this forum with mobile devices, so excuse short msgs and typos.

german2k01
Green Belt
Posts: 427
Joined: Mon Aug 09, 2021 8:16 pm
Location: Germany
Languages: English, Urdu, and German
x 492

Re: Challenge Bot - Request for Proposals (RFP)

Postby german2k01 » Fri Feb 10, 2023 2:24 pm

So no more tweets from now onwards. When is it up and running? I stopped jotting my hours for reading and listening in a notebook so your platform is the only place to record my stuff and therefore to have a bird's eye view to feel good :D
0 x

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

Re: Challenge Bot - Request for Proposals (RFP)

Postby rdearman » Fri Feb 10, 2023 3:19 pm

german2k01 wrote:So no more tweets from now onwards. When is it up and running? I stopped jotting my hours for reading and listening in a notebook so your platform is the only place to record my stuff and therefore to have a bird's eye view to feel good :D

According to the Twitter developer feed the API is still working, so you should still be able to tweet your statistics. It may mean however that you will not get a confirmation tweet that your tweet was processed. However, you'll be able to see if it was processed since the updates happen every 5 minutes.
0 x
: 5 / 17 17 Italian Paperbacks to Read: 4006 pages
: 15 / 125 Read 125 books in 2023

My YouTube Channel
The Autodidactic Podcast
The Lollygagging Podcast

I post on this forum with mobile devices, so excuse short msgs and typos.

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

Re: Challenge Bot - Request for Proposals (RFP)

Postby rdearman » Sat Mar 11, 2023 7:46 pm

OK, so even though Twitter is still working, I've been testing an email bot for the Super Challenge with the assistance from some people here on the Forum.

I'm also about 90% complete on a python script to do updates from Mastodon.

You can check out the progress here:
https://github.com/rdearman/GenericChallenge

Once I am comfortable that I've managed to get SC updates right, I plan to start a new DB and begin working on a more "generic challenge" bot as per the requirements here.

If you have any programming experience in either PHP or Python, I could use some help. :) The plan at the moment is to make the web-interface with PHP since all it really needs to do is read the DB, and all the bots (email, twitter, mastodon, etc) done in python.
0 x
: 5 / 17 17 Italian Paperbacks to Read: 4006 pages
: 15 / 125 Read 125 books in 2023

My YouTube Channel
The Autodidactic Podcast
The Lollygagging Podcast

I post on this forum with mobile devices, so excuse short msgs and typos.

User avatar
CDR
Yellow Belt
Posts: 70
Joined: Fri May 06, 2022 10:47 pm
Languages: English (N), Portuguese (B2?), Japanese (A2?)
Language Log: https://forum.language-learners.org/vie ... 15&t=18051
x 256

Re: Challenge Bot - Request for Proposals (RFP)

Postby CDR » Mon Mar 20, 2023 6:34 am

rdearman wrote:If you have any programming experience in either PHP or Python, I could use some help. :) The plan at the moment is to make the web-interface with PHP since all it really needs to do is read the DB, and all the bots (email, twitter, mastodon, etc) done in python.


Is there anything I can help with in particular? Previously I mentioned I could attempt to make something that could interface with Google Spreadsheets or Google Forms, but not sure if that would be helpful at this exact moment?

As I mentioned before, I don't program professionally, I mostly write Python scripts, so I don't want to step on any toes or ruin the code base with my inexperience :lol:
0 x


Return to “Development Area”

Who is online

Users browsing this forum: No registered users and 1 guest