FooBarWidget
u/FooBarWidget
I'm looking for a test framework that allows me to write unit tests in "BDD" style. I'm not interested in true BDD, I just like some aspects of how BDD looks. Something that looks like Ruby's RSpec or Go's Ginkgo, allowing me to nest groups of tests, like this:
Describe("a Car") {
It("is green") {
..
}
Describe("when undergoing maintenance") {
It("refuses to start") {
...
}
}
}
The two most "popular" (well, relatively) libraries I can find are rust-rspec (which I like most, syntactically) and stainless. But both of them haven't been updated for years. There are other libraries that have been more recently updated, but they're all version 0.x with
I find that when I ask Flux (schnell) to generate an anime-style illustration, that it has a large tendency to make the character look too young, teenage-like. However I'm looking for a more mature look. How can I do this consistently?
For example I used this prompt which gave me a reasonable result (even though it messed up the sword, but that's another problem):
But I find the "mature look" and age part to be hit-or-miss: sometimes
Keybase proof
I am:
- foobarwidget on reddit.
- foobarwidget on keybase.
Proof:
hKRib2R5hqhkZXRhY2hlZMOpaGFzaF90eXBlCqNrZXnEIwEgic8ryxrsdRj178ImnKatcKnIjdnlZmhO4WorzkYavGwKp3BheWxvYWTESpcCGsQgTT+BAZd8oDh1/3oiwe2df+stBWz8GQA5yANSTuTghDnEIH6RpkHUED33e7k3NuomCjzj+NXGMIN07CG4jChOVcMbAgHCo3NpZ8RAPypiVTcjcSDWX9MgMkVguFpDIcazwQ3gQY9SX+D0feDlxZYMv3nhQ5xiNYjdJGyFQ6yV4quGeDotHt5UGnEsCahzaWdfdHlwZSCkaGFzaIKkdHlwZQildmFsdWXEIN1mKBRWzxXvp35QUaKwpVQu3mriFbgBd/KCQsnUnh7co3RhZ80CAqd2ZXJzaW9uAQ==
How do I make this work?
class Subscription < T::Struct
const :transactions, T::Array[::Transaction]
end
class Transaction < T::Struct
const :subscription, T.nilable(Subscription)
end
Right now Ruby errors at line 2 with "uninitialized constant Transaction (NameError)".
MatchHostFsOwner: a solution for the Docker host filesystem owner matching problem [first serious Rust project]
github.com/FooBarWidget/matchhostfsownerIk heb weinig ervaring met obligaties handelen op de aandelenmarkt dus hopelijk kan iemand me uitleggen hoe het werkt. Obligaties staan bekend als veilig. Want zolang er geen sprake is van wanbetaling ontvang je gegarandeerd rente. Maar dit "veilige" zie ik nog niet:
Ik heb een euro staatsobligaties ETF (accumulating, dus geen dividend uitkerend) gekocht. Maar de rente blijft steeds stijgen waardoor de koers van de ETF blijft dalen.
Mijn vraag: Wanneer kan ik verwachten dat mijn ETF aandelen niet meer verliesgevend zijn? M.a.w. wanneer zal de koers weer stijgen? Stijgt de koers een beetje als de obligaties die de ETF bezit, rente aan de ETF uitkeert? Maken die renteuitkeringen de koers