Теперь гугл будет детерменированный *ехидный блинчик*
On the proposal for a regulation of the European Parliament and of the Council on promoting fairness and transparency for business users of online intermediation services
Amendment 7
(6) A uniform and targeted set of mandatory rules should therefore be established at Union level to ensure a fair, predictable, sustainable and trusted online business environment within the internal market by ensuring, in particular, that the business users of online intermediation services are afforded appropriate transparency as well as effective redress possibilities throughout the Union. Those rules should also provide for appropriate incentives to promote fair and proportionate business behaviour and transparency, especially as regards the ranking of corporate website users in the search results generated by online search engines, including voice assistance services. At the same time, those rules should be such as to recognize and safeguard the important innovation potential of the wider online platform economy and allow for healthy competition leading to increased consumer choice.
http://www.europarl.europa.eu/sides/getDoc.do?pubRef=-//EP//TEXT+REPORT+A8-2018-0444+0+DOC+XML+V0//EN&language=EN
On the proposal for a regulation of the European Parliament and of the Council on promoting fairness and transparency for business users of online intermediation services
Amendment 7
(6) A uniform and targeted set of mandatory rules should therefore be established at Union level to ensure a fair, predictable, sustainable and trusted online business environment within the internal market by ensuring, in particular, that the business users of online intermediation services are afforded appropriate transparency as well as effective redress possibilities throughout the Union. Those rules should also provide for appropriate incentives to promote fair and proportionate business behaviour and transparency, especially as regards the ranking of corporate website users in the search results generated by online search engines, including voice assistance services. At the same time, those rules should be such as to recognize and safeguard the important innovation potential of the wider online platform economy and allow for healthy competition leading to increased consumer choice.
http://www.europarl.europa.eu/sides/getDoc.do?pubRef=-//EP//TEXT+REPORT+A8-2018-0444+0+DOC+XML+V0//EN&language=EN
О, в puppet можно замутить рекурсивные конфиги. Угадайте, сколько раз машины на проде были убиты процессом руби, выжирающим все ресурсы проца?
(больше одного раза)
(больше одного раза)
Simplicity
The protocol must be simple to implement.
It is more important for the protocol to be simple than the backend implementation.
Correctness
The protocol must be verifiably correct.
Incorrect behavior is simply not allowed.
Safety
The protocol must be designed in a way that is safe.
Behavior and functionality which risks safety is considered incorrect.
Completeness
The protocol must cover as many situations as is practical.
All reasonably expected cases must be covered.
Simplicity is not a valid excuse to reduce completeness.
(с)
The protocol must be simple to implement.
It is more important for the protocol to be simple than the backend implementation.
Correctness
The protocol must be verifiably correct.
Incorrect behavior is simply not allowed.
Safety
The protocol must be designed in a way that is safe.
Behavior and functionality which risks safety is considered incorrect.
Completeness
The protocol must cover as many situations as is practical.
All reasonably expected cases must be covered.
Simplicity is not a valid excuse to reduce completeness.
(с)
Позвали на ревью по оптимизации одного сервиса.
Достаю увлажняющий гель для рук, салфетки, думаю - ну ща.
Дифф 3 линии:
Хип: 1024мб -> 2048мб
Цпу: 0.5 -> 2
и удаленние пустой строки в конце файла.
Достаю увлажняющий гель для рук, салфетки, думаю - ну ща.
Дифф 3 линии:
Хип: 1024мб -> 2048мб
Цпу: 0.5 -> 2
и удаленние пустой строки в конце файла.
Шо там, как там composition vs inheritance? еще на го бугуртят про модули. мдааааааааааааааааааааааа
I’ll use the Top 20 Libraries and APIs Java Developer should know as a reference.
Only two of the libraries above are actually modularized! That is understandable, since implementing modules in one’s own library is a non-trivial effort.
https://blog.frankel.ch/hard-look-state-java-modularization/
I’ll use the Top 20 Libraries and APIs Java Developer should know as a reference.
Only two of the libraries above are actually modularized! That is understandable, since implementing modules in one’s own library is a non-trivial effort.
https://blog.frankel.ch/hard-look-state-java-modularization/
A Java geek
A hard look at the state of Java modularization
When Jigsaw was released with Java 9, it was the end of a long process - it had been postponed already - and it had to be released. With the coming of Java 11, the latest Long-Term Support, I think it’s a good time to take a snapshot of the state of modularization.…
Узнал одну штуку. Есть фирма в штатах, 10к машин в private cloud.
Паппет раскатывается по всем машинам. Естественно были умники, которые накатывали какие-то изменения и факапали машины с БД.
Не сильно правда, повезло, что задело только новую версию БД (там 5-7% реальных данных было), но люди ничему не научились. Пару недель назад пришлось работать сверхурочно и доставать все из бекапов. Причина думаю очевидна.
Итого: раскатывание конфига должно быть изолировано.
Паппет раскатывается по всем машинам. Естественно были умники, которые накатывали какие-то изменения и факапали машины с БД.
Не сильно правда, повезло, что задело только новую версию БД (там 5-7% реальных данных было), но люди ничему не научились. Пару недель назад пришлось работать сверхурочно и доставать все из бекапов. Причина думаю очевидна.
Итого: раскатывание конфига должно быть изолировано.
Ооооо...а признайтесь, у кого есть доступ к ссх-рут на проде? 😈
Как-то во вовремя еженедельного демо один решил показать полноценную фичу и давай копипастить рутовские вещи. А там еще и запись экрана демо была, прям красота.
Как-то во вовремя еженедельного демо один решил показать полноценную фичу и давай копипастить рутовские вещи. А там еще и запись экрана демо была, прям красота.
https://copay.io 1.5к зависимостей (хотя в одном бложике 2.7к, возможно транзитивные еще).
НУ ШО ПАЦАНЫ С̶Е̶С̶У̶Р̶И̶Т̶И̶ КРИПТА ?
НУ ШО ПАЦАНЫ С̶Е̶С̶У̶Р̶И̶Т̶И̶ КРИПТА ?
GitHub
GitHub - bitpay/copay: Copay wallet is now Bitpay Wallet.
Copay wallet is now Bitpay Wallet. Contribute to bitpay/copay development by creating an account on GitHub.
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)
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
👍
Дошло до того, что ответственные за сбор метрик попросили не наглеть и порезать ненужное.
И даже здесь еще один тупой overengineering
👍
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
С++ официально зашкварен самим Страуструпом. Расходимся.
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
https://www.rbc.ru/magazine/2019/01/5c1baef09a79470d23908f47