Add Check_MK Pack

Check_MK Pack
Check_MK is a monitoring solution in the tradition of Nagios.
Status

new pack, MVP

Description
Skeleton of a Check_MK pack. Currently only provides the minimum integration to configure Check_MK to send notification events to StackStorm. Sufficient for taking action on alerts. Does not yet support two-way communication, i.e., acking alerts.
Checklist (tick everything that applies)

[X] Metadata: pack.yaml, icon, structure (required for new packs)
[ ] Version bump (required for changed packs)
[ ] Code linting (required, can be done after the PR checks)
[ ] Tests (not required but really recommended)

Great, thanks for the contribution. It looks like a good start :)

Any idea why this failed?
My hunch is that it tries to auto-load the (example) rules but fail because it doesn't auto-load the provided trigger? Does that sound right?
2016-04-13 18:19:00,167 WARNING [-] Failed to register rules: A simple trigger should have been created when registering triggertype. Cannot create trigger: {'type': 'check_mk.event_handler', 'parameters': {}, 'pack': 'check_mk'}.
Traceback (most recent call last):
  File "/tmp/st2/st2common/bin/st2-register-content", line 22, in <module>
    sys.exit(content_loader.main(sys.argv[1:]))
  File "/tmp/st2/st2common/st2common/content/bootstrap.py", line 284, in main
    register_content()
  File "/tmp/st2/st2common/st2common/content/bootstrap.py", line 250, in register_content
    register_rules()
  File "/tmp/st2/st2common/st2common/content/bootstrap.py", line 186, in register_rules
    raise e
st2common.exceptions.triggers.TriggerDoesNotExistException: A simple trigger should have been created when registering triggertype. Cannot create trigger: {'type': 'check_mk.event_handler', 'parameters': {}, 'pack': 'check_mk'}.
Registering resources for pack check_mk failed
make: *** [.packs-resource-register] Error 1

@codyaray Its because packs/check_mk/triggers/event_handler.yaml is not registered. In fact AFAIK the triggers folder is not processed.
The TriggerTypes are registered through the sensor registration or via api e.g. https://github.com/StackStorm/st2contrib/blob/master/packs/circle_ci/sensors/webhook_sensor.yaml#L5.

So what do I change? Anything?

Right now you have two options:

Move trigger creation inside the check script (not ideal, but that's what nginx script does right now)
Create a dummy sensor YAML metadata file which registers this trigger. You can use some mock / dummy value for sensor name, class name, etc.

I will also discuss it with @manasdk and others today. I think we should still support registering triggers which don't belong to the any sensor (e.g. adding a YAML file to <pack name>/triggers/ directory or similar).
I think this would be good since approach 1) breaks "infrastructure as code" approach and approach 2) is more of a hack.

Okay, I'll just sit tight and wait for auto-registration for triggers then. :)

Did ya'll figure anything out for auto-registration of triggers? Should I create an issue to track this? @Kami @manasdk

https://github.com/StackStorm/st2/pull/2752 has been merged into trunk so we can merge this PR once all the tests pass.
It means this pack will only work with StackStorm v1.5 so it's probably a good idea to indicate this in the readme.

This should still be compatible with pre-1.5 but you'll have to manually register the trigger as documented in the README. This seems to be still failing at the trigger registration though. Any ideas?

Can you gist the output please and I will have a look.

https://travis-ci.org/StackStorm/st2contrib/jobs/140863911 :)

Hm, thanks.
Thanks weird, I will dig into it later.

@codyaray I tracked it down to a bug in the trigger registration code.
I will work on a fix and make sure it's included in v1.5.1 :)

Whew. Thought it was just me. Thanks for being so on top of it!
-Cody
On Jun 29, 2016 8:22 AM, "Tomaz Muraus"<EMAIL_ADDRESS>wrote:

@codyaray https://github.com/codyaray I tracked it down to a bug in the
trigger registration code.
I will work on a fix and make sure it's included in v1.5.1 :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/StackStorm/st2contrib/pull/475#issuecomment-229353852,
or mute the thread
https://github.com/notifications/unsubscribe/AACsHplOn0l0Ilfw2R1c0x2LOLDp7UEKks5qQnGfgaJpZM4IGqYu
.

Alright, fix is already in master so I will go ahead and merge this (tests use master).
I will let you know once v1.5.1 with fix is out (probably in two weeks or so).


Its not clear where the code should be copied

Its not clear where the code should be copied
[Enter feedback here]

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

ID: 95b6da01-c39e-67af-541e-6c9ee48c1d26
Version Independent ID: bc9e9e91-8151-e02f-ee88-e12929dff9ba
Content: Build a bar chart - Power BI
Content Source: powerbi-docs/developer/visuals/create-bar-chart.md
Service: powerbi
Sub-service: powerbi-custom-visuals
GitHub Login: @KesemSharabi
Microsoft Alias: kesharab

Hi, @MehdiRMS -- thanks for asking! Assigning to the author.

Hi @uve, can you please help @MehdiRMS understand where the code needs to be copied to?

@MehdiRMS, please get the full source code of the visual here:
https://github.com/Microsoft/PowerBI-visuals-sampleBarChart


Wiki page on FaceMesh landmarks?

Is there a wiki page or resource that outlines all the landmarks available in the geometry predicted in FaceMesh? This already exists for pose. I want to be able to get certain facial landmarks directly.

Hi @AmritAmar , You can find the complete details here but you need to deep dive in the links to get more details ,  Assuming you are expecting this  referenes ref1 and ref2

Hi @AmritAmar Did you get a chance to go through above comment. Thanks!

Thanks a lot! ref2 helps!


Bug: paragraph removed  when the last character of the first paragraph was deleted

Lexical version: 0.10.0
Link to code example:

Seems like this only occurs under certain conditions shown in the video. Perhaps related to canBeEmpty/existence of the blockquote directly below.

Seems like this only occurs under certain conditions shown in the video. Perhaps related to canBeEmpty/existence of the blockquote directly below.

its easy to occur


Improve performance of rounding dates in date_histogram aggregation

Description
In the date_histogram aggregation, the timestamp value from each document must be rounded down to the nearest interval (year, quarter, month, week, day, etc.) as defined in the search request. This rounded down timestamp serves as the bucket key to aggregate results. Instead of rounding down the timestamp for each hit, the ArrayRounding class pre-computes the possible values and performs a binary search to find the round down point.
This is ideal for sufficiently large arrays. But a simple linear search is far superior for small arrays as it avoids the penalty of branch misprediction and pipeline stalls, and accesses memory sequentially.
Since this takes up majority of the CPU time, making these changes can lead to significant improvements. Hot methods:
42.55% java/util/Arrays.binarySearch0 ([JIIJ)I Inlined
11.74% org/opensearch/common/util/ReorganizingLongHash.find (J)J Inlined
9.32% .itable stub ()L; Native
7.15% org/opensearch/search/aggregations/bucket/histogram/DateHistogramAggregator$1.collect (IJ)V JIT compiled
6.06% org/apache/lucene/util/packed/DirectReader$DirectPackedReader12.get (J)J JIT compiled

Macro benchmarks
I reused the noaa OSB workload and executed the following search request with varying intervals.
{
  "size": 0,
  "aggs": {
    "observations_per_month": {
      "date_histogram": {
        "field": "date",
        "interval": "month"
      }
    }
  }
}

Interval
Num Values
Binary (ms)
Linear (ms)

year
3
870
824

quarter
12
1293
999

month
36
1625
1132

week
—
695
652

day
—
1004
942

Improvement in quarter/month intervals is substantial. Improvement in year/week/day interval is small as the number of pre-computed values is small, so no big jumps are made to access memory. This varies from workload to workload.
Micro benchmarks
Results are from c6i.2xlarge EC2 instance (Intel Xeon 8375C CPU @ 2.90GHz). Full results.
Uniform distribution
Each value equally likely to be picked.

Size
Binary (M ops/s)
Linear (M ops/s)

1
542.007
3371.438

2
143.544
201.142

4
97.628
134.224

8
64.972
102.861

16
49.087
89.784

32
38.744
70.796

64
31.847
58.108

128
25.786
44.351

256
23.336
29.917

Skewed distribution (towards the edge)
Follows a normal distribution centered at p90 ± 5% stddev.

Size
Binary (M ops/s)
Linear (M ops/s)

1
569.787
3140.960

2
386.256
3324.844

4
253.394
1366.625

8
114.747
328.050

16
85.917
167.981

32
62.349
101.340

64
48.765
85.985

128
39.663
64.171

256
32.544
50.117

Skewed distribution (centered)
Follows a normal distribution centered at p50 ± 5% stddev. This is the worst-case for "meet in the middle" linear search.

Size
Binary (M ops/s)
Linear (M ops/s)

1
571.713
3339.736

2
131.849
205.204

4
128.351
175.668

8
116.738
138.015

16
89.446
96.195

32
62.628
64.243

64
46.722
46.605

128
37.563
31.748

256
30.916
19.308

Alternatives

I experimented with Eytzinger layout to improve the memory access pattern. The performance was marginally better than regular binary search but slower than linear search on small arrays, and similar to regular binary search on large arrays.
On top of (1), I tried to write a branchless implementation of binary search but the unpredictability of JIT makes this task almost impossible.
Linear search is very SIMD friendly! For very small arrays (<4 elements) it doesn't make sense as the overhead of bootstrapping is more than the actual work, but for large arrays, the SIMD implementation is almost twice as fast (platform specific). I'll raise a follow up PR for this.

Check List

[x] New functionality includes testing.

[x] All tests pass

[x] New functionality has been documented.

[x] New functionality has javadoc added

[x] Commits are signed per the DCO using --signoff
[x] Commit changes are listed out in CHANGELOG.md file (See: Changelog)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@ketanv3 you need to rebase please

@reta @msfroh Synced with main and reran the checks.
The failures look related to https://github.com/opensearch-project/OpenSearch/issues/9792, fixes for which were merged into main minutes after I started checks for this PR. Do you want me to rebase again and run tests again, or are we good with these?

@reta @msfroh Synced with main and reran the checks.
The failures look related to #9792, fixes for which were merged into main minutes after I started checks for this PR. Do you want me to rebase again and run tests again, or are we good with these?

Sorry -- could you please rebase again? Ideally we'd like the checks passing when we merge.

@reta @msfroh Synced with main and reran the checks.

Thanks @ketanv3 , the rule we try to follow - the checks should pass (yes, I know that flaky tests are very frustrating), but please rebase

Jenkins responding with a 503 error now. Waiting for it recover before retrying the checks.

Bad Gateway errors from Jenkins again. :(
GitHub action failed but the check is still running in the background.
https://build.ci.opensearch.org/job/gradle-check/25029/console

Jenkins down again. This is disappointing.

https://build.ci.opensearch.org/job/gradle-check/25052/
Flaky tests:

https://github.com/opensearch-project/OpenSearch/issues/5030
https://github.com/opensearch-project/OpenSearch/issues/1563

@reta @msfroh Gradle check succeeded. Can we merge this now?

@reta @msfroh Gradle check succeeded. Can we merge this now?

@ketanv3 @msfroh do we think it should go to 2.10?


Unable to delete MeshTile in GridMap on MacBook using Touchpad

Godot version:
3.0 Stable Official
OS/device including version:
macOS High Sierra 10.13.3
MacBook Pro using trackpad
Issue description:
Unable to delete/remove a mesh tile using:  Shift + Right Click (2 fingered push on trackpad).
Steps to reproduce:
When trying to remove a tile in the GridMap, holding down Shift and placing 2 fingers on trackpad and barely moving makes the "floor" go positive and negative.
Minimal reproduction project:
Demo: 3D Platformer

Hi, can I deal with this bug? @groud

@DanielDo98 sure go ahead. :)

@DanielDo98 Have you looked into this yet? I believe the code below is causing the issue:
file:             modules/gridmap/grid_map_editor_plugin.cpp
function:    bool GridMapEditor::forward_spatial_input_event(...)
...
Ref pan_gesture = p_event;
if (pan_gesture.is_valid()) {
	if (pan_gesture->get_command() || pan_gesture->get_shift()) {
		const real_t delta = pan_gesture->get_delta().y;
		floor->set_value(floor->get_value() + SGN(delta));
		return true;
	}
}

I'm sorry, but I've been really busy lately. Someone else can tackle this bug. Again, sorry if I caused any inconvenience.

Fixed by #17111.


token生成机制

请问，jwt.sign({
username: user.id,
admin: admin,
}, tokenConfig.secret, {expiresIn: expiration}, (signError, token) =>这个底层是什么样的生成机制呢？ 如果用换成java写的话，怎么写呢？

Hi @damon008
https://jwt.io/ may helps you.
You could paste your JWT token into the page to check the JWT headers and payload.

我想请问下，PAI的安全校验是通过token校验了，还是通过用户名与密码来校验呢？

Hi @damon008
The code you posted is a part of token-generation process.

Username/password validation is only run in token-generation process.
Token validation is run in other auth-required processes.

In other words, if you want to access auth-required resources,

Provide your username/password to POST /token route, to get a valid token.
Provide the valid token to other auth-required resources.

Hi @damon008
You're right that we use HS256 algo to sign the token, and it could be varified in http://jwt.io/ (algo is set in jwt header)

no further input. closed.


Project System: Should be able to rename/manipulate nodes outside of the project

From @davkean on April 20, 2016 17:14
In csproj/msvbproj, you can manipulate/rename nodes that are not included as part of the project - CPS doesn't allow this. This will be a regression from previous releases.
Copied from original issue: dotnet/roslyn#10724

CPS have already implemented this - need to verify in latest builds

This is fixed in recent VS 15 builds. There's a couple of bugs, which I've filed against the CPS team.


Add sample for OpenTelemetry

Summary
Add an example showcasing the Paketo Buildpack for OpenTelemetry and its configuration.
Use Cases
Adding tracing and monitoring to a Java application using the OpenTelemetry standard.
Checklist

[X] I have viewed, signed, and submitted the Contributor License Agreement.
[ ] I have linked issue(s) that this PR should close using keywords or the Github UI (See docs)
[X] I have added an integration test, if necessary.
[X] I have reviewed the styleguide for guidance on my code quality.
[X] I'm happy with the commit history on this PR (I have rebased/squashed as needed).

@paketo-buildpacks/java-buildpacks the workflow introduction looks good to me. I think the rest is up to you all.

@ThomasVitale Looks good, thanks for the PR. I think the changes above should get the tests passing.

@ThomasVitale Looks good, thanks for the PR. I think the changes above should get the tests passing.

Thanks, @dmikusa! Can you approve the execution of the GitHub workflow for the PR to check that? I ran it locally using the script directly (and the new test passed), but I couldn't verify the GH workflow so I'm not sure if there's anything missing.

@ForestEckhardt Would you be able to merge this in? We should be all set. Thanks!


can't create hypothesis account

I'm trying to go through the signup process and the "sign up" button for getting the Hypothesis account is not clickable. Nothing happens when I click on it.

Hey @leesajay. Not sure if this is still relevant to you, but if you're having trouble using the sidebar, head over to https://hypothes.is/login instead.


Build failure with newer compilers

The package cannot be compiled on newer systems. I tried clang 14.0.6 and gcc 12.2.0 and with both two issues occur.
First, Catch2 is outdated, as it still depends on glibc < 2.34 (see https://github.com/catchorg/Catch2/issues/2421 for the issue). An update to a newer version, i.e. replacing the external header with the newest Catch2 version resolves this.
For the second problem I do not know how to fix it or even how it currently works. Cxxopts just fails to read Eigen matrices, because the function seems to be missing. I tried the latest release an master, both give me this error.
[ 77%] Building CXX object Tools/PartioViewer/CMakeFiles/PartioViewer.dir/GUI/imgui/PartioViewer_GUI_imgui.cpp.o
In file included from ***/Repos/SPlisHSPlasH/Tools/PartioViewer/GUI/imgui/../PartioViewer_GUI_Base.h:7,
                 from ***/Repos/SPlisHSPlasH/Tools/PartioViewer/GUI/imgui/PartioViewer_GUI_imgui.h:5,
                 from ***/Repos/SPlisHSPlasH/Tools/PartioViewer/GUI/imgui/PartioViewer_GUI_imgui.cpp:1:
***/Repos/SPlisHSPlasH/extern/cxxopts/cxxopts.hpp: In instantiation of ‘void cxxopts::values::stringstream_parser(const std::string&, T&) [with T = Eigen::Matrix<float, 3, 1, 2>; std::string = std::__cxx11::basic_string<char>]’:
***/Repos/SPlisHSPlasH/extern/cxxopts/cxxopts.hpp:739:26:   required from ‘void cxxopts::values::parse_value(const std::string&, T&) [with T = Eigen::Matrix<float, 3, 1, 2>; std::string = std::__cxx11::basic_string<char>]’
***/Repos/SPlisHSPlasH/extern/cxxopts/cxxopts.hpp:829:20:   required from ‘void cxxopts::values::abstract_value<T>::parse(const std::string&) const [with T = Eigen::Matrix<float, 3, 1, 2>; std::string = std::__cxx11::basic_string<char>]’
***/Repos/SPlisHSPlasH/extern/cxxopts/cxxopts.hpp:827:7:   required from here
***/Repos/SPlisHSPlasH/extern/cxxopts/cxxopts.hpp:641:10: error: no match for ‘operator>>’ (operand types are ‘std::stringstream’ {aka ‘std::__cxx11::basic_stringstream<char>’} and ‘Eigen::Matrix<float, 3, 1, 2>’)
  641 |       in >> value;
      |       ~~~^~~~~~~~

I just updated cxxopts. Maybe you can check if this solves the second problem and give me some feedback. Did not have much time today to test it. Also have to look for Catch2 since it seems that it consists now of multiple headers.

Thanks for the quick response. Catch2 still has a "single header version" for legacy support (see this branch https://github.com/catchorg/Catch2/tree/v2.x).
Regarding the proposed fix, unfortunately just updating cxxopts does not fix this issue.
[ 76%] Building CXX object Tools/PartioViewer/CMakeFiles/PartioViewer.dir/GUI/imgui/PartioViewer_GUI_imgui.cpp.o
In file included from ***/Repos/SPlisHSPlasH/Tools/PartioViewer/GUI/imgui/../PartioViewer_GUI_Base.h:7,
                 from ***/Repos/SPlisHSPlasH/Tools/PartioViewer/GUI/imgui/PartioViewer_GUI_imgui.h:5,
                 from ***/Repos/SPlisHSPlasH/Tools/PartioViewer/GUI/imgui/PartioViewer_GUI_imgui.cpp:1:
***/Repos/SPlisHSPlasH/extern/cxxopts/cxxopts.hpp: In instantiation of ‘void cxxopts::values::stringstream_parser(const std::string&, T&) [with T = Eigen::Matrix<float, 3, 1, 2>; std::string = std::__cxx11::basic_string<char>]’:
***/Repos/SPlisHSPlasH/extern/cxxopts/cxxopts.hpp:1018:22:   required from ‘void cxxopts::values::parse_value(const std::string&, T&) [with T = Eigen::Matrix<float, 3, 1, 2>; typename std::enable_if<(! std::is_integral<_Tp>::value)>::type* <anonymous> = 0; std::string = std::__cxx11::basic_string<char>]’
***/Repos/SPlisHSPlasH/extern/cxxopts/cxxopts.hpp:1116:16:   required from ‘void cxxopts::values::abstract_value<T>::parse(const std::string&) const [with T = Eigen::Matrix<float, 3, 1, 2>; std::string = std::__cxx11::basic_string<char>]’
***/Repos/SPlisHSPlasH/extern/cxxopts/cxxopts.hpp:1114:3:   required from here
***/Repos/SPlisHSPlasH/extern/cxxopts/cxxopts.hpp:970:6: error: no match for ‘operator>>’ (operand types are ‘std::stringstream’ {aka ‘std::__cxx11::basic_stringstream<char>’} and ‘Eigen::Matrix<float, 3, 1, 2>’)
  970 |   in >> value;
      |   ~~~^~~~~~~~
[...]

I just pushed a new version that compiles with a new gcc version. Can you test this one?

This works for me. Thanks fot the quick help!


Use Browser-Recording-Helper.js for each participant

Is there a way to use the file for each participant.
I have tried so, but records the last participant of the list. Can you help me?

for (var index in listOfPartecipant) {
var user = listOfPartecipant[index];
console.log(user);
RecorderHelper.StartRecording({
MediaStream: user,
Socket: connection.getSocket(),
FileName: user.extra.tipo + '-' + user.extra.username,
roomId: connection.sessionid,
userId: user.extra.tipo + '-' + user.extra.username,
index: 1,
id_req: userLocal.extra.username,
UploadInterval: 10 * 1000
});
listOfRecorders[index] = recorder;
console.log(listOfRecorders);

MediaStream: user, is wrong...it should be like this MediaStream: stream..
you have to pass stream in the MediaStream.


Ignore the first test as it always fails

This is hack to workaround the issue of first test always failing.

not needed


Preventing prompts without tty from echoing their outputs

fixes #906

Thanks for working on this. However, after looking at the issue again, I'm not clear why we want to hide the error. This fix just hides the error but enables the same insecure echoing. I'm going to close this as I don't think it needs to be fixed. See my comment in the linked issue.


Literate config conditional tangling doesn't work

[X] I have searched the FAQ and the documentation for solutions.
[X] I have searched the issue tracker for similar issues (the closed issues too).
[X] I have searched the Discourse for any errors and solutions.
[X] I can reproduce my issue on the latest commit of Doom Emacs.
[X] I have read How to Debug Issues and found no solution.

What did you expect to happen?
In my literate Doom config.org my tangle conditions result in the tangle being completely ignored. In the snippet below the org-journal-dir should be either one or the other based on the OS type.

Org journal per system 1
#+begin_src elisp :tangle (if (eq (doom-system-distro) 'arch) "yes" "no")
(setq org-journal-dir "~/Dropbox/org/journal")
#+end_src

Org journal per system 2
#+begin_src elisp :tangle (if (eq (doom-system-distro) 'arch) "no" "yes")
(setq org-journal-dir "~/Dropbox/org/work/journal")
#+end_src

What actually happened?
Both tangle attempts are completely ignored and not added into the config.el.
Describe your attempts to resolve the issue
Tried tangling with other functions.
Tried using a "when" instead of "if".
Asked the Doom Emacs Discord twice.
Steps to reproduce

Have a literate Doom Emacs config.org.
Input the code snippet provided to tangle.
Run Doom Sync.
Restart Doom Emacs.
Config.el should have been updated correctly based on the tangling.

System Information
https://pastebin.com/R0iWRbmi

The pastebin is useless information. I couldn't extract what I think you would need. I tried running M-x doom/info and it failed due to emacs-repository-branch is void.

Try this
#+begin_src elisp :tangle (if (eq (doom-system-distro) 'arch) "config.el" "no")
(setq org-journal-dir "~/Dropbox/org/journal")
#+end_src

#+begin_src elisp :tangle (if (eq (doom-system-distro) 'arch) "no" "config.el")
(setq org-journal-dir "~/Dropbox/org/work/journal")
#+end_src

As our issue tracker isn't for how-to questions I will close this and later delete this thread, but feel to follow up here (or better, on the Discord).

Thanks for the quick response, and sorry I thought this was a Doom issue with how the config.el was made.
Sadly, this did not work. Neither block gets tangled into the "config.el". I feel quite stuck on this topic

Odd. I'm using
#+BEGIN_SRC elisp :tangle (if (eq (doom-system-distro) 'nixos) "config.el" "no")
...
#+END_SRC

And this is tangling to config.el as expected.

I got it to work. It was a battle with Babel itself and what I think was different stages of overwriting the tangles.
#+PROPERTY: header-args+ :tangle config.el
That at the top of my config.org file did it + your changes. Thank you!

I've simplified the tangle process in 8424e0a, which should indirectly fix your earlier use case.


Multinomial probabilityOf() indexing is contrintuitive

I'm not sure it's an issue. I suppose negative indices for counting from end, still it could be more straightforward to return the vector of normalized probabilities in this case.
import breeze.linalg.DenseVector
import breeze.stats.distributions.Multinomial
import scala.util.Try

val mrnd = Multinomial(DenseVector(0.4, 0.6))

(-3).to(2).foreach(i=>println(s"$i:"+Try(mrnd.probabilityOf(i))))

and output is
-3:Failure(java.lang.IndexOutOfBoundsException: -3 not in [-2,2))
-2:Success(0.4)
-1:Success(0.6)
0:Success(0.4)
1:Success(0.6)
2:Failure(java.lang.IndexOutOfBoundsException: 2 not in [-2,2))

i guess you want it to throw if it's outside [0, 2) instead?

I suppose that would be not a bad idea, as Multinomial depends on DenseVector apply method. If anyone replaces it with something else (eg SparseVector) the negative indices will throw.
Though I propose to replace the function probabilityOf with just probabilities
def probabilities = params/sum

I agree that the behavior is counter-intuitive.
@kokorins why would you replace the function probabilityOf with
def probabilities = params/sum


KafkaServiceImpl  log

[2019-12-06 14:10:00] KafkaServiceImpl.org.springframework.scheduling.quartz.SchedulerFactoryBean#3_Worker-8 - ERROR - Consumer Path[/consumers/bridgestreaming20190918/owners] is not exist.
[2019-12-06 14:10:00] KafkaServiceImpl.org.springframework.scheduling.quartz.SchedulerFactoryBean#2_Worker-10 - ERROR - Consumer Path[/consumers/waterStreaming_1s/owners] is not exist.
[2019-12-06 14:10:00] KafkaServiceImpl.org.springframework.scheduling.quartz.SchedulerFactoryBean#3_Worker-8 - ERROR - Consumer Path[/consumers/heatstreaming201919/owners] is not exist.
[2019-12-06 14:10:00] KafkaServiceImpl.org.springframework.scheduling.quartz.SchedulerFactoryBean#2_Worker-10 - ERROR - Consumer Path[/consumers/gas_1s/owners] is not exist.
[2019-12-06 14:10:00] KafkaServiceImpl.org.springframework.scheduling.quartz.SchedulerFactoryBean#3_Worker-8 - ERROR - Consumer Path[/consumers/waterStreaming_1s/owners] is not exist.
[2019-12-06 14:10:00] KafkaServiceImpl.org.springframework.scheduling.quartz.SchedulerFactoryBean#3_Worker-8 - ERROR - Consumer Path[/consumers/gas_1s/owners] is not exist.

Read Installation Document


az image create fails in (NotFound) error if --location is not specified

Hello,
Creating an image with the following command
az image create --resource-group $my-resource-group --name $name --source $source
results in the following error:
(NotFound) Source Virtual Machine 'swarm01' specified in the request does not exist in this Azure location.

If the location is specified, the command completes successfully:
az image create --resource-group Udemy-Course --name docker-swarm-centos-83 --source swarm01 --location eastus2
--- snip:

Can you please have a look at this and see if you can verify this from your end, too?
Thanks!
Tolga

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

ID: 5cfcc831-2add-15de-8278-024d30b6dbef
Version Independent ID: 94a05591-7cfb-4959-8d91-0ddbaea302ea
Content: Capture a managed image of a Linux VM using Azure CLI - Azure Virtual Machines
Content Source: articles/virtual-machines/linux/capture-image.md
Service: virtual-machines
Sub-service: imaging
GitHub Login: @cynthn
Microsoft Alias: cynthn

@tolga-balci Thank you for bringing this to our attention.  We are investigating this and will get back to you shortly.

@tolga-balci Thank you again for reaching out to us!  It looks like a prerequisite for this documentation is "An Azure VM created in the Resource Manager deployment model that uses managed disks."  Going through the steps in the Azure CLI link, the location is set when you create a resource group for your VM.  With that set, the commands will run successfully:

@tolga-balci Thank you again for reaching out!  We are going to close this thread as resolved but if there are any further questions regarding the documentation, please tag me in your reply and we will be happy to continue the conversation.


Installing peer dependency types if the peer dependency is not installed

package.json has always resolved peer dependencies for NPM dependencies to get the type information. If that doesn't sound right, please make an issue on the Typings repo so we can figure out how to improve this flow. However, if you reference it in your code you need to make sure types exist for it.

I have an NPM package (Cycle-UI) using another package as a dependency (react-toolbox) which has a peer dependency (React).
I don't declare any typings for react-toolbox (although I believe they exist) and only use it via JavaScript style requires, eg:
const style = require('react-toolbox/lib/input/style');

The TypeScript compiler successfully compiles this and the code works as excepted.
However, "Typings install" checks for the existence of React and errors when it can't find it.
typings ERR! caused by Unable to find "node_modules/react/package.json"
I guess the issue is, does Typings really need to try find types for something that is not installed or being used. The TypeScript compiler in my experience so far is very picky, but it seems happy if the types don't exist.
Feel free to ignore/close this issue as I'm sure there are a lot more pressing issues to deal with and it is a strange case with a workaround, but it might serve as documentation for someone else :)

Can you try<EMAIL_ADDRESS>- it no longer tries to automatically resolve peer dependencies, but I suspect the full breadth of the problem is not yet solved.

Sorry for the delay. I tried cloning my project into a new directory and did not notice the typings error I was seeing before. Nice work, thanks.


Failed to load .yaml

According to manual, I've set up webpack as
  rules: [
    {
      test: /\.(json5?|ya?ml)$/, // target json, json5, yaml and yml files
      type: "javascript/auto",
      loader: "@intlify/vue-i18n-loader",
      include: [
        // Use `Rule.include` to specify the files of locale messages to be pre-compiled
        path.resolve(__dirname, "./src/locale")
      ]
    }
  ]

and json files are loaded just fine, but attempt to load yaml yields
TS2307: Cannot find module './locale/en.yaml' or its corresponding type declarations.
Of course I can stick with json or even js for locales, buy yaml is just much simpler to write...

@tarkhil
Thank you for your feedback!
Unfortunately, I could not reproduce your reporting info.
We need more of your environment (e.g Vue.js version, Vue I18n version, and more..) info to reproduce it.
Could you give us the reproduction code or repo, please?


增加 msg_sec_check 和 img_sec_check 接口；更新了卡券相关的事件类型

整理下面两个PR格式化之后的内容。
#455
#474

Codecov Report

Merging #502 into master will decrease coverage by 0.08%.
The diff coverage is 70.75%.

@@            Coverage Diff             @@
##           master     #502      +/-   ##
==========================================
- Coverage    72.4%   72.31%   -0.09%
==========================================
  Files          77       77
  Lines        2877     2966      +89
==========================================
+ Hits         2083     2145      +62
- Misses        794      821      +27

Impacted Files
Coverage Δ

wechatpy/pay/api/jsapi.py
52.63% <ø> (ø)
:arrow_up:

wechatpy/pay/api/refund.py
55.55% <ø> (ø)
:arrow_up:

wechatpy/pay/utils.py
91.17% <ø> (ø)
:arrow_up:

wechatpy/enterprise/client/api/user.py
33.96% <0%> (-1.34%)
:arrow_down:

wechatpy/_compat.py
0% <0%> (ø)
:arrow_up:

wechatpy/crypto/pycrypto.py
100% <100%> (ø)
:arrow_up:

wechatpy/enterprise/client/api/__init__.py
100% <100%> (ø)
:arrow_up:

wechatpy/crypto/cryptography.py
100% <100%> (ø)
:arrow_up:

wechatpy/enterprise/events.py
94.2% <100%> (+1.09%)
:arrow_up:

wechatpy/pay/__init__.py
65.27% <18.75%> (-5.82%)
:arrow_down:

... and 4 more

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 c5e57ee...8c5c2e2. Read the comment docs.


Correct minor issue in the guide "Understanding masking & padding"

Correct the axis for computing the denominator of softmax in the example which creates a TemporalSoftmax class.

@fchollet As per my understanding, a softmax over the time dimension (axis 1) of an input sequence implies that the softmax should be applied along the sequence length dimension over each embedding dimension.
To illustrate with a better example:
You'd typically use such a TemporalSoftmax function to compute attention weights over the given input sequence. Here, you'd want the weights across the sequence to sum to 1 (and not the embeddings for each time-step to sum to 1, as is achieved in the notebook using axis=-1)
Rewriting the code snippet given in the example to compute attention weights (I've only changed the variable names, everything else remains the same):
inputs = tf.keras.Input(shape=(None,), dtype="int32")
embeddings = tf.keras.layers.Embedding(input_dim=10, output_dim=32, mask_zero=True)(inputs)
weights = tf.keras.layers.Dense(1)(embeddings)
attention_weights = TemporalSoftmax()(weights)

model = tf.keras.Model(inputs, attention_weights)
y = model(np.random.randint(0, 10, size=(32, 100)))

With my suggested correction to axis, you get the attention weights correctly; and you can further use them to weigh the embeddings for each time-step.


⚠ Bofrost.at has degraded performance

In 42daca5, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1611 ms

Resolved: Bofrost.at performance has improved in 4cc3e86 after 6 minutes.


Add Notice

What changes were proposed in this pull request?
Add a notice file.
References:
https://github.com/apache/inlong/blob/master/NOTICE
https://github.com/apache/spark/blob/master/NOTICE
Why are the changes needed?
For apache release.
https://github.com/apache/incubator-uniffle/issues/207
Does this PR introduce any user-facing change?
No.
How was this patch tested?
No need.

Codecov Report

Merging #215 (71debc5) into master (3d4de8c) will decrease coverage by 1.22%.
The diff coverage is n/a.

:exclamation: Current head 71debc5 differs from pull request most recent head f43364a. Consider uploading reports for the commit f43364a to get more accurate results

@@             Coverage Diff              @@
##             master     #215      +/-   ##
============================================
- Coverage     59.13%   57.91%   -1.23%
+ Complexity     1327     1249      -78
============================================
  Files           160      151       -9
  Lines          8727     8229     -498
  Branches        817      786      -31
============================================
- Hits           5161     4766     -395
+ Misses         3301     3209      -92
+ Partials        265      254      -11

Impacted Files
Coverage Δ

...k/shuffle/writer/WrappedByteArrayOutputStream.java

.../java/org/apache/spark/shuffle/RssSparkConfig.java

...e/spark/shuffle/reader/RssShuffleDataIterator.java

...pache/spark/shuffle/writer/WriteBufferManager.java

...che/spark/shuffle/writer/BufferManagerOptions.java

...org/apache/spark/shuffle/writer/AddBlockEvent.java

...org/apache/spark/shuffle/RssSparkShuffleUtils.java

.../org/apache/spark/shuffle/writer/WriterBuffer.java

...ava/org/apache/spark/shuffle/RssShuffleHandle.java

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

Can you please check the contents of NOTICE from more projects, and the requirements from ASF?

Can you please check the contents of NOTICE from more projects, and the requirements from ASF?

For source release, it seems that we do not need extra contents.
For any bundled dependency, consider whether LICENSE and/or NOTICE need to be modified. Do not modify LICENSE or NOTICE for non-bundled dependencies.
https://infra.apache.org/licensing-howto.html

So maybe we don't need to list spark and hadoop license?

So maybe we don't need to list spark and hadoop license?

Yes, I have removed them in NOTICE.


[WIP] Select UL first version

@andybar2 I'm having trouble getting the directives within the <li>s to compile (the function on line 124 of the directive). If you have a chance tomorrow or Friday could you take a look?
You can use the molecule with something like this:
 <ln-m-select-ul ng-model="realtor"
                  ln-options="realtors"
                  ln-value-field="id"
                  ln-label-field="name"
                  ln-placeholder="Choose Realtor"
                  ln-none="NONE"
                  ln-mobile-none="Choose Realtor"
    >
    </ln-m-select-ul>

Some sample data for scope.realtors:
 $scope.realtors = [
    {
      grid_logo:
        "https://s3-us-west-1.amazonaws.com/rooomyusshadow/22dea5d0-3f06-48aa-ae9c-27b806e59cc0/Grid_AbundanceRealty.png?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJGDA545FTQU6BF5A%2F20160629%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20160629T234708Z&X-Amz-SignedHeaders=host&X-Amz-Expires=600&X-Amz-Signature=f7d423407204989b01c7cd01192c06d2875b452fbd37a53027ed50823d0cd62a",
      id: "0750fc4b-72e5-44cd-a898-7e37eb27d330",
      name: "Abundance Realty, Inc."
    },
    {
      grid_logo: "https://s3-us-west-1.amazonaws.com/rooomyusshadow/4d1c0bc6-cd90-403a-bd78-485b363c1fca/Grid_CompanyLogo_BerkshireHathaway.png?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJGDA545FTQU6BF5A%2F20160629%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20160629T234708Z&X-Amz-SignedHeaders=host&X-Amz-Expires=600&X-Amz-Signature=6b3695846b354bd9226b8da6adb92a4c1c2b9508ef22dc40f43e6d36a525bfec",
      id: "cf3e3e80-67d7-4c97-b984-29f01c412fdf",
      name: "BHHS"
    },
    {
      grid_logo: "https://s3-us-west-1.amazonaws.com/rooomyusshadow/c3123f77-7e48-4582-a9c6-1daf11bdbf5a/Grid_BetterHomes.png?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAJGDA545FTQU6BF5A%2F20160629%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20160629T234708Z&X-Amz-SignedHeaders=host&X-Amz-Expires=600&X-Amz-Signature=bf9c952daf3fd6cbe891f6228fa7c75afcbff18e5485011a5250f42b0f03c97a",
      id: "6308816a-a57a-423c-9b77-e323862023d1",
      name: "Better Homes and Gardens"
    }
  ];

@adamf321 I've fixed the compilation of the sub-directives. See the following PR: https://github.com/moxie-lean/ng-patternlab/pull/95 which you can merge into your branch if you need it.


Ignore UTF-8 decoding errors when reading output from ArtifactTool. S…

…ome errors due to missing dependencies for .NET CLR contain non-UTF-8 characters, which makes the CLI hide these errors behind a decoding one.

@zarenner : Please port these changes to https://github.com/Microsoft/vsts-cli/tree/azuredevopscli-dev branch.
we will not be doing any new release of vsts cli
cc: @snankani


Kafka installation problems in ARM64

Hi!
I'm having some problems to install Kafka in ARM64, I recommend to use the Kafka server in a docker image in x86/x64 machine.
It will simplify the use case for Jetson devices.
Hope you find this useful.
Best regards,
Franco.

Just in case someone else need the kafka server in a x86/x64 machine and don't want to install by hand, I use this docker compose file
version: "2"

services:
  kafkaserver:
    image: "spotify/kafka:latest"
    container_name: kafka
    hostname: kafkaserver
    networks:
      - kafkanet
    ports:
      - 2181:2181
      - 9092:9092
    environment:
      ADVERTISED_HOST: <IP_ADDRESS>
      ADVERTISED_PORT: 9092
  kafka_manager:
    image: "mzagar/kafka-manager-docker:<IP_ADDRESS>"
    container_name: kafkamanager
    networks:
      - kafkanet
    ports:
      - 9000:9000
    links:
      - kafkaserver
    environment:
      ZK_HOSTS: "<IP_ADDRESS>:2181"

networks:
  kafkanet:
    driver: bridge

where <IP_ADDRESS> is the private IP in one of the NICs in my computer connected to the same network of my Jetson Xavier to stablish the communication. From here, supose you named this file  docker-compose.yml you need to build it and this can be done executing in your shell (terminal/powershell/etc...) docker-compose up -d (here the troubleshooting should be docker compose, or something related to that)
After your server is up and running you can follow the guide provided in this repo from the point of creating the topic with the command:
bin/kafka-topics.sh --create --topic quickstart-events --bootstrap-server <IP_ADDRESS>:9092
where I change the ip for my case to match with the one where I exposed the service.
Keep in mind this to solve the scenarios where you want to test the solution in a Jetson Device and you don't have a Kafka server already installed.
I hope you find this helpful.
All the best,
Franco

Thank you fiv21!


[Question] How to debug malib (infinity loop when running ray in local mode)

Hi, I'm trying to run the PSRO with the quick start example on https://malib.io (PSRO PPO with leduc_holdem.env). I get the following errors:
2022-03-27 23:04:33,013    ERROR worker.py:79 -- Unhandled error (suppress with RAY_IGNORE_UNHANDLED_ERRORS=1): ray::RolloutWorker.simulation() (pid=185570, ip=<IP_ADDRESS>, repr=<malib.rollout.rollout_worker.RolloutWorker object at 0x7f1c52c37490>)
  File "/home/panxuehai/Projects/malib/malib/rollout/base_worker.py", line 441, in simulation
    raw_statistics, num_frames = self.sample(
  File "/home/panxuehai/Projects/malib/malib/rollout/rollout_worker.py", line 161, in sample
    for ret in rets:
  File "/home/panxuehai/Miniconda3/envs/malib/lib/python3.8/site-packages/ray/util/actor_pool.py", line 65, in map
    yield self.get_next()
  File "/home/panxuehai/Miniconda3/envs/malib/lib/python3.8/site-packages/ray/util/actor_pool.py", line 178, in get_next
    return ray.get(future)
ray.exceptions.RayTaskError(TypeError): ray::Stepping.run() (pid=185523, ip=<IP_ADDRESS>, repr=<malib.rollout.rollout_func.Stepping object at 0x7f8814a20dc0>)
  File "/home/panxuehai/Projects/malib/malib/rollout/rollout_func.py", line 431, in run
    rollout_results = env_runner(
  File "/home/panxuehai/Projects/malib/malib/rollout/rollout_func.py", line 243, in env_runner
    rets = env.reset(
  File "/home/panxuehai/Projects/malib/malib/envs/vector_env.py", line 192, in reset
    _ret = env.reset(max_step=max_step, custom_reset_config=custom_reset_config)
TypeError: reset() got an unexpected keyword argument 'max_step'

Then I'd debug this myself with ray.init(local_mode=True) in my debugger. All Ray actors will run sequentially when the "local mode" is on.
https://docs.ray.io/en/latest/ray-core/starting-ray.html#local-mode:

Local Mode

By default, Ray will parallelize its workload and run tasks on multiple processes and multiple nodes. However, if you need to debug your Ray program, it may be easier to do everything on a single process. You can force all Ray functions to occur on a single process by enabling local mode

The program stuck into an infinity loop here:
https://github.com/sjtu-marl/malib/blob/5be07ac00761a34fb095adb2b3018a798ceea256/malib/agent/agent_interface.py#L277-L279
I wonder what's the best practice for debugging with malib? Thanks very much!

@XuehaiPan hi, thanks for your feedback, since the controller in malib coordinates with other workers in asynchronous mode, we cannot turn on local_mode to debug. A feasible way for debugging is writing test cases for each submodule, as listed here: https://github.com/sjtu-marl/malib/tree/main/tests

A feasible way for debugging is writing test cases for each submodule, as listed here: https://github.com/sjtu-marl/malib/tree/main/tests

Thanks for the reply!


t: GraphQL error: userId is not set via query string.

View details in Rollbar: https://rollbar.com/mrorz/rumors-site/items/62/

t: userId is not set via query string.
  File "https://cofacts.g0v.tw/_next/static/chunks/commons.3d6e3726d3a6a9caf962.js", line 1, in t
  File "https://cofacts.g0v.tw/_next/static/chunks/commons.3d6e3726d3a6a9caf962.js", line 1, in next
  File "https://cofacts.g0v.tw/_next/static/chunks/commons.3d6e3726d3a6a9caf962.js", line 1, in b
  File "https://cofacts.g0v.tw/_next/static/chunks/commons.3d6e3726d3a6a9caf962.js", line 1, in g
  File "https://cofacts.g0v.tw/_next/static/chunks/commons.3d6e3726d3a6a9caf962.js", line 1, in value
  File "[native code]", line unknown, in forEach
  File "https://cofacts.g0v.tw/_next/static/chunks/commons.3d6e3726d3a6a9caf962.js", line 1, in next
  File "https://cofacts.g0v.tw/_next/static/chunks/commons.3d6e3726d3a6a9caf962.js", line 1, in b
  File "https://cofacts.g0v.tw/_next/static/chunks/commons.3d6e3726d3a6a9caf962.js", line 1, in g
  File "https://cofacts.g0v.tw/_next/static/chunks/commons.3d6e3726d3a6a9caf962.js", line 1, in value
  File "[native code]", line unknown, in value
  File "[native code]", line unknown, in forEach
  File "https://cofacts.g0v.tw/_next/static/chunks/commons.3d6e3726d3a6a9caf962.js", line 1, in [anonymous]
  File "[native code]", line unknown, in forEach
  File "https://cofacts.g0v.tw/_next/static/chunks/commons.3d6e3726d3a6a9caf962.js", line 1, in next
  File "https://cofacts.g0v.tw/_next/static/chunks/commons.3d6e3726d3a6a9caf962.js", line 1, in b
  File "https://cofacts.g0v.tw/_next/static/chunks/commons.3d6e3726d3a6a9caf962.js", line 1, in g
  File "https://cofacts.g0v.tw/_next/static/chunks/commons.3d6e3726d3a6a9caf962.js", line 1, in value
  File "https://cofacts.g0v.tw/_next/static/chunks/commons.3d6e3726d3a6a9caf962.js", line 1, in [anonymous]
  File "[native code]", line unknown, in promiseReactionJob

It turns out that it is because users are trying to vote replies or reply requests.
Voting replies

Voting reply requests

According to 0206 discussion let's catch this error and use alert() that tells user to login for now.


Fixed grammatical errors in manual.

I read the manual and found some grammatical errors ("all variables has order 1." Here since the word variables is in plural it has to be have) and the phrasing then at the last seriously confused me (and may confuse others) but the sentence makes sense without it.  But maybe I am just confused, so what did you try to say with then at the last? (I think the manual is understandable without it, but maybe we there is  a less confusing phrasing holding the same information.)

Thanks! Could you regenerate the PDF as well, so that the typ file is synced with the PDF.

Done :)

Thanks!


should prioritize exact matches in MostSpecificHostMatch (fixes #19459)

This fixes the hostname matching for DestinationRule, and now prioritizes exact matches (fixes #19459).

Hi @yp28. Thanks for your PR.
I'm waiting for a istio member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test label.
I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

/ok-to-test

LGTM,  will let @rshriram or @hzxuzhonghu take a look as well to ensure there isn't anything this will break

@yp28 Hi,
Are you sure it's solves #19459?
The issue was that wildcard service entry is affected by a specific destination rule.
When applying the following the service entry should no be matched.
apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
  name: wildcard-se
spec:
  hosts:
  - "*.foo.com"
  location: MESH_EXTERNAL
  ports:
  - number: 8080
    name: http
    protocol: HTTP
  resolution: NONE
---
apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
  name: specific-dr
  namespace: test
spec:
  host: "bar.foo.com"
  trafficPolicy:
    tls:
      mode: ISTIO_MUTUAL

I think that with the fix it still matches, am I wrong?

@FrimIdan, it should. It used to match the first entry it came across that matched. The MostSpecificHostMatch function just iterated over a sorted list of hosts and returned as soon as it found a matching one, completely ignoring the fact that you might have a more specific match further down in the stack.
As it is now, it's still not ideal. When no exact match is found, it returns the first match it finds, where you'd be better off checking how many of the host "parts" (com, example, *) actually match.

@yp28 I understand the fix, I think that the problem is in the func (n Name) Matches(o Name) bool function.
The issue is that if only the needle is wildcard it will run
// only n is wildcard
return strings.HasSuffix(string(o), string(n[1:]))

If the destination rule is not wildcard the matching should be exact match and not suffix.
Here is an example for a unit test case that currently will failed.
{[]host.Name{"bar.foo.com"}, "*.foo.com", ""},

@FrimIdan ah I understand. So that would be just the following situation:
apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
  name: external-svc-http
spec:
  hosts:
  - "*.test.com"
  location: MESH_EXTERNAL
  ports:
  - number: 8080
    name: http
    protocol: HTTP
  resolution: NONE

apiVersion: networking.istio.io/v1alpha3
kind: DestinationRule
metadata:
  name: test-test-istio-mtls
  namespace: test
spec:
  host: "test.test.com"
  trafficPolicy:
    tls:
      mode: ISTIO_MUTUAL

without the ServiceEntry/specific-external-svc-http you mentioned in the issue. The DestinationRule still applies to the ServiceEntry/external-svc-http even though it shouldn't.

@yp28 exactly, what I've tried to show in the issue is that the destination rule applies to both service entries instead of only to the ServiceEntry/specific-external-svc-http

I'll dive in to it some more to figure out how to tackle this, without causing any issues in other parts.


Metadata glob bug due to missing regex special character escaping

Related to #94 which was incomplete.
Greetings and thank you for a fine library. Having trouble using this with fastparquet under dask due to file name issues that manifest when the path name contains special regex characters. This issue looks like it should also have included ^ in the list of magic characters. Per https://docs.python.org/3.8/library/re.html the list of single characters to watch out for is: .^$*+?{}[]|()\
It seems that if these are all properly escaped when present in a path name then degenerate cases such as these would be avoided as well: {2} would be {2}, (?family) would be (?family), \A would be \A, \d000 would be \d000, etc.
These are legitimate in Unix file systems, at least, even if people think that "shell" special characters are illlegal--they are not. Perhaps if special case lists of characters are needed, then a specialized local fsspec implementation can provide its own list vs. a universal list which isn't actually universal.
In spec.py, I'd change it as follows (I tested this for my cases and it works)

    def glob(self, path, **kwargs):
    <snip>
        pattern = (
            "^"
            + (
                # List of special characters adapted from Python's re documentation
                # .^$*+?{}[]|()\
                path.replace("\\", r"\\")
                .replace(".", r"\.")
                .replace("+", r"\+")
                .replace("//", "/")
                .replace("(", r"\(")
                .replace(")", r"\)")
                .replace("|", r"\|")
                .replace("^", r"\^")
                .replace("$", r"\$")
                # .replace("*", r"\*") # this should be dealt with as well
                .replace("{", r"\{")
                .replace("}", r"\}")
                .replace("[", r"\[")
                .replace("]", r"\]")
                .rstrip("/")
                .replace("?", ".")
            )
            + "$"
        )
    <snip>

I did not have time to review the logic of handling the embedded * case as it looks like this may need some thought:
        paths = fs.glob(paths[0] + fs.sep + "*") # how will this work with embedded *s?

I can submit a PR if you agree with the above logic.
P.S. Looking at the implementation of the code, perhaps using https://docs.python.org/3/library/pathlib.html might avoid both the complexities of local file system differences among platforms already handled and avoid the bugs likely to have been encountered and fixed.

This is an interesting and important topic, but I don't think there is a rigorous solution. Note that globbing is used everywhere for filepath matching, not regexs, and we have essentially copied the implementation from pythons glob.glob (or fnmatch). Yes, some regex-containing filenames fail, and this is true for pathlib too. Unless these do work with python's glob.glob, I am tempted to say that fsspec is doing the right thing here.
An alternative would be to implement a regex=True variant for glob, but this is called from a number of places, so I'm thinking it would take too much passing of kwargs around to make it work everywhere.

pathlib might avoid both the complexities

I've never understood why this exists! It calls the same os functions underneath and has the same problems. In fsspec, we convert all (windows) paths to posix as soon as we can, rather than try to support both in all the operations. Actually, Cpython has "magic" to convert them back again for the appropriate file-system drivers, so this is all rather circular.

See https://docs.python.org/3/library/glob.html#glob.escape which I think should be implemented and also first called on the path name passed to glob and before the trailing "*" is added. fsspec's glob seems to not be intended to be a generic glob method (or people would just use the native glob), and especially the way it gets used by dask/fastparquet, so this seems sensible.

re.compile('([*?[])').sub(r'[\1]') seems like a reasonable thing to do, that is what escape calls.

fsspec's glob seems to not be intended to be a generic glob

We do Not want to use the OS-specific handles in fsspec glob, because we are usually not dealing with a local file-system. You could say that fsspec is more generic. Perhaps LocalFileSystem could directly call glob (previous versions did), but we prefer to work in posix-like filepaths where possible.

I agree about avoiding os.glob for the fsspec broader intentions.
That said, I believe the issue here is that the fsspec glob function is implemented with regex, and if it is intended to be "shell like" then it must escape non-shell specifics such as "^" to avoid clashes with its chosen regex implementation. With regard to paths that are passed to glob that happen to contain shell-like wildcards such as "*", supporting an escape method seems to also make sense for those chars. In the case we found, using dask/fastparquet to serialize to a file with things like '^GSPC' (the Yahoo! Finance S&P 500 index), needs those escapes or it's a nightmare to normalize ^GSPC (and all its brethren) everywhere and denormalize to display for users so there's no ambiguity. "^GSPC" is a 100% valid file system name, it must be reminded.

OK: so I suppose the best thing would be to add your extra replacements to the code as a PR, and add tests for more exotic filenames both to the local and one of the non-local (memory or ftp) filesystems. You are quite right, it's often best to speak of particular example cases.

Hi, @martindurant , I'm working on this now...

PR submitted. Thanks, again.


upload_multiple field error in latest backpack version

Hi, upload_multiple was working fine in previous version. In latest version while editing in crud it gives this error.
"Invalid argument supplied for foreach() (View: D:\wamp\www<dir>\vendor\backpack\crud\src\resources\views\fields\upload_multiple.blade.php) (View: D:\wamp\www<dir>\vendor\backpack\crud\src\resources\views\fields\upload_multiple.blade.php) (View: D:\wamp\www<dir>\vendor\backpack\crud\src\resources\views\fields\upload_multiple.blade.php) (View: D:\wamp\www<dir>\vendor\backpack\crud\src\resources\views\fields\upload_multiple.blade.php)
value stored in db-
["portfolio/485be43820ec8f11c3aaae69e9685265.jpg","portfolio/63d202580bf764cef1d8a1252f6b39bb.jpg","portfolio/047189e3358f72b4acc676a1dbd84b56.jpg","portfolio/d8283b31ee1990c899a5988e76711825.jpg"]

ah fixed, forgot to add attribute casting in model.


OpenWRT下，2.2.1版webdav运行报错，refresh token failed

问题描述
运行报错。已关闭路由器上所有服务，但问题仍然存在。

无法访问https://websv.aliyundrive.com/token/refresh。从路由器、换了网络的电脑、搬瓦工VPS访问此链接，均报错。

[root@vps-20181111 ~]# curl -v https://websv.aliyundrive.com/token/refresh

Could not resolve host: websv.aliyundrive.com; Unknown error
Closing connection 0
curl: (6) Could not resolve host: websv.aliyundrive.com; Unknown error
====

可以访问https://www.aliyundrive.com。从路由器、换了网络的电脑、搬瓦工VPS访问此链接，均OK。
root@OpenWrt:~# curl -v https://www.aliyundrive.com

GET / HTTP/1.1
Host: www.aliyundrive.com
User-Agent: curl/7.80.0
Accept: /

< HTTP/1.1 200 OK
< Date: Sat, 17 Jun 2023 17:34:35 GMT
< Content-Type: text/html; charset=utf-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< Vary: Accept-Encoding
< Access-Control-Allow-Credentials: true
< Access-Control-Expose-Headers: Content-MD5,X-Request-Id,X-Canary,X-Share-Token,X-Ca-Request-Id,X-Ca-Error-Code,X-Ca-Error-Message
< Cache-Control: private, no-cache, max-age=0, s-max-age=0, must-revalidate
< Etag: "C4091909DBB8403FED095204975EEDE6"
< Expires: 0
< Last-Modified: Sat, 17 Jun 2023 17:34:35 GMT
< Pragma: no-cache
< Server: Gear/1.25.1
< Strict-Transport-Security: max-age=15552000;includeSubDomains;
< Vary: Accept-Encoding,Origin
< X-Canary: product=adrive
重现步骤

根据文档，在openwrt上安装2.2.1版的ipk文件
访问链接，https://messense-aliyundrive-webdav-backendrefresh-token-ucs0wn.streamlit.app/，扫码后获得token
根据文档，设置OpenWRT上的参数
按“保存&应用”按钮

版本
2.2.1
运行平台
OpenWRT
日志
2023-06-17T17:24:33.197290Z  WARN aliyundrive_webdav::drive: refresh token failed, will wait and retry error=error sending request for url (https://websv.aliyundrive.com/token/refresh): error trying to connect: dns error: failed to lookup address information: Name does not resolve
2023-06-17T17:24:34.199403Z  WARN aliyundrive_webdav::drive: refresh token failed, will wait and retry error=error sending request for url (https://websv.aliyundrive.com/token/refresh): error trying to connect: dns error: failed to lookup address information: Name does not resolve
2023-06-17T17:24:35.200508Z  WARN aliyundrive_webdav::drive: refresh token failed, will wait and retry error=error sending request for url (https://websv.aliyundrive.com/token/refresh): error trying to connect: dns error: failed to lookup address information: Name does not resolve
2023-06-17T17:24:36.201457Z  WARN aliyundrive_webdav::drive: refresh token failed, will wait and retry error=error sending request for url (https://websv.aliyundrive.com/token/refresh): error trying to connect: dns error: failed to lookup address information: Name does not resolve
2023-06-17T17:24:37.202496Z  WARN aliyundrive_webdav::drive: refresh token failed, will wait and retry error=error sending request for url (https://websv.aliyundrive.com/token/refresh): error trying to connect: dns error: failed to lookup address information: Name does not resolve
2023-06-17T17:24:38.204112Z  WARN aliyundrive_webdav::drive: refresh token failed, will wait and retry error=error sending request for url (https://websv.aliyundrive.com/token/refresh): error trying to connect: dns error: failed to lookup address information: Name does not resolve
2023-06-17T17:24:39.205955Z  WARN aliyundrive_webdav::drive: refresh token failed, will wait and retry error=error sending request for url (https://websv.aliyundrive.com/token/refresh): error trying to connect: dns error: failed to lookup address information: Name does not resolve
2023-06-17T17:24:40.207763Z  WARN aliyundrive_webdav::drive: refresh token failed, will wait and retry error=error sending request for url (https://websv.aliyundrive.com/token/refresh): error trying to connect: dns error: failed to lookup address information: Name does not resolve
2023-06-17T17:24:41.209684Z  WARN aliyundrive_webdav::drive: refresh token failed, will wait and retry error=error sending request for url (https://websv.aliyundrive.com/token/refresh): error trying to connect: dns error: failed to lookup address information: Name does not resolve
2023-06-17T17:24:42.211767Z  WARN aliyundrive_webdav::drive: refresh token failed, will wait and retry error=error sending request for url (https://websv.aliyundrive.com/token/refresh): error trying to connect: dns error: failed to lookup address information: Name does not resolve
2023-06-17T17:24:43.213040Z ERROR aliyundrive_webdav::drive: refresh token failed: error sending request for url (https://websv.aliyundrive.com/token/refresh): error trying to connect: dns error: failed to lookup address information: Name does not resolve
Error: initialize aliyundrive client failed

行吧。只能换成docker的，一把成功。


FirebaseObjectObservable not working with resolve data from latest router

Hi!
I'm trying to query some data before my route is rendered, but my code is doesn't return from this.af.database.object('user') which return a FirebaseObjectObservable.
I tested same method but using Observable.of({data: 'testing'}).
What should I do to get it working?

Can you provide a plnkr example?

@davideast I'll setup it ASAP... thanks

@davideast I`ve set a basic plnkr, but I haven't a public firebase. could you set firebase instance in app/main.ts. Is it okay for you?
plnkr
Inside home.resolver there is a call to firebase that never returns.

same problem,I can not get the right data from the ngOnInit method
https://github.com/angular/angular/issues/10874

It looks like you're calling AuthState.authenticated() before this.authData is resolved (it's initially going to be null, since verifying your auth creds is not a synchronous operation). You can't think of auth state as a synchronous boolean; you need to treat it more like a promise and it should probably be in the resolve rather than canActivate (unless canActivate will take a promise).
☼, Kato

Same problem, I can't get the data resolved from FirebaseObjectObservable in my resolve service
vacancy.service.ts
`
import { Injectable } from '@angular/core';
import { AngularFire,
FirebaseListObservable,
FirebaseObjectObservable } from 'angularfire2';
import 'rxjs/add/operator/toPromise';
import 'rxjs/add/operator/map';
import 'rxjs/add/operator/finally';
import { Vacancy } from './vacancy.model';
@Injectable()
export class VacancyService {
vacancies$: FirebaseListObservable<Vacancy[]>;
constructor(private af: AngularFire) {
this.vacancies$ = this.af.database.list('/vacancies');
}
getVacancies(): FirebaseListObservable<Vacancy[]> {
return this.vacancies$;
}
getVacancy($key: string): FirebaseObjectObservable {
return this.af.database.object(/vacancies/${$key});
}
pushVacancy(vacancy: Vacancy) {
this.vacancies$.push(vacancy);
}
}
vacancy-detail-resolve.service.ts
import { Injectable } from '@angular/core';
import { Router, Resolve,
ActivatedRouteSnapshot } from '@angular/router';
import { FirebaseObjectObservable } from 'angularfire2';
import { VacancyService } from './vacancy.service';
import { Vacancy } from './vacancy.model';
@Injectable()
export class VacancyDetailResolveService implements Resolve{
constructor(private vs: VacancyService, private router: Router) {}
resolve(route: ActivatedRouteSnapshot): Promise|boolean {
let $key = route.params['$key'];
console.log($key);
return this.vs.getVacancy($key).toPromise().then(vacancy => {
if (vacancy && vacancy.$value !== null) {
return vacancy;
} else { // $key not found
this.router.navigate(['/vacancies']);
return false;
}
});
}
}
vacancies-routing.module.ts
import { NgModule }             from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { VacancyDetailResolveService } from './shared';
import { VacancyDetailComponent }  from './vacancy-detail';
import { VacancyDetailEditComponent }  from './vacancy-detail-edit';
import { VacanciesComponent }  from './vacancies.component';
const vacanciesRoutes: Routes = [
{
path: 'vacantes',
component: VacanciesComponent,
},
{
path: 'vacantes/:$key',
component: VacancyDetailComponent,
resolve: {
vacancy: VacancyDetailResolveService
}
},
{ path: 'vacantes/:$key/editar', component: VacancyDetailEditComponent },
];
@NgModule({
imports: [
RouterModule.forChild(vacanciesRoutes)
],
exports: [
RouterModule
]
})
export class VacanciesRoutingModule {}
`
The "/vacantes/:$key" route never gets resolved.
Any help?


EPUB URLs aren't working

Reported on discord (thanks @matthughes):

New website looks great!  I did find one bad link; the "Download (EPUB)" links to /1.0/downloads/ but apparently that asset is at /downloads/http4s-1.0.epub.  I can PR a link fix unless you want /1.0/downloads/ to work.

Duplicates #5674


issue with writing lists containing conjunctions

We get
tpl
?- use_module(library(lists)).
   true.
?- op(1150,xfx,=>).
   true.
?- write([(p(a),p(b) => c(c))]).
[p(a),p(b)=>c(c)]   true.
?- member(X,[p(a),p(b)=>c(c)]).
   X = p(a)
;  X = (p(b)=>c(c)).
?-

but expect
scryer-prolog
?- use_module(library(lists)).
   true.
?- op(1150,xfx,=>).
   true.
?- write([(p(a),p(b) => c(c))]).
[(p(a),p(b)=>c(c))]   true.
?- member(X,[(p(a),p(b) => c(c))]).
   X = (p(a),p(b)=>c(c)).
?-

Check the member/2 queries in the two examples, they are not the same!

Indeed but the problem is not with member but with write which is writing write([(p(a),p(b) => c(c))]). wrongly and we pick up that result in another run wrongly.

Ah, ok, missed that. As someone over there likes to say, put 'unexpected' after something that is unexpected.

and that is written correctly :-)

Thanks a lot, it now works fine with Trealla Prolog (c) Infradig 2020-2024, v2.60.16.
All other tests work fine too and I'm very impressed with the performance of workplace-benchmark.
So scaling it to 30000 emplyees is fine and takes about 2 sec for eye3, that is with proof.
It is also not scaling with proof for eye where it takes more than a minute.

Does eye3 supercede eye?
On Sun, 24 Nov 2024, 00:18 Jos De Roo, @.***> wrote:

Thanks a lot, it now works fine with Trealla Prolog (c) Infradig
2020-2024, v2.60.16.
All other tests work fine too and I'm very impressed with the performance
of workplace-benchmark
https://github.com/mthom/scryer-prolog/discussions/2665#discussioncomment-11353720
.
So scaling it to 30000 emplyees
https://github.com/eyereasoner/eye3/blob/main/etc/workplace-benchmark.pl
is fine and takes about 2 sec for eye3, that is with proof
https://github.com/eyereasoner/eye3/blob/main/etc/output/workplace-benchmark.pl
.
It is also not scaling with proof for eye
https://github.com/eyereasoner/eye/blob/master/reasoning/workplace-benchmark/workplace-proof.n3
where it takes more than a minute.
—
Reply to this email directly, view it on GitHub
https://github.com/trealla-prolog/trealla/issues/633#issuecomment-2495494679,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFNKSEVEBOWVEQOW6PTV4E32CCFFDAVCNFSM6AAAAABSK7LFOGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIOJVGQ4TINRXHE
.
You are receiving this because you commented.Message ID:
@.***>

Not yet, but who knows, one day it might 🤷♂


ℹ  Update Know the Thing

This is wrong, it needs to be updated.

[ ] Establish who's face should be on the page
[ ] Establish what should be written in the blurb
[ ] Redirect to the newly created Analytical Platform Guidance

Requested access from capability team for Greg, Gary, Julia, you can search KTT for how to edit and get the correct permissions if required

Completed ticket.


[Add]

Details
I will be adding a Confirm button which when clicked plays a party popper
Screenshots
Screencast from 21-06-23 02:31:42 PM IST.webm
Type of Contribution

[ ] Update to an existing Animated Button
[X] Adding a new Button
[ ] Resolving a bug
[ ] Proposal to the Repository
[ ] Changes related to documentation or README.md
[ ] Other Changes

Checklist

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I am willing to work on this issue
[X] I am a GSSoC'23 contributor

Please check #1346

Sorry for the inconvinience, but we are closing all the issues! Please open a new issue if you want to contribute anything. Also now you can create a new button from the website itself! You will get points for those too! I will add the instructions on how to create a new button soon and create an empty pr for the same to get points!


Rasa is not recognizing proper Intent

Rasa NLU version (e.g. 0.7.3): 0.10.0a6
Used backend / pipeline (mitie, spacy_sklearn, ...): Spacy & Sklearn
Operating system (windows, osx, ...): Windows 8
Issue: Rasa is not recognizing proper Intent
Example:
I created an Intent name “GenericGreetingGM” and trained with utterances like(Good Morning, Gud mrng, gud morning, very good morning etc…). But for few utterances like (gud morning) is going into GenericSmallTalkFamily and we don’t have any words matching with “morning” or “gud” in this intent.
After communicating with few people, they suggested me to check with Rasa evaluation http://rasa-nlu.readthedocs.io/en/latest/evaluation.html (Intent Confusion Matrix) and below are my observations from the image.
Total Utterances: 28
Correct Utterances: 8
Rest of the utterances are going to wrong Intent as I mentioned you in an example.

Below are my questions.

How does Rasa work
How do rasa analyse the text and give the Intent.
How can I analyse using Rasa evaluation/above picture

Could you please help us with this issue and mainly using Rasa evaluation.
Thanks in Advance
@wrathagom

Sorry for the delayed response. The intent that ends with lkBeliefs seems to be dominating. Does it have a lot more common_examples than any of the other intents?


Error message is misleading when defining an attribute incorrectly in schema JSON

Before opening, please confirm:

[X] I have searched for duplicate or closed issues.
[X] I have read the guide for submitting bug reports.
[X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.

Bug Category
Schemas and Validation
Describe the bug
For the below schema, the reported error is
unknown field `baz`, expected one of `type`, `element`, `attributes`, `additionalAttributes`, `name`

This is misleading because baz is a completely valid field (attribute name), and changing baz to some other string (like the ones listed) will not fix the problem.
Instead, the issue is in the bar field.  The set element type was listed as "Long" instead of { "type": "Long" }.
If you fix the set-element mistake, you see that a similar mistake was made in the baz field, but that one actually has a reasonable-ish error message once you fix the set-element mistake:
invalid type: string "Boolean", expected struct TypeOfAttribute

This actually points to the correct problem location ("Boolean"), and from this error message an end-user could probably decipher a hint that they need a JSON object instead of just the string "Boolean".  (This error message itself could definitely be improved, too; for instance, we could suggest that you need { "type": ... } instead of using the cryptic term TypeOfAttribute; and we could even perhaps suggest { "type": "Boolean" } in this particular case.)
Expected behavior
A better error message -- at least one that points to the bar attribute instead of baz, and ideally a reasonable suggested fix.  See above.
Reproduction steps
Try to parse the schema given below
Code Snippet
{ "": {
   "entityTypes": {
       "a": {
           "shape": {
               "type": "Record",
               "attributes": {
                    "foo": { "type": "Entity", "name": "b" },
                    "bar": { "type": "Set", "element": "Long" },
                    "baz": { "type": "Record", "attributes": { "z": "Boolean" } }
               }
           }
       },
       "b": {}
   }
} }

Log output
No response
Additional configuration
No response
Operating  System
No response
Additional information and screenshots
No response

That's a subtle bug.
I think it's an unintended consequence of the behavior noted here, but I haven't fully figured it out yet.

Another example of this class of error came up recently. The only difference is that the error on the top level attribute instead of a nested attribute.
{
  "": {
    "entityTypes": {
      "User": {
        "shape": {
          "type": "Record",
          "attributes": {
            "foo": {
              "type": "Record",
              "element": { "type": "Long" }
            },
            "bar": { "type": "Long" }
          }
        }
      }
    },
    "actions": {}
  }
}

error is
  × failed to parse schema from file test.cedarschema.json
  ╰─▶ unknown field `bar`, expected one of `type`, `element`, `attributes`, `additionalAttributes`, `name` at line 12 column 17

FWIW, this issue should be easy to fix if we don't mind having slight less helpful error messages when a JSON schema contains parse errors inside unexpected fields.  It would complain about the error in the field before complaining about the existence of the field. This error as it stands is bad enough that IMO it's easily worth it.


Update scalafmt-core to 3.2.1

Updates org.scalameta:scalafmt-core from 3.0.8 to 3.2.1.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scalameta", artifactId = "scalafmt-core" } ]

labels: library-update, early-semver-minor, semver-spec-minor

Superseded by #94.


[BUG] Global tenant requires '.kibana*' and '.opensearch_dashboards*' read index permission

Describe the bug
For the global tenant it is mandatory to give to the rol associated to the user the ReadOnly for the tenant and the read permission to this indices:

.kibana*
.opensearch_dashboards*

For the other created tenants it is no necessary these index permissions, it is enough to give ReadOnly for the tenant.
To Reproduce
Describe above
Expected behavior
The global tenant should behave like the other tenants because the current behaviour is strange and not consistent with the other permissions.
OpenSearch Version
AWS managed cluster. Version 2.11.0
Dashboards Version
2.11.0

[Triage] - @FrcMoya would you be able to provide some more information about your issue/setup - permissions/mappings for a tenant that you think is working correctly? Once we understand more about your setup we can see if it is a bug or misconfiguration, thanks! Not marking this as triaged just yet.

[Triage] Hi @FrcMoya just following up. If we don't hear from you I will go ahead and close this as an expected misconfiguration. Thanks.

Hi everyone, I will try to explain this using some screenshots.
On one hand, if you want to allow a role (internal role inside OpenSearch) read only (it is my particular case) to the global tenant it is mandatory to at least give them permission to read_only in the global tenant plus these indexes:

On the other hand, if you want to allow a role permissions to any other tenant created by the OpenSearch Dashboards administrator (a custom tenant), it is no mandatory to give permissions to any indexes in particular, it is only necessary the read only permission in the corresponding tenant:

For me this is a strange behavior and it is not documented, it was a trial and error process until I got the configuration I needed. If all this configuration is correct and the behavior is expected, I believe it is necessary to document it, since they are not obvious requirements.


Translation of module models

I'm using Formtasic in conjunction with ActiveInteraction to power my app.
I'm keen on using the translation .yml features of Formtastic, but I've not been able to figure out how to make it work with models which exist inside modules.
For example, I've got a class Presentations::Create model which I'm using to power a form, but no matter what format I use in the .yml file, I can't get it to recognise the translations I'm setting.
Thank you.

Nevermind, I found the answer. I found out how to find the i18n key for models, which let me discover the correct key in this instance is presentations/create. I popped this in my translation file, and it worked right away.
Thank you.


What is the parameter count of the entire model？

What are the training parameters for videogpt and LatteT2V in the model？

print(f'{sum(p.numel() for p in model.parameters() if p.requires_grad)/1e9} B')

Thank you, I calculated that version 1.0 is around 1B


Moving all .bg-* classes into Background colors

When using Tachyons I noticed that all of the .bg-black-* and .bg-white-* classes were not grouped under the /* Background colors */ section. I moved them down and matched them to the ordering in the /* Text colors */ section, while preserving the same empty line schema.

Thanks!


Free UT yamls for Manual worlds that want them

This PR enables the functionality added here (by silasary) on the UT side: https://github.com/FarisTheAncient/Archipelago/pull/10
Making this super simple PR since sila is away on yearly bike trip :smiley:

To answer your question, this gives UT permission to make the following yaml when it can't find one:
name: (player_name)
game: (game)
game:  {}

We then use interpret_slot_data to actually put real values in.


Improve lint setup

Pre-flight Checklist
Please ensure you've completed all of the following.

[x] I have read the Contributing Guidelines for this project.
[x] I agree to follow the Code of Conduct that this project adheres to.

Description of Change

Mimics https://github.com/ferdium/ferdium-app/pull/1281 to enhance lint setup
@mcmxcdev - please review

I think that was a mistake.


Create a wrapper over discord.ext.tasks.loop

discord.ext.tasks.loop automatically reruns tasks by default on some errors. The implementation doesn't seem great though because:

The error is never logged.
There is no limit on the number of times it will retry.
The error may not be something that will be fixed by retrying.

A solution would be to default to not reconnecting. A util in botcore gives us more flexibility to change how things work in the future (e.g. error handling, custom retry logic in some cases, etc).

We'll need to define exactly what we want to do with the exception.
The thing is, our error handler handles errors raised inside commands, which isn't the case for tasks.
We could generate a "fake context", but I'm unsure of how good of an idea that is.
What we also do is override the Loop class' on_error callback and define the "generic" exception handling there.
We'd then have, in pydis_core.ext.tasks
from discord.ext.tasks import Loop as BaseLoop, LF
from discord.utils import MISSING
from typing import Any, Callable, Optional, Union, Sequence, Generic
from datetime import datetime
from pydis_core.utils.logging import get_logger

logger = get_logger(__name__)

class Loop(BaseLoop, Generic[LF]):

    def __init__(self, **kwargs):
        super().__init__(**kwargs)

    async def _error(self, *args: Any) -> None:
        exception: Exception = args[-1]
       # Define what we want to do here.
        logger.exception(
            msg=f"Task: {self.coro.__qualname__} threw an unexpected {exception.__class__.__name__} exception.",
            exc_info=exception
        )
        return

def loop(
    *,
    seconds: float = MISSING,
    minutes: float = MISSING,
    hours: float = MISSING,
    time: Union[datetime.time, Sequence[datetime.time]] = MISSING,
    count: Optional[int] = None,
    reconnect: bool = True,
) -> Callable[[LF], Loop[LF]]:

    def decorator(func: LF) -> Loop[LF]:
        return Loop[LF](
            coro=func,
            seconds=seconds,
            minutes=minutes,
            hours=hours,
            count=count,
            time=time,
            reconnect=reconnect,
        )

    return decorator

And then, in some cog

from pydis_core.ext.tasks import loop

class MyCog(Cog):

    @loop(minute=5)
    async def my_task(self):
         # body goes here

2023-07-09 01:11:59 | pydis_core.exts.tasks | ERROR | Task: MyCog.my_taskthrew an unexpected {{ExceptionClass}} exception.


Where to adjust for timezones?

Hallo,
I generate an ics from a json.
The json input is eg:
[8] => Array
                (
                    [name] => Title
                    [date] => 2021-04-22
                    [time] => 17:30
                    [duration] => 1h
                )

the output from phpcalfeedconvert is
BEGIN:VEVENT
DTSTART:20210422T153000
DTEND:20210422T163000
SUMMARY: Title
END:VEVENT

The timezone seems off. How can I adjust for that?

Hmm.. that's odd. The iCalendar output always uses UTC date-times so I would expect to see the DTSTART and DTEND values have a Z specifier on the end to reflect this. The Z is actually hard-coded.
The calendar script doesn't have its own time zone setting yet, unfortunately. It uses the default time zone specified in your php.ini file and assumes all times are local time. iCalendar requires times to be defined unambiguously so they are output as UTC.


Singular events should not count as bounce

Singular bounce events as for mirror reflections (refractions) currently count as bounce. When rendering with low bounce depth, this results in black shading of very reflective parts of the scene.
Not counting these event should fix this, as the path continues until a light or non-singular surface is found where light contribution can be gathered by direct light sampling.

Problem solved:

Implemented russian roulette path termination, so paths might to decide to end earlier than max bounce depth
Paths can only end when last bounce event was non-singular (or max bounce depth is reached, which now serves as hard max to contrain performance)
Added an option to force an unshadowed IBL sample on the last bounce forceIBLEvalOnLastBounce(). This will increase visibility of highly occluded areas significantly, without the need for a high bounce depth. But it also introduces a large error for short paths


[Dev support]: Help with configuring authentication

Hi I've implemented an Oauth 2 Generic Provider on my bot service resource in Azure and tested the connection successfully. After configuring authentication as per documentation here with auto set to True, clicking on the Sign In button the adaptive card results in error "Something went wrong. Please try again."

On mobile, this is what I see after pressing the Sign In button:

Testing the bot via web chat on the Azure Portal, the sign in button works - it opens the browser to the application's sign in page, OAuth consent screen, and once done a code is generated. Pasting the code back in the chat doesn't do anything.

@corinagum yes using Python. You're referring to #1934? Are they the same issue with the same causes, given that the other one is SSO with Entra ID, and this one is a generic OAuth provider?

@yikwen : Can you specify the detailed reproduce steps to create above scenario?

@SubbaReddi

Register an app with the service provider (in my case, https://talenox.github.io/api-doc/#introduction)
Configure bot service with an Oauth2 Generic Provider connection following documentation here

Added auth options to my app

And test code to trigger sign in

That's all.

@yikwen : Issue is not reproducible for me with the above steps. Something went wrong error message is not displaying.
Popup window is opening to provide consent and then window closing. But finally leading to the same issue as reported here

@SubbaReddi just curious, what service provider did you register your application with, and what version of the Python SDK were you working with? I was on 1.3.0, and if I could try the same service provider as the one you tested with then we can see if the behaviour's the same.

@yikwen : I used talenox service provided as you mentioned above. I was using Teams sdk 1.2.2 with this sample: https://github.com/microsoft/teams-ai/tree/main/python/samples/06.auth.oauth.bot

@yikwen : I used talenox service provided as you mentioned above. I was using Teams sdk 1.2.2 with this sample: https://github.com/microsoft/teams-ai/tree/main/python/samples/06.auth.oauth.bot

@SubbaReddi i was on v1.3.0

@yikwen : Is it possible to try with above sample with Teams sdk 1.2.2? Currently i have a different blocker to validate with v1.3.0

@SubbaReddi unfortunately no, I've configured my code with v1.4.0 features and changing to v1.2.2 would require quite a bit of things to change in my code before I can test OAuth.

@SubbaReddi FYI still not working even with latest Teams client and teams-ai 1.5.0, same behaviour as before as well as #1934

@yikwen just jumping in to say, we just released 1.7.0 (latest was 1.6.1 before today). Please try updating the SDKto that.


[bug] Repeat notification

版本号 / Version：
1.6.0

问题描述 / Description of the issue：
When the influenza starts Live Streaming, there may be a problem of repeated notifications, especially when the cycle period is short (less than 1 second)

复现步骤 / Reproduction steps：
When influenza start Live Streaming

live streaming -> not live streaming -> live streaming -> not live streaming
About 10 seconds


Turn off cladding layer by setting to None

I think it would be very convenient to have the possibility to turn off the cladding layer. I understand that one can also just ignore it, so if this is the preferred option, please close the Feature Request.
Otherwise I would suggest the possibility to set cladding_layer to None to then not create one.

This can be easily achieved by deleting all elements (mostly polygons) in layer 1 and 2 (default boolean layers) of your final cell. For instance:
cell_top.remove_polygons(lambda pts, layer, datatype: layer==1 or layer==2);
This still may not give you flexibility to rename all layer numbers, but probably not a big deal.
The difficulty of directly "turning off" layer 1 and 2 is probably in the boolean operation of gdspy, which tends to keep the entities from different layers before  the operation (if operation is on the same layer, the entities before operation do not show up in the operation result).


added my name to the list

This PR added my full name to the lists of names in the names.txt file

Please I am sorry for all the trouble we have caused you but count it all joy. Your PR is about to be merged and you will be able to see your name on this url.
To enable me to do this, READ the README again carefully, update your code with the latest and push the update. I am here for you for the next 6 hours before I close the PR so you can initiate a fresh PR which will be easier to merge.


feat: technologies table

Transforms SDK table into new "technologies" table, which showcases SDKs + install instructions + providers + hooks.
Direct link: https://deploy-preview-77--lucky-creponne-baf9b3.netlify.app/docs/reference/technologies/ (click on any of the languages).

@beeme1mr @benjiro Thanks for catching my copy/paste mistakes! :sweat_smile:

It also looks like the some of the icons don't dim when you hover over them. The most obvious one is the "add yours" tile.

Great catch. I extracted the "svg or fonticon" logic the cards use for use elsewhere and this broke. I've fixed it.


Migration inline-label component to styled-component

Based on issue #532
I am new to working with open source project but I have write some code with React Native and styled component before. Can I take this issue ?

With great pleasure @binkpitch, welcome to GitPoint!
I've added you to the list, let us know if you need any help with your PR.

@machour The PR has been merged, do I have to close this issue or just leave it open ?

@binkpitch Sure, I can close it. Done by #544.


Create CODE_OF_CONDUCT.md

Using welcoming and inclusive language
Emoji which count as votes are: [...] 🖕  [...]

👎


AnimationTree Transition Node Cross-Fades over Bind Pose

Godot version: 3.1 stable, official build
OS/device including version: Gentoo Linux 4.19.27, KDE5 Plasma, GTX 1080 w/proprietary drivers 418.43
Issue description: The transition node in Godot 3.0's AnimationTreePlayer used the "Xfade Time" to blend between the previously active animation and the switched-to animation.
Using Godot 3.1's AnimationTree with an AnimationNodeBlendTree as root node, the transition always takes place between animation 0 and the switched-to animation:

In the above animation, when going from animation 2 to 3 or from animation 3 to 4, the transition node does not cross-fade between the relevant animations, but between animation 0 and 3 or between animation 0 and 4 respectively.

Might be by design, can you try using multiple transition nodes?

It may not be the animation interpolating between first and other animations, but a problem when interpolating and the end frame and start frame between animations is the same, It has happened to me, but it was a light "bump up". Try removing your default and see what happens (I had to remove some frames from the animation to make it work)

@bojidar-bg I can't think of a way to use multiple Transition nodes to avoid the issue (even if I tried to have one for each set of animations with a similar stance, it would fail when the main Transition node switches).
@David-Ochoa The animations should be okay. They work fine in the old AnimationTreePlayer and if I disable "Auto Advance" in the new Transition node, they loop perfectly without any hickups.
However, while checking both of your suggestions I've now discovered that it's not the first animation it's cross-fading over but the bind pose. Even if I fill the entire transition node with identical animations (or different ones minus the Neutral one), it will do what's shown in the above video.
The bind pose generally has the character's arms outstretched (A- or T-pose), so I can't imagine cross-fading over that would ever be useful out there.

cc @guilhermefelipecgs

Hrm... if "Xfade Time" is set to 0 (the default value for any new Transition node), then the Auto Advance property is ignored and the active state just loops. Set it to 0.01 and it works :thinking:

Eek! Even the new "Animation State Machine" has similar bugs.
If I set up a Transition with "Switch Mode" set to "At End" and also enable "Auto Advance", it will auto advance the moment the animation starts playing, rather than at the end of it.
And the cross-fade over bind pose issue is present, too, if I set a the "Xfade Time" on any transition to a value greater than 0:

So cross-fade is currently broken. And if I turn off cross-fade, auto advance also stops working. :face_with_head_bandage:

AFAIK, crossfade uses blend.
so, #27562 and #27562 possibly fix it.

@volzhs Indeed!
I tried with the current Git master 6697fd9a05859914fc320b4b4321fd9fb6170f71 and PR #27562 and both issues are gone.
Sorry for not trying this earlier, it seemed like the official 3.1 build was still fresh but I guess it's already been a month :smile:

glad to hear that! :smiley:

This issue is back in the current 4.x.  Affects cross-fades in both state machines and blend trees.


Wrong cursor position when double click to select a word

VSCode Version: Code - Insiders 1.16.0-insider (aa42e6ef8184e8ab20ddaa5682b861bfb6f0b2ad, 2017-09-01T15:40:17.463Z)
OS Version: Windows_NT x64 10.0.16281
Extensions: Extensions are disabled

Steps to Reproduce:

Open a file (txt/md etc.)
Double click on a word to select it
See that the cursor is placed at the start of the selection

Reproduces without extensions: Yes

Seems already fixed in the latest insider version

reproduced on
Version 1.17.0-insider
Commit c354fca44896da2c9cad82b9bd9126f6658cfae8
Date 2017-09-08T05:24:34.310Z
Shell 1.7.7
Renderer 58.0.3029.110
Node 7.9.0
Architecture x64


[Do not merge] Testing a segfault in CI

This is to test a problem found in https://github.com/apache/incubator-mxnet/pull/10951#issuecomment-411370941.

Please test locally using the reproducing test results guide in confluence (I don't have a link on handy sorry)

https://cwiki.apache.org/confluence/display/MXNET/Reproducing+test+results

@marcoabreu Thanks for the guide. I have some trouble to reproduce the failed test in my local environment. I'll try further.

Does local environment mean local computer or within docker?

@marcoabreu I'm failing to reproduce the test result in a machine running Arch linux. And I'm also failing to run docker in the machines (not actual CI testing). I think I need to develope some familiarity with docker.

We use Ubuntu 16.04, docker and nvidia-docker2. Then follow the guide and it should be straight forward. Feel free to attend our office hours if it doesn't work then.


app' view_function occurs endpoint key missing when adding url  rule by endpoint(decorator method) of blueprint

app' view_function occurs endpoint key missing when adding url  rule by add_url_rule and endpoint(decorator methods) of blueprint

here is a simple example:
from flask import Flask, Blueprint

app = Flask(__name__, static_folder=None)

api_v1_bp = Blueprint('api_v1', __name__, url_prefix='/api/v1')

api_v1_bp.add_url_rule('/foo', 'foo')

@api_v1_bp.endpoint('foo')
def foo():
    return 'foo'

app.register_blueprint(api_v1_bp)

app.run()

[2022-03-01 18:29:29,362] ERROR in app: Exception on /api/v1/foo [GET]
Traceback (most recent call last):
  File "E:\languages\python\3.8\lib\site-packages\flask\app.py", line 2073, in wsgi_app
    response = self.full_dispatch_request()
  File "E:\languages\python\3.8\lib\site-packages\flask\app.py", line 1519, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "E:\languages\python\3.8\lib\site-packages\flask\app.py", line 1517, in full_dispatch_request
    rv = self.dispatch_request()
  File "E:\languages\python\3.8\lib\site-packages\flask\app.py", line 1503, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
KeyError: 'api_v1.foo'
<IP_ADDRESS> - - [01/Mar/2022 18:29:29] "GET /api/v1/foo HTTP/1.1" 500 -

rasie keyError when visit /api/v1/foo；although app.url_map._rules contains a rule of <Rule '/api/v1/foo' (HEAD, OPTIONS, GET) -> api_v1.foo>, app.view_function only has the "foo" key, not "api_v1.foo"
i think problem is here
https://github.com/pallets/flask/blob/6f7762538bffe3ce9d03508ecab230bfff3e3dcd/src/flask/blueprints.py#L357
the line code should be app.view_functions[f'{name}.{endpoint}'] = func, when merging blueprint's view_functions into parent, should take blueprint name or combination of nest blueprints's name
**

Environment:

Python version: 3.8
Flask version: 2.0.2

@api_v1_bp.endpoint('api_v1.foo') def foo():     return 'foo'
this is will be ok. but i think the job should be done in blueprint's register method, like this
def register(self, app: "Flask", options: dict) -> None:             ....             for endpoint, func in self.view_functions.items():                 endpoint = name + '.' + endpoint.split('.')[-1]                 app.view_functions[endpoint] = func             ...


Commit and Rollback buttons does not enable (connection JDBC to Progress db)

Hi All,
I've just updated from DBeaver 3.8.3 CE to 5.0.0 CE and I'm wondering if buttons "Commit" and "Rollback" doesn't enable enymore when switching in maual commit (read committed).
I use DBeaver to interface to a Progress 4GL database using JDBC drivers.
Could someone help?
Cheers,
Mauro

Can't reproduce this issue.
What is your OS?
Do you use standalone version or Eclipse plugin?
What actions you perform to trigger transaction start?

Windows server 2008 R2 Standard with Service Pack 1
I use standalone CE version
In previous version (3.8.3) when in read committed mode I was able (switching to manual commit) to manually execute commit and/or rollback (this because buttons becamed enabled).
Now (version 5.0.0) even if I switch to manual commit when in read committed mode these two buttons doesn't enable.

video.zip
here attached two videos with behavior on two versions.

Commit/Rollback buttons will become enabled once you will execute any transactional query.

ok,thanks. Now I got it.
Cheers,
Mauro


feat: exports kOpenSSFScorecardRestApi

As discussed here: https://github.com/NodeSecure/cli/pull/164#discussion_r1091334326

@PierreDemailly Please rename variable. The convention using k is only applicable for local constant (if you export it from a module it should be in MAJ).
For example:
import * as scorecard from "@nodesecure/ossf-scorecard-sdk";

// BAD
console.log(scorecard.kOpenSSFScorecardRestApi);

// OK
console.log(scorecard.API_URL);

@all-contributors please add @PierreDemailly for code


connect cla to external webhook

is there a way to trigger an external webhook when someone signs a CLA successfully ?

Not currently. But that could be added.

is there an estimation on this ? where can i follow updates ?

this project isn't really maintained anymore.  A more maintained conceptual fork of this project is at: https://github.com/sonatype-nexus-community/the-cla

oh nice thanks... let me check that one out .. i will ask the same question there in case someone knows about an external webhook