📜 ⬆️ ⬇️

Christmas trouble, md5, books, gadgets, software

Greetings to all. Let's talk about the holiday.

logo

New Year is coming, and it’s customary to give presents. But we are a young company, and we haven’t produced anything outside. And I still want to give. In this situation, we have taken, but polled friendly companies with whom we have long and closely communicate. With a very simple offer - and let's give gifts! Just. And they took, and agreed.

For Habravchan, we have a total of 19 20 gifts for the new year. So:



But what are the conditions of the competition? And here the alarm and md5? In the right question is half the answer.



We will determine the winner automatically, but the result depends only on your activity.
All those who applied for participation are registered in the order of receipt under the Habrovo nickname. logo
  1. The promotion lasts until Monday at 20:30, after which the contest scripts stop and we count the winners.
  2. From each nickname is calculated its hash function.
  3. All nicknames are glued together in a single file in the order they are received, and their total hash is calculated.
  4. Each hash of the nickname ksoritsya with this common hash, we get a rating
  5. All nicknames are sorted in ascending order of this rating.
  6. We will publish the list here, we will contact the winners by mail and in a personal on Habré. If there is no reaction from a particular winner until 13:00 on Tuesday, the prize automatically proceeds to the next one in the list.

book It turns out that the winners are determined only by the list of participants and the sequence of their registration for the competition.
But we do not want to give inappropriate or unnecessary gifts. Therefore, each participant chooses what gift he claims.
After sorting the participants, the computer takes the first person from the list, and gives him the gift that the lucky one chose. This particular gift is considered issued. Each next participant who “made a bet” on the same gift will not receive anything. Etc.
In other words, if the first 50 people from the list choose the player, and the 51st book, then the player will receive the first person from the list, the next 49 will not receive anything, and the 51st will receive the book.
')
discont For non-programmers, the formula seems complicated, so for simplicity, we can assume that the order of issuing prizes is random, and the probability of obtaining it is the higher, the less popular the prize you choose.
Virtuals can participate. Employees of companies that provided prizes - too!
Therefore, a stir - every new participant changes the whole picture in the fight for the prize.

Who provided the gifts?



Web projects - experienced optimizers, our long-standing partners.
logo Digroterra is a gadget shop. We have known them for a long time and can recommend them.
The player from the magazine “Vogue” modestly provided the designer Oleg Postnikov (our logo of his authorship). Ibik-soft presented the boxes with his program - “Aster”. We ourselves used Aster for a year and a half, and we were satisfied. Accidentally on Habré met their employee wilelf , after which the idea was born to hold a distribution of gifts here. And another team blog inspired us for gifts, for which they thank you. The pictograph of the magazine was taken from SysCat .

Org. questions:



How the contest script works:


  1. We follow the link , register. Nick specifies Habrovsky, the password is better to specify a new
    Link for registration and participation:
    nymix2010.eland.ru/?registration

  2. There you will be given a promotional code, you need to insert it into your profile on Habré habrahabr.ru/settings . It is necessary to weed out strangers.
    There will be such a picture
    stock logo
  3. After that, go to your own profile on Habré Vashnik.habrahabr.ru and click on this promotional picture
  4. Log in with your nickname and new password invented
  5. There you will see how many people chose which prize, the choice can be changed during the contest
  6. You can join the list of donators, but the number of "places" is limited
  7. Curious programmers can feel the current rating calculations

The contest script was written in an emergency mode, please take usability and glitches philosophically. Holidays come suddenly and unexpectedly.

ATTENTION ! Anyone who has bought an extra magazine Vogue with a player and want to share it with habravchanami from other regions - can do it in the framework of our campaign. The names of the characters add here.

Happy New Year, everyone! The first ten years rewound in this century.



UPD: The deNULL member has hosted a sub-result parser http://denull.ru/eland.php

UPD2: It turned out to be a test - sending 17 packages through the Russian Post. Since last year, they have not had the delivery of consumables, packaging paper, envelopes. But we managed all the parcels are gone, wait :) The winners have personal addresses and tracking codes for delivery.

Source: https://habr.com/ru/post/110705/


All Articles