TGTGInsightтелеграм анализLIVE / telegram public index
← Такты, стеки, два колеса

TGINSIGHT SIMILAR POSTS

Намери подобно съдържание

Изходен канал @clockstackwheels · Post #266 · 21.03

Много лет назад я делал игру ВКонтакте про домики. Одно общее изометрическое поле, где у каждого свой участок, на котором можно строить дом, выбирать его размеры, материалы, форму окон и крыши. И обставлять мебелью. Поле было квадратным 100 на 100, соответственно у каждого квартала был номер по одной оси X от 0 до 99 и по другой Y от 0 до 99. По какой-то причине мне тогда нужно было сохранить это в одном числе как идентификатор квартала, и я подумал, что изобрёл гениальный способ: A = X*100 + Y. Извлечь обратно тоже было легко: поделить A на 100 и округлить вниз, это получался X. А потом Y = A - X*100. Например, квартал с координатами 13-29, собственно, так и записывался: 1329. Важно, что это математические операции, а не строковые. Они и сами по себе быстрее выполняются программой, и позволяют, например, удобно отсортировать участки. Я считал себя очень умным, не зная тогда, что по сути изобрёл системы исчисления, и вообще подобный подход очень банален и прост. Мы куда чаще видим это в битовых масках, потому что и сама задача для двузначных свойств возникает чаще, и компьютер существенно быстрее работает с битами, но от того, какая там база системы исчисления, математический смысл не меняется. Если тебе надо записать в одно число несколько свойств, каждое из которых может быть в N значениях, то в это число должно влезать N*N*N... сколько там у тебя этих свойств. Ты пишешь первое свойство n1, потом прибавляешь n2*N, потом n3*N*N и так далее. Величины существуют в разных разрядах N-ричной системы исчисления, поэтому не пересекаются, и их можно разделить. Игра, кстати, поначалу хорошо набирала пользователей, а потом перестала. Я думал, что она не интересная, и закрыл проект. А сильно позже уже выяснилось, что был баг в коде регистрации игрока, из-за чего новые приходить не смогли начиная с какого-то момента. В том самом коде, который извлекал координаты квартала из его идентификатора, да. #dev

Hashtags

Резултати

Намерени 7 подобни публикации

Търсене: #uspu

当前筛选 #uspu清除筛选

#ВожатыеРоссии напоминают о себе. Ждем именно тебя на нашем Всероссийском конкурсе в г. Екатеринбурге! 🧡 Напоминаем, в срок до 10 января 2024 г. участникам необходимо подать заявку и представить конкурсные материалы, выполненные индивидуально или коллективом авторов (до 3 человек). На Конкурс принимаются настольные игры разных жанров (бродилки, карточные, настольные квест-игры, и др.) На заочный тур необходимо отправить паспорт игры, включающий описание игровой механики, шаблон или фотографии игровых материалов, видео-презентацию игры. Для участия в конкурсе, необходимо отправить на почту оформленные по требованиям материалы на почту [email protected] 📩 Все подробности и формы заявки, паспорта игры находятся в ПОЛОЖЕНИИ! Подавай заявку и отправляй другу из лагеря! 🗣 #РосмолодёжьГранты#Росмолодёжь#USPU#ВожатыеРоссии

🎉The international student community at Ural Federal University (UrFU) just got a little bigger — welcome Boipelo Nkagisang from South Africa! 🇿🇦 👏 The Office of the Honorary Consul of the Republic of South Africa congratulates Boipelo on successfully completing her Russian language course at Ural State Pedagogical University (USPU). 🎓 Starting this fall, Boipelo will begin her master’s program in Psychology at UrFU. ❤️ Staff of UrFU’s Center for International Student Mobility and Recruitment, along with the Office of the Honorary Consul, supported Boipelo with her paperwork and preparations. Welcome to UrFU's student community! 🌍 #Yekaterinburg#SouthAfrica#UrFU#USPU#Education #InternationalStudents

🎉The Sverdlovsk Regional Branch of the Russian Geographical Society (RGS) turns 79 today! Founded on March 5, 1946, the Sverdlovsk RGS unites researchers, travelers, and geography enthusiasts. Sergey Mazurkevich, a member of the Board of Trustees and Honorary Consul of South Africa, along with the staff of the Honorary Consul’s office, sincerely congratulate their colleagues on this special occasion! 📍 The headquarters of the Sverdlovsk RGS is located in Yekaterinburg at Ural State Pedagogical University (USPU). 🔗 The website: https://www.rgo.ru/ru/ekaterinburg #RGS#Yekaterinburg#USPU#geography#Mazurkevich

🤝 Strengthening Ties with Pedagogical University! The Honorary Consul of South Africa in Yekaterinburg, Sergey Mazurkevich, met with Yuri Biktuganov, Rector of Ural State Pedagogical University (USPU), to discuss opportunities for expanding collaboration. 💡 The meeting focused on developing joint projects between USPU and the Office of the Honorary Consul. 📚 In the 2024–2025 academic year, a student from South Africa, Boipelo Nkagisang, successfully completed a Russian language course at USPU. #USPU#Yekaterinburg#SouthAfrica#Mazurkevich#Education#Cooperation#RussianLanguage#InternationalStudents

🇿🇦🤝🇷🇺 A Step Forward for International Students! The staff of the Office of the Honorary Consul of South Africa organized a meeting between Boipelo Nkagisang, a South African citizen and student at the Ural State Pedagogical University (USPU), and Sergey Porkhachev, Advisor to the Rector on International Cooperation. 🌍 Boipelo shared her experience studying at USPU and her adaptation to life in Yekaterinburg. 📌 The sincere exchange laid the groundwork for a roadmap to improve living and learning conditions for international students. This is an important step towards building a more inclusive and supportive environment for students from around the world! 🌐🎓 #SouthAfrica#Russia#USPU#Yekaterinburg#InternationalStudents#StudyInRussia#CulturalExchange#StudentLife

🎉Ural State Pedagogical University (USPU) marks its 95th anniversary today, August 26! 🇿🇦 The Office of the Honorary Consul of South Africa in Yekaterinburg is pleased to join in the congratulations and wishes the university continued growth and success. 📚 After last year’s merger with the Russian State Vocational Pedagogical University, USPU became the largest pedagogical university in Russia. 👨‍🏫 The university is now led by Acting Rector Yury Biktuganov, who previously served as Minister of Education of the Sverdlovsk region. Not long ago, Honorary Consul of South Africa Sergey Mazurkevich and Mr. Biktuganov held a warm and productive meeting. #Anniversary#Education#USPU#Sverdlovsk#Yekaterinburg#SouthAfrica#Biktuganov#Mazurkevich

🎓 The staff of the Office of the Honorary Consul of South Africa in Yekaterinburg joined the roundtable Diplomatic Dialogue: Education and Science at Ural State Pedagogical University (USPU). The university presented its academic and research programs, aiming to attract more international students to study at USPU. 🌍 🇿🇦 Currently, Boipelo Nkagisang from South Africa is studying Russian at USPU. 🎉 This year, USPU proudly celebrates its 95th anniversary! After the merger of two major institutions, it has become the largest pedagogical university in Russia. 📸 Photos: USPU campus 🎥 Video: courtesy of USPU. #Diplomacy#Education#Science#USPU#RussianUniversities#Russia#Yekaterinburg#InternationalCooperation#SouthAfrica#HonoraryConsul#Mazurkevich