Publish to PyPI

this task

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@2043347). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master       #5   +/-   ##
=========================================
  Coverage          ?   98.38%
=========================================
  Files             ?        3
  Lines             ?       62
  Branches          ?        0
=========================================
  Hits              ?       61
  Misses            ?        1
  Partials          ?        0

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2043347...8a128dd. Read the comment docs.


Upgrade to latest snmp gem.

Resolves https://github.com/ManageIQ/manageiq/issues/3483

How did you test this?  Do we know what components use it?  I only ask because it's highly unlikely we have specs for whatever uses this since it's from very early on.

@Fryguy good catch, i was leaning on the spec suite, so we could probably say that I haven't tested this then :) any pointers?

@gmcculloug @gtanzillo @jrafanie Any thoughts on where else we might use the snmp gem, and/or how @imtayadeway can test this or add specs?
From a quick git grep I see we use it in app/models/miq_snmp.rb, which doesn't have specs, but is used in policy:
$ git grep MiqSnmp
app/controllers/miq_policy_controller/alerts.rb:347:    @edit[:snmp_var_types] = MiqSnmp.available_types
app/controllers/miq_policy_controller/miq_actions.rb:171:    @edit[:snmp_var_types] = MiqSnmp.available_types
app/models/miq_action.rb:285:      MiqSnmp.send(method_name, snmp_inputs)
app/models/miq_action.rb:289:        :class_name  => "MiqSnmp",
app/models/miq_snmp.rb:3:class MiqSnmp
app/models/miq_snmp.rb:29:    raise MiqException::Error,"MiqSnmp.trap_v1: Ensure that enterprise OID is provided" if enterprise.
app/models/miq_snmp.rb:33:    raise MiqException::Error,"MiqSnmp.trap_v1: Ensure that server.host is configured properly in your
app/models/miq_snmp.rb:45:    raise MiqException::Error,"MiqSnmp.trap_v1: Ensure that specific trap is provided" if specific_tra
app/models/miq_snmp.rb:49:    vars = MiqSnmp.create_var_bind_list(object_list)
app/models/miq_snmp.rb:70:    raise MiqException::Error,"MiqSnmp.trap_v2: Ensure that a trap object id is provided" if trap_oid.
app/models/miq_snmp.rb:71:    trap_oid = MiqSnmp.subst_oid(trap_oid)
app/models/miq_snmp.rb:75:    vars = MiqSnmp.create_var_bind_list(object_list, trap_oid)
app/models/miq_snmp.rb:103:      oid      = MiqSnmp.subst_oid(tuple[:oid], base)
app/models/miq_snmp.rb:117:    base = MiqSnmp.enterprise_oid_string if base.nil?
app/models/miq_snmp.rb:124:    when "info"                         then "#{MiqSnmp.enterprise_oid_string}.1"
app/models/miq_snmp.rb:125:    when "warn", "warning"              then "#{MiqSnmp.enterprise_oid_string}.2"
app/models/miq_snmp.rb:126:    when "crit", "critical", "error"    then "#{MiqSnmp.enterprise_oid_string}.3"
lib/miq_automation_engine/service_models/miq_ae_service_methods.rb:31:          MiqSnmp.trap_v1(inputs)
lib/miq_automation_engine/service_models/miq_ae_service_methods.rb:34:            :class_name  => "MiqSnmp",
lib/miq_automation_engine/service_models/miq_ae_service_methods.rb:48:          MiqSnmp.trap_v2(inputs)
lib/miq_automation_engine/service_models/miq_ae_service_methods.rb:51:            :class_name  => "MiqSnmp",
spec/lib/miq_automation_engine/service_methods/miq_ae_service_methods_spec.rb:64:        MiqSnmp.should_receive(:trap_v1).with(i
spec/lib/miq_automation_engine/service_methods/miq_ae_service_methods_spec.rb:71:          :class_name  => "MiqSnmp",
spec/lib/miq_automation_engine/service_methods/miq_ae_service_methods_spec.rb:89:        MiqSnmp.should_receive(:trap_v2).with(i
spec/lib/miq_automation_engine/service_methods/miq_ae_service_methods_spec.rb:96:          :class_name  => "MiqSnmp",

@Fryguy I do recall that we added to support sending an snmp trap as a policy action. I have no idea if and how we tested, though. Need to see it we have something existing in the env. Maybe @brandondunne can help.

FWIW, the only changes listed for the minor version bump are change of license and the dropping of ruby 1.8 support:
https://github.com/hallidave/ruby-snmp#changes


chore: 0.19.0 release proposal

:boom: Breaking Change

opentelemetry-core, opentelemetry-tracing

#2098 chore(env): update default value for span's attributes/links/events count #1675 (@vmarchaud)

opentelemetry-instrumentation-fetch, opentelemetry-instrumentation-grpc, opentelemetry-instrumentation-http, opentelemetry-instrumentation-xml-http-request, opentelemetry-semantic-conventions, opentelemetry-tracing, opentelemetry-web

#2083 feat: add semconv generator for semantic-conventions-package (@weyert)

opentelemetry-core, opentelemetry-grpc-utils, opentelemetry-instrumentation-fetch, opentelemetry-instrumentation-grpc, opentelemetry-instrumentation-http, opentelemetry-instrumentation-xml-http-request, opentelemetry-instrumentation, opentelemetry-node, opentelemetry-plugin-grpc-js, opentelemetry-plugin-grpc, opentelemetry-plugin-http, opentelemetry-plugin-https, opentelemetry-sdk-node, opentelemetry-web

#2081 remove plugins (@obecny)

opentelemetry-api-metrics, opentelemetry-context-async-hooks, opentelemetry-context-zone-peer-dep, opentelemetry-core, opentelemetry-exporter-collector-grpc, opentelemetry-exporter-collector-proto, opentelemetry-exporter-collector, opentelemetry-exporter-jaeger, opentelemetry-exporter-prometheus, opentelemetry-exporter-zipkin, opentelemetry-grpc-utils, opentelemetry-instrumentation-fetch, opentelemetry-instrumentation-grpc, opentelemetry-instrumentation-http, opentelemetry-instrumentation-xml-http-request, opentelemetry-instrumentation, opentelemetry-metrics, opentelemetry-node, opentelemetry-plugin-grpc-js, opentelemetry-plugin-grpc, opentelemetry-plugin-http, opentelemetry-plugin-https, opentelemetry-propagator-b3, opentelemetry-propagator-jaeger, opentelemetry-resource-detector-aws, opentelemetry-resource-detector-gcp, opentelemetry-resources, opentelemetry-sdk-node, opentelemetry-shim-opentracing, opentelemetry-tracing, opentelemetry-web

#2074 chore: peer depend on API (@dyladan)
#2063 chore: update API dependency to 1.0.0-rc.0 (@dyladan)

opentelemetry-core, opentelemetry-propagator-b3

#2054 refactor: simplify b3 options (@mwear)

:rocket: (Enhancement)

opentelemetry-core, opentelemetry-exporter-zipkin

#2097 feat(zipkin): allow to configure url via environment #1675 (@vmarchaud)

opentelemetry-exporter-zipkin

#2050 chore: adding interceptor for getting headers before each request (@obecny)

opentelemetry-exporter-collector-grpc

#2092 Migrate exporter-collector-grpc to grpc-js (@obecny)

opentelemetry-instrumentation-http

#2043 chore: avoid unneeded context.with in http instrumentation (@Flarna)

opentelemetry-instrumentation-fetch, opentelemetry-instrumentation-xml-http-request

#2061 chore: adding info to debug whenever headers are being skipped due to cors policy (@obecny)

:bug: (Bug Fix)

opentelemetry-instrumentation-http, opentelemetry-tracing

#2105 fix: don't use spanId from invalid parent (@Flarna)

opentelemetry-context-async-hooks

#2088 fix: correct removeAllListeners in case no event is passed (@Flarna)

opentelemetry-resource-detector-aws

#2076 fix: await http response in AWS EKS detector (@vreynolds)

opentelemetry-core, opentelemetry-propagator-b3, opentelemetry-propagator-jaeger

#2082 chore: do not inject span context when instrumentation is suppressed (@dyladan)

opentelemetry-core

#2080 fix: do not inject invalid span context (@dyladan)

opentelemetry-tracing

#2086 fix: exception.type should always be a string (@YanivD)

opentelemetry-propagator-jaeger

#1986 fix(propagator-jaeger): zero pad extracted trace id to 32 characters (@sid-maddy)

:books: (Refine Doc)

#2094 chore: fixing readme info (@obecny)
#2051 Add opentelemetry.io docs (@austinlparker)

:house: (Internal)

opentelemetry-exporter-collector-grpc, opentelemetry-metrics, opentelemetry-tracing

#1780 chore: no-floating-promises (@naseemkullah)

opentelemetry-context-zone, opentelemetry-core, opentelemetry-exporter-collector-grpc, opentelemetry-exporter-collector-proto, opentelemetry-exporter-collector, opentelemetry-exporter-jaeger, opentelemetry-exporter-prometheus, opentelemetry-exporter-zipkin, opentelemetry-instrumentation-fetch, opentelemetry-instrumentation-grpc, opentelemetry-instrumentation-http, opentelemetry-instrumentation-xml-http-request, opentelemetry-instrumentation, opentelemetry-metrics, opentelemetry-node, opentelemetry-propagator-jaeger, opentelemetry-resource-detector-aws, opentelemetry-resource-detector-gcp, opentelemetry-resources, opentelemetry-sdk-node, opentelemetry-shim-opentracing, opentelemetry-tracing, opentelemetry-web

#2073 chore: pin own deps (@dyladan)

Committers: 13

Austin Parker (@austinlparker)
Bartlomiej Obecny (@obecny)
Daniel Dyla (@dyladan)
Gerhard Stöbich (@Flarna)
Jakub Malinowski (@jtmalinowski)
Matthew Wear (@mwear)
Naseem (@naseemkullah)
Niek Kruse (@niekert)
Siddhesh Mhadnak (@sid-maddy)
Valentin Marchaud (@vmarchaud)
Vera Reynolds (@vreynolds)
Weyert de Boer (@weyert)
Yaniv Davidi (@YanivD)

Should we do a API 1.0.0-rc.1 first which includes the breaking change https://github.com/open-telemetry/opentelemetry-js-api/pull/32 first?

Should we do a API 1.0.0-rc.1 first which includes the breaking change open-telemetry/opentelemetry-js-api#32 first?

I would personaly prefer to do a first release without plugins and update this afterwards

We did the same with the API. We released a 0.x version, then immediately released a 1.0.0-rc.0

I'm fine with either way. Not sure anyway if breaking changes between -rc.0 and -rc.1 need to be really consider as breaking - they are dev versions.

@open-telemetry/javascript-approvers @open-telemetry/javascript-maintainers

Some points to consider:

Update Compatibility Matrix in Readme
I think we should mention that API is now a peer dependency in upgrade guidelines of readme
Merge master + regenerate changelog

Done thanks


Can't select items when canvas is in preview mode

Describe the bug
We used to be able to select items on the canvas when the canvas was in preview mode, using cmd. This still works for scenes, but no longer for elements.
To Reproduce

Insert div with content into a new project
Enter canvas preview mode
hold down cmd and hover over the div

Result: It doesn't highlight, it doesn't get selected on click
Expected behaviour
It highlights and gets selected on click, while holding down cmd only

@balazsbajorics might this have regressed when we moved to the non-computed targeting?

@balazsbajorics might this have regressed when we moved to the non-computed targeting?

yep, it is very likely that I broke this!

Closed by #949


backup tables only

How may I setup config to perform only a backup of a Table to a local file?
It seems that it fails if I don't provide every option in appsettings..
thanks

Good catch, sorry about that.  I hadn't tested with empty config options.   I'll keep this open as a reminder to tweak the code to allow for missing parms from the file.  In the meantime here's an example which will create a backup on a local file, replace the info between the "<<>>" for your environment.  Anything in empty quotes can remain in empty quotes.
{
  "ConnectionStrings": {
    "AzureStorageConfigConnection": "<<endpointinfohere>>",
    "AzureStorageDestinationConfigConnection": "",
    "AzureBlobStorageConfigConnection": "<<endpointinfohere>>"
  },
  "Command": "backup",
  "Target": "ToFile",
  "TableName": "<<TableName>>",
  "DestinationTableName": "",
  "OriginalTableName": "",
  "BlobRoot": "",
  "BlobFileName": "",
  "WorkingDirectory": "",
  "OutFileDirectory": "<<outputdirectory>>",
  "RestoreFileNamePath": "",
  "Compress": "",
  "Validate": "",
  "RetentionDays": "",
  "TimeoutSeconds": "30",
  "Filters": [],
  "InFilePathName": ""
}

Sorry for long delay: I can confirm that I can backup tables.
I'm also upgraded to .NET 6, I will push ASAP
thanls


Idea collector: Configuration System

Abstract
We currently have a lot of magic numbers for things like buffer sizes, number of ports, etc. We also don't particularly provide any guidance for what these numbers should be. In the immediate future, it would be good to have one central "config" table that can be used across the system for setting (and viewing the settings of) these values, even if the values are "baked in" at compile time.
Future Features
In the future, we might want to have other neat features, such as:

Layering of configs, so you can say "gimme all the defaults BUT change/add these"
Loading from a file from disk at boot, instead of only at compile time
Potentially changing these settings at runtime, if we ever do/want to support hot-reloading of services, so you can edit a config file, and restart a service

I think feature wise we'll probably also want some kind of namespacing, so we can get specific config values, like "sermux outgoing frame size".
Possible Approaches
I think there's a few main stylistic ways to go about this:
Option 1/N
Go all strings, using a very simple key:value system, where all settings are basically &[(&str, &str)]. Probably the simplest to write, pushes all the parsing + validation down to the consumers of the settings. We could potentially take a JSON or TOML at compile time and convert it to the "settings array" with a build-rs or something.
example for sermux:
cfg = [
    ("services/54c983fa-736f-4223-b90d-c4360a308647/max_frame", "512"),
    // ...
];

Option 2/N
Keep simple string keys + array of tuples, but also support a limited number of primitive "value" types, such as u8, i32, usize, str, etc. Could probably be used mostly the same as Option 1, but gives a little more type safety, but still there is a potential for "we wanted a u8 but got an i32, what do?".
example for sermux:
cfg = [
    ("services/54c983fa-736f-4223-b90d-c4360a308647/max_frame", CfgVal::usize(512)),
    // ...
];

Option 3/N
Allow for some kind of namespace schema, possibly not for ALL namespaces, but for some. This might require adding a Settings parameter to the RegisteredService trait, which we've talked about informally before. I'm not sure how to do this best, but we could likely rely on serde (with JSON/TOML/YAML/Postcard backends) for decoding.
example for sermux:
cfg.add_service_cfg<SerialMuxService>(SerialMuxSettings {
    max_ports: 16,
    max_frame: 512,
});

Open questions:

How would this work for NON service items, like user apps? Do they have to "fall back" to stringly typed data? Is there some non-service way of adding configs?
How to handle "array of Any types?", something like BoH? Keep it serialized (as a Vec<u8>) and deser on demand?

Other Options
Some other way? something like kconfig? Something with a lot of cursed proc macros like clap with complicated validation capabilities?
Implementation and future
Whatever this is, it probably needs to exist at the kernel and/or global level, rather than just as part of the registry, as users will likely want to use the same single config system for app and daemon configuration as well.
There might also be fun design challenges around runtime-loading: we might require an fs service to be running to load the config from disk, but then how can we configure the fs service? At the moment the kernel has no "service dependencies", the only required capabilities are the allocator and the timers running (before first tick), and getting configuration for (at least) all other services might require (for example) launching an SDIO service (at the hardware level), then an fs service that sits on top of that. This doesn't need to be solved for v1 though.

I'm strongly +1 on the need for something like this, it would be really nice not to have ad-hoc config values scattered all over the place.
This could be a good project for someone who's interested in getting more involved in mnemOS development, since it:

touches a lot of different parts of the project, and exposes you to lots of different components
is a decently large chunk of work
doesn't require a really deep knowledge of our hardware targets
I really want to have it but I also have a bunch of other stuff in my queue right now (and i imagine @jamesmunns does too)

In any case, this feels like a big enough piece of design work that it might be smart to start off with an (informal) RFC before implementing it, so that the design is documented up front.

In any case, this feels like a big enough piece of design work that it might be smart to start off with an (informal) RFC before implementing it, so that the design is documented up front.

This is kind of the pre-rfc for that :D

This is kind of the pre-rfc for that :D

yup, i figured! :) just thought it would be good to make sure the final design gets written down.

i wonder if @jamesmunns' toml-config crate would be a good fit for this...

another thought (whoops, now i'm a bit nerdsniped)...we could probably add something to the RegisteredDriver trait to define its config key, and perhaps also its confit type. something like:
pub trait RegisteredDriver {
    const CONFIG_KEY: &'static str;
    type Config: serde::Deserialize + Default;
    // rest of the trait goes here
}

then, you could just have an API like
impl RegisteredDriver for SerialMuxService {
    type Config = SerialMuxSettings;
    // ...
}

kernel.get_config::<SerialMuxService>() // returns SerialMuxSettings

i guess this wouldn't even need to be part of RegisteredDriver, it could be a whole separate trait, too, if that made more sense.


⚠ Bofrost.de has degraded performance

In fde38cc, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1571 ms

Resolved: Bofrost.de performance has improved in 55d1ad9 after 7 minutes.


Used more specific link to email backends in EMAIL_BACKEND docs.

Just a tiny change of link (same page but with a more specific target on the page). I figured no ticket was needed for such a small change.
I also used git grep /topics/email -- docs to check if other links could be improved the same way, but it seems this was the only instance.

@bmispelon Thanks :+1:


Update init.lua

Fixing issue where mimolite garage doors would not close.
Door would close if smartthings showed as 'closed' when button was pushed - Momentary switch would be turned on.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

I am going to close this PR as I believe this was resolved else where. If I am mistaken we can reopen.


Improve tests

Improved robustness by adding cleanup of reviews to relevant tests
Simplified some code to showcase built-in functionality (e.g. toJson())

See test failures here: https://github.com/SAP-samples/cloud-cap-samples-java/pull/70/checks?check_run_id=2186977759


question

You have done a  great work, and I want to know what data does the MCC get and What is the corresponding paper in IEEE Transactions on Neural Systems and Rehabilitation Engineering.

Hi, thanks for reaching out. This repository is a convenience library for streaming data from the Trigno Control Utility (TCU) for the Delsys Trigno EMG system. TCU is basically a small program that exposes the data from the EMG system to a TCP port, and pytrigno streams this data and makes it available as numpy arrays. pymcc provides the same interface for a Measurement Computing DAQ. I'll write a bit about the interface here, but it needs to be documented generally somewhere. The intent of both projects is to be middleware between different hardware devices and AxoPy, which is a package I'm still working on.
The IEEE paper is here, and pygesture is the correct repository to look at for the actual code used in the experiments in that paper (you'll notice that most of the code in pytrigno and pymcc is contained there, as well as lots of GUI code, processing code, etc.). AxoPy is intended to be a more general-purpose and improved version of pygesture, but it's a work in progress as I said.
The example script shows how to use the library. You create an object representing the device, passing in parameters that specify things like sample rate, channels to use, samples per update, etc. You can then poll for a buffer of samples periodically. I usually create a separate thread that repeatedly requests data from the device and connect the incoming arrays of data to a callback in a graphical user interface program. In any case, this is basically how it works:
import pytrigno

# local device with channels 0-15, 200 samples per update
# (10 Hz update rate with 2 kHz sample rate)
dev = pytrigno.TrignoEMG((0, 15), 200)
# tell the device to start recording
dev.start()
# request samples (blocking call!), numpy array with shape (16, 200)
data = dev.read()
# shut down connection
dev.stop()

Hello! I am doing EMG signal processing work currently, and I want to save data and draw waveforms in real time. I try to understand your work，the axopy. However, it’s hard to me. I will be very grateful if you can give me some advice how to use Axopy. Thank you!
发送自 Windows 10 版邮件应用
发件人: Kenneth Lyons
发送时间: 2018年4月1日 11:56
收件人: ucdrascal/pytrigno
抄送: Qi Shuhao; Author
主题: Re: [ucdrascal/pytrigno] question (#1)
Hi, thanks for reaching out. This repository is a convenience library for streaming data from the Trigno Control Utility (TCU) for the Delsys Trigno EMG system. TCU is basically a small program that exposes the data from the EMG system to a TCP port, and pytrigno streams this data and makes it available as numpy arrays. pymcc provides the same interface for a Measurement Computing DAQ. I'll write a bit about the interface here, but it needs to be documented generally somewhere. The intent of both projects is to be middleware between different hardware devices and AxoPy, which is a package I'm still working on.
The IEEE paper is here, and pygesture is the correct repository to look at for the actual code used in the experiments in that paper (you'll notice that most of the code in pytrigno and pymcc is contained there, as well as lots of GUI code, processing code, etc.). AxoPy is intended to be a more general-purpose and improved version of pygesture, but it's a work in progress as I said.
The example script shows how to use the library. You create an object representing the device, passing in parameters that specify things like sample rate, channels to use, samples per update, etc. You can then poll for a buffer of samples periodically. I usually create a separate thread that repeatedly requests data from the device and connect the incoming arrays of data to a callback in a graphical user interface program. In any case, this is basically how it works:
import pytrigno
local device with channels 0-15, 200 samples per update
(10 Hz update rate with 2 kHz sample rate)
dev = pytrigno.TrignoEMG((0, 15), 200)
tell the device to start recording
dev.start()
request samples (blocking call!), numpy array with shape (16, 200)
data = dev.read()
shut down connection
dev.stop()
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

Closing this, since the question seems to be more about AxoPy. The docs there are still in rough shape, but I'm hoping to improve situation soon. Feel free to file an issue there if you're experiencing problems.


v2.5.0 rc0

Checklist

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

Tests a possible release candidate in line with #34. This one is pre the changes related to hpb.so copying.

@conda-forge-admin, please rerender

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe/meta.yaml) and found it was in an excellent condition.
I do have some suggestions for making it better though...
For recipe/meta.yaml:

ℹ noarch: python recipes should usually follow the syntax in our documentation for specifying the Python version.

For the host section of the recipe, you should usually use python {{ python_min }} for the python entry.
For the run section of the recipe, you should usually use python >={{ python_min }} for the python entry.
For the test.requires section of the recipe, you should usually use python {{ python_min }} for the python entry.
If the package requires a newer Python version than the currently supported minimum version on conda-forge, you can override the python_min variable by adding a Jinja2 set statement at the top of your recipe (or using an equivalent context variable for v1 recipes).

This message was generated by GitHub Actions workflow run https://github.com/conda-forge/conda-forge-webservices/actions/runs/12315841849. Examine the logs at this URL for more detail.


Lime explanation does not match the number of classes

Hi, I have built a text classification model that classifies input into two classes. When I apply Lime to the model, the output contains prediction probabilities for more than two classes. In addition, probabilities for all classes are 1.0. What went wrong?

what's the output of your function for x=['john is a man', 'mary is a woman']?


Does Android Tool support fastboot commands?

I'm trying to flash a device using flashboot commands and I thought it would be handy to import this into android tool as an easy place to save and execute it. However, the fastboot flashall -w command doesn't seem to be running, or the script is getting cutoff to early and the system never picks up on the new build.
Any ideas?

What does the debug console output show?

I'm not sure how to enable that, is that something that Android Tool supports?

Yes - right here

Awesome! Thanks for the screenshot. At the end of the output it spits this out
/Users/davidthacker/Library/Application Support/AndroidTool/UserScripts/flash-build.sh: line 11: fastboot: command not found

So it looks like it isn't able to use fastboot.

ah, the scripts run without your environments vars, like PATH. You could try something like bash -l -c fastboot [args]
Or alternatively, simply specify the full path to fastboot like /usr/local/bin/fastboot [vars]. To find out where fastboot is, do a which fastboot from Terminal


WFLY-497 [BZ-1196790] Infinispan: deprecate references (cache-container ...

...and its transport executors) to threads subsystem
Upstream of https://github.com/jbossas/jboss-eap/pull/2331.

Linux Build 5987 is now running using a merge of bcb7faaf0941c98c9e7264ac58b5195836d338f8

Linux with security manager Build 966 is now running using a merge of bcb7faaf0941c98c9e7264ac58b5195836d338f8

Windows Build 1100 is now running using a merge of bcb7faaf0941c98c9e7264ac58b5195836d338f8

Linux with security manager Build 966 outcome was SUCCESS using a merge of bcb7faaf0941c98c9e7264ac58b5195836d338f8
Summary: Tests passed: 840, ignored: 319 Build time: 0:04:59

Linux Build 5987 outcome was SUCCESS using a merge of bcb7faaf0941c98c9e7264ac58b5195836d338f8
Summary: Tests passed: 2929, ignored: 314 Build time: 0:47:25

Windows Build 1100 outcome was FAILURE using a merge of bcb7faaf0941c98c9e7264ac58b5195836d338f8
Summary: Tests failed: 1 (1 new), passed: 2928, ignored: 314 Build time: 0:47:43
Build problems:
Failed tests detected
Failed tests
org.jboss.as.test.integration.ejb.stateful.passivation.PassivationTestCase.testPassivationMaxSize: javax.ejb.EJBException: java.lang.IllegalStateException: WFLYCLEJBINF0008: Stateful session bean {[-35, -121, 87, -5, -16, 56, 70, 95, -95, -86, -93, 111, 24, 94, -92, 118]} refers to an invalid bean group e01d5a83-6d3a-41ef-b799-c8d73ea14c38
	at org.wildfly.clustering.ejb.infinispan.bean.InfinispanBeanFactory.createBean(InfinispanBeanFactory.java:76)
	at org.wildfly.clustering.ejb.infinispan.InfinispanBeanManager.findBean(InfinispanBeanManager.java:266)

Retest this please.

Linux Build 6012 is now running using a merge of bcb7faaf0941c98c9e7264ac58b5195836d338f8

Linux with security manager Build 991 is now running using a merge of bcb7faaf0941c98c9e7264ac58b5195836d338f8

Windows Build 1125 is now running using a merge of bcb7faaf0941c98c9e7264ac58b5195836d338f8

Linux with security manager Build 991 outcome was SUCCESS using a merge of bcb7faaf0941c98c9e7264ac58b5195836d338f8
Summary: Tests passed: 840, ignored: 319 Build time: 0:04:59

Linux Build 6012 outcome was SUCCESS using a merge of bcb7faaf0941c98c9e7264ac58b5195836d338f8
Summary: Tests passed: 2929, ignored: 314 Build time: 0:47:11

Windows Build 1125 outcome was SUCCESS using a merge of bcb7faaf0941c98c9e7264ac58b5195836d338f8
Summary: Tests passed: 2929, ignored: 314 Build time: 0:47:55

EAP PR seems to be merged already.

I'm sorting with @kabir whether the deprectation version should be the the EAP 6.4 version.


Adding Strandard and Express Delivary options in the Payment

Is your feature request related to a problem? Please describe.

The current checkout page lacks a way to display and update shipping costs dynamically based on the selected shipping method. This could lead to confusion for users about the final total cost of their purchase.
Describe the solution you'd like

I have implemented a feature that dynamically updates the shipping cost in the "Your cart" section based on the user's selected shipping method. If "Standard Shipping" is selected, the cost is displayed as "Free". If "Express Shipping" is selected, the cost is displayed as "85 INR". The total cost is updated accordingly.
Additionally, the code is already prepared and ready for implementation, I kindly request to be assigned to this task.
Describe alternatives you've considered

An alternative could be to list the shipping costs in the "Billing address" section without updating the cart dynamically. However, this might not provide a clear and immediate update to the user about the total cost, leading to user confusion.
Demo Video/Screenshot (Mandatory )
Standard Delivery

Express Delivery

Are you contributing under any open-source program ?

I am a part of GSSoC 2024

@aryan-1309  Thanks for your enthusiasm! It's awesome that you're eager to contribute. Just to clarify, I'm already on it and excited to tackle this issue and the code part is also ready. Let's collaborate on future tasks! 😊👍

@coderiksenthil u are assigned.

Thank You @apu52 for assigning me the task🙂


Generally beautify the user experience for running cctools installer

throw an error if required environment variable isn't set.
make script executable
remove bash from travis invocation because script has a shebang

This was merged as part of #1210


Portal and site preview mode do not show up

Hello!
I installed the latest version of Ghost through Portainer app templates, defined the url environment to my domain.
View Site page, Portal, Site design pages do not show anyathing. What can be the problem?

Unfortunately, I'm going to suggest trying a dedicated support forum, such as the Docker Community Forums, the Docker Community Slack, or Stack Overflow.
When posting there, I'd suggest adding more detail; for example: Have you checked the container logs?  Made sure this image is actually the one used in the app template you deployed? (Perhaps you could include the template itself or details scraped from the cluster?)  There are a lot of things which could be wrong, but without quite a bit more detail it's going to be hard to help.

I can confirm that this does not work. @manox-myth have you solved it somehow?

Yes, I solved the problem with changing the environmental variable from http to https. Now it works like a charm! :)

Oh bummer, when i do that i get an redirect loop :/

If the two docker are linked, that should not be an issue. I use NPM also, but Ghost is on the same docker instance.
Do you use Portainer? Very handy tool, helps a lot, makes it way easier to check on logs and settings for docker images.

@manox-myth They are on a different docker ip address

But everything else is the same (it is on the same machine).
And yes i do use portainer and it is awesome, no idea what is causing the issue though.

Try and set the getaway address with your favored port, instead of its IP address.

@manox-myth Well when i set the url=http it does work and the reverse proxy does indeed make it resolve the specific domain via https (as the container with nginx proxy manager also generates the ssl), but the portal and site preview do not work at all + the email subscription that is unresponsive too...
When i try to switch it to  https as you said i get an redirect loop.
I really dont know what should be done as i tried quite a lot of stuff. (changing ports, modifing configs inside the ghost docker container etc.)

@manox-myth All i am getting in the logs when i set it to https is


[BUG] Clicking links through search-view breaks app

Clicking a link within the preview of a atlaskit note in search view redirects to the target within the electron container, with no way of getting back.

Fixed in v1.0.8

Fixed in v1.0.8


Replace load->extract with access chain and load.

If you run the following hlsl through DXC, you end up with a situation where you load all 32 elements of a just to extract one of them:
struct S {
  uint f;
};

cbuffer gBuffer { uint a[32]; };

RWStructuredBuffer<S> gRWSBuffer;

uint foo(uint p[32]) {
  return p[1];
}

[numthreads(1,1,1)]
void main() {
   gRWSBuffer[0].f = foo(a);
}

The resulting spir-v is:
               OpCapability Shader
               OpMemoryModel Logical GLSL450
               OpEntryPoint GLCompute %main "main"
               OpExecutionMode %main LocalSize 1 1 1
               OpSource HLSL 600
               OpName %type_gBuffer "type.gBuffer"
               OpMemberName %type_gBuffer 0 "a"
               OpName %gBuffer "gBuffer"
               OpName %S "S"
               OpMemberName %S 0 "f"
               OpName %type_RWStructuredBuffer_S "type.RWStructuredBuffer.S"
               OpName %gRWSBuffer "gRWSBuffer"
               OpName %main "main"
               OpDecorate %_arr_uint_uint_32 ArrayStride 16
               OpMemberDecorate %type_gBuffer 0 Offset 0
               OpDecorate %type_gBuffer Block
               OpMemberDecorate %S 0 Offset 0
               OpDecorate %_runtimearr_S ArrayStride 4
               OpMemberDecorate %type_RWStructuredBuffer_S 0 Offset 0
               OpDecorate %type_RWStructuredBuffer_S BufferBlock
               OpDecorate %gBuffer DescriptorSet 0
               OpDecorate %gBuffer Binding 0
               OpDecorate %gRWSBuffer DescriptorSet 0
               OpDecorate %gRWSBuffer Binding 1
       %uint = OpTypeInt 32 0
    %uint_32 = OpConstant %uint 32
%_arr_uint_uint_32 = OpTypeArray %uint %uint_32
%type_gBuffer = OpTypeStruct %_arr_uint_uint_32
%_ptr_Uniform_type_gBuffer = OpTypePointer Uniform %type_gBuffer
          %S = OpTypeStruct %uint
%_runtimearr_S = OpTypeRuntimeArray %S
%type_RWStructuredBuffer_S = OpTypeStruct %_runtimearr_S
%_ptr_Uniform_type_RWStructuredBuffer_S = OpTypePointer Uniform %type_RWStructuredBuffer_S
        %int = OpTypeInt 32 1
       %void = OpTypeVoid
         %15 = OpTypeFunction %void
      %int_0 = OpConstant %int 0
%_ptr_Uniform__arr_uint_uint_32 = OpTypePointer Uniform %_arr_uint_uint_32
     %uint_0 = OpConstant %uint 0
%_ptr_Uniform_uint = OpTypePointer Uniform %uint
    %gBuffer = OpVariable %_ptr_Uniform_type_gBuffer Uniform
 %gRWSBuffer = OpVariable %_ptr_Uniform_type_RWStructuredBuffer_S Uniform
       %main = OpFunction %void None %15
         %20 = OpLabel
         %21 = OpAccessChain %_ptr_Uniform__arr_uint_uint_32 %gBuffer %int_0
         %22 = OpLoad %_arr_uint_uint_32 %21    ; Load of 32-element array.
         %23 = OpCompositeExtract %uint %22 1
         %24 = OpAccessChain %_ptr_Uniform_uint %gRWSBuffer %int_0 %uint_0 %int_0
               OpStore %24 %23
               OpReturn
               OpFunctionEnd

We want to avoid the unnecessary loads.  This has two advantages:

Less memory is used and less data transferred when the driver does not do optimize it.
Some drivers do not accept loads of larger arrays of say 1,000 elements, so this has to be done in order to run those shaders.

The dxc command to build the example above is: dxc.exe -spirv -E main -T cs_6_0 t.hlsl -Fc t.spvasm.

I need to look at this one more carefully.  There was some discussion about local-access-chain in #1548.  However, now I have noticed that scalar replacement can cause the load of the entire array followed by an extract as well.
The code sequence is:
%75 = OpVariable %26 Function
...
OpStore %75 %110   ; %110 is a copy of the cbuffer.
%114 = OpAccessChain %33 %75 %32
%115 = OpLoad %17 %114

Local-access-chain convert will rewrite the OpAccessChain->OpLoad into an OpLoad->OpCompositeExtract.  However scalar replacement will split up the local arrays change the OpAccessChain->OpLoad into an OpLoad of a new scalar variable.  Then with other optimizations an already exisitng OpLoad->OpCompositeExtract that form part of %110 ends up sticking around.
If we want array copy propagation to work we have to make those OpCompositeExtracts or we will have to change have it recognize a new pattern for the an array copy.

@greg-lunarg  FYI.
Because there are two ways (that we know of) that can result in this code pattern, change the transformations that cause it does not seem wise.
We will implement a new pass that does this, instead of being in the folding routines.  This will make it easier to implement heuristics on when it is useful or not.  The other thing this does it that it can easily be controlled.  It can be turned off by not including that pass while still getting the rest of the simplifications in the folder.


Fix React syntax typo in README

Just a small change that corrects the React code example specified in the README.

Thanks!


Remove old feature flags

Overview
We want to remove the feature flags for

OnRamperFiatRamp
MtPelerinFiatRamp
RainbowCharts

References and additional details

An example of how to do this https://github.com/shapeshift/web/pull/2861

Acceptance Criteria

There are no remnants or dead code associated with these flags, including environment variables
All of these features still work as they currently do

Need By Date
n/a
Screenshots/Mockups

Ownership

[X] If my bounty needs engineering or needs product I have added the respective labels on the right
[X] As the sponsor of this bounty I will review the changes in a preview environment (ops/product) or review the PR (engineering)

Estimated effort
2 hours
Sponsor / Stakeholder
0xdef1cafe
Bounty Hunters

Join our discord
Include an expected timeline for you to complete work in the work plan when you apply for this bounty!
Please refer to this link for some basic info
Please do not start work on this issue until you are approved in Gitcoin.

@0xdef1cafe do we have an amount and expected hours for this bounty?


RYA-53 add Visibilty Support to RYA

Added Visibility support for PCJs and fluo with integration tests.
Added a BindingSet decorator.
Jira

no comments on this -- i will merge it once i verify tests pass.

merged.  can you please close the pull request?


Remove unneeded returns

In preparation of the migration to the 5/31 binary, we should remove the chaining returns of methods that wouldn't be in good form to chain.

@shmuelk please validate.


OpenJDK download never ends

download too slow. Internet connection certainly fails after tens of minutes.
I successfully downloaded with pwget, any method to use my local file?

Hi @yinrong,
Did you try ./gradlew build? Let us know if you still see the issue. This seems to be more of network problem.

Closing the issue as no response on the thread. Feel free to reopen.


CON-4971: add index in connect items table

added an index on revision and export_status
bucs asked for that

Coverage decreased (-0.09%) to 42.975% when pulling 9b2154e3f144e038d9543f44ca41232eac743385 on CON-4971 into 937d214e96236221c56d2f56881eed807b4769ef on master.

Coverage decreased (-0.09%) to 42.975% when pulling 9b2154e3f144e038d9543f44ca41232eac743385 on CON-4971 into 937d214e96236221c56d2f56881eed807b4769ef on master.

Coverage decreased (-0.09%) to 43.388% when pulling f1df37ddc7ada20831c7d94de22cd655be8129f4 on CON-4971 into 0228a12d1680e8a12646527ee9625b002b6c912b on master.


Use "uS" in parameter names instead of "us"

Microseconds is typically abbreviated as "us", all lowercase.


refactor(plugins/tidy-html): stop attempting to remove comments twice

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
591

Relevant Lines:
591

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 100.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
591

Relevant Lines:
591

💛  - Coveralls


Automate NetCore1ESPool-Publishing-Internal updates

We created NetCore1ESPool-Publishing-Internal manually to expedite work on #1145. That means our automation does not update the pool (though images are updated over time) and the settings may get out of sync. To fill this gap, we need to slightly extend our pool definitions to support standby agents.
The ARM template bit needed here is
        "agentProfile": {
            "type": "Stateless",
            "kind": "Stateless",
            "resourcePredictions": [
                {
                    "00:00:00": 3
                }
            ]
        },

Release Note Category

[ ] Feature changes/additions
[ ] Bug fixes
[x] Internal Infrastructure Improvements

Release Note Description
Automated updates to the NetCore1ESPool-Publishing-Internal hosted pool. This should avoid unintended configuration inconsistencies going forward.

yup

here is the I tried PR -:> https://dev.azure.com/dnceng/internal/_git/dotnet-helix-machines/pullrequest/37778

taking this back to Dev 😦 a !37778 comment I made about a testing gap nagged at me. I bumped MinimumStagingSize and ran https://dev.azure.com/dnceng/internal/_build/results?buildId=2411354&view=results. That build succeeded but the created pool lacked the expected reservation settings. I missed a scenario — comparisons with existing pool properties. Suspect it's a quick fix…

Work completed with !38496. If we need to announce internal-only fixes, this should be mentioned next week.

part one has rolled out to production. will close after !38496 also reaches production

Confirmed today's rollout set up NetCore1ESPool-Publishing-Internal correctly today


Update to JDK11 (or 10)

I've been working on an opentracing workshop for OSS Summit EU and this is the microservice project I landed on when decided what I should instrument.
I have managed to upgrade to JDK10 (it'll be 11 once bionic beaver updates their jdk11 packages to actually deliver 11 instead of 10). I've also done some other enhancements which you might be interested in. (see other issues).
There is a caveat though, the docker plugin still works but it hangs for a few seconds before throwing an error about authentication. Since you're not pushing images from maven (from what I can tell) I assumed this wasn't a blocker for my use case. I'm guessing that a module is missing but I didn't debug or attempt to fix.

I'm agree to support the JDK 11 and, potentially upgrade the Docker images. But I prefer to keep a compatibility with Java 8 that remains the most established platform version.
For JDK 11 support, maybe we have to upgrade to Spring Boot 2.1 and Spring Framework 5.1. There is Java 11 initial support. See:

https://github.com/spring-projects/spring-framework/wiki/What's-New-in-Spring-Framework-5.x
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.1.0-M2-Release-Notes

Ok, that makes sense. We can always circle back to this when 11 support is a bit more flushed out.

I propose to create a release/java11branch. See https://github.com/spring-petclinic/spring-petclinic-microservices/pull/130


UX Regression: Updating the URL is painful.

Steps to reproduce the problem:

Select a flow, press e to edit a URL.
flow.set @focus url str appears

This is really impractical for editing URLs. I see two approaches here:

A popup appears where the existing URL can be updated, similar to Query editing.
flow.set @focus url https://existing-url/ appears.

The same problem may also apply when editing other attributes, we should take a look.
System information
Mitmproxy: 5.0.0.dev (+137, commit e74e97b)
Python:    3.6.3
OpenSSL:   OpenSSL 1.1.0g  2 Nov 2017
Platform:  Linux-4.4.0-17134-Microsoft-x86_64-with-Ubuntu-16.04-xenial

#3289 seems to be referencing the same issue.

I don't think the other attributes have this issue. It appears that other options, which could be long strings are first shown inside of an editing viewing. These views allow the contents of a cell to be opened in an external editor.
The only long attribute which can not be opened in the external editor was URL, but #3594 fixes this issues.
I don't think there is a reason to have status, method, or reason spawn an external editor or an edit view, but it might be a nice cosmetic feature just to keep constancy across all the edit options.
Thoughts?


Filter for test/Benchmarks

Pull Request Description
With herein proposed change one can pass an optional filter to enso --run test/Benchmarks to execute only groups and specs that contain given string in its name.
Checklist
Please ensure that the following checklist has been satisfied before submitting the PR:

[ ] The documentation has been updated, if necessary.
[x] All code follows the
style guides.
All code has been tested:

[x] Code was manually tested

enso$ enso --run test/Benchmarks/ Computing_Proxy
Found 1 benchmark suites, containing 2 specs in total.
The minimal estimated run time based on configurations is 24s.
Found 2 cases to execute (ETA 24s)
Benchmark 'Vector_Array_Proxy.Sum_Computing_Proxy' finished in 12207.738 ms
Benchmark 'Vector_Array_Proxy.Sum_Vector_relying_on_Computing_Proxy' finished in 12028.108 ms


Add implementation for conEdison

This adds ConEd (NY) to the supported utility providers. To work around mfa requirements, we allow providing optional auth tokens. In ConEd's case, this would be a "known device" token one can steal from local cookies by going through the login flow on a separate device once.
The wiring isn't quite complete here. Adding the optional_auth currently breaks all the other utilities since they're not expecting that parameter. Do we just add the param to those and don't use it? I'm not quite sure what the proper way to do this in Python is.

know i personally have to relogin to their site on my browser frequently, so I worry that this would be invalidated too.

The device token cookie has a lifetime of 2yrs. I guess we'd have to re-setup after that time.

A possible alternate method is to get the actual TOTP key and generate the 2fa response inside this library.

It's not allowing me to set an Authenticator app up on the website, but maybe that's just my account 🤦♂

Have you looked at https://github.com/bvlaicu/coned? They are using a headless browser that we cannot use here due to https://github.com/home-assistant/architecture/blob/master/adr/0004-webscraping.md. But it might help to see how they are handling 2FA. Also could you take a stub updating the config flow of the integration? That might influence how we should change the library API to handle 2FA.

I use @bvlaicu's add-on. The MFA that's easiest to use is the "secret question" - and my mum's maiden name just happens to be dpAW5mVQkiqgku9sWU
It's great that the add-on exists, but it's hard to set up and brittle. This PR is excellent news.

Have you looked at https://github.com/bvlaicu/coned?

Yeah I checked after the earlier config there, however ConEd doesn't allow me to setup security question as a type (maybe they deprecated that) and blocked TOTP from being set up.
I just checked again and it did allow me to get that set up, so I'll switch to generating a TOTP secret automatically.

Also could you take a stub updating the config flow of the integration? That might influence how we should change the library API to handle 2FA.

My plan was to just add another text field there to provide the device token/now TOTP secret, but I can get that PRd too.

It would be great if we are able to get "Orange & Rockland" in the same pull request. ORU is a sister company to ConEdison and they use the same website as ConEd (albeit rebranded).

@hirshy I don't have access to user auth for them, so I think that'd have to be added after we're done with this one (and maybe create some reusable subclass/methods).

Accompanying PR in HA: https://github.com/home-assistant/core/pull/97878. Managed to get it running and fixed another bug with double-logins.


what's the input image shape?

ValueError: Caught ValueError in replica 0 on device 0.
Original Traceback (most recent call last):
File "/opt/conda/lib/python3.7/site-packages/torch/nn/parallel/parallel_apply.py", line 61, in _worker
output = module(*input, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/dockerdata/ruodai1/Siamese-pytorch/nets/siamese.py", line 30, in forward
x1, x2 = x
ValueError: not enough values to unpack (expected 2, got 1)
I have this error training on my own data

train_own_data = True may help

I have set this.
Besides, I try to train it on the omniglot dataset and still have this issue
ls images_background/
Alphabet_of_the_Magi                         Braille              Hebrew                                       N_Ko
Anglo-Saxon_Futhorc                         'Burmese_(Myanmar)'  'Inuktitut_(Canadian_Aboriginal_Syllabics)'  'Ojibwe_(Canadian_Aboriginal_Syllabics)'
Arcadian                                     Cyrillic            'Japanese_(hiragana)'                         Sanskrit
Armenian                                     Early_Aramaic       'Japanese_(katakana)'                        'Syriac_(Estrangelo)'
'Asomtavruli_(Georgian)'                      Futurama             Korean                                       Tagalog
Balinese                                     Grantha              Latin                                        Tifinagh
Bengali                                      Greek               'Malay_(Jawi_-Arabic)'
'Blackfoot(Canadian_Aboriginal_Syllabics)'   Gujarati            'Mkhedruli_(Georgian)'
Traceback (most recent call last):
File "train.py", line 343, in
fit_one_epoch(model_train, model, loss, loss_history, optimizer, epoch, epoch_step, epoch_step_val, gen, gen_val, Epoch, Cuda, fp16, scaler, save_period
, save_dir, local_rank)
File "/dockerdata/test1/Siamese-pytorch/utils/utils_fit.py", line 35, in fit_one_epoch
outputs = model_train(images)
File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/torch/nn/parallel/data_parallel.py", line 161, in forward
outputs = self.parallel_apply(replicas, inputs, kwargs)
File "/opt/conda/lib/python3.7/site-packages/torch/nn/parallel/data_parallel.py", line 171, in parallel_apply
return parallel_apply(replicas, inputs, kwargs, self.device_ids[:len(replicas)])
File "/opt/conda/lib/python3.7/site-packages/torch/nn/parallel/parallel_apply.py", line 86, in parallel_apply
output.reraise()
File "/opt/conda/lib/python3.7/site-packages/torch/_utils.py", line 428, in reraise
raise self.exc_type(msg)
ValueError: Caught ValueError in replica 0 on device 0.
Original Traceback (most recent call last):
File "/opt/conda/lib/python3.7/site-packages/torch/nn/parallel/parallel_apply.py", line 61, in _worker
output = module(*input, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/dockerdata/test1/Siamese-pytorch/nets/siamese.py", line 30, in forward
x1, x2 = x
ValueError: not enough values to unpack (expected 2, got 1)

I check the input shape in function fit_one_epoch().
I think the images tensor should be split to two variables
10:43:17.216028 line        26         with torch.no_grad():
10:43:17.220519 line        27             if cuda:
10:43:17.224917 line        28                 images  = images.cuda(local_rank)
Modified var:.. images = tensor<(2, 64, 3, 105, 105), float32, cuda:0>
10:43:17.231189 line        29                 targets = targets.cuda(local_rank)
Modified var:.. targets = tensor<(64, 1), float32, cuda:0>
10:43:17.239563 line        34         optimizer.zero_grad()

What is in your PIP list? I want to see your environment of Python. Many people ask this question, but I don't have it myself


[Needs Review] b07902133 彭道耘

A Pull Request (PR) should explain why we need this PR and how you implement it, so others could understand it quickly.
Since this is just a homework, you do not need to explain why and how.
Do NOT change the status to NeedsReview if you do not want to be graded yet.
Please fill in the following questions as feedback. It is totally optional and would not be graded.
What is the most challenging part in this homework?
Is this homework helpful for you?
Is there any suggestion?

PR readiness check list

[  ] Did it pass the Flake8 check?
[  ] Did you test this PR?
[  ] Did you change the title of this PR to the correct format ([status] student_ID)?

I have set it up.

@boook64 Your commit message is not linked to your profile. See https://help.github.com/articles/why-are-my-commits-linked-to-the-wrong-user/ and https://www.git-tower.com/learn/git/faq/change-author-name-email if you want to fix it.

@boook64 Your commit message is not linked to your profile. See https://help.github.com/articles/why-are-my-commits-linked-to-the-wrong-user/ and https://www.git-tower.com/learn/git/faq/change-author-name-email if you want to fix it.

It's fixed now.Please let me know if there is any problem.


SEGV with spacy 3.0.3

Hey,
First - thanks for this awesome package and the work which was needed to build it.
However currently I am make a small annotation project, which uses spaCy (3.0.3) with this repo (0.2.0) and I am experience segfaults. torch is up to date (1.7.1) and I am running on python 3.9.2.
Also I did not experience this behavior with on spaCy 2.x.
This also effects the nltk variant.

I can't reproduce
$ conda create -n benepar-debug-env python=3.9
$ conda activate benepar-debug-env
$ pip install benepar spacy==3.0.3 torch==1.7.1
$ python
Python 3.9.1 (default, Dec 11 2020, 06:28:49)
[Clang 10.0.0 ] :: Anaconda, Inc. on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import benepar
>>> parser = benepar.Parser('benepar_en3')
>>> parser.parse('"Fly safely."')
Tree('TOP', [Tree('S', [Tree('``', ['``']), Tree('VP', [Tree('VB', ['Fly']), Tree('ADVP', [Tree('RB', ['safely'])])]), Tree('.', ['.']), Tree("''", ["''"])])])

Could you post a sequence of commands like the ones above that reproduces the issue, starting from a clean python install? Anaconda preferred if possible, but instructions for downloading python binaries from elsewhere are fine too.
I'll also need to know what OS you're on, and whether you have a GPU or not.

> uname -a
Linux xxx 5.10.0-1-amd64 #1 SMP Debian 5.10.4-1 (2020-12-31) x86_64 GNU/Linux
> echo $CUDA_VISIBLE_DEVICES
> 0

Actually your example fails for me.
I have a Docker container if it helps:
FROM debian:bullseye-slim

# ensure local python is preferred over distribution python
ENV PATH /usr/local/bin:$PATH
ENV LANG C.UTF-8
ENV CUDA_VISIBLE_DEVICES 0

# run install
RUN apt-get update
RUN apt-get -y dist-upgrade \
        && apt-get -y install build-essential checkinstall \
        && apt-get -y install libncursesw5-dev libssl-dev \
    libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev zlib1g-dev\
        wget liblzma-dev icu-devtools libicu-dev libicu67 git \
        && apt-get -y install python3.9 python3-pip python3-icu
COPY . /apc
WORKDIR /apc
RUN /usr/bin/python3 -m pip install --upgrade pip
RUN pip install --ignore-installed -r requirements.txt
RUN python3 -m spacy download en_core_web_sm
CMD ["python"]

requirements:
pandas
numpy
cpython
pytest
parameterized
coverage
pylint
nltk
spacy>=3.0.3
PyICU>=2.6
mypy
pydantic
benepar>=0.2.0

I can also provide a valgrind output...but it's actually very verbose.
My guess is that some is not right with torch (but I did not figure out what so far).

Have you tried using Anaconda instead of system (apt) python? Or running on CPU by setting something like CUDA_VISIBLE_DEVICES=-1?
I don't use docker or have it installed, so it will take me some time to replicate what you posted above. In the meantime it would be helpful to know if there's a specific aspect of the configuration that's causing issues.

Also python 3.9.2 is less than a week old, so I wouldn't be surprised if the torch ecosystem has some issues with it. Actually I just did a search for torch segfaults on python 3.9, and found issues like this one. I suspect that dropping to python 3.8 or switching to the torch 1.8 release candidates might make the segfault go away.

Anaconda is not an option for several reasons. Playing around with cuda did not help.
I downgraded meanwhile python to 3.9.1+, but it is also effecting python 3.8.7, since my CI is affected, too.
Also I recall that under experienced random core dumps while testing under spaCy with benepar, but I did suspect pytest at the time.
I will try the torch rc later today.  Also how the error occurs is relative specific - it look like that resources are not freed correctly (this includes a double free). From the valgrind  this looks very suspicions:
==1847526== Invalid read of size 8
==1847526==    at 0x623CD1: PyThreadState_Clear (in /usr/bin/python3.9)
==1847526==    by 0x2F8C555B: pybind11::gil_scoped_acquire::dec_ref() (in /usr/local/lib/python3.9/dist-packages/torch/lib/libtorch_python.so)
==1847526==    by 0x2F8C5598: pybind11::gil_scoped_acquire::~gil_scoped_acquire() (in /usr/local/lib/python3.9/dist-packages/torch/lib/libtorch_python.so)
==1847526==    by 0x2FBED818: torch::autograd::python::PythonEngine::thread_init(int, std::shared_ptr<torch::autograd::ReadyQueue> const&, bool) (in /usr/local/lib/python3.9/dist-packages/torch/lib/libtorch_python.so)
==1847526==    by 0x140FDECF: ??? (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28)
==1847526==    by 0x4875EA6: start_thread (pthread_create.c:477)
==1847526==    by 0x4B29DEE: clone (clone.S:95)
==1847526==  Address 0x42c2f208 is 3,752 bytes inside an unallocated block of size 3,824 in arena "client"

But it is hard to tell, since:
==1847526== HEAP SUMMARY:
==1847526==     in use at exit: 21,573,170 bytes in 28,321 blocks
==1847526==   total heap usage: 1,151,331 allocs, 1,123,010 frees, 1,309,228,117 bytes allocated
==1847526==
==1847526== LEAK SUMMARY:
==1847526==    definitely lost: 0 bytes in 0 blocks
==1847526==    indirectly lost: 0 bytes in 0 blocks
==1847526==      possibly lost: 3,283,716 bytes in 350 blocks
==1847526==    still reachable: 18,281,918 bytes in 27,961 blocks
==1847526==                       of which reachable via heuristic:
==1847526==                         stdstring          : 483,533 bytes in 6,447 blocks
==1847526==                         newarray           : 48,152 bytes in 91 blocks
==1847526==         suppressed: 7,536 bytes in 10 blocks
==1847526== Rerun with --leak-check=full to see details of leaked memory
==1847526==
==1847526== Use --track-origins=yes to see where uninitialised values come from
==1847526== For lists of detected and suppressed errors, rerun with: -s
==1847526== ERROR SUMMARY: 157907 errors from 694 contexts (suppressed: 0 from 0)


Implement User Activation through Email when Registering

Issue Description
Currently, in User Registration, there is no verification of E-mail Address on Registration.
ToDo:

An email with a hash token URL should be sent to the provided E-mail address.

Once the user clicks on the link in the E-mail, their Account should get validated.

If possible, implement Validity Time Limit on the link sent by mail.

If the link expires the associated User and UserProfile is deleted.

Note
Use the credentials provided in SETTINGS.py for sending the e-mails for now.

Won't it be better if we use Django Allauth ? It will send the mail automatically . And anyways as SMS is gonna be a big event, so we have to add the feature to login using social accounts/google...and we will have to use Django allauth for it , so why not use it for normal login/signup also .....

That's a good idea, however, we were thinking of dropping Google OAuth this time. It's an unnecessary overhead.
If you are really into it, it would be great if you could create a PR with Google OAuth Implemented referencing this Issue. If it works fine enough we can go with that too.
Anyways we would have to resolve this issue standalone anyways as we will keep this way of creating accounts too.

@ashryaagr Thanks for Google OAuth!
This issue addresses the concern that we need to have a verification system for users registering by standalone form too.


Add documentation about client-side load balancing and service discovery

Modifications:

Add client-service-discovery.rst which explains client-side load
balancing and service discovery
Update overrides.css so that the menu items look better, especially
monospaced ones

Screenshot: https://screenshots.firefox.com/q3eChm85RtnM34ug/null

Read the docs raise a question for me, what happen if we mixed up 2 dynamic EndpointGroup together. Ex: if we used both Dns group and HttpHealthChecked group, is it still work as expected when 2 group try to modify the list at the same time?

@huydx Yes, you're right. Let me add a little bit more make it more explicit.

LGTM 💯

Thanks, reviewers!


adding link to documentation in the navbar

issue #13
Adding API item link to the documetation in the navbar.

Could you use relative url instead of absolute
relative: ./global

Thank you

you welcome! ;)


feat: billing for organizations

billing is composed of: billing customers, subscriptions, features, plans, prices
current design only supports stripe as billing engine at the moment
each org needs to connect at least one billing customer account to enable billing
https://github.com/raystack/proton/pull/315

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 1242 (0.0%)  changed or added relevant lines in 12 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-4.7%) to 45.568%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

internal/bootstrap/service.go
0
9
0.0%

internal/api/v1beta1/v1beta1.go
0
24
0.0%

internal/store/blob/plan_repository.go
0
32
0.0%

cmd/serve.go
0
72
0.0%

internal/api/v1beta1/subscription.go
0
75
0.0%

internal/api/v1beta1/plan.go
0
88
0.0%

internal/api/v1beta1/billing_customer.go
0
104
0.0%

internal/store/postgres/billing_plan_repository.go
0
148
0.0%

internal/store/postgres/billing_feature_repository.go
0
158
0.0%

internal/store/postgres/billing_subscription_repository.go
0
158
0.0%

Files with Coverage Reduction
New Missed Lines
%

cmd/serve.go
1
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
-4.7%

Covered Lines:
5768

Relevant Lines:
12658

💛  - Coveralls

@surendratiwari3 Actually we are considering in this in upcoming releases. Will post an update soon. Feel free to create an issue and add details from your context.

@surendratiwari3 From what I understand, you will use Frontier to subscribe users on a plan but the payment is taken outside Frontier(using a wire transform) and we would still want Frontier to acknowledge the payment and continue to renew subscriptions. If that is the case, we can handle this by marking an invoice paid manually. Every time a subscription is due for payment, it generates an invoice. If a payment method is configured, stripe automatically handles the payment and marks the invoice as paid but even marking the invoice paid manually will do the same thing.
We can have another API that allows marking an invoice paid from Frontier. Of course, only platform superuser can only be able to mark it paid.
POST /v1beta1/organizations/{org_id}/billing/{billing_id}/invoices/{invoice_id}/paid

@kushsharma let me reiterate on this: while creating a billing account if stripe is not configured its throwing an error. usually if stripe is not configured it should not worry about this, it will be great if we devide this into 2 different concept if i want to configure stripe i can and if not still other part should be working as it is.


chore: update ESLint

Ran the following commands:
rm -rf node_modules
npm uninstall eslint
npm install --save-dev eslint

Closes newrelic#35

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: danielgolden:x: tangollamaYou have signed the CLA already but the status is still pending? Let us recheck it.

Reviewing now.

:tada: This PR is included in version 1.2.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


VD16 uniformity issue

While performing a search of the word "almanac", instead of getting this output:
Performing query: almanac
I get the following output:
Performing query: VD16 and (1800)
However, I still get results.

This is expected, because some readers need to transform the query before forwarding them to the API. But I understand that this causes confusion! I'll add a note in the readme and then close the corresponding issues.


PRs are not always correctly closed as merged

Occasionally, it happens that a PR merged by hoff ends up showing as closed rather than merged, i.e.

rather than

And sometimes, github just doesn't close the PR at all.
In hoff, the merging procedure is defined here:
https://github.com/channable/hoff/blob/46805f05a0c23ee1bac5be786da1acd23d076ce3/src/Logic.hs#L203-L210
We first force-push the rebased version of the original branch, and then push the merge to master.
That way, GitHub should see that the commits in the PR branch are exactly those that are on master, and correctly close the PR as merged. This is just like a human would do a rebase & merge via the git command line (i.e. not using GitHub's interface for that), albeit a lot faster.
The latter point might actually be the issue here. My hypothesis is that if the force push of the PR branch and the push to master are sent in rapid succession, GitHub might become confused about the state of the branches, and incorrectly observe a state where the commits that were merged are not yet on the PR branch.
A hacky band-aid could be to just sleep for a few seconds between force-pushing the PR branch and pushing master.

Fixed by #209, which ironically was itself affected by the bug

I was thinking, we already get webhook events from GitHub when the commit corresponding to a PR changes.
In most cases, that causes hoff to abandon the PR, but we already specifically check whether the updated commit SHA corresponds to the commit we pushed ourselves for integrating the PR.
So maybe we could make hoff wait for that webhook after force-pushing the branch, and only upon receiving it continue with the push of the merge commit to master.
Perhaps we also need some sort of timeout there, too, after which we just proceed to push master anyway. Otherwise we have yet another webhook on the critical path and thus increase our chance of stalls when GitHub has webhook issues.


Set tool to previous when sampling colour

This PR resolves issue #24
After sampling a colour, your previous used tool will be selected.

Thank you so much!


Build failure: nixos-option

Steps To Reproduce
Steps to reproduce the behavior:

build nixos-option from nixos-unstable on revision 23e89b7da85c3640bbc2173fe04f4bd114342367

Build log

Build Log
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/gk2qs90xfhv0h19h8dca9hn9j3wkix6f-nixos-option
source root is nixos-option
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
mesonConfigurePhase flags: --prefix=/nix/store/z3bnffna084is69k0qn2jhimjshav2gm-nixos-option --libdir=/nix/store/z3bnffna084is69k0qn2jhimjshav2gm-nixos-option/lib --libexecdir=/nix/store/z3bnffna084is69k0qn2jhimjshav2gm-nixos-option/libexec --bindir=/nix/store/z3bnffna084is69k0qn2jhimjshav2gm-nixos-option/bin --sbindir=/nix/store/z3bnffna084is69k0qn2jhimjshav2gm-nixos-option/sbin --includedir=/nix/store/z3bnffna084is69k0qn2jhimjshav2gm-nixos-option/include --mandir=/nix/store/z3bnffna084is69k0qn2jhimjshav2gm-nixos-option/share/man --infodir=/nix/store/z3bnffna084is69k0qn2jhimjshav2gm-nixos-option/share/info --localedir=/nix/store/z3bnffna084is69k0qn2jhimjshav2gm-nixos-option/share/locale -Dauto_features=enabled -Dwrap_mode=nodownload --buildtype=plain
The Meson build system
Version: 1.6.0
Source dir: /build/nixos-option
Build dir: /build/nixos-option/build
Build type: native build
Project name: nixos-option
Project version: 0.1.6
C++ compiler for the host machine: g++ (gcc 13.3.0 "g++ (GCC) 13.3.0")
C++ linker for the host machine: g++ ld.bfd 2.43.1
Host machine cpu family: x86_64
Host machine cpu: x86_64
Found pkg-config: YES (/nix/store/f1gamyykr0f8n4afy910ass2jx2g9zkv-pkg-config-wrapper-0.29.2/bin/pkg-config) 0.29.2
Run-time dependency nix-main found: YES 2.18.9
Run-time dependency nix-store found: YES 2.18.9
Run-time dependency nix-expr found: YES 2.18.9
Run-time dependency nix-cmd found: YES 2.18.9
Did not find CMake 'cmake'
Found CMake: NO
Run-time dependency nix-flake found: NO (tried pkgconfig)

meson.build:10:16: ERROR: Dependency "nix-flake" not found, tried pkgconfig

A full log can be found at /build/nixos-option/build/meson-logs/meson-log.txt

Additional context

nixos-rebuild switch fails after the attempt to build nixos-option fails
Metadata

Notify maintainers

There are no maintainers listed, tagging @Mic92 instead as the person who last touched nix-option

Note for maintainers: Please tag this issue in your PR.

Add a :+1: reaction to issues you find important.

There is currently no nixos-option that builds with lix. There is a rewrite in shell if you want to use to resolve this.


Host Nullpomino binaries

Host these versions: https://i.imgur.com/e4nXLbC.png

Readme in ecb3b2f links to Google Code binaries

Ohh, the Google Code binaries are gone. This is important

Temp fix in ae302d5

Attached binaries to v7.5.0 release. Updated readme in 09ebb2e2d5.


When possible, read in chunks when using readn

LambdaMemory has a cache now, which makes for more solver-friendly constraints.
However, this cache is not used when we are evaluating a readn of more than one word. For example, when calculating a mapping, you need to keccak(val . slot). This change makes it so that we can make use of the cache for val and for slot -- instead of reading them via array-ops (which are slow).

Shall we hit merge? @ruaronicola @robmcl4


Sysmon does not work on EL9 with 6.6+ kernel from elrepo

Describe the bug
On RHEL/Alma 9 with an ELRepo kernel-ml kernel (6.8.8-1.el9.elrepo.x86_64 right now) I cannot run Sysmon for Linux.
To Reproduce

Use Alma (or RHEL) 9.x
Install the kernel-ml package from the elrepo repository
Install sysmon with DNF
Start sysmon with sysmon -i

Sysmon version
1.3.2 installed via DNF (per the installation instructions in INSTALL.md)
Distro/kernel version
AlmaLinux 9, but the problem has also been seen on RHEL 9.
Kernels 6.8.8-1.el9.elrepo.x86_64 and 6.6.9-1.el9.elrepo.x86_64
Sysmon configuration
I did not specify a configuration, so I believe it is using the configuration found in /opt/sysmon/config.xml
<Sysmon schemaversion="4.22">
<EventFiltering>
</EventFiltering>
</Sysmon>

Logs
When I did sysmon -i I got this message.

Job for sysmon.service failed because the control process exited with error code.
See "systemctl status sysmon.service" and "journalctl -xeu sysmon.service" for details.

Running systemctl status sysmon.service gave the following:
× sysmon.service - Sysmon event logger
     Loaded: loaded (/etc/systemd/system/sysmon.service; enabled; preset: disabled)
     Active: failed (Result: exit-code) since Fri 2024-05-10 09:50:30 EDT; 5min ago
    Process: 3533 ExecStart=/opt/sysmon/sysmon -i /opt/sysmon/config.xml -service (code=exited, status=12)
        CPU: 545ms

May 10 09:50:30 localhost.localdomain sysmon[3584]: ; event->m_mtime.tv_nsec = BPF_CORE_READ((struct inode *)inode, i_mtime.tv_nsec);
May 10 09:50:30 localhost.localdomain sysmon[3584]: 617: (63) *(u32 *)(r8 +80) = r1       ; R1_w=scalar() R8=map_value(off=0,ks=4,vs=65512,imm=0)
May 10 09:50:30 localhost.localdomain sysmon[3584]: 618: <invalid CO-RE relocation>
May 10 09:50:30 localhost.localdomain sysmon[3584]: failed to resolve CO-RE relocation <byte_off> [541] struct inode.i_ctime.tv_sec (0:17:0 @ offset 120)
May 10 09:50:30 localhost.localdomain sysmon[3584]: processed 9930 insns (limit 1000000) max_states_per_insn 12 total_states 226 peak_states 152 mark_read 99
May 10 09:50:30 localhost.localdomain sysmon[3584]: -- END PROG LOAD LOG --
May 10 09:50:30 localhost.localdomain sysmon[3584]: libbpf: prog 'FileOpenRawExit': failed to load: -22
May 10 09:50:30 localhost.localdomain sysmon[3584]: libbpf: failed to load object './/sysmonEBPFkern5.6-_core.o'
May 10 09:50:30 localhost.localdomain sysmon[3584]: ERROR: failed to load prog: 'Invalid argument'
May 10 09:50:30 localhost.localdomain sysmon[3533]: Telemetry failed to start: eBPF object could not be loaded

Running journalctl -xeu sysmon.service provided the following:
output.txt
Expected behavior
I expected that sysmon would start and that systemctl status sysmon would show that it is running.
Additional context

I did a quick check and sysmon works on a RHEL 8 VM with these kernels.
I also had a VM with the kernel-lt package (6.1.88-1.el9.elrepo.x86_64) and sysmon works fine on that machine.

Hi @kevinsprague  - Thanks for reporting this. It looks like in kernel 6.6+ they renamed the i_ctime field to __i_ctime. I've tagged this as a bug and put on the backlog.

The fix has been merged.


Display project languages

forgot to mention that added languages to the expects in all test files, markdown, markup and html


Thymeleaf parsing issue

Thymeleaf throws error as tags like
<link>
<meta>

are not closed according to structured document schema like xml, but it is allowed in html.

Add this dependency:
<dependency>
	    <groupId>net.sourceforge.nekohtml</groupId>
	    <artifactId>nekohtml</artifactId>
</dependency>


Don't segfault if a minuit fit fails.

Fixes the segfault discussed in #266
Note that this doesn't magically prevent fits from failing, it just prevents sncosmo from segfaulting, and minuit raises an exception instead.

Sounds like a reasonable fix, though ideally we could figure out why BicubicInterpolator segfaults with NaNs. Can you add a comment near the new code explaining why (could be short and just refer to #266)?

This is useful! Currently, it requires an extra try/except to dodge this, before checking for success.

I added a comment explaining what is going on. I agree that BicubicInterpolator shouldn't segfault, so I think that we should leave #266 open for now. I'll look into it when I have time.


Further problems with CMakePresets.json and Cmake

Following up on the previous comment.
The VS 2019 included CMake doesn't work with the CMakePresets.json file specified.
I then tried a new install of the latest Cmake (3.28.0-rc3) but the command
cmake --preset=default
gives the different error:
Preset "default" missing field "generator"
Invalid preset: "default"
If I knew the details of how to fix things like this I would not be following a basic tutorial on using vcpkg - so I have no idea what to do now, and it seems that this page if of no value to VS 2019 Enterprise users.

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

ID: 5099d71b-6e6f-f2d6-ab3f-3e8327541245
Version Independent ID: 5099d71b-6e6f-f2d6-ab3f-3e8327541245
Content: Install and use packages with CMake
Content Source: vcpkg/get_started/get-started.md
Product: vcpkg
GitHub Login: @JavierMatosD
Microsoft Alias: javiermat

Hi @mcginnie
By taking a look at the CMake documentation I noticed we can reduce the schema requirement for CMakePresets.json to version 1, and this would help users with older CMake.
In your case, the following CMakePresets.json should work:
{
  "version": 1,
  "configurePresets": [{
    "name": "default",
    "generator": "Ninja",
    "binaryDir": "${sourceDir}/build",
    "cacheVariables": {
      "CMAKE_TOOLCHAIN_FILE": "$env{VCPKG_ROOT}/scripts/buildsystems/vcpkg.cmake"
    }
  }]
}

From the top of my mind I can't remember if VS 2019 comes with Ninja, but if that doesn't work then you can set the generator to Visual Studio 16 2019

Closing this as users migrate to newer versions of CMake over time, in which case they may prefer to be on a newer schema version. Since we haven't gotten other reports about this issue with the tutorial we will leave it alone for now.


Update to Bevy 0.13

New feature implementation
Implemented feature
As per description. We technically can go up to 0.14 but it is currently stuck on https://github.com/open-rmf/rmf_site/issues/231#issuecomment-2237993393, so this gets us closer (the 0.13 -> 0.14 breakage is minimal, so not a lot of duplicated work).
Implementation description
Will comment on the lines themselves for migrations that were not trivial

Second block on web, https://github.com/bevyengine/bevy/pull/11278 is only available in 0.14 and the 0.13 behavior regressed with the workaround not really working, will just wait for 0.14 now.


Fix UG formatting

Codecov Report

Merging #212 (e7a8db6) into master (b73789e) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #212   +/-   ##
=========================================
  Coverage     73.66%   73.66%
  Complexity      783      783
=========================================
  Files           101      101
  Lines          2404     2404
  Branches        271      271
=========================================
  Hits           1771     1771
  Misses          544      544
  Partials         89       89

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b73789e...e7a8db6. Read the comment docs.


remove some refs to DCAF, pt 1

I rule and have completed some work on Case Manager that's ready for review!
Remove a couple refs to DCAF that are OBE.
This pull request makes the following changes:

remove certain DCAF refs from readme, civic.json, and dockerfile

no view changes
It relates to the following issue #s:

Bumps #2552

For reviewer:

Adjust the title to explain what it does for the notification email to the listserv.
Tag this PR:

feature if it contains a feature, fix, or similar. This is anything that contains a user-facing fix in some way, such as frontend changes, alterations to backend behavior, or bug fixes.
dependencies if it contains library upgrades or similar. This is anything that upgrades any dependency, such as a Gemfile update or npm package upgrade.

If it contains neither, no need to tag this PR.

first of many of these, most likely - there are a lot of refs to DCAF!

not prod facing, so godmode


3: Add function fit_beta_mixture

closes #3

This looks great. I feel a fraud reviewing this because I have not used EM in over 10 years, and I speak so little Julia. But the code looks sensible, the tests look sensible, and the tests succeed.
I am inclined to add the known R examples (currently explored in a Pluto notebook) to the tests suite. That would entail adding various CSV files to the package. Do you support that? If so I could research how best to add datasets to a Julia package. Maybe @dgkf-roche knows..??

I found https://discourse.julialang.org/t/best-practice-for-storing-data-in-packages/36808/2 which might be a good first solution (not the DataDeps.jl thing but the first posts)

@brockk so I see now:
Reconcile fit_beta_mixture on large historical dataset: Test Failed at /home/runner/work/SafetySignalDetection.jl/SafetySignalDetection.jl/test/test_fit_beta_mixture.jl:106
  Expression: ≈(std(mix_large), std(pi_star), atol = 0.01)
   Evaluated: 0.025845255570288297 ≈ 0.036002634569251894 (atol=0.01)

I will have a look

@brockk so I see now:
Reconcile fit_beta_mixture on large historical dataset: Test Failed at /home/runner/work/SafetySignalDetection.jl/SafetySignalDetection.jl/test/test_fit_beta_mixture.jl:106
  Expression: ≈(std(mix_large), std(pi_star), atol = 0.01)
   Evaluated: 0.025845255570288297 ≈ 0.036002634569251894 (atol=0.01)

I will have a look

Abs difference of 0.0102 with atol = 0.01. I would just increase atol.

Calibrating atol / rtol with MC variables usually involves a bit of trial-and-error

I changed to the NUTS sampler because it works better in my experience with the model so far, and then we also don't need to discard a burn-in period. With this we can be stricter (relative instead of absolute tolerance) in the tests.
One question - for the "Reconcile fit_beta_mixture ..." tests - how about saving the pi_star samples and then just testing the fit_beta_mixture behavior starting from pi_star? That could save some test run time.

@brockk thanks for the discussion yesterday, today I tried to do this as we said yesterday - somehow it was still a bit too complex for my taste, so I ended up simplifying further - in the end we don't really need a sample of pi_star for this test, it can be any other sample of values


SealedValueClass are awful to use in when statements

Currently, using a when (something) statement where something is a SealedValueClass, the IDE points to the RealSealedValueClass backer (which is private) instead of the interface.

The when statement "gets better" if the backer RealSealedValueClass is moved into the sealed interface's lambda

Because the value class inherits from an interface, there doesn't seem to be any benefits in terms of boxing/unboxing. Is it even worth it?
Should these just be classes, and remove the song and dance of using value classes for the wrappers? This would mean that a ValueClass abstraction would need to be created for automatic override of the equals, hashCode and toString methods in which a regular class could extend in order to get the same benefits while still being usable from the public API.
abstract class ValueClass<T: Any?> @InternalTorApi constructor(val value: T) {

    init {
        check(this::class.simpleName != null) {
            "Anonymous instances of ValueClass are prohibited"
        }
    }

    final override fun equals(other: Any?): Boolean {
        if (this === other) return true
        if (other == null || this::class != other::class) return false
        return (other as ValueClass<*>).value == value
    }

    final override fun hashCode(): Int {
        return value.hashCode()
    }

    override fun toString(): String {
        return "${this::class.simpleName}(value=$value)"
    }
}

And like that, a new library has been born!

Closing as a result of #272


Add helpers to determine error type

on my machine tests fail with
api/monitor/monitor_test.go:15:2: cannot find package "github.com/htdvisser/grpc-testing/test" in any of:
	/home/rvolosatovs/src/github.com/TheThingsNetwork/ttn/vendor/github.com/htdvisser/grpc-testing/test (vendor tree)
	/usr/lib/go/src/github.com/htdvisser/grpc-testing/test (from $GOROOT)
	/home/rvolosatovs/src/github.com/htdvisser/grpc-testing/test (from $GOPATH)

@htdvisser please fix and rebase

Coverage remained the same at 74.184% when pulling 9625639ef7c25692e5c6f17220cd1d925fe2cc71 on feature/error-helpers into a0d78ab222af7dacc3e8ba1459ef1d1debd72655 on develop.

Apparently Travis doesn't have any problems with it...

oh, yea, I did not sync dependencies...
but shouldn't it be moved to go-utils anyway?


Dedup and merge reqs to pass into pip

I was trying this on some setuptools-based packages, and find this edge case. If a package specifies both setup-requires in setup.py and build-system.requires in pyproject.toml (for compatibility reasons), setuptools’s get_requires_for_build_* hooks would return both of them.
This would result in something like ['setuptools>=32.2.2', 'setuptools>=36.6', 'setuptools', 'wheel'], and pip does not like it, failing the build.
This PR adds a very naive parser to merge the requirements before passing them to pip. The above example would be converted into ['setuptools>=36.6,32.2.2', 'wheel']. Not the most elegant result, but pip accepts it and does the right thing.
I am not sure how this fits in the tests. Feel free to point me a direction and I’ll add it.

I think that what you hit is a bug in the setuptools build backend: I don't think it should be returning the values from build-system.requires at all. The spec says that the get_requires_for_build_* hooks should return:

an additional list of strings containing PEP 508 dependency specifications, above and beyond those specified in the pyproject.toml file

To me, that means that the backend shouldn't include the build-system.requires values, because the frontend should have already found those before calling the hook.
There may still be some need for deduplication, either in the frontend or the backend. But I'd recommend we focus on fixing the specific problem with setuptools first.

Hmm, going from there indeed setuptools should avoid specifying both wheel and setuptools if they are in the build requires. Can you raise a setuptools issue for this then and link it to this?

Ah, if that's what this is about, I agree. I'd noticed this problem with the setuptools backend, but hadn't got around to (needing to) address it in pip yet.

The downstream issue has been solved with Setuptools 40.6.3. I suggest then this PR can be closed.


add antibody developability from TDC

add Antibody Developability from:
https://tdcommons.ai/single_pred_tasks/develop/
for both:
TAP
SAbDab, Chen et al.
Need some one to ensure two list that I convert to two columns. Thanks

tap cleanup is incoming, will finish up later

I need to understand better if the identifier columns taken alone are enough - I do not think so

Discuss: Better use Å instead of nm!


[TE/JAX] Disable FusedAttn with FFI by default

Description
FusedAttnForwardFFI caused failures in L1 tests thus it is disabled for now.
This PR should be merged after #1289 and #1295 so that FusedAttnForwardFFI can still be tested in the L0 test for those PRs.
Type of change

[ ] Documentation change (change only to the documentation, either a fix or a new content)
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Infra/Build change
[ ] Code refractor
B

Checklist:

[x] I have read and followed the contributing guidelines
[ ] The functionality is complete
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
x ] New and existing unit tests pass locally with my changes

/te-ci jax L1

/te-ci jax


Unique is very slow on big lists

Seemed to take a long time (1m+) on large arrays
Maybe we can use Array.from(new Set(keysToUpdate)) instead, which seemed to have taken <1s

Check if TS transforms the Set


Adding Release Candidate Testing

Created a new project which can be used to verify KLB build and the default Kubos services

 Create KLB release candidate test script


Support for lonely operators in ruby2.3

When we use the new lonely operators &. in ruby 2.3 rubocop report an error with 'unexpected token tDOT' message.

That's supported only on master. The release of a RuboCop version that supports Ruby 2.3 is imminent.


WASM: Ungraceful disconnections don't despawn entities or send the DisconnectEvent

If you adjust the simple_box example to use the handle_disconnections system, e.g.
...
    app.add_systems(Update, handle_disconnections);
...

pub(crate) fn handle_disconnections(
    mut disconnections: EventReader<DisconnectEvent>,
) {
    for disconnection in disconnections.read() {
        error!("Client {:?} disconnected", disconnection.client_id);
    }
}

Then close the tab, browser, etc. The server will not receive the event, it is never sent.

I'm at a wall because my clients entities are not being removed when they disconnect (which is advertised as the default) but I can't seem to use the DisconnectEvent to do it myself either.

edit: I narrowed it down a bit. The event only fails to be sent when the user is closing the tab or having an otherwise ungraceful disconnection.

I'm at a wall because my clients entities are not being removed when they disconnect (which is advertised as the default) but I can't seem to use the DisconnectEvent to do it myself either.

The entities are only despawned automatically if you added a ControlledBy entity on the server, I assume you did that?
Let me check if indeed DisconnectEvent is not emitted from io-based timeouts

I'm not able to reproduce this; if I close a tab the entities still get despawned on the server after 3 seconds

Haven't been at the PC, but yes. Every entity that isn't being despawned has a "ControlledBy".
I copied the Replicate settings from the simple_box.

Here's been my debugging, roughly.
On the left we have the server inspector, showing the world at runtime.
When a client connects, I see the ControlledBy component attached to the player.

When they disconnect, here's what the server logs look like, with debug on:
2024-06-26T15:07:11.341323Z DEBUG lightyear::shared::replication::send: Sending replication messages messages=[(ChannelKind(TypeId { t:<PHONE_NUMBER>327152828,<PHONE_NUMBER>25809427) }), ReplicationGroupId(4294967297), Updates(EntityUpdatesMessage { last_action_tick: Some(Tick(499)), updates: [(1v1, [[4, 0, 190, 86, 18, 196, 83, 116, 144, 67, 219, 15, 201, 191, 0]])] }), 1656.0)]
2024-06-26T15:07:11.342768Z  INFO lightyear::transport::webtransport::server: Connection with <IP_ADDRESS>:63527 closed. Reason: TimedOut
2024-06-26T15:07:11.342789Z DEBUG lightyear::transport::webtransport::server: Dropping tasks
2024-06-26T15:07:11.342821Z DEBUG Driver{quic_id=5729550864}: wtransport::driver::worker: Ended with error: NotConnected
2024-06-26T15:07:11.355274Z ERROR lightyear::server::networking: Disconnect client <IP_ADDRESS>:63527 because io task failed
2024-06-26T15:07:11.439333Z DEBUG lightyear::server::input: input buffer for client input_buffer=InputBuffer { buffer: [], start_tick: Some(Tick(2160)) } tick=Tick(2160) client_id=Netcode(13174697591107995770)
2024-06-26T15:07:11.439376Z DEBUG lightyear::server::input: Missed client input! client_id=Netcode(13174697591107995770) tick=Tick(2160) fallback_input=Some(Standing { at: Vec2(-585.35535, 288.90878), facing: Direction(-1.5707964) })
2024-06-26T15:07:11.440975Z DEBUG lightyear::server::connection: prepare entity update changed check (we want the component-change-tick to be higher than collect-changes-since-this-tick) kind=0 change_tick=Tick { tick: 740124 } collect_changes_since_this_tick=Some(Tick { tick: 4153151 })
2024-06-26T15:07:11.441076Z DEBUG lightyear::server::connection: prepare entity update changed check (we want the component-change-tick to be higher than collect-changes-since-this-tick) kind=1 change_tick=Tick { tick: 740124 } collect_changes_since_this_tick=Some(Tick { tick: 4153151 })
2024-06-26T15:07:11.441142Z DEBUG lightyear::server::connection: prepare entity update changed check (we want the component-change-tick to be higher than collect-changes-since-this-tick) kind=2 change_tick=Tick { tick: 740124 } collect_changes_since_this_tick=Some(Tick { tick: 4153151 })
2024-06-26T15:07:11.441204Z DEBUG lightyear::server::connection: prepare entity update changed check (we want the component-change-tick to be higher than collect-changes-since-this-tick) kind=4 change_tick=Tick { tick: 4296188 } collect_changes_since_this_tick=Some(Tick { tick: 4153151 })
2024-06-26T15:07:11.441561Z DEBUG lightyear::server::connection: prepare entity update changed check (we want the component-change-tick to be higher than collect-changes-since-this-tick) kind=3 change_tick=Tick { tick: 740124 } collect_changes_since_this_tick=Some(Tick { tick: 4153151 })
2024-06-26T15:07:11.441752Z DEBUG lightyear::shared::replication::send: Sending replication messages messages=[(ChannelKind(TypeId { t:<PHONE_NUMBER>327152828,<PHONE_NUMBER>25809427) }), ReplicationGroupId(4294967297), Updates(EntityUpdatesMessage { last_action_tick: Some(Tick(499)), updates: [(1v1, [[4, 0, 190, 86, 18, 196, 83, 116, 144, 67, 219, 15, 201, 191, 0]])] }), 1657.0)]
2024-06-26T15:07:11.538982Z DEBUG lightyear::server::input: input buffer for client input_buffer=InputBuffer { buffer: [], start_tick: Some(Tick(2161)) } tick=Tick(2161) client_id=Netcode(13174697591107995770)
2024-06-26T15:07:11.539022Z DEBUG lightyear::server::input: Missed client input! client_id=Netcode(13174697591107995770) tick=Tick(2161) fallback_input=Some(Standing { at: Vec2(-585.35535, 288.90878), facing: Direction(-1.5707964) })
2024-06-26T15:07:11.540505Z DEBUG lightyear::server::connection: prepare entity update changed check (we want the component-change-tick to be higher than collect-changes-since-this-tick) kind=0 change_tick=Tick { tick: 740124 } collect_changes_since_this_tick=Some(Tick { tick: 4153151 })
2024-06-26T15:07:11.540598Z DEBUG lightyear::server::connection: prepare entity update changed check (we want the component-change-tick to be higher than collect-changes-since-this-tick) kind=1 change_tick=Tick { tick: 740124 } collect_changes_since_this_tick=Some(Tick { tick: 4153151 })
2024-06-26T15:07:11.540674Z DEBUG lightyear::server::connection: prepare entity update changed check (we want the component-change-tick to be higher than collect-changes-since-this-tick) kind=2 change_tick=Tick { tick: 740124 } collect_changes_since_this_tick=Some(Tick { tick: 4153151 })
2024-06-26T15:07:11.540785Z DEBUG lightyear::server::connection: prepare entity update changed check (we want the component-change-tick to be higher than collect-changes-since-this-tick) kind=4 change_tick=Tick { tick: 4297577 } collect_changes_since_this_tick=Some(Tick { tick: 4153151 })
2024-06-26T15:07:11.541084Z DEBUG lightyear::server::connection: prepare entity update changed check (we want the component-change-tick to be higher than collect-changes-since-this-tick) kind=3 change_tick=Tick { tick: 740124 } collect_changes_since_this_tick=Some(Tick { tick: 4153151 })
2024-06-26T15:07:11.541247Z DEBUG lightyear::shared::replication::send: Sending replication messages messages=[(ChannelKind(TypeId { t:<PHONE_NUMBER>327152828,<PHONE_NUMBER>25809427) }), ReplicationGroupId(4294967297), Updates(EntityUpdatesMessage { last_action_tick: Some(Tick(499)), updates: [(1v1, [[4, 0, 190, 86, 18, 196, 83, 116, 144, 67, 219, 15, 201, 191, 0]])] }), 1658.0)]
2024-06-26T15:07:11.639218Z DEBUG lightyear::server::input: input buffer for client input_buffer=InputBuffer { buffer: [], start_tick: Some(Tick(2162)) } tick=Tick(2162) client_id=Netcode(13174697591107995770)
2024-06-26T15:07:11.639257Z DEBUG lightyear::server::input: Missed client input! client_id=Netcode(13174697591107995770) tick=Tick(2162) fallback_input=Some(Standing { at: Vec2(-585.35535, 288.90878), facing: Direction(-1.5707964) })

5 minutes later, it's still trying to send replication messages and thinks the client is connected, but I clearly closed the tab and ended the connection.

Hm are you using the released version 0.15.1?
I think this is fixed in main, which is why I cannot reproduce it

Yes, I'm using 0.15.1

When is the next release planned?

As soon as bevy 0.14.0 launches, which should be this weekend. The release will be by the end of the following week (since I have to wait for leafwing-input-manager, xpbd, etc. to also upgrade)

Ah, ok. Let me see if I can reproduce this on main then...

Update: Works on main, so I suppose I can close this issue now.

Edit: on main, after I disconnect, it still attempts to process inputs, I thought this was fixed?

did u cargo update to latest commit?

Yep

I am using the latest commit currently,
lightyear = { git = "https://github.com/cBournhonesque/lightyear", rev = "10d7a9f", features = [
  "webtransport",
] }

It was fixed on the branch cb/0.16 (which works with bevy 0.14) but not on main.
Sorry it's a bit confusing, but I've started pushing most fixes to cb/0.16 because there's a number of changes there that make it easier.

But great to know that the ungraceful disconnections work for you on main !


Oxidized boiler texture

Is your feature request related to a problem? Please describe.
Not a problem, only an asset.
Describe the solution you'd like
Use hurricane's thermal plant for the boiler?
https://www.figma.com/proto/y1IQG08ZG2jIeJ5sTyF4MP/Factorio-Buildings?node-id=14934-304&node-type=frame&t=tk88gXWNIga60zMr-0&scaling=scale-down-width&content-scaling=fixed&page-id=0%3A1&starting-point-node-id=2585%3A1158&hotspot-hints=0&hide-ui=1
High quality, and I think it fits into that slot. Can also allow you to change up the piping so it does not have to look the same as the one we have on Nauvis.

I have not added this texture to the game yet, but I have added these assets to the mod's dependencies list. Thank you for informing me of these resources.