AttributeError: 'Unit' object has no attribute 'shape' while tracing function. What does it mean??

Discussed in https://github.com/google/jax/discussions/9979

Originally posted by RadostW March 21, 2022
Inside a nested scan when using jax.lax.cond I get error message that is hard to understand.
Original code was very complex, sadly minimal example I could make is still quite complex.
Bizzarly, when changing small details code runs fine (see commented lines).
Working fine:
x * d_www[0,0,0] # Ok
x * f_www(x)[0,0,0,0] # Ok
Throwing hard to understand error
jnp.array([1.0]) * f_www(x)[0, 0, 0, 0] * d_www[0, 0, 0]  # AttributeError
Which makes me think that both d_www creation and f_www creation work fine.
I've found no similar issues when searching.
~~R
import jax.numpy as jnp
import jax

def upper(y):
    return jnp.exp(y)

def lower(y):
    return jnp.exp(2 * y)

def branch_fun(q):
    x = q[0]
    ret = jax.lax.cond(x > 1.0, upper, lower, x)
    return jnp.array([[ret]])

def L_w(f):
    def wrapped(x):
        return jax.numpy.tensordot(jax.jacobian(f)(x), branch_fun(x), axes=1)

    return wrapped

def solve_many():
    t0 = 0.0
    w0 = jax.numpy.zeros(1)

    id_ = lambda x: x
    f_www = L_w(L_w(L_w(id_)))

    def step(
        x,
        d_www,
    ):

        new_x = (
            # x * d_www[0,0,0] # Ok
            # x * f_www(x)[0,0,0,0] # Ok
            jnp.array([1.0]) * f_www(x)[0, 0, 0, 0] * d_www[0, 0, 0]  # AttributeError
            # x * f_www(x)[0,0,0,0] * d_www[0,0,0] # AttributeError
            # contract_all(f_www(x), d_www) # AttributeError
            # f_www(x)[:,0,0,0] # AttributeError
        )

        return new_x

    key = jax.random.PRNGKey(0)

    def scan_func(x, y):
        xp = step(x, y)
        return (xp, xp)

    def chunk_function(x, y):
        z = jax.lax.scan(scan_func, jnp.array([0.1]), y)[0]
        return z, z

    def get_solution_fragment(starting_state, key):
        wiener_integrals = jax.random.normal(key, shape=(4, 1, 1, 1))

        last_state, solution_values = jax.lax.scan(
            chunk_function,
            starting_state,
            jnp.reshape(wiener_integrals, (2, 2, 1, 1, 1)),
        )

        return (last_state, last_state)

    @jax.vmap
    def get_solution(key):
        _, chunked_solution = jax.lax.scan(
            lambda state, key: get_solution_fragment(state, key),
            (jnp.array([0.1])),
            jax.random.split(key, 1),
        )

        return chunked_solution

    keys = jax.random.split(key, 1)
    solutions = get_solution(keys)

    return solutions

def test_branched_coefficients():
    trajectories = solve_many()

if __name__ == "__main__":
    trajectories = solve_many()

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

Traceback (most recent call last):
  File "test_branched_coefficients.py", line 91, in <module>
    trajectories = solve_many()
  File "test_branched_coefficients.py", line 81, in solve_many
    solutions = get_solution(keys)
  File "test_branched_coefficients.py", line 72, in get_solution
    _, chunked_solution = jax.lax.scan(
AttributeError: 'Unit' object has no attribute 'shape'

minimal repro:
import jax.numpy as jnp
import jax

id_f = lambda x: x
def b(x):
    return jax.lax.cond(x[0], id_f, id_f, x) # jnp.where(x[0], id_f(x), id_f(x)) is ok

f = jax.jacrev(lambda x: b(b(x))) # jacfwd is ok

def repro():
    jax.vmap(f)(jnp.ones((1,1)))

def ok():
    f(jnp.ones((1,)))
    print('ok')

if __name__ == "__main__":
    with jax.disable_jit():
        ok()
        repro()


Train using RefinedWeb dataset instead of C4

When training the next generation MPT base model, I suggest you swap out the C4 dataset for the RefinedWeb dataset.
The filtering methods used by RefinedWeb have produced more capable models (including the Falcon models) than those, like MPT, that train on the C4 dataset.
Admittedly, the C4 dataset appears to be almost as good as RefinedWeb. Table 4 in their paper shows that training on RefinedWeb only increases model performance by less than 1% vs the C4 dataset, as judged by their multi-domain evaluation set.
Still, RefinedWeb seems to be the superior dataset, and I think that the MPT models can get a bit closer to the performance of the Falcon models by using it.

HI @maxilie!
We are of course always interested in improving and diversify our datasets and sources.

Still, RefinedWeb seems to be the superior dataset, and I think that the MPT models can get a bit closer to the performance of the Falcon models by using it.

It is worth pointing out that MPT-7B was trained for 1T tokens and Falcon 7B was trained for 1.5T tokens. We actually recently released an updated MPT-7B with 8k context length that was trained for an additional 500B tokens. As measured by our model gauntlet our new 7B-8k is superior in all but one category of competency (commonsense_reasoning). You can read about that model  here .

You can also checkout our eval page to see how other models perform at these categories.
llm-eval

Thanks @maxilie , for the suggestion! While our foundry examples use C4, the MPT model itself was trained on our own curated dataset mixture, see the data section here: https://www.mosaicml.com/blog/mpt-7b


[BEAM-2508]  (2.1.0 cherry-pick) Fix DoFn javadoc: StateSpec does not require a key

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

[x] Make sure the PR title is formatted like:
[BEAM-<Jira issue #>] Description of pull request
[x] Make sure tests pass via mvn clean verify.
[x] Replace <Jira issue #> in the title with the actual Jira issue
number, if there is one.
[x] If this contribution is large, please file an Apache
Individual Contributor License Agreement.

R: @jbonofre

retest this please

Changes Unknown when pulling bb23973da001791c777451a9aab7af25a720be85 on kennknowles:cherry-pick-stateful-javadoc into ** on apache:release-2.1.0**.

Thanks!


Proper event/data handling on reply in multitest

In #323, we added support for handling SubMsg in multi-test. Namely, execution was only committed to state on success (multi-level caches) and if reply_on matched, they reply was called from the contract that sent the SubMsg.
All state is properly updated. However, I think we don't properly handle events or data when reply is called (combining them with the actual execution).
In fact, with some reflection, I think we may be doing the wrapping in the wrong place.

closed with #328 and #323


Add Validator feature

Validate:

If input is an object
If all values of the input object is array
If all items in the values of the input object is curie;
If all keys of the input object belongs to valid semantic types;
If all items in the values of the input object has valid prefix

Fixed in: https://github.com/kevinxin90/biomedical_id_resolver.js/pull/5

Fixed in: https://github.com/kevinxin90/biomedical_id_resolver.js/pull/5


operator- (U, E) is unspecified

[Enter feedback here]
Why is (0X1 - ConsoleColor .DarkBlue) a valid expression?  There seems to be no provision for this case in the specification.

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

ID: e783650c-e063-e268-316e-564362cb1e37
Version Independent ID: aa9f4996-cab4-0bed-6452-213342453785
Content: Expressions - C# language specification
Content Source: spec/expressions.md
Product: dotnet-csharp
Technology: csharp-spec
GitHub Login: @dotnet-bot
Microsoft Alias: wiwagn

HI @yecril71pl
The example you cite is legal because there is an implicit conversion from any enum type to an int. Then, it's legal as integer subtraction.
I'll close this as answered.

@BillWagner It's explicit conversion if I'm interpreting the spec right:

Explicit enumeration conversions
The explicit enumeration conversions are:

From sbyte, byte, short, ushort, int, uint, long, ulong, char, float, double, or decimal to any enum_type.
From any enum_type to sbyte, byte, short, ushort, int, uint, long, ulong, char, float, double, or decimal.
From any enum_type to any other enum_type.

@Youssef1313
It's implicit because DarkBlue has the value 1. That makes the right hand side 0, and there is an implicit conversion of the constant 0 to any enum value. See 11.2.4

@BillWagner It works for any ConsoleColor and any value subtracted or added. The following compiles just fine.
var x = 50 + ConsoleColor.White; // White is 15

@Youssef1313
It's implicit because DarkBlue has the value 1. That makes the right hand side 0, and there is an implicit conversion of the constant 0 to any enum value. See 11.2.4

There are no sides here, it is an expression, not an equation.  I do not understand what you mean.  There is no implicit conversion from DarkBlue to 1.

@BillWagner It works for any ConsoleColor and any value subtracted or added. The following compiles just fine.
var x = 50 + ConsoleColor.White; // White is 15

The following expressions are covered by the specification: E + U, U + E, E - U and E - E.  The expression U - E is not covered.

Reopening and moving to csharpstandard


Change NavSatFixPtr to NavSatFix

Bringing in change from https://github.com/swri-robotics/gps_umd/pull/57 that removes pointer type.
Co-authored by: @rgov

Targeted wrong branch.


Use null counts in metrics evaluators

As discussed in #398, we need to take into account null counts in metrics evaluators.
This PR resolves #408.

@rdblue not directly related to this PR, but is the current implementation of eq in StrictMetricsEvaluator safe? What if we have truncated min/max values?


Size configuration

Would be good to be able to set size for the widget. In js it can be done by setting CSS parameters for the element.

Size can be set using CSS:
from HTML:
  <style>
    vizzu-player {
      width: 100vw;
      height: 100vh;
    }
  </style>

or JS:
myvizzuplayerElement.styles.width = "800px"


[2208] CreateFromApply: add accessor methods to ApplyApplication model

Context
https://trello.com/c/JCGni6pb/2208-create-from-apply-service-handles-invalid-data
see also PR for Option 2
Spike for Option 1 of handling invalid data:
Introducing methods on the ApplyApplication object attached to a trainee for all fields which could have unmappable values eg:
trainee.apply_application.institution this would return the invalid data from the jsonb column if the value wasn't initially saved on the trainee
Changes proposed in this pull request

Defined the reverse relationship between trainee and apply application
I've had to move some of the validations over to the Degree model so that we can validate against the model rather than initialising a DegreeForm. The reason for doing that is since some of the fields are autocomplete related, and in this version, we are using the standard rails inclusion validator, as opposed to comparing two values submitted via an enhanced autocomplete.
Rename Degrees::CreateFromApply to Degrees::MapFromApply, since this service has changed its output to a hash now.
A method called degrees added to ApplyApplication, along with a few other reader methods.
In the Trainees::CreateFromApply service, added a bit of code to validate and blank out erroring fields

Guidance to review
In a rails console, ensuring you have an ApplyApplication record available, run the following commands
application = ApplyApplication.last
Trainees::CreateFromApply.call(application: application)`

A trainee should be created as per usual.
The difference between this option and option 2 is that in this option, we do not explicitly store any error data against the ApplyApplication. All of the application json would be potentially made into reader methods depending on the need.
To view the degree attributes run the following (Note that in this case, these reader methods exist independent to a trainee creation)

trainee.apply_application.degrees
# or if you want to check the contents before creating a trainee
ApplyApplication.last.degrees
# => [{:subject=>"Religious Studies", :graduation_year=>"2020", :locale_code=>0, :uk_degree=>"BA", :institution=>"University of Warwick", :grade=>"First class honours"}]

 Create from apply service handles invalid data


Update V1.9.0 to V1.10.0rc2 doesn't work

Update from a well working V1.9.0 system (RPI4 4GB/1TB HDD USB3) to V1.10.0rc2 hangs in Status "Preparing Blockchain Sync Please Wait..."  for over 48h now.
For me it seems that there is nothing usefully in process. Service bitcoind is not found.
Update process followed as described in menu on a new SD-card.
Reflashing the card comes to the same result.
Any idea witch log I can use to locate the problem?
The normal debug-log is here:
https://l.termbin.com/mcis9
Switch back the old SD-card to V1.9.0 works directly and is now syncing from 99,88% because of 3-4 days of.
Debug form this running setup is here:
https://l.termbin.com/kna8z
Many thanks to all of the Raspiblitz-Team for your great work...

Thanks for the report. This could be related to the changed bitcoind.service creation. Will run some test on this again.

@rootzoll Thanks for your feedback.
After switching back to V1.9.0 as I described above it seems working for short time, but hangs after the blockchainsync was reached 100%.
After restart it hangs here:

Debug-file is here: https://l.termbin.com/d10f
Printing debug logs. Be patient, this should take maximum 2 minutes .. tail: cannot open '/mnt/hdd/bitcoin/debug.log' for reading: No such file or directory tail: cannot open '/mnt/hdd/lnd/logs/bitcoin/mainnet/lnd.log' for reading: No such file or directory Redacting .. redacting file: /var/cache/raspiblitz/debug.log https://l.termbin.com/d10f
Reflashing the SD-card with the same V1.9.0 comes to the same result after the recovery process.
Any solution to get back a running system?
...don´t touch a running system...

Log file says:
`Aug 08 13:29:37 raspberrypi bitcoind[2912]: Error during initializaton - check debug.log for details?
But then there seems to be no debuglog .. can you check:
sudo tail -n 50 /mnt/hdd/bitcoin/debug.log

Status update, I tryed some things without success...

But then there seems to be no debuglog .. can you check:
sudo tail -n 50 /mnt/hdd/bitcoin/debug.log

Right, there is no /mnt/hdd/bitcoin/debug.log but why? Permissions?
When I create a /mnt/hdd/bitcoin/debug.log manually as bitcoin user then it seems that this file will be deleted on restart.
So, the question is: Can't Raspiblitz create that file or can't Raspiblitz start bitcoind.service?
sudo systemctl status bitcoind
● bitcoind.service - Bitcoin daemon
     Loaded: loaded (/etc/systemd/system/bitcoind.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2023-08-08 17:45:45 BST; 17s ago
    Process: 85051 ExecStartPre=/home/admin/config.scripts/blitz.systemd.sh log blockchain STARTED (code=exited, status=0/SUC>
    Process: 85084 ExecStartPre=/bin/chgrp bitcoin /mnt/hdd/bitcoin (code=exited, status=0/SUCCESS)
    Process: 85097 ExecStart=/usr/local/bin/bitcoind -daemonwait -conf=/mnt/hdd/bitcoin/bitcoin.conf -datadir=/mnt/hdd/bitcoi>
        CPU: 323ms

Aug 08 17:45:45 raspberrypi systemd[1]: bitcoind.service: Scheduled restart job, restart counter is at 5.
Aug 08 17:45:45 raspberrypi systemd[1]: Stopped Bitcoin daemon.
Aug 08 17:45:45 raspberrypi systemd[1]: bitcoind.service: Start request repeated too quickly.
Aug 08 17:45:45 raspberrypi systemd[1]: bitcoind.service: Failed with result 'exit-code'.
Aug 08 17:45:45 raspberrypi systemd[1]: Failed to start Bitcoin daemon.

After that I tried V1.10.0rc2 again...
1st SD-card flash:
Startup-process via recovery option
-> same result like above: "Blockchain Progress: 5 restarts..."
2nd SD-card flash:
Startup-process with fresh install but keep blockchain and upload the lnd-rescue-*.tar.gz option
-> ran into error after few hours.
LCD shows "System ran into an error: etc-testrun-fail"
SSH shows this: https://termbin.com/c9ju
Restart from this state shows this:

3rd SD-card flash:
Same procedure as the 2nd try but comes to the same result.

Status Update:
Node is back and alive!
Runs now again with V1.9.0 inclusive all LN-Channels and funds.
Procedure to bring it back to live was the same as I tryed with the V1.10.0rc2 described above:

2nd SD-card flash:
Startup-process with fresh install but keep blockchain and upload the lnd-rescue-*.tar.gz option

Setup runs without any problems in about 2h back to a running system.
After that I patched the system via Update/Patch-Menu from the V1.9.0 branch. I recommend to install the patches directly after setup, otherwise when you install other apps / connect mobile apps before it runs into a crash (see Log-file) and you must start again from the scratch.
My experience was that the WebUI works much more better after the patches was installed. Before that, only see the twisting circle...
Then I conneced Zeus and FullyNoded and install RTL without any problems.
Installing BTCpayServer was failed but for this I open a new issue.
Now I let it run until V1.10.0 is released.

This should be fixed in v1.10.0 - closing for now. Please reopen if still is a problem from v1.10.0rc4 onwards.


About SST dataset?

Would it be possible for you to send me the SST dataset which mentioned in the paper?
I download in the website which is nc file.
After preprocessing as the paper, I cannot get the seq in the paper.
I would appreciate it if you could send me as soon as possible.
Thank you in advance!
My Email is<EMAIL_ADDRESS>

Hi, we just sent you a mail!

Hi, we just sent you a mail!

Thanks a lot!

Hi, we just sent you a mail!

Will it be convenient for you to send me the SST datasets which mentioned in the paper?
I also find it difficult to get the datasets following the introduction in the paper.
Thank you in advance for your kind help and I am looking forward to your reply.
My email is<EMAIL_ADDRESS>

Hi, we just sent you a mail about the SST dataset.
Regarding the other datasets, what is the issue that you encounter? Besides our paper, you can find more details about the datasets that we used in the README of this repository.

Hi, we just sent you a mail about the SST dataset.
Regarding the other datasets, what is the issue that you encounter? Besides our paper, you can find more details about the datasets that we used in the README of this repository.

Thank you very much for your helping.
I'm sorry to have failed to make myself clear. What I really want to express is that I got the same problem with ManWingloeng.
There is no issue regard to other datasets. Your instructions are detailed enough to got them~
Thanks again!


2.1 Convert the application identifier

I see that the new initialization code uses app secret instead of app id.... Why do I need to convert the application identifier if it's not used in the new code?

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

ID: e158918e-8740-6b57-4579-9baa3db532ac
Version Independent ID: 9d14e1ae-ca37-791b-44eb-e3448cbc70ae
Content: HockeySDK for Xamarin Migration - Visual Studio App Center
Content Source: docs/transition/xamarin-sdk-migration.md
Service: vs-appcenter
GitHub Login: @elamalani
Microsoft Alias: emalani

I found out that I needed to use HockeyApp's app ID value (and NOT the app secret, as these docs imply) in place of {Your App Secret} in the call to AppCenter.Start().

The app ID is indeed used by the SDK. It is also used by one App Center API endpoint. However, you're right in that we're trying to not bother users of App Center with this ID.
You can get your app ID from the Overview page, through the API or the CLI, or by checking the commonContext.appStore.app.id value in the developer console of a browser after browsing to your app.


Fix the ssh issue from compute nodes to deployer during remove comput…

…e node.
Issue: QE hit this issue in remove compute. when compute host is trying to ssh to deployer.
{"changed": false, "msg": "Failed to connect to the host via ssh: ", "unreachable": true}

…e node.
Issue: QE hit this issue in remove compute. when compute host is trying to ssh to deployer.
{"changed": false, "msg": "Failed to connect to the host via ssh: ", "unreachable": true}

Not sure with above message if someone else can follow what's the issue and what's being done in this change.

…e node.
Issue: QE hit this issue in remove compute. when compute host is trying to ssh to deployer.
{"changed": false, "msg": "Failed to connect to the host via ssh: ", "unreachable": true}

Not sure with above message if someone else can follow what's the issue and what's being done in this change.

updated message


DCOS-10443: Deactivate task log cell caching

Don't cache the task log cells as otherwise the links will all point to the same task detail.
Closes DCOS-10443

LGTM 🚢


Test: set_next_input intermittent failure

Looks like it's not actually rewriting the input.
13.txt

I think the output might be getting set a little after the cell execution state completed.
I'd three might be a slight delay in outputs being setby vscode.
We might want to add a slight delay.
That would explain the flakiness, I don't think the flakyness is in our code

This should be fixed now


Wrong expected version in EventStoreEvent

Based on PR #187 from @oliveiracdz

@oliveiracdz I created a integration test and executed it locally. I'll merge this, create a release and close #187
I'm struggling a bit with the automated tests in #190, but I'll see if I can get them stable so they become a part of the build process.


refactor: Clarify naming of profiler constants (fix #602 and fix #603)

Conflict should be fixed and works now


completed props and state for players, timer, gamebutton and a few other things

…her things

in current main branch, it looks like my changes were merged with Megan's


Update rjs and requirejs version

@forksaber
My logic needs wrapshim
https://github.com/jrburke/r.js/blob/b8a6982d2923ae8389355edaa50d2b7f8065a01a/build/example.build.js#L68
I completely forgot we needed to update the version also.

@forksaber We are reverting for now.
China does not have access to google cdn. We need to write fallback to our own cdn as well.


Context - descriptions not written in clear language (Usability)

RE: JavaScript context description for >  addEventListener("load", "click"):
The copy below is difficult to read.  Please make it accessible to a broader audience of readers (ESL, new technology learners... ect).
It would help if the copy was broken-up into paragraphs and bullet points.    The copy, as written, is currently difficult to scan and therefore less than optimally helpful for all audiences.

Copied Verbatim:
addEventListener(type: "load", listener: (this: HTMLElement, ev: Event) => any, options?: boolean | AddEventListenerOptions): void
Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in §2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture. Appends an event listener for events whose type attribute value is type. The callback argument sets the callback that will be invoked when the event is dispatched. The options argument sets listener-specific options. For compatibility this can be a boolean, in which case the method behaves exactly as if the value was specified as options's capture. When set to true, options's capture prevents callback from being invoked when the event's eventPhase attribute value is BUBBLING_PHASE. When false (or not present), callback will not be invoked when event's eventPhase attribute value is CAPTURING_PHASE. Either way, callback will be invoked if event's eventPhase attribute value is AT_TARGET. When set to true, options's passive indicates that the callback will not cancel the event by invoking preventDefault(). This is used to enable performance optimizations described in §2.8 Observing event listeners. When set to true, options's once indicates that the callback will only be invoked once after which the event listener will be removed. The event listener is appended to target's event listener list and is not appended if it has the same type, callback, and capture.

The same description is appears in Visual Studio 2017. I think it should be fixed there too.

This file against TypeScript, or better the W3C committee from which this doc is taken.


A1H Solution Imp. - Plan & Schedule Go Live

Main Objectives & Tasks:

[x] Change schema field processing_mode to "P" from "T".

[x] Contact RS Pipeline Team to turn on HHSProtect reporting.

[ ] Determine if there is a backlog of results.  If so, contact the SPHD to determine what results are needed.  Example, in AL, if a Sender has only reported positives only through the ADPH Report Card, then ADPH wants all COVID (positive & negative) since the Sender started testing.

[ ] Coordinate and schedule a start date for daily results and backlog results between the SPHD and the Sender.

12/23/21 - Both CAPHD and A1H agreed to move into production with the temporary solution of rejected blank equipment model name and then manually monitoring for invalid equipment model. Closing this ticket and start Planning GO LIVE.
Cardinality set to ZERO_OR_ONE on equipment model and processing set to "P" for production. The Pull Request has been approved and it ready for deployment on Tuesday, Dec 27th. I'll ask Mo if this can be deployed on Monday.


Fix "Replication slot names may only contain lower case letters, numbers, and the underscore character."

If my database has upper case symbols bootstrap gives an error: HINT:  Replication slot names may only contain lower case letters, numbers, and the underscore character., wich arises in create_replication_slot function.
I suggest decoupling the database and replication slot names.
but I haven't researched the entire source code, so I'm not sure if the change I proposed won't break something else. Please check and, if everything is good, I will be glad to see my proposed feature in the nearest release.

sorry about the delay this is good


Update cross-tenant-mailbox-migration.md

Updated the Script to reflect the select instead of FL

@JohanFreelancer9 Please copy review

Issue#https://github.com/MicrosoftDocs/microsoft-365-docs/issues/8520

@kelleyvice-msft Please merge this PR. Thanks


Optimization with Curricula?

hi there,
as your paper said, you train thise model following the insight of curriculum learning. Is there any possibility you can release the code of creating dataset?

Hi there,
Thank you for your interest in our work.
Sure, the code for dividing training courses has been uploaded. By the way, I'm sorry for not paying attention to the issues recently.
Have a nice day!
Best Regards,
Chenyang

thanks!


Install issue

I get to a point right after the first migration is finished and when running the App\Composer::setup
 [TypeError]
  Argument 1 passed to Symfony\Component\Process\Process::__construct() must be of the type array, string given, called in C:\WEB\myshop\app\Composer.php on line 210

Can anyone tell me how to fix this?

Can you post the output of composer show?

Please see below
aimeos/ai-admin-jqadm              2021.10.15 Aimeos Vue.js+Bootstrap admin interface
aimeos/ai-admin-jsonadm            2021.10.4  Aimeos ai-admin-jsonadm extension
aimeos/ai-client-html              2021.10.14 Aimeos ai-client-html extension
aimeos/ai-client-jsonapi           2021.10.4  Aimeos JSON API extension
aimeos/ai-cms-grapesjs             2021.10.7  Aimeos GrapesJS CMS extension
aimeos/ai-controller-frontend      2021.10.4  Aimeos ai-controller-frontend extension
aimeos/ai-controller-jobs          2021.10.8  Aimeos ai-controller-jobs extension
aimeos/ai-gettext                  2021.10.3  Aimeos Gettext extension
aimeos/ai-laravel                  2021.10.3  Laravel adapter for Aimeos web shops and e-commerce solutions
aimeos/ai-swiftmailer              2021.10.2  SwiftMailer adapter for Aimeos web shops and e-commerce solutions
aimeos/aimeos-core                 2021.10.16 Full-featured e-commerce components for high performance online shops
aimeos/aimeos-laravel              2021.10.5  Professional, full-featured and high performance Laravel e-commerce package for online shops and complex B2B projects
aimeos/map                         2.6.1      Easy and elegant handling of PHP arrays as array-like map objects similar to jQuery and Laravel Collections
asm89/stack-cors                   v2.1.1     Cross-origin resource sharing library and stack middleware
brick/math                         0.9.3      Arbitrary-precision arithmetic library
doctrine/cache                     2.1.1      PHP Doctrine Cache library is a popular cache implementation that supports many different drivers such as redis, memcache, apc, mongodb and others.
doctrine/dbal                      2.13.8     Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.
doctrine/deprecations              v0.5.3     A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.
doctrine/event-manager             1.1.1      The Doctrine Event Manager is a simple PHP event system that was built to be used with the various Doctrine projects.
doctrine/inflector                 2.0.4      PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of words.
doctrine/instantiator              1.4.1      A small, lightweight utility to instantiate objects in PHP without invoking their constructors
doctrine/lexer                     1.2.3      PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.
dragonmantank/cron-expression      v3.3.1     CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due
egulias/email-validator            2.1.25     A library for validating emails against several RFCs
enshrined/svg-sanitize             0.15.4     An SVG sanitizer for PHP
facade/flare-client-php            1.9.1      Send PHP errors to Flare
facade/ignition                    2.17.5     A beautiful error page for Laravel applications.
facade/ignition-contracts          1.0.2      Solution contracts for Ignition
fakerphp/faker                     v1.19.0    Faker is a PHP library that generates fake data for you.
filp/whoops                        2.14.5     php error handling for cool kids
fruitcake/laravel-cors             v2.2.0     Adds CORS (Cross-Origin Resource Sharing) headers support in your Laravel application
graham-campbell/result-type        v1.0.4     An Implementation Of The Result Type
guzzlehttp/guzzle                  7.4.2      Guzzle is a PHP HTTP client library
guzzlehttp/promises                1.5.1      Guzzle promises library
guzzlehttp/psr7                    2.2.1      PSR-7 message implementation that also provides common utility methods
hamcrest/hamcrest-php              v2.0.1     This is the PHP port of Hamcrest Matchers
laminas/laminas-diactoros          2.9.0      PSR HTTP Message implementations
laravel/framework                  v8.83.6    The Laravel Framework.
laravel/sail                       v1.13.8    Docker files for running a basic Laravel application.
laravel/sanctum                    v2.15.0    Laravel Sanctum provides a featherweight authentication system for SPAs and simple APIs.
laravel/serializable-closure       v1.1.1     Laravel Serializable Closure provides an easy and secure way to serialize closures in PHP.
laravel/tinker                     v2.7.2     Powerful REPL for the Laravel framework.
laravel/ui                         v3.4.5     Laravel UI utilities and presets.
league/commonmark                  1.6.7      Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and Github-Flavored Markdown (GFM)
league/flysystem                   1.1.9      Filesystem abstraction: Many filesystems, one API.
league/mime-type-detection         1.9.0      Mime-type detection for Flysystem
mockery/mockery                    1.5.0      Mockery is a simple yet flexible PHP mock object framework
monolog/monolog                    2.4.0      Sends your logs to files, sockets, inboxes, databases and various web services
myclabs/deep-copy                  1.11.0     Create deep copies (clones) of your objects
nesbot/carbon                      2.57.0     An API extension for DateTime that supports 281 different languages.
nikic/php-parser                   v4.13.2    A PHP parser written in PHP
nunomaduro/collision               v5.11.0    Cli error handling for console/command-line PHP applications.
nyholm/psr7                        1.5.0      A fast PHP7 implementation of PSR-7
opis/closure                       3.6.3      A library that can be used to serialize closures (anonymous functions) and arbitrary objects.
phar-io/manifest                   2.0.3      Component for reading phar.io manifest information from a PHP Archive (PHAR)
phar-io/version                    3.2.1      Library for handling version information and constraints
php-http/message-factory           v1.0.2     Factory interfaces for PSR-7 HTTP Message
phpdocumentor/reflection-common    2.2.0      Common reflection classes used by phpdocumentor to reflect the code structure
phpdocumentor/reflection-docblock  5.3.0      With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.
phpdocumentor/type-resolver        1.6.1      A PSR-5 based resolver of Class names, Types and Structural Element Names
phpoption/phpoption                1.8.1      Option Type for PHP
phpspec/prophecy                   v1.15.0    Highly opinionated mocking framework for PHP 5.3+
phpunit/php-code-coverage          9.2.15     Library that provides collection, processing, and rendering functionality for PHP code coverage information.
phpunit/php-file-iterator          3.0.6      FilterIterator implementation that filters files based on a list of suffixes.
phpunit/php-invoker                3.1.1      Invoke callables with a timeout
phpunit/php-text-template          2.0.4      Simple template engine.
phpunit/php-timer                  5.0.3      Utility class for timing
phpunit/phpunit                    9.5.19     The PHP Unit Testing framework.
psr/container                      1.1.1      Common Container Interface (PHP FIG PSR-11)
psr/event-dispatcher               1.0.0      Standard interfaces for event handling.
psr/http-client                    1.0.1      Common interface for HTTP clients
psr/http-factory                   1.0.1      Common interfaces for PSR-7 HTTP message factories
psr/http-message                   1.0.1      Common interface for HTTP messages
psr/log                            1.1.4      Common interface for logging libraries
psr/simple-cache                   1.0.1      Common interfaces for simple caching
psy/psysh                          v0.11.2    An interactive shell for modern PHP.
ralouphie/getallheaders            3.0.3      A polyfill for getallheaders.
ramsey/collection                  1.2.2      A PHP library for representing and manipulating collections.
ramsey/uuid                        4.2.3      A PHP library for generating and working with universally unique identifiers (UUIDs).
sebastian/cli-parser               1.0.1      Library for parsing CLI options
sebastian/code-unit                1.0.8      Collection of value objects that represent the PHP code units
sebastian/code-unit-reverse-lookup 2.0.3      Looks up which function or method a line of code belongs to
sebastian/comparator               4.0.6      Provides the functionality to compare PHP values for equality
sebastian/complexity               2.0.2      Library for calculating the complexity of PHP code units
sebastian/diff                     4.0.4      Diff implementation
sebastian/environment              5.1.3      Provides functionality to handle HHVM/PHP environments
sebastian/exporter                 4.0.4      Provides the functionality to export PHP variables for visualization
sebastian/global-state             5.0.5      Snapshotting of global state
sebastian/lines-of-code            1.0.3      Library for counting the lines of code in PHP source code
sebastian/object-enumerator        4.0.4      Traverses array structures and object graphs to enumerate all referenced objects
sebastian/object-reflector         2.0.4      Allows reflection of object attributes, including inherited and non-public ones
sebastian/recursion-context        4.0.4      Provides functionality to recursively process PHP variables
sebastian/resource-operations      3.0.3      Provides a list of PHP built-in functions that operate on resources
sebastian/type                     3.0.0      Collection of value objects that represent the types of the PHP type system
sebastian/version                  3.0.2      Library that helps with managing the version number of Git-hosted PHP projects
swiftmailer/swiftmailer            v6.3.0     Swiftmailer, free feature-rich PHP mailer
symfony/console                    v5.4.5     Eases the creation of beautiful and testable command line interfaces
symfony/css-selector               v5.4.3     Converts CSS selectors to XPath expressions
symfony/deprecation-contracts      v2.5.0     A generic function and convention to trigger deprecation notices
symfony/error-handler              v5.4.3     Provides tools to manage errors and ease debugging PHP code
symfony/event-dispatcher           v5.4.3     Provides tools that allow your application components to communicate with each other by dispatching events and listening to them
symfony/event-dispatcher-contracts v2.5.0     Generic abstractions related to dispatching event
symfony/finder                     v5.4.3     Finds files and directories via an intuitive fluent interface
symfony/http-foundation            v5.4.6     Defines an object-oriented layer for the HTTP specification
symfony/http-kernel                v5.4.6     Provides a structured process for converting a Request into a Response
symfony/mime                       v5.4.3     Allows manipulating MIME messages
symfony/polyfill-ctype             v1.25.0    Symfony polyfill for ctype functions
symfony/polyfill-iconv             v1.25.0    Symfony polyfill for the Iconv extension
symfony/polyfill-intl-grapheme     v1.25.0    Symfony polyfill for intl's grapheme_* functions
symfony/polyfill-intl-idn          v1.25.0    Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
symfony/polyfill-intl-normalizer   v1.25.0    Symfony polyfill for intl's Normalizer class and related functions
symfony/polyfill-mbstring          v1.25.0    Symfony polyfill for the Mbstring extension
symfony/polyfill-php72             v1.25.0    Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
symfony/polyfill-php73             v1.25.0    Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions
symfony/polyfill-php80             v1.25.0    Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions
symfony/polyfill-php81             v1.25.0    Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions
symfony/process                    v5.4.5     Executes commands in sub-processes
symfony/psr-http-message-bridge    v2.1.2     PSR HTTP message bridge
symfony/routing                    v5.4.3     Maps an HTTP request to a set of configuration variables
symfony/service-contracts          v2.5.0     Generic abstractions related to writing services
symfony/string                     v5.4.3     Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way
symfony/translation                v5.4.6     Provides tools to internationalize your application
symfony/translation-contracts      v2.5.0     Generic abstractions related to translation
symfony/var-dumper                 v5.4.6     Provides mechanisms for walking through any arbitrary PHP variable
tecnickcom/tcpdf                   6.4.4      TCPDF is a PHP class for generating PDF documents and barcodes.
theseer/tokenizer                  1.2.1      A small library for converting tokenized PHP source code into XML and potentially other formats
tijsverkoyen/css-to-inline-styles  2.2.4      CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.
vlucas/phpdotenv                   v5.4.1     Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.
voku/portable-ascii                1.6.1      Portable ASCII library - performance optimized (ascii) string functions for php.
webmozart/assert                   1.10.0     Assertions to validate method input/output with nice error messages.

Look OK. Do you have a stack trace of the problem?

do you mean the Exception trace from cmd prompt?
Exception trace:
  at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/process/Process.php:143
 Symfony\Component\Process\Process->__construct() at C:\111Projects\WEB\cueforce\app\Composer.php:210
 App\Composer::executeCommand() at C:\111Projects\WEB\cueforce\app\Composer.php:178
 App\Composer::setup() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:391
 Composer\EventDispatcher\EventDispatcher->executeEventPhpScript() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:248
 Composer\EventDispatcher\EventDispatcher->doDispatch() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/EventDispatcher/EventDispatcher.php:125
 Composer\EventDispatcher\EventDispatcher->dispatchScript() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Command/CreateProjectCommand.php:321
 Composer\Command\CreateProjectCommand->installProject() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Command/CreateProjectCommand.php:167
 Composer\Command\CreateProjectCommand->execute() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Command/Command.php:298
 Symfony\Component\Console\Command\Command->run() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Application.php:1015
 Symfony\Component\Console\Application->doRunCommand() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Application.php:299
 Symfony\Component\Console\Application->doRun() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Console/Application.php:334
 Composer\Console\Application->doRun() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/vendor/symfony/console/Application.php:171
 Symfony\Component\Console\Application->run() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/src/Composer/Console/Application.php:130
 Composer\Console\Application->run() at phar://C:/ProgramData/ComposerSetup/bin/composer.phar/bin/composer:83
 require() at C:\ProgramData\ComposerSetup\bin\composer.phar:29

create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--prefer-install PREFER-INSTALL] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev] [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http] [--keep-vcs] [--remove-vcs] [--no-install] [--ignore-platform-req IGNORE-PLATFORM-REQ] [--ignore-platform-reqs] [--ask] [--] [<package> [<directory> [<version>]]]

The problem is caused by composer 2.3.x, which contains a newer Symfony Process implementation which is incompatible to the one used before. We've fixed that and created a new release (2021.10.5) which installs without problems now when using composer 2.3

Thanks!


Print response body when test fails (v2)

@adamcohen, what do you think of this output format? It's a combination of what I was trying to do with my earlier response output that only worked for response code diffs, and your latest PR. The debug output is attached to the rspec failure output now,
example output:
rspec spec/data/example_specs.rb =>
API testing scenarios
  unimplemented path
    fails (FAILED - 1)
  mismatched property type
    fails (FAILED - 2)
  unexpected http response
    fails (FAILED - 3)
  extra properties
    fails (FAILED - 4)
    also fails (FAILED - 5)
  missing required
    fails (FAILED - 6)
    also fails (FAILED - 7)
  missing non-required
    passes
    also passes
  fails custom validation
    passes
    fails (FAILED - 8)

Failures:

  1) API testing scenarios unimplemented path fails
     Failure/Error: expect(subject).to validate(:get, "/not_implemented.json", 200)
       Path /not_implemented.json did not respond with expected status code. Expected 200 got 404
     # ./spec/data/example_specs.rb:10:in `block (3 levels) in <top (required)>'

  2) API testing scenarios mismatched property type fails
     Failure/Error: expect(subject).to validate(:get, "/services/{id}.json", 200, { "id" => 1 })
        '/api/services/1.json#/name' of type String did not match one or more of the following types: integer, null
       Response body:
        {
         "id": 1,
         "name": "hello world"
       }
     # ./spec/data/example_specs.rb:17:in `block (3 levels) in <top (required)>'

  3) API testing scenarios unexpected http response fails
     Failure/Error: expect(subject).to validate(:get, "/services.json", 222)
       Path /services.json did not respond with expected status code. Expected 222 got 200
       Response body:
        [
         {
           "id": 1,
           "name": "hello world"
         }
       ]
     # ./spec/data/example_specs.rb:25:in `block (3 levels) in <top (required)>'

  4) API testing scenarios extra properties fails
     Failure/Error: expect(subject).to validate(:get, "/services.json", 200)
        '/api/services.json#/0' contains additional properties ["name"] outside of the schema when none are allowed
       Response body:
        [
         {
           "id": 1,
           "name": "hello world"
         }
       ]
     # ./spec/data/example_specs.rb:33:in `block (3 levels) in <top (required)>'

  5) API testing scenarios extra properties also fails
     Failure/Error: expect(subject).to validate(:get, "/services/{id}.json", 200, { "id" => 1})
        '/api/services/1.json#/' contains additional properties ["name"] outside of the schema when none are allowed
       Response body:
        {
         "id": 1,
         "name": "hello world"
       }
     # ./spec/data/example_specs.rb:37:in `block (3 levels) in <top (required)>'

  6) API testing scenarios missing required fails
     Failure/Error: expect(subject).to validate(:get, "/services.json", 200)
        '/api/services.json#/0' did not contain a required property of 'test_required'
       Response body:
        [
         {
           "id": 1,
           "name": "hello world"
         }
       ]
     # ./spec/data/example_specs.rb:45:in `block (3 levels) in <top (required)>'

  7) API testing scenarios missing required also fails
     Failure/Error: expect(subject).to validate(:get, "/services/{id}.json", 200, { "id" => 1})
        '/api/services/1.json#/' did not contain a required property of 'test_required'
       Response body:
        {
         "id": 1,
         "name": "hello world"
       }
     # ./spec/data/example_specs.rb:49:in `block (3 levels) in <top (required)>'

  8) API testing scenarios fails custom validation fails
     Failure/Error: expect(subject).to conform_to(Apivore::CustomSchemaValidator::WF_SCHEMA)
       The property '#/definitions/service' did not contain a required property of 'type' in schema file:///Users/charles/westfield/apivore/data/custom_schemata/westfield_api_standards.json#
     # ./spec/data/example_specs.rb:72:in `block (3 levels) in <top (required)>'

Finished in 0.14658 seconds (files took 0.98401 seconds to load)
11 examples, 8 failures

Failed examples:

rspec ./spec/data/example_specs.rb:9 # API testing scenarios unimplemented path fails
rspec ./spec/data/example_specs.rb:16 # API testing scenarios mismatched property type fails
rspec ./spec/data/example_specs.rb:24 # API testing scenarios unexpected http response fails
rspec ./spec/data/example_specs.rb:32 # API testing scenarios extra properties fails
rspec ./spec/data/example_specs.rb:36 # API testing scenarios extra properties also fails
rspec ./spec/data/example_specs.rb:44 # API testing scenarios missing required fails
rspec ./spec/data/example_specs.rb:48 # API testing scenarios missing required also fails
rspec ./spec/data/example_specs.rb:71 # API testing scenarios fails custom validation fails```

I like it! LGTM


Update debian node setup

Changes made:
This PR updates our npm configuration to use node version 20 and re-point the docker build to debian:stable,  because debian:stretch has been deprecated.
To test

Get off VPN if you are on VPN
Check what version of node you are using by running node -v
If not using version 20, switch to node version 20 by running nvm use 20 [If it's not installed, install latest version of node by running nvm install 20.0.0 --reinstall-packages-from=14.17.0]
Make node 20 your default by running nvm alias default 20
Delete package-lock.json and the node_modules directory
Run npm install
Run npm run serve

Changes:

In Dockerfile, point to to a stable debian release, instead of the archived stretch release, using the debian:stable tag listed as a current tag on Dockerhub.
In Dockerfile, get and install the current version of node (version 20)
In package.json remove addition of node-sass in devDependencies and instead specify latest version of sass, as node-sass is not supported for node 20. Node-sass is now deprecated, and the makers recommend switching to sass
In package.json add env NODE_OPTIONS=--openssl-legacy-provider to all 'serve' and 'build' scripts to overcome a lack of support for digital envelope routines in node 17+. See this issue and this comment
Update other miscellaneous packages to match versions used in more recently built and updated package.json in vizlab-home
Add .npmrc file in root directory with the content legacy-peer-deps=true to overcome peer dependency conflicts between cli-plugin-eslint, eslint, and babel-eslint. See this issue and this comment.
Changes to src/main.js are from running lint

Testing:
Before making this pull request, I:

[X] Cleaned the code the way Vue likes it - run 'npm run lint --fix'
[ ] Made sure all tests run
[ ] Ran WAVE plugin 508 compliance tool

I can confirm this has been checked on:

[X] Chrome
[ ] Safari
[X] Edge
[X] Firefox
[ ] Samsung Internet
[ ] Internet Explorer 11 (not supported, but still needs at least a working user redirect page)

@cnell-usgs - tagging you for awareness, but tagging @aaarcher-usgs for review since it will impact her local setup for active development.


Some Problems on the Internal Parameter Matrix of L515 Camera

Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

Consider checking out SDK examples.
Have you looked in our documentations?
Is you question a frequently asked one?
Try searching our GitHub Issues (open and closed) for a similar issue.

All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)

Required Info

Camera Model
{ L515}

Firmware Version
(Open RealSense Viewer --> Click info)

Operating System & Version
{Win (8.1/10) }

Kernel Version (Linux Only)
？？？

Platform
PC

SDK Version
{ legacy / 2.. }

Language
{python }

Segment
{Robot/Smartphone/VR/AR/others }

Issue Description
<Describe your issue / question / feature request / etc..>
How to adjust the internal reference matrix of two L515 cameras to be the same?
This is the internal reference matrix of one of my cameras：
Deep frame internal parameter matrix：
[ 960x540  p[495.936 270.658]  f[674.108 674.523]  Brown Conrady [0.179601 -0.559083 -0.00375945 0.000501796 0.527874] ]
Color frame internal reference matrix：
[ 960x540  p[495.936 270.658]  f[674.108 674.523]  Brown Conrady [0.179601 -0.559083 -0.00375945 0.000501796 0.527874] ]
This is the internal parameter matrix of another camera：
Deep frame internal parameter matrix：
[ 960x540  p[491.242 274.202]  f[675.649 675.635]  Brown Conrady [0.162009 -0.504752 -0.00187483 0.000331119 0.475713] ]
Color frame internal reference matrix：
[ 960x540  p[491.242 274.202]  f[675.649 675.635]  Brown Conrady [0.162009 -0.504752 -0.00187483 0.000331119 0.475713] ]
How to adjust the internal parameter matrices of these two cameras to be consistent?
Please help me！
The problem I want to solve is:
Fixed camera position, fixed position of measured object
At the same camera position, switch to a different L515 camera and measure the three-dimensional coordinates of the object, in order to keep the three-dimensional coordinates of the object unchanged. Is it determined by unifying the internal parameter matrices of two L515 cameras?

Hi @HGS-1998  https://github.com/IntelRealSense/librealsense/issues/4061 provides an example of Python scripting for manually defining the intrinsic values to use.

Hi #4061 提供了一个 Python 脚本示例，用于手动定义要使用的内部值。

Thanks for your help,I have another question that I would like to ask you to help me solve.
Will the internal reference matrices of the camera's depth frames and color frames change after registration?
This is an internal parameter matrix that has not been registered:

This is the internal parameter matrix for registration:

Does this mean that the internal parameter matrix will change when the deep stream aligns with the color stream for registration?

Hi @HGS-1998  Do you require further assistance with this case, please?  Thanks!

Hi @HGS-1998 Do you require further assistance with this case, please? Thanks!

There are currently no issues. Thank you for your help

You are very welcome.  As you do not require further assistance, I will close this issue.  Thanks very much for the update!

非常欢迎你。由于您不需要进一步的帮助，我将关闭此问题。非常感谢您的更新！

Hello, I'm very sorry to bother you again. My question is: I have two cameras with model L515, how can I ensure that they have the same world coordinate system in the same space? (Simply put, I want two cameras to shoot the same object in the same position and obtain the same three-dimensional coordinates.)

A way to calibrate multiple L515 cameras together relative to each's world position is to use place boards with Apriltag images on them behind the camera.  Intel demonstrated this with nine L515 at the CES electronics show in 2020, as shown in the YouTube video link below..
https://www.youtube.com/watch?v=UzIfn667abE&t=7s

Another approach is to use an affine transform to set the images from all cameras to the same position and rotation in 3D space.  The SDK instruction rs2_transform_point_to_point is a standard affine transformation using a 3x3 rotation matrix and a 3-component translation vector.
The function accepts the following parameters :

"rs2_extrinsics" struct that contains parameters describing relationship between the separate 3D coordinate systems.
3D point coordinates.

https://github.com/IntelRealSense/librealsense/issues/1231#issuecomment-368421888
has an example of a Python script that makes use of rs2_transform_point_to_point.

根据每个相机的世界位置一起校准多个 L515 相机的一种方法是在相机后面使用带有 Apriltag 图像的位置板。英特尔在 515 年的 CES 电子展上用九台 L2020 展示了这一点，如下面的 YouTube 视频链接所示。
https://www.youtube.com/watch?v=UzIfn667abE&t=7s
另一种方法是使用仿射变换将所有相机的图像设置为3D空间中的相同位置和旋转。SDK 指令rs2_transform_point_to_point是使用 3x3 旋转矩阵和 3 分量平移向量的标准仿射变换。
该函数接受以下参数：

“rs2_extrinsics”结构，包含描述各个 3D 坐标系之间关系的参数。
3D 点坐标。

#1231（评论）有一个使用rs2_transform_point_to_point的Python脚本示例。

This is not the answer I want, my question is：I want two cameras to shoot the same object in the same position and obtain the same three-dimensional coordinates.
Using this affine transformation, we can get the transformation between the image coordinate system of an L515 camera, the camera coordinate system and the world coordinate system. But what I mean is, how to make two L515 cameras have the same world coordinate system, you can see the schematic diagram:

Why are the 3D coordinates not the same when the relative positions of the camera and the object remain unchanged？

Each individual RealSense camera has unique intrinsics and extrinsics due to the manufacturing process in the factory when the camera is constructed.

Other than setting custom calibration values for a camera in a script as suggested above at https://github.com/IntelRealSense/librealsense/issues/11838#issuecomment-1562748349 I cannot think of another approach, unfortunately.


Revert "Update dependency css-loader to v6"

Reverts hogashi/chrome-usercss-hogashi#39

had some warn about ttf (??) when popup opened

Failed to decode downloaded font: chrome-extension://hchhgpaiijibnjdhgkphhgdbamgilomk/d60cdb4618631e8c93f6.ttf

OTS parsing error: invalid sfntVersion:<PHONE_NUMBER>

ref: microsoft/monaco-editor issues 2742

ref: microsoft/monaco-editor issues 2742

→ #48

→ #48


Issue No.4

We want to restart the Rioos api server for the login screen.
It shows there was no space in the device. So we want to delete the unwanted images. So if you could call us we can explain and send us the file.

we need a imaged stored path and delete command to delete the unwanted images.
Because we have to verify and delete the unwanted images. Please let us know. Now we are not able to login to rioos

<IP_ADDRESS> server have only 72G of / size.

RioOS used storage of 38G.
You are copied IMAYAM-new.vhdx image into /var/lib/rioos/servernet repository.
IMAYAM-new.vhdx storage size is 36G. so it occupy 100% of storage size.

If you are used, then delete unwanted images.
Now i manually delete IMAYAM-new.vhdx image. using remove command
rm /var/lib/rioos/servernet/IMAYAM-new.vhdx

we need a imaged stored path and delete command to delete the unwanted images.
Because we have to verify and delete the unwanted images. Please let us know. Now we are not able to login to rioos

Launched vm  stored in ceph storage. You can see using rbd ls rio . It not used / storage size. VM launched only in ceph storage. ceph is using 3 disk in <IP_ADDRESS> server.


“clear” command deletes history

Pressing Ctrl + L clears the history in the terminal. This normally leads to the previous output being shifted upwards so that you can scroll back an see what happened before. However, this content gets deleted instead, so we cannot see the previous output.
julia-client v0.7.7
uber-juno v0.2.0
Atom v1.31.1

What OS are you using? I can't repro this issue on Linux.

Fedora 28 (in Tilix this works fine, for example, so shouldn’t be due to Julia).
screencast.zip

Hm, I seem to not have paid close enough attention when I tried this yesterday. I can repro this now (doesn't even require Julia, just echo '\e[1;1H\e[2J' is enough).
This appears to be a bug in the terminal emulator we use. I'll investigate and open an issue upstream.

I encountered also are other issues with the terminal. For example when you ;git diff something and scroll through the output, you should see some artifacts of disappearing and flickering code; and when you scroll up, there are even more artifacts.
Could that terminal be reset to a previous, hopefully more stable version?

Can you try with the newest ink version? I can't see any artifacts in git diff or similar commands. You might also want to try playing around with the fallback renderer option in julia-client.

With ink v0.9.11 the bug still persists, will try the fallback renderer then…

Might be a bit slower, but otherwise it should be fine.


Relaxes gem dependencies

There are two changes here:

I cherry-picked a commit from the v4 line that removes the dependency on sass (which was been deprecated for ages).
I relaxed the dependency on thor so that it will accept more recent versions. I don't actually know if the thor-based generator in this gem will work with the later versions, because the specs don't seem to test it, but I also think that we (Careport) don't use it.

thanks @santry


Server should return STIX 2.0 content when STIX 2.0 content is requested

I'm getting errors trying to use python-stix2 to request data from freetaxii:
collection = Collection("https://test.freetaxii.com:8000/osint/collections/2b37444f-3659-4dba-ad8e-960b4e61a546/")

# supply the TAXII2 collection to TAXIICollection
tc_source = TAXIICollectionSource(collection)

# build your filter -- kinda seems broken now
# f1 = Filter("type","=", "indicator")

#retrieve the STIX objects
results = tc_source.query(allow_custom=True)

Error is:
TAXIIServiceException: Unexpected Response Content-Type: application/vnd.oasis.stix+json; version=2.1; charset=utf-8

This is fixed and published to the test site.  The media type coming back now is STIX 2.0.


Update install-extras.sh

Compatibility with other installations that don't use "pi" as main username

Using $HOME here will break it for everyone else.

@zerojay Did you tried? $HOME will be "/home/pi" on regular systems, it won't break anything. Using $HOME is better because you can't ensure everybody is usong "pi" as default username. Try and test it, on my system is working well, also I troed on a regular system and is still working.

Script needs to be run as root, therefore $HOME is /root.

Also, I have no need to worry about what user is being used as i am supporting Retropie, not anyone's Raspbian Jessie install with who knows what changes.
Honestly, the script is dead simple anyways. Chances are if you are running your own install like that, you know how to copy the scripts into the right place manually. The script is targeted at newbies.
I'm on the road at the moment. When i am done moving,  I'll look at this.

echo $HOME
/root
As such, I will not be merging this, sorry.


register OpenCV version <IP_ADDRESS>-p1

version <IP_ADDRESS>-p1 supports VS2015

version <IP_ADDRESS>-p1 supports VS2015

It would be nice if we can test it (for now tested only version from default.cmake, which is 3+). Please add a new example which will use this version, we can call it OpenCV-2.4. Version can be set explicitly be config.cmake, see example of customization: https://github.com/ruslo/hunter/blob/0edd03ed68b7a56d6f6ef0a4aa8912498daf715a/examples/Protobuf-optimized/CMakeLists.txt#L5

version <IP_ADDRESS>-p1 supports VS2015

Have you test the example yourself? It doesn't work for me and still produce error:
-- OpenCV ARCH: x86
-- OpenCV RUNTIME: vc14
-- OpenCV STATIC: OFF
CMake Warning at C:/.../Hunter/_Base/e0f9166/95b4ad6/7670235/Install/OpenCVConfig.cmake:163 (message):
  Found OpenCV Windows Pack but it has not binaries compatible with your
  configuration.

  You should manually point CMake variable OpenCV_DIR to your build of OpenCV
  library.
Call Stack (most recent call first):
  CMakeLists.txt:12 (find_package)

CMake Error at CMakeLists.txt:12 (find_package):
  Found package configuration file:

    C:/.../Hunter/_Base/e0f9166/95b4ad6/7670235/Install/OpenCVConfig.cmake

  but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be
  NOT FOUND.

no didn't tested, I was sure it worked.
I have that issue also. I have not idea why, it works for my project

I have that issue also. I have not idea why, it works for my project

You have that issue but at the same time it works for your project? 😎

Yep I was able to compile with VS2015 and OpenCV 2.4, removing plenty of errors.
I'm investigating though

I see a difference :
[hunter] OPENCV_ROOT: D:/hunter/_Base/6974c21/2288afc/78eefd3/Install (ver.: <IP_ADDRESS>-p1)
OpenCV ARCH: x86
OpenCV RUNTIME: vc14
OpenCV STATIC: **OFF**
CMake Warning at D:/hunter/_Base/6974c21/2288afc/78eefd3/Install/OpenCVConfig.cmake:163 (message):
  Found OpenCV Windows Pack but it has not binaries compatible with your
  configuration.

[hunter] OPENCV_ROOT: D:/hunter/_Base/6974c21/4adca17/78eefd3/Install (ver.: <IP_ADDRESS>-p1)
OpenCV ARCH: x86
OpenCV RUNTIME: vc14
OpenCV STATIC: **ON**
Found OpenCV <IP_ADDRESS> in D:/hunter/_Base/6974c21/4adca17/78eefd3/Install/x86/vc14/staticlib

OpenCV STATIC: OFF
OpenCV STATIC: ON

How this variable is set? It should depend on the fact how OpenCV is built.

Ok it works with BUILD_SHARED_LIBS ON but not OFF
For information BUILD_SHARED_LIBS OFF on my project is a side effect of integrating GTest with add_subdirectory(gtest..) which define option(BUILD_SHARED_LIBS ... OFF)

Ok it works with BUILD_SHARED_LIBS ON but not OFF

With BUILD_SHARED_LIBS on the user's side or on the OpenCV side? What is the way to detect static library in installed OpenCVConfig.cmake? This should be based on the OpenCV's value of BUILD_SHARED_LIBS, something like this:
# OpenCVConfig.cmake.in template
...
if(@BUILD_SHARED_LIBS@) # the value of BUILD_SHARED_LIBS on configuration step of OpenCV
  # searching for shared libraries
else()
  # searching for static libraries
endif()

User's side

User's side

That's wrong I think. For example if I want to have OpenCV as shared and link it to my static library.

But that's the way OpenCV seems to work

But that's the way OpenCV seems to work

As you can see it doesn't work correctly, that's what we hit here. I think the fix is trivial.

In the installed OpenCVConfig.cmake I have ;
if(NOT DEFINED OpenCV_STATIC)
  # look for global setting
  if(BUILD_SHARED_LIBS)
    set(OpenCV_STATIC OFF)
  else()
    set(OpenCV_STATIC ON)
  endif()
endif()

Whereas in the template there is only :
# Some additional settings are required if OpenCV is built as static libs
set(OpenCV_SHARED @BUILD_SHARED_LIBS@)

I'm confused


Feature request: Allow loading pre-transpiled code/html into preview iframe, bypassing compilation

Tell us how you think we can improve Sandpack
Packages affected

[X] sandpack-client
[X] sandpack-react

What is this feature?
After editing js/html content in the editor, and seeing the compiled result in the preview iframe, have the ability to export the compiled js and html (for saving in a database), then allow loading that pre-compiled content back into the iframe at a later time.
The intention here is for a kind of production mode with no editor available, optimised for speed.
How would your idea work?
We can access the compiled code by listening for messages of type state. The compiled code and related data being available under state.transpiledModules.
We then need a way to feed that info back into the iframe for rendering, bypassing any compilation. Maybe the SandpackClient class could be extended to support this, something like this:
const client = new SandpackClient(
  iframeRef.current,
  { files, transpiledModules },
  { loadTranspiledModules: true }
);

The files object is required to access /index.html, transpiledModules comes directly from the state message, and then passing the loadTranspiledModules boolean option to enable loading the transpiled modules and bypass any compilation.
I'm not entirely sure how the iframe would inject the transpiled code and html, but I believe we could extract parts of the compile function here maybe?
https://github.com/codesandbox/codesandbox-client/blob/master/packages/app/src/sandbox/compile.ts#L464
Open to ideas on how this could work. Also, I would love to know if there is a way we could do this now, even if it means posting a message to the iframe and running custom code to do the injecting.
Do you have any examples of how you would like to see us implement it?

Hey @christian-schulze, thanks for raising this issue.
It's very interesting that you mentioned this problem because we have been working internally on a refactor to optimize the transpile step in the bundler, plus caching its output for other sandboxes. We still don't know when we'll be able to implement it, but it seems very promising so far.
@DeMoorJasper is out for the holidays, but let me know if I'm assuming anything wrong here.

Hi @danilowoz, thanks for responding so soon!

optimize the transpile step in the bundler, plus caching its output for other sandboxes.

This sounds like it will cover what I'm asking for :+1:
A further question regarding the cache...Will it have an API to allow reading/writing its contents? This will enable saving bundled output to a database for later reloading.

Moved the discussion to https://github.com/codesandbox/sandpack/issues/295


Correctness of default intrinsic parameters

Before opening a new issue, we wanted to provide you with some useful suggestions (Click "Preview" above for a better view):

Consider checking out SDK examples.
Have you looked in our documentations?
Is you question a frequently asked one?
Try searching our GitHub Issues (open and closed) for a similar issue.

All users are welcomed to report bugs, ask questions, suggest or request enhancements and generally feel free to open new issue, even if they haven't followed any of the suggestions above :)

Required Info

Camera Model
L515

Firmware Version
<IP_ADDRESS>

Operating System & Version
ubuntu 18.04

Kernel Version (Linux Only)
ubuntu 18.04

Platform
PC

SDK Version
latest

Language
python }

Segment
robot

Issue Description
I tried to project 3D points to 2D image by using rs.rs2_project_point_to_pixel. However, this function is based on the intrinsic model. After rechecking, I found that my projection is mismatched between 3D and 2D scenes (yields different scales, the one in the 2D image is smaller than in 3D scene). Thus, I'm doubting the correctness of the factory intrinsic parameters.

Should I absolutely trust that and check others?
Do I need to recalibrate those parameters?
Is there a case of wrong factory intrinsic parameters?

Hi @robopassio  I hope that the information in https://github.com/IntelRealSense/librealsense/issues/4315 will be useful in answering your questions.  In summary:

As mentioned in https://github.com/IntelRealSense/librealsense/issues/4315 use of the rs2_project_point_to_pixel instruction may result in discrepancies.

and 3.  Whilst you are free to perform a re-calibration at any time if you believe it to be necessary, a mis-calibration or an issue with the original factory calibration is not likely the cause of the mismatches that you experienced but rather the expected behavior of rs2_deproject_pixel_to_point.

Hi @MartyG-RealSense,
I think that thread is different from my purpose. Here, I'm trying to project 3D points to 2D image. I first define four points on an object (has rectangular shape) then project these four points into the image plane and draw it. I have checked and see that
For the depth data: the point coordinates reading from the point PCL data is larger than the actual one.
For the color data: I use the mentioned function rs.rs2_project_point_to_pixel to project into the image frame and it is smaller than the actual one.
The object is located in the center view of the camera. The errors are around 4mm for each height and width. The depth error is around 15mm (measure from the surface of the camera to the object).  are that normal errors in this product?

Advice in https://github.com/IntelRealSense/librealsense/issues/4644#issuecomment-522754917 that is related to the information in https://github.com/IntelRealSense/librealsense/issues/4315 states that if distortions are introduced by creating a 3D point cloud with deprojection, then measurable and visible artifacts will also be present when projecting that 3D point cloud back to 2D pixels.
In general, error in depth measurements increases linearly as distance of the observed object / surface from the camera increases.  This phenomenon is called RMS error.  The scale of the error can depend on the particular camera model being used.  For example, on the D435 / D435i the drift in accuracy may become noticable at 3 meters and beyond from the camera.  The D455 model though has 2x the depth accuracy over distance of the D435 / D435i, so it has the same accuracy at 6 meters from the camera that the D435 / D435i do at 3 meters.
More information about RMS error can be found in point 5 of the section of Intel's camera tuning guide linked to below.
https://dev.intelrealsense.com/docs/tuning-depth-cameras-for-best-performance#section-verify-performance-regularly-on-a-flat-wall-or-target

My measurement distance is within 20-50cm, however, the depth error from reading data and the physical measurement is about 1-1.5cm and width/height errors are 0.5cm, which is quite large. Any tutorial/guideline in detail to recalibrate/fix this issue?
It looks that both RGB and depth data are incorrect and I cannot use the factory intrinsic parameters.

My apologies, I remind myself that you have an L515 lidar depth camera instead of a 400 Series stereo depth camera.  Please disregard the information about RMS error then.
The L515 camera model does not have a depth and RGB calibration tool as it is a different camera technology to the 400 Series cameras.  I am also not aware of a factory reset mechanism for the L515 model.
It may be worth checking whether there is an environmental factor in the location that the camera is being used that is negatively affecting depth sensing results (such as infrared sources / sunlight), or a type of material that the L515 has difficulty with depth sensing, such as transparencies such as see-through plastic bottles.

@MartyG-RealSense . Thanks for the information. From this diagram,

Is the origin of the RGB camera located at the front cover glass? or any offset?
Is the origin of the Depth camera located at the IR receiver?

The top of page 12 of the L515 data sheet document (where the above image is sourced from) states that "the depth origin X-Y coordinates is the X-Y center of the IR Transmitter".
In https://github.com/IntelRealSense/librealsense/issues/7507#issuecomment-755768421 a RealSense team member provides information about the position of the RGB camera relative to the IR transmitter.

Hi @robopassio  Do you require further assistance with this case, please? Thanks!

From the above comment, the answer for my #1 question is the origin camera is not located at the glass surface but is inside with 6.5 mm offset right?

Pages 10 and 11 of the data sheet state that the '0' depth origin is at the front glass, and that the 'ground truth' of depth measurements can be found by adding -4.5 mm to depth measurements.

Thanks. But my first question is about the origin position of the RGB sensor.

In RealSense depth cameras, the 0,0,0 'world origin' of the coordinate system is the depth system (the IR Transmitter in the L515 camera model), not the RGB.  Positional differences between sensors are described with extrinsics, not with a separate RGB origin coordinate.

The extrinsic parameter of the RGB camera represents the rotation and translation from the origin of RGB to the object. After obtaining the extrinsic parameters (by calibrating), I realized there exists an offset along the z-axis of the RGB. I'm not sure about

not with a separate RGB origin coordinate

Can you explain that? The extrinsic parameters cannot be used for RGB only?

You can obtain the extrinsics for the Color stream from your L515 by using the SDK's rs-enumerate-devices tool by launching it in calibration information mode with the command below:
rs-enumerate-devices -c
Extrinsics describe a relationship between the positions of one type of sensor and another type of sensor.  The image below of L515 extrisics was obtained by using rs-enumerate-devices -c with an L515.

You may also find it useful to look at an L515 script that makes use of rs2_project_point_to_pixel that is provided in https://github.com/IntelRealSense/librealsense/issues/8655

Hi @robopassio  Do you require further assistance with this case, please?  Thanks!

Thanks, that's clear.

Thanks very much @robopassio for the update!


Fix normalisation

Description
Anthropic's SAE training code normalises activations before they enter the SAE so that their average L2 norm is sqrt(d_model). Although we have normalisation activation in the code, it is not currently applied during evals which both harms the cross-entropy loss and makes hyperparameter transfer across layers impossible as different layers have substantially different mean norms.
This PR changes estimation of the scale factor to occur once, with a larger sample size, before SAE training, and modifies the eval code to up- and downscale activations as part of the hook function as well as correctly estimate the L2 norm of activations that the SAE will actually see during training.
The code in this PR isn't the prettiest and I aim to create a tidier version next week but we need this functionality. I've marked areas for tidying with TODO(tomMcGrath) and will open an issue to track this. EDIT: this is now tracked in issue #151.
Type of change
Please delete options that are not relevant.

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

Checklist:

[x] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] I have not rewritten tests relating to key interfaces which would affect backward compatibility

You have tested formatting, typing and unit tests (acceptance tests not currently in use)

[x] I have run make check-ci to check format and linting. (you can run make format to format code if needed.)

Performance Check.
If you have implemented a training change, please indicate precisely how performance changes with respect to the following metrics:

[ ] L0
[x] CE Loss
[ ] MSE Loss
[ ] Feature Dashboard Interpretability

This W&B dashboard shows the effect of the fix:

metrics/l2_norm_in shows the L2 norm of the inputs fluctuating around sqrt(d_model)
metrics/CE_loss_score shows the effects of correctly up- and downsampling, as well as the effects of no normalisation (the state pre-fix) and only upscaling

Awesome work! Thanks so much!


Feature: Command which enables more permissions/commands

Like the title says, it would be very useful if a command would be added which would enable more permissions, like an admin command which would make it able to ban or kick people when their command is turned on and which will turn that ability off if the same command is done again...

Just wondering if this is possible to implement, because this would make it really easy to track what your moderators do.

On March 18, 2016 9:37:58 AM PDT, Harm<EMAIL_ADDRESS>wrote:

Like the title says, it would be very useful if a command would be
added which would enable more permissions, like an admin command which
would make it able to ban or kick people when their command is turned
on and which will turn that ability off if the same command is done
again...

Just wondering if this is possible to implement, because this would
make it really easy to track what your moderators do.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/PEXPlugins/PermissionsEx/issues/2359

This is entirely out of the scope of pex.


make direct advertising deals (e.g. with Free-DC)

 Issue by Erkan-Yilmaz
Saturday Feb 18, 2017 at 14:03 GMT
Originally opened as https://github.com/Erkan-Yilmaz/Gridcoin-tasks/issues/88

from here:
"Willy de Zutter (BOINCstats webmaster) hasn't replied to our offers for a direct advertising deal (fourth so far) and we never had a direct deal with Free-DC"

contact websites (e.g. which make statistics for BOINC users)
ask them if they wanna allow advertising

 Comment by Vortac2
Saturday Apr 01, 2017 at 12:50 GMT

OK, some success here. Willy de Zutter from BOINCstats has responded to my e-mails and he is willing to carry our banner again, but the price is now 550 euros. Quite expensive, but it could be worthwhile (it's been almost a year since our last campaign on BOINCstats).

 Comment by gustav1976
Saturday Apr 01, 2017 at 18:35 GMT

yep, boincstats should be targeted again this year. next year we might be able to offer freedome of team requirement, but shouldn't wait for that ;)

 Comment by Vortac2
Monday Apr 03, 2017 at 20:10 GMT

A new direct advertising deal has been negotiated with BOINCstats. And a corresponding Foundation vote has been created too. Now it's time to show some support with your voting weight :)
https://steemit.com/gridcoin/@vortac/gridcoin-advertising-5-new-campaign-on-boincstats

 Comment by Vortac2
Monday Apr 24, 2017 at 19:01 GMT

Apparently, direct advertising deal with BOINCstats has been rejected by the community. I have arranged another (much cheaper) direct deal with Netsoft, with another corresponding Foundation vote.
More details here:
https://steemit.com/gridcoin/@vortac/gridcoin-advertising-6-extending-the-netsoft-deal


Add continuous-deployment docs

Going to update this after #798 is merged and new RC is validated with that. It is relevant to these docs.

Alright @StrongMonkey it's ready for you to review again!


XP Pricing for Repairs isnt Accurate?

Repair needs 10 Levels, only took a small portion of 1 Level of XP to repair.
Config.
Economy:
  provider: xp
# ==(SETTINGS)==
Settings:
  Use:
    # Use "true" or "false" to interact with the anvil
    anvil: true
  Commands:
    # Use "true" or "false" to run the command
    # RepairAll command; /repair all
    all: false
    # Use "true" or "false" to run the command
    # RepairHand command: /repair hand
    hand: true
    # Use "true" or "false" to run the command
    # RepairAll command; /repair rename <name>
    rename: false
    # Use "true" or "false" to run the command
    # RepairAll command; /repair lore <lore>
    lore: false
......
# ==(REPAIR COST)==
RepairCost:
  # Repair mode
  Repair:
    # Put the amount of experience cost to repair the items
    xp-cost: 10
    # Damage repair mode. The price will be multiplied by the damage of the item.
    # IT IS RECOMMENDED TO PUT THE PRICE LOW IF THIS OPTION IS CURRENT.
    # Use "true" or "false" to enable/disable this option
    damage-mode: false```

https://github.com/fernanACM/RepairUI/assets/132199379/4493a3bd-9b62-4115-9b4d-147a48d739e9

https://github.com/fernanACM/RepairUI/assets/132199379/ba9680e7-7588-4f80-b24e-37cc10617681


updated jacdac library

Bump jacdac to latest build

@jrthompson33 @venkateshpotluri make sure to pull and run yarn install again


LibIndy for android - indy_prover_store_credential error

Storing of the credentials in the mobile wallet for android, using libindy.so (https://repo.sovrin.org/android/libindy/stable/1.16.0/), is failing.
We see the below error when we call the java wrapper method - proverStoreCredential which internally invokes the indy_prover_store_credential on libindy.
error::java.util.concurrent.ExecutionException: org.hyperledger.indy.sdk.InvalidStructureException: A value being processed is not valid.
The libindy logs are not specific about which structure is invalid, while there are 5 input params  in the method signature.
Any idea what could be causing this?

@Veerendra-b if the problem is finally solved, could you close the issue?


set completion time on success

set completion time on success

This change is

/ok-to-test
Thanks for your contribution!

/lgtm

Coverage increased (+0.07%) to 71.744% when pulling 5f72bebc218689839a2af71ea905892f6c46810a on u2takey:v1alpha2 into d53c1f8590d401e5e8a04034df55072dee2ab5f0 on kubeflow:v1alpha2.

/retest

@u2takey Hi, I think we should move the PR to master since v1alpha2 is merged now.

@gaocegege thanks, move to https://github.com/kubeflow/tf-operator/pull/554, closing this.

I am closing the PR since we have a new one #554

OK, we do not have a mutex and there is a data race problem :smiley:


Getting 404 Not Found with terraform

Hi,
My tofu controller is using a terraform repository which basically creates confluent_kafka_topic, As a part of DR testing I am working on a scenario where I am trying to create the confluent topic on my primary cluster using the configuration.
For example I have cluster A (primary), configuration of this is passed to tofu and tofu creates a topic for me.
Now I try to switch the configuration from primary (cluster A) to secondary (cluster B) by editing my terraform object, it creates the topic for me on secondary cluster and updates the backend properly. But it also gives error on terraform describe as follows
Events:
  Type     Reason       Age                   From           Message
  ----     ------       ----                  ----           -------
  Warning  Progressing  7m7s (x120 over 90m)  tf-controller  Apply error: rpc error: code = Internal desc = exit status 1

Error: 404 Not Found: HTTP 404 Not Found

  with module.test_kafka_topic.confluent_kafka_topic.kafka_topic,
  on .terraform/modules/kafka_topic/modules/kafka-topic/main.tf line 1, in resource "confluent_kafka_topic" "kafka_topic":
   1: resource "confluent_kafka_topic" "kafka_topic" {

I tried replicating the same error with terraform by switching the configuration but terraform works fine, it is able to apply both configurations properly.

Just to make sure I understand this one correctly.
Does the plan + apply go through and apply the changes, but the describe is showing a 404, or does the 404 make the apply fail as well?
It's most likely some kind of networking issue either way, but since I haven't encountered it anywhere I'm trying to wrap my head around a way for us to replicate it to help fix it.

Hey @ilithanos  - Thanks for replying on the issue.
For me plan works fine, without any issues but on apply, it fails with 404 error above.
Networking: May not be the issue since I have both the clusters in same region as part of testing.

I also put debug to the logLevel and gets following output
{"level":"error","ts":"2024-06-07T14:08:57.779Z","msg":"error applying","controller":"terraform","controllerGroup":"infra.contrib.fluxcd.io","controllerKind":"Terraform","Terraform":{"name":"test-clusterlink1-kafka-topic-test-clusterlink1","namespace":"testl-sbx"},"namespace":"testl-sbx","name":"test-clusterlink1-kafka-topic-test-clusterlink1","reconcileID":"c5b3a4bd-5f64-4a1f-af00-2880ddadb193","reconciliation-loop-id":"91430eba-9bb4-48b4-acaa-25f92f39c502","start-time":"2024-06-07T14:08:36.085Z","error":"error running Apply: rpc error: code = Internal desc = exit status 1\n\nError: 404 Not Found: HTTP 404 Not Found\n\n  with module.test_kafka_topic.confluent_kafka_topic.kafka_topic,\n  on .terraform/modules/test_kafka_topic/modules/kafka-topic/main.tf line 1, in resource \"confluent_kafka_topic\" \"kafka_topic\":\n   1: resource \"confluent_kafka_topic\" \"kafka_topic\" {\n\n","stacktrace":"github.com/flux-iac/tofu-controller/controllers.(*TerraformReconciler).reconcile\n\t/workspace/controllers/tf_controller_reconcile.go:205\ngithub.com/flux-iac/tofu-controller/controllers.(*TerraformReconciler).Reconcile\n\t/workspace/controllers/tf_controller.go:464\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Reconcile\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:119\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:316\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:266\nsigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2\n\t/go/pkg/mod/sigs.k8s.io/controller-runtime@v0.16.3/pkg/internal/controller/controller.go:227"}

Hey @ilithanos - if you could please check the issue?

I havn't forgotten about you @mkazla but i havn't currently been able to replicate the issue you are having. It might be some environment specific issue.
I don't currently have a good suggestion as to what to look at though. It smells like a network issue with something that specific module is doing, but what it is i can't say for sure.


sast-unicode: added SME to the OWNERS file

As suggested by the Konflux team, updated the OWNERS file to add members from the SAST scanning.

Look for any open pull requests in the repository with the title "e2e-tests update" and
see if there are recent e2e-tests updates that will be applicable to your change.

/ok-to-test

/verify-owners

/ok-to-test


check_is_fitted() missing 1 required positional argument: 'attributes'

I'm having the same issue raised in a previously closed issue, when I run mca = mca.transform(df) I get the error
TypeError: check_is_fitted() missing 1 required positional argument: 'attributes'
I am using the most current stable version of scikit-learn, since that resolved the original issue.

Just released version 0.7.1, should be fixed.


stop ping all function?

hi did you provide way to stop all ping when i found the matched ip?

@fukemy I had a problem where the stop() method did not seem to stop an ongoing ping thread once it is going (I'm using Swift 5 in Xcode 11.4.1) which I have implemented a work-around for (below).
I'm not sure if this is the same thing you are wondering about, or if you are talking about spawning lots of different ping instances and a single command or method that will kill them all for some reason (like you found the one you were looking for). If that is the case, I'm pretty sure you have to call the stop method on each SwiftyPing instance that you had generated. You could do this in a for-in loop structure or individually like:
   externalPingA?.stop()
   externalPingB?.stop()
   externalPingC?.stop() ...
I would use the same method to stop the pings as you had used to start them (how you used the start() method).
If instead you are just having trouble getting the stop() method to work at all like me, my fix was to modify the internal scheduleNextPing() function in the SwiftyPing.swift file itself. I had noticed that the .stop() method resets the isPinging Bool variable to false. However, I couldn't find an explicit use of this variable anywhere in the SwiftyPing.swift file itself. Perhaps there was something about the socket functions and all that previously worked in Swift 4 (I'm still learning Swift, but I couldn't figure out how this would be the case), but regardless it does not seem to be working for me in Swift 5 in Xcode 11.4.1.
My quick on-line fix for this, which works for me was to modify the conditional return statement at the beginning of scheduleNextPing()changing from this:
    func scheduleNextPing() {
        serial.sync {
            if self.hasScheduledNextPing {
                  return
              }
...
to this:
    func scheduleNextPing() {
        serial.sync {
         if self.hasScheduledNextPing || !self.isPinging {
                return
            }
...
This change prevents the next ping call from being dispatched. I hope this helps.

Thank you for the fix, @pfliegster. Should be corrected in the code.

Finally had the time for a refactoring. In my limited testing, stopping should now work. Let me know if it's still not working.

Hi @samiyr - thanks for the update and the work you've put into this project. The stop works as expected now in the update. Thanks!
I did notice that the API has changed slightly (I know you probably still have to do some updates on the readme), but just noting for others that .stop() has become .stopPinging() and similarly .start() is now .startPinging().
Another thing I noticed is that the .errorClosure had gone away ... well, it's still defined in your code (public typealias ErrorClosure is), but not accessible anymore from my code. I added the following line, and I can now use the errorClosure again (although I'm still learning how to do this):
public var errorClosure: ErrorClosure?
(I added it just after the public var observer ... definition in my own local copy)
I'm not sure if that was intentional, pushing us to catch thrown errors instead (I noticed that Xcode now forces use of try-catch in the updated code), but just something I thought I'd point out in case it was just an oversight.
Also, like @blackTay , I too couldn't get the timeout working and still does not seem functional in the updates you made. I'm not sure if this is something in SwiftyPing, or something in the way the CFSocket stuff works. Again, I'm in Xcode 11.4.1, Swift 5.
Thanks again for creating and maintaining this nice function & I appreciate any extra work you are willing to put in on this and things like the timeout.

Thanks for catching that, I forgot the readme. And yes, the error closure didn't actually do anything, so I removed it. All errors are thrown either at the initialization time (for example if a host could not be resolved) or are sent to the observer closure.


iOS Unhandled Exception

On Android everything works fine. But in Xcode I get the following error:
Unhandled Exception: type 'String' is not a subtype of type 'double' #0      InfinityUi.enable (package:infinity_ui/infinity_ui.dart:30:5)
Any idea?

Hi @bashennekam , thanks for the issue report .
Unfortunately, I do not have an Apple device to test this issue. But I added changes that I hope have solved the problem. Please testing it from this repository and let me know.
To add it to your project from this repository,Just add this code to dependencies :
  infinity_ui:
    git:
      url: https://github.com/o4x/infinity_ui.git

This is not working for iOS either. You are simply returning if the platform is iOS. So _statusBarHeight is still null.
static Future<List<double>> enable() async {
    if (isEnable || Platform.isIOS) {
      return [_statusBarHeight, _statusLSBarHeight, _navigationBarHeight];
    }
    final sizes = await _channel.invokeMethod('enableInfinity');
    _isEnable = true;
    _statusBarHeight = sizes[0];
    _statusLSBarHeight = sizes[1];
    _navigationBarHeight = sizes[2];
    _sinkChangeController.add([_statusBarHeight, _statusLSBarHeight, _navigationBarHeight]);
    return [_statusBarHeight, _statusLSBarHeight, _navigationBarHeight];
  }

The problem is that await _channel.invokeMethod('enableInfinity');is returning the iOS version as a string and not an array of sizes. So in the current version it returns "14.3".

This is not working for iOS either. You are simply returning if the platform is iOS. So _statusBarHeight is still null.
static Future<List<double>> enable() async {
    if (isEnable || Platform.isIOS) {
      return [_statusBarHeight, _statusLSBarHeight, _navigationBarHeight];
    }
    final sizes = await _channel.invokeMethod('enableInfinity');
    _isEnable = true;
    _statusBarHeight = sizes[0];
    _statusLSBarHeight = sizes[1];
    _navigationBarHeight = sizes[2];
    _sinkChangeController.add([_statusBarHeight, _statusLSBarHeight, _navigationBarHeight]);
    return [_statusBarHeight, _statusLSBarHeight, _navigationBarHeight];
  }

The problem is that await _channel.invokeMethod('enableInfinity');is returning the iOS version as a string and not an array of sizes. So in the current version it returns "14.3".

This project has many problems, I will archive this project soon. It is better to wait for a better solution from Flutter.

This project has many problems, I will archive this project soon. It is better to wait for a better solution from Flutter.

Thanks for the feedback. I really wanted it to work for its simplicity. Still appreciate your work.

Thanks for the feedback. I really wanted it to work for its simplicity. Still appreciate your work.

If you want, I will fix this problem and a few other problems after my math test (next week).  There is no danger anyway and thank you for feedback.

If you want, I will fix this problem and a few other problems after my math test (next week).  There is no danger anyway and thank you for feedback.

No need to hurry, I found a workaround. Still I will keep track in case there is an update.

No need to hurry, I found a workaround. Still I will keep track in case there is an update.