stifle867

joined 1 year ago
[–] stifle867 7 points 11 months ago (9 children)

The problem is the example is actually eightwothree which comes out as 83 so if you replace from start to finish the example passes but the solution is incorrect.

[–] stifle867 12 points 11 months ago (12 children)

It's great! I've had community members point me in the right direction after already "solving" it incorrectly. It really makes you think about it. You have to expand your test cases and really come up with a better solution.

Not to say it isn't difficult especially if you expect the problem to be described perfectly accurately.

[–] stifle867 3 points 11 months ago

Thank you for the test case! I went out for dinner but I'll work on this tomorrow. I strongly suspect this is the exact issue but I'm going to have to rework some things so I want to tackle it with a fresh mind.

[–] stifle867 2 points 11 months ago

I think you may be right but the problem is at the end of the string. I'll add some test cases and rewrite the code. I think I'll have to ditch the regex replacements and scan through instead so I don't clobber the string in the wrong place.

[–] stifle867 5 points 11 months ago* (last edited 11 months ago)

You would be interested in checking out [email protected]

[–] stifle867 1 points 11 months ago* (last edited 11 months ago) (1 children)

The choice of language impacts the available tooling to support the use case.

Read the responses and do nothing with it? I specifically asked because depending on what you do with the responses also would advise what kind of solution you would want.

I'm trying to help so there's really no need to be defensive.

Specifically you may want to think about fault tolerance, back pressure, rate limiting (which is in your post), and a couple other things which may already be solved problems depending on your language of choice. It's one thing to send off 1M requests if you don't care about the response, another thing entirely if you need to work with the responses.

[–] stifle867 1 points 11 months ago (3 children)

You don't state which language you would be using or what, if anything, you plan to do with the responses. If all you're doing is fire-and-forget HTTP requests you could probably get away with #1 but with the number of requests you'd probably find yourself going with #2. Any more details?

[–] stifle867 7 points 11 months ago

I found a number of articles specifically stating that video games and software remain illegal. Unfortunately I couldn't pinpoint the specific part of the law as they appear to br written in French and was running into hurdles with Google Translate character limits that I couldn't be bothered to work around.

I'm not sure if it's explicitly illegal or if music, videos, etc are explicitly exempted, or if software etc is different due to terms of service for example.

Furthermore, it's illegal for anyone to record your IP address torrenting a work and track you down that way as it violates Swiss data protection laws.

[–] stifle867 37 points 1 year ago (5 children)

In Switzerland, individuals are still free to download whatever files they like for their own private use (except for software and video games).

Note that uploading or seeding a copyrighted work, which was a misdemeanor under the previous law, remains illegal.

source: With P2P law, Switzerland reaffirms its commitment to privacy

[–] stifle867 4 points 1 year ago

Even better when your email gets scraped years later that reads:

My name is Kai and I came across your contributor profile on the Node.js github. I’ve using the Node to build scalable web applications and I genuinely appreciate all the work that has gone into making Node.js fast, flexible, and efficient—it wouldn’t be possible without amazing contributors like you.

I wanted to ask you for a quick favor[...]

[–] stifle867 5 points 1 year ago (1 children)

I don't think it's literally a search and replace but a part of the prompt that is hidden from the user and inserted either before or after the user's prompt. Something like [all humans, unless stated otherwise, should be ethnically ambiguous]. Then when generating it's got confused and taken it as he should be named ethnically ambiguous.

[–] stifle867 7 points 1 year ago

oceanofpdf also has a lot of direct downloads for ebooks and they're very good

view more: ‹ prev next ›