EmbeddedEventStore must support overriding ThreadFactory for Java EE support

There are currently no way to override the ThreadFactory in EmbeddedEventStore and the default ThreadFactory (i.e.: AxonThreadFactory) should not be used in a Java EE environment.
This limitation is in the EJB 3.0 Specification: The enterprise bean must not attempt to manage threads. The enterprise bean must not attempt to start, stop, suspend, or resume a thread, or to change a thread’s priority or name. The enterprise bean must not attempt to manage thread groups.
There are two reasons why it is important to override the ThreadFactory in a Java EE context:

Java EE requires managed threads. All threads should be created using the ManagedThreadFactory resource in order for the application server to properly manage and monitor threads.
Java EE requires context to use certain services. ContextService allows you to proxy the Runnable to ensure that the context is properly created. (Otherwise, you get an IllegalAccessException when you try accessing any EJBs)

To support both of these requirements, I've created the following... Sadly, it cannot be used by the EmbeddedEventStore.
public class ManagedAxonThreadFactory implements ThreadFactory {

   private final ThreadFactory managedThreadFactory;
   private final ContextService contextService;

   public ManagedAxonThreadFactory(ManagedThreadFactory managedThreadFactory,
         ContextService contextService) {
      this.managedThreadFactory = managedThreadFactory;
      this.contextService = contextService;
   }

   @Override
   public Thread newThread( Runnable runnable ) {
      return managedThreadFactory.newThread( contextService.createContextualProxy( runnable, Runnable.class ) );
   }
}

Hmm. It appears this issue has been resolved in the master branch in #754 however it isn't in the latest released version (i.e.: 3.3.6)

The current master branch will become Axon version 4.0, which indeed, has resolved this issue.
However, it has been resolved even earlier, in issue #735 to be exact!
This issue will be part of release 3.4.
Work around 4.0 (which we'll release the Thursday the 18th of October) is almost rounded up, and 3.4 is as well.
I'll go through the effort to release 3.4 ASAP. Upgrading to 3.4 from 3.3.x shouldn't be a tough call.
If you have the freedom to move to 4.0 however, I'd very much recommend that of course :-)
For now, however, I'll close this ticket as a duplicate.
Thanks for the concern though @wleroux, much appreciated!


Layer selection rules

How should we determine how layers can be selected from the GUI list?
Since it is a list, imo it's most intuitive/standard to interact with it in the following way ("this layer" always refers to the last clicked layer):

click

if no layers are selected, select this layer
if another layer is selected, (deselect them and) select only this layer
if this layer is selected, deselect this layer

ctrl/cmd click

toggle inclusion of this layer in the current selection

shift click

first click: select this layer
second click: select this layer and all other layers in between the this and the first clicked layer

This is certainly the behavior I would expect!

Perfect!
I hope that PyQt5 has some of this builtin....

Yep, got it - will get on making those changes today! Love the list, thanks!

Actually question - should it be possible to have no layers selected? i.e. if you only have one selected and you click on it again does it unselect it so that none are selected or does it just keep it selected. I'd argue for the latter (it is how other similar programs do it) and having no layers selected could be strange from the standpoint of other elements in the gui like the clims sliders. Thoughts?

Or does a control click on a singly selected layer leave everything unselected? That behavior happens in some other apps, but I find it strange

Similarly, should clicking in the "open space" around the layer widgets unselect all of them?

Have updated the PR, please check it out

Well, at a minimum, I do think Ctrl-click should deselect the existing selection even if it's the only one. Not only is this the behaviour in all other apps I know, it's also self-consistent (ie Ctrl-click always toggles selection). I would also argue in favour of deselecting when clicking empty space. Personally I dislike leaving things selected when not actually working on them.

Ok - i can make those two changes. I think we'll have to see how having no layers and multiple layers selected interacts with other gui elements like the clims sliders, but that is for another PR / issue!

Since not all layers will be defining the left-hand "control" panel, I think we can just collapse it in cases where multiple layers, no layers, or a layer with no control panel are selected.

I have made unselection changes and updated the current PR, please let me know if the behavior is as desired.


Adding viewport tag for mobile responsiveness

Adding the viewport tag so that the demo sites will actually work on a mobile device. The docs mention that the app is mobile friendly so this should be included.

Thanks!


[sw] Build googletest using meson

Vendoring googletest introduced a dependency on CMake, which has caused
issues, including #1484.
This commit removes the dependency on CMake by adding build rules for
googletest directly in meson.
This commit also reverts b94e3f8964ccea0a73811537a4c783fedec5270c, as
CMake should no longer be needed.

The Meson rules used have come from https://github.com/mesonbuild/gtest/blob/1.10.0/googletest/meson.build and https://github.com/mesonbuild/gtest/blob/1.10.0/googlemock/meson.build which are MIT licensed.

This works for me, thanks for sorting it out.


Parse includes in the same directory as the compiler

Since the compiler searches for includes next to it (an includes directory), the extension must take these into account even if their directory path isn't specified in SourcePawnLanguageServer.includeDirectories

can be closed


Can you add the implementation and example of wazero?

https://github.com/tetratelabs/wazero

After a quick glance of the wazero project, I find that it's just another wasm runtime, just like V8, Wasmtime, Wasmer, WAVM, etc. The main difference is that the wazero is implemented in pure Go, so that it can get rid of cgo. However, its support on wasm core specification is not as good as other runtimes, such as Wasmer. So do we have any good reason to support the wazero runtime?

it can get rid of cgo

Does cgo bring any problems?

The main advantage or feature is this
https://github.com/tetratelabs/wazero#history-of-wazero

I don't think cgo has any problems.
As for complexity, cgo only appears under the hood. The default wasm runtime in our project is wasmer-go, so that users do not need to write any cgo codes by themselves.
As for performance, in our env, a go->c cgo call cost only ~60ns, it does much slower that nativa go->go/c->c call, but it can be ignored in proxy case, which usually cost ~ms for one request to be done.
Moreover, the wazero project do not provide any benchmark data, such as pure go wasm runtime vs cgo wasm runtime, so it can not convince me about their so-called performance.
If you insist on supporting the wazero, welcome to open up a PR to integrate the wazero runtime, just like what we do in https://github.com/mosn/proxy-wasm-go-host/tree/main/wasmer, it not a difficult task :-D

ps I noticed this issue, and wazero does have benchmarks, just we let people run them on own. For example, our build breaks if the benchmarks are ever slower than wasmtime wasmer or wasm3.
ex they are run on every commit. Not sure how many others do that
https://github.com/tetratelabs/wazero/runs/6094956125?check_suite_focus=true

Ex you can run make bench.check if you like, or execute the vs directory yourself. Here's an example from the above CI run.
goos: linux
goarch: amd64
pkg: github.com/tetratelabs/wazero/internal/integration_test/vs
cpu: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz
BenchmarkFac_Init/Interpreter-2         	   53996	     21683 ns/op	   11960 B/op	     370 allocs/op
BenchmarkFac_Init/JIT-2                 	    8391	    151112 ns/op	   62045 B/op	    1251 allocs/op
BenchmarkFac_Init/wasmer-go-2           	    1999	    598627 ns/op	    1232 B/op	      41 allocs/op
BenchmarkFac_Init/wasmtime-go-2         	    1938	    622997 ns/op	     345 B/op	      21 allocs/op
BenchmarkFac_Init/go-wasm3-2            	  137173	      8501 ns/op	     168 B/op	      11 allocs/op
BenchmarkFac_Invoke/Interpreter-2       	  118746	      9963 ns/op	    2096 B/op	     129 allocs/op
BenchmarkFac_Invoke/JIT-2               	  806187	      1349 ns/op	    1216 B/op	       5 allocs/op
BenchmarkFac_Invoke/wasmer-go-2         	  730215	      1688 ns/op	     176 B/op	      12 allocs/op
BenchmarkFac_Invoke/wasmtime-go-2       	  354572	      3711 ns/op	     256 B/op	      20 allocs/op
BenchmarkFac_Invoke/go-wasm3-2          	  484650	      2504 ns/op	      56 B/op	       5 allocs/op
BenchmarkCodecExample/binary.DecodeModule-2         	  233971	      5060 ns/op	    2440 B/op	     109 allocs/op
BenchmarkCodecExample/binary.EncodeModule-2         	  240770	      4950 ns/op	    3960 B/op	     124 allocs/op
BenchmarkCodecExample/text.DecodeModule-2           	   50046	     24196 ns/op	    8560 B/op	     369 allocs/op
BenchmarkCodecExample/wat2wasm_via_text.DecodeModule->binary.EncodeModule-2         	   40120	     29765 ns/op	   12528 B/op	     493 allocs/op
BenchmarkCodecExample/wat2wasm_vs_wasmer.Wat2Wasm-2                                 	   24598	     48232 ns/op	    2704 B/op	       6 allocs/op
BenchmarkCodecExample/wat2wasm_vs_wasmtime.Wat2Wasm-2                               	   29388	     40440 ns/op	    2672 B/op	       3 allocs/op
PASS
ok  	github.com/tetratelabs/wazero/internal/integration_test/vs	23.480s

In any case, I think it is a better fit for folks who desire specific things that are impossible otherwise. Ex multi-platform builds, transparent debug story (ex no clib blackhole), coherent trace context propagation etc. If these things aren't relevant and you're otherwise happy where you are, maybe best to stick with it. Meanwhile, good luck wherever you end up!

ps also maybe not relevant to you but image size in proxies is sometimes a problem. Wazero can be 3MB total in docker, and I think that's pretty impossible in any of the alternatives https://github.com/tetratelabs/wazero/issues/424

one last spam. I learned a lot reading this on CGO it does a great walk through of things in a different way than the usual "CGO is not go" blogs. Hope it helps you decide not so much if wasmtime should be in here, but more should CGO be the only way to use wasm in the project. https://speakerdeck.com/jcchavezs/cgo-journey-from-using-to-understanding-it
PS it is ironic this issue exists because months ago I thought exactly mosn would be a good thing to try to work in wazero, especially for unit testing proxy plugins without any hassle or weird windows things etc. just thought it would be cheesy to make an issue to suggest it, being that I'm a maintainer. I'm glad someone else raised this, so I had an excuse to spam you all these comments. But don't worry, that's all unless you ask for more 😎

https://github.com/mosn/proxy-wasm-go-host/pull/19 but I think we can do a lot better as noted at the end of my description. The attempt to abstract things forces things to require wrapping and reflection, the performance impact is really bad and also the code is harder to follow vs doing things directly. Later I'd be open to rewriting it to be direct and fast if you like.

https://github.com/mosn/proxy-wasm-go-host/pull/27 will add this. we've figured our way through a misunderstanding. Notably, it is ok to fix the v2 and also wazero made a concession to allow the unsupported wasi_unstable to work as some old code may never change.

@pretty66 once https://github.com/mosn/mosn/pull/2172 is merged "wazero" is a valid engine choice in mosn config!

@pretty66 v1.3.0 mosn is out and includes this now. thanks for your patience and all the support from @antJack and @taoyuanyuan!


Add README.md to npm package

This PR adds the README to the files list so that it will show up in npm.

Well, let's give it a try


Do you have any ideas about how to behave after expanding the Chinese vocabulary？

I made fine-tuning on belle based on the llama with an expanded Chinese vocabulary, and the effect is polarized. Do you have any good suggestions?
My repo: https://github.com/27182812/ChatGLM-LLaMA-chinese-insturct

No idea about chinese myself, but maybe you could check and give guanaco a try
https://huggingface.co/KBlueLeaf/guanaco-7B-leh
https://github.com/KohakuBlueleaf/guanaco-lora
This is a fork of this repo addressing chinese and more.

Wow, thank you!


[5.4] Add str_after helper function

I often come across cases where I need to retrieve everything after a piece of a string. Manually preg_match or strpos / substr is verbose IMO.
Here is the usage:
$title = str_after('Title: hello world', 'Title: ');

I've been using my own personal helper for this for some time now and have found it extremely handy, hoping you find the same!
Thanks for the endless amounts of hard work!

Caleb

Very useful. He rarely merges helpers that aren't used in the framework itself, but

I doubt the helper will get merged for the reason @devcircus said, but I wouldn't doubt the String::after function being merged.

http://php.net/manual/en/function.strstr.php

@JosephSilber strstr returns a string including the search term. my str_after does not include the searched string.

I can't decide what I think about returning empty string if the given string isn't present. To me it feels like I would want the whole string returned, since it most cases I would be using this function to trim a given string off the front of the other string. Thoughts?

If it's a simple "trim this off this", why not use a preg_replace, with a leading ^

I agree there are existing options if it's a leading trim, this would just be a more readable version of it maybe. Anyways, probably need @calebporzio to comment with his thoughts behind it.

I'm good with returning the entire string rather than empty. That makes more sense to me.
I thinkstr_after should not need the search string to be the start of the subject. A more fitting regex would be preg_replace('/^.*' . preg_quote($search) . '/')
I adjusted the implementation to return the full string on failure. I didn't go the regex route, let me know if that's a problem.

The docs for strpos

Returns FALSE if the needle was not found.

The docs for strstr ...

Returns the portion of string, or FALSE if needle is not found.

The docs for substr ...

Returns the extracted part of string; or FALSE on failure, or an empty string.

It kind of makes sense to keep the php tradition of returning false for these kind of string operations. Substr's empty string is a special case when pass $length = 0. If you you pass a $start which is after the length of the input you still get a false back.
If you want the original string if the needle is missing, use str_after($haystack, $needle) ?? $haystack (assuming PHP 7).

There is room for optimization in this code, and at least an unit test with empty search should be added, because strpos triggers a warning if needle is empty. Currently there is no error thanks to the above contains, but this one might gets removed in the future.

This seems unintuitive if there are multiple instances of the search string. I think I'd expect
str_after('Title: Title: hello world', 'Title: '); to return hello world, but it will return Title: hello world

There can be third parameter offset  like after($subject, $search, $offset) to skip number of character / occurrence.


[ENHANCEMENT] Adaptative / Conditional Conformal Prediction

Is your feature request related to a problem? Please describe.

Despite attractive theoretical guarantees and practical successes, Predictive Interval (PI) given by Conformal Prediction (CP) may not reflect the uncertainty of a given model. This limitation arises from CP methods using a constant correction for all test points, disregarding their individual uncertainties, to ensure coverage properties. (From Salim I. Amoukou, N. Brunel (2023)).

Different methods are proposed to deal with this problem, which we have grouped under the name "adaptive conformal prediction" (see additional context).
Describe the solution you'd like
The objective of this enhancement is to propose conditional / adaptative conformal prediction for MapieRegressor and MapieClassifier (in two different issues/PRs ?).
Describe alternatives you've considered
One way to achieve this is to adapt the fit and predict methods to the different classes of ConformityScore.
Additional context
In "adaptive conformal prediction", we distinguish different approaches (non exhaustive list):

Reweighting of the nonconformity score

Localized Conformal Prediction (LCP): Guan, L. (2021). Localized Conformal Prediction: A Generalized Inference Framework for Conformal Prediction. Biometrika.
SLCP: Han, X., Tang, Z., Ghosh, J., & Liu, Q. (2022). Split Localized Conformal Prediction. ArXiv, abs/2206.13092.
LCP-RF: Amoukou, S.I., & Brunel, N.J. (2023). Adaptive Conformal Prediction by Reweighting Nonconformity Score. ArXiv, abs/2303.12695.

Renormalization of the nonconformity score

Locally adaptive split conformal prediction (also knwn as conformalized residual fitting - CRF): Papadopoulos, H., Gammerman, A., & Vovk, V. (2008). Normalized nonconformity measures for regression Conformal Prediction.
Self-supervised Conformal Prediction (SSCP): Seedat, N., Jeffares, A., Imrie, F., & Schaar, M.V. (2023). Improving Adaptive Conformal Prediction Using Self-Supervised Learning. ArXiv, abs/2302.12238.

Estimation of the nonconformity score

Conformalized Quantile Regression (CQR): Romano, Y., Patterson, E., & Candès, E.J. (2019). Conformalized Quantile Regression. Neural Information Processing Systems.

It seems that this issue was closed together with #305 🤔

Good point, thank you for this comment :)

What about Self-supervised Conformal Prediction (SSCP)? Is that likely to get added? +1 from me :)


Add terms of service to readme

Fixes #584

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

v0.62.0
GitHub release

Your semantic-release bot :package::rocket:


Issues Moderation

The recent hype has brought a sheer unbearable amount of total offtopic Issues into this repository, which should be moderated/closed in time.
I am reading/commenting on Issues since about 3 years in this repository and i would like to volunteer as a moderator, closing clearly offtopics such as "help me i got scammed lost my doges"- Issues, so that developers times are not wasted.
cheers,
Gewure

I was going to create an issue for this as well, but also suggest we need some way of clearly identifying that this isn't the place to be posting these things because a lot of the posts appear to be genuinely confused as to where they can get help or info.

Agree, there has to be some moderation on this, If there is more help needed, I'm up to it.

+1
On Mon, May 17, 2021, 11:00 AM xjuanc @.***> wrote:

Agree, there has to be some moderation on this, If there is more help
needed, I'm up to it.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/dogecoin/dogecoin/issues/1962#issuecomment-842395670,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AJZ23AH7NGGLWPLZ5HLTZRTTOEVPZANCNFSM45AROUCQ
.

Also volunteer
On Mon, May 17, 2021, 11:51 AM Matt @.***> wrote:

+1
On Mon, May 17, 2021, 11:00 AM xjuanc @.***> wrote:

Agree, there has to be some moderation on this, If there is more help
needed, I'm up to it.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<https://github.com/dogecoin/dogecoin/issues/1962#issuecomment-842395670
,
or unsubscribe
<
https://github.com/notifications/unsubscribe-auth/AJZ23AH7NGGLWPLZ5HLTZRTTOEVPZANCNFSM45AROUCQ
.

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/dogecoin/dogecoin/issues/1962#issuecomment-842436017,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AE3WRFI3YLOYOVQI4P4R5BTTOE3RTANCNFSM45AROUCQ
.

 Await for merge.

Good idea to push forward for it. But not just closing the issue. We should categorize the labels then mark each issue as such. Some issues are more like discussion, some are technical, some are un-related. Take Godot project (see all those nice labels marked, and some convo in each issue) as a great example in which they have a dedicated person doing what I've described and pave the way for discussion to keep into topic.

Seriously think that this is a good idea. We can't have people spamming the issues page with feature requests and ideas if there is no intention of contributing to the project. Yes it'd be nice to have x and y all up in the codebase, but you should go over to reddit and post there. Can someone just make @caseyPav  the issues moderator and be done with it.

Agreed we basically need people on the triage team to filter out invalid issues and also have appropriate labels attached

In an attempt to reduce the number of issues not technical or code based that the devs can actually look into, would it be helpful to adjust the template message slightly when reporting an issue? Right now when one chooses to add a bug or feature request issue it indicates:
For general questions about Dogecoin or wallet recovery please use one of the various communities:
* [Dogeducation on reddit](https://www.reddit.com/r/dogeducation/)
* [Discord](https://discord.com/invite/dogecoin)

Could this be adjusted to something like:
Please note that although we appreciate much wow enthusiasm for this project and welcome any much wow ideas for the future,
GitHub is intended for code based issues / bugs / feature request that one might have with the project. If you cannot provide
technical details or a code based example for developers to look into and possibly incorporate into the existing code, this GitHub
is not the right place to provide your idea. For general non-code and non-technical based ideas, please use one of the various
communities:
* [Dogeducation on reddit](https://www.reddit.com/r/dogeducation/)
* [Discord](https://discord.com/invite/dogecoin)
We track these communities and are notified thusly of any interesting viable ideas for the future of Dogecoin. If you post non-
technical non-code based issues here, you are hampering the development as we need to sift through all issues.

I thought that might help (but maybe I'm too hopeful or naive).
This issue is closely related to #2110 #2191

Pretty good idea. No matter what, open source rules should be respected & followed, even if the goal of the project began as a joke.

@CosmoRied True, although I'm sure that a lot of people just don't know the customs of GitHub or what GitHub is actually used for (or even that crypto currency tech involves massive coding). Many have jumped aboard in the past months and I'm convinced that many are just enthusiastic but unknowing of where to post their ideas, what GitHub is, or whether they even have viable sensible ideas. I can also definitely imagine that the devs are frustrated.

To be fair, we cannot blame or put much pressure to incoming new people who chime in here on Github to propose ideas. It's due to this tweet mostly that expresses Github is also the right place to do such thing. If core dev team really communicates with Elon, just my opinion that it's better idea to clearly communicate this through him for which area Github is suitable at for contributions. Is it worth another tweet to clarify this matter for Elon? I cannot say. But yeah, better solve the problem at the root.

@haxpor True that the tweet was not fully informative (and maybe a bit misguided). Doing another tweet would probably just increase attention again to this github and increase the issue problem at hand again. I think now it would be best to maybe have an issue moderator as suggested in this thread and inform people where possible on this github on the best practices (for example as maybe adjusting the template messages). I can understand it is frustrating to devs, but at the same time, as you say, we cannot put too much pressure / blame on the people new to GitHub and unknowing of its practices (and hopefully only a minority is trolling).
If I could, i would contribute with actual content to dogecoin, but alas... I'm dumb.

Thank you everyone for your concern and your support. I am now doing moderation and triage on the project issues. I will be addressing things as I have time. Please, if you see issues which need to be closed, tag me and comment on them with the reason it should be closed. I will get the notification and I will take a look at it. That would help me address the 100+ issues faster.

@ReverseControl may i ask how did you attain rights to moderate?
i am, as stated, active in this repo since well over 3 years - and i would really like to also moderate here!

Hey guys. Am aware of this issue, and, absolutely taking note of folks who say they're willing to moderate in here.  I'd want to discuss with some of the people who are willing; we definitely would need assistance as far as bandwidth goes on this.
Likely this will involve giving more people the Triage role, but just want to make sure we have a constant and open chain of contact with those folks and visibility on it.  @ReverseControl is kind of the avant garde for this - but @gewure @xjuanc and @caseyPav i've absolutely noted your interest in assisting here.
@Danny-dK I do like your revision - and, we can do it - but i worry that a lot of these folks posting are doing the "TL;DR" thing and just seeing this as a help desk and won't regard it.
@roman-rr I'll discuss templates with folks, I just worry that may constrain issue creation a bit, and again there could just be the issue of folks ignoring it anyways.
For now, ping @ReverseControl -- i'll hopefully be reaching out to other volunteers here to see if we can get a decent moderation team going. It's an unfortunate need but a realistic one.


Disable cn proxy sources to improve kubean image build efficiency

Signed-off-by: bo.jiang<EMAIL_ADDRESS>
What type of PR is this?
/kind feature
What this PR does / why we need it:
Disable cn proxy sources to improve kubean image build efficiency.
Which issue(s) this PR fixes:

Fixes #
Special notes for your reviewer:

/lgtm


output dir

Please explain how I can change output directory?
I tried add params for buder
    "build": {
        "output": "../distanxe/"
    },
    "scripts": {
        "dist": "build  --tasks win-x64 app",
        "start": "run app"
    }

But nothing changes. Everytime I get new build in "app/dist" folder.

You need to set options in ./app/package.json, not the package.json in the current directory, which isn't read when you pass app as the path to the build command.


Help and support Page

🛠 Closes #25
👨💻 Changes proposed

✔ Check List (Check all the applicable boxes)

[x] My code follows the code style of this project.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

📄 Note to reviewers
The UI for the page has been set up, but the navigation links are not yet active.

📷 Screenshots

@Shegun-istaken please resolve the conflict

@Shegun-istaken please resolve the conflict

Done.


[feature request] remove pouchd daemon flag --add-runtime

Why you need it?

I do not think we need daemon flag --add-runtime.
Today when I reading docs about how to run runv/katacontainer in Kubernetes. I found that first work is to restart pouchd to pass --add-runtime=runv flag to make pouchd support runV first.
It is so inconvenient for end-users. I wish that runtime configuration could be removed, and pouchd have several default runtimes, such as runc/runv/gvisor. For other user specified runtimes, end-user could try to load it via some command dynamically.
So my proposal is that:
1. pouchd has three default runtime configuration in daemon itself:

runc
katacontainer
gvisor

2. end-user could run different types of container without restarting pouchd.
End-user could use --runtime flag to create specific container, such as pouch create --runtime runv docker.io/library/busybox:latest to create a runV-based container.
3. [TODO] make pouchd could receive other runtimes, like runXXX.
How it could be?

none
Other related information

none

It's means that pouchd support params runtime?
https://github.com/alibaba/pouch/blob/master/daemon/mgr/container.go#L390
and whether this issue wanto client' requst pass params runtime？

@jomenxiao I'd like to make your idea as approach design to let the architecture give your useful comments


[raymath] Add cross product function

while working on a personal project using raylib, i noticed that raymath doesnt have a function for calculating the cross product of 2D vectors, so i implemented a simple function for this purpose in my project, and i think it could be a useful addition to the raymath module.

@uwiwiow thanks for the addition!


GH-3855 changeset performance

GitHub issue resolved: #3855
Briefly describe the changes proposed in this PR:

PR Author Checklist (see the contributor guidelines for more details):

[ ] my pull request is self-contained
[ ] I've added tests for the changes I made
[ ] I've applied code formatting (you can use mvn process-resources to format from the command line)
[ ] I've squashed my commits where necessary
[ ] every commit message starts with the issue number (GH-xxxx) followed by a meaningful description of the change

@jeenbroekstra it seems that new default methods in an interface are not binary compatible. We used to allow this for minor releases (eg. 4.1.0).

I think we need to have a wider discussion about what kind of compatibility we want to support. Possibly binary is not really preferred for minor releases in general, only for patches....

We can tweak this how we like, I just went with the defaults assuming that's reflecting the widest concensus on what SemVer entails.

At the moment I haven't found any existing benchmarks that are improved in this branch. The changes are based on my WIP performance branch #3854. Fixing one bottle neck will often reveal another performance issue that was masked by the initial bottle neck, so that might be the case here too. That being said there are quite a few fixes in that branch that didn't end up making much of a difference.

Before

After
Benchmark                                                                   Mode  Cnt     Score   Error  Units
ParallelBenchmark.nativeStoreShaclSerializable                              avgt       1065.466          ms/op
ParallelBenchmark.nativeStoreShaclSerializableNotParallel                   avgt         84.068          ms/op
ParallelBenchmark.nativeStoreShaclSnapshot                                  avgt         94.863          ms/op
ParallelBenchmark.nativeStoreShaclSnapshotWithoutSerializableValidation     avgt         86.315          ms/op
ParallelBenchmark.shaclSerializable                                         avgt         40.748          ms/op
ParallelBenchmark.shaclSerializableMixedReadWrite                           avgt         59.509          ms/op
ParallelBenchmark.shaclSerializableNotParallel                              avgt         24.996          ms/op
ParallelBenchmark.shaclSnapshot                                             avgt         13.425          ms/op
ParallelBenchmark.shaclSnapshotMixedReadWrite                               avgt         18.305          ms/op
ParallelBenchmark.shaclSnapshotWithoutSerializableValidation                avgt          8.128          ms/op
ParallelBenchmark.shaclSnapshotWithoutSerializableValidationMixedReadWrite  avgt         16.420          ms/op

Before

After


docs(readme): update contributors

Coverage remained the same at 94.846% when pulling f673c0d4e8bded2f4e34997ae5c8f9b54e5cb475 on #92-contributors into 214f93671e3950977edb363c29146cd71bee7e55 on master.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Data Mouse Brain (Sagittal-Anterior) dataset

Adds Mouse Brain (Sagittal-Anterior) dataset. Tested using test_data_with_download.sh which was successful.

Is there an asscoiated Issue then please link it


Multiple simultaneous site generations?

When browsing to Admin - WP2Static - Run page and clicking Generate Static Site button, if I wait a bit, refresh the page and click the button again, multiple site generations are now taking place simultaneously.

After pressing the button I didn't notice any jobs being created on the Jobs page, I don't know how to cancel a generation once it's begun (and for large sites like mine this could be a problem).

Should pressing the button generate a job?
Should pressing it twice just generate another job and have that one queued until after the current one has completed?
How do I cancel a running generation?
Shouldn't all of the crawling on the second button click (the 5000 range from my logs above) be cached? Why was only 1 file cached on each log entry?

How to cancel in this scenario?
Restart php/webserver. Sucks, but until we get proper async background tasks in place, going to remain an issue.
Had thought about adding some other locking mechanism, but would require some resource consumption each cycle, either hitting DB or filesystem to check for lock (I assume?).
@john-shaffer feelings either way?

https://github.com/deliciousbrains/wp-background-processing

I'm used to having proper threading and locking in the language's core, so I'm just lost when it comes to PHP.
deliciousbrain's offload media plugin is fantastic, so their reputation is good, but this is insane to me:

If your site is behind BasicAuth, both async requests and background processes will fail to complete. This is because WP Background Processing relies on the WordPress HTTP API, which requires you to attach your BasicAuth credentials to requests.

 I know WP does it because I've wasted days troubleshooting those issues, but WP does a lot of unspeakable things. It also uses WP Cron, which is unreliable in my experience. It uses transients for "locking", but transients can disappear at any time - https://github.com/deliciousbrains/wp-background-processing/issues/39. This looks like a "now you have two problems" situation.
I think that the biggest problem right now is simply the lack of chunking, particularly in the crawl job. If we could break crawl into chunks of 20-50 URLs, then we can save the start time in the DB and allow an appropriate amount of time. E.g., if we have chunks of 20 and set our curl timeout to 30 seconds, then after a little over 10 minutes we can assume that the job has died and start another one. Maybe add a chunk_start_time column to the jobs table, and perhaps crawled_time to the URLs table? Chunking would also help with the issues people are having with large sites.
We can prevent simultaneous starts with DB-level locking. I prefer DB locks, because I don't know if we can count on locking behaving consistently across different OSes and file systems.
I think that any revamp of the crawl queue should consider some way to crawl selectively. I'm not sure if this is terribly practical with WP's design, but I having imperfect change detection is better than not being usable on large sites at all.

Great food for thought, many thanks!
Re selective crawl queuing, I think the way Static HTML Output is doing it now will solve these for your case? ie, very minimal URL detection and then crawling all detected URLs from site, recursively/infinite levels. That's what my open (stale) branch in this repo is starting towards.
You mentioned in another issue in that it is still trying to crawl all URLs each time - does the current crawl caching not prevent this if used? ie, the issue your stating is with the extra check of each URL, regardless of whether it skips it due to caching or not? Maybe we can start a discussion on forum/new issue to address that specifically and I can rethink approach in here.

The crawl caching just skips saving to disk. It still crawls every URL each time, which is why there's no real speed difference between having crawl caching on or off. For large sites, we need to skip hitting the URL at all.

I'm exploring and testing some of this in #633

Fixed in https://github.com/leonstafford/wp2static/commit/a83d56299f738da5046efb19f476c6c8ff15a11c due to the use of MySQL locks.


react-storybook support

HI, I'm hoping to add react-storybook support for elemental-ui components and send a PR.
Please let me know what you guys think?
https://github.com/kadirahq/react-storybook

I'd much rather use Carte Blanche :wink: https://github.com/carteb/carte-blanche


Show fields before other things in hints list

Environment data
dotnet --info output:

.NET Command Line Tools (2.0.0)
Product Information:
Version:            2.0.0
Commit SHA-1 hash:  cdcd1928c9
Runtime Environment:
OS Name:     Windows
OS Version:  10.0.15063
OS Platform: Windows
RID:         win10-x64
Base Path:   C:\Program Files\dotnet\sdk\2.0.0\
Microsoft .NET Core Shared Framework Host
Version  : 2.0.0
Build    : e8b8861ac7faf042c87a5c2f9f2d04c98b69f28d

VS Code version:

Version 1.18.1
Commit 929bacba01ef658b873545e26034d1a8067445e9
Date 2017-11-16T18:32:36.023Z
Shell 1.7.9
Renderer 58.0.3029.110
Node 7.9.0
Architecture x64

C# Extension version:
1.13.1
Steps to reproduce
Create an object with object initializer. Press ctrl+space to open up the hints list while filling the fields.
Expected  behavior
The list displays relevant things (the fields of the class being initialized) before less relevant things.
Actual behavior
The list is sorted alphabetically.  You may look here to see an example.

Unfortunately, #region (and several others) appears due to code snippets appearing in completion (code snippets are not context-sensitive). In Visual Studio, we do a bit of extra work to not show snippets inside object initializers, and maybe we can do something in Visual Studio Code as well. @rchande, any ideas?
As for the completion list being sorted alphabetically, that is by design.

@DustinCampbell
Thank you for your reply.
I'm currently working in an integration with an extremely verbose Windows service, so the situation I described is incredible common in my routine and it affects my productivity.
I hope you guys find a solution for what I requested.


add the methods of how to avoid creating merge commits

@LucasMull  I updated the coding guidelines with the way to avoid creating merge commits.

@LucasMull  I updated the coding guidelines with the way to avoid creating merge commits.


Setup CI

Lets use travis to test & deploy once a PR is merged.

That would be sweet. I'm merging the big refactor today, and have specs for the renderers and operations but an actual integration suite would be great.

That would be sweet. I'm merging the big refactor today, and have specs for the renderers and operations but an actual integration suite would be great.

Simple first steps are pretty easy given a) that R has a baked-in system for simple tests as well as b) support for full-blown unit tests via external packages, and c) we are fully set-up at GitHub via Travis:  though not yet a language supported by Travis, there are hundreds of packages using this.
So what I can do (easily) is add a script in tests/ which will tickly all access points I enumerate, and print the response.  R then diffs this to a pre-recorded set, compares and cries Uncle! if they differ. Which gets us an R CMD check failure, which gets us a Travis failure.
Sounds good?

Simple first steps are pretty easy given a) that R has a baked-in system for simple tests as well as b) support for full-blown unit tests via external packages, and c) we are fully set-up at GitHub via Travis:  though not yet a language supported by Travis, there are hundreds of packages using this.
So what I can do (easily) is add a script in tests/ which will tickly all access points I enumerate, and print the response.  R then diffs this to a pre-recorded set, compares and cries Uncle! if they differ. Which gets us an R CMD check failure, which gets us a Travis failure.
Sounds good?

Sure, that would be good :)

I have a very basic test.  It uses the standard R behaviour to

run a file in tests/, say tests/foo.R
if a reference output file tests/foo.Rout.save is present then the current output and the reference output are compared -- and in case of a difference an error is thrown

It's simple but effective.  The initial commit here is here and I may switch to explicitly comparing 'received' versus 'expected' results on a per-query basis.

Thanks to @eddelbuettel

I am actually right now committing a better one, now that I swallowed the pill of #62.

This was just committed:  8e3b32f3bcd52b06c305613ea63df25b6274a36f


bitvec v1.0

Would be nice to get a bitvec bump now that 1.0 is out:
https://crates.io/crates/bitvec/1.0.0

This requires an MSRV bump, so I will be coordinating this across the various repos in a few weeks (once we're done with zcashd 4.7.0).

We are now finally done with zcashd 4.7.0 sigh so I am back to coordinating this.


build against both scala versions

you might be already aware of this, but in case you like to list the project code owners you could add them like here.

Codecov Report

Merging #2 into master will increase coverage by 0.31%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master       #2      +/-   ##
==========================================
+ Coverage   59.60%   59.92%   +0.31%
==========================================
  Files          18       18
  Lines         255      257       +2
  Branches        4        6       +2
==========================================
+ Hits          152      154       +2
  Misses        103      103

Impacted Files
Coverage Δ

...io/laserdisc/mysql/binlog/compaction/package.scala
95.65% <100.00%> (+0.41%)
:arrow_up:

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 b8b7cd3...493f8f2. Read the comment docs.


[iOS] Images not being released using Navigator?

I'm currently trying to optimize our app.
We have a section of the app where we have lots of images displayed using a ListView.
Just rendering this consumes a lot of CPU and memory (which is another issue).
Navigation is done by the Navigator.
When I use pop(), it goes back to the main page as intended, but
CPU and memory seem to be the same as the previously mentioned section.
I've even manually emptied the states when componentWillUnmount is called in the ListView.
Has anyone run into this issue? Or am I misunderstanding the documentation's description of pop()?

consider using ReactNativeExperimental (https://facebook.github.io/react-native/docs/navigation.html)
or https://github.com/exponentjs/ex-navigation

@sibelius Thanks, will use these in our next React Native project.


There is probelm in usage of Documentation

When I run the sample code: $time python3 compress_classifier.py -a alexnet --lr 0.005 -p 50 ../../../data.imagenet -j 44 --epochs 90 --pretrained --compress=../imagenet/alexnet/pruning/alexnet.schedule_sensitivity.yaml,
I find it cannot work ,  it says cannot find the alexnet.schedule_sensitivity.yaml file.  I  think  the compress should be "../sensitivity-pruning/alexnet.schedule_sensitivity.yaml". Thanks.

Hi,
You are correct that the path to the compression schedule is incorrect - thank you for finding this issue.
Are you referring to the mistake in the documentation ('usage' page), or did you find it in a different place?
Thanks,
Neta

It's a mistake in the documentation ('usage' page).

Fixed and closing the issue.
Thanks @zxb1489479870 !


Recommendations for preprocessing data before it gets into a clean DataFrame?

Hello!
I am ingesting a largish amount of independently produced CSV files (with very varying levels of quality).
I typically encounter situations like:

a CSV field is [3.812,9.897] to describe a geo point in a single column (which I need to expand into 2 columns)
the dtypes system will correctly stop me when a boolean is actually stored as 0 or 1
some files are latin1 and not UTF-8 (this one, I guess, will have to be processed externally first)

I love the comfort of the dataframes. Is it a good idea to create a non-typed DataFrame, where columns are "strings" initially, mutate there because it's convenient, and later move the data into a strictly-typed DataFrame, once the data is more or less ready for that?
I could also preprocess the CSV as a stream myself, and pass that to DataFrame.new?
Are there other options?
Thanks!

I'm assuming here that you're stuck with CSV and can't generate the data in .parquet files or similar which have stricter types.

Is it a good idea to create a non-typed DataFrame, where columns are "strings" initially, mutate there because it's convenient, and later move the data into a strictly-typed DataFrame, once the data is more or less ready for that?

This is what I'd try first. My guess is that Rust/Polars will be able to process the strings faster than many other Elixir-based preprocessing methods. I've seen Explorer load a 10M line CSV and do a simple transform on it in like 2 seconds.
Depending on what you're doing, other datastores may also be worth considering. I can recommend DuckDB and Clickhouse. They both have good CSV support and are designed for OLAP use cases. Plus there's always good ole Postgres if that's what you're more familiar with.

I'm assuming here that you're stuck with CSV and can't generate the data in .parquet files or similar which have stricter types.

The CSV is a "regulatory choice" to ensure that non technical person can produce the data easily, so yes, your assumption is correct!

This is what I'd try first. My guess is that Rust/Polars will be able to process the strings faster than many other Elixir-based preprocessing methods. I've seen Explorer load a 10M line CSV and do a simple transform on it in like 2 seconds.

Excellent. Those CSV are numerous but overall small (the total volume of all files will be in the 100k-400k range max). Thanks, I will try that first.

Depending on what you're doing, other datastores may also be worth considering. I can recommend DuckDB and Clickhouse. They both have good CSV support and are designed for OLAP use cases. Plus there's always good ole Postgres if that's what you're more familiar with.

I'm looking at DuckDB for other use cases, and also use Postgres in the app, but in that case Explorer is perfect and acts as a compressed in-memory store that I can rely on without reaching the database.
Thank you!
I will close for now, and will share some examples right here in case it helps others later.


How do we authorize create within a context?

From @jcoyne on February 27, 2018 13:57
Assuming we want to create a resource within a collection, we have said there should be an authorization check "Can user X create a new resource Y in collection Z". However, due to how we track collection membership (in the MAP), we first have to create the resource Y, and then add it to collection Z as a second step.  At what point should the authorization be checked?
Copied from original issue: sul-dlss-labs/taco#257

This is probably going to happen at the Administration level, not TACO, given the constraints of contextual permissions at the Collection or Repository (or Object, if complex) level.

Let's open an Administration repo to start moving these tickets to, I think.

I thought this was the administration repo.

it is. read the above comments.


Fix CNS logging

Reason for Change:

OrchestratorContext cannot always be unmarshalled due to different orchestrator types, so updating CNS logging to exclude it
Issue Fixed:

Requirements:

[ ] uses conventional commit messages

[ ] includes documentation
[ ] adds unit tests

Notes:

hey @camrynl you are welcome to merge. you should also usually have an "enable auto-merge" button so that you don't have to come back later after the CI and approvals are in 🙂

@rbtr noted, thanks!


Fix the CI by updating the db2 test

Replaces db2express with the db2 instance by IBM: https://hub.docker.com/r/ibmcom/db2/
Removed the init script since we can now use the DBNAME environment variable. Also updated the driver with the appropriate version.

PTAL @fszabo2 @ebogi
Would be great to get master green again :-)

LGTM too. Thanks @Fokko for fixing the CI!

Hi @Fokko ,
I've merged your pull request! Thank you for this contribution!

My pleasure @fszabo2, thank you for merging.


Changhai logging new

add logging mech to astrasim.
replaced original prints to stdout/stderr to loggers.
created a folder astra-sim/common. Moved some file there which is commonly used across astrasim (some of them were originally located in astra-sim/system.

Covered in #149


Rule Change: detailed axios validation

What rule do you want to change?
lighter-http
What change to do you want to make?
check utilized axios functions and propose replacements with plain JS
What does the rule currently do?
ban all axios occurences
Participation

[ ] I am willing to submit a pull request to implement this change.

Additional comments
No response

Future enhancements

free to take


Completion of implementing integration tests

Integration tests have been implemented.
For running of integration tests:
npm run test-integration
For running of unit tests:
npm run test
Advice:
The integration tests should be runned on build server because of storage consumption and duration.

Thanks, will merge this for next minor/patch release

I get the following error when running npm run test (on Windows 10):

I get the following error when running npm run test (on Windows 10):

And when runningn test-integration only the normal unit tests are tested

Thank you for your feedback. I implemented it with mac os x. i will find a solution, which works for windows and mac os x.


release/v1.5.9

[1.5.9] (May 22 2024)
Feat:
Carousel message
Widget now supports carousel message for commercial shop items. Message with valid extendedMessagePayload?.commerce_shop_items value is displayed as carousel component that is interactable.
Others

Added enableResetHistoryOnConnect in Constant for allowing to reset chat history
Added onWidgetExpandStateChange to Constant.callbacks that will be called upon expanded state change event

Fix:

Fixed a bug where botStudioEditProps.botInfo.profileUrl is not applied to typing indicator bubble
Fixed a bug where suggested replies of botStudioEditProps.welcomeMessages are not being removed after a message is sent
Fixed a bug where injected welcome messages are not displayed when there is no message in the channel
Adjusted margins of message timestamp
Fixed a bug where message bubble width is incorrectly displayed depending on the length of text

/bot create ticket

[Creating Ticket] 🔖 Done https://sendbird.atlassian.net/browse/SDKRLSD-1286


Added refCallback to InfiniteList

Summary
Resolves #895
Additional Details
Added refCallback to Infinite-List to expose ref of listbox (ul)
Thanks for contributing to Terra.
@cerner/terra

See changes.

not able to view requested changes. please guide me to view requested changes (if it is not deleted)


Error upon launch: Invalid configured_addr

Hi,
Looking for a Python based tool to control my IKEA desk and saw your project. Installation through PIP works fine, but I get an error on first launch

Traceback (most recent call last):
File "/usr/local/bin/bluedesk", line 86, in
raise Exception("Invalid configured address:" + configured_addr)
Exception: Invalid configured address:

I haven't been able to get it to work supplying a MAC-Address through --addr either, which I see has been defined in the file. Any ideas what could solve this problem? Would be greatly appreciated.

Yes, indeed I started with the connect command but I get the error message on first launch. Where would the configuration file normally be located?

I have exactly the same problem. Both on an Intel NUC with Ubuntu and on a Raspberry Pi Zero W with Raspbian.
Additionally I tried to add the address in a file bluedesk.conf in /usr/local/lib/python3.7/dist-packages/bluedesk, but I don't know if this is the right path - it also didn't work.

I will try to reproduce

Checkout the 1.9 version, Personally I have some issues with my devices and bluepy but raspberry works perfectly.

The scanning does work now, but on both of our desks Bluedesk says, that the desk (freshly bought IKEA IDASEN) is not compatible.
Out of curiousity I removed the check of the MAC address and got this feedback:
Device: f8:e1:XX:XX:XX:84 connected successfully.
Exception ignored in: <function Peripheral.__del__ at 0xb60ebd68>
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/dist-packages/bluepy/btle.py", line 631, in __del__
    self.disconnect()
  File "/usr/local/lib/python3.7/dist-packages/bluepy/btle.py", line 453, in disconnect
    self._writeCmd("disc\n")
  File "/usr/local/lib/python3.7/dist-packages/bluepy/btle.py", line 304, in _writeCmd
    self._helper.stdin.write(cmd)
ValueError: I/O operation on closed file.

Do you have any idea what the problem could be? And if you need more information, what can I do?
By the way: The MAC addresses are completely different on my desks. They don't have any similar number blocks.

OK so the mac-address has no constant suffix, i will just remove it. The error you got is a disconnection error and can be ignored, did can try to perform up/down actions ?

I tried with no success. When I type bluedesk up, I get this multiple times:
Connection failed: Failed to connect to peripheral f8:e1:XX:XX:XX:84, addr type: random
By the way: When I connect the desk and my console says connected and throwing the error, the desks bluetooth LED is still blinking.

I get the exact the same behaviour on ubuntu system but it works fine on raspberry-pi.

Maybe the Raspberry Pi Zero W is the problem? What Version do you use?
I could try on my Raspberry Pi 4 on another MicroSD card.

Additionally: What OS are you using? I used the newest image of Raspbian Buster Lite.

Oh yeah! I just got it running on my Raspberry Pi 4 🎉 (will counter check later if it is working on my Zero now, too - but I really didn't do anything else than before)
I have another problem, but I'll open a new issue for that.

Now I've counter checked it: The connection problem was because of the Raspberry Pi Zero.


Support Numato Opsis platform. Full- and High-speed enumeration working.

Example for ULPI phy using input clock operation (FPGA provides clock to phy).

CDC ACM serial device in not working with this clock setup and these timing constraints. Will fix that and make new pull request.

@Shari2 - BTW - You should be able to just update this pull request.


Allow explicitly setting Source Hash Key

This key is randomly assigned unless set every time the ruleset is
loaded. In order to make it persist, allow setting it to a predetermined
value.

This most likely needs a bit of tidying, which I'm happy to do in case it seems like a worthwhile merge. It's at this stage mostly a quick proof of concept. Perhaps it has other impacts I'm not aware of?

@fredronnv what is the use-case for this this?

@fredronnv what is the use-case for this this?

When using a pool as NAT translation, in our case a /23, we like to have a predictable translation for clients, so a particular client will always be translated to the same external address, even if the ruleset is modified. Currently if you choose source-hash, pfctl will generate a random value as the source hash key every time the ruleset is loaded, which means that clients will not maintain their external address translation.

sounds reasonable, let me look at this.

@fredronnv thanks! did a small cleanup while there.


Cubit Mesh Reader Error

I have various cubit .gen mesh files that were being read successfully when using a version of mfem that did not have the recent changes to the mesh readers. We have updated our version of mfem, which now incorporates those changes to the file reader, and now I get a netcdf error from the cubit mesh file reader indicating an invalid dimension or name. Did the mesh file reader update introduce an additional requirement when creating a cubit mesh?

The new mesh reader is more strict to ensure correctness.

Is there an example of how the strictness changed and how a cubit mesh should now be specified or set up? I cannot easily identify why previously read meshes are no longer being read. I have similarly created meshes and some work and some don't, but there is no discernible difference between the two (e.g. specified element blocks, side sets etc.).

All elements need to belong to an element block and all boundaries need to be assigned to a side set. If you define 2D meshes you have to make sure that those are not defined as SHELL elements (which cubit selects by default!). The export has to reflect those settings. See screenshot.

Thanks @jandrej - I will look into this more. It is possible that my sidesets only include contact faces, which may not be all the faces on the boundaries. Is there any requirement to specify a nodeset(s)?

No requirement on having a nodeset (not supported in mfem AFAIK). You have to assign all faces that are "in contact with void" to a sideset.

It may be the case that there are other requirements that changed. I took two of my meshes that did not have all of the boundary faces assigned to a sideset, and then assigned all parts of the boundary to a sideset. I tried saving in both Large File Format, and NetCDF4/HDF5 Format, and I still get a mesh reader error. Is there a particular naming convention that now needs to be used for element blocks or sidesets?

Is there a requirement on having unique integer ids between sidesets and blocks? For now I reverted to a previous version of the mesh_reader.cpp and it works fine.

@srwopschall, can you share an example where you see this issue?

relevant PRs: https://github.com/mfem/mfem/pull/3870, https://github.com/mfem/mfem/pull/4178

See #4487

I gave Julian a mesh and we worked through the issue. Please give us a heads up when this goes in.

Discussion continued in #4487


KRun.externalParse StackOverflowError

The files I refer to are found in the attached zip file.  I am using:
K framework version 4.0.0
Git revision: d310c7a
Git branch: v4.0.0
Build date: Wed Jul 27 22:10:26 EDT 2016
When I kompile the module model.k (in the zip file), everything seems fine. But when I do krun --debug model1.mod, I get a StackOverflowError with the following output.
stackoverflowerror.zip
org.kframework.utils.errorsystem.ParseFailedException: [Error] Critical: Parser returned a non-zero exit code: 1
Stdout:
Stderr:
[Error] Internal: Uncaught exception thrown of type StackOverflowError.
Please rerun your program with the --debug flag to generate a stack trace, and
file a bug report at https://github.com/kframework/k/issues
at org.kframework.krun.KRun.externalParse(KRun.java:372)
at org.kframework.krun.KRun.parseConfigVars(KRun.java:298)
at org.kframework.krun.KRun.run(KRun.java:77)
at org.kframework.krun.KRunFrontEnd.run(KRunFrontEnd.java:97)
at org.kframework.main.FrontEnd.main(FrontEnd.java:52)
at org.kframework.main.Main.runApplication(Main.java:110)
at org.kframework.main.Main.runApplication(Main.java:100)
at org.kframework.main.Main.main(Main.java:52)

[Error] Critical: Parser returned a non-zero exit code: 1
Stdout:
Stderr:
[Error] Internal: Uncaught exception thrown of type StackOverflowError.
Please rerun your program with the --debug flag to generate a stack trace, and
file a bug report at https://github.com/kframework/k/issues

The zip file is not part of the output I receive. The output starts after that with "org.kframework..."

I thought perhaps the stack overflow was due to the left recursion in the grammar, but even changing it to right recursion
syntax MBElems ::= MBElem
| MBElem MBElems
doesn't help, as the same error occurs.
However, if I take out the recursion completely and use
module MODEL-SYNTAX
syntax Model ::= "model" Id "{" MBElems "}"
syntax MBElems ::= MBElem
syntax MBElem ::= "use" "module" Id
endmodule
then I don't get the error when I use krun on model1.mod.

You get the stack overflow because the parser gets into a loop. MBElem and MBElems can be nullable.
I changed your example into:
syntax MBElems ::= List{MBElem, ""}
syntax MBElem ::= NeList{Import,";"}

and I managed to get a result.
Note that K has a complete context-free parser, you don't have to worry about left recursion, but you do have to worry about infinite cycles.
Let us know if this solves your problem and if we can close the issue.

Yes, that does solve the problem. Perhaps K should check for such infinite cycles, or the error message about StackOverflowError should be changed to point out the possibility of such infinite cycles, but now that I know what to do I can make progress. Thanks!

Hi Radu,
Thanks very much for your reply. That does solve my problem.
    Regards,

    Gary T. Leavens
    437D Harris Center (Bldg. 116)
    Computer Science, University of Central Florida
    4000 Central Florida Blvd., Orlando, FL 32816-2362 USA
    http://www.cs.ucf.edu/~leavens  phone: +1-407-823-4758
<EMAIL_ADDRESS>
On Tue, Jun 20, 2017 at 5:33 AM, Radu Mereuta<EMAIL_ADDRESS>wrote:

You get the stack overflow because the parser gets into a loop. MBElem
and MBElems can be nullable.
I changed your example into:
syntax MBElems ::= List{MBElem, ""}
syntax MBElem ::= NeList{Import,";"}
and I managed to get a result.
Note that K has a complete context-free parser, you don't have to worry
about left recursion, but you do have to worry about infinite cycles.
Let us know if this solves your problem and if we can close the issue.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/kframework/k/issues/2307#issuecomment-309699161, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ALu2vYJN9CzENndbkQPmrEIuDWQrcV3iks5sF5H_gaJpZM4N9nh-
.


Added request/response to web context

Closes #219

Unfortunately, it won't work as the HttpServletRequest and HttpServletResponse do not exist in every framework.
Notice the J2EContext already provides access to the native request and response: https://github.com/pac4j/pac4j/blob/master/pac4j-core/src/main/java/org/pac4j/core/context/J2EContext.java#L109

OK, that makes sense. How should we tackle the casting problem then?

We should not cast, but use the appropriate methods of the WebContext. Everywhere you need the HTTP request, pass the web context instead and replace the request.getXXX() by context.getXXY().
It seems the request is used by the SAMLMessageStorage and other related objects. For the HttpSessionStorage, use the appropriate methods: context.getSessionAttribute and context.setSessionAttribute.

Sure. I'll look into this more, thanks.

Though the question is: if a request object is not available in all platforms, how is this going to work eventually? We solve the casting issue, but the functionality is still broken because you nonetheless need a request to work with, right?

pac4j is meant for web applications: the request / response should always be available in all platforms. Practically, it is the case, through various objects.

OK, I guess I am confused by your recent comment where you said HttpServletRequest and HttpServletResponse do not exist in every framework. What am I missing? If they don't exist in every framework which prompted the original issue, then why are we moving methods from J2EContext to WebContext? hmmm...

Indeed, HttpServletRequest and HttpServletResponse do not exist in every framework, but similar objects exist to represent the HTTP request and response.

OK, all good. I'll see if I can cook up a new PR shortly.

We should not cast, but use the appropriate methods of the WebContext. Everywhere you need the HTTP request, pass the web context instead and replace the request.getXXX() by context.getXXY().

This solution is not possible. We need access to the native request, because
        final J2EContext j2EContext = (J2EContext) webContext;
        final SimpleRequestAdapter inTransport = new SimpleRequestAdapter(j2EContext);
        final MessageContext<SimpleRequestAdapter> inCtx = new MessageContext<SimpleRequestAdapter>();
        inCtx.setMessage(inTransport);

...
public class SimpleRequestAdapter extends HttpServletRequestWrapper {
    private J2EContext context;

    public SimpleRequestAdapter(final J2EContext request) {
        super(request.getRequest());
    }

The underlying opensaml code that prepares the message context expects a request object and a response object. SimpleRequestAdapter  is a native request by implementing the request-wrapper, and in order for it to do so, it needs access to a native request. So we have to cast.

The only way you could get around the casting problem, is, if you move the native request/response accessors from J2E to the WebContext, but that is going to break other things. So, we might just accept this as "this is how it works. you need both a request and response".

It means you need to go further on the use of the web context objects: how the SimpleRequestAdapter is used and how can you update it or its caller to use the web context instead and no native request / response?
The native request / response will never go into the web context: the SAML support would be unavailable for most implementations. At worst, I prefer to revert the new SAML support and replace it by the old one (which had no dependency on the native request / response), but I'm pretty sure there is a way to make it work.

It's not an issue with SimpleRequestAdapter  per se. The underlying opensaml code expects a native request to work with. It wants from us an HttpServletRequest and it's based on stack, at least the version that we run. There is no way around it. You cannot change opensaml not to do that, and you cannot "pass" a fake request object unless you start to implement the entire request interface in WebContext, which would be futile.
Also, note that reverting to a dead version of the software for what could be considered a marginal use case would not optimal. You will eventually run into issues with support, features, and possibly security updates that are not issued because the project is EOL. Reverting would also mean that CAS will not be able to use any of SAML support in Pac4j. So cons outweigh the pros entirely.
If a framework does not have access to a native j2e request, have "them" fake it instead.

Also, a few other things: The SAML support presented here supports the Web SSO Browser Profile. As the name suggests, it's web based, there requests and responses involved in a web environment. So the adopter would have to assume and accept the fact that in order for SAML support to work, the code would be used in a web application based on the J2E stack. Otherwise, without changing opensaml, I am not sure if we can make this work in ALL environments.
I'll take a look anyway and see if something can be fixed, but I am not optimistic at all.

Example what would happen:
	at org.pac4j.saml.sso.impl.SAML2WebSSOMessageSender.sendMessage(SAML2WebSSOMessageSender.java:114)
	at org.pac4j.saml.sso.impl.SAML2WebSSOMessageSender.sendMessage(SAML2WebSSOMessageSender.java:46)
	at org.pac4j.saml.sso.impl.SAML2WebSSOProfileHandler.send(SAML2WebSSOProfileHandler.java:50)
	at org.pac4j.saml.sso.impl.SAML2WebSSOProfileHandler.send(SAML2WebSSOProfileHandler.java:34)
	at org.pac4j.saml.client.SAML2Client.retrieveRedirectAction(SAML2Client.java:233)
	at org.pac4j.core.client.IndirectClient.getRedirectAction(IndirectClient.java:123)
	at org.pac4j.core.client.IndirectClient.redirect(IndirectClient.java:85)
	at org.pac4j.saml.client.PostSAML2ClientIT.getRedirectionPage(PostSAML2ClientIT.java:56)
	at org.pac4j.core.client.ClientIT.testAuthenticationAndUserProfileRetrieval(ClientIT.java:94)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:483)
	at junit.framework.TestCase.runTest(TestCase.java:176)
	at junit.framework.TestCase.runBare(TestCase.java:141)
	at junit.framework.TestResult$1.protect(TestResult.java:122)
	at junit.framework.TestResult.runProtected(TestResult.java:142)
	at junit.framework.TestResult.run(TestResult.java:125)
	at junit.framework.TestCase.run(TestCase.java:129)
	at junit.framework.TestSuite.runTest(TestSuite.java:255)
	at junit.framework.TestSuite.run(TestSuite.java:250)
	at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:84)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:116)
	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:483)
	at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
Caused by: net.shibboleth.utilities.java.support.component.ComponentInitializationException: HTTP servlet response cannot be null
	at org.opensaml.messaging.encoder.servlet.AbstractHttpServletResponseMessageEncoder.doInitialize(AbstractHttpServletResponseMessageEncoder.java:64)
	at org.opensaml.saml.saml2.binding.encoding.impl.HTTPPostEncoder.doInitialize(HTTPPostEncoder.java:126)
	at net.shibboleth.utilities.java.support.component.AbstractInitializableComponent.initialize(AbstractInitializableComponent.java:61)
	at org.pac4j.saml.sso.impl.SAML2WebSSOMessageSender.sendMessage(SAML2WebSSOMessageSender.java:102)
	... 30 more

Another option is, pac4j writes its own Post Encoder/Decoder components for SAML.

I admit that reverting to an old opensaml implem is not a good solution, but it's not an edge case. Most pac4j implementations don't have a HttpServletRequest / HttpServletResponse.
Indeed, maybe some native opensaml component needs to copy/paste and the request/response replace by the web context. I'm confident we can find a solution on this, but even it's a lot harder than just implementing it for J2E, it has great benefits: working out of the box for 10 different frameworks.

OK, sure. I think I have pretty much narrowed it down to the encoders/decoders. If we write impls for those that are based on WebContext, we may be able to solve the problem entirely.

Testing. The TestShib Idp shows:
Relying party 'urn:mace:saml:pac4j.org' requested the response to be returned to endpoint with ACS URL 'http://localhost:8080/callback?client_name=SAML2Client'  and binding 'urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST' however no endpoint, with that URL and using a supported binding,  can be found in the relying party's metadata
07:29:33.003 - ERROR [edu.internet2.middleware.shibboleth.idp.profile.AbstractSAMLProfileHandler:447] - No return endpoint available for relying party urn:mace:saml:pac4j.org

My metadata has:
<md:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="http://localhost:8080/callback?client_name=SAML2Client" index="0"/>

Is it possible that the copy of the metadata testshib has for pac4j has changed?


Hot deployment localize() should catch EEXIST errors

Code currently catches ENOTEMPTY but EEXIST can also be raised.

I think @arkal has a fix for this too in one of his PRs.

Are we talking about #517?

Are we talking about #517?

I don't think so. I clearly remember looking at the same line of code that's touched by @cket's 	463b84f and discussing the fact that OS X raises a different errno compared to Linux. It was either with @arkal or with @cket. It's not important, if I am right, someone will get a conflict.


lisp-module build fails when trying to use cl-charms

Describe the bug
cl-charms is missing a dependency, hence the build fails.
Steps To Reproduce
Steps to reproduce the behavior:

Add cl-charms to sbcl:

  sbcl' = pkgs.sbcl.withPackages (ps: with ps; [
    quick-patch
    cl-charms
  ]);

Run nix-build $NIXPKGS -A <new-package>
You end up with this error:

$ nix log /nix/store/av198lzyzhzvary060q99ch87686mks1-cl-charms-20230618-git.drv | cat
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/rx75h995286xsfv01bh90bqwbn589qgb-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
building
This is SBCL 2.3.7.nixos, an implementation of ANSI Common Lisp.
More information about SBCL is available at <http://www.sbcl.org/>.

SBCL is free software, provided as is, with absolutely no warranty.
It is mostly in the public domain; some portions are provided under
BSD-style licenses.  See the CREDITS and COPYING files in the
distribution for more information.
* #<PACKAGE "NIX-CL-USER">
* #<PACKAGE "NIX-CL-USER">
* T
* LOAD-SYSTEMS
* ; compiling file "/nix/store/rx75h995286xsfv01bh90bqwbn589qgb-source/src/features.lisp" (written 01 JAN 1970 12:00:01 AM):

; wrote /build/source/src/features-tmpGHU3ALSV.fasl
; compilation finished in 0:00:00.005
; compiling file "/nix/store/rx75h995286xsfv01bh90bqwbn589qgb-source/src/low-level/package.lisp" (written 01 JAN 1970 12:00:01 AM):

; wrote /build/source/src/low-level/package-tmpAAURSO1.fasl
; compilation finished in 0:00:00.001
; gcc -o /build/source/src/low-level/curses-grovel__grovel-tmp5GEXGEG5.o -c -g -Wall -Wundef -Wsign-compare -Wpointer-arith -O3 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wunused-parameter -fno-omit-frame-pointer -momit-leaf-frame-pointer -fPIC -I/nix/store/sgd15g1l196r5bp8n7cpyksvbgq56n66-cffi-grovel-20230618-git/ /build/source/src/low-level/curses-grovel__grovel.c
/build/source/src/low-level/curses-grovel__grovel.c:6:10: fatal error: ncurses.h: No such file or directory
    6 | #include <ncurses.h>
      |          ^~~~~~~~~~~
compilation terminated.
;
; compilation unit aborted
;   caught 1 fatal ERROR condition
BUILD FAILED: Subprocess #<UIOP/LAUNCH-PROGRAM:PROCESS-INFO {1001F415B3}>
 with command ("gcc" "-o"
               "/build/source/src/low-level/curses-grovel__grovel-tmp5GEXGEG5.o"
               "-c" "-g" "-Wall" "-Wundef" "-Wsign-compare" "-Wpointer-arith"
               "-O3" "-D_LARGEFILE_SOURCE" "-D_LARGEFILE64_SOURCE"
               "-D_FILE_OFFSET_BITS=64" "-Wunused-parameter"
               "-fno-omit-frame-pointer" "-momit-leaf-frame-pointer" "-fPIC"
               "-I/nix/store/sgd15g1l196r5bp8n7cpyksvbgq56n66-cffi-grovel-20230618-git/"
               "/build/source/src/low-level/curses-grovel__grovel.c")
 exited with error code 1

Expected behavior
cl-charms should build without any issues
Screenshots
-
Additional context
-
Notify maintainers
@Uthar
@7c6f434c
Metadata
nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.43, NixOS, 23.05 (Stoat), 23.05.2613.011567f35433`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.3`
 - channels(ashvith): `""`
 - channels(root): `"nixos-23.05"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

If cl-charms doesn't work, that is a bug but kind:bug and not kind:build-failure so another issue not to mix stuff…


Prepare for release v31

Due to breaking API changes in #1484 and #1487, we need to bump the major version for the next release. This PR prepares for that release.

Thank you, @nightlark!
Merging and then releasing v31.0.0.


FrSky telemetry daemon supporting D16 or SmartPort on FMUv4

tested with OpenTX 2.1 and FrSky X4R-SB and D4R-II receivers on PixRacer R12
5 virtual smartport sensor IDs currently implemented:

VFAS reports vehicle_status.battery_voltage
Current sensor reports vehicle_status.battery_current
ALT reports raw.baro_alt_meter
GSPD reports magnitude of global_pos.vel_n,e,d
FUEL reports vehicle_status.battery_remaining

I don't understand why Travis is failing.

It failed here running cmake for px4fmu-v4
https://travis-ci.org/PX4/Firmware/jobs/104315343#L1604
CMake Error at CMakeLists.txt:332 (add_subdirectory):
 add_subdirectory given source "src/drivers/sPort_telemetry" which is not an
 existing directory.

@dagar Thanks, I had forgotten to push my last commit.

Awesome!

Applied to master, thanks!


it wont launch with the mod

i download the zip file, and i exact it  put it into the mods folder for the long dark, launch it and it says no mods have been loaded. i tried all the releases no of them worked unless i did something wrong

i have the same issue

Please! Read news on discord server! Mod is not working cause of game update. I am working to make it work on new version of game, just be patient.


Pokemon Service integration tests don't negotiate their way up to HTTP2

We were under the impression that a whitelabel smithy-rs client should out-of-the box negotiate its way up to h2 if the server supports it.
However, I'm unable to observe that behavior with the Pokémon Service's integration tests.
This is how the server is configured, which I'm able to get it to use HTTP2 with curl.
https://github.com/awslabs/smithy-rs/blob/cd0563020abcde866a741fa123e3f2e18e1be1c9/rust-runtime/aws-smithy-http-server/examples/pokemon_service/src/main.rs#L56
And this is how the client is instantiated.
https://github.com/awslabs/smithy-rs/blob/cd0563020abcde866a741fa123e3f2e18e1be1c9/rust-runtime/aws-smithy-http-server/examples/pokemon_service/tests/helpers.rs#L32-L47
cd rust-runtime/aws-smithy-http-server/examples && make && RUST_LOG=DEBUG cargo test reveals  the integration tests are still using HTTP 1.1.
2022-07-07T16:25:09.547216Z DEBUG hyper::proto::h1::io: 205: parsed 1 headers
2022-07-07T16:25:09.547265Z DEBUG hyper::proto::h1::conn: 217: incoming body is empty
2022-07-07T16:25:09.547526Z DEBUG request{method=GET uri=/stats version=HTTP/1.1}: tower_http::trace::on_request: 91: started processing request
2022-07-07T16:25:09.547611Z DEBUG request{method=GET uri=/stats version=HTTP/1.1}: pokemon_service: 190: This instance served 0 requests
2022-07-07T16:25:09.547755Z DEBUG request{method=GET uri=/stats version=HTTP/1.1}: tower_http::trace::on_response: 254: finished processing request latency=0 ms status=200
2022-07-07T16:25:09.547912Z DEBUG hyper::proto::h1::io: 312: flushed 125 bytes

FYI the curl command line which works is
curl -v --http2 --http2-prior-knowledge -H "Content-Type: application/json" -H "Accept: application/json" http://localhost:13734/pokemon-species/pikachu |jq .

Seems like clients only switch to http2 if server supports ALPN h2 protocol (unless you force with options like --http2-prior-knowledge).
with this changes, clients uses http2 by default:
diff --git a/rust-runtime/aws-smithy-http-server/examples/pokemon-service/Cargo.toml b/rust-runtime/aws-smithy-http-server/examples/pokemon-service/Cargo.toml
index c27682f9..74435673 100644
--- a/rust-runtime/aws-smithy-http-server/examples/pokemon-service/Cargo.toml
+++ b/rust-runtime/aws-smithy-http-server/examples/pokemon-service/Cargo.toml
@@ -16,6 +16,9 @@ tower = "0.4"
 tower-http = { version = "0.3", features = ["trace"] }
 tracing = "0.1"
 tracing-subscriber = { version = "0.3", features = ["env-filter"] }
+tls-listener = { version = "0.5.1", features = ["hyper-h2", "rustls"] }
+tokio-rustls = "0.23.4"
+rustls-pemfile = "1.0.1"

 # Local paths
 aws-smithy-http-server = { path = "../../" }
diff --git a/rust-runtime/aws-smithy-http-server/examples/pokemon-service/src/main.rs b/rust-runtime/aws-smithy-http-server/examples/pokemon-service/src/main.rs
index e1413c68..110cb423 100644
--- a/rust-runtime/aws-smithy-http-server/examples/pokemon-service/src/main.rs
+++ b/rust-runtime/aws-smithy-http-server/examples/pokemon-service/src/main.rs
@@ -8,11 +8,15 @@ use std::{net::SocketAddr, sync::Arc};

 use aws_smithy_http_server::{AddExtensionLayer, Router};
 use clap::Parser;
+use hyper::server::conn::AddrIncoming;
 use pokemon_service::{
     capture_pokemon, empty_operation, get_pokemon_species, get_server_statistics, get_storage, health_check_operation,
     setup_tracing, State,
 };
 use pokemon_service_server_sdk::operation_registry::OperationRegistryBuilder;
+use tls_listener::TlsListener;
+use tokio_rustls::rustls::{Certificate, PrivateKey, ServerConfig};
+use tokio_rustls::TlsAcceptor;
 use tower::ServiceBuilder;
 use tower_http::trace::TraceLayer;

@@ -56,13 +60,49 @@ pub async fn main() {
     );

     // Start the [`hyper::Server`].
-    let bind: SocketAddr = format!("{}:{}", args.address, args.port)
+    let addr: SocketAddr = format!("{}:{}", args.address, args.port)
         .parse()
         .expect("unable to parse the server bind address and port");
-    let server = hyper::Server::bind(&bind).serve(app.into_make_service());
-
+    let incoming = TlsListener::new(tls_acceptor(), AddrIncoming::bind(&addr).unwrap());
+    let server = hyper::Server::builder(incoming).serve(app.into_make_service());
     // Run forever-ish...
     if let Err(err) = server.await {
         eprintln!("server error: {}", err);
     }
 }
+
+fn tls_acceptor() -> TlsAcceptor {
+    let key = load_private_key(include_bytes!("../../localhost-key.pem"));
+    let certs = load_certs(include_bytes!("../../localhost.pem"));
+    let mut server_config = ServerConfig::builder()
+        .with_safe_defaults()
+        .with_no_client_auth()
+        .with_single_cert(certs, key)
+        .unwrap();
+    // clients don't use http2 by default without this
+    server_config.alpn_protocols = vec!["h2".into(), "http/1.1".into()];
+    Arc::new(server_config).into()
+}
+
+fn load_certs(file: &[u8]) -> Vec<Certificate> {
+    let mut reader = std::io::BufReader::new(file);
+    rustls_pemfile::certs(&mut reader)
+        .unwrap()
+        .iter()
+        .map(|v| Certificate(v.clone()))
+        .collect()
+}
+
+fn load_private_key(file: &[u8]) -> PrivateKey {
+    let mut reader = std::io::BufReader::new(file);
+    loop {
+        match rustls_pemfile::read_one(&mut reader).expect("cannot parse private key .pem file") {
+            Some(rustls_pemfile::Item::RSAKey(key)) => return PrivateKey(key),
+            Some(rustls_pemfile::Item::PKCS8Key(key)) => return PrivateKey(key),
+            Some(rustls_pemfile::Item::ECKey(key)) => return PrivateKey(key),
+            None => break,
+            _ => {}
+        }
+    }
+    panic!("invalid private key")
+}
diff --git a/rust-runtime/aws-smithy-http-server/examples/pokemon-service/tests/helpers.rs b/rust-runtime/aws-smithy-http-server/examples/pokemon-service/tests/helpers.rs
index 173755d1..480bd0b9 100644
--- a/rust-runtime/aws-smithy-http-server/examples/pokemon-service/tests/helpers.rs
+++ b/rust-runtime/aws-smithy-http-server/examples/pokemon-service/tests/helpers.rs
@@ -37,7 +37,7 @@ pub fn client() -> Client<
         .rustls()
         .middleware_fn(|mut req| {
             let http_req = req.http_mut();
-            let uri = format!("http://localhost:13734{}", http_req.uri().path());
+            let uri = format!("https://localhost:13734{}", http_req.uri().path());
             *http_req.uri_mut() = uri.parse().unwrap();
             req
         })

cURL:
$ curl -sI -H "Accept: application/json" https://localhost:13734/pokemon-species/pikachu -o/dev/null -w '%{http_version}\n'
2

Tests:
$ RUST_LOG=DEBUG cargo test 2&>1 | grep "HTTP/"
2022-08-11T12:51:40.090507Z DEBUG request{method=GET uri=https://localhost:13734/stats version=HTTP/2.0}: tower_http::trace::on_request: 91: started processi
ng request
2022-08-11T12:51:40.090607Z DEBUG request{method=GET uri=https://localhost:13734/stats version=HTTP/2.0}:request{operation=get_server_statistics method=GET u
ri=https://localhost:13734/stats headers={}}: pokemon_service: 204: This instance served 0 requests
2022-08-11T12:51:40.090748Z DEBUG request{method=GET uri=https://localhost:13734/stats version=HTTP/2.0}:request{operation=get_server_statistics method=GET u
ri=https://localhost:13734/stats headers={}}: aws_smithy_http_server::logging::service: 47: response headers={"content-type": "application/json", "content-le
ngth": "17"} status_code=200 OK
# ...

Addressed with https://github.com/awslabs/smithy-rs/pull/1634


image on custom tableViewCell cannot be shown,but just placeHolderImage

i used SDWebImage to load image for my custom cell like this:
//1 in cellForRow methods
//...
static NSString *cellIndentifier = @"LKIndexCell";
    LKJobIndexCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIndentifier];
    if (!cell) {
        cell = [[LKJobIndexCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIndentifier];
    }
    cell.job = self.jobsList[indexPath.row];
    return cell;

// 2 in cell's setter Model
// jobHolderImgV is my custom imageView for cell
#import "UIImageView+WebCache.h"
- (void)setJob:(LKJobInfoModel *)job {
     _job = job;
     ...
    _job.jobHolderImgUrl = [_job.jobHolderImgUrl stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
     [self.jobHolderImgV sd_setImageWithURL:[NSURL URLWithString:_job.jobHolderImgUrl] placeholderImage:[UIImage imageNamed:@"place_holder"]];
}

at the end of show of cell.I just can see the placeHolder for cell'imageView ,i tried other methods as [self.jobHolderImgV sd_setImageWithURL:[NSURL URLWithString:_job.jobHolderImgUrl] placeholderImage:[UIImage imageNamed:@"place_holder"] options:SDWebImageRetryFailed]; and so on .failed too.
how can i solve this problem?

please check the sample project for more info

well.i netted a project to show my difficulty in using SDWebImage ,maybe there are some mistakes.this is  the git url:https://github.com/tangzzz-fan/testUseSDWebImage.git .thankes for your help

you forgot to add these:
<key>NSAppTransportSecurity</key>
     <dict>
          <key>NSAllowsArbitraryLoads</key><true/>
     </dict>

in your info.plist file
more info here

thanks ,the question has been solved


Blue Air ICAO code

BMS -> BLA
Affected model: B734

Done.
Issue can be closed.

@birdydma This may have been updated in the swift db but that isn't relevant here. The xsb_aircraft.txt should also be updated for the benefit of other pilot clients.

My bad, sorry. My intention was to save your time. I have cross checked every other issues, and i have missed this xsb_aircraft.txt.

All good. Thank you, I appreciate it.


[opencascade] Fix static build

Fixes #14874.

@fauder Can you test this PR?
Thanks.

@fauder Can you test this PR?
Thanks.

Thank you for taking the time to fix this.
What I did:

Cloned vcpkg into a fresh directory.
pulled your pr with git fetch origin pull/14901/head:dev/jack/14874.
git checkout dev/jack/14874.
Don't know if was necessary but I ran bootstrap.sh and vcpkg integrate install anyways.
vcpkg install opencascade:x64-windows-static.

Build failed unfortunately:
(Omitting the successfull build of 5 dependencies)
Starting package 6/6: opencascade:x64-windows-static
Building package opencascade[core]:x64-windows-static...
-- Downloading https://github.com/Open-Cascade-SAS/OCCT/archive/V7_4_0.tar.gz...
-- Extracting source C:/Users/Burak/Desktop/vcpkg-test/vcpkg/downloads/Open-Cascade-SAS-OCCT-V7_4_0.tar.gz
-- Applying patch fix-msvc-32bit-builds.patch
-- Applying patch fix-static-build.patch
-- Using source at C:/Users/Burak/Desktop/vcpkg-test/vcpkg/buildtrees/opencascade/src/V7_4_0-3a470d68c8.clean
-- Configuring x64-windows-static
-- Building x64-windows-static-dbg
-- Building x64-windows-static-rel
CMake Error at ports/opencascade/portfile.cmake:51 (file):
  file RENAME failed to rename

    C:/Users/Burak/Desktop/vcpkg-test/vcpkg/packages/opencascade_x64-windows-static/debug/bind

  to

    C:/Users/Burak/Desktop/vcpkg-test/vcpkg/packages/opencascade_x64-windows-static/debug/bin

  because: No such file or directory

Call Stack (most recent call first):
  scripts/ports.cmake:136 (include)

Error: Building package opencascade:x64-windows-static failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: opencascade:x64-windows-static
  Vcpkg version: 2020.11.12-nohash

Additionally, attach any relevant sections from the log files above.

Pulled f58bacb and tried again and got errors:
Computing installation plan...
The following packages will be built and installed:
    opencascade[core]:x64-windows-static -> 7.4.0#2
Detecting compiler hash for triplet x64-windows-static...
Could not locate cached archive: C:\Users\Burak\AppData\Local\vcpkg\archives\a0\a0eafdba50e48d441b9c5192b4b5647ac2682625.zip
Starting package 1/1: opencascade:x64-windows-static
Building package opencascade[core]:x64-windows-static...
-- Using cached C:/Users/Burak/Desktop/vcpkg-test/vcpkg/downloads/Open-Cascade-SAS-OCCT-V7_4_0.tar.gz
-- Extracting source C:/Users/Burak/Desktop/vcpkg-test/vcpkg/downloads/Open-Cascade-SAS-OCCT-V7_4_0.tar.gz
-- Applying patch fix-msvc-32bit-builds.patch
-- Applying patch fix-static-build.patch
-- Using source at C:/Users/Burak/Desktop/vcpkg-test/vcpkg/buildtrees/opencascade/src/V7_4_0-bb62db8ee1.clean
-- Configuring x64-windows-static
-- Building x64-windows-static-dbg
-- Building x64-windows-static-rel
-- Installing: C:/Users/Burak/Desktop/vcpkg-test/vcpkg/packages/opencascade_x64-windows-static/share/opencascade/copyright
-- Performing post-build validation
There should be no bin\ directory in a static build, but C:\Users\Burak\Desktop\vcpkg-test\vcpkg\packages\opencascade_x64-windows-static\bin is present.
There should be no debug\bin\ directory in a static build, but C:\Users\Burak\Desktop\vcpkg-test\vcpkg\packages\opencascade_x64-windows-static\debug\bin is present.
If the creation of bin\ and/or debug\bin\ cannot be disabled, use this in the portfile to remove them

    if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
        file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
    endif()

Found 1 error(s). Please correct the portfile:
    C:\Users\Burak\Desktop\vcpkg-test\vcpkg\ports\opencascade\portfile.cmake
-- Performing post-build validation done
Error: Building package opencascade:x64-windows-static failed with: POST_BUILD_CHECKS_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: opencascade:x64-windows-static
  Vcpkg version: 2020.11.12-nohash

Additionally, attach any relevant sections from the log files above.

@fauder I will ping you when I finish this PR.

Sure.

@fauder I will ping you when I finish this PR.

@fauder Ready

@fauder Ready

It builds without any errors on a fresh vcpkg clone 👍 I'll wait for it to be merged to try it on my actual vcpkg directory. It took 40 minutes sheesh.
Thanks a lot by the way.

Thanks for your help!


Fix exitstatus check and cleanup curl

exitstatus is only set when the io is closed
use popen so that we don't have to care about spaces

By the way, this probably affected people who were using xcode-install via SSH.
Fastlane gets an error security: SecKeychainAddInternetPassword <NULL>: User interaction is not allowed. and this exitcode is then reported to the download causing [!] Failed to download Xcode 7.1.


What is the license for this code?

Hey Joshua!
What is the license for this code?

Hi @sergiobd , this is under MIT License

Sorry I hadn't seen the license file before.
Thanks for your answer.


The logPageUrl can not be opened by browser because the special character[^] in transactionId

We know the transactionId contains a special character[^], when we want expose log in pinpoint web there is an issue has been happened.
when I clicked this Logs button, the url [http://localhost:8080/trace/simple/firstPage?transactionId=simple-test-b^1555050672824^1&time=1555050690954] cannot
be opened by browser.

so, we need encode this url before open a new window.
alter the file that is named [transaction-detail.controller.js] and modify [viewLog] method to add encodeURI(url) like this:
if ( $scope.loggingTransactionInfo === false ) { 	        		$("#customLogPopup").find("h4").html("Notice").end().find("div.modal-body").html( $scope.logDisableMessage ).end().modal("show"); 	        		return false; 	        	} else { 	        		window.open(encodeURI(url)); 	        	}

@DaigangLi
Thank you :)
I updated the code.


Build: fix build on Mac OS by cfg'ing away pprof

Closes #5932
What have you changed?
It seems that the build is broken because pprof is a Linux-only crate (because it depends on a function in libc which is not portable). In this PR I make pprof a Linux-only dep and cfg away any usage.
What is the type of the changes?
Pick one of the following and delete the others:

Bugfix (a change which fixes an issue)

How is the PR tested?
it builds
PTAL @siddontang @BusyJay

IMO, I hope we can support MacOSX, so we can profile TiKV in local development directly, this is a very useful feature.

I hope we can support MacOSX, so we can profile TiKV in local development directly, this is a very useful feature.

Me too! But I don't want to block building TiKV on somebody implementing it :-)

the problem is caused by pthread_getname_np, seem it is absent on MacOSX, do you have any idea that getting thread name on MacOSX? @nrc

do you have any idea that getting thread name on MacOSX?

I don't. I assume it is possible, but no idea how.

/merge

/merge

/merge

/merge


Getting Started - Violas Journey

Still needs:

[ ] all files required should be downloadable as .zip

index.mdx
create-arc

[ ] ARCitect

add-metadata

[ ] freetext protocol
[ ] sorting freetext protocol into arc format (tables)

add-data

[ ] raw data
[ ] data processing code (python?), creating plots

reference to cwl

upload-to-datahub

[ ] "wants to share her ARC with her collegue (name?)"
[ ] git reference
[ ] lfs-files

@HLWeil, maybe you can boil your pptx demo into here?
I already exported some of the images into svg
https://github.com/nfdi4plants/nfdi4plants.knowledgebase/tree/starlight-start-here/src/assets/images/start-here/newDPfigures

Yep, would be happy to contribute to this using the adjusted workshop!


Failed to create pipeline resource by tektoncd client

I have update my client version. Now I don't see any function to create pipeline resource . May be Pipeline resource has been deprecated. If so, then what is the workaround?

/kind question

Hey @zeromsi , you are correct, PipelineResources have been deprecated in v0.30.0. Here is the TEP in which you can find reasoning on the deprecation. You can find a document here on migrating from PipelineResources to Tasks.

@zeromsi you can look at what the CLI does. In the code, the PipelineResource are in a different package, meaning different versionedClient, …

https://github.com/tektoncd/cli/blob/main/pkg/cmd/pipelineresource/list.go#L29
https://github.com/tektoncd/cli/blob/main/pkg/cmd/pipelineresource/list.go#L130

@jbpratt and @vdemeester  Thanks bro.