Thank you!!! I just finished!!
[FakePersonGenerator] - Module for creating a fake person
-
@FastSpace thanks for fast replay, what would also be interesting is that you can limit how many numbers a username can have as a maximum.
At the moment I get too many names with 3-4 numbers. -
Added new version 1.4
- Fix a bug when the generation of a nickname exceeded the maximum length. This could happen, for example, when the nickname from the array was longer in advance than the maximum length. Now there will be 3 attempts to take another nickname from the array. Attention! I do not recommend changing the maximum length of the nickname much lower than is currently installed in the module (18), so the number of nika options from the array will become much smaller! Or use custom nicknames, then you can customize the length for yourself.
- Added new usernames variants to the array. Now it is possible to generate nicknames such as "RedDragon," "GoldCastle," etc.
- Added the expression option to several more places.
-
Could you add france and Netherlands, belgium as well ?
It would be great to have an address feature as well -
agree address function would be amazing
-
Can you add Taiwan . Thanks
-
any way to add a fake address?
-
@Momospinyo said in [FakePersonGenerator] - Module for creating a fake person:
any way to add a fake address?
Do you realize the size of the database of addresses around the world?) If the site checks the address, there's no point in filling in some made-up address
-
@UserTrue said in [FakePersonGenerator] - Module for creating a fake person:
@Momospinyo said in [FakePersonGenerator] - Module for creating a fake person:
any way to add a fake address?
Do you realize the size of the database of addresses around the world?) If the site checks the address, there's no point in filling in some made-up address
На гитхабе есть готовые базы данных с реальными адресами. Но чтобы добавить адресс есть несколько проблем
- Модуль вырастет в размере с 30 кб до несколько десятков гигабайт. Можно конечно покостылить и как-нить сжать базу данных в зип и оттуда дергать адрес.
Текущий аналог FontPack, который надо качать отдельно. - Можно пойти другим путем - в модуле сделать запрос к сайту который уже выдает адреса, пример https://name-fake.com/ (с РУ IP не работает). Но сайт может лежать, может ввести лимит на запросы, в общем нужно пачку прокси чтобы туда делать запросы :D
- Самый лучший вариант это залить такую базу на сервер разработчика и оттуда запросом дергать... )
В общем ковырять я это не буду) Мне это не надо, а гемора дохера.
- Модуль вырастет в размере с 30 кб до несколько десятков гигабайт. Можно конечно покостылить и как-нить сжать базу данных в зип и оттуда дергать адрес.
-
@FastSpace Ну я про это и говорю, что плохая идея для модуля. Даже несколько Мб это плохо тк раздувает размера скрипта и он потом даже на сервер БАС медленно грузится.
-
@UserTrue said in [FakePersonGenerator] - Module for creating a fake person:
@FastSpace Ну я про это и говорю, что плохая идея для модуля. Даже несколько Мб это плохо тк раздувает размера скрипта и он потом даже на сервер БАС медленно грузится.
Ну можно список адресов положить в папку на серваке, а модуль будет только туда обращатся за строкой )
Ну или запросом на сервер свой или чужой сайт. -
-
@Q_Q said in [FakePersonGenerator] - Module for creating a fake person:
@FastSpace 1) https://geocode-maps.yandex.ru/1.x/?apikey=c0d403ab-e5be-4049-908c-8122a58acf23&geocode=37.597576,55.771899
https://habr.com/ru/post/476754/
2)
https://stackoverflow.com/questions/56044424/how-to-add-random-map-location-function-to-my-google-maps-api
Думал добавить, а потом забилДа, так тоже можно. Только нужно переносить не в случайное место, а заданное мной.
Например, я выбираю в модуле сгенерить адресс из города Москва. В модуле нужно иметь диапазон x и y координат для всего города
Тоже такое себе. -