css – What boxes are flex items? Can you look at some kind of box like block inline and inline block?

The Elements inline You can not have one width and height but defines in a flex-container if I define a height.padding and margin to an object inline These are when applied.

You can consider one flex-item as a kind of box in which the padding.margin.width.height and border of the elements are respected?

When I say, if they can be considered as a kind of box, I mean that, if flex-item It could be considered as a display value defined only by the container and not autonomously

  height: 200px;
  background: pink;
  display: flex;
  background-color: blue;
  padding: 50px;
  color: white;

  background-color: orange;
  width: 500px;
  padding: 100px;
1 2

Modify the fields for new items in accordance with the different views of Sharepoint Online

I've been wondering if there's a way to change the fields that appear when a user clicks "New Item" in a SharePoint list, depending on which Sharepoint view it's in.

For example, in the end user view, only selected fields are displayed in the article form, and in another view, different fields appear in the backend view when you click New Article.


magento2 – Magento 2 REST API: Add items with additional info_buyRequest attributes to your cart

Adding a product to a customer's shopping cart using the REST API is easy enough. In our case, we also want to add extra info_buyRequest Options. However, it is not clear in the documentation how to add more buy request attributes to such a request.

We tried it with

    "cartItem": {
        "sku": "243612",
        "qty": 1.0,
        "quote_id": "23627",
        "product_option": {
            "info_buyRequest": {
                "foo": "foobar"

but had no luck with it. Is there a way to do that?

Magento Version: 2.3.2

Ease of Use – Handling Multiple Statuses When Tagging Items

Currently the tag feature is working for a results page.

  • The user must be able to mark and deselect results
  • The page may contain active filters that exclude results based on tags

Which pattern can I use to allow the user to edit a group of selected elements with a mix of tags (for example, 5 elements have only 3 "day 2").

Ideas that I've studied:

Easy dropdown
A simple drop-down menu listing all available tags. If the items are tagged, the message "Untag" appears in the drop-down list as you move the pointer. This idea stops as soon as you have a selection of elements that do not all share the same tags.

Check box and undetermined condition
A list of check boxes in a drop-down list that displays all available tags. If a tag contains mixed selections, it will be displayed as undetermined status. The user can enable or disable the desired tags and apply them as a single function.

Two separate drop-down buttons, one for "day" and one for "untag". The user can make selections and add or remove tags at will. The elements of the drop-down menu are not affected by the selected elements in any way. This option no longer works if you include the exclusion filters. If the first action I should take causes the copies to disappear, I can not do the second action.

Dropdown with indeterminate state
This would be a simple drop-down list of indeterminate states. If a drop-down menu item has mixed states and does not display "untag" on the hover, the user will only have access to the "untag" hover if all selections have that tag.

I prefer the checkbox option, but look for additional opinions or thoughts on my approach.

Bottom up!


Equipment – Does the mass value of items in my backpack count to my limit?

My Pathfinder 2e character has a maximum of 7. I have purchased an adventurer's backpack that costs 2kg but includes a backpack that can carry up to 4kg.

The description of the backpack (Core Rulebook, p. 287) reads:

A backpack holds up to 4 pieces. If you carry or stow the backpack rather than carrying it on your back, its mass is rather light than negligible.

I am not sure how this interacts with my mass. I can foresee two possibilities:

  1. I can still only carry up to 7 bulk. My backpack can carry 4 bulk by itself, but if I carry or carry the backpack I must also wear the 4 bulk. In this case, there seems to be no real benefit to a backpack unless you justify it As You carry things.
  2. While I carry the backpack, I can carry up to 11 pieces of luggage (7 of my limit, 4 of the backpack). This makes the backpack useful, but I do not see this interpretation supported in the rules.

How does the backpack work? Does the bulk value of the items in my backpack count toward my bulk limit?

Delete over 5000 items SharePoint Online Powershell

I am trying to delete about one million items from a SharePoint Online Library. I think the following code (found on the web) stacks this on <5000 elements, but it still fails with an error:
Error deleting list items! Exception when calling "ExecuteQuery" with "0" arguments: "The attempted operation is not allowed because it exceeds the administrator-enforced list view threshold."

It uses CAML, but I think it will delete one file at a time?
I can not even delete the library! Any ideas why?

#Load SharePoint CSOM Assemblies
Add-Type -Path "C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions16ISAPIMicrosoft.SharePoint.Client.dll"
Add-Type -Path "C:Program FilesCommon FilesMicrosoft SharedWeb Server Extensions16ISAPIMicrosoft.SharePoint.Client.Runtime.dll"

#Config Parameters
$SiteURL= "https://mysite/sites/subsite"
$BatchSize = 500

#Setup Credentials to connect
$Cred = Get-Credential
$Cred = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Cred.UserName,$Cred.Password)

Try {
    #Setup the context
    $Ctx = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL)
    $Ctx.Credentials = $Cred

    #Get the web and List
    Write-host "Total Number of Items Found in the List:"$List.ItemCount

    #Define CAML Query
    $Query = New-Object Microsoft.SharePoint.Client.CamlQuery
    $Query.ViewXml = "$BatchSize"

    Do { 
        #Get items from the list in batches
        $ListItems = $List.GetItems($Query)

        #Exit from Loop if No items found
        If($ListItems.count -eq 0) { Break; }

        Write-host Deleting $($ListItems.count) Items from the List...

        #Loop through each item and delete
        ForEach($Item in $ListItems)

    } While ($True)

    Write-host -f Green "All Items Deleted!"
Catch {
    write-host -f Red "Error Deleting List Items!" $_.Exception.Message

Unity – In-App Purchases: Restore unlocked items to a new device

I'm building a mobile game for Android / iOS with support for in-app purchases. Our game also supports unlock codes (also called promo codes). A user can enter an unlock code in our app to unlock one or more IAP articles for free. We want to make sure that a user who changes his device can recover all IAP items and unlocked items.

Since the promo code feature offered in App Stores either has limited functionality or is not available at all, we have decided to create our own backend for managing unlock codes. When a user enters an unlock code, we register it in our backend.

When a user reinstalls the app, we need to talk to two systems to get the full list of purchased / unlocked items:

  • Talk to the App Stores for a list of purchased items
  • Talk to our backend for a list of unlocked items

To make sure that the user gets their unlocked items even after reinstalling the app on another device, we need an identifier that is based on a user account rather than the device. Unity does not provide access to Apple ID / Google ID. So my question is how to do this in a good way.

At the moment I see the only possible solution in the following:

Users must register with us (eg e-mail and password). We save the list of unlocked articles in our own backend. In the case of an app reinstall on a new device, the user must log in to our backend so that unlocked items are available again.

Is there better solutions for this?

Java – Remove percentage between 4 items

I'm creating an Android App for Questions and Answers that includes help placeholders. I have a placeholder called Public Voting that I want to start with:


Answer A: 20%

Answer B (correct): 44%

Answer C: 30%

Answer D: 6%

I would put these percentages in a text view, but I can not find a way to break 100 into 4 numbers. How could I make this formula?

PS: I know I have to insert a code so that they can understand more, but I have no idea how to do that, I only get the percentage of a single number.