Очередной how to go 101 собирает 5к лайков на медиум.
Статья о best practices...ну...набирает что-то.
Статья о best practices...ну...набирает что-то.
wow
Восхитительное решение для борьбы с ботами. Атака нацелена на тех, кто юзает phantomjs, headless chrome и прочее. Боту в ответ кидают cpu-intensive код, который тупо жрет ресурсы (и не только, там в ответах речь про рекурсивный зип).
Черт, это крутое решение.
https://twitter.com/J0hnnyXm4s/status/1081227041255706626
Восхитительное решение для борьбы с ботами. Атака нацелена на тех, кто юзает phantomjs, headless chrome и прочее. Боту в ответ кидают cpu-intensive код, который тупо жрет ресурсы (и не только, там в ответах речь про рекурсивный зип).
Черт, это крутое решение.
https://twitter.com/J0hnnyXm4s/status/1081227041255706626
Twitter
Johnny Xmas
We troll bots for a living. This one made 3.7M unsuccessful HTTP requests in 24 hrs, and we responded to each with a js cryptographic challenge, which effectively tarpits the bot by sucking up CPU resources. Expensive, Lambda CPU resources. This guy's AWS…
According to Standish Group’s Chaos Report, 94% of software projects are redeveloped from scratch more than once. That’s huge.
(c)
(c)
По теме отключения 911
https://news.ycombinator.com/item?id=18778755
https://www.youtube.com/watch?v=saRir95iIWk
https://news.ycombinator.com/item?id=18778755
https://www.youtube.com/watch?v=saRir95iIWk
YouTube
Speedy Cutover Service, SXS switching cutover to ESS filmed live at Glendale CA central office, 1984
A brief but surprisingly exciting 1984 video showing the preparation and live, real-time cutover from Step By Step switching system (SXS) to a new electronic switching system (ESS) in Glendale, California.
Western Electric offered the Speedy Cutover Service…
Western Electric offered the Speedy Cutover Service…
логично
// Unset remove element at position i
func Unset(a []string, i int) []string {
a[i] = a[len(a)-1]
a[len(a)-1] = ""
return a[:len(a)-1]
}
oleg_log
логично // Unset remove element at position i func Unset(a []string, i int) []string { a[i] = a[len(a)-1] a[len(a)-1] = "" return a[:len(a)-1] }
Для тех, кто не уловил: я не понимаю и презираю такие названия методов. Чем обычный ‘Delete’ не угодил? Зачем делать из кода поэму с глубоким смыслом? Идите в свой руби и пишите хокку. Откуда берется этот движ на литературный стиль?
Самое ужасное, что помню, это ‘HasSuchStringElement’.
Самое ужасное, что помню, это ‘HasSuchStringElement’.
Теперь гугл будет детерменированный *ехидный блинчик*
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% реальных данных было), но люди ничему не научились. Пару недель назад пришлось работать сверхурочно и доставать все из бекапов. Причина думаю очевидна.
Итого: раскатывание конфига должно быть изолировано.