Viewing 15 posts - 211 through 225 (of 1,419 total)
In Postman you could open the POST method and then click on the '</>' code symbol. That should generate the cURL code of the request. When I ask ChatGPT-4 to...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
July 25, 2023 at 8:03 pm
Sorry about that, apiEndpoint corrected, it was a typo. I am getting the same error still. 404 not found.
Is the port number required there? Thanks.
Try it without the "/"...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
July 25, 2023 at 4:52 pm
In the PostAsync method you're appending "/token" to the end of the HttpClient's base url which you assigned as:
string apiEndpoint = "https://helloworld.org:443/xyz/oauth2/token";
That would make the combined url...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
July 25, 2023 at 4:14 pm
I took the total time (10 seconds) from the time given in SSMS application. In the messages it reports the time from statistics for the first insert and then the...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
June 23, 2023 at 6:36 pm
Can't see Jonathan's reply without a paging bump
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
June 23, 2023 at 5:48 pm
I just improved the process a bit. You can use GENERATE_SERIES to specify the multiples of the prime that you want to delete. Also, another thing I learnt today...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
June 23, 2023 at 5:12 pm
Here's another non improvement over other methods afaik. In theory this one seemed to hold a lot of promise imo. When I gave it to ChatGPT to craft an explanation...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
June 21, 2023 at 7:25 pm
@steve-2 Collins,
Sorry... I tried your latest code on a max value of "just" 1 million. I stopped it at 2 hours and 8 minutes.
Well that's disappointing. Could it be...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
June 20, 2023 at 7:52 pm
Ok... I'm a little gobsmacked... I ran your code with zero changes and it's riddled with syntax errors and,yet, it ran without error.
What is the following supposed to do...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
June 20, 2023 at 3:52 pm
The doubled-up relational symbology isn't floating my boat on an SQL Server forum, either.
There are functions also as I'm sure you're already aware
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
June 20, 2023 at 3:13 pm
I don't know. Setting STATISTICS ON doesn't work on Fiddle
Simplified without the 4th CTE
declare @max_number int = 100;
declare @half_max_number int...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
June 20, 2023 at 12:57 am
As one query
DECLARE @maxNumber INT = 1000;
WITH BitArray AS (
SELECT [value] AS Id, 1 AS Bit FROM generate_series(1, (@maxNumber - 1) / 2,...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
June 19, 2023 at 11:37 pm
Aha the recursive CTE has been replaced with a 3rd usage of the GENERATE_SERIES function
-- Create a table to store the bit array
CREATE TABLE BitArray (
...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
June 19, 2023 at 11:10 pm
More from ChatGPT-4
Now, let me explain how the Sieve CTE works and how it fits in with the rest of the query.
The Sieve of Eratosthenes algorithm works by iteratively marking...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
June 19, 2023 at 10:59 pm
After giving it a few tries lately I've been trying to get GPT-4 to do things which wouldn't otherwise be attempted. So here is AI's implementation of the Sieve of...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
June 19, 2023 at 9:39 pm
Viewing 15 posts - 211 through 225 (of 1,419 total)