Failure in pip installation

Hi @ACEnglish ,
Sorry for bugging you with this question here.
I tried to install truvari v4.2.0 on one machine bit it keep failing even it returned a success message. Also, python3 -m pip uninstall truvari did remove something after installing. Here are tow conditions. May I know the solution? Thnak you!
Condition 1
jenyuw@thoth:~/Software$python --version
Python 3.10.6
jenyuw@thoth:~/Software$python3 -m pip install truvari==4.2.0
Defaulting to user installation because normal site-packages is not writeable
Collecting truvari==4.2.0
  Using cached truvari-4.2.0-py3-none-any.whl (93 kB)
Requirement already satisfied: edlib>=1.3.9 in /data/home/jenyuw/.local/lib/python3.10/site-packages (from truvari==4.2.0) (1.3.9)
Collecting numpy>=1.24.4
  Using cached numpy-1.26.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.2 MB)
Requirement already satisfied: pandas>=1.5.3 in /data/home/jenyuw/.local/lib/python3.10/site-packages (from truvari==4.2.0) (1.5.3)
Collecting pywfa>=0.5.1
  Using cached pywfa-0.5.1.tar.gz (3.5 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
  WARNING: Requested pywfa>=0.5.1 from https://files.pythonhosted.org/packages/93/40/ec1c77237515eb618ba7407d4ac954b9dd127808a303cd85b0928f8dc12a/pywfa-0.5.1.tar.gz#sha256=e972bf53f9e6d8957e9105ecc22cf704ac4bfad4d882d79c82f11fc260381483 (from truvari==4.2.0), but installing version 0.0.0
Discarding https://files.pythonhosted.org/packages/93/40/ec1c77237515eb618ba7407d4ac954b9dd127808a303cd85b0928f8dc12a/pywfa-0.5.1.tar.gz#sha256=e972bf53f9e6d8957e9105ecc22cf704ac4bfad4d882d79c82f11fc260381483 (from https://pypi.org/simple/pywfa/) (requires-python:>=3.7): Requested pywfa>=0.5.1 from https://files.pythonhosted.org/packages/93/40/ec1c77237515eb618ba7407d4ac954b9dd127808a303cd85b0928f8dc12a/pywfa-0.5.1.tar.gz#sha256=e972bf53f9e6d8957e9105ecc22cf704ac4bfad4d882d79c82f11fc260381483 (from truvari==4.2.0) has inconsistent version: filename has '0.5.1', but metadata has '0.0.0'
ERROR: Could not find a version that satisfies the requirement pywfa>=0.5.1 (from truvari) (from versions: 0.2.5, 0.2.6, 0.2.7, 0.3.0, 0.4.0, 0.4.1, 0.4.2, 0.5.0, 0.5.1)
ERROR: No matching distribution found for pywfa>=0.5.1
jenyuw@thoth:~/Software$truvari
truvari: command not found

condition 2
jenyuw@thoth:~/Software$git clone https://github.com/spiralgenetics/truvari.git
Cloning into 'truvari'...
remote: Enumerating objects: 12010, done.
remote: Counting objects: 100% (1766/1766), done.
remote: Compressing objects: 100% (667/667), done.
remote: Total 12010 (delta 1130), reused 1716 (delta 1097), pack-reused 10244
Receiving objects: 100% (12010/12010), 99.69 MiB | 19.55 MiB/s, done.
Resolving deltas: 100% (6523/6523), done.
jenyuw@thoth:~/Software$cd truvari/
jenyuw@thoth:~/Software/truvari$git checkout tags/v4.2.0
Note: switching to 'tags/v4.2.0'.

You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by switching back to a branch.

If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -c with the switch command. Example:

  git switch -c <new-branch-name>

Or undo this operation with:

  git switch -

Turn off this advice by setting config variable advice.detachedHead to false

HEAD is now at bd39129 Merge branch 'release/v4.2.0'
jenyuw@thoth:~/Software/truvari$python3 -m pip install .
Defaulting to user installation because normal site-packages is not writeable
Processing /data/home/jenyuw/Software/truvari
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: truvari
  Building wheel for truvari (pyproject.toml) ... done
  Created wheel for truvari: filename=truvari-4.2.0-py3-none-any.whl size=1786 sha256=b100c4f69f7cb5105a0cca04a5a376c232ba0d66f5dd21c9affd6f45842732d6
  Stored in directory: /tmp/pip-ephem-wheel-cache-xi6821vn/wheels/7f/21/b1/6026200dbff2a410b01c738c99ff33a3563edf54d2e40dbee9
Successfully built truvari
Installing collected packages: truvari
Successfully installed truvari-4.2.0
jenyuw@thoth:~/Software/truvari$which truvari
jenyuw@thoth:~/Software/truvari$truvari
truvari: command not found
jenyuw@thoth:~/Software/truvari$python3 -m pip uninstall truvari
Found existing installation: truvari 4.2.0
Uninstalling truvari-4.2.0:
  Would remove:
    /data/home/jenyuw/.local/lib/python3.10/site-packages/truvari-4.2.0.dist-info/*
Proceed (Y/n)? y
  Successfully uninstalled truvari-4.2.0

Hello,
This looks like something has gone awry in your environment. To ensure that my environment isn't carrying something that makes it install successfully that the package doesn't call, I'll create a new, empty environment and try to install truvari. The following commands work for me:
python3 -m venv new_environment
source new_environment/bin/activate
python3 -m pip freeze | less -S #  ensuring there is nothing installed
python3 -m pip install truvari
truvari -h

Alternatively, you can use the Docker.

Hi @ACEnglish ,
Thank you very much for sharing the solution! The scripts worked.


[ownership] Add a SelfVersion update_mode

The SelfVersion update mode permits either an ownership unlock to UnlockedSelf or a new-version update from the current owner.
Adjust rescue security: Always allow the REBO, WAIT and BAUD commands.

The CI failures are not related to this PR.

//sw/device/silicon_creator/rom_ext/e2e/ownership:flash_permission_test passes locally.


[SYSTEMML-1980] HopDagValidator: Accept Integer Matrices

Under rare conditions a matrix can have INT ValueType and execute correctly.  For example the program
X= Rand( rows=2, cols=2, min=1, max=2)
R = cbind(as.matrix(nrow(X)) * 2, as.matrix(ncol(X)))

would throw an exception by the HopValidator because the Hops produced look like
(here, "MI" means matrix data type and integer value type):
----GENERIC (lines 28-0) [recompile=false]
------(33) u(cast_as_matrix) ([2]) [1,1,1000,1000,-1]MI [0,0,0 -> -MB]
------(35) b(*) (33,[2]) [1,1,1000,1000,-1]MI [0,0,0 -> -MB], CP
------(37) u(cast_as_matrix) ([2]) [1,1,1000,1000,-1]MI [0,0,0 -> -MB]
------(38) b(cbind) (35,37) [1,2,1000,1000,-1]MI [0,0,0 -> -MB], CP
------(44) PWrite R (38,[target/tes...],[false],[TEXT],[false],[,]) [1,2,-1,-1,-1]MI [0,0,0 -> -MB], CP

This patch relaxes the HopValidator to allow Integer matrices.

Refer to this link for build results (access rights to CI server needed):
https://sparktc.ibmcloud.com/jenkins/job/SystemML-PullRequestBuilder/2219/

LGTM - thanks @dhutchis. I'll merge it in because there might be other special cases but I think your HopDagValidator did its job here and revealed a hidden bug - I'll create a fix for it.


Zapp

Package name
de.christinecoenen.code.zapp
Hash(es)
A7:5D:6D:3B:1F:96:22:0B:F0:60:8A:E7:57:D4:15:AE:60:CC:2B:64:DE:4A:45:C4:5C:BD:BE:1F:92:A1:27:A0
Source code link (Optional)
https://github.com/mediathekview/zapp

As of now, contributing through issues won't be accepted. Please check the updated https://github.com/soupslurpr/AppVerifier/blob/master/CONTRIBUTING.md for instructions. Thanks.


Fail Cadet.Public.Updater silently in dev/test environments

Previously, an invalid GUEST_USERNAME or GUEST_PASSWORD would cause the application to crash if started with the --updater flag.
This should not be the case, since the --updater flag now encompasses more than just the news/material updater (namely, we have the assessment XML toolchain here). Someone trying to work on and test the application for the XML toolchain should not have to provide a GUEST_USERNAME or GUEST_PASSWORD in order to test their XML toolchain in the updater.
We're not 1.7 yet so no __STACKTRACE__.

Pull Request Test Coverage Report for Build 1125

4 of 8 (50.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.8%) to 99.19%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

lib/cadet/updater/public.ex
4
8
50.0%

Totals

Change from base Build 1123:
-0.8%

Covered Lines:
490

Relevant Lines:
494

💛  - Coveralls


New Calculation Group Feature in PBI

I am using PBI Desktop Nov.2023 version.
The new "calculation group" preview is very good, however, there are 2 issues:

No way to sort calculated items (cardinal)
Can format calculated items (other than dynamic formatting w/ measure, which has limitations).

Both features are available from 3rd party plug-in, such as Tabular Editor, but not available in PBI. Hopefully they will be added soon!
[Enter feedback here]

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

ID: b377ee06-5722-34e4-6bde-626de3ae6b8a
Version Independent ID: b377ee06-5722-34e4-6bde-626de3ae6b8a
Content: Create calculation groups in Power BI (preview) - Power BI
Content Source: powerbi-docs/transform-model/calculation-groups.md
Service: powerbi
Sub-service: pbi-transform-model
GitHub Login: @davidiseminger
Microsoft Alias: davidi

Thanks for your comment, @r00tnpm. This issue has been assigned to the doc author for review.


The old proposals are removed from DAO

Description
A clear description of the bug is:
I can't see the old votes now on the DAO page.

Must include any relevant identifiers, like:

Network: Testnet

Version: 2.3.0-rc3

Its by design it shows only the proposal for certain period.

On devnet, the proposal is still listed, even from 2022 and 2023, and I believe testnet at least had a single vote in the past 2 years, right?.

And even though, what's the expiration date for them? @AhmedHanafy725

@sameh-farouk

Per design, Dao pallet keeps proposals that are currently open. We do not retain proposals that have been closed or completed to keep the storage cost low.
If you can retrieve some proposals in one network this means that these proposals aren't closed.


Size hint based eviction for MemoryCache

Following up on https://github.com/aspnet/Caching/issues/325.
MemoryCache does not know the size of the items it caches but the user of MemoryCache may know the size. In those cases we want to provide a method for size based eviction to guarantee a limit on the memory footprint of the cache. We can also add an option to require size hint when adding an item to the memory cache. Having a size hint also gives us the opportunity to investigate different eviction policies.

Recommended for 2.1

Some notes from our discussion:

Make sure we don't register MemoryDistributeCache on our components.
Deprecate/remove the AddDistributedMemoryCache extension method. (Also update the comment to reflect that if this method is used, the cache will be shared among all IDistributedCache consumers).
Force a size limit on DistributedMemoryCache
Have each of our components on the framework that consume IDistributedCache create their own private version of the DistributedMemoryCache if no implementation is registered. The configuration on the limits for these instances can be exposed through named options or through some wrapper/new extension method on a case by case basis.
Have the MemoryDistributedCache tell the size of the entries to the underlying MemoryCache when adding entries.

Sample new extension method for session:
services.AddInMemorySession(options => options.MaxSize = 10 * 1024 * 1024);

Sample configuration through named options for the DistributedCacheTagHelper
services.AddMvc();
services.Configure(Some.Constant, options => options.MaxSize = 10 * 1024 * 1024);

@Tratcher @davidfowl @JunTaoLuo

@javiercn the updated POR is collected in #336


DON'T MERGE

Test PR (check that dep-tree-labeller mentions work)

Dependency Tree Analyzer Output:
New Dependencies:

org.apache.felix:org.apache.felix.framework:jar:5.6.10:provided

Dependency Tree Analyzer Output:
New Dependencies:

org.apache.felix:org.apache.felix.framework:jar:5.6.10:provided

CC @wildfly/prod


Remove pools key and proxy

Describe your changes

Remove the need to provide a unique key to the pool
Allow adding timelines to the pool
Add functional scope API to allow using a timeline and adding it back to the pool:withTimeline(timeline => {
  timeline
    .to({...})
    .play();
});

Thanks for the PR.
Unfortunately with this implementation withTimeline was not working for me, do you tested in a particular scenario so I can try to reproduce it? (using just useTimeline probably doesn't fix the issue as a new timeline is created every time), before investigating further I think that there are few points to address in the general implementation:

Right now plugins doesn't seem to be working, even tho I added gsap through peerDependencies, maybe i need to register the plugins inside the module?
I think that adding additional syntax on top could be confusing and maybe we can find a way to use it with minimal changes to the existing code

A member from the gsap team suggested to gsap.context() but I m not seeing how this could help in this case, maybe you have some ideas (https://gsap.com/community/forums/topic/40524-gsap-with-astro-view-transitions-integration/#comment-201800).
Starting from the what I think the ideal solution could be (idk if it's possible):
import gsap from "astro-gsap";

gsap.timeline()
	.set("[data-hero-text-reveal]", { opacity: 1 })
	.from(childSplit.lines, {
		yPercent: 300,
		skewY: 7,
		stagger: 0.2,
	})
	.to(
		"[data-hero-reveal]",
		{
			opacity: 1,
			stagger: 0.1,
		},
		"<=",
	);

so basically using the same syntax as the original gsap, but using a wrapper that will handle the timeline pool by overriding the gsap.timeline function (or other function that may leave same traces).
you may register it like this
import { defineConfig } from 'astro/config';
import gsap from "astro-gsap/integration";

import { ScrollTrigger } from "gsap/ScrollTrigger";
import { SplitText } from "gsap/SplitText";

// https://astro.build/config
export default defineConfig({
	integrations: [
		gsap({
			plugins: [ScrollTrigger, SplitText],
			options: {},
		}),
	],
});

Then under the hood we override the gsap.timeline function to use pooled timelines
(pseudo code, not working)
import gsap from "gsap";

type Timeline = gsap.core.Timeline;
type TimelineOptions = Omit<gsap.TimelineVars, "paused">;

const pool = new Set<Timeline>();

...

// Override the gsap.timeline function to use pooled timelines
gsap.timeline = (options?: TimelineOptions) => {
	const timeline = useTimeline(options);

	// Wrap the timeline in a proxy to handle recycling automatically when not in use
	const handler = {
		get(target: gsap.core.Timeline, prop: PropertyKey, receiver: unknown) {
			const origMethod = target[prop as keyof gsap.core.Timeline];
			if (typeof origMethod === "function") {
				return (...args: unknown[]) => {
					const result = origMethod.apply(target, args);
					if (!target.isActive() && !pool.has(target)) {
						addToPool(target);
					}
					return result;
				};
			}
			return origMethod;
		},
	};

	return new Proxy(timeline, handler);
};

export default gsap;

At this point the user just have to change one line of code to get it working:
- import gsap from "gsap";
+ import gsap from "astro-gsap";

What do you think and what flaws do you see in this approach?

At this point maybe we could simplify the whole thing by killing the timelines once the page is about to being swapped
import gsap from "gsap";

type Timeline = gsap.core.Timeline;
export const pool = new Set<Timeline>();

function useTimeline(options?: gsap.TimelineVars): Timeline {
	const timeline = gsap.timeline(options);
	// add the timeline to the pool
	pool.add(timeline);
	return timeline;
}

document.addEventListener("astro:before-swap", (ev) => {
	// before swapping with a new page clean all the timeline
	for (const timeline of pool.values()) {
		timeline.kill();
	}
	pool.clear();
});

const customGsap = {
	...gsap,
	timeline: (options?: gsap.TimelineVars) => {
		const timeline: Timeline = useTimeline(options);

		const handler: ProxyHandler<gsap.core.Timeline> = {
			get(
				target: gsap.core.Timeline,
				prop: keyof gsap.core.Timeline,
				receiver: unknown,
			): unknown {
				const origMethod = target[prop];
				if (typeof origMethod === "function") {
					return (...args: unknown[]) => {
						const result = origMethod.apply(target, args);
						return result === target ? receiver : result;
					};
				}
				return origMethod;
			},
		};

		return new Proxy(timeline, handler);
	},
};

// Export the customized gsap module
export default customGsap;

What do you think?

In that case it is no longer a pool right?! It is an Astro-aware timeline.
I don't see the purpose of the proxy. Since Timeline is a normal class it could just be extended and the fluid API would work automatically (return this respects subclassing).
Then our timeline function could just return a new instance of our timeline instead of the default.

You are right, you mean something like this
import gsap from "gsap";

type Timeline = gsap.core.Timeline;
export const pool = new Set<Timeline>();

document.addEventListener("astro:before-swap", (ev) => {
	// before swapping with a new page clean all the timelines
	for (const timeline of pool.values()) {
		timeline.kill();
	}
	pool.clear();
});

class CustomTimeline extends gsap.core.Timeline {
	constructor(vars?: gsap.TimelineVars) {
		super(vars);
		pool.add(this);
	}
}

const customGsap = {
	...gsap,
	Timeline: CustomTimeline,
};

// Export the customized gsap module
export default customGsap;

correct?


Add missing dot at end of sentence in Readme.

[skip ci]

I edited before merging to move the new period out of the Playground link.


[ Installation ] pip installs per default v.1.6.0, issue installing v.1.8.0

When installing fepops with pip install fepops it installs fepops v 1.6.0 which doesn't have the dependencies installed alongside the package.
When I try pip install fepops==1.8.0 I get the following error:
Collecting fepops==1.8.0   Obtaining dependency information for fepops==1.8.0 from https://files.pythonhosted.org/packages/1d/8e/72d2c7698ab11a3363eb3275ee5abdd6ec22ae077aec8c857067f030ba84/fepops-1.8.0-py3-none-any.whl.metadata   Using cached fepops-1.8.0-py3-none-any.whl.metadata (14 kB) INFO: pip is looking at multiple versions of fepops to determine which version is compatible with other requirements. This could take a while. ERROR: Could not find a version that satisfies the requirement rdkit>=2<IP_ADDRESS> (from fepops) (from versions: none) ERROR: No matching distribution found for rdkit>=2<IP_ADDRESS>
Can you reproduce these errors or is this just on my end?

Thanks for raising this issue and taking the time to look at FEPOPS. I think I have figured out what is going on here and will rebuild the package soon to sort out after some testing.
It looks like rdkit 2<IP_ADDRESS> needed to be installed from the pip package rdkit-pypi.  But the official distribution now looks to be just called "rdkit" in pypi which does not include 2<IP_ADDRESS> release.
I will update to an appropriate release and update the requirements after some testing.
Thanks again, and I will post here when completed.

This issue has been fixed in the 1.8.1 release of OpenFEPOPS which has now been uploaded to pypi. The issue was indeed the incorrect "rdkit-pypi" package listed in requirements instead of the new official rdkit package of just "rdkit".
I think this was not picked up in the automated CI testing as that installed the optional "dev" version which had the correct "rdkit" dependency.
Many thanks for bringing this to our attention!

Thank you for getting back to me so quickly, I was now able to successfully install it!


Image not loading fully

I have tried integrating this library but the image is not showing fully. What can be the issue. Please check this screenshot for the screen which i'm receiving after adding this library and when previewing the image https://www.dropbox.com/s/i8vxmsfy8v4wtf5/ImageNotFull.png?dl=0

Sorry to hear you're having issues with the integration. Can you shed some light on what's the expected outcome, it's a bit hard to tell from just the screenshot alone. Is the image off-center, i.e. should it be shifted to the right more? Is it a remote or local image?

Yeah it should show the full image, i.e. it should get shifted to more to the right. It should show the full width of the screen.

Would it be possible for you to share the image and the code used to display it with me?

Image is the default image of the simulator and this is the codelet agrume = Agrume.init(image: image, background: .blurred(.extraLight), dismissal: .withPhysics)                 agrume.show(from: self)

@JanGorman any update on the same ? Is it issue with the frame its setting or is there anything to do with the library itself ?

I tried it with the same image:

That looks fine. Did you try on a bare bones app or is it integrating with an existing one?

Closed for lack of activity


step-cli: 0.27.5 -> 0.28.0

https://github.com/smallstep/cli/releases/tag/v0.28.0
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[x] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

For some reason it breaks with a hash mismatch now. Can you take a look?

https://github.com/NixOS/nixpkgs/pull/355610


Ensure that Application Insights works from a container running the application code

We deploy the code base either as code or container. Make sure that we get telemetry through the application, through the container and into AppInsights

Confirmed that this works in both a code based deployment and a container based deployment:


Using Warp config on WireGuard without <IP_ADDRESS>/0 IP

I use WireGuard on Android, and I imported the Warp config, and it works well. But certain apps and websites say I am using a private proxy, and I find that the problem lies within the Allowed IPsbeing <IP_ADDRESS>/0. The problem is, <IP_ADDRESS>/0 is what allows me to watch YouTube videos with no buffer, any other IP address I tried can't come even close. What can I try to modify to increase receive and transmit speed almost the same way only <IP_ADDRESS>/0can, and at the same time satisfy sites that don't work well with private IPs? The Cloudflare app (when <IP_ADDRESS>, NOT Warp, is enabled) seems to be able to do it.

I don't know what do you mean by "using a private proxy"

I don't know what do you mean by "using a private proxy"

The <IP_ADDRESS>/0 ip is not the ip that websites will see. Website only sees CloudFlare's ip, and the could make a list of CloudFlare Warp ips and block users like this. It is not something that this project can fix, as it has to do with CloudFlare and those websites.


column vector

Lets say that I have two 2-dimensional matrices A and B. And I want to select first column from A matrix and add this column to the all columns of B.
I don't know how to do it. The problem is that when I use A.column() function I will get back row Vector. I would expect column vector here.
Even if I call transpose on this vector it still gives row vector. (So transpose do nothing for vector.)
Is this by design?
Any tips what is the correct way to add vector to all column in 2D matrix?
Thanks in advance.

It could be said to be by design.
On one hand they are not row/column vectors, just 1D vectors. Broadcasting rules make them align with the rows of a 2D array though.
You can reshape a vector of length n to shape (n, 1) for example, to make it truly be a column as a 2d array. Adding the (n, 1) array with a (n, x) array will work like desired.
You could also transpose a view of the big array temporarily, so that the row alignment turns into column alignment. Arguably this is not as simple as it should be:
if column is a 1d array:
*&mut array.view_mut().reversed_axes() += column

The mess with *&mut is because += is only available to “lvalues” in Rust. An alternative is to use the .add_assign method from the AddAssign trait manually, or break it up into several lines.
let mut tarray = array.view_mut().reversed_axes();
tarray += column;

I'm open to your vision, is there an achievable better interface here?

Thanks for the answer :-) I will use reshape.
I just checked numpy and it looks that it behaves the same. It surprise me since I used it a lot and never had this kind of problems. It st somehow easier in Python. But that's because of the language not this library design I think.
And the error messages like (when trying to define range):
the trait `std::convert::From<std::ops::Range<usize>>` is not implemented for `ndarray::Si`

doesn't help :-)
Regarding the design of the API. I like. And I think this is very good and useful library.
Most of the problems I have are related to Rust (I just started to learn it) not to this library.
I think I will use this library a little bit more, learn Rust and then try to give any feedback.


WIP: Implement Cow type for CompactString

Can you please comment if this addition is wanted at all? The prime usecase is serde, which would allow deserialization without copying or allocations is some cases.

This is great! I think a CompactCow type would be useful, what I mainly want to focus on though is the user API. A few questions we should ask ourselves:

Should CompactCow be a separate struct, or should we attempt to add a Clone-on-write functionality to CompactString?
How do we present CompactCow in the documenation?
When borrowing a short string, do we always stay borrowed, or do we copy the data onto the stack?

IMO providing more options to the user is not always the best thing to do. We should aim for an opinionated and (ideally) simpler API
Thanks for the PR :)

I tried to replicate the methods and implemented traits of Cow<'_, str>, so a user familiar with cattle Cows 😉 should find it easy to use CompactCow.

The problem is that borrowing a string means that we have to keep track of its lifetime. But I guess it would be possible to pub type CompactString = CompactCow<'static>, as not to make using CompactString more difficult. I guess CompactString has much more use cases than CompactCow.
I don't think that we need to draw too much attention to it. Maybe a sentence between the "Properties" and "Traits" sections in the documentation. And a reference at the serde implemention might be useful, too.
Right now I inline string if it fits, and borrow it otherwise. I think that is the best implementation, and I'd guess without it there would be no functional difference between CompactCow and Cow<str>.

2/3 of the code are trait implementation. The API of the type itself is small, because you can always call cow.to_mut().xyz(), to call CompactString::xyz(). And Deref gives you access to all methods in str. I am not sure if all the other traits are needed, but Cow has them, so copied them. :)

Should CompactCow be a separate struct, or should we attempt to add a Clone-on-write functionality to CompactString?

IMHO I think CompactCow should definitely be a separate struct.
For clone-on-write functionality, we might as well add a new type CompactStrArc that employs the old behavior (<0.4?) which uses an Arc for large string.
Also, I think compact_str can employ tricts used in beef to provide a CompactCow with the same size as CompactString, or even smaller.

Right now I inline string if it fits, and borrow it otherwise. I think that this is the best implementation, and I'd guess without it there would be no functional difference between CompactCow and Cow.

Cow<str> uses String for owned, CompactCow uses CompactString for owned, that is enough difference for me.
I think using reference might be cheaper there if you is constrained by the lifetime anyway.

But I guess it would be possible to pub type CompactString = CompactCow<'static>,

No please, IMO that will be a nightmare.
Newtype solution is better than alias for this.

I haven't looked at beef. I made CompactCow so that it has the same representation as CompactString. It uses 253 as its last byte to tell if the string is borrowed.
crate::asserts::assert_size_eq!(CompactString, CompactCow, Option<CompactCow>);

I haven't looked at beef. I made CompactCow so that it has the same representation as CompactString. It uses 253 as its last byte to tell if the string is borrowed.

That's good to hear!
I mentioned beef here because I feel it is relevant and it uses some interesting tricks that compact_str might be able to use.

Would it make sense for this struct to be "copy on read" for < 24 byte borrowed strings and "copy on write" otherwise? Essentially caching the bytes on the stack for reads to reduce indirections in read heavy loads that don't end up writing much.

@maboesanman, that's exactly how I implemented it :)
https://github.com/ParkMyCar/compact_str/blob/fde06e5dae3077e4051202d3ce56897740c40a8f/compact_str/src/cow.rs#L103-L118
https://github.com/ParkMyCar/compact_str/blob/fde06e5dae3077e4051202d3ce56897740c40a8f/compact_str/src/cow.rs#L434-L439

Implemented for 'static. Making any 'lifetime usable would still be useful, but the implementation is this PR is not needed anymore.


Pull from DockerHub instead of importing the image [do not merge]

This PR is to test whether travis passes without the conda packages and eliminates the need for a specific amazon S3 image.

@chapmanb, seems like pip-installing the repos directly from github would be a hassle because there's fortran code to compile in there:
https://travis-ci.org/brainstorm/bcbio-nextgen/builds/89748915
So I guess we'll have to do those changes and push a new conda release for bcbio and bcbio-vm?:
The thin PR should be safe to merge: https://github.com/chapmanb/bcbio-nextgen-vm/pull/134
@guillermo-carrasco

I was now looking into rebuilding the bcbio and bcbio-vm conda packages, but I cannot find them on the bioconda channel: https://github.com/chapmanb/bioconda-recipes
But I can find them over here:
https://conda.anaconda.org/bcbio
Can you shoot me some pointer(s) on how to rebuild those two? Thanks!

Roman -- sorry for the delay in merging and updating the conda repositories. These are not yet migrated over to bioconda. We're working on doing that slowly but have a lot of dependencies in bcbio-conda and homebrew that need migration work. It should now be up to date with your fixes to pull from Docker hub. Hope this works for you.

It worked, all green with the image from dockerhub:
https://travis-ci.org/brainstorm/bcbio-nextgen/builds/89979269
Thanks @chapmanb!


Async implementation of LLamaExecutors

Description
I am developing WPF application that uses LLamaSharp library and particulary LLama Executores (like InstructExecutor and InteractiveExecutor).
I expect that code
await foreach (var text in executor.InferAsync(prompt, _inferenceParams))
{
    currentResult.Content += text;
}

doesn't block my UI thread. However, UI freezes.
Looks, that this happens, because InferAsync awaits InferInternal(inferenceParams, args) method. And InferInternal implementations in InstructExecutor and InteractiveExecutor classes are synchronous.
As an experiment I changed the var (result, _) = Context.NativeHandle.Decode(_embeds, LLamaSeqId.Zero, batch, ref _pastTokensCount); line in InstructExecutor to var (result, _) = await Task.Run(() => Context.NativeHandle.Decode(_embeds, LLamaSeqId.Zero, batch, ref _pastTokensCount)); and this solved the issue.
Do you have any plans to add Async implementations for all methods that are awaited by StatefulExecutorBase in all inhereted executors?

There is a DecodeAsync method in the LlamaContext which should be a "drop in" replacement for Decode in an async context. Would you be interested in putting together a PR updating the three executors (Interact, Instruct and Stateless) to use this?

Yes, I'll do


Can't clear/null/disable Date/Time label attributes (it is Mandatory for Symbols)

It doesn't let me draw symbols with a blank date/time field. the boxes come up as red:

Does every symbol need to be time stamped like this? @csmoore @tlauver

With some effort (deleting each DTG character individually) this is now nullable but @tlauver is going to check if he can make null the default to make this easier on the user

It would be nice if you had a choice - in some cases it makes sense to set it to null by default, but in others it might be more useful to set it to the current datetime.

Verified in #69


CBD-5234: Naming change for couchbase-lite-c .tar.gz packages

Final deliverable packages should be named just "linux-$ARCH".
The scripts and linux-package-config.json file now differentiate:

build_os - the OS to cross-compile for, per architecture
target_osname - the OS name to use in deliverables (linux-$ARCH)
target_debs - OS distributions to create specific .debs for

Result of a full build with this change: http://latestbuilds.service.couchbase.com/builds/latestbuilds/couchbase-lite-c/3.1.0/50548/
(ignore the missing enterprise files - that's caused by a bug in the toy-manifest-build job that I've now corrected)


Xbee: Update input pins on IS command response

A little refactoring: make cluster classes non-internal for clarity and move types to a separate file.
Also, update the input pin states on IS (sample report request) command response.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

137 of 148 (92.57%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.08%) to 82.768%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

zhaquirks/xbee/init.py
51
54
94.44%

zhaquirks/xbee/types.py
86
94
91.49%

Totals

Change from base Build<PHONE_NUMBER>:
0.08%

Covered Lines:
6340

Relevant Lines:
7660

💛  - Coveralls

Codecov Report
Base: 82.68% // Head: 82.76% // Increases project coverage by +0.08% :tada:

Coverage data is based on head (60b6a0f) compared to base (59c098d).
Patch coverage: 92.56% of modified lines in pull request are covered.

:exclamation: Current head 60b6a0f differs from pull request most recent head dd4f5a3. Consider uploading reports for the commit dd4f5a3 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #1919      +/-   ##
==========================================
+ Coverage   82.68%   82.76%   +0.08%
==========================================
  Files         245      246       +1
  Lines        7647     7660      +13
==========================================
+ Hits         6323     6340      +17
+ Misses       1324     1320       -4

Impacted Files
Coverage Δ

zhaquirks/xbee/types.py
91.48% <91.48%> (ø)

zhaquirks/xbee/__init__.py
95.04% <94.44%> (+1.76%)
:arrow_up:

zhaquirks/xbee/xbee_io.py
100.00% <0.00%> (+33.33%)
:arrow_up:

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

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

Ok, I've decided to separate the refactoring and the new functionality into two separate PRs.
This is for the refactoring only, no new functionality.


Article list - add "show more" and "pagination"

Motivation: Article lists as can be seen here: https://main--hlx-test--urfuwo.hlx.page/topics/sustainability are too long.
Add the show more and pagination feature to article lists
Spec (given for "L3 Content Lists"):
"Guidance - Max show 10 items, if more

show "Pagination end and start numbers" when more than 2 pages [= more than 20 entries]
if less [than 20 entries] use "Show More" button
"

If the list has <= 10 entries, show as-is
If the list has between 11 and 20 entries, display 10 entries and add a "Show more" button to display the other 10 entries
If the list has more than 20 elements, introduce a pagination element (https://sap.frontify.com/document/223142#/-/pagination)
Designs:

Pagination design example: https://www.figma.com/file/oSetT4LbatRmXlcB2A7V8Z/Content-Hubs-2024?type=design&node-id=3711-77434&mode=design&t=WnN5dSMCGcKMOnJm-4
Pagination spec (Frontify): https://sap.frontify.com/document/223142#/-/pagination
Show more button: See screenshot here: https://adobe-dx-support.slack.com/archives/C06H8UNQ3RS/p1709918070130749?thread_ts=1709906002.848059&cid=C06H8UNQ3RS (Should read "Show more")

Note: Content Lists already have a "Show More" feature

@pahupe - how does this relate to #199 ? can we close #199 in favor of this then?
@sanmishr - are you working on this? if yes, please set to "in progress", if not, please unassign.

@benpeter  to effectively work on this ticket this ticket need to be updated with more info . Hence it is still in Ready for development state .

We should first discuss the usage of Web Components for Resource Center.


TA Meeting - October 28th, 2024

Purpose of Meeting
Informal VnV Plan Demo
Date and Time
October 28th, 2024 - 3:30 pm
Attendance

[x] Adam Podolak
[x] Austin Bennett
[x] Christian Petricca
[x] Evan Sturmey
[x] Jacob Kish

Questions to Ask

Are we supposed to omit section 5 for now, until the design phase?
What should we do for 3.1? "Each person's role for the project verification?"
Clarify 3.4? VnV Verication plan, is it as dumb as "review plan"

3.4: checklist for peer review, and implement what they say

IMPORTANT mention that we will be filling in 5 later, something about test data / sample inputs in the appendix


Remove extraneous C# TODOs

Removes TODOs for parameters where functions take none.

Resolves one of the issues in #313

LGTM


Update Statiq.Web to 1.0.0-beta.34

Updates Statiq.Web to 1.0.0-beta.34

@pascalberger your changes have been merged, thanks for your contribution 👍


Play leader board

First thing, PLEASE READ THIS: ReactPlay Code Review Checklist

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Type of change
Please delete options that are not relevant.

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

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Checklist:

[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

Screenshots or example output

@NagarjunShroff Build also fails due to linting error.
So,
A) You need to take from the main and then run the linter locally before pushing
B) Create a fresh branch from react play main, migrate changes, run link and create a fresh PR
Please do whenever you can.

Created new PR hence closing this one.


Fix hardcoded config overrides

Very nice and useful plugin! I love how clean it is to use :grin:
I did discover that the config entries for window extents and status icons are ignored in favor of hard-coded values though.
This PR should hopefully address that in an acceptable fashion :slightly_smiling_face:

heyy, thank you for your contribution.
please, can you update the config.lua with new configurations? also update the default config com README?

config.lua already has these defaults set, and your README also states this - they just aren't applied anywhere.
In the plugin's current state, these advertised overridable configuration parameters do nothing.


Lazy loading does not work with dynamic image URLs

Checks

[X] Not a duplicate.
[X] Not a question, feature request, or anything other than a bug report directly related to Vue Splide. Use Discussions for these topics: https://github.com/Splidejs/splide/discussions

Version
0.6.12
Description
When i use dynamic images in Vue 3 / Vite project
<Splide :options="spliderOptions" aria-label="Providers">
    <SplideSlide v-for="provider in casinoStore.providers.value" :key="provider.id">
      <div class="provider" :title="provider.name" @click="filterByProvider(provider)">
        <img
          :data-splide-lazy="`/assets/images/providers/${provider.slug}.png`"
          class="image"
        >
      </div>
    </SplideSlide>
  </Splide>

all data-splide-lazy attributes are converted to src on the mount
With
data-splide-lazy="/assets/images/providers/someImg.png"
lazy-loading works fine
Reproduction Link
No response
Steps to Reproduce

Use the code abouve with binding of image url's...

Expected Behaviour
Lazy loading should work with binded data-splide-lazy attribute

I think this bug is important, because causes to forze the browser to load ALL big images of the gallery at same time.


two encoders get no data

My request is use two different quantity encoders ,one is for stream（and OffScreenGlThread preview），another is for recording.  In my code I prepared two encoders before opencamera（before preview）, start preview and start a thread to repeat the recorder, startrecord and stoprecord after 1 minutes and then continue startrecord.  Streaming works fine and record for first time works fine, but when after first stoprecord, the next startrecord get no data, also can save the file but it's size was 14B. I found that question was the next startrecord not trigger onVideoFormat/getVideoData  method.
I know in this lib, use mediacodec setCallback to trigger these two method.  Although my code has setCallback, configure,start for the codec. This cost me much time, so I need your help to know what's the keypoint to trigger these callbck.
protected VideoEncoder videoEncoderStream;
protected VideoEncoder videoEncoderRecord;

videoEncoderRecord = new VideoEncoder(new GetVideoData(){

      @Override
      public void onSpsPpsVps(ByteBuffer sps, ByteBuffer pps, ByteBuffer vps) {
        Log.d(TAG,"videoEncoderRecord onSpsPpsVps");
      }

      @Override
      public void getVideoData(ByteBuffer h264Buffer, MediaCodec.BufferInfo info) {
        Log.d(TAG,"videoEncoderRecord getVideoData");
        recordController.recordVideo(h264Buffer, info);
      }

      @Override
      public void onVideoFormat(MediaFormat mediaFormat) {
        Log.d(TAG,"videoEncoderRecord onVideoFormat");
        recordController.setVideoFormat(mediaFormat, !audioInitializedRecord);
      }

    });

public boolean prepareVideoStream(int width, int height, int fps, int bitrate, int iFrameInterval,
                                    int rotation) {
    Log.e(TAG,"prepareVideo:"+width+","+height);
    if(isOnPreview()&&(width != previewWidth || height != previewHeight)){
      stopPreview();
    }
    isStreamPrepared =  videoEncoderStream.prepareVideoEncoder(width, height, fps, bitrate, rotation, iFrameInterval,
            FormatVideoEncoder.SURFACE, -1, -1);
    return isStreamPrepared;
  }

  public boolean prepareVideoRecord(int width, int height, int fps,  int bitrate, int iFrameInterval,
                                    int rotation) {

    isRecordPrepared = videoEncoderRecord.prepareVideoEncoder(width, height, fps, bitrate, rotation, iFrameInterval,
            FormatVideoEncoder.SURFACE, -1, -1);

    return isRecordPrepared;
  }

public void startRecord(@NonNull String path, @Nullable RecordController.Listener listener)
          throws IOException {
    if(!videoEncoderRecord.isRunning()){
      recordController.startRecord(path, listener);
      startEncoderRecord();
    }else{
      recordController.startRecord(path, listener);
    }
  }

private void startEncoderRecord() {
    videoEncoderRecord.start();
    if (audioInitializedRecord) {
      audioEncoderRecord.start();
    }
    if (audioInitializedRecord&&!microphoneManager.isRunning()){
      microphoneManager.start();
    }
  }

public void stopRecord() {
    recordController.stopRecord();
    recordController.resetFormats();
  }

My request is only opening camera once but record repeat every minutes.

I found that it doesn't trigger getVideoData after startrecord few seconds but not after stoprecord，it is auto stop getVideoData when nothing is stop.

Hello,
Your code looks good but I'm not sure the error. First of all because I don't know how are you rendering VideoEncoder surface.
Maybe you can use this issue as a guide:
https://github.com/pedroSG94/rtmp-rtsp-stream-client-java/issues/284


Dialog actions issue

Hi.
Thank you for your update and I've just updated my code as your guide.
But now, I've a problem with actions.
This is the code that I've changed.
        <Dialog
                visible={ this.state.dialog_show }
                dialogAnimation={ new ScaleAnimation(0) }
                width={ 0.8 } height={ 0.25 }
                overlayPointerEvents='none'
                dialogTitle={<DialogTitle title={ this.state.dialog_title } />}
                actions={[
                    <DialogButton
                        key="button-1"
                        textStyle={{ fontSize: 13, color: '#000' }}
                        text="CANCEL"
                        onPress={() => {
                            this.setState({ dialog_show: false });
                        }}
                    />,
                    <DialogButton
                        key="button-2"
                        textStyle={{ fontSize: 13, color: '#000' }}
                        text="OK"
                        onPress={() => {
                            this.setState({ dialog_show: false });
                        }}
                    />
                ]}>

Also this is the warning from app that is showed up when I show the dialog.

So please help me with this.
This is so urgent problem.
Great regards.

From the warning, it saying you passing array of object to. But, it expected array of DialogButton
But your code seems fine. Maybe try rebuild/rebundle?

Thanks for your reply.
But there's still warning.
And I've just tried to run the example from the library.
But it says same.
I think if the example is correct, there's problem in updated version.
I may be wrong...
Anyway, do you have any other suggestion?

Hi @colinkong0406 Sorry about that. I've fixed it in v0.16.1

👍
Really appreciate that!!!
It works!!!
Thank you very much.


Contact force behaviour changes upgrading from 0.11.2 to 0.12.0

In the process of updating @react-three/rapier from @dimforge/rapier3d-compat 0.11.2 to 0.12.0 we've noticed a difference in contact force behaviour.
Below is a minimal reproduction. Between 0.11.2 and 0.12.0 we get very different contact force values with default world integration parameters. When we set world.numSolverIterations = 1 in 0.12.0, the behaviour returns to what we get from 0.11.2 defaults.
I'm looking to understand if this is intended behaviour.
import Rapier from '@dimforge/rapier3d-compat'

await Rapier.init()

const gravity = new Rapier.Vector3(0.0, -9.81, 0.0)

const world = new Rapier.World(gravity)

const floor = world.createRigidBody(Rapier.RigidBodyDesc.fixed())
world.createCollider(Rapier.ColliderDesc.cuboid(10, 1, 10), floor)

const ball = world.createRigidBody(Rapier.RigidBodyDesc.dynamic())
ball.setTranslation(new Rapier.Vector3(0, 5, 0), true)
ball.setLinvel(new Rapier.Vector3(0, -1, 0), true)
const ballColliderDesc = Rapier.ColliderDesc.ball(1)
ballColliderDesc.setRestitution(1)
ballColliderDesc.setActiveEvents(Rapier.ActiveEvents.CONTACT_FORCE_EVENTS)
world.createCollider(ballColliderDesc, ball)

const eventQueue = new Rapier.EventQueue(false)

let time = 0
setInterval(() => {
  time += 1 / 60

  world.step(eventQueue)

  eventQueue.drainContactForceEvents((event) => {
    console.log('contact force event - totalForce', event.totalForce())
  })
}, 1000 / 60)

//<EMAIL_ADDRESS>contact force event - totalForce iA {
  x: 0,
  y: 2945.241943359375,
  z: 0,
}

//<EMAIL_ADDRESS>with numSolverIterations = 4 (default)
contact force event - totalForce GA {
  x: 0,
  y: 10.27295970916748,
  z: 0,
}

//<EMAIL_ADDRESS>with numSolverIterations = 1
contact force event - totalForce GA {
  x: 0,
  y: 2945.2421875,
  z: 0,
}

I'm also seeing the same, where I see collision events for many steps before I see a contact force event.  Setting numSolverIterations to 1 is the only way to make sure I see contact force events when I expect to.

This is a bug. The new solver runs multiple sub-steps for calculating forces, and the reported impulses don’t account for all the substeps.

This will be fixed by https://github.com/dimforge/rapier/pull/607


Firefox html5 sizing error

The new htlml5 player for firefox was just rolled out on youtube, phasing out flash. It's great, except youtube center isn't resizing it properly The issue is pretty clear from the screenshot, good luck solving it.

This issue has already been fixed a long time ago in the developer version, you can download it from here: https://github.com/YePpHa/YouTubeCenter/wiki/Developer-Version

oh, duh, thank you.


Challenged In Making A Master-Detail Application

Hello.
I am doing a master-detail kind of application. To test how I am going to go about it, I have started with 3 simple views.

Table.fxml : showing a list of topics and their description. [This I have successfully done.] as you can see:

Form.fxm: does the CRUD operations on the Topics data. [This also I have successfully done as a stand alone] as you can see:

Main.fxml: Is supposed to house both Table.fxml and Form.fxml. As shown in the figure below:

I have defined TopicViewBean.java like this:
`
@DolphinBean
public class TopicViewBean {
private Property bean;
 public Property<TopicBean> beanProperty() {
        return bean;
    }

    public TopicBean getBean() {
        return bean.get();
    }

    public void setBean(TopicBean bean) {
        this.bean.set(bean);
    }

private Property<TopicListBean> listBean;

 public Property<TopicListBean> listBeanProperty() {
        return listBean;
    }

    public TopicListBean getListBean() {
        return listBean.get();
    }

    public void setListBean(TopicListBean listBean) {
        this.listBean.set(listBean);
    }

}
My challenge is with defining TopicBinder.java and TopicController.java to ensure that the Table           part and the Form part of my MainView work as they did when they where still standing alone.  Here is my TopicView.fxml:

<fx:include fx:id="table" source="TableView.fxml" />

<fx:include fx:id="form" source="FormView.fxml" />

`
Thank you.

I read somewhere that i could use  the Dolphin Platform event bus but I am not so sure how to do this. Could someone help out please? Thank you.

please see #404 for an Master-Detail Example. This is not implemented using the event bus because for Master-Detail-Views the Eventbus is not required.

Thanks Timo0. Let me look at that.

Hello timo0.
I used the example provided at #404 to be able to fetch data from the DB and update a javaFX TableView (in a separate scene, call it Table.fxml) and also to update database data from JavaFX of the form controls (in another scene call it Form.fxml). My challenge is not in the CRUD aspect of the app but rather in ensuring that I combine both the Table.fxml and Form.fxml into View.fxml and attain the same functionality I did with using Table.fxml and Form.fxml independently. I realize that #404 deals with the CRUD aspect only.

Hi @jermsam,
this is not an DP related topic. Please use other sources (like http://stackoverflow.com/questions/29256848/javafx-include-fxml-in-fxml-without-controller).

Ok. timo0. Thanks for the hint. Let me try that source.

Hi @jermsam ,
as far as I understand you both views (master & detail) are running fine with Dolphin Platform. Now you want to combine them and create an application where you can open the detail view from the master view, right?

Yes @hendrkebbers

You see, I am learning how I can combine Dolphin functionality with DataFX functionality.

My target is to be able to create a TableView that is updated through JavaFX formcontrols but when you click twice on the TableView rows, you are redirected to a Scene that shows the details of the data in the clicked row.
i.e:If I was using Spring exclusively;
For Example
My REST http address would be: http://localhost:8080/topics/someTopic/lessons
now in my table.fxml, I have topics data like id,name,description
in my form.fxml, I can do CRUD operations on topics data. e.g when I click on table.fxml row, my form controls receive that data and I can edit it
NOW
when I double click on table.fxml row that describes a topic whose id is "someTopic", I should be redirected to a scene showing lessons specific to "someTopic".
I believe that once I achieve that, I would have mastered the Master-Detail case with Dolphin and DataFX. Thank you.

@timo0 I looked at the link you refered me to and it sort of addresses something else other than what I wanted. i can do a master-detail application without dolphin but with the plain javafx but I am finding a problem having my two views above to communicate with each other when combined in a single view. @hendrikebbers  understood my concern i think.

@hendrikebbers , i tried achieving the solution by using a combination of DataFX's flow API and Dolphin platform. The challenge I am finding however is that, the two reference the scene differently:
With  DataFX, the main method would be something like:
`
public class Main extends Application {
@Override
public void start(Stage primaryStage) throws FlowException {
Flow flow  = new Flow(MainController.class);
FlowHandler flowHandler = flow.createHandler();
StackPane pane = flowHandler.start(new DefaultFlowContainer());
primaryStage.setScene(new Scene(pane));
primaryStage.show();
}

public static void main(String[] args) {
	launch(args);
}

}
`
while with dolphin it has to be:
`
public class Main extends DolphinPlatformApplication {
@Override
protected URL getServerEndpoint() throws MalformedURLException {
    return new URL("http://localhost:8080/dolphin");
}

@Override
protected void start(Stage primaryStage, ClientContext clientContext) throws Exception {
    MainViewBinder view = new MainViewBinder(clientContext);
    Scene scene = new Scene(view.getParent());
    primaryStage.setScene(scene);
    primaryStage.show();
}

public static void main(String... args) {
    launch(args);
}

}
`
Now I can't figure out how to combine these two notions. When I do, I believe I will be good to go. Can someone help me out please?

Hey @Jermsam, you can try this:
<  public class ClientApplication extends Application {
private static ClientContext clientContext;
@Override
public void init() throws Exception {
ClientConfiguration config=
new JavaFXConfiguration(new URL("http://localhost:8080/dolphin"));
clientContext=ClientContextFactory.connect(config).get();
}
@Override
public void start(Stage primaryStage) throws Exception {

	URL url =ClientApplication.class.getResource("view/view.fxml");
	FXMLLoader loader= new FXMLLoader(url);
	MyView viewController=new MyView(clientContext);
	loader.setController(viewController);
	StackPane stackPaneMaster=loader.load();
	Scene scene = new Scene(stackPaneMaster);
    primaryStage.setScene(scene);
    primaryStage.show();
}

public static void main(String... args) {
    launch(args);
}
public static ClientContext getClientContext() {
	return clientContext;
}

} >

"but you need to ensure that your binder class extend AbstractViewBinder instead of AbstractFXMLViewBinder"

"when you do this, you can use the conventional navigation techniques for JavaFx navigation. Now about using it with dataFX ask @HendrickEbbers"


Add LightningAuditItemKeys and db compaction

Fixes #2605
The associated issue shows calculating an audit takes a long time on alpha.fedi.xyz (> 8s!). This PR improves the time it takes to run an audit by

Adding a separate key LightningAuditItemKey that associates an Incoming/Outgoing contract to an outstanding Amount
Compacting (removing) the audit key once the associated contract reaches a terminal state

Benchmarks
The benchmarks use devimint and run ~1 hour worth of iterations where an iteration consists of completing incoming and outgoing payments using both the CLN and LND gateways.
Benchmarks were calculated in the branch https://github.com/bradleystachurski/fedimint/tree/audit-benchmark and can be replicated by checking out the appropriate commit (baseline or including changes) and running
./scripts/tests/audit-benchmark.sh

Baseline

We can clearly observe the time it takes to complete an audit grows linearly as we increase the amount of contracts we need to query while running an audit.
Using Audit Keys and Compaction

Running the benchmark using the changes in this PR, we observe constant time to run an audit regardless of the growth in total contracts.

What does DB compaction mean in this context? LSM trees/RocksDB does DB compaction but I suspect that's not what you're referring to...

What does DB compaction mean in this context? LSM trees/RocksDB does DB compaction but I suspect that's not what you're referring to...

Good question! Your hunch is correct, I'm using the term slightly different. Compaction in this context refers to removing keys that are no longer relevant for calculating an audit. When an incoming/outgoing contract reaches a terminal state, we no longer need to query the db for the associated amount, so this PR adds a new key specific to ln audits and removes the unnecessary keys.
Let me know if you think there's a better term to use that doesn't clash with existing concepts. I was leaning on the wikipedia definition

In telecommunication, data compaction is the reduction of the number of data elements, bandwidth, cost, and time for the generation, transmission, and storage of data without loss of information by eliminating unnecessary redundancy, removing irrelevancy, or using special coding.

I'll have an updated PR description a bit later today once I make some benchmark graphs 😄

LGTM as well, agree with Eric that the compaction shouldn't happen on a separate thread since the commit could trigger transaction failures due to the write-write conflict.
Is the audit benchmark something that we can add to the tests and run during CI? That would ensure we don't regress this logic in the future (love the graphs).

Thanks everyone for the quick reviews! I should be able to address feedback this weekend. Wanted to prioritize some of the issues with the audit RPC (PR).

Is the audit benchmark something that we can add to the tests and run during CI? That would ensure we don't regress this logic in the future

I've been chewing on this and it's not immediately obvious how to add a benchmark test to CI that will complete fast enough (the benchmarks took ~1 hour locally), have enough data points for a statistically significant regression, and doesn't trigger false failures due to CI flakiness (https://github.com/fedimint/fedimint/issues/3107 amongst others).
I think it might be best to focus efforts on improving the performance of de/serialization then adding benchmark tests to ensure that remains a fast operation. We should be able to de/serialize a large set of contracts (~10,000?) fairly fast in CI and make sure the time of the round trip stays under a limit.
I'm open to suggestions if anyone has thoughts on other approaches.


Update get_session() to allow using only profile_name and no access/secret keys

We use credstash on our Jenkins workers. The workers use Role based authentication, we have only a ~/.aws/config file, no credentials. When we upgraded to v1.16.2 we started seeing errors:
An error occurred (AccessDeniedException) when calling the Query operation: User: arn:aws:sts::111111111:assumed-role/RoleNameOfDefaultProfile/botocore-session-333333333 is not authorized to perform: dynamodb:Query on resource: arn:aws:dynamodb:us-east-1:111111111:table/secret-credential-store
credstash was not using the profile we passed in with the -p parameter.  After debugging, I discovered it was because boto3.Session() was being called with no parameters and therefore defaulted to the "default" profile.

Hey @mike-luminal, I don't see a way to add reviewers to a PR but I noticed you were active on some other recent PRs.  Do you need anything else from me for this PR?

Hey @mike-luminal, I don't see a way to add reviewers to a PR but I noticed you were active on some other recent PRs. Do you need anything else from me for this PR?
Hey @eisjcormier, nope, this is good. I will take a look on the weekend. Thanks for your contribution!

Cool. Thanks man!


optimize pixel_equal_no_alpha

shadow server got a huge performance penalty if the color format is not the same as the one being encoded.
optimizing the comparison function pixel_equal_no_alpha for the most common use cases might help here.
https://github.com/FreeRDP/FreeRDP/commit/938e1ca2f17cf6f63ea6ca9ac9ef010a0a47c60e#commitcomment-143589036

might be a good idea to create a new primitive:

Take in 2 images (with format, dimensions, stride, ...)
return a list of rectangles that changed
maybe adjustable base block size (16x16 or 32x32?)
create optimized versions for most common formats (24bpp and 32bpp)


feat: improve observability

On this first improvement of observability we aim to add OBS on:

Batcher

[ ] Received Proofs -> Counter
[ ] Qty of proofs on queue -> Gauge
[ ] Created Tasks -> Counter
[ ] Last Batch Size -> Gauge
[ ] Open connections -> Gauge

Aggregator

[x] Task responses -> Counter
[ ] Received Tasks -> Counter

Open telemetry has a rust sdk https://github.com/open-telemetry/opentelemetry-rust. It directly integrates into the tokio's tracing_suscriber crate. Here is a tutorial integrating it with jaeger https://tokio.rs/tokio/topics/tracing-next-steps. There is also an example here: https://github.com/open-telemetry/opentelemetry-rust/tree/main/examples/tracing-jaeger.


AdminUI doesn't access to endpoint

Need Help to configurate JP Project Light Install

I'm trying to connect my IdentityServer4 project with the Light Admin UI and I faced some issues in order to access to the end points that solution provides.

On the other hand the JPProject.Admin.Api doesn't provide the whole controller that are visualized in the front end part, in others words the front end present 6 options to be used and the light backend only implement 4.

The error faced is
Steps to reproduce the behavior:

Access to the Admin portal
Click on Clients option
In the JPProject.Admin.Api console appears this:

[12:45:42 INF] Request starting HTTP/2 OPTIONS https://localhost:5103/clients
[12:45:42 INF] CORS policy execution successful.
[12:45:42 INF] Request finished in 47.9461ms 204
[12:45:42 INF] Request starting HTTP/2 GET https://localhost:5103/clients
[12:45:42 INF] CORS policy execution successful.
[12:45:42 INF] Successfully validated the token.
[12:45:42 DBG] AuthenticationScheme: Bearer was successfully authenticated.
[12:45:42 INF] Authorization was successful.
[12:45:42 INF] Executing endpoint 'JPProject.Admin.Api.Controllers.ClientsController.ListClients (JPProject.Admin.Api)'
[12:45:42 INF] Route matched with {action = "ListClients", controller = "Clients"}. Executing controller action with signature System.Threading.Tasks.Task1[Microsoft.AspNetCore.Mvc.ActionResult1[System.Collections.Generic.IEnumerable1[JPProject.Admin.Application.ViewModels.ClientsViewModels.ClientListViewModel]]] ListClients() on controller JPProject.Admin.Api.Controllers.ClientsController (JPProject.Admin.Api). [12:45:42 INF] Executed action JPProject.Admin.Api.Controllers.ClientsController.ListClients (JPProject.Admin.Api) in 4.1798ms [12:45:42 INF] Executed endpoint 'JPProject.Admin.Api.Controllers.ClientsController.ListClients (JPProject.Admin.Api)' [12:45:43 ERR] An unhandled exception has occurred while executing the request. System.InvalidOperationException: Unable to resolve service for type 'MediatR.INotificationHandler1[JPProject.Domain.Core.Notifications.DomainNotification]' while attempting to activate 'JPProject.Admin.Api.Controllers.ClientsController'.
at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.GetService(IServiceProvider sp, Type type, Type requiredBy, Boolean isDefaultParameterRequired)
at lambda_method(Closure , IServiceProvider , Object[] )
at Microsoft.AspNetCore.Mvc.Controllers.ControllerActivatorProvider.<>c__DisplayClass4_0.b__0(ControllerContext controllerContext)
at Microsoft.AspNetCore.Mvc.Controllers.ControllerFactoryProvider.<>c__DisplayClass5_0.g__CreateController|0(ControllerContext controllerContext)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|19_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Logged|17_1(ResourceInvoker invoker)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
at Hellang.Middleware.ProblemDetails.ProblemDetailsMiddleware.Invoke(HttpContext context)
[12:45:43 INF] Executing ObjectResult, writing value of type 'Hellang.Middleware.ProblemDetails.DeveloperProblemDetails'.
[12:45:43 INF] Request finished in 313.6046ms 500 application/problem+json; charset=utf-8

Additional consideration
If you need some configuration I made please let me know in order to add it
Hope you can help me.
Thanks
Leo

Hi @leonardoheis,

On the other hand the JPProject.Admin.Api doesn't provide the whole controller that are visualized in the front end part, in others words the front end present 6 options to be used and the light backend only implement 4.

I've classified it in two versions, Light, which you are using, and full.
In API of Light version there are only endpoints to make changes to IdentityServer4 Database. Therefore, there are 6 endpoints in Admin-ui, but only 4 at API.
The others features are strict related to ASP.NET Identity, you can develop it, or get the Full version (SSO), them this endpoints will be available.

I'm trying to connect my IdentityServer4 project with the Light Admin UI and I faced some issues in order to access to the end points that solution provides.

After a few tests, setup some environments, I guess that got it. I'll make a PR asap

plz check again.


edited html file

📝 Description
Please include a summary of the change and which issue is fixed.
🔧 Fixes #(issue)

📷 Provide related Screenshot/Gifs if any.

[x] I have performed a self-review of my own code.
[x] I'm a contributor in Hacktoberfest'21.

this will not count as a contribution to this project, make sure to create a valid and some logical PR


Authentication/Authorization is not enabled but Keys feature was still disbled

Environment URL:
functions-next.azure.com
Corresbonding Ibiza URL:
ms.portal.azure.com/?feature.canmodifystamps=true&BizTalkExtension=canary&WebsitesExtension=canary&feature.fastmanifest=false&appsvc.env=next
Currently no matter the Authentication/Authorization feature is enabled or not, Keys feature is always disabled. Please refer to snapshot.

Repro steps:

Create a new function app and a new function.
Go to Platform features tab -> Authentication/Authorization
Verify the App Service Authentication state is set to OFF.
Go to Settings tab of the function app.
Verify Keys section was disabled, with a prompt says "The Keys feature is not available because Authentication/Authorization is enabled for this Function App."

I'm taking this one since I'm already changing code around there.

I am having the same issue with the same repo steps, but it seems like the issue have been closed?


Araxiel's Design Document Implementation

I, @Araxiel, have been concentrating all my thoughts and planning into a single, comprehensive design document
https://docs.google.com/document/d/14sL4canRzeXn4Wbh26U-xIcNEXsSqm49Udt9bI13hZM/edit?usp=sharing
For now, while I'm still a one-person project, this document is the central and only pillar of design.
My current job is to over time extend the Design Document, and and then implement those design ideas.

The accidental force push of #77 messed up everything. There's still so much to do.


ttlSecondsAfterFinished not working

Is this a BUG REPORT or FEATURE REQUEST?:
BUG
What happened:
argo submit -n staging https://raw.githubusercontent.com/argoproj/argo/master/examples/gc-ttl.yaml does not delete the workflow and associated pods after 10 seconds
What you expected to happen:
Workflow and pods should be deleted after 10 seconds.
How to reproduce it (as minimally and precisely as possible):
argo submit -n staging https://raw.githubusercontent.com/argoproj/argo/master/examples/gc-ttl.yaml
Anything else we need to know?:
Environment:

Argo version:

$ argo version
argo: v2.2.0
  BuildDate: 2018-08-30T08:51:40Z
  GitCommit: af636ddd8455660f307d835814d3112b90815dfd
  GitTreeState: clean
  GitTag: v2.2.0
  GoVersion: go1.10.3
  Compiler: gc
  Platform: darwin/amd64

Kubernetes version :

$ kubectl version -o yaml
clientVersion:
  buildDate: 2018-06-27T22:29:25Z
  compiler: gc
  gitCommit: 91e7b4fd31fcd3d5f436da26c980becec37ceefe
  gitTreeState: clean
  gitVersion: v1.11.0
  goVersion: go1.10.3
  major: "1"
  minor: "11"
  platform: darwin/amd64
serverVersion:
  buildDate: 2018-08-02T23:42:40Z
  compiler: gc
  gitCommit: 9b635efce81582e1da13b35a7aa539c0ccb32987
  gitTreeState: clean
  gitVersion: v1.9.7-gke.5
  goVersion: go1.9.3b4
  major: "1"
  minor: 9+
  platform: linux/amd64

Other debugging information (if applicable):

workflow result:

$ argo get -n staging gc-ttl-vg2g7
Name:                gc-ttl-vg2g7
Namespace:           staging
ServiceAccount:      default
Status:              Succeeded
Created:             Mon Oct 15 14:58:08 +0800 (4 minutes ago)
Started:             Mon Oct 15 14:58:09 +0800 (4 minutes ago)
Finished:            Mon Oct 15 14:58:21 +0800 (3 minutes ago)
Duration:            12 seconds

STEP             PODNAME       DURATION  MESSAGE
 ✔ gc-ttl-vg2g7  gc-ttl-vg2g7  12s

This was because the manifests were not updated correctly to include delete permission in the RBAC. See issue #1004 for how to edit the role with the proper permissions. Also the new manifests have been updated to include this verb.

Indeed! Works perfectly, thanks!


question: can I have FB and twitter callbacks on client side?

I know it is considered less secure - but can I somehow have a client side function do the login and get the token in order to get basic user info?
(specifically facebook and twitter)

Facebook yes, Twitter no. https://github.com/sahat/satellizer/issues/143
It's  not that it's less secure, but requires additional verification on the server-side if you are going to store that data in your database eventually. Say you do an implicit grant flow and obtain access token on the client-side. Sure, you can query Facebook API to get basic user info, but when you are going to do a POST request to your server with that data  how do you know if that is real user info or a malicious user forged the user information and it's not actually from Facebook.com. Just keep that in mind.
If all you need is Facebook and you only want to get basic user info on the client-side you may be better of with Facebook JavaScript SDK. Twitter uses OAuth 1.0 so it's not possible to do an entire flow on the client-side.

Yeah... That's why I said it is less secure. Well, my current API server doesn't have OAuth implementation, but I'm guessing I have no choice (it is an old PHP code I'm trying to get around, but I can have those endpoints in the server that servers the angular)
Thanks!


Fix nested tables in table arrays

Fix parsing nested tables within table arrays so their keys are applied
to the last element, not the array itself.
Add a test that ensures nested tables in arrays produces the proper
output.
Fixes #20.

The check that's failing is the crlf test, tracked by #17.

@jonstoler Let me know if you'd like me to do the version bump and new rockspec, too.


lambda function for howto returns error on invocation

When following the setup/install instructions as is, the lambda function created returns an error on invocation.
When I instead choose to use the Blueprint setup option with [alexa-skill-kit-sdk-howtoskill] as the blueprint template, the function works properly.

will investigate

could not reproduce with current instructions and SAR app.  Closing...


Weather

Hello, is it possible to get temperature/weather from activity for premium members?

No support is provided here.
You can read the official Strava API docs to see what's possible with the API, you can read and test the source code here and you submit a patch if weather support is possible with the Strava API but isn't working with this project.


Retrieve and print logs when jobs die

When a job dies, raise an exception with the logs from the job as the text

yup, tests passed; closing


None of the example workflows aren't working

I haven't been able to successfully run any of the example workflows
I get this error (both on linux and the portable windows install)
class_ = nodes.NODE_CLASS_MAPPINGS[prompt[x]['class_type']]
I tried updating using the provided batch scripts to no avail

Hi, you may want to check this issue first,
And if you still can't resolve the error, then can I have your full console error log pls? This is not enough information.

@MrForExample thank you so much for your efforts and apologies for the lack luster initial post. It was really late and I was fading into the night 😅
I did checkout that issue and think this is a different issue, something to do with the worfklows missing nodes on ComfyUI for some reason (following the install steps with theportable windows install).
Attached are some logs and what I'm seeing from within the portable windows install (on windows 10, with the VS tools 2022, running a 3090)
To see the GUI go to: http://<IP_ADDRESS>:8188
got prompt
Error handling request
Traceback (most recent call last):
  File "C:\Users\hggz\Documents\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\aiohttp\web_protocol.py", line 452, in _handle_request
    resp = await request_handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\hggz\Documents\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\aiohttp\web_app.py", line 543, in _handle
    resp = await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\hggz\Documents\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\python_embeded\Lib\site-packages\aiohttp\web_middlewares.py", line 114, in impl
    return await handler(request)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\hggz\Documents\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\server.py", line 47, in cache_control
    response: web.Response = await handler(request)
                             ^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\hggz\Documents\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\server.py", line 474, in post_prompt
    valid = execution.validate_prompt(prompt)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\hggz\Documents\ComfyUI_windows_portable_nvidia_cu121_or_cpu\ComfyUI_windows_portable\ComfyUI\execution.py", line 626, in validate_prompt
    class_ = nodes.NODE_CLASS_MAPPINGS[prompt[x]['class_type']]
                                       ~~~~~~~~~^^^^^^^^^^^^^^
KeyError: 'class_type'

WONDER_3D_to_large workflow:

TRIPLANE WORKFLOW:

USING STACKBIT WORKFLOW:

Also (on a side note) I'm working on a portable docker version of this which already builds but gives me some Floating point (expected 4 but got 2) errors in the CUDA enabled  Wonder3D_to_Large_Multiview_Gaussian_Model_to_3DGS and_3DMesh example so maybe its a dependency problem?

I also encountered the same problem in these workflow（like fig 1）. I think there are missing files somewhere, and I don’t know where to download the missing files（like fig 2，3）.
I still encountered a issue when starting up（fig 4，5）

Hi @MrForExample, I have the exact same problem (without the missing /.ipynb_checkpoints/_init__.py). This occurs on most workflows, I could only get TripoSR pipeline to work as of now. Are there any pointers you could give and is there anything I can help with?


Run fixer workflow automatically

Run fixer automatically be detecting the most recent scan to finish.

Coverage decreased (-0.03%) to 58.977% when pulling d2b9232588353f45944c7bf7633454e1a2402f6a on auto_fixer into 0d10cd3e92ba0f1e92ff6dfa5b9aa329b8cc1d77 on master.


Add helpers.{spies,test} and subscription packages in the module-info.java

Fix https://github.com/smallrye/smallrye-mutiny/issues/411

@cescoffier have you fixed it manually or by running the moditect plugin?

@cescoffier have you fixed it manually or by running the moditect plugin?

By hand :-(
Should we use moditect to generate it?
Le lun. 4 janv. 2021 à 11:05, Julien Ponge<EMAIL_ADDRESS>a
écrit :

@cescoffier https://github.com/cescoffier have you fixed it manually or
by running the moditect plugin?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/smallrye/smallrye-mutiny/pull/414#issuecomment-753882088,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADCG7MNPOKOCTJ7NAJ3VE3SYGHHFANCNFSM4VQ5DLAQ
.

By hand :-(
Should we use moditect to generate it?
Le lun. 4 janv. 2021 à 11:05, Julien Ponge<EMAIL_ADDRESS>a
écrit :

@cescoffier https://github.com/cescoffier have you fixed it manually or
by running the moditect plugin?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/smallrye/smallrye-mutiny/pull/414#issuecomment-753882088,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADCG7MNPOKOCTJ7NAJ3VE3SYGHHFANCNFSM4VQ5DLAQ
.

We have moditect in the builds and it's configured to override the files, so I guess this is where we should make fixes first :-)

We have moditect in the builds and it's configured to override the files, so I guess this is where we should make fixes first :-)

As discussed offline and after checking the docs, moditect is used with a hand-written module-info.java so this is all fine.

As discussed offline and after checking the docs, moditect is used with a hand-written module-info.java so this is all fine.


restful  404

What steps will reproduce the problem?
'urlManager' => [
     'enablePrettyUrl' => true,
      'enableStrictParsing' => true,
      'showScriptName' => false,
       'rules' => [
                ['class' => 'yii\rest\UrlRule', 'controller' => ['v1/user', 'v1/cate', 'v1/category', 'v1/aibric']],
        ],
]

What is the expected result?
http://w.x.cc/v1/categorys
Data can be returned correctly
What do you get instead?
http://w.x.cc/v1/categorys
throw exception 404
Additional info
http://w.x.cc/v1/users   success
http://w.x.cc/v1/cates   success
http://w.x.cc/v1/categorys  error 404
http://w.x.cc/v1/aibrics  success

Q
A

Yii version
2.0.6

PHP version
7

Operating system
win 10

The plural of category is categories. Your url should be http://w.x.cc/v1/categories.
If automatic pluralization does not meet your requirement you can specify what name in url  to map to controller ID as mentioned in docs:
'controller' => [
    'v1/user',
    'v1/cate',
    'v1/whatever' => 'v1/category',
    'v1/aibric'
]

Please use forum or chat in future to ask questions. Github is for bug reports and features discuss

Thank you @tunecino


Backport velocypack sanitizers fixes to 3.10

Scope & Purpose
3.11 doesn't need it, because it's old enough changes

[ ] :hankey: Bugfix
[ ] :pizza: New feature
[ ] :fire: Performance improvement
[ ] :hammer: Refactoring/simplification

Checklist

[ ] Tests

[ ] Regression tests
[ ] C++ Unit tests
[ ] integration tests
[ ] resilience tests

[ ] :book: CHANGELOG entry made
[ ] :books: documentation written (release notes, API changes, ...)
[ ] Backports

[ ] Backport for 3.11: (Please link PR)
[ ] Backport for 3.10: (Please link PR)
[ ] Backport for 3.9: (Please link PR)

Related Information
(Please reference tickets / specification / other PRs etc)

[ ] Docs PR:
[ ] Enterprise PR:
[ ] GitHub issue / Jira ticket:
[ ] Design document:

https://jenkins.arangodb.biz/job/arangodb-ANY-linux-san.x86-64/2033/


Read-only mode when monitoring?

I'm using espflash v2.1.0 and I found that when I do espflash monitor, it acquires exclusive access on the serial port. I want to use ESP32's UART0 to read command from PC, it means that I want the serial port is writable for other program. Could you add one mode to espflash monitor so that it only need read access on the port?

Hi! Have you tried something like https://github.com/esp-rs/esp-hal/blob/main/esp32-hal/examples/serial_interrupts.rs?  Does that fulfill your requirements?

Hi @SergioGasquez , I don't understand use case of that example, so it may not be what I'm looking for.
What I need is that espflash monitor command don't take exclusive access on /dev/ttyUSB0, so I can use another program, like Python pyserial to write some command to my ESP32 board's UART0.
On another hand, I want to use ESP32 UART0 both for flashing, monitor and receiving command from PC.

@hongquan Thanks for the request! I don't think this is something we want to handle in espflash itself. Feel free to use espflash as a library and manage your own monitor which doesn't take full control of the port.

Thank you, @MabezDev .
I respect your vision of espflash. If the feature cannot be added to espflash, I will use pyserial's miniterm to monitor the board.


[1.11] Bump Mesos to nightly 1.5.x ee0fb59

FILL IN

@mesosphere-mergebot label Ready For Review

Corresponding EE PR: https://github.com/mesosphere/dcos-enterprise/pull/2276

We can close this in favor of #2472

Closing PR in lieu of #2472

Closed in lieu of https://github.com/dcos/dcos/pull/2472


Build ARM bottle for 2.3.1_1

brew portable-package ruby fails during gem install byebug because libgmp is not available. Installing the host's libgmp-dev or brew's gmp results in a dependency on gmp that the previous bottle did not have. I'll look into disabling either gmp or byebug during configure.
❯❯❯ brew portable-package ruby
…
/tmp/portable-ruby-test-20180501-10102-1nba7uc/bin/gem
install
byebug

Building native extensions.  This could take a while...
ERROR:  Error installing byebug:
        ERROR: Failed to build gem native extension.

    current directory: /tmp/portable-ruby-test-20180501-10102-1nba7uc/lib/ruby/gems/2.3.0/gems/byebug-10.0.2/ext/byebug
/tmp/portable-ruby-test-20180501-10102-1nba7uc/bin/ruby -r ./siteconf20180501-10272-i8eqdx.rb extconf.rb
creating Makefile

current directory: /tmp/portable-ruby-test-20180501-10102-1nba7uc/lib/ruby/gems/2.3.0/gems/byebug-10.0.2/ext/byebug
make "DESTDIR=" clean

current directory: /tmp/portable-ruby-test-20180501-10102-1nba7uc/lib/ruby/gems/2.3.0/gems/byebug-10.0.2/ext/byebug
make "DESTDIR="
compiling breakpoint.c
compiling locker.c
compiling context.c
compiling threads.c
compiling byebug.c
linking shared-object byebug/byebug.so
/usr/bin/ld: cannot find -lgmp
collect2: ld returned 1 exit status
Makefile:254: recipe for target 'byebug.so' failed
make: *** [byebug.so] Error 1

make failed, exit code 2

It feels like this may warrant a portable-gmp static formula.

It's not included now, it's just part of the test suite.

If gmp is only needed for testing, can that particular test be disabled?

gmp is not needed to build portable-ruby. I installed gmp before running brew test portable-ruby. brew test portable-ruby gives execution expired, because gem install byebug takes longer than five minutes. I confirmed that gem install byebug succeeds. It takes 6m46s.

I've sent the ARM bottle to @MikeMcQuaid.

@sjackman Sorry, I'm not sure I understand (and I'm not confident in the new bottle until I do): what ended up being the fix/cause of the problem? Err on the side of being overly verbose, thanks ❤

Just my 2 cents, you may want to investigate where the gmp comes from.
Neither ruby or byebug gem requires gmp. You may also want to try install another gem with native C extension. It seems to me that gmp may be accidentally picked up the ruby configure. Or you could check lib/ruby/#{abi_version}/#{abi_arch}/rbconfig.rb file.

It seems to me that gmp may be accidentally picked up by the ruby configure.

Yes, this is the case. If libgmp.so is available when Ruby is configured, it links opportunistically against it. The resulting ruby interpreter then requires libgmp, and compiling any native ruby modules also requires libgmp.

what ended up being the fix/cause of the problem?

Problem 1. libgmp.so was available when portable-ruby was configured, and the ruby interpreter was linked opportunistically against it. The fix was to ensure that libgmp.so was not available by neither the host nor brewed when portable-ruby was configured.
Problem 2. gem install byebug takes 6m46s to execute, which exceeds the five minute timeout permitted by brew test. I disabled this test, and then ran gem install byebug afterward to ensure that it completed successfully, which it did.
byebug does not require libgmp. That was a red herring. If the ruby interpreter was compiled with libgmp, then compiling any native gems also requires libgmp.


One swipe operation for registered user

For registered users make a one swipe operation, which signs in and adds one coffee count by default. Meanwhile, display a cancel button with a countdown of i.e. 5 seconds, which when opted keeps the user logged in, but cancels only the +1 coffee. This way the user can still log in for reviewing status, etc.

Implemented by https://github.com/hackenbergstefan/coffeebuddy/commit/2fdca738bdc1a02fadc48d840791275a6d21da4b


Specifying port numbers?

The readme encourages specifying fixed port numbers, but gives no indication of how to do that.
This section:
for one_faux in FAUXMOS:
    if len(one_faux) == 2:
        # a fixed port wasn't specified, use a dynamic one
        one_faux.append(0)
seems to suggest adding a field like this:
['nameHere', rest_api_handler('http://addressHere', 'http://addressHere'), 'portHere'],
but this just throws errors and doesn't run.
Can someone help me out here (and perhaps update the readme for others)?

@neonpolaris I'm working on a PR that will replace the lists that define devices with dictionaries that should make things much more concise in code.
I.E.
{"name": "herp derp", "handler": rest_api_handler(...), "port": 1234}

When I tried adding the port number like the first mention, the last part of the error I got was "TypeError: an integer is required"
I removed the quotes and it worked fine.


Autocomplete & syntax highlighting not working

Hello,
Thanks for the extension. I was looking forward to use it to reduce a lot of typing with terraform.
I was trying this plugin on a mac (v10.13.33), VSCode (v1.20) and Terraform (v 0.11.3) and the autocomplete or syntax highlighting doesn't work at all.
Tried to reinstall this and VS Code as well but no luck.
Then I tried to install the other Terraform autocomplete extension (which is in beta) and it works as expected.
Can you please advise if I am missing something?

Same problem here on Ubuntu 17.10 with the latest version of vs-code: no linter, no color, not auto formatting.

this plugin does not currently support auto-complete (there is a pull-request for it though so hopefully soon)

the linting requires that you install the tflint tool

the formatting requires that you install terraform

please specify which version you are using

please provide some more information about your setup.

feel free to reopen after providing some more information which will enable me to check what is wrong

Strange, I just tested again today with the latest version code (updated yesterday) and it starts working again. I did not change anything but code version.
versions installed on the computer :
Distributor ID:	Ubuntu
Description:	Ubuntu 17.10
Release:	17.10
Codename:	artful

 which terraform

/usr/local/bin/terraform
 terraform --version
Terraform v0.11.3

 which tflint
/usr/local/bin/tflint

tflint --version
TFLint version 0.5.4

code --version
1.21.0
9a199d77c82fcb82f39c68bb33c614af01c111ba
x64


Serve containers from Github Container Registry

No idea how that works yet. Either privately or publicly or a mix of both.

Done since #14. See https://github.com/99linesofcode?tab=packages


support for Three read-only registers ":, "., "% of gr operator

Contributing guidelines

[X] I have read CONTRIBUTING.md
[X] I have read CODE_OF_CONDUCT.md
[X] I have updated 'mini.nvim' to latest version

Module(s)
mini.operators
Description
can't use "% ". ": registers with gr operator
Neovim version
v0.10.2
Steps to reproduce
press "%grr and an error occurs:
E5108: Error executing lua Vim:E354: Invalid register name: '%'
stack traceback:
        [C]: in function 'setreg'
        .../.local/share/nvim/lazy/mini.nvim/lua/mini/operators.lua:1033: in function 'replace_do'
        .../.local/share/nvim/lazy/mini.nvim/lua/mini/operators.lua:483: in function <.../.local/share/nvim/lazy/mini.nvim/lua/mini/operators.lua:460>

Expected behavior
replace current line with file name
Actual behavior
error

Thanks for the issue!
I can reproduce. This indeed seems to be related to the fact that those registers are read-only. I'll take a look.

This (and a more general "support all special registers" functionality) should now be fixed on latest main.
It also revealed small issues 'mini.clue', so double thanks for this issue :)

Hi echasnovski
After pressing "%grr, the current line and the newline character were replaced, but the newline character should be preserved. Could you please take a look at this?

After pressing "%grr, the current line and the newline character were replaced, but the newline character should be preserved. Could you please take a look at this?

Yeah, this is because all those readonly registers are treated as charwise by getreginfo(). I'll take a look.

The read-only registers should now also respect the mode on latest main. Thanks for finding this!


Clean npm package from dev files

@mafintosh same as https://github.com/mafintosh/multicast-dns/pull/44

@mafintosh ping :(

@mafintosh any updates?

Sorry, I don't really use .npmignore. It's too much trouble for me to maintain and benefit is tiny. Round trips are the real cost of npm anyways.

Maybe you should add files section in package.json in this case? The problem still exists.
Problem is not in download speed, but node_modules size on the disk. Everyone is complaining about it. If every maintainer will be careful we can reduce size twice.

I don't personally see it as a problem that it has to download a couple of kb more. Maintaining a files array in package.json has the same issues as .npmignore maintenance wise. Thanks for the suggestion though :)


Question: does this work for trading test mode?

Hello
First of all, thanks for your great work. I am surfing through the code and I have a question that may be simple.
I know that IQ Option offers a test trading, that mode supports fake money to place orders, therefore losing/winning fake balance.
The question is: this API supports this IQ Option mode?
Best regards

Yes this API support practice mode
you can get the current active account by api.active_balance_id and get all balances by api.balances.keys() and change account by doing api.change_balance(balance_id)


Vocab.json and merges.txt for .mlmodelc

Hi all,
I want to know why the vocab.json and merges.txt are the same ones from the converting process?
If we use a different CLIP model or Text Encoder model, shouldn't it be different?

https://github.com/huggingface/transformers/issues/1083

Sorry but I use this issue for questioning:
Why .mlpackage format no need the vocab.json & merges.txt file?
I found .mlmodelc and diffusers format both need these files but .mlpackage didn't.

It is possible that those files are stored inside the text encoder piece of the .mlpackage.


Better gradient interface

It would be nice if we can have a user-friendly interface for automatic differentiation, e.g.
@model gdemo(x) = begin
  s ~ InverseGamma(2,3)
  m ~ Normal(0,sqrt(s))
  for i=1:length(x)
    x[i] ~ Normal(m, sqrt(s))
  end
  return(s, m, x)
end

g  = @gradient(gdemo([2.0, 3.0]), varInfo = nothing)

By default, the user does not need to pass in varInfo (i.e. differentiate through all parameters).
This would be very helpful for users who want to contribute new gradient-based inference methods.

I think this interface is actually done by the closure way of creating model. Like what we did in test file for AD, we can now use
∇E = gradient(vi, ad_test_f)

to get the gradient dictionary.
I guess user have to pass an VarInfo to it otherwise we don't know the derivative at which points we want to compute?

Cool.


IntermediateCatchEvent does not work with multiple running instances

It looks like runnig multiple instances of same process with IntermediateCatchEvent does not work.
I see that in findMatchingActiveSubscriptions processInstanceKey is not checked.
Here is simple test that fails.
func Test_IntermediateCatchEvent_multiple_instances_received_message_completes_the_instance(t *testing.T) {
	// setup
	bpmnEngine := New()

	// given
	process, _ := bpmnEngine.LoadFromFile("../../test-cases/message-intermediate-catch-event.bpmn")
	pi1, _ := bpmnEngine.CreateAndRunInstance(process.ProcessKey, map[string]interface{}{"key": "pi1"})
	pi2, _ := bpmnEngine.CreateAndRunInstance(process.ProcessKey, map[string]interface{}{"key": "pi2"})

	// when
	bpmnEngine.PublishEventForInstance(pi1.GetInstanceKey(), "globalMsgRef", nil)
	bpmnEngine.RunOrContinueInstance(pi1.GetInstanceKey())
	bpmnEngine.RunOrContinueInstance(pi2.GetInstanceKey())

	// then
	then.AssertThat(t, pi1.GetState(), is.EqualTo(Completed))
	then.AssertThat(t, pi2.GetState(), is.EqualTo(Active))

	// when
	bpmnEngine.PublishEventForInstance(pi1.GetInstanceKey(), "globalMsgRef", nil)
	bpmnEngine.RunOrContinueInstance(pi1.GetInstanceKey())
	bpmnEngine.RunOrContinueInstance(pi2.GetInstanceKey())

	// then
	then.AssertThat(t, pi1.GetState(), is.EqualTo(Completed))
	then.AssertThat(t, pi2.GetState(), is.EqualTo(Active))

	// when
	bpmnEngine.PublishEventForInstance(pi2.GetInstanceKey(), "globalMsgRef", nil)
	bpmnEngine.RunOrContinueInstance(pi1.GetInstanceKey())
	bpmnEngine.RunOrContinueInstance(pi2.GetInstanceKey())

	// then
	then.AssertThat(t, pi1.GetState(), is.EqualTo(Completed))
	then.AssertThat(t, pi2.GetState(), is.EqualTo(Completed))
}

@blib thank you for providing this test case and good catch 👍
May Ia ask, in the test you wrote bpmnEngine.PublishEventForInstance(pi1.GetInstanceKey(), "globalMsgRef", nil) twice,
and the assertions as well. It seems redundant and could be shortenened, like below.
Do I oversee something?
PS: I will provide a fix soon.
func Test_IntermediateCatchEvent_multiple_instances_received_message_completes_the_instance(t *testing.T) {
	// setup
	bpmnEngine := New()

	// given
	process, _ := bpmnEngine.LoadFromFile("../../test-cases/message-intermediate-catch-event.bpmn")
	pi1, _ := bpmnEngine.CreateAndRunInstance(process.ProcessKey, map[string]interface{}{"key": "pi1"})
	pi2, _ := bpmnEngine.CreateAndRunInstance(process.ProcessKey, map[string]interface{}{"key": "pi2"})

	// when
	bpmnEngine.PublishEventForInstance(pi1.GetInstanceKey(), "globalMsgRef", nil)
	bpmnEngine.RunOrContinueInstance(pi1.GetInstanceKey())
	bpmnEngine.RunOrContinueInstance(pi2.GetInstanceKey())

	// then
	then.AssertThat(t, pi1.GetState(), is.EqualTo(Completed))
	then.AssertThat(t, pi2.GetState(), is.EqualTo(Active))

	// when
	bpmnEngine.PublishEventForInstance(pi2.GetInstanceKey(), "globalMsgRef", nil)
	bpmnEngine.RunOrContinueInstance(pi1.GetInstanceKey())
	bpmnEngine.RunOrContinueInstance(pi2.GetInstanceKey())

	// then
	then.AssertThat(t, pi1.GetState(), is.EqualTo(Completed))
	then.AssertThat(t, pi2.GetState(), is.EqualTo(Completed))
}

fixed


Unable to generate API docs

Description:

Generating api docs from docker and k8s module fails with following error.

Compiling source ballerina/docker:1.0.0 error: module not found for: ballerina/docker:1.0.0_java8 error: no modules found to compile.

Running the command:
export JAVA_OPTS=-DBALLERINA_DEV_COMPILE_BALLERINA_ORG=true
before running ballerina doc docker should fix this issue.

Closing the issue after verifying the fix.


XL430-W250-T only works on position mode and pwm mode

Platform: Arduino MKR WIFI 1010, Dynamixel shield, XL430-W250-T
Library: Dynamixel2Arduino, DynamixelShield
Baud rate and ID: checked with wizard
I am trying to run examples in the DynamixelShield library. It seems that only position mode and PWM mode work well. In velocity and current mode, it can read the speed and current. However, it can not make the servo run. The position and velocity examples are almost the same with each other, except the SetGoalVelocity and SetGoalPosition functions are different. But only the position mode works. Could you help me with this?  Thanks!

Found the problem. Library Dynamixel2Arduino v 0.5.0 didn't work for XL430-W250-T with velocity mode. Some old versions work. However, the current mode was still not solved.