laravel 8 support?

@yaowei520 is there anything specifically not working?
The package provides a Laravel service provider but besides that has no e.g. version constraints, see https://github.com/jenssegers/agent/blob/1bacac5ab1cb415792bb74620e66a954ea740816/composer.json#L13-L21

I successfully installed your package into a Laravel 8 application without any modifications.
I expected a conflict since your package requests PHPUnit 5/6/7, but Laravel 8 uses PHPUnit 9. Just FYI in case OP can confirm they are receiving a PHPUnit conflict during install. The PHPUnit 9 requirement is listed in the Laravel 8 Upgrade Guide and in the Laravel 8 composer file.
https://github.com/laravel/laravel/blob/c6c41f11b8ea3065f035fbb6a6f570b7bfba0037/composer.json#L18-L24

Confirm that it works on L8 project absolutely well.


Private and Public - extra info

It may be worth noting that another difference, particulary on the Sharepoint Online side, is that the "Everyone except external users" Group will be added when a Team is set to Public, and that group will have Edit permissions.
Even though the team itself will NOT show in a non-member's Team app, the non-members CAN access the content on the Sharepoint Team Site if they type in the URL with the team name https://TenantID.sharepoint.com/teams/SomePublicTeam. It is an important item to note. In the event that an actual member is removed from the Team, if that former member had bookmarked any URLs, they will still be able to access all the team content and lead to confusion to the owner and other members.

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

ID: 6c9902e8-a0b7-b6af-4656-2024849a5e8b
Version Independent ID: 85beb9a7-2682-b52e-210b-20e598e3dab3
Content: Create your first teams and channels in Microsoft Teams - Microsoft Teams
Content Source: Teams/get-started-with-teams-create-your-first-teams-and-channels.md
Service: msteams
GitHub Login: @LanaChin
Microsoft Alias: v-lanac

@evandimsby Thank you for submitting feedback and contributing to the docs. We are currently investigating this.

@evandimsby  Thank you for raising this issue! I'll be looking into it!

Thank you for providing this extra information. I'll make sure to pass this information along to the Sharepoint Online team.
@LanaChin do you have anything you could add onto this?

@LanaChin Could you please help on this issue? Thanks!

Looking into this

@LanaChin Were you able to find anything out?

@LanaChin Were you able to find anything out?

@LanaChin Any update on this issue? Thanks!

Yes, I'm following up with the PM on this. Thanks.

@LanaChin Any follow up information on this?

@LanaChin Any follow up information on this?

@LanaChin Any follow up information on this?

@LanaChin Just following up to see if there was any additional information on this. Thanks!

@TokyoScarab - confirmed with the PMs and the doc has been updated to reflect this. Thanks following up.


fitToCoordinates cannot call apply on undefined

Trying to use this._map.fitToCoordinates(markersLatLngToFit, { "edgePadding": DEFAULT_PADDING, animated: true } ); exactly as in examples, but does not work.

Seems like this was added a few days ago, what version are you running? Make sure you have the version including https://github.com/airbnb/react-native-maps/commit/7a5083cbb820faec0bb684c010e15c222ce7e533

Thanks! I'll take a look!

It works on Android but not on iOS--anyone know when this could be fixed? Thanks :)

same problem on ios , didnt work
but in android works fine

Is this still open? i have used it lately and it works for me


Trigger refetch on app state change

If the user puts the app in the background, they may miss messages until they return to the app. In that case we should trigger a refetch to make sure we're up to date.
We can do this by resetting state.chat.caughtUp on app state change.

The correct thing to do here is to check the get_events query, and if it returns that the queue doesn't exist, trigger a full reload.

The best way to implement this is a background task.
Currently only supported on Android:
https://facebook.github.io/react-native/docs/headless-js-android.html

Another option is to continue fetching while in the background:
https://github.com/transistorsoft/react-native-background-fetch

Continuing to fetch in the background might be the right strategy, since then one can have more of an instant open experience.  If we want to make the background action super cheap, all it really needs to do is keep checking in with the server and save the events in a queue; doesn't need to actually process them until the user opens the app again.

I would consider background fetch as more of an optimization (that we can add later) because it's out of our control when (and if) it runs, so we can't count on it.
For now I think we should trigger a full reload on app state change if there's no queue available. The full reload is necessary because messages may have been edited (along with added), but we can do the reload and silently merge the changes with the current messages so that the user can still interact with the app while it catches up.

Yeah, we have to do that even if we're doing the background fetch, so let's start with that and then we can add background fetch later.
We can open a separate issue in M6 for background fetch?

👍

This should be an M5 issue -- otherwise the user will see stale data when reloading the app

We now trigger a refresh if the event queue is stale or missing when the app is reopened

I will open another issue about this. Ideally, we will keep the messages updated while the app is running, but it is quite an involved thing, and am not sure there is good support for that in React Native, so it will be for a future milestone.


Users can't interact with SelfRequesterRrpAuthorizer.sol to manage whitelistings using the admin package

SelfRequesterRrpAuthorizer.sol allows the node operator to manage the whitelist status of requester contracts by making transactions. The admin package should support these.
Tracked by https://api3dao.atlassian.net/browse/AN-114

Not applicable to pre-alpha


ARROW-8494: [C++][Parquet] Full support for reading mixed list and structs

Also: ARROW-9810 (generalize rep/def level conversion to list lengths/bitmaps)
This adds helper methods for reconstructing all necessary metadata
for arrow types.  For now this doesn't handle null_slot_usage (i.e.
children of FixedSizeList), it throws exceptions when nulls are
encountered in this case.  It uses there for generic reconstruction.
The unit tests demonstrate how to use the helper methods in combination
with LevelInfo (generated from parquet/arrow/schema.h) to reconstruct
the metadata.  The arrow reader.cc is now rewritten to use these method.

Refactors necessary APIs to use LevelInfo and makes use of them in
column_reader
Adds implementations for reconstructing list validity bitmaps
(uses rep/def levels)
Adds implementations for reconstruction list lengths
(uses rep/def levels.).
Adds dynamic dispatch for level comparison algorithms for AVX2
and BMI2.
Adds a pextract alternative that uses BitRunReader that can be
used as a fallback.
Fixes some bugs in detailed reconstruction to array tests.

Are there any benchmarks worth running here?

Ok, thanks a lot for this PR. I think I am understanding the implementation (I skipped parquet/arrow/reader.cc for now, though). Some of the implementation details are still confusing me a bit. In any case, here are some comments.

Please let me know if there is more confusion, I will attempt to add clarifying comments.  I think I addressed all your comments except for some in level_conversion_test.cc I'll address those tomorrow (I assume there will be more comments in reader.cc as well).

Are there any benchmarks worth running here?

parquet-level-conversion-benchmark
parquet-arrow-reader-writer-benchmark (this won't cover the nested cases though)  There is an open JIRA under ARROW-1644 to add benchmarks for nested cases @npr mentioned there might be some example datasets that we wanted to try this on.

parquet-level-conversion-benchmark:

before:

BM_DefinitionLevelsToBitmapRepeatedAllMissing         966 ns          966 ns       714328 bytes_per_second=1.9753G/s
BM_DefinitionLevelsToBitmapRepeatedAllPresent        1626 ns         1626 ns       426358 bytes_per_second=1.173G/s
BM_DefinitionLevelsToBitmapRepeatedMostPresent       1850 ns         1850 ns       367809 bytes_per_second=1055.83M/s

after:

BM_DefinitionLevelsToBitmapRepeatedAllMissing         560 ns          560 ns      1239730 bytes_per_second=3.40515G/s
BM_DefinitionLevelsToBitmapRepeatedAllPresent         562 ns          562 ns      1244256 bytes_per_second=3.39684G/s
BM_DefinitionLevelsToBitmapRepeatedMostPresent        562 ns          562 ns      1244691 bytes_per_second=3.39515G/s

Impressive!

No changes on parquet-arrow-reader-writer-benchmark. I suspect it doesn't trigger any of the updated code?

No changes on parquet-arrow-reader-writer-benchmark. I suspect it doesn't trigger any of the updated code?

No, I don't think so.  Since we were already using SIMD for non-nested types.

@pitrou unfortunately, I was missing an "info.rep_level = 1;" in the benchmark, so it likely not as impressive on AMD, would you mind running again? (working on addressing the rest of the feedback.

@pitrou I think I responded to all review comments at this point, apologies if I missed something.  level_conversion_test.cc is now refactored to a point where duplicate code I think adds to test understandability but there is still some redundancy.  Also, please see my note about the level_conversion_benchmark having a bug in it on your prior run.

I think the macOS failure is fixed by #8196 but the Appveyor failure looks legit:
C:/projects/arrow/cpp/src/parquet/level_conversion_test.cc(295): error C2220: warning treated as error - no 'object' file generated
C:/projects/arrow/cpp/src/parquet/level_conversion_test.cc(278): note: while compiling class template member function 'void parquet::internal::NestedListTest_SimpleLongList_Test<T>::TestBody(void)'
        with
        [
            T=Type
        ]
googletest_ep-prefix\include\gtest/internal/gtest-internal.h(665): note: see reference to class template instantiation 'parquet::internal::NestedListTest_SimpleLongList_Test<T>' being compiled
        with
        [
            T=Type
        ]
googletest_ep-prefix\include\gtest/internal/gtest-internal.h(657): note: while compiling class template member function 'bool testing::internal::TypeParameterizedTest<parquet::internal::NestedListTest,testing::internal::TemplateSel<parquet::internal::NestedListTest_SimpleLongList_Test>,parquet::internal::gtest_type_params_NestedListTest_>::Register(const char *,const testing::internal::CodeLocation &,const char *,const char *,int,const std::vector<std::string,std::allocator<_Ty>> &)'
        with
        [
            _Ty=std::string
        ]
C:/projects/arrow/cpp/src/parquet/level_conversion_test.cc(278): note: see reference to function template instantiation 'bool testing::internal::TypeParameterizedTest<parquet::internal::NestedListTest,testing::internal::TemplateSel<parquet::internal::NestedListTest_SimpleLongList_Test>,parquet::internal::gtest_type_params_NestedListTest_>::Register(const char *,const testing::internal::CodeLocation &,const char *,const char *,int,const std::vector<std::string,std::allocator<_Ty>> &)' being compiled
        with
        [
            _Ty=std::string
        ]
C:/projects/arrow/cpp/src/parquet/level_conversion_test.cc(278): note: see reference to class template instantiation 'testing::internal::TypeParameterizedTest<parquet::internal::NestedListTest,testing::internal::TemplateSel<parquet::internal::NestedListTest_SimpleLongList_Test>,parquet::internal::gtest_type_params_NestedListTest_>' being compiled
C:/projects/arrow/cpp/src/parquet/level_conversion_test.cc(295): warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data
[212/245] Linking CXX shared library release\parquet.dll
   Creating library release\parquet.lib and object release\parquet.exp
[213/245] Building CXX object src\parquet\CMakeFiles\parquet-arrow-test.dir\Unity\unity_0_cxx.cxx.obj
ninja: build stopped: subcommand failed.

👍 we've reduced the failures to Flight (i.e. surely unrelated) issues.

I'll take a look again on Monday, if that's ok with you.

SGTM.  If i have time I might get one or two CLs out based on this one but I can rebase afterwards.

Running parquet-level-conversion-benchmark again, results are much less good:
BM_DefinitionLevelsToBitmapRepeatedAllMissing         878 ns          878 ns       816435 bytes_per_second=2.17265G/s
BM_DefinitionLevelsToBitmapRepeatedAllPresent         967 ns          966 ns       713185 bytes_per_second=1.9736G/s
BM_DefinitionLevelsToBitmapRepeatedMostPresent       3258 ns         3258 ns       214817 bytes_per_second=599.563M/s

Things are a bit more balanced if the scalar version is used:
BM_DefinitionLevelsToBitmapRepeatedAllMissing         660 ns          660 ns      1019688 bytes_per_second=2.8884G/s
BM_DefinitionLevelsToBitmapRepeatedAllPresent        1946 ns         1946 ns       358335 bytes_per_second=1003.9M/s
BM_DefinitionLevelsToBitmapRepeatedMostPresent       2024 ns         2023 ns       346078 bytes_per_second=965.229M/s

Just for the record, apart from FixedSizeList, is there anything remaining for full nested Parquet -> Arrow reading?

Other than that, I see a ~20% improvement on BM_ReadStructColumn and BM_ReadListColumn

I have no remaining concern over the code other than the AVX2 / BMI2 split. Congratulations for this PR, this is really a huge improvement!
That said, I seem to get a test error on the Python side (pasted below). Let's see if it reproduces on CI:
Traceback (most recent call last):
  File "/home/antoine/arrow/dev/python/pyarrow/tests/test_parquet.py", line 700, in test_pandas_can_write_nested_data
    _write_table(arrow_table, imos)
  File "/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/_pytest/python_api.py", line 747, in __exit__
    fail(self.message)
  File "/home/antoine/miniconda3/envs/pyarrow/lib/python3.7/site-packages/_pytest/outcomes.py", line 128, in fail
    raise Failed(msg=msg, pytrace=pytrace)
Failed: DID NOT RAISE <class 'ValueError'>

(beware: I rebased your branch on git master)

I have no remaining concern over the code other than the AVX2 / BMI2 split. Congratulations for this PR, this is really a huge improvement!

@pitrou thank you for the thoughtful review.  Let me know if you still have issues with the AVX/BMI2 after I added the comment (perhaps I didn't revert some compilation) or my analysis is wrong.  I think the BMI2 check will be difficult/impossible at compile time for windows, so I'm not sure if it is worth the effort  on linux.
I also removed the failing test for parquet (which I should have removed in a prior PR, its strange it showed up again).

Just for the record, apart from FixedSizeList, is there anything remaining for full nested Parquet -> Arrow reading?

We need to support LargeList, and Map which should be smaller change (I'm working on a PR) at the schema level inference.  There are a few other JIRAs still open about benchmarking and randomized testing,   Past that, there are some open JIRAs about performance improvements:

Computing all all offsets/bitmaps together (the JIRA is about non-vectorized).  I would expect that for deeply nested structures containing lists this would start to show performance improvements.
Using bitmap based code that was removed from this.  For non-list types I think it can be a big performance win on all platforms and a win at least for shallowly nested lists I expect it to be better for native Inte.

There is also an unrelated bug on the write side https://github.com/apache/arrow/pull/8219 which I asked for @wesm to review (it is based on some changes in this PR).

Do we also need ad hoc nested tests as a separate JIRA / PR? Randomized testing is nice to find corner cases, but it's always easier to diagnose hand-written test cases :-)

Also we only have one-level nested benchmarks for now, I suppose we should add a bit more (two-level nesting may be enough).

Do we also need ad hoc nested tests as a separate JIRA / PR? Randomized testing is nice to find corner cases, but it's always easier to diagnose hand-written test cases :-)

I think the internal tests you wrote have pretty good coverage.  After #8219 is merged I was planning on make some of the one way (the ones I wrote for write and the ones your wrote for read) fully round-trip.  If you think there are gaps, by all means we should add tests.

Also we only have one-level nested benchmarks for now, I suppose we should add a bit more (two-level nesting may be enough).

My main concern is getting some data that reflects real workloads.  @jorisvandenbossche it looks it sounded like you had Geo data that has multiple levels of nesting, I wonder if there is a canonical dataset we could make use of for benchmarking.


As a business owner who delivers orders, I can mark orders as delivered and keep track of the delivery details,

... so that I have a record of everything.

#21

#14


FIX: Improve reliability of BOLD masking workflow

This is a backport of #711 to get in the 21.0.x series of fMRIPrep

I think this is good to go, tested in https://github.com/nipreps/fmriprep/pull/2731


vkCreateComputePipelines does not handle chained VkShaderModuleCreateInfo

Description
On implementations that support VK_EXT_graphics_pipeline_library, we will do the following in DXVK:
VkShaderModuleCreateInfo codeInfo = { VK_STRUCTURE_TYPE_SHADER_MODULE_CREATE_INFO };
codeInfo.codeSize = ...;
codeInfo.pCode = ...;

VkComputePipelineCreateInfo info = { VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO };
...
info.stage = { VK_STRUCTURE_TYPE_PIPELINE_SHADER_STAGE_CREATE_INFO, &codeInfo };
info.stage.stage = VK_SHADER_STAGE_COMPUTE_SHADER_BIT;
info.stage.pName = "main";

VkPipeline pipeline = VK_NULL_HANDLE;
VkResult vr = vkCreateComputePipelines(device, VK_NULL_HANDLE, 1, &info, nullptr, &pipeline);

This will currently crash RenderDoc during capture.
While the extension obviously mostly interacts with graphics pipelines, the spec allows chaining a VkShaderModuleCreateInfo struct for compute and ray tracing pipelines as well.
Steps to reproduce
I've bundled a test application from our dxvk-tests repo with a current build of DXVK that runs into this issue: repro.tar.gz
It's probably easiest to run this on Windows with an up-to-date Nvidia driver, other vendors still do not seem to ship the extension.
Alternatively, on Linux, with a driver that supports EXT_gpl (see below), run:
export WINEPREFIX=$HOME/.wine-test
winetricks d3dcompiler_47
export WINEDLLOVERRIDES=dxgi,d3d11=n
export ENABLE_VULKAN_RENDERDOC_CAPTURE=1
wine d3d11-compute.exe

Linux drivers that this can be triggered on are:

Lavapipe from Mesa 22.3+
Nvidia (520 or 525 series)
RADV (from mesa-git when setting RADV_PERFTEST=gpl)

Environment

RenderDoc version: 653028fa0df9e115f81c54dba72bf816e577e5ac
Operating System: Linux
Graphics API: Vulkan

Huh, yeh I only thought about it in the context of graphics pipelines but I guess since the usage is defined on VkPipelineShaderStageCreateInfo it applies equally to compute pipelines as well. Easy enough to replicate the behaviour into that function, I'll update this today.

That commit should handle this, it works for me on your test program.

thanks!


lsp-ui-doc popup for function documentation doesn't show up in Emacs lsp-mode

I'm not sure if I should ask the question here or under the issues of lsp-mode. I'll first post it here and see if anybody has experienced something similar and could offer some advice. If it's deemed inappropriate I'll close it and reopen it in the lsp-mode repo.
So in Emacs lsp-mode one is supposed to be able to have a popup window (lsp-ui-doc-mode) that shows the documentation for the function under the cursor. I have it enabled by default and it works for other modes which use lsp (e.g. Javascript). I also remember it working with elixir-ls some time ago. However, I don't know from when, it stopped working. (Or maybe I mixed it up with the behavior of VSCode). Calling lsp-ui-doc-show manually also has no effect.
The interesting thing is that, if I run lsp-describe-thing-at-point, the documentation for the function does show up in a separate buffer. So elixir-ls is definitely able to retrieve the documentation just fine, but it seems that this information is just not provided to lsp-ui-doc-mode for some reason.
I wonder if anybody has any idea on how to fix it, since having the documentation pop up automatically would be much more helpful for me than having to press another key manually to see it in another buffer. Or if it's not reproducible, maybe there's something wrong with my Emacs configuration.
Environment

Elixir & Erlang versions (elixir --version): 1.10.2
Operating system: MacOS
Editor or IDE name (e.g. Emacs/VSCode): Emacs
LSP Client name: lsp-mode

Troubleshooting

[ x ] Restart your editor (which will restart ElixirLS) sometimes fixes issues
[ x ] Stop your editor, remove the entire .elixir_ls directory, then restart your editor

NOTE: This will cause you to have to re-run the dialyzer build for your project

If you're experiencing high CPU usage, it is most likely Dialyzer building the PLTs; after it's done the CPU usage should go back to normal. You could also disable Dialyzer in the settings.
Logs

Create a new Mix project with mix new empty, then open that project with VS Code and open an Elixir file. Is your issue reproducible on the empty project? =
Yes
Check the output log by opening View > Output and selecting "ElixirLS" in the dropdown. Please include any output that looks relevant. (If ElixirLS isn't in the dropdown, the server failed to launch.)

Doesn't seem to be anything unusual in the logs:
Started ElixirLS v0.5.0
Elixir version: "1.10.2 (compiled with Erlang/OTP 22)"
Erlang version: "22"
ElixirLS compiled with Elixir 1.10.2 and erlang 22
MIX_ENV: test
MIX_TARGET: host
Command "language_server.sh" is present on the path.
Command "language_server.sh" is present on the path.
Found the following clients for /Users/jx/test/lib/test.ex: (server-id elixir-ls, priority -1)
The following clients were selected based on priority: (server-id elixir-ls, priority -1)
Compiling 1 file (.ex)
Generated test app
Compile took 1428 milliseconds
[ElixirLS WorkspaceSymbols] Indexing...
[ElixirLS Dialyzer] Checking for stale beam files
[ElixirLS Dialyzer] Found 7 changed files in 462 milliseconds
Cancelling textDocument/onTypeFormatting(193) in hook after-change-functions
[ElixirLS Dialyzer] Analyzing 7 modules: [Collectable, Enumerable, IEx.Info, Inspect, List.Chars, String.Chars, Test]
[ElixirLS WorkspaceSymbols] Module discovery complete
[ElixirLS WorkspaceSymbols] 20 callbacks added to index
[ElixirLS WorkspaceSymbols] 195 modules added to index
[ElixirLS WorkspaceSymbols] 369 types added to index
[ElixirLS Dialyzer] Analysis finished in 2549 milliseconds
Dialyzer analysis is up to date
[ElixirLS Dialyzer] Writing manifest...
[ElixirLS Dialyzer] Done writing manifest in 1180 milliseconds.
[ElixirLS WorkspaceSymbols] 4223 functions added to index

Does lsp-describe-thing-at-point work? If it does then I think it is a lsp-mode configuration issue, does the popup work for any other languages? Although I'm currently seeing something that may be similar to what you're seeing in my Doom Emacs setup (that I'm still working on). lsp-describe-thing-at-point works but I can't get the popup to show.
But in my Spacemacs setup lsp-ui has no problem with the popup.

@axelson Yep, as I mentioned, lsp-describe-thing-at-point works and shows the documentation in a popup buffer. The lsp-ui-doc popup is also working for other languages so it's pretty weird. I'm using Spacemacs and I don't think I've set custom variables related to this.

I just added some installation instructions, can you check your configuration against them: https://github.com/elixir-lsp/elixir-ls/#emacs
Also the wiki has more info https://elixirforum.com/t/emacs-elixir-setup-configuration-wiki/19196
If you're still having trouble you can check this to trace the communication between client and server: https://emacs-lsp.github.io/lsp-mode/page/troubleshooting/
But if the issue is still persisting then it seems like some sort of lsp-mode issue of some sort and you may want to try asking at their gitter.im or raise an issue.

Thanks for the reply and pointers. I set lsp-log-io to t and looked at the logs. I saw that textDocument/hover seems to have been correctly triggered and a response is received, e.g.
[Trace - 09:35:52 PM] Sending request 'textDocument/hover - (190)'.
Params: {
  "textDocument": {
    "uri": "file:///Users/jx/test/backend/test/support/data_case.ex"
  },
  "position": {
    "line": 64,
    "character": 5
  }
}

[Trace - 09:35:52 PM] Received response 'textDocument/hover - (190)' in 31ms.
Result: {
  "range": {
    "start": {
      "line": 64,
      "character": 2
    },
    "end": {
      "line": 64,
      "character": 5
    }
  },
  "contents": "> Kernel.def(call, expr \\\\\\\\ [])\n\nDefines a public function with the given name and body.\n\n## Examples\n\n    defmodule Foo do\n      def bar, do: :baz\n    end\n\n    Foo.bar()\n    #=> :baz\n\nA function that expects arguments can be defined as follows:\n\n    defmodule Foo do\n      def sum(a, b) do\n        a + b\n      end\n    end\n\nIn the example above, a `sum/2` function is defined; this function receives\ntwo arguments and returns their sum.\n\n## Default arguments\n\n`\\\\` is used to specify a default value for a parameter of a function. For\nexample:\n\n    defmodule MyMath do\n      def multiply_by(number, factor \\\\ 2) do\n        number * factor\n      end\n    end\n\n    MyMath.multiply_by(4, 3)\n    #=> 12\n\n    MyMath.multiply_by(4)\n    #=> 8\n\nThe compiler translates this into multiple functions with different arities,\nhere `MyMath.multiply_by/1` and `MyMath.multiply_by/2`, that represent cases when\narguments for parameters with default values are passed or not passed.\n\nWhen defining a function with default arguments as well as multiple\nexplicitly declared clauses, you must write a function head that declares the\ndefaults. For example:\n\n    defmodule MyString do\n      def join(string1, string2 \\\\ nil, separator \\\\ \" \")\n\n      def join(string1, nil, _separator) do\n        string1\n      end\n\n      def join(string1, string2, separator) do\n        string1 <> separator <> string2\n      end\n    end\n\nNote that `\\\\` can't be used with anonymous functions because they\ncan only have a sole arity.\n\n## Function and variable names\n\nFunction and variable names have the following syntax:\nA _lowercase ASCII letter_ or an _underscore_, followed by any number of\n_lowercase or uppercase ASCII letters_, _numbers_, or _underscores_.\nOptionally they can end in either an _exclamation mark_ or a _question mark_.\n\nFor variables, any identifier starting with an underscore should indicate an\nunused variable. For example:\n\n    def foo(bar) do\n      []\n    end\n    #=> warning: variable bar is unused\n\n    def foo(_bar) do\n      []\n    end\n    #=> no warning\n\n    def foo(_bar) do\n      _bar\n    end\n    #=> warning: the underscored variable \"_bar\" is used after being set\n\n## `rescue`/`catch`/`after`/`else`\n\nFunction bodies support `rescue`, `catch`, `after`, and `else` as `Kernel.SpecialForms.try/1`\ndoes. For example, the following two functions are equivalent:\n\n    def format(value) do\n      try do\n        format!(value)\n      catch\n        :exit, reason -> {:error, reason}\n      end\n    end\n\n    def format(value) do\n      format!(value)\n    catch\n      :exit, reason -> {:error, reason}\n    end\n\n\n"
}

However, nothing pops up on my UI whatsoever.
The response I received from vls in comparison:
[Trace - 09:32:13 PM] Sending request 'textDocument/documentLink - (188)'.
Params: {
  "textDocument": {
    "uri": "file:///Users/jx/test/lib/templates/src/App.vue"
  }
}

[Trace - 09:32:13 PM] Received response 'textDocument/hover - (186)' in 42ms.
Result: {
  "range": {
    "end": {
      "character": 13,
      "line": 13
    },
    "start": {
      "character": 5,
      "line": 13
    }
  },
  "contents": [
    "The template element is used to declare fragments of HTML that can be cloned and inserted in the document by script\\."
  ]
}

I don't see the difference between these two responses that could potentially cause the popup to fail to show up in the first case. The only thing is that the response from elixir-ls is much longer and I wonder if there could be any configuration that prevented it from being shown because of that.
I also posted the question in the repo of lsp-ui https://github.com/emacs-lsp/lsp-ui/issues/478. Seems that this could be more of a lsp-ui related issue. I will close the issue here and post the results afterwards. Thanks again for the help.

Resolved by https://github.com/elixir-lsp/elixir-ls/pull/342


Make a frontend for service only envelopes

An envelope that doesn't e-file anything, it is only used to serve the other party with something. Everything is the same as the e-filing interview, it just doesn't ultimately get e-filed, you call a different endpoint.
There are still fees associated with it.
We need to basically offer a choice at the end:

efile
serve the other party
both e-file and serve

this is a per-document choice.

I went with a simplified version of this, that should still probably change. It gives two choices: efile or serve, and if there are service contacts attached to the efiling, it does efile - and - serve.
I'll iterate on this soon, likely before Tyler gets back to us on certification

Tyler got back to us quickly, so I got on this quickly. We should be good, still need to figure out how to get a unit test for this though.


Slightly improve API error handling

This commit tries to fix the "FromHttpResponse" function. Returning 2 errors from a function can be confusing and uncommon in Golang, especially if the function only returns these 2 errors.
The new code will return one error, which is always an APIError, and it also improves the error messaging wording, adding more details in the output.
Several more tweaks can be done to the current error message handling if needed.

What is the status of this PR? @jamlo feel free to merge if all comments are addressed

@wdbaruni since this PR was created (through a fork) before I had access to the repo, I will close this one, and create another one from a branch to close the loop.

Closing this PR in favor of https://github.com/bacalhau-project/bacalhau/pull/4607


External mumble server is not working correctly

I'm testing the use of an external server, according to the instructions:
I am testing using an external server, according to the instructions: https://forum.cfx.re/t/how-to-host-fivems-voice-chat-mumble-in-another-server/1487449?u=frazzle
There is a problem: during normal conversation, the players cannot hear each other. When using a walkie-talkie and a telephone, they hear, but it comes with an interruption, slower.

pls swich to alt v or rage mp

use
setr voice_use3dAudio true
setr voice_useSendingRangeOnly true


Can not display a gif from StaticResource

Application type: WPF 4.0 / WPF 4.5+
Operating system version: win 10 x64
Expected behavior: display gif well
Actual behavior: xxx is not a valid value for property 'sourceuri'
Steps to reproduce the problem:

<img:BitmapImage x:Key="BACKUP_progress_gray.gif" UriSource="/Omni.BackupModule;Component/Resources/Images/progress_gray.gif"/>
<Image Margin="24,0,0,0" gif:AnimationBehavior.SourceUri="{StaticResource BACKUP_progress_gray.gif}"  gif:AnimationBehavior.RepeatBehavior="Forever" Height="18" Width="66"/>

Hi @lopengye,
As the name implies, AnimationBehavior.SourceUri accepts a Uri, but you're trying to assign a BitmapImage to it. You have to pass the URI instead:
<Image Margin="24,0,0,0" gif:AnimationBehavior.SourceUri="/Omni.BackupModule;Component/Resources/Images/progress_gray.gif" gif:AnimationBehavior.RepeatBehavior="Forever" Height="18" Width="66"/>

Or, if you prefer, declare the URI as a resource:
    xmlns:system="clr-namespace:System;assembly=mscorlib"

...

<system:String x:Key="BACKUP_progress_gray_gif_uri">/Omni.BackupModule;Component/Resources/Images/progress_gray.gif</system:String>

...

<Image Margin="24,0,0,0" gif:AnimationBehavior.SourceUri="{StaticResource BACKUP_progress_gray_gif_uri}" gif:AnimationBehavior.RepeatBehavior="Forever" Height="18" Width="66"/>

Closing due to inactivity


Team Meeting - January 12 2024 @ 3:00PM

Design Documents review of current work + further discussion

split up further work for design docs, clarified some modules in the mis


Hide cheat sheet on hotkey usage

If I use a hotkey when the cheat sheet is open, the cheat sheet remains open on top of whatever I've done as a result of the hotkey combination.
Suggested behaviour: ensure the cheat sheet is "removed" when a hotkey is pressed.

Except the esc key and the one that toggle the cheatsheet which are pretty useful to exit it.


RDM-10876

Implement cache for caseRoles and challengeQuestions calls to Definition Store
Before creating a pull request make sure that:

[ ] commit messages are meaningful and follow good commit message guidelines
[ ] README and other documentation has been updated / added (if needed)
[ ] tests have been updated / new tests has been added (if needed)

Please remove this line and everything above and fill the following sections:
JIRA link (if applicable)
https://tools.hmcts.net/jira/browse/RDM-10876
Change description
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[ ] No

@tomxelliott ,
We need to make sure the FTs are executing in 10 parallel threads, as otherwise those wait times will dramatically increase the total FT execution times.
If 10 threads run, overall extension in total time for 19 wait lines will be around 30 seconds.

@tomxelliott ,
We need to make sure the FTs are executing in 10 parallel threads, as otherwise those wait times will dramatically increase the total FT execution times.
If 10 threads run, overall extension in total time for 19 wait lines will be around 30 seconds.


feature: milestones for repos

  Today GitHub offers profile badges that highlights trivial interactions like 2nd PRs and 100th heart. I think we could do better by providing meaningful milestone celebrations in the app for orgs and repos.

Marking the point a contributor goes from casual to active
Marking a projects most popular PR (this can be done via the github api).
1000 stars
Wha else?

Originally posted by @bdougie in https://github.com/open-sauced/insights/discussions/233

In recent conversations, milestones might celebrating releases as well. This would require tracking new major tag creates.


how to get coord on map

I want to know lat, lng, delta value on map what i'm seeing!
can i get the coord when map center is changed?
plz help me!

@yuda1124 Short answer is NO
There is no event that can give you even remote information about zoom level with this lib
https://github.com/airbnb/react-native-maps/blob/master/docs/mapview.md
You'll be a hero if you add binding to native code.

https://github.com/airbnb/react-native-maps/issues/122
it does not have solution tho

Huge road block for me to start using this..damn ..

Well, you can get lat, long, and delta values by using region props like this for example...
<MapView
          region ={this.currentLocation}
          onRegionChange={(region) => {
                     this.setState({region: region})
          }}
/>

but the thing is I do not know how the delta values are calculated.

Donno if it helps, but here is how we convert from zoom and center to center and delta:
https://github.com/airbnb/react-native-maps/blob/master/ios/AirGoogleMaps/AIRGoogleMap.m#L27

Actually @gaguirre's solution worked well for me which includes geo-viewport
https://github.com/airbnb/react-native-maps/issues/122

Use what @ochanje210 wrote, combined with geo-viewport, as @avspeed suggested.


Can you please add 600 font weight in Quicksand?

I just checked and I have found that in Quicksand you have not added 600 font weight:
Version used:
I just checked the latest version in json

these get automatically updated from the google-fonts API via an automated task.
Any updates to google-fonts will be included in the next release automatically.


Update lenkf.j.template

add options for coupling with enadas.

@weiyuan-jiang @gmao-rreichle: minor changes for the option of coupling with enadas ( process ensemble forcing) .

@weiyuan-jiang @gmao-rreichle: minor changes for the option of coupling with enadas ( process ensemble forcing) .

@saraqzhang Can you try this branch feature/wjiang/env_ensforcing ? After you source g5_modules, it should be working. Then it avoids hassle to change the environment.

@saraqzhang Can you try this branch feature/wjiang/env_ensforcing ? After you source g5_modules, it should be working. Then it avoids hassle to change the environment.

@weiyuan-jiang   just as you observed, we can use this opportunity to improve this enadas-coupling  option: (1) make the ens forcing path and Nmem as command line arg inputs to py (2) add cp the py code from util/ to exp/run/ in setup script. (3) test/use whatever the py version already in the ldas environment ( 2.7 ?) .

@weiyuan-jiang   just as you observed, we can use this opportunity to improve this enadas-coupling  option: (1) make the ens forcing path and Nmem as command line arg inputs to py (2) add cp the py code from util/ to exp/run/ in setup script. (3) test/use whatever the py version already in the ldas environment ( 2.7 ?) .

OK. I will take care of this branch.

OK. I will take care of this branch.

@saraqzhang , I have updated this branch but I didn't test it.
if LDAS_COUPLING == 2, you will need two extra parameters in your exec input file ( i.e. input file in for ldas_setup) :
LADAS_FORCE_PATH_IN:
LADAS_FORCE_PATH_OUT:
I guess LADAS_FORCE_PATH_OUT is related to MET tag, so I am wondering to connect the two

@saraqzhang , I have updated this branch but I didn't test it.
if LDAS_COUPLING == 2, you will need two extra parameters in your exec input file ( i.e. input file in for ldas_setup) :
LADAS_FORCE_PATH_IN:
LADAS_FORCE_PATH_OUT:
I guess LADAS_FORCE_PATH_OUT is related to MET tag, so I am wondering to connect the two

@weiyuan-jiang ,   it is related to MET tag, but not the whole story.  it would be  $FVHOME in  ensadas setup. maybe we can do
ADASHOME:   ( $FVHOME user input)
LADAS_FORCE_PATH_IN = $ADASHOME/atmens/ensdiag
LDAS_FORCE_PATH_OUT = $LADAS_FORCE_PATH_IN/ensavg,  and py creates this dir to put avg files in there.
then later we make our input/met_forcing/forc pointed to  the location of LDAS_FORCE_PATH_OUT.

@weiyuan-jiang ,   it is related to MET tag, but not the whole story.  it would be  $FVHOME in  ensadas setup. maybe we can do
ADASHOME:   ( $FVHOME user input)
LADAS_FORCE_PATH_IN = $ADASHOME/atmens/ensdiag
LDAS_FORCE_PATH_OUT = $LADAS_FORCE_PATH_IN/ensavg,  and py creates this dir to put avg files in there.
then later we make our input/met_forcing/forc pointed to  the location of LDAS_FORCE_PATH_OUT.

@saraqzhang : I made a few changes, primarily in the hope of clarifying the documentation.  I did not test the changes.  Please take a look a make sure I didn't introduce any errors.  Thanks.

@saraqzhang : I made a few changes, primarily in the hope of clarifying the documentation.  I did not test the changes.  Please take a look a make sure I didn't introduce any errors.  Thanks.

@gmao-rreichle :  I pulled the branch and tested setup , no problem. #347
I just made a minor change  (from 1 to 2 ) in ldas_setup comments:
print '#        LADAS_COUPLING = 2:

@gmao-rreichle :  I pulled the branch and tested setup , no problem. #347
I just made a minor change  (from 1 to 2 ) in ldas_setup comments:
print '#        LADAS_COUPLING = 2:

Branch passed Nightly testing as zero diff.

Branch passed Nightly testing as zero diff.


update status instead of patch

Due to multiple snr agents patching the status there is a risk of corrupting the status data.
Switching into update in order to resolve that.
more context here

/retest

/override ci/prow/4.11-openshift-e2e

/lgtm
Giving a chance to get more feedbacks, feel free to unhold
/hold

/unhold


Moving the mouse over the canvas changes its update speed

When experimenting with Reactor I found out that at sufficiently high update-rate (I used .withUpdateRate(5.millis)), the animation on the canvas speeds up while moving the mouse.
I have tried copying the code for the BaseReactor and the Reactor, removing the references to mouse-movement and mouse-clicking, but the bug is still present. I suspect this is an issue to do with the Canvas in java2d.
Happy for any help or tips on how I can solve this.
https://github.com/user-attachments/assets/136b58ce-f766-4c6a-9b45-96240c0ff79e

I have now come up with a (temporary?) fix for this issue. I have rewritten the run method in BaseReactor. It now looks like this:
  def run[Alg <: Basic, Frame, Canvas](frame: Frame)(implicit
      a: AnimationRenderer[Canvas],
      e: Renderer[Alg, Frame, Canvas],
      m: MouseClick[Canvas] & MouseMove[Canvas],
      runtime: IORuntime
  ): Unit = {
    import BaseReactor.*

    def mouseEventProducer(mouseEventQueue: Queue[IO, MouseEvent], canvas: Canvas): IO[Unit] = {
      val mouseMove  = canvas.mouseMove.map(pt => MouseMove(pt))
      val mouseClick = canvas.mouseClick.map(pt => MouseClick(pt))

      mouseMove.merge(mouseClick)
        .foreach(mouseEventQueue.offer)
        .compile
        .drain
    }

    def tickProducer(tickQueue: Queue[IO, A], mouseEventQueue: Queue[IO, MouseEvent]): IO[Unit] = {
      Stream
        .fixedRate[IO](this.tickRate)
        .evalScan[IO, A](this.initial)((prev, _) =>
          def drainMouseQueue(a: A): IO[A] =
            for
              mouseEvent <- mouseEventQueue.tryTake
              state <- mouseEvent match
                case Some(MouseMove(pt))  => drainMouseQueue(this.onMouseMove(pt, a))
                case Some(MouseClick(pt)) => drainMouseQueue(this.onMouseClick(pt, a))
                case None => IO.pure(a)
            yield state

          for
            mouseState <- drainMouseQueue(prev)
            state = this.onTick(mouseState)
          yield state
        )
        .takeWhile(a => !this.stop(a))
        .foreach(tickQueue.offer)
        .compile
        .drain
    }

    def consumer(tickQueue: Queue[IO, A], canvas: Canvas): IO[Unit] = {
      Stream.unit.repeat
        .evalScan[IO, A](this.initial)((prev, _) =>
          for
            maybeTaken <- tickQueue.tryTake
            state = maybeTaken match
              case Some(a) => a
              case None => prev
          yield state
        )
        .takeWhile(a => !this.stop(a))
        .map(a => Image.compile[Alg](this.render(a)))
        .animateWithCanvasToIO(canvas)
    }

    (
      for
        canvas <- frame.canvas[Alg, Canvas]()
        tickQueue <- Queue.circularBuffer[IO, A](1)
        // mouseEventQueue <- Queue.circularBuffer[IO, MouseEvent](1)
        mouseEventQueue <- Queue.unbounded[IO, MouseEvent]
        _ <-
          (mouseEventProducer(mouseEventQueue, canvas), tickProducer(tickQueue, mouseEventQueue), consumer(tickQueue, canvas))
            .parMapN((_, _, _) => ())
      yield ()
    ).unsafeRunAsync(_ => ())
  }
}

The main difference between this method and the existing one, is that this one has split the ticks into their own fiber, thus decoupling the tickRate completely from the canvas, bypassing the issue. I have also decided to only evaluate the mouse-events when a tick occurs. They keep piling up in a queue, which is then emptied the next tick. The mouse-events are evaluated as they are taken from the queue.
https://github.com/user-attachments/assets/bb90a67c-88fa-4b54-9f82-bb8734f905fb

Interesting. I suspect the root cause is somewhere in the depths of the Java2D framework it's redrawing the screen when the mouse moves, and this is triggering whatever ends up invoking tick. I haven't looked at that code in quite a while, so I don't recall how it works.
You've taken what seems a reasonable approach to me. Writing Java2D code is, at this point, as much archaeology as it is programming. Documentation tends to be very old. At the moment I don't have a strong opinion about doing that archaeology, vs taking the approach you have, vs looking more closely at an alternative like Skija.

Closed in #172

Closed by #172


Hello from tagwiki

I've just seen https://www.reddit.com/r/rust/comments/impz8p/cratedigging_episode_3_deadwiki/ , and when I was looking at the description, it looks awfully lot like my https://github.com/dpc/tagwiki , so decided to say hello.
For me personally the tag handling (everything is addressed by the tags) was the important part, and that's why I was hacking on tagwiki.
I'm actually not doing any coding in my free time in the last few months due to COVID and personal reasons, and I don't expect it to change anytime soon. But maybe you could use it for inspiration or something. Anyway. Happy hacking!

Hello there, and thank you for saying hi! TagWiki is very cool!
The timing of your comment is serendipitious for me, because just the other day I was thinking about something similar (but less thought out). Like, "What if I could build dynamic wiki 'pages' out of multiple 'notes' that are quick to create? And then use tags to simulate a hierarchy, so wiki pages can live in multiple fake directory trees at once?"
And then et voila, here you are!
I am certainly going to be taking inspiration from this! I especially love the keybaord shortcuts, deadwiki has a few but none for link navigating. Thank you for sharing.

I should also say thanks for sharing that Reddit link, that is super cool and a bit shocking! I've just been writing this for me and using it to experiment with my lil web framework, so seeing it get featured like that was a real surprise!


When purchasing stamps, include effective volume as well

Include effective volume from the table here so users have a better idea of how much they can safely upload

This can be implemented in stamp/buy.ts:
const estimatedCost = Utils.getStampCostInBzz(this.depth, Number(this.amount))
const estimatedCapacity = new Storage(Utils.getStampMaximumCapacityBytes(this.depth))
const estimatedTtl = Utils.getStampTtlSeconds(Number(this.amount))

this.console.log(createKeyValue('Estimated cost', `${estimatedCost.toFixed(3)} BZZ`))
this.console.log(createKeyValue('Estimated capacity', estimatedCapacity.toString()))
this.console.log(createKeyValue('Estimated TTL', secondsToDhms(estimatedTtl)))

An additional utility function is required which calculates effective volume based on the table, we don't have that anywhere yet.


[qemu] Implement network forwarding

According to the existing issues, it seems that the vm's ip is always like 10.0.x.x. I'm a novice at network and configuration on iPad(as host) gets things even harder. Should there be a way that host(iPad), even the local network, can reach the vm.

Sometimes, you need to manually set the DNS to <IP_ADDRESS>

Sometimes, you need to manually set the DNS to <IP_ADDRESS>

Yes, I have already set it. I can connect to the Internet. But the input of UTM is not good enough, so I want to connect the vm from iPad(host) by ssh. Or if you know code-server, which is an amazing project that allows me to code in broewser. If iPad could reach the vm through http protocol, I can run a vscode totally on my iPad. But now my ipad or the devices in the local network can't connect to the vm. Their addresses are 192.168.x.x, however, the vm is in 10.0.x.x. To my research, qemu has the NAT implementation totally by itself, which enables the vm to connect to the Internet, however, also separates the vm from the host or other local devices. I think, maybe not right, we are just in this way.  Another way called 'bridge networking', which exposes vm to the local network, but requires configuration in host. The question is that the host now is an iPad, I can do nothing to configue the bridge networking. That's where I stuck at.

Yeah that’s not currently supported.

@SpinningK
Can you help me to setup the network?
Cause i have tried to set the DNS server <IP_ADDRESS> inside a Windows 7 VM.
But network still doesn't work.
Thank you!

@SpinningK
Can you help me to setup the network?
Cause i have tried to set the DNS server <IP_ADDRESS> inside a Windows 7 VM.
But network still doesn't work.
Thank you!

Sorry, but I only tried to configure network on Linux,  and why not use <IP_ADDRESS>?

Ok, i will try on ubuntu later.
I have used <IP_ADDRESS> for a long time. But i think <IP_ADDRESS> is more stable. Or, am I wrong?

A bigger incentive for this would be the possibility of running alt server on UTM to refresh UTM and AltStore especially since osy released a AltStore repo

@osy86 I installed Debian, but can not get network access, what can I do?

@osy86 I tried DHCP and static IP config with IP <IP_ADDRESS>, GW <IP_ADDRESS> followed default QEMU guide. I still can not access the network.

@osy86 OK, I configured DNS and it works now. Thanks!

Can I ssh into the VM? I tried but failed. @osy86


Remove restart option from Pods as this isn’t supported by the API.

@orlandohohmeier - addressed the comment

@MatApple Let's please properly remove (or even better not add) the button instead of hiding it with CSS.

@orlandohohmeier are you cool with us merging this in for now and then having a discussion about the best approach to this. There's probably arguments for both approaches and I'm not sure what's best right now.

@rcorral I'm ok with merging it, but let's please create an issue so that we don't forget to revisit this decision.

Added to our sync.


changed require to eval import

This gets rid of a 0.4 deprecation warning for me... does it create any problems that I don't foresee?

Seems reasonable to me. Note that I'm planning on removing this functionality in 0.4 though, since it's a bit redundant once you have precompilation, and I'm not that interested in maintaining it.

I'm not sure how precompilation makes this redundant. The huge advantage of lazy loading of packages is that you don't even need the package installed. My use case is in the Plots package I'm working on (
https://github.com/tbreloff/Plots.jl). The idea is that it will be a common interface for most plotting packages, but that a user might only have one or two of them installed. It also makes for minimal dependecies.

On Sep 4, 2015, at 4:54 PM, Mike J Innes<EMAIL_ADDRESS>wrote:
Seems reasonable to me. Note that I'm planning on removing this functionality in 0.4 though, since it's a bit redundant once you have precompilation, and I'm not that interested in maintaining it.
—
Reply to this email directly or view it on GitHub.

@lazymod was really designed to lazy load code within a single package, e.g. like this. Hence it being redundant in 0.4 – it actually prevents precompilation of ProfileView which makes loading slower, if anything.
In your case, I suspect that using @lazymod is making things more complicated, not less. You could replace your call to gadfly() with a simple @eval import Gadfly. Then you should be able to remove the global Gadfly = Main.Gadfly as well.

I actually realized this a minute ago, and was about to post roughly the same thing. I'm going to swap out the calls as you described. Thanks!

 Hence it being redundant in 0.4 – it actually prevents precompilation of ProfileView which makes loading slower, if anything.
In your case, I suspect that using @lazymod is making things more complicated, not less. You could replace your call to gadfly() with a simple @eval import Gadfly. Then you should be able to remove the global Gadfly = Main.Gadfly as well.
—
Reply to this email directly or view it on GitHub.


Slack http notifications

Any suggestions what should I need to add \ change in the basic http notifier .tmpl file in order to send notification to Slack?
In addition, how can I send to different http notifications to different http end points like the email support.
Thanks

I've not worked with the Slack API yet, so I'm not sure exactly what request you need. The templating is designed so that you can set up the proper POST request you need.
At present, Burrow does not support multiple HTTP notifiers. It's not a bad idea, but I think it would require a significant refactor. Currently. consumer status is calculated either on request (via the API), or periodicially by either the email or HTTP notifier. It should be changed so that the status is calculated periodically by one routine, and those results are shared by all notifiers.

Yup, sounds like desired behave!


Login button on Status site

Closes https://github.com/Real-Dev-Squad/website-status/issues/267

Could you attach screenshots of how the UI looks in mobile view?


How to avoid circular imports when using models (defined in different modules) which refers to each other?

How to avoid circular imports when using models (defined in different modules) which refers to each other?
Just to illustrate there is synthetic example.
# m1.py
from typing import Optional
from pydantic import BaseModel
from m2 import M2
class M1(BaseModel):
    foo: Optional[M2]

# m2.py
from typing import Optional
from pydantic import BaseModel
from m1 import M1
class M2(BaseModel):
    bar: Optional[M1]

# main.py
from m1 import M1
print(M1(**{'foo': {'bar': None}}))
# ImportError: cannot import name 'M1' from 'm1' in m2.py line 3

The way I found is to modify m1.py  like this
from __future__ import annotations
from typing import Optional
from pydantic import BaseModel
class M1(BaseModel):
    foo: Optional[M2]  # or use ForwardRef('M2') instead of from __future__ import annotations
from m2 import M2
M1.update_forward_refs()

Now main.py works
foo=M2(bar=None)

But the solution is quite counterintuitive, so we we need to modify m1.py while import error happens in m2.py, and if there are more models, with some graph of dependencies, things goes more complicated, not sure we can handle three or more models this way. Also placing import in the bottom of the file violates PEP-8.
Is there some more generalized solution? Maybe place ForwardRef s in separate module and use it as C-style header files?

@AntonOvsyannikov, if use standard data classes, then circular imports is solved like this:
# m/__init__.py
import m1
import m2

# m/m1.py
from typing import Optional
from dataclasses import dataclass
import m
@dataclass
class M1:
    foo: Optional['m.m2,M2']

# m/m2.py
from typing import Optional
from dataclasses import dataclass
import m
@dataclass
class M2:
    bar: Optional['m.m1.M1']

# main.py
from m.m1 import M1
from m.m2 import M2
e1 = M1(foo=M2())
e2 = M2(bar=M1())

But this approach doesn't work with Pydantic.
P.S. A very similar question has already been raised here https://github.com/samuelcolvin/pydantic/issues/707 a year ago.

also having this problem, and not figuring out any clear solutions besides heavy refactoring. Note I'm using this in a fastapi context following some rather modular patterns for crud with a lot of specific files.

also having this problem, and not figuring out any clear solutions besides heavy refactoring. Note I'm using this in a fastapi context following some rather modular patterns for crud with a lot of specific files.

Thanks for using pydantic. 🙏
As part of a migration to using discussions and cleanup old issues, I'm closing all open issues with the "question" label. 💭 🆘 🚁
I hope you've now found an answer to your question. If you haven't, feel free to start a :point_right: question discussion.


Add support for skipNode

Add support for the skipNode method in addition to skip.
See: https://github.com/google/incremental-dom/commit/ec0537be2a698f33c44565702fdb8b33b03ec724
This was only added a few weeks ago and has yet to even be rolled into a release yet, so this is a bit of a preemptive request for the time being.
Additional thought: Would it be useful to add support for skip and skipNode tags in addition to attributes?

Thanks for the heads up on skipNode. I'll look into what uses it brings as I'm unsure what it brings at the moment.
See this issue for a previous discussions on skip tag:
https://github.com/davidjamesstone/superviews.js/issues/10
It didn't seem to make much sense to have one.

The most obvious use case I think I've seen so far is when an element is manipulated by a 3rd party or expensive script that you don't want patch to touch.  For example, if you're using the Google Maps API and attach it to a DOM node.  Without skipNode, patch will redraw the DOM as it was supposed to be (eg, an empty div), rather than how it should be after being manipulating by Google Maps.


Clientside particle mod works correctly in singleplayer, but breaks when connected to a server.

Mod Name
Wakes
Mod Homepage
https://modrinth.com/mod/wakes
Minecraft version
1.20.1
Describe the bug
When in singleplayer, the wakes (not splashes or other particles) generate correctly. However, when connected to a server (mod is clientside and is not on the server, however the issue occurs regardless of if it is in the server modlist or not) creating a wake (by moving along water, mobs and other entities can create wakes too) will crash the game.
Steps to reproduce

Install Sinytra and Wakes mod 0.2.2 (occurs in 0.2.3 as well, but 0.2.3 has a rendering bug)
Create a server with necessary mods.
Join server and move along the surface of water to generate a wake.
...

Logs
https://pastebin.com/R87q0ScY
Additional context
The server never crashes because of this. The crash is entirely clientside, and can be fixed by disabling the wake generation portion of this mod.

Please read the issue template more carefully. For modpack related issues, use the support channel on our discord server.

Before reporting, please ensure that:

You've installed a minimal set of mods required to reproduce the issue.
Issues with modpacks and excessive amount of mods will not be accepted, as they take a long time to diagnose.
Knowing which mods are causing problems allows us to focus on fixing the issue as soon as possible.
If you're unsure which mods might be at fault, try using binary search - removing half of installed mods
repeatedly until the faulty mod is found.

I've tested wakes on a local server with all mods only installed on the client side, and it worked perfectly fine.


Integrate with k8s

Integrate the k8s with OpenLab system

I'll be investigating on bring up the k8s deployment first based on dims' work https://github.com/dims/openstack-cloud-controller-manager.

Let us enumerate all scenarios of kubernetes and OpenStack integration at first, then implement each one in separate ansible jobs.

UT: dims/openstack-cloud-controller-manager + devstack [in vm]
UT: kubernetes/kubernetes/pkg/cloudprovider/providers/openstack + devstack [in vm]
Functionality: dims/openstack-cloud-controller-manager + devstack with LB and Octavia [out of vm]
Functionality: dims/openstack-cloud-controller-manager + kubernetes.io/cinder provisioner + devstack [in vm]
Functionality: dims/openstack-cloud-controller-manager + openstack.org/standalone-cinder provisioner + devstack [out of vm]
Functionality: dims/openstack-cloud-controller-manager + flexvolume cinder driver + devstack [out of vm]
Functionality: dims/openstack-cloud-controller-manager + CSI cinder plugin + devstack [in vm]
Functionality: dims/openstack-cloud-controller-manager + Keystone auth + devstack [out of vm]
Add new scenario

All of these test run against OpenStack and Kubernetes master, we will try to test specific version in next step.

This issue to list all of the scenarios, and each scenario should be implemented in separate issue and PR.

All of the scenarios should be run in a vm that boot from OpenStack.

All of work items are finished, close the issue.


Forge 1.20.1 Sinytra Connector "this.container" is null

Thank you for updating to 1.20.1! I tried running it on forge with Sinytra Connector it crashed on startup with this error
debug.log
latest.log

you may be able to solve this by running Java 1.21, but I'll look into that sometime, though no guarantees

Can you test this again in your setup with the 1.1.3 version? I removed the J21 dependency that was unnecessarily strict

Everything works now! Thank you!


fix: The default of the children prop of the text component was changed

Summary
The default of the children prop of the text component was changed
Task

Not yet

Affected sections

src/components/Typography/Text.tsx

How did you test this change?

Mannualy
All tests was passed ✅

I don't see the reason for the change, since let's say that undefined will behave in the same way 🤔

No veo el motivo del cambio, ya que digamos que undefinedse comportará de la misma manera 🤔

The reason for this change is because when the Text component carries the currency variant, this variant has a "format" function, which comes from utils and if the children comes as undefined it fails.


Adding emojiclipboard.com to speedlify leaderboard

This is my first pull request. I humbly ask that you include emojiclipboard.com in the speedlify leaderboard.
It's built with 11ty and it's speedy. Huge 11ty fan.

Thank you!


Getting a list of all environments

Is there a DMScript way to get all the environments?
I have used the rest service to retrieve them but I was wondering if there is a way within DMScript to get them directly?
Thanks

Do you want all of the environments that an application belong to?  Or just a complete list regardless of application?

From: Steve Taylor<EMAIL_ADDRESS>Sent: March 14, 2018 10:48 AM
To: OpenMake-Software/DeployHub
Cc: Wale, Chris (MOHLTC); Author
Subject: [Possible SPAM] Re: [OpenMake-Software/DeployHub] Getting a list of all environments (#27)
Do you want all of the environments that an application belong to? Or just a complete list regardless of application?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/OpenMake-Software/DeployHub/issues/27#issuecomment-373047738, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AgloGcy12BqoHnGqTQpFwMqxuAnHpNboks5teS2ggaJpZM4SqVDH.

You will need to call the Restful API from the DMScript.  DMScript will automatically parse the JSON into DMScript objects. See restful_get  in https://www.openmakesoftware.com/helpRE75/NetHelp/index.html#!Documents/restfulget.htm


ConfigPlanRepository all function should be public.

Currently, there's no way to retrieve all plans as an object using the Cashier code. There is already a function for it, but it's protected. This pull request makes it public so developers can retrieve their plans without copying the all function body.

I understand the benefits, there was some discussion on this in the alpha test group as well. There are some reasons to not provide a (public) all method though:

The all method is specific to the implementation of the ConfigPlanRepository implementation, and is not available on the PlanRepository interface (easy fix though)
The all method implies full Plan management capability. What would happen if you want to archive a plan? Running subscriptions still need the object. So you need to add an archiving functionality as well.
Parity with Cashier for Stripe/Braintree - and Spark.

I'm ok with full Plan management, but then it would need to be complete with archiving features.

I'm closing this for now, let me know if you want to open this up again.


Fix test_formatting_with_enum() on Python 3.10

Fix test_unicode.test_formatting_with_enum() on Python 3.10. In
Python 3.10, str(enum.Enum) now omits the class name: use
repr(enum.Enum) which works on Python 3.4-Python 3.10.
See https://docs.python.org/dev/whatsnew/3.10.html#enum

Oops. I created my local branch on top on 0.29.x, but I based my PR on master! But... since the file seems to be the same in both branches, the PR looks fine :-D Tell me if you prefer that I rebase my PR on the 0.29.x branch.

Parent issue: https://github.com/cython/cython/issues/4100

Fixed by the commit dd7fd780843efc014ccbe5844b10f3ac53395e76. Thanks @scoder!


Do syntax highlighting on "Researcher Notes" with CodeRay

This basically means putting in CodeRay and running it on the accordian in the vulnerabilities show page.
So here: https://github.com/andymeneely/vulnerability-history/blob/master/app/views/vulnerabilities/show.html.erb#L59-L64
http://coderay.rubychan.de/
Convert the notes string to pretty yaml and then display it as YAML.

http://railscasts.com/episodes/207-syntax-highlighting

If you have a better syntax highlighter in mind I'm open to that too

@andymeneely is this what you were looking for?


Codebook bombs when defaultTab is set to tabs[0] and tabs[0] is not a valid tab.

@samussiah Any chance you can provide some instructions to reproduce this?


feat(blob): extend blob struct with index field

Adding the start index of the Blob inside the EDS

Codecov Report
Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (01585ba) 0.00% compared to head (43fd867) 52.00%.

Files
Patch %
Lines

blob/blob.go
60.00%
2 Missing :warning:

Additional details and impacted files
@@            Coverage Diff            @@
##           main    #3165       +/-   ##
=========================================
+ Coverage      0   52.00%   +52.00%
=========================================
  Files         0      178      +178
  Lines         0    11302    +11302
=========================================
+ Hits          0     5878     +5878
- Misses        0     4923     +4923
- Partials      0      501      +501

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

We should mark this API and proto breaking

We should mark this API and proto breaking
Looks like there are only new fields added, so it should be backwards compatible.

Looks like there are only new fields added, so it is backwards compatible.

I know, but that's not the point. We need to mark it so that eiger team can react to this PR and update rust client respectively

[ ] update examples for rpc docs


chore(badges): added crossorigin anonymous attribute

Added the crossorigin=anonymous-attribute to our badges references:

Request uses CORS headers and credentials flag is set to 'same-origin'. There is no exchange of user credentials via cookies, client-side SSL certificates or HTTP authentication, unless destination is the same origin.

superseded by https://github.com/db-ui/core/pull/264


Update cluster-upgrade policy example

Add spec.desiredUpdate.image for cases when a previous upgrade has left the field populated
Add a documentation blurb explaining the cases in which spec.desiredUpdate.image can be omitted
Updated spec.channel and spec.desiredUpdate to a current, supported verion of OpenShift

I've heard https://github.com/open-cluster-management-io/policy-collection is an upstream for this, should I submit the PR there instead?

@bellpr Thanks for the PR and sorry for the delay--yes, please move this PR upstream to https://github.com/open-cluster-management-io/policy-collection

@dhaiducek done, thanks!


Question: how to know that it's safe to send a BLE notification?

Code examples have a hard-coded delay between calls to notify(). Isn't there a better way? I guess there's a buffer somewhere where data is waiting to be sent, is there a way to know this buffer's status so as to not flooding the notifications?

Amazing, thanks @h2zero .


Missing css sheet

When updating the system to the latest version it fails and the console displays this error:
The file "css/magika/content-buttons.css" included by system ma20th does not exist
And Foundry uninstalls the system from the program.
Searching the code, in the folder css there's only one css: ma20th.css
The json manifest include two css sheets:
"styles": [
"css/ma20th.css",
"css/magika/content-buttons.css"
],
Could you please update the manifest or at least include the second css that is the one causing the trouble???

This please, the system is unusable


Mouse Pointer does not respect editor's Display Scale setting

Godot version:
v3.2.3.stable.official
OS/device including version:
Ubuntu 20.04
Issue description:
The mouse cursor/pointer does not get larger when I change the display scale of my my editor (
Steps to reproduce:
Editor > Editor Settings > General > Interface > Editor > Display Scale: 125%
Everything scales except the mouse pointer is still small

The mouse cursor is drawn by your operating system. You have to change its size in your OS' mouse settings.


YouTube Center Settings Only on Home Page

Super minor issue, however I only see the icon for YouTube Center settings on the homepage for YouTube and not for video pages.

Alright so this is solved, it just...worked on video pages one day. Thanks anyways!


Don't force pkg_tar to use Python 2

I'm having trouble understanding why build_tar.py is specified to use Python 2. In my project, which uses pkg_tar, this is causing problems, because we use a toolchain that only includes Python 3. I know there are some workarounds, but I wonder if it's possible to simply remove the python_version = "PY2" attribute when creating the build_tar target.

It may be historical accident.  I converted almost everything else, but still left behind the ability to use python2 for make_deb.py.  I don't see a need to support python2 forever.

fixed in #158


Greet two

Hi! I think you've committed your Visual Studio configuration in this PR.

Closing to keep this repo clean to run the event again


Integrate osm-community-index?

https://github.com/osmlab/osm-community-index is a new project to create a spatial index of OSM community resources -- like Slack orgs, mailing lists, and meetups. It could be an interesting addition to the changeset info panel in OSMCha, so that for instance someone reviewing a changeset could easily find the local community if they have questions. That panel is already quite crowded with functionality, so if we do think this could be useful, would want to be careful about how to integrate even more information there.
cc @willemarcel @tridip1931 @rasagy

This is awesome. Quick thoughts after reading this is I believe it will be a great add to how users can collaborate with the community.
One of the cons I can imagine on top my head is the information available all the time can be little bit distracting but it is also important to convey such information exist.

Is the idea to publish the osm-community-index as a map somewhere?
If yes, my proposal would be to add a link in the "Dicussions" tab of the changeset view or so that just says "Find Local Community" or so and links to that part of the world on the osm-community-index map?

👋 @batpad thanks for the feedback
Yes, discussions tab definitely makes the best area of context where it should be placed. Since this is a completely new idea, I would like to explore more alternatives.

@batpad It's a great idea to have a link to some osm-community-index service, it save us from one additional API request and requires a little space on the interface.

thoughts @bhousel ?

I think it would be a great idea to make these resources available to reviewers in OSMCha.
A typical usecase might be where an OSMCha user is reviewing something that looks unusual, but wants to ping a local mapper about whether or not it's really an issue.  The community index could be a way to reach out to someone for a more local perspective - "hey I saw this thing and it looks like vandalism / an import / bad data going on in your area, can someone take a look?"
No strong opinions on how it would work -- I'd defer to @rasagy on that.

I want to look at the mapbox tilequery API for hosting a service for osm-community-index. Talking with @bhousel about generating a single GeoJSON out of the osm-community-index to create a tileset with.

Talking with @bhousel about generating a single GeoJSON out of the osm-community-index to create a tileset with.

Just released this!
details here:  https://github.com/osmlab/osm-community-index/issues/79#issuecomment-517413827


uploading image

are there any demo or source code example in regards to actual image upload directly from browser? I couldn't find any relevant info for it

Hi @finalight,
There's no demo for the moment but there is a small code example in the README.md file.
I will update the documentation and demo soon.
Did you manage to implement direct upload from browser ?
Feel free to add relevant information and/or make a pull request if required

okay, managed to get it working
so this is how you would implement the function for the ability to upload
initialisation of the settings done below:
    private cloudinaryOptions: CloudinaryOptions = new CloudinaryOptions({
        cloud_name: 'asterzwx',
        upload_preset: 'e4mkj9rm',
        type: 'upload',
        autoUpload: false,
        queueLimit: 1,
        filters: [{
            queueLimit: 1
        }]
    });

the actual uploading code is here:
 this.uploader.addToQueue(this.filesToUpload);
            this.uploader.queue.splice(1, this.uploader.queue.length);
            this.uploader.uploadAll();
            let _self = this;
            this.uploader.onSuccessItem = (item: any, response: string, status: number, headers: any) => {
                _self.cloudinaryImage = JSON.parse(response);
                return { item, response, status, headers };
            };

the reason why I need to splice it by one element is because for some reason, the queue have 2 of the same item that are uploaded which I have no time to find out why. Even the queue limit at the option didnt work; thus the splice

@finalight I've updated your comment to obfuscate your cloud_name and upload_preset. You should keep it private to avoid hackers to upload a lot of images on your cloudinary account.
ng2FileSelect directive automatically add the file to the queue, so you don't need to call addToQueue in your code. This may be the cause of 2 files in queue...
Please have a look of the code sample on the project home page

thanks, let me try and get back to you on that

The latest demo version gives an example of image upload directly from the browser


Global variables in probes can cause requests to be overwritten.

Several probes are storing request data and timer data in global variables which means that multiple events can end up overwriting each others data.

It looks like there's some mistaken use of global rather than local variables which means that if you have several events fired (particularly of the same type) in very quick succession than the data can be "merged".
This doesn't appear to affect HTTP too badly, but if there's multiple MySQL or MongoDB calls in the same HTTP request then some merging happens.
This is critical to fix as it relates to the correctness of the data.

I haven't found any issues with this in integration testing, so closing.


Maps: GUI state for turn_costs=true doesn't carry over

The web GUI can suddenly decide that we don't care about turn restrictions any more.
Steps to reproduce:

Go here:

https://graphhopper.com/maps/?point=38.540026%2C-121.735146&point=38.535508%2C-121.741292

Click "bike"
Click "car"

--> turn_costs=false appears in the query string, and turn restriction isn't respected.

This will be fixed with #1859.

Should be fixed with #2023, but let's keep this open until its deployed and check again.


panic: async: EOF

panic: async: EOF

goroutine 3935 [running]:
github.com/blinklabs-io/bluefin/internal/tx.submitTxNtN.func1()
        /code/internal/tx/tx.go:442 +0x8e
created by github.com/blinklabs-io/bluefin/internal/tx.submitTxNtN in goroutine 3812
        /code/internal/tx/tx.go:439 +0x1a5

This is the same problem as #204


Top client user report

Is it possible to get statistics for top client users report in harvest?
Here is the KB for this data that manually generated on demand when need to trobleshoot slowness or whatever issue lead to find who is the top talker:
https://kb.netapp.com/onprem/ontap/da/NAS/How_to_get_statistics_for_top_client_users_in_ONTAP_9
>statistics start -object top_client -sort-key write_ops -sample-id writeop1
>statistics show -object top_client -sample-id writeop1 -tab -counter read_ops|write_ops -sort-key write_ops
>>statistics stop -sample-id writeop1

Thanks @razaahmed for opening this issue that started on Discord.

We would like to have this too
+1

+1

We would like to have this too
+1

Any update on this?

In short, it's an ONTAP API limitation that makes it a challenge to collect these metrics.

Verified at commit 256613e0b329f5606d3cce925996af02aa1bf9ed
currently cluster has only write ops/data, it shows in Dashboard when enabled in template file.
curl -s http://localhost:13006/metrics | grep volume_top
# HELP volume_top_clients_write_data Metric for volume_top_clients_write
# TYPE volume_top_clients_write_data gauge
volume_top_clients_write_data{client_ip="<IP_ADDRESS>",cluster="umeng-aff300-01-02",datacenter="rest",svm="osc",volume="osc_vol01"} 4096
volume_top_clients_write_data{client_ip="<IP_ADDRESS>",cluster="umeng-aff300-01-02",datacenter="rest",svm="osc",volume="osc_vol01"} 819
# HELP volume_top_clients_write_ops Metric for volume_top_clients_write
# TYPE volume_top_clients_write_ops gauge
volume_top_clients_write_ops{client_ip="<IP_ADDRESS>",cluster="umeng-aff300-01-02",datacenter="rest",svm="osc",volume="osc_vol01"} 1


crossplane-scribe: crossplane version update, switch to providerConfig

This PR addresses a few issues:

We update the version of Crossplane, the version of OperatorHub is pretty stale, so I added in the script I use to install Crossplane 1.1.0 w/ Helm
Updates the references to the ProviderConfig
Adds in the ControllerConfig. This sets the securityContext of the Provider to empty ({}), which is filled in by Openshift. Not setting this causes the Provider to error
Updates the internetGateway reference in the routing table
Adds the AWS secret script

should be good to merge @cooktheryan, tested it out on my OpenShift cluster


Can TypeShape.Roslyn reference an older version of roslyn?

I am trying out TypeShape.Roslyn for applicability in our MessagePack AOT source generator. But your package consumes roslyn 4.11, which is so new it doesn't even show up on the version mappings document.
Many users are still on the last update of VS 2019. Is it possible you can target roslyn 3.11.0 to support that?

Ouch. This was caused by https://github.com/eiriktsarpalis/typeshape-csharp/commit/29ce026ea33c0683fe850af1ef5d247eaba06d4f where I ran a wholesale package update without noticing that it moved Roslyn to a yet unsupported version (I'm using the previews so didn't notice). I'll see if I can downgrade it again.

Many users are still on the last update of VS 2019. Is it possible you can target roslyn 3.11.0 to support that?

I don't think I'd want to support Roslyn 3.x primarily because it doesn't support incremental general caching. Bare minimum it would need to target 4.4 which exposes symbol metadata for a few necessary language features (required and init members primarily).


fix ConfigMap data with leading underscore (#44)

I tried doing the least amount of changes to fix keys with leading underscore in ConfigMap data.

I believe attrs starting with _ are filtered due to some specific “special” attrs which are use throughout the module system. See:  https://github.com/search?q=repo%3Ahall%2Fkubenix+._&type=code
It might be better to compile a list of these and only exclude this specific list (everywhere).


Invalid discord invite token

When I try to join discord, I got an invalid invitation.
Discord link : https://discord.com/invite/vSp3a2Yn

Thanks for reporting. I didn't know discord generates an expiring invitation
Here it is: https://discord.gg/8MTQuasmZf
Thanks


Add WSIMOD

Insert URLs to the project here: https://github.com/ImperialCollegeLondon/wsi

[x] The projects is active, documented, open source licensed, shows usage from external parties and is directly targeting environmental sustainability. Find more details in the Contribution Guide.

All issues labeled as Good First Issue of the project listed on OpenSustain.tech will be visible on ClimateTriage.com. This is a great way to welcome new community members to your project.
All projects listed will be posted on our Mastodon channel

@barneydobson @dalonsoa

Provides a message passing interface to enable different subsystem models to communicate water flux and water quality information between each other, and self-contained representations of the key parts of the water cycle. https://github.com/ImperialCollegeLondon/wsi


Writing a TH2 into file

In the readme section, there is an example of writing a TH1 histogram created entirely in Python. This example works very well. I am now trying to do the same thing using a TH2, which I posted here on StackOverflow, still without success.
On line 135 in function allvalues in file ~/Library/anaconda3/lib/python3.7/site-packages/uproot_methods/classes/TH2.py I see:
v = v.reshape(self.ynumbins + 2, self.xnumbins + 2)

I don't understand the addition of +2 here? Or if this is OK, how is the proper way to fill the histogram?
thanks.

it's for the under- and over-flow bins.

OK that sounds plausible. Keeping that in mind, do you have any ideas how to correctly fill the histogram? please have a look at the StackOverflow post.

ok, small progress: if I now consider the under and overflow bin, then instead of 4 x 6 = 24, I need 6 x 8 = 48 data points. If I give this to the class, then it creates the TH2 histogram. Here is the code:
import types
import uproot
import uproot_methods.classes.TH2
import numpy as np

class MyTH2(uproot_methods.classes.TH2.Methods, list):
    def __init__(self, xlow, xhigh, xnbins, ylow, yhigh, ynbins, values, title=""):
        self._fXaxis = types.SimpleNamespace()
        self._fXaxis._fNbins = xnbins
        self._fXaxis._fXmin = xlow
        self._fXaxis._fXmax = xhigh
        self._fYaxis = types.SimpleNamespace()
        self._fYaxis._fNbins = ynbins
        self._fYaxis._fXmin = ylow
        self._fYaxis._fXmax = yhigh
        for x in values:
            self.append(float(x))
        self._fTitle = title
        self._classname = "TH2F"

th2 = MyTH2(-5, 5, 6, -8, 8, 4, np.random.rand(48), title='')
file = uproot.recreate("tmp3.root", compression=uproot.ZLIB(4))
file["th2"] = th2

A histogram is actually created. But if I open the histogram with TBrowser(), it just shows a blank canvas. If I hover the mouse over its canvas, then I see different bins and their values change in the status bar. These are the same values one gets with th2.values. So the histogram is there, and has values but it doesn't show any bars / colors, etc.
Also the fact that one needs to include the underflow and overflow bin, makes filling the histogram more difficult specially in the 2D case.
or maybe the histogram should be filled differently?

I found an example of writing 2D histograms with Uproot:
https://nbviewer.jupyter.org/github/jpivarski/2019-07-29-dpf-python/blob/master/04-uproot.ipynb#Writing-to-ROOT-files
This example uses np.histogram2d as a source. If you're building the TH2 manually, you might be setting the style parameters to invisible values: this np.histogram2d example chooses reasonable defaults that you can port over to your procedure.
This is the code that creates the TH2 from the NumPy source:
https://github.com/scikit-hep/uproot-methods/blob/16feba9f7bee365b6113d6af029e6a9364c74ece/uproot_methods/classes/TH2.py#L226-L272

the mechanics of creating a TH2x that ROOT correctly reads and displays are... interesting. (for some definition of interesting.)
if you want some inspiration, you can have a look at the equivalent groot code:

https://github.com/go-hep/hep/blob/master/groot/rhist/h2_gen.go#L35
https://github.com/go-hep/hep/blob/0f7b59f24c5e4473d8c4cee5ebe436249a05384b/groot/rhist/hist.go#L256
https://github.com/go-hep/hep/blob/0f7b59f24c5e4473d8c4cee5ebe436249a05384b/groot/rhist/hist.go#L47

(especially the last one that creates the expected default values for TH2x that TBrowser expects)

I found an example of writing 2D histograms with Uproot:
https://nbviewer.jupyter.org/github/jpivarski/2019-07-29-dpf-python/blob/master/04-uproot.ipynb#Writing-to-ROOT-files
This example uses np.histogram2d as a source. If you're building the TH2 manually, you might be setting the style parameters to invisible values: this np.histogram2d example chooses reasonable defaults that you can port over to your procedure.
This is the code that creates the TH2 from the NumPy source:
https://github.com/scikit-hep/uproot-methods/blob/16feba9f7bee365b6113d6af029e6a9364c74ece/uproot_methods/classes/TH2.py#L226-L272

yes, indeed it works and is displayed properly in TBrowser. So I have to see what is the difference in this case, with the case of a TH2 histogram with bars / colours, i.e. what should I write into the file using uproot, so that later it is later recognized by TBrowser as a proper TH2. Currently, if I open the chart editor it does not offer me the options like "3D LEGO" etc... like it usually does it with other TH2 histograms. Some value must be set somewhere in the file structure, I guess this was the core of the hint @sbinet provided in their reply.

I don't know anything about how the TBrowser decides what to show, but everything that defines the TH2 is in the attributes with names that begin with _f, including nested ones, like _fXaxis (which has its own nested attributes). The difference between the one you're making and the one that the np.histogram2d → TH2 is making (see code link above) is in those attributes.

I'm guessing I can close this? Let me know if I'm wrong.


Add isViewSafe() to notification class

Add isViewSafe method to Notification class. So that when extends from base Notification class , you can override isViewSafe to use the view() method to add your own view to notification
https://discord.com/channels/883083792112300104/1001249817961451540/1050016360316555274

@JohnnyMaynne, what's the reason behind closing this PR? It actually is something we should add I think.


Embedded request

Parameters of type Long was not taken into account.
This is the correction (RDBMSConnection) :
					if (o.getClass() == String.class) {
						stmt.setString(count, (String) o);
					} else if (o.getClass() == Date.class) {
						stmt.setDate(count, (Date) o);
					} else if (o.getClass() == Integer.class) {
						stmt.setInt(count, (Integer) o);
					} else if (o.getClass() == Long.class) {
						stmt.setLong(count, (Long) o);
					}

Thanks - I'll get that in next round. Any other types we care about?

In


Applicant/Manager - Fix styling of labels with long text

Labels that are over one line, overflow out of the parent container.

Might want to consider holding on this for now - design system inputs solve this issue, and at the end of the day, a label this long should be reworded to be more concise anyway. Unfortunately fixing this in the existing input framework will be difficult, because the height of the input has not relationship with the length of the label, so we'd have to run JS to check to see if the length is too visually long, and it gets hairy.


[WSL2][interop] Program use older version after recompilation

Version
Microsoft Windows [Version 10.0.22621.521]
WSL Version

[X] WSL 2
[ ] WSL 1

Kernel Version
<IP_ADDRESS>
Distro Version
Ubuntu 20.04
Other Software
Binary compiled with x86_64-w64-mingw32-g++
Repro Steps

Compile cpp with x86_64-w64-mingw32-g++
Run it from distro (./programName.exe)
Edit cpp file
Recompile
Run it a second time

Expected Behavior
Output change after compilation
(clang++ for execution in Ubuntu without interop)

Actual Behavior
Output don't change

Diagnostic Logs
No response

If I move binary to another directory, output is updated

I just found out that svchost.exe (NetworkService -p)  was handling my executable in resource monitor

It holds it for a few minutes before releasing it, and it is during this period that the file is not at the correct version during execution.

Simply because of SuperFetch, disabling it solved the problem

Never mind, I just copy my compiled files in C:/temp and run powershell.exe "C:/temp/things.exe"


[BrokenLinksH2] Fixed the link path

Fixed the link path

Global effort to fix broken links
@xuzhg
The Content & Learning team is fixing broken links on docs.microsoft.com for the rest of H2. This effort will eliminate potential accessibility, security, and usability issues. This PR includes only link fixes and does not change other content. I’d very much appreciate your timely review and feedback on the link changes I’ve suggested. Thanks!


List of vendors with counterfeit and original

Hi cpetrich,
thanks for providing all this info and the fakecheck script.
I wonder if it is possible to provide a list where you bought counterfeit and where original sensors. This helps choosing the right store.

Hi,
fair enough, I'll look into compiling a list of sources.
If you want to buy original sensors get then from the Maxim web store or from one of the authorized distributors in your area listed here: https://www.maximintegrated.com/en/aboutus/contact-us/distributor-offices.html
If you just need 4 sensors for your project then Maxim will gladly courier them to you for free (select the Order tab on their DS18B20 page and click on Sample). If $15 for shipping is within your budget then get them from an official distributor.
I'm not going to vouch for anybody else based on two anecdotes:

In one purchase of authentic sensors from a reputable but non-authorized distributor I had 3 sensors that gave me an offset of 0.88 C at the freezing point. It is beyond me how that can happen but I did repeat those measurements many times: it was not a measurement error, and all of those bad guys had an almost identical (way too high) offset.
In another case I ordered probes with identical part numbers from the same retailer twice. The first delivery contained an authentic sensor, the second contained a clone. Same part number, ordered a month or two apart.

If you want to buy decent waterproof probes that contain original sensors you'll probably have to buy from a store that caters to tinkerers. Maybe you can ask their tech people for the ROM code of a recent sensor. You'll probably face a price tag somewhere above $7 a piece, more like $10. I've had people tell me that their probes contain original sensors only to find that they contained Family B clones. I've paid $15 for one probe that contained a Family D2 sensor -- that store refunded the full costs including shipping though after I told them that parasitic power doesn't work. Faced with this mess our solution was to have a 4 digit-number of them custom produced. If like $10 a piece plus shipping and customs import fees to your country are not an issue then I can pack up some for you. Otherwise I refer to anecdote 2 above for why I won't drop names and the first three sentences of this paragraph for how one could proceed.

added a list of sources

I bought a ds18b20 from www.develektro.com, which is a shop in germany where private persons can buy farnell stuff. Apparently they (develektro and farnell) share the same warehouse.  This seems to be the only source of guaranteed original sensors in germany to my knowledge. Therefore it is maybe worth it to add this one to the list too. I of course also ran your check without any problems.

@MatthiasSchinzel Two weeks ago I've purchased DS18B20 at https://reichelt.nl = https://reichelt.de, my favorite electronics webshop in Germany. These sensors are genuine and works reliable at low voltage and accurate temperature.

Yes, sure there are many suppliers of electronics in Germany. However maxim is not mentioning one as certified supplier, including reichelt.

@MatthiasSchinzel This sounds intriguing and shows how blurry the line can get. May be a case for Maxim customer support to clarify.
Although it may not be a solution for everybody, an alternative route could be to check whether other authorized distributors ship to private customers in Germany for free and without customs charges if the order is big enough (I believe Mouser, for example, does as of writing).


Question/Possible argument bug in api.create_tweet()

Hi, this is something I probably should've reported a while ago, but I couldn't access my github account.
I don't have the exact error reproduced, but it should be easy to do.  It involves calling api.create_tweet like so:
api.create_tweet(text="some text", reply_in_reply_to_tweet_id="12345")
My use case is simply replying to another user's tweet.
You would think this would be common enough that if this issue existed other people would've mentioned or fixed it by now.
Anyways, an exception was thrown and based on the error message I discerned that something was wrong with the "reply_exclude_reply_user_ids" parameter.
So I fixed the problem with a little guesswork by changing my call thusly:
api.create_tweet(text="some text", reply_in_reply_to_tweet_id="12345", reply_exclude_reply_user_ids=[])
An empty list seems to be acceptable for whatever reason, at least for "reply_exclude_reply_user_ids." Maybe that would make a better default value?
It looks like for whatever reason, the default value of this parameter is None, and when you specify a "reply_in_reply_to_tweet_id" arg, it automatically adds the "reply_exclude_reply_user_ids" arg into its "args[reply]" dictionary key as it builds the api/http request.  I'm looking at lines 605-612 in file "api.py."
By only using one of these two arguments, you're unwittingly adding the default value of the other to your api request.
Maybe this is documented somewhere, but I couldn't find it in the docs that you were required to specify an empty array if defining one of the args but not the other?  But if you don't do this, it fudges up the api request and causes an error/exception.
Sorry if this has been resolved already and discussed.
I'm only hoping to help others who might encounter this issue and get stuck on it.  Thank you!

Yes, I have reproduced this error,  I will fix it quickly.!


Fast length and bounds checks, use long for Length's

Fast length and bounds checks, use long for Length's

Is this actually faster? By how much? Can you explain why that is?

@ahsonkhan profiling kestrel with this change ATM.
This change allows us to calculate length of readable buffer and run bounds checks without traversing segment linked list when there are more then one segment.

:up::date:

Is this SetNext method a good candidate for the aggressive inlining attribute?

It currently won't inline by default because of the while; how common would be the while loop executing? e.g. appending a chain of BufferSegments
Could do something like (not verified correct code):
[MethodImpl(MethodImplOptions.AggressiveInlining)]
public void SetNext(BufferSegment segment)
{
    Debug.Assert(segment != null);
    Debug.Assert(Next == null);

    Next = segment;

    segment.RunningLength = this.RunningLength + this.ReadableBytes;

    if (segment.Next != null)
    {
        SetRunningLengthChain(segment);
    }
}

[MethodImpl(MethodImplOptions.NoInlining)]
private static void SetRunningLengthChain(BufferSegment startSegment)
{
    Debug.Assert(startSegment.Next != null);

    var runningLength = startSegment.RunningLength + startSegment.ReadableBytes;
    var segment = startSegment.Next;

    do
    {
        segment.RunningLength = runningLength;
        runningLength += segment.ReadableBytes;
        segment = segment.Next;
    } while (segment != null);
}


Fix missing Helios nuget package - update akka, akka.remote and newtonsoft.json

Fix missing Helios nuget package - update akka, akka.remote and newtonsoft.json in the remoteDeploy sample project. The solution references a Helios nuget package that's not available on the nuget server. Downgrading helios causes other issues. Was easier to upgrade these packages.

thanks @goblinfactory ! sorry for the mistake. I really appreciate you fixing it :)

Oh gosh, only just seen this message, was browsing through bits of UI in github I've not really looked at and saw the notice. My first open source pull request, woot! thanks for the update. ;-D


Makes sense.


Add option in config to disable tus

@ishank011 merging for now, in the future both simple upload (PUT/GET) and TUS should be available.

@labkode GET is not supported by TUS. As for PUT, I'll try to create a wrapper which saves us from the config trouble.


[main] ERROR io.github.redouane59.twitter.helpers.AbstractRequestHelper

Hello, thank you for your project. I am a newbie in using twitter api. I am very sure that there is no problem with this apikey and token because they were just generated. I noticed that the label of this project is twitter api 1.1. Is it because of this  error.
The error
[main] ERROR io.github.redouane59.twitter.helpers.AbstractRequestHelper - (GET) Error calling https://api.twitter.com/2/tweets/1741730982368289265 {"client_id":"28251539","detail":"When authenticating requests to the Twitter API v2 endpoints, you must use keys and tokens from a Twitter developer App that is attached to a Project. You can create a project via the developer portal.","registration_url":"https://developer.twitter.com/en/docs/projects/overview","title":"Client Forbidden","required_enrollment":"Appropriate Level of API Access","reason":"client-not-enrolled","type":"https://api.twitter.com/2/problems/client-forbidden"} - 403

Hello, you're problem is not related to the library itself but to the twitter API.
You can try to post directly in their forum but it looks like you are not using correct credentials.