#string
4 discoveries · Hand-picked discoveries from the open web, newest first.
-
Ruby Releases Fixes for 7 Regex and String Flaws, Warns 5 Have Proof-of-Concept RCE
Ruby contains seven memory-safety flaws in its regular expression engine and its string case-conversion code. For five of them, its maintainers say, proof-of-concept exploits, or PoCs, have shown that crafted input can run code on the machine. "We are aware of PoCs that prove some of them can be used to trigger remote code execution," the maintainers said. The project released fixed versions
The Hacker News · EN
-
Beethoven Folk #1 — String Quartets Op.18
La sortie du disque “Beethoven Folk #1 — String Quartets Op.18” constitue l’un des événements marquants de la saison. Où le quatuor à cordes joue à associer aux compositions du maître des airs traditionnels qui donnent envie de danser.
Télérama · FR
-
Show HN: String#to_proc` to Help Traversing JSON
I've resuscitated a project I was working on years ago. I was tired of having nested `flat_map` making my code basically unreadable just to fetch a simple value. The idea is to make simple & readable the traversing of deeply nested structures like JSON responses, while staying in Ruby & keeping its flexibility. Here it goes: graphql_response.then(&'[data][repository][issues][edges]*([node][title])') # => ["Support negative indexes", "Document aggregates"] github_prs_response.then(&'*[draft].any?') # => true It's different from jq or JSONPath in that: - it's a Ruby block so you can use it with
Show HN · EN
-
String Theory Explained In Two Minutes!
PBS Space Time