Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / NewStats: 3,201,178 members, 7,977,449 topics. Date: Thursday, 17 October 2024 at 08:26 AM |
Nairaland Forum / Science/Technology / Programming / How To Generate Bulk Fake Names For Testing Apps (1713 Views)
Built A Smallish Web App For Testing / How To Generate a Bar code Using Excel / Help Needed With Phpunit For Testing (2) (3) (4)
How To Generate Bulk Fake Names For Testing Apps by Nobody: 4:40pm On Jan 14, 2016 |
Have you ever worked on an app - any kind of app and you wish to generate random names. Well, there are several libraries for that actually, I was able to solve the problem by creating a simple API just for that purpose. Let me try attach something that will explain it a bit clearer. You can test the api in the browser by running these urls: http://Nairaland.com/api/names/5/html http://Nairaland.com/api/names/5/json You can even use this PHP code to test-run $data=json_decode(file_get_contents("http://Nairaland.com/api/names/5/json";)); You will find the documentation here Oya, let the discussions begin.
|
Re: How To Generate Bulk Fake Names For Testing Apps by losprince(m): 11:57pm On Jan 14, 2016 |
you are one useful programmer |
Re: How To Generate Bulk Fake Names For Testing Apps by Nobody: 8:49am On Jan 15, 2016 |
losprince:Really? are you sure of your statement because there are folks on this board that will contest that. |
Re: How To Generate Bulk Fake Names For Testing Apps by Booyakasha(f): 1:27pm On Jan 15, 2016 |
Good job bro. |
Re: How To Generate Bulk Fake Names For Testing Apps by Nobody: 1:38pm On Jan 15, 2016 |
Thanks |
Re: How To Generate Bulk Fake Names For Testing Apps by losprince(m): 9:17pm On Jan 16, 2016 |
dhtml18:that's probably because you jerk around a times |
Re: How To Generate Bulk Fake Names For Testing Apps by Nobody: 9:42pm On Jan 16, 2016 |
losprince:hmn, all codes and no fun makes dhtml a dead |
Re: How To Generate Bulk Fake Names For Testing Apps by DonSegmond(m): 11:47pm On Jan 16, 2016 |
Even better, use Faker. not an API, a local library with no limit. |
Re: How To Generate Bulk Fake Names For Testing Apps by Nobody: 12:26am On Jan 17, 2016 |
If you read the original post on my website, I specified the library i used for the API - it is an open-source library - Yeah, there are many ways to go about it. The thing is, most times you are working on a small project and just need a few names to test-drive your stuff. But if you are looking at downloading millions of names, please don't kill my server o - anyway, i have various means to attempt to check-mate that. |
(1) (Reply)
How To Repair Corrupted Word Documents? / 3d PC/MAC/Linux game / HELP WITH Erp(enterprise Resource Program) SOLUTION
(Go Up)
Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health religion celebs tv-movies music-radio literature webmasters programming techmarket Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10) Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 9 |