juan_gandhi: (Default)
Juan-Carlos Gandhi ([personal profile] juan_gandhi) wrote2023-02-27 09:34 pm
Entry tags:

dybr

Adventure day. While I was waiting for a review, I was throwing in more updates, including creating all the tables in the db, if missing, and populating them, if data are missing. Turned out, I want some data to come from a config, where it is encrypted, and keep it encrypted. Does not seem like doable with the current config library from typesafe. Whatever. Will find something.

Had a 1-1 with Jacob, pretty short, everything's fine? everything's fine.

While I was working on my shit, tests stopped running, because there was not enough disk space in the postgres machine. Omfg. Wrote to our devops people or something. Karen answered that we can ssh in there and check.

Karen approved my stuff, except for a typo in an exception message, which she suggested to fix; I did. And kaboom, the tests in Jenkins all failed too. I mean, the integration tests.

I was in panic. Ok, I looked through the code.
Problems:
- these integration tests were not running for over a year;
- every test case creates a new db;
- dropping that db was in a wrong branch of the code, so they all stayed.

Fck. Ok, so... what I did. Wait, it was not easy.

I could not even ping the pg db. Why? No vpn. Why? FIIK, my AT&T was blocking it or something.
So I collected via my phone.

Then I had to extract the db password, which was hiding encrypted in a config file. For that, I knew how to do it, run the code in debugger, and voilà. But it did not run, IntelliJ was just hanging, taking 370% of my cores. Had to kill it, restart it, run the debugger, found the password, remembered it forever, and voilà.

So, what I did.

- installed psql (some ancient knowledge)
- found the trick how to do bulk `DROP DATABASE`
- dropped all 308 of those test databases.

Profit. But github did not recognize a rerun in jenkins, so I had to add another empty line in a .sql file, commit it, and profit.

Ok, I have just two days left to finish this functionality.

Oh, and by the way, I'm also on pager duty, answering and confirming all those "limits exceeded" failures.

What I will do. Check that the db deletion works. Maybe merge some test cases into bigger ones (not nice).
And tomorrow I'll have to finish this db preparation part (all tests are already there), because when it comes to prod, I really don't want to log in and start manipulating the prod db manually. No.

So, what do you think. I find it all funny and entertaining.
juan_gandhi: (Default)
Juan-Carlos Gandhi ([personal profile] juan_gandhi) wrote2023-03-01 10:51 pm
Entry tags:

dybr

 Oh, I was working all day and just finished it (pushing my shit to github).

What was going on: Postgres, handled via Slick, was hanging on certain operations. Giving it 15 seconds or something did not help. More, psql was hanging on connection. Meaning that connections were interfering. Really not my area of expertise, yet. Safa was supposed to be helpful, but well.

Anyway, now I know what happened.

Slick, when you call it, returns you a future. If you don't want to wait (why should you), you "chain it" with the next future. But the fucking truth is that it's a Scala Future. It launches right away. Which is not what I want to have, I want it start after the first one is finished, there's a dependency.

So, one solution would be to concatenate all those sqls in one big chunk, and execute; another would be to remember what I knew about Scala Futures and chain them properly. The third solution would be to use ZIO.

But wait, I can't seriously expect something different from Slick, it just returns you a launched future. I'll have to chain them via "onComplete".

Vaguely I remember dealing with this shit eons ago, no I have to fix it. Why would a promise help, I don't see. Oh, whatever. Tomorrow.

An alternative would be just use a regular CPS, since that's how it works. Not creating a future before the previous one started. That would be the sanest solution.
 
juan_gandhi: (Default)
Juan-Carlos Gandhi ([personal profile] juan_gandhi) wrote2025-11-29 05:57 pm
Entry tags:

В славном городе Éauze

Римляне называли этот городе Elusa








spamsink: (Default)
spamsink ([personal profile] spamsink) wrote2025-12-05 02:19 pm
Entry tags:

Удивительное рядом

Что меня последнее время удивляет, так это то, что хореографический фокус "Airwalk", основанный на зрительной иллюзии, изобрели не какие-нибудь там индийские факиры, или не какие-нибудь там уличные фокусники-акробаты в эпоху Возрождения, а совсем недавно.



Работает, понятное дело, только при бестеневом освещении. Когда есть тени от ног, иллюзия практически пропадает.
juan_gandhi: (Default)
Juan-Carlos Gandhi ([personal profile] juan_gandhi) wrote2025-12-05 05:04 pm

серия дурацких постов

Куда подевалися друзья в дискурсе вообще? 

Вот здесь любопытнейшая картинка частоты употребления слова "друг"

А вот здесь автор пишет, что сочетание "верный друг" вообще вышло из дискурса в нашем веке. Вместо этого водятся "личные друзья" (у диктаторов и богатеев) и "близкие друзья" - те избранные, что не через фесбук сконнектились, а в реале.

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

Но куда съебались все верные друзья в последние пару десятков лет - загадка! Что характерно, с friends всё практически буквально almost exactly наоборот.

Загадка!

 

 

juan_gandhi: (Default)
Juan-Carlos Gandhi ([personal profile] juan_gandhi) wrote2025-12-05 03:18 pm

лозунги

В СССР нам говорили, что народ и партия едины, и армия - плоть от плоти народа (хотя бы и крайняя). А мы не верили. А зря.
juan_gandhi: (Default)
Juan-Carlos Gandhi ([personal profile] juan_gandhi) wrote2025-12-04 12:55 pm
Entry tags:

Андрей Болотов, середина 18-го века...

 "Меня отвезли на Васильевский остров, а в тот же час и родитель мой с моею матерью, которая с сего времени его уже более и не видала, ибо судьбе было угодно, чтоб прощание их друг с другом было в сей раз последнее. Какое счастье для смертных, что они не знают ничего из будущего! Какими слезами не преисполнено б было сие расставание, а если б было известно, что оно последнее в жизни!"

source
juan_gandhi: (Default)
Juan-Carlos Gandhi ([personal profile] juan_gandhi) wrote2025-11-27 06:38 pm
Entry tags:
juan_gandhi: (Default)
Juan-Carlos Gandhi ([personal profile] juan_gandhi) wrote2025-12-03 08:12 pm
Entry tags:

ноябрь в наших краях

На мосту Барле 18 ноября


На мосту Барле 25 ноября


В полях


juan_gandhi: (Default)
Juan-Carlos Gandhi ([personal profile] juan_gandhi) wrote2025-11-16 03:11 pm
Entry tags:
juan_gandhi: (Default)
Juan-Carlos Gandhi ([personal profile] juan_gandhi) wrote2025-12-01 01:46 pm
Entry tags:

not sure if anybody would be interested

But this article: https://www.sciencedirect.com/science/article/pii/S0304397520305259?via%3Dihub talks nicely about "computational monad for untyped lambda in a ccc" introduced by Moggi, rather long ago 
juan_gandhi: (Default)
Juan-Carlos Gandhi ([personal profile] juan_gandhi) wrote2025-11-30 11:31 am

какая-то у дрима жопа сегодня

постинг вообще через жопу

Фиксится, ежели ты через index.html зайдёшь на дрим, вылогинишься, залогинишься, тогда он тебя начнёт узнавать.
juan_gandhi: (Default)
Juan-Carlos Gandhi ([personal profile] juan_gandhi) wrote2025-11-15 12:46 pm
Entry tags:
juan_gandhi: (Default)
Juan-Carlos Gandhi ([personal profile] juan_gandhi) wrote2025-11-15 12:42 pm
Entry tags:
denise: Image: Me, facing away from camera, on top of the Castel Sant'Angelo in Rome (Default)
Denise ([staff profile] denise) wrote in [site community profile] dw_news2025-11-30 02:42 am

Look! I remembered to post before December started this year!

Hello, friends! It's about to be December again, and you know what that means: the fact I am posting this actually before December 1 means [staff profile] karzilla reminded me about the existence of linear time again. Wait, no -- well, yes, but also -- okay, look, let me back up and start again: it's almost December, and that means it's time for our annual December holiday points bonus.

The standard explanation: For the entire month of December, all orders made in the Shop of points and paid time, either for you or as a gift for a friend, will have 10% of your completed cart total sent to you in points when you finish the transaction. For instance, if you buy an order of 12 months of paid time for $35 (350 points), you'll get 35 points when the order is complete, to use on a future purchase.

The fine print and much more behind this cut! )

Thank you, in short, for being the best possible users any social media site could possibly ever hope for. I'm probably in danger of crossing the Sappiness Line if I haven't already, but you all make everything worth it.

On behalf of Mark, Jen, Robby, and our team of awesome volunteers, and to each and every one of you, whether you've been with us on this wild ride since the beginning or just signed up last week, I'm wishing you all a very happy set of end-of-year holidays, whichever ones you celebrate, and hoping for all of you that your 2026 is full of kindness, determination, empathy, and a hell of a lot more luck than we've all had lately. Let's go.
juan_gandhi: (Default)
Juan-Carlos Gandhi ([personal profile] juan_gandhi) wrote2025-11-29 06:32 pm

серия дурацких постов

Я собрался задавать всякие дурацкие вопросы, начитавшись дурацкого Сартра и фрустрируясь поэтому (по поводу).

1. Мы тут все собрались такие умные и хорошие. И нам всем за пятьдесят, так? Кому-то и сильно больше.

Так вот, я что понял. Если с generation X у меня коммуникация вполне нормальная (ну или спасибо моим детям, что открыли мне этот канал), то следующие поколения для меня полная загадка. Полная. Скажем так - а чо они молчат-то? И где они вообще? Какая у них мотивация? Что им вообще надо? Загадка. Мы пытаемся догадываться - но не получается. Причём, на линктине где-нибудь, или на твиттере разговор поверхностный, но вполне нормальный; я как бы понимаю, что они имеют в виду, а они иногда понимают, что я имею в виду. Но всё равно, в целом-то - как разные вселенные.

Или у вас, у собравшихся, всё нормально, есть раппорт, вы их понимаете, а они вас? Не, я не скучаю, у меня есть с кем поговорить, но вот это вот странная тема, когда я вдруг понял, что ха, тут какая-то стена.

При этом, на работе возрастные различия, по мне так, не играли никакой роли. Играли роль кастовые различия. (Боже упаси я бы моим индийским коллегам рассказал, кем работал мой дедушка после раскулачивания.) Но возраст тогда был фигня; сотрудничали только так.

Вот. Загадка. Хотя и досужая.

juan_gandhi: (Default)
Juan-Carlos Gandhi ([personal profile] juan_gandhi) wrote2025-11-28 11:39 am
Entry tags:

11 ноября. Вечер в Гоаляре

На горизонте - Пиренеи.





juan_gandhi: (Default)
Juan-Carlos Gandhi ([personal profile] juan_gandhi) wrote2025-11-25 09:26 pm
Entry tags:

сколько пунктов?

Сегодня Европа, и лично пан Зеленський, порадовали нас своими 19 кондициями.

Между тем, только что, на ютьбе, по CBS (WJZ, CBS Baltimore, @WJZ13TV) услышал, что в Абу Даби Марко Рубио обсуждает с российской делегацией их план капитуляции Украины в 28 пунктах.

Я думаю, мы и не заметили, как оказались во множественных вселенных. Ну в смысле, мы, телезрители.

Или... или на ютьюбе поддельная CBS?

Update. The CBS is real: https://abcnews.go.com/Politics/us-holds-secret-meetings-russians-abu-dhabi-ukraine/story?id=127840867
spamsink: (Default)
spamsink ([personal profile] spamsink) wrote2025-11-24 08:14 pm
Entry tags:

Мнемозине привет передавайте




Вы помните, как будет по-итальянски "рогатка"?
Вы поняли, почему выделенное слово именно такое?
Если ответ не "нет, нет", то сколько вам лет?


spamsink: (Default)
spamsink ([personal profile] spamsink) wrote2025-11-24 10:52 am
Entry tags: