Sunday, August 31st, 2025 07:37 pm

Per the [site community profile] dw_news post regarding the MS/TN blocks, we are doing a small code push shortly in order to get the code live. As per usual, please let us know if you see anything wonky.

There is some code cleanup we've been doing that is going out with this push but I don't think there is any new/reworked functionality, so it should be pretty invisible if all goes well.

Sunday, August 31st, 2025 12:28 pm

A reminder to everyone that starting tomorrow, we are being forced to block access to any IP address that geolocates to the state of Mississippi for legal reasons while we and Netchoice continue fighting the law in court. People whose IP addresses geolocate to Mississippi will only be able to access a page that explains the issue and lets them know that we'll be back to offer them service as soon as the legal risk to us is less existential.

The block page will include the apology but I'll repeat it here: we don't do geolocation ourselves, so we're limited to the geolocation ability of our network provider. Our anti-spam geolocation blocks have shown us that their geolocation database has a number of mistakes in it. If one of your friends who doesn't live in Mississippi gets the block message, there is nothing we can do on our end to adjust the block, because we don't control it. The only way to fix a mistaken block is to change your IP address to one that doesn't register as being in Mississippi, either by disconnecting your internet connection and reconnecting it (if you don't have a static IP address) or using a VPN.

In related news, the judge in our challenge to Tennessee's social media age verification, parental consent, and parental surveillance law (which we are also part of the fight against!) ruled last month that we had not met the threshold for a temporary injunction preventing the state from enforcing the law while the court case proceeds.

The Tennesee law is less onerous than the Mississippi law and the fines for violating it are slightly less ruinous (slightly), but it's still a risk to us. While the fight goes on, we've decided to prevent any new account signups from anyone under 18 in Tennessee to protect ourselves against risk. We do not need to block access from the whole state: this only applies to new account creation.

Because we don't do any geolocation on our users and our network provider's geolocation services only apply to blocking access to the site entirely, the way we're implementing this is a new mandatory question on the account creation form asking if you live in Tennessee. If you do, you'll be unable to register an account if you're under 18, not just the under 13 restriction mandated by COPPA. Like the restrictions on the state of Mississippi, we absolutely hate having to do this, we're sorry, and we hope we'll be able to undo it as soon as possible.

Finally, I'd like to thank every one of you who's commented with a message of support for this fight or who's bought paid time to help keep us running. The fact we're entirely user-supported and you all genuinely understand why this fight is so important for everyone is a huge part of why we can continue to do this work. I've also sent a lot of your comments to the lawyers who are fighting the actual battles in court, and they find your wholehearted support just as encouraging and motivating as I do. Thank you all once again for being the best users any social media site could ever hope for. You make me proud and even more determined to yell at state attorneys general on your behalf.

Friday, August 29th, 2025 05:59 pm
Не помню уже, где что на днях прочитал насчет неспособности вербализовать, чем высокая классическая музыка отличается от классической же музыки, но трубой (pardon the pun) пониже, но подумал из-за этого, что если бы у меня была машина времени, то первое, что я бы сделал - это взял оркестровки уже "классической" поп- и рок-музыки, типа, скажем, что уже много разных оркестров играют, а на пресловутый оркестровый The Final Countdown даже ссылку не даю, ибо баян (тут уже не pun, баян не оркестровый инструмент) и повёз бы их на той машине в условные Вену и Милан конца XVIII - начала XIX века.

Было бы очень интересно, как бы они там зашли их там приняли.
Thursday, August 28th, 2025 11:35 am
Урок позитивного мышления и раскрутки
"Почему помолвка [певицы] Тейлор Свифт положительна для ядерной энергетики:
Миллионы фанаток скопируют её и заключат помолвку с мужчиной. Это ключевой шаг на пути к повышению уровня рождаемости.
Ядерные электростанции имеют долгий срок службы. Они дешевы в эксплуатации, но их строительство дорого.
Нужно быть уверенным в будущем экономическом росте, а лучший способ увериться в этом - обеспечить рост населения. Желательно создавая стабильные нуклеарные семьи.
Поэтому подъем рождаемости в странах с большим количеством свифт-фанаток поможет обеспечить бизнес-условия для наращивания числа ядерных реакторов.
Мы работаем над этим прямо сейчас."

Автор Марк Нельсон, консультант по ядерной энергетике

taylor-swift.jpg
Tuesday, August 26th, 2025 03:11 pm
Есть очень распространенное ОРВИ дыхательных путей, с симптомами типа простуды, которое вызывает вирус RSV, респираторно-синцитиальный вирус. Мы все им болеем. У ослабленных младенцев в зимнее время редко, но может вызвать воспаление бронхиол и даже пневмонию. Ежегодно от RSV в США умирает около 30 детей (примерно 7 из миллиона родившихся). Госпитализаций же много, десятки тысяч. К двум годам практически все дети переносят первое заражение, следующие инфекции проходят легче.
С 2023 года в США одобрен нирсевимаб (выпускает Sanofi-AstraZeneca), это сыворотка с долгоиграющими антителами к RSV-вирусу. Инъекция рекомендована всем здоровым детям накануне их первой зимы. Не вакцина, но предназначение такое же, предотвратить заболевание. Только в этом случае иммунизация не активная, а пассивная: организм ребенка не создает свои антитела, а получает их снаружи.
Нирсевимаб внесен в рекомендуемое расписание вакцинации детей в США, Испании, Франции, и в рекомендации ВОЗ.
Этим летом Комитет по вакцинации США собрался, чтобы проголосовать по аналогу нирсевимаба, клесровимаб (Merck).
И им показали данные по безопасности нирсевимаба, собранные CDC (слайд на фото).
Конкретно по судорогам, т.к. есть вопросы по неврологии. Как же сравнить, c чем?

no-risk.jpg

Делаем так: считаем эпизоды судорог у привитых в первые 7 дней после вакцинации, а сравниваем с днями 8-21 у тех же привитых. Поэтому если судороги случатся на восьмой день, они только "улучшают" безопасность нирсевимаба.
Смотрим дальше: ну да, судороги явно чаще в первые 7 дней. Если прививать в первые 37 дней жизни, то чаще в 3,5 раза. А если позже, то чаще в 4,4 раза. Но, товарищи, вы же видите, что эти цифры стастистически не значимы, а значит, это просто случайность. Так и написано.
Вот и обещанный фокус-покус. Если не разбивать на две возрастные группы, а посчитать их вместе, то внезапно риск становится значимым по всем принятым условностям. И в неделю после прививки он в 4 раза выше (RR 3.93, 95% CI 1.21–12.79, p=0.02). (*)
Там еще со смертями нехорошо, во всех испытаниях риск смерти в привитых группах чаще, но тоже "незначимо".
Так что одобрили клесровимаб.

===
(*) На это CDC может ответить, что с 38 дня жизни начинаются прививки другими вакцинами, и нирсевимаб могли колоть с другими вакцинами, а они-то тоже могут вызывать судороги. Поэтому надо считать отдельно по двум периодам.
Но и части группы 0-37 дней тоже вводили нирсемиваб вместе с вакциной от гепатита.
Учитывая полную информацию по прививочной истории, считать надо все равно вместе, и выделять влияние совместных прививок. Может, эти антитела сами по себе ничего не вызывают, а только вместе с вакциной от гепатита или другой.
Tuesday, August 26th, 2025 02:55 pm
Выражение "разводить антимонии" означает проявлять чрезмерную мягкость, появляется в XIX веке. Например, "Вы изволите разводить антимонию на воде, потому что бегали от жизни, да и теперь полагаете свое благополучие в каких-то там высших мировых экстазах." (П. Боборыкин, "На ущербе", 1890).

Антимония, antimonium - сурьма, металл, который с древних времен использовался как косметическое средство и как лекарство. Сурьмяным блеском красили глаза и губы еще в древнем Египте. Название antimonium распространилось в средневековой латыни после публикации крайне популярной алхимической книги "Триумфальная колесница антимониума". В ней легендарный алхимик, настоятель монастыря в Тюрингии Василий Валентин (*) рассказывает, будто свиньи, поедая корм, содержавший сурьму, хорошо прибавляли в весе и нагуливали жир. Это наблюдение навело автора на мысль попробовать дать сурьму монахам, истощенным многодневными постами. Эксперимент был поставлен, но все монахи умерли. Слово "антимоний" и означает "против монахов". **

И до, и особенно после Василия Валентина сурьму активно применяли в медицине и в алхимии. Ньютон посвятил изучению антимония больше времени, чем гравитации. Сурьма считалась женским началом, и ее алхимический символ ♁ используется по сей день.

Популярность и эффективность сурьмы в качестве рвотного и слабительного была велика. Пилюлю из антимония страдающие запорами использовали повторно. В сатирических пьесах Мольера рвотное вино это настойка сурьмы, драматург обоснованно ненавидел врачей, считая настойку причиной смерти близких ему людей. Как пишет Х.Говард, "Средневековые врачи разделились на два лагеря - одни все же считали сурьму лекарством, а другие - просто ядом... Спор о сурьме был решен, когда король Людовик XIV заболел брюшным тифом. Король проболел две недели, после чего к нему пригласили какого-то врача, который обещал исцелить монарха. Королю дали дозу сурьмы, после чего Людовик выздоровел. Королевское выздоровление снова изменило отношение к сурьме, и ее продолжали применять в медицинской практике вплоть до XIX века". Антимонием пытались лечить Наполеона в ссылке, от чего его состояние сильно ухудшилось.

Гомеопаты же, следуя своему кредо, отказывались использовать сурьму в материальных дозах в связи с ее токсичностью, и приготовляли ее в высоких разведениях. Для этого сначала соли сурьмы тщательно растирались с молочным сахаром, а потом последовательно разводились в воде со встряхиванием. Таким образом "разведенные антимонии" действовали мягко, хотя требовали времени на приготовление.
Название основного гомеопатического лекарства на базе сульфида сурьмы - Antimonium crudum.
=======================
* Трактаты Василия Валентина якобы нашел розенкрейцер и алхимик Иоганн Тёльде около 1600 г: Тёльде был в местном монастыре, когда разразилась буря и «чудесная молния» разломала мраморную колонну. Из нее выпала куча книг, в том числе «Триумфальная колесница антимония».
** Однако термин "antimonium" встречается в средневековых текстах и ранее публикации "Триумфальной колесницы", хотя и реже, чем другие названия сурьмы.
Tuesday, August 26th, 2025 12:24 am

I'll start with the tl;dr summary to make sure everyone sees it and then explain further: As of September 1, we will temporarily be forced to block access to Dreamwidth from all IP addresses that geolocate to Mississippi for legal reasons. This block will need to continue until we either win the legal case entirely, or the district court issues another injunction preventing Mississippi from enforcing their social media age verification and parental consent law against us.

Mississippi residents, we are so, so sorry. We really don't want to do this, but the legal fight we and Netchoice have been fighting for you had a temporary setback last week. We genuinely and honestly believe that we're going to win it in the end, but the Fifth Circuit appellate court said that the district judge was wrong to issue the preliminary injunction back in June that would have maintained the status quo and prevented the state from enforcing the law requiring any social media website (which is very broadly defined, and which we definitely qualify as) to deanonymize and age-verify all users and obtain parental permission from the parent of anyone under 18 who wants to open an account.

Netchoice took that appellate ruling up to the Supreme Court, who declined to overrule the Fifth Circuit with no explanation -- except for Justice Kavanaugh agreeing that we are likely to win the fight in the end, but saying that it's no big deal to let the state enforce the law in the meantime.

Needless to say, it's a big deal to let the state enforce the law in the meantime. The Mississippi law is a breathtaking state overreach: it forces us to verify the identity and age of every person who accesses Dreamwidth from the state of Mississippi and determine who's under the age of 18 by collecting identity documents, to save that highly personal and sensitive information, and then to obtain a permission slip from those users' parents to allow them to finish creating an account. It also forces us to change our moderation policies and stop anyone under 18 from accessing a wide variety of legal and beneficial speech because the state of Mississippi doesn't like it -- which, given the way Dreamwidth works, would mean blocking people from talking about those things at all. (And if you think you know exactly what kind of content the state of Mississippi doesn't like, you're absolutely right.)

Needless to say, we don't want to do that, either. Even if we wanted to, though, we can't: the resources it would take for us to build the systems that would let us do it are well beyond our capacity. You can read the sworn declaration I provided to the court for some examples of how unworkable these requirements are in practice. (That isn't even everything! The lawyers gave me a page limit!)

Unfortunately, the penalties for failing to comply with the Mississippi law are incredibly steep: fines of $10,000 per user from Mississippi who we don't have identity documents verifying age for, per incident -- which means every time someone from Mississippi loaded Dreamwidth, we'd potentially owe Mississippi $10,000. Even a single $10,000 fine would be rough for us, but the per-user, per-incident nature of the actual fine structure is an existential threat. And because we're part of the organization suing Mississippi over it, and were explicitly named in the now-overturned preliminary injunction, we think the risk of the state deciding to engage in retaliatory prosecution while the full legal challenge continues to work its way through the courts is a lot higher than we're comfortable with. Mississippi has been itching to issue those fines for a while, and while normally we wouldn't worry much because we're a small and obscure site, the fact that we've been yelling at them in court about the law being unconstitutional means the chance of them lumping us in with the big social media giants and trying to fine us is just too high for us to want to risk it. (The excellent lawyers we've been working with are Netchoice's lawyers, not ours!)

All of this means we've made the extremely painful decision that our only possible option for the time being is to block Mississippi IP addresses from accessing Dreamwidth, until we win the case. (And I repeat: I am absolutely incredibly confident we'll win the case. And apparently Justice Kavanaugh agrees!) I repeat: I am so, so sorry. This is the last thing we wanted to do, and I've been fighting my ass off for the last three years to prevent it. But, as everyone who follows the legal system knows, the Fifth Circuit is gonna do what it's gonna do, whether or not what they want to do has any relationship to the actual law.

We don't collect geolocation information ourselves, and we have no idea which of our users are residents of Mississippi. (We also don't want to know that, unless you choose to tell us.) Because of that, and because access to highly accurate geolocation databases is extremely expensive, our only option is to use our network provider's geolocation-based blocking to prevent connections from IP addresses they identify as being from Mississippi from even reaching Dreamwidth in the first place. I have no idea how accurate their geolocation is, and it's possible that some people not in Mississippi might also be affected by this block. (The inaccuracy of geolocation is only, like, the 27th most important reason on the list of "why this law is practically impossible for any site to comply with, much less a tiny site like us".)

If your IP address is identified as coming from Mississippi, beginning on September 1, you'll see a shorter, simpler version of this message and be unable to proceed to the site itself. If you would otherwise be affected, but you have a VPN or proxy service that masks your IP address and changes where your connection appears to come from, you won't get the block message, and you can keep using Dreamwidth the way you usually would.

On a completely unrelated note while I have you all here, have I mentioned lately that I really like ProtonVPN's service, privacy practices, and pricing? They also have a free tier available that, although limited to one device, has no ads or data caps and doesn't log your activity, unlike most of the free VPN services out there. VPNs are an excellent privacy and security tool that every user of the internet should be familiar with! We aren't affiliated with Proton and we don't get any kickbacks if you sign up with them, but I'm a satisfied customer and I wanted to take this chance to let you know that.

Again, we're so incredibly sorry to have to make this announcement, and I personally promise you that I will continue to fight this law, and all of the others like it that various states are passing, with every inch of the New Jersey-bred stubborn fightiness you've come to know and love over the last 16 years. The instant we think it's less legally risky for us to allow connections from Mississippi IP addresses, we'll undo the block and let you know.

Saturday, August 23rd, 2025 11:23 am
Понадобилось мне в качестве хобби иметь в хозяйстве программу, которая должна уметь следующее:
по данным двум текстовым файлам, одному длиннее, другому короче, она должна находить такое смещение в первом файле, начиная с которого его строки наиболее точно совпадают со строками второго файла, причем строки последнего, состоящие из одной звёздочки, считаются совпадающими с любой строкой.

В моём случае более длинный файл - от силы десяток тысяч строк, более короткий - редко когда более тысячи строк, поэтому наивный O(n*m) алгоритм мне бы годился, просто писать было лень. Но я в промпте это не сказал, и получил от Cerebras программу на Питоне, которая пользовалась этим алгоритмом только в качестве крайнего случая, если не был доступен NumPy.

А если NumPy был доступен, то программа каждой уникальной строке, встретившейся в обоих файлах, ставила в соответствие случайное комплексное число длины 1, кроме *, для которой брался 0. Потом она строила соответствующие массивы чисел, удлиняя при необходимости до степени 2, причем для второго массива числа брались сопряжённые, и делала всему этому делу FFT со всеми возможными смещениями от 0 до разницы длин файлов.
В конкретных деталях алгоритма я не разбирался, но мотивировалось это тем, что для совпадающих строк произведение чисел будет равно в точности вещественному 1, а для несовпадающих - произвольным комплексным числам со случайным Re, в среднем равным нулю. Так как нас интересуют только нетривиальные совпадения, то совпадения со звёздочкой, сиречь умножения на 0, общий результат не изменяют.
Потом в массиве полученных результатов находился максимум, и его индекс объявлялся искомым смещением.

Этим всем делом Cerebras был очень горд, потому что вычислительная сложность получалась меньше, типа O((n+m)*log(nm)) или что-то в таком духе.

Ну и, короче, в тех случаях, когда реальное совпадение было стопроцентным, этот алгоритм с хорошей вероятностью выдавал правильное смещение, хотя и с рейтингом заметно меньше 1 (обычно около 0.8-0.9), а для совпадения с погрешностями результат был произвольным и непохожим на реальность. Пришлось подавить это безобразие, закомментировав "import math", и всё заработало ровно так, как я хотел.
Tags: