javascript – Resize divs when maximum divs are created

See the diagram below – Main Container

On click i create a div of width 680px and height 295px in the top left corner of the screen and go on until the bottom left corner of the screen with javascript. like image below…
enter image description here

Now when the 4th div is created, On the 5th click, i want my application to be able to calculate the space available and if there is no space available it creates a second div next to the first div created and so on in all other divs as seen in image…
enter image description here

Does anyone know how to calculate the space available dynamically everytime a div is created and then accordingly create smaller divs to fit into the spaces in the main container?

SharePoint 2013 designer workflow created documents inside library shows blank word document

I have one list and one library. The requirement is when any list item gets created automatically the 2013 designer workflow will create a corresponding record inside the library. The library uses one docuemnt template over the content type “Documents” and the document template consumes some of the field value or metadata inside it from the library fields.

When we manually create a item inside the document library by filling out the mandatory fields , the created record corresponding document gets created and if I open the document , then it opens successfully with the content. When the Workflow creates the new item inside the same library by filling out the required metadata , the corresponding document opens with blank content.

Note: I am using create item action in workflow to create new record inside the library.

Kindly guide me on this.

Thanks in advance!

8 – Styled images are created with nobody user

I don’t know why my Drupal 8 site is creating styled images owned by “nobody” user instead of web server account user. This cause a problem that those images can`t be read (not found error in drupal log). I have to change the owner of this files, and then I can read the images.
I have my site in a shared hosting and then I have an user to login, ftp, etc. All files are owned by this user, but when I upload an image, styled images are created owned by “nobody”. I don’t know if this is an apache issue or a Drupal issue, but I have some other D8 sites in the same server without this problem.

How to order posts by meta_value created inside loop?

Inside the WP_Query, I’m trying to order posts by price.

The problem is that the price value is not manually defined inside an ACF or so, but it comes from an api call made while looping trough posts, like this:

<?php while ( have_posts() ): the_post();

$asin = get_field("asin");?>

<h3><?php the_title(); ?></h3>
<p><?php echo aawp_get_field_value($asin, 'price'); ?></p>

<?php endwhile; ?>

That means that the numeric value (the price) isn’t available before actually running $the_query, so I cannot use something like:

'meta_key' => 'price',
'orderby' => 'meta_value_num',
'order' => 'ASC'

because “price” does not exists at that time.

I searched a lot but I didn’t find a solution to this. Maybe I need to order posts after the loop?
How would you do that?

Thanks in advance!

About the table UI created in html/css

This is a question about the UI of a table created in html/css.

Does implementing 1] and 2] at the same time lead to better UI/UX? Or is it too much?

Change the background color of the table rows alternately.

Change the background color of the target line when hovering over a line.

data – Dataset created in DHIS2 not appearing in the dataset dropdown listing

After creating a DHIS2 dataset and assigning it to the respective Org unit, when I get to the data entry app I am not able to get the created dataset on the dataset dropdown listing.

I have tried restarting my tomcat server and even invalidating and deleting cache but all seems not to work.

sending – How to send bitcoin from an address created at

Fortunately you have many options.

The bitcoin core client allows key import with importprivkey

Adds a private key to your wallet. Requires a new wallet backup.
Hint: use importmulti to import more than one private key.

Note: This call can take over an hour to complete if rescan is true, during that time, other rpc calls may report that the imported key exists but related transactions are still missing, leading to temporarily incorrect/bogus balances and unspent outputs until rescan completes.


  1. privkey (string, required) The private key (see dumpprivkey)
  2. label (string, optional, default=current label if address exists, otherwise “”) An optional label
  3. rescan (boolean, optional, default=true) Rescan the wallet for transactions

Alternatively there are many wallets out there that allow importing or sweeping a private key. Some of these include Electrum, Mycelium and Samourai (these are examples, not recommendations).

Lastly,, the site you used to create the key allows you to build a transaction and sign it as well I wouldn’t recommend this for a novice user as you can end up losing your funds to miners fees if you do not include a change address. If you don’t know what a change address is don’t attempt this approach. You can practice on testnet or with small amounts until you get comfortable you know what you are doing.

unable to get created dataset in dhis2

After creating a DHIS2 dataset and assigning it to the respective Org unit, when I get to the data entry app I am not able to get the created dataset on the dataset dropdown listing.
I have tried restarting my tomcat server and even invalidating and deleting cache but all seems not to work. Any help on this, please

dnd 5e – Can objects created by Performance of Creation be used as expensive material components?

Tasha’s Cauldron of Everything introduces the College of Creation which gets the class feature Performance of Creation:

As an action, you can channel the magic of the Song of Creation to create one nonmagical item of your choice in an unoccupied space within 10 feet of you. The item must appear on a surface or in a liquid that can support it. The gp value of the item can’t be more than 20 times your bard level, and the item must be Medium or smaller.

…this isn’t a huge deal since there is a gold limit, so the cost of what you could reach is fairly small, but later on the College grants:

Creative Crescendo


You are no longer limited by gp value when creating items with Performance of Creation.

Could you create expensive nonmagical objects such as a diamond for resurrection magic, or the 500 gp statue for imprisonment? Would it work when casting these spells?

signrawtransaction – Can we sign a psbt raw tx having multiple inputs created from BTC node with bitcoinjs lib?

Due to secruity reasons, unavailablity of private keys on my end and as per project requirements I need to build back end apis where I will provide a PSBT raw transaction hex (having multiple inputs) to front end, On front end, user will add their mnemonics and will sign all the psbt inputs individually, once all inputs are signed then a final signed raw tx hex get created.

Upon receiving signed hex I will broadcast it to the btc node and return the txid to the front end.

I am unable to find any way to sign psbt raw transaction inputs ( which is generated from btc node ) using “bitcoinjs-lib”.

Could anyone please suggest how can I achieve this.