Search found 9 matches

by neighthann
Fri Apr 17, 2020 4:59 pm
Forum: Resources
Topic: Project Euler Android App
Replies: 11
Views: 14019

Re: Project Euler Android App

Actually running code is, in my opinion, out of scope for a Project Euler app, so I'm not trying to replicate that (I use Termux to run Julia code). The app is just an easier mobile interface than the website. It downloads everything ahead of time, so you can use it offline. I find it easier for qui...
by neighthann
Fri Apr 17, 2020 4:50 pm
Forum: News, Suggestions, and FAQ
Topic: Answer checking API for CI/CD
Replies: 4
Views: 727

Re: Answer checking API for CI/CD

See my thread on this (viewtopic.php?f=5&t=7066) for a couple more details.
by neighthann
Fri Apr 17, 2020 4:49 pm
Forum: News, Suggestions, and FAQ
Topic: Answer checking API for CI/CD
Replies: 4
Views: 727

Re: Answer checking API for CI/CD

You can write something up to submit answers for you if you give it your keep_alive cookie (it just has to do the HTTP request to get the problem page, extract a couple of things from that, then send back the solution). I did this recently for a Project Euler app that I'm making. I'm planning to put...
by neighthann
Fri Apr 10, 2020 5:34 am
Forum: News, Suggestions, and FAQ
Topic: How do I programmatically submit an answer?
Replies: 3
Views: 590

Re: How do I programmatically submit an answer?

Aha, it works if you just copy the request from Chrome (e.g. as curl) then substitute in the submit_token that you get when you visit the page again, assuming you don't need to defeat a captcha and that the cookie header is the same.
by neighthann
Fri Apr 10, 2020 5:31 am
Forum: News, Suggestions, and FAQ
Topic: How do I programmatically submit an answer?
Replies: 3
Views: 590

Re: How do I programmatically submit an answer?

Oh, and there are sometimes captchas...
by neighthann
Fri Apr 10, 2020 5:29 am
Forum: News, Suggestions, and FAQ
Topic: How do I programmatically submit an answer?
Replies: 3
Views: 590

Re: How do I programmatically submit an answer?

Digging around on the problem page, I see that the submit token is given as part of the page. Since this comes from the server, I assume that means there's no nice way to send a POST request to check an answer, even if we have access to the username / password / cookie of the user? Though it should ...
by neighthann
Fri Apr 10, 2020 4:48 am
Forum: News, Suggestions, and FAQ
Topic: How do I programmatically submit an answer?
Replies: 3
Views: 590

How do I programmatically submit an answer?

I'm building an app interface to Project Euler, and it would be really nice if I could submit answers to problems through the app. However, I don't have much experience with HTTP requests. I've used the Chrome developer tools to extract the request made when I submit an answer on the website and cop...
by neighthann
Thu Apr 09, 2020 5:28 pm
Forum: Resources
Topic: Retrieving Minimal Information
Replies: 24
Views: 23160

Re: Retrieving Minimal Information

Is the "minimal information" API documented somewhere on the website? If not, it would be nice to at least mention it and provide a link here, if not document it there. I'm making an Android app right now, and I'll probably try to switch over to the minimal information version at some point, but rig...
by neighthann
Thu Apr 09, 2020 5:24 pm
Forum: Resources
Topic: Project Euler Android App
Replies: 11
Views: 14019

Re: Project Euler Android App

I'm developing a new Android app for Project Euler; it doesn't seem like the previously listed ones exist anymore (the links are dead for me, and I couldn't find anything obvious by searching "Project Euler" from Google's Play store). I'm still working on adding the ability to submit answers to the ...