❌

Normal view

Честная кнопка: как сравнить нажатия игроков, если у всех разный пинг

Мы делаем ЖМЯК — Свою игру в браузере: табло на телевизоре или ноутбуке, а кнопки — телефоны игроков. Ничего не нужно ставить, гости заходят по QR-коду и вводят только имя.

Главное в такой игре — кнопка. Вопрос прочитан, все тянутся к телефонам, кто-то нажал первым — он и отвечает. И вот тут быстро выясняется неприятное: в браузерной игре первым часто оказывается не самый быстрый игрок, а тот, у кого быстрее интернет.

В статье — как мы это чинили: синхронизация часов из уже существующего потока событий, метка времени нажатия, границы доверия клиенту, окно сбора нажатий и фальстарты. И немного реальных цифр: на проде уже 2,5 тысячи нажатий, и они кое-что рассказывают о людях.

Читать далее

In China, the War on Mosquitoes Has Entered the A.I. Era

30 October 2026 at 07:01
Using sensors developed for self-driving cars, a Chinese start-up claims it can track and destroy tiny flying targets while avoiding people, pets and reflective surfaces.

© Qilai Shen for The New York Times

China expels a record number from Communist party amid Xi’s intensified purges of top officials

The unprecedented number of empty seats at the fifth plenum – a symbol of expulsions – serve as a symbol for the scale of the purges under Xi Jinping

China expelled a record number of officials from the Chinese Communist party (CCP) as it concluded a major political gathering, which saw an unprecedented number of empty seats indicating the scale of the purges under Xi Jinping.

A record 33 members were expelled at this week’s fifth plenum, a gathering of top officials that takes place roughly once a year.

Continue reading...

© Photograph: Li Xiang/Xinhua/AP

© Photograph: Li Xiang/Xinhua/AP

© Photograph: Li Xiang/Xinhua/AP

China expels a record number from Communist party amid Xi’s intensified purges of top officials

30 October 2026 at 05:56

The unprecedented number of empty seats at the fifth plenum – a symbol of expulsions – serve as a symbol for the scale of the purges under Xi Jinping

China expelled a record number of officials from the Chinese Communist party (CCP) as it concluded a major political gathering, which saw an unprecedented number of empty seats indicating the scale of the purges under Xi Jinping.

A record 33 members were expelled at this week’s fifth plenum, a gathering of top officials that takes place roughly once a year.

Continue reading...

© Photograph: Li Xiang/Xinhua/AP

© Photograph: Li Xiang/Xinhua/AP

© Photograph: Li Xiang/Xinhua/AP

China Steps In to Rescue Stocks, But the Market Continues to Fall

The Communist Party uses a “national team” of state-owned investment funds to stem the market rout. But this time, investors are not sure it will work.

© Florence Lo/Reuters

President Xi Jinping of China has convened senior leaders to set the government’s agenda, but the economy is likely to take a back seat to politics.

‘Pull Out the Sick Trees’: Xi’s Constant Purges Pave Way for Next Term

26 October 2026 at 07:00
The Chinese leader Xi Jinping, who is likely preparing to secure a fourth term in power in 2027, has complained that officials cannot be trusted.

© Ng Han Guan/Associated Press

President Xi Jinping of China is expected to secure a fourth term as leader of the ruling Communist Party next year. He has warned that too many officials fail to faithfully carry out his orders.

Xi Jinping’s corruption crackdown in the spotlight as China prepares for meeting of top leaders

The fifth plenum comes against a backdrop of years of purges that have had some analysts wondering if the issue is corruption or a lack of loyalty

When Xi Jinping came to power in 2012, he pledged to stamp out corruption all through the ranks of the Communist party. More than a decade later, the pace of investigations has not slowed. Last year, China’s disciplinary authorities opened investigations into more than 1 million people, including more than 100 officials at or above ministerial or provincial level.

As Chinese Communist party (CCP) officials kick off an important meeting this week, discipline – and party loyalty – is high on the agenda. For those who try to read the tea leaves of elite Chinese politics, concern about the apparent lack of discipline is dominating CCP discussions.

Continue reading...

© Photograph: Kevin Frayer/Getty Images

© Photograph: Kevin Frayer/Getty Images

© Photograph: Kevin Frayer/Getty Images

While Amazon blocks AI agents, Walmart rolls out the welcome mat

21 October 2026 at 22:30
As Amazon blocks AI agents from shopping on its site, Walmart is taking the opposite approach, introducing new technology that lets AI agents make purchases on customers' behalf, with controls over spending and transaction approvals.
❌