Add #float.to-bits()

Fixing #3119.
Confirmed by
fn main() {
    let a: f64 = 12306.0;
    println!("{}", a.to_bits());
    println!("{:x}", a.to_bits());
    println!("{}", a.to_bits() as i64);
}

Before merging, I would like to have a bit more input on whether converting to a signed integer will turn out to be a problematic decision down the road.

I don't really like this, I think a more appropriate type would be bytes

I don't really like this, I think a more appropriate type would be bytes

Perhaps we could have a function to-bytes() for that then?

Before merging, I would like to have a bit more input on whether converting to a signed integer will turn out to be a problematic decision down the road.

Well, for this to work, we have to ensure we will always be using floats and integers with the same amount of bits (here 64). I find it likely for things to remain that way, but it's something to consider. Perhaps adding just bytes for now could already be helpful, but I'm not sure.


Use :language messages instead of :language

#97 uses :language to change locale to en_US.utf8, which is not available on Windows. In this case we only need to set language for messages, so :language messages should work fine (and it works on Windows).

Thanks for the fix!


When trying to generate a variadic argument from within content, the syntax is very confusing

$mat(range(2).map(_ => range(2)))$

This just reprs the list which is expected, though a little confusing.
$mat(..#range(2).map(_ => range(2)))$

This does the same thing, but puts .. in the matrix.
$mat(#..range(2).map(_ => range(2)))$

This doesn't compile, but should IMO.
$mat(#(..range(2).map(_ => range(2))))$

This compiles, but doesn't work even though it should.

$#math.mat(..range(2).map(_ => range(2)))$ \
$mat(#(..range(2).map(_ => range(2))))$ \
$mat(..#range(2).map(_ => range(2)))$

I'd say that the second example is the one that should work as it would be consistent with how named arguments work in math.

mat(..#range

This one? If it's possible to tell the difference between that and a banal use of .. since you're not in code mode, then sure.

if you want literal dots, you could disambiguate with .. #range or \..#range

Good point, then I agree with your proposal. It's what I tried first IIRC so should be the most natural.


Dragonrage: Watch elegantshowers.co.uk

Dragonrage requests the watch of the watch_keyword elegantshowers\.co\.uk. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

elegantshowers\.co\.uk has been seen in 1 true positive, 0 false positives, and 0 NAAs.


dep init failed to convert github.com/boz/kail from govendor to dep

What version of Go (go version) and dep (git describe --tags) are you using?
% go version
go version devel +1a2ac46 Mon Aug 21 21:08:17 2017 +0000 linux/amd64
What dep command did you run?
% go get -d github.com/boz/kail
% cd $GOPATH/src/github.com/boz/tail
% govendor sync
% go build ./cmd/kail

# builds successfully

% dep init
% rm -rf vendor
% dep ensure
% go build ./cmd/kail
github.com/boz/kail/vendor/k8s.io/client-go/pkg/apis/settings
# github.com/boz/kail/vendor/k8s.io/api/core/v1
vendor/k8s.io/api/core/v1/zz_generated.deepcopy.go:897:15: in.ObjectMeta.DeepCopyInto undefined (type v1.ObjectMeta has no field or method DeepCopyInto)
vendor/k8s.io/api/core/v1/zz_generated.deepcopy.go:1013:15: in.ObjectMeta.DeepCopyInto undefined (type v1.ObjectMeta has no field or method DeepCopyInto)
vendor/k8s.io/api/core/v1/zz_generated.deepcopy.go:1079:15: in.ObjectMeta.DeepCopyInto undefined (type v1.ObjectMeta has no field or method DeepCopyInto)
vendor/k8s.io/api/core/v1/zz_generated.deepcopy.go:1440:14: in.StartedAt.DeepCopyInto undefined (type v1.Time has no field or method DeepCopyInto)
vendor/k8s.io/api/core/v1/zz_generated.deepcopy.go:1457:14: in.StartedAt.DeepCopyInto undefined (type v1.Time has no field or method DeepCopyInto)
vendor/k8s.io/api/core/v1/zz_generated.deepcopy.go:1458:15: in.FinishedAt.DeepCopyInto undefined (type v1.Time has no field or method DeepCopyInto)
vendor/k8s.io/api/core/v1/zz_generated.deepcopy.go:1788:15: in.ObjectMeta.DeepCopyInto undefined (type v1.ObjectMeta has no field or method DeepCopyInto)
vendor/k8s.io/api/core/v1/zz_generated.deepcopy.go:1967:15: in.ObjectMeta.DeepCopyInto undefined (type v1.ObjectMeta has no field or method DeepCopyInto)
vendor/k8s.io/api/core/v1/zz_generated.deepcopy.go:1970:19: in.FirstTimestamp.DeepCopyInto undefined (type v1.Time has no field or method DeepCopyInto)
vendor/k8s.io/api/core/v1/zz_generated.deepcopy.go:1971:18: in.LastTimestamp.DeepCopyInto undefined (type v1.Time has no field or method DeepCopyInto)
vendor/k8s.io/api/core/v1/zz_generated.deepcopy.go:1971:18: too many errors
github.com/boz/kail/vendor/k8s.io/client-go/pkg/api/v1
github.com/boz/kail/vendor/k8s.io/client-go/pkg/apis/apps
github.com/boz/kail/vendor/k8s.io/client-go/pkg/apis/apps/v1beta1

What did you expect to see?
./kail built correctly both times.
What did you see instead?
See above, looks like dep init didn't match the exact revisions from govendor

@dcheney-atlassian thanks for trying dep on an existing project, but we don't support govendor conversion yet 😞. There's a WIP PR #815 . Hopefully this issue would get solved soon 🙂.

Hello @darkowlzz the PR #815 is merged. I tried the flow described above on one of my projects and it is failing for me too.

@gianarb can you provide some more information about the failure? Import logs or your observations.

@gianarb actually - could you open a new issue with more details? the reasons why these conversions get things wrong can be complex and nuanced, and it's best to track each failure case separately.
wrt the original issue here, this is the error i now get:
$ go get github.com/boz/kail
$ cd $GOPATH/src/github.com/boz/kail
$ dep init -v
Getting direct dependencies...
Checked 3 directories for packages.
Found 10 direct dependencies.
Importing configuration from govendor. These are only initial constraints, and are further refined during the solve process.
Detected govendor configuration file...
  Loading /Users/sdboyer/ws/go/src/github.com/boz/kail/vendor/vendor.json
Converting from vendor.json...
init failed: unable to prepare an initial manifest and lock for the solver: Cannot determine the project root for appengine: "appengine" is not a valid import path

Closing as the original issue, not supporting govendor during init, has been resolved.
@gianarb The govendor config looks incorrect because it contains an invalid path "appengine". If you correct the config and init continues to fail, please open another issue and we can figure it out.

that path was, at one time, valid. I know we had special handling for appengine at one point, though I don't immediately recall how much of it remains.

Ah okay I didn't read past this part of the appengine doc before thinking it was bad config:

This repository supports the Go runtime on App Engine standard. It provides APIs for interacting with App Engine services. Its canonical import path is google.golang.org/appengine.

Further down they provide instructions to get off their legacy appengine import style:
https://github.com/golang/appengine#updating-from-legacy-import-appengine-packages


 See documentation.

:robot: Release is at https://github.com/noir-lang/acvm/releases/tag/root-v0.13.3 :sunflower:

:robot: Release is at https://github.com/noir-lang/acvm/releases/tag/acir-v0.13.3 :sunflower:

:robot: Release is at https://github.com/noir-lang/acvm/releases/tag/acir_field-v0.13.3 :sunflower:

:robot: Release is at https://github.com/noir-lang/acvm/releases/tag/acvm-v0.13.3 :sunflower:

:robot: Release is at https://github.com/noir-lang/acvm/releases/tag/brillig_vm-v0.13.3 :sunflower:

:robot: Release is at https://github.com/noir-lang/acvm/releases/tag/acvm_stdlib-v0.13.3 :sunflower:


Rpc refactor

Here is my RPC refactor for that I've been working on to get Manoj's automation lib passing.
So far, only the ledger RPC passes. I'm going to finish the refactor and then tweak the rest of the tests to get them passing.
Let me know what you think, and note that this is still a WIP/draft.

This change is

Also, we should squash the commit messages. I did not do a good job of changing commit messages while rebasing.


Create Cloudwatch log groups for Lambda@Edge in each available region

Is your request related to a new offering from AWS?
Not new
Is your request related to a problem? Please describe.
Hi, I found this module during searching for a solution to create Lambda@Edge log groups in each available/enabled region. Unfortunately, I don't see that this situation is handled.
In addition, here value '0' is possible but not mentioned. Would be nice to add validation.
Describe the solution you'd like.
To configure logs retention period, create Cloudwatch log groups for Lambda@Edge in each available region.
Describe alternatives you've considered.
Manual retention setting.
Additional context
Some links about that:
AWS:

https://forums.aws.amazon.com/thread.jspa?messageID=899555&tstart=0
https://aws.amazon.com/ru/blogs/networking-and-content-delivery/aggregating-lambdaedge-logs/

Terraform:

https://github.com/hashicorp/terraform/issues/16967
https://stackoverflow.com/questions/69885339/how-to-deploy-aws-resources-across-all-regions-via-terraform
https://github.com/hashicorp/terraform/issues/24476
https://discuss.hashicorp.com/t/provider-registry-registry-terraform-io-does-not-have-a-provider-named-registry-terraform-io-hashicorp-each/21695/4
https://stackoverflow.com/a/48667361/6701498

Hi @antonbabenko, thanks for the answer. I'm talking about the case when you want a log group(s) to be created by the module (as it has inputs for that), but in fact it will be created in one region. If end users accessed the service from other regions, log group will be automatically created in that regions, but there is no consistency in settings between created log groups by this module and other ones created automatically.

Actually, I think you should be able to create log groups outside of the module with the desired retention in each region and Lambda@Edge will be able to write into those and not reset retention.

Actually, I think you should be able to create log groups outside of the module with the desired retention in each region and Lambda@Edge will be able to write into those and not reset retention.

Yes, it's so, as for different AWS services like RDS, but input variable of this module promises creation of log group and creates it only in one region, that might be unexpected for end user.


StorageLoader: write JSON Path file for a geolocation_context 1-1-0

Migrated to https://github.com/snowplow/iglu-central/issues/520


When using a non-standard Appium port, my test unexpectedly changes port in the middle of the test.

OpenTest version number: 1.1.5
We're running appium tests for ios and android in simulator/emulator on mac minis. Android tests  are run on the standard appium port of 4723 and ios tests are on port 4725.
The ios tests start out on port 4725 and near the end of the test, the port changes to 4723 unexpectedly.
Steps to reproduce:

unclear
PortChange.log

Relevant log information:
...
Using Appium server URL "http://<IP_ADDRESS>:4725/wd/hub"
...
Using Appium server URL "http://<IP_ADDRESS>:4723/wd/hub"
...

Please make sure to set the appium.appiumServerUrl config parameter in your actor.yaml file to the correct value you want to use.
...

appium:
    appiumServerUrl: http://<IP_ADDRESS>:4725/wd/hub

...

I noticed you are using the InitAppium keyword to initialize your Appium driver, so here is what I think is happening: you are running one test that uses the InitAppium keyword with the url argument set to the correct value of http://<IP_ADDRESS>:4725/wd/hub and it is running fine. At the end of the test, the test actor automatically discards the Appium driver so it can be reinitialized to prepare for the next test. However, in the next test you are not using the InitAppium keyword, so the test actor uses the normal driver initialization logic which is done based on the Appium URL from the test actor's configuration file. That parameter is probably configured to use port 4723 or it is not set at all, which causes the actor to use the default port. Please check your actor.yaml config file.
The InitAppium keyword should only be used for advanced use cases, when you need more control over the way the Appium driver instance is created (e.g. you need to override one or more desired capabilities or you want to use a custom Appium URL for the duration of one single test)

That does seem to address the issue with the port. However, I'm still investigating the new breaking issue, even with the right port.

Sure, please close this issue when you're confident the port problem was solved and open a new issue, if necessary, to describe the new problem you're encountering.

The test is failing in the same place, trying to re-initialize appium (even though the test is not complete and there is only one test).
The new error message reads
'Reason: 'simctl error running 'create': Invalid device type: iOS Emulator'
here are the desired capabilities
appium:
    appiumServerUrl: http://<IP_ADDRESS>:4725/wd/hub
    # For more information see the Appium project's documentation at
    # http://appium.io/docs/en/writing-running-appium/caps/
    desiredCapabilities:
        automationName: XCUITest
        platformVersion: 13.2
        platformName: iOS
        deviceName: iPhone 11 Pro Max
        app: /Users/Shared/company-Inhouse.app

Some notes,

If I only put the desired capabilities in the actor.yaml file and remove the InitAppium call from the test, the test will not start
any setting for 'reUseDriver' in the actor.yaml has no effect in my case.

I am leaving for the weekend and will mull over this before Monday. @adrianth , thanks for the quick feedback. :) I'll post more on Monday

Sounds like the iOS simulator instance cannot be created correctly. I am sure this is all about using the correct desired capabilities, in conjunction with the iOS simulators you currently have installed on your Mac. I am not the best person to advise on this, unfortunately, but if you can't find any useful information in the Appium forums, let me know and I will do my best to assist you.
The effect of the reuseDriver: true setting, is that the test actor will not discard and recreate the Appium driver instance after each test execution. This is a very useful time saver during test development, as it allows you to add test steps one by one and try them without having to re-run the test from the beginning, but you should never use this option in production, unless you have a custom process in place to reset your application and navigate to the home screen to prepare for the next test.

I've done some more experimenting and think I have an understanding of what's going on.
The root cause appears to be that appium cannot get the xml from the app.
However, that fact is hidden from the Open Test logs when the error happens in an JavaScript block.
I'll create a ticket that describes this issue.

Sounds good. I'm actually curious to understand what the problem was.
The logging should work fine when keywords are executed in JS blocks. When an error happens, the exception information should be logged, along with the call stack information. Please let me know if this is not the case.


feat: pizza generate insight command

Description
Refactors the existing interactive flow from pizza generate codeowners (after the codeowners file has been created) into its own command:
❯ ./build/pizza generate insight .
[jpmcb nickytonline brandonroberts zeucapua]
Do you want to add these codeowners to an OpenSauced Contributor Insight? (y/n): y
Adding codeowners to contributor insight

Access Contributor Insight on OpenSauced:
https://app.opensauced.pizza/workspaces/8718805b-66b8-4da5-887d-c37366b8e0da/contributor-insights/dfa8e053-f68a-47e9-ae09-fc13579ca4a5

Related Tickets & Documents
Closes #176
Steps to QA

Build locally with just build
Run command with ./build/pizza generate insight . in a directory with a CODEOWNERS file

Tier (staff will fill in)

[ ] Tier 1
[ ] Tier 2
[ ] Tier 3
[x] Tier 4

The command works good for me. How does this handle attribution groups vs usernames? If I have an open-sauced/engineering group of emails?

How does this handle attribution groups vs usernames?

It doesn't. It just uses a regex to look for the @ handle in CODEOWNERS files, grabs those, and uses them in the payload to the API.
The v2/workspaces/:id/userLists/:list-id API endpoint throws out logins that are invalid or 404 from GitHub.
For example, this request to the API:
curl -X 'PATCH' \
  'https://api.opensauced.pizza/v2/workspaces/8718805b-66b8-4da5-887d-c37366b8e0da/userLists/157b6ce1-c50d-438a-8648-050fbf662854' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer <redacted>' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "Test test test",
  "is_public": false,
  "contributors": [
    {
      "login": "jpmcb"
    },
    {
      "login": "open-sauced/engineering"
    },
    {
      "login": "Brandon Roberts"
    }
  ]
}'

throws out the two logins that aren't actually logins.


The Tizen Net Sdk Not Found Error. Every Time Building TPK

Every Packages And All Requirement Fullfiles.
Although Showing This Error.

Response Of :- flutter-tizen doctor -v

Hmm, it's weird.
It looks like an issue with the NuGet SDK resolver in MSBuild and I was able to reproduce a similar error by commenting out all packageSources in the file ~/.nuget/NuGet/NuGet.Config on Linux. (On Windows, the config file can be found at %AppData%\NuGet\NuGet.config.)
Building a Tizen application in release mode...                    590ms
Failed to build .NET application:
Microsoft (R) Build Engine version 16.9.0+57a23d249 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

/home/swift/Git/dummy/dummy_app/tizen/Runner.csproj : error : Unable to resolve 'Tizen.NET.Sdk (= 1.1.5)' for '.NETStandard,Version=v0.0'.
/home/swift/Git/dummy/dummy_app/tizen/Runner.csproj : error : Unable to resolve 'Tizen.NET.Sdk (= 1.1.5)' for '.NETStandard,Version=v0.0'.
/home/swift/Git/dummy/dummy_app/tizen/Runner.csproj : error MSB4236: The SDK 'Tizen.NET.Sdk/1.1.5' specified could not be found.

Build FAILED.

/home/swift/Git/dummy/dummy_app/tizen/Runner.csproj : error : Unable to resolve 'Tizen.NET.Sdk (= 1.1.5)' for '.NETStandard,Version=v0.0'.
/home/swift/Git/dummy/dummy_app/tizen/Runner.csproj : error : Unable to resolve 'Tizen.NET.Sdk (= 1.1.5)' for '.NETStandard,Version=v0.0'.
/home/swift/Git/dummy/dummy_app/tizen/Runner.csproj : error MSB4236: The SDK 'Tizen.NET.Sdk/1.1.5' specified could not be found.
    0 Warning(s)
    3 Error(s)

Time Elapsed 00:00:00.16

A quick workaround for this issue would be creating a file named NuGet.Config next to Runner.csproj in the tizen directory with the following content:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
    <add key="tizen.myget.org" value="https://tizen.myget.org/F/dotnet/api/v3/index.json" protocolVersion="3" />
  </packageSources>
</configuration>

but it doesn't really fix the root cause of the problem. Which version of the .NET SDK do you have? Did you change any of its configuration?
@WonyoungChoi Do you have any idea regarding this error?

@swift-kim Is any NuGet.config file in the parent directories? such like /home/swift/ or '/home/swift/Git/` or .....

please check the nuget source list with:
$ dotnet nuget list source

@WonyoungChoi No, I made sure no NuGet.config exists in tizen and its parent directories, and also deleted existing nuget caches in ~/.nuget/packages.

My Problem Resolved By Adding

This in Nuget.config file.

@swift-kim  Thank you. 👍🏻

Mmm, that's not what I asked you to do (I actually wanted you to help us find the root cause of the problem but what you have done is irreversible and now there's nothing we can do). Anyway, I'm glad your problem has been solved. I'll close the issue.

OKay...

Previously that file have this data. Check it out. if it can help you to find root cause of problem.

@ncr9108 Oh, thank you for the information. I'm not sure why your NuGet.config had been corrupted, but I will prepare some patch if the same problem is reported by other users.


HL-610 | (WIP) Update README.md structure and fix formatting

Refactor README a bit.

Add description section
Add requirements section
Add "get started" section
Add horizontal lines for each section
Add and fix text formating
Unify heading case

You were fast :D Nice :+1:
Should we decide some standard for markdown style before doing style-changes? E.g. markdownlint? Content looks good, just thinking, should all the benefit-related readme-files be corrected at the same pull request?

Hmm, should this also be linked to some ticket?

I'm merging this one for now. @mjturt @rikuke go ahead and revise the backend/readme.md and backend/benefit/readme.md. I will do a revisit frontend readme's at some point.


Changes to enable 1904-based dates

Awesome, thanks.  Whenever you have a chance to get it up on Maven Central, that would help me out a lot


[paid support] Contact email

Dear @sochix
I tried to contact you to<EMAIL_ADDRESS>to quote a custom dev and support but haven't received any response yet. Is that email still working?
Best,
Ignacio

Yep, it's working.


remove no-longer-needed hpow macro workaround

Removes the local macro declarations that were intended as a workaround for https://github.com/leanprover/lean4/issues/2220, which has now been fixed.
To get things to typecheck after this change:

adds some type ascriptions
changes some rfl proofs to by rfl

Wow, thank you!  There are a couple double conversions which seem odd, but I’m happy to fix those as a second pass.


Add eslint-comments/require-description rule

This PR adds eslint-comments/require-description rule.
This rule warns directive comments without description.
This rule can only be used with ESLint v7.x or later.

close #40
close #29

@ota-meshi just updated, and it seems that adding a description satisfies your rule, but interferes with the disabling of the actual rule?
Might be an issue w/ my ESLint version? I'm on ^5.16.0, but the latest is 7.1.0.

Update: yup, confirmed it's because of my older version of ESLint. (Will leave this comment here for future searchers)

As you say, this rule is only available with ESLint v7.x or later.
I also wrote it in the documentation for this rule.
https://mysticatea.github.io/eslint-plugin-eslint-comments/rules/require-description.html


Cannot build the example and some problem in ide

Hi:
I download this program in Linux ubuntu16, I do everything to following to the documentation.
At first, I build the library following the documentation.

everything is fine and I get the build folder

However, when I try to run the example by this way

Some mistakes happen

PS:the Chinese means "cannot find"
I install opencl-dev so that the final result is

I don't know how to run the examples and the cross compile is also cannot find -larm_compute and -lOpenCl

The second issue is that I try to download this program in Clion in ubuntu and it cannot build because the program cannot find the "arm_neon.h".
As a result, I download "arm_neon.h" and it also cannot work for lots of error such as '__Int8*8_t' does not name  a type

Any help is very appreciate and very grateful.
Have a good day!!!!!!

Note
These two commands assume libarm_compute.so is available in your library path, if not add the path to it using -L

If it can't find the libraries it means they're not in your library path, therefore you need to add "-L" with the path to the folder which contains the libraries.
But if you've built the library using scons the examples should already have been built and should be in your build folder.
Regarding your IDE / arm_neon.h: your IDE doesn't seem to be set up to cross-compile (arm_neon.h comes with the cross-compiler) and also it's bypassing the library's build system (SCons).

Thanks a lots of!!!!
I understand the second issue.
But I cannot solve the first issue. I built the library using scons but the examples had not been built.
Anyway, I will try to add "-L" to the path at first but what is the commend?
Thanks! Your help is very appreciate!

When I add "-L", it has something wrong again.
/usr/bin/ld: skipping incompatible /home/try1/build/arm_compute/libarm_compute.so when searching for -larm_compute
So, what I need to do?

Are you sure you're building natively on the target ?
Also, are you sure the target matches ? ( armv7a for 32bit, / arm64-v8a for 64 bit)
When you run scons with examples=1 (The default), the examples should get built in build/examples

Yes, I am sure that I built natively and the target matches(my OS is 64bit so that I use those two commends:
scons Werror=1 -j8 debug=0 asserts=1 neon=0 opencl=1 embed_kernels=1 os=linux arch=arm64-v8a(for build the library)
g++ examples/cl_convolution.cpp test_helpers/Utils.cpp -I. -Iinclude -std=c++11 -larm_compute -lOpenCL -o cl_convolution(To compile natively (i.e directly on an ARM device) for OpenCL)
And I run scons without examples=1(you can see the commend I list which is from the documentation)
And thanks for your patience to help me!

And this is my new commend to run the examples, I hope it can help.
g++ examples/neon_convolution.cpp test_helpers/Utils.cpp -I. -Iinclude -std=c++11 -L/home/zhoupeilin/dowaload/tryfinal1/build/arm_compute -larm_compute -o neon_convolution

If I use this commend:
arm-linux-gnueabihf-g++ examples/cl_convolution.cpp test_helpers/Utils.cpp -I. -Iinclude -std=c++11 -mfpu=neon -L/home/zhoupeilin/download/tryfinal1/build/arm_compute -L. -larm_compute -lOpenCL -o cl_convolution
it shows that:
/home/zhoupeilin/dowanload/tryfinal1/build/arm_compute/libarm_compute.so: file not recognized: not in executable format
collect2: error: ld returned 1 exit status

arm-linux-gnueabihf-g++ is 32bit, it should be aarch64-linux-gnu-g++ for 64

I try this commend:
aarch64-linux-gnu-g++ examples/cl_convolution.cpp test_helpers/Utils.cpp -I. -Iinclude -std=c++11 -L/home/zhoupeilin/dowaload/tryfinal1/build/arm_compute -L. -larm_compute -lOpenCL -o cl_convolution
and it also shows that it cannot find the -lOpenCL like this:
/usr/lib/gcc-cross/aarch64-linux-gnu/5/../../../../aarch64-linux-gnu/bin/ld: cannot find -lOpenCL
collect2: error: ld returned 1 exit status

What it means is that I need the libopencl?But I already download opencl and it can find it if I use g++

ok, everything is fine and I solve all the problem finally,
Thank you very much!!!!!!!!!!!

Thank you @ppplinday  I recently met this problem


Create and approve Epic Design Documentation

Baicells and Sercomm enganged. Questions asked about transmission parameter rules/restrictions/recommendations.


feat: 🎸 Remove option to add investor uniqueness for an asset

Description
Remove option to add investor uniqueness for an asset
Breaking Changes
🧨 requiresInvestorUniqueness is now removed from CreateAssetParams
JIRA Link

Checklist

[ ] Updated the Readme.md (if required) ?

:tada: This PR is included in version 20.0.0-alpha.2 :tada:
The release is available on:

npm package (@alpha dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 20.0.0-beta.1 :tada:
The release is available on:

npm package (@beta dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Update README.org

Minor edits.

@blakeplock's FIRST PULL REQUEST!!!!
:clap: :clap: :clap: :clap: :clap: :clap: :clap: :clap:

Oh my god @blakeplock and you even forked and labeled the branch correctly.


Longest Substring Without Repeating Characters in C++ #691

Have you read the Contributing Guidelines on Pull Requests?
Yes
Description
Longest Substring Without Repeating Characters Solution in C++
Checklist

[x] I've read the contribution guidelines.
[x] I've checked the issue list before deciding what to submit.

Related Issues or Pull Requests
Longest Substring Without Repeating Characters in C++ #691
Fill up the DCP form
If you are a part of DCP 21, fill up this form after the PR is merged.
The links provided in the form will be checked thoroughly, if someone tries fooling around, strict actions will be taken against the individual.

The linked issue #691 is created by a different person.

@Ayonijakaushik19 as this issue was assigned to a different person, you can't work on it. You are free to raise your own issue and assign them to yourself.


Replace bindings_t implementation in C and Python API

MeTTa code heavily uses matching of atoms. Let's say we have two atoms: (A $x $x) and (A B $y). Result of the matching is a set of variable bindings or variable values (for both sides) which makes the given expressions equal. For the example above it is { $x = $y = B }.
There is a special data structure to represent variable bindings: hyperon::atom::matcher::Bindings. Matching is a fundamental part of the atoms processing so Bindings structure is a part of C API. For example it is used in c/src/space.rs module to return results of a query to the caller.
Most of the structures from the Hyperon core library are represented in C API by thin wrappers. For example atom_t is a wrapper of the Atom. All public functions of Atom are represented by atom_... functions in c/src/atom.rs. It is not a case for Bindings. It is represented by totally another kind of structure bindings_t. Which is a vector of pairs variable name/atom. This was done to simplify C API and provide more natural C interface. But at the moment Bindings API is going to be changed. It is the reason why it is better to replace bindings_t by simple wrapper of Bindings as it is done for most of other structures.
The task is to replace current bindings_t implementation by thin wrapper of the hyperon::atom::matcher::Bindings. It requires replacing the bindings_t implementation in the Hyperon library C API and adding bindings_... functions for each public Bindings function. It is also required to add C++ proxy calls into python/hyperonpy.cpp file. And using this calls to represent Bindings by class in Python API. Finally all C and Python API unit tests need to be fixed to support new API.

Leave it here as a first contribution task for @e-gorodnitskiy.

check_grounding_space.c is a test which is implemented by custom printing of variables and values into the character buffer. But another way (and may be it is even more proper) is to compare the list of Bindings received with the expected one. I expect this test will be re-implemented as a part of the change by @e-gorodnitskiy.
Iterating through the Bindings is not very common operation. The only way of getting values from the bindings which is used in code right now is getting value by key (a reference to VariableAtom). But anyway we can add an API to iterate though Bindings as well. But I would prefer finding a proper C API to represent generic Iterator rather then exposing BindingsIter. I used len/set/get functions for the grounding_space_t but I don't really like it. Thus if good C API for this task is invented it can be used to iterate through grounding_space_t as well.


Create issue numbers and display when needed

We should have proper issue numbers. Simply sequential is enough.
When I talk to someone over the phone referring to an issue like 'Just look at issue 24' would be really helpful.
Also I think issues should start from 1 in every project.

Implementation started in branch develop-3.0. There is internal issues number starts from 1. Also, added project key. This is string of 3 characters unique to the project.
Example, if you have a project with key ABC, you can reference the issue number 1 as ABC-1

Nice idea. This way there's always a clean way to reference project/ticket.
I'll check this out. Have to do a clean installation of 3.0 first.


action: Dialogs

How are dialogs introduced on the page? new top-level construct?
button click => open dialog

https://docs.appsmith.com/v/v1.2/core-concepts/connecting-ui-and-logic/internal-functions

For now, we can do it from onClick event. But later on through UI

As discussed on the call yesterday, currently these use cases can be accomplished through the following ways:

Instead of a modal, the form can be there on the page itself
If it is a long form, then the user can be navigated to a different page of the app. This other page can have the form

Editable data grid https://github.com/mui/mui-toolpad/issues/994, could be a smarter solution to these use cases.
Regarding a customizable dialog box, as it could be a small page in itself, we'll do a proper implementation after finalizing how the UX should work.


[🐞] JS Load Regression

Which component is affected?
Qwik Runtime
Describe the bug
Versions > 0.18.1 are loading about 25k of JS which should not be needed from the app perspective.
Reproduction
"Good" version
pnpm create<EMAIL_ADDRESS>cd qwik-app

open src/routes/index.tsx in the editor and remove the usage of <Link> component
pnpm run preview

open dev tools -> network and check js downloads. it should be 0.
"Optimizable" version
do the same as above but use latest version of qwik (0.21.0).
on my end it results in ~25k of JS.
Screenshots v0.21.0

(network view)

(this line causes the download of the first q-xxxxx pkg)
Reproduction
none
Steps to reproduce
pls see above
System Info
not relevant in this case

Additional Information
Seems identical to what is described here

https://github.com/BuilderIO/qwik/issues/3298
https://github.com/BuilderIO/qwik/issues/2998

Thanks for opening this issue, @zanettin! I'm just wondering if there's any significance in changing the milestone from Priority to Planned? I really appreciate Qwik's commitment to an initial load of 0kb JS, so an initial load of 25kb is quite a turn-off in my view. Thanks again for all the work on this project!

I took a look at this and narrowed the regression to the qwik-city release 0.5.3 (March 7) being the first to display that issue.
I'm guessing the change to either submodule-build.ts or submodule-core.ts is the culprit.
@manucorporat do we understand if those changes could have caused this?

I am waiting for this to be fixed soon as I halted all development on my project because this is an important feature for it. I would like to know if this is going to be addressed within the upcoming releases.

So the first, larger file is from vite:
https://github.com/vitejs/vite/blob/main/packages/vite/src/node/plugins/importAnalysisBuild.ts
The second file is from:
https://github.com/BuilderIO/qwik/blob/63bd095ad5575db0ffb642f6f356a4e621ce49de/packages/qwik-city/runtime/src/router-outlet-component.ts#L21

This got finally fixed in 1.1.0!


Limit email address length for reminders

Identity errors when email addresses are longer than 100 characters. This has been causing some alerts, so we’re adding server-side validation to handle long email addresses. This is the client-side counterpart to that validation.
See https://github.com/guardian/support-reminders/pull/61 for server-side validation.
How to test

On PROD, find a support reminder form and request a reminder to an email address longer than 100 characters – after some delay while the backend processes, an error will be returned. On this branch, the email address should be rejected immediately.
How can we measure success?
This should decrease the number of errors we get from reminder signups.
Have we considered potential risks?
If Identity change to support these long email addresses in future, our code will prevent them setting reminders even though they have an account – we will have to revert this change and the backend change at that point. I’m not sure how we can mitigate this risk.

 Stop alarms on bad email addresses for support-reminders


Update Profiler VSIX to pickup new readme

@madelinemacd @llali I'll publish the Profiler extension to the stable build this evening when 0.30.6 goes live.


Update stable version in repo from 0.0.3 to 0.0.4

Think about update stable version to 0.0.4
Version: stable=0.0.3 (111 days old) => latest=0.0.4 (15 days old)
Installs: stable=87 (82.86%), latest=15 (14.29%), total=105
Click to edit

A kind reminder.
Is there any reason to delay an update of stable revision?
Feel free to drop a simple note if I should trigger an update.

This issue seems to be outdated.
This issue suggests to update the stable version of this adapter to 0.0.4 but in the meantime an update to version 0.0.5 is suggested.
So this issue will be closed and replaced by an updated one.


[BUG] Wallet fails to reconnect after disconnection

Describe the bug
When you connect and disconnect from MetaMask it fails to reconnect
To reproduce
codesandbox
When the Connect Wallet button is clicked and the user signs in with an injected wallet like metamask, disconnects and signs out the modal refuses to connect
{
  "@tanstack/react-query": "^5",
  "connectkit": "^1.8.2",
  "viem": "2.x",
  "wagmi": "2.x",
}

Expected behaviour
Should reconnect
Screenshots

Environment details
Arc browser with MetaMask injected wallet

Describe the bug
When you connect and disconnect from MetaMask it fails to reconnect
To reproduce
codesandbox
When the Connect Wallet button is clicked and the user signs in with an injected wallet like metamask, disconnects and signs out the modal refuses to connect

{

  "@tanstack/react-query": "^5",

  "connectkit": "^1.8.2",

  "viem": "2.x",

  "wagmi": "2.x",

}

Expected behaviour
Should reconnect
Screenshots

Environment details
Arc browser with MetaMask injected wallet

Have you been able to reconnect yet???

No, I've not

No, I've not

Send me your MetaMask address to know if it's the one having issue.

You really think I'm that dumb? Unbelievable.

No, I've not

Send me your MetaMask address to know if it's the one having issue.

Hey @kelvinpraises, thanks for this report and the repro example!
I can't seem to replicate this issue. Are you sure it's not an issue with MetaMask Flask? Here's a video of me connecting/signing-in/disconnecting a few times without issue.
https://github.com/user-attachments/assets/f3c92aa8-4b11-484f-a74b-93680e498c7f

Hi @lochie thanks for the quick reply! So I just tested again on both Arc and Chrome on my end using just Metamask and it seems the issue persists, I'm now guessing, this might be an issue on my end, I'll try to test with another dev machine and relay my findings

Hey [@kelvinpraises]
You're experiencing transcript error. It seems your query would be best dealt with by the support team.
I'll have to refer you to the official support Requests team with the ticket ID MET07638
Please see the link below to our dedicated support line:
Metamask Support Requests
Note; Click on the live chat icon at the bottom corner of the page to initiate chat with a live support agent.

So after some tests on multiple devices, the error seems randomly distributed and persistent on whatever devices that it errors on, I got errors on M1 MacBook Air running both Arc and Chrome, got error on M2 MacBook Air running Arc and then got no error on an M2 MacBook Pro running Chrome.
I'll close this for now and re-open, when I have substantial evidence that the error is from connect kit.

Hi. I have the same issue. You can reproduce it by following these steps:
1 - Connect with MM with wallet1
2 - Disconnect
3 - From MM change the wallet1 to wallet2
4 - Try to reconnect
The connection will fail.
I don't know if is a MM issue or connectKit issue.
In the same session fails. But, if you reload the page before reconnecting, the behavior is OK.
@lochie


[Bug Report] RecordEpisodeStatistics wrapper doesn't return the correct number of datapoints.

Describe the bug
When using the wrapper env to record episode returns (return_queue) and episode lengths (length_queue), the number of datapoints in the queues is less than the number of episodes played, which shouldn't be the case when using deque_size=n_episodes as in:
wrapper_env = gym.wrappers.RecordEpisodeStatistics(env, deque_size=n_episodes)
The number of datapoints that are being saved in the queues also varies run to run (with the same code and parameters).
Maybe this is an issue with how i am using for i in range(max_episode_length): and if done: break?
Added code to reproduce this issue below.
Code example
import gymnasium as gym
from tqdm import tqdm

# environment setup
env = gym.make('LunarLander-v2')
n_episodes = 10000
max_episode_length = 100

# create a wrapper environment to save episode returns and episode lenghts
wrapper_env = gym.wrappers.RecordEpisodeStatistics(env, deque_size=n_episodes)

# use tqdm to get a progress bar for training
for episode in tqdm(range(n_episodes)):

    # reset the environment
    done = False
    state, info = wrapper_env.reset()

    # play one episode
    for i in range(max_episode_length):

        state, reward, terminated, truncated, info = wrapper_env.step(env.action_space.sample())

        # update if the environment is done
        done = terminated or truncated

        if done:
            break

# how many datapoints were saved?
print(len(wrapper_env.return_queue))

wrapper_env.close()

System info
Linux Mint (PC)
Python: 3.10.4
Gymnasium: 0.26.2
Additional context
Here are some runs with the code above and different parameters n_episodes and max_episode_length:

with n_episodes=500,   max_episode_length=600:  500   (correct)
with n_episodes=1000,  max_episode_length=600:  998   (wrong)
with n_episodes=4000,  max_episode_length=600:  3996  (wrong)
with n_episodes=5000,  max_episode_length=600:  4995  (wrong)
with n_episodes=5000,  max_episode_length=1000: 5000  (correct)
with n_episodes=10000, max_episode_length=1000: 10000 (correct)
with n_episodes=10000, max_episode_length=300:  9990  (wrong)
with n_episodes=10000, max_episode_length=50:   0     (wrong)
with n_episodes=10000, max_episode_length=100:  6694  (wrong), second run: 6655, third run: 6765
with n_episodes=10000, max_episode_length=150:  9942  (wrong)

Checklist

[X] I have checked that there is no similar issue in the repo

It is as the return queue is only added when terminated or truncated is true.
However as the environment time limit is < max_episode_lengths then there are a number of cases where terminated or truncated is never true

So while not done would be the only correct implementation and for i in range(max_episode_length) to limit the episode length is not a good way of implementing it?

If you want a different max limit on the number of time steps, you can do gym.make("env_name", max_episode_steps=100) which will modify the TimeLimit wrapper value.
Otherwise, yes, the only way for return_queue to include all episode returns is to use while not done

I see, didn't know about the TimeLimit wrapper. Thanks for the explanation!


Add WMail pre-released channel v2.0.9

The existing wmail cask give access to the last stable version of WMail.
This new cask give access to the pre-release channel (see http://thomas101.github.io/wmail/download for a description of the 2 channels)

If there’s a checkbox you can’t complete for any reason, that's okay, just explain in detail why you weren’t able to do so.
After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} reports no offenses.
[x] The commit message includes the cask’s name and version.

Additionally, if adding a new cask:

[x] Named the cask according to the token reference.
[x] brew cask install {{cask_file}} worked successfully.
[x] brew cask uninstall {{cask_file}} worked successfully.
[x] Checked there are no open pull requests for the same cask.
[x] Checked the cask was not already refused in closed issues.
[x] Checked the cask is submitted to the correct repo.

You still need to fill the template.

Ah ok I thought I only needed to check the points before submitting the PR

Ah ok I thought I only needed to check the points before submitting the PR

Well, yes. If you did those this time, than leave it be.
We require those checked so we know what was done (or not) and can waste less time with getting things merged (having to fix a cask and rerun Travis for simple things that weren’t done is not a good use of time).

I understand well your concerns and I updated my initial PR comment with the requested infos


os: IsNotExist returns true for invalid file names

What version of Go are you using (go version)?
go1.9.2 linux/amd64
Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
GOARCH="amd64"
GOBIN="/home/manlio/.local/bin"
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOOS="linux"
GOPATH="/home/manlio/.local/lib/go:/home/manlio/code/src/go"
GORACE=""
GOROOT="/usr/lib/go"
GOTOOLDIR="/usr/lib/go/pkg/tool/linux_amd64"
GCCGO="gccgo"
CC="gcc"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build134836490=/tmp/go-build -gno-record-gcc-switches"
CXX="g++"
CGO_ENABLED="1"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
What did you do?
https://play.golang.org/p/7xo02WfeHR
Also, see https://groups.google.com/forum/#!topic/golang-nuts/MZ_u50ZIB_I
What did you expect to see?
file does not exist
What did you see instead?
file exist
stat xxx...xxx: File name too long

This is probably a duplicate of #18974

@perillo I don't think it's a dup.  #18974 was about ENOTDIR.  This is about ENAMETOOLONG.  I think it would be reasonable for IsNotExist to return true for ENAMETOOLONG; if we see that error, we know for sure that the file does not exist.

Responding to ENAMETOOLONG probably warrants a different approach than with ENOENT/ErrNotExist. I don't think it should be covered by IsNotExist. I always thought of the latter as "a syscall returned ENOENT(or a Go function returned an error with similar semantics)". ENAMETOOLONG doesn't match that pattern.
The code looks very misleading to me: just because IsNotExist returns false on an error returned from stat, you can't conclude that the file exists. The call might've also hit some wildly different error.

Shouldn't the issue title read false instead of true?

@slrz Upon reflection, I think you're right.  One could imagine a deep set of directories, a/b/c/d where let's assume that each letter is actually 255 characters long.  Then opening a/b/c/d/e might fail with ENAMETOOLONG, whereas os.Chdir("a/b/c") followed by opening d/e might succeed.  At least, that is my current understanding.  If that is indeed possible, then I agree that ENAMETOOLONG does not necessarily mean that the file does not exist.

I don't think this should be fixed. non-nil err does not mean file not exists.
https://play.golang.org/p/BnbP5Lik-l

@mattn https://play.golang.org/p/jbyynnptFE
The linux man(3) page about errno defines ENAMETOOLONG as "Filename too long"
but the man(2) page about stat defines it as "pathname is too long"
From https://en.wikipedia.org/wiki/Filename and https://en.wikipedia.org/wiki/Path_(computing) it seems that pathname and filename are equivalent, so I don't understand why in my code os.Stat returns ENOENT instead of ENAMETOOLONG.

ENAMETOOLONG means the kernel refuses to deal with your input, and thus provides no information on whether a file exists or not.
@perillo, you need to handle your errors, of which IsNotExist is just one scenario. @mattn's example https://play.golang.org/p/BnbP5Lik-l is the right way to do it (apart from unnecessary nesting).
As far as I can tell, there is no bug here.

Please don't change the functionality of os.IsNotExist for ENAMETOOLONG or the various Windows cases.

Sounds like we don't want to change anything here and there's no bug.


hlf-peer: multi channel support

Signed-off-by: Inzamam<EMAIL_ADDRESS>

/ok-to-test

/approve

/lgtm


Auto-generating example images at the bottom of API pages

scikit learn has this nice documentation feature where a few example images are generated on the API page for functions. E.g.: http://scikit-learn.org/stable/modules/generated/sklearn.cluster.KMeans.html#sklearn.cluster.KMeans
I assume this is a sphinx-gallery feature, yeah? Anybody know how this works? It'd be cool if MNE did this as well...I can put in some time to get it working if needed :)
Maybe @agramfort or @Eric89GXL know?

We have this feature:
http://martinos.org/mne/dev/generated/mne.preprocessing.maxwell_filter.html#examples-using-mne-preprocessing-maxwell-filter
In practice sphinx-gallery has simple discovery mechanisms, though. It looks for import statements, whereas in our code most things like STCs come as outputs of functions.
So, to get what you really want, I think we'd need to add an option to sphinx-gallery to e.g. add a comment line to the examples that allow you to manually specify which classes/functions should be linked to the examples.

ah that must be why I didn't find examples of this in MNE before...hmm, would that be worth a PR in sphinx-gallery?

You could tell them the limitation and see what they think about the
workaround. But then also people will need to update examples to use it and
keep it in mind in future PRs, which adds some burden. Might be worth it,
I'm a +0 currently.
If we did have it working, do you see a good set of examples and tutorials
to update that would help the documentation a lot?

One of the devs there mentioned that they're not super thrilled about adding more functionality that would include sphinx-gallery specific comments on rendered HTML, which I get. I'll close this and I guess we can hope that the SG functionality that catches function calls etc gets improved over time :)


Recent update broke mining drones depot buffers

Mod source
Factorio Mod Portal
Operating system
MacOS
What kind of issue is this?

[ ] Compatibility
[ ] Locale (names, descriptions, unknown keys)
[ ] Graphical
[ ] Crash
[ ] Progression
[ ] Balance
[X] Pypostprocessing failure
[X] Other

What is the problem?
With just the Mining Drone Mod by Klonan  max drones in Depot is 100 as it is supposed to be. With Drone mod and Just all Py suite it is 20. It was 100 with both mods a week or two ago.
Steps to reproduce
Start new game with only Mining Drones enabled.
Place Mining Depot down.
Insert up to 100 mining drones.
Reset and load with Mining Drones and all the Py Suite.
Place Mining Depot down.
Insert maximum of 20 mining drones.
Up until like a week ago you could put the max 100 drones in depot with all mods enabled.
Additional context
No response
Log file
factorio-current.log

I've reproduced it. You need to reset the mod startup setting "crafting machine overfill multiplier" back to 0, it's probably 2 for you right now. Once I changed it to be 0, the mining depot accepted 100 drones again.

Looks like there's no way for us to change that default value, so I'm afraid the only option is for you to change the setting yourself.

Fixed. Thank you very much. Not sure why it went to 2.


The go OperatingSystem plugin can crash when the application

has some third-party go code linked in to it, possibly created
with a different version of Go than lldb is currently able to
handle.
Disable the automatic creation of threads for goroutines
(plugin.os.goroutines.enable defaults to false) and also harden
the routine that was crashing when the goroutine data structures
weren't as expected.
Go developers can re-enable the goroutines thread creation by
changing the setting.
rdar://problem/31451900

@swift-ci please test


[BUG] - Choose chains / Add coins

The children are not being shown while adding or removing new coins

When you click "choose chain" button , it suppose to just show the coins that are native to the blockchain .
For example , only ETH will be show for Ethereum , NONE of the ERC20 will be displayed
when you get to detail view, and click "choose tokens" , then it will display all the ERC20 tokens

Yes, I've retested it now and it seems ok, the flow changed, I had to delete my vaults and re-add them.


omg-cli: error: Timeout waiting for Ops Manager to start, try --help

Hi  johnson
Thank you very much for the great documentation i did follow the same and when the deployment goes through half a stage i get this below error please can you help.
vcm9ib3QvdjEvbWV0YWRhdGEveDUwOS9zZG4tZTEwMjYwOGQlNDB3aXByby1hM3MuaWFtLmdzZXJ2aWNlYWNjb3VudC5jb20iCn0K
sys_domain = sys.pcf-demo.com
tcp_domain = tcp.pcf-demo.com
tcp_port_range = 1024-65535
tcp_router_pool = pcf-cf-tcp
vm_tag = omg-no-ip
wss_router_pool = pcf-cf-wss
~/gcp-pcf-quickstart
[jumpbox] WARNING: ignoring SSH certificate issue for <IP_ADDRESS>:22
[jumpbox] mkdir -p ~/"keys"
[jumpbox] uploading file /tmp/tile514800179 as omg-cli
[jumpbox] uploading file /home/nataraj_purudappa/gcp-pcf-quickstart/env/pcf/keys/jumpbox_ssh.pub as keys/jumpbox_ssh.pub
[jumpbox] uploading file /home/nataraj_purudappa/gcp-pcf-quickstart/env/pcf/terraform_output.json as terraform_output.json
[jumpbox] uploading file /home/nataraj_purudappa/gcp-pcf-quickstart/env/pcf/config.json as config.json
[jumpbox] running command ~/omg-cli push-tiles --env-dir=$PWD
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
omg-cli: error: Timeout waiting for Ops Manager to start, try --help
omg-cli: error: running command: Process exited with status 1, try --help
nataraj_purudappa@wipro-a3s:~/gcp-pcf-quickstart$ eout waiting for Ops Manager to start, try --help

Same issue with delete, but the delete process did continue to delete the VM's and other objects.
delete deployment in /home/nataraj_purudappa/gcp-pcf-quickstart/env/pcf (y/n)? y
begin delete
[jumpbox] WARNING: ignoring SSH certificate issue for <IP_ADDRESS>:22
[jumpbox] mkdir -p ~/"keys"
[jumpbox] uploading file /tmp/tile289346450 as omg-cli
[jumpbox] uploading file /home/nataraj_purudappa/gcp-pcf-quickstart/env/pcf/keys/jumpbox_ssh.pub as keys/jumpbox_ssh.pub
[jumpbox] uploading file /home/nataraj_purudappa/gcp-pcf-quickstart/env/pcf/terraform_output.json as terraform_output.json
[jumpbox] uploading file /home/nataraj_purudappa/gcp-pcf-quickstart/env/pcf/config.json as config.json
[jumpbox] running command ~/omg-cli delete-installation --env-dir=$PWD
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
omg-cli: error: Timeout waiting for Ops Manager to start, try --help
omg-cli: error: running command: Process exited with status 1, try --help
deleteDirectorVM: deleted 0 VMs
~/gcp-pcf-quickstart/src/omg-tf ~/gcp-pcf-quickstart
random_id.ops_manager_password_generator: Refreshing state... (ID: bGFLqnnERfaUdynlV8OsqA)
random_id.credhub_key_name_generator: Refreshing state... (ID: -ncbWQ)
random_id.db-name: Refreshing state... (ID: -LKSnB7I5-8)
random_id.opsman_db_username: Refreshing state... (ID: EwJ9eKwvjOs)
random_id.db-name: Refreshing state... (ID: 8pxn5NlBESc)
random_id.opsman_db_password: Refreshing state... (ID: pcpbRdBJwNXJuvr_XHXYSdTzvklXDJCQAnMRgxpMTf8)
random_id.stackdriver_nozzle_account: Refreshing state... (ID: 4QJgjQ)
random_id.service_broker_password: Refreshing state... (ID: B5oSkLpDRlWGMNjieuZdTcb1sJc--Y2jdeNnZEHGje0)
random_id.service_broker_account: Refreshing state... (ID: 8A-CtQ)
random_id.ops_manager_account: Refreshing state... (ID: uS1NFA)
random_id.credhub_key_generator: Refreshing state... (ID: e9Wt8nB1KfS8i6K8S4RtQDuLB6s)
random_id.ert_db_username: Refreshing state... (ID: g4ypP3uN2XQ)
random_id.service_broker_username: Refreshing state... (ID: qD4pVIKrH0o)
random_id.suffix: Refreshing state... (ID: p9LwvQ)
random_id.ops_manager_decryption_phrase_generator: Refreshing state... (ID: CsCJcr_WOBAhQnzWK9JciA)
random_id.ert_db_password: Refreshing state... (ID: B6r6WmRDOBh7NU25V-bm5JI8adNpsI_9GzKjw6wPwAk)
google_compute_target_pool.cf-wss: Refreshing state... (ID: pcf-cf-wss)
google_compute_image.ops-manager-image: Refreshing state... (ID: pcf-ops-manager-image)
google_compute_target_pool.cf-ssh: Refreshing state... (ID: pcf-cf-ssh)
google_compute_address.ops-manager-external: Refreshing state... (ID: projects/wipro-a3s/regions/us-east1/addresses/pcf-ops-manager)
google_compute_http_health_check.cf-tcp: Refreshing state... (ID: pcf-cf-tcp)
google_compute_address.cf-ssh: Refreshing state... (ID: projects/wipro-a3s/regions/us-east1/addresses/pcf-cf-ssh)
google_compute_instance_group.httplb[1]: Refreshing state... (ID: us-east1-c/pcf-httpslb-us-east1-c)
google_compute_address.jumpbox: Refreshing state... (ID: projects/wipro-a3s/regions/us-east1/addresses/pcf-jumpbox)
google_compute_ssl_certificate.cert: Refreshing state... (ID: pcf-lbcert20180214083203087000000001)
google_compute_address.cf-tcp: Refreshing state... (ID: projects/wipro-a3s/regions/us-east1/addresses/pcf-cf-tcp)
google_compute_network.pcf-network: Refreshing state... (ID: pcf-pcf-network)
google_compute_http_health_check.cf-public: Refreshing state... (ID: pcf-cf-public)
google_compute_global_address.cf: Refreshing state... (ID: pcf-cf)
google_compute_address.cf-wss: Refreshing state... (ID: projects/wipro-a3s/regions/us-east1/addresses/pcf-cf-wss)
google_compute_instance_group.httplb[2]: Refreshing state... (ID: us-east1-d/pcf-httpslb-us-east1-d)
google_compute_instance_group.httplb[0]: Refreshing state... (ID: us-east1-b/pcf-httpslb-us-east1-b)
google_sql_database_instance.master: Refreshing state...  (ID: pcf-pcf-network)
google_compute_image.ops-manager-image: Destruction complete after 11s
module.external_database.google_sql_database_instance.master: Still destroying... (ID: pcf--lksnb7i5-8, 1m10s elapsed)
google_compute_network.pcf-network: Still destroying... (ID: pcf-pcf-network, 10s elapsed)
module.external_database.google_sql_database_instance.master: Still destroying... (ID: pcf--lksnb7i5-8, 1m20s elapsed)
module.external_database.google_sql_database_instance.master: Destruction complete after 1m23s
module.external_database.random_id.db-name: Destroying... (ID: -LKSnB7I5-8)
module.external_database.random_id.db-name: Destruction complete after 0s
google_compute_network.pcf-network: Destruction complete after 18s
Destroy complete! Resources: 101 destroyed.
~/gcp-pcf-quickstart

Can you verify your domain is setup with Google Cloud DNS? (docs)
The sys_domain/tcp_domain output looks wrong unless you've parked the pcf-demo.com domain on Google Cloud DNS as the zone pcf-zone. If that was the case- I'd expect to see a Google Cloud DNS server here:
$ dig pcf-demo.com +short NS
ns-1330.awsdns-38.org.
ns-1607.awsdns-08.co.uk.
ns-195.awsdns-24.com.
ns-669.awsdns-19.net.

The domain is registered with AWS and the zone is configured in AWS and hence the names are resolved by AWS DNS servers.

I have udpated NS and SOA records in AWS Route 53 to the Google DNS servers, i shall give it a try and update the bug with the findings.
dig pcf-demo.com +short NS
ns-cloud-a1.googledomains.com.
ns-cloud-a2.googledomains.com.
ns-cloud-a4.googledomains.com.
ns-cloud-a3.googledomains.com.
Thanks
Nataraj

You can setup a subdomain (eg gcp.pcf-demo.com) and point it do a Cloud DNS Zone. See the docs.

(ops wrong button :), let me know how it goes!
Since your environment is in a strange state I recommend running the delete script until all looks good then deploying again.

Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.

umpbox] WARNING: ignoring SSH certificate issue for  *****
[jumpbox] mkdir -p ~/"keys"
[jumpbox] uploading file /tmp/tile591959226 as omg-cli
[jumpbox] uploading file /home/nataraj_purudappa/gcp-pcf-quickstart/env/pcf/keys/jumpbox_ssh.pub as keys/jumpbox_ssh.pub
[jumpbox] uploading file /home/nataraj_purudappa/gcp-pcf-quickstart/env/pcf/terraform_output.json as terraform_output.json
[jumpbox] uploading file /home/nataraj_purudappa/gcp-pcf-quickstart/env/pcf/config.json as config.json
[jumpbox] running command ~/omg-cli push-tiles --env-dir=$PWD
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
....
....
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
waiting for Ops Manager to start
omg-cli: error: Timeout waiting for Ops Manager to start, try --help
omg-cli: error: running command: Process exited with status 1, try --help

The Error 503: Service temporarily unavailable error is a retriable error. You can repeat the command safely.
Your DNS doesn't look right:
$ dig opsman.pcf-demo.com +short
<empty>
$ dig tcp.pcf-demo.com +short
<IP_ADDRESS>

Does the NS records you setup (ns-cloud-a{1,2,3,4].googledomains.com} match the rrdatas for this command?
gcloud dns record-sets list --zone=pcf-zone --format=flattened --filter="type=NS"

The delete script did clean up the dns recods, those records where there when i ran it,Sure i shall create the records an re-run it.

yes i suppose please below is the output of the command.
nataraj_purudappa@wipro-a3s:~/gcp-pcf-quickstart$ gcloud dns record-sets list --zone=pcf-zone --format=flattened --filter="type=NS"
kind:       dns#resourceRecordSet
name:       pcf-demo.com.
rrdatas[0]: ns-cloud-a1.googledomains.com.
rrdatas[1]: ns-cloud-a2.googledomains.com.
rrdatas[2]: ns-cloud-a3.googledomains.com.
rrdatas[3]: ns-cloud-a4.googledomains.com.
ttl:        21600
type:       NS
nataraj_purudappa@wipro-a3s:~/gcp-pcf-quickstart$

That looks good! If deploy_pcf.sh fails again try running dig opsman.pcf-demo.com and see if it resolves properly. You can also try to access it: https://opsman.pcf-demo.com

Sure i shall try and udpate.

The scripts fails with the same error as mentioned in comment 1

It looks like DNS propagation is taking too long and Cloud Shell and the jumpbox have a more aggressive cache then your local machine.
Try to run deploy_pcf.sh, let it fail, then run it again 30mins-1hr later. The script is able to pick up where it left off and that should give it time for DNS propagation.
I'll see what sort of DNS flushing options could be baked into the script.

Thank you very much for your time and help, Sure i shall try and update.

Thanks for your patience @pnatraj - looks like we're resolved on the gcp-pcf-quickstart front. I'm not sure there is a blanket fix for the DNS propagation delay but maybe someone who knows more about it can offer a solution.
I haven't experienced this issue when using this script with Cloud DNS but I've never used a root domain. I've always had a Cloud DNS Zone mapped to pcf..com. Maybe that's related.


Version 6.03 not listing sub calendars and recurring events

It seems during upgrading to 8.0 dnn install then updating to 6.3 events module I have events that should be recurring, they are still there in the past but the series has been broken.
Also I cannot add sub calendars to be viewed so that I can post the calendar on multiple pages (such as a list on the home page and the month view on the events page).  I go to add sub calendars but non are listed.
For the recurring events I tried editing the series and update to see if it would put them in the calendar for lets say Christmas... no luck.

Tnx for the feedback.
I did not change anything substantial in de normal coding, mainly the referencing DNN Telerik based controls changed, so this suprises me a bit. Did you used the DNN 8 beta or the recent RC?
I will try to reproduce, but I do not have a test with all the conditions you mention, so I will do my best...

I am using the RC right now latest version release.  Thank you!

I'm having a similar issue w/ upgrade from DNN 7.x to DNN 8. Upon upgrade, home page list view showed "no events to display," even though sub-calendars were added. Half-successful go-around: after creating a copy of an event in the main calendar, then deleting the original, all events displayed in the list-view. However, IOS / Safari browser still shows "no events to display." I'm not sure yet if it's browser-specific, or across mobile in general.

In short: not OK (yet). I will try to reproduce things, but is seems a setup that has some data to reproduce.
I am sorry to say that time at my side is limited, especially since I will be going on PTO next week for a couple of weeks. So please do not expect a solution shortly (unless somebody steps in and solves it in the mean time).

Thanks so much for looking into this. I'm more of a high-functioning designer rather than a developer, so I don't see myself solving the problem, but there is another (possibly related) issue that I discovered this morning. I have upgraded two DNN 7.x sites to 8.0 thus far. On one I fresh installed DNN Events 6.3.0. On the other I upgraded Events to 6.3.0 from a 6.2.x version. In both some of the event recurrence settings are missing. Here's a screen shot:

The site where I discovered the display issue in the list view, all events that were in the list were created in the earlier version with weekly event recurrence settings.
I wish you well on your time off and will check back in a couple of weeks or update if I can document anything else related. Do let me know if there's any testing that would be helpful in the meantime.

I'm seeing this same behavior after upgrading a website from DNN 7.x to 8.0.3 with Events 6.3.0.
The Master Calendar and the Homepage List (using the Master Calendar as a subcalendar) were working fine prior to the upgrade.
Does anyone have a solution or workaround?

After some experimentation I have found that this problem relates to Categories.
One my Homepage List that uses the Main Calendar as a subcalendar if "Filter Events by Category" is set to "All" no Events from the subcalendar are displayed.
If I individually select the Categories the selected Category Events from the subcalendar are displayed.

Additional Follow Up:  It might also have something to do with the number of Categories.  If I select more than 6 categories nothing displays.

Djamell, I'm personally using the calendars on a small charity site as a test ground, with a larger site upgrade on hold until the issue is resolved. So far my workaround wouldn't be ideal for a client to manage, but since I am the admin on the charity site, it's okay. I check the site frequently, and when the list view calendar stops displaying data, I copy an event series, then delete the original. When I do, the list view goes back to displaying all events. At one point I thought I had discovered a consistent pattern, but further tests failed to support my hypothesis.
I'm wondering, how many categories do you use on the site you described above?
My test site had only two categories, and for most events, we didn't use them. Therefore, I had the list view set to display all. After reading your assessment above, I have just added three more categories, applied two of them to all uncategorized events, and set my list view to display the four valid categories. I'll update here with how it behaves.

When in List view says "no events to display"  although I have events.  Seems to get more buggy the more I try to fix the events.  I had them listed for a while but then it quit again.  Something linked to the categories filter.
Can probably reproduce if you create a calendar then a sub calendar and try to display different events and modify the events a bit or modify the categories.
Seemed like it was working fine until I modified the category colors..

I agree that this has to do with some relationship between subcalendars and categories.

OK, I think I finally have a handle on the problem.
In Settings, Under Display -> Event List Settings, If you use "Select Events by Number" AND you have generated many Events (usually by setting up Recurring Events that extend 20 or 30 years) the list will fail and displays "No events to display".
If I reduce the number of Days (Default is 365) the list will begin to display, BUT may not display all of the events within the range.  Continuing to reduce the number of days will display more events until it appears to get everything.
So, the bug appears to be in "Select Events by Number" with regard to how many events are contained within the range of Days.

I assume there is a limit in the # of events that can be handled in one go. I have to investigate further to see if this is a limitation can be lifted.

This didn't present a problem in earlier versions if that helps.
Thanks very much for looking into it when you can.


MINOR: correctly parse version OffsetCommitResponse version < 3

KAFKA-7903: automatically generate OffsetCommitRequest (#6583) introduced a change that cause consumer breakage when OffsetCommitResponse versions < 3 are parsed, as they do not include a throttle_time_ms field. This PR fixes the parsing by supplying the correct version to the OffsetCommitResponse constructor in AbstractResponse.parseResponse.
I have tested this change against many of the compatibility system tests, and it has fixed all the failures that I have tested thus far.

Thanks for the PR! LGTM


Dolphin: Fast collecting oysters cause ADPCM crash

When you will try to collect oysters quickly, there is big chance to get ADPCM channel used error.

I can't seem to be able to reproduce this bug. Even when trying to play sounds over and over by ramming the mines it doesn't happen. I'm aware that playing sounds over each other can cause a crash, but I remember balancing the game in such a way that this isn't quite possible. Could you be more specific on how you make this crash happen?
(Perhaps an update to ps2dev has fixed the sound overlapping crashing?)

I need to double check that.
If I fail to reproduce this bug, I will close this issue.


fix: Add missing IMDSv2 metadata restrictions for aws launch config

Add Metadata Options for Launch Configuration
Description
This PR resolves issue https://github.com/terraform-aws-modules/terraform-aws-eks/issues/1113
Currently metadata options metadata_http_endpoint, metadata_http_tokens and metadata_http_put_response_hop_limit are supported for aws_launch_templates with https://github.com/terraform-aws-modules/terraform-aws-eks/pull/938 but not for aws_launch_configuration as it has arrived later to AWS provider on https://github.com/hashicorp/terraform-provider-aws/pull/14637. This PR adds settings for IDMS v2 restrictions to aws_launch_configuration.
Checklist

[ ] CI tests are passing
[x] README.md has been updated after any changes to variables and outputs. See https://github.com/terraform-aws-modules/terraform-aws-eks/#doc-generation

what happened here? @barryib @wise-Kaas
https://github.com/terraform-aws-modules/terraform-aws-eks/pull/1301

@alialperak looks like I missed this PR and issue, wasn't attentive enough😬 Mine was duplicate of yours and looks like now it has been merged, but isn't part of release yet.

Sounds like your change has been merged already. Can we close this PR ?

Closing this PR because the requested changes are already merged. Feel free to re-open it if needed.


[Blocked] Use Pytorch MultivariateNormal

MultivariateNormal distribution is recently merged into Pytorch master. However, we are temporarily blocked by #912 . As soon as we start to use Pytorch master, I wish to use its MultivariateNormal distribution to test various changes of https://github.com/uber/pyro/pull/888. This pull request does two things:

Use Pytorch's MultivariateNormal
Rename filename of SparseMultivariateNormal to sparse_mvn.py

@fehiepsi this should now be unblocked

@fritzo So this pull request just renamed sparse_mvn and added batch calculation for variance property of mvn. :)


Make AppRegistry typesafe

Replace js.Function, jsArray etc. with actual types.
The types are given here: https://github.com/facebook/react-native/blob/master/Libraries/AppRegistry/AppRegistry.js
or in the doc: https://facebook.github.io/react-native/docs/appregistry.html

@mkotsbak  can you send a PR ?

by any chance if you know javascript send a PR here https://github.com/facebook/react-native/issues/4380 :D , it will make our life easier :)

Hey @mkotsbak, what do you exactly mean? Can you give some more info?

mkotsbak - I don't see the need for functional component in Scala. What do you gain over just using a function like this: https://github.com/mkotsbak/Javabin-SriReactNativeDemo/blob/master/mobile/src/main/scala/sri/templates/crossplatform/mobile/AlcoMeter.scala#L26-L30
I see maybe in JS you get types and default values, but that is not needed in Sri, as you have both types, default values and named parameters:
See also https://news.ycombinator.com/item?id=10348391

well above issue is not about scala functions vs functional components , while registering if they allow functional components we can pass functions instead of React.createClass with render/React.Component with render  boilerplates as mobile root.
coming to scala methods  vs functional components from HN link you posted u missed main important point

in the future, shouldComponentUpdate (or built-in memoization strategy?), you can potentially later change it to be stateful without rewriting consuming code, etc

if you're using just methods then your component will go bigger and bigger and on state updates react has to diff whole tree ..

Ah ok, yes, maybe it is able to optimize on stateless components that has not changed any input properties?

But how is this different from pure JS React native? Doesn't they also need to run the AppRegistry function?

But how is this different from pure JS React native? Doesn't they also need to run the AppRegistry function?

sorry didn't understand, can you elaborate ...

Why did you close it? Is it fixed?

Why did you close it? Is it fixed?

I don't know how other open source projects work but  i don't entertain these kind of behaviours in my project.you don't have time to answer my first question/send a two lines of simplePR but you have time to argue on some other unrelated things!. Sorry to be the bad guy In future also i'll do the same thing if its repeated again ,if you don't like it then don't use this project.

I might send a PR when I have time to make it, but when the issue is closed it is not encouraging/reminding me or anyone to do it.
I still don't know if the comment https://github.com/chandu0101/sri/issues/19#issuecomment-160133567 is related to this issue or just piggybacked on it.

I still don't know if the comment #19 (comment) is related to this issue or just piggybacked on it

i already explained that here i found that when i am testing 0.16.0-rc


Revert "Allow doctrine/dbal ^3.0 as laravel 8.15 supports it"

Reverts Laravel-Backpack/CRUD#3347

A new inspection was created.

The inspection completed: No new issues


Unable to include files in templates

Include directives in templates aren't working.
require('zappa') ->
@use 'bodyParser', 'methodOverride', @app.router, 'static','cookieParser', session: {secret: 'fnord'}, 'cookies'
@set 'view engine': 'jade', views: "#{__dirname}/views"

@get '/': -> @render 'index'

@view index: '''
	include header
	p Blah blah blah
'''

This fails with a bad file descriptor error on console. The following also fail: "include header.jade", "include views/header", "include views/header.jade". The same thing happens when trying to use an include statement in a template on disk (eg, in layout.jade).

Abandoned project, closing issue.


sequencefile: ensure key lengths are not negative

oh, duh, pull requests.  Github has those.
this is for issue #2 .

Somehow I completely missed this, sorry. In any case, I just did a major rewrite of the sequencefile code in #4, so I've added a fix to that branch.

(the commit is https://github.com/stripe/sequins/commit/eab95ab637af1003db0b1da5805af87d8da4eef3)


Add TO cdn/ksk/generate endpoint

This adds an API endpoint for what is currently only in the old Perl
UI: regenerating CDN KSK DNSSEC keys.
What does this PR do?
This adds an API endpoint for what is currently only in the old Perl
UI: regenerating CDN KSK DNSSEC keys.
The API tests don't support Riak yet, but I manually tested, verified the CDN's keys are updated as expected, previous new key becomes the expired key, and other keys aren't changed.
Adds docs for 1.4 and new endpoint.
Which TC components are affected by this PR?

[x] Documentation
[ ] Grove
[ ] Traffic Analytics
[ ] Traffic Monitor
[x] Traffic Ops
[ ] Traffic Ops ORT
[ ] Traffic Portal
[ ] Traffic Router
[ ] Traffic Stats
[ ] Traffic Vault
[ ] Other _________

What is the best way to verify this PR?
Make a request to the new route, POST /api/1.4/cdns/{name}/dnsseckeys/ksk/generate, and verify the CDN's KSK keys are updated (which can be checked at /api/1.2/cdns/name/{name}/dnsseckeys).
Check all that apply

[ ] This PR includes tests
[x] This PR includes documentation updates
[ ] This PR includes an update to CHANGELOG.md
[ ] This PR includes all required license headers
[ ] This PR includes a database migration (ensure that migration sequence is correct)
[ ] This PR fixes a serious security flaw. Read more: www.apache.org/security

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/2574/
Test FAILed.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/2576/
Test PASSed.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/2653/
Test PASSed.

Rob and I tested this together and the new code generates the keys as expected.

The documentation for this is straight-up wrong: it says it's used via a GET when it's actually a POST, labels parameters that need to be in the request body as being "query parameters", says that there are no required roles but in fact you must be "admin", and the response example isn't valid JSON

^ fixes issue above: https://github.com/apache/trafficcontrol/pull/2971


Link and Support OptiMUS

Ali, Wenzhi, and Madeleine from Stanford have invented the OptiMUS framework to create optimizaton model and MIP solvers. It can help users to easily create a supply chain solver with only a few sentences of problem definitions.
We should introduce and link to the OptiMUS project within OptiGuide (e.g., README, notebooks, etc.). We can also help users to navigate between OptiGuide and OptiMUS.

OptiMUS GitHub
OptiMUS paper

@teshnizi Let us know if you have suggestions, comments, or ideas.

Hi Beibin.
We're updating the project, so the structure will probably change a lot in the next few weeks.
We also added a web interface: https://optimus-solver.vercel.app/
Would love to have your feedback/thoughts as well.

That's great. I will take a look and try to integrate later next week~


Reward Design in Merging-v0

Hi author, I am trying to play with the merging-v0 environment. I found there is a merging_reward.
# Altruistic penalty
 for vehicle in self.road.vehicles:
       if vehicle.lane_index == ("b", "c", 2) and isinstance(vehicle, ControlledVehicle):
            reward += self.MERGING_SPEED_REWARD * \
                     (vehicle.target_speed - vehicle.speed) / vehicle.target_speed

It seems it is designed to only penalize the controlled vehicles in the merging lane, which is replicated with the Speed reward? If I want to consider the efficiency of the merging, how to design the merging efficiency reward? Any suggestions. Thank you!

Hi @Derekabc ,
Actually, this reward was originally meant for a scenario where the ego-vehicle is already on the highway, and must act in an altruistic manner by making space (i.e. slowing down or changing lane) for the vehicles on the merging lane.
Note: here, the class ControlledVehicle does that the vehicle is controlled by the agent, but rather that it is able to control its own speed and lateral position (required for target_speed to be defined), but it could be any vehicle on the road.
It is a different task than the one you are suggesting, where the ego-vehicle itself has to merge into traffic. In this case, there could be many possible designs, but all should include an efficiency term (average velocity, amount of time spent on the highway vs on the access ramp, etc.) and a safety term (avoid collisions).

Hi, I notice that in the _reward function in merge_env.py, it returns
 return utils.lmap(action_reward[action] + reward,
                          [self.COLLISION_REWARD + self.MERGING_SPEED_REWARD,
                            self.HIGH_SPEED_REWARD + self.RIGHT_LANE_REWARD],
                          [0, 1])

and the minimum reward ignores the lane change reward wihch equals to self.COLLISION_REWARD + self.MERGING_SPEED_REWARD , should I add it?

Indeed! Yes, please, that would be better.


Showcase addition: Ansible cardano-node

Showcase addition

Name: Ansible cardano-node
Description: Ansible playbook that uses best practices to help operators efficiently provision and maintain secure, optimized Cardano stake pools.
Link:   https://moaipool.github.io/ansible-cardano-node/
Source: https://github.com/moaipool/ansible-cardano-node/
Tags:

operatortool
getstarted

This addition contains an Ansible playbook for provisioning secure, optimized Cardano nodes for Stake Pool Operators (SPOs). The following is handled by the playbook (configurable by the operator):

Basic Linux security (SSH hardening, firewall setup, etc.)
Installation of a cardano-node (compiled from IOHK source)
Base configuration for block producer and relay nodes

Full documentation is provided to assist SPOs with adopting the playbook for a new or existing Cardano pool.

Got it, thanks. Updated sidebar.js and edited the doc for clarity.


Better writeups

Need to see:

[ ] Better text writeup
[ ] More fun to run on your own and see the decklist evolve
[x] Better visualizations such as exporting charts or at least better CSVs to let us visualize the gradient curves of adding and removing individual cards
[ ] A video writeup!!!

Preliminary text writeup added yesterday to readme.md.
Preliminary better visualizations added here:
https://public.flourish.studio/visualisation/18086475/


How do PURE and Alloy relate to W3C standards for conceptual modeling (RDF and OWL)? Does the open source objective also include the conceptual models about financial instruments and processes (i.e. their domain ontologies)?

I think this is done on alloy.finos.org . closing


small issue about how laravel-whoops handles NotFoundHttpException

Hi Guido,
your little package is great, I started using it in my latest l5 app, however I may have spotted some
behaviour which might not be desired (well at least in my case):

I created a new l5 app through the laravel command
I pulled laravel-whoops in through composer
I added 'Gvb\Whoops\ServiceProvider', to app.php
it works ( great :)
I define a 404 file: resources/views/errors/404.blade.php
I go to some url like laravel5.dev/nonexistingurl
I see laravel-whoops output:
Symfony \ Component \ HttpKernel \ Exception \ NotFoundHttpException
(in the "code" box I see:)  throw new NotFoundHttpException;

so this Exception is being handled by laravel-whoops, however in my opinion it should not but instead the 404 view should be rendered if a 404 error page exists.
Strangely I added  'Symfony\Component\HttpKernel\Exception\NotFoundHttpException'  to
protected $dontReport = [ 'Symfony\Component\HttpKernel\Exception\HttpException'
but that did not result in any effect.
I then discovered in mattstaufer's blog:
http://mattstauffer.co/blog/bringing-whoops-back-to-laravel-5
That he added this little thing to his render() method:
if ($this->isHttpException($e))
{      return $this->renderHttpException($e);   }
Now, when I add this to your render() method before the line if (config('app.debug')) then I will get the 404 page.
If I configure app.debug to false and your package is enabled in config/app.php I still don't get the 404 page.
It shows up immediately when I disable your package.
So if I'd use your package like it is right now I would have to have different app.php files for dev and production - which would be mad.
What do you think, could you review my problem and "solution" for this and maybe put it into your package?
I was using laravel/framework (v5.0.0) and updated to laravel/framework (v5.0.2) today - the behaviour existed in both versions.
best,
Marco.

Thanks for the detailed report, I'll look into it.

cool, looking forward to your findindgs!


Most recent update prevents addUsers from creating "root" users on VMs

Thanks for the update to fix the alloc error.  This (or maybe the engine change) seems to introduce a bug where only the first VM created can add a root user.  Can be seen in the destiny.mis pack.  The only root user added is the one on the area6 VM.

Sorry about that! I thought I would change the behaviour of addUser slightly, but forgot why I had it that way originally. :)
Hopefully this is fixed now. Please download the new source and confirm, and I will close this out.

Yep, that fixed the root creation issue.  Thanks!


Both the base image and push image addresses are HTTP and do not work

Environment:

*Jib version: 2.1.0
*Build tool: maven
*OS: mac

Description of the issue:

from image http and to image http,build image failure(allowInsecureRegistries value is true),can't use useCurrentTimestamp,The documentation does not provide an introduction.
The document does not describe the setting sendCredentialsOverHttp
If you can only use HTTPS which is most unreasonable, how can I get the HTTPS certificate on the Intranet (even less appropriate for self-signed certificates)

jib-maven-plugin Configuration:
 <plugin>
    <groupId>com.google.cloud.tools</groupId>
    <artifactId>jib-maven-plugin</artifactId>
    <version>2.1.0</version>
    <configuration>
        <from>
            <image><IP_ADDRESS>:20069/library/openjdk:11.0.6-jre-slim</image>
        </from>
        <to>
            <image><IP_ADDRESS>:20069/depttwo/${project.name}:${project.version}</image>
        </to>
        <container>
            <ports>
                <port>8080</port>
            </ports>
            <mainClass>com.Application</mainClass>
            <environment>
                <TZ>Asia/Shanghai</TZ>
            </environment>
        </container>
        <allowInsecureRegistries>true</allowInsecureRegistries>
    </configuration>
    <executions>
        <execution>
            <phase>package</phase>
            <goals>
                <goal>build</goal>
            </goals>
        </execution>
    </executions>
</plugin>

Log output:
Failed to execute goal com.google.cloud.tools:jib-maven-plugin:2.1.0:build (default) on project security-manage: Build image failed, perhaps you should use a registry that supports HTTPS so credentials can be sent safely, or set the 'sendCredentialsOverHttp' system property to true

Additional Information:

We discourage the use of sendCrendentialsOverHttp.
However, you can find information on it here: https://github.com/GoogleContainerTools/jib/issues/668 and here: https://github.com/GoogleContainerTools/jib/blob/master/docs/faq.md#how-can-i-diagnose-problems-pulling-or-pushing-from-remote-registries

@loosebazooka HTTP is definitely not an exception. There has to be a good solution.

@pog2g I understand the pain, but people should know that, over plain-HTTP, your username and password are passed in plain test, and that anyone in your intranet can easily see them. For example, it is extremely easy for your colleagues to see your bare password by just running a simple network tool.
A Guide to Sniffing Out Passwords and Cookies says

What Wireshark does is sniff out the packets being passed around your network—whether they're heading to or from your computer or to or from other computers on the same network as you—and let you poke around at the data passed back and forth in these packets.
When you log into a web site, for example, your browser sends what's called a POST request to a server somewhere on there on the internet. Wireshark can capture that POST request, and if you know where to look, you can find your username and password in plain text—assuming you're logging into a site that isn't using a secured HTTPS connection,

Similar to how it can capture usernames and passwords sent over HTTP connections, Wireshark can also capture cookies for you (or some other nefarious sniffer)

You wouldn't advertise your username/password to your colleges, would you? We are trying to make users who are not familiar with security aware the consequences of sending credentials over HTTP by requiring to set -DsendCredentialsOverHttp.

Although can self-sign certificate, but how to deal with domain name resolution

Forgot to say: you don't need self-signed certificate. When using <allowInsecureRegistries>, Jib does send credentials even if it cannot verify the server. Insecure HTTPS (i.e., TLS/SSL verification failure) is still susceptible for attack, but at least it is not any near the degree of using plain HTTP. As long as you are not communicating over plain HTTP (even if it is insecure HTTPS), Jib will send credentials and you don't need -DsendCredentialsOverHttp. You just need to make your registry speak HTTPS, even if it is insecure.

@chanseokoh I think it's a little overthinking, since it's local, I certainly don't need to worry about security. Moreover, I used the jib of self-signed certificate to solve the problem, but it brought more trouble, because I needed to deal with the certificate problem when k8s and docker pulled the mirror, and everyone needed to deal with it. What's more, using HTTP offers more options. In addition, jib has alternative products. Why do I have to use the jib to bring me so many unnecessary troubles? I just recommend keeping HTTP

@chanseokoh Unless you can be sure that other systems are going your way, such as k8s or docker,There is no need to deal with pulling  image

@GoogleContainerTools/java-tools-build maybe it's not too much to ask to make sendCredentialsOverHttp configurable in pom.xml and build.gradle (which will be effective only when allowInsecureRegistries is set and the registry is plain HTTP).

@chanseokoh
At present, the internal system of self-signed certificate is deadly, k8s, docker, kubesphere and Jenkins are not allowed to use, directly prompt: 'x509: certificate signed by unknown authority'. That's the cost of not getting the jib to use HTTP

I think that's a good problem to discuss. Local development normally are more "light".
Maybe a specificly feature to " local development ", printing a lot of warnings with problems to use that.
Jib need to be secure at default, but it's a problem transform it "insecure" if the user need that?

We realized we have an open issue to allow fine-grained control of allowInsecureRegistries and sendCredentialsOverHttp (#1923). I will close this as a duplicate of #1923.
For now, please use -DsendCredentialsOverHttp.

We realized we have an open issue to allow fine-grained control of allowInsecureRegistries and sendCredentialsOverHttp (#1923). It will make both of them configurable in pom.xml and build.gradle. Once fixed, you will no longer required to pass sendCredentialsOverHttp on the command line. I will close this as a duplicate of #1923.
For now, please use -DsendCredentialsOverHttp.

I want to ask how to set this configuration in pom？

@loosebazooka HTTP is definitely not an exception. There has to be a good solution.
Internal use, how to set HTTPS. If so, you might as well write your own dockerfile（Although can self-sign certificate, but how to deal with domain name resolution）
It is even more troublesome if -dsendcredentialsoverhttp =true is required from the command line. You need to change the idea tool Settings. It's several times more complicated than writing a dockerfile, and it's not universal

hello，
how can this problem be solved？

@wxywizard you just need to set the system property sendCredentialsOverHttp=true for the JVM running Maven. There are variety of ways to set system properties; one of easy ways is to pass it on the command line when running Maven, like mvn -DsendCredentialsOverHttp ....
However, if you do want to set system properties in pom.xml, you can use properties-maven-plugin. For example,
<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>properties-maven-plugin</artifactId>
    <version>1.0.0</version>
    <executions>
        <execution>
            <goals>
                <goal>set-system-properties</goal>
            </goals>
            <configuration>
                <properties>
                    <property>
                        <name>sendCredentialsOverHttp</name>
                        <value>true</value>
                    </property>
                </properties>
            </configuration>
        </execution>
    </executions>
</plugin>

The set-system-properties is bound to the initialize Maven phase, so make sure you always run at least that phase. For example, mvn jib:build will not work, but mvn initialize jib:build, mvn compile jib:build will work.

in 2.6.0 .it not work

@wxywizard you just need to set the system property sendCredentialsOverHttp to true for the JVM running Maven. There are variety of ways to set system properties; one of easy ways is to pass it on the command line when running Maven, like mvn -DsendCredentialsOverHttp ....
However, if you do want to set system properties in pom.xml, you can use properties-maven-plugin. For example,
<plugin>
    <groupId>org.codehaus.mojo</groupId>
    <artifactId>properties-maven-plugin</artifactId>
    <version>1.0.0</version>
    <executions>
        <execution>
            <goals>
                <goal>set-system-properties</goal>
            </goals>
            <configuration>
                <properties>
                    <property>
                        <name>sendCredentialsOverHttp</name>
                        <value>true</value>
                    </property>
                </properties>
            </configuration>
        </execution>
    </executions>
</plugin>

The set-system-properties is bound to the initialize Maven phase, so make sure you always run at least up to that phase. For example, mvn jib:build will not work, but mvn initialize jib:build, mvn compile jib:build, or mvn package jib:build will work.

in 2.6.0 .it not work

@Bryce-huang it works for me. Note I'm using jib-maven-plugin:2.6.0 below. Make sure you see in the Maven output that the properties-maven-plugin:1.0.0:set-system-properties goal is being executed.
$ mvn -Djib.to.image=localhost:5000/foo initialize compile jib:build
...
[INFO] --- properties-maven-plugin:1.0.0:set-system-properties (default) @ helloworld ---
[INFO] Set 1 system property
...
[INFO] --- jib-maven-plugin:2.6.0:build (default-cli) @ helloworld ---
[WARNING] Authentication over HTTP is enabled. It is strongly recommended that you do not enable this on a public network!
...
[INFO] Containerizing application to localhost:5000/foo...
...
[WARNING] Cannot verify server at https://localhost:5000/v2/. Attempting again with no TLS verification.
[WARNING] Failed to connect to https://localhost:5000/v2/ over HTTPS. Attempting again with HTTP.
...
[INFO] Built and pushed image as localhost:5000/foo
...
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  3.765 s
[INFO] Finished at: 2020-11-13T10:02:57-05:00
[INFO] ------------------------------------------------------------------------

On the other hand, if I flip the value in properties-maven-plugin, it fails.
             <configuration>
                 <properties>
                     <property>
                         <name>sendCredentialsOverHttp</name>
-                        <value>true</value>
+                        <value>false</value>
                     </property>
                 </properties>
             </configuration>

$ mvn -Djib.to.image=localhost:5000/foo initialize compile jib:build
[INFO] Scanning for projects...
...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.134 s
[INFO] Finished at: 2020-11-13T10:07:36-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:2.6.0:build (default-cli) on project helloworld: Build image failed, perhaps you should use a registry that supports HTTPS so credentials can be sent safely, or set the 'sendCredentialsOverHttp' system property to true: Required credentials for localhost:5000/foo were not sent because the connection was over HTTP -> [Help 1]

When in doubt, try executing only the initialize cycle with debug logs (-X). You should see something like this:
$ mvn -X initialize
...
[DEBUG] Configuring mojo org.codehaus.mojo:properties-maven-plugin:1.0.0:set-system-properties from plugin realm ClassRealm[plugin>org.codehaus.mojo:properties-maven-plugin:1.0.0, parent: sun.misc.Launcher$AppClassLoader@5c647e05]
[DEBUG] Configuring mojo 'org.codehaus.mojo:properties-maven-plugin:1.0.0:set-system-properties' with basic configurator -->
[DEBUG]   (f) properties = {sendCredentialsOverHttp=true}
[DEBUG] -- end configuration --
[DEBUG] Setting system properties:
[DEBUG] - sendCredentialsOverHttp = true
[INFO] Set 1 system property
...

Note the lines
[DEBUG] Setting system properties:
[DEBUG] - sendCredentialsOverHttp = true
[INFO] Set 1 system property