Data Collection from Deployments: No documentation available about azureml.monitoring

In the Data Collection article (https://docs.microsoft.com/en-us/azure/machine-learning/how-to-enable-data-collection#enable-data-collection), we specifically showcase how to levarage the azureml.monitoring library to collect data from deployments.  This is also present in the Example Notebook (https://github.com/Azure/MachineLearningNotebooks/blob/master/how-to-use-azureml/monitor-models/data-drift/drift-on-aks.ipynb).  The notebook even specifically calls out the importance of the Model Data Collector code with a link back to the Data Collection article.
However, there doesn't appear to be any documentation available that tells us anything about what this library does or the functions available.  The only evidence I can find of its existence is its PyPi page (https://pypi.org/project/azureml-monitoring/).  This leaves a number of questions unanswered, such as:
1) Do I always have to manually type in the field names being collected?  Shouldn't there be a way to default to the same field names used by the training dataset associated with the model?

2) What does designation = 'inputs' do?  Does that mean I can store outputs as well?  Do I always need to call it inputs to Detect Data Drift or can I call it whatever I want?

3) What data types are supported by ModelDataCollector().collect()?

To give a concrete example of why this is important.  I ran into an issue where storing my data in a 2d list ([[a]]) gave me some awkward errors when I would try to detect Data Drift.  In this case, I had to do my best to figure out the issue because there was simply no documentation available to assist.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 5ec57fee-a0d0-c9a7-eeb2-90b9223b932c
Version Independent ID: 0f840fe8-5786-59ba-5b80-87595f370133
Content: Collect data on your production models - Azure Machine Learning
Content Source: articles/machine-learning/how-to-enable-data-collection.md
Service: machine-learning
Sub-service: core
GitHub Login: @lostmygithubaccount
Microsoft Alias: copeters

@BreakingBI Thanks for the feedback. We are investigating the issue and will update you shortly.

Thanks for the feedback. I have assigned to the content author for the doc enhancement. @gvashishtha Could you please help on this.

#please-close


Corrected code translated to spanish

Changes to use informal tone

Fixed code that was translated to spanish

[x] I have read freeCodeCamp's contribution guidelines.

[x] My pull request has a descriptive title (not a vague title like Update index.md)

[x] My pull request targets the master branch of freeCodeCamp.

[x] None of my changes are plagiarized from another source without proper attribution.

[x] All the files I changed are in the same world language (for example: only English changes, or only Chinese changes, etc.)

[x] My changes do not use shortened URLs or affiliate links.

Closes #XXXXX

Thanks!


Homepage not displaying correctly in IE & Firefox browsers.

The CSS used for the homepage is not displaying correctly in IE and Firefox browsers.
On first inspection, it would appear the problem lies within the following CSS (angular-material.min.css - line 6):
.layout, .layout-column, .layout-row {     box-sizing: border-box;     display: flex; }
I feel the display: flex; is causing the issue.
I have tested on Mozilla Firefox 38.2.0, Internet Explorer 11 and the latest Microsoft Edge browser.

How is it not displaying properly? What issues do you see?

can't repro. please re-open with a screen shot.


M1 Build for macOS

An Apple Silicon release would be nice!

Yep thanks, meant to but forgot, will do that in a day or two. The x86_64 version should work through Rosetta however. If you try and find that it doesn't please let me know.

I replaced the x86_64 version with a universal binary.


Title:  ROC Curve

Is your feature request related to a problem? Please describe.
Used to visualize the performance of a binary classifier.
Describe the solution you'd like.
i would like to provide the some mathematical concept of ROC curve (Used to visualize the performance of a binary classifier.) and some coding how to make it
Describe alternatives you've considered.
No thanks
Add any other context or screenshots about the feature request here.
thanks

i want to work on this issue

please assign this issue to me


[SYSTEMML-1409][SYSTEMML-1410] New Batch Normalization Layers

This commit adds a new batch normalization layer, batch_norm, and a
new spatial batch normalization layer, spatial_batch_norm.
The batch normalization layer uses the per-feature sample mean and
per-feature uncorrected sample variance during training to
normalize each feature of the input data.
The spatial batch normalization layer uses the per-channel sample mean
and per-channel uncorrected sample variance during training to
normalize each channel of the input data.
Additionally, these layers introduce learnable parameters (gamma, beta)
to control the amount of normalization.
y = ((x-mean) / sqrt(var+eps)) * gamma + beta
Finally, these implementations maintain exponential moving averages of
the mean and variance during training for use during testing.

cc @niketanpansare

Note that these new layers give a preview of the new API that I would like to do in SYSTEMML-1389, in which the backward API is updated to accept (1) all relevant gradients from upstream, (2) all outputs from forward, and (3) all inputs given to forward.  This provides two benefits: first, many layers can benefit from a performance perspective from having access to the outputs of the forward function within the backward function, and second, this makes the API much simpler and less error prone by allowing for simple copy-and-paste of forward inputs and outputs as arguments to backward and removing ambiguity related to the parameters.  A downside is that often times, not every single parameter is needed by backward.

@dusenberrymw Did you test compare the results of this layers to that of CuDNN ?
For example: output activations (training, inference), updated running mean, var (for training), ...
For your reference, I used the following scala script to test the output activations of forward function (which is correct btw):
import org.apache.sysml.api.mlcontext._

val N = 1
val C = 2
val H = 6
val W = 6
val script = """
source("nn/layers/spatial_batch_norm.dml") as bn
N = $N; C = $C; H = $H; W = $W
ma_fraction = 0.7; eps = 1e-3
X = rand(rows=N, cols=C*H*W, min=5, max=100)
scale = rand(rows=1, cols=C, min=2, max=20)
bias = rand(rows=1, cols=C, min=9, max=18)
runningMean = rand(rows=1, cols=C, min=5, max=100)
runningVar = rand(rows=1, cols=C, min=1, max=2)
[Y, newRunningMean, newRunningVar, cache_mean, cache_var, cache_norm] = bn::forward (X, t(scale), t(bias), C, H, W, "train", t(runningMean), t(runningVar),  ma_fraction,  eps)
newRunningMean = t(newRunningMean)
newRunningVar = t(newRunningVar)
# Ensures that Y is on GPU
Z = sum(Y + 1) + sum(runningVar + runningMean + t(newRunningMean) + t(newRunningVar) + scale + bias)
print(Z)
"""
val dml = new Script(script)
dml.in(Map("$N" -> N, "$C" -> C, "$H" -> H, "$W" -> W))
dml.out("X", "scale", "bias", "runningMean", "runningVar", "Y", "newRunningMean", "newRunningVar")

val ml = new MLContext(sc)
ml.setGPU(true)
val result = ml.execute(dml)

var testVar = "Y"
import org.apache.sysml.runtime.matrix.data.LibMatrixCUDA
def get(v:String) = result.getMatrix(v).toMatrixObject()
val resultML = MLContextConversionUtil.matrixObjectTo2DDoubleArray(get(testVar))

get(testVar).getGPUObject().acquireDeviceModifyDense()
// LibMatrixCUDA.batchNormalizationForwardInference("foo", get("X"), get("scale"), get("bias"), get("runningMean"), get("runningVar"), get("Y"), 1e-3)
LibMatrixCUDA.batchNormalizationForwardTraining("foo", get("X"), get("scale"), get("bias"), get("runningMean"), get("runningVar"), get("Y"), get("runningMean"), get("runningVar"), 1e-3, 0.7)
get(testVar).getGPUObject().acquireHostRead()
val resultCuDNN = MLContextConversionUtil.matrixObjectTo2DDoubleArray(get(testVar))

for(i <- 0 until resultML.length) { for (j <- 0 until resultML(i).length) { val a = resultML(i)(j); val b = resultCuDNN(i)(j); if(Math.abs(a - b) > 1e-9) System.out.println("" + a  + " != " + b);  } }

To test the above script you will have to comment gpu cleanup code

@niketanpansare The nn/test/test.dml file contains forward correctness tests for both layers with hard-coded results pulled from TensorFlow (and verified with PyTorch), and the nn/test/grad_check.dml file contains gradient check test cases to ensure that the backward functions are computing the correct gradients for the associated forward functions.
The entire SystemML-NN DML test suite can be run with spark-submit SystemML.jar -f nn/test/tests.dml as documented in the nn/test folder.

@niketanpansare Interestingly, if I try to run the batch_norm::backward function with our GPU backend, it throws an engine exception due to a lack of broadcasting in the GPU axpy function:
$ ~/incubator-systemml/bin/systemml -f nn/test/tests.dml -gpu
/home/mwdusenb/incubator-systemml/bin/systemml: illegal option -- f
Warning: Help requested. Will exit after usage message
Usage: /home/mwdusenb/incubator-systemml/bin/systemml <dml-filename> [arguments] [-help]
    -help     - Print this usage message and exit
[mwdusenb@rr-ram2 SystemML-NN]$ ~/incubator-systemml/bin/systemml nn/test/tests.dml -gpu
================================================================================
... created /home/mwdusenb/incubator-systemml/conf/SystemML-config.xml
... created /home/mwdusenb/incubator-systemml/conf/log4j.properties
================================================================================
17/03/30 12:06:10 INFO context.JCudaContext: Total number of GPUs on the machine: 4
17/03/30 12:06:10 INFO context.JCudaContext: Active CUDA device number : 0
17/03/30 12:06:10 INFO context.JCudaContext: Max Blocks/Threads/SharedMem :<PHONE_NUMBER>/1024/49152
17/03/30 12:06:11 INFO context.JCudaContext: Total GPU memory: 11995.578367999999 MB
17/03/30 12:06:11 INFO context.JCudaContext: Available GPU memory: 11929.059328 MB
17/03/30 12:06:12 INFO api.DMLScript: BEGIN DML run 03/30/2017 12:06:12
17/03/30 12:06:13 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

Starting grad checks.
---
Grad checking the cross-entropy loss function.
Grad checking the L1 loss function.
Grad checking the L2 loss function.
Grad checking the log loss function.
Grad checking the affine layer with L2 loss.
 - Grad checking X.
 - Grad checking W.
 - Grad checking b.
Grad checking the batch normalization layer with L2 loss.
 - Grad checking the 'train' mode.
17/03/30 12:06:15 INFO api.DMLScript: SystemML Statistics:
Total execution time:		1.179 sec.
Number of executed MR Jobs:	0.

17/03/30 12:06:15 INFO api.DMLScript: END DML run 03/30/2017 12:06:15
17/03/30 12:06:15 ERROR api.DMLScript: Failed to execute DML script.
org.apache.sysml.runtime.DMLRuntimeException: org.apache.sysml.runtime.DMLRuntimeException: ERROR: Runtime error in program block generated from statement block between lines 40 and 40 -- Error evaluating instruction: CP°extfunct°./nn/test/grad_check.dml°batch_norm°0°1°tmp
	at org.apache.sysml.runtime.controlprogram.Program.execute(Program.java:130)
	at org.apache.sysml.api.DMLScript.execute(DMLScript.java:664)
	at org.apache.sysml.api.DMLScript.executeScript(DMLScript.java:351)
	at org.apache.sysml.api.DMLScript.main(DMLScript.java:212)
Caused by: org.apache.sysml.runtime.DMLRuntimeException: ERROR: Runtime error in program block generated from statement block between lines 40 and 40 -- Error evaluating instruction: CP°extfunct°./nn/test/grad_check.dml°batch_norm°0°1°tmp
	at org.apache.sysml.runtime.controlprogram.ProgramBlock.executeSingleInstruction(ProgramBlock.java:318)
	at org.apache.sysml.runtime.controlprogram.ProgramBlock.executeInstructions(ProgramBlock.java:219)
	at org.apache.sysml.runtime.controlprogram.ProgramBlock.execute(ProgramBlock.java:166)
	at org.apache.sysml.runtime.controlprogram.Program.execute(Program.java:123)
	... 3 more
Caused by: org.apache.sysml.runtime.DMLRuntimeException: error executing function ./nn/test/grad_check.dml::batch_norm
	at org.apache.sysml.runtime.instructions.cp.FunctionCallCPInstruction.processInstruction(FunctionCallCPInstruction.java:179)
	at org.apache.sysml.runtime.controlprogram.ProgramBlock.executeSingleInstruction(ProgramBlock.java:288)
	... 6 more
Caused by: org.apache.sysml.runtime.DMLRuntimeException: ERROR: Runtime error in function program block generated from function statement block between lines 166 and 266 -- Error evaluating function program block
	at org.apache.sysml.runtime.controlprogram.FunctionProgramBlock.execute(FunctionProgramBlock.java:122)
	at org.apache.sysml.runtime.instructions.cp.FunctionCallCPInstruction.processInstruction(FunctionCallCPInstruction.java:172)
	... 7 more
Caused by: org.apache.sysml.runtime.DMLRuntimeException: ERROR: Runtime error in for program block generated from for statement block between lines 186 and 265 -- Error evaluating for program block
	at org.apache.sysml.runtime.controlprogram.ForProgramBlock.execute(ForProgramBlock.java:157)
	at org.apache.sysml.runtime.controlprogram.FunctionProgramBlock.execute(FunctionProgramBlock.java:115)
	... 8 more
Caused by: org.apache.sysml.runtime.DMLRuntimeException: ERROR: Runtime error in program block generated from statement block between lines 197 and 199 -- Error evaluating instruction: CP°extfunct°./nn/layers/batch_norm.dml°backward°15°3°dout·MATRIX·DOUBLE°out·MATRIX·DOUBLE°ema_mean_upd·MATRIX·DOUBLE°ema_var_upd·MATRIX·DOUBLE°cache_mean·MATRIX·DOUBLE°cache_var·MATRIX·DOUBLE°cache_norm·MATRIX·DOUBLE°X·MATRIX·DOUBLE°gamma·MATRIX·DOUBLE°beta·MATRIX·DOUBLE°mode·SCALAR·STRING·false°ema_mean·MATRIX·DOUBLE°ema_var·MATRIX·DOUBLE°0.9·SCALAR·DOUBLE·true°1.0E-5·SCALAR·DOUBLE·true°dX°dgamma°dbeta
	at org.apache.sysml.runtime.controlprogram.ProgramBlock.executeSingleInstruction(ProgramBlock.java:318)
	at org.apache.sysml.runtime.controlprogram.ProgramBlock.executeInstructions(ProgramBlock.java:219)
	at org.apache.sysml.runtime.controlprogram.ProgramBlock.execute(ProgramBlock.java:166)
	at org.apache.sysml.runtime.controlprogram.ForProgramBlock.execute(ForProgramBlock.java:145)
	... 9 more
Caused by: org.apache.sysml.runtime.DMLRuntimeException: error executing function ./nn/layers/batch_norm.dml::backward
	at org.apache.sysml.runtime.instructions.cp.FunctionCallCPInstruction.processInstruction(FunctionCallCPInstruction.java:179)
	at org.apache.sysml.runtime.controlprogram.ProgramBlock.executeSingleInstruction(ProgramBlock.java:288)
	... 12 more
Caused by: org.apache.sysml.runtime.DMLRuntimeException: ERROR: Runtime error in function program block generated from function statement block between lines 110 and 181 -- Error evaluating function program block
	at org.apache.sysml.runtime.controlprogram.FunctionProgramBlock.execute(FunctionProgramBlock.java:122)
	at org.apache.sysml.runtime.instructions.cp.FunctionCallCPInstruction.processInstruction(FunctionCallCPInstruction.java:172)
	... 13 more
Caused by: org.apache.sysml.runtime.DMLRuntimeException: ERROR: Runtime error in if program block generated from if statement block between lines 165 and 180 -- Error evaluating if statement body
	at org.apache.sysml.runtime.controlprogram.IfProgramBlock.execute(IfProgramBlock.java:147)
	at org.apache.sysml.runtime.controlprogram.FunctionProgramBlock.execute(FunctionProgramBlock.java:115)
	... 14 more
Caused by: org.apache.sysml.runtime.DMLRuntimeException: ERROR: Runtime error in program block generated from statement block between lines 167 and 172 -- Error evaluating instruction: GPU°+*°_mVar380·MATRIX·DOUBLE°_Var364·SCALAR·DOUBLE·false°_mVar382·MATRIX·DOUBLE°_mVar383·MATRIX·DOUBLE
	at org.apache.sysml.runtime.controlprogram.ProgramBlock.executeSingleInstruction(ProgramBlock.java:318)
	at org.apache.sysml.runtime.controlprogram.ProgramBlock.executeInstructions(ProgramBlock.java:219)
	at org.apache.sysml.runtime.controlprogram.ProgramBlock.execute(ProgramBlock.java:166)
	at org.apache.sysml.runtime.controlprogram.IfProgramBlock.execute(IfProgramBlock.java:139)
	... 15 more
Caused by: org.apache.sysml.runtime.DMLRuntimeException: The dimensions of inputs in GPU axpy operation should match:3 != 1 || 100 != 100
	at org.apache.sysml.runtime.instructions.gpu.MatrixMatrixAxpyGPUInstruction.processInstruction(MatrixMatrixAxpyGPUInstruction.java:100)
	at org.apache.sysml.runtime.controlprogram.ProgramBlock.executeSingleInstruction(ProgramBlock.java:288)
	... 18 more
Exception in thread "main" org.apache.sysml.api.DMLException: org.apache.sysml.runtime.DMLRuntimeException: org.apache.sysml.runtime.DMLRuntimeException: ERROR: Runtime error in program block generated from statement block between lines 40 and 40 -- Error evaluating instruction: CP°extfunct°./nn/test/grad_check.dml°batch_norm°0°1°tmp
	at org.apache.sysml.api.DMLScript.executeScript(DMLScript.java:365)
	at org.apache.sysml.api.DMLScript.main(DMLScript.java:212)
Caused by: org.apache.sysml.runtime.DMLRuntimeException: org.apache.sysml.runtime.DMLRuntimeException: ERROR: Runtime error in program block generated from statement block between lines 40 and 40 -- Error evaluating instruction: CP°extfunct°./nn/test/grad_check.dml°batch_norm°0°1°tmp
	at org.apache.sysml.runtime.controlprogram.Program.execute(Program.java:130)
	at org.apache.sysml.api.DMLScript.execute(DMLScript.java:664)
	at org.apache.sysml.api.DMLScript.executeScript(DMLScript.java:351)
	... 1 more
Caused by: org.apache.sysml.runtime.DMLRuntimeException: ERROR: Runtime error in program block generated from statement block between lines 40 and 40 -- Error evaluating instruction: CP°extfunct°./nn/test/grad_check.dml°batch_norm°0°1°tmp
	at org.apache.sysml.runtime.controlprogram.ProgramBlock.executeSingleInstruction(ProgramBlock.java:318)
	at org.apache.sysml.runtime.controlprogram.ProgramBlock.executeInstructions(ProgramBlock.java:219)
	at org.apache.sysml.runtime.controlprogram.ProgramBlock.execute(ProgramBlock.java:166)
	at org.apache.sysml.runtime.controlprogram.Program.execute(Program.java:123)
	... 3 more
Caused by: org.apache.sysml.runtime.DMLRuntimeException: error executing function ./nn/test/grad_check.dml::batch_norm
	at org.apache.sysml.runtime.instructions.cp.FunctionCallCPInstruction.processInstruction(FunctionCallCPInstruction.java:179)
	at org.apache.sysml.runtime.controlprogram.ProgramBlock.executeSingleInstruction(ProgramBlock.java:288)
	... 6 more
Caused by: org.apache.sysml.runtime.DMLRuntimeException: ERROR: Runtime error in function program block generated from function statement block between lines 166 and 266 -- Error evaluating function program block
	at org.apache.sysml.runtime.controlprogram.FunctionProgramBlock.execute(FunctionProgramBlock.java:122)
	at org.apache.sysml.runtime.instructions.cp.FunctionCallCPInstruction.processInstruction(FunctionCallCPInstruction.java:172)
	... 7 more
Caused by: org.apache.sysml.runtime.DMLRuntimeException: ERROR: Runtime error in for program block generated from for statement block between lines 186 and 265 -- Error evaluating for program block
	at org.apache.sysml.runtime.controlprogram.ForProgramBlock.execute(ForProgramBlock.java:157)
	at org.apache.sysml.runtime.controlprogram.FunctionProgramBlock.execute(FunctionProgramBlock.java:115)
	... 8 more
Caused by: org.apache.sysml.runtime.DMLRuntimeException: ERROR: Runtime error in program block generated from statement block between lines 197 and 199 -- Error evaluating instruction: CP°extfunct°./nn/layers/batch_norm.dml°backward°15°3°dout·MATRIX·DOUBLE°out·MATRIX·DOUBLE°ema_mean_upd·MATRIX·DOUBLE°ema_var_upd·MATRIX·DOUBLE°cache_mean·MATRIX·DOUBLE°cache_var·MATRIX·DOUBLE°cache_norm·MATRIX·DOUBLE°X·MATRIX·DOUBLE°gamma·MATRIX·DOUBLE°beta·MATRIX·DOUBLE°mode·SCALAR·STRING·false°ema_mean·MATRIX·DOUBLE°ema_var·MATRIX·DOUBLE°0.9·SCALAR·DOUBLE·true°1.0E-5·SCALAR·DOUBLE·true°dX°dgamma°dbeta
	at org.apache.sysml.runtime.controlprogram.ProgramBlock.executeSingleInstruction(ProgramBlock.java:318)
	at org.apache.sysml.runtime.controlprogram.ProgramBlock.executeInstructions(ProgramBlock.java:219)
	at org.apache.sysml.runtime.controlprogram.ProgramBlock.execute(ProgramBlock.java:166)
	at org.apache.sysml.runtime.controlprogram.ForProgramBlock.execute(ForProgramBlock.java:145)
	... 9 more
Caused by: org.apache.sysml.runtime.DMLRuntimeException: error executing function ./nn/layers/batch_norm.dml::backward
	at org.apache.sysml.runtime.instructions.cp.FunctionCallCPInstruction.processInstruction(FunctionCallCPInstruction.java:179)
	at org.apache.sysml.runtime.controlprogram.ProgramBlock.executeSingleInstruction(ProgramBlock.java:288)
	... 12 more
Caused by: org.apache.sysml.runtime.DMLRuntimeException: ERROR: Runtime error in function program block generated from function statement block between lines 110 and 181 -- Error evaluating function program block
	at org.apache.sysml.runtime.controlprogram.FunctionProgramBlock.execute(FunctionProgramBlock.java:122)
	at org.apache.sysml.runtime.instructions.cp.FunctionCallCPInstruction.processInstruction(FunctionCallCPInstruction.java:172)
	... 13 more
Caused by: org.apache.sysml.runtime.DMLRuntimeException: ERROR: Runtime error in if program block generated from if statement block between lines 165 and 180 -- Error evaluating if statement body
	at org.apache.sysml.runtime.controlprogram.IfProgramBlock.execute(IfProgramBlock.java:147)
	at org.apache.sysml.runtime.controlprogram.FunctionProgramBlock.execute(FunctionProgramBlock.java:115)
	... 14 more
Caused by: org.apache.sysml.runtime.DMLRuntimeException: ERROR: Runtime error in program block generated from statement block between lines 167 and 172 -- Error evaluating instruction: GPU°+*°_mVar380·MATRIX·DOUBLE°_Var364·SCALAR·DOUBLE·false°_mVar382·MATRIX·DOUBLE°_mVar383·MATRIX·DOUBLE
	at org.apache.sysml.runtime.controlprogram.ProgramBlock.executeSingleInstruction(ProgramBlock.java:318)
	at org.apache.sysml.runtime.controlprogram.ProgramBlock.executeInstructions(ProgramBlock.java:219)
	at org.apache.sysml.runtime.controlprogram.ProgramBlock.execute(ProgramBlock.java:166)
	at org.apache.sysml.runtime.controlprogram.IfProgramBlock.execute(IfProgramBlock.java:139)
	... 15 more
Caused by: org.apache.sysml.runtime.DMLRuntimeException: The dimensions of inputs in GPU axpy operation should match:3 != 1 || 100 != 100
	at org.apache.sysml.runtime.instructions.gpu.MatrixMatrixAxpyGPUInstruction.processInstruction(MatrixMatrixAxpyGPUInstruction.java:100)
	at org.apache.sysml.runtime.controlprogram.ProgramBlock.executeSingleInstruction(ProgramBlock.java:288)
	... 18 more
Failed to run SystemML. Exit code: 1

@niketanpansare Here's a short snippet to invoke the axpy rewrite and reproduce the issue on GPU:
n = 100
m = 10
#a = 2
a = as.scalar(rand(rows=1, cols=1))
x = rand(rows=n, cols=m)
y = rand(rows=1, cols=m)
z = x + a*y  # broadcasting
if (1==1){}
print(sum(z))

ok ... I will address that bug :)

LGTM, Thanks @dusenberrymw


Issue when fishing with a pet follower

Hello,

As you can see, I have a Rock Golem pet follower and I'm fishing Karambwans with cat food (karambwanji).

Nice!


draft: keccak hashing func using std crypto

@StringNick I like it, much better like that, tell me when ready to review/merge as it is marked as draft now but seems already good with all the tests passing :)

@StringNick I like it, much better like that, tell me when ready to review/merge as it is marked as draft now but seems already good with all the tests passing :)

u can review, i pushed for Lana review, if u can add comments will be cool, i didnt remove old code, u can review new code i will remove after (old code)

@tcoratger pushed, removed old code, moved constant round count


Add pathfinding example using external start and goal

Hi @Nebukam, I spent some more time learning the plugin and made a little example in the process.

I can't describe the shock I felt when I updated from upstream and saw the complex examples you added 😱 I'm getting really excited about the plugin 🎉 Finding it a bit hard to learn because it's a little out of my comfort zone, but I might use that as an excuse to write some starter guides from a newbie perspective 😅

Ahahah woah this is so cool :D
Thank you so much for this!!
I'll be updating the version of the plugin in the example project soon -- if that's ok with you I'll be moving your example within its own folder, something like: Content/CommunityExamples/PathfindingWithExternalActors/.uassets -- I find Unreal to become super messy if there's map/assets at the same root location, so this way we can consolidate all assets for a single "complex" example (since it requires a map, actors, etc) 👀

Also, as I was building examples I found that the PCGEx debug line system is a pain in the *ss to use, so I ended up making a small subgraph in the projet (_data/EdgeAspect) that turn edges into actual geometry that doesn't need rebuilding the graph just to see something. This way you open the example and the lines are here already :D


nginxModules.njs: init at 0.7.8

Description of changes

nginx's JavaScript module.
Documentation: https://nginx.org/en/docs/njs/

njs scripting language
njs is a subset of the JavaScript language that allows extending nginx functionality. njs is created in compliance with ECMAScript 5.1 (strict mode) with some ECMAScript 6 and later extensions. The compliance is still evolving.

Every once in a while there are usecases described in the nginx blog. Here is an example where njs is used to parse DNS-over-HTTPS requests, forward them to an upstream resolver, and return the query.
https://www.nginx.com/blog/using-nginx-as-dot-doh-gateway/
Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

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

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.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
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

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

@ofborg test nginx-njs

/marvin opt-in
/status needs_reviewer

@ofborg test nginx-njs


WIP grafana to kubernikus-monitoring; switch to stable/grafana

Moves Grafana out of kubernikus-system to kubernikus-monitoring
Upgrade Grafana to 6.2.4
Autodiscovers dashboards, datasources provided via configmaps and labeled kubernikus-grafana-dashboard, kubernikus-grafana-datasource.
Alternatively we could use the git-sync sidecar to get them directly from git. No deployment of dashboards, datasources via configmap needed.

TODO:
dashboards need some love due to grafana upgrade

secrets PR#1388 needs to be merged beforehand

This is good to go from my perspective and can be merged after:

secrets PR is merged
kubernikus-system is deployed, removing Grafana from it


net/netdev: Avoid hardcoded guardsize when using d_iob

Summary
d_iob is always prepared with io_offset = CONFIG_NET_LL_GUARDSIZE, but hardcode CONFIG_NET_LL_GUARDSIZE is not good for flexibility, use io_offset (IOB_DATA macro) instead.
Impact
Reduce usage of CONFIG_NET_LL_GUARDSIZE, to let flexible incoming IOB with different offset become possible.
Testing
CI + simulator(ping / iperf)

@wengzhe please fix the ci break.

@wengzhe please fix the ci break.

@xiaoxiang781216 Rebased to master and the ci passed.


Gyro input

Hello,
Have you considering adding gyro input to the helper? I think it'd be useful as it seems like Godot's support for gyro is limited to mobile devices.
Having better support for gyro controllers would be really useful (PS5, Switch, etc). What are your thoughts about it?
Thank you for your great module!

It looks like Godot has limited support for accelerometer stuff and I'm not entirely sure what Input Helper would even provide there.


[Bug]: Incompataibility with dgl==2.1.0 and torch==2.2.2

Email (Optional)
No response
Version
1.0.0
Which OS(es) are you using?

[ ] MacOS
[ ] Windows
[x] Linux

What happened?
This is just a head's up that if you install matgl from PyPI right now (3/28/2024), you'll get dgl==2.1.0 and torch==2.2.2, which are not compatible. For details, see https://github.com/dmlc/dgl/issues/7247#issuecomment-2026414981.
Code snippet
No response
Log output
No response
Code of Conduct

[X] I agree to follow this project's Code of Conduct

I've downgraded the PyTorch to ver 2.2.1, and it works.

The pinned dependency is dgl==1.1.3. There are issues with the dgl=2.x releases.

It doesn't seem pinned:
https://github.com/materialsvirtuallab/matgl/blob/cb41e6073b56b81fd69c16a903db203d2ccaa394/pyproject.toml#L51

The pin is in the requirements.txt file. In any case, I agree we need to update the code to support DGL 2.x. @kenko911 Pls fix.

Hi @shyuep and @Andrew-S-Rosen, sorry for the late reply. We need to explicitly include the dependence of pydantic starting from dgl-2.* . However, the dgl-2.* is not compatible with torch.2.2.2 or above at the momennt. Is it okay for us to fix it by including pydantic, torch>=2.0.0; <=2.2.1, dgl >=2.0.0 in requirement.txt?

Of course defer to @shyuep on this matter, but since users are installing matgl based on pyproject.toml and not requirements.txt, I think it is important to make sure the pyproject.toml contains the version ranges necessary to properly run matgl. The requirements.txt should have strict version pins for the sake of CI, which are updated by dependabot.

I would go for the latest version of DGL, and whatever version the subdependencies require. My impression is that pyproject.toml. is a replacement for setup.py and you are not supposed to pin versions in pyproject.toml.

Strict version pins should be avoided in pyproject.toml, but a bounded range of versions in this case is necessary otherwise users doing pip install matgl will not get a working build.

That I agree. @kenko911 can modify pyproject.toml to specify the latest range.

Hi @shyuep and @Andrew-S-Rosen, thank you so much for your input. I will do what you all suggested in pyproject.toml with a bounded range of versions and only include the strict version in requirements.txt. I do learn a lot from you guys!! :)

Thank you for addressing this! 🙏


Fix some syntax errors In OpenAD section.

In OpenAD adjoint variable output:

fix few 73.c long lines (from previous modification)
fix few snap-shot output ( ADJsst, ADJsss & ADJbottomdrag )

What changes does this PR introduce?
Fix compiling error
Other information:

Check that this fixes OpneAD testreport. Going to merge this (fastrack).


fix(QB-9336): use decodeIfPreset

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Attention heatmap visualization

How to generate the heatmap of attention demonstrated in your paper? Could you supply APIs?

Hi Stephen,
i got it to run today and was able to visualize some heatmaps. For this, I basically copied the code from dinov1 and pasted it into the dinov2 code. I wrote a quick how-to, you can find it here: gitlab
Basically, you need to pull the dinov2 repo, change some classes and functions (explained in the linked readme), then use the visualize_attention.py file from dinov1 (you can use the already changed file in my linked repo).
If something is unclear, just let me know.
If someone found an easier way, then please let us know :)

A thorough and complete answer for such a impressive work. Thanks！

Hi Stephen,
i got it to run today and was able to visualize some heatmaps. For this, I basically copied the code from dinov1 and pasted it into the dinov2 code. I wrote a quick how-to, you can find it here: gitlab
Basically, you need to pull the dinov2 repo, change some classes and functions (explained in the linked readme), then use the visualize_attention.py file from dinov1 (you can use the already changed file in my linked repo).
If something is unclear, just let me know.
If someone found an easier way, then please let us know :)

Hi @Sntz91, thanks a lot for your answer. To use XFORMERS, adding a few lines worked for me:
changing https://github.com/facebookresearch/dinov2/blob/c3c2683a13cde94d4d99f523cf4170384b00c34c/dinov2/layers/attention.py#L76-L77
to
        x = memory_efficient_attention(q, k, v, attn_bias=attn_bias)
        if return_attn:
            attn = x.permute(0, 2, 1, 3) @ v.permute(0, 2, 3, 1)
            return attn
        x = x.reshape([B, N, C])

But I noticed that the visualised attention seems much noisier compared to dinov1. And the larger the model, the noisier the self-attention, e.g., vit_small gives visually much better results than vit_giant2.   I wonder if you experienced the same?

@ludles i am also noticing the same phenomenon. any idea why?

Hi @Sntz91 , I followed your steps to visualize the attention heat maps, the results seem bad when compared to DinoV1, could you guide me why this might be happening. I am using dinov2_vitl14_pretrain.pth

@ludles I noticed the same thing, any luck to why this might be happening?

Might have to do with "Additionally, note the weird line attentions[:, 10] = 0. I found out that the attention
scores are very high for one specific pixel, over all attention heads"
But I haven't found that line of code (attentions) in the gitlab repo nor in a few mins searching across the other references stuff

The following snippet from the visualize_attention.py script should print you the id with the max attention. Then you can just put it in the next line and set it manually to zero. I hope that works! I am not sure why though, why we need to do this and if this is still necessary.
weird: one pixel gets high attention over all heads?
print(torch.max(attentions, dim=1))
attentions[:, 283] = 0

@Sntz91 Thanks for this! Is there a particular reason why you set your image size to 952x952? Also, why do you instantiate your ViT with 526 image size instead of 224? It does seem that the small and large ViT checkpoints correspond to such a size instead of 224x224, but any idea where this came from?

The following snippet from the visualize_attention.py script should print you the id with the max attention. Then you can just put it in the next line and set it manually to zero. I hope that works! I am not sure though, why we need to do this, and if this is still necessary.
print(torch.max(attentions, dim=1)) attentions[:, 283] = 0

Hi Sntz91, I followed your steps and got this error, wondering why...
Since I use dinov2_vits14_pretrain, I changed the model params:
model = vit_small(
patch_size=14,
img_size=518,
init_values=1.0,
block_chunks=0
)
then shapes are:
img shape: torch.Size([1, 3, 952, 952])
attentions shape: torch.Size([1, 4625, 384])
Traceback (most recent call last):
File "/home/yingwei/saff_v2/saff/dino_utils/visualize_attention_v2.py", line 88, in
attentions = attentions[0, :, 0, 1:].reshape(nh, -1)
IndexError: too many indices for tensor of dimension 3
any help would be appreciated!

Hi @Sntz91 , I followed your steps to visualize the attention heat maps, the results seem bad when compared to DinoV1, could you guide me why this might be happening. I am using dinov2_vitl14_pretrain.pth

In my experiment, I got similar results.

Hi @Sntz91 , I followed your steps to visualize the attention heat maps, the results seem bad when compared to DinoV1, could you guide me why this might be happening. I am using dinov2_vitl14_pretrain.pth

Here is the explanation about your results https://arxiv.org/pdf/2309.16588.pdf

Hi @Sntz91 , I followed your steps to visualize the attention heat maps, the results seem bad when compared to DinoV1, could you guide me why this might be happening. I am using dinov2_vitl14_pretrain.pth

In my experiment, I got similar results.

Here is the explanation about your results https://arxiv.org/pdf/2309.16588.pdf

Hi Stephen,
i got it to run today and was able to visualize some heatmaps. For this, I basically copied the code from dinov1 and pasted it into the dinov2 code. I wrote a quick how-to, you can find it here: gitlab
Basically, you need to pull the dinov2 repo, change some classes and functions (explained in the linked readme), then use the visualize_attention.py file from dinov1 (you can use the already changed file in my linked repo).
If something is unclear, just let me know.
If someone found an easier way, then please let us know :)

Hi Sntz91,
I meet an error in your notebook:
attentions = attentions[0, :, 0, 1:].reshape(number_of_head, -1)
IndexError: too many indices for tensor of dimension 3
So I checked the attention shape. It turns out to be [1, xxxx, embedding_dimension] instead of [1, headers, xxxxx, xxxxx] in your notebook. Why my attention results have a different dimension from yours?  Could you please help me fix it? Thank you.

Hi Stephen,
i got it to run today and was able to visualize some heatmaps. For this, I basically copied the code from dinov1 and pasted it into the dinov2 code. I wrote a quick how-to, you can find it here: gitlab
Basically, you need to pull the dinov2 repo, change some classes and functions (explained in the linked readme), then use the visualize_attention.py file from dinov1 (you can use the already changed file in my linked repo).
If something is unclear, just let me know.
If someone found an easier way, then please let us know :)

Hi Sntz91,
I meet an error in your notebook: attentions = attentions[0, :, 0, 1:].reshape(number_of_head, -1) IndexError: too many indices for tensor of dimension 3
So I checked the attention shape. It turns out to be [1, xxxx, embedding_dimension] instead of [1, headers, xxxxx, xxxxx] in your notebook. Why my attention results have a different dimension from yours? Could you please help me fix it? Thank you.

I met the same problem, have you solved it yet?

Any idea how you would visualize the output when block_chunks are not 0?

Greetings everyone !
I'm trying to visualise the attention heatmaps for one of the models with register tokens. Specifically, the "dinov2_vitl14_reg4_pretrain".
It seems there is a mismatch between the shape/reshapes on the visualize_attention.py file.
I'm using image_size = (416, 416) with patch_size = 14 and 4 register tokens, which means that the model reshapes the image in to (416//14)416//14 + 4 =  2929 + 4 = 845. But the model expects a Tensor with shape 841.
Do I have to drop somehow these 4 tokens after getting the last layer attention ?
Thanks in advance !

Greetings everyone !
I'm trying to visualise the attention heatmaps for one of the models with register tokens. Specifically, the "dinov2_vitl14_reg4_pretrain".
It seems there is a mismatch between the shape/reshapes on the visualize_attention.py file.
I'm using image_size = (416, 416) with patch_size = 14 and 4 register tokens, which means that the model reshapes the image in to (416//14)x(416//14) + 4 = 29x29 + 4 = 845. But the model expects a Tensor with shape 841(=29x29)
Do I have to drop somehow these 4 tokens after getting the last layer attention ?
Thanks in advance !

If I'm not wrong, it's because registers should be dropped to visualize the heatmap. So 845 - 4 = 841

Hello everyone!
Other than the attention map, has anyone tried to draw the norms plot in Figure 3?
I got the opposite result, where there are no outlier patches.

We observe that an important difference between “artifact” patches and other patches is the norm of their token embedding at the output of the model.

This is the only sentence that authors explain what an outlier patch/token is.
FYI, this is my implementation.
https://drive.google.com/file/d/1gHDOi8RL8hHmfAJvF7IqyBF7tmosG0ko/view?usp=sharing

Hello everyone!
Other than the attention map, has anyone tried to draw the norms plot in Figure 3 (from "Vision Transformers Need Registers")? I got the opposite result, where there are no outlier patches.

We observe that an important difference between “artifact” patches and other patches is the norm of their token embedding at the output of the model.

This is the only sentence that authors explain what an outlier patch/token is.
FYI, this is my implementation. https://colab.research.google.com/drive/1gHDOi8RL8hHmfAJvF7IqyBF7tmosG0ko

Have you solved this problem?

The following snippet from the visualize_attention.py script should print you the id with the max attention. Then you can just put it in the next line and set it manually to zero. I hope that works! I am not sure though, why we need to do this, and if this is still necessary.
print(torch.max(attentions, dim=1)) attentions[:, 283] = 0

Hi Sntz91, I followed your steps and got this error, wondering why...
OK I SOLVED this issue by this #90 (comment)
Since I use dinov2_vits14_pretrain, I changed the model params: model = vit_small( patch_size=14, img_size=518, init_values=1.0, block_chunks=0 )
then shapes are: img shape: torch.Size([1, 3, 952, 952]) attentions shape: torch.Size([1, 4625, 384])
Traceback (most recent call last): File "/home/yingwei/saff_v2/saff/dino_utils/visualize_attention_v2.py", line 88, in attentions = attentions[0, :, 0, 1:].reshape(nh, -1) IndexError: too many indices for tensor of dimension 3
any help would be appreciated!

hello！have you solve that?I meet the same problem.


Existence of two qc files for conflation (Step2) results

The script src/create_model_domain_polygons.py needs to read a qc file created as the result of conflation (Step 2). Currently, there are two qc files (conflated_ras_models.csv and 12090301_stream_qc_fid_xs.csv). This can make confusion. Is it possible to remove conflated_ras_models.csv since its info can be derived from the other qc file (as unique items of 'ras_path' field). If yes,  make sure to include all fields of conflated_ras_models.csv file into the 12090301_stream_qc_fid_xs.csv file.

The title is incorrect. Any guesses how much work it takes to fix it? We can always adjust it as we get into the actual fix.

Hi Ali and Rob,
This is so much wok, as conflated_ras_models.csv is the input file of
multiple steps. I suggest that we keep both for now and if we had time I’ll
come back to it later.
Thank you,
Heidi
On Mon, Jan 29, 2024 at 5:02 PM Rob Hanna - NOAA @.***>
wrote:

The title is incorrect. Any guesses how much work it takes to fix it? We
can always adjust it as we get into the actual fix.
—
Reply to this email directly, view it on GitHub
https://github.com/NOAA-OWP/ras2fim/issues/270#issuecomment-1915863206,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFRLX2UH2SILQIA53UJAEBLYRBBA5AVCNFSM6AAAAABCQBPL2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJVHA3DGMRQGY
.
You are receiving this because you were assigned.Message ID:
@.***>

Hi Rob,
I don’t think it is wrong. Step 2 has 2 csv files: one with conflated ras
model path and one with much more information.
Ali, for now let’s keep both, if we have time, I’ll come back to it.
Thank you,
Heidi
On Mon, Jan 29, 2024 at 5:51 PM Hamideh H. S. @.***>
wrote:

Hi Ali and Rob,
This is so much wok, as conflated_ras_models.csv is the input file of
multiple steps. I suggest that we keep both for now and if we had time I’ll
come back to it later.
Thank you,
Heidi
On Mon, Jan 29, 2024 at 5:02 PM Rob Hanna - NOAA @.***>
wrote:

The title is incorrect. Any guesses how much work it takes to fix it? We
can always adjust it as we get into the actual fix.
—
Reply to this email directly, view it on GitHub
https://github.com/NOAA-OWP/ras2fim/issues/270#issuecomment-1915863206,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFRLX2UH2SILQIA53UJAEBLYRBBA5AVCNFSM6AAAAABCQBPL2SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJVHA3DGMRQGY
.
You are receiving this because you were assigned.Message ID:
@.***>

Thanks Heidi. ok, that's fine. I close this issue for now.


Python classes

Write python classes to represent different species of animals
We should have an animal base class with four children classes. All animals should be able to move, eat, and sleep with functions. All plants should be able to photosynthesise and grow. These functions can just print a message
Each animal should have a weight, and you should override the adding method and the equals method so that their weight is combine, and that equal returns true if the animals are the same weight

The following code satisfies the requirements:
class Animal:
def init(self, weight):
self.weight = weight
def move(self):
    print("The animal is moving")

def eat(self):
    print("The animal is eating")

def sleep(self):
    print("The animal is sleeping")

def __add__(self, other):
    if isinstance(other, Animal):
        return Animal(self.weight + other.weight)
    else:
        raise TypeError("Can only add Animals")

def __eq__(self, other):
    if isinstance(other, Animal):
        return self.weight == other.weight
    else:
        return False

class Mammal(Animal):
def init(self, weight):
super().init(weight)
class Bird(Animal):
def init(self, weight):
super().init(weight)
class Reptile(Animal):
def init(self, weight):
super().init(weight)
class Fish(Animal):
def init(self, weight):
super().init(weight)
class Plant:
def init(self, weight):
self.weight = weight
def photosynthesise(self):
    print("The plant is photosynthesising")

def grow(self):
    print("The plant is growing")

def __add__(self, other):
    if isinstance(other, Plant):
        return Plant(self.weight + other.weight)
    else:
        raise TypeError("Can only add Plants")

def __eq__(self, other):
    if isinstance(other, Plant):
        return self.weight == other.weight
    else:
        return False


Keepass file doesn't open from dropbox

This is the first time I'm trying this plugin and I cannot make it work.
I uploaded the keepass database I have to dropbox and logged in with the plugin. Following page shows up.

Nothing happens when I click the file. Is it supposed to?
Browser version 51.0.2704.79 Ubuntu 16.04 (64-bit)

That's suppose to happen. Go to the login page of a website you have stored data in, click on the extension and you should be prompted to choose a db, login, then from there you can search for your entries.

Then the lack of instruction makes it confusing to implement this plugin. Maybe an instruction text with how to proceed after that could help?

That or choosing a db / keyfile should just be done outside of settings when we click on the extension.

Wanted to chime in on this discussion. I've just installed this extension and I like it, but this was also quite confusing for me. Actually I had to see the comments in this issue to understand how you select the correct database.
Perhaps a little explanation on the screen showing the kdbx files found in your Dropbox account would help (e.g., something along the lines of "These KeePass files are now accessible. Select one of those files when logging in.")


on mobile youtube iframe is above the nav on home page, making using nav impossible

z-index issue ? waiting to debug this until Devin finishes messing with home page

https://github.com/uidaholib/mainstreetvideo_source/commit/a96f58749d6cc74496da7dacee2ad2bc8a08582c
Fixed with commit above


Internal Server Error when hosting ASP.NET Core on IIS

Deployed ASP.NET MVC Core 1.1.1 on Windows 2012 Server R2. Followed this ASP.NET article (installed DotNetCore.1.0.5_1.1.2-WindowsHosting bundle etc). App runs fine as localhost on the server if we follow the following steps:

In cmd from root dir of the app, ran: dotnet MyWebapplication.dll
Noticed that application is running and waiting for responses on localhost:5000.
Opened the browser on the host server and navigated to: http://localhost:5000
Home page opened as expected
But when we navigate to the http://IP Address/MyWebapplication on a different desktop on the same network, we get the 500 - Internal Server Error

NOTE: We tested that if we host a simple web app (not ASP.NET Core) with just one Index.html page on IIS, we can access the app from another machine on the same network via, say, http://IP Address/MySimpleHtmlApp. So issue seems to be related to something on ASP.NET Core deployment on IIS. Question: What we may be missing and how to resolve it?

The issue was that although I had installed DotNetCore.1.0.5_1.1.2-WindowsHosting bundle but the ASPNETCore was not showing up in IIS->Modules. So, I uninstalled the bundle and the restarted the machine, installed the bundle again, restarted the machine (as precaution).


SQL - Mapper implementations suffer from NullPointerException potentially

Assume you have a domain class containing a property which doesn't have a corresponding metadata element in the query class. If an object of such a class is passed to a Mapper implementation (seems to be the case for all of them) you'll get a NullPointerException at the following code snippet (taken from DefaultMapper but the other implementations suffer from the same issue):
Map<String, Field> fields = getPathFields(entity.getClass());
…
Field field = fields.get(property);
Path path = (Path<?>) field.get(entity);
if (entry.getValue() != null) {
  values.put(path, entry.getValue());
}

field will be null for the property mapped in the domain object but not included in the query class. So I think the relevant code snippet has to be changed to:
Field field = fields.get(property);

if (field != null && entry.getValue() != null) {
  Path path = (Path<?>) field.get(entity);
  values.put(path, entry.getValue());
}

This is also avoiding the path lookup if not necessary although this is probably just a cosmetic issue.

released in 2.3.2


Edits to the Resources page

Remove this section:
Thrive Mobile App
The Thrive Mobile App is Harvard University’s mobile application for health and wellness. Features include quick access to emergency contact information, Vanderbilt exercise schedules, dining services menus, Countway Library hours, and shuttle schedules, as well as a campus map and directory. The app allows students to access these University resources and more in an easy-to-use platform for any mobile device.
Add this section under the "Scholars in Medicine Office (SMO)" section:
### Harvard Catalyst Profiles (make hyperlinked: https://connects.catalyst.harvard.edu/profiles/search/people)
Harvard Catalyst is devoted to advancing human health by supporting and innovating clinical and translational science, and training the next generation of researchers. The Harvard University’s Clinical and Translational Science Center serves the research community by offering courses and educational programs, research consulting, tools for study design and clinical trial collaboration, guidance on regulatory issues, and pilot funding for novel, high-impact projects – all freely available to trainees, fellows, and faculty.
Harvard Catalyst provides searchable profiles for all faculty members, that highlight their scholarly work and publications. The Catalyst search feature is available here: https://connects.catalyst.harvard.edu/profiles/search/people
Add this section under the new "Harvard Catalyst Profiles" section:
### Harvard Catalyst Mentor Database for Clinical and Translational Research (make hyperlinked: https://ctmd.catalyst.harvard.edu/)
Harvard Catalyst has created a new searchable database for students to find HMS faculty mentors in the area of Clinical and Translational research. Search for projects with available faculty members to mentor medical students here: https://ctmd.catalyst.harvard.edu/. Access to the Harvard Catalyst database requires HarvardKey authentication.

Done via deb5c4d.

Done via deb5c4d.

Done via 08428de.

2882b82


enforce unsigned int return type for IO.read and write

see also #1642

Unsigned integers are bug prone. I use them only for C compatibility. I'd enforce Int32 in any case (but there really isn't a way right now to enforce a return type on implementors).

I'm closing this for the reason above. It would be maybe nice to have a way to enforce a type to always be returned in implementors/subclasses, but that's a different issue.


Scroll to the selected tab on page load

This behaviour means that a selected tab retains the default fragment behaviour, i.e. people can copy links to a particular section of a site. An example url would be http://frontend.dev.gov.uk/view-driving-licence#other-ways-to-apply  - loading the page will jump to the tab strip with the correct tab selected and its content showing below.

I can’t see any problems with this becoming the default behaviour, but I’d like to hear dissenting opinions if there are any.

For what it’s worth, this section of code was last touched in 2012: https://github.com/alphagov/frontend/commit/19b222026456665a27fe426cb63b14422533e2e4

:+1:


UISplitViewController with iOS 11

Hi,
Thank you for your great library.
I am using LGSideMenuController with UISplitViewController for rightView on iOS 11.
RightView is not coming correctly (fluctuating) for the first time.
On iOS 10 this issue is not observed.
Please find the attached sample code which will demonstrate the issue.
SideMenuExample.zip
Any help will be greatly appreciated.
Thanks in advance.

I'm having similar issue when I used UISplitViewController,  issue #157


Seems key is inserted before refresh sometimes

Using evmap in a high concurrency situation. I use contains_key to check if the evmap already contains the data and read it, if not, insert something and call refresh. But sometimes it seems that a contains_key check could happen between adding the key and inserting the value during a refresh. This makes contains_key returning true and get_and fails with None
(Yeah the issue title is not quite accurate)

Hmm.. Are you calling contains_key on a WriteHandle or on a ReadHandle? Does this happen before or after the first time you call refresh()? I'm very surprised to hear about this behavior, as contains_key follows almost exactly the same code path as get_and...

calling contains_key on a ReadHandle.
I viewed the source code, and here's my hypothesis:
When I call .insert() on a WriteHandle, a new key is inserted to inner, but it is not maked ready. ReadHandle::contains_key do not run a ready check, so it could see the key and return true. But since WriteHandle::refresh() is not yet executed, get_and returns None.

ReadHandle should not see the key in the map at all until after a refresh() because the .insert() is acting on an entirely separate map. The initial map used by ReadHandle is completely empty, and so contains_key should always return false until the first refresh(). On refresh(), the map is marked as ready, so get_and and contains_key should do the same thing.
Are you sure you're never accessing WriteHandle from multiple threads at a time? And that you have never called refresh() when observing this behavior?


[Release] Prepare Version 0.11.0

Description
Update Readme to prepare for the release of version 0.11.0
Review checklist

[x] PR is split into meaningful commits for the ease of reviewing
[ ] Tests have been written
[ ] Screenshots added (where applicable)
[x] Appropriate labels have been applied

Codecov Report

Merging #92 (dbab2e1) into main (5afc018) will not change coverage.
The diff coverage is n/a.

@@          Coverage Diff          @@
##            main     #92   +/-   ##
=====================================
  Coverage   74.9%   74.9%
=====================================
  Files         45      45
  Lines       1354    1354
  Branches     400     400
=====================================
  Hits        1015    1015
  Misses       125     125
  Partials     214     214


Middleman 4: Layout applied to Sass files with .scss suffix when using files.watch

Related to issue #1676. This does not happen if the file is given a .css.scss suffix.
Given:

An additional source folder is used, using files.watch
A Sass file exists with .scss (not .css.scss) suffix

Then:

The layout (layout.erb) is applied to the compiled Sass file, so that it is a mix of HTML and CSS.

Assume this folder structure:
.
├── source
│   ├── layouts
│   │   └── layout.erb
│   └── stylesheets
│       └── site.css.scss
└── source2
    └── stylesheets
        └── more-styles.scss
        └── styles3.css.scss

layout.erb:
<!DOCTYPE html>
<html>
<head>
  <title>Middleman 4 Test</title>
</head>
<body>
  <%= yield %>
</body>
</html>

more-styles.scss:
$myColor: #123456;

body {
  color: $myColor;
}

styles3.css.scss:
Same contents as more-styles.scss
config.rb:
files.watch :source, path: File.join(root, 'source2')

Running bundle exec middleman build results in these files:
build/stylesheets/more-styles (note missing .css suffix, see #1676):
<!DOCTYPE html>
<html>
<head>
  <title>Middleman 4 Test</title>
</head>
<body>
  /* line 3, more-styles.scss */
body {
  color: #123456; }

</body>
</html>

build/stylesheets/styles3.css:
/* line 3, styles3.css.scss */
body {
  color: #123456; }

Note that if the suffix is .css.scss, then the layout is not applied. As explained in #1676, the .css.scss suffix is deprecated, so it's desirable to use the .scss suffix instead, especially when sharing Sass files between Middleman and other projects (such as when using Middleman to prototype sites that will be build on other platforms, such as Rails).

Tested against master branch and version 4.0.0.rc.1.
For master branch, middleman revision is ec99a7b28f6aa67ba33beb52e2d061138023823b. middleman-sprockets revision is 1177edb30c452211caca0a5751f59c1816320807.

Fixed here: https://github.com/middleman/middleman/commit/684a80c9061fd5cabe4b78c1c2bce9785fbaf000


can be applied to chinese data?

Thanks for  sharing.

not sure, only tried English in my experiments.


chore: clean tsconfig

Those things doesn't add value.
No need of exclude because that gets override by files and I am not even using that for compiling, just for IDE / Editors sake.
Also remove that extra d.ts, that will be fed to gulp directly.

:+1:


Open PDF on a new tab in the browser

Overarching user story:
As a disorganized person who's moving
I want a system to track what's in each box
So that I know what's in each box before I open it and scatter the contents
Issue user story:
As a disorganized person who's moving
I want open the PDF in a different browser
So that I don't have to reopen the main website window
Acceptance criteria:
Given that the user has generated the QR code
When they click on the button to print the QR code
They are presented with PDF in a different tab in the browser

Closed by mugi


feat(deps): upgrade chakra-ui to v2

Description
feat(deps): upgrade chakra-ui to v2
This is a major version update to Chakra UI and will probably cause problems.
I think it's important for us to keep up with these changes so we don't get into a position where we're so far behind we can't update anymore.
Notice

[X] Have you followed the guidelines in our Contributing guide?
[X] Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[ ] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[X] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)
N/A
Risk
High. Chakra is the base for the entire UI component library.
Testing
The whole UI needs to be tested and compared to the current UI
Screenshots (if applicable)

housekeeping - closing in favor of https://github.com/shapeshift/web/pull/2065


HTML5 player not resizing to "fill" setting

Still appears as 720 p box, regardless of "fullscreen top player" setting or not
http://i.imgur.com/JzmOelX.jpg

What version are you using? This is a bug with older version! You should use the latest DEV version!
https://github.com/YePpHa/YouTubeCenter/wiki/Developer-Version

What version are you using? This is a bug with older version! You should use the latest DEV version!
https://github.com/YePpHa/YouTubeCenter/wiki/Developer-Version

Ah, I didnt realize the main version was not up to date with the changelog, thanks for the info.

Ah, I didnt realize the main version was not up to date with the changelog, thanks for the info.

Try the latest stable version first, it's 2.1.7 and can be downloaded here: https://github.com/YePpHa/YouTubeCenter/wiki
Do not use the AMO link since that leads to an outdated version.
If the problem still persists with that version then use the one suggested by @Eisys

Try the latest stable version first, it's 2.1.7 and can be downloaded here: https://github.com/YePpHa/YouTubeCenter/wiki
Do not use the AMO link since that leads to an outdated version.
If the problem still persists with that version then use the one suggested by @Eisys

Yeah, I have 2.1.7 and that bug still exists for me, so dev it is.

Yeah, I have 2.1.7 and that bug still exists for me, so dev it is.

Let us know if the problem is fixed for you with the developer version.

Let us know if the problem is fixed for you with the developer version.

Looks fixed to me, thanks

Looks fixed to me, thanks

Still occurs for me on the latest Dev version with Safari.

@Vashetti Are you using it with SPF enabled or disabled? If you have it disabled could you try with it enabled?

Had it disabled, just enabled it, first video I went on, the problem occurred.
Despite being on the latest Dev version, is it entirely possible I also have a previous version of YTC installed? In my extension list on Safari it only lists the 461 Dev version, but I was thinking there could be a conflict or something. Because I see many people nowadays saying to update to the latest dev version and that the bug was squashed a while ago, yet it's been occurring for me for ages.

That's normal because YTC saves your settings in a local file, so if you remove the addon it still retains your previous settings. Whenever you are in doubt regarding the YTC version you can simply open the settings menu and read the current version on the bottom left corner, that way you are sure of which version you are using.
Regarding the actual issue, use the latest Dev version instead of the v2.1.7, it has been confirmed that this issue is present in 2.1.7.
After you reinstall the latest Dev version, could you try resetting your settings to their default, switch the player to html5 (if it isn't already by default) and copy paste the console log into a new gist? https://gist.github.com/
If you don't know how to open the console: http://webmasters.stackexchange.com/questions/8525/how-to-open-the-javascript-console-in-different-browsers

Here's one with default settings (HTML5, Player size set to 80%): https://gist.github.com/Vashetti/1b3aa71a35665f70ef9b

Yep, something is not working correctly, the fix is not being applied on your end. If it was then your log should have these lines included:
"ytplayer.load() has been called." watch:1980
"yt.player.Application.create has been called" watch:10742
"Pointer: j" watch:1980
"Progressbar: xb" watch:1980
"Canvas: ab"

I don't know what else you can do except use the flash player until YePpHa can take a look at what is causing this.
Another thing you can try (although I suspect it won't make a difference in this case) is to disable any other addon that you have running except YTC and try again. With some unlikely luck it is some addon that is causing a conflict in this particular case.

I hope it's an easy issue to fix.

The fix already exists, I suspect is causing it to fail when YTC tries to apply it. If you try the latest dev version with Firefox or Chrome you will see that the HTML5 player scales correctly.

Ah right. I hope it's a simple process to get the fix applied within the Safari version then :)

Having the same issue with Chrome and the HTML5 player running the userscript version of 2.1.7. Tried disabling all add-ons, that did nothing. Have reset settings multiple times to no avail.
Tried installing the #471 Dev build, but I got a different bug where the player would sit in front of everything else and would stay static (not sure how to describe it) on the screen when scrolling. Tried to reset the settings to default but the page would lock up after clicking "Save & Reload/Reset", and upon manually refreshing nothing was applied. Tried disabling all extension once again, nothing changes.
Here's a shot of the Dev build problem, I tried to demonstrate it as best as I could:

I'll just go back to using the Flash version I guess, just wanted to report my findings if they could be of any help.

@8BitCarnage This is caused by the option Enable player docking, which should have been disabled by default. Try disabling that option and see if that fixes the player's position.
For the reset settings not working has been fixed in the newest developer version.

@YePpHa Yep, build #477 is now working perfectly. Had to reset settings because the player size wouldn't go past ~50% fill no matter what option was chosen, whether it were in percent or pixels, but now it's working as it did a few months ago. Thanks heaps.

Just got build #486 for Safari, and I don't want to jump the gun here, but it seems as though my issue is fixed, videos are filling the player properly.

@YePpHa Confirmed this is a persisting issue in chrome 43.0.2357.81, version dev. #525 with docking disabled. A workaround *grumble* is to "Disable player resizing" in the resize tab, but if you could, a fix would be awesome, thanks!
PS: I am happy to help debug if needed.

Yep, this bug is back as of 525 :(


Operating etcd clusters for Kubernetes

Url link:- https://kubernetes.io/docs/tasks/administer-cluster/configure-upgrade-etcd/
in the etcd member list to ge the the member ID cmd,the endpoint details "member1=http://<IP_ADDRESS>" are not mentioned.
it is mentioned as below in Docs
etcdctl --endpoints=http://<IP_ADDRESS>,http://<IP_ADDRESS> member list
it shoud be
etcdctl --endpoints=http://<IP_ADDRESS>,http://<IP_ADDRESS>,http://<IP_ADDRESS> member list
Can you please do the needful

etcdctl --endpoints=http://<IP_ADDRESS>,http://<IP_ADDRESS> member list looks right to me if http://<IP_ADDRESS> has failed. I do wonder though if the sample output:
8211f1d0f64f3269, started, member1, http://<IP_ADDRESS>:2380, http://<IP_ADDRESS>:2379
91bc3c398fb3c146, started, member2, http://<IP_ADDRESS>:2380, http://<IP_ADDRESS>:2379
fd422379fda50e48, started, member3, http://<IP_ADDRESS>:2380, http://<IP_ADDRESS>:2379

is correct?


zipfile.BadZipFile: File is not a zip file while pip install face_recognition

face_recognition version: 1.2.3
Python version: 3.6.8
Operating System: Ubuntu

Description
I was simply trying to install face_recognition module, and tried through all these commands:
pip install face_recognition==1.2.3
pip install face_recognition
pip3 install face_recognition==1.2.3
pip3 install face_recognition

All of them have given the below error:
Collecting face_recognition==1.2.3
  Using cached face_recognition-1.2.3-py2.py3-none-any.whl (21 kB)
Collecting Click>=6.0
  Using cached click-7.1.2-py2.py3-none-any.whl (82 kB)
Collecting dlib>=19.7
  Using cached dlib-19.21.1.tar.gz (3.6 MB)
Collecting face-recognition-models>=0.3.0
  Using cached face_recognition_models-0.3.0-py2.py3-none-any.whl
ERROR: Exception:
Traceback (most recent call last):
  File "/home/vagdevik/venv/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 224, in _main
    status = self.run(options, args)
  File "/home/vagdevik/venv/lib/python3.6/site-packages/pip/_internal/cli/req_command.py", line 180, in wrapper
    return func(self, options, args)
  File "/home/vagdevik/venv/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 321, in run
    reqs, check_supported_wheels=not options.target_dir
  File "/home/vagdevik/venv/lib/python3.6/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 122, in resolve
    requirements, max_rounds=try_to_avoid_resolution_too_deep,
  File "/home/vagdevik/venv/lib/python3.6/site-packages/pip/_vendor/resolvelib/resolvers.py", line 445, in resolve
    state = resolution.resolve(requirements, max_rounds=max_rounds)
  File "/home/vagdevik/venv/lib/python3.6/site-packages/pip/_vendor/resolvelib/resolvers.py", line 339, in resolve
    failure_causes = self._attempt_to_pin_criterion(name, criterion)
  File "/home/vagdevik/venv/lib/python3.6/site-packages/pip/_vendor/resolvelib/resolvers.py", line 207, in _attempt_to_pin_criterion
    criteria = self._get_criteria_to_update(candidate)
  File "/home/vagdevik/venv/lib/python3.6/site-packages/pip/_vendor/resolvelib/resolvers.py", line 198, in _get_criteria_to_update
    for r in self._p.get_dependencies(candidate):
  File "/home/vagdevik/venv/lib/python3.6/site-packages/pip/_internal/resolution/resolvelib/provider.py", line 172, in get_dependencies
    for r in candidate.iter_dependencies(with_requires)
  File "/home/vagdevik/venv/lib/python3.6/site-packages/pip/_internal/resolution/resolvelib/provider.py", line 171, in <listcomp>
    r
  File "/home/vagdevik/venv/lib/python3.6/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 257, in iter_dependencies
    requires = self.dist.requires() if with_requires else ()
  File "/home/vagdevik/venv/lib/python3.6/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 239, in dist
    self._prepare()
  File "/home/vagdevik/venv/lib/python3.6/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 226, in _prepare
    dist = self._prepare_distribution()
  File "/home/vagdevik/venv/lib/python3.6/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 319, in _prepare_distribution
    self._ireq, parallel_builds=True,
  File "/home/vagdevik/venv/lib/python3.6/site-packages/pip/_internal/operations/prepare.py", line 480, in prepare_linked_requirement
    return self._prepare_linked_requirement(req, parallel_builds)
  File "/home/vagdevik/venv/lib/python3.6/site-packages/pip/_internal/operations/prepare.py", line 524, in _prepare_linked_requirement
    req, self.req_tracker, self.finder, self.build_isolation,
  File "/home/vagdevik/venv/lib/python3.6/site-packages/pip/_internal/operations/prepare.py", line 89, in _get_prepared_distribution
    return abstract_dist.get_pkg_resources_distribution()
  File "/home/vagdevik/venv/lib/python3.6/site-packages/pip/_internal/distributions/wheel.py", line 30, in get_pkg_resources_distribution
    with ZipFile(self.req.local_file_path, allowZip64=True) as z:
  File "/usr/local/anaconda/lib/python3.6/zipfile.py", line 1131, in __init__
    self._RealGetContents()
  File "/usr/local/anaconda/lib/python3.6/zipfile.py", line 1198, in _RealGetContents
    raise BadZipFile("File is not a zip file")
zipfile.BadZipFile: File is not a zip file

This issue was fixed upon clearing the pip cache using the below command:
rm -rf ~/.cache/pip


Direct memory access to OSPData objects

I would like to discuss a suggestion for an API extension that could provide some performance benefits and reduce memory requirements of an application.
Currently, OSPRay only provides the ospNewData function, which requires that the data to be put into the buffer is already available upon initialization of the OSPData object. Since applications commonly hold geometry data in an internal format that is not compatible with OSPRay's format, a conversion is typically necessary before handing the data over to OSPRay. Thus, we need to perform the following steps:

Allocate a temporary buffer (e.g. using std::vector).
Copy the application's data to the temporary buffer and convert it to the format required by OSPRay.
Call ospNewData with a pointer to the temporary buffer. ospNewData copies the data to its internal storage.

I know that ospNewData provides the OSP_DATA_SHARED_BUFFER flag, and this would avoid the extra data copy in step 3, but this places an extra burden on the application developer, who has to keep the temporary buffer alive for the entire duration of the rendering process and the application has no way of knowing when the reference-counted OSPData object actually goes out of scope. So the memory management should remain the responsibility of the OSPData object alone.
To circumvent this kind of problem, other graphics APIs such as OpenGL provide direct access to the internal memory of the buffer object. Using a pair of map/unmap calls, returning a pointer to the internal data array, it becomes possible for the application to directly write into the buffer and no extra memory copy is needed:

Allocate a memory buffer using ospNewData. Specify the size/data type, but do not initialize the memory.
Acquire a pointer to the internal memory buffer using ospMapData() (API function to be added).
Copy the application's data to the buffer and convert it to the format required by OSPRay.
Finish the operation by calling ospUnmapData() (or, perhaps, simply call ospCommit() to complete the transaction).

FYI, we plan to support both in v3: transferring ownership of app-created buffers to OSPRay (e.g. std::vector) and also a map/unmap API for arrays.

OSPRay finally supports the "move-semantic" for data in v3.0 (via the new deleter callbacks of ospNewSharedData). The additional proposal to add a map API call for ospNewData data is already specified in ANARI (see https://github.com/KhronosGroup/ANARI-Docs/issues/54) and will eventually by supported as well by OSPRay (though "when" is not entirely clear..).


[Question] Removing points within radius of another point

I'd like to be able to do whats stated in the title.
It seems like .within() only returns the values of points, but not the actual coordinates.
Is it possible to do this without duplicating the position in the value type?

Hi - I'll have a think about this and get back to you 👍🏼


IE Issues

Documentation Select:

[x] IE 11, IE 10: Input field with Placeholder has height of 0
[x] IE 11, IE 10: Vacation select opens, but when clicking it doesn't allow to select an Option with mouseDown
(with the Keyboard it works) - also with Bootstrap styles
[x] IE 9: Combobox is not focusable (seems like the underlaying input is on top)

Combobox

[x] IE 10: You can only click on the placeholder (in general there seems to be a height issue with all inputs)
[x] IE 11, IE 10: there is an "x" in every input. Investigate how to hide it.

Toggle

[ ] IE11 and lower: With Bootstrap styles there is an issue at the border/background top of the handle
[ ] IE11 and lower: On Belle with classic focus style you can see the Toggle is loosing focus

Minor issues:

[ ] IE11 and lower: The textinput autogrows is bit laggy on IE.
[ ] IE11 and lower: The select menu positioning is a bit off.
[ ] IE9 Toggle is not animated onClick (that's ok)
[ ] IE9 Rating has now textShadow (that's ok)
[ ] IE8 Failing with some React internals (that's ok)

Could not replicate this:  IE 9: Combobox is not focusable (seems like the underlaying input is on top)

Toggle point 1: 'IE11 and lower: With Bootstrap styles there is an issue at the border/background top of the handle'...
this can not be fixed as toggle will break on other browsers then.


DOC: improved documentation for stats.ppcc_max

closes gh-678

I added a basic test for regression and a lot of documentation since it was almost non-existent.
I ran a few tests but I didn't understand well enough the concept of bracketing to come up with meaningful tests. Advice welcome.

The added test was failing on Python 2.6 only:
======================================================================
FAIL: test_morestats.test_ppcc_max_bad_arg
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/virtualenv/python2.6.9/lib/python2.6/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/home/travis/build/scipy/scipy/build/testenv/lib/python2.6/site-packages/scipy/stats/tests/test_morestats.py", line 747, in test_ppcc_max_bad_arg
    assert_almost_equal(stats.ppcc_max(x), -0.71215366521264145, decimal=16)
  File "/home/travis/virtualenv/python2.6.9/lib/python2.6/site-packages/numpy/testing/utils.py", line 468, in assert_almost_equal
    raise AssertionError(msg)
AssertionError:
Arrays are not almost equal to 16 decimals
 ACTUAL: -0.71215367553074349
 DESIRED: -0.71215366521264145

I'm not sure why on Python 2.6 the behavior is different, but might be good to add a comment that for Python >=2.7 the test is OK up to the last significant digit.

You can test the dist keyword with a similar approach as is done for ppcc_plot. It checks that both a string and a distribution instance are accepted and give the same result.

For testing the brack keyword, you can use a simple analytical function for which you know the minimum (say 0.5*x**2 + 5). Then you can test with the default interval (should not find the minimum, but stop at interval end) and with a large interval that includes the minimum (5).

You documented that a<b<c for brack, so can you verify that you get an understandable error message if that's not the case?

Docs look good at first sight.

I have added the commented changes, excepting the one for brack keyword test.

All changes look good to me. It would still be useful to add the test for brack that I suggested in https://github.com/scipy/scipy/pull/4998#issuecomment-115990238

Please check the addition of tests and the wording of Notes section in the docstring.

Changes look fine to me. If TravisCI is happy then this can be merged I think.

No need to add a new commit for the one blank line that the PEP8 check doesn't like, I'll fix that up when merging.

Merged in 6756b3c, thanks @aeklant!

Merged in 6756b3c, thanks @aeklant!


Adjust docker container security to reduce lag

Enhancement Type
Not sure
Describe the enhancement
I noticed a marked lag spike ~every 2 to 3 seconds or so for .25 to .5 seconds making fighting anything rather painful.  Upon searching some docker posts online, I found this: https://pythonspeed.com/articles/docker-performance-overhead/
I didn't track down the exact setting, but noticed when I completely disable docker security the lag is completely gone.
It'd be nice to determine what setting(s) would help improve speed while still offering some of the security docker provides and have the process to spin up a server set that accordingly.

That's an interesting find, but I'm not sure what you want me to enhance? Even adding to the container's README is not prudent since the flag is a general docker parameter.


Generate MSRV badge failed

Duplicates

[X] I have searched the existing issues

Current behavior 😯
The last execution of the GitHub Action that generates the MSRV badge failed with the following message:
Unable to find a Minimum Supported Rust Version (MSRV).
Expected behavior 🤔
I ran cargo msrv locally and the msrv should be 1.60.0.
Steps to reproduce 🕹
Run the GitHub action manually.

I think that perhaps the version of cargo-msrv installed by the action needs to be updated. Currently it installs ~0.12. With the latest update to git-repository, the MSRV might have been bumped above a version that<EMAIL_ADDRESS>supports. I'll have to see if I can recreate this with a local install of cargo-msrv.

Somewhat related: Cargo.toml can now have a rust-version (starting with 1.56), which we may want to add.

https://github.com/spenserblack/onefetch/commit/ea9fbbe03074c01cd9476eaac7b868d7776712e9


Support Earliest Start Date

User Story:
As a user, I want to have an earliest start date field so that my tasks are not scheduled right after I make the task, giving me time to start the task at a later time
Acceptance Criteria:

Task is scheduled for after the earliest start date

Why is the feature required?
Adds an extra feature that would meet the needs of a user
Describe the solution you'd like
An extra field for earliest start date in the add task form

LGTM


Return "Dummy Parameter" Schema for Functions with No Parameters

Functions with no parameters don't appear to be supported natively by OpenAI or Anthropic with their Tools APIs, so for easier use with defining "trigger" functions that don't require any parameters, it'd be great to have a dummy parameter provided instead.
For instance, if a function like this:
def hello_world():
    """
    Returns the "Hello World!" string.
    """
    return "Hello World!"

were to have a JSON schema created for it right now, it'd be missing the parameters key, which is required. This is also the case when renaming it to input_schema for the new Claude 3 Tools API.
As a workaround, I've been adding parameters to the JSON schema manually by checking if it exists and updating the schema accordingly:
for schema in schemas:
    if 'parameters' not in schema:
        schema['parameters'] = {'type': 'object', 'properties': {'dummy_property': {'type': 'null'}}}

This lets functions with no parameters be used with the OpenAI or Anthropic APIs, so it'd be nice to have this functionality provided under-the-hood natively to make using parameter-less functions easier.

Also happy to make a PR to assist with this, just like with my other issue 😄

Looks like they added an example of how to do this and quietly patched it: https://docs.anthropic.com/claude/docs/tool-use-examples Non-issue now!


Unit tests: fix for faker API change on latest version.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 2 committers have signed the CLA.:white_check_mark: jerome-benoit:x: gochaxYou have signed the CLA already but the status is still pending? Let us recheck it.


alert "user already exists" should come earlier

When logging for the first time , a person need to choose images and colors before he gets to know that the user exists , so he would have to do all the procedure once again. I think that the new user should get to know in the first page where he enters his name whether the user already exists or not.

@llaske @anshuldutt21 I am trying to reproduce the error but I am not able to do it . I cloned sugarizer:dev repository . Can I get some more information so that I can fix this error.Locally in my browser when I logoff a user and register another user with same username it doesn't give any error

@abhishektanwar , it happens only when you're connected to a server. Try on https://dev.sugarizer.org

@llaske, I want to propose a solution for this. When the user clicks 'Next' after entering name, we can POST the name along with a beforeSignup flag to the signup URL. A little modification in the signup method on the server will check this flag and use existing functions to validate the uniqueness of username. This would reuse existing routes and functions.

Fixed in https://github.com/llaske/sugarizer/pull/786

Require fix https://github.com/llaske/sugarizer-server/pull/266 on server.


MediaQueryListListener should provide a MediaQueryListEvent

In<EMAIL_ADDRESS>this was:
interface MediaQueryListListener {
    (mql: MediaQueryList): void;
}
interface MediaQueryList {
    readonly matches: boolean;
    readonly media: string;
    addListener(listener: MediaQueryListListener): void;
    removeListener(listener: MediaQueryListListener): void;
}

As of Microsoft/TypeScript#25944 this is now:
interface MediaQueryList extends EventTarget {
	...
    addListener(listener: EventListenerOrEventListenerObject | null): void;
    ...
}

According to mdn this is better than before, but it could be more specific -- the event will always be a MediaQueryListEvent, but currently will just be an Event.
This affects match-media-mock on DefinitelyTyped.

Also the addListener/removeListener pair should be marked as deprecated as now the standard add/removeEventListener is preferred.

Also the addListener/removeListener pair should be marked as deprecated as now the standard add/removeEventListener is preferred.

@saschanaz Where did you find that they should be deprecated?
In the standard there is no word about deprecation.
https://drafts.csswg.org/cssom-view/#dom-mediaquerylist-addlistener

@SteppeEagle The deprecation in the web specification means it would generate a warning message in runtime when used, and the web people now don't want to use such mechanism. They instead marks a type as "historical, only for backward compatibility" and that's what we currently refer to add @deprecated.
Per the spec they are historical:

Note: This specification initially had a custom callback mechanism with addListener() and removeListener(), and the callback was invoked with the associated media query list as argument. Now the normal event mechanism is used instead. For backwards compatibility, the addListener() and removeListener() methods are basically aliases for addEventListener() and removeEventListener(), respectively, and the change event masquerades as a MediaQueryList.

This is related, https://github.com/angular/material2/issues/15264, Safari doesn't implement addEventListener/RemoveEventListener which leaves us no option but to use the historical APIs and redefine the MediaQueryList interface in our codebases .....

@teleaziz Can't one just add a polyfill in case addEventListener doesn't exist?

Or maybe one can just add // tslint:disable-next-line:deprecation over the specific lines.


nixos/sway: add enableRealtime option

Description of changes
This option wraps the sway binary to allow it to request realtime scheduling (SCHED_RR). This allow for possible lower latency, specially when the system is under high load.
Available since Sway 1.8. See:

https://github.com/swaywm/sway/pull/6994
https://github.com/swaywm/sway/releases/tag/1.8

Things done

Built on platform(s)

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

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

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

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

To test:
ps -cTa | grep sway
3691858 3691858 RR   41 tty7     00:00:02 sway
3691858 3691861 TS   39 tty7     00:00:00 sway:cs0
3691858 3691862 B    39 tty7     00:00:00 sway:disk$0
3691858 3691863 TS   39 tty7     00:00:00 sway:sh0
3691858 3691864 B    39 tty7     00:00:00 sway:shlo0
3691858 3691865 TS   39 tty7     00:00:00 sway:gdrv0
3691858 3691866 TS   39 tty7     00:00:00 sway:gl0
3691858 3691867 TS   39 tty7     00:00:00 sway:sh1
3691858 3691868 TS   39 tty7     00:00:00 sway:sh2
3691858 3691869 TS   39 tty7     00:00:00 sway:sh3
3691858 3691870 B    39 tty7     00:00:00 sway:disk$0
3691858 3691871 TS   39 tty7     00:00:00 sway:sh0
3691858 3691872 B    39 tty7     00:00:00 sway:shlo0
3691879 3691879 TS   39 tty7     00:00:00 swaybg

You can see that the main sway binary is running with RR class for scheduling, that is for SCHED_RR (see: https://unix.stackexchange.com/a/407615).

Dupe of https://github.com/NixOS/nixpkgs/pull/207842

Dupe of https://github.com/NixOS/nixpkgs/pull/207842

There are a few differences in the approach though, this one is simpler and is recommended by @kanashimia  during review. Also, not enabled by default.
So I think either one or the other approach should be merged, for sure, but not exactly duplicated.

CC @Artturin.

FWIW my sway desktop started leaking capabilities:
$ getpcaps 0
0: cap_sys_nice=eip cap_setpcap+i

Does the patch still work on your end?

FWIW my sway desktop started leaking capabilities:
$ getpcaps 0
0: cap_sys_nice=eip cap_setpcap+i

Does the patch still work on your end?

I went back to using the security.pam.loginLimits because I am using the Sway module, but can confirm that the patch doesn't seem to work.
CC @Emantor.

@thiagokokada can you please revert this PR? Or at least disable it by default. It doesn't work correctly and breaks pipewire-jack, as it relies on LD_LIBRARY_PATH and with this it is unset, previous PR also broke steam, but now it works for some reason, perhaps something was changed in the bubblewrap usage.

@thiagokokada can you please revert this PR? Or at least disable it by default. It doesn't work correctly and breaks pipewire-jack, as it relies on LD_LIBRARY_PATH and with this it is unset, previous PR also broke steam, but now it works for some reason, perhaps something was changed in the bubblewrap usage.

Feel free to open a PR to disable it by default.

I created PR https://github.com/NixOS/nixpkgs/pull/263206 to revert this, feel free to voice your opinions there.

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

Is it possible to revisit this patch? If I'm reading the documentation correctly "cap_sys_nice+ep-i", and applying it to sway-unwrapped should fix the issues with inheritance?

thanks aloisw pointing out that they have it working in kwin, so I've stolen the patches from there: https://github.com/YellowOnion/nixos-config/commit/38d1fc8270ed0f4b937e127dd7201622230b94a8
I'll turn this in to a nixos module tomorrow.

Another option is to change the rtprio limit to one for a group of users or a user, this does not require additional patches to sway.


Get-MicrosoftTeams displays slightly wrong formatted version number

Describe the bug
The version number from the PowerShell Module shows for example: <IP_ADDRESS>58
Where appwiz.cpl and the MSI itself report: <IP_ADDRESS>58
To Reproduce
Steps to reproduce the behavior:

(Get-MicrosoftTeams | Where-Object {$_.Architecture -eq "x64"}).Version

Expected behavior
The command should report <IP_ADDRESS>58 IMHO
Screenshots
Not applicable.
Desktop (please complete the following information):

OS: Windows Server 2016 Datacenter de-DE

PS C:\Users\xenadmin\Downloads> gcm *ever*
CommandType     Name                                               Version    Source
-----------     ----                                               -------    ------
Function        Export-EvergreenFunctionStrings                    2005.176   Evergreen
Function        Export-EvergreenResourceStrings                    2005.176   Evergreen

Additional context
Nothing.

Unfortunately this is the version format that comes from the update query at https://teams.microsoft.com/package/desktopclient/update/<IP_ADDRESS>462/windows/x64?ring=general. I'm not sure why the version numbers would be different.

@xenadmin you can work around this in your own code by casting to System.Version then converting back to a string, e.g:
[string][version]'<IP_ADDRESS>58'
<IP_ADDRESS>58

([version]'<IP_ADDRESS>58').ToString()
<IP_ADDRESS>58

Careful applying it all values though, it'll fall over if the original string isn't a valid version, e.g. it contains letters.


refactor(calendar): replace deprecated ngOutletContext

Use ngTemplateOutletContext instead.
PR Checklist
Please check if your PR fulfills the following requirements:

[X] The commit message follows our guidelines: https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/CONTRIBUTING.md#commit
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

PR Type
What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[X] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Application (the showcase website) / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

My test app using ng-zorro-antd is compiled OK with Angular 5.0.0-beta.5 but not started, because the beta version removed deprecated ngOutletContext which is currently used in the calendar module, even though the module is not used from my app.

Error: Template parse errors:
Can't bind to 'ngOutletContext' since it isn't a known property of 'ng-template'.

If 'ngOutletContext' is an Angular directive, then add 'CommonModule' to the<EMAIL_ADDRESS>of this component.
To allow any property add 'NO_ERRORS_SCHEMA' to the<EMAIL_ADDRESS>of this component. (" *ngIf="dateCell"
[ngTemplateOutlet]="dateCell"
[ERROR ->][ngOutletContext]="{ $implicit: day}">

<"): ng:///NzCalendarModule/NzCalendarComponent.html@79:26

Issue Number: N/A
What is the new behavior?
With this commit, expect that the error above disappears when my app starts.
Does this PR introduce a breaking change?
[ ] Yes
[X] No

Other information

Coverage remained the same at 40.348% when pulling 052ade663b6d715c0bba17e2c5d11049d5aa8ef0 on chunghha:template into e861e58a33235e2246b1e919440a92f7a972762d on NG-ZORRO:master.


Fix guard clause to allow passing key and cert chain as strings

Fixes guard clause in spring-boot-autoconfig to allow passing key and cert chain as strings.

@yassineb Thank you for the contribution!


PACKIT_PROJECT_VERSION environment variable is not being expanded in changelog-entry action

See for example these two pull-from-upstream runs:
https://dashboard.packit.dev/results/pull-from-upstream/3151
https://dashboard.stg.packit.dev/results/pull-from-upstream/757
base_git.py        INFO   Using user-defined script for ActionName.changelog_entry: [['echo', 'New release ${PACKIT_PROJECT_VERSION}']]
command_handler.py INFO   Running command: echo New release ${PACKIT_PROJECT_VERSION}
command_handler.py INFO   Output of ['echo', 'New release ${PACKIT_PROJECT_VERSION}']:
command_handler.py INFO   New release ${PACKIT_PROJECT_VERSION}

I have a feeling it's because it's evaluated without shell… so, for expansion of the macros, you'd need
bash -c "echo - New release ${PACKIT_PROJECT_VERSION}"

I might be wrong though

Or nah, first paragraph in docs

Oh, my bad. I've opened https://src.fedoraproject.org/rpms/golang/pull-request/100 and let's close this.

:+1: thx


⚠ Bofrost.lu has degraded performance

In 324a3b5, Bofrost.lu (https://www.bofrost.lu) experienced degraded performance:

HTTP code: 200
Response time: 1911 ms

Resolved: Bofrost.lu performance has improved in b9dae17 after 6 minutes.


Adding a source folder directly, rather than its contents

Typically, you'll have a source structure like so: "src/package/path/MyClass.java". When you add src to the list of sources, it will include the contents, e.g. package.path.MyClass. That is sensible.
There is a project I'm working on that has a resource folder which I'd like to add directly. E.g. Add the folder itself, not the folder's contents. For example, suppose I have structure: "images/img.png". Currently, if I add images to sources, then img.png gets copied directly to the build directory, instead of images/img.png. As a workaround, I have to rearrange the structure to be something like "src_images/images/img.png", or move into "src/images/img.png". Hope that makes sense.

So it's an unmanaged folder project right?

Yes


Feature Request: Navigating through Challenges

When doing a challenge for a particular module, if I want to go back to a previous challenge for reference, I have to go to "Curriculum" then scroll to find that challenge.
My feature request is to have a forward and back button for someone to easily scroll through challenges maybe above the description section.
Thank you

Thanks for reporting this suggestion @WillzMu - however, this appears to be a duplicate of https://github.com/freeCodeCamp/freeCodeCamp/issues/17509 - make sure to do a search before creating a new issue to see if someone else already created something related. You may have done that, sometimes they're tough to find.  Thanks and happy coding!


Missing EPS8266HTTPClient.h

I am having some issues when compiling
C:\Users\Lappy\Documents\Arduino\libraries\FirebaseArduino\FirebaseHttpClient_Esp8266.cpp:9:31: fatal error: ESP8266HTTPClient.h: No such file or directory
 #include <ESP8266HTTPClient.h>
compilation terminated.
Error compiling.

Missing EPS8266HTTPClient.h?

HTTP is downcased: FirebaseHttpClient.h

#include <ESP8266HTTPClient.h> in main file.


Implement Hard Beat

Continuation of #108.
I have made modifications to the object type to make it feel and play good. (disabled Visualizers so that you could see the particles better)
https://alten.s-ul.eu/C9BsGX3I.mp4

Minor nit: I would've pushed the hit explosion changes as its own PR, since this one was strictly considering HardBeats only.

Are there plans to actually use the colour parameter in KiaiHitExplosion?

Once i get accent colours working, yes.

👍


XML syntax error causes crash

lxml.etree.XMLSyntaxError: Opening and ending tag mismatch: testsuitesYZX line 1 and testsuites, line 1, column 19500
try/except needed to avoid crash because of corrpted XML files.

Hi Ngoan,
please look into this.
Thank you,
Thomas

Installation and syntax error handling work properly now.

solved and already merged with #24


circleci config

so i noticed the docker images no longer have builds on the docker hub after 2.038028
after look around i did see 1 strange thing. the circleci config has unicode quotes for some reason.
these commands:
--build-arg BUILD_DATE=`date -u +”%Y-%m-%dT%H:%M:%SZ”` \

it might not be very clear but the date format is using non ascii double quotes, which produce:
date -u +”%Y-%m-%dT%H:%M:%SZ”
”2019-02-28T17:24:34Z”

instead of
date -u +"%Y-%m-%dT%H:%M:%SZ"
2019-02-28T17:25:20Z

first ref:
https://github.com/netdisco/netdisco-docker/blob/dc4e52dec6ca32845d3c0de88eae0cb52c1d47a9/.circleci/config.yml#L50
last ref:
https://github.com/netdisco/netdisco-docker/blob/dc4e52dec6ca32845d3c0de88eae0cb52c1d47a9/.circleci/config.yml#L152
and a bunch more in between.

Can you give the link where you're not seeing the Netdisco builds?
If I click the "docker images ready" icon in the Netdisco wiki or homepage, then click tags, it shows the 2.040... images are there.

if you click builds there instead of tags you'll see the actual builds seem to have stopped.

 It's an awful system. The builds happen over in circle CI and work fine - the tags would not be appearing if the builds were not working, I believe.