Issues reading some TRef arrays

To start with thank you so much for implementing TRef reading, it's been amazing.
I have almost finished refactoring to get rid of all my previous work arounds.
One thing that doesn't quite work yet is the TRefs that appear in Towers.
One Tower is created by the energy deposits of multiple particles, so each tower gets a list of references (might be a TRefArray object, not quite sure...).
In the same root file as last time (https://mega.nz/#F!afB2SSwC!3C8bp5xY_d01VvXmkh1nJQ);
event_n|tower_n|particle_n
0|0|[1413, 1417, 1470, 1570]
0|1|[1446]
0|2|[1571]
0|3|[1763]
0|4|[1568]
...
As you can see the first tower is linked to 4 particles.
A minimal broken example of this would be;
import uproot
file_name = "/path/to/h1bBatch2.root"
root_file = uproot.open(file_name)['Delphes']
problem_array = root_file.array('Tower.Particles')
print(problem_array)  # expected a list of TRef objects. Possibly a TRefArray?
# error! see below

The error message I get from this is at the bottom (but I'm not sure how informative it is).
Thanks again for all your work on this.

Henry

P.S. the error message;
Traceback (most recent call last):
  File "minimal_error.py", line 5, in <module>
    print(problem_array)  # expected a list of TRef objects. Possibly a TRefArray?
  File "/usr/local/lib/python3.6/dist-packages/awkward/array/base.py", line 103, in __str__
    return "[{0} ... {1}]".format(" ".join(self._util_arraystr(x) for x in first), " ".join(self._util_arraystr(x) for x in last))
  File "/usr/local/lib/python3.6/dist-packages/awkward/array/base.py", line 103, in <genexpr>
    return "[{0} ... {1}]".format(" ".join(self._util_arraystr(x) for x in first), " ".join(self._util_arraystr(x) for x in last))
  File "/usr/local/lib/python3.6/dist-packages/awkward/array/objects.py", line 178, in __iter__
    yield self.generator(x, *self._args, **self._kwargs)
  File "/usr/local/lib/python3.6/dist-packages/uproot/interp/objects.py", line 298, in __call__
    return self.cls.read(source, cursor, self.context, None)
  File "/usr/local/lib/python3.6/dist-packages/uproot/interp/objects.py", line 28, in read
    out.append(self.cls.read(source, cursor, context, parent))
  File "/usr/local/lib/python3.6/dist-packages/uproot/rootio.py", line 867, in read
    out = cls._readinto(out, source, cursor, context, parent)
  File "<generated from TStreamerInfo b'TRefArray' at 0x7fe2004b4b00>", line 29, in _readinto
  File "<generated from TStreamerInfo b'TSeqCollection' at 0x7fe200497eb8>", line 25, in _readinto
  File "/usr/local/lib/python3.6/dist-packages/uproot/rootio.py", line 1418, in read
    out = cls._readinto(out, source, cursor, context, parent)
  File "/usr/local/lib/python3.6/dist-packages/uproot/rootio.py", line 1428, in _readinto
    raise TypeError("cannot read objects of type {0} and cannot even skip over this one (returning Undefined) because its size is not known\n  in file: {1}".format("???" if self._classname is None else self._classname.decode("ascii"), context.sourcepath))
TypeError: cannot read objects of type ??? and cannot even skip over this one (returning Undefined) because its size is not known
  in file: /home/henry/lazy/dataset2/h1bBatch2.root

See PR #303, to be uproot 3.9.3.
I've added an explicit TRefArray implementation so that you can do this:
>>> t["Tower.Particles"].array()
<ObjectArray [[[1414, 1418, 1471, 1571], [1447], [1572],
              ...,
              [864, 1325], [992, 1437], [1262, 1501]]] at 0x7f5a6f1f3b00>

Note that this is an ObjectArray (of TRefArray objects, which inherit from Python's list class) because of the way that ROOT serializes doubly nested lists of things. For the selection-with-square-brackets that makes TRefs useful, you might need this to be a JaggedArray of JaggedArrays.
To do that, pass it through awkward.fromiter:
>>> import awkward
>>> a = awkward.fromiter(t["Tower.Particles"].array())
<JaggedArray [[[1414 1418 1471 1571] [1447] [1572]
               ...
               [864 1325] [992 1437] [1262 1501]]] at 0x7f5a6a014ef0>

Since TRefArray inherits from list, you'd be able to use it as a selection in square brackets, but only in a loop over events. With a JaggedArray of JaggedArrays, you might be able to avoid the event loop.
But given that you have a large number of particles in each event ("wider" data, rather than "taller"), you might not care. Anyway, the tools are now at your disposal.
Cheers!


[5.0] add view composer interface

Interface for view composers

This interface is unused in the framework.

:+1:


segfaults

I don't know whats up, I'm getting a segfault when I try to run this on my cutiepi? It's using a rpi compute module 4 and vc4-kms-v3d-pi4 overlay If I try to run the original on card1 it says Unable to get DRM resources\nUnable to get EGL display but if I try card0 I get a segfault

This code in the version you downloaded should autodetect card0/card1 issues:
if ((resources = drmModeGetResources(device)) == NULL) // if we have the right device we can get it's resources
    {
    printf("/dev/dri/card0 does not have DRM resources, using card1, ");
    device = open("/dev/dri/card1", O_RDWR | O_CLOEXEC); // if not, try the other one: (1)
    resources = drmModeGetResources(device);
    }
else
  printf("using /dev/dri/card0, ");

so I suspect the issue is not card1/card2. Do you have kms/fkms enabled in /boot/config.txt?

@alanbork yes sorry about this it's a firmware fault which causes the raspberry pi to faultily report an active HDMI connection even when its theres just an SPI display thats connected. The HDMI connector was the first one that came up and the code would segfault since there wasn't really an HDMI display connected. I added a check to display the types of the connectors available and just ignored the HDMI one. Thank you

if you can write a version that works for both the HDMI and SPI options without recompiling I'd be interested in seeing it.

even if it's not possible to make a single executable for both usage cases, it would be better if it didn't segfault. But I can't reproduce the issue so I can't change the code.


Remove redundant null check before calling operator "instanceof" in OperatorUtils.

Remove redundant null check before calling operator "instanceof" in OperatorUtils.
The expression x instanceof SomeClass is false if x is null.

As it appears this repo is dying, I have decied to create and maintain a new fork of Pebble at JavaEden/Pebble, and I would love to get this PR merged into the new repo. Please take this PR and open a new one to the dev branch of JavaEden/pebble.
The future of Pebble has been shaky for a while now, but I refuse to let Pebble die. It is a great project, and I hope to give it same love and care that the original maintainers have as they built Pebble. If you have any questions about the future of Pebble, please reach out on Gitter. Let's keep this community alive, I hope to see you over at the new location!
New Pebble Home

Original announcement of new ownership: https://github.com/PebbleTemplates/pebble/issues/311#issuecomment-379496941
https://github.com/JavaEden/pebble
https://bintray.com/javaeden/Eden/Pebble
https://gitter.im/JavaEden/pebble


Where to amend requirejs.config to allow for loading resources from %APPDATA% on a Windows File Share

My, now that's a title!
This is a continuation of Theseus #58 and requirejs #1139.  I want to know where I should stick some code to amend the global config used by Brackets (or at the very least, the config that Brackets uses for extensions) to change the behavior of requirejs when loading dependencies from a separate host.
In my case, my %APPDATA% folder is on a Windows File Share/Server (hostname: "wfs1", protocol: ""), while my Brackets installation is on the local hard drive (hostname: "", protocol: "file://").  This is our department's setup, so I have little control over this detail.  However, I need to change how resources are loaded by RequireJs as suggested by the requirejs dev.
I'm using Brackets Sprint 42 (0.42.0-13957) and Theseus 0.4.12. I tried putting the following code in the extension's main.js right after "use strict":
// yelper: hack to allow xhr loading of things in %APPDATA% when the folder
// is on a Windows File Share.
require.config({
  config: {
    text: {
      useXhr: function(url, protocol, hostname, port) {
        return hostname == "wfs1" || hostname == "wfs2" || protocol == "file";
      }
    }
  }
});

This doesn't work.  Any suggestions where to modify the requirejs config so that I can use this custom useXhr() method so this (and other extensions) will load?
[related (but more generally), how does Brackets gracefully handle when %APPDATA% is on a separate drive?  This solution doesn't seem elegant, but I'm just trying to get the extension to load :( ]

would really appreciate a fix for this. Can't use brackets at work = pain

Having the same problem. A select few extensions will install. The others I have been copying into the default extensions folder in the install directory... which requires me to manually update them but at least they are usable.


Enable Downloading Large Files

Current code loads downloaded file into memory first before writing to disk. This does not work for large files.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

What happens if it fails? Is there a try/except somewhere else?

If it fails, it fails with one of these exceptions: https://requests.readthedocs.io/en/latest/user/quickstart/#errors-and-exceptions
What do you recommend doing in the except part? If we cannot download the file, we cannot continue.

You could set up automatic retries to handle transient failures: https://requests.readthedocs.io/en/latest/user/advanced/?highlight=retry#example-automatic-retries
But agree code is good to start with, and you can add later if it's ever a problem.


Directions say to create Free account for IOthub and then it says to add a S1 tier...why?

[Enter feedback here]
Directions say to create Free account for IOthub and then it says to add a S1 tier...why?
Prerequisites

Here is the blocker: Create base resources

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

ID: f233412c-4242-e9a6-e09d-c5b07775dd00
Version Independent ID: 3a940d2c-77bb-b8ff-8864-9fc6ef16c122
Content: Tutorial - Configure message routing for Azure IoT Hub using Azure CLI
Content Source: articles/iot-hub/tutorial-routing.md
Service: iot-hub
GitHub Login: @robinsh
Microsoft Alias: robinsh

Hello @tifischer Thanks for the inquiry on this. We are looking into this and will update you shortly.
Cc: @robinsh @asergaz @AshokPeddakotla-MSFT

This is the the purple note indicates For the routing tutorial, which multiple endpoints are used. whith is not supposrted by the free tier of IoT Hub. We'll try to add some text to make that more clear. (It's explained in the purple Note section.)

@SatishBoddu-MSFT Can we close this issue yet?

Hello @tifischer
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.
Please also do visit Microsoft Q&A the home for technical questions and answers at Microsoft.


Missing <IP_ADDRESS> release on NuGet

Github shows a tag for <IP_ADDRESS> but it's not on NuGet. Is that correct?

I think thats bumped ready for the next release ...

yes, that's correct


WIP: api - introducing s3 insights file

WIP: not sure an additional table is required for storing insights data since we could just retrieve directly from s3

I would definitely not be storing all insights in the db! We should probably consider keeping the key facts there for ease of access (given they're to be used all over the place), but that would be limited to 5-6 per environment.


How to stream large file without downloading?

I am trying to read large parquet files from ADLS using pyarrow. My goal is to read the file in small chunks (using pyarrow record batches) from the parquet file. What I am observing is that the entire parquet file is downloaded and then "streamed" locally. Is there an example that I can use as reference to accomplish streaming from ADLS?

Sorry for the late response. Thinking out loud/reading some code here:
I've been using this library in my job, and I know for sure that things appear to work fine when selecting, say, 4 out of 30 columns. Less data than the whole file is transferred. I would definitely have known if this was not the case, I've been using this with some very large datasets. So pyarrow/pandas must be properly passing the offset/desired length for the read to be able to read the parquet footer, then seek to the correct columns and read only those.
Which pyarrow API are you using, and what do your parquet files look like? My library is quite "dumb", it does no smart planning of how to stream/read files, I just expect pyarrow to seek() to the correct place and read() only as many bytes as it needs at a time, which is the forwarded to download_file.
I think the behaviour you're seeing could be related to the shape of your data and how you're trying to batch it -- arrow prefers to read 1 column at a time, and with parquet, 1 row group at a time.  Could that be what's happening in your case?
This is just going to be guessing from my side, maybe you can provide a parquet file that triggers the problem?

I started doing some experimentation on the advice of the arrow team, and basically I need to read one row group per thread (or process). So I have tested reading 5 row groups at a time, and the performance is fine reading from ADLS.
My parquet files are on average 1GB in size each and have a lot of nested columns (structs, arrays, maps, etc.), and sometimes I have seen nesting as deep as 5 levels. And I am trying to push this data into ClickHouse by converting to JSON first. So I am opening a thread per file per row group and then using iter_batches to convert this data.

Okay -- it's not clear to me whether that means we still think there's an issue in pyarrowfs-adlgen2 or not?
I'm not sure threading will work for you. If threading happens on the arrow side (which is C++), it probably won't -- it's likely that arrow will take the GIL before it calls into python code?

Closing this due to no updates. It's unclear to me if there's anything here I can fix.


Unable to get REST server working after upgrading firmware to WIfi Link HELP please!

Hi all not sure if anyone else has had problems with REST server after upgrading?

what problem? which REST? upgrading from what?


Please publish latest releases on nuget

Edit: I discovered that https://www.nuget.org/packages/crockford-base32 is the old link and the actual link should be https://www.nuget.org/packages/crockford-base32-core. I clicked on the link from "Original README", and not the actual link. Sorry about this.


Update branch unity-package-manager automatically

Configure CI

[x] commit files from Assets\Trismegistus\Navigation at master to root at unity-package-manager branch
[ ] update version in package.json

Commiting implemented in #16


Metrics for deleted CRs may lead to OOM when scraping

Bug Report

What did you do?
Request to /metrics endpoint in Quarkus (using JOSDK w/Quarkus extension) resulted in an OOM error. Further research revealed that JOSDK reconcile metrics accumulate in the Micrometer registry and are not removed for CRs no longer present in the system.
What did you expect to see?

Expect metrics for deleted CRs be removed from the registry after a configurable amount of time, with a default of -1/never.
What did you see instead? Under which circumstances?

Metrics for deleted CRs are present until the process ends
Environment
Kubernetes cluster type:

$ Mention java-operator-sdk version from pom.xml file

JOSDK: 3.2.4 (via quarkus-operator-sdk 4.0.7) on Quarkus 2.13.7
$ java -version

11.0.x
$ kubectl version

Server Version: version.Info{Major:"1", Minor:"25", GitVersion:"v1.25.4+a34b9e9", GitCommit:"b6d1f054747e9886f61dd85316deac3415e2726f", GitTreeState:"clean", BuildDate:"2023-01-10T15:55:28Z", GoVersion:"go1.19.4", Compiler:"gc", Platform:"linux/amd64"}

Possible Solution

Clear/remove metrics for deleted CRs after a configurable amount of time, defaulting to "never" for compatibility.
Additional context

Would upgrading to a more recent version of the SDK be a possibility as, at least on first approximation, we would only fix this on the main branch, i.e. for JOSDK 4.2 / 4.3 (Quarkus extension 5.0/5.1)?

I think it will probably be a while before we can upgrade again. We only just migrated to 3.2.4 (extension v4.0.7) For now, we're looking at using a no-op implementation of Metrics.


Changed WaitTime visual script node to use input port instead property

This PR gives user possibility to set up wait time directly through visual script system, I think its more obvious way to do it (rather than using set_wait_time property).
Before

After

Of course it may break user's scripts, so push it to 4.0(if 3.2 is not enough)...

Moving to 4.0 as we'd like to avoid breaking compat for user scripts in 3.x. Otherwise the change seems sensible.

Will review when I have more bandwidth.

Is this still desired? If so, it needs to be rebased on the latest master branch.
If not, abandoned pull requests will be closed in the future as announced here.

Yup, I currently don't have time and mood to resurrect this PR, so closed...


For RxSwift 3.0 with Carthage support

I run the command:

carthage-play ReactiveX/RxSwift

The project and playground files are created. But got the following error message:

The file /Users/myname/Projects/Swift/ReactiveXPlayground/ReactiveXPlayground/ReactiveX.xcodeproj does not exist.

And got error in playground file too:

No such module RxSwift

What's wrong with it? Thanks

Fixed in #56. A new release is coming soon!


BlockOperator on device

This PR fixes (or avoids as a workaround) the issues of BlockOperator on device. For the current master version, running ex5 on device results in a failed assertion (Cannot register an alias in MemoryManager::Register_). I am not familiar with the MemoryManager class and how it should work on device, so I will defer to the cuda experts, but it appears to me that the usage of BlockVector in BlockOperator with reuse of x.GetData() and y.GetData() is not compatible with the current implementation of memory management on device. The best solution may be to resolve this, but instead I have implemented changes to BlockOperator and BlockDiagonalPreconditioner to use multiple Vector instances instead of BlockVector.
The obvious disadvantage of this new approach is the use of more memory (allocating two arrays of vectors, using memory 2N where N is the total size of the BlockOperator) and copying of data between these vectors and the input and output vectors x and y. If this can be avoided by a change to MemoryManager, that may be better. However, the additional memory is modest, and the copying does not appear to be very slow. For example, running ex5 with -m ../data/beam-hex.mesh -o 1 -pa is 40x faster with -d cuda, so the copying of data does not prevent good performance.
Another option would be to switch between the old version and new version in BlockOperator::Mult depending on whether the input or output vector uses the device, so that the memory allocation and data copying is done only when using the device. This would preserve the old version for CPU runs. If the alias issue is resolved later, it would be easy to eliminate the new version.
If someone thinks there is a better way to implement this, this PR can be deleted, but for now it is the only way to get fast performance for ex5 (and other applications with BlockOperator) with cuda. Reviewers, if you think this approach is good and should be pulled into master, then I will continue working on the PR to make it ready for review. Several things remain to be done, e.g. BlockOperator::MultTranspose and ex5p. Thanks in advance for any feedback.

The right way to do this without copying the data is to use the methods https://github.com/mfem/mfem/blob/0edf8ffe4a2968fe8d7466b3c95e818e1b62a731/linalg/vector.hpp#L146-L151
to create/update "wrapping" Vectors pointing to sub-Vectors. These methods should work regardless of where the base data is, on CPU or GPU.
One issue that comes up here is the "wrapping" of the input const Vector -- one simple option is to explicitly use const_cast to remove the const. This should be fine as long as we make sure that the "wrapping" Vector is not actually modified.
I think, it is natural to create a version of BlockVector::Update that takes a Vector & as input to create a "wrapping" BlockVector. It can use the above MakeRef methods, instead of Vector::NewDataAndSize which needs a host pointer (e.g. obtained from Vector::GetData). Then we can simply update BlockOperator to call this new version of BlockVector::Update instead of the one using a row pointer.

LGTM

Thanks @v-dobrev for the suggestions. I believe commit 039a04b3e2d8cb2294e3607819a373e5e4b481d6 implements what you described, but it still runs into the failed assertion !alias on mem_manager.cpp:669 (Cannot register an alias!). This happens for the xblock.GetBlock(0) (input) vector for block (0,0) of the BlockOperator in ex5, when ElementRestriction::Mult is called and the input vector is Read(). Please let me know if you see what is wrong (the alias issue is still cryptic to me).

The recent changes to this PR were made based on @v-dobrev explanation in #1578.
PR TODOs:

[x] BlockOperator::Mult
[ ] BlockOperator::MultTranspose
[x] BlockDiagonalPreconditioner::Mult
[ ] BlockDiagonalPreconditioner::MultTranspose
[x] Enable support for device in ex5

Timings obtained on Ray (ex5 MINRES solver):
ex5 -m ../data/beam-hex.mesh -pa : 7.26 sec
ex5 -m ../data/beam-hex.mesh -pa -d cuda : 0.48 sec
ex5 -m ../data/star.mesh -pa : 6.49 sec
ex5 -m ../data/star.mesh -pa -d cuda : 0.30 sec

@dylan-copeland If you think this looks good, we can mark it as ready-for-review.

@stefanhenneking Thank you for salvaging this PR! I added -d cuda support for ex5p, and both ex5 and ex5p work in serial, but ex5p in parallel is still broken.

Addition:

[x] Enable support for device in ex5p

Timings obtained on Ray (ex5p MINRES solver):
mpirun -np 4 ex5p -m ../data/beam-hex.mesh -r 2 -pa : 55.6 sec
mpirun -np 4 ex5p -m ../data/beam-hex.mesh -r 2 -pa -d cuda : 5.76 sec
mpirun -np 4 ex5p -m ../data/star.mesh -r 2 -pa : 2.25 sec
mpirun -np 4 ex5p -m ../data/star.mesh -r 2 -pa -d cuda : 2.42 sec

@stefanhenneking I was able to get better results, for the same tests on same machine (ray):
srun -n 4 -p pdebug ./ex5p -m ../data/beam-hex.mesh -r 2 -pa: 56.6311s
srun -n 4 -p pdebug ./ex5p -m ../data/beam-hex.mesh -r 2 -pa -d cuda: 1.36063s
srun -n 4 -p pdebug ./ex5p -m ../data/star.mesh -r 2 -pa: 2.15889s
srun -n 4 -p pdebug ./ex5p -m ../data/star.mesh -r 2 -pa -d cuda: 0.435838s
The difference is mpirun vs srun or lrun. I found in the past that mpirun only uses 1 of the 4 GPUs (this can be seen by using nvidia-smi). So this PR is working very well.

This PR is ready for review now, and the only remaining issue @stefanhenneking and I see is a matter of style, that ex5(p) requires some special code to work properly on GPUs. Ideally, it would be nice to eliminate these lines, to keep the example as simple as possible and easier to read, but for the current implementation they seem to be necessary. Suggestions for simplification are welcome.

@dylan-copeland: I'd like to reference #1578 for the latest issue described there; it also affects the BlockOperator, and thus a fix may be needed in the BlockOperator. If BlockOperator does need modification to resolve it, I think this would be a rather small addition and could be done during the review or post-review in this PR, based on the discussion in #1578.

The latest commit is a fix to the issue with dangling aliases in the memory manager, described in #1578.

I recall encountering some similar issues when working on Stokes on GPU. @camierjs, do you remember if this is the same issue?

LGTM

@dylan-copeland @mlstowell @pazner @camierjs @v-dobrev
I have made a small change to the comments regarding the Destroy statements. As discussed, this PR should be ready now, and we continue discussion on the issue of dangling pointers in #1578 and a new branch (tbd).

Merged in next for testing...

Thanks @dylan-copeland and @stefanhenneking !


Get pasted id in dropdown v7

Hi
V7 version allows paste of id as well as value of a key-value pair of a dropdown column.
But, in onbeforechange  event, we want to always save the ID in our server.
Can you guide us how to do it?
We use Firebase SDK to save in server.
Thx in advance

To save, it is better to use onafterchanges so you trigger just one action by time.

Thanks for the great tip! We ll use onafterchanges.
But, we still have to loop through the column.source to get the ID of the pasted value in the above event.
If we can give out the value and id in the onafterchange or onbeforechange or any other event, it will make it simpler. Although, I am not sure if it would put extra load on the library.


⚠ Bofrost.es has degraded performance

In f247486, Bofrost.es (https://www.bofrost.es) experienced degraded performance:

HTTP code: 200
Response time: 2000 ms

Resolved: Bofrost.es performance has improved in 2a96710 after 8 minutes.


removing reference to APAC DC

Description
As per the TC meeting, APAC DC will be decommissioned on June 12, thus need to remove any reference in the docs
Motivation and Context

Types of changes

[ ] 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 change)
[x] Documentation fix (typos, incorrect content, missing content, etc.)

Checklist

[ ] I have read the contributing document.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.
[ ] All new and existing tests passed.

Converted to Draft for the time being so that the Merge button is disabled to avoid accidentally merged

@aliciakrebs @LoryApiFortress Should the Early Access Australian Data Center page be removed as well?

@lysannep, any reference to APAC and Headless should be removed from the docs, but I did this only for the docs I'm working on. I don't want to touch something that is not "mine". Headless is scheduled to be decommissioned tomorrow, Friday the 12th, and APAC has been pushed out to June 12.

This PR should be merged with PR https://github.com/saucelabs/sauce-docs/pull/2002.

Closed with this PR: https://github.com/saucelabs/sauce-docs/pull/2002


address Classic/WordPress UX feedback

https://github.com/elmsln/wp-plugin-hax/issues several issues in documentation and iconography reported. Some minor clean up like defaulting to writing / selecting the 1st element in the slot when activated the 1st time. Others basic things that HAxcms has like boilerplate text for an empty section (having a p tag when nothing is available so that it's not confusing how to get started) and some documentation stuff.

if we hit save automatically via a slim integration w/ each platform it would resolve the UX confusion as the other issues have been taken care of in this space


Question about Domain and external dependency

In this docs, package domain cannot have a direct dependency on external packages. Why User domain import package golang.org/x/crypto/bcrypt? Any good reason?

Answer for that is mentioned in Clean Architecture article under Entities section: "They are the least likely to change when something external changes".
Now if you consider x/crypto/bcrypt, this is an implementation of BCrypt algorithm which is well-defined and never going to change. This is in a way similar to using a package which is part of the standard library itself.


nixos/bash: set title in PS1

Motivation for this change
Before:

After:

This is the default behavior on Debian. It helps to differentiate between different NixOS systems (when some windows run SSH) and between different local paths, while also properly integrating with Vim's set title.
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Assured whether relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

LGTM!

This broke my Emacs prompt, btw.

Example:
[0;tad@curie: ~/src/pass-otptad@curie:~/src/pass-otp]$


 It will be used to fault inject kill request to Envoy and measure the blast radius.
The new KillRequest filter will be disabled at build time by default in Envoy by comment out the KillRequest filter extension in extensions_build_config.bzl

KillRequest API
KillRequest filter can be configured through the KillRequest proto:
// Configuration for KillRequest filter.
// [#next-free-field: 2]
message KillRequest {
  // The probability that a Kill request will be triggered.
  type.v3.FractionalPercent probability = 1;
}

Users can specify the probability of Envoy being killed by a Kill request in KillRequest proto. The motivation for the probabilistic feature is to measure how fast the Envoy pool can recover and how many requests will fail during Envoy is down when clients are sending requests to a large Envoy pool with small probability of killing Envoy.
Header Control
The KillRequest filter will be controlled via HTTP header x-envoy-kill-request. The header value must be one of (case-insensitive) ["true", "t", "yes", "y", "1"] in order for the request to be a Kill request.
To summarize, Envoy will be crashed by a Kill request if all of the following conditions are satisfied:

x-envoy-kill-request header must be present with header value in one of (case-insensitive) ["true", "t", "yes", "y", "1"]
A random process determines the KillRequest filter is enabled with probability configured in KillRequest proto.

If KillRequest filter is not enabled, the filter does nothing and passes on the request to the next filter.
\cc @htuch

I'm a little skeptical this has enough utility to be a standalone filter. Could this be done out of band by just sending an abort signal? Or is the idea that you want it to be in the request path? Alternatively could we add ab abort() function to Lua?

The reason we want it to be a standalone filter is to be able to easily disable the filter extension at build time so that users don't accidentally turn it on to crash Envoy. Yes, we want it to be in the request path so that we can send requests to a large pool of Envoys with different probability of killing Envoy.

I'm a little skeptical this has enough utility to be a standalone filter. Could this be done out of band by just sending an abort signal? Or is the idea that you want it to be in the request path? Alternatively could we add ab abort() function to Lua?

Thanks Matt. The reason we want it to be a standalone filter is to be able to easily disable the filter extension at build time so that users don't accidentally turn it on to crash Envoy. Yes, we want it to be in the request path so that we can send requests to a large pool of Envoys with different probability of killing Envoy.

With an abort() function in Lua couldn't you do pretty much what you need? You would control the Lua scripts that get run?
If that's not going to work no major objection from me, I'm just skeptical this is going to get very wide use to justify maintaining this in the upstream tree vs. as a private filter.

Thanks Matt for the note. Another reason to implement it in Envoy is to provide an universal OSS API for our users to inject the kill request.

@mattklein123 we don't run Lua so that's not an option, so this needs to be a C++ filter. The question is whether this is going to be found useful by anyone else or we should maintain this ourselves.

Dunno. I don't have a strong opinion. I'm fine either way.

I could see an admin API hook that can be config enabled and provides a way to cause a misbehaving proxy to abort().
Is accepting the request on the serving port instead of the admin port a hard requirement?

I could see an admin API hook that can be config enabled and provides a way to cause a misbehaving proxy to abort().
Is accepting the request on the serving port instead of the admin port a hard requirement?

Thanks Antonio.
The hard requirement is to simulate a misbehaving users sending a kill request and simulate noisy-neighbor scenarios in a multi-tenent setup so to us it seems the serving port is the ideal way to simulate that. We will ensure that the filer is not built into the binary by default to mitigate the concern of misbehaving admin hook


Duplicate the Handle instead of the fd on Windows

Since getting an fd from a handle transfers ownership, we duplicate the
handle before getting an fd from it.

@swift-ci please test


[Change request to #2197, #2329] The notification about impossibility of paying for the order

Description of a Change request:
As a user, I want to be informed about the impossibility of paying for the order if there are reasons for it so that I can proceed with an order by taking other steps to complete it.
Reason for Change:
The user is not informed about the reason for the impossibility of payment. There is neither notification about the problem nor redirection to the appropriate page.  The 'Оплатити' button is active but the user can not click on it.
Acceptance Criteria
SCENARIO 1
GIVEN the user wants to pay simultaneously for 2 orders
AND he enters one number of certificate in both cases
WHEN the client clicks on the 'Оплатити' button
THEN the user shall be redirected to the confirmation page.

If the payment is accepted, the user is redirected to the confirmation page with the successful status 'Ваше замовлення оплачено (№ [[Order ID]])'
If the payment of the order is rejected by the system the user shall be redirected to the confirmation page about failed payment status 'Упс, щось пішло не так'.
The confirmation page with failed payment status contains the information about the reason for the impossibility of the payment 'Сертифікат, яким Ви плануєте розрахуватись, вже був використаний/ The certificate you have entered, has already been used' and a link 'Повернутися по оплати' that returns the user to the 'Замовлення' tab in the User's Cabinet.

Scenario 2
GIVEN the user wants to pay simultaneously for 2 orders
AND he wants to pay for the order by using bonuses
WHEN the client clicks on the 'Оплатити' button
THEN the user shall be redirected to the confirmation page

If the payment is accepted and the user has enough bonuses on his account, he is redirected to the confirmation page with the successful status 'Ваше замовлення оплачено (№ [[Order ID]])'
If the payment of the order is rejected by the system the user shall be redirected to the confirmation page about failed payment status 'Упс, щось пішло не так'.
The confirmation page with failed payment status contains the information about the reason for the impossibility of the payment 'На Вашому бонусному рахунку недостатньо коштів для розрахунку/There aren't enough points on your bonus account' to pay for the order and a link 'Повернутися по оплати' that returns the user to the 'Замовлення' tab in the User's Cabinet.

Impact of Change
#2197, #2329
Labels to be added
[change request: UI improvement]
Epic: [UBS Courier#2195]

not relevant

not relevant


adds fixbrew alias

This adds a clever, unix-y alias to change a user's Homebrew files back to the correct user and group.
alias fixbrew='chown -R `whoami`:admin $(brew --prefix)'

I’m not familiar with this problem. Could you elaborate?

Uncommonly,  homebrew users run into permission errors when using homebrew. (If you like, I could show you dozens of links, especially to Stack Exchange sites, to support this assertion.) The homebrew wiki suggests the following to fix such errors:
sudo chown -R $(whoami) /usr/local

However, this is incomplete in two respects. First, it doesn't include the group (i.e., chown user:group). Secondly, it assumes that the HOMEBREW_PREFIX is always /usr/local, whereas, in rare cases, users choose a custom HOMEBREW_PREFIX, such as /opt, /opt/brew or whatever.
Now, I suggest and alias
sudo chown -R $(whoami):admin $(brew --prefix)

to fix both problems. According to the homebrew install script, the group should be admin. This alias sets it to $USER:admin. Secondly, just in case the user has a custom HOMEBREW_PREFIX, this alias will fix permissions in the correct homebrew directory in all cases.
If you have more questions, please let me know. :-)

On Mojave, in my experience, this step is no longer necessary.


./enclavectl build --image kms error

Hi, IHAC who is building the kms image ans is facing a rustc version error as the snapshot attached.Looks like we need to update it too.

You should update the kmstool-enclave-cli binary version to 0.4.1 to get the rust toolchain issue resolved. (https://github.com/aws/aws-nitro-enclaves-sdk-c/tree/v0.4.1)


Fix sublert copy action. Use different IP list for NMAP portscanning.…

Fix sublert copy action.
Use different IP list for NMAP portscanning
Use different list for aquatone screenshots grabbing.
Fixed aquatone output for use with NGINX

For getting aquatone to work look at https://github.com/michenriksen/aquatone/issues/196
I hope the changes make sense..

Hi @thejosh ! Thanks for the contribution, much appreciated.
I’ll run a test for both pull requests from a fresh install in a minute


print_sam_line missing required positional argument 'suffix'

Missing parameter using python assignment implementation. C version works fine on the same data. It could be machine-dependent, since I don't have this problem on my laptop.
Traceback (most recent call last):
  File "/home/pignotti/data/git_prophyle/prophyle/prophyle_assignment.py", line 665, in <module>
    main()
  File "/home/pignotti/data/git_prophyle/prophyle/prophyle_assignment.py", line 644, in main
    dont_translate_blocks=d,
  File "/home/pignotti/data/git_prophyle/prophyle/prophyle_assignment.py", line 555, in assign
    read.process_krakline(x, form=form, crit=crit)
  File "/home/pignotti/data/git_prophyle/prophyle/prophyle_assignment.py", line 86, in process_krakline
    self.print_assignments(form, crit)
  File "/home/pignotti/data/git_prophyle/prophyle/prophyle_assignment.py", line 211, in print_assignments
    self.print_sam_line(None)
TypeError: print_sam_line() missing 1 required positional argument: 'suffix'
[prophyle] 2017-09-25 12:59:29 Unfinished, an error occurred (error code 1, 2.7 MB used): /home/pignotti/data/git_prophyle/prophyle/prophyle_index/prophyle_in
dex query -k 31 -u  /mnt/disk/pignotti/exp_hmp_mock/idx/index.fa reads/SRR172903.fastq | /home/pignotti/data/git_prophyle/prophyle/prophyle_assignment.py -m h
1 -f sam /mnt/disk/pignotti/exp_hmp_mock/idx/tree.nw 31 -
Traceback (most recent call last):
  File "/home/pignotti/data/git_prophyle/prophyle/prophyle.py", line 1505, in <module>
    main()
  File "/home/pignotti/data/git_prophyle/prophyle/prophyle.py", line 1439, in main
    cimpl=args.cimpl,
  File "/home/pignotti/data/git_prophyle/prophyle/prophyle.py", line 856, in prophyle_classify
    pro.run_safe(command)
  File "/mnt/disk/pignotti/git_prophyle/prophyle/prophylelib.py", line 460, in run_safe
    raise RuntimeError("A command failed, see messages above.")
RuntimeError: A command failed, see messages above.

Simone, which version is it? Try to use the last version from the devel branch. It should be already fixed there.

Ok, I was using master. I will try immediately!

I confirm it's solved, thanks Karel!


1761 create a new color dropdown component

Closes #1761
Summary
A color dropdown component for the HotSpotEditorModal.
Change List (commits, features, bugs, etc)

Extended the carbon Dropdown to show color squares per item and for the selection
Added default colors
Added option to pass in custom colors
Added callback for when color selection change
Added a new story
Added unit tests
Verified RL

Acceptance Test (how to verify the PR)
Check out the stories at
https://deploy-preview-1765--carbon-addons-iot-react.netlify.app/?path=/story/watson-iot-experimental-colordropdown--default-example

Just a visual bug here. The bottom border should have a gap at each side of the item. I know this was a fix so that when using itemToString we don't show [object Object] while hovering.

Just a visual bug here. The bottom border should have a gap at each side of the item. I know this was a fix so that when using itemToString we don't show [object Object] while hovering.

Good catch. I've fixed this.

:tada: This PR is included in version 2.141.0-next.11 :tada:
The release is available on:

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 2.141.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Use proper English

Love this app! Thanks!
http://www.eslhelpdesk.com/blog/2010/10/youve-got-mail-bad-english-grammar/

Thank you for your PR @snarlysodboxer  - Gitify went through a complete rewrite so I am closing this PR as it was fixed during the rewrite. 😄


GeoJSON format do not emit empty properties property

According to spec, and due to a few errors in other gis systems, the output of the GeoJSON format when writing geojson do not have empty properties property.
"properties": {},

We write out properties: null in such case (https://github.com/openlayers/ol3/blob/master/src/ol/format/geojsonformat.js#L545:L551) which is in line with the spec?
A feature object must have a member with the name "properties". The value of the properties member is an object (any JSON object or a JSON null value).
http://geojson.org/geojson-spec.html

Yes, properties: null is in line with the spec.
@s093294 - where is null causing issues?  It would be good to open a ticket where this is a problem.

properties: null since v3.4.0 (see https://github.com/openlayers/ol3/pull/3346)

Sorry about the issue creation then, my deployment that caused issues was from a build just prior to 3.4. This would explain it.


Revert "Revert Snow doc in release branch (#4784)"

This reverts commit 804e5d8c686f04d2bd8c793886304e4a97ea8d74.
Issue #, if available:
Release Snow doc for EKS-A Snow GA.
Description of changes:
Testing (if applicable):
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

/lgtm
/approve


Error with running balance

Defective ToolKit Feature Name: Running balance
Expected Behavior
Account view with running balance
Actual Behavior
Something with tubes. The developer tool gives me:
Handling an uncaught error. Version of YNAB (at build time): v1.12238
TypeError: Cannot read property 'length' of undefined
at updateRunningBalanceCalculation (main.js:32)
at onYnabGridyBodyChanged (main.js:112)
at main.js:137
at e (appmain.08942ba….js:3)
at n.invokeWithOnError (appmain.08942ba….js:4)
at Object.n.flush (appmain.08942ba….js:4)
at Object.r.flush (appmain.08942ba….js:3)
at Object.o.end (appmain.08942ba….js:3)
at Object.o.run (appmain.08942ba….js:3)
at Object.o._runExpiredTimers (appmain.08942ba….js:3)
at _boundRunExpiredTimers (appmain.08942ba….js:3)
Error successfully reported to Rollbar. UUID: bb4bc27b-0ad3-4ef0-a6a6-8c3e6e2c272b
Steps to Reproduce the Behavior

Enable running balance
Reload account screen
Hit error
Disable running balance
No error

System Settings
ToolKit Version: 0.5.1
Operating System (Mac/Windows/Etc): Ubuntu precise
Browser (Chrome/Firefox/Safari): Chrome
Browser Version: 49.0.2612.0-1 995
Other Extensions:

Thanks @waterkip this is a duplicate of #437.
We have a fix for this ready to go into master and will be in the next release.

Ahh, I just did a git blame to see what caused it: 6b0538ec

It was actually the release made today by YNAB. A YNAB developer informed us a change was coming down the pipe that would break our code which is what the commit you've linked is related to. Unfortunately, when I rewrote running balance, I didn't realize we were losing content as well.
A fix has been coded using suggestions from #428 and #434 which can be found here: #438 if you're interested :D

I'll have a look tomorrow. When is the next release scheduled?

We try to get them out on Wednesdays if there's enough to release which this fix might be considered that so potentially tomorrow. No promises though :D

I installed the master branch and the crashed stopped but all the running balance values were 0

@bryall Right, that's expected -- the master branch actually has a merge from #434 in it which got rid of the thing causing the error currently in YNAB.
What you need to checkout now is the branch from #428 which has the new changes needed to get running balance working again.

Works for me  (tm). Thanks!

Thanks! I'll go ahead and close this.


Ability for Independent Assessors to download a template and re-upload their response

Background
An assessor will have received an email asking them to complete an assessment on someone they know (the applicant). On following the link the assessor will be taken to the page described here.
Requirement
A web page for assessors (aka referees) to provide an assessment (reference) of an applicant.
The assessor will be asked to download a template, complete and then re-upload it.
The uploaded file should be stored against the applicant's application.
Files should be limited to

Upload only PDFs or docx
File size smaller than 2MB
only JAC admins can see them

Initial work has begun implementing this requirement, as follows
Repo - https://github.com/jac-uk/assessment-uploader
Staging - https://assessment-uploader-staging.web.app/
Notify template of email received by assessor:
https://www.notifications.service.gov.uk/services/0abe6c8e-0b87-4cde-9493-5da4921ccc53/templates/37093b3e-3743-45bb-b2d6-9e8465d97944

Assessments should be uploaded to the following location:
/exercise/{exerciseId}/application/{applicationId}/assessor/{userId}/{fileName}
Where

{userId} is the authenticated user's uid
{fileName} should be set to "assessment."


an error while use the yolov8-pose.engine to inference

The engine file exported directly using the export provided by the v8 project cannot be directly reasoned. like this:
(py38) yangyang@ysd-18:~/GenTrt/YOLOv8-DSPTC/csrc/pose/normal/build$ ./yolov8-pose ../yolov8l-pose.engine ../bus.jpg
ERROR: 1: [stdArchiveReader.cpp::StdArchiveReader::30] Error Code 1: Serialization (Serialization assertion magicTagRead == kMAGIC_TAG failed.Magic tag does not match)
ERROR: 4: [runtime.cpp::deserializeCudaEngine::50] Error Code 4: Internal Error (Engine deserialization failed.)
段错误 (核心已转储)
so, I use the v8 project to export the onnx file, and then use the onnx2trt tool to generate the engine, but the following error is thrown during reasoning:
(py38) yangyang@ysd-18:~/GenTrt/YOLOv8-DSPTC/csrc/pose/normal/build$ ./yolov8-pose ../yolov8l-pose.engine ../p1.mp4
model warmup 10 times
CUDA Error:
File:       /home/yangyang/GenTrt/YOLOv8-DSPTC/csrc/pose/normal/./include/yolov8-pose.hpp
Line:       300
Error code: 1
Error text: invalid argument
my envs:
CUDA:11.6
cuDNN:8.4.1
TensorRT:<IP_ADDRESS>
onnx:1.12.0
could you please help me? thanks.

Know issue:
https://github.com/triple-Mu/YOLOv8-TensorRT/issues/71

The engine file exported directly using the export provided by the v8 project cannot be directly reasoned. like this:
(py38) yangyang@ysd-18:~/GenTrt/YOLOv8-DSPTC/csrc/pose/normal/build$ ./yolov8-pose ../yolov8l-pose.engine ../bus.jpg ERROR: 1: [stdArchiveReader.cpp::StdArchiveReader::30] Error Code 1: Serialization (Serialization assertion magicTagRead == kMAGIC_TAG failed.Magic tag does not match) ERROR: 4: [runtime.cpp::deserializeCudaEngine::50] Error Code 4: Internal Error (Engine deserialization failed.) 段错误 (核心已转储)
so, I use the v8 project to export the onnx file, and then use the onnx2trt tool to generate the engine, but the following error is thrown during reasoning:
(py38) yangyang@ysd-18:~/GenTrt/YOLOv8-DSPTC/csrc/pose/normal/build$ ./yolov8-pose ../yolov8l-pose.engine ../p1.mp4 model warmup 10 times CUDA Error: File: /home/yangyang/GenTrt/YOLOv8-DSPTC/csrc/pose/normal/./include/yolov8-pose.hpp Line: 300 Error code: 1 Error text: invalid argument
my envs: CUDA:11.6 cuDNN:8.4.1 TensorRT:<IP_ADDRESS> onnx:1.12.0 could you please help me? thanks.

Know issue:
https://github.com/triple-Mu/YOLOv8-TensorRT/issues/71

Know issue: #71

The engine file exported directly using the export provided by the v8 project cannot be directly reasoned. like this:
(py38) yangyang@ysd-18:~/GenTrt/YOLOv8-DSPTC/csrc/pose/normal/build$ ./yolov8-pose ../yolov8l-pose.engine ../bus.jpg ERROR: 1: [stdArchiveReader.cpp::StdArchiveReader::30] Error Code 1: Serialization (Serialization assertion magicTagRead == kMAGIC_TAG failed.Magic tag does not match) ERROR: 4: [runtime.cpp::deserializeCudaEngine::50] Error Code 4: Internal Error (Engine deserialization failed.) 段错误 (核心已转储)
so, I use the v8 project to export the onnx file, and then use the onnx2trt tool to generate the engine, but the following error is thrown during reasoning:
(py38) yangyang@ysd-18:~/GenTrt/YOLOv8-DSPTC/csrc/pose/normal/build$ ./yolov8-pose ../yolov8l-pose.engine ../p1.mp4 model warmup 10 times CUDA Error: File: /home/yangyang/GenTrt/YOLOv8-DSPTC/csrc/pose/normal/./include/yolov8-pose.hpp Line: 300 Error code: 1 Error text: invalid argument
my envs: CUDA:11.6 cuDNN:8.4.1 TensorRT:<IP_ADDRESS> onnx:1.12.0 could you please help me? thanks.

Known issue: #71

yes, i see it, i have try trtexec, but still this error, why?

Know issue: #71

The engine file exported directly using the export provided by the v8 project cannot be directly reasoned. like this:
(py38) yangyang@ysd-18:~/GenTrt/YOLOv8-DSPTC/csrc/pose/normal/build$ ./yolov8-pose ../yolov8l-pose.engine ../bus.jpg ERROR: 1: [stdArchiveReader.cpp::StdArchiveReader::30] Error Code 1: Serialization (Serialization assertion magicTagRead == kMAGIC_TAG failed.Magic tag does not match) ERROR: 4: [runtime.cpp::deserializeCudaEngine::50] Error Code 4: Internal Error (Engine deserialization failed.) 段错误 (核心已转储)
so, I use the v8 project to export the onnx file, and then use the onnx2trt tool to generate the engine, but the following error is thrown during reasoning:
(py38) yangyang@ysd-18:~/GenTrt/YOLOv8-DSPTC/csrc/pose/normal/build$ ./yolov8-pose ../yolov8l-pose.engine ../p1.mp4 model warmup 10 times CUDA Error: File: /home/yangyang/GenTrt/YOLOv8-DSPTC/csrc/pose/normal/./include/yolov8-pose.hpp Line: 300 Error code: 1 Error text: invalid argument
my envs: CUDA:11.6 cuDNN:8.4.1 TensorRT:<IP_ADDRESS> onnx:1.12.0 could you please help me? thanks.

Known issue: #71

yes, i see it, i have try trtexec, but still this error, why?

How about your trtexec tool version about tensorrt? It seems that you build engine with other version and infer with <IP_ADDRESS>?

same as <IP_ADDRESS>

Know issue: #71

The engine file exported directly using the export provided by the v8 project cannot be directly reasoned. like this:
(py38) yangyang@ysd-18:~/GenTrt/YOLOv8-DSPTC/csrc/pose/normal/build$ ./yolov8-pose ../yolov8l-pose.engine ../bus.jpg ERROR: 1: [stdArchiveReader.cpp::StdArchiveReader::30] Error Code 1: Serialization (Serialization assertion magicTagRead == kMAGIC_TAG failed.Magic tag does not match) ERROR: 4: [runtime.cpp::deserializeCudaEngine::50] Error Code 4: Internal Error (Engine deserialization failed.) 段错误 (核心已转储)
so, I use the v8 project to export the onnx file, and then use the onnx2trt tool to generate the engine, but the following error is thrown during reasoning:
(py38) yangyang@ysd-18:~/GenTrt/YOLOv8-DSPTC/csrc/pose/normal/build$ ./yolov8-pose ../yolov8l-pose.engine ../p1.mp4 model warmup 10 times CUDA Error: File: /home/yangyang/GenTrt/YOLOv8-DSPTC/csrc/pose/normal/./include/yolov8-pose.hpp Line: 300 Error code: 1 Error text: invalid argument
my envs: CUDA:11.6 cuDNN:8.4.1 TensorRT:<IP_ADDRESS> onnx:1.12.0 could you please help me? thanks.

Known issue: #71

yes, i see it, i have try trtexec, but still this error, why?

How about your trtexec tool version about tensorrt? It seems that you build engine with other version and infer with <IP_ADDRESS>?

same as <IP_ADDRESS>

yeah, i know why. i use mode.export(formot='onnx', half=Ture), it can't use it in this script, so it worked!
but now another issue catch: when i use fp16, a lot of warnings will display, like this screen:

It does not matter
The weight of fp32 will cause overflow or truncation when converted to fp16.
You can make sure by visualize.

It does not matter The weight of fp32 will cause overflow or truncation when converted to fp16. You can make sure by visualize.

okk, thank you! good jobs!


Can you provide with a version of TheTool for Windows ?

Hi,
I'm a windows 10 user and would like to try the Tool. Can you please provide the window 10 version of this tool

@ilackarms ,
I have still not installed Go. This is because though I work on ASP.NET core micro services with Kubernetes most of them provide windows executable completely packaged. Will one such package be possible for theTool also?

@VenkateshSrini We do not have binary release for Windows yet. thetool currently expects Bash environment.

@axhixh ,
I understand that being modeled for Kubernetes Sub system, Bash dependencies come on. Let me detail my usecase so that I think you can help

I have set of Kubernetes POD that does specific.
I need to deploy Gloo
Using Gloo I want to orchestrate these pods to required functionality.

@VenkateshSrini will update the documents on how to use thetool on Windows soon. Meanwhile, can you please join https://solo-io.slack.com? Please visit https://slack.solo.io/ to get an invite. Please ping me 'a12a' once you join.


R&D Create thumbnail for video automatically

we cant create a thumbnail automatically from the m3u8 video we should create another app upload the video and create a thumbnail download it from this app and put in the video_player package

we should create the next app and use Nodejs backend and lite front end for help to create a thumbnails and in the background we use FFmpeg


What is the syntax for language aliases in the hljs.configure() function

I am trying to use the languages option in hljs.configure() with an alias.
I  use org-export which prefixes the language with src- so bash is output as src-bash.
How do I configure detection of src-bash as an alias for bash?
I know  src-bash is detected as a language the automatic detection which always adds ruby to the
 blocks is disabled when I add it to configure. The syntax for making it an alias for bash is what I need now.
hljs.configure({
  classPrefix: 'src-',
  languages:['src-bash']
})

languages should always include the ACTUAL names.  src- prefixs are only when using CSS class names.

hljs.configure({
  classPrefix: 'src-',
  languages:['bash']
})

Later:

...

I realized afterwards that src-bash is the prefix used in the CSS file and that was an error.
However  orgmode exports the language code prefixed with src. A bash block is expressed as
#+begin_src bash and is exported as
, lisp is written as #+begin_src lisp and exported as
, elisp expressed and exported as#+begin_src elisp  - >
 etc
The problem is highlightjs doesn't know of any languages src-bash, src-lisp, src-elisp so the languages parameter must aliassrc-bash to bash and both src-lispand src-elisp to lisp.
configure options
languages: an array of language names and aliases restricting auto detection to only these languages.
I am not well versed in Javascript but from the way the documentation reads the languages parameter should be something along the lines of  languages{['alias1', 'lang1'],['alias2','lang1'],...} where lang1 and lang2 are the languages bundled in the pack.
So for example if my languages pack contains only lisp and bash I will want to use bash highlighting for zsh, fish and ksh and use lisp highlighting for elisp and maclisp,
the languages parameter would be along the lines of
languages: {['zsh', 'bash'], ['ksh', 'bash'], ['fish','bash'], ['elisp', 'lisp'], ['maclisp', 'lisp']}
It is the syntax for associating an alias with a language I want to know. I'm sure if was more familiar with Javascript I would have worked it by now. :)

Well, first if you insist on not using code tags you'll need to write some of your own JS, see the README for details.  Only
 blocks are auto-detected.
The snippets I gave you earlier should work IF You are using pre/code.  If not you're writing your own JS anyways so you might as well just strip off the src- rather than try and hack Highlight.js.

So for example if my languages pack contains only lisp and bash I will want to use bash highlighting for zsh, fish and ksh and use lisp highlighting for elisp and maclisp,

That's a better question. :-)  Although I'm not sure if you're asking the same thing but giving me a better use case. :-)  But that's fine.
There is no easy way to do that, since the aliasing is all internal to Highlight, but you can hack it be redefining new langauges:
var bash = hljs.requireLanguage("bash").rawDefinition();
bash.aliases.concat(["zsh","fish","etc"])
// push the new bash back overtop of the old one
hljs.registerLanguage("bash", bash)

ANOTHER easy way to do that that (since you have to write JS in any case) is just do the aliasing yourself, and then Highlight.js knows NOTHING about it... it's just all your own code and then the PROPER official name gets passed to HLJS when it's time to highlight.

The src-lang is used by emacs for its own highlighting code in its own CSS files
Actually highlightjs recognizes
 as defining a language block from the first src, but it treats src-lisp as a language, and my understanding is that aliasing allows an expression like src-lisp to be mapped to a language it recognizes like lisp.
I modified one of the css files replacing hljs with src and that is when I realized that src- is the prefix for the CSS classes not from the language so I removed the classPrefix parameter as it was superfluous.
I think the confusion comes from the use of the term aliases in the documentation and I took it to mean that if the language dialect you want is not included in the pack you alias your language to the nearest one in the pack, eg from scheme  to lisp.
I have a feeling that is what the guys who wrote the doc meant , but it has seen so little use that it has been forgotten about, although the code that implements is still functional but not documented. Perhaps it has never been used because its usage hasn't not been documented in the first place.
I think I'm right as it makes perfect sense that the designers would conceive of such a possibility, after all they ARE clever guys.
org-babel executes code using interpreters based on those language prefixes, and will use the wrong interpreter if the language code is changed for convienence sake. If I were to change elisp to lisp in the original document, org-babel would use another lisp, so I can't do that.
I think this is what the aliasing does, allowing a little used dialect to use the highlighter of a better known language.
If I'm wrong about that then perhaps I should put in a feature request for that.

var bash = hljs.requireLanguage("bash").rawDefinition();
bash.aliases.concat(["zsh","fish","etc"])
// push the new bash back overtop of the old one
hljs.registerLanguage("bash", bash)

I have a feeling that the language aliasing if it is what I think it is, is implemented by your  code above :)

Actually highlightjs recognizes  as defining a language block from the first src...
I don't see how that's correct.  The code is literally:
var blocks = document.querySelectorAll('pre code');
If your'e using highlightAuto that is... if you're manually picking the blocks then of course it doesn't care...

but it treats src-lisp as a language, and my understanding is that aliasing allows an expression like src-lisp to be mapped to a language it recognizes like lisp.

It's not aliasing that does that, it's the classPrefex feature, nothing to do with aliasing.

I modified one of the css files replacing hljs with src and that is when I realized that src- is the prefix for the CSS classes not from the language so I removed the classPrefix parameter as it was superfluous.

OHHHHHH.... were talking about different things.  There is no way to assign arbitrary "prefixes" simply JUST for detection. You can use lang- or language-, those are built-in and hard coded.  It's be pretty easy to build your own custom library build to change those (it's a single regex), but it's not a feature.

I think the confusion comes from the use of the term aliases in the documentation and I took it to mean that if the language dialect you want is not included in the pack you alias your language to the nearest one in the pack, eg from scheme to lisp.

Is there an exact bit of documentation you found especially confusing that we could perhaps take a look at?

I think this is what the aliasing does, allowing a little used dialect to use the highlighter of a better known language.

Not really, it's to allow us internally to say that one language MIGHT be referred to in different ways, and in many cases we add the file extensions also... So "ruby" and "rb".
An external API to add arbitrary aliasing isn't the worst idea though... but that would be a feature request... if you want to do that please re-edit your original post and we'll rename this so that we have all this rich context here.

I think we'd also be posing to making the language prefix a configurable option, then if all you wanted was a prefix you could do that in one spot... the aliasing is another matter.
Existing code (hardcoded):
      languagePrefixRe = /\blang(?:uage)?-([\w-]+)\b/i,

I got it working earlier by adding this code to emacs, but will change it not to replace the src-xxxx but add xxxx to the class in case some other software requires the src-xxxx
    (defun my/org-html-src-block (html)
      "Modify the output of org-html-src-block for highlight.js"
      (replace-regexp-in-string
       " {
    hljs.highlightBlock(block);
  });
});

That's one way to get it done... or you could just as easily do the same thing on the JS side with the DOM, but I presume you're more familiar with emacs scripting.

I think we'd also be open to making the language prefix a configurable option, then if all you wanted was a prefix you could do that in one spot... the aliasing is another matter.
Existing code (hardcoded):
      languagePrefixRe = /\blang(?:uage)?-([\w-]+)\b/i,

Though it would need a clearer name.

If additional prefixes like src-, source- were added how would languagePrefixRe look like?

You'd have to use regex |... https://www.regular-expressions.info/alternation.html

/\b(lang|src|source|code)-([\w-]+)\b/i,

Coming to think of it would be better for my alias idea to be implemented with the intention of having fish, zsh as aliases for bash as an example.
Using src-lisp, src-elisp as aliases for lisp would an undocumented benefit, but an abuse of the concept.

There is no perfect way to do that, since the aliasing is all internal to Highlight, but you can hack it be redefining new languages based on the old ones.
var bash = hljs.requireLanguage("bash").rawDefinition();
bash.aliases.concat(["zsh","fish","etc"])
// push the new bash back overtop of the old one
hljs.registerLanguage("bash", bash)

You could also wrap that up nicely with a helper function of course.

I think this code should meet my needs.


IE11 polyfill

VTooltip doesn't work on IE11 currently.
Object doesn't support property or method 'assign'
So I guess we can solve that ourselves with an object.assign polyfill but it would be nice if this plugin did that out of the box.

For a more general solution, you may want to try polyfill.io. I just added:
<script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script>

to my index.html and that seems to work. Of course, relying on dynamic polyfills from a 3rd party may not be your cup of tea.

Thanks, good tip.


Logging in with account that does not exist crashes server

Issue and Steps to Reproduce
Logging in with account that does not exist crashes server:
Finished reading game data.
Postprocessing runtime data ..  Hashes filled
Debug   : User cohtest trying to login from <IP_ADDRESS>
/Segs/Projects/CoX/Servers/AuthServer/AuthHandler.cpp:81: virtual void AuthHandler::dispatch(SEGSEvent*): Assertion `!"Unknown event encountered in dispatch."' failed.

SEGS version
3bfadac
Related Issues
Relates to #329 and may be a duplicate

Possibly related: #329


Sema: Ban existentials with associated types from appearing in 'switch' patterns

This was allowed on accident in Swift 3, and caused a build regression
with the JaySON project (https://github.com/DanToml/Jay).

@swift-ci Please smoke test

@DougGregor @jrose-apple Just to double-check, this was not intentional right?

Note that we already prohibit this for if case let, which suggests it was an accident.
However I'm wondering if there's a more fundamental ASTWalker bug that's causing us to miss these -- why do we need to special-case SwitchStmt here?

Looks like a reasonable stopgap. I thought we validated checkUnsupportedProtocolType while resolving an existential TypeRef—any idea why we manage to bypass it on this path?

@jckarter We do this check after because doing it while resolving types leads to recursion into validateDecl() which can crash -- the check visits all protocol members and caches the result.

This was not intentional. Thank you for fixing!


Added missing XML documentation and resolved some discrepancies in existing comments

Added missing XML documentation and resolved some discrepancies in existing comments
WE2-1008
Signed-off-by: Mihkel Kivisild<EMAIL_ADDRESS>

I updated the targetframwork for Tests project to .Net 8 as per comments under WE2-1008.


fix invalid safeguard for solidity types

#122  👈 (View in Graphite)
main

This stack of pull requests is managed by Graphite. Learn more about stacking.


i18n(zh-cn): Update internationalization.mdx

Description (required)
Update internationalization.mdx

Related issues & labels (optional)

#8369

Lunaria Status Overview
🌕 This pull request will trigger status changes.

Learn more
By default, every PR changing files present in the Lunaria configuration's files property will be considered and trigger status changes accordingly.
You can change this by adding one of the keywords present in the ignoreKeywords property in your Lunaria configuration file in the PR's title (ignoring all files) or by including a tracker directive in the merged commit's description.

Tracked Files

Locale
File
Note

zh-cn
guides/internationalization.mdx
Localization changed, will be marked as complete.

Warnings reference

Icon
Description

🔄
The source for this localization has been updated since the creation of this pull request, make sure all changes in the source have been applied.


[ci] #3889: prune docker-compose files

Description
Currently each branch (iroha2-<lts|stable|dev>) has set of docker-compose files not only for itself, but for other branches too. It leads to confusion and goes against how versioning works. Moreover, since 2.0 release will be relatively soon and we are going to get rid of channels at all, there is no sense to keep them in the dev branch.
This PR removes docker-compose files related to other branches/channels, and removes .dev suffix from the configurations related to dev branch.
Linked issue
Closes #3889 (will be completely closed after merging into iroha2-stable)
Benefits
Less confusion, natural branch-based versioning and CI checks

@0x009922 afaik initial reason for having multiple files was to prevent situation when new user is trying to run lts containers when he was on dev branch in git.
Other than that i think that having 3 sets of files was confusing and this change is for good.

I guess we should first extend this PR with a new CI which will ensure the sync of the Dockerhub image used in the docker files, and the branch the file is located on.

I'll remind you that the impetus for the original shift towards docker compose files for different branches on the same branch was because of community confusion, and problems caused by merging into -main and -lts branches.
If you remove them, please consider adding something instead that fixes those issues.
I'd advise not doing this, because even a simple docker compose generator needs to be ran by the user and those will often not work. Pulling the docker-compose from the tutorial might work, but I'd advise against it, because then the dependency of the tutorial on dev becomes bidirectional.

Closing in favor of #4053.
@appetrosyan, now we have a single set of docker-compose configuration files binded to the branch. The primary intention we have is to reduce any confusion of end users: they come to the repo on whatever branch they want, and they use instructions in the README of that branch, which are usually simply "use docker-compose.yml.
We have also introduced a CI check that ensures that compose files in iroha2-dev branch contain image: hyperledger/iroha2:dev, and iroha2-stable - image: hyperledger/iroha2:stable. Although the Git pipeline became a little more complicated, hopefully compose files will be always up to date.
We are also planning to add CI checks to ensure that docker compose files are not only valid textually, but that they are also actually runnable.


.Net Agents - Graph Selection Strategy

https://blog.langchain.dev/how-to-build-the-ultimate-ai-automation-with-multi-agent-collaboration/
Need to provide an abstraction that supports the following patterns:

LangGraph
Crew AI
Guided Conversations
Flow Orchestrator

This is to be realized by integrating with the process framework.


Added new prometheus metrics exporter

The export that will be responsible for making fluentbit internal
metrics available.

Obsolete by https://github.com/GoogleCloudPlatform/ops-agent/pull/330


Building multi-thread xgboost failed in Windows.

When I run build.sh, this is the error I get. Can you suggest me what I am doing wrong?

Bug related to an old version.
Closing


Ensure empty ListPaginations don't throw

Previously, the call to page > this.pages.size() would throw a
CommandException as soon as you try and fetch the first page of an empty
pagination.
Now, an empty List is returned when there are no items.
Tested it locally on today's freshest SF 1.8.9, works.

A potential alternative would be throwing Nothing to display, I suppose.


Video Playback Speed linked to Size of Video (Resolution)

So I've built tkvideo into my project, got my video playing.
I didn't want my video to be 1280x720, so I changed the resolution to 600x400.
What happened: Video Playback got really fast. When I altered the reolution to 1920x1080, i noticed that the Video would play slower.
Heres my code, I basically just altered the resolution, changed the label to my label's name ands changed the videopath & name:
player = tkvideo("./video.mp4", label, loop = 1, size = (600,400))
I used a Music Video in 480p. tried various Resolutions and they either started in sync and got faster, started slower and got faster, or were just completely off in terms of playback speed

Is this not the same as issue #1 which was closed by pull request #8?

From what I found, the module in my libraries is not updated to pull request #8. Even after updating it myself, I did not find the "hz" parameter to have any effect on increasing FPS past a certain point. Whether I gave the video its original resolution or down scaled it, FPS seems to auto cap at around 15-20. I set the hz parameter to 999999999 and there was no increase. I set it to 1, and it got infinitely slower, as if it was only displaying an image. It seems like the issue is the values have incorrectly assigned meanings. The resolution in my case makes no difference

@tobiglaser

PR #8 was merely a fix for the video playing too fast.
It's not possible to speed it up with the parameter.
The maximum speed is dictated by the system reading and parsing each frame as a single image.
This, like missing sound, is sadly inherent to the way this project works.
Maybe the parameter should have been fps_limit rather then hz.
The project not being updated on pypi is a different story though.

@tobiglaser  BTW I am trying to make it possible to delete the selected playing video from remaining on playing on the tkinter window. In an if,elif,else statement setup, I want the video to be delete (i am trying to achieve this). But I found out the module itself doesnt have the attribute destroy. Do you think you can help add a destroy function? Or give hints as to how to add it? (beginner here)

You and I are the only guys that seem to still be alive on this module page haha

Seems so. Some thoughts:

This project is unsuitable for any intent bigger then displaying a gif.
The approach to displaying moving images has been flawed from the start.
The naming of this package has been misleading python users since it's release.
The prefix tk implies the ease of use and usability Tk is known for.
This is the reason so many folks come here asking for audio and other features.

I ended up here like this as well.
For suffisticated video displaying a proper video player can and should be used.
For the project I was working on at the time this is python-vlc.
There is an example hidden here.
Ok, after getting that of my chest:
Since I commited #8 I found an even better and much simpler way of getting the same functionality even without threading!
It uses the timed callbacks built into the Tk framework. Something like root.after(frametime, root.nextFrame).
I've seen it implemented for clocks and even for video.
As you might have guessed I'm not looking to actively work on tkVideo at this time.
I'm not sure about what you mean by "destroying". Have a look into PR #5. After stopping I would try replacing the whole label with a different one (or something like that).
There should be some way to hide a label, place yours next to it and hide one or the other.

Thanks for the info. I tried the stop PR but it didnt do anything. The video just shows up on itself again (the video has a pingpong effect)


typescript-compatibility plugin does not correctly generate child types when parent types can be null

Describe the bug
Consider the following example:
type GetFooQuery = {
  author: null | {
    name: string
  }
} // from typescript plugin

type GetFooAuthorName = GetFooQuery["author"]["name"] // from typescript-compatibility

The type GetFooAuthorName has an error. It should be: NonNullable<GetFooQuery["author"]>["name"]. TS playground.
Expected behavior
Should create valid types by using NonNullable:
NonNullable<GetFooQuery["author"]>["name"]

Environment:

OS: Mac 11.4
@graphql-codegen/core: 1.17.0
@graphql-codegen/typescript: 1.23.0
@graphql-codegen/typescript-compatibility: 2.1.5
NodeJS: 14.16.1

Additional context

Hi @ericbiewener !
typescript-compatibility was intended for migration between v0 and v1 of codegen (~3 years ago).
We've just released v2 and this plugin is no longer maintained or actively developed.
I recommend to migrate to the new versions of codegen.


drop unnecessary explicit generic specification

fn connect::<T: Trait>(arg: T) {}

vs.
fn connect(arg: impl Trait) {}

where Trait is a sealed trait, implemented for specific types - A, B and C.
I don't see any real use for the generic T. Or am I missing something?

Meta heuristic here is "do as stdlib or major libraries do"
https://docs.rs/reqwest/latest/reqwest/fn.get.html
pub async fn get<T: IntoUrl>(url: T) -> Result<Response>

stdlib also generally preferse explicit generics (will finish after the meeting)

Yeah, I took a leaf from the design of reqwest's get method when initially writing the thing, but over time, I got convinced we might not actually need that generic T.
According to https://doc.rust-lang.org/reference/types/impl-trait.html#differences-between-generics-and-impl-trait-in-return-position;

In argument position, impl Trait is very similar in semantics to a generic type parameter.

So it's only useful to fuel either of the following;
let connect_to = JsonRpcClient::connect::<&str>;

let client = connect_to("http://website.domain");

or
let network = "mainnet";

let rpc_url = format!("https://rpc.{network}.near.org");

let client = JsonRpcClient::connect::<&str>(&rpc_url);

Regardless, though, I guess it makes sense to retain it.

(sorry, forgot after the meeting)
So, practically, it doesn't really matter. Indeed the sole difference between impl and non-impl is that the user can specify the type explicitly, if they need to, which is a very niche thing. So there are no strong arguments one way or another.
However, for public API, there's several weak arguments to avoid impl trait:

"specifying type explicitly", however niche, is a freedom that the user of the API might want to have
stdlib has a rule of "no impl Trait in public API". I think the motivation for that rule today is 90% sticking to status quo -- I am not aware of any strong explicit justification for avoiding impl trait. But basically every time when someone adds impl trait public API, they are asked to change to where clauses and such, as that's how literally 100% of the stdlib works
consistency: with impl trait, you'd sometimes use impl trait, and sometimes the explicit syntax (fn foo<T>(t: T, also_t: T)), it's impossible to stick strictly to impl trait. It is possible to stick to explicit syntax, as it is more expressive that impl trait (this is all about argument-position impl trait. Return-position impl trait is quite a different deal, despite having a similar syntax).

Yeah, those are all fine points and I didn't necessarily have a strong opinion for either case, so I think it's fine to keep the explicit syntax as-is. Thanks for the insight, much appreciated!


Improve icon component

Overview
The src/components/ui/Icon.tsx file should be fixed based on the Open-Closed Principle (OCP), one of the SOLID principles. In the current code, all the possible icons are imported within the Icon.tsx file, which means whenever we need a new icon in the future, the icon has to be imported into this file. That is against the principle:

"Software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification."

Criteria

[ ] Accepts any SVG or other image as a child component.
[ ] Has some variety of sizes (e.g., 2424px, 3232px, 48*48px, match parent width/height)
[ ] Has some variety of border radiuses (e.g., 4px 8px 10px, full)

Note

The component might be better to be renamed to IconButton, IconButton  or whatever sounds like a button. Because some icon SVGs will be used as simple images without wrapping with this component.

Please make sure the following warnings disappear after the improvement.
% npm run build

><EMAIL_ADDRESS>build
> next build

   ▲ Next.js 14.0.3
   - Environments: .env.local
   - Experiments (use at your own risk):
     · typedRoutes

 ⚠ Compiled with warnings

./src/components/ui/Icon.tsx
Attempted import error: 'ArrowLeftIcon' is not exported from '@/assets/images/icons' (imported as 'ArrowLeftIcon').

Import trace for requested module:
./src/components/ui/Icon.tsx
./src/components/ui/index.ts
./src/components/base/parts/mobile/BottomTab.tsx

./src/components/ui/Icon.tsx
Attempted import error: 'BagIcon' is not exported from '@/assets/images/icons' (imported as 'BagIcon').

Import trace for requested module:
./src/components/ui/Icon.tsx
./src/components/ui/index.ts
./src/components/base/parts/mobile/BottomTab.tsx

./src/components/ui/Icon.tsx
Attempted import error: 'CalendarIcon' is not exported from '@/assets/images/icons' (imported as 'CalendarIcon').

Import trace for requested module:
./src/components/ui/Icon.tsx
./src/components/ui/index.ts
./src/components/base/parts/mobile/BottomTab.tsx

./src/components/ui/Icon.tsx
Attempted import error: 'ContainerIcon' is not exported from '@/assets/images/icons' (imported as 'ContainerIcon').

:


update clickhouse to 22.9 for better arm64 support

Relevant: https://github.com/plausible/analytics/discussions/2292
tl;dr In 22.9 ClickHouse switched from hyperscan to vectorscan and multi-substring search now works on arm64.
I'm trying it out on my instance and everything seems to be going well so far.

Hello :-)
I tried on my raspberry pi and it does not work anymore with 22.9 (it works well on 22.6):
plausible_events_db_1  | 2022.10.13 09:27:19.253670 [ 49 ] {} <Fatal> BaseDaemon: ########################################
plausible_events_db_1  | 2022.10.13 09:27:19.293668 [ 49 ] {} <Fatal> BaseDaemon: (version <IP_ADDRESS> (official build), build id: BE5E0FB2772A0C009577E2015DCD3DD480006365) (from thread 1) (no query) Received signal Illegal instruction (4)
plausible_events_db_1  | 2022.10.13 09:27:19.294487 [ 49 ] {} <Fatal> BaseDaemon: Illegal opcode.
plausible_events_db_1  | 2022.10.13 09:27:19.294672 [ 49 ] {} <Fatal> BaseDaemon: Stack trace: 0x557800da6c
plausible_events_db_1  | 2022.10.13 09:27:19.295718 [ 49 ] {} <Fatal> BaseDaemon: 0. ? @ 0x6f4da6c in /usr/bin/clickhouse
plausible_events_db_1  | 2022.10.13 09:27:19.569518 [ 49 ] {} <Fatal> BaseDaemon: Integrity check of the executable skipped because the reference checksum could not be read. (calculated checksu

Closing in favour of https://github.com/plausible/hosting/pull/74


Add Filter ,Recent Search !🚀

@abdus By Adding Filter in the explore page so they find their particular content Easily . and Also the Recent Search  under the search button so ,it might look page good , i will add the ui

@abdus  look into this i will send the ui design

what kind of filters are you talking about? can you explain it a bit?

For example if the user wants to search the job , for their qualification so they can add their qualification to the filter so  it will show only the jobs which is suits for his/her qual , this also suits to all the options

@Surajbokde @vaishali614

@bhubesh757 Please specify in a little more detail. What exactly are the filters. Implementing the same would also need a some modifications in the API.

@bhubesh757 Please elaborate your idea so that we can plan things better or else, I'll close this issue.

@bhubesh757 Please elaborate your idea so that we can plan things better or else, I'll close this issue.

Close the issue


Non Integral calculations in Plutus

In the Shelley ledger update rules, there are non-integral calculations performed (calculations of deposit decay for e.g.), the precision of these kinds of calculations must be consistent. For how this is done, see
https://hydra.iohk.io/build/779843/download/1/non-integer-calculations.pdf
https://github.com/input-output-hk/cardano-ledger-specs/blob/master/shelley/chain-and-ledger/dependencies/non-integer/src/NonIntegral.hs
If there are any such calculations in Plutus possible (e.g. a lot of the Actus contracts would have exponentiation to non-integer powers), they should
be done the same way they are done in the Shelley ledger. This is a matter of
deterministic script validation outcomes. Inconsistent rounding could
result in different validation outcomes running the same script on the same
arguments.

We don't have non integral built-in types in Plutus. Users can define their own (e.g. a rational type) but then it's up to them to get it right.
If we provided such a type in a library or added it as a built-in then we'd need to care about this, but I don't think there's anything to do at the moment.


Authorization

Thank you for making this! I see it's potential. However, I primarily build multi-user applications. How do I keep one user from seeing another user's updates? I tried uniquely identifying each element and that seems to work except it throws js errors for other users saying it can't find the elements. And is there really no way to authorize requests using Pundit and/or Rolify?
Just looking for some guidance in this regard. I tried other searches but this library is so new I mostly get references back to here or the reflex website, other than health resources pointing to stimulate/reflex articles :)

Hi @andersonsystems-deploy, I'm new to SR as well, but I haven't run into this problem yet. Are you seeing this with logged-in users or anonymous visitors? My users are all logged-in and authenticated, so I can't replicate your issue (though I immediately fired up a few browser windows in a panic). I followed the Authentication/Authorization guide in the docs: https://docs.stimulusreflex.com/authentication and had no issues so far. For what it's worth, we're using Devise and CanCanCan to manage this.

It depends what you're doing I guess. At the top of the Authentication page they have this warning...
"However, the moment you deploy to a host with more than one person accessing your app, you'll find that you're sharing a session and seeing other people's updates"
So, as I understand it, if you're not uniquely identifying the elements with a user id, when you update html on those elements, cable-ready will update the same element for every user that is currently on the same browser page.

Hi folks! Sorry for the late reply in an interesting conversation. I hope that I can provide some answers.
Christopher, I have confidence that you know what you're trying to do in your head, but outwardly you are confusing two concepts: authentication and authorization.
It's true that out of the box, if you don't configure an authentication scheme (whether it's session id, Devise or something else) your users will all receive the same updates. For this reason, one of the first things people do is tie their authentication to the most appropriate mechanism. I would consider authentication well supported in SR, and I think we've struck a good balance on flexibility vs. omakase.
Authentication just means your browser can connect to the ActionCable endpoint and you won't be disconnected. Once you're connected, the client is free to subscribe to any combination of channels unless you have a plan for managing authorization, which controls access to individual resources and/or operations.
I like and use Rolify after all these years - including with SR - but Rolify itself doesn't have any teeth; it provides a convenient mechanism for attaching role-based metadata, but it doesn't attempt to protect anything on its own.
Unfortunately, most tools people use to bounce people "not on the list" are generally designed to guard against running controller actions. In the case of a Reflex, the damage can be done before the controller action runs... and if you're talking about a selector or nothing morph, no controller action exists to be guarded. This means that you have to approach authorizing Reflex actions differently.
What most folks seem to do is perform a permissions check in the server-side before_reflex callback, and if the user doesn't have permission, you can cancel the Reflex by calling throw :abort in your callback method. Depending on how your authorization system works (I'm not familiar with CanCanCan, for example) it might be possible to use it in this manner, but possibly not. There's not much we can do about that, unless those tools decide to adopt SR as a supported resource. That would be amazing.
Soon, another possibility will hopefully be on the table: https://docs.stimulusreflex.com/authentication#token-based-authentication describes using tokens but the same mechanism could be used to bounce people from subscribing to channels based on permissions as well. That would be super cool to see working. Unfortunately, the code required to make this happen still needs to be approved. Please feel free to go +1 #243 if you'd like to see this happen sooner.
Does this help, Christopher?


max speakers for speaker embedding manager

It would be useful if I there was an option in  embedding manager to find the closest one from existing speakers.
This way, I can handle myself the case where I know how many speakers there are, and there's already enough speakers detected.

That sounds reasonable.
Could you follow
https://github.com/k2-fsa/sherpa-onnx/blob/3e4307e2fb88d4b1b648211c14f2fff6db11bca4/sherpa-onnx/csrc/speaker-embedding-manager.cc#L126
to add a TopK to return the name and scores for the topK match?

to add a TopK to return the name and scores for the topK match?

I assume we just need to sort the scores, then iterate through them, collect, and return. Could you share any specific IntelliSense settings used in the repository so I can feel more comfortable working in VSCode?

We are using clang-format, which can be installed with
pip install clang-format

I don't use VSCode. Maybe you can find a way to integrate clang-format with it.
You don't need to care about the style issues. We can reformat the file later.


Fix the revert button issue with instanced nodes

The method "check_reload_status" on the file "property_editor.cpp" didn't take into account if the field is a property of an instanced node just like the "update_tree" does. The code that checks this in "update_tree" has been extracted into the method "_is_instanced_node_with_original_property_different" to be also used in "check_reload_status".
Fixes #13415

The reason Travis CI build failed is due to a line change made on this commit 18 days ago: https://github.com/godotengine/godot/commit/d28763a4c1792dc00fde3d151eaea54f9cf2b8a9
Should I add another commit fixing that format error?

@jjjuande No you can ignore that one, clang-format behaves differently with comments depending on its version, which is why we have such issues in a few files. It will be fixed eventually when we upgrade clang-format in our CI and docs.


refactor: move vulnerabilityExceptionFixableEnabled to go-sdk

Signed-off-by: Darren Murray<EMAIL_ADDRESS>
Summary
move vulnerabilityExceptionFixableEnabled function to go-sdk
How did you test this change?
Tested in Terraform provider
Issue
https://lacework.atlassian.net/browse/ALLY-1033

Also, do we need to refactor this function too? https://github.com/lacework/go-sdk/blob/main/cli/cmd/vulnerabilty_exceptions.go#L273


Remove active mds solution from alert

Running more than one active MDS is not tested as of now.

/cherry-pick release-4.15

/retest

/retest

@agarwal-mudit, there has been some problem with our ci for the last 3 days where it's failing to provision clusters,. I am already trying to find a solution, in the meantime, if something is urgent enough please override.

/override ci/prow/ocs-operator-bundle-e2e-aws


Contribute to relevant international specifications and standards

What
Timeline: Ongoing, as opportunities arise
Priority level: 2 – what only we can do
Category: Areas the team is best-positioned to handle
Potential tasks

Provide feedback about deficiencies we identify
Submit findings from GOV.UK Design System research
Specifications and standards we can focus on include WCAG, WAI-ARIA, W3C, HTML and CSS

Why
As a centralised team with a unique vantage point, we have the opportunity to feed back what we see to the specifications and standards that underpin accessibility on the web.
Designing or tweaking existing standards based on the research we've collected can lead to an overall more accessible experience. If we share our research, others may benefit. Similarly, proposing new standards or ideas can bring long-term benefits for web accessibility.
Who needs to work on this
Developers, tech leads, accessibility specialist, user researcher
Who needs to review this
Unknown
Setup tasks

[ ] Thing to do

Update on this work: I've joined the W3C Accessibility Guidelines Working Group (AGWG).
That's the group that develops and maintains WCAG 2.x, WCAG 3, and a few other accessibility-related standards.
My plan is to initially focus on WCAG 2.x updates and clarifications for the 'Understanding' documents.


Fail to cast for Dictionary

Hello. It's nice Open Source.
I want to use BonMot 5.0.
textView.typingAttributes = StringStyle().attributes

This code cause below error.
cannot assign value of type 'StyleAttributes'(aka 'Dictionary<NSAttributedStringKey, Any>') to type '[String:Any]'

How can I do that?
Do you have any Idea to resolve this?
thanks.

I resolved by myself! Close this issue

Glad to hear it! Any chance you could post your solution, in case someone else has the same problem?

Sorry too late.
I could fix it with below extension!

extension StringStyle {

  func dictionary() -> [String:Any] {
    let _dictionary = attributes

    var dic = [String : Any].init(minimumCapacity: _dictionary.count)

    for a in _dictionary {
      dic[a.key.rawValue] = a.value
    }

    return dic
  }
}

Ah, cool. I found a nice, concise way to do this as well:
extension Dictionary where Key == NSAttributedStringKey {

    var withStringKeys: [String: Value] {
        return reduce(into: [:], {
            $0[$1.key.rawValue] = $1.value
        })
    }

}

And then you use it like textView.typingAttributes = StringStyle().attributes.withStringKeys

Maybe attributesDictionary in addition to attributes? Seems like all the apis will move away from attributes eventually, but in the mean time it'd be nice to have a quick fix.

Yes, we should put some kind of patch in for this. I don’t think attributesDictionary is right, because they’re both dictionaries. Maybe stringKeyedAttributes, or for better autocomplete, attributesWithStringKeys.


Nothing happens

When i launch the .exe nothing happens, except i get the prompt for outgoing internet connection. No GUI, nothing... How does this work? o_O

Got logs from Event Viewer.
https://pastebin.com/UqhEDm63
https://pastebin.com/M3vVsvxU
Any help?

Got logs from Event Viewer.
https://pastebin.com/UqhEDm63
https://pastebin.com/M3vVsvxU
Any help?

Alright, not really sure about this. On my fresh Windows install i'm not getting anything like this. I do notice one thing though: it's using NET 4.0 something instead of 4.7.2, which this project is made for. Download the runtime from here: https://dotnet.microsoft.com/download/dotnet-framework/net472

Alright, not really sure about this. On my fresh Windows install i'm not getting anything like this. I do notice one thing though: it's using NET 4.0 something instead of 4.7.2, which this project is made for. Download the runtime from here: https://dotnet.microsoft.com/download/dotnet-framework/net472


Thud update

Update balena-varisicite to thud

The poky thud tags I see are:
thud-20.0.0, thud-20.0.1, thud-20.0.2, and thud-20.0.3
Are you sure thud-20.0.3-4-ge694933647 is a valid tag?

I did a git describe --tags which enabled matching a lightweight (non-annotated) tag. I think the base tag is thud-20.0.3. Or if you think I should use some other method to list the tag of the current branch?

@vicgal was this updated as per the comments?

@vicgal was this updated as per the comments?

yes, did the update

This PR also needs to set the yocto version to thud in the .coffee files

Updated and pushed again


Fields of LoadedGltfScene should be public

When a scene is loaded, the loader returns a LoadedGltfScene to the caller, with useful info such as all the material handles. But the fields of LoadedGltfScene are all private, so the caller can't use the result.
Per email message, this was just an error, and those fields should be public. This is just to track that. Thanks.

Fixed by 0f9ab05257d5e04c2b5bdd54769a9a037f48cdd1

Fixed by 0f9ab05257d5e04c2b5bdd54769a9a037f48cdd1


Request Deep virtual stereo odometry

Hi, Great Works!
Can you post reproduced code about the Deep Virtual Stereo Odometry as well, if you do not mind?
I would like to see that work as well !!

Hi,
CNN-DSO is a good starting point if you are interested in DVSO
https://github.com/muskie82/CNN-DSO
On top of that, I have implemented colour image reader and undistorter (for Monodepth input), left-right consistency in the optimization, left and right disparities output in Monodepth-cpp.
It would need some work to be ready for public use. If you have a partially implemented code and won't run properly, feel free to post it here for discussion.


Rename Baja to SessionManager

WIP

AWS CodeBuild CI Report

CodeBuild project: Veracruz
Commit ID: 005e574044c1fbfa190359fb2eb21c78aa40fb4d
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: Veracruz
Commit ID: 156cf368e85d7f057adcb1844866644d160391f3
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Ready for review

AWS CodeBuild CI Report

CodeBuild project: Veracruz
Commit ID: ead633d323507113f6be6017cebfdf8804e441c8
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: Veracruz
Commit ID: d982f557c43d0f704252d532342017ceed475fd6
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Assuming veracruz-sgx-tests are passing locally, @gbryant-arm, this looks good to me and can be merged.  Though please include a more descriptive message when you open pull requests in future!

Actually, please don't merge this yet, until the Python 2 changes have gone in (#80).  They've been sat for a while.

Waiting for #80 to be merged

This is next in line.  Can you rebase onto main and force push an update?  I'll approve again once that is done, then as soon as the CI finishes we can merge.

AWS CodeBuild CI Report

CodeBuild project: Veracruz
Commit ID: b230d8dfb1e565742413a60cb5e0b98bb716677a
Result: FAILED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Weird CI failure that doesn't seem to be related to anything in the changeset.  I will manually restart.

AWS CodeBuild CI Report

CodeBuild project: Veracruz
Commit ID: b230d8dfb1e565742413a60cb5e0b98bb716677a
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

+1 reached, merging.


Add non-blocking mode of Matplotlib::show and a simple example

Just add the non-blocking mode of function. Check it with the example.

Hi, looks great, I just merged it with some minor corrections. Thanks for contributing!