Ubuntu 16.04.2 LTS - ImportError: No module named 'numpy'

On Ubuntu 16.04.2 LTS, I get this error after running "python3 isp_data_pollution.py"
Traceback (most recent call last):
File "isp_data_pollution.py", line 23, in
import datetime as dt, numpy as np, numpy.random as npr, os, random, requests, signal, tarfile, time
ImportError: No module named 'numpy'

You must install the numpy Python module. See #9.


Is it possible to use KeyVault from Managed App published on Azure Marketplace?

I need pass secrets to Managed App published on Marketplace. Is it possible to use KeyVault for this purpose?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 2fd769b4-4c68-88be-bf6c-30ad3c355b82
Version Independent ID: e5b2d116-ac1c-84ef-eeec-e9107019b982
Content: Use Key Vault when deploying managed app - Azure Managed Applications
Content Source: articles/azure-resource-manager/managed-applications/key-vault-access.md
Service: managed-applications
GitHub Login: @tfitzmac
Microsoft Alias: tomfitz

@fiftin Thanks for your question. We are checking on this and will respond to you soon.

Related discussion done here.
Tagging @tfitzmac @MSEvanhi for visibility, to help provide insights and if required, consider enhancing the doc with a note.

I'm interested in knowing about this. I dont want customer to provide certain passwords and I dont want them to be saved in the managed app template as well. Would need to store them in KeyVault but not sure how to access it during the managed app deployment using Marketplace

Hey folks, there are a couple of ways to do this today. You can have a customer pass a user assigned identity that has rights to the keyvault for getting the key and using with AMA. You can utilize the identity selector element to allow them to select this identity at creation time. You can then utilize this identity with AMA's MSI to access the keyvault and retrieve what you need.
The other option is to provide a keyvault for the keys to be stored in the template and give the customer access to that keyvault via allowed actions. The customer can then use this keyvault just like any other, but only take actions you enable them to take. This would require the onboarding to become a two step process however as they would need to add keys post deployment.

Hi @MSEvan
I followed this guide to make a simple example to get the secret from key vault.  But I got the error:
The client '...' with object id '...' does not have permission to perform action
'MICROSOFT.KEYVAULT/VAULTS/DEPLOY/ACTION' on the specified KeyVault resource
'/subscriptions/.../resourceGroups/.../providers/Microsoft.KeyVault/vaults/...'

This is the createUiDefinition.json I used:
{
   "$schema": "https://schema.management.azure.com/schemas/0.1.2-preview/CreateUIDefinition.MultiVm.json#",
   "handler": "Microsoft.Azure.CreateUIDef",
   "version": "0.1.2-preview",
   "parameters": {
       "basics": [
         {
             "name": "secretName",
             "type": "Microsoft.Common.TextBox",
             "label": "Secret Name"
         }
       ],
       "steps": [
           {
               "name": "keyVaultSetting",
               "label": "Key Vault Setting",
               "subLabel": {
                    "preValidation": "Key Vault Settings",
                    "postValidation": "Done"
                },
               "bladeTitle": "Key Vault Settings",
               "elements": [
                   {
                       "name": "keyvaultId",
                       "type": "Microsoft.Common.TextBox",
                       "label": "Kay vault ID",
                       "visible": true
                   },
                   {
                       "name": "umi",
                       "type": "Microsoft.Common.TextBox",
                       "label": "Managed identity to access the key Vault",
                       "visible": true
                   }
               ]
           }
       ],
       "outputs": {
           "keyvaultId": "[steps('keyVaultSetting').keyvaultId]",
           "secretName": "[basics('secretName')]",
           "managedIdentity": "[parse(concat('{\"Type\": \"UserAssigned\", \"UserAssignedIdentities\": {', string(steps('keyVaultSetting').umi), ': {}}}'))]"
       }
    }
}

and mainTemplate.json:
{
  "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
  "contentVersion": "<IP_ADDRESS>",
  "parameters": {
    "keyvaultId": {
      "type": "string"
    },
    "secretName": {
      "type": "string"
    }
  },
  "resources": [
    {
      "apiVersion": "2020-06-01",
      "name": "pid-...",
      "type": "Microsoft.Resources/deployments",
      "properties": {
        "mode": "Incremental",
        "template": {
          "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
          "contentVersion": "<IP_ADDRESS>",
          "resources": []
        }
      }
    },
    {
      "type": "Microsoft.Resources/deployments",
      "name": "pipelineDeployment",
      "apiVersion": "2020-06-01",
      "properties": {
        "mode": "Incremental",
        "expressionEvaluationOptions": {
          "scope": "inner"
        },
        "parameters": {
          "secret": {
            "reference": {
              "keyVault": {
                "id": "[parameters('keyvaultId')]"
              },
              "secretName": "[parameters('secretName')]"
            }
          }
        },
        "template": {
          "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
          "contentVersion": "<IP_ADDRESS>",
          "parameters": {
            "secret": {"type": "string"}
          },
          "resources": [ ]
        }
      }
    }
  ]
}

Could you tell me what's wrong with it?  BTW, I do not quite understand what the section Accessing the Managed Identity token in the guide is for.  Maybe I need to use the token, but I don't know how I should put the token acquisition part in the mainTemplate.json to get the secret from the key vault.

I also tried the method in Access Key Vault secret when deploying Azure Managed Applications to grant access to the Appliance Resource Provider service principal.  And I got the same error:
The client '...' with object id '...' does not have permission to perform action
'MICROSOFT.KEYVAULT/VAULTS/DEPLOY/ACTION' on the specified KeyVault resource
'/subscriptions/.../resourceGroups/.../providers/Microsoft.KeyVault/vaults/...'

Then I find there are two Appliance Resource Provider (ARP) service principals.  They have the same application ID but different object IDs. One is under the customer's tenant and the other is under the publisher's.  In the 'Access control (IAM)' of the customer's key vault, customer can grant access to the ARP service principal in his tenant, but cannot to the one in the publisher's.  Customer can use az role assignment create --assignee-object-id to specify the publisher's ARP service principal.  But the role assignment is invalid:

I thought I needed the token of the user assigned managed identity (UMI) to get the secret via key vault API instead of
"secret": {
  "reference": {
    "keyVault": {
      "id": "[parameters('keyvaultId')]"
    },
    "secretName": "[parameters('secretName')]"
  }
}

So I tried the method in Accessing the Managed Identity token via a DeploymentScript deployed inside the managed app:
URL="https://management.azure.com${MANAGED_BY_ID}/listTokens?api-version=2018-09-01-preview"
DATA="{\"authorizationAudience\": \"https://management.azure.com/\", \"userAssignedIdentities\": [ \"${UMI_ID}\" ]}"

az rest -m post --headers "Accept=application/json" -b "${DATA}" -u "${URL}"

where

MANAGED_BY_ID is the managing resource group where the managed application is deployed
UMI_ID is the user assigned managed identity that has access to the customer's key vault

But I got another error said no authorization to perform action 'Microsoft.Solutions/applications/listTokens/action'

#reassign:davidsmatlak

#assign:MSEvanhi

A response was posted in the issue. I'm closing this issue, but if you feel that it's still a concern, please post a comment or submit a new issue.
#please-close


add grid gap option

I've never used svelte before, so I hope I didn't break anything.
Really love this hex editor, find it much easier to use than https://hextml.playest.net/
The only downside for me is that there wasn't a grid gap feature.
Having a grid-gap in the export eases cutting the individual hexes out after it's printed.
This way I can let my players discover one tile at a time.
🐭
Here is an example,

Brilliant! This is awesome


Status is not throwing errors

After announcing a transaction a status is expected to throw an error if there is any. This was happening in previous versions of nem2-cli.
This was fixed in nem2-sdk-typescript-javascript, must be checked in cli too.
https://github.com/nemtech/nem2-sdk-typescript-javascript/issues/411
https://github.com/nemtech/catapult-rest/commit/1cf85eba81aea8f74cab0382520c7a48a9830e30

Thanks for reporting! We have updated the nem2-sdk dependency and published a new release (0.16.1). If the error still persist, please add a comment on the issue.


Fix #8 Making error message more helpful

#8

@AJDBenner A good habit on PRs is to explicitly link to the issue you're solving in the description. Github makes this easy:

@sedge Thanks for the tip


Lab4 - Ivy

@hexueer

@hexueer I think I closed this by accident by deleting your branch - was this finished?


Add Billing and Inventory icons

🚀 Feature Proposal
We need billing and inventory modules icons.
Motivation
With the implementation of the basic billing and inventory modules, there is a need for icons for these modules for the menu/navbars.
Proposed
Billing

https://fontawesome.com/icons/hand-holding-usd?style=solid
https://fontawesome.com/icons/file-invoice-dollar?style=solid
https://fontawesome.com/icons/money-bill-alt?style=solid

Inventory

https://fontawesome.com/icons/truck-loading?style=solid
https://fontawesome.com/icons/warehouse?style=solid
https://fontawesome.com/icons/box-open?style=solid

I would probably go with:
https://fontawesome.com/icons/file-invoice-dollar?style=solid for Billing
and https://fontawesome.com/icons/boxes?style=light for Inventory

I would probably go with:
https://fontawesome.com/icons/file-invoice-dollar?style=solid for Billing
and https://fontawesome.com/icons/boxes?style=light for Inventory

Awesome!,  thanks @StefanoMiC I'll go ahead and split these into two issues.


Update travis tests due to Azure SDK restructuring

The Azure Storage part of the SDK has been moved into its own
git repository. This testing and also packaging of the SDK
has changed

Standard testing procedure using azure from pip also works again now since $MS has merged everything to master. I'll keep the way of using the code from github because we plan to add publishing and replication support to the SDK soon


feat: add challenge number

Add Rune.getChallengeNumber and explains it in the docs.
Add seed and modulo in example game

TODO after merging this pr we need to run npm version minor, create a release and post it on npm.
Closes RUNE-6381

In the future, feel free to do the npm versioning separately if it simplifies the PR  :)
We'll hopefully soon setup an automated flow for this (see RUNE-847).

Closed due to https://github.com/rune/rune-games-sdk/pull/22, https://github.com/rune/rune-games-sdk/pull/23, https://github.com/rune/rune-games-sdk/pull/24


Allow downloading priority by extensions

Is it possible to specify the priority of downloading files by their extension (woff 2, woff, tff)? Now, if a folder contains both ttf and woff2 at the same time, then the module loads tff. Or do I only need to store fonts in woff2 format?

Any updates on this?


Empty URL field throws error 422

Submitting with an empty url field throws an error code 422, even though the flag "required" was set to False and the flag "allow_none" was set to True for the affected url field in the schema.

Cannot reproduce this error. Could you give more details?


feat(server): check Response headers for Connection: close in keep_alive loop

BREAKING CHANGE: Usage of Response.deconstruct() and construct() now use
a &mut Headers, instead of the struct proper.

@reem ok, refactored that function...

Coverage decreased (-0.08%) to 85.42% when pulling 49b5b8fdfe256ead8f3aa3d489bc4b299c190a9a on server-keep-alive into 871f37a5605d433e5699ed2f16631001d86d7805 on master.

LGTM - do we care about the coveralls regression as a blocker?

I don't, as I still find the coverage report confusing and inaccurate.


Questions about training

Hi, first all this is really great work. Thanks for releasing the code.
I have a few questions about the training.

In the first stage of training, the query transformer P is trained on SD2.1. So I understand all weights of SD2.1 are fixed and only P is trained. Do you train at that stage also lambda = tanh(alpha)?
The number of queries in P depend on the number of frames. When you train with one query using a T2I model, and you go to the next stage to train it on a T2V model, do you initialize the F (=16) queries by repeating the one query that you trained on the T2I model?
SD2.1 is trained on 768x768 resolution using v-prediction as loss. So, do you train in the first stage P using 768x768 resolution and v-prediction? If yes, I suppose you used the LAION dataset to train it, right (as WebVid10M does not offer that resolution)?

You mention later: to avoid learning short-cuts, you randomly select a video frame as image condition.
Two questions about that:

For the initial training stage on the T2I model, are you using the exact frame, and only for the last training stage, you randomly select a frame?
Is the frame you use for conditioning always contained in the input video sequence x_t  ? So you trained with 16 frames. The frame you used for conditioning, was it always contained in these 16 frames?

Hi. Thanks for your interest.

No. In this stage, we keep lambda=1.

Yes.

No. Stable Diffusion 2.1-base is trained on 512x512 with eps (instead of v-prediction), we adopt that in the first stage and only use the WebVid10M dataset for training.

Almost yes. In fact, we adopt random selection in the stages after initial training stage on the T2I model.

Yes.

Great thanks for all the answers. Sorry for the late reply (I was on vacation). Just to confirm, in the initial stage, you train P with SD 2.1-base on WebVid using 256x256?

No. We train it with resolution 512x512. Since in the initial training stage, we keep image-SDv2.1 fixed and train P only. The image-SDv2.1 is at a resolution of 512x512.
7.1. Yes. The mentioned conv is also regarded as spatial layers.
7.2 No. Sorry for confusion. Spatial layers means all layers in the VideoCrafter (the same as image SDv2.1 U-Net's, In contrast to temporal layers added by VideoCrafter to image SDv2.1. BTW, VideoCrafter is built on image SDv2.1 by adding temporal layers). As in this second training stage, we have equipped the VideoCrafter (T2V model) with our P (trained on image SDv2.1), we would like to fuse them by finetuning.
Exactly.


Refactor timerender.js functions to pass and return objects

The render_now() function in timerender.js returns a tuple:
return [time.toString("MMM\xa0dd"), formal_time_str, false];
which is then used in render_date() and update_timestamps(). Consider converting render_now()'s return value to be an object and then modify render_date() and update_timestamps() accordingly. This should increase readability and make future code reviews easier.

I think this would be a helpful change!  I added the "bite size" label.

@dhcrzf can you claim this issue by commenting @zulipbot claim?

@zulipbot claim


Updated README

Related to #19

Thanks for the PR @bakwc.
The real error message in this case was "unexpected response seq and no more packets to try". I need to improve the error handling a little bit.
Before I take a PR on this subject though I'd like to discuss your case on the original issue a bit more. I suspect something else was going on here as I haven't seen that error in relation to retrying before.

Ok, let me know if you need additional info


Error

My path is not created, powershell is running as administrator, error bellow, in the logs i dint find any clue
All the automatic steps are now completed!
Please proceed with the manual steps documented on the Setup Guide!
Get-Item : Cannot find path 'C:\sp-dev-gdpr-activity-hub-master\sp-dev-gdpr-activity-hub-master\GDPRStarterKit\sharepoint\solution\gdpr-starter-kit.sppkg' because it does not exist.
At C:\sp-dev-gdpr-activity-hub-master\sp-dev-gdpr-activity-hub-master\Scripts\Provision-GDPRActivityHub.ps1:148 char:23
... ppkgPath = (Get-Item -Path "..\GDPRStarterKit\sharepoint\solution\gdp ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CategoryInfo : ObjectNotFound: (C:\sp-dev-gdpr-...arter-kit.sppkg:String) [Get-Item], ItemNotFoundException
FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand
You can find the .SPPKG file at the following path:

Hi guys,
I could finally install the solution
Anyway when trying to insert and Event or Request on forms and pick "Save" nothing happens
Can you please help?

Using developer tools on browser i get in the home page this error
Failed to load resource: the server responded with a status of 500 ()
sites/GDPR2018/_api/social.following/IsFollowed
<m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<m:code>
-1, Microsoft.SharePoint.Client.ClientServiceException
</m:code>
<m:message xml:lang="pt-PT">
The HTTP method "GET" can not be used to access the "IsFollowed" resource. The resource operation type is specified as "Default". Use the correct HTTP method to invoke the resource.
</m:message>
</m:error>
More erros in the insert Event form
Failed to load resource: net::ERR_NAME_NOT_RESOLVED
relative-path.invalid/react-dom:1 Failed to load resource: net::ERR_NAME_NOT_RESOLVED


Be more specific in how we share validation status

I want to automate the following: we should publish who validated the location and by what means:
let's say doobneek visited the location a month ago, they check that box and input the info, the front end would indicate: d validated this location in person a month ago, if Kiesha just called, then she can check that box while re-validating and the status will update: K also called them a day ago to re-check the validity.

I think since we are sharing who we are on the about page, we can hyperlink who we are on those records for transparency,  accountability,  and interactiveness


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target_d9cb5c04-3802-4693-bf2b-212b46d80d66/pull/1 is merged into live branch.
Auto archive content to https://github.com/OPS-E2E-PPE/docs-archive-test-target_d9cb5c04-3802-4693-bf2b-212b46d80d66.git

Docs Build status updates of commit 9c98446:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error]

Cannot sync git repo to specified commit because branch Archive_master_2019-11-07-09-10-29 has been deleted or has been force pushed: fatal: Couldn't find remote ref Archive_master_2019-11-07-09-10-29

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.