如果是编译错误找编译的..如果是链接错误找链接的..

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

ID: 4ba5f238-f422-a6ef-30e1-1a25a2d7d77f
Version Independent ID: c5f94350-d8c5-26a2-d288-bdde951b350c
Content: Linker Tools Error LNK1218
Content Source: docs/error-messages/tool-errors/linker-tools-error-lnk1218.md
Product: visual-cpp
Technology: cpp-diagnostics
GitHub Login: @corob-msft
Microsoft Alias: corob

@lsz7575
I'm sorry this page wasn't helpful. You can see the explanation in the /WX (Treat Linker Warnings as Errors) article. However, you won't see it unless you follow the link and read it there.
For my own use, this is how I translated your request:

Please indicate
C/C++ -> ALL Options -> Treat Warnings As Errors
LINK -> ALL Options -> Treat Linker Warning As Errors
These are different options:
If it's a compile error, it's found by the compiler:
If it's a link error, it's found by the linker:

请添加一句话
如果你是ERROR  LNK1218 去
https://docs.microsoft.com/en-us/cpp/build/reference/wx-treat-linker-warnings-as-errors?view=vs-2019
如果你是 ERROR  C2220 去
https://docs.microsoft.com/en-us/cpp/build/reference/compiler-option-warning-level?view=vs-2019
这两个选项太像了.新手难以区分.

We are in the process of moving away from GitHub issues for C++ documentation (we still accept pull requests). For details, please see Announcing a new way to give feedback on Microsoft Learn This issue will be closed after it is copied to an internal tracking system.


Filter Projects by author

On projects page, add feature to filter projects by author
Related to #165

I'm not sure we need this, we should wait and see.

Invalid, added ability to search by author name: https://github.com/voxmedia/autotune/issues/220


Create a Wiki Page to Document Group's Research on Git

To Do: Create a wiki page, explaining what git and GitHub are, containing useful links for GitHub tutorials and some useful commands.

Added basic commands to use Git effectively, provided links for educational videos and articles.


neighborlist in non-orthorhombic systems

Hello,
This issue is mainly to start a discussion on the interface/behaviour of neighbor_list in the case of non-orthorhombic systems, i.e. when the lattice vectors in the box are not orthogonal. In that case, the box_size needs to be modified (it cannot be the lengths of the lattice vectors), otherwise, wrong results are returned.
I've written a more detailed explanation here, but the short version is that in non-orthorhombic systems, the bins in fractional coordinates correspond to parallelpepipeds in real space, so the real space cutoff is given by the distance between opposing faces, rather than the lengths of the edges.
I think this may also cause trouble with updating the neighborlist, but I haven't tested this.
In any case, I would suggest at least clarifying the docs for box_size. It may also be useful to introducing some helper/wrapper that deals with the (probably not uncommon) case of running a real space simulation with a fractional neighborlist.

Yes! You're totally right that this is (err, was?) a significant problem with neighbor lists in triclinic systems. I hope the situation should be slightly improved following this commit: 55817f84899b0907e285c65afc50dccf41e7bcc4 which uses the distance between opposing faces to produce cell lists with fractional coordinates. Currently, it only works with upper-triangular matrices, but at least it should unblock this case. It also enables slightly better error reporting, which should allow users to identify the need to recompile when the box changes to much with e.g. NPT simulations.
Let me know whether you think this is a step in the right direction or if you have any comments / changes you'd like to see.

Hi Sam, thanks! This looks like a solid preliminary fix.
One thing I haven't tested yet, but am worried about is how changes in the box affect the decision on whether to update the neighborlist. Changing the box changes the implicit cutoff defined by the cell list bins, and so (I think?) one has to take that change into account in the jnp.any(d(position, nbrs.reference_position) > threshold_sq) call, for instance by updating the threshold. If the cell expands, you basically gain additional tolerance, but if it contracts, it shrinks. When it hits the exact threshold, one needs to reallocate, since you start missing neighbours once it goes below the threshold.
I haven't fully worked this out yet -- I don't think jax-md necessarily needs to support this right now, once I have some time I will experiment with this some more, but we should probably think about what can go wrong in NPT and make sure warnings are emitted.

Btw, on a tangent, it may be a good idea to document the convention of cell columns being the lattice vectors, to avoid issues like #220. ase uses the opposite convention, for instance.


e621 Ripper is broke - pls update

Hey this: e621.net had a big update recently and since then the ripper doesn't work anymore. A patch would make me happy. Thanks in advance.

Ripme version: 1.7.91
Java version: cant find it sorry qwq
Operating system: Windows 10 Home x64 (10.0.18363 Build 18363)

e621 changed url from https://e621.net/post/index/1/search to https://e621.net/posts?tags=search&page=1

That's supposed to mean something? It's not working for me ;(

Even with manually editing the url to the old format doesn't work. There are images under this search term yet it says nothing has been found.

I concur with the others. This needs issues desperately needs patching.

I concur with the others. This issue desperately needs patching.

Yeah it would be very nice D:

So far every single ripper or tracker related to e621 is broken, this since
e621 update they site.
I think they bróke all the trackers too.

I made a fix, try it if you want: https://github.com/blackbirddx/ripme
This is compiled jar (if you don't trust me, check my repo and compile it yourself): ripme-e621.zip
Please tell me if you encounter any problems, so I can fix them before making pull request.

I made a fix, try it if you want: https://github.com/blackbirddx/ripme
This is compiled jar (if you don't trust me, check my repo and compile it yourself): ripme-e621.zip
Please tell me if you encounter any problems, so I can fix them before making pull request.

I can't create issue in your repo, but i got an error.

imgs
Imgur with captcha in url
Imgur no captcha

Fixed, here's binary:
ripme-e621-fix-2.zip
Btw. how did you get the url with captcha?

Fixed, here's binary:
ripme-e621-fix-2.zip
Btw. how did you get the url with captcha?

Sometimes it gives a cloudflare page when I connect via VPN. I just copy the full url after "human check"

Fixed, here's binary:
ripme-e621-fix-2.zip
Btw. how did you get the url with captcha?

I still get the 403 error. Is it a problem on my side?

Fixed, here's binary:
ripme-e621-fix-2.zip
Btw. how did you get the url with captcha?

I still get the 403 error. Is it a problem on my side?

It may be problem with the vpn and cloudflare. As the Ripper suggests, including cookies might solve it, but I never got the cloudflare captcha, so I don't really know what to do about it. Maybe try some other vpn (or connecting without vpn).

It may be problem with the vpn and cloudflare. As the app suggests, including cookies might solve it, but I never got the cloudflare captcha, so I don't really know what to do about it. Maybe try some other vpn (or connecting without vpn).

The problem is that I connected with and without vpn. And in any case, I get an error.

The problem is that I connected with and without vpn. And in any case, I get an error.
Before the e621 update, were you also getting the captcha? And did the ripper work for you then?

The problem is that I connected with and without vpn. And in any case, I get an error.

Before the e621 update, were you also getting the captcha? And did the ripper work for you then?

I didn't have a captcha before the update. But I didn't use the ripper until now

I didn't have a captcha before the update. But I didn't use the ripper until now

I'll try to find a solution for that. I've been trying to get a captcha by using a couple free vpns, which I hoped would trigger cloudflare protection, but so far it didn't happen. I'll look into couple more and maybe I'll get lucky.

I'll try to find a solution for that

Try to log in with incognito. I have so without vpn protection CloudFlare triggers. As you come in with vpn - it is not. The problem with 403 is possible due to the blocking of the e621 by provider in Russia. However, error 403 remains even with vpn.

Ooof i hate it so much scince the update -__-

Fixed, here's binary:
ripme-e621-fix-2.zip
Btw. how did you get the url with captcha?

There is still the blacklist problem, I cannot download images that are blacklisted for standard users.

There is still the blacklist problem, I cannot download images that are blacklisted for standard users.

They are blacklisted for a reason. Anyway, login cookies might be a solution here, I'll look into it when I find some time. Although it seems like a bit of an overkill to me. Or I could use e621 API to download everything, but then some users might get stuff they don't want to see.

Try to log in with incognito. I have so without vpn protection CloudFlare triggers. As you come in with vpn - it is not. The problem with 403 is possible due to the blocking of the e621 by provider in Russia. However, error 403 remains even with vpn.

I finaly got the captcha - had to install Windows to get some russian vpn working (just couldn̈́t do it on Linux) and I think cookies might really solve it. I'll try to code it and will report if it works.

They are blacklisted for a reason. Anyway, login cookies might be a solution here, I'll look into it when I find some time. Although it seems like a bit of an overkill to me. Or I could use e621 API to download everything, but then some users might get stuff they don't want to see.

I think I will just add option to config that would enable the global blacklist bypass (would still be disabled by default).

I finaly got the captcha - had to install Windows to get some russian vpn working (just couldn̈́t do it on Linux) and I think cookies might really solve it. I'll try to code it and will report if it works.

Lol, thank you, i will follow your repo

Try to log in with incognito. I have so without vpn protection CloudFlare triggers. As you come in with vpn - it is not. The problem with 403 is possible due to the blocking of the e621 by provider in Russia. However, error 403 remains even with vpn.

I finaly got the captcha - had to install Windows to get some russian vpn working (just couldn̈́t do it on Linux) and I think cookies might really solve it. I'll try to code it and will report if it works.

They are blacklisted for a reason. Anyway, login cookies might be a solution here, I'll look into it when I find some time. Although it seems like a bit of an overkill to me. Or I could use e621 API to download everything, but then some users might get stuff they don't want to see.

I think I will just add option to config that would enable the global blacklist bypass (would still be disabled by default).

It would be very great of you if you could install such a blacklist bypass. Because it's starting to annoy me.

So I think I've finally done it. Compiled jar as always:
ripme-e621fix.zip
Both of the fixes require setting things in config file: https://github.com/RipMeApp/ripme/wiki/Config-options
You also need to find your cookies for e621. I use Cookie Quick Manager in Firefox.

Try to log in with incognito. I have so without vpn protection CloudFlare triggers. As you come in with vpn - it is not. The problem with 403 is possible due to the blocking of the e621 by provider in Russia. However, error 403 remains even with vpn.

 After that, two cookies will be set for e621 - __cfduid and cf_clearance. In the config file (rip.properties) create new option e621.cookies and set it to:
__cfduid=;cf_clearance=
(not entirely sure if the cfduid is strictly necessary, but I rather included it)
Then you need to find out what your browser's user agent is. Just google "what is my user agent". In config create option e621.useragent and set it to your ua.

There is still the blacklist problem, I cannot download images that are blacklisted for standard users.

At the end I decided against the api method, because technical limitations and me being lazy :) Instead, because I already had cookies for the last fix, I used those.
First you need to log in with an account and have Remember ticked. Then new cookie remember is set for e621, so copy its content. In options create  new option e621.cookies and set it to remember=
Then it should stop using the global anonymous user blacklist. Another advantage of being logged in is that it will use your own blacklist, so if you don't want to see something, you can block it. It also allows wildcards (*) in tags.

You can of course combine the two fixes, just set you e621.cookies to:
__cfduid=;cf_clearance=;remember=
Please note, that the cookies have limited lifespan, so eventually you will again have to find your cookies and set them in the config (the captcha I think only lasts couple of hours, the account around a week?)

Both of the fixes require setting things in config file:
I did as you asked - added a new parameters and saved it. However, this did not work, and importantly, the new parameters was erased from the file.

Both of the fixes require setting things in config file:

I did as you asked - added a new parameters and saved it. However, this did not work, and importantly, the new parameters was erased from the file.

You need to do it when the app is closed, then save and run the app

Just tried your latest fix and it worked for me. Thanks a lot, blackbirddx

You need to do it when the app is closed, then save and run the app

Ok, Apparently that time I was doing something wrong. In any case, it didn’t work for me. I was passed captcha less than 5 minutes ago

You need to do it when the app is closed, then save and run the app

Ok, Apparently that time I was doing something wrong. In any case, it didn’t work for me. I was passed captcha less than 5 minutes ago

It's e621.cookies, not e621.cookie.

I'm a bit confused right now, I've downloaded version 1.7.92 and still the blacklist is still used, how do I set it to ignore it?

It's e621.cookies, not e621.cookie.
thank you very much, its work

I'm a bit confused right now, I've downloaded version 1.7.92 and still the blacklist is still used, how do I set it to ignore it?

If you downloaded the official build, my patch is still not part of it. You need to download my version.
Then follow the steps I described a few comments ago https://github.com/RipMeApp/ripme/issues/1604#issuecomment-611507949.

I'm a bit confused right now, I've downloaded version 1.7.92 and still the blacklist is still used, how do I set it to ignore it?

Please let me know if it works for you. I want to make pull request to get this fix into the app, but I first need to know if the patch works.

I'm a bit confused right now, I've downloaded version 1.7.92 and still the blacklist is still used, how do I set it to ignore it?

If you downloaded the official build, my patch is still not part of it. You need to download my version.
Then follow the steps I described a few comments ago.

I just don't understand the steps, can you make me a config or show me exactly where I have to install it with the help of screenshots? That would be really very nice.

I just don't understand the steps, can you make me a config or show me exactly where I have to install it with the help of screenshots? That would be really very nice.

e621-ripme-fix-howto.pdf

I just don't understand the steps, can you make me a config or show me exactly where I have to install it with the help of screenshots? That would be really very nice.

e621-ripme-fix-howto.pdf

OMG THX YOU SO MUCH, ITS AMAZING :DD IT WORKS PERFECTLY :+1: :100: :1st_place_medal:

You're all welcome :) Hope the pull request gets merged soon, so it may get into the next release.


[CT-1040] [Bug] Selectors fail on dbt deps

Is this a new bug in dbt-core?

[X] I believe this is a new bug in dbt-core
[X] I have searched the existing issues, and I could not find an existing issue for this bug

Current Behavior
dbt deps fails when a selector using inheritance is implemented. Error occurring at this line.
The definition is
{'method': 'selector', 'value': ''}

i.e. the value is not being read for the selector method.
I believe it is because default: "{{ target.type == 'snowflake' | as_bool }}" yaml is not being read at time of dbt deps
Expected Behavior
selectors should be
Steps To Reproduce

Add selectors.yaml with inheritance e.g.

selectors:
  - name: snowflake
    default: "{{ target.type == 'snowflake' | as_bool }}"
...
  - name: pr_run
    description: PR Jobs
    definition:
      union:
        - intersection:
          - method: selector
            value: "{{ target.type }}"
          - "+state:modified+"

Run dbt deps

Relevant log output
Traceback (most recent call last):
  File "/Users/danieldiamond/.virtualenvs/dev-dbt/lib/python3.9/site-packages/dbt/config/selectors.py", line 38, in selectors_from_dict
    selectors = parse_from_selectors_definition(selector_file)
  File "/Users/danieldiamond/.virtualenvs/dev-dbt/lib/python3.9/site-packages/dbt/graph/cli.py", line 260, in parse_from_selectors_definition
    "definition": parse_from_definition(
  File "/Users/danieldiamond/.virtualenvs/dev-dbt/lib/python3.9/site-packages/dbt/graph/cli.py", line 240, in parse_from_definition
    return parse_union_definition(definition, result=result)
  File "/Users/danieldiamond/.virtualenvs/dev-dbt/lib/python3.9/site-packages/dbt/graph/cli.py", line 157, in parse_union_definition
    include, exclude = _parse_include_exclude_subdefs(
  File "/Users/danieldiamond/.virtualenvs/dev-dbt/lib/python3.9/site-packages/dbt/graph/cli.py", line 150, in _parse_include_exclude_subdefs
    parse_from_definition(definition, result=result))
  File "/Users/danieldiamond/.virtualenvs/dev-dbt/lib/python3.9/site-packages/dbt/graph/cli.py", line 242, in parse_from_definition
    return parse_intersection_definition(definition, result=result)
  File "/Users/danieldiamond/.virtualenvs/dev-dbt/lib/python3.9/site-packages/dbt/graph/cli.py", line 171, in parse_intersection_definition
    include, exclude = _parse_include_exclude_subdefs(
  File "/Users/danieldiamond/.virtualenvs/dev-dbt/lib/python3.9/site-packages/dbt/graph/cli.py", line 150, in _parse_include_exclude_subdefs
    parse_from_definition(definition, result=result))
  File "/Users/danieldiamond/.virtualenvs/dev-dbt/lib/python3.9/site-packages/dbt/graph/cli.py", line 244, in parse_from_definition
    return parse_dict_definition(definition, result=result)
  File "/Users/danieldiamond/.virtualenvs/dev-dbt/lib/python3.9/site-packages/dbt/graph/cli.py", line 198, in parse_dict_definition
    raise ValidationException(
dbt.exceptions.ValidationException: Runtime Error
  Existing selector definition for  not found.

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

Traceback (most recent call last):
  File "/Users/danieldiamond/.virtualenvs/dev-dbt/lib/python3.9/site-packages/dbt/main.py", line 129, in main
    results, succeeded = handle_and_check(args)
  File "/Users/danieldiamond/.virtualenvs/dev-dbt/lib/python3.9/site-packages/dbt/main.py", line 192, in handle_and_check
    task, res = run_from_args(parsed)
  File "/Users/danieldiamond/.virtualenvs/dev-dbt/lib/python3.9/site-packages/dbt/main.py", line 219, in run_from_args
    task = parsed.cls.from_args(args=parsed)
  File "/Users/danieldiamond/.virtualenvs/dev-dbt/lib/python3.9/site-packages/dbt/task/deps.py", line 91, in from_args
    return super().from_args(args)
  File "/Users/danieldiamond/.virtualenvs/dev-dbt/lib/python3.9/site-packages/dbt/task/base.py", line 108, in from_args
    config = cls.ConfigType.from_args(args)
  File "/Users/danieldiamond/.virtualenvs/dev-dbt/lib/python3.9/site-packages/dbt/config/runtime.py", line 581, in from_args
    project, profile = cls.collect_parts(args)
  File "/Users/danieldiamond/.virtualenvs/dev-dbt/lib/python3.9/site-packages/dbt/config/runtime.py", line 209, in collect_parts
    project = partial.render(project_renderer)
  File "/Users/danieldiamond/.virtualenvs/dev-dbt/lib/python3.9/site-packages/dbt/config/project.py", line 286, in render
    return self.create_project(rendered)
  File "/Users/danieldiamond/.virtualenvs/dev-dbt/lib/python3.9/site-packages/dbt/config/project.py", line 405, in create_project
    selectors = selector_config_from_data(rendered.selectors_dict)
  File "/Users/danieldiamond/.virtualenvs/dev-dbt/lib/python3.9/site-packages/dbt/config/selectors.py", line 109, in selector_config_from_data
    selectors = SelectorConfig.selectors_from_dict(selectors_data)
  File "/Users/danieldiamond/.virtualenvs/dev-dbt/lib/python3.9/site-packages/dbt/config/selectors.py", line 50, in selectors_from_dict
    raise DbtSelectorsError(
dbt.exceptions.DbtSelectorsError: Runtime Error
  Could not read selector file data: Runtime Error
    Existing selector definition for  not found.
22:42:35  Encountered an error:
Runtime Error
  Could not read selector file data: Runtime Error
    Existing selector definition for  not found.

### Environment

```markdown
- OS: MacOS Monterey 12.4
- Python: 3.9.12
- dbt: 1.2.0

Which database adapter are you using with dbt?
snowflake
Additional Context
https://github.com/dbt-labs/dbt-core/pull/4827

Interestingly, I've thrown a breakpoint() at the offending line. When running dbt deps it appears that target dictionary is not being read - hence the empty value. But when running dbt debug, the target is being read.

cc'ing @gshank

@danieldiamond This is indeed because profiles.yml is not read during dbt deps & dbt clean, and so target is set to {}. (That's been true since dbt Core v1.0.x.) As a result, {{ target.type }} returns None/Undefined.

Thanks for the prompt reply @jtcohen6. What's the best way to proceed? Are we able to disable reading selector definitions at these moments? Should I rather add a default value in the jinja as a redundant fallback?

Should I rather add a default value in the jinja as a redundant fallback?

I think this would give you the quickest resolution, yep.
Given that node selection is not relevant for deps or clean, it would strike me as sensible to skip parsing that file for those tasks.

Proposed resolution: Do not parse selectors.yml for deps and clean tasks, because the information is never needed

hey @jtcohen6 sorry I should've followed up, I went with
value: "{{ target.type|default('snowflake', true) }}"

as a workaround for now. but I agree that we should not parse selectors.yml for deps or clean tasks. if you point me in the right direction I'd be more than happy to create a PR with the necessary changes

If it's an UnsetProfileConfig and if it is we can skip rendering the selectors.
Additionally, there seems to be some dead code in selector config object.  render_from_dict and from_path (need to verify before removing).


fix: rm deps and gen in makefile

关联的Issues (Related Issues)

close https://github.com/filecoin-project/venus/issues/5267
改动 (Proposed Changes)

rm deps and gen in makefile
附注 (Additional Info)

自查清单 (Checklist)
在你认为本 PR 满足被审阅的标准之前，需要确保 / Before you mark the PR ready for review, please make sure that:

[x] 符合Venus项目管理规范中关于PR的相关标准 / The PR follows the PR standards set out in the Venus project management guidelines
[x] 具有清晰明确的commit message / All commits have a clear commit message.
[x] 包含相关的的测试用例或者不需要新增测试用例 / This PR has tests for new functionality or change in behaviour or not need to add new tests.
[x] 包含相关的的指南以及文档或者不需要新增文档 / This PR has updated usage guidelines and documentation or not need
[ ] 通过必要的检查项 / All checks are green

Codecov Report

Merging #252 (d203b70) into master (c824fde) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #252   +/-   ##
=======================================
  Coverage   53.74%   53.74%
=======================================
  Files          63       63
  Lines        6784     6784
=======================================
  Hits         3646     3646
  Misses       2839     2839
  Partials      299      299

Flag
Coverage Δ

unittests
53.74% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


box-sizing: border-box; Returns width without border and padding

After updating the box-sizing to border-box in my application all the existing functionality I was utilizing from this project started being inconsistent because of padding and borders.
// Normalize box-sizing.
// More info: https://css-tricks.com/box-sizing/#article-header-id-6
html {
  box-sizing: border-box;
}

Is there a way to request the width returned to include these? Or calculate these manually? I noticed some of the doc examples call out padding, but I don't see a way to calculate width + padding + borders with what is returned.
Currently I am getting the offsetWidth from the target, but asking for this property causes a reflow every time they are accessed.

Unfortunately, ResizeObserver calculates and tracks only the content-box of an element and there is no way you can make it work with any other box-model. FYI, I've already suggested extending it with an optional parameter which would specify what kind of a box-model needs to be observed.
For the being, you can't avoid extra reflows if you need to calculate the border-box of an element. I figure that the offset[width/height] properties are your best option here, unless you want to retrieve non-rounded values or to have them with CSS transformations. In such case, stick with the getBoundingClientRect.


Comparison fails on objects returned by IO.select

When passing a list of sockets to IO.select, comparing those sockets against the originals fails, though the implementation (appears) to push the sockets onto the returned array so the object references are the same. The objects have the same object id's. Here's an example of the behaviour, where the first loop shows an example of the expected output of the other examples:
require "socket"

class HTTPWrapper
  getter conn

  def initialize(domain)
    @conn = TCPSocket.new domain, 8080
    @conn.puts "GET / HTTP/1.1"
    @conn.puts "Host: #{domain}"
    @conn.puts "\n"
  end
end

def main
  # List of HTTPWrapper objects connected to a website.
  domains = (["<IP_ADDRESS>"] * 3).map { |domain| HTTPWrapper.new domain }

  # List of the underlying sockets so that IO.select can be used.
  sockets = domains.map &.conn

  #---------------------------------------------------------------------------
  puts
  puts "Test 1: normal"
  sockets.each do |socket|
    puts (domains.find &.conn.==(socket)) || "Nil"
  end

  #---------------------------------------------------------------------------
  puts
  puts "Test 2: select"
  IO.select(sockets).each do |socket|
    puts (domains.find &.conn.==(socket)) || "Nil"
  end

  #---------------------------------------------------------------------------
  puts
  puts "Test 3: nested"
  [sockets, IO.select(sockets)].each do |group|
    group.each do |socket|
      puts (domains.find &.conn.==(socket)) || "Nil"
    end
  end
end

main

The output:
Test 1: normal
#<HTTPWrapper:0x6a0d60>
#<HTTPWrapper:0x6a0ca0>
#<HTTPWrapper:0x6a0c00>

Test 2: select
Nil
Nil

Test 3: nested
Nil
Nil
Nil
Nil
Nil
Nil

I think this a compiler bug, since swapping the == call around (domains.find {|domain| socket == domain.conn }) works. I'd say it generates a call to IO#== instead of a runtime dispatch among the other possible subclasses or something like that.

Reduced:
class Reference
  def method(other : Reference)
    true
  end

  def method(other)
    false
  end
end

module Moo
end

class Foo
  include Moo
end

class Bar
  include Moo
end

x = Foo.new
y = x as Moo

puts x.method(x)
puts x.method(y)

The bug is that the compiler isn't treaing Moo as a union of all the types including it, and Moo isn't a Reference so it goes to the other overload.


On Windows - unable to save edits

Description
Attempting to edit a page results in failure when tinacms is deployed on Windows.
Steps to reproduce

gatsby new my-tinacms-starter https://github.com/tinacms/gatsby-starter-tinacms

cd gatsby-starter-tinacms

gatsby develop

Select a page

Edit HTML

Expected result
What should happen?
HTML successfully edited, and see a new git commit.
Actual result
error: pathspec 'C:\dev\toyapps\my-tina-starter\C:\dev\toyapps\my-tina-starter\content\blog\hello-world\index.md' did not match any file(s) known to git

Environment

Windows 10

node v12.13.0

Notes

The directory name was repeated twice
'C:\dev\toyapps\my-tina-starter\C:\dev\toyapps\my-tina-starter\content\blog\hello-world\index.md'

The fileRelativePath does not start with /content on Windows

  "componentChunkName": "component---src-templates-blog-post-js",
  "path": "/hello-world/",
  "webpackCompilationHash": "",
  "result": {
    "data": {
      "site": {
        "siteMetadata": {
          "title": "Gatsby Starter Blog",
          "author": "Kyle Mathews"
        }
      },
      "markdownRemark": {
        "id": "8c658351-c0c8-5559-83e7-64fb0d699edb",
        "excerpt": "This is my first post on my new fake blog! How exciting! I’m sure I’ll write a lot more interesting things in the future. Oh, and here’s a great quote from this…",
        "html": "
This is my first post ...
",
        "fileRelativePath": "C:/dev/toyapps/my-tina-starter/content/blog/hello-world/index.md",
        "rawFrontmatter": "{\"title\":\"Hello World\",\"date\":\"2015-05-01T22:12:03.284Z\",\"description\":\"Hello World\"}",
        "rawMarkdownBody": "\r\nThis is my first post on...\r\n",
        "frontmatter": {
          "title": "Hello World",
          "date": "May 01, 2015",
          "description": "Hello World"
        }
      }
    },
    "pageContext": {
      "isCreatedByStatefulCreatePages": false,
      "slug": "/hello-world/",
      "previous": null,
      "next": {
        "fields": {
          "slug": "/my-second-post/"
        },
        "frontmatter": {
          "title": "My Second Post!"
        }
      }
    }
  }
}

A canary release has been published that should have this fix. Once it's confirmed that the canary works, I will cherry-pick this to next and then latest.

Thanks I can confirm canary works on Windows


dual-pkg

#164
This is not an actual PR. Just to sharing the code to investigate the dual package hazard.

Closed because it does not have to be open.


Custom Docker Host does not work

My docker host is set to DOCKER_HOST=tcp://<IP_ADDRESS>:12675
When I try the starter app it's unable to connect to redis because it's expecting it to be on localhost I think but it's not, it's on the custom host.
StackExchange.Redis.RedisConnectionException: The message timed out in the backlog attempting to send because no connection became available (5000ms) - Last Connection Exception: SocketFailure (ReadSocketError/ConnectionReset, 0-read, last-recv: 0) on localhost:51021/Interactive, Flushed/Faulted, last: ECHO, origin: ReadFromPipe, outstanding: 12, last-read: 0s ago, last-write: 0s ago, unanswered-write: 0s ago, keep-alive: 60s, state: ConnectedEstablishing, mgr: 9 of 10 available, last-heartbeat: never, global: 0s ago, v: <IP_ADDRESS>28, command=GET, timeout: 5000, inst: 0, qu: 0, qs: 12, aw: False, bw: CheckingForTimeout, rs: ReadAsync, ws: Flushed, in: 0, in-pipe: 0, out-pipe: 0, last-in: 0, cur-in: 0, sync-ops: 0, async-ops: 1, serverEndpoint: localhost:51021, conn-sec: 1.01, aoc: 0, mc: 1/1/0, mgr: 10 of 10 available, clientName: ACEPARALLELS(SE.Redis-v<IP_ADDRESS>28), IOCP: (Busy=0,Free=1000,Min=1,Max=1000), WORKER: (Busy=0,Free=32767,Min=8,Max=32767), POOL: (Threads=7,QueuedItems=0,CompletedItems=678,Timers=11), v: <IP_ADDRESS>28 (Please take a look at this article for some common client-side issues that can cause timeouts: https://stackexchange.github.io/StackExchange.Redis/Timeouts)
 ---> StackExchange.Redis.RedisConnectionException: SocketFailure (ReadSocketError/ConnectionReset, 0-read, last-recv: 0) on localhost:51021/Interactive, Flushed/Faulted, last: ECHO, origin: ReadFromPipe, outstanding: 12, last-read: 0s ago, last-write: 0s ago, unanswered-write: 0s ago, keep-alive: 60s, state: ConnectedEstablishing, mgr: 9 of 10 available, last-heartbeat: never, global: 0s ago, v: <IP_ADDRESS>28
 ---> Pipelines.Sockets.Unofficial.ConnectionResetException: An existing connection was forcibly closed by the remote host.
 ---> System.Net.Sockets.SocketException (10054): An existing connection was forcibly closed by the remote host.
   at Pipelines.Sockets.Unofficial.Internal.Throw.Socket(Int32 errorCode) in /_/src/Pipelines.Sockets.Unofficial/Internal/Throw.cs:line 59
   at Pipelines.Sockets.Unofficial.SocketAwaitableEventArgs.<GetResult>g__ThrowSocketException|10_0(SocketError e) in /_/src/Pipelines.Sockets.Unofficial/SocketAwaitableEventArgs.cs:line 86
   at Pipelines.Sockets.Unofficial.SocketAwaitableEventArgs.GetResult() in /_/src/Pipelines.Sockets.Unofficial/SocketAwaitableEventArgs.cs:line 79
   at Pipelines.Sockets.Unofficial.SocketConnection.DoReceiveAsync() in /_/src/Pipelines.Sockets.Unofficial/SocketConnection.Receive.cs:line 64
   --- End of inner exception stack trace ---
   at System.IO.Pipelines.Pipe.GetReadResult(ReadResult& result)
   at System.IO.Pipelines.Pipe.GetReadAsyncResult()
   at StackExchange.Redis.PhysicalConnection.ReadFromPipe() in /_/src/StackExchange.Redis/PhysicalConnection.cs:line 1760
   --- End of inner exception stack trace ---
   --- End of inner exception stack trace ---
   at Microsoft.AspNetCore.OutputCaching.StackExchangeRedis.RedisOutputCacheStore.Microsoft.AspNetCore.OutputCaching.IOutputCacheStore.GetAsync(String key, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.OutputCaching.OutputCacheEntryFormatter.GetAsync(String key, IOutputCacheStore store, CancellationToken cancellationToken)
   at Microsoft.AspNetCore.OutputCaching.OutputCacheMiddleware.<>c.<<TryServeFromCacheAsync>b__14_0>d.MoveNext()
--- End of stack trace from previous location ---
   at Microsoft.AspNetCore.OutputCaching.WorkDispatcher`2.ScheduleAsync[TState](TKey key, TState state, Func`3 valueFactory)
   at Microsoft.AspNetCore.OutputCaching.OutputCacheMiddleware.TryServeFromCacheAsync(OutputCacheContext cacheContext, IReadOnlyList`1 policies)

FYI, the reason I'm doing this is because I'm trying to run Visual Studio on my M2 Mac Studio on Windows ARM VM in Parallels and use Docker Desktop host on my Mac because I can't install docker desktop on Windows because I can't enable nested virtualization on Apple Silicon and therefore no Hyper-V and therefore no Docker Desktop on Windows ARM VM.
If there is a workaround to get this working, I'm happy to try another way.

You can see I tried vscode on my Mac directly and it seems while I can run things, debugging does not appear to be working.
https://github.com/dotnet/aspire/issues/1651

Any news on this?
I run docker directly on wsl2 without using docker desktop and can't use aspire for this...
I see in the source that aspire look for docker desktop executable instead of referencing DOCKER_HOST environment variable as other libraries do (ex. testcontainer)

We do depend on Docker CLI (or Podman CLI) being available on the path, but it doesn't have to specifically be Docker Desktop for Windows. Docker publishes builds of the Docker binaries or you can use a package manager such as winget or Chocolatey to install the Docker CLI.

Thanks for the hint, il give it a try.
Just curios. there are any advantages or necessities to depend on the docker/podman cli instead of using the DOCKER_HOST solution?

i installed docker cli with winget and I can connect to the remote docker engine (my setup is docker engine running on wsl2 without docker desktop)
but aspire is still not working:
Microsoft.Extensions.Hosting.Internal.Host[11]
      Hosting failed to start
      Aspire.Hosting.DistributedApplicationException: Container runtime 'docker' could not be found. The error from the container runtime check was: exec: "docker": executable file not found in %PATH%.
      See https://aka.ms/dotnet/aspire/containers for more details on supported container runtimes.
         at Aspire.Hosting.Dcp.DcpDependencyCheck.EnsureDcpContainerRuntime(DcpInfo dcpInfo) in /_/src/Aspire.Hosting/Dcp/DcpDependencyCheck.cs:line 190
         at Aspire.Hosting.Dcp.DcpDependencyCheck.GetDcpInfoAsync(CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/DcpDependencyCheck.cs:line 99
         at Aspire.Hosting.Dcp.DcpDependencyCheck.GetDcpInfoAsync(CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/DcpDependencyCheck.cs:line 115
         at Aspire.Hosting.Dcp.DcpHostService.StartAsync(CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/DcpHostService.cs:line 67
         at Microsoft.Extensions.Hosting.Internal.Host.<StartAsync>b__15_1(IHostedService service, CancellationToken token)
         at Microsoft.Extensions.Hosting.Internal.Host.ForeachService[T](IEnumerable`1 services, CancellationToken token, Boolean concurrent, Boolean abortOnFirstException, List`1 exceptions, Func`3 operation)

but the docker executable is in %PATH%.

pwsh  echo $Env:PATH
C:\Program Files\PowerShell\7;C:\Program Files\Eclipse Adoptium\jdk-<IP_ADDRESS>-hotspot\bin;C:\Program Files\Python311\Scripts;C:\Program Files\Python311;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\Program Files\dotnet;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\Git\cmd;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn;C:\Program Files\Microsoft SQL Server\150\Tools\Binn;C:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\bin;C:\Program Files\WireGuard;C:\Program Files\nodejs;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit;C:\Program Files\PowerShell\7;C:\Users\giamm\AppData\Local\Microsoft\WindowsApps;C:\Users\giamm\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\giamm\AppData\Local\Programs\Azure Data Studio\bin;C:\Users\giamm.dotnet\tools;C:\Users\giamm\AppData\Local\Programs\oh-my-posh\bin;C:\Users\giamm\AppData\Roaming\npm;C:\Users\giamm\AppData\Local\Microsoft\WinGet\Packages\Docker.DockerCLI_Microsoft.Winget.Source_8wekyb3d8bbwe\docker;

Thanks for the hint, il give it a try. Just curious. there are any advantages or necessities to depend on the docker/podman cli instead of using the DOCKER_HOST solution?

Mostly to avoid a lot of headaches with authentication/access to remote endpoints; the endpoint could be a named pipe, a unix domain socket, http(s), or even SSH, plus it (hopefully) is protected with certificates or other credentials, which would also need to be configured. Since Docker (or Podman) have already abstracted away all those connection details for us, it ends up easier to depend on the CLI (plus it has the added bonus of guaranteeing that any commands we run, the user can run the same command from the CLI and get the same results).
As for not finding docker on the path, first troubleshooting step I'd do would be to restart any VS/VSCode/shell instances that were running before you installed the CLI, since they wouldn't be able to see any changes to environment variables made after they were launched.

I get the same error as giammin above related to docker: Aspire.Hosting.DistributedApplicationException: Container runtime 'docker' could not be found. The error from the container runtime check was: exec: "docker": executable file not found in %PATH%.
Tried restart everything but still same error. When typing docker in a normal shell it works, so it's in my PATH. Feels like Rider, or more specifically something related to just Aspire gets the wrong PATH.

in my case after updating all the aspire requirements and a reboot the issue disappeared.

It would be nice to support docker context as well. Currently, I'm using docker compose to manage development dependencies (SQL server, Azure Cosmos emulator, redis, fake mail server, azurite emulator, etc). I use macbook for daily development, and use containers from another machine for hosting development dependencies. Less resource needed for macbook, as it's fully reserved for my IDE rather than dependencies. I am happy with current setup. But adopting aspire is my list, as I can get benefit of builtin orchestrator (tracing is my favorite). Of course, this will make my teammate easier to get started.


⚠ ClamAV has degraded performance

In 5b356cc, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 67 ms

Resolved: ClamAV performance has improved in 46c7d32.


Filter fuzzer

Laying down the absolute minimum basis for a per-filter fuzzer.

@markdroth

Conflicts will evaporate once #29268 relands


JAMES-1622: upgrade to HBase 0.94 to handle <IP_ADDRESS> localhost

already applied, @rouazana could you close it ?


support for configurable $id in Phpass\Adapter\Portable.php

Me again.
I was wondering if it would be possible to change Portable.php to accept the id string ($H$) as config option.
This would be much cleaner than the current if ($id != '$P$' && $id != '$H$')  stuff and also allow to make things like isValid() work too.
Cheers, mano

It should be easy to add the id string as an option to the adapter, but I'm not sure how useful that would be. Is there a solid use case where you might need to change the id string on the fly?

hm, i am not changing it on the fly, but i might need two instances with different ids.
In my case the code might need to support standard hashes and phpbb3 hashes, so i like to have two instances, one for each id.
also, with just a single id property all of the class code will work with that id, including generation of new hashes using the custom id.

Okay, I think I see what you're saying. You might need need to work with both phpass standard and phpbb portable hashes. The adapter can validate, but not generate, hashes with the phpbb identifier.
I'd hate to allow for more fragmentation here. Would it work to have a flag to generate phpbb hash strings (maybe phpbbCompat?), or do you think allowing arbitrary id strings in these hashes is really necessary?

Ah, ok - i could live with that - looks like the new API is a bit different anyway.
I wonder what more fragmentation there would be? Ok, people could use different strings, but as long as the rest is the same it doesn't really make much sense anyway. (In that respect I do not really see the sense in what phpbb3 does).
OTOH, I'd rather have a generic optional way to use a different id rather than hardcoded special cases for specific applications. That would spoil the whole modularisation, IMO.
If yo feel strongly about it (I haven't really looked deeper into the 2.0 branch) would it be possible to have instead a phpbb3 specific adapter? It could extend the default class and just change the id - that way the code sharing is similar, but instead of having if/else code looking for a phpbb3 flag (how is that different from allowing to pass in the id?) you'd have a nice specific implementation for phpbb3.
Either way - just asking. I've lived with a custom patched version for a few years now, so no need to rush. Still, I'd rather use a stock standard version...

Ah, i'm down with the custom adapter for phpBB3,but i do have one use case for allowing one to set the hash identifier.
I've been using an older version of postfixadmin to manage my email boxes and it sets the hash id to $1$.
I'm about to migrate my email away from self hosted so i won't really care if you don't bother,
but i did want to share the use case.


Add KHR_binary_glTF to extensionsUsed when exporting binary glTF

Another pretty simple change for passing validation: http://github.khronos.org/glTF-Validator/

Looks good!


How do I export from one machine and integrate on another?

I have read about export (https://devblogs.microsoft.com/cppblog/vcpkg-introducing-export-command/) but I do not wish to have developers install a .nuget. I want them to use vcpkg mirroring our build-server, but not have to build everything themselves. This way their setup better mirrors the build machine.
Reading https://vcpkg.readthedocs.io/en/latest/users/integration/#export-command it mentions:

Each of these have the same layout, which mimics the layout of a full vcpkg:

installed\ contains the installed package files

Does that mean I can use the following process:

Build-server: Run vcpkg install , this will be used in our builds
Build-server: Run vcpkg export to generate ZIP/raw folder
My PC: install clean vcpkg
My PC: copy <vcpkg-export-dir> => .\vcpkg\installed
My PC: vcpkg integrate install

I have run into issues before trying to hack file-structure so I'd like to be clear if this will work properly... if a developer then wants to install a new port on their PC, or rebuild one that was exported, will this work? Our full vcpkg install now takes several hours so every time I miss something and redo it is painful :)
For that matter, can I just copy \vcpkg\installed dir between machines? Is this different to exporting raw?

Looking a bit more, it seems export works similarly to install, you have to specify each port and triplet. I really just want to create an export of everything I have installed in one go - is this not supported?

We don't support export muti targets now.
And you should use feature binarycaching, see documentation.

@JackBoosY it seems this might be what we want but after reading that page and the more up to date https://github.com/microsoft/vcpkg/blob/master/docs/users/binarycaching.md I don't see how to use the cached files.
My goal is for developers to use vcpkg locally; I read that vcpkg has binary caching on by default, so I checked in %LOCALAPPDATA%\vcpkg\archives:

Looking in archives I don't know what I expected to see, but it is seemingly a load of folders each containing a few archives (I think one per port/triplet combination or something):

The one thing the docs don't seem to say is what I do with all this. It's currently on my build machine, and I want to use it on my development machine. This seems to be the CI -> Developer user story but there is no mention how to consume these caches on my dev-box.
I found this blog post which again explains the concept nicely and how to generate caches, but not how to consume them. https://devblogs.microsoft.com/cppblog/vcpkg-accelerate-your-team-development-environment-with-binary-caching-and-manifests/
I get the impression it is very trivial but let's say my cache is in \\<BUILD-SERVER\vcpkg_cache\ what do I do on my dev box to use it?

it seems this might be what we want but after reading that page and the more up to date https://github.com/microsoft/vcpkg/blob/master/docs/users/binarycaching.md I don't see how to use the cached files.

Well, you use them the same way you generate them.
I.e. pass --binarysource=\\<BUILD-SERVER\vcpkg_cache\,r to vcpkg

The  optional parameter for certain sources controls whether they will be consulted for downloading binaries (read (default), whether on-demand builds will be uploaded to that remote (write), or both (readwrite).

@Osyotr so I would still need to run vcpkg install [...] --binarysource=\\<BUILD-SERVER\vcpkg_cache\,r for each package on my dev-box, and then vcpkg integrate install as normal? I had figured I could just use the binary cache as a single blob if I misunderstood that, it would explain my confusion :)

vcpkg on my dev-box will, what, copy all those remote files into my local vcpkg\installed directory then they're used as normal?
Yep. When you run vcpkg install my_lib --binarysource=...,r it will just copy files from remote folder if they exist, otherwise it will build the library.


Add Wanderer Implementation

[x] Hitboxes not correctly implemented yet
[ ] Attack Speed effectiveness not correctly implemented yet
[x] Jumping in E needs to be implemented

Wanderer's E can expire mid NA, see: https://discord.com/channels/763583452762734592/1049884168164757595/1056882731360976917

With #1126 being merged, you basically only have to do:

combat.NewCircleHit(c.Core.Combat.Player(), c.Core.Combat.PrimaryTarget(), nil, r) for N1/N2/N3-1/N3-2 (both in and outside of E)
combat.NewCircleHitOnTarget(c.Core.Combat.PrimaryTarget(), nil, r) for CA/Q
combat.NewCircleHitOnTarget(c.Core.Combat.Player(), nil, r) for E Initial, A1 Absorb Check, Plunge, Low Plunge
combat.NewCircleHitOnTarget(trg, nil, r) for C6
The for r you can just use the values I already provided.

many tasks/callbacks (depleteSkydwellerPoints/makeParticleGenCallback/makeA4Callback/etc) can be rewritten without returning the function


Custom keywords impl support

Hi, my company is considering using this library. We want to be able to extend the JSON Schema spec with custom keywords, but it is not currently supported. I would be happy to discuss this change with you and contribute.
I tried implementing a range keyword as described in 1. I ran into these problems:

The base keyword classes (AbstractNumericAssertion) are private, and can't be extended in my own package.
ProblemBuilder withMessage builder method requires Message as argument. I think it would be better if it accepts BaseMessage, which should be a public interface I can implement.
I'm not yet sure how to inject my own keyword into Justify, but StandardKeywordFactory seems to be the way. Maybe it can have an addKeyword method?

Happy to help, if you have an API in mind, I can come up with an impl. Thanks for this great project!

@Navgeet
There are two challenging tasks left for me in this project.

Implement the latest specification draft 2019-09 (see #29)
Implement mechanism for users to extend the validator with their own custom keywords, as you requested

I am currently working on the first task.
The latest specification will introduce a new concept vocabulary, which is a unit for grouping schema keywords.  The concept may force me to change the software design relating to schema keywords
and may also provide an impact on the extension API for custom keywords.
Could you please wait for me to improve the current design in order to accommodate the latest specification?

Sure, makes sense.


CLOUd-50690 Fix cert file path in services

@keyki plz review

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1944/


etcdctlv3/command: add with-prefix flag for get

Usage:
./bin/etcdctlv3 --endpoints=<IP_ADDRESS>:2378  get --with-prefix foo

It returns the data with key prefix "foo".

PTAL

LGTM. Please squash all commits into one. Thanks for the effort!

PTAL


Refactor security_checker.yaml for using autowire and autoconfigure options.

Enabled autowire and autoconfigure in _default section and refactor for using it
Removed parameter public: false - false is default value
Removed config/packages/dev/security_checker.yaml - no longer needed

We can also discuss about move it to config/services.yaml as it already use autowiring

Sergey, we appreciate your contribution. However, for the config/packages/* files we always copy+paste the official recipes (and update those files when the related recipes are updated).
In https://github.com/symfony/recipes/tree/master/sensiolabs/security-checker/4.0/config/packages I see that this recipe has indeed been updated so we must do some changes in our app. But this is different than your changes ... so could you please update this pull request to use the same config as the official recipe? Thanks a lot!

If I use same cofig it's just revert all changes)
Except deleting dev/security_checker.yaml - don't understand why it exists.
So maybe it's better to move this PR to symfony/recipes repository?

Yes, I think it's better to propose these changes to the official recipe and if they are accepted, then make those changes here too. Thanks!


Unified CPU-GPU SoC listing

Description
[Suggestion] Instead of showing two entries, CPU and GPU, that have the same information about, for example, the Apple M* SoC, consolidate this into a single "CPU-GPU" line. There will surely be (are?) other such vendor SoCs in the future as well. And then if there are also discrete GPUs, they could still be listed on a separate GPU line.

I agree, we have to show the APU information instead of the CPU & GPU on such systems.


chore: release 2.1.0

:robot: I have created a release *beep* *boop*
2.1.0 (2021-07-14)
Features

Add only-const-enum rule (8adab1c)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/projectsophon/eslint-plugin-typescript-enum/releases/tag/v2.1.0 :sunflower:


Restricted items do not present login page

Create a new Item
Add Read access to Admin user
Remove Read access to Anonymous group
Log out
Try to access directly the restricted Item , eg.  https://dspace7-demo.atmire.com/items/cedc5c50-b9d9-4187-ad83-b31c2a21acde

Application does not end page loading process, though in Network tab you can see some requests with 401 response code.
Expected result :  System presents login page and notifies user that the resource is restricted and requires authorization.
P.S. Login with inadequate user role should also present propper notification.

@artlowel : Could you or someone on your team estimate this?  I agree that a 401 response from the backend likely should end up showing the login form instead of a generic "401 unauthorized" page.  So, this is slightly related to the work in #891

This can be done in an estimated 2h
Atmire would like to claim this ticket

Thanks @artlowel .  Sounds good, and I've assigned this back to you & moved to "in progress" so that work can begin.


💡 Conversion of inline value classes to regular ones

📝 Description

Originally discussed in https://github.com/kotools/types/discussions/335#discussioncomment-8777239.

For improving the compatibility of Kotools Types with Java, we would like to convert all our inline value classes to regular ones. This change will also fix the serialization of the related types.
Please note that this is an incompatible binary change but not a source change.

✅ Checklist

[ ] #404
[ ] #433
[ ] #434
[ ] #435
[ ] #436
[ ] #437
[ ] Close this topic as completed and update tracking issues if present.

Topics not being a single unit of work, we close this issue as stale.


provide ::new methods accepting i64/u64 and maybe floating values

Currenty only two methods new() are present, from i32 and u32.
Is there any reason why?
It should be psosible to provide more overloads? for f64 and at least for i64.

I think for int64/f64 we will need to convert them into BCD8 and call decQuadFromBCD. int64 should be exact, f64 will be lossy. Do you want to take a stab at it?

Yep. I will work on this.
I've attached pull request which has initial work on the i64. i64 seems to be working.
I had to implement the double dabble algorithm - well i copied the impl from wikipedia.  I did not find one available here.
Please comment whether this looks good for you, if it does i will continue work on this.
I am not sure how to implement floating points. Do you have any ideas as on how to work on this for fps? f64.


Run eslint --fix

CI is currently failing because of a lint issue, this fixes it and a bunch of other warnings that are auto-fixable.
Test plan
Quick manual test, cosmetic changes only.

CI still fails but at least one step further :)

One step closer to getting done https://github.com/facebook/react-native/issues/15726

@TheSavior Could you ship this, looks like you were the last one to play with lint stuff :)

I have submitted #16259 which is slightly smaller than this PR and needed it to release new RC

Wish I saw this PR earlier before struggling to understand why my build has
failed. Thanks Janic!
On Sat, 7 Oct 2017 at 03:45 Janic Duplessis<EMAIL_ADDRESS>wrote:

@TheSavior https://github.com/thesavior Could you ship this, looks like
you were the last one to play with lint stuff :)
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/facebook/react-native/pull/16229#issuecomment-334902529,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACWcxvrHSz5B4upPct1XMBH5PH-8kYkvks5spte1gaJpZM4Pv1Bv
.

This failed to import. We are working on getting the import fixed

Looks like this landed. Thanks for contributing!


Change party url to business url

What and why?
The /parties/type/{type}/ref/{ref} endpoint in party is being removed in favour of /businesses/ref/{ref}. This PR changes over to it. Functionally there should be no change as those 2 endpoints have been mapped to the same function in party for months now.
How to test?
Trello

/deploy baileyw


Switches default to On after Pi reboot

I've configured 2 Switch Devices (Up and Down) to close relays to buttons on a motor controller. These buttons should not be active at the same time.
On a Pi reboot (every time) and on HomeBridge restart (roughly half the time), both RPi Switches set themselves to On. (Their state at reboot/restart was Off.)
The On state is set regardless of the Reversed key (true/false).
My preference would be to have a configuration key to set the Default state of the Switch.
Additional Info: I tried solving this with HomeKit automations to turn Off the Down Switch when the Up Switch is On, and visa versa. But these automations are not activated by the On state following reboot/restart. The automations are correctly activated when I turn on either Switch in the Home app.
Log entries:
[8/19/2020, 4:20:09 PM] [RPi] Initializing RPi platform... [8/19/2020, 4:20:09 PM] [RPi] homebridge-rpi v1.1.13, node 12.18.3, homebridge v1.1.2, homebridge-lib v4.7.14 [8/19/2020, 4:20:09 PM] Loading 2 accessories... [8/19/2020, 4:20:09 PM] [RPi] restored 3 accessories from cache [8/19/2020, 4:20:11 PM] [RPi] <IP_ADDRESS>: connected to <IP_ADDRESS>:8888 [8/19/2020, 4:20:11 PM] [RPi] <IP_ADDRESS>: Raspberry Pi 4B v1.2 (BCM2711, 2GB) -<PHONE_NUMBER>098276 [8/19/2020, 4:20:11 PM] [RPi] <IP_ADDRESS>: localhost [8/19/2020, 4:20:11 PM] [RPi] <IP_ADDRESS> TV Up: set On from false to true [8/19/2020, 4:20:11 PM] [RPi] <IP_ADDRESS> TV Down: set On from false to true
Configuration:
`
    {
        "name": "RPi",
        "hosts": [
            {
                "host": "<IP_ADDRESS>:8888",
                "devices": [
                    {
                        "device": "switch",
                        "name": "TV Up",
                        "gpio": 17,
                        "reversed": true
                    },
                    {
                        "device": "switch",
                        "name": "TV Down",
                        "gpio": 18,
                        "reversed": true
                    }
                ]
            }
        ],
        "platform": "RPi"
    }

`

In the end, I actually just want the switch to default to Off.
Something in Homebridge is setting the Switch state to true. I've confirmed that this only occurs after Homebridge is started.
I tried a workaround by creating a boot service that runs before Homebridge starts and uses sed on the cachedAccessories file to replace the "on":true state for the switches to "on":false. The service works, and I can compare the state of the cachedAccessories pre- and post- Homebridge start: Pre-start, cachedAccessories has "on":false, and post-start it changes to "on":true. So Homebridge is getting the "on":true from somewhere, and then updating cachedAccessories.
It consistently happens with every reboot of the Pi. Confusingly, it does not happen with the restart of the Homebridge service itself.

Confusingly, it does not happen with the restart of the Homebridge service itself.

Homebridge doesn’t know if it’s started during boot, or simply restarted.

So Homebridge is getting the "on":true from somewhere, and then updating cachedAccessories.

Yes, from the actual GPIO state, which is reset to low when you boot the Pi.  Because you’ve set reversed, this corresponds to on.
Note that cachedAccessories isn’t updated in realtime with every state change.

OK. I've unchecked the Reversed box. The initial Homebridge restart flipped the switches to On, but every restart and reboot thereafter the switches have remained Off, as expected.
(I don't recall how I thought Reversed solved an earlier problem I had. I somehow believed that the setting worked the opposite of what I'd expect. But things work exactly how I'd like them now. Thanks for your patience.)


✏ Fix typo in docs/en/docs/reference/dependencies.md

dependendencies -> dependencies

Hahaha that's a fun typo, thanks! 🍪


fix: nexgen ts module resolutions

Defines types in the exports map, so that imports work when leveraging the newer moduleResolution tsconfig values (nodenext, node16, bundler).
More info: https://github.com/microsoft/TypeScript/issues/52363
Note that some of the example PRs linked to from the TS issue above are adding types to each specific condition inside of exports. In my experiments just adding types to the root of the exports map resolved the issues 🤷♂.
Before (after, types work as expected):

Hi, thanks.


Add Ruby 3.3 to CI

Ruby 3.3 got released months ago and more and more distributions are picking it up and also building facter against it. So I think it makes sense to add it to the CI.

Can one of the admins verify this patch?

While checking I also noticed that https://github.com/puppetlabs/facter/blob/main/.github/workflows/acceptance_tests.yml#L17 uses quite ancient operating systems. But I don't know if that's on purpose or not.


Create API documentation

As a internal VA developer
I want to access API documentation for VANotify
to enable integration with VANotify
In scope:
Documentation for endpoints currently in postman collection including:
Organization:

[x] create
[x] update
[x] get

User:

[x] create
[x] update
[x] get

Service:

[x] create
[x] update
[x] get

Template:

[x] create
[x] update
[x] get one template
[x] get all templates

API Key:

[x] create API Key
[x] revoke API Key
[x] get one API Key
[x] get keys

Other:

[x] send notification

[x] get notification status

[x] how JWT is generated
- we need to make sure there is a way for consumers to interact with the API without knowing the secret

[ ] ~Sync with team to consider if all endpoints listed above should be shared externally to other VA devs. "Process" chat seems to be needed.~ -> Discuss this during desk check.

Notes:

format is Open API
No automatic updates to documentation
We have Json Schema definitions for some of the endpoints. Consider using tooling that can convert Json Schema to Open Api

Out of Scope:

Publishing documentation somewhere where it can be accessed via Open API UI

Do we know how we want this documentation to be accessed? Would it be deployed with the app?

Looking into resources:

https://pypi.org/project/jsonschema-to-openapi/
https://github.com/openapi-contrib/json-schema-to-openapi-schema
https://swagger.io/specification/

notification-admin:
NotifyAdminAPIClient sets service_id and api_key which are both read from the environment or configuration.  So for the majority of the calls from notification-admin to the notification-api use the values from config to generate JWT token.  The notification-admin check the permission of the logged user to ensure user does have permit to execute the command.

There is a CORS policy issue with running swagger editor on the web browsers. However, we can use postman to run the APIs.

/v2/notifications/{notification_type} being combined instead of separate entries for email and sms makes it a little weird in a viewer
/v2/notifications/email personalization field information is missing

[ ] Response object isn't documented as being wrapped in "data" key
-- [ ] Create user
-- [ ] Update user
-- [ ] Create service
-- [ ] Update service
-- [ ] Create template
-- [ ] Update template
[ ] Incorrect status code
-- [ ] Create template should be 201, not 200

Reviewed the organisations endpoints with @sarahproof . Found issues documented here, with outstanding questions in pink:
https://docs.google.com/document/d/1cjSRUyXej9EKYJez_mdHg35ZOjLeXfD6U1XEPYeM2bw/edit?usp=sharing

Reviewed the users endpoints. Found the following issues:

[ ] for POST create and POST update user, state is listed as a boolean in the response but it is actually a string

[ ] No error conditions are documented for POST create (ex. malformed request) or POST update (ex. user not found)

[ ] The documentation says that e-mail address is only required when auth is set to email_auth, but it is required when it is set to sms_auth as well. Mobile number is only required when set to sms_auth.

[ ] There is no documentation for a GET single user endpoint though it appears to work. It will also need error condition documentation.

[ ] POST update user lists both email and mobile number as not nullable, but mobile number is nullable as long as auth is set to email_auth.

Reviewed the services endpoints. Found the following issues:

[ ] Need error code documentation (example: duplicate service name on POST create and POST update)

[ ] GET all services and POST create service list whitelist as  an array with an object of arrays. But it returns as just an array

[ ] GET single service endpoint exists but is not documented

[ ] POST update service shows inbound_url as a url format but the API requires a uuid

Reviewed template endpoints:

[ ] Subject is required when type is email


Add relative media folder to home

Replace files section with collection with single item just like the others

Done


ActiveRecord::StatementInvalid in app/services/task_seen.rb:27

Error in tasky
ActiveRecord::StatementInvalid in app/services/task_seen.rb:27
PG::FeatureNotSupported: ERROR:  source for a multiple-column UPDATE item must be a sub-SELECT or ROW() expression
LINE 4:                 do update set (seen_at) = ('2019-07-10 17:30...
^
:     insert into task_users (task_id, user_id, seen_at)
values ('3138ac5d-e697-4363-8816-bd11d6dde4f0', '7319c7f6-f118-4f98-a365-a2dfb8e14a58', '2019-07-10 17:30:02.393678')
on conflict (task_id, user_id)
do update set (seen_at) = ('2019-07-10 17:30:02.393678')
View on Bugsnag
Stacktrace
app/services/task_seen.rb:27 - execute_sql
app/services/task_seen.rb:12 - mark_as_seen!
bin/rails:11 - <main>

View full stacktrace
Created by Danil Pismenny via Bugsnag

An error linked to this issue has been marked as fixed in Bugsnag
ActiveRecord::StatementInvalid in app/services/task_seen.rb:27


Are there any bugs in the prepare_dataset.py?

While I was using data processing code to process test/Capture0, the following error occurred. Have you encountered this error before, or might you have any suggestions for a possible solution?
Traceback (most recent call last):
File "/amax/xiaolu/code/avatars/livehand/preprocessing/InterHands2.6M/prepare_dataset.py", line 385, in
mano_mask_gc_lc = largest_component(mano_mask_gc)
File "/amax/xiaolu/code/avatars/livehand/preprocessing/InterHands2.6M/prepare_dataset.py", line 233, in largest_component
max_label, max_size = max([(i, stats[i, cv2.CC_STAT_AREA]) for i in range(1, nb_components)], key=lambda x: x[1])           # Note: range() starts from 1 since 0 is the background label.
ValueError: max() arg is an empty sequence
munmap_chunk(): invalid pointer
Aborted (core dumped)

Hi, I did not encounter this issue, but someone else reported it too. We are using a heuristics-based approach to generate the refined FG-BG masks. I think the issue is happening because the connected component estimation is failing for some reason. I suggest saving the intermediate variables (masks) as binary images to see which step is failing.


Sync component sizes with core Carbon

Description
https://github.com/carbon-design-system/carbon/issues/8151
https://github.com/carbon-design-system/carbon/issues/8370
Component(s) impacted
all form components
Browser
Chrome, Safari, Firefox, Microsoft Edge
Carbon Web Components version
canary
Severity
Severity 3 = The problem is visible or noticeable to users but does not impede the usability or functionality. Affects minor functionality, has a workaround.
Application/website
.
CodeSandbox example
https://web-components.carbondesignsystem.com/?path=/story/introduction-welcome--page
Steps to reproduce the issue (if applicable)
No response
Release date (if applicable)
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct
[X] I checked the current issues for duplicate issues

Issues captured in #9893


Moving user to its own schema (i.e on org creation) leaves triggers on public schema

Steps to replicate:

Create an user, import some table
Add a trigger or materialized view using SQL API. It will be created on the "public" schema.
Add an organization to the user.

This causes all tables to be moved to the "username" schema from the "public" schema, but will leave triggers / matviews / things behind. Those will get discarded by the user mover, as it moves schemas one by one and discards everything on the "public" one,

@zenitraM I've done a test about triggers and test passes. Have you been able to reproduce it with triggers?
Next step is checking materialized views.

@juanignaciosl hm, I will try to reproduce locally, but it looks like the moving method only explicitly ALTERs the tables, nothing else:
https://github.com/CartoDB/cartodb/blob/master/app/models/user/db_service.rb#L276
so I'm not sure what could be moving the triggers if they are getting moved :/

PS: materialized views moving test is uploaded, and it fails, so I guess the problems are related to that.

Well, since triggers are attached to tables it'd make sense that moving the table moved the triggers, but I can't find information about that in PostgreSQL documentation, I'll keep searching :eyes:

In fact (taken from here: "the trigger inherits the schema of its table" might explain that. I'll fix materialized views anyway, can you tell me other DB objects that you've found issues with?

Hmm, not sure what could have left the trigger then :sweat_smile: . The broken case was moving this:
ERROR:  function public.update_updated_at() does not exist

Maybe the correct way to do this is renaming the "public" schema instead of moving the objects one by one... although not sure if that might bring some other implications :/

Could functions be the problem, instead of triggers?

There is an example of missing relation too:
ERROR:  relation "public.seq_cartodb_processed_3078476315368391601" does not exist

Oh right, it could be the functions that are left. I was mixing both.

Ok, this will fix #5579 as well.


Dockerizing the analysis

Five years after we did this analysis, I am trying to compile a docker-based environment. I can success building the stats and figures in a wide variety of configurations. However, there are small differences.
I am collecting some notes here, trying to narrow down on a setup the reproduces the stats exeactly:
Debian buster PY3.7
FROM debian:buster-slim
RUN apt-get update -qq -y --allow-releaseinfo-change
RUN apt-get install -q --no-install-recommends -y inkscape latexmk texlive-latex-extra python3-pip make
RUN apt-get install -q --no-install-recommends -y build-essential python3-dev cython3 python3-setuptools python3-wheel
RUN apt-get install -q --no-install-recommends -y python3-numpy
RUN apt-get install -q --no-install-recommends -y python3-scipy
RUN apt-get install -q --no-install-recommends -y python3-pandas
RUN apt-get install -q --no-install-recommends -y python3-sklearn
RUN apt-get install -q --no-install-recommends -y python3-statsmodels
RUN apt-get clean
RUN python3 -m pip install -v --no-build-isolation --prefer-binary seaborn==0.10.1 scikit-learn matplotlib==3.4.3

pip freeze gives
cycler==0.11.0
Cython==0.29.2
decorator==4.3.0
joblib==0.13.0
kiwisolver==1.4.5
matplotlib==3.4.3
numpy==1.16.2
pandas==0.23.3+dfsg
patsy==0.5.0+dev
Pillow==8.3.2
pyparsing==3.1.1
python-dateutil==2.7.3
pytz==2019.1
scikit-learn==0.20.2
scipy==1.1.0
seaborn==0.10.1
six==1.12.0
statsmodels==0.8.0
typing-extensions==4.7.1

after running the analysis, the following diff occurs
modified:   img/confusion_MN_AL.svg
modified:   img/confusion_RA_AL.svg
modified:   img/remodnav_lab.svg
modified:   img/remodnav_mri.svg
modified:   results_def.tex

\newcommand{\videoMNALMclfWOP}{7.9}\newcommand{\videoMNALMclfWOP}{8.1}
\newcommand{\videoMNALFIXcod}{36}\newcommand{\videoMNALFIXcod}{37}
\newcommand{\dotsRAALMclfWOP}{10.8}\newcommand{\dotsRAALMclfWOP}{10.9}
\newcommand{\videoRAALMCLF}{28.5}\newcommand{\videoRAALMCLF}{28.6}
\newcommand{\maxmclf}{10.8}\newcommand{\maxmclf}{10.9}
\newcommand{\FIXvideomnRE}{147}\newcommand{\FIXvideomnRE}{146}
\newcommand{\FIXvideonoRE}{144}\newcommand{\FIXvideonoRE}{145}
\newcommand{\PURvideomnRE}{314}\newcommand{\PURvideomnRE}{313}
\newcommand{\rankFIXvideoIHMM}{6}\newcommand{\rankFIXvideoIHMM}{5}
\newcommand{\rankFIXvideoRE}{5}\newcommand{\rankFIXvideoRE}{6}

Debian bullseye PY3.9
FROM debian:bullseye-slim
RUN apt-get update -qq -y --allow-releaseinfo-change
RUN apt-get install -q --no-install-recommends -y inkscape latexmk texlive-latex-extra python3-pip make
RUN apt-get install -q --no-install-recommends -y build-essential python3-dev cython3 python3-setuptools python3-wheel
RUN apt-get install -q --no-install-recommends -y python3-numpy
RUN apt-get install -q --no-install-recommends -y python3-scipy
RUN apt-get install -q --no-install-recommends -y python3-pandas
RUN apt-get install -q --no-install-recommends -y python3-sklearn
RUN apt-get install -q --no-install-recommends -y python3-statsmodels
RUN apt-get clean
RUN python3 -m pip install -v --no-build-isolation --prefer-binary seaborn==0.10.1 scikit-learn matplotlib==3.4.3

pip freeze gives
cycler==0.12.1
Cython==0.29.21
decorator==4.4.2
joblib==0.17.0
kiwisolver==1.4.5
matplotlib==3.4.3
numpy==1.19.5
packaging==23.2
pandas==1.1.5
patsy==0.5.3
Pillow==10.0.1
pyparsing==3.1.1
python-dateutil==2.8.1
pytz==2021.1
-e remodnav==1.0
scikit-learn==0.23.2
scipy==1.6.0
seaborn==0.10.1
six==1.16.0
statsmodels==0.14.0

The diff of the statistical scores is identical compared to the bullseye container. Also the same SVG are modified (also looks identical inside).
Ubuntu focal PY3.8
FROM ubuntu:focal
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -qq -y --allow-releaseinfo-change
RUN apt-get install -q --no-install-recommends -y inkscape latexmk texlive-latex-extra python3-pip make
RUN apt-get install -q --no-install-recommends -y build-essential python3-dev cython3 python3-setuptools python3-wheel
RUN apt-get install -q --no-install-recommends -y python3-numpy
RUN apt-get install -q --no-install-recommends -y python3-scipy
RUN apt-get install -q --no-install-recommends -y python3-pandas
RUN apt-get install -q --no-install-recommends -y python3-sklearn
RUN apt-get install -q --no-install-recommends -y python3-statsmodels
RUN apt-get clean
RUN python3 -m pip install -v --no-build-isolation --prefer-binary seaborn==0.10.1 scikit-learn matplotlib==3.4.3

pip freeze gives
cycler==0.12.1
Cython==0.29.14
decorator==4.4.2
joblib==0.14.0
kiwisolver==1.4.5
matplotlib==3.4.3
numpy==1.17.4
pandas==0.25.3
patsy==0.5.1
Pillow==10.0.1
pyparsing==3.1.1
python-dateutil==2.7.3
pytz==2019.3
-e remodnav==1.0
scikit-learn==0.22.2.post1
scipy==1.3.3
seaborn==0.10.1
six==1.14.0
statsmodels==0.11.1

The diff of the statistical scores is identical compared to the bullseye and buster containers. Also the same SVG are modified (also looks identical inside).
Conclusions

matplotlib must be pinned for reproducibility

it writes it's version into the SVGs

a wide variety of environments and software versions produces exact results. But none of them reproduces the results committed in the repository.

reproduced the same diff as you with the python3.7 Docker image

For comparison: trying with a virtualenv, trying to go with whatever latest version that is still API compatible with the code.
$ virtualenv --python="$(which python3)" ${HOME}/env/remodnav-repro
$ . ~/env/remodnav-repro/bin/activate
$ python -m pip install numpy scipy pandas==1.5.3 seaborn scikit-learn matplotlib==3.4.3

The previously pinned seaborn 0.10.1 is incompatible with numpy 1.26, and had to be unpinned.
...
  File "/home/mih/env/remodnav-repro/lib/python3.11/site-packages/numpy/__init__.py", line 324, in __getattr__
    raise AttributeError(__former_attrs__[attr])
AttributeError: module 'numpy' has no attribute 'bool'.
`np.bool` was a deprecated alias for the builtin `bool`. To avoid this error in existing code, use `bool` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.bool_` here.
The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at:
    https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'bool_'?

Pandas had to be pinned to the last 1.x release. Pandas 2.1.1 incompatibility:
ValueError: Multi-dimensional indexing (e.g. `obj[:, None]`) is no longer supported. Convert to a numpy array before indexing instead.

pip freeze gives
cycler==0.12.1
joblib==1.3.2
kiwisolver==1.4.5
matplotlib==3.4.3
numpy==1.26.0
pandas==1.5.3
Pillow==10.0.1
pyparsing==3.1.1
python-dateutil==2.8.2
pytz==2023.3.post1
scikit-learn==1.3.1
scipy==1.11.3
seaborn==0.13.0
six==1.16.0
threadpoolctl==3.2.0

Trying to drill down on the SVG diff. I had the hunch that pinning the seaborn version is probably a more important aspect than being able to upgrade numpy. And indeed:
python -m pip install numpy==1.23.2 scipy pandas==1.5.3 seaborn==0.10.1 scikit-learn matplotlib==3.4.3

gives an environment that fully reproduces the stats, and the full remaining diff is:
diff --git a/img/hist_saccade_lab.svg b/img/hist_saccade_lab.svg
index 6ef426c..02bb011 100644
--- a/img/hist_saccade_lab.svg
+++ b/img/hist_saccade_lab.svg
@@ -199,16 +199,16 @@ z
    <g id="patch_23">
     <path clip-path="url(#p2f9441ee18)" d="M 157.6125 118.304175
 L 163.1925 118.304175
-L 163.1925 117.311604
-L 157.6125 117.311604
+L 163.1925 117.460043
+L 157.6125 117.460043
 z
 " style="fill:#808080;"/>
    </g>
    <g id="patch_24">
     <path clip-path="url(#p2f9441ee18)" d="M 163.1925 118.304175
 L 168.7725 118.304175
-L 168.7725 117.560194
-L 163.1925 117.560194
+L 168.7725 117.411756
+L 163.1925 117.411756
 z
 " style="fill:#808080;"/>
    </g>

Visually, this is the part of the figure that is different:

Closeups of the two versions of the figure at the difference (it is the of the bar in the middle).

Here is the relevant code that is resonsible for this plot:
            fig = plt.figure(figsize=(3,2))
            plt.hist(ev_df['duration'].values,
                    bins='doane',
                    range=x_lim,
                    color='gray')
                    #log=True)
            plt.xlabel('{} duration in s'.format(label))
            plt.xlim(x_lim)
            plt.ylim(y_lim)
            plt.savefig(
                op.join(
                    'img',
                    'hist_{}_{}.svg'.format(
                        label,
                        ds_name)),
                transparent=True,
                bbox_inches="tight",
                metadata={'Date': None})

It is plain matplotlib. We know the matplotlib version that was originally used, it is included in the files RDF metadata:
    <dc:creator>
     <cc:Agent>
      <dc:title>Matplotlib v3.4.3, https://matplotlib.org/</dc:title>
     </cc:Agent>
    </dc:creator>

We have that exact version installed. but this obviously does not mean that we have the exact some binary running. Still weird to have this be the only difference.

Probably the final post in this saga: The trigger for the reproducibility issue is who compiles numpy?
It depends on whether I am using a pip-compiled installation or one downloaded from Debian.
Either of these leads to reproducible results on their own, and that across a wide range of versions. But there is a noticeable difference in results across these means of compiling the sources.
Below is a complete Dockerfile for anyone interested in digging deeper. The key line is the specification of the numpy version. Whenever it is different from the numpy version provided by the respective Debian release (and it does not matter which one), pip will compile it, and it will reproduce the results published many years ago. So change
numpy==1.24.3

a version that is not in Debian bookwork to
numpy==1.24.2

a version that is in Debian bookworm, and the results will not reproduce. Make it 1.24.1 and they will reproduce again, because it will also be compiled locally.
Even when I set up a system like it would have existed at the time of publication (Debian buster), the results do not reproduce, unless pip compiles numpy.


Model Parallelism

Does MXNET support model parallelism?
What I mean is I have 2 GPUs (12GB each).A single Caffe model (Resnet152 with some changes and additions) exceeds 12GB memory and does not fit in a single GPU for training. How can I solve that problem with 2 GPUs?
Can I split this huge model to both the GPUs and make sure they communicate gradients with each other?
If so what all should I change in the solver/train files in MXNET?

Yes it does
http://mxnet.io/how_to/model_parallel_lstm.html

Is there any other easier examples about model parallel? I want to put resnet in gpu2 and lenet in gpu0

The example in the tutorial is no longer available


itch: 25.6.2 -> 26.1.2

Description of changes
While this new version is still a beta (some of the icons will be blue), the Electron version is not insecure anymore, with the number literally doubled (from 11 to 22).
Closes #220844 for real.

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 248321 run on x86_64-linux 1

1 package built:

itch

The beta/development/canary version is using a different namespace, so it does not use the existing data (login, installed games).
stable: /home/davidak/.config/itch/
canary: /home/davidak/.config/kitch/
That is by design: https://github.com/itchio/itch/issues/1906
So it might be better to create a new package for the canary version to not confuse users.
AUR calls it kitch, which seem to be the official name: https://itchio.itch.io/kitch

The idea of having both itch and kitch in nixpkgs doesn't convince me...
Maybe it's better to close this and wait for the stable release?

The idea of having both itch and kitch in nixpkgs doesn't convince me...

We have beta versions for other packages, like browsers. But it's an additional package for a different audience. If they offer it to users, why not package it?

Maybe it's better to close this and wait for the stable release?

This package has to be updated to the next stable version to keep working as the user expects.

I am trying to build it but itch-setup fails with the followig error:
error: builder for '/nix/store/1f6r4kk0zpv1p1xj7ps7z63hrwvk7i23-source.drv' failed with exit code 1;
       last 7 log lines:
       >
       > trying https://broth.itch.ovh/kkitch/linux-amd64/26.1.2/archive/default#.zip
       >   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
       >                                  Dload  Upload   Total   Spent    Left  Speed
       >   0    37    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
       > curl: (22) The requested URL returned error: 404
       > error: cannot download source from any mirror
       For full logs, run 'nix log /nix/store/1f6r4kk0zpv1p1xj7ps7z63hrwvk7i23-source.drv'.
error: 1 dependencies of derivation '/nix/store/xngr2cvq7x6k24gb3mblap1007rxzczb-kitch-26.1.2.drv' failed to build

Reopening because Itch is now not working at all. With this, it works again.
I added a small modification so that the application still thinks it's Itch (instead of Kitch).
Tested both a Linux game (Baba is You) and a Windows game (Super Hexagon).

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/2880

Anything missing for this to be merged?

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-ready-for-review/3032/2922


rhui-release: wire manual-trigger

Updates the RHUI deployment pipeline to ensure that staging (and the rest of the deployment) doesn't start unless the manual trigger button was clicked.

/assign @hopkiw


connecting dbs

I need to know what we are storing.
Also, I do not have the api credentials.
I think it is important to share that to be able to get this working.

I need your .env folder
I have both a mongo and mysql database connection and I fixed inconsistencies in your code. Also, please explain better the async and await sorry for ignorance... Let's finish this all this week.


packagist.org not updated with 3.3.4

https://packagist.org/packages/twbs/bootstrap-sass
maybe is github service hook not working?
/m

Seems to be working for me. There is no service hook, I think it just polls, and perhaps there is a slight delay due to caching.

I'll set up a service hook

Should be working now

awesome, thanks!


NSH command loader

As we all know, bash searches and fetches commands. Instead of modifying the bash file to support the new command.
I suggest we implement a similar system with NSH. There are multiple ways it could be implemented. The easiest would be to have a commands folder, and have all commands in that folder. When a user executed a command we could run the corresponding file in the folder (assuming that they won't always be nodejs files. Gotta stay open to whatever the end users might need.) That system is pretty capable and would prevent a lot of rewrites. Optionally, we could hook into js files via some pre-designed interface.
There are multiple ways to do this, that's just one suggestion. Open for feedback!

I think you've missed the point... currently there's already a "commands folder", it's /bin :-) Other thing are build-ins, that I plan to use coreutils.js, and for the executables $PATH I plan to use npm-path so it gets to be dynamic. I don't think we need a command loader at all... Or I have missed something?

Nope, I actually got an updated QEMU setup and noticed the bin folder. I might have to look over my other issues and see if they're already resolved XD.
Haha thanks!

You are welcome :-)

Oh my! We're online at the same time! XD I'm going on  irc

I'm not into IRC, do you use hangout chat?

Yeah! Email me at<EMAIL_ADDRESS>(my work email) and I'll send you my hangouts email :P

invited :-)


authentication doesn't work with nested namespaces

Hi,
I have a really big project with rails using cancanca and we use nested namespaces, so some models are named like AA::BB::User with it's controller.

Thanks for your help in this problem!
Dominik

Can you please submit the relevant parts of your ability file and controller authorization?
Thanks

Thanks for your answer,
it seems that this error is solved in the current version of cancancan.


MineMeld to Cortex XSOAR migration tutorial

Status
Ready
Related Issues
https://github.com/demisto/etc/issues/22553
Description
After @kirbles19 review

Escaping < with \ doesn't work good in mdx:

you should use html entity escaping:
\<service\> -> <service>

@fvigo please approve

@Itay4 feel free to merge


bug: YourContract balance doesn't change after updating the contract

Is there an existing issue for this?

[X] I have looked through the existing issues

Current Behavior
YourContract balance doesn't change after updating the contract
Expected Behavior
new contract balance updates correctly
Steps To Reproduce
start app -> debug tab -> change greeting -> check updated balance (works) -> yarn deploy --reset -> change greeting -> check updated balance (doesn't work)
https://github.com/scaffold-eth/scaffold-eth-2/assets/25638585/3e74ae5a-c067-4050-b5e6-b1e008cf24cb
Anything else?
It seems it's a bug on a wagmi's side. Creating issue on their repo

works as expected on the last versions of wagmi/viem when not using public providers https://stackblitz.com/edit/new-wagmi-kufhuf


Youtube assets do not work.

When I load a youtube video via screenly-ose-monitor it fails to pull the content like it does while adding youtube content via direct screenly-ose interface.

Thank you again for your time on this!
Neil

btw. I have no idea what that video is lol (I just searched music video and used the first video that came up).
Neil

Hi @neilyboy,
sorry for my late feedback.
I'm trying to reconstruct the error, but I can't.
Can you explain step by step how the error occurs?
Best,
Philipp


Move system tray icon to be created before the client requests focus

This is because on certain systems, at least ubuntu 18.04 with unity, the tray icon steals focus from the client when created. The loss of focus caused the client to not respond to any keyboard events until its minimized and restored again. Should fix #2442 at least fixes the issue I was having as described in the comments of that bug.

Does this reintroduce the problem from dedca77764c25c99b14e631d73ed66e676938ee7?

No, as the tray icon was previously (at the time of the problem) build on init, but is now built on show.


organizeImports makes no changes if there are parse errors in the sourceFile

When called from our services, organizeImports returns no changes if there are parse errors in the sourceFile.
fixes https://github.com/microsoft/TypeScript/issues/56252 / https://github.com/microsoft/TypeScript/issues/56252#issuecomment-1784231506
The original crash happened because the parser was unable to parse a .js file, and as a result, the failed parse generated two duplicate/overlapping modules. Organize imports then tried to remove the same imports twice, leading to a change tracker crash.

This seems very reasonable to me, given commands like Go To Definition do nothing when there are parse errors.

Is that true? Do we have an example?

The thing I would suggest is that when a parse error is present in a file:

Organize Imports will never remove unused imports (because the file might be borked and semantics won't work).
Organize Imports only sorts imports when no parse error occurs by any import/export statement.
Similarly, Sort Imports allows you to sort imports when no parse error occurs.

This seems very reasonable to me, given commands like Go To Definition do nothing when there are parse errors.

Is that true? Do we have an example?

Quick example from the test case that I had to change (it had a parse error since case is a keyword)
import { case/*1*/, Sensitive/*2*/ } from './a'

//a.ts
export const case = 1;
export const Sensitive = 2;

GoToDefinition works fine at 2, but does nothing at 1, so it has more specific behavior than just "no definitions if there's any parse issues anywhere in the file"

commands like Go To Definition do nothing when there are parse errors

GoToDefinition works fine at 2

I should have said Go To Definition does nothing when there are parse errors in the file where it’s triggered

@andrewbranch it still works in part, it is just isn't guaranteed to give you correct results. The language service is generally pretty resilient within a file even in the presence of a parse error.

You’re right—I based that assertion off a random single experiment, but putting another one together, I see it’s not disabled.

Is there anything left to do here?

I guess it doesn't have to be included in this PR. I wanted to bring up at sync if VS code has support for an error, instead of failing silently.


[7.1.0] For second testing

Forked from #488

Cherry-pick was attempted, but failed to push. Please check if the branch, cp488-7.1.0, already exists
cc: @bazelbuild/triage


Refactor Pedersen hash and add test case

Description
This pull request enhances the Pedersen hash implementation by making the following improvements:

Replaced the bools_to_usize_le function with a more efficient iteration over the slice of bool v, eliminating unnecessary overhead (no change in perf detected through benchmark).
Added an additional test case configuration for the Pedersen hash.

Rebasing for CI.


Commit 20687bb680f2d00628bb6b9b92f7d9d7db9e2736 broke log level integers

The commit mentioned in the title seems to have gone all the way to now being the opposite of #660. Previously ( <= 0.13.8), we were using level: 3, but after updating to 0.14.0, I got an error from the UA constructor Invalid "level" parameter value: 3. If I change to the string "debug", it works fine.

Yes. Bug. Pushed fix in #691.


Full cov

Merge full_cov branch, here the blas adapter is implemented in one file to allow for easy change between hardware

Code that was used to generate results depicted in the master thesis is now merged into main.


Missing video link that is mentioned in paragraph 2

Hello team,
The second paragraph mentions a video. It isn't available:
Before you continue, get a quick overview with this video about how to fail back from Azure to an on-premises site.
Could we fix that? Thanks.
Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: 00012d3e-47c1-154c-3cb3-f31db6053ff6
Version Independent ID: b8b416a7-d698-d447-ebc3-599440297166
Content: Prepare VMware VMs for reprotection and failback with Azure Site Recovery - Azure Site Recovery
Content Source: articles/site-recovery/vmware-azure-prepare-failback.md
Service: site-recovery
GitHub Login: @ankitaduttaMSFT
Microsoft Alias: ankitadutta

Thanks @marciojalbernaz!
The page is updated, and the changes will be live shortly. #please-close


Release 0.14.8

Major changes:

endpoints crate

Extend JSONSchemaType with Integer variant
Extend JSONSchemaDefine with default, maximum, minimum, title, and examples fields

Hello, I am a code review agent on flows.network.
It could take a few minutes for me to analyze this PR. Relax, grab a cup of coffee and check back later. Thanks!


Some sort of checksum for the messages being sent

Sometimes weird shapes are drawn and it must be an issue with the coordinates and thickness being set incorrectly

I should increment the version number and start checking that the message has the expected protocol version number now, to detect older versions.

Not adding it


Some Suggestions

I was able to get this working in Chrome, but not FireFox.
A setup guide would be nice, so I could build this on my machine.
A way to grade correctly scored and missed notes would be nice.
You can try using a dictionary with an answer key like this:
{
"note_coor": [
0, # 0 equals Measure 1
1, # 1 means Treb and 0 means Bass
6, # note position in measure: start at 0. See bar example below.
],
"midi": 48, # Midi Note to integer: Link
"offset": 1.8556701030927836, # seconds with decimal as ms. This is the position of the note in the song
"duration": 0.30927835051546415, # Duration of the note
"tieEnd": false, # Tied note
"clef": "F4" # This is based on if Treb/Bass or Clef Number 1 vs. 2. In XML: clef number='2' sign F and line 4
}
Bar 1 example notes:
Treb:   1 2	  5 6
Clef: 0 1 2	4 5 6
Not sure how to format this in a comment. The "3" is blank because there's a pause, but it's implied it's there. There's just nothing to press on the keyboard so no need for a dictionary entry.
Picture of measure: Link
Every note would have it's own entry in the dictionary. Each key press on the keyboard would determine if the note was played correctly or incorrectly based off timing and appropriate key press.

Thanks for the sugestions, I wil document how to build this, however, I do not get what you propose with the second suggestion. Could you provide more feedback?

I'm saying that it should be possible to create an answer key to determine correctly played notes. The dictionary is a "map" for how to determine where a note is located on the music notation. When you input MIDI keys via key presses, the software would look at the dictionary to determine if what was just played is an incorrect or correct note. The dictionary probably needs some adjusting.
If this could be created and you were able to make the cursor flow fluidly across the screen, you could have you're own Playground Session software or software like Piano Marvel. Which is what i'm trying to find or build myself.

@Moreless91 using start you already get feedback if the note was played correctly or not. It will only advance if you did it correctly. The program will also leave a :poop: if you did it incorrectly once. Do you suggest to color the notes like piano marvel?

Build instructions added :)

@rvilarl

Do you suggest to color the notes like piano marvel?

Yes, that would be "cleaner."
Is there a way to make the green bar line up with the grey bar here: https://imgur.com/a/HwzbLBk
The green bar seems to be one note or beat ahead while the grey bar is on the note being played. The green bar being ahead doesn't make sense. It should line up with the grey note.
Is it possible to make the bar fluidly move across the music score rather than "hop" from beat to beat. Here's an example of a bar moving fluidly across the music score: https://trinket.io/music
And thank you for the build notes!

Is there a way to make the green bar line up with the grey bar here: https://imgur.com/a/HwzbLBk
The green bar seems to be one note or beat ahead while the grey bar is on the note being played. The green bar being ahead doesn't make sense. It should line up with the grey note.

@Moreless91 The grey bar moves with the tempo indicating which note/chord should be played (the one to the right of the cursor). The green cursor indicates which note/chord was already played. They are useful when training (start buttom) normally I go much slower than the tempo and the grey cursor goes much quicker than the green one which indicates where I am.

Is it possible to make the bar fluidly move across the music score rather than "hop" from beat to beat. Here's an example of a bar moving fluidly across the music score: https://trinket.io/music

@sschmidTU I believe that this is currently  not possible in OSMD, is it? or, is it plan?