﻿[
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/reordered-uuid\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                UUID In 1C&#39;s DB\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>17 October 2026</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"mssql\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">MS SQL</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"pgsql\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">PostgreSQL</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"optimization\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Optimization</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I was patching up our 1cFresh setup again (more trouble with data history — I'll tell that story sometime) when I ran into the platform's little UUID storage trick once more. Figured I'd write about it.</p>\n<p>Long story short, UUIDs for metadata objects, just like those for regular object references, are stored in a 1C database as sixteen bytes. Except when you look at those bytes, they don't look anything like the UUIDs you're used to: for example, <code>8e1f9db8-4be2-11ed-a101-2c4d5450919d</code> shows up in the database as <code>0xA1012C4D5450919D11ED4BE28E1F9DB8</code>. The first time I saw this, I thought: some kind of hash, or a bit of little-endian wizardry.</p>\n<p>What the platform actually does is rearrange the UUID groups while keeping the byte order within each group intact:</p>\n<pre><code>UUID:   aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee\nSQL:    dddd eeeeeeeeeeee cccc bbbb aaaaaaaa\n</code></pre>\n<p>Why? My guess is that it's an attempt to make database indexes work more efficiently. The thing is, the platform uses UUID v1 when automatically generating references for documents, catalog items, and similar objects. These UUIDs are time-based, with the timestamp split into three parts. The low part comes first, followed by the middle and high parts:</p>\n<pre><code>8e1f9db8-4be2-11ed-a101-2c4d5450919d\n│        │    │    │    │\n│        │    │    │    └─ Node ID (48 bits)\n│        │    │    └────── Clock sequence + variant (16 bits)\n│        │    └─────────── Time high + version (16 bits)\n│        └──────────────── Time mid (16 bits)\n└───────────────────────── Time low (32 bits)\n</code></pre>\n<p>In a 1C database, the same UUID looks like this:</p>\n<pre><code>0xA1012C4D5450919D11ED4BE28E1F9DB8\n  │   │           │   │   │\n  │   │           │   │   └─ Time low (32 bits)\n  │   │           │   └───── Time mid (16 bits)\n  │   │           └───────── Time high + version (16 bits)\n  │   └───────────────────── Node ID (48 bits)\n  └───────────────────────── Clock sequence + variant (16 bits)\n</code></pre>\n<p>So the rearrangement puts the timestamp parts in order from most to least significant. With the same clock sequence and Node ID, a later timestamp gives you a larger binary UUID value.</p>\n<p>References form part of index keys. When keys arrive in a random order, new entries land all over the B-tree. If the target index page is already full, it has to be split: allocate a new page, move some entries over, and update the links in the tree. That's called a page split, and it can increase index fragmentation and hurt performance — both immediately and down the road.</p>\n<p>With mostly increasing keys, though, new entries usually go at the end of the index. Pages fill up more sequentially, and inserts are often cheaper.</p>\n<p>(of course, lots of concurrent inserts bring another problem: everyone wants to write to that same last page and starts elbowing each other out of the way, but that's a story for another day)</p>\n<p>(love stuff like this: you're just staring at some weird little bunch of bytes in a database, and then you start to see what looks like a perfectly reasonable architectural decision made by some unknown developer years ago)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "uuid in 1c's db 17 october 2026 · 1с ms sql postgresql optimization i was patching up our 1cfresh setup again (more trouble with data history — i'll tell that story sometime) when i ran into the platform's little uuid storage trick once more. figured i'd write about it. long story short, uuids for metadata objects, just like those for regular object references, are stored in a 1c database as sixteen bytes. except when you look at those bytes, they don't look anything like the uuids you're used to: for example, 8e1f9db8-4be2-11ed-a101-2c4d5450919d shows up in the database as 0xa1012c4d5450919d11ed4be28e1f9db8 . the first time i saw this, i thought: some kind of hash, or a bit of little-endian wizardry. what the platform actually does is rearrange the uuid groups while keeping the byte order within each group intact: uuid: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee sql: dddd eeeeeeeeeeee cccc bbbb aaaaaaaa why? my guess is that it's an attempt to make database indexes work more efficiently. the thing is, the platform uses uuid v1 when automatically generating references for documents, catalog items, and similar objects. these uuids are time-based, with the timestamp split into three parts. the low part comes first, followed by the middle and high parts: 8e1f9db8-4be2-11ed-a101-2c4d5450919d │ │ │ │ │ │ │ │ │ └─ node id (48 bits) │ │ │ └────── clock sequence + variant (16 bits) │ │ └─────────── time high + version (16 bits) │ └──────────────── time mid (16 bits) └───────────────────────── time low (32 bits) in a 1c database, the same uuid looks like this: 0xa1012c4d5450919d11ed4be28e1f9db8 │ │ │ │ │ │ │ │ │ └─ time low (32 bits) │ │ │ └───── time mid (16 bits) │ │ └───────── time high + version (16 bits) │ └───────────────────── node id (48 bits) └───────────────────────── clock sequence + variant (16 bits) so the rearrangement puts the timestamp parts in order from most to least significant. with the same clock sequence and node id, a later timestamp gives you a larger binary uuid value. references form part of index keys. when keys arrive in a random order, new entries land all over the b-tree. if the target index page is already full, it has to be split: allocate a new page, move some entries over, and update the links in the tree. that's called a page split, and it can increase index fragmentation and hurt performance — both immediately and down the road. with mostly increasing keys, though, new entries usually go at the end of the index. pages fill up more sequentially, and inserts are often cheaper. (of course, lots of concurrent inserts bring another problem: everyone wants to write to that same last page and starts elbowing each other out of the way, but that's a story for another day) (love stuff like this: you're just staring at some weird little bunch of bytes in a database, and then you start to see what looks like a perfectly reasonable architectural decision made by some unknown developer years ago)",
    "tags": [
      "1c",
      "mssql",
      "pgsql",
      "optimization"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/egorova\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                The Yegorova Phenomenon\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>22 August 2026</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"ai\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">AI</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I've been <a href=\"https://kostyanetsky.me/notes/autosummary\" rel=\"noopener noreferrer\" target=\"_blank\">using</a> Whisper pretty much nonstop for meeting transcription over the past six months, and I've noticed a funny effect: the bigger the model, the better it is at recognizing actual speech — and the more confidently it makes shit up when there is no speech at all.</p>\n<p>For example, this often happens at the beginning of a webinar or a meeting while people are still joining. It's quiet, nobody is talking, maybe someone is loudly sipping coffee. And then Whisper suddenly starts spitting out something like this:</p>\n<blockquote>\n<p>Subtitle editor A. Sinetskaya, proofreader A. Yegorova<br/>\nSubtitle editor A. Sinetskaya, proofreader A. Yegorova<br/>\nSubtitle editor A. Sinetskaya, proofreader A. Yegorova<br/>\nSubtitle editor A. Sinetskaya, proofreader A. Yegorova  </p>\n</blockquote>\n<p>And worse, <strong>it sometimes keeps doing this even after perfectly intelligible speech has started</strong>.</p>\n<p>This got annoying enough that I finally went down the rabbit hole.</p>\n<p><img alt=\"Who the hell is this Yegorova anyway\" src=\"https://kostyanetsky.me/notes/egorova/egorova.png\"/></p>\n<h2>Why does it transcribe silence like that?</h2>\n<p>Whisper isn't just a sound-to-text recognizer. Under the hood, there's a pretty powerful language model trying to predict the most likely text based on both the audio and the context it has already transcribed. Most of the time, that's exactly what you want: it handles speech, context, names, and complicated phrases remarkably well.</p>\n<p>But if the input is silence, noise, or some unintelligible mumbling, the audio stops being very useful. And that's where the model starts guessing: okay, what kind of text could plausibly go here? It was trained on a gigantic dataset of audio with text transcripts scraped together by OpenAI from all over the internet — around 700,000 hours, if I remember correctly.</p>\n<p>And I assume plenty of that stuff came from videos with subtitles — and subtitles are messy as hell. During a silent bit, the subtitle track might happily contain the translator's name, an editor credit, a studio name, \"thanks for watching\", or some other garbage that isn't present in the audio at all.</p>\n<p>And that, I suspect, is how Sinetskaya and Yegorova entered the history books. I couldn't figure out what exactly they worked on, but apparently some subtitle credit mentioning them occurred often enough in the training data for Whisper to eventually decide that silence and Yegorova are, statistically speaking, basically the same thing.</p>\n<h2>Why doesn't this happen only during silence?</h2>\n<p>Yeah, if it merely produced garbage during pauses, this wouldn't really be a problem. The garbage phrase is known, so you could just filter it out. The nasty part is that a bad transcription poisons the model's context. Oversimplifying a bit: Whisper hears silence, decides it's Yegorova, then feeds “Yegorova” back into itself as context for the next chunk and carries on from there.</p>\n<p>The next chunk might also become Yegorova. And the next one. And the next... By the time the speaker finally starts talking, they'd better enunciate REALLY clearly if they want to convince the model that yes, this is in fact human speech and not Yegorova, who has now accumulated twenty chunks' worth of momentum. As a result, Whisper can get stuck in this state for a surprisingly long time.</p>\n<p>The problem has been around forever — okay, fine, about four years — and it affects a whole bunch of languages. Russian, incidentally, <a href=\"https://github.com/openai/whisper/discussions/928#discussioncomment-5372187\" rel=\"noopener noreferrer\" target=\"_blank\">stands out</a>: while Italians, French, and Spaniards get the boring old \"Subtitles created by the Amara.org community\", we, shall we say, have our own fandom.</p>\n<h2>How do you deal with it?</h2>\n<p>The usual advice is to tune inference: reset context after long pauses, fiddle with <code>no_speech_threshold</code> and <code>condition_on_previous_text</code>, strip silence beforehand using VAD, and so on. I never got around to trying VAD, but I did experiment with the other options, and yes — you can get perfectly decent results for a particular troublesome video.</p>\n<p>The problem is that this doesn't really work for my use case. I need to transcribe all kinds of stuff: meeting recordings, lectures, phone calls, whatever. A combination of tricks carefully tuned for one video tends to fall apart on another. Out of pure engineering stubbornness, I even tried building a wrapper along the lines of: \"run the video through three different inference setups, analyze all three outputs, then pick whichever one has the lowest Yegorova concentration\". It still worked kinda meh.</p>\n<p>So I eventually went with a different solution: <strong>use a dumber model!</strong></p>\n<p>Seriously. It works. At least on my recordings, Whisper Small falls into repetition loops on silence much less often. My guess is that the weaker model simply has a harder time confidently hallucinating a garbage pattern, so when it hears silence, it just outputs nothing.</p>\n<p>Oversimplifying again:</p>\n<ul>\n<li>Whisper Small: Uh... I can't hear anything. No idea.</li>\n<li>Whisper Medium: Uh... I can't hear anything... <em>(strains all its parameters)</em> OH! I KNOW! <em>(fanfare starts playing)</em> THAT'S YEGOROVA!</li>\n</ul>\n<p>:D Suffering from success. Literally.</p>\n<p>The transcription quality with Whisper Small is obviously a bit worse — more mangled words, less coherent phrasing — but <s>that's still better than Sinetskaya eating a third of the recording and Yegorova devouring the rest</s> overall, the result is much more predictable.</p>\n<p>Besides, I'm going to throw the transcript into something like ChatGPT afterwards anyway to generate a summary, and for that absolute gigachad, reconstructing the conversation context is barely an inconvenience even if a few chunks of dialogue got mangled or dropped.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "the yegorova phenomenon 22 august 2026 · ai i've been using whisper pretty much nonstop for meeting transcription over the past six months, and i've noticed a funny effect: the bigger the model, the better it is at recognizing actual speech — and the more confidently it makes shit up when there is no speech at all. for example, this often happens at the beginning of a webinar or a meeting while people are still joining. it's quiet, nobody is talking, maybe someone is loudly sipping coffee. and then whisper suddenly starts spitting out something like this: subtitle editor a. sinetskaya, proofreader a. yegorova subtitle editor a. sinetskaya, proofreader a. yegorova subtitle editor a. sinetskaya, proofreader a. yegorova subtitle editor a. sinetskaya, proofreader a. yegorova and worse, it sometimes keeps doing this even after perfectly intelligible speech has started . this got annoying enough that i finally went down the rabbit hole. why does it transcribe silence like that? whisper isn't just a sound-to-text recognizer. under the hood, there's a pretty powerful language model trying to predict the most likely text based on both the audio and the context it has already transcribed. most of the time, that's exactly what you want: it handles speech, context, names, and complicated phrases remarkably well. but if the input is silence, noise, or some unintelligible mumbling, the audio stops being very useful. and that's where the model starts guessing: okay, what kind of text could plausibly go here? it was trained on a gigantic dataset of audio with text transcripts scraped together by openai from all over the internet — around 700,000 hours, if i remember correctly. and i assume plenty of that stuff came from videos with subtitles — and subtitles are messy as hell. during a silent bit, the subtitle track might happily contain the translator's name, an editor credit, a studio name, \"thanks for watching\", or some other garbage that isn't present in the audio at all. and that, i suspect, is how sinetskaya and yegorova entered the history books. i couldn't figure out what exactly they worked on, but apparently some subtitle credit mentioning them occurred often enough in the training data for whisper to eventually decide that silence and yegorova are, statistically speaking, basically the same thing. why doesn't this happen only during silence? yeah, if it merely produced garbage during pauses, this wouldn't really be a problem. the garbage phrase is known, so you could just filter it out. the nasty part is that a bad transcription poisons the model's context. oversimplifying a bit: whisper hears silence, decides it's yegorova, then feeds “yegorova” back into itself as context for the next chunk and carries on from there. the next chunk might also become yegorova. and the next one. and the next... by the time the speaker finally starts talking, they'd better enunciate really clearly if they want to convince the model that yes, this is in fact human speech and not yegorova, who has now accumulated twenty chunks' worth of momentum. as a result, whisper can get stuck in this state for a surprisingly long time. the problem has been around forever — okay, fine, about four years — and it affects a whole bunch of languages. russian, incidentally, stands out : while italians, french, and spaniards get the boring old \"subtitles created by the amara.org community\", we, shall we say, have our own fandom. how do you deal with it? the usual advice is to tune inference: reset context after long pauses, fiddle with no_speech_threshold and condition_on_previous_text , strip silence beforehand using vad, and so on. i never got around to trying vad, but i did experiment with the other options, and yes — you can get perfectly decent results for a particular troublesome video. the problem is that this doesn't really work for my use case. i need to transcribe all kinds of stuff: meeting recordings, lectures, phone calls, whatever. a combination of tricks carefully tuned for one video tends to fall apart on another. out of pure engineering stubbornness, i even tried building a wrapper along the lines of: \"run the video through three different inference setups, analyze all three outputs, then pick whichever one has the lowest yegorova concentration\". it still worked kinda meh. so i eventually went with a different solution: use a dumber model! seriously. it works. at least on my recordings, whisper small falls into repetition loops on silence much less often. my guess is that the weaker model simply has a harder time confidently hallucinating a garbage pattern, so when it hears silence, it just outputs nothing. oversimplifying again: whisper small: uh... i can't hear anything. no idea. whisper medium: uh... i can't hear anything... (strains all its parameters) oh! i know! (fanfare starts playing) that's yegorova! :d suffering from success. literally. the transcription quality with whisper small is obviously a bit worse — more mangled words, less coherent phrasing — but that's still better than sinetskaya eating a third of the recording and yegorova devouring the rest overall, the result is much more predictable. besides, i'm going to throw the transcript into something like chatgpt afterwards anyway to generate a summary, and for that absolute gigachad, reconstructing the conversation context is barely an inconvenience even if a few chunks of dialogue got mangled or dropped.",
    "tags": [
      "ai"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/miku-codex-pet\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                A Miku Pet for Codex\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>18 August 2026</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"ai\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">AI</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>The desktop version of <a href=\"https://openai.com/codex\" rel=\"noopener noreferrer\" target=\"_blank\">Codex</a> has pets — little pixel characters rendered on top of the UI that show what the agent is currently doing. When it's working, the pet walks around; when it's waiting for input, it calls for you; when something goes wrong, it squints, and so on. The general idea is that you kick off some workflow, go do something else, and can still tell at a glance how things are going.</p>\n<p>Not exactly a killer feature, but it's fun. I wasn’t particularly into the built-in pets, though, so I started browsing community-made ones and somehow ended up making my own — based on Hatsune Miku's design from <a href=\"https://chaim-videogames.itch.io/mikun-pop\" rel=\"noopener noreferrer\" target=\"_blank\">Miku'n POP</a>, an ancient little platformer.</p>\n<p>Turns out it's not especially complicated. I took the sprites from <a href=\"https://github.com/CharlesWiiFlowers/MikuPet\" rel=\"noopener noreferrer\" target=\"_blank\">MikuPet</a>, whose author uses the same Miku'n POP design. The pet format itself is pretty straightforward, and with Codex helping me poke around, there wasn't much reverse-engineering involved. I actually spent more time <a href=\"https://github.com/vkostyanetsky/MikuCodexPet/blob/main/ATTRIBUTION.md\" rel=\"noopener noreferrer\" target=\"_blank\">figuring out</a> who owns which bits of artwork, what the reuse terms are, and all that fun licensing stuff.</p>\n<p>You can <a href=\"https://github.com/vkostyanetsky/MikuCodexPet/releases\" rel=\"noopener noreferrer\" target=\"_blank\">grab the pet</a> from GitHub. There’s also a screenshot and a <a href=\"https://github.com/vkostyanetsky/MikuCodexPet\" rel=\"noopener noreferrer\" target=\"_blank\">detailed rundown</a> of what's under the hood.</p>\n<p>Free bonus: the <a href=\"https://github.com/vkostyanetsky/MikuCodexPet/actions/workflows/release.yml\" rel=\"noopener noreferrer\" target=\"_blank\">release workflow</a> for a project like this can, with complete justification, be called \"Release pet\" :)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "a miku pet for codex 18 august 2026 · ai done the desktop version of codex has pets — little pixel characters rendered on top of the ui that show what the agent is currently doing. when it's working, the pet walks around; when it's waiting for input, it calls for you; when something goes wrong, it squints, and so on. the general idea is that you kick off some workflow, go do something else, and can still tell at a glance how things are going. not exactly a killer feature, but it's fun. i wasn’t particularly into the built-in pets, though, so i started browsing community-made ones and somehow ended up making my own — based on hatsune miku's design from miku'n pop , an ancient little platformer. turns out it's not especially complicated. i took the sprites from mikupet , whose author uses the same miku'n pop design. the pet format itself is pretty straightforward, and with codex helping me poke around, there wasn't much reverse-engineering involved. i actually spent more time figuring out who owns which bits of artwork, what the reuse terms are, and all that fun licensing stuff. you can grab the pet from github. there’s also a screenshot and a detailed rundown of what's under the hood. free bonus: the release workflow for a project like this can, with complete justification, be called \"release pet\" :)",
    "tags": [
      "ai",
      "done"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/obsidian-property-organizer\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Obsidian Property Organizer\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>9 August 2026</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"obsidian\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Obsidian</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"ai\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">AI</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>One thing AI has genuinely made better for developers: tiny side projects actually get finished now.</p>\n<p>I'm talking about all those little tools, MVPs, and random ideas that used to go straight into the \"maybe someday\" pile. You want to build them, sure, but spending three evenings on yet another tiny utility is a pretty hard sell.</p>\n<p>Last week, for example, I vibe-coded an <a href=\"https://community.obsidian.md/plugins/property-organizer\" rel=\"noopener noreferrer\" target=\"_blank\">Obsidian plugin</a> for keeping note properties tidy. The idea is simple: for each folder, you can define which properties notes are supposed to have and what order they should appear in. The plugin adds missing ones, removes unwanted ones, and puts everything back where it belongs — instead of preserving whatever mess I hastily threw together months ago and never bothered to fix.</p>\n<p>There's a <a href=\"https://github.com/vkostyanetsky/ObsidianPropertyOrganizer/blob/main/README.md\" rel=\"noopener noreferrer\" target=\"_blank\">more detailed explanation</a> in the GitHub repo if you're curious.</p>\n<p>It's a tiny thing, obviously. Mostly just me feeding my inner perfectionist. But I do like things neat, and apparently I'm not alone: seventy people downloaded the plugin in its first three days.</p>\n<p>Greetings, fellow people who derive unreasonable satisfaction from tidy metadata :)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "obsidian property organizer 9 august 2026 · obsidian ai done one thing ai has genuinely made better for developers: tiny side projects actually get finished now. i'm talking about all those little tools, mvps, and random ideas that used to go straight into the \"maybe someday\" pile. you want to build them, sure, but spending three evenings on yet another tiny utility is a pretty hard sell. last week, for example, i vibe-coded an obsidian plugin for keeping note properties tidy. the idea is simple: for each folder, you can define which properties notes are supposed to have and what order they should appear in. the plugin adds missing ones, removes unwanted ones, and puts everything back where it belongs — instead of preserving whatever mess i hastily threw together months ago and never bothered to fix. there's a more detailed explanation in the github repo if you're curious. it's a tiny thing, obviously. mostly just me feeding my inner perfectionist. but i do like things neat, and apparently i'm not alone: seventy people downloaded the plugin in its first three days. greetings, fellow people who derive unreasonable satisfaction from tidy metadata :)",
    "tags": [
      "obsidian",
      "ai",
      "done"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/timesheet-auto-refresh\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Auto-Refresh for Timesheet\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>26 Jule 2026</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"obsidian\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Obsidian</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"javascript\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Javascript</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I spontaneously returned to my old <a href=\"https://github.com/vkostyanetsky/ObsidianTimesheet\" rel=\"noopener noreferrer\" target=\"_blank\">Obsidian plugin</a>, which takes the daily note for a given day and generates a list of tasks along with the time spent on each one.</p>\n<p>The plugin had an original sin of a bug: whenever the note text changed, the plugin block would not refresh on its own. So you would add a task, change the time spent, or fix a description, while the report kept showing the old data. You had to either reopen the note itself or start editing the block and then cancel, just to trigger a manual render. It was annoying — and smelled suspiciously like reinventing the wheel.</p>\n<p>Now the plugin block automatically re-renders after changes — just the block, not the entire note. There is also a short delay after typing and an additional check: if the report has not actually changed, no render happens at all.</p>\n<p>I also wanted to update the dependencies while I was at it — it has been a year, after all — but... You know, NPM remains its usual shining example of order and discipline. Every tiny library for adding two numbers inevitably depends on ten others, every package is somehow a second cousin twice removed of the fence next door, and you cannot replace a single one without consequences: <code>npm audit</code> complains whenever someone sneezes. So, at first glance, I could not figure out how to update the dependencies reliably without breaking the plugin itself.</p>\n<p>Oh well. That is a problem for tomorrow me.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "auto-refresh for timesheet 26 jule 2026 · obsidian javascript i spontaneously returned to my old obsidian plugin , which takes the daily note for a given day and generates a list of tasks along with the time spent on each one. the plugin had an original sin of a bug: whenever the note text changed, the plugin block would not refresh on its own. so you would add a task, change the time spent, or fix a description, while the report kept showing the old data. you had to either reopen the note itself or start editing the block and then cancel, just to trigger a manual render. it was annoying — and smelled suspiciously like reinventing the wheel. now the plugin block automatically re-renders after changes — just the block, not the entire note. there is also a short delay after typing and an additional check: if the report has not actually changed, no render happens at all. i also wanted to update the dependencies while i was at it — it has been a year, after all — but... you know, npm remains its usual shining example of order and discipline. every tiny library for adding two numbers inevitably depends on ten others, every package is somehow a second cousin twice removed of the fence next door, and you cannot replace a single one without consequences: npm audit complains whenever someone sneezes. so, at first glance, i could not figure out how to update the dependencies reliably without breaking the plugin itself. oh well. that is a problem for tomorrow me.",
    "tags": [
      "obsidian",
      "javascript"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/if-anyone-builds-it\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                If Anyone Builds It\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>28 June 2026</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"ai\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">AI</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"books\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Books</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Corpus has published the Russian edition of <a href=\"https://www.corpus.ru/products/ehliezer-yudkovskij-esli-kto-to-ego-sozdast-vse-pogibnut.htm\" rel=\"noopener noreferrer\" target=\"_blank\">If Anyone Builds It, Everyone Dies</a> by Eliezer Yudkowsky and Nate Soares. Both are well-known researchers in AI safety, AI alignment, and the risks of superintelligence.</p>\n<p>In the book, the authors explain clearly and step by step why the title isn't hysteria, exaggeration, or clickbait. The point is simple and unpleasant: if anyone on the planet actually builds AGI or ASI using technology anywhere close to what we have now, humanity is screwed.</p>\n<p>I hadn't read Soares before, but Yudkowsky has always had this rare combination of deep expertise and the ability to talk about it like a normal human being, without disappearing into galaxy-brain jargon every thirty seconds. So you don't need a specialist background: a lot of work has clearly gone into making the text understandable for people who don't happen to have a PhD in applied math.</p>\n<p>Anyway, the book is great. I honestly can't remember the last time I tore through something like this in one sitting. It's available on Ozon, at Chitai-Gorod, and even in certain suspiciously nautical corners of the internet — which I condemn, obviously, but if your black-flag frigate is already parked outside your building, what can I do? :)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "if anyone builds it 28 june 2026 · ai books corpus has published the russian edition of if anyone builds it, everyone dies by eliezer yudkowsky and nate soares. both are well-known researchers in ai safety, ai alignment, and the risks of superintelligence. in the book, the authors explain clearly and step by step why the title isn't hysteria, exaggeration, or clickbait. the point is simple and unpleasant: if anyone on the planet actually builds agi or asi using technology anywhere close to what we have now, humanity is screwed. i hadn't read soares before, but yudkowsky has always had this rare combination of deep expertise and the ability to talk about it like a normal human being, without disappearing into galaxy-brain jargon every thirty seconds. so you don't need a specialist background: a lot of work has clearly gone into making the text understandable for people who don't happen to have a phd in applied math. anyway, the book is great. i honestly can't remember the last time i tore through something like this in one sitting. it's available on ozon, at chitai-gorod, and even in certain suspiciously nautical corners of the internet — which i condemn, obviously, but if your black-flag frigate is already parked outside your building, what can i do? :)",
    "tags": [
      "ai",
      "books"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/date-literal-exceeds-3999-once-again\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                The Year In The Date Literal Exceeds 3999\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>28 Marth 2026</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"mssql\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">MS SQL</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"pgsql\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">PostgreSQL</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I already wrote about the error mentioned in this post’s title <a href=\"https://kostyanetsky.me/notes/date-literal-exceeds-3999\" rel=\"noopener noreferrer\" target=\"_blank\">earlier</a>, but here's the refresher: the platform chokes on dates later than the year 3999 (things start blowing up at 3999-12-01, I guess). In theory, dates like that should never make it into the database in the first place. In practice... Well, thanks to bugs in application code — and in the platform itself — they sometimes do.</p>\n<p>The usual symptoms are pretty random and annoying: some reports stop working, some documents refuse to post, totals recalculation crashes, and so on. Basically, any code that touches records with those broken dates is now having a bad day.</p>\n<p>The fix I outlined in the post linked above does work, but it's relatively slow: you need to configure the tech log, collect the output, and then parse it. The problem is that the platform crashes the moment it touches the first bad date, and there may be lots of them scattered across different tables. So you often end up doing this in multiple passes: run a check, hit an error, fix it, run again, hit the next one, repeat.</p>\n<p><img alt=\"Thank You, Mario!\" src=\"https://kostyanetsky.me/notes/date-literal-exceeds-3999-once-again/thanks.jpg\"/></p>\n<p>A few years ago, because I wanted a faster way to deal with this, I wrote a <a href=\"https://gist.github.com/vkostyanetsky/a58ff201d2a87a35e70c4c8f4112ad4c\" rel=\"noopener noreferrer\" target=\"_blank\">PostgreSQL query</a> for it. The idea is simple:</p>\n<ol>\n<li>Find all date fields in the database.</li>\n<li>Build one giant query against those fields to look for dates beyond 1C's limit.</li>\n</ol>\n<p>So yes, this query generates another query. Very normal behavior. Run the generated query, and you get the full picture: a list of tables containing invalid dates. After that, it's just engineering work — inspect the tables and decide what to do. In our case, bad dates sometimes show up in totals and turnovers, so we can just delete those rows and recalculate totals using the standard tools.</p>\n<p>Why do this at the DBMS level? Because 1C itself can't really help here — as a reminder, the platform crashes as soon as it touches the bad records. That includes reads, not just writes. Also, in this case, going directly against the database is simply faster and more convenient.</p>\n<p>The other day I rewrote the same <a href=\"https://gist.github.com/vkostyanetsky/5990a16caacc4a9057b577c6a5694512\" rel=\"noopener noreferrer\" target=\"_blank\">query for MS SQL</a>. It turned out longer — because, well, MS SQL likes to make you earn it — but the idea is exactly the same.</p>\n<p>If you want to use it, keep this in mind:</p>\n<ul>\n<li>The <code>_Fld626</code> field in the query text is the Fresh separator. In your database it may have a different name, or it may not exist at all.</li>\n<li>The query is written for a database that uses a 2000-year offset. If your database does not use that offset, you'll need to adjust the condition accordingly — see <code>DATEADD()</code>.</li>\n<li>I added the XML output trick (<code>FOR XML</code>) to stop SSMS from truncating the generated mega-query. That seemed faster than messing around with type casts. The side effect is that before running the generated query, you need to replace <code>&amp;gt;</code> with <code>&gt;</code>.</li>\n</ul>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "the year in the date literal exceeds 3999 28 marth 2026 · 1с work ms sql postgresql i already wrote about the error mentioned in this post’s title earlier , but here's the refresher: the platform chokes on dates later than the year 3999 (things start blowing up at 3999-12-01, i guess). in theory, dates like that should never make it into the database in the first place. in practice... well, thanks to bugs in application code — and in the platform itself — they sometimes do. the usual symptoms are pretty random and annoying: some reports stop working, some documents refuse to post, totals recalculation crashes, and so on. basically, any code that touches records with those broken dates is now having a bad day. the fix i outlined in the post linked above does work, but it's relatively slow: you need to configure the tech log, collect the output, and then parse it. the problem is that the platform crashes the moment it touches the first bad date, and there may be lots of them scattered across different tables. so you often end up doing this in multiple passes: run a check, hit an error, fix it, run again, hit the next one, repeat. a few years ago, because i wanted a faster way to deal with this, i wrote a postgresql query for it. the idea is simple: find all date fields in the database. build one giant query against those fields to look for dates beyond 1c's limit. so yes, this query generates another query. very normal behavior. run the generated query, and you get the full picture: a list of tables containing invalid dates. after that, it's just engineering work — inspect the tables and decide what to do. in our case, bad dates sometimes show up in totals and turnovers, so we can just delete those rows and recalculate totals using the standard tools. why do this at the dbms level? because 1c itself can't really help here — as a reminder, the platform crashes as soon as it touches the bad records. that includes reads, not just writes. also, in this case, going directly against the database is simply faster and more convenient. the other day i rewrote the same query for ms sql . it turned out longer — because, well, ms sql likes to make you earn it — but the idea is exactly the same. if you want to use it, keep this in mind: the _fld626 field in the query text is the fresh separator. in your database it may have a different name, or it may not exist at all. the query is written for a database that uses a 2000-year offset. if your database does not use that offset, you'll need to adjust the condition accordingly — see dateadd() . i added the xml output trick ( for xml ) to stop ssms from truncating the generated mega-query. that seemed faster than messing around with type casts. the side effect is that before running the generated query, you need to replace &gt; with > .",
    "tags": [
      "1c",
      "work",
      "mssql",
      "pgsql"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/with-side-effect\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                With Side Effect\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>15 Marth 2026</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>In the latest release of <a href=\"https://firstbit.ae\" rel=\"noopener noreferrer\" target=\"_blank\">our ERP</a>, we optimized several heavy dynamic lists — orders, invoices, proforma invoices, and so on. Over time they had accumulated a pretty solid pile of technical debt, mostly in the form of mountains of helper tables bolted onto the main queries: contact info, technical attributes, balances, turnovers, you name it.</p>\n<p>At some point even in fairly small deployments the DB optimizer started producing complete nonsense instead of query plans, and the resource cost of letting that happen was getting less and less funny.</p>\n<p>So, we patched things up using several different approaches. One of them was loading extra row data inside the <code>OnGetDataAtServer()</code> handler (I actually <a href=\"https://kostyanetsky.me/notes/desire-paths\" rel=\"noopener noreferrer\" target=\"_blank\">mentioned</a> this mechanism not that long ago). We built a nice little framework around it, rolled it out, tested it, and... Well, now we're all sitting here with those deeply unimpressed engineer faces.</p>\n<p>To be fair, performance really did get a lot better. Inside a compact handler, you can tune queries against heavy virtual tables almost perfectly. The problem is somewhere else: field values populated by this handler are not passed into the standard dynamic list mechanisms. Which means search, sorting, and grouping simply do not work for those fields.</p>\n<p>So you type a value that is clearly visible in the column — and the row is not found. Or not all matching rows are found. Or rows show up that visibly should not match at all. From the user's point of view, this looks absolutely terrible. A bug is a bug. Those fields don't look any different in the UI, so how exactly are you supposed to explain that this is \"just how the platform works™\"?</p>\n<p>And if you explicitly exclude such a field from the mechanisms that can't handle it, that's somehow even worse. For example, try to sort by it — and boom, giant error message. Explaining why sorting blows up on this \"Amount\" column while the one right next to it works just fine is... Not exactly a beginner-friendly support conversation.</p>\n<p>Honestly, how do you come up with such a great handler concept and then completely fumble the platform-level implementation?</p>\n<p>This randomly reminded me of Reddit. Some communities love threads like \"invent a superpower, but with a side effect\". Like, one person comments: \"I can run at the speed of the wind!\" and someone replies: \"yeah, but you can't stop\". That kind of thing. Sometimes it gets pretty funny.</p>\n<p><img alt=\"Superpower\" src=\"https://kostyanetsky.me/notes/with-side-effect/reddit.png\"/></p>\n<p>That's basically the kind of conversation we're having with the platform developers. You can massively speed up dynamic lists, but the UI will make your users furious. You can automatically send binary data to an S3 bucket, but lose it all with one careless click. You can teleport anywhere, but it takes exactly as long as walking. You can shapeshift, but only into an elderly pug. You have thick, silky, luxurious hair, but on your ass.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "with side effect 15 marth 2026 · work 1с in the latest release of our erp , we optimized several heavy dynamic lists — orders, invoices, proforma invoices, and so on. over time they had accumulated a pretty solid pile of technical debt, mostly in the form of mountains of helper tables bolted onto the main queries: contact info, technical attributes, balances, turnovers, you name it. at some point even in fairly small deployments the db optimizer started producing complete nonsense instead of query plans, and the resource cost of letting that happen was getting less and less funny. so, we patched things up using several different approaches. one of them was loading extra row data inside the ongetdataatserver() handler (i actually mentioned this mechanism not that long ago). we built a nice little framework around it, rolled it out, tested it, and... well, now we're all sitting here with those deeply unimpressed engineer faces. to be fair, performance really did get a lot better. inside a compact handler, you can tune queries against heavy virtual tables almost perfectly. the problem is somewhere else: field values populated by this handler are not passed into the standard dynamic list mechanisms. which means search, sorting, and grouping simply do not work for those fields. so you type a value that is clearly visible in the column — and the row is not found. or not all matching rows are found. or rows show up that visibly should not match at all. from the user's point of view, this looks absolutely terrible. a bug is a bug. those fields don't look any different in the ui, so how exactly are you supposed to explain that this is \"just how the platform works™\"? and if you explicitly exclude such a field from the mechanisms that can't handle it, that's somehow even worse. for example, try to sort by it — and boom, giant error message. explaining why sorting blows up on this \"amount\" column while the one right next to it works just fine is... not exactly a beginner-friendly support conversation. honestly, how do you come up with such a great handler concept and then completely fumble the platform-level implementation? this randomly reminded me of reddit. some communities love threads like \"invent a superpower, but with a side effect\". like, one person comments: \"i can run at the speed of the wind!\" and someone replies: \"yeah, but you can't stop\". that kind of thing. sometimes it gets pretty funny. that's basically the kind of conversation we're having with the platform developers. you can massively speed up dynamic lists, but the ui will make your users furious. you can automatically send binary data to an s3 bucket, but lose it all with one careless click. you can teleport anywhere, but it takes exactly as long as walking. you can shapeshift, but only into an elderly pug. you have thick, silky, luxurious hair, but on your ass.",
    "tags": [
      "work",
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/ikigai\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Ikigai\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>9 Marth 2026</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"meanwhile\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Meanwhile</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>In Japanese, there's a wonderful word: ikigai. It's kind of like your reason for living, but not in some huge existential sense — more in a grounded, everyday way. A source of inner energy, a source of joy. Basically, the thing that makes you want to get out of bed in the morning.</p>\n<p>A person can have several of those anchors, and they're different for everyone. Coffee, a cat, a craft you love, taking care of the people close to you, a garden, walks, video games...</p>\n<p>Anyway, that's what got me thinking. I stumbled across a channel called \"<a href=\"https://t.me/aleshkino_svoe\" rel=\"noopener noreferrer\" target=\"_blank\">Alyoshkino Svoe</a>\". From what I understand, the guy behind it is a lawyer from St. Petersburg who breeds fancy chickens and regularly posts videos about specific breeds, incubation details, feeding, and so on.</p>\n<p>I'm not into birds at all, but I caught myself just sitting there for twenty minutes, completely mesmerized, listening without looking away. It almost works like therapy, honestly. And it struck me that this is actually a pretty solid kind of ikigai: something you'll love the way this guy loves his chickens.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "ikigai 9 marth 2026 · meanwhile in japanese, there's a wonderful word: ikigai. it's kind of like your reason for living, but not in some huge existential sense — more in a grounded, everyday way. a source of inner energy, a source of joy. basically, the thing that makes you want to get out of bed in the morning. a person can have several of those anchors, and they're different for everyone. coffee, a cat, a craft you love, taking care of the people close to you, a garden, walks, video games... anyway, that's what got me thinking. i stumbled across a channel called \" alyoshkino svoe \". from what i understand, the guy behind it is a lawyer from st. petersburg who breeds fancy chickens and regularly posts videos about specific breeds, incubation details, feeding, and so on. i'm not into birds at all, but i caught myself just sitting there for twenty minutes, completely mesmerized, listening without looking away. it almost works like therapy, honestly. and it struck me that this is actually a pretty solid kind of ikigai: something you'll love the way this guy loves his chickens.",
    "tags": [
      "meanwhile"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/autosummary\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Autosummary\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>8 February 2026</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"ai\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">AI</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I started recording all my meetings back in 2020 — at least, that’s what my own <a href=\"https://kostyanetsky.me/notes/video-recording\" rel=\"noopener noreferrer\" target=\"_blank\">notes</a> say. Video is always more accurate than memory, and clicking \"Start Recording\" in <a href=\"https://obsproject.com\" rel=\"noopener noreferrer\" target=\"_blank\">OBS</a> is the cheapest way to not lose some random-but-important detail.</p>\n<p>The downsides are obvious, though: you can't quickly grasp the gist of a meeting from a video, searching through it is basically impossible, it eats disk space like it's bulking season, and it's painfully easy to accidentally capture something private. To partially compensate, I used to jot down key points in bullet form during the meeting, and later either throw them into a task tracker or write a mini-summary for myself: who I met with, what we discussed, what decisions we landed on. If I forgot something or missed details, I'd double-check the video.</p>\n<p>But this method isn't perfect either. Even a rough outline steals focus from the actual meeting. And some \"oh right, that detail matters\" moments only reveal themselves when it's already too late.</p>\n<p><img alt=\"Forgot\" src=\"https://kostyanetsky.me/notes/autosummary/forgot.jpeg\"/></p>\n<p>So I ended up with a better approach: extract the meeting audio from the video, turn it into text (with a neural net), then turn that transcript into a detailed meeting summary (with another neural net). Yes, it's neural nets all the way down.</p>\n<p>The easiest way to rip the audio is with <a href=\"https://www.ffmpeg.org\" rel=\"noopener noreferrer\" target=\"_blank\">ffmpeg</a> (a command-line utility for working with audio/video). Here's an example (mono, 16 kHz sampling rate + loudness normalization):</p>\n<pre>\nffmpeg.exe -y -i \"D:\\video.mkv\" -vn -ac 1 -ar 16000 -af loudnorm -c:a pcm_s16le \"D:\\audio.wav\"\n</pre>\n<p>As for speech-to-text: I experimented with <a href=\"https://alphacephei.com/vosk/\" rel=\"noopener noreferrer\" target=\"_blank\">Vosk</a> + <a href=\"https://github.com/benob/recasepunc\" rel=\"noopener noreferrer\" target=\"_blank\">recasepunc</a>, but... Yeah, no. Let's just say I'd rather not relive that experience. Meanwhile <s>Boromir</s> <a href=\"https://openai.com/index/whisper\" rel=\"noopener noreferrer\" target=\"_blank\">Whisper</a> (OpenAI's speech recognition model) installs in the background in about 10 minutes:</p>\n<pre>\npy -3.10 -m venv .venv\n.\\.venv\\Scripts\\Activate.ps1\npip install setuptools wheel\npip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118\npip install openai-whisper\n</pre>\n<p>Example run:</p>\n<pre>\nwhisper \"D:\\audio.wav\" --model small --language Russian --output_format txt\n</pre>\n<p>The result is a plain text transcript you can shove into any chatbot and get a fairly coherent summary. Sure, you still need to proofread it — fix mistakes and hallucinations, rephrase a couple things — but it's still way better than trying to write notes live.</p>\n<p>And that’s basically the whole method. The only thing left is writing a simple script so you don’t have to run two commands manually every time. If you’re on Windows and you can't be bothered to vibe-code, you can grab <a href=\"https://gist.github.com/vkostyanetsky/4f4760097f1b417cc85d71d11662a642\" rel=\"noopener noreferrer\" target=\"_blank\">my script</a> and tweak it.</p>\n<p>The script finds the first .mkv in its folder, runs it through ffmpeg + Whisper, and saves the result back into the same folder. If you use it: note that it runs via <a href=\"https://developer.nvidia.com/cuda\" rel=\"noopener noreferrer\" target=\"_blank\">CUDA</a> (CPU works too, just much slower), and it stores downloaded Whisper models not in the default cache, but inside the current Python virtual environment folder.</p>\n<p>(if you really want, you can wire up an API call or point it at some local model via <a href=\"https://lmstudio.ai\" rel=\"noopener noreferrer\" target=\"_blank\">LM Studio</a> — but for my personal setup I decided: nope, that's already too much engineering for a lazy win)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "autosummary 8 february 2026 · work ai i started recording all my meetings back in 2020 — at least, that’s what my own notes say. video is always more accurate than memory, and clicking \"start recording\" in obs is the cheapest way to not lose some random-but-important detail. the downsides are obvious, though: you can't quickly grasp the gist of a meeting from a video, searching through it is basically impossible, it eats disk space like it's bulking season, and it's painfully easy to accidentally capture something private. to partially compensate, i used to jot down key points in bullet form during the meeting, and later either throw them into a task tracker or write a mini-summary for myself: who i met with, what we discussed, what decisions we landed on. if i forgot something or missed details, i'd double-check the video. but this method isn't perfect either. even a rough outline steals focus from the actual meeting. and some \"oh right, that detail matters\" moments only reveal themselves when it's already too late. so i ended up with a better approach: extract the meeting audio from the video, turn it into text (with a neural net), then turn that transcript into a detailed meeting summary (with another neural net). yes, it's neural nets all the way down. the easiest way to rip the audio is with ffmpeg (a command-line utility for working with audio/video). here's an example (mono, 16 khz sampling rate + loudness normalization): ffmpeg.exe -y -i \"d:\\video.mkv\" -vn -ac 1 -ar 16000 -af loudnorm -c:a pcm_s16le \"d:\\audio.wav\" as for speech-to-text: i experimented with vosk + recasepunc , but... yeah, no. let's just say i'd rather not relive that experience. meanwhile boromir whisper (openai's speech recognition model) installs in the background in about 10 minutes: py -3.10 -m venv .venv .\\.venv\\scripts\\activate.ps1 pip install setuptools wheel pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 pip install openai-whisper example run: whisper \"d:\\audio.wav\" --model small --language russian --output_format txt the result is a plain text transcript you can shove into any chatbot and get a fairly coherent summary. sure, you still need to proofread it — fix mistakes and hallucinations, rephrase a couple things — but it's still way better than trying to write notes live. and that’s basically the whole method. the only thing left is writing a simple script so you don’t have to run two commands manually every time. if you’re on windows and you can't be bothered to vibe-code, you can grab my script and tweak it. the script finds the first .mkv in its folder, runs it through ffmpeg + whisper, and saves the result back into the same folder. if you use it: note that it runs via cuda (cpu works too, just much slower), and it stores downloaded whisper models not in the default cache, but inside the current python virtual environment folder. (if you really want, you can wire up an api call or point it at some local model via lm studio — but for my personal setup i decided: nope, that's already too much engineering for a lazy win)",
    "tags": [
      "work",
      "ai"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/new-ui\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                New Blog&#39;s UI\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>17 January 2026</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"blog\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Blog</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Over the New Year holidays I randomly got obsessed and rewrote my blog's UI. I only wanted to add search for my notes — there are a lot of them now, and every so often I need to quickly fish something out of the pile (like \"here's that link\" to a coworker).</p>\n<p>The blog runs on <a href=\"https://pages.github.com\" rel=\"noopener noreferrer\" target=\"_blank\">GitHub Pages</a>, so the options aren’t exactly infinite: either outsource search to Google, or build a static index and ship it to the user's browser so it can grep through it locally. I went with the second route: faster, more controllable, <s>and, yes, an excuse to write code</s>. The first time you search it has to download <a href=\"https://kostyanetsky.me/notes.json\" rel=\"noopener noreferrer\" target=\"_blank\">the index file</a>, but... It's 200 KB. That's basically one medium-sized sigh in 2026 internet terms.</p>\n<p>And then, you know how it goes... Scope creep grabbed me by the hoodie. First I couldn't get <a href=\"https://tachyons.io\" rel=\"noopener noreferrer\" target=\"_blank\">Tachyons</a> to play nice with the search input — got annoyed and migrated everything to <a href=\"https://tailwindcss.com\" rel=\"noopener noreferrer\" target=\"_blank\">Tailwind</a> (I'd been meaning to try it anyway, just never had a \"good reason\", so I invented one). While I was writing the search code, I figured it'd be dumb not to add tags too, because why do the same work twice. Next thing I know I \"wake up\" and there's a whole tag cloud sitting above my notes. At that point it felt only logical to do the same for the projects page — except there it's not tags, it's tech stacks...</p>\n<p>So yeah, it turned into that \"Fear and Loathing in Las Vegas\" meme. The tendency was to push it as far as I can, kinda.</p>\n<p>Now the only thing left is to make myself actually write into the new project log. There's always a ton of work, and it's genuinely interesting — but if I don't write things down... Welp. Everything sinks into coffee.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "new blog's ui 17 january 2026 · blog work done over the new year holidays i randomly got obsessed and rewrote my blog's ui. i only wanted to add search for my notes — there are a lot of them now, and every so often i need to quickly fish something out of the pile (like \"here's that link\" to a coworker). the blog runs on github pages , so the options aren’t exactly infinite: either outsource search to google, or build a static index and ship it to the user's browser so it can grep through it locally. i went with the second route: faster, more controllable, and, yes, an excuse to write code . the first time you search it has to download the index file , but... it's 200 kb. that's basically one medium-sized sigh in 2026 internet terms. and then, you know how it goes... scope creep grabbed me by the hoodie. first i couldn't get tachyons to play nice with the search input — got annoyed and migrated everything to tailwind (i'd been meaning to try it anyway, just never had a \"good reason\", so i invented one). while i was writing the search code, i figured it'd be dumb not to add tags too, because why do the same work twice. next thing i know i \"wake up\" and there's a whole tag cloud sitting above my notes. at that point it felt only logical to do the same for the projects page — except there it's not tags, it's tech stacks... so yeah, it turned into that \"fear and loathing in las vegas\" meme. the tendency was to push it as far as i can, kinda. now the only thing left is to make myself actually write into the new project log. there's always a ton of work, and it's genuinely interesting — but if i don't write things down... welp. everything sinks into coffee.",
    "tags": [
      "blog",
      "work",
      "done"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/backup-ui\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Backup Management\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>6 December 2025</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>At the end of the year we shipped a big update to our internal tool (I briefly <a href=\"https://kostyanetsky.me/notes/easter-eggs\" rel=\"noopener noreferrer\" target=\"_blank\">wrote</a> about it before). The goal: give teammates sane, usable access to backups of customer apps. In a SaaS company, everyone needs backups all the time — dev, QA, incident investigations, you name it. Without proper tracking the whole thing turns into a petting zoo: three people, same moment, three requests for almost identical copies of the same database. Sure, it \"works\", but you end up chewing through 3x the resources for zero extra value.</p>\n<p>We did have a solution built on top of the Bitrix UI, but due to, uh... the unique \"evolutionary path\" of that product, it delivered more pain than gain. So we rethought the workflow and rewrote everything. Frontend is 1C; backend is PostgREST, PostgreSQL, PowerShell, and a bunch of other bits and bobs. The internal logic is fairly gnarly, but for the user it's a clean, friendly UI where you can request a backup in literally two clicks.</p>\n<p>You can pick one of three backup types:</p>\n<ul>\n<li>Cloud backup (a copy of the real app deployed in the cloud and accessible — including via the browser);</li>\n<li>File backup (a regular .dt file you can download and spin up locally);</li>\n<li>Configuration + extensions backup (.cf + .cfe).</li>\n</ul>\n<p>Also, the new solution detects when someone tries to request a backup for an app that's already being generated right now. And it rate-limits things too: you can't back up the same app more than once per hour.</p>\n<p>And yes — we're still sneaking jokes into the UI. Obviously.</p>\n<p><img alt=\"But Still!\" src=\"https://kostyanetsky.me/notes/backup-ui/but-still.png\"/></p>\n<p><img alt=\"Coffee First!\" src=\"https://kostyanetsky.me/notes/backup-ui/coffee-first.png\"/></p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "backup management 6 december 2025 · 1с work done at the end of the year we shipped a big update to our internal tool (i briefly wrote about it before). the goal: give teammates sane, usable access to backups of customer apps. in a saas company, everyone needs backups all the time — dev, qa, incident investigations, you name it. without proper tracking the whole thing turns into a petting zoo: three people, same moment, three requests for almost identical copies of the same database. sure, it \"works\", but you end up chewing through 3x the resources for zero extra value. we did have a solution built on top of the bitrix ui, but due to, uh... the unique \"evolutionary path\" of that product, it delivered more pain than gain. so we rethought the workflow and rewrote everything. frontend is 1c; backend is postgrest, postgresql, powershell, and a bunch of other bits and bobs. the internal logic is fairly gnarly, but for the user it's a clean, friendly ui where you can request a backup in literally two clicks. you can pick one of three backup types: cloud backup (a copy of the real app deployed in the cloud and accessible — including via the browser); file backup (a regular .dt file you can download and spin up locally); configuration + extensions backup (.cf + .cfe). also, the new solution detects when someone tries to request a backup for an app that's already being generated right now. and it rate-limits things too: you can't back up the same app more than once per hour. and yes — we're still sneaking jokes into the ui. obviously.",
    "tags": [
      "1c",
      "work",
      "done"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/desire-paths\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Desire Paths\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>29 November 2025</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"optimization\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Optimization</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Alright, Jean Fresco's riddle. You've got a table — say, ~50k rows. How do you end up reading half a billion?</p>\n<p>Easy-peasy: Nested Loops + Clustered Index Seek:</p>\n<p><img alt=\"Half a billion\" src=\"https://kostyanetsky.me/notes/desire-paths/500_million.png\"/></p>\n<p>Clustered Index Seek is a bit of a marketing name here, of course. In reality, on every execution the operator walks the entire table (the whole clustered index) and checks every row against the predicates. And it does that 10 730 times for 51 391 rows. Result: 551 425 430 rows read, 13 343 returned.</p>\n<p><img alt=\"Ouch\" src=\"https://kostyanetsky.me/notes/desire-paths/ouch.gif\"/></p>\n<p>So yeah — a perfect textbook example of a horrible query plan in a vacuum. Put it in a museum. Nested Loops, if you've forgotten, works roughly like this:</p>\n<pre>\nFor Each Table1Row In Table1 Do\n    For Each Table2Row In Table2 Do\n        ...\n</pre>\n<p>That's fine for small tables, but the DB can also pick it for bigger ones — for example, if it runs out of time to build a proper plan.</p>\n<p>That's exactly what happened here. Zooming out to the platform level: we've got a dynamic list that queries a documents table, and the devs bolted on like a dozen virtual tables from accumulation registers.</p>\n<p>Some of those registers were huge on their own, and the virtual tables poured gasoline on the fire (each one turns into 2+ nested queries). The DB honestly tried to come up with an efficient strategy, but at some point it basically decided: \"a garbage plan is still better than no plan at all\".</p>\n<p>And the user? They tried to search a document by number — and the client app just straight-up froze.</p>\n<p>So, about virtual tables in dynamic lists. There's a nice English phrase: \"desire path\" — the trail people naturally carve because it's the easiest way. Slapping a virtual table onto the main one really is often the simplest, fastest, most familiar way to solve the task. But it's <strong>not efficient</strong>.</p>\n<p>There's an alternative, for example the <code>OnGetDataAtServer()</code> handler. It takes longer to implement, but it lets you properly tune the virtual table and avoid the scenario above. Scrolling the list will produce more queries, sure — but they'll be smaller, faster, and way more efficient than one single giant monster query.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "desire paths 29 november 2025 · 1с work optimization alright, jean fresco's riddle. you've got a table — say, ~50k rows. how do you end up reading half a billion? easy-peasy: nested loops + clustered index seek: clustered index seek is a bit of a marketing name here, of course. in reality, on every execution the operator walks the entire table (the whole clustered index) and checks every row against the predicates. and it does that 10 730 times for 51 391 rows. result: 551 425 430 rows read, 13 343 returned. so yeah — a perfect textbook example of a horrible query plan in a vacuum. put it in a museum. nested loops, if you've forgotten, works roughly like this: for each table1row in table1 do for each table2row in table2 do ... that's fine for small tables, but the db can also pick it for bigger ones — for example, if it runs out of time to build a proper plan. that's exactly what happened here. zooming out to the platform level: we've got a dynamic list that queries a documents table, and the devs bolted on like a dozen virtual tables from accumulation registers. some of those registers were huge on their own, and the virtual tables poured gasoline on the fire (each one turns into 2+ nested queries). the db honestly tried to come up with an efficient strategy, but at some point it basically decided: \"a garbage plan is still better than no plan at all\". and the user? they tried to search a document by number — and the client app just straight-up froze. so, about virtual tables in dynamic lists. there's a nice english phrase: \"desire path\" — the trail people naturally carve because it's the easiest way. slapping a virtual table onto the main one really is often the simplest, fastest, most familiar way to solve the task. but it's not efficient . there's an alternative, for example the ongetdataatserver() handler. it takes longer to implement, but it lets you properly tune the virtual table and avoid the scenario above. scrolling the list will produce more queries, sure — but they'll be smaller, faster, and way more efficient than one single giant monster query.",
    "tags": [
      "1c",
      "work",
      "optimization"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/obsidian-foodiary-bases\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Food Diary In Obsidian Bases\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>23 November 2025</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"obsidian\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Obsidian</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I've rebuilt last year’s <a href=\"https://kostyanetsky.me/notes/obsidian-foodiary\" rel=\"noopener noreferrer\" target=\"_blank\">plugin</a> with <a href=\"https://help.obsidian.md/bases\" rel=\"noopener noreferrer\" target=\"_blank\">Obsidian Bases</a> — it now tracks calories, protein, fat, and carbs in your food.</p>\n<p>The result is way more flexible and customizable than the plugin version: if you suddenly decide you want to count fiber as well or just shuffle some columns in the report, you don't have to rewrite, rebuild, or release anything. You just tweak it to your heart's content.</p>\n<p>And it doesn't look half bad either:</p>\n<p><img alt=\"UI\" src=\"https://kostyanetsky.me/notes/obsidian-foodiary-bases/base.png\"/></p>\n<p>All the necessary settings and scripts live in the <a href=\"https://github.com/vkostyanetsky/ObsidianTemplates/tree/main/Foodiary\" rel=\"noopener noreferrer\" target=\"_blank\">GitHub repo</a>.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "food diary in obsidian bases 23 november 2025 · done obsidian i've rebuilt last year’s plugin with obsidian bases — it now tracks calories, protein, fat, and carbs in your food. the result is way more flexible and customizable than the plugin version: if you suddenly decide you want to count fiber as well or just shuffle some columns in the report, you don't have to rewrite, rebuild, or release anything. you just tweak it to your heart's content. and it doesn't look half bad either: all the necessary settings and scripts live in the github repo .",
    "tags": [
      "done",
      "obsidian"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/well-there-are-some\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Well, There Are Some\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>17 November 2025</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"meanwhile\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Meanwhile</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I'm out for a walk in the evening, and behind me there's some mom and her little kid — about five years old, I guess. I don't see them, I just hear them talking. The mom is explaining university to the kid: that you have to get in, study, there will be exams and all that.</p>\n<p>The boy is quiet for a bit, then says sadly:</p>\n<p>— I thought there was only school, but it turns out there are more difficulties too...</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "well, there are some 17 november 2025 · meanwhile i'm out for a walk in the evening, and behind me there's some mom and her little kid — about five years old, i guess. i don't see them, i just hear them talking. the mom is explaining university to the kid: that you have to get in, study, there will be exams and all that. the boy is quiet for a bit, then says sadly: — i thought there was only school, but it turns out there are more difficulties too...",
    "tags": [
      "meanwhile"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/harmless-harm\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Harmless Harm\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>16 November 2025</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"pgsql\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">PostgreSQL</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"mssql\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">MS SQL</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>The other day my colleague and I were debugging an issue, nothing fancy, just another \"why is this query behaving weird?\" moment.</p>\n<p>Simplified, the idea was: we read a table from the database and dump the result into a temp table. If a certain condition is met, we still want the temp table to be created, but it must be empty (regardless of whether the source table has rows or not).</p>\n<p>The query looked roughly like this:</p>\n<pre>\nSELECT\n    Table.Field1 AS Field1\nFROM\n    Table AS Table\nWHERE \n    &amp;Parameter\n</pre>\n<p>If we needed to copy rows from the source table into the temp table, we passed TRUE into the parameter; if we wanted the temp table to be empty, we passed FALSE.</p>\n<p>Looks simple at first glance, but this trick is a silent performance foot-gun if the table being read is large.</p>\n<p>The reason is how DB engines work with parameterized queries. Both MS SQL and PostgreSQL build the execution plan based on the query text, and in this example the parameter value does <strong>not</strong> affect the decision of whether the table should be read or not.</p>\n<p>As a result, when this query runs, both engines will pedantically scan the whole table (or its index), even if the parameter is FALSE. In that case each row is just discarded, so the logic is technically correct, but we're wasting resources on a pointless scan and polluting the buffer cache, slowing down the system overall and diligently contributing to global warming :)</p>\n<p>The fix is simple: inline TRUE/FALSE in the query body as a constant instead of using a parameter. Or use TOP so the query text is even simpler:</p>\n<pre>\nSELECT TOP 0\n    Table.Field1 AS Field1\nFROM\n    Table AS Table\n</pre>\n<p>At the SQL level this turns into something like \"SELECT TOP 0 ... FROM Table\" for MS SQL and \"SELECT ... FROM Table LIMIT 0\" for PostgreSQL. The final plan will still contain a read operator, but the executor won't actually request any rows, so there's no real data scan (yay).</p>\n<p>P.S. If you don't care about having proper column types in the temp table, you can even do this:</p>\n<pre>\nSELECT TOP 0\n    UNDEFINED AS Field1\n</pre>\n<p>The performance gain, however, is so tiny that it's probably not worth over-optimizing for this. There are better hills to die on.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "harmless harm 16 november 2025 · 1с postgresql ms sql the other day my colleague and i were debugging an issue, nothing fancy, just another \"why is this query behaving weird?\" moment. simplified, the idea was: we read a table from the database and dump the result into a temp table. if a certain condition is met, we still want the temp table to be created, but it must be empty (regardless of whether the source table has rows or not). the query looked roughly like this: select table.field1 as field1 from table as table where &parameter if we needed to copy rows from the source table into the temp table, we passed true into the parameter; if we wanted the temp table to be empty, we passed false. looks simple at first glance, but this trick is a silent performance foot-gun if the table being read is large. the reason is how db engines work with parameterized queries. both ms sql and postgresql build the execution plan based on the query text, and in this example the parameter value does not affect the decision of whether the table should be read or not. as a result, when this query runs, both engines will pedantically scan the whole table (or its index), even if the parameter is false. in that case each row is just discarded, so the logic is technically correct, but we're wasting resources on a pointless scan and polluting the buffer cache, slowing down the system overall and diligently contributing to global warming :) the fix is simple: inline true/false in the query body as a constant instead of using a parameter. or use top so the query text is even simpler: select top 0 table.field1 as field1 from table as table at the sql level this turns into something like \"select top 0 ... from table\" for ms sql and \"select ... from table limit 0\" for postgresql. the final plan will still contain a read operator, but the executor won't actually request any rows, so there's no real data scan (yay). p.s. if you don't care about having proper column types in the temp table, you can even do this: select top 0 undefined as field1 the performance gain, however, is so tiny that it's probably not worth over-optimizing for this. there are better hills to die on.",
    "tags": [
      "1c",
      "pgsql",
      "mssql"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/voodoo\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Voodoo\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>5 October 2025</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Looks like we finally caught our first lab-reproducible case of platform cache corruption. Short synopsis:</p>\n<ul>\n<li>Spin up a fresh app from the v35 template of <a href=\"https://firstbit.ae\" rel=\"noopener noreferrer\" target=\"_blank\">our ERP</a>.</li>\n<li>Run it and wait for initialization to finish.</li>\n<li>Swap the app configuration to the v36 release (specifically build 28537 from the dev repo) and run it again.</li>\n</ul>\n<p>After this super simple sequence, about half the team sees the platform suddenly lose one of the enums. And it's annoyingly selective: hit an enum value on the client — all good; do the same on the server — boom, exception.</p>\n<p>Same story with the manager module of one catalog: its methods exist and are exported, but after the update the platform pretends they don't and throw an exception when you call them.</p>\n<p><a href=\"https://x.com/EffinBirds/status/1970264357427704080\" rel=\"noopener noreferrer\" target=\"_blank\"><img alt=\"Welcome To Dipshit Central\" src=\"https://kostyanetsky.me/notes/voodoo/welcome.jpg\"/></a></p>\n<p>As always, when the magic blooms — look at the cache. Clear it and symptoms vanish. There are indirect hints too:</p>\n<ul>\n<li>The enum did exist in v35, but it was renamed in v36.</li>\n<li>Those manager-module methods didn't exist in v35 (they were added in v36).</li>\n</ul>\n<p>So the v35 cache didn't contain either of these in their v36 identities, yet for some reason the platform insists on digging into that old cache.</p>\n<p>We still don't have a clean root cause. We traced it to a specific commit after which the bug started showing up, but the only weird thing there its <a href=\"https://kostyanetsky.me/notes/voodoo/the-commit.png\" rel=\"noopener noreferrer\" target=\"_blank\">its name</a> (and honestly, there are nearby commits that look even <a href=\"https://kostyanetsky.me/notes/voodoo/the-other-commit.png\" rel=\"noopener noreferrer\" target=\"_blank\">more suspicious</a> from this point of view). The rest were <a href=\"https://kostyanetsky.me/notes/voodoo/5ba6ac0956e0cc7bc6b520e5110420e6950478fe.diff\" rel=\"noopener noreferrer\" target=\"_blank\">minor changes</a> that regenerate internal metadata IDs in the manifest. Yes, those IDs are tied to cache keys, but they get bumped on any metadata change and have never caused issues before.</p>\n<p>If you landed here from Google because you hit the same mess — make a no-op change to the problematic object so the platform refreshes the metadata IDs in the manifest. For example, add an empty method or even just a space in the module. That fixes the configuration so the recipe at the top stops corrupting the cache.</p>\n<p>Voodoo, sure — but hey, it works ¯\\_(ツ)_/¯</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "voodoo 5 october 2025 · work 1с looks like we finally caught our first lab-reproducible case of platform cache corruption. short synopsis: spin up a fresh app from the v35 template of our erp . run it and wait for initialization to finish. swap the app configuration to the v36 release (specifically build 28537 from the dev repo) and run it again. after this super simple sequence, about half the team sees the platform suddenly lose one of the enums. and it's annoyingly selective: hit an enum value on the client — all good; do the same on the server — boom, exception. same story with the manager module of one catalog: its methods exist and are exported, but after the update the platform pretends they don't and throw an exception when you call them. as always, when the magic blooms — look at the cache. clear it and symptoms vanish. there are indirect hints too: the enum did exist in v35, but it was renamed in v36. those manager-module methods didn't exist in v35 (they were added in v36). so the v35 cache didn't contain either of these in their v36 identities, yet for some reason the platform insists on digging into that old cache. we still don't have a clean root cause. we traced it to a specific commit after which the bug started showing up, but the only weird thing there its its name (and honestly, there are nearby commits that look even more suspicious from this point of view). the rest were minor changes that regenerate internal metadata ids in the manifest. yes, those ids are tied to cache keys, but they get bumped on any metadata change and have never caused issues before. if you landed here from google because you hit the same mess — make a no-op change to the problematic object so the platform refreshes the metadata ids in the manifest. for example, add an empty method or even just a space in the module. that fixes the configuration so the recipe at the top stops corrupting the cache. voodoo, sure — but hey, it works ¯\\_(ツ)_/¯",
    "tags": [
      "work",
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/data-history-missing-indexes\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Slow Removal of Fresh Areas\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>3 August 2025</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>A colleague noticed that on one of our Fresh instances, deleting data areas had become painfully slow. Dug into the metrics:</p>\n<pre>\nDELETE FROM T1\nFROM _DataHistoryMetadata T1\nWHERE \n    T1._MetadataId = ?\n    AND T1._IsActual = 0x00 \n    AND NOT (\n        T1._MetadataVersionNumber IN (\n            SELECT T2._MetadataVersionNumber AS MetadataVersionNumber_\n            FROM _DataHistoryVersions T2\n            WHERE T2._HistoryDataId IN (\n                SELECT DataHistoryLatestVersions1.DataHistoryLatestVersions._HistoryDataId AS HistoryDataId_\n                FROM DataHistoryLatestVersions1.DataHistoryLatestVersions T3\n                WHERE DataHistoryLatestVersions1.DataHistoryLatestVersions._MetadataId = ?\n            )\n        )\n    )\n</pre>\n<p>Each of these queries was reading around 20GB. What's happening is mostly clear: the platform is trying to delete an area's data history, but the janky DB query causes a full scan over the whole history table across all areas instead of using an index. Someone on Dmitrovskaya got lazy again.</p>\n<p><a href=\"https://x.com/EffinBirds/status/1945545263407301033\" rel=\"noopener noreferrer\" target=\"_blank\"><img alt=\"Why are you surpised?\" src=\"https://kostyanetsky.me/notes/data-history-missing-indexes/why.png\"/></a></p>\n<p>So we were losing between 30 seconds and a half an hour per operation. Wanted it faster. Fix:</p>\n<pre>\nCREATE NONCLUSTERED INDEX IX_DataHistoryLatestVersions1_MetadataId\n  ON dbo._DataHistoryLatestVersions1 (_MetadataId)\n  INCLUDE (_HistoryDataId)\n  WITH (DROP_EXISTING = OFF, ONLINE = OFF);\n\nCREATE NONCLUSTERED INDEX IX_DataHistoryVersions_MetadataVersionNumber\n  ON dbo._DataHistoryVersions (_MetadataVersionNumber)\n  WITH (DROP_EXISTING = OFF, ONLINE = OFF);\n</pre>\n<p>Deletion cost predictably dropped ~99%.</p>\n<p>If you're going to repeat this on your side:</p>\n<ol>\n<li>Technically this violates the license agreement, you've been warned and all that.</li>\n<li>There's a risk the platform will trip over the new indexes during future restructurings (especially on the \"new\" schema). Better to have a ready script to drop the index, and then (after restructuring) put it back.</li>\n</ol>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "slow removal of fresh areas 3 august 2025 · 1с work a colleague noticed that on one of our fresh instances, deleting data areas had become painfully slow. dug into the metrics: delete from t1 from _datahistorymetadata t1 where t1._metadataid = ? and t1._isactual = 0x00 and not ( t1._metadataversionnumber in ( select t2._metadataversionnumber as metadataversionnumber_ from _datahistoryversions t2 where t2._historydataid in ( select datahistorylatestversions1.datahistorylatestversions._historydataid as historydataid_ from datahistorylatestversions1.datahistorylatestversions t3 where datahistorylatestversions1.datahistorylatestversions._metadataid = ? ) ) ) each of these queries was reading around 20gb. what's happening is mostly clear: the platform is trying to delete an area's data history, but the janky db query causes a full scan over the whole history table across all areas instead of using an index. someone on dmitrovskaya got lazy again. so we were losing between 30 seconds and a half an hour per operation. wanted it faster. fix: create nonclustered index ix_datahistorylatestversions1_metadataid on dbo._datahistorylatestversions1 (_metadataid) include (_historydataid) with (drop_existing = off, online = off); create nonclustered index ix_datahistoryversions_metadataversionnumber on dbo._datahistoryversions (_metadataversionnumber) with (drop_existing = off, online = off); deletion cost predictably dropped ~99%. if you're going to repeat this on your side: technically this violates the license agreement, you've been warned and all that. there's a risk the platform will trip over the new indexes during future restructurings (especially on the \"new\" schema). better to have a ready script to drop the index, and then (after restructuring) put it back.",
    "tags": [
      "1c",
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/myth-buster\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Myth Buster\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>27 Jule 2025</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I stumbled upon a hefty Infostart <a href=\"https://infostart.ru/1c/articles/2434171/\" rel=\"noopener noreferrer\" target=\"_blank\">article</a> all about \"debunking myths\" around the platform.</p>\n<p>Honestly, about half of it reads like a joke. It's like:</p>\n<blockquote>\n<p>Hot off the press! Crime, intrigue, investigations! File‑based infobase is faster than client-server! DCS is slower than a plain request! Calling a server method on the server counts as a brand-new server call! <s>UFO over Red Square!</s></p>\n</blockquote>\n<p>Still, there are some genuinely interesting nuggets! For instance, I'd never heard the claim that cramming your code into one single line makes it run ten times faster. Too bad you'd get your ass handed to you by the team for trying that kind of desperate swag before you even get to celebrate the speed boost. And let's be real — most enterprise app slowdowns usually come from totally different places.</p>\n<p>Or take their speed comparison for dumping data into a table: one test for object presentations and another for their descriptions. The presentation dump was literally tens of times slower! On paper, that sounds weird — both are just strings already pulled from the database at measurement time. My guess is it's down to typing: presentation strings can be unlimited length, unlike descriptions. So you get extra memory allocations, helper structures popping up, and bam — that's where the slowdown creeps in.</p>\n<p>P.S. I've jotted down some of these points myself before. Off the top of my head — I remember <a href=\"https://kostyanetsky.me/notes/is-ref-empty\" rel=\"noopener noreferrer\" target=\"_blank\">benchmarking</a> <code>ValueIsFilled()</code> and getting a nasty <a href=\"https://kostyanetsky.me/notes/method-with-surprise\" rel=\"noopener noreferrer\" target=\"_blank\">surprise</a> from the built‑in <code>FindByNumber()</code>.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "myth buster 27 jule 2025 · 1с i stumbled upon a hefty infostart article all about \"debunking myths\" around the platform. honestly, about half of it reads like a joke. it's like: hot off the press! crime, intrigue, investigations! file‑based infobase is faster than client-server! dcs is slower than a plain request! calling a server method on the server counts as a brand-new server call! ufo over red square! still, there are some genuinely interesting nuggets! for instance, i'd never heard the claim that cramming your code into one single line makes it run ten times faster. too bad you'd get your ass handed to you by the team for trying that kind of desperate swag before you even get to celebrate the speed boost. and let's be real — most enterprise app slowdowns usually come from totally different places. or take their speed comparison for dumping data into a table: one test for object presentations and another for their descriptions. the presentation dump was literally tens of times slower! on paper, that sounds weird — both are just strings already pulled from the database at measurement time. my guess is it's down to typing: presentation strings can be unlimited length, unlike descriptions. so you get extra memory allocations, helper structures popping up, and bam — that's where the slowdown creeps in. p.s. i've jotted down some of these points myself before. off the top of my head — i remember benchmarking valueisfilled() and getting a nasty surprise from the built‑in findbynumber() .",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/delete-geometry\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Geometry Deletion\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>12 June 2025</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"3d\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">3D</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I figured out a cool trick for cutting off parts of an object when it intersects with something else. Like, in this gif, there’s a monkey head model in the center, and as a plane moves through it, the part that intersects just disappears.</p>\n<p><img alt=\"Demo\" src=\"https://kostyanetsky.me/notes/delete-geometry/demo.gif\"/></p>\n<p><a href=\"https://github.com/vkostyanetsky/3DPlayground/blob/main/Geometry%20Nodes/DeleteGeometry.blend\" rel=\"noopener noreferrer\" target=\"_blank\">The idea</a> is pretty simple: you shrink the geometry of the \"cutter\" object down to a cube, get its min and max coordinates along each axis, and then for every point on the object you're trimming, you check whether it falls within that range. If it does — boom, it gets deleted.</p>\n<p>There are tons of ways you could use this. For example, I used it to automatically trim parts of decorative music staff lines on a wall so they wouldn't go across a doorway.</p>\n<p><img alt=\"Example\" src=\"https://kostyanetsky.me/notes/delete-geometry/case.jpg\"/></p>\n<p>Sure, you could do it by hand, without geometry nodes, but that would kill flexibility. If the wall size, door size, or the angle of the lines changes — you'd have to redo everything from scratch.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "geometry deletion 12 june 2025 · 3d i figured out a cool trick for cutting off parts of an object when it intersects with something else. like, in this gif, there’s a monkey head model in the center, and as a plane moves through it, the part that intersects just disappears. the idea is pretty simple: you shrink the geometry of the \"cutter\" object down to a cube, get its min and max coordinates along each axis, and then for every point on the object you're trimming, you check whether it falls within that range. if it does — boom, it gets deleted. there are tons of ways you could use this. for example, i used it to automatically trim parts of decorative music staff lines on a wall so they wouldn't go across a doorway. sure, you could do it by hand, without geometry nodes, but that would kill flexibility. if the wall size, door size, or the angle of the lines changes — you'd have to redo everything from scratch.",
    "tags": [
      "3d"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/no\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                No\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>11 June 2025</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p><img alt=\"No\" src=\"https://kostyanetsky.me/notes/no/no.jpg\"/></p>\n<p>This is the message the current platform throws up when you try to connect to an offline server cluster. I do appreciate minimalism in interfaces, of course, but this is definitely over the top.</p>\n<p>What's more, the platform is installed with only a single language pack (English) and even launched with a hard override to \"Ven VLen\", yet somehow the native birches still manage to sprout up. Maybe the C++ library that fires off the message (DataExchangeTcpClientImpl.cpp) is looking at the OS language (Russian) in my case — hard to say.</p>\n<p>Anyway, I can't shake the Bugs Bunny vibes every time I see that dialog box.</p>\n<p><img alt=\"No\" src=\"https://kostyanetsky.me/notes/no/bugs-bunny.png\"/></p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "no 11 june 2025 · 1с work this is the message the current platform throws up when you try to connect to an offline server cluster. i do appreciate minimalism in interfaces, of course, but this is definitely over the top. what's more, the platform is installed with only a single language pack (english) and even launched with a hard override to \"ven vlen\", yet somehow the native birches still manage to sprout up. maybe the c++ library that fires off the message (dataexchangetcpclientimpl.cpp) is looking at the os language (russian) in my case — hard to say. anyway, i can't shake the bugs bunny vibes every time i see that dialog box.",
    "tags": [
      "1c",
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/hottabych\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                The Genie Problem\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>12 April 2025</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"3d\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">3D</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <blockquote>\n<p>Returning to Volka's room, the old man turned round slyly, snapped the fingers of his left hand, and there appeared on the wall over the aquarium an exact copy of the telephone hanging in the hall.</p>\n<p>\"Now you can talk to your friends as much as you like without leaving your\nown room.\"</p>\n<p>\"Golly, thanks a lot!\" Volka said gratefully. He removed the receiver, pressed it to his ear and listened. There was no dial tone.</p>\n<p>\"Hello! Hello!\" he shouted. He shook the receiver and then blew into it. Still, there was no dial tone.</p>\n<p>\"The phone's broken,\" he explained to Hottabych. \"Let's unscrew the receiver and see what's wrong.\"</p>\n<p>However, despite all his efforts, he could not unscrew it.</p>\n<p>\"It's made of the finest black marble,\" Hottabych boasted.</p>\n<p>\"Then there's nothing inside?\" Volka asked disappointedly.</p>\n<p>\"Why, is there supposed to be something inside this, too? Just like in a watch?\"</p>\n<p>\"Now I know why it doesn't work. You've only made a model of a telephone, without anything that's supposed to go inside it. But the insides are the most important part.\"</p>\n<p><em>\"The Old Genie Hottabych\", Lazar Lagin</em></p>\n</blockquote>\n<p>When I’m doing 3D modeling, I often feel like that genie. He also tried to mimic the shape of things and jazz them up, but always ended up failing ‘cause he hadn’t got a clue about what was inside.</p>\n<p>I’m just the same. For the past month, I’ve been putting the finishing touches on a model of a school music room, and guess what? I’ve learned more about how pianos work than I have in my whole life before. I could even give a quick lecture on heating systems in Russian schools — talking about sectional, panel, cast iron, and aluminum radiators, which types pop up most, the spacing between them, why you shouldn’t hook up three in a row, and so on.</p>\n<p>I read about this effect: like when you're drawing, say, samurai armor — you end up inadvertently learning heaps about the properties of leather, the different kinds of metal, and the whole tech stack of the samurai era. I never thought I'd run into that from day one — but hey, I think it's a good thing. It fires up your neural connections, broadens your view of the world, sparks your creativity, and all that jazz.</p>\n<p>Plus, it’s way more fun working on a model when you actually know what’s going on under the hood.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "the genie problem 12 april 2025 · 3d returning to volka's room, the old man turned round slyly, snapped the fingers of his left hand, and there appeared on the wall over the aquarium an exact copy of the telephone hanging in the hall. \"now you can talk to your friends as much as you like without leaving your own room.\" \"golly, thanks a lot!\" volka said gratefully. he removed the receiver, pressed it to his ear and listened. there was no dial tone. \"hello! hello!\" he shouted. he shook the receiver and then blew into it. still, there was no dial tone. \"the phone's broken,\" he explained to hottabych. \"let's unscrew the receiver and see what's wrong.\" however, despite all his efforts, he could not unscrew it. \"it's made of the finest black marble,\" hottabych boasted. \"then there's nothing inside?\" volka asked disappointedly. \"why, is there supposed to be something inside this, too? just like in a watch?\" \"now i know why it doesn't work. you've only made a model of a telephone, without anything that's supposed to go inside it. but the insides are the most important part.\" \"the old genie hottabych\", lazar lagin when i’m doing 3d modeling, i often feel like that genie. he also tried to mimic the shape of things and jazz them up, but always ended up failing ‘cause he hadn’t got a clue about what was inside. i’m just the same. for the past month, i’ve been putting the finishing touches on a model of a school music room, and guess what? i’ve learned more about how pianos work than i have in my whole life before. i could even give a quick lecture on heating systems in russian schools — talking about sectional, panel, cast iron, and aluminum radiators, which types pop up most, the spacing between them, why you shouldn’t hook up three in a row, and so on. i read about this effect: like when you're drawing, say, samurai armor — you end up inadvertently learning heaps about the properties of leather, the different kinds of metal, and the whole tech stack of the samurai era. i never thought i'd run into that from day one — but hey, i think it's a good thing. it fires up your neural connections, broadens your view of the world, sparks your creativity, and all that jazz. plus, it’s way more fun working on a model when you actually know what’s going on under the hood.",
    "tags": [
      "3d"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/easter-eggs\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Easter Eggs\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>6 April 2025</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p><img alt=\"Thank you, Mario!\" src=\"https://kostyanetsky.me/notes/easter-eggs/mario.jpg\"/></p>\n<p><img alt=\"Awaiting Signal\" src=\"https://kostyanetsky.me/notes/easter-eggs/mothership.jpg\"/></p>\n<p>A couple of Easter eggs hidden inside FirstBit ERP. They're tucked away for the developers: in the first case, users see just the form title and notification text, while in the second, they see the standard \"waiting for connection\" message.</p>\n<p>I like to add little things like this from time to time — it helps to keep things fun, even when the task isn’t the most exciting or I’m just feeling tired. If you haven’t checked out Bystronovsky’s \"<a href=\"https://collab.ldwg.ru/stressless-design\" rel=\"noopener noreferrer\" target=\"_blank\">Design Without Stress</a>\", you really should — no way I could explain it better myself.</p>\n<p>By the way, here’s another Easter egg! Not from our ERP this time, but from a new tool we’re making for automated database updates. We're building it just for ourselves, so we can joke around with the user a bit :)</p>\n<p><img alt=\"Nice try, Marty!\" src=\"https://kostyanetsky.me/notes/easter-eggs/marty.jpg\"/></p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "easter eggs 6 april 2025 · work a couple of easter eggs hidden inside firstbit erp. they're tucked away for the developers: in the first case, users see just the form title and notification text, while in the second, they see the standard \"waiting for connection\" message. i like to add little things like this from time to time — it helps to keep things fun, even when the task isn’t the most exciting or i’m just feeling tired. if you haven’t checked out bystronovsky’s \" design without stress \", you really should — no way i could explain it better myself. by the way, here’s another easter egg! not from our erp this time, but from a new tool we’re making for automated database updates. we're building it just for ourselves, so we can joke around with the user a bit :)",
    "tags": [
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/across-meeting\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                ERP Development In English\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>19 January 2025</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"english\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">English</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/mZwHTbu285A\" width=\"560\"></iframe>\n<p>Our lead developer recently shared some insights about our work — specifically, developing ERP systems on 1C for the UAE and, more recently, Saudi Arabia. The session was hosted by the online English school Across, so the audience was spot-on: Russian-speaking folks interested in building careers and exploring international markets.</p>\n<p>Overall, it turned out pretty cool, especially as a language practice. Just a reminder: learning foreign languages is still one of the best ways to give your brain a workout, and it’s also super accessible. There’s no shortage of resources, communities, and interest-based clubs out there — you just need the motivation :)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "erp development in english 19 january 2025 · work english our lead developer recently shared some insights about our work — specifically, developing erp systems on 1c for the uae and, more recently, saudi arabia. the session was hosted by the online english school across, so the audience was spot-on: russian-speaking folks interested in building careers and exploring international markets. overall, it turned out pretty cool, especially as a language practice. just a reminder: learning foreign languages is still one of the best ways to give your brain a workout, and it’s also super accessible. there’s no shortage of resources, communities, and interest-based clubs out there — you just need the motivation :)",
    "tags": [
      "work",
      "english"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/safe-code\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Mysterious Code\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>18 January 2025</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"georgia\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Georgia</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p><img alt=\"Code\" src=\"https://kostyanetsky.me/notes/safe-code/code.jpg\"/></p>\n<p>Somewhere on the streets of Tbilisi. As a big fan of the Dishonored series, I just couldn’t walk past this. I’m sure there’s a safe nearby that this code unlocks!</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "mysterious code 18 january 2025 · georgia videogames somewhere on the streets of tbilisi. as a big fan of the dishonored series, i just couldn’t walk past this. i’m sure there’s a safe nearby that this code unlocks!",
    "tags": [
      "georgia",
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/negativity\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Go Away, Negativity!\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>29 December 2024</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"georgia\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Georgia</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"meanwhile\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Meanwhile</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p><img alt=\"Chichilaki\" src=\"https://kostyanetsky.me/notes/negativity/chichilaki.jpg\"/></p>\n<p>The white things in the background are called chichilaki. It’s a kind of Georgian New Year tree (in practice, it’s finely shaved hazelnut branches). It’s believed to absorb all the accumulated negativity, so after the holidays, it’s supposed to be burned (along with the negativity).</p>\n<p>Turns out, that last part is a bit of a challenge. The local police (and especially the fire department) view this good old tradition with suspicion — and understandably so (a chichilaki can be as tall as a person, making it quite the torch). So, we were advised to simply toss the \"negativity-charged\" chichilaki into the trash to avoid getting fresh troubles. Or donate it to the zoo — apparently, the animals play with them and even use them to clean their teeth.</p>\n<p>That last part made me smile. Getting rid of negativity with the help of cats — what a surprise. Big, toothy cats, sure, but still cats!</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "go away, negativity! 29 december 2024 · georgia meanwhile the white things in the background are called chichilaki. it’s a kind of georgian new year tree (in practice, it’s finely shaved hazelnut branches). it’s believed to absorb all the accumulated negativity, so after the holidays, it’s supposed to be burned (along with the negativity). turns out, that last part is a bit of a challenge. the local police (and especially the fire department) view this good old tradition with suspicion — and understandably so (a chichilaki can be as tall as a person, making it quite the torch). so, we were advised to simply toss the \"negativity-charged\" chichilaki into the trash to avoid getting fresh troubles. or donate it to the zoo — apparently, the animals play with them and even use them to clean their teeth. that last part made me smile. getting rid of negativity with the help of cats — what a surprise. big, toothy cats, sure, but still cats!",
    "tags": [
      "georgia",
      "meanwhile"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/bit-of-surgery\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                A Little Bit Of Surgery\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>17 December 2024</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>A few years ago, I stumbled upon a story about a programmer who had to debug software controlling a surgical robot — right in the middle of an operation. That blew my mind, to be frank.</p>\n<p>Today, my colleague and I were fixing a 1C cluster with databases running on 1cFresh. After migrating it to a neighboring server, the thing suddenly started acting up. Long story short: trying to print a document would send the client app into its death throes.  </p>\n<p>While we were knee-deep in troubleshooting, I had this thought: sure, it doesn’t look as terrifying as debugging software that someone’s life literally depends on. But if you think about all the clients sitting on edge because their business is grinding to a halt... Well, who knows where the stress levels are higher?  </p>\n<p>P.S. Nerdy details for the curious. During the migration, the permissions for the server cache folder didn’t transfer properly. This led to a funny (well, not so funny) effect: the logs would happily land there, but session data wouldn’t.  </p>\n<p>So, when someone opened a print form, the configuration tried saving it to the storage, and rphost, in turn, attempted to shove it into the session cache. Here’s where things went sideways: the worker' process (probably) got slapped on the wrist by the OS. Due to (apparently) some funky file system event handling in the platform, the exception wasn’t caught, so the poor thing had no better idea than to kill the session. Naturally, this caused the client process to crash.  </p>\n<p>We fixed the permissions, rebooted the cluster, and voilà! The problem was gone.  </p>\n<p><img alt=\"End of Report\" src=\"https://kostyanetsky.me/notes/bit-of-surgery/report.jpeg\"/></p>\n<p>All other hypotheses — cluster manager acting up, lack of hardware resources, configuration bugs, client-side issues, broken security profiles, network problems between the client and server — got tossed out during the diagnostics process.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "a little bit of surgery 17 december 2024 · 1с work a few years ago, i stumbled upon a story about a programmer who had to debug software controlling a surgical robot — right in the middle of an operation. that blew my mind, to be frank. today, my colleague and i were fixing a 1c cluster with databases running on 1cfresh. after migrating it to a neighboring server, the thing suddenly started acting up. long story short: trying to print a document would send the client app into its death throes. while we were knee-deep in troubleshooting, i had this thought: sure, it doesn’t look as terrifying as debugging software that someone’s life literally depends on. but if you think about all the clients sitting on edge because their business is grinding to a halt... well, who knows where the stress levels are higher? p.s. nerdy details for the curious. during the migration, the permissions for the server cache folder didn’t transfer properly. this led to a funny (well, not so funny) effect: the logs would happily land there, but session data wouldn’t. so, when someone opened a print form, the configuration tried saving it to the storage, and rphost, in turn, attempted to shove it into the session cache. here’s where things went sideways: the worker' process (probably) got slapped on the wrist by the os. due to (apparently) some funky file system event handling in the platform, the exception wasn’t caught, so the poor thing had no better idea than to kill the session. naturally, this caused the client process to crash. we fixed the permissions, rebooted the cluster, and voilà! the problem was gone. all other hypotheses — cluster manager acting up, lack of hardware resources, configuration bugs, client-side issues, broken security profiles, network problems between the client and server — got tossed out during the diagnostics process.",
    "tags": [
      "1c",
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/vaporia\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Vaguely Familiar Logo\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>14 December 2024</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"ai\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">AI</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"georgia\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Georgia</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p><del>Meanwhile, OpenAI opened a branch in Tbilisi</del> Actually, they just sell vapes here, and the logo designer was probably inspired by clouds of steam. But every time I walk by, it still catches my eye :)</p>\n<p><img alt=\"Vaporia\" src=\"https://kostyanetsky.me/notes/vaporia/vaporia.jpg\"/></p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "vaguely familiar logo 14 december 2024 · ai georgia meanwhile, openai opened a branch in tbilisi actually, they just sell vapes here, and the logo designer was probably inspired by clouds of steam. but every time i walk by, it still catches my eye :)",
    "tags": [
      "ai",
      "georgia"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/creepy-graveyard\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Creepy Graveyard\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>26 November 2024</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"3d\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">3D</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Still learning 3D in my free time. Here's my first somewhat independent project after finishing a <a href=\"https://www.udemy.com/course/blender-environments-megacourse-create-3d-environments/\" rel=\"noopener noreferrer\" target=\"_blank\">course</a> recently.</p>\n<p><a href=\"https://kostyanetsky.me/notes/creepy-graveyard/creepy-graveyard.png\" rel=\"noopener noreferrer\" target=\"_blank\"><img alt=\"Creepy Graveyard\" src=\"https://kostyanetsky.me/notes/creepy-graveyard/creepy-graveyard.png\"/></a></p>\n<iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/mraGFR_Tr5k\" width=\"560\"></iframe>\n<p>Of course, there are plenty of issues: the models, the colors, the composition... Honestly, pretty much everything. Good thing the scene is set at night with fog, so it's easy to hide the worst spots. I wouldn't be surprised if the course creators picked this setting on purpose to keep beginners from getting too discouraged :)</p>\n<p>That said, I'm happy with the result. At this stage, perfectionism feels more like an enemy than a friend. And hey, it’s definitely better than my last attempt! Back then, I was totally green in Blender and scared to deviate even slightly from the instructor: ten minutes of watching, ten minutes of copying.</p>\n<p>That approach works at the very beginning, but it doesn't help you learn how to solve problems. This time, I watched a few lessons back-to-back for about an hour or two, then tried to figure things out on my own. I only went back to the videos when I was completely stuck. Feels like I’m actually retaining a lot more this way.</p>\n<p>Long story short, the thing is done. On to the next one!</p>\n<p>UPD: One of the founders of FlippedNormals recorded a <a href=\"https://www.youtube.com/watch?v=izkRFqBzya0\" rel=\"noopener noreferrer\" target=\"_blank\">video</a> with the same thoughts about training.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "creepy graveyard 26 november 2024 · 3d done still learning 3d in my free time. here's my first somewhat independent project after finishing a course recently. of course, there are plenty of issues: the models, the colors, the composition... honestly, pretty much everything. good thing the scene is set at night with fog, so it's easy to hide the worst spots. i wouldn't be surprised if the course creators picked this setting on purpose to keep beginners from getting too discouraged :) that said, i'm happy with the result. at this stage, perfectionism feels more like an enemy than a friend. and hey, it’s definitely better than my last attempt! back then, i was totally green in blender and scared to deviate even slightly from the instructor: ten minutes of watching, ten minutes of copying. that approach works at the very beginning, but it doesn't help you learn how to solve problems. this time, i watched a few lessons back-to-back for about an hour or two, then tried to figure things out on my own. i only went back to the videos when i was completely stuck. feels like i’m actually retaining a lot more this way. long story short, the thing is done. on to the next one! upd: one of the founders of flippednormals recorded a video with the same thoughts about training.",
    "tags": [
      "3d",
      "done"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/slack-summary\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Summary to Slack\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>10 November 2024</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"powershell\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Powershell</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I found a <a href=\"https://gist.github.com/vkostyanetsky/b0807f2df2501bbeeb97c95a977f3e23\" rel=\"noopener noreferrer\" target=\"_blank\">script</a> that I wrote a couple of years ago for our work GitLab. In short, we run our development repository through a barrage of tests on Vanessa daily, resulting in a nice report showing how many tests passed, which ones failed, the reasons for failures, and so on.</p>\n<p>The report needs to be analyzed regularly, at least at a glance. Of course, we haven’t seen fully \"green\" tests in a long time, and that’s expected: for example, in the case of interdependent development, commits can break the checked functionality, and the tests still need adjustments. However, keeping a pulse on it is still essential.</p>\n<p>To simplify this routine, I expanded the pipeline code a bit: after generating the report, GitLab first creates a brief summary (client type, database type, test statistics) and sends it to Slack.</p>\n<p><img alt=\"Report\" src=\"https://kostyanetsky.me/notes/slack-summary/report.jpg\"/></p>\n<p>As a bonus, it’s now easier to answer the philosophical question, \"who broke everything\". Most often, it’s the author of the first commit on which the Scenarios Failed metric in the screenshot above hit the ceiling :)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "summary to slack 10 november 2024 · work done powershell i found a script that i wrote a couple of years ago for our work gitlab. in short, we run our development repository through a barrage of tests on vanessa daily, resulting in a nice report showing how many tests passed, which ones failed, the reasons for failures, and so on. the report needs to be analyzed regularly, at least at a glance. of course, we haven’t seen fully \"green\" tests in a long time, and that’s expected: for example, in the case of interdependent development, commits can break the checked functionality, and the tests still need adjustments. however, keeping a pulse on it is still essential. to simplify this routine, i expanded the pipeline code a bit: after generating the report, gitlab first creates a brief summary (client type, database type, test statistics) and sends it to slack. as a bonus, it’s now easier to answer the philosophical question, \"who broke everything\". most often, it’s the author of the first commit on which the scenarios failed metric in the screenshot above hit the ceiling :)",
    "tags": [
      "work",
      "done",
      "powershell"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/butterfly\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Log &amp; Bug\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>12 October 2024</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"english\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">English</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I love digging into the origins of words from time to time. For example, \"log\" comes from maritime terminology and literally means a log: a wooden float attached to a rope, which was thrown overboard from a ship. The rope had knots tied at regular intervals, and by counting how many knots unwound in a certain amount of time, sailors could determine the speed of the ship.</p>\n<p>These measurements were recorded in the ship's journal, which was also called a log. Over time, the term started being used for any kind of record or journal of events, and in IT, the word got a second life :)</p>\n<p>Or take \"bug\" — well, you’ve probably heard about this one. A moth, which messed with a computer’s operation over seventy years ago, was documented in the log as \"the first actual case of a bug being found\". The insect gained a kind of digital immortality: now any mistake, especially in a program, is called a bug.</p>\n<p>(It’s just a pity that it wasn’t a prettier insect — like a butterfly, for instance? That would’ve added a touch of romance to our work)</p>\n<p>(Though, if you think about it... maybe \"bug\" isn’t such a bad option after all. \"Butterfly\" is a bit too long. Someone would’ve shortened it to \"butt\" and right now, we’d be fixing butts instead of bugs)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "log & bug 12 october 2024 · english i love digging into the origins of words from time to time. for example, \"log\" comes from maritime terminology and literally means a log: a wooden float attached to a rope, which was thrown overboard from a ship. the rope had knots tied at regular intervals, and by counting how many knots unwound in a certain amount of time, sailors could determine the speed of the ship. these measurements were recorded in the ship's journal, which was also called a log. over time, the term started being used for any kind of record or journal of events, and in it, the word got a second life :) or take \"bug\" — well, you’ve probably heard about this one. a moth, which messed with a computer’s operation over seventy years ago, was documented in the log as \"the first actual case of a bug being found\". the insect gained a kind of digital immortality: now any mistake, especially in a program, is called a bug. (it’s just a pity that it wasn’t a prettier insect — like a butterfly, for instance? that would’ve added a touch of romance to our work) (though, if you think about it... maybe \"bug\" isn’t such a bad option after all. \"butterfly\" is a bit too long. someone would’ve shortened it to \"butt\" and right now, we’d be fixing butts instead of bugs)",
    "tags": [
      "english"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/love\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                ChatGPT Mimicry\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>29 September 2024</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"ai\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">AI</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Colleagues are actively <a href=\"https://t.me/denissexy/8767\" rel=\"noopener noreferrer\" target=\"_blank\">experimenting</a> with o1-preview from OpenAI: the model turned out to be genuinely interesting. Unfortunately, tasks for it don’t come up too often — regular 4o handles most day-to-day stuff just fine. Bug-finding in code, analyzing medical tests in an unfamiliar language, or trying to recall the name of a childhood book with only a vague recollection of the plot — I can’t easily think of anything it wouldn’t handle.</p>\n<p>It’s always fascinating to see how the AI reasons, jokes, and generally tries to act human. I’d say it won’t pass the Turing test just yet, but every now and then, it comes eerily close.</p>\n<p><img alt=\"Carrot\" src=\"https://kostyanetsky.me/notes/love/carrot.jpg\"/> <img alt=\"Fists\" src=\"https://kostyanetsky.me/notes/love/fists.jpg\"/> <img alt=\"Jokes\" src=\"https://kostyanetsky.me/notes/love/joke.jpg\"/></p>\n<p>The answer below made me smile. Even leaving philosophy aside — looks like Skynet is off the table! :) Though, I’m afraid the future from the <a href=\"https://store.steampowered.com/app/282140/SOMA/\" rel=\"noopener noreferrer\" target=\"_blank\">SOMA</a> ending is still possible.</p>\n<p><img alt=\"Love\" src=\"https://kostyanetsky.me/notes/love/love.jpg\"/></p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "chatgpt mimicry 29 september 2024 · ai videogames colleagues are actively experimenting with o1-preview from openai: the model turned out to be genuinely interesting. unfortunately, tasks for it don’t come up too often — regular 4o handles most day-to-day stuff just fine. bug-finding in code, analyzing medical tests in an unfamiliar language, or trying to recall the name of a childhood book with only a vague recollection of the plot — i can’t easily think of anything it wouldn’t handle. it’s always fascinating to see how the ai reasons, jokes, and generally tries to act human. i’d say it won’t pass the turing test just yet, but every now and then, it comes eerily close. the answer below made me smile. even leaving philosophy aside — looks like skynet is off the table! :) though, i’m afraid the future from the soma ending is still possible.",
    "tags": [
      "ai",
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/thumbs-up\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Cool Stuff!\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>21 September 2024</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"meanwhile\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Meanwhile</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"georgia\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Georgia</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>A knock at the door. I open it, and there are two bright, twenty-something girls standing there. Flashing huge smiles at me, they start talking a mile a minute.</p>\n<p>The Georgian language is beautiful, but I haven’t gotten around to learning it yet. I sigh and suggest we switch to English or Russian.</p>\n<p>The girls frown a little. Then one of them digs into her bag, pulls out a flyer, points to it, gives me a thumbs up like, “cool stuff!” — and hands it to me. </p>\n<p>Then they laugh and run off.</p>\n<p>Take that, language barrier!</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "cool stuff! 21 september 2024 · meanwhile georgia a knock at the door. i open it, and there are two bright, twenty-something girls standing there. flashing huge smiles at me, they start talking a mile a minute. the georgian language is beautiful, but i haven’t gotten around to learning it yet. i sigh and suggest we switch to english or russian. the girls frown a little. then one of them digs into her bag, pulls out a flyer, points to it, gives me a thumbs up like, “cool stuff!” — and hands it to me. then they laugh and run off. take that, language barrier!",
    "tags": [
      "meanwhile",
      "georgia"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/pdf\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                About PDF\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>6 September 2024</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I get a complaint: a client can’t log into our customer portal. I check the database — the account is fine. So what’s the problem? I check the login and see a strange sight:</p>\n<p><img alt=\"PDF\" src=\"https://kostyanetsky.me/notes/pdf/pdf.png\"/></p>\n<p>Above is what the user entered, and below is what’s in the database. My first thought: how on earth did a document end up in the string? :D</p>\n<p>I’ll skip the further investigation. The key here is asking the right questions (otherwise, both Google and AI will be thinking about the popular file format, not the symbol). So, PDF in the context of Unicode means Pop Directional Formatting! It’s a symbol that controls text direction; it’s needed, for example, to properly render Arabic (which can contain both left-to-right and right-to-left text). The user obviously enters the login in RTL mode (or copies it from somewhere), and the portal does not understand this nuance.</p>\n<p>In short, a piece of cake. However, I’d like to point out that the PDF file format existed long before the PDF symbol. I get that these are different technical fields, and the developers probably didn’t see the overlapping terminology as a significant issue. But deep down, I’m sure someone was smirking, anticipating today’s confusion.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "about pdf 6 september 2024 · work i get a complaint: a client can’t log into our customer portal. i check the database — the account is fine. so what’s the problem? i check the login and see a strange sight: above is what the user entered, and below is what’s in the database. my first thought: how on earth did a document end up in the string? :d i’ll skip the further investigation. the key here is asking the right questions (otherwise, both google and ai will be thinking about the popular file format, not the symbol). so, pdf in the context of unicode means pop directional formatting! it’s a symbol that controls text direction; it’s needed, for example, to properly render arabic (which can contain both left-to-right and right-to-left text). the user obviously enters the login in rtl mode (or copies it from somewhere), and the portal does not understand this nuance. in short, a piece of cake. however, i’d like to point out that the pdf file format existed long before the pdf symbol. i get that these are different technical fields, and the developers probably didn’t see the overlapping terminology as a significant issue. but deep down, i’m sure someone was smirking, anticipating today’s confusion.",
    "tags": [
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/rapture\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Rapture\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>31 August 2024</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"pgsql\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">PostgreSQL</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"3d\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">3D</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I remember how amazed I was when I worked with window functions in PostgreSQL for the first time. You can adjust the calculation window for each row individually! And even segment it in advance. And all this is done natively, within a regular query, no extra add-ons needed. The standard aggregation with grouping and subqueries that I was used to in 1C suddenly turned into a pumpkin, just like Cinderella's carriage at midnight.</p>\n<p>Recently, I’ve been learning Blender, and I suddenly felt the same excitement for the same reason. The fact that you can freely move objects around the 3D Viewport with the Move command was clear from the start, fine. However, when it hit me that each object is a set of polygons, and that each polygon can also be moved freely, leading to a natural reshaping of the object's geometry — that’s when it really got me.</p>\n<p>Technology is amazing. Learning is awesome. Moments like these make me want to keep doing it over and over again :)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "rapture 31 august 2024 · 1с postgresql 3d i remember how amazed i was when i worked with window functions in postgresql for the first time. you can adjust the calculation window for each row individually! and even segment it in advance. and all this is done natively, within a regular query, no extra add-ons needed. the standard aggregation with grouping and subqueries that i was used to in 1c suddenly turned into a pumpkin, just like cinderella's carriage at midnight. recently, i’ve been learning blender, and i suddenly felt the same excitement for the same reason. the fact that you can freely move objects around the 3d viewport with the move command was clear from the start, fine. however, when it hit me that each object is a set of polygons, and that each polygon can also be moved freely, leading to a natural reshaping of the object's geometry — that’s when it really got me. technology is amazing. learning is awesome. moments like these make me want to keep doing it over and over again :)",
    "tags": [
      "1c",
      "pgsql",
      "3d"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/nowhere-to-run\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Nowhere To Run\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>31 August 2024</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"sport\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Sport</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Yesterday, I decided to take a break from work and go for a good run. I headed to the local park and did a few laps. Sitting there catching my breath, I grabbed my phone to switch the track, and there it was — a congratulations from my fitness tracker.</p>\n<p><img alt=\"Oh hi\" src=\"https://kostyanetsky.me/notes/nowhere-to-run/hi.jpg\"/></p>\n<p>So much for taking a break. The platform is watching you, %username%!</p>\n<p>P.S. But hey, now I’ve got a custom badge with the platform's logo. Gotta wear it with pride!</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "nowhere to run 31 august 2024 · 1с sport yesterday, i decided to take a break from work and go for a good run. i headed to the local park and did a few laps. sitting there catching my breath, i grabbed my phone to switch the track, and there it was — a congratulations from my fitness tracker. so much for taking a break. the platform is watching you, %username%! p.s. but hey, now i’ve got a custom badge with the platform's logo. gotta wear it with pride!",
    "tags": [
      "1c",
      "sport"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/system-analysis-course\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                System Analysis\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>25 August 2024</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"meanwhile\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Meanwhile</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Amidst all these pet projects and the August whirlwind, I forgot to mention that I completed a <a href=\"https://tough-dev.school/system-analysis\" rel=\"noopener noreferrer\" target=\"_blank\">course</a> on system analysis, which I recently <a href=\"https://kostyanetsky.me/notes/ibrahim\" rel=\"noopener noreferrer\" target=\"_blank\">wrote about</a>.</p>\n<p><img alt=\"Certificate\" src=\"https://kostyanetsky.me/notes/system-analysis-course/certificate.png\"/></p>\n<p>The course was structured so that throughout the sessions, we worked on the same system, identifying problems and gradually solving them. Before the first lesson, we were asked to design the initial version of the system so that we could compare it with the final version at the end of the course and assess our progress. Well, I’m happy with the comparison — I mean, it’s really hard to look at that first version without laughing (or crying) :)</p>\n<p>There wasn’t much time for reflection during the course, so I plan to continue working on the materials and turning the lessons into personal notes. It’s not that simple, given that our company deals heavily with solutions based on 1C:Enterprise, and much of my work involves various integrations of 1C instances with solutions outside the 1C stack.</p>\n<p>However, 1C instances can be considered as monoliths with a specific set of characteristics (depending on the tasks being solved within them), and in most other respects, communication with them doesn’t differ much from traditional solutions: the same events (like RabbitMQ), the same incoming/outgoing HTTP calls, the same instability metric, and so on.</p>\n<p>At this point, I’m definitely adopting (or have already adopted):</p>\n<ol>\n<li>Breaking down the technical specifications into numbered items (US-XXX) and storing them in one place with tags like \"updated at,\" \"canceled at,\" etc. This format seems quite effective.</li>\n<li>Maintaining an ADR (Architecture Decision Record). I’ve already implemented this, actually. However, it’s a bit concerning that some items occasionally get stored there that aren’t strictly architectural (e.g., logging principles for certain sections). Still, such things seem crucial for decision-making.</li>\n<li>Event Storming as a way to visualize business processes. I can’t say it’s a huge improvement over the patchwork we used before, but the result looks nice, and having a standard is better than having none.</li>\n<li>Application service diagrams with stickers indicating each service's characteristics. This is quite functional when you need to look at the project from a high level, and it’s not as dry as endless tables. That way, if the bus factor kicks in, the next person is more likely to notice these details.</li>\n<li>I want to work on BPMN and Activity Diagrams. I like the format, but so far, my attempts haven’t been satisfactory. I’ll keep trying.</li>\n<li>The concept of separating functionality to reduce dependencies unexpectedly resonated with me. It used to seem simpler to combine similar functionalities to reduce code volume, but now it seems this approach increases complexity and internal cohesion, potentially causing more harm than good.</li>\n</ol>\n<p>Overall, I’m very satisfied with the course. It seems like the best investment of effort over the past year. If you’re thinking of taking it but are unsure — go for it :)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "system analysis 25 august 2024 · done meanwhile amidst all these pet projects and the august whirlwind, i forgot to mention that i completed a course on system analysis, which i recently wrote about . the course was structured so that throughout the sessions, we worked on the same system, identifying problems and gradually solving them. before the first lesson, we were asked to design the initial version of the system so that we could compare it with the final version at the end of the course and assess our progress. well, i’m happy with the comparison — i mean, it’s really hard to look at that first version without laughing (or crying) :) there wasn’t much time for reflection during the course, so i plan to continue working on the materials and turning the lessons into personal notes. it’s not that simple, given that our company deals heavily with solutions based on 1c:enterprise, and much of my work involves various integrations of 1c instances with solutions outside the 1c stack. however, 1c instances can be considered as monoliths with a specific set of characteristics (depending on the tasks being solved within them), and in most other respects, communication with them doesn’t differ much from traditional solutions: the same events (like rabbitmq), the same incoming/outgoing http calls, the same instability metric, and so on. at this point, i’m definitely adopting (or have already adopted): breaking down the technical specifications into numbered items (us-xxx) and storing them in one place with tags like \"updated at,\" \"canceled at,\" etc. this format seems quite effective. maintaining an adr (architecture decision record). i’ve already implemented this, actually. however, it’s a bit concerning that some items occasionally get stored there that aren’t strictly architectural (e.g., logging principles for certain sections). still, such things seem crucial for decision-making. event storming as a way to visualize business processes. i can’t say it’s a huge improvement over the patchwork we used before, but the result looks nice, and having a standard is better than having none. application service diagrams with stickers indicating each service's characteristics. this is quite functional when you need to look at the project from a high level, and it’s not as dry as endless tables. that way, if the bus factor kicks in, the next person is more likely to notice these details. i want to work on bpmn and activity diagrams. i like the format, but so far, my attempts haven’t been satisfactory. i’ll keep trying. the concept of separating functionality to reduce dependencies unexpectedly resonated with me. it used to seem simpler to combine similar functionalities to reduce code volume, but now it seems this approach increases complexity and internal cohesion, potentially causing more harm than good. overall, i’m very satisfied with the course. it seems like the best investment of effort over the past year. if you’re thinking of taking it but are unsure — go for it :)",
    "tags": [
      "done",
      "meanwhile"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/first-pancake\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                My First Approach to Gen Models\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>25 August 2024</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"ai\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">AI</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I needed to quickly generate some images for a pet project. I grabbed the first tool at hand — <a href=\"https://huggingface.co/hakurei/waifu-diffusion\" rel=\"noopener noreferrer\" target=\"_blank\">WaifuDiffusion</a> (a clone of <a href=\"https://huggingface.co/stabilityai/stable-diffusion-3-medium\" rel=\"noopener noreferrer\" target=\"_blank\">StableDiffusion</a>, but trained specifically on anime and manga).</p>\n<p>Prompt: </p>\n<blockquote>\n<p>A dimly lit, empty classroom with faintly visible music notes on the chalkboard. A young woman with long blue hair and blue eyes, is standing behind the teacher's desk, packing her things into a small handbag. She looks tired and worried.</p>\n</blockquote>\n<p>Result:</p>\n<p><img alt=\"Young woman\" src=\"https://kostyanetsky.me/notes/first-pancake/young-woman.jpg\"/></p>\n<p>It seems like a great opportunity to talk about how far neural networks have come! The model instantly got the idea and decided to introduce into the scene... Hmm... A wise bearded man? Or perhaps it was suggesting that I should learn to appreciate unexpected surprises more?</p>\n<p>I think WaifuDiffusion just wanted to brighten my mood. They say laughter extends life. In any case, I consider the first generation a success! But it definitely needs some calibration :)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "my first approach to gen models 25 august 2024 · ai i needed to quickly generate some images for a pet project. i grabbed the first tool at hand — waifudiffusion (a clone of stablediffusion , but trained specifically on anime and manga). prompt: a dimly lit, empty classroom with faintly visible music notes on the chalkboard. a young woman with long blue hair and blue eyes, is standing behind the teacher's desk, packing her things into a small handbag. she looks tired and worried. result: it seems like a great opportunity to talk about how far neural networks have come! the model instantly got the idea and decided to introduce into the scene... hmm... a wise bearded man? or perhaps it was suggesting that i should learn to appreciate unexpected surprises more? i think waifudiffusion just wanted to brighten my mood. they say laughter extends life. in any case, i consider the first generation a success! but it definitely needs some calibration :)",
    "tags": [
      "ai"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/obsidian-day-switcher\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Day Switcher for Obsidian\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>17 August 2024</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"obsidian\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Obsidian</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"javascript\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Javascript</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>When you're actively working in daily notes in Obsidian, you often want to quickly peek into the note from yesterday or, conversely, for tomorrow. For example, when sorting today's tasks and wanting to postpone some of them for tomorrow.</p>\n<p>I'm too lazy to type the exact date every time, so I wrote a <a href=\"https://gist.github.com/vkostyanetsky/6c70f00b817157f9b6e62ee89bade853\" rel=\"noopener noreferrer\" target=\"_blank\">script</a> for this. It takes the note's date from its title (expects it to be in <abbr title=\"2024-08-17, for example.\">ISO 8601</abbr> format) and generates a tooltip with links to yesterday's and tomorrow's notes. The day of the week is displayed in the header for additional convenience:</p>\n<p><img alt=\"Example\" src=\"https://kostyanetsky.me/notes/obsidian-day-switcher/callout.jpg\"/></p>\n<p>The script is written for the <a href=\"https://github.com/blacksmithgu/obsidian-dataview\" rel=\"noopener noreferrer\" target=\"_blank\">Dataview</a> plugin since I'm already using it for other tasks. In general, it can easily be adapted for <a href=\"https://github.com/SilentVoid13/Templater\" rel=\"noopener noreferrer\" target=\"_blank\">Templater</a>, <a href=\"https://github.com/saml-dev/obsidian-custom-js\" rel=\"noopener noreferrer\" target=\"_blank\">CustomJS</a>, or even turned into a standalone plugin (again, I'm too lazy to bother with that).</p>\n<p>If you plan to use it:</p>\n<ol>\n<li>In the noteLink() function, specify the path to your daily notes folder (currently, the path contains a 'Days' folder for example; I mean the path is indicated in the Daily notes/Template file location setting);</li>\n<li>Include the script in your daily note template (Daily notes/Template file location setting).</li>\n</ol>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "day switcher for obsidian 17 august 2024 · obsidian javascript when you're actively working in daily notes in obsidian, you often want to quickly peek into the note from yesterday or, conversely, for tomorrow. for example, when sorting today's tasks and wanting to postpone some of them for tomorrow. i'm too lazy to type the exact date every time, so i wrote a script for this. it takes the note's date from its title (expects it to be in iso 8601 format) and generates a tooltip with links to yesterday's and tomorrow's notes. the day of the week is displayed in the header for additional convenience: the script is written for the dataview plugin since i'm already using it for other tasks. in general, it can easily be adapted for templater , customjs , or even turned into a standalone plugin (again, i'm too lazy to bother with that). if you plan to use it: in the notelink() function, specify the path to your daily notes folder (currently, the path contains a 'days' folder for example; i mean the path is indicated in the daily notes/template file location setting); include the script in your daily note template (daily notes/template file location setting).",
    "tags": [
      "obsidian",
      "javascript"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/clementine\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Clementine Will Remember That\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>9 August 2024</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"ai\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">AI</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>When ChatGPT remembers a detail from a conversation for the future, it displays a \"Memory updated\" badge above its response. Like, got it:</p>\n<p><img alt=\"Memory updated\" src=\"https://kostyanetsky.me/notes/clementine/memory-updated.jpg\"/></p>\n<p>Every time I see it, it makes me smile because it instantly reminds me of <a href=\"https://store.steampowered.com/app/207610/The_Walking_Dead/\" rel=\"noopener noreferrer\" target=\"_blank\">The Walking Dead</a> and the meme “Clementine will remember that”. In that game, the characters surrounding the protagonist would remember his decisions, and it would influence their behavior. This included Clementine — a girl the main character saved at the beginning of the game.</p>\n<p><img alt=\"Clementine will remember that\" src=\"https://kostyanetsky.me/notes/clementine/remember.jpeg\"/></p>\n<p>In the game, this mechanic was honestly implemented in a rather mediocre way, but when it comes to ChatGPT — it works. The attention to detail is so strong that sometimes I have to remind myself that I’m talking to a language model, not an extraordinarily attentive and very knowledgeable person.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "clementine will remember that 9 august 2024 · ai videogames when chatgpt remembers a detail from a conversation for the future, it displays a \"memory updated\" badge above its response. like, got it: every time i see it, it makes me smile because it instantly reminds me of the walking dead and the meme “clementine will remember that”. in that game, the characters surrounding the protagonist would remember his decisions, and it would influence their behavior. this included clementine — a girl the main character saved at the beginning of the game. in the game, this mechanic was honestly implemented in a rather mediocre way, but when it comes to chatgpt — it works. the attention to detail is so strong that sometimes i have to remind myself that i’m talking to a language model, not an extraordinarily attentive and very knowledgeable person.",
    "tags": [
      "ai",
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/make-my-window-a-door\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Make Window a Door\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>4 August 2024</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"english\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">English</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I was listening to <a href=\"https://open.spotify.com/track/33MnSYLvtOrbj5zwfioEiH?si=19fec91123394826\" rel=\"noopener noreferrer\" target=\"_blank\">Be Somebody</a> by Thousand Foot Krutch yesterday and suddenly caught the phrase “you made my window a door”. I used to think that this idiom is rather funny: like, damn, the idea to replace a window with a door somehow sounds unsafe. You can fall from the tenth floor, you know?</p>\n<p>At the same time, the song is wonderful and not about that at all! I got curious and started digging around to find out what meaning native speakers put into it.</p>\n<p>It turned out that it is actually about two different positions: a passive observer and an active participant. That is, if there is a window in front of you, you only look through it at something or someone. But you can open the door and finally do something. Hence, “when I could only see the floor you made my window a door” means something like “when my hands dropped, you helped me up”.</p>\n<p>By the way, there is another similar idiom — “to be a better window than a door”. The abstraction here is the same: if a person is like a window, and not a door — they hardly ever let people close to them, making passive observers even out of people very close to them.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "make window a door 4 august 2024 · english i was listening to be somebody by thousand foot krutch yesterday and suddenly caught the phrase “you made my window a door”. i used to think that this idiom is rather funny: like, damn, the idea to replace a window with a door somehow sounds unsafe. you can fall from the tenth floor, you know? at the same time, the song is wonderful and not about that at all! i got curious and started digging around to find out what meaning native speakers put into it. it turned out that it is actually about two different positions: a passive observer and an active participant. that is, if there is a window in front of you, you only look through it at something or someone. but you can open the door and finally do something. hence, “when i could only see the floor you made my window a door” means something like “when my hands dropped, you helped me up”. by the way, there is another similar idiom — “to be a better window than a door”. the abstraction here is the same: if a person is like a window, and not a door — they hardly ever let people close to them, making passive observers even out of people very close to them.",
    "tags": [
      "english"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/yaga\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Yaga\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>29 Jule 2024</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"meanwhile\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Meanwhile</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I accidentally remembered that six months ago, one of my colleagues threw a link to <a href=\"https://yaga.rt.ru\" rel=\"noopener noreferrer\" target=\"_blank\">Yaga</a> into the work chat. It is a future (I guess) competitor of JIRA in Russia. Judging by the URL, the guys from Rostelecom are developing it. Here my curiosity was awakened — how is it there, did it take off?</p>\n<p>Alas, but looks like nope. At least, the landing page has the “leave a request and wait for a response beep” vibe. Only a simplified version is available for smaller teams that I can't touch as well: being not in Russia and clicking on the “Start using” button leads me to a ban. Welp, next time, maybe.</p>\n<p>The naming is clickbait, of course. But I’m not sure if it’s really a good choice. For example, “1C” may provoke forced jokes (One s! Odin's ass! Haha), but if you google this, you are more likely to find information about the platform or at least the vendor. Not a bunch of articles, fan fiction, fan art, or video games, as in the case of Yaga.</p>\n<p>Moreover, some wrong associations come to mind. What does Baba Yaga reminds you of? A hut on chicken legs? It looks like an initially <a href=\"https://kostyanetsky.me/notes/evolution\" rel=\"noopener noreferrer\" target=\"_blank\">poorly designed</a> application that was somehow remade right on production. A mortar? A crutch? Damn, if you look at it from the point of view of programmers — these are not red flags, but real scarlet banners fluttering in the wind :)</p>\n<p>One more thing: I'm probably spoiled, but when I hear the word “Yaga”, the first thing that pops into my head is not a powerful witch from Slavic folklore, but <a href=\"https://en.wikipedia.org/wiki/Jaguar_(drink)\" rel=\"noopener noreferrer\" target=\"_blank\">disgusting booze</a> from the 2000s.</p>\n<blockquote>\n<p>Now Baba with Yaga are no longer redneck, but a patriotic programmer!</p>\n<p>― colleague</p>\n</blockquote>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "yaga 29 jule 2024 · meanwhile 1с i accidentally remembered that six months ago, one of my colleagues threw a link to yaga into the work chat. it is a future (i guess) competitor of jira in russia. judging by the url, the guys from rostelecom are developing it. here my curiosity was awakened — how is it there, did it take off? alas, but looks like nope. at least, the landing page has the “leave a request and wait for a response beep” vibe. only a simplified version is available for smaller teams that i can't touch as well: being not in russia and clicking on the “start using” button leads me to a ban. welp, next time, maybe. the naming is clickbait, of course. but i’m not sure if it’s really a good choice. for example, “1c” may provoke forced jokes (one s! odin's ass! haha), but if you google this, you are more likely to find information about the platform or at least the vendor. not a bunch of articles, fan fiction, fan art, or video games, as in the case of yaga. moreover, some wrong associations come to mind. what does baba yaga reminds you of? a hut on chicken legs? it looks like an initially poorly designed application that was somehow remade right on production. a mortar? a crutch? damn, if you look at it from the point of view of programmers — these are not red flags, but real scarlet banners fluttering in the wind :) one more thing: i'm probably spoiled, but when i hear the word “yaga”, the first thing that pops into my head is not a powerful witch from slavic folklore, but disgusting booze from the 2000s. now baba with yaga are no longer redneck, but a patriotic programmer! ― colleague",
    "tags": [
      "meanwhile",
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/ibrahim\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Ibrahim\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>7 Jule 2024</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"meanwhile\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Meanwhile</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Recently, I took a <a href=\"https://tough-dev.school/system-analysis\" rel=\"noopener noreferrer\" target=\"_blank\">system analysis course</a>, which was taught by the guys from the “School of Strong Programmers”. I have two goals:</p>\n<ol>\n<li>First, I need to calibrate. I handle a dozen tech stacks that have different tool sets and concepts of beauty. This, of course, is a great development, but it distorts the perspective: I am drawn to solve the next problem, starting with minor technical things, simply because I am good at it. Meanwhile, if you look at the problem a little from above, think about it, and draw some diagrams, you will get a better or at least more meaningful solution. So I want to convince myself to do this more often.</li>\n<li>Secondly, I need to learn how to write clear documentation for developers. In practice, I rarely get around to it, and when I do, I don’t have time to keep it up-to-date. In short, time is short, and I would at least like to do the paperwork somehow so that the reader grasps the idea more quickly.</li>\n</ol>\n<p>The course itself is made in the shape of iterations: every week you are told about the same project that the main character of the story, Ibrahim, is trying to design (that’s him on the landing page in the link above). Every week, there are more and more problems with this project, and the solutions that dude comes up with become more and more intricate.</p>\n<p>In addition, students are regularly assigned homework for another project with similar issues. It needs to be analyzed and designed again and again, taking into account the new knowledge and limitations gained over the past week.</p>\n<p>So far, it's going great. The main concern is a lack of time. I read relatively slowly and try to take notes on the most captivating or simply difficult passages. Meanwhile, there is a lot of material in the course, and all of it is interesting, even if you count only the main part of the content.</p>\n<p>In addition, if you go to the additional links, you can even take away the saints. It takes six months, no less. I tried to read them at least diagonally, but it turned out to be a damn bad idea. I ended up seeing the main character of the course in a street advertisement :)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "ibrahim 7 jule 2024 · meanwhile recently, i took a system analysis course , which was taught by the guys from the “school of strong programmers”. i have two goals: first, i need to calibrate. i handle a dozen tech stacks that have different tool sets and concepts of beauty. this, of course, is a great development, but it distorts the perspective: i am drawn to solve the next problem, starting with minor technical things, simply because i am good at it. meanwhile, if you look at the problem a little from above, think about it, and draw some diagrams, you will get a better or at least more meaningful solution. so i want to convince myself to do this more often. secondly, i need to learn how to write clear documentation for developers. in practice, i rarely get around to it, and when i do, i don’t have time to keep it up-to-date. in short, time is short, and i would at least like to do the paperwork somehow so that the reader grasps the idea more quickly. the course itself is made in the shape of iterations: every week you are told about the same project that the main character of the story, ibrahim, is trying to design (that’s him on the landing page in the link above). every week, there are more and more problems with this project, and the solutions that dude comes up with become more and more intricate. in addition, students are regularly assigned homework for another project with similar issues. it needs to be analyzed and designed again and again, taking into account the new knowledge and limitations gained over the past week. so far, it's going great. the main concern is a lack of time. i read relatively slowly and try to take notes on the most captivating or simply difficult passages. meanwhile, there is a lot of material in the course, and all of it is interesting, even if you count only the main part of the content. in addition, if you go to the additional links, you can even take away the saints. it takes six months, no less. i tried to read them at least diagonally, but it turned out to be a damn bad idea. i ended up seeing the main character of the course in a street advertisement :)",
    "tags": [
      "meanwhile"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/singapore-doll\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Singapore Doll\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>22 June 2024</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Is it possible to love your country's currency more than the people of Saudi Arabia? It is a rhetorical question: the answer is no.</p>\n<p>I'm currently looking at the <a href=\"https://www.sama.gov.sa/en-US/FinExc/Pages/Currency.aspx\" rel=\"noopener noreferrer\" target=\"_blank\">website</a> of their central bank. The country's currency is the Saudi riyal, and the Central Bank sets rates for other currencies in relation to it. Consequently, there is no point in asking the bank for the rate of the riyal itself. However, the website calmly suggests choosing it twice:</p>\n<p><img alt=\"The selection form\" src=\"https://kostyanetsky.me/notes/singapore-doll/cb.png\"/></p>\n<p>For your information, the first option breaks the website, and the second one pedantically displays “1” for any date.</p>\n<p>Another funny thing: colleagues seem to store currency names as 14-character strings. Otherwise, it is difficult to explain why, according to their data, Canada uses not the Canadian dollar but CANADIAN DOLLA, and Romania uses mysterious NEW ROMANIAN L instead of its leu. However, these two are rather lucky: Singapore, for example, conducts payments in SINGAPORE DOLL.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "singapore doll 22 june 2024 · work is it possible to love your country's currency more than the people of saudi arabia? it is a rhetorical question: the answer is no. i'm currently looking at the website of their central bank. the country's currency is the saudi riyal, and the central bank sets rates for other currencies in relation to it. consequently, there is no point in asking the bank for the rate of the riyal itself. however, the website calmly suggests choosing it twice: for your information, the first option breaks the website, and the second one pedantically displays “1” for any date. another funny thing: colleagues seem to store currency names as 14-character strings. otherwise, it is difficult to explain why, according to their data, canada uses not the canadian dollar but canadian dolla, and romania uses mysterious new romanian l instead of its leu. however, these two are rather lucky: singapore, for example, conducts payments in singapore doll.",
    "tags": [
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/data-history-duplication\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Non-Unique Metadata\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>8 June 2024</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"pgsql\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">PostgreSQL</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"mssql\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">MS SQL</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Once again, I came across a nasty bug when the platform broke the data history metadata table.</p>\n<p>Outwardly, it looks like this: you update the database configuration, and when you try to restructure, the error “The data history metadata table contains duplicate records. Delete the duplicate records” pops up. The platform does not offer any clear way to find such records.</p>\n<p><img alt=\"The data history metadata table contains duplicate records. Delete the duplicate records\" src=\"https://kostyanetsky.me/notes/data-history-duplication/error.png\"/></p>\n<p>The problem can be solved at the database level. The table referenced by the error is _DataHistoryMetadata. It contains metadata versions of each object for which data history is being maintained. This allows the platform to understand what attributes the object had at any point in time if the data history is maintained for the object.</p>\n<p>How does it work? Well, when the list of an object’s attributes changes (for example, an attribute was added to the catalog), the platform writes its metadata: specifically, it adds a new entry to _DataHistoryMetadata and stores in it the current list of object attributes, as well as the version number of this list (for example, when history is enabled for an object, the first version of metadata is saved, when adding some attribute, the second version is saved, and so on).</p>\n<p>The platform also puts a mark in the created record that this particular version of the object is the most actual, and then removes this mark from the version that was marked as actual before.</p>\n<p>So, the problem is that the platform sometimes forgets to take the last step, and two versions appear in the table at once, marked as current. The Designer understands this but cannot do anything.</p>\n<p>The solution follows from the algorithm above: you need to find conflicting versions and revoke the mark of actuality from the one that is older. It is better to use queries: data history is often enabled for a bunch of objects, and the list of their attributes is constantly changing — in general, there will be so many versions in the table that the devil will break his leg.</p>\n<p>If you also encountered this problem and are therefore reading this text, you can use the <a href=\"https://gist.github.com/vkostyanetsky/6496c67e2b2fd3d064c4cafd16da0b79\" rel=\"noopener noreferrer\" target=\"_blank\">queries</a> that I wrote:</p>\n<ol>\n<li>get-issues.sql checks that there is an issue: it looks for metadata versions that are also marked as actual.</li>\n<li>fix-issues.sql removes the actuality mark from those versions that are actually outdated.</li>\n</ol>\n<p>Both queries are written for Microsoft SQL Server. If you use PostgreSQL, then <a href=\"https://gist.github.com/vkostyanetsky/75665ce04247e900743604eb386d1889\" rel=\"noopener noreferrer\" target=\"_blank\">here they are</a> for this DBMS.</p>\n<p>The queries will require a slight adaptation to a specific database: they use the _fld626 field, which is the data separator. In your _DataHistoryMetadata table, this field may be called differently, so you need to update its name to the current one. It will be difficult to make a mistake — the table has only one field with the _fld prefix.</p>\n<p>P.S. Please bear in mind that the license agreement prohibits access to the database, bypassing the platform’s tools, so you can only go for such experiments if there are no other options left.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "non-unique metadata 8 june 2024 · 1с postgresql ms sql once again, i came across a nasty bug when the platform broke the data history metadata table. outwardly, it looks like this: you update the database configuration, and when you try to restructure, the error “the data history metadata table contains duplicate records. delete the duplicate records” pops up. the platform does not offer any clear way to find such records. the problem can be solved at the database level. the table referenced by the error is _datahistorymetadata. it contains metadata versions of each object for which data history is being maintained. this allows the platform to understand what attributes the object had at any point in time if the data history is maintained for the object. how does it work? well, when the list of an object’s attributes changes (for example, an attribute was added to the catalog), the platform writes its metadata: specifically, it adds a new entry to _datahistorymetadata and stores in it the current list of object attributes, as well as the version number of this list (for example, when history is enabled for an object, the first version of metadata is saved, when adding some attribute, the second version is saved, and so on). the platform also puts a mark in the created record that this particular version of the object is the most actual, and then removes this mark from the version that was marked as actual before. so, the problem is that the platform sometimes forgets to take the last step, and two versions appear in the table at once, marked as current. the designer understands this but cannot do anything. the solution follows from the algorithm above: you need to find conflicting versions and revoke the mark of actuality from the one that is older. it is better to use queries: data history is often enabled for a bunch of objects, and the list of their attributes is constantly changing — in general, there will be so many versions in the table that the devil will break his leg. if you also encountered this problem and are therefore reading this text, you can use the queries that i wrote: get-issues.sql checks that there is an issue: it looks for metadata versions that are also marked as actual. fix-issues.sql removes the actuality mark from those versions that are actually outdated. both queries are written for microsoft sql server. if you use postgresql, then here they are for this dbms. the queries will require a slight adaptation to a specific database: they use the _fld626 field, which is the data separator. in your _datahistorymetadata table, this field may be called differently, so you need to update its name to the current one. it will be difficult to make a mistake — the table has only one field with the _fld prefix. p.s. please bear in mind that the license agreement prohibits access to the database, bypassing the platform’s tools, so you can only go for such experiments if there are no other options left.",
    "tags": [
      "1c",
      "pgsql",
      "mssql"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/uuid-main-issue\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                The Main Issue of UUID\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>2 June 2024</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"pgsql\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">PostgreSQL</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I came across a <a href=\"https://www.cybertec-postgresql.com/en/unexpected-downsides-of-uuid-keys-in-postgresql/\" rel=\"noopener noreferrer\" target=\"_blank\">good text</a> about the main problem that UUID brings with itself. It is also relevant for 1C: all platform reference objects (catalog items, documents, and so on) have their own UUID. They are stored in a database, actively used in searches, and, of course, extensively indexed (with all the ensuing consequences).</p>\n<p>1C tries to suppress the issue by creating consistent UUIDs. It may not be perfect, but overall, this thing works, and the indexes turn out to be more or less compact. In general, the community has been talking about this for a long time: for example, the old <a href=\"https://forum.mista.ru/topic.php?id=801986\" rel=\"noopener noreferrer\" target=\"_blank\">thread on Mista</a> (though the conversation here quickly turned into a chicken coop, and out of six dozen comments, at most one and a half are on point).</p>\n<p>P.S. The remark about the probability of creating two identical UUIDs in one database made me laugh:</p>\n<blockquote>\n<p>As an aside, for those worried about collisions: you should take up the lottery, since winning the jackpot twice in a row is a much more likely outcome than your system ever generating two identical random 128 bit numbers.</p>\n</blockquote>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "the main issue of uuid 2 june 2024 · 1с postgresql i came across a good text about the main problem that uuid brings with itself. it is also relevant for 1c: all platform reference objects (catalog items, documents, and so on) have their own uuid. they are stored in a database, actively used in searches, and, of course, extensively indexed (with all the ensuing consequences). 1c tries to suppress the issue by creating consistent uuids. it may not be perfect, but overall, this thing works, and the indexes turn out to be more or less compact. in general, the community has been talking about this for a long time: for example, the old thread on mista (though the conversation here quickly turned into a chicken coop, and out of six dozen comments, at most one and a half are on point). p.s. the remark about the probability of creating two identical uuids in one database made me laugh: as an aside, for those worried about collisions: you should take up the lottery, since winning the jackpot twice in a row is a much more likely outcome than your system ever generating two identical random 128 bit numbers.",
    "tags": [
      "1c",
      "pgsql"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/last-resort\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Screenshot With Sound\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>20 May 2024</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"meanwhile\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Meanwhile</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Recently, we came up with the idea of dividing the internal ERP into several independent parts and organizing data exchange between them. We discussed the outlines of the task, the exchange model, transport, and roughly agreed on deadlines — in general, we did what we usually do.</p>\n<p>I created a task for the stuff. We give them names in English, so I wrote in the first wording that came to mind.</p>\n<p><img alt=\"Cut My Life Into Pieces\" src=\"https://kostyanetsky.me/notes/last-resort/last-resort.png\"/></p>\n<p>The title came out with sound. Okay, this one is funny, but what should I call it then? Well, let it be Distributed Internal ERP. Abbreviated... DIE?</p>\n<p>I let the first one be. Long live Papa Roach :)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "screenshot with sound 20 may 2024 · work meanwhile recently, we came up with the idea of dividing the internal erp into several independent parts and organizing data exchange between them. we discussed the outlines of the task, the exchange model, transport, and roughly agreed on deadlines — in general, we did what we usually do. i created a task for the stuff. we give them names in english, so i wrote in the first wording that came to mind. the title came out with sound. okay, this one is funny, but what should i call it then? well, let it be distributed internal erp. abbreviated... die? i let the first one be. long live papa roach :)",
    "tags": [
      "work",
      "meanwhile"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/obsidian-timesheet\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Timesheet for Obsidian\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>12 May 2024</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"javascript\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Javascript</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"obsidian\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Obsidian</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I made another <a href=\"https://obsidian.md\" rel=\"noopener noreferrer\" target=\"_blank\">Obsidian</a> plugin, this time for <a href=\"https://help.obsidian.md/Plugins/Daily+notes\" rel=\"noopener noreferrer\" target=\"_blank\">daily notes</a>. Draws a nice report: what tasks I worked on, what I did, and how much time I spent. I tried to describe how it works in the <a href=\"https://github.com/vkostyanetsky/ObsidianTimesheet\" rel=\"noopener noreferrer\" target=\"_blank\">repository</a>; will be glad if it is useful to someone else!</p>\n<p>Funny thing: for the examples in the README, I used issue numbers FBI-1, FBI-2, and so on. This isn't a reference to the X-Files or Twin Peaks — it's just the first thing that came to mind. The fact is that our internal project for the development of FirstBit ERP is called First Bit Internal, abbreviated as FBI. The main pool of tasks we work on lives in it.</p>\n<p>We’re already used to it, but our colleagues outside the company always find our screenshots from JIRA or SonarQube amusing. Did you imagine that you were Agent Cooper? Well, I almost don’t even need to :)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "timesheet for obsidian 12 may 2024 · done javascript obsidian work i made another obsidian plugin, this time for daily notes . draws a nice report: what tasks i worked on, what i did, and how much time i spent. i tried to describe how it works in the repository ; will be glad if it is useful to someone else! funny thing: for the examples in the readme, i used issue numbers fbi-1, fbi-2, and so on. this isn't a reference to the x-files or twin peaks — it's just the first thing that came to mind. the fact is that our internal project for the development of firstbit erp is called first bit internal, abbreviated as fbi. the main pool of tasks we work on lives in it. we’re already used to it, but our colleagues outside the company always find our screenshots from jira or sonarqube amusing. did you imagine that you were agent cooper? well, i almost don’t even need to :)",
    "tags": [
      "done",
      "javascript",
      "obsidian",
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/payment-terms\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                One Query More, One Query Less\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>5 May 2024</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"optimization\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Optimization</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>One query more, one query less — it doesn’t matter, people often say. Like, the main thing is that the query must be cheap: it doesn’t read too much, uses index, and so on.</p>\n<p>This point of view makes sense, but mindlessly machine-gunning queries is a dangerous idea. Even if everything looks good at the moment, the system may change slightly in the future. And then a seemingly harmless patch will burn your production server to the ground right on Friday.</p>\n<p>Let me tell you about one example from recent practice. There is an ERP that contains a table with payment stages for customer orders. One of these stages is prepayment; until it is received, you cannot create an order for the supplier.</p>\n<p>Technically, the purchase order simply stores the customer's order ID; if the field is filled (that is, if the purchase order is created by the customer's order), ERP needs to read the payment stages of the customer's order and understand whether the purchase can be made.</p>\n<p>It sounds elementary, but monitoring shows that the operation is slow as hell and eats up memory as if it were the last time. </p>\n<p>Welp, let's go find out. We saw something like this:</p>\n<p><img alt=\"825701 records\" src=\"https://kostyanetsky.me/notes/payment-terms/payment-terms.png\"/></p>\n<p>What do we have here? Instead of taking two or three stages of payment for an order, ERP reads almost a million! How this could be possible?</p>\n<p>It turned out that the problem was with those purchase orders that were not related to customer orders at all. The developer considered that the logic for them could not be changed: the customer’s order ID is empty and the query will not find payment stages for this ID. This means that the same result will be obtained as if there were no query at all. And an extra query — well... One query more, one query less... Not a big deal.</p>\n<p>The deal turned out to be big. The table of payment stages contained data not only for customer orders, but also for other types of documents. Their customer order ID field was empty. As a result, ERP, when trying to find payment stages using an empty customer order ID, unexpectedly found them.</p>\n<p>The query read about a gigabyte of data and wrote it to a temporary table. A gigabyte was read, then a gigabyte was written... History hit the disk, the DBMS buffer cache, and other components of the system (even the network, which had to drive this gigabyte back and forth without any benefit).</p>\n<p>Do you know what I think? If the result of a query is known, there is probably no need to do it after all.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "one query more, one query less 5 may 2024 · 1с optimization one query more, one query less — it doesn’t matter, people often say. like, the main thing is that the query must be cheap: it doesn’t read too much, uses index, and so on. this point of view makes sense, but mindlessly machine-gunning queries is a dangerous idea. even if everything looks good at the moment, the system may change slightly in the future. and then a seemingly harmless patch will burn your production server to the ground right on friday. let me tell you about one example from recent practice. there is an erp that contains a table with payment stages for customer orders. one of these stages is prepayment; until it is received, you cannot create an order for the supplier. technically, the purchase order simply stores the customer's order id; if the field is filled (that is, if the purchase order is created by the customer's order), erp needs to read the payment stages of the customer's order and understand whether the purchase can be made. it sounds elementary, but monitoring shows that the operation is slow as hell and eats up memory as if it were the last time. welp, let's go find out. we saw something like this: what do we have here? instead of taking two or three stages of payment for an order, erp reads almost a million! how this could be possible? it turned out that the problem was with those purchase orders that were not related to customer orders at all. the developer considered that the logic for them could not be changed: the customer’s order id is empty and the query will not find payment stages for this id. this means that the same result will be obtained as if there were no query at all. and an extra query — well... one query more, one query less... not a big deal. the deal turned out to be big. the table of payment stages contained data not only for customer orders, but also for other types of documents. their customer order id field was empty. as a result, erp, when trying to find payment stages using an empty customer order id, unexpectedly found them. the query read about a gigabyte of data and wrote it to a temporary table. a gigabyte was read, then a gigabyte was written... history hit the disk, the dbms buffer cache, and other components of the system (even the network, which had to drive this gigabyte back and forth without any benefit). do you know what i think? if the result of a query is known, there is probably no need to do it after all.",
    "tags": [
      "1c",
      "optimization"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/obsidian-foodiary\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Foodiary for Obsidian\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>14 April 2024</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"javascript\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Javascript</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"obsidian\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Obsidian</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Following my <a href=\"https://kostyanetsky.me/notes/obsidian-fastimer\" rel=\"noopener noreferrer\" target=\"_blank\">first</a> plugin for Obsidian, I released <a href=\"https://github.com/vkostyanetsky/ObsidianFoodiary\" rel=\"noopener noreferrer\" target=\"_blank\">the second one</a> a couple of weeks ago. Counts calories, proteins, fats, and carbohydrates in food. It helps not to overeat out of nowhere — it’s rather difficult to judge by eye how much you’ve eaten today and whether you can afford that donut.</p>\n<p>In short, a useful thing if you:</p>\n<ol>\n<li>Fatty (like me)</li>\n<li>Want to stop being fatty (like me)</li>\n<li>You take notes in Obsidian (like me) 🙂</li>\n</ol>\n<p>In fact, there is a lot of software for this task. I tried some of them but was dissatisfied: it either has terrible design, is bugged, or is constantly trying to sell me a monthly subscription. In short, it's more annoying than helpful. I wanted something native, built into the usual routine; so, if routine settles in Obsidian, then the solution seems to suggest itself.</p>\n<p>You can install the plugin directly from the program — the developers have already approved it. Otherwise, everything is simple: you write in a daily note what you ate and how much it weighed, and you receive a simple table sorted by calories with numbers by proteins, fats, and carbohydrates.</p>\n<p>There are examples in the repository at the link above.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "foodiary for obsidian 14 april 2024 · done javascript obsidian following my first plugin for obsidian, i released the second one a couple of weeks ago. counts calories, proteins, fats, and carbohydrates in food. it helps not to overeat out of nowhere — it’s rather difficult to judge by eye how much you’ve eaten today and whether you can afford that donut. in short, a useful thing if you: fatty (like me) want to stop being fatty (like me) you take notes in obsidian (like me) 🙂 in fact, there is a lot of software for this task. i tried some of them but was dissatisfied: it either has terrible design, is bugged, or is constantly trying to sell me a monthly subscription. in short, it's more annoying than helpful. i wanted something native, built into the usual routine; so, if routine settles in obsidian, then the solution seems to suggest itself. you can install the plugin directly from the program — the developers have already approved it. otherwise, everything is simple: you write in a daily note what you ate and how much it weighed, and you receive a simple table sorted by calories with numbers by proteins, fats, and carbohydrates. there are examples in the repository at the link above.",
    "tags": [
      "done",
      "javascript",
      "obsidian"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/callouts-for-fastimer\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Fastimer&#39;s Look\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>9 Marth 2024</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"obsidian\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Obsidian</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"javascript\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Javascript</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I just implemented <a href=\"https://kostyanetsky.me/notes/obsidian-fastimer\" rel=\"noopener noreferrer\" target=\"_blank\">Fastimer</a>'s rendering through callouts: this is an Obsidian mechanic that allows you to turn an ordinary quote into a designed block of text that attracts the reader's attention. You've probably seen blocks like “advice” and “pay attention” — these are callouts.</p>\n<p>You can read more in <a href=\"https://help.obsidian.md/Editing+and+formatting/Callouts\" rel=\"noopener noreferrer\" target=\"_blank\">Obsidian Help</a>. </p>\n<p>As a result, the timer now takes on a different color depending on the state: blue for an active fast, green for completed, and red for a failed one.</p>\n<p>In addition, I made the text more compact and worked on styling:</p>\n<p><img alt=\"Example\" src=\"https://kostyanetsky.me/notes/callouts-for-fastimer/example.png\"/></p>\n<p>It turned out to be way nicer than the block of preformatted text as it was before.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "fastimer's look 9 marth 2024 · obsidian javascript i just implemented fastimer 's rendering through callouts: this is an obsidian mechanic that allows you to turn an ordinary quote into a designed block of text that attracts the reader's attention. you've probably seen blocks like “advice” and “pay attention” — these are callouts. you can read more in obsidian help . as a result, the timer now takes on a different color depending on the state: blue for an active fast, green for completed, and red for a failed one. in addition, i made the text more compact and worked on styling: it turned out to be way nicer than the block of preformatted text as it was before.",
    "tags": [
      "obsidian",
      "javascript"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/small-pleasures\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Small Pleasures\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>6 Marth 2024</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"meanwhile\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Meanwhile</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"georgia\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Georgia</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I was wasting time at the supermarket checkout: it’s evening, there aren’t many customers anymore, but the elderly cashier is clearly tired and isn’t in too much of a hurry. Standing in front a tall, gray-haired man with a luxurious beard whiles away the time studying the rack of chocolates next to the cash register.</p>\n<p>Finally, he takes a Snickers, twirls it in his hands thoughtfully. Then he pushes two more towards himself and, broadly, with visible pleasure, smiles into his mustache :)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "small pleasures 6 marth 2024 · meanwhile georgia i was wasting time at the supermarket checkout: it’s evening, there aren’t many customers anymore, but the elderly cashier is clearly tired and isn’t in too much of a hurry. standing in front a tall, gray-haired man with a luxurious beard whiles away the time studying the rack of chocolates next to the cash register. finally, he takes a snickers, twirls it in his hands thoughtfully. then he pushes two more towards himself and, broadly, with visible pleasure, smiles into his mustache :)",
    "tags": [
      "meanwhile",
      "georgia"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/not-only-everything\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Not Only Everything\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>25 February 2024</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>This commentary in the documentation for the WriteJSON() method of XDTOSerializer is enviably deep, I would say:</p>\n<p><img alt=\"Not only everyhing\" src=\"https://kostyanetsky.me/notes/not-only-everything/write-json.jpg\"/></p>\n<p>Well, yes. The method dumps data into JSON, not XML. So it’s hard to argue that not all value types can be packed into XML using it (to be precise, none). Such a pity that there is an obvious copy-paste from the help for WriteXML() further in the text! I almost decided that it was an Easter egg from the developers :)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "not only everything 25 february 2024 · 1с this commentary in the documentation for the writejson() method of xdtoserializer is enviably deep, i would say: well, yes. the method dumps data into json, not xml. so it’s hard to argue that not all value types can be packed into xml using it (to be precise, none). such a pity that there is an obvious copy-paste from the help for writexml() further in the text! i almost decided that it was an easter egg from the developers :)",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/obsidian-fastimer\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Fastimer for Obsidian\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>13 February 2024</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"javascript\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Javascript</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"obsidian\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Obsidian</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>The <a href=\"https://obsidian.md/\" rel=\"noopener noreferrer\" target=\"_blank\">Obsidian</a> developers recently approved one of my TypeScript pet plugins — <a href=\"https://github.com/vkostyanetsky/ObsidianFastimer\" rel=\"noopener noreferrer\" target=\"_blank\">Fastimer</a>. It is an intermittent fasting tracker that adds a new code block to your vault: you enter the start date of the fasting interval and get the date of its finish, the time until this moment, and a list of the zones to be passed.</p>\n<p>The block shows an up-to-date picture every time Obsidian renders it, which means you can monitor your progress in real time. When a fasting window ends, you can enter the end date, and the code block will show the result: whether you managed to achieve the goal, how much time you fasted beyond the plan, and so on.</p>\n<p>I'm thinking of improving the visual part a bit (currently, everything is displayed as plain text without any design). In addition, I want to add functions for calculating statistics so that you can draw cute graphs like <a href=\"https://charts.phib.ro/Meta/Charts/Charts+Documentation\" rel=\"noopener noreferrer\" target=\"_blank\">Charts </a> and show achievements. I already made the same in implementing the same <a href=\"https://github.com/vkostyanetsky/Fastimer\" rel=\"noopener noreferrer\" target=\"_blank\">application</a> in Python, but I’m unlikely to return to it — it’s easier to solve the task in the Obsidian vault than to roll out an additional utility.</p>\n<p>In short, check out the plugin! :) You can find it by name (Fastimer) in the Obsidian library, or install it manually from the repository.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "fastimer for obsidian 13 february 2024 · done javascript obsidian the obsidian developers recently approved one of my typescript pet plugins — fastimer . it is an intermittent fasting tracker that adds a new code block to your vault: you enter the start date of the fasting interval and get the date of its finish, the time until this moment, and a list of the zones to be passed. the block shows an up-to-date picture every time obsidian renders it, which means you can monitor your progress in real time. when a fasting window ends, you can enter the end date, and the code block will show the result: whether you managed to achieve the goal, how much time you fasted beyond the plan, and so on. i'm thinking of improving the visual part a bit (currently, everything is displayed as plain text without any design). in addition, i want to add functions for calculating statistics so that you can draw cute graphs like charts and show achievements. i already made the same in implementing the same application in python, but i’m unlikely to return to it — it’s easier to solve the task in the obsidian vault than to roll out an additional utility. in short, check out the plugin! :) you can find it by name (fastimer) in the obsidian library, or install it manually from the repository.",
    "tags": [
      "done",
      "javascript",
      "obsidian"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/do-not\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Do? Do Not?\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>14 January 2024</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"english\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">English</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Among our projects, we have one where two systems are communicating with each other: ERP and CRM. Data exchange is done well: a push'n'pull server has been set up, subscriptions to events have been registered, a REST API has been implemented, and so on. There are many other fascinating technical details, but I'm not talking about that now.</p>\n<p>The exchange has various logic chains inside. For instance, if a new company appears in CRM, it sends the data to ERP. The other day, a problem appeared: a company was not sent from the CRM, no matter how many times you tried to write it. So we went to investigate, suspecting the worst: CRM is written in PHP (nothing personal; it’s just not our technical stack), and there’s a lot of different legacy stuff there. It's easier to shoot yourself in the foot than to blow your nose.</p>\n<p>However, it didn't take much digging. We opened the company’s page in CRM and saw that he had the “Do Not Export To ERP” checkbox, which, in fact, blocked the sending. A manager made an obvious mistake.</p>\n<p>Should we uncheck the box and close the ticket?</p>\n<p><img alt=\"Well yes, but actually no\" src=\"https://kostyanetsky.me/notes/do-not/actually.jpg\"/></p>\n<p>This will solve the problem with that particular company, but not the reason it appeared. It is actually in the interface, specifically in the name of the option: “do not” is used, which is advisable to avoid due to the fact that it is more difficult for users to read the wording correctly. By the way, this also applies to a simple “do”.</p>\n<p>It is often difficult for programmers to understand why this is so: we are used to instantly calculating Boolean expressions in our heads, and variations like “not (not true)” are commonplace for us. But people with a different background can get confused. Just a little, but sometimes this is enough for them to perceive “do not export” as “do export” in the heat of the day, click the option, and move on.</p>\n<p>To sum up, the solution is to rename the checkbox. “Disable Export” or “Stop Export” are both fine, for example. “Prohibit Export” also comes to mind, but it’s more about interpersonal relationships, and in general, a ban on doing something does not mean that it won’t be done :)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "do? do not? 14 january 2024 · work english among our projects, we have one where two systems are communicating with each other: erp and crm. data exchange is done well: a push'n'pull server has been set up, subscriptions to events have been registered, a rest api has been implemented, and so on. there are many other fascinating technical details, but i'm not talking about that now. the exchange has various logic chains inside. for instance, if a new company appears in crm, it sends the data to erp. the other day, a problem appeared: a company was not sent from the crm, no matter how many times you tried to write it. so we went to investigate, suspecting the worst: crm is written in php (nothing personal; it’s just not our technical stack), and there’s a lot of different legacy stuff there. it's easier to shoot yourself in the foot than to blow your nose. however, it didn't take much digging. we opened the company’s page in crm and saw that he had the “do not export to erp” checkbox, which, in fact, blocked the sending. a manager made an obvious mistake. should we uncheck the box and close the ticket? this will solve the problem with that particular company, but not the reason it appeared. it is actually in the interface, specifically in the name of the option: “do not” is used, which is advisable to avoid due to the fact that it is more difficult for users to read the wording correctly. by the way, this also applies to a simple “do”. it is often difficult for programmers to understand why this is so: we are used to instantly calculating boolean expressions in our heads, and variations like “not (not true)” are commonplace for us. but people with a different background can get confused. just a little, but sometimes this is enough for them to perceive “do not export” as “do export” in the heat of the day, click the option, and move on. to sum up, the solution is to rename the checkbox. “disable export” or “stop export” are both fine, for example. “prohibit export” also comes to mind, but it’s more about interpersonal relationships, and in general, a ban on doing something does not mean that it won’t be done :)",
    "tags": [
      "work",
      "english"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/last-meth\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Last Meth\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>17 December 2023</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I'm digging into the code of an external component for 1C platform, published by its developers as an example. The good thing is: well, it can be compiled and if you tweak it a little — it does the job.</p>\n<p>As for other things, there are a lot of bruh moments. For example, the project can't be opened in modern Visual Studio (you need to specify CMake manually). The code is quite sloppy; there is no documentation, comments, or formatting. Long story short: I believe, it can be difficult for a developer without solid experience in C++ to get the hang of this.</p>\n<p>Was a bit amused by the naming in the code below:</p>\n<pre><code>long CAddInNative::FindMethod(const WCHAR_T* wsMethodName)\n{ \n    long plMethodNum = -1;\n    wchar_t* name = 0;\n\n    ::convFromShortWchar(&amp;name, wsMethodName);\n\n    plMethodNum = findName(g_MethodNames, name, eMethLast);\n\n    if (plMethodNum == -1)\n        plMethodNum = findName(g_MethodNamesRu, name, eMethLast);\n\n    delete[] name;\n\n    return plMethodNum;\n}\n</code></pre>\n<p>I see here the inexplicable love for abbreviations. What made the author name the variable “eMethLast”, not “eMethodLast”? They already created \"wsMethodName\" and \"plMethodNum\", after all.</p>\n<p>Perhaps this is an Easter egg with a reference to Breaking Bad. Then I like it for sure :)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "last meth 17 december 2023 · 1с i'm digging into the code of an external component for 1c platform, published by its developers as an example. the good thing is: well, it can be compiled and if you tweak it a little — it does the job. as for other things, there are a lot of bruh moments. for example, the project can't be opened in modern visual studio (you need to specify cmake manually). the code is quite sloppy; there is no documentation, comments, or formatting. long story short: i believe, it can be difficult for a developer without solid experience in c++ to get the hang of this. was a bit amused by the naming in the code below: long caddinnative::findmethod(const wchar_t* wsmethodname) { long plmethodnum = -1; wchar_t* name = 0; ::convfromshortwchar(&name, wsmethodname); plmethodnum = findname(g_methodnames, name, emethlast); if (plmethodnum == -1) plmethodnum = findname(g_methodnamesru, name, emethlast); delete[] name; return plmethodnum; } i see here the inexplicable love for abbreviations. what made the author name the variable “emethlast”, not “emethodlast”? they already created \"wsmethodname\" and \"plmethodnum\", after all. perhaps this is an easter egg with a reference to breaking bad. then i like it for sure :)",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/wrong-freeway-entrance\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Wrong Freeway Entrance\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>14 November 2023</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"code-smell\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Code Smell</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <blockquote>\n<p>Have you ever taken the wrong freeway entrance? You need to drive to the next exit to turn around, but you hate every inch of travel because you're going away from your goal.</p>\n<p><em>― Andy Weir, \"The Martian\"</em></p>\n</blockquote>\n<p>Programmers have exactly the same emotions when they spend a long time working on something. They suddenly realize that part of it should be designed differently. Moreover, this is exactly what you have to do since it solves several problems at once. This is where technical debt is born. </p>\n<p>However, right now you don’t change anything but continue to work with the part of the code that already exists. After all, you are professional, and you have a release date! You have to make it on time and then pay the debt, but you hate every inch of code you write because you're going away from your goal.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "wrong freeway entrance 14 november 2023 · code smell have you ever taken the wrong freeway entrance? you need to drive to the next exit to turn around, but you hate every inch of travel because you're going away from your goal. ― andy weir, \"the martian\" programmers have exactly the same emotions when they spend a long time working on something. they suddenly realize that part of it should be designed differently. moreover, this is exactly what you have to do since it solves several problems at once. this is where technical debt is born. however, right now you don’t change anything but continue to work with the part of the code that already exists. after all, you are professional, and you have a release date! you have to make it on time and then pay the debt, but you hate every inch of code you write because you're going away from your goal.",
    "tags": [
      "code-smell"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/how-to-be-a-hero\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Everyday Heroism\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>24 September 2023</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Some time ago, I was setting up <a href=\"https://swagger.io\" rel=\"noopener noreferrer\" target=\"_blank\">Swagger</a> for the internal API. While I was fiddling around, it became clear that some functionality did not need to be included in the documentation. I was looking for a way to do this without crutches and came across a funny <a href=\"https://github.com/tiangolo/full-stack-fastapi-couchbase/issues/10\" rel=\"noopener noreferrer\" target=\"_blank\">question</a> on GitHub.</p>\n<p>What's funny, you ask? Well, I involuntarily remembered <a href=\"https://forum.mista.ru\" rel=\"noopener noreferrer\" target=\"_blank\">Mista</a>. Among 1C developers, this is synonymous with the word “toxicity”: if you ask anything there, you get a bucket of slop by the collar instead of an answer. Here, of course, everything is not so neglected, but holy crap! These persistent guys who referring to the 14-page manual made me laugh a lot.</p>\n<p>One thing is good: by the end of the thread, there appeared a brave rebel who just answered the question. They, like, named the required parameter for a FastAPI method's decorator, which is not supposed to be shown in the documentation. No links — could you imagine?</p>\n<p>Not all heroes wear capes, I would say.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "everyday heroism 24 september 2023 · 1с work some time ago, i was setting up swagger for the internal api. while i was fiddling around, it became clear that some functionality did not need to be included in the documentation. i was looking for a way to do this without crutches and came across a funny question on github. what's funny, you ask? well, i involuntarily remembered mista . among 1c developers, this is synonymous with the word “toxicity”: if you ask anything there, you get a bucket of slop by the collar instead of an answer. here, of course, everything is not so neglected, but holy crap! these persistent guys who referring to the 14-page manual made me laugh a lot. one thing is good: by the end of the thread, there appeared a brave rebel who just answered the question. they, like, named the required parameter for a fastapi method's decorator, which is not supposed to be shown in the documentation. no links — could you imagine? not all heroes wear capes, i would say.",
    "tags": [
      "1c",
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/crossed\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Romania&#39;s Feature\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>30 August 2023</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"meanwhile\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Meanwhile</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Making a password recover function via SMS for our customer portal. Got to the Twilio <a href=\"https://support.twilio.com/hc/en-us/articles/223133767-International-support-for-Alphanumeric-Sender-ID\" rel=\"noopener noreferrer\" target=\"_blank\">documentation</a> related to <a href=\"https://www.twilio.com/docs/glossary/what-alphanumeric-sender-id\" rel=\"noopener noreferrer\" target=\"_blank\">alphanumeric sender ID</a> support in different countries; this feature allows you to send messages so that the recipient sees not the sender's number but something meaningful (a company name, for example).</p>\n<p>The feature is regulated differently everywhere: in some countries it just works, but in others registration is possible or even required.</p>\n<p>Well, let's take a look:</p>\n<p><img alt=\"Screenshot\" src=\"https://kostyanetsky.me/notes/crossed/twilio.png\"/></p>\n<p>🤔</p>\n<ul>\n<li>Portugal: yes</li>\n<li>Puerto Rico: no</li>\n<li>Qatar: yes (with registration)</li>\n<li>Reunion: yes</li>\n<li>Romania: yes (with registration) (but be afraid of Dracula)</li>\n</ul>\n<p>I don’t know how else I can explain this cemetery.</p>\n<p>UPD: Found the answer. Grave crosses mean you have to pay $700 to register.</p>\n<p>To be frank, I like the explanation about Dracula much more.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "romania's feature 30 august 2023 · meanwhile work making a password recover function via sms for our customer portal. got to the twilio documentation related to alphanumeric sender id support in different countries; this feature allows you to send messages so that the recipient sees not the sender's number but something meaningful (a company name, for example). the feature is regulated differently everywhere: in some countries it just works, but in others registration is possible or even required. well, let's take a look: 🤔 portugal: yes puerto rico: no qatar: yes (with registration) reunion: yes romania: yes (with registration) (but be afraid of dracula) i don’t know how else i can explain this cemetery. upd: found the answer. grave crosses mean you have to pay $700 to register. to be frank, i like the explanation about dracula much more.",
    "tags": [
      "meanwhile",
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/fastimer-1-3-1\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                New Fastimer\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>23 August 2023</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"python\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Python</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Released a new <a href=\"https://github.com/vkostyanetsky/Fastimer/releases/tag/v1.3.1\" rel=\"noopener noreferrer\" target=\"_blank\">version</a> of my console timer for <a href=\"https://en.wikipedia.org/wiki/Intermittent_fasting\" rel=\"noopener noreferrer\" target=\"_blank\">intermittent fasting</a>. I wrote this app about a year ago, when I was once again upset by the <a href=\"https://www.zerolongevity.com/\" rel=\"noopener noreferrer\" target=\"_blank\">Zero</a> application for Android: some very primitive functions (like viewing a specific interval) did not work. Oh my gosh, guys, you had one job!</p>\n<p>The main difference between 1.3.1 and 1.2.3 is that the console menu has been cut to hell in favor of the good old arguments and options. The menu concept looks convenient only if an application has few features. However, as soon as you take a step forward, the need to answer a list of questions each time you need something starts to irritate you.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "new fastimer 23 august 2023 · done python released a new version of my console timer for intermittent fasting . i wrote this app about a year ago, when i was once again upset by the zero application for android: some very primitive functions (like viewing a specific interval) did not work. oh my gosh, guys, you had one job! the main difference between 1.3.1 and 1.2.3 is that the console menu has been cut to hell in favor of the good old arguments and options. the menu concept looks convenient only if an application has few features. however, as soon as you take a step forward, the need to answer a list of questions each time you need something starts to irritate you.",
    "tags": [
      "done",
      "python"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/this-is-the-way\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                This Is the Way\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>17 Jule 2023</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>A little existential despair from the Syntax Assistant, in case you were somehow short of it:</p>\n<p><img alt=\"An exception is generated\" src=\"https://kostyanetsky.me/notes/this-is-the-way/delete-messages.png\"/></p>\n<p>This is the help for the integration service channel manager’s DeleteMessages() method. Seriously, I get what they meant: all integration service methods throw exceptions if called in a session with data separators enabled. The documentation carefully mentions this for every method, so apparently part of the sentence went missing here. The English documentation for this method, for example, is fine.</p>\n<p>It still looks funny. Reminded me of an old meme:</p>\n<p><img alt=\"An exception is generated\" src=\"https://kostyanetsky.me/notes/this-is-the-way/bees.jpeg\"/></p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "this is the way 17 jule 2023 · 1с a little existential despair from the syntax assistant, in case you were somehow short of it: this is the help for the integration service channel manager’s deletemessages() method. seriously, i get what they meant: all integration service methods throw exceptions if called in a session with data separators enabled. the documentation carefully mentions this for every method, so apparently part of the sentence went missing here. the english documentation for this method, for example, is fine. it still looks funny. reminded me of an old meme:",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/do-you-speak-english\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Do you speak English?\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>14 May 2023</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>The repository login form of the current platform (8.3.22.1923, to be precise) launched with the English interface:</p>\n<p><img alt=\"Login Form\" src=\"https://kostyanetsky.me/notes/do-you-speak-english/login-form.png\"/></p>\n<p>You had one job, literally.</p>\n<p>I heard some rumors that development of the Designer was stopped largely due to the monstrous amount of technical debt that slows down any new features. But here are interface glitches right on one of the first application windows! Curious how it got through the build tests.</p>\n<p>Maybe they don't exist at all.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "do you speak english? 14 may 2023 · 1с the repository login form of the current platform (8.3.22.1923, to be precise) launched with the english interface: you had one job, literally. i heard some rumors that development of the designer was stopped largely due to the monstrous amount of technical debt that slows down any new features. but here are interface glitches right on one of the first application windows! curious how it got through the build tests. maybe they don't exist at all.",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/going-postal\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Going Postal\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>8 May 2023</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"english\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">English</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Recently, I was working with vocabulary in an attempt to describe my latest adventures to an English-speaking friend and got to know about the colorful idiom “to go postal”. It means something like “go crazy with anger”; appeared somewhere between the 80s and 90s in the USA after a series of rather <a href=\"https://en.wikipedia.org/wiki/Going_postal\" rel=\"noopener noreferrer\" target=\"_blank\">insane incidents</a> in which postal workers went crazy and attacked people around, including colleagues and visitors.</p>\n<p>The expression sounds funny at first glance, but the story behind the scenes is painfully gloomy. I think I will continue to use the good old “to go ballistic”. Literally, “get angry that strong so you become a rocket which lost control”. Or, to simplify, “explode with anger”.</p>\n<p>By the way, there are similar rocket-like connotations in Russian, but for some reason they are about a more manageable cases. Mostly, they implies something like \"the fire in the ass was so damn strong that the poor guy left Earth and successfully landed on Mars\". Sounds a bit better than a simple explosion — you didn't completely waste the precious resource, at least :-)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "going postal 8 may 2023 · english recently, i was working with vocabulary in an attempt to describe my latest adventures to an english-speaking friend and got to know about the colorful idiom “to go postal”. it means something like “go crazy with anger”; appeared somewhere between the 80s and 90s in the usa after a series of rather insane incidents in which postal workers went crazy and attacked people around, including colleagues and visitors. the expression sounds funny at first glance, but the story behind the scenes is painfully gloomy. i think i will continue to use the good old “to go ballistic”. literally, “get angry that strong so you become a rocket which lost control”. or, to simplify, “explode with anger”. by the way, there are similar rocket-like connotations in russian, but for some reason they are about a more manageable cases. mostly, they implies something like \"the fire in the ass was so damn strong that the poor guy left earth and successfully landed on mars\". sounds a bit better than a simple explosion — you didn't completely waste the precious resource, at least :-)",
    "tags": [
      "english"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/pause\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Pause()\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>30 April 2023</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <blockquote>\n<p>An important detail: the CallPause method is not available in a client-server call; when a client calls a server method in which CallPause is called, the exception \"Cannot call the CallPause method in a client-server call\" will be thrown.</p>\n<p><a href=\"https://wonderland.v8.1c.ru/blog/metod-vyzvatpauzu/\" rel=\"noopener noreferrer\" target=\"_blank\">CallPause Method</a> (RU)</p>\n</blockquote>\n<p>What a strange restriction, to be frank. On the one hand, an experienced developer will not make an intentional pause in a client-server call anyway; on the other hand, whoever wants to make it makes it anyway (by checking time in a cycle, for example). Does security by obscurity worth the efforts?</p>\n<p>At best, some junior will catch this exception, think “welp, it looks like I'm doing something wrong” and move in the right direction. However, putting the restriction on the platform for the sake of this case is like firing a cannon at sparrows. You know what? Let's implement a number limit as well — like, no more than 1000 pauses per session, otherwise users will suddenly think that the program is too slow :-)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "pause() 30 april 2023 · 1с an important detail: the callpause method is not available in a client-server call; when a client calls a server method in which callpause is called, the exception \"cannot call the callpause method in a client-server call\" will be thrown. callpause method (ru) what a strange restriction, to be frank. on the one hand, an experienced developer will not make an intentional pause in a client-server call anyway; on the other hand, whoever wants to make it makes it anyway (by checking time in a cycle, for example). does security by obscurity worth the efforts? at best, some junior will catch this exception, think “welp, it looks like i'm doing something wrong” and move in the right direction. however, putting the restriction on the platform for the sake of this case is like firing a cannon at sparrows. you know what? let's implement a number limit as well — like, no more than 1000 pauses per session, otherwise users will suddenly think that the program is too slow :-)",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/in-a-pedantic-way\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                In a Pedantic Way\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>21 Marth 2023</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"code-smell\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Code Smell</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>The daily award for the most philosophical code goes to the author of this elegant way to check that two boolean variables are not equal to each other:</p>\n<pre><code>If DataStructure.Property(\"AmountVATIn\")\n    And ((DataStructure.AmountVATIn And NOT SearchPriceIncludesVAT)\n    OR (NOT DataStructure.AmountVATIn And SearchPriceIncludesVAT)) Then    \n    Price = RecalculateAmountOnVATFlagsChange(Price, DataStructure.AmountVATIn, TabSectionLine.VATRate);\nEndIf;\n</code></pre>\n<p>I'm thinking of adding something like “And Not (DataStructure.AmountVATIn = SearchPriceIncludesVAT)” here to spice it up with a subtle note of insanity.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "in a pedantic way 21 marth 2023 · 1с work code smell the daily award for the most philosophical code goes to the author of this elegant way to check that two boolean variables are not equal to each other: if datastructure.property(\"amountvatin\") and ((datastructure.amountvatin and not searchpriceincludesvat) or (not datastructure.amountvatin and searchpriceincludesvat)) then price = recalculateamountonvatflagschange(price, datastructure.amountvatin, tabsectionline.vatrate); endif; i'm thinking of adding something like “and not (datastructure.amountvatin = searchpriceincludesvat)” here to spice it up with a subtle note of insanity.",
    "tags": [
      "1c",
      "work",
      "code-smell"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/environmental-storytelling\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Environmental Storytelling\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>19 Marth 2023</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"meanwhile\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Meanwhile</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I like to notice things in the world around me that clearly have a story behind them. In video games, this is called “environmental storytelling”: they don’t tell you the story directly, but if you look around, you can guess which gun was hanging on the wall and who fired from it.</p>\n<p>For example, I recently celebrated the company's 10th anniversary with colleagues at a local golf club. Balls had to be sent flying from the second floor; there are no railings for obvious reasons, but a net is stretched in case someone loses their balance.</p>\n<p><img alt=\"Photo from the club website to make it clearer.\" src=\"https://kostyanetsky.me/notes/environmental-storytelling/topgolf.jpeg\"/></p>\n<p>Why are you talking about this, you ask? Well, there are warnings on the walls: jump into the net of your own free will and pay <abbr title=\"About two hundred thousand rubles at this moment.\">ten thousand dirhams</abbr>. Recording this heroic leap of faith on camera is fine as well, just prepare five thousand more.</p>\n<p>Do you feel the smell of a good history? </p>\n<p>Another example: once flew to Turkey to rest and decided, just in case, to look through the rules of the airline (what can be taken on board, what can not). Among the list of items prohibited from being carried on board, I found “steel spear” and “steel flail” 😬</p>\n<p>UPD: Another great <a href=\"https://kostyanetsky.me/notes/environmental-storytelling/soundproof.jpeg\" rel=\"noopener noreferrer\" target=\"_blank\">example</a> from somewhere on the Internet.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "environmental storytelling 19 marth 2023 · meanwhile work i like to notice things in the world around me that clearly have a story behind them. in video games, this is called “environmental storytelling”: they don’t tell you the story directly, but if you look around, you can guess which gun was hanging on the wall and who fired from it. for example, i recently celebrated the company's 10th anniversary with colleagues at a local golf club. balls had to be sent flying from the second floor; there are no railings for obvious reasons, but a net is stretched in case someone loses their balance. why are you talking about this, you ask? well, there are warnings on the walls: jump into the net of your own free will and pay ten thousand dirhams . recording this heroic leap of faith on camera is fine as well, just prepare five thousand more. do you feel the smell of a good history? another example: once flew to turkey to rest and decided, just in case, to look through the rules of the airline (what can be taken on board, what can not). among the list of items prohibited from being carried on board, i found “steel spear” and “steel flail” 😬 upd: another great example from somewhere on the internet.",
    "tags": [
      "meanwhile",
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/outgoing-requests-limiter\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Slow down, I&#39;m recording\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>5 Marth 2023</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"bitrix\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Bitrix</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Usually the idea of developing is simple: the faster it works, the better. For example, the more requests an application manages to execute per unit of time, the faster the task for which these requests are needed will be solved.</p>\n<p>However, it also happens the other way around: you need to reduce the number of operations that a program is able to perform. Let's imagine we exchange data with an external service and it bans if we hit it with requests too often. For example: the cloud version of <a href=\"https://bitrix24.net\" rel=\"noopener noreferrer\" target=\"_blank\">Bitrix24</a> requires sending requests to it no more than two per second.</p>\n<p>Here is an <a href=\"https://github.com/vkostyanetsky/OutgoingRequestsLimiter\" rel=\"noopener noreferrer\" target=\"_blank\">implementation</a> of such a slowdown, which I wrote last week. There is no queue support; the main solved problem is to execute as many requests as possible without going beyond the limit (taking into account the fact that requests can be made from different sessions).</p>\n<p>The problem is solved through a constant that stores the date for the current second and the number of requests that have already been sent. Clients who run into a limitation are waiting. This approach is not suitable for high-loaded systems, but otherwise it can come in handy.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "slow down, i'm recording 5 marth 2023 · 1с bitrix done usually the idea of developing is simple: the faster it works, the better. for example, the more requests an application manages to execute per unit of time, the faster the task for which these requests are needed will be solved. however, it also happens the other way around: you need to reduce the number of operations that a program is able to perform. let's imagine we exchange data with an external service and it bans if we hit it with requests too often. for example: the cloud version of bitrix24 requires sending requests to it no more than two per second. here is an implementation of such a slowdown, which i wrote last week. there is no queue support; the main solved problem is to execute as many requests as possible without going beyond the limit (taking into account the fact that requests can be made from different sessions). the problem is solved through a constant that stores the date for the current second and the number of requests that have already been sent. clients who run into a limitation are waiting. this approach is not suitable for high-loaded systems, but otherwise it can come in handy.",
    "tags": [
      "1c",
      "bitrix",
      "done"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/rest-service-4-sm\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                REST service for Service Manager\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>25 February 2023</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>This week, I developed a REST service to set up our service manager (this is a configuration for managing a 1cFresh instance). Deploying the development environment is a regular task for us, and every time the manager's database had to be tuned by hand: tweaking the storefront, changing application addresses, overwriting scheduled tasks, and so on.</p>\n<p>The implementation was simple. Come up with a JSON structure, write a parser, find a code in the configuration, make it work by external call, and make sure you don't break anything. Routine work, in general, but I love to do such things from time to time: I mean, to look around and try to figure out which of the daily tasks is annoying enough.</p>\n<p>This one is a good example. To be frank, setting up the Service Manager wasn't a problem (launching the app and fiddling with the settings), but it was a thing to pay attention &amp; spend time to. What do we have now:</p>\n<ol>\n<li>There is a JSON file with all the settings;</li>\n<li>There is a REST service for its processing;</li>\n<li>There is a script that will put the first into the second;</li>\n<li>There is a pipeline that will do it all by itself.</li>\n</ol>\n<p>In short, a boot was rubbing a leg, and now it isn't. Yahoo!</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "rest service for service manager 25 february 2023 · 1с work this week, i developed a rest service to set up our service manager (this is a configuration for managing a 1cfresh instance). deploying the development environment is a regular task for us, and every time the manager's database had to be tuned by hand: tweaking the storefront, changing application addresses, overwriting scheduled tasks, and so on. the implementation was simple. come up with a json structure, write a parser, find a code in the configuration, make it work by external call, and make sure you don't break anything. routine work, in general, but i love to do such things from time to time: i mean, to look around and try to figure out which of the daily tasks is annoying enough. this one is a good example. to be frank, setting up the service manager wasn't a problem (launching the app and fiddling with the settings), but it was a thing to pay attention & spend time to. what do we have now: there is a json file with all the settings; there is a rest service for its processing; there is a script that will put the first into the second; there is a pipeline that will do it all by itself. in short, a boot was rubbing a leg, and now it isn't. yahoo!",
    "tags": [
      "1c",
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/haul-trucks\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Haul Trucks\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>20 February 2023</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p><img alt=\"Cars\" src=\"https://kostyanetsky.me/notes/haul-trucks/cars.jpg\"/></p>\n<p>The colleague grumbled that if you think like that, then the configurator will be Zhiguli, and the EDT will be Kama1 (this is an electric car that has been developed somewhere in the depths of KAMAZ for many years and still can’t gather strength and, finally, show the wonder to the world).</p>\n<p>Well, I try to look at things with optimism. I think the platform and its IDE are such haul trucks. No one in their right mind rides them on household chores, but these beasts are irreplaceable on a cut!</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "haul trucks 20 february 2023 · 1с the colleague grumbled that if you think like that, then the configurator will be zhiguli, and the edt will be kama1 (this is an electric car that has been developed somewhere in the depths of kamaz for many years and still can’t gather strength and, finally, show the wonder to the world). well, i try to look at things with optimism. i think the platform and its ide are such haul trucks. no one in their right mind rides them on household chores, but these beasts are irreplaceable on a cut!",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/strange-bitrix\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                About Strange Bitrix\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>15 October 2022</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"bitrix\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Bitrix</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>The more I explore the Bitrix24 REST interface, the more I am amazed at how different its developers mindsets are. It is expressed in different ways.</p>\n<p>Let's take, for example, the interface of deals and product rows related to them. There is no amount field in the table of the products: like, you need the amount for each line – count it yourself, that's it. However, there is the amount field at the document level! Can you guess what the field is named?</p>\n<p>AMOUNT? DEAL_AMOUNT? DOCUMENT_AMOUNT? AMOUNT_TOTAL?</p>\n<p>You didn't guess, the correct answer is OPPORTUNITY.</p>\n<p><img alt=\"What the fuck?\" src=\"https://kostyanetsky.me/notes/strange-bitrix/what-the-fuck.jpg\"/></p>\n<p>Where'd I digress? Yeah, a product line. It contains a product, a VAT rate, and a unit of measure. All three entities are completely independent: each has a separate table with auxiliary information and its own unique identifier. It is logical to assume that identifiers are stored in the product line: product ID, VAT rate ID, and unit ID.</p>\n<p>Well, yes, but no. The product field actually contains ID, but for the VAT rate field it's a rate value. What's for the unit of measure field? Well, it contains a measurement code ¯\\_(ツ)_/¯</p>\n<p>Database normalization? What? What does it mean? Back off, man, you're distracting us from work.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "about strange bitrix 15 october 2022 · work bitrix the more i explore the bitrix24 rest interface, the more i am amazed at how different its developers mindsets are. it is expressed in different ways. let's take, for example, the interface of deals and product rows related to them. there is no amount field in the table of the products: like, you need the amount for each line – count it yourself, that's it. however, there is the amount field at the document level! can you guess what the field is named? amount? deal_amount? document_amount? amount_total? you didn't guess, the correct answer is opportunity. where'd i digress? yeah, a product line. it contains a product, a vat rate, and a unit of measure. all three entities are completely independent: each has a separate table with auxiliary information and its own unique identifier. it is logical to assume that identifiers are stored in the product line: product id, vat rate id, and unit id. well, yes, but no. the product field actually contains id, but for the vat rate field it's a rate value. what's for the unit of measure field? well, it contains a measurement code ¯\\_(ツ)_/¯ database normalization? what? what does it mean? back off, man, you're distracting us from work.",
    "tags": [
      "work",
      "bitrix"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/anonymous-quokka\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Group Work in Google Docs\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>18 September 2022</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"bitrix\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Bitrix</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"meanwhile\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Meanwhile</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>For the last month I have been rewriting standard data exchange between FirstBit ERP and Bitrix for a client task. Co-workers doing the same on the Bitrix side prepared a huge mapping for this case: which field on the 1C side should be transferred to which Bitrix field (and vice versa).</p>\n<p>They published this mapping as Google Docs tables, in the interface of which you can see users using any document at this moment — both logged in and anonymous. Anonymous ones traditionally are displaying as <a href=\"https://support.google.com/docs/answer/2494888?hl=en\" rel=\"noopener noreferrer\" target=\"_blank\">animals</a>.</p>\n<p>Colleagues generally prefer to work anonymously. As a result, I definetely used to feel like a Disney princess: you start working in the morning, and anonymous quokkas, penguins and chinchillas roll out from everywhere :-)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "group work in google docs 18 september 2022 · work bitrix meanwhile for the last month i have been rewriting standard data exchange between firstbit erp and bitrix for a client task. co-workers doing the same on the bitrix side prepared a huge mapping for this case: which field on the 1c side should be transferred to which bitrix field (and vice versa). they published this mapping as google docs tables, in the interface of which you can see users using any document at this moment — both logged in and anonymous. anonymous ones traditionally are displaying as animals . colleagues generally prefer to work anonymously. as a result, i definetely used to feel like a disney princess: you start working in the morning, and anonymous quokkas, penguins and chinchillas roll out from everywhere :-)",
    "tags": [
      "work",
      "bitrix",
      "meanwhile"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/slack\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Slack Advises\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>25 August 2022</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"meanwhile\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Meanwhile</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Slack, of course, is a thing to scold. For being slow, for having bugs, for notifications. However, I just love his stubs in case there are no new messages.</p>\n<p>Look at this cuteness:</p>\n<p><img alt=\"All done. The future is yours.\" src=\"https://kostyanetsky.me/notes/slack/all-done.png\"/></p>\n<p>Why do we need psychotherapists at all?</p>\n<p><img alt=\"You're up to date. Go forth and do great things.\" src=\"https://kostyanetsky.me/notes/slack/up-to-date.png\"/></p>\n<p>Or this:</p>\n<p><img alt=\"You're all read. Here is a tractor.\" src=\"https://kostyanetsky.me/notes/slack/here-is-tractor.png\"/></p>\n<p>Geez-Louise, Slack, hold on. You're not the first who advices this, believe me.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "slack advises 25 august 2022 · meanwhile slack, of course, is a thing to scold. for being slow, for having bugs, for notifications. however, i just love his stubs in case there are no new messages. look at this cuteness: why do we need psychotherapists at all? or this: geez-louise, slack, hold on. you're not the first who advices this, believe me.",
    "tags": [
      "meanwhile"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/shaken-not-stirred\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Shaken, Not Stirred\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>7 August 2022</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Let's speak a bit about organization of the code. If you need to describe a set of objects with common properties, think about whether this description should be divided into separate methods, each of which intended to describe one specific object?</p>\n<p>Let's look at this example — a method that describes tabular parts of documents suitable for some task:</p>\n<pre><code>SupportedTypes[\"Document.SupplierPricesEntering\"]   = \"Prices\";\nSupportedTypes[\"Document.OpeningBalancesEntering\"]  = \"CustomerAccounts,VendorAccounts\";\nSupportedTypes[\"Document.Requisition\"]              = \"InventoryAndServices\";\n</code></pre>\n<p>Everything seems fine, right? Descriptions are there; tabular parts are listed; splitting them by comma doesn't look expensive at all.</p>\n<p>However, there are many documents in the method. Eventually, some colleague (or you) will need to refer to another tabular part of the document, which is already mentioned in the method. Something will distract they, they will forget to look for an existing line and something like this will turn out:</p>\n<pre><code>SupportedTypes[\"Document.SupplierPricesEntering\"]   = \"Prices\";\nSupportedTypes[\"Document.OpeningBalancesEntering\"]  = \"CustomerAccounts,VendorAccounts\";\nSupportedTypes[\"Document.Requisition\"]              = \"InventoryAndServices\";\n\n&lt;...&gt;\n\nSupportedTypes[\"Document.OpeningBalancesEntering\"]  = \"PayrollDeductions\";\n</code></pre>\n<p>As a result, a part of description will be erased, and it's good if the related functionality is covered by tests.</p>\n<p>Conclusion? Well, you can write a helper method that will take the document type and the name of <strong>one</strong> table part as input. The helper will add items to the SupportedTypes map and ensure that the data already added is not lost.</p>\n<p>However, if you need a better solution, then consider doing as I wrote at the beginning of this note: split the method into auxiliary methods. One method contains description for one document only (for all its tabular sections). Something like:</p>\n<pre><code>Procedure AddOpeningBalancesEnteringDocument(SupportedTypes)\n\n    TabularSections = New Array;\n\n    TabularSections.Add(\"CustomerAccounts\");\n    TabularSections.Add(\"VendorAccounts\");\n    TabularSections.Add(\"PayrollDeductions\");\n\n    SupportedTypes[\"Document.Requisition\"] = StrConcat(TabularSections, \",\");\n\nEndProcedure\n</code></pre>\n<p>What do we get here? Firstly, nobody will accidentally erase the description of the document. Secondly, SonarQube will be pleased: it is highly likely to begin swearing at repeating literals with the names of tabular parts, if the helper is implemented instead of code splitting.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "shaken, not stirred 7 august 2022 · 1с let's speak a bit about organization of the code. if you need to describe a set of objects with common properties, think about whether this description should be divided into separate methods, each of which intended to describe one specific object? let's look at this example — a method that describes tabular parts of documents suitable for some task: supportedtypes[\"document.supplierpricesentering\"] = \"prices\"; supportedtypes[\"document.openingbalancesentering\"] = \"customeraccounts,vendoraccounts\"; supportedtypes[\"document.requisition\"] = \"inventoryandservices\"; everything seems fine, right? descriptions are there; tabular parts are listed; splitting them by comma doesn't look expensive at all. however, there are many documents in the method. eventually, some colleague (or you) will need to refer to another tabular part of the document, which is already mentioned in the method. something will distract they, they will forget to look for an existing line and something like this will turn out: supportedtypes[\"document.supplierpricesentering\"] = \"prices\"; supportedtypes[\"document.openingbalancesentering\"] = \"customeraccounts,vendoraccounts\"; supportedtypes[\"document.requisition\"] = \"inventoryandservices\"; <...> supportedtypes[\"document.openingbalancesentering\"] = \"payrolldeductions\"; as a result, a part of description will be erased, and it's good if the related functionality is covered by tests. conclusion? well, you can write a helper method that will take the document type and the name of one table part as input. the helper will add items to the supportedtypes map and ensure that the data already added is not lost. however, if you need a better solution, then consider doing as i wrote at the beginning of this note: split the method into auxiliary methods. one method contains description for one document only (for all its tabular sections). something like: procedure addopeningbalancesenteringdocument(supportedtypes) tabularsections = new array; tabularsections.add(\"customeraccounts\"); tabularsections.add(\"vendoraccounts\"); tabularsections.add(\"payrolldeductions\"); supportedtypes[\"document.requisition\"] = strconcat(tabularsections, \",\"); endprocedure what do we get here? firstly, nobody will accidentally erase the description of the document. secondly, sonarqube will be pleased: it is highly likely to begin swearing at repeating literals with the names of tabular parts, if the helper is implemented instead of code splitting.",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/not-but\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Not, But!\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>23 Jule 2022</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"meanwhile\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Meanwhile</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Someone told me about the Croatian comic strips <a href=\"http://www.to-zo.com/notbut\" rel=\"noopener noreferrer\" target=\"_blank\">NOT/BUT</a> at the beginning of last year, when I was seriously learning to draw. Each strip there is about some kind of traumatic or simply gloomy thought that comes into the artist’s head while working. The idea is to push a reader in the right direction and give them a more practical perspective on the situation they're in.</p>\n<p>I quit drawing a year later, at the end of February: it became clear that I no longer had time for a hobby. But comics are completely universal; look through, even if you have no idea what a kneaded eraser is :-)</p>\n<p><a href=\"http://www.to-zo.com/notbut\" rel=\"noopener noreferrer\" target=\"_blank\"><img alt=\"What the actual fuck?\" src=\"https://kostyanetsky.me/notes/not-but/mistakes.png\"/></a></p>\n<p>All these endless soul-searching are well known to any professional, and the way out of them is not always obvious. Especially if you are angry, tired, and the deadline for the project expired somewhere last week.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "not, but! 23 jule 2022 · work meanwhile someone told me about the croatian comic strips not/but at the beginning of last year, when i was seriously learning to draw. each strip there is about some kind of traumatic or simply gloomy thought that comes into the artist’s head while working. the idea is to push a reader in the right direction and give them a more practical perspective on the situation they're in. i quit drawing a year later, at the end of february: it became clear that i no longer had time for a hobby. but comics are completely universal; look through, even if you have no idea what a kneaded eraser is :-) all these endless soul-searching are well known to any professional, and the way out of them is not always obvious. especially if you are angry, tired, and the deadline for the project expired somewhere last week.",
    "tags": [
      "work",
      "meanwhile"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/ok\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Okay!\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>22 Jule 2022</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"english\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">English</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/GuIPxcXwF30\" width=\"560\"></iframe>\n<p>Oh, shoot! Just watched the video and realized that I got used to writing OK in morning statuses when asked “how do you feel today”. Like, everything is normal with me, I'm alive and doing well, nothing affects my work, etc.</p>\n<p>Now I'm afraid to guess what colleagues thought about me. I hope they also did not know that okay in the answer to such a question does not mean okay at all :-)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "okay! 22 jule 2022 · english work oh, shoot! just watched the video and realized that i got used to writing ok in morning statuses when asked “how do you feel today”. like, everything is normal with me, i'm alive and doing well, nothing affects my work, etc. now i'm afraid to guess what colleagues thought about me. i hope they also did not know that okay in the answer to such a question does not mean okay at all :-)",
    "tags": [
      "english",
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/cookie-jar\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Cookie Jar\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>28 May 2022</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"python\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Python</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>The other day, I was working with cookies in one of my scripts. While searching for the optimal solution, I came across an absolutely charming (100% working, by the way) <a href=\"https://stackoverflow.com/questions/13030095/how-to-save-requests-python-cookies-to-a-file\" rel=\"noopener noreferrer\" target=\"_blank\">tip</a> from StackOverflow:</p>\n<blockquote>\n<p>You can get a CookieJar object from the session with session.cookies, and use pickle to store it to a file.</p>\n</blockquote>\n<p>So, literally: keep your cookies in a jar, and to store them, pickle them. The jar with pickled cookies, by the way, can be put on the shelf later.</p>\n<p>How can you not love python after that, huh?</p>\n<p>P.S. While writing this post, I got curious – why pickle and not serialization? So, briefly: <a href=\"https://stackoverflow.com/questions/27324986/pickles-why-are-they-called-that/27325007#27325007\" rel=\"noopener noreferrer\" target=\"_blank\">this is the way</a>.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "cookie jar 28 may 2022 · python the other day, i was working with cookies in one of my scripts. while searching for the optimal solution, i came across an absolutely charming (100% working, by the way) tip from stackoverflow: you can get a cookiejar object from the session with session.cookies, and use pickle to store it to a file. so, literally: keep your cookies in a jar, and to store them, pickle them. the jar with pickled cookies, by the way, can be put on the shelf later. how can you not love python after that, huh? p.s. while writing this post, i got curious – why pickle and not serialization? so, briefly: this is the way .",
    "tags": [
      "python"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/no-more-embedded-tweets\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                No More Embedded Tweets\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>21 Marth 2022</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"blog\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Blog</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"javascript\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Javascript</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>As soon as I <a href=\"https://kostyanetsky.me/notes/no-more-google-fonts\" rel=\"noopener noreferrer\" target=\"_blank\">removed</a> Google Fonts from my blog, I had to remove embedded tweets as well.</p>\n<p>How did it work before? I want to link a tweet — I simply insert the link to it. The build script replaces it with an HTML block, then Twitter founds this block and replaces it with the text of the tweet (and some useful links as well). This <a href=\"https://github.com/vkostyanetsky/BlogBuilder/commit/c21ef8a7bec10672406e6be57b8e734ba3ac01c5\" rel=\"noopener noreferrer\" target=\"_blank\">commit</a> shows you how it worked.</p>\n<p>How does it work now? You're right, it does not! Twitter is blocked in Russia.</p>\n<p><img alt=\"Well\" src=\"https://kostyanetsky.me/notes/no-more-embedded-tweets/well.jpg\"/></p>\n<p>The solution: I had to screen all the tweets that I once referred to and add them to the notes in the form of pictures with links. Whoever needs the original will turn on VPN and go to Twitter, and the rest, at least, can read the text.</p>\n<p>A few words about the technical side. I was too lazy to screen each tweet manually, so I was thinking about how to automate the process. At first, I came across only services that were ready to solve the problem for some pathetic ten dollars (thanks guys, maybe, one day…), but then I came across the perfect <a href=\"https://github.com/privatenumber/snap-tweet\" rel=\"noopener noreferrer\" target=\"_blank\">tool</a>: a console script for Node.js.</p>\n<p>Nothing that you don't need. Pure functionality. You give a tweet to it. It gives you a picture back:</p>\n<blockquote>\n<p>npx snap-tweet https://twitter.com/PossumEveryHour/status/1506148678461014016</p>\n</blockquote>\n<p>That's all. I want to donate the author, really.</p>\n<p>I thought about attaching snap-tweet to my build script (so that it would be like before: I insert a link to a tweet, and then it generates a picture by itself and puts it where it needs to be). Decided that I'm not gonna do it. Rude violation of KISS, and indeed… There's enough entropy in the world so far. Especially now.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "no more embedded tweets 21 marth 2022 · blog javascript as soon as i removed google fonts from my blog, i had to remove embedded tweets as well. how did it work before? i want to link a tweet — i simply insert the link to it. the build script replaces it with an html block, then twitter founds this block and replaces it with the text of the tweet (and some useful links as well). this commit shows you how it worked. how does it work now? you're right, it does not! twitter is blocked in russia. the solution: i had to screen all the tweets that i once referred to and add them to the notes in the form of pictures with links. whoever needs the original will turn on vpn and go to twitter, and the rest, at least, can read the text. a few words about the technical side. i was too lazy to screen each tweet manually, so i was thinking about how to automate the process. at first, i came across only services that were ready to solve the problem for some pathetic ten dollars (thanks guys, maybe, one day…), but then i came across the perfect tool : a console script for node.js. nothing that you don't need. pure functionality. you give a tweet to it. it gives you a picture back: npx snap-tweet https://twitter.com/possumeveryhour/status/1506148678461014016 that's all. i want to donate the author, really. i thought about attaching snap-tweet to my build script (so that it would be like before: i insert a link to a tweet, and then it generates a picture by itself and puts it where it needs to be). decided that i'm not gonna do it. rude violation of kiss, and indeed… there's enough entropy in the world so far. especially now.",
    "tags": [
      "blog",
      "javascript"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/do-not-confuse\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Do Not Confuse\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>16 Marth 2022</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"code-smell\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Code Smell</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p><img alt=\"Code\" src=\"https://kostyanetsky.me/notes/do-not-confuse/do-not-confuse.png\"/></p>\n<p>If the type of operation is the sale of goods or real estate, then open the common form AdvancesPickFormWithVAT with the parameters defined in the PickParameters structure. The callback is EditPrepaymentOffsetEnd method, defined in the same module; pass it the AdditionalParameters structure. The form needs to be opened so that it locks the whole interface.</p>\n<p>However, if the type of operation is a return to the supplier, then open the general form AdvancesPickFormWithVAT with the parameters defined in the PickParameters structure. The callback is the EditPrepaymentOffsetEnd method, defined in the same module; pass it the AdditionalParameters structure. The form needs to be opened so that it locks the whole interface.</p>\n<p>I hope you won't confuse.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "do not confuse 16 marth 2022 · 1с code smell if the type of operation is the sale of goods or real estate, then open the common form advancespickformwithvat with the parameters defined in the pickparameters structure. the callback is editprepaymentoffsetend method, defined in the same module; pass it the additionalparameters structure. the form needs to be opened so that it locks the whole interface. however, if the type of operation is a return to the supplier, then open the general form advancespickformwithvat with the parameters defined in the pickparameters structure. the callback is the editprepaymentoffsetend method, defined in the same module; pass it the additionalparameters structure. the form needs to be opened so that it locks the whole interface. i hope you won't confuse.",
    "tags": [
      "1c",
      "code-smell"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/no-more-google-fonts\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                No More Google Fonts\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>19 February 2022</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"blog\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Blog</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p><a href=\"https://twitter.com/PixelAmbacht/status/1494272370076536840\" rel=\"noopener noreferrer\" target=\"_blank\"><img alt=\"Tweet\" src=\"https://kostyanetsky.me/notes/no-more-google-fonts/snap-tweet-PixelAmbacht-1494272370076536840.png\"/></a></p>\n<p>A year ago, damn it. Okay, hello everyone! Johnny Slowpoke is here! Today we will throw out Google Fonts from my blog. I used to load the main font (PT Sans) from this service, but it makes almost no sense without cross-domain caching. Frankly speaking, the only point to do this further is if a server on which the site is running is slow, so it is faster to load fonts from Google. </p>\n<p>I host my blog on GitHub servers and have no complaints about performance. So, I'm self-hosting PT Sans now, and you know what? The difference is dramatic. When updating a page before, there was clearly a noticeable delay between loading the page and loading the font. For now, it is barely recognizable. If you have a blog and want to try to self-host fonts — here is a cool <a href=\"https://google-webfonts-helper.herokuapp.com/fonts\" rel=\"noopener noreferrer\" target=\"_blank\">service</a> that solves the problem in a few clicks.</p>\n<p>Don't forget to put a big, nice star on the <a href=\"https://github.com/majodev/google-webfonts-helper\" rel=\"noopener noreferrer\" target=\"_blank\">repository</a>!</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "no more google fonts 19 february 2022 · blog a year ago, damn it. okay, hello everyone! johnny slowpoke is here! today we will throw out google fonts from my blog. i used to load the main font (pt sans) from this service, but it makes almost no sense without cross-domain caching. frankly speaking, the only point to do this further is if a server on which the site is running is slow, so it is faster to load fonts from google. i host my blog on github servers and have no complaints about performance. so, i'm self-hosting pt sans now, and you know what? the difference is dramatic. when updating a page before, there was clearly a noticeable delay between loading the page and loading the font. for now, it is barely recognizable. if you have a blog and want to try to self-host fonts — here is a cool service that solves the problem in a few clicks. don't forget to put a big, nice star on the repository !",
    "tags": [
      "blog"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/totals-of-2021\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Totals of 2021\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>8 February 2022</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>It is a bit late to sum up, isn't it? Well, the previous couple of months have been, um, tight, so I had no actual time  to sit down and think. Now I'm on vacation for 2021 – so no time like the present. I'm writing, like, from the past.</p>\n<p>Write out each achievement doesn't attract me at all. The year definitely turned out to be good: I did a lot of complex work on FirstBit ERP (wrote new modules, rewrote existing ones, crushed bugs, wrote functional and load tests – yes, there were countless things). This had a good effect both on the configuration itself and on the profits of my company. In addition, I passed 1C expert exam and a PostgreSQL professional exam. Hip-hip-hooray.</p>\n<p>There were fails as well. I still feel lazy to jot them down, but the main one is obvious – I became monstrously fat and instead of losing ten kilograms (that was the original plan) – I gained five more.</p>\n<p>Looking back, the root of most of the problems over the past year is this: I focused too much on task flow. They were all interesting in their own way, from a carefully written technical task to challenges like “find a problem in the code using your witcher's instincts”. You do one task, another, a third, a hundredth, and you do not notice that you have ignored almost everything except work. As a result, you get a lot of experience, but the world dries up to the Configurator window and there is no strength to somehow apply this experience. Unhealthy bullshit.</p>\n<p>In short, if you imagine me as a character in some video game, it looks like this: attack and intelligence have grown noticeably over the year, but health, agility, charisma, and almost everything else in general, have dropped. Now I need to do something to deal with this mess.</p>\n<p>You know what? I'll take ten kilometers run for a start.</p>\n<p><a href=\"https://twitter.com/EffinBirds/status/1329575199667347459\" rel=\"noopener noreferrer\" target=\"_blank\"><img alt=\"Tweet\" src=\"https://kostyanetsky.me/notes/totals-of-2021/snap-tweet-EffinBirds-1329575199667347459.png\"/></a></p>\n<p>Maybe, birdie, maybe.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "totals of 2021 8 february 2022 · work it is a bit late to sum up, isn't it? well, the previous couple of months have been, um, tight, so i had no actual time to sit down and think. now i'm on vacation for 2021 – so no time like the present. i'm writing, like, from the past. write out each achievement doesn't attract me at all. the year definitely turned out to be good: i did a lot of complex work on firstbit erp (wrote new modules, rewrote existing ones, crushed bugs, wrote functional and load tests – yes, there were countless things). this had a good effect both on the configuration itself and on the profits of my company. in addition, i passed 1c expert exam and a postgresql professional exam. hip-hip-hooray. there were fails as well. i still feel lazy to jot them down, but the main one is obvious – i became monstrously fat and instead of losing ten kilograms (that was the original plan) – i gained five more. looking back, the root of most of the problems over the past year is this: i focused too much on task flow. they were all interesting in their own way, from a carefully written technical task to challenges like “find a problem in the code using your witcher's instincts”. you do one task, another, a third, a hundredth, and you do not notice that you have ignored almost everything except work. as a result, you get a lot of experience, but the world dries up to the configurator window and there is no strength to somehow apply this experience. unhealthy bullshit. in short, if you imagine me as a character in some video game, it looks like this: attack and intelligence have grown noticeably over the year, but health, agility, charisma, and almost everything else in general, have dropped. now i need to do something to deal with this mess. you know what? i'll take ten kilometers run for a start. maybe, birdie, maybe.",
    "tags": [
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/reuse-carefully\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Reuse Carefully\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>8 February 2022</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I'll tell you about a funny and a little embarrassing case that I took apart in January. The essence in a nutshell: a huge auto-test based on Vanessa, which is intended to check the VAT calculation, falls somewhere near the end.</p>\n<p>I start investigating. First, I look at the screenshots in Allure: OK, the reason is obvious – in one of the documents, the conditional appearance for the field with the VAT amount doesn't work. The test expected it to be unavailable if the VAT rate is zero, but it turned out to be available somehow.</p>\n<p>It's a mess, it needs to be fixed! I look at the condition in the code: well, it locks the field if the VAT rate is in the list of “zero” rates (list of VAT rates whose rate is equal to zero). Everything appears to be simple and logical. What the hell could possibly go wrong here?</p>\n<p><a href=\"https://twitter.com/EffinBirds/status/1489980393675702281\" rel=\"noopener noreferrer\" target=\"_blank\"><img alt=\"Tweet\" src=\"https://kostyanetsky.me/notes/reuse-carefully/snap-tweet-EffinBirds-1489980393675702281.png\"/></a></p>\n<p>Well, I try to reproduce the bug manually. And there, all of a sudden, everything is nice: the conditional appearance works as it should. Floating bug, or what? I run the auto-test again, at the right moment I jump in with the debugger and find some outright garbage: in the list of “zero” rates, besides themselves, there are a bunch of empty links!</p>\n<p>Frankly speaking, I was scratching the back of my head. The document receives this list from the common module with <a href=\"https://gist.github.com/vkostyanetsky/5ec036ee148606aad9caefbc9305bfb0\" rel=\"noopener noreferrer\" target=\"_blank\">this code</a>. An empty ref from here, even theoretically, cannot be obtained. Moreover, the module has the “Reuse Return Values” option ​​enabled, and the function is actually executes once somewhere at the beginning of the test, before all complex data manipulations. So, the test cannot affect it in any way, in theory.</p>\n<p>Is it a dead end? Well, experienced colleagues have probably already guessed everything, but I had to dance around the bug  and even check the <a href=\"https://its.1c.ru/db/v8std/content/724/hdoc\" rel=\"noopener noreferrer\" target=\"_blank\">standard</a>, until got the following: <strong>return values ​​cache in 1C can be changed</strong>. I mean, not by calling <code>RefreshReusableValues​​()</code>, but by changing reusable values directly.</p>\n<p>How? Well, if you get some values ​​from a cached common module, and they are not of a primitive type (string, number, etc.), you will not get the value itself, but a pointer to it somewhere in memory. You write this pointer to a variable and try to change it – you change the cache.</p>\n<p>It's that simple, yes. This is what happened in my case: the form of another document called the method that generates the list of “zero” rates. Having received a list of values, it added an empty ref to it and used it in its logic. Thus, each time this form opens, the list cache contains more and more empty refs, which eventually broke the document at the other end of the configuration.</p>\n<p><a href=\"https://twitter.com/EffinBirds/status/1488165946342662144\" rel=\"noopener noreferrer\" target=\"_blank\"><img alt=\"Tweet\" src=\"https://kostyanetsky.me/notes/reuse-carefully/snap-tweet-EffinBirds-1488165946342662144.png\"/></a></p>\n<p>In a good way, the platform should throw exceptions when developer trying to change the cache, but until this happens, you have to take care yourself. For example, when developing cached modules, return immutable data types from them (FixedStructure instead of Structure, FixedArray instead of Array, and so on). True, this is not a 100% protection: firstly, fixed types are not applicable everywhere, and secondly, even in the latest versions of the SSL, this is far from being done everywhere. Do you know many configurations not based on SSL?</p>\n<p>Sonar also know nothing about the problem, as well as less popular software. No silver bullet, in short – check your code, look at the code of your colleagues and try not to forget about another elegant way to bang ourselves in the foot.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "reuse carefully 8 february 2022 · 1с work i'll tell you about a funny and a little embarrassing case that i took apart in january. the essence in a nutshell: a huge auto-test based on vanessa, which is intended to check the vat calculation, falls somewhere near the end. i start investigating. first, i look at the screenshots in allure: ok, the reason is obvious – in one of the documents, the conditional appearance for the field with the vat amount doesn't work. the test expected it to be unavailable if the vat rate is zero, but it turned out to be available somehow. it's a mess, it needs to be fixed! i look at the condition in the code: well, it locks the field if the vat rate is in the list of “zero” rates (list of vat rates whose rate is equal to zero). everything appears to be simple and logical. what the hell could possibly go wrong here? well, i try to reproduce the bug manually. and there, all of a sudden, everything is nice: the conditional appearance works as it should. floating bug, or what? i run the auto-test again, at the right moment i jump in with the debugger and find some outright garbage: in the list of “zero” rates, besides themselves, there are a bunch of empty links! frankly speaking, i was scratching the back of my head. the document receives this list from the common module with this code . an empty ref from here, even theoretically, cannot be obtained. moreover, the module has the “reuse return values” option ​​enabled, and the function is actually executes once somewhere at the beginning of the test, before all complex data manipulations. so, the test cannot affect it in any way, in theory. is it a dead end? well, experienced colleagues have probably already guessed everything, but i had to dance around the bug and even check the standard , until got the following: return values ​​cache in 1c can be changed . i mean, not by calling refreshreusablevalues​​() , but by changing reusable values directly. how? well, if you get some values ​​from a cached common module, and they are not of a primitive type (string, number, etc.), you will not get the value itself, but a pointer to it somewhere in memory. you write this pointer to a variable and try to change it – you change the cache. it's that simple, yes. this is what happened in my case: the form of another document called the method that generates the list of “zero” rates. having received a list of values, it added an empty ref to it and used it in its logic. thus, each time this form opens, the list cache contains more and more empty refs, which eventually broke the document at the other end of the configuration. in a good way, the platform should throw exceptions when developer trying to change the cache, but until this happens, you have to take care yourself. for example, when developing cached modules, return immutable data types from them (fixedstructure instead of structure, fixedarray instead of array, and so on). true, this is not a 100% protection: firstly, fixed types are not applicable everywhere, and secondly, even in the latest versions of the ssl, this is far from being done everywhere. do you know many configurations not based on ssl? sonar also know nothing about the problem, as well as less popular software. no silver bullet, in short – check your code, look at the code of your colleagues and try not to forget about another elegant way to bang ourselves in the foot.",
    "tags": [
      "1c",
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/infostart-event-2021\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Infostart Event 2021\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>16 November 2021</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"pgsql\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">PostgreSQL</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Last week I visited Moscow for <a href=\"https://event.infostart.ru/2021_msk/\" rel=\"noopener noreferrer\" target=\"_blank\">Infostart Event 2021</a>:</p>\n<ul>\n<li>Listen to numbers of interesting reports — check;</li>\n<li>Meet a few cool people in real life — check;</li>\n<li>Chat with friends — check!</li>\n</ul>\n<p>As a result, I suddenly felt rested despite the flights, stress, and fuss. I think it's because I'm working remotely, so it was really cool to look at so many colleagues in real life (not as a stream of electrons, I mean).</p>\n<p>In order not to <s>get up</s> to fly twice, I passed the <a href=\"https://postgrespro.ru/education/exam/DBA1-10\" rel=\"noopener noreferrer\" target=\"_blank\">first test</a> for PostgreSQL administration in the PostgresPro office. There are three more tests ahead, and the final one does not exist at all yet — but the walking one will master the road, I guess.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "infostart event 2021 16 november 2021 · 1с done postgresql last week i visited moscow for infostart event 2021 : listen to numbers of interesting reports — check; meet a few cool people in real life — check; chat with friends — check! as a result, i suddenly felt rested despite the flights, stress, and fuss. i think it's because i'm working remotely, so it was really cool to look at so many colleagues in real life (not as a stream of electrons, i mean). in order not to get up to fly twice, i passed the first test for postgresql administration in the postgrespro office. there are three more tests ahead, and the final one does not exist at all yet — but the walking one will master the road, i guess.",
    "tags": [
      "1c",
      "done",
      "pgsql"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/matryoshka\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Matryoshka\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>30 October 2021</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>A few days ago, there was a link to 1Ci certificate in the team chat (a colleague passed their junior <a href=\"https://academy.1ci.com/courses/1c-junior-developer\" rel=\"noopener noreferrer\" target=\"_blank\">course</a>). I go over and see no auth form, no errors — I just get a PDF file. Everything is OK, right? Well, then I open the file:</p>\n<p><img alt=\"Error.pdf\" src=\"https://kostyanetsky.me/notes/matryoshka/not-your-certificate.png\"/></p>\n<p>Honestly, I am even delighted. We need to implement this UX in our products: you press, for example, the “print” button for a document, and it gives you a PDF! And inside it — a link to another PDF! And inside it — “entity is not filled”, so go fill.</p>\n<p>You can sell it as a Russian way of dealing with errors. This is, like, for historical reasons! Blame all the damned matryoshkas, and <a href=\"https://en.wikipedia.org/wiki/Koschei\" rel=\"noopener noreferrer\" target=\"_blank\">Koschei</a> with his needle. It is, as you remember, in the egg, and it is in the duck, which is in the rabbit, tucked into the chest, and further along the chain of nesting.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "matryoshka 30 october 2021 · 1с work a few days ago, there was a link to 1ci certificate in the team chat (a colleague passed their junior course ). i go over and see no auth form, no errors — i just get a pdf file. everything is ok, right? well, then i open the file: honestly, i am even delighted. we need to implement this ux in our products: you press, for example, the “print” button for a document, and it gives you a pdf! and inside it — a link to another pdf! and inside it — “entity is not filled”, so go fill. you can sell it as a russian way of dealing with errors. this is, like, for historical reasons! blame all the damned matryoshkas, and koschei with his needle. it is, as you remember, in the egg, and it is in the duck, which is in the rabbit, tucked into the chest, and further along the chain of nesting.",
    "tags": [
      "1c",
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/2nd-monitor-and-console\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Second Monitor Management via Console\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>16 October 2021</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"workplace\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Workplace</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I have two monitors. I use the second one during meetings in Zoom or when playing together with friends (in both cases it's convenient to bring the people's cameras there). There are more examples when it's useful, but often the device is simply idle. In order not to be distracted, I decided to turn it off.</p>\n<p>What is the ambush here: it is inconvenient to enable or disable the second monitor via OS (a few clicks, and you need to scroll, and all the time you get confused where to go — in “Screen settings” or “Personalization”). I would like one command, and the command on a hotkey. And, ideally, from the script to rule all this.</p>\n<p>I did not find the script, but I found a ready-made utility — MultiMonitorTool. It's free. Works under the Windows 10 without problems. The commands below turn on / off the 2nd monitor:</p>\n<pre><code>MultiMonitorTool.exe / disable 2\nMultiMonitorTool.exe / enable 2\nMultiMonitorTool.exe / switch 2\n</code></pre>\n<p>For some reason, when you turn on a monitor via enable or switch, it's positioned incorrectly sometimes (for example, before it was turned off, it was on the right, and after turning it on, it was on the left). This is fixable. First, let's save the configuration at the moment when both monitors are on:</p>\n<pre><code>MultiMonitorTool.exe / SaveConfig Monitors.cfg\n</code></pre>\n<p>And then, when you need to turn on the monitor, load the saved config:</p>\n<pre><code>MultiMonitorTool.exe / LoadConfig Monitors.cfg\n</code></pre>\n<p>The utility can do a lot more (for example, one of the commands flips application windows between monitors). Follow the link above for the description.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "second monitor management via console 16 october 2021 · workplace i have two monitors. i use the second one during meetings in zoom or when playing together with friends (in both cases it's convenient to bring the people's cameras there). there are more examples when it's useful, but often the device is simply idle. in order not to be distracted, i decided to turn it off. what is the ambush here: it is inconvenient to enable or disable the second monitor via os (a few clicks, and you need to scroll, and all the time you get confused where to go — in “screen settings” or “personalization”). i would like one command, and the command on a hotkey. and, ideally, from the script to rule all this. i did not find the script, but i found a ready-made utility — multimonitortool. it's free. works under the windows 10 without problems. the commands below turn on / off the 2nd monitor: multimonitortool.exe / disable 2 multimonitortool.exe / enable 2 multimonitortool.exe / switch 2 for some reason, when you turn on a monitor via enable or switch, it's positioned incorrectly sometimes (for example, before it was turned off, it was on the right, and after turning it on, it was on the left). this is fixable. first, let's save the configuration at the moment when both monitors are on: multimonitortool.exe / saveconfig monitors.cfg and then, when you need to turn on the monitor, load the saved config: multimonitortool.exe / loadconfig monitors.cfg the utility can do a lot more (for example, one of the commands flips application windows between monitors). follow the link above for the description.",
    "tags": [
      "workplace"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/top-salaries\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Top Salaries\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>2 October 2021</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <blockquote>\n<p>There is a path to a CSV file. You need to open it, read the header (first line), find the Salary column and display the top 10 salaries.</p>\n<p><em><a href=\"https://t.me/nikitonsky_chat/26402\" rel=\"noopener noreferrer\" target=\"_blank\">Link</a></em></p>\n</blockquote>\n<p>Threw in my <a href=\"https://gist.github.com/tonsky/881d5d8c4fbed818fe2905a7591a91e0#file-vkostyanetsky-1c\" rel=\"noopener noreferrer\" target=\"_blank\">two cents</a> just to complete the picture. If you forget about stability, readability, and performance — you can cut it in half. Here it was obvious from the very beginning that it would be shorter in bash and clearer in Python, so I just wrote it as I was used to.</p>\n<p>What was useful: there are a bunch of examples in other languages ​​in the comments to the post. Frankly speaking, I haven’t come across some of them; it was really curious to look at the syntax and try to understand the way to solve the task.</p>\n<p>In general, the whole story reminded Eugene Stepanishev's <a href=\"https://bolknote.ru/tags/beer99/\" rel=\"noopener noreferrer\" target=\"_blank\">hobby</a> — to write the output of the American “beer song” in all languages ​​in a row. By the way, Tonsky's issue looks as fun for me too — too trivial to seriously compare something on its basis.</p>\n<p>What was funny: for a couple of <a href=\"https://t.me/nikitonsky_pub/201?comment=26703\" rel=\"noopener noreferrer\" target=\"_blank\">colleagues</a>, the 1C code caused such acute vision problems that they considered it necessary to report it :-) I partly understand the desire to assert itself on the stereotype “1C is bad, mkay?”, but it's the wrong case. The preference in syntax is nothing but a matter of taste, and besides it, the solution in 1C is no different from solutions in any other language without a built-in library for parsing CSV.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "top salaries 2 october 2021 · 1с there is a path to a csv file. you need to open it, read the header (first line), find the salary column and display the top 10 salaries. link threw in my two cents just to complete the picture. if you forget about stability, readability, and performance — you can cut it in half. here it was obvious from the very beginning that it would be shorter in bash and clearer in python, so i just wrote it as i was used to. what was useful: there are a bunch of examples in other languages ​​in the comments to the post. frankly speaking, i haven’t come across some of them; it was really curious to look at the syntax and try to understand the way to solve the task. in general, the whole story reminded eugene stepanishev's hobby — to write the output of the american “beer song” in all languages ​​in a row. by the way, tonsky's issue looks as fun for me too — too trivial to seriously compare something on its basis. what was funny: for a couple of colleagues , the 1c code caused such acute vision problems that they considered it necessary to report it :-) i partly understand the desire to assert itself on the stereotype “1c is bad, mkay?”, but it's the wrong case. the preference in syntax is nothing but a matter of taste, and besides it, the solution in 1c is no different from solutions in any other language without a built-in library for parsing csv.",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/build-on-github\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Building The Blog on GitHub\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>29 September 2021</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"blog\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Blog</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>For the last year this site has been working on a simple platform: statics, GitHub and my domain. All the pages were pre-generated and placed in a GitHub's <a href=\"https://github.com/vkostyanetsky/kostyanetsky.me-static\" rel=\"noopener noreferrer\" target=\"_blank\">repository</a> with <a href=\"https://pages.github.com/\" rel=\"noopener noreferrer\" target=\"_blank\">GitHub Pages</a> enabled.</p>\n<p>I collected statics using a script. It was working with a list of text files, pedantically arranged in folders. The script rummaged through them and generated HTML files. Then I manually pushed them to the repository.</p>\n<p>This scheme worked well, but the number of clicks annoyed me. Here is the script pull, and there is the script pull, and then you have to tinker with the git. I wanted it to be simpler.</p>\n<p>At some point, I figured out that not only the deployment of statics, but also the assembly can be shifted onto the shoulders of GitHub. I put together some thoughts and added two more repositories:</p>\n<ol>\n<li>A <a href=\"https://github.com/vkostyanetsky/kostyanetsky.me\" rel=\"noopener noreferrer\" target=\"_blank\">repository</a> of initial data. Here I put the content of the site: the text files and a bit of metadata (page titles, dates of pages creation, tags for notes, and so on).</li>\n<li>A <a href=\"https://github.com/vkostyanetsky/BlogBuilder\" rel=\"noopener noreferrer\" target=\"_blank\">repository</a> of the script for generating statics. In addition to the script itself, I put various assets here (icons, styles, manifests — in general, everything that doesn't need to be generated every time, but you have to “put” it next to the resulting HTML).</li>\n</ol>\n<p>Then I wrote an <a href=\"https://github.com/vkostyanetsky/kostyanetsky.me/blob/main/.github/workflows/main.yml\" rel=\"noopener noreferrer\" target=\"_blank\">action</a> that wakes up with every push to the repository with the initial data. Shortly, its logic:</p>\n<ol>\n<li>Clone the repository with statics and the repository with the generating script;</li>\n<li>Update the repository with statics using the generating script;</li>\n<li>Push changes of the repository with static to the main branch;</li>\n<li>Notify the owner (me) via Telegram.</li>\n</ol>\n<p>Voilà! Now, whenever the repository with the original data changes, the GitHub immediately (well, as soon as possible — within a minute) updates the repository with the site and deploys it via GitHub Pages. A bonus is a web interface to manage the site (in fact, the GitHub site). No Code. :-)</p>\n<p>While I'm at it, I added links for editing pages directly to the site (the pencil icon in the upper-right corner). This is intended as a convenience for me, but anyone who finds a typo can send a PR. Thank you in advance!</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "building the blog on github 29 september 2021 · blog done for the last year this site has been working on a simple platform: statics, github and my domain. all the pages were pre-generated and placed in a github's repository with github pages enabled. i collected statics using a script. it was working with a list of text files, pedantically arranged in folders. the script rummaged through them and generated html files. then i manually pushed them to the repository. this scheme worked well, but the number of clicks annoyed me. here is the script pull, and there is the script pull, and then you have to tinker with the git. i wanted it to be simpler. at some point, i figured out that not only the deployment of statics, but also the assembly can be shifted onto the shoulders of github. i put together some thoughts and added two more repositories: a repository of initial data. here i put the content of the site: the text files and a bit of metadata (page titles, dates of pages creation, tags for notes, and so on). a repository of the script for generating statics. in addition to the script itself, i put various assets here (icons, styles, manifests — in general, everything that doesn't need to be generated every time, but you have to “put” it next to the resulting html). then i wrote an action that wakes up with every push to the repository with the initial data. shortly, its logic: clone the repository with statics and the repository with the generating script; update the repository with statics using the generating script; push changes of the repository with static to the main branch; notify the owner (me) via telegram. voilà! now, whenever the repository with the original data changes, the github immediately (well, as soon as possible — within a minute) updates the repository with the site and deploys it via github pages. a bonus is a web interface to manage the site (in fact, the github site). no code. :-) while i'm at it, i added links for editing pages directly to the site (the pencil icon in the upper-right corner). this is intended as a convenience for me, but anyone who finds a typo can send a pr. thank you in advance!",
    "tags": [
      "blog",
      "done"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/diablo\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Diablo\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>22 September 2021</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/kVd6qeWoAxg\" width=\"560\"></iframe>\n<p>The nice episode of the “We Are Doomed” IT podcast about developer burnout. No insights, but you can hear something useful for yourself. I liked the analogy with video games, somewhere close to the middle:</p>\n<blockquote>\n<p>There was such a game — Diablo. RPG, all sorts of spells, you know. A character has mana and health, and when you have no mana to cast… Ha, I sound like a nerd! Well, nevermind. Briefly speaking, when you have no mana to cast, it's taken from your health.</p>\n<p><em>— Doctor Cat</em></p>\n</blockquote>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "diablo 22 september 2021 · work videogames the nice episode of the “we are doomed” it podcast about developer burnout. no insights, but you can hear something useful for yourself. i liked the analogy with video games, somewhere close to the middle: there was such a game — diablo. rpg, all sorts of spells, you know. a character has mana and health, and when you have no mana to cast… ha, i sound like a nerd! well, nevermind. briefly speaking, when you have no mana to cast, it's taken from your health. — doctor cat",
    "tags": [
      "work",
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/hammer-and-nails\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Hammer &amp; Nails\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>15 September 2021</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"code-smell\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Code Smell</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I was developing payment documents in our configuration last week and came across an incredibly redundant solution to a primitive problem. Sorry, I can't keep to myself.</p>\n<p>Just imagine: you have a document, which contains several tabular sections. Each of them has a comment field. You make a print form for this document; if at least one row of any TS contains a comment — you need to use one template 1, if there are no comments — template 2.</p>\n<p>The task is pretty primitive, isn't it? All of us have done something like this a million times. Just read the selection, use IsBlankString() on the comment field and load the appropriate template. Coffee time!</p>\n<p>However, instead of a short cycle, I saw this:</p>\n<script src=\"https://gist.github.com/vkostyanetsky/e870d5bb3d2f23d93f3d17001eaef59b.js\">Gist</script>\n<p>There is a chain of queries, in the lowest of which we scan all the TS (which, I remind you, we just raked out for printing). We are looking for comments in them, then we group the result several times and return it to the script.</p>\n<p>Well, I'm not even talking about the load on the DBMS (I would venture to guess that this trick doesn't give a noticeable effect — after all, the selection is going to be small). It's just… Well… Checking a selection of rows is, like, five lines of code. Clear, simple, short, Sonar has no room to swear. How could you give birth to this? Because of great love for queries?</p>\n<p>You know what? I bet that it's the correct answer. I can almost see this programmer, who has just mastered the query language more or less tolerably. He is in the absolute delight of new opportunities, so… If all you have is a hammer, everything around looks like nails.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "hammer & nails 15 september 2021 · 1с work code smell i was developing payment documents in our configuration last week and came across an incredibly redundant solution to a primitive problem. sorry, i can't keep to myself. just imagine: you have a document, which contains several tabular sections. each of them has a comment field. you make a print form for this document; if at least one row of any ts contains a comment — you need to use one template 1, if there are no comments — template 2. the task is pretty primitive, isn't it? all of us have done something like this a million times. just read the selection, use isblankstring() on the comment field and load the appropriate template. coffee time! however, instead of a short cycle, i saw this: there is a chain of queries, in the lowest of which we scan all the ts (which, i remind you, we just raked out for printing). we are looking for comments in them, then we group the result several times and return it to the script. well, i'm not even talking about the load on the dbms (i would venture to guess that this trick doesn't give a noticeable effect — after all, the selection is going to be small). it's just… well… checking a selection of rows is, like, five lines of code. clear, simple, short, sonar has no room to swear. how could you give birth to this? because of great love for queries? you know what? i bet that it's the correct answer. i can almost see this programmer, who has just mastered the query language more or less tolerably. he is in the absolute delight of new opportunities, so… if all you have is a hammer, everything around looks like nails.",
    "tags": [
      "1c",
      "work",
      "code-smell"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/no-comment\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                No Comment\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>8 September 2021</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"code-smell\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Code Smell</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I did not notice when I gave up the habit of pedantically commenting on every method with which I have to work. This practice has some clever name for sure, but I don't care, to be honest. I mean the style when a description is added to every meaningful block of code, like this:</p>\n<script src=\"https://gist.github.com/vkostyanetsky/afae4dee09d639f34156d6c02b29c2a5.js\">Gist</script>\n<p>The meaning here is simple: when you dig in some dense legacy and run back and forth between chaotically scattered, big procedures — it is rather difficult to keep the logic of each of them in your head. The next cup of coffee will wash everything away. Therefore, such notes greatly speed up orientation on the ground, and the more time passes between approaches to the code, the more noticeable the effect.</p>\n<p>However, at some point it became clear that this know-how is just a crutch supporting the frankly crappy code design. If you have a long procedure or function - take a breath, sit down and cut the fatty one into smaller methods. You will save both time and nerves, and you will figure out the code faster, and you will delight SonarCube.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "no comment 8 september 2021 · 1с code smell i did not notice when i gave up the habit of pedantically commenting on every method with which i have to work. this practice has some clever name for sure, but i don't care, to be honest. i mean the style when a description is added to every meaningful block of code, like this: the meaning here is simple: when you dig in some dense legacy and run back and forth between chaotically scattered, big procedures — it is rather difficult to keep the logic of each of them in your head. the next cup of coffee will wash everything away. therefore, such notes greatly speed up orientation on the ground, and the more time passes between approaches to the code, the more noticeable the effect. however, at some point it became clear that this know-how is just a crutch supporting the frankly crappy code design. if you have a long procedure or function - take a breath, sit down and cut the fatty one into smaller methods. you will save both time and nerves, and you will figure out the code faster, and you will delight sonarcube.",
    "tags": [
      "1c",
      "code-smell"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/slow-notification\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                A Slow Notification\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>18 August 2021</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"optimization\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Optimization</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p><a href=\"https://twitter.com/iamhellcat/status/1427626118635470866\" rel=\"noopener noreferrer\" target=\"_blank\"><img alt=\"Tweet\" src=\"https://kostyanetsky.me/notes/slow-notification/snap-tweet-iamhellcat-1427626118635470866.png\"/></a></p>\n<p>This tweet reminded me of a job I once worked on. A client gets in touch: 1C is slow, do something. We ask a few questions. Okay, not all of 1C, just one operation.</p>\n<p>They’re running a heavily rewritten Trade Management configuration, and the slow bit is custom code. Inside, it’s queries nested all over the place, a lot of messing about with value tables, some dubious calculations, and a bunch of server procedures seven hundred lines long each. We can’t copy the infobase, the technological log is unavailable, and DBMS and performance counter access are blocked. Debugging on the 1C server is off, and enabling it isn’t an option.</p>\n<p>A mess. How can we find where it bogs down? Well, we can change the configuration; that’s something. I time the operation: yes, it thinks about something for a couple of minutes. Excellent! Rubbing my hands, I narrow the search by adding a whole pile of measurements to the most suspicious sections.</p>\n<p>And here’s the funny part: nothing’s slow! The code doesn’t exactly fly, but we’re nowhere near minutes. For something this complicated, the timings look fine. Could it be serialization between client and server? I go through the server procedure carefully. Nope, nothing’s being passed back. Everything on the server stays there.</p>\n<p>I move to the client code. What could possibly be slow here? Simplified, it looked something like this:</p>\n<script src=\"https://gist.github.com/vkostyanetsky/df0b17526991bbac3b3df1c75dfa154f.js\">Gist</script>\n<p>I stared at that code like an idiot for about ten minutes. Eventually, I asked a colleague, who told me something surprising: Notify() doesn’t just send notifications to every open form, it <strong>waits</strong> for their notification handlers to finish.</p>\n<p>That blew my mind. I went digging and eventually found a form that caught the operation-completed event and immediately refreshed its dynamic lists. A query in one of those lists caused the delay: a subquery inside a subquery inside a subquery, plus a pile of joins “through a dot.” Nothing interesting after that.</p>\n<p>Well, there you have it :-) Notify with care!</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "a slow notification 18 august 2021 · 1с work optimization this tweet reminded me of a job i once worked on. a client gets in touch: 1c is slow, do something. we ask a few questions. okay, not all of 1c, just one operation. they’re running a heavily rewritten trade management configuration, and the slow bit is custom code. inside, it’s queries nested all over the place, a lot of messing about with value tables, some dubious calculations, and a bunch of server procedures seven hundred lines long each. we can’t copy the infobase, the technological log is unavailable, and dbms and performance counter access are blocked. debugging on the 1c server is off, and enabling it isn’t an option. a mess. how can we find where it bogs down? well, we can change the configuration; that’s something. i time the operation: yes, it thinks about something for a couple of minutes. excellent! rubbing my hands, i narrow the search by adding a whole pile of measurements to the most suspicious sections. and here’s the funny part: nothing’s slow! the code doesn’t exactly fly, but we’re nowhere near minutes. for something this complicated, the timings look fine. could it be serialization between client and server? i go through the server procedure carefully. nope, nothing’s being passed back. everything on the server stays there. i move to the client code. what could possibly be slow here? simplified, it looked something like this: i stared at that code like an idiot for about ten minutes. eventually, i asked a colleague, who told me something surprising: notify() doesn’t just send notifications to every open form, it waits for their notification handlers to finish. that blew my mind. i went digging and eventually found a form that caught the operation-completed event and immediately refreshed its dynamic lists. a query in one of those lists caused the delay: a subquery inside a subquery inside a subquery, plus a pile of joins “through a dot.” nothing interesting after that. well, there you have it :-) notify with care!",
    "tags": [
      "1c",
      "work",
      "optimization"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/pavel-chistov-passed-away\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Pavel Chistov Has Passed Away\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>1 August 2021</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Pavel Chistov died of heart failure on Friday evening. If you don’t know who he was, here is an <a href=\"https://infostart.ru/journal/news/news/ushel-iz-zhizni-pavel-chistov_1490373/\" rel=\"noopener noreferrer\" target=\"_blank\">obituary</a>. Though if you read this blog, you probably do.</p>\n<p><a href=\"https://t.me/nixel2007_thoughts/205\" rel=\"noopener noreferrer\" target=\"_blank\">Nikita Gryzlov</a>, <a href=\"https://t.me/ilyaleontyevpro1c/38946\" rel=\"noopener noreferrer\" target=\"_blank\">Ilya Leontyev</a>, and <a href=\"https://t.me/cio2cdto/514\" rel=\"noopener noreferrer\" target=\"_blank\">Sergey Gorshenin</a> are raising money to support Pavel’s family. His widow’s card number is also listed at the end of the obituary linked above.</p>\n<p>Please take care of yourselves.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "pavel chistov has passed away 1 august 2021 · 1с pavel chistov died of heart failure on friday evening. if you don’t know who he was, here is an obituary . though if you read this blog, you probably do. nikita gryzlov , ilya leontyev , and sergey gorshenin are raising money to support pavel’s family. his widow’s card number is also listed at the end of the obituary linked above. please take care of yourselves.",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/longest-queries-using-python\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Finding Long Queries with Python\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>18 Jule 2021</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"bash\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Bash</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"python\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Python</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I’ve published a <a href=\"https://github.com/vkostyanetsky/ScriptsFor1C/blob/master/Технологический журнал/LongestQueries.py\" rel=\"noopener noreferrer\" target=\"_blank\">Python script</a> for finding long-running queries in the 1C technological log. I wrote it in a fit of despair: I couldn’t understand why my <a href=\"https://github.com/vkostyanetsky/ScriptsFor1C/blob/master/Технологический журнал/LongestQueries.sh\" rel=\"noopener noreferrer\" target=\"_blank\">trusty Bash script</a> reported an average execution time higher than the maximum for one query.</p>\n<p>The problem turned out to be gawk. With some log events, it couldn’t work out the duration: it tried to convert a string to a number, failed, and… Oh, no! Of course it didn’t throw an exception! It simply treated those strings as zero and calmly carried on.</p>\n<p>The fix was even sillier than the problem: I simply <a href=\"https://github.com/vkostyanetsky/ScriptsFor1C/commit/946f271d6ea0c1e618b180cee11ae91ce4632c18\" rel=\"noopener noreferrer\" target=\"_blank\">added</a> an explicit string-to-number conversion, and everything worked. How the hell is an explicit conversion different from an implicit one in gawk-land? And, more importantly, why?</p>\n<p>Well, that was a circus. At least I got a new script out of it, and it goes easier on memory and CPU too. In the Bash version, I used three collections to calculate execution count, total execution time, and maximum execution time, each keyed by query text and context. All three had to be updated and kept in memory.</p>\n<p>That works until you get into hundreds of thousands of entries. Then the collections start eating gigabytes of RAM, and searching them burns through CPU time. The new script is more straightforward: one collection stores all the data for each query.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "finding long queries with python 18 jule 2021 · 1с bash python i’ve published a python script for finding long-running queries in the 1c technological log. i wrote it in a fit of despair: i couldn’t understand why my trusty bash script reported an average execution time higher than the maximum for one query. the problem turned out to be gawk. with some log events, it couldn’t work out the duration: it tried to convert a string to a number, failed, and… oh, no! of course it didn’t throw an exception! it simply treated those strings as zero and calmly carried on. the fix was even sillier than the problem: i simply added an explicit string-to-number conversion, and everything worked. how the hell is an explicit conversion different from an implicit one in gawk-land? and, more importantly, why? well, that was a circus. at least i got a new script out of it, and it goes easier on memory and cpu too. in the bash version, i used three collections to calculate execution count, total execution time, and maximum execution time, each keyed by query text and context. all three had to be updated and kept in memory. that works until you get into hundreds of thousands of entries. then the collections start eating gigabytes of ram, and searching them burns through cpu time. the new script is more straightforward: one collection stores all the data for each query.",
    "tags": [
      "1c",
      "bash",
      "python"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/why-not-bash\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Why Not Bash?\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>3 Jule 2021</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"bash\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Bash</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"python\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Python</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>In my previous note, I discussed tasks where Bash is the perfect tool: minimal constraints and simple requirements. I also mentioned that sometimes it can’t cope at all.</p>\n<p>Here’s one I actually ran into. Suppose we have around seventy gigabytes of 1C technological logs and need to rank exception descriptions from most to least frequent.</p>\n<p>Easy, right? Extract EXCP, get Descr, count repetitions. I’d even written the necessary <a href=\"https://github.com/vkostyanetsky/ScriptsFor1C/blob/master/Технологический журнал/FrequentExceptions.sh\" rel=\"noopener noreferrer\" target=\"_blank\">script</a> before. I run it and patiently wait…</p>\n<p>Know how long it took? Neither do I: after a day, I stopped it and investigated. Something was getting stuck inside gawk: it was hammering the CPU, with cat occasionally chipping in to read more data.</p>\n<p><img alt=\"Processes\" src=\"https://kostyanetsky.me/notes/why-not-bash/procexp64.png\"/></p>\n<p>Well, crap. I thought about it and <a href=\"https://github.com/vkostyanetsky/ScriptsFor1C/blob/master/Технологический журнал/FrequentExceptions.py\" rel=\"noopener noreferrer\" target=\"_blank\">rewrote</a> the script in Python. The new version finished in fifteen minutes and gave me:</p>\n<ol>\n<li>A ranking of exception descriptions;</li>\n<li>A script I can read six months later without Google;</li>\n<li>Confidence that I can add two or three conditions without accidentally summoning Satan through a combination of operators and flags.</li>\n</ol>\n<p>Of course, I could have optimized the Bash version. The array lookups are probably what’s slow: the more descriptions you’ve collected, the longer each search takes, growing linearly with the array size. I could change the collection approach, using gawk only to extract descriptions and passing the results to sort and uniq.</p>\n<p>But that starts to resemble the <a href=\"https://kostyanetsky.me/notes/why-not-bash/but-why.jpg\" rel=\"noopener noreferrer\" target=\"_blank\">meme</a> about a loaf of bread: you can build a trolleybus out of it, sure, but why? Come on, I just need to solve the problem. Python already did that with flying colors, saving me a lot of time and nerves.</p>\n<p>That’s my point. We know Bash has its quirks, and often we can live with them. We know what it’s good at too. But sometimes the question becomes: is getting a solution specifically in Bash worth spending two hours wrestling with utilities, parameters, manuals, and Stack Overflow posts?</p>\n<p><a href=\"https://twitter.com/EffinBirds/status/1408560771877965825\" rel=\"noopener noreferrer\" target=\"_blank\"><img alt=\"Tweet\" src=\"https://kostyanetsky.me/notes/why-not-bash/snap-tweet-EffinBirds-1408560771877965825.png\"/></a></p>\n<p>That’s why not Bash.</p>\n<p>UPDATE: A good <a href=\"https://grishaev.me/no-bash/\" rel=\"noopener noreferrer\" target=\"_blank\">post</a> by Ivan Grishaev on the same subject.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "why not bash? 3 jule 2021 · 1с bash python in my previous note, i discussed tasks where bash is the perfect tool: minimal constraints and simple requirements. i also mentioned that sometimes it can’t cope at all. here’s one i actually ran into. suppose we have around seventy gigabytes of 1c technological logs and need to rank exception descriptions from most to least frequent. easy, right? extract excp, get descr, count repetitions. i’d even written the necessary script before. i run it and patiently wait… know how long it took? neither do i: after a day, i stopped it and investigated. something was getting stuck inside gawk: it was hammering the cpu, with cat occasionally chipping in to read more data. well, crap. i thought about it and rewrote the script in python. the new version finished in fifteen minutes and gave me: a ranking of exception descriptions; a script i can read six months later without google; confidence that i can add two or three conditions without accidentally summoning satan through a combination of operators and flags. of course, i could have optimized the bash version. the array lookups are probably what’s slow: the more descriptions you’ve collected, the longer each search takes, growing linearly with the array size. i could change the collection approach, using gawk only to extract descriptions and passing the results to sort and uniq. but that starts to resemble the meme about a loaf of bread: you can build a trolleybus out of it, sure, but why? come on, i just need to solve the problem. python already did that with flying colors, saving me a lot of time and nerves. that’s my point. we know bash has its quirks, and often we can live with them. we know what it’s good at too. but sometimes the question becomes: is getting a solution specifically in bash worth spending two hours wrestling with utilities, parameters, manuals, and stack overflow posts? that’s why not bash. update: a good post by ivan grishaev on the same subject.",
    "tags": [
      "1c",
      "bash",
      "python"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/why-bash\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Why Bash?\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>23 June 2021</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"bash\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Bash</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"python\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Python</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I occasionally see colleagues asking: is 1C still messing around with Bash? Why not Python? Or PowerShell, at least? Weirdos!</p>\n<p>Yes, Bash isn’t native to Windows, which is native territory for 1C, and getting it onto Windows is a job in itself. Yes, as a task grows more complicated, script readability drops exponentially. Yes, Bash simply can’t handle some tasks.</p>\n<p>But its main advantage is that, for many 1C technological log analysis tasks, it is the simplest and fastest solution. Like an old screwdriver your grandfather used: always at hand, scratched, nicked, and a little awkward, but still working perfectly.</p>\n<p>An example? Suppose we need to extract exceptions from the log. Let’s keep it simple and say we only need the first line of each event. We get <a href=\"https://gist.github.com/vkostyanetsky/f95b30e2f09edd64d9e7a39575bb289a\" rel=\"noopener noreferrer\" target=\"_blank\">something like this</a> in Python.</p>\n<p>You’ll say it can easily be cut in half, or even to a third. After all, it’s just a one-off job. Why fuss about readability and predictability?</p>\n<p>Agreed! But let’s first solve the same task in Bash:</p>\n<pre><code>grep -r --include \"*.log\" ',EXCP,' &gt; result.txt\n</code></pre>\n<p>That’s why Bash.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "why bash? 23 june 2021 · 1с bash python i occasionally see colleagues asking: is 1c still messing around with bash? why not python? or powershell, at least? weirdos! yes, bash isn’t native to windows, which is native territory for 1c, and getting it onto windows is a job in itself. yes, as a task grows more complicated, script readability drops exponentially. yes, bash simply can’t handle some tasks. but its main advantage is that, for many 1c technological log analysis tasks, it is the simplest and fastest solution. like an old screwdriver your grandfather used: always at hand, scratched, nicked, and a little awkward, but still working perfectly. an example? suppose we need to extract exceptions from the log. let’s keep it simple and say we only need the first line of each event. we get something like this in python. you’ll say it can easily be cut in half, or even to a third. after all, it’s just a one-off job. why fuss about readability and predictability? agreed! but let’s first solve the same task in bash: grep -r --include \"*.log\" ',excp,' > result.txt that’s why bash.",
    "tags": [
      "1c",
      "bash",
      "python"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/metadata-not-found\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Metadata Not Found\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>8 June 2021</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p><img alt=\"Metadata not found\" src=\"https://kostyanetsky.me/notes/metadata-not-found/error-ru.png\"/></p>\n<p>I doubt many people have run into this one. First, you need to use the platform’s built-in data history, which isn’t especially popular. Some people are tied to the Standard Subsystems Library, which still uses familiar versioning through information registers; others don’t like how it’s implemented, and to be fair, the performance does have some rough edges.</p>\n<p>Second, you need to disable data history for a metadata object and delete its accumulated object versions <strong>before</strong> new changes move from the buffer into the main table.</p>\n<p>Here’s how data history works. It’s off by default. If you have the right permissions, you can turn it on for the objects you need: constants, catalogs, documents, and so on. The platform then records exactly what changes in those objects. It does this in two stages: first, a relatively fast write to an intermediate buffer, _DataHistoryQueue0; then, when UpdateHistory() is called, the data moves to the main version table, _DataHistoryVersions, and shows up in the app.</p>\n<p>History can be updated immediately on writing, but to shorten the transaction, that step is usually moved into a scheduled job. So the data moves out of the buffer every so often, say once every five minutes. If, between an object’s data change and the history update, you disable its history and delete its versions, UpdateHistory() throws an exception: it tries to move changes from the buffer to the main table, but can’t match them up with the data already there.</p>\n<p>Here’s some <a href=\"https://gist.github.com/vkostyanetsky/ca766fe281425953e0e2bbfe12fc70e2\" rel=\"noopener noreferrer\" target=\"_blank\">code</a> that reproduces the problem with the Items catalog on platform 8.3.17.1989. Swap in any other object that supports data history; the result is the same.</p>\n<p><strong>How do you avoid the error?</strong> Obviously, call UpdateHistory() immediately before disabling history for the object. Ideally, do this when users aren’t working in the system: someone’s transaction could slip in between updating and disabling history and cause the same problem. Exclusive mode can guarantee that won’t happen.</p>\n<p>An exclusive lock on the object’s table also comes to mind, but the documentation advises against calling UpdateHistory() inside transactions, so I’m not sure about that.</p>\n<p><strong>How do you fix the error?</strong> Enable data history for the affected object, update history, and disable it again. Back out, then try again properly, so to speak.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "metadata not found 8 june 2021 · 1с i doubt many people have run into this one. first, you need to use the platform’s built-in data history, which isn’t especially popular. some people are tied to the standard subsystems library, which still uses familiar versioning through information registers; others don’t like how it’s implemented, and to be fair, the performance does have some rough edges. second, you need to disable data history for a metadata object and delete its accumulated object versions before new changes move from the buffer into the main table. here’s how data history works. it’s off by default. if you have the right permissions, you can turn it on for the objects you need: constants, catalogs, documents, and so on. the platform then records exactly what changes in those objects. it does this in two stages: first, a relatively fast write to an intermediate buffer, _datahistoryqueue0; then, when updatehistory() is called, the data moves to the main version table, _datahistoryversions, and shows up in the app. history can be updated immediately on writing, but to shorten the transaction, that step is usually moved into a scheduled job. so the data moves out of the buffer every so often, say once every five minutes. if, between an object’s data change and the history update, you disable its history and delete its versions, updatehistory() throws an exception: it tries to move changes from the buffer to the main table, but can’t match them up with the data already there. here’s some code that reproduces the problem with the items catalog on platform 8.3.17.1989. swap in any other object that supports data history; the result is the same. how do you avoid the error? obviously, call updatehistory() immediately before disabling history for the object. ideally, do this when users aren’t working in the system: someone’s transaction could slip in between updating and disabling history and cause the same problem. exclusive mode can guarantee that won’t happen. an exclusive lock on the object’s table also comes to mind, but the documentation advises against calling updatehistory() inside transactions, so i’m not sure about that. how do you fix the error? enable data history for the affected object, update history, and disable it again. back out, then try again properly, so to speak.",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/rclone-abuser\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                A Script to Sync With NAS\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>7 June 2021</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"python\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Python</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"workplace\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Workplace</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I posted on GitHub a Python <a href=\"https://github.com/vkostyanetsky/RCloneAbuser\" rel=\"noopener noreferrer\" target=\"_blank\">script</a> which I use to sync files between my PC and a NAS. I have a Synology DS220j; a lot of software comes with it, including a backup utility. However, it seems to have been made for show only: the program began to fail even at the setup stage, so I lost confidence in it pretty fast.</p>\n<p>I suffered with the problem for some time and eventually returned to the good old <a href=\"https://rclone.org\" rel=\"noopener noreferrer\" target=\"_blank\">rclone</a>, which has only two problems for me. Firstly, I can't normally connect to an SMB share: yes, the login and password can be saved in Windows and rclone will use them, but OS will forget it as soon as possible. I got out of the situation by connecting my NAS as an external drive.</p>\n<p>Secondly, I had many files and folders to sync: a directory here, a directory there, a config from there, a profile from here… In order not to produce spaghetti code, I wrote a simple script that takes sources and receivers from a config file, and then executes rclone for each pair.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "a script to sync with nas 7 june 2021 · done python workplace i posted on github a python script which i use to sync files between my pc and a nas. i have a synology ds220j; a lot of software comes with it, including a backup utility. however, it seems to have been made for show only: the program began to fail even at the setup stage, so i lost confidence in it pretty fast. i suffered with the problem for some time and eventually returned to the good old rclone , which has only two problems for me. firstly, i can't normally connect to an smb share: yes, the login and password can be saved in windows and rclone will use them, but os will forget it as soon as possible. i got out of the situation by connecting my nas as an external drive. secondly, i had many files and folders to sync: a directory here, a directory there, a config from there, a profile from here… in order not to produce spaghetti code, i wrote a simple script that takes sources and receivers from a config file, and then executes rclone for each pair.",
    "tags": [
      "done",
      "python",
      "workplace"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/1c-expert\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Preparing for the 1C:Expert Exam\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>25 May 2021</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>In mid-May, I passed the 1C Expert exam on the technical side of large implementations. I’d spent almost two years preparing, so I’m damn glad I finally got through it.</p>\n<p>There’s tons of material online about the exam and everything around it, from Viktor Bogachev’s <a href=\"https://uc1.1c.ru/course/podgotovka-k-1s-ekspertu-po-tehnologicheskim-voprosam-osnovnoj-kurs/\" rel=\"noopener noreferrer\" target=\"_blank\">course</a> to, say, a Telegram <a href=\"https://t.me/OneC_Expert\" rel=\"noopener noreferrer\" target=\"_blank\">chat</a> on the subject. So there’s no shortage of answers to the question in the title. But there are a couple of ways this can mess with your head that people rarely talk about. It helps to know about them beforehand.</p>\n<h2>Not Enough Dopamine</h2>\n<p>This exam is hard. Preparing can take a long time, and so can passing it: there’s a good chance you’ll need several attempts. I passed on my second try, but it varies. Some people I know passed on their third, fifth, or even eighth attempt.</p>\n<p>You can end up putting in a huge effort again and again with nothing to show for it. Eventually, your brain decides this is something to avoid: it never works out, it feels pointless, and it makes you miserable. You can guess what that does to your chances of passing.</p>\n<p>That’s why it’s better to treat preparation as a long, risky project: break it up with small tasks you can actually finish and feel good about. Your brain doesn’t draw much distinction between big and small successes, and getting back to the main project will be easier.</p>\n<p>For example, as a distraction I wrote home automation scripts: the <a href=\"https://github.com/vkostyanetsky/BlogBuilder\" rel=\"noopener noreferrer\" target=\"_blank\">static site generator</a> for this website, an organizer based on text files, tools for my home NAS, and other things I’d never got around to. Any tasks will do, including ones that have nothing to do with IT. Unclog the bathroom drain? Excellent idea!</p>\n<h2>Not Enough Memory</h2>\n<p>Unless you deal with 1C performance problems every day, this exam eats up a lot of mental RAM. You have to keep all sorts of things in your head that you’d normally just look up: Microsoft SQL Server trace flags and dynamic view names, PostgreSQL settings and recommended values, the platform’s standard indexes, and so on and so forth. A hu-u-uge pile of information! <em>(gestures to show how huge)</em></p>\n<p>Give your brain enough data, and it starts acting suspiciously like a DBMS with an overflowing buffer cache. In other words, anything you don’t need right now will be evicted from memory. Be prepared to forget the most unexpected things: your apartment number, the neighbor’s dog’s name, your wife’s birthday, and those aren’t even the strangest consequences. While preparing, I could really relate to Johnny Mnemonic, the guy from an ancient cyberpunk film who loaded so much data into his brain that he nearly died :-)</p>\n<p><img alt=\"Don’t do this\" src=\"https://kostyanetsky.me/notes/1c-expert/dont-do-it.jpg\"/></p>\n<p>I see two ways out, both fairly obvious.</p>\n<p>First, get some practice in. Complicated technical details are a hundred times easier to remember when they bring up a picture of the app where you tried them out.</p>\n<p>Second, find something to associate the really tricky bits with. Take Bash! The utility name sed is easier to remember if you know it stands for Stream EDitor. The name cat comes from concatenate, not the animal, but if the animal helps you remember it, use that. Why not?</p>\n<p>Or take the byte order mark: \\xef\\xbb\\xbf, yes. I got it to stick with, don’t laugh, the completely unrelated phrase “Elf Friend BB Best Fight.” I have no idea why my brain needs <s>such ass-backwards</s> such roundabout ways of getting things in, but I’m not complaining. Whatever works!</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "preparing for the 1c:expert exam 25 may 2021 · 1с done in mid-may, i passed the 1c expert exam on the technical side of large implementations. i’d spent almost two years preparing, so i’m damn glad i finally got through it. there’s tons of material online about the exam and everything around it, from viktor bogachev’s course to, say, a telegram chat on the subject. so there’s no shortage of answers to the question in the title. but there are a couple of ways this can mess with your head that people rarely talk about. it helps to know about them beforehand. not enough dopamine this exam is hard. preparing can take a long time, and so can passing it: there’s a good chance you’ll need several attempts. i passed on my second try, but it varies. some people i know passed on their third, fifth, or even eighth attempt. you can end up putting in a huge effort again and again with nothing to show for it. eventually, your brain decides this is something to avoid: it never works out, it feels pointless, and it makes you miserable. you can guess what that does to your chances of passing. that’s why it’s better to treat preparation as a long, risky project: break it up with small tasks you can actually finish and feel good about. your brain doesn’t draw much distinction between big and small successes, and getting back to the main project will be easier. for example, as a distraction i wrote home automation scripts: the static site generator for this website, an organizer based on text files, tools for my home nas, and other things i’d never got around to. any tasks will do, including ones that have nothing to do with it. unclog the bathroom drain? excellent idea! not enough memory unless you deal with 1c performance problems every day, this exam eats up a lot of mental ram. you have to keep all sorts of things in your head that you’d normally just look up: microsoft sql server trace flags and dynamic view names, postgresql settings and recommended values, the platform’s standard indexes, and so on and so forth. a hu-u-uge pile of information! (gestures to show how huge) give your brain enough data, and it starts acting suspiciously like a dbms with an overflowing buffer cache. in other words, anything you don’t need right now will be evicted from memory. be prepared to forget the most unexpected things: your apartment number, the neighbor’s dog’s name, your wife’s birthday, and those aren’t even the strangest consequences. while preparing, i could really relate to johnny mnemonic, the guy from an ancient cyberpunk film who loaded so much data into his brain that he nearly died :-) i see two ways out, both fairly obvious. first, get some practice in. complicated technical details are a hundred times easier to remember when they bring up a picture of the app where you tried them out. second, find something to associate the really tricky bits with. take bash! the utility name sed is easier to remember if you know it stands for stream editor. the name cat comes from concatenate, not the animal, but if the animal helps you remember it, use that. why not? or take the byte order mark: \\xef\\xbb\\xbf, yes. i got it to stick with, don’t laugh, the completely unrelated phrase “elf friend bb best fight.” i have no idea why my brain needs such ass-backwards such roundabout ways of getting things in, but i’m not complaining. whatever works!",
    "tags": [
      "1c",
      "done"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/longest-queries-v2\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                An Updated Script for Finding Long Queries\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>26 April 2021</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"bash\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Bash</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I’ve updated the <a href=\"https://github.com/vkostyanetsky/ScriptsFor1C/blob/master/Технологический журнал/LongestQueries.sh\" rel=\"noopener noreferrer\" target=\"_blank\">script</a> for finding long queries in the platform’s technological log. The old version had a pretty big bug: it happily grouped DBMSSQL events by Sql and Content, but ignored cases where Sql was missing. That isn’t exactly normal for DBMSSQL, but it happens.</p>\n<p>While I was at it, I tidied the code: added formatting and comments, and moved some gawk logic out of the main body into functions. Yes, the script now looks longer than it actually is, but it’s much easier to read.</p>\n<p>Honestly, I don’t understand why Bash veterans cram all their logic into two or three lines. The language isn’t exactly a shining example of readability to begin with; Nikita Prokopov’s Telegram channel has an <a href=\"https://t.me/nikitonsky_pub/55\" rel=\"noopener noreferrer\" target=\"_blank\">excellent piece</a> about that. A page of pipelines without a single line break makes me want to quietly climb out of the window.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "an updated script for finding long queries 26 april 2021 · 1с bash done i’ve updated the script for finding long queries in the platform’s technological log. the old version had a pretty big bug: it happily grouped dbmssql events by sql and content, but ignored cases where sql was missing. that isn’t exactly normal for dbmssql, but it happens. while i was at it, i tidied the code: added formatting and comments, and moved some gawk logic out of the main body into functions. yes, the script now looks longer than it actually is, but it’s much easier to read. honestly, i don’t understand why bash veterans cram all their logic into two or three lines. the language isn’t exactly a shining example of readability to begin with; nikita prokopov’s telegram channel has an excellent piece about that. a page of pipelines without a single line break makes me want to quietly climb out of the window.",
    "tags": [
      "1c",
      "bash",
      "done"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/bunch-of-scrips\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                A Bunch of Scripts\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>24 April 2021</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"bash\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Bash</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I’ve put a few more scripts on GitHub that I wrote recently to dig through the platform’s technological log:</p>\n<ul>\n<li><a href=\"https://github.com/vkostyanetsky/ScriptsFor1C/blob/master/Технологический журнал/FrequentEvents.sh\" rel=\"noopener noreferrer\" target=\"_blank\">Frequent Events</a>. Groups events by name, counts occurrences, and lists them in descending order, from most to least frequent. Not sure this one is much use in practice; I just wanted to note down which cluster process writes which events.</li>\n<li><a href=\"https://github.com/vkostyanetsky/ScriptsFor1C/blob/master/Технологический журнал/ExceptionDescriptions.sh\" rel=\"noopener noreferrer\" target=\"_blank\">Exception Descriptions</a>. Groups EXCP events by the Name field; for each name, it lists the Description values found in exceptions with that name. This script gives you a rough picture of which exceptions are real problems and which are just background noise you can ignore and, for example, filter out in Kibana.</li>\n<li><a href=\"https://github.com/vkostyanetsky/ScriptsFor1C/blob/master/Технологический журнал/LocksByConnectIDAndRegions.sh\" rel=\"noopener noreferrer\" target=\"_blank\">Locks by Connection ID and Region</a>. Useful for finding the culprit behind a managed lock timeout: it extracts all TLOCK events for a particular region and connection from the technological log, then puts them in chronological order.</li>\n</ul>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "a bunch of scripts 24 april 2021 · 1с bash done i’ve put a few more scripts on github that i wrote recently to dig through the platform’s technological log: frequent events . groups events by name, counts occurrences, and lists them in descending order, from most to least frequent. not sure this one is much use in practice; i just wanted to note down which cluster process writes which events. exception descriptions . groups excp events by the name field; for each name, it lists the description values found in exceptions with that name. this script gives you a rough picture of which exceptions are real problems and which are just background noise you can ignore and, for example, filter out in kibana. locks by connection id and region . useful for finding the culprit behind a managed lock timeout: it extracts all tlock events for a particular region and connection from the technological log, then puts them in chronological order.",
    "tags": [
      "1c",
      "bash",
      "done"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/skuuuid\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                The SKUUUID in My Own Eye\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>22 February 2021</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"code-smell\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Code Smell</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>A couple of weeks ago, Alexander Kuntashov <a href=\"https://t.me/kuntashov_devnotes/479\" rel=\"noopener noreferrer\" target=\"_blank\">posted</a> an amusing screenshot on his channel of an enumeration from the Electronic Documents Library. Whoever wrote it really had a thing for long abbreviations. I had a great time joking about the family resemblance between ИППДОИПУПДУКД and Moscow’s ГНУВНИВИПФИТ, then spotted this beauty in my own code:</p>\n<p><img alt=\"SKUUUID\" src=\"https://kostyanetsky.me/notes/skuuuid/skuuuid.png\"/></p>\n<p>Not quite the master’s touch yet, of course, but definitely heading in the same direction. It reminded me of the parable about the speck in someone else’s eye and the great big log in your own :-)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "the skuuuid in my own eye 22 february 2021 · 1с code smell a couple of weeks ago, alexander kuntashov posted an amusing screenshot on his channel of an enumeration from the electronic documents library. whoever wrote it really had a thing for long abbreviations. i had a great time joking about the family resemblance between иппдоипупдукд and moscow’s гнувнивипфит, then spotted this beauty in my own code: not quite the master’s touch yet, of course, but definitely heading in the same direction. it reminded me of the parable about the speck in someone else’s eye and the great big log in your own :-)",
    "tags": [
      "1c",
      "code-smell"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/date-literal-exceeds-3999\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                The Date Literal Problem During Totals Recalculation\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>6 February 2021</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>So, during a routine totals recalculation from the Configurator, we suddenly got the error: \"the year in the Date literal exceeds 3999\". Which means there's a date somewhere in the database — or trying to get there — that is beyond the maximum 1C can handle: 31.12.3999 23:59:59.</p>\n<p><img alt=\"Exception\" src=\"https://kostyanetsky.me/notes/date-literal-exceeds-3999/excp.png\"/></p>\n<p>Alright. What do we do with that?</p>\n<p>The main thing is to identify the exact table that contains the bad dates. Since the error showed up during totals recalculation, the obvious place to look is the registers. Open the standard totals management tool, start recalculation, and <a href=\"https://kostyanetsky.me/notes/date-literal-exceeds-3999/totals.png\" rel=\"noopener noreferrer\" target=\"_blank\">you'll get</a> the name of the register the platform trips over.</p>\n<p>Another approach — more proper, methodologically speaking — is to enable tech log collection (<code>SDBL</code>, <code>EXCP</code>, and <code>EXCPCNTX</code>) and get a log that looks roughly like <a href=\"https://kostyanetsky.me/notes/date-literal-exceeds-3999/excp.log\" rel=\"noopener noreferrer\" target=\"_blank\">this</a>. In that log, find the <code>EXCP</code> event, and right before it the <code>SDBL</code> event. That <code>SDBL</code> entry contains the SQL query that caused the crash. In its text, you'll see the table name you need (<code>AccumRgTn11530</code>). The corresponding configuration object name can be pulled out with pretty much any utility built around <code>GetDBStorageStructureInfo()</code>.</p>\n<p>One way or another, you end up with the register name. Open its form, sort by period, and you'll quickly get to the <a href=\"https://kostyanetsky.me/notes/date-literal-exceeds-3999/entries.png\" rel=\"noopener noreferrer\" target=\"_blank\">bad entries</a>. Then the job is to inspect the documents that created those records, fix the root cause, and repost the documents. If totals recalculation is still broken after that, then either this is not the only table with broken dates, or those dates have already spread somewhere beyond the records table.</p>\n<p>For example, I once had a case where fixing the records was not enough, because records with invalid dates were still sitting in the turnover table. The platform itself could not remove them, but the database was small enough that I could get away with some restructuring tricks. I pulled the following stunt: turned off the \"Use in totals\" flag for all register dimensions and applied the changes; then turned it back on and recalculated totals again. As a result, the register's turnover table was physically dropped, then recreated and filled from scratch — this time without dates from the distant future.</p>\n<p>As a last resort, you could delete the bad records with direct SQL queries (<code>DELETE</code> or even <code>TRUNCATE</code>). But first, that violates the platform vendor's license agreement, and second, it's risky: it's very easy to remove something important and not notice until later. So I would, uh, not recommend trying that at home.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "the date literal problem during totals recalculation 6 february 2021 · 1с so, during a routine totals recalculation from the configurator, we suddenly got the error: \"the year in the date literal exceeds 3999\". which means there's a date somewhere in the database — or trying to get there — that is beyond the maximum 1c can handle: 31.12.3999 23:59:59. alright. what do we do with that? the main thing is to identify the exact table that contains the bad dates. since the error showed up during totals recalculation, the obvious place to look is the registers. open the standard totals management tool, start recalculation, and you'll get the name of the register the platform trips over. another approach — more proper, methodologically speaking — is to enable tech log collection ( sdbl , excp , and excpcntx ) and get a log that looks roughly like this . in that log, find the excp event, and right before it the sdbl event. that sdbl entry contains the sql query that caused the crash. in its text, you'll see the table name you need ( accumrgtn11530 ). the corresponding configuration object name can be pulled out with pretty much any utility built around getdbstoragestructureinfo() . one way or another, you end up with the register name. open its form, sort by period, and you'll quickly get to the bad entries . then the job is to inspect the documents that created those records, fix the root cause, and repost the documents. if totals recalculation is still broken after that, then either this is not the only table with broken dates, or those dates have already spread somewhere beyond the records table. for example, i once had a case where fixing the records was not enough, because records with invalid dates were still sitting in the turnover table. the platform itself could not remove them, but the database was small enough that i could get away with some restructuring tricks. i pulled the following stunt: turned off the \"use in totals\" flag for all register dimensions and applied the changes; then turned it back on and recalculated totals again. as a result, the register's turnover table was physically dropped, then recreated and filled from scratch — this time without dates from the distant future. as a last resort, you could delete the bad records with direct sql queries ( delete or even truncate ). but first, that violates the platform vendor's license agreement, and second, it's risky: it's very easy to remove something important and not notice until later. so i would, uh, not recommend trying that at home.",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/do-you-see-it\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Checking an Object’s Visibility\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>17 January 2021</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>The platform has a few different ways to decide whether a user can see a metadata object. One is functional options. If you haven’t used them before, here’s the short version: an object can be included in an option that is either active in a particular infobase, making it visible to users, or inactive, hiding it. An object can belong to several options, in which case it appears if at least one is active, or to none, in which case users always see it.</p>\n<p>I remember looking, about five years ago, for a way to tell from code whether a user could see an object, just as far as functional options are concerned. For some reason, I didn’t find a solution then, although it’s ridiculously simple. Here’s a <a href=\"https://gist.github.com/vkostyanetsky/a6c0525c38a8231f37a676ec240d657a\" rel=\"noopener noreferrer\" target=\"_blank\">function</a> for exactly that. The logic:</p>\n<ol>\n<li>Iterate through the options and look for the object in each one.</li>\n<li>If the object belongs to an option, check whether that option is active. If so, the user can see the object.</li>\n<li>If the object belongs to no options, the user can see it too.</li>\n</ol>\n<p>You’d want to cache the result, of course, if only because there’s a query inside a loop. Apart from that, it does the job. I still can’t understand why I didn’t write something similar back then. Man, I hope that five years from now, the things driving me nuts today will look just as easy to fix.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "checking an object’s visibility 17 january 2021 · 1с the platform has a few different ways to decide whether a user can see a metadata object. one is functional options. if you haven’t used them before, here’s the short version: an object can be included in an option that is either active in a particular infobase, making it visible to users, or inactive, hiding it. an object can belong to several options, in which case it appears if at least one is active, or to none, in which case users always see it. i remember looking, about five years ago, for a way to tell from code whether a user could see an object, just as far as functional options are concerned. for some reason, i didn’t find a solution then, although it’s ridiculously simple. here’s a function for exactly that. the logic: iterate through the options and look for the object in each one. if the object belongs to an option, check whether that option is active. if so, the user can see the object. if the object belongs to no options, the user can see it too. you’d want to cache the result, of course, if only because there’s a query inside a loop. apart from that, it does the job. i still can’t understand why i didn’t write something similar back then. man, i hope that five years from now, the things driving me nuts today will look just as easy to fix.",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/recursive-search\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Searching Files Recursively\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>14 January 2021</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"bash\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Bash</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Some time ago, I <a href=\"https://kostyanetsky.me/notes/vulnerabilities\" rel=\"noopener noreferrer\" target=\"_blank\">tried</a> finding code vulnerabilities with Bash scripts. Sounds intimidating, but it’s just recursive text searching with regular expressions. I wrote the scripts, but as I realized today, I did it in a rather… ass-backwards way, ahem. All you need is egrep! Out of find, xargs, and egrep, we can throw away two of the three.</p>\n<p>For example, today our configuration stopped building in the latest EDT release. We suspected broken GUIDs: references to metadata objects removed from the configuration. The platform doesn’t always clean these up after deleting the objects themselves. I’ve written about this a couple of times, for example <a href=\"https://kostyanetsky.me/notes/designer-error-investigation\" rel=\"noopener noreferrer\" target=\"_blank\">here</a> and <a href=\"https://kostyanetsky.me/notes/unresolved-gopher\" rel=\"noopener noreferrer\" target=\"_blank\">here</a>.</p>\n<p>We decided to search the configuration export for GUIDs and check whether they all belonged where they were. All it takes is one command:</p>\n<pre><code>egrep -rn '.{8}-.{4}-.{4}-.{4}-.{12}' dump\n</code></pre>\n<p>The r flag enables recursive search; n adds not only the filename but also the line number to each match. The final parameter, dump, is the directory to search.</p>\n<p>You could make the regex more precise, but this is plenty. False positives, GUIDs that aren’t broken references, are easy to filter through a pipe. For example, the following script excludes GUID-containing lines that include “uuid”:</p>\n<pre><code>egrep -rn '.{8}-.{4}-.{4}-.{4}-.{12}' dump | grep -v 'uuid'\n</code></pre>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "searching files recursively 14 january 2021 · 1с bash some time ago, i tried finding code vulnerabilities with bash scripts. sounds intimidating, but it’s just recursive text searching with regular expressions. i wrote the scripts, but as i realized today, i did it in a rather… ass-backwards way, ahem. all you need is egrep! out of find, xargs, and egrep, we can throw away two of the three. for example, today our configuration stopped building in the latest edt release. we suspected broken guids: references to metadata objects removed from the configuration. the platform doesn’t always clean these up after deleting the objects themselves. i’ve written about this a couple of times, for example here and here . we decided to search the configuration export for guids and check whether they all belonged where they were. all it takes is one command: egrep -rn '.{8}-.{4}-.{4}-.{4}-.{12}' dump the r flag enables recursive search; n adds not only the filename but also the line number to each match. the final parameter, dump, is the directory to search. you could make the regex more precise, but this is plenty. false positives, guids that aren’t broken references, are easy to filter through a pipe. for example, the following script excludes guid-containing lines that include “uuid”: egrep -rn '.{8}-.{4}-.{4}-.{4}-.{12}' dump | grep -v 'uuid'",
    "tags": [
      "1c",
      "bash"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/old-but-gold\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Good Old DATETIME\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>11 November 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"mssql\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">MS SQL</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I did some reading online about date types in MS SQL Server, and I no longer wonder why 1C still clings to its date offset. People describe a whole bundle of DATETIME2 problems:</p>\n<ol>\n<li>You can’t do basic date arithmetic. Want to subtract two dates or add a day? You’ll need a workaround.</li>\n<li>Standard functions still return good old DATETIME, DATEADD for example. If you store your data as DATETIME2, you have to convert it.</li>\n<li>Fields of this type <a href=\"https://sqlperformance.com/2016/04/sql-performance/surprises-dateadd\" rel=\"noopener noreferrer\" target=\"_blank\">don’t index well</a>, since each DATETIME2 value is stored backwards, time first, date second. So the DBMS gets its row count estimate wrong and comes up with a bad execution plan.</li>\n</ol>\n<p>You can read more on <a href=\"https://towardsdatascience.com/datetime2-why-you-should-not-use-it-70e50ae2bab9\" rel=\"noopener noreferrer\" target=\"_blank\">Towards Data Science</a> or, for example, <a href=\"https://www.sqlservercentral.com/forums/topic/why-do-some-dbas-avoid-datetime2\" rel=\"noopener noreferrer\" target=\"_blank\">SQL Server Central</a>.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "good old datetime 11 november 2020 · 1с ms sql i did some reading online about date types in ms sql server, and i no longer wonder why 1c still clings to its date offset. people describe a whole bundle of datetime2 problems: you can’t do basic date arithmetic. want to subtract two dates or add a day? you’ll need a workaround. standard functions still return good old datetime, dateadd for example. if you store your data as datetime2, you have to convert it. fields of this type don’t index well , since each datetime2 value is stored backwards, time first, date second. so the dbms gets its row count estimate wrong and comes up with a bad execution plan. you can read more on towards data science or, for example, sql server central .",
    "tags": [
      "1c",
      "mssql"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/lost-time\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Date Offsets in 1C\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>10 November 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"mssql\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">MS SQL</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>MS SQL Server DATETIME fields <a href=\"https://docs.microsoft.com/ru-ru/dotnet/api/system.data.sqltypes.sqldatetime.minvalue?view=dotnet-plat-ext-3.1\" rel=\"noopener noreferrer\" target=\"_blank\">cannot</a> store dates before 1753. Try writing January 1, 0001 to the database, for example, and you’ll get an out-of-range value error. I thought this was a funny old quirk for such a well-established DBMS until I stumbled across the <a href=\"https://stackoverflow.com/questions/3310569/what-is-the-significance-of-1-1-1753-in-sql-server\" rel=\"noopener noreferrer\" target=\"_blank\">reason</a>.</p>\n<p>Briefly, Britain adopted the Gregorian calendar in 1752, losing eleven days in the process. That created a problem: suppose a user wants the difference in days between 1653 and 1753. What should happen? Account for the missing days? Ignore them? Add hints or settings?</p>\n<p>Apparently, the developers decided not to get into all that and just cut off the date range. If you need earlier dates, DATETIME2 doesn’t have that restriction.</p>\n<p>As for 1C, the platform originally used DATETIME and devised a special <a href=\"https://its.1c.ru/db/metod8dev/content/4055/hdoc\" rel=\"noopener noreferrer\" target=\"_blank\">workaround</a> to avoid trouble storing dates before 1753. In short, when writing dates to the database, it quietly adds two thousand years to each one, then subtracts them when reading. A user sees January 1, 2000 in 1C, while the database actually stores January 1, 4000.</p>\n<p>I wonder why 1C hasn’t thrown this out yet. The platform uses DATETIME2 now, so it shouldn’t need the offset trick anymore. Maybe there’s a catch, or maybe they’re just being careful, but the DBMS developers themselves <a href=\"https://stackoverflow.com/questions/3310569/what-is-the-significance-of-1-1-1753-in-sql-server/3310627#3310627\" rel=\"noopener noreferrer\" target=\"_blank\">seem quite confident</a>:</p>\n<blockquote>\n<p>Your great great great great great great great grandfather should upgrade to SQL Server 2008 and use the DateTime2 data type, which supports dates in the range: 0001-01-01 through 9999-12-31.</p>\n<p><em>Joe Stefanelli (SQL Server developer)</em></p>\n</blockquote>\n<p>Perhaps it’s simply at the bottom of the priority list. Adding and subtracting two thousand years for every date increases hardware load, of course, but it gets lost among everything else.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "date offsets in 1c 10 november 2020 · 1с ms sql ms sql server datetime fields cannot store dates before 1753. try writing january 1, 0001 to the database, for example, and you’ll get an out-of-range value error. i thought this was a funny old quirk for such a well-established dbms until i stumbled across the reason . briefly, britain adopted the gregorian calendar in 1752, losing eleven days in the process. that created a problem: suppose a user wants the difference in days between 1653 and 1753. what should happen? account for the missing days? ignore them? add hints or settings? apparently, the developers decided not to get into all that and just cut off the date range. if you need earlier dates, datetime2 doesn’t have that restriction. as for 1c, the platform originally used datetime and devised a special workaround to avoid trouble storing dates before 1753. in short, when writing dates to the database, it quietly adds two thousand years to each one, then subtracts them when reading. a user sees january 1, 2000 in 1c, while the database actually stores january 1, 4000. i wonder why 1c hasn’t thrown this out yet. the platform uses datetime2 now, so it shouldn’t need the offset trick anymore. maybe there’s a catch, or maybe they’re just being careful, but the dbms developers themselves seem quite confident : your great great great great great great great grandfather should upgrade to sql server 2008 and use the datetime2 data type, which supports dates in the range: 0001-01-01 through 9999-12-31. joe stefanelli (sql server developer) perhaps it’s simply at the bottom of the priority list. adding and subtracting two thousand years for every date increases hardware load, of course, but it gets lost among everything else.",
    "tags": [
      "1c",
      "mssql"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/hulk-removes\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Hulk Delete!\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>9 November 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"pgsql\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">PostgreSQL</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>On a PostgreSQL <a href=\"https://postgrespro.ru/education/courses/DBA1\" rel=\"noopener noreferrer\" target=\"_blank\">course</a>, I learned a funny detail: in version 10, the DBMS developers renamed pg_xlog, containing write-ahead logs, to pg_wal, and pg_clog, containing transaction statuses, to pg_xact.</p>\n<p>Know why? Because of admins with more confidence than experience, who saw “log” in a folder name and went for it. I need to free some disk space, they’d think, and this DBMS has filled it all with stupid logs. No time to investigate: rm -rf the lot, problem solved!</p>\n<p>So out went both the protection for data operations in the buffer cache and multiversion concurrency control, in one fell swoop. The cluster then died in agony. There was plenty of free disk space, but I’m afraid the joy didn’t last long :-)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "hulk delete! 9 november 2020 · postgresql on a postgresql course , i learned a funny detail: in version 10, the dbms developers renamed pg_xlog, containing write-ahead logs, to pg_wal, and pg_clog, containing transaction statuses, to pg_xact. know why? because of admins with more confidence than experience, who saw “log” in a folder name and went for it. i need to free some disk space, they’d think, and this dbms has filled it all with stupid logs. no time to investigate: rm -rf the lot, problem solved! so out went both the protection for data operations in the buffer cache and multiversion concurrency control, in one fell swoop. the cluster then died in agony. there was plenty of free disk space, but i’m afraid the joy didn’t last long :-)",
    "tags": [
      "pgsql"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/time-to-wink\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Time for a Walk\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>2 November 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"bash\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Bash</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>How do you know when to take a break from work? Put it this way: if your script suddenly starts winking at you, it’s definitely time for some fresh air.</p>\n<p><img alt=\"Hello!\" src=\"https://kostyanetsky.me/notes/time-to-wink/wink.png\"/></p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "time for a walk 2 november 2020 · bash how do you know when to take a break from work? put it this way: if your script suddenly starts winking at you, it’s definitely time for some fresh air.",
    "tags": [
      "bash"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/designer-error-investigation\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Investigating an Error in Designer\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>31 October 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>So, Designer reports an error, and we need to fix it or find a workaround. This could get awkward: we can’t look at the application’s code. Still, to fix it, we need to work out what Designer was doing before it fell over, and why it couldn’t finish.</p>\n<p>What can help?</p>\n<p>First, the error message itself. Often, that alone is enough to get your thoughts moving in the right direction. If a query caused the failure, the error will also include a message from the DBMS.</p>\n<p>Second, the technological log, capturing EXCP, SDBL, and DBMSSQL (DBPOSTGRS?) events for t:applicationName=Designer. That shows us the exceptions inside Designer and the queries it runs, which are often what went wrong.</p>\n<p>A database query trace can also help. With MS SQL, you can capture it using Extended Events; specifically, we’re interested in error_reported, rpc_completed, and sql_batch_completed. The principle is the same: capture query execution errors and the queries themselves.</p>\n<p>Here’s an example. Maybe not the best one, but it’s fresh.</p>\n<p>We’re working with a configuration that uses <a href=\"https://v8.1c.ru/platforma/razdelenie-dannyh/\" rel=\"noopener noreferrer\" target=\"_blank\">data separation</a>. Its database is divided into pieces, or data areas, each of which knows nothing about its neighbors: how many there are, their sizes, and so forth. The database also contains shared data, such as catalogs accessible from any area. These usually hold technical information, for example a list of metadata objects.</p>\n<p>We need to take the FileStorageVolumes catalog out of the main separator. The catalog is currently separated, meaning its data differs from one area to another. We need its contents to become the same across all areas.</p>\n<p>This should be straightforward, since the catalog table is empty: no area stores anything in it. We apply the <a href=\"https://kostyanetsky.me/notes/designer-error-investigation/setup.png\" rel=\"noopener noreferrer\" target=\"_blank\">setting</a>, and:</p>\n<p><img alt=\"Exception\" src=\"https://kostyanetsky.me/notes/designer-error-investigation/error.png\"/></p>\n<p>The exception <a href=\"https://kostyanetsky.me/notes/designer-error-investigation/error.txt\" rel=\"noopener noreferrer\" target=\"_blank\">text</a> contains two messages: one from the platform, the other from the DBMS. The first one makes me scratch my head: what does it mean, the data isn’t unique? The catalog is empty; there’s no data. Maybe something’s wrong with one of the supporting structures, rather than the catalog data itself.</p>\n<p>The DBMS message is clearer: MS SQL Server tried to create a unique index on _DataHistorySettingsNG, but couldn’t because combinations of indexed fields weren’t unique. It even gives the specific value that prevented index creation: NULL.</p>\n<p>Conclusions?</p>\n<ol>\n<li>The problem clearly arose during restructuring. First, that’s exactly what we were doing. Second, both CREATE UNIQUE INDEX, since creating indexes is part of restructuring, and the problematic table’s name point to it. The NG suffix is assigned to table copies created during restructuring. If restructuring succeeds, the platform drops the original table and renames the copy.</li>\n<li>The problem involves the data history mechanism’s settings, _DataHistorySettings. This table stores each metadata object’s status: whether to maintain data history for the object, its fields, and its tabular section fields, if any.</li>\n</ol>\n<p>That explains how an empty catalog can have a uniqueness problem: an object’s data history settings exist independently of whether the object contains data. The settings table has just three fields: _MetadataId (the metadata object’s ID), _Content (setting values), and _Fld626 (the area separator).</p>\n<p>Before restructuring, the data looks roughly like this:</p>\n<p><img alt=\"The _DataHistorySettings table\" src=\"https://kostyanetsky.me/notes/designer-error-investigation/table.png\"/></p>\n<p>But then the picture changed. When we excluded the catalog from the common attribute, Designer started restructuring: it created _DataHistorySettingsNG, copied the data from _DataHistorySettings, and set _Fld626 to NULL for all records belonging to FileStorageVolumes.</p>\n<p>The result? A whole pile of settings for FileStorageVolumes that belong to no data area. That sounds unhealthy in itself, but the real trouble started when Designer tried to create the table’s clustered index. It is <a href=\"https://kostyanetsky.me/notes/designer-error-investigation/index.png\" rel=\"noopener noreferrer\" target=\"_blank\">built</a> on _MetadataId and _Fld626 and is unique, so it cannot be created: many records differ only in _Content, while _MetadataId and _Fld626 are guaranteed to be identical.</p>\n<p>Just to be sure, let’s check the <a href=\"https://kostyanetsky.me/notes/designer-error-investigation/20103116.log\" rel=\"noopener noreferrer\" target=\"_blank\">technological log</a>. I’ve stripped out the unrelated events and other clutter. Sure enough: Designer creates and populates _DataHistorySettingsNG, tries to index it, receives an error, and drops it. The DBMS <a href=\"https://kostyanetsky.me/notes/designer-error-investigation/20103116.png\" rel=\"noopener noreferrer\" target=\"_blank\">trace</a> shows roughly the same picture.</p>\n<p>That’s where the interesting part ends, since the solution is fairly obvious: delete the catalog’s data history settings in every data area and repeat restructuring. This doesn’t fix the bug, of course. Really, Designer should catch this and give us a sensible error message, as it does when deleting an information register dimension would violate the uniqueness of its records. But it does get the task done.</p>\n<p>And we’re done. Look at us go!</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "investigating an error in designer 31 october 2020 · 1с so, designer reports an error, and we need to fix it or find a workaround. this could get awkward: we can’t look at the application’s code. still, to fix it, we need to work out what designer was doing before it fell over, and why it couldn’t finish. what can help? first, the error message itself. often, that alone is enough to get your thoughts moving in the right direction. if a query caused the failure, the error will also include a message from the dbms. second, the technological log, capturing excp, sdbl, and dbmssql (dbpostgrs?) events for t:applicationname=designer. that shows us the exceptions inside designer and the queries it runs, which are often what went wrong. a database query trace can also help. with ms sql, you can capture it using extended events; specifically, we’re interested in error_reported, rpc_completed, and sql_batch_completed. the principle is the same: capture query execution errors and the queries themselves. here’s an example. maybe not the best one, but it’s fresh. we’re working with a configuration that uses data separation . its database is divided into pieces, or data areas, each of which knows nothing about its neighbors: how many there are, their sizes, and so forth. the database also contains shared data, such as catalogs accessible from any area. these usually hold technical information, for example a list of metadata objects. we need to take the filestoragevolumes catalog out of the main separator. the catalog is currently separated, meaning its data differs from one area to another. we need its contents to become the same across all areas. this should be straightforward, since the catalog table is empty: no area stores anything in it. we apply the setting , and: the exception text contains two messages: one from the platform, the other from the dbms. the first one makes me scratch my head: what does it mean, the data isn’t unique? the catalog is empty; there’s no data. maybe something’s wrong with one of the supporting structures, rather than the catalog data itself. the dbms message is clearer: ms sql server tried to create a unique index on _datahistorysettingsng, but couldn’t because combinations of indexed fields weren’t unique. it even gives the specific value that prevented index creation: null. conclusions? the problem clearly arose during restructuring. first, that’s exactly what we were doing. second, both create unique index, since creating indexes is part of restructuring, and the problematic table’s name point to it. the ng suffix is assigned to table copies created during restructuring. if restructuring succeeds, the platform drops the original table and renames the copy. the problem involves the data history mechanism’s settings, _datahistorysettings. this table stores each metadata object’s status: whether to maintain data history for the object, its fields, and its tabular section fields, if any. that explains how an empty catalog can have a uniqueness problem: an object’s data history settings exist independently of whether the object contains data. the settings table has just three fields: _metadataid (the metadata object’s id), _content (setting values), and _fld626 (the area separator). before restructuring, the data looks roughly like this: but then the picture changed. when we excluded the catalog from the common attribute, designer started restructuring: it created _datahistorysettingsng, copied the data from _datahistorysettings, and set _fld626 to null for all records belonging to filestoragevolumes. the result? a whole pile of settings for filestoragevolumes that belong to no data area. that sounds unhealthy in itself, but the real trouble started when designer tried to create the table’s clustered index. it is built on _metadataid and _fld626 and is unique, so it cannot be created: many records differ only in _content, while _metadataid and _fld626 are guaranteed to be identical. just to be sure, let’s check the technological log . i’ve stripped out the unrelated events and other clutter. sure enough: designer creates and populates _datahistorysettingsng, tries to index it, receives an error, and drops it. the dbms trace shows roughly the same picture. that’s where the interesting part ends, since the solution is fairly obvious: delete the catalog’s data history settings in every data area and repeat restructuring. this doesn’t fix the bug, of course. really, designer should catch this and give us a sensible error message, as it does when deleting an information register dimension would violate the uniqueness of its records. but it does get the task done. and we’re done. look at us go!",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/excp-number-by-minutes\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Counting Exceptions in the Technological Log\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>24 October 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"bash\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Bash</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Another <a href=\"https://github.com/vkostyanetsky/ScriptsFor1C/blob/master/Технологический%20журнал/ExceptionsNumberByMinutes.sh\" rel=\"noopener noreferrer\" target=\"_blank\">script</a>. It counts exceptions per minute and ranks the results, so you can quickly see when the applications were having a particularly bad time.</p>\n<p>Along the way, two odd little problems threw me off. First, for some reason I was convinced that uniq -c groups lines regardless of where they occur in the data stream. Take this:</p>\n<pre><code>банан\nбанан\nгруша\nбанан\n</code></pre>\n<p>I thought that feeding this data to uniq -c would group identical lines, count repetitions, and produce something like this:</p>\n<pre><code>3 банан\n1 груша\n</code></pre>\n<p>But what I actually got was:</p>\n<pre><code>2 банан\n1 груша\n1 банан\n</code></pre>\n<p>Turns out uniq expects repeated lines to sit next to each other. If a line differs from the previous one, it starts a new count for that line. To get the result I expected, you have to sort the data first, then pass it to uniq.</p>\n<p>The second problem involved sed. I was trying to use it to remove everything from the data stream except hours and minutes; the attempt is on line 12 of the script. But some events stubbornly failed to match the regular expression despite looking exactly the same. I wasted a lot of time and got thoroughly annoyed before remembering <a href=\"https://ru.wikipedia.org/wiki/Маркер_последовательности_байтов\" rel=\"noopener noreferrer\" target=\"_blank\">BOM</a>. Once I removed the markers, everything went smoothly.</p>\n<p>Every technological log file uses a BOM, which you can confirm with this <a href=\"https://github.com/vkostyanetsky/ScriptsFor1C/blob/master/Технологический%20журнал/LogFilesWithoutBOM.sh\" rel=\"noopener noreferrer\" target=\"_blank\">script</a>, for example. Each log begins with special characters invisible to the naked eye, and these can prevent the first line from being processed because they don’t match the regular expression.</p>\n<p>My takeaway is to strip BOMs out by default, rather than wonder every time whether they’ll cause trouble. Sometimes this will be unnecessary; a BOM doesn’t interfere with solving the task above using grep, for instance. But I don’t like surprises. Besides, a few processor cycles spent on a simple replacement are a much better deal than the equivalent in fried nerves and wasted time.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "counting exceptions in the technological log 24 october 2020 · 1с bash done another script . it counts exceptions per minute and ranks the results, so you can quickly see when the applications were having a particularly bad time. along the way, two odd little problems threw me off. first, for some reason i was convinced that uniq -c groups lines regardless of where they occur in the data stream. take this: банан банан груша банан i thought that feeding this data to uniq -c would group identical lines, count repetitions, and produce something like this: 3 банан 1 груша but what i actually got was: 2 банан 1 груша 1 банан turns out uniq expects repeated lines to sit next to each other. if a line differs from the previous one, it starts a new count for that line. to get the result i expected, you have to sort the data first, then pass it to uniq. the second problem involved sed. i was trying to use it to remove everything from the data stream except hours and minutes; the attempt is on line 12 of the script. but some events stubbornly failed to match the regular expression despite looking exactly the same. i wasted a lot of time and got thoroughly annoyed before remembering bom . once i removed the markers, everything went smoothly. every technological log file uses a bom, which you can confirm with this script , for example. each log begins with special characters invisible to the naked eye, and these can prevent the first line from being processed because they don’t match the regular expression. my takeaway is to strip boms out by default, rather than wonder every time whether they’ll cause trouble. sometimes this will be unnecessary; a bom doesn’t interfere with solving the task above using grep, for instance. but i don’t like surprises. besides, a few processor cycles spent on a simple replacement are a much better deal than the equivalent in fried nerves and wasted time.",
    "tags": [
      "1c",
      "bash",
      "done"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/nerdview\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Nerd View\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>19 October 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"family\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Family</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p><img alt=\"A chat with my daughter\" src=\"https://kostyanetsky.me/notes/nerdview/telegram.png\"/></p>\n<p>On the screenshot above my little one is just letting me know where she is: walking down the street, at the school, at a playground. It's not her fault that I have a sort of nerd view: when I look at this chat I see nothing but code on Gherkin, which is just a bit broken. A little patch here and there and it will be fine :-)</p>\n<pre><code>And I exit home\nThen I enter school\nAnd I exit school\nThen I gonna swing\n</code></pre>\n<p>We use Gherkin to write our autotests for <a href=\"https://github.com/Pr-Mex/vanessa-automation\" rel=\"noopener noreferrer\" target=\"_blank\">Vanessa Automation</a>. I can't say I've made very many of them, especially in comparison with some of my colleagues… Well, it seems like I've made them enough to twist the reality a few.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "nerd view 19 october 2020 · 1с family work on the screenshot above my little one is just letting me know where she is: walking down the street, at the school, at a playground. it's not her fault that i have a sort of nerd view: when i look at this chat i see nothing but code on gherkin, which is just a bit broken. a little patch here and there and it will be fine :-) and i exit home then i enter school and i exit school then i gonna swing we use gherkin to write our autotests for vanessa automation . i can't say i've made very many of them, especially in comparison with some of my colleagues… well, it seems like i've made them enough to twist the reality a few.",
    "tags": [
      "1c",
      "family",
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/queries-and-lock-waits\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Queries and Lock Waits\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>19 October 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"bash\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Bash</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I’ve put together two more technological log analysis scripts: the <a href=\"https://github.com/vkostyanetsky/ScriptsFor1C/blob/master/Технологический%20журнал/LongestQueries.sh\" rel=\"noopener noreferrer\" target=\"_blank\">first</a> ranks heavy MS SQL queries, and the <a href=\"https://github.com/vkostyanetsky/ScriptsFor1C/blob/master/Технологический%20журнал/LongestLockWaitsByRegions.sh\" rel=\"noopener noreferrer\" target=\"_blank\">second</a> ranks long lock waits.</p>\n<p>I pick out heavy queries by how long their DBMSSQL events lasted. The longer a query takes, the more likely it is to have eaten a lot of resources. That usually holds up, though you’d need a trace to diagnose it properly.</p>\n<p>Lock waits are also measured by duration. The script also checks that the TLOCK event has something in WaitConnections. That tells us the platform really was waiting to get a lock, rather than just taking a while to set one.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "queries and lock waits 19 october 2020 · 1с bash done i’ve put together two more technological log analysis scripts: the first ranks heavy ms sql queries, and the second ranks long lock waits. i pick out heavy queries by how long their dbmssql events lasted. the longer a query takes, the more likely it is to have eaten a lot of resources. that usually holds up, though you’d need a trace to diagnose it properly. lock waits are also measured by duration. the script also checks that the tlock event has something in waitconnections. that tells us the platform really was waiting to get a lock, rather than just taking a while to set one.",
    "tags": [
      "1c",
      "bash",
      "done"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/top-exceptions-v2\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                An Updated Top Exceptions Script\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>17 October 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"bash\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Bash</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I rewrote the Bash <a href=\"https://github.com/vkostyanetsky/ScriptsFor1C/blob/master/Технологический%20журнал/FrequentExceptions.sh\" rel=\"noopener noreferrer\" target=\"_blank\">script</a> that ranks exceptions in a collected technological log: I wanted a simpler way to do it.</p>\n<p>Out went all the fiddling with replacing event beginnings with a gawk record separator: you can just give gawk a regex for that. I also moved more of the logic into gawk itself. It’s easier to follow, especially if I want to add to it later.</p>\n<p>It’s clearly better than <a href=\"https://gist.github.com/vkostyanetsky/47e02e199bb32082c4d5019ca88233c0\" rel=\"noopener noreferrer\" target=\"_blank\">before</a>, or at least the logic is easier to understand. Originally, though, I wanted to make the script smaller and get something like this:</p>\n<pre><code>grep -hoP \",EXCP,.*\\KDescr=.*\" */*.log | uniq -c | sort -rn\n</code></pre>\n<p>Filter only lines with EXCP events, cut everything before the error description, and group with uniq. Very elegant, I think.</p>\n<p>Except EXCP descriptions can run over several lines. So sometimes we’d lose information we need to figure out what happened: everything after the first line break. I haven’t yet worked out how to solve that without tripling the script’s size :-)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "an updated top exceptions script 17 october 2020 · 1с bash done i rewrote the bash script that ranks exceptions in a collected technological log: i wanted a simpler way to do it. out went all the fiddling with replacing event beginnings with a gawk record separator: you can just give gawk a regex for that. i also moved more of the logic into gawk itself. it’s easier to follow, especially if i want to add to it later. it’s clearly better than before , or at least the logic is easier to understand. originally, though, i wanted to make the script smaller and get something like this: grep -hop \",excp,.*\\kdescr=.*\" */*.log | uniq -c | sort -rn filter only lines with excp events, cut everything before the error description, and group with uniq. very elegant, i think. except excp descriptions can run over several lines. so sometimes we’d lose information we need to figure out what happened: everything after the first line break. i haven’t yet worked out how to solve that without tripling the script’s size :-)",
    "tags": [
      "1c",
      "bash",
      "done"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/vulnerabilities\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Vulnerabilities in 1C Configurations\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>13 October 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"bash\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Bash</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Last month, I attended an Infostart <a href=\"https://infostart.ru/events/1269292/\" rel=\"noopener noreferrer\" target=\"_blank\">meetup</a> about security in 1C-based solutions. I learned a lot! Among other things, Oleg Tymko talked about things we do in code that can leave a product vulnerable: hard-coded IP addresses, links, email addresses, passwords, that sort of thing.</p>\n<p>Yesterday, I put together a simple Bash <a href=\"https://github.com/vkostyanetsky/ScriptsForLogAnalysis/blob/master/Файлы%20конфигурации/Vulnerabilities.sh\" rel=\"noopener noreferrer\" target=\"_blank\">script</a> that searches a configuration export for such issues. Essentially, it just runs regular expressions over the configuration. I didn’t put too much thought into it, just tried a couple of approaches for the fun of it.</p>\n<p>My takeaway? If you’re going to keep developing this seriously, start with something like SonarQube. Brute-force approaches produce too many false positives; you need filters, exceptions, history, and supporting infrastructure.</p>\n<p>For a quick look, though, this does the job: no infrastructure, no fussing with configuration or hardware. Export the configuration, kick Bash into action, and that’s it: results in a few seconds.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "vulnerabilities in 1c configurations 13 october 2020 · 1с bash done last month, i attended an infostart meetup about security in 1c-based solutions. i learned a lot! among other things, oleg tymko talked about things we do in code that can leave a product vulnerable: hard-coded ip addresses, links, email addresses, passwords, that sort of thing. yesterday, i put together a simple bash script that searches a configuration export for such issues. essentially, it just runs regular expressions over the configuration. i didn’t put too much thought into it, just tried a couple of approaches for the fun of it. my takeaway? if you’re going to keep developing this seriously, start with something like sonarqube. brute-force approaches produce too many false positives; you need filters, exceptions, history, and supporting infrastructure. for a quick look, though, this does the job: no infrastructure, no fussing with configuration or hardware. export the configuration, kick bash into action, and that’s it: results in a few seconds.",
    "tags": [
      "1c",
      "bash",
      "done"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/single-sign-on\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                On Single Sign-On\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>12 September 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"meanwhile\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Meanwhile</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p><a href=\"https://twitter.com/EpicGames/status/1303716447831707649\" rel=\"noopener noreferrer\" target=\"_blank\"><img alt=\"Tweet\" src=\"https://kostyanetsky.me/notes/single-sign-on/snap-tweet-EpicGames-1303716447831707649.png\"/></a></p>\n<p>Whatever else you make of <s>this clash of two yokozuna</s> the Apple–Epic Games fight, it’s a great reminder that you shouldn’t use Single Sign-On on the internet: anywhere, ever, on any service. Who knows which giants will suddenly come to blows next, or which website will ban you for no clear reason? Because screw you, dude, that’s why.</p>\n<p>The users in that tweet might get off lightly. But if, say, Google blocks your account, you could be in real trouble: a pile of services you accessed through Google will suddenly turn into pumpkins.</p>\n<p>There are plenty of solutions just as convenient as Single Sign-On. Password managers, browser extensions, hardware keys: almost anything is better than proprietary, closed-source services you have no say in.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "on single sign-on 12 september 2020 · meanwhile whatever else you make of this clash of two yokozuna the apple–epic games fight, it’s a great reminder that you shouldn’t use single sign-on on the internet: anywhere, ever, on any service. who knows which giants will suddenly come to blows next, or which website will ban you for no clear reason? because screw you, dude, that’s why. the users in that tweet might get off lightly. but if, say, google blocks your account, you could be in real trouble: a pile of services you accessed through google will suddenly turn into pumpkins. there are plenty of solutions just as convenient as single sign-on. password managers, browser extensions, hardware keys: almost anything is better than proprietary, closed-source services you have no say in.",
    "tags": [
      "meanwhile"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/techprof\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                1C:Professional in Technological Issues\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>5 September 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>At the end of August, I passed the 1C Professional test on technological issues in large implementations. It’s basically your ticket to the <a href=\"https://1c.ru/rus/partners/training/uc1/course.jsp?id=199\" rel=\"noopener noreferrer\" target=\"_blank\">main exam</a>, a way to thin the crowd and get people to brush up on the theory.</p>\n<p>The test has fourteen questions randomly chosen from around five hundred possibilities. You need at least twelve correct answers. You get half an hour, though five to ten minutes is enough in practice: you can work out most answers or just memorize them. There are inaccuracies and vague wording, but not many. Decent questions, in short.</p>\n<p>The selection of topics felt like quite a jumble, a little bit of everything. Still, covering all that ground is probably a good thing: you look at another unfamiliar question, answer it, get it wrong, get over being annoyed, and go find out why. You become a little smarter, though no guarantees.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "1c:professional in technological issues 5 september 2020 · 1с done at the end of august, i passed the 1c professional test on technological issues in large implementations. it’s basically your ticket to the main exam , a way to thin the crowd and get people to brush up on the theory. the test has fourteen questions randomly chosen from around five hundred possibilities. you need at least twelve correct answers. you get half an hour, though five to ten minutes is enough in practice: you can work out most answers or just memorize them. there are inaccuracies and vague wording, but not many. decent questions, in short. the selection of topics felt like quite a jumble, a little bit of everything. still, covering all that ground is probably a good thing: you look at another unfamiliar question, answer it, get it wrong, get over being annoyed, and go find out why. you become a little smarter, though no guarantees.",
    "tags": [
      "1c",
      "done"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/unresolved-gopher\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Unresolved References to Functional Options\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>19 August 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Here’s one way to solve <a href=\"https://kostyanetsky.me/notes/unresolved-references\" rel=\"noopener noreferrer\" target=\"_blank\">unresolved references</a> left after deleting a functional option. It starts with a configuration check giving me a couple of dozen messages like this:</p>\n<pre><code>CommonForm.PersonalSettings.Form Unresolved metadata object references (2)\nCatalog.BankAccounts.Form.GLAccountsEditForm.Form Unresolved metadata object references (1)\nCatalog.CashRegisters.Form.GLAccountsEditForm.Form Unresolved metadata object references (1)\n</code></pre>\n<p>I export the configuration to files and open Form.xml for one of the affected forms. I pick a form with fewer controls, so there’s less stuff to sift through.</p>\n<p>A quick scan for anything unusual doesn’t take long:</p>\n<p><img alt=\"The suspect\" src=\"https://kostyanetsky.me/notes/unresolved-gopher/suspect.png\"/></p>\n<p>A normal functional option reference is its name, as with DepreciationOfAssets. If there’s a GUID instead, that functional option is missing from the configuration. The reference is unresolved.</p>\n<p>I search the rest of the export for that GUID, and there are almost all the problems the platform complained about. Fixing them is easy: remove the broken reference from the XML and load the file back into the configuration. There’s an even simpler approach: open the form control’s functional options list and immediately save it. That also removes the broken reference.</p>\n<p>Why is looking for these strays in Designer itself a job for incurable optimists? Because the problem is almost impossible to notice. At best, you’ll see something like this:</p>\n<p><img alt=\"Real evidence\" src=\"https://kostyanetsky.me/notes/unresolved-gopher/evidence.png\"/></p>\n<p>Designer knows there are two options in the field, but can’t get a name for the second one. It’s gone. And most often there’s only one functional option! Then it looks like this:</p>\n<p><img alt=\"Your Honor, I’m innocent!\" src=\"https://kostyanetsky.me/notes/unresolved-gopher/innocent.png\"/></p>\n<iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/EHX7NZS8zAI\" width=\"560\"></iframe>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "unresolved references to functional options 19 august 2020 · 1с here’s one way to solve unresolved references left after deleting a functional option. it starts with a configuration check giving me a couple of dozen messages like this: commonform.personalsettings.form unresolved metadata object references (2) catalog.bankaccounts.form.glaccountseditform.form unresolved metadata object references (1) catalog.cashregisters.form.glaccountseditform.form unresolved metadata object references (1) i export the configuration to files and open form.xml for one of the affected forms. i pick a form with fewer controls, so there’s less stuff to sift through. a quick scan for anything unusual doesn’t take long: a normal functional option reference is its name, as with depreciationofassets. if there’s a guid instead, that functional option is missing from the configuration. the reference is unresolved. i search the rest of the export for that guid, and there are almost all the problems the platform complained about. fixing them is easy: remove the broken reference from the xml and load the file back into the configuration. there’s an even simpler approach: open the form control’s functional options list and immediately save it. that also removes the broken reference. why is looking for these strays in designer itself a job for incurable optimists? because the problem is almost impossible to notice. at best, you’ll see something like this: designer knows there are two options in the field, but can’t get a name for the second one. it’s gone. and most often there’s only one functional option! then it looks like this:",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/method-with-surprise\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                A Method with a Surprise\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>27 Jule 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>A couple of weeks ago, I encountered an annoying bug. The task couldn’t be simpler: find a document by number. Do it this way, and the document is found:</p>\n<pre><code>SELECT Ref FROM Document.Invoice WHERE Number = &amp;Number\n</code></pre>\n<p>But this way? No luck:</p>\n<pre><code>Documents.Invoice.FindByNumber(Number)\n</code></pre>\n<p>At first I froze for a moment, then checked the documentation and, of course, found the answer. FindByNumber() has a second parameter, IntervalDate, for finding documents with periodic numbering. It narrows the search to a particular period. If numbering resets annually and you pass May 1, 2020, for example, the search covers January 1 through December 31, 2020. And Invoice does indeed use annual numbering.</p>\n<p>So what’s the problem? The vague phrase “the parameter is used for documents with periodic numbering” actually hides an iron rule: you <strong>cannot</strong> omit the parameter for such documents.</p>\n<p>To check, let’s look at the SQL the DBMS actually runs. An ordinary query brings no surprises. P1 is the separator, P2 the document number:</p>\n<pre><code>SELECT\n    T1._IDRRef \nFROM\n    dbo._Document283 T1\nWHERE\n    ((T1._Fld704 = @P1))\n    AND ((T1._Number = @P2))\n</code></pre>\n<p>But calling FindByNumber() adds a third parameter with the value 2001-12-31 23:59:59. Yes, “the end of the first year since the beginning of time”:</p>\n<pre><code>SELECT\n    T1._IDRRef\nFROM\n    dbo._Document283 T1\nWHERE\n    ((T1._Fld704 = @P1))\n    AND\n    (\n        T1._Number = @P2\n        AND T1._Date_Time &lt;= @P3\n    )\n</code></pre>\n<p>Naturally, this query doesn’t find the required document. It won’t find anything in a real infobase, ever, under any circumstances.</p>\n<p>The solution is clear: pass IntervalDate or, if we don’t have a date, use the Standard Subsystems Library’s ObjectAttributeValue() or an equivalent. But honestly, the platform should throw an exception when FindByNumber() is called without IntervalDate on a document with periodic numbering, rather than quietly execute a query guaranteed to be pointless.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "a method with a surprise 27 jule 2020 · 1с a couple of weeks ago, i encountered an annoying bug. the task couldn’t be simpler: find a document by number. do it this way, and the document is found: select ref from document.invoice where number = &number but this way? no luck: documents.invoice.findbynumber(number) at first i froze for a moment, then checked the documentation and, of course, found the answer. findbynumber() has a second parameter, intervaldate, for finding documents with periodic numbering. it narrows the search to a particular period. if numbering resets annually and you pass may 1, 2020, for example, the search covers january 1 through december 31, 2020. and invoice does indeed use annual numbering. so what’s the problem? the vague phrase “the parameter is used for documents with periodic numbering” actually hides an iron rule: you cannot omit the parameter for such documents. to check, let’s look at the sql the dbms actually runs. an ordinary query brings no surprises. p1 is the separator, p2 the document number: select t1._idrref from dbo._document283 t1 where ((t1._fld704 = @p1)) and ((t1._number = @p2)) but calling findbynumber() adds a third parameter with the value 2001-12-31 23:59:59. yes, “the end of the first year since the beginning of time”: select t1._idrref from dbo._document283 t1 where ((t1._fld704 = @p1)) and ( t1._number = @p2 and t1._date_time <= @p3 ) naturally, this query doesn’t find the required document. it won’t find anything in a real infobase, ever, under any circumstances. the solution is clear: pass intervaldate or, if we don’t have a date, use the standard subsystems library’s objectattributevalue() or an equivalent. but honestly, the platform should throw an exception when findbynumber() is called without intervaldate on a document with periodic numbering, rather than quietly execute a query guaranteed to be pointless.",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/one-query-to-rule-them-all\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                One Query to Rule Them All\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>25 Jule 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"optimization\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Optimization</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>For posterity, I’ve <a href=\"https://gist.github.com/vkostyanetsky/ddb286da9674b05d014389bed3b022c4\" rel=\"noopener noreferrer\" target=\"_blank\">uploaded</a> one of the inefficient queries I worked on a few months ago to GitHub Gist. It powered a dynamic list on a catalog item form, and whenever the user opened that tab, the platform went off to meditate, even with a relatively small database.</p>\n<p>At first glance, it looks straightforward: a bunch of queries against document tables, joined with UNION ALL. Each table is filtered by roughly the same conditions: reference type, date, and whether the reference appears in a subquery’s result.</p>\n<p>But there are several potential problems. First, at least 14 tables are involved, one per combined query. That alone raises the risk that the optimizer won’t have time to choose even a reasonably decent plan. Most likely, it will just take a wild guess and hope for the best.</p>\n<p>Second, much of that work is probably wasted. Each query has something like this:</p>\n<pre><code>WHERE VALUETYPE(AdditionalExpenses.Ref) IN (&amp;DocumentsListSelectedTypes)\n</code></pre>\n<p>The dynamic list receives a list of document types to display. But that filter kicks in <strong>after</strong> the data has been read: even if the user only wants invoices, the DBMS still reads all 14 tables, then discards 13 of them.</p>\n<p>Still, none of that is especially critical. If that were the full list of problems, we might never have investigated. The main issue is the second condition in the WHERE clauses: each query checks whether the document reference appears in a subquery’s result.</p>\n<p>Using subqueries in conditions is almost taboo unless temporary tables are involved: the DBMS often can’t work out how much data it’ll get back, or how best to handle it. And the data source makes things even worse here. A filter criterion isn’t a database table you can read, even by scanning; it’s a collection of tables. DocumentsByProject contains thirty!</p>\n<p>That sounds bad enough, but there’s more: each of the fourteen combined queries selects documents of a particular type from those thirty tables.</p>\n<p><img alt=\"OMG\" src=\"https://media.giphy.com/media/oYtVHSxngR3lC/giphy.gif\"/></p>\n<p>And… scene :-)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "one query to rule them all 25 jule 2020 · 1с done optimization work for posterity, i’ve uploaded one of the inefficient queries i worked on a few months ago to github gist. it powered a dynamic list on a catalog item form, and whenever the user opened that tab, the platform went off to meditate, even with a relatively small database. at first glance, it looks straightforward: a bunch of queries against document tables, joined with union all. each table is filtered by roughly the same conditions: reference type, date, and whether the reference appears in a subquery’s result. but there are several potential problems. first, at least 14 tables are involved, one per combined query. that alone raises the risk that the optimizer won’t have time to choose even a reasonably decent plan. most likely, it will just take a wild guess and hope for the best. second, much of that work is probably wasted. each query has something like this: where valuetype(additionalexpenses.ref) in (&documentslistselectedtypes) the dynamic list receives a list of document types to display. but that filter kicks in after the data has been read: even if the user only wants invoices, the dbms still reads all 14 tables, then discards 13 of them. still, none of that is especially critical. if that were the full list of problems, we might never have investigated. the main issue is the second condition in the where clauses: each query checks whether the document reference appears in a subquery’s result. using subqueries in conditions is almost taboo unless temporary tables are involved: the dbms often can’t work out how much data it’ll get back, or how best to handle it. and the data source makes things even worse here. a filter criterion isn’t a database table you can read, even by scanning; it’s a collection of tables. documentsbyproject contains thirty! that sounds bad enough, but there’s more: each of the fourteen combined queries selects documents of a particular type from those thirty tables. and… scene :-)",
    "tags": [
      "1c",
      "done",
      "optimization",
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/thisobject-thisobject\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                ThisObject.ThisObject\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>24 Jule 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"javascript\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Javascript</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p><a href=\"https://twitter.com/webholt/status/923830370822389760\" rel=\"noopener noreferrer\" target=\"_blank\"><img alt=\"Tweet\" src=\"https://kostyanetsky.me/notes/thisobject-thisobject/snap-tweet-webholt-923830370822389760.png\"/></a></p>\n<p>I love JavaScript! Whenever some bizarre nonsense in my beloved platform pisses me off, I open any thread about web developers’ daily lives and calm down quickly, very quickly.</p>\n<p>Similar tricks are possible in 1C, though. JavaScript understands window.window.window.location, for example, while the platform understands <a href=\"https://kostyanetsky.me/notes/thisobject-thisobject/thisobject-thisobject.png\" rel=\"noopener noreferrer\" target=\"_blank\">this</a> :-)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "thisobject.thisobject 24 jule 2020 · 1с javascript i love javascript! whenever some bizarre nonsense in my beloved platform pisses me off, i open any thread about web developers’ daily lives and calm down quickly, very quickly. similar tricks are possible in 1c, though. javascript understands window.window.window.location, for example, while the platform understands this :-)",
    "tags": [
      "1c",
      "javascript"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/service-launcher-update\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Service Launcher Update\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>22 Jule 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"powershell\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Powershell</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"workplace\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Workplace</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I’ve improved <a href=\"https://kostyanetsky.me/notes/service-launcher\" rel=\"noopener noreferrer\" target=\"_blank\">Service Launcher</a>. If you run the script without parameters, specifying neither -start nor -stop, it now decides for itself whether to start or stop the services.</p>\n<p>It checks the status of the first service in the list. If it’s running, the script stops everything on the list. If it’s stopped, the script tries to start them all.</p>\n<p>Why? If, like me, you run the script from a programmable keyboard, you now need only one key. Previously, you needed two: one to start the services and another to stop them.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "service launcher update 22 jule 2020 · done powershell workplace i’ve improved service launcher . if you run the script without parameters, specifying neither -start nor -stop, it now decides for itself whether to start or stop the services. it checks the status of the first service in the list. if it’s running, the script stops everything on the list. if it’s stopped, the script tries to start them all. why? if, like me, you run the script from a programmable keyboard, you now need only one key. previously, you needed two: one to start the services and another to stop them.",
    "tags": [
      "done",
      "powershell",
      "workplace"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/vuejs-blog\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                A Blog in Vue.js\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>21 Jule 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"blog\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Blog</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"javascript\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Javascript</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>In the middle of last year, I <a href=\"https://kostyanetsky.me/notes/so-much\" rel=\"noopener noreferrer\" target=\"_blank\">got excited</a> about rewriting this website with something more modern than PHP, chose Vue.js as the framework, and got to work. I barely knew JavaScript at the time, so I stumbled over plenty of things like “the date formatting method crashes in Safari.” Eventually, though, I had a working app.</p>\n<p>Well, sort of. On one hand, I achieved my main goal: a client-side web application that only asks the server for data and builds the entire interface itself. On the other, I had to bolt an army of <s>workarounds</s> hooks onto the framework even for basic things, like highlighting menu items or returning the correct HTTP codes. Some things I couldn’t get working at all on the first go, such as serving HTML versions of pages to Yandex, whose crawlers in 2020 can’t index JavaScript websites.</p>\n<p>I learned a lot, but the end result was such a mixed bag that I eventually gave up on the idea and <a href=\"https://github.com/vkostyanetsky/VuejsBlog\" rel=\"noopener noreferrer\" target=\"_blank\">published</a> the resulting Frankenstein on GitHub. Perhaps it will save someone time on tasks like “display arbitrary HTML through Vue.js” or “make VueI18n work with Russian.”</p>\n<p>There’s no documentation, though. I initially wanted to explain how everything worked, but quickly realized it would take a lot of time for little obvious benefit. I’ll probably return to the subject when the mood strikes. For now, let’s call it an MVP :-)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "a blog in vue.js 21 jule 2020 · blog done javascript in the middle of last year, i got excited about rewriting this website with something more modern than php, chose vue.js as the framework, and got to work. i barely knew javascript at the time, so i stumbled over plenty of things like “the date formatting method crashes in safari.” eventually, though, i had a working app. well, sort of. on one hand, i achieved my main goal: a client-side web application that only asks the server for data and builds the entire interface itself. on the other, i had to bolt an army of workarounds hooks onto the framework even for basic things, like highlighting menu items or returning the correct http codes. some things i couldn’t get working at all on the first go, such as serving html versions of pages to yandex, whose crawlers in 2020 can’t index javascript websites. i learned a lot, but the end result was such a mixed bag that i eventually gave up on the idea and published the resulting frankenstein on github. perhaps it will save someone time on tasks like “display arbitrary html through vue.js” or “make vuei18n work with russian.” there’s no documentation, though. i initially wanted to explain how everything worked, but quickly realized it would take a lot of time for little obvious benefit. i’ll probably return to the subject when the mood strikes. for now, let’s call it an mvp :-)",
    "tags": [
      "blog",
      "done",
      "javascript"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/broken-bicycle\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                A Broken Bicycle\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>20 Jule 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p><a href=\"https://www.1ci.com/applications/1c-drive/\" rel=\"noopener noreferrer\" target=\"_blank\"><img alt=\"1C:Drive\" src=\"https://kostyanetsky.me/notes/broken-bicycle/broken-bicycle.png\"/></a></p>\n<p>I suspect whoever drew this image for 1Ci was about as far removed from developing the configuration, and from programming in general, as possible. Because a programmer sees exactly two messages about the product here:</p>\n<ol>\n<li>It reinvents the wheel.</li>\n<li>The wheel is broken.</li>\n</ol>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "a broken bicycle 20 jule 2020 · 1с i suspect whoever drew this image for 1ci was about as far removed from developing the configuration, and from programming in general, as possible. because a programmer sees exactly two messages about the product here: it reinvents the wheel. the wheel is broken.",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/service-launcher\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Service Launcher\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>13 Jule 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"powershell\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Powershell</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"workplace\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Workplace</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Some time ago, I <a href=\"https://kostyanetsky.me/notes/manage-services-with-powershell\" rel=\"noopener noreferrer\" target=\"_blank\">wrote</a> about PowerShell cmdlets for starting and stopping services. I’ve now turned those sketches into a proper script: it reads the list of services to start or stop from a separate file, and checks whether it has admin rights, asking for them if it doesn’t.</p>\n<p>You can <a href=\"https://github.com/vkostyanetsky/ServiceLauncher\" rel=\"noopener noreferrer\" target=\"_blank\">see the result</a> on GitHub. No big deal: I wanted to practice the language and simplify my daily routine. My system has about fifteen resource-hungry services needed for work but useless at other times. Stopping and starting that whole zoo by hand is a pain. Doing it with one command? Much better!</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "service launcher 13 jule 2020 · done powershell workplace some time ago, i wrote about powershell cmdlets for starting and stopping services. i’ve now turned those sketches into a proper script: it reads the list of services to start or stop from a separate file, and checks whether it has admin rights, asking for them if it doesn’t. you can see the result on github. no big deal: i wanted to practice the language and simplify my daily routine. my system has about fifteen resource-hungry services needed for work but useless at other times. stopping and starting that whole zoo by hand is a pain. doing it with one command? much better!",
    "tags": [
      "done",
      "powershell",
      "workplace"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/data-size-console\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                The Size of Data in a 1C Database\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>11 Jule 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Last week, while browsing the 8.3.15 release notes, I came across GetDatabaseDataSize(). I got curious about how it works and how its numbers compare with what you get from, say, Management Studio.</p>\n<p>I ended up writing a sort of <a href=\"https://github.com/vkostyanetsky/DataSizeConsole\" rel=\"noopener noreferrer\" target=\"_blank\">console</a> to pass various metadata objects to the method, and started watching the platform’s database queries.</p>\n<p>Basically, the platform works out the data size with something like this:</p>\n<pre><code>CAST(\n    SUM(\n        CAST(\n            DATALENGTH(T1._Fld40) AS NUMERIC(12, 0)\n        )\n    ) AS NUMERIC(18, 0)\n)\n</code></pre>\n<p>It does this for every field in the object, including standard attributes. If there are tabular sections, it counts those too, then sums the results.</p>\n<p>Conclusions?</p>\n<p>First, now I understand the method’s awkward name. It doesn’t calculate table size, as I initially thought, but <strong>data size</strong> specifically. The estimate excludes schema overhead, index overhead, and extent allocation. It counts only the size of the data stored directly in the object.</p>\n<p>So a product catalog, say, will actually take up more space than this method reports. Possibly a lot more. You wouldn’t use it for precise analysis, but it’s fine for a quick look at where the data is piling up.</p>\n<p>Second, the method doesn’t count the data history overhead for the objects being analyzed, which the docs are quite clear about. In theory, you could calculate it manually starting from _DataHistoryMetadata, but let’s wait a release or two: perhaps the developers will add it.</p>\n<p>Third, the DBMS reads all the data in the tables it needs, then works out how big that data is. That probably means a whole bunch of scans, which can flush the buffer cache pretty quickly. In 1cFresh, the queries respect data separators, but that’s cold comfort to me.</p>\n<p>Use it with care on a live production system.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "the size of data in a 1c database 11 jule 2020 · 1с done last week, while browsing the 8.3.15 release notes, i came across getdatabasedatasize(). i got curious about how it works and how its numbers compare with what you get from, say, management studio. i ended up writing a sort of console to pass various metadata objects to the method, and started watching the platform’s database queries. basically, the platform works out the data size with something like this: cast( sum( cast( datalength(t1._fld40) as numeric(12, 0) ) ) as numeric(18, 0) ) it does this for every field in the object, including standard attributes. if there are tabular sections, it counts those too, then sums the results. conclusions? first, now i understand the method’s awkward name. it doesn’t calculate table size, as i initially thought, but data size specifically. the estimate excludes schema overhead, index overhead, and extent allocation. it counts only the size of the data stored directly in the object. so a product catalog, say, will actually take up more space than this method reports. possibly a lot more. you wouldn’t use it for precise analysis, but it’s fine for a quick look at where the data is piling up. second, the method doesn’t count the data history overhead for the objects being analyzed, which the docs are quite clear about. in theory, you could calculate it manually starting from _datahistorymetadata, but let’s wait a release or two: perhaps the developers will add it. third, the dbms reads all the data in the tables it needs, then works out how big that data is. that probably means a whole bunch of scans, which can flush the buffer cache pretty quickly. in 1cfresh, the queries respect data separators, but that’s cold comfort to me. use it with care on a live production system.",
    "tags": [
      "1c",
      "done"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/what-is-inside-the-drum\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Exporting Standard Data Processors\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>5 Jule 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>We recently swapped out SSLi’s creaky old homegrown versioning for the platform’s built-in data history in our configuration. I’m now finishing data history backup and restore. Surprisingly, neither the Standard Subsystems Library, the Standard Technologies Library, nor SSLi can do this yet, though I didn’t expect it from the last one.</p>\n<p>I’ll write more when it’s finished. For now, here’s a neat trick that came in handy: the platform’s built-in data processors available through “All Functions” can be exported as ordinary epf files! Colleagues on Infostart explained the trick in detail <a href=\"https://infostart.ru/public/369487/\" rel=\"noopener noreferrer\" target=\"_blank\">here</a> and <a href=\"https://infostart.ru/public/538300/\" rel=\"noopener noreferrer\" target=\"_blank\">here</a>. In brief, the magic looks like this:</p>\n<pre><code>КопироватьФайл(\n    \"v8res://mngbase/StandardDataChangeHistory.epf\",\n    \"Q:/StandardDataChangeHistory.epf\"\n);\n</code></pre>\n<p>The links above have the full list of forms and processors you can pull out, how to get that list, and plenty of people arguing about it all.</p>\n<p>Why might this help you? Honestly, I don’t know. In our case, we were building interfaces for data history and were curious about how 1C had written its own. Spoiler: it’s pretty messy.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "exporting standard data processors 5 jule 2020 · 1с work we recently swapped out ssli’s creaky old homegrown versioning for the platform’s built-in data history in our configuration. i’m now finishing data history backup and restore. surprisingly, neither the standard subsystems library, the standard technologies library, nor ssli can do this yet, though i didn’t expect it from the last one. i’ll write more when it’s finished. for now, here’s a neat trick that came in handy: the platform’s built-in data processors available through “all functions” can be exported as ordinary epf files! colleagues on infostart explained the trick in detail here and here . in brief, the magic looks like this: копироватьфайл( \"v8res://mngbase/standarddatachangehistory.epf\", \"q:/standarddatachangehistory.epf\" ); the links above have the full list of forms and processors you can pull out, how to get that list, and plenty of people arguing about it all. why might this help you? honestly, i don’t know. in our case, we were building interfaces for data history and were curious about how 1c had written its own. spoiler: it’s pretty messy.",
    "tags": [
      "1c",
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/how-not-to-land\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                The Subtle Art of Landing\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>31 May 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"meanwhile\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Meanwhile</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/bvim4rsNHkQ\" width=\"560\"></iframe>\n<p>With all the news lately, I ended up watching a three-year-old SpaceX compilation of failed landings on a floating platform. To me, it’s a great example of how to treat your mistakes: with humor!</p>\n<blockquote>\n<p>Well, technically, it did land… Just not in one piece.</p>\n</blockquote>\n<p>:D</p>\n<p>The comments are in fine form too:</p>\n<blockquote>\n<p>Space X : Launches astronauts for the first time.</p>\n<p>Youtube: Let's recommend this video!</p>\n</blockquote>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "the subtle art of landing 31 may 2020 · meanwhile with all the news lately, i ended up watching a three-year-old spacex compilation of failed landings on a floating platform. to me, it’s a great example of how to treat your mistakes: with humor! well, technically, it did land… just not in one piece. :d the comments are in fine form too: space x : launches astronauts for the first time. youtube: let's recommend this video!",
    "tags": [
      "meanwhile"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/fred\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Fred\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>24 May 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"english\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">English</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Igor Sakharov covered Korol i Shut’s “Fred” in English:</p>\n<iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/MsFQmXdC29g\" width=\"560\"></iframe>\n<p>Rock! Ro-o-ock! :-)</p>\n<p>Seriously, I’ve <a href=\"https://kostyanetsky.me/notes/i-wish-i-could\" rel=\"noopener noreferrer\" target=\"_blank\">written</a> about this before, but I’m happy to repeat myself: things like this are one of the simplest and most enjoyable ways to memorize lots of words and expressions.</p>\n<p>Sure, there are plenty of sharp-minded people who don’t need this trick. It’s more for ordinary folks like me. Otherwise, all those “what a good match you and I” and “spellbound by your beauty pure and true” phrases sometimes evaporate from our heads in, well… Ten seconds?</p>\n<p>This way, you watch the video, catch yourself singing along, and the words stick before you know it.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "fred 24 may 2020 · english igor sakharov covered korol i shut’s “fred” in english: rock! ro-o-ock! :-) seriously, i’ve written about this before, but i’m happy to repeat myself: things like this are one of the simplest and most enjoyable ways to memorize lots of words and expressions. sure, there are plenty of sharp-minded people who don’t need this trick. it’s more for ordinary folks like me. otherwise, all those “what a good match you and i” and “spellbound by your beauty pure and true” phrases sometimes evaporate from our heads in, well… ten seconds? this way, you watch the video, catch yourself singing along, and the words stick before you know it.",
    "tags": [
      "english"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/perfectly-balanced\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                On Perfect Balance\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>20 May 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I want to share a couple of great pieces about modern software. Neither is exactly new, especially the first, but I’m sure some of you haven’t seen them:</p>\n<ul>\n<li><a href=\"https://tonsky.me/blog/disenchantment/ru/\" rel=\"noopener noreferrer\" target=\"_blank\">Software Disenchantment</a> by Nikita Tonsky</li>\n<li><a href=\"https://habr.com/ru/company/jugru/blog/493178/\" rel=\"noopener noreferrer\" target=\"_blank\">Everything in Software Is Amazing, but Nobody Is Happy</a> by Evgeny Trifonov</li>\n</ul>\n<p>What brought this to mind? Last week, I took part in a hackathon for developers at our company. I learned a lot of cool things and even shared first place with two other people who came up with very similar solutions.</p>\n<p>(If you also work at First BIT, the <a href=\"https://newportal.1cbit.ru/news/3066979/\" rel=\"noopener noreferrer\" target=\"_blank\">results</a> are on the portal, along with a <a href=\"https://newportal.1cbit.ru/news/3066980/\" rel=\"noopener noreferrer\" target=\"_blank\">review</a> by another winner, Dima Leshchenko.)</p>\n<p>Along the way, we had to deploy and configure a mountain of software: EDT, RabbitMQ, Docker, GitLab, JIRA, SonarQube, and a wagonload of smaller, simpler tools. All right, no complaints about RabbitMQ: it’s light and fast. But the rest… I already knew EDT had an appetite, but GitLab and JIRA’s hunger really surprised me.</p>\n<p>Yes, everything ran in Docker; yes, the configuration wasn’t optimal, with several PostgreSQL servers instead of one, for example; yes, it was Docker for Windows, which every sysadmin I know loves to make jokes about. But twelve gigabytes of RAM straight out of the gate?! I won’t even mention the CPU: the load looked as if the computer were simulating a nuclear explosion in real time.</p>\n<p>It’s hard to find a better illustration of Nikita’s points: this software devoured a sea of resources and calmly asked for more before it had even started doing anything useful. But Evgeny has a point too: with one single command, I got several operating systems up and running, complete with some pretty complicated servers. And it took a tiny fraction of the time it would have a few years ago.</p>\n<p>I don’t have an answer. I don’t think anyone does. We’ve been having this argument forever. Pick either side, and you still end up trying to find a balance. You need to write good, fast code, while also avoiding premature optimization. Getting the code right feels great: you remember that, damn it, you’re pretty good! The second simply keeps you from losing your mind in search of the perfect bubble sort algorithm :-)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "on perfect balance 20 may 2020 · 1с work i want to share a couple of great pieces about modern software. neither is exactly new, especially the first, but i’m sure some of you haven’t seen them: software disenchantment by nikita tonsky everything in software is amazing, but nobody is happy by evgeny trifonov what brought this to mind? last week, i took part in a hackathon for developers at our company. i learned a lot of cool things and even shared first place with two other people who came up with very similar solutions. (if you also work at first bit, the results are on the portal, along with a review by another winner, dima leshchenko.) along the way, we had to deploy and configure a mountain of software: edt, rabbitmq, docker, gitlab, jira, sonarqube, and a wagonload of smaller, simpler tools. all right, no complaints about rabbitmq: it’s light and fast. but the rest… i already knew edt had an appetite, but gitlab and jira’s hunger really surprised me. yes, everything ran in docker; yes, the configuration wasn’t optimal, with several postgresql servers instead of one, for example; yes, it was docker for windows, which every sysadmin i know loves to make jokes about. but twelve gigabytes of ram straight out of the gate?! i won’t even mention the cpu: the load looked as if the computer were simulating a nuclear explosion in real time. it’s hard to find a better illustration of nikita’s points: this software devoured a sea of resources and calmly asked for more before it had even started doing anything useful. but evgeny has a point too: with one single command, i got several operating systems up and running, complete with some pretty complicated servers. and it took a tiny fraction of the time it would have a few years ago. i don’t have an answer. i don’t think anyone does. we’ve been having this argument forever. pick either side, and you still end up trying to find a balance. you need to write good, fast code, while also avoiding premature optimization. getting the code right feels great: you remember that, damn it, you’re pretty good! the second simply keeps you from losing your mind in search of the perfect bubble sort algorithm :-)",
    "tags": [
      "1c",
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/value-table-view\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Viewing a Value Table\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>16 May 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I’ve uploaded a <a href=\"https://gist.github.com/vkostyanetsky/ef44bbb18f36a1c51826a5d0b4f3960e\" rel=\"noopener noreferrer\" target=\"_blank\">short function</a> to GitHub that converts any value table into a spreadsheet document.</p>\n<p>Why? So you can see what’s in it. You can’t pass the value table itself to the client, but you can pass a spreadsheet document based on it. A spreadsheet document also has a client-side Show() method that displays it in a separate window.</p>\n<p>That way, you can poke around in utility tables right in Enterprise mode, without building an interface for each one. Feed a table to the function above, get a spreadsheet document back, send it to the client, and show it.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "viewing a value table 16 may 2020 · 1с done i’ve uploaded a short function to github that converts any value table into a spreadsheet document. why? so you can see what’s in it. you can’t pass the value table itself to the client, but you can pass a spreadsheet document based on it. a spreadsheet document also has a client-side show() method that displays it in a separate window. that way, you can poke around in utility tables right in enterprise mode, without building an interface for each one. feed a table to the function above, get a spreadsheet document back, send it to the client, and show it.",
    "tags": [
      "1c",
      "done"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/self-documenting-code\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Self-Documenting Code\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>3 May 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"code-smell\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Code Smell</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Hello, everyone! Johnny Catswill is back with another episode of Self-Documenting Code!</p>\n<p>Today, we’ll iterate over value table rows from Н to Й:</p>\n<p><img alt=\":|\" src=\"https://kostyanetsky.me/notes/self-documenting-code/self-documenting-code.png\"/></p>\n<p>It seems like a tiny thing, but by the fifth time you run into this kind of variable naming in the same module, your eye starts twitching :-)</p>\n<p>It isn’t even that this section is <a href=\"https://kostyanetsky.me/notes/why-so-serious\" rel=\"noopener noreferrer\" target=\"_blank\">harder to understand</a>; it says a lot about the module’s overall quality. The programmer who wrote it was probably exhausted, and somewhere nearby you’ll likely find something like someone cheerfully dumping the entire product catalog into a value table, reading a bunch of objects “through a dot,” and more of the same slapdash stuff.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "self-documenting code 3 may 2020 · 1с code smell hello, everyone! johnny catswill is back with another episode of self-documenting code! today, we’ll iterate over value table rows from н to й: it seems like a tiny thing, but by the fifth time you run into this kind of variable naming in the same module, your eye starts twitching :-) it isn’t even that this section is harder to understand ; it says a lot about the module’s overall quality. the programmer who wrote it was probably exhausted, and somewhere nearby you’ll likely find something like someone cheerfully dumping the entire product catalog into a value table, reading a bunch of objects “through a dot,” and more of the same slapdash stuff.",
    "tags": [
      "1c",
      "code-smell"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/manage-services-with-powershell\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Managing Services with PowerShell\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>28 April 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"powershell\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Powershell</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"workplace\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Workplace</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>The other day, I sketched out a few PowerShell scripts for starting and stopping services on my work PC. I didn’t end up needing them, so I’ll leave a couple of examples here before I lose them:</p>\n<pre><code>get-service -Name 1C:Enterprise* | Where-Object {$_.status -eq 'running'} | stop-service -pass\nget-service -Name *SQL* | Where-Object {$_.status -eq 'running'} | stop-service -pass\n</code></pre>\n<p>Both lines above do the same thing: find services with a particular name, check their status, and stop them if they’re running. Patterns come in handy for the service names. Microsoft SQL Server, for example, has a whole brood of services with different purposes, and it’s handy to kill them with one line. Or take the 1C:Enterprise server service: there’s only one, but its name is so long that I can’t be bothered to type it in full :-)</p>\n<p>You can do pretty much the same thing with regular processes. This line looks for obs64 and stops it if it’s there.</p>\n<pre><code>get-process -Name obs64 | stop-process -pass\n</code></pre>\n<p>If you want the details, there’s plenty of <a href=\"https://docs.microsoft.com/ru-ru/powershell/scripting/samples/managing-services?view=powershell-7\" rel=\"noopener noreferrer\" target=\"_blank\">documentation</a>, packed with examples and discussions along the lines of “how to start a service while meditating on one leg in artificial zero gravity.”</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "managing services with powershell 28 april 2020 · powershell workplace the other day, i sketched out a few powershell scripts for starting and stopping services on my work pc. i didn’t end up needing them, so i’ll leave a couple of examples here before i lose them: get-service -name 1c:enterprise* | where-object {$_.status -eq 'running'} | stop-service -pass get-service -name *sql* | where-object {$_.status -eq 'running'} | stop-service -pass both lines above do the same thing: find services with a particular name, check their status, and stop them if they’re running. patterns come in handy for the service names. microsoft sql server, for example, has a whole brood of services with different purposes, and it’s handy to kill them with one line. or take the 1c:enterprise server service: there’s only one, but its name is so long that i can’t be bothered to type it in full :-) you can do pretty much the same thing with regular processes. this line looks for obs64 and stops it if it’s there. get-process -name obs64 | stop-process -pass if you want the details, there’s plenty of documentation , packed with examples and discussions along the lines of “how to start a service while meditating on one leg in artificial zero gravity.”",
    "tags": [
      "powershell",
      "workplace"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/black-mesa\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Black Mesa\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>13 April 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/YkBrNGeFwoU\" width=\"560\"></iframe>\n<p>They’ve given the legendary, but now pretty creaky, Half-Life a careful makeover and thrown in a bunch of new ideas. It turned out great; you can really see the fans put their hearts into it :-) Xen benefited especially, although I think the factory could have been shorter. Still, the reworked Nihilanth fight more than makes up for all the suffering.</p>\n<p>There are minor issues with music, optimization, and translation, but nothing particularly serious. Given how long it was in development, it’s amazing they got it out at all. Long projects tend to wear people out and burn them out, and that’s before you even get to the enormous job of bringing a twenty-year-old game up to date! Quite a nasty piece of work you managed over there, guys. I am impressed.</p>\n<p><a href=\"https://kostyanetsky.me/notes/black-mesa/swamp.jpg\" rel=\"noopener noreferrer\" target=\"_blank\"><img alt=\"Swamp\" src=\"https://kostyanetsky.me/notes/black-mesa/swamp-thumbnail.jpg\"/></a> <a href=\"https://kostyanetsky.me/notes/black-mesa/crystaline-cave.jpg\" rel=\"noopener noreferrer\" target=\"_blank\"><img alt=\"Crystal Cave\" src=\"https://kostyanetsky.me/notes/black-mesa/crystaline-cave-thumbnail.jpg\"/></a> <a href=\"https://kostyanetsky.me/notes/black-mesa/burning-sky.jpg\" rel=\"noopener noreferrer\" target=\"_blank\"><img alt=\"Burning Sky\" src=\"https://kostyanetsky.me/notes/black-mesa/burning-sky-thumbnail.jpg\"/></a> <a href=\"https://kostyanetsky.me/notes/black-mesa/flycatcher.jpg\" rel=\"noopener noreferrer\" target=\"_blank\"><img alt=\"Flytrap\" src=\"https://kostyanetsky.me/notes/black-mesa/flycatcher-thumbnail.jpg\"/></a></p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "black mesa 13 april 2020 · videogames they’ve given the legendary, but now pretty creaky, half-life a careful makeover and thrown in a bunch of new ideas. it turned out great; you can really see the fans put their hearts into it :-) xen benefited especially, although i think the factory could have been shorter. still, the reworked nihilanth fight more than makes up for all the suffering. there are minor issues with music, optimization, and translation, but nothing particularly serious. given how long it was in development, it’s amazing they got it out at all. long projects tend to wear people out and burn them out, and that’s before you even get to the enormous job of bringing a twenty-year-old game up to date! quite a nasty piece of work you managed over there, guys. i am impressed.",
    "tags": [
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/is-ref-empty\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                IsEmpty() or ValueIsFilled()?\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>11 April 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>A few days ago, a colleague and I discussed the best way to check whether a reference is filled. I remembered an instructor telling us, very confidently, to be careful with ValueIsFilled(). Supposedly, it compares the variable with every possible empty value in the configuration, and the whole thing is a huge, slow mess. As an alternative, the instructor recommended the reference’s IsEmpty() method and checking composite attributes roughly like this:</p>\n<pre><code>СсылкаЗаполнена = Ссылка &lt;&gt; Неопределено И Не Ссылка.Пустая();\n</code></pre>\n<p>My colleague argued that ValueIsFilled() is faster because it’s a built-in function and doesn’t spend time looking up a method on an object, a relatively slow operation in scripting languages.</p>\n<p>I can’t recall either method ever being a bottleneck, but I got curious and wrote a <a href=\"https://github.com/vkostyanetsky/IsEmptyOrValueIsFilled\" rel=\"noopener noreferrer\" target=\"_blank\">test</a> that checks a reference variable for an empty value both ways and measures the time taken.</p>\n<p>The average result looks <a href=\"https://kostyanetsky.me/notes/is-ref-empty/is-ref-empty.png\" rel=\"noopener noreferrer\" target=\"_blank\">roughly like this</a>. There are four steps: the first two assume the reference is defined, while the third and fourth add a check for that. The table’s last column shows the execution context, client or server.</p>\n<p>The result is pretty clear: ValueIsFilled() doesn’t slow things down at all. It’s actually faster than IsEmpty(), especially once we start checking the variable for Undefined. The difference isn’t enormous, of course, but it could save a couple of seconds in some lengthy scheduled operations.</p>\n<p>Besides, one check that works for everything is easier than trying to guess every value the variable might have.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "isempty() or valueisfilled()? 11 april 2020 · 1с done a few days ago, a colleague and i discussed the best way to check whether a reference is filled. i remembered an instructor telling us, very confidently, to be careful with valueisfilled(). supposedly, it compares the variable with every possible empty value in the configuration, and the whole thing is a huge, slow mess. as an alternative, the instructor recommended the reference’s isempty() method and checking composite attributes roughly like this: ссылказаполнена = ссылка <> неопределено и не ссылка.пустая(); my colleague argued that valueisfilled() is faster because it’s a built-in function and doesn’t spend time looking up a method on an object, a relatively slow operation in scripting languages. i can’t recall either method ever being a bottleneck, but i got curious and wrote a test that checks a reference variable for an empty value both ways and measures the time taken. the average result looks roughly like this . there are four steps: the first two assume the reference is defined, while the third and fourth add a check for that. the table’s last column shows the execution context, client or server. the result is pretty clear: valueisfilled() doesn’t slow things down at all. it’s actually faster than isempty(), especially once we start checking the variable for undefined. the difference isn’t enormous, of course, but it could save a couple of seconds in some lengthy scheduled operations. besides, one check that works for everything is easier than trying to guess every value the variable might have.",
    "tags": [
      "1c",
      "done"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/sharex-video-recording\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Recording Video with ShareX\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>8 April 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"workplace\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Workplace</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Before switching to OBS Studio for video recording, which I wrote about in my <a href=\"https://kostyanetsky.me/notes/video-recording\" rel=\"noopener noreferrer\" target=\"_blank\">previous note</a>, I tried <a href=\"https://getsharex.com/\" rel=\"noopener noreferrer\" target=\"_blank\">ShareX</a>. It worked well at first, but one nasty bug made me give up on it. Sometimes I’d stop recording and end up with a broken video.</p>\n<p>I googled around but never figured out why. That isn’t surprising: ShareX uses <a href=\"https://www.ffmpeg.org/\" rel=\"noopener noreferrer\" target=\"_blank\">ffmpeg</a> to record video, and this child of open source calmly dumps a whole scroll of logs instead of useful diagnostics. Trying to make sense of that without knowing your way around it is a job for an incurable optimist.</p>\n<p>As a screenshot tool, though, ShareX is almost flawless. All those options remind me a bit of an exhausted person having a sudden burst of hyperactivity :-)</p>\n<p><a href=\"https://kostyanetsky.me/notes/sharex-video-recording/interface.png\" rel=\"noopener noreferrer\" target=\"_blank\"><img alt=\"Configuring screenshots\" src=\"https://kostyanetsky.me/notes/sharex-video-recording/interface-thumb.png\"/></a></p>\n<blockquote>\n<p>“I’ll test it myself! I’ll test everything myself! And mop the floors!”</p>\n<p><em><a href=\"https://www.youtube.com/watch?v=K6oZuB8_dU8&amp;feature=youtu.be&amp;t=640\" rel=\"noopener noreferrer\" target=\"_blank\">Efficiency Doesn’t Work. Ilya Yakyamtsev</a></em></p>\n</blockquote>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "recording video with sharex 8 april 2020 · workplace before switching to obs studio for video recording, which i wrote about in my previous note , i tried sharex . it worked well at first, but one nasty bug made me give up on it. sometimes i’d stop recording and end up with a broken video. i googled around but never figured out why. that isn’t surprising: sharex uses ffmpeg to record video, and this child of open source calmly dumps a whole scroll of logs instead of useful diagnostics. trying to make sense of that without knowing your way around it is a job for an incurable optimist. as a screenshot tool, though, sharex is almost flawless. all those options remind me a bit of an exhausted person having a sudden burst of hyperactivity :-) “i’ll test it myself! i’ll test everything myself! and mop the floors!” efficiency doesn’t work. ilya yakyamtsev",
    "tags": [
      "workplace"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/video-recording\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Recording Video\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>3 April 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"workplace\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Workplace</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I work remotely, so I talk to colleagues over Zoom and Slack. Mostly in chats, but many subjects are still easier to discuss by voice. That’s where it gets awkward: forget message indexing and search, and, most importantly, there’s no conversation archive. Sometimes you really need to remember: who said it? What exactly? When?</p>\n<p>Zoom and Slack don’t solve this on their own. Zoom only records meetings you organize or have permission to record, which is far from all of them, while Slack doesn’t record video at all.</p>\n<h2>Solving the Problem</h2>\n<p>I solved it some time ago by installing <a href=\"https://obsproject.com\" rel=\"noopener noreferrer\" target=\"_blank\">OBS Studio</a>, screen recording software popular with streamers. It handles conference recording beautifully. Setup is minimal: record the entire screen, microphone audio, and all playback audio. After a few test recordings, you can add mixer filters such as gain and noise suppression.</p>\n<p><img alt=\"Configuring OBS Studio\" src=\"https://kostyanetsky.me/notes/video-recording/video-recording.png\"/></p>\n<p>Choose where to save the recordings under Output → Recording → Recording Path. We’re recording calls, so there’ll be lots of files. Might as well sort them into folders by day from the start. Go to Advanced settings and set Filename Formatting to something like %CCYY-%MM-%DD/%hh-%mm-%ss.</p>\n<h2>Quick Recording Controls</h2>\n<p>Opening OBS for every call is inconvenient, but it supports plenty of hotkeys. You can press some elaborate combination at the start and end of a conversation. That didn’t work for me, though: for some reason, the shortcuts kept slipping my mind. Even sticky notes didn’t help.</p>\n<p>At first I got quite annoyed, then realized: if I can’t remember a shortcut, I should get rid of it. Start recording with one button, stop with another.</p>\n<p>The hardware was easy: I have an ergonomic Microsoft <a href=\"https://www.microsoft.com/accessories/ru-ru/products/keyboards/natural-ergonomic-keyboard-4000/b2m-00020\" rel=\"noopener noreferrer\" target=\"_blank\">keyboard</a> with a wagonload of programmable buttons. Software was harder: OBS Studio understands some launch <a href=\"https://github.com/obsproject/obs-studio/wiki/Launch-Parameters\" rel=\"noopener noreferrer\" target=\"_blank\">parameters</a>, but there’s not much to choose from. There isn’t even a stop-recording option. I wanted more.</p>\n<p>I eventually solved it with an OBS Studio plugin that lets you control a running instance. It was designed for remote recording control, from a smartphone for example, but it works just as well on the same machine.</p>\n<p>Here’s what I ended up with:</p>\n<ol>\n<li>Install OBS Studio and the <a href=\"https://obsproject.com/forum/resources/obs-websocket-remote-control-of-obs-studio-made-easy.466/\" rel=\"noopener noreferrer\" target=\"_blank\">obs-websocket</a> plugin. Clear “Enable System Tray Alerts” under Tools → WebSockets Server Settings, or it will report every little thing.</li>\n<li>Put this <a href=\"https://obsproject.com/forum/resources/command-line-tool-for-obs-websocket-plugin-windows.615/\" rel=\"noopener noreferrer\" target=\"_blank\">utility</a> somewhere convenient to control the plugin from the command line.</li>\n<li>Assign OBSCommand.exe /startrecording to one button and OBSCommand.exe /stoprecording to another.</li>\n<li>Done. Look at you go!</li>\n</ol>\n<p>A console window pops up for a moment when you press the button: OBSCommand launches, contacts obs-websocket, and waits for a reply. I initially wanted to hide the window, but changed my mind. If OBS Studio isn’t running or something goes wrong, the console will stay open, and at least I’ll know recording hasn’t started.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "recording video 3 april 2020 · workplace i work remotely, so i talk to colleagues over zoom and slack. mostly in chats, but many subjects are still easier to discuss by voice. that’s where it gets awkward: forget message indexing and search, and, most importantly, there’s no conversation archive. sometimes you really need to remember: who said it? what exactly? when? zoom and slack don’t solve this on their own. zoom only records meetings you organize or have permission to record, which is far from all of them, while slack doesn’t record video at all. solving the problem i solved it some time ago by installing obs studio , screen recording software popular with streamers. it handles conference recording beautifully. setup is minimal: record the entire screen, microphone audio, and all playback audio. after a few test recordings, you can add mixer filters such as gain and noise suppression. choose where to save the recordings under output → recording → recording path. we’re recording calls, so there’ll be lots of files. might as well sort them into folders by day from the start. go to advanced settings and set filename formatting to something like %ccyy-%mm-%dd/%hh-%mm-%ss. quick recording controls opening obs for every call is inconvenient, but it supports plenty of hotkeys. you can press some elaborate combination at the start and end of a conversation. that didn’t work for me, though: for some reason, the shortcuts kept slipping my mind. even sticky notes didn’t help. at first i got quite annoyed, then realized: if i can’t remember a shortcut, i should get rid of it. start recording with one button, stop with another. the hardware was easy: i have an ergonomic microsoft keyboard with a wagonload of programmable buttons. software was harder: obs studio understands some launch parameters , but there’s not much to choose from. there isn’t even a stop-recording option. i wanted more. i eventually solved it with an obs studio plugin that lets you control a running instance. it was designed for remote recording control, from a smartphone for example, but it works just as well on the same machine. here’s what i ended up with: install obs studio and the obs-websocket plugin. clear “enable system tray alerts” under tools → websockets server settings, or it will report every little thing. put this utility somewhere convenient to control the plugin from the command line. assign obscommand.exe /startrecording to one button and obscommand.exe /stoprecording to another. done. look at you go! a console window pops up for a moment when you press the button: obscommand launches, contacts obs-websocket, and waits for a reply. i initially wanted to hide the window, but changed my mind. if obs studio isn’t running or something goes wrong, the console will stay open, and at least i’ll know recording hasn’t started.",
    "tags": [
      "workplace"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/unresolved-references\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Unresolved References\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>10 Marth 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Unresolved references to metadata objects usually appear when objects are deleted, and sometimes when configurations are merged. ITS has an <a href=\"https://its.1c.ru/db/metod8dev#content:2290:hdoc\" rel=\"noopener noreferrer\" target=\"_blank\">article</a> with a good explanation of the details.</p>\n<p>Broken references don’t always affect the application’s behavior. A field without a data binding is easy to notice, of course. But suppose you delete a functional option: what does it matter if a reference remains somewhere in a form command? It simply sits there like a cut wire, inert and harmless. Nothing passes through it.</p>\n<p>Still, these things gradually clutter the configuration and should be removed. The ITS advice isn’t all that helpful: go through every place a broken reference might be hiding. Imagine a complicated document form with lots of controls. How long would that search take? And success isn’t guaranteed.</p>\n<p>There’s a rougher way that works: delete groups of controls from the form, one after another. Start with large groups, such as pages. After each removal, check the configuration and see whether the broken reference has disappeared. Before starting, it’s best to delete all form code so the platform doesn’t complain about references to nonexistent controls.</p>\n<p>The problem might also be in the form itself rather than its controls, but that’s much easier to locate: settings storage, conditional appearance, commands. There aren’t many candidates.</p>\n<p>You can also export the configuration to files and dig through the XML. That’s also worth doing because what you see in Designer can be misleading. If a form command references a missing functional option, for example, you might see nothing wrong in the command’s properties. But the XML will contain a suspicious GUID instead of an option name: practically a signed confession :-)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "unresolved references 10 marth 2020 · 1с unresolved references to metadata objects usually appear when objects are deleted, and sometimes when configurations are merged. its has an article with a good explanation of the details. broken references don’t always affect the application’s behavior. a field without a data binding is easy to notice, of course. but suppose you delete a functional option: what does it matter if a reference remains somewhere in a form command? it simply sits there like a cut wire, inert and harmless. nothing passes through it. still, these things gradually clutter the configuration and should be removed. the its advice isn’t all that helpful: go through every place a broken reference might be hiding. imagine a complicated document form with lots of controls. how long would that search take? and success isn’t guaranteed. there’s a rougher way that works: delete groups of controls from the form, one after another. start with large groups, such as pages. after each removal, check the configuration and see whether the broken reference has disappeared. before starting, it’s best to delete all form code so the platform doesn’t complain about references to nonexistent controls. the problem might also be in the form itself rather than its controls, but that’s much easier to locate: settings storage, conditional appearance, commands. there aren’t many candidates. you can also export the configuration to files and dig through the xml. that’s also worth doing because what you see in designer can be misleading. if a form command references a missing functional option, for example, you might see nothing wrong in the command’s properties. but the xml will contain a suspicious guid instead of an option name: practically a signed confession :-)",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/standard-attributes-filtering\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Filtering Standard Attributes\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>9 Marth 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>A short <a href=\"https://gist.github.com/vkostyanetsky/ee1f913868673c2218877dfbecc9b08a\" rel=\"noopener noreferrer\" target=\"_blank\">code fragment</a> from the data history settings processor I just <a href=\"https://kostyanetsky.me/notes/data-history-settings\" rel=\"noopener noreferrer\" target=\"_blank\">wrote about</a>. It checks whether Attribute is MetadataObject’s standard attribute named StandardAttributeName. When is that useful? Suppose you’re iterating over an object’s standard attributes and want to skip one for some reason.</p>\n<p>At first glance, the solution looks absurdly convoluted. Why not simply compare the attribute being checked with the one we want to exclude?</p>\n<pre><code>If Attribute = MetadataObject.StandardAttributes.Order Then\n</code></pre>\n<p>Because that code doesn’t work: comparing two standard attributes of a metadata object in the 1C platform always returns False.</p>\n<p>All right, you might say, why complicate things? How about this?</p>\n<pre><code>If Attribute.Name = \"Order\" Then\n</code></pre>\n<p>That won’t work either if your code runs in a Russian configuration: the standard attribute we’re looking for is then named “Порядок.”</p>\n<p>But you can look up the standard attribute in the collection by either its Russian or English name. Then you get its actual name and compare that with the name of the attribute you’re checking.</p>\n<p>Of course, we could simply compare the name with both “Order” and “Порядок.” But first, that’s ugly; second, our coding standards don’t allow Russian in the code. I wanted a more general solution.</p>\n<p>The Try/Catch is there in case the configuration has no standard attribute with that name at all. Trying to look it up would throw an error.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "filtering standard attributes 9 marth 2020 · 1с done a short code fragment from the data history settings processor i just wrote about . it checks whether attribute is metadataobject’s standard attribute named standardattributename. when is that useful? suppose you’re iterating over an object’s standard attributes and want to skip one for some reason. at first glance, the solution looks absurdly convoluted. why not simply compare the attribute being checked with the one we want to exclude? if attribute = metadataobject.standardattributes.order then because that code doesn’t work: comparing two standard attributes of a metadata object in the 1c platform always returns false. all right, you might say, why complicate things? how about this? if attribute.name = \"order\" then that won’t work either if your code runs in a russian configuration: the standard attribute we’re looking for is then named “порядок.” but you can look up the standard attribute in the collection by either its russian or english name. then you get its actual name and compare that with the name of the attribute you’re checking. of course, we could simply compare the name with both “order” and “порядок.” but first, that’s ugly; second, our coding standards don’t allow russian in the code. i wanted a more general solution. the try/catch is there in case the configuration has no standard attribute with that name at all. trying to look it up would throw an error.",
    "tags": [
      "1c",
      "done"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/data-history-settings\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Data History Settings\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>9 Marth 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I’ve put a <a href=\"https://github.com/vkostyanetsky/AuditLogSettings\" rel=\"noopener noreferrer\" target=\"_blank\">data processor</a> on GitHub for setting up the data history feature that <a href=\"https://its.1c.ru/db/v8312doc#bookmark:dev:TI000001938\" rel=\"noopener noreferrer\" target=\"_blank\">arrived</a> in the platform not long ago. Here’s what it does:</p>\n<ol>\n<li>Builds a tree of objects that support data history;</li>\n<li>Shows which objects currently have data history enabled;</li>\n<li>Lets you enable or disable data history for objects and their attributes.</li>\n</ol>\n<p>It supports batch operations: for example, you can enable history for several documents and all catalogs at once. Or wipe all your changes and go back to the defaults the configuration developer set.</p>\n<p>I think it turned out well. I mostly wrote it for myself, to give my brain a workout in the evenings, but we might even include it in <a href=\"https://firstbit.ae\" rel=\"noopener noreferrer\" target=\"_blank\">our configuration</a>! Right now, SSLi handles our data versioning, and it’s not exactly efficient: it’s slow and makes the database balloon. Hopefully, the platform will do better when we test it.</p>\n<p>You can find similar tools on Infostart and ITS, but they’re either buggy, work only with Russian configurations (no English interface and dependencies on the Russian Standard Subsystems Library), or are just out of date, with no support for constants, for example.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "data history settings 9 marth 2020 · 1с done work i’ve put a data processor on github for setting up the data history feature that arrived in the platform not long ago. here’s what it does: builds a tree of objects that support data history; shows which objects currently have data history enabled; lets you enable or disable data history for objects and their attributes. it supports batch operations: for example, you can enable history for several documents and all catalogs at once. or wipe all your changes and go back to the defaults the configuration developer set. i think it turned out well. i mostly wrote it for myself, to give my brain a workout in the evenings, but we might even include it in our configuration ! right now, ssli handles our data versioning, and it’s not exactly efficient: it’s slow and makes the database balloon. hopefully, the platform will do better when we test it. you can find similar tools on infostart and its, but they’re either buggy, work only with russian configurations (no english interface and dependencies on the russian standard subsystems library), or are just out of date, with no support for constants, for example.",
    "tags": [
      "1c",
      "done",
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/ninth-wave\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                The Ninth Wave\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>9 Marth 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"meanwhile\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Meanwhile</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Yesterday morning, I was buying gifts for my women. While a florist was makings bouquets for me, we had a small talk and I suddenly caught her eye. She was looking at the growing crowd of customers with calmness and a clearly readable shadow of doom. This is probably how sailors looking at a surging wave which is about to bury their boat :-)</p>\n<p>People outside the flower industry grin sometimes — they say, eight of March is such a magical holiday for all the florists who make a fortune in ten hours. Well, income is really good these days, but literally anybody who has ever worked in this sphere more often associates the holiday (and a couple of days before it, by the way) with a monstrous strain on health and nerves.</p>\n<p>I can say that I got off cheaply: was just deploying and servicing some IT of a local net of flower shops, nothing more (by the way, I want to proudly <a href=\"http://rosetta.florist/\" rel=\"noopener noreferrer\" target=\"_blank\">recommend</a> my former colleagues!). Nonetheless, the smell of flowers caused me Vietnam syndrome for a long time :-)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "the ninth wave 9 marth 2020 · meanwhile yesterday morning, i was buying gifts for my women. while a florist was makings bouquets for me, we had a small talk and i suddenly caught her eye. she was looking at the growing crowd of customers with calmness and a clearly readable shadow of doom. this is probably how sailors looking at a surging wave which is about to bury their boat :-) people outside the flower industry grin sometimes — they say, eight of march is such a magical holiday for all the florists who make a fortune in ten hours. well, income is really good these days, but literally anybody who has ever worked in this sphere more often associates the holiday (and a couple of days before it, by the way) with a monstrous strain on health and nerves. i can say that i got off cheaply: was just deploying and servicing some it of a local net of flower shops, nothing more (by the way, i want to proudly recommend my former colleagues!). nonetheless, the smell of flowers caused me vietnam syndrome for a long time :-)",
    "tags": [
      "meanwhile"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/top-exceptions\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Top Exceptions in the Technological Log\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>16 February 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"bash\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Bash</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I’ve published a Bash <a href=\"https://github.com/vkostyanetsky/ScriptsFor1C/blob/master/Технологический%20журнал/FrequentExceptions.sh\" rel=\"noopener noreferrer\" target=\"_blank\">script</a> on GitHub that identifies the most frequent exceptions in a collected 1C technological log.</p>\n<p>It analyzes EXCP events. These are the main source of error information, though certainly not the only one: EXCPCNTX, for example, describes an event that had started but hadn’t finished when an error occurred. Also, if an exception occurs during a server call, the CALL event’s RetExcp field contains the error text returned to the client.</p>\n<p>Most of the time, though, EXCP and the occasional EXCPCNTX will do. People often collect them by default: it doesn’t put any real load on the system and lets you run the logs through an analysis tool, such as the script above, to keep a finger on the pulse.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "top exceptions in the technological log 16 february 2020 · 1с bash done i’ve published a bash script on github that identifies the most frequent exceptions in a collected 1c technological log. it analyzes excp events. these are the main source of error information, though certainly not the only one: excpcntx, for example, describes an event that had started but hadn’t finished when an error occurred. also, if an exception occurs during a server call, the call event’s retexcp field contains the error text returned to the client. most of the time, though, excp and the occasional excpcntx will do. people often collect them by default: it doesn’t put any real load on the system and lets you run the logs through an analysis tool, such as the script above, to keep a finger on the pulse.",
    "tags": [
      "1c",
      "bash",
      "done"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/debug-via-http\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Debugging over HTTP\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>26 January 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>At the end of the week, I ran into a rather silly situation: TCP/IP debugging on a 1C server stopped working. Debug mode itself was enabled, but Designer couldn’t “see” the server’s debug contexts.</p>\n<p>The silly part is how hard it is to find the cause: the platform gives you no clear error to work with. After checking the obvious possibilities, such as the firewall and ports, all you can do is shrug.</p>\n<p>I solved it by switching to HTTP debugging. The overall <a href=\"https://its.1c.ru/db/v8310doc#bookmark:dev:TI000001599\" rel=\"noopener noreferrer\" target=\"_blank\">setup</a> is more complicated, but configuring it is quite simple. Briefly, you need to:</p>\n<ul>\n<li>Start the server agent service with the “-debug -http” flags.</li>\n<li>In Designer’s debugging settings (Tools → Options → Debug), select HTTP as the debugging protocol and the cluster debug server as the debug server.</li>\n</ul>\n<p>There’s a more detailed <a href=\"https://its.1c.ru/db/v8310doc#bookmark:dev:TI000001604\" rel=\"noopener noreferrer\" target=\"_blank\">walkthrough</a> on ITS.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "debugging over http 26 january 2020 · 1с at the end of the week, i ran into a rather silly situation: tcp/ip debugging on a 1c server stopped working. debug mode itself was enabled, but designer couldn’t “see” the server’s debug contexts. the silly part is how hard it is to find the cause: the platform gives you no clear error to work with. after checking the obvious possibilities, such as the firewall and ports, all you can do is shrug. i solved it by switching to http debugging. the overall setup is more complicated, but configuring it is quite simple. briefly, you need to: start the server agent service with the “-debug -http” flags. in designer’s debugging settings (tools → options → debug), select http as the debugging protocol and the cluster debug server as the debug server. there’s a more detailed walkthrough on its.",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/unsupported-code\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Unmaintainable Code\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>18 January 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I happened across an <a href=\"https://helpf.pro/faq/view/1907.html\" rel=\"noopener noreferrer\" target=\"_blank\">example</a> of a 1C query that calculates the difference between two dates in years, months, and days.</p>\n<p>The code may work, I haven’t checked, but to me it’s a good example of what not to do. The problem is that its author will forget what most of those if-then-else branches mean within a couple of months, never mind other developers who decide to use it in their projects. The first time someone needs to change it, they’ll be better off throwing it out and writing something clearer.</p>\n<p>And this is far from the most striking example. Just look at <a href=\"http://www.google.ru/search?q=email+regex\" rel=\"noopener noreferrer\" target=\"_blank\">regular expressions for validating email addresses</a>. Makes you want to step outside for some air, doesn’t it? :-)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "unmaintainable code 18 january 2020 · 1с i happened across an example of a 1c query that calculates the difference between two dates in years, months, and days. the code may work, i haven’t checked, but to me it’s a good example of what not to do. the problem is that its author will forget what most of those if-then-else branches mean within a couple of months, never mind other developers who decide to use it in their projects. the first time someone needs to change it, they’ll be better off throwing it out and writing something clearer. and this is far from the most striking example. just look at regular expressions for validating email addresses . makes you want to step outside for some air, doesn’t it? :-)",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/1001-nights-with-1c\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                One Thousand and One Nights with 1C\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>16 January 2020</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/WvdfWMoI1oI\" width=\"560\"></iframe>\n<p>The architect of our main product (who also happens to be my team lead) talks about how we implemented 1C in Dubai. He doesn’t get bogged down in technical details, so you only need a rough idea of the subject to follow along.</p>\n<p>The video was recorded at a developer conference in Krasnodar last June, so a few things have changed since then. For example, we now have working prototypes of the application in Arabic, and our automated testing has grown so much that Miss <a href=\"https://github.com/Pr-Mex/vanessa-automation-single\" rel=\"noopener noreferrer\" target=\"_blank\">Vanessa</a> pretty much deserves her own spot on the team :-)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "one thousand and one nights with 1c 16 january 2020 · 1с work the architect of our main product (who also happens to be my team lead) talks about how we implemented 1c in dubai. he doesn’t get bogged down in technical details, so you only need a rough idea of the subject to follow along. the video was recorded at a developer conference in krasnodar last june, so a few things have changed since then. for example, we now have working prototypes of the application in arabic, and our automated testing has grown so much that miss vanessa pretty much deserves her own spot on the team :-)",
    "tags": [
      "1c",
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/fifty-times-faster\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Fifty Times Faster\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>5 December 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"optimization\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Optimization</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Here’s the brief: a client’s month-end closing document takes just under an hour to post. The database isn’t especially big, but an hour is still way too long. Sure, you don’t close the month very often, and you could do it at night. Still.</p>\n<p>I dig into the code, profile it, and see that the platform spends almost all that time in a single procedure, executing a query batch. I look at the <a href=\"https://gist.github.com/vkostyanetsky/cf34c6cb088515e2bab6485b2f35eab8\" rel=\"noopener noreferrer\" target=\"_blank\">first query</a> and think: classic, accessing data through a dot on a composite type. The DBMS must be attaching a wagonload of joins to huge document tables, and the optimizer can’t come up with a decent plan in time.</p>\n<p>I test the theory. But SalesDocument includes only eight document types. That should be manageable: the usual rule of thumb is that the optimizer can find a decent plan with up to eight joins.</p>\n<p>I check the document tables: they aren’t particularly big. I run the query separately from the batch. It isn’t instantaneous, reading around 350,000 records and selecting about 200,000, but it certainly doesn’t take an hour.</p>\n<p>All right, the batch’s first query is heavy, but it’s not the problem. I look at the <a href=\"https://gist.github.com/vkostyanetsky/f4423dcfb28d4a27039c7310c13c3a73\" rel=\"noopener noreferrer\" target=\"_blank\">second</a> and realize that we’ve just read the entire Inventory register and selected most of its records, and now we’re reading it again and joining both result sets on a pile of conditions. The register’s record table has no suitable index: only the standard recorder index, which naturally doesn’t help.</p>\n<p>I check: this is exactly where the platform spends most of its time waiting for the DBMS.</p>\n<p>I couldn’t find a way around reading the whole register table twice. Every alternative I tried meant changing how the data was stored, and that wasn’t an option. So I went with a compromise: in the second query, I replaced the join to the actual register record table with a join to a temporary table created in advance and indexed on the join fields.</p>\n<p>This was a case where 1C’s general recommendation worked perfectly: posting time fell from 50 minutes to three, and after further code optimization, to one minute. Fifty times faster than where I started.</p>\n<p>A minute for month-end closing is usually fine, so I called it a day.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "fifty times faster 5 december 2019 · 1с done optimization work here’s the brief: a client’s month-end closing document takes just under an hour to post. the database isn’t especially big, but an hour is still way too long. sure, you don’t close the month very often, and you could do it at night. still. i dig into the code, profile it, and see that the platform spends almost all that time in a single procedure, executing a query batch. i look at the first query and think: classic, accessing data through a dot on a composite type. the dbms must be attaching a wagonload of joins to huge document tables, and the optimizer can’t come up with a decent plan in time. i test the theory. but salesdocument includes only eight document types. that should be manageable: the usual rule of thumb is that the optimizer can find a decent plan with up to eight joins. i check the document tables: they aren’t particularly big. i run the query separately from the batch. it isn’t instantaneous, reading around 350,000 records and selecting about 200,000, but it certainly doesn’t take an hour. all right, the batch’s first query is heavy, but it’s not the problem. i look at the second and realize that we’ve just read the entire inventory register and selected most of its records, and now we’re reading it again and joining both result sets on a pile of conditions. the register’s record table has no suitable index: only the standard recorder index, which naturally doesn’t help. i check: this is exactly where the platform spends most of its time waiting for the dbms. i couldn’t find a way around reading the whole register table twice. every alternative i tried meant changing how the data was stored, and that wasn’t an option. so i went with a compromise: in the second query, i replaced the join to the actual register record table with a join to a temporary table created in advance and indexed on the join fields. this was a case where 1c’s general recommendation worked perfectly: posting time fell from 50 minutes to three, and after further code optimization, to one minute. fifty times faster than where i started. a minute for month-end closing is usually fine, so i called it a day.",
    "tags": [
      "1c",
      "done",
      "optimization",
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/what-is-pmc-for\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                What Is the Performance Management Center For?\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>24 November 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>You use the Performance Management Center to:</p>\n<ol>\n<li>Find a system bottleneck, such as slow code or a heavy query;</li>\n<li>Investigate specific locks or deadlocks.</li>\n</ol>\n<p>For the first one, turn on query analysis and, say, server call analysis. The results show which parts of the system load the application server and which load the DBMS server. This is often done without a specific problem, simply to remove bottlenecks and give the system more headroom for the future.</p>\n<p>For the second, turn on lock or deadlock analysis when you know they occur and want a report: who blocked whom, when, on which line of code, and so forth.</p>\n<p>In both cases, monitoring runs only during peak load, for ten to fifteen minutes. That keeps the pile of raw data manageable. PMC has to chew through it before it can show you anything, and the more you collect, the longer that takes. You also avoid picking up unrelated stuff, like load from overnight maintenance jobs.</p>\n<p>It also keeps the collection itself from slowing things down too much. PMC can collect a monster of a technological log, and your hardware will feel it. Thirty percent slower? Hold my beer. Be careful with that.</p>\n<p>PMC’s analytical indicators are sufficient for all of the above: query analysis, lock waits, and 1C and MS SQL deadlock analysis. Operational indicators, such as the number of queries running and their total execution time, are less popular. They usually aren’t worth the time it takes to set them up, and PMC was never really designed to collect them continuously.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "what is the performance management center for? 24 november 2019 · 1с you use the performance management center to: find a system bottleneck, such as slow code or a heavy query; investigate specific locks or deadlocks. for the first one, turn on query analysis and, say, server call analysis. the results show which parts of the system load the application server and which load the dbms server. this is often done without a specific problem, simply to remove bottlenecks and give the system more headroom for the future. for the second, turn on lock or deadlock analysis when you know they occur and want a report: who blocked whom, when, on which line of code, and so forth. in both cases, monitoring runs only during peak load, for ten to fifteen minutes. that keeps the pile of raw data manageable. pmc has to chew through it before it can show you anything, and the more you collect, the longer that takes. you also avoid picking up unrelated stuff, like load from overnight maintenance jobs. it also keeps the collection itself from slowing things down too much. pmc can collect a monster of a technological log, and your hardware will feel it. thirty percent slower? hold my beer. be careful with that. pmc’s analytical indicators are sufficient for all of the above: query analysis, lock waits, and 1c and ms sql deadlock analysis. operational indicators, such as the number of queries running and their total execution time, are less popular. they usually aren’t worth the time it takes to set them up, and pmc was never really designed to collect them continuously.",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/find-methods-with-parameter\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Finding Methods with a Parameter\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>18 November 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"bash\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Bash</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>The task: find methods in a configuration’s common modules that have a specific parameter, DecimalPlacesFor in this example.</p>\n<p>A normal search through the configuration code produces many false positives, such as every reference to a parameter with that name inside method bodies. The platform doesn’t support regular expression searches yet, so the easy way is to export the configuration to files and run a Bash <a href=\"https://github.com/vkostyanetsky/ScriptsForLogAnalysis/blob/master/Файлы%20конфигурации/MethodsWithParameter.sh\" rel=\"noopener noreferrer\" target=\"_blank\">script</a> on the common modules directory.</p>\n<p>The bit before the pipe does the searching. The rest trims the output down to module names and the methods found in them. For example:</p>\n<p><img alt=\"Console screenshot\" src=\"https://kostyanetsky.me/notes/find-methods-with-parameter/bash.png\"/></p>\n<p>Profit? Profit!</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "finding methods with a parameter 18 november 2019 · 1с bash done the task: find methods in a configuration’s common modules that have a specific parameter, decimalplacesfor in this example. a normal search through the configuration code produces many false positives, such as every reference to a parameter with that name inside method bodies. the platform doesn’t support regular expression searches yet, so the easy way is to export the configuration to files and run a bash script on the common modules directory. the bit before the pipe does the searching. the rest trims the output down to module names and the methods found in them. for example: profit? profit!",
    "tags": [
      "1c",
      "bash",
      "done"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/bablox\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                What Is Bablox?\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>20 October 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I watched Evgeny Filippov’s <a href=\"https://www.youtube.com/watch?v=p6D7SdhO4LI\" rel=\"noopener noreferrer\" target=\"_blank\">webinar</a> about Bablox. Basically, it’s another way to measure performance. Like Apdex, it relies on timing operations, but uses a different calculation.</p>\n<p>To calculate Bablox, multiply an operation’s duration by the salary rate of the user performing it. The salary can be:</p>\n<ul>\n<li>An average value, if you want a rough performance comparison of the same application across several companies.</li>\n<li>The user’s actual salary, if you need to convince management to spend some money on making things faster.</li>\n</ul>\n<p>You end up with a figure for how much money the business has lost to a slow application. That’s the big selling point: it’s a number the average CFO can get their head around. Explaining what an Apdex of 0.5 means takes some effort; explaining a loss of 300,000 rubles doesn’t.</p>\n<p>It also takes the guesswork out of questions that come up in every implementation. Take deciding which operations matter most: which matters more, selling goods faster or receiving them into the warehouse? Once you know how much money the company loses on each operation, the answer is much easier.</p>\n<p>Of course, it’s not a perfect model. Suppose the application is slow for warehouse workers but runs fine for accountants. Warehouse workers earn less, so their Bablox will be low. But accountants depend on what the warehouse workers enter. Until that’s done, they have nothing to work with. The company is losing money because the application is slow for warehouse workers, but Bablox won’t show it.</p>\n<p>I doubt Bablox will knock Apdex off its perch in the IT world, but it’s an interesting idea, and it could make talking to clients a whole lot easier.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "what is bablox? 20 october 2019 · 1с i watched evgeny filippov’s webinar about bablox. basically, it’s another way to measure performance. like apdex, it relies on timing operations, but uses a different calculation. to calculate bablox, multiply an operation’s duration by the salary rate of the user performing it. the salary can be: an average value, if you want a rough performance comparison of the same application across several companies. the user’s actual salary, if you need to convince management to spend some money on making things faster. you end up with a figure for how much money the business has lost to a slow application. that’s the big selling point: it’s a number the average cfo can get their head around. explaining what an apdex of 0.5 means takes some effort; explaining a loss of 300,000 rubles doesn’t. it also takes the guesswork out of questions that come up in every implementation. take deciding which operations matter most: which matters more, selling goods faster or receiving them into the warehouse? once you know how much money the company loses on each operation, the answer is much easier. of course, it’s not a perfect model. suppose the application is slow for warehouse workers but runs fine for accountants. warehouse workers earn less, so their bablox will be low. but accountants depend on what the warehouse workers enter. until that’s done, they have nothing to work with. the company is losing money because the application is slow for warehouse workers, but bablox won’t show it. i doubt bablox will knock apdex off its perch in the it world, but it’s an interesting idea, and it could make talking to clients a whole lot easier.",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/big-implementation\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                A Large 1C Implementation\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>15 October 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>What counts as a large 1C implementation? In Russia, the platform is used almost everywhere, even in companies that use a lot of competing software, like SAP. Of course, some implementations are small, with 1C handling purely practical tasks like generating reports. But the Corporate Technology Support Center’s work includes truly enormous projects, such as optimizing the <a href=\"http://v8.1c.ru/expert/cts/cts-218-001.htm\" rel=\"noopener noreferrer\" target=\"_blank\">Delovye Linii</a> system for five thousand concurrent users.</p>\n<p>So in Russia these days, hundreds of people working in the same infobase at once is a medium-sized implementation. A thousand or more is a large one.</p>\n<p>The size of the database doesn’t tell you much on its own: many configurations don’t involve large numbers of concurrent users. A classic example is 1C:Document Management; a less classic one is Avibus’s Bus Terminal Management. Bus Terminal Management can collect huge amounts of data in its central database from remote nodes in its distributed network of bus terminals and stations, without having many users working simultaneously.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "a large 1c implementation 15 october 2019 · 1с what counts as a large 1c implementation? in russia, the platform is used almost everywhere, even in companies that use a lot of competing software, like sap. of course, some implementations are small, with 1c handling purely practical tasks like generating reports. but the corporate technology support center’s work includes truly enormous projects, such as optimizing the delovye linii system for five thousand concurrent users. so in russia these days, hundreds of people working in the same infobase at once is a medium-sized implementation. a thousand or more is a large one. the size of the database doesn’t tell you much on its own: many configurations don’t involve large numbers of concurrent users. a classic example is 1c:document management; a less classic one is avibus’s bus terminal management. bus terminal management can collect huge amounts of data in its central database from remote nodes in its distributed network of bus terminals and stations, without having many users working simultaneously.",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/no-turnovers\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                A Turnover Register without Turnovers\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>15 October 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>If you disable “Use in totals” for every dimension of a turnover register, its turnovers will no longer be calculated. In fact, the turnover table disappears from the database altogether. Try to query it in 1C, and you’ll get an error.</p>\n<p>That can come in handy when all we do is collect data, then filter it by recorder or other fields. We only need the register’s record table. There’s no point spending server resources calculating and storing a turnover table.</p>\n<p>An information register naturally comes to mind for this task. But its efficiency depends on how many dimensions you plan to create: every index on an information register includes all its dimensions, plus the period for periodic registers. The platform creates a base dimension index, an index for each dimension marked “Master,” and an index for each dimension, resource, or attribute you choose to index separately. And we haven’t even reached the slice tables, which use the same approach!</p>\n<p>So if your information register isn’t thought through all that well and has quite a few dimensions, say more than two or three, keeping all those indexes up to date can get expensive. A “flat” turnover register without turnovers starts to look pretty good.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "a turnover register without turnovers 15 october 2019 · 1с if you disable “use in totals” for every dimension of a turnover register, its turnovers will no longer be calculated. in fact, the turnover table disappears from the database altogether. try to query it in 1c, and you’ll get an error. that can come in handy when all we do is collect data, then filter it by recorder or other fields. we only need the register’s record table. there’s no point spending server resources calculating and storing a turnover table. an information register naturally comes to mind for this task. but its efficiency depends on how many dimensions you plan to create: every index on an information register includes all its dimensions, plus the period for periodic registers. the platform creates a base dimension index, an index for each dimension marked “master,” and an index for each dimension, resource, or attribute you choose to index separately. and we haven’t even reached the slice tables, which use the same approach! so if your information register isn’t thought through all that well and has quite a few dimensions, say more than two or three, keeping all those indexes up to date can get expensive. a “flat” turnover register without turnovers starts to look pretty good.",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/river-city-girls\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                River City Girls\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>30 September 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"family\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Family</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>The little one and I finished River City Girls together, a recently released beat ’em up. That’s the genre where you beat up everyone you don’t like.</p>\n<p>In the <a href=\"https://kostyanetsky.me/notes/river-city-girls/ru.jpg\" rel=\"noopener noreferrer\" target=\"_blank\">photo</a>, I’m watching ten-year-old Lisa confidently send a crowd of Japanese bruisers flying.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "river city girls 30 september 2019 · family videogames the little one and i finished river city girls together, a recently released beat ’em up. that’s the genre where you beat up everyone you don’t like. in the photo , i’m watching ten-year-old lisa confidently send a crowd of japanese bruisers flying.",
    "tags": [
      "family",
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/control\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Control\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>14 September 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/r6RUXzb3NxY\" width=\"560\"></iframe>\n<p>I have two complaints about this game. First, its Altered Items: their descriptions feel a bit tame next to the <a href=\"https://ru.wikipedia.org/wiki/SCP_Foundation\" rel=\"noopener noreferrer\" target=\"_blank\">SCP Foundation</a> writers’ wild ideas. There are some pleasant exceptions, but this part still feels weaker than the rest of the game’s paranormal material.</p>\n<p>My second gripe is where they chose to play <a href=\"https://www.youtube.com/watch?v=CkojH7htq-k\" rel=\"noopener noreferrer\" target=\"_blank\">My Dark Disquet</a> by Poets of the Fall. Damn it, that track is far too good for such an unremarkable section! I expected it during the credits or some crazy fight.</p>\n<p>I know both complaints sound a bit silly, but that really is all I’ve got. Control looks fantastic, plays brilliantly, and tells a great story. The only reason I won’t be giving anyone this game for New Year is that the Epic Games Store doesn’t support gifting yet :-)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "control 14 september 2019 · videogames i have two complaints about this game. first, its altered items: their descriptions feel a bit tame next to the scp foundation writers’ wild ideas. there are some pleasant exceptions, but this part still feels weaker than the rest of the game’s paranormal material. my second gripe is where they chose to play my dark disquet by poets of the fall. damn it, that track is far too good for such an unremarkable section! i expected it during the credits or some crazy fight. i know both complaints sound a bit silly, but that really is all i’ve got. control looks fantastic, plays brilliantly, and tells a great story. the only reason i won’t be giving anyone this game for new year is that the epic games store doesn’t support gifting yet :-)",
    "tags": [
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/control-and-poets-of-the-fall\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Control and Poets of the Fall\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>23 August 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I was already sold on the redheaded devil in the Control <a href=\"https://youtu.be/oFjb_vlCsRA\" rel=\"noopener noreferrer\" target=\"_blank\">trailer</a>, and now the folks at Remedy have played an unbeatable hand with this video.</p>\n<iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/EpiahpKp-VA\" width=\"560\"></iframe>\n<p>Listen to this: it’s almost indecently good! Can we somehow fast-forward to the end of August? :-)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "control and poets of the fall 23 august 2019 · videogames i was already sold on the redheaded devil in the control trailer , and now the folks at remedy have played an unbeatable hand with this video. listen to this: it’s almost indecently good! can we somehow fast-forward to the end of august? :-)",
    "tags": [
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/fermi-paradox\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                The Fermi Paradox\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>19 August 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"meanwhile\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Meanwhile</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p><a href=\"https://twitter.com/tramdrey/status/1162911267419492353\" rel=\"noopener noreferrer\" target=\"_blank\"><img alt=\"Tweet\" src=\"https://kostyanetsky.me/notes/fermi-paradox/snap-tweet-tramdrey-1162911267419492353.png\"/></a></p>\n<p>And if the game is good, this usually happens without you noticing. There you are, playing some niche Asian horror game, and then, click! A couple of hours later you come to your senses somewhere on Wikipedia, on the page about the Second Taiwan Strait Crisis.</p>\n<p>The article about the Fermi paradox really is good, by the way: an overview, perhaps, but a lively one written by someone who loves the subject.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "the fermi paradox 19 august 2019 · meanwhile videogames and if the game is good, this usually happens without you noticing. there you are, playing some niche asian horror game, and then, click! a couple of hours later you come to your senses somewhere on wikipedia, on the page about the second taiwan strait crisis. the article about the fermi paradox really is good, by the way: an overview, perhaps, but a lively one written by someone who loves the subject.",
    "tags": [
      "meanwhile",
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/duct-tape\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Here, Have Some Duct Tape\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>2 August 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"books\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Books</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>My well-read friends sometimes ask what my favorite book is. And, damn it, I always feel a bit embarrassed answering, because out of all the books in the world, it’s Andy Weir’s The Martian.</p>\n<p>Sure, it’s a great adventure novel, but there’s another reason. As a programmer, how could I not feel a bond with a guy who solved a pile of complicated engineering problems with duct tape?</p>\n<blockquote>\n<p>Yes, of course duct tape works in a near vacuum. Duct tape works almost anywhere and everywhere. Duct tape is a gift from the gods, and we should worship it.</p>\n<p><em>― Andy Weir, The Martian</em></p>\n</blockquote>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "here, have some duct tape 2 august 2019 · books work my well-read friends sometimes ask what my favorite book is. and, damn it, i always feel a bit embarrassed answering, because out of all the books in the world, it’s andy weir’s the martian. sure, it’s a great adventure novel, but there’s another reason. as a programmer, how could i not feel a bond with a guy who solved a pile of complicated engineering problems with duct tape? yes, of course duct tape works in a near vacuum. duct tape works almost anywhere and everywhere. duct tape is a gift from the gods, and we should worship it. ― andy weir, the martian",
    "tags": [
      "books",
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/observation\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Observation\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>28 Jule 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/58ibIuaHer8\" width=\"560\"></iframe>\n<p>It’s the near future, and you are the artificial intelligence of a space station struck by disaster. Your systems are malfunctioning, most data is lost, and the crew is God knows where. You need to work out what happened and put things right.</p>\n<p>That’s how No Code’s recent <a href=\"https://www.epicgames.com/store/ru/product/observation/home\" rel=\"noopener noreferrer\" target=\"_blank\">Observation</a> starts. The game is fantastic. If you’re into sci-fi, especially the classics, Arthur C. Clarke and that kind of thing, you’ll love it. Of the games I’ve played recently in this genre, only <a href=\"https://store.steampowered.com/app/282140/SOMA/\" rel=\"noopener noreferrer\" target=\"_blank\">SOMA</a> is better.</p>\n<p>Do yourself a favor: skip the reviews, because journalists can’t string two words together without spoilers. Skip the official trailer too. The game has a brilliant intro, and you should see it as part of the story, not on YouTube.</p>\n<p>The intro’s music was written by Robin Finck of Nine Inch Nails, by the way. The visuals don’t make sense when you first see them, but once you work out what you’re looking at, they really get to you.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "observation 28 jule 2019 · videogames it’s the near future, and you are the artificial intelligence of a space station struck by disaster. your systems are malfunctioning, most data is lost, and the crew is god knows where. you need to work out what happened and put things right. that’s how no code’s recent observation starts. the game is fantastic. if you’re into sci-fi, especially the classics, arthur c. clarke and that kind of thing, you’ll love it. of the games i’ve played recently in this genre, only soma is better. do yourself a favor: skip the reviews, because journalists can’t string two words together without spoilers. skip the official trailer too. the game has a brilliant intro, and you should see it as part of the story, not on youtube. the intro’s music was written by robin finck of nine inch nails, by the way. the visuals don’t make sense when you first see them, but once you work out what you’re looking at, they really get to you.",
    "tags": [
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/rapunzel\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                A Good Day\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>9 Jule 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"family\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Family</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p><a href=\"https://twitter.com/IZRART/status/1146234848362713088\" rel=\"noopener noreferrer\" target=\"_blank\"><img alt=\"Tweet\" src=\"https://kostyanetsky.me/notes/rapunzel/snap-tweet-IZRART-1146234848362713088.png\"/></a></p>\n<blockquote>\n<p>Dear diary! Today I got paid to draw Doomguy teaching Rapunzel from Disney’s Tangled how to fire a heavy assault rifle. Today was a good day!</p>\n<p><em>― izra</em></p>\n</blockquote>\n<p>I love artists. Special people :-)</p>\n<p>(Also pictured: me teaching my daughter how to rush with zealots in StarCraft 2.)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "a good day 9 jule 2019 · family videogames dear diary! today i got paid to draw doomguy teaching rapunzel from disney’s tangled how to fire a heavy assault rifle. today was a good day! ― izra i love artists. special people :-) (also pictured: me teaching my daughter how to rush with zealots in starcraft 2.)",
    "tags": [
      "family",
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/vue-i18n\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Multiple Languages in Vue.js\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>25 June 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"blog\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Blog</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I write this website in Russian, but it also has an English <a href=\"https://kostyanetsky.me\" rel=\"noopener noreferrer\" target=\"_blank\">mirror</a> where I gradually translate my posts. I don’t want to maintain two sets of scripts, so both domains point to the same server, which checks which domain received the request and replies in the right language.</p>\n<p>Sounds simple, but it creates a bunch of other headaches. Getting the interface into the right language is one of them. At first, <s>out of habit</s>, I created two client-side arrays of phrases in different languages. I soon ditched that homegrown solution and plugged in <a href=\"https://www.npmjs.com/package/vue-i18n\" rel=\"noopener noreferrer\" target=\"_blank\">Vue I18n</a>.</p>\n<p>Underneath, it’s still just <a href=\"https://kazupon.github.io/vue-i18n/guide/formatting.html#named-formatting\" rel=\"noopener noreferrer\" target=\"_blank\">two arrays</a> of phrases that you pass in at startup. But that’s not the useful part. The plugin handles two other bits of the interface for you:</p>\n<ol>\n<li><a href=\"https://kazupon.github.io/vue-i18n/guide/pluralization.html\" rel=\"noopener noreferrer\" target=\"_blank\">Pluralization</a>. Needed to display “page” correctly in <a href=\"https://kostyanetsky.me/notes\" rel=\"noopener noreferrer\" target=\"_blank\">tag statistics</a>: in Russian, one post, two posts, and five posts require different noun forms.</li>\n<li><a href=\"https://kazupon.github.io/vue-i18n/guide/datetime.html\" rel=\"noopener noreferrer\" target=\"_blank\">Date formatting</a>, such as the date below this note.</li>\n</ol>\n<p>Sure, I could have done both on the server in PHP, but that felt messy. The server should return data; the client should build the interface. No need to mix them.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "multiple languages in vue.js 25 june 2019 · blog done i write this website in russian, but it also has an english mirror where i gradually translate my posts. i don’t want to maintain two sets of scripts, so both domains point to the same server, which checks which domain received the request and replies in the right language. sounds simple, but it creates a bunch of other headaches. getting the interface into the right language is one of them. at first, out of habit , i created two client-side arrays of phrases in different languages. i soon ditched that homegrown solution and plugged in vue i18n . underneath, it’s still just two arrays of phrases that you pass in at startup. but that’s not the useful part. the plugin handles two other bits of the interface for you: pluralization . needed to display “page” correctly in tag statistics : in russian, one post, two posts, and five posts require different noun forms. date formatting , such as the date below this note. sure, i could have done both on the server in php, but that felt messy. the server should return data; the client should build the interface. no need to mix them.",
    "tags": [
      "blog",
      "done"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/draugen\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Draugen\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>10 June 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/ziNZqEw0Adg\" width=\"560\"></iframe>\n<p>A fairly short story, but it makes an impression. You can’t lose, and there isn’t much choice beyond dialogue options. But the sound, the visuals, and the beautifully written characters are surprising and touching, even when you guess the plot twists before they happen.</p>\n<p>Overall, the game reminded me of something between Firewatch and The Vanishing of Ethan Carter. I’d have liked a slightly longer story and a lot more drama, but I still loved how it ended. My feelings about the ending can be summed up by, <strong>spoiler warning</strong>, <a href=\"https://kostyanetsky.me/notes/draugen/the-main-thing-is.jpg\" rel=\"noopener noreferrer\" target=\"_blank\">this picture</a> :-)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "draugen 10 june 2019 · videogames a fairly short story, but it makes an impression. you can’t lose, and there isn’t much choice beyond dialogue options. but the sound, the visuals, and the beautifully written characters are surprising and touching, even when you guess the plot twists before they happen. overall, the game reminded me of something between firewatch and the vanishing of ethan carter. i’d have liked a slightly longer story and a lot more drama, but i still loved how it ended. my feelings about the ending can be summed up by, spoiler warning , this picture :-)",
    "tags": [
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/burned-people\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                And Smell Better\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>10 June 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"bitrix\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Bitrix</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>We recently released another version of FirstBIT ERP, our business automation product for the UAE. A ton of work went into it, everything works as intended, there’s plenty to be proud of, and so on. I put a lot of effort into building a full data exchange with Bitrix24, for example, and I’m very happy I managed to finish it.</p>\n<p>But deep down I’m still a little envious of our game development <a href=\"https://steamcommunity.com/games/505230/announcements/detail/1597002662743679418\" rel=\"noopener noreferrer\" target=\"_blank\">colleagues</a>: our patch notes are interesting too, of course, but you won’t find anything like <a href=\"https://kostyanetsky.me/notes/burned-people/better.png\" rel=\"noopener noreferrer\" target=\"_blank\">this</a> in them.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "and smell better 10 june 2019 · videogames work bitrix we recently released another version of firstbit erp, our business automation product for the uae. a ton of work went into it, everything works as intended, there’s plenty to be proud of, and so on. i put a lot of effort into building a full data exchange with bitrix24, for example, and i’m very happy i managed to finish it. but deep down i’m still a little envious of our game development colleagues : our patch notes are interesting too, of course, but you won’t find anything like this in them.",
    "tags": [
      "videogames",
      "work",
      "bitrix"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/so-much\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                How Much?!\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>5 June 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"blog\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Blog</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"javascript\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Javascript</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>This website is written almost entirely in PHP. There’s a bit of JavaScript on the client when I need it: a redirect here, an image there, that sort of thing.</p>\n<p>A personal website doesn’t need anything more complicated, but some time ago I felt like refreshing my web development skills. I chose Vue.js for the experiment: a popular, fast, and fairly straightforward framework.</p>\n<p>Here’s why I’m writing all this. I installed Node.js and Vue CLI, created my first project, and nearly went gray. Three hundred megabytes of JavaScript right out of the gate?! Seriously?!</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "how much?! 5 june 2019 · blog javascript this website is written almost entirely in php. there’s a bit of javascript on the client when i need it: a redirect here, an image there, that sort of thing. a personal website doesn’t need anything more complicated, but some time ago i felt like refreshing my web development skills. i chose vue.js for the experiment: a popular, fast, and fairly straightforward framework. here’s why i’m writing all this. i installed node.js and vue cli, created my first project, and nearly went gray. three hundred megabytes of javascript right out of the gate?! seriously?!",
    "tags": [
      "blog",
      "javascript"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/yomawari-night-alone\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Yomawari: Night Alone\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>30 May 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/Li5YQxI_WQg\" width=\"560\"></iframe>\n<p>A lovely isometric exploration game about a town filled with classic Japanese ghosts and a girl looking for her missing sister. It’s not all that scary; mostly it keeps you on edge. Not all that hard either, though you do have to pay attention: there are lots of ghosts, they all behave differently, and you can’t afford to wander around daydreaming. It’s not all that fast, though you’ll need quick reflexes here and there, especially near the end.</p>\n<p>I came away feeling really good about it. Maybe they didn’t have millions to spend, but you can tell they tried to make the best game they could.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "yomawari: night alone 30 may 2019 · videogames a lovely isometric exploration game about a town filled with classic japanese ghosts and a girl looking for her missing sister. it’s not all that scary; mostly it keeps you on edge. not all that hard either, though you do have to pay attention: there are lots of ghosts, they all behave differently, and you can’t afford to wander around daydreaming. it’s not all that fast, though you’ll need quick reflexes here and there, especially near the end. i came away feeling really good about it. maybe they didn’t have millions to spend, but you can tell they tried to make the best game they could.",
    "tags": [
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/big-table-at-client\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                A Large Table on the Client\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>19 May 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I’ve already written a couple of times about the quirks of working with huge tables on the client (<a href=\"https://kostyanetsky.me/notes/find-rows-at-client\" rel=\"noopener noreferrer\" target=\"_blank\">one</a>, <a href=\"https://kostyanetsky.me/notes/big-value-tables\" rel=\"noopener noreferrer\" target=\"_blank\">two</a>), but late last week my colleagues suggested another interesting way to optimize relatively large data collections on the client. The short version: the <a href=\"https://its.1c.ru/db/v8std#content:628:hdoc\" rel=\"noopener noreferrer\" target=\"_blank\">standard</a> recommends working with large collections only on the server. However, if you iterate through the entire collection on the client at the start, for example in the form’s opening handler, it gets cached. After that, you can loop through it, search for rows, and do other work without extra server calls. Overall, you spend less time shuffling data around.</p>\n<p>I’ve just run some simple tests, and yes, it seems to work. The method feels a bit like a workaround, and I haven’t tested it under serious load yet, but it’s probably worth keeping in mind.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "a large table on the client 19 may 2019 · 1с i’ve already written a couple of times about the quirks of working with huge tables on the client ( one , two ), but late last week my colleagues suggested another interesting way to optimize relatively large data collections on the client. the short version: the standard recommends working with large collections only on the server. however, if you iterate through the entire collection on the client at the start, for example in the form’s opening handler, it gets cached. after that, you can loop through it, search for rows, and do other work without extra server calls. overall, you spend less time shuffling data around. i’ve just run some simple tests, and yes, it seems to work. the method feels a bit like a workaround, and i haven’t tested it under serious load yet, but it’s probably worth keeping in mind.",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/close-to-the-sun\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Close to the Sun\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>14 May 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/UMsQ2oB006w\" width=\"560\"></iframe>\n<p>Game journalists and YouTubers are competing to tear Close to the Sun apart in their reviews, but I unexpectedly liked it. It’s certainly no masterpiece, yet it captures the atmosphere of an enormous Flying Dutchman brilliantly. Parts of it bring BioShock to mind, but I’m not about to tear a story apart just because it reminds me of something else.</p>\n<p>There’s also a fantastic <a href=\"https://www.youtube.com/watch?v=TiRZVAO2XbQ\" rel=\"noopener noreferrer\" target=\"_blank\">single</a> playing over the end credits, which literally sold me the game a couple of days ago. You can listen to it without touching the game itself.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "close to the sun 14 may 2019 · videogames game journalists and youtubers are competing to tear close to the sun apart in their reviews, but i unexpectedly liked it. it’s certainly no masterpiece, yet it captures the atmosphere of an enormous flying dutchman brilliantly. parts of it bring bioshock to mind, but i’m not about to tear a story apart just because it reminds me of something else. there’s also a fantastic single playing over the end credits, which literally sold me the game a couple of days ago. you can listen to it without touching the game itself.",
    "tags": [
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/pagelatch\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                PageLatch Waits\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>22 April 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"mssql\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">MS SQL</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>PageIOLatch waits, which I <a href=\"https://kostyanetsky.me/notes/pageiolatch\" rel=\"noopener noreferrer\" target=\"_blank\">wrote about</a> today, are easy to encounter in any system, even small ones. PageLatch waits are the opposite: they’re hard to notice until you have several thousand users.</p>\n<p>They occur when a page is already in RAM and several users try to modify it. Until one user finishes, the others must wait. The wait is usually tiny, but with many users competing for the page, it becomes noticeable.</p>\n<p>Two things can cause this.</p>\n<h2>An Index Hotspot</h2>\n<p>This happens when we try to write heavily to the last page of an index, primarily one with a monotonically increasing key. Examples include indexes on reference-type fields: since late 8.2 versions, the platform has generated sequential GUIDs, reducing disk fragmentation and making the index key monotonically increasing.</p>\n<p>What is an index with a monotonically increasing key? In 1C, register indexes on the period are one example. They don’t grow perfectly monotonically, but the important point is that we generally write data at the end. Document number and catalog code indexes also belong here: a new number is assigned and written to the end of the index.</p>\n<p>Fixing a hotspot means changing the design: you need writes to land in different parts of the index, not all at the end.</p>\n<h2>tempdb System Pages</h2>\n<p>Creating or dropping a table updates a number of internal pages: IAM (Index Allocation Map), PFS (Page Free Space), GAM (Global Allocation Map), SGAM (Shared Global Allocation Map), and others.</p>\n<p>Why does this matter for tempdb? The 1C platform regularly creates an <strong>enormous</strong> number of tables there. Those internal pages get updated so often that you start seeing PageLatch waits.</p>\n<p>MS SQL Server can optimize system page updates for tempdb so they happen less often, but sometimes even that isn’t enough, especially when tables are created with indexes, a very common case in 1C applications.</p>\n<p>There are a few ways to tackle it. First, for DBMS versions before 2016, disable mixed extents using trace flag 1118. That removes the need for two internal page types, GAM and SGAM, so you no longer have to wait for their updates. An extent is eight data pages, or 64 kilobytes. If it contains pages from one table, it is uniform; if from several, mixed.</p>\n<p>Second, split tempdb into multiple files. Since 2016, the DBMS splits it into eight files by default. Each file has its own internal pages, so spreading the work across files cuts the waits.</p>\n<p>Third, reduce the number of temporary tables to lower the load on tempdb. Rewrite the most frequent queries so they run acceptably fast without temporary tables.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "pagelatch waits 22 april 2019 · 1с ms sql pageiolatch waits, which i wrote about today, are easy to encounter in any system, even small ones. pagelatch waits are the opposite: they’re hard to notice until you have several thousand users. they occur when a page is already in ram and several users try to modify it. until one user finishes, the others must wait. the wait is usually tiny, but with many users competing for the page, it becomes noticeable. two things can cause this. an index hotspot this happens when we try to write heavily to the last page of an index, primarily one with a monotonically increasing key. examples include indexes on reference-type fields: since late 8.2 versions, the platform has generated sequential guids, reducing disk fragmentation and making the index key monotonically increasing. what is an index with a monotonically increasing key? in 1c, register indexes on the period are one example. they don’t grow perfectly monotonically, but the important point is that we generally write data at the end. document number and catalog code indexes also belong here: a new number is assigned and written to the end of the index. fixing a hotspot means changing the design: you need writes to land in different parts of the index, not all at the end. tempdb system pages creating or dropping a table updates a number of internal pages: iam (index allocation map), pfs (page free space), gam (global allocation map), sgam (shared global allocation map), and others. why does this matter for tempdb? the 1c platform regularly creates an enormous number of tables there. those internal pages get updated so often that you start seeing pagelatch waits. ms sql server can optimize system page updates for tempdb so they happen less often, but sometimes even that isn’t enough, especially when tables are created with indexes, a very common case in 1c applications. there are a few ways to tackle it. first, for dbms versions before 2016, disable mixed extents using trace flag 1118. that removes the need for two internal page types, gam and sgam, so you no longer have to wait for their updates. an extent is eight data pages, or 64 kilobytes. if it contains pages from one table, it is uniform; if from several, mixed. second, split tempdb into multiple files. since 2016, the dbms splits it into eight files by default. each file has its own internal pages, so spreading the work across files cuts the waits. third, reduce the number of temporary tables to lower the load on tempdb. rewrite the most frequent queries so they run acceptably fast without temporary tables.",
    "tags": [
      "1c",
      "mssql"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/pageiolatch\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                PageIOLatch Waits\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>22 April 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"mssql\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">MS SQL</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>When a data page is read from disk into the buffer cache, it is latched for a very short time: it cannot be written, and in some cases cannot be read either. Waiting for that action to finish is a PageIOLatch wait.</p>\n<p>Maybe you don’t have enough RAM. Or maybe some lousy queries are churning through the buffer cache, reading millions of rows to return three. The DBMS repeatedly fails to find the required pages in cache and has to read them from disk again and again.</p>\n<p>So if you’re seeing a lot of PageIOLatch waits, faster disks, more RAM, and better queries will probably help.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "pageiolatch waits 22 april 2019 · ms sql when a data page is read from disk into the buffer cache, it is latched for a very short time: it cannot be written, and in some cases cannot be read either. waiting for that action to finish is a pageiolatch wait. maybe you don’t have enough ram. or maybe some lousy queries are churning through the buffer cache, reading millions of rows to return three. the dbms repeatedly fails to find the required pages in cache and has to read them from disk again and again. so if you’re seeing a lot of pageiolatch waits, faster disks, more ram, and better queries will probably help.",
    "tags": [
      "mssql"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/object-locks\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Object Locks\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>22 April 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>First, to avoid confusion: the platform’s object locks have nothing to do with managed locks, let alone DBMS locks. Second, there are two types: pessimistic and optimistic object locks.</p>\n<p>Both are well <a href=\"https://its.1c.ru/db/metod8dev#content:5839:hdoc\" rel=\"noopener noreferrer\" target=\"_blank\">documented</a> on ITS; here’s the short version.</p>\n<h2>Pessimistic Locks</h2>\n<p>A form extension applies one when the user starts editing an object, for example by changing a field. If someone else tries to edit the same object in a form, that form tries to get a pessimistic lock too. It can’t, so the user gets “Failed to lock record.”</p>\n<p>The platform is being pessimistic here: the first user has started editing, so they’ll probably save. Better not let the second user change it in the meantime.</p>\n<p>You can also apply a pessimistic lock using the object’s Lock() method and release it with Unlock(). Other options are the global context’s LockDataForEdit() and a managed form’s LockFormDataForEdit().</p>\n<h2>Optimistic Locks</h2>\n<p>First, some theory: the platform stores versions for reference-type objects, such as catalogs and documents. Basically, a version tells you when the object last changed. When a form extension or code reads an object, its version is read with it.</p>\n<p>When writing the object, the platform compares the version obtained when reading it with the version currently stored in the database. If they differ, it reports: “The operation cannot be performed because the versions do not match or the database record is missing.”</p>\n<p>That’s an optimistic lock. It’s called that because the platform leaves the check until the last possible moment, when someone actually tries to save.</p>\n<p>You cannot apply an optimistic object lock through code: the version is stored in the object table’s _Version field, populated by the DBMS. The platform provides no way to change it directly, though writing the object will change its version.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "object locks 22 april 2019 · 1с first, to avoid confusion: the platform’s object locks have nothing to do with managed locks, let alone dbms locks. second, there are two types: pessimistic and optimistic object locks. both are well documented on its; here’s the short version. pessimistic locks a form extension applies one when the user starts editing an object, for example by changing a field. if someone else tries to edit the same object in a form, that form tries to get a pessimistic lock too. it can’t, so the user gets “failed to lock record.” the platform is being pessimistic here: the first user has started editing, so they’ll probably save. better not let the second user change it in the meantime. you can also apply a pessimistic lock using the object’s lock() method and release it with unlock(). other options are the global context’s lockdataforedit() and a managed form’s lockformdataforedit(). optimistic locks first, some theory: the platform stores versions for reference-type objects, such as catalogs and documents. basically, a version tells you when the object last changed. when a form extension or code reads an object, its version is read with it. when writing the object, the platform compares the version obtained when reading it with the version currently stored in the database. if they differ, it reports: “the operation cannot be performed because the versions do not match or the database record is missing.” that’s an optimistic lock. it’s called that because the platform leaves the check until the last possible moment, when someone actually tries to save. you cannot apply an optimistic object lock through code: the version is stored in the object table’s _version field, populated by the dbms. the platform provides no way to change it directly, though writing the object will change its version.",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/fat-roles\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Bloated Roles\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>18 April 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>A very interesting <a href=\"https://start1c.blogspot.com/2019/01/blog-post.html\" rel=\"noopener noreferrer\" target=\"_blank\">post</a> about the trouble the “Clear All Rights” command can cause in a role. It does what it says, sure: the rights are gone. But the role object can end up eating several times more memory than it needs, out of nowhere.</p>\n<p>I read it, thought about it, and went to check our configuration. And what do you know? I found a couple of dozen roles stuffed to the brim with “unchecked boxes.” The rights export weighed in at around three hundred megabytes. After a cleanup, it was almost three times smaller.</p>\n<p>It’s curious that this had gone unnoticed for so long. Most likely, it’s down to the object count: our configuration is relatively small. Those roles just weren’t eating enough resources for us to notice.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "bloated roles 18 april 2019 · 1с work a very interesting post about the trouble the “clear all rights” command can cause in a role. it does what it says, sure: the rights are gone. but the role object can end up eating several times more memory than it needs, out of nowhere. i read it, thought about it, and went to check our configuration. and what do you know? i found a couple of dozen roles stuffed to the brim with “unchecked boxes.” the rights export weighed in at around three hundred megabytes. after a cleanup, it was almost three times smaller. it’s curious that this had gone unnoticed for so long. most likely, it’s down to the object count: our configuration is relatively small. those roles just weren’t eating enough resources for us to notice.",
    "tags": [
      "1c",
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/gris\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                GRIS\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>14 April 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/gvECQlxrhbw\" width=\"560\"></iframe>\n<p>This is a tricky game to recommend, but it really is art, in the most literal sense. I can’t remember the last time a game had me so spellbound I couldn’t tear myself away.</p>\n<p>Maybe it was the art, maybe the music, or maybe how honestly the creators captured the feeling they were trying to get across.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "gris 14 april 2019 · videogames this is a tricky game to recommend, but it really is art, in the most literal sense. i can’t remember the last time a game had me so spellbound i couldn’t tear myself away. maybe it was the art, maybe the music, or maybe how honestly the creators captured the feeling they were trying to get across.",
    "tags": [
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/simple-checkbox\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                A Simple Checkbox\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>30 Marth 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>A couple of weeks ago, we added an “Inactive” parameter to FirstBIT ERP’s product catalog. The task was simple: if a user no longer needs a product, they check the box and it disappears from everywhere, including selection forms and warehouse balance selection forms.</p>\n<p>Sounds straightforward, right? The code was simple too: we went through every object where users select products and added an extra choice parameter.</p>\n<p><img alt=\"Choice parameters\" src=\"https://kostyanetsky.me/notes/simple-checkbox/choice-parameters.png\"/></p>\n<p>But users started complaining that the setting didn’t work. We investigated and realized we’d forgotten input history. Turns out it just ignores choice parameters. Users selected a product in an invoice, marked it inactive, returned to the invoice, and… Saw the supposedly disabled product in the history again.</p>\n<p>We looked for a way out. The problem is that input history lives in system storage, and there’s no way to change it from code. You can wipe it altogether, but it only actually clears when the client restarts, and even then it’s hit and miss. Disable history completely? That feels like curing a cold by cutting off the patient’s head.</p>\n<p>At some point, we learned that input history is stored not just per field, but also per combination of choice parameters. Each combination of parameters and values has its own history. So, if we add another choice parameter to every product selection field, changing its value will “clear” the history. In reality, it creates a new one, but what difference does that make to the user?</p>\n<p>So that’s what we did. It lives in shared storage and is passed to forms when they open through a common module that adds the choice parameter programmatically. When a user sets or clears Inactive for any product, the parameter changes, and already open forms receive it through notifications.</p>\n<p><img alt=\"Wait a minute!\" src=\"https://media.giphy.com/media/3o7btPCcdNniyf0ArS/giphy.gif\"/></p>\n<p>It all started so innocently, didn’t it?</p>\n<p>It works pretty well, but the downsides are obvious. First, system storage gradually grows as new combinations of real choice parameters and our artificial one appear. Second, saving products is now a potential bottleneck: two users can’t save products with changed Inactive flags at the same time, because writing our hidden choice parameter’s new value to shared storage causes a lock.</p>\n<p>The first problem can be solved by clearing storage on some trigger; the second, by storing our choice parameter per user, for example in an information register. Still, we’re really hoping 1C gives us access to input history before we have to pile more workarounds on top of the ones we’ve already built :-)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "a simple checkbox 30 marth 2019 · 1с work a couple of weeks ago, we added an “inactive” parameter to firstbit erp’s product catalog. the task was simple: if a user no longer needs a product, they check the box and it disappears from everywhere, including selection forms and warehouse balance selection forms. sounds straightforward, right? the code was simple too: we went through every object where users select products and added an extra choice parameter. but users started complaining that the setting didn’t work. we investigated and realized we’d forgotten input history. turns out it just ignores choice parameters. users selected a product in an invoice, marked it inactive, returned to the invoice, and… saw the supposedly disabled product in the history again. we looked for a way out. the problem is that input history lives in system storage, and there’s no way to change it from code. you can wipe it altogether, but it only actually clears when the client restarts, and even then it’s hit and miss. disable history completely? that feels like curing a cold by cutting off the patient’s head. at some point, we learned that input history is stored not just per field, but also per combination of choice parameters. each combination of parameters and values has its own history. so, if we add another choice parameter to every product selection field, changing its value will “clear” the history. in reality, it creates a new one, but what difference does that make to the user? so that’s what we did. it lives in shared storage and is passed to forms when they open through a common module that adds the choice parameter programmatically. when a user sets or clears inactive for any product, the parameter changes, and already open forms receive it through notifications. it all started so innocently, didn’t it? it works pretty well, but the downsides are obvious. first, system storage gradually grows as new combinations of real choice parameters and our artificial one appear. second, saving products is now a potential bottleneck: two users can’t save products with changed inactive flags at the same time, because writing our hidden choice parameter’s new value to shared storage causes a lock. the first problem can be solved by clearing storage on some trigger; the second, by storing our choice parameter per user, for example in an information register. still, we’re really hoping 1c gives us access to input history before we have to pile more workarounds on top of the ones we’ve already built :-)",
    "tags": [
      "1c",
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/mssql-server-start-date\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                MS SQL Server Startup Time\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>8 Marth 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"mssql\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">MS SQL</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Why would you need to know when MS SQL Server started? Say we’re looking into DBMS waits and want to know how long the <a href=\"https://docs.microsoft.com/ru-ru/sql/relational-databases/system-dynamic-management-views/sys-dm-os-wait-stats-transact-sql\" rel=\"noopener noreferrer\" target=\"_blank\">sys.dm_os_wait_stats</a> DMV has been collecting data. It keeps its data in RAM from the moment the DBMS starts, just like the other DMVs.</p>\n<p>You can get the startup time from <a href=\"https://docs.microsoft.com/ru-ru/sql/relational-databases/system-dynamic-management-views/sys-dm-os-sys-info-transact-sql\" rel=\"noopener noreferrer\" target=\"_blank\">sys.dm_os_sys_info</a>:</p>\n<pre><code>SELECT sqlserver_start_time FROM sys.dm_os_sys_info\n</code></pre>\n<p>There’s another way, using tempdb. It’s created when the server starts, so its creation time gives us the same answer. You can get it from <a href=\"https://docs.microsoft.com/ru-ru/sql/relational-databases/system-catalog-views/sys-databases-transact-sql\" rel=\"noopener noreferrer\" target=\"_blank\">sys.databases</a>:</p>\n<pre><code>SELECT create_date FROM sys.databases WHERE name = 'tempdb'\n</code></pre>\n<p>One catch: the server’s startup time doesn’t necessarily tell you when DMV data collection began. Someone might have cleared the stats by hand, for example like this:</p>\n<pre><code>DBCC SQLPERF('sys.dm_os_wait_stats', CLEAR)\n</code></pre>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "ms sql server startup time 8 marth 2019 · ms sql why would you need to know when ms sql server started? say we’re looking into dbms waits and want to know how long the sys.dm_os_wait_stats dmv has been collecting data. it keeps its data in ram from the moment the dbms starts, just like the other dmvs. you can get the startup time from sys.dm_os_sys_info : select sqlserver_start_time from sys.dm_os_sys_info there’s another way, using tempdb. it’s created when the server starts, so its creation time gives us the same answer. you can get it from sys.databases : select create_date from sys.databases where name = 'tempdb' one catch: the server’s startup time doesn’t necessarily tell you when dmv data collection began. someone might have cleared the stats by hand, for example like this: dbcc sqlperf('sys.dm_os_wait_stats', clear)",
    "tags": [
      "mssql"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/mssql-server-waits\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                MS SQL Server Waits\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>8 Marth 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"mssql\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">MS SQL</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Whenever a SQL query could run but is waiting for another resource, information about the reason for the wait is recorded. You can access it through <a href=\"https://docs.microsoft.com/ru-ru/sql/relational-databases/system-dynamic-management-views/sys-dm-os-wait-stats-transact-sql\" rel=\"noopener noreferrer\" target=\"_blank\">sys.dm_os_wait_stats</a>.</p>\n<p>Here are a couple of ready-made scripts to make sense of it:</p>\n<ul>\n<li>A <a href=\"https://kostyanetsky.me/notes/mssql-server-waits/causes_of_wait_times.txt\" rel=\"noopener noreferrer\" target=\"_blank\">script</a> from Ian Stirk’s article “Uncover Hidden Data to Optimize Application Performance,” published in MSDN Magazine back in <a href=\"https://msdn.microsoft.com/ru-ru/magazine/ee310108.aspx\" rel=\"noopener noreferrer\" target=\"_blank\">2008</a>. It lists wait types ordered by time, from the most prominent to the least.</li>\n<li>A <a href=\"https://kostyanetsky.me/notes/mssql-server-waits/sql_server_wait_statistics.txt\" rel=\"noopener noreferrer\" target=\"_blank\">script</a> from Paul Randal’s <a href=\"https://www.sqlskills.com/blogs/paul/wait-statistics-or-please-tell-me-where-it-hurts/\" rel=\"noopener noreferrer\" target=\"_blank\">article</a> about analyzing MS SQL Server waits; there’s also a Russian <a href=\"https://habr.com/ru/post/216309/\" rel=\"noopener noreferrer\" target=\"_blank\">translation</a> on Habr. It filters out waits that always occur and can usually be ignored. It also adds a link to a detailed explanation of each wait, such as this <a href=\"https://www.sqlskills.com/help/waits/cxpacket\" rel=\"noopener noreferrer\" target=\"_blank\">description</a> of CXPACKET.</li>\n</ul>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "ms sql server waits 8 marth 2019 · ms sql whenever a sql query could run but is waiting for another resource, information about the reason for the wait is recorded. you can access it through sys.dm_os_wait_stats . here are a couple of ready-made scripts to make sense of it: a script from ian stirk’s article “uncover hidden data to optimize application performance,” published in msdn magazine back in 2008 . it lists wait types ordered by time, from the most prominent to the least. a script from paul randal’s article about analyzing ms sql server waits; there’s also a russian translation on habr. it filters out waits that always occur and can usually be ignored. it also adds a link to a detailed explanation of each wait, such as this description of cxpacket.",
    "tags": [
      "mssql"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/cursed-forest\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                The Cursed Forest\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>6 Marth 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/uoCdg6SQRoA\" width=\"560\"></iframe>\n<p>I wasn’t expecting much, but this game surprised me. It looks good, the attention to detail shows, and overall it’s rather nice. Toward the end, it’s even touching.</p>\n<p>Play it properly: turn off the lights, put on headphones, and, of course, switch off your inner nitpicker.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "the cursed forest 6 marth 2019 · videogames i wasn’t expecting much, but this game surprised me. it looks good, the attention to detail shows, and overall it’s rather nice. toward the end, it’s even touching. play it properly: turn off the lights, put on headphones, and, of course, switch off your inner nitpicker.",
    "tags": [
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/duplicate-key\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                A Duplicate Key\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>1 Marth 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Infostart published an interesting <a href=\"https://infostart.ru/public/1010017/\" rel=\"noopener noreferrer\" target=\"_blank\">article</a> about the DBMS error “cannot insert duplicate key.” One possible cause is using an object’s unique identifier to match it during exchanges with other infobases, without a dedicated register mapping local objects to identifiers in the external database.</p>\n<p>I haven’t yet encountered anything as wild as unique identifiers colliding across different infobases for the same table. But I abandoned the “single identifier” approach for good after building an exchange between <a href=\"https://firstbit.ae/products/erp-dubai/financial_management/\" rel=\"noopener noreferrer\" target=\"_blank\">FirstBIT ERP</a> and <a href=\"http://superagent.ru/products/grotem_agent\" rel=\"noopener noreferrer\" target=\"_blank\">GROTEM / Agent</a>.</p>\n<p>The first version worked like this: data from FirstBIT ERP was first exported to an intermediary 1C infobase written by GROTEM’s developers, and then to the mobile application server’s main database.</p>\n<p>Matching was very simple: object identifiers. The same document in both databases had the same identifier, for example. But some mappings were more complicated: a FirstBIT ERP counterparty became three objects on GROTEM’s side: a counterparty, a retail outlet, and a settlement document.</p>\n<p><img alt=\"WAIT WHAT\" src=\"https://media.giphy.com/media/zkSFsZpQMZuG4/giphy.gif\"/></p>\n<p>Yes, a settlement document. All three objects had the same identifier, that of the FirstBIT ERP counterparty. It wasn’t particularly elegant, but the platform handles this arrangement perfectly well, and we decided there shouldn’t be any problems.</p>\n<p>The exchange refused to work, though.</p>\n<p>A quick look showed that the data made it to the intermediate infobase just fine and passed every integrity and completeness check. Only the last step was failing: sending it to the mobile application server’s database.</p>\n<p>Eventually, it turned out that:</p>\n<ol>\n<li>This database has a table storing all the objects we care about: documents, catalog items, and so forth.</li>\n<li>That table has a unique index on the object GUID.</li>\n</ol>\n<p>Well, mystery solved. Of course, the very first exported counterparty created three entities with the same GUID. They lived happily in their separate tables on the 1C side, but couldn’t be written into one shared table in the application database.</p>\n<p><img alt=\"I will not use GUIDs to map objects!\" src=\"https://kostyanetsky.me/notes/duplicate-key/i-will-not-use-guids.gif\"/></p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "a duplicate key 1 marth 2019 · 1с done work infostart published an interesting article about the dbms error “cannot insert duplicate key.” one possible cause is using an object’s unique identifier to match it during exchanges with other infobases, without a dedicated register mapping local objects to identifiers in the external database. i haven’t yet encountered anything as wild as unique identifiers colliding across different infobases for the same table. but i abandoned the “single identifier” approach for good after building an exchange between firstbit erp and grotem / agent . the first version worked like this: data from firstbit erp was first exported to an intermediary 1c infobase written by grotem’s developers, and then to the mobile application server’s main database. matching was very simple: object identifiers. the same document in both databases had the same identifier, for example. but some mappings were more complicated: a firstbit erp counterparty became three objects on grotem’s side: a counterparty, a retail outlet, and a settlement document. yes, a settlement document. all three objects had the same identifier, that of the firstbit erp counterparty. it wasn’t particularly elegant, but the platform handles this arrangement perfectly well, and we decided there shouldn’t be any problems. the exchange refused to work, though. a quick look showed that the data made it to the intermediate infobase just fine and passed every integrity and completeness check. only the last step was failing: sending it to the mobile application server’s database. eventually, it turned out that: this database has a table storing all the objects we care about: documents, catalog items, and so forth. that table has a unique index on the object guid. well, mystery solved. of course, the very first exported counterparty created three entities with the same guid. they lived happily in their separate tables on the 1c side, but couldn’t be written into one shared table in the application database.",
    "tags": [
      "1c",
      "done",
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/loneliness\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Loneliness\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>1 Marth 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"meanwhile\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Meanwhile</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>A good video about loneliness, its causes, and its consequences. Spoiler: it’s serious, right down to the biological level. The narration is in English, but Russian subtitles are available if needed.</p>\n<iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/n3Xv_g3g-mA\" width=\"560\"></iframe>\n<p>(A <a href=\"https://twitter.com/StatusyOk/status/1098845710668185602\" rel=\"noopener noreferrer\" target=\"_blank\">tweet</a> that sums it up nicely.)</p>\n<p>(Also, apparently I’ve played enough StarCraft II that I can only hear the title in Zeratul’s voice, with the music from <a href=\"https://www.youtube.com/watch?v=xu94hnQDnRY\" rel=\"noopener noreferrer\" target=\"_blank\">Alone</a>.)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "loneliness 1 marth 2019 · meanwhile videogames a good video about loneliness, its causes, and its consequences. spoiler: it’s serious, right down to the biological level. the narration is in english, but russian subtitles are available if needed. (a tweet that sums it up nicely.) (also, apparently i’ve played enough starcraft ii that i can only hear the title in zeratul’s voice, with the music from alone .)",
    "tags": [
      "meanwhile",
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/failed-hunt\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                An Unsuccessful Hunt\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>21 February 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>After upgrading the platform to 8.13.12.1790, we encountered an intermittent bug when switching a control’s current page on the server. It works on the server itself, but as soon as control returns to the client, the current page reverts to the previous one. The current-page-change event also fires, as though the user had changed it manually.</p>\n<p>Unpleasant, but nothing terrible: we worked around the bug, documented it, and reported it to 1C. They’re still <a href=\"https://bugboard.v8.1c.ru/error/000050675.html\" rel=\"noopener noreferrer\" target=\"_blank\">thinking about it</a>. But weirdly, I’m a little disappointed. When you dig into these things, there’s always a bit of mystery. It feels like you’re about to uncover something interesting, some new quirk of the platform, maybe.</p>\n<p>Then you finally look at the problem from the right angle, and it’s just an ordinary bug. Maybe striped or spotted, but a perfectly ordinary bug, sitting there twitching its antennae. And you think: damn, is that all I caught? :-)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "an unsuccessful hunt 21 february 2019 · 1с done work after upgrading the platform to 8.13.12.1790, we encountered an intermittent bug when switching a control’s current page on the server. it works on the server itself, but as soon as control returns to the client, the current page reverts to the previous one. the current-page-change event also fires, as though the user had changed it manually. unpleasant, but nothing terrible: we worked around the bug, documented it, and reported it to 1c. they’re still thinking about it . but weirdly, i’m a little disappointed. when you dig into these things, there’s always a bit of mystery. it feels like you’re about to uncover something interesting, some new quirk of the platform, maybe. then you finally look at the problem from the right angle, and it’s just an ordinary bug. maybe striped or spotted, but a perfectly ordinary bug, sitting there twitching its antennae. and you think: damn, is that all i caught? :-)",
    "tags": [
      "1c",
      "done",
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/big-value-tables\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Large Value Tables\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>17 February 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>While writing about <a href=\"https://kostyanetsky.me/notes/find-rows-at-client\" rel=\"noopener noreferrer\" target=\"_blank\">searching for rows</a> on the client, I remembered another detail about data on managed forms, also involving transfers between client and server.</p>\n<p>Say we need to work with fairly large value tables, thousands of rows each. These might hold data that generally doesn’t need to be shown to the user: pricing parameters, sales and purchase information, or something else. Creating these tables as form attributes seems logical, if only because the designer is convenient.</p>\n<p>But things get awkward when the platform sends one of those tables to the server. Instead of a nice compact ValueTable, it sends a much bulkier FormDataCollection. The difference is enormous: on one of our projects, this data exchange accounted for around 40% of a key operation’s total runtime.</p>\n<p>The fix is pretty obvious: don’t use form attributes for the tables. Instead, create value tables in code, for example in the OnCreateAtServer handler, put them in temporary storage, and keep only their storage addresses in form attributes. When you need to work with a table, only the address string is sent to the server, so you spend next to nothing on serialization and data transfer. On the server, retrieve the table, read its data, change it if necessary, and save it back to temporary storage at the same address.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "large value tables 17 february 2019 · 1с while writing about searching for rows on the client, i remembered another detail about data on managed forms, also involving transfers between client and server. say we need to work with fairly large value tables, thousands of rows each. these might hold data that generally doesn’t need to be shown to the user: pricing parameters, sales and purchase information, or something else. creating these tables as form attributes seems logical, if only because the designer is convenient. but things get awkward when the platform sends one of those tables to the server. instead of a nice compact valuetable, it sends a much bulkier formdatacollection. the difference is enormous: on one of our projects, this data exchange accounted for around 40% of a key operation’s total runtime. the fix is pretty obvious: don’t use form attributes for the tables. instead, create value tables in code, for example in the oncreateatserver handler, put them in temporary storage, and keep only their storage addresses in form attributes. when you need to work with a table, only the address string is sent to the server, so you spend next to nothing on serialization and data transfer. on the server, retrieve the table, read its data, change it if necessary, and save it back to temporary storage at the same address.",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/evolution\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Evolution\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>16 February 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"english\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">English</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"javascript\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Javascript</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>When people talk about how something develops, a product, a language, a programming language, whatever, they sometimes call it “evolution.” The idea is that bad solutions gradually die out, while good ones stick around and make the thing better. Fair enough, but that’s not the part I’m thinking of right now. The catch is that descendants inherit more than the useful stuff. They also get every badly put-together, often pointless mechanism that didn’t quite manage to kill their ancestors.</p>\n<p>As a result, we hold our breath while swallowing, get confused between dissatisfied and unsatisfactory, and program in the wonderful language JavaScript, which, handy and popular as it is, has picked up every flaw a scripting language could possibly have, and then some.</p>\n<p>We’re still lucky, though: consider giraffes! Their laryngeal nerve first travels two meters down the neck and then back up to the laryngeal muscles, instead of going the few centimeters straight from the brain.</p>\n<p>Knowing all this makes it a little easier to look at what my code sometimes turns into after another round of development. So what if this hamster has grown a dragon’s tail? Evolutionarily speaking, that’s a pretty useful tail. Who am I to argue with Darwin?</p>\n<p><a href=\"https://twitter.com/bluecoders/status/966624401172123649\" rel=\"noopener noreferrer\" target=\"_blank\"><img alt=\"Tweet\" src=\"https://kostyanetsky.me/notes/evolution/snap-tweet-bluecoders-966624401172123649.png\"/></a></p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "evolution 16 february 2019 · english work javascript when people talk about how something develops, a product, a language, a programming language, whatever, they sometimes call it “evolution.” the idea is that bad solutions gradually die out, while good ones stick around and make the thing better. fair enough, but that’s not the part i’m thinking of right now. the catch is that descendants inherit more than the useful stuff. they also get every badly put-together, often pointless mechanism that didn’t quite manage to kill their ancestors. as a result, we hold our breath while swallowing, get confused between dissatisfied and unsatisfactory, and program in the wonderful language javascript, which, handy and popular as it is, has picked up every flaw a scripting language could possibly have, and then some. we’re still lucky, though: consider giraffes! their laryngeal nerve first travels two meters down the neck and then back up to the laryngeal muscles, instead of going the few centimeters straight from the brain. knowing all this makes it a little easier to look at what my code sometimes turns into after another round of development. so what if this hamster has grown a dragon’s tail? evolutionarily speaking, that’s a pretty useful tail. who am i to argue with darwin?",
    "tags": [
      "english",
      "work",
      "javascript"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/find-rows-at-client\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Finding Rows on the Client\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>12 February 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I learned quite a while ago that FindRows() on form data collections can quietly generate server calls, when I ran into a form that took forever to load. The method was being called right in the opening handler, inside a loop, no less. You shouldn’t do that, of course, as the help gently suggests: calling the method executes a server call.</p>\n<p>Today, though, while writing code for a similar task, I noticed there were no actual server calls. Surprised, I checked ITS. Here’s the explanation: when you call FindRows() on the client, the search does happen there, but the platform doesn’t keep all the data of large collections on the client. It transfers data from the server, and requesting that data is the server call mentioned in the help.</p>\n<p>The platform developers are vague about the collection size below which the client doesn’t need the server; ITS <a href=\"https://its.1c.ru/db/v8std/content/628/hdoc/_top/\" rel=\"noopener noreferrer\" target=\"_blank\">says</a> it’s about twenty rows. So I’d still do the same thing: make an explicit server call and don’t worry about the platform adding its own. Still, it’s always nice to understand a little better what’s going on under the hood :-)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "finding rows on the client 12 february 2019 · 1с i learned quite a while ago that findrows() on form data collections can quietly generate server calls, when i ran into a form that took forever to load. the method was being called right in the opening handler, inside a loop, no less. you shouldn’t do that, of course, as the help gently suggests: calling the method executes a server call. today, though, while writing code for a similar task, i noticed there were no actual server calls. surprised, i checked its. here’s the explanation: when you call findrows() on the client, the search does happen there, but the platform doesn’t keep all the data of large collections on the client. it transfers data from the server, and requesting that data is the server call mentioned in the help. the platform developers are vague about the collection size below which the client doesn’t need the server; its says it’s about twenty rows. so i’d still do the same thing: make an explicit server call and don’t worry about the platform adding its own. still, it’s always nice to understand a little better what’s going on under the hood :-)",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/i-wish-i-could\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                I Do My Best\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>12 February 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"english\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">English</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>One thing that makes learning English much easier is practice that practically falls into your lap. Sometimes it’s more useful than examples from something like the Cambridge Dictionary, simply because it sticks better.</p>\n<p>Yesterday in class, for example, we were working on hypothetical situations and getting our heads around wish and if only. Today, the first thing in my feed was this tweet. Hard to make it any clearer :-)</p>\n<p><a href=\"https://twitter.com/roxiqt/status/1046952683477729282\" rel=\"noopener noreferrer\" target=\"_blank\"><img alt=\"Tweet\" src=\"https://kostyanetsky.me/notes/i-wish-i-could/snap-tweet-roxiqt-1046952683477729282.png\"/></a></p>\n<p>Or take the difference between try and trying, which we recently reviewed. I memorized it long ago thanks to Felicity’s strained “I do my best” in Borderlands: The Pre-Sequel. That scene sticks with you, and so does the sense that she just can’t do what’s being asked of her.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "i do my best 12 february 2019 · english videogames one thing that makes learning english much easier is practice that practically falls into your lap. sometimes it’s more useful than examples from something like the cambridge dictionary, simply because it sticks better. yesterday in class, for example, we were working on hypothetical situations and getting our heads around wish and if only. today, the first thing in my feed was this tweet. hard to make it any clearer :-) or take the difference between try and trying, which we recently reviewed. i memorized it long ago thanks to felicity’s strained “i do my best” in borderlands: the pre-sequel. that scene sticks with you, and so does the sense that she just can’t do what’s being asked of her.",
    "tags": [
      "english",
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/what-are-our-girls-made-of\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                What Are Our Girls Made Of?\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>9 February 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"family\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Family</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"meanwhile\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Meanwhile</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>With all the fuss over that Reebok ad, I came across a great video from their competitors on YouTube. I’m barely following the whole thing, but even I caught some of the fallout. It’s already a couple of years old, but it’s about exactly the same thing, and damn! An ad made by someone with their head screwed on straight. I don’t know how else to put it.</p>\n<iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/xifSHMbGSKI\" width=\"560\"></iframe>\n<p>I showed it to the little one: she watched wide-eyed. I’ll show it again next time she’s loafing around instead of training :-)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "what are our girls made of? 9 february 2019 · family meanwhile with all the fuss over that reebok ad, i came across a great video from their competitors on youtube. i’m barely following the whole thing, but even i caught some of the fallout. it’s already a couple of years old, but it’s about exactly the same thing, and damn! an ad made by someone with their head screwed on straight. i don’t know how else to put it. i showed it to the little one: she watched wide-eyed. i’ll show it again next time she’s loafing around instead of training :-)",
    "tags": [
      "family",
      "meanwhile"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/drummer\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                An Unexpected Drummer\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>9 February 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I’ve been writing for the 1C platform for quite a while and have seen some shit, but honestly, this is a first.</p>\n<p><a href=\"https://kostyanetsky.me/notes/drummer/bug.png\" rel=\"noopener noreferrer\" target=\"_blank\"><img alt=\"Well, would you look at that!\" src=\"https://kostyanetsky.me/notes/drummer/bug-thumbnail.png\"/></a></p>\n<p>At first, I didn’t even know where to begin. I looked up a translation of the character: Wikipedia just told me it was a <a href=\"https://en.wiktionary.org/wiki/%E4%80%80\" rel=\"noopener noreferrer\" target=\"_blank\">type of cup</a>, while Google Translate <a href=\"https://translate.google.com/#view=home&amp;op=translate&amp;sl=auto&amp;tl=ru&amp;text=%E4%80%80\" rel=\"noopener noreferrer\" target=\"_blank\">gave up entirely</a>.</p>\n<p>A colleague said it looked a bit like a warehouse worker moving stuff between boxes. I’m not so sure. To me, it looks more like a drummer at work. But what the hell does it mean? Is 1C trying to tell me something? Something about music?</p>\n<p>Maybe I should have become a bass player instead of doing all this.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "an unexpected drummer 9 february 2019 · 1с i’ve been writing for the 1c platform for quite a while and have seen some shit, but honestly, this is a first. at first, i didn’t even know where to begin. i looked up a translation of the character: wikipedia just told me it was a type of cup , while google translate gave up entirely . a colleague said it looked a bit like a warehouse worker moving stuff between boxes. i’m not so sure. to me, it looks more like a drummer at work. but what the hell does it mean? is 1c trying to tell me something? something about music? maybe i should have become a bass player instead of doing all this.",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/temporary-tables-deletion\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Deleting Temporary Tables\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>7 February 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>A curious detail: closing a temporary tables manager doesn’t remove its tables from tempdb. It doesn’t matter whether you call Close() yourself or let the manager object disappear when the method that created it finishes. In both cases, only TRUNCATE runs, deleting the table’s data. The table sticks around in case the user runs another query with the same fields. That’s cheaper than making it all over again.</p>\n<p>The same thing, deleting data rather than the table itself, happens when you explicitly use DESTROY in query text. That command doesn’t come in handy very often anyway. Maybe if the manager hangs around for a while and you’ve got a huge temporary table you’d like to empty sooner rather than later.</p>\n<p>The table is only deleted when the connection to the application server closes.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "deleting temporary tables 7 february 2019 · 1с a curious detail: closing a temporary tables manager doesn’t remove its tables from tempdb. it doesn’t matter whether you call close() yourself or let the manager object disappear when the method that created it finishes. in both cases, only truncate runs, deleting the table’s data. the table sticks around in case the user runs another query with the same fields. that’s cheaper than making it all over again. the same thing, deleting data rather than the table itself, happens when you explicitly use destroy in query text. that command doesn’t come in handy very often anyway. maybe if the manager hangs around for a while and you’ve got a huge temporary table you’d like to empty sooner rather than later. the table is only deleted when the connection to the application server closes.",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/string-concatenation\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                String Concatenation\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>27 January 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Like many companies, we give applicants a test assignment. It’s intentionally straightforward, mainly to see how well the candidate understands the platform and how carefully they work with configuration objects and code.</p>\n<p>One little thing we look at is how they put together a long message with lots of parameters in it. A developer can use StrTemplate() or StrConcat(), or simply concatenate strings. We mark that last option down a little: the user sees the same result, but the code makes it much harder to picture roughly what the message will look like.</p>\n<p>But there’s something else to it. In the first half of last year, Rarus published a <a href=\"http://techlab.rarus.ru/upload/iblock/2/185/Beeline-obespechenie-bespereboynoy-raboti.pdf\" rel=\"noopener noreferrer\" target=\"_blank\">report</a> about its work for Beeline. There’s lots of interesting stuff in there, but one bit floored me: dropping string concatenation cut CPU load by 40%! They didn’t even need those two extra servers anymore.</p>\n<p>The problem was that worker processes spent too much time allocating memory to concatenate strings. Joining two strings once isn’t going to hurt, but building a large query in a loop and doing it repeatedly can make the load snowball. Don’t use concatenation in those cases. The right tools are the same StrTemplate() or StrConcat(). On older platform versions without those methods, you can use a text document object: add lines to it, then retrieve the text.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "string concatenation 27 january 2019 · 1с work like many companies, we give applicants a test assignment. it’s intentionally straightforward, mainly to see how well the candidate understands the platform and how carefully they work with configuration objects and code. one little thing we look at is how they put together a long message with lots of parameters in it. a developer can use strtemplate() or strconcat(), or simply concatenate strings. we mark that last option down a little: the user sees the same result, but the code makes it much harder to picture roughly what the message will look like. but there’s something else to it. in the first half of last year, rarus published a report about its work for beeline. there’s lots of interesting stuff in there, but one bit floored me: dropping string concatenation cut cpu load by 40%! they didn’t even need those two extra servers anymore. the problem was that worker processes spent too much time allocating memory to concatenate strings. joining two strings once isn’t going to hurt, but building a large query in a loop and doing it repeatedly can make the load snowball. don’t use concatenation in those cases. the right tools are the same strtemplate() or strconcat(). on older platform versions without those methods, you can use a text document object: add lines to it, then retrieve the text.",
    "tags": [
      "1c",
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/incompiled-code\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Uncompiled Code\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>27 January 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Here’s something you might not expect: an external data processor runs noticeably slower than the exact same processor built into a configuration or extension. Its code has to be compiled again for every user, every time they run it. Built-in processors get compiled once for everyone. According to an <a href=\"https://kb.1c.ru/articleView.jsp?id=111\" rel=\"noopener noreferrer\" target=\"_blank\">article</a> in 1C’s knowledge base, this was outright catastrophic in platform 8.3.10. But a fifty-percent increase in CPU load in 8.3.13 isn’t exactly good news either.</p>\n<p>Storing code inside the infobase does the same thing, for example if you keep it in utility catalog attributes. Every time you run it, the platform fetches it from the database and compiles it. In <a href=\"https://firstbit.ae/products/erp-dubai/financial_management/\" rel=\"noopener noreferrer\" target=\"_blank\">our configuration</a>, for example, scheduled jobs can be created without changing metadata: add an item to a special catalog, load the code into it, and set its schedule.</p>\n<p>That’s more or less fine: scheduled jobs don’t usually run all that often, so compiling them probably won’t make a noticeable dent in the CPU. But the same catalog can also be used to run code automatically after pretty much any event, say saving a certain kind of document. If lots of users will be running that code all the time, move the logic into a common module method in an extension and leave only a call to that logic in the stored code.</p>\n<p>Or you could ditch stored code altogether and put the whole thing in an extension. It might be less flexible, but that’s still better than staring at a low APDEX later.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "uncompiled code 27 january 2019 · 1с here’s something you might not expect: an external data processor runs noticeably slower than the exact same processor built into a configuration or extension. its code has to be compiled again for every user, every time they run it. built-in processors get compiled once for everyone. according to an article in 1c’s knowledge base, this was outright catastrophic in platform 8.3.10. but a fifty-percent increase in cpu load in 8.3.13 isn’t exactly good news either. storing code inside the infobase does the same thing, for example if you keep it in utility catalog attributes. every time you run it, the platform fetches it from the database and compiles it. in our configuration , for example, scheduled jobs can be created without changing metadata: add an item to a special catalog, load the code into it, and set its schedule. that’s more or less fine: scheduled jobs don’t usually run all that often, so compiling them probably won’t make a noticeable dent in the cpu. but the same catalog can also be used to run code automatically after pretty much any event, say saving a certain kind of document. if lots of users will be running that code all the time, move the logic into a common module method in an extension and leave only a call to that logic in the stored code. or you could ditch stored code altogether and put the whole thing in an extension. it might be less flexible, but that’s still better than staring at a low apdex later.",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/trip-to-kok-kol\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                A Trip to Kok-Kol\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>6 January 2019</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"sport\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Sport</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>This summer, my friends and I traveled to the Mongolian border: by car to Tashanta, then by bicycle to <a href=\"http://rasulka.ru/ооо-расул---кок-коль.html\" rel=\"noopener noreferrer\" target=\"_blank\">Kok-Kol</a>. We were absolutely knackered, but it was worth it: the mountain views were incredible! Shame we didn’t see more wildlife. We didn’t even run into the plague-carrying ground squirrels everyone, including the border guards, kept promising us :-)</p>\n<iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/4HbJAdYQ-xM\" width=\"560\"></iframe>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "a trip to kok-kol 6 january 2019 · sport this summer, my friends and i traveled to the mongolian border: by car to tashanta, then by bicycle to kok-kol . we were absolutely knackered, but it was worth it: the mountain views were incredible! shame we didn’t see more wildlife. we didn’t even run into the plague-carrying ground squirrels everyone, including the border guards, kept promising us :-)",
    "tags": [
      "sport"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/ampersand-sign-in-1c\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                The Ampersand in 1C\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>27 December 2018</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>For ampersands in labels, the platform does the usual Windows thing: the ampersand itself disappears, and the following character becomes a keyboard shortcut for the action associated with the label, such as a command handler or a control event.</p>\n<p>The example below shows up as “Project Costing.” The “P” is underlined and becomes the shortcut key; if this is a command title, for example, you can run it with Alt + P.</p>\n<pre><code>ТекстНадписи = \"&amp;Project Costing\";\n</code></pre>\n<p>The only catch is when you want an actual ampersand in the label. Then you need to double it: the example below will appear as “Project P&amp;L.” No shortcut keys will be created.</p>\n<pre><code>ТекстНадписи = \"Project P&amp;&amp;L\";\n</code></pre>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "the ampersand in 1c 27 december 2018 · 1с for ampersands in labels, the platform does the usual windows thing: the ampersand itself disappears, and the following character becomes a keyboard shortcut for the action associated with the label, such as a command handler or a control event. the example below shows up as “project costing.” the “p” is underlined and becomes the shortcut key; if this is a command title, for example, you can run it with alt + p. текстнадписи = \"&project costing\"; the only catch is when you want an actual ampersand in the label. then you need to double it: the example below will appear as “project p&l.” no shortcut keys will be created. текстнадписи = \"project p&&l\";",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/valve-in-a-china-shop\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Like Valve in a China Shop\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>10 December 2018</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>The folks at Valve keep teasing fans of their games, whether out of habit or because someone there really thinks it’s a great way to stay in people’s minds.</p>\n<p>Sure, we all know where things stand with Valve making games. Few people seriously expect Half-Life 3 or, say, a Portal sequel. Still, I can’t help smiling at the effortless grace of Valve dealing with its fans. Like a bull in a china shop.</p>\n<p><a href=\"https://twitter.com/retropcan/status/1072013105515913216\" rel=\"noopener noreferrer\" target=\"_blank\"><img alt=\"Tweet\" src=\"https://kostyanetsky.me/notes/valve-in-a-china-shop/snap-tweet-retropcan-1072013105515913216.png\"/></a></p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "like valve in a china shop 10 december 2018 · videogames the folks at valve keep teasing fans of their games, whether out of habit or because someone there really thinks it’s a great way to stay in people’s minds. sure, we all know where things stand with valve making games. few people seriously expect half-life 3 or, say, a portal sequel. still, i can’t help smiling at the effortless grace of valve dealing with its fans. like a bull in a china shop.",
    "tags": [
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/snowboard-effect\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Snowboard Effect\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>1 December 2018</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"sport\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Sport</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p><a href=\"https://kostyanetsky.me/notes/snowboard-effect/standing.jpg\" rel=\"noopener noreferrer\" target=\"_blank\"><img alt=\"Standing!\" src=\"https://kostyanetsky.me/notes/snowboard-effect/standing-thumbnail.jpg\"/></a> <a href=\"https://kostyanetsky.me/notes/snowboard-effect/sitting.jpg\" rel=\"noopener noreferrer\" target=\"_blank\"><img alt=\"Sitting!\" src=\"https://kostyanetsky.me/notes/snowboard-effect/sitting-thumbnail.jpg\"/></a></p>\n<p>You're sliding down the side of a mountain and trying to feel an equilibrium point, for the hundredth time. However, your nagging back is the only thing you're able to feel, and the Vaas speech from Far Cry 3 isn't going out of your mind.</p>\n<blockquote>\n<p>Did I ever tell you what the definition of insanity is? Insanity is doing the exact… Same fucking thing… Over and over again expecting… Shit to change… That. Is. Crazy.</p>\n<p><em>― Vaas Montenegro, Far Cry 3</em></p>\n</blockquote>\n<p>Surprisingly, you're certainly satisfied with the trip when it's done.</p>\n<p>There's some kind of magic in it.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "snowboard effect 1 december 2018 · sport you're sliding down the side of a mountain and trying to feel an equilibrium point, for the hundredth time. however, your nagging back is the only thing you're able to feel, and the vaas speech from far cry 3 isn't going out of your mind. did i ever tell you what the definition of insanity is? insanity is doing the exact… same fucking thing… over and over again expecting… shit to change… that. is. crazy. ― vaas montenegro, far cry 3 surprisingly, you're certainly satisfied with the trip when it's done. there's some kind of magic in it.",
    "tags": [
      "sport"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/set-new-object-ref\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                A New Object’s Reference\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>29 November 2018</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>A unique identifier is a convenient way to match objects across configurations, for example when transferring invoices from one infobase to another. How can the receiving infobase tell whether an invoice has already been loaded? The first idea is simply to find the object by UUID:</p>\n<pre><code>ИнвойсЗагружен = Документы.Инвойс.ПолучитьСсылку(UUID).Пустая();\n</code></pre>\n<p>Sometimes, though, unique identifiers are used to link objects within the same configuration. Maybe the task won’t let us add a regular reference attribute, so document A can’t point straight to document B. Or perhaps we create a catalog item based on a document and want a direct link between them, assigning the item a reference obtained from the document’s unique identifier. The platform guarantees identifier uniqueness within a table, so such tricks are perfectly safe.</p>\n<p>My point is: use SetNewObjectRef() carefully! Check whether a reference has already been assigned before your code runs:</p>\n<pre><code>СсылкаЗадана = ПолучитьСсылкуНового().Пустая();\n</code></pre>\n<p>If there’s already a reference, deal with it: leave it alone if that works for your task, or throw an exception. Otherwise, you can break the links between your data, and good luck tracking that down. Or even noticing it.</p>\n<p>This works both ways, of course: some other code, such as an object event handler or subscription, might overwrite the reference you assigned. Testing is the only reliable way to catch that.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "a new object’s reference 29 november 2018 · 1с a unique identifier is a convenient way to match objects across configurations, for example when transferring invoices from one infobase to another. how can the receiving infobase tell whether an invoice has already been loaded? the first idea is simply to find the object by uuid: инвойсзагружен = документы.инвойс.получитьссылку(uuid).пустая(); sometimes, though, unique identifiers are used to link objects within the same configuration. maybe the task won’t let us add a regular reference attribute, so document a can’t point straight to document b. or perhaps we create a catalog item based on a document and want a direct link between them, assigning the item a reference obtained from the document’s unique identifier. the platform guarantees identifier uniqueness within a table, so such tricks are perfectly safe. my point is: use setnewobjectref() carefully! check whether a reference has already been assigned before your code runs: ссылказадана = получитьссылкунового().пустая(); if there’s already a reference, deal with it: leave it alone if that works for your task, or throw an exception. otherwise, you can break the links between your data, and good luck tracking that down. or even noticing it. this works both ways, of course: some other code, such as an object event handler or subscription, might overwrite the reference you assigned. testing is the only reliable way to catch that.",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/distributed-design\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Distributed Design\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>20 October 2018</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>A designer at Stack Overflow <a href=\"http://www.tedgoas.com/blog/distributed-design\" rel=\"noopener noreferrer\" target=\"_blank\">wrote</a> about how they organize remote work. I liked the structure: it doesn’t just say “here’s how we do it,” but pairs each problem with a solution.</p>\n<p>Almost all development at our company is remote, and I work remotely too. I really like working this way; the main thing is remembering how easy it is to pick up unexpected problems when your workplace and your home are the same place. Take the advice to drink water and get some sun: during a crunch, those things really are easy to forget.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "distributed design 20 october 2018 · work a designer at stack overflow wrote about how they organize remote work. i liked the structure: it doesn’t just say “here’s how we do it,” but pairs each problem with a solution. almost all development at our company is remote, and i work remotely too. i really like working this way; the main thing is remembering how easy it is to pick up unexpected problems when your workplace and your home are the same place. take the advice to drink water and get some sun: during a crunch, those things really are easy to forget.",
    "tags": [
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/ideal-pronunciation\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Perfect Pronunciation\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>15 October 2018</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"english\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">English</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p><a href=\"https://twitter.com/vanswan/status/1051001827104178177\" rel=\"noopener noreferrer\" target=\"_blank\"><img alt=\"Tweet\" src=\"https://kostyanetsky.me/notes/ideal-pronunciation/snap-tweet-vanswan-1051001827104178177.png\"/></a></p>\n<p>A Bloomberg engineer told me much the same thing several years ago. We were writing an application for a client to track share prices automatically and had run into a pile of problems: Bloomberg provides a powerful but rather complicated API for working with financial instruments.</p>\n<p>Eventually, we contacted technical support, and after a few messages, the engineer suggested a voice call. I was quite embarrassed and said that, well, we could, but “my English isn’t fluent enough.” He just shrugged: they were used to it. Everyone uses English, and everyone puts their own spin on it. Where I put the stress in a word was the last thing on his mind, as long as he could follow what I was saying.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "perfect pronunciation 15 october 2018 · english a bloomberg engineer told me much the same thing several years ago. we were writing an application for a client to track share prices automatically and had run into a pile of problems: bloomberg provides a powerful but rather complicated api for working with financial instruments. eventually, we contacted technical support, and after a few messages, the engineer suggested a voice call. i was quite embarrassed and said that, well, we could, but “my english isn’t fluent enough.” he just shrugged: they were used to it. everyone uses english, and everyone puts their own spin on it. where i put the stress in a word was the last thing on his mind, as long as he could follow what i was saying.",
    "tags": [
      "english"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/non-judgmental-attitude\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                A Principle of Non-Judgemental Attitude\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>2 September 2018</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"meanwhile\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Meanwhile</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>There is a good <a href=\"http://maximilyahov.ru/blog/all/mne-ok/\" rel=\"noopener noreferrer\" target=\"_blank\">note</a> from Maxim Ilyahov about a way of analyzing something which doesn't concern you but annoys you anyway. It's reminded me of an American principle of non-judgemental attitude which I read about a couple of years ago. As for me, it uses different words to make the same point.</p>\n<p>By the way, this principle presents in Russia too — there is even a famous adage “don't be judgemental so you won't be judged”. What a pity for us that it isn't so widespread yet.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "a principle of non-judgemental attitude 2 september 2018 · meanwhile there is a good note from maxim ilyahov about a way of analyzing something which doesn't concern you but annoys you anyway. it's reminded me of an american principle of non-judgemental attitude which i read about a couple of years ago. as for me, it uses different words to make the same point. by the way, this principle presents in russia too — there is even a famous adage “don't be judgemental so you won't be judged”. what a pity for us that it isn't so widespread yet.",
    "tags": [
      "meanwhile"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/rights-for-dcs\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                DCS and View Rights\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>28 August 2018</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>The Data Composition System goes by the rule “if the user can’t view it, it might as well not exist.” Sometimes that leads to some pretty weird behavior. For a nice simple textbook report, it works fine: if the user lacks view rights for a catalog, for example, that catalog won’t appear in the report. Real examples can be more complicated, though.</p>\n<p>A couple of weeks ago, I was debugging a report that produced a seemingly clear error when generated:</p>\n<p><img alt=\"Your settings are wrong, comrade!\" src=\"https://kostyanetsky.me/notes/rights-for-dcs/ru.png\"/></p>\n<p>The report is enormous: a query of a good thousand lines, complex settings, a huge template, and tangled composition code. We first suspected a settings error, but the investigation quickly led from a currency reference in the dataset to a constant holding that currency at the report’s lowest level. The user had no view rights for that constant.</p>\n<p>I couldn’t tell you exactly what threw the platform off and made the error so unhelpful. Maybe it was what we did with the temporary table holding the constant. Maybe it was reading it inside a CASE expression. Or maybe it was that we had all the rights we needed for the currency catalog itself. I didn’t dig around to find the exact trigger. I think it’s simply an implementation detail of the DCS engine that may change between versions. Just keep view rights in mind, and you can avoid the problem.</p>\n<p>If you encounter the error, try generating the problematic report with full rights. If that works, list the tables from which it reads data and check that both read and view rights are granted for all of them.</p>\n<p>Tedious, but it can save a lot of time.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "dcs and view rights 28 august 2018 · 1с done the data composition system goes by the rule “if the user can’t view it, it might as well not exist.” sometimes that leads to some pretty weird behavior. for a nice simple textbook report, it works fine: if the user lacks view rights for a catalog, for example, that catalog won’t appear in the report. real examples can be more complicated, though. a couple of weeks ago, i was debugging a report that produced a seemingly clear error when generated: the report is enormous: a query of a good thousand lines, complex settings, a huge template, and tangled composition code. we first suspected a settings error, but the investigation quickly led from a currency reference in the dataset to a constant holding that currency at the report’s lowest level. the user had no view rights for that constant. i couldn’t tell you exactly what threw the platform off and made the error so unhelpful. maybe it was what we did with the temporary table holding the constant. maybe it was reading it inside a case expression. or maybe it was that we had all the rights we needed for the currency catalog itself. i didn’t dig around to find the exact trigger. i think it’s simply an implementation detail of the dcs engine that may change between versions. just keep view rights in mind, and you can avoid the problem. if you encounter the error, try generating the problematic report with full rights. if that works, list the tables from which it reads data and check that both read and view rights are granted for all of them. tedious, but it can save a lot of time.",
    "tags": [
      "1c",
      "done"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/jaina\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Beware the Daughter of the Sea\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>29 Jule 2018</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Natalia O'Shea has sung a Jaina's song in a Russian version of a trailer for a future update of World of Warcraft. As for me, she's extraordinary good in it — I mean, she knows how to make a proper mood and season a speech with steel.</p>\n<iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/5j-S448XC8k\" width=\"560\"></iframe>\n<p>By the way, speaking about her and “Melnitsa” as a whole thing — all of their most powerful songs are about something particular. We were at a concert dedicated to the “Luciferase” release and it's hard to compare, seriously. Perhaps, I didn't know something essential to understanding a context, but sometimes it was even barely possible to figure out a story which I was hearing.</p>\n<p>Just watch a video I posted under. You don't need to know something special about the World of Warcraft universe, do you? For example, I haven't played WoW and not planning to do it, but the end of the song literally creeps me out :-)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "beware the daughter of the sea 29 jule 2018 · videogames natalia o'shea has sung a jaina's song in a russian version of a trailer for a future update of world of warcraft. as for me, she's extraordinary good in it — i mean, she knows how to make a proper mood and season a speech with steel. by the way, speaking about her and “melnitsa” as a whole thing — all of their most powerful songs are about something particular. we were at a concert dedicated to the “luciferase” release and it's hard to compare, seriously. perhaps, i didn't know something essential to understanding a context, but sometimes it was even barely possible to figure out a story which i was hearing. just watch a video i posted under. you don't need to know something special about the world of warcraft universe, do you? for example, i haven't played wow and not planning to do it, but the end of the song literally creeps me out :-)",
    "tags": [
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/hpmor-printing\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                HPMoR Printing\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>22 Jule 2018</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"books\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Books</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Perhaps you already know that Eliezer Yudkowsky's “Methods of Rationality” in Russian is going to be published as a standard book (thanks to “Evolution” and other information partners), but I still want to remind again.</p>\n<p>The book is really good, I had <a href=\"https://kostyanetsky.me/notes/hpmor\" rel=\"noopener noreferrer\" target=\"_blank\">written</a> about it a couple of years ago. It teaches useful things in such an attractive way that it's really hard to stop reading. The whole text is in public access, but if you want a hard copy — you can <a href=\"https://planeta.ru/campaigns/hpmor\" rel=\"noopener noreferrer\" target=\"_blank\">make a request</a> now.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "hpmor printing 22 jule 2018 · books perhaps you already know that eliezer yudkowsky's “methods of rationality” in russian is going to be published as a standard book (thanks to “evolution” and other information partners), but i still want to remind again. the book is really good, i had written about it a couple of years ago. it teaches useful things in such an attractive way that it's really hard to stop reading. the whole text is in public access, but if you want a hard copy — you can make a request now.",
    "tags": [
      "books"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/fce-results\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                FCE Results\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>15 Jule 2018</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"books\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Books</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"english\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">English</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Cambridge just sent me results of my FCE exam in June and — dramatic drum roll — I passed it! According to the statement of results, I made a bunch of mistakes in writing tasks but particularly took it out during a Speaking test. It's a pity that examiners don't give comments and reasons so it's hard to estimate the results properly; however, it's quite clear what to do next :) My English teacher said that Cambridge used to provide an overall score only earlier and it sounded like “take it any way you want, dear pretenders”.</p>\n<p>Well, I guess I should begin my preparation for CAE in the next year.</p>\n<p>Speaking about languages, I remembered Feynman with his famous “Surely You're Joking”. Among many things, he told that he learned to play on a frigideira when he lived in Brazil and had reached so high level of skill that he served as a model for local musicians.</p>\n<blockquote>\n<p>My theory is that it's like a person who speaks French who comes to America. At first they're making all kinds of mistakes, and you can hardly understand them. Then they keep on practicing until they speak rather well, and you find there's a delightful twist to their way of speaking their accent is rather nice, and you love to listen to it.</p>\n<p><em>― Richard Feynman, ”Surely You're Joking, Mr. Feynman!”</em></p>\n</blockquote>\n<p>As for me, there is a lot of efforts between “all kinds of mistakes” and “love to listen”, but it is such a good synopsis. Working on it!</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "fce results 15 jule 2018 · books english cambridge just sent me results of my fce exam in june and — dramatic drum roll — i passed it! according to the statement of results, i made a bunch of mistakes in writing tasks but particularly took it out during a speaking test. it's a pity that examiners don't give comments and reasons so it's hard to estimate the results properly; however, it's quite clear what to do next :) my english teacher said that cambridge used to provide an overall score only earlier and it sounded like “take it any way you want, dear pretenders”. well, i guess i should begin my preparation for cae in the next year. speaking about languages, i remembered feynman with his famous “surely you're joking”. among many things, he told that he learned to play on a frigideira when he lived in brazil and had reached so high level of skill that he served as a model for local musicians. my theory is that it's like a person who speaks french who comes to america. at first they're making all kinds of mistakes, and you can hardly understand them. then they keep on practicing until they speak rather well, and you find there's a delightful twist to their way of speaking their accent is rather nice, and you love to listen to it. ― richard feynman, ”surely you're joking, mr. feynman!” as for me, there is a lot of efforts between “all kinds of mistakes” and “love to listen”, but it is such a good synopsis. working on it!",
    "tags": [
      "books",
      "english"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/kona\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Kona\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>29 May 2018</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/M6KizfrASRY\" width=\"560\"></iframe>\n<p>There’s plenty here that did its best to keep me interested: there are places to explore, things to read, things to think about, and sights to see. If you value that in games, you might like it. Almost nothing interrupts the walking and thinking: it’s pretty hard to get yourself killed. So is getting lost: the protagonist has a map and a car, and later you can get a snowmobile too.</p>\n<p>But the story really disappointed me. It starts with an intriguing mystery, but before that can go anywhere, it all dissolves into supernatural stuff. Fine, except the mystery goes out the window with it. Why look for clues, form theories, or worry about anything? Unexplained visions from nowhere will tell and show you everything that happened. Before long, you catch yourself sharing the hero’s weary shrug at all the weirdness around him.</p>\n<p>Meanwhile, the mystical side of the plot has gaping holes of its own. The tragedy becomes more or less clear toward the end, yes, but even the final, most complete vision raises a whole host of questions that nobody bothers to answer. The plot is a lot like the game’s map: it looks complete, but in practice you can access at most half of it, with the rest brushed aside under a plainly visible “well, because magic, that’s how magic works, you see?”</p>\n<p>No, damn it, I don’t.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "kona 29 may 2018 · videogames there’s plenty here that did its best to keep me interested: there are places to explore, things to read, things to think about, and sights to see. if you value that in games, you might like it. almost nothing interrupts the walking and thinking: it’s pretty hard to get yourself killed. so is getting lost: the protagonist has a map and a car, and later you can get a snowmobile too. but the story really disappointed me. it starts with an intriguing mystery, but before that can go anywhere, it all dissolves into supernatural stuff. fine, except the mystery goes out the window with it. why look for clues, form theories, or worry about anything? unexplained visions from nowhere will tell and show you everything that happened. before long, you catch yourself sharing the hero’s weary shrug at all the weirdness around him. meanwhile, the mystical side of the plot has gaping holes of its own. the tragedy becomes more or less clear toward the end, yes, but even the final, most complete vision raises a whole host of questions that nobody bothers to answer. the plot is a lot like the game’s map: it looks complete, but in practice you can access at most half of it, with the rest brushed aside under a plainly visible “well, because magic, that’s how magic works, you see?” no, damn it, i don’t.",
    "tags": [
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/message-to-user\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Message to User\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>30 April 2018</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>1C:Enterprise has a convenient and accustomed method of showing information for a user — it's a UserMessage object. It outputs messages at the bottom of a form and suddenly it's a potential problem. The thing is, most users don't look at it. It's like: well, I see no critical errors for now so there is nothing to worry about.</p>\n<p>Therefore, in case an error happens or you just have an essential message, you should show it through a dialogue window — by the ShowQueryBox() method or a ShowMessageBox() method, for example. Otherwise, a user may not notice a problem and continue to work in spite of some action might not be executed or might be executed in a wrong way. The issue will come out later and you will be rightfully blamed for it.</p>\n<p>In addition, using of a UserMessage object should be prohibited in case of small service forms. Yes, in fact, it's hard to overlook a text if a window is small, but that's a different matter: the messages below literally <a href=\"https://kostyanetsky.me/notes/message-to-user/en.png\" rel=\"noopener noreferrer\" target=\"_blank\">devour</a> form's workspace and it becomes hard to work with.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "message to user 30 april 2018 · 1с 1c:enterprise has a convenient and accustomed method of showing information for a user — it's a usermessage object. it outputs messages at the bottom of a form and suddenly it's a potential problem. the thing is, most users don't look at it. it's like: well, i see no critical errors for now so there is nothing to worry about. therefore, in case an error happens or you just have an essential message, you should show it through a dialogue window — by the showquerybox() method or a showmessagebox() method, for example. otherwise, a user may not notice a problem and continue to work in spite of some action might not be executed or might be executed in a wrong way. the issue will come out later and you will be rightfully blamed for it. in addition, using of a usermessage object should be prohibited in case of small service forms. yes, in fact, it's hard to overlook a text if a window is small, but that's a different matter: the messages below literally devour form's workspace and it becomes hard to work with.",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/these-nasty-smartphones\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                These Nasty Smartphones\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>31 Marth 2018</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"meanwhile\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Meanwhile</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p><img alt=\"Society\" src=\"https://kostyanetsky.me/notes/these-nasty-smartphones/drawing.png\"/></p>\n<p>The artist is <a href=\"https://www.patreon.com/adamtots\" rel=\"noopener noreferrer\" target=\"_blank\">Adam Ellis</a>.</p>\n<p>As for me, it's a great illustration for an everlasting moan “why do you always stare at your smartphone blah blah blah”. A reason is quite simple: people have their friends, books, podcasts, games, and YouTube in their smartphones. It's much more fun than a frowning man or a grim women with guru syndrome next to them, for example.</p>\n<p>The same is true of children. Social networks are full of arguments about it, but a reason is still the same: if a teenager flips through pictures in his phone in front of you, you bore him and a problem obviously is you.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "these nasty smartphones 31 marth 2018 · meanwhile the artist is adam ellis . as for me, it's a great illustration for an everlasting moan “why do you always stare at your smartphone blah blah blah”. a reason is quite simple: people have their friends, books, podcasts, games, and youtube in their smartphones. it's much more fun than a frowning man or a grim women with guru syndrome next to them, for example. the same is true of children. social networks are full of arguments about it, but a reason is still the same: if a teenager flips through pictures in his phone in front of you, you bore him and a problem obviously is you.",
    "tags": [
      "meanwhile"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/double-i\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Double “i”\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>9 Marth 2018</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"english\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">English</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I was trying to understand how to transliterate my surname properly yesterday. Ministry of Foreign Affairs says it should be written as “Kostianetskii” in English — with double “i” at the end. It's the quite rare combination: “skiing” is the only frequency word that I'm able to remember.</p>\n<p>It caused my curiosity and I googled it. The possible reason I came across is funny: cursive writing! Double “i” looks well only on a computer screen but it suddenly turns into “u” when you try to write it on paper.</p>\n<p>More details are <a href=\"https://spellingisnotcrazy.weebly.com/blog/category/the-letter-i\" rel=\"noopener noreferrer\" target=\"_blank\">here</a>.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "double “i” 9 marth 2018 · english i was trying to understand how to transliterate my surname properly yesterday. ministry of foreign affairs says it should be written as “kostianetskii” in english — with double “i” at the end. it's the quite rare combination: “skiing” is the only frequency word that i'm able to remember. it caused my curiosity and i googled it. the possible reason i came across is funny: cursive writing! double “i” looks well only on a computer screen but it suddenly turns into “u” when you try to write it on paper. more details are here .",
    "tags": [
      "english"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/different-sides-of-one-coin\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Different Sides of One Coin\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>5 Marth 2018</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p><img alt=\"Hi!\" src=\"https://kostyanetsky.me/notes/different-sides-of-one-coin/en.png\"/></p>\n<p>Feedback is one of the coolest things in my work. It's not my first year of programming and I've written a lot of tools, mechanics and interfaces. However, ever complicated mechanism working as it should is… I don't know. It's like hearing “yes” on a graduation party, again and again :-)</p>\n<p>It partially compensates another side of the coin. I mean a case when you are trying to understand one hundred levels of some application's abstraction for the hundredth time, again and again, through a lot of mistakes. Meanwhile, it's 2 a.m. already and coffee had replaced blood in your veins ages ago.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "different sides of one coin 5 marth 2018 · work feedback is one of the coolest things in my work. it's not my first year of programming and i've written a lot of tools, mechanics and interfaces. however, ever complicated mechanism working as it should is… i don't know. it's like hearing “yes” on a graduation party, again and again :-) it partially compensates another side of the coin. i mean a case when you are trying to understand one hundred levels of some application's abstraction for the hundredth time, again and again, through a lot of mistakes. meanwhile, it's 2 a.m. already and coffee had replaced blood in your veins ages ago.",
    "tags": [
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/papers-please-short-film\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Your Papers, Please\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>1 Marth 2018</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/YFHHGETsxkE\" width=\"560\"></iframe>\n<p>A great adaptation of <a href=\"https://store.steampowered.com/app/239030/Papers_Please/\" rel=\"noopener noreferrer\" target=\"_blank\">Papers, Please</a>, despite being only ten minutes long. Savochkin is excellent, and everyone else delivers too, including the screenwriter. Fitting both drama and a plot twist into that running time takes skill.</p>\n<p>Considering that video game adaptations rarely set the world on fire, this one’s a real gem.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "your papers, please 1 marth 2018 · videogames a great adaptation of papers, please , despite being only ten minutes long. savochkin is excellent, and everyone else delivers too, including the screenwriter. fitting both drama and a plot twist into that running time takes skill. considering that video game adaptations rarely set the world on fire, this one’s a real gem.",
    "tags": [
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/why-so-serious\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Why So Serious?\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>17 February 2018</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Sometimes when you developing some complex mechanic you don't have enough time time for the adequate naming of variables. As a result, there is a lot of mysterious WhatTheHeck, ApplyMagic and bunch of other LivingFailures.</p>\n<p>It's what you should avoid despite it looks funny. You'll rewrite code you've written month or two later and it will be hard to shame its author because it is you.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "why so serious? 17 february 2018 · 1с sometimes when you developing some complex mechanic you don't have enough time time for the adequate naming of variables. as a result, there is a lot of mysterious whattheheck, applymagic and bunch of other livingfailures. it's what you should avoid despite it looks funny. you'll rewrite code you've written month or two later and it will be hard to shame its author because it is you.",
    "tags": [
      "1c"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/white-day\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                White Day\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>17 January 2018</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/VRiYZbAmun4\" width=\"560\"></iframe>\n<p>This horror game may be niche, but it really is rather good. The atmosphere of a school at night, filled with dark secrets, works brilliantly. Tension rarely lets up, and the game keeps surprising you where you least expect it. I’m an old hand at the genre and still jumped more than once.</p>\n<p>The plot changes depending on the player’s actions, so reaching the end of the story takes more than one playthrough. I think it’s worth it. The antagonist alone is a good reason: you don’t often get one who’s more interesting, appealing, and tragic than the heroes and everyone else put together.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "white day 17 january 2018 · videogames this horror game may be niche, but it really is rather good. the atmosphere of a school at night, filled with dark secrets, works brilliantly. tension rarely lets up, and the game keeps surprising you where you least expect it. i’m an old hand at the genre and still jumped more than once. the plot changes depending on the player’s actions, so reaching the end of the story takes more than one playthrough. i think it’s worth it. the antagonist alone is a good reason: you don’t often get one who’s more interesting, appealing, and tragic than the heroes and everyone else put together.",
    "tags": [
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/bus-trips-uploading\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Exporting Bus Schedules\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>17 November 2017</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"done\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Done</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Ever since my colleagues and I redid the automation at <a href=\"http://kpat.ru/\" rel=\"noopener noreferrer\" target=\"_blank\">KPAT</a>, it has been running on <a href=\"http://avibus.pro/standalone/\" rel=\"noopener noreferrer\" target=\"_blank\">Bus Terminal Management</a>. It’s a 1C:Enterprise configuration, so hooking it up to pretty much anything is fairly quick.</p>\n<p>First up, we wanted to send the bus schedules to E-Traffic and Yandex Schedules.</p>\n<h2>What Are These Services?</h2>\n<p>The first, <a href=\"http://e-traffic.ru\" rel=\"noopener noreferrer\" target=\"_blank\">E-Traffic</a>, is Russia’s largest aggregator of bus terminal data. It collects information about scheduled departures and acts as an electronic ticket agent. Passengers don’t have to fight their way through individual bus terminal websites: E-Traffic lets them buy a ticket from anywhere to anywhere.</p>\n<p>As for <a href=\"http://rasp.yandex.ru\" rel=\"noopener noreferrer\" target=\"_blank\">Yandex Schedules</a>, it’s one of the Russian search engine’s side projects. Like E-Traffic, it’s mainly for passengers, and it can quickly put together fairly complicated routes with transfers. It doesn’t sell tickets, though.</p>\n<h2>How Did We Build the Export?</h2>\n<p>At first, we built a fairly elaborate setup to send schedules to both systems. We worked our asses off, until a conversation revealed that E-Traffic already knew how to pass schedules on to Yandex. Just like that, half the job disappeared.</p>\n<p>On the technical side, we made a web service for Bus Terminal Management. E-Traffic sent a SOAP request, the service gathered the bus schedule data from the 1C:Enterprise infobase, and back came some XML.</p>\n<p>We didn’t even have to write code to fetch schedules from every terminal in the KPAT network: all schedules are created and stored in one place, the main node of the distributed infobase, and that’s where we deployed the web service. In the end, coordination took longer than programming.</p>\n<h2>Where Can You See It?</h2>\n<p>The inner workings aren’t visible from outside, and there’s nothing unusual there anyway: robots talking to robots, big deal :-) The result of their chatter is much more interesting! For example, here’s today’s <a href=\"https://rasp.yandex.ru/search/bus/?fromName=Кемерово&amp;toName=Новокузнецк&amp;fromId=c64&amp;toId=c237&amp;when=сегодня\" rel=\"noopener noreferrer\" target=\"_blank\">schedule</a> from Kemerovo to Novokuznetsk.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "exporting bus schedules 17 november 2017 · 1с done work ever since my colleagues and i redid the automation at kpat , it has been running on bus terminal management . it’s a 1c:enterprise configuration, so hooking it up to pretty much anything is fairly quick. first up, we wanted to send the bus schedules to e-traffic and yandex schedules. what are these services? the first, e-traffic , is russia’s largest aggregator of bus terminal data. it collects information about scheduled departures and acts as an electronic ticket agent. passengers don’t have to fight their way through individual bus terminal websites: e-traffic lets them buy a ticket from anywhere to anywhere. as for yandex schedules , it’s one of the russian search engine’s side projects. like e-traffic, it’s mainly for passengers, and it can quickly put together fairly complicated routes with transfers. it doesn’t sell tickets, though. how did we build the export? at first, we built a fairly elaborate setup to send schedules to both systems. we worked our asses off, until a conversation revealed that e-traffic already knew how to pass schedules on to yandex. just like that, half the job disappeared. on the technical side, we made a web service for bus terminal management. e-traffic sent a soap request, the service gathered the bus schedule data from the 1c:enterprise infobase, and back came some xml. we didn’t even have to write code to fetch schedules from every terminal in the kpat network: all schedules are created and stored in one place, the main node of the distributed infobase, and that’s where we deployed the web service. in the end, coordination took longer than programming. where can you see it? the inner workings aren’t visible from outside, and there’s nothing unusual there anyway: robots talking to robots, big deal :-) the result of their chatter is much more interesting! for example, here’s today’s schedule from kemerovo to novokuznetsk.",
    "tags": [
      "1c",
      "done",
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/sebby-x-player\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Sebby x Player\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>14 August 2017</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"english\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">English</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I have <a href=\"https://acomics.ru/~sebby-x-player\" rel=\"noopener noreferrer\" target=\"_blank\">translated</a> Stardew Valley fan manga on a wave of enthusiasm at the end of July (SV is an enormously addictive farmer simulator which <a href=\"https://store.steampowered.com/app/413150/Stardew_Valley/\" rel=\"noopener noreferrer\" target=\"_blank\">went out</a> a couple of years ago).</p>\n<p>It was an amusing experience. Firstly, an author of the manga is Chinese and her work was already translated from Chinese to English. I'm not sure what was the bigger problem — cultural differences or language skills, but several frames were a bit difficult to understand what's going on. Secondly, I've figured out that it's a real challenge to pick proper Russian words and not to get something like a quote from an official government's letter in the end.</p>\n<p>So, a part of sense had lost during the process, I guess, although I tried to keep everything I could and even had a word with the author in order to solve the most problematic cases. It was quite funny — I don't know Chinese, she doesn't know Russian, so our a bit poor English was the only way to understand each other.</p>\n<p>Something could have been translated better, I suppose, and several pictures definitely could have been changed more accurately. But you know what? Hell it out, perfection is a cruel mistress and I like the result yet. Yeah, there is no big deal or something like it — a drawing style is quite common, a plot has no significant differences with the game, but… I don't know. Perhaps, visual novels made a too sentimental son of a bitch out of me :-)</p>\n<p>Thanks to <a href=\"https://vk.com/id54890849\" rel=\"noopener noreferrer\" target=\"_blank\">Alice</a> for helping me with image processing, <a href=\"https://twitter.com/amish77kin\" rel=\"noopener noreferrer\" target=\"_blank\">Lem</a> for helping me with the translation and <a href=\"https://vk.com/mahrunteka\" rel=\"noopener noreferrer\" target=\"_blank\">Marika</a> for the inspiration. And, sure, thanks to <a href=\"https://curayukie.deviantart.com\" rel=\"noopener noreferrer\" target=\"_blank\">Quantus</a> for the manga.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "sebby x player 14 august 2017 · english videogames i have translated stardew valley fan manga on a wave of enthusiasm at the end of july (sv is an enormously addictive farmer simulator which went out a couple of years ago). it was an amusing experience. firstly, an author of the manga is chinese and her work was already translated from chinese to english. i'm not sure what was the bigger problem — cultural differences or language skills, but several frames were a bit difficult to understand what's going on. secondly, i've figured out that it's a real challenge to pick proper russian words and not to get something like a quote from an official government's letter in the end. so, a part of sense had lost during the process, i guess, although i tried to keep everything i could and even had a word with the author in order to solve the most problematic cases. it was quite funny — i don't know chinese, she doesn't know russian, so our a bit poor english was the only way to understand each other. something could have been translated better, i suppose, and several pictures definitely could have been changed more accurately. but you know what? hell it out, perfection is a cruel mistress and i like the result yet. yeah, there is no big deal or something like it — a drawing style is quite common, a plot has no significant differences with the game, but… i don't know. perhaps, visual novels made a too sentimental son of a bitch out of me :-) thanks to alice for helping me with image processing, lem for helping me with the translation and marika for the inspiration. and, sure, thanks to quantus for the manga.",
    "tags": [
      "english",
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/stardew-valley\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Stardew Valley\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>1 August 2017</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/ot7uXNQskhs\" width=\"560\"></iframe>\n<p>An incredibly addictive farming simulator made with enormous attention to detail. People who know what they’re talking about will tell you about the soundtrack, the lovely pixel art, and all that. I’m no good at that stuff. I just bloody loved it, that’s all :-)</p>\n<p>Actually, I will say something about the soundtrack. During winter, the game sometimes plays <a href=\"https://www.youtube.com/watch?v=Zr-PHm_qLgg\" rel=\"noopener noreferrer\" target=\"_blank\">Ancient</a>, one of the simplest yet most atmospheric melodies I’ve ever heard in a video game.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "stardew valley 1 august 2017 · videogames an incredibly addictive farming simulator made with enormous attention to detail. people who know what they’re talking about will tell you about the soundtrack, the lovely pixel art, and all that. i’m no good at that stuff. i just bloody loved it, that’s all :-) actually, i will say something about the soundtrack. during winter, the game sometimes plays ancient , one of the simplest yet most atmospheric melodies i’ve ever heard in a video game.",
    "tags": [
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/layers-of-fear\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Layers of Fear\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>6 Jule 2017</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/CyDs5UJfvks\" width=\"560\"></iframe>\n<p>A mixed bag. On one hand, it does a vivid, colorful job of showing madness from the inside. The plot is generally decent, though at some point the ending becomes predictable.</p>\n<p>On the other, it’s fantastically linear, with almost no challenge or logic to events. The story is told by a madman, inside his mind, and that leaves its mark on the gameplay: you can’t predict what you’re supposed to do in the next room.</p>\n<p>So you wander around looking for triggers, trying to make sense of whatever weird thing comes next. A melting phone? Exploding clocks? Now and then, something really gets to you, like the letters between the hero and his wife. Those moments are rare, and they feel like a breath of fresh air.</p>\n<p>Overall, I don’t regret playing it: it’s a sad, heavy story, with a lot of care put into the art and voice acting. But I suspect a lot of meaning drowned in its sea of symbolism.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "layers of fear 6 jule 2017 · videogames a mixed bag. on one hand, it does a vivid, colorful job of showing madness from the inside. the plot is generally decent, though at some point the ending becomes predictable. on the other, it’s fantastically linear, with almost no challenge or logic to events. the story is told by a madman, inside his mind, and that leaves its mark on the gameplay: you can’t predict what you’re supposed to do in the next room. so you wander around looking for triggers, trying to make sense of whatever weird thing comes next. a melting phone? exploding clocks? now and then, something really gets to you, like the letters between the hero and his wife. those moments are rare, and they feel like a breath of fresh air. overall, i don’t regret playing it: it’s a sad, heavy story, with a lot of care put into the art and voice acting. but i suspect a lot of meaning drowned in its sea of symbolism.",
    "tags": [
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/outlast-2\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Outlast 2\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>29 April 2017</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/EOrTuPljfPU\" width=\"560\"></iframe>\n<p>Not an outright failure, but very, very weak, especially compared with the first game or its DLC. There are barely any moments that scare you, stand out, or make you feel much of anything. And when one does come along, dying yet again soon wipes it out.</p>\n<p>On the positive side: great voice acting, decent graphics, and good attention to small details. There are a dozen or so good scenes and half a dozen gorgeous shots that might make it worth playing. They’ve put some work into the world, though it mostly makes you feel sick and disgusted rather than scared, unlike Mount Massive.</p>\n<p>Everything else is simply bad. Clumsy stealth in impenetrable darkness; endless scripted chases; bland characters we barely get to know; frequent bugs like floating in midair or enemies walking through objects.</p>\n<p>To top it off, the ending is utterly empty. Yes, you can piece it together, and it all seems logical, but… How do I put this? After eight hours of running from psychopaths, you want something to show for it. Instead, you get an enormous, blazing, blinding pile of absolutely fuck-all, in every sense.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "outlast 2 29 april 2017 · videogames not an outright failure, but very, very weak, especially compared with the first game or its dlc. there are barely any moments that scare you, stand out, or make you feel much of anything. and when one does come along, dying yet again soon wipes it out. on the positive side: great voice acting, decent graphics, and good attention to small details. there are a dozen or so good scenes and half a dozen gorgeous shots that might make it worth playing. they’ve put some work into the world, though it mostly makes you feel sick and disgusted rather than scared, unlike mount massive. everything else is simply bad. clumsy stealth in impenetrable darkness; endless scripted chases; bland characters we barely get to know; frequent bugs like floating in midair or enemies walking through objects. to top it off, the ending is utterly empty. yes, you can piece it together, and it all seems logical, but… how do i put this? after eight hours of running from psychopaths, you want something to show for it. instead, you get an enormous, blazing, blinding pile of absolutely fuck-all, in every sense.",
    "tags": [
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/firewatch\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Firewatch\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>22 April 2017</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/WexJcqgismA\" width=\"560\"></iframe>\n<p>An ordinary, very human story, with something missing in a very human way. A spark, maybe? An idea? A point? The closer you get to the ending, the stronger the feeling that someone forgot to put soup in the pot.</p>\n<p>I don’t mean it isn’t worth playing. The dialogue is <strong>very</strong> natural and beautifully written, and it does about three quarters of the work of drawing you in. The game also looks good, although I don’t quite understand all the raving reviews: something like The Vanishing of Ethan Carter had more impressive scenery. Overall, it’s a pleasure to play.</p>\n<p>But the ending is frankly rushed, and there simply is no climax. Yes, I get what they’re going for: this is life, blah blah blah, more ellipses than full stops, blah blah blah. But come on! A story that asks a bunch of questions and answers none of them isn’t all that great, however much you tell me I need to be older to get it.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "firewatch 22 april 2017 · videogames an ordinary, very human story, with something missing in a very human way. a spark, maybe? an idea? a point? the closer you get to the ending, the stronger the feeling that someone forgot to put soup in the pot. i don’t mean it isn’t worth playing. the dialogue is very natural and beautifully written, and it does about three quarters of the work of drawing you in. the game also looks good, although i don’t quite understand all the raving reviews: something like the vanishing of ethan carter had more impressive scenery. overall, it’s a pleasure to play. but the ending is frankly rushed, and there simply is no climax. yes, i get what they’re going for: this is life, blah blah blah, more ellipses than full stops, blah blah blah. but come on! a story that asks a bunch of questions and answers none of them isn’t all that great, however much you tell me i need to be older to get it.",
    "tags": [
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/unhappy\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Perfectly Unhappy\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>24 Marth 2017</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"meanwhile\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Meanwhile</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I came across <a href=\"https://theoatmeal.com/comics/unhappy\" rel=\"noopener noreferrer\" target=\"_blank\">How to Be Perfectly Unhappy</a>, Matthew Inman’s comic about happiness, unhappiness, and what those words really mean.</p>\n<p>The guy has a great sense of humor, which you’d expect from the creator of The Oatmeal. When people like that get serious, this is often what you get: something funny, wise, and, I don’t know, disarmingly honest.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "perfectly unhappy 24 marth 2017 · meanwhile i came across how to be perfectly unhappy , matthew inman’s comic about happiness, unhappiness, and what those words really mean. the guy has a great sense of humor, which you’d expect from the creator of the oatmeal. when people like that get serious, this is often what you get: something funny, wise, and, i don’t know, disarmingly honest.",
    "tags": [
      "meanwhile"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/semiconductors\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Stop Words for Interfaces\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>14 January 2017</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>An interesting <a href=\"https://bureau.ru/bb/soviet/20161220/\" rel=\"noopener noreferrer\" target=\"_blank\">post</a> about terms and wording best avoided when designing interfaces. The aside about authentication and authorization amused me.</p>\n<p>And, of course, the list looks incomplete without the famous contacts, and semiconductors :-)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "stop words for interfaces 14 january 2017 · work an interesting post about terms and wording best avoided when designing interfaces. the aside about authentication and authorization amused me. and, of course, the list looks incomplete without the famous contacts, and semiconductors :-)",
    "tags": [
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/hpmor\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                HPMoR\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>6 November 2016</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"books\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Books</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Just finished reading “Harry Potter and Methods of Rationality” — the epic fanfic based on the you-know-whose universe. An author is a tough specialist in the field of artificial intelligence and interesting on his own, but his book is what I insistently <a href=\"http://hpmor.com/\" rel=\"noopener noreferrer\" target=\"_blank\">recommend</a> to read.</p>\n<p>First of all, it is the magnificent rethinking of the original saga. Many aspects seem not less fascinating, I may say; moreover, the plot itself is certainly excellent — I read two-thirds of the story without switching <a href=\"https://kostyanetsky.me/notes/hpmor/gene-wilder-meme.jpg\" rel=\"noopener noreferrer\" target=\"_blank\">Gene Wilder</a> off :-) Nevertheless, the author was skillful enough to make all points meet and finish a storyline in such a pretty way that I had almost nothing to complain about.</p>\n<p>In any case, this book is a well way to meet with a lot of scientific and just interesting things which were mentioned along the way. The author is smart and his book is a smart one too.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "hpmor 6 november 2016 · books just finished reading “harry potter and methods of rationality” — the epic fanfic based on the you-know-whose universe. an author is a tough specialist in the field of artificial intelligence and interesting on his own, but his book is what i insistently recommend to read. first of all, it is the magnificent rethinking of the original saga. many aspects seem not less fascinating, i may say; moreover, the plot itself is certainly excellent — i read two-thirds of the story without switching gene wilder off :-) nevertheless, the author was skillful enough to make all points meet and finish a storyline in such a pretty way that i had almost nothing to complain about. in any case, this book is a well way to meet with a lot of scientific and just interesting things which were mentioned along the way. the author is smart and his book is a smart one too.",
    "tags": [
      "books"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/kholat\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Kholat\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>23 October 2016</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/622TC6IPwT4\" width=\"560\"></iframe>\n<p>Excruciatingly tedious gameplay that boils down to finding scraps of paper. A limp, disjointed plot cobbled together from mystical theories about the Dyatlov group’s death. As horror, it’s a complete zero. There’s little to fear: just blind monsters and occasional jump scares.</p>\n<p>The only good bits are the visuals and sound. The people behind those did a fantastic job. Sadly, what you end up with is just a huge map with almost nobody in it, almost nothing in it, almost nothing to do, and, worst of all, almost no reason to do anything.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "kholat 23 october 2016 · videogames excruciatingly tedious gameplay that boils down to finding scraps of paper. a limp, disjointed plot cobbled together from mystical theories about the dyatlov group’s death. as horror, it’s a complete zero. there’s little to fear: just blind monsters and occasional jump scares. the only good bits are the visuals and sound. the people behind those did a fantastic job. sadly, what you end up with is just a huge map with almost nobody in it, almost nothing in it, almost nothing to do, and, worst of all, almost no reason to do anything.",
    "tags": [
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/doom\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                DOOM\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>29 June 2016</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/RO90omga8D4\" width=\"560\"></iframe>\n<p>One of those games so good that talking about it would be unbearably tedious.</p>\n<p>Let’s do something else. I don’t know which of these two tracks better captures the new DOOM’s energy, Gavin Dunne’s <a href=\"https://www.youtube.com/watch?v=kjIVkl34Vig\" rel=\"noopener noreferrer\" target=\"_blank\">Hell to Pay</a> or JT Music’s <a href=\"https://www.youtube.com/watch?v=hauVRrgEXl8\" rel=\"noopener noreferrer\" target=\"_blank\">Fight Like Hell</a>, so I’ll link both.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "doom 29 june 2016 · videogames one of those games so good that talking about it would be unbearably tedious. let’s do something else. i don’t know which of these two tracks better captures the new doom’s energy, gavin dunne’s hell to pay or jt music’s fight like hell , so i’ll link both.",
    "tags": [
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/feist\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Feist\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>16 June 2016</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/Bj9vK75qB_w\" width=\"560\"></iframe>\n<p>A short but atmospheric and rather punishing platformer.</p>\n<p>It reminded me a little of LIMBO, except this isn’t the afterlife but a dark, mysterious forest full of smart, scrappy hedgehogs :-)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "feist 16 june 2016 · videogames a short but atmospheric and rather punishing platformer. it reminded me a little of limbo, except this isn’t the afterlife but a dark, mysterious forest full of smart, scrappy hedgehogs :-)",
    "tags": [
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/bioshock-infinite\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                BioShock Infinite\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>10 January 2016</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/EsJ55BzIvkE\" width=\"560\"></iframe>\n<p>This definitely isn’t the best BioShock in terms of gameplay, but it’s so beautiful and detailed that I don’t really feel like criticizing it. Besides, there’s a wonderfully tangled plot! And Elizabeth :-) David Brown has already said it all in his <a href=\"https://www.youtube.com/watch?v=IvvO-ndDLVE\" rel=\"noopener noreferrer\" target=\"_blank\">“Limelight”</a>; I have nothing to add.</p>\n<p>I’ll definitely play it again, just to look at everything once more. I’m not sure how I’ll approach the DLC, though: to me, the story of Columbia and its children is as complete as a story can possibly be.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "bioshock infinite 10 january 2016 · videogames this definitely isn’t the best bioshock in terms of gameplay, but it’s so beautiful and detailed that i don’t really feel like criticizing it. besides, there’s a wonderfully tangled plot! and elizabeth :-) david brown has already said it all in his “limelight” ; i have nothing to add. i’ll definitely play it again, just to look at everything once more. i’m not sure how i’ll approach the dlc, though: to me, the story of columbia and its children is as complete as a story can possibly be.",
    "tags": [
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/gone-home\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Gone Home\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>11 Marth 2015</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/x5KJzLsyfBI\" width=\"560\"></iframe>\n<p>A short, vivid adventure game. No challenge, just a family story where the parents got so caught up in their own problems that they missed something really important.</p>\n<p>I think the sister’s journals could have been removed entirely: the story comes through perfectly in the objects, letters, notes, and photographs. It would have left more mystery, more room to figure things out for yourself.</p>\n<p>Though I have to admit, as it stands, it’s damn touching.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "gone home 11 marth 2015 · videogames a short, vivid adventure game. no challenge, just a family story where the parents got so caught up in their own problems that they missed something really important. i think the sister’s journals could have been removed entirely: the story comes through perfectly in the objects, letters, notes, and photographs. it would have left more mystery, more room to figure things out for yourself. though i have to admit, as it stands, it’s damn touching.",
    "tags": [
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/places-of-imprisonment\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Places of Confinement\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>23 February 2015</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"meanwhile\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Meanwhile</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I found a beautifully presented <a href=\"https://kefiijrw.com/army/#intro\" rel=\"noopener noreferrer\" target=\"_blank\">diary</a> by a Russian conscript who is now a designer at Art. Lebedev’s <a href=\"https://artlebedev.ru\" rel=\"noopener noreferrer\" target=\"_blank\">studio</a>. Interesting, funny writing that you can’t put down.</p>\n<p>Happy holiday to everyone who’s served!</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "places of confinement 23 february 2015 · meanwhile i found a beautifully presented diary by a russian conscript who is now a designer at art. lebedev’s studio . interesting, funny writing that you can’t put down. happy holiday to everyone who’s served!",
    "tags": [
      "meanwhile"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/avibus-pro\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Avibus\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>16 February 2015</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"1c\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">1С</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"javascript\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Javascript</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>The 1C:Enterprise configuration we implemented at bus terminals in Kuzbass a couple of years ago now has a nice new <a href=\"http://avibus.pro/\" rel=\"noopener noreferrer\" target=\"_blank\">website</a>.</p>\n<p>I think it’s great! Partly because it’s one of those projects chipping away at a tired old myth about 1C that just won’t die, even among IT people: that it’s dull, sluggish software for accountants, while real programmers only write C++ (or Java, JavaScript, insert your choice here), and similar nonsense.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "avibus 16 february 2015 · 1с work javascript the 1c:enterprise configuration we implemented at bus terminals in kuzbass a couple of years ago now has a nice new website . i think it’s great! partly because it’s one of those projects chipping away at a tired old myth about 1c that just won’t die, even among it people: that it’s dull, sluggish software for accountants, while real programmers only write c++ (or java, javascript, insert your choice here), and similar nonsense.",
    "tags": [
      "1c",
      "work",
      "javascript"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/blogging-benefits\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                The Benefits of Blogging\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>1 February 2015</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Vsevolod Ustinov wrote an interesting <a href=\"http://vsevolodustinov.ru/blog/all/o-polze-vedeniya-professionalnogo-bloga/\" rel=\"noopener noreferrer\" target=\"_blank\">post</a> about keeping a professional blog.</p>\n<p>I’m not sure the format matters much, whether it’s a blog, an article, or a presentation for colleagues. But I completely agree with one of the main points: if you learn something but don’t write it down and chew it over a few more times, it’ll soon get washed away by your morning coffee.</p>\n<p>A couple more useful links on the same subject:</p>\n<ul>\n<li><a href=\"http://sergeykorol.ru/blog/about-blog/\" rel=\"noopener noreferrer\" target=\"_blank\">Why Keep a Blog (Despite Everything)</a></li>\n<li><a href=\"https://ru.hexlet.io/blog/posts/sitnik-inflyuenser\" rel=\"noopener noreferrer\" target=\"_blank\">A Programmer Doesn’t Have to Become an Influencer</a></li>\n</ul>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "the benefits of blogging 1 february 2015 · work vsevolod ustinov wrote an interesting post about keeping a professional blog. i’m not sure the format matters much, whether it’s a blog, an article, or a presentation for colleagues. but i completely agree with one of the main points: if you learn something but don’t write it down and chew it over a few more times, it’ll soon get washed away by your morning coffee. a couple more useful links on the same subject: why keep a blog (despite everything) a programmer doesn’t have to become an influencer",
    "tags": [
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/move-on\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Moving Forward\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>20 January 2015</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"sport\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Sport</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Something occurred to me: long, hard, complicated things, studying, workouts, diets, all that misery, get a lot easier once you realize you really want what’s at the end of them.</p>\n<p>So there you are, comfortable doing nothing, when you finally decide to lose some weight, or study for an MBA, whatever. Your blisters hurt, it all sucks, maybe you don’t need that MBA after all, and wouldn’t a lie-in beat a morning walk? But after the first go, a bit of studying, a jog, kefir instead of a pastry, you catch this quiet but ridiculously strong endorphin rush. Hey, look at me! I’m doing the right thing. I’m getting somewhere!</p>\n<p>And when you slip up, playing a shooter instead of reading, eating cookies instead of cottage cheese, somehow never having time for the gym, you miss that kick. You eat cookies today and can’t stand looking at them for a week. Not because you don’t fancy them, but because you’re back to going nowhere, like a lump.</p>\n<p>Getting somewhere really is a drug, as long as you know where you’re going and know you want to get there.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "moving forward 20 january 2015 · sport work something occurred to me: long, hard, complicated things, studying, workouts, diets, all that misery, get a lot easier once you realize you really want what’s at the end of them. so there you are, comfortable doing nothing, when you finally decide to lose some weight, or study for an mba, whatever. your blisters hurt, it all sucks, maybe you don’t need that mba after all, and wouldn’t a lie-in beat a morning walk? but after the first go, a bit of studying, a jog, kefir instead of a pastry, you catch this quiet but ridiculously strong endorphin rush. hey, look at me! i’m doing the right thing. i’m getting somewhere! and when you slip up, playing a shooter instead of reading, eating cookies instead of cottage cheese, somehow never having time for the gym, you miss that kick. you eat cookies today and can’t stand looking at them for a week. not because you don’t fancy them, but because you’re back to going nowhere, like a lump. getting somewhere really is a drug, as long as you know where you’re going and know you want to get there.",
    "tags": [
      "sport",
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/alien-isolation\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Alien: Isolation\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>16 January 2015</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <iframe allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\" frameborder=\"0\" height=\"315\" src=\"https://www.youtube.com/embed/7h0cgmvIrZw\" width=\"560\"></iframe>\n<p>A brilliant horror game that scares the hell out of you without relying on jump scares. The Alien’s animation and the way it hunts are just fantastic: playing cat and mouse with the monster, trying to guess or hear where it is, the motion tracker’s frantic beeping, saliva dripping from vents, someone’s dying screams nearby, the desperate search for a hiding place. All of it keeps you on edge the whole way through.</p>\n<p>Even when Ripley gets a way to drive the monster off, it doesn’t help much. It might flee (if you manage to fire in time and hit it), but it’ll be back very soon, twice as angry, poking its nose into every corner.</p>\n<p>As for the downsides, there’s <s>the characters’ wooden facial animation and minor stealth issues</s> the Tab and Escape keys, which pause the game and let you soothe your shattered nerves :-)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "alien: isolation 16 january 2015 · videogames a brilliant horror game that scares the hell out of you without relying on jump scares. the alien’s animation and the way it hunts are just fantastic: playing cat and mouse with the monster, trying to guess or hear where it is, the motion tracker’s frantic beeping, saliva dripping from vents, someone’s dying screams nearby, the desperate search for a hiding place. all of it keeps you on edge the whole way through. even when ripley gets a way to drive the monster off, it doesn’t help much. it might flee (if you manage to fire in time and hit it), but it’ll be back very soon, twice as angry, poking its nose into every corner. as for the downsides, there’s the characters’ wooden facial animation and minor stealth issues the tab and escape keys, which pause the game and let you soothe your shattered nerves :-)",
    "tags": [
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/completely-lazy\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Completely Lazy\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>12 September 2014</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"family\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Family</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>My daughter asks: Dad, what does “pray” mean?</p>\n<p>I explain: well, some people believe in a powerful being who lives in the sky and controls absolutely everything. From time to time, people ask this being for things, and that’s called prayer.</p>\n<p>The little one thinks for a moment:</p>\n<p>“Dad, are those people just really lazy?”</p>\n<p><a href=\"https://kostyanetsky.me/notes/completely-lazy/little-one.jpg\" rel=\"noopener noreferrer\" target=\"_blank\"><img alt=\"Really, really lazy?\" src=\"https://kostyanetsky.me/notes/completely-lazy/little-one-thumbnail.jpg\"/></a></p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "completely lazy 12 september 2014 · family my daughter asks: dad, what does “pray” mean? i explain: well, some people believe in a powerful being who lives in the sky and controls absolutely everything. from time to time, people ask this being for things, and that’s called prayer. the little one thinks for a moment: “dad, are those people just really lazy?”",
    "tags": [
      "family"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/zombies-run\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Zombies, Run!\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>26 August 2014</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"sport\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Sport</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Like most fat guys, I’m not big on running, and just forcing myself doesn’t work. I get two or three days out of sheer willpower, then I’m back to being lazy and dreading the next run.</p>\n<p>So I had to find something that would actually make me want to run. Eventually, I came across the phone game <a href=\"https://zombiesrungame.com/\" rel=\"noopener noreferrer\" target=\"_blank\">Zombies, Run!</a>. Basically, it’s a music player: load a playlist and go for a walk. But familiar tracks alternate with a simple story about surviving in a typical zombie land. Your helicopter has crashed, and you’re trying to reach other survivors. You search for supplies and medicine… And zombies surround you, so if you want to live, move your ass.</p>\n<p>Je-e-esus Christ! It’s fantastic. I don’t know whether the game or my imagination deserves the credit, but hundreds of thousands of kills in Left 4 Dead didn’t help me at all: growling behind your back makes running incredibly easy! The game calmly tells you how far away each undead pursuer is. When one of them suddenly gained forty meters on me, I probably ran the best sprint of my life.</p>\n<p><img alt=\"Yay!\" src=\"https://kostyanetsky.me/notes/zombies-run/escapologist.jpg\"/></p>\n<p>(Toward the end of the second walk, Runner Five also hurt his leg and started limping very convincingly. Really added to the drama and made the whole thing feel real.)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "zombies, run! 26 august 2014 · sport videogames like most fat guys, i’m not big on running, and just forcing myself doesn’t work. i get two or three days out of sheer willpower, then i’m back to being lazy and dreading the next run. so i had to find something that would actually make me want to run. eventually, i came across the phone game zombies, run! . basically, it’s a music player: load a playlist and go for a walk. but familiar tracks alternate with a simple story about surviving in a typical zombie land. your helicopter has crashed, and you’re trying to reach other survivors. you search for supplies and medicine… and zombies surround you, so if you want to live, move your ass. je-e-esus christ! it’s fantastic. i don’t know whether the game or my imagination deserves the credit, but hundreds of thousands of kills in left 4 dead didn’t help me at all: growling behind your back makes running incredibly easy! the game calmly tells you how far away each undead pursuer is. when one of them suddenly gained forty meters on me, i probably ran the best sprint of my life. (toward the end of the second walk, runner five also hurt his leg and started limping very convincingly. really added to the drama and made the whole thing feel real.)",
    "tags": [
      "sport",
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/gear-suitability\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Gear for My Level\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>13 Jule 2014</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"meanwhile\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Meanwhile</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I’ve updated my summer wardrobe a little. Minus the extra kilos I’d got so used to, I felt like an MMORPG character in the fitting room. I’d leveled up, and now I could wear better gear.</p>\n<p>The problems are much the same, including the eternal question: “Should I buy this light armor set if I’m going to level up again soon?”</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "gear for my level 13 jule 2014 · meanwhile videogames i’ve updated my summer wardrobe a little. minus the extra kilos i’d got so used to, i felt like an mmorpg character in the fitting room. i’d leveled up, and now i could wear better gear. the problems are much the same, including the eternal question: “should i buy this light armor set if i’m going to level up again soon?”",
    "tags": [
      "meanwhile",
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/my-school\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                A Choice\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>5 June 2014</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"family\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Family</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>My daughter is scratching her leg intently. I tell her: hey, don’t scratch, it’ll hurt. She looks at me very seriously and replies: Dad, it’s my choice whether to scratch or not.</p>\n<p>I couldn’t think of a reply.</p>\n<p><img alt=\"That’s my girl!\" src=\"https://kostyanetsky.me/notes/my-school/bender.jpg\"/></p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "a choice 5 june 2014 · family my daughter is scratching her leg intently. i tell her: hey, don’t scratch, it’ll hurt. she looks at me very seriously and replies: dad, it’s my choice whether to scratch or not. i couldn’t think of a reply.",
    "tags": [
      "family"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/pillar-of-light\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                A Pillar of Light\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>7 April 2014</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Reading my own code from last year has a distinct flavor of masochism. Ah, here I put an implicit query inside a loop, and here I retrieved a balance table and grouped it for some reason. Well done, buddy!</p>\n<p>Still, at least it means I’m getting better. Say what you like about games, but sometimes I really wish real life had a pillar of light from the heavens whenever you leveled up.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "a pillar of light 7 april 2014 · videogames work reading my own code from last year has a distinct flavor of masochism. ah, here i put an implicit query inside a loop, and here i retrieved a balance table and grouped it for some reason. well done, buddy! still, at least it means i’m getting better. say what you like about games, but sometimes i really wish real life had a pillar of light from the heavens whenever you leveled up.",
    "tags": [
      "videogames",
      "work"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/cake-recipe\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                A Cake Recipe\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>3 December 2013</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"english\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">English</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>We were covering kitchens in English class: utensils, furniture, food, that sort of thing. I read out the <a href=\"https://www.youtube.com/watch?v=fXzr5iwGFfE\" rel=\"noopener noreferrer\" target=\"_blank\">cake recipe</a> from Portal as an example of a dish with lots of ingredients. It went down rather well :-)</p>\n<p>By the way, this is one of those rare cases where the localization really nails it: in the Russian version, this monologue, along with all of GLaDOS’s other lines, sounds much more expressive.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "a cake recipe 3 december 2013 · english videogames we were covering kitchens in english class: utensils, furniture, food, that sort of thing. i read out the cake recipe from portal as an example of a dish with lots of ingredients. it went down rather well :-) by the way, this is one of those rare cases where the localization really nails it: in the russian version, this monologue, along with all of glados’s other lines, sounds much more expressive.",
    "tags": [
      "english",
      "videogames"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/skittles\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Bowling Pins on the Road\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>3 June 2013</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"meanwhile\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Meanwhile</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I wonder what percentage of pedestrians crossing wherever they please really struggle to reach a crosswalk, and what percentage simply don’t care about the consequences. I recently read <a href=\"http://mymaster.livejournal.com/344609.html\" rel=\"noopener noreferrer\" target=\"_blank\">Confessions of a Bowling Pin</a>, Anton Buslov’s excellent post about crosswalks from the perspective of someone who is ill. But I still struggle to believe that all these well-fed people, who are hardly old, are too worn out to make it to the crossing.</p>\n<p>It’s not so bad for me: on a bike, I can swerve easily and stop quickly. But I hate to think what it’s like for drivers and motorcyclists.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "bowling pins on the road 3 june 2013 · meanwhile i wonder what percentage of pedestrians crossing wherever they please really struggle to reach a crosswalk, and what percentage simply don’t care about the consequences. i recently read confessions of a bowling pin , anton buslov’s excellent post about crosswalks from the perspective of someone who is ill. but i still struggle to believe that all these well-fed people, who are hardly old, are too worn out to make it to the crossing. it’s not so bad for me: on a bike, i can swerve easily and stop quickly. but i hate to think what it’s like for drivers and motorcyclists.",
    "tags": [
      "meanwhile"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/silent-night\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Sleep Well\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>17 April 2013</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"meanwhile\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Meanwhile</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Berezovsky is incredibly quiet at night. Big cities can’t sleep this deeply: there’s always someone wandering the streets, cars driving past, music playing, some dogs howling.</p>\n<p>Here, not a soul. Just endless streetlights and sleepy traffic signals. And dead silence. Not a single sound, apart from the echo of my own footsteps.</p>\n<p>The feeling is… Strange. As though I’d ended up in, I don’t know, Silent Hill or Pripyat, rather than a small mining town.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "sleep well 17 april 2013 · meanwhile berezovsky is incredibly quiet at night. big cities can’t sleep this deeply: there’s always someone wandering the streets, cars driving past, music playing, some dogs howling. here, not a soul. just endless streetlights and sleepy traffic signals. and dead silence. not a single sound, apart from the echo of my own footsteps. the feeling is… strange. as though i’d ended up in, i don’t know, silent hill or pripyat, rather than a small mining town.",
    "tags": [
      "meanwhile"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/trip-plan\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                A Trip Plan\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>25 Marth 2013</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"family\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Family</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>I’m off to Yekaterinburg for a conference on bus terminal software. I told Kat to listen to our daughter and our daughter to listen to Kat. I suspect they’re in for a fun week.</p>\n<p><a href=\"https://kostyanetsky.me/notes/trip-plan/plan.jpg\" rel=\"noopener noreferrer\" target=\"_blank\"><img alt=\"The plan\" src=\"https://kostyanetsky.me/notes/trip-plan/plan-thumbnail.jpg\"/></a></p>\n<p>I’ll be back on Saturday. Miss me.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "a trip plan 25 marth 2013 · family i’m off to yekaterinburg for a conference on bus terminal software. i told kat to listen to our daughter and our daughter to listen to kat. i suspect they’re in for a fun week. i’ll be back on saturday. miss me.",
    "tags": [
      "family"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/eagles\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                Telepathic Eagles\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>9 Marth 2013</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"family\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Family</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Kat’s handwriting makes experienced doctors choke with envy. Today, if her note is to be believed, she asked me to pick up four screw buckets and twelve telepathic eagles on my way home.</p>\n<p>Never mind the screws, but where am I supposed to find eagles? Telepathic ones, at that?</p>\n<p>I’m lost. My life has been wasted.</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "telepathic eagles 9 marth 2013 · family kat’s handwriting makes experienced doctors choke with envy. today, if her note is to be believed, she asked me to pick up four screw buckets and twelve telepathic eagles on my way home. never mind the screws, but where am i supposed to find eagles? telepathic ones, at that? i’m lost. my life has been wasted.",
    "tags": [
      "family"
    ]
  },
  {
    "html": "\n\n\n\n\n        <article class=\"rounded-2xl bg-white\">\n\n          <header class=\"space-y-2\">\n\n                        \n            <header class=\"space-y-2\">\n            <a href=\"https://kostyanetsky.me/notes/theme-hospital\"\n                class=\"inline text-2xl font-semibold tracking-tight hover:underline\">\n                A Private Station\n            </a>\n            </header>\n            \n\n            <div class=\"flex flex-wrap items-center gap-x-3 gap-y-2 text-sm text-slate-600\">\n              <span>3 February 2013</span>\n              \n                <span class=\"text-slate-300\">·</span>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"videogames\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Videogames</button>\n                    \n                </div>\n                \n                <div class=\"flex flex-wrap gap-2\">\n                    \n                    <button type=\"button\" data-chip=\"work\" class=\"inline-flex items-center rounded-full border border-slate-200 bg-slate-50 px-2.5 py-1 text-xs text-slate-700 cursor-pointer transition hover:bg-slate-100\">Work</button>\n                    \n                </div>\n                \n              \n            </div>\n\n          </header>\n\n          <div class=\"mt-5\">\n            <div class=\"prose-like\">\n              <p>Looking around inside the ticket offices at Belovo bus terminal took me straight back to that ancient DOS hospital sim, <a href=\"https://ru.wikipedia.org/wiki/Theme_Hospital\" rel=\"noopener noreferrer\" target=\"_blank\">Theme Hospital</a>.</p>\n<p>At least, when I played it, I set up my GP offices in exactly the same way: identical square rooms, bin always in one corner, plant always in the other, radiator always under the window, and so on :-)</p>\n            </div>\n          </div>\n          \n        </article>\n\n",
    "text": "a private station 3 february 2013 · videogames work looking around inside the ticket offices at belovo bus terminal took me straight back to that ancient dos hospital sim, theme hospital . at least, when i played it, i set up my gp offices in exactly the same way: identical square rooms, bin always in one corner, plant always in the other, radiator always under the window, and so on :-)",
    "tags": [
      "videogames",
      "work"
    ]
  }
]