[Idea] Repo cleanup - Replace strings with enums

A nice way to keep the repo as clean as possible would be to replace standalone strings with enums.
An example of the issue:
function test (t) {
    if(t === 'number') return 'number';
    if(t === 'text') return 'text'
    if(t === 'address') return 'address'
}

The solution:
In types.ts
export enum InputTypes {
    TEXT = 'text',
    NUMBER = 'number',
    ADDRESS = 'address',
}

In main:
function test (t) {
    if(t === InputTypes.NUMBER) return InputTypes.NUMBER;
    if(t === InputTypes.TEXT) return InputTypes.TEXT;
    if(t === InputTypes.ADDRESS) return InputTypes.ADDRESS;
}

As per TS docs:
Enums allow a developer to define a set of named constants. Using enums can make it easier to document intent, or create a set of distinct cases.

This might be a good idea when we refactor. Closing for now.


use constant-time string comparison to prevent timing attacks

Example:
https://github.com/bitpay/bitcore-ecies/blob/cd0d6a0f8b887dd8e33ae5c68ca947030b194297/lib/ECIES.js#L79

reported by @juli

Please clarify what the timing attack could reveal. As far as I can see, the encrypted message would not be at stake. Only the sender pubKey? Would the issue be that a MITM could find out who is sending, given he has the sender's pubKey?

From my understanding, the timing attack could reveal the MAC key. An attacker can send crafted messages changing the HMAC and measuring the time the peer takes to respond, can progressively build the MAC key.
We don't know if this is practically exploitable (still need to do some tests), but it would be nice to fix anyway.


Role based access

Codecov Report

Merging #902 (89cd4b7) into master (c0d5486) will increase coverage by 0.28%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master     #902      +/-   ##
==========================================
+ Coverage   74.08%   74.36%   +0.28%
==========================================
  Files         133      133
  Lines       12720    12877     +157
==========================================
+ Hits         9423     9576     +153
- Misses       3297     3301       +4

Impacted Files
Coverage Δ

assemblyline/odm/models/user.py
100.00% <100.00%> (ø)

assemblyline/common/heuristics.py
84.78% <0.00%> (-2.18%)
:arrow_down:

assemblyline/odm/models/config.py
99.31% <0.00%> (-0.22%)
:arrow_down:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Uncaught Assertion Error | v0.20.0

$ deno --version
deno 1.5.4 (bc79d55, release, x86_64-unknown-linux-gnu)
v8 8.8.278.2
typescript 4.0.5

db.ts
import { MongoClient } from<EMAIL_ADDRESS>
const client = new MongoClient();
client.connect('mongodb://localhost:27017');

const db = client.database('test');

$ deno run --allow-net --allow-read --allow-write --allow-plugin --allow-env --unstable db.ts
Check file:///workspace/db.ts
error: Uncaught AssertionError
    throw new AssertionError(msg);
          ^
    at assert (asserts.ts:152:11)
    at MongoClient.database (client.ts:48:5)
    at db.ts:6:19

hello,the resolve is to use
const await client.connect('mongodb://localhost:27017');

Hi there! You are right the await resolved.
Thanks a lot :D

If I change that line to use await , i am seeing the previous line throw error in vs code " Cannot redeclare block scoped variable"

hi,
this solved for me
import { MongoClient } from<EMAIL_ADDRESS>const client = new MongoClient();
await client.connect('mongodb://localhost:27017');
const db = client.database('test');
export default db
Also there is an connection test file in the repo that you can check:
https://github.com/manyuanrong/deno_mongo/blob/refactor/tests/connect.test.ts
Best regards
Em ter., 15 de dez. de 2020 às 17:00, chansdad<EMAIL_ADDRESS>escreveu:

If I change that line to use await , i am seeing the previous line throw
error in vs code " Cannot redeclare block scoped variable"
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/manyuanrong/deno_mongo/issues/133#issuecomment-745532882,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AGIP4IMEXXG7QBQLRG5YRVLSU6567ANCNFSM4UEJEBMA
.

It didn't surpport localhost try <IP_ADDRESS>, the bug may caused by deno in window

hello,the resolve is to use
const await client.connect('mongodb://localhost:27017');

thanks men, salved my life

hello,the resolve is to use
const await client.connect('mongodb://localhost:27017');

thanks men, salved my life

hello,the resolve is to use
const await client.connect('mongodb://localhost:27017');

thanks men, salved my life

Did you use the win os? If true, you can try <IP_ADDRESS> to replace the ‘localhost'.

hello,the resolve is to use
const await client.connect('mongodb://localhost:27017');

thanks men, salved my life

Did you use the win os? If true, you can try <IP_ADDRESS> to replace the ‘localhost'.


Is there any reason than Foundatio.RabbitMQ do not support Queue Plugin?

Is there any reason than Foundatio.RabbitMQ do not support Queue Plugin?

We mainly see it as a message bus and had no requirements at the time to use it as a queue. We use it in our apps for a message bus and then user azure storage queues or SQS for queues. Would you like to add support for this?

ok I will try to do this

We'd be willing to accept a pr for a queue implementation. I'm going to close this issue, but feel free to reference it in a pr!


asciinema/asciinema-server ERROR (RuntimeError) connect raised KeyError exception: key :password not found

Greetings
After multiple failed install tried, following the installation guide, looking through forum topis and other online resources, I'll just ask here.
Currently it's full vanilla install, so defaults almost everywhere, apart from .env.production file and fix for postgres issue 398
My .env.production
URL_SCHEME=http
URL_HOST=myurl
URL_PORT=80
SECRET_KEY_BASE=MYSECRETREMOVED
DATABASE_URL=postgresql://postgres@postgres/postgres
MAILNAME=localhost

All of the docker containers are running except the "asciinema/asciinema-server"
** (RuntimeError) connect raised KeyError exception: key :password not found. The exception details are hidden, as they may contain sensitive data such as database credentials. You may set :show_sensitive_data_on_connection_error to true when starting your connection if you wish to see all of the details
    (elixir 1.12.1) lib/keyword.ex:420: Keyword.fetch!/2
    (postgrex 0.15.5) lib/postgrex/protocol.ex:722: Postgrex.Protocol.auth_md5/4
    (postgrex 0.15.5) lib/postgrex/protocol.ex:579: Postgrex.Protocol.handshake/2
    (db_connection 2.2.2) lib/db_connection/connection.ex:69: DBConnection.Connection.connect/2
    (connection 1.0.4) lib/connection.ex:622: Connection.enter_connect/5
    (stdlib 3.16.1) proc_lib.erl:226: :proc_lib.init_p_do_apply/3

So, how do I fix his asciinema/asciinema-server error and make it all work?
Thx in advance

Does this issue persist even after what I suggested in #399 ?
You mentioned my previous issue #398 - which I accidently closed - I replaced it with #399.

Have a look at the DB docs & you will see that you can add the password: user[:password]. So instead of the POSTGRES_HOST_AUTH_METHOD: trust you can just use a password and add it to the DATABASE_URL & see the Postgres's docker page for what env vars you need.

OK - everything else in the configuration either has in-line comments or the ascii-cinema server documentation is solid - with the exception of the Postgres configuration. It might be a good idea to at least add a reference similar to the other containers such that someone who's not familiar with Postgres can get everything up and running easily. As I mentioned in #399 , a single line added to the docker-compose.yml, along with the rest of the existing documentation makes it a breeze to deploy. It could be made even easier. That's all I'm saying.

Indeed, I see that there is already PR #394 with the POSTGRES_HOST_AUTH_METHOD=trust addition.

Thanks guys, I now merged the above PR which should make things easier.

FYI I've put the new docker-compose.yml template in the new self-hosting quick-start guide: https://docs.asciinema.org/manual/server/self-hosting/quick-start/


[GLUTEN-2961][VL] Integrate with upstream Velox

What changes were proposed in this pull request?
Make the needed changes to integrate with upstream Velox.
Depending on: https://github.com/oap-project/velox/tree/update.
Lacks:

ORC support

How was this patch tested?
under test

CC: @zuochunwei

@rui-mo https://github.com/facebookincubator/velox/pull/5437 has merged. Can we also pick this PR in velox?

"Some compression codecs are not supported in Velox parquet write" -> can you please list the missing codec here?

@zhouyuan I picked lz4 support to Velox branch, and they are all supported now.

@rui-mo facebookincubator/velox#5437 has merged. Can we also pick this PR in velox?

@JkSelf It is included now.

We still need to maintain GenericBenchmark for debug purpose. Let me try to extract the ORC reader in micro benchmark by adding a compile option which is initially disabled.

/Benchmark Velox

Just merged this PR, and the remaining issues can be solved directly on the main branch from now on.
Below are the backups for today's Gluten and Velox:
https://github.com/oap-project/gluten/commits/2023_10_19
https://github.com/oap-project/velox/tree/2023_10_19
Thank you all for the efforts on this change!

note: there are several todo

fix the performance gap
fix ORC related tests
improve GHA CI

===== Performance report for TPCH SF2000 with Velox backend, for reference only ====

query
log/native_3341_time.csv
log/native_master_10_18_2023_4dbb181cc_time.csv
difference
percentage

q1
39.65
43.58
3.931
109.91%

q2
24.27
24.34
0.073
100.30%

q3
41.21
35.79
-5.421
86.84%

q4
35.30
41.52
6.222
117.63%

q5
69.05
70.78
1.739
102.52%

q6
7.09
5.74
-1.354
80.91%

q7
105.47
86.23
-19.245
81.75%

q8
106.61
80.16
-26.447
75.19%

q9
151.73
117.35
-34.380
77.34%

q10
64.45
47.73
-16.724
74.05%

q11
22.84
20.15
-2.688
88.23%

q12
31.94
25.94
-6.007
81.20%

q13
75.07
49.65
-25.419
66.14%

q14
21.42
15.32
-6.102
71.51%

q15
50.32
27.13
-23.189
53.91%

q16
24.45
16.07
-8.384
65.71%

q17
107.44
122.53
15.090
114.05%

q18
210.17
163.25
-46.923
77.67%

q19
25.80
13.15
-12.647
50.98%

q20
40.29
25.17
-15.120
62.47%

q21
333.83
235.27
-98.560
70.48%

q22
17.05
15.49
-1.553
90.89%

total
1605.42
1282.32
-323.107
79.87%

Great work!

@zhouyuan

fix the performance gap

could you share more about this?

@Yohahaha Yes, on TPC-H/DS we find ~20% perf regression, the issue is mostly on hashjoin and hashagg. We already identified some root cause on Hash Agg (some tunings on param required). Will have some follow commits as this patch is quite big and requires rebase efforts from Rui.
Here's one report on TPCH SF2000
https://github.com/oap-project/gluten/pull/3341#issuecomment-1769752364
thanks, -yuan

@Yohahaha Yes, on TPC-H/DS we find ~20% perf regression, the issue is mostly on hashjoin and hashagg. We already identified some root cause on Hash Agg (some tunings on param required). Will have some follow commits as this patch is quite big and requires rebase efforts from Rui.
Here's one report on TPCH SF2000 #3341 (comment)
thanks, -yuan

We found ~1x perf regression in TPCDS sf1000.

@Yohahaha Yes, on TPC-H/DS we find ~20% perf regression, the issue is mostly on hashjoin and hashagg. We already identified some root cause on Hash Agg (some tunings on param required). Will have some follow commits as this patch is quite big and requires rebase efforts from Rui.
Here's one report on TPCH SF2000 #3341 (comment)
thanks, -yuan

We found ~1x perf regression in TPCDS sf1000.

@Yohahaha can you please check https://github.com/oap-project/gluten/pull/3439 can help to bring some performance back?
thanks, -yuan

@zhouyuan
after 3439, OOM throwed, seems peek memory is higher.


Drop custom icon

Sorry, habit that I delete branches after I merge but i remembered it's your repo so idk if you wanted to keep it :)

Sorry, habit that I delete branches after I merge but i remembered it's your repo so idk if you wanted to keep it :)

No problem, this branch isn't needed anymore :)


Docker tests

Add tests which builds a docker container using the dotnet isolated image, run it and validate basic functionality.
The docker repo has tests but the function app payload it uses does not get updated often. It makes sense for us to build this in to our CI.

Noting that some test coverage was added for SDK container builds when that was added. Tests requiring a docker daemon are not run by default and need to be explicitly added as a follow-on step in CI.


Feature request: Please, add implementation for Novograd algorithm

Great work!
Can you, please, add implementation for Novograd algorithm?
Support info:
paper: https://arxiv.org/abs/1905.11286
Novograd implementations:
https://github.com/NVIDIA/apex/blob/master/apex/optimizers/fused_novograd.py
https://github.com/jettify/pytorch-optimizer/blob/master/torch_optimizer/novograd.py
https://github.com/convergence-lab/novograd
https://github.com/lonePatient/NovoGrad-pytorch
https://github.com/titu1994/keras_novograd

I had a look before at this. It is a bit more work and I will probably not focus on it for the next release, but it's good to know that people are interested in this (I had the request before). I will probably implement it sometime next month.


Merge 3.1.0 Release Notes to main

various science tutorial updates
new page: Release Notes

I merged this but do I also need to tag it or something like that? Because it's released to master?

@rtapella If I recall, tagging will make it also be the stable copy not just latest, so usually you would take master before merging new stuff in. If we missed it this time, not a big deal (and we could go tag the commit before the PR).


Reset Template Manager cache when user relogins

Currently if user relogins, he might see for a short period of time private templates of prev user.
User will not be able to use them, but we need to fix this anyways

Done


Nginx dashboard - no data points

Hi,
First of all thanks for this repo. It's great work and I was looking for something like that long time. Appreciate it!
I have no data points in the Nginx dashboard. Only CPU usage.
Any idea why and what should I do to get the data?

Do you have an nginx container running?
My understanding is the nginx node was included as an example, however I could be incorrect

You need an nginx container and an nginx exporter, once you have that, add the nginx exporter to your Prometheus config.


CTHUB -  Convert GER Columns to Expected Types

Describe the task
Convert the GER columns to their expected types.
Purpose
This will allow the data to be consistently handled as strings and preventing unexpected errors or inconsistencies in data processing and analysis.
Acceptance Criteria

[ ] Update all relevant fields for GER in the code and database.

Additional context

I wanted to comment on the Purpose to may it clearer. The purpose is to change the 'Approvals', 'Applicant Name', 'Category', 'Fleet/Individuals',  'Rebate adjustment (discount)', 'Manufacturer', 'City', 'Model', 'Postal code', 'VIN Number', 'Email', 'Phone' to strings so that can be stripped of trailing whitespaces and capitalized like this according to the notes in Request 1.1.

Thank you @JulianForeman
Amazing work

This card will be broken down into sections. New cards will be created.


jetbrains: 2019.2.*

Motivation for this change
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nix-review --run "nix-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

Notify maintainers
cc @

@GrahamcOfBorg build jetbrains

1 package failed to build:
jetbrains.webstorm
builder for '/nix/store/n332j1m0m89mmwrw88n1317wpxamhi3i-webstorm-2019.2.1.drv' failed with exit code 1; last 6 log lines:
  unpacking sources
  unpacking source archive /nix/store/fx6wrmms8aalapfxxwjybk889nfr9azj-WebStorm-2019.2.1.tar.gz
  source root is WebStorm-192.6262.59
  setting SOURCE_DATE_EPOCH to timestamp<PHONE_NUMBER> of file WebStorm-192.6262.59/product-info.json
  patching sources
  rm: cannot remove 'jre64': No such file or directory
cannot build derivation '/nix/store/h3869vark9813cff1s0qwa7n1sigywkj-env.drv': 1 dependencies couldn't be built

Thank you, all of the above builds fine.

@eadwu @mmahut See https://github.com/NixOS/nixpkgs/pull/65383 For how webstorm can be resolved


It would be good get information Double Data Rate (DDR) info in si.mem() method

Is your feature request related to a problem? Please describe.
i am building a electron app which shows information about system and when i wanna implement memory information i realize that there is no option for it
Describe the solution you'd like
it would be good to get DDR info in si.mem() function

There is option for it instead of using  mem()`` method use memLayout()``


Add image url to Album class

Why aren't the cover image urls added directly to the Album object. Now you need to call get_cover_image and that function gets the information through another request which is weird because the urls are already given with the first request made when the Album object was created. The reason i bring this up is because its a big bottleneck for my application

That sounds like a good idea. I'm not at a computer right now; what is the Last.fm API request made when creating an Album object?
In the meantime, does enable_caching help?

# Neither of these make any requests
album = pylast.Album("Test Artist", "Test Album", network)
album = network.get_album("Test Artist", "Test Album")

#  This is the first request
print(album.get_cover_image())

How are you creating the Album object?

What did you do?
What did you expect to happen?
What actually happened?
What versions of OS, Python and pylast are you using?
Please include code that reproduces the issue.
The best reproductions are self-contained scripts with minimal dependencies.
code goes here

I'm sorry i forget about that usecase. My application is a sort of music searcher/downloader
network = pylast.LastFMNetwork(api_key=API_KEY, api_secret=API_SECRET)
Albums = network.search_for_album(query)
Albums = Albums.get_next_page() #this line send a request and in the response are all the image urls for each individual album

for me to get the image urls i need run get_cover_image() for each seperate albums wich are a lot of requests wich are uneccevary becaus al the information is already given whit the first request made by get_net_page() :

Thanks, a code snippet always helps! And thanks for the proof of concept in https://github.com/pylast/pylast/pull/262, that looks the right sort of approach. I'll take a closer look.

As an aside, I'd suggest renaming the first Albums something like search (in case you need to get another page), and the second one as albums (capitals usually indicate a class):
network = pylast.LastFMNetwork(api_key=API_KEY, api_secret=API_SECRET)
search = network.search_for_album(query)
albums = search.get_next_page() #this line send a request and in the response are all the image urls for each individual album

Thanks, https://github.com/pylast/pylast/pull/262 is merged!
Future ideas:

Save images for artists
Save images for tracks
Save images when doing other .getInfo/get_next_page calls (but don't allow exceptions)
Save the other data we get when doing other .getInfo/get_next_page calls (")

First two done in #264. Closing this issue as the specific need has been addressed. Others can be considered as necessary.


[WIP] Crash fixes.

[Consigments] Don’t assume a photo was selected. Fixes #840 / Sentry

Ah, wrong PR, but it was still OK to go ;)

Hah. I was planning on grouping crash fixes, but this change was def ok to merge 👍


Implement withAuth.js to protect private routes

Implement withAuth.js to protect private routes in the utils folder

@shikhar13012001 I want to work on this issue

fixes issue #3


RuleError should have "detail/message" field

Would be nice to be able to return detail/messages for errors; for example the the obsolete tag could return a message about what the tag was replaced with.

Yesterday I was also thinking about adding Rule subclass name to the RuleError class in case of failure, so that it could be used as a link to specific rule violation explained in detail on the website and potentially also in "integration" tests, that may want to create linter with more than one rule.

yeah that might be useful


[wasm] Specify COOP/COEP when using WebAssembly

Add cross_origin_embedder_policy and cross_origin_opener_policy
properties into manifest.json, which allow to configure the extension's
Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy
correspondingly.
These settings will be required by new versions of Chrome for extensions
that use WebAssembly with multi-threading. See, for example:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer/Planned_changes
Normally these settings are configured via HTTP headers, but inside the
extension this isn't possible. But the Chrome Extensions team added
special manifest entries that allow to achieve the same COOP/COEP
configuration as if it was done via headers:
https://groups.google.com/u/0/a/chromium.org/g/chromium-extensions/c/Auo0HwzsyG0/m/TIpqFyIaDAAJ

I'm going to temporarily revert this because it causes multiple issues: http://crbug.com/1275140, http://crbug.com/1275145. Let's see how these discussions go and how/when we'll be able to reland this.


[DC-260] Add dataset table and DAO layer

Define the schema in liquibase (note: the pgcrypto extension is required to use the uuid_function)
Add a DAO class with basic CRUD operations that directly uses jdbc. Currently the create and update methods take in the Dataset record model, but we'll want to change this to the request model once we have the equivalent API endpoints implemented.

The sonarcloud coverage is 0% because the unit tests aren't running in the action yet

I updated sonar to ignore the error about having too many parent classes but the test coverage report still fails


WIP: kvmtool: Initial commit

Add initial kvmtool version

Signed-off-by: Sergey Temerkhanov<EMAIL_ADDRESS>

Hey @temerkhanov -- do you think we can close this one in favor of #1662 (which is based on this work of yours but also does the rename + adds microvm qemu)

Included in kvm-tools


Split IRazorIRPhase into multiple Phases

Currently IRazorIRPhase contains all passes that do three distinct things as mentioned here https://github.com/aspnet/Razor/blob/dev/src/Microsoft.AspNetCore.Razor.Evolution/RazorIRPass.cs#L27. We instead want to have them run as their own phase.

yes we do 👍

8ac5468714ca68cc69cbf801b85e5f32d8d53b23 and aspnet/Mvc@38e1e7d14ea2375ebf8427d8764e54a73d213a47


Proposition: Conditionally implement Serialize/Deserialize traits from serde crate for Style relates structs and enums

Hi,
It would be nice to see stretch implement (as a non-default feature) Serialize and Deserialize traits from Serde crate, so a program could load styles from a JSON or YAML file for example or serialize them.
For now, I've implemented this using Serde's "remote" feature, which allows to overcome Rust's orphan rule for implementing external crate's traits for other external create's types. This works but it's not very robust solution (I've had to make a copy of all Style related structs and enums and modify then according to Serde's documentation).
I can prepare a PR for this if there no objection from the authors.

OK, I've went ahead anyway and I've already prepared a PR #49. Feature name is serde. When enabled, it affects only Style related structs and enums.

Agreed! Sorry for the delayed response, I've merged your PR. Really good stuff. Thank you!


Should NdArray be allowed to omit non-varying domain axes?

I was thinking, since we now have a standalone range in the form of an NdArray object, would it make sense to allow to leave out non-varying axes? This would be how typical labelled-array libraries handle that, like xarray. In xarray, the DataArray is a bit like a Coverage with one parameter, and there the array data has varying dimensions and associated coordinates, but the DataArray/Coverage object itself also can have other coordinates, like a fixed time coordinate.
I think to make NdArrays less awkward and promote the use of domain axes for additional non-varying things (like country ID, or fixed time) it would be good to not force the NdArray to have all axes of the domain. This would also reduce the confusion of which order to choose for those additional axes.
Client-side I don't see any complications.

Yes, I think your approach is sound. My only worry would be that it’s quite easy for a data producer just to stick the axis names in the array, irrespective of whether they are single-or multiple-valued. It takes a small amount of extra thought to remember
to omit the single-valued axes. But I don’t think it’s a big deal. Maybe if a data producer accidentally inserts the name of a single-valued axis the client could simply ignore it.

It would still be allowed to include single-value axis names. It's just that they are not strictly required.

Hmm, maybe I have to rethink that. I didn't consider the case of all-fixed axes, like for Point. Then at least one axis would suddenly be required again, which then is again arbitrary. Maybe let's leave it as it is then.

If all axes are fixed, then each Range only has one value. So the axisNames field is redundant and could even be omitted (or empty?). In any case, clients wouldn't need to read it at all, right?

Sure, but then it's not a proper nd-array anymore. There has to be at least one dimension, otherwise it's something different. I'd rather have a consistent approach with a 1-element nd array instead of inventing another range type like "SingleValue".

what does xarray do in this situation?

Hmm, xarray wraps numpy, and numpy actually supports 0D arrays:
>>> foo = xr.DataArray(np.array(12.4), dims=[], coords={'time': '2002'})
>>> foo
<xarray.DataArray ()>
array(12.4)
Coordinates:
    time     <U4 '2002'

time is an additional coordinate here, not related to the array dimensions.
You would access that single element with foo[()], while foo[0] throws an error, which makes sense. So it's kind of a degenerate nd array.
Interestingly, the ndarray library in javascript automatically wraps a single element into a 1D array, but if you then pick that axis element, then it reduces to a 0D array.
So, ok, too much worrying from my side again. Let's just do it. 0D arrays, without shape and axisNames, or optionally shape=axisNames=[].

ok sounds good

Funny, coincidentally my library covjson-reader already supports leaving out axisNames and shape, due to its backwards-compatibility with the old range structure (where rangeAxisOrder was optional in the Domain object). I'll change the spec accordingly now.

Changed it, the coverage examples of the common domain types spec look much nicer now. Less clumsy.


Adds missing GeoJSON functions to API docs

Add leafdoc mark-up for addData, setStyle and resetStyle methods.
Fixes #4630

Looks good! Thanks, @rheh!


Exception thrown on clean project

When following the instructions on: https://developer.xamarin.com/guides/cross-platform/dotnet-embedding/getting-started/java/android/
VS Code community 7.7.3 (build 5)
macOS Siera 10.12.6
I get the following exception on a clean project:
Building Solution: EmbedTest (Debug)
Executing: rm -Rf '/Users/Shared/Jenkins/Projects/EmbedTest/output/'
Executing: mono '/Users/Shared/Jenkins/Projects/EmbedTest/packages/Embeddinator-4<IP_ADDRESS>/tools/Embeddinator-4000.exe' '/Users/Shared/Jenkins/Projects/EmbedTest/bin/Debug/EmbedTest.dll' --gen=Java --platform=Android --outdir='/Users/Shared/Jenkins/Projects/EmbedTest/output' -c
Parsing assemblies...
    MonoAndroidToolsPath path is not found and no default location is provided; skipping
    Parsed 'EmbedTest.dll'
Processing assemblies...
Generating binding code...
    Generated: EmbedTest.h
    Generated: EmbedTest.c
    Generated: Mono.Android.h
    Generated: Mono.Android.c
    Generated: Java.Interop.h
    Generated: Java.Interop.c
    Generated: mscorlib.h
    Generated: mscorlib.c
    Generated: .DS_Store
    Generated: c-support.c
    Generated: c-support.h
    Generated: embeddinator.h
    Generated: glib.c
    Generated: glib.h
    Generated: mono-support.c
    Generated: mono-support.h
    Generated: mono_embeddinator.c
    Generated: mono_embeddinator.h
Compiling binding code...

Unhandled Exception:
System.InvalidOperationException: Sequence contains no elements
  at System.Linq.Enumerable.Max (System.Collections.Generic.IEnumerable`1[T] source) [0x00022] in <3fb92ec709f44a579da6a23087df403d>:0
  at Embeddinator.XamarinAndroid+<>c.<.cctor>b__4_1 () [0x00029] in <861966a3e3bd4f5cb470ae751f890033>:0
  at System.Lazy`1[T].CreateValue () [0x00081] in <4fdc5ed61a074cafb49fa42deb20d521>:0
  at System.Lazy`1[T].LazyInitValue () [0x00080] in <4fdc5ed61a074cafb49fa42deb20d521>:0
  at System.Lazy`1[T].get_Value () [0x0003a] in <4fdc5ed61a074cafb49fa42deb20d521>:0
  at Embeddinator.XamarinAndroid.get_ApiLevel () [0x00000] in <861966a3e3bd4f5cb470ae751f890033>:0
  at Embeddinator.Driver.CompileNDK (System.Collections.Generic.IEnumerable`1[T] files) [0x00115] in <861966a3e3bd4f5cb470ae751f890033>:0
  at Embeddinator.Driver.CompileNativeCode (System.Collections.Generic.IEnumerable`1[T] files) [0x000ba] in <861966a3e3bd4f5cb470ae751f890033>:0
  at Embeddinator.Driver.CompileCode () [0x000a6] in <861966a3e3bd4f5cb470ae751f890033>:0
  at Embeddinator.Driver.Run () [0x000a5] in <861966a3e3bd4f5cb470ae751f890033>:0
  at Embeddinator.CLI.Main (System.String[] args) [0x00092] in <861966a3e3bd4f5cb470ae751f890033>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.InvalidOperationException: Sequence contains no elements
  at System.Linq.Enumerable.Max (System.Collections.Generic.IEnumerable`1[T] source) [0x00022] in <3fb92ec709f44a579da6a23087df403d>:0
  at Embeddinator.XamarinAndroid+<>c.<.cctor>b__4_1 () [0x00029] in <861966a3e3bd4f5cb470ae751f890033>:0
  at System.Lazy`1[T].CreateValue () [0x00081] in <4fdc5ed61a074cafb49fa42deb20d521>:0
  at System.Lazy`1[T].LazyInitValue () [0x00080] in <4fdc5ed61a074cafb49fa42deb20d521>:0
  at System.Lazy`1[T].get_Value () [0x0003a] in <4fdc5ed61a074cafb49fa42deb20d521>:0
  at Embeddinator.XamarinAndroid.get_ApiLevel () [0x00000] in <861966a3e3bd4f5cb470ae751f890033>:0
  at Embeddinator.Driver.CompileNDK (System.Collections.Generic.IEnumerable`1[T] files) [0x00115] in <861966a3e3bd4f5cb470ae751f890033>:0
  at Embeddinator.Driver.CompileNativeCode (System.Collections.Generic.IEnumerable`1[T] files) [0x000ba] in <861966a3e3bd4f5cb470ae751f890033>:0
  at Embeddinator.Driver.CompileCode () [0x000a6] in <861966a3e3bd4f5cb470ae751f890033>:0
  at Embeddinator.Driver.Run () [0x000a5] in <861966a3e3bd4f5cb470ae751f890033>:0
  at Embeddinator.CLI.Main (System.String[] args) [0x00092] in <861966a3e3bd4f5cb470ae751f890033>:0

---------------------- Done ----------------------

Build successful.

@tritao Thanks for the info. Could you let me know when this is available on NuGet and I will test it and see if it resolves the issue, until then it's a bit of a no go due to having users that I can't expect to go though those steps. Many thanks

@tritao  I have same issues after build the latest build from master branch:
Parsing assemblies...
MonoAndroidToolsPath path is not found and no default location is provided; skipping

Unhandled Exception:
System.ArgumentNullException: Value cannot be null.
Parameter name: path1
  at System.IO.Path.Combine (System.String path1, System.String path2) [0x00003] in <4fdc5ed61a074cafb49fa42deb20d521>:0
  at Embeddinator.XamarinAndroid.GetMonoDroidPath () [0x00025] in <8daf7786f5804c668a8e96d76d68b7e7>:0
  at System.Lazy`1[T].CreateValue () [0x00081] in <4fdc5ed61a074cafb49fa42deb20d521>:0
  at System.Lazy`1[T].LazyInitValue () [0x00080] in <4fdc5ed61a074cafb49fa42deb20d521>:0
  at System.Lazy`1[T].get_Value () [0x0003a] in <4fdc5ed61a074cafb49fa42deb20d521>:0
  at Embeddinator.XamarinAndroid.get_Path () [0x00000] in <8daf7786f5804c668a8e96d76d68b7e7>:0
  at Embeddinator.XamarinAndroid+<>c.<.cctor>b__32_1 () [0x00000] in <8daf7786f5804c668a8e96d76d68b7e7>:0
  at System.Lazy`1[T].CreateValue () [0x00081] in <4fdc5ed61a074cafb49fa42deb20d521>:0
  at System.Lazy`1[T].LazyInitValue () [0x00080] in <4fdc5ed61a074cafb49fa42deb20d521>:0
  at System.Lazy`1[T].get_Value () [0x0003a] in <4fdc5ed61a074cafb49fa42deb20d521>:0
  at Embeddinator.XamarinAndroid.get_TargetFrameworkDirectories () [0x00000] in <8daf7786f5804c668a8e96d76d68b7e7>:0
  at Embeddinator.Driver.Parse () [0x00071] in <8daf7786f5804c668a8e96d76d68b7e7>:0
  at Embeddinator.Driver.Run () [0x0002a] in <8daf7786f5804c668a8e96d76d68b7e7>:0
  at Embeddinator.CLI.Main (System.String[] args) [0x00092] in <8daf7786f5804c668a8e96d76d68b7e7>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentNullException: Value cannot be null.
Parameter name: path1
  at System.IO.Path.Combine (System.String path1, System.String path2) [0x00003] in <4fdc5ed61a074cafb49fa42deb20d521>:0
  at Embeddinator.XamarinAndroid.GetMonoDroidPath () [0x00025] in <8daf7786f5804c668a8e96d76d68b7e7>:0
  at System.Lazy`1[T].CreateValue () [0x00081] in <4fdc5ed61a074cafb49fa42deb20d521>:0
  at System.Lazy`1[T].LazyInitValue () [0x00080] in <4fdc5ed61a074cafb49fa42deb20d521>:0
  at System.Lazy`1[T].get_Value () [0x0003a] in <4fdc5ed61a074cafb49fa42deb20d521>:0
  at Embeddinator.XamarinAndroid.get_Path () [0x00000] in <8daf7786f5804c668a8e96d76d68b7e7>:0
  at Embeddinator.XamarinAndroid+<>c.<.cctor>b__32_1 () [0x00000] in <8daf7786f5804c668a8e96d76d68b7e7>:0
  at System.Lazy`1[T].CreateValue () [0x00081] in <4fdc5ed61a074cafb49fa42deb20d521>:0
  at System.Lazy`1[T].LazyInitValue () [0x00080] in <4fdc5ed61a074cafb49fa42deb20d521>:0
  at System.Lazy`1[T].get_Value () [0x0003a] in <4fdc5ed61a074cafb49fa42deb20d521>:0
  at Embeddinator.XamarinAndroid.get_TargetFrameworkDirectories () [0x00000] in <8daf7786f5804c668a8e96d76d68b7e7>:0
  at Embeddinator.Driver.Parse () [0x00071] in <8daf7786f5804c668a8e96d76d68b7e7>:0
  at Embeddinator.Driver.Run () [0x0002a] in <8daf7786f5804c668a8e96d76d68b7e7>:0
  at Embeddinator.CLI.Main (System.String[] args) [0x00092] in <8daf7786f5804c668a8e96d76d68b7e7>:0

I was hitting the same issue as @PluginIO above, so I built from current master and replaced the tools,support, and external folders.
I hit a similar but slightly different stack trace with current master code, stating that the Android SDK is missing.   I am able to build Xamarin Android in Visual Studio for Mac on this same system without issue.
`
Executing: mono '/Users/me/Desktop/git/embed-android/packages/Embeddinator-4<IP_ADDRESS>/tools/Embeddinator-4000.exe' '/Users/me/Desktop/git/embed-android/shared-csharp/bin/Debug/shared-csharp.dll' --gen=Java --platform=Android --outdir='/Users/me/Desktop/git/embed-android/output' -c -verbose
Parsing assemblies...
MonoAndroidToolsPath path is not found and no default location is provided; skipping
Unhandled Exception:
System.Exception: Cannot find Android SDK installed.
at Embeddinator.XamarinAndroid.GetMonoDroidPath () [0x00034] in <8fc39d52a1424793824a01acdddfd4e7>:0
at System.Lazy1[T].CreateValue () [0x00081] in <e22c1963d07746cd9708456620d50e1a>:0    at System.Lazy1[T].LazyInitValue () [0x00080] in :0
at System.Lazy1[T].get_Value () [0x0003a] in <e22c1963d07746cd9708456620d50e1a>:0    at Embeddinator.XamarinAndroid.get_Path () [0x00000] in <8fc39d52a1424793824a01acdddfd4e7>:0    at Embeddinator.XamarinAndroid+<>c.<.cctor>b__32_1 () [0x00000] in <8fc39d52a1424793824a01acdddfd4e7>:0    at System.Lazy1[T].CreateValue () [0x00081] in :0
at System.Lazy1[T].LazyInitValue () [0x00080] in <e22c1963d07746cd9708456620d50e1a>:0    at System.Lazy1[T].get_Value () [0x0003a] in :0
at Embeddinator.XamarinAndroid.get_TargetFrameworkDirectories () [0x00000] in <8fc39d52a1424793824a01acdddfd4e7>:0
at Embeddinator.Driver.Parse () [0x0007c] in <8fc39d52a1424793824a01acdddfd4e7>:0
at Embeddinator.Driver.Run () [0x00038] in <8fc39d52a1424793824a01acdddfd4e7>:0
at Embeddinator.CLI.Main (System.String[] args) [0x000a6] in <8fc39d52a1424793824a01acdddfd4e7>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.Exception: Cannot find Android SDK installed.
at Embeddinator.XamarinAndroid.GetMonoDroidPath () [0x00034] in <8fc39d52a1424793824a01acdddfd4e7>:0
at System.Lazy1[T].CreateValue () [0x00081] in <e22c1963d07746cd9708456620d50e1a>:0    at System.Lazy1[T].LazyInitValue () [0x00080] in :0
at System.Lazy1[T].get_Value () [0x0003a] in <e22c1963d07746cd9708456620d50e1a>:0    at Embeddinator.XamarinAndroid.get_Path () [0x00000] in <8fc39d52a1424793824a01acdddfd4e7>:0    at Embeddinator.XamarinAndroid+<>c.<.cctor>b__32_1 () [0x00000] in <8fc39d52a1424793824a01acdddfd4e7>:0    at System.Lazy1[T].CreateValue () [0x00081] in :0
at System.Lazy1[T].LazyInitValue () [0x00080] in <e22c1963d07746cd9708456620d50e1a>:0    at System.Lazy1[T].get_Value () [0x0003a] in :0
at Embeddinator.XamarinAndroid.get_TargetFrameworkDirectories () [0x00000] in <8fc39d52a1424793824a01acdddfd4e7>:0
at Embeddinator.Driver.Parse () [0x0007c] in <8fc39d52a1424793824a01acdddfd4e7>:0
at Embeddinator.Driver.Run () [0x00038] in <8fc39d52a1424793824a01acdddfd4e7>:0
at Embeddinator.CLI.Main (System.String[] args) [0x000a6] in <8fc39d52a1424793824a01acdddfd4e7>:0
`

@tritao @jonathanpeppers I should add that I get the same issue as @PluginIO if I install Embeddinator 4K Nuget v<IP_ADDRESS> as well as on Nuget v0.3.0

We need to get latest master on NuGet, one of the things we are working on atm.
For now, can you try building from source with what is on master? You should be able to just run:
git submodule update --init --recursive
./build.sh

Thanks, @jonathanpeppers.   I ran again using current master (latest commit 88b1baa)
I explicitly cleaned the solution and then ran
./build.sh```

I then used the output binaries.

Unfortunately, I get the same exception and stack as above, with the `System.Exception: Cannot find Android SDK installed.` exception

@kevinhowarddr where is your Android SDK installed?

@Zomb /Users/kevin.howard/Library/Android/sdk

I am not sure about a Mac, but I have run into this issue before on windows before and tracked it down by looking at all the paths it searches for in https://github.com/xamarin/xamarin-android-tools/tree/master/src/Xamarin.Android.Tools.AndroidSdk/Sdks. I found that my SDK was not on any of the paths specified in those files.

Thanks, @Zomb.  I believe my path is the default path for Android SDK on Mac.
If I have time today, I'll hack in some hard coded paths in the Xamarin/Embeddinator code and see what happens, but I will probably not have desk time for it until next week.

@kevinhowarddr the other part I see in your log:
MonoAndroidToolsPath path is not found and no default location is provided; skipping

Did the build script download xamarin-android to external/Xamarin.Android? It's the part that says "this might take a while".
You might also try ./build.sh -t Generate-Android, this runs Embeddinator on a test project.

Thanks, @jonathanpeppers, for the quick response and pointers!   Your suggestion yielded very interesting results.
I did not see a reference to xamarin-android when the ./build.sh script was run.   Also, I noticed there was anexternal/Xamarin.Android.Tools but not an external/Xamarin.Android.
So, I ran your suggested ./build.sh -t Generate-Android command.   The build script output then showed the "this might take a while" message and downloaded xamarin-android to external/Xamarin.Android.   The build script succeeded, and, after this, there was also an Android folder added to build/libs/Release.
So I put the updated support, external, and tools binaries in the packages/Embeddinator-4<IP_ADDRESS> folder and...success!  The Android sample project now works and generated .jar and .aar files correctly!
So, based on these results, it seems likely that the default build in the Embeddinator VS solution and using ./build.sh is not pulling in xamarin-android correctly on Mac.   The work around is to run ./build.sh -t Generate-Android against current master code.
Thanks again, @jonathanpeppers!

Any update on this issue


Cant build for BBC Micro:bit v2

Hi, Im trying to build the firmware for a BBC Micro:Bit V2 when I run this command:
west build -p auto -b bbc_microbit_v2 -s app
I get the following error
usage: west [-h] [-z ZEPHYR_BASE] [-v] [-V]  ...
west: error: argument : invalid choice: 'build' (choose from 'init', 'update', 'list', 'manifest', 'diff', 'status', 'forall', 'help', 'config', 'topdir', 'selfupdate')

Hi, I'm seeing this just now. What was the reason for the error? Incorrect directory where you ran west, right?


Use video player instead of a webview

This branch experiments with native video playback instead of playing it inside a webview. This is the ultimate goal of AnimeGo from day one. Thanks to @vkhobor and ani-cli, this is now possible.

This is no longer and a new method should be used instead.


Revise/Update tBTC website IA to reflect dev/user split

another pass at IA to focus on making developer resources vs. user resources/guides more distinct.

*note: stacked boxes indicate multiple pages or components within a major section that follow the same design pattern.


Where is Project Reunion 0.8?

Am I missing something?
From Windows Developer Blog (via Microsoft Build):

With the Project Reunion 0.8 preview you can create and modernize your Windows apps seamlessly for both client and cloud endpoints. To get started, simply install the Project Reunion Visual Studio template and you’ll have access to the project templates and APIs you need.  [...] You can learn more about Project Reunion 0.8 preview and provide feedback in our GitHub. We’re constantly evaluating feedback and if there’s something missing, we want to know!

From the Microsoft Build Book of News, 6.1.3. Project Reunion 0.8 Preview Release:

Project Reunion 0.8 Preview SDK is a new in-market update that allows developers to build and ship Windows apps faster without waiting for the Windows operating system (OS) to update. (Project Reunion 0.5 was released in March.)

We are working on getting the 0.8 Preview released as soon as possible. Stay tuned to the Discussions where we'll announce when it's live!

0.8 Preview is now available! https://docs.microsoft.com/windows/apps/project-reunion/preview-channel


Add geom param to DO upload methods

Yep, we found this running the DODataset e2e tests in CF: https://github.com/CartoDB/cartoframes/tree/develop/tests/e2e/data/do-api.
I have one question regarding PR. Since geom_column is a URL param, should it be normalized? is this done in the AuthClient?

I am going to merge with the tests in red. We have a problem with them that can not be solved now.


Add Accel Enter shortcut to execute a cell

Fixes https://github.com/jupyterlab/retrolab/issues/329

Opened https://github.com/jupyterlab/retrolab/issues/332 as a follow-up.

@meeseeksdev please backport to 0.3.x


fixed so descriptor edit name does not display error on success

Descriptor edit name functionality flashes fixed! previously showed errors on both success and failure, now only shows error on failure.

fixed for code review@ @anniemeng


[BUG] Memory leak

ECS integration/library project(s) (e.g. Elastic.CommonSchema.Serilog):
ECS schema version (e.g. 1.4.0): 8.6.1
ECS .NET assembly version (e.g. 1.4.2): 8.6.1
Elasticsearch version (if applicable): 8.6.2
.NET framework / OS: Core 7 / Any OS
During a soak test on an AKS cluster, during which we enabled verbose logging, our services reached staggering sizes of memory. I took a dmp with dotnet-dump and it turns out there are huge numbers of EcsDocument objects that remain in the generation 2 pool, even after they had been sent to elasticsearch (I verified several of the document instances actually existed in elasticsearch).
Steps to reproduce:
As far as I can say, simply logging a big amount of log lines reproduces this behavior. I created a sample program to demonstrate this:
`
using Elastic.Serilog.Sinks;
using Serilog;
var memoryBefore = GC.GetTotalMemory(false);
Console.WriteLine($"Memory before: {memoryBefore} bytes");
Serilog.Debugging.SelfLog.Enable(s => Console.WriteLine(s));
Log.Logger = new LoggerConfiguration()
.WriteTo.Elasticsearch(new[] { new Uri("http://localhost:9200") }, o =>
{
o.BootstrapMethod = Elastic.Ingest.Elasticsearch.BootstrapMethod.Failure;
o.MinimumLevel = Serilog.Events.LogEventLevel.Verbose;
o.DataStream = new Elastic.Ingest.Elasticsearch.DataStreams.DataStreamName("logs");
})
.CreateLogger();
var random = new Random();
Parallel.For(0, 10000, i =>
{
var randomData = $"Logging information {i} - Random value: {random.NextDouble()}";
Log.Information(randomData);
});
Log.CloseAndFlush();
await Task.Delay(TimeSpan.FromMinutes(1));
// Force garbage collection
GC.Collect();
GC.WaitForPendingFinalizers();
GC.Collect();
var memoryAfter = GC.GetTotalMemory(false);
Console.WriteLine($"Memory after: {memoryAfter} bytes");
var memoryUsed = memoryAfter - memoryBefore;
Console.WriteLine($"Memory used: {memoryUsed} bytes");
`
Here is the output of 'dotnet-dump analyze' of one of the instances:

gcroot 0x7F09547ABCD8
HandleTable:
00007f4904e113a8 (strong handle)
-> 7f0904c04428     System.Object[]
-> 7f092d05caf8     System.Buffers.TlsOverPerCoreLockedStacksArrayPool<Elastic.CommonSchema.EcsDocument>
-> 7f092d05cb60     System.Buffers.TlsOverPerCoreLockedStacksArrayPool<Elastic.CommonSchema.EcsDocument>+PerCoreLockedStacks[]
-> 7f092712fea0     System.Buffers.TlsOverPerCoreLockedStacksArrayPool<Elastic.CommonSchema.EcsDocument>+PerCoreLockedStacks
-> 7f092712feb8     System.Buffers.TlsOverPerCoreLockedStacksArrayPool<Elastic.CommonSchema.EcsDocument>+LockedStack[]
-> 7f0927130298     System.Buffers.TlsOverPerCoreLockedStacksArrayPool<Elastic.CommonSchema.EcsDocument>+LockedStack
-> 7f09271302b8     Elastic.CommonSchema.EcsDocument[][]
-> 7f09567f2568     Elastic.CommonSchema.EcsDocument[]
-> 7f09547abcd8     Elastic.CommonSchema.EcsDocument

I'm experiencing a very similar problem with .NET 6 dockerized apps:
My stack:

.NET 6 dockerized using both the official Alpine and Debian images
NuGet packages for Serilog and Elastic setup:

    <ItemGroup>
        <PackageReference Include="Elastic.Apm.NetCoreAll" Version="1.24.0"/>
        <PackageReference Include="Elastic.Apm.SerilogEnricher" Version="8.6.1"/>
        <PackageReference Include="Elastic.CommonSchema.Serilog" Version="8.6.1"/>
        <PackageReference Include="Elastic.Serilog.Sinks" Version="8.6.1"/>
        <PackageReference Include="Serilog" Version="3.0.1"/>
        <PackageReference Include="Serilog.Enrichers.Environment" Version="2.3.0"/>
        <PackageReference Include="Serilog.Extensions.Hosting" Version="5.0.1"/>
        <PackageReference Include="Serilog.Extensions.Logging" Version="3.1.0"/>
        <PackageReference Include="Serilog.Settings.Configuration" Version="7.0.1"/>
        <PackageReference Include="Serilog.Sinks.Console" Version="4.1.0"/>
    </ItemGroup>

Appsettings for Serilog and Elastic setup:

"Serilog": {
   "Using": ["Serilog.Sinks.Console", "Elastic.Serilog.Sinks"],
   "MinimumLevel": {
     "Default": "Information",
     "Override": {
       "Microsoft": "Warning",
       "Microsoft.EntityFrameworkCore": "Information",
       "Microsoft.Hosting.Lifetime": "Information"
     }
   },
   "WriteTo": [
     {
       "Name": "Console",
       "Args": {
         "customFormatter": "Elastic.CommonSchema.Serilog.EcsTextFormatter, Elastic.CommonSchema.Serilog",
         "InlineFields": "True"
       }
     },
     {
       "Name": "ElasticCloud",
       "Args": {
         "cloudId": "xxx",
         "username": "xxx",
         "password": "xxx",
         "customFormatter": "Elastic.CommonSchema.Serilog.EcsTextFormatter"
       }
     }
   ],
   "Enrich": [
     "FromLogContext",
     "WithMachineName",
     "WithElasticApmCorrelationInfo",
     "WithEnvironmentName"
   ]
 },
 "ElasticApm": {
   "SecretToken": "xxx",
   "ServerUrl": "xxx",
   "ServiceName": "xxx",
   "Enabled": "true"
 },

Elasticsearch stack veresion: 8.10.2 (I also encountered this issue with version 8.6.2)

The problem:
At random points, my containers begin to consume an excessive amount of memory, even during periods of inactivity. The memory consumption steadily increases without limit.
I've observed the following error is logged when this problem begins:
2023-10-21T22:32:53.5989859Z Observed an exception while writing to logs-dotnet-default
2023-10-21T22:32:53.5990190Z System.ArgumentNullException: Value cannot be null. (Parameter 'source')
   at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
   at System.Linq.Enumerable.Where[TSource](IEnumerable`1 source, Func`2 predicate)
   at Elastic.Serilog.Sinks.SelfLogCallbackListener`1.<>c.<.ctor>b__42_1(BulkResponse response, IWriteTrackingBuffer _)
   at Elastic.Channels.BufferedChannelBase`3.ExportBufferAsync(ArraySegment`1 items, IOutboundBuffer`1 buffer)

As a workaround that decrease the impact (in my context) but doesn't solve the underlying issue, I've set this environment variable to disable the GC Server mode
DOTNET_gcServer: 0
And applied memory limits to my containers.
As a side note, it's very frustrating that the sink lacks documentation on how to use Serilog.Settings.Configuration to apply all the settings from the appsettings files. I've figured out how to set some properties, but not how to configure BootstrapMethod, ConfigureChannel, and DataStream.

Thank you for reporting this to us and apologies for getting to it late.
This memory leak should now be fixed as of: https://github.com/elastic/ecs-dotnet/pull/371
All the documents are owned by the array pools backing System.Channel and get gen2'd rather quickly. We also have a high default for InboundBufferMaxSize of 100k which will eat memory for caching purposes. However since we use BoundedChannelFullMode.Wait, in cases where we extremely overproduce it can allocate way more then expected see: https://github.com/dotnet/runtime/blob/fadd8313653f71abd0068c8bf914be88edb2c8d3/src/libraries/System.Threading.Channels/src/System/Threading/Channels/BoundedChannel.cs#L609. As the channels will maintain their own DeQueue to push these messages at a later time.
While we were disposing the buffers already we localised their lifetimes more tightly so GC can release them faster: https://github.com/elastic/elastic-ingest-dotnet/pull/52
The callbacks no longer get passed an instance of the buffer either just a copy of its metadata: https://github.com/elastic/elastic-ingest-dotnet/pull/53
Both of these greatly ease the memory pressure.
Some more background into how the buffer sizes play into memory usages:
https://github.com/elastic/elastic-ingest-dotnet/pull/54


prepare for switch to new bootstrap

Depends-On: https://github.com/opentelekomcloud/otcdocstheme/pull/32

recheck


datePicker is not defined - Datepicker stop working in iOS 9.2

The plugins was working beautifully in iOS 9.0 when I updated the software to 9.2 it stopped working.
This is the error I'm getting "datePicker is not defined"
You can find my code below.
<vs:plugin name="cordova-plugin-datepicker" version="0.9.2" src="https://github.com/VitaliiBlagodir/cordova-plugin-datepicker.git" />
$scope.onSuccess = function (date) {
$ionicLoading.show({
noBackdrop: true,
template: 'Loading data...'
});
dataFactory.updateDateJob(date, $scope.jobNumber, $scope.details, UserService.userName)
.success(function (data) {
$ionicLoading.hide();
$state.go('wipproduction', {}, { reload: true });
})
.error(function (error) {
$ionicLoading.hide();
}).finally(function () {
$ionicLoading.hide();
$scope.$broadcast('scroll.refreshComplete');
})
};
        $scope.onError = function (a) {
            alert(a);
        };

        $scope.selectNewDate = function (job) {
            $scope.jobNumber = job;
            datePicker.show($scope.options, $scope.onSuccess, $scope.onError);
        };

Could someone give me a hand please

@VitaliiBlagodir  is this plugin still supported?

I've used with 9.2 and it works fine. This error would usually happen if you call datePicker before $ionicPlatform is ready. Can you give any more details on the how and when $scope.selectNewDate() is called?


Add es:ESHttpPut in ElasticsearchHttpPostPolicy

Include es:ESHttpPut action in ElasticsearchHttpPostPolicy Template
*Issue #1010
Description of changes:
Add es:ESHttpPut action  available in Policy Template List as part of ElasticsearchHttpPostPolicy template.
Description of how you validated changes:
Checklist:

[ x] Write/update tests(no change required)
[ x] make pr passes
[ x] Update documentation(no change required)
[x ] Verify transformed template deploys and application functions as expected
[x ] Add/update example to examples/2016-10-31(no change required)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Gaurav2Github Thanks so much for this contribution! However, the Travis build is failing. You indicated that no unit test change is necessary, but we do have unit tests for policy templates. You need to update the 3 all_policy_templates.json files in the tests directory to match your change. Here's one of those files.

Thanks for highlighting. Test policy templates updated.


No longer checking for current_line_blame

Describe the bug
No matter what value current_line_blame is set to (by setting in config or trying to toggle), it will always show.
Steps to reproduce the behavior:

Try to toggle current_line_blame, it will always show.

Additional context
Since latest commits half an hour ago. This change is most likely the culprit.

Whoops sorry about that. I've been a bit too lax on regression tests lately. Will need to add one for this.
Thanks for reporting.


simple llama huggingface generation notebook

Just a simple notebook to show performing generation with llama hf

Generally looks fine but some comments/suggestions/questions:

There's a cell that looks like a commented out duplicate of the last cell and isn't run. should remove?
Did we validate that the pipeline interface actually compiled the model? I remember having issues with it when working on the hf_compile_example.py, and you suggested I should use generate there instead. We want to confirm it actually took the compiled path.
Might want to reference the script version somewhere, which may be easier to run in some cases.

the cell is commented out because it is needed in order to get the graph initially.
pipeline underneath should be calling generate, so I would think it would be. I assume it did based on the performance numbers being much better for the compiled vs not compiled.
I'll add a reference version as well as the script you put together for this


(fleet) always create the experiment symlink pointing to stable by default

This PR makes a small changes to package repos: instead of deleting the experiment symlink when there is no experiment we make it point to stable. This addresses a commmon need to target "experiment if there is one or stable if there is not".

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#28467  👈
#28234
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @arbll and the rest of your teammates on  Graphite

/merge


Toolkit extension, unable tenable or disable

Toolkit will not enable or disable using Safari.  It is grayed out.  Tried uninstall and reinstall but it still does not respond and remains gray.
Is this is a known issue?  Just occurred within the last 1 week.

This is happening to me as well. Just started today.

FYI:  According to chat on Reddit, YNAB changed or redirected their URL from [youneedabudget] to [ynab.com].  I am looking for a way to modify it myself but have not had luck yet.

Same here, extension doesn't work on Safari

FYI: According to chat on Reddit, YNAB changed or redirected their URL from [youneedabudget] to [ynab.com]. I am looking for a way to modify it myself but have not had luck yet.

That would explain it! It looks like the codebase has been updated, but the latest version (3.6.0) hasn't been pushed to the macOS App Store, so we're stuck with an older version (3.3.4).

@ikalla Is this still an issue?

3.3.4
Using Safari
No update available in App Store


Issue related to fully distributed deployment of siddhi query with join operation

Description:
I have set up a 2 node worker and 1 node manager siddhi cluster.
Following is the query I tried pushing into manager. Everything seems to work fine when there is no join in the query, but in case of join as mentioned below query gets deployed in worker node but events dont seem to be satisfied.
@App:name("rule_1")
@source(
type="kafka",
topic.list="test-input-topic",
group.id="test-group",
threading.option="single.thread",
bootstrap.servers="localhost:9092",
@map(type="json"))
define stream TempStream (deviceID string,roomNo string,temp int );
@sink(
type="kafka",
topic="test-output-topic",
bootstrap.servers="localhost:9092",
@map(type="json"))
define stream OutStream (message string, message1 string, message2 double);
@info(name = "query1")
@dist(execGroup="group1")
from TempStream[deviceID=="rule_1" and temp>10]#window.time(5 sec)
select avg(temp) as avgTemp, roomNo, deviceID
insert all events into AvgTempStream1;
@info(name = "query2")
@dist(execGroup="group2")
from TempStream[deviceID=="rule_1" and temp<10]#window.time(5 sec)
select avg(temp) as avgTemp, roomNo, deviceID
insert all events into AvgTempStream2;
@info(name = "query3")
@dist(execGroup="group3")
from AvgTempStream1#window.length(1) as stream1 join AvgTempStream2#window.length(1) as stream2
select stream1.deviceID  as message,stream1.roomNo  as message1,  stream1.avgTemp as message2
having stream1.avgTemp>stream2.avgTemp
insert into outputStream;
@info(name = "query4")
@dist(execGroup="group4")
from AvgTempStream1[deviceID=="rule_1"]
select deviceID as message, roomNo as message1, avgTemp as message2
insert into OutStream;
Event being passed
{"event":{"deviceID":"rule_1","roomNo":"123","temp":12}}
Suggested Labels:

Suggested Assignees:

Affected Product Version:
OS, DB, other environment details and versions:
Steps to reproduce:
Related Issues:

@reshmavasudevan995 While analyzing the Siddhi app you provided, I observed that for the provided input;
{"event":{"deviceID":"rule_1","roomNo":"123","temp":12}}
From query1, event will be filtered as deviceID=="rule_1" and temp>10 is matched and inserted into AvgTempStream1.
From query2, event will be dropped without being added to AvgTempStream2 because  temp<10 is not matched. Input temp is 12, which is not less than 10.
query3 will not be executed because there are no events to be joined at AvgTempStream2. Hence, including the join query will not affect the output from the above Siddhi app for the provided input.
query4 will be executed and data will be populated in OutStream, which has a kafka-sink configured.
I tested your Siddhi app with WSO2 Stream Processor 4.3.0 distributed deployment and I was able to get an output.
I also noticed that the output streams of query3 and query4 are different. Hence, even though query3 get executed, the output will not be visible because you have not defined a sink for the outputStream.
Also, if you have further questions, please provide the WSO2 Stream Processor version you are using, as well as the console logs from manager and 2 workers.

Closing this as it was answered, please reopen if you have further questons


solves User is rate-limited by GitHub (issue319)

Related Issue
[Cite any related issue(s) this pull request addresses. If none, simply state “None”]
Description
#319
Type of PR

[ X] Bug fix
[ ] Feature enhancement
[ ] Documentation update
[ ] Other (specify): _______________

Screenshots / videos (if applicable)

Checklist:

[X ] I have performed a self-review of my code
[X ] I have read and followed the Contribution Guidelines.
[X ] I have tested the changes thoroughly before submitting this pull request.
[ X] I have provided relevant issue numbers, screenshots, and videos after making the changes.
[ X] I have commented my code, particularly in hard-to-understand areas.

Additional context:
The current code checks if userData.name is null or empty to determine if the user is rate-limited. However, this might not be the most reliable method, as some users might genuinely have no name set on their GitHub profile. So it should be chnaged to userData.username.

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our CONTRIBUTING.md. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊

@ashutosh-rath02

@ashutosh-rath02 i dont know whether this pull request is actually related to this issue or not but there is one problem we are encountering "Data is NULL. User is rate-limited by GitHub" error for some usernames. So should i raise an issue for this first?

@dhairyathedev

Hey @Swastik19Nit,
#319 is not related to this PR.
But, nice catch! You can merge this PR @ashutosh-rath02

@Swastik19Nit raise an issue so that your PR gets counted under GSSoC


🐛 [firebase_messaging] TypeError: Cannot read properties of undefined (reading 'messaging')

Bug report
firebase_messaging example application crashes when run in web.
% flutter run -d chrome
Launching lib/main.dart on Chrome in debug mode...
Waiting for connection from debug service on Chrome...             11.1s
This app is linked to the debug service: ws://<IP_ADDRESS>:62922/x--MLTMd8yc=/ws
Debug service listening on ws://<IP_ADDRESS>:62922/x--MLTMd8yc=/ws

💪 Running with sound null safety 💪

🔥  To hot restart changes while running, press "r" or "R".
For a more detailed help message, press "h". To quit, press "q".

An Observatory debugger and profiler on Chrome is available at: http://<IP_ADDRESS>:62922/x--MLTMd8yc=
TypeError: Cannot read properties of undefined (reading 'messaging')
    at new firebase_messaging_web.FirebaseMessagingWeb.new
    (http://localhost:62880/packages/firebase_messaging_web/firebase_messaging_web.dart.lib.js:145:31)
    at Function.registerWith
    (http://localhost:62880/packages/firebase_messaging_web/firebase_messaging_web.dart.lib.js:50:73)
    at Object.registerPlugins
    (http://localhost:62880/packages/firebase_messaging_example/generated_plugin_registrant.dart.lib.js:15:49)
    at main (http://localhost:62880/web_entrypoint.dart.lib.js:32:35)
    at main.next (<anonymous>)
    at runBody (http://localhost:62880/dart_sdk.js:38659:34)
    at Object._async [as async] (http://localhost:62880/dart_sdk.js:38690:7)
    at main$ (http://localhost:62880/web_entrypoint.dart.lib.js:31:18)
    at http://localhost:62880/main_module.bootstrap.js:19:10
    at Array.forEach (<anonymous>)
    at window.$dartRunMain (http://localhost:62880/main_module.bootstrap.js:18:32)
    at <anonymous>:1:8
    at Object.runMain (http://localhost:62880/dwds/src/injected/client.js:8452:21)
    at http://localhost:62880/dwds/src/injected/client.js:24130:19
    at _wrapJsFunctionForAsync_closure.$protected (http://localhost:62880/dwds/src/injected/client.js:4461:15)
    at _wrapJsFunctionForAsync_closure.call$2 (http://localhost:62880/dwds/src/injected/client.js:11511:12)
    at Object._asyncStartSync (http://localhost:62880/dwds/src/injected/client.js:4425:20)
    at main__closure3.$call$body$main__closure (http://localhost:62880/dwds/src/injected/client.js:24142:16)
    at main__closure3.call$1 (http://localhost:62880/dwds/src/injected/client.js:24069:19)
    at StaticClosure._rootRunUnary (http://localhost:62880/dwds/src/injected/client.js:4823:18)
    at _CustomZone.runUnary$2$2 (http://localhost:62880/dwds/src/injected/client.js:12879:39)
    at _CustomZone.runUnaryGuarded$1$2 (http://localhost:62880/dwds/src/injected/client.js:12826:14)
    at _ForwardingStreamSubscription._sendData$1 (http://localhost:62880/dwds/src/injected/client.js:12416:19)
    at _ForwardingStreamSubscription._add$1 (http://localhost:62880/dwds/src/injected/client.js:12362:15)
    at _ForwardingStreamSubscription._add$1 (http://localhost:62880/dwds/src/injected/client.js:12695:12)
    at _MapStream._handleData$2 (http://localhost:62880/dwds/src/injected/client.js:12756:12)
    at _ForwardingStreamSubscription._handleData$1 (http://localhost:62880/dwds/src/injected/client.js:12721:20)
    at Object.eval (eval at Closure_forwardCallTo (http://localhost:62880/dwds/src/injected/client.js:1701:14),
    <anonymous>:3:44)
    at StaticClosure._rootRunUnary (http://localhost:62880/dwds/src/injected/client.js:4823:18)
    at _CustomZone.runUnary$2$2 (http://localhost:62880/dwds/src/injected/client.js:12879:39)
    at _CustomZone.runUnaryGuarded$1$2 (http://localhost:62880/dwds/src/injected/client.js:12826:14)
    at _ControllerSubscription._sendData$1 (http://localhost:62880/dwds/src/injected/client.js:12416:19)
    at _ControllerSubscription._add$1 (http://localhost:62880/dwds/src/injected/client.js:12362:15)
    at _SyncStreamController._sendData$1 (http://localhost:62880/dwds/src/injected/client.js:12201:32)
    at _SyncStreamController.add$1 (http://localhost:62880/dwds/src/injected/client.js:12082:15)
    at Object.eval (eval at Closure_forwardInterceptedCallTo
    (http://localhost:62880/dwds/src/injected/client.js:1781:14), <anonymous>:3:45)
    at StaticClosure._rootRunUnary (http://localhost:62880/dwds/src/injected/client.js:4823:18)
    at _CustomZone.runUnary$2$2 (http://localhost:62880/dwds/src/injected/client.js:12879:39)
    at _CustomZone.runUnaryGuarded$1$2 (http://localhost:62880/dwds/src/injected/client.js:12826:14)
    at _ControllerSubscription._sendData$1 (http://localhost:62880/dwds/src/injected/client.js:12416:19)
    at _ControllerSubscription._add$1 (http://localhost:62880/dwds/src/injected/client.js:12362:15)
    at _SyncStreamController._sendData$1 (http://localhost:62880/dwds/src/injected/client.js:12201:32)
    at _SyncStreamController.add$1 (http://localhost:62880/dwds/src/injected/client.js:12082:15)
    at _GuaranteeSink.add$1 (http://localhost:62880/dwds/src/injected/client.js:23581:25)
    at HtmlWebSocketChannel_closure1.call$1 (http://localhost:62880/dwds/src/injected/client.js:23874:60)
    at _EventStreamSubscription_closure.call$1 (http://localhost:62880/dwds/src/injected/client.js:18042:26)
    at StaticClosure._rootRunUnary (http://localhost:62880/dwds/src/injected/client.js:4829:16)
    at _CustomZone.runUnary$2$2 (http://localhost:62880/dwds/src/injected/client.js:12879:39)
    at _CustomZone.runUnaryGuarded$1$2 (http://localhost:62880/dwds/src/injected/client.js:12826:14)
    at _CustomZone_bindUnaryCallbackGuarded_closure.call$1 (http://localhost:62880/dwds/src/injected/client.js:13016:25)
    at invokeClosure (http://localhost:62880/dwds/src/injected/client.js:1524:26)
    at WebSocket.<anonymous> (http://localhost:62880/dwds/src/injected/client.js:1543:18)

Expected behavior
No crash.
Sample project
firebase_messaging

Flutter doctor
Run flutter doctor and paste the output below:
Click To Expand
[✓] Flutter (Channel stable, 2.5.3, on macOS 11.2.1 20D74 darwin-x64, locale en-EE)
    • Flutter version 2.5.3 at /Users/silver/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 18116933e7 (7 weeks ago), 2021-10-15 10:46:35 -0700
    • Engine revision d3ea636dc5
    • Dart version 2.14.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/silver/Library/Android/sdk
    • Platform android-31, build-tools 30.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5, Build version 12E262
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] VS Code (version 1.62.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.27.0

[✓] Connected device (3 available)
    • Chrome (web)            • chrome                               • web-javascript • Google Chrome 96.0.4664.55

Flutter dependencies
Run flutter pub deps -- --style=compact and paste the output below:
Click To Expand
% flutter pub deps -- --style=compact
Dart SDK 2.14.4
Flutter SDK 2.5.3
firebase_messaging_example 0.0.0

dependencies:
- firebase_core 1.10.1 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_messaging 11.2.0 [firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web flutter meta]
- flutter 0.0.0 [characters collection meta typed_data vector_math sky_engine]
- flutter_local_notifications 8.2.0 [flutter flutter_local_notifications_platform_interface platform timezone]
- http 0.13.4 [async http_parser meta path]

dev dependencies:
- drive 1.0.0-1.0.nullsafety.1 [test_api flutter_test flutter_driver stack_trace flutter]
- flutter_driver 0.0.0 [file flutter flutter_test fuchsia_remote_debug_protocol path meta vm_service webdriver archive async boolean_selector characters charcode clock collection crypto matcher platform process source_span stack_trace stream_channel string_scanner sync_http term_glyph test_api typed_data vector_math]
- test 1.17.10 [analyzer async boolean_selector collection coverage http_multi_server io js node_preamble package_config path pedantic pool shelf shelf_packages_handler shelf_static shelf_web_socket source_span stack_trace stream_channel typed_data web_socket_channel webkit_inspection_protocol yaml test_api test_core]

dependency overrides:
- firebase_core 1.10.1 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_core_platform_interface 4.2.0 [collection flutter meta plugin_platform_interface]
- firebase_core_web 1.3.0 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- firebase_messaging 11.2.0 [firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web flutter meta]
- firebase_messaging_platform_interface 3.1.0 [firebase_core flutter meta plugin_platform_interface]
- firebase_messaging_web 2.2.0 [firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins js meta]
- plugin_platform_interface 2.0.2 [meta]

transitive dependencies:
- _fe_analyzer_shared 31.0.0 [meta]
- analyzer 2.8.0 [_fe_analyzer_shared cli_util collection convert crypto glob meta package_config path pub_semver source_span watcher yaml]
- archive 3.1.2 [crypto path]
- args 2.3.0
- async 2.8.1 [collection meta]
- boolean_selector 2.1.0 [source_span string_scanner]
- characters 1.1.0
- charcode 1.3.1
- cli_util 0.3.5 [meta path]
- clock 1.1.0
- collection 1.15.0
- convert 3.0.1 [typed_data]
- coverage 1.0.3 [args logging package_config path source_maps stack_trace vm_service]
- crypto 3.0.1 [collection typed_data]
- fake_async 1.2.0 [clock collection]
- file 6.1.2 [meta path]
- flutter_local_notifications_platform_interface 4.0.1 [flutter plugin_platform_interface]
- flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher meta source_span stream_channel string_scanner term_glyph typed_data]
- flutter_web_plugins 0.0.0 [flutter js characters collection meta typed_data vector_math]
- frontend_server_client 2.1.2 [async path]
- fuchsia_remote_debug_protocol 0.0.0 [process vm_service file meta path platform]
- glob 2.0.2 [async collection file path string_scanner]
- http_multi_server 3.0.1 [async]
- http_parser 4.0.0 [charcode collection source_span string_scanner typed_data]
- io 1.0.3 [meta path string_scanner]
- js 0.6.3
- logging 1.0.2
- matcher 0.12.10 [stack_trace]
- meta 1.7.0
- mime 1.0.1
- node_preamble 2.0.1
- package_config 2.0.2 [path]
- path 1.8.0
- pedantic 1.11.1
- platform 3.0.0
- pool 1.5.0 [async stack_trace]
- process 4.2.3 [file path platform]
- pub_semver 2.1.0 [collection meta]
- shelf 1.2.0 [async collection http_parser path stack_trace stream_channel]
- shelf_packages_handler 3.0.0 [path shelf shelf_static]
- shelf_static 1.1.0 [convert http_parser mime path shelf]
- shelf_web_socket 1.0.1 [shelf stream_channel web_socket_channel]
- sky_engine 0.0.99
- source_map_stack_trace 2.1.0 [path stack_trace source_maps]
- source_maps 0.10.10 [source_span]
- source_span 1.8.1 [collection path term_glyph]
- stack_trace 1.10.0 [path]
- stream_channel 2.1.0 [async]
- string_scanner 1.1.0 [charcode source_span]
- sync_http 0.3.0
- term_glyph 1.2.0
- test_api 0.4.2 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher]
- test_core 0.4.0 [analyzer async args boolean_selector collection coverage frontend_server_client glob io meta package_config path pedantic pool source_map_stack_trace source_maps source_span stack_trace stream_channel vm_service yaml matcher test_api]
- timezone 0.8.0 [path]
- typed_data 1.3.0 [collection]
- vector_math 2.1.0
- vm_service 7.1.1
- watcher 1.0.1 [async path]
- web_socket_channel 2.1.0 [async crypto stream_channel]
- webdriver 3.0.0 [archive matcher path stack_trace sync_http]
- webkit_inspection_protocol 1.0.0 [logging]
- yaml 3.1.0 [collection source_span string_scanner]

@ristiisa
I tried the official example app with latest plugin version using latest master on web and it ran without any issues:
dhs@Dhss-MacBook-Pro firebase_messaging_example % flutter run -d chrome
Downloading Web SDK...                                              4.1s
Downloading CanvasKit...                                         1,468ms
Launching lib/main.dart on Chrome in debug mode...
Waiting for connection from debug service on Chrome...             18.9s
This app is linked to the debug service: ws://<IP_ADDRESS>:53789/Sms64ZggO04=/ws
Debug service listening on ws://<IP_ADDRESS>:53789/Sms64ZggO04=/ws

Can you let us know exact steps to replicate this behavior ?

I have the same issue. I use Firebase.initializeApp inside dart code

Could it be related to firebase-messaging-sw ? It is not clear what to do with firebase-messaging-sw ? The readme says to enable it, but example doesn't do it

Hey all, I fixed this in https://github.com/FirebaseExtended/flutterfire/pull/7516 which is going through release now


Unable to install with  NPM and react 17.0.2

Running npm with React 17.0.1 or above you get the following error.
Found<EMAIL_ADDRESS>npm ERR! node_modules/react
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!   peer react@">=17" from<EMAIL_ADDRESS>npm ERR!   node_modules/@elgorditosalsero/react-gtm-hook
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!   29 more (@material-ui/core, react-dom, @material-ui/icons, ...)

Hi, thx for the issue.
Can you provide more info?
I just bootstrapped an app with create-react-app and I successfully installed the package, both with yarn and npm.
The package.json bootstrapped + the lib:
  "name": "test",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@elgorditosalsero/react-gtm-hook": "^2.0.7",
    "@testing-library/jest-dom": "^5.11.4",
    "@testing-library/react": "^11.1.0",
    "@testing-library/user-event": "^12.1.10",
    "react": "^17.0.2",
    "react-dom": "^17.0.2",
    "react-scripts": "4.0.3",
    "web-vitals": "^1.0.1"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": [
      "react-app",
      "react-app/jest"
    ]
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }
}

Example of the running app with the lib:

Closing due to inactivity.


fix: update deprecated spread operator in just

As per https://github.com/nushell/nushell/pull/11289, this should be supported in 0.89.0 and should be merged prior to 0.91.0

Damn it GitHub, why would I want to make this PR in my fork....


PLC disconnection recovery after reconnect

Current Behavior
Great work guys, I can see this wonderful package.
I am trying to use this to build a application pulling data from PLCs and dump all the data on the information screen, I don't want the information go for problem as I setup my client screen auto refresh mode (every x seconds). once I unplug ethernet cable after a certain period I got time out time out problem, I use try catch to catch the error and replace with initialization tags information  but I seem can not bypass the connection even though I saw the time out error, so basically my screen change to white question screen unless I plug the cable back. when I have SQL query running in the same situation, I could catch error and dump screen with initialization data of the tags from SQL, but this technology used for MS SQL seems not working for this package. I wonder if you have any idea can lighting up?
error message is:
(node:7932) UnhandledPromiseRejectionWarning: Error: TIMEOUT occurred while attempting to establish TCP connection with Controller.
at Controller.connect (C:\Users\Public\Documents\marquee_hdb\node_modules\st-ethernet-ip\src\enip\index.js:163:28)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
at async Controller.connect (C:\Users\Public\Documents\marquee_hdb\node_modules\st-ethernet-ip\src\controller\index.js:191:24)
Expected Behavior
I expect when I lost connection, the PLC connection error can be caught by try catch block and replace the tags reading with their initialization value.
Possible Solution (Optional)

Context

Steps to Reproduce (for bugs only)

Your Environment

Package version (Use npm list - e.g. 1.0.6): "st-ethernet-ip": "^2.3.2"
Node Version (Use node --version - e.g. 9.8.0):  v14.16.1
Operating System and version: Windows server 2019 std
Controller Type (eg 1756-L83E/B): L73, L61
Controller Firmware (eg 30.11): Version 20, Version 16

Can you post a code segment that shows how you are using the module?
When you lose a connection, you are going to want to create a new controller object to create a new connection and not reuse the old controller object.
The newest version of the ST-ethernet-ip is not on NPM yet. You can install the newest version directly from Github:
npm install SerafinTech/ST-node-ethernet-ip


Server Name Hardcoded, working only in AU

au1.cloud.thethings.network is hard coded in different places of the code. So this app can not be used with other TTN instances, for example eu1.cloud.thethings.network. This should probably be a parameter, so the app can be used by all public or private instances

Thanks!


sampling rate info

We need to store the original sampling rate in files that do not have the original acquisition present. This issue depends on https://github.com/NeurodataWithoutBorders/nwb-schema/issues/273

@bendichter Is this still an issue?


Increase client_max_body_size in nginx example

Motivation: default body max is 1M for nginx. Add explicitly to the example so it's higher for API connections, and so customers can know to override if they wish.
The headaches you'll run into by having a lower max body size are greater than the possibility of getting DoS'ed by huge requests, in my opinion.
Besides, the Sanic max request size is 100M so it makes sense to be consistent.

Should we also put an update in the appropriate location stanza of example-nginx-path-routing.conf?

Should we also put an update in the appropriate location stanza of example-nginx-path-routing.conf?

Honestly I do not know what the 3 examples are for (only 1 is referenced in the readme), so you tell me :)
happy to add to all 3 if needed


Fix Lokis more and more often error 500's

Loki shows more and more often error 500's in the grafana panels querying it.
Status: 500. Message: too many outstanding requests
We should try to optimize its settings, for starters e.g. as suggested here

Could be closed... @Siegfriedk little hint if you close directly it will automatically move to done.


Switch astrocyte mod file from mcd to cadifus.

Context
The old mcd file should be replaced by cadifus, which has new mechanisms for astrocyte diffusion.
Scope
ngv.py was changed to insert a different mod file.

@WeinaJi how can the CI be set to use the latest mod file release 2.4.0?

@WeinaJi how can the CI be set to use the latest mod file release 2.4.0?

In principle yes.
If your CI is using the neurodamus-neocortex-multiscale module on bb5, we also need to merge https://github.com/BlueBrain/spack/pull/2505

Hello @dkeller9 , I've just added you the write permission to this repo.
Could you please push your branch and open another PR from your branch? In that way, the whole neurodamus CI on gitlab can be triggered. Thanks a lot!

Looks like the CI still fails. I don't understand the error though.

Replaced by #193


flow-root clearfix alternative proposal

Use display: flow-root as an alternative of clearfix - https://caniuse.com/flow-root

Agree with @ffoodd. If we want to do anything here, it’d be adding a new utility for it alongside our display classes.

Agree with @ffoodd. If we want to do anything here, it’d be adding a new utility for it alongside our display classes.


[Explore]can not reopen and edit ad-hoc filter in drag and drop mode

When "ENABLE_EXPLORE_DRAG_AND_DROP": True, user can not click the dropped filter value to reopen and edit.
see video. User has to delete filter and recreate if change is desired.
https://user-images.githubusercontent.com/67837651/115349116-4c144680-a168-11eb-8f79-7c0291a55d4f.mov
cc: @kgabryje 🙏

On it

resolved 🙏 @kgabryje


When trying to compile the source code for Terasology I get 502 Gateway on gradle sync

2:13 AM	Gradle sync failed: Could not GET 'http://artifactory.terasology.org/artifactory/virtual-repo-live/org/terasology/reflections/0.9.12-MB/reflections-0.9.12-MB.pom'. Received status code 502 from server: Bad Gateway
Disable Gradle 'offline mode' and sync project (10 s 226 ms)
The error above is what I am getting when opening Terasology in IntelliJ on Ubuntu; I am running the IDE as root.

@BinaryGears Thank you for reporting this - seems our artifactory was down. It should be restarted now, please retry :)

Thank you, that fixed it.


array in remote crate

How to handle arrays in remote creates?
The following does not work:
#[derive(Serialize, Deserialize)]
#[serde(remote = "Process")]
struct ProcessDef {
    #[serde(with = "[DurationDef; 2]")]
    durations: [Duration; 2],
}

Full Playground:
example

Hi @genofire, sorry that no one was able to provide help here. If this is still an issue, you could try taking this question to any of the resources shown in https://github.com/serde-rs/serde#getting-help.


Fix name and add nickname to Auth Hash Schema

Auth Hash Schema (1.0 and Later) states name should be:
"The best display name known to the strategy. Usually a concatenation
of first and last name, but may also be an arbitrary designator or
nickname for some strategies"
Azure sends "name" which is displayName in (on-premise) AD. Use that
as name and "unique_name" as nickname.

For ref https://github.com/intridea/omniauth/wiki/Auth-Hash-Schema

Thanks! :+1:
Would you be so kind to publish a new version to rubygems? I would like to add this to sameersbn/docker-gitlab, would be easier to be able to just fetch from rubygems.

done. Thanks for the PR.


feat(android): support files from AssetManager in LocalTile

Does any other open PR do the same thing?
No
What issue is this PR fixing?
Allows android apps using MapLocalTiles to open tile images from AssetManager
How did you test this PR?
Able to build iOS app with prop present in code

Able to build app without prop present in Android, able to load local images using absolute path
Able to build app with prop set to true, load image files from AssetManager with relative pathTemplate value

Able to build app with prop set to false, able to load local images using absolute path

Following up from https://github.com/react-native-maps/react-native-maps/pull/4153
Fixing lint error and rebasing to latest beta branch.

hi @foush 👋 Once again, thanks for putting this together.
Since the previous PR stalled, I added your code to a PR I'm planning to merge this weekend. The PR includes a TS rewrite, so I altered your changes accordingly (and left a reference to give you credit).
Would you prefer that I keep your suggestions in my PR or that I revert the commit and let you know when you need to make changes to your PR to align with the TS rewrite?


[BUG] Cannot use azure-ai-documentintelligence with azure-search-documents

Describe the bug
I build a Java application using latest version of 2 libraries:
azure-search-documents and azure-ai-documentintelligence.
When I try to analyze document layout, it always returns 400 error (The parameter urlSource or base64Source is required.).
If I use azure-search-documents v11.0.0 or remove this library, the problem does not occur.
Exception or Stack Trace
Exception in thread "main" com.azure.core.exception.HttpResponseException: Status code 400, "{"error":{"code":"InvalidArgument","message":"Invalid argument.","innererror":{"code":"ParameterMissing","message":"The parameter urlSource or base64Source is required."}}}"
at com.azure.core.implementation.http.rest.RestProxyBase.instantiateUnexpectedException(RestProxyBase.java:392)
at com.azure.core.implementation.http.rest.SyncRestProxy.ensureExpectedStatus(SyncRestProxy.java:129)
at com.azure.core.implementation.http.rest.SyncRestProxy.handleRestReturnType(SyncRestProxy.java:206)
at com.azure.core.implementation.http.rest.SyncRestProxy.invoke(SyncRestProxy.java:82)
at com.azure.core.implementation.http.rest.RestProxyBase.invoke(RestProxyBase.java:128)
at com.azure.core.http.rest.RestProxy.invoke(RestProxy.java:97)
at jdk.proxy2/jdk.proxy2.$Proxy3.analyzeDocumentSync(Unknown Source)
at com.azure.ai.documentintelligence.implementation.DocumentIntelligenceClientImpl.analyzeDocumentWithResponse(DocumentIntelligenceClientImpl.java:373)
at com.azure.ai.documentintelligence.implementation.DocumentIntelligenceClientImpl.lambda$beginAnalyzeDocumentWithModel$6(DocumentIntelligenceClientImpl.java:707)
at com.azure.core.util.polling.SyncPoller.lambda$createPoller$0(SyncPoller.java:227)
at com.azure.core.util.polling.SimpleSyncPoller.(SimpleSyncPoller.java:92)
at com.azure.core.util.polling.SyncPoller.createPoller(SyncPoller.java:196)
at com.azure.core.util.polling.SyncPoller.createPoller(SyncPoller.java:240)
at com.azure.ai.documentintelligence.implementation.DocumentIntelligenceClientImpl.beginAnalyzeDocumentWithModel(DocumentIntelligenceClientImpl.java:706)
at com.azure.ai.documentintelligence.DocumentIntelligenceClient.beginAnalyzeDocument(DocumentIntelligenceClient.java:230)
at document.intelligence.examp.DocIntelligence.main(DocIntelligence.java:39)
To Reproduce
Steps to reproduce the behavior:

Create a Java application with Gradle
Update build.gradle to import 2 libraries : azure-ai-documentintelligence v1.0.0-beta.2, azure-search-documents v11.7.0-beta.3
Add code to analyze document layout
Run Java app

Code Snippet
DocumentIntelligenceClient client = new DocumentIntelligenceClientBuilder().credential(new AzureKeyCredential(key))
				.endpoint(endpoint).buildClient();

		// sample document
		String modelId = "prebuilt-layout";
		String documentUrl = "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/sample-layout.pdf";

		SyncPoller<AnalyzeResultOperation, AnalyzeResultOperation> analyzeLayoutPoller = client.beginAnalyzeDocument(
				modelId, null, null, null, null, null, null, new AnalyzeDocumentRequest().setUrlSource(documentUrl));

		AnalyzeResult analyzeLayoutResult = analyzeLayoutPoller.getFinalResult().getAnalyzeResult();

Expected behavior
There is no error. It should returns analyze results
Screenshots
NA
Setup (please complete the following information):

OS: Windows
IDE: Spring Tool Suite
Library/Libraries: azure-ai-documentintelligence:1.0.0-beta.2, azure-search-documents:11.7.0-beta.3
Java version: 8, 17
App Server/Environment: NA
Frameworks: NA

Additional context
NA

Thanks for filing this issue @xuanhai266.
The issue appears to be that azure-search-documents includes a dependency on azure-core-serializer-json-jackson, which supplies a service provider implementation for JsonSerializer. So, when the request call is made instead of using the default implementation of JsonSerializer provided by azure-core it uses the one in azure-core-serializer-json-jackson which has one major difference in null values being included in serialization (the azure-core implementation is specifically meant for types managed by Azure SDKs and we don't send null values).
One solution to this problem is to Maven exclude the azure-core-serializer-json-jackson dependency from `azure-search-documents:
<dependency>
  <groupId>com.azure</groupId>
  <artifactId>azure-search-documents</artifactId>
  <version>11.7.0-beta.3</version>
  <exclusions>
    <exclusion>
      <groupId>com.azure</groupId>
      <artifactId>azure-core-serializer-json-jackson</artifactId>
    </exclusion>
  </exclusions>
</dependency>

Which I've verified locally makes the Document Intelligence API call work. But this could break features in azure-search-documents.
Another solution is preventing azure-core-serializer-json-jackson's JsonSerializer implementation to be loaded from the service provider.
I also looked at the in-development version of azure-ai-documentintelligence and it is migrating to our new serialization framework using azure-json and it worked without any dependency removes or changes to build as it no longer uses Jackson annotations for serialization.

@alzimmermsft
Thank you for your response.

One solution to this problem is to Maven exclude the azure-core-serializer-json-jackson dependency from `azure-search-documents:
Yes, this workaround is working well.
But this could break features in azure-search-documents.
Do you know which features of azure-search-documents will be broken?
I also looked at the in-development version of azure-ai-documentintelligence and it is migrating to our new serialization framework using azure-json and it worked without any dependency removes or changes to build as it no longer uses Jackson annotations for serialization.
When does this version of azure-ai-documentintelligence release?

Do you know which features of azure-search-documents will be broken if I exclude the azure-core-serializer-json-jackson dependency?

When azure-core-serializer-json-jackson is excluded azure-search-documents will fall back to the default serializer provided by azure-core to manage serializing documents sent to and received from the Search service, unless a custom JsonSerializer is passed while creating the SearchClient (SearchClientBuilder.serializer). This will result in slightly different serialization handling provided by Jackson Databind, which may break some cases such as the default serializer in azure-core doesn't serialize null properties which is a valid case in a Search document.

When does this version of azure-ai-documentintelligence release?

Let me follow-up with the owner of the SDK on this.

Hi @xuanhai266, a new version of azure-ai-documentintelligence has shipped:
https://central.sonatype.com/artifact/com.azure/azure-ai-documentintelligence
With this I think the issue can be considered addressed.


Add fondant build command

Fixes #249
Please test this on your local machine when reviewing :)

Thanks Robbe :) Tested it out and it seems to work.

Great! I'll ask Jan if he can test on Windows as well :)

I am not 100% about this but I did notice that it takes slightly longer to build with the docker python SDK compared to the CLI (I might be wrong though). Do you know if there are differences between the two?

There should not really be a difference, as they both connect to the docker engine which does the actual building.

Can we also add some tests and docs? can be later to prioritize the CC work but maybe let's add a ticket for it

Sounds good :+1:


[Issues] Heroku deployment error

Please help and thanks for guiding. Thanks👍

sorry i forgotten to rename, everything runs well


couldn't find manifest for ssh

Can't install SSH
~ $ scoop install ssh
couldn't find manifest for ssh
~ $

There is no manifest named ssh, you'll most likely be looking for openssh.
https://github.com/lukesampson/scoop/tree/master/bucket

@valtido Use scoop install openssh instead.

Yes... Sorry my bad, was just following one of the Videos on the website and I came across it...
I figured it out eventually :)

No problem!


fix: Changed order in lock() function to adjust padding before changing the overflow

Changed the order because when we set the overflow to hidden, the scrollbar disappears; therefore, the scrollbar width is always zero. I couldn't reproduce it in a test because the scrollbar widths are always 0 inside a test.
https://github.com/testing-library/react-testing-library/issues/353

Hi @novacdenis,
As I merged #521 before, this PR now only includes test changes.
Thank you!


Auto-upgrade to <IP_ADDRESS>

Base PullRequest
default branch (https://github.com/http4k/http4k-connect/tree/master)
Command results

Details:

add path
/home/runner/work/_actions/technote-space/create-pr-action/v2/node_modules/npm-check-updates/bin

./upgrade_http4k.sh <IP_ADDRESS>

Changed files

Changed file:

gradle.properties

:octocat: Repo | :memo: Issues | :department_store: Marketplace

Codecov Report

Merging #52 (05c5dfa) into master (3ee6542) will increase coverage by 58.84%.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             master      #52       +/-   ##
=============================================
+ Coverage          0   58.84%   +58.84%
- Complexity        0      626      +626
=============================================
  Files             0      342      +342
  Lines             0     3351     +3351
  Branches          0      262      +262
=============================================
+ Hits              0     1972     +1972
- Misses            0     1209     +1209
- Partials          0      170      +170

Impacted Files
Coverage Δ

...nnect/amazon/secretsmanager/SecretsManagerMoshi.kt
100.00% <0.00%> (ø)

...ect/amazon/cloudfront/action/CreateInvalidation.kt
70.00% <0.00%> (ø)

...connect/amazon/dynamodb/model/StatementResponse.kt
80.00% <0.00%> (ø)

...org/http4k/connect/amazon/s3/action/ListBuckets.kt
60.00% <0.00%> (ø)

...http4k/connect/amazon/sns/action/PublishMessage.kt
39.39% <0.00%> (ø)

...g/http4k/connect/example/action/compositeAction.kt
100.00% <0.00%> (ø)

...p4k/connect/amazon/dynamodb/events/StreamRecord.kt
100.00% <0.00%> (ø)

...http4k/connect/amazon/dynamodb/model/ReqGetItem.kt
100.00% <0.00%> (ø)

...org/http4k/connect/amazon/dynamodb/FakeDynamoDb.kt
0.00% <0.00%> (ø)

...tlin/org/http4k/connect/storage/InMemoryStorage.kt
70.00% <0.00%> (ø)

... and 332 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3ee6542...05c5dfa. Read the comment docs.


Consider using purescript-cardano-serialization-lib

https://github.com/mlabs-haskell/purescript-cardano-serialization-lib
Blocked by #400
There are two issues:

The interface should also be made more type-safe to be on par with ours
We need conditional compiling, depending on runtime (node or browser)

There is a branch that downgrades the library to 0.14.*: https://github.com/mlabs-haskell/purescript-cardano-serialization-lib/tree/downgrade
But we'll probably update CTL sooner anyway

Please let's discuss this choice. This is an experimental library with automatic code generation that has 0 tests and hasn't been used anywhere.
The main ide of the library is to provide thin layer of FFI bindings to the original CSL library. It does not try to make any abstractions beyond what is provided with CSL.

We don't really need this thin layer, we need a proper abstraction.
The obvious choice is to carefully make a purs-csl wrapper library that exposes the CSL API gradually and by need.

We don't really need this thin layer, we need a proper abstraction.

We do. There's a huge tech debt associated with that - right now the code in CTL is manually written.

we need a proper abstraction.

We are going to provide it by using these raw bindings.

This is an experimental library with automatic code generation that has 0 tests and hasn't been used anywhere.

We are taking over its development.

The obvious choice is to carefully make a purs-csl wrapper library that exposes the CSL API gradually and by need.

We use all CSL types and quite a few of the exposed functions.

that has 0 tests

We will adapt our fixtures tests suite (basically move it to that repo).

Ok! Let's do it!


"config" requirement is an invalid link

Doesn't lead to images/config.zip as intended - syntax error?

Working for me right now.