repeated measures function

Have edited the code to implement the repeated measures function
the paired parameter now takes in four values: TRUE FALSE "baseline" and "sequential".
Based on the following data:
`set.seed(54321)
N = 30
c1 <- rnorm(N, mean = 100, sd = 25)
c2 <- rnorm(N, mean = 100, sd = 50)
g1 <- rnorm(N, mean = 120, sd = 25)
g2 <- rnorm(N, mean = 80, sd = 50)
g3 <- rnorm(N, mean = 100, sd = 12)
g4 <- rnorm(N, mean = 100, sd = 50)
gender <- c(rep('Male', N/2), rep('Female', N/2))
dummy <- rep("Dummy", N)
id <- 1: N
wide.data <-
tibble::tibble(
Control1 = c1, Control2 = c2,
Group1 = g1, Group2 = g2, Group3 = g3, Group4 = g4,
Dummy = dummy,
Gender = gender, ID = id)
my.data   <-
wide.data %>%
tidyr::gather(key = Group, value = Measurement, -ID, -Gender, -Dummy)`
We have for paired = baseline and paired = TRUE:
baseline.data <-    my.data %>%   dabest(Group, Measurement,           idx = list(c("Control1", "Group1", "Group2"),                      c("Control2", "Group3", "Group4")),          paired = "baseline" , id.col = ID   ) baseline.data.mean <- mean_diff(baseline.data) baseline.data.mean
The dabestr object:

The plot:
plot(baseline.data.mean,       color.column = Gender)

plot(baseline.data.mean,       color.column = Gender,      show.pairs = FALSE)

For sequential:
sequential.data <-    my.data %>%   dabest(Group, Measurement,           idx = list(c("Control1", "Group1", "Group2"),                      c("Control2", "Group3", "Group4")),          paired = "sequential" , id.col = ID   ) sequential.data.mean <- mean_diff(sequential.data) sequential.data.mean
The dabestr object:

The plot: (will be slopegraph no matter what show.pairs is)
plot(sequential.data.mean,       color.column = Gender)

Looks good; let me test it out locally!
Next steps are to write unit tests; will PM to give you more info about how to go about this.

Have added some unit tests:

Paired = TRUE and Paired = Baseline have the same graph
Both options on show.pairs should show the same graph for sequential graphs


Add a doctor check to disable the "Actions" unit for mirrors

Resolve #32232
Users can disable the "Actions" unit for all mirror repos by running
gitea doctor check --run  disable-mirror-actions-unit --fix

How about to make this as a doctor sub command?

How about to make this as a doctor sub command?

It is already a subcommand. gitea doctor disable-mirror-actions-unit

Why do we make it a doctor instead of a migration?

Why do we make it a doctor instead of a migration?

Some users may need to enable "Actions" for mirrors. So I made it a doctor command to allow the user to decide if the "Actions" unit of mirrors should be disabled.


Question about equations 3 and 5 from paper

Hi,
I have the impression that equations (3) and (5) from the papers don't match what is done in the code. The factors N_s, N_d and N_m in the denominator should not be there, since they're implicitly included for in the normalized weights.
In 1D, if you have m=[1,2,3], then w = [1/6, 2/6, 3/6] and to compute the weighted mean of x, you'd just do sum(w * x), and not sum(w * x)/3.
Could you confirm that I'm not mistaken, as I'm working on an implementation of your approach ?
Also, I'm looking for data that I could include in a unit test to confirm our implementation is sound and matches what is done in the paper. In other words, I want to do something like:
da = load_test_dataset()
expected = load_expected()
result = lafferty_sriver(da)
xarray.testing.assert_allclose(result, expected)

What would you suggest ?
Many thanks,
David

Hi @huard

Could you confirm that I'm not mistaken, as I'm working on an implementation of your approach ?

I believe you are correct! Thanks for digging in and finding this and letting me know. We will need to check if this merits an author correction... the results in the paper are fine given that the error is only in the manuscript text and not the code.

Also, I'm looking for data that I could include in a unit test to confirm our implementation is sound and matches what is done in the paper.

I added a unit_test folder in this repo which hopefully satisfies your needs. Since the data underpinning the paper is too large to share over GitHub, I just uploaded a single csv file for one location. The notebook steps through applying our method to this data and confirms that it matches the results from the paper. I think this should be enough for your unit test but please let me know if you have additional questions or concerns.

Don't fret too much about it. The paper is clear that a weighted average is being done, and I just realized the glitch in the equation when I checked that my implementation with xarray.DataArray.weighted matched the formula.
This is really cool, thanks for taking the time!
Cheers,
David


Download the app - link not working

The link seems to go to an inactive page, do you have the file for the download?

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

ID: 879fd196-a46f-9f5d-f33b-b5ae9db14b58
Version Independent ID: 67642cb3-92aa-9340-0dff-3786d0672779
Content: Install and configure the Help Desk sample for canvas apps - PowerApps
Content Source: powerapps-docs/maker/canvas-apps/help-desk-install.md
Service: powerapps
GitHub Login: @yijw2017
Microsoft Alias: yijw

Hi, I just tested the link for downloading the app package, it works fine for me. Could you please try with a different browser to see if the issue is still reproducible?
Thank you.

Might have been an issue with my workplace firewalls.


There is a problem when npm install

I'm new to npm and Nodejs. The following error occur when I do npm install:
/bin/sh: 1: node: not found
gyp: Call to 'node -e "require('nan')"' returned exit status 127 while in binding.gyp. while trying to load binding.gyp

What should I do to continue it?
some info:
ubuntu 16.04
node v4.2.6
npm  v3.5.2

Make sure you have the C++ compiler installed on your system.
sudo apt install build-essential

Also having issues with the installation on Windows (10). Installed G++ and still didn't work

npm: '3.10.8'

@sammaina  In your case it's looking for the python executable (Line 2 of the error stack). Please add it to your %PATH% variable.

@IOAyman  I have gcc installed. The same error is still here. I screen shot the whole message for your reference.

What possibly can it be? Thanks in advance.

@sammaina You can follow the A.3 step of the following link to install python or add python to your PATH. Windows do not have python pre-installed. If you want to install python, please install python 2.7., since npm do not support 3.
http://datastructur.es/sp16/materials/lab/lab1b/lab1b.html#a-windows-setup

Similar happens with macOS, It searches for XCode or CLT but fails and crashes.

I'm having the same issue in Ubuntu 16.04. I verified that I have C++ compiler and Python 2.7.1 installed and in path. Had Node 4, tried updating to 6.9.1, still didn't work. NPM 3.10.9.
This is my stack running npm install (directory = [...]):

><EMAIL_ADDRESS>install [...]/IAMDinosaur/node_modules/robotjs
> node-gyp rebuild

make: Entering directory '[...]/IAMDinosaur/node_modules/robotjs/build'
  CXX(target) Release/obj.target/robotjs/src/robotjs.o
cc1plus: warning: command line option ‘-Wbad-function-cast’ is valid for C/ObjC but not for C++
In file included from ../src/keypress.h:6:0,
                 from ../src/robotjs.cc:7:
../src/keycode.h:76:23: fatal error: X11/Xutil.h: No such file or directory
compilation terminated.
robotjs.target.mk:113: recipe for target 'Release/obj.target/robotjs/src/robotjs.o' failed
make: *** [Release/obj.target/robotjs/src/robotjs.o] Error 1
make: Leaving directory '[...]/IAMDinosaur/node_modules/robotjs/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.4.0-24-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd [...]/IAMDinosaur/node_modules/robotjs
gyp ERR! node -v v6.9.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm ERR! Linux 4.4.0-24-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.9
npm ERR! code ELIFECYCLE

npm ERR<EMAIL_ADDRESS>install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the robotjs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs robotjs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls robotjs
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     [...]/IAMDinosaur/npm-debug.log

I'm having the same issue in Ubuntu 16.04. I verified that I have C++ compiler and Python 2.7.1 installed and in path. Had Node 4, tried updating to 6.9.1, still didn't work.  NPM 3.10.9.
This is my stack running npm install:

><EMAIL_ADDRESS>install [...]/IAMDinosaur/node_modules/robotjs
> node-gyp rebuild

make: Entering directory '[...]/IAMDinosaur/node_modules/robotjs/build'
  CXX(target) Release/obj.target/robotjs/src/robotjs.o
cc1plus: warning: command line option ‘-Wbad-function-cast’ is valid for C/ObjC but not for C++
In file included from ../src/keypress.h:6:0,
                 from ../src/robotjs.cc:7:
../src/keycode.h:76:23: fatal error: X11/Xutil.h: No such file or directory
compilation terminated.
robotjs.target.mk:113: recipe for target 'Release/obj.target/robotjs/src/robotjs.o' failed
make: *** [Release/obj.target/robotjs/src/robotjs.o] Error 1
make: Leaving directory '[...]/IAMDinosaur/node_modules/robotjs/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.4.0-24-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd [...]/IAMDinosaur/node_modules/robotjs
gyp ERR! node -v v6.9.1
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok
npm ERR! Linux 4.4.0-24-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! node v6.9.1
npm ERR! npm  v3.10.9
npm ERR! code ELIFECYCLE

npm ERR<EMAIL_ADDRESS>install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the robotjs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs robotjs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls robotjs
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     [...]/IAMDinosaur/npm-debug.log

@IOAyman @yangzgnay Thanks it helped. Landed into the same error.

Guys, it seems it's a bug with the robotjs dependency. I updated line 23 of package.json to
    "robotjs": "^0.4.5",
and now npm install works.

@jotaporras
Still not work on my side after changing ^0.3.7 to ^0.4.5. The same error appears.

@yangzgnay Maybe take a look at  https://github.com/octalmage/robotjs/issues/17 ?
The people there speak about a couple of other dependencies that might be needed. Also consider switching to node 6

I have problem when npm install. I think it has something to do with Robotjs package.
I have Visual Studio, python2.7.

Can someone help me? Thanks.

Idk but i guess it only works on mac OS.

@jotaporras Works for me. Thanks


[BUG] High Level Rest Client Docs

What is the bug?
The docs say
 The OpenSearch Java high-level REST client lets you interact with your OpenSearch clusters and indexes through Java methods and data structures rather than HTTP methods and JSON.
But isn't the point of the rest client to use http methods with json?
Also i'm confused on this warning
The OpenSearch Java high-level REST client will be deprecated starting with OpenSearch version 3.0.0 and will be removed in a future release. We recommend switching to the [Java client](https://opensearch.org/docs/2.8/clients/java/) instead.
Does the java client have a way to make rest calls where you can pass in json, or is the ability to make rest calls to opensearch blocked after v3?
Will there still be a low level rest client exposed somewhere something similar to https://www.elastic.co/guide/en/elasticsearch/client/java-api-client/current/java-rest-low-usage-initialization.html ?

There is an open issue to allow for more generic requests, and json would work there: https://github.com/opensearch-project/opensearch-java/issues/377

Also, someone just reopened this: https://github.com/opensearch-project/opensearch-java/issues/525

Between these two approaches (generic requester vs json-to-object), which would be more useful to your use case? It would be great if you could comment on one or the other of those issues to add weight to the proposals.

Yah similar to mentioned in that
my teams normal workflow would be use kibana to create some query that could combine multiple filters aggregations etc
and then we have custom java code that allows for easily constructing that same json input
essentially we can either send the raw json or create the json request through code to any opensearch endpoint such as /search or even something like
POST /_sql?format=txt
{
"query": "SELECT * FROM schoollist WHERE start_date < '2000-01-01'"
}
essentially the current high level rest client allows for being able to make any request that we can construct in kibana which is very useful. I would like for whatever future library to give the same level of access to go from request in kibana to request in app with just the endpoint and json.


Adding Support for Redis Cluster Client

Summary of Changes

Adds support for using either redis.ClusterClient or redis.Client in the StoreManager
Adds a new -cluster flag to toggle whether to use the cluster client or whether to use the standard client

No idea why it says the tests fail, as I can see in Actions that they pass
Also, this branch is a bit of a mess with various merges, commits - please when merging/squashing, clean up the comments
I have updated the version to 0.6.1, so we can release once this is merged to main.

Looking for re-review: I updated a log line with the previous state to fulfill this request: https://github.com/massenz/go-statemachine/issues/45

Closing, had some weird issues from the rebase between upstream & current branch. Wasn't able to open a branch & normal PR on main repo so I made a fork originally.


Fix Night Mode Inactive Button Colour

…ht mode

Pre-Submission Checklist

[x] Your pull request targets the staging branch of FreeCodeCamp.
[x] Branch starts with either fix/, feature/, or translate/ (e.g. fix/signin-issue)
[x] You have only one commit (if not, squash them into one commit).
[x] All new and existing tests pass the command npm test. Use git commit --amend to amend any fixes.

Type of Change

[x] Small bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds new functionality)
[ ] Breaking change (fix or feature that would change existing functionality)
[ ] Add new translation (feature adding new translations)

Checklist:

[x] Tested changes locally.
[x] Closes currently open issue (replace XXXX with an issue no): Closes #12127

Description
I added a new class .btn-toggle and set the background-color to transparent in night mode. Buttons with the classes .btn-toggle and .active will get the darkgreen background.

@MarkusToe could you squash your commits? Thanks.

The OP seems to be away. I have addressed the comments, please check and review.

@BerkeleyTrue addressed.

Code LGTM

@raisedadead is this good to go?

Yes, I have fixed all changes, this has been sitting here for a merge, can you please check and merge?

Looks good @raisedadead but while this is open, what do you think about changing the btn-primary border-color to #777. The black border blends in almost completely with the dark gray background.
Here's the line:  https://github.com/freeCodeCamp/freeCodeCamp/blob/0a6024769bb7d7c0625309ab23f9d6a25c7a8064/client/less/main.less#L1132
Here's a screenshot:

@dhcodes this is ready for a review once more 😉 !

magnifique! 👍  Thanks for putting up with me @raisedadead. 🌮  💯


Implement GPU side probe data collection. [10]

The one remaining chatty interaction between host and device is the sampling of probe values, as performed by the cell_group::advance method.
The current approach demands that the cell group know the current time for each cell at each integration step, and then requests the transfer of a single voltage or current for each desired sample.
Proposal:

Estimate/benchmark overhead induced by the current sampling infrastructure, both without any active samplers, and with samplers operating at a fairly high (e.g. 0.1 ms) sample rate. This will provide both the justification for reimplementation and a base-line for the evaluation of the performance of a new implementation.

Document what constitutes the 'best effort' sampling behaviour that we can promise with device-side polling.

Implement a mechanism for setting up device-side sampling rates and buffers, and integration of same with the samplers within cell_group.

Quick (i.e. not thorough) overhead estimations.
Running the miniapp with three configurations on a P100 node with profiling and cuda enabled:

sampling: options -n 1000 -g 1000 -p 0.1 --sample-dt 0.1, which polls 800 values every 0.1 ms of simulation time.
none: options -n 1000 -g 1000, which performs no sampling.
disabled: options -n 1000 -g 1000, with the sample event queue code explicitly commented out.

Five runs were performed for each, minimum 'time stepping' times as reported by meters.json as follows:

configuration
min time stepping time (s)

disabled
6.116

none
6.207

sampling
12.669

Updated proposal:
While the ability to modify the state of the simulation or the way we sample values based on on-line sampled results is going to be required at some point, simulation steering is something we'll sketch out further down the track.
Consequently the proposal is as follows:

Cell descriptions are responsible for exposing what is probe-able. In the first instance, the cable1d_neuron will expose the existing probe specification data of cell gid, location (branch and proportional distance), and whether we test voltage or current. These 'probe addresses' will be wrapped up in an any wrapper at the recipe level.
Cell groups are still responsible for shipping data from probes to their attached samplers (sinks for probe data); how they get that information is up to them and any back-end specific implementation classes. A call to a sampler will pass it:

The gid of the cell the data comes from.
The index of the probe the data comes from.
One or more samples from that probe, each comprising a time and a fixed-size vector (1 for scalar data) of values.
The data can/should be blocked up for easy transfer and parsing.

Whether we bunch up a mindelay/2's worth of samples at a go, or send them one by one, we'll leave open — the interface should support both.
Before or between invocations of the model run() method, the calling code can change the associations between samplers and probes and the fixed rate at which samples are taken.
The implementation that gathers the data is not obliged to do anything more sophisticated than provide samples at a maximum rate of one per integration step and otherwise pull values out from probe locations at the rate corresponding to the fastest sampling rate of a sample on that probe.

This proposal doesn't support:

Querying probe values 'off-line', i.e., outside of the callback interface.
Changing the simulation state or parameters or sampling rates except between calls to the model run() method.

Any fancy asynchronous data gathering or i/o is the responsibility of the samplers. As the calls to them will be synchronous, they should make the effort to be as low latency as is practicable.


Add test coverage. Closes #6

Current coverage is 73.68% (diff: 0.00%)

No coverage report found for master at 40cad8a.

Powered by Codecov. Last update 40cad8a...496bfd2


atari_lib.py defining the neural network

Hello! I am very interesting in looking into the architecture of the DQNs. I opened up the file the Dopamine group kindly provided in Discrete_Domains --> atari_lib.py which defines the neural networks from the original Nature paper.
I was wondering why-- for each neural architecture -- two neural equivalent neural nets, one set as a definition and the other set as a class, are provided (see image below)? What would happen if one had just defined the class, for instance? I apologize if this is a very noob question, but thank you very much in advance for the insight!

According to the screenshots you have provided, those two are not related.
The first one (function definiton) uses the low-level API of Tensorflow to create the network, while the second uses Keras, a high-level, abstract API for Tensorflow.
The two are also equivalent, which one you use depends on how you want to implement the algorithm, namely the syntax and structure of the code.

Hi,
The first one is the legacy network function and will likely to be removed in the future. You should use the second method to define networks: i.e. tf.keras.Model.
Dopamine switch to the Keras API in September with this commit .


Aggregate overview mouseover could also show delays

A URL such as: https://orchestrator.mydomain.com/web/cluster/somecluster:3306?compact=true provides a good summary. If I'm in compact mode I don't see all the hosts but a bubble with the number of hosts replicating underneath a master or intermediate master.
If you mouse over that bubble then you get a list of hostnames, and mysql versions.
I'd like to also see the replication delay seen by orchestrator as that would allow me to have a quick overview of all the delays and saves me opening up a compact list.
This is convenient if you have several slaves replicating from a master.

Thank you for this suggestion -- will work on this

Fixed by https://github.com/github/orchestrator/pull/52


chore: project addition by whiteknight16

Related Issue
#1582
Description
Audio Book: Enter the pdf of book that you want to read and enjoy the audio book
Screenshots

@priyankarpal kindly add GSSOC and level labels Thankyou

@priyankarpal kindly add GSSOC and level labels Thankyou

previously we've added but currently, We are not providing any labels for project additions as they are not associated with solving any issues.

Okk thanks 👍


338 wrong log message for gcp zonal instance groups

I now realized that I need to clean up my local repo 😄


Duplicate "logic" in the modules scanner and realtime.

To "accept" a build to pass through the pipeline, some checking is done (for instance, if the build failed in Travis and if some of its jobs failed due to test failure). This type of checking is done in both scanner and realtime modules. The issue is that if we decide to change this checking, the code on both modules needs to be updated. Maybe we should encapsulate this checking somewhere, and call it from the two modules, so the checking will be implemented in only one place. Suggestions are more than welcome.

Maybe it could be seen as a coarse grained filter for jtravis. WDYT?

If you think that this fits well in jtravis, it seems a good idea.


FAD-2847: Generate static styled API documentation

This branch generates static API docs from files created in sparkpost-api-documentation-DEV#FAD-2847.  The README has details on the workflow.
NOTE: This branch also contains:

fixes for some Jekyll / Liquid base URL config variable usage to allow deployment as a top-level site (e.g. developers.sparkpost.com) or a sub-site (e.g. bob.github.io/devhubstaging/)
A top nav change to collapse into hamburger before the left and right nav items wrap over 2 lines

Build is failing, otherwise LGTM.

The failing build is a broken link in 2 API docs.  Interestingly its also broken in the published Apiary docs but we don't link check those before publication.


[improve][broker] Add topic_load_failed metric

PIP: https://github.com/apache/pulsar/issues/18979
Motivation
Add topic_load_failed metric
Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

[ ] Dependencies (add or upgrade a dependency)
[ ] The public API
[ ] The schema
[ ] The default values of configurations
[ ] The threading model
[ ] The binary protocol
[ ] The REST endpoints
[ ] The admin CLI options
[x] The metrics
[ ] Anything that affects deployment

Documentation

[ ] doc
[x] doc-required
[ ] doc-not-needed
[ ] doc-complete

Matching PR in forked repository
PR in forked repository:  https://github.com/tjiuming/pulsar/pull/20

Tests to be completed

@tjiuming You should associate issue with pr. close #18963 #18979

@tjiuming You should associate issue with pr. Closes #18963 #18979 And some checks were not successful

I'll close them after the PR merged

@tjiuming You should associate issue with pr. Closes #18963 #18979 And some checks were not successful

I'll close them after the PR merged

GitHub provides this function. After you associate the issue with pr, closing the pr will automatically close the issue.
refer to https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue

Codecov Report

Merging #19236 (4d1fab7) into master (5e6e6ce) will decrease coverage by 36.07%.
The diff coverage is 85.71%.

@@              Coverage Diff              @@
##             master   #19236       +/-   ##
=============================================
- Coverage     72.95%   36.89%   -36.07%
+ Complexity    31914    12091    -19823
=============================================
  Files          1867     1690      -177
  Lines        138485   128927     -9558
  Branches      15202    14031     -1171
=============================================
- Hits         101037    47565    -53472
- Misses        29438    75112    +45674
+ Partials       8010     6250     -1760

Flag
Coverage Δ

inttests
24.20% <85.71%> (+0.08%)
:arrow_up:

systests
24.96% <42.85%> (-0.07%)
:arrow_down:

unittests
32.02% <42.85%> (-40.21%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...rg/apache/pulsar/broker/service/BrokerService.java
56.78% <66.66%> (-23.87%)
:arrow_down:

.../org/apache/pulsar/broker/service/PulsarStats.java
82.57% <100.00%> (-4.35%)
:arrow_down:

.../pulsar/broker/stats/BrokerOperabilityMetrics.java
100.00% <100.00%> (ø)

... and 1431 files with indirect coverage changes

/pulsarbot run-failure-checks

I wonder if this caused #20492 ?

@tjiuming this PR is labeled with doc-required. Does it need to add the new metric to https://pulsar.apache.org/docs/next/reference-metrics/#topic-metrics?


noting response?

not available？what's wrong ?{"data":[""],"is_generating":false,"duration":0.44491028785705566,"average_duration":0.44491028785705566}

Notion just update it's API, I am fixing it.

@lemon-simple The Python SDK is working now. Give it a try!


False positive for FallThrough patterm: Try harder to detect fall through comment

This comment wasn't detected and FallThrough was flagged:
case ByteOps.INVOKEINTERFACE: {
                    /*
                     * Convert the interface method ref into a normal
                     * method ref.
                     */
                    cst = ((CstInterfaceMethodRef) cst).toMethodRef();
                    // and fall through...
                }

The fix is:
diff --git a/third-party/java/dx/src/com/android/dx/cf/code/Simulator.java b/third-party/java/dx/src/com/android/dx/cf/code/Simulator.java
index 55a9ac8..6798efd 100644
--- a/third-party/java/dx/src/com/android/dx/cf/code/Simulator.java
+++ b/third-party/java/dx/src/com/android/dx/cf/code/Simulator.java
@@ -655,6 +655,7 @@ public class Simulator {
                     cst = ((CstInterfaceMethodRef) cst).toMethodRef();
                     // and fall through...
                 }
+                // and fall through...
                 case ByteOps.INVOKEVIRTUAL:
                 case ByteOps.INVOKESPECIAL: {
                     /*

That was fixed by bee0ce7f3b8989ee7883c0db152cc0491444a1a9.

Thanks, that was fast ;-) I'm seeing it with new and shiny 2.0.17, so havn't thought to check the last commits.


bootstrap-datetimepicker issue

Laravel Version: 5.5
PHP Version:7.2
Laravel-admin: last version

Description:
How can i change position of time or date picker ?
i know it is solved by widgetPositioning
(Takes an object parameter that can contain two keys vertical and horizontal each having a value of 'auto', 'top', 'bottom' for vertical and 'auto', 'left', 'right' for horizontal which defines where the dropdown with the widget will appear relative to the input element the component is attached to.)
but I do not know how to do it.

answer is 👍
$this->script = "$('{$this->getElementClassSelector()}').parent().datetimepicker({           format: 'ss:mm:HH',           locale : 'en',           allowInputToggle:true,           widgetPositioning: {             horizontal: 'right',             vertical: 'top'           }         });";
in the Date or Time render function

Laravel Version: 5.5
PHP Version:7.2
Laravel-admin: last version

Description:
How can i change position of time or date picker ?
i know it is solved by widgetPositioning
(Takes an object parameter that can contain two keys vertical and horizontal each having a value of 'auto', 'top', 'bottom' for vertical and 'auto', 'left', 'right' for horizontal which defines where the dropdown with the widget will appear relative to the input element the component is attached to.)
but I do not know how to do it.
answer is 👍
$this->script = "$('{$this->getElementClassSelector()}').parent().datetimepicker({ format: 'ss:mm:HH', locale : 'en', allowInputToggle:true, widgetPositioning: { horizontal: 'right', vertical: 'top' } });";

in the Date or Time render function

Hi, how did you managed to extend Encore\Admin\Form\Field\Date class?


Change TransformData to use global scale instead of local scale

With #86 there exists an extension method on Transform to set the scale of a transform in world scale, i.e. global scale.
Since all the other properties and fields in TransformData use global space except for the scale we should change the scale to use that, too.
This change needs to be done carefully to prevent this from breaking any functionality.

Completed with https://github.com/ExtendRealityLtd/VRTK.Unity.Core/commit/65e8af9b681f9af6a6e62a3a6b203bb8fa0f4d40


chore: update repo by service bot

This is a routine update from cc-service-bot based on the service.yml in your repo. This PR
should be approved and merged as soon as CI passes.

CHANGELOG
FILE NAME - CHANGED BY - COMMIT MESSAGE
Makefile - framework - chore: update repo Makefile cc-mk-include v0.1126.0
cc-mk-include/compare/v0.1125.0...v0.1126.0


HTMLText doesn't honour the shortcodes options

Affected Version
SS 4.4, but probably all the other ones as well
Description
HTMLText supports a shortcode options, but doesn't honour it. I think that's because the the model.yml injector settings take precedence over the $db settings.
https://github.com/silverstripe/silverstripe-framework/blob/ed7aaff7da61eefa172fe213ec25e35d2568bc20/_config/model.yml#L27-L30
Steps to Reproduce
In a DataObject db definition, add an HTML field like this:
<?php
use SilverStripe\ORM\FieldType\DBHTMLText;
use SilverStripe\ORM\DataObject;
use SilverStripe\Forms\HTMLEditor\HTMLEditorField;

class Dummy extends DataObject
{
    private static $db = [
        'NoShortCode' => 'HTMLText(array("shortcodes"=>false))'
    ];

    public function getCMSFields()
    {
        $fields =  parent::getCMSFields();
        $fields->addFieldToTab(
            'Root.Main',
            new HTMLEditorField('NoShortCode', 'NoShortCode', $this->NoShortCode)
        );
        return $fields;
    }
}

Edit the content of NoShortCode via a WYSIWYG and add an image.
Get the content of NoShortCode rendred in a template.
Expected results: The short code should be outputted as-is in plain text.
Actual results: The short code is converted to an image.
If you define your DB field using the FQNS of HTMLText, it works:
private static $db = [
     'NoShortCode' => DBHTMLText::class . '(array("shortcodes"=>false))'
];

Does defining your property with HTMLFragment achieve the same effect?
private static $db = [
     'NoShortCode' => 'HTMLFragment'
];

If so, it may be easier to deprecate the array("shortcodes"=>false) approach

We use the same gimmick for HTMLVarchar, which default to shortcode => false. Only because, it's not explicitly define in the Injector YML, so 'NoShortCode' => 'HTMLVarchar(255,array("shortcodes"=>true))' works just fine.
I don't think it's a big issue because DBHTMLText::class works just fine and provide a suitable workaround ... and because it's pretty unusual to want to disable shortcodes in a HTMLText field.

This is also a problem at the Injector level; When providing constructor arguments, these can be provided not only at the string level (string arguments in the injector specifier, e.g. HTMLText(['shortcodes' => true]) but also provided by injector directly.  E.g. Injector::inst()->get('HTMLText', ['shortcodes' => true]).
Injector resolves this by joining both arrays together. You would end up with the shortcodes argument being passed as the second and third argument (after the field $name).
The real fix here is to safely document and capture incorrect arguments being passed into HTMLText (or other field types), and to encourage / document the use of HTMLFragment where user arguments are necessary.

Just found a related issue. HTMLVarchar misses the whitelist functionality that HTMLText has, even though it's mentioned in the docblock of the setOptions method.
The problem seems to be that the HTML fields don't inherit from the same ancestor where this kind of functionality would reside.

@michalkleiner That's sounds like a distinct problem. Would you mind raising it a separate issue?

Extracted into #9104


React Router v4 reloads pages with webpack dev server

Hey Guys, I followed your example from 'Full stack react' book for using React Router v4, however I always have page reload when changing pages. Do I need to setup .htaccess file in src folder for it to work, or should I put my project in server directory (MAMP).
This is my route file:
import React from 'react';
import {
  BrowserRouter as Router,
  Route
} from 'react-router-dom';

import HomePage from './views/Home/homePage';
import TestPage from './views/Test/testpage';

const Routes = (props) => {
  return(
    <Router>
      <div className="app">
        <Route
          path="/"
          exact
          render={(...renderProps) => (
            <HomePage {...renderProps} {...props} />
          )}
        />
        <Route
          path="/test"
          render={(...renderProps) => (
            <TestPage {...renderProps} {...props} />
          )}
        />
      </div>

    </Router>
  );
};

export default Routes;

Hi, this is an issue tracker for Create React App specifically, and not a support forum for everything related to React. I encourage you to seek help in the community resources (such as Reactiflux chat).
That said, you probably are using <a> tags instead of React Router <Link> components, so React Router doesn’t “know” about your links and doesn’t prevent reloads. Please refer to React Router website for a complete example that works.


Clarification regarding the callback ApprovalNotification

we have the forwarding ApprovalNotification (to broadcast approval) which is marked as deprecated and will be removed in version 3.0.0.
In the version 2.1.0 of RegistryOffice, there is an ApprovingApplicationCausesConnectingWith sequence.
In this ApprovingApplicationCausesConnectingWith forwardings ,
the new approved application will be connected to ALT , OKM , EATL , AA , OL applications in a sequence.
Clarification required :
Kindly please clarify ,

whether this "ApprovalNotification" forwarding will be performed in parallel to the ApprovingApplicationCausesConnectingWith forwarding ?
or we will not perform this forwarding ?

It makes no sense to mark forwarding ApprovalNotification as deprecated.
In general, the former subscription based concept has been turned into a fixed process concept.
The fixed process is covering the known applications of the TAC.
Two options:

The forwarding ApprovalNotification could be deleted. In regard of backward compatibility: Incoming requests at RO://v1/notify-approvals would be ignored, which doesn't matter, because all existing applications are covered by the fixed process.
The forwarding ApprovalNotification could be left as is, because there could be future applications that require such notification, but are not covered by the fixed process.

Deleting forwarding ApprovalNotification means also future TAC applications need to be covered by the fixed process.
This would mean: No future TAC application without changing the RegistryOffice.
That would be the end of modularity.
Alternative proposal: Putting the broadcast to the end of the fixed process.
Proposed changes:

Removing all notes that are indicating live cycle state deprecated of forwarding ApprovalNotification in

ForwardingList
CONFIGfile
OAS

Search and Replace of UUID from "ro-2-1-0-op-fc-is-007" to "ro-2-1-0-op-fc-is-040" in all files.
Adding the forwarding ApprovalNotification (broadcast to all subscribers) behind forwarding ApprovingApplicationCausesConnectingWith.Ol in is010_regardApprovalStatusCausesSequence.plantuml
Moving forwarding ApprovalNotification from behind forwarding DeregistrationNotification to behind forwarding ApprovingApplicationCausesConnectingWith.Ol in the ForwardingList
Removing all applications that are covered by the fixed process from the forwarding ApprovalNotification in the ForwardingList
Moving forwarding ApprovalNotification from behind forwarding DeregistrationNotification to behind forwarding ApprovingApplicationCausesConnectingWith.Ol in the CONFIGfile
Removing all FcPorts that are connecting applications that are covered by the fixed process from the forwarding ApprovalNotification in the CONFIGfile
Moving callback ApprovalNotification from beneath RO://v1/notify-approvals to behind ApprovingApplicationCausesConnectingWith.Ol beneath RO://v1/regard-updated-approval-status

Thanks for the detailed explanation.
As discussed , "Alternative proposal: Putting the broadcast to the end of the fixed process." would be fine as it supports future TinyApplicationController applications to receive notifications about the new approved applications.

Changed as proposed in comment above.


weed3.06  webdav服务导致集群异常且7333服务无法对外提供服务

weed
version 30GB 3.06 2f846777bbceea307771e79d4452e071b0bd5a51 linux amd64
错误日志如下：
I0607 17:21:00 31616 filer_grpc_server_sub_meta.go:33]  mount@<IP_ADDRESS>:29475 starts to subscribe / from 2022-0
2022/06/09 11:40:45 http: Accept error: accept tcp [::]:7333: accept4: too many open files; retrying in 5ms
2022/06/09 11:40:45 http: Accept error: accept tcp [::]:7333: accept4: too many open files; retrying in 10ms
2022/06/09 11:40:45 http: Accept error: accept tcp [::]:7333: accept4: too many open files; retrying in 20ms
2022/06/09 11:40:45 http: Accept error: accept tcp [::]:7333: accept4: too many open files; retrying in 40ms
I0609 11:40:45 31618 filechunk_manifest.go:147] read http://<IP_ADDRESS>:8080/9,0799b1f94e1448 failed, err: Get "ht
I0609 11:40:45 31618 filechunk_manifest.go:153] retry reading in 1s
I0609 11:40:45 31618 filechunk_manifest.go:147] read http://<IP_ADDRESS>:8080/10,0799d1b1b69446 failed, err: Get "h
I0609 11:40:45 31618 filechunk_manifest.go:153] retry reading in 1s
2022/06/09 11:40:45 http: Accept error: accept tcp [::]:7333: accept4: too many open files; retrying in 80ms
2022/06/09 11:40:45 http: Accept error: accept tcp [::]:7333: accept4: too many open files; retrying in 160ms
2022/06/09 11:40:45 http: Accept error: accept tcp [::]:7333: accept4: too many open files; retrying in 320ms
2022/06/09 11:40:46 http: Accept error: accept tcp [::]:7333: accept4: too many open files; retrying in 640ms

You need increase system limit open files, see ulimit -a

ulimit -a
core file size (blocks)         (-c) 0
data seg size (kb)              (-d) unlimited
scheduling priority             (-e) 0
file size (blocks)              (-f) unlimited
pending signals                 (-i) 96121
max locked memory (kb)          (-l) 64
max memory size (kb)            (-m) unlimited
open files                      (-n) 1024
POSIX message queues (bytes)    (-q) 819200
real-time priority              (-r) 0
stack size (kb)                 (-s) 8192
cpu time (seconds)              (-t) unlimited
max user processes              (-u) 96121
virtual memory (kb)             (-v) unlimited
file locks                      (-x) unlimited

open files (-n) 1024
this is too small.

ulimit -a
core file size (blocks)         (-c) 0
data seg size (kb)              (-d) unlimited
scheduling priority             (-e) 0
file size (blocks)              (-f) unlimited
pending signals                 (-i) 96121
max locked memory (kb)          (-l) 64
max memory size (kb)            (-m) unlimited
open files                      (-n) 1048576
now   increase system limit open files to 1048576 ,
To be observed
thank  @chrislusf  @kmlebedev


Format error in index.ts file

The _value property is declard as a number :
private _value: number;
But then, it is defined using the context, that can be null :
context.parameters.sliderValue.raw;
As a result, an error is displayed  "number | null" is not assignable to type number

@Nicokirr Thanks for the feedback. You can use the following line of code to get rid of the issue.
this._value = context.parameters.sliderValue.raw ? context.parameters.sliderValue.raw : 0;


Tegde panics on connect

Describe the bug
Trying to connect using the version 0.5.2 (build from source), I got a panic.
$ sudo tedge connect c8y
Checking if system V is available.

Checking if configuration for requested bridge already exists.

Validating the bridge certificates.

Creating the device in Cumulocity cloud.

thread 'main' panicked at 'index out of bounds: the len is 0 but the index is 0', crates/core/tedge/src/cli/connect/c8y_direct_connection.rs:128:23
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted

To Reproduce
I updated a working thin-edge device actually connected to Cumulocity.
After a disconnect / reconnect with the new version I got this panic.
Expected behavior
An error or a working connection.
Screenshots
Environment (please complete the following information):
$ tedge --version
tedge 0.5.2
$ sudo tedge config list
device.id=demo-device-008
device.key.path=/etc/tedge/device-certs/demo-device-008.key
device.cert.path=/etc/tedge/device-certs/demo-device-008.pem
c8y.url=didier.latest.stage.c8y.io
c8y.root.cert.path=/etc/ssl/certs
az.root.cert.path=/etc/ssl/certs
az.mapper.timestamp=true
mqtt.port=1883
tmp.path=/tmp

Additional context
The error is due to the private key. What are the constraints on these keys?
$ ls -l /etc/tedge/device-certs/demo-device-008.key
-r-------- 1 mosquitto mosquitto 1675 Dec 17 16:04 /etc/tedge/device-certs/demo-device-008.key
$ sudo cat /etc/tedge/device-certs/demo-device-008.key/device-certs/demo-device-008.key
-----BEGIN RSA PRIVATE KEY-----
...
-----END RSA PRIVATE KEY-----

When I run "pysys.py run valid_device_id" I'm getting the error below.
Could this be related?
09:30:19 INFO  Contents of c8y_connect.err:
09:30:19 INFO    ERROR: Io(Custom { kind: InvalidData, error: AlertReceived(CertificateUnknown) })

I think both are different. One which you have mentioned is related to the certificate sync after upload. The one Didier mentioned is related to the rsa certificate parse. By default, thin-edge uses the self-signed certificate, which is different.

Oh yes, indeed a different issue. I solved my one again by waiting 1s until Cumulocity processed the certificate :)


behavior not expected in a list

I need each selected item to be added to a list, but when I remove the item from the list it keeps the deleted item.
follow the example: https://github.com/danieldocki/vue-select-by-list

I opened your example, launched it at my computer and understood what is wrong in example.
I can't even imagine what's wrong with my code that causes this behavior.
I tried to change your code in different ways and it is unlikely you have a problem.
It's strange, but I will try to solve  it soon.

It seems to be related to the key prop for ListItem component inside App.vue. It must be completely unique (if we count the deleted items). But with unique key another strange behavior arises.

I tried this unique key and also did not, I also do not know how to explain this kind of behavior. 😞

Well, I spent 5 hours on your project. And the problem was not in my library, but in your code.
The solution was quite simple, but I had to go through your code and still watch how the code of my library runs.
The problem was 3 things:

bad key
you did not specify v-model or :value in my select component here.
you mutated the item prop, which is a bad practice and this value was not specified in the select, besides, you created a new object and did not transfer the original one. https://github.com/danieldocki/vue-select-by-list/blob/master/src/components/ListItem.vue#L41

My PR:
https://github.com/danieldocki/vue-select-by-list/pull/1

OMG, I'm ashamed. I'll take a look at what you did, but thank you, in some event I'll pay for you some beers, ok?

@iliyaZelenko
I made some minor modifications, now the method removeItem works by index, because the same item may be duplicated in the list. https://github.com/danieldocki/vue-select-by-list/blob/9307672fb39ff5cf8abf428aa22c1760395fbea7/src/App.vue#L49
Once again, thank you very much for your help.

@danieldocki I thought that the problem was in my library and did not want it to be my fault for something not to work. I really spent a lot of time to figure out what the problem was, at first I thought that the problem was in my library and dug in the wrong direction.
Your donation will be very helpful and motivates me to make a greater contribution to this project.
I sent you messages to your mail.


Add goreleaser file

@usamaahmadkhan Image is available for testing. docker pull stakater/configure-alertmanager-operator:SNAPSHOT-PR-3-0120af12


MockBukkit services are overriden with Paper ones when using PaperWeight

Is there an existing issue for this?

[X] I have searched the existing issues

Are you using the latest version of MockBukkit?

[X] I am using the latest version of MockBukkit.

Minecraft Version
1.19
Describe the bug
When using Paperweight, MockBukkit's services get overridden with Paper ones, causing tests to fail.
Reproducible Test
build.gradle:
plugins {
    id 'java'
    id 'io.papermc.paperweight.userdev' version "1.3.8"
}

dependencies {
    paperweightDevelopmentBundle('io.papermc.paper:dev-bundle:1.19.1-R0.1-SNAPSHOT')
    // MockBukkit and JUnit
}

settings.gradle:
pluginManagement {
    repositories {
        gradlePluginPortal()
        maven { url = 'https://papermc.io/repo/repository/maven-public/' }
    }
}

Test:
@Test
void test() {
    LegacyComponentSerializer.legacySection(); // Fails
}

Anything else?
No response

There are several workarounds depending on the project:

If NMS classes are not needed for the tests to run, then excluding the paper-server module is the way to go:

configurations.testImplementation {
    exclude(group = "io.papermc.paper", module = "paper-server")
}

If the tests need the paper-server module, then you have to transform the dependency in order to exclude the /META-INF/services/net.kyori.adventure.text.serializer.legacy.LegacyComponentSerializer$Provider file. This is feasible, but not very handy.

Now, on the MockBukkit side, it might be better to use reflection instead of Java SPI to set the serializer only if it is not already provided by a service.

I am also trying to run MockBukkit with PaperMC paperweight and I get the same Error, but I need the NMS classes.
How could I solve the problem?

I have no clue how this could be fixed on the MockBukkit end, I think it has to be done in the actuall buildscript. We could make an official guide on how to only use paperweight on compile time, and on test runtime? This should be quite easy in gradle, as you should just be able to specify paperweight as this:
dependencies{
   compileOnly(paperweight.paperDevBundle("1.21-R0.1-SNAPSHOT"))
   testImplementation("com.github.seeseemelk:MockBukkit-vn.m:<version>")
}


storage: Add GIT_CONFIG_NOGLOBAL=true to git env.

See https://github.com/opentable/sous/pull/256#pullrequestreview-13308803

Current coverage is 57.43% (diff: 100%)

Merging #266 into master will not change coverage

@@             master       #266   diff @@
==========================================
  Files           139        139
  Lines          7191       7191
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
  Hits           4130       4130
  Misses         2697       2697
  Partials        364        364

Powered by Codecov. Last update 13c94a3...0ceb044


Some traces generated via istio-proxy are Missing

Is this the right place to submit this?

[X] This is not a security vulnerability or a crashing bug
[X] This is not a question about how to use Istio

Bug Description
Dear Experts,
We enable istio's tracing function with 100% sampling rate. We configured the tracing endpoints to opentelemetry collector's Zipkin receiver.
In the meanwhile, some of our application also generate traces with Opentelemetry SDK and report traces directly to Opentelemetry collector while it otlp receiver.
The strangest thing:
Traces generated by above application(which supports opentelemetry sdk), or the istio-proxy side-car that run along with those application, can be found in our trace backend(which is now Tempo).
However, if the application doesn't generate traces itself(not using opentelemetry sdk). I expect at least I can find the traces generated via istio-proxy. But I cannot! Which I am not sure where is the root cause.
If check the istio-proxy's accesslog, there is traceID logged(I configured the accesslog to log something like traceID=%REQ(x-b3-traceid)% )
I am wondering if there is any way to check where istio-proxy has reported the traces to the configured endpoints? So that I can make sure where is the root cause?
Version
Istio:
client version: 1.21.0
control plane version: 1.20.3
data plane version: 1.20.3

Kubernetes:
client version: 1.21.0
control plane version: 1.20.3
data plane version: 1.20.3

Additional Information
No response

By default, Istio use 1% sampling rate, is that the root cause?
you can check it by running:
istioctl pc l -n <pod_namespace> <pod_name> --port <the service port you request> -oyaml | grep randomSampling -A1

@zirain Thanks for the reply. I just checked and it is 100%.

I found where is the cause:
I put below parameters inside my istiooperator resource to enable the metrics rotation. And this will cause the traces missing.
values:
  pilot:
    enabled: true
    env:
      METRIC_GRACEFUL_DELETION_INTERVAL: 5m
      METRIC_ROTATION_INTERVAL: 10m

After I removed this block.  I can see all my traces.
Do you know why could this happen?
Thank you for your help.
Below is my full istiooperator resource:
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
  namespace: istio-system
  name: example-istiocontrolplane
spec:
  profile: demo
  values:
    pilot:
      enabled: true
      env:
        METRIC_GRACEFUL_DELETION_INTERVAL: 5m
        METRIC_ROTATION_INTERVAL: 10m
  meshConfig:
    enableTracing: true
    accessLogFile: /dev/stdout
    # customized need traceID=%REQ(x-b3-traceid)%
    accessLogFormat: |
      [%START_TIME%] "%REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)% %PROTOCOL%" %RESPONSE_CODE% %RESPONSE_FLAGS% %RESPONSE_CODE_DETAILS% %CONNECTION_TERMINATION_DETAILS% "%UPSTREAM_TRANSPORT_FAILURE_REASON%" %BYTES_RECEIVED% %BYTES_SENT% %DURATION% %RESP(X-ENVOY-UPSTREAM-SERVICE-TIME)% "%REQ(X-FORWARDED-FOR)%" "%REQ(USER-AGENT)%" "%REQ(X-REQUEST-ID)%" "%REQ(:AUTHORITY)%" "%UPSTREAM_HOST%" %UPSTREAM_CLUSTER% %UPSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_REMOTE_ADDRESS% %REQUESTED_SERVER_NAME% %ROUTE_NAME% traceID=%REQ(x-b3-traceid)% traceIDParent=%REQ(traceparent)% requestSize=%BYTES_RECEIVED% responseSize=%BYTES_SENT% requestPath=%REQ(X-ENVOY-ORIGINAL-PATH?:PATH)%
    defaultConfig:
      holdApplicationUntilProxyStarts: true
      tracing:
        zipkin:
          address: "otel-collector.monitoring:9411"

this means 1% sample rate.
I don't think METRIC_GRACEFUL_DELETION_INTERVAL or METRIC_GRACEFUL_DELETION_INTERVAL will affect tracing, it only working for istio.stats filter.

@zirain It is strange. I am using demo profile, it is by default 100%? right?
Is my IstioOperator resource file valid below?
Maybe the block I added about "METRIC_GRACEFUL_DELETION_INTERVAL" and "METRIC_ROTATION_INTERVAL" , overwrite some demo profiles' default configs?
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
  namespace: istio-system
  name: example-istiocontrolplane
spec:
  profile: demo
  values:
    pilot:
      enabled: true
      env:
        METRIC_GRACEFUL_DELETION_INTERVAL: 5m
        METRIC_ROTATION_INTERVAL: 10m
  meshConfig:
    enableTracing: true
    accessLogFile: /dev/stdout
    # customized need traceID=%REQ(x-b3-traceid)%
    accessLogFormat: |
      [%START_TIME%] "%REQ(:METHOD)% %REQ(X-ENVOY-ORIGINAL-PATH?:PATH)% %PROTOCOL%" %RESPONSE_CODE% %RESPONSE_FLAGS% %RESPONSE_CODE_DETAILS% %CONNECTION_TERMINATION_DETAILS% "%UPSTREAM_TRANSPORT_FAILURE_REASON%" %BYTES_RECEIVED% %BYTES_SENT% %DURATION% %RESP(X-ENVOY-UPSTREAM-SERVICE-TIME)% "%REQ(X-FORWARDED-FOR)%" "%REQ(USER-AGENT)%" "%REQ(X-REQUEST-ID)%" "%REQ(:AUTHORITY)%" "%UPSTREAM_HOST%" %UPSTREAM_CLUSTER% %UPSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_LOCAL_ADDRESS% %DOWNSTREAM_REMOTE_ADDRESS% %REQUESTED_SERVER_NAME% %ROUTE_NAME% traceID=%REQ(x-b3-traceid)% traceIDParent=%REQ(traceparent)% requestSize=%BYTES_RECEIVED% responseSize=%BYTES_SENT% requestPath=%REQ(X-ENVOY-ORIGINAL-PATH?:PATH)%
    defaultConfig:
      holdApplicationUntilProxyStarts: true
      tracing:
        zipkin:
          address: "otel-collector.monitoring:9411"

The demo profile uses a 100% sample rate by default, but your screenshot shows me at 1%.
Perhaps running istioctl bug-report to dump a report will help with debugging.

https://github.com/istio/istio/issues/52047#issuecomment-2227717006


⚠ Bofrost.com has degraded performance

In a02ec2a, Bofrost.com (https://www.bofrost.com) experienced degraded performance:

HTTP code: 200
Response time: 3942 ms

Resolved: Bofrost.com performance has improved in f494a67 after 6 minutes.


[Al hosts] Add community call agenda for July 13 2020

Adds the agenda for July 13, 2020 community call.

Docs Build status updates of commit f559836:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/overview/office-add-ins-community-call.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Resolve kendo-ui-core module using require.resolve

NPM v3 uses a flattened node_modules folder structure. This fix will
work for both old and new versions of NPM by using require.resolve
instead of using a hardcoded ../node_modules/ path.
It also makes no difference to use "/" in paths as .join() will convert
them to the OS-specific separator.

Note: I had to use kendo-ui-core/package.json for resolution because kendo-ui-core doesn't have a "main" instruction in its package.json file.

Please accept this!
 This is becoming increasingly inconvenient as I upgrade to NPM@3

Hi. Sorry for the very long delay. Somehow I missed notices about this PR.
Even if I don't even use this project myself, I am willing to accept your PR. However, I think some slight modifications are necessary. You hardcoded some UNIX-style slashes even though it's surrounded by path.join(). Could you change that detail, please?

Hi @jampy, according to Node's own documentation, the two methods I'm using path.resolve() and path.join() already normalize the path separators. Most Node projects always use / with the path module for this very reason. The point is proven because our development environment is Windows and I wrote this patch in a Windows environment
That said, it's your project and I can switch the separators to use Windows, but I wouldn't recommend it.

Docs say:

The path.join() method join all given path segments together using the platform specific separator as a delimiter, then normalizes the resulting path.

It works in Windows for other reasons but that's not caused by Node being smart.
I see no point in mixing path.join() with hardcoded delimiters, so... 67df8846f1cc745e69d3db17fcb9d204f298b243

Thanks for the merge! And just to ease your concern, here's the test I ran before I wrote my comment.

I see. Good to know, thanks.


Add conversation starters

@krschacht
The layout has been implemented, but the conversation starters aren't functional yet.
These two points remain open at this stage:
(1) Submission of conversation starter messages
(2) We'll want to make the conversation starters dynamic and random. Right now I have just hardcoded four of them. I think we wanna define at least a dozen or so conversation starters of which we choose 4 random ones each time a new conversation is initiated. I'll leave it up to you whether we wanna cover this within the scope of 0.6.
Would you have some guidance/suggested path for implementation for (1) and some thoughts on (2)?
Thanks!

@florianfelsing On (1) you should be able to submit to the same endpoint that the current "composer" form submits to. Search for button_to in the codebase and you'll see an example of a one-liner that does a non-get to an endpoint. I bet you can include some params as part of that and change the method to POST/PUT. Worse case you'll need to use a form tag and construct a whole form with hidden elements, but I bet the button_to should work.
One thing I'm still figuring out is that it used to be: method: :update (or whatever action) but I saw mention that it changed to turbo_method: :update since the old method was for UJS but now we're using Turbo. However, in our codebase it looks like we're still using the old method so I can't quite explain that. I'm still figuring out the nuances of this.

On (2) we might as well do that one now. It should be as simple as an array
in the controller that you just  shuffle and grab the first four. Something
like that.
On Sat, Mar 9, 2024 at 12:32 PM Florian Felsing @.***>
wrote:

@krschacht https://github.com/krschacht
The layout has been implemented, but the conversation starters aren't
functional yet.
These two points remain open at this stage:
(1) Submission of conversation starter messages
(2) We'll want to make the conversation starters dynamic and random. Right
now I have just hardcoded four of them. I think we wanna define at least a
dozen or so conversation starters of which we choose 4 random ones each
time a new conversation is initiated. I'll leave it up to you whether we
wanna cover this within the scope of 0.6.
Would you have some guidance/suggested path for implementation for (1) and
some thoughts on (2)?
Thanks!
—
Reply to this email directly, view it on GitHub
https://github.com/the-dot-bot/hostedgpt/pull/185#issuecomment-1986943280,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAIR5MWEXBMLJGMPJZS3YDYXNISRAVCNFSM6AAAAABEOJNCA6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBWHE2DGMRYGA
.
You are receiving this because you were mentioned.Message ID:
@.***>

Ready for review @krschacht!

@florianfelsing some small comments in code organization but core behavior and styling looks great. Oh, but one thing I didn’t try was how this looks on mobile portrait. Did you consider that responsive case?

Thanks for the feedback @krschacht - I've addressed these issues now.
As for mobile portrait view, we are not copying ChatGPT there to 100%, but I think that our version looks better. I would re-assess in any case, though, once I've added our logo above the welcome message.
For your reference:

@florianfelsing nice work! And agreed, what you did for mobile looks great and better than ChatGPT.


Added BFS in java

Added Breadth First Search #65

Added Floyd Warshall #65

Added Djikstra #65

Thanks for the PR :) Merged.


Is the project still in active development

Hi.
Just wanted to  confirm that the project is still in active developement. Last relase was in April 2020. The kibana plugin last docker image  uploaded 2 or 3 years ago. Thanks

not active
look
Please don't let this die. ElastAlert usecase is very strong.
Should someone else maintain this?
Status of the elastalert project

not active
look
Please don't let this die. ElastAlert usecase is very strong.
Should someone else maintain this?
Status of the elastalert project

The kibana plugin last docker image uploaded 2 or 3 years ago

kibana plugin project? .. It's not this repository and I think the company is different. That has already been developed.

The kibana plugin last docker image uploaded 2 or 3 years ago

kibana plugin project? .. It's not this repository and I think the company is different. That has already been developed.

I answered. Please close

I answered. Please close

ping

ping

Python
〇 or ✖
remark

3.6
〇

3.7
〇

3.8
〇

3.9
✖
Change Library blist to sortedcontainers

Alerts

Alerts
〇 or ✖
remark

Command
〇

Email
△
There is a bug(gmail, Office365 etc)

Jira
△
There is a bug(Custom Filed Support etc)

OpsGenie
？

AWS SNS
△
It doesn't work due to a bug. There is a pull request

MS Teams
〇

Slack
〇

Mattermost
〇

Telegram
〇

GoogleChat
？

PagerDuty
？

PagerTree
✖
It doesn't work due to a bug. There is a pull request

Exotel
？

Twilio
〇

VictorOps
〇

Gitter
〇

ServiceNow
？

Debug
〇

Stomp
✖
It doesn't work due to a bug. There is a pull request

Alerta
？

HTTP POST
？

Line Notify
✖
It doesn't work due to a bug. There is a pull request

TheHive
？

Zabbix
✖
It doesn't work due to a bug. There is a pull request

The kibana plugin last docker image uploaded 2 or 3 years ago. Thanks

Another project. The place to ask is different. It seems that the development of ElastAlert Server and elastalert-kibana-plugin has been completed.
https://github.com/bitsensor/elastalert
https://github.com/bitsensor/elastalert-kibana-plugin

Docker image name
tag
ElastAlert
Elasticsearch 7 Support
Remarks

bitsensor/elastalert
2.0.1
0.1.39
×

bitsensor/elastalert
lastet
0.1.39
×

bitsensor/elastalert
3.0.0-beta.0
0.2.0b2
〇

bitsensor/elastalert
3.0.0-beta.1
0.2.0b2
〇

@badsector3
The elastalert server is dead. The elastalert-kibana-plugin is also dead.

@badsector3
bitsensor/elastalert:3.0.0-beta.0
docker.elastic.co/kibana/kibana:7.7.0
docker.elastic.co/elasticsearch/elasticsearch:7.7.0
/home/sano/docker-wk2
|--Dockerfiles
|  |--Dockerfile-elastalert
|  |--Dockerfile-kibana
|--docker-compose.yml
|--elastalert
|  |--bin
|  |  |--elastalert-start.sh
|  |  |--elastic_search_status.sh
|  |--config
|  |  |--config.json
|  |  |--elastalert-test.yaml
|  |  |--elastalert.yaml
|  |--rule_templates
|  |--rules
|--es
|  |--config
|  |  |--elasticsearch.yml
|  |--data
|--kibana
|  |--config
|  |  |--kibana.yml

Dockerfiles/Dockerfile-elastalert
FROM bitsensor/elastalert:3.0.0-beta.0

USER root

RUN apk update && \
    apk add bash curl && \
    rm -rf /var/cache/apk/*

ADD elastalert/bin/elastalert-start.sh /usr/local/bin/
ADD elastalert/bin/elastic_search_status.sh /usr/local/bin/

RUN chmod +x /usr/local/bin/elastalert-start.sh & \
    chmod +x /usr/local/bin/elastic_search_status.sh

USER node

ENTRYPOINT ["/usr/local/bin/elastalert-start.sh"]

Dockerfiles/Dockerfile-kibana
FROM docker.elastic.co/kibana/kibana:7.7.0

USER root

RUN /usr/share/kibana/bin/kibana-plugin install https://github.com/nsano-rururu/elastalert-kibana-plugin/releases/download/1.2.0/elastalert-kibana-plugin-1.2.0-7.7.0.zip --allow-root

USER kibana

docker-compose.yml
version: "3.7"
services:
  elasticsearch:
    container_name: elasticsearch
    image: docker.elastic.co/elasticsearch/elasticsearch:7.7.0
    ports:
      - 9200:9200
      - 9300:9300
    environment:
      - ES_JAVA_OPTS=-Xms256m -Xmx256m
      - discovery.type=single-node
    restart: always
    volumes:
      - ./es/data:/usr/share/elasticsearch/data
      - ./es/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
    healthcheck:
        test: ["CMD-SHELL", "curl -f http://localhost:9200 || exit 1"]
        interval: 30s
        timeout: 15s
        retries: 3
        start_period: 180s

  kibana:
    container_name: kibana
    image: kibana:7.7.0
    ports:
      - 5601:5601
    depends_on:
      - elasticsearch
    restart: always
    volumes:
      - ./kibana/config/kibana.yml:/usr/share/kibana/config/kibana.yml
      #- ./kibana/plugin:/usr/share/kibana/work
    healthcheck:
        test: ["CMD-SHELL", "curl -f http://localhost:5601/api/status || exit 1"]
        interval: 30s
        timeout: 15s
        retries: 3
        start_period: 200s

  elastalert:
    container_name: elastalert
    build:
      context: .
      dockerfile: Dockerfiles/Dockerfile-elastalert
    image: elastalert:3.0.0-beta.0
    ports:
      - 3030:3030
      - 3333:3333
    depends_on:
      - elasticsearch
      - kibana
    restart: always
    volumes:
      - ./elastalert/config/elastalert.yaml:/opt/elastalert/config.yaml
      - ./elastalert/config/elastalert-test.yaml:/opt/elastalert/config-test.yaml
      - ./elastalert/config/config.json:/opt/elastalert-server/config/config.json
      - ./elastalert/rules:/opt/elastalert/rules
      - ./elastalert/rule_templates:/opt/elastalert/rule_templates
    healthcheck:
        test: ["CMD-SHELL", "curl -f http://localhost:3030 || exit 1"]
        interval: 30s
        timeout: 15s
        retries: 3
        start_period: 200s

elastalert/bin/elastalert-start.sh
#!/bin/bash

set -e

echo "Giving Elasticsearch at $ELASTICSEARCH_URL time to start..."

elastic_search_status.sh

echo "Starting ElastAlert!"
npm start

elastalert/bin/elastic_search_status.sh
#!/bin/bash

set -e

if [ $# -gt 0 ]; then
  ES_URL="$1"
elif [[ -n $ELASTICSEARCH_URL ]]; then
  ES_URL="$ELASTICSEARCH_URL"
elif [[ -n $ES_HOST ]] && [[ -n $ES_PORT ]]; then
  ES_URL="http://$ES_HOST:$ES_PORT"
else
  ES_URL="http://elasticsearch:9200"
fi

until [[ "$(curl -fsSL "$ES_URL/_cat/health?h=status" | sed -r 's/^[[:space:]]+|[[:space:]]+$//g')" =~ ^(yellow|green)$ ]]; do
  # printf '+' >&2
  sleep 1
done

echo "Elasticsearch is up and healthy at "$ES_URL"" >&2

elastalert/config/config.json
{
    "appName": "elastalert-server",
    "port": 3030,
    "wsport": 3333,
    "elastalertPath": "/opt/elastalert",
    "verbose": false,
    "es_debug": false,
    "debug": false,
    "rulesPath": {
      "relative": true,
      "path": "/rules"
    },
    "templatesPath": {
      "relative": true,
      "path": "/rule_templates"
    },
    "es_host": "elasticsearch",
    "es_port": 9200,
    "writeback_index": "elastalert_status"
  }

elastalert/config/elastalert-test.yaml
{
    "appName": "elastalert-server",
    "port": 3030,
    "wsport": 3333,
    "elastalertPath": "/opt/elastalert",
    "verbose": false,
    "es_debug": false,
    "debug": false,
    "rulesPath": {
      "relative": true,
      "path": "/rules"
    },
    "templatesPath": {
      "relative": true,
      "path": "/rule_templates"
    },
    "es_host": "elasticsearch",
    "es_port": 9200,
    "writeback_index": "elastalert_status"
  }

elastalert/config/elastalert.yaml
# NOTE: This config is used when testing a rule

# The elasticsearch hostname for metadata writeback
# Note that every rule can have its own elasticsearch host
es_host: elasticsearch

# The elasticsearch port
es_port: 9200

# This is the folder that contains the rule yaml files
# Any .yaml file will be loaded as a rule
rules_folder: rules

# How often ElastAlert will query elasticsearch
# The unit can be anything from weeks to seconds
run_every:
  seconds: 5

# ElastAlert will buffer results from the most recent
# period of time, in case some log sources are not in real time
buffer_time:
  minutes: 1

# Optional URL prefix for elasticsearch
#es_url_prefix: elasticsearch

# Connect with TLS to elasticsearch
#use_ssl: True

# Verify TLS certificates
#verify_certs: True

# GET request with body is the default option for Elasticsearch.
# If it fails for some reason, you can pass 'GET', 'POST' or 'source'.
# See http://elasticsearch-py.readthedocs.io/en/master/connection.html?highlight=send_get_body_as#transport
# for details
#es_send_get_body_as: GET

# Option basic-auth username and password for elasticsearch
#es_username: someusername
#es_password: somepassword

# The index on es_host which is used for metadata storage
# This can be a unmapped index, but it is recommended that you run
# elastalert-create-index to set a mapping
writeback_index: elastalert_status

# If an alert fails for some reason, ElastAlert will retry
# sending the alert until this time period has elapsed
alert_time_limit:
  days: 2

es/config/elasticsearch.yml
cluster.name: "docker-cluster"
network.host: <IP_ADDRESS>
discovery.zen.minimum_master_nodes: 1

kibana/config/kibana.yml
server.name: kibana
server.host: "0"
elasticsearch.hosts: http://elasticsearch:9200
xpack.monitoring.ui.container.elasticsearch.enabled: true

# elastalert-kibana-plugin
elastalert-kibana-plugin.serverHost: elastalert
elastalert-kibana-plugin.serverPort: 3030

execute
mkdir -p es/data
chmod 777 es/data
cd Dockerfiles/
docker build -t kibana:7.7.0 -f Dockerfile-kibana .
cd ..
docker-compose up -d

@badsector3
Please close

People can follow on this discussion here to pitch in their opinions about an official fork and the process of it: jertel#77


Add consortia detail page to AnVIL Catalog

Need
We need a place to show consortia-specific information on the AnVI site.
Approach
We can take an approach similar to how the studies are shown. See the code there.
For starters, we can show only the Consortia title/name only and an empty "Overview" tab.
This task will take:

[ ]  Modifying the build script to create a consortia.json (as well as the studies and workspaces JSON files)

[ ]  Updating the site config to use the new consortia.json file to generate the new consortia pages.

Complete


Updated ID of intel security plugin

Validation Status: Warnings
Articles

Article
Status
Details

cordova-security-data.md
Warning
Details

cordova-security-xmit.md
Warning
Details

cordova-security-data.md

[Warning] HTML scripts, styles or image tags are not a valid Markdown syntax. 0 script tags, 1 style tags and 0 image tags were found in the document content.
[Warning] Remove the locale (culture segment) from links to MSDN library or TechNet topics:

 [currently in beta](https://blogs.msdn.microsoft.com/visualstudio/2015/11/18/announcing-the-intune-app-sdk/). If you are interested in the beta plugin, see the [announcement blog post](https://blogs.msdn.microsoft.com/visualstudio/2015/11/18/announcing-the-intune-app-sdk/) for more details getting access and stay tuned for the upcoming GA announcement. Otherwise see the Intune documentation on the [Android](https://technet.microsoft.com/en-us/library/mt147413.aspx) and **[iOS](https://technet.microsoft.com/en-us/library/dn878028.aspx)
 [Windows API](https://msdn.microsoft.com/en-us/library/windows/apps/br211377.aspx)
*[Windows API documentation](https://msdn.microsoft.com/en-us/library/windows/apps/br211377.aspx)

cordova-security-xmit.md

[Warning] Remove the locale (culture segment) from links to MSDN library or TechNet topics:

 [Azure JSON based REST APIs](https://msdn.microsoft.com/en-us/library/azure/hh974476.aspx) and [O365](http://dev.office.com/getting-started/office365apis)
 [manage device profiles](https://technet.microsoft.com/en-us/library/dn997277.aspx)
 [Blocking apps from running](https://technet.microsoft.com/en-us/library/mt627829.aspx)

JobID: be369b51-3d3f-45e3-ac93-9a3285332385

Articles to review
The articles impacted by this PR were staged review at:

http://taco.visualstudio.com/en-us/docs/cordova-security-data/
http://taco.visualstudio.com/en-us/docs/cordova-security-xmit/


Invalid first argument to register()

I am using Python 3.10.5
After following all the steps, when I try to run following
python torrenthunt.py
I am getting an below error
TypeError: Invalid first argument to register(). ForwardRef('CachedResponse') is not a class.
Entire stacktrace is below
`(env) ➜  torrenthunt git:(main) ✗ python torrenthunt.py
Traceback (most recent call last):
File "/Users/amit/torrenthunt/torrenthunt.py", line 5, in
from src import *

File "/Users/amit/torrenthunt/src/init.py", line 2, in
from src.objs import config, dbSql

File "/Users/amit/torrenthunt/src/objs.py", line 5, in
import telebot, py1337x

File "/Users/amit/env/lib/python3.10/site-packages/py1337x/init.py", line 1, in
from py1337x.py1337x import py1337x

File "/Users/amit/env/lib/python3.10/site-packages/py1337x/py1337x.py", line 2, in
import requests_cache

File "/Users/amit/env/lib/python3.10/site-packages/requests_cache/init.py", line 43, in
from .backends import *

File "/Users/amit/env/lib/python3.10/site-packages/requests_cache/backends/init.py", line 8, in
from .base import BaseCache, BaseStorage

File "/Users/amit/env/lib/python3.10/site-packages/requests_cache/backends/base.py", line 18, in
from ..serializers import init_serializer

File "/Users/amit/env/lib/python3.10/site-packages/requests_cache/serializers/init.py", line 6, in
from .preconf import (

File "/Users/amit/env/lib/python3.10/site-packages/requests_cache/serializers/preconf.py", line 26, in
base_stage = CattrStage()  #: Base stage for all serializer pipelines

File "/Users/amit/env/lib/python3.10/site-packages/requests_cache/serializers/cattrs.py", line 32, in init
self.converter = init_converter(factory)

File "/Users/amit/env/lib/python3.10/site-packages/requests_cache/serializers/cattrs.py", line 67, in init_converter
converter.register_structure_hook(
File "/Users/amit/env/lib/python3.10/site-packages/cattr/converters.py", line 263, in register_structure_hook
self._structure_func.register_cls_list([(cl, func)])
File "/Users/amit/env/lib/python3.10/site-packages/cattr/dispatch.py", line 57, in register_cls_list
self._single_dispatch.register(cls, handler)
File<EMAIL_ADDRESS>line 856, in register
raise TypeError(
TypeError: Invalid first argument to register(). ForwardRef('CachedResponse') is not a class.`
Please help me if possible, how to get rid of this.

This is a known issue with python>=3.10.2 and requests-cache<=0.9.0: https://github.com/requests-cache/requests-cache/issues/501
The solution is to update requests-cache to 0.9.1 or later.

Am also on same problem with python 3.10.x

Updating requests-cache to latest version fixed the issue. Thanks to @JWCook


Update deadbeef to 0.7.2

After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.
[x] The commit message includes the cask’s name and version.

Thank you for the contribution. It needed some fixes, so they were made in ff108727875243bd9846cbb5109516ef1bd5eb10. Your contribution is still included (and still credited to you), with the appropriate modifications. Please feel free to ask about any of the changes.


Current toolset requirements for building native code?

What is the current minimum toolset requirement for building native code?  From the "VS2005 build environment" forum thread, my understanding is: JDK (README at the top of the tree says minimum 1.5 ), DirectX SDK, Windows SDK v6.1 and Visual Studio 2005.  Can someone confirm or correct this?  I ask because there are recent commits that seem to refer to system #includes that aren't satisfied by the environment described above.  Example: "include <inttypes.h>".   It might be helpful for us to be in sync on the toolsets & versions.  I understand that the goal is to move to a newer version of VS (presumably VS2015 Community) in the near future.  But what are people building native code with now?

Was hoping that the community would chime in.  With no response, I'm going to propose the following:

DirectX SDK (June 2010), MS's "final" release of DXSDK
Windows SDK v6.1, (last release that included qedit.h)
Visual Studio 2015 (Community Edition)

Based on the above, I'm very close to a commit that will update the build environment for windows native code.

This all sounds fine to me as long as VS 2015 (Community Edition) is
something that can be downloaded freely. IIRC there is a way to do that;
although it's not on Microsoft's site.
On Sun, Oct 11, 2015 at 11:56 AM, Keith Fischer<EMAIL_ADDRESS>wrote:

Was hoping that the community would chime in. With no response, I'm going
to propose the following:

DirectX SDK (June 2010), MS's "final" release of DXSDK
Windows SDK v6.1, (last release that included qedit.h)
Visual Studio 2015 (Community Edition)

Based on the above, I'm very close to a commit that will update the build
environment for windows native code.
—
Reply to this email directly or view it on GitHub
https://github.com/google/sagetv/issues/38#issuecomment-147235178.

--
Jeffrey Kardatzke
<EMAIL_ADDRESS>Google, Inc.

VS2015 Community Edition is a free download.  It includes MS's refactored libraries, full toolset and integration with Git.  I've successfully migrated the Solution, got everything to build in VS2015 and am running the resultant binaries (exe, dll and ax).  I've also brought the Directshow BaseClasses into third_party\Microsoft so that it automatically builds within the Solution.  Doing so avoids the old way of having to manually copy from SDK 6.1 & manually build them "someplace else",  It insures that the toolset settings are consistent across the entire Solution.  As part of the commit, there is a HOWTO that details exactly which environment variables, SDKs, etc. are needed and where to download and set them up.   I plan to generate a pull request as soon as I understand exactly how to use Git's branching model.

Awesome work so far. :)
On Mon, Oct 12, 2015 at 6:38 PM, Keith Fischer<EMAIL_ADDRESS>wrote:

VS2015 Community Edition is a free download. It includes MS's refactored
libraries, full toolset and integration with Git. I've successfully
migrated the Solution, got everything to build in VS2015 and am running the
resultant binaries (exe, dll and ax). I've also brought the Directshow
BaseClasses into third_party\Microsoft so that it automatically builds
within the Solution. Doing so avoids the old way of having to manually copy
from SDK 6.1 & manually build them "someplace else", It insures that the
toolset settings are consistent across the entire Solution. As part of the
commit, there is a HOWTO that details exactly which environment variables,
SDKs, etc. are needed and where to download and set them up. I plan to
generate a pull request as soon as I understand exactly how to use Git's
branching model.
—
Reply to this email directly or view it on GitHub
https://github.com/google/sagetv/issues/38#issuecomment-147569990.

--
Jeffrey Kardatzke
<EMAIL_ADDRESS>Google, Inc.

Posted the info about completed migration to VS2015 to http://forums.sagetv.com/forums/showthread.php?t=62588


Fatal Error, Please help

Fatal error: Uncaught exception 'GuzzleHttp\Exception\RequestException' with message 'cURL error 60: SSL certificate problem: unable to get local issuer certificate (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)' in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\projects\google-play-scraper-master\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:187 Stack trace: #0 C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\projects\google-play-scraper-master\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(150): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array) #1 C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\projects\google-play-scraper-master\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(103): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory)) #2 C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\loc in C:\Program Files (x86)\EasyPHP-DevServer-14.1VC11\data\localweb\projects\google-play-scraper-master\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 187

Looks like your system (Windows) doesn't have the root CA certificates needed by Curl. Try this solution.

Why not use Linux such as Ubuntu?


Fixed #6457 -- Fixed rendering of permission icons

Back port #6624

Coverage remained the same at 78.189% when pulling de14db71b54365f513d814e099263672f512e1ae on vThaian:backport/3.6.x/6624 into b2b35ca9d5564ee90b87a8f81c10d24f96304878 on divio:release/3.6.x.


nixos/juicefs: init

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

Usage :
services.juicefs = {
    enable = true;
    volumes.myvolume = {
      name = "myvolume";
      mountPoint = "/mnt/juicefs";
      metaUrl = "redis://localhost:6379/1";
      storage = "s3";
      bucket = "https://mybucket.s3.amazonaws.com";
      accessKey = "my-access-key";
      secretKey = "my-secret-key";
      extraArgs = [ "--cache-dir=/var/cache/juicefs" ];
    };
  };


In group questioner mode, just say the session id after they select it. don't let them change it.

fixed


Running on Startup - Pi Zero

Trying to get ngrok-notify to autorun on startup. Runs fine with a script.
Can you provides an example of adding it to systemd or rc.local or ?
Thanks

Here is my startmeup.sh script that runs fine when I run it from command line
#!/bin/sh
/usr/local/bin/ngrok-notify http 8081 --email &


Add support for Sets

This will need:
Support in the parser (parser.dart)
A new EvalSet type in primitives.dart
A new DartSetLiteral class in literals.dart
???

Hi, are the points above still applicable? I'm planning to contribute and think that sets would be a good start.

Ah not really, this issue is quite old.
For Sets, you'd probably need to:

edit collection/set_map.dart in the compiler,
add a $Set wrapper class in shared similar to the $Map and $List wrappers,
add PushSet, SetSet, and IndexSet bytecode ops similar to the Map equivalents in the runtime,
and generate code to get/set values from the Set in IndexedReference.

To be frank this is slightly complicated for a first issue at this point since it touches all three parts of dart_eval (compiler, standard library, and runtime). It is doable but I might suggest #4 or #91 first. (Thanks for your interest in contributing btw!)

You're right, I thought that it'll be easier to do (somehow) 😀 Thanks for the explanation!

Hi, @ethanblake4 i can do the 2 and 3 points you said.
The 1st and 4th are just beyond me. If you could elaborate just on them 🙏🙏 it would be big help.


handle white space in creation and deletion using display names

Closes: #1587
Description

Creation of a resources accepts any display name and stores it within the annotation openshift.io/display-name, we then translate value into a valid resource name. However the display name may contain leading or trailing spaces. This doesn't cause any issues at display time however is an issue when it comes to the delete modal where we expect the user to re-ender the display name. Unfortunately the name value the user sees rendered in the UI does not contain these extra spaces (because HTML). Meanwhile in code the comparison to check if the user entered the correct name has these extra spaces. Therefore there's a disconnect between what we ask the user to enter and what we actually compare against.
Changes made:

trim display name when setting display name annotation value
disallow display name entry that contains only spaces within forms
removed all leading, trailing, and whitespace containing 2+ characters from the delete modal display name and comparison value

How Has This Been Tested?

This issue presents itself in many areas. eg. projects, deployed models, ...

Go to Data Science Projects in the left nav
Click Create data science project button
Enter a project name with leading and / or trailing spaces
Select the project's kebab menu and choose Delete project
Observe the name the model asks the user to enter does not display the same leading or trailing spaces.
Observe when copying the name from the text into the input, the delete button is now enabled as this PR ignores leading and trailing spaces.

Additionally, inspect the YAML behind the project resource and look for the openshift.io/display-name annotation to no longer contain leading and trailing spaces.
Lastly, forms which accept a display name input value now will not enable the create button if the user enters just a space as a value.
Test Impact

Added one test to the existing integration tests that ensures deployed model name form doesn't accept an empty string for a name.
Request review criteria:

Self checklist (all need to be checked):

[x] The developer has manually tested the changes and verified that the changes work
[x] Commits have been squashed into descriptive, self-contained units of work (e.g. 'WIP' and 'Implements feedback' style messages have been removed)
[x] Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
[x] The developer has added tests or explained why testing cannot be added (unit tests & storybook for related changes)

If you have UI changes:

[ ] Included any necessary screenshots or gifs if it was a UI change.
[ ] Included tags to the UX team if it was a UI/UX change.

After the PR is posted & before it merges:

[ ] The developer has tested their solution on a cluster by using the image produced by the PR to main

Tested with white space both as a prefix and suffix 👍

btw, @christianvogt checking the code it seems that this is ready now, I think the bot re added the do-not-merge label by accident, but I don't want to remove it before confirmation.

@christianvogt do we test spaces awkwardly in the middle? something     with spaces? This will be hard to render in HTML too.

@andrewballantyne Looks like i forgot to include a test step in the description about multiple adjacent spaces and the delete modal.
The Delete Modal perform a trim() followed by a regex replace of multiple adjacent spaces into a single space. This ensures that the string the user sees to "copy" matches.


Add --safe command-line flag to Basic Usage

This PR adds --safe command-line flag to Basic Usage manual.

Before submitting the PR make sure the following are checked:

[x] Wrote good commit messages.
[ ] Commit message starts with [Fix #issue-number] (if the related issue exists).
[x] Feature branch is up-to-date with master (if not - rebase it).
[x] Squashed related commits together.
[ ] Added tests.
[ ] Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
[x] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
[x] Run bundle exec rake default. It executes all tests and RuboCop for itself, and generates the documentation.

Thanks!


Fix encrypted logging

I have a general encrypy/decrypt function: StringCypher.
It fails once in a while. Appveyor Windows logs:
[xUnit.net 00:00:06.4325447]     CipherTests [FAIL]
[xUnit.net 00:00:06.4328704]       Assert.Throws() Failure
[xUnit.net 00:00:06.4329209]       Expected: typeof(System.Security.Cryptography.CryptographicException)
[xUnit.net 00:00:06.4329547]       Actual:   (No exception was thrown)
[xUnit.net 00:00:06.4338087]       Stack Trace:
[xUnit.net 00:00:06.4349705]         C:\projects\magicalcryptowallet\MagicalCryptoWallet.Tests\CryptoTests.cs(44,0): at MagicalCryptoWallet.Tests.CryptoTests.CipherTests()
Failed   CipherTests
Error Message:
 Assert.Throws() Failure
Expected: typeof(System.Security.Cryptography.CryptographicException)
Actual:   (No exception was thrown)
Stack Trace:
   at MagicalCryptoWallet.Tests.CryptoTests.CipherTests() in C:\projects\magicalcryptowallet\MagicalCryptoWallet.Tests\CryptoTests.cs:line 44

Possible way to reproduce it:

Write a test that assert throwing the CryptographicException many times and hope it'll fail once in a while, too.

Just experienced the same on travis linux: https://travis-ci.org/nopara73/MagicalCryptoWallet/jobs/344706501

The code is okay. The test is wrong because it makes the explicit assumption that when a wrong password is used it should always throw an exception (what it is incorrect). The code uses padding for encrypting and that padding is calculated based on the password so, most of the times (about 97% of the time) when the password is wrong it can not recalculate the padding in the chipherText. However, about 3% of the time it doesn't fail (even when the calculated padding is also wrong) and that's why the test fail.
To know if the message was encrypted with a given password we need to use authentication code. I will be pushing a version in minutes.

https://github.com/nopara73/MagicalCryptoWallet/pull/29


Vuex state not updating in Vue devtools, showing always the initial store state.

Version
6.0.2
Browser and OS info
Chrome Version 98.0.4758.80 (Official Build) (x86_64) / macOS Catalina 10.15.7
Steps to reproduce
Create any app and change the state via a mutation
What is expected?
The state in the Vue Devtools to be updated or that when I press the "refresh" button it updates to the last state
What is actually happening?
Nothing is getting updated

I had to create a getter to get the last version of the state. I think it could be related to what other have reported here: https://github.com/vuejs/vuex/issues/2046

Same situation, only getters allow to see state changes.

This happened after latest update today.

Move to Firefox. Here you can install 6.0.6 version and it works well.

Already closed in https://github.com/vuejs/devtools/commit/985d0c85602db30ffbd7fef152f8eb3b3fce0861 (released in 6.0.6).


Missing translation points in wagtailcore models

What I have to do? Do I need to generate a migration file?


Awesome stuff!

Awesome stuff @maralla @xinming90 !
Corvus will be shared in our next RedisWeekly! Once published (in a matter of minutes) you will be able to see your project here :)

@FGRibreau Thanks for sharing! It meant a lot to us that it is accepted in the redis community.


Unconfirmed commits created even if there's nothing to commit

When there is no change between candidate and running config, a commit-comfirm should not be created, similar to what happens  in the CLI.
Following playbook shows that a confirmed-commit is always created, even if there have been no changes to the configuration but the config request:
- name: set info
  gather_facts: false
  hosts: clab-4l2s-l1
  tasks:
    - name: set info
      nokia.srlinux.config:
        update:
          - path: /system/information
            value:
              contact: GenXer
      register: res
    - debug:
        var: res

    - name: set info again - no change
      nokia.srlinux.config:
        update:
          - path: /system/information
            value:
              contact: GenXer
        confirm_timeout: 60
      register: res

    - name: check that no change happeend
      assert:
        that:
          - res.changed is false
    - name: get commits
      nokia.srlinux.get:
        paths:
          - path: /system/configuration/commit
      register: commits

    - debug:
        var: commits
    - name: assert that no unconfirmed commits exist
      assert:
        that:
          - commits.result[0].commit | selectattr('status', 'equalto', 'unconfirmed') | list | length == 0

Hi @wdesmedt
actually in CLI you would still get a commit logged. This is because SR Linux consider setting the same value as an operation.
See this log:
Last login: Wed Nov 15 15:43:56 2023 from 2001:172:20:20::1
Using configuration file(s): []
Welcome to the srlinux CLI.
Type 'help' (and press <ENTER>) if you need any help using this.

--{ running }--[  ]--
A:srl# enter candidate

--{ candidate shared default }--[  ]--
A:srl# system information location test1

--{ * candidate shared default }--[  ]--
A:srl# commit stay
All changes have been committed. Starting new transaction.

--{ + candidate shared default }--[  ]--
A:srl# info from state system configuration commit *
    system {
        configuration {
            commit 1 {
snipped
            commit 4 {
                type shared
                name default
                status complete
                username admin
                started "13 seconds ago"
                ended "13 seconds ago"
            }
        }
    }

--{ + candidate shared default }--[  ]--
A:srl# system information location test1

--{ +* candidate shared default }--[  ]--
A:srl# diff

--{ +* candidate shared default }--[  ]--
A:srl# commit confirmed timeout 60
Commit confirmed (automatic rollback in a minute)
All changes have been committed. Leaving candidate mode.

--{ + running }--[  ]--
A:srl# info from state system configuration commit *
    system {
        configuration {
            commit 1 {
                type shared
snipp
            commit 4 {
                type shared
                name default
                status complete
                username admin
                started "a minute ago"
                ended "a minute ago"
            }
            commit 5 {
                type shared
                name default
                status unconfirmed
                username admin
                started "7 seconds ago"
            }
        }
    }

Now I need to remind myself why we do issue a commit when diff is empty, because I feel we can avoid doing that.

@hellt If the diff method of the json-rpc server is reliable - it should as we use it to set the changed flag in Ansible - we could omit the related set-request. Seems more efficient.

Now I need to remind myself why In Ansible why we do issue a commit when diff is empty, because I feel we can avoid doing that.

Maybe related to later introduction of the diff-method on the json-rpc server and behavior for pre-23.3 releases...
Maybe related

if you can check why is this happening (on ansible coll side) -- commit issued when json-rpc returns empty diff but commit-confirmed is present that would be helpful.

@wdesmedt can you please check the fix by installing this version:
nokia-srlinux-0.3.1.tar.gz
Thanks for spotting this nasty bug.

I've release 0.4.0 version where the fix is in place


Fixed DivideByZeroException when creating a BottomBarPage with no chi…

…ldren.
Fixes #24.

can you please re-submit?


Would this work on consumer hardware and integrated in frameworks like llama.cpp or others?

As per title.
Example: with GPUs like 3060 12GB or 3090 24GB.

Hi @Mayorc1978 , thank you very much for your interest in QServe! Although it is targeted for large-scale LLM serving, QServe can also work on consumer GPUs like RTX 4090 and 3090. For RTX 4090, you can expect a speedup over TensorRT-LLM as on L40S. We did not do much experiments on 3060 or 3090, while we believe that the principles will still hold.

Hi, how about Tesla T4 and RTX2080Ti?

Hi @tp-nan , Tesla T4 and RTX2080 are not supported in QServe right now. Currently, we have some instructions that can only be compiled with Ampere+ architecture. We will consider support older GPUs after cleaning the cuda code. Thank you!

@ys-2020 will the performance of qserve outperform trtllm w4a8 in llama3 13b?


ast::EffectExpr

closes #4230

I think I am happy with this right now. The fact that we no longer have silly ExprBlock -> Block wrapping I think is a big improvement. Still not sure if unified EffectExpr is any better than [Try|Async|Unsafe|Labeled]Expr, but that should be much easier to change later (as opposed to changing every block expression).
bors r+


Uniform KB and Gallery

Resolves: #823

Uniform images with the same style (center, correct size, borders)

Uniform button to download files/zip

Uniform structure inside each section:

src folder to put code and files
images folder to put images, gif and videos

Uniform titles

@jrobinAV Done!