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://developers.notion.com/
Еще -1 эпоха. https://github.com/golang/go/issues/38968

Дополнительно уточню - заморозили, а не удалили. Работать будет, просто никто не хочет развивать. Поэтому еще раз golangci-lint & co
Новость чуть старая, но внезапно широкая. (RTOS - real-time OS)

Microsoft’s Section 52, the Azure Defender for IoT security research group, recently uncovered a series of critical memory allocation vulnerabilities in IoT and OT devices that adversaries could exploit to bypass security controls in order to execute malicious code or cause a system crash.

These remote code execution (RCE) vulnerabilities cover more than 25 CVEs and potentially affect a wide range of domains, from consumer and medical IoT to Industrial IoT, Operational Technology (OT), and industrial control systems.

All of these vulnerabilities stem from the usage of vulnerable memory functions such as malloc, calloc, realloc, memalign, valloc, pvalloc, and more. Our research shows that memory allocation implementations written throughout the years as part of IoT devices and embedded software have not incorporated proper input validations.

https://msrc-blog.microsoft.com/2021/04/29/badalloc-memory-allocation-vulnerabilities-could-affect-wide-range-of-iot-and-ot-devices-in-industrial-medical-and-enterprise-networks/

Твит с патчем не всего в Linux https://twitter.com/embeddedgus/status/1392725518022230017

Мда уж, memory is the new El Dorado of CVE.
Поехавшие. Не понимаю, как им удаётся завозить оптимизации до сих пор.

Хотя ПРы с уменьшением стека прикольные, вроде и понятно, а вроде и не приходилось сталкиваться. Хотя как-то был похожий кейз в Uber, годик-два назад. Правда в Go.

https://github.com/facebook/zstd/releases/tag/v1.5.0
Кто бы мог подумать, Apple даёт приватное API для больших фирм. Шок-сенсации.

С одной стороны обидно, с другой стороны даже честно (если у вас супер потребность - иди проси, и нам легче поддерживать, и вы ничего не натворите).

https://blog.thinktapwork.com/post/649630720084639744/ipad-camera-multitasking
Пришлось сделать клонилку репозиториев Github (захотелось собрать все сервисы по паттерну и посмотреть некоторые вещи).

В общем, за основу взял другой скрипт, ток добавил jq с паттерном на имя, спасибо конвенции называть репы с сервисами с префиксом.

Может кому-то пригодится, хз

https://gist.github.com/cristaloleg/9242e988ad6768873150bd4f6d1f232f
Observing my cellphone switch towers.

Сразу вспоминаются миссии Sleeping dogs с поиском человека по вышкам.

https://fabiensanglard.net/lte/index.html
Нашел какой-то тех список ишусов и патчей в Go. Эдакая Жыра для бедных реально работающих людей.

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

https://dev.golang.org/release#Go1.17
oleg_log
Проекту только полгода, а какие планы-то. Все конечно ощущается unsafe костылями, но оно того стоит. Не знаю как вам, а мне идея крайне нравится. Cosmopolitan makes C a build-once run-anywhere language, similar to Java, except it doesn't require interpreters…
Вот и v1 приехало.

Cosmopolitan Libc makes C a build-once run-anywhere language, like Java, except it doesn't need an interpreter or virtual machine. Instead, it reconfigures stock GCC and Clang to output a POSIX-approved polyglot format that runs natively on Linux + Mac + Windows + FreeBSD + OpenBSD + NetBSD + BIOS or UEFI with the best possible performance and the tiniest footprint imaginable.

https://github.com/jart/cosmopolitan/releases/tag/1.0
Отета зачет. Давайте добавим TextVar который может записать текст в переменную. Вариант с big.Int прям с жызы снят

var t time.Time
flag.TextVar(&t, "start_time", time.Now(), "Time to start processing at.")

or

var n big.Int
flag.TextVar(&n, "n", big.NewInt(3853882583591558728), "Run integer factorization for this number")

https://github.com/golang/go/issues/45754

Пайк даж не против, но вы там полайкайте)
This media is not supported in your browser
VIEW IN TELEGRAM
Ну не жеза ли? 😍
Мне тут по секрету сказали, что будем 1 митап и там будет Go с дженериками и ORM. Наличие Ruby в ссылке не моя сфера ответственности)

https://railsclub.timepad.ru/event/1561926/
Chad Strings - The Chad way to handle strings in C.

One str(...) macro to handle them all.

nt table = 13;
int id = 37;
str test1 = str("SELECT * FROM ", table, " where person_id ", id);
str test2 = str(test1); //copies test1 to test2
str test3 = str(test2, test1); // returns concat of test2 and test1

test2 = test1; // acceptable, but wrong since test2 now points to test1 not copies it.

str(*test1); // returns const char* to use in printf like functions
Ex: puts(str(*test1)); // prints test1;


https://github.com/skullchap/chadstr

500строк С-магии и макросов, малая цена ради такой красоты)
This media is not supported in your browser
VIEW IN TELEGRAM
FU Interface

На Experiments with Google подъехали первые эксперименты с TensorFlow Lite for Microcontrollers.

Например, интерфейс для управления девайсами через жесты пальцем.
TensorFlow + IMU sensor + Arduino.
Прожигать часы за скроллингом ленты на телеке стало еще удобнее. Каеф.

https://g.co/tfmicroexperiments
Люблю запускать swagger по утрам. Скорее это какая-то лажа докера, но ***** *** оно мне должно ноги жечь макбуком?
Forwarded from Generative Anton
Media is too big
VIEW IN TELEGRAM
Придумал шутку про GIL в Python.
- Что будет, если часы написать на Python?
- *видео*