-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3rd requirement is unclear #4
Comments
I didn't really understand it either tbh, but I'm assuming that if you're using a random function between two numbers, it should be roughly 50/50. |
Requirement 3 is asking for you to return the variants evenly. I suppose you could also do it your way and just keep count of the amount of users that call the script. But that takes up some unnecessary storage space and it's something extra to keep track of. Cookies is extra credit. But you should still be distributing each variant 50% of the time. The only difference that cookies should make is that if I visit your site again, it'll get the same variant every time. (i.e. if I visit your site, I'll have a 50% chance to get either variant. If I visit again, I only get the variant I got the first time) |
I could not install wrangler on my Mac, anyone could help? |
@MYANH2020 could you provide some more information about what you've tried already? Do you have |
Yes, I have installed Node.js v13.13.0 and npm v6.14.4 but when I code “
npm i @ cloudflare/wrangler -g “ on terminal I got error.
I also tried cargo but it did not work either.
Thank you so much.
…On Fri, Apr 17, 2020 at 1:22 AM Andrew ***@***.***> wrote:
@MYANH2020 <https://github.com/MYANH2020> could you provide some more
information about what you've tried already? Do you have npm
<https://www.npmjs.com/get-npm> installed?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APF6XE62UXRKTLWRZIGPY5DRM7RSZANCNFSM4MI5QVEQ>
.
|
@MYANH2020 what are the errors? |
Read through issue #3 and see if you're able to install after reading through those comments. |
missing write access to /usr/local/lib/node_modules, errno -13.
…On Fri, Apr 17, 2020 at 1:30 AM Kevin ***@***.***> wrote:
I could not install wrangler on my Mac, anyone could help?
Thanks a lot.
Read through issue #3
<#3>
and see if you're able to install after reading through those comments.
If you're still not able to, create a new issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APF6XE3MMLRQYO3Z3SZRG5TRM7SPLANCNFSM4MI5QVEQ>
.
|
@MYANH2020 Please try to install |
Check out this link: cloudflare/wrangler-legacy#240 |
|
|
Check if wrangler is installed |
wrangler generate |
|
Thanks for help. |
Impossible to install Wrangler on newest Fedora without throwing errors when starting it
|
@kulxtreme I recommend you try using |
I didn't fully understand the requirement "3. Distribute requests between variants".
So, I don't have to show different pages to a single user every time(as it's said "when a client makes a request to the Workers script, the script should roughly return each variant"), so I don't have to use cookies for this. Is seems like it's enough just to remember user and count each of 2 urls, or I could use round-robin method, 'cause each of these will give 50% probability. I know that using cookies is extra-credit task "2. Persisting variants
", but I'd like to do both ways :)
The text was updated successfully, but these errors were encountered: