Sqs error while deleting message

Hi,
we are using DLL in an external application to create/delete messages in AWS SQS queue. But for few cases we are getting error message as follows, we have verified that no issues with policy/access because its getting failed for few cases only and that too getting processed during reties sometime.
Retry Attempt--5--Message --Access to the resource is denied.Inner Exce--Amazon.Runtime.Internal.HttpErrorResponseException: The remote server returned an error: (403) Forbidden. ---> System.Net.WebException: The remote server returned an error: (403) Forbidden.   at System.Net.HttpWebRequest.GetResponse()   at Amazon.Runtime.Internal.HttpRequest.GetResponse()   --- End of inner exception stack trace ---   at Amazon.Runtime.Internal.HttpRequest.GetResponse()   at Amazon.Runtime.Internal.HttpHandler`1.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.Unmarshaller.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext)   at Amazon.SQS.Internal.ValidationResponseHandler.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.ErrorHandler.InvokeSync(IExecutionContext executionContext)

This looks like it's coming from SQS service not the SDK.  Could you provide request ids for those requests?  We'll forward that information to SQS team.

what kind of request id's you are asking?and what is the SQS team?

Hi @yuvayuvips, the SQS team is the AWS team responsible for building the underlying SQS service that the .NET SDK then exposes to .NET developers.
If you have an AWS support plan, you will probably have better support on this issue if you go through those channels.
The request ids could be helpful for identifying the cause of your issue.  You can find them in your responses' ResponseMetadata property.

Hi @sstevenkang / @klaytaybai ,
Here is the message id : cf538c5b-e2c4-4c86-b460-8d5e6248cb58
Please do post me the updates. Cheers.

Hi , Any update on this issue :(

This sounds similar to https://github.com/aws/aws-sdk-net/issues/1063.  is that the case?

I don't think it is closely related to that issue because it sounds like the credentials are still valid after the 403 has already been returned.
I have made a request for logs, and I am now waiting for a response.
If this is quite problematic for you and retries are sometimes working, I suggest increasing the number of retries to help mitigate the problem for now until a better cause/solution is found.

@yuvayuvips, how often are you making these requests?  Are they in a quickly-processing loop or logic that is otherwise making enough requests that they might warrant being throttled by our systems?  That would also return the 403

@klaytaybai we are making 20 request calls per hour by average. as you suggested we have implemented retry count (10 times) as hot fix in our application. but still beyond the limit few cases are failing to connect aws sqs.

@yuvayuvips We need request IDs, not message IDs to trace the HTTP request.  Could you provide them?  You can get it via https://github.com/aws/aws-sdk-net/blob/master/sdk/src/Core/Amazon.Runtime/AmazonServiceException.cs#L114

@sstevenkang , After some code changes in exception code , i could able to get request ids from error messages , please find the details below,
Code Change :
catch (AmazonSQSException e)
{
throw new AmazonSQSException("SQS Error" + "::RequestId:" + e.RequestId.ToString() + "::Error Code:" + e.ErrorCode.ToString() + "::Error Type:" + e.ErrorType.ToString() + "::HResult:" + e.HResult.ToString() + "::InnerException:" + e.InnerException.ToString() + "::Message:" +e.Message.ToString() +  "::StackTrace:"+ e.StackTrace.ToString());
}
Error msg :
Attempt--10--Message --SQS Error::RequestId:2aa467a8-4946-5841-9645-338b41c54613::Error Code:AccessDenied::Error Type:Sender::HResult:-2146233088::InnerException:Amazon.Runtime.Internal.HttpErrorResponseException: The remote server returned an error: (403) Forbidden. ---> System.Net.WebException: The remote server returned an error: (403) Forbidden.   at System.Net.HttpWebRequest.GetResponse()   at Amazon.Runtime.Internal.HttpRequest.GetResponse()   --- End of inner exception stack trace ---   at Amazon.Runtime.Internal.HttpRequest.GetResponse()   at Amazon.Runtime.Internal.HttpHandler1.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.Unmarshaller.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext)   at Amazon.SQS.Internal.ValidationResponseHandler.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.ErrorHandler.InvokeSync(IExecutionContext executionContext)::Message:Access to the resource https://sqs.eu-west-1.amazonaws.com/719848509458/techservices-automation-kofax-out-prd is denied.::StackTrace:   at Amazon.Runtime.Internal.HttpErrorResponseExceptionHandler.HandleException(IExecutionContext executionContext, HttpErrorResponseException exception)   at Amazon.Runtime.Internal.ExceptionHandler1.Handle(IExecutionContext executionContext, Exception exception)   at Amazon.Runtime.Internal.ErrorHandler.ProcessException(IExecutionContext executionContext, Exception exception)   at Amazon.Runtime.Internal.ErrorHandler.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.CallbackHandler.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.Signer.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.CredentialsRetriever.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.RetryHandler.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.CallbackHandler.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.EndpointResolver.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext)   at Amazon.SQS.Internal.ProcessRequestHandler.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.Marshaller.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.CallbackHandler.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.ErrorCallbackHandler.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.PipelineHandler.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.MetricsHandler.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.Internal.RuntimePipeline.InvokeSync(IExecutionContext executionContext)   at Amazon.Runtime.AmazonServiceClient.Invoke[TRequest,TResponse](TRequest request, IMarshaller`2 marshaller, ResponseUnmarshaller unmarshaller)   at Amazon.SQS.AmazonSQSClient.SendMessage(SendMessageRequest request)   at Amazon.SQS.ExtendedClient.AmazonSQSExtendedClientBase.SendMessage(SendMessageRequest request)   at Amazon.SQS.ExtendedClient.AmazonSQSExtendedClient.SendMessage(SendMessageRequest sendMessageRequest)InnerException--
Request Ids:
f6a85727-bd00-5eab-823f-0304b246a6d8
0c3376e1-5283-5343-9f15-22c25df439b6
2aa467a8-4946-5841-9645-338b41c54613

Can you double check that all servers that are polling the queue have the same permissions.
If there are more than one server, you could perhaps turn all but one off and test each at a time.

Hi all,..one good news is there was no issue with the code. some unknown service was calling the sqs from the consuming application.we found that and stopped those.now our application is running with no issues. Thanks for your support..


Windows ssh-add -L replacment

I am trying to get my ssh key with ssh-add -L but I am unable to do this. I am getting the agent has no identities. Then I changed my gpg agent to use putty and i exported my key with gpg --export-ssh-key but I get key with end opengpg which is different then cardno as in example. I change manually key to cardno:..... (of course i changed number to card number) and uploaded to github but I am getting error:

Sorry, I have not used Yubikey with Windows and don't plan on it. Maybe someone else can help us out.

gpg --export-ssh-key <user-id>


Any alternatives on downloading large files

The issue is very similar to #26
Take an example of 500mb file
gdown 1fXgBupLzThTGLLsiYCHRQJixuDsR1bSI

# error
Traceback (most recent call last):
  File "/home/qzhang419/anaconda3/bin/gdown", line 8, in <module>
    sys.exit(main())
  File "/home/qzhang419/anaconda3/lib/python3.8/site-packages/gdown/cli.py", line 145, in main
    filename = download(
  File "/home/qzhang419/anaconda3/lib/python3.8/site-packages/gdown/download.py", line 149, in download
    res = sess.get(url, headers=headers, stream=True, verify=verify)
  File "/home/qzhang419/anaconda3/lib/python3.8/site-packages/requests/sessions.py", line 555, in get
    return self.request('GET', url, **kwargs)
  File "/home/qzhang419/anaconda3/lib/python3.8/site-packages/requests/sessions.py", line 528, in request
    prep = self.prepare_request(req)
  File "/home/qzhang419/anaconda3/lib/python3.8/site-packages/requests/sessions.py", line 456, in prepare_request
    p.prepare(
  File "/home/qzhang419/anaconda3/lib/python3.8/site-packages/requests/models.py", line 316, in prepare
    self.prepare_url(url, params)
  File "/home/qzhang419/anaconda3/lib/python3.8/site-packages/requests/models.py", line 390, in prepare_url
    raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL '1fXgBupLzThTGLLsiYCHRQJixuDsR1bSI': No schema supplied. Perhaps you meant http://1fXgBupLzThTGLLsiYCHRQJixuDsR1bSI?

I found even on chrome, it request another confirmation

Do you have any ideas or suggestions on how to fix this or alternative approaches to download a large file in the terminal?

Run this command instead:
gdown https://drive.google.com/u/0/uc?id=FILE_ID_HERE&export=download&confirm=t

For example, the command you need is:
gdown https://drive.google.com/u/0/uc?id=1fXgBupLzThTGLLsiYCHRQJixuDsR1bSI&export=download&confirm=t

@Hacker17082006 The trick is really useful! It solves my problem.

The solution can be found at
https://github.com/wkentaro/gdown/issues/146
gdown.download(
f"https://drive.google.com/uc?export=download&confirm=pbef&id={file_id}",
output={filename}
)


A question about MPCVault

Hi AlphaWallet,
I have to post my question here since there is no discussion section
Can you please help clarify what MPC-based vault is in this article about Alpha Wallet?
This is the first Ethereum wallet to incorporate a Secure Enclave, an easy-to-use key backup, and a recovery system. It provides great customer support, hardware wallet accounts for its most demanding customers, an MPC-based vault, smart-contract accounts to batch transactions for various purposes, and secure peer-to-peer communication. at https://nftsdaily.io/nft-wallet/alphawallet/
Thanks and regards,

Hi @johnnynanjiang thanks for the interest. AlphaWallet doesn't have built-in support for MPC-based vault atm. AFAIK, I thought you were the one who was exploring it :)

Hi @johnnynanjiang thanks for the interest. AlphaWallet doesn't have built-in support for MPC-based vault atm. AFAIK, I thought you were the one who was exploring it :)

Thanks @hboon for replying.
Yes we are exploring MPC options on AlphaWallet codebase, will definitely get back to you once we have a promising solution.
Not sure how this article mentions about MPC vault at https://nftsdaily.io/nft-wallet/alphawallet/, never mind, thanks for clarifying.


Ak element set criteria fix

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Performing terraform plan and access_key

There are some references to ARM_ACCESS_KEY and that this needs to be done manually to be able to access the remote state
But when perform az login it seems to be enough to execute terraform commands
terraform init
terraform plan
With the prerequisite is that it is defined in backend "azurerm"
This means that I have never set the storage key this is sorted in azure somehow...
How does this work?

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

ID: 789076a3-5d6d-e5d9-a3f7-cc1d6351ca8a
Version Independent ID: e873b421-20fe-3415-0f4b-aacd7378c271
Content: Store Terraform state in Azure Storage
Content Source: articles/terraform/store-state-in-azure-storage.md
Service: terraform
GitHub Login: @TomArcherMsft
Microsoft Alias: tarcher

@ZerNox Thanks for your question. Here's a link to an article detailing authenticating to Azure.


mileage as key for running path

@gwehrle thought about a slighty different approach to have the position as the key for the following attributes like this:
    characteristic_sections:
       0.0:
          speed:      1
          resistance: 0.00
       1.0:
          speed:      2
          resistance: 0.00

Originally posted by @gwehrle in https://github.com/railtoolkit/schema/issues/19#issuecomment-2222383255

Mileage as key needs to be a string and an object for a valid JSONschema (see json schema: object).
The "uniqueItems": true specification can only be used for arrays, not objects.
I came up with the following Schema to make mileage as key possible:
"characteristic_sections": {
  "type": "object",
  "patternProperties": {
    "([+-]?[0-9]{0,3}?[_]?[0-9]{0,3}?[_]?[0-9]{0,3}[.][0-9]{0,3})": {
      "type": "object",
      "properties": {
        "speed": {
          "description": "speed in kilometers per hour",
          "type": "number",
          "exclusiveMinimum": 0
        },
        "resistance": {
          "description": "resistance in permil",
          "type": "number"
        }
      }
    }
  }
},

The regex states that at least a decimal point is needed and the underscore _ can be used as digit separator for 3 digits.
Now the YAML file can look like:
schema: https://railtoolkit.org/schema/running-path.json
schema_version: "2024.07"
paths:
  - id: example
    description: "Example"
    characteristic_sections:
      0_000.0:  # mileage in meter
        speed:      160  # speed limit in km/h,
        resistance: 0.00 # resistance in permil
      1_000.0:
        resistance: 1.00
      4_0000.0x:
        resistance: -3.00
      567098:

Unfortunately, this is a valid file with npm run validate:running-path doc/running-path.example.yaml  and it should not be valid according to the regex!

see mileage-as-key branch


Create the template for file download

As in title. We want for user to be able to see and download all files he needs for internship application/documentaton

This part won't be something that fills the whole page, maybe it will expand adjusting to number of files available


Write a set of code solutions: "php regex" (php-regex)

Please write code solution for this topics:
php regex (technology: php-regex)
Fast way
Just write the code solution(s) in the comments.
Prefered way

Create pull request with a new code file inside inbox folder.
Don't forget to use comments explain solution.
Link to this issue in comments of pull request.

How to use regex in PHP to match any string?
How to use regex in PHP to match any character?
How to use regex in PHP to match only letters?
How to use regex in PHP to match any character including newline?
How to use backslash in PHP regex?
How to use regex in PHP to match between two strings?
How to use word boundary in PHP regex?
How to use regex in PHP to match between two characters?
How to use backreference in PHP regex?
How to use regex in PHP to match cyrillic characters?
How to use regex in PHP to do a case insensitive search?
How to use curly braces in PHP regex?
How to use capture group in PHP regex?
How to use regex in PHP to match only digits?
How to use regex in PHP to match any digit?
How to use regex in PHP to match datetime?
How to use regex in PHP to match date in "yyyy-mm-dd" format?
How to use regex in PHP to match dot character?
How to use regex in PHP to validate an email address?
How to use regex in PHP to extract matched values?
How to escape a slash when using regex in PHP?
How to exclude a word when using regex in PHP?
How to extract a group when using regex in PHP?
How to split string by regex in PHP?
How to match the end of a string when using regex in PHP?
How to use regex flags in PHP?
How to create a regex for a username in PHP?
How to format a phone number using regex in PHP?
How to find all matches when using regex in PHP?
How to use greedy regex in PHP?
How to get regex match in PHP?
How to get a matched group when using regex in PHP?
How to get the first match when using regex in PHP?
How to match a GUID using regex in PHP?
How to get only numbers from a string using regex in PHP?
How to match an HTML tag using regex in PHP?
How to use PHP regex to match a hexadecimal?
How to use PHP regex to match a hex color?
How to use PHP regex to match a hashtag?
How to use PHP regex to match a URL in a href attribute?
How to use PHP regex to match a hyphen?
How to use PHP regex to match http or https?
How to use PHP regex to match an IP address?
How to use PHP regex in a case insensitive mode?
How to use PHP regex to match a JSON key value?
How to convert a PHP regex to JavaScript regex?
How to use PHP regex lookahead?
How to use PHP regex to match a line break?
How to use PHP regex lookbehind?
How to get last matched occurrence in PHP regex?
How to use PHP regex to match letters, numbers and underscores?
How to use modifiers with PHP regex?
How to use PHP regex to match a multiline?
How to use PHP regex to match a boolean value?
How to use PHP regex to match a nbsp HTML whitespace?
How to use PHP regex to match a non-word?
How to use named capture groups in PHP regex?
How to use negative lookahead in PHP regex?
How to match strings not containing a certain string in PHP regex?
How to use an "or" condition in PHP regex?
How to match one or more occurrences in PHP regex?
How to match a plus sign in PHP regex?
How to use PCRE in PHP regex?
How to use quantifiers in PHP regex?
How to match a question mark in PHP regex?
How to match a quotation mark in PHP regex?
How to match a double quote in PHP regex?
How to match a single quote in PHP regex?
How to replace strings using PHP regex?
How to remove a tag from a string using PHP regex?
How to remove non-printable characters using PHP regex?
How to replace a tag using PHP regex?
How to remove all non-numeric characters using PHP regex?
How to match a space using PHP regex?
How to match strings starting with a certain string using PHP regex?
How to use the "s" modifier in PHP regex?
How to use PHP regex to match time?
How to use PHP regex to match tab?
How to use PHP regex to match URL?
How to use PHP regex to match URL path?
How to use PHP regex to match UTF8?
How to use PHP regex to match UUID?
How to use PHP regex with a variable in a pattern?
How to use PHP regex to match a word?
How to use PHP regex to match whitespace?
How to use PHP regex to match an XML tag?
How to use PHP regex with the "x" modifier?
How to use PHP regex to match an exact string?
How to use PHP regex to match special characters?
How to use PHP regex to match a year?
How to use PHP regex to get a YouTube video ID?
How to use PHP regex with zero or more occurrences?
How to use PHP regex to match a zip code?


Add a option to only run credo if mix.exs exists

When I'm editing a simples .exs the plugin will try to run the mix credo, but mix.exs doesn't exists:
Command `/usr/local/bin/mix credo` returns empty output! Please check your configuration. Did you add or modify your dependencies? You might need to run `mix deps.get` or recompile.

Totally makes sense to only execute credo in mix apps. Will work on this soon.

@robsonpeixoto Should be fixed now. Test it if you like and get back to me if you experience any errors.


Blog should be highlighted on website

So people can look at changes without having to dig through github issues.

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/25442152-blog-should-be-highlighted-on-website?utm_campaign=plugin&utm_content=tracker%2F85909&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F85909&utm_medium=issues&utm_source=github).

We do have it in the footer, but maybe something on the (currently non-existent) homepage?

@mattbk I added a new "star" area to highlight the 1.0 payout, and at first it linked to our blog post though now it links to a page on the site. You think it's a good idea to keep that around post-1.0-refund and use it for the most recent blog post?

I think that is a good idea.

Okay, let's go ahead and close this out, then, since we have that in place. :-)


Issue #123

Description
__
-Deprecates p2p
-Adds rain tree redundancy
-Adds rain tree cleanup layer
Fixes # (issue)
closes #85
closes #123
Type of change
Please mark the options that are relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?
Extended the unit tests in the new P2P package
Checklist:
__

[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[X] I have commented my code, particularly in hard-to-understand areas
[X] I have made corresponding changes to the documentation
[X] No new warnings are generated by my changes
[X] I have added tests that prove my fix is effective or that my feature works
[X] New and existing unit tests pass locally with my changes
[X] Any dependent changes have been merged and published in downstream modules

@Olshansk I fixed all of your asks.
I'm throwing this to you because I have no idea how to work with / understand the rain tree module level tests (which are now failling).
My asks are:

Fix the tests with the redundancy layer (use my visual diagram and cleaned up code to understand)
Create an issue to make these tests more straightforward
Take some time offline to explain to me how these work

@andrewnguyen22 If we split out redundancy + cleanup into a separate PR from Deprecate Pre2P, then we can deprecate Pre2P without needing to rush the improvement of the tests. I realize this requires extra work, but let me know if you'd rather us have:

Focus on fixing the tests and improving their understanding
Splitting it out in two independent PRs (1 deprecate Pre2P, and then add clean/redundancy)

Alternatively (hopefully a group fix), we can take away the lesson to not group cleanup & logic layer changes and go over this in protocol hour tomorrow?


Add a license to the repository

I recently came across your project Quantum-Algorithms and I noticed that the repository github.com/ShiyaMer/Quantum-Algorithms currently does not have a license specified.
Why Adding a License is Important?
As GitHub documents

Public repositories on GitHub are often used to share open source software. For your repository to truly be open source, you'll need to license it so that others are free to use, change, and distribute the software.

Would be possible to add a valid license to this repository? Probably something really OpenSource such as the Apache 2.0 license would fit really well.
Thanks!

Thank you for your suggestion about adding a license to my Quantum-Algorithms repository. I've taken your advice and added the Apache 2.0 license as you recommended. I appreciate your help in making my project more open and accessible to the community. The license should now be visible in the repository. Please let me know if there's anything else I should do to improve the project's openness or documentation. Thanks again for your valuable input!

Thank you!


TrainedModel not able to download models from GCS

I have tried the MMS example for triton and it was working
Now I'm trying to load my own models as TrainedModel CR, just like in example but the models are not being downloaded from GCS due to access issue.
Logs:
{"level":"info","ts":1632402209.4004538,"logger":"fallback-logger","caller":"agent/watcher.go:89","msg":"Start to watch model config event"}
{"level":"info","ts":1632402209.4005527,"logger":"fallback-logger","caller":"agent/watcher.go:127","msg":"Watching /mnt/data/models.json"}
{"level":"info","ts":1632402360.0603712,"logger":"fallback-logger","caller":"agent/watcher.go:103","msg":"Processing event \"/mnt/configs/..data\": CREATE"}
{"level":"info","ts":1632402360.0607443,"logger":"fallback-logger","caller":"agent/watcher.go:173","msg":"adding model densenetonnx"}
{"level":"info","ts":1632402360.0608056,"logger":"fallback-logger","caller":"agent/puller.go:136","msg":"Worker is started for densenetonnx"}
{"level":"info","ts":1632402360.0608337,"logger":"fallback-logger","caller":"agent/puller.go:144","msg":"Downloading model from gs://kfserving-custom-models/model_repo/densenetonnx"}
{"level":"info","ts":1632402360.060902,"logger":"fallback-logger","caller":"agent/downloader.go:48","msg":"Downloading gs://kfserving-custom-models/model_repo/densenetonnx to model dir /mnt/models"}
{"level":"error","ts":1632402360.5230613,"logger":"fallback-logger","caller":"agent/puller.go:149","msg":"Failed to download model densenetonnx with err failed to download model: failed to download model: unable to download object/s because: an error occurred while iterating: googleapi: Error 401: Anonymous caller does not have storage.objects.list access to the Google Cloud Storage bucket., required","stacktrace":"github.com/kubeflow/kfserving/pkg/agent.(*Puller).modelProcessor\n\t/go/src/github.com/kubeflow/kfserving/pkg/agent/puller.go:149"}
{"level":"info","ts":1632402360.523168,"logger":"fallback-logger","caller":"agent/puller.go:129","msg":"completion event for model densenetonnx, in flight ops 0"}

If I create a normal InferenceService with predictor as triton and storageUri same as above, then it works fine.
The example worked because those buckets are public.
Also, the TM shows as READY
kubectl get tm densenetonnx -n kfserving-test

NAME           URL                                                                         READY   AGE
densenetonnx   http://triton-mms.kfserving-test.example.com/v2/models/densenetonnx/infer   True    5m33s

kubectl get tm densenetonnx -n kfserving-test -oyaml

apiVersion: serving.kubeflow.org/v1alpha1
kind: TrainedModel
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"serving.kubeflow.org/v1alpha1","kind":"TrainedModel","metadata":{"annotations":{},"name":"densenetonnx","namespace":"kfserving-test"},"spec":{"inferenceService":"triton-mms","model":{"framework":"onnx","memory":"1Gi","storageUri":"gs://kfserving-custom-models/model_repo/densenetonnx"}}}
  creationTimestamp: "2021-09-23T14:45:42Z"
  finalizers:
  - trainedmodel.finalizer
  generation: 1
  labels:
    inferenceservice: triton-mms
    serving.kubeflow.org/trainedmodel-allocated: triton-mms
  name: densenetonnx
  namespace: kfserving-test
  resourceVersion: "103920"
  uid: 25b6d287-9367-4137-9211-62f8c4f8ff2d
spec:
  inferenceService: triton-mms
  model:
    framework: onnx
    memory: 1Gi
    storageUri: gs://kfserving-custom-models/model_repo
status:
  address:
    url: http://triton-mms.kfserving-test.svc.cluster.local/v2/models/densenetonnx/infer
  conditions:
  - lastTransitionTime: "2021-09-23T14:45:43Z"
    status: "True"
    type: FrameworkSupported
  - lastTransitionTime: "2021-09-23T14:45:43Z"
    status: "True"
    type: InferenceServiceReady
  - lastTransitionTime: "2021-09-23T14:45:43Z"
    status: "True"
    type: IsMMSPredictor
  - lastTransitionTime: "2021-09-23T14:45:43Z"
    status: "True"
    type: MemoryResourceAvailable
  - lastTransitionTime: "2021-09-23T14:45:43Z"
    status: "True"
    type: Ready
  url: http://triton-mms.kfserving-test.example.com/v2/models/densenetonnx/infer

Error 401: Anonymous caller does not have storage.objects.list access to the Google Cloud Storage bucket., required","stacktrace":"github.com/kubeflow/kfserving/pkg/agent.(*Puller).modelProcessor\n\t/go/src/github.com/kubeflow/kfserving/pkg/agent/puller.go:149"}
looks like  Anonymous cannot accessgs://kfserving-custom-models/model_repo

@yuzisun any idea about this?

It's because you should define your auth service account key in secret, then annotate it in inferenceservice.  I followed these steps and managed to access private GCS;

Rename downloaded auth key as follow; gcloud-application-credentials.json
Create secret kubectl create secret generic my-secret --from-file=gcloud-application-credentials.json
Edit inferenceservice-config configmap in kubeflow namespace and add some of the fields into credentials tab
3.1. add "storageSpecSecretName": "my-secret"
3.2. add "storageSecretNameAnnotation": "serving.kserve.io/storageSecretName"
Edit isvc and add annotation: serving.kserve.io/storageSecretName: my-secret

Now you should able to fetch models from private GCS.

It's because you should define your auth service account key in secret, then annotate it in inferenceservice. I followed these steps and managed to access private GCS;

Rename downloaded auth key as follow; gcloud-application-credentials.json
Create secret kubectl create secret generic my-secret --from-file=gcloud-application-credentials.json
Edit inferenceservice-config configmap in kubeflow namespace and add some of the fields into credentials tab
3.1. add "storageSpecSecretName": "my-secret"
3.2. add "storageSecretNameAnnotation": "serving.kserve.io/storageSecretName"
Edit isvc and add annotation: serving.kserve.io/storageSecretName: my-secret

Now you should able to fetch models from private GCS.

do you know why the key needs to be called gcloud-application-credentials.json? Otherwise it wouldn't work.

It's because you should define your auth service account key in secret, then annotate it in inferenceservice. I followed these steps and managed to access private GCS;

Rename downloaded auth key as follow; gcloud-application-credentials.json
Create secret kubectl create secret generic my-secret --from-file=gcloud-application-credentials.json
Edit inferenceservice-config configmap in kubeflow namespace and add some of the fields into credentials tab
3.1. add "storageSpecSecretName": "my-secret"
3.2. add "storageSecretNameAnnotation": "serving.kserve.io/storageSecretName"
Edit isvc and add annotation: serving.kserve.io/storageSecretName: my-secret

Now you should able to fetch models from private GCS.

Do you know why the key needs to be called gcloud-application-credentials.json? Otherwise it wouldn't work.


Add and update indicator-related files

:tada: This PR is included in version 1.14.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Default molecule tags do not match

Description
The default tag for a molecule is UNK. However, when writing an untagged molecule to a PDB file, it is written as UNL. This mismatch causes some problems when using these PDB files with parameter templates created for a UNK ligand.
Solution
Consider using UNL as the default molecule tag or always apply the molecule tag from the offpele representation to the RDKit molecule object to obtain a correct PDB file from it.

This issue has the same origin as #57, which has already been fixed in PR #58.


Embed video and/or music player

Hi guys,
great work!
So far I didn´t dive very deeply into the documentation, so maybe I missed something.
Though, for my purposes I need to embed a video (e.g.  YouTube) or even a music player (e.g. from Soundcloud) in my mails.
Is this that possible within the MJML framework?
Thanks.

Video in email is badly supported, for a consistent experience across
clients, an animated gif of the opening frames (with a play button overlaid
for clarity) linked out to the full video works well.
You could embed an HTML5 video using mj-raw but it would break on a lot of
clients.
:----------------------------:
Dale McConnell
On 1 September 2016 at 08:43, eotp<EMAIL_ADDRESS>wrote:

Hi guys,
great work!
So far I didn´t dive very deeply into the documentation, so maybe I missed
something.
Though, for my purposes I need to embed a video (e.g. YouTube) or even a
music player (e.g. from Soundcloud) in my mails.
Is this that possible within the MJML framework?
Thanks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mjmlio/mjml/issues/377, or mute the thread
https://github.com/notifications/unsubscribe-auth/AKxLOEHdNeoxgwlk75QUdBI_VoGFEZrTks5qloIagaJpZM4JyZ5a
.

I'm closing this issue for as @dalefish said, there is really little poor support for video in email so there is no mjml component dedicated to it. I second Dale on the second point too, if you still want to embed a video, the best would indeed be to embed your video using mj-raw.


20 test pip cache for travis

I've tested the setting
cache: pip

in .travis.yaml. The builds are roughly 2 minutes faster than without, because 20 packages, which were already downloaded
are reused.
Is this a good idea or does anybody have reservations regarding this?

I have no idea. Let's try this and see when it breaks.


Convert sample project to TypeSpec

This PR updates the root project.json to include both cadl and typespec packages for now until we convert everything. This also updates the sample project to typespec

@mikeharder we can use changes in this PR to test out the CadlValidation changes.

/azp run

/azp run

/azp run

/azp run

/azp run

/azp run

/azp run

/azp run

/azp run automation - sdk

/azp run

@praveenkuttappan after my latest fix swagger APIView worked and TypeSpec APIView ran but didn't update the comment and the Cadl APIView is failing. So it still seems like we have some things to work out.

/azp run

API change check
APIView has identified API level changes in this PR and created following API reviews.
/
azure-contoso-widgetmanager
Contoso.WidgetManager
@azure-rest/contosowidgetmanager-rest
contosowidgetmanager-data-plane-Azure.Contoso.WidgetManager

/azp run


The scalacheck.org url is broken

www.scalacheck.org works though

Thanks for reporting this! Both URLs should work now.


MotiView's "from" and "animate" not working on Expo Go

I've created this repo,  when previewing on the Web all work as expected, but when using Expo Go, the properties 'from' and 'animate' doesn't seem to work

Same problem. But it do animate when I manually change the state on which depend the animation in the code, then save (and trigger hot reload)

Fast Refresh is a separate reanimated bug that isn’t related here. I already opened an reanimated issue for that.


HBASE-25339 Method parameter and member variable are duplicated in ch…

…eckSplittable() of SplitTableRegionProcedure
We input a this.bestSplitRow as splitRow of checkSplittable()
private void checkSplittable(final MasterProcedureEnv env,
    final RegionInfo regionToSplit, final byte[] splitRow)

But this private method could use 'bestSplitRow' directly

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Comment

+0 :ok:
reexec
0m  0s
Docker mode activated.

-1 :x:
docker
1m 13s
Docker failed to build yetus/hbase:588e902fcb.

Subsystem
Report/Notes

GITHUB PR
https://github.com/apache/hbase/pull/2723

Console output
https://ci-hadoop.apache.org/job/HBase/job/HBase-PreCommit-GitHub-PR/job/PR-2723/1/console

versions
git=2.17.1

Powered by
Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.


move README badges inline

@rajendraarora16: do you want to try moving these directly inline as noted above, or I can quickly handle it for you?

@willnorris Let me do it pls ;)

@willnorris Changes are done, can we go ahead?

As @shurcooL noted above, let's move the godoc link to the front. otherwise, looks good

@willnorris Is it good ?

Let's move it to the very front... before the build status even.

@willnorris Updated!

looks great, thanks!


barcode_scan xcode build fails because of GULAppDelegateSwizzler

When I run flutter build ios sometimes I get this error,
It's very random, sometimes I get it, sometimes I don't.
Error output from Xcode build:
↳
    ** BUILD FAILED **

Xcode's output:
↳
    === BUILD TARGET MTBBarcodeScanner OF PROJECT Pods WITH CONFIGURATION Release ===
    In file included from
    {app_path}/app/mobile/ios/Pods/GoogleUtilities/GoogleUtilities/AppDelegateSwizzler/GULAppDelegateSwizzler.m:24:
    {app_path}/app/mobile/ios/Pods/GoogleUtilities/GoogleUtilities/AppDelegateSwizzler/Private/GULAppDelegateSwizzler.h:26:1: error:
    duplicate interface definition for class 'GULAppDelegateSwizzler'
    @interface GULAppDelegateSwizzler : NSProxy
    ^
    In file included from
    {app_path}/app/mobile/ios/Pods/GoogleUtilities/GoogleUtilities/AppDelegateSwizzler/GULAppDelegateSwizzler.m:23:
    In file included from
    {app_path}/app/mobile/ios/Pods/GoogleUtilities/GoogleUtilities/AppDelegateSwizzler/Internal/GULAppDelegateSwizzler_Private.h:17:
    {app_path}/app/mobile/build/ios/Release-iphoneos/GoogleUtilities/GoogleUtilities.framework/PrivateHeaders/GULAppDelegateSwizzler.h:2
    6:12: note: previous definition is here
    @interface GULAppDelegateSwizzler : NSProxy
               ^
    1 error generated.

flutter doctor -v:
[✓] Flutter (Channel stable, v1.2.1, on Mac OS X 10.14.3 18D109, locale en-GB)
    • Flutter version 1.2.1 at /Users/tudor/dev/flutter
    • Framework revision 8661d8aecd (4 weeks ago), 2019-02-14 19:19:53 -0800
    • Engine revision 3757390fa4
    • Dart version 2.1.2 (build 2.1.2-dev.0.0 0a7dcf17eb)

[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
    • Android SDK at /Users/tudor/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-28, build-tools 28.0.3
    • Java binary at: /Users/tudor/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/182.5199772/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
    • All Android licenses accepted.

[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 10.1, Build version 10B61
    • ios-deploy 1.9.4
    • CocoaPods version 1.6.1

[✓] Android Studio (version 3.3)
    • Android Studio at /Users/tudor/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/182.5199772/Android Studio.app/Contents
    • Flutter plugin version 31.3.1
    • Dart plugin version 181.5656
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)

[✓] Connected device (1 available)
    • Tudor’s iPhone 7 • 6c6f39c58d86256962f6a336f8ebef46f202225e • ios • iOS 12.1.4

• No issues found!

I've run
flutter clean

once and the problem gone.

I've face this issue before then

flutter clean and then run flutter build ios if not solved then try.
rm -rf build/ios and cd ios && pod repo update and then run flutter build ios if not solved then try.
open Xcode and in File>Workspace Settings under Build System select New Build System(Default) but (some say select Legacy Build System instead but for me New Build System work fine) and then run flutter build ios

Hope this help.

I've face this issue before then

flutter clean and then run flutter build ios if not solved then try.
rm -rf build/ios and cd ios && pod repo update and then run flutter build ios if not solved then try.
open Xcode and in File>Workspace Settings under Build System select New Build System(Default) but (some say select Legacy Build System instead but for me New Build System work fine) and then run flutter build ios

Hope this help.

Second worked for me, many thanks!

open Xcode and in File>Workspace Settings under Build System select New Build System(Default) but (some say select Legacy Build System instead but for me New Build System work fine) and then run flutter build ios

This is no longer recommended.  See https://github.com/flutter/flutter/issues/42437#issuecomment-542323456.

Not sure what's going on here.
@tudor07  can we get your pubspec.yaml, pubspec.lock, ios/Podfile, and ios/Podfile.lock?

I haven't seen this issue in a while (it was opened almost 2 years ago), I will close issue for now, if it happens again I will re-open.


submodule nits

Problem
irregular configs for submodules
Summary of Changes
make regular

I don't know how to fix the lgtm failure off hand.  I think I could have a PR where pigweed is mapped in twice?  hope we can land without lgtm

I don't know how to fix the lgtm failure off hand. I think I could have a PR where pigweed is mapped in twice? hope we can land without lgtm

Try:
git mv third_party/pigweed pigweed
mkdir -p third_party/pigweed
git mv pigweed third_party/pigweed/repo

@woody-apple this is ready

@jelderton @hawk248 @andy31415 ?

@rwalker-apple can we fix the conflicts here?

@woody-apple ready


Google Signin from an API endpoint

I have a custom POST endpoint that is called from a desktop application.
The endpoint should authentificate the user using the google provider.
The user has already at least once on the website registered with signInSocial, but from the endpoint context, the user is not signed-in (nothing in the cookies since it is not the web-browser).
What would be the way to programmaticallly signin the user on an endpoint ?
I tried the following:
const rep = await authClient.signIn.social(
            {
                provider: "google",
           }
);

But all I get is the URL from google to show the login request.
What I would like is a way to get the cookie so that I can call auth.api.getSession right away after signIn.social.
Is this workflow supported ?
Also as a side note, as I'm not familiar with google oauth workflow: Is the user always supposed to accept the request using the google-provided form when logging-in or just the first time ? For me it promps everytimes, but this may be because I'm using a test mode client on Google cloud ?

If you have the idToken from google you can use that to authenticate with :
await authClient.siginIn.social({
     provider: "google",
     idToken: {token: "your_id_token"}
})

Ok, but is there a way to get this token from better-auth?

I don't think better-auth itself  provides methods to obtain Google's ID token directly, this needs to be obtained from Google's OAuth2 flow. For example in react-native app I use @react-native-google-signin/google-signin to get the idToken. For desktop app I don't know unfortunately.


[otbn,dv] Handle injected errors in middle of memory secure wipe

The _step_ext_wipe stepper function didn't have code to stop on a
pending halt: add it! While we're at it, factor out the repeated code
into a method on the State object.

Ah good point. I'll update the documentation and try to work out how to get the extra arrow in the ASCII art :-)


doc: remove inaccurate statement in eval

actually it can read fs. Given that normal typst code can also read fs, there is no much difference between them.
#set page(height: auto, width: auto)

#eval("json(\"test.json\")")

reading from fs shouldnt be a big deal IMO. because we already isolate fs access inside the directory. so i just remove the line in doc

Some people probably already read the removed note, so it is better to create the opposite note, rather than just removing the old one. It should warn that code inside can read from FS and that user should be careful what they evaluate inside.

Since we can now pass scope to the eval function, wouldn't it make sense to actually block access to the file system? The user can also just pass read in the scope if they really want it. Or at least have a boolean (which is true by default) for isolation?

Or at least have a boolean (which is true by default) for isolation?

Yeah, I also think this would be a neat feature.
https://discord.com/channels/1054443721975922748/1088371919725793360/1199614119754612779 (by 紙夜):

Since we have already restrict all fs access within a root directory, I don't think we have to restrict it again. Or, there should be a some security related parameter, but a such param is probably hard to design.

Well in my case, my only use of eval is in the case of allowing imported files to contain markup (most notably for my glossary which uses a YAML file to store definitions)

Eval did originally block file access. I added support for that later after a user request since everything is sandboxed anyway. Not sure whether that was the right call.

I think it's fine to have FS access, but it also sounds fair to me to be able to control the root inside eval (like root: "/some/folder" for example, or root: none to disable FS access).

Thanks!


Added an optional callback function to getHooks

Added an optional callback function so that the vue app instance can be accessed before mounting. I wanted to use pinia and it requires a plugin installation so I just added a callback function.
Also added a usage example in the README.md.

Copied your work @Valian. Is this good?
You wrote down the entire implementation for me.

@morfert Well it was not that complex 😅 Could you also update README? I'll test it in the meantime 🤗

Sure, forgot about the  README.

@morfert I tested your changes. There was an issue with app.mount() returning root component and not app itself, so I had to update it. Also you forgot to export initializeVueApp from index.mjs.
I added two commits on my own fixing these problems, and adjusting README a bit. Will release 0.4.0 in a moment ;) Thank you for your contribution!


TotemRPUVPattern is enabled as an input, replacing TotemRPRecHit

Hi @Cristian-Baldenegro , yes, making a pull request is also a good way of integrating your changes. I will review your changes and let you know ~tomorrow.


Feature: Bake Componant

We need a separate bake component to bake the "DObjs" output.
with
The option not to bake the background should be added.

Added in 42ab5d9

Added in 42ab5d9


Remove ScrollableGrid

All the clients have migrated to GridView.  Also, remove RenderGrid,
which isn't needed by GridView.

@Hixie @HansMuller

LGTM.


more readable  text?

The pages have titles like index and tools/index rather than something human-readable.

Would you accept a PR for this ?
I have in mind to put as title "Rust - Learn" or "Rust - Getting started" : that is stripping anything before the / of the page file name, removing "-" and uppercase the result.


IOHasBufFS interface for I/O using user-supplied buffers

We require this interface in https://github.com/input-output-hk/lsm-tree, because going through ByteString is incompatible with the code in some places, and it's costly to allocate intermediate ByteStrings instead of moving around bytes from/to Ptrs (and ByteArrays)
Two notes:

It's a separated interface from HasFS (for now), since I don't want to break downstream code yet.
The interface is not yet simulated and extensively tested using state-machine tests in fs-sim, but will be after a future PR that I'm already working on. I'm currently hunting a persistent bug in the pure model used for the state-machine tests. For now, I've included a couple of simple round-trip tests that exercise the new functions

Alright, ByteArray instead of Ptr seems the way to go. See the changelog file for a full overview of user-facing changes.

Drafting this again, since we're planning on using MutableByteArray instead of ByteArray as the buffer type


Add Id property to all elements and actions

Implementation status

[X] TypeScript (https://github.com/Microsoft/AdaptiveCards/pull/494)
[x] UWP
[x] WPF
[x] iOS
[x] Android
[ ] Documentation

Problem

Some hosts, especially those that support Action.Http, might need an easy way to correlate an action from the client to its counterpart on the server. Such hosts will likely use an Id property on actions (added after the card is received) anyway, so we might as well make it official
Still in the context of Action.Http, where the response to a POST call might contain instructions for the host replace all or a portion of a card with new content, having an Id property available on elements would make it easy to remove an element from a card's element tree and insert a new one.

Solution
Add the following property on all element and action types

Property
Type
Description

Id
string
Uniquely identifies the element or action within a card. If duplicate Ids are used in a given card, the first occurrence "wins."

The concept sounds good to me. Do this would not be a required property then?

It will be at the discretion of hosts. Some hosts might want to make the Id property of an action required, some might not. I don't think the Id property of an element would be required at all.

works for me too.

@riarenas did we already add this to UWP by chance?

This is done in UWP for Actions and CardElements. Should this apply to elements that only exist inside specific containers such as choices, facts and columns?

That's how it is in C# as well, since Fact and Choice are not "typed" elements which is where we added the Id property.

Looks like this never was documented, re-opening till that's complete

This is documented in main and will go out with the next website deployment.


Question: Why are there limitations, that context has to be created in main Thread?

Hi,
Why are there some limitations of GLFW, that we have to create context in main Thread on Mac OSX?

Large chunks of Cocoa are not thread-safe and may only be called from the main thread. Once the context is created you may make it current on any thread.


Update for iOS 9 and Safari 9 compatibility

Add workaround for isArray check failing due to Arguments not being recognized as an Array in Safari 9.

Hi Ltullman:
Thanks for your work!
I have incorporated this change, as well as regression tests (!) and jslint fixes in this branch: https://github.com/mmikowski/taffydb. Please check it out :)
I added rudimentary regression tests, but they are easy to expand and port to run headless on node.js (see taffy-test.html)
We should look at forking this project if Ian cannot be found.  I'm willing to guide the project and even asked him if I could take over, but haven't heard back from him.
It would be sad to fork, but even worse if we couldn't keep using this software.  A few thoughts if we went that way:

We would need a new name that is sticky and evokes memories of taffydb
We should see if we could get Ian to point others to the new project, or (again, better yet) just transfer TaffyDB to new management
We definitely want to compare to existing projects to see if something better or redundant has come along

Cheers, Mike

Hi Mike, You're welcome and I agree about this project needing a maintainer again.  I sent Ian a tweet so hoping he replies.

Same here.  Thanks for your help.  It fixed our iOS9 bug for our VP and CEO.  Very helpful!

Apparently I'm facing a similar problem, when inserting entries to a DB it does not persist. Trying to retrieve gives me an empty array or simply db().count() = 0.
@ltullman Was your fix intended to fix this issue?

@LucasLazaro Yeah, it should solve that.

Are you guys willing to merge these changes into the base branch?

This looks good to me.  I tested here.  iOS9 now works, and regression tests pass.


Other elements are no longer dragged when Tree component is rendered

Describe the bug
I'm trying to use other drag and drop components on the same screen as the treeview component.
However, for any custom HTML element that I set the draggable attribute to, the drag functionality is lost. This only happens when the treeview component is rendered in the same view.
To Reproduce
Try dragging some of the custom elements:
https://codesandbox.io/embed/minimum-configuration-js-forked-c8uk64?fontsize=14&hidenavigation=1&theme=dark
Expected behavior
The element drag and drop should happen (OnDrag).  This only works when I remove the Tree component.

Browser Firefox
Version 102.01

@santanamic
This problem is caused by the dependency package react-dnd. The same issue is reported in the following Issue.
https://github.com/react-dnd/react-dnd/issues/3304
This problem can be avoided by specifying rootElement in the DnDProvider option and limiting the scope of react-dnd.
Please refer to the sample code we have created below.
https://codesandbox.io/s/issue164-zv2889?file=/src/App.jsx


First run analyse '>' not supported between instances of 'str' and 'int'

Hi Colin,
During first run of analyse, this error has been displayed.
Appreciate that you have put a lot  of time into this with the features which are very interesting.
Hopefully you can assist with this issue.
Best regards
Mark Glanville

Hello,
That seems odd.
Can you please edit the config file, and change the line
Debug: 0
To
Debug: 1
And it should give some more clues as to what is going on.
Thanks.
Colin.
On Sun, 5 Jul 2020 at 22:04, MarkMGlanville<EMAIL_ADDRESS>wrote:

Hi Colin,
During first run of analyse, this error has been displayed.
Appreciate that you have put a lot of time into this with the features
which are very interesting.
Hopefully you can assist with this issue.
Best regards
Mark Glanville
[image: 2020-07-05 21_36_31-Slough Dolphin Swimming Club and 1 more page -
Personal - Microsoft Edge]
https://user-images.githubusercontent.com/67877503/86542193-72376580-bf0b-11ea-8d2c-994f732e38c2.png
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ColinRobbins/scm-helper/issues/15, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADGXZ6KIHXWGEKH4JTUWR43R2DTF7ANCNFSM4ORBLJWQ
.

--
Colin Robbins
(from mobile)

Good Morning Colin,
Have attached debug results.
Searched SCM for active and inactive members for “Ammar" or “Abubakr” or any combination of three characters from these names with no positive results.
Searched SCM for active and inactive members for “Mohammed" and there are 20 results. Closer inspection of every name did not find any reference to these attributes “Ammar" or “Abubakr”
Best regards
Mark Glanville
From: Colin Robbins<EMAIL_ADDRESS>Sent: 06 July 2020 07:51
To: ColinRobbins/scm-helper<EMAIL_ADDRESS>Cc: MarkMGlanville<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [ColinRobbins/scm-helper] First run analyse '>' not supported between instances of 'str' and 'int' (#15)
Hello,
That seems odd.
Can you please edit the config file, and change the line
Debug: 0
To
Debug: 1
And it should give some more clues as to what is going on.
Thanks.
Colin.
On Sun, 5 Jul 2020 at 22:04, MarkMGlanville <notifications<EMAIL_ADDRESS>wrote:

Hi Colin,
During first run of analyse, this error has been displayed.
Appreciate that you have put a lot of time into this with the features
which are very interesting.
Hopefully you can assist with this issue.
Best regards
Mark Glanville
[image: 2020-07-05 21_36_31-Slough Dolphin Swimming Club and 1 more page -
Personal - Microsoft Edge]
https://user-images.githubusercontent.com/67877503/86542193-72376580-bf0b-11ea-8d2c-994f732e38c2.png
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ColinRobbins/scm-helper/issues/15, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADGXZ6KIHXWGEKH4JTUWR43R2DTF7ANCNFSM4ORBLJWQ
.

--
Colin Robbins
(from mobile)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FColinRobbins%2Fscm-helper%2Fissues%2F15%23issuecomment-654048493&data=02|01||e9449343ee6e4f11bc0008d82178e43f|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637296150386995924&sdata=qX1pFUquIEle22XXbHM1I0KOnTUcPREsuTE9jJWziB0%3D&reserved=0, or unsubscribehttps://nam10.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAQF3U7YLFPD35ANK42GQH2TR2FX35ANCNFSM4ORBLJWQ&data=02|01||e9449343ee6e4f11bc0008d82178e43f|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637296150386995924&sdata=OalARPIiruKwougLqoLKCbCuQPoI6%2Bd7ljLGyfWu81c%3D&reserved=0.
Reading Data...
(version: 1.3)
Sessions... 44
Groups... 30
Lists... 2
Roles... 23
Conduct... 1 2 3 4 5
Members... 100 200 Traceback (most recent call last):
File "scm_helper\gui.py", line 940, in wrap
File "scm_helper\api.py", line 216, in get_data
File "scm_helper\entity.py", line 57, in get_data
File "scm_helper\members.py", line 79, in create_entities
File "scm_helper\members.py", line 71, in check_duplicate
File "scm_helper\issue.py", line 425, in issue
TypeError: '>' not supported between instances of 'str' and 'int'
self: Thread-1
self: Thread-1
self: Thread-1
aclass: Members
self: Members
self: Members
data: Ammar Abubakr Mohammed
self: Members
xobject: Ammar Abubakr Mohammed

I have hopefully fixed this in the development tree.
Please try this download:
https://github.com/ColinRobbins/scm-helper/raw/dev/download/scm.zip

Hello Colin,
Success.
Thank you for your prompt action.
Best regards
Mark Glanville
From: Colin Robbins<EMAIL_ADDRESS>Sent: Tuesday, July 7, 2020 8:01 PM
To: ColinRobbins/scm-helper<EMAIL_ADDRESS>Cc: MarkMGlanville<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [ColinRobbins/scm-helper] First run analyse '>' not supported between instances of 'str' and 'int' (#15)
I have hopefully fixed this in the development tree.
Please try this download:
https://github.com/ColinRobbins/scm-helper/raw/dev/download/scm.ziphttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FColinRobbins%2Fscm-helper%2Fraw%2Fdev%2Fdownload%2Fscm.zip&data=02|01||3ff7f912c5ec4e6c0fd908d822a80727|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637297452347959239&sdata=Mx2KYd0xWbA82Un3PVfVcmqewIwppZ1OQjxLmPGEMhg%3D&reserved=0
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FColinRobbins%2Fscm-helper%2Fissues%2F15%23issuecomment-655059902&data=02|01||3ff7f912c5ec4e6c0fd908d822a80727|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637297452347969234&sdata=NfO7r1gZGHb%2FbnTs7eJygSaPLu%2B3UG7Iwo8uiTOel%2B8%3D&reserved=0, or unsubscribehttps://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAQF3U74IXALBP62C7CY5FL3R2NWFDANCNFSM4ORBLJWQ&data=02|01||3ff7f912c5ec4e6c0fd908d822a80727|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|637297452347979230&sdata=R6pCntQvrmRLGGU1V1rSi84GP%2BnbTBGPjhPvWeUc4%2Bk%3D&reserved=0.

Fixed in 1.3.1


Clean up exploded assets and rate base tags

Based on a first round of feedback, let's address some outstanding issues with the exploded assets and rate tags.
#2894:

[x] Remove rate base tag from allowances factoid in income_statement_ferc1
[x] And add it to allowance_inventory_and_withheld ?
[x] Add dbf2020 information to depreciation_amortization_summary_ferc1
[x] less_derivative_instrument_assets_hedges_long_term should be connected to row 66
[x] less_derivative_instrument_assets_long_term should be connected to row 64
[x] less_noncurrent_portion_of_allowances should be connected to row 53
[x] less_long_term_portion_of_derivative_instrument_liabilities should be connected to row 51
[x] less_long_term_portion_of_derivative_instrument_liabilities_hedges should be connected to row 53
[x] other_miscellaneous_operating_revenues needs a DBF 2020 row (25?)
[x] check that special_funds_all = special_funds + other_special_funds calc in balance_sheet_assets_ferc1 is not dropped, or add if missing
[x] check that preliminary_natural_gas_and_other_survey_and_investigation_charges = preliminary_natural_gas_survey_and_investigation_charges + other_preliminary_survey_and_investigation_charges (+ maybe preliminary_survey_and_investigation_charges) calc in balance_sheet_assets_ferc1 is not dropped, or add if missing
[x] check that nuclear_fuel calc (see rows 7-13) in balance_sheet_assets_ferc1 is not dropped, or add if missing
[x] check that accumulated_deferred_income_taxes = accumulated_deferred_income_taxes_accelerated_amortization_property + accumulated_deferred_income_taxes_other_property + accumulated_deferred_income_taxes_other calc in balance_sheet_liabilities_ferc1 is not dropped, or add if missing
[x] plant_in_service_ferc1 should generally be plant_status = in_service, except for electric_plant_purchased and electric_plant_sold
[x] balance_sheet_assets_ferc1 table doesn’t have utility_type labeled
[x] Fix plant_function in out_ferc1__explosion_tags
[x] Add utility_type to balance sheet liabilities and retained earnings tables
[x] Fix tags to remove partial conflicting tags and tag at the plant_status level for accumulated_depreciation and accumulated_provision_for_depreciation_amortization_and_depletion_of_plant_utility children

Still to do:

Add dbf2020 information to electric_plant_depreciation_functional_ferc1
utility_plant_summary_ferc1 table doesn't have plant_status labeled
plant_in_service_ferc1 doesn't have plant_function labeled (generally clear from either the end of the factoid or from the row number)
electric_operating_expenses_ferc1 doesn’t have plant_function labeled
income_statement_ferc1 differentiates by utility_type, but the old dbf form did not. Are the connections to dbf2020 metadata separate from utility_type? If utility_type is differentiated in xbrl, then there are multiple xbrl lines that correspond to the dbf line?
Check that utility_type and tags_in_rate_base filled out for every component. utility_type should be total where it aggregates all utility types (and mixed when it aggregates a subset?)
Investigate other oddities in income_statement_ferc1 (see notes in Google Doc)

Out of scope

Clean up the new cruft from #2810

The four missing calcs can be explained by DBF-only factoids used up through 2003, which were later replaced by multiple more detailed factoids. See #2700 for more detail.

hey @jrea-rmi ! one hopefully simple question... for the utility_plant_summary_ferc1 labeling of the plant_status-es, they should be labeled within the headers that are in the taxonomy/form itself? As in the field labeled "Leased to Others" in the "In Service" section should be labeled in_service not leased, right?

also i was a little too hopelessly optimistic yesterday about adding the `plant_status's into the core db tables! The sticking point here is that when we check the calculations, we use the dimension columns as merge keys, which effectively means dimensions on the parent and child side of a calculation need to be either the same value or be null. (i believe!)
which means we add em as tags!

phew, I was confused by "Leased to Others" within "In Service." Generally, the plant_status coming from this table has been maybe the most confusing thing to me in all of FERC data.
I think utility_plant_net = utility_plant_and_construction_work_in_progress - accumulated_provision_for_depreciation_amortization_and_depletion_of_plant_utility . And that it'd make sense for all of those to be labeled as "plant_status"=="total".
I think construction_work_in_progress should get the same plant_status label of construction_work_in_progress. Do you have any alternative ideas?

I think construction_work_in_progress should get the same plant_status label of construction_work_in_progress. Do you have any alternative ideas?

Assuming you mean utility_plant_construction_work_in_progress and construction_work_in_progress should both get the same label? In which case, they're both currently NA's but perhaps total makes most sense here. The other total labellings suggested all make sense to me @jrea-rmi and I can update them.

I think construction_work_in_progress should get the same plant_status label of construction_work_in_progress. Do you have any alternative ideas?

Assuming you mean utility_plant_and_construction_work_in_progress and construction_work_in_progress should both get the same label? I agree. The other total labellings suggested all make sense to me @jrea-rmi and I can update them.

I'm thinking utility_plant_and_construction_work_in_progress with plant_status=="total" and construction_work_in_progress with plant_status=="construction_work_in_progress"

I think this one is fully closable but @e-belfer if you have an objections to that plz just reopen


Misspelling of "probabilities" (currently "probablities") in stabilizerstate.py and test_stabilizerstate.py tests

Environment
There are several function calls that are misspelled as "probablities" instead of "probabilities" in the
qiskit/quantum_info/states and
test/python/quantum_info/states classes.
methods found with misspelling:

What is happening?
Misspelling for the word probabilities for several of the stabilizerstate.py methods and tests for stabilizerstate
How can we reproduce the issue?
no reproduce needed
What should happen?
spelling should be corrected to align with spelling throughout project
Any suggestions?
update the method and test names

I am already working on issue #11425 which works with these methods, I would be happy to take this issue and fix as well

Since all the misprints are only in internal functions and tests, you can go ahead and fix them. thanks!


Don't fail on missing ~/.docker dir

Description
This is the then announced "might be necessary, idk…" follow-up to #39 (8828a2343efc255ad6682f4cd9db89ad021b6de9). See #39 for background info.
Fixes the main run() raising an ENOENT error if ~/.docker/ doesn't exist when writing the new Docker config (#42).
This time I can't really say that it happens "frequently" with GitHub-hosted runners, it has been 5 months since @divyansh42 merged my initial (and apparently incomplete) fix (#39) in March. Still no idea why ~/.docker/ sometimes doesn't exist… Still it causes workflows to fail, what still is annoying. The last error happened in a private repo's workflow, thus I can't share the link…
These changes are again UNTESTED! Simply because I still don't know how. I still know a little JavaScript, but still have next to zero experience with NodeJS (and honestly don't want to learn it), so please keep this in mind. I still believe that providing something to fix #42 is better than nothing (so many "still"s :laughing:).
Related Issue(s)
Fixes #42
Follow-up to #39
Related to #18
Related to #36 (maybe?)
Related to #41 (maybe?)
Checklist

[ ] This PR includes a documentation change
[x] This PR does not need a documentation change

[ ] This PR includes test changes
[ ] This PR's changes are already tested
[x] What tests?

[x] This change is not user-facing
[x] This change is a patch change
[ ] This change is a minor change
[ ] This change is a major (breaking) change

Changes made

Fixes run() raising an ENOENT error if ~/.docker/ doesn't exist (fixes #42, follow-up to #39)

CI isn't running because GitHub considers this project to be too sleepy… :laughing:
See https://github.com/redhat-actions/podman-login/actions/workflows/ci.yml

This scheduled workflow is disabled because there hasn't been activity in this repository for at least 60 days. Enable this workflow to resume scheduled runs.

I know this very well, happened to me before, too. I've created a GitHub Action in 2022 to circumvent this, you might want to add it to this repo. There are a few other GitHub Actions in the marketplace trying to do the same, but AFAIK mine is the only that works reliably without requiring "ghost commits" or running code on some other server, but just uses GitHub workflows to keep GitHub workflows alive. See https://github.com/marketplace/actions/github-workflow-immortality

Looks like its getting more frequent again, I had multiple runs fail in the past few days, including a public one: (1) (as before, note that the parallel jobs doing exactly the same don't fail for some unknown reason)

I have been running into this issue as well.

These changes are again UNTESTED!

I duplicated your changes in my fork. It fixed it in my case.

I still know a little JavaScript, but still have next to zero experience with NodeJS (and honestly don't want to learn it)

Amen, brother. :)


[BUILD] TRITON_APPEND_CMAKE_ARGS env var for appending cmake arguments

This commit adds a new setup.py environment variable to allow for a Triton dev to append any arbitrary cmake argument to their local build environment. It can be useful for experimenting with new cmake options or different toolchains and linkers.
Examples for how to use TRITON_APPEND_CMAKE_ARGS include mixing mold with clang:
TRITON_BUILD_WITH_CLANG_LLD=1 \
TRITON_APPEND_CMAKE_ARGS="
    -DCMAKE_LINKER=mold \
    -DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=mold \
    -DCMAKE_MODULE_LINKER_FLAGS=-fuse-ld=mold \
    -DCMAKE_SHARED_LINKER_FLAGS=-fuse-ld=mold" \
... \
pip install -e python

or mixing LLD with gcc:
TRITON_BUILD_WITH_CLANG_LLD=0 \
TRITON_APPEND_CMAKE_ARGS="
    -DCMAKE_LINKER=lld \
    -DCMAKE_EXE_LINKER_FLAGS=-fuse-ld=lld \
    -DCMAKE_MODULE_LINKER_FLAGS=-fuse-ld=lld \
    -DCMAKE_SHARED_LINKER_FLAGS=-fuse-ld=lld" \
... \
pip install -e python

The core Triton is a small number of people, and we receive many PRs (thank
you!).  To help us review your code more quickly, if you are a new
contributor (less than 3 PRs merged) we ask that you complete the following
tasks and include the filled-out checklist in your PR description.
Complete the following tasks before sending your PR, and replace [ ] with
[x] to indicate you have done them.

[X] I am not making a trivial change, such as fixing a typo in a comment.

[X] I have written a PR description following these
rules.

[X] I have run pre-commit run --from-ref origin/main --to-ref HEAD.

Select one of the following.

[ ] I have added tests.

/test for lit tests
/unittest for C++ tests
/python/test for end-to-end tests

[X] This PR does not need a test because This PR enhances custom build options and won't affect the default build. Default build will be validated by existing CI.

Select one of the following.

[X] I have not added any lit tests.
[ ] The lit tests I have added follow these best practices,
including the "tests should be minimal" section. (Usually running Python code
and using the instructions it generates is not minimal.)

Created this PR based on feedback from https://github.com/triton-lang/triton/pull/3905
@jlebar @htyu

@jlebar Would you have a moment to review this PR for passing generic cmake flags to setup.py? Thanks

Thank You @ThomasRaoux


Write a nitcorn example implementing HTCPCP

Goal: Implement the Hyper Text Coffee Pot Control Protocol as a sample nitcorn program. You can assume that the server runs on a Raspberry Pi and sends signals to a coffeemaker through relays or pins (then use the bcm2835 module). Or, assume that it simply displays the orders on the console to a barista.
Ref: https://tools.ietf.org/html/rfc2324

@Bl4ckb0ne, @xymus, is anyone working on this issue or has this issue been completed?

@Bl4ckb0ne had started working on it if I recall correctly for the last coding party, though I'm not sure he completed the work and it has not been PR'd, so I can confidently say that you're welcome to start working on it if you feel like it :)

After a while, I figured out that the HCPCP protocol can't really be implemented in the nitcorn library. The user have to do it itself, because it depends on many things (principally the coffe pot). However, if you want to do it, or mess around, go for it.

closed by #1915


3D Lightning Models

There are a variety of 3D shading models. Create a small collection of models that can be applied to a rendering pipeline.
Working through this should help establish the best practices for the shading pipeline (packing geometry, normals, lightning, etc).
Ultimately I need a shading model that works for the 2D agent simulations.
Shading Algorithms
Building Blocks

[ ] Emissive Lightning
[ ] Flat Shading (per triangle)
[ ] Gouraud (per vertex)
[ ] Phong (per fragment)

Diffuse Reflection
Models that describe the perceived brightness due to diffuse reflection.

[ ] Lambert
[ ] Oren-Nayar
[ ] Minnaert

Specular Reflection
Models that describe the perceived brightness due to specular reflection.

[ ] Phong
[ ] Blinn-Phong
[ ] Cook-Torrance
[ ] Ward Anisotropic

Subsurface Scattering

[ ] Hanrahan–Krueger

Artistic

[ ] Cell Shading
[ ] Gooch Shading

Physically Based Rendering (PBR)
TBD
Key Resources

Computer Graphics Using OpenGL by F.S. Hill, JR
UIC Lighting and Shading Notes

Flat Shading
Shading alters the colors of faces in a 3D model based on the angle of the surface to a light source or light sources.
With flat shading the lighting is evaluated only once for each polygon (usually for the first vertex in the polygon, but sometimes for the centroid for triangle meshes), based on the polygon's surface normal and on the assumption that all polygons are flat. The computed color is used for the whole polygon, making the corners look sharp.

Lightning Algorithm
There are 3 components to the general shading calculation
Ambient Light (the base color)
As ambient light is directionless, it interacts uniformly across all surfaces, with its intensity determined by the strength of the ambient light sources and the properties of objects' surface materials, namely their ambient reflection coefficients.
Diffuse Light
The direct illumination of an object by an even amount of light interacting with a light-scattering surface. After light strikes an object, it is reflected as a function of the surface properties of the object as well as the angle of incoming light. This interaction is the primary contributor to the object's brightness and forms the basis for its color
Specular Light
The specular lighting component gives objects shine and highlights. This is distinct from mirror effects because other objects in the environment are not visible in these reflections.
Instead, specular lighting creates bright spots on objects based on the intensity of the specular lighting component and the specular reflection coefficient of the surface.
The final color is ambient + diffuse + specular.

Phong Shading

Blinn-Phong Shading

Real-Time Ray Tracing
The Nvidia  RTX chips now have dedicated hardware for raytracing.
Resources

SIGGRAPH 2019 Course


Unused templates, blocks

Going through the remaining style attributes as per #1258, I'm wondering if the following are still needed:

relations_detail_generic.html
the modal block in the main base.html file

The relations template looks like it belonged with GenericRelationView, which was removed in e1e2e1ec993540b1f7fcb4191feb20e73e0d83e2.
The modal block doesn't seem to get used by anything – I guess it's from when we used a modal to confirm deletion of an object? For which we're now using htmx, though I don't know if we're intending to keep that or eventually go back to the Bootstrap modal (which is a different discussion to be had). If the modal isn't needed anymore, the custom styling, whose purpose is unclear to me, doesn't need moving, either. ETA: If we wanna keep it, the customisations should be testable somehow.

The modal block doesn't seem to get used by anything – I guess it's from when we used a modal to confirm deletion of an object?

The modal was introduced so it can be used by plugins or projects. The bibsonomy plugin uses it for its form. It was also initially used for the new relations, but this was now replaced by a dialog element in a2e80fad3fcfc2903067a072de13af4d0406b6e6.
Once the bibsonomy plugin also moves to a dialog element, the modal can be removed.

The modal block doesn't seem to get used by anything – I guess it's from when we used a modal to confirm deletion of an object?

The modal was introduced so it can be used by plugins or projects. The bibsonomy plugin uses it for its form. It was also initially used for the new relations, but this was now replaced by a dialog element in a2e80fa. Once the bibsonomy plugin also moves to a dialog element, the modal can be removed.

Ok, thanks. I don't dislike the idea of including a block for a modal – or other "convenience" blocks for projects – in general. This probably more highlights a problem with code that isn't actively used in Core itself but meant to be used downstream. Other bibsonomy-related if-else blocks in templates come to mind. I think it'd be a good idea if there were a way to test this sort of stuff.
I'll move the custom styling as-is for now.

Ok, thanks. I don't dislike the idea of including a block for a modal – or other "convenience" blocks for projects – in general. This probably more highlights a problem with code that isn't actively used in Core itself

Sorry, I think my comment was more confusing than helpful. The modal was also meant for plugins and downstream projects, but it was also used in core. The bootstrap modal is an element that is not that easy to inject into the DOM, so it made sense at the time to include it by default. Now that there is the dialog element which is more standardized there is no need for the modal anymore. I think our templates should be generic enough to make convenience blocks for projects unneccessary.

Other bibsonomy-related if-else blocks in templates come to mind.

If such blocks are still present I would consider this to be a bug. We tried hard in the last year to get rid of those

I think our templates should be generic enough to make convenience blocks for projects unneccessary.

:+1:

Other bibsonomy-related if-else blocks in templates come to mind.

If such blocks are still present I would consider this to be a bug. We tried hard in the last year to get rid of those

Ah! I came across a couple again while looking to move the last bits of JavaScript out of templates. But that template code is a(n inherited) mess in general, i.e. not representative, and I didn't look elsewhere, just saw them there (where they are nonsensical anyway because they reference code that doesn't exist anymore).


GQLException ERROR on Start

When loading the app
14:05:38: Fatal error encountered:
14:05:38:
14:05:38: Traceback (most recent call last):
14:05:38:   File "main.py", line 155, in main
14:05:38:   File "twitch.py", line 587, in run
14:05:38:   File "twitch.py", line 747, in _run
14:05:38:   File "twitch.py", line 1660, in bulk_check_online
14:05:38:   File "asyncio\tasks.py", line 571, in _wait_for_one
14:05:38:   File "twitch.py", line 1390, in gql_request
14:05:38: exceptions.GQLException: [{'message': 'service error', 'path': ['channel', 'viewerDropCampaigns']}]
14:05:38:
14:05:38: Exiting...
14:05:38:
14:05:38: Application Terminated.
14:05:38: Close the window to exit the application.

same error

+1

This is a duplicate of #590.


Update protobuf-java to 3.15.1

Updates com.google.protobuf:protobuf-java from 3.14.0 to 3.15.1.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.google.protobuf", artifactId = "protobuf-java" } ]

labels: library-update, semver-minor

Superseded by #818.


Publishing when no repository set

Describe the bug
When running the publish goal on oci_image_build it will try to publish images even if the repository argument is not set.
To Reproduce
oci_image_build(
    name="image",
    layers=[":layer"],
    base=["//:python-distroless-arm"],
    # repository=repository,
    # tag=image_tags,
    entrypoint="python3",
    args=[f"{dirctory_no_slash}/local.pex"],
    env=[
        f"PEX_PATH=/{dirctory_no_slash}/local.pex",
    ],
)

pants publish ::
Expected behavior
Ignore target when repository not set
Setup (please complete the following information):

https://github.com/tgolsson/pants-backends@064c00b67311675971449b51962ce62e766d500d#egg=pants_backend_oci&subdirectory=pants-plugins/oci
Pants version [e.g. 2.19.0]
umoci nightly mac arm

Fixed in 0.6.1.


Move API and UI into same repo

Addresses #47 #49 and #53

This should be good to pull in, with some leftover caveats/TODOs:

[ ] Figure out releases
[ ] Figure out versioning API vs UI
[ ] Update documentation
[ ] Python linting/formatting (eventually)


[WIP] Move Smart Answers from Errbit to Sentry

Trello: https://trello.com/c/6BqK4u39/740-move-smart-answers-from-errbit-to-sentry
We need to migrate CPM to Sentry which is the new default.
There are 2 new pages in the docs to help with this:

https://docs.publishing.service.gov.uk/manual/error-reporting.html
https://docs.publishing.service.gov.uk/manual/upgrade-to-sentry.html

https://trello.com/c/qAicE11v

at the moment there is an error raised because the new class GovukError seems not to be found after adding all the gems.
I tried to manually require it as stated in the documentation
require 'govuk_app_config/configure'

but it doesn't work either.

@mgrassotti  regarding the issue with govuk_app_config. I noticed that the version installed was 0.1.0 and the latest which contain GovError was actually 0.2.0.
But the latest version had a conflict with statsd-ruby 1.3.0, so this I have upgraded to 1.4.0 first, before upgrading govuk_app_config.
This has inturned introduced more problem.. will continue looking at it.

@tijmenb 👍 thanks I think I addressed your comments

@mgrassotti looks like a few errors on CI, but otherwise looks good.

@tijmenb great, this is the only one error left:
Error:
SmartAnswersControllerTest#test_: GET /<slug> A/B testing pages under A/B test should show taxon breadcrumbs for the 'B' version. :
ActionView::Template::Error: undefined method `time' for GovukStatsd:Module
Did you mean?  timeout
    app/views/smart_answers/_related_items.html.erb:4:in `_app_views_smart_answers__related_items_html_erb__1451734698928877256_70125785253940'
    app/views/smart_answers/landing.html.erb:2:in `block in _app_views_smart_answers_landing_html_erb___360116743409834156_70125785130460'
    app/views/smart_answers/landing.html.erb:1:in `_app_views_smart_answers_landing_html_erb___360116743409834156_70125785130460'
    app/controllers/smart_answers_controller.rb:37:in `block (2 levels) in show'
    app/controllers/smart_answers_controller.rb:31:in `show'
    test/functional/smart_answers_controller_test.rb:280:in `block (5 levels) in <class:SmartAnswersControllerTest>'
    test/functional/smart_answers_controller_test.rb:279:in `block (4 levels) in <class:SmartAnswersControllerTest>'
    test/functional/smart_answers_controller_test.rb:291:in `instance_exec'
    test/functional/smart_answers_controller_test.rb:291:in `block in create_test_from_should_hash'

bin/rails test test/functional/smart_answers_controller_test.rb:278

do you have any idea about it?

@tijmenb sorry maybe I didn't addressed well a previous comment from yours. Now I used config.statsd = GovukStatsd.client in config/initializers/govuk_navigation_helpers.rb, seeing if it works.

@mgrassotti sorry, my bad! I gave the wrong advice. config.statsd = GovukStatsd.client is correct.

@tijmenb no worries! Now tests should all be ok. Do you want to approve this PR? Many thanks

@tijmenb sorry I am doing other changes, I'll let you know when it's definitive

@tijmenb it should be ok now


No lnguage files

Can you add language files ? There are some string is not translated in Turkish.

I added language files for spanish.
To create turkish translation:
-Go to languages folder
-Copy spanish .po file  and rename it with "tr_TR" at the end
-Use poedit to edit and save
-Poedit will create .mo file
-Now it should work
To contribute via github:
-install tortoisegit (easiest way)
-in github.com fork the project
-clone in your computer
-commit changes
-push your changes
-in github.com create pull request

Thanks @eduardoarandah. I saw language files at the installed plugin directory. But I want to contribute translation.

Download poedit and make your translation
El jueves, 5 de marzo de 2015, Hüseyin Kozan<EMAIL_ADDRESS>escribió:

Thanks @eduardoarandah https://github.com/eduardoarandah. I saw
language files at the installed plugin directory. But I want to contribute
translation.
—
Reply to this email directly or view it on GitHub
https://github.com/fabiorino/crelly-slider/issues/7#issuecomment-77414108
.

--
Enviado desde mi móvil


[Travis CI] Enhance the build matrix:

Linux Clang+libc++ 3.6/7/8 Debug/Release
Linux GCC 5/6 Debug/Release
OSX Xcode 7/8 Debug/Release

I don't know Travis CI enough to proof this and am happy to trust you on this -- do you call it ready to merge?

Yes I do ;) All checks are passing. Some time when you have 10-15 minutes to kill, you can create an account at travis-ci.org, click a few buttons to set up github integration, and you'll get nice notifications in your pull request threads telling you whether or not a PR breaks the build.

Thanks.


Why it shows Parent Import Function of topmost module (exe, dll)?

I don't know why it shows Parent Import Function of topmost module (exe, dll).
Dependency Walker does not show Parent Import Function. This is because topmost module do not have PI.
Therefore, I suggest to replace the PI column text of topmost module  with a UI(Using Import Function)

Huh, all these years that I've used Dependency Walker I never though about what "PE" and "PI" meaning was.
Not gonna lie, it would be a PITA to do what you recommend since "PI" is currently hardcoded. If it bothers you so much you can always think of "PI" as "Program Imports" for the topmost module 😄


Support for custom hosts

It seems like currently the default sentry host is hardcoded here: https://github.com/aagahi/rust-sentry/blob/master/src/lib.rs#L330
That should be an optional option 👍

No problem ;) I'll remove the hardcoded server name.

woohoo! awesome thanks!


Issues in Passing a FilePath to Python

Hi,
I am having issues passing a filepath to python code in tagui. The path gets corrupted.
This is my code:
filepath = "C:\TagUi\tagui\flows\SnowRequestCreation\Inputs.txt"
py_step('filepath = "' + filepath + '"')
py begin
print(filepath)
py finish
echo py_result
Output :
py print(filepath)
C:\TagUi        agui♀lows\SnowRequestCreation\Inputs.txt
You see this path got corrupted.
But when I use same path inside python code, it works:
py begin
filepath = "C:\TagUi\tagui\flows\SnowRequestCreation\Inputs.txt"
print(filepath)
py finish
echo py_result
Output:
print(filepath)
C:\TagUi\tagui\flows\SnowRequestCreation\Inputs.txt
I have tried multiple ways but nothing seems to work in passing correct path as input argument to py. Please advise.

Hi @DushyantK14 this is not an issue with the py step.
In programming or javascript for the matter, certain characters when placed behind a backslash, are escaped characters. In this case, \t is a tab and \f is a form feed. Another common ones is \n newline.
I suggest you can caps those characters behind the backslash like this:
filepath = "C:\\TagUi\\Tagui\\Flows\\SnowRequestCreation\\Inputs.txt"

Also note that for file paths in TagUI you should do double backslashs because the single one is also an escape character.

Hi Ruth,
I know about escape characters, when I pasted code here it removed second '' from each path and shows only one slash in path.
Attaching screenshot  so you can see the path was provided in the exact way as you are suggesting. Output shows corrupted path:

Hi @DushyantK14
As mentioned in above comment, \t and \f are escaped characters too so you will have to capitalise it as \T \F as in the filepath I provided.

that worked.
Thank you.


Optimise pkg bundling so that it is not bundling useless markdown files (combine with esbuild?)

Specification
The pkg bundling appears to be bundling useless markdown files. There is a lack of an ignore configuration that we can apply to pkg so that useless markdown files are not packaged as well. The assets and scripts are "inclusive" configuration, we need "exclusive" configuration.
This should reduce our file size by quite a bit. On top of that, we should be applying minification to our JS that is being bundled.
One way to solve this, is to make use of a JS bundler first, before using pkg. See the problem is that pkg is a fairly basic bundler, focused on creating a usable executable. But it's not a good "module bundler", and there are better tools to do module bundling.
Suppose we were to combine esbuild (or webpack or rollup) with pkg, where esbuild runs first to package the executable into 1 JS file while doing minification. Then pkg only has to deal with that 1 file.
However we still need to consider things that actually cannot be bundled into that 1 JS file. These are all the assets like images, native addons, JSON configuration files, protobuf files. Furthermore there's also scripts. In the case of module bundling, some of these can be "redirected" like JSON. Others however must remain as actual files on the filesystem. This is where pkg can come in save the day. It just needs to maintain its virtual filesystem, and we just need to configure the assets and scripts appropriately.
So right now the scripts/pkg.js is just the beginning. Once a module bundler is involved, the generation of the pkg configuration JSON is likely to become more complex to deal with all these other assets.
Additional context

https://github.com/MatrixAI/TypeScript-Demo-Lib/pull/38#issuecomment-1127430043 - initial detection of pkg bundling files like CHANGELOG.md
https://github.com/vercel/ncc - vercel also works on the ncc project, can it also be used in place of esbuild?

Tasks

...
...
...

If we are going to integrate a bundler like esbuild or webpack, then this may not need to be done. Instead it will be the bundler's job to put together a proper bundle with everything required that would then be "bundled" again by pkg into an executable file.

I'm also curious about pkg virtual filesystem, does it end up unpacking the virtual filesystem on a real filesystem in a temporary directory before running node?
The only other alternative would be to patch the require/import calls so that can load in-memory chunks from the executable and present them as files.

It would be good for the debugging process if the CI/CD process can produce a report/diagram for what will exist in the bundle and its layout structure. The bot can take that and produce nice visuals.

The lack of support for ESM modules is also concerning. Right now we have a problem with pkg bundling the tslib, it doesn't really make any sense: https://github.com/MatrixAI/js-polykey/pull/379#issuecomment-1163073681. So another reason why we need to have a purpose-built bundler before passing into pkg. If that is done, then pkg just ultimately handles non-JS assets (perhaps non-JSON assets too), and native addons and the virtual filesystem and the bundling of the node binary.

Issue relating to this is here.
https://github.com/MatrixAI/js-polykey/issues/387

Trying out nextjs on Polykey-Enterprise as its a web application. Interestingly it doesn't use esbuild.
It has its own special bundler called Turbopack written in Rust. Funny how we end up writing these things in Rust to support TypeScript applications.
Esbuild may still be relevant for Polykey though - specifically for Polykey-CLI and Polykey-Desktop. Because this repo Polykey will focus on staying as a library, so we will move pkg and esbuild and all the other stuff out of Polykey repo. Instead Polykey-CLI will do the bundling into a CLI executable, while Polykey-Desktop will do other bundling specific for Electron.
That will reduce the amount of build CI complexity for Polykey, and speed up builds for Polykey-CLI.

This might be relevant https://esbuild.github.io/api/#keep-names.
Cross posting this https://github.com/MatrixAI/TypeScript-Demo-Lib/issues/32#issuecomment-1676231249

Compare with https://github.com/vercel/ncc.