Improve validation

Improvements to validation layer handling

Search for VK_LAYER_KHRONOS_validation but fall back to VK_LAYER_LUNARG_standard_validation if it's not present
Return a failure with a better error message if neither exist

Validation is now off by default in the examples
Rust minimum version is now 1.43.0

I don't know that I agree with you having disabled the check for the letter by default with the examples. It was correct for you to have required it, the examples are to be built by developers so it should not run if there's only a run time available.

Yeah, that was obviously the viewpoint I carried for the previous year. I think now that this library has matured has seen regular real-world use for some time now, opt-in by default is no longer the best choice.
The rationale is:

People using skulpin in general aren't writing vulkan code
The vulkan code in this crate is not really changing anymore and has been around long enough and run on enough systems that I'm reasonably confident in it.
I don't recall a validation error ever coming from skia usage
I don't recall validation catching a single problem since 0.1 which was about a year ago
People who do decide to mess with the vulkan code will already know that validation is a thing and that they should turn it on
I've seen people "ship" validation on in downstream projects because they don't realize that this is something that should only be on in development and that it carries a huge performance penalty.
If someone reports a crash in a GPU driver or corrupted image, it will be fairly obvious that it's a vulkan usage issue. They can easily turn validation on to get the error messages.

If I ever significantly rewrite how this library works (unlikely) I'd probably turn it back on in the examples for a period of time until I was confident it was stable.

Oh, okay. Thanks for explaining your rationale. Of course I very much plan to switch Qglif over to Skulpin: working on Mac matters to me if not to @eliheuer. I might require that Mac users build from source as I have no interest in paying Apple a cent, but having a way to work on Mac does matter to me. :-)


Commercial use

I would like to know if I can use this code for commercial purposes and if you are using any model that is not permitted for commercial use.
I tried looking through your repo, but the only reference I found is to an Apache license
Thanks u

The insightface and FLUX.1-dev are not permitted for commercial use unfortunately.

@ToTheBeginning Does it work with flux schnell

@Spritan according to the comments in the code, it only works with dev right now:
https://github.com/ToTheBeginning/PuLID/blob/eb4004cfcc4c7611c9cc56a68c190754b9d03df1/app_flux.py#L309

Would it be possible to create the id embeddings with alternative libraries, such as AuraFace instead of insightface? Your libraries shows so much promise and I'd hate to see its usage restricted by insightface


Added Graphql structures and queries for react london

Pre-flight checklist

[x] Unit tests
[x] GraphiQL tested
[x] Client app tested
[x] Gif added

Think we need some tests around Prismic fetching methods to ensure we're calling the right API endpoint.

Can you also commit Prismic custom schema into /prismic/custom-types?

For Communities - should we also have title field with the name of the community?

@asavin Yeah good point. Added in the latest commit to prismic


summary() or skim() ?

Instructions say

Instructions Use the summary() function from the skimr package for an initial exploration of the Pima Indians dataset diabetes_data.

But skimr doesn't have such a function and the code throws an error if we try. Assuming skim() was meant to be in there?
Not to be fixed for this round since we've sent students install instructions already, but just noticed and want to capture so we don't forget

Or actually probably summary here... ?


Seeing user likes on " Following " tab

On my " Following " tab, I see liked tweets now from what I'm presuming are people I follow instead of just their Twitter posts. Is there anyway to add a third tab maybe called " liked tweets "  to separate them from the " Following tab? "
Currently the tabs I have enabled on my UI are " Following " (theoretically only for tweets from people I follow) and " Retweets "(retweets from people I follow).
Edit: Turns out, these may also be Retweets from people I follow which makes sense since my retweet tab is currently broken and does not show anything. Any fixes?

Twitter updated something, which completely broke the Control Panel, give the devs few days or weeks to fix it. Since funny backend moment.

This appears to have been a brief Twitter blip a few weeks ago


[BUG]  ServiceBusClient cannot be mocked

Library name and version
Azure.Messaging.ServiceBus 7.8.0
Describe the bug
Using Moq I'm unable to create a mock of ServiceBusClient.
Additionally, when I tried to work-around the issue by extending ServiceBusClient and adding a default constructor to my "mockable" class, Moq still failed with the following error:
System.ArgumentException : Type to mock ({0}) must be an interface, a delegate, or a non-sealed, non-static class.
----> System.TypeLoadException : Method 'GetTransportMetrics' on type 'Castle.Proxies.MockableServiceBusClientProxy' from assembly 'DynamicProxyGenAssembly2, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null' is overriding a method that is not visible from that assembly.
Expected behavior
Should be able to use mockClient created as follows in unit tests.
var mockClient = new Mock();
Actual behavior
Mocking fails because default constructor is protected.
Additionally, when I tried to work-around the issue by extending ServiceBusClient and adding a default constructor to my "mockable" class, Moq still failed with the following error:
System.ArgumentException : Type to mock ({0}) must be an interface, a delegate, or a non-sealed, non-static class.
----> System.TypeLoadException : Method 'GetTransportMetrics' on type 'Castle.Proxies.MockableServiceBusClientProxy' from assembly 'DynamicProxyGenAssembly2, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=null' is overriding a method that is not visible from that assembly.
Reproduction Steps
[Test]
public void FailsWithoutWrapper()
{
var mockClient = new Mock();
var obj = mockClient.Object;  // Throws an exception
}
[Test]
public void FailsWithWrapper()
{
var mockClient = new Mock();
var obj = mockClient.Object;  // Throws an exception
}
public class MockableServiceBusClient : ServiceBusClient
{
public MockableServiceBusClient()
: base("Endpoint=sb://test.test.net")
{
}
}
Environment
Any

Hi @dkocur.  Thank you for your feedback.   Support for mocking and unit testing is one of the core goals of the new Azure SDKs, and the details of the approach that we use are discussed in the Azure SDK Design Guidelines.
All of the public members of our client types are virtual or settable, the class is not sealed, and a parameterless constructor is available to ensure that it is usable with a mocking framework such as Moq or FakeItEasy.   You should be able to mock any client using the same approach that you prefer for other types, whether with a mocking framework or inheriting from the class and creating your own mock type, using the model factory to simulate behavior.
For model types that are returned by service operations, a factory class exists to enable creating them for testing.  In the case of Service Bus, the ServiceBusModelFactory) would be the place to look.
As an example, using Moq to mock a scenario for receiving a message would look something like:
// Create the mocks
var receivedMessage = ServiceBusModelFactory.ServiceBusReceivedMessage(
    new BinaryData("mock received"));

var mockClient = new Mock<ServiceBusClient>();
var mockReceiver = new Mock<ServiceBusReceiver>();

mockClient
    .Setup(c => c.CreateReceiver(It.IsAny<string>()))
    .Returns(mockReceiver.Object);

mockReceiver
    .Setup(r => r.ReceiveMessageAsync(
        It.IsAny<TimeSpan?>(),
        It.IsAny<CancellationToken>()))
    .ReturnsAsync(receivedMessage);

// Use the client to receive a message
 var client = mockClient.Object;
 var receiver = client.CreateReceiver("fake");
 var message = await receiver.ReceiveMessageAsync(TimeSpan.FromSeconds(1));

// Verify that the received message has the correct body
Assert.That(message.Body.ToString(), Is.EqualTo("mock received"));

Some additional examples of mocking the client can be found in the ServiceBusClientTests.
For more discussion and details around unit testing and mocking the Azure SDKs, I'd recommend this post from the Azure SDK blog.  I'm going to mark this as addressed, but please feel free unresolve if you'd like to continue to the discussion.

While it's great that this has been thought I think this needs to be surfaced in the docs in a better way. I went looking but can't find any samples or references to unit testing in either the readme, samples readme nor official docs.


Getting error when "automationName" is set as "Flutter"

Hi,
I am pretty new to appium-flutter-driver. I am currently trying to do a set up for it but I am getting an error every time I set "automationName" as "Flutter"
Error - An unknown server-side error occurred while processing the command. Original error: Cannot read property 'match' of undefined
Below are the dependencies I added to my pom.xml

io.appium
java-client
7.6.0

org.projectlombok
lombok
1.18.24

org.testng
testng
7.1.0
test

    <dependency>
        <groupId>com.squareup.okhttp3</groupId>
        <artifactId>okhttp</artifactId>
        <version>4.9.3</version>
    </dependency>
    <dependency>
        <groupId>pro.truongsinh</groupId>
        <artifactId>appium-flutter-finder</artifactId>
        <version>0.0.4</version>
    </dependency>
    <dependency>
        <groupId>org.jetbrains.kotlinx</groupId>
        <artifactId>kotlinx-serialization-runtime</artifactId>
        <version>0.14.0</version>
        <scope>runtime</scope>
    </dependency>

Language - Java
Pls, help as I am currently stuck
Thanks

Could you try out the latest version with appium 2 and share the full appium log?
npm install -g appium@next

Then https://github.com/appium-userland/appium-flutter-driver#installation

@KazuCocoa I have installed the appium-flutter-driver using the installation guide but I am still getting the error.
I have appium 1.22.2 installed and below is the full appium log
[info] [Appium] Welcome to Appium v1.22.2
[info] [Appium] Non-default server args:
[info] [Appium]   relaxedSecurityEnabled: true
[info] [Appium]   allowInsecure: {
[info] [Appium]   }
[info] [Appium]   denyInsecure: {
[info] [Appium]   }
[info] [Appium] Appium REST http interface listener started on <IP_ADDRESS>:4723[info] [HTTP] --> POST /wd/hub/session
[info] [HTTP] {"desiredCapabilities":{"app":"
/repos/rq_mobile-automation/apps/Runner.app","noReset":"true","platformVersion":"16.0","automationName":"Flutter","skipUnlock":"true","platformName":"ios","udid":"15FC87B5-38ED-4C88-BF90-68C916FE2C6B","deviceName":"iPhone 13 Pro"},"capabilities":{"firstMatch":[{"appium:app":"
repos/rq_mobile-automation/apps/Runner.app","appium:automationName":"Flutter","appium:deviceName":"iPhone 13 Pro","appium:noReset":"true","platformName":"ios","appium:platformVersion":"16.0","skipUnlock":"true","appium:udid":"15FC87B5-38ED-4C88-BF90-68C916FE2C6B"}]}}
[debug] [W3C] Calling AppiumDriver.createSession() with args: [{"app":"/repos/rq_mobile-automation/apps/Runner.app","noReset":"true","platformVersion":"16.0","automationName":"Flutter","skipUnlock":"true","platformName":"ios","udid":"15FC87B5-38ED-4C88-BF90-68C916FE2C6B","deviceName":"iPhone 13 Pro"},null,{"firstMatch":[{"appium:app":"/repos/rq_mobile-automation/apps/Runner.app","appium:automationName":"Flutter","appium:deviceName":"iPhone 13 Pro","appium:noReset":"true","platformName":"ios","appium:platformVersion":"16.0","skipUnlock":"true","appium:udid":"15FC87B5-38ED-4C88-BF90-68C916FE2C6B"}]}]
[debug] [BaseDriver] Event 'newSessionRequested' logged at<PHONE_NUMBER>179 (13:33:36 GMT+0100 (Irish Standard Time))
[warn] [BaseDriver] The following capabilities are not standard capabilities and should have an extension prefix:
[warn] [BaseDriver]   skipUnlock
[info] [Appium] Appium v1.22.2 creating new FlutterDriver (v0.0.32) session
[info] [Appium] Applying relaxed security to 'FlutterDriver' as per server command line argument. All insecure features will be enabled unless explicitly disabled by --deny-insecure
[debug] [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided
[debug] [BaseDriver] Creating session with W3C capabilities: {
[debug] [BaseDriver]   "alwaysMatch": {
[debug] [BaseDriver]     "platformName": "ios",
[debug] [BaseDriver]     "appium:skipUnlock": "true",
[debug] [BaseDriver]     "appium:app": "/repos/rq_mobile-automation/apps/Runner.app",
[debug] [BaseDriver]     "appium:automationName": "Flutter",
[debug] [BaseDriver]     "appium:deviceName": "iPhone 13 Pro",
[debug] [BaseDriver]     "appium:noReset": "true",
[debug] [BaseDriver]     "appium:platformVersion": "16.0",
[debug] [BaseDriver]     "appium:udid": "15FC87B5-38ED-4C88-BF90-68C916FE2C6B"
[debug] [BaseDriver]   },
[debug] [BaseDriver]   "firstMatch": [
[debug] [BaseDriver]     {}
[debug] [BaseDriver]   ]
[debug] [BaseDriver] }
[warn] [BaseDriver] Capability 'noReset' changed from string to boolean. This may cause unexpected behavior
[warn] [BaseDriver] The following capabilities were provided, but are not recognized by Appium:
[warn] [BaseDriver]   skipUnlock
[warn] [BaseDriver]   app
[info] [BaseDriver] Session created with session id: 1ddf2290-aa64-466d-983c-31a1cdbd23c7
[info] [FlutterDriver] Starting an IOS proxy session
[debug] [BaseDriver] W3C capabilities and MJSONWP desired capabilities were provided
[debug] [BaseDriver] Creating session with W3C capabilities: {
[debug] [BaseDriver]   "alwaysMatch": {
[debug] [BaseDriver]     "platformName": "ios",
[debug] [BaseDriver]     "appium:skipUnlock": "true",
[debug] [BaseDriver]     "appium:app": "/repos/rq_mobile-automation/apps/Runner.app",
[debug] [BaseDriver]     "appium:automationName": "Flutter",
[debug] [BaseDriver]     "appium:deviceName": "iPhone 13 Pro",
[debug] [BaseDriver]     "appium:noReset": "true",
[debug] [BaseDriver]     "appium:platformVersion": "16.0",
[debug] [BaseDriver]     "appium:udid": "15FC87B5-38ED-4C88-BF90-68C916FE2C6B"
[debug] [BaseDriver]   },
[debug] [BaseDriver]   "firstMatch": [
[debug] [BaseDriver]     {}
[debug] [BaseDriver]   ]
[debug] [BaseDriver] }
[warn] [BaseDriver] Capability 'noReset' changed from string to boolean. This may cause unexpected behavior
[warn] [BaseDriver] The following capabilities were provided, but are not recognized by Appium:
[warn] [BaseDriver]   skipUnlock
[info] [BaseDriver] Session created with session id: b0cdd4be-1ae5-4056-956b-b4588813155b[debug] [XCUITest] Current user:
[debug] [XCUITest] Available devices:
[debug] [XCUITest] No real device with udid '15FC87B5-38ED-4C88-BF90-68C916FE2C6B'. Looking for simulator
[info] [iOSSim] Constructing iOS simulator for Xcode version 14.0.1 with udid '15FC87B5-38ED-4C88-BF90-68C916FE2C6B'
[info] [XCUITest] Determining device to run tests on: udid: '15FC87B5-38ED-4C88-BF90-68C916FE2C6B', real device: false
[debug] [BaseDriver] Event 'xcodeDetailsRetrieved' logged at<PHONE_NUMBER>090 (13:33:37 GMT+0100 (Irish Standard Time))
[info] [BaseDriver] Using local app '/repos/rq_mobile-automation/apps/Runner.app'
[debug] [BaseDriver] Event 'appConfigured' logged at<PHONE_NUMBER>092 (13:33:37 GMT+0100 (Irish Standard Time))
[debug] [XCUITest] Checking whether app '/repos/rq_mobile-automation/apps/Runner.app' is actually present on file system
[debug] [XCUITest] App is present
[debug] [XCUITest] Getting bundle ID from app '/repos/rq_mobile-automation/apps/Runner.app': 'com.reliaquest.rqfirst'
[debug] [BaseDriver] Event 'resetStarted' logged at<PHONE_NUMBER>095 (13:33:37 GMT+0100 (Irish Standard Time))
[debug] [XCUITest] Reset: noReset is on. Leaving simulator as is
[debug] [BaseDriver] Event 'resetComplete' logged at<PHONE_NUMBER>095 (13:33:37 GMT+0100 (Irish Standard Time))
[info] [WebDriverAgent] Using WDA path: '/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent'
[info] [WebDriverAgent] Using WDA agent: '/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-webdriveragent/WebDriverAgent.xcodeproj'[debug] [IOSSimulatorLog] Starting log capture for iOS Simulator with udid '15FC87B5-38ED-4C88-BF90-68C916FE2C6B' using simctl[debug] [BaseDriver] Event 'logCaptureStarted' logged at<PHONE_NUMBER>690 (13:33:37 GMT+0100 (Irish Standard Time))
[info] [XCUITest] Setting up simulator
[debug] [XCUITest] No reason to set locale
[debug] [XCUITest] No iOS / app preferences to set
[debug] [XCUITest] Setting did not need to be updated
[debug] [iOSSim] Setting preferences of 15FC87B5-38ED-4C88-BF90-68C916FE2C6B Simulator to {"ConnectHardwareKeyboard":false}
[debug] [iOSSim] Setting common Simulator preferences to {"RotateWindowWhenSignaledByGuest":true,"ConnectHardwareKeyboard":false,"PasteboardAutomaticSync":false}
[debug] [iOSSim] Updated 15FC87B5-38ED-4C88-BF90-68C916FE2C6B Simulator preferences at '/Library/Preferences/com.apple.iphonesimulator.plist' with {"RotateWindowWhenSignaledByGuest":true,"ConnectHardwareKeyboard":false,"PasteboardAutomaticSync":false,"DevicePreferences":{"15FC87B5-38ED-4C88-BF90-68C916FE2C6B":{"ConnectHardwareKeyboard":false,"SimulatorExternalDisplay":2114,"ChromeTint":"","SimulatorWindowOrientation":"Portrait","SimulatorWindowGeometry":{"EDDF8291-776B-4149-A3E9-43011DEF0508":{"WindowCenter":"{1237, 526}","WindowScale":1}},"SimulatorWindowRotationAngle":0}}}[debug] [iOSSim] Got Simulator UI client PID: 688
[info] [iOSSim] Both Simulator with UDID '15FC87B5-38ED-4C88-BF90-68C916FE2C6B' and the UI client are currently running[debug] [BaseDriver] Event 'simStarted' logged at<PHONE_NUMBER>448 (13:33:38 GMT+0100 (Irish Standard Time))
[debug] [XCUITest] Verifying application platform
[debug] [XCUITest] CFBundleSupportedPlatforms: ["iPhoneSimulator"][debug] [XCUITest] App 'com.reliaquest.rqfirst' is already installed. No need to reinstall.
[debug] [BaseDriver] Event 'appInstalled' logged at<PHONE_NUMBER>759 (13:33:38 GMT+0100 (Irish Standard Time))
[debug] [WebDriverAgent] No obsolete cached processes from previous WDA sessions listening on port 8100 have been found
[info] [DevCon Factory] Requesting connection for device 15FC87B5-38ED-4C88-BF90-68C916FE2C6B on local port 8100
[debug] [DevCon Factory] Cached connections count: 0
[info] [DevCon Factory] Successfully requested the connection for 15FC87B5-38ED-4C88-BF90-68C916FE2C6B:8100
[debug] [XCUITest] Starting WebDriverAgent initialization with the synchronization key 'XCUITestDriver'
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://<IP_ADDRESS>:8100/status] with no body
[debug] [WD Proxy] Got response with status 200: {"value":{"message":"WebDriverAgent is ready to accept commands","state":"success","os":{"testmanagerdVersion":28,"name":"iOS","sdkVersion":"15.4","version":"16.0"},"ios":{"simulatorVersion":"16.0","ip":"<IP_ADDRESS>"},"ready":true,"build":{"upgradedAt":"1644399105000","time":"Sep 12 2022 15:30:35","productBundleIdentifier":"com.facebook.WebDriverAgentRunner"}},"sessionId":null}
[debug] [WebDriverAgent] Upgrade timestamp of the currently bundled WDA:<PHONE_NUMBER>000
[debug] [WebDriverAgent] Upgrade timestamp of the WDA on the device:<PHONE_NUMBER>000
[info] [WebDriverAgent] Will reuse previously cached WDA instance at 'http://<IP_ADDRESS>:8100/' with 'com.facebook.WebDriverAgentRunner'. Set the wdaLocalPort capability to a value different from 8100 if this is an undesired behavior.
[debug] [XCUITest] Trying to start WebDriverAgent 2 times with 10000ms interval
[debug] [XCUITest] These values can be customized by changing wdaStartupRetries/wdaStartupRetryInterval capabilities
[debug] [BaseDriver] Event 'wdaStartAttempted' logged at<PHONE_NUMBER>864 (13:33:38 GMT+0100 (Irish Standard Time))
[info] [WebDriverAgent] Using provided WebdriverAgent at 'http://<IP_ADDRESS>:8100/'
[debug] [WD Proxy] Matched '/status' to command name 'getStatus'
[debug] [WD Proxy] Proxying [GET /status] to [GET http://<IP_ADDRESS>:8100/status] with no body
[debug] [WD Proxy] Got response with status 200: {"value":{"message":"WebDriverAgent is ready to accept commands","state":"success","os":{"testmanagerdVersion":28,"name":"iOS","sdkVersion":"15.4","version":"16.0"},"ios":{"simulatorVersion":"16.0","ip":"<IP_ADDRESS>"},"ready":true,"build":{"upgradedAt":"1644399105000","time":"Sep 12 2022 15:30:35","productBundleIdentifier":"com.facebook.WebDriverAgentRunner"}},"sessionId":null}
[debug] [BaseDriver] Event 'wdaSessionAttempted' logged at<PHONE_NUMBER>868 (13:33:38 GMT+0100 (Irish Standard Time))
[debug] [XCUITest] Sending createSession command to WDA
[debug] [WD Proxy] Matched '/session' to command name 'createSession'
[debug] [WD Proxy] Proxying [POST /session] to [POST http://<IP_ADDRESS>:8100/session] with body: {"capabilities":{"firstMatch":[{"bundleId":"com.reliaquest.rqfirst","arguments":[],"environment":{},"eventloopIdleDelaySec":0,"shouldWaitForQuiescence":true,"shouldUseTestManagerForVisibilityDetection":false,"maxTypingFrequency":60,"shouldUseSingletonTestManager":true,"shouldTerminateApp":false,"forceAppLaunch":false,"useNativeCachingStrategy":true,"forceSimulatorSoftwareKeyboardPresence":true}],"alwaysMatch":{}}}[debug] [WD Proxy] Got response with status 200: {"value":{"sessionId":"DABECD83-9E85-426A-8303-07D94C1785C5","capabilities":{"device":"iphone","browserName":"RQBuzz","sdkVersion":"16.0","CFBundleIdentifier":"com.reliaquest.rqfirst"}},"sessionId":"DABECD83-9E85-426A-8303-07D94C1785C5"}
[info] [WD Proxy] Determined the downstream protocol as 'W3C'
[debug] [BaseDriver] Event 'wdaSessionStarted' logged at<PHONE_NUMBER>916 (13:33:38 GMT+0100 (Irish Standard Time))
[debug] [BaseDriver] Event 'wdaStarted' logged at<PHONE_NUMBER>916 (13:33:38 GMT+0100 (Irish Standard Time))
[info] [XCUITest] Skipping setting of the initial display orientation. Set the "orientation" capability to either "LANDSCAPE" or "PORTRAIT", if this is an undesired behavior.
[debug] [BaseDriver] Event 'orientationSet' logged at<PHONE_NUMBER>917 (13:33:38 GMT+0100 (Irish Standard Time))
[debug] [BaseDriver] The value of 'elementResponseAttributes' setting did not change. Skipping the update for it
[debug] [BaseDriver] The value of 'shouldUseCompactResponses' setting did not change. Skipping the update for it
[debug] [WD Proxy] Matched '/session/b0cdd4be-1ae5-4056-956b-b4588813155b' to command name 'deleteSession'
[debug] [WD Proxy] Proxying [DELETE /session/b0cdd4be-1ae5-4056-956b-b4588813155b] to [DELETE http://<IP_ADDRESS>:8100/session/DABECD83-9E85-426A-8303-07D94C1785C5] with no body
[debug] [WD Proxy] Got response with status 200: {"value":null,"sessionId":null}
[info] [DevCon Factory] Releasing connections for 15FC87B5-38ED-4C88-BF90-68C916FE2C6B device on any port number
[info] [DevCon Factory] Found cached connections to release: ["15FC87B5-38ED-4C88-BF90-68C916FE2C6B:8100"]
[debug] [DevCon Factory] Cached connections count: 0
[debug] [XCUITest] Not clearing log files. Use `clearSystemFiles` capability to turn on.
[debug] [IOSSimulatorLog] Stopping iOS log capture
[debug] [FlutterDriver] Deleting Flutter Driver session
[debug] [BaseDriver] Event 'newSessionStarted' logged at<PHONE_NUMBER>934 (13:33:38 GMT+0100 (Irish Standard Time))
[debug] [W3C] Encountered internal error running command: TypeError: Cannot read property 'match' of undefined
[debug] [W3C]     at Object.exports.processLogToGetobservatory (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-flutter-driver/build/driver/lib/sessions/observatory.js:118:9)
[debug] [W3C]     at Object.exports.getObservatoryWsUri (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-flutter-driver/lib/sessions/ios.ts:77:21)
[debug] [W3C]     at Object.exports.startIOSSession (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-flutter-driver/lib/sessions/ios.ts:31:30)
[debug] [W3C]     at processTicksAndRejections (internal/process/task_queues.js:85:5)
[debug] [W3C]     at FlutterDriver.exports.createSession (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/node_modules/appium-flutter-driver/lib/sessions/session.ts:15:47)
[debug] [W3C]     at AppiumDriver.createSession (/Applications/Appium Server GUI.app/Contents/Resources/app/node_modules/appium/lib/appium.js:387:35)
[info] [HTTP] <-- POST /wd/hub/session 500 2808 ms - 667
[info] [HTTP] [debug] [WebDriverAgent] Parsed BUILD_DIR configuration value: '
Library/Developer/Xcode/DerivedData/WebDriverAgent-aghlrsejdreqngftgvcqwnjgrbou/Build/Products'
[debug] [WebDriverAgent] Got derived data root: '
/Library/Developer/Xcode/DerivedData/WebDriverAgent-aghlrsejdreqngftgvcqwnjgrbou'

Also, "npm i -g appium@next" isn't installing appium 2.0 on my machine

Also, "npm i -g appium@next" isn't installing appium 2.0 on my machine

hm, what message was raised? As https://www.npmjs.com/package/appium, next tag has 2.0.0-beta

Please share the npm install log (maybe debug flag may help) if still something error occurred


Update Regression Test Docs

This PR does the following

Update the Regression Testing Docs to address #218 and how user can get started
Remove unused imports throughout project thanks to PyCharm
Minor tweak to conf.py

@shahzebsiddiqui I can review this when the failed tests in the CI above are addressed.

@shahzebsiddiqui I can review this when the failed tests in the CI above are addressed.

I dont think there is an issue with CI tests according to Build 294 https://travis-ci.com/github/HPC-buildtest/buildtest-framework/builds/153843814 all Travis tests passed.
Coveralls is failing but doesn't show anything outstanding why its failing other than decrease on coverage report which is insignificant.
Codefactor is not important, i probably should remove this autocheck. It was handy but now i rarely look at it.

okay I'm good with merge, but could we please remove tests that are no longer considered important? It feels like noise at this point.

okay I'm good with merge, but could we please remove tests that are no longer considered important? It feels like noise at this point.

I agree, i will remove some of the regtest that are not needed. It will lower coverage but it's ok. Some of these are overhead and maybe its the feature that needs to be removed. I will look through the tests and see what can be removed.


[WIP] Remove tonic-web custom cors implementation and replace it with tower-http CorsLayer

Fix #1122, see the issue for more details.
This PR depends on #1119

I tested this branch on a personal project, connecting with connect-web client with grpc-web transport, and it works fine.

For me this is ready now, it would be nice if someone else can test it though :)


[ci skip] remove "unreleased" from in changelog

It's to be clear that it's the next version but it hasn't been released as a gem yet.


No Results - Cache Issue: Force refresh several times

Bug
In our superset the configured cache does not seem to work right. While loading a dashboard (or in browser refreshing with ctrl + r) sometimes leads to missing data in some charts with the error message:
No Results No results were returned for this query. If you expected results to be returned, ensure any filters are configured properly and the datasource contains data for the selected time range.
How to reproduce the bug
We have the following cache settings with a redis deployed
CACHE_CONFIG = {
      'CACHE_TYPE': 'redis',
      'CACHE_DEFAULT_TIMEOUT': 300,
      'CACHE_KEY_PREFIX': 'superset_results',
      'CACHE_REDIS_HOST': env('REDIS_HOST'),
      'CACHE_REDIS_PORT': env('REDIS_PORT'),
      'CACHE_REDIS_PASSWORD': env('REDIS_PASSWORD'),
      'CACHE_REDIS_DB': env('REDIS_DB', 1),
}
DATA_CACHE_CONFIG = CACHE_CONFIG

RESULTS_BACKEND = RedisCache(
      host=env('REDIS_HOST'),
      port=env('REDIS_PORT'),
      password=env('REDIS_PASSWORD'),
      key_prefix='superset_results'
)

Expected results
Superset charts are always returning data.
Actual results
Only sometimes the charts are returning data. Force refreshing the chart for several times leads to the charts showing data eventually.
Screenshots
Sometimes "Force refresh" works instantly (see gif below)

Sometimes "Force refresh does not work for several times (up to 5-10 times) until data is returned in the charts.
The network monitor of firefox does not seem to distinguish between the situation when data is returned or not (see picture below).

Already tried different browser (chrome Version 96.0.4664.45 (64-bit) and firefox 96.0.3 (64-bit) ) with both leading to similar results.
Interestingly in my search with the google chrome network monitor, I found that it seems like actually no data is returned:

Logs
The following logs are coming back when force refreshing the chart. Here the data appears after the third refresh (third block). Though it does not seem that it is visible in the logs whether data comes back or not:
2022-02-09 10:39:45,937:DEBUG:parsedatetime:eval - with context - False, False
Cache key: 99de8cd44f9823c1f5045776491405f3
2022-02-09 10:39:45,946:INFO:superset.viz:Cache key: 99de8cd44f9823c1f5045776491405f3
<IP_ADDRESS> - - [09/Feb/2022:10:39:46 +0000] "POST /superset/explore_json/?form_data=%7B%22slice_id%22%3A70%7D&force=true&dashboard_id=17 HTTP/1.1" 200 2030 "https://<SUPERSET-URL>/superset/dashboard/17/?native_filters=%28%29" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36"
<IP_ADDRESS> - - [09/Feb/2022:10:39:47 +0000] "POST /superset/log/?explode=events&dashboard_id=17 HTTP/1.1" 200 1 "https://<SUPERSET-URL>/superset/dashboard/17/?native_filters=%28%29" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36"

2022-02-09 10:39:50,740:DEBUG:parsedatetime:eval - with context - False, False
Cache key: 99de8cd44f9823c1f5045776491405f3
2022-02-09 10:39:50,749:INFO:superset.viz:Cache key: 99de8cd44f9823c1f5045776491405f3
<IP_ADDRESS> - - [09/Feb/2022:10:39:51 +0000] "POST /superset/explore_json/?form_data=%7B%22slice_id%22%3A70%7D&force=true&dashboard_id=17 HTTP/1.1" 200 2030 "https://<SUPERSET-URL>/superset/dashboard/17/?native_filters=%28%29" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36"
<IP_ADDRESS> - - [09/Feb/2022:10:39:52 +0000] "POST /superset/log/?explode=events&dashboard_id=17 HTTP/1.1" 200 1 "https://<SUPERSET-URL>/superset/dashboard/17/?native_filters=%28%29" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36"

2022-02-09 10:39:54,067:DEBUG:parsedatetime:eval - with context - False, False
Cache key: 99de8cd44f9823c1f5045776491405f3
2022-02-09 10:39:54,076:INFO:superset.viz:Cache key: 99de8cd44f9823c1f5045776491405f3
<IP_ADDRESS> - - [09/Feb/2022:10:39:54 +0000] "POST /superset/explore_json/?form_data=%7B%22slice_id%22%3A70%7D&force=true&dashboard_id=17 HTTP/1.1" 200 2129 "https://<SUPERSET-URL>/superset/dashboard/17/?native_filters=%28%29" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36"
<IP_ADDRESS> - - [09/Feb/2022:10:39:55 +0000] "POST /superset/log/?explode=events&dashboard_id=17 HTTP/1.1" 200 1 "https://<SUPERSET-URL>/superset/dashboard/17/?native_filters=%28%29" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36"

Environment
(please complete the following information):

browser type and version: chrome Version 96.0.4664.45 (64-bit) and firefox 96.0.3 (64-bit)
superset version: Superset 1.3.2
python version: Python 3.7.9
node.js version: N/A
any feature flags active:

FEATURE_FLAGS = {
    "ALERT_REPORTS": True,
    "DASHBOARD_NATIVE_FILTERS": True,
    "DASHBOARD_CROSS_FILTERS": True,
    "ENABLE_TEMPLATE_PROCESSING": True,
    "ENABLE_SCHEDULED_EMAIL_REPORTS": True,
    "EMAIL_NOTIFICATIONS": True
}

Checklist
Make sure to follow these steps before submitting your issue - thank you!

[ x] I have checked the superset logs for python stacktraces and included it here as text if there are any.
[ ] I have reproduced the issue with at least the latest released version of superset.
[ x] I have checked the issue tracker for the same issue and I haven't found one similar.

I'm facing the exact same issue. No Results in maximum refreshes. Cache seems to be empty alot of times.

@shal-kumari what version of Superset are you running?

@OlafKocanda Just checking in on this issue. I really appreciate the detailed issue you've filed! That said, it's been open a long time, and I'm wondering if you still face this, or found a solution/workaround. I'm hoping this is no longer an issue with 2.0.1, but wondering if you or @shal-kumari can validate if the issue remains.

@rusackas
Sorry for the late reply. I am not working for the company and on this topic anymore. I have forwarded the topic to my successor and waiting for a reply.

Closing this as stale since it's been silent for so long, and we're trying to steer toward a more actionable Issues backlog. If people are still encountering this in current versions (currently 3.x) please re-open this issue, open a new Issue with updated context, or raise a PR to address the problem. Thanks!

Get the same problem in version 4.0.2


Can i horizontal scale with docker for crawler system?

Thank you.

Yes! Just requires writing some code! Good luck! Please share back with the community if you do. Have a look at the .travis.yml file, which shows a bit of how to launch a docker container and run some code with it.]


Notebook with embedded vega-lite output doesn't show properly

I'm trying to use the built-in vega-lite support for the julia VegaLite.jl package. Through a lot of hoops I managed to create this notebook file. Don't try to run the code in that notebook, that part only works if you have a whole number of unreleased branches checked out on the julia side of things.
BUT, at the end of the day, I would have expected that if this notebook file just gets opened in jupyterlab with the vega3 extension installed, that it would show the vega-lite plot. The second cell does have a data field that has the mime type application/vnd.vegalite.v2+json, and inside there it does have a valid vega-lite 2 spec, so shouldn't this show the graph if I just open that file in jupyterlab?
I am suspecting that I'm doing something wrong because it also doesn't show in nteract.
Any pointers would be greatly appreciated!

Ok, no all working end-to-end :) Thanks for the help!

I just published @jupyterlab/vega3-extension 0.14.3 with this fix 👍


Release 2.1.0

Codecov Report

Merging #14 (5077a1e) into main (6cf30fb) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##              main       #14   +/-   ##
=========================================
  Coverage   100.00%   100.00%
=========================================
  Files            2         2
  Lines           64        64
  Branches         6         6
=========================================
  Hits            64        64

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 6cf30fb...5077a1e. Read the comment docs.


Login part 2

Continuing work on LoginTopBar: https://github.com/OpenCollective/OpenCollective/issues/154

lgtm


net/http/cookiejar: The result of Cookies cannot be SetCookies

https://github.com/golang/go/blob/9ff00398489d9eb1822b3de028cd6ccf5674ebb3/src/net/http/cookiejar/jar.go#L220-L222
Why here is a simple cookie that only contains Name and Value.
Because sometimes we need to directly operate the jar, such cookies will be of little value in many scenarios.

Duplicate of #39420


Bug: Unable to open app

I'm running macOS Ventura (13.6.2) and getting an error when trying to open the app downloaded from releases and unzipped.

Perhaps the README requirements need to be updated.

Looks like "Minimum Deployments" is set to 14.0 and if lowered I'm able to run the app.

It seems to correspond to MACOSX_DEPLOYMENT_TARGET in the project.pbxproj file (source).

Looks like "Minimum Deployments" is set to 14.0 and if lowered I'm able to run the app.

Yeah you're right I will updatr the code and the release application as well. Thank you pointing out.


make(tools): add kernel and rootfs for development

What does this do ?
This adds scripts to:

build an alpine rootfs
build a linux kernel

It also adds a Justfile to launch those scripts and the VMM.
How to use it
cargo install just
just setup
just run

This should build a kernel, a rootfs and runs the vm.

lgtm


The installer does not install

Hello. When I try to install the installer, a window opens. Even though I've downloaded the latest version and have an internet connection. Please advise me on what to do?

In the latest version I tried to solve this problem, try again

In the latest version I tried to solve this problem, try again

I have the same issue :(
My internet connection is fine and I have the latest version of installer. What do I do?


Created love calculator

🛠 Issue (Number)

Closes #322
Description
I have made a love calculator which will generate a random output when 2 names will be mentioned. I have added a header and a description paragraph as well.
Type of change

[x] New feature (non-breaking change which adds functionality)

Checklist:

[ ] I have made this from my own
[x] I have taken help from some online resourses
[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code

ATTACH SCREEN-SHOTS / DEPLOYMENT LINK

Create projects which adds some value


The Which column

@stephpenn1

Example
"Instrument"
"Which"
"Individual"
Notes

Aquatroll
Model (200 or 600)
Number/name within plot
NA
OWC UP and TR have A, B, C trolls

Sapflow
"Sapflow"
NA
Tree number

TEROS
"TEROS12"
NA
Probe number

Check (datalogger)
"Datalogger"
Datalogger number
NA

Exo
"EXO"
NA
NA

ClimaVue
"ClimaVUE50"
NA
NA

Following up on our discussion yesterday, here's a table showing how each of the L1 fields is used for each data type.
Right now, it's OWC trolls that make us need a Which column.

Example
"Instrument"
Unique_ID
Location
Unique_ID Description

Aquatroll
Model (200 or 600)
SN
Plot
Serial Number

Sapflow
"Sapflow"
??
Tree number
Port Number?

TEROS
"TEROS12"
Probe number
Grid Cell
Sensor ID

Check (datalogger)
"Datalogger"
Logger Number
Plot
Logger Number

Exo
"EXO"
SN
Plot
Serial Number

ClimaVue
"ClimaVUE50"
SN
Site
Serial Number

** Note in this example, we would need a mapping document that joins with Unique_ID to add in Location separate from design_table
*** Second Note: This will introduce repeats in long format, so we'd have to access data volume increase

NICE -- definitely getting closer! But I am concerned about the high data repetition; those serial numbers could kill us.
What about:

Example
"Instrument"
"Instrument_ID"
"Location"

Aquatroll
"AquaTROLL200" or "AquaTROLL600"
"A"/"B"/"C"
Grid cell (TEMPEST) or "Plot" (synoptics)

Sapflow
"Sapflow"
NA
Tree number

TEROS
"TEROS12"
Probe number
Grid cell (TEMPEST) or "Plot" (synoptics)

Check (datalogger)
"Datalogger"
Logger number
"Plot"

Exo
"EXO"
NA
"Plot"

ClimaVue
"ClimaVUE50"
NA
"Site"

👉 Data release will include mapping file for tree number -> grid number and species

Minor question: in L1 we're using "NA" for missing values. Keep this? We could also change to "" (empty string).

NICE -- definitely getting closer! But I am concerned about the high data repetition; those serial numbers could kill us.

I think this exactly is great

Minor question

Will R and other programming languages read a blank cell as NA automatically? I want to say yes. Second question, if we had "NA" here, would that add to the memory?
I want to there's a difference between column = NA vs. column = "NA" right?

I want to say there's a difference between column = NA vs. column = "NA" right?

Yes! The first sets to NA, and the second sets to a string "NA".
So R (but not many other languages) has an explicit NA, right. What I'm wondering is when we write the L1 data out as csv files, what are NA values written as? This is write.csv's  na parameter:

Files written with "NA" for missing values versus "" will be slightly bigger, yes.
Okay, anyway, thank you. I will plan to produce the draft L1 dataset following the schema above, and then we can evaluate, if that sounds good.

Sounds great - thank you!


Updating names of boxes and towers

Pull Request instructions:

Please follow the update protocol
Answer the questions below in detail. Your responses will be emailed to experimenters.
If the experimenters must do anything new, provide detailed step by step instructions on the wiki
Use markdown syntax in order for your comments to be rendered reliably in the email: "1." instead of "1)", use four spaces for indents.
If you use the keyword "skip email" in the title, it will skip the email updates
Merges from "production_testing" into "main" should use the keyword "production merge" in the title for reliable indexing of updates

Describe changes:

Our change in naming convention prompts updates to how we refer to boxes, and towers. I'm using this as an opportunity to fix some confusing terms in the code. I also realized that #145 is flawed in that the boxes will still be referred to as A-D in the tower, so I am effectively reversing that PR.
The code is still a little confusing because of two issues:

First, internally, and when loading settings and calibration files it uses the nomenclature of box1,2,3,4, not A,B,C,D. But I don't think this is worth fixing because when we move to one box/computer, we wont need all this logic anyways (https://github.com/AllenNeuralDynamics/dynamic-foraging-task/issues/157)
Second, https://github.com/AllenNeuralDynamics/dynamic-foraging-task/issues/156

What issues or discussions does this update address?

#147
Reverses #145
Fixes changes prompted by https://github.com/AllenNeuralDynamics/aind-behavior-blog/issues/158

Describe the expected change in behavior from the perspective of the experimenter

no changes

Describe the outcome of testing this update on a rig in 447

[x] tested in 447

@hanhou @XX-Yin Can you review this PR?

You rename box like 447-1-A. Do you add these boxes name to the GUI object Tower? If not, the GUI can't select 447-1-A.

No, I didn't. My plan was to remove the GUI object Tower altogether (see https://github.com/AllenNeuralDynamics/dynamic-foraging-task/pull/158)

You rename box like 447-1-A. Do you add these boxes name to the GUI object Tower? If not, the GUI can't select 447-1-A.

No, I didn't. My plan was to remove the GUI object Tower altogether (see #158)

That sounds good! I will approve this.
We should add the new rig name to the GUI like shown below if we make changes.


Request: Remove large "Promote" button on tweets made by user

You get the promote button by setting up a professional profile.


Add Positive Definate Woodbury

First commit.
First commit is just the old close-source code.
Only real change is to use ChainRulesCore rather than Zygote to make non-differnetiable.
Some updates to the tests.
Particular fiddly was realising that their was a breaking change in Distributions 0.23.8->0.23.9 that snuck though.
https://github.com/JuliaStats/Distributions.jl/pull/1160

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@f14d32b). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master       #2   +/-   ##
=========================================
  Coverage          ?   62.82%
=========================================
  Files             ?        3
  Lines             ?       78
  Branches          ?        0
=========================================
  Hits              ?       49
  Misses            ?       29
  Partials          ?        0

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 f14d32b...f1359ba. Read the comment docs.

CI is only failing on nightly, because Zygote  doesn't work on nightly


[Feature] Add new plugin for Generative Replace

Feature Request
Is your feature request related to a problem? Please describe.
URL Loader should support Generative Replace: https://cloudinary.com/blog/generative-replace-object-replacement-with-ai
Describe the solution you'd like
In my mind I'm thinking the prop can be replace. The tricky part is there isn't a single string that can be used unless we use delimiters which i think doesnt make sense for this API, instead, I'm thinking examples such as:
replace={['apple', 'banana']}

Which would apply a transformation like:
e_gen_replace:from_apple;to_banana

we could also support object syntax which may help support additional future features:
replace={{
 from: 'apple',
 to: 'banana',
}}

Feedback would be great on this.
Please check out the notes and limitations in the docs: https://cloudinary.com/documentation/transformation_reference#e_gen_replace
One for instance is that the transformation must be the first in the chain, meaning it should be added to the transformation array similar to background removal: https://github.com/colbyfayock/cloudinary-util/blob/main/packages/url-loader/src/lib/cloudinary.ts#L26
Please add support for this plugin as well as tests

@colbyfayock, using object syntax makes a lot more sense to me. Especially considering there's a 3rd, optional parameter preserve-geometry.
I'd love to take this one on and sneak it in as a last commit for Hacktoberfest.

all yours! i was thinking supporting multiple syntaxes would be nice to make it easy for the different use cases, the simpler the use case the simpler the syntax, but can see what you come up with

I'm technically wrapping up the object syntax version. No problem to add an array option as well. Want me to add it?

yeah let's do it!


SMN egi assaults incorrectly listed in OGCD checklist

In the "Use your OGCDs" section of the SMN checklist, egi assaults are listed despite being GCD actions.

This is a good point. Do we have a module for evaluating GCDs that have cooldowns like those?
If not, would it be better to change the module to reflect that it's tracking cooldown action uses, rather than OGCDs specifically?

The module itself is relatively agnostic of what the skill is, just that it has a cooldown. It'll likely just come down to changing the wording on the checklist entry there.
If it's not configurable, probably should be. Dunno if it should be changed globally or on a case-by-case.

Samurai also does the same thing Summoner does regarding GCDs with a long cooldown using the oGCD module to handle it. Not sure if other jobs also do the same. I'd say generalize it as "Skill Usage" or something similar. I don't see a reason to make another module to handle GCDs of this nature. it's not like we would handle them differently.

This is (finally) be addressed in pr 834 and will likely be merged in soon to go live on the website.

PR is merged with the updating wording.


Deactivate Apollo client cache

I would like to open the discussion about completely removing the cache of Apollo.
Currently, the codebase doesn't properly implement the cache system of Apollo.
Only type Account is setup to merge data with the same address and I'm not even sure why.
Apollo seems to cache by default lazy query (bug because of cache on lazy query: https://github.com/liteflow-labs/nft/pull/1948) but not on all version.
My suggestion is to deactivate the cache of Apollo for now:
return new ApolloClient({
    link: authLink.concat(httpLink),
    cache: new InMemoryCache({
      typePolicies: {
        Account: {
          keyFields: ['address'],
        },
      },
    }),
    ssrMode,
+    defaultOptions: {
+      query: {
+        fetchPolicy: 'no-cache',
+      },
+      mutate: {
+        fetchPolicy: 'no-cache',
+      },
+      watchQuery: {
+        fetchPolicy: 'no-cache',
+      },
    },
  })

https://github.com/liteflow-labs/nft/blob/4ebf01b1a77741542576296efdbd7e70a0081f6f/packages/components/src/client.ts#L51-L61
This will help remove any side-effect caused by un-wanting cache.
We can always activate the cache per request if we need to.
@liteflow-labs/nft-marketplace I would like to have your feedback on this one.

@antho1404 could you elaborate on the "effort" required for this? Chris is mentioning a "big refactor" I would like to understand the effort on our side to take a decision on this issue ;)

This still needs more research to see if it even makes sense to remove the cache because of the SSR. For information, I have already started to work on some improvements on the SSR and the apollo client/cache here https://github.com/liteflow-labs/starter-kit/pull/118. This will give more answers

fixed by https://github.com/liteflow-labs/starter-kit/pull/300


Revert "Add Encode and Decode macro invocation for all tuple lengths"

Reverts nomic-io/ed#11

Codecov Report

Merging #12 (eb6cd29) into master (945b2e9) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #12   +/-   ##
=======================================
  Coverage   98.28%   98.28%
=======================================
  Files           1        1
  Lines         291      291
=======================================
  Hits          286      286
  Misses          5        5

Impacted Files
Coverage Δ

src/lib.rs
98.28% <ø> (ø)

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 945b2e9...eb6cd29. Read the comment docs.


Date Field calendar fails when backend language is set to german

Title says it all. When the backend language is set to german I get JS-errors in the edit-page when a data field calendar is used:
[Warning] Deprecation warning: moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release.
Nils suggested the root of evil might be in this line: https://github.com/symphonycms/symphony-2/blob/integration/symphony/assets/js/src/symphony.calendar.js#L22

My guess is that the language string is not correct or at least not recognised correctly.

Note to @brendo: This needs to be fixed before the first RC because the issue literally affects all localised systems. I'm working on a Symphony project this week and hope to find the time to look at it along the way.

So looking at this at the moment (I've updated jQuery, Moment and Calendar plugins as well), it seems that it's caused by the lang_german extension setting the default date format to d. F Y. The mappings in the DateTimeObj class don't include a value for this, so no format is added to the Calendar widget. This then has the knock-on effect because moment can't parse the German date and neither can the browser.
So adding a new record for the d. F Y fixes the issue, but I'm wondering if the actual fix should be in the lang_german extension? Is 02.January 2015 natural in German?

Apologies @nilshoerrmann, I kept running with this (JS and CSS instead of PHP for change)! What I've done is just make the calendar abort if there is no format available. I think this is a better experience instead of having a broken calendar display. Still up for your input on the german date format though :)

Is 02.January 2015 natural in German?

Yes, it is (without the leading 0 though). These are the most common German formats:

Januar 2015 (text)

2.1.2015 (text)
02.01.2015 (tabular data)

So the German language extension should use j. F Y instead of d. F Y if I'm not mistaken.

So adding a new record for the d. F Y fixes the issue, but I'm wondering if the actual fix should be in the lang_german extension?

We could remove this setting form the language extension but users are allowed to set the system date to any valid PHP data string. So this doesn't fix the issue.
What about this:

We disable the calendar, if the format is not recognized.
We give extensions a way to extend $date_mappings so missing dates can be added by language extensions, if needed.

Ah, you moved along already – so we agree on disabling the calendar. What do you think about extending the mappings?

Ah, you moved along already – so we agree on disabling the calendar. What do you think about extending the mappings?

Yep sorry. Yeah, I think for maximum compatibility extensions should be able to change those mappings. Not exactly too sure how this would happen at the moment, we don't know where a translation comes from at the minute.

Well, the calendar is new in 2.6 so we can introduce it with some restrictions. One might be the dependance on predefined date formats. The current mapping should contain the most common formats – we've updated the list a while back with missing European formats. The problem with the German translation is – as you discovered – a wrong format definition that can be solved within the extension easily.
What about adding a note in the console in cases the system doesn't recognise the format? Maybe even suggesting working alternatives (just referencing the class with the mappings might be confusing because of the mixture of PHP and Moment definitions). That message should automatically be written to the system log as well, if I'm not mistaken.
So in the case of an incompatible format, the calendar in the publish filtering interface will work non the less, because it relies on a standard American date format. Only the calendar of the date field will be affected.

There is now a dedicated function to disable the field calendar. It adds the following note to the browser console:
The Symphony calendar widget has been disabled because your system date format is currently not supported. Try one of the following instead:

 - Y/m/d (2015/01/08)
 - d/m/Y (08/01/2015)
 - m/d/Y (01/08/2015)
 - m/d/y (01/08/15)
 - Y-m-d (2015-01-08)
 - m-d-Y (01-08-2015)
 - m-d-y (01-08-15)
 - d.m.Y (08.01.2015)
 - j.n.Y (8.1.2015 – no leading zero)
 - j.n.y (8.1.15 – no leading zero)
 - d.m.y (08.01.2015)
 - d F Y (08 January 2015)
 - d M Y (08 Jan 2015)
 - j. F Y (8. January 2015)
 - j. M. Y (8. Jan. 2015)

That message is only shown if the calendar is actually used and the date format is unknown. The suggestion list is generated dynamically and will feature all formats available in the system. The preview always shows today's date.

+1


[Immersive Engineering] Engineer's Hammer Auto Crafting

Issue description:
Negative number of Engineer's Hammer appears in storage system if crafting metal plates.
What happens:
Autocrafting is not using Enigineer's Hammer (doesn't get damaged) but spawning a negative "ghost" version of it. (Dissapers after reopening the grid)
What you expected to happen:
Use Hammer durability and don't spawn this "ghost" items.
Steps to reproduce:

Install Immersive Engineering
Create Autocrafting Recipe for (Electrum) plates.
Craft and search in grid for hammer
...

Version (Make sure you are on the latest version before reporting):

Minecraft: 1.10.2
Forge: <IP_ADDRESS>5
Refined Storage: 1.2.18
Immersive Engineering: 0.10-54

Does this issue occur on a server? [yes/no] yes
Screenshot
http://i.imgur.com/H8V3WIJ.png

I can no longer reproduce this in Refined Storage 1.5.24.


phase1-gce: make it possible to use GOOGLE_APPLICATION_CREDENTIALS

In case the user has not created the 'account.json' file,
fallback to using the file defined in GOOGLE_APPLICATION_CREDENTIALS.
If GOOGLE_APPLICATION_CREDENTIALS is not defined or the file there
is missing, do nothing.
fixes https://github.com/kubernetes/kubernetes-anywhere/issues/332
refs: https://github.com/kubernetes/test-infra/pull/9117
i need some feedback on this as have no means to test it ATM. does this look right, GCE wise?
the ideas is to move the following away from the kubeadm test-infra runner and have it in phase1-gce instead:
https://github.com/kubernetes/test-infra/blob/master/images/kubeadm/runner#L32-L36
/assign @mikedanese @errordeveloper
/cc @BenTheElder

updated to use ln -s.

@kubernetes/sig-cluster-lifecycle-pr-reviews

bumperino. :eyes:

/assign @roberthbailey
:bat: signal

/lgtm

I don't think this repo has auto-merging support, so clicking the button....


Date range not consistant

Hello, I have a date inconsistency
all_tickers_list = ["ACP.WA", "AAPL"]
df = yf.download(all_tickers_list, start = "2022-03-30")
data = df['Close']

gives:
                  AAPL     ACP.WA
Date
2022-03-29  178.960007        NaN
2022-03-30  177.770004  80.849998
2022-03-31  176.759995  80.650002

When data is downloaded separately ACP.WA starts properly on 30, whereas AAPL starts on 29. What could be the case?

I'm testing a timezone fix, it should address your issue: https://github.com/ValueRaider/yfinance/tree/fix/timezone
You'll have to play with sys.path.insert to load this over PIP. Give it a play.

Fix is now in PIP


Add target for raw HTTP request string (RFC 7230)

This target isn't really a programming language, but I found the need to build raw HTTP request strings from a HAR object. I'll just be sharing this in case the maintainers here feel it might be useful to merge in.
The output is a HTTP/1.1 request string which is fully compliant with RFC 7230/7231, the up-to-date set of IETF standards for HTTP/1.1. The name of the target or folder can be changed if anyone has a better idea.
Since I didn't know if this will be merged in, I haven't written any tests or updated the documentation. If we decide to go ahead with it, then I will add tests and docs prior to this being merged in.

@irvinlim We are in a bit of a transition time, but this looks good to proceed if you want to start the work. I like that you linked to the RFC, but I wonder if it makes more sense to call it http/1.1 or some readable name http1. We can always link to the RFC in the comments/description. Tests/linting/docs would be great!

Hey @darrenjennings, glad to hear the Kong is still maintaining this repo! Renaming it to http/1.1 sounds good. I will add tests, linting and docs once I have the time this weekend or so.

our test suite is now stable on master if you would kindly rebase and add output fixtures and fix and linting issues. See #128 for inspiration.

Hope everything's fine now! I didn't have time to come up with additional tests, but feel free to add any tests for custom options and such.
Fixtures were initially failing because CRLFs weren't committed in Git, you'll have to disable Git from converting CRLF to LF:
git config core.autocrlf true

Great work @irvinlim and thanks again for your contribution.


Specification: Non-nullable type annotation syntax

This is the specification-specific issue for #27231. That issue has the details.

No milestone now: This is not part of Dart 2, but will be considered later.


Maxhandshake errors and Unexpected Genesis Event errors

My node id is 7Zg8Df59zp6WdraySJDQ8vpmiwoVvFrNe4nMsi2ZCqV1
Since the update yesterday i received some maxhandshake errors and unexpected Genesis Event errors. This happened aroud 3.44 this morning. My node uptime was false for a few minutes as well. After a few minutes everything fixed itself and the node started finalizing again.
I attached my log file in this report.
Kind regards,
Peter
config.zip

Got a bunch of max handshake errors recently too, and on restart, failed to join network


Renamed licence template file

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 88.65%. Comparing base (10dbe0d) to head (f6e3f37).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff            @@
##               main     #137   +/-   ##
=========================================
  Coverage     88.65%   88.65%
  Complexity      115      115
=========================================
  Files            23       23
  Lines           476      476
  Branches         30       30
=========================================
  Hits            422      422
  Misses           36       36
  Partials         18       18

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


the documented way of installing extensions for tests doesn't work

running the code cli as documented in https://code.visualstudio.com/api/working-with-extensions/testing-extension and on util.resolveCliPathFromVSCodeExecutablePath doesn't work since the 2.0.0 release because vscode is now invoked with a custom extensions dir (and user-data-dir, in runTest.runTests.
currently one can call runTests with reuseMachineInstall to work around this without depending on the internals of this package.
more invasive workarounds are supplying one's own extensions-dir and user-data-dir when installing extensions with the cli and when calling runTests (as part of launchArgs), or by importing defaultCachePath from the download submodule (which doesn't seem like it's supposed to be exposed) and supplying extensions-dir and user-data-dir just for the cli.

Good find. I've added resolveCliArgsFromVSCodeExecutablePath which can be used instead. I updated the sample in this repo, and will update the docs now.


How to convert annotations from  VATIC format to VOC format ?

Hi , I am new to this platform, I have annotations for and video files already annotated using Vatic,
For example for video 0 , this is annotation file ,
0 81 121 105 164 0 1 0 0 "person"
0 81 121 104 164 1 1 0 1 "person"
0 81 121 104 164 2 1 0 1 "person"
0 81 122 104 164 3 1 0 1 "person"
0 81 122 104 164 4 1 0 1 "person"
0 81 123 104 164 5 1 0 1 "person"
0 81 123 104 164 6 1 0 1 "person"
How I can convert video to frames and annotation for each frame in Pascal VOC or YOLOV3 format from this file? does Vatic provide this facility or I have to write code by myself?

same question, have you found any ways to do that?


Problem with PHP7 and round function when I enable any MsSQL module

+## PHP Driver version or file name
sqlsrv-5.3.0 and pdo_sqlsrv-5.3.0
+## SQL Server version
Don't really care, because is a PHP function changed without connect to any server.
+## Client operating system
Debian 8 Jessie
+## PHP version
7.0.31
+## Microsoft ODBC Driver version
msodbcsql                            <IP_ADDRESS>-1
msodbcsql17                        <IP_ADDRESS>-1
mssql-tools                           <IP_ADDRESS>-1
+## Table schema
No BBDD is used
+## Problem description
When I enable any of the two modules on PHP (sqlsrv.so or pdo_sqlsrv.so), php round function changes the decimal separator from point to comma.
+## Expected behavior and actual behavior
Is expected to keep the php round function intact, because changing this function breaks pages.
With module enable:
# php -r 'echo round(85.20, 1);'
85,2

When is disabled (normal behaviour):
# php -r 'echo round(85.20, 1);'
85.2

+## Repro code or steps to reproduce

Just install the module following the instructions of the MS webpage (pecl install...)
Install MsSQL ODBC driver msodbcsql17 following the MS instructions too
Enable the module on php fpm or cli conf.d folder
Enjoy how it breaks you're webpage changing the php round function

Thanks!!

Hello, thanks for your response.
The server locales are:
LANG=es_ES.UTF-8
LANGUAGE=
LC_CTYPE="es_ES.UTF-8"
LC_NUMERIC="es_ES.UTF-8"
LC_TIME="es_ES.UTF-8"
LC_COLLATE="es_ES.UTF-8"
LC_MONETARY="es_ES.UTF-8"
LC_MESSAGES="es_ES.UTF-8"
LC_PAPER="es_ES.UTF-8"
LC_NAME="es_ES.UTF-8"
LC_ADDRESS="es_ES.UTF-8"
LC_TELEPHONE="es_ES.UTF-8"
LC_MEASUREMENT="es_ES.UTF-8"
LC_IDENTIFICATION="es_ES.UTF-8"
LC_ALL=

Greetings.

Hi @i2dcarrasco
Please check if the default encoding for Apache is configured and if so, is it set to UTF-8?

In a command prompt, I could reproduce this issue when my encoding was set to es_ES ISO-8859-1.
This might be a useful reference to you

Hello,
I still investigating the problem, but after some changes looks like maybe is a problem of es_ES locales on Debian 8.
I've a machine with Debian 9 and locale es_ES.UTF-8 that works perfect. The machine that fails have Debian 8 and same locale, but when I change the locale to en_US.UTF-8 it starts to works so looks like es_ES.UTF-8 + PHP7.0 on Debian 8 make it fail.
Now I'll try to upgrade the SO to see if upgradeing to Debian 9 will fix it.
Greetings and thanks for all your help.

Sounds good! Thanks @i2dcarrasco and let us know how it goes.

Any update, @i2dcarrasco? If we don't hear from you for the next few days, we will close this issue.

Hi,
For now the only I know is that using spanish locales (es_ES.utf-8), the module changes the point to comma, and using english locales (en_US.UTF-8), it keeps the point.
For now I was not able to test the solution on the final server, but looks like will be fixed.
The only thing that I don't understand is why the SQL module changes the behaviour of an external function. It's true that decimal separator is comma in spanish, but before enable the module and even in spanish locales the separator of that function is point.
I'll give a try to change just the LC_MONETARY.
Greetings!

Hello again,
Finally looks like just changing LC_NUMERIC works:
# cat /etc/default/locale
LANG=es_ES.UTF-8
LC_NUMERIC="en_US.UTF-8"

# php /server/nfs/projects/alantra_web/www/test.php
85.2

Greetings!!

Sounds great, @i2dcarrasco! I'm closing this issue, but please feel free to reopen anytime.

The locales issue is still happening.
We were having problems with the numbers' encoding and we spent a lot of time trying to debug the issue. The culprit was the PDO_SQLSRV driver that was installed (via PECL) to connect to a remote MS SQL machine. It somehow overrides the LC_Numeric set by environment and php.ini (in our case, es_ES).
The local MySQL database contained numbers created with the es_ES locale, and when values were read, they were displayed incorrectly, similarly to what happened to @i2dcarrasco .
Pdo_sqlsrv 5.6.1 stable on Debian 9. Issue both happening on PHP 7.1 and 7.2 (at the moment the extension is activated).

@decece It sounds like there may be an issue with sqlsrv's locale handling when the locale is set in php.ini. We will investigate and get back to you.

hi @decece to help us investigate please provide

a repro script, preferably PHP script
table schema, if applicable
locale settings in your environment
how you set locale in php.ini

For the last point above, did you set intl.default_locale?
The clearer the instructions / steps the better, such that we may be able to reproduce the issue.

Hi @decece
Upon further investigation, I figure your problem is in fact the opposite of the original problem reported by @i2dcarrasco
In his case, he wanted the decimal dot rather than using the comma (defined by the env locale settings). In your case, you want to preserve the comma as the decimal point. I've done some quick test in PHP, as shown in the following script:
<?php

echo setlocale(LC_NUMERIC, NULL) . PHP_EOL; // expect es_ES.UTF-8
$number = 10/3;
echo $number . PHP_EOL;                     // expect something like 3,3333333333333

try {
    $conn = new PDO("sqlsrv:server=$server ; Database = $database", $uid, $pwd);
    $conn->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);

    // Comment this line below to fetch numeric data as strings
    $conn->setAttribute(PDO::SQLSRV_ATTR_FETCHES_NUMERIC_TYPE, true);

    $tsql = 'DROP TABLE myTable; CREATE TABLE myTable (col1 float, col2 real)';
    $stmt = $conn->query($tsql);

    $tsql = "INSERT INTO myTable (col1, col2) VALUES (:c1, :c2)";
    $stmt = $conn->prepare($tsql);
    $stmt->bindValue(':c1', $number);
    $stmt->bindValue(':c2', $number);
    $stmt->execute();

    $tsql = 'SELECT * FROM myTable';
    $stmt = $conn->query($tsql);

    $result = $stmt->fetchAll();
    var_dump($result);

} catch (PDOException $e) {
    var_dump($e->errorInfo);
}

unset($conn);
?>

The results show commas in the numbers:
es_ES.UTF-8
3,3333333333333
array(1) {
  [0]=>
  array(4) {
    ["col1"]=>
    float(3,3333333333333)
    [0]=>
    float(3,3333333333333)
    ["col2"]=>
    float(3,3333332538605)
    [1]=>
    float(3,3333332538605)
  }
}

However, this is not the case when the numeric data are fetched as strings. To do this, set PDO::SQLSRV_ATTR_FETCHES_NUMERIC_TYPE to false or simply comment the line in the php script above (because it is by default false).
When they are fetched as strings, you see decimal points, not commas.
Please verify, at your earliest convenience.

Hello @yitam,
I'll provide some information about our settings:

Server running Debian 9 Stretch.
Locales used: es_ES.UTF-8 and en_US.UTF-8. It was later changed to just es_ES (when we were debugging this error).
PHP 7.1 and 7.2, with intl.default_locale set to es_ES (set manually in php.ini).
The MySQL (local) schema had a number stored as:  decimal(12,4). On PHPMyAdmin any number stored in that column shows as, for instance, 7.5.

We were running Magento on that machine, and the problem appeared the moment we activated PDO_SQLSRV extension. We tried both in PHP 7.1 and 7.2, and the problem arose only when activating the extension. A 7.5 number would appear on the site as 7.500.000,00.
We had to connect to a remote MS SQL machine to keep the prices updated, that's why we started using the PDO extension. As we had to keep going with the project (we had to meet some deadlines) we decided to drop PDO_SQLSRV entirely and use Microsoft's ODBC Driver v17, in which the issue didn't arise.

Thanks @decece for the update. I have a few more questions:
About your locale settings, is it mainly en_US.UTF-8 except for LC_NUMERIC you use es_ES.UTF-8? I've done some brief testing setting intl.default_locale to es_ES but did not find anything unusual. If you think intl functions were affected, please provide the steps to reproduce.
Also, it isn't clear to me if you meant that by enabling the pdo_sqlsrv extension, your pdo_mysql script(s) is(are) affected. Or did you mean that pdo_sqlsrv does not correctly show numeric data when fetching from MySQL tables?
Again, it helps us investigate if you can provide a pdo script.

Hi @decece
We could not seem to reproduce the issues that you have encountered, and due to insufficient details and inactivity, we will close this issue.


Proxy subdomains

I don't think that is it a bug. But I can't find a good example for this use case.
1. What version of Caddy are you running (caddy -version)?
0.8.2
2. What are you trying to do?
Proxy subdomain to different servers
3. What is your entire Caddyfile?
:443
proxy subdomain.example.de/ someserver:8080 {
  	proxy_header Host {host}
	proxy_header X-Real-IP {remote}
	proxy_header X-Forwarded-Proto {scheme}
}
proxy subdomainA.example.de/ someserver:8000 {
  	proxy_header Host {host}
	proxy_header X-Real-IP {remote}
	proxy_header X-Forwarded-Proto {scheme}
}
tls {
	max_certs 10
}
log /var/log/caddy.log
gzip

4.
As a Docker container linked with docker-compose to other containers.
5. What did you expect to see?
The specified servers (someserver)
6. What did you see instead (give full error messages and/or log)?
404 Not Found

You want something like this instead:
subdomain.example.de {
    proxy / someserver:8080 {
        proxy_header Host {host}
        proxy_header X-Real-IP {remote}
        proxy_header X-Forwarded-Proto {scheme}
    }
    log /var/log/caddy.log
    gzip
}

subdomainA.example.de {
    proxy / someserver:8080 {
        proxy_header Host {host}
        proxy_header X-Real-IP {remote}
        proxy_header X-Forwarded-Proto {scheme}
    }
    log /var/log/caddy.log
    gzip
}

Now I get the following error:
Parse error: Unknown directive subdomain.example.de

Okay, I got it. Thanks!


[DOCU-1720] MVP Embedded Spotlight API documentation

This is the MVP for embedding Spotlight API documentation for the Portal API. The scope of this MVP was getting the API embedded into the docs site. This required minor styling to fix some minor issues with H1, and left and right padding around the second and third columns.
Access the documentation via Gateway > Configure > Kong Dev Portal > Kong API.

Link: https://deploy-preview-3582--kongdocs.netlify.app/gateway/2.7.x/developer-portal/portal-api/
Some considerations for the future:

This addition increases build time as we are adding a lot of files. Let's consider keeping API documentation on a separate repo and pulling in the output in to the docs site through a webhook.
Please also note that this solution is not mobile-friendly.
I resorted to using !important to overwrite styling in some places as some elements are declared multiple times. Let's do a refactor of the CSS to clean it up.

This is looking good.
Three pieces of feedback:
I think we should hide the Try It Out section as it won't work without configuring CORS

.TryItPanel {
  display: none;
}

Secondly, when the announcement bar is present the Overview link gets cut off

Finally, we're missing a redirect from /files-api to /portal-api
Once these are resolved I think we're good to ship

I think we should hide the Try It Out section as it won't work without configuring CORS
Makes sense to me for an MVP.

It would be really awesome if we could have something that sends sample requests, but I'm guessing that would be complicated to set up properly. This actually also appeared on a wishlist of doc improvements from support just this week:

The apigee "live docs" were great. You can call endpoints in your instance from the doc pages: https://cloud.google.com/apigee/docs/reference/apis/apigee/rest/v1/organizations/create

So - future enhancement for sure, but agree that it makes sense to leave out for now.

When the banner is present I see the "Dev Portal" header in the sidebar. When I collapse the banner it disappears.

+1 on that - I should've added it to the list. Because this page is not using a dedicated layout file, the control over styling is limited. We went back and forth on this bug and decided it would be fine for a first iteration to leave it as is, since it doesn't block any links.


src/ops/validate.rs: Common-up some type row calculations

Various of these exist already as methods on the classes in controlflow.rs...

@cqc-alec I think this PR demonstrates the issue with the coverage check. The check fails, because I have shortened/compacted the code that is tested, but not done anything to the untested code...

@cqc-alec I think this PR demonstrates the issue with the coverage check. The check fails, because I have shortened/compacted the code that is tested, but not done anything to the untested code...

That is an issue yes. I guess we just ignore it in that case.


Retrying submission in request_sender

It would be nice if we can put a large number of requests at once.
If we reach max number of simultaneous requests for reuters server, then the tool creates an event listener (waiting for job complete notification) to kick a callback which in turn sends another request via api.

Just made a quick PR to fix this. I solved with a simple retry function instead of an event listener. Let me know what you think and will merge it into master.
I also renamed the issue, as it has nothing to do with asynchronous requests (asyncio/aiohttp stuff) and TRTH doesn't really support processing multiple HTTP requests concurrently (it usually throws the following error: Authentication failed --> Your account is busy with another process.).

This does it!!


xdeps: add unregister in copy_expr

in https://github.com/xsuite/xtrack/blob/e434c57f20ef77d872eb455c1817703f17289ea6/xtrack/line.py#L3434
copy_expr_from is used but inside not check for overwrite is done as in set_value
Either add unregister in copy_expr_from or make a new method if too expensive for from_json

This was solved by recent refactoring
https://github.com/xsuite/xdeps/blame/69ae43c8d2e6e38d98ad1ab4e1e6f1d6b728372d/xdeps/tasks.py#L389


Some questions about GPU acceletarion

Hello, I am very curious about GPU acceletarion. I have noticed that GPU acceleration has not yet been implemented in many mainstream fully homomorphic encryption libraries. Now, I have the following questions:

Why can't GPU acceleration be implemented in those mainstream libraries now?
What are the technical challenges of using GPU to accelerate homomorphic encryption?
Compared to other mainstream FHE libraries, what are the advantages of your library?
Looking forward to your reply, thank you!

@warriorpaw Can you help me take a look at this issue?
Thanks！

@usafchn Could you have a look?

What are the technical challenges of using GPU to accelerate homomorphic encryption?

Check this

I believe FHE is still in a niche area and hasn't been widely adopted in the industry. In other words, the technological development of FHE is not yet sufficient to support large-scale applications, resulting in a small number of FHE developers. Consequently, FHE libraries are still in their infancy, and the use of GPUs has not yet become prevalent.

As FHE continues to develop, I think that support for heterogeneous hardware acceleration is inevitable. GPUs are particularly good at floating-point calculations, while FHE requires integer calculation capabilities. From this perspective, GPUs may not be the most suitable, and other acceleration hardware might emerge in the future.

The goal of the HEU library in SecretFlow is to provide an easy-to-use, high-performance HE library. We want to lower the threshold for using HE and offer SOTA performance, allowing users to seamlessly switch between various algorithms.

OK, thank you very much for your generous reply!


Metadata of raw fd

Afaik the shortest way to get the metadata of a raw fd is
    let f = unsafe { File::from_raw_fd(fd) };
    let metadata = f.metadata();
    mem::forget(f);

There should be some way to do this without temporarily creating a File. E.g. std::os::unix::io::metadata_of_raw_fd.

I'm back and forth around this.
I'm against creating more and more unix-specific API of this kind that can easily be built outside of libstd.
A reason for it is that:
let f = unsafe { File::from_raw_fd(fd) };

Might not be a valid operation, as it assumes fd to be owned - something which may or may not be true, making a naïve implementation of this error prone.
Still, given that this function only makes sense on certain kinds of file descriptors, would it make sense to introduce a RawFile, which doesn't assume ownership, but exposes file-like operations, (debug)_asserting that fd is NotNull? I think this will yield better API than operating on RawFd, which can be anything.

Might not be a valid operation, as it assumes fd to be owned - something which may or may not be true, making a naïve implementation of this error prone.

Metadata cannot be constructed outside std. Therefore the only ways to construct it from a file descriptor is via File.

Still, given that this function only makes sense on certain kinds of file descriptors,

fstat can be executed for all file descriptors.

Might not be a valid operation, as it assumes fd to be owned - something which may or may not be true, making a naïve implementation of this error prone.

Metadata cannot be constructed outside std. Therefore the only ways to construct it from a file descriptor is via File.

That is correct, but a reimplementation is easily possible. My point was about the ownership problem of File much more, we might encourage breach of contract.

Still, given that this function only makes sense on certain kinds of file descriptors,

fstat can be executed for all file descriptors.

Yes, it can, but that isn't exposed through the stdlib API, not even through the raw one. Metadata is part of the fs module only.
It isn't stdlibs goal to implement everything that is possible with unix API, but a minimal useful set.

That is correct, but a reimplementation is easily possible.

Of course crates that create a different metadata type are readily available: https://docs.rs/uapi/0.1.3/uapi/fn.fstat.html. That's not the point of this issue.

That is correct, but a reimplementation is easily possible.

Of course crates that create a different metadata type are readily available: https://docs.rs/uapi/0.1.3/uapi/fn.fstat.html. That's not the point of this issue.

Yes. I know this is not the point of the issue and you did remove the second sentence when quoting that strongly supports your case.
My points was exactly that your example points to a problem, but that I think the argument you lay out for it does not point to a strong reason.

ManuallyDrop::new(unsafe { File::from_raw_fd(fd) }).metadata() is more concise and already used in various places.

That is nicer.

and already used in various places.

If that is so then it's high time that a safe alternative is added to std.

I'm not sure if it can be made safe since RawFd has no ownership or lifetime. So something doing a close/open in the meantime may reallocate the FD to a different file which might lead to races where you think you're fetching the metadata of something but actually start operating on something else. If own a file there's no TOCTOU, but if you only have a fd then there is.

There is nothing unsafe about calling fstat on any integer at any time.

The fstat itself not, but imagine some rube goldberg machine involving memory backed by memory-mapped files where mutable access is guarded by a metadata check on the inode number. This only works if there are no races, which the programmer has to assert.
At least I assume that something like that is the reason that FromRawFd is unsafe in general. It's not like any of the syscalls are unsafe individually.

https://github.com/rust-lang/rust/issues/72175#issuecomment-663681255

Yeah, pretty much. I think that needs to be settled until this can be made safe.

No it does not. The stdlib does not have to call from_raw_fd to create a File from an fd. Therefore any questions about from_raw_fd do not apply.

Could you elaborate on why you're looking to create a std::fs::Metadata in particular, rather than, say, a libc::stat? If you're already dealing in raw file descriptors, it's easy to call stat directly.

I have no particular need for std::fs::Metadata. The issue is that the one-liner posted above is

a hack and a misuse of File but
still better than

directly using libc which would require actually unsafe code

adding a platform-dependent dependency to an otherwise high-level and platform-independent application.

If Metadata didn't have Unix and even Linux-specific extensions, then I would agree that this kind of thing should be delegated to external crates. But it does have such traits and they are not deprecated even though more powerful external crates have been available for a long time.


Add amop demo timeout config args.

Codecov Report

Merging #120 into dev will increase coverage by 0.15%.
The diff coverage is 6.66%.

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


[Bug]: OS freezes when using the default index

Bug Description
I tested the code provided below, and it consistently keeps running without encountering a condition to exit (until my OS froze).

from llama_index import SimpleDirectoryReader
from llama_index.node_parser import SimpleNodeParser
from llama_index import VectorStoreIndex

documents = SimpleDirectoryReader('./data').load_data()
parser = SimpleNodeParser.from_defaults()
nodes = parser.get_nodes_from_documents(documents)
index = VectorStoreIndex(nodes)
query_engine = index.as_query_engine()
response = query_engine.query("a question")
print(response)

I'm utilizing the default embedding and QA models (model_name=BAAI/bge-small-en and llama2). The code appears to become stuck on the line response = query_engine.query("a question")
I've conducted tests both locally and on Colab, and the same issue persists in both environments.
Thank you!
Version
0.8.13
Steps to Reproduce
Install the requirements below:
llama-index==0.8.13
llama-cpp-python==0.1.78
nltk==3.8.1
sentence-transformers==2.2.2

Then run the code.
Relevant Logs/Tracbacks
No output; it consumes my RAM until the computer crashes.

@YasmineMh
Are you intending on using OpenAI as the LLM? Or are you letting it default to LlamaCPP?

You need at least 12GB of ram to run the default LlamaCPP model 🤔

Letting it default to LlamaCPP

I'm using 16GB of Ram already.
A question, To index the data we use BAAI/bge-small-en and for the QA we use llama2

Actually, yeah, I think it's a RAM problem.
(I'll try on a more powerful machine later. and if I encounter the same problem, I will reopen this issue)
Thanks @logan-markewich !

@YasmineMh Sounds good!
Yea, indexing will use bge-small, and QA uses llama2 👍🏻


Refactor configuration notification banner

Is your feature request related to a specific problem?
The configuration notification banner keeps a lot of its logic in the general Layout component which isn't great since the Layout component is used everywhere.
A lot of its logic can likely be handled in the banner itself. It's possible it can even entirely be moved out of Layout and only into the privacy request related views.
Describe the solution you'd like
Move ConfigurationNotificationBanner out of Layout
Describe alternatives you've considered, if any
A description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

Might be able to knock this one out during this refactor: https://github.com/ethyca/fides/issues/2733


declare lodash as a prod dep

The project used _.once but don't declare lodash as a prod dep.

Pull Request Test Coverage Report for Build 995463608

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

Totals

Change from base Build 994771868:
0.0%

Covered Lines:
44

Relevant Lines:
44

💛  - Coveralls

Whoopsie, thanks! Will make a new release later when I’m in front of a computer 🤗


Ping rabbitmq / timeout

Is your feature request related to a problem? Please describe.
Hi Guys, not sure if here is the right channel to ask, but is it possible to have a ping method for rabbitmq stream plugin or the timeout variable could be expose?
I m start and stop the container for rabbitmq, and if the container is down, I try to connect, at first, I received an error related with a timeout, and the second time is more fast.
The first error I got is this:
2024/06/07 14:12:30 [error] - timeout 10000 ns - waiting Code, operation: commandPeerProperties
2024/06/07 14:12:30 [error] - Can't set the peer-properties. Check if the stream server is running/reachable
The seconde error is this:
dial tcp <IP_ADDRESS>:5552: connectex: No connection could be made because the target machine actively refused it.
Describe the solution you'd like
My question is, could this timeout be expose, and we define the timeout on EnvironmentOptions, I don't want to wait 10s just to find out that the server is down?
Describe alternatives you've considered
No response
Additional context
No response

Yes. It makes sense, but it will be for all the RPC calls.
Will add something like:
  .rpcTimeout(......)

Thanks 😉

@plaluisalves can you please try https://github.com/rabbitmq/rabbitmq-stream-go-client/pull/313?

It is working! Thanks for the quick response and solution 😉

FYI: https://github.com/rabbitmq/rabbitmq-stream-go-client/releases/tag/v1.4.5


Suggest a way so users can wipe out all the backups from iCloud and Google Drive.

This doesn't need to be a functionality in the app.

Go to Settings > You Name  (Apple ID, iCloud, Media & Purchases) > iCloud > Manage Storage > Hexa > Delete Data.

Need to test this @cakesoft-swati

Tested this on build 288.
Once App data is deleted all the backups are deleted. But if you try to restore when App data is deleted then the app is non-responsive.

-Tested this issue on dev app v 1.8.0(304)
-I can wipe out all the backups from icloud.


Encoding issue

Pystache doesn't work with strings encoded in non ascii encoding.
There is template_encoding variable that permits write templates in any encoding but there isn't such variable for strings generated by application.
In template.py file, in render_tag and  render_unescaped functions there is unicode() function called without second parameter - the default encoding (ascii) is assumed even if string passed to it is UTF-8 encoded.

FYI, this has been implemented in the development branch for the Template class -- but not yet for Views.

This is now also supported for views in the development branch via the new renderer.render(view) syntax.  Pass the encoding behavior to the renderer via the default_encoding and decode_errors keyword arguments when constructing (or set the attributes after constructing).


Add Tool <> Article association

Currently

Oftentimes, an Article is about a zine/poster/sticker/book/video.
Sometimes there is even a zine version of an Article. Same content, just laid out for printing and as a PDF.

Right now, publishing folks upload the Article zines to S3, then link to them in Markdown in the Article's content, as just part of the Article.
Futurely
Instead of doing that, it'd be nice if they could punish the zine/poster/etc as a normal tool (Book/Zine, Poster/Sticker, Logo, Video), and then choose that thing in the Article new/edit admin form.
How To
My first thought about how to go about this this is to add tool_id and tool_type to the Article model. Then add the form widgets to let the author choose the tool type and the tool itself (by .name). Then the Articles#show can detect those fields, do some introspection about what formats that Tool exists in and provide the proper links.

Link to the Tool page
Link to download each of the downloadable formats of the Tool (if it's downloadable)
Link to the store to buy the thing (if it's buyable in the store)

Related: #620


Toolbar does not work in vue integration

Codepen
https://codesandbox.io/s/vue-basic-example-6fe1v
Explanation
I tried to enable the toolbar, however it does not seem to work in the vue integration. See codepen.

It's just that toolbars are for datetime charts and not for categories.
See examples in the docs for series in the link below, made in plain JS that also have tools only for datetime examples.
https://apexcharts.com/docs/series/

Is there any way I could have these tools for categories charts? :)

As zooming/panning are not possible with category charts, it doesn't make sense to include them in the toolbar.
Category charts' toolbar only has the download option.

I see. It would just be nice to be able to be a bit more selective on the categories. Let's say I have 10000 of them and then want to narrow it down to 100 in a particular range?

If what you're trying to do is with dates like your example, just use a datetime charts.
If you're trying to get a categories filtered chart, then the zooming tool wouldn't be as useful as you think.


Create code to extract data from FOLIO test instance

From json, note which data we need.
Most of the commands to get that data are in the readme, but make sure some aren’t missing.
Create script/rake task to extract the data so easier to do in the moment when migrating.
Add to Data Migration document

We have the code in place to do this and the step is noted on the migration checklist. If there is any missing json data, or new things come up, we can create new tickets and methods to add that json to the existing task group.


add support for other text fields

added in the new package
https://github.com/ariaieboy/filament-jalali/releases/tag/1.0.0


Canvas does not properly resize if the browser is resized.   (VSM-119)

FYI: This should also remove the need for the black-bar around the canvas.  (The black border is showing the canvas size after a resize of the window.)

Think I found the solution. @SjoenH remember to test this tomorrow
  // add a pixi-viewport to the canvas
        const viewport = new Viewport({
            screenWidth: window.innerWidth,
            screenHeight: window.innerHeight,
            interaction: app.renderer.plugins.interaction // the interaction module is important for wheel to work properly when renderer.view is placed or scaled
        });
        ///Resize handler
        // Listen for window resize events
        window.addEventListener('resize', () => {

            // Resize the pixi app's renderer
            app.renderer.resize(
                window.innerWidth,
                window.innerHeight
            );

            // Resize the pixi viewport
            viewport.resize(
                window.innerWidth,
                window.innerHeight,
                viewport.worldWidth,
                viewport.worldHeight,
            );

        });


vite server always return 'Not Found'

when I run vite, the server returns a page with 'Not Found'
<EMAIL_ADDRESS>won't recognize middleware after calling app.callback()
Reproduction
https://github.com/vitejs/vite/blob/master/src/node/server/index.ts#L63
the problem is: app.callback() called before all of app.use()
System Info

required vite version: 1.0.0-rc.4
required Operating System: macos 10.13.6
required Node version: 12.18.1

After checkout the source code. I found this problem is caused by<EMAIL_ADDRESS>works in<EMAIL_ADDRESS>

according to npm koa-compose latest is 4.1.0
it seems koa-compose 4.2.0 has been removed: https://github.com/koajs/compose/issues/106

wow, dom you legend, will check now

@LeoJiaXin i reinstall<EMAIL_ADDRESS>and resolved it

i think this issue can be closed. the offending version of koa-compose is not available anymore and the fix is a simple reinstall.

Thanks!

after i install<EMAIL_ADDRESS>it doesn't work yet
"dependencies": {
    "vue": "^3.0.0-rc.1"
  },
  "devDependencies": {
    "@vue/compiler-sfc": "^3.0.0-rc.1",
    "koa-compose": "4.1.0",
    "vite": "^1.0.0-rc.1"
  }

required Operating System: macOS Catalina 10.15.6
required Node version: 12.18.4
required Npm version: 6.14.6

@wulisensen
cd node_modules/vite

make sure that the package vite in node_modules depends on<EMAIL_ADDRESS>if you use yarn，add following config to your package.json
"resolutions": {
  "koa-compose": "4.1.0"
}


Version 2.3.1 request

I am interested in the automatic parameter selection feature quoted in this manual (section 8.7).
I couldn't find it in the latest versions, is it possible to have the source code of a version (2.3.1 or any other) having its implementation?

SEAL 2.3.1 is no longer available. It wasn't open-source licensed even if you somehow manage to find. More importantly, there have been new research results on noise estimation and noise management, making the old "Estimator" out-of-date. So it's better if you choose the parameters yourself. It's not that hard. I've explained the best practice on choosing parameters here.


Default value of lvm_lvopts fails to create logical volume

The default value of lvm_lvopts which is null - see https://github.com/openmicroscopy/infrastructure/pull/11 gives runtime errors of type
fatal: [web-qa-staging.openmicroscopy.org]: FAILED! => {"changed": false, "err": "  Volume group \"None\" not found\n", "failed": true, "invocation": {"module_args": {"lv": "jenkins-workdir", "opts": null, "size": "500m", "vg": "VolGroup00"}, "module_name": "lvol"}, "msg": "Creating logical volume 'jenkins-workdir' failed", "rc": 5}

Removing opts from the lvm-partition role allows to complete the task.

#28 which also uses lvm-partition works for me after rebasing onto the current head d8a5120

@sbesson Is this fixed now?

My comment from Friday has been lost it seems. I have not retried since. Given https://github.com/openmicroscopy/infrastructure/issues/25#issuecomment-155055034, I will close this issue and we can reopen if appropriate.


The seed app doesn't work in production for lazy loading of module / routes

The seed app doesn't work in production for lazy loading of module / routes
I get this error in production
Error: app.js?1481319435885:43 EXCEPTION: Uncaught (in promise): TypeError: System.import is not a function
This is the website visual console error: https://poolcover-dev.firebaseapp.com/terms
I followed the instructions of this plunker: https://plnkr.co/edit/SGsAFpGhFX3vg3PysjnX?p=preview
It works fine locally with npm run start. But when I push live or do npm run serve.prod it give the above error.
Are there any settings I need to do for this to work in prod?

@mgechev do I need to do something to the system.config for lazy loading of certain modules to work in serve.prod?

Well, we don't officially support lazy loading although it does work in the lazy branch.


KeyValue component doesn't update when its parent component changes its value prop

Found as part of rancher/dashboard#8966
The KeyValue component does not re-calculate its display 'rows' when asMap is true (KeyValue's value is an object). If the value changes in the parent component, the KeyValue component must be re-rendered to display that change.

The unit test coverage seems enough to validate this fix. This seems to need an EKS cluster to validate the add rows additions. Is this fix done in a common UI component that would be validated on other dashboard area?
I'm just thinking how feasible or the effort needed to add an e2e test with our current automation. Or if we should add a backlog item for this @yonasberhe23


[PROJECT PROPOSAL] Sentiment Analysis Using NLP

Project Request

Sentiment Analysis: I want to perform sentiment analysis using machine learning algorithms.

Field
Description

About
Using the Dataset available on Kaggle, I want to classify each text into positive, negative, and neutral!

Github
Juhibhojani

Email
<EMAIL_ADDRESS>

Label
Project Request

Github Profile Link : https://github.com/Juhibhojani
Define You

[ ] GSSOC Participant
[🗸 ] Contributor

Sentiment Analysis

Description

Using Machine Learning Algorithms, I would like to predict the nature of text description. This project will use Word Embedding techniques and text cleaning processes in order to predict class labels using classification algorithms and hence serve as a base to start with NLP
Scope
Objective: Getting started with NLP, Learning Word Embedding techniques, and applying appropriate classification algorithms.
Deliverables: A jupyter notebook file along with the necessary explanation and dataset
Timeline
Over a period of 7-10 Days, a good accuracy result can be delivered.
Video Links or Support Links
I will be using the following resources for this project:

Kaggle
Medium | towards data science and others

Kindly fix the template @Juhibhojani  , [ * ] creates a tick follow it