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://copay.io 1.5к зависимостей (хотя в одном бложике 2.7к, возможно транзитивные еще).

НУ ШО ПАЦАНЫ С̶Е̶С̶У̶Р̶И̶Т̶И̶ КРИПТА ?
Fun fact: > 50% of npm's users started using npm less than 2 years ago, and so have never heard of left-pad and don't know what this joke is about:
The builds have randomly stopped working.
You review the logs.
npm ERR! 404 'left-pad' is not in the npm registry.
(c)
Один хайлоад сервис пихает 15 метрик (авг, стддев, р9999999 и прочее).
Дошло до того, что ответственные за сбор метрик попросили не наглеть и порезать ненужное.
И даже здесь еще один тупой overengineering
👍
у меня у одного регулярно вылетает ютюб с этой байдой? (после 1 макс 2 релоада все работает)
com.google.common.collect.Iterators.concat

Note: the current implementation is not suitable for nested concatenated iterators, i.e. the following should be avoided when in a loop: iterator = Iterators.concat(iterator, suffix);, since iteration over the resulting iterator has a cubic complexity to the depth of the nesting.

Вот из-за этой штуковинки обычный список на 1к элементов заставлял пользователя немножко подождать.
А с 8к чуть-чуть больше.

https://google.github.io/guava/releases/19.0/api/docs/com/google/common/collect/Iterators.html#concat(java.util.Iterator)
C++’s creator finds himself on the other side of the community on the issue of C++’s growing complexity. Stroustrup correctly identifies C++’s growing complexity as a potentially fatal risk for the language.

С++ официально зашкварен самим Страуструпом. Расходимся.

http://www.stroustrup.com/P0977-remember-the-vasa.pdf
Вопрос
% cat string_view_uaf.cc 
#include <iostream>
#include <string>
#include <string_view>

int main() {
std::string s = "Hellooooooooooooooo ";
std::string_view sv = s + "World\n";
std::cout << sv;
}
% clang++ -std=c++11 string_view_uaf.cc -stdlib=libc++ -fsanitize=address && ./a.out
?ooooooooooooooo World
=================================================================
==15854==ERROR: AddressSanitizer: heap-use-after-free


I don't know if this is a libc++ bug or a C++17 feature, please advise.


Ответ
LEWG/LWG considered this during the adoption of string_view, and decided that they were OK with it. (or, more accurately, that fixing this would make string_view much less useful).

So this is definitely a C++17 "feature".
Как программист из Екатеринбурга с нуля построил бизнес на $400 млн

https://www.rbc.ru/magazine/2019/01/5c1baef09a79470d23908f47
миленько так
а не, не миленько
найди кнопку твита на новом интерфейсе :\
Тупейшая желтизна приплыла.

АВС запускают сервис с апи монго и у SJW (software justice warriors) рвет крышу: как это можно взять апи и сделать для него сервис?
ОПЕНСУРС ИЗБИВАЮТ!!!111

Подумать же шире в желтой газетке не смогли :\

https://techcrunch.com/2019/01/09/aws-gives-open-source-the-middle-finger
У меня у одного кнопки JKL на ютюб работают как назад/пауза/вперед?
Даже в порномоде...
#абстрайксбэк

UPD
Все просто, они поломали определение cmd+<что-то>

Спасибо доброму человеку за мануал ❤️ https://support.google.com/youtube/answer/7631406?hl=en