Skip to content
  • 0 Votes
    2 Posts
    0 Views
    N
    v1 - CodeProject[^] M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.
  • 0 Votes
    2 Posts
    0 Views
    L
    This is not the correct forum for product issues, please use https://www.codeproject.com/Questions/ask.aspx[^].
  • 0 Votes
    3 Posts
    3 Views
    E
    I think their is a proposed RFC to make the @ part of the URL throw a hard error and not navigate.
  • HELP! docker-compose

    Artificial Intelligence docker html com sysadmin devops
    3
    0 Votes
    3 Posts
    3 Views
    A
    nice...by CRYPTO WORLD
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    2 Posts
    0 Views
    N
    Leslie but still mandatory[^] M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.
  • 0 Votes
    9 Posts
    9 Views
    J
    Richard is spot on with his reply. Mine was more theory. Take it as a compliment. Sometimes I just chat theory when I recognize the poster because I trust they take it and run with it. It's still the same principle, but just needs to be called from within the context of an Array.prototype.map callback. There are a couple ways to go about this. 1 You can still use an async IIFE anyway. IIFE is a functional/JavaScript concept that stands for Immediately-Invoked Function Expression and is pronounced iffy. It does exactly what it says and can be put anywhere. It's a quick and dirty way to call async code from a sync routine as well. 2 You can make the map callback itself async. However, this means you'd also have to deal with sync/async issue still.... just "one level" higher so to speak. Array.prototype.map iterates, much like IEnumerable in C#. In JavaScript, async/await is essentially syntax sugar for promises. Makes life easier and for cleaner code. But it also means you can interchange them and loop through your nested map like this: // this level needs a promise.all too results.map(async person => { // loop all films for each person await Promise.all(arr.map(async filmURL => { const filmName = await getFilmName(filmURL); })); }; Keep in mind though, this simply shifts the requirement for async up one nested level. The parent map would still have to be called within the context of a promise or async/await still. Same exact syntax. Keep in mind though, using Promise.all is old. It works, but no cool points for using it. As a side note, this is mainly for educational purposes. An API shouldn't be called in a loop. Redesigning the API, using GraphQL, streaming the data, etc. should all be considerations to rethink the approach of opening web requests in a loop. Buttttt.... if you need a loop-like concept, you'd be better off with generators. For example, if you used generators, you'd be able to pull off something like this. Just trying to whet your appetite. :) for await (const filmName of getFilmNames()) { // so fancy and clean } Anywho, the super short answer is just go with #2 and don't forget to use promise.all on the outer nest too. :laugh: Jeremy Falcon
  • 0 Votes
    2 Posts
    0 Views
    N
    Kent Sharkey wrote: And by 'benefits' they mean 'more half-solutions to fix' Or Benefits to the ones that have to rebuild them once they have given up... The 'no-code' dream… | CommitStrip[^] M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.
  • Spammer in AI forum

    Spam and Abuse Watch com devops docker tools
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    5 Posts
    3 Views
    E
    Anyone have then let me know i need to use for my website https://www.emiratesevisaonline.com
  • 0 Votes
    4 Posts
    6 Views
    Richard DeemingR
    You need to look at the code that's running on your server. As far as I'm aware, there's no magic tool that would convert a URL like "/items/1" into a request to load a JSON file called "items", get the "items" property from the root object, find the entry with id === 1, and return just that object. You must have code running which does that, which you (or someone else) has written. "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer
  • 0 Votes
    2 Posts
    0 Views
    N
    Kent Sharkey wrote: What if you never looked at it at all? I couldn't say the difference... I have never looked at it. :rolleyes: :laugh: M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.
  • Masochism

    The Lounge devops docker hardware question
    13
    0 Votes
    13 Posts
    0 Views
    G
    Ah. Automating the BFH: Big :elephant:ing Hammer. Good man; carry on. Software Zen: delete this;
  • 0 Votes
    1 Posts
    10 Views
    No one has replied
  • 0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    2 Posts
    0 Views
    N
    Being happy at work makes people stay in the job and work better... No fvck Sherlock, what a discovery. M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.
  • 0 Votes
    2 Posts
    0 Views
    N
    Quote: "The threat actor was able to capture the employee's master password as it was entered, after the employee authenticated with MFA, and gain access to the DevOps engineer's LastPass corporate vault," reads a new security advisory published today. "The threat actor then exported the native corporate vault entries and content of shared folders, which contained encrypted secure notes with access and decryption keys needed to access the AWS S3 LastPass production backups, other cloud-based storage resources, and some related critical database backups." Ouch... :doh: :doh: M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.
  • 0 Votes
    1 Posts
    3 Views
    No one has replied
  • 0 Votes
    21 Posts
    0 Views
    J
    Mircea Neacsu wrote: I would go for mid to late '90-es....I've used the ARM (Annotated Reference Manual) by Stroustoup and Elli However the 90s was when libraries for C/C++ started to become available. But Stroustrup was documenting the language and nothing else. And the Ellis book (80s) did the same but more on using it rather than what it was. So as I already mentioned in the 90s of the many libraries I used I found only one that had good documentation. There were more good books published in the 90s (Meyers and Ellis) but those were still on using C++. So they expanded what what already there but the additional stuff was not documented.
  • 0 Votes
    1 Posts
    0 Views
    No one has replied