WIP : debug build for MDC debugging

:broken_heart: Tests Failed

the below badges are clickable and redirect to their specific view in the CI or DOCS

Expand to view the summary

Build stats

Build Cause: [Pull request #1456 opened]

Start Time: 2020-10-26T17:17:53.557+0000

Duration: 27 min 50 sec

Test stats :test_tube:

Test
Results

Failed
1

Passed
1437

Skipped
9

Total
1447

Test errors
Expand to view the tests failures

Name: Tests / Unit Tests / testGeneratedConfigurationDocsAreUpToDate – co.elastic.apm.agent.configuration.ConfigurationExporterTest

Age: 1
Duration: 3.584
Error Details: The rendered configuration documentation (/docs/configuration.asciidoc) is not up-to-date.
If you see this error on CI, it means you have to execute the tests locally (./mvnw clean test -pl elastic-apm-agent -am -DfailIfNoTests=false -Dtest=ConfigurationExporterTest) which will update the rendered docs.
If you see this error while running the tests locally, there's nothing more to do - the rendered docs have been updated. When you execute this test the next time, it will not fail anymore.

Steps errors
Expand to view the steps failures

Name: Shell Script

Description: #!/bin/bash                set -euxo pipefail                ./mvnw test

Duration: 11 min 28 sec

Start Time: 2020-10-26T17:32:54.081+0000

log

Log output
Expand to view the last 100 lines of log output

[2020-10-26T17:44:36.366Z] [ERROR] 	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
[2020-10-26T17:44:36.366Z] [ERROR] 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
[2020-10-26T17:44:36.366Z] [ERROR] 	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
[2020-10-26T17:44:36.366Z] [ERROR] 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
[2020-10-26T17:44:36.366Z] [ERROR] 	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957)
[2020-10-26T17:44:36.366Z] [ERROR] 	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289)
[2020-10-26T17:44:36.366Z] [ERROR] 	at org.apache.maven.cli.MavenCli.main(MavenCli.java:193)
[2020-10-26T17:44:36.366Z] [ERROR] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2020-10-26T17:44:36.366Z] [ERROR] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2020-10-26T17:44:36.366Z] [ERROR] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2020-10-26T17:44:36.366Z] [ERROR] 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[2020-10-26T17:44:36.366Z] [ERROR] 	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
[2020-10-26T17:44:36.366Z] [ERROR] 	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
[2020-10-26T17:44:36.366Z] [ERROR] 	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
[2020-10-26T17:44:36.366Z] [ERROR] 	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
[2020-10-26T17:44:36.366Z] [ERROR] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[2020-10-26T17:44:36.366Z] [ERROR] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[2020-10-26T17:44:36.366Z] [ERROR] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[2020-10-26T17:44:36.366Z] [ERROR] 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
[2020-10-26T17:44:36.366Z] [ERROR] 	at org.apache.maven.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:39)
[2020-10-26T17:44:36.366Z] [ERROR] 	at org.apache.maven.wrapper.WrapperExecutor.execute(WrapperExecutor.java:122)
[2020-10-26T17:44:36.366Z] [ERROR] 	at org.apache.maven.wrapper.MavenWrapperMain.main(MavenWrapperMain.java:55)
[2020-10-26T17:44:36.366Z] [ERROR] -> [Help 1]
[2020-10-26T17:44:36.366Z] [ERROR]
[2020-10-26T17:44:36.366Z] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[2020-10-26T17:44:36.366Z] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
[2020-10-26T17:44:36.366Z] [ERROR]
[2020-10-26T17:44:36.366Z] [ERROR] For more information about the errors and possible solutions, please read the following articles:
[2020-10-26T17:44:36.366Z] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
[2020-10-26T17:44:36.366Z] [ERROR]
[2020-10-26T17:44:36.366Z] [ERROR] After correcting the problems, you can resume the build with the command
[2020-10-26T17:44:36.366Z] [ERROR]   mvn <args> -rf :application-server-integration-tests
[2020-10-26T17:44:36.392Z] script returned exit code 1
[2020-10-26T17:44:37.432Z] Post stage
[2020-10-26T17:44:37.456Z] Recording test results
[2020-10-26T17:44:37.506Z] Post stage
[2020-10-26T17:44:37.530Z] Recording test results
[2020-10-26T17:44:38.420Z] Running in /var/lib/jenkins/workspace/_java_apm-agent-java-mbp_PR-1456/src/github.com/elastic/apm-agent-java
[2020-10-26T17:44:38.458Z] [INFO] Codecov: Getting branch ref...
[2020-10-26T17:44:38.588Z] Masking supported pattern matches of $GITHUB_TOKEN
[2020-10-26T17:44:38.776Z] [INFO] Codecov: Sending data...
[2020-10-26T17:44:39.229Z] Running in /var/lib/jenkins/workspace/_java_apm-agent-java-mbp_PR-1456/src/github.com/elastic/apm-agent-java
[2020-10-26T17:44:39.234Z] + curl -sSLo codecov.sh https://codecov.io/bash
[2020-10-26T17:44:39.368Z] [INFO] Codecov: Getting branch ref...
[2020-10-26T17:44:39.499Z] Masking supported pattern matches of $GITHUB_TOKEN
[2020-10-26T17:44:39.600Z] + bash codecov.sh
[2020-10-26T17:44:39.600Z]
[2020-10-26T17:44:39.600Z]   _____          _
[2020-10-26T17:44:39.600Z]  / ____|        | |
[2020-10-26T17:44:39.600Z] | |     ___   __| | ___  ___ _____   __
[2020-10-26T17:44:39.600Z] | |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
[2020-10-26T17:44:39.600Z] | |___| (_) | (_| |  __/ (_| (_) \ V /
[2020-10-26T17:44:39.600Z]  \_____\___/ \__,_|\___|\___\___/ \_/
[2020-10-26T17:44:39.600Z]                               Bash-20201009-048fee3
[2020-10-26T17:44:39.600Z]
[2020-10-26T17:44:39.600Z]
[2020-10-26T17:44:39.600Z] ==> Jenkins CI detected.
[2020-10-26T17:44:39.600Z]     project root: .
[2020-10-26T17:44:39.600Z] --> token set from env
[2020-10-26T17:44:39.600Z]     Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml
[2020-10-26T17:44:39.600Z] ==> Running gcov in . (disable via -X gcov)
[2020-10-26T17:44:39.688Z] [INFO] Codecov: Sending data...
[2020-10-26T17:44:39.858Z] ==> Python coveragepy not found
[2020-10-26T17:44:39.858Z] ==> Searching for coverage reports in:
[2020-10-26T17:44:39.858Z]     + .
[2020-10-26T17:44:40.116Z] --> No coverage report found.
[2020-10-26T17:44:40.116Z]     Please visit http://docs.codecov.io/docs/supported-languages
[2020-10-26T17:44:40.197Z] + curl -sSLo codecov.sh https://codecov.io/bash
[2020-10-26T17:44:40.571Z] Failed in branch Smoke Tests 02
[2020-10-26T17:44:40.639Z] + bash codecov.sh
[2020-10-26T17:44:40.639Z]
[2020-10-26T17:44:40.639Z]   _____          _
[2020-10-26T17:44:40.639Z]  / ____|        | |
[2020-10-26T17:44:40.639Z] | |     ___   __| | ___  ___ _____   __
[2020-10-26T17:44:40.639Z] | |    / _ \ / _` |/ _ \/ __/ _ \ \ / /
[2020-10-26T17:44:40.639Z] | |___| (_) | (_| |  __/ (_| (_) \ V /
[2020-10-26T17:44:40.639Z]  \_____\___/ \__,_|\___|\___\___/ \_/
[2020-10-26T17:44:40.639Z]                               Bash-20201009-048fee3
[2020-10-26T17:44:40.639Z]
[2020-10-26T17:44:40.639Z]
[2020-10-26T17:44:40.639Z] ==> Jenkins CI detected.
[2020-10-26T17:44:40.639Z]     project root: .
[2020-10-26T17:44:40.639Z] --> token set from env
[2020-10-26T17:44:40.639Z]     Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml
[2020-10-26T17:44:40.639Z] ==> Running gcov in . (disable via -X gcov)
[2020-10-26T17:44:40.900Z] ==> Python coveragepy not found
[2020-10-26T17:44:40.900Z] ==> Searching for coverage reports in:
[2020-10-26T17:44:40.900Z]     + .
[2020-10-26T17:44:41.470Z] --> No coverage report found.
[2020-10-26T17:44:41.470Z]     Please visit http://docs.codecov.io/docs/supported-languages
[2020-10-26T17:44:41.796Z] Failed in branch Smoke Tests 01
[2020-10-26T17:44:42.063Z] Stage "Integration Tests" skipped due to earlier failure(s)
[2020-10-26T17:44:42.147Z] Stage "AfterRelease" skipped due to earlier failure(s)
[2020-10-26T17:44:42.185Z] Stage "AfterRelease" skipped due to earlier failure(s)
[2020-10-26T17:44:42.486Z] Running on Jenkins in /var/lib/jenkins/workspace/_java_apm-agent-java-mbp_PR-1456
[2020-10-26T17:44:42.581Z] [INFO] getVaultSecret: Getting secrets
[2020-10-26T17:44:42.812Z] Masking supported pattern matches of $VAULT_ADDR or $VAULT_ROLE_ID or $VAULT_SECRET_ID
[2020-10-26T17:44:43.698Z] + chmod 755 generate-build-data.sh
[2020-10-26T17:44:43.698Z] + ./generate-build-data.sh https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-java/apm-agent-java-mbp/PR-1456/ https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-java/apm-agent-java-mbp/PR-1456/runs/1 FAILURE 1609873
[2020-10-26T17:44:44.248Z] INFO: curl https://apm-ci.elastic.co/blue/rest/organizations/jenkins/pipelines/apm-agent-java/apm-agent-java-mbp/PR-1456/runs/1/steps/?limit=10000 -o steps-info.json

Debug build not required anymore.


Add combined form names

One thing I noticed while dumping sword/shield data, but I forgot to bring up until now, is that alolan forms had their name changed from "Alola Form" (see for example Alolan Rattata, which is missing from sw/sh), to "Alolan Form" (for example Alolan Raichu). Since a few evolution lines are missing from sw/sh (Rattata, Geodude, Grimer) they still have the old name, I wonder if we should manually change it for them as well.
Otherwise looks good

Good point. I think we should probably go ahead and change the others. Only the english name changed, right?

Only the english name changed, right?

Correct, in every other language they stayed the same as they were in the generation 7 games


/register/: Make the text error fall on own line.

This makes the text error fall on its own line rather than being inline
and pushing the checkbox over out of line with the rest of the elements.

Nice, merged, thanks @brockwhittaker!  Can you also make the checkbox prettier?


"iterating over tf.Tensor is not allowed" when training object detection model with pyinstaller

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows Server 2016
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
TensorFlow installed from (source or binary): binary
TensorFlow version (use command below): 2.7.0
Python version: 3.8.8
Bazel version (if compiling from source):
GCC/Compiler version (if compiling from source):
CUDA/cuDNN version: 11.2/8
GPU model and memory: Nvidia GTX 1080 Ti

I am training a detection model with a Python script using the object_detection module (with TF2). The script works perfectly fine when executed with Python (python TrainSuspendedElementsDetection.py ...), apart from a load of deprecation warnings. Problems arise when I try to convert the Python script to an executable with pyinstaller (last version 4.9). When launching the executable an exception occurs at the beginning of the training loop:
Traceback (most recent call last):
File "TrainSuspendedElementsDetection.py", line 256, in
File "tensorflow\python\platform\app.py", line 40, in run
File "absl\app.py", line 303, in run
File "absl\app.py", line 251, in _run_main
File "TrainSuspendedElementsDetection.py", line 181, in main
File "object_detection\model_lib_v2.py", line 678, in train_loop
File "tensorflow\python\util\traceback_utils.py", line 153, in error_handler
File "tensorflow\python\util\traceback_utils.py", line 150, in error_handler
File "tensorflow\python\eager\def_function.py", line 910, in call
File "tensorflow\python\eager\def_function.py", line 958, in _call
File "tensorflow\python\eager\def_function.py", line 780, in _initialize
File "tensorflow\python\eager\function.py", line 3157, in _get_concrete_function_internal_garbage_collected
File "tensorflow\python\eager\function.py", line 3557, in _maybe_define_function
File "tensorflow\python\eager\function.py", line 3392, in _create_graph_function
File "tensorflow\python\framework\func_graph.py", line 1143, in func_graph_from_py_func
File "tensorflow\python\eager\def_function.py", line 672, in wrapped_fn
File "tensorflow\python\framework\func_graph.py", line 1118, in autograph_handler
File "tensorflow\python\autograph\impl\api.py", line 440, in converted_call
File "tensorflow\python\autograph\impl\api.py", line 490, in _fall_back_unconverted
File "tensorflow\python\autograph\impl\api.py", line 464, in _call_unconverted
File "object_detection\model_lib_v2.py", line 659, in _dist_train_step
File "tensorflow\python\framework\ops.py", line 572, in iter
File "tensorflow\python\framework\ops.py", line 561, in _disallow_iteration
File "tensorflow\python\framework\ops.py", line 525, in _disallow_when_autograph_unavailable
tensorflow.python.framework.errors_impl.OperatorNotAllowedInGraphError: iterating over tf.Tensor is not allowed: AutoGraph is unavailable in this runtime. See https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/autograph/g3doc/reference/limitations.md#access-to-source-code for more information.
Attached are:

TrainSuspendedElementsDetection.py: The source code of the Python script (the problem occurs at line 181 when calling the training loop of the object_detection module)
pipeline.config: The configuration file of the training process
TrainSuspendedElementsDetection.spec: the spec file used by pyinstaller
log.txt: the log file of the pyinstaller output. I saw numerous errors relative to modules not found, but it does not seem to have any impact in the execution of the progra
pyinstaller.zip
m

Update: I found some workarounds.

Decorate the "_dist_train_step" function in model_lib_v2.py in the object_detection module with<EMAIL_ADDRESS>It will apparently avoid to convert the function into a TF graph, but doing this is not satisfying since it makes the training about 10x slower.
In the train_loop function of the object_detection module, set the parameter num_steps_per_iteration to 1 (instead of 100), which prevents the dist_train_step function from using a "for" loop, which apparently was the cause of the previous failure. However, I do not know how this parameter will affect the efficiency of the training. If someone could enhance my knowledge with the solution to this mystery is would be greatly appreciated :-)

@Rayndell
In order to expedite the trouble-shooting process, please provide a code snippet to reproduce the issue reported here. Thanks!

Here is a minimal example (models\research should be added to the PYTHON_PATH environment variable). It works by giving to the pipeline_config_path parameter the config file added in the zip file in the message above, but it should work with any config file from TF2 samples.
import tensorflow as tf
from object_detection import model_lib_v2

tf.config.set_soft_device_placement(True)
strategy = tf.compat.v2.distribute.MirroredStrategy()
with strategy.scope():
	model_lib_v2.train_loop(
			pipeline_config_path=pipeline_config_path,
			model_dir="./Train",
			train_steps=100000,
			use_tpu=False,
			checkpoint_every_n=1000,
			checkpoint_max_to_keep=5,
			record_summaries=False,
			num_steps_per_iteration=100)

Note that this code works perfectly fine when executing it within the Pyton environment. Problems arise when converting the program to an executable with pyinstaller. As noted above, it works well when putting num_steps_per_iteration to the value 1, since it skips the "for" loop in the dist_train_step function.

Hi,
Thank you for opening this issue. Since this issue has been open for a long time, the code/debug information for this issue may not be relevant with the current state of the code base.
The Tensorflow team is constantly improving the framework by fixing bugs and adding new features. We suggest you try the latest TensorFlow version with the latest compatible hardware configuration which could potentially resolve the issue. If you are still facing the issue, please create a new GitHub issue with your latest findings, with all the debugging information which could help us investigate.
Please follow the release notes to stay up to date with the latest developments which are happening in the Tensorflow space.


An lzw-like compress/decompress

Hi,
Firstly, thank you for sharing your excellent work!
There's an compression format called terse, and IBM has published a decompresser for it -
https://github.com/openmainframeproject/tersedecompress
If/when you have time, would you be able to look at this to add support for it to this crate.
Or maybe advise on what I'd need to change.
It also works with 12 bits of input at a time.
There are 2 variants - PACK and SPACK. I'm only interested in the PACK variant.
I can share a Rust "port" of the above Java impl privately, if that'll help.
Thanks in advance for any guidance you can give.
PS: I'm pretty novice w.r.t programming; so it'd take ages for me to fully understand your work.

Any thoughts, @redwarp ?

Hi there, I think you might be mixing things a bit: this is an implementation of the lzw compression written in rust.
Nothing more, nothing less, so I would not increase its complexity.
And you are looking for some compression tools written in Java.
So I'm not really sure what you are asking here but I don't think I can help you, these are two completely different projects.

And you are looking for some compression tools written in Java.

It has both compr and decompr. And the algo is based on LZW, so was wondering if you had time/interest to add support for a variant/flavour (like it currently supports tiff gif).

Well, sorry, but I really know nothing about this IBM thing, so I won't really be able to provide any help or support for it 🥲

No worries, thanks for responding (and again for sharing your work here).


Fix typos

Hey,
This PR will fix :

1 typo in _ecosys/producers/inova8-OData2SPARQL.md
1 typo in _libraries/OpenUI5.md
1 typo in pages/documentation/atom-format-v3.html
1 typo in pages/documentation/batch-processing-v3.html
1 typo in pages/getting-started/understand-odata-in-6-steps.html

Ciao! :robot:

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.:x: pgrimaud sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


Verify if number have whatsapp

Hi, What is the better way to verify if a number have whatsapp?
I am using SendQueryLastOnline to verify if returns any kind of date but I cant found a better way atm.

Instance.SendSync(new string[] { number }, ApiBase.SyncMode.Full, ApiBase.SyncContext.Background);

void Instance_OnGetSyncResult(int index, string sid, Dictionary<string, string> existingUsers, string[] failedNumbers)
{
//existingUsers
//failedNumbers
}

@netomarquis is your SendQueryLastOnline working properly?

I need to check number exist with whatsapp or not?
I have tried with this function
public static string RequestExist(string phoneNumber, string id = null)
but "json response is incorrect"
What should i do? Help me...!

As @yndmai45 has said, use sync

I am unable to use it. Can you please help me?
I have an excel sheet of numbers and I just need to create a filter for whatsapp registered numbers.
Thanks


[sw/rom] Enable rnd_uint32() testing with RV core registers

The rnd_uint32() is currently not getting entropy from the RV Ibex wrapper peripheral.  This issue is to track integration tests once the the feature is implemented in hardware.
https://cs.opensource.google/opentitan/opentitan/+/master:hw/ip/rv_core_ibex/rtl/rv_core_ibex.sv?q=rnd_data

it seems this PR defined the solution but it was never implemented beyond the register definition.
I will take a quick look.

Implementing this is one of the outstanding items for Ibex D2S, I was planning to implement it shortly.


at-who div not scrolling with window (again)

Hello! I'm still having an issue with the at-who list moving when scrolling the window, or when the window scrolls itself (chat application). I did read about #166, and that it was fixed, but I'm still seeing this issue with the latest of at.js. Please see attached image:
This one is correct: http://i.imgur.com/VPDFW4P.png
This one shows what happens after the window scrolls a bit: http://i.imgur.com/FojpJpt.png
Note, I am using an input element, not a div or textarea.

hmmm... I forgot how it's fixed.
But now you can listen to the window's scroll or resize event and call the reposition api to reposition the view:
$textField.atwho('@', 'reposition')

Thanks! It's working great now. Though the code you provided doesn't work, I did find that removing the '@' does, like so:
$textField.atwho('reposition')

One more small thing. Every time I reposition the window using this code, it writes to the console. Is there a setting I can set to make it not do that? It's not a big deal, but I'd like to keep the console clean.

I removed it in v1.3.0 , sorry about that.


Workaround SSLEngine.unwrap(...) bug in Android 5.0

Motivation:
Android 5.0 sometimes not correctly update the bytesConsumed of the SSLEngineResult when consuming data from the input ByteBuffer. This will lead to handshake failures.
Modifications:
Add a workaround for Android 5.0
Result:
Be able to use netty on Android 5.0 by fixing https://github.com/netty/netty/issues/7758 .

@MarkVilkel  reported it fixes his issues 👍


Wrong endianness when using io.write_bytes in macOS M1

Bug Report
I was trying the Tourmaline library when I encountered different behavior depending on the platform.
The following code outputs different results depending on the platform:
some_text = "this is some raw text"

text = some_text.gsub('\u{0}', "") + ' '
codepoints = text.to_utf16

io = IO::Memory.new
io.set_encoding("UTF-16")

codepoints.each do |codepoint|
  io.write_bytes(codepoint, IO::ByteFormat::LittleEndian)
end

output_string : String = io.rewind.gets_to_end

puts output_string.bytes.to_s

macOS
 $ crystal -v
Crystal 1.7.2 (2023-01-23)

LLVM: 14.0.6
Default target: aarch64-apple-darwin21.6.0
 $ crystal run something.cr
[231, 144, 128, 230, 160, 128, 230, 164, 128, 231, 140, 128, 226, 128, 128, 230, 164, 128, 231, 140, 128, 226, 128, 128, 231, 140, 128, 230, 188, 128, 230, 180, 128, 230, 148, 128, 226, 128, 128, 231, 136, 128, 230, 132, 128, 231, 156, 128, 226, 128, 128, 231, 144, 128, 230, 148, 128, 231, 160, 128, 231, 144, 128, 226, 128, 128]

Linux x86_64
https://play.crystal-lang.org/#/r/ehf6
[116, 104, 105, 115, 32, 105, 115, 32, 115, 111, 109, 101, 32, 114, 97, 119, 32, 116, 101, 120, 116, 32]

The Linux one is the correct one as those bytes correspond to the utf-8 version of the string "this is some raw text", the one in macOS is gibberish.
I noticed when using IO::ByteFormat::BigEndian in macOS it does outputs the correct result, but it is incorrect because the platform is little endian as x86_64, so it should work with the other option of the enum.

The UTF-16 encoding does not specify an endianness, try UTF-16LE or UTF-16BE

That's a very good point, but I'd still expect to assume the same on both platforms?

Some notes:

String.to_utf16 was added just to help with porting to Windows. Not sure why it's public and documented.

To add to the previous comment:

Rather than manually deciding whether to write 0xFE 0xFF or 0xFF 0xFE, just directly write 0xFEFF as one of the 16-bit codepoints

String.to_utf16 was added just to help with porting to Windows. Not sure why it's public and documented.

Well it's a useful helper for lib bindings on Windows in user code, not just stdlib. So I think it makes sense to have it exposed.


Dropdown Menu offset

The menu offset is different for different platform

Would be great if there is a prop for menuOffset as well. Additionally, placement would be great.

It's about android's StatusBar try to use this prop in Dropdown <SelectDropdown statusBarTranslucent={true}
or make <StatusBar translucent={false} />

It's about android's StatusBar try to use this prop in Dropdown <SelectDropdown statusBarTranslucent={true}
or make <StatusBar translucent={false} />

Thank you this worked! 👍

It's about android's StatusBar try to use this prop in Dropdown <SelectDropdown statusBarTranslucent={true}
or make <StatusBar translucent={false} />

Thanks. It worked for me 🎉


Issue getting data into .libsvm format from R

What is the best way to go about getting a dataset into .libsvm format? Trying to work on the zillow dataset on kaggle, and have done the feature manipulation I want to do in R, but now I want to get the datsset into .libsvm format so I can try StackNet out for the first time, but I have no idea how to get the data into this format, and no solution from googling is working either.
How do I use R, or something else to get the data into the desired format?
Thanks

Hello @DeluxeAnalyst, I've googled a bit and I found this post that may be of interest here
I'm not an R developer but I think this should do the trick. As a reminder you must have the target data in the first column of the file for the training data.
Good luck.

Thanks for the reply @goldentom42 . I have found this solution too, but it seems that the problem with this package is that it takes forever to write the file. It seems like there are faster ways to do with with some python scripts, so ill take a stab there and try to put together enough of my python knowledge to run them.


Type error when parsing certain replay

Replay that is failing:
87B20C2E45C89031C1E19295E6BD8AF4.zip
Seems that there is an issue with certain rotation values.
carball\json_parser\actor_parsing.py
106     data_dict['rot_x'] *= -2 * math.pi / 65535

TypeError: unsupported operand type(s) for *=: 'NoneType' and 'float'

I will take a look at correcting this issue.

I am getting that error too! I have a feeling it has to do with the new replay format having quaternions, but we'll see what the actual culprit is.
Thanks for the report!


frictionless-js library

WONTFIX: Closing because there is no action to be taken.

@sglavoie i opened this as a placeholder today because we specifically discussed this as something we are working on. Reopening.

Hi, do we have more specific goals like releasing some version having some functionality? Probably that what you're planning to add to the acceptance so just curious as it's empty yet

@roll we already have the basic version done - see the repo - as we migrated data.js over last week. I've just updated the description with more info. Note that most of the functionality already existed in data.js and data-cli - it's a question of moving it over.

Shall we close it and track further development on the corresponding issue tracker?

https://github.com/frictionlessdata/frictionless-js


Can't send multiple confirmed downlink messages in class C

Hi Brocaar,
Looks like I've found a bug with downlink messages for class C devices.
If I quickly send several downlink messages (5-7) in unconfirmed mode like:
mosquitto_pub -t "application/1/node/1111111111111111/tx"  -m '{"reference": "abcd", "confirmed": false, "fPort":7, "data": "aGVsbG8="}'
mosquitto_pub -t "application/1/node/1111111111111113/tx"  -m '{"reference": "abcd", "confirmed": false, "fPort":7, "data": "aGVsbG8="}'
mosquitto_pub -t "application/1/node/1111111111111113/tx"  -m '{"reference": "abcd", "confirmed": false, "fPort":7, "data": "aGVsbG8="}'
then all of them successfully arrive to node.
But if I change confirmed field to 'true':
mosquitto_pub -t "application/1/node/1111111111111113/tx"  -m '{"reference": "abcd", "confirmed": true, "fPort":7, "data": "aGVsbG8="}'
and send it quickly several times (let's say 7 times) then only 1 message arrive to node and one more message I see in the 'downlink_queue' table. Other 5 messages are lost. And second one which is in 'downlink_queue' table is never send as well (it is dissapearing from 'downlink_queue' after some time or event but not send to node) .

Tbh, I'm not really sure if this is a bug or not. The current implementation lets you send data directly to the node, thus there is no concept of a queue in this case in LoRa App Server (not in the current implementation). You could implement a queue in your application however.
In case of confirmed data-down, the last transmitted item is kept in the database, so that on an ACK, LoRa App Server can notify you with the related reference of that frame. When you decide to transmit an other frame before the ACK is received, that queue item will be replaced.
The problem is that the node might not directly ACK the frame (directly). For now I leave it up to the application what to do. Wait, try to re-transmit, ... What I want to avoid is that LoRa App Server will have a never ending loop, polling the database what to transmit. This might end up in huge bulks of frames being transmitted over and over again when the node(s) do not respond.
Note that the server should send the frame 7 times to the node in case of confirmed: true. It might be your node which does not expose the data as it did not send out an ACK yet.

Found some more info in this topic: https://github.com/brocaar/lora-app-server/issues/78
For now I close this issue.
Regarding my node sending ACK I should check this as well. Thank you!


Cannot get through nginx auth

When I ran the default single-node setup in AWS, I was unable to authenticate through nginx with the user/password written in the README which was exampleuser/changeme.
I also tried using the randomly generated password which is outputted at the end of the terraform apply command but that also did not work.
Not being particularly familiar with nginx, it was rather annoying to run into this issue. I think this is a great repository which will be useful to a lot of people but if it worked out of the box and the documentation was accurate this would make it much more accessible :)
I had to create a new user/password in order to get access in the end.

Username is exampleuser (or whatever other username you set in variables.tf), and the password is now autogenerated when deploying instead of changeme. Run terraform output after deploying and you should see the password printed out.

would be nice if the docs were updated... I also run into this issue :(


labhub.py: Get author from IGitt

This will get the author from IGitt as opposed to checking the raw data
from GitHub and GitLab.
Fixes https://github.com/coala/corobo/issues/419
Reviewers Checklist

[ ] Appropriate logging is done.
[ ] Appropriate error responses.
[ ] Handle every possible exception.
[ ] Make sure there is a docstring in the command functions. Hint: Lookout for
botcmd and re_botcmd decorators.
[ ] See that 100% coverage is there.
[ ] See to it that mocking is not done where it is not necessary.

ack https://github.com/coala/corobo/pull/421/commits/b8ad75de17ffb45ee0700ad3c118498fa81c0696

@rultor merge

@rultor merge

@jayvdb OK, I'll try to merge now. You can check the progress of the merge here

@rultor merge

@jayvdb Done! FYI, the full log is here (took me 2min)


Could not install the Airy.

Dull documentation with all references. Spent full day but nothing. helm install does not work and keeps timing out (30m) with the following warning ready.go:258: [debug] Service does not have load balancer ingress IP address: kube-system/ingress-nginx-controller

Really disappointed.

Hello @askaydevs, I wonder on which provider you were installing Airy? Possibly that you don't have enough resources and your helm installation is timing out. If you are using minikube I recommend you to increase your Docker desktop resources.

CONTAINER ID   NAME      CPU %     MEM USAGE / LIMIT   MEM %     NET I/O        BLOCK I/O         PIDS
9913be8e599b   airy      374.51%   1.538GiB / 7GiB     21.98%    608MB / 14MB   46.5MB / 1.99GB   655

The docker desktop resources are as follows:
CPUs: 4
Memory: 10 GB
Swap: 1 GB
Disk Image Size: 120 GB

Following is the console log when I run airy create --provider=minikube my-airy
📁 Initialized Airy workspace directory at /Users/shubhamsingh/Documents/projects/rasa_iters/rasa_airy/my-airy
📁 Set up installation directory in the Airy workspace at /Users/shubhamsingh/Documents/projects/rasa_iters/rasa_airy/my-airy/terraform
⚙  Creating core with provider minikube
#
#	minikube provider output:
#
#	Install airy-core on provider minikube [y/n]?y#
#	Initializing modules...
#	Downloading git::https://github.com/airyhq/airy.git for minikube...
#	- minikube in .terraform/modules/minikube/infrastructure/terraform/modules/minikube
#
Initializing the backend...
#
Successfully configured the backend "local"! Terraform will automatically
use this backend unless the backend configuration changes.
#
Initializing provider plugins...
#	- Finding latest version of hashicorp/null...
#	- Installing hashicorp/null v3.2.1...
#	- Installed hashicorp/null v3.2.1 (signed by HashiCorp)
#
Terraform has created a lock file .terraform.lock.hcl to record the provider
selections it made above. Include this file in your version control repository
so that Terraform can guarantee to make the same selections by default when
you run "terraform init" in the future.
#
#	Terraform has been successfully initialized!
#
You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
#
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create

Terraform will perform the following actions:

#	  # module.minikube.null_resource.minikube will be created
  + resource "null_resource" "minikube" {
      + id       = (known after apply)
      + triggers = {
          + "cpus"                   = "3"
          + "driver"                 = "docker"
          + "kubeconfig_output_path" = "../kube.conf"
          + "memory"                 = "7168"
          + "nodeport"               = "80"
          + "profile"                = "airy-core"
        }
    }

Plan: 1 to add, 0 to change, 0 to destroy.
#
Changes to Outputs:
  + kubeconfig_path = "../kube.conf"
#	module.minikube.null_resource.minikube: Creating...
#	module.minikube.null_resource.minikube: Provisioning with 'local-exec'...
#	module.minikube.null_resource.minikube (local-exec): Executing: ["/bin/sh" "-c" "KUBECONFIG=../kube.conf minikube -p airy-core start --driver=docker --cpus=3 --memory=7168 --container-runtime=containerd --ports=80:80 --extra-config=apiserver.service-node-port-range=1-65535"]
#	module.minikube.null_resource.minikube (local-exec): * [airy-core] minikube v1.28.0 on Darwin 13.0.1 (arm64)
#	module.minikube.null_resource.minikube (local-exec):   - KUBECONFIG=../kube.conf
#	module.minikube.null_resource.minikube (local-exec): * Using the docker driver based on user configuration
#	module.minikube.null_resource.minikube (local-exec): * Using Docker Desktop driver with root privileges
#	module.minikube.null_resource.minikube (local-exec): * Starting control plane node airy-core in cluster airy-core
#	module.minikube.null_resource.minikube (local-exec): * Pulling base image ...
#	module.minikube.null_resource.minikube (local-exec): * Creating docker container (CPUs=3, Memory=7168MB) ...
#	module.minikube.null_resource.minikube: Still creating... [10s elapsed]
#	module.minikube.null_resource.minikube: Still creating... [20s elapsed]
#	module.minikube.null_resource.minikube: Still creating... [30s elapsed]
#	module.minikube.null_resource.minikube (local-exec): * Preparing Kubernetes v1.25.3 on containerd 1.6.9 ...
#	module.minikube.null_resource.minikube (local-exec):   - apiserver.service-node-port-range=1-65535
#	module.minikube.null_resource.minikube (local-exec):   - Generating certificates and keys ...
#	module.minikube.null_resource.minikube (local-exec):   - Booting up control plane ...
#	module.minikube.null_resource.minikube (local-exec):   - Configuring RBAC rules ...
#	module.minikube.null_resource.minikube (local-exec): * Configuring CNI (Container Networking Interface) ...
#	module.minikube.null_resource.minikube: Still creating... [40s elapsed]
#	module.minikube.null_resource.minikube (local-exec): * Verifying Kubernetes components...
#	module.minikube.null_resource.minikube (local-exec):   - Using image gcr.io/k8s-minikube/storage-provisioner:v5
#	module.minikube.null_resource.minikube (local-exec): * Enabled addons: storage-provisioner, default-storageclass
#	module.minikube.null_resource.minikube (local-exec): * Done! kubectl is now configured to use "airy-core" cluster and "default" namespace by default
#	module.minikube.null_resource.minikube: Creation complete after 41s [id=7113124559416634042]
#
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.

Outputs:

kubeconfig_path = "../kube.conf"
#	Initializing modules...
#	Downloading git::https://github.com/airyhq/airy.git for airy_core...
#	- airy_core in .terraform/modules/airy_core/infrastructure/terraform/modules/core
#
Initializing the backend...
#
Successfully configured the backend "local"! Terraform will automatically
use this backend unless the backend configuration changes.
#
Initializing provider plugins...
- terraform.io/builtin/terraform is built in to Terraform
- Finding latest version of hashicorp/http...
#	- Finding latest version of hashicorp/local...
#	- Finding latest version of hashicorp/helm...
#	- Finding latest version of hashicorp/kubernetes...
#	- Installing hashicorp/http v3.2.1...
#	- Installed hashicorp/http v3.2.1 (signed by HashiCorp)
#	- Installing hashicorp/local v2.2.3...
#	- Installed hashicorp/local v2.2.3 (signed by HashiCorp)
#	- Installing hashicorp/helm v2.7.1...
#	- Installed hashicorp/helm v2.7.1 (signed by HashiCorp)
#	- Installing hashicorp/kubernetes v2.16.0...
#	- Installed hashicorp/kubernetes v2.16.0 (signed by HashiCorp)

Terraform has created a lock file .terraform.lock.hcl to record the provider
selections it made above. Include this file in your version control repository
so that Terraform can guarantee to make the same selections by default when
you run "terraform init" in the future.
#
Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
#	data.terraform_remote_state.kubernetes: Reading...
#	module.airy_core.data.http.core_version: Reading...
#	data.terraform_remote_state.kubernetes: Read complete after 0s
#	module.airy_core.data.http.core_version: Read complete after 0s [id=https://raw.githubusercontent.com/airyhq/airy/main/VERSION]
#
Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
  + create
 <= read (data resources)

Terraform will perform the following actions:

#	  # local_file.cli_yaml will be created
  + resource "local_file" "cli_yaml" {
      + content              = (known after apply)
      + directory_permission = "0777"
      + file_permission      = "0777"
      + filename             = "../../cli.yaml"
      + id                   = (known after apply)
    }

#	  # module.airy_core.data.kubernetes_config_map.core_config will be read during apply
  # (depends on a resource or a module with changes pending)
 <= data "kubernetes_config_map" "core_config" {
      + binary_data = (known after apply)
      + data        = (known after apply)
      + id          = (known after apply)

      + metadata {
          + generation       = (known after apply)
          + name             = "core-config"
          + namespace        = "default"
          + resource_version = (known after apply)
          + uid              = (known after apply)
        }
    }

#	  # module.airy_core.data.kubernetes_service.ingress will be read during apply
  # (depends on a resource or a module with changes pending)
 <= data "kubernetes_service" "ingress" {
      + id     = (known after apply)
      + spec   = (known after apply)
      + status = (known after apply)

      + metadata {
          + generation       = (known after apply)
          + name             = "ingress-nginx-controller"
          + namespace        = "kube-system"
          + resource_version = (known after apply)
          + uid              = (known after apply)
        }
    }

#	  # module.airy_core.helm_release.airy_core will be created
  + resource "helm_release" "airy_core" {
      + atomic                     = false
      + chart                      = "https://helm.airy.co/charts/airy-0.52.0.tgz"
      + cleanup_on_fail            = false
      + create_namespace           = true
      + dependency_update          = false
      + disable_crd_hooks          = false
      + disable_openapi_validation = false
      + disable_webhooks           = false
      + force_update               = false
      + id                         = (known after apply)
      + lint                       = false
      + manifest                   = (known after apply)
      + max_history                = 0
      + metadata                   = (known after apply)
      + name                       = "airy-release"
      + namespace                  = "default"
      + pass_credentials           = false
      + recreate_pods              = false
      + render_subchart_notes      = true
      + replace                    = false
      + reset_values               = false
      + reuse_values               = false
      + skip_crds                  = false
      + status                     = "deployed"
      + timeout                    = 600
      + values                     = [
          + <<-EOT

                global:
                  host: localhost
                ingress-controller:
                  ngrokEnabled: true
            EOT,
          + <<-EOT
                prerequisites:
                  kafka:
                    kafka:
                      resources:
                        requests:
                          cpu: "300m"
                          memory: "512Mi"
                        limits:
                          cpu: "2000m"
                          memory: "4096Mi"
                    zookeeper:
                      resources:
                        requests:
                          cpu: "100m"
                          memory: "128Mi"
                        limits:
                          cpu: "1000m"
                          memory: "2048Mi"
                components:
                  api:
                    admin:
                      resources:
                        requests:
                          cpu: "100m"
                          memory: "128Mi"
                        limits:
                          cpu: "1000m"
                          memory: "1024Mi"
                    communication:
                      communication:
                        resources:
                          requests:
                            cpu: "200m"
                            memory: "128Mi"
                          limits:
                            cpu: "2000m"
                            memory: "2048Mi"
                      websocket:
                        resources:
                          requests:
                            cpu: "50m"
                            memory: "128Mi"
                          limits:
                            cpu: "1000m"
                            memory: "1024Mi"
                  frontend:
                    ui:
                      resources:
                        requests:
                          cpu: "50m"
                          memory: "64Mi"
                        limits:
                          cpu: "500m"
                          memory: "512Mi"
                  integration:
                    source-api:
                      resources:
                        requests:
                          cpu: "50m"
                          memory: "128Mi"
                        limits:
                          cpu: "1000m"
                          memory: "1024Mi"
                    webhook:
                      consumer:
                        resources:
                          requests:
                            cpu: "50m"
                            memory: "128Mi"
                          limits:
                            cpu: "1000m"
                            memory: "1024Mi"
                      publisher:
                        resources:
                          requests:
                            cpu: "50m"
                            memory: "128Mi"
                          limits:
                            cpu: "1000m"
                            memory: "2048Mi"
                  media:
                    resolver:
                      resources:
                        requests:
                          cpu: "50m"
                          memory: "128Mi"
                        limits:
                          cpu: "1000m"
                          memory: "1024Mi"
                  sources:
                    chatplugin:
                      backend:
                        resources:
                          requests:
                            cpu: "50m"
                            memory: "128Mi"
                          limits:
                            cpu: "1000m"
                            memory: "1024Mi"
                      frontend:
                        resources:
                          requests:
                            cpu: "50m"
                            memory: "64Mi"
                          limits:
                            cpu: "500m"
                            memory: "1024Mi"
                    facebook:
                      connector:
                        resources:
                          requests:
                            cpu: "100m"
                            memory: "128Mi"
                          limits:
                            cpu: "1000m"
                            memory: "1024Mi"
                      eventsRouter:
                        resources:
                          requests:
                            cpu: "50m"
                            memory: "128Mi"
                          limits:
                            cpu: "1000m"
                            memory: "1024Mi"
                    google:
                      connector:
                        resources:
                          requests:
                            cpu: "100m"
                            memory: "128Mi"
                          limits:
                            cpu: "1000m"
                            memory: "1024Mi"
                      eventsRouter:
                        resources:
                          requests:
                            cpu: "50m"
                            memory: "128Mi"
                          limits:
                            cpu: "1000m"
                            memory: "1024Mi"
                    twilio:
                      connector:
                        resources:
                          requests:
                            cpu: "100m"
                            memory: "128Mi"
                          limits:
                            cpu: "1000m"
                            memory: "1024Mi"
                      eventsRouter:
                        resources:
                          requests:
                            cpu: "50m"
                            memory: "128Mi"
                          limits:
                            cpu: "1000m"
                            memory: "1024Mi"
                    viber:
                      connector:
                        resources:
                          requests:
                            cpu: "100m"
                            memory: "128Mi"
                          limits:
                            cpu: "1000m"
                            memory: "1024Mi"
                      eventsRouter:
                        resources:
                          requests:
                            cpu: "50m"
                            memory: "128Mi"
                          limits:
                            cpu: "1000m"
                            memory: "1024Mi"
            EOT,
          + "",
        ]
      + verify                     = false
      + version                    = "0.52.0"
      + wait                       = false
      + wait_for_jobs              = false

      + set {
          + name  = "global.appImageTag"
          + value = "0.52.0"
        }
      + set {
          + name  = "ingress-controller.enabled"
          + value = "true"
        }
    }

Plan: 2 to add, 0 to change, 0 to destroy.

The docker desktop resources are as follows:
CPUs: 4
Memory: 10 GB
Swap: 1 GB
Disk Image Size: 120 GB

Should we just say that "at this point, airy is not completely suited for local development given its high resource requirements" and it is experimental?

Hi @askaydevs we are testing our each releases on all the providers. On minikube as well.
Our documentation for minikube is here:

https://airy.co/docs/core/getting-started/installation/minikube

There you could see actually how could specify your sources from cli.
airy create --provider=minikube --provider-config driver=docker, cpus=4, memory=8192 my-airy
I can't know the other apps running on your local what they consume. My personal settings are below and I am running it when actively working with it.
CPUs: 8
Memory: 15GB
Swap: 3 GB
Disk Image Size: 150 GB

That is my point. airy currently has ridiculously high resource requirements.


Dreamview: introduce is_an_issue_to_report to drive event

Not sure if you prefer 'is an issue to report' or something like 'is reportable', 'is issue reportable'


zh-trans: update schedule GPUs

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Remember to delete this note before submitting your pull request.
For pull requests on 1.15 Features: set Milestone to 1.15 and Base Branch to dev-1.15
For pull requests on Chinese localization, set Base Branch to release-1.14
For pull requests on Korean Localization: set Base Branch to dev-1.14-ko.<latest team milestone>
If you need Help on editing and submitting pull requests, visit:
https://kubernetes.io/docs/contribute/start/#improve-existing-content.
If you need Help on choosing which branch to use, visit:
https://kubernetes.io/docs/contribute/start#choose-which-git-branch-to-use.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

@mysunshine92 预览格式异常
https://deploy-preview-14897--k8s-v1-14.netlify.com/zh/docs/tasks/manage-gpus/scheduling-gpus/

@mysunshine92 预览格式异常


Facebook login

As Uber's user is also able to login through Facebook; can you add Facebook login options in the Objective C example? The current example only allows login through phone or email.

Thanks for the request. Currently Facebook login is only available to users logging in via SSO, but we will consider this for our future road map.

Any update on this enhancement?


Missing $

Missing $ before "groupId" in code sample

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

ID: 1c5d2898-9714-9b98-f065-66a59889f909
Version Independent ID: 6a7e0145-9e57-b2e6-04f6-9aeda314bad7
Content: Deploy container instance by GitHub Actions - Azure Container Instances
Content Source: articles/container-instances/container-instances-github-action.md
Service: container-instances
GitHub Login: @tomvcassidy
Microsoft Alias: tomcassidy

@manzinge
Thanks for your feedback! We will investigate and update as appropriate.

@manzinge
Could you please add the screenshot of the code sample. So, we can be able to make changes as needed.

@manzinge
Thanks for reporting this! We have created a PR for this issue and the changes should go live soon.


seperate into mono repo /w lerna

core
server
console

server is not part of this, we rather go for console. so i wiped out server in for f the gurps-graphql repo


Fixed #34759 -- Confirmed support for SpatiaLite 5.1.

Updated the scope of what a valid GML string output looks like in the test_asgml function.
Findings on why the "new" GML output is valid and other info about the problem: https://docs.google.com/document/d/1MKw2OnhmoWP4h00tCo85oziGBv1g747RxaBIaYwmctc/edit?addon_store

@PieterCK Thanks :+1: Since only tests have changed, we can title this "Confirmed support ...". Can you push remaining docs changes? For example:
diff --git a/docs/ref/contrib/gis/install/geolibs.txt b/docs/ref/contrib/gis/install/geolibs.txt
index 90ad6ed10e..ca47981f95 100644
--- a/docs/ref/contrib/gis/install/geolibs.txt
+++ b/docs/ref/contrib/gis/install/geolibs.txt
@@ -13,7 +13,7 @@ Program                   Description                           Required
 :doc:`GDAL <../gdal>`     Geospatial Data Abstraction Library   Yes                               3.7, 3.6, 3.5, 3.4, 3.3, 3.2, 3.1, 3.0, 2.4
 :doc:`GeoIP <../geoip2>`  IP-based geolocation library          No                                2
 `PostGIS`__               Spatial extensions for PostgreSQL     Yes (PostgreSQL only)             3.4, 3.3, 3.2, 3.1, 3.0
-`SpatiaLite`__            Spatial extensions for SQLite         Yes (SQLite only)                 5.0, 4.3
+`SpatiaLite`__            Spatial extensions for SQLite         Yes (SQLite only)                 5.1, 5.0, 4.3
 ========================  ====================================  ================================  ===========================================

 Note that older or more recent versions of these libraries *may* also work
@@ -48,6 +48,7 @@ totally fine with GeoDjango. Your mileage may vary.
     PROJ 5.0.0 2018-03-01
     SpatiaLite 4.3.0 2015-09-07
     SpatiaLite 5.0.0 2020-08-23
+    SpatiaLite 5.1.0 2023-08-04

 .. note::

@olibook Does it work for you?

@felixxm Thanks for reviewing my PR! I've added a commit for changes to the doc as you've suggested.

@olibook Does it work for you?

Hi @felixxm, looks good to me
@PieterCK thank you for your contribution.

@PieterCK Thanks again :+1: Welcome aboard :boat:

The pleasure is mine. Thank you also! @felixxm @olibook


SQL Query Error :

Server Version: 5.7.11-4 Percona Server (GPL), Release '4', Revision '5c940e1'
SQL Error
Unable to prepare statement:
            SELECT node.*, (COUNT(parent.ID)-1 - (sub_tree.innerDepth )) AS Depth
            FROM rbac_roles AS node,
                rbac_roles AS parent,
                rbac_roles AS sub_parent,
                (
                        SELECT node.ID, (COUNT(parent.ID) - 1) AS innerDepth
                        FROM rbac_roles AS node,
                        rbac_roles AS parent
                        WHERE node.Lft BETWEEN parent.Lft AND parent.Rght
                        AND (node.ID=?)
                        GROUP BY node.ID
                        ORDER BY node.Lft
            ) AS sub_tree
            WHERE node.Lft BETWEEN parent.Lft AND parent.Rght
                AND node.Lft BETWEEN sub_parent.Lft AND sub_parent.Rght
                AND sub_parent.ID = sub_tree.ID
            GROUP BY node.ID
            HAVING Depth = 1
            ORDER BY node.Lft

reason: Expression #6 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sub_tree.innerDepth' which is not functionally dependent on columns

Additional PHP Error Report
PHP message: PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /home/netop-dev/public_html/includes/PhpRbac/src/PhpRbac/core/lib/Jf.php on line 159

PHP message: PHP Fatal error:  Call to a member function execute() on a non-object in /home/netop-dev/public_html/includes/PhpRbac/src/PhpRbac/core/lib/Jf.php on line 160" while reading upstream, client: xxx.xxx.xxx.xxx, server: {fqdn url}, request: "GET /site-admin/security_roles.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "{fqdn url}", referrer: "{fqdn url}/site-admin/security_roles.php"

Hi,
Apparently your mysql variant is strict on SQL standards.
MySQL and SQLite convert group by clauses to distinct when nonaggregate is not in the group by clause. Standard SQL disallows such use.
Try replacing the GROUP BY X with DISTINCT X in the select clause, one by one and exclusive. Please also report your findings.
Regards
-A

On May 20, 2016, at 10:00 AM, S. Flynn<EMAIL_ADDRESS>wrote:
Server Version: 5.7.11-4 Percona Server (GPL), Release '4', Revision '5c940e1'
SQL Error
Unable to prepare statement:
SELECT node.*, (COUNT(parent.ID)-1 - (sub_tree.innerDepth )) AS Depth
FROM rbac_roles AS node,
rbac_roles AS parent,
rbac_roles AS sub_parent,
(
SELECT node.ID, (COUNT(parent.ID) - 1) AS innerDepth
FROM rbac_roles AS node,
rbac_roles AS parent
WHERE node.Lft BETWEEN parent.Lft AND parent.Rght
AND (node.ID=?)
GROUP BY node.ID
ORDER BY node.Lft
) AS sub_tree
WHERE node.Lft BETWEEN parent.Lft AND parent.Rght
AND node.Lft BETWEEN sub_parent.Lft AND sub_parent.Rght
AND sub_parent.ID = sub_tree.ID
GROUP BY node.ID
HAVING Depth = 1
ORDER BY node.Lft
reason: Expression #6 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sub_tree.innerDepth' which is not functionally dependent on columns
Additional PHP Error Report
PHP message: PHP Warning:  call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /home/netop-dev/public_html/includes/PhpRbac/src/PhpRbac/core/lib/Jf.php on line 159
PHP message: PHP Fatal error:  Call to a member function execute() on a non-object in /home/netop-dev/public_html/includes/PhpRbac/src/PhpRbac/core/lib/Jf.php on line 160" while reading upstream, client: xxx.xxx.xxx.xxx, server: {fqdn url}, request: "GET /site-admin/security_roles.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "{fqdn url}", referrer: "{fqdn url}/site-admin/security_roles.php"
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub https://github.com/OWASP/rbac/issues/83

I upgraded my development server to the latest 5.7 release of MySQL.
I did find this article showing some changes in how MySQL handles GROUP BY clauses now.
http://rpbouman.blogspot.com/2014/09/mysql-575-group-by-respects-functional.html

I believe we have the non-standard SQLs in many places throughout the project. I am willing to fix them all and release a new version, but unfortunately I do not have access to MySQL 5.7 at the moment.
Can you run some of the queries in the application (they are all in the same files, or 2 more files) and see if they have the same issue? You can run them directly in phpMyAdmin.
-A

On May 20, 2016, at 10:30 AM, S. Flynn<EMAIL_ADDRESS>wrote:
I upgraded my development server to the latest 5.7 release of MySQL.
I did find this article showing some changes in how MySQL handles GROUP BY clauses now.
http://rpbouman.blogspot.com/2014/09/mysql-575-group-by-respects-functional.html http://rpbouman.blogspot.com/2014/09/mysql-575-group-by-respects-functional.html
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub https://github.com/OWASP/rbac/issues/83#issuecomment-220621603

I was able to add the field 'sub_tree.innerDepth' to the GROUP BY clause to fix this.
Script: PhpRbac/src/PhpRbac/core/lib/nestedset/full.php
Function: descendantsConditional()
Being called from: $_rbac->Roles->descendants($role_id)
Line 251:
GROUP BY node.{$this->id()}, sub_tree.innerDepth
Function: childrenConditional
Being called from: $_rbac->Roles->children($rbac_rootID);
Line 290:
GROUP BY node.{$this->id()}, sub_tree.innerDepth

I'll do some further testing on all of the class functions and submit a formal patch of the changes.

Thank you! Much appreciated.
-A

On May 20, 2016, at 10:59 AM, S. Flynn<EMAIL_ADDRESS>wrote:
I'll do some further testing on all of the class functions and submit a formal patch of the changes.
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub https://github.com/OWASP/rbac/issues/83#issuecomment-220629687

As a reference:   The MySQL server is a default installation of Percona MySQL 5.7 (Ubuntu 14.04 LTS / Repository based).   No additional my.cnf changes were done to alter the standard installation at this time.
There may be a method to set the variable 'sql_mode', which by default is set to:
ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

Given the link that you provided, MySQL 5.7 is SQL99 compatible, which means it needs non-aggregate expressions in select to be either explicitly mentioned in group by clause, or be functionally dependent (i.e. have one unique value per group). That’s what’s causing the headache.
-A

On May 20, 2016, at 11:03 AM, S. Flynn<EMAIL_ADDRESS>wrote:
As a reference: The MySQL server is a default installation of Percona MySQL 5.7 (Ubuntu 14.04 LTS / Repository based). No additional my.cnf changes were done to alter the standard installation at this time.
There may be a method to set the variable 'sql_mode', which by default is set to:
ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub https://github.com/OWASP/rbac/issues/83#issuecomment-220630878

Until we can pick through all of the code and test, as a quick, functional work around, I have tested changing the "sql_mode" on the MySQL server within the my.cnf file to remove the 'ONLY_FULL_GROUP_BY' configuration.
sql_mode                = STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

I believe you can do that as a SQL command too, let me google that.

On May 20, 2016, at 11:12 AM, S. Flynn<EMAIL_ADDRESS>wrote:
Until we can pick through all of the code and test, as a quick, functional work around, I have tested changing the "sql_mode" on the MySQL server within the my.cnf file to remove the 'ONLY_FULL_GROUP_BY' configuration.
sql_mode = STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub https://github.com/OWASP/rbac/issues/83#issuecomment-220633340

SET @@global.sql_mode = 'STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';

I think a better approach would be the following code snippet after connection:
$modes=sql(“SELECT @@SESSION.sql_mode;”);
$modes=explode(“,”,$modes);
if (($r=array_search(“ ONLY_FULL_GROUP_BY”,$modes)) unset($modes[$r]);
sql(“SET SESSION sql_mode=?”,implode(“,”,$modes));

On May 20, 2016, at 11:14 AM, S. Flynn<EMAIL_ADDRESS>wrote:
SET @@global.sql_mode = 'STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub https://github.com/OWASP/rbac/issues/83#issuecomment-220633849

Without updates to the other functions, then yes, doing it per session is the best method. This would allow for a single update in the connector class rather than updating all the other functions.
I would still like to test all of the functions and identify the offending SQL statements and fix them to the new standards.


[Bug] [ChatDashboard] Prompts are not displaying.

Search before asking

[X] I had searched in the issues and found no similar issues.

Operating system information
Linux
Python version information
3.10
DB-GPT version
main
Related scenes

[ ] Chat Data
[ ] Chat Excel
[ ] Chat DB
[ ] Chat Knowledge
[ ] Model Management
[X] Dashboard
[ ] Plugins

Installation Information

[X] Installation From Source

[ ] Docker Installation

[ ] Docker Compose Installation

[ ] Cluster Installation

[ ] AutoDL Image

[ ] Other

Device information
GPU
Models information
LLM
What happened

In the prompt box on the dashboard page, my prompts are not displaying.
What you expected to happen
It should display the prompts I created myself.
How to reproduce
In the prompt box on the dashboard page, my prompts are not displaying.
Additional context
No response
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

I have tried creating prompts and selecting the 'chat_dashboard' scenario, but they still do not display.

Solved


Create Identity

I was creating an identity and clicked outside the box by mistake. This resulted in the pop-up closing and was completely reset next time I opened the add-on menu.
My recommendation would be to make the add-on menu much simpler and let most more complicated things lead to full pages in separate tabs for creating and managing identity. The add-on menu could then be for accessing the full pages, logging in, out, etc. But keep it simple is my feeling.

Hmmm interesting...
It wouldn't be simple from a technical point-of-view but it might be more user friendly.

I feel like it would. Lastpass does the same.

I had the same thing, I even have the impression that restarting in the same session did not work.
The progress-bar functions fine but nothing happens. (Ubuntu 18.04 Firefox 65.0)


Review of metadata section in DataCite Cookbook

This reviews the Collecting the metadata section of the DataCite cookbook.  The changes have been sent in by mail from Ted Habermann.

Superseded by #57.


Mutation not always marked killed when it should be

Summary

I've run into a situation where sometimes it will mark a mutation as killed and sometimes it will not. Creating this mutation manually results in 8 failing tests.
Note that this is flaky behaviour. It sometimes does recognizes it as killed and sometimes not. It feels like some kind of race condition to me.
The problematic code:
// src/xml/index.js
const parse = require('./parse');
const stringify = require('./stringify');
const traverse = require('./traverse');
const is = require('./is');
const get = require('./get');
const set = require('./set');

module.exports = {
    parse,
    stringify,
    traverse,
    is,
    get,
    set,
};

Stryker config

module.exports = function(config) {
    config.set({
        mutate: [
            'src/**/*.js',
        ],
        mutator: {
            name: 'javascript',
            excludedMutations: [],
        },
        packageManager: 'npm',
        reporters: [
            'html',
            'progress',
        ],
        testRunner: 'mocha',
        testFramework: 'mocha',
        coverageAnalysis: 'perTest',
        transpilers: [],
        mochaOptions: {
            spec: [
                './test/**/*.js',
            ],
        },
        thresholds: {
            high: 80,
            low: 60,
            break: 50,
        },
    });
};

Test runner config
module.exports = {
    reporter: 'mocha-multi-reporters',
    'reporter-option': [
        'configFile=.mocha-reporterrc.js'
    ],
    recursive: true,
    exclude: [
        '.git',
        'node_modules',
        'test/resources',
    ],
    ui: 'BDD-bundle',
    require: [
        'choma',
        'chai/register-expect',
        'mocha-bundle-ui',
        './test/setup.js',
    ],
};

Stryker environment

    "@stryker-mutator/core": "^2.5.0",
    "@stryker-mutator/html-reporter": "^2.5.0",
    "@stryker-mutator/javascript-mutator": "^2.5.0",
    "@stryker-mutator/mocha-framework": "^2.5.0",
    "@stryker-mutator/mocha-runner": "^2.5.0",

    "chai": "^4.2.0",
    "chai-arrays": "^2.0.0",
    "chai-as-promised": "^7.1.1",
    "chai-string": "^1.5.0",
    "choma": "^1.2.1",
    "mocha": "^7.0.1",
    "mocha-bundle-ui": "^3.0.0",
    "mocha-junit-reporter": "^1.23.3",
    "mocha-multi-reporters": "^1.1.7",
    "sinon": "^8.1.1",
    "sinon-chai": "^3.4.0"

Test runner environment

    "test": "nyc mocha",
    "test:watch": "mocha --watch",
    "test:unit": "mocha test/unit",
    "test:integration": "mocha test/integration",
    "test:mutation": "stryker run .strykerrc.js",

// test/setup.js
const chai = require('chai');
chai.use(require('chai-string'));
chai.use(require('chai-arrays'));
chai.use(require('sinon-chai'));
chai.use(require('chai-as-promised'));

Your Environment

software
version(s)

node
12.13.1

npm
6.13.1

Operating System
Windows 10

Add stryker.log

stryker.log

Is it still an issue with versions 3x and 4x?

I doubt it. This is most likely a race condition of some sort in 3.x, it's probably solved by mutation switching.
Let's close it until we encounter it again.


Investigate the flaky codspeed test

https://github.com/oxc-project/oxc/pull/1688#issuecomment-1858213117

Removed the flaky test instead.


Fails to find simple password

While it shouldn't happen, it is possible for someone to have simple passwords like FooBarSecret. This is the type of person that is also likely to store the password in a file. This pattern is missed.

This is an interesting one. Passwords in themselves kind of goes against the original purpose of this module where I searched for patterns of bad strings while actually ignoring the contents of the passwords/keys/secrets, where as this is more "are you using bad passwords" kind of scanning.
I could absolutely add a list of "top 500 bad passwords to scan for", and I do see a good purpose for it, but there are some considerations to take at first:

This would not be pattern matching as it is done today. We could pretty much use $_ -like "*$BadPass*" to find them.
I still haven't found the time to work in parallelization, so each added pattern adds lots of time. adding a "top 500 bad passwords" would make it unusably slow with todays setup. While this is probably ok in a pipeline or cron job, it would not really work when adding it to the prompt.

I do really like the idea though.. so maybe adding a rainbow table, and either

Add another command such as Find-BadPassword to the module with a similar behaviour
Add a -IncludeBadPasswords switch to Find-Secret to make this scan selectable (and documented increased time to scan.)

Which one of these to go with I would say mostly depends on the imagined scenario (scan in a pipeline makes a parameter make sense, scan my folders/shares manually makes a separate command make more sense I think)
Please let me know what you think, and I'll get working on it.

I was originally thinking about catching a line of code like password = 'foobar' since it appears that Find-Secret will detect password = 'foobar123'.  But I can totally see value in a Find-BadPassword that would check files against a list of known bad passwords. I'd also include a parameter to allow the user to specify their own array of passwords.

oh! That's actually a bug in the pattern I would say. We should of course capture password = 'foobar' as well as password = 'foobar123'
I'll add it to testcases and see if I can fix it.

After doing some testing and exploration of Find-BadPassword I've come to the conclusion that this is not feasible. Since most bad passwords are actual words (top 10000 known bads) it simply gave an insane amount of false positives for every single repo i tested it on.. Closing this for now.


Add linux support to generate_grpc_shadow_boringssl_symbol_list.sh

Currently generate_grpc_shadow_boringssl_symbol_list.sh can run correctly only on Mac. So I extend this to support Linux as well.
Changes:

Added a way to extract C symbols from boringssl archives on Linux.
Sorted a generated symbols to be more deterministic across platforms and different versions of boringssl.
Made it build only ssl and crypto library with j option to be quick.

Sidenote:

Recent version of boringssl has the BORINGSSL_PREFIX option to add given prefix to all symbols but it's not available at current version of boringssl that gRPC uses and it's not that different with this approach.

Related with #20100 and #20293.

Yes, right. Meaningful change is only script and others are generated. I confirmed that the generated file is identical with the previous except order because of the sort statement I added in this PR.


Feat: Implement Login Functionality with Use Case and Repository

This PR implements the login functionality, integrating it with the AuthenticationRepository and introducing a dedicated LoginUseCase for improved code organization and testability.

Implemented login in AuthenticationRepository: Added the login function to the AuthenticationRepository interface and implemented it in AuthenticationRepositoryImpl using Firebase Authentication.
Created LoginUseCase: Introduced a new use case (LoginUseCase) to encapsulate the login logic and handle potential errors.
Injected dependencies: Added LoginUseCase to useCaseModule and presenterModule for dependency injection with Hilt.
Refactored LoginState: Renamed the boolean parameter hasError to hasFeedback to better reflect its purpose of indicating the presence of feedback (error or success).
Implemented loginUseCase in LoginViewModel: Integrated the LoginUseCase into the LoginViewModel to handle user login requests and update the UI state accordingly.
Updated FirebaseHelper: Improved error message handling in FirebaseHelper to provide more informative feedback to the user.

This PR delivers a robust and well-structured login functionality, enhancing the app's security and user experience.


Active discord invitation link?

Is there a place with an active invitation link to the unofficial discord? The only links I can find in this repo are expired.
Thanks!

https://discord.gg/Z6cB7BU5CF
sorry about that!

Thanks!

@morganhein If you want to share with anyone, we'll also maintain a redirect at: https://pkl-playground.vercel.app/discord-invite


Sort by stars high to low

Follow-up PR to #377
I still see the ordering of Apps on the landing page is not by stars. When I run the site locally with yarn watch the ordering is based on stars (high to low). This PR puts the data prefix in the sort command. If that does not help I do not understand why it works in my development environment but not in production.

The apps are sorted correctly for me, maybe it's just a caching issue for you?

Hi @gr2m 😄
On the Apps page they are, but not on the "Explore" part of the landing page 🤷♂
Perhaps this page is statically generated or cached somewhere? (because it is sorted correctly in my development environment)

Oh I see. And have no idea 🤣 @AaronDewes do you know? ☝🏼

I wanted to presort this in .eleventy.js, but had a typo, I typed data.starts instead of data.stars. I'll submit a fix PR soon


switching quickly tabBarVisible freezes the app

The app is frozen when the attribute tabBarVisible change quickly in navigationOptions.
const routes = {
  MyTab: {
    screen: MyScreen,
    navigationOptions: ({ navigation }) => ({
      tabBarVisible: navigation.state.index === 0,
      tabBarLabel: translate('screen.calendar.title'),
      tabBarIcon: ({ tintColor }) => <Icon name='event' color={tintColor} />
    })
  }
}

createMaterialBottomTabNavigator(routes)

When I open a modal screen and close it quickly, the app is frozen and the bottom tabbar starts jumping. If I remove the tabBarVisible attribute, all works.
Node: 11.6.0
react: 16.6.3
react-native: 0.57.8
<EMAIL_ADDRESS><EMAIL_ADDRESS>

I will check if it was fixed in https://github.com/callstack/react-native-paper/issues/800

@twhitacre @adamawang It's fixed updating<EMAIL_ADDRESS>


compliance-service: prealloc linter

This fixes all the prealloc violations and simplifies our LINTERARGS
based on changes to the main linter configuration.
The only remaining differences in compliance-service from the standard
configuration is the nakedret violations. Fixing those looks mostly
straightforward but there are a few with some subtle behavior so it is
probably best done as its own PR.
Signed-off-by: Steven Danna<EMAIL_ADDRESS>

Built on #1138

Rebased


Feature/add mama technical

Closes https://github.com/zackurben/alphavantage/issues/20
This adds the MAMA technical indicator and test. Updates the readme to include technical data functions.

Coverage remained the same at 100.0% when pulling bd7b9bac84ced712ba6655c41213fcda89793747 on feature/add-mama-technical into fa07b72a6e49a6f09172bd84a135000567a2ca2c on master.


chore: bump foyer 0.5.0

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
https://github.com/MrCroxx/foyer/blob/main/CHANGELOG.md

Checklist

[ ] I have written necessary rustdoc comments
[ ] I have added necessary unit tests and integration tests
[ ] I have added test labels as necessary. See details.
[ ] I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features #7934).
[ ] My PR contains breaking changes. (If it deprecates some features, please create a tracking issue to remove them in the future).
[ ] All checks passed in ./risedev check (or alias, ./risedev c)
[ ] My PR changes performance-critical code. (Please run macro/micro-benchmarks and show the results.)

[ ] My PR contains critical fixes that are necessary to be merged into the latest release. (Please check out the details)

Documentation

[ ] My PR needs documentation updates. (Please use the Release note section below to summarize the impact on users)

Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.

Wait #15382 , skip 0.5.0 .


Replace message generation system with r2rs system

As discussed in the Working Group meetings, we should replace our current message generation system with the one from r2r, found here

Oh? I thought std::env wasn't allowed anywhere! If it's ok to be used within build.rs, that will make things a LOT easier!
I'll experiment and find out, thank you!


The path in article is different from Github folder structure

[Enter feedback here]
In this sentence > "Open a local console window and navigate into the digital-twins-samples-main\AdtE2ESample\SampleClientApp folder. Run the SampleClientApp project with this dotnet command: "
Github path: "digital-twins-samples\AdtSampleApp\SampleClientApp" instead of "digital-twins-samples-main\AdtE2ESample\SampleClientApp"
Github link: https://github.com/Azure-Samples/digital-twins-samples

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

ID: 2f9cef38-32b1-de42-382d-87877e5a4d25
Version Independent ID: 92b09f9b-690e-e3a4-5454-70bfaa65a449
Content: Tutorial: Connect an end-to-end solution - Azure Digital Twins
Content Source: articles/digital-twins/tutorial-end-to-end.md
Service: digital-twins
GitHub Login: @baanders
Microsoft Alias: baanders

@Wiiki0807 Thanks for the feedback! We are currently investigating and will update you shortly.

Thanks @Wiiki0807 for noticing that the folder name has changed. I'm updating the path in the document to digital-twins-samples-main\AdtSampleApp\SampleClientApp in this pull request, and I'll have Git automatically close this issue when the solution is merged.
Note that the outer folder is digital-twins-samples-main when you download the repo as a ZIP as suggested in the Prerequisites section, so although the folder name doesn't have the -main if you get the code through another method, I'm planning to leave that part so that the instructions are consistent. If you have further questions or comments, feel free to continue the conversation here and we can reopen the issue if necessary.
Thanks!


If a table columns don't take up 100% of the grid space on load resizing brakes

I'm submitting a ...
[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter

Current behavior
I recently updated my table from 9.3 to latest 11.1.7 and came across the following bug. We are storing column setting for users (width, displayed, order) If a table columns don't take up 100% of the grid space on page load resize fails. It will never let you resize the columns past the initial total combined column width. I am guessing this was to try and fix being able to resize columns to where you couldn't see them anymore which was an issue in 9.3
Expected behavior
I would expect that you should be able to resize columns past the initial combined column width as long as you are under 100% of the table grid width.
Reproduction of the problem

Here is my code for on the table for example:
<ngx-datatable #table (resize)="resizeColumn($event)" (reorder)="reorderColumn($event)" class="material" [rows]="tableData"
[columnMode]="'standard'"
[headerHeight]="50"
[footerHeight]="50"
[rowHeight]="50"
 [rowHeight]="'auto'"
[limit]="20"
[selected]="selected"
[selectionType]="'multi'"
[scrollbarV]="false"
(select)='onSelect($event)'>

         <ngx-datatable-column *ngFor="let column of columns" name={{column.name}} prop=
          {{column.prop}} width={{column.width}}>
         <ng-template let-value="value" ngx-datatable-cell-template>

{{value}}

          <ng-template #elseBlock>

{{value}}

          </ng-template>
         </ng-template>
       </ngx-datatable-column>
</ngx-datatable>

What is the motivation / use case for changing the behavior?
So the table resizes correctly.
Please tell us about your environment:
Angular 5 with ngx-datatable 11.1.7

Table version: 0.8.x
11.1.7

Angular version: 2.0.x
5

Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

All Browsers

Language: [all | TypeScript X.X | ES6/7 | ES5]
Type Script

i have same issue in version 11.1.7


Dynamically assign resource types from parameters or variables

I have a deployment that performs a lot of role assignments between resources' managed identities. I created the bicep file below to perform role assignments on a storage account:
param storageAccountName string
param roleAssginmentName string
param roleAssignmentProperties object

resource storageAccount 'Microsoft.Storage/storageAccounts@2021-08-01' existing = {
  name: resourceName
}

resource roleAssignment 'Microsoft.Authorization/roleAssignments@2020-10-01-preview' = {
  name: roleAssginmentName
  scope: storageAccount
  properties: roleAssignmentProperties
}

I want to extend the file to handle role assignments for any resource. This requires that the reference to the existing resource is made dynamically, but resource types don't support string interpolation and the role assignment scope demands that it is a symbolic link, tenant, subscription or resource group.
Is there a way to do this today that I have missed in the documentation?

I believe what you want to express would be helped by the proposed resource() function.
If you are looking to reuse a role assignment template as a module in multiple places, one possible workaround would be to use a JSON template:
{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
  "contentVersion": "<IP_ADDRESS>",
  "parameters": {
    "roleAssginmentName": {
      "type": "string"
    },
    "roleAssignmentTargetResourceId": {
      "type": "string"
    },
    "roleAssignmentProperties": {
      "type": "string"
    },
  },
  "resources": [
    {
      "type": "Microsoft.Authorization/roleAssignments",
      "apiVersion": "2020-10-01-preview",
      "name": "[parameters('roleAssginmentName')]",
      "scope": "[parameters('roleAssignmentTargetResourceId')]",
      "properties": "[parameters('roleAssignmentProperties')]"
    }
  ]
}

You can use a JSON template from as a module within Bicep, so this snippet would be included as:
module roleAssignment './role-assignment-template.json' = {
  name: 'roleAssignmentTemplate'
  params: {
    ...
    roleAssignmentTargetResourceId: resourceSymbol.id
  }
}

The resource() function would certainly help since Bicep relies heavily on symbolic links and this method can create them from strings. I will proceed with the nested json template in the meantime and be on the lookout for any upcoming releases with new fucntionalities.
Thanks!


Better solution for doc.silverstripe.org/issues/79

The better solution I proposed for https://github.com/silverstripe/doc.silverstripe.org/issues/79 seems to have been missed in the confusion of my PR titles.

I think this was merged into the develop branch (but not master).

The develop branch got my original fix, which I wanted to replace with this one. What is the best way to sort this ? Sorry for mess.

develop will likely get canned in the not too distant future so it's ok to just have this PR now.

Did you test this alongside the documentation website too?

Yes, but there has been a change to the head template in doc.silverstripe.org that causes a problem with running the site locally (see doc.silverstripe.org/issues/85).

you can make a temp change locally to check that if you need?

OK....will triple check :)

Works perfectly :) I tested it also when I first submitted the PR for it.


2nd Mod Options

Any reason why I would have a 2nd Mod Options at the bottom of my Main Menu but its not usable or clickable?

Do you have another mod installed with a Mod Options menu? I think AutoTrader might

Ah. Figured it out... I finally got access to the button after removing the "Just Let Me Play" mod. It had pushed the button down and I couldn't access it. It appears to be from the Community patch! I wish they were using the same system you were! :(

https://github.com/Tyler-IN/MnB2-Bannerlord-CommunityPatch/issues/61
https://github.com/Tyler-IN/MnB2-Bannerlord-CommunityPatch/issues/97


Info Hotspot Customization

Hi Team,
Is there a code I could use to customize the following for info Hotspots
1.Different icon image for each scene.
2.Different color layout in link hotspot for each scene
Your quick guidance in this area will be appreciated.
Best Regards

you could use https://webxr.tools/

Site now says:
"It is with a heavy heart that we announce the closure of the webXR.tools service. Despite our efforts and positive traction, the platform was not self-sustainable, making it financially unviable to continue the service. We want to thank everyone for their support throughout our journey."


how Hibernate reactive work

Hi, I am confused by this problem. Hibernate use JDBC, and JDBC is Blocking I/O, how hibernate reactive can work with JDBC, and how Hibernate reactive can handle Transaction. thanks

Hibernate ORM uses JDBC but Hibernate Reactive doesn't.
Hibernate Reactive connects to the databases using the Vert.x SQL clients.

@DavideD so how does Hibernate Reactive work, which library is it based on ?

It's built on top of Hibernate ORM.
We have added a new APIs but we try to reuse as much as we can for the implementation (the dialects for example).
You can see in the source code that we extend several existing classes in ORM but we add new methods or override existing ones when we need to so that we can pass CompletionStage objects around.
Because we are using Vert.x,  we can have a non blocking API all the way.

so how does Hibernate Reactive work, which library is it based on ?

The very first section of the documentation explains that:

Java persistence frameworks like JDBC, JPA and Hibernate ORM were designed to use blocking IO for interaction with the database, and are therefore not appropriate for use in a reactive environment. As far as we know, Hibernate Reactive is the first true ORM implementation designed to take advantage of non-blocking database clients. Out of the box, the Vert.x clients for PostgreSQL, MySQL, and DB2 are supported, though the architecture is not limited to these drivers.

https://hibernate.org/reactive/documentation/1.1/reference/html_single/#preface


Adding last and first for queryset

Travis support for 2.6 is dropped for now.
Looking for solution for pypy fix.


[7.0.0] lockfile update testing

Forked from #408

Error updating the lockfile...

Error updating the lockfile...


Edits to unit testing jwt pizza service.

A couple broken links.
There is also a small change to one of the pieces of code. I'm not sure if it's the type of change you want, it just took me around 3-4 hours and 20 debugging statements (I couldn't figure out the debugger) to figure out that DB.addUser changes the password to the hashed version, and when comparing with bcrypt, one of the passwords you pass in has to be the non-hashed version. I was going to just make a mention of it in the Discord, but I thought since the class isn't started yet, why not see if it was intentional.
Also, I can't seem to figure out a way to remove the small spelling correction from all of my PRs, so I hope it's going to be accepted.

Thanks for the submission. I think both the link fixes and the enhancement of the admin creation utility function is good. As you already noted, you probably don't want to include different changes in the same PR.


Name the type of ANN

The paper is very vague with regard to the type of ANN used. The paper generally refers to this as a "neural network model". This is not very satisfying as a reader. Since you're using Keras' Sequential() model with some hidden layers, and because you use K-Folds... I'd call this a Dense Neural Network (with K-folds cross-validation).  If I'm interpreting the situation correctly, maybe refer to it this way throughout the paper?

@katyhuff You definitely saw me through! That is a very good idea, embarrassingly enough, I didn't know the differences between neural network types when writing this paper. I'll make the edits! Thanks

Great! Thanks!


support 'id' property in model objects

The current version supports '_id' property only, with this change it can handle 'id' as well

Thank you for the PR. Could you add a system property like "kmongo.id.enabled" that would activate this feature. (disabled by default). I would prefer to enable this as "feature preview" first.

Thank you for the PR. Could you add a system property like "kmongo.id.enabled" that would activate this feature. (disabled by default). I would prefer to enable this as "feature preview" first.

@zigzago I added the  "kmongo.id.enabled" system property.