ar
Feedback

لا تقع ضحية للمخادعين! تيليمتريو يكتشف ويُميّز هذه القنوات 👉 إذا كنت تريد رؤية العلامة، اشترك

samdark blog ☕️ (Alexander Makarov)

samdark blog ☕️ (Alexander Makarov)

الذهاب إلى القناة على Telegram

Notes taken by Alexander Makarov, lead of Yii framework, CTO of Twindo.ai and a long term IT engineering manager. - Official Yii updates: www.yiiframework.com - Consulting: asapirl.com

إظهار المزيد
1 640
المشتركون
-224 ساعات
-27 أيام
+330 أيام
أرشيف المشاركات
🔶 Стратоплан - Технический директор. Управление технологиями и людьми - №2 Продолжаю обучение в стратоплане по курсу CTO. Второй блок назывался «сложные переговоры», вёл его Антон Корчинский. Для меня это был один из самых интересных блоков, который показал что переговоры мне, в общем, даются. Теория, была, но её было немного. Практики было гораздо больше: делились на группы, играли роли, готовились, планировали и вели настоящие переговоры. Очень-очень интенсивно. По ходу я делал заметки: 1. Записывай! Память дырявая. 2. Подготовка к переговорам — больше чем половина успеха. 3. С долгосрочным партнёром стремись только к win-win. Остальные варианты — одноразовые. 🔸День первый — подготовка и поле переговоров Подготовка — это не только «чего я хочу?». До встречи нужно ответить на много вопросов: с кем вести переговоры, кто реально принимает решение, кто влияет за пределами комнаты, когда начинать разговор, кто должен присутствовать и что должно произойти до основной встречи. Часть переговоров выигрывается или проигрывается ещё до первого оффера. Базовые понятия: BATNA — лучшая альтернатива соглашению, WATNA — худшая альтернатива, ZOPA — диапазон, в котором интересы сторон пересекаются и сделка возможна. Чем сильнее BATNA, тем меньше зависимость от конкретной сделки. Если ZOPA нет — меняй параметры сделки или саму конфигурацию переговоров. Поле переговоров нужно расширять. Ценность не отдают, ей обмениваются: не «хорошо, дадим ещё 5% скидки», а «если мы идём на X, что меняется с вашей стороны?». Менять можно переменные обмена: цена ↔️ объём срок ↔️ срок договора SLA ↔️ стоимость эксклюзивность ↔️ гарантированный объём и так далее... Уступка без встречного движения — подарок. Не всегда плохо, но и не сильно полезно. Важен фрейминг: от того, как сформулирован вопрос, зависит, о чём вообще спор. «Почему так дорого?» — вторая сторона уходит в защиту. «Как будет считаться стоимость, когда клубов станет 110?» — разговор переходит в устройство контракта, где и спрятаны деньги. Цифры те же, реакция другая. Риск: если новая рамка не отражает суть, вас сочтут манипулятором. 🔸День второй — практика Тренировочные переговоры. Для себя я зафиксировал три точки перед входом в переговоры: "не повестись", узнать что происходит, принять решение. Структура переговоров с курса: 1. Позитивный контакт. 2. Якорь, фрейминг, правила процесса. 3. Вопросы, исследование поля интересов и торга другой стороны. 4. MESO — несколько равноценных предложений одновременно. 5. Конструируем итоговую сделку, фиксируем проговоренное. 6. Фиксируем следующие шаги и фоллоу-ап, приятно закрываем диалог. Дальше были сложные ситуации и давление. Один из участников идеально отыграл "гопника", который сыпал манипуляциями, был агрессивен и явно стремился выиграть любой ценой. С ним было предельно не комфортно. После занятий была обратная связь от наблюдателей: что удалось и что ещё можно было сделать. Это, пожалуй, самая ценная часть таких разминок. 🔸Что почитать 1. Ричард Шелл — «Удачные переговоры. Уортонский метод» (Bargaining for Advantage) 2. Крис Восс, Тал Раз — «Я слышу вас насквозь. 3. Эффективная техника переговоров» (Never Split the Difference) 4. Джим Кэмпп — «Сначала скажите "нет"» (Start with NO) 5. Стюарт Даймонд — «Успешные переговоры. Как получить больше» 6. Максим Роменский — «Переговоры с дельфинами»: очень конкретно, держит внимание. Три стиля переговорщиков — жёсткий (и это норм), «гопник» и конструктив. #cto #стратоплан #переговоры
21 نوفمبر, 11:47

Update your PHP and nginx Another PHP patch came out so please update ASAP. Also, if you're using nginx, you need to upgrade as well. #php #nginx
19 نوفمبر, 13:09

🐞Java4Shell Remember PHP vulnerability? Well, now it's Java time. Same class of issue in OpenJDK's Base64 decoder. Found by
🐞Java4Shell Remember PHP vulnerability? Well, now it's Java time. Same class of issue in OpenJDK's Base64 decoder. Found by the same company who co-discovered PHP
18 نوفمبر, 16:33

🎁 PHP 8.6 Will be officially released tomorrow. My favorites are: - \Time\Duration. Was really missing it in my apps. - Poll
🎁 PHP 8.6 Will be officially released tomorrow. My favorites are: - \Time\Duration. Was really missing it in my apps. - Polling API. Great for even loop servers. Will definitely use that for YiiPress. - JSON error messages now include the location of the error in the input. Finally! - Performance. Among other things they've made json_encode() even faster. And that one was already quite good. https://www.php.net/releases/8.6/en.php #php
18 نوفمبر, 06:46

🤔 Daniel Stenberg on OpenSource value curl author wrote and article called "Actual curl rewrites in Rust" with his thought a
🤔 Daniel Stenberg on OpenSource value curl author wrote and article called "Actual curl rewrites in Rust" with his thought about "rewrite X in Rust" recent hype. Here ' I don’t believe in rewrites into any language. I believe in constant and never-ending polishing, iterating and refactoring.
17 نوفمبر, 14:05

🐞PHP Debugger Derick Rethans, Xdebug author, is actively developing an experimental fork of Xdebug with code coverage, profi
🐞PHP Debugger Derick Rethans, Xdebug author, is actively developing an experimental fork of Xdebug with code coverage, profiling and tracing removed. The main benefit of it is almost no performance overhead. There is also new DBGp client that includes an MCP server. This one should be compatible with Xdebug as well. https://php-debugger.dev/ #php #xdebug #debugger
17 نوفمبر, 00:00

⏱️ Tally by PHPStan Tally is a new PHP benchmarking tool from the PHPStan team. It doesn’t measure time but instead counts instructions, CPU cycles and memory, so a slow or busy CI machine doesn’t change the result. You write the expected numbers right next to the benchmark using #[Expected] attributes, and they’re checked on every pull request, just like expected test output. If a benchmark goes over its tolerance, it’s marked slower and the run fails. Between two CI runs, instructions differed by at most 0.4% and memory didn’t change at all, so a failure means a real regression and not noise. It works well with agents. An agent gets a clear pass or fail signal instead of having to read noisy timing charts. tally accept writes the new numbers back into the source, so performance changes show up in the diff where they can be reviewed. Of course, that's not a full replacement of classic benchmarks bug a great addition to these. #php #phpstan #performance #benchmarks #ai
16 نوفمبر, 16:43

12 نوفمبر, 04:46

⌨️ Sputnik Split Keyboard Finished a hobby project. It's a corne-type split keyboard without wire in the middle (communicates
⌨️ Sputnik Split Keyboard Finished a hobby project. It's a corne-type split keyboard without wire in the middle (communicates via Bluetooth). The project created by Vostok Labs and is available at MakerWorld. It sounds surprisingly good and overall an interesting keyboard to use. Definitely not my type so I don't plan using it daily since I like more keys, not less keys. But the split itself is comfortable for the hands. Learned and improved in the process: 1. Soldering tricks. Mostly they are all in the Pinecil wiki but practice is needed to actually get it. 2. Upgraded Pinecil v2 to be able to connect to computer via Bluetooth and found PineSAM. 3. Printed a handy tip holder screw. 4. Got some extra tips for Pinecil (a big change!). 5. Built a heat insert press and learned to use it. I've also contributed a better soldering schema for the project. Did that one with the help of Claude in 3-4 corrective steps. #hardware #keyboards #corne #pinecil #3d
09 نوفمبر, 05:33

⚠️Check your Alpine installations Seems Alpine was accepting any 256+ characters for root login... https://sshhole.com/ #security #linux
05 نوفمبر, 08:46

PHP
03 نوفمبر, 15:09
03 نوفمبر, ~15:09

⚡️Yii3 support added to PHPantom LSP For reviews I've used PHPantom LSP and Zed since April and it was a good experience overall. Since then it became much easier to install. Zed's PHP extension picks it up automatically and you can install it without cloning the repository. Many issues were fixed and overall it feels close to being stable. Last week Anders Jenbo, author of the project, asked me about Yii3 support. After some feedback he implemented it. You can try it by manually updating from main branch:
cargo install --git https://github.com/PHPantom-dev/phpantom_lsp --branch main phpantom_lsp
Please provide feedback if you encounter any issues and suggest features you'd like to have. #yii3 #zed #lsp #phpantom
03 نوفمبر, 14:59

♻️ Freeing NVIDIA memory with built-in graphics I freed about 2.5 GB of NVIDIA video memory by moving KDE and desktop apps to
♻️ Freeing NVIDIA memory with built-in graphics I freed about 2.5 GB of NVIDIA video memory by moving KDE and desktop apps to my processor’s built-in AMD graphics. This leaves more memory for AI models and other heavy tasks. First, enable built-in graphics in BIOS. Both GPUs must stay enabled. My two monitors are still plugged into the RTX 4090. AMD draws the desktop, then sends the finished frames to NVIDIA to show on screen. This works with KDE’s Wayland session. To make KDE use AMD, create this directory if it doesn’t exist:
mkdir -p ~/.config/plasma-workspace/env
Create a file named amd-graphics.sh inside that folder and add:
export KWIN_DRM_DEVICES=/dev/dri/card2:/dev/dri/card1
The first GPU draws the desktop. The second handles the connected monitors. On my computer, card2 is AMD and card1 is NVIDIA. Check your GPU numbers before using it. They can change after a reboot, so stable device paths are better for long-term use. Log out and log back in to apply the change. KWin, KDE’s window manager, should use only 6 MiB of NVIDIA memory. AMD uses system RAM and can take more when needed. NVIDIA stays available for AI, games, and other apps. Some apps may still choose NVIDIA, so the amount of memory saved will vary. #llm #gpu #linux #kde #wayland #vram
03 نوفمبر, 13:41

🐳 Docker containers interrupting Chrome on Linux With agents working in multiple worktrees, lots of Docker containers are starting and stopping in background. Chrome (Brave in my case) started canceling current requests with ERR_NETWORK_CHANGED. On Linux, Docker Engine runs containers directly on the host. No extra VM, no shared filesystem layer, less overhead. Projects and bind mounts use the host filesystem directly. Docker Desktop runs Docker inside a VM, even on Linux. It avoids this particular problem because container network changes stay inside the VM. The same applies to OrbStack on Mac. But these are slow compared to Docker Engine. In NetworkManager logs there were activation of temporary Docker interfaces that disappeared a moment later. So the fix is to leave Docker interfaces alone. Created /etc/NetworkManager/conf.d/90-docker-unmanaged.conf:
[keyfile]
unmanaged-devices+=interface-name:docker0;interface-name:br-*;interface-name:veth*
Applied it:
sudo nmcli general reload
Docker bridges and veth interfaces now show as unmanaged:
nmcli -f DEVICE,TYPE,STATE device status
Brave seems fine so far. No need to move projects or switch Docker engines. The approach is documented by Docker. #linux #docker #chrome #brave
02 نوفمبر, 08:19

Composer 2.11 New version of Composer is out. Notable changes are: 1. Cooldown periods. Good one! It allows to upgrade only after a certain amount of times passes which gives developer of the dependency time to fix compromise of the package before it goes live everywhere. 2. Security fixes. Agents help detecting many issues and Composer team reacts fast 👍 3. It is faster. Overall, I'm glad that PHP' https://blog.packagist.com/composer-2-11-release/
01 نوفمبر, 05:49

PHP Doom (powered by PHP FFI and Vulkan API with ray tracing) Kirill Nesmeyanov published a native PHP port of Doom engine. L
PHP Doom (powered by PHP FFI and Vulkan API with ray tracing) Kirill Nesmeyanov published a native PHP port of Doom engine. Logic is PHP-side. For graphics it uses Vulkan API via FFI. Isn't PHP awesome? https://github.com/SerafimArts/PHP-Doom
30 أكتوبر, 16:09

28 أكتوبر, 05:43

25 أكتوبر, 09:47

💻 Podlodka Backend Crew С 26 по 30 октября пройдёт онлайн-конференция Podlodka Backend Crew. Доклады утром и вечером. Тема — "AI в бэкенд-задачах". Причём нормально... по-взрослому, когда ответственность остаётся за разработчиком, а AI — инструмент. Некоторых докладчиков знаю по PHP и они хороши! - Дмитрий Кириллов — крутой, рассказывал недавно на пых конфе. - Павел Бучнев — многим знаком по Spiral, Cycle, Buggregator, Temporal и RoadRunner. Для вас есть скидка: backendsamdark Приходите! #events
23 أكتوبر, 18:26

🪲First big wave of security issues in the open Remember I've posted about mismatch between timings for a security issue discovery/exploit and a properly managed fix? You already know about PHP and it is not unique: 1. GitLab self-hosted RCE 2. Ability to down a server w/ HTTP/3 3. NodeJS 4. LiteLLM 5. One of certification authorities 6. ... The timings mismatch is here to stay and it became way easier to discover and exploit issues. What was previously uncovered by professional security firms following security procedures is now discovered and often published without any prior notice by anonymous X users. #security
22 أكتوبر, 03:26