Add integer to the list of types supported by the schema object.

While reading, I noticed that integer was not included in this list of possible types. Given that integer is used extensively in this chapter, I assume this was a simple oversight.
As an aside, though, I understand that the JSON Schema core specification draft draws a semantic difference between integer and the other types and that the OpenAPI specification explicitly adds integer as a type with a slightly different definition than the JSON Schema validation draft ("a JSON number without a fraction or exponent part" vs. "any number with a zero fractional part"). This is messy, but it doesn't seem worthwhile digging into these differences in this explainer.
Maybe the OAS should be more explicit about this definitional difference, though?

@auspicacious

The format registry seems to be defining two new types: one called stringnumber and one called numberstring. I'm missing any potential context on planned revisions to the standard, and I can't find any references to the registry or these types in the current standard, but is this intentional?

🤦 Nope.  Those should be string, number (the order is irrelevant) meaning that the format applies to both numbers and strings, but something is apparently formatted wrong for how that gets rendered.  The registry is on the gh-pages branch in the OAI/OpenAPI-Specification repo.  Something will need to get fixed there.

@auspicacious should we be keeping this pull request open for further updates after the discussion? (I realise it has been a while!)

@auspicacious we ended up adding a small note about type: integer to 3.0.4 (§4.4 Data Types and §4.4.1 Data Type Format) and 3.1.1 (§4.4 Data Types and §4.4.1 Data Type Format).
Regarding 1.0 as an integer, that battle was had by other people years ago, and it's a JSON Schema thing and not an OpenAPI thing.  Actually, it's really a JSON thing having to do with what can and cannot be considered interoperable when parsing JSON, so it's quite far out of our control.
Thank you for your efforts here.  I do hope that the 3.0.4 and 3.1.1 changes help.  Since you won't be able to continue, I'm going to close this.


New package: Isao.Pixia version 6.61p

Pull request has been created with komac v2.2.1 :rocket:
Resolves: https://github.com/microsoft/winget-pkgs/issues/153930
Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with:

Installation failed with exit code -1978335226
2024-05-17 06:49:37.940 [CLI ] ShellExecute installer failed:<PHONE_NUMBER>
2024-05-17 06:49:21.717 [CLI ] ShellExecute installer failed:<PHONE_NUMBER>

Automated error analysis suggests -1978335226 may mean Install successful but system restart may be required.
(Automated response - build 881.)

@stephengillie, any ideas on what Ii can do?

Manual Validation ended with the same code:

ShellExecute installer failed:<PHONE_NUMBER>

Running the full installer had no errors.
Query installer:

Tried numerous combinations of these switches, but none resulted in an install.

We might need to close this then because even tried all switches possible.


fix issues on Organizations List Page

Describe the bug
Several inconsistencies are visible today on the Organizations List Page:
Issues to fix

"open" and "locked" are confused. For open organizations "locked" is displayed and vice versa. -> should be the other way around
rename "open" to "public" and "locked" to "private"
remove address hash within close button when creating new Organization
correct usage of singular and plural (members are currently always with "s", also if only 1 member -> should be "member" when only 1 member)

AC4 seems to be not done:

@DarkNebula0 & @soundyogi since it is required to have at least 2 different members in a DAO AC4 doesnt need to be fixed.

we still need pluralisation for e.g. contributors.


Add Script to Constitution

Description
Resolves #3532
Checklist

[x] Commit sequence broadly makes sense and commits have useful messages
[ ] New tests are added if needed and existing tests are updated
[x] When applicable, versions are updated in .cabal and CHANGELOG.md files according to the
versioning process.
[x] The version bounds in .cabal files for all affected packages are updated. If you change the bounds in a cabal file, that package itself must have a version increase. (See RELEASING.md)
[x] All visible changes are prepended to the latest section of a CHANGELOG.md for the affected packages. New section is never added with the code changes. (See RELEASING.md)
[x] Code is formatted with fourmolu (use scripts/fourmolize.sh)
[x] Cabal files are formatted (use scripts/cabal-format.sh)
[x] hie.yaml has been updated (use scripts/gen-hie.sh)
[x] Self-reviewed the diff

Please especially review the CDDL change. I think I may have got it wrong.


PCRE2

Hello.
Since PCRE2 is a revised API for the PCRE library, is there any change to upgrade R3 to using it?
Thank you!

Why did you close this issue? PCRE is still used, not PCRE2.

maybe it's too long ago 😅😅😅


rpsl_explorer FileMonitor does not notify on file change

There is a missing SHCNRF_ShellLevel flag here - in the type of events for which to receive notifications:
https://github.com/GPUOpen-LibrariesAndSDKs/RenderPipelineShaders/blob/31183408385c1e3e1711bd0320e17fcdf1ee07e9/tools/rpsl_explorer/src/file_monitor.hpp#L36-L41
It is necessary to include it to capture changes made, e.g. from text-editors (considered as a ShellLevel source).

Other, minor things:

UM_FILE_CHANGED should be type of UINT;
result of ILCreateFromPathA is not checked (in case of 0);
registered-to-notify file is not placed into m_registerIDs - so it would be wrongly considered again

Please find my snipped with corrected version:
static constexpr UINT UM_FILE_CHANGED = WM_USER + 4097;

bool BeginWatch(HWND hWndListener, const std::string& fileName)
{
    auto iter = m_registerIDs.find(fileName);

    if (iter != m_registerIDs.end())
    {
        return false;
    }

    PCIDLIST_ABSOLUTE pidl = ILCreateFromPathA(fileName.c_str());

    if (pidl == 0)
    {
        return false;
    }

    SHChangeNotifyEntry notifyEntry = { pidl, FALSE };

    ULONG uId = SHChangeNotifyRegister
    (
        hWndListener,
        SHCNRF_InterruptLevel | SHCNRF_ShellLevel | SHCNRF_NewDelivery,
        SHCNE_RENAMEITEM | SHCNE_DELETE | SHCNE_UPDATEITEM,
        UM_FILE_CHANGED,
        1,
        &notifyEntry
    );

    if (uId != 0)
    {
        m_registerIDs.emplace(fileName, uId);
    }

    return (uId != 0);
}

Which text-editors did you experience this with? For example, updates from Notepad++ seem to work just fine on my side.

@FlorianHerickAMD:
Latest Notepad++ v8.4.9 x64 on Windows 10 Pro for Workstations (10.0.19045 Build 19045)
Let me double check it again later this day...

@FlorianHerickAMD:
For now I confirmed it with latest Notepad++ v8.4.9 x64 on Windows 11 Enterprise (10.0.22621 Build 22621).
RPS builded from fresh repo clone on latest VS Community 2022 (17.6.2).
Scenario to reproduce:

from rpsl_explorer I have opened `examples\hello_triangle.rpsl';
this trigers compilation/reloads jit-module etc.;
the same file is opened from Notepad++;
making/saving changes does not retrigers jit-module;
removing tmp  during tryout makes no difference here;

[Root cause]
UM_FILE_CHANGED is not generated here due to a missing SHCNRF_ShellLevel flag in SHChangeNotifyRegister(...) - as described in the first comment.

Same issue for Debug/Release configuration.


JSON parser plugin can sometimes output records as strings rather than Hash

Describe the bug
The JSON parser plugin can sometimes emit records as a string rather than as a Hash. Similar to https://github.com/fluent/fluentd/issues/1279, the expectation of plugins further down the line is that the record it receives is always a Hash, but this contract is broken in some circumstances by the JSON plugin leading to some very difficult to diagnose bugs.
This happens because a string is considered valid JSON (SO) and the JSON parser (Oj at least) treats it as such and parses it successfully. But the thing it outputs from it's parsing is not a Hash type, it is a string, and at no point in the JSON parser does it throw if the record it is returning isn't a Hash object.
To Reproduce
If you setup a fluentd configmap which a super simple JSON filter setup:
    <filter gearset.*>
      @type parser
      <parse>
        @type json
        json_parser oj
      </parse>
      replace_invalid_sequence true
      key_name message
      emit_invalid_record_to_error false
    </filter>

When presented with a record which has {"message": "\"HELLO\""} it will parse it so that the resulting record is "HELLO" (i.e. not a Hash type, but just a string. This then causes errors in plugins further down the line (for example in my example this was followed by the Prometheus plugin which threw an error undefined method map' for #String:0x00007fdbb6b32308\nDid you mean?  tap` which was rather hard to debug).
Expected behavior
I would of expected the parser plugin to call error out if the thing it was parsing is a string (i.e. the same behaviour you see if the parser failed to parse the JSON).
Potentially I would just expect us to check if values is a Hash on https://github.com/fluent/fluentd/blob/d5df992d844af38233c4d3788de714d644ddb6c4/lib/fluent/plugin/filter_parser.rb#L74
But that might change behaviour in an unexpected way for people, so it might need to be a configuration value. It is this question what led me to doing an Issue rather than a PR
Your Environment
- Fluentd version: `fluentd 1.14.6`
- Operating system: `PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"`
- Kernel version: `<IP_ADDRESS>-microsoft-standard-WSL2`

Your Configuration
<source>
      @type tail
      read_from_head true
      path /var/log/containers/__.log
      pos_file /fluentd/pos/__.log.pos
      tag gearset.x
      <parse>
        @type cri
      </parse>
    </source>

    <filter gearset.*>
      @type parser
      <parse>
        @type json
        json_parser oj
      </parse>
      replace_invalid_sequence true
      key_name message
      emit_invalid_record_to_error false
    </filter>

    <filter gearset.*>
      @type prometheus
      <metric>
        name na
        type counter
        desc NA
        <labels>
          tag ${tag}
        </labels>
      </metric>
    </filter>

Note the plugin which causes the error is the JSON plugin because it is emitting records of string type, but it is the Prometheus plugin which is throwing the error because it is the next thing handling the records (and is not designed to be able to)
Your Error Log
dump an error event: error_class=NoMethodError error="undefined method `map' for #<String:0x00007fdbb6b32308>\nDid you mean?  tap" location="/usr/local/bundle/gems/fluent-plugin-prometheus-2.0.3/lib/fluent/plugin/prometheus.rb:90:in `stringify_keys'" tag="gearset.x" time=2023-03-14 12:48:13.381801632 +0000 record="HELLO"

Additional context
No response

Thanks for reporting!
We can reproduce this issue as follows.
<source>
  @type sample
  tag test.hoge
  sample {"message": "{\"k\":\"v\"}"}
</source>

<source>
  @type sample
  tag test.fuga
  sample {"message": "\"HELLO\""}
</source>

<filter test.**>
  @type parser
  key_name message
  <parse>
    @type json
  </parse>
</filter>

<filter test.**>
  @type record_transformer
  enable_ruby true
  <record>
    class ${record.class}
  </record>
</filter>

<match test.**>
  @type stdout
</match>

Output
2023-03-17 11:18:09 +0900 [warn]: #0 dump an error event: error_class=NoMethodError error="undefined method `merge!' for \"HELLO\":String" location="/home/daipom/work/fluentd/fluentd/lib/fluent/plugin/filter_record_transformer.rb:135:in `reform'" tag="test.fuga" time=2023-03-17 11:18:09.063985763 +0900 record="HELLO"
2023-03-17 11:18:09.064692451 +0900 test.hoge: {"k":"v","class":"Hash"}
2023-03-17 11:18:10 +0900 [warn]: #0 dump an error event: error_class=NoMethodError error="undefined method `merge!' for \"HELLO\":String" location="/home/daipom/work/fluentd/fluentd/lib/fluent/plugin/filter_record_transformer.rb:135:in `reform'" tag="test.fuga" time=2023-03-17 11:18:10.066951425 +0900 record="HELLO"
2023-03-17 11:18:10.067684144 +0900 test.hoge: {"k":"v","class":"Hash"}

I think this is probably a bug.

Potentially I would just expect us to check if values is a Hash on
https://github.com/fluent/fluentd/blob/d5df992d844af38233c4d3788de714d644ddb6c4/lib/fluent/plugin/filter_parser.rb#L74
But that might change behaviour in an unexpected way for people, so it might need to be a configuration value. It is this question what led me to doing an Issue rather than a PR

Thanks for your consideration on this point!
I will figure out how we can fix this.

Thanks for looking at this so quickly! Sounds like you can reproduce it alright, but let me know if there is anything I can do to help 😄 (also sorry, hadn't realised you could use the sample source to be able to output messages like that, would of made the config easier to show as an example!)

Sorry for the delay!

Potentially I would just expect us to check if values is a Hash on
https://github.com/fluent/fluentd/blob/d5df992d844af38233c4d3788de714d644ddb6c4/lib/fluent/plugin/filter_parser.rb#L74
But that might change behaviour in an unexpected way for people, so it might need to be a configuration value. It is this question what led me to doing an Issue rather than a PR

Thanks for your consideration on this point! I will figure out how we can fix this.

This is not only an issue for filter_parser, but for all plugins that can use parser_json.
So we should fix parser_json.
https://github.com/fluent/fluentd/blob/d5df992d844af38233c4d3788de714d644ddb6c4/lib/fluent/plugin/parser_json.rb#L72-L81
This should return nil when the parsed result is not a Hash.
The root cause of this is that sometimes the Ruby library does not parse a given string as Hash.
require "json"
JSON.load('"hoge"')
=> "hoge"

I don't understand the reason for this Ruby specification.
Anyway, we would have expected this to be a JSON::ParserError.
The same can be said for oj and yajl.

I have fixed this in

#4106

The root cause of this is that sometimes the Ruby library does not parse a given string as Hash.
require "json"
JSON.load('"hoge"')
=> "hoge"

I don't understand the reason for this Ruby specification.

This is a more complicated issue than I initially thought...

https://www.rfc-editor.org/rfc/rfc8259#section-2

It is also necessary to take into account that the value is parsed as an Array and that the JSON specification allows the value to be neither a Hash nor an Array.
The current implementation of JSONParser does not appear to have sufficiently considered this.

<source>
  @type sample
  tag test.hash
  sample {"message": "{\"k\":\"v\"}"}
</source>

<source>
  @type sample
  tag test.string
  sample {"message": "\"HELLO\""}
</source>

<source>
  @type sample
  tag test.array
  sample {"message": "[{\"k\":\"v\"}, {\"k2\":\"v2\"}]"}
</source>

<filter test.**>
  @type parser
  key_name message
  <parse>
    @type json
  </parse>
</filter>

<filter test.**>
  @type record_transformer
  enable_ruby true
  <record>
    class ${record.class}
  </record>
</filter>

<match test.**>
  @type stdout
</match>

2023-03-21 19:12:34.005516812 +0900 test.hash: {"k":"v","class":"Hash"}
2023-03-21 19:12:35 +0900 [warn]: #0 dump an error event: error_class=NoMethodError error="undefined method `merge!' for [{\"k\"=>\"v\"}, {\"k2\"=>\"v2\"}]:Array" location="/home/daipom/work/fluentd/fluentd/lib/fluent/plugin/filter_record_transformer.rb:135:in `reform'" tag="test.array" time=2023-03-21 19:12:35.006256894 +0900 record=[{"k"=>"v"}, {"k2"=>"v2"}]
2023-03-21 19:12:35 +0900 [warn]: #0 dump an error event: error_class=NoMethodError error="undefined method `merge!' for \"HELLO\":String" location="/home/daipom/work/fluentd/fluentd/lib/fluent/plugin/filter_record_transformer.rb:135:in `reform'" tag="test.string" time=2023-03-21 19:12:35.007100208 +0900 record="HELLO"

Has there been any progress on this?

This will be fixed in #4106.
There are still some points that need to be done in #4106.
I will fix it so that it can be included in the next or the next after the next release.

#4474 partially fix this issue but not yet complete for filter_parser.

The remaining problem is filter_parser can't return multiple parsed results since #4474.
From #4478

The following problem of filter_parser remains in #4474 :

However, we have a remaining problem with filter_parser.
filter_parser could return Array based on this wrong behavior.
This PR disables it, so it can not return multiple parsed results anymore.
Even though it was wrong to begin with, it's possible that this change in specifications would be unacceptable.
We need to consider this change carefully.

@daipom maybe i can check this out but i am not getting the context of problem fully

@daipom maybe i can check this out but i am not getting the context of problem fully Correct me if i am wrong. We have a case where when multiple group of elements match the parser we create an array of hash for each match. But in current implementation Since filter emits one event we have only handled the first hash from this array?.
The ask in this problem is we need to facilitate multiple hashes being emitted ?

@Athishpranav2003 Thanks!! Since this is a significant problem with Fluentd, I would be very happy if it could be fixed!
That's right!
We can reproduce the problem as the following comment:
https://github.com/fluent/fluentd/pull/4478#issuecomment-2084425518
Currently, Fluentd outputs the warning message.
We need to make the behavior such that this warning message is unnecessary.
In other words, we need to ensure that both {"k":"v"} and {"k2":"v2"} are emitted.
This will not be just a filter_parser problem.
The whole structure of the Filter plugin may need to be reviewed:
https://github.com/fluent/fluentd/blob/4a942710f99f232a385d11cf6721dddb9ac94a32/lib/fluent/plugin/filter.rb#L82-L104
We need to be careful not to affect other filter plugins or break the compatibility.

Correct me if I am wrong
Currently filter structure is a function with one event input and output. Now we are trying to have one event input to multiple event output?

Correct me if I am wrong Currently filter structure is a function with one event input and output. Now we are trying to have one event input to multiple event output?

Filter plugins can have 3 methods:

A: #filter(tag, time, record)
B: #filter_with_time(tag, time, record)
C: #filter_stream(tag, es)

Currently, A and B should receive and return one record of Hash.
On the other hand, C can handle multiple records as a EventStream.
Only a few Filter plugins, such as filter_record_transformer, would implement C.
I said the following, but given this point, I am beginning to think that it would be wrong for filter_parser to be using B , and it is just a matter of the design of filter_parser.

The whole structure of the Filter plugin may need to be reviewed:

filter_parser performs the parsing process internally, so there is a possibility that a single record becomes multiple records.
Then, it seems filter_parser should implement C instead of B.

@daipom makes sense. I guess the change is specific to filter_parser and not filter base itself. I will try to work on it in my freetime(so many stale PRs in many repos i have :( )


Make the HTML element for git --version readonly

Thanks, this is a definite improvement. I do wonder if <input> is really the most sensible tag here in the first place, though. Visually, something like I $ git --version would probably be fine. I wonder if the point was to make it easy to copy-and-paste as a whole value.

Thanks, this is a definite improvement. I do wonder if <input> is really the most sensible tag here in the first place, though. Visually, something like I $ git --version would probably be fine. I wonder if the point was to make it easy to copy-and-paste as a whole value.

@peff Done!

@peff Done!


Min-h-[50vh] arbitrary values on min-height not working

What version of Tailwind CSS are you using?
v3.0.12
What build tool (or framework if it abstracts the build tool) are you using?
webpack 5.28.0
What version of Node.js are you using?
v14.0.0
What browser are you using?
N/A
What operating system are you using?
macOS
Describe your issue
It seems vh arbitrary values do not work at all on min-height.

This is not related to daisyUI... It works however: https://play.tailwindcss.com/FO2gQQzvdH
I'm not sure about WebPack. Can you share a small repo with me so I can reproduce the issue?

Hi,
Thanks for getting back to me. Yes, standard Tailwindcss is perfectly fine, soon daisyUI is added, it won't work any longer. h-[50vh], works perfectly fine with daisyUI but min-height isn't.
https://sleepy-keller-131ccf.netlify.app
This is my test theme. I have another look, perhaps my webPack setup is doing something funny.
Cheers
Olaf

I don't see min-h-[50vh] class being styled in your CSS.

That class name does not exist in your build at all. So please make sure if:

You're using Tailwind version 3.0 or you're using JIT mode
Your purge or content option on tailwind.config.js is including all your template files (all layouts, pages, components, etc...)

 Very new to tailwind, I am still trying to get my head around it. The build was not able to find min-h-[50vh] as it is added during hugo build.


Issue setting initial DB

hey having fun with this code, looking to adapt some parts to another chain. However I am having issues right off the bat with mysql db. it seems unable to even do the initial check, as I get a "Cannot read property 'length' of undefined" at "if(res.length > 0)" in db-con.js . Even removing that and hard forcing the table creation didnt seem to work. any ideas?

Hello!
Did you create a Database and connect to it? The connection credentials should be in the env.
res will contain the ERC assets. Once your connected to the DB. You should run a scan, it will fill the database with 0x Order Book

I did yeah, I even tried to delete the intial check to have it just make the table, and it seems to connect but then says "could not create db" and errors out.

did you set some right for your user account that you use in MYSQL?

Yeah I even created the table and tried deleting the check and it still seems not to work.

So it`s obvious your not connecting to it. Maybe your should turn it into a json file.  I suggest maybe change to MySQL pool to a regular single connection query. Or look into why your not able to resolve any of the query. Probably cause your not connected.
This issue is more a MySQL setup or connectivity issue than an issue from this code.


It seems that travis test suite never actually calls slimerjs for selftest

Even though ENGINE_EXECUTABLE is exported correctly within .travis.yml setting this to slimerjs actually never hits the call bin/casperjs selftest.
This is because

bin/casperjs sets the default engine to "phantomjs" (bin/casperjs line 86)
the Makefile does not pass the engine to bin/casperjs via --engine= option (this currently is the ONLY way to change the engine for bin/casperjs, see bin/casperjs line 86 ff)

I guess this is the root cause why current master builds pass and this build fails as well as this build.

Would you like to create a PR that ensures the use of slimerjs in the specific cases?
I would gladly merge it, even if those tests are failing.....

Yes, I am on the way to actually fix the failing tests...
Tests up to suites/casper/reload.js already pass for slimerjs.
If all goes well then a PR for 2.0.0, 2.0.1 pre-relase support and passing slimerjs tests will be in place tomorrow.

Added PR https://github.com/n1k0/casperjs/pull/1349

Thank you, merged.


add hostpath driver to test create/delete volume

initial step to create a hostpath drivers to test create/delete volume

thanks @chakri-nelluri


IndexError('Layer [UDP] not found',) in 'netfilterqueue.global_callback' ignored

This iptables i use are:
iptables -I FORWARD -j NFQUEUE --queue-num 0
import netfilterqueue
import scapy.all as scapy

def process_packet(packet):
    scapy_packet = scapy.IP(packet.get_payload())
    if scapy_packet.haslayer(scapy.DNSRR):
        qname = scapy_packet[scapy.DNSQR].qname
        if "www.oldverision.com" in qname:
            print("[+] Spoofing target ")
            answer = scapy.DNSRR(rrname=qname, rdata="<IP_ADDRESS>")
            scapy_packet[scapy.DNS].an = answer
            scapy_packet[scapy.DNS].ancount = 1
            print("packet's summary: " + str(scapy_packet.summary()))
            del scapy_packet[scapy.IP].len
            del scapy_packet[scapy.IP].chksum
            del scapy_packet[scapy.UDP].len
            del scapy_packet[scapy.UDP].chksum
            print("packet's summary after modify: " + str(scapy_packet.summary()))
            print(scapy_packet.show())
            print(packet.show())
    packet.accept()

queue = netfilterqueue.NetfilterQueue()
queue.bind(0, process_packet)
queue.run()

Following is the output:
[+] Spoofing target
packet's summary: IP / ICMP / IPerror / UDPerror / DNS Ans "<IP_ADDRESS>"
Exception IndexError: IndexError('Layer [UDP] not found',) in 'netfilterqueue.global_callback' ignored
[+] Spoofing target
packet's summary: IP / UDP / DNS Ans "<IP_ADDRESS>"
packet's summary after modify: IP / UDP / DNS Ans "<IP_ADDRESS>"
###[ IP ]###
  version   = 4
  ihl       = 5
  tos       = 0x0
  len       = None
  id        = 9623
  flags     =
  frag      = 0
  ttl       = 63
  proto     = udp
  chksum    = None
  src       = <IP_ADDRESS>
  dst       = <IP_ADDRESS>
  \options   \
###[ UDP ]###
     sport     = domain
     dport     = 61702
     len       = None
     chksum    = None
###[ DNS ]###
        id        = 28104
        qr        = 1
        opcode    = QUERY
        aa        = 1
        tc        = 0
        rd        = 1
        ra        = 1
        z         = 0
        ad        = 0
        cd        = 0
        rcode     = ok
        qdcount   = 1
        ancount   = 1
        nscount   = 0
        arcount   = 0
        \qd        \
         |###[ DNS Question Record ]###
         |  qname     = 'www.oldverision.com.'
         |  qtype     = A
         |  qclass    = IN
        \an        \
         |###[ DNS Resource Record ]###
         |  rrname    = 'www.oldverision.com.'
         |  type      = A
         |  rclass    = IN
         |  ttl       = 0
         |  rdlen     = 4
         |  rdata     = '<IP_ADDRESS>'
        ns        = None
        ar        = None

following is the ping result:
Pinging www.oldverision.com [<IP_ADDRESS>] with 32 bytes of data:
Reply from <IP_ADDRESS>: bytes=32 time=388ms TTL=227
Reply from <IP_ADDRESS>: bytes=32 time=400ms TTL=227
Reply from <IP_ADDRESS>: bytes=32 time=424ms TTL=227

When it says something about an exception being ignored, this usually indicates a problem in the user code, not library code. It's a Cython thing.
If I had to guess, the exception comes from your del scapy_packet[scapy.UDP].len line when the input is a ICMP packet, based on the output you provided where it works on UDP and fails on ICMP, and the code you provided where it seems to be assuming all input is UDP.

Even if i don't delete length of UDP, same error comes. but when i mention -p udp in iptables , then this exception error doesn't come. but big problem is that when i ping server from remote machine, the target still not spoofed, but packet is modified and rdata="redirect_ip"


Support Svelte 4

[x] Check for duplicate issues. Please file separate requests as separate issues on GitHub.
[x] Clearly describe the goal of the feature request. Why is it needed?
[x] Describe an envisioned solution. What do you want the new behavior to be?
[x] If applicable, share mockup images or links to examples illustrating the desired output.

Goal
Ability to use svelte-vega as a dependency in a project that uses Svelte 4.x.x.
Description
Svelte 4 has been released on 22-06-2023.
In my project, when I update to "svelte": "^4.0.4", I get an error when running npm install stating that the dependencies cannot be resolved because svelte-vega (I'm on 2.0.0) requires a different version of Svelte.
Can you please update?
I think, the problem is here:

https://github.com/vega/svelte-vega/blob/main/packages/svelte-vega/package.json#L67C14-L67C21
https://github.com/vega/svelte-vega/blob/main/packages/svelte-vega/package.json#L60

Can you send a pull request?

Any news on that issue? I also get this error while trying to use it in combination with svelte 4. Thanks

See #859

@paulogonc I was able to remove the error with an override in package.json:
{
  "dependencies": {},
  "overrides": {
    "svelte-vega": {
      "svelte": "^4.0.0"
    }
  }
}

@liamdiprose thanks for the hint, now it works! :-)


added printf

Can one of the admins verify this patch?

Hi, I am currently get familiar with the launcher-backend functionality. So, I am checking complete ci-cd flow till production. So, just raised a dummy pr . added a printf statement to see the flow.
Can u please approve?

Merging random PRs just to test the CI build does not seem necessary. There's enough history on the CI server to see how builds are being run daily: https://ci.centos.org/view/Devtools/job/devtools-launcher-backend-generator-build-master/
If there's really some pressing need please provide more information.


[BUG] Credentials are output in plain text in application console logs

Description
After deploying the broker to our environment and reviewing the output logs, all of the credentials used to provision services are logged.
Expected Behavior
When credentials are logged, they should either be masked OR omitted from the output.
Actual Behavior
The credentials are displayed in plaintext. Example for  csb-azure-mssql-db you will find in the logs admin_username and admin_password in plaintext.
Possible Fix
Ultimately fixing the leaked credentials would be the preferable solution but based on the code, I see that a struct attribute data of type interface{} just outputs whatever is inside it. It's probably normal since this was most likely intended to be a generic placeholder for any information relevant to a supported terraform service (azure mssql, azure mysql, azure cosmosdb, etc etc)
ELSE
In utils.go I found this logger init function which maybe the culprit. If the logger levels could be externalized to os.Getenv(), this can maybe be leveraged at deployment/startup time to bump up the levels to INFO, ERROR, FATAL
func NewLogger(name string) lager.Logger {
	logger := lager.NewLogger(name)

	logger.RegisterSink(lager.NewWriterSink(os.Stderr, lager.ERROR))
	logger.RegisterSink(lager.NewWriterSink(os.Stdout, lager.DEBUG))

	return logger
}

changed to something like this....
func NewLogger(name string) lager.Logger {
	logger := lager.NewLogger(name)

        logLevel := os.Getenv("LOG_LEVEL")
        if len(logLevel) < 1 {
            logLevel = lager.DEBUG
        }

	logger.RegisterSink(lager.NewWriterSink(os.Stderr, lager.ERROR))
	logger.RegisterSink(lager.NewWriterSink(os.Stdout, logLevel))

	return logger
}

Steps to Reproduce

deploy broker
make a request to provision an Azure Sql Database
inspect logs and you will find admin_username and admin_password in plain text

Context
This is going to be huge security risk for all non-sandbox environments
Your Environment

Version used: sb-0.2.1-rc.1-azure-1.0.0-rc.21
The * Platform (Azure/AWS/GCP): Azure
Applicable Services: csb-azure-mssql-db, csb-azure-mysql

We're on it!! Thank you for submitting this

Upon further testing in our environment, it seems the leak is only coming from csb-azure-mssql-db and NOT csb-azure-mysql. Ive updated the issue


Tg 256

AskTimeOut Issue Fix for sending email for notification api.

Can't follow why so many changes are required to fix just the timeout. Hoping you're doing the right thing.


Cbouchard/ /merge branches

Codecov Report

Merging #586 (2873da7) into main-iac (2edc385) will increase coverage by 0.07%.
The diff coverage is 94.66%.

:exclamation: Current head 2873da7 differs from pull request most recent head fe51eaa. Consider uploading reports for the commit fe51eaa to get more accurate results

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
@@             Coverage Diff              @@
##           main-iac     #586      +/-   ##
============================================
+ Coverage     93.73%   93.81%   +0.07%
============================================
  Files            93      104      +11
  Lines          4163     4653     +490
============================================
+ Hits           3902     4365     +463
- Misses          261      288      +27

Flag
Coverage Δ

unittests
93.81% <94.66%> (+0.07%)
:arrow_up:

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

Impacted Files
Coverage Δ

ggshield/iac/iac_scan_models.py
84.09% <50.00%> (-1.63%)
:arrow_down:

...gshield/iac/collection/iac_diff_scan_collection.py
85.71% <66.66%> (-14.29%)
:arrow_down:

ggshield/hmsl/utils.py
81.25% <81.25%> (ø)

ggshield/cmd/hmsl/decrypt.py
90.74% <90.74%> (ø)

ggshield/cmd/hmsl/check.py
92.50% <92.50%> (ø)

ggshield/cmd/hmsl/query.py
94.59% <94.59%> (ø)

ggshield/core/config/config.py
95.57% <97.22%> (+0.70%)
:arrow_up:

ggshield/hmsl/client.py
97.77% <97.77%> (ø)

ggshield/cmd/hmsl/__init__.py
100.00% <100.00%> (ø)

ggshield/cmd/hmsl/api_status.py
100.00% <100.00%> (ø)

... and 20 more

... and 2 files with indirect coverage changes


[video_player] [ios] Scrubber moves to the previous position when it is moved

Steps to Reproduce

Execute flutter run on the code sample
Play the video
Move the scrubber

Expected results: The video continue playing while the scrubber continues to move to the new position from where it is moved.
Actual results: When the scrubber is moved, it is moved to its previous position for some time, and afterward it is moved back to the new position.

Code sample
import 'package:flutter/material.dart';
import 'package:logger/logger.dart';
import 'package:video_player/video_player.dart';

final logger = Logger();

void main() => runApp(MaterialApp(home: _BigBuckBunnyRemoteVideo()));

class _BigBuckBunnyRemoteVideo extends StatefulWidget {
  @override
  _BigBuckBunnyRemoteVideoState createState() =>
      _BigBuckBunnyRemoteVideoState();
}

class _BigBuckBunnyRemoteVideoState extends State<_BigBuckBunnyRemoteVideo> {
  late VideoPlayerController _controller;

  @override
  void initState() {
    super.initState();

    _controller = VideoPlayerController.network(
      'http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4',
    )
      ..addListener(() {
        setState(() {});
      })
      ..initialize();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: AspectRatio(
          aspectRatio: _controller.value.aspectRatio,
          child: Stack(
            alignment: Alignment.bottomCenter,
            children: <Widget>[
              VideoPlayer(_controller),
              Stack(
                children: <Widget>[
                  AnimatedSwitcher(
                    duration: const Duration(milliseconds: 50),
                    reverseDuration: const Duration(milliseconds: 200),
                    child: _controller.value.isPlaying
                        ? const SizedBox.shrink()
                        : Container(
                            color: Colors.black26,
                            child: const Center(
                              child: Icon(
                                Icons.play_arrow,
                                color: Colors.white,
                                size: 100,
                              ),
                            ),
                          ),
                  ),
                  GestureDetector(
                    onTap: () {
                      _controller.value.isPlaying
                          ? _controller.pause()
                          : _controller.play();
                    },
                  ),
                ],
              ),
              VideoProgressIndicator(_controller, allowScrubbing: true),
            ],
          ),
        ),
      ),
    );
  }

  @override
  void dispose() {
    _controller.dispose();
    super.dispose();
  }
}

Logs
[✓] Flutter (Channel stable, 2.10.3, on macOS 12.3 21E230 darwin-x64, locale en)
    • Flutter version 2.10.3 at /Users/v.markovic/Downloads/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 7e9793dee1 (4 weeks ago), 2022-03-02 11:23:12 -0600
    • Engine revision bd539267b4
    • Dart version 2.16.1
    • DevTools version 2.9.2

[✓] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
    • Android SDK at /Users/v.markovic/Library/Android/sdk
    • Platform android-32, build-tools 32.1.0-rc1
    • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 13.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • CocoaPods version 1.11.2

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

[✓] Android Studio (version 2021.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.11+0-b60-7590822)

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

[✓] Connected device (3 available)
    • iPhone Xr 72 (mobile) • 00008020-001434263E88002E • ios            • iOS 12.0 16A367
    • macOS (desktop)   • macos              • darwin-x64     • macOS 12.3 21E230 darwin-x64
    • Chrome (web)      • chrome             • web-javascript • Google Chrome 99.0.4844.84

[✓] HTTP Host Availability
    • All required HTTP hosts are available

• No issues found!

It seems that this is only happening on iOS, on Android looks like it's working fine, though I didn't test this on other platforms like web and desktop.
https://user-images.githubusercontent.com/30355243/160831954-9be23003-16e6-4423-8ae2-820b30f37338.MP4

@Vukan-Markovic
Thanks for the report. I tried your code sample running on iPhone 6s (OS 15.3.1) using latest master but didn't experience the behavior you reported. Please check below video:
https://user-images.githubusercontent.com/67046386/160997740-4b7c50b4-d1e5-489d-a7b4-3e88d579349f.MP4
Channel master, 2.13.0-0.0.pre.329

@darshankawar Thanks for the response. We use the video_player package and experienced this issue on one commercial project, so we use a stable channel because it is more stable than the master. Do you aware maybe of the reason why this is happening on the stable and not the master channel, and when will the fix be available on the stable?

@Vukan-Markovic
Thanks for the feedback. I also tried the same on latest stable (2.10.4) and don't see the behavior you reported. I believe the plugins are tested on stable version of the framework and then released on pub, so the difference in behavior on master and stable doesn't apply to plugins.

Is then may be possible that this is happening only on some iOS versions? Did you maybe had a chance to test it also on iOS 12.0 (iPhone Xr 72) or iOS 15.1 (iPhone 13 Mini), because on these versions/devices I was able to reproduce it...

Did you maybe had a chance to test it also on iOS 12.0 (iPhone Xr 72) or iOS 15.1 (iPhone 13 Mini),

I don't have these physical devices to verify on. But I tried the same on iPhone 13 (iOS 15.2) simulator on which too the behavior didn't replicate.
Can you try the plugin example on said devices and see if you still get same result ?


Copy skeleton unit attributes for split DWARF

The skeleton unit may contain attributes that don't appear in the split unit. In particular, this includes DW_AT_ranges and DW_AT_comp_dir.
Also, set the correct form for the default directory in the line program. Previously, the different form meant that we emitted the directory again when a file used it. Copying the DW_AT_comp_dir attribute is required for use of the default directory to work successfully.

Thanks!


Supposed feasibility of "UniformItemsLayout" in the "forecast 24 hours a day collection" region of "HomePage.xaml" in .NET MAUI

During the experiment with "UniformItemsLayout" the following results are observed:
Positive Features:

It works almost similar to FlexLayout.
Good handling of "MaxRows" and "MaxColumns" properties.
It is not necessary to add many properties to harmonize the elements.

UI level bugs:

The elements are disorganized when touching the last one.

Technical corrections:

When the "ScrollView" has a fixed orientation, the "UniformItemsLayout" gets messed up, the solution is to add to each state its proper orientation.


scala plugin joint compilation succeed without producing bytecode files

Expected Behavior
Having a scala project and using joint compilation. After deleting a class file (bytecode) in build/, when re-running the compilation, the task succeed but the class file is not generated.
Steps to Reproduce
I wrote a sample project : https://github.com/apflieger/gradle-incremental-build
10:29:27 ~/src/gradle-incremental-build refs/heads/master $ ./gradlew classes

BUILD SUCCESSFUL in 2s
1 actionable task: 1 executed
10:29:32 ~/src/gradle-incremental-build refs/heads/master $ ls build/classes/scala/main/base/Main.class
build/classes/scala/main/base/Main.class
10:29:43 ~/src/gradle-incremental-build refs/heads/master $ rm build/classes/scala/main/base/Main.class
10:29:48 ~/src/gradle-incremental-build refs/heads/master $ ./gradlew classes

BUILD SUCCESSFUL in 2s
1 actionable task: 1 executed
10:29:57 ~/src/gradle-incremental-build refs/heads/master $ ls build/classes/scala/main/base/Main.class
ls: build/classes/scala/main/base/Main.class: No such file or directory

Even with multiple run of ./gradlew classes, the class isn't outputted. The task is considered up-to-date.
Environment
./gradlew -version
Gradle 6.6-rc-3
Build time:   2020-07-24 14:04:09 UTC
Revision:     13b5dcc4f294b395e61d937a3601fd47be38e76e
Kotlin:       1.3.72
Groovy:       2.5.12
Ant:          Apache Ant(TM) version 1.10.8 compiled on May 10 2020
JVM:          14.0.1 (Oracle Corporation 14.0.1+7)
OS:           Mac OS X 10.15.6 x86_64
java -version
openjdk version "14.0.1" 2020-04-14
OpenJDK Runtime Environment (build 14.0.1+7)
OpenJDK 64-Bit Server VM (build 14.0.1+7, mixed mode, sharing)

@SheliakLyr Do you know if the incremental compiler in Zinc has mechanism to detect that the output was messed up? And  do a full recompile in that case?

I think that Zinc supports this fully: it will compile incrementally only missing files. That's how my sample sbt project works, and the code responsible for this is in zinc. See doc for sbt.internal.inc.IncrementalCommon.detectInitialChanges:
   * The logic of this method takes care of the following tasks:
   *
   * 1. Detecting the sources that changed between the past and present compiler iteration.
   * 2. Detecting the removed products based on the stamps from the previous and current products. (!!)
   * 3. Detects the class names changed in a library (classpath entry such as jars or analysis).
   * 4. Computes the API changes in dependent and external projects.

I guess products mentioned in 2 is the same thing as outputs.
That method is used in sbt.internal.inc.Incremental.compile. For my sbt project, removed products are correctly detected. For sample project provided by @apflieger, removed products are not detected.
The difference between sbt & gradle is that sbt provides an implementation of the ExternalHooks.Lookup trait that feeds zinc the information about removed products (classes). Not sure how exactly this works and why zinc cannot do this on its own.
The solution: provide an implementation of the ExternalHooks.Lookup trait and inject it into IncOptions.

My last comment is no longer relevant. Newer sbt/zinc work differently. I suspect that upgrade to zinc 1.4.4 will solve this and #15961 (possible duplicate).
Upgrade to newer zinc is blocked by #15491, but I made necessary changes locally and with zinc 1.4.4 missing classes are correctly restored. Further tests are needed to verify this works correctly.

@SheliakLyr Are you planning to submit the local changes you have made as a PR?

No, I have only tested it to check what causes the issue. My changes (very rough) are here: https://github.com/SheliakLyr/gradle/tree/newZinc_1.4.4.
If no one from gradle is going to tackle those 3 related issues, I could work on a proper PR - just let me know. I have seen some initial work by @big-guy in #15961, which made me think this topic is already worked upon.

Let's see what @big-guy says, but I assume they would appreciate contributions.

@SheliakLyr A contribution to fix this and the related issue would be very welcome. The Gradle team currently has very limited capacity for this unfortunately.

Ok, I would like to inquire about one topic: compatibility with zinc. Is it possible to drop support for zinc <= 1.5.0 in gradle 7.x? Or should I build some reflection-based layer of compatibility between gradle and zinc in order to keep the support for older versions?
Arguments for using only zinc 1.5.0:

Simpler, no reflection is needed.
Having ability to change zinc version per build/module is cool but in practice may cause unexpected problems and is harder to maintain.
Newer versions of zinc work better (this issue is an example of that)

Arguments for keeping support for older zincs:

Users can set older version if 1.5.0 introduces any regressions.
There may be some unusual cases when specific version of zinc is needed. Maybe #15491 requires 1.4.3?

BTW, I asked about 1.5.0 because zinc 1.4.x seems kind of broken. zinc_2.12:1.4.4 has indirect dependency on scala 2.13 :(
IMHO: I would drop support for older zincs and limit the ability to change zinc version (only bugfixes, ex. 1.5.0 -> 1.5.1).

I think it makes the most sense to go with the latest zinc version and support it well versus supporting multiple versions poorly.

Thanks for the answer and the proposal. I now wish we had that conversation two weeks ago, selecting Zinc 1.5 for Gradle 7.0 would have been an easy choice.
Let me check internally on the compatibility question and get back to you.

@SheliakLyr Sorry for taking so long to get back to you.
If you are still interested, a contribution to fix this issue would be most welcome. Ideally we would like to not drop support for older Zinc version but as commented by Ismael having compilation produce the correct output is the first goal.

I guess this is my turn to apologize for the delay :)
I think this issue was solved without the need to upgrade zinc to newer version by @rieske in 4990228abb76c0937800fff650e439f113877a01. I still have my branch (with zinc upgrade), I will look at other issues and decide what to do with it.


přidání č. vzorku do katalogu

We need to add actual values of specimen IDs to a catalogue and only make it visible for specific users (Admin and Eva/Ema accounts)

[ ] Implement this addition to a pipeline @Tomik292
[ ] Add this column to data that are already uploaded @Tomik292
[ ] Manage who can see the data @RadoslavaKacova

This will not work well. ER/EJ would need to check every specimen ID by itselt.
We've came up with a better plan.
Biobanker will upload a csv with specimen IDs. Specimen IDs will be searched and biobanker will get a updated csv with information if the speciman has sequencing data or not


Deserialization fails because of schema not found

In source statistic monitor, the deserialization fails if schema with the id is not found. This further results in #79.
We should use the AbstractKafkaAvroDeserializer class from radar-commons which has custom code for the above exception.

@blootsvoets We can close this as fixed?


object detection dataset

Hello!
I'm trying to use FFCV with a dataset for object detection, each label has different numbers of bouding boxes. I use NDArrayFied of size (15, 5) (15 - maximum number of bboxes per image, 5 - class label + 4 coordinates of bbox) and get the following error
ValueError: could not broadcast input array from shape (40,) into shape (300,)

Could you help with that please?

Hi @firsakov ! Can you provide a larger code sample that shows what your dataset is returning?

@andrewilyas this is the error
File "/opt/conda/envs/ffcv/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/opt/conda/envs/ffcv/lib/python3.9/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/opt/conda/envs/ffcv/lib/python3.9/site-packages/ffcv/writer.py", line 112, in worker_job_indexed_dataset
    handle_sample(sample, dest_ix, field_names, metadata, allocator, fields)
  File "/opt/conda/envs/ffcv/lib/python3.9/site-packages/ffcv/writer.py", line 50, in handle_sample
    field.encode(destination, field_value, allocator.malloc)
  File "/opt/conda/envs/ffcv/lib/python3.9/site-packages/ffcv/fields/ndarray.py", line 93, in encode
    data_region[:] = field.reshape(-1).view('<u1')
ValueError: could not broadcast input array from shape (60,) into shape (400,)

and this is code
    writer = DatasetWriter(write_path, {
        'image': RGBImageField(),
        'label': NDArrayField(shape=(15, 5), dtype=np.dtype('float32')),
    })
    writer.from_indexed_dataset(dataset)
    batch_size = min(batch_size, len(dataset))
    nw = min([os.cpu_count(), batch_size if batch_size > 1 else 0, workers])  # number of workers
    decoder = RandomResizedCropRGBImageDecoder((224, 224))
    image_pipeline = [decoder, Cutout(), ToTensor(), ToTorchImage(), ToDevice(0)]
    label_pipeline = [IntDecoder(), ToTensor(), ToDevice(0)]
    pipelines = {
        'image': image_pipeline,
        'label': label_pipeline
    }
    loader = Loader(write_path, batch_size=bs, num_workers=num_workers,
                    order=OrderOption.RANDOM, pipelines=pipelines)

Hi @firsakov , thanks for the info---can you also provide the definition of dataset in your code above?

Hi I'm having a similar error.
My code:
from ffcv.writer import DatasetWriter
from ffcv.fields import NDArrayField, FloatField, RGBImageField

writer = DatasetWriter(
    "data.beton",
    {
        "input_ids": NDArrayField(shape=(20,), dtype=np.dtype('uint8')),
        "attention_mask": NDArrayField(shape=(20,), dtype=np.dtype('uint8')),
        # Roughly 25% of the images will be stored in raw and the other in jpeg
        "pixel_values": RGBImageField(
            write_mode="proportion",
            compress_probability=0.25,
            max_resolution=(224, 224),
            jpeg_quality=50,
        ),
    },
    num_workers=20,
)

class CaptionDataset:
    def __init__(self):
        self.captions = p **# <- a pandas dataframe with 3 columns**

    def __getitem__(self, idx):
        inpt = self.captions['input_ids'][idx]   # example: [0, 1832, 27172, 161, 142555, 148, 184359, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
        at_mk = self.captions['attention_mask'][idx]   # example: [1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
        img = self.captions['pixel_values'][idx]       # an image of (3, 224, 224)
        return inpt, at_mk, img

    def __len__(self):
        return len(self.captions)

ds = CaptionDataset()
writer.from_indexed_dataset(ds)

The error:

Process Process-381:
Traceback (most recent call last):
  File "/anaconda3/envs/embedoor/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
    self.run()
  File "/anaconda3/envs/embedoor/lib/python3.8/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/anaconda3/envs/embedoor/lib/python3.8/site-packages/ffcv/writer.py", line 112, in worker_job_indexed_dataset
    handle_sample(sample, dest_ix, field_names, metadata, allocator, fields)
  File "/anaconda3/envs/embedoor/lib/python3.8/site-packages/ffcv/writer.py", line 50, in handle_sample
    field.encode(destination, field_value, allocator.malloc)
  File "/anaconda3/envs/embedoor/lib/python3.8/site-packages/ffcv/fields/ndarray.py", line 93, in encode
    data_region[:] = field.reshape(-1).view('<u1')
ValueError: could not broadcast input array from shape (80,) into shape (20,)

I have confirmed that all my examples are len = 20. Did I do something wrong? Thanks!

Assuming this is resolved (wrong dtype) and closing -- feel free to re-open a new issue if it's not resolved!


Cryptopp 8 fails to build on macOS Xcode 10

crypto++8.0.0 release
macOS 10.14.2, Xcode 10.1
$ clang --version
Apple LLVM version 10.0.0 (clang-1<IP_ADDRESS>)
Target: x86_64-apple-darwin18.2.0
Cmake (from cryptopp-cmake project) static lib
$ cmake --version
cmake version 3.12.2
Building for macOS target. Not iPhone simulator.
Copied from weidei/cryptopp issue
crypto++7 built fine
cryptopp/crc_simd.cpp:148:13: error: always_inline function '_mm_crc32_u8' requires target feature 'popcnt', but would be inlined into function 'CRC32C_Update_SSE42' that is compiled without support for 'popcnt'
        c = _mm_crc32_u8(c, *s);
            ^
cryptopp/crc_simd.cpp:151:13: error: always_inline function '_mm_crc32_u32' requires target feature 'popcnt', but would be inlined into function 'CRC32C_Update_SSE42' that is compiled without support for 'popcnt'
        c = _mm_crc32_u32(c, *(const word32 *)(void*)s);
            ^
/cryptopp/crc_simd.cpp:154:13: error: always_inline function '_mm_crc32_u8' requires target feature 'popcnt', but would be inlined into function 'CRC32C_Update_SSE42' that is compiled without support for 'popcnt'
        c = _mm_crc32_u8(c, *s);
            ^
3 errors generated.

Source for the function is wrapped by CRYPTOPP_SSE42_AVAILABLE and that checks for CRYPTOPP_APPLE_CLANG_VERSION >= 40000.
However, compiler flags do not have SSE4.2 enabled by default:
$ c++ -arch x86_64 -std=c++14 -dM -E -x c++ - < /dev/null | grep SSE
#define __SSE2_MATH__ 1
#define __SSE2__ 1
#define __SSE3__ 1
#define __SSE4_1__ 1
#define __SSE_MATH__ 1
#define __SSE__ 1
#define __SSSE3__ 1

In Xcode this can be overrode with the "Enable Additional Vector Extensions" whose raw name is "CLANG_X86_VECTOR_INSTRUCTIONS".

Potentially related to https://github.com/weidai11/cryptopp/issues/933 ?

I think we cleared this at Crypto++ 8.5.


IIIF info json ID exposes PUL's IIIF endpoint

Replace the IIIF @id with our proxy instead of https://iiif-cloud.princeton.edu/iiif/2/36%2F65%2Ff9%2F3665f9f50fab4dabb32e2dd3d1911cb5%2Fintermediate_file/info.json
Testing Notes
Test that links with the following endings don't show the PUL link on @id

[x] iiif/info.json
[x] iiif
[x] iiif/

@rlskoeser ugh, I mean it resolves, but it's not even a properly formatted link 🙄 I feel like I shouldn't even mention it, but this shows the PUL link: https://test-derrida.cdh.princeton.edu/library/levi-strauss-la-pensee-sauvage-1962/gallery/images/p-169/iiif/info.json/

@rlskoeser It wasn't linked anywhere, I just guessed that it would show the PUL version. Again, probably not worth it

@rlskoeser The redirect makes this feel very clean, LGTM!!


Update shorcut to access "Inspector" on Linux

Title is more than descriptive.

As it's not required to review, I'm merging.


New package: MiaTools v0.1.0

Registering package: MiaTools
Repository: https://github.com/JuliaTurkuDataScience/MiaTools.jl
Created by: @RiboRings
Version: v0.1.0
Commit: e908ace0288d076380f03f5eebc0860d6e48c180
Reviewed by: @RiboRings
Reference: https://github.com/JuliaTurkuDataScience/MiaTools.jl/issues/18#issuecomment-1072570906
Description: Functions and workflows for the analysis of microbiome data.

Hi! I opened a pull request with the new package name. This one can be safely closed.


[tuning] Tune VAE model dispatches

Top dispatches:

Closing as no actions planned for this for now


Error 403 on Signup

I had some issues with backend not connecting so I messed around with my compose but I get an error 403 on signup?

version: '3'
services:
jellystat-db:
image: postgres
restart: unless-stopped
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: mypassword
volumes:
- /portainer/Files/AppData/Config/jellystat/db:/var/lib/postgresql/data # Mounting the volume
jellystat:
image: cyfershepard/jellystat:latest
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: mypassword
POSTGRES_IP: jellystat-db
POSTGRES_PORT: 5432
JWT_SECRET: 'secret-string'
restart: unless-stopped
ports:
- 3008:3000 #Server Port
- 3009:3009 #websocket port
volumes:
- /portainer/Files/AppData/Config/jellystat/backup:/app/backend/backup-data # Mounting the volume
depends_on:
  - jellystat-db

networks:
default:

Hi @conors06 , that does seem abit weird. ill have to look over the code but my best guess at the moment is you've got a partially corrupted config record in such that it thinks its configured so it wont let you sign up but because there's not credentials to take you to the login page it still shows the sign up page. maybe try deleting the db image (including the postgres data on disk) and trying again.

so just double checked and this seems like the issue. il rework the code to prevent a similar scenario but it basically boils down to you attempted to do the setup but for some reason or another it didnt save your credentials resulting in this state of sign up page but 403 error.

Ye I'll try redo the setup again, its not due to me changing the 3003 port is it because I had something else running there?

Got it working man, had to call my database jfstat and boom

 Error 403 on Signup


Fix README file code block issue

It's just a simple issue in markdown code block syntax.

@nekofar ✌


Make version number accessible

Could you add a CVXcanon.__version__ field (or cvxcanon.__version__), so that people can check what version of CVXcanon they have in Python?

I just added a version field to CVXcanon in the lastest release (<IP_ADDRESS>)

Great! Thanks!


General testing

It'd be nice to have at least some very basic test suite.

For some extra info, the metrics-util crate can help a lot with unit tests.


Implement etcd client for original ycsb

Is your feature request related to a problem? Please describe.
go-ycsb is a good solution to get us going but the original ycsb would be better for cross-analysing systems from other works. We would just need to implement a new database driver for etcd to cover both etcd and lskv.
Describe the solution you'd like
A new client driver for ycsb that can talk to etcd.
Describe alternatives you've considered
go-ycsb but it isn't as featureful.

https://github.com/etcd-io/jetcd should be useful


Fix mysql header include having extra "mysql/" prefix

libmysqlclient does not prefix headers with mysql. I believe there was a set of commits before that removed most of the places in which mysql includes were using an extra mysql/ prefix but this file seems to have been missed.

Thanks!


kong.request.get_header() function doesn't works in the log phase in external python plugins.

Is there an existing issue for this?

[X] I have searched the existing issues

Kong version ($ kong version)
2.6
Current Behavior
kong.request.get_header() function doesn't works in the log phase on external python plugins.

Kong runs on docker from kong:2.6.0-alpine.
External python plugin uses usekong-pdk==0.27

Plugin code:
#!/usr/bin/env python3
import kong_pdk.pdk.kong as KongRpc

class LoggerPlugin:
    NAME = 'logger'
    VERSION = '1.0.0'
    PRIORITY = 9
    SCHEMA = tuple()

    def log(self, kong: KongRpc) -> None:
        header_val, _ = kong.request.get_header('x_testheader')
        kong.log.debug(f'{header_val}')

    @classmethod
    def start_in_dedicated_server(cls) -> None:
        start_dedicated_server(
            cls.NAME,
            cls,
            cls.VERSION,
            cls.PRIORITY,
            cls.SCHEMA
        )

if __name__ == "__main__":
    LoggerPlugin.start_in_dedicated_server()

Request:
curl -v -XPOST -H 'X-Testheader: test_head_val'  -d 'test request body' 'http://localhost:8000/test-echo/'

Kong log:
vtb-kong        | <IP_ADDRESS> - - [09/Nov/2021:08:54:27 +0000] "POST /test-echo/ HTTP/1.1" 499 0 "-" "curl/7.68.0"
vtb-kong        | 2021/11/09 08:54:27 [info] 1099#0: *29 [logger:1112] DEBG - [16:54:27] rpc: #1 method: plugin.StartInstance args: [{'Config': '{"__seq__":0,"__key__":"plugins:logger:::::0d447b67-59c9-464c-8106-b58c80f3b206"}', 'Name': 'logger'}], context: ngx.timer
vtb-kong        | 2021/11/09 08:54:27 [info] 1099#0: *29 [logger:1112] INFO - [16:54:27] instance #0 of logger started, context: ngx.timer
vtb-kong        | 2021/11/09 08:54:27 [info] 1099#0: *29 [logger:1112] DEBG - [16:54:27] rpc: #1 return: {'Name': 'logger', 'Id': 0, 'Config': {'__seq__': 0, '__key__': 'plugins:logger:::::0d447b67-59c9-464c-8106-b58c80f3b206'}, 'StartTime':<PHONE_NUMBER>.186628}, context: ngx.timer
vtb-kong        | 2021/11/09 08:54:27 [info] 1099#0: *29 [logger:1112] DEBG - [16:54:27] rpc: #2 method: plugin.HandleEvent args: [{'InstanceId': 0, 'EventName': 'log'}], context: ngx.timer
vtb-kong        | 2021/11/09 08:54:27 [info] 1099#0: *29 [logger:1112] DEBG - [16:54:27] rpc: #2 return: {'Data': {'Method': 'kong.request.get_header', 'Args': ('x_testheader',)}, 'EventId': 0}, context: ngx.timer
vtb-kong        | 2021/11/09 08:54:27 [error] 1110#0: *4408 lua entry thread aborted: runtime error: /usr/local/share/lua/5.1/kong/pdk/private/phases.lua:79: no phase in kong.ctx.core.phase, (need one of rewrite, access, response, cluster_listener, header_filter, body_filter)
vtb-kong        | stack traceback:
vtb-kong        | coroutine 0:
vtb-kong        |       [C]: in function 'error'
vtb-kong        |       /usr/local/share/lua/5.1/kong/pdk/private/phases.lua:79: in function 'check_phase'
vtb-kong        |       /usr/local/share/lua/5.1/kong/pdk/request.lua:562: in function 'call_pdk_method'
vtb-kong        |       ...cal/share/lua/5.1/kong/runloop/plugin_servers/mp_rpc.lua:286: in function 'bridge_loop'
vtb-kong        |       ...cal/share/lua/5.1/kong/runloop/plugin_servers/mp_rpc.lua:305: in function 'handle_event'
vtb-kong        |       ...local/share/lua/5.1/kong/runloop/plugin_servers/init.lua:236: in function <...local/share/lua/5.1/kong/runloop/plugin_servers/init.lua:232>, context: ngx.timer, client: <IP_ADDRESS>, server: <IP_ADDRESS>:8000

Expected Behavior
According Kong documentation function request.get_header(..) can be used in log phase.
Steps To Reproduce
No response
Anything else?
No response

Thanks for reporting this. It seems that this might be either a bug on the Python PDK or a documentation error. Filling it as a bug until further investigation gets done.

I was about to write down some docs but I think the docs is correct and ngx.req.get_headers indeed can be called
in logs phase. I think what's missing here is we can pass req headers as we did for response headers (https://github.com/Kong/kong/blob/master/kong/runloop/plugin_servers/init.lua#L228).  @javierguerragiraldez does
that sounds correct to you?

Yes, supporting request headers is simple enough, but there's a cost paid on every request with an external plugin with a log phase, no matter if they use requests or not.
If i remember correctly, the response headers were added before the response phase, because there wasn't any other way to access any response data.  but request headers are available during access phase, so this wouldn't be necessary.   I'd like to make all this "saved" data optional, but don't have many ideas on how to make it simple and quicker than just saving anything that seems useful.


connection string password bug

fix a bug with the authenticated connection string generation
add a .NET editorconfig

@slorello89 I think I have the CI fix in the docker-compose file but I'm not sure the best practice for setting the Redis password in GitHub CI.  Is it fine to commit that in the yaml or is there a better way?

closes #43


ML-290 Fix uninitialized memory issue

Create fix

Reviewed.  No issues.

@richardkchapman this is good to go


this package doesn't support on laravel 5.3

Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for marvinlabs/laravel-setup-wizard 0.2.0 -> satisfiable by marvinlabs/laravel-setup-wizard[0.2.0].
- Conclusion: remove laravel/framework v5.3.29
- Conclusion: don't install laravel/framework v5.3.29
- marvinlabs/laravel-setup-wizard 0.2.0 requires illuminate/support 5.2.* -> satisfiable by illuminate/support[v5.2.0, v5.2.19, v5.2.21, v5.2.24, v5.2.25, v5.2.26, v5.2.27, v5.2.28, v5.2.31, v5.2.32, v5.2.37, v5.2.43, v5.2.45, v5.2.6, v5.2.7].
- don't install illuminate/support v5.2.0|don't install laravel/framework v5.3.29
- don't install illuminate/support v5.2.19|don't install laravel/framework v5.3.29
- don't install illuminate/support v5.2.21|don't install laravel/framework v5.3.29
- don't install illuminate/support v5.2.24|don't install laravel/framework v5.3.29
- don't install illuminate/support v5.2.25|don't install laravel/framework v5.3.29
- don't install illuminate/support v5.2.26|don't install laravel/framework v5.3.29
- don't install illuminate/support v5.2.27|don't install laravel/framework v5.3.29
- don't install illuminate/support v5.2.28|don't install laravel/framework v5.3.29
- don't install illuminate/support v5.2.31|don't install laravel/framework v5.3.29
- don't install illuminate/support v5.2.32|don't install laravel/framework v5.3.29
- don't install illuminate/support v5.2.37|don't install laravel/framework v5.3.29
- don't install illuminate/support v5.2.43|don't install laravel/framework v5.3.29
- don't install illuminate/support v5.2.45|don't install laravel/framework v5.3.29
- don't install illuminate/support v5.2.6|don't install laravel/framework v5.3.29
- don't install illuminate/support v5.2.7|don't install laravel/framework v5.3.29
- Installation request for laravel/framework (locked at v5.3.29, required as 5.3.*) -> satisfiable by laravel/framework[v5.3.29].
what tag version for laravel 5.3
thanks

0.2.1 supports it


[-] Got error: module 'enum' has no attribute '_decompose'

I have installed from source in a virtual environment, however on a Mac I cannot get the program to run unless I use -stdout.
Seems to be a package issue with enum.py and find.py.
Any advice is appreciated.

Traceback (most recent call last):
File "/opt/homebrew/lib/python3.11/site-packages/certipy/commands/find.py", line 782, in security_to_bloodhound_aces
standard_rights = list(rights["rights"])
^^^^^^^^^^^^^^^^^^^^^^
File<EMAIL_ADDRESS>line 1482, in iter
yield from self.iter_member(self.value)
File<EMAIL_ADDRESS>line 1369, in iter_member_by_def
yield from sorted(
^^^^^^^
File<EMAIL_ADDRESS>line 1371, in
key=lambda m: m.sort_order,
^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'sort_order'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/homebrew/lib/python3.11/site-packages/certipy/entry.py", line 60, in main
actionsoptions.action
File "/opt/homebrew/lib/python3.11/site-packages/certipy/commands/parsers/find.py", line 12, in entry
find.entry(options)
File "/opt/homebrew/lib/python3.11/site-packages/certipy/commands/find.py", line 1185, in entry
find.find()
File "/opt/homebrew/lib/python3.11/site-packages/certipy/commands/find.py", line 455, in find
self.output_bloodhound_data(prefix, templates, cas)
File "/opt/homebrew/lib/python3.11/site-packages/certipy/commands/find.py", line 578, in output_bloodhound_data
aces = self.security_to_bloodhound_aces(security)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/certipy/commands/find.py", line 784, in security_to_bloodhound_aces
standard_rights = rights["rights"].to_list()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/homebrew/lib/python3.11/site-packages/certipy/lib/constants.py", line 265, in to_list
members, _ = enum._decompose(cls, self.value)
^^^^^^^^^^^^^^^
AttributeError: module 'enum' has no attribute '_decompose'

Same problem today.

I'm having the same issue as the OP also.

Same issue today using the certipy-ad package in Kali

Same issue with certipy-ad AND installing in a venv with the setup.py on multiple kali/parrot VMs.

The issue persists making certipy unusable on a fresh Kali installation (properly using a venv).
I tried to locate the error by searching for the offending enum package
❯ pwd
/home/kali/Tools/Certipy

❯ echo $VIRTUAL_ENV
/home/kali/Tools/Certipy/venv

❯ find . -name enum.py
./venv/lib/python3.11/site-packages/dns/enum.py
./venv/lib/python3.11/site-packages/impacket/examples/ntlmrelayx/utils/enum.py
./venv/lib/python3.11/site-packages/impacket/dcerpc/v5/enum.py

I installed older versions for the impacket and dnspython modules but the issue persists.
Did somebody already identified the root cause of this and found a fix or workaround?

Fixed in version 4.8.0. Upgrade with pip3 install -U certipy-ad

Hello @ly4k,
Thank you for your help, but after pip3 install -U certipy-ad, i got the following error :

Any advice?


Encoding-generalization

Generalize support for bilayer, petrinet, and regnets

The tests for petrinets and regnets that are currently expected to work should be cleaned up and moved from scratch to test.


testv2: Use KubeOne release/v1.5 branch as stable for upgrade tests

What this PR does / why we need it:
This PR changes the stable version used in upgrade tests to v1.5 (release/v1.5 branch). This is needed because of compatibility issues with the latest Terraform configs and KubeOne 1.4 (currently used as the stable version in upgrade tests).
What type of PR is this?
/kind failing-test
Does this PR introduce a user-facing change? Then add your Release Note here:
NONE

Documentation:
NONE

/test pull-kubeone-e2e-aws-default-upgrade-containerd-from-v1.23.9-to-v1.24.3

/test pull-kubeone-e2e-aws-default-upgrade-containerd-from-v1.23.9-to-v1.24.3

/lgtm
/approve

/test pull-kubeone-e2e-aws-default-upgrade-containerd-from-v1.23.9-to-v1.24.3

/test pull-kubeone-e2e-aws-default-upgrade-containerd-from-v1.23.13-to-v1.24.7

/test pull-kubeone-e2e-aws-default-upgrade-containerd-from-v1.24.7-to-v1.25.3

/test pull-kubeone-e2e-aws-default-upgrade-containerd-from-v1.23.13-to-v1.24.7

/test pull-kubeone-e2e-aws-default-stable-upgrade-containerd-from-v1.23.13-to-v1.24.7

/lgtm
/approve


Doc for plugins

In the changelog for the last version it is said that support for plugins has been added.
Looking through the code/commits looks like there is a new config parameter for the agent:
pluginsDir := config.GetString("plugin.plugins_dir").
Also use to be a example code for a probe but it moved to this, unmerged, PR
Will be great to have some docs of how to use this.

Wow, I completely missed this PR. I just merged it.
Yes, we should definitely add documentation for this

I don't know if the plugin architecture using Go/plugin is a good idea.
Looks like there are problems if the build is not done with exactly the same files.
https://github.com/skydive-project/skydive-plugins/pull/2


Timeline zooming

Let's make a way to navigate the timeline left and right, and resize. The user can use a date picker to pick the beginning and end, but let's not force them to use it to be usable. So with #155, we have good defaults and you can have buttons that go left or right on the timeline, and then we can also set the dates.

We've decided not to do this.


Feature/importing docs

This content was moved to a Paper document and later will be merged into gep-docs. No further action in here.


The line chart in the brush chart component is a little bit pushed to the left.

the line chart in the brush chart component is a little bit pushed to the left.

@soyef-bit
Fixed.. please check

@sabirveli
the page needs a reload to work. otherwise the top chart doesn't move at all when scrubbing.

@ekhaled  @soyef-bit
this error displayed while loading Barchart..
put some time interval for loading the barchart and seems like the issue is fixed..
@soyef-bit
note : apexchart is updated.. so need..
npm i
npm run bootstrap


Enable opening when empty by allowing to specify item height

Workaround for #244

The default behavior for the dropdown button when items are empty is to be disabled.
Therefore, we should instead prevent programmatically opening the dropdown when items are empty.

As I described in #244 I have a bit unusual use case which this PR makes possible.
I need to show sometimes an empty dropdown with search to the user. The point is that when nothing is found, user can tap on the noResultsWidget to create new item and add it to the dropdown using the searched value.
Without this PC the dropdown will not open when empty, due to failing loading item height, because there are no items at all.

As I described in #244 I have a bit unusual use case which this PR makes possible.
I need to sometimes show an empty dropdown with search. The point is that when nothing is found, user can tap on the noResultsWidget to create new item and add it to the dropdown using the searched value.
Without this PC the dropdown will not open when empty, due to failing loading item height, because there are no items at all, and also due to the _enabled check.
Adding one more property enableWhenEmpty would probably make more sense and be backwards compatible too.

If we're going to allow showing an empty dropdown, it should occur whether it's opened programmatically or not.
The thing is, this is a fundamental change that might complicate things for a rare use case, which can be handled in other ways.
Currently, the dropdown behavior is working with already loaded data and the search is happening locally.
The proposed change might be feasible if we support loading/updating items when the dropdown menu is open (https://github.com/AhmedLSayed9/dropdown_button2/issues/111).
For now, If you need to show something when the items are empty, you can just pass a placeholder item that act as noResultsWidget. It'll give you the same result :)

Opening menu programmatically has been updated.
If items are empty, menu can't be opened manually as it's considered disabled.

I'll close this as I don't intend to apply it before we support loading/updating items when the dropdown menu is open.
Thanks anyway!


developer doc: more info on pre-commit

Related to issues that came up in #9312

@skye - I requested your review because I know you disovered pre-commit relatively recently!


feat(prettier): should be newline if break in AssigmentExpression

Current dependencies on/for this PR:

main

PR #1484   👈

PR #1485

This stack of pull requests is managed by Graphite.

Merge activity

Nov 21, 5:50 AM: @Boshen started a stack merge that includes this pull request via Graphite.


Where can i get HXCPP_VARS

Describe your problem here.
i'm trying to compile the psych engine and the powershell says that i miss HXCPP_VARS, but i don't know where i can get it. Please help
Are you modding a build from source or with Lua?
Source
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
No response

Check #10756, also #11107


Error Node when i use amplify push

How did you install the Amplify CLI?
yarn
If applicable, what version of Node.js are you using?
16.15.0
Amplify CLI Version
12.0.0
What operating system are you using?
Mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No
Describe the bug
i add a new dependencies in a function (amplify add function) who need to have nodejs 16.15 min
i add this with yarn add.
But when i try to run amplify push i have this error:
Command failed with exit code 1: yarn --no-bin-links --production
warning ../../../package.json: No license field
error<EMAIL_ADDRESS>The engine "node" is incompatible with this module. Expected version ">=16.15.0". Got "14.15.4"
error Found incompatible module.
yarn install v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
But in my project i have no nodeJs 14.15.4 and no in my compute too.
I tried some solutions with no result.
I have no idea where is the problem of node.
amplify stock a node somewhere ?
Expected behavior
Just amplify need to use a correct version of node (node of my project)
Reproduction steps
yarn add package to a lambda function
amplify push
Project Identifier
No response
Log output

Additional information
No response
Before submitting, please confirm:

[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
[X] I have removed any sensitive information from my code snippets and submission.

Hey @JackDurden00 :wave: thanks for raising this! Unfortunately I was not able to reproduce this using yarn 1.x and Node 18/20 with the same npm package. Can you confirm the node version you are using locally?
I was able to reproduce this if I intentionally downgraded locally to use Node 14
🛑 Packaging lambda function failed with the error
Command failed with exit code 1: yarn --no-bin-links --production
error<EMAIL_ADDRESS>The engine "node" is incompatible with this module. Expected version ">=16.15.0". Got "14.21.3"
error Found incompatible module.
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Hey,
i use v16.15.0 installed with npm

May be amplify saved on cache a node version.
Because impossible to find a version before node 16 :(

sorry i install this node with nvm:
➜  function git:(stgxvii) ✗  nvm list
v16.14.0
v16.14.1
->     v16.15.0
system
default -> 16.14.0 (-> v16.14.0)
iojs -> N/A (default)
unstable -> N/A (default)
node -> stable (-> v16.15.0) (default)
stable -> 16.15 (-> v16.15.0) (default)
lts/* -> lts/hydrogen (-> N/A)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1 (-> N/A)
lts/carbon -> v8.17.0 (-> N/A)
lts/dubnium -> v10.24.1 (-> N/A)
lts/erbium -> v12.22.12 (-> N/A)
lts/fermium -> v14.21.3 (-> N/A)
lts/gallium -> v16.20.2 (-> N/A)
lts/hydrogen -> v18.17.1 (-> N/A)

Hey @JackDurden00 thanks for clarifying! Can you confirm the version of Amplify CLI you are using? And what is the output of which amplify and npm bin -g?

amplify version : 12.0.0
which amplify => .volta/bin/amplify
npm bin -g .nvm/versions/node/v16.15.0/bin
volta list :
Node: v16.20.1 (current @ /Users/aymericvelozzo/Desktop/Mon MacBook/GIT/front/amplify/backend/
package.json)
Yarn: v1.22.10 (default)
Tool binaries available:
amplify (default)

i think the solution is delete amplify and reinstall it.
I use yarn on my project, what is the good practice for install amplify ?
i use curl or npm ?

Hey @JackDurden00 from the outputs of those commands it appears you have two Node.js version management tools installed and in use -- Volta and nvm. I'm not too acquainted with volta, but perhaps yarn is installed using the volta node version. What is the output of yarn global bin?

i deleted all nvm node.
now i use just volta.
for yarn global bin :
warning ../../../package.json: No license field
/usr/local/bin

which amplify
/Users/aymericvelozzo/.volta/bin/amplify

Hey @JackDurden00 how was yarn installed? was that installed via npm or some other means like homebrew? Can you try reinstalling amplify using npm on node 16+?

I don't remember how I installed Yarn.
I'm thinking of Homebrew.
First I delete amplify?
what is the best way to delete it?

the following will ensure Amplify CLI is removed
amplify uninstall
yarn global remove @aws-amplify/cli
# optionally remove leftover logs, metadata
rm -rf ~/.amplify

I would also suggest using corepack (which comes with later versions of Node.js) to install yarn rather than the homebrew installation. The homebrew yarn installation will use the current node.js runtime installed by volta, but maintain a separate set of global dependencies
You can get started with yarn via corepack with corepack enable and corepack prepare yarn@latest --activate

i uninstall amplify and add amplify directly with yarn (i don't remove yarn).
And now it work !!
May be my file amplify was blocked on a file node14, strange.
Thx for your time and your help :)


Return Error Payloads from the Auth Endpoint

Return Error Payloads from the Auth Endpoint

We now return error strings from the Auth endpoint.  Previously, we could have gotten a 400, 401, or 500 without any description of what went wrong.
Made use of our new DomainResponseHelper.
General refactoring.

Issue
None.
Checklist

[x] Fix unit tests in AuthDomainRegistrationTest.
[x] I have added logging where useful (with appropriate log level)
[x] I have added JavaDocs where required
[x] I have updated the documentation accordingly

Note: You may remove items that are not applicable

This is now out of draft.


[feature request] Consider adding support for innobead/kubefire

https://github.com/innobead/kubefire is a tool for spinning up local Kubernetes clusters using Firecracker VMs. It offers a potentially lightweight and secure alternative to kind/minikube.
It seems like much of the functionality required for integration with ctlptl exists- it is merely a matter of mapping between ctlptl's declarative format and the kubefire CLI options.

A couple observations:
Looks like kubefire is a thin layer of abstraction over https://github.com/weaveworks/ignite, which has been archived and is no longer maintained.
When I've chatted with ex-weaveworks engineers about this in the past, my understanding was that the ignite/flintlock approaches were focused on microvms for embedded systems (think: racks in cell phone towers or department stores). I'm not sure this tooling is ever going to be a great fit for local dev use-cases. Not a criticism, just not what it's built for.
Waiting up ctlptl registries to the microvms would be non-trivial


Vivus doesn't animate rounded rectangle borders.

Hi @maxwellito
Vivus version: 0.4.2
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36
Steps to reproduce it:

Open the fiddle
There's two svgs in there, the original on the left, and the other animated by Vivus.

JSFiddle link (or similar platform):
https://jsfiddle.net/Lve1ousu/
The issue is that the Pathformer.prototype.rectToPath doesn't read the rx and ry values and translate them into the paths. I tried my hands at it, but i'm not very versed with the svg format.
I think this could potentially be of use.

Made some progress on this, roughly based off this inkscape code:
Pathformer.prototype.rectToPath = function (element) {
  var newElement = {},
      x      = parseFloat(element.x)      || 0,
      y      = parseFloat(element.y)      || 0,
      width  = parseFloat(element.width)  || 0,
      height = parseFloat(element.height) || 0;

  var rx = parseFloat(element.rx) || 0,
      ry = parseFloat(element.ry) || 0;

  if(rx !== 0 || ry !== 0) {
      // Try and render the border radius
      newElement.d = 'M ' + (x + rx) + ',' + y + ' ';
      newElement.d += 'L ' + (x + width - rx) + ',' + y + ' ';
      newElement.d += 'A ' + rx + ',' + ry + ',0,0,1,' + (x + width) + ',' + (y + ry) + ' ';
      newElement.d += 'L ' + (x + width) + ',' + (y + height - ry) + ' ';
      newElement.d += 'A ' + rx + ',' + ry + ',0,0,1,' + (x + width - rx) + ',' + (y + height) + ' ';
      newElement.d += 'L ' + (x + rx) + ',' + (y + height) + ' ';
      newElement.d += 'A ' + rx + ',' + ry + ',0,0,1,' + x + ',' + (y + height - ry) + ' ';
      newElement.d += 'L ' + x + ',' + (y + ry) + ' ';
      newElement.d += 'A ' + rx + ',' + ry + ',0,0,1,' + (x + rx) + ',' + y;
  } else {
      // Keep existing behaviour
      newElement.d  = 'M' + x + ' ' + y + ' ';
      newElement.d += 'L' + (x + width) + ' ' + y + ' ';
      newElement.d += 'L' + (x + width) + ' ' + (y + height) + ' ';
      newElement.d += 'L' + x + ' ' + (y + height) + ' Z';
  }
  return newElement;
};

The code seems to work for this simple shape, but doesn't work properly on one of my svgs.

👍
I think I was wondering the same thing but forgot about it. This is pretty important! Thanks for providing help and details. I'll try to implement and release it this weekend.
Many many thanks!

Thanks for putting in the fix!


Add Q# Copilot to VS Code Extension

Adds the Azure Quantum Copilot chat participant to the Copilot extension when both the Copilot extension and the QDK extension are installed. To select this chat participant in the chat window, use @quantum at the start of the prompt. The participant has two commands: /quantumNotebook for quickly creating a Q# notebook, and /samples followed by the name of a Q# sample to have the chat-bot explain the given sample (to list available samples, provide no argument).

This PR has become stale. Will reopen in the future if this feature becomes viable.


!whereis can be misused by players on Survival / PvP servers

(Originally reported here: rubenwardy/capturetheflag#107)
I suggest restricting !whereis to chan OPs if possible.
Will work on implementing this if approved.

I've been thinking about removing that command. I'll accept a PR.

In my opinion, !whereis is still useful for server staff... Shall I try to restrict that command to chan OPs as mentioned in my previous comment?

Sure.

definitely worth doing

Figured out how to get it to work, but I'm facing a (minor?) issue:

irc.conn.channels[irc.config.channel] contains a table of users in the channel, called users.
Each user in the table is indexed by their nick (user.nick), and stores an access table, with boolean flags for user-mode +o and +v.
The issue here is that the user's access table users[user.nick].access is empty. Am I missing something? Do I have to invoke some sort of an update function before accessing the table?

User tracking is enabled by default.

If tracking is set to true by default (and it really is enabled, I checked), then this most likely is an upstream bug.
I initially did plan on using OnUserMode callback. I'll see if that works...

How about removing this command from irc altogether. Commands like these should ideally be a part of MT itself.
minetest/minetest#7677 :)

I've abandoned this and the aforementioned PR in MT has been rejected. Anyone else interested is welcome to take this up.


[fontconfig] x64-windows-static-md build failure

Host Environment

OS: Windows
Compiler: MSVC (Visual studio 16.8)

To Reproduce
Steps to reproduce the behavior:
./vcpkg install fontconfig:x64-windows-static-md
Failure logs
The build first fails on pthread compilation for x64-windows-static-md which is  a somewhat newer dependency introduced in the last month or so.
Upon removing the dependency from the CONTROl the build fails on
make[3]: Entering directory '/cygdrive/s/vcpkg.2020.11.12/vcpkg/buildtrees/fontconfig/x64-windows-static-md-dbg/fc-case'
Makefile:669: update target 'fccase.h' due to: fccase.tmpl.h fc-case.c CaseFolding.txt
/usr/bin/make ./fc-case.exe && \
rm -f fccase.h && \
./fc-case.exe ./CaseFolding.txt < fccase.tmpl.h > fccase.h.tmp && \
mv fccase.h.tmp fccase.h || ( rm -f fccase.h.tmp && false )
make[4]: Entering directory '/cygdrive/s/vcpkg.2020.11.12/vcpkg/buildtrees/fontconfig/x64-windows-static-md-dbg/fc-case'
Makefile:666: update target 'fc-case.exe' due to: fc-case.c fcalias.h fcaliastail.h
compile cl.exe -o ./fc-case.exe fc-case.c -I. -I. -I../src -I../src -I.. -I.. -DHAVE_CONFIG_H  -lintl -liconv
fc-case.c
Microsoft (R) Incremental Linker Version 14.28.29334.0
Copyright (C) Microsoft Corporation.  All rights reserved.

/out:./fc-case.exe
fc-case.obj
S:/vcpkg.2020.11.12/vcpkg/installed/x64-windows-static-md/debug/lib//intl.lib
S:/vcpkg.2020.11.12/vcpkg/installed/x64-windows-static-md/debug/lib//iconv.lib
   Creating library .\fc-case.lib and object .\fc-case.exp
LINK : warning LNK4098: defaultlib 'MSVCRTD' conflicts with use of other libs; use /NODEFAULTLIB:library
LINK : warning LNK4217: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'intl.lib(printf.obj)' in function 'printf_parse'
LINK : warning LNK4217: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'intl.lib(printf.obj)' in function 'printf_parse'
LINK : warning LNK4217: symbol 'realloc' defined in 'libucrt.lib(realloc.obj)' is imported by 'intl.lib(printf.obj)' in function 'printf_parse'
LINK : warning LNK4217: symbol '__acrt_iob_func' defined in 'libucrt.lib(_file.obj)' is imported by 'intl.lib(printf.obj)' in function 'libintl_vprintf'
LINK : warning LNK4217: symbol 'fwrite' defined in 'libucrt.lib(fwrite.obj)' is imported by 'intl.lib(printf.obj)' in function 'libintl_vfprintf'
LINK : warning LNK4217: symbol '__stdio_common_vsprintf' defined in 'libucrt.lib(output.obj)' is imported by 'intl.lib(printf.obj)' in function '_vsnprintf_l'
LINK : warning LNK4217: symbol '_errno' defined in 'libucrt.lib(errno.obj)' is imported by 'intl.lib(printf.obj)' in function 'printf_parse'
LINK : warning LNK4217: symbol 'abort' defined in 'libucrt.lib(abort.obj)' is imported by 'intl.lib(printf.obj)' in function 'libintl_vasnprintf'
LINK : warning LNK4217: symbol '___mb_cur_max_func' defined in 'libucrt.lib(initctype.obj)' is imported by 'intl.lib(printf.obj)' in function 'max_room_needed'
LINK : warning LNK4217: symbol 'wcslen' defined in 'libucrt.lib(strnlen.obj)' is imported by 'intl.lib(printf.obj)' in function 'libintl_vasnprintf'
LINK : warning LNK4217: symbol 'strnlen' defined in 'libucrt.lib(strnlen.obj)' is imported by 'intl.lib(printf.obj)' in function 'max_room_needed'
intl.lib(printf.obj) : error LNK2019: unresolved external symbol __imp_wcrtomb referenced in function libintl_vasnprintf
.\fc-case.exe : fatal error LNK1120: 1 unresolved externals
make[4]: Leaving directory '/cygdrive/s/vcpkg.2020.11.12/vcpkg/buildtrees/fontconfig/x64-windows-static-md-dbg/fc-case'
make[3]: Leaving directory '/cygdrive/s/vcpkg.2020.11.12/vcpkg/buildtrees/fontconfig/x64-windows-static-md-dbg/fc-case'
make[2]: Leaving directory '/cygdrive/s/vcpkg.2020.11.12/vcpkg/buildtrees/fontconfig/x64-windows-static-md-dbg/fc-case'
make[1]: Leaving directory '/cygdrive/s/vcpkg.2020.11.12/vcpkg/buildtrees/fontconfig/x64-windows-static-md-dbg'

I could install this port successfully with the latest vcpkg 2021-12-09-724cea8b33cbf06c645f5095fa29773697da9761. Could you please have a try?

Cant repro with latest commits


Add AnimatedSprite2D/3D pause() & change stop()

See https://github.com/godotengine/godot/pull/56645#issuecomment-1253515208 and https://github.com/godotengine/godot/pull/56645#issuecomment-1254686360 (I'm aware it's AnimationPlayer but the three classes are fairly similar)
Supersedes #65986 (because it is incorporated).
In this PR, for AnimatedSprite2D and AnimatedSprite3D:
Changes the behaviour of setting playing to false to be like #65986. That is, elapsed frame time is also preserved when pausing, which means pausing and playing animations intermittently now shows to consistent timings.
The new method pause() acts as an alias to setting playing to false (very akin to CanvasItem.hide()). It's what stop() was before.
stop() now pauses and restarts the current animation from the beginning.

(It also conveniently matches Tween's API)

Superseded by #71907.


Adds gulp and node configuration for Gradle to manage the lifecycle o…

…f our js files, sass files...

retest this please


Implement textDocument/openDocument

Changes
Implement handing of the openDocument agent call.
Test plan

Generate new unit test using Edit commands
Browse other files
Generate more tests for the same file
Generate tests for other file

Also

Test if autocompletion works
Check if chat see context from custom files, also opened from outsisde of the workspace

@pkukielka , I'm unsure what the state of this is... could you rebase this, take a look at @olafurpg 's feedback, and we'll take a look at it?
Nit: spelling in the test plan, outsisde

Replaced by https://github.com/sourcegraph/jetbrains/pull/1903


Use bignum static constants instead of BN_bin2bn()

keep consistent with bn_dh.c bn_nist.c bn_srp.c

rather than  cut/paste and duplicate the bn_pack macros, they should be put into one place in bn_lcl.h and used everywhere consistently.

@richsalz  bn_srp.c defined the bn_pack4 macro, but I think bn_pack2 marco should work well. How to make them consistent and then put into bn_lcl.h.This is my first try to contribute to openssl, so any word helps me. Thank you.

Post to openssl-dev; good questions.


add websocket support

Addresses #12. For temporary websocket support we could do something like this, simply using the websockets module.

I guess one concern would be maintaining backward compatibility once we've implemented our own solution. However I think we can issue a deprecation statement leading up to our eventual transition to a different API.

Would this be better served as an extension?

Well, it seems it already exists as an extension. I just think providing an intuitive interface would help users. As opposed to overloading the before_start function with many use cases, as we've been advising people to. That seems sloppy to me.
However, I'm thinking it would make sense to add a general method, like:
app.ensure_future(task)

This would allow you to do:
import websockets
import random
import datetime
from sanic import Sanic
from sanic.response import text

async def time(websocket, path):
    while True:
        now = datetime.datetime.utcnow().isoformat() + 'Z'
        await websocket.send(now)
        await asyncio.sleep(random.random() * 3)

start_server = websockets.serve(time, '<IP_ADDRESS>', 5678)
app = Sanic()
app.ensure_future(start_server)
@app.get()
def hello(request):
    return text('OK')

app.run()

@seemethere would you be able to get behind that instead?

https://github.com/r0fls/sanic-websockets/tree/master