#18747 update SQL Server, Babelfish and Azure drivers to version 11.2.3

Please check the connections:

[ ] SQL Server
[ ] Azure
[ ] Babelfish
[ ] SQL Server (old)
[ ] SQL Server EE
[ ] Azure EE
[ ] Babelfish EE
[ ] SQL Server (old) EE

The connection that worked before, now can't connect with this error

https://github.com/microsoft/mssql-jdbc/issues/1775#issuecomment-1079371583

For security reasons, starting in 10.1.0 release there was a breaking change (thus the version bump) which defaulted the encrypt option to true (previously false) thus the driver will look for a certificate to validate unless trustServerCertificate is set to true (i.e. do not validate, trust all when encrypt option is enabled). It is recommended to to supply a certificate for validation for security reasons however if you want to revert back to the old pre-10.1.0 behavior you can just set encrypt=false in your connection string.

Can this option be disabled by default, then?

I don't think we should propose user to turn off server certificate validation on the main page.
I propose to do the following "if you want to revert back to the old pre-10.1.0 behavior you can just set encrypt=false in your connection string"

I'm not sure because encrypt property is more confusing.

Ok.


Incomplete alignments between CINECA & Genomics England

While working on mapping Genomics England up to CINECA, I've come across many instances where CINECA does not have a good category for a Genomics England field.
For example, Genomics England has many fields about A&E department diagnoses/ICD-10 codes, which may be either disease or trauma. CINECA only has categories relevant to disease diagnoses.
Another thing that many of these cohorts collect data on is pregnancy and childbirth, which CINECA does not include either.
Maelstrom includes a bit more of the details we need, like "Pregnancy, childbirth and the puerperium" (which is under Diseases?) and "injury, poisoning and certain other consequences of external causes" (also Diseases?). One solution is to put these sorts of things under Diseases, like Maelstrom has.
It may also be easier to map up to Maelstrom first, and then align Maelstrom under CINECA (or align Maelstrom first and then map GE to Maelstrom, I guess the order doesn't matter). The categories of Maelstrom are much more detailed and would be easier to map Genomics England to.

@mcourtot: Since Maelstrom categories are a close match for many GE terms, can we use them for mapping?

I mapped Maelstrom to CINECA with some success - there are multiple top-level Maelstrom categories that don't really fall under CINECA, but have been useful for the other cohort mappings:

Cognition, personality and psychological measures and assessments
Death
Health and community care services utilization
Perception of health, quality of life, development and functional limitations
Life events, life plans, beliefs and values
Physical environment
Preschool, school and work life *
Social environment and relationships

* this could fall under socio-demographic, but I think it makes an interesting distinction between occupation (under socio-demographic) and "work life", which has more to do with the day-to-day conditions of work rather than a history of employment.
After completing this mapping, I started to map the other cohorts to Maelstrom instead of CINECA. I had much more coverage using Maelstrom than CINECA, especially with Genomics England. Even the other cohorts had much better mappings (e.g., GCS talks about tea and animals, which fall under lifestyle information. CINECA has lifestyle and behaviours, but Maelstrom's is much more complete.
I think continuing to map to Maelstrom rather than CINECA might be easiest for future cohorts to do their own mappings with, but I'd like to hear others' thoughts as well. The one thing that Maelstrom doesn't specify is the "biosample type" which seems to be pretty important for the browser.

This has been reworked in GECKO

This has been reworked in GECKO


Clone form 141

Solved this issue. Please check if the button of the form page fits what you had in mind.

I see you have added the clone button on show.html, but there is no functionality to act on when the button is pressed.

I put all the javascript for cloning in a separate JS file, used reverse throughout, NB: we should always use reverse instead of handwriting URLs, that way when we change the urls.py file the generate URL is automatically updated.


[issue_103] convert environment variables to their used types.

Fixes #103

Thank you @marcellanz how good to have you back here

@sleipnir happy to help :) Ramping up again my environment.


There was a problem running the "LayerUtility: LaMa" node

Error occurred when executing LayerUtility: LaMa:
cannot import name 'LCMScheduler' from 'diffusers' (/root/miniconda3/lib/python3.10/site-packages/diffusers/init.py)
File "/root/ComfyUI/execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "/root/ComfyUI/execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "/root/ComfyUI/execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "/root/ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/lama.py", line 95, in lama
cli.run(model=lama_model, device=device, image=Path(image_dir), mask=Path(mask_dir), output=Path(result_dir))
File "/root/ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/cli.py", line 81, in run
from .download import cli_download_model, scan_models
File "/root/ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/download.py", line 18, in
from .model.original_sd_configs import get_config_files
File "/root/ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/model/init.py", line 1, in
from .anytext.anytext_model import AnyText
File "/root/ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/model/anytext/anytext_model.py", line 5, in
from ...model.anytext.anytext_pipeline import AnyTextPipeline
File "/root/ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/model/anytext/anytext_pipeline.py", line 10, in
from ...model.utils import set_seed
File "/root/ComfyUI/custom_nodes/ComfyUI_LayerStyle/py/iopaint/model/utils.py", line 12, in
from diffusers import (
What is the cause of the above problem when running the "LayerUtility: LaMa" node?

Try update the diffusers package to newer version.


4309 bug exception 29082024 at 1042

Closes #
Changes proposed in this pull request

Instructions for Reviewers
exception errors: undefined method `labware_id' for nil:NilClass
So add checks if request's asset_id, asset's labware_id is nil to avoid call method on undefined object
[All PRs] - Confirm PR template filled
[Feature Branches] - Review code
[Production Merges to main]
    - Check story numbers included
    - Check for debug code
    - Check version

I think we should probably have a test to reproduce the issue so that we can confirm the issue no longer occurs.

I think we should probably have a test to reproduce the issue so that we can confirm the issue no longer occurs.

make sense, that is a good reason to have a test.


Ionic 2 cordova installation issue

I don't know where to put this, since Apache Cordova does not apparently allow public bug reports in Jira.  Maybe someone here has reporting access to their site.
A couple days ago I tried installing "$npm install -g ionic cordova" in windows that resulted in neither being installed.
Yesterday I installed separately.  $npm install -g ionic worked okay, but $npm install -g cordova gave me the error that I had previously.  See below.
$npm install -g cordova
The installation failed at the attempt to copy someting called "abbrev" from a nonexistent ".staging" directory over to the global npm
It looks like a LOT of the installation modules got installed, but I worry that if "abbrev" was not the final one, it's failure to install (and the install abort) may have caused other modules not to be installed, which
could be a DISASTER.  (See more below.)  I actually HAVE a recent version of<EMAIL_ADDRESS>installed (10/27/2016)  package date . . . so I may have tried installing recently and the cordova package was only recently broken.
And no config files were installed in the top-level "cordova" directory!  Another reason that the installation may be broken in a big way.
This is on Windows 7.  I have the very latest stable Node and NPM installed (unless another was released in the last week).
SO:  There is something seriously wrong with the "abbrev" package.  It seems to believe that it was installed in a ".staging" directory that does not exist and hence cannot copy itself over
to the normal npm cache.

$ ionic --version
2.1.4
$ npm install -g cordova
C:\Users\pkosenko\AppData\Roaming\npm
`-- (empty)
.....  [many nodules show being installed here]
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "c:\Program Files\nodejs\node.exe" "C:\Users\pkosenko\AppData\Roaming\npm\
\node_modules\npm\bin\npm-cli.js" "install" "-g" "cordova"
npm ERR! node v6.8.0
npm ERR! npm  v3.10.9
npm ERR! path C:\Users\pkosenko\AppData\Roaming\npm\node_modules.staging\abbrev-f7f922e4
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\pkosenko\AppData\Roaming\npm
\node_modules.staging\abbrev-f7f922e4' -> 'C:\Users\pkosenko\AppData\Roa
ming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev'
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\pkosenko\AppData\Roaming\npm
\node_modules.staging\abbrev-f7f922e4' -> 'C:\Users\pkosenko\AppData\Roa
ming\npm\node_modules\cordova\node_modules\npm\node_modules\abbrev'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\pkosenko\npm-debug.log
npm ERR! code 1
pkosenko@PETER-KOSENKO ~
$

I used to have the same problem but on OSX , I fix it by uninstall  ionic and cordova then install them again.
npm uninstall -g cordova ionic
npm install -g cordova ionic

Try the Cordova slack channel as well for support queries

Thanks for the help.  That worked.  The ionic part of the installation was okay.  It was Cordova that was giving the problem.  So, since I installed ionic separately yesterday, today I just uninstalled and reinstalled just Cordova.  I wonder what the problem is.  Something in Cordova update seems not to quite be working with my latest bleeding edge NPM?  I was beginning to think that the problem is that NPM is not completely bullet-proofed for backward compatibility . . .  which having to uninstall/reinstall would seem to suggest.
In any case, uninstall/reinstall worked.  Thanks.

Hello, thanks for using Ionic! @pkosenko were you able to open an issue with the cordova team? Also, what version of cordova are you running?

I am using now the very latest cordova.  I was installing Ionic 2.
$ npm list -g cordova
[..................] - : info using<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>"_id"<EMAIL_ADDRESS> (from package.json)
Unfortunately, I cannot tell you what version of Cordova I HAD, since I had to UNINSTALL it to get the latest cordova to install.  But it was a version of cordova that was packaged with Ionic 1.
And I suspect that it might be something about NPM that was unable to update to cordova 6.4.0
$ npm --version
3.10.9

Glad to hear that it was solved, sorry that you had issues.

I had installed ionic earlier on on my windows 10 system, and ionic -serve failed, So I resulted in uninstalling ionic cordova which till date has resulted in ionic not responding, but cordova is working perfectly. Before I forget, today I installed cordova ionic and it was moved to my npm-cache directory. I need to use ionic badly, but I am getting fed up already.


Detect and record some forms of magnification

Here's a list of various forms to consider

Pinch zoom
Page-level zoom ("Ctrl scroll")
Browser-default font-size
Browser-default zoom level
External assistive technology

This seems possible for pinch-zoom using window.visualViewport.scale and for page-level zoom using window.devicePixelRatio. Both could be measured on page load and then polled for changes that would indicate use of the features.
Browser settings around default font size can be detected by measuring the font-size of elements (e.g. window.getComputedStyle(document.body).getPropertyValue("font-size") will be different depending on the browser default font size). Need to be careful about forcing a layout with this (if done before or after app styling comes in to play)
I have not yet found anything that could detect browser settings around default zoom.
Any use of external assistive technology (e.g. magnifier, ZoomText) will be undetectable

Page zoom can be detected, but only on the first time a user does it on a site. If they leave it that way for the rest of the time they visit the site, it will be difficult to detect that on other pages (this should be less of an issue for SPAs)


Score not saved before level 1001 crash

There is an obvious crash when opening the door for level 1001, because there are no monsters that spawn after 1000. I saw this by peeking at the code, and decided to make this my "beat the game" goal.
Unfortunately the high score doesn't get saved before crashing :(
Before triggering the crash by opening the door:

The crash (yay I beat the game!):

After the crash (oh noes my high score):

Omg how on earth did you reach level 1000??? 😂 Congratulations! Also the
game has no save, how much time did it took?
Looks like i need to add either more monsters or an end game screen.
Btw, the original game was far harder, i made it easier before uploading to
github and fdroid. Maybe it got too easy? Or you're just too good?
Il lun 1 lug 2024, 17:33 Ken Rushia @.***> ha scritto:

There is an obvious crash when opening the door for level 1001, because
there are no monsters that spawn after 1000. I saw this by peeking at the
code, and decided to make this my "beat the game" goal.
Unfortunately the high score doesn't get saved before crashing :(
Before triggering the crash by opening the door:
Screenshot_20240701-081017-before-open.jpg (view on web)
https://github.com/msx80/DoorsOfDoomOmicron/assets/2147138/bdb25e8a-8280-4373-8e76-1c7cd6d3a6da
The crash (yay I beat the game!):
Screenshot_20240701-081119-crash.jpg (view on web)
https://github.com/msx80/DoorsOfDoomOmicron/assets/2147138/026680e3-54cb-4a36-836c-3b866803d036
After the crash (oh noes my high score):
Screenshot_20240701-081245-after-crash.jpg (view on web)
https://github.com/msx80/DoorsOfDoomOmicron/assets/2147138/3739c77b-2da2-4b49-a252-d2fc9237b40b
—
Reply to this email directly, view it on GitHub
https://github.com/msx80/DoorsOfDoomOmicron/issues/3, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AARMFVZAUKPDSY3IFJET6HLZKFZCZAVCNFSM6AAAAABKF2HIG2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGM4DIMJUHE2DGMA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

I'll add more monsters, spread them over more levels and try to balance the game a little bit more.

I also took screenshots of my inventory before that crash. In case it helps with balancing...

while i've not exacly put a check on the exception (i forgot), the current system will make monsters grow bigger and bigger, so it should near impossible to reach 1000.


v0.10.1 breaks self toctree entry

Hi, looks like pydata-sphinx-theme version 0.10.1 breaks self toctree entry. Downgrading to version 0.9.x fixes the problem. Is the self removal intentional, and if so, what's the alternative? Thank you!
Minimum example:
# conf.py
project = "testing"
copyright = "2022, testing"
author = "test author"
release = "1.2.3"

html_theme = "pydata_sphinx_theme"
html_static_path = ["_static"]
html_logo = "_static/logo.png"

extensions = []
source_suffix = { ".rst": "restructuredtext" }
templates_path = ["_templates"]

Sample rst:
Contents
========

.. toctree::
    :hidden:

    Overview <self>

.. toctree::
    :maxdepth: 1

    start_here
    example
    changelog
    reference
    developer

And here's the error:
Running Sphinx v5.1.1
making output directory... done
locale_dir /src/amazon-accessible-rl-sdk/docs/locales/en/LC_MESSAGES does not exists
locale_dir /src/amazon-accessible-rl-sdk/docs/locales/en/LC_MESSAGES does not exists
building [mo]: targets for 0 po files that are out of date
building [html]: targets for 1 source files that are out of date
updating environment: locale_dir /src/amazon-accessible-rl-sdk/docs/locales/en/LC_MESSAGES does not exists
[new config] 1 added, 0 changed, 0 removed
reading sources... [100%] index

/src/amazon-accessible-rl-sdk/docs/index.rst:9: WARNING: toctree contains reference to nonexisting document 'start_here'
/src/amazon-accessible-rl-sdk/docs/index.rst:9: WARNING: toctree contains reference to nonexisting document 'example'
/src/amazon-accessible-rl-sdk/docs/index.rst:9: WARNING: toctree contains reference to nonexisting document 'changelog'
/src/amazon-accessible-rl-sdk/docs/index.rst:9: WARNING: toctree contains reference to nonexisting document 'reference'
/src/amazon-accessible-rl-sdk/docs/index.rst:9: WARNING: toctree contains reference to nonexisting document 'developer'
looking for now-outdated files... none found
pickling environment... done
checking consistency... done
preparing documents... done
writing output... [100%] index

Traceback (most recent call last):
  File "/venvs/a2rl-p310/lib/python3.10/site-packages/sphinx/builders/html/__init__.py", line 1095, in handle_page
    output = self.templates.render(templatename, ctx)
  File "/venvs/a2rl-p310/lib/python3.10/site-packages/sphinx/jinja2glue.py", line 189, in render
    return self.environment.get_template(template).render(context)
  File "/venvs/a2rl-p310/lib/python3.10/site-packages/jinja2/environment.py", line 1301, in render
    self.environment.handle_exception()
  File "/venvs/a2rl-p310/lib/python3.10/site-packages/jinja2/environment.py", line 936, in handle_exception
    raise rewrite_traceback_stack(source=source)
  File "/venvs/a2rl-p310/lib/python3.10/site-packages/sphinx/themes/basic/page.html", line 10, in top-level template code
    {%- extends "layout.html" %}
  File "/venvs/a2rl-p310/lib/python3.10/site-packages/pydata_sphinx_theme/theme/pydata_sphinx_theme/layout.html", line 25, in top-level template code
    {% set remove_sidebar_secondary = (meta is defined and meta is not none
  File "/venvs/a2rl-p310/lib/python3.10/site-packages/sphinx/themes/basic/../basic/layout.html", line 170, in top-level template code
    {%- block content %}
  File "/venvs/a2rl-p310/lib/python3.10/site-packages/pydata_sphinx_theme/theme/pydata_sphinx_theme/layout.html", line 75, in block 'content'
    {% block docs_navbar %}
  File "/venvs/a2rl-p310/lib/python3.10/site-packages/pydata_sphinx_theme/theme/pydata_sphinx_theme/layout.html", line 77, in block 'docs_navbar'
    {%- include "sections/header.html" %}
  File "/venvs/a2rl-p310/lib/python3.10/site-packages/pydata_sphinx_theme/theme/pydata_sphinx_theme/sections/header.html", line 16, in top-level template code
    {% include navbar_item %}
  File "/venvs/a2rl-p310/lib/python3.10/site-packages/pydata_sphinx_theme/theme/pydata_sphinx_theme/components/navbar-nav.html", line 6, in top-level template code
    {{ generate_header_nav_html(n_links_before_dropdown=theme_header_links_before_dropdown) }}
  File "/venvs/a2rl-p310/lib/python3.10/site-packages/jinja2/sandbox.py", line 393, in call
    return __context.call(__obj, *args, **kwargs)
  File "/venvs/a2rl-p310/lib/python3.10/site-packages/pydata_sphinx_theme/__init__.py", line 250, in generate_header_nav_html
    title = app.env.titles[page].astext()
KeyError: 'self'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/venvs/a2rl-p310/lib/python3.10/site-packages/sphinx/cmd/build.py", line 277, in build_main
    app.build(args.force_all, filenames)
  File "/venvs/a2rl-p310/lib/python3.10/site-packages/sphinx/application.py", line 349, in build
    self.builder.build_update()
  File "/venvs/a2rl-p310/lib/python3.10/site-packages/sphinx/builders/__init__.py", line 301, in build_update
    self.build(to_build,
  File "/venvs/a2rl-p310/lib/python3.10/site-packages/sphinx/builders/__init__.py", line 367, in build
    self.write(docnames, list(updated_docnames), method)
  File "/venvs/a2rl-p310/lib/python3.10/site-packages/sphinx/builders/__init__.py", line 559, in write
    self._write_serial(sorted(docnames))
  File "/venvs/a2rl-p310/lib/python3.10/site-packages/sphinx/builders/__init__.py", line 569, in _write_serial
    self.write_doc(docname, doctree)
  File "/venvs/a2rl-p310/lib/python3.10/site-packages/sphinx/builders/html/__init__.py", line 671, in write_doc
    self.handle_page(docname, ctx, event_arg=doctree)
  File "/venvs/a2rl-p310/lib/python3.10/site-packages/sphinx/builders/html/__init__.py", line 1102, in handle_page
    raise ThemeError(__("An error happened in rendering the page %s.\nReason: %r") %
sphinx.errors.ThemeError: An error happened in rendering the page index.
Reason: KeyError('self')

Theme error:
An error happened in rendering the page index.
Reason: KeyError('self')

since https://github.com/pydata/pydata-sphinx-theme/pull/878 we are manually building the toctree as we display it in multiple places. We already encounter some usage that we didn't know and yours is one of them.
We need to special case the self statement to reference local page

We're also experiencing that issue on a couple of projects.


sequence detructuring patterns in case

Apparently we "forgot" to add support for this:
case ([Integer x, Integer* rest])

That's rather useful.

Also, we should definitely support case ([]).

Fixed on the 4127 branch.

Now also fixed on master.


Add new DgsDataFetchingEnvironment.isArgumentSet

Utility method to check if an argument is explicitly set, usable for things like sparse updates.
Pull Request type

[ ] Bugfix
[x] Feature
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] Other (please describe):

Changes in this PR
Added an instance method isArgumentSet to DgsDataFetchingEnvironment. Given a path to an argument, it returns a boolean indicating if this argument was explicitly set.
This is important mostly for sparse update mutations where an explicitly provided null value needs to be handled differently from an argument that wasn't provided at all.
The following datafetching methods are examples of use:
/**
 * Check if a top level argument was provided explicitly.
 * An explicit null value should also return true.
 */
@DgsMutation
fun inputTester(
    @InputArgument topLevelArg: String?,
    dfe: DgsDataFetchingEnvironment,
): Boolean = dfe.isArgumentSet("topLevelArg")

/**
 * Check properties of complex input type if they were provided explicitly.
 * An explicit null value should also return true.
 * This example uses var args for the property path (e.g. isArgumentSet("personInput", "address", "city"))
 */
@DgsMutation
fun complexInputTester(
    @InputArgument personInput: PersonInput?,
    dfe: DgsDataFetchingEnvironment,
): InputTestResult {
    val nameIsSet = dfe.isArgumentSet("personInput", "name")
    val cityIsSet = dfe.isArgumentSet("personInput", "address", "city")

    return InputTestResult(nameIsSet, cityIsSet)
}

/**
 * Check properties of complex input type if they were provided explicitly.
 * An explicit null value should also return true.
 * This example uses the . and -> delimiters for the property paths (e.g. isArgumentSet(personInput->address->city))
 */
@DgsMutation
fun complexInputTesterWithDelimiter(
    @InputArgument personInput: PersonInput?,
    dfe: DgsDataFetchingEnvironment,
): InputTestResult {
    val nameIsSet = dfe.isArgumentSet("personInput.name")
    val cityIsSet = dfe.isArgumentSet("personInput->address -> city")

    return InputTestResult(nameIsSet, cityIsSet)
}

Alternatives considered
This is an alternative solution to changing generated input types in CodeGen. While this solution requires arguments to be referenced by name (as a String/constant), it doesn't require all generated types to be aware of explicit setting.
This solution also works when codegen is not used, e.g. when Records are used for input types.
Another alternative is to use @ArgumentValue from Spring GraphQL. This doesn't automatically account for nested input arguments automatically, but could be a nice solution when types are manually created, or for top level arguments only. Once we remove the legacy DGS implementation later this year, we'll add support for @ArgumentValue as an additional option.

looks great to me! Thanks for adding this.

Hi @paulbakker and @srinivasankavitha! Any thoughts on whether this might create the wrong incentives from a separation of concerns perspective, since I'd expect this kind of check to be in the data access layer when deciding whether to update a field, as opposed to at the API layer as shown here? In other words, any guidance on how you might pass that context down into lower layers of the application that would have a use for it?

@luispollo I think this is the correct layer for checking this. The GraphQL layer (data fetchers) should check input given by the user, this can be part of that.
How that information is then used depends on the application. Some applications will use something like a Spring Data Repository directly in the data fetcher, in other cases there might be a separate layer to forward to.
If forwarded through layers, you definitely shouldn't use the data fetching environment in these layers, because that's a GraphQL only concern. In that case you might need to account for this in your own types defined by your own APIs, which likely shouldn't use the GraphQL generated types directly.

Thanks @paulbakker!

How that information is then used depends on the application. Some applications will use something like a Spring Data Repository directly in the data fetcher, in other cases there might be a separate layer to forward to.

Let me share some more context. We're using the DGS codegen gradle plugin, which means in the GraphQL layer, those are the types we use. The issue here is that you can't distinguish between a null value being provided in the input vs. not being provided at all because both cases end up causing a null value to be assigned to a nullable object property. This is true both at this layer and any layer below because that context is lost, regardless of whether you use the generated types of your own types (the latter of which is the approach my team uses to avoid leakage across layers). With this PR, we now have the ability to make that distinction, but only at the GraphQL API layer. Let's say we have a repository-type component wired into the data fetcher, which is a pattern we use. How would you propose we pass the context that a specific field, or set of fields, were explicitly set to null in the request down to that repository object in a way that's (1) not leaking GraphQL concerns into the data layer and (2) not super cumbersome/bespoke? Any sample implementations?
Thanks for engaging! 🙏

My perspective is that propagating the codegen types outside of the data fetchers can lead to pain; for one thing, they're inflexible and not easily extended or customized for your use case (as in this example). Other problems include mutability by default, and lack of nullability annotations. Some of these things can be fixed in dgs-codegen.
For actual solutions, I can think of a few:

Treat codegen types as DTOs, map to internal classes at the data fetcher layer. Libraries like MapStruct can maybe make this less painful.
Handroll these specific classes where this control is needed. If you're using spring-graphql directly, you could just use ArgumentValue here. DGS can support generating nullable fields with ArgumentValue once non-spring-graphql support is dropped. We also don't make it easy to register custom mappers but that would be another option there.

+1 on @kilink's perspective. The generated types are not designed to be the canonical data types throughout a code base. The same is true for JPA entities, gRPC/Proto types, types used in Rest controllers etc. Different APIs, and different technologies have different rules/requirements for types.
For your example of a repository specifically; a repository typically has very specific requirements for the data types. For example, JPA requires annotations specific to JPA, requires getters/setters for all fields, and you're limited in what types you can use at all.


Update to S3Proxy 1.8.0

Notably this release fixes a race condition found in CI when
simultaneously reading and removing an object.  It also fixes an issue
with the filesystem backend which returned the incorrect Content-Type
for some directories.
Release notes:
https://github.com/gaul/s3proxy/releases/tag/s3proxy-1.7.1
https://github.com/gaul/s3proxy/releases/tag/s3proxy-1.8.0

CI not running?

already done in ac8dd4bb72b2e3e19866a9977342274d67da0b1b


Alert using predict_linear() causes parse error

I'm getting the following error with pint 0.29.3 (revision: 7ab7c95d71df937fc76745ed7818f0873197f3eb):
alerts.yml:212-215: prometheus "example" at https://prometheus.example.com failed with: bad_data: invalid parameter "query": 1:45: parse error: trailing commas not allowed in function call args (promql/vector_matching)
 212 |         expr: |
 213 |           predict_linear(ceph_pool_max_avail[2d], 3600 * 24 * 5) *
 214 |           on(pool_id) group_left(name) ceph_pool_metadata
 215 |           < 0

However, that expression is correct, but pint seems to be running it without the 3600 * 24 * 5 part. In fact, it trips on it elsewhere in the code, where you can clearly see the predict_linear() function missing its second argument:
level=error msg="Query returned an error" error="invalid parameter \"query\": 1:45: parse error: trailing commas not allowed in function call args" query="count(predict_linear(ceph_pool_max_avail[2d], ) * on (pool_id) group_left (name) ceph_pool_metadata)" uri=https://prometheus.example.com

This is likely because some checks will strip queries from all conditions just to see if they would return anything, and that might be doing something silly with those arguments.
Should be easy to fix


[CSL 831] ConstructorIO Node - Add support for Tasks

Updates:

Add new module for Tasks

Missing documentation for newly added module in constructor


Exclude formName from email

Is it possible to exclude the formName field from the email content that gets sent?

Are you using the default output or a template override?

Ah! Good point. Just using the default output currently. Suppose could just do a template without the field

That is what I would do if you want to choose which things output. You can still loop the output in the template and just have it exclude that field.

On Mar 1, 2022, at 8:53 AM, jamiematrix @.***> wrote:
Ah! Good point. Just using the default output currently. Suppose could just do a template without the field
—
Reply to this email directly, view it on GitHub https://www.google.com/url?q=https://github.com/hybridinteractive/craft-contact-form-extensions/issues/132%23issuecomment-1055463728&source=gmail-imap&ust=1646747598000000&usg=AOvVaw31jK3jZAv0Xdwtv6VpKLrm, or unsubscribe https://www.google.com/url?q=https://github.com/notifications/unsubscribe-auth/ABOYYQDW4QIQLN3I37KTNX3U5YOMXANCNFSM5PRHODKA&source=gmail-imap&ust=1646747598000000&usg=AOvVaw15peY70mHZgSQ9ot_y0eLK.
You are receiving this because you commented.


Lack of block "show ring" on Getting Started step1

Repro steps:
• Navigate to https://makecode.adafruit.com/ on Safari
• Click "Getting Started"
Expected Result:
There should show block "show ring"
Actual Result:
The step1 refers block "show ring", but there is no this block

@microsoftsam Repro on Safari?

Close as fixed


Framework not working with prosys or kepware

Hello,
I recently attempted to use your framework with Prosys Simulation Server and Kepware, but I encountered some issues. For instance, I tried to install Prosys version 5.4.6-148 on my own PC and attempted to launch Denial of Service (DoS) attacks from a virtual machine to the server using the following command:
python3 main.py prosys <IP> 53530 /OPCUA/SimulationServer thread_pool_wait_starvation

Below are the outputs I received for each execution of the scripts, except for the "sanity" one:
For Prosys Simulation Server:
**** Started at 2023-09-18 10:25:41.298352 ****
[-] Opening connection to <IP_ADDRESS>:53530 (timeout: 60)
[-] Opening OPC UA session with opc.tcp://<IP_ADDRESS>:53530/OPCUA/SimulationServer
[-] Sending HEL message with 84 bytes
    [-] Setting OPN ReqLifetime to 360000
[-] Sending OPN message with 133 bytes
    [-] Got Secure Channel Id = 3
[-] Sending Create message with 384 bytes
    [-] Got AuthID = 05beddaeec37997a89f7b2b7c260a44363f469d41416c11e75b6ae2dea6738c8
[-] Sending Activate message with 149 bytes
[-] Sending MSG Request - Worker Wait Data Starvation x 200 times
Traceback (most recent call last):
  File "/home/parrot/opcua-exploit-framework/main.py", line 174, in <module>
    main()
  File "/home/parrot/opcua-exploit-framework/main.py", line 168, in main
    DICT_FUNCS[func_type](server_details)
  File "/home/parrot/opcua-exploit-framework/payloads/attacks/thread_pool_wait_starvation.py", line 33, in attack
    opcua.send_recv(message_write_starvation, num_requests, should_recv=False)
  File "/home/parrot/opcua-exploit-framework/protocol.py", line 129, in send_recv
    self.opcua_send(msg, hold_final_chunk=hold_final_chunk)
  File "/home/parrot/opcua-exploit-framework/protocol.py", line 93, in opcua_send
    self.sock.send(data)
BrokenPipeError: [Errno 32] Broken pipe

For Kepware:
**** Started at 2023-09-18 09:04:13.774327 ****
[-] Opening connection to <IP_ADDRESS>:49320 (timeout: 60)
[-] Opening OPC UA session with opc.tcp://<IP_ADDRESS>:49320/
[-] Sending HEL message with 61 bytes
  [-] Setting OPN ReqLifetime to 360000
[-] Sending OPN message with 133 bytes
  [-] Got Secure Channel Id =<PHONE_NUMBER>
[-] Sending Create message with 331 bytes
Traceback (most recent call last):
  File "/home/user/opcua-exploit-framework/main.py", line 174, in <module>
    main()
  File "/home/user/opcua-exploit-framework/main.py", line 168, in main
    DICT_FUNCS[func_type](server_details)
  File "/home/user/opcua-exploit-framework/payloads/sanity/sanity_read_nodes.py", line 12, in attack
    opcua.create_session()
  File "/home/user/opcua-exploit-framework/protocol.py", line 317, in create_session
    self.auth_id = create_resp.opc_data.object.object.auth_token
AttributeError: 'NoneType' object has no attribute 'auth_token'

Please let me know if you need any further information or assistance in resolving these issues.

Hi @GianlucaTravasci

Prosys has fixed this vulnerability in v5.2.2 see here more details - https://www.prosysopc.com/blog/pwn2own-resource-exhaustion-exploit/
Regarding Kepware - you'll have to configure Kepware to accept remote connections and allow anonymous login

Please let me know if you have more questions

Hi @SharonBrizinov. I'm sorry for the late rely.
I've tried with the kepware v.6.6.350.0 server, i've allowed the remote connection with anonymous login and finally trusted an opc client.
Here attached the configuration of the kepware server:

After all that setup i've tried the following commands
python3 main.py kepware ip 49320 / sanity
python3 main.py kepware ip 49320 "" sanity
But I've received the same as before.
Maybe we are doing something wrong with remote connection setup, can you please provide me the steps to correctly setup it.

Hi @GianlucaTravasci you would also need to Accept remote connections. Kepware did a very good job protecting their customers so the default settings are hardened. Please note that doing so is highly dangerous and not recommended outside testing beds :)

Open TCP port 49320 in the firewall (or disable firewall)
Enable external connection and allow plain OPC UA (none TLS)

In the windows taskbar - right click the green kepware logo → OPC UA Configuration
Choose the endpoint that is not localhost and Enable it
Click Edit (after selecting the external endpoint)
Check the None checkbox in the security policies list
Make sure to disable the localhost endpoint or change the port to 49321 so it won’t interfere with remote connections

Do Reinitialize

In the windows taskbar - right click the green kepware logo → Reinitialize


Demonstrate Schnorr multi-sig rogue-key attack

This attack is possible when the parties in a multi-signature process do not prove ownership of their private keys.
Our block multi-sig scheme is secure because each node proves ownership of their key through the signing of the Enrollment. We do not have to change that scheme.
However, for regular users using the existing schnorr multi-sig scheme is insecure.
Resources:

https://tlu.tarilabs.com/cryptography/digital_signatures/introduction_schnorr_signatures.html#key-cancellation-attack
https://blockstream.com/2018/01/23/en-musig-key-aggregation-schnorr-signatures/#:~:text=not secure.

I strongly suggest that we look into some of the proposed secure multi-sig schemes, such as MuSig (there are other alternatives too).
Resources:

https://tlu.tarilabs.com/cryptography/musig-schnorr-sig-scheme/The_MuSig_Schnorr_Signature_Scheme.html

Hopefully this will serve as good documentation in the future. I'll merge it since it doesn't introduce any new code.


V0.0.5

Checklist

[x] Used a fork of the feedstock to propose changes
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy
[x] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

My god I didn't update the SHA, is it Friday?

My god I didn't update the SHA, is it Friday?

And I did not catch it :smile:
(In my defense I've been travelling for ~24 hours now, "sleeping" only on planes.)

I'm spoiled by the bot, haven't done this in awhile...

I'm spoiled by the bot, haven't done this in awhile...

Yeah. The bot should've catch this one.


Not working--what more is needed?

Hmm, it's not working for me.  I added it in my client's Paogram.cs, and inject, just as the example.  After I implement and attach a function to beforeUnload.BeforeUnloadHandler, shouldn't (in my browser console) window.beforeunload have a value?  It does not for me.

Hey,
yes, window.onbeforeunload, is usually used, but here event listener version is being used. When called from Blazor the event listener should be added, bound to C# handler via interop:
https://github.com/peterblazejewicz/blazor-beforeunload/blob/master/src/BlazorBeforeUnload/wwwroot/BeforeUnload.js
So technically, there should be window.BeforeUnloadInterop in your console if everything is OK (sorry, I haven't tested this wiht recent BL versions)

Hi, you need to add this to your wwwroot/index.html:
    <script src="_content/BlazorBeforeUnload/BeforeUnload.js"></script>

yeah, I found this issue as well. Thank you!


Remove duplicate "Storage write and read" from nav

@johndmulhausen could this be fixed as part of the nav redesign?


Allow users to disable use of Logical Call Context

I updated Glimpse ADO, ASP.NET, Core, EF5, and Mvc4 via NuGet this morning and I am now getting a run time error of Type 'System.Web.HttpContextWrapper' in assembly 'System.Web, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' is not marked as serializable.
The complete exception detail:
System.Runtime.Serialization.SerializationException was unhandled
HResult=-2146233076
Message=Type 'System.Web.HttpContextWrapper' in assembly 'System.Web, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' is not marked as serializable.
Source=WebDev.WebHost40
StackTrace:
at Microsoft.VisualStudio.WebHost.Host.ProcessRequest(Connection conn)
at Microsoft.VisualStudio.WebHost.Server.OnSocketAccept(Object acceptedSocket)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
InnerException:
I am running an MVC4 application from VS2010. The only changes to the project where the NuGet packages for Glimpse.

@davidfowl just having the same issue while contributing on another project (Orchard cms). This when using the CallContext Logical Data to carry workcontext data among thread switching (e.g when async code), and when using this through a command shell that uses cross domain call...
You gave me the solution, as you said it just works with ObjectHandle, many thanks.
Best


[Backport] [2.x] Bump org.xerial.snappy:snappy-java from <IP_ADDRESS> to <IP_ADDRESS> in /test/fixtures/hdfs-fixture (#10206)

Backport of https://github.com/opensearch-project/OpenSearch/pull/10206 to 2.x

@kotwanikunal @owaiskazi19 @andrross mind please to approve folks? thank you


AutoConfig not finding all resources in package

I have 7 resources in a particular package, all of which are annotated with import javax.ws.rs.Path;
Two of the resources are not being picked up by AutoConfig. With my debugger active on the addResources method in AutoConfig, I can see that the Reflections library completely misses them, but I don't know why.

I am having a similar problem. Are you also on Java8 and dropwizard/dropwizard-guice 0.8.0?

Well this seems to work so far at least for picking up @Path-annotated resources. Not sure yet if something else will fall out.
    @Override
    public void run(SpaceRagCfg configuration, Environment environment) throws Exception {
        environment.jersey().packages(getClass().getPackage().getName());
    }

For the record, my versions
    compile 'io.dropwizard:dropwizard-core:0.8.0'
    compile 'com.hubspot.dropwizard:dropwizard-guice:0.8.0'

and I'm on java8.

We're on the latest version of Reflections, I'll try to see if it's a Java 8 incompatibility

We've been seeing this issue intermittently as well, we're testing with Javassist 3.19.0-GA now to see if it fixes the issue by any chance

I get this issue with java 8 if any of the methods in the resource contain short-hand lambda expressions.

3.19.0-GA didn't do the trick, but maybe 3.20.0-GA will. (The fact that it affects classes with lambdas suggests it's a Javassist issue)

I have an issue with this also (version 1.0.0), I need to manually register the resources. Otherwise getting 400 Bad Requests from my resources.  Using Dropwizard v1.0.0.


More uniform I/O for beam patterns

I would like to make the process of loading (custom) and saving beam patterns more uniform. For example, we should add and option to also load/save beam patterns in .npy, or .csv format. We should discuss how we can do this best.

option HDF5


Illuminate\Database\ConnectionResolverInterface used as \Illuminate\Database\Connection

Laravel Version: 8.13.0
PHP Version: 7.4.x
Database Driver & Version:

Description:
https://github.com/laravel/framework/blob/71dbf2206880bd79198eb859e642662a4ac85f0a/src/Illuminate/Database/Console/DumpCommand.php#L36-L42
https://github.com/laravel/framework/blob/71dbf2206880bd79198eb859e642662a4ac85f0a/src/Illuminate/Database/Console/DumpCommand.php#L57-L69
$connection is a \Illuminate\Database\ConnectionInterface but it is used as \Illuminate\Database\Connection in schemaState , the problem is  \Illuminate\Database\ConnectionInterface doesn't have getSchemaState(). Thus this is code will fail when ConnectionResolverInterface::connection() return trully ConnectionInterface instance (as it should).
Maybe ConnectionInterface should be updated, or ConnectionResolverInterface shouldn't be used here.

This doesn't affect actual code.


✨ Add optional --workers CLI option, and fix CI for test-redistribute

Support specifying the number of uvicorn workers. The flag is mutually exclusive with the reload flag, and uvicorn already does the right thing about displaying the warning that it is ignored if used together.

Cool! 🚀
It seems tests are still failing though 😅

I'm baffled... 😫
Well this might be a long shot, but it seems that during the test both fastapi-cli and fastapi-cli-slim are being installed.

In this case, I do also get the failing test cases (the expected test result is updated, but the "app" object doesn't seem to be). However, upon uninstalling fastapi-cli, the tests pass.
pip list | grep fastapi && (python -m pytest tests | tail -6)
fastapi           0.111.0
fastapi-cli       0.0.2
fastapi-cli-slim  0.0.2    /tmp/fastapi-cli/dist/fastapi_cli_slim-0.0.2
=========================== short test summary info ============================
FAILED tests/test_cli.py::test_dev - AssertionError: assert {'app': 'sing...s...
FAILED tests/test_cli.py::test_dev_args - AssertionError: Usage: callback dev...
FAILED tests/test_cli.py::test_run - AssertionError: assert {'app': 'sing...s...
FAILED tests/test_cli.py::test_run_args - AssertionError: Usage: callback run...
========================= 4 failed, 38 passed in 2.18s =========================
After uninstalling fastapi-cli
yes | pip uninstall fastapi-cli && (pip list | grep fastapi) && (python -m pytest tests | tail -6)
Found existing installation: fastapi-cli 0.0.2
Uninstalling fastapi-cli-0.0.2:
Would remove:
/tmp/fastapi-cli/.venv/bin/fastapi
/tmp/fastapi-cli/.venv/lib/python3.12/site-packages/fastapi_cli-0.0.2.dist-info/*
/tmp/fastapi-cli/.venv/lib/python3.12/site-packages/fastapi_cli/*
Proceed (Y/n)?   Successfully uninstalled fastapi-cli-0.0.2
fastapi           0.111.0
fastapi-cli-slim  0.0.2    /tmp/fastapi-cli/dist/fastapi_cli_slim-0.0.2
tests/test_utils_default_dir.py ....                                     [ 33%]
tests/test_utils_default_file.py ....                                    [ 42%]
tests/test_utils_package.py ...................                          [ 88%]
tests/test_utils_single_file.py .....                                    [100%]
============================== 42 passed in 2.24s ==============================
Could that be the reason?

Indeed, that was part of the reason... this was a hard one to debug! :sweat_smile:
Thanks for your contribution! :rocket:
This will be available in FastAPI CLI 0.0.3 released in the next hours. :tada:


containerRegistry parameter name is misleading

Required Information
Question, Bug, or Feature?
Type: Bug
Enter Task Name: DockerV2
list here (V# not needed):

Docker

Environment

Server - Azure Pipelines or TFS on-premises?

N/A

Agent - Hosted or Private:

N/A

Issue Description
The parameter name containerRegistry suggests that the name of the Azure Container Registry resource should be used directly (e.g. <containerName>.azurecr.io). This results in an error when attempting to run the Task in Pipelines.
I understand that the Service Connection requirement is called out in the Task Inputs table in the documentation, but it is extremely easy to miss, especially when you [mistakenly] believe you already understand what the parameter refers to.
Please consider deprecating the containerRegistry name and using something that indicates that a Pipelines Service Connection is expected. One example might be registryServiceConn.
Theoretically, this should be aligned with the parameter name used in the DockerCompose Task. The equivalent parameter there appears to be called dockerRegistryEndpoint.
Task logs
N/A
Troubleshooting
N/A
Error logs
N/A
Errata
This issue was originally posted in the Task Docs repository but was moved here by suggestion.

@ericdrobinson deprecating the input would result in breaking all the pipelines that are already using this task. We will instead consider improving the intellisense and validation options in the pipeline editor experience.

Removing the containerRegistry is not possible with Docker@2 as doing so would break the pipelines having Docker@2 task using this input. About adding another input as alias, it will lead to having 2 suggestions appear for selecting Docker registry service connection in the pipeline definition editor intellisense, which we want to avoid. So we will fix this issue when we release the next major version of a container builder task.

@shashankbarsin Let's break this down a bit:

Removing the containerRegistry is not possible with Docker@2 as doing so would break the pipelines having Docker@2 task using this input.

I'm not advocating for the removal of the parameter. Simply that it be marked as deprecated.

About adding another input as alias, it will lead to having 2 suggestions appear for selecting Docker registry service connection in the pipeline definition editor intellisense, which we want to avoid.

First off, I assume that you are referring to the Azure Pipelines extension when you talk about "Definition Editor IntelliSense". Second, the editor should be smart enough to do the following for properties/features marked as "deprecated":

Not show the option in the IntelliSense autocomplete options (it would show the replacement, however).
Optionally report the deprecation as a warning.

The above is standard workflow for fixing this exact type of issue. The Azure Pipelines Language Server (which the VSCode Extension uses) is even built to support deprecation workflows: the schema supports a deprecationMessage) and an option for not suggesting the property via doNotSuggest.
Unless I've missed something, it appears that the underlying VSCode Extension for Azure Pipelines should support deprecation in a way that sidesteps all of the issues you've raised (as I understand them).
Am I missing something here?


Cannot use angular-sails. Just got legacy_get error message

I got these error messages on socket.io-client latest version (1.0.6) & sails 0.10-rc8
TypeError: Property 'legacy_get' of object #<Socket> is not a function
    at Socket.socket.(anonymous function) [as get] (http://localhost:3000/angular-sails/dist/angular-sails.js:55:51)
    at http://localhost:3000/product/product-controller.js:23:14
    at new <anonymous> (http://localhost:3000/product/product-controller.js:36:6)
    at invoke (http://localhost:3000/angular/angular.js:3917:17)
    at Object.instantiate (http://localhost:3000/angular/angular.js:3928:23)
    at http://localhost:3000/angular/angular.js:7216:28
    at http://localhost:3000/angular-ui-router/release/angular-ui-router.js:2797:28
    at nodeLinkFn (http://localhost:3000/angular/angular.js:6648:13)
    at compositeLinkFn (http://localhost:3000/angular/angular.js:6039:13)
    at publicLinkFn (http://localhost:3000/angular/angular.js:5934:30)
 angular.js:9959
XMLHttpRequest cannot load http://<IP_ADDRESS>:1337/socket.io/?EIO=2&transport=polling&t=1404913877808-0. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. (index):1
XMLHttpRequest cannot load http://<IP_ADDRESS>:1337/socket.io/?EIO=2&transport=polling&t=1404913879111-1. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access.
XMLHttpRequest cannot load http://<IP_ADDRESS>:1337/socket.io/?EIO=2&transport=polling&t=1404913877808-2. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. (index):1
XMLHttpRequest cannot load http://<IP_ADDRESS>:1337/socket.io/?EIO=2&transport=polling&t=1404913879111-3. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access.
...loop on same message error...

if I use socket.io-client version 0.9.16, I only get 1 error message
TypeError: Property 'legacy_get' of object #<SocketNamespace> is not a function
    at SocketNamespace.socket.(anonymous function) [as get] (http://localhost:3000/angular-sails/dist/angular-sails.js:55:51)
    at http://localhost:3000/product/product-controller.js:23:14
    at new <anonymous> (http://localhost:3000/product/product-controller.js:36:6)
    at invoke (http://localhost:3000/angular/angular.js:3917:17)
    at Object.instantiate (http://localhost:3000/angular/angular.js:3928:23)
    at http://localhost:3000/angular/angular.js:7216:28
    at http://localhost:3000/angular-ui-router/release/angular-ui-router.js:2797:28
    at nodeLinkFn (http://localhost:3000/angular/angular.js:6648:13)
    at compositeLinkFn (http://localhost:3000/angular/angular.js:6039:13)
    at publicLinkFn (http://localhost:3000/angular/angular.js:5934:30)

Here is my controller:
angular.module('anystore.product').controller('ProductCtrl', [
    '$scope',
    '$log',
    '$sails',
  function ($scope, $log, $sails) {
    'use strict';

    $scope.products = [];

    (function() {
      $sails.on('connection', function (result) {
        console.log(result);
      });

      $sails.get('/asas')
        .success(function (data) {
          $scope.products = data;
        })
        .error(function (data) {
          $log('error: ' + data);
        });

      $sails.on('message', function (message) {
        if (message.verb === 'create') {
          $scope.products.push(message.data);
        }
      });
    }());
  }
]);

This may be a compatibility issue with sails.io.js and sailsjs.  What version of sailsjs are you using and what version of sails.io.js are you using?
Its also worth noting that the distributed version of sails.io.js comes with socket.io-client.

Closing this issue as it is not active.  Try the latest release and if you are still experiencing this issue, please re-open it.


Code chokes on bunyan

VSCode Version: Code 1.13.1 (379d2efb5539b09112c793d3d9a413017d736f89, 2017-06-14T18:21:47.485Z)
OS Version: Windows_NT ia32 10.0.15063
Extensions:

Extension
Author
Version

vscode-eslint
dbaeumer
1.2.11

pgsql
doublefint
0.0.8

EditorConfig
EditorConfig
0.9.3

JSDocTagComplete
HookyQR
0.0.2

vscode-esformatter
howardzuo
1.5.2

output-colorizer
IBM
0.1.2

vscode-puglint
mrmlnc
2.3.0

Steps to Reproduce:
When I open https://github.com/trentm/node-bunyan/blob/13c86f1d15c192f7b4f73c0cbef18f37606d81ea/lib/bunyan.js Code will freeze for about 1 minute.
I have this file in my project tree and it is part of a stack trace. I navigate to the file by clicking a link that is located in the Debug Console panel.

@oliversalzburg do you see the freeze when selecting the file in the VS Code explorer (instead of clicking on a link in Debug Console)?

@weinand Interestingly, when I navigate to the file in the explorer panel and open it, Code doesn't freeze.
When I Ctrl+P and select the file, Code freezes. However, something is a bit weird here:

The project I have currently open lives in C:\Users\OliverSalzburg\FairManager Projects\core-dms. So the two bunyan.js files should be identical. However, when I open the top one, Code does not freeze. When I open the bottom one, Code freezes.

@oliversalzburg thanks for this info.
The second bunyan.js in the QuickPick is probably the one opened from the debug console. It was not recognized as a workspace file, so that's the reason why it got an absolute path.
It would be great if you could temporarily replace the space character in "FairManager Projects" by an underscore (or any other character) and see whether this makes a difference. I suspect that the space is the problem. But this is just a wild speculation...
@michelkaporin does this ring a bell with you? You worked on the link detection lately, correct?

I left work for the day and will have to verify that tomorrow.
However, I tried to repro the issue at home and was not able to. I have the identical project structure here. No matter how I open bunyan.js, no freeze. I was not able to create a scenario where I would get the path in the Debug Console though. In case that actually is relevant to the issue.
I also tried to open other files from the bunyan project and other dependency's files, both at work and on my home workstation. None of those caused any freezes.

Alright. I was able to repro the issue at home. It is really the link in the debug console that causes the behavior.
process.stdout.write( "at this.works (C:\\Users\\Oliver\\FairManager Projects\\core-dms\\node_modules\\bunyan\\lib\\bunyan.js:1:1)\n" );
process.stdout.write( "at this.will.freeze (C:\\\\Users\\\\Oliver\\\\FairManager Projects\\\\core-dms\\\\node_modules\\\\bunyan\\\\lib\\\\bunyan.js:1:1)\n" );

I didn't try to simplify the path further. But I assume the double-backslash is to blame.

Also verified that it is still present in 1.14.0

Seems like an issue with the way link is opened. I am calling editorService.openEditor() for that, might be that I am passing wrong arguments or should migrate detector to fit multi-root. I will get back once I looked into it.

Too old. Closing.


SpreadsheetContextMenuItem.disabled(true)

Used to disable the HistoryToken anchor behind the menu item.

Closed by #2020


Select backend from web GUI

#25, #41

Added an "advanced options" toggle that exposes selecting the backend:


Use Debian Bookworm as base

Hi!
Due to a third-party dependency, a software I work on needs at least Debian Bookworm to compile correctly (C++ stdlib fails to link otherwise).
Is there a way I could run goreleaser-cross on Bookworm?
Thanks!

I'm running into a very similar issue! This cpp reference is undefined: std::__throw_bad_array_new_length()
@troian would it be possible to bump bullseye to bookworm here? I'm copying & editing the various dockerfiles to give it a try and see if it solves the issue

@gsora you have to use sysroot for that

@troian I tried to create a new image derived from your (bullseye) image but copying a sysroot from a newer (bookworm) debian:
FROM debian:bookworm as debian-latest

RUN \
    set -x; \
    echo "Starting image build for Debian" \
 && apt-get update \
 && apt-get install --no-install-recommends -y -q \
        wget \
        xz-utils \
        cmake \
        openssl \
        autoconf \
        automake \
        build-essential \
        gcc \
        g++

FROM ghcr.io/goreleaser/goreleaser-cross:v1.21.5

ENV CGO_ENABLED=1

RUN mkdir -p /sysroot/linux/amd64-latest

COPY --from=debian-latest /lib /sysroot/linux/amd64-latest/lib
COPY --from=debian-latest /lib64 /sysroot/linux/amd64-latest/lib64
COPY --from=debian-latest /usr /sysroot/linux/amd64-latest/usr
COPY --from=debian-latest /bin /sysroot/linux/amd64-latest/bin

here's the goreleaser environment I'm using:
builds:
- env:
    - PKG_CONFIG_SYSROOT_DIR=/sysroot/linux/amd64-latest
    - PKG_CONFIG_PATH=/sysroot/linux/amd64-latest/usr/local/lib/pkgconfig
    - CC=/sysroot/linux/amd64-latest/usr/bin/gcc
    - CXX=/sysroot/linux/amd64-latest/usr/bin/g++

still something's off, I need to figure out why /sysroot/linux/amd64-latest/usr/bin/gcc is using the host's libc:
# runtime/cgo
/sysroot/linux/amd64-latest/usr/bin/gcc: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.35' not fo
und (required by /sysroot/linux/amd64-latest/usr/bin/gcc)
/sysroot/linux/amd64-latest/usr/bin/gcc: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not fo
und (required by /sysroot/linux/amd64-latest/usr/bin/gcc)
/sysroot/linux/amd64-latest/usr/bin/gcc: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not fo
und (required by /sysroot/linux/amd64-latest/usr/bin/gcc)
/sysroot/linux/amd64-latest/usr/bin/gcc: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not fo
und (required by /sysroot/linux/amd64-latest/usr/bin/gcc)

is this the general direction you were suggesting?

My suggestion would be to keep sysroot lets say as git repo and mount it during build process. Also, there is no need to install compiler into sysroot. Tho you can, it's main purpose here to provide libraries and headers.
Take a look at https://github.com/goreleaser/goreleaser-cross-example

@troian the README says several platforms (darwin x86/arm, linux x86, etc) were verified. Can you share the repos used for verification? The example sysroot repo goreleaser/goreleaser-cross-example-sysroot is missing arm Darwin, Windows, etc.
Then I could just mount that repo/those repos, correct?


Cannot use exported configuration

I would expect to be able to serve
import pandas as pd
import panel as pn

from panel_gwalker import GraphicWalker

pn.extension(sizing_mode="stretch_width")

LOGO = "https://kanaries.net/_next/static/media/kanaries-logo.0a9eb041.png"

df = pd.read_csv(
    "https://datasets.holoviz.org/windturbines/v1/windturbines.csv.gz", nrows=10000
)

walker = GraphicWalker(df, sizing_mode="stretch_both", styles={"border": "1px solid yellow"})

pn.template.FastListTemplate(
    logo=LOGO,
    title="Panel Graphic Walker",
    main=[walker],
    main_layout=None,
).servable()

Configure the walker:

Export the configuration

and use it
import pandas as pd
import panel as pn

from panel_gwalker import GraphicWalker

pn.extension(sizing_mode="stretch_width")

LOGO = "https://kanaries.net/_next/static/media/kanaries-logo.0a9eb041.png"

df = pd.read_csv(
    "https://datasets.holoviz.org/windturbines/v1/windturbines.csv.gz", nrows=10000
)

config = {"config":{"defaultAggregated":True,"geoms":["auto"],"coordSystem":"generic","limit":-1},"encodings":{"dimensions":[{"fid":"faa_ors","name":"faa_ors","basename":"faa_ors","semanticType":"nominal","analyticType":"dimension"},{"fid":"faa_asn","name":"faa_asn","basename":"faa_asn","semanticType":"nominal","analyticType":"dimension"},{"fid":"t_state","name":"t_state","basename":"t_state","semanticType":"nominal","analyticType":"dimension"},{"fid":"t_county","name":"t_county","basename":"t_county","semanticType":"nominal","analyticType":"dimension"},{"fid":"p_name","name":"p_name","basename":"p_name","semanticType":"nominal","analyticType":"dimension"},{"fid":"t_manu","name":"t_manu","basename":"t_manu","semanticType":"nominal","analyticType":"dimension"},{"fid":"t_model","name":"t_model","basename":"t_model","semanticType":"nominal","analyticType":"dimension"},{"fid":"retrofit","name":"retrofit","basename":"retrofit","semanticType":"nominal","analyticType":"dimension"},{"fid":"t_conf_atr","name":"t_conf_atr","basename":"t_conf_atr","semanticType":"ordinal","analyticType":"dimension"},{"fid":"t_conf_loc","name":"t_conf_loc","basename":"t_conf_loc","semanticType":"ordinal","analyticType":"dimension"},{"fid":"t_img_date","name":"t_img_date","basename":"t_img_date","semanticType":"nominal","analyticType":"dimension"},{"fid":"t_img_srce","name":"t_img_srce","basename":"t_img_srce","semanticType":"nominal","analyticType":"dimension"},{"fid":"gw_mea_key_fid","name":"Measure names","analyticType":"dimension","semanticType":"nominal"}],"measures":[{"fid":"case_id","name":"case_id","basename":"case_id","analyticType":"measure","semanticType":"quantitative","aggName":"sum"},{"fid":"usgs_pr_id","name":"usgs_pr_id","basename":"usgs_pr_id","analyticType":"measure","semanticType":"quantitative","aggName":"sum"},{"fid":"eia_id","name":"eia_id","basename":"eia_id","analyticType":"measure","semanticType":"quantitative","aggName":"sum"},{"fid":"t_fips","name":"t_fips","basename":"t_fips","analyticType":"measure","semanticType":"quantitative","aggName":"sum"},{"fid":"p_year","name":"p_year","basename":"p_year","analyticType":"measure","semanticType":"quantitative","aggName":"sum"},{"fid":"p_tnum","name":"p_tnum","basename":"p_tnum","analyticType":"measure","semanticType":"quantitative","aggName":"sum"},{"fid":"p_cap","name":"p_cap","basename":"p_cap","analyticType":"measure","semanticType":"quantitative","aggName":"sum"},{"fid":"t_cap","name":"t_cap","basename":"t_cap","analyticType":"measure","semanticType":"quantitative","aggName":"sum"},{"fid":"t_hh","name":"t_hh","basename":"t_hh","analyticType":"measure","semanticType":"quantitative","aggName":"sum"},{"fid":"t_rd","name":"t_rd","basename":"t_rd","analyticType":"measure","semanticType":"quantitative","aggName":"sum"},{"fid":"t_rsa","name":"t_rsa","basename":"t_rsa","analyticType":"measure","semanticType":"quantitative","aggName":"sum"},{"fid":"t_ttlh","name":"t_ttlh","basename":"t_ttlh","analyticType":"measure","semanticType":"quantitative","aggName":"sum"},{"fid":"retrofit_year","name":"retrofit_year","basename":"retrofit_year","analyticType":"measure","semanticType":"ordinal","aggName":"sum"},{"fid":"xlong","name":"xlong","basename":"xlong","analyticType":"measure","semanticType":"quantitative","aggName":"sum"},{"fid":"ylat","name":"ylat","basename":"ylat","analyticType":"measure","semanticType":"quantitative","aggName":"sum"},{"fid":"easting","name":"easting","basename":"easting","analyticType":"measure","semanticType":"quantitative","aggName":"sum"},{"fid":"northing","name":"northing","basename":"northing","analyticType":"measure","semanticType":"quantitative","aggName":"sum"},{"fid":"gw_count_fid","name":"Row count","analyticType":"measure","semanticType":"quantitative","aggName":"sum","computed":True,"expression":{"op":"one","params":[],"as":"gw_count_fid"}},{"fid":"gw_mea_val_fid","name":"Measure values","analyticType":"measure","semanticType":"quantitative","aggName":"sum"}],"rows":[],"columns":[{"fid":"t_manu","name":"t_manu","basename":"t_manu","semanticType":"nominal","analyticType":"dimension"}],"color":[],"opacity":[],"size":[],"shape":[],"radius":[],"theta":[],"longitude":[],"latitude":[],"geoId":[],"details":[],"filters":[],"text":[]},"layout":{"showActions":False,"showTableSummary":False,"stack":"stack","interactiveScale":False,"zeroScale":True,"size":{"mode":"auto","width":320,"height":200},"format":{},"geoKey":"name","resolve":{"x":False,"y":False,"color":False,"opacity":False,"shape":False,"size":False}},"visId":"gw_wG2i","name":"Chart 1"}

walker = GraphicWalker(df, config=config, sizing_mode="stretch_both", styles={"border": "1px solid yellow"})

pn.template.FastListTemplate(
    logo=LOGO,
    title="Panel Graphic Walker",
    main=[walker],
    main_layout=None,
).servable()

But it does not seem to work as I don't get the configuration exported:

Also related to https://github.com/philippjfr/panel-graphic-walker/issues/4.

PygWalker allows saving and using a spec:
https://github.com/Kanaries/pygwalker#better-practices

Done


Lambda Invocation failure using container image with error EROFS

All my dependencies are already part of my container image i am not sure why its still installing dependencies when running function.
LOGS:
START RequestId: 2a6f3ea1-9038-441d-8fe4-29b8de100728 Version: $LATEST
2022-09-18T10:34:36.729Z	undefined	INFO	Executing 'index.handler' in function directory '/function'
npm ERR! code EROFS
npm ERR! syscall mkdir
npm ERR! path /home/sbx_user1051
npm ERR! errno -30
npm ERR! rofs EROFS: read-only file system, mkdir '/home/sbx_user1051'
npm ERR! rofs Often virtualized file systems, or other file systems
npm ERR! rofs that don't support symlinks, give this error.
npm ERR! Log files were not written due to an error writing to the directory: /home/sbx_user1051/.npm/_logs
npm ERR! You can rerun the command with --loglevel=verbose to see the logs in your terminal

Solution
Add below line in Dockerfile
ENV HOME="/tmp"


Determine break_loop_at_end 1 frame earlier using prediction by delta

Fixes https://github.com/godotengine/godot/issues/94767
Fixes https://github.com/godotengine/godot/issues/94768

Make the break_loop_at_end decision one frame earlier.
Currently, break_loop_at_end returned remain 0 "after looped", using the is_just_looped flag, resulting in a slight delay, causing problems such as unintended processing of the first frame.
Instead of the is_just_looped flag, the will_end flag should be managed by a delta-based prediction. Using that, only if a loop is set up, the end frame of the animation (since it would be identical to the first frame as described in https://github.com/godotengine/godot/issues/94768#issuecomment-2253498704) would be exited without processing.
Also fixed lack of consideration of delta when searching for transitions.

Thanks!


chore: enable dependabot for Snapshot packages

Summary
Right now, when ever a package is updated, we have to update it manually, with dependabot it will create a PR automatically on release of new version

Only for @snapshot-labs/* packages so we don't get involved in other updates
Same as here https://github.com/snapshot-labs/snapshot-sequencer/blob/master/.github/dependabot.yml also should work with monorepos

I'm not in love with dependabot, create ton of PR, do we really need this? When do we need to update package for SX actually?

I'm not in love with dependabot, create ton of PR, do we really need this? When do we need to update package for SX actually?

To update our config packages https://github.com/snapshot-labs/config?tab=readme-ov-file#snapshot-labs-configs

create ton of PR

With this settings, it should create PRs only for @snapshot-labs/* packages  and only in a single PR

Did you tested if that works with our monorepo setup?

I'll let @Sekhmet decide if we need this or not

Did you tested if that works with our monorepo setup?

Yep, someone suggested that it should work https://github.com/dependabot/dependabot-core/issues/4993#issuecomment-1289133027

hmm actually we have @snapshot-labs/checkpoint not sure if we want to do them in single PR 😄

It will create a single PR like this https://github.com/ChaituVR/sx-monorepo/pull/6
can create a separate group from checkpoint and lock if required

hmm actually we also have @snapshot-labs/checkpoint not sure if we want to update it in single PR with eslint 😄

How does dependabot work? Will it bump only compatible changes (this shouldn't bump checkpoint as we are at .patch builds so all should be considered breaking).

Looks like .patch are considered compatible 😆 Let's exclude checkpoint, we can keep the rest as those shouldn't be non-obviously breaking (like configs), lock should more or less follow semver.

Ignoring checkpoint for now, we may have manually update it,
Dependabot will create single PR like this https://github.com/ChaituVR/sx-monorepo/pull/2


Clean up the mixer/test directory

What this PR does / why we need it:
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #
Special notes for your reviewer:
Release note:

@geeknoid: Adding do-not-merge/release-note-label-needed because the release note process has not been followed.

One of the following labels is required "release-note", "release-note-action-required", or "release-note-none".
Please see: https://github.com/kubernetes/community/blob/master/contributors/devel/pull-requests.md#write-release-notes-if-needed.
Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@geeknoid: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-presubmit.sh
38b6a981ec2493d52b32c4161ef692403e22ac53
link
/test istio-presubmit

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/lgtm

@ayj @andraxylia @guptasu @ldemailly
This is currently claiming a build failure and tells me to run scripts/generate-protos.sh to fix it. Several issues:

My build worked fine locally. I've now wasted time because of generate protos not being up to date.

There is no scripts/generate-protos.sh. It's bin/generate-protos.sh

Running bin/generate-protos.sh on my Mac results in:

~/go/src/istio.io/istio$ bin/generate-protos.sh
INFO: Found 416 targets...
ERROR: missing input file '//pilot/platform/kube:config'.
ERROR: /Users/mtail/go/src/istio.io/istio/pilot/platform/kube/BUILD:34:1: //pilot/platform/kube:kubeconfig: missing input file '//pilot/platform/kube:config'.
ERROR: /Users/mtail/go/src/istio.io/istio/pilot/platform/kube/BUILD:34:1 1 input file(s) do not exist.
So at this point, I can't check in this change due to proto non-sense.

Kuat helped me figure out why the script was failing... Maybe I'll be able to commit my changes now.

/lgtm

@geeknoid: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-presubmit.sh
d6ce27d2c9ae914fbe4366caa53902a9af311b32
link
/test istio-presubmit

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@geeknoid: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/istio-presubmit.sh
1cf8424abd5f54045e907b2f600cd24e24e87858
link
/test istio-presubmit

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@geeknoid what was the reason for the scripts/generate-protos.sh failing for your PR ? Was it the out of date error message since @kyessenov, I suppose, has renamed the file ?

script/generate-protos.sh was failing because I invoked it too late in the presubmit script after some other builds and tests ran and generated their own intermediate output files.

@ayj I see, so fixed now ?

It's fixed in the sense that I commented out the call to scripts/generate-proto.sh and corresponding git status check to unblock PRs over the holiday weekend. @jmuk seems to be hitting a similar issue with his PR to verify formatting/buildifier (see https://github.com/istio/istio/pull/1818)

can we put back the check now ?


feat: add hyphen bridge

Adding logo uri and few other information about hyphen bridge

I have added hyphen along with other bridges in a second PR. I included your information, please use this branch: https://github.com/lifinance/types/pull/26


PloverDB reportedly broken in ITRB-prod and ITRB-dev

Per @edeutsch, PloverDB is current not working in ITRB-prod and ITRB-dev.

Using the pytest suite in the main branch, PloverDB tests against endpoint https://kg2cploverdb.ci.transltr.io seem to be working currently:
pytest -v test/test.py --endpoint https://kg2cploverdb.ci.transltr.io
============================= test session starts ==============================
platform darwin -- Python 3.11.4, pytest-7.4.0, pluggy-1.2.0 -- /Users/sramsey/Documents/Work/Proj/PloverDB/issue-19/venv/bin/python3.11
cachedir: .pytest_cache
rootdir: /Users/sramsey/Documents/Work/Proj/PloverDB/issue-19/PloverDB
collected 32 items

test/test.py::test_1 PASSED                                              [  3%]
test/test.py::test_2 PASSED                                              [  6%]
test/test.py::test_3 PASSED                                              [  9%]
test/test.py::test_4 PASSED                                              [ 12%]
test/test.py::test_5 PASSED                                              [ 15%]
test/test.py::test_6 PASSED                                                    [ 18%]
test/test.py::test_7 PASSED                                                    [ 21%]
test/test.py::test_8 PASSED                                                    [ 25%]
test/test.py::test_9 PASSED                                                    [ 28%]
test/test.py::test_10 PASSED                                                   [ 31%]
test/test.py::test_11 PASSED                                                   [ 34%]
test/test.py::test_12 PASSED                                                   [ 37%]
test/test.py::test_13 PASSED                                                   [ 40%]
test/test.py::test_14 PASSED                                                   [ 43%]
test/test.py::test_15 PASSED                                                   [ 46%]
test/test.py::test_16 PASSED                                                   [ 50%]
test/test.py::test_17 PASSED                                                   [ 53%]
test/test.py::test_18 PASSED                                                   [ 56%]
test/test.py::test_19 PASSED                                                   [ 59%]
test/test.py::test_20 PASSED                                                   [ 62%]
test/test.py::test_21 PASSED                                                   [ 65%]
test/test.py::test_22 PASSED                                                   [ 68%]
test/test.py::test_23 PASSED                                                   [ 71%]
test/test.py::test_24 PASSED                                                   [ 75%]
test/test.py::test_25 PASSED                                                   [ 78%]
test/test.py::test_26 PASSED                                                   [ 81%]
test/test.py::test_27 PASSED                                                   [ 84%]
test/test.py::test_28 PASSED                                                   [ 87%]
test/test.py::test_29 PASSED                                                   [ 90%]
test/test.py::test_30 PASSED                                                   [ 93%]
test/test.py::test_31 PASSED                                                   [ 96%]
test/test.py::test_version PASSED                                              [100%]

================================ 32 passed in 39.02s =================================
(venv) sramsey-laptop:PloverDB sramsey$

Per instructions from @amykglen I am going to merge main into itrb-test.

Per @edeutsch, PloverDB is current not working in ITRB-prod and ITRB-dev.

ITRB-ci and ITRB-test are fine. It is ITRB-prod that is broken.

Although merging main into itrb-test is still a fine idea.
But it's really into production that is the key here

Closing this issue out since my understanding is that now PloverDB is working in ITRB CI, test, and prod.


Finalizer is not understood in this context

[Enter feedback here]
Finalizer is not understood in this context, so please include a link to it.
thanks!

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

ID: 81a1763d-01e3-0e82-f482-861d54ecb13d
Version Independent ID: 3fae0421-acf9-6522-1473-5e0f8627cb30
Content: Using Exceptions
Content Source: docs/csharp/fundamentals/exceptions/using-exceptions.md
Product: dotnet-csharp
Technology: csharp-fundamentals
GitHub Login: @BillWagner
Microsoft Alias: wiwagn

Thanks @nagualdev
I opened a PR to link the text at the bottom of the article to the article on finalizers.


[@sigma/layer-leaflet] Adding leaflet map in graph background

Adding leaflet map in graph background

Update the sigma's graph with the projected lat/lng coordinates
Sync the sigma & leaflet view box
Add limits on sigma zoom ratio to not be outside the leaflet capabilities

What can be enhance :

adding animation on flyToBound to have smooth transition. But it's not so simple. I'm assuming there is some bounds attraction at the end of the animation. Moreover, it's not easy to know when the animation has finished. This is needed in some cases (like the recomputation of ratio bounds on a resize).
be able to center the map/graph on a longitude (and if we can do that, it can be cool to test it when panning)

Manually reviewed, rebased and merged :+1:.


C++ compilation of rule '//tensorflow/core/kernels:mkl_aggregate_ops' failed

Environment
Intel MKL-DNN includes hardware-specific optimizations and may behave
differently on depending on the compiler and build environment. Include
the following information to help reproduce the issue:

CPU make and model (try lscpu; if your lscpu does not list CPU flags,
try running cat /proc/cpuinfo | grep flags | sort -u)
[bduser@merlin-param01 ~]$ lscpu
Architecture:          x86_64
CPU op-mode(s):        32-bit, 64-bit
Byte Order:            Little Endian
CPU(s):                112
On-line CPU(s) list:   0-111
Thread(s) per core:    2
Core(s) per socket:    28
Socket(s):             2
NUMA node(s):          2
Vendor ID:             GenuineIntel
CPU family:            6
Model:                 85
Model name:            Intel(R) Xeon(R) Platinum 8180 CPU @ 2.50GHz
Stepping:              4
CPU MHz:               1000.366
BogoMIPS:              5005.94
Virtualization:        VT-x
L1d cache:             32K
L1i cache:             32K
L2 cache:              1024K
L3 cache:              39424K
NUMA node0 CPU(s):     0-27,56-83
NUMA node1 CPU(s):     28-55,84-111
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch epb cat_l3 cdp_l3 intel_ppin intel_pt mba tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm cqm mpx rdt_a avx512f avx512dq rdseed adx smap clflushopt clwb avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 cqm_llc cqm_occup_llc cqm_mbm_total cqm_mbm_local dtherm arat pln pts hwp hwp_act_window hwp_epp hwp_pkg_req pku ospke

OS version (uname -a)
[bduser@merlin-param01 ~]$ uname -a
Linux merlin-param01.merlin.cluster.bds 3.10.0-862.2.3.el7.x86_64 #1 SMP Wed May 9 18:05:47 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

Compiler version (gcc --version)
[bduser@merlin-param01 ~]$ gcc --version
gcc (GCC) 7.2.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

MKLROOT value (echo MKLROOT=$MKLROOT)
[bduser@merlin-param01 ~]$ echo MKLROOT=$MKLROOT
MKLROOT=

CMake version (cmake --version)
[bduser@merlin-param01 ~]$ cmake --version
cmake3 version 3.11.2

CMake suite maintained and supported by Kitware (kitware.com/cmake).

CMake output log
git hash (git log -1 --format=%H)
[bduser@merlin-param01 tensorflow]$ git log -1 --format=%H
88ab8b0bd6ca4dba10a5ed8852e23eacfb0f888e

Steps to reproduce
Please check that the issue is reproducible with the latest revision on
master. Include all the steps to reproduce the issue. A short C/C++ program
or modified unit tests demonstrating the issue will greatly help
with the investigation.
Trying to build from Source on CentOS 7.5 (SKL 8180). I get the following error when trying to build:
     int dims;
         ^~~~
ERROR: /home/bduser/tensorflow/tensorflow/core/kernels/BUILD:6287:1: C++ compilation of rule '//tensorflow/core/kernels:mkl_aggregate_ops' failed (Exit 1)
In file included from tensorflow/core/kernels/mkl_aggregate_ops.cc:35:0:
./tensorflow/core/util/mkl_util.h: In member function 'void tensorflow::FactoryKeyCreator::Append(tensorflow::StringPiece)':
./tensorflow/core/util/mkl_util.h:2057:19: error: 'class tensorflow::StringPiece' has no member named 'ToString'
     key_.append(s.ToString());
                   ^~~~~~~~
tensorflow/core/kernels/mkl_aggregate_ops.cc: In instantiation of 'void tensorflow::MklAddNOp<Device, T>::Compute(tensorflow::OpKernelContext*) [with Device = Eigen::ThreadPoolDevice; T = float]':
tensorflow/core/kernels/mkl_aggregate_ops.cc:518:1:   required from here
tensorflow/core/kernels/mkl_aggregate_ops.cc:451:26: warning: 'mkldnn::sum::primitive_desc::primitive_desc(const mkldnn::memory::desc&, std::vector<double>, std::vector<mkldnn::memory::primitive_desc>)' is deprecated [-Wdeprecated-declarations]
       auto sum_pd = sum::primitive_desc(dst.GetUsrMemDesc(), coeff, srcs_pd);
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from tensorflow/core/kernels/mkl_aggregate_ops.cc:28:0:
external/mkl_dnn/include/mkldnn.hpp:1117:9: note: declared here
         primitive_desc(const memory::desc &output, std::vector<double> scale,
         ^~~~~~~~~~~~~~
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 150.759s, Critical Path: 66.94s
INFO: 4647 processes: 4647 local.

Expected behavior
Should build.

Hi @tonyreina,
I would suggest to file a bug against TensorFlow, rather than Intel MKL-DNN. The bug has nothing to do with the library but is about the integration to TensorFlow.
In file included from tensorflow/core/kernels/mkl_aggregate_ops.cc:35:0:
./tensorflow/core/util/mkl_util.h: In member function 'void tensorflow::FactoryKeyCreator::Append(tensorflow::StringPiece)':
./tensorflow/core/util/mkl_util.h:2057:19: error: 'class tensorflow::StringPiece' has no member named 'ToString'
     key_.append(s.ToString());
                   ^~~~~~~~

Many thanks!


Do we have a flag for enabling ssl-passthrough for a mapping in ambassador CR or annotations ?

I am currently using an ingress.yaml in my application which i am trying to replace with ambassador.But ingress.yaml support ssl-passthrough by this annotation nginx.ingress.kubernetes.io/ssl-passthrough: "true"
I couldn't find anything like this in ambassador documentations .
Is it supported in Ambassador  ?

Yes, you can use a TCPMapping. Please do not use GitHub for support and join the Slack.

I am currently using an ingress.yaml in my application which i am trying to replace with ambassador.But ingress.yaml support ssl-passthrough by this annotation nginx.ingress.kubernetes.io/ssl-passthrough: "true" I couldn't find anything like this in ambassador documentations . Is it supported in Ambassador ?

Hi @avinashkumar1289 , did you by any chance got the solution how to use TCP Mapping for ssl-passthrough?

You can do this with a TCP mapping.  For purposes of this discussion you can consider TLS and SSL as equivalents.  Our docs talk about how to not terminate TLS with Emissary - those would be the relevant points for allowing SSL-passthrough.  Please also check the notes there about the Listener and TLS termination because these need to be in agreement to work.


vscode Completion API question

when CompletionItem contains ., the character after the first dot will let the completions disappear, I already set CompletionItem.filterText, and I don't know what have I missed

EDIT: I also set the range to new Range(position.line, at_index + 1, position.line, position.character);, at_index is @ position, didn't work either

hm... do you use . as a trigger characters? It might be that completions get re-triggered when typing that second .

hm... do you use . as a trigger characters? It might be that completions get re-triggered when typing that second .

no, I didn't, trigger chars are @ and /

This seems to work for me using the provider below. Can you tweak my snippet so that it reproduces what you see?

	vscode.languages.registerCompletionItemProvider('fooLang', new class implements vscode.CompletionItemProvider {
		provideCompletionItems(document: vscode.TextDocument, position: vscode.Position, token: vscode.CancellationToken, context: vscode.CompletionContext): vscode.ProviderResult<vscode.CompletionItem[] | vscode.CompletionList<vscode.CompletionItem>> {
			return [
				new vscode.CompletionItem('0.67.0'),
				new vscode.CompletionItem('0.61.0'),
				new vscode.CompletionItem('0.62.0'),
				new vscode.CompletionItem('0.63.0'),
				new vscode.CompletionItem('0.64.0'),
				new vscode.CompletionItem('0.65.0'),
			]
		}
	})

Maybe it's vscode built-in ts completion plugin?

And I removed all the other code, still happened. So I think it's definitely an issue with the vscode built-in ts/js plugin

Thanks for the extra info... The problem is that . separates words for JS and TS (and likely others) and that when typing the 6 in 0.6 a new word starts and for us that is a reason to cancel a completion session... Instead we should first check if there are still matching suggestions and only then cancel suggest.

Thanks for the extra info... The problem is that . separates words for JS and TS (and likely others) and that when typing the 6 in 0.6 a new word starts and for us that is a reason to cancel a completion session... Instead we should first check if there are still matching suggestions and only then cancel suggest.

@jrieken I found an interesting one, the . in deno.land will not cancel the completion session

It's not the dot that cancels but what you type afterwards and for us it matters if that's a letter or a number

It's not the dot that cancels but what you type afterwards and for us it matters if that's a letter or a number

Oh, I see. you mean only a number following the . will cancel the completion session, that makes sense

@CGQAQ Did you get a chance to test the fix?

Marking this as verified.
However, when I press backspace too many times (e.g. '0.61.0' to '0.') autosuggest turns off and then I have to trigger it again. @jrieken is this expected behaviour, or should I file a new issue?

/verified
Get Outlook for Androidhttps://aka.ms/ghei36

From: Raymond Zhao<EMAIL_ADDRESS>Sent: Wednesday, December 9, 2020 3:17:14 AM
To: microsoft/vscode<EMAIL_ADDRESS>Cc: CGQAQ<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [microsoft/vscode] vscode Completion API question (#106090)
Marking this as verified.
However, when I press backspace too many times (e.g. '0.61.0' to '0.') autosuggest turns off and then I have to trigger it again. @jriekenhttps://github.com/jrieken is this expected behaviour, or should I file a new issue?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/microsoft/vscode/issues/106090#issuecomment-740883943, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ADZSVZ5T2547NF7GCOQGU33STZ3TVANCNFSM4QXNAHYA.


Compiling candle-examples v0.1.0 error

warning: some crates are on edition 2021 which defaults to resolver = "2", but virtual workspaces default to resolver = "1"
note: to keep the current resolver, specify workspace.resolver = "1" in the workspace root's manifest
note: to use the edition 2021 resolver, specify workspace.resolver = "2" in the workspace root's manifest
Compiling candle-examples v0.1.0 (~/github.com/huggingface/candle/candle-examples)
error[E0308]: mismatched types
--> candle-examples/examples/whisper/main.rs:174:21
|
174 |             .decode(tokens.clone(), true)
|              ------ ^^^^^^^^^^^^^^ expected &[u32], found Vec<u32>
|              |
|              arguments to this method are incorrect
|
= note: expected reference &[u32]
found struct Vec<u32>
note: method defined here
--> ~/.cargo/registry/src/index.crates.io-6f17d22bba15001f/tokenizers-0.13.4/src/tokenizer/mod.rs:814:12
|
814 |     pub fn decode(&self, ids: &[u32], skip_special_tokens: bool) -> Result {
|            ^^^^^^
help: consider borrowing here
|
174 |             .decode(&tokens.clone(), true)
|                     +
For more information about this error, try rustc --explain E0308.
error: could not compile candle-examples (example "whisper") due to previous error

Closing this as we now have released candle 0.1.1 that include the fix.


Building OSS-compatible React Native "Plugins" for Native Libraries

We need help building a generic implementation for native "plugins" as described here: https://github.com/react-native-community/discussions-and-proposals/issues/125
Let's start with iOS for now.

@fkgozali worth keeping this open?

yes, it's a long term direction
On Jun 18, 2021, at 4:17 AM, Lorenzo Sciandra @.***> wrote:

@fkgozalihttps://github.com/fkgozali worth keeping this open?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://github.com/facebook/react-native/issues/24824#issuecomment-863963981, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAILROUUYTLENU7JV3736DDTTMTN5ANCNFSM4HMLKUKQ.


Fix the keyboard tabbing order issue for searchbar in the header

Problem

We are using CSS flex's property to change search bar position in the header on mobile screens. This means that the tabbing order does not change, and when using tab on mobile screen widths, you get a confusing keyboard tabbing order that is different from the visual order of components on the screen.
As noted by @sarayourfriend , this problem should only affect a small subgroup of our users: sighted keyboard users on mobile [or keyboard users who use a narrow screen on desktop].
Description

One idea I had was to move all the complexity to the components of VHeader, and have the header as a simple render function component that would place the VSearchBar either second or last based on isHeaderScrolled value.
Additional context

This issue was raised in #718
Implementation

[ ] 🙋 I would be interested in implementing this feature.

The new header design does not have this issue because the order of the items does not change anymore.


[Android] How To Change An Activity To A Fragment In Android In Order To Create A Drawer.

Proposed title of article
[Android] How To Change An Activity To A Fragment In Android In Order To Create A Drawer
Proposed article introduction
Having worked with C,C++ or java programming languages, you realize that almost every program starts with main() function. Similarly in android, the system starts its program in an activity way by invoking specific call back methods such as Oncreate() call back method.
A fragment is just a modular portion of the user interface within an activity and its ability to be added or removed while the containing activity is running makes it useful in creating a drawer ( a panel that displays navigation options from the left edge of an activity)
In this article, we will develop various android activities, change them to a fragment and also create fragments from the AndroidX Fragment Library and include them in an activity to develop a pathway to create a drawer.
Key takeaways

An understanding of how to create a fragment from the AndroidX Fragment library and include it in an activity
An understanding of how to create an activity in Android and change it to a fragment
Creating a navigation drawer from the fragments in an activity in Android

Article quality
This article will provide in-depth understanding to the readers on Activities and Fragments in Android and how to manipulate them to create a drawer
References
N/A

Thank you for submitting your topic suggestion. There seems to be many articles that already cover this topic. Can you tell me how yours will build upon them and be unique to add value to our readers?

@louisefindlay23  Hello. Looking at a majority of nearly similar content found online, they are not beginner-friendly as a lot of debugging is required when transferring the content of an activity into a fragment. Of course, this article will address this issues as gracefully as possible. It will be so engaging to the readers and adding value to the community.

Thank you for your response and we thank you for submitting your topic. After some careful consideration it struck us that this topic may be a bit over saturated throughout other blog sites and official documentation.
We typically refrain from publishing content that is covered widely on the net or other blogs. As we're more interested in original, practitioner-focused content that takes a deeper dive into programming-centric concepts.
We believe this is the best way for students to build a great portfolio (for potential employers) is by building what does not exist and what can provide the most value.
You are more than welcome to pursue another more in depth topic.


Fix execution times in lxd 3.0.1 and add pipelining support to execute

Fix issue #316 and issue #244
It works (tox and integration tests) with lxd versions 3.0.1 and 2.0.11
Can be tested with this script to view some new features:
from pylxd import Client
import io
import logging

logger = logging.getLogger(__name__)
handler = logging.StreamHandler()
handler.setFormatter(
    logging.Formatter("%(relativeCreated)6d %(threadName)s %(message)s")
)
logger.addHandler(handler)
logger.setLevel(logging.INFO)

c = Client()
cont = c.containers.all()[0]
if cont.status != "Running":
    cont.start(wait=True)

# Stdin demo
logger.info(cont.execute(["cat", "-"], stdin_payload=open(__file__)).stdout)
logger.info(cont.execute(["cat", "-"], stdin_payload="hola"))
logger.info(cont.execute(["cat", "-"], stdin_payload=b"hola"))
logger.info(cont.execute(["cat", "-"], stdin_payload=io.StringIO("hola")))
logger.info(cont.execute(["cat", "-"], stdin_payload=io.BytesIO(b"hola")))

# Stdout demo
def handle_out(msg):
    logger.info(msg)

cont.execute(
    [
        "bash", "-c",
        'while read  c; do echo "$c"; sleep 1; done < /etc/hosts'
    ], stdout_handler=handle_out
)

container.execute is retro-compatible but adds pipeline features. Now you can communicate with your commands via stdin and manage output while command is executing.

Codecov Report

Merging #321 into master will decrease coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff            @@
##           master    #321      +/-   ##
=========================================
- Coverage   96.31%   96.3%   -0.01%
=========================================
  Files          11      11
  Lines         814     812       -2
  Branches      100     100
=========================================
- Hits          784     782       -2
  Misses         10      10
  Partials       20      20

Impacted Files
Coverage Δ

pylxd/models/container.py
91.06% <100%> (-0.08%)
:arrow_down:

Continue to review full report at Codecov.

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

Thanks for putting this together.  However, there seems to be something very odd going on with the PR as it includes a bunch of already committed patches?  Perhaps you need a git fetch/merge and/or rebase from this master to only submit the PR that is relevant to this change?
I'll do some testing with the branch/commit from your repo as well.  Thanks very much.
(Sorry for the delay; I've been on holiday and away).

Rebased

Rebased

Okay, I've tested this in 1604 and 1804 hosts and containers, and everything seems to work great.  Thanks very much for the PR, and sorry for the delay in getting it merged.

Thanks @ajkavanagh what's the tentative release date of this fix?

@ajkavanagh when can we expect this fix to be available in a release?