optimize error msg for parse error

currently the error msg of parsing error is
pest error: --> 10:23 | 10 | Assets:BankCard -50.. CNY |。^--- | = expected add, subtract, multiply, or divide

i guest we can structure the error msg and make it more readable, like
ERROR L10
Assets:BankCard -50.. CNY
                                  ^--- | = expected add, subtract, multiply, or divide

enhanced msg would be like
[2024-03-27T06:38:40Z INFO  zhang_server] version: v0.0.0-beta.5, build date: 2024-03-07
[2024-03-27T06:38:40Z ERROR zhang] An error occur when serving zhang server: Parse Error
    Path: main.zhang --> 5:34
      |
    5 | 2023-12-02 "KFC" "VME50 Package" ""
      |                                  ^---
      |
      = expected tag or link

I think it's enough to check which file is invalid and which line is invalid


Add PyInstaller 4.10 specific versioning

Apparently PyInstaller released 5.0 and it's breaking building for the moment, so this should fix it.
Something always has to ruin the party.

For some reason, 5.0 actually runs the program so the automatic build never ends. This fixed it! Thanks!


Running netlify dev with the -t flag applies redirection rules to /.netify/functions

Describe the bug
When running netlify dev with the -t flag to enable some of the recent changes to the redirection engine locally (e.g. automatic passthrough of query parameters), if there is a redirection rule that matches the /.netlify/functions path it causes calls to Netlify functions to fail. This is different from when running netlify dev without the -t flag, where the /.netlify/functions is never redirected even if there are redirection rules that technically match it. Since it's not possible to override this behavior with a redirection rule that matches /.netlify/* paths, there's no way to make functions work together with broadly applying redirection rules.
To Reproduce

Clone this minimal reproduction repo: https://github.com/nonAlgebraic/netlify-cli-functions-redirect-bug-repro
Navigate to the cloned repository
Run yarn install
Run yarn netlify dev -t
See that the Netlify function call invoked by the script on the redirected page is itself redirected, causing the script to fail.
Run yarn netlify dev (without the -t flag)
See that the function call is now successful.

Configuration
netlify.toml:
[dev]
  command = "yarn start"
  framework = "#custom"
  publish = "public"
  targetPort = 8080
  port = 9090

[build]
  functions = "functions"

[[redirects]]
  from = "/*"
  to = "/some-page.html"
  status = 301

Output of envinfo:
System:
  OS: macOS 11.1
  CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz
  Memory: 881.86 MB / 16.00 GB
  Shell: 3.2.57 - /bin/bash
Binaries:
  Node: 14.15.0 - ~/.nvm/versions/node/v14.15.0/bin/node
  Yarn: 1.22.10 - ~/projects/netlify-cli-functions-redirect-bug-repro/node_modules/.bin/yarn
  npm: 6.14.8 - ~/.nvm/versions/node/v14.15.0/bin/npm
  Watchman: 4.9.0 - /usr/local/bin/watchman
npmPackages:
  netlify-cli: ^2.70.0 => 2.70.0

Expected behavior
When running netlify dev -t, either calls to /.netlify/functions do not have redirection rules applied to them, or it is made possible to override the redirection with a suppresive rule such as
[[redirects]]
  from = "/.netlify/*"
  to = "/.netlify/:splat"
  status = 200

placed before the more general rule.

Released in https://github.com/netlify/cli/releases/tag/v3.1.0.
Thanks for the report @nonAlgebraic!

Released in https://github.com/netlify/cli/releases/tag/v3.1.0.
Thanks for the report @nonAlgebraic!


Owasp Zap Sarif reporting plugin improve shrinking of too big content

Situation

Body shrinking for too large content is currently only done for binary.
Body shrinking does use a fixed size (32000) only and not defined parameters
Evidence snipets are never shrinked but set as plain text (even for binary)
Reading https://docs.oasis-open.org/sarif/sarif/v2.1.0/os/sarif-v2.1.0-os.html#_Toc34317425 the binary contain shall
just contain base64 of relevant portion of the artifact (means no "[...]" inside

Wanted
The mentioned problems shall be fixed
Solution

[x] shrink body text content as well and use parameter parts (snippet + max size)
[x] Change binary shrinking - we will only show up the first 1024 bytes
[x] We do not use "[...]" for binaries
[x] We shrink the evicidence snippet as well - maximum is 1024 bytes

was done with 1c1e67932


Remove "true" from external: in "networks: stanza?

File: compose/networking.md
Heya, should services:
 services:
  # ...
networks:
  default:
    external: true
    name: my-pre-existing-network

have the "true" removed?
Thanks,
Paul

I think the external: true is correct for that example; it indicates that an existing ("externally managed") network should be used, and that compose should not create the network (but instead use the existing network with that name)


add query endpoints to /builds

it should be nice to have application has query than param
/builds/?applicaiton=XYZ
That way , we can keep buidling on this for env as well
/build/?application=XYZ&ENV=ABC

i'd like to put the "mandatory" field in url instead of query string to reduce the validation check on parameters and error handle.

Why is that , the validation efforts seems the same to me, and use query is cleaner . If you go down the path using param , how do you query all build using env . Obviously, /build/all/:env don't work because the param is same as application

to query builds on env, I would like to something like

/environments/ENVNAME/current
get build info for all application
/environments/ENVNAME/current?application=XYZ

get build info for application XYZ

that will lead us the more or less same Api (get list of builds) to 3 different endpoints with different Params and queries. That to me is more complicated. If you worries about branch and application relationship , you will have the Same validation issue for this env endpoint your mentioned above. Let's have a quick (phone or in person) once you have time


refactor: decoupling fiat-ramps

Description
this PR makes fiat ramps agnostic.
Notice

[x] Have you followed the guidelines in our Contributing guide?
[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[x] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[ ] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)
closes #1387
Risk
Not yet, maybe after adding another fiat ramps
Testing
Click Buy/Sell button in the app header, everything should be as it was before.
Screenshots (if applicable)

hey @stackedq & @gomesalexandre
i just gave this a thorough review, and made a branch with my suggestions instead

i've removed anything bitcoin specific - we should never have done this in the first place, and added a few utilities to handle it, these probably need better homes at the application level, not the fiat ramp level
we should consider adding minimum asset buy/sell amounts to the abstraction

please see my branch here for suggested changes https://github.com/shapeshift/web/pull/1511

@stackedq if you rebase this branch off develop, you can change my PR to point into this one to see the diff (my base is rebased already)

@0xdef1cafe done

i've removed anything bitcoin specific - we should never have done this in the first place, and added a few utilities to handle it, these probably need better homes at the application level, not the fiat ramp level

Agreed! While this was used for fiat ramps initially and scoped there, this will actually have many use cases across the app


Opaque restoring of local copy over cloud copies.

Weights and Biases version: 0.8.31
Python version: 3.7.6
Operating System: Darwin --> macOS Catalina (10.15.3)
Framework: Pytorch (1.4.0)

Description
I want to load a model from a previous run, but loaded local copy from a different run instead. This caught my attention as I changed model architecture between these runs, causing a Pytorch error. After this I realised I had wrongly loaded runs with the same architecture.
I should note that adding replace=True fixed it (as is noted in the documentation), but this does not seem like appropriate default behaviour.
What I Did
I trained/saved 2 models:
model_1.train()
torch.save(model_1.state_dict(), os.path.join(wand.run.dir, 'model.h5'))
# --> run 2rnc4loc
# local dir: run-20200404_151459-2rnc4loc

model_2.train()
torch.save(model_2.state_dict(), os.path.join(wand.run.dir, 'model.h5'))
# --> run o49gv8qw
# local dir: run-20200404_151559-o49gv8qw

I have loaded my model from the first run, and then proceed to load my model from the second run:
model = Model(**kwargs) # some pytorch model
loc = wandb.restore('model.h5', run_path='jeroenbe/$PROJECT/o49gv8qw')
model.load_state_dict(torch.load(loc.name)) # --> loads from run 2rnc4loc

Calling wandb.restore will download the data from cloud storage at the run_path specified.  replace=True will just overwrite a local file if it exists.  Any time you call wandb.init we create a new local directory.  Does that make sense?

So for every run there should be a different local file, right?
If this is the case, I am not sure why above behaviour is happening. I will go through some more code; when I find something I will report here.

Yeah, each new run should have a fresh local directory.  Let us know what you find, happy to hop on a quick screenshare if that would help.

Great, I will close for now. When/should I find something I will reopen. Thanks!


RegexChecker skips lines

The code in the RegexChecker seems to indicate that regex matches should be done on a per line basis. My github repo shows differently.

This is a bit of a weird one. You can fix your problem by setting the line parameter to true:
<check level="error" class="org.scalastyle.file.RegexChecker" enabled="true">
    <parameters>
        <parameter name="regex"><![CDATA[Await.result\([^,]*\)]]></parameter>
        <parameter name="line">true</parameter>
    </parameters>
</check>

This forces the regex to be performed line by line. If you're not doing line by line, then RegexChecker concatenates the file and matches the regular expression as a single string. It retrieves all of the matches and raises errors for them. However, because you had [^,], this matched the newlines as well.


Update gcc minor versions

Checklist

[ ] Used a fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I wanted to let you know that I linted all conda-recipes in your PR (recipe) and found some lint.
Here's what I've got...
For recipe:

The home item is expected in the about section.
The license item is expected in the about section.
The summary item is expected in the about section.
The outputs section contained an unexpected subsection name. target is not a valid subsection name.
The outputs section contained an unexpected subsection name. target is not a valid subsection name.
The outputs section contained an unexpected subsection name. target is not a valid subsection name.
The outputs section contained an unexpected subsection name. target is not a valid subsection name.

@conda-forge-admin, rerender

This effort is noble. Should we just push gcc 9 out the door instead?

That's a bigger task that I don't want to take on right now.

LGTM - but CI is failing

@conda-forge-admin, rerender


Wrap all errors related to file input to reference line numbers and row data

FEATURE REQUEST
Inspiration
Work on #580 to create errors that gave users useful information uncovered a recurring theme that could be applied to any exception.
Description
When any exception is caught, and a row index and data is available, the exception should be wrapped in another exception that adds row number and data.  This was done for a number of specific exceptions, which were eventually moved outside of the catch and into the code (so that errant rows could be skipped for further processing.  Examples include MissingCompound, MissingSamples, ConflictingValueError, etc.  Some of these exception classes take data on multiple rows.  Others take a single row.  An exception class could be created for either case or one class could handle either case.
The class would need to take (for example) a dict with row data, (a) row number(s), and either multiple or a single caught exception's message.
Alternatives
none
Dependencies
none
Comment
The utility of this exception class would be to add context to unanticipated exceptions and could be converted into custom exceptions that add suggestions on how to resolve the error.  Each time we investigate a certain type of exception, we are learning how to fix errors of that type.  That learned knowledge should be recorded in the form of a custom exception class to give the next curator a jump start on dealing with that issue the next time it arises.

ISSUE OWNER SECTION
Assumptions

List of assumptions that the code will not explicitly address/check
E.g. We will assume input is correct (explaining why there is no validation)

Requirements

[ ] 1. List of numbered conditions to be met for the feature
[ ] 2. E.g. Every column/row must display a value, i.e. cannot be empty
[ ] 3. Numbers for reference & checkboxes for progress tracking

Limitations

A list of things this work will specifically not do
E.g. This feature will only handle the most frequent use case X

Affected Components
A tentative list of anticipated repository items that will be changed, labeled
with "add", "delete", or "change".  One item per line.  (Mostly, this will be a
list of files.)

change: File path or DB table ...
add: Environment variable or server setting
delete: External executable or cron job

DESIGN
Interface Change description
Describe changes to usage. E.g. GUI/command-line changes
Code Change Description
Describe code changes planned for the feature. (Pseudocode encouraged)
Tests

[ ] 1. A description of at least one test for each requirement above.
[ ] 2. E.g. Test for req 2 that there's an exception when display value is ''
[ ] 3. Numbers for reference & checkboxes for progress tracking

Created a FileLoadError exception class.

This is essentially done (though not utilized everywhere yet).  I handled this by adding a method to InfileError called set_formatted_messages, which changes self.message.  I also added __str__() which returns self.message.  The exception thus isn't repackaged.  Its content is just changed to include the file location details.  And as for multiple row numbers in those group exceptions, I created exception classes for summarizing exceptions that take lists of exceptions and organize the data using dicts.


bug #1299: Zoom Button Crash in 6.1.0

Fix for https://github.com/osmdroid/osmdroid/issues/1299
fix StackOverflow, because when zooming in with zoom buttons,
osm tries to keep the map centered to the current user location.
See: org.osmdroid.views.overlay.mylocation.MyLocationNewOverlay.onSnapToItem

It's finally settled. Thank you.

Just wanted to reiterate, that my app is now running 3 months on the corresponding snapshot and I have no issues at this end!

Tested with the new "Snappable" dedicated demo (#1371): no more stack overflow, and a behavior that looks reasonable.
@spyhunter99 Adding the correct demo behavior to @InI4's very positive feedback, I see no reason to delay the merging of this PR as it fixes #1299. And it looks like it could be time for another version of osmdroid.

Thanks for fixing this problem.


Invalid ARN when deploying stack with SAM

I am using SAM with a IAM role that only has access to a single stack, so my IAM policy refers to a specific stack name:
"Action": [
  "cloudformation:*"
],
"Resource": [
  "arn:aws:cloudformation:ap-southeast-2:691272906385:stack/<stack-name>/*"
]

However, when I run the deploy command I get the following error:
Failed to create the changeset: Waiter ChangeSetCreateComplete failed:
Waiter encountered a terminal failure state Status: FAILED.
Reason: User: <My Role> is not authorized to perform: cloudformation:CreateChangeSet on resource: arn:aws:cloudformation:ap-southeast-2:aws:transform/Serverless-2016-10-31

When I go into the Console to try and add another policy to allow this action, the console tells me that arn:aws:cloudformation:ap-southeast-2:aws:transform/Serverless-2016-10-31 is not a valid ARN.
Note: Changing the resource in my policy to * gets things to deploy correctly.

Same problem here, and this is the only hit on Google for "arn:aws:cloudformation:ap-southeast-2:aws:transform/Serverless-2016-10-31".

I too have this problem. Any update on this please @sanathkr

+1
I have the same issue, the IAM user account has permissions for:
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "VisualEditor0",
            "Effect": "Allow",
            "Action": [
                "cloudformation:ListExports",
                "cloudformation:ListStacks",
                "cloudformation:ListImports",
                "cloudformation:DescribeStackResources",
                "cloudformation:DescribeStackResource",
                "cloudformation:GetTemplateSummary",
                "cloudformation:DescribeStacks",
                "cloudformation:EstimateTemplateCost",
                "cloudformation:PreviewStackUpdate",
                "cloudformation:GetStackPolicy",
                "cloudformation:DescribeStackEvents",
                "cloudformation:GetTemplate",
                "cloudformation:DescribeAccountLimits",
                "cloudformation:DescribeChangeSet",
                "cloudformation:ListChangeSets",
                "cloudformation:ListStackResources"
            ],
            "Resource": "*"
        },
        {
            "Sid": "VisualEditor1",
            "Effect": "Allow",
            "Action": "cloudformation:*",
            "Resource": [
                "arn:aws:cloudformation:*:370XXXXX4961:stack/Preform-Test/*",
                "arn:aws:cloudformation:ap-southeast-2:aws:stack/transform/Serverless-2016-10-31"
            ]
        }
    ]
}

I am using VS2017 AWS Tools to publish and I want the account limited to just the "Preform-Test" named Stack. The console output is:
... Progress: 100%
Found existing stack: True
CloudFormation change set created
... Waiting for change set to be reviewed
Failed to create CloudFormation change set: User: arn:aws:iam::370XXXXX4961:user/preform-developer is not authorized to perform: cloudformation:CreateChangeSet on resource: arn:aws:cloudformation:ap-southeast-2:aws:transform/Serverless-2016-10-31

I'm still encountering this issue today. I'm using AWS CodeBuild to run aws cloudformation deploy command (on CodeBuild Docker image aws/codebuild/python:3.6.5). The IAM Role assumed by the CodeBuild task has policy statement like this
Effect: Allow
Action:
- cloudformation:*
Resource: !Sub arn:${AWS::Partition}:cloudformation:${AWS::Region}:${AWS::AccountId}:stack/my-stack*

When running the CodeBuild task, I'm getting this error
Uploading to 3bdb7fb40bfb51f7e24dfb2f6aa1d90d 7731 / 7731.0 (100.00%)
Uploading to 1ea9141ef6ee2b237eb46ed9856c8161 3061 / 3061.0 (100.00%)
Successfully packaged artifacts and wrote output template to file packaged.yaml.
Execute the following command to deploy the packaged template
aws cloudformation deploy --template-file /codebuild/output/src473921671/src/bitbucket.org/<Some Organization>/<Some Project>/packaged.yaml --stack-name <YOUR STACK NAME>
 Waiting for changeset to be created..
 Failed to create the changeset: Waiter ChangeSetCreateComplete failed: Waiter encountered a terminal failure state Status: FAILED. Reason: User: arn:aws:sts::<AWS Account ID>:assumed-role/<My IAM Role>AWSCodeBuild-ee9b482a-db1d-40c0-851b-bf39727d37cd is not authorized to perform: cloudformation:CreateChangeSet on resource: arn:aws:cloudformation:ap-southeast-1:aws:transform/Serverless-2016-10-31

Me too!

Also experienced this, but there's a new link in that window now that says "List ARNs manually", which helps.

Same issue and @dinvlad 's solution works


Deadman alert not showing hostname details ({{index .tags "tagname"}} not working)

Hi,
I’m using the below tick script to generate deadman alert.
var data = stream
|from()
.database(‘telegraf’)
.retentionPolicy(‘autogen’)
.measurement(‘system’)
.groupBy(‘host’)
data
|deadman(0.0, 1m)
.id(’{{ index .Tags “host”}}’)
.message(‘Server {{ .ID }} is OFFLINE’)
.log(’/var/log/deadman.log’)
.stateChangesOnly(5m)
The issue am facing here is am not getting host information from the alert. It trigger the alert like below.
“id”: “”,
“message”: “Server is OFFLINE”,
I made ID as " .id(’{{ index .Tags }}’)", and noe it changed like
“id”: “map[]”,
“message”: “Server map[] is OFFLINE”,
I don’t understand what went wrong here. Can anyone please help me to resolve this issue?
I'm using kapacitor version 1.5.2
I found a similar issue https://github.com/influxdata/chronograf/issues/3542 but it's still open.

Hi,
Try the alert as:
var data = stream
|from()
.database(‘telegraf’)
.retentionPolicy(‘autogen’)
.measurement(‘system’)
.groupBy(‘host’)
|deadman(0.0, 1m)
.id(’{{ index .Tags “host”}}’)
.message(‘Server {{ .ID }} is OFFLINE’)
.log(’/var/log/deadman.log’)
.stateChangesOnly(5m)
To do it like in your tick, you should add the keep node, like this:
var data = stream
|from()
.database(‘telegraf’)
.retentionPolicy(‘autogen’)
.measurement(‘system’)
.groupBy(‘host’)
.keep()
data
|deadman(0.0, 1m)
.id(’{{ index .Tags “host”}}’)
.message(‘Server {{ .ID }} is OFFLINE’)
.log(’/var/log/deadman.log’)
.stateChangesOnly(5m)
In order to have all the tags on the data stream!
Hope this helps!
Regards

@arturo-mondelo Thanks for the reply!
I have tried as you mentioned but the keep() node failing with below error.
invalid TICKscript: line 7 char 10: no method or property "keep" on *pipeline.FromNode
Any suggestions?

Yeah, true...
You should do it like my first thought:
var data = stream
|from()
.database(‘telegraf’)
.retentionPolicy(‘autogen’)
.measurement(‘system’)
.groupBy(‘host’)
|deadman(0.0, 1m)
.id(’{{ index .Tags “host”}}’)
.message(‘Server {{ .ID }} is OFFLINE’)
.log(’/var/log/deadman.log’)
.stateChangesOnly(5m)
This should solve your issue. Can you try it?

I already tried this method and I again tried now getting below resposne.
"id":"","message":"Server  is OFFLINE"
I think it's a bug with kapacitor.
Thanks for the reply and suggestion.

And did you removing that id and with the tag on the message like:
var data = stream
|from()
.database(‘telegraf’)
.retentionPolicy(‘autogen’)
.measurement(‘system’)
.groupBy(‘host’)
|deadman(0.0, 1m)
.message(‘Server {{ index .Tags "host" }} is OFFLINE’)
.log(’/var/log/deadman.log’)
.stateChangesOnly(5m)

Tried that too.. getting below response.
{"id":"nil:from1 for task 'Test'","message":"Server  is OFFLINE"}      //Test is the tickscript name

The documentation states the following:

The id and message alert properties can be configured globally via the ‘deadman’ configuration section.

I don't think you can do it like you have it. If you want to do it like you have it, you have to implement the deadman yourself.

My issue falls into the same category I believe. When using groupBy() the deadman will only trigger IF the variables no longer post to influx (which is half of what is desired). It doesn't trigger if the values equal the threshold or less in the deadman arguments. Thus far the tickscript does provide specific alerts for the group variables provided for when metrics aren't being pushed to influxDB. I just need it to work based on the threshold value as well.
Note: I did try the example from the link above by @fhriley which produced identical results. Perhaps more variation is required but that isn't specified anywhere I can see.
`var db = 'streamDB'
var rp = 'rp'
var measurement = 'ops_kafkajmx_metrics'
var groupBy = ['host', 'beanTopic']
var whereFilter = lambda: ("beanTopic" == 'test_test') AND ("host" == '<IP_ADDRESS>' OR "host" == '<IP_ADDRESS>' OR "host" == '<IP_ADDRESS>')
var period = 30s
var name = 'Test Alert'
var idVar = name + '-{{.Group}}'
var message = '{{.ID}} {{.Level}} @ {{.Time}} for {{.Tags}} {{.Fields}} '
var idTag = 'alertID'
var levelTag = 'level'
var messageField = 'message'
var durationField = 'duration'
var outputDB = 'chronograf'
var outputRP = 'autogen'
var outputMeasurement = 'alerts'
var triggerType = 'deadman'
var details = '{{.ID}} {{.Level}} @ {{.Time}} for {{.Tags}} {{.Fields}} '
var threshold = 0.0
var data = stream
|from()
.database(db)
.retentionPolicy(rp)
.measurement(measurement)
.groupBy(groupBy)
.where(whereFilter)
var trigger = data
|deadman(threshold, period)
.message(message)
.id(idVar)
.idTag(idTag)
.levelTag(levelTag)
.messageField(messageField)
.durationField(durationField)
.details(details)
.email()
<EMAIL_ADDRESS>.slack()
.channel('#channel')
trigger
|eval(lambda: "emitted")
.as('value')
.keep('value', messageField, durationField)
|eval(lambda: float("value"))
.as('value')
.keep()
|influxDBOut()
.create()
.database(outputDB)
.retentionPolicy(outputRP)
.measurement(outputMeasurement)
.tag('alertName', name)
.tag('triggerType', triggerType)
trigger
|httpOut('output')
`

I am facing this issue too.

Same issue. Happens with stream tasks only.


Toggle() function in  throws exception

I just saw that the toggle() function of  is throwing an error on every second click.
Console output is:

Action execution failed: AMP-SELECTOR toggle: Cannot read property 'removeAttribute' of undefined

This also happens on https://ampbyexample.com/components/amp-selector/. On that page go to "Actions" sections and click on "toggle(index=1)" multiple times. Every second click throws the exception in console.

Any other info needed from me? Just let me know :-)

@nainar who worked on https://github.com/ampproject/amphtml/pull/13553: is this the expected behaviour? It seems it launches the error when nothing is selected


Upgrade Error Prone 2.33.0 -> 2.34.0

This PR contains the following updates:

Package
Type
Update
Change

Error Prone (source)

minor
2.33.0 -> 2.34.0

Error Prone (source)
compile
minor
2.33.0 -> 2.34.0

Release Notes

google/error-prone (Error Prone)
v2.34.0: Error Prone 2.34.0
Compare Source
Changes:

Passing the javac flag --should-stop=ifError=FLOW is now required when running Error Prone (#4595)
The MemberName check was renamed to IdentifierName

New checks:

FutureTransformAsync: The usage of transformAsync is not necessary when all the return values of the transformation function are immediate futures.
MisformattedTestData: Reformats Java source code inside Error Prone test cases.
MisleadingEscapedSpace: Using \s anywhere except at the end of a line in a text block is potentially misleading.
ThrowIfUncheckedKnownUnchecked: throwIfUnchecked(knownUnchecked) is equivalent to throw knownUnchecked.

Closed issues: #4595, #4598, #4620
Full changelog: https://github.com/google/error-prone/compare/v2.33.0...v2.34.0

[ ] If you want to rebase/retry this PR, check this box

Suggested commit message:
Upgrade Error Prone 2.33.0 -> 2.34.0

See:
- https://github.com/google/error-prone/releases/tag/v2.34.0
- https://github.com/google/error-prone/compare/v2.33.0...v2.34.0

Edited/Blocked Notification
Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.
You can manually request rebase by checking the rebase/retry box above.
⚠ Warning: custom changes will be lost.


(PDB-2433) Add deprecation warnings for old command versions

We need to support old command versions in the case where users have
enqueued commands from before the upgrade. These warnings are targeted
more for users submitting old commands directly or mistakenly via an old
terminus

Refer to this link for build results (access rights to CI server needed):
http://jenkins-enterprise.delivery.puppetlabs.net/job/enterprise_puppetdb_init-multijob_githubpr-stable/133/
Test FAILed.

Refer to this link for build results (access rights to CI server needed):
http://jenkins-enterprise.delivery.puppetlabs.net/job/enterprise_puppetdb_init-multijob_githubpr-stable/134/
Test FAILed.

Test failed due to the currently pending release, I'll rerun once the release is out.

@puppetlabs-jenkins retest this please

Refer to this link for build results (access rights to CI server needed):
http://jenkins-enterprise.delivery.puppetlabs.net/job/enterprise_puppetdb_init-multijob_githubpr-stable/136/
Test FAILed.

@senior might want to rebase this first.

verified this works, +1 except for the superfluous destructuring

Refer to this link for build results (access rights to CI server needed):
http://jenkins-enterprise.delivery.puppetlabs.net/job/enterprise_puppetdb_init-multijob_githubpr-stable/138/
Test PASSed.

@mullr fixed

ok, +1 to merge as soon as it builds

Refer to this link for build results (access rights to CI server needed):
http://jenkins-enterprise.delivery.puppetlabs.net/job/enterprise_puppetdb_init-multijob_githubpr-stable/139/
Test PASSed.


import samples from agate

this is working now --- may have bugs but they should get their own issues!


Missing aria-current

We should mark the current page in the nav using aria-current.
I couldn't find an issue that already tracks this.

Point of clarification: we currently use aria-current in the breadcrumb nav but I wonder if we should apply it to the sidebar (and top bar) nav too.

SGTM.  Assuming that the top nav only gets aria-current when user is actually on a top-level page right? (not when on any page within that top-level section)

SGTM. Assuming that the top nav only gets aria-current when user is actually on a top-level page right? (not when on any page within that top-level section)

Yes that's what I had in mind, plus doing some research into what's the best-practice way to indicate the path parts to assistive tech the same way that we apply an underline to the area in the top nav that the user is in and a notch to the section in the sidebar.


diff-so-fancy

maybe you love this one: https://github.com/so-fancy/diff-so-fancy and use that in this project

yea including this would be huge, i think they'd work great together


TIme to make this available

thank you! is it possible to fix the formatting? atm the github diff shows the entire file changed so we can't really see what changed

My vscode was set to 4 space indents; sorry for that.  Fixed the indents and ready for review again.

perfect ty


"HÂRȘOVA" is listed in the drop-down menu

Description:
When user writes "HÂRȘOVA" the location appears in the drop-down menu next to the comune and the county witch is a part according to the law
Precondition:
The website is up an running.

Step 1
Write in the search bar "Hârșova"

Expected results
The location appears in the drop-down menu as "Oras HÂRȘOVA, CONSTANȚA"


nsc-events-nextjs_10_555_eventpagedetailsdocfield

Updated moreDetails and activityDatabase.ts to reflect these changes
Resolves issue 555
Add new document field to 'More Details' dialog, make changes in component 'ViewMoreDetailsDialog' to include this new field as well as update in activityDatabase.
Because I have added this functionality, I needed to update the ‘ActivityDatabase’ to include a type definition for ‘document’. I did this within the activityDatabase.ts file.

@RMaffei Please convert this pull request from draft to Ready for review when you are ready

Is this ready for review?

I believe this is working

Circling back in the event that this PR still needs review. I agree with Alzavio that we should leave out the undefined portion if there is nothing there. It can always be added in at a later date if needed.

I created an event with a document included and it still showed the document field as "undefined". It also shows the document field twice for some reason.

Although, I'm not sure if documents are actually being stored upon event creation since the "Event Document" field does not show when editing events.

Student is not participating this term. I am closing this so it can be completed by someone else


Experiment with querying mlmd data

HuggingFace makes tags available for searching on their interface. Whilst we might deserialize a complex structure (say, with JSON, as per internal discussions) it might be best to experiment with nested artifacts to accomplish this functionality with simpler processing (e.g. handling only the initial query to pass it to the proper DB entry).

We can just use a string with tags separated by ,, and then use a query like tags LIKE '%foo%'.

I have experimented with lists as comma-separated strings, and holding references to nested artifacts with their keys. The approach I came up with is to use suffixes on the property keys to indicate what the value being held actually is:

.key indicates the property is a key to another artifact
.key_list indicates it is a (comma-separated) list of such keys
.list indicates it is a comma-separated string of scalars

This takes away some flexibility as we need to know the suffix of a given property in advance, either by checking all available properties so we can match a non-suffixed entry to its actual key, or by trying out different combinations util one succeeds. It also takes away some flexibility as we can't import values that have such suffixes in them as it'd cause problems parsing the data incorrectly. I haven't experimented further but one possible workaround would be to prefix the data itself, then parse after accessing it, but this comes with its own problems.
Experiments were done at: https://github.com/isinyaaa/hf-mlmd-mapping-poc


Uncaught TypeError: Cannot read property '0' of undefined

Atom Version: 1.0.11
System: Linux Mint
Thrown From: terminal-plus package, v0.1.3
Stack Trace
Uncaught TypeError: Cannot read property '0' of undefined
At /home/alex/.atom/packages/terminal-plus/node_modules/term.js/src/term.js:1307

TypeError: Cannot read property '0' of undefined
  at Terminal.refresh (/home/alex/.atom/packages/terminal-plus/node_modules/term.js/src/term.js:1307:18)
  at Terminal.showCursor (/home/alex/.atom/packages/terminal-plus/node_modules/term.js/src/term.js:1433:10)
  at Terminal.focus (/home/alex/.atom/packages/terminal-plus/node_modules/term.js/src/term.js:474:8)
  at TerminalPlusView.module.exports.TerminalPlusView.focusTerminal (/home/alex/.atom/packages/terminal-plus/lib/view.coffee:295:15)
  at /home/alex/.atom/packages/terminal-plus/lib/view.coffee:188:10
  at HTMLDivElement.<anonymous> (/home/alex/.atom/packages/terminal-plus/lib/view.coffee:325:7)
  at HTMLDivElement.fn (/usr/share/atom/resources/app.asar/node_modules/jquery/dist/jquery.js:4855:19)
  at HTMLDivElement.jQuery.event.dispatch (/usr/share/atom/resources/app.asar/node_modules/jquery/dist/jquery.js:4435:9)
  at HTMLDivElement.elemData.handle (/usr/share/atom/resources/app.asar/node_modules/jquery/dist/jquery.js:4121:28)

Commands
     -7:41.4.0 core:backspace (atom-text-editor.editor.is-focused)
     -7:35.3.0 core:save (atom-text-editor.editor.is-focused)
     -4:51.7.0 core:backspace (atom-text-editor.editor.is-focused)
     -2:59.4.0 core:save (atom-text-editor.editor.is-focused)
     -1:44.3.0 core:copy (atom-text-editor.editor.is-focused)
     -1:33.5.0 core:paste (atom-text-editor.editor.is-focused)
     -1:16.8.0 core:copy (atom-text-editor.editor.is-focused)
     -1:12.7.0 editor:newline (atom-text-editor.editor.is-focused)
     -1:12.4.0 core:paste (atom-text-editor.editor.is-focused)
  2x -0:57.5.0 core:save (atom-text-editor.editor.is-focused)

Config
{
  "core": {},
  "terminal-plus": {
    "core": {},
    "style": {}
  }
}

Installed Packages
# User
react, v0.12.6
react-snippets, v0.2.0
terminal-plus, v0.1.3

# Dev
No dev packages

@alexnofoget Sorry, I haven't had much chance to test this on other platforms yet. Thank you for taking the time to report this, I'll try and see what could be wrong.

Fix should be fixed by commit c4ee1b8fc64f8df0eeae599f34bca27d53414c14.

I still getting this error
Atom Version: 1.0.11
System: linux 4.1.6-1-ARCH
Thrown From: terminal-plus package, v0.2.0
Stack Trace
Uncaught TypeError: Cannot read property '0' of undefined
At /home/daniel/.atom/packages/terminal-plus/node_modules/term.js/src/term.js:1307

TypeError: Cannot read property '0' of undefined
  at Terminal.refresh (/home/daniel/.atom/packages/terminal-plus/node_modules/term.js/src/term.js:1307:18)
  at Terminal.write (/home/daniel/.atom/packages/terminal-plus/node_modules/term.js/src/term.js:2578:8)
  at /home/daniel/.atom/packages/terminal-plus/lib/view.coffee:109:17
  at Task.module.exports.Emitter.emit (/usr/share/atom/resources/app.asar/node_modules/emissary/lib/emitter.js:118:15)
  at ChildProcess.<anonymous> (/usr/share/atom/resources/app.asar/src/task.js:79:31)
  at emitTwo (events.js:87:13)
  at ChildProcess.emit (events.js:169:7)
  at handleMessage (child_process.js:306:10)
  at Pipe.channel.onread (child_process.js:334:11)

Commands
  2x -3:45.1.0 vim-mode:move-left (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -3:44.6.0 vim-mode:reset-normal-mode (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -3:44.1.0 vim-mode:change (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
     -3:44.1.0 vim-mode:select-inside-word (atom-text-editor.editor.vim-mode.is-focused.operator-pending-mode)
     -3:43.4.0 vim-mode:activate-normal-mode (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
 12x -3:43.2.0 vim-mode:move-right (atom-text-editor.editor.vim-mode.is-focused.normal-mode)
     -3:41.7.0 vim-mode:change (atom-text-editor.editor.vim-mode.is-focused.normal-mode)
     -3:41.7.0 vim-mode:select-inside-word (atom-text-editor.editor.vim-mode.is-focused.operator-pending-mode)
     -3:40.8.0 core:backspace (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
     -3:40.7.0 vim-mode:activate-normal-mode (atom-text-editor.editor.vim-mode.is-focused.insert-mode)
     -3:40.1.0 vim-mode:reverse-search (atom-text-editor.editor.vim-mode.is-focused.normal-mode)
     -3:40.1.0 blur (atom-text-editor.editor.vim-mode.is-focused.normal-mode)
     -3:39.7.0 core:confirm (atom-text-editor.editor.mini.is-focused)
  2x -3:39.7.0 blur (atom-text-editor.editor.mini.is-focused)
     -3:38.2.0 core:save (atom-text-editor.editor.vim-mode.normal-mode.is-focused)
 72x -3:36.8.0 blur (atom-text-editor.editor.vim-mode.normal-mode.is-focused)

Config
{
  "core": {
    "themes": [
      "one-dark-ui",
      "atom-dark-syntax"
    ],
    "autoHideMenuBar": true,
    "projectHome": "/home/daniel/workspace",
    "disabledPackages": [
      "atom-pair"
    ]
  },
  "terminal-plus": {
    "core": {},
    "style": {}
  }
}

Installed Packages
# User
language-haml, v0.21.0
motepair, v0.20.0
terminal-plus, v0.2.0
vim-mode, v0.60.0
vim-mode-visual-block, v0.2.13
vim-surround, v0.8.0

# Dev
No dev packages

@danieltdt Thanks for the report. Could you tell me what command you were using when this happened? I need to look into it so I can try to reproduce the error and debug it.

I was running bundle exec rails server. I clicked on "Maximize" to check some requests then clicked on "Hide". After that, the error appears.
I was with other two terminals opened too, but nothing were running.

@danieltdt Thanks! I'll look into this and get back to you.

@danieltdt  New update. Please let me know if your issue was fixed.

Nice! I'll check this out. Thanks!

Closing this issue because it has been two days since any reported issues.


fix show devices

before，when i create a timeseries with three nodes an then execute show devices

after，same operation

Good job, Yanhong!
Consider add an UT or IT?

Good job, Yanhong!
Consider add an UT or IT?

Good job, Yanhong!
Consider add an UT or IT?

OK, I'll add it

Good job, Yanhong!
Consider add an UT or IT?

OK, I'll add it

ping

ping

How this may affect data queries need to be further investigated. For example, if this change results in root.group1.* being replaced by root.group1 in a data query, the result will be very different.
I suggest a modification in show devices rather than here.

How this may affect data queries need to be further investigated. For example, if this change results in root.group1.* being replaced by root.group1 in a data query, the result will be very different.
I suggest a modification in show devices rather than here.

How this may affect data queries need to be further investigated. For example, if this change results in root.group1.* being replaced by root.group1 in a data query, the result will be very different.
I suggest a modification in show devices rather than here.

Thanks for your advice,but this bug occurs before getting devices according to the path, so there is no way to change it when getting devices，meanwhile, I looked at it and "*" is not used.

How this may affect data queries need to be further investigated. For example, if this change results in root.group1.* being replaced by root.group1 in a data query, the result will be very different.
I suggest a modification in show devices rather than here.

Thanks for your advice,but this bug occurs before getting devices according to the path, so there is no way to change it when getting devices，meanwhile, I looked at it and "*" is not used.

I do not think you get my point. I was saying adding "." to the paths is not necessarily a bug, as it may be needed in data queries. You should either convince me by showing that this change does not affect related data queries or allow show device and other queries to ignore the last ".".

I do not think you get my point. I was saying adding "." to the paths is not necessarily a bug, as it may be needed in data queries. You should either convince me by showing that this change does not affect related data queries or allow show device and other queries to ignore the last ".".

For example, assuming we have 3 SGs: root.sg1, root.sg2, and root.sg3.
And now we execute SELECT * FROM root, the removed code will convert this SQL into "SELECT root.sg1., root.sg2., root.sg3.*", while after the removal, the result may be "SELECT root.sg1, root.sg2, root.s3", which is apparently a different one.

For example, assuming we have 3 SGs: root.sg1, root.sg2, and root.sg3.
And now we execute SELECT * FROM root, the removed code will convert this SQL into "SELECT root.sg1., root.sg2., root.sg3.*", while after the removal, the result may be "SELECT root.sg1, root.sg2, root.s3", which is apparently a different one.

I do not think you get my point. I was saying adding .* to the paths is not necessarily a bug, as it may be needed in data queries. You should either convince me by showing that this change does not affect related data queries or allow show device and other queries to ignore the last .*.

Thanks for your guidence, I got it, I'll make changes in show devices to ignore the last one*

I do not think you get my point. I was saying adding .* to the paths is not necessarily a bug, as it may be needed in data queries. You should either convince me by showing that this change does not affect related data queries or allow show device and other queries to ignore the last .*.

Thanks for your guidence, I got it, I'll make changes in show devices to ignore the last one*

ignore the last .*.

Maybe i can fix it in show devices by ignoring the last .., but there is another question
before ignoring the last .., when i execute show devices root.a.b.* ,the result is  root.a.b.c,
after ignoring the last .*., execute the same sql ,it will match root.a.b and root.a.b.c,
result is inconsistent.

ignore the last .*.

Maybe i can fix it in show devices by ignoring the last .., but there is another question
before ignoring the last .., when i execute show devices root.a.b.* ,the result is  root.a.b.c,
after ignoring the last .*., execute the same sql ,it will match root.a.b and root.a.b.c,
result is inconsistent.

I do not think you get my point. I was saying adding .* to the paths is not necessarily a bug, as it may be needed in data queries. You should either convince me by showing that this change does not affect related data queries or allow show device and other queries to ignore the last .*.

Maybe i can fix it in show devices by ignoring the last .., but there is another question
before ignoring the last .., when i execute show devices root.a.b.* ,the result is  root.a.b.c,
after ignoring the last .*., execute the same sql ,it will match root.a.b and root.a.b.c,
result is inconsistent.

I do not think you get my point. I was saying adding .* to the paths is not necessarily a bug, as it may be needed in data queries. You should either convince me by showing that this change does not affect related data queries or allow show device and other queries to ignore the last .*.

Maybe i can fix it in show devices by ignoring the last .., but there is another question
before ignoring the last .., when i execute show devices root.a.b.* ,the result is  root.a.b.c,
after ignoring the last .*., execute the same sql ,it will match root.a.b and root.a.b.c,
result is inconsistent.

I do not think you get my point. I was saying adding .* to the paths is not necessarily a bug, as it may be needed in data queries. You should either convince me by showing that this change does not affect related data queries or allow show device and other queries to ignore the last .*.

Maybe i can fix it in show devices by ignoring the last .., but there is another question before ignoring the last .., when i execute show devices root.a.b.* ,the result is root.a.b.c,
after ignoring the last .*., execute the same sql ,it will match root.a.b and root.a.b.c,
result is inconsistent.

How is it possible? Only one of root.a.b and root.a.b.c can be a device if you fix it correctly.

I do not think you get my point. I was saying adding .* to the paths is not necessarily a bug, as it may be needed in data queries. You should either convince me by showing that this change does not affect related data queries or allow show device and other queries to ignore the last .*.

Maybe i can fix it in show devices by ignoring the last .., but there is another question before ignoring the last .., when i execute show devices root.a.b.* ,the result is root.a.b.c,
after ignoring the last .*., execute the same sql ,it will match root.a.b and root.a.b.c,
result is inconsistent.

How is it possible? Only one of root.a.b and root.a.b.c can be a device if you fix it correctly.


Collect custody location data from prisoner-offender-search

What does this pull request do?
Gets a service user's custody location data from prisoner-offender-search API by their NOMS id which is retrieved from community-api by their CRN number.  The results are stored in referral location and track events are sent indicating any matches/errors.
What is the intent behind these changes?
To compare custody location data entered by probation practitioners against the data stored in Nomis and analyse using Appinsights.

@ministryofjustice/hmpps-interventions-dev Could someone else also review this pull request, please? I was mainly focused on semantics, not code.


NIFI-12529: Enable/Disable Controller Service

NIFI-12529:

Enable/Disable Controller Services.
Resetting state when destroying Controller Service listings, General, Registry Clients, and Reporting Tasks.

will review

reviewing

Thanks for the review @rfellows! I've pushed a new commit addressing the items you outlined.


Encoder Design Changes

UtfXx.ConvertFromUtfYy => UtfYy.ToUtfXx
UtfXx.ComputeEncodedBytesFromUtfYy => UtfYy.ToUtfXxLength
Added UtfXx.FromUtfYy variants that route directly to corresponding UtfYy.ToUtfXx version.
Filled out the public method header comment blocks on the encoders.

NOTE: None of the implementations changed. They were just shifted around in the 3 encoder implementation files. All other changes are just patching to the new APIs.
@ahsonkhan @KrzysztofCwalina

looks good to me.


⚠ Bofrost.es has degraded performance

In 43ec21b, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 1508 ms

Resolved: Bofrost.es performance has improved in c5efc36 after 13 minutes.


Commands teams ls and teams rm not recognized

When trying to run now teams ls or now teams rm, the cli shows an error of not valid command:
▲ ~ now teams ls
> Error! Please specify a valid subcommand: ls | add | rm | set-default

  𝚫 now teams <add | ls | rm | invite>

  Options:

...

▲ ~ now teams rm
> Error! Please specify a valid subcommand: ls | add | rm | set-default

  𝚫 now teams <add | ls | rm | invite>

...

I'm seeing this too!

Same problem with now teams rm here! I've created a fake team (for testing how it works) and now I can't delete it.

I'm also having this issue

Please run now teams -h in the latest Now CLI. We fixed this!


Update scala-library to 2.12.15

Updates org.scala-lang:scala-library from 2.12.9 to 2.12.15.
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 = "org.scala-lang", artifactId = "scala-library" } ]

labels: library-update, semver-patch

Superseded by #100.


cigien: Blacklist productscrack.com

cigien requests the blacklist of the website productscrack\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

productscrack\.com has been seen in 5 true positives, 0 false positives, and 0 NAAs.

productscrack\.com has been seen in 5 true positives, 0 false positives, and 0 NAAs.

Approved by tripleee in Charcoal HQ

Approved by tripleee in Charcoal HQ


Support for compiling and linking with OpenMP in CMake

I exploring using the CMake scripts instead of the Makefiles. I noticed that in the CMake files the variable USE_OPENMP is used. Is it enough to set USE_OPENMP=1, or is the feature not fully supported yet in CMake builds?

Yes -DUSE_OPENMP=1 is sufficient and should be fully supported.

Thank you!


[ADDITION] Zip Co

Category
Fintech
Software to be added
Zip Co
Supporting Material
URL: https://www.linkedin.com/company/zip-co-limited/
Description: Buy Now, Pay Later (BNPL) provider available at over 90,000 locations
Size:
HQ: Sydney
LinkedIn: https://www.linkedin.com/company/zip-co-limited/
See Record on Airtable:
https://airtable.com/app0Ox7pXdrBUIn23/tblYbuZoILuVA0X3L/rectLe8jpQQ6v2Z5Y

Enough info in Airtable, adding to list


Mobile

I think there might be intrest in a mobile version since the official one is taking too long, and it would be great for skilling

Duplicate of #2599


it seems that ITT interface only provides single buy price and single sell price

is supporting multiple orders simultaneously hard to implement in contract?
is there good reason for supporting only singe price than multiple order prices?

A trader can place any number of orders at different prices, but only one order per price.
This is a constraint of way the orders are stored in the FIFO's and the mapping to amounts. It's most efficient and logical to handle a single packet of data to make/take/cancel.
Keys to the amounts mapping are a sha3 of the traders address and order price as this will be the same every time for the same price, then there is no way to distinguish multiple orders of a single trader at a single price.
Changing an order amount at a price will put the order at the back of the FIFO else there is a risk that a trader at the front of the queue might keep topping up the order amount and unfairly starve all other orders in the queue.

OK, now I can unerdtand what you mean after reading (very hard) ITT contract code :) Thanks

Yes, it's shamefully complex logic but it does yield huge efficiency and
usability advantages over atomic order trades.
ant.
Thanks for looking.  Feel free to ask anything about the code you want.
On 7 December 2016 at 17:42, bezalel<EMAIL_ADDRESS>wrote:

Closed #4 https://github.com/o0ragman0o/ITT/issues/4.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/o0ragman0o/ITT/issues/4#event-884832903, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AMMqOnFYBJLYyMwX6hEK3uYcqxhj6o8_ks5rFmNKgaJpZM4LFJDJ
.

No shame on your code! It's succinct and beautiful contract code :)


mat-toolbar overflow items

Bug, feature request, or proposal:
More of a question than anything else.
Is it possible to use mat-toolbar in a way where if the screen is resized, the toolbar resizes with it and any toolbar buttons/items that cannot fit on the screen are put in an overflow menu?
Something similar to the following, which is taken from https://material.io/design/components/app-bars-top.html
https://storage.googleapis.com/spec-host-backup/mio-design%2Fassets%2F1KdAErO7UPreCyc_6PJWv78o-0XawHtAt%2Ftopappbars-behavior-nesting.mp4
I have tried the mechanism from https://stackblitz.com/edit/angular-v6xwte?file=src%2Fapp%2Fapp.component.html, however it only works if I know before runtime how many items will be on the toolbar, and decide how many items each media size can display. Instead, can mat-toolbar dynamically add toolbar items to an overflow section/menu while the screen is being resizing, or do I have to listen to the resize event, and calculate how many items can the toolbar display based on the current client width and the width of each toolbar item? Basically dividing the client width by the toolbar item width, and using the result as the total number of items that can fit the screen, with the rest being put in an overflow menu.
Thanks

There's nothing built-in that does this. The mat-toolbar isn't much more than a colored div.

such a feature would be great: is there anything planned to implement such a feature?
does anyone know existing 3rd party components that can do this?

@IIFE did you find any solution - maybe 3rd party or open source lib?


How to suppress new OSSIndex issues?

Neither <cve>sonatype-2007-0004</cve> nor <vulnerabilityName>sonatype-2007-0004</vulnerabilityName> appear to work to suppress this issue:

commons-httpclient-3.1.jar<EMAIL_ADDRESS>cpe:2.3:a:apache:commons-httpclient:3.1:*:*:*:*:*:*:*, cpe:2.3:a:apache:httpclient:3.1:*:*:*:*:*:*:*) : [sonatype-2007-0004] CWE-770: Allocation of Resources Without Limits or Throttling

The <vulnerabilityName> matches the whole description, so the easiest way is probably:
<vulnerabilityName regex="true">\[sonatype-2007-0004\].*</vulnerabilityName>

Try reading the following issue. As per OSSIndex, all bugs from last week should be resolved.
#4535
You could try clearing the cache.

@ramonaEs there is no bug here, it was just a question.

@OrangeDog yes - using the vulnerability name is how you would suppress the findings from the OSS Index.


Decrease gamma for SAC on Swimmer-v4

some experiments indicate that gamma=0.999 is better for swimmer, in agreement with https://arxiv.org/pdf/2208.07587 Fig. 4

Description

I've simply decreased gamma for SAC on Swimmer, motivated by experiments.
Motivation and Context

The current value of gamma fails for Swimmer-v4 on SAC.
Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Documentation (update in the documentation)

Checklist:

[ ] I've read the CONTRIBUTION guide (required)
[ ] I have updated the changelog accordingly (required).
[ ] My change requires a change to the documentation.
[ ] I have updated the tests accordingly (required for a bug fix or a new feature).
[ ] I have updated the documentation accordingly.
[x] I have reformatted the code using make format (required)
[x] I have checked the codestyle using make check-codestyle and make lint (required)
[x] I have ensured make pytest and make type both pass. (required)

Note: we are using a maximum length of 127 characters per line

Experiments ongoing at https://wandb.ai/openrlbenchmark/sbx/reports/SAC-MuJoCo-Swimmer-v4--Vmlldzo3NzM5OTk2

So, the results look good.
I'm doing some run with CrossQ (cc @danielpalen) and it seems that it also now solves the env consistently with gamma=0.999.
cc @osigaud for the results with SAC/TQC/CrossQ (maybe we should update the paper after)

Could you give me the rights to your fork? (I somehow cannot push edits...)


Deleting client while requests are still in flight

Currently someone can write the following code
func getMyObject() -> EventLoopFuture<S3.GetObjectOutput> {
    let s3 = S3(region: .useast1)
    let request = S3.GetObject(bucket: "mybucket", key: "myfile")
    return s3.getObject(request)
}

The function ends up returning an EventLoop from a deleted EventLoopGroup which is obviously a bad thing. When you exit the function the S3 client is deleted along with the HTTPClient it created and its EventLoopGroup
How do we avoid this situation? Previously ie 4.x.x we had a global EventLoopGroup which never got deleted so the EventLoop would still be valid when you exited the function. Now when we create a AWSClient if a HTTPClient is not provided we create a new HTTPClient and EventLoopGroup for each instance and then delete them when the client is deleted thus causing the above issue.
If we stick with what we have we could stick some debug code in to count inflight requests and assert if the client is deleted while there is a request still in flight.
Any other thoughts

We've added a syncShutdown() which deals some of the issue detailed above. People shouldnt be creating a client locally anyway


Remove CI GitHub actions

Remove CI GitHub actions now that everything is in Prow
Signed-off-by: Andy Goldstein<EMAIL_ADDRESS>

/lgtm
/approve


[ERROR!]

Oops! Something went wrong and we couldn't log you in. Please try again.
Unable to exchange token for authorization code.
why?

need api key

I have provided API key

pfff now i have the same problem

Please provide more details, logs, screenshot etc... will help diagnose this.

The PTC servers seem to be on the fritz again.
[ search_thread][      auth_ptc] [   INFO] PTC Login successful
[ search_thread][        pgoapi] [  ERROR] Login failed - unexpected server response!
[ search_thread][        search] [   INFO] Failed to login to Pokemon Go. Trying again in 5 seconds.
[ search_thread][      auth_ptc] [   INFO] PTC login for: obscured
[ search_thread][      auth_ptc] [   INFO] PTC Login successful
[ search_thread][        search] [   INFO] Login to Pokemon Go successful.
[search_thread-0][        models] [   INFO] Upserted 0 pokemon, 7 pokestops, and 3 gyms
[     Thread-60][           app] [   INFO] Changing next location: xxx
[ search_thread][        search] [   INFO] Search loop 0 complete.
[ search_thread][        search] [   INFO] Waiting 5 seconds before beginning new scan.
[ search_thread][        search] [   INFO] Search loop 1 starting
[ search_thread][        search] [   INFO] New location set
[ search_thread][        search] [   INFO] Attempting login to Pokemon Go.
[ search_thread][      auth_ptc] [   INFO] PTC login for: obscured
[ search_thread][      auth_ptc] [  ERROR] No JSON object could be decoded... server seems to be down :(
[ search_thread][        search] [   INFO] Failed to login to Pokemon Go. Trying again in 5 seconds.
[ search_thread][      auth_ptc] [   INFO] PTC login for: obscured
[ search_thread][      auth_ptc] [   INFO] Seems not to be a PTC Session Token... login failed :(
[ search_thread][        search] [   INFO] Failed to login to Pokemon Go. Trying again in 5 seconds.
[ search_thread][      auth_ptc] [   INFO] PTC login for: obscured
[ search_thread][      auth_ptc] [  ERROR] No JSON object could be decoded... server seems to be down :(
[ search_thread][        search] [   INFO] Failed to login to Pokemon Go. Trying again in 5 seconds.
[ search_thread][      auth_ptc] [   INFO] PTC login for: obscured

what is it???????????


no reloaded when edited App.js

Description
Compiled successfully I did npm start, but node is no reaction when I edited src/App.js.
Stopped and restarted server, the change was reflected.
Why don't be reloaded?
Expected behavior
the change is watched by node, and it is reflected.
Actual behavior
node is no reaction.
Environment
Run these commands in the project folder and fill in their results:

npm ls react-scripts (if you haven’t ejected):
<EMAIL_ADDRESS>/Users/kaiji0811/dropbox/htdocs/react-1
└──<EMAIL_ADDRESS>

node -v:
v6.10.0

npm -v:
4.2.0

Then, specify:

Operating system:
Mac OSX Yosemite 10.10.5

Browser and version:
all of them

can you move the file out of dropbox and retest it?

Oh it's successfully done.
Great thank you for your advice.

Yeah, sometimes the folder for dropbox, google drive, .etc causes problems with these tooling. Also, git doesn't play nicely with those folders.

I didn't know that.
I'll be carefull from now on.

Troubleshooting > npm start doesn't detect changes


Chat refactor 4 - generate actions

This is the first pr for doing code gen for our actions. If this gets approved i'll apply this to the rest of the actions

@keybase/react-hackers


Publish 11/28/2022 3:30 PM PT

Learn Build status updates of commit 7ffbe84:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

SECURITY.md
:white_check_mark:Succeeded

sharepoint/sharepoint-ps/sharepoint-online/Get-SPOSiteScriptFromWeb.md
:white_check_mark:Succeeded
View (sharepoint-ps)

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel


Empty folder not deleted

Preflight Checklist

[X] I have installed the latest version of Storage Explorer.
[X] I have checked existing resources, including the troubleshooting guide and the release notes.
[X] I have searched for similar issues.

Storage Explorer Version
1.32.1
Regression From
No response
Architecture
x64
Storage Explorer Build Number
20231114.10
Platform
Windows
OS Version
Windows 10
Bug Description
When deleting all the files within a folder, the folder does not get deleted.
Steps to Reproduce

Launch Azure Storage Explorer
Create a folder
Upload a file in it
Delete the file

Actual Experience
When deleting all the files within a folder, the folder does not get deleted.
Expected Experience
When deleting all the files within a folder, the folder (now empty) is deleted.
Additional Context
No response

@gison93 why are you expecting that the folder will be deleted if empty? Can you share what storage service you are working with?

Blob (non ADLS Gen2)
Blob (ADLS Gen2)
Files

@MRayermannMSFT it's ADLS Gen2. I expected that way because in the past I got this behavior. Actually I tested it on a non ADLS Gen2 and I got the behavior that I expected.
Is there a way to enable the functionality?

@gison93 so one of the things you get when you create an ADLS Gen2 storage account is hierarchical directory structure for your blob containers.

The hierarchical namespace is a key feature that enables Azure Data Lake Storage Gen2 to provide high-performance data access at object storage scale and price. You can use this feature to organize all the objects and files within your storage account into a hierarchy of directories and nested subdirectories. In other words, your Azure Data Lake Storage Gen2 data is organized in much the same way that files are organized on your computer.

From:  https://learn.microsoft.com/en-us/azure/storage/blobs/data-lake-storage-introduction#hierarchical-directory-structure
This means that unlike non-ADLS Gen2 storage accounts, the folders in your blob containers are real (not virutal).  But for ADLS Gen2 blob containers, once you create a folder, it will not go away until you delete it.
Does that make sense?


feat(nmrcraft and scripts): baseline experiments

always min. 6 tensors as input
1st: 6 tensors -> metal category
2nd: 6 tensors -> E-ligand
3rd: 6 tensots -> metal, E-ligand category
4th:  6 tensors, metal, E-ligand, 5 ligands -> 6th ligand
generate for each of those tasks:

plots and scores accuracy, ROC, ...
different dataset sizes: 1%, 10%, 100%
anything else?

It would be fantastic to prioritize this to be able to get results until Friday
@wikicraft @mlederbauer @tiaguinho-code @strsamue @kbiniek

We should be able to adapt the DataLoader class “dynamically” and then select the target and feature columns depending on which experiment we want to run see PR #31

single target experiments should be doable now with the DataLoader. For multitarget experiments we still need to add onehot encoding. I'll try to get it done as soon as I can.

idea: extrapolating by training on 6 coordinate, testing on 5-coordinate or vice versa

1.) input: 6 NMR tensors, output: metal
2.) input: 6 NMR tensors, output: E-ligand
3.) input: 6 NMR tensors, output: X3-ligand
4.) input: 6 NMR tensors, output: metal & E-ligand
5.) input: 6 NMR tensors, output: metal & X3-ligand
6.) input: 6 NMR tensors, output: E-ligand & X3-ligand
7.) input: 6 NMR tensors, output: metal & E-ligand & X3-ligand
8.) input: 6 NMR tensors+all other ligands, output: metal
9.) input: 6 NMR tensors+all other ligands+metal, output: E-ligand
10.) input: 6 NMR tensors+all other ligands+metal, output: X3-ligand
11.) input: 6 NMR tensors+all other ligands, output: metal & E-ligand
12.) input: 6 NMR tensors+all other ligands, output: metal & X3-ligand
13.) input: 6 NMR tensors+all other ligands, output: E-ligand & X3-ligand
14.) input: 6 NMR tensors+all other ligands, output: metal & E-ligand & X3-ligand
those are quite a lot, I suggest to keep the following, what do you think?
Research Questons:

Does more data = better results?


Added support for new pydot versions to fix find_graphviz error

I was having difficulties with the keras.utils.plot_model function, specifically that pydot no longer supports the find_graphviz function, and installing pydot-ng instead does not seem to fix it. This pull request should solve issue #3210.

Please see https://github.com/fchollet/keras/issues/5313#issuecomment-278457653.


Query: /api/v1/stores confusingly returns endpoints not exposing store API

Thanos, Prometheus and Golang version used:
Thanos v0.25.0

What happened:
We recently switched to using stateless ruler. Upon visiting the Store page on UI, I still see the rulers, despite the fact that they do not expose store APIs and there are no store information available. See:

What you expected to happen:
For API / stores UI page to only display components actually exposing API.
How to reproduce it (as minimally and precisely as possible):
Run an instance of querier which points to a stateless ruler.

Anything else we need to know:
I think the logic responsible for collecting store information (https://github.com/thanos-io/thanos/blob/main/pkg/api/query/v1.go#L719) should filter these components out.

cc @saswatamcode

I am trying to understand this problem better. Did you configure the stateless ruler endpoints on Thanos Querier? If you didn't configure it then they shouldn't appear on the UI.

@yeya24, we configure stateless Ruler as a store in Querier, the reason being that we want to utilize the Querier /api/v1/rules endpoint and see the rules in Querier UI too. If we don't configure it as a store we cannot get any info from the api/v1/rules endpoint.
But it also shows up as a store, even though it doesn't expose any StoreAPI, which is misleading. So they should be filtered out instead. I think current filtering logic is just based on component name.
Alternatively, maybe a flag like --ruler instead of --store on querier would work better in Querier to support this particular case? 🙂

@yeya24, we configure stateless Ruler as a store in Querier, the reason being that we want to utilize the Querier /api/v1/rules endpoint and see the rules in Querier UI too. If we don't configure it as a store we cannot get any info from the api/v1/rules endpoint.
But it also shows up as a store, even though it doesn't expose any StoreAPI, which is misleading. So they should be filtered out instead. I think current filtering logic is just based on component name.
Alternatively, maybe a flag like --ruler instead of --store on querier would work better in Querier to support this particular case? 🙂

Makes sense to me. Yeah the filtering logic should be improved.
Btw the info rpc contains the store API field to tell whether store API is exposed from this component. For statelessruler this shouldn't be set.

As far as I understand, the issue is that now --store flag ≃ --endpoint flag. The store method in API indiscriminately returns all endpoints, even if they do not expose store API. I think stateless ruler already does not expose store API, but currently that is causing the stores endpoint excluding it. Same would be with any other non-store component passed to --store / --endpoint parameter I believe.

There is --rule flag: https://github.com/thanos-io/thanos/blob/79e70da702228ac0282fc7639f9f160d922b6dcb/cmd/thanos/query.go#L114-L113
We have now incident which we are handling with @moadz that adding stateless ruler as store potentially causes problems

And yes not finished endpoints work is extremely confusing

Hi @bwplotka, I've been brushing up on this topic across multiple issues/proposals and the behavior described above where:

--store flag ≃ --endpoint flag
blocks us from upgrading from Thanos v0.23. Our issue is that we run well over a thousand Prometheus servers that each have a lot of rules. When Grafana or a user (via the Rules page in Thanos) hits the rules API in Thanos, the queriers in the middle OOM due to the size of the combined ruleset.

I'm curious if there's any traction on this as of recently. While the upgrade we attempted was from v0.23 to v0.31 last year, upon revisiting these open issues and the current config options in the latest version, it doesn't seem like there is an lever that disables the rules API discovery in order for us to upgrade. We'd like to finally upgrade and make use of all of the new features and enhancements, so I'd really appreciate some advice here. Thanks!


Reset GW Admin Password

Describe the Issue
GW Admin password appeared not working in forge and need to reset.
Additional Context

reset the password for GW admin
update the password vault
ecf forge first, assembly, live.  2 GWs in each environment
ebs backup first before reset
used in any job ?

Acceptance Criteria

[ ] new password can used in ssh and webui
[ ] new password stored in password vault
A set of pre-defined requirement that need to be met in order to mark the user story as “done”.  See below for team agreement details.

Not able to login in ECF Assembly and Live (SMS and GW)


Custom manifest path

I have a project that has subfolders like ui/ and py/ and the manifest is in py/. Is this project layout supported?

Not at the moment, but thanks for asking!
What kind of features are you looking to use with this?
I am in the process of rethinking what features this extension provides and would help to know any ideas!

I'd be happy with just the bare minimum (interpreter path, test running)

I think running tasks would be a great feature that's still missing.


Tox cleanups and support for additional permissions checks

I would like to be able to subclass the authentication backend, and only need to override one method to perform an additional security check (make sure they are in an organization). I would rather not have to override the whole authentication method and then keep track of the upstream changes.
The tox is just a small cleanup to add django 1.9 and python 3.5.

Could you fix the CI build error ?

Is there a way to force travis to rebuild everything? Those changes are related to the tox changes, for some reason travis is using python 2.7 for rules that should be run with python 3.4. I am not really sure how to fix that though.


composer navigating documents rapidly fails to render the editor sometimes

related https://github.com/dxos/dxos/issues/2826

There is no repro or screen recording so I'm marking this as a duplicate of #2826.


Hapi Integration

It would be great to have support for hapijs. I might take a look at this if I find the time.

I don't know much about hapi, but if you are sure the Express middleware won't work just import the processRequest function and go from there.
import {processRequest} from 'apollo-upload-server'

Once you have something working we can add it in here.

Closing this for now, feel free to submit a pull request if you get around to working on it.

I'm trying to get this working with Hapi but quickly got stuck with this error:
Error: Unknown event error
    at Object.exports.assert (/Users/teddy/leav_core/node_modules/podium/node_modules/hoek/lib/index.js:736:11)
    at internals.Request.internals.Podium.on.internals.Podium.addListener (/Users/teddy/leav_core/node_modules/podium/lib/index.js:291:10)
    at IncomingForm.parse (/Users/teddy/leav_core/node_modules/formidable/lib/incoming_form.js:126:6)
    at Promise (/Users/teddy/leav_core/node_modules/apollo-upload-server/dist/apollo-upload-server.js:25:10)
    at Promise (<anonymous>)
    at processRequest (/Users/teddy/leav_core/node_modules/apollo-upload-server/src/index.js:16:10)
    at _callee2$ (/Users/teddy/leav_core/server.js:142:68)
    at tryCatch (/Users/teddy/leav_core/node_modules/regenerator-runtime/runtime.js:65:40)
    at Generator.invoke [as _invoke] (/Users/teddy/leav_core/node_modules/regenerator-runtime/runtime.js:303:22)
    at Generator.prototype.(anonymous function) [as next] (/Users/teddy/leav_core/node_modules/regenerator-runtime/runtime.js:117:21)

I'm just calling processRequest in a prerequisiteslike that
server.register({
            register: graphqlHapi,
            options: {
                path: '/graphql',
                route: {
                    pre: [
                        {
                            method: async (req, reply) => {
                                try {
                                    const processedRequest = await processRequest(req, {
                                        uploadDir: '/Users/teddy/leav_core/server/files/'
                                    });
                                } catch(e) {
                                    console.log(e);
                                }
                            },
                            assign: 'fileUpload'
                        }
                    ]
                },
                graphqlOptions: (req) => { ... }
            }
        });

I don't think this error is linked to your code, it might come from formidable but I was wondering if you've seen it sometimes during the development?

I don't really understand the way registering that middleware works, but are you sure req being passed in is the original, vanilla multipart form? Some routers have the original request nested as a property under their abstracted request.

With this approach you have to use req.raw.request to get the vanilla node request as @jaydenseric mentioned. I tried this too, but got stuck because Hapi will parse the payload for you before it reaches the pre handler. There might be a way around it though.
@TdyP I'm very interested in this, so please do update this thread with anything you discover :) Happy to help out as well.

Maybe we should abstract out the logic of processRequest and export a new processOperation function, so that those who have already parsed the multipart form some other way can run the logic without formidable getting in the way.

That might work, but as far as I remember the problem was more that Hapi wants either multipart or regular, it's difficult to support both, and that complicated things a lot. Also, the apollo hapi plugin uses both GET and POST for the route which further complicated matters because it's not allowed (/possible) to use multipart with a GET request.
Ideally we would need to customize the apollo hapi plugin, but then that needs to be maintained with updates from apollo etc, so that doesn't seem like a viable option.

Not much success so far for me.
I managed to get the request body parsing working if I plug the processRequest on any hook before the onPreAuth. That's not a very clean option as these hooks are for any incoming request and not bound to a specific route. Of course, I've got enough information to skip any not-graphql query, but this approach looks too hacky. Moreover, it seems to mess up with Hapi regular request processing as I receive an "Invalid multipart payload format".
So, using the pre looks like the best option. Hapi does have an option to skip payload parsing. But, this option is not available if GET is allowed. As Apollo Server set the endpoint available via GETor POST. It's hardcoded so we're stuck here too. Not sure if submitting a PR on Apollo Server to get allowed methods configurable has any chance to be accepted.
Didn't dug any further on exporting a new processOperation as this would mean handling files upload some other way, thus the whole module will become much less useful.

I took almost exactly the same roundtrip and got stuck. I image it would be required to either have some changes made in apollo hapi or go the super hacky way as you described.

I made it work without the apollo-upload-server package using only the Hapi route configuration, below you can see the code if it helps someone. Note that I'm not using apollo-server-hapi either.
export default {
  method: 'POST',
  path: '/graphql',
  config: {
    payload: {
      multipart: {
        output: 'file'
      }
    },
    pre: [{
      assign: 'payload',
      method ({headers, payload}, reply) {
        if (payload.operations) {
          const pay = {...JSON.parse(payload.operations)}

          each(payload, ({filename: name, headers, bytes: size, path}, key) => {
            if (name) {
              set(pay, key, {type: headers['content-type'], name, size, path})
            }
          })

          reply(pay)
        } else {
          reply()
        }
      }
    }]
  },
  async handler ({payload, pre}, reply) {
    const {query, variables} = pre.payload || payload

    try {
      const result = await graphql(schema, query, {}, {}, variables)
      reply(result)
    } catch (err) {
      reply(err)
    }
  }
}

Closing this because it is not something I will be working on, but if anyone has an elegant solution feel free to report back or raise a PR 🙂


Unable to build Counter App Flutter Counter app in ios

Steps to Reproduce

I have a application which runs fine in ios emulator but i was not able to archive it in ios.
I continously get the error

↳
   building file list ... done
   App.framework/
   App.framework/App
   App.framework/Info.plist
   App.framework/flutter_assets/
   App.framework/flutter_assets/AssetManifest.json
   App.framework/flutter_assets/FontManifest.json
   App.framework/flutter_assets/NOTICES
   App.framework/flutter_assets/fonts/
   App.framework/flutter_assets/fonts/MaterialIcons-Regular.otf
   App.framework/flutter_assets/packages/
   App.framework/flutter_assets/packages/cupertino_icons/
   App.framework/flutter_assets/packages/cupertino_icons/assets/
   App.framework/flutter_assets/packages/cupertino_icons/assets/CupertinoIcons.ttf

   sent 8735093 bytes  received 210 bytes  17470606.00 bytes/sec
   total size is 8733270  speedup is 1.00
   building file list ... done
   Flutter.framework/
   Flutter.framework/Flutter
   Flutter.framework/Info.plist
   Flutter.framework/icudtl.dat
   Flutter.framework/_CodeSignature/
   Flutter.framework/_CodeSignature/CodeResources

   sent 441345196 bytes  received 120 bytes  51922978.35 bytes/sec
   total size is 441290905  speedup is 1.00
   Warning: unable to build chain to self-signed root for signer "Apple Development: Name (TEAM_ID)"
   /Users/rahuljindal/AppDevelopment/Flutter_projects/sampleapp/build/ios/Release-iphoneos/Runner.app/Frameworks/App.framework/App:
   errSecInternalComponent
   Command PhaseScriptExecution failed with a nonzero exit code
   note: Using new build system
   note: Planning build
   note: Constructing build description

Then i created a app using command flutter create --org com.skjcorp  sampleapp

Without changing anything i run flutter build ios then i again got the same error.

...

Expected results:
Actual results:

Logs

[✓] Flutter (Channel beta, 1.26.0-17.8.pre, on Mac OS X 10.15.5 19F101 darwin-x64, locale en-IN)
    • Flutter version 1.26.0-17.8.pre at /Users/rahuljindal/Library/flutter
    • Framework revision 044f2cf560 (3 days ago), 2021-02-24 13:02:05 -0800
    • Engine revision 042c82b02c
    • Dart version 2.12.0 (build 2.12.0-259.16.beta)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
    • Android SDK at /Users/rahuljindal/Library/Android/sdk
    • Platform android-30, build-tools 30.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[!] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.3.1, Build version 11C505
    ! Xcode 11.3.1 out of date (12.0.1 is recommended).
      Download the latest version or update via the Mac App Store.
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 51.0.1
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.53.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.19.0

[✓] Connected device (1 available)
    • Chrome (web) • chrome • web-javascript • Google Chrome 88.0.4324.192

! Doctor found issues in 1 category.

Hi @jindalAnuj
I tried to reproduce with new project sampleapp, app builds fine.
Your looks like from Xcode, check out https://developer.apple.com/forums/thread/86161
tahatesser@Tahas-MacBook-Pro AndroidStudioProjects % cd sampleapp
tahatesser@Tahas-MacBook-Pro sampleapp % flutterb build ios
Building com.skjcorp.sampleapp for device (ios-release)...
Signing iOS app for device deployment using developer identity: "Apple
Development: Taha Baig (45T44J23Y9)"
Running Xcode build...
 └─Compiling, linking and signing...                        23.5s
Xcode build done.                                           72.8s
Built
/Users/tahatesser/AndroidStudioProjects/sampleapp/build/ios/iphoneos/Runner.app.
tahatesser@Tahas-MacBook-Pro sampleapp %

flutter doctor -v
[✓] Flutter (Channel beta, 1.26.0-17.8.pre, on macOS 11.2.2 20D80 darwin-x64, locale en-GB)
    • Flutter version 1.26.0-17.8.pre at /Users/tahatesser/Code/flutter_beta
    • Framework revision 044f2cf560 (4 days ago), 2021-02-24 13:02:05 -0800
    • Engine revision 042c82b02c
    • Dart version 2.12.0 (build 2.12.0-259.16.beta)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Volumes/Extreme/SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Volumes/Extreme/SDK
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Volumes/Extreme/Xcode.app/Contents/Developer
    • Xcode 12.4, Build version 12D4e
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)

[✓] VS Code (version 1.53.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.19.0

[✓] Connected device (3 available)
    • Taha’s iPad (mobile) • 00008020-000255113EE8402E            • ios            • iOS 14.4
    • iPhone 12 (mobile)   • 948EC106-78EE-4A69-8D31-83C00E6419DE • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-14-4 (simulator)
    • Chrome (web)         • chrome                               • web-javascript • Google Chrome
      88.0.4324.192

• No issues found!

Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you


1.6.1 : No transition on SD CARD missing.

I dont know if it is VTOL problem but we tried it with VTOL. On SD CARD missing there was no sound or indication for the missing card. Also we were able to arm and fly the VTOL in MC mode without any problems. But then it did not allow us to transition in FW flight without the SD CARD. Also there was no indication in QGC about the missing card, nor there was a sound form the Pixhawk.

This is one of those things that likely hasn't been tested.
I've wasted time flying without an sdcard when I needed the data. Maybe it could be an optional parameter for arming?

This is one of those things that you find trying to find why there is no transition on a regular flight... changed an esc then again no transition until realizing somebody forgot to put in the sc-card :)

I think there should be NO flight without a SD CARD period!! In the days where drones are able to do so much damage there should always be a way to see what caused the damage...

Transition not working with an sdcard sounds like a bug
You also need to make it work for systems like the Intel Aero that don't have sdcards.

Hmmm didn't they have some kind of internal memory? Other than the boards that don't support memory of some kind all other should fly with the SD CARD.  And before we've had a very disturbing sound from PX4 on card missing. It was with a RED light and could not arm. That is the perfect way it should be. If we had this alarm (as we are used to) we couldn't have been able to arm in the first place so no problem with the transition without sd-card.
The SD card is used to store the mission. If there is no card where do we store the mission?

Hey, this issue has been closed because the label status/STALE is set and there were no updates for 30 days. Feel free to reopen this issue if you deem it appropriate.
(This is an automated comment from GitMate.io.)


Close POAM V21-CM-6: Cookie No HttpOnly Flag

In order to demonstrate that our system has an acceptable level of risk, we need to close this identified potential risk as resolved or invalid.
Document for drafting operational requirements
Acceptance Criteria:

[x] Update POAM to show that some of the results are resolved with new scans, and that the rest are "operational requirement" while we wait for upstream to merge PRs
[x] Get operational requirement approval from AO
[x] Email rationale to 3PAO.
[ ] 3PAO verifies this.

More Information

See POAM for details.
NIST Special Publication 800-53 (Rev. 4) CM-6

This issue is real, but I think needs discussion on if we want to remediate this issues or accept the risk.
Remediation would likely require PR changes to Concourse and Grafana, and making simple changes to the apps.
If we remediate this issue, we should also remediate https://github.com/18F/cg-product/issues/443 as they could be fixed at the same time

Updated the acceptance criteria on this one to TODO. The acceptance criteria (the tasks to close the POAM) depend on whether we'll fix this or accept the risk:

If we fix this, we can close this in the POAM just by providing a new OWASP ZAP scan that shows it fixed.
If we accept the risk, we need to put a rationale in this document, get it approved by our 18F AO, and get it verified by our 3PAO.

This is in progress, but some remediations are going to require upstream changes.  Our response to this is going to be a mixed bag:  In some cases we'll have remediated it and can provide clean scans,  in others, we'll need to accept the risk while we wait for upstream to merge our PRs.
Details for each impacted component are in the linked issues above ☝

Thank you, updated acceptance criteria!

Drafted rationale here, sent to AO for approval (https://github.com/18F/Infrastructure/issues/745).

There's no more active work on this one to do for now - we'll just update the POAM item when https://github.com/18F/cg-product/issues/469 and https://github.com/18F/cg-product/issues/472 make progress.


RCL update TypeScript output to static web assets

Fixes #25697
Is the whole section accurate?

I changed the targets in .NET 6.0 and typescript has also apparently changed some things.
I think the current content is correct for .NET 5.0 but the newer content is correct for .NET 6.0 and onwards.

I can't grok that for deltas here. Is this 👇 accurate for 6.0? ...

Typescript integration
To include TypeScript files in an RCL:

Place the TypeScript files (.ts) outside of the wwwroot folder. For example, place the files in a Client folder.

Configure the TypeScript build output for the wwwroot folder. Set the TypescriptOutDir property inside of a PropertyGroup in the project file:
<TypescriptOutDir>wwwroot</TypescriptOutDir>

Include the TypeScript target as a dependency of the PrepareForBuildDependsOn target by adding the following target inside of a PropertyGroup in the project file:
<PrepareForBuildDependsOn>
  GetTypeScriptOutputForPublishing;$(PrepareForBuildDependsOn)
</PrepareForBuildDependsOn>

The proposed solution still does not work for .NET 6.
First of all, you should mention in the docs to add PackageReference to Microsoft.TypeScript.MSBuild, otherwise we get build error:

MSB4057	The target "GetTypeScriptOutputForPublishing" does not exist in the project.

Second, the generated JS files are still not packed if they are not present in wwwroot before build.

<PropertyGroup>
	<TargetFramework>net6.0</TargetFramework>
	<Nullable>enable</Nullable>
	<ImplicitUsings>enable</ImplicitUsings>
	<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
</PropertyGroup>
<PropertyGroup>
	<TypescriptOutDir>wwwroot</TypescriptOutDir>
</PropertyGroup>

<ItemGroup>
	<SupportedPlatform Include="browser" />
</ItemGroup>

<ItemGroup>
	<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.2" />
	<PackageReference Include="Microsoft.TypeScript.MSBuild" Version="4.6.4">
		<PrivateAssets>all</PrivateAssets>
		<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
	</PackageReference>
</ItemGroup>

<PropertyGroup>
	<PrepareForBuildDependsOn>GetTypeScriptOutputForPublishing;$(PrepareForBuildDependsOn)</PrepareForBuildDependsOn>

	<AssignTargetPathsDependsOn>
		CompileTypeScript;
		$(AssignTargetPathsDependsOn)
	</AssignTargetPathsDependsOn>
</PropertyGroup>

@Liero thanks for the additional details.
I didn't try pack explicitly, but I don't think that
<AssignTargetPathsDependsOn>
		CompileTypeScript;
		$(AssignTargetPathsDependsOn)

does anything.
WRT to packing, you might have run into a different bug if you were doing something like pack --no-build


breadcrumb="DETAILS" but slug="technical"

Is this intentional?  Not sure it matters, but flagging in case site is not behaving properly.

Fixed: https://github.com/e-lo/fast-trips-project/commit/dd3f84ecef1ed6334e902cdd9fa670b88b30cc62


IE 11 support

🐛 Bug Report
import { useSpring, animated } from 'react-spring';

Crash with:

To Reproduce
I have discovered the issue on https://material-ui.com/components/modal/#transitions.
Expected behavior
I expect the "module" version to only differ from the "main" version by only the import syntax (require vs import).
Link to repro (highly encouraged)
Codesandbox doesn't work on IE 11: https://github.com/codesandbox/codesandbox-client/issues/1187.
Environment

react-spring v8.0.27

Related: https://github.com/react-spring/react-spring/issues/248, https://github.com/react-spring/react-spring/issues/552.

The library comes as an es-module compiled for evergreen browsers with the following browserlist config: >1%, not dead, not ie 11, not op_mini all. If you need to support legacy targets or deal with targets that don't support modules, you can use the commonJS export by simply appending .cjs to your imports.

OK.


Kismatic: function to delete volumes

there are an add and a list option, but no delete option for volumes
I suggest implementing a kismatic volume delete command, which has to

delete pv with given name
run gluster volume stop NAME --mode=script && gluster volume delete NAME --mode=script to delete the gluster volume

Currently KET creates the directory for the volume, when the volume is deleted should KET also delete the directory?
If the directory is not deleted a volume with the same name would contain the contents of the old volume.

Ok, I will find out. As I started learning golang and already did a
contribution in it to another project, I could PR this if there is interest
in this
On Do., 21. Sep. 2017, 22:18 Dimitri Koshkin<EMAIL_ADDRESS>wrote:

Currently KET creates the directory for the volume, when the volume is
deleted should KET also delete the directory?
If the directory is not deleted a volume with the same name would contain
the contents of the old volume.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/apprenda/kismatic/issues/542#issuecomment-331269635,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACoVc29-E4sC4tPTcjbYRLNiurA-hIePks5sksSygaJpZM4NXZbq
.

Deleting the gluster volume does not necessarily remove the underlying files, and attempts to reuse these directories will fail due to clashes with the .glusterfs metadata. You will need to clear out the bricks manually.
We're using an ansible task that goes something like: (n.b. out of context so wont run as is - edited to protect the innocent)
- name: collect current volumes
  become: true
  delegate_to: "{{ groups['storage'][0] }}"
  run_once: true
  shell: gluster volume list
  register: current_volumes
  changed_when: false

- block:
    - name: gather brick information for volume '{{ gluster_volume_name }}'
      become: true
      delegate_to: "{{ groups['storage'][0] }}"
      run_once: true
      shell: gluster volume info {{ gluster_volume_name }} | grep -e "^Brick[0-9]" | cut -d " " -f 2
      register: bricks
      changed_when: false

    - name: remove gluster volume '{{ gluster_volume_name }}'
      become: true
      delegate_to: "{{ groups['storage'][0] }}"
      gluster_volume:
        name: "{{ gluster_volume_name }}"
        state: absent
      run_once: true

    - name: delete brick directory
      become: true
      run_once: true
      delegate_to: "{{ item.split(':')[0] }}"
      file:
         name: "{{ item.split(':')[1] }}"
         state: absent
      with_items: "{{ bricks.stdout_lines }}"

  when: "gluster_volume_name in current_volumes.stdout_lines"


Fitting issue

I was trying to use a few of your pre-trained models, in particular the ResNet50 and VGG16 for features extraction, but unfortunately I didn't manage to fit on the Nvidia Titan X with 12GB of VRAM my question is which GPU did you use for training, how much VRAM I need for use them?
For the VGG16 the system was asking me for 4 more GB and for the ResNet50 about 20 more
Thanks.

I used GTX 1080 ti with 11GB of VRAM while making this project and had no issue at that time.
I might need to revise the project as I didn't make any change in the last 8 months.


Feature/enum support

Hi,
I implemented the serialization of "enum" types.
Those are very small changes that you can look at directly on the code. I'm using it quite extensively and it is working properly.
Please, take a look and ask me any questions or proposals.
Regards,
Ion

thanks for sharing this patch, however, I believe the current version of savejson.m can already handle enum data types. Please test
classdef WeekDays
   enumeration
      Monday, Tuesday, Wednesday, Thursday, Friday
   end
end

>> today = WeekDays.Tuesday;
>> savejson(today)

ans =

    '{
     	"today": "Tuesday"
     }
     '

I'll try and let you know. Thanks for your great job!
Hau idatzi du Qianqian Fang<EMAIL_ADDRESS>erabiltzaileak (2019
urr. 24, og. (23:25)):

thanks for sharing this patch, however, I believe the current version of
savejson.m can already handle enum data types. Please test
classdef WeekDays
enumeration
Monday, Tuesday, Wednesday, Thursday, Friday
end
end

today = WeekDays.Tuesday;
savejson(today)

ans =
'{
 	"today": "Tuesday"
 }
 '

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/fangq/jsonlab/pull/57?email_source=notifications&email_token=AGNDMNZONLKHMASNCZE4CS3QQIHD5A5CNFSM4IMGRGB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECGPUNI#issuecomment-546110005,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGNDMNYWC3GFEAVMRBFRYFTQQIHD5ANCNFSM4IMGRGBQ
.

I finally tested your new version, and it works perfectly for enumeration types.
Thank you and sorry about this loooong delay!

great!