Benefits of not having a clustered index on tables (Heaps)

What are the benefits of not having a clustered index on a table in SQL server. Will a

SELECT * INTO TABLE_A FROM TABLE_B 

Be faster if TABLE_A is a heap? Which operation will benefit if the table is a heap? I am quite sure UPDATE‘s and DELETE‘s will benefit from a clustered index. What about INSERTS? My understanding is that INSERT "might" benefit from the table being a heap, both in term of speed but also other resources and hardware (I/O, CPU, memory and storage…).

What is the most scarce resource in terms of hardware? In terms of storage is a heap going to occupy less space? Is disk storage not the least expensive resource? If so is it rational to keep table as heap in order to save disk space? How will a heap affect CPU and I/O with SELECT, INSERT, UPDATE and DELETE? What cost goes up when table is a heap and we SELECT, UPDATE and DELETE from it?

Thansk

Meta Scraper Add-on at scale ?

Hi have a problem with the Meta Scraper Add On. 
Imgur trying to scrape 1533 Keywords and I get only 500 results.

Afterwards I renewed the proxies, put delay on 30 seconds and switched connections to 1 and I get 900 results, but it doesn’t stop (start button greyed out), it simply does not go on.
Afterwards I checked the proxies and all of them passed both tests.
What am I doing wrong ?

Can I defer levelling up after reaching xp treshold?

As a rogue, I’ve gained enough XP to level up to level 3. However, I’m not yet ready to pick what archetype would fit best for me.

Despite having gained enough XP, can I wait until later to level up my character?

I’m looking for rules to back me up, especially if it explicitly states that I don’t need to level up immediately upon acquiring the xp treshold.

Do Goliaths get cold resistance?

There seems to be a discrepancy between sources for the Goliath’s ‘Mountain Born’ racial trait:

Volo’s Guide to Monsters says:

Mountain Born. You’re acclimated to high altitude, including elevations above 20,000 feet. You’re also naturally adapted to cold climates, as described in chapter 5 of the Dungeon Master’s Guide.

(Btw there is nothing in the Volo’s Errata to correct any of that)

D&D Beyond says:

Mountain Born. You have resistance to cold damage. You’re also acclimated to high altitude, including elevations above 20,000 feet.

Which is it?

Access GLFW functions from DLL

My game uses DLLs as mods. Players can write DLLs which can render, play audio, print to console, etc. This works fine, however when I try to access GLFW functions, they don’t seem to work properly.

CustomMod.cpp (compiled to DLL)

void runDLLCode() {     std::cout << glfwGetKey(Game::getWindow(), GLFW_KEY_A); } 

Game.cpp (compiled to EXE)

void run() {     //Load DLL....       std::cout << glfwGetKey(Game::getWindow(), GLFW_KEY_A); // Prints 1     runDLLCode();                                           // Prints 0 (should print 1 since key is still down)     std::cout << glfwGetKey(Game::getWindow(), GLFW_KEY_A); // Prints 1 } 

Running std::this_thread::get_id() provides the same thread ID across both the DLL and exe.

The address of both Game::getWindow() is the same as well.

Is it possible to have all print 1 when the application is run? Or is it not possible to use GLFW functions across the DLL "wall"?

Code/plugin/module to create PDF of website calendar [closed]

I’m trying to find a method to create beautiful PDFs of website calendars. An example of what I’m talking about can be viewed if you click the Create Brochure button on this website.

Note: You may need to click the calendar icon in the top right, then click the icon next to it again to get the button to appear in the left column.

I see that it’s API driven. Is there an option out there that is not proprietary?

Upload Image Remotely from Rest API using JWT Authorization INVALID_AUTHORIZATION_HEADER_TOKEN_TYPE

Trying to upload images into my media gallery programatically from my local machine to webserver.

Using this function here to get the JWT token along with the
WordPress REST API Authentication plugin to initialize JWT:

function get_jwt_token_wp(): ?string {     $  request_url = 'https://example.com/wp-json/api/v1/token';      $  api = curl_init();      $  username = 'admin';     $  password = 'password';     //set the url, POST data     curl_setopt( $  api, CURLOPT_URL, $  request_url );     curl_setopt( $  api, CURLOPT_POST, 1 );     curl_setopt( $  api, CURLOPT_POSTFIELDS, "username=$  username&password=$  password" );     curl_setopt( $  api, CURLOPT_VERBOSE, 1);     curl_setopt( $  api, CURLOPT_RETURNTRANSFER, 1 );      $  server_output = curl_exec ($  api);     printr(curl_getinfo($  api));     if ($  server_output === false) {         die('Error getting JWT token on WordPress for API integration.');     }     $  server_output = json_decode($  server_output);      if ($  server_output === null && json_last_error() !== JSON_ERROR_NONE) {         die('Invalid response getting JWT token on WordPress for API integration.');     }      if (!empty($  server_output->jwt_token)) {         $  jwt_token = $  server_output->jwt_token;         curl_close ($  api);         return $  jwt_token;     } else {         die('Invalid response getting JWT token on WordPress for API integration.');     }     return null; } 

and this function to upload the image

function upload_image_wp( $  path ): array {     $  request_url = 'https://example.com/wp-json/wp/v2/media';      $  image = file_get_contents( $  path );     $  mime_type = mime_content_type( $  path );      $  api = curl_init();      $  username = 'admin';     $  password = 'password';      $  httpheader = array( 'Content-Type: ' . $  mime_type, 'Content-Disposition: attachment; filename="' . basename($  path) . '"', 'Authorization' => 'Bearer ' . WOO_JWT_KEY );      curl_setopt( $  api, CURLOPT_URL, $  request_url );     curl_setopt( $  api, CURLOPT_POST, 1 );     curl_setopt( $  api, CURLOPT_POSTFIELDS, $  image );     curl_setopt( $  api, CURLOPT_HTTPHEADER, $  httpheader );     curl_setopt( $  api, CURLOPT_VERBOSE, 1);     curl_setopt( $  api, CURLOPT_RETURNTRANSFER, 1 );     curl_setopt( $  api, CURLOPT_USERPWD, $  username . ':' . $  password );     $  result = curl_exec( $  api );     printr(curl_getinfo($  api));     curl_close( $  api );     return json_decode( $  result ); } 

with my headers looking something like this:

Array (     [0] => Content-Type: image/gif     [1] => Content-Disposition: attachment; filename="user_loggedin_avatar.gif"     [Authorization] => Bearer eyJhbGciOiJIU..................................... ) 

Is my format wrong? Am I doing something else wrong? I have never worked with JWT authentication before so this has all been new to me.

This is the error I am getting on the return of my call.

object(stdClass)[3]   public 'status' => string 'error' (length=5)   public 'error' => string 'INVALID_AUTHORIZATION_HEADER_TOKEN_TYPE' (length=39)   public 'code' => string '401' (length=3)   public 'error_description' => string 'Authorization header must be type of Bearer Token.' (length=50) 

Unfortunately google isn’t showing much of anything regarding why this error pops up, so I am a bit stuck. Any help greatly appreciated!

What kinds of training and research are possible within the paradises found within a Rod of Security?

The Rod of Security gives a person access to ‘any paradise one could imagine’, specifically:

‘… the rod then instantly transports you and up to 199 other willing creatures you can see to a paradise that exists in an extraplanar space. You choose the form that the paradise takes. It could be a tranquil garden, lovely glade, cheery tavern, immense palace, tropical island, fantastic carnival, or whatever else you can imagine.’

This ageless paradise has a 199 day limit, divided by the number of occupants staying within Example: a party of five gets ( 199 days / 5 people = ) 39.8 days maximum. Once out it takes ten days to regain this 199-day-persons capacity.

Plenty of rest, good times and amazing food (i.e. ‘possible weight-gain hazard’) – but so much free time… with incredible resources! Imagine gaining new tool proficiencies, catching up on some downtime stuff or whatever you like. But could one research old &/or new spells? Develop a formula / blueprint / pattern for almost any magic item? Research ancient lore in a paradise-library? Suddenly this rod is a very powerful item. Possibly derailing a campaign – or even presenting as a bit too powerful?

Given access to ‘any paradise’ – be that training &/or library-research – what limits exist for players’ gains in skills, abilities &/or knowledge?