Add support for theme typing (Styled Components-like)

Already tested locally and this implementation is working just fine.
import 'rn-css';

import mainTheme from '../../ui/theme/main';

declare module 'rn-css' {
    type MainTheme = typeof mainTheme;

    export interface DefaultTheme extends MainTheme {}
}

Thank you for your pull request.
I admit that I don't understand very well why this change would benefit the users. Can you, maybe, show some example of issues that you have with the current implementation and that would ve solved with this MR?

Simple. One of TypeScript's biggest advantages over JS is IntelliSense. Knowing which properties objects have. With the current implementation, we're simply left with an unknown object. We have to manually check what we can use in it. With this approach, we can create a theme, override the DefaultTheme interface, and we get correct IntelliSense for our themes.

There are easier ways to retrieve the correct types for the theme in the current implementation. For instance:
import { useTheme as useThemeSource } from 'rn-css'

type MyTheme = {
  principal: string,
  secondary: string
}

export const useTheme = useThemeSource as () => MyTheme

Now you can just use this version of useTheme through your app to get the correct type.
If I had a usage example of your code, I might help better maybe.

My usage example is the normal usage. Having types available on
export const Container = styled.View`
background-color: ${({theme}) => theme.colors.background};
`;
```;

I don't think this `useTheme` approach types all cases. Specially since the static type for `styled` is `unknown`

I understand better.
I implemented your changes with a few variations. Can you test this pre-release: 1.6.19-0 ?

From what I tested, you cannot override types and it needs to be on index.ts to be overwritten using that method. (Didn't work, not even changing type to interface)

I wanted to preserve the type to be unknown for those who don't overwrite the type like you do... Anyway, I gave up and released as 1.6.19-1
Tell me if it's ok now

I wanted to preserve the type to be unknown for those who don't overwrite the type like you do... Anyway, I gave up and released

type unknown and an empty interface are virtually the same. It just won't be disclosed that it's unknown, but no IntelliSense will be given. 1.6.19-1 is working fine.


Cannot find module "./routes/routes.js" in material-ui-prepack

I installed structor globally but run the structor with error:
Failed to load resource: the server responded with a status of 404 (Not Found)
then I run npm run install in the project folder, and npm run build，but I found the error:
ERROR in ./src/client/main.js Module not found: Error: Cannot resolve 'file' or 'directory' ./routes/routes.js in C:\Afiles\AWork\material-ui-prepack\src\client  @ ./src/client/main.js 21:14-43
I can not find the routes folder and the routes.js file in this project!
Did you forget to add these files?

@EyEder Find in main menu Export project item, run the exporting - it will create needed files. Then you may run building process.


Support live formatting in NumberField

Provide a general summary of the feature here
I would be very nice to enable live formatting in the RAC NumberField component.
🤔 Expected Behavior?
When a user types the value is formatted while typing.
😯 Current Behavior
The value is currently only formatted when a user blurs (click outside/tab out) the input.
💁 Possible Solution
I would expected this to be the default behavior. But I imagine some developers would like to turn it off. So either a prop liveFormatting?: boolean or a prop noLiveFormatting?: boolean.
🔦 Context
When inputing large numbers (such as when a customer is applying for a loan at a bank), it is much easier for a user to read:
11 500 000, than 11500000 while typing.
💻 Examples
No response
🧢 Your Company/Team
No response
🕷 Tracking Issue
No response

@snowystinger if I remember correctly didn't we want to avoid/minimize live formatting in the NumberField since it felt odd to change the value from under the user as they were typing in the field? There may have been some other challenges getting the live formatting itself working but that was the main thing I remember from all that time ago.

Thanks for the issue. Please see https://react-spectrum.adobe.com/react-aria/NumberField.html#controlled for part of why we do not do live formatting currently.
Also, related discussion https://github.com/adobe/react-spectrum/discussions/6061
In addition, as @LFDanLu pointed out, live formatting would be more difficult over live onChanges because various characters and symbols would be added or removed while typing. This could easily lead to losing the cursor position and would make announcements through assistive technologies not as clear. These problems are also exacerbated by putting the field into a controlled state.
We'd love to be able to support this someday, but there are some major hurdles to figure out before then.

@LFDanLu I think I know where you are coming from. In my experience it depends a little bit on how the live formatting is applied. But I would also like to point out that from an accessibility perspective, live formatting could also ease on cognitive load as big numbers become more readable instantly. I would argue that this not only makes it easier for people with cognitive disabilities or dyslexia, but for everyone. As it takes away load on the brains working memory.
From what you are saying maybe default isn’t the way to go, but how about making it optional? Would be much appreciated 🙏
Also want to say that I think you guys are doing an amazing job with RAC, it is a pleasure to use and a real productivity booster. It is also the only accessible library that I have encountered that actually works. It is also amazing how comprehensive you managed to make it. So thank you!

Thanks for the message!
I don't think we should open value up to being a string, that could have a whole host of problems. However, in the past when thinking about this, I had an idea that we could expose 'inputValue' and 'onInputChange' props, much like Combobox does.
I've not had the time to test it out though, and I'm not sure what kinds of misuse it could open the component to. Parsing those partial numbers is hard, and I'm worried people would use inputValue to make decisions which are locale specific.
For a point of comparison, NumberField has ~400 unit tests, compared to ListView, which has drag and drop and all kinds of other complex interactions, which only have ~160. Even ComboBox only has ~250. And those are both some of our most complex components.
Again, I don't disagree with wanting to support live formatting. I am just not convinced we've found the way to do it yet.


create new layout for component gallery homepage sections

Ready for review in docs-site branch of Design System repo.


Automatic tests

Tests can automatically be run after pushed commits. I am not sure whether the test cases related to the model run on cpu. At least the NeoXArgs testcases do run on cpu.

Getting the impression that tests will not work without gpus I am clossing this issue.


Map plugin fix

The model is empty and there is nothing on the database yet, so
translations handling raises errors.

Maybe just make the title a bit more descriptive?


Added Search_Shopcart_by_User_id

Made the following changes:

Added find_by_user_id method
Added search shopcart by user_id endpoint in routes.py
Added testcases for search shopcart by user_id

One check is failed which shows the test coverage has gone done. Please fix it then restart a pull request

to fix


Update Primitive and GroundPrimitive to use BatchTable

Updates Primitive and GroundPrimitive to use BatchTable instead of per-instance attributes.
This needs to be merged before #4309. It will fix the PolylineGeometryUpdater crashes in that branch.

I have 6 failures in master:

2.2.0finished in 62.849s
raise exceptions
7548 specs, 6 failures, 1 pending spec
Spec List | Failures
Core/VideoSynchronizer Syncs time when looping
Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
    at http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1803:23
Core/VideoSynchronizer Syncs time when not looping
Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
Error: Timeout - Async callback was not invoked within timeout specified by jasmine.DEFAULT_TIMEOUT_INTERVAL.
    at http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1803:23
Renderer/VertexArray renders with a one-component constant value
Expected [ 0, 0, 0, 0 ] to equal [ 255, 255, 255, 255 ].
Error: Expected [ 0, 0, 0, 0 ] to equal [ 255, 255, 255, 255 ].
    at stack (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1475:17)
    at buildExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1445:14)
    at Spec.expectationResultFactory (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:584:18)
    at Spec.addExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:332:34)
    at Expectation.addExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:528:21)
    at Expectation.toEqual (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1399:12)
    at http://localhost:8080/Specs/Renderer/VertexArraySpec.js:273:38
    at Object.<anonymous> (http://localhost:8080/Specs/spec-main.js:139:30)
    at attemptAsync (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1793:24)
    at QueueRunner.run (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1746:26)
Renderer/VertexArray renders with a three-component constant value
Expected [ 0, 0, 0, 0 ] to equal [ 255, 255, 255, 255 ].
Error: Expected [ 0, 0, 0, 0 ] to equal [ 255, 255, 255, 255 ].
    at stack (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1475:17)
    at buildExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1445:14)
    at Spec.expectationResultFactory (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:584:18)
    at Spec.addExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:332:34)
    at Expectation.addExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:528:21)
    at Expectation.toEqual (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1399:12)
    at http://localhost:8080/Specs/Renderer/VertexArraySpec.js:375:38
    at Object.<anonymous> (http://localhost:8080/Specs/spec-main.js:139:30)
    at attemptAsync (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1793:24)
    at QueueRunner.run (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1746:26)
Scene/BillboardCollection renders billboard with sizeInMeters
Expected [ 0, 251, 0, 255 ] to equal [ 0, 255, 0, 255 ].
Error: Expected [ 0, 251, 0, 255 ] to equal [ 0, 255, 0, 255 ].
    at stack (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1475:17)
    at buildExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1445:14)
    at Spec.expectationResultFactory (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:584:18)
    at Spec.addExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:332:34)
    at Expectation.addExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:528:21)
    at Expectation.toEqual (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1399:12)
    at http://localhost:8080/Specs/Scene/BillboardCollectionSpec.js:244:40
    at Object.<anonymous> (http://localhost:8080/Specs/spec-main.js:139:30)
    at attemptAsync (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1793:24)
    at QueueRunner.run (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1746:26)
Scene/PolylineCollection renders bounding volume with debugShowBoundingVolume
Expected [ 0, 0, 0, 255 ] not to equal [ 0, 0, 0, 255 ].
Error: Expected [ 0, 0, 0, 255 ] not to equal [ 0, 0, 0, 255 ].
    at stack (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1475:17)
    at buildExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1445:14)
    at Spec.expectationResultFactory (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:584:18)
    at Spec.addExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:332:34)
    at Expectation.addExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:528:21)
    at Expectation.toEqual (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1399:12)
    at http://localhost:8080/Specs/Scene/PolylineCollectionSpec.js:803:44
    at Object.<anonymous> (http://localhost:8080/Specs/spec-main.js:139:30)
    at attemptAsync (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1793:24)
    at QueueRunner.run (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1746:26)

And 10 failures in this branch:

2.2.0finished in 60.054s
raise exceptions
7547 specs, 10 failures, 1 pending spec
Spec List | Failures
Renderer/VertexArray renders with a one-component constant value
Expected [ 0, 0, 0, 0 ] to equal [ 255, 255, 255, 255 ].
Error: Expected [ 0, 0, 0, 0 ] to equal [ 255, 255, 255, 255 ].
    at stack (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1475:17)
    at buildExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1445:14)
    at Spec.expectationResultFactory (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:584:18)
    at Spec.addExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:332:34)
    at Expectation.addExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:528:21)
    at Expectation.toEqual (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1399:12)
    at http://localhost:8080/Specs/Renderer/VertexArraySpec.js:273:38
    at Object.<anonymous> (http://localhost:8080/Specs/spec-main.js:139:30)
    at attemptAsync (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1793:24)
    at QueueRunner.run (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1746:26)
Renderer/VertexArray renders with a three-component constant value
Expected [ 0, 0, 0, 0 ] to equal [ 255, 255, 255, 255 ].
Error: Expected [ 0, 0, 0, 0 ] to equal [ 255, 255, 255, 255 ].
    at stack (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1475:17)
    at buildExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1445:14)
    at Spec.expectationResultFactory (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:584:18)
    at Spec.addExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:332:34)
    at Expectation.addExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:528:21)
    at Expectation.toEqual (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1399:12)
    at http://localhost:8080/Specs/Renderer/VertexArraySpec.js:375:38
    at Object.<anonymous> (http://localhost:8080/Specs/spec-main.js:139:30)
    at attemptAsync (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1793:24)
    at QueueRunner.run (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1746:26)
Scene/BillboardCollection renders billboard with sizeInMeters
Expected [ 0, 251, 0, 255 ] to equal [ 0, 255, 0, 255 ].
Error: Expected [ 0, 251, 0, 255 ] to equal [ 0, 255, 0, 255 ].
    at stack (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1475:17)
    at buildExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1445:14)
    at Spec.expectationResultFactory (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:584:18)
    at Spec.addExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:332:34)
    at Expectation.addExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:528:21)
    at Expectation.toEqual (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1399:12)
    at http://localhost:8080/Specs/Scene/BillboardCollectionSpec.js:244:40
    at Object.<anonymous> (http://localhost:8080/Specs/spec-main.js:139:30)
    at attemptAsync (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1793:24)
    at QueueRunner.run (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1746:26)
Scene/DebugCameraPrimitive updates when underlying camera changes
Expected undefined not to be undefined.
Error: Expected undefined not to be undefined.
    at stack (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1475:17)
    at buildExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1445:14)
    at Spec.expectationResultFactory (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:584:18)
    at Spec.addExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:332:34)
    at Expectation.addExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:528:21)
    at Expectation.toBe (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1399:12)
    at http://localhost:8080/Specs/Scene/DebugCameraPrimitiveSpec.js:91:34
    at Object.<anonymous> (http://localhost:8080/Specs/spec-main.js:139:30)
    at attemptAsync (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1793:24)
    at QueueRunner.run (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1746:26)
Scene/PointAppearance renders
DeveloperError: Width must be greater than zero.
Error
    at new DeveloperError (http://localhost:8080/Source/Core/DeveloperError.js:44:19)
    at new Texture (http://localhost:8080/Source/Renderer/Texture.js:83:19)
    at createTexture (http://localhost:8080/Source/Scene/BatchTable.js:258:31)
    at BatchTable.update (http://localhost:8080/Source/Scene/BatchTable.js:300:13)
    at Primitive.update (http://localhost:8080/Source/Scene/Primitive.js:1473:26)
    at PrimitiveCollection.update (http://localhost:8080/Source/Scene/PrimitiveCollection.js:366:27)
    at updatePrimitives (http://localhost:8080/Source/Scene/Scene.js:2185:27)
    at executeCommandsInViewport (http://localhost:8080/Source/Scene/Scene.js:2101:9)
    at updateAndExecuteCommands (http://localhost:8080/Source/Scene/Scene.js:1969:17)
    at render (http://localhost:8080/Source/Scene/Scene.js:2393:9)
Scene/PointAppearance renders with translucency
DeveloperError: Width must be greater than zero.
Error
    at new DeveloperError (http://localhost:8080/Source/Core/DeveloperError.js:44:19)
    at new Texture (http://localhost:8080/Source/Renderer/Texture.js:83:19)
    at createTexture (http://localhost:8080/Source/Scene/BatchTable.js:258:31)
    at BatchTable.update (http://localhost:8080/Source/Scene/BatchTable.js:300:13)
    at Primitive.update (http://localhost:8080/Source/Scene/Primitive.js:1473:26)
    at PrimitiveCollection.update (http://localhost:8080/Source/Scene/PrimitiveCollection.js:366:27)
    at updatePrimitives (http://localhost:8080/Source/Scene/Scene.js:2185:27)
    at executeCommandsInViewport (http://localhost:8080/Source/Scene/Scene.js:2101:9)
    at updateAndExecuteCommands (http://localhost:8080/Source/Scene/Scene.js:1969:17)
    at render (http://localhost:8080/Source/Scene/Scene.js:2393:9)
Scene/PointAppearance renders relative to center
DeveloperError: Width must be greater than zero.
Error
    at new DeveloperError (http://localhost:8080/Source/Core/DeveloperError.js:44:19)
    at new Texture (http://localhost:8080/Source/Renderer/Texture.js:83:19)
    at createTexture (http://localhost:8080/Source/Scene/BatchTable.js:258:31)
    at BatchTable.update (http://localhost:8080/Source/Scene/BatchTable.js:300:13)
    at Primitive.update (http://localhost:8080/Source/Scene/Primitive.js:1473:26)
    at PrimitiveCollection.update (http://localhost:8080/Source/Scene/PrimitiveCollection.js:366:27)
    at updatePrimitives (http://localhost:8080/Source/Scene/Scene.js:2185:27)
    at executeCommandsInViewport (http://localhost:8080/Source/Scene/Scene.js:2101:9)
    at updateAndExecuteCommands (http://localhost:8080/Source/Scene/Scene.js:1969:17)
    at render (http://localhost:8080/Source/Scene/Scene.js:2393:9)
Scene/PolylineCollection renders bounding volume with debugShowBoundingVolume
Expected [ 0, 0, 0, 255 ] not to equal [ 0, 0, 0, 255 ].
Error: Expected [ 0, 0, 0, 255 ] not to equal [ 0, 0, 0, 255 ].
    at stack (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1475:17)
    at buildExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1445:14)
    at Spec.expectationResultFactory (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:584:18)
    at Spec.addExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:332:34)
    at Expectation.addExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:528:21)
    at Expectation.toEqual (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1399:12)
    at http://localhost:8080/Specs/Scene/PolylineCollectionSpec.js:803:44
    at Object.<anonymous> (http://localhost:8080/Specs/spec-main.js:139:30)
    at attemptAsync (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1793:24)
    at QueueRunner.run (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1746:26)
Scene/ShadowMap enable debugShow for cascaded shadow map
Expected 13 to be 7.
Error: Expected 13 to be 7.
    at stack (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1475:17)
    at buildExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1445:14)
    at Spec.expectationResultFactory (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:584:18)
    at Spec.addExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:332:34)
    at Expectation.addExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:528:21)
    at Expectation.toBe (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1399:12)
    at http://localhost:8080/Specs/Scene/ShadowMapSpec.js:868:53
    at Object.<anonymous> (http://localhost:8080/Specs/spec-main.js:139:30)
    at attemptAsync (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1793:24)
    at QueueRunner.run (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1746:26)
Scene/ShadowMap enable debugShow for fixed shadow map
Expected 3 to be 2.
Error: Expected 3 to be 2.
    at stack (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1475:17)
    at buildExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1445:14)
    at Spec.expectationResultFactory (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:584:18)
    at Spec.addExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:332:34)
    at Expectation.addExpectationResult (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:528:21)
    at Expectation.toBe (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1399:12)
    at http://localhost:8080/Specs/Scene/ShadowMapSpec.js:881:53
    at Object.<anonymous> (http://localhost:8080/Specs/spec-main.js:139:30)
    at attemptAsync (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1793:24)
    at QueueRunner.run (http://localhost:8080/ThirdParty/jasmine-2.2.0/jasmine.js:1746:26)

@pjcozzi This is ready for another look.

Just a few trivial comments.
All tests pass.
Are you sure coverage for the new/moved code is solid?

@pjcozzi This is ready for another look.

Are you sure coverage for the new/moved code is solid?

Yes. After this change I had to go through most of the tests because they were failing. I also ran through all of the Sandcastle examples.
Now that VTF is required, should we throw a RuntimeError on Context creation?
There shouldn't be any problems with the current built-in per-instance attributes since they are all unsigned bytes, but if a user creates a custom appearance and needs floating point per-instance attribute a RuntimeError will be thrown.

Now that VTF is required, should we throw a RuntimeError on Context creation?

Not in Context, but where this is used if we don't already since you could, for example, still create a globe without VTF, right?

@pjcozzi I added the exceptions. This is ready for another look.


Discord ace perms Deferring Connection

Hello, I just got discord ace perms but its stuck on Deferring Connection when i try to load in, I changed everything for like discord invites and followed a tutorial to install it but its not working please help.

@Baccalmog2
Can you paste your config, with the discord and website links removed? There is an "Add Code" button in the text box just click that when pasting.


Proeprly check exit codes of git subtree

Program exit codes are overwritten by echo/say etc programs

Thanks!


MRG: Sync FieldTrip channel adjacency matrices with FT repository, and improve "read_ch_adjacency" discoverability

Closes #10743
WIP:

[x] improve read_ch_adjacency() discoverability
[ ] update docstrings
[x] add get_builtin_adjacencies()?

cc @sappelhoff

What do you think about instead of adding get_builtin_adjacencies, making sure that we support all montages listed in get_builtin_montages as adjacencies? Then you don't need a separate get_builtin_adjacencies. If some of the montages available in get_builtin_montages are not shipped with FieldTrip then we can create adjacency for them ourselves and ship with mne.

What do you think about instead of adding get_builtin_adjacencies, making sure that we support all montages listed in get_builtin_montages as adjacencies?

Oh I would love that, but I'm not sure we can achieve this … I need to see which ones are missing
But generally I think this is a great idea, yes!!!
And it also, in some way, brings us closer to really "bundling together" our built-in montages and the build-in adjacencies, which addresses #10746 is we're successful

Oh man … I'm getting the feeling this is a bit over-engineered here 🤯

Instead of going with CircleCI, @sappelhoff pointed out that you can get emails from failures for scheduled GH actions runs. So maybe just add a new one of those instead...?
Another option is just to build it into regular CIs like we do with FIFF-constants. If it only adds ~1 sec of testing time, it's probably worth not complicating our CIs further. See for example:
https://github.com/mne-tools/mne-python/blob/0d8f46934d524253b2bcb154460ac9ef17556ac5/mne/io/tests/test_constants.py#L22-L24
And instead of doing a git clone if you just pull the latest main or master tarball, it'll be much faster. (A --depth 1 could also work, but getting the zip directly you don't even need a git command-line call, just a fetch which you can do in Python directly.)

@larsoner I actually meant my entire approach here to the problem, not just the "detail" with CI … my gut tells me this is maybe a bit too much. IDK. I'm basically implementing an entire protocol to keep track of the identity of files…
I'll step away from this for at least a few hours and revisit it later with hopefully fresher eyes

I'm basically implementing an entire protocol to keep track of the identity of files…

My first thought would be

Download .tar.gz of latest fieldtrip:main
Extract
Get list of files
assert set of filenames match
assert hashes of filenames match

I'd expect this sort of thing to be 20-30 lines of some new test_adjacency_matches_ft or something in test_channels.py or some other channels/ file

... and I wouldn't expect this to take longer than ~5 sec on a system with a good internet connection

Only thing we don't do is checking if there's now any additional files in the FT repo that have not yet been mirrored to MNE.

@hoechenberger you mean additional neighbors files? https://github.com/fieldtrip/fieldtrip/tree/master/template/neighbours

looking good! However, I would no longer make this "fieldtrip centric" -- we might add our own "neighbor definitions" after all.

Yes, but let's attack this in a followup PR. I don't want to convoluted stuff too much. Let's do things step by step.
I'm also planning to merge the private structures that currently hold the metadata of our adjacencies and montages into a single one in the future. But again, this will be a followup PR.

nice! A couple of spurious changelog entries snuck in but otherwise LGTM

Oh noes, what exactly do you mean?
I've added a descriptions parameter to get_builtin_ch_adjacencies(), so now its signature is identical to that of get_builtin_montages()!

nice! A couple of spurious changelog entries snuck in but otherwise LGTM

Oh noes, what exactly do you mean?

never mind, seems I was looking at a subset of commits, one of which was a merge of main into this PR.  Made it seem like you had a couple of alexrockhill's changelog entries in this PR.  (A subtle vote for rebasing and force-pushing instead of merging main, I guess?)

Ok I believe this is finally ready to be merged once green! Thanks for all the feedback and great suggestions!

CI failure is unrelated


Unable to view the albums

I am able to view all photos but the album selector does not appear.

Answered in #262


Go back to truncating Sigmoid at [-30, 30]

In e3622ddf5d8e6558 I replaced the old std::function based sigmoid function
with one that uses Eigen arrays. In doing this I dropped the checks that would
return 0 for inputs below -30 and 1 for inputs above 30. These checks weren't
strictly needed: numbers outside this range would cause under/overflows but the
result should still have been correct.
For better or worse, though, ATLAS checks for FPEs. Dropping the checks above
resulted in the FPEs reported in
https://its.cern.ch/jira/browse/ATLASRECTS-6461. This commit returns to the old
behavior which returns 0 or 1 for values outside [-30, 30].

@dguest is is possible to add a test case for what was causing the failure earlier?

Adding a test would probably be possible... We'd have to figure out how to turn on FPE auditing though. Without FPE auditing (which I don't think is usually enabled by default) this won't be a noticeable problem since an underflow will produce 1 / (1 + 0) = 1 and an overflow will produce 1 / (1 + inf) = 0, i.e. exactly the desired outcome.

A simple way , minimal thing to see if any FPE has occured somewhere/anywhere  for simple testing
could look  like
https://godbolt.org/z/W5qx4bv8n
See also [1]
Of course one could install handlers (see "GNU libc function feenableexcept() enables trapping of the floating-point exceptions, which generates the signal SIGFPE. " [1] )
And do it more like we do in ATLAS.
[1] https://en.cppreference.com/w/cpp/numeric/fenv

Thanks @AnChristos, this is really helpful! I think figuring out how we should test for FPEs is probably a more complicated discussion: it will depend a lot on what input domain we want to cover, obviously we can force a lot more FPEs out of this code by feeding in extreme values.
But since this is a bit of a regression from the FPE point of view I'm going to merge this for now. Maybe we should discuss a more comprehensive test in another issue.


Ability to choose a custom icon or choose image from gallery

User should have the ability to choose an icon from a list of icons, or choose their own image from their image app

Added in PR #18


Typedef definitions go generator

Changes introduced with this PR
A golang code generator that takes an Arcaflow schema YAML structure loaded using Arcaflow library and generates the type definitions in Go code.
For the reviewers convenience, a valid schema_input.yaml can be found here.

By contributing to this repository, I agree to the contribution guidelines.

Opened this PR in the wrong repo, should be arcaflow-plugin-sdk-go instead.


Limit which files are included in published package

See https://docs.npmjs.com/files/package.json#files

Specifically, we want to exclude files that are for testing.


Upgrade Avrohugger to RC12 for Instant type

When upgrading to Avrohugger 1.0.0-RC12 timestamp_ms in the AVDL will be turned into java.time.Instant rather than LocalDateTime.  To keep backwards compatibility between versions  I think we'd need to have both of those types be serialized/deserialized the same way.
I'd love for any feedback.

I can start on the upgrade this weekend and see where I can get.

Thanks @zmccoy. I agree with you, the encoders defined in freestyle-rpc for LocalDateTime encode the values with the Timestamp millisecond precision approach.
https://avro.apache.org/docs/1.8.2/spec.html#Timestamp+(millisecond+precision)


Support sample rate

Add sample rate to the client: https://docs.sentry.io/error-reporting/configuration/#sample-rate
Example: https://github.com/getsentry/sentry-dotnet/blob/ba4e1f46c843eec57f1e93a2376b533b8d84ebfd/src/Sentry/SentryClient.cs#L107-L113

https://github.com/getsentry/sentry-dart/pull/127


Make sure META6.json has a version

Maybe it's also worth considering releasing this module through the zef ecosystem.

ping  :-)


nextjs compatibility - window is not defined SSR

I tried to integrate the lib into an nextjs project. While the CSR version of this lib is working fine, the SSR version with the BrowserRouter component is not working.
- error<EMAIL_ADDRESS>(1:6931) @ eval
- error ReferenceError: window is not defined
    at __webpack_require__ (/home/lain/repos/Typescript/houkoku/.next/server/webpack-runtime.js:33:42)
    at eval (./app/report/page.tsx:7:70)
    at Object.(sc_client)/./app/report/page.tsx (/home/lain/repos/Typescript/houkoku/.next/server/app/report/page.js:283:1)
    at __webpack_require__ (/home/lain/repos/Typescript/houkoku/.next/server/webpack-runtime.js:33:42)
null

The BrowserRouter is  a very basic implementor of the router and doesn't support SSR, you can use third-party common router component

feel free to reopen the issue if you still need help


Message correlation fails when using a process instance id

When trying to correlate a message to the engine and using the parameter "processInstanceId" in the body, you are not allowed to also use the parameter "withoutTenantId". By default, this parameter always is inside the body and correlating the message fails.

@jonathanlukas
Thank you for raising this issue.
Due to time constraint, I will not be able to fix it myself soon.
If you would like, please create a PR with the fix. Thanks.

Fix merged in PR: https://github.com/yogeshrnaik/camunda-external-task-client-python3/pull/40


disconnected in the middle of a session

Issue Type: Bug
start a session, wait until it crashes. sorry - don't have any idea why it crashed.
Extension version: 1.0.2740
VS Code version: Code 1.49.0 (e790b931385d72cf5669fcefc51cdf65990efa5d, 2020-09-10T17:39:53.251Z)
OS version: Darwin x64 19.6.0

System Info

Item
Value

CPUs
Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz (16 x 2400)

GPU Status
2d_canvas: enabledflash_3d: enabledflash_stage3d: enabledflash_stage3d_baseline: enabledgpu_compositing: enabledmetal: disabled_offmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onprotected_video_decode: unavailable_offrasterization: enabledskia_renderer: disabled_off_okvideo_decode: enabledwebgl: enabledwebgl2: enabled

Load (avg)
6, 5, 5

Memory (System)
32.00GB (0.02GB free)

Process Argv
dashboard-expo-settings-client

Screen Reader
no

VM
15%

Thank you for reporting the issue, and apologies for the inconvenience. Do you know how long it was into your session that it crashed?
This is part of an onging sev we're investigating. Please follow #3835 for updates


[CHALLENGE SUBMISSION]

Please provide the following information for your submission:
What is your name? (First, Last)
Joeri Van Hoof
Where is your GitHub Repo ?(With your challenge solution)
https://github.com/jvhoof/AzureEats-Website/tree/challenge2
What Challenge is this for? (Challenge number between 1 and 5)
2
(Optional) Anything else we should know? e.g., language used, location, blog post?

Thanks for participating in the #TerraformOnAzure coding challenges!
We have attached your very special Astronaut Badger background, for you to use in all your upcoming video calls!
And to recognize you for your learning, you can collect your digital Azure Heroes badge on your mobile (you may need to install the Enjin wallet to collect it). Make sure to collect it today!
https://beam.enjin.io/claim/d32599695c8c28cfc24820492080fac0
Keep on learning and sharing!
Greetings from the #TerraformOnAzure team,
Suzanne, Floor, Erik & Nick


Make dora and its examples work on Windows and macOS

This PR updates the CI jobs to test dora and run the examples also on Windows and macOS. It also adds the executable and shared library file extensions automatically (e.g., .exe and .dll on Windows) and changes the example dataflow files to be cross-platform. To make the C and C++ examples buildable on Windows and macOS, this PR add conditional compilation to add the respective clang and linker flags.
TODO:

[x] Update C/C++ build instructions in READMEs to be cross-platform
[x] Fix Python Example
[x] Sink: check for end of input

Note: This PR contains many debug commits, so it should be squashed on merging.

I'm ok with this PR! It highlights the complexity and the need for our nodes to be cross-compilable for OS.


Hope to have match with "axios."

Is your feature request related to a problem? Please describe.
When I type axios , here is code tips list : [axios.get , axios.all ....etc]
And then when I input "." , all tips list was disappeared. So bad experience.
Describe the solution you'd like
Hope to have match with "axios."
I'm not sure is this is plugin error or my vscode setting error.
Additional context
IMG 1

IMG 2

Find same problem ,https://github.com/polaris-dxz/vscode-axios-snippets/issues/1#issue-928912165 , but no solution

I find that move mouse and click other line ,then move back to continue type ,there will show tips list


Install gravity

https://gravity.ci/

@paoloricciuti, Gravity needs a single output file to watch for size changes. Is there something like that for svelte? I see we have dist/index.js but I'm not sure if that's the same thing

Mmm i don't think we have a single file that bundles everything

Gravity needs a single output file to watch for size changes
That seems false, gravity expects a build output directory path as an argument AFAIK.


updated abiotic module summary

Description
Updated documentation general overview over abiotic module (was very outdated).
Type of change

[ ] New feature (non-breaking change which adds functionality)
[ ] Optimization (back-end change that speeds up the code)
[ ] Bug fix (non-breaking change which fixes an issue)

Key checklist

[x] Make sure you've run the pre-commit checks: $ pre-commit run -a
[x] All tests pass: $ poetry run pytest

Further checks

[x] Code is commented, particularly in hard-to-understand areas
[] Tests added that prove fix is effective or that feature works

Codecov Report

Merging #120 (761e602) into develop (290caba) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 761e602 differs from pull request most recent head af79778. Consider uploading reports for the commit af79778 to get more accurate results

@@           Coverage Diff            @@
##           develop     #120   +/-   ##
========================================
  Coverage    96.35%   96.35%
========================================
  Files           10       10
  Lines          412      412
========================================
  Hits           397      397
  Misses          15       15

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Use const references instead of const value in range loops.

Signed-off-by: Henner Zeller<EMAIL_ADDRESS>

Codecov Report

Merging #1156 (3d16492) into master (1360e49) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #1156   +/-   ##
=======================================
  Coverage   92.83%   92.83%
=======================================
  Files         337      337
  Lines       22577    22577
=======================================
  Hits        20960    20960
  Misses       1617     1617

Impacted Files
Coverage Δ

common/analysis/lint_waiver.cc
93.51% <100.00%> (ø)

common/text/text_structure.cc
96.70% <100.00%> (ø)

common/text/token_stream_view.cc
100.00% <100.00%> (ø)

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 1360e49...3d16492. Read the comment docs.


Roll Engine from 033dd4560744 to 460039e0e086 (7 revisions)

https://github.com/flutter/engine/compare/033dd4560744...460039e0e086
2020-08-04<EMAIL_ADDRESS>Roll Skia from fcfe541ee527 to 471235dba5ca (1 revision) (flutter/engine#20220)
2020-08-04<EMAIL_ADDRESS>Roll Skia from 093de4eb2ca9 to fcfe541ee527 (3 revisions) (flutter/engine#20219)
2020-08-04<EMAIL_ADDRESS>Roll Skia from a52442ab76f8 to 093de4eb2ca9 (14 revisions) (flutter/engine#20214)
2020-08-04<EMAIL_ADDRESS>Roll Dart SDK from 0f0e04ec3afa to 987c9e347ca4 (5 revisions) (flutter/engine#20210)
2020-08-04<EMAIL_ADDRESS>Roll Fuchsia Mac SDK from i0zTcQ8Qb... to R1zocs5zS... (flutter/engine#20190)
2020-08-04<EMAIL_ADDRESS>Roll Fuchsia Linux SDK from d_5wDVmBd... to XqPm_i5Wp... (flutter/engine#20177)
2020-08-04<EMAIL_ADDRESS>fuchsia: Remove dead code / break dependencies (flutter/engine#19396)
Also rolling transitive DEPS:
fuchsia/sdk/core/linux-amd64 from d_5wDVmBdmLo to XqPm_i5WptHQ
fuchsia/sdk/core/mac-amd64 from i0zTcQ8QbjHA to R1zocs5zSvW_
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/master/autoroll/README.md

Commit queue failed; closing this roll.


PR: Add .pyt and .pyi as extension recognized as Python files (Editor)

Description of Changes
This was requested in https://github.com/spyder-ide/spyder/issues/638#issuecomment-719724646. According to the user, ArcGIS uses pyt as the extension for its Python scripts.
Also, pyi files are very becoming common in compiled libraries (e.g. Numpy).

[ ] Wrote at least one-line docstrings (for any new functions)
[ ] Added unit test(s) covering the changes (if testable)
[x] Included a screenshot or animation (if affecting the UI, see Licecap)

Affirmation
By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct: ccordoba12

Not all python scripts for ArcGIS are *.pyt files, they are just a specific variant... useful perhaps, but linting can be accomplished just by dropping the 't'

Not all python scripts for ArcGIS are *.pyt files

Thanks for chiming in @Dan-Patterson. Should I add other file extensions then?

@ccordoba12 ... no, pyt are just "python toolbox" files.  They are python, pure and simple.  Keeping the "t" is just a convenience, in case linters etc, don't recognize the file extension.  I suppose you can add *.pyi  to the recognized python filename variants (see numpy).

Thanks for the suggestion. Done.


feat: add 'transparent' to tailwind color list

Feature request
transparent should be in the color presets.
This would allow us to use classes like vtmn-border-transparent, vtmn-bg-transparent
Those are actually useful to "cancel" properties in a mobile-first approach :

Preferred solution
This can be done by adding 'transparent' value in the color presets
Alternatives
It can be extended in local config of projects using @vtmn/css-tailwind-preset but I feel this seems like a good add-on to "core" vitamin
Related code
in the tailwind preset file :
module.exports = {
  // ...

  theme: {
    // ...

    colors: {

      transparent: 'transparent',

      // ...
      // ...
      // ...

Thansk @crotru for your proposal. I'll do it.

Hi @crotru,
This is done thanks to this PR https://github.com/Decathlon/vitamin-web/pull/879
It's now available in @vtmn/css-tailwind-preset>=0.33.31
Thanks again ;)

Thank you :)


First release?

Hey @emanlove, thanks for sharing this with the community! Any chance to get an alpha release?

Working on a release now. Just playing with ReST and PyPI...

@tisto Sorry about the delay. We lost power yesterday in the snowstorm. I have made release 0.0.1 to PyPI. The README.rst is still ugly on PyPI (and not sure why :( ) ... but it is released!

@emanlove awesome! Thanks! Will give it a shot and report back.

@emanlove works like a charm!

@tisto Are you using it with Plone? Have you also looked at the Extended Selenium2Library by Richard Huang?

@emanlove not yet. I'm currently using it or this:
https://github.com/tisto/djangorestframework-schemaform
No, will have a look at the Extended S2L. Which one would you recommend, your lib or this one?

They are actually complimentary. Mine has locators with a wait for angular statement while Richard's has wait for angular statement along with using the wait before taking action on select Selenium2Library keywords. This wait before performing a selenium action is what protractor does. In addition protractor waits before looking for an element which neither of our libraries does this yet. I want to incorporate more of what protractor does in regards to waiting.


backend/transaction: auto select highest fee for payment requests

There was a bug in the payment request implementation that didn't correctly support mempool.space fees and resulted in a fee error during the tx proposal on production environment.
This commit moves the fee target selection for payment requests in the BE and fixes the bug.

@benma all done, PTAL :pray:

Moved all the FeeTargets code to coins/btc/feetarget.go and added unit tests. Thanks :pray:


Prefix-Prefix Concrete Parenting: Alpha-completeness

See #2915 for context.

[x] Add Required FK from Prefix to Prefix

Schema will require an object to exist
"Global" prefixes created for "Global" namespace

[x] The edit view/form

[x] If you provide a prefix, find the closest parent
[x]  If you don't provide a prefix you must provide a namespace
[x] UI shouldn't need to show the parent, as that parenting is enforced to be correct, but should show namespace

[x] Add ip_version

Follow-on: #3467

Done with #3452


Added methods to Get country code from Dial code and other variables

Added methods to Get country code from Dial code and other variables.
Users can now simply call CountryCode.fromDialCode("+91") to get the complete country model.

Thanks for your PR, this will help a lot for convenience!


Add options object with ignore property to modern useFakeTimers function

Summary

Since version 27, the "modern" useFakeTimers implementation became the default implementation. Unfortunately, this way doesn't support the async/await pattern. This is caused because the process.nextTick function is mocked which causes the async tests to timeout.
Issue can be found here: https://github.com/facebook/jest/issues/10221
Test plan

Codecov Report

Merging #11661 (569028a) into master (fdc74af) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master   #11661   +/-   ##
=======================================
  Coverage   69.01%   69.01%
=======================================
  Files         312      312
  Lines       16335    16336    +1
  Branches     4734     4734
=======================================
+ Hits        11273    11274    +1
  Misses       5034     5034
  Partials       28       28

Impacted Files
Coverage Δ

packages/jest-fake-timers/src/modernFakeTimers.ts
86.20% <100.00%> (+0.24%)
:arrow_up:

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 fdc74af...569028a. Read the comment docs.

Any chance of this one getting merged? Seems pretty straightforward, and non-breaking. One suggestion would be to add documentation about the new options arg

@jschoubben ping 🙂

It would be awesome to get this merged. What if someone from the core team handle it since it's partly done? 😃

https://github.com/facebook/jest/releases/tag/v28.0.0-alpha.8


chore(main): release 1.1.0

:robot: I have created a release beep boop
1.1.0 (2024-09-05)
Features

add mad filter (a44f916)
add session (4341eab)
count response size (ef11c05)
refactor recorder package (9cdd5be)
refactor runner (57394dc)
update model (942a629)

Bug Fixes

stop iqr filtering on empty list (7bf815a)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v1.1.0
:sunflower:


[locale] Correct swedish ordinals

Moment is currently formatting Swedish ordinals incorrectly. Added colon between number and ordinal character.
Ping @ulmus as original author.
Sources:

https://learningswedish.se/courses/1/pages/ordinal-numbers
http://swedishbitz.com/ordinal-numbers/

Coverage increased (+0.02%) to 88.426% when pulling cc9a7ae01641aee10a517b06c8bb9cd2a454a014 on perenstrom:correct-swedish-ordinals into 13a61b285c095bda7ea8e33156090ea5ccfeaef1 on moment:develop.

I can't really decipher the travis error, but it doesn't seem to be related to my PR?

Would someone please reply about what's going on with Travis error, there's dozens of PRs waiting due to obscure Travis CI errors, including mine
@marwahaha @ichernev

Don't worry about the travis issue for now.
@perenstrom Can you point to some official documents describing the datetime rules for this locale? Also, if the existing format is also used in practice it makes sense to at least let parsing work for both the old and new format.

@ichernev
I have attached some screenshots from "Svenska Skrivregler" (Swedish Rules for Writing) published by "Institutet för språk och folkminnen" (Institute for Language and Folklore). They are "a Swedish government agency with a focus on dialects, language policy, language planning,  names and folklore."
https://www.isof.se/om-oss/verksamhet/about-the-institute.html
The book: https://www.isof.se/om-oss/publikationer/institutets-publikationer/sprakvard/2017-07-06-svenska-skrivregler-2017.html
Ordinals
The screenshots says:

Ordinals.
Ordinals are written with numbers followed by a colon and the ordinal's last letter.

Ordinals and date
The sreenshot says:

In dates with day followed by month, the day is always written with only numbers (>11.6.2). This also applies to regency numbers, which are always expressed with roman numerals (>11.12).
Ludvika the 6th of June, Carl XVI Gustaf

Dates
The screenshot says:

Dates
a) dates with names of month
Dates kan be written multiple ways. The most clear and suitable way is to write the month's name with letters. This way of dating can always be used in body text as well as in numerous other contexts.
(den) 20 maj 2009 (the 20th of May 2009)
The word den (the) is usually written, but can be left out, especially when the date is not in body text. When the month is not given, den (the) has to be written for clarity. Ordinals are normally not marked with colon and ending letter in dates.
Payment is made den 15 (the 15th) of each month.
If it isn't clear that the text is regarding a date you can for clarity use colon and ending letter.
It was something mystical with den 15:e (the 15th)


Fix checking config.rules when config is null

Possible fix for #78.  Not sure I've used 'hasOwnProperty' correctly, but this at least works for me when there is no user config.

Superseded by #80


Support xy_color for all light platforms

Description:
I wanted to add xy_color support for LIFX, but moving the conversion to core seems like a preferable approach?
The xy_color support is needed for light profiles and the flux switch and it is also used in several online examples. Thus, it makes sense to have it available globally.
I have tried to update the hue.py file but I have no way of testing that it still works!
Related issue (if applicable): fixes #
Pull request in home-assistant.github.io with documentation (if applicable): The documentation already gives the impression that xy_color is supported everywhere.
Checklist:
If the code communicates with devices, web services, or third-party tools:

[X] Local tests with tox run successfully.

I change the subject to [WIP] until I have the time to get a test case added.

This is a bit weird, but the test already expected a non-XY supporting light to accept XY colors and then return RGB values.
So the new test is to remove that supporting code and observe that the RGB test still passes.
This way, the demo light works more like a real RGB-based light and with this PR it still accepts XY colors as input.

I have changed this as requested though I think it is a shame that we do not get feature parity (such as the Flux disable_brightness_adjust support).
Just for my education, can you give an example where light.brightness will be wrong?

Using light.brightness from the active state feels weird. With taking the brightness we will never be able to represent the color that was passed in.
If I call a service to turn two lights red, I think that it will feel weird if one light be pink and the other red. Although we try our best, it's not what the user expects. So by not working, the user will make sure it also passes the right RGB color into the service.

Sorry, but I am not convinced.
When the user does not specify a brightness, keeping it at the current setting is exactly what he will expect. He is not going to file error reports, he will just think “So that took care of the color. Now, on to the brightness”.
Because color and brightness are separate things. One can see that they are separate because they are separate widgets everywhere you select a color, indeed also in the HA UI. Forcing the two together in the service call is what’s weird and it will make a number of useful operations impossible.
Finally, to keep shared examples working and to keep the documentation simple, I think it is important that HA – as much as possible – presents a unified interface for all platforms. If avoiding this alleged red/pink confusion is truly the most user friendly option surely we should be kind enough to also deny Hue owners the right to set an xy_color without brightness? Imagine doing such a service call on a light group that has both a Hue and a LIFX bulb ... only one of them will react.
(Note, though I disagree, I did update the code as you requested)

On a more technical note, I can only test with LIFX and I am actually not sure that using light.brightness will currently work for all platforms. I see that as an implementation detail that can be fixed, not something that should dictate whether the feature is desirable or not.

We can still allow users to set a XY color on Hue because in that case Hue will take the responsibility of doing the right thing. Maybe we should invite a tie breaker to this discussion, anyone else who wants to join in, @armills maybe?

I guess that sums up my confusion: why is the red/pink thing "weird" if HA does it, but "the right thing" when Hue does it.
(with red/pink, I assume we are talking about a dim/bright version of the same color, as described by the xy_color coordinate)
Good idea with a third opinion and I am relieved that the patch set is okay now, thanks 👍

OK, here are my thoughts: First of all, I'm OK using the current brightness state if necessary. I think the red/pink issue is a bit of a confusion. If we think in terms of HSV colorspace, red vs pink would be high saturation vs low saturation. We're talking about changing the value (brightness) here, so it would just be bright red vs dim red. Especially in the context of light bulbs the perception is that these are the same color.
I don't think that we should be doing this conversion at the component level, though. Like @balloob said, we really want this to pass through to platform level to reduce core complexity. Plus, after this change lights that don't flag SUPPORT_XY_COLOR will start responding to xy requests, which I don't think is a good idea. Also consider that if we pass this down to the LIFX platform, we could instead map xy to the LIFX hue/saturation, and then just not send brightness. LIFX can retain it's brightness internally, so we're not calculating a command based on the hass stored state.

Thanks for your input @armills. Even though I worked disproportionately hard to get this small change in shape, I am happy to toss it and move the functionality down to LIFX. Especially if it means that I get to do things the way I want to :-)
I thought it would be nice to get xy_color support for all platforms, in particular because other features depend on it. But it is entirely likely that I was naive. So @balloob, just tell me if I should change course.
(Unfortunately, the low-level LIFX LAN protocol does require brightness when setting a color. The cloud API that you link to is probably caching state the same way that I propose to do it. Also, our xy->hsv converter util currently goes xy->rgb->hsv so there is no easy way to avoid the rgb step)

Yeah, I've done my fair share of throwing out work myself. :) In the end we want to make sure we're doing what's best long-term.
It's unfortunate to about the LAN API issue. I do think it's the best to allow each platform to handle it on its own, since each platform API could have similar features that could be taken advantage of. Just my opinion though.
It might be worth considering a conversion of color_xy_brightness_to_hsv to color_xy_to_hs. The current code should basically always give back the same value as the input brightness, but is first being converted to RGB. IMO it would be better to have the function more specifically map xy to hs, since it's easy to pass through the value if you want it, but in the context of IoT, it's common to only be interested in the chromacity. Again, depends on @balloob's opinion. This is currently the only usage, and it's possible this could take advantage of not defining brightness there, since it's just passing through the old state.

I agree, let's close this and I will implement it just for LIFX.

Alright, thanks for staying positive while we figure out the right thing 👍

(and just so you know, for the LIFX integration you're in charge 👍 )


升级到0.1.4后，Ksoup.parseGetRequest(url)不可用了

Describe the bug
ksoup 升级到0.1.4版本后，
ktor 今天也更新到了3.0.0-beta-2（为了支持wasmJs）
刚刚发现使用Ksoup.parseGetRequest(url)请求页面内容时，android 端会遇到400 Bad Request错误，桌面端也出现了部分页面异常
目前暂时先使用Ktor请求页面数据后，采用Ksoup.parse(result)的方式解决问题
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Sample Code
If applicable, add sample code or snippets to help explain your problem.
Device (please complete the following information):

Device: android
OS: android 14

Additional context
由于时间太晚了，我这里现在是凌晨 00:43分，所以没琢磨是怎么回事，但我有注意到似乎不是使用的ktor作为Ksoup的网络请求工具，也许新的这个存在某种问题。

@Matcha-xiaobin we can't reproduce this issue can you please give us link with which you have that issue?

@itboy87
测试访问页面地址: https://fengchedmp.com
测试代码：
val htmlElement = Ksoup.parseGetRequest("https://fengchedmp.com")
val elementText = htmlElement.text()
Log.d("页面数据: $elementText")

log:
页面数据: 400 Bad Request nginx

@Matcha-xiaobin its working fine if link end with slash https://fengchedmp.com/  may be host verifying something and i think its not issue related to ksoup

@Matcha-xiaobin i found this issue related to korlibs-network i already opened pull request for this https://github.com/korlibs/korlibs-io-network-core/pull/4 and for now you need to append / at the end of link

@Matcha-xiaobin i found this issue related to korlibs-network i already opened pull request for this https://github.com/korlibs/korlibs-io-network-core/pull/4 and for now you need to append / at the end of link

Okay, thanks!


fix: client read state race

https://github.com/yomorun/yomo/blob/80f0a05e2a4d04a7cc16dd5238dd277742d0fc49/core/client.go#L242
Here race also, this state changing is out of lock.


Practice running the microservice from git bash , also make an alias for the curl response to only respond with output and remain silent about the connection

Also kill the process using kill $(jobs -p).
alias curlresponse='curl -sS -o -'
java -jar product-service/build/libs/*.jar &

Done


Fix doc examples

@phadej I'm absolutely delighted by this package. It's so well documented and easy to use. You're doing great work for Haskell community. Thank you!
This PR fixes most documentation examples that didn't work with the current version of the package.

@phadej I think it's ready to merge

Thanks!


Check tagged-table before runing autocomplete query.

If tagged-table is not specified graphite-clickhouse performs autocomplete query anyway.
ERROR [query] query {"query": "SELECT splitByChar('=', Tag1)[1] AS value FROM   WHERE Date >= '2020-10-14' GROUP BY value ORDER BY value LIMIT 100", "request_id": "c8a81a213f98c466bb800811b3754cef", "error": "clickhouse response status 400: Code: 62, e.displayText() = DB::Exception: Syntax error: failed at position 61 ('>='): >= '2020-10-14' GROUP BY value ORDER BY value LIMIT 100. Expected one of: JOIN, OFFSET, PREWHERE, ARRAY JOIN, SETTINGS, UNION ALL, FINAL, WHERE, GROUP BY, SAMPLE, INNER, WITH, HAVING, LIMIT, FORMAT, ORDER BY, INTO OUTFILE, array join, LEFT ARRAY JOIN, table, table function, subquery or list of joined tables (version <IP_ADDRESS>)\n", "time": 0.002920694}
INFO access {"request_id": "c8a81a213f98c466bb800811b3754cef", "time": 0.003006255, "method": "GET", "url": "/tags/autoComplete/tags?limit=100", "peer": "<IP_ADDRESS>:55472", "status": 500}

Hey @lexx-bright

Hey @lexx-bright


One should be able to mark peers to ban during begin_consensus_epoch

This will be handy for making certain modules. Otherwise, one needs to add an additional db type to stage banning.

@evanlinjin do you have an example of where you would need to ban peers at the beginning of the epoch?


Relative paths in file interface

While coding my Zion Commander I noticed that in order to load files I always have to use the absolute path.
But this also applies to all programs that try to run from a directory other than the root directory.
If they use other resources that are loaded after running them, they must either be in the root directory,
or they must be pointed to using an absolute path.
Without working relative paths, grouping programs in folders with their resources is severely hampered.
I think a simple solution could be to add to the API the ability to define a CWD - current working directory.
And then add its support to functions that operate on files.

@davidgiven one for you ?

There is CWD tracking, but you have to explicitly use function 3,15 (ChangeDirectory) to change it. Also, I don't think anyone's tried it yet. I think it does make sense to change directories in the loader to the one containing the binary, but that's strictly a loader issue, so right back at you, @paulscottrobson !

o thanks! I will try using 3,15 and let you know.

Looks like it's working! Thanks for guiding me on the right path.
The issue can be closed.


freeimage x86-windows-static | x64-windows-static

when I include calls to freeimage (from within a class library function) such as:
FREE_IMAGE_FORMAT imgType = :FreeImage_GetFileTypeU(lpszFileName);
the vc linker links my project as a static library:
Creating library D:\Development\Projects\fotoXplorer\Release\fotoXplorer.lib and object D:\Development\Projects\fotoXplorer\Release\fotoXplorer.exp
when I comment out any FreeImage_XXXX calls..all is OK.

Sorry, I don't know what you are talking about. I suggest:

Use Visual Stduio project(vcxproj)  and build your project as a static library?
Use CMake project and build your project as a static library?

For <1>, what the project generates depends on which one you selected in the project-properties-General-Configuration Type.
For <2>. what is generated by the project depends on the "shared" or "static" set in add_library.

Hello,
I've created a sample dialog box based app (solution) using MFC which shows the linking problem.
Instructions:
1.  Build (release, x86) and run this simple dialog program.
2.  Uncomment the 'FreeImage Library' code in function CMainDialog::SampleFunction()
3.  Build and (try) to run again.
Notice VC tries to create a library, and not an executable.
I've also noticed that when building the x64 versions (release|debug), VC can't locate "FreeImage.h" even though I installed it (.\vcpkg install freeimage:x64-windows-static).  I would suggest a batch-build x64 | x86 (debug and release).
The sample is built using Visual Studio 2017 Community Edition
FreeImageSample.zip

When I leave these comments and build, shows:

1>------ Build started: Project: FreeImageSample, Configuration: Release Win32 ------
1>MainDialog.cpp
1>Generating code
1>0 of 233 functions ( 0.0%) were compiled, the rest were copied from previous compilation.
1>  0 functions were new in current compilation
1>  2 functions had inline decision re-evaluated but remain unchanged
1>Finished generating code
1>FreeImageSample.vcxproj -> F:\FreeImageSample\Release\FreeImageSample.exe
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

And remove these comments and rebuild, shows:

1>------ Build started: Project: FreeImageSample, Configuration: Release Win32 ------
1>stdafx.cpp
1>FreeImageSample.cpp
1>MainDialog.cpp
1>   Creating library F:\FreeImageSample\Release\FreeImageSample.lib and object F:\FreeImageSample\Release\FreeImageSample.exp
1>Generating code
1>All 233 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
1>Finished generating code
1>Half-2_3_s.lib(half.cpp.obj) : error LNK2005: "private: static short __cdecl half::convert(int)" (?convert@half@@CAFH@Z) already defined in Half-2_3.lib(Half-2_3.dll)
1>F:\FreeImageSample\Release\FreeImageSample.exe : fatal error LNK1169: one or more multiply defined symbols found
1>Done building project "FreeImageSample.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

I added it to the .vcxproj file (as VCPKG does when integrated, which it is as my other projects use Exiv2)
Here are the results.  Although, I think you are missing my point so I will hilite it in bold.
Uncommented
------ Rebuild All started: Project: FreeImageSample, Configuration: Release Win32 ------
stdafx.cpp
FreeImageSample.cpp
MainDialog.cpp
Creating library D:\Development\Side Projects\FreeImageSample\Release\FreeImageSample.lib and object D:\Development\Side Projects\FreeImageSample\Release\FreeImageSample.exp
Generating code
All 233 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
Finished generating code
Half-2_3_s.lib(half.cpp.obj) : error LNK2005: "private: static short __cdecl half::convert(int)" (?convert@half@@CAFH@Z) already defined in Half-2_3.lib(Half-2_3.dll)
D:\Development\Side Projects\FreeImageSample\Release\FreeImageSample.exe : fatal error LNK1169: one or more multiply defined symbols found
Done building project "FreeImageSample.vcxproj" -- FAILED.
------ Rebuild All started: Project: FreeImageSample, Configuration: Debug Win32 ------
stdafx.cpp
FreeImageSample.cpp
MainDialog.cpp
Generating Code...
Half-2_3_s_d.lib(half.cpp.obj) : error LNK2005: "private: static short __cdecl half::convert(int)" (?convert@half@@CAFH@Z) already defined in Half-2_3_d.lib(Half-2_3_d.dll)
Creating library D:\Development\Side Projects\FreeImageSample\Debug\FreeImageSample.lib and object D:\Development\Side Projects\FreeImageSample\Debug\FreeImageSample.exp
D:\Development\Side Projects\FreeImageSample\Debug\FreeImageSample.exe : fatal error LNK1169: one or more multiply defined symbols found
Done building project "FreeImageSample.vcxproj" -- FAILED.
========== Rebuild All: 0 succeeded, 2 failed, 0 skipped ==========
When the code in SampleFunction() is commented out it builds FreeImageSample.exe (as it should).
Commented
------ Rebuild All started: Project: FreeImageSample, Configuration: Release Win32 ------
stdafx.cpp
FreeImageSample.cpp
MainDialog.cpp
Generating code
All 233 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
Finished generating code
FreeImageSample.vcxproj -> D:\Development\Side Projects\FreeImageSample\Release\FreeImageSample.exe
------ Rebuild All started: Project: FreeImageSample, Configuration: Debug Win32 ------
stdafx.cpp
FreeImageSample.cpp
MainDialog.cpp
Generating Code...
FreeImageSample.vcxproj -> D:\Development\Side Projects\FreeImageSample\Debug\FreeImageSample.exe
========== Rebuild All: 2 succeeded, 0 failed, 0 skipped ==========
Notice how in the second rebuild all (commented) there's no output entry for Creating library D:\Development\Side Projects\FreeImageSample\Release\FreeImageSample.lib and object D:\Development\Side Projects\FreeImageSample\Release\FreeImageSample.exp.
There's nothing in the source | solution | project files that would trigger vc thinking its building a library, and not an executable.

I'm trying to use static OIIO library and I get the same following error:

1>Half-2_3_s.lib(half.cpp.obj) : error LNK2005: "class std::basic_ostream<char,struct std::char_traits > & __cdecl operator<<(class std::basic_ostream<char,struct std::char_traits > &,class half)" (??6@YAAEAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AEAV01@Vhalf@@@Z) already defined in Half-2_3.lib(Half-2_3.dll)
1>Half-2_3_s.lib(half.cpp.obj) : error LNK2005: "private: static short __cdecl half::convert(int)" (?convert@half@@CAFH@Z) already defined in Half-2_3.lib(Half-2_3.dll)

Did you come up with an idea how to solve this?

Hello,
No solution.  I tried to explain that the created libraries were changing the output of the target that is linking to them.  I even supplied a sample.

Offline quote from @ras0219-msft

I think the problem is that whoever produces half-2_3 is shipping both static and dynamic libs (half-2_3-s)

Please reopen this issue if it still bother you.
Thanks.


[BUG] Update troubleshooting document.

Describe the bug (🐛 if you encounter this issue)
Earlier today, a pod crashed, which caused the volume to go into an attach/detach loop.
I proceeded to check the documentation, and found a troubleshooting guide which sounds relevant to this issue.
https://longhorn.io/kb/troubleshooting-volume-filesystem-corruption/
It says, attach the volume to a node. So, I attach the volume to one of my nodes, with maintenance checked.
I have no earthly idea where this volume is mounted on this node. lsblk shows no sign of it. I cannot see it in /dev/longhorn either.
So, I detach the volume, and attach it without maintenance checked.
Ok, so, now I can see this volume in /dev/longhorn, with the expected name.
So, the documentation, just says, run fsck on it. Sure.
root@kube01:/dev/longhorn# fsck /dev/longhorn/unifi
fsck from util-linux 2.37.2
e2fsck 1.46.5 (30-Dec-2021)
/dev/longhorn/unifi is in use.
e2fsck: Cannot continue, aborting.

root@kube01:/dev/longhorn# fsck -y /dev/longhorn/unifi
fsck from util-linux 2.37.2
e2fsck 1.46.5 (30-Dec-2021)
/dev/longhorn/unifi is in use.
e2fsck: Cannot continue, aborting.

root@kube01:/dev/longhorn# umount /dev/longhorn/unifi
umount: /dev/longhorn/unifi: not mounted.
root@kube01:/dev/longhorn# mount /dev/longhorn/unifi /mnt/unifi
mount: /mnt/unifi: /dev/longhorn/unifi already mounted or mount point busy.

At this point, I created this ticket. And, since its nighttime on a Saturday night, I am going to restore the volume from a backup short, and hope this corrects the issue.
To Reproduce
Wait for a volume to get stuck in an attach/detach loop, and attempt to correct it.
Expected behavior
IDEALLY, volumes shouldn't get stuck in an attach/detach loop. However, in the event something does get corrupted, the expected behavior would be the documentation at least gives a few steps on how to identify and correct this issue.
Log or Support bundle
If applicable, add the Longhorn managers' log or support bundle when the issue happens.
You can generate a Support Bundle using the link at the footer of the Longhorn UI.
supportbundle_f650b6c4-e1f0-4242-b2bb-f592958ec68b_2023-02-12T01-18-09Z.zip
Environment

Longhorn version: No idea.
Installation method (e.g. Rancher Catalog App/Helm/Kubectl): Helm
Kubernetes distro (e.g. RKE/K3s/EKS/OpenShift) and version: Microk8s 1.25

Number of management node in the cluster: 1
Number of worker node in the cluster: 2+1

Node config

OS type and version: Ubuntu 22.04
CPU per node: Varies. i5-6500, up to i7-8700
Memory per node: 16G-32G
Disk type(e.g. SSD/NVMe): All SSD/NVMe
Network bandwidth between the nodes: 10G, verified.

Underlying Infrastructure (e.g. on AWS/GCE, EKS/GKE, VmWare/KVM, Baremetal): Baremetal.
Number of Longhorn volumes in the cluster: 50

Additional context
Nothing of interest was occurring when this issue happened. Changed a setting in the unifi pod via its UI, and noticed a few minutes later it was not running. Upon investigation, found it stuck in an attach/detach loop.
Was unable to follow steps in documentation to correct issue.

After completely deleting the volume, and restoring from backups...

Its still fubar.

As another update, after completely removing the namespace, all of its contents, removing the PVC, and deleting the volume out of longhorn-
I recreated the namespace, restored from a backup, to a different name. Then, recreated the PVC with the same name as before. Same issue occurs.
As well, appears I am not the only one unable to follow the troubleshooting documentation: https://github.com/longhorn/longhorn/issues/1911#issuecomment-1079837043
The next thing I tried-

Blew away the entire namespace.
Deleted the volume from longhorn
Restored a KNOWN WORKING backup, as a never-before-used name.
Once data restored, created a never-before-used PVC.
 Suppose I won't be using unifi for a bit...
A hunch- but, I would assume there is something lingering on the nodes somewhere that is not being cleaned up properly.

As one last test-
After cleaning up everything in the namespace, deleting the longhorn volume, etc, I decided to provision a brand-new PVC/volume, completely unrelated to anything before.
Same issue occurred. To note, nothing else in the cluster is experiencing issues at all currently.
There appears to be something getting stuck/lingering somewhere.

Digging into this issue more, Nothing is able to attach successfully now.
Appears, the iSCSI daemon is not able to successfully start now.
[jdownloader-e-011496ea] time="2023-02-13T11:02:05Z" level=info msg="Finished to snapshot: <IP_ADDRESS>:10180 daily-ba-795c535f-f063-4b01-a73b-d72a7bc96d3d UserCreated true Created at 2023-02-13T11:02:05Z, Labels map[RecurringJob:daily-backup]"
time="2023-02-13T11:02:05Z" level=info msg="Finished snapshot" snapshot=daily-ba-795c535f-f063-4b01-a73b-d72a7bc96d3d volume=jdownloader
[longhorn-instance-manager] time="2023-02-13T11:02:11Z" level=info msg="Removing snapshots [daily-ba-dfad13a2-2520-45db-985b-fd314e6e80ff]" serviceURL="<IP_ADDRESS>:10009"
[longhorn-instance-manager] time="2023-02-13T11:02:11Z" level=info msg="Purging snapshots" serviceURL="<IP_ADDRESS>:10009"
[longhorn-instance-manager] time="2023-02-13T11:02:20Z" level=info msg="Removing snapshots [daily-ba-196f65de-f91c-47f6-8fc4-330695d95879]" serviceURL="<IP_ADDRESS>:10015"
[longhorn-instance-manager] time="2023-02-13T11:02:20Z" level=info msg="Purging snapshots" serviceURL="<IP_ADDRESS>:10015"
[vscode-e-fef7e83b] time="2023-02-13T16:30:59Z" level=info msg="Shutting down iSCSI target iqn.2019-10.io.longhorn:vscode"
lh_client_close_conn: Closing connection
[vscode-e-fef7e83b] time="2023-02-13T16:31:00Z" level=info msg="device vscode: iSCSI device /dev/longhorn/vscode shutdown"
[longhorn-instance-manager] time="2023-02-13T16:31:00Z" level=info msg="Wait for gRPC service of process vscode-e-fef7e83b to start at localhost:10000"
[vscode-e-fef7e83b] go-iscsi-helper: tgtd is already running
[vscode-e-fef7e83b] time="2023-02-13T16:31:01Z" level=info msg="go-iscsi-helper: found available target id 6"
tgtd: device_mgmt(246) sz:93 params:path=/var/run/longhorn-vscode.sock,bstype=longhorn,bsopts=size=5001707520;request_timeout=15
tgtd: bs_thread_open(409) 16
[vscode-e-fef7e83b] time="2023-02-13T16:31:01Z" level=info msg="New data socket connection established"
[longhorn-instance-manager] time="2023-02-13T16:31:01Z" level=info msg="Wait for gRPC service of process vscode-e-fef7e83b to start at localhost:10000"
[longhorn-instance-manager] time="2023-02-13T16:31:02Z" level=info msg="Wait for gRPC service of process vscode-e-fef7e83b to start at localhost:10000"
[vscode-e-fef7e83b] time="2023-02-13T16:31:03Z" level=warning msg="Failed to discover" error="failed to execute: nsenter [--mount=/host/proc/1/ns/mnt --net=/host/proc/1/ns/net iscsiadm -m discovery -t sendtargets -p <IP_ADDRESS>], output , stderr iscsiadm: can't open iscsid.startup configuration file /etc/iscsi/iscsid.conf\niscsiadm: iscsid is not running. Could not start it up automatically using the startup command in the /etc/iscsi/iscsid.conf iscsid.startup setting. Please check that the file exists or that your init scripts have started iscsid.\niscsiadm: can not connect to iSCSI daemon (111)!\niscsiadm: can't open iscsid.startup configuration file /etc/iscsi/iscsid.conf\niscsiadm: iscsid is not running. Could not start it up automatically using the startup command in the /etc/iscsi/iscsid.conf iscsid.startup setting. Please check that the file exists or that your init scripts have started iscsid.\niscsiadm: can not connect to iSCSI daemon (111)!\niscsiadm: Cannot perform discovery. Initiatorname required.\niscsiadm: Could not perform SendTargets discovery: could not connect to iscsid\n: exit status 20"
[vscode-e-fef7e83b] time="2023-02-13T16:31:03Z" level=warning msg="Nodes cleaned up for iqn.2019-10.io.longhorn:vscode"

Some more information.
Of the three nodes in my cluster (kube01, kube05, kube06), kube01 holding the control-plane
I decided to start rebooting nodes gracefully.
Took kube05 down, patched it, rebooted it, uncordoned. No change.
Took kube01 down, patched it, a few firmware updates, rebooted it, and it came back up. However since a lot of pods were hosted here, I noticed most of the pods then stuck unable to mount storage.
 Whatever is occuring, is still occuring.

OK,
Followed these the steps here: https://longhorn.io/kb/troubleshooting-volume-with-multipath/
This resolved a few of the issues.
Reinstalling everything on kube05 to see if I can track down the issue with it. There is something different/wrong about it.

So, I believe my issue is resolved.
After using ansible to rollout the multipath blacklist from: https://longhorn.io/kb/troubleshooting-volume-with-multipath/
I completely formatted/reinstalled everything on the node which was having continuous issues, all seems well now.


[SPARK-36379][SQL][3.1] Null at root level of a JSON array should not fail w/ permissive mode

This PR backports https://github.com/apache/spark/pull/33608 to branch-3.1

What changes were proposed in this pull request?
This PR proposes to fail properly so JSON parser can proceed and parse the input with the permissive mode.
Previously, we passed nulls as are, the root InternalRows became nulls, and it causes the query fails even with permissive mode on.
Now, we fail explicitly if null is passed when the input array contains null.
Note that this is consistent with non-array JSON input:
Permissive mode:
spark.read.json(Seq("""{"a": "str"}""", """null""").toDS).collect()

res0: Array[org.apache.spark.sql.Row] = Array([str], [null])

Failfast mode:
spark.read.option("mode", "failfast").json(Seq("""{"a": "str"}""", """null""").toDS).collect()

org.apache.spark.SparkException: Malformed records are detected in record parsing. Parse Mode: FAILFAST. To process malformed records as null result, try setting the option 'mode' as 'PERMISSIVE'.
	at org.apache.spark.sql.catalyst.util.FailureSafeParser.parse(FailureSafeParser.scala:70)
	at org.apache.spark.sql.DataFrameReader.$anonfun$json$7(DataFrameReader.scala:540)
	at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)

Why are the changes needed?
To make the permissive mode to proceed and parse without throwing an exception.
Does this PR introduce any user-facing change?
Permissive mode:
spark.read.json(Seq("""[{"a": "str"}, null]""").toDS).collect()

Before:
java.lang.NullPointerException
	at org.apache.spark.sql.catalyst.expressions.GeneratedClass$GeneratedIteratorForCodegenStage1.processNext(Unknown Source)
	at org.apache.spark.sql.execution.BufferedRowIterator.hasNext(BufferedRowIterator.java:43)
	at org.apache.spark.sql.execution.WholeStageCodegenExec$$anon$1.hasNext(WholeStageCodegenExec.scala:759)

After:
res0: Array[org.apache.spark.sql.Row] = Array([null])

NOTE that this behaviour is consistent when JSON object is malformed:
spark.read.schema("a int").json(Seq("""[{"a": 123}, {123123}, {"a": 123}]""").toDS).collect()

res0: Array[org.apache.spark.sql.Row] = Array([null])

Since we're parsing one JSON array, related records all fail together.
Failfast mode:
spark.read.option("mode", "failfast").json(Seq("""[{"a": "str"}, null]""").toDS).collect()

Before:
java.lang.NullPointerException
	at org.apache.spark.sql.catalyst.expressions.GeneratedClass$GeneratedIteratorForCodegenStage1.processNext(Unknown Source)
	at org.apache.spark.sql.execution.BufferedRowIterator.hasNext(BufferedRowIterator.java:43)
	at org.apache.spark.sql.execution.WholeStageCodegenExec$$anon$1.hasNext(WholeStageCodegenExec.scala:759)

After:
org.apache.spark.SparkException: Malformed records are detected in record parsing. Parse Mode: FAILFAST. To process malformed records as null result, try setting the option 'mode' as 'PERMISSIVE'.
	at org.apache.spark.sql.catalyst.util.FailureSafeParser.parse(FailureSafeParser.scala:70)
	at org.apache.spark.sql.DataFrameReader.$anonfun$json$7(DataFrameReader.scala:540)
	at scala.collection.Iterator$$anon$11.nextCur(Iterator.scala:484)

How was this patch tested?
Manually tested, and unit test was added.

cc @cloud-fan @dongjoon-hyun @MaxGekk FYI

Test build #142551 has started for PR 33762 at commit 41d8254.

Kubernetes integration test starting
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/47053/

Kubernetes integration test status success
URL: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder-K8s/47053/

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder-K8s/47053/

Merged to branch-3.1.

Test build #142551 has finished for PR 33762 at commit 41d8254.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/142551/


Cannot get Camera source

https://ibb.co/dgW3TT
i cant choose camera source. it only show src_0 and src_1

Can you test here:

https://easyrtc.sylaps.net/demos/

Also this your screen is from typescript?
Can you test: https://easyrtc.sylaps.net/demos/demo_multistream_iframe.html

I will had guideline to post issue.
Reopen if you awnser my questions above.

yes im using typescript

If you have issue once and not another time could be related to your camera, or we may do not handle and event state properly under certain timing.
Feel free to reopen if you find something.
Sry I cannot help more.

Tell me is more about the device the issue is your device and chrome version look for above 68 if your device is ARM based and use USB camera. May depend device alao.


[QUESTION] Expand row by ID

Hello,
is there a simple way to expand a row (subComponent) by specific data ID (id from the database)?
My theoretical (but complex) solution now is to calculate the page number first, where the item should be and set the page number manually and then set expandedRows property with the item index.
A better way would be to check dataItem.id == row.data.id and pass a property expanded = true
Thanks for any help on this

You could simulate this via the controlled expandedRows prop.  You would need to search for the index or key of the row you want expanded, then pass it into that model.

Yes, that is what I thought. But I need to first find the page number, set it with page={number} then find the viewIndex of the item and set it as expandedRows={{<viewIndex>: true}} right?
what I tried to simplify the process
I've tried to find the index of the row item, set it as expandedRows={{<itemIndex>: true}} and hard coded the page number page={<pageNumberOfItem>}, but it wasn't working. Expanded rows working only with viewIndexes or am I doing something wrong?

yes, expanded rows works with the viewIndex, (which is relative to the current page) and not with the original data model's index.  You're on the right track though.  You may need access to the internal sorted data model to accurately locate the item's page and viewIndex.  I would suggest utilizing a react ref or Functional Rendering to get the internal data model.  Then you will have an accurate representation of the data model for your logic.  This is extremely advanced functionality, and though possible, is going to be difficult.  If you would like to discuss implementation further, you could seek help on the react-table slack organization :)

Yep, I've got it already working. Thanks for help.

👍

@tannerlinsley I am struggoling in that issue since couple of days, nothing at all is helping and the examples on Doc are not clear. May be because I am not familiar with react-table that's why... for example I don't know how to implement that and where shall I add the code for expansion
I will be grateful if you can give me a hand on that https://stackoverflow.com/questions/71538116/implementing-react-table-expanded-rows


INFO[0000] Uploading Boot2docker ISO ...
DEBU[0000] govcOutErr executing: govc datastore.ls<EMAIL_ADDRESS>--k=true --ds=ESX01 --dc=Production boot2docker-iso
DEBU[0000] govcOutErr executing: govc datastore.ls<EMAIL_ADDRESS>--k=true --ds=ESX01 --dc=Production boot2docker-iso
INFO[0000] boot2docker ISO already uploaded, skipping upload...
INFO[0000] Creating virtual machine dockervm0 of vCenter xx.xx.xx.xx...
DEBU[0000] govcOutErr executing: govc vm.create<EMAIL_ADDRESS>--k=true --net=VM Network --dc=Production --ds=ESX01 --iso=boot2docker-iso/boot2docker-1.5.0-GH747.iso --m=2048 --c=2 --disk.controller=pvscsi --net.adapter=vmxnet3 --on=false --host.ip=xx.xx.xx.xx dockervm0
ERRO[0000] Error creating machine: Unable to create docker host dockervm0: Error: no such host

WARN[0000] You will want to check the provider to make sure the machine and associated resources were properly removed.
FATA[0000] Error creating machine
```

My ```docker-machine```version: 0.2.0
The output of ```govc about``` is:
```
Name:         VMware vCenter Server
Vendor:       VMware, Inc.
Version:      5.1.0
Build:        2306353
OS type:      linux-x64
API type:     VirtualCenter
API version:  5.1
Product ID:   vpx
UUID:         xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
```
There is something I am doing wrong ?

Thank.

/cc @frapposelli

Ping @frapposelli
I'm getting the same error. It's unclear which host it's referring to.
vSphere 5.5.0
docker-machine 0.3.0

When I changed my {{--vmwarevsphere-compute-ip}} option from a hostname to the host's IP address, this error didn't occur again.

You know what I found is that it was not clear that it was the esx host ip they were asking for and not the ip of the new machine we are creating.

Yeah I was using the ESX host's name originally, figuring that a host name was as good as an IP. Apparently not.


I imagine there could be 3 different configurations:
1. Prefix with branch name
With this configuration, my branch name automatically gets prefixed to the commit message.

2. Prefix with issue name
With this configuration, the issue name from the current "workon" gets prefixed.

3. Prefix with custom message
With this configuration, a specified custom message gets prefixed to the commit message.

Hello @Silind
Thanks for the feedback, it is much appreciated. Let us clarify the feature and consider some options.


The requested operation requires an element of type 'Object', but the target element has type 'Null

This is the error I get, any solution?

This is the error I get, any solution?

After looking into it, it appears linkvertise did some more patches and are limiting users to 3 linkvertise links a day, I'll have to look into it when I can

Should be fixed. re-pull and build

But that doesn't solve anything, the limit is still there, there is a website that has been able to evade it, but I don't know how to do it.

But that doesn't solve anything, the limit is still there, there is a website that has been able to evade it, but I don't know how to do it.

Yes the limit is there but the bypass itself works, you will have to get either residential proxies and or a linkvertise prem account, the way the websites are doing it is they usually cache all requests and have a backlog saved. They also pay for linkvertise premium.

I'm getting the same error


Stop Video then try to change Video Input - Crash

Describe the bug
When on the deviceSelectionStep if you stop the video and then go to Settings > Video Input and try to choose a camera, it will crash with.
When video is stopped it also doesn't show the currently selected device in that menu but rather has it blank.
To Reproduce
Steps to reproduce the behavior:

Go to 'Join a Room' page
Join the room to get to the Device Selection page (deviceSelectionStep)
Click on Stop Video
Go to Settings > Audio and Video Settings > Video Input.
Select a video input device and you will get a crash
See error

Expected behavior

Show current device even though video is stopped (current device meaning the video that will be used if you start video)
Allow selecting device even though video is stopped so it will be used next time video is started (this one is maybe more correct)

Screenshots
When video is stopped, it shows no device selected:

When clicking dropdown it shows your available devices:

Error page:

Environment (please complete the following information):

OS: Windows 10
Browser: Microsoft Edge (Chromium) v89.0.731.0
App Version: 0.2.1 (current master)

Additional context

Thanks for the bug report @mapolyakov!
I can reproduce this bug. It seems to happen in any browser, but only when there are multiple video inputs available.  I'll start working on a fix.
Thanks again!


Add Resource Request Controller

Description
This pull request add a controller that watch new ResourceRequest and will create new resourceOffer which will be populated or updated by the new Broadcaster (next p.r.)
Refers to second point of issue #548

/merge


Develop metamodel for mapping service instances (Tagging Philosophy for Cost Accounting)

One hour workshop as first iteration to gather the metadata, with three possible sources:

OpenShift cluster metadata that is currently being injected via BCDK
Azure tenancy tags defined
AWS guidance (+ informed by a few implementations)

Question for the team: cost accounting is just one aspect, so can we take that out of the title? We'll likely capture most of what we need, including for cost accounting, in the workshop.

BC Gov Azure base tags (cf. Sec 2.5.1 in BC Gov's Azure Foundation v0.9):

Solution-Name: Application or solution name
Environment: tech environment ("PRD", "DEV", etc)
Classification: Data/system classification
Cost-Centre:
GL-Code:
Expiry-Date: empty value implies 100 years

Note that tag naming convention needs to be take into account multiple providers (GCP mandates lower-case only for example).

Three things to consider:

Dimensions: bucket tags for technical (app name, id, role, env, ver, what-not), business (billing, project, owner, etc), security/compliance (pii/hipaa, data classification, etc), automation/optimization
Tagging standard -- what are the conventions for names/values for at least the 3 big vendors
Operationalize -- how do we set things up to auto-inherit the base set, and how much does that leave for each of the 3 big vendors (+ other cloud providers)

Whiteboard from meeting on Tue Mar 3. Next step is to break down the pieces -- metadata store, provisioning, etc.

https://github.com/BCDevOps/openshift-tools/tree/master/provisioning/environment/playbook


Cannot use library

#[macro_use]
extern crate itertools;
use itertools::Itertools;

// ... further down
        c1.iter()
            .zip(c2)
            .enumerate()
            .cons_tuples() // <-- error
            .filter(|(_id, (e1, e2))| e1.is_some() && e2.is_some())
            .map(|(id, (e1, e2))| (id, e1.unwrap(), e2.unwrap()))
            .collect()

I get the following error:
error[E0599]: no method named `cons_tuples` found for type `std::iter::Enumerate<std::iter::Zip<std::slice::Iter<'_, std::option::Option<&C1>>, std::vec::IntoIter<std::option::Option<&C2>>>>` in the current scope
   --> src\lib.rs:176:14
    |
176 |             .cons_tuples()
    |              ^^^^^^^^^^^

What does work is to use the function cons_tuples() and wrap c1.iter().zip(c2).enumerate() into it, but then filter is not found on the return value of cons_tuples().
I think I use it like it is written in the docs. Any idea what I'm doing wrong?

Consider this piece of code:
println!("{:?}",
    (1,2,3)
        .zip(7..9)
        .enumerate()
        .collect::<Vec<_>>());

The output is:
[(0, (1, 7)), (1, (2, 8)), (2, (3, 9))]

Doesn't really match the shape that .cons_tuples() is looking for and because of that, you get "no method for type" error.


Add user-timings-complex case

nice!
and for my own use.. https://trace.cafe/t/fRCYKA3Zmk is the trace added in https://crrev.com/c/4248100


🐛  NICE-87 next/image w/h for quote [b]

One image in particular was generating a warning on dev, and minified react error on prod.

This pull request has been deployed to Vercel.

Latest commit:
f8b6e69

✅ Preview:
https://jeromefitzgerald-9h9ajef4a-jerome5.vercel.app

🔍 Inspect:
https://vercel.com/jerome/jeromefitzgerald/4E5PCqnvyVr3SibdJ1fDqMTzmPPF

View Workflow Logs


Does Azure AD B2C also apply the same assertion format as Azure AD

[Enter feedback here]
I want to know whether this assertion format is also suitable for Azure AD B2C service, please help provide some reference doc if exists.
I think this content OAuth 2.0 authorization code flow in Azure Active Directory B2C should be updated about the JWT Client Authentication.
Related issue:

https://github.com/MicrosoftDocs/azure-docs/issues/94274

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

ID: 7e44b783-3ca5-6b6a-1f33-d7a107b8f8e0
Version Independent ID: aa2bb5fd-bd0d-830c-84c7-0525657b6d4f
Content: Microsoft identity platform certificate credentials - Microsoft Entra
Content Source: articles/active-directory/develop/active-directory-certificate-credentials.md
Service: active-directory
Sub-service: develop
GitHub Login: @nickludwig
Microsoft Alias: ludwignick

@moarychan Thank you for the feedback. I have assigned this issue to the author to review and update.

#please-close


amit faq contribution december

amit faq contribution december

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://658b7cf44f641506df031818--harness-developer.netlify.app

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://658ced77b5ce806774ee5343--harness-developer.netlify.app

Updated to handle merge conflicts and applied some style changes per layout of FF FAQ page.

Please check the Execution Link of the Pipeline for the Website Draft URL. This is located in the Preview Step behind the Harness VPN and also is available in #hdh_alerts. E.g Website Draft URL: https://unique-id--harness-developer.netlify.app. Current Draft URL is: https://65946446ebfc5806675afede--harness-developer.netlify.app


SDP-902 - Release 1.0.0 to main

What
Release 1.0.0-rc2 to main.
Checklist
PR Structure

[x] This PR has reasonably narrow scope (if not, break it down into smaller PRs).
[x] This PR does not mix refactoring changes with feature changes (split into two PRs otherwise).
[X] This PR's title starts with the name of the package, area, or subject affected by the change.

Thoroughness

[x] This PR adds tests for the new functionality or fixes.
[x] This PR contains the link to the Jira ticket it addresses.

Configs and Secrets

[ ] No new CONFIG variables are required -OR- the new required ones were added to the helmchart's values.yaml file.
[ ] No new CONFIG variables are required -OR- the new required ones were added to the deployments (pr-preview, dev, demo, prd).
[ ] No new SECRETS variables are required -OR- the new required ones were mentioned in the helmchart's values.yaml file.
[ ] No new SECRETS variables are required -OR- the new required ones were added to the deployments (pr-preview secrets, dev secrets, demo secrets, prd secrets).

Release

[ ] This is not a breaking change.
[ ] This is ready for production.. If your PR is not ready for production, please consider opening additional complementary PRs using this one as the base. Only merge this into develop or main after it's ready for production!

Deployment

[ ] Does the deployment work after merging?

stellar-disbursement-platform-backend-preview is available here:SDP:      https://sdp-backend-pr74.previews.kube001.services.stellar-ops.com/healthAP:       https://sdp-ap-pr74.previews.kube001.services.stellar-ops.com/healthFrontend: https://sdp-backend-dashboard-pr74.previews.kube001.services.stellar-ops.com


[WIP] [issue-406] Introduce Dynamic Color

Issue

close #406

Overview (Required)

Links

Screenshot

Before
After

I will write more details later, sorry 🙏

Please run ./gradlew spotlessKotlinApply 🙏

It seems that you need to supress or something for this lint👀
/Users/runner/work/conference-app-2022/conference-app-2022/core/designsystem/src/androidMain/kotlin/io/github/droidkaigi/confsched2022/designsystem/theme/Theme.kt:44: Error: Call requires API level 31 (current min is 23): dynamicDarkColorScheme [NewApi]
dynamicDarkColorScheme(LocalContext.current)

@mona-apk Thanks! I make some refactoring and add a trick.

Thank you very much...!
I have been struggling with the implementation and would like to refer to this PR.