oleg_log
1.72K subscribers
1.88K photos
131 videos
9 files
2.82K links
Shelter for antisocial programmers "Oleg"

halp: @olegkovalov
web: https://olegk.dev
fov: @oleg_fov
chat: @oleg_log_blabla
podcast: @generictalks
Download Telegram
Уязвимость старая, но идея еще жива. Просто оптимизирующий компилятор может сделать больше, чем от него просят. Хотя и справедливо...

https://www.redhat.com/en/blog/security-flaws-caused-compiler-optimizations
В блоге #go вышел новый пост про миграцию на модули:

ч1 и ч2 (март и август соотв)
https://blog.golang.org/using-go-modules
https://blog.golang.org/migrating-to-go-modules
A colleague had setup some machines to align configurations among each other, via a script (of course). This script has grown over and over, and now has parameters, options and configurations. For short: it's a big mess. Quite logic and readable actually (the guy was smart), assuming you have time and patience to go trough it.

This guy starts the configuration of some new servers then leaves in the middle. "Leaves" as in "leaves the company entirely". So the script does not work, and erases configurations instead. Luckly, the erasing happens after a daily backup.

So I had to fix this... But i was in the middle of 1400 other things, and the quickest way was to add another script to fix the mess created with a scrtipt with another script. So there came to be another script that restores the backups and aligns it.

So there's a big customer, an important company on a national scale, whose machines erase each other's configurations every day, and then the same machines restore each other every day. All within a daily maintenance window.

That thing has been working for a suprising number of months now.

I really don't want to touch it ever again
Как_блатные_заходят_на_проект.мп4
Не знал, что можно глянуть данные про модуль на sum.golang.org

(выдаст как на скрине)
https://sum.golang.org/lookup/gomodules.xyz/jsonpatch/v2@v2.0.1

А еще в #go есть переменная GOSUMDB в которую можно передать хост на свое хранилище чексумм (это в 1.13 вроде появится)

https://tip.golang.org/cmd/go/
Из жизни замечательных людей: на тернарный оператор нужно 3 пропозала за полгода.

Вот бы все эти потраченные серотонинные запасы на благое дело...

https://github.com/golang/go/issues/33171
https://github.com/golang/go/issues/31659
https://github.com/golang/go/issues/32860
Еще одна бесполезно-забавная фишечка в твитер.

vaguely reassuring state machines

https://twitter.com/happyautomata

Вот как надо (свою?) либку для автоматов на С рекламировать! https://github.com/katef/libfsm
oleg_log
Один из лучших материалов из раздела #ненормальное Всем давно известно, что шаблоны в спп Тюринг-полные, как майнкрафт и дварф фортресс, я даже хтмл+цсс знал, но....power point http://beza1e1.tuxen.de/articles/accidentally_turing_complete.html
Надо возродить подобные ненормальные штуки под тегом #ненормальное

В этот раз Ray tracing in Excel, спасибо Кириллу.

Небольшое описание https://www.reddit.com/r/gamedev/comments/ctf9f7/raytracing_in_excel_incl_excel_model_link_and/

видос (ВНИМАНИЕ ГРОМКОЕ 8БИТНОЕ МУЗЛО)
https://www.youtube.com/watch?v=m28jJ7CMp8A&feature=youtu.be

Ну и гитхаб (у меня в гуглдок не открылось, а вот быстрое открытие с гугл драйва внезапно заработало, правда оч медленно, сюда форварднуло https://speedtesting.herokuapp.com/)
https://github.com/s0lly/Raytracer-In-Excel
В слаке нет проверки ввода для кастомных стилей.

Хм, а ведь красиво, а ведь работает.

https://t.me/fault_13/12

UPD: вставлять нужно в какой-то цвет, последнее поле ввода это для расшаривания (там и написано).

пример с ъуъ https://t.me/fault_13/14
Может помните, раньше была шуточка (из 2009 и ранее):

^_^: Чего б ты щас хотел?
alias: честно?
^_^: Честно.
alias: делить на ноль

(дада, баш родимый https://bash.im/quote/403615)

Так я к чему, а, точно, как же далеко мы ушли в эти абстракции, и шутки про деление уже не так смешны.

Нам лучше подавай тукши пор канакренис, шутки про мл-дс или очередные подарки ямла. Стопталась землюшка, стопталась...
Отличное напоминание, что можно успешно сделать проект без микросервиса на каждый пук. Даже на питоне. Хотя время от комита до прода меня напрягает. Зачем так лететь?

Instagram Server is entirely Python powered. <...>. Our server app is a monolith, one big codebase of several million lines and a few thousand Django endpoints .

We have hundreds of engineers shipping hundreds of commits every day. We deploy those commits continuously, every seven minutes, typically deploying to production around a hundred times per day. We aim to keep less than an hour of latency between a commit landing in master and going live in production.

Статья вообще про анализ кода (неоч интересная по себе) https://instagram-engineering.com/static-analysis-at-scale-an-instagram-story-8f498ab71a0c
7.11 trillion calls to the DynamoDB API, peaking at 45.4 million requests per second, during 48 hours of Prime Day. Amazon Aurora also supports the network of Amazon fulfillment centers. On Prime Day, 1,900 database instances processed 148 billion transactions, stored 609 terabytes of data, and transferred 306 terabytes of data. The EBS team added an additional 63 petabytes of storage ahead of Prime Day; the resulting fleet handled 2.1 trillion requests per day and transferred 185 petabytes of data per day.

https://aws.amazon.com/blogs/aws/amazon-prime-day-2019-powered-by-aws/
Nu Shell - A modern, GitHub-era shell written in Rust

https://github.com/nushell/nushell

https://t.me/sysadmin_tools/2082 ❤️
This media is not supported in your browser
VIEW IN TELEGRAM
k8s distribution be like:
Из жизни одного кластера в гугле. Инфа вроде старенькая (до 2012 вроде)(ссыль на слайды не дам, ибо скрин из лс)
Tproger вчера запостил (https://t.me/tproger_web/193) awesome-список, посвящённый мобильной web-разработке, который я веду больше года. Там есть разные статьи, книги и инструменты, которые могут помочь в создании быстрого mobile-friendly сайта. Рекомендую посмотреть подборку всем web-разработчикам, так как пользователей интернета сейчас больше всего именно на мобильных платформах.

#mobile #list

https://github.com/myshov/awesome-mobile-web-development
Forwarded from distraction