More data (> 150 files) on T. Moudiki’s situation: a riddle/puzzle (including R, Python, bash interfaces to the game — but everyone can play)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
This post contains a riddle/puzzle related to T. Moudiki’s situation, including files and code snippets in R, Python, and bash. The ZIP file with a lot of details is available for download.
The ZIP file contains > 150 files explaining what’s going on (for more context, see https://thierrymoudiki.github.io/blog/2025/06/10/r/python/techtonique/personal-note and https://x.com/sippingrizzly/status/1932495238481715459)
Available here (guaranteed zero virus, but you can double-check by yourself) on Google Drive:
https://drive.google.com/file/d/1Yb-aaD_92v4Iy3zS2q5j0US-m-KGSvZn/view?usp=sharing
This ZIP file is protected by a password that you may want to guess. The password logic is: words and numbers, separated by a “_”. And in that order, each word starts with an upperspace letter:
- Short Adverb meaning inside
- Definite Article
- The equivalent of 2 semesters
- The result 6! + 1280 + 4!
- I am not, I won’t be
- Same Definite Article As Before
- Between desertic and equatorial climate
- A myth of the (3 words, separated by a “_”)
- Past tense of Make, but phrasal verb + « Of »
- The character of something that’s both dumb and useless “
Content
- Bash
- R
- Python
1 – Bash
!curl -X 'POST' \ 'https://agile-earth-48511-3d797ee7c19c.herokuapp.com/validate' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -d '{"password": "xxx", "user_id": "anonymous"}' {"correct":false,"message":"❌ Incorrect. Similarity: 2% - Keep trying!","progress":2}
2 – R
%load_ext rpy2.ipython The rpy2.ipython extension is already loaded. To reload it, use: %reload_ext rpy2.ipython %%R library(httr) headers = c( accept = "application/json", `Content-Type` = "application/json" ) data = '{"password": "xxx", "user_id": "anonymous"}' res <- httr::POST(url = "https://agile-earth-48511-3d797ee7c19c.herokuapp.com/validate", httr::add_headers(.headers=headers), body = data) print(content(res)) $correct [1] FALSE $message [1] "❌ Incorrect. Similarity: 2% - Keep trying!" $progress [1] 2
3 - Python
import requests headers = { 'accept': 'application/json', # Already added when you pass json= # 'Content-Type': 'application/json', } json_data = { 'password': 'xxx', 'user_id': 'anonymous', } response = requests.post('https://agile-earth-48511-3d797ee7c19c.herokuapp.com/validate', headers=headers, json=json_data) print("response", response.json()) response {'correct': False, 'message': '❌ Incorrect. Similarity: 2% - Keep trying!', 'progress': 2}
Good luck!
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.