Option to suppress sending the entire schema back with errors

I'm using Connexion for my REST API spec layer, which in turn relies on jsonschema for validation. It works great.
However, if a required property is missing and jsonschema catches it, it sends back the entire schema as part of the error string. With larger schemas, this is quite costly in terms of transfer time/space, not to mention my poor log files.
Is it feasible to add an option of some kind that can suppress this behaviour?
The code in question appears to be in exceptions.py:
    pschema = pprint.pformat(self.schema, width=72)
    pinstance = pprint.pformat(self.instance, width=72)
    return self.message + textwrap.dedent("""

        Failed validating %r in schema%s:
        %s

        On instance%s:
        %s
        """.rstrip()
    ) % (
        self.validator,
        _utils.format_as_index(list(self.relative_schema_path)[:-1]),
        _utils.indent(pschema),
        _utils.format_as_index(self.relative_path),
        _utils.indent(pinstance),
    )

Hi! Thanks.
So, that option really exists already :) -- I don't recommend generally sending those exceptions anywhere, they're aimed at developers, not really end users. Specific applications should generally catch them and inspect them to turn them into more relevant messages.
Perhaps it'd be useful to hear a bit more about what you have in mind, I'm not at all familiar with connexion or with how it uses jsonschema, but the current "expected" solution here is that whatever is calling jsonschema.validate or the equivalent can freely do:
try:
    jsonschema.validate(...)
except ValidationError as error:
   do_something_with(error.message)

for example, to just pull off the message.
Lemme know what else you have in mind though.

Closing, but feel free to reopen / follow up if you have ideas. Thanks!

Ah, yes -- looks like Connexion isn't using the .message attribute of the exception but using str(exception) instead, giving me the giant response:
def validate_schema(self, data):
    """
    :type schema: dict
    :rtype: flask.Response | None
    """
    if self.is_null_value_valid and is_null(data):
        return None

    try:
        validate(data, self.schema, format_checker=draft4_format_checker)
    except ValidationError as exception:
        logger.error("%s validation error: %s" % (flask.request.url, exception))
        return problem(400, 'Bad Request', str(exception))

    return None

Right-o, I'll take it up with them.  Thanks!  :)


HOTFIX #162 Modificando nome do app de 'dulce' para 'Dulce'

Nesse pull request foi feito:

Pequeno ajuste do nome do aplicativo

Pull Request Test Coverage Report for Build 502

0 of 0 (NaN%) changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 46.341%

Totals

Change from base Build 490:
0.0%

Covered Lines:
78

Relevant Lines:
161

💛  - Coveralls


Get a premium limit for pinning topics in the forum

How do I get a premium limit for securing topics in the forum?

To get a premium limit call the method getPremiumLimit.

Ok. I see methods to find out the limit on pinned chats for the main list and archive. But I can't find how to find out the limit for pinned topics in the forum

Then Premium doesn't affect this limit. There is no way Premium subscription can affect a limit for a supergroup. To get regular limit you can use getOption("pinned_forum_topic_count_max").


documentation on Poly5 functions - s[phiny style

Documentation style example:
"""The paramemter taken in here is the Poly5 file. Output is the
EMG after a bandpass as made here.
:param data_emg_samp: The array in the Poly5 or other sample
:type data_emg_samp: ~numpy.ndarray
:param low_pass: The number to cut off :code:frequenciesabove
:type low_pass: int
:returns: The bandpass filtered EMG sample data
:rtype: ~numpy.ndarray
"""

The documentation style will be google via decision of Dani and Makeda, so this is no longer relevant


Price matrix of shipping method does not work with shipping free

PHP Version: 8.3   | Shopware Version: <IP_ADDRESS>  | Affected area / extension: Platform(Default)

Expected behaviour:
When using price matrix of shipping method, the 2nd cart value rule gets recognized and the price applied
(1 of the products needs to have shipping free activated)
Actual behaviour:
The first cart value rule gets applied, but not the second and following ones
How to reproduce:

create a shipping method with price matrix:

cart value:

1 - 200 € = 5 € shipping cost

200 - x = 0 €

Product A:
150 € (any value below the second condition) && shipping free

Product B:
any value of € (&& not shipping free)

→ 1x Product A and enough of Product B to exceed the 200 € limit
(when shipping free is off, the rule/condition gets applied)

[public] Shopware automated response: This issue is linked to the internal issue: NEXT-39766
[created from NEXT-39766, comment 516313]

I also stumbled upon this sometimes, I think this has been intentionally implemented like this:
https://github.com/shopware/shopware/blob/trunk/src/Core/Checkout/Cart/Delivery/DeliveryCalculator.php#L154
There are maybe some use-cases which want to have it like it is currently implemented, and some which want to include the shipping free items.
Hence to solve it probably a configuration on the shipping method should be added, which includes or excludes the delivery free items.

[public] We have not been able to reproduce this behaviour in the latest version of Shopware with the information available. Please create a new ticket with more information if you think this is a general behaviour. Otherwise, please contact our support team or visit the forum.
[created from NEXT-39766, comment 516877]


Move installer creation logic from VS project to standalone

There is an npm package: https://www.npmjs.com/package/innosetup
This should help the following tasks:

Skip code signing when creating the installer for compliance build (because it doesn't need signing)
Implement target architecture dependent logic

Not doable as of today.


hitSlop added to left icon

this PR is related to: https://github.com/galio-org/galio/issues/91
It basically adds hitSlop support to left navbar icon. hitSlop is something recommended by react-native-community, helps developers to improve user experience. (https://facebook.github.io/react-native/docs/improvingux#make-tappable-areas-larger)
example usage:
<NavBar
    style={styles.navbar}
    right={this.renderRight()}
    leftHitSlop={{ top: 30, bottom: 30, left: 30, right: 30 }}
    leftStyle={{ paddingVertical: -12, flex: 0.3 }}
    leftIconColor={theme.COLORS.WHITE}
    titleStyle={styles.title}
    onLeftPress={this.handleLeftPress}
/>

Hi @zeritte ! Nice job! We'll add this when we merge everything for v0.6 into master! Thanks!


Option to specify a registry image URL

ctlptl CLI does not have the option to provide an image URL for the registry (other than docker.io/libarary/registry).
How can we provide the image registry URL so that it does not pull images from the dockerhub

I'll take a look at adding this.
For now, a couple workarounds:
Pre-pull image
docker pull mirror.gcr.io/library/registry && docker tag mirror.gcr.io/library/registry:2 docker.io/library/registry:2
ctlptl apply -f ...

Use registry mirror
If your machine doesn't have Dockerhub access, I'd highly recommend setting up a registry mirror: https://docs.docker.com/registry/recipes/mirror/#configure-the-docker-daemon


Add helpful files

https://github.com/blog/2111-issue-and-pull-request-templates
The NOTICE file is required for the Apache 2.0 license

In addition, a correct NOTICE file MUST be included in the same directory as the LICENSE file.

LICENSE is actually preferable over LICENSE.txt

CAN THE LICENSE AND NOTICE FILES BE CALLED LICENSE.TXT AND NOTICE.TXT?
This is permitted. However the preference is that the files be called LICENSE and NOTICE.

👍

+1

+1


admin: add a view to manage system roles

add system roles in the admin view
renamed the menu entries for invenio access:
"Access: TYPE"

NEED TO MERGE #131 BEFORE
The tests won't pass until it is merged as it requires the table in the database

tests are passing


Courses Theme- Review functionality

The new courses theme should allow the enrolled members to add their reviews for the courses they have attended.

Will be taken in Roadmap 3

Okay


Sync with the master branch

sync the release-4.10 branch with the master
/hold

Closing in favor of https://github.com/openshift/secondary-scheduler-operator/pull/48


How to make an isomorphic single file node module without Browserify

Proposal of a new wiki content. TypeScript 1.8 can make a isomorphic single file node module without Browserify using a following snippet. It will be a good PR point of TypeScript:
https://gist.github.com/falsandtru/390683f4880aa3e4467a
Sample product:
https://github.com/falsandtru/arch-stream
Overview of changes for switching from Browserify to TypeScript:
https://github.com/falsandtru/arch-stream/compare/v0.0.36...v0.0.40
See arch-stream.csproj, arch-stream.ts, gulpfile.js, and package.json. Others are noises.

@RyanCavanaugh and @vladima, would this be something we want to put out as a best practice?

Design of module system compatibility and interoperability:

Module
Browser
Browserify
Node
AMD

Compatibility
Yes
Yes
Yes
Maybe weak

Interoperability
Both
Both
Both
Maybe weak

Import
window['module']
require('module')
require('module')
define(['module'], ...)

Export
Global variable
Alias mapping
Native
RequireJS

Unsupport the module object in Node(Unsupport export = syntax.).
Browserify requires the mapping of global variables for importing of global objects.
AMD module loader may conflict local module paths such as src/....

How about?

I'm not clear on what that chart is supposed to tell users and why it would be significant to a TypeScript user. Can you elaborate a little bit?

What should I do?

@falsandtru can you elaborate on what the wiki page should be about? what information is needed?

@mhegazy is this pr accepted, or not accepted? Where can I add this content in wiki pages, new page? I don't know that well.

depending on the content. but https://github.com/Microsoft/TypeScript-Handbook would be the right place.

i do not think @DanielRosenwasser or I understand the original request though.


Fixed bad config example in VSCode doc.

Current Behavior
While opening *.go file in VS Code pop-up appears:
unexpected config watchChangedFiles

Expected Behavior
To not display any warning notifications.
Solution
Documentation is flawed here: the correct configuration is watchFileChanges, instead of watchChangedFiles.

@googlebot I signed it!


can't use livedata with apollo android

I had a problem when I've tried to use livedata with apollo android, this's my code
class SignInViewModel : ViewModel() {

    enum class AuthenticationState {
        UNAUTHENTICATED,
        AUTHENTICATED  ,
        INVALID_AUTHENTICATION
    }

    val authenticationState = MutableLiveData<AuthenticationState>()

    init {
        authenticationState.value = AuthenticationState.UNAUTHENTICATED
    }

    fun signIn(email: String, password: String) {
        val signInMutation = SignInMutation(email, password)

        getClient().mutate(signInMutation).enqueue(object : ApolloCall.Callback<SignInMutation.Data>() {
            override fun onResponse(response: Response<SignInMutation.Data>) {
                val token = response.data()?.signIn?.token!!
                Log.i("token", token)
                authenticationState.value = AuthenticationState.AUTHENTICATED

            }

            override fun onFailure(e: ApolloException) {
                Log.i("signIn", e.message, e)
            }

        })
    }
}

and this's the error
E/AndroidRuntime: FATAL EXCEPTION: OkHttp Dispatcher
    Process: com.example.a2cpi_project_app_kotlin, PID: 19554
    kotlin.KotlinNullPointerException
        at com.example.a2cpi_project_app_kotlin.start.signIn.SignInViewModel$signIn$1.onResponse(SignInViewModel.kt:35)
        at com.apollographql.apollo.internal.RealApolloCall$1.onResponse(RealApolloCall.java:243)
        at com.apollographql.apollo.internal.interceptor.ApolloCacheInterceptor$1$1.onResponse(ApolloCacheInterceptor.java:85)
        at com.apollographql.apollo.internal.interceptor.ApolloParseInterceptor$1.onResponse(ApolloParseInterceptor.java:54)
        at com.apollographql.apollo.internal.interceptor.ApolloServerInterceptor$2.onResponse(ApolloServerInterceptor.java:146)
        at okhttp3.RealCall$AsyncCall.execute(RealCall.java:203)
        at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
        at java.lang.Thread.run(Thread.java:784)

when I remove authenticationState.value = AuthenticationState.AUTHENTICATED it work fine

When you enqueue a callback, that callback is dispatched from a background thread. Be careful since you can only LiveData#setValue from the MainThread and you are not respecting that with kotlin's the syntactic sugar for the assignation.
If you'd like to update the value from a background thread you should use the method LiveData#postValue instead.

When you enqueue a callback, that callback is dispatched from a background thread. Be careful since you can only LiveData#setValue from the MainThread and you are not respecting that with kotlin's the syntactic sugar for the assignation.
If you'd like to update the value from a background thread you should use the method LiveData#postValue instead.

Thanks, it solved the problem


chore: typing fa

Codecov Report
Attention: Patch coverage is 0% with 32 lines in your changes missing coverage. Please review.

Project coverage is 6.38%. Comparing base (e3753db) to head (fbd3a50).
Report is 1 commits behind head on main.

Files
Patch %
Lines

midealocal/devices/fa/message.py
0.00%
18 Missing :warning:

midealocal/devices/fa/__init__.py
0.00%
14 Missing :warning:

Additional details and impacted files
@@           Coverage Diff            @@
##            main     #72      +/-   ##
========================================
- Coverage   6.38%   6.38%   -0.01%
========================================
  Files         77      77
  Lines       6605    6608       +3
========================================
  Hits         422     422
- Misses      6183    6186       +3

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


[HYDRAR-206] adding ability to pass on arguments to sparkr.session

This PR adds the ability to pass on arguments from r4ml.session to sparkr.session. This will allow user to set enableHiveSupport = FALSE. BTW, for sparkr.session, the defaults is enableHiveSupport = TRUE.
Developer's Certificate of Origin 1.1
   By making a contribution to this project, I certify that:

   (a) The contribution was created in whole or in part by me and I
       have the right to submit it under the Apache License 2.0; or

   (b) The contribution is based upon previous work that, to the best
       of my knowledge, is covered under an appropriate open source
       license and I have the right under that license to submit that
       work with modifications, whether created in whole or in part
       by me, under the same open source license (unless I am
       permitted to submit under a different license), as indicated
       in the file; or

   (c) The contribution was provided directly to me by some other
       person who certified (a), (b) or (c) and I have not modified
       it.

   (d) I understand and agree that this project and the contribution
       are public and that a record of the contribution (including all
       personal information I submit with it, including my sign-off) is
       maintained indefinitely and may be redistributed consistent with
       this project or the open source license(s) involved.

Build triggered.

Build success.
All unit tests passed.

Build triggered.

Build success.
All unit tests passed.

@adrian555 can we test it just manually starting the session using enableHive... = FALSE and make sure there is not metastore dir created? I think i can't see any other way of doing it
what do you think? please let us know

Build triggered.

I just added another test for enableHiveSupport. The first test I added was to just have any test for zzz, and then plan was to add more tests in the future, because no tests existed for r4ml.session.
For enableHiveSupport, sparkR adds spark.sql.catalogImplementation to config and set it to "hive". When we disable hive support, this variable no longer exists in the config. So, I've added a test accordingly.

Build success.
All unit tests passed.

Build triggered.

Build success.
All unit tests passed.


Removing field

When delete field something wrong

I have two fields:

Redux from state:

Removed second filed (in array 1 element)

After delete redux from state dont delete second field, it transform to

What do I wrong ?

would be useful if you share some of your action creator / reducer code

Closing due to inactivity.


"GoToDefinition" feature didn't work when "package and module" have same name

Type: Bug

Behaviour
here is full folder layout:
├─grains
│   |─__pycache__
│   |─grains_test.py
│  └─grains.py

when I edit grains_test.py, that I add from grains import square sentence, the feature of "GoToDefinition" not work when I want to goto square definition.

But when I change the sentence to from grains.grains import square the feature can work.

Expected vs. Actual
XXX
Steps to reproduce:

XXX

Diagnostic data

Python version (& distribution if applicable, e.g. Anaconda): 3.10.4
Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Venv
Value of the python.languageServer setting: Default

Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

XXX

User Settings

languageServer: "Pylance"

linting
• enabled: false
• flake8Args: "<placeholder>"
• flake8Enabled: true

testing
• pytestArgs: "<placeholder>"
• unittestArgs: "<placeholder>"
• unittestEnabled: true

Extension version: 2023.6.0
VS Code version: Code 1.77.1 (b7886d7461186a5eac768481578c1d7ca80e2d21, 2023-04-04T23:21:11.906Z)
OS version: Windows_NT x64 10.0.19044
Modes:
Sandboxed: No

System Info

Item
Value

CPUs
AMD Ryzen 7 5800H with Radeon Graphics          (16 x 3194)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: disabled_off

Load (avg)
undefined

Memory (System)
63.86GB (55.27GB free)

Process Argv

Screen Reader
no

VM
67%

In VScode did you use open folder on the top grains folder? or on a different parent folder?
please update with pylance logs see  "Python Language Server" output logs see https://github.com/microsoft/pylance-release/blob/main/TROUBLESHOOTING.md#filing-an-issue

In VScode did you use open folder on the top grains folder?
correct.
or on a different parent folder?
I didn't.

Here is my pylance logs:
[Info  - 7:16:01 PM] (9112) Could not import 'grains.g' in file 'c:\Users\ash_258\Exercism\python\grains\grains_test.py'
[Info  - 7:16:01 PM] (9112)   Looking in stubPath 'c:\Users\ash_258\Exercism\python\typings'
[Info  - 7:16:01 PM] (9112)   Attempting to resolve stub package using root path 'c:\Users\ash_258\Exercism\python\typings'
[Info  - 7:16:01 PM] (9112)   Attempting to resolve using root path 'c:\Users\ash_258\Exercism\python\typings'
[Info  - 7:16:01 PM] (9112)   Looking in root directory of execution environment 'c:\Users\ash_258\Exercism\python'
[Info  - 7:16:01 PM] (9112)   Attempting to resolve stub package using root path 'c:\Users\ash_258\Exercism\python'
[Info  - 7:16:01 PM] (9112)   Attempting to resolve using root path 'c:\Users\ash_258\Exercism\python'
[Info  - 7:16:01 PM] (9112)   Finding python search paths
[Info  - 7:16:01 PM] (9112)   Executing interpreter: 'c:\Users\ash_258\Exercism\python\.venv\Scripts\python.exe'
[Info  - 7:16:01 PM] (9112)   Skipping 'D:\Applications\Scoop\apps\python\current\python311.zip' because it is not a valid directory
[Info  - 7:16:01 PM] (9112)   Received 5 paths from interpreter
[Info  - 7:16:01 PM] (9112)     D:\Applications\Scoop\apps\python\current\DLLs
[Info  - 7:16:01 PM] (9112)     D:\Applications\Scoop\apps\python\current\Lib
[Info  - 7:16:01 PM] (9112)     D:\Applications\Scoop\apps\python\current
[Info  - 7:16:01 PM] (9112)     c:\Users\ash_258\Exercism\python\.venv
[Info  - 7:16:01 PM] (9112)     c:\Users\ash_258\Exercism\python\.venv\Lib\site-packages
[Info  - 7:16:01 PM] (9112)   Looking in python search path 'd:\Applications\Scoop\apps\python\3.11.3\DLLs'
[Info  - 7:16:01 PM] (9112)   Attempting to resolve stub package using root path 'd:\Applications\Scoop\apps\python\3.11.3\DLLs'
[Info  - 7:16:01 PM] (9112)   Attempting to resolve using root path 'd:\Applications\Scoop\apps\python\3.11.3\DLLs'
[Info  - 7:16:01 PM] (9112)   Looking in python search path 'd:\Applications\Scoop\apps\python\3.11.3\Lib'
[Info  - 7:16:01 PM] (9112)   Attempting to resolve stub package using root path 'd:\Applications\Scoop\apps\python\3.11.3\Lib'
[Info  - 7:16:01 PM] (9112)   Attempting to resolve using root path 'd:\Applications\Scoop\apps\python\3.11.3\Lib'
[Info  - 7:16:01 PM] (9112)   Looking in python search path 'd:\Applications\Scoop\apps\python\3.11.3'
[Info  - 7:16:01 PM] (9112)   Attempting to resolve stub package using root path 'd:\Applications\Scoop\apps\python\3.11.3'
[Info  - 7:16:01 PM] (9112)   Attempting to resolve using root path 'd:\Applications\Scoop\apps\python\3.11.3'
[Info  - 7:16:01 PM] (9112)   Looking in python search path 'c:\Users\ash_258\Exercism\python\.venv'
[Info  - 7:16:01 PM] (9112)   Attempting to resolve stub package using root path 'c:\Users\ash_258\Exercism\python\.venv'
[Info  - 7:16:01 PM] (9112)   Attempting to resolve using root path 'c:\Users\ash_258\Exercism\python\.venv'
[Info  - 7:16:01 PM] (9112)   Looking in python search path 'c:\Users\ash_258\Exercism\python\.venv\Lib\site-packages'
[Info  - 7:16:01 PM] (9112)   Attempting to resolve stub package using root path 'c:\Users\ash_258\Exercism\python\.venv\Lib\site-packages'
[Info  - 7:16:01 PM] (9112)   Attempting to resolve using root path 'c:\Users\ash_258\Exercism\python\.venv\Lib\site-packages'
[Info  - 7:16:01 PM] (9112)   Looking in bundled stubs path 'D:\Applications\Scoop\persist\vscode\data\extensions\ms-python.vscode-pylance-2023.4.10\dist\bundled\stubs'
[Info  - 7:16:01 PM] (9112)   Attempting to resolve stub package using root path 'D:\Applications\Scoop\persist\vscode\data\extensions\ms-python.vscode-pylance-2023.4.10\dist\bundled\stubs'
[Info  - 7:16:01 PM] (9112)   Attempting to resolve using root path 'D:\Applications\Scoop\persist\vscode\data\extensions\ms-python.vscode-pylance-2023.4.10\dist\bundled\stubs'
[Info  - 7:16:01 PM] (9112)   Looking for typeshed stdlib path
[Info  - 7:16:01 PM] (9112)   Looking for typeshed stdlib path
[Info  - 7:16:01 PM] (9112)   Attempting to resolve using root path 'D:\Applications\Scoop\persist\vscode\data\extensions\ms-python.vscode-pylance-2023.4.10\dist\typeshed-fallback\stdlib'
[Info  - 7:16:01 PM] (9112)   Typeshed path not found
[Info  - 7:16:01 PM] (9112)   Looking for typeshed third-party path
[Info  - 7:16:01 PM] (9112)   Looking for typeshed stubs path
[Info  - 7:16:01 PM] (9112)   Typeshed path not found
(9112) [FG]   binding: c:\Users\ash_258\Exercism\python\grains\grains_test.py (1ms)
(9112) [FG] completion at c:\Users\ash_258\Exercism\python\grains\grains_test.py:2:13 [found 2 items] (4ms)
(9112) IntelliCode: current invocation did not produce any meaningful tokens.
(9112) Time taken to get recommendations: 3 ms, Memory increase: 140 KB.
(9112) Background analysis message: setFileOpened
(9112) Background analysis message: markFilesDirty
(9112) Background analysis message: getDiagnosticsForRange
(9112) Background analysis message: getDiagnosticsForRange
(9112) Background analysis message: setFileOpened
(9112) Background analysis message: markFilesDirty
(9112) [FG] parsing: c:\Users\ash_258\Exercism\python\grains\grains_test.py (2ms)
(9112) [FG] binding: c:\Users\ash_258\Exercism\python\grains\grains_test.py (1ms)
(9112) Background analysis message: analyze
(9112) [BG(1)] analyzing: c:\Users\ash_258\Exercism\python\grains\grains_test.py ...
(9112) [BG(1)]   parsing: c:\Users\ash_258\Exercism\python\grains\grains_test.py (2ms)
(9112) [BG(1)]   binding: c:\Users\ash_258\Exercism\python\grains\grains_test.py (0ms)
(9112) [BG(1)]   checking: c:\Users\ash_258\Exercism\python\grains\grains_test.py (26ms)
(9112) [BG(1)] analyzing: c:\Users\ash_258\Exercism\python\grains\grains_test.py (28ms)
(9112) Background analysis message: getDiagnosticsForRange
(9112) Background analysis message: resumeAnalysis
(9112) [BG(1)] indexing: c:\Users\ash_258\Exercism\python\grains\grains_test.py [found 1] (0ms)
(9112) Indexing Done: c:\Users\ash_258\Exercism\python\grains\grains_test.py
(9112) Background analysis message: getDiagnosticsForRange
(9112) Background analysis message: getDiagnosticsForRange
(9112) Background analysis message: getDiagnosticsForRange
[Info  - 7:16:02 PM] (9112) SourceFile: Received fs event 'change' for path 'c:\Users\ash_258\Exercism\python\grains\grains_test.py'
(9112) Background analysis message: markFilesDirty
(9112) Background analysis message: analyze

this is because grains package takes precedence over 'module' since your root is parent folder of grains folder.
if you want grains to refer to the module, you either need to open grains as the root or use settings to put gains as one of import search root
one way of doing that is adding this to settings.json
{
    "python.analysis.extraPaths": ["grains"]
}

or you could create pyrightconfig.json file at the root with this content
{
    "executionEnvironments": [ { "root": "grains"}]
}

it doesn't matter which way you choose, but you need to tell pylance that you want us to consider nested folder as search paths


Support for Shopware 6.5.x ?

Any news regarding support for Shopware 6.5.x? According to the composer.json and store.shopware.com it is not supported yet.

I am also eagerly waiting for Shopware 6.5.x support.
It would be great if you could make it possible soon. :)

+1

Hello all,
Thank you for raising this issue. We are still working on this task to support Shopware 6.5. The new version of the plugin will be released soon with Shopware 6.5 support.
Best Regards,
Can

Hello,
when is soon reached?
Best Regards

Hello all,
New version of the plugin with Shopware 6.5 support was released.
Best Regards,
Can


Handle splat args in bases/kwargs for build_class

Fixes #2435, and also fixes #2436
@Zomatree, could you verify that your example works now?

I can confirm both starred arguments and __prepare__ work, however there is now an issue in the typings lib related to this
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/zomatree/rustpythonpatch/vm/pylib-crate/Lib/typing.py", line 160, in <module>
    class _TypingBase(metaclass=TypingMeta, _root=True):
TypeError: Unexpected keyword argument _root


feat: Change manifest.json requirements for Safe Apps

What it solves
resolves https://github.com/gnosis/safe-react-apps/issues/313
How this PR fixes it
We are making description and iconPath  properties optional.
Besides that we are adding support for the icons web manifest standard prop as some apps are going this way and is the real standard (For example Sushi as the related bug stands out)
How to test it

Access Sushi app
1.1) Create a transaction by making a swap
1.2) Icon and name should be visible
Add a new Custom app with the new manifest structure using icons property. The app should be added with no issue

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 1 (0.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.02%) to 34.879%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/routes/safe/components/Apps/utils.ts
0
1
0.0%

Totals

Change from base Build<PHONE_NUMBER>:
-0.02%

Covered Lines:
3381

Relevant Lines:
8774

💛  - Coveralls

Solves https://github.com/safe-global/safe-react-apps/issues/329


AVC Codec

Is it possible to get play AVC codec like this extension which play AVC codec on Microsoft edge (chromium)  https://github.com/lkmvip/netflix-4K-DDplus by tuning on all the option

If i disable both VP9 and avchigh, the streams get broken

AVC is not supported on Chrome, see https://github.com/jangxx/netflix-1080p/issues/13


Extracting permutation of classical registers from Quantum Circuit

Hi,
during routing/mapping passes input quantum registers could be permuted, the permutation logical -> physical qregs is saved in quantum_circuit._layout property and could be easily accessed by a user.
Similarly, classical cregs also become permuted after routing/mapping: physical cregs->logical cregs. This permutation can be extracted when applying measure gates quantum_circuit.measure_all(). E.g. when two cregs (0 and 1) are permuted than
the measure gates will look like:
measure qreg[0] creg[1];
measure qreg[1] creg[0].
However, when measure gates are not applied, there is still could be implicit permutation of cregs after mapping/routing pass. It seems that there is no simple way to access information about cregs permutation, which could be inconvenient in some cases. For example this information is necessary to check the equivalence of original and transpiled circuits.
Is it possible to add this information as a property of QuantumCircuit object? Or there is some other way to access this information?
Thanks a lot!

The plot_gate_map() from  qiskit.visualization  can be used to view the original layout. And transpiled circuit can be viewed via plot_circuit_layout() which also belongs to qiskit.visualization.
In this way, 2 plots will be displayed and both will have to be compared.
It's doable,but I'm open to a simpler solution if it exists.

Hi @yourball, cregs will not be modified by the routing or layout process. Can you provide an example of the behavior you're seeing and the behavior you'd expect?

The circuit._layout gives the initial layout (i.e. the initial permutation of qubits before the circuit starts). I think this issue is asking for a convenient way to view the final layout (i.e. the final permutation, which is usually absorbed into the measurements and reorders their clbit targets). I agree it could be handy to access this.

This is a topic for the hackathon next week: https://github.com/qiskit-community/qiskit-hackathon-korea-21/issues/2

The circuit._layout gives the initial layout (i.e. the initial permutation of qubits before the circuit starts). I think this issue is asking for a convenient way to view the final layout (i.e. the final permutation, which is usually absorbed into the measurements and reorders their clbit targets). I agree it could be handy to access this.

@ajavadia Thanks, that is the exactly what I mean! It is useful to access the information about virtual permutation of qubits at the end of the circuit even when there are no measurement gates. For example this is important for equivalence checking of circuits before/after optimization.

It is not strictly needed in that case, although it makes it much easier. Instead of checking equiv to identity with possible phase, you look for equiv up to a permutation matrix.

I recently wrote a function for my own usage, but something like this could be helpful.
def unpermute(circ_mapped):
    """
    Apply left and right permutations to remove effect of layout and measurement retargeting.
    """
    empty_circ = QuantumCircuit(circ_mapped.num_qubits)

    lo = circ_mapped._layout
    tokenswapper = LayoutTransformation(coupling_map=CouplingMap.from_line(8),
                                        to_layout=lo,
                                        from_layout=Layout.generate_trivial_layout(lo.get_registers().pop()))
    pm = PassManager(tokenswapper)
    initial_permutation = pm.run(empty_circ)
    initial_permutation.barrier()

    final_perm = [0] * 8
    for op, qubits, clbits in circ_mapped.data:
        if op.name == 'measure':
            final_perm[qubits[0].index] = clbits[0].index

    tokenswapper = LayoutTransformation(coupling_map=CouplingMap.from_line(8),
                                        to_layout=Layout({v: p for v, p in zip(circ_mapped.qubits, final_perm)}),
                                        from_layout=Layout.generate_trivial_layout(lo.get_registers().pop()))
    pm = PassManager(tokenswapper)
    empty_circ.barrier()
    final_permutation = pm.run(empty_circ)

    circ_left_permuted = initial_permutation.compose(circ_mapped.remove_final_measurements(inplace=False))
    circ_left_right_permuted = circ_left_permuted.compose(final_permutation)
    return circ_left_right_permuted

A circuit mapped by Qiskit:

Calling unpermute() function on it models the left layout and right measurement reordering as explicit permutations:

I used the TokenSwapper pass but using the qiskit.circuit.library.Permutation is easier (but it needs this bug fix: https://github.com/Qiskit/qiskit-terra/pull/5813)

It this PR related https://github.com/Qiskit/qiskit-terra/pull/5280 ?

This is done for the StochasticSwap in #6827. Others can be modified in a similar manner.


Error: SSL error database connection

When data has disabled SSL for the third-party part hosted db it shows an SSL error.

Fixed.


[New Sample] - Bot-Tag-Mention -  Csharp

Build Pipeline
https://github.com/OfficeDev/Microsoft-Teams-Samples/actions/runs/6107799943

@Jegadeesh-MSFT  Resolved the conflicts.

Executed pipeline

https://github.com/OfficeDev/Microsoft-Teams-Samples/actions/runs/6702737566

Execute build pipeline
https://github.com/OfficeDev/Microsoft-Teams-Samples/actions/runs/6732221023


confirm_item.tpl should reuse cart_item.tpl details

Description
The confirm_item.tpl should use the additional info already provided by extending templates (if there are any) from e.g. checkout/items/product.tpl. This should be intuitive.
This is done by adding getting the parents template-data in the block frontend_checkout_cart_item_details_inline.
This prevents the duplication of code if the theme-developer adds additional info in this block, as it's supposed to be {* Additional product information *}.

Questions
Answers

Why?
Saving developers pain, by making the template more intuitive

BC breaks?
no

Tests exists & pass?
no tests

How to test?
Add custom info data to frontend/checkout/items/product.tpl, in the frontend_checkout_cart_item_details_inline block and see it showing up in checkout/confirm.

Requirements met?
Yas

Hello,
thank you for creating this pull request.
I have opened an issue on our Issue Tracker for you. See the issue link: https://issues.shopware.com/issues/SW-19141.
Please use this issue to track the state of your pull request.

Thank you @screeny05 for your contribution.
The change was merged with fa28d21.
Thank you for your work.


Add functionality for calculating Aerial Distances

I frequently find myself finding distance between two points on a random website. Will love if this is handled by dns.toys
TODO:

I have yet to add tests.
Really need the delimiter to be , because that's how points are available to me eg. 12.670,34.870
Would appreciate if you take out time for a code review

PS. My first Golang PR

@MrMadFox
@hold7door
@yashvardhan-kukreja
Will really appreciate it if you guys can take out the time to review this PR and help me ! Thanks in advance

Closes #48

Thanks for the PR @i-sanyam. Can you please clean up the debug statements and send the final version?

Sure I will but I have mentioned you in the PR as I am having issue with deciding the delimiter.  it isn't working either for - or ,.

https://github.com/knadh/dns.toys/pull/47/files#r1015091961

I have allowed , in the initial query parsing and have tested on the local server by passing all the example queries and it is not breaking. Removed debug statements as well

Thanks. Will review and merge this week.

@i-sanyam. I've made a few minor cosmetic changes to the commit. Since you send the PR from your master branch, I was unable to amend it, so I've pushed it to a new branch here: https://github.com/knadh/dns.toys/blob/aerial/internal/services/aerial/aerial.go
Please take a look at the changes and if they look fine, I'll merge them.

Thanks @knadh for the edits! I have gone through them. They look fine to me. And before merging them, due to the simplification in error handling, the test cases' error strings need an update. I have added them in a new PR to aerial branch itself here:
https://github.com/knadh/dns.toys/pull/52/files
TL;DR the simplified error handling does not validate both the locations' coordinates at once but I think that is fine.
eg in the case of lat long pair -
L1 [-91.00, 191.00]
L2 [91.00, -191.00]
the user first gets an error that L1 is invalid, the user then fixes L1 and attempts again
L1 [11.00, 01.00]
L2 [91.00, -191.00]
this time user again gets an error that L2 is invalid, which may have been avoided by the user if the error is sent at once for both locations.

Merged in https://github.com/knadh/dns.toys/pull/53/

Merged in https://github.com/knadh/dns.toys/pull/53/


Major: Remove add module exports

not necessary if all imports/export syntax, and doens't seem to work with webpack 2 which supports import/export when using modules: false in babel.
will bump major

:+1:

:+1:


darwin: use clock_gettime in macOS 10.12

Looks like macOS Sierra has some nice additions :-)
Potential caveat: a binary compiled on 10.12 will not run on earlier systems.  Since we already have some OSX versions checks in place I thought that's ok.
R= @libuv/collaborators and explicit ping to the in-house OSX expert: @indutny

Looks fine to me, but why is it better?

On a somewhat similar note this should cause failures for a binary compiled on AIX 7.1 and run on lower versions

More POSIX, moar better!
On Sep 28, 2016 19:08, "Fedor Indutny"<EMAIL_ADDRESS>wrote:

Looks fine to me, but why is it better?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/libuv/libuv/pull/1073#issuecomment-250250148, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AATYGHT5-dXMPjhcqVMMXzGoTHG1TeIGks5quq0GgaJpZM4KJE7Q
.

@saghul got it, but really... what's the benefit of this?

That was my main idea. Eventually most BSDs and Darwin would share the
implementation.
We can land this on master if anyone really feels strongly about it.
Also, it would be nice to benchmark it, but since we use uv_hrtime for
benchmarking, how do we measure uv_hrtime itself?
On Sep 28, 2016 23:17, "Fedor Indutny"<EMAIL_ADDRESS>wrote:
@indutny approved this pull request.
LGTM, let's land it. On a second thought we may get rid of the old
implementation eventually, which will lead to a cleaner code here. 👍
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/libuv/libuv/pull/1073#pullrequestreview-2040701, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AATYGPPjb6zKqNX5i7oyIO1MiMFiaqxCks5quud9gaJpZM4KJE7Q
.

Oops, this one fell through the cracks.  Landed in f8d48050.

I'm running into problems with the 1.10.2 release that just got cut, and I think it's related to this change. I'm running OS X 10.11.6, which shouldn't be effected by this PR. However, I'm getting the following error, even after make clean:
 dyld: lazy symbol binding failed: Symbol not found: _clock_gettime
   Referenced from: /Users/cjihrig/programming/libuv/.libs/libuv.1.dylib (which was built for Mac OS X 10.12)
   Expected in: /usr/lib/libSystem.B.dylib

 dyld: Symbol not found: _clock_gettime
   Referenced from: /Users/cjihrig/programming/libuv/.libs/libuv.1.dylib (which was built for Mac OS X 10.12)
   Expected in: /usr/lib/libSystem.B.dylib

Note that it's saying libuv was built for 10.12.

I think I am encountering this problem after recently updating xcode: http://stackoverflow.com/questions/39224905/how-do-i-install-xcode-8-without-updating-macos

@cjihrig Can you paste the command line that was executed? (make V=1)

Sorry. I have since updated to 10.12 and recompiled.


Adding MoneyColumn to render currency based

PR adds new type of column: MoneyColumn. It is a bit similar to NumberColumn but is more finetuned to render money type of fields, like prices, order totals etc. It shares locale settings with Symfony applications by utilizing intl extension's functionality.

While I like the concept I'm not sure this is 'generic' enough to ship with the main package. We actually have a MoneyColumn implementation in several of our own projects, and none of them are identical.
IF we do this it has to be totally generic, future proof and valid for every country in the world. Is it?   😄

@curry684, I tried to make it as much generic as possible. Yes, it should work in all countries for which Symfony's money formatting works. It covers different types of data storage like float "as is" or integer with some divider. It respects Symfony language/currency default setting as well as has ability to override it on per column basis using Symfony's/intl's locales.

I enabled the test actions for the PR and the error it's giving I think already exposes a formatting issue because of system locale differences between your development machine and the CI runner. I18n formatting is really complex   😉


input[number] increments twice if change handler is slow

If the user clicks increment button on numeric input and change handler hangs, the value is incremented twice in Chrome. Change handler is called twice as well: jsbin.
This is not a bug of standard HTML input control: jsbin.

I jut tested this again and cannot repro the problem with Chrome 45. Closing.


test: fix the problem that the test-compile fails when the version of the spring-boot is lower than 2.4.0

test: fix the problem that the test-compile fails when the version of the spring-boot is lower than 2.4.0.
测试：修复 当spring-boot 版本低于 2.4.0 时，test-compile 失败的问题。
The error log:
https://github.com/seata/seata/actions/runs/3749476555/jobs/6367999677

Codecov Report

Merging #5186 (6c0b697) into develop (c866966) will increase coverage by 0.00%.
 Consider uploading reports for the commit 180a323 to get more accurate results

@@            Coverage Diff             @@
##             develop    #5186   +/-   ##
==========================================
  Coverage      48.47%   48.47%
  Complexity      4137     4137
==========================================
  Files            743      743
  Lines          26517    26517
  Branches        3294     3294
==========================================
+ Hits           12853    12855    +2
+ Misses         12263    12262    -1
+ Partials        1401     1400    -1

Impacted Files
Coverage Δ

...torage/file/store/FileTransactionStoreManager.java
56.27% <0.00%> (+0.64%)
:arrow_up:


ubuntu-latest points to 16.04, not 18.04

Running print(platform.platform()) with Python I detected that the kernel versions of the host agents on ubuntu-latest and ubuntu-18.04 differ, even though they point to the same image in the docs.
According to a list of kernel version they map to different Ubuntu versions
ubuntu-latest -> Linux-4.15.0-1061-azure-x86_64-with-glibc2.2.5 -> ubuntu 18.04
ubuntu-18.04 -> Linux-5.0.0-1023-azure-x86_64-with-glibc2.2.5 -> ubuntu 19.04
Edit: I'm wrong about kernel versions mapping to OS versions. The problem is that latest map to 16.04

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

ID: 99af681d-41ad-da15-0b72-08b5cd5a11ac
Version Independent ID: 2fa0df36-a437-8cbb-b019-b49b31b1e116
Content: Microsoft-hosted agents for Azure Pipelines - Azure Pipelines
Content Source: docs/pipelines/agents/hosted.md
Product: devops
Technology: devops-cicd
GitHub Login: @steved0x
Microsoft Alias: sdanie

Thank you for your feedback - I'm taking a look!

It turns out ubuntu-latest actually points to ubuntu-16.04, ubuntu-16.04 and ubuntu-18.04 both seem right though. We had to roll latest back to point to 16.04 due to capacity issues which have since been fixed. We're tracking a work item to make latest point to 18.04 again, that should go out after the holidays.
I'm going to close here since we're tracking the work to fix this on our end.

Closing this issue makes it harder for other folks to see that this is an issue.

That's fair, we can reopen until this is fixed.

From what we can tell this is yet to be fixed, using ubuntu-latest we occasionally get 16.04, and other times 18.04. Explicitly specifying ubuntu-18.04 fails to spin up the pipeline.
What's the current status on this, and is it possible to track?

Bump, still ongoing.

is this still a problem? im currently using ubuntu-latest in the pipeline

Still seeing this.

@alepauly @mitesch @densto88 customers are seeing ubuntu-latest route to 16.04 sometimes, as recently as April 7. Can you guys please investigate what's happening?
At this point we're dealing with a service bug, not a docs issue. If anyone feels like opening an issue on Developer Community then feel free, but we will also run this down internally.

@Chris113113 we looked at service-side telemetry and cannot find any evidence of an ubuntu-latest build running against the Ubuntu16 pool. To dig further, please post a Developer Community ticket with your organization name, project name, and pipeline name. A pointer to a run where it occurred would also help. Thanks!


about use Range problem, the DateTime

In my Project，I want use range
.FacetRange(t=>t
.OnField(f=>f.Createon)
.Ranges(
r=>r.From(new DateTime(2014,1,1).ToLocalTime())
)
)

running, I get this
"facets": {
"createon": {
"range": {
"field": "createon",
"ranges": [
{
"from": "2014-01-01T08:00:00+08:00"
}
]
}
}
},

2014-01-01T08:00:00+08:00
2014-07-24T16:45:17.163+08:00
but, ES  -->  "createon": "2014-07-24T16:45:17.163+08:00"
so,the DateTime Format is Mismatch.
how to use range to  Filter time？

By default, if you're using a DateTime, Elasticsearch will index your dates using the basic_date_time format, see details here.
date_time_no_millis is a better match for the C# date you're getting from Nest. It will output results that look like this:
2014-01-01T10:00:00+10:00
Now take the following example:
using System;
using System.Collections.Generic;
using System.Linq;
using Nest;

namespace Test
{
	public class TestWithDate
	{
		public DateTime CreateOn { get; set; }
	}

	public class Program
	{
		static void Main(string[] args)
		{
			var client = new ElasticClient(new ConnectionSettings(new Uri("http://localhost:9200")));

			var doc = new TestWithDate
			{
				CreateOn = new DateTime(2014,1,1).ToLocalTime()
			};

			//Set the mapping for the TestWithDate to explicitely use date_time_no_millis
			client.Map<TestWithDate>(m => m
				.Index("test_index_for_date")
				.DynamicDateFormats(new[] { "date_time_no_millis" })
				.MapFromAttributes()
			);

			client.Index<TestWithDate>(doc, idx => idx.Index("test_index_for_date"));

			var results = client.Search<TestWithDate>(body => body
				.MatchAll()
			    .FacetRange<DateTime>(t => t
			        .OnField(f => f.CreateOn)
			        .Ranges(
			            r=>r.From(new DateTime(2014,1,1).ToLocalTime())
			        )
			    )
			);

			Console.WriteLine(results.Documents.Count() + " query results");

			var facets = results.FacetItems<FacetItem>(p=>p.CreateOn);

			Console.WriteLine(facets.Count() + " facet buckets");

			foreach (DateRange facet in facets)
			{
				Console.WriteLine(facet.From);
				Console.WriteLine(facet.Count + " document in facet");
			}
		}
	}
}

Which will return something like this:
3 query results
1 facet buckets
1/01/2014 10:00:00 AM
3 document in facet

@KodrAus  OK,I will Try.
Thanks a Lot!

I'm fairly sure you can set the date format using NEST's property attributes... But I don't have Intellisense so I can't check :)

That's correct.  ElasticProperty contains a DateFormat field which is used for setting the format.  Also, FYI the default date format is date_optional_time.
Thanks for the thorough answer @KodrAus !
Closing this for now, feel free to re-open if necessary @starckgates.


chore(deps): upgrade dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-main" workflow

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (4179632) 95.69% compared to head (33a05dd) 95.69%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #909   +/-   ##
=======================================
  Coverage   95.69%   95.69%
=======================================
  Files           1        1
  Lines         395      395
  Branches       53       53
=======================================
  Hits          378      378
  Misses         17       17

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


Azure Data Studio opens 2 copies on launch

Issue Type: Bug
When launching Azure Data Studio from the Start menu, two copies are being opened.
This started when I changed from one folder to another in the file explorer. Since that time, both the previous and the new folder are opened in separate instances.

Azure Data Studio version: azuredatastudio 1.5.0-insider (291f591af3421899481725016ccb08a40424c036, 2019-02-28T03:34:08.321Z)
OS version: Windows_NT x64 10.0.17763

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-7600U CPU @ 2.80GHz (4 x 2904)

GPU Status
2d_canvas: enabledchecker_imaging: disabled_offflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmultiple_raster_threads: enabled_onnative_gpu_memory_buffers: disabled_softwarerasterization: enabledvideo_decode: enabledvideo_encode: enabledwebgl: enabledwebgl2: enabled

Memory (System)
15.84GB (3.22GB free)

Process Argv

Screen Reader
no

VM
0%

Extensions (9)

Extension
Author (truncated)
Version

vscode-sanddance
dan
0.0.1

newdatabase
kev
0.0.3

admin-pack
Mic
0.0.1

agent
Mic
0.36.1

import
Mic
0.6.0

profiler
Mic
0.6.0

server-report
Mic
0.1.5

sql-vnext
Mic
0.10.3

whoisactive
Mic
0.1.1

(1 theme extensions excluded)

@rajmusuku was able to repro this on his dev box - possibly use for a repro case?

I have a repro now.

Go to File... New Window
In the new editor, Ctrl+N for a new query
Repeat steps 1 and 2 as often as you like
Close all editors with their close buttons or (in Windows) by right clicking in the tray and choosing Close All Windows
Say no to "Do you want to save?" prompts
Reopen ADS and all windows will reappear with the files you already chose not to save

You can stop the windows by explicitly closing each file before you close the window.

I've seen this upstream so let's wait until they have a chance to fix it.


consolidate-commits in workspaces doesn't fill {{version}} for commit

I have a project that's set up as a workspace. The top-level Cargo.toml looks like this:
[workspace]

members = ["sub1", "sub2"]

( to create the member crates i did this: mkdir sub1 && cd sub1 && cargo init and the same for sub2)
My release.toml looks like this:
pre-release-commit-message = "project {{version}}"
consolidate-commits = true

I would expect the result of running  cargo release --no-tag --no-publish --no-push --no-dev-version --no-confirm --execute 0.2.1
To result in a single commit with a log message of:
project 0.2.1

Instead i get a single commit with a log message of:
project {{version}}

using cargo-release 0.20.5

Oh I see, I need to use shared-version=true in each of the subN crates.


How to use Loop action as 'for loop'?

Currently we can iterate only through a datasheet.

feature added. executeOnCondition acts as while-loop. You may use jumpTo action to break, continue and stop.
If you use data sheet, you may use sheetName.columnName as if it is a field inside this loop in all expressions. Current row is used to get the value of the field.


Pharo syntax highlighting should work

This is likely related to recent changes in Pharo:

It appears that if you use the BlFontFamilyAttribute the BlTextForegroundAttribute no longer works:
'1234' asRopedText
	attributes: {BlFontFamilyAttribute named: 'Source Code Pro'};
	attributes: {BlTextForegroundAttribute paint: Color red} from: 2 to: 3;
	yourself

Using the Moz2D renderer instead of Skia works.

Great finding :).

It looks like the highlighter works, but the colors attached are Color black.

BlTextElement new text: ('1' asRopedText
	fontName: 'Source Sans Pro';
	fontSize: 200;
	foreground: Color red)

==> it's red
BlTextElement new text: ('1' asRopedText
	fontName: 'Source Code Pro';
	fontSize: 200;
	foreground: Color red)

==> it's black

Resetting the font cache, looks the font up in the system fonts and works. So, it looks like the font file is wrong.


STORM-2594: Apply new code style to storm-rocketmq

Reduce the max allowed violation count to 0.
Changed the class names including MQ to Mq.

Since storm-rocketmq is only merged into master branch and storm 2.0 hasn't been released, so the changes should hurt nothing.

+1


Update aws-java-sdk-bundle to 1.12.418

Updates com.amazonaws:aws-java-sdk-bundle from 1.12.410 to 1.12.418.
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.amazonaws", artifactId = "aws-java-sdk-bundle" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "30 days" },
  dependency = { groupId = "com.amazonaws", artifactId = "aws-java-sdk-bundle" }
}]

labels: library-update, early-semver-patch, semver-spec-patch, commit-count:1

Superseded by #2537.


Antag control verbs commonly fail

Description
When playing as a non-crew human, the antag control functions commonly fail.

Screenshots

Additional context
It adds objectives, but fails to actually make the character an antagonist.

This appears to be literally random, as it fails on normal crew too.

Yeah I've had this happen a lot to me as well

@beck-thompson can you provide repro steps, because I think the original issue was actually fixed by #31318
Do you have the issue where antag control verbs fail if you try to add a specific one the second time?


Create Sales Invoice

Hi, thank you for your contributions, correct me if I am wrong, we are able to see the invoice template setting but not the module to create sales invoice, how can we create sales invoice ?
Thanks

@vinnchan The feature hasn't been created yet. It's coming up next on the list though after I'm finished adding all of the financial statements/reports.
Please create a discussion post next time since this is not a bug or issue.


add generics for Protocol.createHandler

Adds type coverage for the impl function.

@fubhy, I've been going back and forth on this. If the return type also had a related type argument, generics could ensure that they match:
createHandler<T>(spec: ImplSpec<T): ImplHandler<T>

But it doesn't, and it's fair to implement a Protocol and use the ImplSpec with its default type arguments. We don't because it's a little bit helpful to add none-default type arguments, so that we don't confuse I and O, but why not leave that up to the implementation?
I can see both sides, but I'm leaning towards the simple version we currently have. Closing this, but thank you for the PR!

Agreed. This only came up while experimenting with other parts (more specifically the testing use-case that I was playoung around with as mentioned on Slack). There, I was trying to work with individual handlers. But I realized (as you also suggested) that it's perfectly fine to just use unimplementService for that case so my use-case is solved differently now anyways :-)


Add lab meeting topics for Summer 2020

What do labbaroonies think of this schedule?

Works for me, but then I don't have anything assigned 😉

@GeorgiaHCA - I've put you down for a lab meeting at the end of July - I hope that's ok!


Custom async validation rules being fired twice

Reproduction
https://gitlab.com/bargok/reproduction-formkit-duplicate-validation
Describe the bug
Introduction
We encountered the bug when using FormKitSchema, a simple schema, and a custom validation rule that was async. Because the async rule was making a xhr request, we noticed in the console that the rule was being fired twice in some circumstances.
Setup
Please see the reproduction repository for the full code.
<template>
  <div>
    <FormKitSchema :schema="schema" />
  </div>
</template>

<script lang="ts" setup>
import { FormKitSchemaCondition, FormKitSchemaNode } from '@formkit/core'

const schema: FormKitSchemaCondition | FormKitSchemaNode[] = [
  {
    $formkit: 'form',
    children: [
      {
        $formkit: 'text',
        name: 'text',
        value: 'value',
        // This combination of rules will have it fire twice.
        validation: `required|delayed`,
        // Change it to this to have it fire only once.
        // validation: `delayed`,
      },
    ],
  },
]
</script>

When the validation of the input was just validation: 'delayed' rule, it fires once.
When the validation of the input was combined like required|delayed it fires twice.
The expectation is for the rule to be fired once.
The reproduction makes it most clear when loading the page BTW.
Environment
• OS: MacOS Ventura 13.3.1 (a) (22E772610a)
• Browser Version: 113.0.5672.92 (Official Build) (x86_64)
• Version: @formkit/nuxt": "^0.16.5"

It's worth mentioning that a possible work-around is adding a debounce value of 1 to the rule like mentioned in the documentation here: https://formkit.com/essentials/validation

This is expected behavior — an async rule effectively operate as a standard rule except since the results come in at unexpected times we use a nonce to ensure only the last fired validation rule is allowed to actually apply it’s values to the form. Async rules also remove their validation message immediately when re-running.
So in general async rules will run for every mutation, and resolve for every mutation we don’t want to assume that async means "expensive".
Now — in the context of your specific rule, where you perform an XHR request, an "expensive" operation, it can be quite beneficial to apply a debounce to your rule as you noted. You can do this via a hint (required|(200)delayed) or by apply the delayed property to your custom validation function.
import { FormKitNode } from '@formkit/core'

const delayed = function (node: FormKitNode): Promise<boolean> {
  console.log('start', node.name, node.value)
  return new Promise((resolve) => {
    setTimeout(() => {
      console.log('done', node.name, node.value)
      resolve(true)
    }, 2000)
  })
}

delayed.debounce = 200

export default delayed

Ok — there is an issue here — or at least something I dont understand, but it has nothing to do with async rules. Like you point out adding the required rule before another rule causes it to run 2x on initial load. That is odd.
Reproduction:
https://formkit.link/131557d7486d75d6329fcbe459159668
Steps to reproduce

Open the console
Refresh the playground
Note the validation rule has run 2x
Remove the required
Refresh the playground
Note the rule runs 1x

Hypothesis: Perhaps the validation queue is not being unloaded after the first failure causing it to resume once a commit event takes place. Need further investigation.

Later versions of formkit have consistent handling of this issue. It should run 2x on initial load when nested inside a form.


I and J

Sometimes the program identifies I and J as lowercase L.

[x] Check if the letter is first and change it from L to correct char.

Done. It's not absolutely perfect but as close as one gets without training Tesseract.
The solution was to check the second character. In most cases "I" and "J" won't have the same second character.


Transparent backgrounds

Is your feature request related to a problem? Please describe.

In react native on Android when you use elevation and want to have a transparent-ish view, you will have visible shadow background:
https://snack.expo.dev/@terrysahaidak/humiliated-strawberries

This library implements really cool shadows but also suffers from this same problem - the shadow is visible underneath.
This is a known problem of React Native, though:
https://github.com/facebook/react-native/issues/25093
Describe the solution you'd like

At this point, I don't know if this is actually possible.
According to the issue, it wasn't a problem until Android 9.
P.S.
Thanks for this awesome library, it's a gem!

if this is solved, it would be probably the #1 library to go for shadows. will try to solve it

Hi @terrysahaidak,
I think you can achieve what you want with renderToHardwareTextureAndroid. Unfortunately, it clips the view to its exact bounds, so the shadow won't render properly if applied directly on ShadowedView. You can fix that by adding some padding around the shadowed view by doing something like this:
<View style={{ opacity: 0.5, padding: 20, margin: -20 }} renderToHardwareTextureAndroid >
  <ShadowedView
    style={{
      width: 150,
      height: 200,
      borderRadius: 20,
      backgroundColor: '#dbfff2',
      ...shadowStyle({
        opacity: 0.4,
        radius: 12,
        offset: [5, 3],
      }),
    }}
  />
</View>

The 20px padding needs to be adjusted based on the radius/offset of the shadow. Let me know if it doesn't work as you would expect.

Hi @terrysahaidak,
I think you can achieve what you want with renderToHardwareTextureAndroid. Unfortunately, it clips the view to its exact bounds, so the shadow won't render properly if applied directly on ShadowedView. You can fix that by adding some padding around the shadowed view by doing something like this:
<View style={{ opacity: 0.5, padding: 20, margin: -20 }} renderToHardwareTextureAndroid>
  <ShadowedView
    style={{
      width: 150,
      height: 200,
      borderRadius: 20,
      backgroundColor: '#dbfff2',
      ...shadowStyle({
        opacity: 0.4,
        radius: 12,
        offset: [5, 3],
      }),
    }}
  />
</View>

The 20px padding needs to be adjusted based on the radius/offset of the shadow. Let me know if it doesn't work as you would expect.

Solved my issue with renderToHardwareTextureAndroid. Thanks


Use SIPickle instead of SpikeGLX

Demonstration of SIPickleRecording.
Needs this branch of nwb-conversion-tools: https://github.com/catalystneuro/nwb-conversion-tools/pull/72

@alejoe91 I understand that on the processed side this will allow us to write other types of data like waveforms and metrics, but what's the advantage of a Pickle interface for recordings? Why wouldn't we just use SpikeGLX's format?

@bendichter Synchronization! In the ephys pipeline we want to synchronize the recording with TTLs so that sorted data are also synched. Then a simple dump_to_pickle of the SubRecordingExtractor would allow the converter to re-apply the same changes. Another use case could be removing noisy channels! This could be done via visual inspection and another SubRecordingExtractor, or even automatically using the spiketoolkit.preprocessing.remove_bad_channels

@alejoe91 For synchronization we can use a SubRecordingExtractor, and I don't want to remove noisy channels in the raw data.

@bendichter @alejoe91 Check out https://github.com/catalystneuro/nwb-conversion-tools/pull/74 for the SubRecordingExtractor version for allowing synchronization

@alejoe91 what do you think of using Cody's solution instead of the Pickle solution. It should mean 1 fewer read and write if I understand correctly

@alejoe91 what do you think of using Cody's solution instead of the Pickle solution. It should mean 1 fewer read and write if I understand correctly

If we always need to trim the recording using the first TTL Cody's solution is probably better in this case. The pickle could still be handy in other situations. Let's go for Cody's solution here


No linting / error on auto-fix in WSL remote window

When using this extension in a WSL remote window, no linting is done. Executing a command such as "auto-fix problems" shows this error in the "Log (Remote Extension Host)" output panel:
[2019-07-06 10:53:18.025] [exthost] [error] Error: Language client is not ready yet
    at LanguageClient.sendRequest (/home/david/.vscode-server-insiders/extensions/chenxsan.vscode-standardjs-1.2.3/client/node_modules/vscode-languageclient/lib/client.js:1465:19)
    at context.subscriptions.push.vscode_1.commands.registerCommand (/home/david/.vscode-server-insiders/extensions/chenxsan.vscode-standardjs-1.2.3/client/src/extension.ts:603:12)
    at f._executeContributedCommand (/home/david/.vscode-server-insiders/bin/7e03eb1a1fce3beb6ccea5f3b8f828e01940be61/out/vs/server/remoteExtensionHostProcess.js:509:714)
    at f.$executeContributedCommand (/home/david/.vscode-server-insiders/bin/7e03eb1a1fce3beb6ccea5f3b8f828e01940be61/out/vs/server/remoteExtensionHostProcess.js:510:104)
    at d._doInvokeHandler (/home/david/.vscode-server-insiders/bin/7e03eb1a1fce3beb6ccea5f3b8f828e01940be61/out/vs/server/remoteExtensionHostProcess.js:663:676)
    at d._invokeHandler (/home/david/.vscode-server-insiders/bin/7e03eb1a1fce3beb6ccea5f3b8f828e01940be61/out/vs/server/remoteExtensionHostProcess.js:663:368)
    at d._receiveRequest (/home/david/.vscode-server-insiders/bin/7e03eb1a1fce3beb6ccea5f3b8f828e01940be61/out/vs/server/remoteExtensionHostProcess.js:662:14)
    at d._receiveOneMessage (/home/david/.vscode-server-insiders/bin/7e03eb1a1fce3beb6ccea5f3b8f828e01940be61/out/vs/server/remoteExtensionHostProcess.js:660:814)
    at _protocol.onMessage.e (/home/david/.vscode-server-insiders/bin/7e03eb1a1fce3beb6ccea5f3b8f828e01940be61/out/vs/server/remoteExtensionHostProcess.js:659:34)
    at u.fire (/home/david/.vscode-server-insiders/bin/7e03eb1a1fce3beb6ccea5f3b8f828e01940be61/out/vs/server/remoteExtensionHostProcess.js:48:468)
    at a (/home/david/.vscode-server-insiders/bin/7e03eb1a1fce3beb6ccea5f3b8f828e01940be61/out/vs/server/remoteExtensionHostProcess.js:178:446)
    at e (/home/david/.vscode-server-insiders/bin/7e03eb1a1fce3beb6ccea5f3b8f828e01940be61/out/vs/server/remoteExtensionHostProcess.js:178:492)
    at u.fire (/home/david/.vscode-server-insiders/bin/7e03eb1a1fce3beb6ccea5f3b8f828e01940be61/out/vs/server/remoteExtensionHostProcess.js:48:468)
    at e.onMessage.e (/home/david/.vscode-server-insiders/bin/7e03eb1a1fce3beb6ccea5f3b8f828e01940be61/out/vs/server/remoteExtensionHostProcess.js:768:875)
    at u.fire (/home/david/.vscode-server-insiders/bin/7e03eb1a1fce3beb6ccea5f3b8f828e01940be61/out/vs/server/remoteExtensionHostProcess.js:48:468)
    at a (/home/david/.vscode-server-insiders/bin/7e03eb1a1fce3beb6ccea5f3b8f828e01940be61/out/vs/server/remoteExtensionHostProcess.js:178:446)
    at e (/home/david/.vscode-server-insiders/bin/7e03eb1a1fce3beb6ccea5f3b8f828e01940be61/out/vs/server/remoteExtensionHostProcess.js:178:492)
    at u.fire (/home/david/.vscode-server-insiders/bin/7e03eb1a1fce3beb6ccea5f3b8f828e01940be61/out/vs/server/remoteExtensionHostProcess.js:48:468)
    at y._receiveMessage (/home/david/.vscode-server-insiders/bin/7e03eb1a1fce3beb6ccea5f3b8f828e01940be61/out/vs/server/remoteExtensionHostProcess.js:187:432)
    at _socketDisposables.push._socketReader.onMessage.e (/home/david/.vscode-server-insiders/bin/7e03eb1a1fce3beb6ccea5f3b8f828e01940be61/out/vs/server/remoteExtensionHostProcess.js:184:674)
    at u.fire (/home/david/.vscode-server-insiders/bin/7e03eb1a1fce3beb6ccea5f3b8f828e01940be61/out/vs/server/remoteExtensionHostProcess.js:48:468)
    at f.acceptChunk (/home/david/.vscode-server-insiders/bin/7e03eb1a1fce3beb6ccea5f3b8f828e01940be61/out/vs/server/remoteExtensionHostProcess.js:181:234)
    at _register._socket.onData.e (/home/david/.vscode-server-insiders/bin/7e03eb1a1fce3beb6ccea5f3b8f828e01940be61/out/vs/server/remoteExtensionHostProcess.js:180:592)
    at Socket.t (/home/david/.vscode-server-insiders/bin/7e03eb1a1fce3beb6ccea5f3b8f828e01940be61/out/vs/server/remoteExtensionHostProcess.js:188:912)
    at Socket.emit (events.js:182:13)
    at Socket.EventEmitter.emit (domain.js:442:20)
    at addChunk (_stream_readable.js:283:12)
    at readableAddChunk (_stream_readable.js:264:11)
    at Socket.Readable.push (_stream_readable.js:219:10)
    at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17) standard.executeAutofix

This happens even hours after starting, so I doubt that something is really "not ready yet"...
VSCode version:
Version: 1.37.0-insider (system setup)
Commit: 7e03eb1a1fce3beb6ccea5f3b8f828e01940be61
Date: 2019-07-05T18:31:56.611Z
Electron: 4.2.5
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Windows_NT x64 10.0.17763
...however it is like this already for many weeks, so it is probably not because of an Insider feature. I've waited with reporting this until the WSL remote feature made it out of Insiders.
(StandardJS version: Irrelevant but it's 12.0.1, JS Standard output panel is empty - I couldn't find any other errors in any of the other output panels except for a "bower.json not found" which I think shouldn't cause anything bad, I don't even use Bower)

Note: This issue still exists on 1.39.0-insiders...

Update: Debugging shows that starting the client never finishes, it stays in ClientState.Starting. It gets up to the connection.initialize call but the callback then never executes.

Update 2: Adding a delay of 1s before the connection.initialize call solved the problem for me! I took the client and monkey-patched its initialize method to a 1s delay followed by a call to the original initialize method.
Still, there is obviously some sort of race condition, so that needs consideration...

Bump - this error still happens. With every update of the extension the error comes back and I have to manually patch it by inserting my 1s delay again.

Thanks for your bug report! @CherryDT
Feel free to open a PR to fix this bug. :smile:

Hm, I'm not sure how to fix it! My workaround is just that - a workaround. And adding code inside a dependency isn't really something a PR can do anyway ^^ It would require somebody who knows how VSCode extensions and language servers and all these things actually work to figure out what's wrong.


Support kubernates api  in python agent

Please answer these questions before submitting your issue.

Why do you submit this issue?
[ ] Question or discussion
[ ] Bug
[ ] Requirement
[x] Feature or performance improvement

Question

What do you want to know?

Bug

Which version of SkyWalking, OS and JRE?

Which company or project?

What happened?
If possible, provide a way to reproduce the error. e.g. demo application, component version.

Requirement or improvement

Please describe your requirements or improvement suggestions.

What do you mean Support kubernates api?

What do you mean Support kubernates api?

tracing


Issue 378 mpi names

Avg response time
coverage on master

Summary of changes

Change mpirun to mpiexec and mpif90 to mpifort in accordance with best practices as outlined in MPI standard.
Fixed bug and style issues in HPC Linux install script

Rationale for changes
Better  style/standards-conformance
Additional info and certifications
This pull request (PR) is a:

[x] Bug fix
[ ] Feature addition
[ ] Other, Please describe:

I certify that

[x] I have reviewed the contributing guidelines and followed the
policies on:
- Pull request (PR) naming to indicate work in progress (WIP),
and to attach the PR to the appropriate bug report, or feature
request issue
- White space (no trailing white space or white space errors may
be introduced)
- Commenting code where it is non-obvious and non-trivial
- Running tests locally, to ensure all of them pass
- Maintaining or increasing test coverage
- Logically atomic, self consistent and coherent commits
- Commit message content
- Waiting 24 hours before self-approving the pull request to
give another OpenCoarrays developer a chance to review my
proposed code

LGTM


Update how-to-visual-studio-develop-module.md

Step 4 was described in more detail

@PatAltimore - Can you review this PR?
IMPORTANT: When this content is ready to merge, you must add #sign-off in a comment or the approval may get overlooked.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

Hi @ddobric ,
I incorporated your commit and added my suggestions to a different PR. You'll still be listed as an article contributor. The change has been merged and will publish soon. Thanks for the fix. I'm going to request closing this PR.
Thanks,
Pat
#please-close


Failed to connect to serial port

i cannot connect to the serial port of the smart meter in home assistant, i says failed to connect.
i use this meter: https://shop.weidmann-elektronik.de/index.php?page=product&info=24.
i can see the usb-uart converter in terminal when i execute dmesg.

enable debug and check whats going on
this integration support only IEC 62056-21 protocol mode B, do you have such a meter? In my case i have PAFAL meter.

Okay, i dont know if my meter support mode b.
I have the kaifa mb310h4bnl5

I think it's DSMR protocoll. Take this Integration https://www.home-assistant.io/integrations/dsmr/.
Also search here https://community.home-assistant.io/search for Kaifa.

okay, i will try it, thanks for the information


Getting started doc doesn't include how to open, simulate example scene

Overview
The MRTK Getting Started Guide does not provide guidance about how to open an example scene such as the HandInteractionAll scene, or how to simulat input in the editor.

Fixed!


Modify instructor stats report to include #/% who have taught

Please modify trainings_completion_rates to display two more columns: what # and what % of people trained in a session have taught for us at least once since being trained.

@gvwilson You're submitting a PR (#680) against trainings_completion_rates, why don't you put these columns in there?

Because it would take me an hour to figure out how to do the appropriate
math, and you can do it in five minutes :-)

Yeah I don't think so (it's rather an hour for both of us) :-) anyway I'm not touching this until both:

you fix https://github.com/swcarpentry/amy/pull/680#discussion_r51589402
it's Wednesday

Done.

Fixed in 45b55aa0153156a8c06b2243afa5095508985563.

Thanks dude.


Use artifacts from the upstream job, if possible

We've seen multiple times that a package release job runs, but doesn't use the latest source. My theory is that there's a race condition between declaring the last source release job as last successful and the package release job running.
The Copy Artifact Plugin has an option for the selector. That can be set to upstream with a fallback to the last successful. That would mean that when a source release job triggers a package release job, the triggering job is the upstream. If there is none (like with a manual run), then it should fall back to the last successful.
I'm unsure about the syntax, but https://stackoverflow.com/questions/53820503/how-to-copy-artifacts-from-other-jenkins-job-from-a-pipeline/53821560#53821560 suggests the selector: upstream() part is correct and I'm assuming the option is passed this way.

My theory is that there's a race condition between declaring the last source release job as last successful and the package release job running.

Now that I investigate it, this isn't right.
https://ci.theforeman.org/job/foreman-installer-develop-package-release/1576/ was triggered by https://ci.theforeman.org/job/foreman-installer-develop-source-release/1657/ and it also states:

[2023-11-24T03:11:48.009Z] Copied 3 artifacts from "foreman-installer-develop-source-release" build number 1657

And if I look in the tarball that 1657 uses, then it has the correct changes included (I checked README.md).
Yet https://github.com/theforeman/puppet-pulpcore/pull/315#issuecomment-1826084380 proves nightly didn't.
Also, the resulting SRPM from https://ci.theforeman.org/job/foreman-installer-develop-package-release/1576/ has the correct changes (again, checked README.md).
So foreman-installer-3.9.0-0.3.develop.20231124031230gite0bf154.src.rpm should be good. Looking at https://stagingyum.theforeman.org/foreman/nightly/el8/x86_64/, we see https://stagingyum.theforeman.org/foreman/nightly/el8/x86_64/foreman-installer-3.9.0-0.3.develop.20231124031230gite0bf154.el8.noarch.rpm there and that also contains the correct README.md.
We can also see that https://ci.theforeman.org/job/foreman-nightly-rpm-pipeline/2098/ synced it and included the change (and passed).
Yet on https://yum.theforeman.org/nightly/el8/x86_64/ I see https://yum.theforeman.org/nightly/el8/x86_64/foreman-installer-3.9.0-0.3.develop.20231123031245gite0bf154.el8.noarch.rpm so somehow it's not being synced from staging to release.


Localization logic applied to this page (and to the other pages related to language processing models)

Hello,
I have a question regarding the logic behind the translation/localization of such content.
Some parts of the page have been sent to localization, for instance, here:

While other parts have been excluded from translation/localization:

As a result, we have inconsistencies between the "standard" text and the code samples:

This also raises the question of whether these sample should be completely left untranslated. As, the language model allows a user to type prompts in several languages (at least, ChatGPT can process English, Spanish, French, German, Portuguese, Italian, Chinese, Japanese, Korean, Arabic, and Russian, AFAIK), so why not translate these parts as well? I do get that the special tokens (like "<|im_start|>system") must remain untouched, but the "natural language" sentences should be translated, don't you think?
Best regards,
François

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

ID: 13994f3e-a96a-8804-4deb-7e0adad7f479
Version Independent ID: e087d8ce-bf3a-f12c-41dc-3ea924c6f089
Content: How to work with the Chat Markup Language (preview) - Azure OpenAI
Content Source: articles/cognitive-services/openai/how-to/chatgpt.md
Service: cognitive-services
GitHub Login: @dereklegenzoff
Microsoft Alias: delegenz

@FRFR-LO
Thanks for your feedback! We will investigate and update as appropriate.

@dereklegenzoff
Could you please review add comments on this, update as appropriate.

@mrbullwinkle - would you be able to help with this?

@FRFR-LO Thanks for bringing this to our attention. The issue is code blocks aren't touched by our auto-localization system, and right now we are treating the entire ChatML blocks of text as blocks of code by surrounding them in backticks that we use to designate code blocks.
I can modify the doc to only encapsulate the ChatML tokens as code which should allow the remaining text to auto-localize and remove the discrepancy you have described. But any blocks of actual Python code will have to remain encapsulated as code and any additional text in the Python code blocks would remain in English.

@mrbullwinkle
Hello, and thank you. I think it would be an interesting solution.
Another one would be to provide the translators working on these pages (because they are not fully auto-localized) with an instruction regarding the text examples used in the code and repeated in the main text, like "when you see a prompt sample which is used in a code block, please leave it untranslated, just provide an explanation of this prompt in your language, between parentheses, after the prompt."
Or the source writers could stop using code samples in the main text.
Ideally, of course, unlocking everything that can be localized without harming the code would be the best option, to streamline the localization workflow.
If natural language processing is included in the developers' "tool kits", situation like this (where language & code intertwine) will be recurrent.
Best regards,
François

@FRFR-LO
I've delegated this to content author @mrbullwinkle, who will review it and offer their insightful opinions.

@FRFR-LO Just wanted to give a quick update. As part of launching GPT-4 this morning, we had to completely change this doc due to a new API release that GPT-4 depends on.
While I was going through the process of creating the new version of this doc, I realized my proposed solution would no longer work with the structure of the input for the new API. I am going to reach out to our localization team to get a sense of their recommendations as far as your suggestion of seeing if we can do more targeted manual translation on some portions of the Azure OpenAI docs even when text needs to appear within code blocks.
Cheers,
Michael

@mrbullwinkle Thanks for the update. That's nice to take the time to let me know. Regarding the change, since I saw the natural language processing coming up (even in the Azure Cognitive Services content), I've been thinking that, maybe, it would require a different localization approach. Now that we can "speak" with the machine, the line separating what can be translated from what should not be translated is getting thinner.
Best regards,
François

Closing out legacy GitHub Issues.

#please-close


Strategy for Kedro developers and contributors

https://github.com/kedro-org/kedro/issues/2274 made me remember that not only we have Kedro users, but we also have potential contributors/developers (including both people who want to contribute to the core projects as well as people extending Kedro with plugins). We should have a distinct and explicit comms/docs strategy for contributors, and also think about in what circumstances a Kedro user could become a contributor or the other way around.

This is a great point. Something @tynandebold and I were discussing yesterday was that Kedro Viz could potentially receive more contribution if people knew the layout engine could be used as a standlone tool for visualising a DAG. I think we need to brainstorm the main features of Kedro/Kedro Viz that we'd be most keen to work on as part of the strategy.

Also, I believe we should prominently acknowledge community contributions (hence not coming from QuantumBlack or other entities employing core developers) in our release notes and communications.


[resotocore] allow to set the default edge_type via the env

Codecov Report

Merging #583 (52db2ce) into main (8eabbca) will increase coverage by 0.06%.
The diff coverage is 89.61%.

@@            Coverage Diff             @@
##             main     #583      +/-   ##
==========================================
+ Coverage   88.50%   88.56%   +0.06%
==========================================
  Files          64       64
  Lines        8315     8334      +19
==========================================
+ Hits         7359     7381      +22
+ Misses        956      953       -3

Flag
Coverage Δ

resotocore
88.56% <89.61%> (+0.06%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

resotocore/core/cli/cli.py
88.11% <ø> (ø)

resotocore/core/query/__init__.py
100.00% <ø> (ø)

resotocore/core/db/db_access.py
85.09% <84.37%> (+3.13%)
:arrow_up:

resotocore/core/web/api.py
62.99% <89.47%> (-0.33%)
:arrow_down:

resotocore/core/query/query_parser.py
99.59% <93.75%> (+<0.01%)
:arrow_up:

resotocore/core/cli/command.py
86.03% <100.00%> (ø)

resotocore/core/dependencies.py
82.00% <100.00%> (+0.36%)
:arrow_up:

resotocore/core/model/graph_access.py
99.27% <100.00%> (ø)

resotocore/core/query/model.py
93.47% <100.00%> (+0.03%)
:arrow_up:

resotocore/core/query/template_expander.py
93.96% <100.00%> (ø)

... and 2 more

Continue to review full report at Codecov.

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


Move all inline script to external files

A Content-Security-Policy has been added. This restricts where it is acceptable to load content from. Scripts have been allowed from inline. This  is not allowed by default, for the reason of being an easy to prevent the effects of XSS. However, this exception to the rule has been added as  there are a number of script blocks used for analytics mainly that include dynamic values.
In order for these blocks to be removed into external files some work is required to ensure that the files are generated as the application starts up (because the contain values set in environment variables). The files will also need their names to include hashes to avoid issues with caching. At the moment, none of the code infrastructure exists to do this.
This issue is done when the Content-Security-Policy has been altered to not allow unsafe-inline.

Closing issue as it isn't going to be worked on.


[CRASH] Crash when clicking mods button

https://paste.ee/p/z7eej

I also put this as a comment on Curseforge

You're on a very outdated version of ModMenu for 19w12b

Wait, that's the version bug. Try with the latest version anyway and let me know if it still happens

https://minecraft.curseforge.com/projects/modmenu/files/2695247

Update to the latest


Support for Nomad Pack templates

Hi!, great plugin!
I was wondering if Nomad Pack templates are something that is in the scope of this Vscode plugin, the templates are very similar to Levant's ones (Go templating), but for Nomad files.
Here are more details:
https://learn.hashicorp.com/tutorials/nomad/nomad-pack-writing-packs?in=nomad/nomad-pack#write-the-templates

it shouldn't have any issue, try update ur vscode file association?

Hi @jcalonso, closing this issue for inactivity. feel free to reopen if you have other Qs


Can't use JSX nor import CSS file in a custom addon

Describe the bug
I created a custom addon whose purpose is to print the HTML of the current viewed story. But it seems that I cannot import a CSS file nor use JSX in my addon.
Adding a custom webpack config with babel-loader, style-loader and css-loader doesn't fix this issue.
To Reproduce
Bug reproduction : https://github.com/mr-wildcard/storybook-custom-addon-bug-repro
Temporary fix : https://github.com/mr-wildcard/storybook-custom-addon-bug-repro/tree/temporay-fix
Expected behavior
Storybook should let me use JSX without any custom webpack config.
I might be wrong, but Storybook should also let me import a CSS file in my addon and process it out of the box.
Code snippets
see reproduction repository.
System:

OS: macOS 10.14.3
Device: Macbook Pro
Browser: Chrome
Framework: react
Addons: custom
Version: 5.0.1

cc @ndelangen

I'm also experiencing this issue, v5.0.5

I'm not sure why the defaults are that way and I'll let @ndelangen field that.
As for customization, when you do typical "webpack customization" you're customizing the webpack in the preview, which is the area where your stories are rendered. However, addons are running in the manager which is the UI that wraps it. And it has its own webpack process and configuration.
For more info on customizing manager webpack, see this issue: https://github.com/storybooks/storybook/issues/4995

Thank you @shilman . You're right, I was aware of the preview/manager distinction but didn't realize they were built using different webpack configurations.
I'll try @ndelangen solution 👍


Scope injection.

Sometimes it's real handy to have pre-injected variables in all define().
I think it can be implemented through filter and some new run-level.
And then when scopes fired inject all variables of filter in this scope.
What do you think?
I'am talking about something like
// Config
Filter::register("app.helpers", function() {
   $scope = $this->scope();

   $helper = new \My\Namespace\Helper();
   $scope->inject($helper);
});

// Spec
describe("My Spec", function() {
    before(function() {
        $this->helper->do_some_action();
    });
});

Imo it should be easily done using the following syntax:
Filter::register('registering.globals', function($chain) {
    $root = $this->suite();
    $root->global = 'hello';
    return $chain->next();
});

Filter::apply($this, 'run', 'registering.globals');

I think i'll add this do documentation if you don't mind.

No problem !


Add RuboCop to encourage high code quality in community extensions

I think adding this will only have benefits the community a whole, and personally I add this on all the extensions I create, so will save me 20 minutes each time.
I am happy to open up the RuboCop rules to refinement. In fact there are a few rules in there for compatibility reasons, be interested to know if we can cull these?
Edit I used the rubocop.yml from solidus.

Looks good to me. We're looking to support higher quality extensions, and defining some Rubocop rules makes sense.
:+1:

This is good by me too, thanks @SebAshton


Search terms redirecting to unrelated pages

Searching for "bass" searches for "band."
>>> import wikipedia as w
>>> w.page("bass")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\-\AppData\Local\Programs\Python\Python39\lib\site-packages\wikipedia\wikipedia.py", line 276, in page
    return WikipediaPage(title, redirect=redirect, preload=preload)
  File "C:\Users\-\AppData\Local\Programs\Python\Python39\lib\site-packages\wikipedia\wikipedia.py", line 299, in __init__
    self.__load(redirect=redirect, preload=preload)
  File "C:\Users\-\AppData\Local\Programs\Python\Python39\lib\site-packages\wikipedia\wikipedia.py", line 367, in __load
    self.__init__(redirects['to'], redirect=redirect, preload=preload)
  File "C:\Users\-\AppData\Local\Programs\Python\Python39\lib\site-packages\wikipedia\wikipedia.py", line 299, in __init__
    self.__load(redirect=redirect, preload=preload)
  File "C:\Users\-\AppData\Local\Programs\Python\Python39\lib\site-packages\wikipedia\wikipedia.py", line 393, in __load
    raise DisambiguationError(getattr(self, 'title', page['title']), may_refer_to)
wikipedia.exceptions.DisambiguationError: "Band" may refer to:
Bánd
Band, Iran
Band, Mureș
Band-e Majid Khan
Band (surname)
Musical ensemble
Band (rock and pop)
Concert band
Dansband
Jazz band
Marching band
...

Searching for "band" appears to search for "and".
>>> import wikipedia as w
>>> w.page("band")
C:\Users\-\AppData\Local\Programs\Python\Python39\lib\site-packages\wikipedia\wikipedia.py:389: GuessedAtParserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("html.parser"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.

The code that caused this warning is on line 389 of the file C:\Users\-\AppData\Local\Programs\Python\Python39\lib\site-packages\wikipedia\wikipedia.py. To get rid of this warning, pass the additional argument 'features="html.parser"' to the BeautifulSoup constructor.

  lis = BeautifulSoup(html).find_all('li')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\-\AppData\Local\Programs\Python\Python39\lib\site-packages\wikipedia\wikipedia.py", line 276, in page
    return WikipediaPage(title, redirect=redirect, preload=preload)
  File "C:\Users\-\AppData\Local\Programs\Python\Python39\lib\site-packages\wikipedia\wikipedia.py", line 299, in __init__
    self.__load(redirect=redirect, preload=preload)
  File "C:\Users\-\AppData\Local\Programs\Python\Python39\lib\site-packages\wikipedia\wikipedia.py", line 393, in __load
    raise DisambiguationError(getattr(self, 'title', page['title']), may_refer_to)
wikipedia.exceptions.DisambiguationError: "and" may refer to:
Conjunction (grammar)
Logical conjunction
Bitwise AND
short-circuit operator
Ampersand
AND gate
And (John Martyn album)
And (Koda Kumi album)
A N D (Tricot album)
Jonah Matranga
...

Oh.
https://github.com/goldsmith/Wikipedia/issues/279


Feature: Use current block - 3 reference for broadcast tx

todo: https://github.com/steemit/steem-js/pull/161/files

Guys could you explain why this change was introduced? I'm often getting an errors while making transactions. I'm on golos blockchain and I'm using a forked version of steem-python.
Here is the my report to golos-python:
https://github.com/GolosChain/golos-python/issues/3
I reverted this change and errors disappeared.

This might explain a recent bug in yo too
On Nov 10, 2017 10:43 AM, "Vladimir Kamarzin"<EMAIL_ADDRESS>wrote:

Guys could you explain why this change was introduced? I'm often getting
an errors while making transactions. I'm on golos blockchain and I'm using
a forked version of steem-python.
Here is the my report to golos-python:
GolosChain#3 https://github.com/GolosChain/golos-python/issues/3
I reverted this change and errors disappeared.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/steemit/steem-python/issues/13#issuecomment-343439819,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAqWaJmNeDRZ2R77dWbk9pN9nXpy_FIZks5s1CjNgaJpZM4N1QXK
.

@sneak
@john-g-g
Is this issue still relevant?
steem-python does not currently implement this.

Yes, it is likely still relevant.  If the change is introducing problems then it's likely a bug in the change, not the concept.
Each tx needs to refer to the block hash of a recent block.  A block from a few blocks ago should be used, instead of the absolute tip of the chain, in the event of a microfork that invalidates the tip block which then renders the transactions that referenced it invalid.

@sneak I think reasonable default is use last_irreversible_block as a reference. This will prevent transactions loosing at chain forks.