#prog #article
The yaml document from hell (перевод)
For a data format, yaml is extremely complicated. It aims to be a human-friendly format, but in striving for that it introduces so much complexity, that I would argue it achieves the opposite result. Yaml is full of footguns and its friendliness is deceptive. In this post I want to demonstrate this through an example.
<...>
The element starting with
<...>
You may have noticed that none of my examples have syntax highlighting enabled. Maybe I am being unfair to yaml, because syntax highlighting would highlight special constructs, so you can at least see that some values are not normal strings. However, due to multiple yaml versions being prevalent, and highlighters having different levels of sophistication, you can’t rely on this. I’m not trying to nitpick here: Vim, my blog generator, GitHub, and Codeberg, all have a unique way to highlight the example document from this post. No two of them pick out the same subset of values as non-strings!
The yaml document from hell (перевод)
For a data format, yaml is extremely complicated. It aims to be a human-friendly format, but in striving for that it introduces so much complexity, that I would argue it achieves the opposite result. Yaml is full of footguns and its friendliness is deceptive. In this post I want to demonstrate this through an example.
<...>
The element starting with
!
is a tag
. This feature is intended to enable a parser to convert the fairly limited yaml data types into richer types that might exist in the host language. A tag starting with !
is up to the parser to interpret, often by calling a constructor with the given name and providing it the value that follows after the tag. This means that loading an untrusted yaml document is generally unsafe, as it may lead to arbitrary code execution.<...>
You may have noticed that none of my examples have syntax highlighting enabled. Maybe I am being unfair to yaml, because syntax highlighting would highlight special constructs, so you can at least see that some values are not normal strings. However, due to multiple yaml versions being prevalent, and highlighters having different levels of sophistication, you can’t rely on this. I’m not trying to nitpick here: Vim, my blog generator, GitHub, and Codeberg, all have a unique way to highlight the example document from this post. No two of them pick out the same subset of values as non-strings!
Ruudvanasseldonk
The yaml document from hell
As a data format, yaml is extremely complicated and it has many footguns. In this post I explain some of those pitfalls by means of an example, and I suggest a few simpler and safer yaml alternatives.
👍10
Forwarded from Дневник пидора-провинциала | Ярослав Распутин
Роскомпозор строит потёмкинскую ЛГБТ-деревню: чтобы отчитаться о хорошей работе Хинштейну, они сделали фейковый сайт про смену пола и заблокировали на нём больше 200 страниц, каждая из которых легла в отчёт как отдельный материал. Это вот выяснил Игорь Кочетков.
Вот как выглядит этот сайт. Я нахожусь в Тбилиси, а на Сакартвело не распространяются решения РКН — реальные заблокированные сайты открываются с VPN либо из-за границы. То есть плашка о блокировке РКН это и есть содержимое сайта.
Ну и название «smena-pola-i-gay-sex-eto-kruto.rashka.net» — это, конечно, выглядит либо как очень толстый троллинг, либо совсем уж как наплевательство на всё на свете.
#гейновости
Вот как выглядит этот сайт. Я нахожусь в Тбилиси, а на Сакартвело не распространяются решения РКН — реальные заблокированные сайты открываются с VPN либо из-за границы. То есть плашка о блокировке РКН это и есть содержимое сайта.
Ну и название «smena-pola-i-gay-sex-eto-kruto.rashka.net» — это, конечно, выглядит либо как очень толстый троллинг, либо совсем уж как наплевательство на всё на свете.
#гейновости
🤯11👍2😁2💩2🤣2❤1🤡1
Дневник пидора-провинциала | Ярослав Распутин
Роскомпозор строит потёмкинскую ЛГБТ-деревню: чтобы отчитаться о хорошей работе Хинштейну, они сделали фейковый сайт про смену пола и заблокировали на нём больше 200 страниц, каждая из которых легла в отчёт как отдельный материал. Это вот выяснил Игорь Кочетков.…
UPD: уже открывается. Но в Веб-архиве сохранилась версия с плашками: web.archive.org/web/20221227201422/https://smena-pola-i-gay-sex-eto-kruto.rashka.net/
💩1
Forwarded from Игорь Кочетков (Igor Kochetkov)
Проясняется ситуация с сайтом, на котором Роскомнадзор "накрутил" более 200 блокировок "ЛГБТ-пропаганды". Оказывается, кто-то тролит таким образом госорганы
SOTA пишет, что мои "выводы" "о намеренном создании ресурса Роскомнадзором для накрутки статистики являются ошибочными". Помилуйте, господа, какие еще "выводы"? Я написал: "лично я не могу отделаться от впечатления". Мои впечатления это не выводы
Кроме того, дело не в том, что кто-то троллит госорганы, а в том, что они на этот троллинг ведутся. Причем, ведутся они на него совершенно сознательно, организованно и с удовольствием. Иначе невозможно объяснить десятки одновременных судебных исков в десятках субъектах РФ в отношении никому неизвестного сайта
Это многое говорит о характере современной репрессивной политики
SOTA пишет, что мои "выводы" "о намеренном создании ресурса Роскомнадзором для накрутки статистики являются ошибочными". Помилуйте, господа, какие еще "выводы"? Я написал: "лично я не могу отделаться от впечатления". Мои впечатления это не выводы
Кроме того, дело не в том, что кто-то троллит госорганы, а в том, что они на этот троллинг ведутся. Причем, ведутся они на него совершенно сознательно, организованно и с удовольствием. Иначе невозможно объяснить десятки одновременных судебных исков в десятках субъектах РФ в отношении никому неизвестного сайта
Это многое говорит о характере современной репрессивной политики
👍4🤮2💩1
Forwarded from Технологический Болт Генона
Энтрокошки 🌝
Proof-of-Cat is a novel approach to generating randomness for cryptographic systems, utilizing the inherent unpredictability and entropy of domestic felines, also known as cats.
https://proofof.cat
Catropy is a small devices dedicated to harvesting entropy from cats. Current design is a result of various iterations and consists of custom board with:
- ESP32 C2 with wifi, bluetooth
- Sensors - gyroscope, accelerometer
- Li-ion battery and charging circuit
Proof-of-Cat is a novel approach to generating randomness for cryptographic systems, utilizing the inherent unpredictability and entropy of domestic felines, also known as cats.
https://proofof.cat
❤5😁2💩1
"Просто будь собой"
Чувак, когда я являюсь собой — на меня люди обижаются, порой достаточно сильно, чтобы прекратить общение со мной в принципе.
Чувак, когда я являюсь собой — на меня люди обижаются, порой достаточно сильно, чтобы прекратить общение со мной в принципе.
❤10🤔5😢3💩1