Custom DerivedData folder breaks hot reloading

I have Xcode's DerivedData folder configured to a Custom path.
After following the installation steps Hot reloading did not work in my proj. Neither it worked in a mentioned SwiftUI example project.
When i pressed cmd + s it spit out a warning-like message in the log: Could not locate derived data. Is the project under your home directory?
When I inspected the code that logged above message it was obvious that it was due to derived data folder not being resolved.
Long story short after reconfiguring XCode back to default DerivedData path Hot reloading started to work.
I thought you may be interested to add a note regarding this to installation docs.
Thanks you for the lightning and feel free to close this issue.

One more thing.
Just having a reference to bazel in the monorepo-like directory structure where ios project lives - breaks hot reloading. Even though ios project itself does not use bazel.
I removed bazel folders that HotReloading complained about in logs and it began working.

Hi, yes if you can think of a way a custom derived data path could be supported let me know. In theory if you don't run the app and just use "standalone" injection it should work though. Re: Basel, I should really remove that "support" as I think it no longer works.

Not sure if this still works: https://github.com/NSHipster/xcderiveddata
There are similar posts on the web all of which are quite old though.
Anyhow anybody also using Custom path and  seeing Could not locate derived data. Is the project under your home directory? message should be able to find this issue and know to switch to default path.
Maybe elaborate on the log message and add a sentence saying that Custom paths may fail to resolve even when it is under Home directory. e.g: mine was ~/tmp/xcode/deriveddata.
If you like an idea of an extended message lmk I can send a pull req.
Thanks again for the lib!

There doesn't seem to be a non-awful solution to this problem involving xcodebuild which is what the article you posted suggests. Would you settle for an environment variable where you specify the custom derived data path in the scheme of your app. That's not great but it would be a reasonably small change..

I switched to using default DerivedPath settings. My use case for a custom path was to pipe xcode's output to ~/tmp so that I can easily clear all my temp files with 1 command.
I think adding an environment var may only complicate things more due to split brain and thus increase maintenance.
It may be best left "as is" since there probably aren't many people with custom DerivedData path.
My 2 cents: I would change Could not locate derived data. Is the project under your home directory? log message by adding if you are using custom DerivedData path - this is not supported - or refer to this note: <env-var-for-derived-data-url>.
This will clearly guide a developer without needing to dive into lib's source code to figure out the reason for the printed log.

I couldn't replicate getting the message you were seeing but not supporting custom DD has always bugged me and I've pushed a new commit to the HotReloading project that allows you to specify a custom DerivedData path in the environment variable INJECTION_DERIVED_DATA if you want to try it out. If this fixes it or, if you're using the app rather than the HotReloading project I can roll a new release candidate.

I just checked it out by importing a package with 42a7979 commit's hash and confirming that setup with INJECTION_DERIVED_DATA worked on my side.
Thanks!
Im closing the issue with no further suggestions.

Thanks for checking it out. I'll release some time, likely when Xcode 16.comes out.


Graphs package: Variable renaming, BFSTest bug fix, type-safe operations

Just basic renaming of variables, methods and classes to adhere to the Java naming convention
Replaced type-unsafe operations (like primitive arrays of a generic collection)
Also, fixed this issue (https://github.com/ashish-chopra/Structures/issues/13)
:)
Regards,
Havan

Thank you Havan for pointing the problem with the test case. I will accept the solution for it. And other parts of your pull request may not completely align to the strategy of this repo. Let me re-iterate here what is our take:

We started this repository to compile a set of data structures as given in the popular book "Algorithms 4 Edition, by Robert Sedgwick". There is a corresponding Coursera course on it. As some of the students from same course are referring it. So we will keep the API for the data structure same as in the book because when we relate the book literature with the examples in the repo, students can find similarity. For e.g. for standard data structures like Graph, G.V(), G.E() will be used. When we are coding any applications using them, we can make our own APIs, as you did for 'ConnectedComponents'.

I can sense that your intention to rename methods to align with Java convention, but that is not our main objective here. We want to keep the APIs similar to the book.

When it comes to graphs, we normally use mathematical notation for vertices like 'u', 'v', 'w' for arbitrary vertices; s for source, G for graph. But changing G and s with what you have done as 'graph' and 'source' respectively is cool. But make sure we still refer to any arbitrary vertices with single letter variable only; even inside the API. Sometimes the popular notations makes code clear than having verbose names. I know, there is no right or wrong here as naming is always a controversial topic in programming.

Same with  we want to preserve the API standards as per the book.

When you introduced type-safe operation, you included the Java's collection library within the vanilla data structure. Since the idea behind these data structures is to built structures from foundation level and without using any existing shoulder of giants. So, I didn't use it and use the basic foundation constructs only. Also, arraylist would add its own memory overhead too in the data structure.

I accept the pull request and revert the API convention as stated above Remember Java is not our focus here. Algorithm is.

If you want to keep contributing and extending this repo with us, let me know. I will share some of the areas we were thinking of. It may so happen you suggest something novel in those directions?
Thanks
Ashish

Hi Ashish,
Perhaps you could add the fact that the main aim of this repo is to compile a set of data structures from Robert Sedgewick's book (and the Coursera course), and that the focus is to maintain as much similarity as possible to the original code samples and API to the README.md. Forgive me if this information is elsewhere, and I haven't noticed it.
I completely understand your rationale behind the naming. I'll revert the changes made to the API, retaining only changes that definitely make the code more readable.
Just to be clear, changes I'll be reverting:

graph -> G, getNoOfVertices() -> V(), getNoOfEdges() -> E()
Usage of data structures from the collection framework
T -> Item

i.e.
Commits:

0d1d1f20bb96394315d86053791bfabc84d12951
7b75fdd12d538e02e734e9792c3c1175bdfcaad9
Some manual reverting

Thanks :)

Good suggestion Havan, i will mention this fact in some way in readme.md. Also, you need not do the changes, as i want to keep some of tour naming changes, so i will revert the remaining in the next commit.
Thanks.


Set TCP keepalive on Redshift (#782)

Set TCP keepalives on Redshift (and provide it as an option on Postgres). Users can disable setting the  value if they want by explicitly setting the keepalives_idle parameter in the connection profile to 0, which will make it use the system default.
This should fix #782

@ryanmcdonnell If you're interested in testing out a branch that may fix your connectivity issues, you can give the tcp-keepalives branch a try. I'd love to hear any feedback!


archive.php not fully translatable

I just noticed that the following does not appear translatable:
Daily Archives: %s
Monthly Archives: %s
Yearly Archives: %s
Author Archives: %s
I guess this is merely an oversight but would be nice if you could fix this.

roots.pot is long overdue for an update.. i'll do that now

Much appreciated.

done. pinging everyone who has committed translations:
@cabgfx @ivuorinen @johnraz @emilo73 @maced0n @herko @weslly @karalamalar

Thanks for the ping. I updated Turkish translation

Yeah, nevermind the first two commit/references - had some trouble merging/rebasing :poop:
Pull req #249: https://github.com/retlehs/roots/pull/249

I have updated the Italian translation.


Stop tracking build directory in repo

Can I recommend not tracking the build directory in this repo? It will bloat it unnecessarily over the long term. I think making a separate repo for the latest builds would be a good design. Thanks!

Also added an npm watch task for rebuilding when ./src files are changed, can be run via $ npm run watch


watch + services

PR includes:

cmd/guard-service/service.go that implements a service cache class  - maintaining a record per deployed service
All per-service actions of the guard-service are implemented by this class
Add Watch to KubeMgr

I will need to add at least part of guard-service/main.go  - as it is where var log is defined and initialized.

Better to leave code coverage to the next PR, cmd/guard-service/main.go should be better covered by then.

Also might help to have some diagram description of the key interfaces and their interactions with the rest of the Knative objects?

@maximilien see https://github.com/knative-sandbox/security-guard/blob/main/ARCHITECTURE.md and advise what needs to be added

The coverage report seems wrong... shows main is 0% tested after adding a test

/test all

/retest


add ISEL for XORPS_XMMxud_XMMxud

I'am trying to add support for some xorps instructions on xmm registers, e.g.
0f 57 c1    xorps xmm0, xmm1

Following the document, I got its string representation as:
(AMD64 0 3 (BYTES 0f 57 c1)
    XORPS_XMMxud_XMMxud
        (WRITE_OP (REG_128 XMM0))
        (READ_OP (REG_128 XMM0))
        (READ_OP (REG_128 XMM1)))

and its instruction selection has name ISEL_XORPS_XMMxud_XMMxud, that leads to this tiny change.
What I have still do not understand is the semantics of xorps and its operands (seeing at representation given by xed): while xorps has its operands of packed single-precision floating point type, XMMxud means that the type is packed unsigned dword interger. This difference may not lead to any wrong lifting result, but why does xed do this way?

 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.

May as well also as VXORPS.

I've updated the commit to add andps instruction

As to why XED does things the way it does, I suppose you could file an issue on https://github.com/intelxed/xed :-P


The Spyder crash related to the Qwidget

Hi,
When I wanted to look at inside a numpy array at variable explorer, the Spyder crashed with this error in the console:
QWidget::repaint: Recursive repaint detected
I realized it happens when I scroll fast inside the array, it does not happen when I scroll slowly

I can't reproduce it, sorry.


Support Management with Quadratures other than Trapezoid

In brief, if I want to use any other quadrature than trapezoid in the hovercraft example, the constraints with derivatives are not considered in the model. The minimal working example contains 4 cases (to comment/uncomment):

Case 1: Simply adding quadrature to the integral and playing with the number of supports generated by the integral function - the derivaties constraints appear in the transcribed JuMP model, but are not considered for solving the problem
Case 2: Changing the overall number of supports for the infinite parameter from 61 to 4 - again, completely wrong results as if the derivatives were not considered at all
Case 3. I adjusted the integrals to evaluate the values of the integrals between waypoints at times stored in tw (keeping the overall number of supports at 4). This gave me slightly better results, but still weird things happen in between the waypoints. In principle, the derivatives are not taken into account, only the constraints relating to the waypoints are considered.
Case 4. To see whether the waypoints are taken into account I ran the default example and used the results as waypoints for the code with quadratures. As a result, I got the correct plot. The waypoints were obtained from the default example and used in the example with Gauss-Legendre quadrature with 100 supports inside the integral and 4 supports for time. This also works if I use one expression for integration over the whole interval.

The code with all the cases:
using InfiniteOpt, JuMP, Ipopt
using Plots

# Initialize the model
m = InfiniteModel(optimizer_with_attributes(
    Ipopt.Optimizer,
    "print_level" => 3,
))
#########CASE 1####################################
# Set the parameters, variables, and the objective - one integration over the
# whole period, 61 supports for time, default waypoints
xw = [1 4 6 1; 1 3 0 1] # positions waypoints
tw = [0, 25, 50, 60]    # times

@infinite_parameter(m, t in [0, 60],num_supports=61)

@infinite_variable(m, x[1:2](t), start = 1) # position
@infinite_variable(m, v[1:2](t), start = 0) # velocity
@infinite_variable(m, u[1:2](t), start = 0) # thruster input

@expression(m, Integ, ∫(u[1]^2 + u[2]^2, t, eval_method=GaussLegendre))
@objective(m, Min, Integ)
# ########CASE 2#####################################
# # Set the parameters, variables, and the objective - one integration over the
# # whole period, 4 supports for time, default waypoints
# xw = [1 4 6 1; 1 3 0 1] # positions waypoints
# tw = [0, 25, 50, 60]    # times
#
# @infinite_parameter(m, t in [0, 60],num_supports=4)
#
# @infinite_variable(m, x[1:2](t), start = 1) # position
# @infinite_variable(m, v[1:2](t), start = 0) # velocity
# @infinite_variable(m, u[1:2](t), start = 0) # thruster input
#
# @expression(m, Integ, ∫(u[1]^2 + u[2]^2, t, eval_method=GaussLegendre))
# @objective(m, Min, Integ)
#
# ########CASE 3#######################################
# # Set the parameters, variables, and the objective - integration between the
# # default waypoints, 4 supports for time
# xw = [1 4 6 1; 1 3 0 1] # positions waypoints
# tw = [0, 25, 50, 60]    # times
#
# @infinite_parameter(m, t in [0, 60],num_supports=4)
#
# @infinite_variable(m, x[1:2](t), start = 1) # position
# @infinite_variable(m, v[1:2](t), start = 0) # velocity
# @infinite_variable(m, u[1:2](t), start = 0) # thruster input
#
# # Specify the objective between the default waypoints
# @expression(m, Integ[i=1:length(tw)-1], ∫(u[1]^2 + u[2]^2, t, tw[i], tw[i+1], eval_method=GaussLegendre,num_supports=100))
# @objective(m, Min, Integ[1]+Integ[2]+Integ[3])
# ########CASE 4##########################################
# requires running InfiniteOptDefaultOCP.jl first
# Set the parameters, variables, and the objective - one integration, multiple waypoints
# xw = [x_opt[1]';x_opt[2]']
# tw = supports(t)
#
# @infinite_parameter(m, t in [0, 60],num_supports=61)
#
# @infinite_variable(m, x[1:2](t), start = 1) # position
# @infinite_variable(m, v[1:2](t), start = 0) # velocity
# @infinite_variable(m, u[1:2](t), start = 0) # thruster input
#
# @expression(m, Integ, ∫(u[1]^2 + u[2]^2, t, eval_method=GaussLegendre))
# @objective(m, Min, Integ)
#
######################## REST OF THE MODEL#####################################
# Set the initial conditions
@BDconstraint(m, initial_velocity[i = 1:2](t == 0), v[i] == 0)

# Hit all the waypoints
@BDconstraint(m, [i = 1:2, j = eachindex(tw)](t == tw[j]), x[i] == xw[i, j])

# Derivatives
@constraint(m, [i = 1:2], ∂(x[i], t) == v[i])
@constraint(m, [i = 1:2], ∂(v[i], t) == u[i])

# Optimize the model
optimize!(m)

# Get the results
if has_values(m)
    x_opt = value.(x)
end

# # Plot the results
scatter!(xw[1, :], xw[2, :], label = "Waypoints - quadrature")
plot!(x_opt[1], x_opt[2], label = "Trajectory - quadrature",ls=:dashdot,lw=4,lc = :blue)

Desktop:

OS: MS Windows 10
Package Versions  JuMP v0.21.4, InfiniteOpt v0.3.1 #master (https://github.com/pulsipher/InfiniteOpt.jl), Ipopt v0.6.3
Julia Version: 1.4.2

I am attaching a document with all the plots I got (
InfiniteOpt_quadratures.pdf). I am not getting any errors when running the cases, but let me know if I should provide more information.

Thank you for reaching out and trying InfiniteOpt.jl! The behavior described above can be explained via how the time supports are managed in building the model, and how this behavior differs between using trapezoid rule and Gauss quadrature. In the above example this leads to certain time points not being penalized in the objective which allows large thrust values to occur at those instances leading to a result one would likely not expect. Let me illustrate this with the cases below, notice the added comments on how supports are added and used.
Default Model (using trapezoid rule):
using InfiniteOpt, JuMP, Ipopt

# Waypoints
xw = [1 4 6 1; 1 3 0 1] # positions
tw = [0, 25, 50, 60]    # times

# Initialize the model
m = InfiniteModel(optimizer_with_attributes(Ipopt.Optimizer, "print_level" => 0))

# Set the parameters and variables
@infinite_parameter(m, t in [0, 60], num_supports = 61) # adds 61 supports at [0, 1, ..., 60]
@infinite_variable(m, x[1:2](t), start = 1)
@infinite_variable(m, v[1:2](t), start = 0)
@infinite_variable(m, u[1:2](t), start = 0)

# Specify the objective
@objective(m, Min, integral(u[1]^2 + u[2]^2, t)) # uses trapezoid rule which will incorporate all supports added before `optimize!`

# Set the constraints (this will incorporate all supports added before `optimize!` is invoked)
@BDconstraint(m, initial_velocity[i = 1:2](t == 0), v[i] == 0) # adds a support 0 to t if not already there (which it is in this case)
@constraint(m, [i = 1:2], deriv(x[i], t) == v[i])
@constraint(m, [i = 1:2], deriv(v[i], t) == u[i])
@BDconstraint(m, [i = 1:2, j = eachindex(tw)](t == tw[j]), x[i] == xw[i, j])

# Optimize the model (will make fresh transcription model formatted as a JuMP model and then solved)
optimize!(m)

# Plot results (not shown here for conciseness)

Thus, invoking this and plotting obtains the trajectory we expect.
Adding Supports and Using Quadrature (leads to many ignored terms in the objective):
using InfiniteOpt, JuMP, Ipopt

# Waypoints
xw = [1 4 6 1; 1 3 0 1] # positions
tw = [0, 25, 50, 60]    # times

# Initialize the model
m = InfiniteModel(optimizer_with_attributes(Ipopt.Optimizer, "print_level" => 0))

# Set the parameters and variables
@infinite_parameter(m, t in [0, 60], num_supports = 61) # adds 61 supports at [0, 1, ..., 60]
@infinite_variable(m, x[1:2](t), start = 1)
@infinite_variable(m, v[1:2](t), start = 0)
@infinite_variable(m, u[1:2](t), start = 0)

# Specify the objective using Gauss quadrature
# Note this will only incorporate the support points it generates and will ignore the 61 supports added above
@objective(m, Min, integral(u[1]^2 + u[2]^2, t, eval_method = Quadrature)) # adds 10 Gauss quadrature nodes to the supports

println(num_supports(t)) # prints 71 (now our model has the 61 supports we added + the 10 Gauss quadrature ones)

# Set the constraints (this will incorporate all 71 supports)
@BDconstraint(m, initial_velocity[i = 1:2](t == 0), v[i] == 0) # would add a support 0 to t if not already there, but this has already been added
@constraint(m, [i = 1:2], deriv(x[i], t) == v[i])
@constraint(m, [i = 1:2], deriv(v[i], t) == u[i])
@BDconstraint(m, [i = 1:2, j = eachindex(tw)](t == tw[j]), x[i] == xw[i, j])

# Optimize the model (will make fresh transcription model formatted as a JuMP model and then solved)
optimize!(m)

# Plot results (not shown here for conciseness)

Now we obtain a very different result, however it does satisfy all the constraints (including the derivatives). This v shape occurs because we are only penalized to use thrust on the 10 Gauss quadrature points [0.782804144485, 4.04809899933, ..., 59.2171958555] thus the thrust given at these instances is 0 and any amount is given at the other time points without penalty allowing the hovercraft to hit all the needed waypoints. Visually this is shown in the plot below. Notice that all the Gauss time points have 0 thrust and large amounts of thrust are used liberally at the other points.

Only Use Quadrature Supports:
using InfiniteOpt, JuMP, Ipopt

# Define function to find the closest time point
function findnearest(a, x)
    if isempty(a)
        return
    end
    a = sort(a)
    idx = findfirst(v -> v >= x, a)
    if idx isa Nothing
        return last(a)
    elseif idx == 1
        return a[idx]
    elseif abs(a[idx] - x) <= abs(a[idx - 1] - x)
        return a[idx]
    else
        return a[idx - 1]
    end
end

# Waypoints
xw = [1 4 6 1; 1 3 0 1] # positions
tw = [0, 25, 50, 60]    # times (we will find the closest quadrature points further down)

# Initialize the model
m = InfiniteModel(optimizer_with_attributes(Ipopt.Optimizer, "print_level" => 0))

# Set the parameters and variables
@infinite_parameter(m, t in [0, 60]) # don't add any supports yet
@infinite_variable(m, x[1:2](t), start = 1)
@infinite_variable(m, v[1:2](t), start = 0)
@infinite_variable(m, u[1:2](t), start = 0)

# Specify the objective using Gauss quadrature and specify we want 61 supports
# Note this will only incorporate the support points it generates and will ignore any others we add elsewhere
@objective(m, Min, integral(u[1]^2 + u[2]^2, t, eval_method = Quadrature, num_supports = 61)) # adds 61 Gauss quadrature nodes to the supports

# Set the constraints (this will incorporate all supports)
@BDconstraint(m, initial_velocity[i = 1:2](t == 0), v[i] == 0) # this adds a support of 0 to t (now we have 62 supports)
@constraint(m, [i = 1:2], deriv(x[i], t) == v[i])
@constraint(m, [i = 1:2], deriv(v[i], t) == u[i])
twc = [findnearest(supports(t), w) for w in tw] # match the waypoint times to the closest support
@BDconstraint(m, [i = 1:2, j = eachindex(twc)](t == twc[j]), x[i] == xw[i, j])

# Optimize the model (will make fresh transcription model formatted as a JuMP model and then solved)
optimize!(m)

# Plot results (not shown here for conciseness)

This works as we would intuitively expect since all the supports (except the first) are included in the objective integral. Excluding the first is ok since the initial condition does not correspond to a degree of freedom in the transcripted problem.
Pulling this all together, the takeaway is that quadrature can be used to evaluate integrals, but this should be done with caution knowing that any supports added to the model elsewhere will not be included in the integral approximation since quadrature exacts that the included supports be at particular points that are orthogonal to the polynomial basis. For this reason, we employ trapezoid rule by default since it can and will include all the supports that are added to the model.
I hope this clarifies your issues you were running into. Suggestions and/or contributions to make this behavior more clear in our documentation would be appreciated.

After some more thinking, there are 2 potential contributions that could be made to enable measures that use quadrature to consider additional user-specified supports (outside those exacted by the quadrature method):

Add an option for such measures to be broken up into sub-intervals according to the other supports and then apply the appropriate quadrature methods to each sub-interval. (i.e., essentially treat the additional supports as finite elements)
Implement an evaluation method for Gauss quadrature over multiple nodes as described in section 2.3 of https://www.emis.de/journals/ETNA/vol.13.2002/pp119-147.dir/pp119-147.pdf (this is more rigorous, but will require a lot of mathematical work to derive the needed weights and nodes).

Such contributions would automate the consideration of user-defined supports that are used in addition to quadrature nodes.

Hi, thank you, the explanation makes sense. I got so focused on the derivatives that I lost the track of how the integral was calculated!
I agree with your second comment, because I am not exactly happy with the fact that I have to adjust the time points for the waypoints if I want to use the quadrature. I think the expected behaviour would be to keep the waypoints as defined by the user (like I really want the hovercraft to be in the position [4,3] exactly at time 25, not 25.0001 (or whatever the closest value)). I will have a look at that and the best way to implement this behaviour, thanks for the links (also tagging @LucianNita).
For now, though, I think it would be good to add an explanation in the documentation of how the supports are taken into account. I came up with a minimal example to show this behaviour, but didn't have time yet to describe it properly so I could make a pull request. The outline would be along the lines:
# Create a model, with one variable and an infinite parameter with a given number of supports
m = InfiniteModel()
@infinite_parameter(m, t in [0, 10],num_supports = 11)
@infinite_variable(m, u(t))
# Create an objective function with the default trapezoid integration
@objective(m,Min,integral(u^2, t))
# Get the transcribed model
build_optimizer_model!(m)
mBT1 = optimizer_model(m)

And here show how many supports there are, how the variable u is transcribed, and how the objective function of the transcribed model looks like:
supports(t) ###gives: [0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0]
transcription_variable(u)  ###VariableRef[u(support: 1), u(support: 2), u(support: 3), u(support: 4), u(support: 5), u(support: 6), u(support: 7), u(support: 8), u(support: 9), u(support: 10), u(support: 11)]
objective_function(mBT1) ###gives  0.5 u(support: 1)² + u(support: 2)² + u(support: 3)² + u(support: 4)² + u(support: 5)² + u(support: 6)² + u(support: 7)² + u(support: 8)² + u(support: 9)² + u(support: 10)² + 0.5 u(support: 11)²

All the supports are used in both the objective function and the transcribed variable. Then we can readjust the model:
set_objective_function(m,integral(u^2, t,eval_method=Quadrature))
build_optimizer_model!(m)
mBT2 = optimizer_model(m)

and show the same things agains: the number of supports, the transcription of u and the new objective function:
supports(t) ###gives: [0.0, 0.130467357414, 0.674683166555, 1.0, 1.6029521585, 2.0, 2.83302302935, 3.0, 4.0, 4.25562830509, 5.0, 5.74437169491, 6.0, 7.0, 7.16697697065, 8.0, 8.3970478415, 9.0, 9.32531683344, 9.86953264259, 10.0]
transcription_variable(u)  ###VariableRef[u(support: 1), u(support: 2), u(support: 3), u(support: 4), u(support: 5), u(support: 6), u(support: 7), u(support: 8), u(support: 9), u(support: 10), u(support: 11), u(support: 12), u(support: 13), u(support: 14), u(support: 15), u(support: 16), u(support: 17), u(support: 18), u(support: 19), u(support: 20), u(support: 21)]
objective_function(mBT1) ###gives  0.33335672154344104 u(support: 2)² + 0.7472567457529024 u(support: 3)² + 1.0954318125799103 u(support: 5)² + 1.346333596549982 u(support: 7)² + 1.4776211235737642 u(support: 10)² + 1.4776211235737642 u(support: 12)² + 1.346333596549982 u(support: 15)² + 1.0954318125799103 u(support: 17)² + 0.7472567457529024 u(support: 19)² + 0.33335672154344104 u(support: 20)²

Here the integral uses only a subset of supports whereas the infinite variables is transcribed using all of the supports. I also have a plot for that, but I am not exactly happy with it at the moment:

This will not happen if we let the integral do all the supports and no supports are defined explicitly:
@infinite_parameter(m, t in [0, 10])
@infinite_variable(m, u(t))
@objective(m,Min,integral(u^2, t,eval_method=Quadrature))

Then we get the same supports for the infinite variable and the integral:
supports(t) ###gives: [0.130467357414, 0.674683166555, 1.6029521585, 2.83302302935, 4.25562830509, 5.74437169491, 7.16697697065, 8.3970478415, 9.32531683344, 9.86953264259]
transcription_variable(u)  ###VariableRef[u(support: 1), u(support: 2), u(support: 3), u(support: 4), u(support: 5), u(support: 6), u(support: 7), u(support: 8), u(support: 9), u(support: 10)]
objective_function(mBT1) ###gives  0.33335672154344104 u(support: 1)² + 0.7472567457529024 u(support: 2)² + 1.0954318125799103 u(support: 3)² + 1.346333596549982 u(support: 4)² + 1.4776211235737642 u(support: 5)² + 1.4776211235737642 u(support: 6)² + 1.346333596549982 u(support: 7)² + 1.0954318125799103 u(support: 8)² + 0.7472567457529024 u(support: 9)² + 0.33335672154344104 u(support: 10)²

Therefore, using quadratures other than trapezoid requires a bit of care if there are user-defined supports in the problem. This explanation would take care of the issue that I ran into with the optimal control example - there are user defined supports because of the waypoints, so using a quadrature other than trapezoid is not straightforward.
The explanation is quite a mouthful, so let me know what you think and I can work on including it in the documentation (without the plot, unless I come up with something nicer).

I am glad I could clear things up. (I'll edit the title of this issue as a question accordingly for others to find)
With regard to contributing a method(s) to account for user-defined supports, I agree that this is a worthwhile addition. Discussion on this further can be done in #86 where Tillmann has kindly provided the basic mathematical information for us.
With regard to the proposed documentation contribution, I think that would be a great addition! I suggest placing this contribution on the measure page within the "Evaluation Methods" section in its own subsection called "A Note on Support Management." The above draft looks like a good starting point to me. I would also suggest mentioning this behavior is also true when using MC sampling to evaluate an integral. Once you have a contribution ready (or close to ready), kindly make a pull request and we can continue the conversation there.

As an update, with #114 we now have a finite element Lobatto quadrature method FEGaussLobatto() that decomposes the integral over finite elements dictated by user-defined supports to avoid the confusion discussed above. This is also the new default for finite intervals when Quadrature() is specified.


Avoid fatal errors at import-time from koalas

For #541
This PR will prevent the call to koalas.set_option from crashing import.
This doesn't solve the root cause of #541, but it will hopefully prevent a crash at import-time resulting from that issue.

I've worked up an alternate solution to this issue in #543
I think both have merits, will discuss further and decide which path to take.

@dsherry thanks for your help and putting up a fix. We're going to go ahead with solution #543 because it avoids the unnecessary try/except.


train the magicpoint with my own data

Can I train the magicpoint with my own data rather than coco/kitti?what should I modify?

You can train mg model with synthetic data set first，than train it on any other data set


Cipher suites

Description
PowerScale and Authorization use not recommended Cipher Suites to communicate
GitHub Issues
List the GitHub issues impacted by this PR:

GitHub Issue #

Checklist:

[X] I have performed a self-review of my own code to ensure there are no formatting, vetting, linting, or security issues
[ ] I have verified that new and existing unit tests pass locally with my changes
[ ] I have not allowed coverage numbers to degenerate
[ ] I have maintained at least 90% code coverage
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[X] Backward compatibility is not broken

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration

[X] Verified the all cipher suite in A grade now

this branch sign issue , created new branch and PR https://github.com/dell/karavi-authorization/pull/282


Add missing includes of stdexcept header.

It's needed to build the project with GCC 10.

Thanks!


[zh] sync 2024-12-13-memory-manager-moves-to-ga/

Add zh text to this blog:
content/zh-cn/blog/_posts/2024-11-11-memory-manager-moves-to-ga/index.md

See preview

The original is not a draft now and the date has been synced.
/unhold

/lgtm


Analyse legacy RCS Asset system with regards to current HardwareAsset model

The main intent of this issue would be to analyse the Radio Comms asset system with regards to the current data model to determine what field(s) would need to be added/changed in the current model. Undertake with regards to the data model outlined here: https://confluence.dpaw.wa.gov.au/display/OIM/Asset+System

Considerations:

The main RCS assets classes are Radio, Satellite Phone, 2-way Satellite Device, BGAN, SIM, Vehicle Tracking Device, Other Asset type.
Subtypes exist within the above classes.
They record Manufacturer (equiv. to Vendor in OIM CMS assets) as well as Supplier (no current equiv.)
RCS assets can be installed at sites, in vehicles, or assigned to people (DPaW, other agencies, contractors).
RCS assets seem to be able to have multiple parts with different serial numbers (e.g. UHF radios). They might be open to changing how this is modeled if we have a better solution.


breaking: multiple elements in a single response

There are many changes, but what's important is

Supports multiple elements in one RSC payload

One single input string

entries.tsx is changed

renderEntries instead of getEntry

Explicit refetch on client
Refactor waku/router

Do not cache on client
Pass path as a prop

Close #119
Close #84
Close #104
Close #85
Check list:

[x] examples/01
[x] examples/02
[x] examples/03
[x] examples/04
[x] examples/05
[x] examples/06
[x] examples/07
[x] examples/08
[x] examples/09

Hmm, I wonder if we should have client based caching option...


fix flaky WaitAllStrategyTest#appliesOuterTimeout test

@kiview no, why? :)

So the flaky behaviour was, because of both timeouts being 10 ms at first?

@kiview rather too low outer timeout (20ms)


NamedTuple Optional np.ndarray field type does not compile

Reporting a bug

[x] I have tried using the latest released version of Numba (most recent is
visible in the change log (https://github.com/numba/numba/blob/master/CHANGE_LOG).
[x] I have included a self contained code sample to reproduce the problem.
i.e. it's possible to run as 'python bug.py'.

It seems that numba does not pass the type of a namedtuple; in this case it is an Optional[np.ndarray].
This might be related to https://github.com/numba/numba/issues/3972 .
In the example below, the calls to f work, the call to g errors out.
import numba as nb
import numpy as np

from typing import NamedTuple,Optional
class A(NamedTuple):
    a : Optional[np.ndarray] = None

@nb.njit
def f(p:A):
    a = np.empty((0,)) if p.a is None else p.a
    return len(a)

p = A(a = None)
assert f(p)==0

p = A(a = np.zeros(3))
assert f(p)==3

@nb.njit
def g(p:A):
    a = p.a
    if a is not None:
        return len(a)

p = A(a = None)
g(p)

---------------------------------------------------------------------------
TypingError                               Traceback (most recent call last)
<ipython-input-74-725a4aecb7f3> in <module>
     24
     25 p = A(a = None)
---> 26 g(p)

~/miniconda3/lib/python3.9/site-packages/numba/core/dispatcher.py in _compile_for_args(self, *args, **kws)
    418                 e.patch_message(msg)
    419
--> 420             error_rewrite(e, 'typing')
    421         except errors.UnsupportedError as e:
    422             # Something unsupported is present in the user code, add help info

~/miniconda3/lib/python3.9/site-packages/numba/core/dispatcher.py in error_rewrite(e, issue_type)
    359                 raise e
    360             else:
--> 361                 raise e.with_traceback(None)
    362
    363         argtypes = []

TypingError: Failed in nopython mode pipeline (step: nopython frontend)
No implementation of function Function(<built-in function len>) found for signature:

 >>> len(none)

There are 22 candidate implementations:
      - Of which 22 did not match due to:
      Overload of function 'len': File: <numerous>: Line N/A.
        With argument(s): '(none)':
       No match.

During: resolving callee type: Function(<built-in function len>)
During: typing of call at <ipython-input-74-725a4aecb7f3> (23)

File "<ipython-input-74-725a4aecb7f3>", line 23:
def g(p:A):
    <source elided>
    if a is not None:
        return len(a)
        ^

Workaround, a bit wordier to satisfy static analyzers:
@nb.njit
def f(p:A):
    maybe_a=p.a
    has_a = maybe_a is not None
    _a = maybe_a if maybe_a is not None else np.empty((0,)) # the default value must support all ops that non-None a does
    return len(_a)
p = A(a = None)
assert f(p)==0

Thanks for the report. I think that this is expected behaviour. In this case:
import numba as nb
from collections import namedtuple
import numpy as np

A = namedtuple('A', 'a')

@nb.njit
def g(p):
    if p.a is not None:
        return len(p.a)

p = A(None)
g(p)

in the predicate the analysers can only see that p is live and that there's a getattr on it, they've no information about the value of p (this applies to almost all of Numba's pre-type-inference transforms). The result is that the branch then body cannot be removed from the Numba IR and so when type inference does run (and it will try and execute all branches with the known types) and it figures out that p.a is None, it aborts compilation as there's no len(None).
In the second case:
import numba as nb
from collections import namedtuple
import numpy as np

A = namedtuple('A', 'a')

@nb.njit
def g(p):
    if p.a is None:
        a = np.empty((0,))
    else:
        a = p.a

p = A(None)
g(p)

the same logic applies as above, but this time the code blocks in the then and else of the branch are valid to use with a None type as the assignment to a is always valid.
The "wordier" version works because it relies on the same "both sides of the branch are valid" as above (and has_a is dead?). If the "wordier" version was augmented to have a len on one side of the branch it would also fail.
import numba as nb
from collections import namedtuple
import numpy as np

A = namedtuple('A', 'a')

@nb.njit
def f(p):
    maybe_a=p.a
    has_a = maybe_a is not None
    if has_a:
        _a = len(maybe_a)
    else:
        _a = 0
    return np.empty(_a)

p = A(None)
f(p)

hope this helps to explain it.

Well, by reporting this I was hoping to be redirected/opening a feature request to have it just work. I'm not expecting that it'll be handled anytime soon.
I guess in numba it's hard to make a variable have two possible types? I.e. it's not possible in the same function to go from optional[t] to t in a branch and none in another. And on top of that, branch removal happens before typing.

I think it'd be possible with some effort to make the analysers deal with this case, the type information about the NamedTuple can be obtained if it is an argument as it is in the above.

Also looks like collections.namedtuple gained defaults keyword in py3.7 and we didn't realize it until now.


Automatic update of Status Pages

⚠ Please verify that this feature request has NOT been suggested before.

[X] I checked and didn't find similar feature request

🏷 Feature Request Type
UI Feature
🔖 Feature description
Right now, status of monitored devices, is only automatically updated on the Dashboard. If I configure a status page with same monitored devices, this page is not updated unless I press F5.
Status page:

Dashboard:

✔ Solution
Uptime Kuma should also update all monitored devices on the status pages, so the view reflects up/down status in realtime.
❓ Alternatives
Right now I can only use the Dashboard to view realtime status, but the status page is more clean for quick glance.
📝 Additional Context
Tested on Firefox 108.0.1 and Edge 108.0.1462.54

If you're using Chrome then you can download the "Easy Auto Refresh" extension - I use it for all my auto-refresh needs.

@AndreKotze Thanks for the suggestion, however I'm a Firefox user :).
Also, since Uptime Kuma auto-refreshes the dashboard, I also think it should do the same with status pages.

Duplicate of https://github.com/louislam/uptime-kuma/issues/978


devbio-napari-env for multi-users

Hi @haesleinhuepf , thanks a lot for your work on this great package!
I work in an imaging facility, and would like to install devbio-napari-env for all users in a read-only environment.
I have installed miniforge for all users (it gets installed on C:\conda\miniforge3), and I managed to successfully create other environments in read-only mode (e.g. cellpose).
However, when I run
conda create --name devbio-napari-env napari=0.4.19 python=3.9 devbio-napari pyqt -c conda-forge -c pytorch
I am only able to activate devbio-napari-env and open naparia when I am in an administrator command window.
In a normal command window, activating the environment gives:
H:\>conda activate devbio-napari-env
Access is denied.
The system cannot find the file specified.
Could Not Find C:\conda\miniforge3\envs\devbio-napari-env\Library\etc\OpenCL\vendros\temp.txt

(devbio-napari-env) H:\>

It seems the environment is activated anyhow.
However, running naparia gets stuck and never opens the napari interface.
Any idea what might go wrong here? In cellpose environemnt, I had to modify the users right to allow writing access in the __ pycache __ folder, but in this case this also doesn't work.
Thanks a lot for the help!

Hi @grinic ,
great idea! Thanks for reaching out! I've been working in a similar core facility for some years and we struggled often with users modifying installations - and breaking stuff for other people. That's why I recommend not installing Python, Napari or Fiji in a way that multiple users can access it. However, there is a way out: When a Windows user logs into a system for the first time, you can copy apps to their folder, where they have write-access. Let's see if git-bob knows how to do this:
git-bob comment on how to achive this: I would like to configure Windows in a way that whenever a user logs into the system for the first time, some apps are copied to their profile, e.g. Fiji, Napari, Python, and they can modify the installation without the risk to screw things up for others using the same computer, because the apps are stored in their user space. How can I do this?

Thanks for the tip! I will have a look and see if we can set it up properly.
In general though, we are working on virtual machines that do not have a lot of disk space (data access is directly to the servers), so copying the folder for every user doesn't seem like a scalable solution?


Execution failed for task ':app:processAlpha32DebugManifest'.

FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':app:processAlpha32DebugManifest'.

Build cancelled during executing task ':app:processAlpha32DebugManifest'

why？and how to revaluation？
i need help，thanks！

run clean and is good


No scanning on mobile browser

I'm back. I am having issues getting the scanner to work on my mobile phone in the browser. I can't seem to get the scanner working on my phone when I have it deployed on github. I have got it to work from the browser but this too is very unreliable(Renering black screen on QRScanner.show() randomly, not scanning consistently). It also seems to crash when the camera is open and 'scanning' for too long. I have tried setting the scan interval also to no avail. I don't know what is the issue and I don't really have an idea where to start. Any ideas?

I'm not a developer, so don't trust everything I say. Anyway, black screens can mean there was no data from the camera. If the camera crashes, this is a further indication something could be wrong with the camera.
If this is the case, it would be nice if the scanner could warn, for example, that there is no data, etc.
Taking too long to scan can be the result of many things, including ambient light.
One way to increase scanning speed, at the cost of CPU time, is an adaptive threshold, but this could be difficult on mobile.

I dont think it is the camera. Again i have it working locally on the pc browser and I have used the mobile browser with other scanning android and web apps so the camera shouldn't be the issue. I'm thinking it may be something to do with how I'm calling the code and maybe there is a loop I'm not ending which is causing using all the memory and then causing the crash. Also on a semi-related note. Does anyone familiar with the code know if any of these functions return promises? Are they accessible or are they scoped to the internals of the package itself?

@Naki21 on what platforms/devices/versions are you experiencing issues? Could you provide a test case to reproduce? (a GitHub repo is best)

I'm facing the same issue. It is working perfectly on desktop browser. But not working on mobile browser (tried chrome and firefox).
I'm getting this error message when I'm trying to scan a qr code from mobile browser:
Error is Object {name: "CAMERA_UNAVAILABLE", code: 5, _message: "The camera is unavailable."} qrscanner
This my code:
`startScan() {
console.log('started qr code scanning');
// Optionally request the permission early
this.qrScanner.prepare()
.then((status: QRScannerStatus) => {
if (status.authorized) {
// camera permission was granted
console.log('authorized');
// start scanning
let scanSub = this.qrScanner.scan().subscribe((text: string) => {
console.log('Scanned something', text);
this.qrScanner.hide(); // hide camera preview
scanSub.unsubscribe(); // stop scanning
});
      // show camera preview
      this.qrScanner.show();

      // wait for user to scan something, then the observable callback will be called

    } else if (status.denied) {
      // camera permission was permanently denied
      // you must use QRScanner.openSettings() method to guide the user to the settings page
      // then they can grant the permission from there
      console.log('denied');
    } else {
      // permission was denied, but not permanently. You can ask for permission again at a later time.
      console.log('temperorly denied');

    }
  })
  .catch((e: any) => console.log('Error is', e));

}`

@amjadm61 – the browser platform of the plugin should not work on mobile browsers. (Even if performance was acceptable, few mobile browsers support WebRTC.)
You'll need to use the cordova version of the plugin for the platform in question (e.g. the iOS, Android, or Windows platform). You can test it by building the cordova app.

I think the original question here has been answered, so I'm going to close this issue.
For any future readers, please feel free to open a new issue or send a PR.


Kubernetes Ingress and Websockets

Do you want to request a feature or report a bug?

Bug (I think)

What did you do?
Migrated from NGINX ingress to Traefik.
NGINX Ingress rules required an annotation in order for websockets to work. I did a search in the Traefik docs for websocket and nothing came up so I apologize if I'm missing something. The NGINX annotation is:
nginx.org/websocket-services:     kafka-control-center

What did you expect to see?
Websockets working over HTTP and HTTPS
What did you see instead?
HTTP - Seeing an HTTP 101 (Upgrade), but websockets not working.
HTTPS - Nothing. NGINX also was doing nothing as well until I added the mentioned annotation.

Defaults from the containous helm chart.

If applicable, please paste the log output in DEBUG level (--log.level=DEBUG switch)
Working on this. I'm running Traefik in an integrated environment so debug logs are quite large and noisy. If this is needed can I get help on what I could search for in Kibana to get what is needed?

Wow, took me a few hours, and I spoke too soon after filing. For anyone else having issues. Make sure other things are looked at. Specifically:

CORS - in my case a UI and API were on different URL's so you need to make sure that's OK
TLS - if you're working with invalid certs like me then make sure you've accepted insecure certs on all domains. You can open the network console and visit any URL's in your browser to accept them.

Sorry for filing too soon.


feat: indy sdk aries askar migration script

feat: setup package
feat: setup some base components

Codecov Report

Merging #1289 (ae07f9e) into main (30857b9) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main    #1289   +/-   ##
=======================================
  Coverage   86.38%   86.38%
=======================================
  Files         798      798
  Lines       19416    19416
  Branches     3321     3321
=======================================
  Hits        16772    16772
  Misses       2470     2470
  Partials      174      174

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@TimoGlastra @genaris I think I will do a release of the askar wrappers and after that it should be ready for a rereview.


Cost Calculation

This update turns back the easy implementation for calculating the token, cost, etc.
USAGES (please refer to GAIA):
from swarm.utils.globals import Time, Cost, CompletionTokens, PromptTokens
from swarm.utils.log import initialize_log_file, logger, swarmlog

current_time = Time.instance().value or time.strftime("%Y-%m-%d-%H-%M-%S", time.localtime())
Time.instance().value = current_time
log_file_path = initialize_log_file("GAIA", Time.instance().value)

swarmlog("🐝GPTSWARM SYS", f"Finish {i} samples...", Cost.instance().value, PromptTokens.instance().value, CompletionTokens.instance().value, log_file_path)

Can I have cost_get() function? That returns a dictionary that I can save to my experiment artifacts. Also what if I want to measure training cost separately and evaluation cons separately in one go?

Here is where cost_count() has been used: https://github.com/metauto-ai/GPTSwarm/blob/main/swarm/llm/gpt_chat.py
Here is how cost_count() was designed: https://github.com/metauto-ai/GPTSwarm/blob/main/swarm/llm/price.py


Crash when running C# build in RC1

Godot version:
RC1 64-bit
OS/device including version:
Windows 10 64-bit
Issue description:
I deleted my .mono folder from my project, the C# solution and assembly, and also AppData/Roaming/Godot/mono/solutions/* and launched Godot RC1 64-bit. Loaded the project and it regenerated the C# jazz. So far so good. I think click the "Run" button after it laucnhes the game window, the game window crashes and I get the following error in the console:
running cmdline: "C:\Users\jbonazza\Documents\Godot_v3.0-rc1_mono_win64\Godot_v3.0-rc1_mono_win64\Godot_v3.0-rc1_mono_win64.exe" "--path" "C:/Users/jbonazza/Documents/rpgproject3.0" "--remote-debug" "<IP_ADDRESS>:6007" "--allow_focus_steal_pid" "1712" "--debug-collisions" "--position" "448,240"
OpenGL ES 3.0 Renderer: GeForce GTX 750 Ti/PCIe/SSE2
GLES3: max ubo light: 409
GLES3: max ubo reflections: 455, ubo size: 144
ARVR: Registered interface: Native mobile
Mono: Initializing module...
Mono: Runtime initialized
Mono: INITIALIZED
ERROR: gdmono_MonoLogCallback: Mono: FATAL ERROR, ABORTING! Logfile: C:\Users\jbonazza\AppData\Roaming/Godot/mono/mono_logs/1515978629.txt

   At: modules\mono\mono_gd\gd_mono_log.cpp:74
Nothing read: No such file or directory
ERROR: StreamPeerTCPWinsock::read: Server disconnected!

   At: drivers\windows\stream_peer_tcp_winsock.cpp:203

In the referenced log file, I find the following:
Config attempting to parse: 'C:\Program Files\Mono\etc\mono\config'. (in domain Mono, info)
Assembly Loader probing location: 'C:\Program Files\Mono\lib\mono\4.5\mscorlib.dll'. (in domain Mono, info)
Image addref mscorlib[000001C19825C7D0] -> C:\Program Files\Mono\lib\mono\4.5\mscorlib.dll[000001C19B0A3300]: 2 (in domain Mono, info)
Image addref mscorlib[000001C19825C860] -> C:\Program Files\Mono\lib\/mono/4.5/mscorlib.dll[000001C19B0A3A40]: 3 (in domain Mono, info)
Prepared to set up assembly 'mscorlib' (C:\Program Files\Mono\lib\/mono/4.5/mscorlib.dll) (in domain Mono, info)
AOT: image 'C:\Program Files\Mono\lib\/mono/4.5/mscorlib.dll.dll' not found: The system cannot find the file specified.
 (in domain Mono, info)
AOT: image 'C:\Program Files\Mono\lib\/mono/aot-cache/amd64/mscorlib.dll.dll' not found: The system cannot find the path specified.
 (in domain Mono, info)
Assembly Loader loaded assembly from location: 'C:\Program Files\Mono\lib\mono\4.5\mscorlib.dll'. (in domain Mono, info)
Config attempting to parse: 'C:\Program Files\Mono\lib\/mono/4.5/mscorlib.dll.config'. (in domain Mono, info)
Config attempting to parse: 'C:\Program Files\Mono\etc\mono\assemblies\mscorlib\mscorlib.config'. (in domain Mono, info)
Config attempting to parse: 'C:\Users\jbonazza\.mono\assemblies\mscorlib\mscorlib.config'. (in domain Mono, info)
Unloading image C:\Program Files\Mono\lib\mono\4.5\mscorlib.dll [000001C19B0A3300]. (in domain Mono, info)
Assembly mscorlib[000001C19825C860] added to domain GodotEngine.RootDomain, ref_count=1 (in domain Mono, info)
Found assembly remapping for mscorlib and was for the same version <IP_ADDRESS> (in domain Mono, debug)
Assembly mscorlib[000001C19825C860] added to domain GodotEngine.ToolsDomain, ref_count=2 (in domain Mono, info)
Image addref GodotSharpTools[000001C19825D430] -> C:\Users\jbonazza\Documents\Godot_v3.0-rc1_mono_win64\Godot_v3.0-rc1_mono_win64/GodotSharpTools.dll[000001C19B1630E0]: 2 (in domain Mono, info)
Prepared to set up assembly 'GodotSharpTools' (C:\Users\jbonazza\Documents\Godot_v3.0-rc1_mono_win64\Godot_v3.0-rc1_mono_win64/GodotSharpTools.dll) (in domain Mono, info)
Assembly GodotSharpTools[000001C19825D430] added to domain GodotEngine.ToolsDomain, ref_count=1 (in domain Mono, info)
AOT: image 'C:\Users\jbonazza\Documents\Godot_v3.0-rc1_mono_win64\Godot_v3.0-rc1_mono_win64/GodotSharpTools.dll.dll' not found: The system cannot find the file specified.
 (in domain Mono, info)
AOT: image 'C:\Program Files\Mono\lib\/mono/aot-cache/amd64/GodotSharpTools.dll.dll' not found: The system cannot find the path specified.
 (in domain Mono, info)
Assembly mscorlib[000001C19825C860] added to domain GodotEngine.ScriptsDomain, ref_count=3 (in domain Mono, info)
Symbol file LoadedFromMemory is not a mono symbol file (in domain , warning)
Image addref GodotSharp[000001C19825D5E0] -> res://.mono/assemblies/GodotSharp.dll[000001C19B163A90]: 3 (in domain Mono, info)
Prepared to set up assembly 'GodotSharp' (res://.mono/assemblies/GodotSharp.dll) (in domain Mono, info)
Assembly GodotSharp[000001C19825D5E0] added to domain GodotEngine.ScriptsDomain, ref_count=1 (in domain Mono, info)
AOT: image 'res://.mono/assemblies/GodotSharp.dll.dll' not found: The filename, directory name, or volume label syntax is incorrect.
 (in domain Mono, info)
AOT: image 'C:\Program Files\Mono\lib\/mono/aot-cache/amd64/GodotSharp.dll.dll' not found: The system cannot find the path specified.
 (in domain Mono, info)
Found assembly remapping for mscorlib and was for the same version <IP_ADDRESS> (in domain Mono, debug)
Config attempting to parse: ''. (in domain Mono, info)
Found assembly remapping for mscorlib and was for the same version <IP_ADDRESS> (in domain Mono, debug)
Assembly Ref addref GodotSharp[000001C19825D5E0] -> mscorlib[000001C19825C860]: 4 (in domain Mono, info)
Found assembly remapping for System and was for the same version <IP_ADDRESS> (in domain Mono, debug)
Found assembly remapping for System and was for the same version <IP_ADDRESS> (in domain Mono, debug)
Image addref System[000001C19344D910] -> C:\Program Files\Mono\lib\/mono/4.5/System.dll[000001C19B152090]: 2 (in domain Mono, info)
Prepared to set up assembly 'System' (C:\Program Files\Mono\lib\/mono/4.5/System.dll) (in domain Mono, info)
Assembly System[000001C19344D910] added to domain GodotEngine.ScriptsDomain, ref_count=1 (in domain Mono, info)
AOT: image 'C:\Program Files\Mono\lib\/mono/4.5/System.dll.dll' not found: The system cannot find the file specified.
 (in domain Mono, info)
AOT: image 'C:\Program Files\Mono\lib\/mono/aot-cache/amd64/System.dll.dll' not found: The system cannot find the path specified.
 (in domain Mono, info)
Assembly Ref addref GodotSharp[000001C19825D5E0] -> System[000001C19344D910]: 2 (in domain Mono, info)
Found assembly remapping for mscorlib and was for the same version <IP_ADDRESS> (in domain Mono, debug)
Found assembly remapping for mscorlib and was for the same version <IP_ADDRESS> (in domain Mono, debug)
Assembly Ref addref System[000001C19344D910] -> mscorlib[000001C19825C860]: 5 (in domain Mono, info)
Symbol file LoadedFromMemory is not a mono symbol file (in domain , warning)
Image addref GodotSharpEditor[000001C19B159670] -> res://.mono/assemblies/GodotSharpEditor.dll[000001C19B15B2D0]: 3 (in domain Mono, info)
Prepared to set up assembly 'GodotSharpEditor' (res://.mono/assemblies/GodotSharpEditor.dll) (in domain Mono, info)
Assembly GodotSharpEditor[000001C19B159670] added to domain GodotEngine.ScriptsDomain, ref_count=1 (in domain Mono, info)
AOT: image 'res://.mono/assemblies/GodotSharpEditor.dll.dll' not found: The filename, directory name, or volume label syntax is incorrect.
 (in domain Mono, info)
AOT: image 'C:\Program Files\Mono\lib\/mono/aot-cache/amd64/GodotSharpEditor.dll.dll' not found: The system cannot find the path specified.
 (in domain Mono, info)
Symbol file LoadedFromMemory is not a mono symbol file (in domain , warning)
Image addref rpgproject[000001C19B159DC0] -> res://.mono/temp/bin/Tools/rpgproject.dll[000001C19B1C6050]: 3 (in domain Mono, info)
Prepared to set up assembly 'rpgproject' (res://.mono/temp/bin/Tools/rpgproject.dll) (in domain Mono, info)
Assembly rpgproject[000001C19B159DC0] added to domain GodotEngine.ScriptsDomain, ref_count=1 (in domain Mono, info)
AOT: image 'res://.mono/temp/bin/Tools/rpgproject.dll.dll' not found: The filename, directory name, or volume label syntax is incorrect.
 (in domain Mono, info)
AOT: image 'C:\Program Files\Mono\lib\/mono/aot-cache/amd64/rpgproject.dll.dll' not found: The system cannot find the path specified.
 (in domain Mono, info)
Assembly Ref addref rpgproject[000001C19B159DC0] -> GodotSharp[000001C19825D5E0]: 2 (in domain Mono, info)
Found assembly remapping for mscorlib and was for the same version <IP_ADDRESS> (in domain Mono, debug)
Found assembly remapping for mscorlib and was for the same version <IP_ADDRESS> (in domain Mono, debug)
Assembly Ref addref rpgproject[000001C19B159DC0] -> mscorlib[000001C19825C860]: 6 (in domain Mono, info)
type 0x1 not handled in mono_runtime_invoke_array (in domain , error)

Config attempting to parse: 'C:\Program Files\Mono\etc\mono\config'. (in domain Mono, info)
Image addref mscorlib[00000000181026A0] (asmctx DEFAULT) -> C:\Program Files\Mono\lib/mono/4.5/mscorlib.dll[00000000182B6030]: 2 (in domain Mono, info)
Prepared to set up assembly 'mscorlib' (C:\Program Files\Mono\lib/mono/4.5/mscorlib.dll) (in domain Mono, info)
AOT: image 'C:\Program Files\Mono\lib/mono/4.5/mscorlib.dll.dll' not found: The system cannot find the file specified.
(in domain Mono, info)
AOT: image 'C:\Program Files\Mono\lib/mono/aot-cache/amd64/mscorlib.dll.dll' not found: The system cannot find the path specified.
(in domain Mono, info)
Assembly mscorlib[00000000181026A0] added to domain GodotEngine.RootDomain, ref_count=1 (in domain Mono, info)
Assembly mscorlib[00000000181026A0] added to domain GodotEngine.Domain.Scripts, ref_count=2 (in domain Mono, info)

@MEJIOMAH17 Please open a new issue with a minimal reproduction project attached.


Update DeviceMotionImplementation

Adding configurable Heading filter in DeviceMotionImplementation for IOS

locationManager.HeadingFilter = (double)interval / (double)MotionSensorDelay.Default; added.
DeviceMotionImplementation.zip


Version numbers in mvp and project template are not covered by lerna

Ref: https://github.com/ckb-js/kuai/commit/05a5fe032f02a9b72eeebe54757d72ec4b5aa382

Bumping of linked dependencies of samples/* should be fixed by https://github.com/ckb-js/kuai/pull/397

I have two ideas for updating template versions

use the version field in lerna.json, and after each bump-version will actively change the field according to the version in lerna.json.

The downside might be some version we don't want the template to be upgraded to, like alpha/nightly.

Use npm tag, change the downloaded version in template to latest or a specific tag, when kuai is published to npm, these tags will be changed synchronously, and the latest version will be downloaded when template is used to download.

The downside is publishing to npm.

The downside might be some version we don't want the template to be upgraded to, like alpha/nightly.

I have a question and a solution about this downside
question: in what case won't we use the paired versions, like<EMAIL_ADDRESS>inits a project using<EMAIL_ADDRESS>solution: the version bumping can be done by postversion hook with a custom script to ignore ignore alpha/nightly updates.
Ref:
postversion: https://docs.npmjs.com/cli/v9/commands/npm-version

The downside might be some version we don't want the template to be upgraded to, like alpha/nightly.

I have a question and a solution about this downside
question: in what case won't we use the paired versions, like<EMAIL_ADDRESS>inits a project using<EMAIL_ADDRESS>solution: the version bumping can be done by postversion hook with a custom script to ignore ignore alpha/nightly updates.
Ref: postversion: https://docs.npmjs.com/cli/v9/commands/npm-version

It's possible that some new versions of kuai offer experimental features that are added to templates after a certain degree of stable operation, but of course that probably won't be the case for the most part, it just a preconception and may depend largely on our upgrade strategy
And so our implementation would be to change the version number in the template in the postbump-version hook?

It's possible that some new versions of kuai offer experimental features that are added to templates after a certain degree of stable operation, but of course that probably won't be the case for the most part, it just a preconception and may depend largely on our upgrade strategy

I think it's reasonable to deliver experimental features by kuai-cli marked experimental.

And so our implementation would be to change the version number in the template in the postbump-version hook?

bump-version calls npm run version and npm run postversion, invoking the custom script by npm run postversion should work

Will be fixed by https://github.com/ckb-js/kuai/pull/395


Libffi build

Remove the prebuilt binaries and add libffi build as dependency to the NativeScript target.

As @fealebenpae suggested, this also allows iPhone 6 to run armv7 architecture (https://github.com/NativeScript/nativescript-cli/issues/1362)
Allows stepping into libffi source

We should reset libffi/master to libffi/update before merging.
Related to: https://github.com/NativeScript/ios-runtime/issues/369

run ci

run ci

This looks great! I would like to point out this is excellent work, but I'm afraid @KristinaKoeva will have your hide for beating her to it :grin:
As i pointed out inline, I think it's better to use a new target instead of a custom command.

run ci

@ns-bot retest this please

retest this please

run ci


how was the normalized matrices transformed

Hello,
Thank you for the amazing work and for providing access to this Github repo. I have a quick question. After generating the normalized matrices using all 9 different normalization techniques, were these normalized matrices transformed similarly to allow for a comparable comparison (when creating plot 2 for instance )?

Hi!
After normalization, some scaling and shifting operations were performed for visualization purposes (and do not affect the derived metrics). For example, when plotting depth we scale the min and max like so: https://github.com/pachterlab/BHGP_2022/blob/ddf404ac58874bca768736728667369f81fffb60/scripts/plot_all.py#L149-L159
Additionally, metrics were computed after each normalization and plotted in Figure 2. The code to compute the metrics can be found here: https://github.com/pachterlab/BHGP_2022/blob/ddf404ac58874bca768736728667369f81fffb60/scripts/metrics_methods_sparse.py
I hope that answers your question! Please let me know if anything is unclear.

Thank you for the quick response!! That answers my question.
As a follow-up question, each dot/circle in plot 2 in Figure 2 represents one cell? In other words, does plot 2 display transformed cell depth vs raw cell depth for all the cells in the dataset?

Each point in plot 2, Figure 2 is a dataset (whole matrix). The value plotted is the pearson correlation between the transformed cell depth vs raw cell depth for all cells in that dataset.


[WIP] support specifying fe protocol

Proposed changes
Issue Number: close #493
Problem Summary:
Cannot use http FE
Checklist(Required)

Does it affect the original behavior: No
Has unit tests been added: No Need
Has document been added or modified: No
Does it need to update dependencies: No
Are there any changes that cannot be rolled back: No

Further comments
Remove all hardwired http:// from urls and added conditional http:// prefixing if no scheme was declared

Ok, this is bit more massive, than I expected. Let me know, if you want me to change something. I also ask for some testing, my Doris knowledge is pretty limited, so I likely missed something


Bundling fails

Hello :)
After bundling aurelia-validation into my application and running the server, I get:

Error loading<EMAIL_ADDRESS>
Which makes sense, because in my dist folder I don't have any jspm_packages. So my question is this: do you know why locales don't seem to get bundled? Do you know how I can add them? I tried adding<EMAIL_ADDRESS>to the bundler, but it still tried to download the file. Are you perhaps not using DI for this?

Adding 'aurelia-validation/resources/**/*' to my bundle configuration fixed this for me

@JeroenVinke Thanks. Works for me, too :)


TypeScript support

It would be rad if we could generate TypeScript libraries as well as JavaScript.  Putting this here for tracking purposes :)

Hi! Is there any progress on this? I would like to use Google generated typings

Hi @joofholland! We plan to ship our first TypeScript libraries later this or early next quarter. This issue will be updated when the first auto-generated TypeScript libraries are published.

@alexander-fenster Can you add a priority?

So, it's finally (!) here, in a separate repo https://github.com/googleapis/gapic-generator-typescript - closing this issue.


Implement import sorting

This PR implements isort-like import sorting behavior. The intent is to mirror isort when used with the following configuration:
[tool.isort]
profile = "black"
combine_as_imports = true

The main limitations in the current approach are as follows:

We still have no way of reconciling conflicting autofix errors. So if you have unused and unsorted imports, Ruff will only fix one of the two in the first pass (probably the unsorted imports, since that block comes first), and you'll have to run Ruff again to fix the other.
We don't have any comment-handling, so all comments are removed entirely

For now, this is implemented via an entirely separator visitor, mostly to make the code easier to reason about. I need to benchmark the impact of that choice.
Resolves: #465.

If somebody is wondering how to add this in pre-commit, use this

repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.2.0
hooks:

id: ruff
args: ["check", "--select", "I", "--fix"]
id: ruff-format


Update page title to "My Stream"

"My Stream" is already in the url and the breadcrumb.
When on that page, the title right now only shows "Stream"

Testing Copilot Workspaces...


Trim v for version check

utils.Version is set when a new release is created via the .goreleaser.yaml config. However, the v in a version (for example v0.1.35) is getting trimmed. This causes a mismatch between what is set in utils.Version and what is being pulled from GitHub.
/hold
I'm not sure this is the way we should go. Ideally we should fix the .goreleaser.yaml path to set utils.Version correctly. In the case that's not possible, this PR can be merged.

I found the docs where GoReleaser mentions stripping the leading "v" (footer 1): https://goreleaser.com/customization/templates/#fn:version-prefix

That's a bit annoying... if that's what goreleaser is doing, we probably shouldn't fight with it. I think we can merge this PR and call it good.

/lgtm

/retry

/retest

/hold cancel

/lgtm

/retest


[WIP] Run cupy-benchmark on CI

Adds a job that will run once a day taking the results of master and uploading them to gcp.

/test benchmark

/test benchmark

/test benchmark

/test benchmark.pr

https://ci.preferred.jp/cupy.linux.benchmark/97821/

PTAL

LGTM! Let's merge once this test runs fine:
https://ci.preferred.jp/cupy.linux.benchmark.pr/97863/

Ah the test already ran 😅 https://ci.preferred.jp/cupy.linux.benchmark.pr/97848/


semantics for events with duration

This relates partly to reproducing the brainstorm results in https://github.com/mne-tools/mne-python/pull/2587. Currently, mne-python does not have the semantics to handle annotations with durations. One usecase is to visualize bad segments in the raw data using raw.plot(). I am opening the issue so that the API can be discussed.
cc @jaeilepp @agramfort @dengemann

as discussed one option to avoid introducing a new concept in MNE would be
use events.
e.g.
[[100 0 1],
[200 1 0]]
would code for a event of type 1 from 100 to 200 milliseconds.
consequence is that it's not obvious if it's a bad segment or not, unless
for example we say that if the event id is negative it is bad segment.
it's a bit more cryptic than having some kind of event id and look for the
work
bad in it.

can you give an example how it would look if there were more than one segment + a few experiment-related events? Would you allow for overlapping events?

what happens when you have some events which have a duration and others which don't have a duration?

what happens when you have some events which have a duration and others which don't have a duration?

we could have lists of arrays or 3D arrays

Would you allow for overlapping events?

open to the user, you can put in your array whatever you want

consequence is that it's not obvious if it's a bad segment or not, unless
for example we say that if the event id is negative it is bad segment.

we could have a user defined bads tag or as you say negative

I was thinking:
100 200 1

i.e., onset-offset-kind.

i.e., onset-offset-kind.

but how do you then combine this with the exisiting approach?

@Eric89GXL : the documentation currently says:

The first column contains the event time in samples and the third column contains the event id. For output = 'onset' or 'step', the second column contains the value of the stim channel immediately before the the event/step.

The second column does not agree with what you propose

How we save and load the annotations is to me a mostly separate issue from how we use them. I'd prefer to have an annotation format that is compact and simple to understand, ideally requiring no new IO functions (onset-offset-kind fits this), and then work on how to use that annotation in a nice way from an API standpoint.
But since you asked, I originally implemented a function that worked on epochs to eliminate any epochs that were considered "bad". I don't think that's the best approach, though. Instead we could "attach" them to raw objects (in memory only for now), then:

They can easily be plotted with raw.plot

When Epochs get constructed, they can be aware of the annotations attached to the Raw instance and drop any events (+/- tmin/tmax) that live in "bad" segments. Maybe the user needs to then pass bad_id in addition to event_id to mark which annotated segments are not to be used using key, value pairs, and we can mark in the drop log the right reason using the bad_id value.

This to me is pretty simple from a user perspective, and also shouldn't be too difficult to implement from an API perspective.

The other nice thing about onset-offset-kind is that one can easily get to this format from other readers/annotation software, since it can be easily written out as plain test and read using our read_events function.

@jasmainak I know. It wouldn't be an "event" or -eve file anymore but an "annotation" or -ann file or so. I don't see a problem with redefining what the columns mean here.

I like this proposal a lot @Eric89GXL

It would be terribly useful to generate new raw files from sleep annotations(!) and so on.

Does anyone use annotation software, or work with anyone who does? It might be good to know what their saving formats look like. My guess is that it's onset, offset, and some form of text entry that allows the user to say what the event is. We'd be pretty close to that, only we'd force people to construct the bad_id dict, which I don't think is a bad thing.

why bad_id? why not annotation_id?

@Eric89GXL , the problem is that you are going to break a lot of scripts if you redefine what it means

@Eric89GXL , the problem is that you are going to break a lot of scripts if you redefine what it means

what would you break? we would introduce a separate thing as I understand it. We have events VS annotations. That would be the cleanest.

@jasmainak I don't think so, nobody should use -ann.txt files when they want to use events...? It would only be redefined in the context of annotation use, not event use.
@dengemann the idea is that it use the annotation to define bad segments to exclude when making Epochs. But maybe we want a more complete representation, where the annotations stick around and could also be plotted in the Epochs object, too, instead of just disqualifying trials. In that case annotation_id would make sense, but we'd need to think more about the API.
FWIW my proposal for a saving format isn't substantially different from @agramfort's. Mine is slightly more compact, readable, and easier to construct from a user perspective. But it does change the meaning of the columns relative to events, which is a disadvantage. I +0.5 prefer my approach for readability. But given this has already caused some confusion for @jasmainak, I am a bit concerned. Maybe sufficient documentation would work?

@Eric89GXL : are you suggesting introducing another attribute to raw?

But maybe we want a more complete representation, where the annotations stick around and could also be plotted in the Epochs object, too, instead of just disqualifying trials. In that case annotation_id would make sense, but we'd need to think more about the API.

We should go that way I feel. It would be terrific for neurological data and for spontaneous brain activity. I have a clear vision now. We can with that API use them for rejection but also for other things such as plotting and re/fine-segmentation, etc. What you propose as data layout would be nice with a separate parameter / attribute.

FWIW, I'll add my proposal as well. I feel events should be an object. It will be able to deal with complex annotations that way. The get property could return the numpy array that you get currently and it could be structured differently for annotations like @Eric89GXL suggests. An attribute to the object would tell you how it's structured. And mne.viz.plot_events could be refactored into this.

sounds like we need a hangout session to converge.
I need to run.
Just 1 word : I agree with Eric's proposal but the devil is in the API
detail.

I like Eric's proposal too. I'm just wondering how to handle cropped data. With Eric's system it doesn't matter if the end part of the segment gets cut off, but if the beginning gets cut off, the segmentation data is lost.
One option would be to use negative values for segments in combination with Alex's solution. This way it would be possible to infer the segments, but I'm not sure how it would behave with overlapping events without looking into the code.

@jaeilepp I'm not sure I follow. My system and Alex's system contain the same information, but just represent it differently. So if you e.g. add an annotation and crop the raw data, I don't see any problem with having / converting to negative times in the representation, and thus preserving the information.

Yeah, that was a mistake on my part. Realized it myself too after writing the comment.

We should use a new parameter with a clean annotation semantics. Combining events and annotations is than easy as semantics are clear defined.  I'm afraid of a new objects here and the maintenance they bring with, let's stick with numpy arrays and simple structures. My 2 cents.

Yeah, I agree with Denis now. I noticed that when reading events from kit files (with files for testing), the second column has some data. So there are already semantics tied to it.

fwiw, I already do this on my neuromag system. I simply raise a trigger when a stimulus appears and don't lower it until the stimulus disappears. Thus the length of presentation is present in the file directly.

yes we considered it. But it does not work when annotations are overlapping
eg blink during a certain sleep stage.

It works fine in my cases. If my event is code 1 and the button response is code 255. I can still separate them using the "ignore" feature in the C code, or just deconvolving the signal into their binary values. Then I get the length of all.

The overlapping events can be masked out in MNE, so basically this is a question of where and how we want to separate the triggers. It would be nice to have separate annotations for events and segments, so it would be easier to deal with them separately (visualization, rejection etc.)

Closing, we have this now. Thanks @jaeilepp

Hey all - I know this issue has been closed and it looks like people's needs have been met here. That said, I just wanted to share a code snippet for an Events class that I've been using to keep track of metadata, trial lengths, etc for my trials. I've found it useful for quickly generating MNE events arrays using different kinds of trial types etc. Maybe somebody will find it useful :)
https://github.com/choldgraf/ecogtools/blob/master/mneutils.py#L35
If you guys think there's any place in the MNE repo for this, then I'm happy to contribute, but it sounds like people are satisfied already.


openidc requires one of OIDCProviderIssuer, OIDCProviderMetadataURL, or OIDCMetadataDir

I was trying to set up openidc to delegate auth to GitHub and I came up short. I primarily attempted to follow the "OAuth-APIs" section at https://github.com/zmartzone/mod_auth_openidc/wiki/OAuth-2.0-Resource-Server#oauth-apis , but this example does not include one of the three required fields present in my error string
[Fri Aug 10 09:56:13.649632 2018] [auth_openidc:error] [pid 9277] oidc_check_config_openid_openidc: one of 'OIDCProviderIssuer', 'OIDCProviderMetadataURL' or 'OIDCMetadataDir' must be set

The fields I had set were:
OIDCOAuthClientID
OIDCOAuthClientSecret
OIDCOAuthIntrospectionEndpoint
OIDCOAuthIntrospectionEndpointMethod
OIDCOAuthSSLValidateServer
OIDCOAuthRemoteUserClaim
OIDCOAuthIntrospectionTokenParamName
OIDCRedirectURI
OIDCCryptoPassphrase

But none of the aforementioned 3 fields seem to be relevant to add in additionally. Is the documentation out of date?
Environment

mod_auth_openidc version: 2.3.3-1build1
Apache version: 2.4.34-1+ubuntu18.04.1+deb.sury.org+7
platform/distro: Ubuntu Bionic

I don't think Github supports OpenID Connect for "delegate auth". Setting up a Resource Server probably does not what you need. What are you trying to achieve?

I'm trying to delegate authentication for an internal protected resource to GitHub using OAuth. The resource itself doesn't have a login system, it relies on the web server serving it to manage it.

Github is not OpenID Connect compliant so this module cannot interface with it. For some reason Github decided to roll their their own proprietary protocol that builds on top of OAuth 2.0 (just as OpenID Connect does).


Issue: .time() aggregation and Y axis not updating

Hi!
I have a visualization with using .time(). It's working perfect. My problem is that the Y axis doesn't change when I want to display one year only. The Y axis stays as if all the values were aggregated.   Is there a way that the Y axis could change accordingly to the values of a given year.
Also, is there a way that .time() will aggregate the values, but not adding them all... instead, just showing the means?
Tks.

hi @pastudilloe, can you please post a link to a (jsfiddle)[http://jsfiddle.net/] isolating the issue?

Hi!
I have a visualization with using .time(). It's working perfect. My problem is that the Y axis doesn't change when I want to display one year only. The Y axis stays as if all the values were aggregated. Is there a way that the Y axis could change accordingly to the values of a given year.
Also, is there a way that .time() will aggregate the values, but not adding them all... instead, just showing the means?
Tks.

In order to show the mean, I think you can use     .aggs({"value_to_plot": "mean"})
+1 to the question on changing the Y axis when the time frame changes


Capture only microphone audio.

Hello Pedro.
We need to capture only microphone data In Display Stream.
For that we have changed the audio source from DEFAULT to MIC.
But Still we are getting the Device internal audio.

Hello,
You are not getting internal audio, you are getting audio from speakers. Try to test it using low audio and you will check that it is the case.
You can try use echoCanceller enabled of prepareAudio method but if it isn't working for you. I haven't other way to do it. This is the recommend way in few posts but it doesn't work in all cases:
https://stackoverflow.com/questions/53025219/audiorecord-while-also-playing-audio-accessing-output-playback-data


JStack can crash the VSCode extension host

This piece of code seems to be bad news in VSCode, as it sometimes takes down the entire extension host:
https://github.com/RealyUniqueName/JStack/blob/d5014805f630cfc86c41a69243a46c4ad8f3cf3c/src/jstack/js/JStack.hx#L168-L170

Curiously, VSCode sometimes manages to prevent it:

Not sure if there's a way for JStack to detect it's running in VSCode, or is a define needed to turn this behavior off?

-D JSTACK_NO_SHUTDOWN as of v2.3.11


Disabled ComboBox is white

Hello,
I have a small issue in v1.18.12, the disabled (by the code) ComboBox is white:

I noticed that there is a fix for that in the DarkModeCS, but it doesn't work:
// Fixes a glitch showing the Combo Backgroud white when the control is Disabled:
if (!control.Enabled && this.IsDarkMode)
{
				comboBox.DropDownStyle = ComboBoxStyle.DropDownList;
}

It works correctly when I change it to:
// Fixes a glitch showing the Combo Backgroud white when the control is Disabled:
if (this.IsDarkMode)
{
				comboBox.DropDownStyle = ComboBoxStyle.DropDownList;
}

Can you check this? Thanks.

I am out of office right now, but looking at the description above, it seems the .Enabled is being evaluated at the time of dark theme application. If the control is enabled orginally and disabled afterwards, it is not reflected.... So one option would be handling Control.EnabledChanged, the other, probably most clear, would be handlingControl.OnPaint....

Thanks for reporting this glitch, i'll look to fix it.
Regards.

I resolved this by adding the following lines immediately after "control.ControlAdded += controlControlAdded;" in DarkModeCS.cs
// handle controls getting enabled/disabled dynamically
control.EnabledChanged += (object? sender1, EventArgs e1) =>
{
	if (sender1 != null)
	{
		ThemeControl((Control)sender1);
	}
};


fix: lake: consistent order for manifest packages

Closes #2664.
Packages in the Lake manifest now consistently follow the order in the workspace (which is based on the order of the require statements in the configuration files). Different invocations of lake update thus no longer change the order (assuming the order in the configuration files has not changed).
One side effect of this approach is that lake update will now remove packages even if they are not explicitly updated (i.e., removing a require a before lake update b will remove a from the manifest as would the usual lake update a). This seems potentially fine to me, so I have not worked around this side effect yet, but whether it is actually fine is probably worth discussing.

@semorrison I requested a review because I am curious whether you think the side-effect is reasonable.

I think it's reasonable, if only because removing a requirement is a rather rare event, and so there aren't too many opportunities to be confused by lake update's behaviour there!


python312Packages.neuronpy: 8.2.4 -> 8.2.6

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/neuronsimulator/nrn/releases.
meta.description for python312Packages.neuronpy is: Simulation environment for empirically-based simulations of neurons and networks of neurons
meta.homepage for python312Packages.neuronpy is: http://www.neuron.yale.edu/neuron
Updates performed

Version update

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 8.2.6 with grep in /nix/store/3jfhmfm436g156q0an6qrigh7rlaskrm-neuron-8.2.6
found 8.2.6 in filename of file in /nix/store/3jfhmfm436g156q0an6qrigh7rlaskrm-neuron-8.2.6

Rebuild report (if merged into master) (click to expand)

6 total rebuild path(s)

6 package rebuild(s)

First fifty rebuilds by attrpath

neuron
neuron-full
neuron-mpi
python311Packages.neuronpy
python312Packages.neuronpy

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/3jfhmfm436g156q0an6qrigh7rlaskrm-neuron-8.2.6 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python312Packages.neuronpy https://github.com/r-ryantm/nixpkgs/archive/3dc43c3821d1410d6431981c40282c7af9dc906f.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/3dc43c3821d1410d6431981c40282c7af9dc906f#python312Packages.neuronpy

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/3jfhmfm436g156q0an6qrigh7rlaskrm-neuron-8.2.6
ls -la /nix/store/3jfhmfm436g156q0an6qrigh7rlaskrm-neuron-8.2.6/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

4 packages built:

neuron
neuron-full (python312Packages.neuronpy)
neuron-mpi
python311Packages.neuronpy

Maintainer pings
cc @adevress @CyborgPotato for testing.

LGTM, tested on aarch64-darwin && x86_64-linux


Minor readability improvements on contributing

Minor updates to the contributing page for grammar and readability

Description

Code sample

I allowed myself to integrate your changes in my own fork. Thank you very much for your proofreading!


Replaced some application settings with enum variants

Feature for #169.
For now I`ve done as in issue asked.
How is better to change docs and setting method example? Maybe mark somehow methods as deprecated? How about info method to string-info settings?

Looks great! Thanks again for the help! :+1:
Once those changes are made this will be ready to merge :smile:

Thanks, I did it with pleasure :)

Perfect :+1:
Merged.


Requests feature: hev-socks5-server

please include this feature for easy access

I don't understand why you should include a pure socks5 server on the client side.

Sorry, I mean, include the socks server as shared library too

Okay. Tracking issue: https://github.com/heiher/hev-socks5-server/issues/47


chore: Update toolchain to nightly-2024-09-30

This aligns the toolchain with Binius's rust-toolchain
By updating the toolchain, we solve the following error on the starter project:
cargo run --release
   Compiling ark-bn254 v0.4.0
   Compiling binius_field v0.1.0 (https://gitlab.com/UlvetannaOSS/binius#33eab8c9)
error[E0658]: use of unstable library feature 'iter_repeat_n'
   --> /Users/user/.cargo/git/checkouts/binius-073c6a8ffd019076/33eab8c/crates/field/src/packed.rs:225:76
    |
225 |             self.iter().skip(block_idx * block_len).take(block_len).flat_map(|elem| iter::repeat_n(elem, repeat))
    |                                                                                ^^^^^^^^^^^^^^
    |
    = note: see issue #104434 <https://github.com/rust-lang/rust/issues/104434> for more information
    = help: add `#![feature(iter_repeat_n)]` to the crate attributes to enable
    = note: this compiler was built on 2024-07-31; consider upgrading it if it is out of date

For more information about this error, try `rustc --explain E0658`.
error: could not compile `binius_field` (lib) due to 1 previous error

The toolchain update solves an incompatibility between the nightly compiler version in use by Jolt and the use of iter::repeat_n that was introduced three days ago in Binius.
This fixes #508. I will open a separate PR in a16z/rust for the CI pipeline

Added the corresponding PR to a16z/rust here: https://github.com/a16z/rust/pull/10


Update pom.xml

$subject

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/7569663489


Password for "rancher" expires and prevents login

I have set up k3os on five Odroid N2 devices using the "overlay" method of installation. That process worked without a hitch.
However, upon subsequent login attempts, the following occurs:
WARNING: Your password has expired.
You must change your password now and login again!
passwd: must be suid to work properly

after which the ssh connection is dropped.
I suspect this happens because I have not connected a battery backup for the RTC, and thus whatever timestamps are used to determine password age are unreliable. While setting up the devices, I was able to reboot multiple times and log in as "rancher", but I noticed this issue started after power was disconnected.
Since many embedded devices don't have reliable RTCs, and it's meaningless to try to change the password anyway (as this is configured via config.yaml), it would be preferable if k3os initialized the system in such a way that the password never expires.
Thanks for considering this issue!

In the meantime, I collected some backup batteries to verify that the RTC is indeed the cause. After powering up with RTC battery in place, then rebooting after a minute or so (to allow NTP to do its job), I am once again able to log in.

Appears to have been resolved. Please re-open with details if this is not so :)


feat: add configuration for ghdl-ls VHDL language server

Ping, would appreciate a quick review on this.

Is there anything I can do to help move this along? Do you need someone to validate the change?


No board named / wireless shell

Item 4 of the ESP32 Install instructions say to install Heltec WiFi LoRa 32(v3) / Wireless shell(V3). There is a "Heltec WiFi LoRa 32(v3)" but nothing with the suffix "/ wireless shell". Also tried "ht_u".
It was found  in 2.0.17, the last pre 3.x version.
Windows 11
IDE 2.3.3
Heltec regular

I had the same doubt but i suppose its the same since works well and there are literally no better matches on the extended boards list


WT Instructor not needed

If someone has a 2021 badge sticker but not a 2022 and they come in for
a renewal the system says they need to do an orientation before they can
renew. Example: badge 7891. I think it is using the date of their last
renewal rather than the date their badge expired to determine if it has
been two years since they had a badge. This problem has been since the
change to the way the system manages expiration dates.

This is partially an issue. The WT Instructor input box does get posted to the Renewal Box BUT you can still hit Renew and it will get overlooked. Basically, that input box is not supposed to be on teh screen if the BH has had a badge within the last two years (2021 in this case).


Raps1

My first effort to convert RAPS tests to the new eidos testing convention.
First I added myself in TestUtils so that I can be tagged on a test.
Second I renamed TestModifications to TestRaps to match the convention TestCag for the CAG tests.
Finally, I used the new testing methods in GraphSpec and TestUtils to update the first test.
I'm currently unsure why this can't automatically merge? I'll investigate this but please let me know if you see what I need to change to merge it easier. Thanks!

It's just that
object Heather extends Tag(tagName)

should now looks like
object Heather extends TesterTag

The GitHub GUI does a pretty good job showing this.  Can you try it out?

I think that some problems might show up eventually.  This good code
val credit = newNodeSpec("well-functioning agricultural credit", newIncrease("Better") )
can be updated to be
val credit = NodeSpec("well-functioning agricultural credit", Inc("Better") )
now.  An import might need to change.  Sorry for the moving target.

@hclent would you like me to help with the merge?  just let me know if so!

Thanks for getting back to me @kwalcock and @bsharpataz! Sorry for the delay, but I've finally resolved the merge conflict to be object Heather extends TesterTag. @bsharpataz Does the merge look good?
@kwalcock, would you like me to fix the code to be  NodeSpec("well-functioning agricultural credit", Inc("Better") ) before the PR is accepted? It seems like then I would need to delete this PR, make the changes, then start another PR? Alternatively, I can put this change in my next PR. Let me know what you think is best!

Alright, I updated the changes and now Travis is passing! My apologies for the somewhat ugly git history... I had to merge the changes from the git conflict back into the raps1 branch...
@kwalcock and @bsharpataz please review at your convenience and let me know if there's anything else I need to do to get the PR accepted. Then I can delete the branch and move on!

You're being merged.  Thanks!


How to build on linux, mac?

How to build app on linux an mac??

You can either download it from the releases page or clone the project and build it on your system (https://electronjs.org/docs)