openlogic / random-word Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
I'm trying to use this with the parallel gem inside a thread and I get this error:
"fiber called across threads"
I'm doing something like this:
results = Parallel.map([1,2,3,4,5,6,7],:in_threads=>2) do |item|
RandomWord.nouns.next
end
I am getting this error. It appears to be coming from RandomWord.nouns.next
. I assume it means I reached the end of the list. what is the recommended way of recovering from it?
StopIteration:
iteration reached an end
I don't mind starting the list from the beginning again. It's just not clear how to do that.
Hi there! ๐
I wanted to write a quick issue to let you know about a situation we experienced a couple weeks ago!
We used random-word to generate passwords for a few dozen new user accounts for our web app. For security, we didn't have any visibility into the passwords being generated before sending them via email to the account holders. A couple days later, one of our users emailed us about a password they received that had an extremely upsetting word in it. It was the n-word. ๐
Ultimately, this isn't a problem with the gem at all - I know there's an exclusion list, probably exactly for this reason! However, we definitely didn't think about that ahead of time, and I imagine other folks may be in the same boat.
Anyways, just a heads up in case you were ever considering adding a mode that automatically excludes a predefined list of words, like this one.
Thank you!
I had issues using the not_shorter_than function on nouns. No issue with it on adjectives. It said that I gave one argument when it expected 0.
reference:
RandomWord.nouns(not_shorter_than: 56).next
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.