vitus_wagner: My photo 2005 (Default)
[personal profile] vitus_wagner

Случилась тут у меня в VK дискуссия с [personal profile] nataraj по поводу того, могут ли среди современных студентов попасться "опытные пользователи Linux". И что вообще такое "опытный пользователь Linux" из которого должна получиться хорошая заготовка для будущего разработчика прикладных программ.

На мой взгляд, пользователь, это тот кто решает на компьютере какие-то свои задачи, желательно не имеющие отношения к IT (а то будет "это вроде как машина скорой помощи идет, сама режет, сама давит, сама помощь подает"). Причем пользователем Linux в этом контексте является не тот, кто использует Linux-систему в качестве платформы для запуска браузера, используемого для доступа к чужим сайтам, на которых задачи и решаются, а тот, кто использует для решения задач именно средства, специфичные для POSIX-совместимых систем. Шелл, coreutils, в меньшей степени скриптовые языки вроде Perl и Python - те более системно-независимы.

То есть критерием "опытного пользователя Linux" для меня будет в первую очередь отсутствие четкой грани между выполнением команд в интерактивном шелле и написанием скрипта, и легкость перехода через эту грань в любую сторону.

Второе, что, на мой взгляд является крайне полезным опытом для будущего разработчика клиент-серверных систем, это выстраданное понимание концепции разделения прав доступа по пользователям. То есть во-первых, опыт работы в системе где у него нет админских прав, во-вторых, опыт работы в многопользовательской системе. Причем уровня рабочей группы, где остальных живых пользователей он знает лично и взаимодействует с ними по поводу решаемых задач не только из-за необходимости договариваться о разделении ограниченных ресурсов общего компьютера. Но таких систем в наше время и не встретишь, хоть специально создавай в качестве полигона.

С другой стороны, конечно полезен опыт самостоятельного применения патча Бармина в результате неумелого администрирования системы. Понимание того, что работать без рута нужно в первую очередь для защиты от собственных ошибок.

X-Post to LJ

Йольский пост

Dec. 22nd, 2025 09:01 am
vitus_wagner: My photo 2005 (Default)
[personal profile] vitus_wagner

Да здравствует Солнце, да скроется Тьма!

С окончанием самой длинной ночи в году!

[personal profile] mjg59
I recently won a lawsuit against Roy and Rianne Schestowitz, the authors and publishers of the Techrights and Tuxmachines websites. The short version of events is that they were subject to an online harassment campaign, which they incorrectly blamed me for. They responded with a large number of defamatory online posts about me, which the judge described as unsubstantiated character assassination and consequently awarded me significant damages. That's not what this post is about, as such. It's about the sole meaningful claim made that tied me to the abuse.

In the defendants' defence and counterclaim[1], 15.27 asserts in part The facts linking the Claimant to the sock puppet accounts include, on the IRC network: simultaneous dropped connections to the mjg59_ and elusive_woman accounts. This is so unlikely to be coincidental that the natural inference is that the same person posted under both names. "elusive_woman" here is an account linked to the harassment, and "mjg59_" is me. This is actually a surprisingly interesting claim to make, and it's worth going into in some more detail.

The event in question occurred on the 28th of April, 2023. You can see a line reading *elusive_woman has quit (Ping timeout: 2m30s), followed by one reading *mjg59_ has quit (Ping timeout: 2m30s). The timestamp listed for the first is 09:52, and for the second 09:53. Is that actually simultaneous? We can actually gain some more information - if you hover over the timestamp links on the right hand side you can see that the link is actually accurate to the second even if that's not displayed. The first event took place at 09:52:52, and the second at 09:53:03. That's 11 seconds apart, which is clearly not simultaneous, but maybe it's close enough. Figuring out more requires knowing what a "ping timeout" actually means here.

The IRC server in question is running Ergo (link to source code), and the relevant function is handleIdleTimeout(). The logic here is fairly simple - track the time since activity was last seen from the client. If that time is longer than DefaultIdleTimeout (which defaults to 90 seconds) and a ping hasn't been sent yet, send a ping to the client. If a ping has been sent and the timeout is greater than DefaultTotalTimeout (which defaults to 150 seconds), disconnect the client with a "Ping timeout" message. There's no special logic for handling the ping reply - a pong simply counts as any other client activity and resets the "last activity" value and timeout.

What does this mean? Well, for a start, two clients running on the same system will only have simultaneous ping timeouts if their last activity was simultaneous. Let's imagine a machine with two clients, A and B. A sends a message at 02:22:59. B sends a message 2 seconds later, at 02:23:01. The idle timeout for A will fire at 02:24:29, and for B at 02:24:31. A ping is sent for A at 02:24:29 and is responded to immediately - the idle timeout for A is now reset to 02:25:59, 90 seconds later. The machine hosting A and B has its network cable pulled out at 02:24:30. The ping to B is sent at 02:24:31, but receives no reply. A minute later, at 02:25:31, B quits with a "Ping timeout" message. A ping is sent to A at 02:25:59, but receives no reply. A minute later, at 02:26:59, A quits with a "Ping timeout" message. Despite both clients having their network interrupted simultaneously, the ping timeouts occur 88 seconds apart.

So, two clients disconnecting with ping timeouts 11 seconds apart is not incompatible with the network connection being interrupted simultaneously - depending on activity, simultaneous network interruption may result in disconnections up to 90 seconds apart. But another way of looking at this is that network interruptions may occur up to 90 seconds apart and generate simultaneous disconnections[2]. Without additional information it's impossible to determine which is the case.

This already casts doubt over the assertion that the disconnection was simultaneous, but if this is unusual enough it's still potentially significant. Unfortunately for the Schestowitzes, even looking just at the elusive_woman account, there were several cases where elusive_woman and another user had a ping timeout within 90 seconds of each other - including one case where elusive_woman and schestowitz[TR] disconnect 40 seconds apart. By the Schestowitzes argument, it's also a natural inference that elusive_woman and schestowitz[TR] (one of Roy Schestowitz's accounts) are the same person.

We didn't actually need to make this argument, though. In England it's necessary to file a witness statement describing the evidence that you're going to present in advance of the actual court hearing. Despite being warned of the consequences on multiple occasions the Schestowitzes never provided any witness statements, and as a result weren't allowed to provide any evidence in court, which made for a fairly foregone conclusion.

[1] As well as defending themselves against my claim, the Schestowitzes made a counterclaim on the basis that I had engaged in a campaign of harassment against them. This counterclaim failed.

[2] Client A and client B both send messages at 02:22:59. A falls off the network at 02:23:00, has a ping sent at 02:24:29, and has a ping timeout at 02:25:29. B falls off the network at 02:24:28, has a ping sent at 02:24:29, and has a ping timeout at 02:25:29. Simultaneous disconnects despite over a minute of difference in the network interruption.
vitus_wagner: My photo 2005 (Default)
[personal profile] vitus_wagner

Отключил вентилятор на видеокарте и стало тихо. Видеокарта у меня, к счастью не мощный графический акселератор, на котором можно ChatGPT гонять. Я бы вообще предпочел встроенную не то в чипсет, не то в процессор. Чтобы в отдельном охлажденние не нуждалось. Но в Ryzen вроде такой нет. Во всяком случае видеоразъемов на этой материнской плате не предусмотрено. Поэтому стоит PCI-ная карточка про которую lspсi рассказывает

VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Caicos [Radeon HD 6450/7450/8450 / R5 230 OEM]

lshw ничего более подробного не говорит. Вот пойди и догадайся, 6450 она, 7450 или 8450.

Вроде такое должно жить нормально и на пассивном охлаждении. Хотя, наверное радиатор надо поменять. Либо на специально предназначенный для пассивного охлаждения, либо на такой же. но с исправным кулером.

Вопрос в том, где искать правильные радиаторы. для таких видеокарт.

X-Post to LJ

vitus_wagner: My photo 2005 (Default)
[personal profile] vitus_wagner

Вот тут в GNOME Shell Extension Guidelines появился такой пункт

While it is not prohibited to use AI as a learning aid or a development tool (i.e. code completions), extension developers should be able to justify and explain the code they submit, within reason.

Submissions with large amounts of unnecessary code, inconsistent code style, imaginary API usage, comments serving as LLM prompts, or other indications of AI-generated output will be rejected.

Я бы сказал что не надо разводить дискриминацию роботов. Откуда бы код ни взялся - сгенерирован AI, скопипащен со стэковерфлоу или написан из головы, все равно разработчик обязан про каждую строку кода уметь объяснить, зачем она здесь и почему без нее нельзя обойтись.

Чего нет в словарях

Dec. 13th, 2025 05:42 pm
vitus_wagner: My photo 2005 (Default)
[personal profile] vitus_wagner

Тут по наводке [livejournal.com profile] katherine_kinn выяснил что на сайте института русского языка опубликованы нормативные словари русского языка. Думаю что вещь полезная, надо скачать и иметь в хозяйстве. Еще бы придумать способ автоматического преобразования орфографического словаря из pdf в словарь для ispell/aspell/hunspell и vim-овского спеллчекера.

Тут было обнаружено что в толковом словаре отсутствуют некоторые слова, которые ну никак не должны были в него не попасть.

  • Почему-то после АНГАРа сразу идет АНГИДРИД (Том 1 стр 14). А где АНГЕЛ?
  • После "ВЕНЧУР" - "ВЕРАНДА" (стр 63). Слова ВЕРА нет, хотя есть "ВЕРОВАТЬ", "ВЕРОИСПОВЕДАНИЕ", "ВЕРОУЧЕНИЕ".
  • Есть слова "ЛЮБИТЬ", "ЛЮБОВНИК", "ЛЮБОВНЫЙ", но после "Любовного" сразу идет "ЛЮБОЗНАТЕЛЬНЫЙ" (с 306). Слова "ЛЮБОВЬ" нет.
  • После "НАДДУВ" - "НАДЁЖНЫЙ" с точками над "Ё", (стр 344), а слова "НАДЕЖДА" нет.
  • И слова "ПРАВДА" между "ПРАБАБУШКА" и "ПРАВДИВЫЙ" нет (Том 2 стр 131). Хотя есть "Правдоискатель", "Правдолюбие" и "Правдоподобие". А вот СПРАВЕДЛИВОСТЬ присутствует (т. 2 стр 296).

Надеюсь после поднявшегося шума эти ошибки оперативно исправят. Поэтому привожу дату публикации того толкового словаря, в котором это обнаружено 13 Мая 2025 года. И хэши sha224

d6af4dc95d7768406d944f576ddecfbdabf400e560b54b2f4b4dbcd8  tolkovyj_slovar_chast1_A-N.pdf
ffa610c4283b42fc2ebb6b479fecabad333af402e202d9bc6e87f84f  tolkovyj_slovar_chast2_O-Ja.pdf

Upd На странице 146 после ДЕМОКРАТИЯ идет ДЕМОНЕТИЗАЦИЯ. Демонов тоже не бывает. (а что мне сейчас команда top показывает?). Бесов тоже не обнаружено (стр 36). А вот драконы - бывают (стр 169). И дриады (стр 170). А друидов нет (с. 172). И дьявола нет. Не уверен, должен он располагаться между ДУЭТом и ДЫМом, или между ДЫШлом и ДЮАРом (кстати всегда думал что сосуд Дьюара пишется с мягким знаком), но на 174 странице его нет. И чёрта на странице 435 второго тома тоже нет.

X-Post to LJ

vitus_wagner: My photo 2005 (Default)
[personal profile] vitus_wagner

площадка

Вот эта площадка по-видимомму предназначена для юных Dungeon-master'ов. Во всяком случае ничего другого мне не приходит в голову при виде нагромождения d12.

площадка

А эта - для желающих поиграть в белочек и бурундуков.

April 2016

S M T W T F S
     12
3456789
1011121314 1516
17181920212223
24252627282930

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 23rd, 2025 09:19 am
Powered by Dreamwidth Studios