migmit: (Default)
LJ yet again broke OpenID login. But there is a backdoor still open: https://www.livejournal.com/identity/login.bml
migmit: (Default)
Unian пишет, что украинский пенсионер сбил из охотничьего ружья истребитель оккупантов:
...Валерий Федорович взял свое охотничьей ружье и открыл огонь.

Вражеский истребитель Су-34 был поражен и уничтожен.

Знаете, я думаю, он был даже не поражён, а просто-таки офигел.

Ну и, конечно, вспоминается советская классика:
Встал один и бьет с колена
Из винтовки в самолет.
Трехлинейная винтовка
На брезентовом ремне,
Да патроны с той головкой,
Что страшна стальной броне.

Lenining

May. 21st, 2022 01:23 pm
migmit: (Default)
There are different kinds of revolutions.

The most tame, most enjoyable kind is a palace revolution. Somebody who is already in power, but is not on top of the pyramid, tells the guy who is on top to go away and takes his place. The previous ruler might be killed, or exiled, or simply forced to retire. The important thing is, common folks usually don't see much, and are relatively safe. For a while.

The polar opposite of it is, of course, the widespread, spontaneous rebellion. Regular people are pushed too far, they rebel, and manage to overthrow their evil overlords. They don't usually have a very clear vision of what to do next, and their organisational structure is kinda lax, so who gets the throne afterwards isn't exactly clear. Something like this happened, I think, in 2013-2014 in Ukraine, which resulted in president Yanukovych fleeing the country, and Petro Poroshenko becoming the new president.

But it also happens that the rebellion is not spontaneous at all. That it was carefully crafted and prepared for quite a long time, that there are people tirelessly working on organizing it, supplying it, establishing the command structure. The kind that happened in November 1917 in Russia.

But that last kind of revolution isn't just an evil plot of a few people, no. And here we can turn to the works of none other than Vladimir Lenin. Say what you want about that guy (and there is quite a lot to say), but he did know a few things about making a revolution. Specifically, a revolution of this third kind.

Lenin introduced a concept of a "revolutionary situation". Basically, if there is a revolutionary situation in the country, then a revolution can succeed. A group of cunning and motivated people can sway the large chunk of the country's population into rebelling. Their success is not guaranteed, but quite possible. If there is no revolutionary situation, then it is hopeless. Revolution — of that third kind — won't happen.

Now, the revolutionary situation is usually characterised as "the bottom has no desire, the top has no ability". Kinky as it might sound, the actual meaning is quite serious: those who are not in power don't want to preserve the status quo, while those who are in power can't really enforce it. When people are generally happy, revolution can't happen — nobody would rebel, as there is nothing to gain. When people are unhappy, but the government maintains an iron grip on the population — again, revolution won't happen, and any attempt would be crushed.

All of this was a lengthy prelude to the discussion about the current situation in the Evil Empire. I've read and heard quite a lot how the West hopes for a rebellion, and how it won't happen. Natalia Zubarevich, a great economist, phrased it quite interestingly: she said "people won't be happy, they would curse and swear in their kitchens, but they won't take it on the streets, they won't rebel". Which, I think, is accurate. But that only means the revolution of the second kind won't happen. At the same time, those profanity-laden talks at the kitchen counters constitute the first part of the revolutionary situation: the bottom has no desire.

As for the top's ability, well, that is debatable. It is true that peaceful protests, whenever those happen, are brutally crushed. But lately we've seen quite clearly how badly the ruskies perform against an enemy that is willing to fight. When the army is that bad — it doesn't seem to be a stretch to assume the police isn't in their top shape either. If a violent protest happens — the "cosmonauts" (as those policemen are sometimes called because of their spherical protective helmets) might not do that well. Now, as I've said before, it won't happen by itself, at least not on a large scale. But still, it might mean we have a second part of a revolutionary situation here.

Lenin actually wrote about a third part as well, though it is less known due to the catchiness of the two-part version. The third part is people's activity, people's involvement in political process; and here the situation appears most grim. The aforementioned cursing and swearing doesn't cut it. However, the emerging revolutionary situation might get a hand from an unusual ally: Putler himself.

See, it does seem like there is a trend in the Evil Empire: people are forced to take a stand. The stand to take is, of course, the officially-approved one, but it seems that now it isn't enough to not go against the official line; now it's necessary to actively support it. And that means people's engagement. Sure, not a good one; but it might be a start.

Let's recap. The bottom has no desire: check. The top has no ability: sounds like a good bet. People's activity: well, maybe. What we have now is a revolutionary situation in the making, although it does seem sloppy for now.

So, what's next? Well, even with a fully-formed revolutionary situation, there is still a need for this group of people to put it to good use. Some Jim diGriz of sorts, to turn a revolutionary situation into a revolution. But here is a thing: with a pool of about 140 million people (I have doubts about that number, but that's for another time) there is a chance of some crook, or some group of crooks that don't have anything better to do, to actually bring it to fruition.

Will the revolution happen? Second kind (spontaneous rebellion) — definitely not. But the third kind has a chance.

Personally, I would rather hope for the first kind (palace revolution). We'll see how it goes. Most likely, no kind of a revolution would happen, I'm just arguing that it's not that certain.
migmit: (Default)
Екатерина Шульман уже не первый раз удивляется, что, дескать, судя по опросам, поддержка войны гораздо сильнее среди старых и пожилых, чем среди молодёжи. Что, вроде как, необычно — война дело молодых, старики стремятся жить тихо и спокойно. Я её понимаю в том смысле, что если что-то идёт не по науке — это очень странно и удивительно. Но для меня, человека, науку не знающего, с самого начала было совершенно очевидно, что именно молодёжь должна быть особенно против этой войны. По двум причинам:

1) Молодёжь любит войну, но ещё более молодёжь любит революцию. Нынешняя война с Украиной — это настолько очевидная КОНТРреволюция, такой возврат в прошлое, что ожидать от молодых поддержки — как минимум, странно.

2) Молодёжь и старикёжь находятся в принципиально разных положениях. Война захватническая, пока что почти (привет Белгороду) не вылезающая из границ соседнего государства. Когда старики думают об этой войне, они понимают, что уж они-то сами на эту войну не попадут. Если не думать, конечно, про ядерный пепел — а кому про него хочется думать; у меня вообще такое ощущение, что в него не верит никто, кроме эпатажника Невзорова. Примерно половина молодых понимают, что у них-то как раз есть прекрасные шансы на этой войне побывать лично, причём вовсе не в тех местах, где им хочется. Особенно как раз вызвавшая наибольшее удивление у Шульман категория «от 18 до 24».

Так что вот.

Shoiguing

Mar. 6th, 2022 11:43 pm
migmit: (Default)
Let's be optimistic for a while.

In the fog of this war there happened to be a message — without any specifics, of course — that ruskies' defense minister, Sergey Shoigu, is about to take the fall for the Ukrainian failure. Which kinda makes sense — he is, after all, the defense minister. The message itself is here: https://www.facebook.com/iponomarev/posts/10159994986590802 — in Russian, and, as I said, it doesn't inspire confidence.

So, I feel compelled to write down a certain scenario that I was mulling over for a couple of days now. Specifically: what if Shoigu strikes first?

Let me be clear: I don't think this scenario has any chance of being implemented. Far from it. Let's just treat it as a kind of alternative reality. A book that a future sci-fi author might write (see, I've told you I'm going to be optimistic). Well, let's just writing it start now.

First of all, is it even possible for a member of Khuilo's inner circle to make an attempt to remove his boss? Physically, I mean. Well... the chances aren't good. All of them are spineless yes-men, and people like that only think about surviving one more day. As long as they feel that the current situation, even if bad, presents less risk than any attempt to change it — they would sit tight and pray for a miracle that would turn things to the better.

And if one of them does try to do something desperate — well, others would turn on him immediately. Not because they are so in love with their great leader they can't bear the loss, no. Simply because they would be afraid of him. And also because he would give them a perfect excuse to bury him.

So, any one of them turning on the evil midget has a very small chance of living another day. And that's why one of them might act ONLY if his chances of living another day are going to hell anyway. And that might just happen.

Now, let's say our hero was successful. I can't say how he is going to survive the others. Maybe some posturing would help — like those "wild animal encounter" guides suggest, "make yourself look bigger". Could work, I don't know. But what happens next?

Let's also say that our fictional Shoigu is not completely nuts, and understands that sanctions are bad. What can he do? Pull out of Ukraine, sure. Return Crimea and Donbass. But all of that would only stop the new sanctions. The ones that were already introduced are here to stay. The West is out for blood. How can he get the West to roll most, if not all, of the sanctions back?

Remember I've told you about being optimistic?

He has a big bargaining chip. There is something he CAN offer to the West that is so lucrative that the West would rush to lift the sanctions and give him all the support they have.

Nuclear disarmament.

Let's be quiet for a minute. Let's savour that dream.

Now, back to reality. Can Shoigu do that? Almost certainly not.

Dream, guys. Dream that the current suffering might bring forth a better world. At least we can do that.
migmit: (Default)
There were talks about how Ruskies nuclear weapons could be in a very bad shape — in particular because nuclear charges should be replaced periodically, otherwise they degrade. Also, I've heard — sorry, not an expert here — that Ukraine NPPs can, as a side effect, produce weapon-grade radioactive materials. I wonder if those things are related. What if Khuilo decided to attack Ukraine in order to get those NPPs and seize those weapon-grade matereals, because he found out he doesn't have any weapons that can be honestly called "nuclear", and needs to refresh those charges immediately?

No, that's not it, of course. That's just another attempt to find some meaning in all that. I understand that; but I still think it's worth sharing.

Potating

Mar. 2nd, 2022 02:07 pm
migmit: (Default)
I happen to have a little bit of "experience" of being in the Ruskies "army". Let me explain in case somebody who reads my blog is not familiar with this practice.

In US — as far as I know — the army consists of volunteers. They chose this profession. Maybe some regret their choice, but in any case at some point in their lives they made a decision to join the army. In Russia, however, the army was always based on conscription. There are professional soldiers as well, but a very significant part of soldiers are conscripts. Because of that, draft dodging is kind of a national sport there. I know, I played that game myself, and managed to win without even breaking any laws.

Those who ARE in that "army" now are mostly those who lost. Think about that.

Anyway, while in college, I didn't know if I would be successful in this game. So, as a plan B, I joined the military training course offered by our college. Sounds a bit counterintuitive, but the real reason is that those who finish such a course and are drafted, do not start as a soldiers. They would start as officers. Which is, of course, way easier.

Most of that course is "theoretic" — meaning, students sit in classrooms and listen — or not — to the lecturer. The only difference with what's normal for them is that the lecturer is wearing uniform. But at the end of it (the course itself lasted for three years when I took it) there is a month-long practical part. The same students are herded into a "real" army base, they wear uniforms themselves, they live in barracks, they march, they... well, they don't really shoot. We weren't given loaded guns at all, except for one day, when we were supposed to do some target practice. It was explained to us very clearly that our results don't matter and, in fact, won't be recorded in any official documents; so, personally, I didn't even look where I was shooting.

That "real" army base wasn't real — it wasn't on the front lines anywhere, it wasn't even very far from Saint Petersburg where I lived. On the other hand, I would expect it to not have much trouble getting any kind of supplies, given how short logistical lines should've been.

There are just a few things I wanted to highlight. The first one is actually not my personal experience, but a second-hand one. A friend of mine once got an assignment to the base headquarters to do some data entry. There was an upcoming revision of the base, and the officers tried to straighten up all documentation they could, so, some bureaucratic backlog was getting cleared. He later related to me what those documents looked like. They would go like this: "Number of trucks — 15. Number of trucks in a working condition — 3. Status of the base truck fleet — satisfactory". I'm quoting numbers from memory, of course, but the order of magnitude is, I believe, correct.

And that "working condition" might not be exactly what that phrase is supposed to mean. The next one did happen to me personally. I was assigned a task of helping to deliver some waste from the kitchen to the pigsty.

Yes, the base did have it's own pigsty. I don't know if it existed officially.

Anyway, while driving there in the truck bed, I've heard some of what was said in the cabin. There were two people there: the driver — obviosly a conscript — and another, more experienced guy, who, if memory serves, had a rank of a sergeant. And I've heard the sergeant instructing the driver "Turn the wheel to the right, you moron!"

Yes, the truck did in fact reach its destination, and even managed to get back, although not without suffering some damage: the truck hit some wire (supporting a pole somewhere) and lost a little bit of wood on a side. Still.

And one more thing. During that month, we — students — took over some kitchen duties. I'm pretty sure that neither before nor after the soldiers weren't eating that well. At the very least, we did cut all of the rot out of the potatoes. All of it. I doubt the soldiers themselves did the same.

Trooping

Feb. 28th, 2022 11:00 pm
migmit: (Default)
According to Wikipedia, Ruski military has about one million active personnel. Not all of them are involved in Ukraine war — I've heard the number 150 thousands.

Belarus military has about 60 thousands active personnel. If we assume the same proportion, it would be about 9000 additional troops, if Belarus joins the invasion.

Are they going to make a difference? Why the hell are they given so much attention? I mean, yeah, sure, it's better if they stay home, but seriously? What am I missing here?

Warshiping

Feb. 26th, 2022 07:13 pm
migmit: (Default)
I've been near the Ruski embassy today. Quite a crowd there.



Circled blue: "Fuck war" (in Russian)
Circled yellow: "Stop Putin, stop war" (in English)



Circled blue: "Putin is a common enemy of Russia and Ukraine" (in Russian)



Circled blue: "Putin, you're a junkie and a neo-Nazi yourself" (in Russian, referring to the recent semi-coherent ramblings of that guy)



Circled blue: "Ruskies, go home! 1956 Budapest, 1968 Prague, 2022 Kiev" (in Hungarian)



Two identical banners, circled blue: "Russian warship, go fuck yourself!" (in Russian)



Circled blue: "When the last Ukrainian soldier falls, Europe will be left defenseless!" (in Hungarian)
Circled yellow: "Down with this sort of thing!" (in English)



Circled blue, partially obscured: "RuSSian warship, go fuck yourself!" (in Russian)



Circled blue, partially obscured: "Russians don't want war with Ukraine. Putin is a murderer!" (First part in English, second in Russian).
Circled yellow: portrait of Boris Nemtsov, with a quote, heavily bowdlerized: "Putin is mentally ill". Allegedly that quote was what got him murdered by Putin.

Pickling

Nov. 30th, 2021 02:44 pm
migmit: (Default)
In Soviet Union, there was this book called "Physicists joking", and it's sequel "Physicists continue joking". Some of the entries there were original, but there were a lot of funny stories or just scientific jokes there that were translated from foreign publications. Apparently, some parts were omitted from those translations. Try to guess what was omitted from this article, for example:

PICKLES AND HUMBUG: a bit of comparative logic
(Published in: The Journal of Irreproducible Results)

Pickles will kill you! Every pickle you eat brings you nearer to death. Amazingly, the "thinking man" has failed to grasp the terrifying significance of the phrase "in a pickle." Although leading horticulturists have long known that Cucumis sativus posseses an indehiscent pepo, the pickle industry continues to expand.

Pickles are associated with all major diseases of the body. Eating them breeds war and Communism. They can be related to most airline tragedies. Auto accidents are caused by pickles. There is a positive relationship between crime waves and consumption of this fruit of the cucurbit family. For example,
- Nearly all sick people have eaten pickles. The effects are obviously cumulative.
- 99.9% of all people who die from cancer have eaten pickles.
- 100% of all soldiers have eaten pickles.
- 96.8% of all Red sympathizers have eaten pickles.
- 99.7% of the people involved in air and auto accidents ate pickles within forteen days before the accident.
- 93.1% of all juvenile delinquents come from homes where pickles are served frequently.

Evidence points to the long-term effects of pickle eating:
- Of the people born in 1839 who later dined on pickles, there has been a 100% mortality.
- All pickle eaters born between 1919 and 1929 have wrinkled skin, have lost most of their teeth, have brittle bones, and have failing eyesight — if the ills of eating pickles have not already caused their death.
- Even more convincing is the report of a noted team of medical specialists: Rats force-fed 20 pounds of pickles per day for thirty days developed bulging abdomens. Their appetites for wholesome food were destroyed.

The only way to avoid the deleterious effects of pickle eating is to change eating habits. Eat orchid petal soup. Practically no one has problems from eating orchid petal soup.
migmit: (Default)
Well, I finally watched the new Ghostbusters movie. Here are my thoughts.

Overall — it's not bad. It surely isn't a great movie, but it's pretty enjoyable. The kids are doing a decent job (at least), their mom is OK, Paul Rudd is pretty good. There are a few mistakes here and there — like, for example, Rudd's character saying "science is never safe, if you want safe, go for geometry" — dude, you know that geometry is science, right? And another, when he says that the town they are in is "nowhere near a tectonic plate" — um, everything on Earth is very near a tectonic plate. Both can be viewed as character errors, and even as such they might just be tongue slips, but it shows that the script can use a little bit of polishing. Those are minor things, however, and if you don't expect greatness — it's easy to enjoy this thing.

...until we come to the ending.

Here is where heavy spoilers come in. You've been warned. Twice.

So, the main characters have a plan to, essentially, save the world. Good. That plan goes wrong — pretty common for plans in movies. That's fine. And then the cavalry arrives. And that cavalry is the original Ghostbusters.

Their arrival achieved three things simultaneously. First of all, it killed the mood. Here we are, having a really tense moment, everybody freaking out — and then those guys arrive with the look on their faces that says "we're here, the movie's cool now". It's clear that the movie creators were counting on a warm feeling it should induce in the fans — but that warm feeling itself is something that doesn't mix well with the tension.

Secondly, it robbed the main characters from their victory. Sure, they do something, but it all looks — and is treated in the movie — as if they are now holding a gun while the real hero ties his shoelaces.

And thirdly, it showed that the movie creators did not believe in their own creation and thought they needed heavy hitters. Which is really a shame, since everything before it kinda stands on its own. As I said before, the kids are good, actress that plays Phoebe — Mckenna Grace — is sometimes hilarious with her jokes that never land, but the movie actually expects them to not land and makes fun of that (this is a stark contrast with Bill Murray's behaviour at the end, when he starts cracking jokes that are even more awful, but the movie clearly expects them to be seen as funny). The boy who plays Podcast (I don't think we've got his real name) has his moments too, like when the kids are stopped by a cop, and somebody asks "what do we do", and he says "I say we fight" — completely deadpan, and so much in character, it is really amazing.

It could be a good semi-reboot, kinda like Jumanji, it had the potential, but the ending killed it. Completely unnecessary, overly long, and actively hurting the rest. Shame.

P.S. Come on, they clearly set up Phoebe as a smart one, why is it that Trevor comes up with a bright idea near the end, and Phoebe just charges guns blazing? I guess they realized he is pretty useless otherwise and tried to give him something to do, but they could, for example, make him save the day by doing something risky instead.

Hailing

Jun. 14th, 2021 10:33 pm
migmit: (Default)
Some people have this weird belief that they have to finish a book even if they don't like it. Simply because they started it. I don't believe that. I usually stop reading after becoming certain that this is not a good book.

But I made an exception recently, with the book "Project Hail Mary" by Andy Weir. And the reason for this was that I love his first book, "The Martian". To give credit where credit's due, it did improve near the end, although it was too late.

I've learned about it from [personal profile] dastapov, who gave it five stars out of five. My own rating is two stars — not a terrible book, but a somewhat unpleasant experience.

Let me briefly discuss the problems I see with "PHM", and compare it (unfavorably) to "The Martian".

1) Stakes

Stakes are much higher in "PHM", which, on a surface, seems like a good thing. In reality, however, it's not. Stakes are high, but they are also impersonal. Saving the world is not as engaging as saving one human being. Mark Watney was trying to save himself — and later the whole Earth joined in. Dr. Grace in "PHM" tries to save the world, while accepting that he himself is not going to make it. It's specifically mentioned that he has no family, no loved ones; the only more or less personal connection he has to the world is his students — he works as a school teacher — and even they aren't really developed. Watney's story in "The Martian" was a desperate fight; Grace's story in "PHM" is a dry report.

2) Suspension of disbelief

Both "PHM" and "The Martian" present themselves as hard sci-fi. But in "The Martian" the only thing that disagreed with the real world was, basically, money. Pretty much everything was possible in the real world, if only NASA had much more money than they actually do.

I'm not saying that hard sci-fi should be like that; it's perfectly fine to invent something that doesn't — and probably can't — really exist. But "PHM" has loads of things like that. There is Astrophage — which drives the plot, and is, therefore, fine. There is the solution to Astrophage problem, discovered at the end — OK, well, it is in the same ballpark, so, I'll let it slide. But there is also xenonite, which is something impossible that isn't related to Astrophage at all. There is all the stuff surrounding Eridan. There is a long sleep, and also the rare genes that make it possible. There are just too many things that we are supposed to just accept. Neither of those things is breaking the suspension of disbelief, but, bit by bit, they erode it. And then there are some assumptions that I found impossible to accept. I mean, I can believe (with effort) that the fate of the whole world would depend on Roskosmos not messing up; but I can't believe, no matter how much I try, that in the end it would work out fine.

Another weird side-effect is that "science-ing it out" doesn't really work, since there are too many deviations from the reality. In "The Martian" that was the crux of the story; here it feels forced.

3) Flashbacks

Flashbacks are certainly a useful storytelling device, but in "PHM" it's overused to a ridiculous degree. What's more, they actually hurt the story. We are introduced to a bunch of characters, but, since Grace is alone in the story proper, we know they won't matter. We get a bunch of events, but we know what the end result is going to be. And the framing device for those flashbacks is pathetic — they are presented as the main character's memories that come back to him after a partial amnesia he suffered. Problem is, they don't affect the main character's actions; in essense, they are infodumps. And having half of your story being infodumps is not a great idea.

In "The Martian" there is really just one flashback, but it doesn't just fill the blanks; it introduces us to a bunch of characters who then show up in the main story, and play a big part in it. We learn of their respective characters, and they stay true to those characters. In "PHM" the only link between the main story and the flashbacks is Dr.Grace himself. And we don't really learn anything. There is a half-hearted attempt near the end to reveal something about Grace we didn't know before, but it doesn't really fit, and his modus operandi doesn't change after that reveal.

4) Mistakes

Normally, scientific mistakes are not a big deal. There are a few in "The Martian" as well. However, when a book is not really enaging, it's hard not to notice those mistakes, and they make the reader feel like the author didn't do his homework. One is especially jarring, since it is so fundamental: in one of the flashbacks the protagonist learns that Astrophages, after consuming 1.5 megajoules of energy, becomes 17 nanograms heavier, agreeing with E=mc2 equation. He concludes from that that Astrophages convert energy to matter. But in reality anything that consumes that much energy would become that much heavier. Car battery becomes a little bit heavier when charged. A kettle becomes a little bit heavier when boiling (and loses much more matter through evaporation, but that's another story). The proper reaction to that measurement should be "of course, what's your point?"

As for non-scientific mistakes, well, at some point there is a lawsuit brought against the world-saving agency, since they are planning to send a lot of information with the astronauts, basically every bit of knowledge available, and much of it is copyrighted. The agency boss mentions that she has a preemptive pardon from the President. I'm not a lawyer, but I don't think that's how it works. I don't think presidential pardon has anything to do with a civil lawsuit.

5) Point of view

In "The Martian" most of the story is told by Mark Watney. But, when necessary, the story becomes third-person, and tells us about things that Mark could not know. Those transitions are handled pretty well, with Mark not becoming suddenly aware of the things that happen elsewhere, but just continuing from where we left him. But in "PHM" Weir kinda wrote himself into a corner. Because of the chosen framing device, Grace has to be present at every event mentioned in the book. As a result, he is dragged around to various meetings and even into a courtroom for no good reason. His boss frequently mentions her desire to do everything as efficiently as possible — for a good reason — but it becomes extremely obvious that those just disrupt Grace's own work, and have no reason to exist other than to tell us what was going on before the story started. And some of them exist for no reason at all, like the aforementioned courtroom scene — it adds absolutely nothing to the story.

Sometimes the limitations of the framing device just don't allow Weir to explain things properly. Like, who is that woman in charge of the international world-saving effort? We get a throwaway line about her being put in charge by the UN, and that's it. We get no explanation about why she was chosen. It doesn't seem like she is an important politician, or a high-ranking military leader. She is just there. Explaining all of it through Grace's eyes is possible, but probably difficult, and so we are left with no explanation at all.

Bottom line. It seems to me that Andy Weir is a type of guy who works best when he works for fun. His Casey and Andy webcomic is really entertaining, and, as I mentioned once or twice, "The Martian" is a great book that was originally written for fun. "Project Hail Mary" is a book written for a paycheck, and it kinda shows.

Vaccinating

Mar. 3rd, 2021 12:00 pm
migmit: (Default)
Source: https://bkaree.tumblr.com/post/644593798334332928/korompai-edömér-munkanélküli-géplakatos-hobbi-dj (not sure if it is the original)

Currently unemployed car mechanic Edömér Korompai, amateur DJ, virologist, and space researcher, did not get vaccinated, because according to him the live virus isn't dangerous, but its dormant form might have side effects 20 years later. Edömér also added that the virus passes through the mask easily, but oxigen doesn't.

Yoga instructor Rozália Karvalypusztai, who also does acupuncture in her free time, did not get vaccinated, because she doesn't believe the official epidemiological data, but only that the person's health is regulated by seven main chakras, and that we only get sick if our auras are full of negative energy.

Sándor Pelikán, health guru and the owner of a bio-stores chain, did not get vaccinated, because according to him the pharmaceutical industry is only about money. In his stores GMO-free Himalayan salt is $60/kg, and vitamin-C rich pills are 20$ for 50.

Marika, widow of József Kulipintyó, accountant, did not get vaccinated, because according to her there is no pandemic, the media simply lies. She read about it on knowledge-hurts.com, which always publishes the truth.

The Facebook troll behind the page called "Cuc Umber, Mrs Zsolt Mor", UFO researcher, did not get vaccinated, because according to her vaccines did not get proper testing. Instead, if she gets sick, she plans to treat herself with bug spray, which wasn't tested at all.

Izolda Kovács-Horváth, full-time mom/blogger/influencer and influenza spreader, did not get vaccinated, because according to her every illness is to be endured, so that we don't get sick.

Zsolt Barankó, bodyguard, security guard, and society informer, did not get vaccinated, because a lot of people died from flu as well. He failed to explain the logic that leads from one to the other.

Unknown person behind the Facebook page "Dragon Targaryen", amateur politologist, did not get vaccinated, because according to them, Viktor Orbán falsifies all epidemiological data (unless it's Ferenc Gyurcsány who does it1). Yes, foreign data as well. They just bribed all those people to die.

Imola Nagy-Zoárd, nail extension master, did not get vaccinated, because she is afraid that CIA would get all the information about everything she does via a chip in the vaccine. She posted about that from her smartphone to Facebook, Instagram, Twitter, Pinterest, and Snapchat.



1 Viktor Orbán — current prime minister of Hungary. Ferenc Gyurcsány — one of his predecessors, who is responsible for everything that goes wrong nowadays.
migmit: (Default)
I'm playing with a certain pet project, an iOS app. I started wondering if it's possible to handle copy-pasting from Notes.app, while preserving some formatting. Here's what I've got:

1) Using a string (as in, UIPasteboard.general.string) keeps indentation, and even checkboxes are represented normally, with [ ] for an unchecked item, and [x] for a checked one. Unfortunately, you lose even the most basic formatting, like bold/italic
2) Using RTF representation from the same pasteboard (which is inconsistent — iOS Notes.app generally adds a RTFD format, while macOS prefers RTF) doesn't even give you information about indentation. Well, not exactly: information is there, but it is in textLists property, which is not available on iOS without hacking.
3) Using HTML representation does give you some information about indentation (in form of tab positions, but whatever, they are available on iOS), and, of course, about fonts (including bold/italic stuff), but loses the checkboxes. That's right, we can't reliably figure out which boxes are checked, and which aren't.
4) Most interesting: Notes.app internal pasteboard format. It's not documented, and, probably, isn't supposed to be used by others; but that is not a reason why you shouldn't.
So, we start by getting the data:
if let data = UIPasteboard.general.data(forPasteboardType: "com.apple.notes.richtext") {

But then all we have is some binary data. Inspecting that data showed that it's a property list, in binary format. I've converted that binary list to XML format and looked at it in the text editor — it appeared to be a keyed archive. There is a standard tool for those: NSKeyedUnarchiver. There is just one problem: the whole serialized data seems to be of an internal, non-exported type ICNotePasteboardData. But there is a simple remedy for those: we can substitute one type for another. And, meditating on the XML property list, I realized that there is only one part of it that might contain something interesting. So, what it boiled down to is this:
class FakeNotesData: NSObject, NSCoding {
│   var attributedStringData: Data?
│   required init?(coder: NSCoder) {
│   │   attributedStringData = coder.decodeObject(forKey: "attributedStringData") as? Data
│   }
│   func encode(with coder: NSCoder) {
│   │   if let data = attributedStringData {coder.encode(data, forKey: "attributedStringData")}
│   }
}

let keyed = try! NSKeyedUnarchiver(forReadingFrom: data)
keyed.requiresSecureCoding = false
keyed.setClass(FakeNotesData.self, forClassName: "ICNotePasteboardData")
if let obj = keyed.decodeObject(forKey: NSKeyedArchiveRootObjectKey) as? FakeNotesData,
│  let attributedStringData = obj.attributedStringData
{

But, unfortunately, this attributedStringData is just another (smaller) chunk of binary data. However, just printing it out as a string, I've noticed immediately that part of it is just the text I copied, without any formatting or indentation. Other parts seemed to be garbage. So, I converted the whole data into a hex string and started digging deeper.

It really helped that a few years ago I worked with Google's protobuf (specifically, I worked on removing it from our system). So, it took me a while, but I realized that this binary data is nothing but a protobuf-serialized message. I've even written a simple protobuf spec for it:
message PasteInfo {
  required string str = 2; // UTF-8
  repeated ChunkInfo chunks = 5;
  repeated AttachmentInfo attachments = 6;
}
message ChunkInfo {
  required uint64 length = 1;
  optional ParagraphStyle paragraphStyle = 2;
  optional float textSize = 3;
  optional TextStyle textStyle = 5;
  optional bool isUnderlined = 6 [default = false];
  optional bool isStrikethrough = 7 [default = false];
  optional int64 baselineOffset = 8; // 1 for superscripts, -1 for subscripts; yes, they didn't use sint for that
  optional Color color = 10;
  optional Attachment attachment = 12;
}
message ParagraphStyle {
  optional ParagraphType paragraphType = 1;
  optional Alignment alignment = 2 [default = LEFT];
  optional WritingDirection writingDirection = 3 [default = LTR];
  optional uint64 listDepth = 4 [default = 0];
  optional CheckedListInfo checkedListInfo = 5;
  optional uint64 startNumberingFrom = 7; // not sure about that
}
enum TextStyle { // could be a bitmask?
  BOLD = 1;
  ITALIC = 2;
  BOLD_ITALIC = 3;
}
enum ParagraphType {
  TITLE = 0;
  HEADING = 1;
  SUBHEADING = 2;
  BULLETED = 0x64;
  DASHED = 0x65;
  NUMBERED = 0x66;
  CHECKLIST = 0x67;
}
message CheckedListInfo {
  optional bytes unknown = 1; // seems always present, with opaque 128-bit values — maybe GUIDs
  required bool isChecked = 2;
}
message Attachment {
  required string guid = 1;
  required string type = 2; // reverse domain name
}
message AttachmentInfo {
  required string guid = 2;
  optional string content = 6;
  required string type = 8; // reverse domain name
  optional fixed64 unknown_ptr = 17; // probably a pointer to somewhere inside Notes.app
  optional uint64 unknown_int = 25; // seems always present, with value 2
}
enum Alignment {
  LEFT = 0;
  CENTER = 1;
  RIGHT = 2;
  JUSTIFY = 3;
}
enum WritingDirection {
  LTR = 0;
  DEFAULT = 1;
  RTL = 2;
}
message Color {
  required float red = 1;
  required float green = 2;
  required float blue = 3;
  required float alpha = 4;
}

So, now it seems that I have all the details I wanted: indentation (as list depth), basic bold/italic formatting, and checkboxes.

Word of caution: those chunks have no respect for paragraph boundaries. I've already encountered some cases where there are several chunks within one paragraph, with random splitting points (not like there is some change there), or chunks spreading through several paragraphs that share the same formatting style (even several list items, even several numbered list items). But parsing that doesn't seem complicated.

Notes.app has a lot of features, and I'm sure this simple format misses many of those; but that's already quite interesting, I think.

There is one more sad thing about it: looks like it's impossible to reliably extract table dimensions from this. Tables are represented as attachments (with a "com.apple.notes.table" type) , so we have GUIDs, which, presumably, can be used to get information from iCloud, and we have something that looks like an internal pointer in Notes.app, but not much more.

Norwaying

Dec. 6th, 2019 04:51 pm
migmit: (Default)
In August I took a trip to Oslo, Norway. For some reason not clear to myself I delayed posting the pictures I've taken on the way until now. Yes, I'm slow. But here they are, carefully selected; click on them to see small details if you like:
Read more... )

Breaching

Oct. 22nd, 2019 06:51 pm
migmit: (Default)
I've just got confirmation of my bias (read: hatred) of messengers that ask for a phone number.

Specifically, Viber just told me somebody whose phone number was in my contacts changed their number.

Now, I've never ever had a Viber conversation with that person. I didn't know they had Viber in the first place. I'm pretty certain that person never thought of notifying me of their number change; I'm not sure I'm still in their contact list (maybe I am, maybe not). Why the hell did Viber tell me? While it's definitely not the case here, sometimes people change their phone number to escape an annoying caller. That's a serious breach of trust, people.

Patterning

Jun. 24th, 2019 08:49 pm
migmit: (Default)
You know, it seems like this thing is repeated often enough — not sure if anybody noticed this before.

Here it is: let's look at The Matrix. What we have here is a very solid first movie — that could just stop there, it did not require sequels. Then there was a second movie, which would be pretty forgettable, if it didn't have a very well done action sequence — the highway chase (and I don't mean Neo's antics going in parallel to that, those were totally pointless). And then there was a third one, which is a total mess that looks like it was drunkenly assembled from various parts pulled out of a recycle bin — and I don't mean that icon on the Windows desktop.

Then there are Pirates of the Caribbean. A very solid first movie, that could stop just there and did not require sequels. Then a second movie, which would be pretty forgettable if it didn't have a very well done action sequence — this time a three-way duel. And then — a third one, which is a recycled mess again. They didn't stop there either, but everything else is more or less an official fanfic.

And then there is How to Train Your Dragon. A very solid first movie that did not — you guessed it — require sequels. Then a second movie, which, again would be forgettable without an action sequence — Drago's attack on the Dragon Island. And, capping it, a recycled mess.

So, is it some law about that? Or a mind-controlling alien switching between different directors and making them repeat the same structure? What's going on?
migmit: (Default)
About nine months ago I've posted some pictures I've taken in Stockholm. Among them, there was this one:


And I was wondering what are those batons for. Well, today I was semi-randomly browsing and got an answer.

They forewarn the drivers that their car is too tall and won't fit in the tunnel/gate/whatever it is a few meters ahead. And that "ahead" happens to be not in the picture — probably behind me when I was taking it. So, if you drive a big truck and try to go there, you'll likely see how those batons bang on your windshield, or hear them doing the same with your carriage. Won't damage your car, like the tunnel/gate/whatever walls would.

Switching

Jan. 23rd, 2019 11:30 am
migmit: (Default)
I'm contemplating switching to Android. So, first of all: are there good RSS readers for that platform? I use Reeder on iOS, but so far failed to find a decent replacement for the green trashcan. Specifically, here's what I mean by "decent":

1. It should work with Feedly. At least read; I can go to the website to add a new feed (it doesn't happen often), but I'd like that change to be immediately reflected in the reader.
2. It should be able to display not just images, but also their "title" text. Especially on XKCD.
3. Um... that's it, basically.

So far I chose FeedR, but it has a weird quirk: if I rotate the phone, it seems to automatically mark the current article as "read" and remove it from my view, which, among other things, defeats the purpose of rotating the phone in the first place.

Any suggestions?

Update: found one. It's called Daily Feed.
migmit: (Default)
On Wednesday I only had a plan for the evening, so, I wanted to walk around some more. Looks like pigeons are doing pretty good.
051

Soldiers, walking around the king's castle.
052

Followed by some more realistically-looking soldiers... except what's with their boots?
053

Walking around, I found myself at the zoo entrance. I did not expect that.
054

Holy family.
055

Somebody making a splash.
056

Oh, it's those guys.
057

Probably the nicest statue of a bear I've seen.
058

Live bears weren't so easy to photograph. Their place is gigantic.
059

Piglet and his family.
060

The wolf didn't mind being photographed.
061

Some wild goats, I guess.
062

I'm pretty sure that's a sloth, but I've never saw his face.
063

I've also bought a ticket to aquarium, and was again right to do so: apparently, they also keep monkeys there.
064

Sleeping lemurs.
065

Same lemurs, from above.
066

Meerkat, standing guard. Or rather sitting.
067

There are some more traditional animals in the aquarium too.
068

They don't move too much.
069

This guy seems mildly annoyed by all the attention.
070

I don't remember who those are.
071

A house rat has a miniature house build for her.
072

Looks like real love.
073

A tiny frog.
074

Some of the inhabitants love being photographed.
075

That meerkat guard was not alone. He was keeping others safe.
076

I went back to the lemurs, even though though there were some "STOP" signs on the way.
077

And noticed a lemur mom with a kid.
078

That's my best picture of the Colobus. I have no idea who those people were and how they've got inside.
079

That was pretty much it. The zoo is not big, and most of its territory is taken by some old Swedish houses, not animals. Naturally, I went back to bears.
080

That was taken from the distance, so, the quality is not great; but the bear balancing on the side of the hammock had to be photographed.
081

On my way back I spotted this guy.
082

And this one just ran past me, so, I couldn't make a decent photo. There was no barrier between us whatsoever.
083

I walked in the city a little more, and noticed that signs at the crossing are sometimes different: one is of a man, another of a woman.
084

Maybe I've spent too much time watching lemurs, but this looks to me like a winged monkey, not an eagle it's supposed to be.
085

Another street sign — apparently, for a horse.
086

It's a nice place.
087

So, my plan for the evening was to visit the science museum. Apparently, there is a police museum nearby.
088

But the science museum was kinda disappointing. The best part was the hands-on experience, where visitors can see the applications of various scientific principles. We have something like this here, and our version is better.
089

The other part just displays various inventions.
090

On my way back I walked through the area with lots of embassies of various countries. This, of course, is the nicest:
091

I'm not sure if it's a gargoyle or a bulldog, but it looks very serious.
092

And then I found what is, apparently, a pedestrian tunnel.
093

It's fairly long, and some parts of it look a bit strange.
094

To be continued...