CSP account wrong authenticated context

Describe the bug
I'm using a CSP account to manage Azure Resources within a customer's tenant. They have an Azure Plan subscription provided by us. I have automatically received Owner permissions on the subscription through the Foreign Principal group within my home tenant. Via the Azure Portal I can manage everything without issues. However, when using Azure CLI (indirectly via Terraform or directly via Terminal) I face issues.
For example, az account get-access-token shows me I received a valid bearer token, but when executing az ad signed-in-user show I get the error message pasted further below.
This is the same error message that I get when running a terraform apply within the same context.
I already tried an az logout and az login --scope https://graph.microsoft.com/.default -t customertenant.com but without success.
Related command
az ad signed-in-user show
Errors
Current authenticated context is not valid for this request. This occurs when a request is made to an endpoint that requires user sign-in. For example, /me requires a signed-in user.  Acquire a token on behalf of a user to make requests to these endpoints.  Use the OAuth 2.0 authorization code flow for mobile and native apps and the OAuth 2.0 implicit flow for single-page web apps.
Issue script & Debug output
cli.knack.cli: Command arguments: ['ad', 'signed-in-user', 'show', '--debug']
cli.knack.cli: __init__ debug log:
Enable color in terminal.
cli.knack.cli: Event: Cli.PreExecute []
cli.knack.cli: Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x0222A538>, <function OutputProducer.on_global_arguments at 0x0242C778>, <function CLIQuery.on_global_arguments at 0x024493D0>]
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableCreate []
cli.azure.cli.core: Modules found from index for 'ad': ['azure.cli.command_modules.role']
cli.azure.cli.core: Loading command modules:
cli.azure.cli.core: Name                  Load Time    Groups  Commands
cli.azure.cli.core: role                      0.010        17        61
cli.azure.cli.core: Total (1)                 0.010        17        61
cli.azure.cli.core: These extensions are not installed and will be skipped: ['azext_ai_examples', 'azext_next']
cli.azure.cli.core: Loading extensions:
cli.azure.cli.core: Name                  Load Time    Groups  Commands  Directory
cli.azure.cli.core: Total (0)                 0.000         0         0
cli.azure.cli.core: Loaded 17 groups, 61 commands.
cli.azure.cli.core: Found a match in the command table.
cli.azure.cli.core: Raw command  : ad signed-in-user show
cli.azure.cli.core: Command table: ad signed-in-user show
cli.knack.cli: Event: CommandInvoker.OnPreCommandTableTruncate [<function AzCliLogging.init_command_file_logging at 0x045EC610>]
cli.azure.cli.core.azlogging: metadata file logging enabled - writing logs to 'C:\Users\xxxREMOVEDxxx\.azure\commands\2023-10-05.08-38-20.ad_signed-in-user_show.20456.log'.
az_command_data_logger: command args: ad signed-in-user show --debug
cli.knack.cli: Event: CommandInvoker.OnPreArgumentLoad [<function register_global_subscription_argument.<locals>.add_subscription_parameter at 0x046126E8>]
cli.knack.cli: Event: CommandInvoker.OnPostArgumentLoad []
cli.knack.cli: Event: CommandInvoker.OnPostCommandTableCreate [<function register_ids_argument.<locals>.add_ids_arguments at 0x0462C658>, <function register_cache_arguments.<locals>.add_cache_arguments at 0x0462C850>]
cli.knack.cli: Event: CommandInvoker.OnCommandTableLoaded []
cli.knack.cli: Event: CommandInvoker.OnPreParseArgs []
cli.knack.cli: Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x0242C7C0>, <function CLIQuery.handle_query_parameter at 0x02449418>, <function register_ids_argument.<locals>.parse_ids_arguments at 0x0462C808>]
cli.azure.cli.core.util: Retrieving token for resource https://graph.microsoft.com/
cli.azure.cli.core.auth.persistence: build_persistence: location='C:\\Users\\xxxREMOVEDxxx\\.azure\\msal_token_cache.bin', encrypt=True
cli.azure.cli.core.auth.binary_cache: load: C:\Users\xxxREMOVEDxxx\.azure\msal_http_cache.bin
urllib3.util.retry: Converted retries value: 1 -> Retry(total=1, connect=None, read=None, redirect=None, status=None)
msal.authority: openid_config = {'token_endpoint': 'https://login.microsoftonline.com/46c26189-5b9c-422c-8d0d-xxxREMOVEDxxx/oauth2/v2.0/token', 'token_endpoint_auth_methods_supported': ['client_secret_post', 'private_key_jwt', 'client_secret_basic'], 'jwks_uri': 'https://login.microsoftonline.com/46c26189-5b9c-422c-8d0d-xxxREMOVEDxxx/discovery/v2.0/keys', 'response_modes_supported': ['query', 'fragment', 'form_post'], 'subject_types_supported': ['pairwise'], 'id_token_signing_alg_values_supported': ['RS256'], 'response_types_supported': ['code', 'id_token', 'code id_token', 'id_token token'], 'scopes_supported': ['openid', 'profile', 'email', 'offline_access'], 'issuer': 'https://login.microsoftonline.com/46c26189-5b9c-422c-8d0d-xxxREMOVEDxxx/v2.0', 'request_uri_parameter_supported': False, 'userinfo_endpoint': 'https://graph.microsoft.com/oidc/userinfo', 'authorization_endpoint': 'https://login.microsoftonline.com/46c26189-5b9c-422c-8d0d-xxxREMOVEDxxx/oauth2/v2.0/authorize', 'device_authorization_endpoint': 'https://login.microsoftonline.com/46c26189-5b9c-422c-8d0d-xxxREMOVEDxxx/oauth2/v2.0/devicecode', 'http_logout_supported': True, 'frontchannel_logout_supported': True, 'end_session_endpoint': 'https://login.microsoftonline.com/46c26189-5b9c-422c-8d0d-xxxREMOVEDxxx/oauth2/v2.0/logout', 'claims_supported': ['sub', 'iss', 'cloud_instance_name', 'cloud_instance_host_name', 'cloud_graph_host_name', 'msgraph_host', 'aud', 'exp', 'iat', 'auth_time', 'acr', 'nonce', 'preferred_username', 'name', 'tid', 'ver', 'at_hash', 'c_hash', 'email'], 'kerberos_endpoint': 'https://login.microsoftonline.com/46c26189-5b9c-422c-8d0d-xxxREMOVEDxxx/kerberos', 'tenant_region_scope': 'EU', 'cloud_instance_name': 'microsoftonline.com', 'cloud_graph_host_name': 'graph.windows.net', 'msgraph_host': 'graph.microsoft.com', 'rbac_url': 'https://pas.windows.net'}
msal.application: Broker enabled? False
cli.azure.cli.core.auth.msal_authentication: UserCredential.get_token: scopes=('https://graph.microsoft.com//.default',), claims=None, kwargs={}
msal.application: Cache hit an AT
msal.telemetry: Generate or reuse correlation_id: 6dca10a8-66a2-4911-9d55-85ac5146fb61
cli.azure.cli.core.util: Request URL: 'https://graph.microsoft.com/v1.0/me'
cli.azure.cli.core.util: Request method: 'GET'
cli.azure.cli.core.util: Request headers:
cli.azure.cli.core.util:     'User-Agent': 'python/3.10.10 (Windows-10-10.0.22621-SP0) AZURECLI/2.53.0 (MSI)'
cli.azure.cli.core.util:     'Accept-Encoding': 'gzip, deflate'
cli.azure.cli.core.util:     'Accept': '*/*'
cli.azure.cli.core.util:     'Connection': 'keep-alive'
cli.azure.cli.core.util:     'x-ms-client-request-id': 'd7c7b776-57e9-4fbf-b7eb-xxxREMOVEDxxx'
cli.azure.cli.core.util:     'CommandName': 'ad signed-in-user show'
cli.azure.cli.core.util:     'ParameterSetName': '--debug'
cli.azure.cli.core.util:     'Authorization': 'Bearer eyJ0eXAiOiJKV...'
cli.azure.cli.core.util: Request body:
cli.azure.cli.core.util: None
urllib3.connectionpool: Starting new HTTPS connection (1): graph.microsoft.com:443
urllib3.connectionpool: https://graph.microsoft.com:443 "GET /v1.0/me HTTP/1.1" 400 None
cli.azure.cli.core.util: Response status: 400
cli.azure.cli.core.util: Response headers:
cli.azure.cli.core.util:     'Transfer-Encoding': 'chunked'
cli.azure.cli.core.util:     'Content-Type': 'application/json'
cli.azure.cli.core.util:     'Content-Encoding': 'gzip'
cli.azure.cli.core.util:     'Vary': 'Accept-Encoding'
cli.azure.cli.core.util:     'Strict-Transport-Security': 'max-age=31536000'
cli.azure.cli.core.util:     'request-id': '2904440f-9e40-4f79-9911-xxxREMOVEDxxx'
cli.azure.cli.core.util:     'client-request-id': '2904440f-9e40-4f79-9911-xxxREMOVEDxxx'
cli.azure.cli.core.util:     'x-ms-ags-diagnostic': '{"ServerInfo":{"DataCenter":"North Europe","Slice":"E","Ring":"4","ScaleUnit":"007","RoleInstance":"DU6PEPF0000BE83"}}'
cli.azure.cli.core.util:     'Date': 'Thu, 05 Oct 2023 06:38:19 GMT'
cli.azure.cli.core.util: Response content:
cli.azure.cli.core.util: {"error":{"code":"BadRequest","message":"Current authenticated context is not valid for this request. This occurs when a request is made to an endpoint that requires user sign-in. For example, /me requires a signed-in user.  Acquire a token on behalf of a user to make requests to these endpoints.  Use the OAuth 2.0 authorization code flow for mobile and native apps and the OAuth 2.0 implicit flow for single-page web apps.","innerError":{"date":"2023-10-05T06:38:20","request-id":"2904440f-9e40-4f79-9911-xxxREMOVEDxxx","client-request-id":"2904440f-9e40-4f79-9911-xxxREMOVEDxxx"}}}
cli.azure.cli.core.azclierror: Traceback (most recent call last):
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/role/_msgrpah/_graph_client.py", line 52, in _send
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/util.py", line 1010, in send_raw_request
azure.cli.core.azclierror.HTTPError: Bad Request({"error":{"code":"BadRequest","message":"Current authenticated context is not valid for this request. This occurs when a request is made to an endpoint that requires user sign-in. For example, /me requires a signed-in user.  Acquire a token on behalf of a user to make requests to these endpoints.  Use the OAuth 2.0 authorization code flow for mobile and native apps and the OAuth 2.0 implicit flow for single-page web apps.","innerError":{"date":"2023-10-05T06:38:20","request-id":"2904440f-9e40-4f79-9911-xxxREMOVEDxxx","client-request-id":"2904440f-9e40-4f79-9911-xxxREMOVEDxxx"}}})

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 697, in _run_job
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 333, in __call__
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 363, in handler
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/arm.py", line 429, in show_exception_handler
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/command_operation.py", line 361, in handler
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/role/custom.py", line 1828, in show_signed_in_user
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/role/_msgrpah/_graph_client.py", line 224, in signed_in_user_get
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/role/_msgrpah/_graph_client.py", line 55, in _send
azure.cli.command_modules.role._msgrpah._graph_client.GraphError: Current authenticated context is not valid for this request. This occurs when a request is made to an endpoint that requires user sign-in. For example, /me requires a signed-in user.  Acquire a token on behalf of a user to make requests to these endpoints.  Use the OAuth 2.0 authorization code flow for mobile and native apps and the OAuth 2.0 implicit flow for single-page web apps.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\knack/cli.py", line 233, in invoke
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 663, in execute
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 726, in _run_jobs_serially
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/core/commands/__init__.py", line 718, in _run_job
  File "D:\a\_work\1\s\build_scripts\windows\artifacts\cli\Lib\site-packages\azure/cli/command_modules/role/commands.py", line 50, in graph_err_handler
knack.util.CLIError: Current authenticated context is not valid for this request. This occurs when a request is made to an endpoint that requires user sign-in. For example, /me requires a signed-in user.  Acquire a token on behalf of a user to make requests to these endpoints.  Use the OAuth 2.0 authorization code flow for mobile and native apps and the OAuth 2.0 implicit flow for single-page web apps.

cli.azure.cli.core.azclierror: Current authenticated context is not valid for this request. This occurs when a request is made to an endpoint that requires user sign-in. For example, /me requires a signed-in user.  Acquire a token on behalf of a user to make requests to these endpoints.  Use the OAuth 2.0 authorization code flow for mobile and native apps and the OAuth 2.0 implicit flow for single-page web apps.
az_command_data_logger: Current authenticated context is not valid for this request. This occurs when a request is made to an endpoint that requires user sign-in. For example, /me requires a signed-in user.  Acquire a token on behalf of a user to make requests to these endpoints.  Use the OAuth 2.0 authorization code flow for mobile and native apps and the OAuth 2.0 implicit flow for single-page web apps.
cli.knack.cli: Event: Cli.PostExecute [<function AzCliLogging.deinit_cmd_metadata_logging at 0x045EC730>]
az_command_data_logger: exit code: 1
cli.__main__: Command ran in 0.821 seconds (init: 0.357, invoke: 0.463)
telemetry.main: Begin splitting cli events and extra events, total events: 1
telemetry.client: Accumulated 0 events. Flush the clients.
telemetry.main: Finish splitting cli events and extra events, cli events: 1
telemetry.save: Save telemetry record of length 3773 in cache
telemetry.main: Begin creating telemetry upload process.
telemetry.process: Creating upload process: "C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\Lib\site-packages\azure\cli\telemetry\__init__.pyc C:\Users\xxxREMOVEDxxx\.azure"
telemetry.process: Return from creating process
telemetry.main: Finish creating telemetry upload process.

Expected behavior
I expect to be able to manage the Azure subscription/resources with my CSP account the same as I can via the Azure Portal.
Environment Summary
azure-cli                         2.53.0

core                              2.53.0
telemetry                          1.1.0

Extensions:
account                            0.2.5
azure-devops                      0.26.0
bastion                            0.2.5
front-door                        1.0.17
managementpartner                  0.1.3
resource-graph                     2.1.0
ssh                                2.0.2

Dependencies:
msal                            1.24.0b2
azure-mgmt-resource             23.1.0b2

Python location 'C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\python.exe'
Extensions directory 'C:\Users\xxxREMOVEDxxx\.azure\cliextensions'

Python (Windows) 3.10.10 (tags/v3.10.10:aad5f6a, Feb  7 2023, 17:05:00) [MSC v.1929 32 bit (Intel)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Additional context
No response

Thank you for opening this issue, we will look into it.

@yonzhan, is there any update on this as we're now running into this issue also?

As shown in the debug log, Azure CLI does use a user credential:
cli.azure.cli.core.auth.msal_authentication: UserCredential.get_token: scopes=('https://graph.microsoft.com//.default',), claims=None, kwargs={}

However, the Microsoft Graph API https://graph.microsoft.com/v1.0/me returns a 400 error, saying it is not a user account:

Current authenticated context is not valid for this request. This occurs when a request is made to an endpoint that requires user sign-in. For example, /me requires a signed-in user.  Acquire a token on behalf of a user to make requests to these endpoints.  Use the OAuth 2.0 authorization code flow for mobile and native apps and the OAuth 2.0 implicit flow for single-page web apps.

I am not sure why this API returns this error. I would recommend contacting Microsoft Graph support to further investigate this issue.
BTW, do other az ad commands such as az ad user/app/sp list work for you?

Just tested this with azure-cli version 2.61.0
Issue is still present.
Other commands, for example az ad sp list work fine.

I am running into this issue as well.


where is best.pt model

I am facing problem to find that model

@ibtehajali67 sorry for late reply, you can try vit_l model of sam & also try larger model of yolov8 so it will detect object easily


Not compatible with ie11

Directory Lister Version
Site
https://demo.directorylister.com/
Describe the bug
The loading animation will not disappear and whole page is unclickable.

Additional context
IE console says there is a error in app.js: https://docs.microsoft.com/en-us/scripting/javascript/misc/syntax-error-javascript

Thanks for bringing this to our attention. Will look into this when I can (not sure I have IE11 installed anywhere currently). Can you provide any additional information about the errors in the console?
Side Note: It looks like IE11 will be reaching end of life on August 17th, 2021. Depending on the amount of work work required to fix this we may not fix it.

Unfortunately this appears to be due to Tailwind CSS not supporting IE11. If you require IE11 support you can try a version that was on Tailwind CSS 1.X. I believe v3.6.1 was the latest version that will support IE11.


Add bubble_sort.py to bubble_sort.md

bubble_sort.py was already written but not linked so I linked it.

Hello @Mukundan314! Unfortunately, this change is already present in #145. You also used the wrong file name (bubble.py instead of bubblesort.py).
We're still thankful for your contribution and hope that you will stick around to submit some more stuff!


Rancher CLI - Error while logging into rancher

What kind of request is this (question/bug/enhancement/feature request): bug
Steps to reproduce (least amount of steps as possible):
Log into rancher master using the latest cli - version - rancher version v2.3.0-rc3
Result:
Error:
Do you want to continue connecting (yes/no)? yes FATA[0003] json: cannot unmarshal number<PHONE_NUMBER>854776000 into Go struct field Field.max of type int64
Other details that may be helpful:
Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI): rancher:master-head-linux-amd64 ; cli version - rancher version v2.3.0-rc3
Installation option (single install/HA): single

https://github.com/rancher/rancher/pull/22090

This was an issue with rancher server, fix has been merged and should be in next build

Verified with latest master-head - commit id: de1ba1b5
Able to login using rancher CLI. No error seen while logging in.


Publish repository

We use micro:bit' open source checklist: https://github.com/microbit-foundation/open-source-checklist/blob/main/checklist.md

[x] #228
[x] #227
[x] #226
[x] #225
[x] #232

I have made the repo public.


Revamp the Support Ticket Index page

Summary
Our current Support Ticket page represents the first pass at this view. It needs new/changed columns, sortability, and revamped styling.
Criteria for Completion

[ ] Headers on page match the header names in the mockup (in the right order)
[ ] Correct data shows up for each column
[ ] Standard sorting (follow conventions of Volunteers page) are added to the "Requested By", "Date Created", "Student" (sort on last name), "Staff Contact" (sort on last name), and "Type" . If some sorting seems too hard to get done in this deliverable, it can be moved into another issue.
[ ] Nav item STAYS "Tickets", but page title is updated to "Support Tickets"
[ ] (No need to implement any filtering yet. That feature will come in another issue.)

What does each column represent?

"Requested By:" is what is currently showing up as the "Requestor"
"Date Created" is what is currently showing up as "Created At"
"Response ID" is the survey_response_id on the support_ticket. These only exist on "Support" Type tickets. There is no need to make this a link yet, just the ID is fine.
"Student" is the student associated with the related survey_response. These only exist on "Support" Type tickets as well. If there is no survey_response on the ticket, this field will be left blank.
"Staff Contact" is the name of the active staff contact associated with the student (for "Support" type tickets). If the requestor IS an admin, the staff contact shows the admin name again (admin == staff). If it's a "Contact" type, drop in the name(s) of the volunteer's students' active staff contact. This will likely only be one name, but could be more that one.
"Type" is the support ticket category. survey_response => "Support". admin => "Admin", contact_info => "Contact".
"Action" is the status, but also the link to the resolve form. So where there is a "View" link now, it may become a "Resolve" link that goes to the same place. Or a "Closed" link that also goes to the same place.

How it looks now:

How it will look after this update
(Disregard the filter input - and disregard the different table style.) Also, we will not be adding an import button to this view.

Hello @garettarrowood , I would like to work on this.

disregard the different table style

By this, do you mean the change in CSS in the new screenshot?

@goromlagche - Essentially, yes.
This style:

Does not yet need to change to this style:

Because when we do so, it would be good to updated the table style of all 4-5 views at once instead of making one look different than the rest.


Adding support for LSTM (Uni-Directional and Bi-Directional)

For Constant of shape, reshaping output shape to ensure it's more than rank-1
as required by add_fill_static

Print model spec in debug mode

Fixing issue in add_gather(): passing node inputs instead of data and indices (added with PR #424)

Looks great! Thanks.


Attribute blame to bad proofs

Right now, we batch verification of SNARKs which we have received from multiple senders. This makes it impossible to immediately attribute blame when a batch fails to verify. As such, when batch verification fails, we need to drill down into the batch and find out exactly which proofs failed.
In the worst case, all the proofs come from different senders and we can at best resort to doing binary search, or even just individually verifying, to find the offending proofs. This RFC describes an optimization on top of that mode where we can in happy cases reduce the amount of verification we have to do.

implemented


build option for V8 runtime

https://developers.google.com/apps-script/guides/v8-runtime/migration
Do you have any plan to support less-transformed codes for v8 runtime?

@shinout I only started experimenting with how V8 runtime works.
At the @google/clasp level, it could be nice to be able to get/set which runtime to use in the appsscript.json
For the Typescript compilation, ts2gas should not be hard to modify in order to support a flag which instruct build for rhino or v8.
I'm open to design suggestions as well as PR.
Most urgently, I'd like to get a more detailed overview of which exact features are supported (something like https://node.green/)

Your plan sounds great. Then, how we collect the enabled ESnext features is the concern. Manually checking every feature, or asking GAS developers about it. I'm wondering this clasp project is google's official and some maintainers are internal google people, aren't they? If so, they should know the exact features.

I tried to push some codes written in ESNext format to GAS.
The result was 400 error. It seems that GAS currently doesn't accept modern JS format via HTTP. I don't know to whom I should request to include this new feature. Any idea?

For reference, I've put up this spreadsheet about supported features and it is fine up to ES2019.
https://docs.google.com/spreadsheets/d/1JIJac5lsS2d1Gm7u8Zk-cLAaGLIxh_wVlU44Iez96bU/edit?usp=sharing
Currently @google/clasp should be able to read the compilerOptions from your tsconfig.json and to pass them to ts2gas.
https://github.com/google/clasp/blob/e1ed852e6bc0d7f5e33f6bbcfef62e2324d8294c/src/files.ts#L59-L66
So once ts2gas is changed to no longer force target to ES3, there should be little to change in @google/clasp.
Some documentation probably. ES3 is mentionned twice in https://github.com/google/clasp/blob/master/docs/typescript.md#how-it-works

ts2gas PR https://github.com/grant/ts2gas/pull/47 is ready for @grant to review and release.
After that, a minor @google/clasp PR (mostly documentation) prior a new release.

@PopGoesTheWza Thanks you so much for your thorough function checking!
By the way, have you encountered 400 error when you push codes whose target is ES2019? I tried to push such codes to GAS by locally manipulating ts2gas's target, and got the error.
If so, we have to wait for a new release by Google supporting ESNext grammar via HTTP.

@shinout I was able to succesfully clasp push ES2019 code on first attempt with no issue. What I did (on an existing sample project) was:

build @google/clasp from PR #739
clasp open the project and activate V8 online
open online manifest appsscript.json and the update the local manifest
update local tsconfig.json with "target": "ES2019"

Thus basic V8 support is confirmed and we could advance with:

merge PR #739 and ask for a new release of @google/clasp
open an issue for future PR with a better integration/support of V8
detect Rhino/V8 from local appsscript.json and provide the appropriate es3/es2019 default target to ts2gas
(optional) detect target from local tsconfig.json and warn if it does not match engine from local appsscript
CLI option to specify engine and update appsscript.json when using some commands like create, pull, push
open an issue to specifically address monorepo needs/requirements/issues. I currently fail to see the benefits on a monorepo solution like lerna or rush when dealing with many GAS projects but I am willing to work on it with you

I also tried to use #739 and work fine!
build #739
  502  git clone https://github.com/google/clasp.git --depth=100
  503  cd clasp
  504  git remote add PopGoesTheWza https://github.com/PopGoesTheWza/clasp.git
  505  git remote set-branches PopGoesTheWza V8-engine-support
  510  git fetch PopGoesTheWza
  511  git checkout -b V8-engine-support PopGoesTheWza/V8-engine-support
  512  npm ci
  513  npm run build-local
  515  npm pack

use it in my project
https://github.com/yumetodo/gmail2mastodon

update local tsconfig.json with "target": "ES2019"

$npm i ../clasp/google-clasp-2.3.0.tgz
npm WARN<EMAIL_ADDRESS>No description
npm WARN<EMAIL_ADDRESS>No repository field.

+<EMAIL_ADDRESS>added 10 packages from 7 contributors, removed 3 packages, updated 5 packages and audited 707 packages in 15.423s

9 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

$npm run deploy

><EMAIL_ADDRESS>deploy C:\msys64\home\yumetodo\gmail2mastodon
> clasp push

└─ src/appsscript.json
└─ src/index.ts
Pushed 2 files.

Maybe some of my codes include unacceptable grammar for Google. I'll specify it.

@yumetodo out of curiosity, the Object.defineProperty... with __esModule comes from your .ts source code right? May I ask about its purpose?

@PopGoesTheWza esModuleInterop is on by default so that that has appeared, I supposed.
My source code use at the picture is:
https://github.com/yumetodo/gmail2mastodon/blob/5ce7d8fa1aa6a3697048855266d5cf39148cc9fd/src/index.ts

Keeping this open until next release.

@yumetodo this is odd, for ts2gas should filter out such statement.

@PopGoesTheWza Really!? Have you ever tried to reproduce my step?
I've just used the clasp of #739 version.

@shinout any updates?

Can you test with the #791 unofficial release?
npm uninstall -g @google/clasp && npm install -g forked-clasp
clasp --version
# should be 2.4.0 or more

Try replacing @google/clasp 2.3.0 with forked-clasp which is more advanced.
npm uninstall -g @google/clasp
npm install -g forked-clasp

Fixed in https://github.com/google/clasp/releases/tag/v2.3.1


Fix added vMI configuration to support ARM

Release note:
NONE

@rmohr   Hello, what do you think?

Hm, I would prefer if we can keep the memory footprint small in general. But not everyone has that much of memory for their dev clusters. I agree it is a little bit a tricky situation. Let's just take in the extra yaml for now.

/test all
@hellocloudnative I think you will have to format some code and the tests will fail on that.

/retest

/retest-required

/ok-to-test

/test pull-kubevirt-e2e-k8s-1.20-sig-compute

Hello, what do I need to do?  @rmohr

Hello, what do I need to do? @rmohr

Here is the error log. You can see the style errors.
https://prow.ci.kubevirt.io/view/gs/kubevirt-prow/pr-logs/pull/kubevirt_kubevirt/6639/pull-kubevirt-generate/1455453491936890880
Or you can try to run make generate-verify in your local machine.

Ok, I'll try @zhlhahaha

/retest

/retest

Have you run make generate-verify in your machine?

@zhlhahaha  Hello, now you can trigger the test

I ran make generate

Do I have to submit these as well?

@zhlhahaha Hello, now you can trigger the test

I can see there are still some formatting issues, like using spaces rather than taps for indentation in the go file.
no changes added to commit (use "git add" and/or "git commit -a")
diff --git a/examples/vmi-arm.yaml b/examples/vmi-arm.yaml
index 7b970b755..74d3e2421 100644
--- a/examples/vmi-arm.yaml
+++ b/examples/vmi-arm.yaml
@@ -24,7 +24,7 @@ spec:
   terminationGracePeriodSeconds: 0
   volumes:
   - containerDisk:
-      image: registry:5000/kubevirt/cirros-container-disk-demo:devel
+      image: registry:5000/kubevirt/cirros-container-disk-demo:devel
     name: containerdisk
   - cloudInitNoCloud:
       userData: |
@@ -35,4 +35,3 @@ spec:
   - emptyDisk:
       capacity: 2Gi
     name: emptydisk
-
diff --git a/tools/vms-generator/utils/utils.go b/tools/vms-generator/utils/utils.go
index 204e2540f..ead8e89da 100644
--- a/tools/vms-generator/utils/utils.go
+++ b/tools/vms-generator/utils/utils.go
@@ -57,7 +57,7 @@ const (
 	VmiMultusMultipleNet = "vmi-multus-multiple-net"
 	VmiHostDisk          = "vmi-host-disk"
 	VmiGPU               = "vmi-gpu"
-        VmiARM               = "vmi-arm"
+	VmiARM               = "vmi-arm"
 	VmiMacvtap           = "vmi-macvtap"
 	VmTemplateFedora     = "vm-template-fedora"
 	VmTemplateRHEL7      = "vm-template-rhel7"
@@ -1062,4 +1062,3 @@ func GetVMIARM() *v1.VirtualMachineInstance {
 	return vmi

 }
-
diff --git a/tools/vms-generator/vms-generator.go b/tools/vms-generator/vms-generator.go
index ca56a0760..ae65714d6 100644
--- a/tools/vms-generator/vms-generator.go
+++ b/tools/vms-generator/vms-generator.go
@@ -94,7 +94,7 @@ pciHostDevices:
 		utils.VmiGPU:               utils.GetVMIGPU(),
 		utils.VmiMacvtap:           utils.GetVMIMacvtap(),
 		utils.VmiKernelBoot:        utils.GetVMIKernelBoot(),
-                utils.VmiARM:               utils.GetVMIARM(),
+		utils.VmiARM:               utils.GetVMIARM(),
 	}

 	var vmireplicasets = map[string]*v1.VirtualMachineInstanceReplicaSet{
make: *** [Makefile:50: generate-verify] Error 1
+ EXIT_VALUE=2
+ set +o xtrace
Cleaning up after docker in docker.

Do I have to submit these as well? @zhlhahaha

I feel strange, my machine is normal

@zhlhahaha

/retest  @zhlhahaha  That should be fine now, thank you very much

/retest @zhlhahaha That should be fine now, thank you very much

There are other two comments.
Especially, The indentation is not aligned will lead to testing failure.

What are the other two?

What are the other two? @zhlhahaha

Sorry, I forgot to submit the review, now can you see my comments?

I can see it now

Ok, let's give it a try
/ok-to-test

/retest  🙏🏻

/retest

@zhlhahaha  hello.Do you have a Slack account and can I add you as a friend?

@zhlhahaha hello.Do you have a Slack account and can I add you as a friend?

You can find me in the Slack channel #virtualization @ kubernetes.slack.com
My slack name is Howard Zhang

ok.thanks.

/retest

/lgtm
/approve
Thanks :+1:


provide an option to disable logging rejected packets

other than the missing docs comment - looks good to me.


Issues with updated version 23.0, it no longer works

Describe the bug
Updated to version 23.0 and now lazydocker won't run.  Receive the following error messages upon attempting to run:
2023/10/11 07:58:15 > could not determine host stat /root/.docker: no such file or directory
2023/10/11 07:58:15 unable to parse docker host ``
To Reproduce
Steps to reproduce the behavior:

Run the Install script - curl https://raw.githubusercontent.com/jesseduffield/lazydocker/master/scripts/install_update_linux.sh | bash
Enter lazydocker from the command line
See error

Expected behaviour
Expected lazydocker to run normally.  Have updated many times in the past with no issues.
Screenshots
pi@RaspberryPi4B:~ $ curl https://raw.githubusercontent.com/jesseduffield/lazydocker/master/scripts/install_update_linux.sh | bash
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
100   884  100   884    0     0   5490      0 --:--:-- --:--:-- --:--:--  5525
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload  Upload   Total   Spent    Left  Speed
0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 4014k  100 4014k    0     0  5560k      0 --:--:-- --:--:-- --:--:-- 5560k
lazydocker
pi@RaspberryPi4B:~ $ lazydocker
2023/10/11 08:16:10 > could not determine host stat /home/pi/.docker: no such file or directory
2023/10/11 08:16:10 unable to parse docker host ``
pi@RaspberryPi4B:~ $
Desktop (please complete the following information):

OS: various - all have the same issue:

Ubuntu 22.04.3 LTS x86_64
Armbian (23.8.1) aarch64
Debian GNU/Linux 11 (bullseye) aarch64
Ubuntu 22.04.3 LTS aarch64
Ubuntu 22.04.3 LTS armv7l
Debian GNU/Linux 12 (bookworm) aarch64
Arch Linux x86_64
Ubuntu 20.04.6 LTS x86_64

Lazydocker Version [23.0]

Additional context
Add any other context about the problem here.

I had this too. Creating the ~/.docker directory seems to fix it.
mkdir ~/.docker

Bisect points to this.

Seems odd that we're determining the Docker host by duplicating what Docker does to determine the current host. Shouldn't the entire determineDockerHost function be replaced by a straight-forward call to docker context inspect so we can pull the [0].Endpoints.docker.Host value? This works regardless of the presence of "${HOME}/.docker" (which we shouldn't be reading directly, IMO).

Sorry, that did not work in my cases.
From: Luke Hamburg @.>
Sent: Wednesday, October 11, 2023 8:38 AM
To: jesseduffield/lazydocker @.>
Cc: PaPaTheGMan @.>; Author @.>
Subject: Re: [jesseduffield/lazydocker] Issues with updated version 23.0, it no longer works (Issue #488)
I had this too. Creating the ~/.docker directory seems to fix it.
mkdir ~/.docker

Reply to this email directly, view it on GitHubhttps://github.com/jesseduffield/lazydocker/issues/488#issuecomment-1757595112, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ANTUBLA6DBLI7PG5P3IPNP3X62HJPANCNFSM6AAAAAA534WIY4.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>

@PaPaTheGMan It looks like you're running lazydocker as sudo, so in your case a sudo mkdir /root/.docker would be the "fix".

Interesting: docker for mac (which I'm using) will create that directory if it doesn't already exist when it starts.
I'm removing the directory existence check as it's not necessary given docker's own code will itself gracefully check for it. See https://github.com/jesseduffield/lazydocker/pull/489
Works for me locally, would anybody else be able to test on their end?

That's on the master branch now

Same issue here, but happend after first machine reboot.
~/.docker folder already there, moved into ~/.docker__ and created a new ~/.docker one.
Now it works.

see #493

I'm running into the same issue.
I installed lazydocker with go install<EMAIL_ADDRESS>Then, it failed with the following error mesage:
$ lazydocker --debug
2024/04/09 15:57:09 > could not determine host context "default" does not exist
2024/04/09 15:57:09 unable to parse docker host ``

I inspected my ~/.docker/config.json file, and saw the following line:
$ grep currentContext ~/.docker/config.json
	"currentContext": "default"

I replaced that line with "currentContext": "" and now it works! 🎉

I'm running into the same issue.
I installed lazydocker with go install<EMAIL_ADDRESS>Then, it failed with the following error mesage:
$ lazydocker --debug
2024/04/09 15:57:09 > could not determine host context "default" does not exist
2024/04/09 15:57:09 unable to parse docker host ``

I inspected my ~/.docker/config.json file, and saw the following line:
$ grep currentContext ~/.docker/config.json
	"currentContext": "default"

I replaced that line with "currentContext": "" and now it works! 🎉

I just installed lazydocker on my Arch and immediately faced the issue, even though I had ~/.docker directory. And this solution worked for me. Thanks.


Add row_rank function

@royoMS : Thanks for your contribution! The author(s) have been notified to review your proposed change. @royo

@royoMS : Thanks for your contribution! The author(s) have been notified to review your proposed change. @royo

Microsoft authors of articles need to make updates through the private repository so the updates can be staged and validated by the current validation rules. After you review staging and fix all validation issues, you can add the sign-off comment to let the PR reviewers know the updates are ready to be merged.It's easy to access the private repo version of your articles in GitHub. Just add -pr to the URL, as follows:
Public repo URL: https://github.com/MicrosoftDocs/azure-docs
Private repo URL: https://github.com/MicrosoftDocs/azure-docs-pr
We have closed this pull request. Please resubmit the updates through the private repo. For more information, [see the contributor guide].(https://docs.microsoft.com/en-us/contribute/)

Microsoft authors of articles need to make updates through the private repository so the updates can be staged and validated by the current validation rules. After you review staging and fix all validation issues, you can add the sign-off comment to let the PR reviewers know the updates are ready to be merged.It's easy to access the private repo version of your articles in GitHub. Just add -pr to the URL, as follows:
Public repo URL: https://github.com/MicrosoftDocs/azure-docs
Private repo URL: https://github.com/MicrosoftDocs/azure-docs-pr
We have closed this pull request. Please resubmit the updates through the private repo. For more information, [see the contributor guide].(https://docs.microsoft.com/en-us/contribute/)


how to extend

i want to use this model to train new attribute ,do u have try this ? or have u train on your own dataset? if u have, can u give me some guidance? any answer whill be appreciated.

This repo does not include train method, you need to check official code: https://github.com/RameenAbdal/StyleFlow.


Feature request: vm.sleep() cheatcode

I've been using Forge scripts as a full-on scripting environment, interacting with contracts, running simulations, etc.
One thing I'm still missing is polling: e.g. calling the Uniswap Quoter every 10s.
Would you consider adding a vm.sleep(uint ms) cheatcode?
I'd be happy to implement/assist, if this is a desirable feature.

I can do this

Should I assign it to you @pistomat ?

Yes please

Thank you @pistomat :pray:


PA15 not working on T102_V1.1 Board but works on wr2

Hello,
i am using ESPhome to flash my Tekin SP22 smart plug. It has a T102_V1.1 board with an RTL8710BN chip on it. Sadly GPIO PA15, which is driving the Relay is not working. If i change the output in my switch-section of the config yaml of esphome to PA14 the output works perfectly fine. So i think it is not a config problem.
-EDIT-
If i change the board from t102_v1.1 to wr2 the output is working perfectly!! Maybe the board config is not correct.
-EDIT-
BTW. If i want to add the power sensor i also get the same change interrupt error as described in this issue:
https://github.com/libretiny-eu/libretiny/issues/155
Here is my esphome config which is NOT working:
esphome:
  name: esphome-tekin-sp22

rtl87xx:
  board: t102-v1.1

logger:

web_server:
    version: 1

mdns:

ota:
  password: ""

wifi:
  ssid: "MY-NET"
  password: "MY-PW"

output:
  - platform: libretiny_pwm
    id: output_led_1
    pin:
        number: PA5
        inverted: true

light:
  - platform: monochromatic
    id: light_switch_1
    output: output_led_1

binary_sensor:
  - platform: gpio
    id: binary_switch_1
    pin:
      number: PA23
      inverted: true
      mode: INPUT_PULLUP
    on_press:
      then:
        - switch.toggle: switch_1

switch:
  - platform: gpio
    id: switch_1
    name: Relay 1
    pin:
        number: PWM1
        mode: OUTPUT
    on_turn_on:
      - light.turn_on: light_switch_1
    on_turn_off:
      - light.turn_off: light_switch_1

status_led:
  pin:
    number: PA18
    inverted: true

And here is the config which IS working:
esphome:
  name: esphome-tekin-sp22

rtl87xx:
  board: wr2

logger:

web_server:
    version: 1

mdns:

ota:
  password: ""

wifi:
  ssid: "MY-NET"
  password: "MY-PW"

output:
  - platform: libretiny_pwm
    id: output_led_1
    pin:
        number: PA5
        inverted: true

light:
  - platform: monochromatic
    id: light_switch_1
    output: output_led_1

binary_sensor:
  - platform: gpio
    id: binary_switch_1
    pin:
      number: PA23
      inverted: true
      mode: INPUT_PULLUP
    on_press:
      then:
        - switch.toggle: switch_1

switch:
  - platform: gpio
    id: switch_1
    name: Relay 1
    pin:
        number: PWM1
        mode: OUTPUT
    on_turn_on:
      - light.turn_on: light_switch_1
    on_turn_off:
      - light.turn_off: light_switch_1

status_led:
  pin:
    number: PA18
    inverted: true

some problem with PA15 pin not work

I had got the same problem. After the changing name board to wr2 - works


Red Team Infrastructure deployement

https://github.com/khast3x/Redcloud

send pull request, pls

Where should this go as i don't see a category that covers, Red Team Infrastructure deployement.

#152


Bazel build failed with provided instruction

Hi,
Thanks for open sourcing this awesome project. I was trying to get it to run with Ocelet with the command provided when I ran into an error.
DEBUG: Rule 'whisper' indicated that a canonical reproducible form can be obtained by modifying arguments shallow_since = "1661036707 -0500"
DEBUG: Repository whisper instantiated at:
  /<hidden>/cosim-arch-checker/WORKSPACE:4:15: in <toplevel>
INFO: Analyzed target //:dpi (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: /<hidden>/cosim-arch-checker/cac/src/BUILD:18:11: Compiling cac/src/register.cxx failed: (Exit 1): gcc failed: error executing command /usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer '-std=c++0x' -MD -MF ... (remaining 17 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
cac/src/register.cxx: In constructor 'RegisterSnapshot::RegisterSnapshot(threadT)':
cac/src/register.cxx:45:21: error: 'class std::unordered_map<short unsigned int, Register>' has no member named 'insert_or_assign'
   45 |         snapshotCol.insert_or_assign(supportStateId, reg);
      |                     ^~~~~~~~~~~~~~~~
Target //:dpi failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 3.263s, Critical Path: 1.51s
INFO: 73 processes: 58 internal, 15 linux-sandbox.
FAILED: Build did NOT complete successfully

From a quick grep of the source code the function doesn't seem to be present. Could you fix this on your end? Thanks!

this is because cosim-arch-checker uses higher c++ spec version, probably c++20, so you should compile this using --action_env=BAZEL_CXXOPTS="-std=c++20"

Sorry, my notifications were off. The suggested solution should work. Let me know if this worked for you, thanks.


chore: 6.1.0 beta 1 release notes

Overview

Updating release notes for beta 1.
Changelog

Added link and image for Heater-Shaker
alpha 4 --> beta 1 everywhere

Review requests

Get these merged to the feature branch before tagging beta 1.
Risk assessment

Very low, just notes (although they do render in-app and we're adding an image for the first time).

I am not sure if this should be included in bug fixes or if this is just a new feature. But I had a PR merge for alpha.4 that adds an error banner to the module cards if the TC or H-S overall status errors. Previously, we had no visual indicator in the app letting users know that the module is in error status.
Here is the PR https://github.com/Opentrons/opentrons/pull/11382 and ticket RQA-190 for reference.

@shlokamin adding the image in a commit on this branch is how it's publicly hosted. i guess commits are technically forever so if you removed the file and still pointed to that old commit it would still be there? but that seems confusing for future maintenance.


The context menu doesn't load for players that you haven't loaded as an admin

Description
Reproduction

Connect as an admin
Right click a player that is far away from you through the F7 players panel or AHelp window
Waiting for server permanently since they were never sent to the admin's client by the server
Teleport to the player through the AHelp window
The context menu now loads

pvs back at it again


WIP - Return a 404 or 406 for unsupported formats

This has been a problem when users embed our stuff in Edmodo somehow.
Edmodo is sending us image/* format requests which would cause Rails
to throw an uncaught exception.

@knowuh @dougmartin or @pjanik can one of you take a look at this? It is simple, but it is useful to have someone else aware of the change.
@ddamelin this is the change that will prevent you from getting all the exception emails from ngss and interactions portal.

Did you have an identical PR in LARA, I thought I remember commenting that it looked good.  :+1:

Yup I had one there too. :)


Add Search Functionality + Components

Issue
Currently we are not showing any search feature set inside of the example project, and would love to add this and show more information around using this inside of this location and leveraging metadata to improve search results.
This issue is a bit more challenging since the documentation has not been released yet but would be a great candidate for someone getting familiar with the repo and wanting to dive directly into the SDK logic.
Solution

[ ] Learn and understand how to properly pass parameters to the search endpoint
[ ] Add a text input and button to manage searching a specific string
[ ] show the results that come back from the search endpoint

Hi @jordan-pieces can i take up this issue?

@jordan-pieces has this been resolved as well?

@derajohnson this is not using the PiecesApi endpoints that are available, are you able to reconfigure your search to reflect this change? i am adding a review on your PR #33 with details on the code for using the API :)

Thanks @jordan-pieces, looking forward to the details. I think i misunderstood the task earlier.

hey @derajohnson there are some examples here of the different endpoints that you can use with the PiecesApi.

^^ this example will log out the name of the first asset that matches on a direct text match via search. This is a good search to start with and will give you very direct responses back based on your query. You can populate that query with a string that comes from another location as well, but let me know how it goes with this endpoint! 👍

@derajohnson - was wondering if there was an update here?

Hi @jordan-pieces. Sorry for not tackling this sooner, my laptop crashed. Can you reassign this issue to someone else? I'll pick up more issues as soon as it is fixed. Ty!

@derajohnson roger that will get this out to some other users to go after, hope all is well with your computer!

I would like to Give it a try.

@Arindam200 would love to get this done, and think its a great new endpoint to add for use on searching the snippets. Let me know if you need any additional info as I can put together things as you need them. 👍


queue.replayRequests() fails with TypeError: Failed to execute 'clone' on 'Request': Request body is already used

Library Affected:
workbox.backgroundSync.Queue. (Workbox 4.1.1)
Browser & Platform:
Google Chrome v73.0.3683.86 macOS
Issue or Feature Request Description:
When queue.replayRequests() is called and the server is still down, it throws the following error and removes one item from the queue even if it wasn't synced.
sw.js:132 TypeError: Failed to execute 'clone' on 'Request': Request body is already used
    at d.g (Queue.mjs:176)
    at d.unshiftRequest (Queue.mjs:140)
    at d.replayRequests (Queue.mjs:246)

This is the code to register a route for background sync:
  const queue = new workbox.backgroundSync.Queue('myQueue')

  const addEventRoute = new workbox.routing.Route(
    ({ url }) => url.pathname === '/api/add',
    async args => {
      try {
        await fetch(args.event.request.clone())
      } catch (err) {
        console.error(err)
        queue.pushRequest(args.event)
      }
    },
    'POST'
  )

  workbox.routing.registerRoute(addEventRoute)

  self.addEventListener('sync', async ev => {
    try {
      await queue.replayRequests()
    } catch (e) {
      console.error(e)
    }
  })

When I try to manually trigger the sync from the UI with:
<Button
   variant="contained"
   onClick={() => navigator.serviceWorker.ready.then(reg => reg.sync.register('syncEvents'))}
>
sync
</Button>

it fails and removes the oldest entry from the queue.
The sync works well, when the server is reachable again but not when it is still down.

Even if your endpoint is down it workbox is going to replay the request and pop it off the queue, regardless of the return code. I'm currently working around this too, editing the onSync logic based on this post about backgroundSync in workbox v4:
https://github.com/GoogleChrome/workbox/pull/1710
Here is my code. I'm throwing a network error because it seems to be the only one allows me to re-queue the request properly
const collectQueue = new workbox.backgroundSync.Queue('myQueue', {
  maxRetentionTime: 60 * 24 * 30,
  onSync: async({ queue }) => {
    let entry;
    while (entry = await queue.shiftRequest()) {
      let clone = entry.request.clone()
      let response = await fetch(clone);
      if (response.ok) { return }
      await queue.unshiftRequest(entry);
      throw {
        name: 'NetworkError',
        message: 'Server Not Avialable'
      }
    }
  }
});

I'm experiencing the same issue in the Chrome on Android (73.0.3683.90):
Uncaught (in promise) TypeError: Failed to execute 'clone' on 'Request': Request body is already used
    at Queue._addRequest (Queue.mjs:176)
    at Queue.unshiftRequest (Queue.mjs:140)
    at Queue.replayRequests (Queue.mjs:246)

The exact same code works in Chrome on Windows (both 73.0.3683.86 and 73.0.3683.103).
My service worker code is as simple as this:
const bgSyncPlugin = new workbox.backgroundSync.Plugin('tag', {
  maxRetentionTime: 24 * 60 // Retry for max of 24 Hours
});

workbox.routing.registerRoute(
  new RegExp('.+\/a\/b'),
  new workbox.strategies.NetworkOnly({
    plugins: [bgSyncPlugin]
  }),
  'POST'
);

Thanks for the report, I've looked into it and it seems there's a place we're not cloning the request before re-fetch()-ing it. And since our tests weren't sending the request to a real server, they weren't reporting the error.
This should be fixed in #2014.


settings.SECRET_KEY

local server has been updated.
generate a new one for each installation.

From the slack channel:

If you are planning to continue this project as a django project, and not only as a library, than I suppose improving the settings could be something that could be done. Putting the ALLOWED_HOSTS, SECRET_KEY and all the other things which might change in the local_settings.py. Also creating a local_settings_template.py in the pyfolio project, is usually what is done. Also, different settings based on  production/development environment.


SCons: Fix generation of disabled_classes.gen.h after #91624

Before:

After:

Bugsquad edit:

Fixes #91844

Amended the commit message to be clearer.

Thanks!


Warn about hodl invoice

Before we only warned for zeuspay lightning addresses, now we warn for the actual invoices as well

Not needed


redscript today.

I installed cyberpunk 2077 and liberty today, I installed redscript, virtual alterier and all required dependencies. I then I picked a shop to installed, installed it, had a redscript compilation error, then tried a different shop, same problem. I manually installed the mods, these are the newest versions.
Here is one log example:
[ERROR - Thu, 26 Dec 2024 22:20:49 -0500] [UNRESOLVED_TYPE] At G:\SteamLibrary\steamapps\common\Cyberpunk 2077\r6\scripts\busy_vampire_atlier_store\busy-vampire_boutique.reds:1:1:
@addMethod(gameuiInGameMenuGameController)
^^^
unresolved type 'VirtualShopRegistration'
[ERROR - Thu, 26 Dec 2024 22:20:49 -0500] [UNRESOLVED_METHOD] At G:\SteamLibrary\steamapps\common\Cyberpunk 2077\r6\scripts\busy_vampire_atlier_store\busy-vampire_boutique.reds:3:3:
event.AddStore(
^^^
method 'AddStore' not found on 'IScriptable'
[ERROR - Thu, 26 Dec 2024 22:20:52 -0500] REDScript compilation has failed.
This error has been caused by mods listed below:

busy_vampire_atlier_store

Hi,
It looks like you've installed a mod without a dependency it requires: https://www.nexusmods.com/cyberpunk2077/mods/2987. Install the dependency and it should work fine.


Paste as clipped text

Speed up pasting of player.json by intercepting paste, storing it as a page state variable, and then showing clipped text (first 500 chars) instead of the entire json string.

I can see the benefits of this, however one of the main issues that people encounter with datacore is that when they copy the json, it hasn't actually loaded before they press copy.  So this might cause confusion if the text box is mostly empty.  Can you propose updates to the text on the page as well to match the change in behaviour, then I'll accept this PR?

I can see the benefits of this, however one of the main issues that people encounter with datacore is that when they copy the json, it hasn't actually loaded before they press copy.  So this might cause confusion if the text box is mostly empty.  Can you propose updates to the text on the page as well to match the change in behaviour, then I'll accept this PR?

Thanks, I'll work on that next!

Thanks, I'll work on that next!


Linux compilation fails

Description
Project fails to build on linux.
Reproduction
Try to compile this project anyhow you want, on any Swift version.
project-manager-cms-server.zip
The compilation seems to consistently fail with:
623.2 error: compile command failed due to signal 9 (use -v to see invocation)

Multiple people have tried compiling or cross-compiling the same project and no one has had success.
See this thread in Vapor's Discord server for the full discussion.
Expected behavior
Compilation should go successfully.
Environment
Tested with on different environments. On EC2 instances or swift:5.10 image (not cross-compiling) and on a few different environments cross-compiling from Apple Silicon to amd.
I personally tried cross-compiling with Swift 5.10, on macOS 14.3 (or was it 14.2?) and Docker 4.27.1. Those seem to pretty much the latest as of writing this issue. Docker 4.28 seems to be out as well.
Additional information
No response

(Reworked the issue to better point out the actual issue with the compilation)

Most people are not going to try building first. Cut and paste your error into the original post, which will help others searching for similar errors too.

The error is in just that "compile failed with signal 9", nothing more.
It just randomly prints that when building and stops the process.

OK, try building with swift build -v and see if that gives you any more info.

Here is the docker log from the build:
docker_log.txt

Any thoughts?

Hi everyone,
Just wanted to let you know that I was able to resolve my issue. I used SwiftLint to review my code and one of the things it flagged was "files with too many lines." I never thought this would be an issue, as some of my files had up to 4k lines. I tried creating new files as extensions and limiting the size to no more than 500 lines per file. And like magic, the build went from 4 hours to 12 minutes on Linux. Thanks to everyone for the help!


Issue with automapper in dotnet core webapi argument exception

Hi,
Our project is using the start guide and mostly works as advertised. However, once we add automapper into the mix, we're facing an exception failure:
System.ArgumentException: GenericArguments[0], 'System.Int64', on 'T MaxFloat[T](System.Collections.Generic.IEnumerable`1[T])' violates the constraint of type 'T'.

The simple version of the models and config:
    public class C1 : IRequest<long>
    {
        public string FirstName { get; set; }
    }

    public class C2
    {
        public string FirstName { get; set; }
    }

    var mapperConfig = new MapperConfiguration(cfg => {
        cfg.CreateMap<C1, C2>();
    });
    IMapper mapper = mapperConfig.CreateMapper();
    services.AddSingleton(mapper);

The system throws the exception on  cfg.CreateMap<C1, C2>();
If I remove IRequest<long> from the C1 model, all works as expected.
I can't work out why automapper does not like the IRequest interface. As far as I can tell, the IRequest is just a marker.
Have you ever seen this before?

The typical one-last-search, and found the issue:
https://github.com/AutoMapper/AutoMapper/issues/3988
Upgraded to v12, and fixed the issue.
Thanks 👍


r11s: add "summary aliases" feature to fix unnecessary summary NACKs

Description
Currently, Scribe accepts 2 possible parent summaries: 1) the last client summary, or 2) the latest service summary. However, there could be multiple service summaries generated between the last client summary and the latest service summary, and they are all valid parents.
The client runtime does not know about service summaries via SummaryAcks (because service summaries do not generate SummaryAck ops), so service summaries can be written without the knowledge of the runtime. This can cause the runtime to propose an "outdated" service summary as a parent summary. Currently, this is NACKed, forcing an inefficient recovery process. Instead, we should allow the outdated service summary to be a valid parent summary.
Reviewer Guidance
The goal here is to track service summaries that have been written between latest client summary and latest service summary within the Scribe checkpoint data (persisted in DB and in summaries' serviceProtocol blob). For example, if client summary A is written, followed by service summaries B, C, D, then we will store the service summary handles for B, C, and D and allow them to be referenced as parent summaries for the next client summary.

The next step before opening this PR as a non-Draft PR is to add a couple scenarios in the Azure Client Scenario Runner to repro the SummaryNACK problem, and validate whether this solution does indeed fix it.


How to remove all countries and replace with custom list of locations ?

If my site will operate only in one country  and I want to show a list of custom locations only, where can I update the list ?
Countries to be showed on registration forms - How to change this to "Locations to be showed on registration forms" -  and show list of custom locations only ?
I tried to edit - app\includes\xml\country.xml but it has no effect. Basically I dont want to use Geolite city and country. I would like to display my own list of states and cities.
Thanks

@StarAzure You'll have to dig in the source code and do custom php coding. Or at least edit some php to modify the form and create a static list.
If it's what you want to do then tell me and I'll give you some reference.
PM

ok Thats not bad. Geo.class.php - Does the DEFAULT_VALID_IP = '<IP_ADDRESS>' get updated by the user's ip ? I dont think thats happening - For example, if I set the default ip to China, it still shows me China although I am logging in from United States

@StarAzure Go look at line 116-135 and tell me what you think the answer is ?

@StarAzure Everything is pretty much documented. So basicly if your localhost you get this specific IP.
Does this answer your question?

I see it now.
Thanks for your help and good work. I have around 14000 users in a Joomla mysql database. Looking forward to building the site and importing the users.
Thanks

@StarAzure No constant are by definition constant and don't change. So your question don't make sense.

I have made a Joomla - pH7 Authentication plugin to allow your Joomla to authenticate against pH7 users. It needs some finishing but if you're interested let me know.

I am just looking to write some automated script or something to copy from joomla tables to Ph7 tables - Username, email, password, location, state, height, gender, occupation, education etc ...So I wont need Joomla user authentication.  The user info will be transferred and I will add login with Google/facebook.
Basically tired of slow speeds of Joomla .. I like loading just one css, one js so was starting to write something in react js but found your product.
I might have to add custom fields in Ph7 to add occupation, education etc.. .

You won't be able to transfer password so easily as they're not hashed the same.

@StarAzure, for the countries, you can do it through the admin panel.
Admin Panel -> User/Admin -> Users -> Country Restriction

@StarAzure, for the countries, you can do it through the admin panel.
Admin Panel -> User/Admin -> Users -> Country Restriction

Yes, thanks. I was able to use that.
I am still worried about not being able to transfer all my Joomla users because of the password issue you mentioned.


Adding example for different domains of user and project

Due to the recent changes in the bosh-openstack-release and the bosh-release, it's necessary to include an example for the usage of this new feature to connect to Openstack.

Thanks @andinod!


setTimeoutInfinite in brpop

Expected behavior
When a redis server is restarted (ungraceful - by pulling a plug) - I expect the clients to reconnect seemlessly.
Actual behavior
We noticed during an ungraceful redis server restart, our jedis client was hanging indefinitely since the underlying socket timeout was infinite.
Steps to reproduce:
BRPOP code in the jedis 2.9.0 client looks like this:
public List<String> brpop(final String... args) {
    checkIsInMultiOrPipeline();
    client.brpop(args);
    client.setTimeoutInfinite();
    try {
      return client.getMultiBulkReply();
    } finally {
      client.rollbackTimeout();
    }
}

The part thats confusing is the setting the client socket timeout to infinite. Why do we do it is there a good reason for it? Is there a way to override this to a finite value?
The reason I m asking is because in our production env, we encountered an issue with redis recently where we were doing a brpop on a redis server. This physical machine thats running redis got hard rebooted and the brpop on the client blocked for 2 hours (the OS socket timeout).
We would like to know if there is a setting that can set it to lower number?
Redis / Jedis Configuration
redis nodes are running in non-cluster mode. Client nodes pop data using jedis connection pool.
Jedis version:
2.9.0
Redis version:
2.8.24
Java version:

@sazzad16  What exactly do you mean by "time limit on your method" ?
Are you referring to specifying the timeout inside brpop? That wouldn't catch this scenario since the socket time is overridden to infinite inside the jedis client library.

@maheshdatt I meant setting timeout on your implementation, outside brpop. Something like https://stackoverflow.com/questions/5715235/java-set-timeout-on-a-certain-block-of-code

We tried that approach - but felt hacky. At this point we are exploring the option of forking jedis and making the blocking honor the application timeout if they are provided, instead of setting the socket timeout to infinite.

Closed as dupe of #426

I had this problem too, my logs print out with ‘’Unexpected end of stream‘’.and ‘’Could not get a resource from the pool‘’，
I set the timeout of brpop to 30s, redis to 31s, and mysql database connection pool to 300s. For now, this error is not printed on the log, but I don't know if this error will be reported in the future.


Imported Transactions Count Disappears once a Single Account is Selected

Defective ToolKit Feature Name: Show Import Notifications in Sidebar
Expected Behavior
When enabled, I would expect the number of transactions to be displayed next to each account with transactions available to import.
Actual Behavior
The feature is enabled and at first appears to function properly because several of my accounts display the number of transactions to import. However, once I click just one of the accounts ALL of the numbers disappear from view.
Steps to Reproduce the Behavior

Enable Show Import Notifications in Sidebar
Refresh browser
Accounts with transactions to import should have a display beside the account name indicating the number of transactions available to import for that account.

Export of Toolkit Settings (Bottom Left of Settings Page)
[{"key":"accountTransactionSearch","value":true},{"key":"accountsDisplayDensity","value":"1"},{"key":"accountsEmphasizedOutflows","value":true},{"key":"accountsSelectedTotal","value":true},{"key":"accountsStripedRows","value":true},{"key":"activityTransactionLink","value":true},{"key":"budgetBalanceToZero","value":true},{"key":"budgetProgressBars","value":"0"},{"key":"budgetRowsHeight","value":"1"},{"key":"categoryActivityPopupWidth","value":"1"},{"key":"changeEnterBehavior","value":false},{"key":"checkCreditBalances","value":true},{"key":"collapseExpandBudgetGroups","value":true},{"key":"collapseSideMenu","value":false},{"key":"colourBlindMode","value":false},{"key":"currentMonthIndicator","value":true},{"key":"daysOfBuffering","value":false},{"key":"daysOfBufferingHistoryLookup","value":"3"},{"key":"editButtonPosition","value":"2"},{"key":"enableRetroCalculator","value":true},{"key":"enlargeCategoriesDropdown","value":true},{"key":"goalIndicator","value":false},{"key":"goalIndicatorWarningColor","value":true},{"key":"googleFontsSelector","value":"2"},{"key":"hideAOM","value":false},{"key":"highlightNegativesNegative","value":false},{"key":"importNotification","value":true},{"key":"incomeFromLastMonth","value":"0"},{"key":"l10n","value":"0"},{"key":"largerClickableIcons","value":true},{"key":"monthlyNotesPopupWidth","value":"1"},{"key":"pacing","value":"2"},{"key":"printingImprovements","value":true},{"key":"privacyMode","value":"2"},{"key":"reconciledTextColor","value":"4"},{"key":"removePositiveHighlight","value":true},{"key":"removeZeroCategories","value":true},{"key":"reports","value":true},{"key":"resizeInspector","value":true},{"key":"rightClickToEdit","value":true},{"key":"runningBalance","value":false},{"key":"seamlessBudgetHeader","value":false},{"key":"splitKeyboardShortcut","value":true},{"key":"splitTransactionAutoAdjust","value":true},{"key":"squareNegativeMode","value":false},{"key":"swapClearedFlagged","value":false},{"key":"toBeBudgetedWarning","value":true},{"key":"toggleSplits","value":true},{"key":"toggleTransactionFilters","value":"2"},{"key":"warnOnQuickBudget","value":true}]

System Settings
ToolKit Version: 0.5.3
Operating System (Mac/Windows/Etc): Windows 10 Home
Browser (Chrome/Firefox/Safari): Chrome
Browser Version: 52.0.2743.116 m
Other Extensions: Evernote Clipper, Evernote Clearly, Roboform, Amazon Assistant, Blur, SnagIt

Update... Once a single imported transaction is approved in one account the indicators return beside ALL accounts. Obviously, this is not as urgent as I first thought, but it's still annoying.

That's really odd behaviour. We'll have a look when we get a chance. Sounds super annoying.

I suspect this isn't doing quite what we want;
ynab.YNABSharedLib.defaultInstance.entityManager._transactionEntityPropertyChanged.addHandler(ynabToolKit.importNotification);
I've noticed for a long time that the indicators go away after you move to the budget screen. Until you reload YNAB they don't come back. IMO the indicators should remain no matter which screen (reports, budget, account) you're on until the transactions have been imported. Just haven't figured out where to make the changes. The risk is getting watching at too high a level and constantly running code that doesn't need to run.

Fix is available in release 1.2.0. Feel free to reopen if necessary.


[Cleanup[ Stop using soon-to-be-removed ArchetypeBuilder APIs

@swift-ci please smoke test and merge

Oops: https://github.com/apple/swift-lldb/pull/109


OCM-8952 | test: fixing id:35878

OCM-8952
$ ginkgo --focus 35878 tests/e2e
Ginkgo detected a version mismatch between the Ginkgo CLI and the version of Ginkgo imported by your packages:
Ginkgo CLI Version:
2.11.0
Mismatched package versions found:
2.17.1 used by e2e
Ginkgo will continue to attempt to run but you may see errors (including flag
parsing errors) and should either update your go.mod or your version of the
Ginkgo CLI to match.
To install the matching version of the CLI run
go install github.com/onsi/ginkgo/v2/ginkgo
from a path that contains a go.mod file.  Alternatively you can use
go run github.com/onsi/ginkgo/v2/ginkgo
from a path that contains a go.mod file to invoke the matching version of the
Ginkgo CLI.
If you are attempting to test multiple packages that each have a different
version of the Ginkgo library with a single Ginkgo CLI that is currently
unsupported.
Running Suite: ROSA CLI e2e tests suite - /home/akanni/OCP-Repository/rosa/tests/e2e
Random Seed:<PHONE_NUMBER>
Will run 1 of 110 specs
SSS•SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS
Ran 1 of 110 Specs in 58.822 seconds
SUCCESS! -- 1 Passed | 0 Failed | 0 Pending | 109 Skipped
PASS
Ginkgo ran 1 suite in 59.903123045s
Test Suite Passed

/lgtm

/retest


🐛 Twitter embed broken

cc @tiagov8 @bettybondoc
Describe the Bug
Twitter embed is not working on prod.
https://ssw.com.au/rules/rule/#9-twitter-cards-embed
It is working in staging  🤔
https://staging.ssw.com.au/rules/rule/#9-twitter-cards-embed
To Reproduce
Steps to reproduce the behavior:

Go to https://www.ssw.com.au/rules/rule/#9-twitter-cards-embed
See code block - that should be an embedded tweet

### Tasks
- [ ] Investigate
- [ ] Fix

Figure: should be rendering a tweet
Thanks!

Closing as this is working again.

Figure: Working embed on production


ampproject/amphtml: greenkeeper/verify check not showing up, lockfile not being updated

We recently enabled greenkeeper and greenkeeper-lockfile on our repository at https://github.com/ampproject/amphtml
Today, I saw a new PR from greenkeeper pop in due to an updated dependency, at https://github.com/ampproject/amphtml/pull/12766.
However, the PR is missing two things:

The greenkeeper/verify check never appeared. Is this a known issue (perhaps related to https://github.com/greenkeeperio/greenkeeper-lockfile/issues/92)? Or could I be missing a step?
The second commit from greenkeeper-lockfile never appeared. Due to https://github.com/greenkeeperio/greenkeeper-lockfile/issues/98#issuecomment-352087908, I tried adding a workaround in https://github.com/ampproject/amphtml/pull/12789 and updating the branch created by greenkeeper, but I still see the message Only running on first push of a new branch even though there is only one commit on the branch.

Here is our .travis.yml: https://github.com/ampproject/amphtml/blob/master/.travis.yml#L18
Any idea what I'm missing? Thanks!

greenkeeper-lockfile 2.0 should fix this, it is currently in next state, but testable.


Navbar Padding

Is there a reason that the padding here:
https://github.com/gios-asu/ASU-Web-Standards-Bootstrap/blob/master/scss/_navs.scss#L298
is only applied to the first child?
I'm finding that when the nav is collapsed the other elements don't align correctly.

Yeah, there should be another style in there for
@media (max-width: $asu-screen-md-max) {
  padding-left: 25px;
}

It was an oversite when trying to make sure that we are compliant with the sizes spec'd out on the Hub Web Standards page.

I merged the changes into master.  I didn't make it a new release yet, but if you want to pull the /build from master and check if the changes look good there, that would be great.  If they don't look good, feel free to re-open this issue.

Looks good. Thanks!


I would like to re-use the same cloned repo when using Continue On to desktop

Testing #161875
When I first used the feature, I chose to continue on desktop since I already had the repository cloned, then tried to use git in the terminal but realized that I could only use the git integration since I was working on a remote repository, rather than my local copy.
Then I tried Clone and Continue on desktop, selecting the same location, but that just creates another copy. So that command is really only useful once, and using it again on a very large repo would be a pain since it would redownload the entire thing

I had another moment of confusion where I re-opened vscode, which automatically opened up my most recent workspace. The File: open folder command was behaving strangely, and took be a while to realize that it was because I was in a remote repository.

Fwiw, there are a few indicators that you're in a remote repository:

the remote indicator in the bottom left corner in the status bar will say [GitHub]
the workspace folder title will have [GitHub] as the workspace suffix

Duplicate of https://github.com/microsoft/vscode/issues/162031

@joyceerhl - you marked this as a duplicate of itself

Fixed, thanks!


Which package to be required should be configurable

I think the specified package should return a function which accepts the request as an argument and returns the response

This should be IMO the default behaviour of actix_lua's on_lua method, instead of running the passed code on every handle it should that once and use the returned function as a handler

I don't understand.  can you explain differently?
can you link to lines of code?

that the init file should return a function and that function be used as the handler for actix requests. (It's fixed already)


Redis exception when RANDOM_KEEP chosen on a list

Allow user to specify whether the data is a Set or List, and invokes appropriate API call
Remove reference to random, since this is not supported in Lists
Update documentation

Basic unit tests added on retrieval from set and list, and check for data exhausted throwing appropriate thread-ending exception


python: interop server image not build correctly

As seen at https://source.cloud.google.com/results/invocations/d9401d96-b2cb-4587-a171-81965b544af1 (grpc_interop_tocloud):
2022-11-14 18:27:08,029 invalid command name 'py39/bin/python'

2022-11-14 18:27:08,029 FAILED: interop_server_pythonasyncio [ret=1, pid=75143, time=362.5sec]
Server "pythonasyncio" has exited prematurely.

@XuanWang-Amos This seems like it should be relatively simple and is probably a good way to get acquainted with the interop test framework. Would you mind taking a look?

Able to reproduce using this command:
tools/run_tests/run_interop_tests.py -l python -s pythonasyncio --use_docker --http2_interop --internal_ci -t -j 8
Looks like some issue with our docker set up.


Docs refer to Intune Azure Portal experience that is being retired on August 1, 2020.

Referring to: "1. Verify MDM Authority in Intune
Go to portal.azure.com and on the top of the page search for Intune. On the Microsoft Intune page, select Device enrollment, and on the Overview page make sure MDM authority is Intune.
If MDM authority is None, click the MDM authority to set it to Intune.
If MDM authority is Microsoft Office 365, go to Devices > Enroll devices and use the Add MDM authority dialog on the right to add Intune MDM authority (the Add MDM Authority dialog is only available if the MDM Authority is set to Microsoft Office 365)."
On August 1, 2020, the current Intune Azure Portal experience will be retired. I can't seem to find the equivalent in the Microsoft Endpoint Manager Admin Center. How to change the MDM authority when the Intune Azure Portal experience is retired?
The current URL where the MDM authority can be changed, for example when this is set to Microsoft Office 365 instead of Microsoft Intune, is https://portal.azure.com/#blade/Microsoft_Intune_Enrollment/EnrollmentMenu/overview
It works by replacing portal.azure.com with endpoint.microsoft.com in the deep-link, however, this page is (AFAIK) not available via the Endpoint Manager GUI.
--- EDIT---
Added screenshot for reference:

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

ID: 1fe27259-1194-cfca-4225-1d2db4331152
Version Independent ID: d86eaa73-b12d-f8a0-7b64-961da7322108
Content: Enable domain-joined Windows 10 devices to be managed by Microsoft 365 for business - Microsoft 365 Business
Content Source: microsoft-365/business/manage-windows-devices.md
Service: o365-administration
GitHub Login: @Sirkkuw
Microsoft Alias: sirkkuw

@jseerden Thank you for your feedback. We have made changes to the document via PR#https://github.com/MicrosoftDocs/microsoft-365-docs/pull/2510
Thanks
Sri

@msbemba  Thank you very much for the contribution and updating the documentation with PR. @jseerden Hope this update is helpful for you. Thanks for taking out some time to open the issue. Appreciate and encourage you to do the same in future also.


Remove unnecessary adding packagedArtifacts to publishM2

@tdas fixed packaging a month ago; so we shouldn't need to add spPublishLocal packagedArtifacts to publishM2 anymore. This also fixes a warning when running build/sbt.

LGTM.


Plex Theme Calibre-Web doesn't work

This link doesn't work: https://gilbn.github.io/theme.park/CSS/themes/calibreweb/plex.css

Error in the wiki. There is no plex.css
Its based on CaliBlur that is a plex theme for Calibre.
Set theme to CaliBlur in UI Configuration -> View Configuration -> Theme -> CaliBlur -> Submit


Command for getting stats from sessions

Sessions have in memory stats.  Until sessions have been purged, we should have the ability to retrieve their stats, and output them to the screen, or perhaps download to CSV files or whatever format seems appropriate.  We won't worry about hooking into any standard telemetry systems just yet.

For now I'm just outputting JSON to the console.


[OS X] ./gradlew assembleRelease generates same apk, no changes

Hi, was using this command successfully, maybe some update came in. I can't find out what's wrong, but when building debug apk js updates in avd device, when i assemble release apk and move it to tablet - no changes. Apk works fine, but js is not up to date. I've tried all kind of magic - restart, factory reset of tablet.. nothing helps, old apk gets generated again and again while doing release.
I'm deleting old apk with all build folder from /android/app/build i get new one, but it has no js changes.
some gradle cache? what can be wrong?
node_modules > react-native  "version": "0.14.2",
$ npm --version
2.14.7
$ node --version
v4.2.2
$ react-native --version
0.1.7
OS X El Capitan v 10.11.1
OS x newest

Isn't the directory supposed to be android/app/build/outputs/apk/app-release.apk?

yes it is, that apk gets generated same again and again. I thought, maybe it's some cache, i've deleted all "build" directory, it was all regenerated again, but no luck. I've got new apk file with old code again. It works fine with debuging on avd.. But if i buil release - no errors, just old code at ne apk.

Thanks god, it works again!! I've deleted build dir, closed everything, restarted my pc and it worked! i don't know what was that, but restart didn't helped first time. I guess it was some kind of cache..


Re-Add Pull Request Controller and Pull Request Background Services

Depends on merge (and rebase) of https://github.com/Azure/azure-sdk-tools/pull/7303 and  https://github.com/Azure/azure-sdk-tools/pull/7331

/azp run APIView - CI

/check-enforcer override


can someone please show me how to pass through this challenge! i have written the code but don't seem to see what's at fault.

Challenge Target the same element with multiple jQuery Selectors has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.1; rv:54.0) Gecko/20100101 Firefox/54.0.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:

jQuery Playground

#left-well

        <button class="btn btn-default target" id="target1">#target1</button>
        <button class="btn btn-default target" id="target2">#target2</button>
        <button class="btn btn-default target" id="target3">#target3</button>

#right-well

        <button class="btn btn-default target" id="target4">#target4</button>
        <button class="btn btn-default target" id="target5">#target5</button>
        <button class="btn btn-default target" id="target6">#target6</button>

@Srjohn01
Thanks for reporting this. But you got a typo in the code. It suppose to be .addClass.
not .addclass.
These GitHub Issues are for reporting bugs on the freeCodeCamp website only.
Please use the HelpJavaScript chat room for getting challenge related help.
Happy Coding.


Name of binary in release tarball should be "ocis" ?

The binary is currently named "ocis-1.0.0-beta1-linux-amd64". Imho it should be "ocis". Not sure about best-practices but it seems un-intuitive.
If the full version string is required inside the tarball a directory "ocis-1.0.0-beta1-linux-amd64" could be created at the root of the tar which contains the "ocis" executable.

Is still the case for https://download.owncloud.com/ocis/ocis/1.0.0/ and GitHub releases. I don't see another way for doing this since we deliver binaries for multiple platforms.
Is it about getting rid the version in the filename since it seems redundant if we have it already in the folder name / GitHub release path?

Why not folders with the platform? Like in https://download.owncloud.com/desktop/ownCloud/stable/2.7/


Is there anyone will add support for Box.com?

RT

There is an issue about that here #97
Can you click the subscribe button on that issue to be notified of changes, and for me to guage interest.
I'm closing this one as a duplicate.
Thanks
Nick

Thanks


Relativistic HMC

I duplicated the current master as hmc-research. This PR is same as #300 but towards the new branch.

thanks, @xukai92 -- can we transfer the changes to hamiltonian.jl and metric.jl to #303 too?

can we transfer the changes to hamiltonian.jl and metric.jl to https://github.com/TuringLang/AdvancedHMC.jl/pull/303 too?

Done.


Logger restart, [Error: SQLITE_BUSY: database is locked

Today the htlc-logger started out of the blue!

The following entry could be found in htlc-logger.log:
01/24 07:48:05 AM
logging event: {
  incoming_channel_id: '785606555749908480',
  outgoing_channel_id: '767492101637013505',
  incoming_htlc_id: '83618',
  outgoing_htlc_id: '0',
  timestamp_ns: '1643006885240308298',
  event_type: 'FORWARD',
  link_fail_event: {
    info: {
      incoming_timelock: 720411,
      outgoing_timelock: 720371,
      incoming_amt_msat: '436281795',
      outgoing_amt_msat: '436151386'
    },
    wire_failure: 'TEMPORARY_CHANNEL_FAILURE',
    failure_detail: 'INSUFFICIENT_BALANCE',
    failure_string: 'insufficient bandwidth to route htlc'
  },
  event: 'link_fail_event'
}
node:events:368
      throw er; // Unhandled 'error' event
      ^

[Error: SQLITE_BUSY: database is locked
Emitted 'error' event on Statement instance at:
] {
  errno: 5,
  code: 'SQLITE_BUSY'
}

---------------------------------------
01/24 07:50:22 AM
subscribing to htlc events

Many thanks in advance for applying a fix :-)

The logger service auto-restarted due to an uncaught exception. The exception was generated due to a rarely observed db error, caused by two simultaneous [atomic] writes needing access to the db. The fix is to put try & catch clause around the db call, so that the logger does not restart. Ideally, the long term fix is to root cause the db exception.
The issue isn't critical, as the daddy/watchdog service auto-restarted the logger service.

Just catched another one today...


Branching logic doesn't work with checkboxes?

I'm trying to use the new config page branching logic and it works fine as outlined in the example (branching based on a text field value) but seemingly not with a checkbox. Is there an issue with my logic?
{
	"key": "example-checkbox",
	"name": "Enable to see hidden config field",
	"type": "checkbox",
	"required": false
},
{
	"key": "hidden-config-field",
	"name": "This field should be visible if the box above is checked",
	"type": "text",
	"required": false,
	"branchingLogic": {
		"field": "example-checkbox",
		"value": true
	}
}

I have not tried this with checkboxes, but I would suspect that the "value" should be the numeric value associated with a particular checkbox (like what would appear in an export).

Actually, I think I figured out what's happening: The checkbox value isn't updated in realtime, so it's not checking the branching logic until after the config is saved and reloaded. If I check the box, save, and open the config popup again, I see the "hidden-config-field".
"value": "true" is the correct syntax, but this is definitely still an issue.

I apologize, my first comment didn't make any sense (just deleted it).  I haven't really worked with configuration branching logic yet aside from basic testing.  @tbembersimeao might have a better idea as to what is going on here.

@eaneuhaus @mmcev106 I'll look into it this week. I'll let you know as soon as I have a position about it.

Sorry about my delay on this. I started to work on this issue, and I'll submit a PR later this week, which will also fix #93.

Created a PR to fix it - #98.


fix(ios): add header paths required for use_frameworks compilation

Does any other open PR do the same thing?

There is a similar PR doing a full reorganization of the iOS structure at #4417 , but maintainer @Simon-TechForm mentioned it was a breaking change, and indeed it is quite wide-ranging. So it is stalled.
Whereas this PR is laser-focused on a backwards-compatible / frameworks-or-not-frameworks fix for users that need use_frameworks! in their Podfile. I'm laser-focused on that myself because I maintain react-native-firebase and this is a pain point for my users.
The change itself is from @billnbell and I'm just carrying it into a PR with hope it is considered
In my experience most use_frameworks fixes are like this - just header path meddling and it works (that's the case for react-native core, and hermes so far as big examples, there are other smaller ones as well)
What issue is this PR fixing?
This PR fixes the case where use_frameworks! is in the Podfile, without breaking the non-use-frameworks case
How did you test this PR?

I will defer to @billnbell on this one, he indicates he did a bunch of testing :-). Care to comment William?

Seems harmless to me, so I'm happy to merge this :)

Hi, i don't understand, with the 1.3.2-beta.1 I need to edit podfile like @billnbell solution?
With this solution, maps work, but debugger and fast refresh not work

billnbell

took me a while to find this solution! thanks


Plug-in does not work in NativeScript 8

When attempting to use this plug-in with NativeScript 8, once you add an import or require pointing to this plug-in 3 errors are thrown when compiling for Android and 8 for iOS all relating to core nativescript modules.
Platforms: Both
NS/Android: 8.0.0
NS/iOS: 8.0.0
Device: Android S7, iPhone 7

CLI: 8.01
Cross-platform modules: 8.0.0
Runtime(s): 8.0.0 for both
Plugin(s): 7.0.1

Pull any of the NativeScript 8 templates, install the imagepicker plugin and attempt to reference the plugin on any page and run the app.
I have attempted to reference it both ways:
var imagepicker = require("nativescript-imagepicker");
import * as imagepicker from "nativescript-imagepicker";

You'll want to use this instead for NS7 and beyond.
https://www.npmjs.com/package/@nativescript/imagepicker


Problem with usage of juicedata/mount docker image

What happened:
Juicefs is not properly unmounted when stopping docker container created as documented in juicefs_on_docker#method-2-use-the-officially-maintained-image
What you expected to happen:
Juicefs is unmounted on container stop
How to reproduce it (as minimally and precisely as possible):
Follow juicefs_on_docker#method-2-use-the-officially-maintained-image documentation to create and start a container, then stop container. Run stat or ls on directory that was bind-mounted in the container to get Transport endpoint is not connected error. Unmount the directory manually.
Anything else we need to know?
juicefs mount command starts two processes, of which only the second one is listening for signals (SIGTERM, etc) and only the second process does graceful stop with unmount when receiving a signal from docker engine (or anything else). When run in docker container as described in docs, the signal is sent to the first process with PID 1 and container is just killed without graceful unmount. The bug can be reproduced without using containers: just run juicefs mount in foreground, then go to another terminal and do ps auxww | grep juicefs, you'll get two processes with their PIDs. Run kill -SIGTERM with first PID as argument.
Environment:

JuiceFS version (use juicefs --version) or Hadoop Java SDK version: 1.2.1+2024-08-30.cd871d19
OS (e.g cat /etc/os-release): Debian GNU/Linux 12 (bookworm)
Kernel (e.g. uname -a): 6.1.0-26-amd64 SMP PREEMPT_DYNAMIC Debian 6.1.112-1 (2024-09-30) x86_64 GNU/Linux

My ugly workaround is running juicefs mount command in shell with signal trap, e.g. in docker compose:
command: sh -c "trap 'test -e /fs/.config && umount /fs' TERM INT HUP; juicefs mount redis://redis:6379/1 /fs & p=$$!; wait $$p"

instead of:
command: ["juicefs", "mount", "redis://redis:6379/1", "/fs"]

I looked in source code and made a little patch against main branch to solve the problem:
diff --git a/cmd/mount_unix.go b/cmd/mount_unix.go
index 2e60e8d1..f43844c6 100644
--- a/cmd/mount_unix.go
+++ b/cmd/mount_unix.go
@@ -780,6 +780,16 @@ func launchMount(mp string, conf *vfs.Config) error {
                os.Unsetenv("_FUSE_STATE_PATH")
                mountPid = cmd.Process.Pid

+               signalChan := make(chan os.Signal, 10)
+               signal.Notify(signalChan, syscall.SIGTERM, syscall.SIGINT, syscall.SIGHUP)
+               go func() {
+                       for {
+                               sig := <-signalChan
+                               logger.Infof("Received signal %s, propagating to child process %d...", sig.String(), mountPid)
+                               cmd.Process.Signal(sig)
+                       }
+               }()
+
                ctx, cancel := context.WithCancel(context.TODO())
                go watchdog(ctx, mp)
                err = cmd.Wait()

Should I make it a PR?

@zhijian-pro
That's so strange. I can reproduce the bug with ease and also understand why it's happening after debuging with strace and studying the source code. I've recorded a short screencast to show the bug, please take a look:
https://github.com/user-attachments/assets/259cfdcb-ffef-4f4b-a785-8898ea7e4c9b
In the video I'm using the following self-contained docker compose file:
services:
  redis:
    image: redis:alpine
    restart: always
    ports:
      - "6379:6379"
    volumes:
      - "${PWD}/data/redis:/data"
    command: ["redis-server", "--appendonly", "yes"]
    healthcheck:
      test: ["CMD", "redis-cli", "ping"]
      timeout: 10s
      retries: 3
      start_period: 10s
  minio:
    image: minio/minio
    ports:
      - "9000:9000"
      - "9001:9001"
    volumes:
      - "${PWD}/data/s3:/data"
    environment:
      MINIO_ROOT_USER: secret
      MINIO_ROOT_PASSWORD: secretkey
    command: server --console-address ":9001" /data
    healthcheck:
      test: ['CMD', 'curl', '-f', 'http://<IP_ADDRESS>:9000/minio/health/live']
      timeout: 10s
      retries: 3
      start_period: 10s
  create_bucket:
    image: minio/mc
    volumes:
      - "${PWD}/data/state:/state"
    entrypoint: >
      sh -c "test -e /state/bucket_created || \
      (mc config host add s3 http://minio:9000 secret secretkey && \
      mc mb s3/juicefs && \
      touch /state/bucket_created && \
      exit 0)"
    depends_on:
      minio:
        condition: service_healthy
  format_juicefs:
    image: juicedata/mount:latest
    volumes:
      - "${PWD}/data/state:/state"
    environment:
      ACCESS_KEY: secret
      SECRET_KEY: secretkey
    command: >
      sh -c "test -e /state/juicefs_created || \
      (juicefs format --storage minio --bucket http://minio:9000/juicefs redis://redis:6379/1 testfs && \
      touch /state/bucket_created)"
    depends_on:
      redis:
        condition: service_healthy
      create_bucket:
        condition: service_completed_successfully
  juicefs:
    image: juicedata/mount:latest
    volumes:
      - "${PWD}/data/mnt:/mnt:rw,rshared"
    cap_add:
      - SYS_ADMIN
    devices:
      - /dev/fuse
    security_opt:
      - apparmor:unconfined
    command: ["juicefs", "mount", "redis://redis:6379/1", "/mnt"]
    restart: unless-stopped
    depends_on:
      redis:
        condition: service_healthy
      format_juicefs:
        condition: service_completed_successfully

The workflow is following:

juicefs mount is started as PID 1 in container
It forks a new child process with same executable and arguments and some PID NN in cmd/mount_unix.go:func launchMount
This child process installs a listener for os signals in cmd/mount_unix.go:func installHandler
Docker engine sends SIGTERM to PID 1 on container stop
Process with PID 1 does not propagate signal to child process with PID NN to gracefully shutdown and container is just killed, leaving broken mountpoint.

@halsbox
I repeated the problem, but it may have something to do with your container mount address. Why mount juicefs to the bind address of the docker volume？
If you want to use juicefs inside the container, you can use it directly without having to bind docker volume to the same address


fix: Fix ResolutionSelector.forSize not respecting aspect ratio

What
When passing a format, make sure that if we need to fall back to another format we use a similar aspect ratio.

Changes

Tested on

Related issues

Overrides https://github.com/mrousavy/react-native-vision-camera/pull/3020

Hello,
I tested it on 4 different phones/tablets (with different Android versions, etc...) and everything is ok on my side :)

Awesome!


weights is so large

Hi. I download the weights and that is so large, Do you have any way to make this smaller? I want use it in Mobile end. Thanks!

You can use different weights at the cost of decreased accuracy in detection

Hello, I am using the same weights for my master thesis, and it is showing good accuracy, a less false positive, less false-negative rate that I can notice with the subjective evaluation.
Could you send me training and testing curves (Confusion Matrix)? Could you please give an accuracy of this model that I can mention in my thesis.


Pipe: Temporarily use insertRow and insertTablet in batch mode to avoid detection failure of absent metadata

Description
As the title said.

This PR has:

[ ] been self-reviewed.

[ ] concurrent read
[ ] concurrent write
[ ] concurrent read and write

[ ] added documentation for new or modified features or behaviors.
[ ] added Javadocs for most classes and all non-trivial methods.
[ ] added or updated version, license, or notice information
[ ] added comments explaining the "why" and the intent of the code wherever would not be obvious
for an unfamiliar reader.
[ ] added unit tests or modified existing tests to cover new code paths, ensuring the threshold
for code coverage.
[ ] added integration tests.
[ ] been tested in a test IoTDB cluster.

Key changed/added classes (or packages if there are too many classes) in this PR

Original issus was fixed by https://github.com/apache/iotdb/pull/11577