Get current user home directory

Hi there, I'm having issues detecting the user that spawned the service. I would like to get the home directory, but systemd and launchd both run as root, and don't seem to have any environment variables like SUDO_USER.
Any ideas how I could accomplish this without adding a User= directive to the [Service] section?

As far as I know, there is no concept in any service system. Typically services are started by the OS config on boot. so "user that spawned the service" just isn't really a thing.

Ok, then is there any capability to add environment variables? I know systemd supports it in the file, not sure about other service managers though.

If you need to configure your service, your better off creating a configuration file.

That's my issue, I want to access the config file that the user creates in /home//.config. The goal was to have the ability to run without the service manager and without root privileges as well as through the service manager.

When installing the service, pass arguments to config. Then when running it will pass those arguments.

Ok. I think what I will end up doing is detecting if it's being run as a service and then look for a config file outside of a user directory instead. Thanks!


layers: renderpass compatibility: there is only one d/s attachment

Previously this function assumed there were as many d/s attachments as
color attachments, which is invalid. Besides not making sense, we'd end
up dereferencing memory beyond that pointed to by
VkSubpassDescription::pDepthStencilAttachment if we had multiple color
attachments.
Signed-off-by: Chris Forbes<EMAIL_ADDRESS>

cherry-picked and pushed to master


load custom extensions in pre-hook

Fixes #850
StrictEnvironment is used instead of Template when processing the pre-hook. I changed the hooks for the tests because strings weren't getting returned.

Current coverage is 99.69% (diff: 100%)

Merging #860 into master will decrease coverage by 0.30%

@@           master       #860   diff @@
========================================
  Files          16         16
  Lines         661        661
  Methods         0          0
  Messages        0          0
  Branches        0          0
========================================
- Hits          661        659     -2
- Misses          0          2     +2
  Partials        0          0

Powered by Codecov. Last update 03dc984...3316017

I have no idea where force_delete was getting called. Should I add a test for it?

Hi @cheungnj! 👋
Thank you for resolving this issue. Great work!
Don't worry too much about the code coverage. I don't really see a reason why your changes would cause force_delete to be missed.
I'm happy to merge this. Let's see what the others think.
@audreyr @pydanny @michaeljoseph

Thank you @cheungnj! 🍪


If file system does not support xattrs do not return error

Setting labels on a file system without Xattr support shouldn't
return an error
If we mount a volume into a container that does not support
Xattrs (SELinux), docker should for ENOTSUP and not return an error
We might need policy changes for these types of file systems, but
failing for label issues is a mistake.
Signed-off-by: Dan Walsh<EMAIL_ADDRESS>

I would like to see if this fixes the issue in https://github.com/emccode/rexray/issues/180

ping @clintonskitson

Not sure if we should blindly skip on ENOSUP.
Maybe in cases where the driver is not the default local or  an empty "" driver it would be ok...

@cpuguy83 I think even in the case that you are using builtin volumes, you could be running /var/lib/docker on a directory that does not support XAttrs, and we should just let it go.  Other things can and will blow up, but failing here should not happen.   We could write a log message when this happens.

Confirmed, this works on the latest CoreOS stable where it did not before.
ip-172-31-11-4 core # ./docker-1.11.0-dev run -ti --volume-driver=rexray -v test:/test busybox
Unable to find image 'busybox:latest' locally
latest: Pulling from library/busybox
f810322bba2c: Pull complete
a3ed95caeb02: Pull complete
Digest: sha256:97473e34e311e6c1b3f61f2a721d038d1e5eef17d98d1353a513007cf46ca6bd
Status: Downloaded newer image for busybox:latest
/ # df /test
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/xvdb               999320      1288    929220   0% /test

Docker 1.10.1
ip-172-31-11-4 core # docker run -ti --volume-driver=rexray -v test:/test busybox
Unable to find image 'busybox:latest' locally
latest: Pulling from library/busybox
f810322bba2c: Pull complete
a3ed95caeb02: Pull complete
Digest: sha256:97473e34e311e6c1b3f61f2a721d038d1e5eef17d98d1353a513007cf46ca6bd
Status: Downloaded newer image for busybox:latest
docker: Error response from daemon: no such file or directory.

@rhatdan Fair enough. What if the user explicitly set a label mode?

@cpuguy83 I guess in that case we could fail.

In the other cases, should we log this somewhere, or show a warning? i.e., should users be notified that relabeling didn't actually take place?

I think the pull should be closed. But will wait for comment from @cpuguy83

@calavera Good.


Create a separate resource type for each UCP plane

Forking off from a discussion in https://github.com/project-radius/radius/pull/3493/files#diff-95dbdd451b47bf002fb28d7dfe9835e6eba318925b57426b90f057451e3f043b
Currently we use the same controller implementation and resource type for all UCP planes. The resource type has a discriminator field for the kind of plane. This design is not straightforward and pushes a lot of complexity into the public API of Radius. Discriminators should be avoided except when they are the last resort.
A comparatively simpler design is to use a different resource type and controller for each plane. This way we don't see features leak between the different planes, and can simplify the API. The URL structure already reflects the design we want, but the resource body does not. Our controller framework has evolved significantly since we started on UCP and we can take advantage of that by pivoting the design.
AB#4504

@rynowak is this still valid?

This is done. Closing.


Update the cache panel to support the cache_page decorator.

Unfortunately, once the CacheMiddleware's caches/get_cache has been
monkey patched, it can't be disabled. This results in a bit of overhead.
Fixes #718

Looks reasonable.


help

Hello, when I tried to reproduce your model, I got this error. I'm not sure how to correct it， can y help me?
Traceback (most recent call last):
File "main.py", line 172, in
outputs = custom_model(images,iters = 12)
File "/usr/local/lib/python3.8/dist-packages/torch/nn/modules/module.py", line 727, in _call_impl
result = self.forward(*input, **kwargs)
File "/root/class/glom_pytorch/glom_pytorch.py", line 109, in forward
consensus = self.attention(levels)
File "/usr/local/lib/python3.8/dist-packages/torch/nn/modules/module.py", line 727, in call_impl
result = self.forward(*input, **kwargs)
File "/root/class/glom_pytorch/glom_pytorch.py", line 49, in forward
sim.masked_fill(self_mask, TOKEN_ATTEND_SELF_VALUE)
RuntimeError: Expected object of scalar type Bool but got scalar type Float for argument #2 'mask' in call to th_masked_fill_bool

oops! fixed in the latest commit!


Investigate using the GH CLI auth UX in Codespaces

The GH CLI has a slightly nicer auth flow than azd in Codespaces today.
They show a user a code, tell them to copy it and then hit enter to open the browser. This is a slightly more streamlined UX, can we adopt it?

@vhvb1989 Have you considered this? Is this possible?

Nah, this is different. We do a very similar flow but require a user to either control click the URL or copy-paste the URL into another browser window.
GH CLI just asks the user to hit enter and brings them to another window. It's a little more streamlined but it'd also be nice to have the authentication flow as them.

@savannahostrowski , it was easy to make the change. Made a PR for you.

This is the Victor way! I file an issue and by end of day, there's a PR! Always going above and beyond :D
Thanks for taking a look!


Add try-catch guard to object-form loading check

The object-form-keyframes source file uses a call to Element.animate
to decide whether to load the polyfill for the object-form syntax.
If the native browser code supports Element.animate without full
support for object-form syntax, this test can throw a TypeError (see
https://github.com/web-animations/web-animations-js/issues/72). In
this case, the polyfill should proceed to load the polyfill. This
patch implements this behaviour with a try-catch guard around the
Element.animate loading check.

lgtm. The comment is a bit more "what" than "why" for my liking but it's not a huge deal.

lgtm, but I'll leave a few nits that you might want to clean up.

Thanks for the reviews, all done. If you have any specific suggestions for how to improve the comment, I'll incorporate them, but I'm not sure what else to add to clarify the 'why'.


Include symbols from Object.getOwnPropertySymbols()

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getOwnPropertySymbols
Symbols are an integral part of some APIs, and we should expose them somehow.

@foolip how many APIs do you expect this impacts?  IIRC it's rather rare, so probably not very urgent to account for, right?

I don't know actually know what symbols are, just that there's some connection to toStringTag:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol/toStringTag
This isn't urgent, it's backlog.

@arronei (Edge API catalog guy) says he's in the process of adding these to the Edge API catalog - about 701 symbols in all, 69 if you exclude Symbol.toStringTag.


Swiper.animating somehow always false

I am checking swiper.animating in order to prevent touch events on Buttons, because I don't want to navigate when a user actually just wanted to swipe.
I thought that swiper.animatingcan be checked in order to see if there is currently any swiping going on.
Somehow it is always false.
I have now reimplemented what I thought should be done internally:
I have a ´inProgress` variable that is set to true on the progress event and set to false when onSlideChangeEnd.
Did I try using animating wrong?

Yes, it was wrong usage, because it sets to true from onTransitionStart to onTransitonEnd, and i guess your custom click event handler executed before transition begin. So the correct logic would be a such kind of flag:
var allowClick = true;
o

Closing as no further discussion. Reopen if issue or problem is still there


Resource auto-detection OTEP merged

https://github.com/open-telemetry/oteps/pull/111
An OTEP describing a resource auto-detection model was merged and spec will follow shortly. It doesn't seem too far off what we already have, but I want to create this ticket to ensure we're staying on top of any changes. I'm assigning @mwear for now since he wrote our auto-detection implementation.

Here is a list of differences between the current implementation and OTEP-111. The specification is still TBD, so small details, such as environment variable name, are probably still up to debate.

Custom resource detectors related to specific environments (e.g. specific cloud vendors) must be implemented as packages separate to the core SDK, and users will need to import these separately.

Currently the GCP and AWS EC2 detectors reside in the @opentelemetry/resources package.

A default implementation of a detector that reads resource data from the OTEL_RESOURCE environment variable will be included in the SDK.

Resources are currently detected from the environment using OTEL_RESOURCE_LABELS.

Specification that default detection (from environment variable) runs once on startup, and is used by all tracer & meter providers by default if no custom resource is supplied

The env detector is not run automatically, at least, not in all cases. Resource detection is generally opt-in via the detectResources method exported by @opentelemetry/resources. The in-progress sdk package autodetects resources by default, and perhaps this is sufficient.

Custom resource detectors related to specific environments (e.g. specific cloud vendors) must be implemented as packages separate to the core SDK, and users will need to import these separately.

Currently the GCP and AWS EC2 detectors reside in the @opentelemetry/resources package.

I would prefer to have these as separate packages anyway.

A default implementation of a detector that reads resource data from the OTEL_RESOURCE environment variable will be included in the SDK.

Resources are currently detected from the environment using OTEL_RESOURCE_LABELS.

Naming changes are simple :)

Specification that default detection (from environment variable) runs once on startup, and is used by all tracer & meter providers by default if no custom resource is supplied

The env detector is not run automatically, at least, not in all cases. Resource detection is generally opt-in via the detectResources method exported by @opentelemetry/resources. The in-progress sdk package autodetects resources by default, and perhaps this is sufficient.

This wording seems to imply again that resources are different between the TracerProvider and the MeterProvider and, again, I am left wondering why this is. It would make more sense to me to have a single global resource. This is outside the scope of our SIG though and would be a spec issue I guess.


In the "Chuck's boat" minigame the weapon blinks in the left corner of the screen

I am using the default settings of your mod.
https://youtu.be/KniE2z4ItNw

Weird, cause I purposefully added a section of the code that should prevent interpolating movement of camera and boat altogether in those sections (cause it's better to have them be updated 50 times a second, than glitch out like this). Do you have a save file?

OK, so it seems the side activity has entirely different setup then the one used in main story. I have figured out a way to get interpolation disabled for that section as well to keep it a bit cleaner (even if the camera movement is jittery, due to 50 Hz updates). Also I think I have managed to find an issue that was causing geometry checker to break and throw an error, which is the main thing keeping 1.1.0 from proper release

Fixed now. Thank you!


yuzu-ea: 2156 -> 2432

Yuzu-ea from the pineapple distribution now builds again. The problem were files from old SDL versions that were not deleted from the repository. They have been removed in https://github.com/pineappleEA/pineapple-src/pull/50 and
https://github.com/pineappleEA/pineapple-src/commit/ae416cfe9fb009c1eb72b10fbf1e4d1d74dc9be2.
This also adds myself as a maintainer.

Motivation for this change
Having a recent version of yuzu-ea in nixpkgs.
Things done

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] 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

[X] 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/)
22.05 Release Notes (or backporting 21.11 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
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[X] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 156530 run on x86_64-linux 1

1 package built:

yuzu-ea

I used kde-plasma with Kvantum, and (something that I don't remember to happen before) the game windows was a bit transparent, and see, some shape of my desktop could be seen when using the game, including in full screen mode. I added yuzu and yuzu-ea in my kvantum configuration so they aren't transparent at all.


Highlight two non contiguous words

There is a ways to highlight those kind of words?
In the examples doesn't seems to work
(https://twitter.github.io/typeahead.js/examples/#multiple-datasets)

Duplicate of #821.


convert youki to use tracing

This PR converts youki to use tracing crate for logging. I did the minimal to make the transition, but tracing crate allows for much richer logging and instrumentation. This is related to #1348 in that this would be a pre-requirement to implement open-telemetry.
In addition, the reason I decide to do this now because error handling can be difficult without tracing/logging support. In general with error handling, the audience are either the user/operator (human) or for code to handle. It is important to log as much as possible of the context of an error. There are usually 2 choices. Either we store the context of the error into the error itself, or we log the context and keep the error size small. There is no right answer and usually we need a combination of both. tracing crate allows us to minimize the context we have to store inside the error itself, and instead opting for rich logging.
Note, I tried to keep the change minimal, but switching logging infrastructure does have a wide impact. Hopefully this is not too disruptive to people.

Codecov Report

Merging #1899 (c68da5b) into main (654c7f4) will decrease coverage by 0.15%.
The diff coverage is 44.66%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1899      +/-   ##
==========================================
- Coverage   67.57%   67.42%   -0.15%
==========================================
  Files         126      126
  Lines       14180    14195      +15
==========================================
- Hits         9582     9571      -11
- Misses       4598     4624      +26

I am able to reproduce this now. First, the old behavior is the same as the new, with the log line being slightly different, but the overall length is similar. In fact, the tracing in this PR produced a shorter line since the file path and line number is not turned on by default. Therefore, I believe this is a separate issue not related to logging or tracing.
To resolve this, it seems that bpftrace is omitting the long lines. I can confirm that my shell window will wrap the line correctly. So bpftrace is cutting off the lines.

The integration test is failing and I suspect this has to do with the tempfile change. I will investigate.

The container runtime does not work with this timescale.

This is a good point.

bpftrace is probably currently the most usable way to fix bugs in kubernetes. I am not sure how to do it with other ways, because it is too deep in the hierarchy from kubelet, and it is difficult to do.

Oh, this is how you are using bpftrace. This makes sense.

I turned off the timestamp for the text format to stderr. This should produce a shorter log line with log level, log target, and the actual log line. I left the other format unchanged for now. Let me know if you think we should remove timestamp for other cases as well (JSON and logging to file).

I don't think it would be desirable to make the logs longer simply from the standpoint of readability.

Normally, this is not too much of an issue because we can make a long log line to be more human readable with nice formatting. In fact, the tracing crate has a really nice pretty formatter to make the logs more readable. It breaks the long line into multiple lines and adds coloring to the log line.
However, in this specific case, we are using bpftrace. From this perspective, the log line is a single write syscall with a long line. It will also cut off at 225 ish char due to internal limits. This limits makes sense because bpftrace is not designed to read logs. It is designed to capture the syscall trace. In another word, you are hacking bpftrace as a log collector for youki, but I can see this is a nice way to debug youki under kubelet. Please correct me if I am misunderstanding you.
In my view, assume debugging is your only concern, the long term solution is to use something more appropriate to view tracing/logging. For example, we can configure the trace/log to write to journald or syslog. Then, by observing syslog or journald or using journalctl, we can view the logs from youki in a similar way on how you use bpftrace right now. Of course, there are other tracing viewers as well but they all work in similar ways. I believe these days, we can even ship the tracing to something like datadog if we really wants.
For now, let's keep it simple and see this the current setup works for us. But, the real super power of tracing is to log as much information as possible along with metrics. It can be pretty powerful beyond just logging and the amount of logs/data entry generated from tracing will become too much for bpftrace to handle at some point. We are not there now, but we slowly will.

@yihuaf I agree with you, logging with bpftrace is pretty hacky. It should be turned off. It would be best if it could be turned off in the future, but for now this debugging method is necessary.
However, if OpenTelemetry tracing could be placed anywhere and the sampling rate could be set to 100%, I think it could be turned off.


Parquet Str

Describe the bug
When reading a parquet file:
thread 'tokio-runtime-worker' panicked at 'Unsupported datatype: LargeUtf8',
.cargo/registry/src/github.com-1ecc6299db9ec823/arrow-6.3.0/src/json/writer.rs:490:13
To Reproduce
http request with json response on a parquet str field
Expected behavior
Json properly returned
Additional context
Parquet str are read as Large_utf8 and the arrow json writer does'nt like it, even if they were written to parquet as Utf8.
I've not found a way in the conf  to cast columns before generating the request but is could be a usefull addition

This should be a simple fix upstream by adding a branch for LargeUtf8 around https://github.com/apache/arrow-rs/blob/a69f0d119c67ef19e6a61acd24359de1b4ed2e10/arrow/src/json/writer.rs#L161. @tiphaineruy are you interested in sending a PR over?

@houqp
https://github.com/apache/arrow-rs/pull/1358

Thank you @tiphaineruy , that was quick :D


progress component

Summary
Features
Bugs
Check List

[x] Your code builds clean without any errors or warnings.
[x] Check coding convention.
[x] Updated Storybook components and stories to reflect any changes made to the UI.
[ ] Test covers all edge cases and coverage is greater than or equal to 80%.

Proof of Completeness

https://user-images.githubusercontent.com/88309815/231654652-049e3d5f-8e63-4ea3-a568-839f166902a4.mp4

Please fill in the options on the checklist and try to upload the video again

write test code for this component

Please fill in the options on the checklist and try to upload the video again

Updated

write test code for this component

updated

https://github.com/saigontechnology/rn-base-component/assets/104345392/e46f9c40-a2f2-4249-89d6-1f3ebce2174c


How to make waveform full width?

Hi,
Thanks for this library.
Is there any way to make the waveform full width like VIWaveformView?
Some of my audios looks short in waveform.
Thanks

You can set VIWaveformView's minWidthPerSecond.
As you need, your minWidthPerSecond would be:
minWidthPerSecond = VIWaveformView.width / audio.duration


In the action form it refers to "the persona" and not the name of the persona.

"Which of the persona's facets did you..." Should be replaced with "Which of Abby's facets..." or "Which of Tim's facets..."

Fixed in commit d90e54c


nodeMarker comments make CSS selector :empty impossible

Example:
const root = document.createElement('div');
const foo = '';
const tmpl = html`<div>${foo}</div>`;
render(tmpl, root);
console.log(root.innerHTML);
//

As a result CSS selectors like this will not work:
div:empty {
  display: none;
}

The markup would need to be

. Early versions of lit-html did not fill bindings with this comment nodeMarker content. Is there a way to disable the comment bindings?
Thanks in advance!

I cannot reproduce the issue: https://codepen.io/ruphin/pen/exVydQ?editors=0110
Can you create a reproduction that shows the behaviour as you mentioned?
The comment markers are currently necessary for the internal implementation of lit-html, and cannot be disabled.

Comment nodes should not affect :empty: https://developer.mozilla.org/en-US/docs/Web/CSS/:empty

Since we don't have a reproduction and we should be ok according to the spec, I'm going to close. If you can make a reproduction, ping us. Thanks!

@ruphin thanks for putting together a test; I will need to take another look at my code. Perhaps it's a newline causing the problem, but clearly it's not the comments.

Just closing the loop here, my issue was unrelated to the nodeMarkers. Thanks for the prompt reply!

I faced the same problem, due to the spaces the prettier leaves when formatting.
<! - prettier-ignore -> saved the day


Errors aren't correctly ordered

When executed tests report the last fail command and not the first one, for example :
setblock ~ ~5 ~ stone

await delay 2s

execute if block ~ ~5 ~ stone run fail "This should fail"
execute if block ~ ~5 ~ stone run fail "But this do fail instead"

Produce this output:

Datapack : test_dp.zip

The problem is not one of order. The issue is that the function does not terminate when fail is executed.
fail "This is a fail!"
say I should not run!

Actually, fail, assert, succeed and even return all fail to end the test early.


Finance Tracker

Describe the project
Create a web-based personal finance tracker using JavaScript, HTML, and CSS. The application should allow users to add, edit, and delete income and expense transactions and display the current balance.
Issue Type:

[ ] Bug Report
[ ] Feature Request
[ ] Documentation
[* ] New Project

Additional context
Add any other context or screenshots about the project here.
Screenshots

If applicable, add screenshots to help explain your problem.

Kindly assign me this project under ssoc 2k23

Now You can start work on it.

@harshit-paneri you did not assign it to me

Ohh, Yes I just confused, it's good if you can share more information like above issue

@harshit-paneri
The finance tracker will consist of several key components:
User interface: We will use HTML and CSS to design and style the user interface for our budget tracker.
Input forms: We will use HTML forms to allow users to input their income and expenses.
Local storage: We will use a browser’s local storage to store the user’s budget data.
Calculation logic: We will use JavaScript to calculate the user’s total income, expenses, and budget balance.
By adding these essential components, we will be able to create a functional budget tracker that allows users to easily input, store, and view their budget data. We will now go through the process of implementing each of these features in our budget tracker application.

Hey @AMRIT456 are you doing this issue ?

Hey @AMRIT456 are you doing this issue ?

yes sir @harshit-paneri  i am doing this issue

Hey @AMRIT456 are you doing this issue ?

yes sir @harshit-paneri i am doing this issue

you have assigned it to me?

Hey @AMRIT456 are you doing this issue ?

yes sir @harshit-paneri i am doing this issue

you have assigned it to me?

Already assigned you

@harshit-paneri The finance tracker will consist of several key components:
User interface: We will use HTML and CSS to design and style the user interface for our budget tracker.
Input forms: We will use HTML forms to allow users to input their income and expenses.
Local storage: We will use a browser’s local storage to store the user’s budget data.
Calculation logic: We will use JavaScript to calculate the user’s total income, expenses, and budget balance. By adding these essential components, we will be able to create a functional budget tracker that allows users to easily input, store, and view their budget data. We will now go through the process of implementing each of these features in our budget tracker application.

Grear @Roudranilk but this issue first raise by other so we assigned it to someone else, if the not send PR in next 3-4 days then I will assigned you, meanwhile you can explore more or work on other issues or create your own issues.
Thankyou


Add useDapp DevTools extension

This PR introduces a DevTools extension for working with useDapp.

You can find more information in the readme. The extension is working and fully usable. It probably needs more polish before release but I am done working on it.
This was originally intended to be a part of the 0xHack hackaton, but for reasons outside of the scope of this PR it will not be eligible.

My guess is this wouldn't(or shouldn't) be bundled in the @core package since it might affect the size and the extension would be used in development

@noobshow Sorry for the late reply. You are correct that including extension code in core is bad. This is why this PR includes the bare minimum glue in core and all of the code is actually independent and placed under the usedapp/extension package.
@marekkirejczyk I have merged the latest changes from master into this branched and manually verified that it still works.


mkpr package.json sed s/"npm-pkgbuild":.*/"npm-pkgbuild":"^6.4.11",/

Pull Request Test Coverage Report for Build 1703

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

Totals

Change from base Build 1699:
0.0%

Covered Lines:
301

Relevant Lines:
302

💛  - Coveralls


Error when using a borrowed slice

Using this code:
#[derive(Nom)]
pub struct Foo<'a> {
    pub magic_bytes: &'a [u8]
}

I get the following error:
error: Nom-derive: could not get first path ident
 --> src/payload.rs:8:22
  |
8 |     pub magic_bytes: &'a [u8],
  |                      ^

The behaviour I expected was for the entire input to be read into this field. Is there a combinator I need to use for this?

Found the answer: #[nom(Parse = "::nom::combinator::rest")]
I'd say this should be a nom-derive builtin, but I'll close this issue for now.


Test windows error

Describe your bug here.
I downloaded the new psych engine update 0.5 but when i do lime test windows -debug to the command promot to open friday night funkin on the new update it shows me this
Command Prompt/Terminal logs (if existing)
source/Song.hx:65: characters 27-41 : Array access is not allowed on {+ length : Int }

Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows
Did you edit anything in this build? If so, mention or summarize your changes.
no

Haxe Version??

update haxe

Working thx!


Question about UPRN

HI I see the UPRN is on the BASPI in the address section but I cannot figure out where this is stored,  I was thinking it might be with the address details but it doesn't appear to be,  could sombody explain where this is stored please.

Hi - it's at the very top level of the schema, because it's (currently) the natural primary key we're using to identify the property.

Got it, cheers Ed

By the way Darren, there are some major changes to the schema coming next week which push UPRN in alongside and nest the propertyPack object as part of a new top-level pdtf-transaction schema. We worked out that trying to key everything off OPRN wasn't going to be sustainable...

Hi Ed does this mean that you will no longer use UPRN as a primary key?


Get details from the most recently-selected package as the selection changes.

Forgot this was going to be in 0.1.2. Oh well, it's going into the next version.

This mostly works, aside from a bit of an issue when using shift-click. See this video for more details:
https://www.youtube.com/watch?v=0MFrjdAph5U
Basically, shift+click makes it show the first-clicked item if the selection switches to go above the first-selected item.

Leaving this open until the configuration for this setting is done.

Configuration is done, so it'll be closed now.


Vue3: Cannot create ConfigMaps

We cannot create ConfigMap resources.
Acceptance Criteria

[ ] Can create a config map and the existing configmap.spec will pass. (The tests are currently being skipped)

Video
https://github.com/user-attachments/assets/9fa3d177-2ae2-470a-8b9c-42ab833e2710
Additional info
Errors and warnings are printed to the console when clicking on Create
[Vue warn]: Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead.

Error: Cannot find resourceFields for Schema apps.deployment (schemaDefinitions have not been fetched)
    get resourceFields steve-schema.ts:103
    get reactivity.esm-bundler.js:492
    createYaml create-yaml.js:108
    createYamlWithOptions create-yaml.js:74
    createResourceYaml CruResource.vue:330
    saveConfigMap configmap.vue:66
    callWithErrorHandling runtime-core.esm-bundler.js:173
    callWithAsyncErrorHandling runtime-core.esm-bundler.js:182
    emit

Pre-existing test was fixed and passed CI


Specialized CharSeq.toJavaArray()

Codecov Report

Merging #1894 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master    #1894      +/-   ##
============================================
+ Coverage     98.07%   98.07%   +<.01%
- Complexity     5051     5052       +1
============================================
  Files            88       88
  Lines         11401    11402       +1
  Branches       1503     1503
============================================
+ Hits          11182    11183       +1
  Misses          113      113
  Partials        106      106

Impacted Files
Coverage Δ
Complexity Δ

...ng/src/main/java/javaslang/collection/CharSeq.java
100% <100%> (ø)
344 <1> (+1)
:white_check_mark:

Continue to review full report at Codecov.

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


fix a rendering bug for top_down mode in multi-agent envs

I found that in multi-agent envs, if render mode is top_down, it will fail rendering on my Mac. I figure out that the position attribute in TopDownRenderer class will be initialized as None. It's ok for the _draw method while in single-agent env, b/c the self.current_track_vehicle will have a value and is not None. But in MA Envs, since there is no self.current_track_vehicle, it will cause a bug of None Type error.  I kind of fix it by following code in previous version of MetaDrive repo. Hope it will help!
What changes do you make in this PR?

Please describe why you create this PR

Checklist

[ ] I have merged the latest main branch into current branch.
[ ] I have run bash scripts/format.sh before merging.
Please use "squash and merge" mode.

LGTM, will merge into the main after passing all tests


Deleting modal container

Hi,
Deleting the data modal container renders the resume, portfolio, etc. buttons useless. How can I delete the modal container without breaking the other pages?

I think you can delete modal-container element as your thought, it just a UI element and does not have any associated impact with other pages.

Deleted JS Variables


04/23/2018 02:58 : Create Pull Request for branch master -> prTesting1_2018042302

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/updateTestRef1.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


disable if cursor is not at the end of the input line

If the cursor is not at the end of the input line, the suggestions are written at the end of the line anyway.
This is confusing (and has strange side effects if the suggestion should be accepted).
It would of course be nice if the suggestion could be inserted at the cursor position.
If this is technically not possible or too hard to implement (as I suspect), I suggest to temporarily switch off the suggestions if the cursor is not at the end of the input line.

But fish will show this suggestion at the end of the line?
The problem is that then accepting this suggestion gives you a nonsense command.

In the case described on the PR, the buffer would be "dock" after typing the "o", the suggestion would add "er" to the end of it. Pressing ^E twice accepts the "er" and leaves the buffer as "docker".

Do you have an example that produces a nonsense command?

Thanks for those examples. I hadn't considered those cases.  I've pushed another commit to #350 that moves the cursor to the end of the buffer in the completion pseudoterminal to ensure that completions are only generated at the end of the buffer. Let me know if that solves the issue for you.
I've come across another similar issue and I'm not sure how to solve it. Typing ls "/" results in a suggestion of ls "/"ls "/bin". The issue seems to be that pressing tab after a quoted string moves your cursor to the end of the string in the quote and fetches completions there. Do you have any idea how to prevent this behavior? I may end up asking on the mailing list since I haven't come up with anything browsing through the docs for completion-related options and zstyles.

It works perfectly now.
I can confirm that pressing tab in a quoted string replaces the cursor, and I also did not find a zle setting to change this behaviour. Probably it is really best to ask on the ML.

Ok I'm going to go ahead and close this ticket and open a new one for the issue described in my last comment.


cuda based methods(VGICP_CUDA, NDT_CUDA) do not work

Hi ,
I get nice results for GICP, VGICP.
However, With Cuda-based methods, it just outputs an identity transform.
I have seen https://github.com/SMRT-AIST/fast_gicp/issues/69, and tried the fix but did not work either.
My GPU and CUDA settings are as follows;
 CUDA Device Query (Runtime API) version (CUDART static linking)

Detected 1 CUDA Capable device(s)

Device 0: "NVIDIA GeForce GTX 950M"
  CUDA Driver Version / Runtime Version          11.4 / 11.4
  CUDA Capability Major/Minor version number:    5.0
  Total amount of global memory:                 4046 MBytes<PHONE_NUMBER> bytes)
  (005) Multiprocessors, (128) CUDA Cores/MP:    640 CUDA Cores
  GPU Max Clock rate:                            1124 MHz (1.12 GHz)
  Memory Clock rate:                             1001 Mhz
  Memory Bus Width:                              128-bit
  L2 Cache Size:                                 2097152 bytes
  Maximum Texture Dimension Size (x,y,z)         1D=(65536), 2D=(65536, 65536), 3D=(4096, 4096, 4096)
  Maximum Layered 1D Texture Size, (num) layers  1D=(16384), 2048 layers
  Maximum Layered 2D Texture Size, (num) layers  2D=(16384, 16384), 2048 layers
  Total amount of constant memory:               65536 bytes
  Total amount of shared memory per block:       49152 bytes
  Total shared memory per multiprocessor:        65536 bytes
  Total number of registers available per block: 65536
  Warp size:                                     32
  Maximum number of threads per multiprocessor:  2048
  Maximum number of threads per block:           1024
  Max dimension size of a thread block (x,y,z): (1024, 1024, 64)
  Max dimension size of a grid size    (x,y,z):<PHONE_NUMBER>, 65535, 65535)
  Maximum memory pitch:<PHONE_NUMBER> bytes
  Texture alignment:                             512 bytes
  Concurrent copy and kernel execution:          Yes with 1 copy engine(s)
  Run time limit on kernels:                     Yes
  Integrated GPU sharing Host Memory:            No
  Support host page-locked memory mapping:       Yes
  Alignment requirement for Surfaces:            Yes
  Device has ECC support:                        Disabled
  Device supports Unified Addressing (UVA):      Yes
  Device supports Managed Memory:                Yes
  Device supports Compute Preemption:            No
  Supports Cooperative Kernel Launch:            No
  Supports MultiDevice Co-op Kernel Launch:      No
  Device PCI Domain ID / Bus ID / location ID:   0 / 1 / 0
  Compute Mode:
     < Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >

deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 11.4, CUDA Runtime Version = 11.4, NumDevs = 1
Result = PASS

I will try in another GPU as well but I wonder what could cause this.

Sample data is;

Where green is the target. You can give it a try in your setup with data here; (find source and target pcds)

Hmmm, I'm not sure, but I guess you may need to specify CUDA compute capabilities in CMakeLists.txt as your GPU is a bit old one.

I already do specify that in CmakeLists. Otherwise the code crashes complaining about incompatible cuda-hardware duo

I met the same problom, got identity output transformation in kitti demo. Have you found any solution?  T_T

I met the same problom, cuda methods got identity output transformation in kitti demo in ROS. And I found cuda methods work well in non-ros env.

I don't know if that should affect in a way, which CUDA version are you using?

I also run into ;
[fast_gicp_client-1] terminate called after throwing an instance of 'thrust::system::system_error'
[fast_gicp_client-1]   what():  parallel_for failed: cudaErrorNoKernelImageForDevice: no kernel image is available for execution on the device

Hi, I got the same problem, VGICP works but VGICP_cuda does not work. VGICP cuda give the same transformation every time.

I'm running into the same problem.  I'm using a GTX1070 which is compute capability 6.1.  I have added the architecture to the CMakeLists.txt, but that doesn't fix it for me.

I believe I have figured out the problem that causes this: PCL was built without CUDA support.  I rebuilt and reinstalled PCL library with CUDA support, and the CUDA methods in fast_gicp started working correctly (as seen by printing the value of getFinalTransform on all methods).

I believe I have figured out the problem that causes this: PCL was built without CUDA support. I rebuilt and reinstalled PCL library with CUDA support, and the CUDA methods in fast_gicp started working correctly (as seen by printing the value of getFinalTransform on all methods).

wow, good work.

I rebuild my pcl library with "-WITH_CUDA = TRUE "，but still meet this problem
terminate called after throwing an instance of 'thrust::system::system_error'
what():  for_each: failed to synchronize: cudaErrorIllegalAddress: an illegal memory access was encountered
Aborted (core dumped)
do you know the reason, i need help

I rebuild my pcl library with "-WITH_CUDA = TRUE "，but still meet this problem terminate called after throwing an instance of 'thrust::system::system_error' what(): for_each: failed to synchronize: cudaErrorIllegalAddress: an illegal memory access was encountered Aborted (core dumped) do you know the reason, i need help

Hi, bro, make sure the lib, such as pcl, cuda, eigen version is correct. At first, my program couldn't run. Later, after repeated troubleshooting, I found that there was a problem with the version number of the dependent library.

Thanks. I found that my code runs successfully when I comment out the following lines:
// std::cout << "--- ndt_cuda (P2D) ---" << std::endl;
// fast_gicp::NDTCuda<pcl::PointXYZ, pcl::PointXYZ> ndt_cuda;
// ndt_cuda.setResolution(1.0);
// ndt_cuda.setDistanceMode(fast_gicp::NDTDistanceMode::P2D);
// test(ndt_cuda, target_cloud, source_cloud);
// std::cout << "--- ndt_cuda (D2D) ---" << std::endl;
// ndt_cuda.setDistanceMode(fast_gicp::NDTDistanceMode::D2D);
// test(ndt_cuda, target_cloud, source_cloud);
This implies that there might still be some bugs in the test code for P2D or D2D

I rebuild my pcl library with "-WITH_CUDA = TRUE "，but still meet this problem terminate called after throwing an instance of 'thrust::system::system_error' what(): for_each: failed to synchronize: cudaErrorIllegalAddress: an illegal memory access was encountered Aborted (core dumped) do you know the reason, i need help

Hi, bro, make sure the lib, such as pcl, cuda, eigen version is correct. At first, my program couldn't run. Later, after repeated troubleshooting, I found that there was a problem with the version number of the dependent library.

Thanks, I will find these dependent libraries later！


Read error while opening dxf - Invalid or incomplete DXF input

I have generated a new drawing from the acadiso.dwt template using AutoCAD v2019.  I then saved this drawing file in dxf format in AutoCAD.  Using the IxMilia.Dxf library to open the file and then save a copy appears to generate an invalid dxf file that I am unable to open in AutoCAD or BricsCAD.
AutoCAD displays the error message...

Unknown group 102 for table on line 758.
Invalid or incomplete DXF input -- drawing discarded.

DraftSight v2018 will open the file and includes added entities, however it displays a warning before opening the file...

ViewTableRecord(D): Record name is empty - Ignored

using System.IO;
using IxMilia.Dxf;
using IxMilia.Dxf.Entities;
using Xunit;

namespace plansTest1
{
    public class UnitTest1
    {
        [Fact]
        public void ReadWriteDxf()
        {
            // Open existing drawing file
            DxfFile dxfFile = new DxfFile();
            using (FileStream fs = new<EMAIL_ADDRESS>FileMode.Open))
            {
                dxfFile = DxfFile.Load(fs);
            }

            // Add a line entity to the file
            dxfFile.Entities.Add(new DxfLine(new DxfPoint(0, 0, 0), new DxfPoint(100, 100, 0)));

            // Save a copy of the file
            using (FileStream fs = new<EMAIL_ADDRESS>FileMode.Create))
            {
                dxfFile.Header.SetDefaults();
                dxfFile.ViewPorts.Clear();
                dxfFile.Save(fs);
            }
        }
    }
}

Blank_test.dxf.txt
Read_Write_Test.dxf.txt

Hi @brettfo ,
We've got a workaround for our purposes. Your comment here seems to be correct.
Cheers
        public static DxfFile Clean(DxfFile dxfFile)
        {
            dxfFile.Header.SetDefaults();
            dxfFile.ViewPorts.Clear();
            dxfFile.Views.Clear();

            foreach (var dxfFileLayer in dxfFile.Layers)
            {
                dxfFileLayer.ExtensionDataGroups.Clear();
            }

            foreach (var dxfLayout in dxfFile.Objects.OfType<DxfLayout>())
            {
                dxfLayout.PlotViewName = dxfLayout.LayoutName;
            }

            return dxfFile;
        }

@patnewp Thanks for finding the workaround.  I presume that every DxfLayout object has a valid LayoutName that can be used as the default?  Do you have any DxfPlotSettings objects with a null PlotViewName?  DxfLayout inherits from DxfPlotSettings so I'm interested in what to do for a DxfPlotSettings object with an empty name that can't be populated from the layout name.

I presume that every DxfLayout object has a valid LayoutName that can be used as the default?

Yes in this case.

Do you have any DxfPlotSettings objects with a null PlotViewName?

No they are all DxfLayout with PlotViewName==""
I'm not sure what purpose the PlotViewName has. We could try just setting it to a random number and see how that goes and then you don't have any requirement that the DxfPlotSetting is a DxfLayout.

I just created PR #95 which I think addresses this.  Can you take a look to see if the tests cover your scenario?  Also if you have the extra time, could you pull down the changes from the plot-view-name branch and see if you can use your drawings?


Automated Release Builds

You may find this automated matrix release build useful. Having prebuilt binaries to consume speeds up Docker builds significantly.

Triggered on new Github Release creation.
Binaries for each os/arch combination.
Sets the cobra version to release tag name.

@RoryQ
Thank you for sending the PR! And so sorry for the late response.
Since this project is using Bazel and generates the final binary and docker image using it,
I think we should use Bazel to create the binary assets for the GitHub release too.


SIL: correct the definition of SwiftInt

Int in Swift is defined to be intptr_t.  long is equivalent, but
not portable as it relies on LP64 which is not guaranteed (Windows is
LLP64, not LP64).  This corrects the definition to be more portable.

Replace this paragraph with a description of your changes and rationale. Provide links to external references/discussions if appropriate.

Resolves SR-NNNN.

CC: @eeckstein

@swift-ci please test


feat(pubsublite): alarm registry implementation

This PR provides an implementation for AlarmRegistry, an asynchronous way to run a function at a specified time interval.

This change is

While this will shutdown the alarm "eventually" that might be long (if the period is long). If you wanted to shutdown the alarm quicker you should need to add a future<...> timer_ to state_, initialize it with the value returned by cq.MakeRelativeTimer(), and then do something like state_->timer.cancel().

This code actually fences future runs- since the lock is held while the callback is called, you have the guarantee by the time the destructor runs to completion that 1) the callback is not running (since then we wouldnt be able to get the lock) and 2) the callback will never run again (since we check the shutdown variable before running the callback). Yes there is an outstanding alarm on the completion queue, but it will be a no-op when it does run.


Inline fix not working with multiple function

The inline fix "/fix" commands don't work with multiple functions. If I select a code block with multiple functions and give a fixup instruction, it is just applied to the first function of the selected code.
See this video for the behaviour:
https://github.com/sourcegraph/cody/assets/44617923/c4a9e76f-2560-4db2-8c94-d28ab93aa345

@deepak2431 OH I think i know what happened.
When you first clicked the + signed, the inline chat was already opened for you on line 151:

but then you clicked on line 121 again, which canceled the selection and opened a new inline chat for line 121 only, that's why it only updated the first function.
I know the vs code API is very confusing! I would recommend using the new refactor code in the right click menu to start inline fixup, which is wayyyyyy easier!

@abeatrix Thanks for looking into this. I tried doing this with the Refactor command, and it worked fine.
Hmm, I see the issue now. Would it be possible to remove the selection not considered for the inline fix in case of such a situation?

In this case the range value gets reset to line number when the second time the + button is clicked
https://github.com/sourcegraph/cody/blob/1a78a3049c6547ee1929a48f8c10b90b75ccfaad/vscode/src/main.ts#L196-L209
So you see below the Start and end are basically the same thing so the only way this works is by the text prefix/suffix to generate an answer coz no "actual text" is selected
options.range
s {c: r, e: r}
c:
r {c: 87, e: 0}
e:
r {c: 87, e: 0}

There could be two ways to solve it

I am looking at ways in which this edge case could be  handeled by "unselecting" the previous text coz the range seems like a default property of Vscode so skate around it might be very challenging
The alternative is to say an error which says something along the lines of "Nothing selected" but that might confuse the user even more. Let me think a bit about this.

Hmm, I see the issue now. Would it be possible to remove the selection not considered for the inline fix in case of such a situation?

unfortunately that's part of the vs code API that we don't have control over, but the suggested route should solve this issue. Once the interactive API is available, we will move this logic over so this will not be an issue in the future hopefully :)


STENCIL-2448: Add expanded view of swatch on hover

Add a larger view of a swatch image when option is hovered over.
@mjschock @mcampa

Can you please add an entry to the CHANGELOG.md file?

Also, can you post a screenshot on how this looks :)

💚


About Android.mk file

Hi,
I'm just a beginner in Android NDK and i'm trying to implement Baresip to my project.
I followed the construction. Put 4 libraries were downloaded to jni folder.
Them go to each folder run command "make".
Now I don't know how to config Android.mk file to build share library in this. Anyone can show me some ideas?

@giaotuancse you should add one target for make file
libbaresip.so: Makefile librem.a libre.a
	@make $@ -C baresip $(COMMON_FLAGS) STATIC=1 \
	LIBRE_SO=$(PWD)/re LIBREM_PATH=$(PWD)/rem \
	EXTRA_MODULES="opensles" ANDROID=1

Run this command
make libbaresip.so
It will create libbaresip.so in baresip folder. Then you need create JNI wrapper by C to call baresip function. Some examples exist on test folder. It would help, I think :)


Task 9, step 1

The page is about upgrading v.14 to v.17, but the text says:
"(Multitenant only) Mount the tenant to the version 15 server instance."

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

ID: 5a8b2a8e-89a9-dda2-7d06-c433f2127044
Version Independent ID: 4a968a4c-8ad7-8d9b-b966-b08daf4bda9a
Content: Upgrading Customized C/AL Application to Microsoft Base Application - Business Central
Content Source: dev-itpro/upgrade/upgrade-to-microsoft-base-app.md
Service: dynamics365-business-central
GitHub Login: @jswymer
Microsoft Alias: jswymer

Thanks for the feedback! The version has been changed to version 17. The updated article will be published soon.


In Tri-State Checkboxes how to get parent checked or indeterminate value ?

Hi I am stuck in a huge problem. I want to get parent checked or indeterminate value. How it's possible ?
Like the bottom image

Please help me out. Thanks

Hi,
maybe this will help you out:
this.uitree.treeModel.doForAll(function (node: TreeNode) {
	if (node.isSelected) {
	  console.log(node.id + " is selected");
	}

	if (node.isPartiallySelected) {
	  console.log(node.id + " is partially selected");
	}
});

this.uitree is the TreeComponent

Are you using ACE Admin theme ? Could you show your code in Plunker? Please, see my question https://github.com/500tech/angular-tree-component/issues/572
Thanks in advance.

You can use:
options: ITreeOptions = {
displayField: "name",
useCheckbox: this.selected
};


Add consensus gRPC endpoints

I suggest we put here https://docs.oasis.io/dapp/ a section
## Consensus layer endpoints

### Mainnet

- gRPC HTTP endpoint: `https://grpc.oasis.dev`
- Rosetta gateway: `...`

### Testnet

- gRPC HTTP endpoint: `https://testnet.grpc.oasis.dev`
- Rosetta gateway: `...`

for anyone writing a dApp and wanting to communicate with the consensus layer.

Implemeted in #668.


filter(ticdc): Add row filter.

What problem does this PR solve?

Issue Number: close #6160
What is changed and how it works?

Add a interface Filter to filter pkg:

type Filter interface {
	// ShouldIgnoreDMLEvent returns true and nil if the DML event should be ignored.
	ShouldIgnoreDMLEvent(dml *model.RowChangedEvent, rawRow model.RowChangedDatums, tableInfo *model.TableInfo) (bool, error)
	// ShouldIgnoreDDLEvent returns true and nil if the DDL event should be ignored.
	ShouldIgnoreDDLEvent(ddl *model.DDLEvent) (bool, error)
	// ShouldDiscardDDL returns true if this DDL should be discarded.
	// If a ddl is discarded, it will neither be applied to cdc't schema storage
	// nor sent to downstream.
	ShouldDiscardDDL(ddlType timodel.ActionType) bool
	// ShouldIgnoreTable returns true if the table should be ignored.
	ShouldIgnoreTable(schema, table string) bool
	// Verify should only be called by create changefeed OpenAPI.
	// Its purpose is to verify the expression filter config.
	Verify(tableInfos []*model.TableInfo) error
}

Add a sqlEventFilter which can filter dml/ddl event by its type.
Add changefeedNotRetryErrors = [ErrExpressionColumnNotFound, ErrExpressionParseFailed]. A changefeed meets such an error during replicating  will enter error state and will not retry automatically, requiring the user to manually modify the filter configuration and resume it.
Add verify fliter logic to create changefeed and update changefeed APIs to check if the filter config is valid.
When creating a changefeed with cli, if the filter is incorrectly configured, the following message will pop up:

Check List
Tests

[x] Unit test
[ ] Integration test (I will add integration test in another PR.)
[x] Manual test

I am still working on adding more test cases to cover the new fwature.
Questions
Will it cause performance regression or break compatibility?
Do you need to update user documentation, design documentation or monitoring documentation?
Release note
Make TiCDC can filter DML by column value SQL expression and even type and filter DDL by event type and regular expression.

I wii split this PR into three smaller PRs.

/run-all-tests

/run-all-tests

/run-all-tests

/run-integration-tests

/run-all-tests

/run-integration-tests

/run-all-tests

/run-kafka-integration-tests

/run-dm-ingegration-tests

/run-dm-integration-test

/run-all-tests

Codecov Report

Merging #6095 (82defd1) into master (bcb773a) will increase coverage by 0.2505%.
The diff coverage is 70.3324%.

Flag
Coverage Δ

cdc
66.1687% <70.2794%> (+0.2947%)
:arrow_up:

dm
51.9405% <65.9362%> (+0.0677%)
:arrow_up:

engine
63.5284% <78.6764%> (+0.4316%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.
@@               Coverage Diff                @@
##             master      #6095        +/-   ##
================================================
+ Coverage   59.0443%   59.2948%   +0.2505%
================================================
  Files           736        751        +15
  Lines         85346      86284       +938
================================================
+ Hits          50392      51162       +770
- Misses        30483      30598       +115
- Partials       4471       4524        +53

/run-verify
/run-integration-tests

/merge

/run-verify
/run-dm-integration-test

/run-verify
/run-kafka-integration-tests
/run-dm-integration-test

/run-kafka-integration-tests

/run-kafka-integration-tests
/run-dm-integration-test

/run-dm-integration-test


Unable to refresh

Hello,
I was using the plugin flawlessly until earlier today. No changes were made anywhere but it started showing this error message when I try to refresh data on PowerBI:
"500 - Something went wrong! We've encountered an error and cannot fulfill this request. We will trace the error and get a fix out soon.  5/11/2022 5:43:20 PM (UTC) "
Would this be a known issue? I tried using the plugin in other queries, but I'm having the same response so far.
I appreciate any attention on this, thank you!

Hello,
I'm receiving this error messagens too.
Does anyone know how to proceed?
Thanks

Hola, me pasa lo mismo. El complemento venia funcionando bien.

My team is getting the same error and cannot refresh our reports. Pasting the full error below.
Data source error: Error:

This operation is not supported for a relative URI.

Azure DevOps

Service Status
Support
@AzureDevOps

            <img class="logo" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0CAYAAADL1t+KAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAKChSURBVHgB7f0JtGXJVd8J77gvX85ZmVlZlZk1D6oqVWmiJNS4AUndBoQlJhvaQu4PDwi6V4NtjD8b2gZ5+fNn7MbubtMLhKdeDZKHXr0QuOkGg2g0YAmQBBJSlaZSzaox56ky883v7j5xTgx774hz33s5vnfe/1f18p4hTkScc889/9g7dsRx3EAAAAAA2NCMCAAAAAAbHgg6AAAAMAAg6AAAAMAAgKADAAAAAwCCDgAAAAwACDoAAAAwACDoAAAAwACAoAMAAAADAIIOAAAADAAIOgAAADAAIOgAAADAAICgAwAAAAMAgg4AAAAMAAg6AAAAMAAg6AAAAMAAgKADAAAAAwCCDgAAAAwACDoAAAAwACDoAAAAwACAoAMAAAADAIIOAAAADAAIOgAAADAAIOgAAADAAICgAwAAAAMAgg4AAAAMAAg6AAAAMAAg6AAAAMAAgKADAAAAAwCCDgAAAAwACDoAAAAwACDoAAAAwACAoAMAAAADAIIOAAAADAAIOgAAADAAIOgAAADAAICgAwAAAAMAgg4AAAAMAAg6AAAAMAAg6AAAAMAAgKADAAAAAwCCDgAAAAwACDoAAAAwACDoAAAAwACAoAMAAAADAIIOAAAADAAIOgAAADAAIOgAAADAAICgAwAAAAMAgg4AAAAMAAg6AAAAMAAg6AAAAMAAgKADAAAAAwCCDgAAAAwACDoAAAAwACDoAAAAwACAoAMAAAADAIIOAAAADAAIOgAAADAAIOgAAADAAICgAwAAAAMAgg4AAAAMAAg6AAAAMAAg6AAAAMAAgKADAAAAAwCCDgAAAAwACDoAAAAwACDoAAAAwACAoAMAAAADAIIOAAAADAAIOgAAADAAIOgAAADAAICgAwAAAAMAgg4AAAAMAAg6AAAAMAAg6AAAAMAAgKADAAAAAwCCDgAAAAwACDoAAAAwACDoAAAAwACAoAMAAAADAIIOAAAADAAIOgAAADAAIOgAAADAAICgAwAAAAMAgg4AAAAMAAg6AAAAMAAg6AAAAMAAgKADAAAAAwCCDgAAAAwACDoAAAAwACDoAAAAwACAoAMAAAADAIIOAAAADAAIOgAAADAAIOgAAADAANhCAABwhZlZHNPSmGhxmWl2cbnZ4mh6ytGWkWuWuV3eMT2i6XYdAHAlgKADAC6ZxTHT6ZklOjmz3Ag30ytz3adzXsJdI93cJfQfzTbmeKSjcbPiBX7vdkc3bJ+iG7ZNNcuj5m+KAABrxzHnnxgAAKyEt76fP7tIpxoRPzOz3G7rBJzafxxFq9sLeyPqnD+529x+xgcPx/XwuaU5/MCuKbp1zzTd3Hzu3IqeQQBWAwQdALAi3nXuRfzI+cXGIh+3Au7xH/t3TtH+HVO0uxFe/zAZN1b7QpN+bonp/PyYLi6M27SdaHemupf2VsBbEecs6hSEX4j8LXum6La9W+nu/dMEAOgHgg4A6MUL+VOnFujpU4tNn/i4tbSjNb6z6QN/8OC2RsgdLY879/ty87fUGO1LzWNlKSzPL3eueC/w8XHjJT4+ecbRK8/UuuHjA2nMFKz6TuR9effftLUR9+m28QAA0EDQAQBVnjw5T48dX2jF2Qv4KLjTvaB7cf2GO3e0ZvRSI9itmIflVsgbxW4/OQh8s/1i07c+3+xI7vUg3slKb4W7E3WPFfRotfuy77lxuvnbCmEHQABBB9eNxebWe6V52B/Ygkjn9cTxC0v06JE5OtdY1SNhkfvPUfC1v/WeXW1fdyfeWcCXx3mbXPZ/Pth9pknot6f+dB8cNx5n0absareCPjYW/c5pR68/vJ1edWArAQAg6OA64cX88UYw9k6NWtvszq2IbF4PPH5inr5wdK5d9ravd7G3lnloc3lBP7hrqhXSRSXkwipvPpfTNm+9UxD0rm+9FXSiQqRzv3m3Pbvec397dNXHdH55V2Olf/v9u2n3NljrYHODXwC4jrjWOs9R0eB64cX2Y09faC1zr5btd+Lk9xK/JW6F07vXG8O6DYAbB2vcC/hY9IN3yy7s5yTaEVafei0WrcyNGElvdlyYX6b/8KVX6JGX5wiAzQzGoYPrwnTzxL5jq6OjTb/qvbCsris+Cv1jT1+kmQURvS7c7BpHs4vBAueu33yZo3h3Au+1Vop73Lc8DoPRQ1R7txTHq5Map66EXGzzx/gJabaEW2ahyXNuwXsBxvT5l2fp5fOL9Na7d9Ee3FNgEwKXOwCbmAtezJ+62I4tzyIe3OykhT3u2zrl6OFbtzUK67KLnXO/+XIMkAv7FpuNiyHyPbnOZUCcdKGL/vKxGOLmy9y7bYq2TTsVnBfr5et/ema5HRvvg+a+88E9EHWw6YCgA7BJ8WL+0UbMvYUe+8lbCQwi2QbE+dWRU6Lu0/px535ceOwvT6K+HKx2ERC3GKLgY6Cbp+sLZyXoYxv53vyNmgr52eO2TY2SgMfAvByol5d9PV56ZZHOzY7pux7aQwd2IjYDbB4g6ABsQryYf/jJC61lOzLWro1sT5+uc463FnyzbW8j6j5Azm9dCi74LPCcxqZHkc9D1CpWOlExocxUU87eHaPmU4i4iw0NVmPik7CHup2cWaJnTy/SW+7eSa++eRsBsBlAHzoAm5DPvjgbLHMRaRa6uDn1bEtc2B9C45oPP6zNTxjj52DfsXVEfrzCmPPwtYUwJn1ciHnnWieSfeZiBjnylrmf333UinQcyhZqoZfZ9PNzV7ebd25p54T/1HMzjet9im69AY86MHxgoQOwyXj05Tn6wrE5Nbbc9pOP0jC1/Bn3FVZ7mKu9TTfq9o3NU6Vbjxa4mfo19p2LYLk9jRhPKS+BL5dV33nXPaD7+0di3TcK/EQ2j59YoG9/YBfdtBOiDoYNokYA2ERcmB/To2GceR4CFv5JI8eysLbpXIxCt1Y1CYEO/eBjChPH6AliuvQuC/g4Fx2tdgr5bd/SWfvRI5Dne9dvbxPVFcusPAHbtzh68Oat9HtPXaTz88sEwJCBoAOwifjjF2Y7Xeas4xSmXbXTAeTgtDBSXDjzlIAma1vM9Ob/xmz6xlmNNh/L2WOoC5Tz/eb+XelS6GM9SOZNuUGR6mTThOy3T4/ovgNb6ePPzBAAQwaCDsAmwb8t7YVzC8VkLbI/m0U/ebuNsvVMcnrWwkLmQoC5fec5kZ2LXep4PC5GuPthackaZ2Hpk3AksCmfjJiHxLJB4kXdTxX7iWcvEgBDBYIOwCbhy02/ORez8rnqahJyii53J0Q1WuxZaOXUre3sccxhytawTNpqVsIc3O++z9v3f49DA2FMenY525jo/vIb3KywR2Ldb907TWdml+nFc4sEwBCBoAOwCThyfomONn9dZLj2UzOxUkKOJq603INwyr5xaQ2ndH2Ws7S2o5ueSDUUpp1LddNBdbZcWdfSxa7qGnbEdf8il0ePzBMAQwSCDsAm4KmT812AmZc850o3duVtZ1l8BSlILeyL1jeXlnq3j8XLVWRkOxkXPYchai67zCuNh/iphsJxrgsR1fvbw9+WppA92xx97uVZAmBoQNAB2AQ81/SfszRnPVH55ATuCZc/2Q4xIzHUjKr96t2c7v5YRzE6Xc0ER1qgvbs9NxJIuOi5twzZ2FCeABINlZAfEaUdh3ZvoSdOzNP8kmqqALDhwcBMAK4RS0tLNF5e7j7Hy+17wJeb9eXlpU7EmnW/37Ps9zfLTrihIxzUasv0tNo+vaVbH01NNQI5Cn9T9MrSiHbQfGMBT9Fy04YfByvYjWTwW1BC183k0n5Ei9eP7/a7HXcrLlekO8RlRR13SdrtJMTU5XHmXXn. The exception was raised by the IDbCommand interface. Table: EpicLink.
Cluster URI: WABI-US-NORTH-CENTRAL-H-PRIMARY-redirect.analysis.windows.net
Activity ID: 4edf2b5a-8a67-484f-9cfe-b0f0e8dea77b
Request ID: bcb2530a-d20a-4510-b87e-bfe9fa29877c
Time: 2022-05-17 17:12:55Z

We also have this issue.

Hey guys, for us is working now. For you too?
Thanks

Yes, our dashboards could refresh as well. Ours didnt work an hour ago but the refreshes did go through just now. Does anyone have any idea what the fix was?

Yep, working for me too. I believe the problem was with a recent change to AzDO.


Improve block metadata reading performance

The CPU usage will be reduced from 2 cores to 1.5 cores based on my performance test.

[x] If this pull request closes/resolves/fixes an existing issue, replace the issue number. Fixes apache/skywalking#11999.

Codecov Report
Attention: Patch coverage is 95.91837% with 8 lines in your changes are missing coverage. Please review.

Project coverage is 48.10%. Comparing base (cc01ffd) to head (8e58152).

Files
Patch %
Lines

banyand/measure/query.go
0.00%
4 Missing :warning:

banyand/stream/query.go
0.00%
4 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #407      +/-   ##
==========================================
- Coverage   48.56%   48.10%   -0.47%
==========================================
  Files         173      173
  Lines       21570    21592      +22
==========================================
- Hits        10475    10386      -89
- Misses      10196    10319     +123
+ Partials      899      887      -12

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Changing Debug Options crashes visual studio

I seem to be able to connect to the Pi and verify the connection but setting the connection in the Raspberry Debug Settings crashes the IDE with the following:
Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ArgumentNullException
at System.Diagnostics.Contracts.Covenant.Requires[[System.__Canon, mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089]](Boolean, System.String, System.String)
at RaspberryDebugger.PackageHelper.GetSolutionProjects(System.Collections.Generic.List1<EnvDTE.Project>, EnvDTE.Solution, EnvDTE.Project)    at RaspberryDebugger.PackageHelper.GetSolutionProjects(System.Collections.Generic.List1<EnvDTE.Project>, EnvDTE.Solution, EnvDTE.Project)
at RaspberryDebugger.PackageHelper.WriteRaspberryProjects(EnvDTE.Solution, RaspberryDebugger.RaspberryProjects)
at RaspberryDebugger.SettingsCommand+d__12.MoveNext()
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.b__6_0(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(System.Object)
at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)

This might have fixed it for me (PackageHelper.cs ln 539):
if(projectItem.SubProject != null)
{
GetSolutionProjects(solutionProjects,solution,projectItem.SubProject);
}
Are you taking pull requests?

@mathtone: Sure, that would be really nice.  I've been trying to repro this for 20 minutes.
The subproject support is pretty new and this is my first VS extension so I'm still learning.

...or I can just fix it myself since its' only a couple of lines.  Your call if you want to get a GitHub fold star :)

FIXED for v1.4
@mathtone: I've just published v1.4 that hopefully fixed this problem (I wasn't actually able to repro it).  It can take some time for extension updates to become available in Visual Studio.  You can download the extension directly from the release if necessary:
https://github.com/nforgeio/RaspberryDebugger/releases/tag/v1.4
Please reopen this if you have any more trouble.


Fix name of SC suggesting encryption

Link check error fixed on a different PR https://github.com/ondat/documentation/pull/174


Templates: "Early return" instead of nesting

Hi,
Is there any way to "early return" inside a template? Meaning that, is there any way to change the following template

Hello

{{#if foo === true}}

Foo is true.

{{/if}}

to the following one?

Hello

{{#if foo === false}}
    {{return???}}
{{/if}}

Foo is true.

No, there's not a way to do early returns, as templates are purely declarative. You can, however, put your
Foo is true.
 in a partial and render that conditionally e.g. {{#if foo}}{{>foo-is-true}}{{/if}}.

Thank you @evs-chris, that's indeed a good alternative.


Example uses incorrect variable name

In Example: Only runs on branches named releases/* should be retained for a long time,

startsWith(variables['Build.SourceBranchName'], 'releases/')

should be replaced with

startsWith(variables['Build.SourceBranch'], 'releases/')

The former expression will always evaluate false because it includes only the last path segment, while the latter includes the whole path.
Reference here.

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

ID: 46a129c0-8a1c-40c3-47e6-8d95fbce5f26
Version Independent ID: 8437e895-7164-8585-3b0d-adacd05e6851
Content: Using Tasks to Retain Runs in Azure Pipelines - Azure Pipelines
Content Source: docs/pipelines/build/run-retention.md
Service: azure-devops-pipelines
Sub-service: azure-devops-pipelines-build
GitHub Login: @moswald
Microsoft Alias: maoswald

Perhaps this is implementation-dependent?  I need to compare to this branch:

refs/heads/release/

@DanRogovin -- Dan, thank you for your feedback and follow-up.  Please consider these resources:

Azure DevOps Services
Azure DevOps on Stack Overflow

@moswald -- Matt, please look into this issue.


PHP 8.0 support

Elasticsearch has just released the PHP8 compatible update.
Thanks for the work!

Thanks.

Reopening as PHP 8 support hasn't been yet added to this package.

PHP support has been added in v1.3.0 🎉


Get-CimInstance Win32_ComputerSystem does not have Username property when using -ComputerName Optoin

Summary of the new feature / enhancement
I just moved from powershell 5.x to 7.2 and realized get-wmiobject was replaced by get-ciminstance.   Command output of Get-CimInstance Win32_ComputerSystem with -ComputerName option returns less data.
get-ciminstance -ClassName Win32_ComputerSystem -Property *
UserName displayed as an available property
get-ciminstance -ClassName Win32_Computersystem -ComputerName Computer1 -Property *
UserName is not an available property
I have tried adding Select-Object UserName and Format-Table Username with no success.    I have also tried $session=New-CimInstance -ComputerName Computer1 with and without DCOM option, the trying to using that Cimsession to retrieve value with no success.
Proposed technical implementation details (optional)
No response

Try get-ciminstance -ClassName Win32_Computersystem | fl * -Force

The docs for UserName state

Name of a user that is logged on currently. This property must have a value. In a terminal services session, UserName returns the name of the user that is logged on to the console not the user logged on during the terminal service session.

Because you are now no longer logged into that server directly and are accessing it through the network it's not going to have a user that is logged on interactively/console. This is expected behaviour, you should see it populated if someone has logged onto the host interactively (not just through RDP) and you run it remotely at the same time.

The docs for UserName state

Name of a user that is logged on currently. This property must have a value. In a terminal services session, UserName returns the name of the user that is logged on to the console not the user logged on during the terminal service session.

Because you are now no longer logged into that server directly and are accessing it through the network it's not going to have a user that is logged on interactively/console. This is expected behaviour, you should see it populated if someone has logged onto the host interactively (not just through RDP) and you run it remotely at the same time.
A better question is, what are you using it for? There might be a better and more reliable method available to you to get the desired information.

Jborean93,  I just have some basic scripts that I want to know the logged in users of the machine for  informational purposes for troubleshooting instead of remoting in just to find the user.   I can go back to PS 5.1 and use gwmi.   I am new to PS 7.x so if there is another way to pull the logged in user of a computer easily please let me know.  I have tried numerous ways and everytime I add the -ComputerName option it always returns blank but if I go to a computer and run (get-ciminstance -Class Win32_OperatingSystem).username it will work fine just not remotely.

You will find that Get-WmiObject will have the same problem. Both cmdlets just gather the WMI class information and the UserName property is going to be null/empty if there are no interactive users present.

That is correct.  I would expect it to be blank if no one is logged in, but when there is a user logged in Get-WmiObject will return the user but Get-CimInstance will still return blank.
Is my syntax correct for Get-CimInstance?
(Get-CimInstance -Classname Win32_ComputerSystem -ComputerName Computer1).username
I have also tried
Get-CimInstance -Classname Win32_ComputerSytem -ComputerName | Select -Object Username
I'm not tied to that command so if there is another way to pull logged in user in 7.x PS I am all for it.
Thank you everyone for your responses


python3 test.py err

in line 172 in PyDiffGame.py should it be as:
A_cl = self.__A - SP_sum
to make A be found by object.
While thanks for your graceful work，I'm new to the diffgame, please could tell more about the differential equation the example used? As dx/dt = Ax + Bu,the meaning in reality?
Could you please give some advice about how to deal with the pursuit/evasion scenarios like two cars with acc and thi controlling?

Thank you for your comment about line 172 - fixed in the latest commit.
About the theory being the model presented - a basic intro is presented in the readme files,
I suggest reading it.
About pursuit/evasion scenarios as you mentioned - I'm not sure we currently support these cases.
Can you be more specific?

Thanks for you apply. I.ve read the readme and the math, alse dealling with Riccati equation by hand.
First, just wondering the differential equation form in the Tutorial, as
A = np.array([[-2, 1],               [1, 4]]) B = [np.array([[1, 0],                [0, 1]]),      np.array([[0],                [1]]),      np.array([[1],                [0]])] X0 = np.array([10, 20])
What's the meaning of them in the real world?
What's more, I shouldn't bother you for asking using diff-game in Bicycle Model in car. Should learn more about these two first.
Thanks.

@zhang261007
PyDiffGame is intended for applying control on linear systems, when the modeling is done using the state space representation.
In general terms, the main concept at hand is the differential equation you mentioned. The matrix A is the system dynamics matrix - it defines the autonomous behavior of the system when no input is fed to it.  The matrix B is the input coefficients matrix - it defines the relations between the inputs to the differential model of the system and X0 is the initial vector of the variable X, as we are solving a differential equation and therefore need an initial condition.
Here you can find a relevant Wikipedia entry for further reading:
https://en.wikipedia.org/wiki/State-space_representation#Linear_systems

Thanks, and maybe as poor as my expression.
I know the math meaning of these matrix. I just wanna know what model A = np.array([[-2, 1], [1, 4]]) meaning, like pendulum , acrobots，Cart-Poles, or Quadrotors ?
Simple car as dxp=vpcosφp,dyp=vpsinφp.
If you have any actual values you would like to simulate and need any help, please comment further.
Thanks


Fixed a typo in pacing settings

Explanation of Bugfix/Feature/Modification:
Noticed a typo in the budget pacing settings that was bugging me and wanted to fix it for every one. Don't think it warranted GH/Trello issue
Schedle -> Schedule

Thank you!


Research / Implement pre-receive hooks rejecting unsigned commits

Developers often forget to sign their commits, especially if working with tooling that doesn't support signed commits by default. Rebasing a branch or other remedial steps for a long history of unsigned commits is painful at best. We should implement pre-receive hooks in all repositories to block unsigned commits.

Not sure what Github supports, but a local project hook would probably be good too. Thanks for opening 😄

Looked into this a bit and we might be able to do something like this link says: https://stackoverflow.com/questions/427207/can-git-hook-scripts-be-managed-along-with-the-repository.
After doing this, we might be able to use a .gitconfig file to point to the folder containing the hooks and create a hook to do the check.
Just have to be careful to make sure that the dco tool (https://github.com/coderanger/dco) will still work with this mechanism.

Agree.  I spent some time Thursday amending an older commit
+1 from me
Matt Hogstrom
PGP key 0F143BC1

On Sep 28, 2018, at 10:27, Mark Ackert<EMAIL_ADDRESS>wrote:
Developers often forget to sign their commits, especially if working with tooling that doesn't support signed commits by default. Rebasing a branch or other remedial steps for a long history of unsigned commits is painful at best. We should implement post-commit hooks in all repositories to block unsigned commits.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

I presuming the workflow of commit checks you are looking at is for those that are not done via pull request ( which is where the existing DCO bot does do the checks ) - is that accurate?

Correct - the workflow is to check primarily commits made in branches. By the time we issue a PR to merge into master we sometimes have a history of unsigned commits.

Appreciate that insight Mark!
So the challenge is as you mentioned - commit hooks  go it in the .git directory of a repo tree which isn't versioned. There are hacks around it, but all of those require local configurations which sound like just as much work telling everyone to use the dco tool (https://github.com/coderanger/dco) mentioned. Not sure if you see that tool as lacking or having issues with it - let me know.

I think the coderanger tool should fulfill our needs for now - every other option is nontrivial as we don't have server-side hooks.
I'll work on a small script that checks for and sets 'dco enable' in the current working repo for convenience.

Closing per ZLC discussion


Only publish wheel no test and use different tokens for test vs. prod. (GitLab #7) - [merged]

In GitLab by @arisilon on Oct 23, 2019, 08:31
Merges arisilon/issue-7 -> master

In GitLab by @arisilon on Oct 23, 2019, 08:31
enabled an automatic merge when the pipeline for b998e187aec66e904783ca23f9c18ad845480886 succeeds

In GitLab by @arisilon on Oct 23, 2019, 08:34
merged

In GitLab by @arisilon on Oct 23, 2019, 08:34
mentioned in commit ee0239e89a193ef7cde1c5e7a2cf474c1c1a1456


Removing traces of grzanka/beprof

Remove all traves of grzanka/beprof on services like: travis, appveyor, codeclimate etc...

codeclimate doesn't have option to remove repo from UI (WTF?). I've contacted support to do it. According to https://docs.codeclimate.com/docs/removing-a-repository:

Open Source: If the repository was added to Code Climate by clicking Add Open Source Repo, there is no "remove" option in the UI. We're happy to do that for you on the backend, just shoot us an email.

travis: grzanka/beprof already gone, see:

https://travis-ci.org/grzanka/
https://travis-ci.org/DataMedSci/

Remove from readthedocs and added again from new repo.


Matching fund

Here is my problem:
I want to give away $1,000 but if I give it directly to a collective (or spread it across a few), I feel like it's a missed opportunity to get also other people to give.
So I'd love to use that opportunity to do a matching fund. I will match all donations to any collective on Open Collective made in December.
Ideally, I should be able to share a special URL with a referral code to be able to track it.
With that URL people will see that whenever they give money, their donation will be doubled (if still enough funds in the matching fund).
It should also show up on my profile that I helped raised $x.
I'll try to take a stab at it if I can find the time.
Ideas on how to make a MVP work for this welcome.

We could create a new PaymentMethod linked to my UserCollective that anyone could use with a limitPerUser and with a balanceLimit. We could share in the URL a short version of the UUID.
The question is: do we record one Order for the totalAmount with 2 transactions (coming from the donor and from me the matcher) or 2 separate orders?
I’m leaning towards the former because it shows that as the donor I effectively gave $20 to the collective but only paid $10. And it’s also linking all this under one order.
But we would have to still add me the matcher in the Members table as a backer even though I haven’t created an order myself.
Any thoughts @asood123?

Making progress

@cuiki don't hesitate to chime in :-)


Move exception logging further up in execution

Whoops's handleException method was halting execution, which meant
that the logging method was never reached.

:+1:


autorefresh twitter

hi
thanks for making twitter useable, whish is no small feat these days.
i was wondering if you could implement an autorefresh/scroll feature. ive been using https://github.com/anomalyce/twitter-idle-autorefresh but it stopped working a few days ago. i really miss this, and it doesent seem to be developed anymore :(

Closing this in favour of #569


Start animation when the marker is detected, not before.

Hello,
I have loaded a GLTF animation and it works perfectly, the problem is that the animation starts automatically (hidden) when the page is loaded. Is it possible to start the animation only when the marker is detected?.
Is there any way to control it using the animation-mixer component for example?
Thanks!
url:https://tocapixels.com/lab/ar/
Works with "Hiro" marker: https://jeromeetienne.github.io/AR.js/data/images/HIRO.jpg
Code:
<html>
	 <script src="https://aframe.io/releases/0.7.0/aframe.js"></script>
         <script src="https://rawgit.com/donmccurdy/aframe-extras/master/dist/aframe-extras.loaders.min.js"></script>
<body style='margin : 0px; overflow: hidden;'>
  <a-scene embedded arjs='sourceType: webcam; debugUIEnabled: false;' >
    <a-marker preset="hiro">
			 <a-entity
      id="drone"
      position="0 0 -1"
      scale="1 1 1"
      gltf-model-next="src: url(https://tocapixels.com/lab/ar/models/busterDrone.gltf);"
animation-mixer="clip: BusterDrone; loop:once"
>
</a-entity>
    </a-marker>
	</a-scene>
</body>
</html>

can you solve this??? I have the same issue

In the source code, there are events, such as:
arController.addEventListener('markerNum', function(ev) {
	console.log("Detected " + ev.data + " markers.")
});
arController.addEventListener('getMarker', function(ev) {
	console.log("Detected marker with ids:", ev.data.marker.id, ev.data.marker.idPatt, ev.data.marker.idMatrix);
	console.log("Marker data", ev.data.marker);
	console.log("Marker transform matrix:", [].join.call(ev.data.matrix, ', '));
});
arController.addEventListener('getMultiMarker', function(ev) {
	console.log("Detected multimarker with id:", ev.data.multiMarkerId);
});
arController.addEventListener('getMultiMarkerSub', function(ev) {
	console.log("Submarker for " + ev.data.multiMarkerId, ev.data.markerIndex, ev.data.marker);
});

You can do animation after 'getMarker', but these events are not implemented in current aframe version, you have to DIY the source code to fire those events.

duplicate of https://github.com/jeromeetienne/AR.js/issues/217


Create living environment models for general tasks

New, assignment application is added with models for base tasks.
Refs TK-15

Thank you, I made changes according to your comments.

Fixed according to comments

@JsseL Any comments for this?


Add architecture detection to Dockerfile

I tried to build this image on a Pi and discovered it was hard-coded to fetch an amd64 zip of ngrok. This PR enhances the main Dockerfile so it downloads the correct file from the ngrok repository, depending on the architecture detected in the image as it's being built.
Notes:

This will conflict with #45, but it will be trivial to merge them manually.
I've ignored the aarch64 architecture - the download url is different for this arch and I have no way of testing what consequently would be more complicated code. I don't believe it's widely used, currently.
I've tested the change on a Pi 3 (reporting armv7) and an Ubuntu vm on amd64.

When this builds on Dockerhub for the use of the general public, will it still use the proper architecture? Also, on the terms of merge conflicts with #45, I'm fine rebasing if need be.

It should be fine. This change causes the ngrok download to be selected based on the arch reported by apk inside whichever Alpine base image is being used. Whatever causes the selection of the Alpine image (presumably the architecture of the build server) has already happened well before the changes I've made are executed and so it will continue to be whatever it was before (amd64, or the ngrok zip currently pulled down wouldn't work) and the corresponding ngrok will be obtained.
There is another Dockerfile.armhf which is set up for cross-building onto arm. I haven't touched that, so I don't foresee any problems with the cross-built image either. The one potential downside is that the Dockerhub built arm image and one created natively on arm hardware will have been created in slightly different ways. But that's got to be better than not being able to create one natively at all! I'm not familiar with the Dockerhub autobuild process, so if there's a way of squaring this circle, I don't know what it is.
As an aside, this technique is found in some of the official Docker images, for example Golang. This Dockerfile is held up in the documentation as an "exemplary" Dockerfile (see "Examples" at end). The Go images are created by different Dockerfiles based on base image (Alpine, Debian) but not architecture.


New details view expands way past tab area

Explain the bug
The selection of a folder/file goes beyond the tabs were the type of information is.
Logs
debug.log
debug_fulltrust.log
Screenshots

System Information

OS Version: Windows 10 21H1 19042.1055
App version: v1.5.32

@josh-65 I'm having a hard time understanding this issue, can you explain and add steps to repro this?

That we should add empty space to the right of the last column instead of stretching -> already included in #4643

The highlight/selection of a file and folder should not go pass the green line as that's were the tabs end (or if preferred max width of the window) but it end up extending pass the screens width and created a scroll bar too.

that might be it seem i also mention it in that issue and forgot. il update my comment on that one.


ASR SEAME Recipe

This pull request is for the SEAME recipe and includes the following:

Standard Zipformer with RNNT loss
Zipformer with hybrid autoregressive transducer (HAT) loss
Proposed Zipformer with hybrid autoregressive transducer (HAT) with an auxiliary LID branch and blank sharing for synchronization between ASR and LID predictions.

A separate one would be better, otherwise backward compatibility might be
broken since you have also modified the default parameters of the export
script.
On Sat, Apr 6, 2024 at 1:03 PM Amir Hussein @.***>
wrote:

@.**** commented on this pull request.
On egs/librispeech/ASR/zipformer/export.py
https://github.com/k2-fsa/icefall/pull/1582#discussion_r1554525321:
Since both are based on same zipformer architecture, I think they can use
the same export, the difference is in the parameters. I could also create a
separate one if needed.
—
Reply to this email directly, view it on GitHub
https://github.com/k2-fsa/icefall/pull/1582#discussion_r1554525321, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AOON42DLBNV26GBVPIGFVMLY356ZNAVCNFSM6AAAAABFZHCDSWVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMYTSOBUGQ2DEMBXHA
.
You are receiving this because you commented.Message ID:
@.***>


no sound after rotate device to landscape

hi, i found the device suddenly lose sound when rotate device? did u meet this problem?

Hi @fukemy
I tried this on the demo project and didn't experience any issues (Used iPhone X). Never heard about the problem - very strange. Are there any logs/warnings in the console?

sry, it's cause by playing cell video when scrolling (setCategory ambient), i removed it. Thanks


Support all authenication params

Adds support for approval_prompt, login_hint, and scope

Looks like part of this was implemented with 356ab8c8, but still missing the login hint and state params.

I just add force: true because I found a valuable example for that.
I still need to investigate the other two, and eventually add tests and update README / CHANGELOG.

Yes, force is valuable. The login hint is good because we know which email they are trying to connect their youtube to our platform with, so it helps cut down on an account select step. And state is very valuable in applications where multiple objects can have youtube connections, rather than just the current account. In our case, we need to pass which company is someone is trying to link to to youtube, so when they pass it back, we can save the access token for the right company.

State is mandatory for my app where a youtube account is linked to a specific resource. At present I just do Yt::Account.new(...).authentication_url + "&state=xxx" but it's far from good looking.

Hi there,
My name is Derek and I'm now one of the maintainers of the Yt gem. I want to both thank you for your contribution and apologize for the lack of feedback on your pull request. Maintaining an open source project like Yt is a pretty big job, and we're taking steps to prioritize maintenance and development of the project. We're hoping to review community contributions on a regular basis, as well as provide a roadmap for our development plans.
As part of this process we're going through the open PRs and taking action on each one, and for this PR we've chosen to close it. Unfortunately due to the sheer number of PRs and amount of time that's passed, we can't address your PR individually. If you'd like our thoughts, feel free to comment on your PR, and we'll try and get back to you in a timely manner. In lieu of that, some of the reasons we've closed PRs are:

a lack of tests. We strive for comprehensive coverage; this is important to us
the passage of time: things that were relevant when the PR was opened might not be as important anymore
feature need. Since adding features requires us to maintain them, we want to add features that many people will use

Thanks again for your contribution, and please let us know if you have any questions or comments.


How to register expressions?

I've tried making a Python file t.py with
from polugins import register_namespaces
import polars as pl
from polars_xdt import ExprXDTNamespace

register_namespaces(
    expression_namespaces={
        'xdt': ExprXDTNamespace,
    },
  )

pl.col('a').xdt.format_localized('%a')

If I type check it, I get:
$ mypy t.py
t.py:1: error: Skipping analyzing "polugins": module is installed, but missing library stubs or py.typed marker  [import-untyped]
t.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
t.py:11: error: "Expr" has no attribute "xdt"; maybe "dt"?  [attr-defined]
Found 2 errors in 1 file (checked 1 source file)

If I run it, I get:
$ python  t.py
/home/marcogorelli/tmp/.venv/lib/python3.10/site-packages/polugins/_types.py:35: UserWarning: Overriding existing custom namespace 'xdt' (on 'Expr')
  return pl.api.register_expr_namespace(name)(namespace)  # type: ignore

Am I doing something wrong?

Ah yes sorry, that is an limitation that I haven't yet put in the README (https://github.com/StefanBRas/polugins/issues/29) and I maybe might just remove the ability to register them with direct imports (https://github.com/StefanBRas/polugins/issues/30).
The runtime warning is because the plugin itself registers the namespace on import. Ideally I think that packages shouldn't register extensions themselves, because then you have side effects from imports. More pragmatically everybody probably won't follow this, so I'll make check to only register if it's not already registered.
In your example it would make sense to but in the pyproject.toml for xdt that it exposes an extension (see https://github.com/StefanBRas/polugins#third-party-package-example) and then use
register_namespaces(
   load_entrypoints = True
  )

I extended the README now, hopefully it makes more sense

I removed the ability to register extensions inline like that, since it was probably more confusing than helpful. Now you have to use metadata, which is then used to generate the type stubs as well


MountPath has to be unique within a statefulset

As part of creating statefulset spec for a role, currently we create some default mount as well as user specified mounts. These mount paths must be unique
  Warning  FailedCreate  8s (x14 over 50s)  statefulset-controller  create Pod kdss-nzmp4-0 in StatefulSet kdss-nzmp4 failed error: Pod "kdss-nzmp4-0" is invalid: spec.containers[0].volumeMounts[4].mountPath: Invalid value: "/mnt/vol1": must be unique

Moving stuff not related to API deprecation into 0.11.0.


Make CI run against proper python 3.10

Summary: Python 3.10 was released for a while now, let's move CI to 3.10 from 3.10-dev
Differential Revision: D38455626

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.008%) to 94.107%

Totals

Change from base Build<PHONE_NUMBER>:
-0.008%

Covered Lines:
2635

Relevant Lines:
2800

💛  - Coveralls


No changes in the training after bug fix

Environment info
Operating System: Linux
CPU/GPU model: CPU
C++/Python/R version: Python
LightGBM version or commit hash: 2.3.0 (Pypi/pip)
Error message (No error)
Based on this fix - https://github.com/microsoft/LightGBM/pull/2040/files#diff-c4d8a1b2c7a8733615f069f725543826, I was hoping to see change (better/worse not sure) in the training process but it's exactly the same (with the same seed). This is what I am getting with 2.2.x release and 2.3.0 release. Out of 181 features 18 are categorical features. 4 of the categorical features show up in top 10 features. So, this fix should have changed at least something in my experience. Is this expected? If yes, then what did the issue actually fix? Further, more broadly can someone please explain how categorical features are handled in lightGBM. I have gone through the documentation and I didn't find a coherent answer. Thank you for looking into this. I also have made sure that lgb.version points to 2.3.0. Unfortunately, I cannot talk about the use case and/or share the underlying data to reproduce the issue.
Train: (629804, 181) Eval: (157451, 181) Test: (196814, 181)
Training until validation scores don't improve for 500 rounds
[100]	train's auc: 0.847479	train's binary_logloss: 0.501343	valid's auc: 0.756983	valid's binary_logloss: 0.517463
[200]	train's auc: 0.892549	train's binary_logloss: 0.446909	valid's auc: 0.751598	valid's binary_logloss: 0.468684
[300]	train's auc: 0.921564	train's binary_logloss: 0.40718	valid's auc: 0.746589	valid's binary_logloss: 0.431524
[400]	train's auc: 0.941826	train's binary_logloss: 0.374625	valid's auc: 0.742161	valid's binary_logloss: 0.400417
[500]	train's auc: 0.95637	train's binary_logloss: 0.346123	valid's auc: 0.736357	valid's binary_logloss: 0.373203
[600]	train's auc: 0.967273	train's binary_logloss: 0.320509	valid's auc: 0.730499	valid's binary_logloss: 0.348605
Early stopping, best iteration is:
[106]	train's auc: 0.850898	train's binary_logloss: 0.497315	valid's auc: 0.75725	valid's binary_logloss: 0.513923
u_clf = lgb.LGBMClassifier(
    boosting_type='gbdt',
    class_weight='balanced',
    n_estimators=5000,
    learning_rate=0.05,
    num_leaves=32,
    max_depth=16,
)

fit_params = {
    'early_stopping_rounds': 500,
    'eval_metric' : 'auc',
    'eval_set' : [(X_eval, y_eval), (X_train, y_train)],
    'eval_names': ['valid', 'train'],
    'verbose': 100,
    'feature_name': features_lst,
    'categorical_feature': cat_features_lst,
}

u_clf.fit(X_train, y_train, **fit_params)

I think this bug is for the forced_split, not for main training logic.


Changelog

This includes the changes from #12 to make things easier.
Changelog is HTML, example can be seen at https://github.com/GrapheneOS/platform_packages_apps_Updater/issues/9#issuecomment-522560539
It's not exactly the best system, and the changelog downlaod only happens alongwith update download, but I feel that this is sufficiently usable.
Closes #9

I included the changes from #12 since that was easier, and this is bound to conflict with that otherwise.
Can update either changes as needed.
The changelog would be made "prettier", and I still need to figure out wrapping, but that's mostly going to be either in the HTML or maybe (unlikely) HTMLViewer.

By the way this got closed from removing the pie branch, not because I explicitly closed it.