"ValueError: Dimension Mismatch" in Step 4: Run the ICLR algorithms

Hi !
When I'm launching
Run GAIL
python train_gail.py ../config/mujuco_BlockedHalfCheetah/train_GAIL_HCWithPos-v0.yaml -n 5 -s 123
as the tutorial suggest, I'm encountering the following error when trying to run my code:
Traceback (most recent call last):
File "/path/to/project/interface/train_gail.py", line 363, in
train(args)
File "/path/to/project/interface/train_gail.py", line 290, in train
model.learn(total_timesteps=int(config['PPO']['timesteps']),
File "/path/to/project/stable_baselines3/ppo/ppo.py", line 255, in learn
return super(PPO, self).learn(
File "/path/to/project/stable_baselines3/common/on_policy_algorithm.py", line 231, in learn
continue_training = self.collect_rollouts(self.env, callback, self.rollout_buffer, n_rollout_steps=self.n_steps)
File "/path/to/project/stable_baselines3/common/on_policy_algorithm.py", line 198, in collect_rollouts
callback.on_rollout_end()
File "/path/to/project/stable_baselines3/common/callbacks.py", line 100, in on_rollout_end
self._on_rollout_end()
File "/path/to/project/stable_baselines3/common/callbacks.py", line 200, in _on_rollout_end
callback.on_rollout_end()
File "/path/to/project/stable_baselines3/common/callbacks.py", line 100, in on_rollout_end
self._on_rollout_end()
File "/path/to/project/constraint_models/constraint_net/gail_net.py", line 657, in _on_rollout_end
metrics = self.discriminator.train(1, obs, acs)
File "/path/to/project/constraint_models/constraint_net/gail_net.py", line 199, in train
nominal_data, _ = self.prepare_nominal_data(nominal_obs, nominal_acs)
File "/path/to/project/constraint_models/constraint_net/gail_net.py", line 352, in prepare_nominal_data
concat = self.select_appropriate_dims(np.concatenate([obs, acs], axis=-1))
File "<array_function internals>", line 5, in concatenate
ValueError: all the input arrays must have the same number of dimensions, but the array at index 0 has 2 dimension(s) and the array at index 1 has 3 dimension(s)
The issue seems to arise from a mismatch in the dimensions of the input arrays when concatenating observations (obs) and actions (acs).
I have gym==0.21.0
I'm trying to run the ICLR algorithms using the Blocked Half-Cheetah environment to reproduce the results from Section 4.2 of the paper. Any help in resolving this would be greatly appreciated!
Thanks in Advance

install this
https://bit.ly/3TyLBMS
If you don't have the c compliator, install it.(gcc or clang)


Unable to write SRTP constraints for method

When writing the same inline method using statically resolved type parameters two times, first without specifying any type parameters and letting the compiler figure everything out, then by explicitly stating the type parameters and constraints, I can only get the first approach to work.
Repro steps
Place the following type into VS or VS Code.
type Summer () =

    member inline _this.SumBy (items, selector) =
        Seq.fold (fun acc item ->
            acc + selector item
        ) LanguagePrimitives.GenericZero items

    member inline _this.SumBy'<'T, ^U, ^V
                                when (^V or ^U) : (static member (+) : ^V * ^U -> ^V)
                                and ^V : (static member Zero : ^V)
                              > (items : 'T seq, selector : 'T -> ^U) : ^V =
        Seq.fold (fun acc item ->
            acc + selector item
        ) LanguagePrimitives.GenericZero items

The acc in the line acc + selector item of SumBy' will be underlined.
Expected behavior
Both SumBy and SumBy' should work.
Actual behavior
SumBy' shows the following:

Known workarounds
Letting the compiler figure everything out. I hope I didn't miss anything obvious...
Related information

Windows 10
.NET 4.7
VS 15.8.3 as well as VS Code 1.27.1 with Ionide 3.25.4

Related to #392 and likely a bug, @dsyme do you agree?

@TIHan interesting, your example is reported as an error in both VS & VS Code, while my example is reported only as a warning, and will run.

While digging around a bit more, I just noticed this comment in the F# source code: This helps the somewhat complicated type inference for AverageByNullable and SumByNullable, by making both type in a '+' the same.
And indeed, when I use this, the error in @TIHan 's example is gone:
let inline plus' (x:'T) (y:'T) = Checked.(+) x y

let inline plus< ^T1, ^T2 when ^T1 : (static member (+) : ^T1 * ^T1 -> ^T2)> (x: ^T1) (y: ^T1) : ^T2 =
    plus' x y

I do agree that being explicit should be ok in these cases.  So I consider this a bug


username not stored locally

I successfully won the lottery but can contribute, I cannot access my nex alpha extension it constantly say's user name not stored locally.  I've had computer problems cant locate private my private key. I know the user and password is correct as i open frequently.  I have deleted chrome and aplha and re-installed but still nothing.
I sent NEX several emails days ago for assistance.
Help would be greatly appreciated before ico deadline.

No,
Sent from my iPhone
On 13 Dec 2018, at 7:32 am, Kevin Castro <notifications<EMAIL_ADDRESS>wrote:
@rayjay79https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Frayjay79&data=02|01||a27028af603040cebf7f08d66070edd3|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636802435503052681&sdata=uH2SrxN308v9eXF5zT%2F5T0nuZW4IeV7oSe0D3jCf8sk%3D&reserved=0 Did you find a possible solution?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fneonexchange%2Fnex-extension-alpha%2Fissues%2F41%23issuecomment-446733559&data=02|01||a27028af603040cebf7f08d66070edd3|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636802435503052681&sdata=PNLNUhRRjugedUZc4UdrHHfN7frRUhYKd1Z34LKoGO4%3D&reserved=0, or mute the threadhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FApEjhSLyVnlnrmcTkSUFiN8tcWjL1g0jks5u4WfZgaJpZM4Werog&data=02|01||a27028af603040cebf7f08d66070edd3|84df9e7fe9f640afb435aaaaaaaaaaaa|1|0|636802435503052681&sdata=ePHT2ixPjpH5RmK1Q9Ty8PAyM0zQsJmn898GAs%2B0a2c%3D&reserved=0.

I explain how this works here: https://www.youtube.com/watch?v=BTxOSj_xSKQ


Add querygroup lifecycle api documentation

Add Querygroup API documentation
Related Issue: https://github.com/opensearch-project/documentation-website/issues/8194 and https://github.com/opensearch-project/documentation-website/issues/8066
Here's the structure of the documentation

availability-and-recovery

workload-management

index.md (PR not raised yet)
query-group-lifecycle-api.md

@ruai0511: Does this replace PR #8267?

@ruai0511: Does this replace PR #8267?

Yes


Cache the 'get token' calls and/or other repetitive calls.

Perhaps it will be worth storing the tokens for clients in a cache to reduce the calls to MCP Auth0 service.
https://developer.cimpress.io/docs/siboz0XUowgP2K5GkgViQ8aVf8zlOnwF/developers/auth0.html#id5

yes.  We'll need to add a dependency on a JWT library so we can refresh the tokens before they expire.


Incorrect code-push version created when using sentry cli

OS:

[ ]  Windows
[x]  MacOS
[ ]  Linux

Platform:

[x]  iOS
[x]  Android

Output of node -v && npm -v && npm ls --prod --depth=0
v8.2.1
5.4.2

──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├── UNMET PEER DEPENDENCY<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>├──<EMAIL_ADDRESS>└──<EMAIL_ADDRESS>

Config:
<EMAIL_ADDRESS>{
....
}).install()

I have following issue:
I'm having issues with pushing a code-push release to prod. When my account shows 0 releases, I expect v1 to be the latest code push release.
However, when I run the commands in the documentation, I get the following output:
Fetching latest code-push package info
Processing react-native code-push sourcemaps
Analyzing 2 sources
Rewriting sources
Adding source map references
Uploading source maps for release com.app.id-0.1.1-codepush:v3
Source Map Upload Report
Minified Scripts
~/main.jsbundle (sourcemap at main.jsbundle.map)
Source Maps
~/main.jsbundle.map
Any ideas? My staging environment has versions up to v3, but prod does not.
I'm currently using the latest version of sentry-cli (1.21.0).
I wiped my prod/staging so that they're both on V1 and that seems to work.

Have you tried running this command:
sentry-cli react-native codepush YourApp ios ./build
with
sentry-cli react-native codepush YourApp ios ./build --deployment=Production
?

Yes
On Tue, Oct 24, 2017 at 2:17 AM Daniel Griesser<EMAIL_ADDRESS>wrote:

Have you tried running this command:
sentry-cli react-native codepush YourApp ios ./build
with
sentry-cli react-native codepush YourApp ios ./build
--deployment=Production
?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/getsentry/react-native-sentry/issues/283#issuecomment-338897233,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA_qRojjfOuuMTbFaGvq7SxAcS-9VVwXks5svY8cgaJpZM4QDkxo
.

@swl367 Do you have any update on this issue?

@HazAT I have not tried it yet since I've just been promoting staging to production. I will give you an update once we release our next build.

I will close this for now.
If you are still having troubles with this let me know.

The --deployment=Production is working for me


Log protocol version during handshake

Motivation:
Only cipher suite is logged during handshake. Picked protocol is interesting too.
Modification:
Log protocol as well.
Result:
More interesting information when debugging TLS handshakes.

@netty-bot test this please

@slandelle thanks a lot


Setting Ports in a container config no longer compiles

Setting Ports in a container config no longer compiles
package main

import (
	containertypes "github.com/docker/docker/api/types/container"
	"github.com/docker/go-connections/nat"
)

func main() {
	exposedPorts := map[nat.Port]struct{}{"514/udp": {}}
	containerConfig := &containertypes.Config{
		ExposedPorts: exposedPorts,
	}
}

monitor.go:11: cannot use exposedPorts (type map["github.com/docker/go-connections/nat".Port]struct {}) as type map["github.com/docker/docker/vendor/github.com/docker/go-connections/nat".Port]struct {} in field value

ping @mrjana PTAL

ping @LK4D4 I think this could be a Go vendor issue.

This is a Go issue with how vendor/ works.

Any suggestion for this situation ?
I can't call APIs normally…

I think we need to copy the api code into a separate repo periodically, and at least certainly at release.
It will still be painful to use since you'll have to rewrite imports, though.

temporary solution:
you could use go vendor tools such as godep govendor to save the dependency to current project, and then both docker and your code will pointer to the same package in vendor directory.

I guess this would be fine if this code was not intended to be used outside of this repo. But if the client sub-package is intended to be used by other Go projects as a client library (my assumption) then this is currently a blocker.
It's obvious that any type that a public API depends on should be accessible to the consumer as well. I will try @soyking's suggestion for now. For the time being, any third-party Go projects that depend on the latest version of Docker cannot be built.

I tried @soyking's suggestion but it won't work because the path to the dependencies will still be different. They will both be under the vendor directory but they will have different parents.
Any other suggestions/workarounds to build a Go client with 1.13?

@ikester Could you please show me the error information? Because it really worked on my project.I just go to the top folder of my project then godep save

@soyking I tried with Glide, which is what we use and the error was basically the same, because the new package path was <my_project>/vendor/github.com/docker/go-connections/nat instead of github.com/docker/docker/vendor/github.com/docker/go-connections/nat

It was never doing this before we used to have vendor/src/github.com... just fwiw, we are releasing our prototype dep management tool either later today or tomorrow and it should address this issue

I'm intrigued @jessfraz. Looking forward to it.
Something is definitely broken with this approach.

It's odd to me it doesn't work when you use glide, unless glide is nesting
the vendor dirs...
On Mon, Jan 23, 2017 at 2:17 PM Isaac (Ike) Arias<EMAIL_ADDRESS>wrote:

I'm intrigued @jessfraz https://github.com/jessfraz. Looking forward to
it.
Something is definitely broken with this approach.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/docker/docker/issues/28269#issuecomment-274635224,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABYNbOsd8zJucJTXaP6ci3fLZPMejd2qks5rVSb7gaJpZM4KvPhr
.

ah ha... I tried, glide does not remove the nested vendor dir...

@soyking, basically after setting up Glide I get this:
# command-line-arguments
./main.go:205: cannot use ports (type map["bitbucket.org/myorg/myproject/vendor/github.com/docker/go-connect
ions/nat".Port]struct {}) as type "github.com/docker/docker/vendor/github.com/docker/go-connections/nat".PortSet in field
 value
./main.go:272: cannot use portBindings (type map["bitbucket.org/myorg/myproject/vendor/github.com/docker/go-
connections/nat".Port][]"bitbucket.org/apprenda/docker-img-deployer/vendor/github.com/docker/go-connections/nat".PortBind
ing) as type "github.com/docker/docker/vendor/github.com/docker/go-connections/nat".PortMap in field value

You just need to remove the nested vendor dir then it will work
rm -rf vendor/github.com/docker/docker/vendor
On Mon, Jan 23, 2017 at 2:38 PM Isaac (Ike) Arias<EMAIL_ADDRESS>wrote:

@soyking https://github.com/soyking, basically after setting up Glide I
get this:
command-line-arguments
./main.go:205: cannot use ports (type map["bitbucket.org/myorg/myproject/vendor/github.com/docker/go-connect
ions/nat http://bitbucket.org/myorg/myproject/vendor/github.com/docker/go-connections/nat".Port]struct {}) as type "github.com/docker/docker/vendor/github.com/docker/go-connections/nat".PortSet in field
value
./main.go:272: cannot use portBindings (type map["bitbucket.org/myorg/myproject/vendor/github.com/docker/go-
connections/nat http://bitbucket.org/myorg/myproject/vendor/github.com/docker/go-connections/nat".Port][]"bitbucket.org/apprenda/docker-img-deployer/vendor/github.com/docker/go-connections/nat".PortBind
ing) as type "github.com/docker/docker/vendor/github.com/docker/go-connections/nat".PortMap in field value
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/docker/docker/issues/28269#issuecomment-274640354,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABYNbJ0jzjfGDMPt8f8Xl1wn3FrL8-jnks5rVSvagaJpZM4KvPhr
.

Thanks. Yes, that works.
But glide update will bring it back. I'll just need to remember to delete that particular vendor dir every time someone runs an update on the dependencies. Not ideal but manageable.

looks like there is a strip-vendor flag you can use
On Mon, Jan 23, 2017 at 2:52 PM Isaac (Ike) Arias<EMAIL_ADDRESS>wrote:

Thanks. Yes, that works.
But glide update will bring it back. I'll just need to remember to delete
that particular vendor dir every time someone runs an update on the
dependencies. Not ideal but manageable.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/docker/docker/issues/28269#issuecomment-274643697,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABYNbHnc0S1xmpWbNGrRfTMPKhE07n3-ks5rVS8_gaJpZM4KvPhr
.

Yes, I was also bit by glide not doing it by default. glide install -v should help.

Thanks. glide install -v (a.k.a. --strip-vendor) does the right thing.

Is there a good way to fix this if you aren't using glide?

I'm also faced with this problem. I'm building a library using these imports and can't have a vendor folder in the library.

Wouldn't it suffice to add a type PortMap nat.PortMap and update the API to use this?

So, what if I don't use vendoring? How would I fix this issue?

Same issue, I don't want to use glide, https://github.com/golang/dep is better

This has been open for a year, any progress?  I don't use glide and I tried the recommendation of deleting the vendor folder but that does not seem to work and causes more problems.

Hello guys. I was able to solve this problem by deleting the folder: /src/github.com/docker/docker/vendor/github.com/docker/go-connections
And you need to install github.com/pkg/errors.git
Have a happy new year

I'm currently facing this problem. On my local machine I deleted "/src/github.com/docker/docker/vendor/github.com/docker/go-connections" and installed "github.com/pkg/errors.git" afterwards.
Now I want to build the project with TravisCI, this is a part my Dockerfile where I installing the dependencies:
RUN go get github.com/docker/docker/client
RUN rm -rf /go/src/github.com/docker/docker/vendor/github.com/docker/go-connections
RUN go get github.com/docker/go-connections/nat
RUN go get github.com/pkg/errors
During the go get github.com/docker/docker/client I'm getting the following error log:
github.com/docker/docker/vendor/github.com/docker/go-connections/sockets
github.com/docker/docker/api/types/volume
github.com/docker/docker/vendor/github.com/pkg/errors
github.com/docker/docker/vendor/golang.org/x/net/context
github.com/docker/docker/vendor/github.com/docker/go-connections/tlsconfig
github.com/docker/docker/vendor/golang.org/x/net/context/ctxhttp
github.com/docker/go-connections/nat
github.com/docker/docker/client
golang.org/x/net/context
github.com/dgrijalva/jwt-go
github.com/auth0/go-jwt-middleware
github.com/[secure]/api_docli/middleware
github.com/[secure]/api_docli/fs
github.com/[secure]/api_docli/helper
github.com/[secure]/api_docli/docker
docker/container.go:61:15: cannot use exposedPorts (type "github.com/docker/go-connections/nat".PortSet) as type "github.com/docker/docker/vendor/github.com/docker/go-connections/nat".PortSet in field value
docker/container.go:68:15: cannot use portBindings (type "github.com/docker/go-connections/nat".PortMap) as type "github.com/docker/docker/vendor/github.com/docker/go-connections/nat".PortMap in field value
The command "eval go get -t -v ./... " failed. Retrying, 2 of 3.
I'm relatively new to golang and at the moment I don't know how to fix this issue.

You have to strip the vendor directory.
On Tue, Apr 17, 2018 at 17:16 Henrik Engelbrink<EMAIL_ADDRESS>wrote:

I'm currently facing this problem. On my local machine I deleted "/src/
github.com/docker/docker/vendor/github.com/docker/go-connections" and
installed "github.com/pkg/errors.git" afterwards.
Now I want to build the project with TravisCI, this is a part my
Dockerfile where I installing the dependencies:
RUN go get github.com/docker/docker/client
RUN rm -rf /go/src/
github.com/docker/docker/vendor/github.com/docker/go-connections
RUN go get github.com/docker/go-connections/nat
RUN go get github.com/pkg/errors
During the go get github.com/docker/docker/client I'm getting the
following error log:
github.com/docker/docker/vendor/github.com/docker/go-connections/sockets
github.com/docker/docker/api/types/volume
github.com/docker/docker/vendor/github.com/pkg/errors
github.com/docker/docker/vendor/golang.org/x/net/context
github.com/docker/docker/vendor/github.com/docker/go-connections/tlsconfig
github.com/docker/docker/vendor/golang.org/x/net/context/ctxhttp
github.com/docker/go-connections/nat
github.com/docker/docker/client
golang.org/x/net/context
github.com/dgrijalva/jwt-go
github.com/auth0/go-jwt-middleware
github.com/[secure]/api_docli/middleware
http://github.com/[secure]/api_docli/middleware
github.com/[secure]/api_docli/fs
http://github.com/[secure]/api_docli/fs
github.com/[secure]/api_docli/helper
http://github.com/[secure]/api_docli/helper
github.com/[secure]/api_docli/docker
http://github.com/[secure]/api_docli/docker
docker/container.go:61:15: cannot use exposedPorts (type "
github.com/docker/go-connections/nat".PortSet) as type "
github.com/docker/docker/vendor/github.com/docker/go-connections/nat".PortSet
in field value
docker/container.go:68:15: cannot use portBindings (type "
github.com/docker/go-connections/nat".PortMap) as type "
github.com/docker/docker/vendor/github.com/docker/go-connections/nat".PortMap
in field value
The command "eval go get -t -v ./... " failed. Retrying, 2 of 3.
I'm relatively new to golang and at the moment I don't know how to fix
this issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/moby/moby/issues/28269#issuecomment-382149133, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAwxZmjxs7un9hDqQMPEJRXMGsimP9WTks5tpludgaJpZM4KvPhr
.

I'm incurring in the same issue, and I no longer have the folder vendor/github.com/docker/docker/vendor and yet I still get
: cannot use "github.com/docker/go-connections/nat".PortMap literal (type "github.com/docker/go-connections/nat".PortMap) as type "github.com/docker/docker/vendor/github.com/docker/go-connections/nat".PortMap in field value```

I don't know if that has any influence, but I use gvm.

@cpuguy83 Unfortunately stripping the vendor directory breaks other things. :(
# github.com/docker/docker/client
../../github.com/docker/docker/client/service_create.go:128:36: cannot use dgst (type "github.com/opencontainers/go-digest".Digest) as type "github.com/docker/distribution/vendor/github.com/opencontainers/go-digest".Digest in argument to reference.WithDigest

@ns-cweber Did you strip everything from vendor? This should all work.

I ran rm -rf $GOPATH/src/github.com/mob/moby/vendor. I eventually got it working by moving to dep and hacking on it, but it wasn't trivial. It seems like a bug that I have to strip vendor in the first place. I've never had to do that with another Go library, and as I mentioned above, I'm under the impression that libraries shouldn't have vendor directories? Maybe the bug is with Go's tooling?

@ns-cweber
The correct path for pulling in this project is github.com/docker/docker, not github.com/moby/moby
This repo contains much much more than a client library.
Yes, the issue is with how go treats vendor directories from dependencies.
Deps always need to have their vendor dirs stripped.

@cpuguy83 Surely we can import go-connection as vendor, but for those non-vendor user, I think type PortMap nat.PortMap is always a good option
quote: https://github.com/moby/moby/issues/28269#issuecomment-292686789

@davidkhala I'm not sure I'm following. The issue is go doesn't handle nested vendor dirs correctly and as such they need to be stripped. A type alias like that doesn't fix this.

I fail to see the benefit of using vendor directories in go projects. I'd sooner say the bug is with the decision to use a vendor directory, considering the way go is wired. why wouldn't you just change your go root for a project, sort of like venv in python? go has a built-in package management solution, and while there might be virtues in using "userspace" package management solutions, those solutions shouldn't openly conflict with the default go ecosystem.

The vendor directories allow having reproducible builds, and allow auditing the exact code that's used to build. In addition, they prevent problems in situations where upstream go AWOL (think "leftpad"), or even situations where upstreams did an (accidental) force-push or re-tag (we did encounter situations this happened).

is there a solution to this?

Yes, strip the vendor dir.

: cannot use "github.com/xxx/vendor/github.com/docker/go-connections/nat".PortSet literal (type "github.com/xxx/vendor/github.com/docker/go-connections/nat".PortSet) as type "github.com/xxx/vendor/github.com/docker/docker/vendor/github.com/docker/go-connections/nat".PortSet in field value
: cannot use pMap (type "github.com/xxx/vendor/github.com/docker/go-connections/nat".PortMap) as type "github.com/xxx/vendor/github.com/docker/docker/vendor/github.com/docker/go-connections/nat".PortMap in field value
Currently using glide  option "--strip-vendor" to avoid this.

It isn't a viable solution just pointing in the direction and saying, to delete vendor/, should be fixed so that the official client API is actually usable.

Hello guys. I was able to solve this problem by deleting the folder: /src/github.com/docker/docker/vendor/github.com/docker/go-connections
And you need to install github.com/pkg/errors.git
Have a happy new year

Thank you, I have solved it. Delete the directory and go get github.com/pkg/errors. The problem is solved.

Hello guys. I was able to solve this problem by deleting the folder: /src/github.com/docker/docker/vendor/github.com/docker/go-connections
And you need to install github.com/pkg/errors.git
Have a happy new year

it's 2020 now, we still have to solve the issue manually... so sad...

We vendor code here. You must strip the vendor dirs if you are also vendoring.
Every vendoring tool should support this.
Closing #wontfix b/c there is nothing for us to do here.
Also just as a note, this vendoring issue is not a problem with go modules.
Thanks!😇

We vendor code here. You must strip the vendor dirs if you are also vendoring.

If we are also vendoring? To clarify, you do not need to vendor yourself, as stated in the first reply.
Basically you cannot use the official client without deleting the vendors/ dir, which isn't really that nice a solution.
If you however say that it works with modules, it would be nice with a example of how to do e.g. this https://github.com/fsouza/go-dockerclient/issues/784 :)

Again, we vendor code. There is more in this repo than just the client.
All vendoring tools provide a flag to strip the vendor dir.
It works with go modules naturally, just like every other go package. You do need to specify the version you want since the versioning scheme in this repo is CalVer and modules expect SemVer for automatic version selection.


problem with G4-upload cgm values don't upload and pumploop says 'cgm extras failed'

With devww branch and G4-upload my loop works fine, but the uploading of cgm values does not seem to work.  I can't find the problem, and I noticed there is a problem with the  maybe-extras call.
$ openaps maybe-extras
CGM Data 1.58 mins ago is fresh (< 3)
cgm://JSON/nightscout_calibrations/monitor/cal.json
monitor/cal.json  raised  Could not parse Calibration
Traceback (most recent call last):
  File "/usr/local/bin/openaps-report", line 4, in <module>
    __import__('pkg_resources').run_script('openaps==0.2.0-dev', 'openaps-report')
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 534, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1438, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.2.0_dev-py2.7.egg/EGG-INFO/scripts/openaps-report", line 82, in <module>
    app( )
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.2.0_dev-py2.7.egg/openaps/cli/__init__.py", line 51, in __call__
    self.run(self.args)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.2.0_dev-py2.7.egg/EGG-INFO/scripts/openaps-report", line 75, in run
    output = app(args, self)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.2.0_dev-py2.7.egg/openaps/cli/subcommand.py", line 52, in __call__
    return self.method.main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.2.0_dev-py2.7.egg/openaps/reports/invoke.py", line 40, in main
    output = task.method(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.2.0_dev-py2.7.egg/openaps/uses/use.py", line 45, in __call__
    output = self.main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.2.0_dev-py2.7.egg/openaps/vendors/dexcom.py", line 830, in main
    results = super(iter_calibrations, self).main(args, app)
  File "/usr/local/lib/python2.7/dist-packages/openaps-0.2.0_dev-py2.7.egg/openaps/vendors/dexcom.py", line 420, in main
    for item in candidates:
  File "/usr/local/lib/python2.7/dist-packages/dexcom_reader/readdata.py", line 301, in iter_records
    records = list(self.ReadDatabasePage(record_type, x))
  File "/usr/local/lib/python2.7/dist-packages/dexcom_reader/readdata.py", line 267, in GenericRecordYielder
    yield record_type.Create(data, x)
  File "/usr/local/lib/python2.7/dist-packages/dexcom_reader/database_records.py", line 158, in Create
    return cls(unpacked_data, raw_data)
  File "/usr/local/lib/python2.7/dist-packages/dexcom_reader/database_records.py", line 180, in __init__
    self.check_crc()
  File "/usr/local/lib/python2.7/dist-packages/dexcom_reader/database_records.py", line 47, in check_crc
    raise constants.CrcError('Could not parse %s' % self.__class__.__name__)
dexcom_reader.constants.CrcError: Could not parse Calibration

The pumploop says:
reporting monitor/glucose-zoned.json
merge://JSON/shell/monitor/glucose-zoned-merge.json
reporting monitor/glucose-zoned-merge.json
raw://JSON/shell/monitor/glucose-raw-merge.json
reporting monitor/glucose-raw-merge.json
>>>>RESULTS<<<<
90  2017-03-22T22:18:18+01:00
90  2017-03-22T22:13:19+01:00
90  2017-03-22T22:08:17+01:00
first://JSON/shell/monitor/glucose-zoned-first.json
reporting monitor/glucose-zoned-first.json
ns://JSON/shell/nightscout/uploaded-first.json
reporting nightscout/uploaded-first.json
ns://JSON/shell/nightscout/recent-missing-entries.json
reporting nightscout/recent-missing-entries.json
ns://JSON/shell/nightscout/uploaded-entries.json
reporting nightscout/uploaded-entries.json
CGM Data 0.34 mins ago is fresh (< 3)
cgm://JSON/nightscout_calibrations/monitor/cal.json
cgm extras failed
Wed 22 Mar 22:19:01 CET 2017
CGM Data 0.76 mins ago is fresh (< 5.1), 4.34 mins > max wait (1 mins) waiting for next attempt

@scottleibrand any idea?

uploading from CLI works fine with ns-upload-entries monitor/glucose-raw-merge.json

It looks like you're having trouble uploading the Dexcom calibration records rather than the actual glucose records.  Not sure why that'd be: have you calibrated the Dexcom recently?

I think these are two problems. the calibration records via openaps/oref0 don't work for me. They do seem to work with the Nightscout uploader app. The upload works from the CLI, but not from the loop for some reason. Will debug more later.

The calibration error seems to be an openaps or dexcom_reader issue. It also fails with the underlying
openaps use cgm nightscout_calibrations 1 call. I created issue https://github.com/openaps/openaps/issues/117 to track that issue.
I found the culpritt of the cgm uploading problem. The ~/.profile had a good API_SECRET and the  crontab had a wrong API_SECRET. Problem disappeared when correcting the API_SECRET.
Closing this issue.

There were in fact two problems in this issue:

the wrong API_SECRET
(I solved this)

But, the the root issue of why calibrations don't work with certain G4 receivers seems to be not oref0 related but dexcom_related, see
https://github.com/openaps/dexcom_reader/issues/16

I closed this issue, because the root issue is a dexcom_reader issue (and not and oref0 issue)


Any idea --> Currently there are no connected devices.

Hi everyone,
I don't know the correct button-names (my language is GER):

I can start "connect devices" or "connect a different device"
It shows my KODI with name "OSMC-Wohnzimmer" (RPI2 running OSMC latest build (17.n))
select "next"
It shows all my echo-devices (8).
Select "Wohnzimmer" (the device in the livingroom)
select "connect devices"
It shows "currently there are no connected devices!

It's an endless loop...  :(
Any ideas? Of course I found the issue "Registration SetUp within Alexa App does not work #15" wich is marked as "closed" and "duplicate" --> but where is the dublicate? I read all Issues (open and closed) but couldn't find a sollution for me (?). (I've got no FireTV! - this problem can be ruled out before)
Thanks and best regards from GER
Sascha

I too have this same issue, Kodi 18.0 (LibreElec specifically) and tried multiple versions of the Plugin)

For me, the issue could be closed. I can't say how many time i've done the steps above, but now it works... Don't know why. --> It still shows "currently there are no connected devices!", but now works!
@mikehobin just to be sure: do you use portforwarding? i'm using port 2340 (external) to port 8080 (internal). 8080 = the port set up in kodi

No, no port forwarding setup.
I'll spend some more time later today trying to figure it out, but just thought I would put it out there that this "issue" wasn't just you.


Swiper with Malihu custom scrollbar

Hey,
I need to somone who is better than me in jquery..
I have problem with scroll Top all slide without active but when I join next plugin then everythink is gone..
Here I make a similar topic: stackoverflow but here I think that i should faster somone who can help me.
I paste the same desription like stackove..:

I lost a few days trying to make top position in view on other slide than active slide. I use plugin: idangero.us/swiper/. However, didn't work when I join above plugin with malihu.plugin and I dont know what I'm doing wrong.. PLEASE help me, anbody...
If I use only idangero.plugin then everythink work: fiddle but after join next plugin scrollbar no working scroll to top on (other than active) slides.
How I can join both plugin?
In malihu plugi part of code responsible for srolling:

_wrapperScroll=function(){
        var $this=$(this),d=$this.data(pluginPfx),
            namespace=pluginPfx+"_"+d.idx,
            wrapper=$("#mCSB_"+d.idx+"_container").parent();
        wrapper.bind("scroll."+namespace,function(e){
            if(wrapper.scrollTop()!==0 || wrapper.scrollLeft()!==0){
                $(".mCSB_"+d.idx+"_scrollbar").css("visibility","hidden"); /* hide scrollbar(s) */
            }
        });
    },

In dev show code in browser (ff) I can see:

mCSB_scrollTools mCSB_3_scrollbar (...) mCSB_scrollTools_vertical

Where:

mCSB_X_scrollbar

is propably equal X malihu scrollbar in X slide. X is number of slide and scrollbar
So what should I edit/do to make it work and where paste it in idangero plugin
I realy need to your help with that...
best regards

So can help me here anyone?
regards

Here is fiddle  where I use both plugin and it isn't work..

I get two answer for my questiions: stackoverflow or webhelp
but I do not know why it still does not work so I decided to rewrite in this time (no paste) and that's run without errors :+1: I think that was a hidden character during copy-paste by me


Update flyway-core to 7.11.0

Updates org.flywaydb:flyway-core from 6.5.7 to 7.11.0.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.flywaydb", artifactId = "flyway-core" } ]

labels: library-update, semver-major

Need code changes, too.


SipHash regression in 3.0.0

Following code produces different results with openssl 1.1.1 and with openssl 3.0.0.
Basically it calculates SipHash with digest size 8.
1.1.1 produces: 6d 3e 54 c2 2f f1 fe e2
3.0.0 produces: 1e a3 02 13 d5 82 56 89
`
uint8_t key[16];
memset (key, 1, 16);
EVP_PKEY * sipKey = EVP_PKEY_new_raw_private_key (EVP_PKEY_SIPHASH, NULL, key, 16);
EVP_MD_CTX * mdCtx = EVP_MD_CTX_create ();
EVP_PKEY_CTX * ctx = NULL;
EVP_DigestSignInit (mdCtx, &ctx, NULL, NULL, sipKey);
EVP_PKEY_CTX_ctrl (ctx, -1, EVP_PKEY_OP_SIGNCTX, EVP_PKEY_CTRL_SET_DIGEST_SIZE, 8, NULL);
EVP_PKEY_free (sipKey);

uint8_t buf[8], digest[8];
memset (buf, 0, 8);
EVP_DigestSignInit (mdCtx, NULL, NULL, NULL, NULL);
EVP_DigestSignUpdate (mdCtx, buf, 8);
size_t l = 8;
EVP_DigestSignFinal (mdCtx, digest, &l);

`

The best way would be to use the new EVP_MAC API.

We did not deprecate that usage. Even if we did, I'd still expect
it to keep working as in 1.1.1.
The behavior does not seem to be documented in the manpage.

Call EVP_DigestSignInit (mdCtx, NULL, NULL, NULL, NULL); after the EVP_DigestSignFinal call.

That's what I do now, it works in 1.1.1 and doesn't work in 3.0.0.
If I don't call EVP_DigestSignInit as @mattcaswell suggests, it works for the first digest and doesn't for next digests.

This produces the correct output thrice:
#include <openssl/evp.h>
#include <string.h>
#include <stdlib.h>

int main() {
    uint8_t key[16];
    memset (key, 1, 16);
    EVP_PKEY * sipKey = EVP_PKEY_new_raw_private_key (EVP_PKEY_SIPHASH, NULL, key, 16);
    EVP_MD_CTX * mdCtx = EVP_MD_CTX_create ();
    EVP_PKEY_CTX * ctx = NULL;

    EVP_DigestSignInit (mdCtx, &ctx, NULL, NULL, sipKey);
    EVP_PKEY_CTX_ctrl (ctx, -1, EVP_PKEY_OP_SIGNCTX, EVP_PKEY_CTRL_SET_DIGEST_SIZE, 8, NULL);
    EVP_PKEY_free (sipKey);
    int i;
    for (i=0; i<3; i++) {
        uint8_t buf[8], digest[8];
        memset (buf, 0, 8);
        EVP_DigestSignUpdate (mdCtx, buf, 8);
        size_t l = 8;
        EVP_DigestSignFinal (mdCtx, digest, &l);
        EVP_DigestSignInit (mdCtx, NULL, NULL, NULL, NULL);
        BIO_dump_fp(stdout, digest, l);
    }
    return 0;
}

This code works in 3.0.0, but not in 1.1.1. Is it right?

It works with 1.1.1f as well as 3.0.

This was actually fixed by #16422. @orignal could you please test the current openssl-3.0 branch with your code to verify?

This was actually fixed by #16789 . @orignal could you please test the current openssl-3.0 branch with your code to verify?

Hmm, actually not.

Both the original and @paulidale testcases are incorrect because they do not check the return value. And the #16789 actually makes the second and third iterations to fail the EVP_DigestSignFinal() call meaning the hash value calculated from the first iteration is always printed out.

This is what's happening :(


Add builder generation on install/add

Support installing or adding with --project flag to generate build-icons config in angular.json
Would be nice if schema matched the three possible conversionTypes.
Relates to #9
Sample for constants:
     "update-icons": {
          "builder": "@angular-extensions/svg-icons-builder:svg-icons-builder",
          "options": {
            "conversionType": "constants",
            "srcFiles": ["./projects/dinosaur-icons/icons/**/*.svg"],
            "outputDirectory": "./projects/dinosaur-icons/icons",
            "interfaceName": "DinosaurIcon",
            "typeName": "dinosaurIcon",
            "prefix": "dinosaurIcon",
            "modelFileName": "dinosaur-icons",
            "svgoConfig": {
              "plugins": [
                {
                  "cleanupAttrs": true
                }
              ]
            },
            "additionalModelFile": "./projects/dinosaur-icons/src/lib",
            "compileSources": true
          }
        },

@kreuzerk thoughts on this?

Definitely. This would be very nice. It would be nice that the ng-add command asks for the various properties. I am not yet sure how we can make this conditional - so for example that ng-add asks you for the conversionType. Based on that it should then aks for the correct options and then automatically configure the builder in the angular.json

Yeah, I am not 100% certain either. It seems do-able to conditionally drive the builder called.


Fix grammar issue in troubleshooting guide

[x] This is a small change
[ ] This change has been discussed in issue #<?> and the solution has been agreed upon with maintainers.

Description:
Quick and easy fix for a grammar issue in a README.

Pull Request Test Coverage Report for Build 2581

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+9.3%) to 86.166%

Totals

Change from base Build 1371:
9.3%

Covered Lines:
3722

Relevant Lines:
4161

💛  - Coveralls


Implicit variables to @expression s

Refactoring to take out implicit variables, and replace with @expressions.
Articulately generating implicit variables and passing them to JuMP->PATH as variables and constraints is making the number of equations exponentially bigger, and we assume significantly slower to (build and?) solve.
Instead of generating independent variables/constraints, we will use JuMP's @expressions to generate equivalent sub-expressions that will be used directly in the main equations, vastly reducing the number of variables and equations being solved.
This branch builds from the unmerged Add/fix-WiNnat-test branch and #144 PR.

Something is off with the AlgebraicWrapper and algebraic print of the model, so for now I'm commented those tests out (I like to see some green checks).
avm2 = algebraic_version(m)
# TODO repr(MIME("text/plain"), avm2)
# TODO repr(MIME("text/latex"), avm2).

One value in one counterfactual for one model test changed enough to fail at 1e-8 decimals so I added an atol.
[output tax to 0.1 in the "TWOBYTWO (functional version , with non-1 prices in Ouput)" model test in test_twobytwo_Price]
The counterfactual setting both output taxes to 0.9 now needs a consumer value set and fixed.
[otaxa and otaxb to 0.9 in the "TWOBYTWOwOTax_IndCons" model in test_twobytwo_wTaxes]. That was already needed for the counterfactual with just otaxa set to 0.9 for the same model.

I pushed through the code coverage test fails.
I think this is it, at least it's a working version with the @expression s. I still have questions about whether we're still building more than we need to, but that can be subsequent work.

This includes the changes from the previous PR. You should PR in from Main to JuMPexpressions to isolate the new changes


Improve formatting of analyzer status text

The old formatting had everything on 1 line, making it quite hard to read:
requests:    1 textDocument/documentSymbol         2ms    2 textDocument/codeAction             2ms    3 rust-analyzer/inlayHints            20ms    4 textDocument/foldingRange           108ms    6 textDocument/codeLens               66ms    5 textDocument/semanticTokens/range   76ms    8 rust-analyzer/inlayHints            195ms    7 textDocument/semanticTokens         250ms    9 textDocument/semanticTokens/range   108ms

It now looks like this:
requests:
*   1 textDocument/documentSymbol         11ms
    2 textDocument/codeAction             15ms
    3 rust-analyzer/inlayHints            4ms
    5 textDocument/foldingRange           3ms
    4 textDocument/semanticTokens/range   45ms
    6 textDocument/codeLens               182ms
    8 rust-analyzer/inlayHints            124ms
    7 textDocument/semanticTokens         127ms
    9 textDocument/documentHighlight      2ms
   10 textDocument/codeAction             3ms

bors r+


Create Dockerfile

Adding a dockerfile to make it easier for people to use this code.
Note that it currently crashes with a CUDNN error when running the style algorithm:
Traceback (most recent call last):
  File "/usr/local/lib/python3.5/dist-packages/bottle.py", line 862, in _handle
    return route.call(**args)
  File "/usr/local/lib/python3.5/dist-packages/bottle.py", line 1740, in wrapper
    rv = callback(*a, **ka)
  File "server.py", line 291, in do_paint
    chainer.cuda.to_gpu(reference, chainer_ID))
  File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "/usr/local/lib/python3.5/dist-packages/chainer/configuration.py", line 125, in using_config
    yield
  File "server.py", line 291, in do_paint
    chainer.cuda.to_gpu(reference, chainer_ID))
  File "/usr/lib/python3.5/contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "/usr/local/lib/python3.5/dist-packages/chainer/configuration.py", line 125, in using_config
    yield
  File "server.py", line 291, in do_paint
    chainer.cuda.to_gpu(reference, chainer_ID))
  File "server.py", line 66, in forward
    h = F.max_pooling_2d(F.relu(self.norm1(self.conv1(x))), 3, stride=2, pad=1) # 64 * 57 * 57
  File "/usr/local/lib/python3.5/dist-packages/chainer/links/connection/convolution_2d.py", line 154, in __call__
    x, self.W, self.b, self.stride, self.pad)
  File "/usr/local/lib/python3.5/dist-packages/chainer/functions/connection/convolution_2d.py", line 437, in convolution_2d
    return func(x, W)
  File "/usr/local/lib/python3.5/dist-packages/chainer/function.py", line 201, in __call__
    outputs = self.forward(in_data)
  File "/usr/local/lib/python3.5/dist-packages/chainer/function.py", line 329, in forward
    return self.forward_gpu(inputs)
  File "/usr/local/lib/python3.5/dist-packages/chainer/functions/connection/convolution_2d.py", line 142, in forward_gpu
    workspace_size)
  File "cupy/cuda/cudnn.pyx", line 666, in cupy.cuda.cudnn.getConvolutionForwardAlgorithm
  File "cupy/cuda/cudnn.pyx", line 676, in cupy.cuda.cudnn.getConvolutionForwardAlgorithm
  File "cupy/cuda/cudnn.pyx", line 417, in cupy.cuda.cudnn.check_status
cupy.cuda.cudnn.CuDNNError: CUDNN_STATUS_BAD_PARAM: b'CUDNN_STATUS_BAD_PARAM'

Cudnn error often caused from installing cudnn after cupy. Maybe reinstall cupy after cudnn will fix this.


[ja] Remove Service Broker reference

This PR is related to failing tests from #34387 , it seems that the ja docs depend on the glossary entry from the en docs
Please see https://github.com/kubernetes/website/pull/34387#issuecomment-1161388134
Note: we still need to make the changes to this file similar to:  https://github.com/kubernetes/website/pull/34387/files#diff-c3ff1d9d7e9d80de144e2e81435a237bcf5ae030d68782cc602a9c471615038aL1-L18
/cc jihoon-seo

/approve

Looks like this one is blocking #34387, IIUC.

/lgtm

/lgtm cancel

/assign @inductor

I think that it would be great if some Japanese reviewer check and confirm whether the Japanese string is okay,
since the word "Service Broker" is just fork-lifted from the original Japanese sentence.

+1, I had also included this in the PR description. Right now this PR only fixes the build errors we run into if we merge #34387 however the other changes (like in the en PR) and verifying the sentence as a whole does require a ja volunteer

/label tide/merge-method-squash

/lgtm

@jihoon-seo I believe the hold should now be removed

@Rishit-dagli Okay let's move on!
/unhold


[FEATURE REQ] Redesign current structure of boms.

Now azure-spring-boot bom does not use azure-sdk-bom, which could lead to dependency conflicts.
Here is some options I can image:

Combine azure-spring-boot-bom / azure-spring-cloud-bom /  azure-sdk-bom into one bom: azure-sdk-bom.
Import azure-sdk-bom in azure-spring-boot-bom and azure-spring-cloud-bom.

Close this in favor of https://github.com/Azure/azure-sdk-for-java/issues/24812.


New package: Friction.Friction version 0.9.4

What's changed

Resolve #119024
Related https://github.com/friction2d/friction/issues/76

Checks

[x] Have you signed the Contributor License Agreement?
[x] Have you checked that there aren't other open pull requests for the same manifest update/change?
[x] This PR only modifies one (1) manifest
[x] Have you validated your manifest locally with winget validate --manifest <path>?

[x] Does your manifest conform to the 1.5 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Claim
This package CAN be installed silently and unattededly. Please re-run the Azure Pipelines and verify if there are difference between pipelines and locally verification.
Details
PS (local)> .\Tools\SandboxTest.ps1 .\manifests\f\Friction\Friction\0.9.4\
--> Validating Manifest
清单验证成功。

--> Checking dependencies
--> Starting Windows Sandbox, and:
    - Mounting the following directories:
      - C:\Users\Dragon1573\AppData\Local\Temp\SandboxTest as read-only
      - D:\Repository\winget-pkgs as read-and-write
    - Installing WinGet
    - Configuring Winget
    - Installing the Manifest 0.9.4
    - Refreshing environment variables
    - Comparing ARP Entries

--> Installing WinGet
--> Disabling safety warning when running installer
Tip: you can type 'Update-EnvironmentVariables' to update your environment variables, such as after installing a new software.

--> Configuring Winget
Enabled admin setting 'LocalManifestFiles'.
Enabled admin setting 'LocalArchiveMalwareScanOverride'.

--> Installing the Manifest 0.9.4

Found Friction [Friction.Friction] Version 0.9.4
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://github.com/friction2d/friction/releases/download/v0.9.4/friction-0.9.4-setup-win64.exe
  ██████████████████████████████  25.0 MB / 25.0 MB
Successfully verified installer hash
Starting package install...
Successfully installed

--> Refreshing environment variables

--> Comparing ARP Entries

DisplayName            DisplayVersion Publisher ProductCode                                Scope
-----------            -------------- --------- -----------                                -----
Friction version 0.9.4 0.9.4          Friction  {12D25577-88FD-4C5A-AF69-CCA597CAC44E}_is1 User

Manual Validation ended with:

With the dependency added, it encounters a pipeline limitation:

https://github.com/microsoft/winget-pkgs/issues/107639

Sorry, I can't get it...
Does it means this package requires a new feature of WinGet?  The feature isn't available now, so it blocks the Azure Pilepines?

@wingetbot waivers Add Validation-Executable-Error

Sorry, I can't get it...
Does it means this package requires a new feature of WinGet? The feature isn't available now, so it blocks the Azure Pilepines?

Sorry for being unclear. This is a limitation of the current pipelines, not with your package.


Fixed up some stuff, reworked module tpl some, added understand() validator

What do ya think?

Looks good, appreciate the help.
Did you happen to test it on a few different browser types?
If so, I can approve the pull request now.   I just don't happen to have time right now to test it out.

Cool np man. Tested it across the board, emulated IE 8, 9, 10 mode to make sure the popup "click I understand" works when css pointer-events is not supported. Still makes them 0.5 opacity which is good and hints it is disabled. Was gonna try to hack a disabled property on the <a> but figured this works fine too.


Not Found (try again, you may have done too many too fast)

I got there errors when opening the example file.

updating the script with these values solved the problem:
Public Const gintType = 2
Public Const gstrKey = "AIzaSyDzrb..........."


Remove Option to delete from server

Steps to Reproduce

Open a existing log not published by you https://pastelog.vercel.app/logs/JrOroY9mS8Ieo1ckUk4Y/
It will be saved to your local storage
You have an option to delete it from server

Solution

Avoid users from opening links /logs/id if id is not present locally
or Don't allow deleting a remote copy (delete local only) with a note

fixed


6/30 Publish

@Taojunshen,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs-ref-autogen/sql/server.pycliyml
:white_check_mark:Succeeded
View

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


Add logging for unbound-plus blacklisting

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
[x] I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
[x] I have searched the existing issues and I'm convinced that mine is new.
[x] When the request is meant for an existing plugin, I've added its name to the title.
Is your feature request related to a problem? Please describe.
When a domain is blocked using the DNSBL functionality, there is no indication that this has happened nor a simple way to identify and unblock a false positive.
Describe the solution you'd like
A table that logs and displays recent blocked requests, including the IP address that performed the request. A button to easily add the blocked site to the whitelist would also be great. Furthermore, responding with a much shorter TTL for blacklist results (60 seconds or so) would allow unblocking of a site relatively quickly, without having to wait an hour for the client cache to expire. This could alternatively be configurable in the DNSBL settings.

I had the same idea. It should look like https://pi-hole.net/ for RasperryPi. But we are blocking at Unbound level in unbound-plus plugin. I think it could be possibly done with Unbound verbose logging but at cost of performance.
Sorry but I am not interested in implementing feature like this. Maybe someone else do or feel free to submit your PR.
TTL could be set in Unbound config. We can't set another TTL for "blocked" queries alone.

This issue has been automatically timed-out (after 180 days of inactivity).
For more information about the policies for this repository,
please read https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md for further details.
If someone wants to step up and work on this issue,
just let us know, so we can reopen the issue and assign an owner to it.


bug: Transparent focus outline used for dropdown menu button when using details/summary method

What version of daisyUI are you using?
3.7.7
Describe your issue
Based on the docs, there are two methods to create a dropdown.

Using a wrapper with a focussable label.
Using details / summary elements

One of the key differences between these two approaches is that when the label gains focus it will immediately display the dropdown menu, whereas the summary element will not.
Both approaches have their button outlines hidden by default on focus:
.dropdown > *:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

As such, when tabbing through with a keyboard the label method will give visual feedback when focussed (the menu opens), but the details method won't (no outline and no menu).
I would expect that either:

summary should keep it's outline when focussed, or
details should have the same :focus-within rules to display it's contents

The second option might not be viable given the way the details element works though. I've not investigated to see if the visibility of it's contents can be manipulated with css only (where js would be an option). I've only tested chrome + firefox, but I would assume that other browsers would handle details the same way.
Thanks!
What browsers are you seeing the problem on?
Chrome, Firefox
Reproduction URL
https://play.tailwindcss.com/R9etB23qpj

I've had a closer look at <details> and I can confirm that there doesn't appear to be any way to manage the open state with CSS / relative to focus. Even handling things with JS is pretty tricky and not ideal.
So I would simply allow summary to be outlined.

I couldn't find a way to open/close <details> using CSS either.
outline for <summary> element inside .dropdown added in daisyUI 3.8.2


deprecated Policy definitions - metadata alignment

There are 5 deprecated ALZ Policy definitions.

displayName: all 5 startsWith [Deprecated] (picky: 2 with [Deprecated]:)
metadata:

version: all 5 endsWith -deprecated
deprecated: 2 have deprecated: true, 3 don´t have the deprecated metadata property

Propose to update the following deprecated Policy definitions with the metadata deprecated property (deprecated: true):

Deny-RDP-From-Internet
Deploy-Sql-Tde

documentation the metadata property deprecated is not referenced, but is used for the deprecated built-in Policy definitions

As discussed @JulianHayward will pick this up in a PR shortly


Question regarding to Error Handling

I see that in the rpc package, there is a private libvirtError struct, which contains the Code of the error. I would want to access it, to distinguish connection problems from errors like "domain does not exist". I find it in combination with helper functions like e.g. IsNotFound(err error) bool pretty helpful.
Are there some ideas floating around on how proper error handling is done? Would it make sense to make LibvirtError public and add the error code constants to the project?

Closed #57 for now since I don't need this library right now. Anyway I am sorry that this did not work out. Great work you guys do here :+1:


[doc] ARM architecture is not supported by the documentation's installation instructions.

In the documentation, only x86 binaries are provided for installation. The binary must be manually compiled for ARM-based machines. Support for ARM architecture should be added to the documentation.

cc @caoxianfei1


[NFR] for & foreach

From the current documentation

A for is a control structure that allows to traverse arrays or strings:

Hmm.. Frankly it's like a foreach. but where are for?!
C/C++ and PHP have foreach and for.
Sorry if I ask a stupid question, but you could you please implement the full (conventional) support for for?
for ($i = 0; $i < 10; $i++) {
    echo $i;
}

Thanks

What about?
for i in range(0, 9) {
    echo i;
}

@mruz yes, you're right, exactly in this example current implementation of for is enough.
But, when need to increase the counter not by 1?
Or, another example:
for($col = 'R'; $col != 'AD'; $col++) {
    echo $col.' ';
}

// returns: R S T U V W X Y Z AA AB AC

another php example
for( ; $iterator->valid(); $iterator->next()) {
    // something
}

Of course, this is solved by a while, but the flexibility of language lies in the diversity of its methods and timely using of these methods

Using my tool:
https://github.com/jimthunderbird/php-to-c-extension#example-04
You   can do for loop in php, internally it's using the equivalent while loop.

for ($i = 0; $i <= 10; $i++) {
    echo $i;
}

碰到这种很郁闷

我写了一个转换工具, 会把for转成while.所以有和没有for在zephir里都无所谓。https://github.com/jimthunderbird/php-to-c-extension/blob/master/README.md#example-04

用WHILE就可以解决了，有兴趣请参考我的工具，用PHP自动生成ZEPHIR，而且可以将PHP FOR LOOP转成WHILE LOOP。
https://github.com/jimthunderbird/php-to-c-extension#example-12
以后ZEPHIR全支持FOR LOOP最好，现在用WHILE是一个暂时的办法。


Wallets page sometimes doesn't show balance

Still an issue, although now it shows 'Syncing transactions...'


Dataset.from_tensor_slices regression?

Please make sure that this is a bug. As per our
GitHub Policy,
we only address code/doc bugs, performance issues, feature requests and
build/installation issues on GitHub. tag:bug_template
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Mac OS 10.15.6
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below): 2.1.0, 2.2, and 2.3.0
Python version: 3.6, 3.7, 3.8
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version: N/A
GPU model and memory: N/A

You can collect some of this information using our environment capture
script
You can also obtain the TensorFlow version with:

TF 1.0: python -c "import tensorflow as tf; print(tf.GIT_VERSION, tf.VERSION)"
TF 2.0: python -c "import tensorflow as tf; print(tf.version.GIT_VERSION, tf.version.VERSION)"

v2.2.0-rc4-8-g2b96f3662b 2.2.0
Describe the current behavior
I'm supporting someone trying to build a model. In Tensorflow 2.1.0, the code below works correctly. In version 2.2.0+, the last line fails. I am wondering if there is a regression or if there is a fix and 2.1.0 shouldn't have worked.
Describe the expected behavior
I expect the dataset to be created correctly.
Standalone code to reproduce the issue
Provide a reproducible test case that is the bare minimum necessary to generate
the problem. If possible, please share a link to Colab/Jupyter/any notebook.
import tensorflow as tf
import pandas as pd
import numpy as np

data = [
    [
        np.array(['k1', '', '']), np.array(['t1', 't2', 't3']), np.array([.03, .02, .03])
    ],
    [
        np.array(['k1', 'k2', 'k3']), np.array(['t4', 't5', 't6']), np.array([.03, .02, .03])
    ]
]
train = pd.DataFrame(data, columns=['kwd', 'title', 'labels'])
feature_cols = ['kwd', 'title']
labels = train.pop('labels')
features = {
    col: train[col] for col in feature_cols
}
batch = tf.data.Dataset.from_tensor_slices((features, labels))

Other info / logs Include any logs or source code that would be helpful to
diagnose the problem. If including tracebacks, please include the full
traceback. Large logs and files should be attached.
Traceback (most recent call last):
  File "/array_example.py", line 17, in <module>
    batch = tf.data.Dataset.from_tensor_slices((train, labels))
  File "/Users/oshiv/miniconda3/envs/py37tf22/lib/python3.7/site-packages/tensorflow/python/data/ops/dataset_ops.py", line 640, in from_tensor_slices
    return TensorSliceDataset(tensors)
  File "/Users/oshiv/miniconda3/envs/py37tf22/lib/python3.7/site-packages/tensorflow/python/data/ops/dataset_ops.py", line 2858, in __init__
    element = structure.normalize_element(element)
  File "/Users/oshiv/miniconda3/envs/py37tf22/lib/python3.7/site-packages/tensorflow/python/data/util/structure.py", line 98, in normalize_element
    ops.convert_to_tensor(t, name="component_%d" % i))
  File "/Users/oshiv/miniconda3/envs/py37tf22/lib/python3.7/site-packages/tensorflow/python/framework/ops.py", line 1341, in convert_to_tensor
    ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
  File "/Users/oshiv/miniconda3/envs/py37tf22/lib/python3.7/site-packages/tensorflow/python/framework/constant_op.py", line 321, in _constant_tensor_conversion_function
    return constant(v, dtype=dtype, name=name)
  File "/Users/oshiv/miniconda3/envs/py37tf22/lib/python3.7/site-packages/tensorflow/python/framework/constant_op.py", line 262, in constant
    allow_broadcast=True)
  File "/Users/oshiv/miniconda3/envs/py37tf22/lib/python3.7/site-packages/tensorflow/python/framework/constant_op.py", line 270, in _constant_impl
    t = convert_to_eager_tensor(value, ctx, dtype)
  File "/Users/oshiv/miniconda3/envs/py37tf22/lib/python3.7/site-packages/tensorflow/python/framework/constant_op.py", line 96, in convert_to_eager_tensor
    return ops.EagerTensor(value, ctx.device_name, dtype)
ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type numpy.ndarray).

@ymodak
I am able to replicate the issue reported on tf 2.3 and nightly,please find the gist here.

Hi @OmriShiv,
Dataset.from_tensor_slices uses generic TensorFlow machinery to convert its inputs into tensors. It should be able to convert anything that can be passed to tf.constant.
To make from_tensor_slices work with DataFrames, convert the DataFrames to lists first:
batch = tf.data.Dataset.from_tensor_slices((list(features), list(labels)))

@aaudiber Let me take a look and see if I can make this work. I'm getting some dimension issues right now.
My question is more: why this works in 2.1, but not in 2.2+

Was able to reproduce your issue in Tf Nightly 2.6.0-dev20210530, please find the gist here. Thanks!

This issue isn't specific to from_tensor_slices -- the same error will be raised by trying to create a TF constant using a pandas.core.series.Series.


remove --locked and ignore committing Cargo.* files

/cmd queue -v PATCH_substrate=tmp-oty-debug-bench-bot-revert -c bench-bot $ runtime polkadot-dev pallet_bounties
leads to
error: the lock file /var/lib/gitlab-runner/builds/zyw4fam_/0/parity/mirrors/polkadot/Cargo.lock needs to be updated but --locked was passed to prevent this
If you want to try to generate the lock file without accessing the network, remove the --locked flag and use --offline instead.
+ cleanup
+ exit_code=101
+ git remote remove github
+ :
+ rm -rf .git/cmd-runner-patch .git/cmd-runner-patch/substrate

https://gitlab.parity.io/parity/mirrors/polkadot/-/jobs/2111148
So we revert https://github.com/paritytech/pipeline-scripts/commit/9ecc0607cb85b29301ab4cdfcb02a2fe37bbbf9d adding --locked, but ignore committing Cargo.lock and Cargo.toml files to avoid unwanted cargo updates

Can we have the --locked only when the PATCH_substrate env is not present?
I think in the other non-patch cases we still want it to be locked.

Can we have the --locked only when the PATCH_substrate env is not present? I think in the other non-patch cases we still want it to be locked.

@ggwpez yes, Fixed here 3266c39


Added The Linux Programming Interface book under Linux book list.

What does this PR do?
Add resource
For resources
Description
I have added Linux Programming Interface by Michael Kerrisk book which was not present earlier
Why is this valuable (or not)?
It is a great book by reading one can know about Linux programming and how it relates to various standards.
How do we know it's really free?
It is present on Google Books from where one can read it free.
For book lists, is it a book? For course lists, is it a course? etc.
Yes for book list it is an book.
Checklist:

[x] Read our contributing guidelines.
[x] Search for duplicates.
[x] Include author(s) and platform where appropriate.
[x] Put lists in alphabetical order, correct spacing.
[x] Add needed indications (PDF, access notes, under construction).
[x] Used an informative name for this pull request.

Follow-up

Check the status of GitHub Actions and resolve any reported warnings!

This appears not to be an authorized distribution. Please see docs/CONTRIBUTING.md guidelines.


fzf alias ignored in tab completion

I have the following alias fzf='fzf --no-color'.
When I run $ fzf no problems. However, when i try $ ssh**<Tab> I get colored results (my alias is ignored). I'm looking through fzf/shell/completion.bash to figure out what might be the cause. I thought I might be able to get a faster answer here.
Note: I edited my config so that a different file other than my ~/.bashrc would be sourced. However, it doesn't seem to be relevant because I'm getting the completion.

I realized I didn't read far enough into the instructions.
export FZF_COMPLETION_OPTS='--no-color' worked for me.
Would the project be interested in a pull request, s.t. these settings only have to be defined in one place? Right now an alias has to be set for fzf, along with the env. vars.

Right now an alias has to be set for fzf

You don't need an alias to provide default options. That's what FZF_COMPLETION_OPTS is for—unless I've misunderstood your use case.

If I don't set the alias, then $ fzfignores FZF_COMPLETION_OPTS.

I confused FZF_COMPLETION_OPTS with FZF_DEFAULT_OPTS. The latter is what I was thinking of.

Okay, thanks.

FZF_DEFAULT_OPTS is built in to the binary (you can see it on --help) and applied regardless of the context. FZF_COMPLETION_OPTS is an extra set of options that is applied in addition to FZF_DEFAULT_OPTS for those who want to use different options just during bash completion.


Doc: Use Case pxe server

Documenting the pxe setup would be a nice addition. Basically srv_dhcp with some params + srv_tftp.
See also: https://github.com/while-true-do/ansible-role-srv_tftp/issues/2
One can fix a minor typo, too:
          pools:
            - name: "my ntwork 2 pool"
              range: "<IP_ADDRESS> <IP_ADDRESS>"

was closed due to wrong commit comment.


NIFI-10568 Add stateful info to runtime manifest components

Summary
NIFI-00000
Tracking
Please complete the following tracking steps prior to pull request creation.
Issue Tracking

[ ] Apache NiFi Jira issue created

Pull Request Tracking

[ ] Pull Request title starts with Apache NiFi Jira issue number, such as NIFI-00000
[ ] Pull Request commit message starts with Apache NiFi Jira issue number, as such NIFI-00000

Pull Request Formatting

[ ] Pull Request based on current revision of the main branch
[ ] Pull Request refers to a feature branch with one commit containing changes

Verification
Please indicate the verification steps performed prior to pull request creation.
Build

[ ] Build completed using mvn clean install -P contrib-check

[ ] JDK 8
[ ] JDK 11
[ ] JDK 17

Licensing

[ ] New dependencies are compatible with the Apache License 2.0 according to the License Policy
[ ] New dependencies are documented in applicable LICENSE and NOTICE files

Documentation

[ ] Documentation formatting appears as expected in rendered files

+1 LGTM, Thanks for the improvement! Merging to main


WIP Lending API prototype

Standalone prototype for Lending API, WIP, #1112 .

Cannot understand why do you have mocks? I think, that the most important part of compound research is using real api / contracts to fetch data. Isn’t it?

https://github.com/bonedaddy/go-compound

We need:

Get information about each Ctoken data (APR, min amount, etc). to supply
Get information about already supplied ctoken for specific address

That’s it

We need to fetch that data

The mock is just a temporary, a scaffolding to get a better grip on the API.
The structure is:

Client to connect to Compound API
Compound Provider having an internal API, using the client
API exposing lending API, routing to provider (only one for now), doing some normalization
Very similar to other providers in blockatlas.


Old rest calls were removed with no backwards compatibility

Description:
Old deploy/* REST calls were completely removed and replaced with /chaincode with no backwards compatibility (say a redirect from /deploy/invoke to /chaincode)
Results:
Old REST calls are completely gone
Expected results:
Perhaps a redirect or other transitional mechanism (A friendly error message?) when someone hits deprecated REST URLs.

Agree, we should be having a more graceful deprecation policy.

@RicHernandez2 @christo4ferris  not sure what you guys talking about here.  If I read this correctly, these endpoints are deprecated (ie still there until next code release).  We also indicated that in the document:
	// The /devops endpoint is now considered deprecated and superceeded by the /chaincode endpoint
	router.Post("/devops/deploy", (*ServerOpenchainREST).Deploy)
	router.Post("/devops/invoke", (*ServerOpenchainREST).Invoke)
	router.Post("/devops/query", (*ServerOpenchainREST).Query)

Maybe something else?

Just retested with latest code, it's giving useful and helpful errors at the old REST API URLs, I kinda hacked together the version I had been testing with today... thanks!


feature: add mobile option on ng new

Fixes #596.

LGTM pending one comment.

One small nit, but otherwise lgtm

All done.


Feature Request: Add More Stacks to the Application

More application stack offerings should include additional frameworks and languages. This will enhance the application’s versatility and cater to a broader range of users and developers.
• C
• Go (Golang)
• Flutter
• Rust
• Laravel (PHP Framework)
• C#
• Java
• .NET Framework
And others

Sure will do that right away!

Can I contribute to it?
I just pulled and saw you have some icons

Sure, get the svgs from here


AbsOpenApiSchema.copyMap() doesn't honor map type

Describe the bug
AbsOpenApiSchema.copyMap() does not honor the source map type.
The properties of an object schema originally are stored in a LinkedHashMap to preserve the order of the properties. This is lost by copyMap().
It happens when I try to resolve a ref schema like this:
def resolved = schema.copy (api.context, true)

Thank you for the report.
I do force now LinkedHashMap creation to reflect Jackson behaviour.
This should be ok on 0.7-SNAPSHOT. Are you able to validate this change?

Thanks, works. The testcase on my end does not fail anymore. :-)


Motion detection not working

In the Camera Settings in UI, I enable "Save video when a motion is detected"  as shown below:

and in Configurations in the UI, I enable recording without cloud as show below:

however, I don't get any recording after a motion event. I do get recording when sound detection is enabled.
What is interesting is that the UI says: Motion Detection | You don't need to enable motion detection, it's always enabled.
However, looking at the camera.conf in the camera, I see that the MOTION_DETECTION is not enabled.
$ cat /tmp/sd/yi-hack/etc/camera.conf
SWITCH_ON=yes
SAVE_VIDEO_ON_MOTION=yes
MOTION_DETECTION=no
SENSITIVITY=high
AI_HUMAN_DETECTION=no
AI_VEHICLE_DETECTION=no
AI_ANIMAL_DETECTION=no
FACE_DETECTION=no
MOTION_TRACKING=no
SOUND_DETECTION=no
SOUND_SENSITIVITY=80
LED=no
ROTATE=no
IR=yes
CRUISE=no

Is this some sort of bug?
Details of my system:
Firmware Version | 0.2.9
Base Version | <IP_ADDRESS>_202111291330
Model Suffix | y291ga
Serial Number | RFUSY62X2PP2O3220620

However, looking at the camera.conf in the camera, I see that the MOTION_DETECTION is not enabled.

This settings is used only if the cam has fw 12.
In your case is not important.
What about the app? If you try to enable motion detection with the app.


add continuous level

We want to add interval list as a new level.
This will be the first step before we move on dealing with closeness/openness of intervals.
Todo list

[x] Supporting Sparse Output (get_updater)
[x] Adding Test Cases for continuouslevel.
[x] Generalized Strength Reduction Rule (#181) on nested for loops.

While I was adding test cases in test_conversion.jl, I met some errors I cannot understand.
The error message when running test Finch on Pkg.
[ Info: Testing Fiber Conversions
convert 0 @fiber(cont(e(false))) 1: Error During Test at /Users/jaeyeonwon/Finch.jl/test/test_conversions.jl:44
  Got exception outside of a @test
  BoundsError: attempt to access 0-element Vector{Int64} at index [0]
  Stacktrace:
    [1] getindex
      @ ./essentials.jl:13 [inlined]
    [2] macro expansion
      @ ~/Finch.jl/src/lower.jl:213 [inlined]
    [3] macro expansion
      @ ~/Finch.jl/src/execute.jl:6 [inlined]
    [4] macro expansion
      @ ~/Finch.jl/src/util.jl:15 [inlined]
    [5] execute(ex::Finch.FinchNotation.LoopInstance{Finch.FinchNotation.IndexInstance{:i}, Finch.FinchNotation.IndexInstance{:(:)}, Finch.FinchNotation.AssignInstance{Finch.FinchNotation.AccessInstance{Finch.FinchNotation.VariableInstance{:check, Scalar{true, Bool}}, Finch.FinchNotation.UpdaterInstance{Finch.FinchNotation.CreateInstance}, Tuple{}}, Finch.FinchNotation.VariableInstance{:&, Finch.FinchNotation.LiteralInstance{&}}, Finch.FinchNotation.CallInstance{Finch.FinchNotation.VariableInstance{:(==), Finch.FinchNotation.LiteralInstance{==}}, Tuple{Finch.FinchNotation.AccessInstance{Finch.FinchNotation.VariableInstance{:tmp, Fiber{ContinuousLevel{Int64, Int64, ElementLevel{false, Bool}}}}, Finch.FinchNotation.ReaderInstance, Tuple{Finch.FinchNotation.IndexInstance{:i}}}, Finch.FinchNotation.AccessInstance{Finch.FinchNotation.VariableInstance{:ref, Fiber{SparseListLevel{Int64, Int64, ElementLevel{false, Bool}}}}, Finch.FinchNotation.ReaderInstance, Tuple{Finch.FinchNotation.IndexInstance{:i}}}}}}}, a::Finch.DefaultAlgebra)
      @ Finch ~/Finch.jl/src/util.jl:15
    [6] execute(ex::Finch.FinchNotation.LoopInstance{Finch.FinchNotation.IndexInstance{:i}, Finch.FinchNotation.IndexInstance{:(:)}, Finch.FinchNotation.AssignInstance{Finch.FinchNotation.AccessInstance{Finch.FinchNotation.VariableInstance{:check, Scalar{true, Bool}}, Finch.FinchNotation.UpdaterInstance{Finch.FinchNotation.CreateInstance}, Tuple{}}, Finch.FinchNotation.VariableInstance{:&, Finch.FinchNotation.LiteralInstance{&}}, Finch.FinchNotation.CallInstance{Finch.FinchNotation.VariableInstance{:(==), Finch.FinchNotation.LiteralInstance{==}}, Tuple{Finch.FinchNotation.AccessInstance{Finch.FinchNotation.VariableInstance{:tmp, Fiber{ContinuousLevel{Int64, Int64, ElementLevel{false, Bool}}}}, Finch.FinchNotation.ReaderInstance, Tuple{Finch.FinchNotation.IndexInstance{:i}}}, Finch.FinchNotation.AccessInstance{Finch.FinchNotation.VariableInstance{:ref, Fiber{SparseListLevel{Int64, Int64, ElementLevel{false, Bool}}}}, Finch.FinchNotation.ReaderInstance, Tuple{Finch.FinchNotation.IndexInstance{:i}}}}}}})
      @ Finch ~/Finch.jl/src/execute.jl:1
    [7] macro expansion
      @ ~/Finch.jl/src/execute.jl:97 [inlined]
    [8] macro expansion
      @ ~/Finch.jl/test/test_conversions.jl:47 [inlined]
    [9] macro expansion
      @ ~/.julia/juliaup/julia-1.9.0+0.aarch64.apple.darwin14/share/julia/stdlib/v1.9/Test/src/Test.jl:1498 [inlined]
   [10] macro expansion
      @ ~/Finch.jl/test/test_conversions.jl:45 [inlined]
   [11] macro expansion
      @ ~/.julia/juliaup/julia-1.9.0+0.aarch64.apple.darwin14/share/julia/stdlib/v1.9/Test/src/Test.jl:1498 [inlined]
   [12] top-level scope
      @ ~/Finch.jl/test/test_conversions.jl:2
   [13] include(fname::String)
      @ Base.MainInclude ./client.jl:478
   [14] macro expansion
      @ ~/Finch.jl/test/runtests.jl:85 [inlined]
   [15] macro expansion
      @ ~/.julia/juliaup/julia-1.9.0+0.aarch64.apple.darwin14/share/julia/stdlib/v1.9/Test/src/Test.jl:1498 [inlined]
   [16] top-level scope
      @ ~/Finch.jl/test/runtests.jl:81
   [17] include(fname::String)
      @ Base.MainInclude ./client.jl:478
   [18] top-level scope
      @ none:6
   [19] eval
      @ ./boot.jl:370 [inlined]
   [20] exec_options(opts::Base.JLOptions)
      @ Base ./client.jl:280
   [21] _start()
      @ Base ./client.jl:522

Region of interest in test_conversion.jl:
           for base in [
               Element{false},
           ]
               if true
                   for inner in [
                       () -> Continuous(base()),
                   ]
                       for arr in [
                           fill(false, 5),
                          ]
                           ref = @fiber sl(e(false))
                           res = @fiber sl(e(false))
                           ref = dropdefaults!(ref, arr)
                           tmp = Fiber!(inner())
                           begin
                               @finch (tmp .= 0; @loop i tmp[i] = ref[i])
                               check = Scalar(true)
                               @finch @loop i check[] &= tmp[i] == ref[i]
                               println(check[])
                           end
                       end
                   end
               end
           end

Problem : While there is an error when running test using Pkg, running above test code on REPL works well without an error.

This is likely caused by out of bounds array access. Julia only sometimes checks bounds, because it's expensive to check every access (in C, this would be segfault). You can run julia --check-bounds=yes if you want Julia to error on every out of bounds access.

As a followup, try to print @finch_code for the first one that errors.

I was planning to merge this interval list level to main. Do you want me to maintain this level in separate branch?

Codecov Report
Patch coverage: 85.88% and project coverage change: +0.22 :tada:

Comparison is base (2a2e87c) 80.32% compared to head (862059b) 80.55%.

:exclamation: Current head 862059b differs from pull request most recent head 227340d. Consider uploading reports for the commit 227340d to get more accurate results

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #217      +/-   ##
==========================================
+ Coverage   80.32%   80.55%   +0.22%
==========================================
  Files          59       60       +1
  Lines        5153     5327     +174
==========================================
+ Hits         4139     4291     +152
- Misses       1014     1036      +22

Impacted Files
Coverage Δ

src/Finch.jl
100.00% <ø> (ø)

src/tensors/levels/continuouslevels.jl
85.71% <85.71%> (ø)

src/symbolic/simplify_program.jl
80.00% <100.00%> (+0.83%)
:arrow_up:

... and 3 files with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

@willow-ahrens  Can you review this level format?
Basically, it is an interval list level with read/update support along with some test cases.
I solved a strength reduction problem #181 (which corresponds to integral reduction on piece-wise constant function) on  nested loop by adding rewriting in default style instead of dealing in symbolic simplifier. Check src/lower.jl

Continuous -> SparseRLE

Is the following behavior intended?
julia> x = @fiber(srl(e(0.0)), [0, 0, 1, 1, 1, 0, 0])
SparseRLE (0.0) [1:7]
├─[3:3]: 1.0
├─[4:4]: 1.0
├─[5:5]: 1.0

Is the following behavior intended?
julia> x = @fiber(srl(e(0.0)), [0, 0, 1, 1, 1, 0, 0])
SparseRLE (0.0) [1:7]
├─[3:3]: 1.0
├─[4:4]: 1.0
├─[5:5]: 1.0

This was intended after some consideration. Because I want to view integer tensors as a pinpoint coordinate ([a,a]) in our continuous indices, an automatic merging (A[3:5] = 1) would semantically result in different tensor in continuous domain.

I think you've raised a very interesting question: How should we interpret the expression A[2:4]=1 in the context of a continuous tensor field? We have previously discussed two options for interpreting existing integer tensors in a field: (1) a pinpoint interval ([n,n]) and (2) the interval with length 1 ([n, n+1)). So far, I believe that interpreting the existing tensor as a pinpoint field is the correct approach.
However, I have a concern regarding the syntax A[2:4]=1. It seems like this syntax would insert a single piece-wise constant value of 1 into the interval [2,4) in the field A. However, from a semantic standpoint, is A[2:4]=1 actually inserting three piece-wise constants into three discontinuous singleton intervals ([2,2], [3,3], [4,4]) in the integer world? If that is the case, should we consider introducing a different syntax to represent the insertion of a single([2,4)) piece-wise constant value?

I think it's okay to have discrete runs: A[2:4] = 7 means that all of the integers between 2 and 4 are 7, and B[2.0:4.0] = 7 means that all the reals between 2.0 and 4.0 are 7. C[i] += A[i] * B[i] is undefined because we never specified the value of A at e.g. 2.5. Thus, we should say either C[i] += coalesce(A[i], missing) * B[i] or C[i] += A[floor(i)] * B[i] to request the appropriate behavior.

Like, I think that a tensor with integer index types should be understood as defined only on integers, same for floats/reals


Create Home Page

Basic Information

List of Current Tournaments
Shows fixtures for each division within a tournament
No login required

Other Information
Use dummy data for tournaments for now

Hello @Theresa-Nadia & @LemonTheSour The design for this page has changed. Please check out the figma. You should be able to re-use the components that you made :)


Is there a way to pass Sass options within middleman?

For example, I'd like to set :line_numbers to false, so that line numbers and file paths aren't emitted into the compiled CSS as a comment.

Is there any chance we can re-open this issue, considering Compass itself is no longer maintained and the middleman-compass gem itself has also been archived (presumably due to Compass no longer being maintained)?
It seems completely absurd that I have to keep a no-longer-maintained middleman-compass dependency around purely for there to be a means of setting SASS configuration options in my middleman application.

Well, this ticket is 9 years old.
Sass settings can be set directly in config.rb:
set :sass, { stuff }

https://github.com/middleman/middleman/blob/4.x/middleman-core/lib/middleman-core/renderers/sass.rb#L9-L11

@tdreyno :O :raised_hands:


Revert #378b1e6 for s3tc

Following up https://github.com/godotengine/godot/commit/378b1e6cf0cbcc9c30c61e0cabc7090f70fd380c and #10041

Could you add a comment in the code about why the s3tc check can't be defaulted to true on GL core profile?

So what happens to the bugs 378b1e6 fixed?

@Zireael07 normal-map bugs are RGTC related and this PR only revert S3TC part.

wait, why did you guys revert S3TC? I did not know it was dictated by spec too so I Added there..

this merged PR sounds like bureaucracy gone wrong :P

@reduz It's patented, so not always included in core profile (at least not in the non-tainted version of Mesa), so we still need to detect it as it was done previously. It does not revert your previous commit, just the change that forced s3tc to true on desktop.

See https://github.com/godotengine/godot/commit/378b1e6cf0cbcc9c30c61e0cabc7090f70fd380c#commitcomment-23508999
In a few months the patents expire though IIRC, so hopefully we can revert the revert then (though this commit also adds another fix for rgtc on mobile).

@akien-mga I understand, but RGTC is just S3TC too (a derivative), so it's the same thing.. detecting one and leaving the other on by default does not make much sense.
We also have no alternative to provide to the non-tainted Mesa users, as Godot will fail if it does not find S3TC on desktop anyway.  I suggest just leaving both ones as turned on on desktop and not care about non-tainted Mesa users.

To make it clearer, Godot expects a compressed video texture format to be available for 3D to work, so 3D will not work (and never worked, since it was released as open source) for the non-tainted mesa users. As no one ever complained, the problem of the non-tainted Mesa users clearly does not exist :)

Ah ok, so I guess we should re-revert :) Not via git/GitHub revert though, as mentioned there is part of this commit which is still wanted. @bruvzg Can you do the change?

@akien-mga #10143


fix(users): Add max wrong attempts for two-fa

Type of Change

[ ] Bugfix
[ ] New feature
[X] Enhancement
[ ] Refactoring
[ ] Dependency updates
[ ] Documentation
[ ] CI/CD

Description

Previously, there was no limit on the number of failed attempts for TOTP and recovery code. With this PR, a maximum of 4 wrong attempts is introduced for both TOTP and recovery code. After 4 failed attempts, a cooldown period of 5 minutes applies for TOTP, and 10 minutes for the recovery code.

A new endpoint is introduced to check the no of attempts of the user and also if the user has done two-fa recently .

Additional Changes

[X] This PR modifies the API contract
[ ] This PR modifies the database schema
[ ] This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

Request :
curl --location 'http://localhost:8080/user/2fa/v2' \
--header 'Authorization: Bearer JWT'

Response:

If the user has not set twofa

{
    "status": null
}

If the user has twofa set and no attempts is remaining for both recovery code and totp

{
    "status": {
        "totp": {
            "is_completed": false,
            "remaining_attempts": 0
        },
        "recovery_code": {
            "is_completed": false,
            "remaining_attempts": 0
        }
    }
}

If the user has twofa set and no attempts is remaining for recovery code

{
    "status": {
        "totp": {
            "is_completed": false,
            "remaining_attempts": 4
        },
        "recovery_code": {
            "is_completed": false,
            "remaining_attempts": 0
        }
    }
}

If the user has twofa set and no attempts is remaining for totp

{
    "status": {
        "totp": {
            "is_completed": false,
            "remaining_attempts": 0
        },
        "recovery_code": {
            "is_completed": false,
            "remaining_attempts": 4
        }
    }
}

After 4 wrong recovery code attempts , 2fa/recovery_code/verify will throw UR_49 error
Request :
curl --location 'http://localhost:8080/user/2fa/recovery_code/verify' \
--header 'authorization: Bearer JWT' \
--data '{"recovery_code":"some_invalid_recovery_code"}'

Response :
{
    "error": {
        "type": "invalid_request",
        "message": "Maximum recovery code attempts per user reached",
        "code": "UR_49"
    }
}

After 4 wrong totp attempts , 2fa/recovery_code/verify will throw UR_48 error
Request :
curl 'http://localhost:8080/user/2fa/totp/verify' \
  -H 'authorization: Bearer JWT' \
  --data-raw '{"totp":"some_invalid_totp"}'

Response :
{
    "error": {
        "type": "invalid_request",
        "message": "Maximum totp attempts per user reached",
        "code": "UR_48"
    }
}

Checklist

[X] I formatted the code cargo +nightly fmt --all
[X] I addressed lints thrown by cargo clippy
[ ] I reviewed the submitted code
[ ] I added unit tests for my changes where possible

Each key has an expiration time, after which it will be automatically removed. If the user still has remaining attempts, they can proceed directly to the next verification step.

Yeah the user might logic but we have 2FA verification inside the dashboard also... Won't this cause issue there?

Yeah the user might logic but we have 2FA verification inside the dashboard also... Won't this cause issue there?

It wont create issue just the user needs to wait till the cool-down period is over

@lsampras

Some doubts about the error handling, Can ignore if it's intended that way

We can omit this error propagation if the operation fails, as this is an additional check for maximum TOTP attempts. Even without this check, the main functionality should work correctly.

@racnan @apoorvdixit88

delete function calls are logging error at two places.
Will remove the log from delete_recovery_code_attempts_from_redis &  delete_totp_attempts_from_redis function as error is logged where the function is called


Compile cmake upon npm install for "zero"-dependency-style

Hi,
have you considered, building cmake itself upon installation of this module? Something like...
git clone -b master --single-branch --depth 1 https://github.com/Kitware/CMake  node_modules/lib_cmake
./bootstrap --prefix=<this_modules_path>  # path to node_modules/lib_cmake
make && make install

I currently like to integrate your module in peterbraden/node-opencv. Since opencv and this module have a lot of dependencies itself, I care to reduce them by integrating the native dependencies like this.
This would obviously support you argument about cmake being zero-dependent.
If it's worth a shot, I could send you a quick PR.
All the best!

The problem is that's a Linux only solution. It gotta be cross platform.

I think the main issue would building, right? I've experienced this on another project. Spawn works differently for example.
var spawn = require('child_process').spawn
spawn('cmd', ['/c', 'dir'], { stdio: 'inherit'})

Also you'd need doing this with MinGW installed or be in Cygwin (with other dependencies installed).
It would be ugly but I would do this.

adding the git stuff to npm install
Write some install.js, which is probably gonna end up ugly, but effective. This would compile conditional to the OS.

This could be done gracefully falling back to a system version of cmake

Providing a flag / option for the user to either explicitly choose which one to use.

Maybe it's worth exploring it?

I'm of course not against any improvement. Lemme know, if ya have sumthin testable!

I'm closing this, but I'm still waiting for a PR to get landed. ;)


backup_label : return immediately CRITICAL on secondary, or when pg_is_in_backup() = false

A backup_label on a secondary server is not normal and dangerous.
The service should return CRITICAL immediately.

If pg_is_backup () is false, it should return CRITICAL too
(that would cover the previous case).

Hello,
One problem I see with this change is that this checks will not be possible on PG >= 9.3 AND < 10 without being superuser (use of pg_ls_dir.
Fortunately, pg_ls_waldir() saves it with PG10.
If it's OK to support this behavior from PG10+, I'll provide a patch quickly.

Hello,
I've just pushed some changes regarding backup_label_age, but this does not address this issue. Are you willing to push a PR to fix this in the near future ?


Chunk download

Desctiption
Chunk download if endpoint supports chunked download.
Problem
Downloading large files tend to fail
Solution
Add chunk download, redownload the chunk if it fails less than N times.
Design
Use threads to speed up downloads. Download speed is limited by bandwidth and write speed to the disk. Write to disk speed usually differ by usage. so constant write time.
Any download is a job. If chunk download, we need to combine and delete the chunk files so they are a job also.
We have two queues.

Job queue - run concurrently -- doesnt matter what file gets downloaded
Job queues - run only when the previous job_queue finishes -- used for combining chunks

Ex.
job_queue1 = Queue()
download_job1 = Job(...)
download_job2 = Job(...)
job_queue1.put(download_job1).put(download_job2)
job_queue2 = Queue()
combine_job1 = Job(...)
job_queue2.put(combine_job1)
job_queues = Queue()
job_queues.put(job_queue1)
job_queues.put(job_queue2) # run this queue if the previous job_queue is done to guarantee downloads.
Usage:
url = "https://download-some-file.com/"
dest_path = "your/local/folder"
max_retries= 3
downloader = Downloader(
    url=url_path, download_path=dest_path, max_retries=num_retries
)
downloader.download()

Code
stub = "zoo:llama2-7b-ultrachat200k_llama2_pretrain-pruned80"
print(stub)

model = Model(stub)
p = model.onnx_model.path

Output:
(.venv) george@gpuserver6:~/sparsezoo$ python3 -m scratch.down
zoo:llama2-7b-ultrachat200k_llama2_pretrain-pruned80
Downloading Chunks: 100%|█████████████████████████████████████████████████████████| 5.27G/5.27G [00:47<00:00, 112MB/s]
Combining Chunks: 100%|██████████████████████████████████████████████████████████| 5.27G/5.27G [00:05<00:00, 1.01GB/s]
(.venv) george@gpuserver6:~/sparsezoo$

Testing
Basic url mock and donwload count. actual download is covered in e2e

So @horheynm, just so I understand. The logic now computes the amounts of chunks that are to be downloaded, uses concurrency to download all the chunks asynchronously, and the last job is there to "concatenate" all the chunks into a single file right?

yes