How to clear cache?

How to clear cache?
Please give some example.
thank

If you are using MemoryCache as the store you can use Purge like in this test:
https://github.com/moozzyk/EFCache/blob/a35a618eaf6bd2cf8580ed8617860d246ceb6399/EFCacheTests/InMemoryCacheTests.cs#L100-L116


Dashboard won't load (timeout) on older device (iPad mini 2)

Describe the bug
Since version mushroom strategy 1.0.0, I'm unable to use the mushroom strategy dashboard on my iPad mini 2. It used to work on mushroom strategy version 0.15. This happens in both the Home Assistant iOS app, and in the browser.
Versions

Mushroom-Strategy: 1.0.0+
HACS: 1.33.0
Mushroom: 3.2.2
Home Assistant: 2023.11.2

Screenshots

Error loading the dashboard strategy:
Error: Timeout waiting for strategy element ll-strategy-dashboard-mushroom-strategy to be registered

Please report the output of your browsers' debug console.
(https://help.remo.co/en/support/solutions/articles/63000251570-how-to-activate-the-iphone-debug-console-or-web-inspector-)
Also, whats your IOS version.
Currently we only support IOS 15.4 and above.

[Error] SyntaxError: Invalid character: '#'
[Info] 🍄 Mushroom 🍄 - 3.2.2 (mushroom.js, line 3557)
[Info]  MINI-GRAPH-CARD  0.11.0  (mini-graph-card-bundle.js, line 1)
[Info]    XIAOMI-VACUUM-MAP-CARD    (xiaomi-vacuum-map-card.js, line 1080)
   Version v2.2.2
[Error] Unhandled Promise Rejection: https://homeassistant.60bunburyst.duckdns.org/hacsfiles/mushroom-strategy/mushroom-strategy.js?hacstag=619284862101
	(anonymous function)
	rejectPromise
[Error] Error: Timeout waiting for strategy element ll-strategy-dashboard-mushroom-strategy to be registered — wrap-error-constructor-with-cause.js:36
	(anonymous function) (20251-p0IazryQO-o.js:1:49432)
	f (app-WhhiEP-dtFE.js:2:141463)
	(anonymous function) (app-WhhiEP-dtFE.js:2:142812)
	r (app-WhhiEP-dtFE.js:2:128201)
	c (app-WhhiEP-dtFE.js:2:128441)
	promiseReactionJob

iOS version is 12.5.7

Thank you...
Theoretically I've identified your issue.
It is caused by missing features in iOS/iPadOS < 14.4.
Small changes upcoming releases gonna support 6 to 10yo devices with a global usage of < 1%.
Probably the latest commit we have available which will still work is de70fddddd3da8bf7b3d3b34930285f54e54da28, but will be missing many fixes and added features.
Your best bet is to see if there are any other browsers available in the App store and try them out.


POST / PUT should not return 201 ?

Hello,
According to REST usage PUT / POST should return a 201 as HTTP status.
It return 200.
Is it a wanted behavior ? or should I return a status code manually ?
Regards,
PS : I tested with a empty method

@waghanza thanks for the info.
Actually by default Kemal returns 200 and we don't have any special cases for PUT / POST.

@sdogruyol And should not it be 201 (according to REST standard) ?

Well Rails also returns 200 for POST responses

@sdogruyol yes, so as flask in python world, but you can apply cause it standard (to return a 201 in case of POST / PATCH), no ?
just open the debate ...

This is open to debate :+1:

WDYT?
@f @askn

Status Code 201 means that a resource was created and will return the identity in the body.  Status Code 202 means that the request to create the request was accepted but might create the identify at a later time.

perhaps, returning 204 for POST/PUT/PATCH for empty methods and recommend to return 201

200 is the most generic of 2XX codes which makes sense in Kemal's context. Kemal is not a REST server but a WebServer. If you want to create a REST standard web api, you can simply change the status code of response explicitly in the body of route.

200: Standard response for successful HTTP requests. The actual response will depend on the request method used. In a GET request, the response will contain an entity corresponding to the requested resource. In a POST request, the response will contain an entity describing or containing the result of the action

201: The request has been fulfilled, resulting in the creation of a new resource.

Making it 201 implicitly sounds strange to me and 201 has a specific meaning (created) which is a result of a process you decide. Kemal cannot know if the request is fulfilled, you can know if it is.


ES not recognizing couchbase lines in config.

I went through the install process but after adding the couchbase lines to my elasticsearch.yml file I cannot get ES to start. The error indicates it does not recognize the configuration lines. The contents of my config file are attached as well as my cluster details. Thank you for any help and let me know if you need any more information.
<ERROR__>
elasticsearch.txt
cluster info.txt
[madmin@mbatless02 elasticsearch]$ bin/elasticsearch -d -p pid
[madmin@mbatless02 elasticsearch]$ Exception in thread "main" SettingsException[Failed to load settings from [elasticsearch.yml]]; nested: ElasticsearchParseException[malformed, expected end of settings but encountered additional content starting at line number: [95], column number: [1]]; nested: ParserException[expected '', but found BlockMappingStart
in 'reader', line 95, column 1:
couchbase.password: password1
^
];
Likely root cause: expected '', but found BlockMappingStart
in 'reader', line 95, column 1:
couchbase.password: password1
^
    at com.fasterxml.jackson.dataformat.yaml.snakeyaml.parser.ParserImpl$ParseDocumentStart.produce(ParserImpl.java:225)
    at com.fasterxml.jackson.dataformat.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158)
    at com.fasterxml.jackson.dataformat.yaml.snakeyaml.parser.ParserImpl.getEvent(ParserImpl.java:168)
    at com.fasterxml.jackson.dataformat.yaml.YAMLParser.nextToken(YAMLParser.java:342)
    at org.elasticsearch.common.xcontent.json.JsonXContentParser.nextToken(JsonXContentParser.java:53)
    at org.elasticsearch.common.settings.loader.XContentSettingsLoader.load(XContentSettingsLoader.java:72)
    at org.elasticsearch.common.settings.loader.XContentSettingsLoader.load(XContentSettingsLoader.java:45)
    at org.elasticsearch.common.settings.loader.YamlSettingsLoader.load(YamlSettingsLoader.java:46)
    at org.elasticsearch.common.settings.Settings$Builder.loadFromStream(Settings.java:1074)
    at org.elasticsearch.common.settings.Settings$Builder.loadFromPath(Settings.java:1061)
    at org.elasticsearch.node.internal.InternalSettingsPreparer.prepareEnvironment(InternalSettingsPreparer.java:88)
    at org.elasticsearch.common.cli.CliTool.<init>(CliTool.java:107)
    at org.elasticsearch.common.cli.CliTool.<init>(CliTool.java:100)
    at org.elasticsearch.bootstrap.BootstrapCLIParser.<init>(BootstrapCLIParser.java:48)
    at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:241)
    at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)

Refer to the log for complete error details.

First off, apologies for the belated response. Are you still having trouble, or did you figure it out?
One thing to be aware of is that the plugin must be installed before starting Elasticsearch with the additional config, otherwise ES will complain that the config is unrecognized.
Another thing to try would be to run the config file through a YAML validator to check for syntax errors.

I figured this out but unfortunately I don't remember what the resolution was.
Thanks for getting back to me.


stabilize test_node_merge_crash_when_snapshot

Signed-off-by: qupeng<EMAIL_ADDRESS>What problem does this PR solve?
Stabilize test_node_merge_crash_when_snapshot.
What is changed and how it works?
Replace transfer_leader with must_transfer_leader.
Related changes

PR to update pingcap/docs/pingcap/docs-cn:
PR to update pingcap/tidb-ansible:
Need to cherry-pick to the release branch

Check List
Tests

Unit test

Release note

No release note.

/label cherry-pick-approved

/label cherry-pick-approved

/merge

/merge


feat: add samosa to world-traditional-food.md

Description

This PR adds a food to world-traditional-food.md
What type of PR is this? (check all applicable)

[ ] ☝ Add a pizza fact or trivia
[ ] 🧑🍳 Add a pizza recipe
[ ] 🗺 Add a regional pizza
[x] 🍴 Add a traditional food
[ ] 📝 Documentation Update

Related Tickets & Documents

Relates to #86
Added to documentation?

[ ] 📜 README.md
[x] 🙅 no documentation needed

[optional] What GIF best describes this PR or how it makes you feel?

Hi @chydeepak7,
I'm curious about this (and I believe many others, too!)
Can you add a little bit information about:

What's the filling of Samosa?
What's the sauce(s) that are good to dip Samosa into?

These would be a great information for folks who wants to know what this food is all about and perhaps even want to try it! ✨

Yes, I added


Websocket connection doesn't receive Things info

I am trying to use Mainflux to send data (non- SenML) from my devices to another application.
Publishing data from devices via http and listening to messages via websocket.
I don't see any thing related information (id, name) when I receive the payload on websocket.
I don't want to put device name on the payload as it won't scale well when I use multiple devices. (I don't want to change firmware code)
It's a must-have feature as I won't be able to classify payloads without device info attached to it. I am running the latest release 0.10.0 right now.
Note: Can't use writer/reader service as my data is not in SenML format

@smrgrg94 I understand your requirement, but unfortunately, it will make more cons than pros into the Mainflux core, which aims to be lean, simple and fast. Adding additional info in messaging except payload will increase message size and many things will be affected with this (latency, bandwidth, etc...).
Your requirements maybe can be accomplished without changing your fw code, using channels per device or subtopic per device? So device A can publish on channels/<channel_id>/messages/A and device B on channels/<channel_id>/messages/B  you can put whatever you want as a subtopic and you use as many levels as you want.
I don't get this
I don't want to put the device name on the payload as it won't scale well when I use multiple devices. (I don't want to change firmware code)

@nmarcetic
In the future, I want to use the same fw code for all my devices, so that I can use the same binary to flash all my devices. I am planning to use a bootstarpping service so that I don't have to update the Things token while creating my binary as well.
Your requirements maybe can be accomplished without changing your fw code, using channels per device or subtopic per device? So device A can publish on `channels/<channel_id>/messages/A` and device B on `channels/<channel_id>/messages/B` you can put whatever you want as a subtopic and you use as many levels as you want.

I tried this work-around, I have to create a separate ws connection to listen to each device. A connection to channels/<channel_id>/messages/A to listen to device A, another connection to channels/<channel_id>/messages/B to listen to device B, etc..
Which is okay, But I will have to update the binary for each device with a separate url as well. It's an easy task but still cumbersome while working with say 100+ devices. :P

@smrgrg94   I have to create a separate ws connection to listen to each device You can just subscribe to # and get all messages from one connection so connection channels/<channel_id>/messages/# will get messages published from both A and B its a joker topic.
But I will have to update the binary for each device with a separate url as well
Not really, you can put this in bootstrap config ;) We do this also, we provision 2 channels for each device data and control and save this in bootstrap configuration when device pull its config from bootstrap it reads values for data and control channels and starts publishing/listening so it's generic not hardcoded in binary (plus can be changed by uploading new config in bootstrap and configure your device to pull config on power-up).

@smrgrg94   I have to create a separate ws connection to listen to each device You can just subscribe to # and get all messages from one connection so connection channels/<channel_id>/messages/# will get messages published from both A and B its a joker topic.
But I will have to update the binary for each device with a separate url as well
Not really, you can put this in bootstrap config ;) We do this also, we provision 2 channels for each device data and control and save this in bootstrap configuration when device pull its config from bootstrap it reads values for data and control channels and starts publishing/listening so it's generic not hardcoded in binary (plus can be changed by uploading new config in bootstrap and configure your device to pull config on power-up).

@nmarcetic Thanks for the info on bootstapping. I will try that.
I subscribed to the subtopics with * wildcard as I am not using mqtt over my ws connection.
But in this case too, the messages I get over the connection again don't have information of the subtopic it originated from. I am planning to send device name/id in the message payload as well and configure the device name variable as well via bootstrapping.

@smrgrg94 I think this is the best for your use case.
. I am planning to send device name/id in the message payload and configure the device name variable as well via bootstrapping.

Np, feel free to ping for help. You can also use Gitter for community support.

@smrgrg94 @nmarcetic can this one be closed or there is some other work left here?


cannot run Protractor on a docker image

Bug report
I'm trying to run e2e tests on CircleCI 2.0 infrastructure using a simple custom docker image, but it seems like if I use the directConnect flag, it does't work.
I'm using Alpine with Chromium 61 in the docker images. I'm not sure if this fails because I'm using Chromium and not Chrome.

Node Version: 8.9
Protractor Version: 5.2.0
Angular Version: 5.0.3
Browser(s): Chromium
Operating System and Version Ubuntu 14
Your protractor configuration file

// Protractor configuration file, see link for more information
// https://github.com/angular/protractor/blob/master/lib/config.ts
const {SpecReporter} = require('jasmine-spec-reporter');

exports.config = {
    allScriptsTimeout: 11000,
    specs: [
        './e2e/**/*.e2e-spec.ts'
    ],
    capabilities: {
        browserName: 'chrome',
        // Run tests in a headless Chrome
        // https://github.com/angular/protractor/blob/master/docs/browser-setup.md#using-headless-chrome
        chromeOptions: {
            args: [
                // IMPORTANT: Required flag for running Chrome in unprivileged Docker,
                // see https://github.com/karma-runner/karma-chrome-launcher/issues/125#issuecomment-312668593
                '--no-sandbox',
                '--headless',
                '--disable-gpu'
            ]
        }
    },
    // TODO: Try to figure out why using directConnect doesn't work
    directConnect: true,
    baseUrl: 'http://localhost:4224/',
    framework: 'jasmine',
    jasmineNodeOpts: {
        showColors: true,
        defaultTimeoutInterval: 30000,
        print: () => {}
    },
    onPrepare() {
        // Add jasmine spec reporter
        jasmine.getEnv()
            .addReporter(new SpecReporter({spec: {displayStacktrace: true}}));
        // Compile TS files
        require('ts-node').register({
            project: 'e2e/tsconfig.e2e.json'
        });
    }
};

A relevant example test

import {AppPage} from './portal.po';

describe('App', () => {
    let page: AppPage;

    beforeEach(() => {
        page = new AppPage();
    });

    it('should display welcome message', () => {
        page.navigateTo();
    });
});

Output from running the test

(node:60) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.

webpack: Compiled successfully.
[12:19:40] I/file_manager - creating folder /root/gva-travel/node_modules/webdriver-manager/selenium
[12:19:40] I/update - chromedriver: unzipping chromedriver_2.33.zip
[12:19:41] I/update - chromedriver: setting permissions to 0755 for /root/gva-travel/node_modules/webdriver-manager/selenium/chromedriver_2.33
[12:19:41] I/launcher - Running 1 instances of WebDriver
[12:19:41] I/direct - Using ChromeDriver directly...
[12:19:41] E/launcher - spawn /root/gva-travel/node_modules/webdriver-manager/selenium/chromedriver_2.33 ENOENT
[12:19:41] E/launcher - Error: spawn /root/gva-travel/node_modules/webdriver-manager/selenium/chromedriver_2.33 ENOENT
    at _errnoException (util.js:1024:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
    at onErrorNT (internal/child_process.js:372:16)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)
[12:19:41] E/launcher - Process exited with error code 199
npm ERR! code ELIFECYCLE
npm ERR! errno 199
npm ERR<EMAIL_ADDRESS>e2e:ci: `ng e2e --prod --no-progress --no-live-reload --no-watch --port 4224`
npm ERR! Exit status 199
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>e2e:ci script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2017-11-25T12_19_41_356Z-debug.log
Exited with code 199

Steps to reproduce the bug
The URL you are running your tests against (if relevant)

And if I try without it I get:
(node:73) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.

webpack: Compiled successfully.
[13:44:06] I/update - chromedriver: file exists /root/gva-travel/node_modules/webdriver-manager/selenium/chromedriver_2.33.zip
[13:44:06] I/update - chromedriver: unzipping chromedriver_2.33.zip
[13:44:06] I/update - chromedriver: setting permissions to 0755 for /root/gva-travel/node_modules/webdriver-manager/selenium/chromedriver_2.33
[13:44:06] I/update - chromedriver: chromedriver_2.33 up to date
[13:44:06] I/launcher - Running 1 instances of WebDriver
[13:44:06] I/local - Starting selenium standalone server...
[13:44:07] I/local - Selenium standalone server started at http://<IP_ADDRESS>:37615/wd/hub
[13:44:27] E/launcher - Timed out waiting for driver server to start.
Build info: version: '3.7.1', revision: '8a0099a', time: '2017-11-06T21:07:36.161Z'
System info: host: '338ac0b1aeda', ip: '<IP_ADDRESS>', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-97-generic', java.version: '1.8.0_151'
Driver info: driver.version: unknown
[13:44:27] E/launcher - WebDriverError: Timed out waiting for driver server to start.
Build info: version: '3.7.1', revision: '8a0099a', time: '2017-11-06T21:07:36.161Z'
System info: host: '338ac0b1aeda', ip: '<IP_ADDRESS>', os.name: 'Linux', os.arch: 'amd64', os.version: '4.4.0-97-generic', java.version: '1.8.0_151'
Driver info: driver.version: unknown
    at Object.checkLegacyResponse (/root/gva-travel/node_modules/selenium-webdriver/lib/error.js:546:15)
    at parseHttpResponse (/root/gva-travel/node_modules/selenium-webdriver/lib/http.js:509:13)
    at doSend.then.response (/root/gva-travel/node_modules/selenium-webdriver/lib/http.js:441:30)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
From: Task: WebDriver.createSession()
    at Function.createSession (/root/gva-travel/node_modules/selenium-webdriver/lib/webdriver.js:769:24)
    at Function.createSession (/root/gva-travel/node_modules/selenium-webdriver/chrome.js:761:15)
    at createDriver (/root/gva-travel/node_modules/selenium-webdriver/index.js:170:33)
    at Builder.build (/root/gva-travel/node_modules/selenium-webdriver/index.js:626:16)
    at Local.getNewDriver (/root/gva-travel/node_modules/protractor/built/driverProviders/driverProvider.js:53:33)
    at Runner.createBrowser (/root/gva-travel/node_modules/protractor/built/runner.js:195:43)
    at q.then.then (/root/gva-travel/node_modules/protractor/built/runner.js:339:29)
    at _fulfilled (/root/gva-travel/node_modules/protractor/node_modules/q/q.js:834:54)
    at self.promiseDispatch.done (/root/gva-travel/node_modules/protractor/node_modules/q/q.js:863:30)
    at Promise.promise.promiseDispatch (/root/gva-travel/node_modules/protractor/node_modules/q/q.js:796:13)
    at /root/gva-travel/node_modules/protractor/node_modules/q/q.js:604:44
    at runSingle (/root/gva-travel/node_modules/protractor/node_modules/q/q.js:137:13)
    at flush (/root/gva-travel/node_modules/protractor/node_modules/q/q.js:125:13)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)
[13:44:27] E/launcher - Process exited with error code 199
npm ERR! code ELIFECYCLE
npm ERR! errno 199
npm ERR<EMAIL_ADDRESS>e2e:ci: `ng e2e --prod --no-progress --no-live-reload --no-watch --port 4224`
npm ERR! Exit status 199
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>e2e:ci script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2017-11-25T13_44_28_022Z-debug.log
Exited with code 199

And a final note, if I set the path to the chromedriver that's installed on the system via chromeDriver: '/usr/bin/chromedriver', then the tests run just fine.

@rolandjitsu I would suggest to not put tests and chrome in same container - for scalability and stability reasons. This allows to use ready-to-use official selenium images for browsers, and in future you might use selenium grid easily. Or even some other selenium grid replacement like Selenoid: https://medium.com/@aandryashin/selenium-done-in-60-seconds-176796f8bdc7
You can take my gist as example: https://gist.github.com/Xotabu4/a243d9ff25cfe276bcaa0175fb6a4b00

@Xotabu4 I was not aware you could do that on CircleCI. Thanks.

Experiencing more or less the same issue now.  Have a container setup with Xvfb and Firefox, attempting to run some Protractor tests against a webapp in a separate container, using an environment variable to provide the address.
The tests run fine locally, but once I docker build and docker run the image, the tests fail with the following:
[14:00:48] D/launcher - Running with --troubleshoot
[14:00:48] D/launcher - Protractor version: 5.3.0
[14:00:48] D/launcher - Your base url for tests is https://<IP_ADDRESS>:8443
(node:25) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
[14:00:48] I/launcher - Running 1 instances of WebDriver
[14:00:48] I/direct - Using FirefoxDriver directly...
[14:01:49] E/launcher - address not available
[14:01:49] E/launcher - WebDriverError: address not available
    at Object.throwDecodedError (/opt/smoke-test/node_modules/selenium-webdriver/lib/error.js:514:15)
    at parseHttpResponse (/opt/smoke-test/node_modules/selenium-webdriver/lib/http.js:519:13)
    at doSend.then.response (/opt/smoke-test/node_modules/selenium-webdriver/lib/http.js:441:30)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:160:7)
From: Task: WebDriver.createSession()
    at Function.createSession (/opt/smoke-test/node_modules/selenium-webdriver/lib/webdriver.js:769:24)
    at Function.createSession (/opt/smoke-test/node_modules/selenium-webdriver/firefox/index.js:521:41)
    at Direct.getNewDriver (/opt/smoke-test/node_modules/protractor/built/driverProviders/direct.js:105:33)
    at Runner.createBrowser (/opt/smoke-test/node_modules/protractor/built/runner.js:195:43)
    at q.then.then (/opt/smoke-test/node_modules/protractor/built/runner.js:339:29)
    at _fulfilled (/opt/smoke-test/node_modules/q/q.js:834:54)
    at self.promiseDispatch.done (/opt/smoke-test/node_modules/q/q.js:863:30)
    at Promise.promise.promiseDispatch (/opt/smoke-test/node_modules/q/q.js:796:13)
    at /opt/smoke-test/node_modules/q/q.js:556:49
    at runSingle (/opt/smoke-test/node_modules/q/q.js:137:13)
[14:01:49] E/launcher - Process exited with error code 199

The 199 code is the "kitchen sink" error code & doesn't give a lot to go on.  The most notable line is
E/launcher - address not available, which seems important, but I'm not quite sure what to track down to resolve.  Its not clear who or what is asking for the address or what kind of address is desired.

Hello im trying to run the test on docker and i get the following error, i am using gulp angular protractor, is this a known issue?

gulp protractor:local

[12:50:23] Using gulpfile ~/gulpfile.js
[12:50:23] Starting 'webdriver-update'...
[12:50:23] I/file_manager - creating folder /root/node_modules/protractor/node_modules/webdriver-manager/selenium
[12:50:26] I/update - chromedriver: unzipping chromedriver_2.36.zip
[12:50:27] I/update - chromedriver: setting permissions to 0755 for /root/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.36
[12:50:45] I/update - geckodriver: unzipping geckodriver-v0.19.1.tar.gz
[12:50:45] I/update - geckodriver: setting permissions to 0755 for /root/node_modules/protractor/node_modules/webdriver-manager/selenium/geckodriver-v0.19.1
[12:50:45] Finished 'webdriver-update' after 22 s
[12:50:45] Starting 'protractor:local'...
(node:39) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
[12:50:46] I/launcher - Running 1 instances of WebDriver
[12:50:46] I/local - Starting selenium standalone server...
[12:50:46] I/local - Selenium standalone server started at http://<IP_ADDRESS>:41366/wd/hub
[12:51:06] E/launcher - Timed out waiting for driver server to start.
Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:33:15.31Z'
System info: host: 'ultra', ip: '<IP_ADDRESS>', os.name: 'Linux', os.arch: 'amd64', os.version: '4.13.0-36-generic', java.version: '1.8.0_121'
Driver info: driver.version: unknown
[12:51:06] E/launcher - WebDriverError: Timed out waiting for driver server to start.
Build info: version: '3.11.0', revision: 'e59cfb3', time: '2018-03-11T20:33:15.31Z'
System info: host: 'ultra', ip: '<IP_ADDRESS>', os.name: 'Linux', os.arch: 'amd64', os.version: '4.13.0-36-generic', java.version: '1.8.0_121'
Driver info: driver.version: unknown
    at Object.checkLegacyResponse (/root/node_modules/selenium-webdriver/lib/error.js:546:15)
    at parseHttpResponse (/root/node_modules/selenium-webdriver/lib/http.js:509:13)
    at doSend.then.response (/root/node_modules/selenium-webdriver/lib/http.js:441:30)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
From: Task: WebDriver.createSession()
    at Function.createSession (/root/node_modules/selenium-webdriver/lib/webdriver.js:769:24)
    at Function.createSession (/root/node_modules/selenium-webdriver/chrome.js:761:15)
    at createDriver (/root/node_modules/selenium-webdriver/index.js:170:33)
    at Builder.build (/root/node_modules/selenium-webdriver/index.js:626:16)
    at Local.getNewDriver (/root/node_modules/protractor/built/driverProviders/driverProvider.js:53:33)
    at Runner.createBrowser (/root/node_modules/protractor/built/runner.js:195:43)
    at q.then.then (/root/node_modules/protractor/built/runner.js:339:29)
    at _fulfilled (/root/node_modules/q/q.js:834:54)
    at self.promiseDispatch.done (/root/node_modules/q/q.js:863:30)
    at Promise.promise.promiseDispatch (/root/node_modules/q/q.js:796:13)
    at /root/node_modules/q/q.js:604:44
    at runSingle (/root/node_modules/q/q.js:137:13)
    at flush (/root/node_modules/q/q.js:125:13)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)
[12:51:06] E/launcher - Process exited with error code 199

/root/gulp/e2e-tests.js:21
                throw err;
                ^
Error: protractor exited with code 199
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR<EMAIL_ADDRESS>e2e:local: `gulp protractor:local`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>e2e:local script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-03-12T12_51_06_758Z-debug.log

You probably want to do webdriver-update in your Dockerfile so that the drivers are built into the image & that component doesn't need to be done every time you run the image.  I don't think that will solve all your problems, but it may help some.

@benjaminapetersen  Thank you for the suggestion  will try it tomorrow!

Running docker run -d --rm --net=host --name chrome selenium/standalone-chrome-debug:3 this and  specifying seleniumaddress in my configfile solved the issue. Thank you!

@vjbhaskar in the seleniumaddress what did u mention? http://

 exports.config = {     seleniumAddress: 'http://localhost:4444/wd/hub'   }

docker run -d --rm --net=host --name chrome selenium/standalone-chrome-debug:3
the selenium executable is a standalone one- are we to give the hub url?


[TEST] Jax Training Base

What do you want to test?
Jax training base components
Outline of test structure

Unit tests
Test components and hooks

Definition of done
Passing checks, cover all hooks, edge cases considered
Mandatory checklist before making a PR

[ ] The success criteria laid down in “Definition of done” are met.
[ ] Test code is documented - docstrings for methods and classes, static types for arguments.
[ ] Documentation is updated - README, CONTRIBUTING, or other documentation.

Nothing to test


[Sema] Don't ignore implicit AST nodes in diagnoseUnhandledThrowSite

Resolves https://github.com/apple/swift/issues/61368
This partially reverts https://github.com/apple/swift/commit/d461eab3f0bb0262fd72ef8c624861d317777986 as it caused a regression where the 5.7 compiler hangs (but crashes on main), because diagnoseUnhandledThrowSite was ignoring implicit nodes, which was causing a throwing property wrapper init call to not get diagnosed since it's created implicitly.
We used to diagnose it on 5.6, but stopped doing it from 5.7 onwards.

@swift-ci please test

Hmm, Concurrency/async_sequence_syntax.swift is failing.
<unknown>:0: error: unexpected error produced: call can throw, but the error is not handled
<unknown>:0: error: unexpected note produced: call is to 'rethrows' function, but a conformance has a throwing witness
<unknown>:0: error: diagnostic produced elsewhere: call can throw, but the error is not handled
<unknown>:0: note: diagnostic produced elsewhere: call is to 'rethrows' function, but a conformance has a throwing witness

for
@available(SwiftStdlib 5.1, *)
func missingThrows<T : AsyncSequence>(_ seq: T) async {
  for try await _ in seq { } // expected-error{{error is not handled because the enclosing function is not declared 'throws'}}
}

This might be the reason why I added that check, it might be possible to add source locations to synthesized code and get this diagnostics attached to the expression at least?

@xedin Done! I added the source location of for to the synthesized next() call (reason I went with for is because that's where the throws diagnostic is attached to... don't think it really matters as long as it's on the for loop).
The diagnostics aren't great because they actually refer to the synthesized calls, so we probably want them to be tailored. It could be a good starter bug!

@swift-ci please test


[MB-15220] Add a11y checks to all waitForPage nav functions on the customer side.

Jira ticket for this change
Summary
This PR injects the Playwright Axe tests on both sides of any function call in the WaitForPage class, behind the A11Y_AUDIT feature flag. Assuming this class is used broadly in e2e tests, this provides very broad coverage both before and after navigations on the customer side.
This also assumes that WaitForPages will not have functions that do not expect something of the page; however, even if they do, they will only provide no or redundant issues, and they will not error, since runAccessibilityAudit()'s only dependency is this.page, which will always be present.
This PR is also opinionated about the use of WaitForPage; it should be used as broadly as possible.
Setup to Run Your Code

💻 You will need to use three separate terminals to test this locally.
Terminal 1
Start the UI locally.
make client_run

Terminal 2
Start the Go server locally.
make server_run

Additional steps
A11Y_AUDIT=true yarn playwright test playwright/tests/my/mymove
Verification Steps for Author
These are to be checked by the author.

[ ] Tested in the Experimental environment (for changes to containers, app startup, or connection to data stores)
[ ] Request review from a member of a different team.
[ ] Have the Jira acceptance criteria been met for this change?

Verification Steps for Reviewers
These are to be checked by a reviewer.

Frontend

[ ] User facing changes have been reviewed by design.
[ ] There are no aXe warnings for UI.
[ ] This works in Supported Browsers and their phone views (Chrome, Firefox, IE, Edge).
[ ] There are no new console errors in the browser devtools
[ ] There are no new console errors in the test output
[ ] If this PR adds a new component to Storybook, it ensures the component is fully responsive, OR if it is intentionally not, a wrapping div using the officeApp class or custom min-width styling is used to hide any states the would not be visible to the user.

Backend

[ ] Code follows the guidelines for Logging
[ ] The requirements listed in Querying the Database Safely have been satisfied.

Database
Any new migrations/schema changes:

[ ] Follows our guidelines for Zero-Downtime Deploys
[ ] Have been communicated to #g-database
[ ] Secure migrations have been tested following the instructions in our docs

Screenshots

Messages

:book:
:link: MB-15220

  Generated by :no_entry_sign: dangerJS against 783ca5b8c535b4be92f4fb6708d233745f4bdba1


UI - Torque Battery Test Property

As a Drone Tester
I want to input battery details for my drone
So that the simulator can track my battery details

Requirements

input a current battery capacity as % (0-100)

Add the torque battery details in the JSON with these parameters -
torque_battery_monitor:{
enable:false,
param:[1]
}

Sub-issues:

[ ] https://github.com/oss-slu/DroneWorld/issues/100


iframe placeholder box after you view the source of the content

When you add a youtube video to the content in ckeditor, the video is displayed in the editor.  Once you hit the 'Source' button to see the source of the content and return to the WYSIWYG editor, the video is represented by a box that says 'iframe' instead of the video. It would be great if, when you return to the WYSIWYG editor, that it still displays the video.

Hi @aapljack , could you please share how you solve the issue? Thank you.

@indianazhao We ended up building a custom solution for videos and using a limited number of the ckeditor options for text editing.

@aapljack , ya, I found that the issue is gone once I use the standard version instead of full one! Thanks a lot!


versioned 0.x.x releases

There is a note on the README that we are on 0.x.x and things are subject to change. A new home needs a new start. One of the things I would like to do is start tagging our releases.
I intentionally didn't break things on #16  relating to renaming GenericReader  to  Reader[T] for this reason. No need to break things without a clear migration path.
The plan is  to

After consolidating current work I will make the first release 0.x.x
I will remove all deprecated features and embrace generics, possibly move requirements to go1.20 then increment the minor component of the semver and drop  a new release (which will be the way forward for the package development).

This way , users can pin to specific tags, and we can always back port bug fixes.
note:
I haven't  decided on which tag version to start with (v0.1.0 sounds silly lol!) , any suggestions are welcome.

Why not v1.0? It sounds like a lot of people are using this in production? Otherwise yeah maybe let's just pick a higher number, v0.17 or something, why not.

see https://github.com/parquet-go/parquet-go/releases/tag/v0.17.0


Virt Handler Migration logic refactor

Migrations are complicated to start with and our code paths in virt-handler compound that complexity by intertwining source and target code paths.
This PR is an effort to begin detangling the source and target migration code paths by refactoring these logical chunks into standalone functions. It should be easier to follow what logic is invoked in certain scenarios now which will help us during debugging and future development.
No functional impact is expected to occur as a result of these patches. I have some logical changes/fixes coming in future PRs, however I wanted to keep this PR as straightforward as possible by not including any of those changes.
NONE

/cc @vladikr @jean-edouard
I know this looks like a lot of change, but i think the result will help give us a better foundation moving forward on the virt-handler side.

/retest

/approve
looks good to me

/lgtm


Present benchmarking results on documentation with images and gifs

PR Type

Documentation content changes

Description

Present the results of benchmarking in documentation.
How Has This Been Tested?

Existing tests pass as expected.
No new tests were introduced
Does this PR introduce a breaking change?

Checklist before requesting a review

[x] I have made sure that my PR is not a duplicate.
[x] My code follows the style guidelines of this project.
[x] I have ensured my code is easy to understand, including docstrings and comments where necessary.
[x] I have performed a self-review of my code.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.
[x] New and existing unit tests pass locally with my changes.
[x] Any dependent changes have been merged and published in downstream modules.
[x] I have updated CHANGELOG.md, if appropriate.

This is a copy of PR #900, the PR had to be closed due to git LFS migrate command closing the PR, please refer to that PR for comments.


Fix t8n eip7002 test - Execute Requests before block persist

PR description
Execute requests before persisting the block.
Fix [multiple_block_above_max_withdrawal_requests_from_eoa]

all tests fill now (unless you run --traces, as some very long tests timeout after 5 sec)


Enhance "Solve Large Analysis With Known OD Pairs" tool to do many-to-many problems and accept a table of OD pairs

First GitHub issue report. Please excuse any GitHub contributing guidelines faux pas...
I am executing the "Solve Large Analysis With Known OD Pairs" tool via a Python script. The script does the following:

Reads an input OD Pairs csv file with 6 required variables: Origin_ID, Origin_Longitude, Origin_Latitude, Destination_ID, Destination_Longitude, Destination_Latitude
Creates two layers as required by the tool: (1) Origins (Origin_ID, Origin_Longitude, Origin_Latitude, Destination_ID; unique on the combination of Origin_ID and Destination_ID); and (2) Destinations (Destination_ID, Destination_Longitude, Destination_Latitude; unique on Destination_ID).
Executes the tool given user inputs and using the layers created in Step 2
Does a table-to-table conversion on the output layer to return a CSV file with the calculated travel metrics merged onto a copy of the original file

However, I am encountering an unexpected error at step 3 when attempting to execute the tool. Specifically:
arcgisscripting.ExecuteError: Non-unique values were found in the unique ID field Origin_ID in <MappingLayerObject object at 0x0000026C2BE445E0>.
Invalid inputs.
Failed to execute (SolveLargeAnalysisWithKnownPairs).
This error message is surprising to me: the origins in the Origins input layer -- and hence the Origin_ID values -- are expected to be non-unique given the requirement to include for each origin the set of assigned destinations. Right? Or should I read the following literally to say that each origin can only be assigned a single destination:
Assigned Destination Field (Python: Assigned_Destination_Field) - A field in origins indicating the ID of the destination each origin is assigned to. Any origin with a null value or a value that does not match a valid destination ID will be ignored in the analysis.
If that's the case, no issue per se, but it would be helpful if the tool were generalized to accept a list of OD pairs. Each pair unique on the combination of origin ID and destination ID, but not necessarily on either individually.
P.S. if this does in fact turn out to be a question of functionality rather than an issue, here's my minor issue contribution: the GitHub landing page for large-network-analysis-tools (https://github.com/Esri/large-network-analysis-tools) has a minor oversight in the "Solve Large Analysis With Known OD Pairs tool" section. The tool signature under the "Running the tool from standalone Python" subsection references the right arguments but the wrong function: "arcpy.LargeNetworkAnalysisTools.SolveLargeODCostMatrix" rather than "arcpy.LargeNetworkAnalysisTools.SolveLargeAnalysisWithKnownPairs" as above.
Thank you in advance!

Hmm, I see what you're saying.
As currently implemented, the tool requires two separate layers as inputs - origins and destinations.  Currently the assumption is that each input in the origins is assigned to one specific destination (one-to-one).  You are trying to do a many-to-many problem with specifically assigned pairs, and the tool isn't really set up to do that.
However, your input data already has the origins exploded out with copies of all the origins and destinations, it seems like.  To make it work with the existing tool, here's what I think you should do:

For your origins, after creating the layer, you'll have duplicates, but that's okay because you want these.  Just create a new field to use as the unique ID for the analysis and populate it with unique values.
For your destinations, delete all rows with duplicate ID values.  You only need one copy of each destination.
Run the tool using the new origin unique ID field.  It should work.
Post-process to map the new origin unique IDs back to your original Origin_ID values if necessary.

Thanks for noticing that typo/copy-paste error in the readme. I'll get that fixed.

That makes sense. Thank you for the prompt explanation. I will code a workaround along the lines you describe. Btw, your step 2 is totally right -- I should have mentioned that I dedup the destinations layer after creating it using the exploded dataset.
Is it difficult to configure the tool to permit one-to-many and many-to-many matches? Rightly or wrongly, it's what I expected the functionality to be -- it seems a natural generalization of the actual functionality. Most often what I'm looking to do is calculate distances from a set of origins to, for each origin, a set of one or more (often more) destinations. Maybe something I can explore via a fork.

Yes, I think this would be a good enhancement.  I think the UI would need to include the following parameters:

Origin locations
Origins Unique ID field
Destination locations
Destinations Unique ID field
Table/csv containing origin/destination pairs
(Probably, to support both the existing situation and this new case, I would have a switcher parameter for the different modes that would alter the available parameters.)

Internally, it wouldn't be horrifically difficult to implement.  It just requires a close look at the chunking logic and slight changes in loading the inputs.
I will put this on my to-do list for the next time my plate is cleared enough to get to it.

Much appreciated!
For what it's worth, I don't think the switcher parameter would be necessary -- wouldn't one destination per origin be a specific case of the general multiple destinations per origin logic?
Also, out of curiosity, any insight into whether an ODCM object/solver or Route object/solver would be faster for this? In my script, I had relied on the Route Solver since it seemed better suited to handling origin-destination pairs.

Yeah, unfortunately, the OD solver just doesn't do preassigned pairs, so you pretty much have to use Route.  The only way you could use OD is if you chunked it up so that each chunk had a single origin and all the destinations assigned to it.  That might be an efficient way to chunk if the number of destinations per origin is large, but otherwise it's probably just easier to use Route.
In general, OD is faster than Route, and it includes more optimizations for memory management for very large problems.  So, if the problem is suited to OD, it's better to use OD.  Just doesn't quite work for this use case.
You might be right about the switcher parameter.  I think it depends on how people have their data set up.  If the tool can support more than one input data situation, it will be more convenient to users, so it might be worth having both options.  Anyway, I will give it some thought when time allows.
I'm going to leave this issue open but will change the title to reflect the requested enhancement.

Awesome, thank you :)

The updates have been merged.  Please let me know how this works for your needs and if you encounter any problems.

Hi Melinda,
Thank you! I haven't had the opportunity to test the new and improved tool yet, but I appreciate the enhancement :)
Thank you for being responsive and open to making changes.
Best,
Duncan

Hello @dgraham5.  Hope the many-to-many version of the tool worked out for you.
Esri’s Network Analyst Team is doing some research about customer workflows involving solving routes or calculating travel times and distances between known or preassigned pairs of origins and destinations.  We’d like to better understand our customers’ needs in this area and may use this information to design and develop improved tools and workflows.
If you have a few minutes and are willing, could you please fill out the attached survey and return it to the e-mail address included inside the document?  Alternatively, you can reach out to me (my e-mail address is in the document) to set up a meeting.
Thank you so much!!
UserQuestionnaire_PreassignedODPairs.docx


FileNotFoundError: [WinError 2] The system cannot find the file specified

D:\WorkStation\Test Zone\HQ_Bot-master>python answer_bot.py

Press s to screenshot live game, sampq to run against sample questions or q to quit:
s
Traceback (most recent call last):
File "answer_bot.py", line 281, in
get_points_live()
File "answer_bot.py", line 259, in get_points_live
question,options=parse_question()
File "answer_bot.py", line 116, in parse_question
text = read_screen()
File "answer_bot.py", line 98, in read_screen
text = pytesseract.image_to_string(Image.open(filename))
File "C:\Users\ZeroByteDNA\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pytesseract\pytesseract.py", line 193, in image_to_string
return run_and_get_output(image, 'txt', lang, config, nice)
File "C:\Users\ZeroByteDNA\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pytesseract\pytesseract.py", line 140, in run_and_get_output
run_tesseract(**kwargs)
File "C:\Users\ZeroByteDNA\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pytesseract\pytesseract.py", line 111, in run_tesseract
proc = subprocess.Popen(command, stderr=subprocess.PIPE)
File "C:\Users\ZeroByteDNA\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py", line 709, in init
restore_signals, start_new_session)
File "C:\Users\ZeroByteDNA\AppData\Local\Programs\Python\Python36-32\lib\subprocess.py", line 997, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] The system cannot find the file specified

What did you find to be the problem?

YES HELP. What was the problem?? Any solution??

help please i have the same problem


Better support C++ types in generated structs

Option '(nanopb).callback_datatype' does not work with
most C++ types, because generated structure is inside
an 'extern "C" {' block, that prevents using namespaces, templates...
Option '(nanopb_fileopt).include' does not support including system headers,
that prevents using <vector>, <string>, etc...
Modify generator in following ways:

start 'extern "C" {' later, after the structures

for include option stating with '<', include system header
e.g. "(nanopb_fileopt).include = '<vector>'" generates "#include <vector>"

Add 'cxx_callback_datatype', SConscript code based on 'cxx_descriptor' test.

Looks good to me!
Regarding "tests/site_scons/site_tools/nanopb.py:_nanopb_proto_builder forces '.c' suffix", I would be ok with adding e.g. "NanopbProtoCxx" builder that would apply the options required for .cxx extension.

Great, thanks!

Hmm, uh, looks like there is a bit of a problem: https://travis-ci.org/github/nanopb/nanopb/jobs/723668169
build/cxx_callback_datatype/message.pb.cpp:12:1: error: offset of on non-POD type 'TestMessage' (aka '_TestMessage') [-Werror,-Winvalid-offsetof]

(Also looks like Travis CI build for pull requests wasn't working for some reason, but that should be fixed now. It would have shown the problem earlier.)
So it seems there is a bit of a conflict between C++ type rules and the way nanopb currently accesses struct members. According to https://stackoverflow.com/questions/1129894/why-cant-you-use-offsetof-on-non-pod-structures-in-c it might be safe to define a custom pb_offsetof() for C++ as long as virtual inheritance is not used, but I'm not sure if that is actually a good idea.


Missing setting mouse capture as default in player.gd

Very cool script. I'm a complete noobie at Godot. Sorry if this should be apparent.
I am able to open the level.tscn, map controls, and move around.
The problem arises when trying to add the character controller to my own project.
I've tried a few things in an attempt to replicate the example but none of them seem to work.

Just copying over player.tscn from the example to my own world.
Creating an inherited scene of fps/fps_controller3d.tscn, saving it as player, importing that into my own world, and copying the script attached to player.tscn to my own player scene.

A bit stumped.

Thanks for opening the error and asking, I ended up noticing an oversight on my part, in the configuration step your project needs to capture the mouse at least for proper operation.

Put this code at the beginning of the execution of your project, it activates the capture of the mouse and hides it.
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED

@scriptsengineer To clarify, I am not seeing the error you are referring to.
My issue is related to usage of the project.
I.E This provides functionality to offer a player controller but it's unclear of how to use that controller in my own project. I've checked the docs here as well as the Godot Docs.

Does he just not walk?

The errors I'm seeing range from "Will completely crash" to "won't walk and isn't effected by gravity".
I've also tried adding CharacterController3D and FPSController3d and player as it's own node but that doesn't seem to work either :(

I can make a video if that's easier.

I'm just starting from a barebones world with a floor and trying to add a character with movement managed by the FPSController3d

https://user-images.githubusercontent.com/1673249/214998854-c263efaf-ccb0-419c-b3d3-65b795b18089.mp4
See if this can help in any way

The version I am using is godot 4 beta 14

I'm on beta 15, with that said that completely fixed the issue. Sorry for the confusion :).
Input.mouse_mode = Input.MOUSE_MODE_CAPTURED

Thank you!

Fixed in 2.1.3


Typo "Azure DB for PostgreSQL"→"Azure Database for PostgreSQL"

https://learn.microsoft.com/en-us/azure/postgresql/single-server/quickstart-create-postgresql-server-database-using-bicep?source=recommendations&tabs=CLI
https://github.com/MicrosoftDocs/azure-docs/blob/main/articles/postgresql/single-server/quickstart-create-postgresql-server-database-using-bicep.md
#PingMSFTDocs

@rothja - I've merged this PR to because the proposed title is consistent with the preexisting article and other articles in the TOC folder (e.g., this live article). But note that the phrasing is stylistically incorrect--a product name shouldn't be treated as a direct object. The titles in this folder should be revised in the private repo. Here's a possible rewrite: "Create an instance of Azure Database for PostgreSQL - Bicep".

Yes, @ShannonLeavitt , you are right. I'll talk to the content lead for PostgreSQL about this. Thanks!

#sign-off


Removed trailing whitespace

Again, not sure if anyone else cares about this. It's going to plague me until I fix it, so I fixed it. There's no more trailing whitespace. The git commits include the changes I made to intro but I undid them. I know there's a way to rewind commits but I couldn't figure it out and was lazy. I'm going to create a new branch and add the intro changes to that.

I guess this was too many changes.


Installing exposes all scripts in bin globally

Doing zef install Data::UkraineWar::MoD will take the scripts in bin and install them in the PATH:
6 bin/ scripts [commit-push.sh index.js ukr-mod-scrape-local.raku scrape.py ukr-mod-scrape.raku plot-pairs.R] installed to:
.../install/share/perl6/site/bin

Some of those seem very local to this distribution, like commit-push.sh, which does
git config --global user.email<EMAIL_ADDRESS>git config --global user.name "UkrModDataBot"
git commit -am "[🤖] $1"

Maybe they can be moved to tools, as suggested in Matthew Stuckwisch's recent talk at TPRC? Or removed from the distribution tarball before release?

Absolutely and totally right. scripts might be another option


if possible to connect mysql database instead of mongo?

i want connect with mysql data base instead mongo db is it possible?

No sorry, it currently only supports MongoDB.

your preferring no sql db only correct, and its support other than mongo db.

Currently it only supports MongoDB. It might be possible to write a new database layer to extract it and use SQL.


Improve Gerrit icon

SVG was taken from https://en.m.wikipedia.org/wiki/File:Gerrit_icon.svg, and pretty-formatted with the XML extension for VS Code.
Then, I used the following tool to generate the PNG in 256x256 which is the size recommended by VS Code.
https://vincerubinetti.github.io/svg-to-png/

Thanks for the PR! The PNG size upgrade is a good change, let's keep that one. But the svg change will actually make the icon look really weird in VSCode (see image below). VSCode turns the colored in SVG into a greyscale one with only filled-in or transparant. The red and green then also turn into grey turning it into a square blob. If you can remove that part of the change from this PR it's all good!

You are totally right. I'll see what I can do, otherwise I'll restore the original SVG.

I restored the original icon, but pretty-printed it with the SVG extension.
I noticed a very small issue with it:

But I could not fix it, I don't know anything about SVGs lol.

Ah the little bit of space between the svg is fine, you won't see it anyways since it's so tiny. So if you restore the yarn.lock file all good

Ah the little bit of space between the svg is fine, you won't see it anyways since it's so tiny. So if you restore the yarn.lock file all good

I actually fixed it in https://github.com/SanderRonde/VSCode-Gerrit/pull/75/commits/acf6609737da3af96266f12641777072d9f55709.

Awesome, thanks for the PR! Will merge it as soon as you fix the merge conflicts :)

Awesome, thanks for the PR! Will merge it as soon as you fix the merge conflicts :)

Hm... I had fixed already, I believe.

Oh weird github is showing me something else. I'll try and fix it

Ah it was the rebasing, a merge commit was fine. Thanks again for the PR!


Flink Troubleshooting Documentation Required

https://github.com/dcos/examples/tree/master/flink/1.9
I'm Running DC/OS on DigitalOcean and experiencing the same error as mentioned in Troubleshooting under "AWS Specific Config".
Could you please provide a solution for DigitalOcean?
This is what I'm getting on DigitalOcean, same as AWS:
2017-07-29 17:10:05,553 ERROR org.apache.flink.mesos.runtime.clusterframework.MesosApplicationMasterRunner  - Mesos JobManager initialization failed
java.net.UnknownHostException: agentname: agentname: Name or service not known
    at java.net.InetAddress.getLocalHost(InetAddress.java:1505)

@joerg84 ^

@AGutan Did you solve it on DigitalOcean? Would be great if you could create a PR...

@joerg84 Well, I gave up searching for a solution for now, since the issue is not my main priority. Last thing I checked were similar settings to AWS on DigitalOcean.
The article suggests setting both of these to yes:
DNS resolution: | yes
DNS hostnames: | yes
But I was unable to find similar settings on DigitalOcean.

@AGutan Can you help me reproduce the issue? Easiest is probably slack (chat.dcos.io)

@joerg84 I followed exactly this instructions: https://dcos.io/docs/1.10/installing/cloud/digitalocean/
Then added Flink from the UI (didnt change the configuration).

@AGutan and @joerg84 did this get resolved? I'd love to be able to close the issue :)

@judithpatudith the issue hasn't been resolved. At joerg84's request I reproduced the issue. Still waiting for it to be addressed.

@AGutan I assume the Flink update mentioned on StackOverflow didn't solve the issue? Pinging @joerg84 Now in case he hasn't tried to reproduce it yet.

@AGutan Sorry for the delay. will work on it tomorrow.

@AGutan just curious did the terraform script work out of the box for you? I had to fix the IP detect script: https://github.com/joerg84/digitalocean-dcos-terraform/commit/8fc6d63e00fa1a613056c58eb7cfc100776638f5

@joerg84 apparently it did for me.


[$250] RHP - Notification preference panel shows different behavior when opening

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 1.4.63-0
Reproducible in staging?: y
Reproducible in production?: no
If this was caught during regression testing, add the test name, ID and link from TestRail: https://expensify.testrail.io/index.php?/tests/view/4494295
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: applause internal team
Slack conversation:
Action Performed:

Navigate to staging.new.expensify.com
Click on the search icon
Search for a user with a Gmail account which you didn't have prior conversation with and open the report
Click on the header
If Notification preference settings doesn't show up click on "Message ..." button and click on header again
Click on Notification preference "Notify me about new messages" button

Expected Result:
The RHP should slide in smoothly same as production behavior
Actual Result:
The RHP jumps in from the left in a different manner than prod behavior or any other RHP sliding behavior
Workaround:
unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[ ] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence
https://github.com/Expensify/App/assets/43996225/3016ec9c-7604-42fe-9830-39edf1656c56

View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01764a9f063358f182
Upwork Job ID:<PHONE_NUMBER>777859072
Last Price Increase: 2024-04-19

We think this bug might be related to #vip-vsb

Confirmed the error, opening it up.

Same root cause as https://github.com/Expensify/App/issues/40538

Same root cause as #40538

Should we hold this one on it?

Still on hold

The hold is now removed. We need to retest to see if it's still reproducible.

Weird, now when I follow these steps:

Navigate to staging.new.expensify.com
Click on the search icon
Search for a user with a Gmail account which you didn't have a prior conversation with and open the report
Click on the header
If Notification preference settings doesn't show up click on "Message ..." button and click on header again

I don't actually get the option for notifications preferences as an option:
https://github.com/Expensify/App/assets/1529980/ca4aa140-6e45-4274-b661-7e3d724ebdfa
Taking this to #expensify-bugs
Will hold this issue on that since I can't reproduce if the line disappears.

It seems to be reproducible in certain conditions

Issue not reproducible during KI retests. (First week)

Can't reproduce anymore, closing.


Using canvas in Nodejs

I'm trying to use node canvas to mix the mp4.
My approach was to use the canvas.toBuffer method, but it does not seem to work (the output mp4 is a bad file)
const loadMP4Module = require("../build/mp4.node");
const fs = require("fs");
const path = require("path");
const { promisify } = require("util");
const readFile = promisify(fs.readFile);

const width = 1920;
const height = 1080;

const { createCanvas, loadImage } = require('canvas')

var MP4;
var stream;

const drawFrame = (interpolant) => {
    ctx.fillStyle = "#0000FF";
    ctx.fillRect(0, 0, canvas.width, canvas.height);
    ctx.fillStyle = "#FF0000";
    ctx.fillRect(0, 0, canvas.width * interpolant, canvas.height * interpolant);
};

function write(pointer, size, offset) {
    const buf = MP4.HEAPU8.slice(pointer, pointer + size);

    // Write the MP4-muxed chunk directly into a .mp4 stream
    stream.write(buf);

    return 0;
}
// For an arbitrary stream of data, yield/iterate
// on each AnnexB NAL chunk (including the startcode)
function* readNAL(buffer, offset = 0) {
    let h264Size = buffer.byteLength;
    while (h264Size > 0) {
        const nal_size = getNALSize(buffer, offset, h264Size);
        if (nal_size < 4) {
            offset += 1;
            h264Size -= 1;
            continue;
        }
        yield buffer.subarray(offset, offset + nal_size);
        offset += nal_size;
        h264Size -= nal_size;
    }

    function getNALSize(buf, ptr, size) {
        let pos = 3;
        while (size - pos > 3) {
            if (
                buf[ptr + pos] == 0 &&
                buf[ptr + pos + 1] == 0 &&
                buf[ptr + pos + 2] == 1
            )
                return pos;
            if (
                buf[ptr + pos] == 0 &&
                buf[ptr + pos + 1] == 0 &&
                buf[ptr + pos + 2] == 0 &&
                buf[ptr + pos + 3] == 1
            )
                return pos;
            pos++;
        }
        return size;
    }
}

(async () => {

    const canvas = createCanvas(width, height)
    const ctx = canvas.getContext('2d')
    // Write "Awesome!"
    ctx.font = '30px Impact'
    ctx.rotate(0.1)
    ctx.fillText('Awesome!', 50, 100)

    // Draw line under text
    var text = ctx.measureText('Awesome!')
    ctx.strokeStyle = 'rgba(0,0,0,0.5)'
    ctx.beginPath()
    ctx.lineTo(50, 102)
    ctx.lineTo(50 + text.width, 102)
    ctx.stroke()

    stream = fs.createWriteStream(
        path.resolve(__dirname, "outputs/composition.mp4")
    );

    const fps = 60;
    const duration = 4;
    let frame = 0;
    let totalFrames = Math.round(fps * duration);

    console.time("encode");

    MP4 = await loadMP4Module();
    const mux = MP4.create_muxer(
        {
            width,
            height,
            // Needed to write sequentially to a file
            // i.e. no 'offset' parameter needed
            sequential: true,
        },
        write
    );

    const file = path.resolve(__dirname, "fixtures/composition");
    // JPEG-encoded, 50% quality
    const buffer = canvas.toBuffer('image/jpeg', { quality: 0.5 })

    for (let chunk of readNAL(buffer)) {
        // malloc() / free() a pointer
        const p = MP4.create_buffer(chunk.byteLength);
        // set data in memory
        MP4.HEAPU8.set(chunk, p);
        // write NAL units with AnnexB format
        // <Uint8Array [startcode] | [NAL] | [startcode] | [NAL] ...>
        MP4.mux_nal(mux, p, chunk.byteLength);
        MP4.free_buffer(p);
    }

    // Note: this may trigger more writes
    MP4.finalize_muxer(mux);

})();

[UPDATE]
Assumed that the problem was with the canvas.toBuffer I have tried this approach. I draw the context, etc. then I save the canvas as a stream to a file with createWriteStream. Then I load it as a buffer with readFile, but it does not seem to work properly.
(async () => {

    const canvas = createCanvas(width, height)
    const ctx = canvas.getContext('2d')
    // Fill the path
    ctx.fillStyle = "#1c2833";
    ctx.fillRect(0, 0, canvas.width, canvas.height);
    // Write "Awesome!"
    ctx.font = '30px Impact'
    ctx.rotate(0.1)
    ctx.fillStyle = "#FFF";
    ctx.fillText('Awesome!', 50, 100)
    // Draw line under text
    var text = ctx.measureText('Awesome!')
    ctx.strokeStyle = 'rgba(0,0,0,0.5)'
    ctx.beginPath()
    ctx.lineTo(50, 102)
    ctx.lineTo(50 + text.width, 102)
    ctx.stroke()

    stream = fs.createWriteStream(
        path.resolve(__dirname, "outputs/composition.mp4")
    );

    const fps = 60;
    const duration = 4;
    let frame = 0;
    let totalFrames = Math.round(fps * duration);

    console.time("encode");

    MP4 = await loadMP4Module();
    const mux = MP4.create_muxer(
        {
            width,
            height,
            // Needed to write sequentially to a file
            // i.e. no 'offset' parameter needed
            sequential: true,
        },
        write
    );

    const out = fs.createWriteStream(__dirname + "/fixtures/composition.png")
    const ostream = canvas.createPNGStream()
    ostream.pipe(out)
    out.on('finish', async () => {

        console.log('The PNG file was created.')

        const file = path.resolve(__dirname + "/fixtures/composition.png");
        const buffer = await readFile(file);
        for (let chunk of readNAL(buffer)) {
            // malloc() / free() a pointer
            const p = MP4.create_buffer(chunk.byteLength);
            // set data in memory
            MP4.HEAPU8.set(chunk, p);
            // write NAL units with AnnexB format
            // <Uint8Array [startcode] | [NAL] | [startcode] | [NAL] ...>
            MP4.mux_nal(mux, p, chunk.byteLength);
            MP4.free_buffer(p);
        }
        // Note: this may trigger more writes
        MP4.finalize_muxer(mux);

    })

})();

@loretoparisi I'm not sure what you're trying to do here, but mp4-wasm only muxes H264 frames, but dosn't encode them. To get from RGB (i.e. canvas API) to H264 NAL data, you need to encode it somehow, such as with ffmpeg or WebCodecs (Chrome Canary only). Once it's encoded, then you can use mp4-wasm to 'mux' the H264 frames into a MP4 container file.
This module doesn't aim to support encoding due to patent issues with H264 format.

@mattdesl yes that is I was trying to do encode + mux. Yes I have tried Chrome Canary and perfectly worked, I have missed the encoding part when in node. Thanks for the clarification. Hopefully patent issues with H264 will be solved at some point.


Save all textures?

I'm trying to dump some textures but there seems to only be the option to save one texture at a time
Is there any way to save all textures from a capture to a directory?

Can you explain what you're trying to solve and why this would be useful? I can't see a reason why you'd want to save all textures to disk to debug something. If you explain your full use-case from the start then it's easier to see if maybe there is a better solution to your problem that's more direct.

Renderdoc is the only reliable way of dumping textures from PS3/360 games that I've found. There's many projects that involve dumping textures from games to archive them for various purposes.
You can learn more about texture archival at https://www.textures-resource.com/ if you're interested. You'll notice that PS3 and 360 have very few games on there compared to Nintendo's consoles, the reason is that Nintendo consoles usually end up with much more robust emulators and decompiling tools, right now the only way to work with PS3 and 360 games is with renderdoc, saving one texture at a time.

RenderDoc is intended only to be used for debugging your own programs. Extracting copyrighted assets from commercial games is absolutely not supported or endorsed.


storage: enhance Querier interface usage

This extracts Querier as an instantiateable and closeable object
rather than just defining extending methods of the storage interface.
This improves composability and allows abstracting query transactions,
which can be useful for transaction-level caches, consistent data views,
and encapsulating teardown.
@beorn7 @juliusv
This has no immediate use for the MemorySeriesStorage, but as there are now external implementers, this is conceptually more powerful and flexible.

LGTM on a first glance. But I guess @juliusv has way more context right now. So he should have a thorough look.

Fine with me in general. It could make sense for some users to pass in a context to the querier constructor, but we don't need to add it now before anyone is using it...

It could make sense for some users to pass in a context to the querier constructor, but we don't need to add it now before anyone is using it...

How so? Currently each query operation has a context parameter. That generally makes sense, as the context is tied to a specific user request.
What would a context in the constructor do then? It doesn't make sense to respect timeouts/cancelation of two different contexts. Any multi-tenancy arguments would also be present in each query method.
I think only one of both options is sane. And the current per-method contexts are generally more powerful.

Hm yeah, makes sense. The existing per-query contexts cover a super set of what per-querier contexts could cover.
:+1:

Thanks


Incomplete tests: Statusz / status sub resource

Context: production readiness proposal and plan
The feature “Statusz / status sub resource” is identified as incomplete test coverage. As a measure to reach Istio production quality in 0.3, this issue is opened to track the progress of providing sufficient test coverage for the feature in question.
This issue is initially assigned to the working group leads.
Recommendations:

Come up with a test plan for how the feature should be tested. Identify and document (in this issue, or a separate document this issue will link to) test cases and whether each will be covered by an integration test (with some level of mocking and/or starting up selected components in test environment), or end to end test (aka system test, which brings up the whole Istio to exercise the feature; currently live in the istio/istio repo).
If you expect the test plan is complex and controversial, consider having it formally reviewed.
State an ETA in the issue, and assign this to a developer who will execute the test plan.
Execute the test plan as the highest priority for 0.3.
For any bug or defect identified by the new test cases, file a new issue and link it from this one.
Close this issue only when the test plan is completely executed, and all additional issues identified in step 3 are fixed.

If you see a risk of not fixing this issue by end of 0.3, please contact<EMAIL_ADDRESS>as soon as possible. We will also periodically ping the issue for update.

Prometheus is the de facto standard for all out self reported metrics.
Envoy, Mixer and Pilot all report metrics to Prometheus.
I am closing this issue from here and opening one in istio/istio


Torii graphql events and transactions api

Quick note below about new APIs in graphql.
Only events and transactions emitted from your world are indexed.

events - We store the key values, data, and txn hash. These events are filterable by keys like entities query. Supports pagination.

transactions - we're only storing transaction data for now, transaction receipt can be support in the future. No filtering. Supports pagination.

We should add this like in the ..Torii/Graphql section right?

Do we should add this in the ..Torii/Graphql section right?

Yeah for sure!


I had to check Mizuu's github page after visiting the official site to understand what it is

I found the official site really confusing, I've read all the paragraphs and I still was at a loss about what Mizuu was about. Lots of beautiful pictures, but not much information.
"Is it related to PopcornTime?", "Does it download movies?" "Is it an integrated interface to all my VoD services?" Those were my thoughts.
To me it looked like you wanted to keep it ambiguous on purpose, like malicious marketing people do when they want to sell products which aren't that great.
Only when I went to https://github.com/MizzleDK/Mizuu I finally understood, with very concise words, what the app was:

Mizuu - media indexer for Android

Mizuu is a user friendly media center application for Android tablets and smartphones running Android 4.0.3 (API level 15) or newer. The application helps manage all your movie and TV show video files - and automatically fetches useful information about the video content, including title, plot, cover art and actors.

Now that sounds like something helpful. Something I'd download. A good natured app.

I've updated the text in the first "area" a bit. Not quite sure what could be done other than that.

I'm not sure either :)
Thank you!


call to xpath function return unexpected null/empty result on postgresql 9.3.15

when calling this sample query picked here https://www.postgresql.org/docs/9.3/static/functions-xml.html from postgresql official documentation,
SELECT xpath('./status/text()' ,'<?xml version="1.0" ?><response><status>SUCCESS</status></response>');
result in dbeaver 4.0.2 on max osX installed with brew is

xpath

seems to be empty or null
while result using psql on same postgres instance with same query is

xpath
{SUCCESS}
(1 row)

postgresql (docker version) version given by
select version();
is:

version

PostgreSQL 9.3.15 on x86_64-unknown-linux-gnu, compiled by gcc (Debian 4.9.2-10) 4.9.2, 64-bit

This is a bug in array value handler (PostgreSQL returns xpath expression result as array of strings).
Thanks for report.


Fix more broken API notes caught by manual inspection.

Explanation: We had busted apinotes for two methods in TVMLKit, resulting in those methods not being imported. We’ve since updated the compiler to just ignore invalid swift_name attributes rather than drop the API, so the failure mode isn’t as bad, but we should still get this right with the rest of our “Swift 3 modernization” changes.

Scope: Just these two methods.

Issue: rdar://problem/26403143. Reviewed by @bitjammer.

Risk: Very low. It’s really no different from any other apinotes, and since the methods weren’t showing up at all for a while it’s unlikely anyone using the latest Swift compilers is relying on them.

Testing: Verified that the methods imported correctly in the integrated REPL, which they previously hadn’t.

Before merging this pull request to apple/swift repository:

[ ] Test pull request on Swift continuous integration.

Triggering Swift CI
The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:
Smoke Testing
    Platform     | Comment
    ------------ | -------------
    All supported platforms     | @swift-ci Please smoke test
    OS X platform               | @swift-ci Please smoke test OS X platform
    Linux platform              | @swift-ci Please smoke test Linux platform

Validation Testing
    Platform     | Comment
    ------------ | -------------
    All supported platforms     | @swift-ci Please test
    OS X platform               | @swift-ci Please test OS X platform
    Linux platform              | @swift-ci Please test Linux platform

Note: Only members of the Apple organization can trigger swift-ci.

@swift-ci Please test

@swift-ci test


Update jquery version

Updated to the latest version jquery v1.11.3 needs to be v1 for swagger UI code rather v2:

hapi-swagger v1.0.0 for hapi v9.x
hapi-swagger v0.8.2 for hapi v8.x


Model editor issues from 21.1.4.x hotfixes

Model editing fails with
Type:       MissingMethodException 			Message:    Método no encontrado: 'DevExpress.ExpressApp.Model.Core.ModelApplicationBase DevExpress.ExpressApp.Model.Core.ModelApplicationHelper.CreateModel(DevExpress.ExpressApp.DC.ITypesInfo, System.Collections.Generic.IEnumerable1<System.Type>, System.Collections.Generic.IEnumerable1<DevExpress.ExpressApp.ModuleBase>, DevExpress.ExpressApp.Core.ControllersManager, System.Collections.Generic.IEnumerable1<System.Type>, System.Collections.Generic.IEnumerable`1<System.String>, System.String, DevExpress.ExpressApp.ModelStoreBase)'.
Data:       0 entries
Stack trace:
en Xpand.Persistent.Base.ModelDifference.ModelBuilder.BuildModel(XafApplication application, String configFileName, XpandApplicationModulesManager applicationModulesManager)
en Xpand.Persistent.Base.ModelDifference.ModelBuilder.Build(Boolean rebuild)
en Xpand.Persistent.Base.ModelDifference.ModelLoader.GetMasterModelCore(Boolean rebuild)
en Xpand.Persistent.Base.ModelDifference.ModelLoader.GetMasterModel(XafApplication xafApplication, Action1 action)    en Xpand.Persistent.Base.ModelDifference.ModelLoader.<>c__DisplayClass12_0.<GetMasterModel>b__0()    en Xpand.Utils.Helpers.Retry.<>c__DisplayClass0_0.<Do>b__0()    en Xpand.Utils.Helpers.Retry.Do[T](Func1 action, TimeSpan retryInterval, Int32 retryCount)
InnerException is null`
and found this Dx ticket mentioning issue about security
https://supportcenter.devexpress.com/ticket/details/t1011037/modelapplicationhelper-createmodel
Any workaround or fix?

i haven't migrate the 21.1.5 yet however this method modifier changed to non public so I guess the related calls should be replaced using relfeaction

We will try to answer all questions that do not require research within 24hr.
To prioritize cases that require research we use the following labels in order. For all other issues the posting time is respected.

❇ Exclusive-Services
❤ Bronze Sponsor
❤ Sponsor
❤ Backer
Installation
ShowStopper
Nuget
Contribution
BreakingChange
ReproSample
Deployment
must-have

This case is prioritized.

@apobekiaris now that 21.1.5 , please remember this .. :)

cannot miss it eXpand, u can see my attempt at
https://github.com/eXpandFramework/Reactive.XAF/blob/16057bce80c522dc2384bd02f8af5b4069e3bf2a/tools/Xpand.XAF.ModelEditor/ModelControllerBuilder.cs#L31-L43
but this repo works are not yet finished as .net5 additional  is also scheduled for this release

Thanks!, any ETA guess?

asap, cannot guess .NET support is an unknown factor

.NET5 I meant

it is now implemented on all dependencies check the next minor

Issue is deprioritized as no Assignee found and scheduled for auto-close if no activity in the next 60 days. Thanks a lot for your contribution.

Closing issue for age. Feel free to reopen it at any time.
.Thank you for your contribution.


fix(plugins/plugin-bash-like): stop resolve to absolute path in fstat and fslice

Fixes #7405
This prevents some odd interactions with windows path resolving of backslashes.

Description of what you did:

My PR is a:

[ ] 💥 Breaking change
[x] 🐛 Bug fix
[ ] 💅 Enhancement
[ ] 🚀 New feature

Please confirm that your PR fulfills these requirements

[x] Multiple commits are squashed into one commit.
[x] The commit message follows Conventional Commits, which allows us to autogenerate release notes; e.g. fix(plugins/plugin-k8s): fixed annoying bugs
[x] All npm dependencies are pinned.

/lgtm


cksum: stops when one of given files doesn't exist #5809

i have added match so if it didn't found a file it will just continue the loop

i have added match so if it didn't found a file it will just continue the loop
As this is my first visit, could you kindly provide some guidance?


Implement Iceberg changelog scanning

This commit exposes a new system table called $changelog that allows users to return a table pertaining to info about when which snapshots specific records were added or deleted.
The schema of the changelog table is as follows:
| primary_key: T | operation: VARCHAR | ordinal: bigint | snapshot_id: bigint |

To use this feature, the only requirement is that users need to specify the name of a column in the table properties as the "primary key". The value of the key will be exposes in the "primary_key" column of the changelog table. The type of the column will be the same type as in the underlying table.
The current beahvior in this commit only returns the results of the changelog between the current and previous snapshot of the table being queried. You can use this information to determine when a record has been inserted or deleted.
SELECT committed_at, change.operation, primary_key, ordinal
    FROM "orders$snapshots" as snap
    JOIN "orders$changelog" as change
    ON change.snapshot_id = snap.snapshot_id;

                committed_at                 | operation | primary_key | ordinal
---------------------------------------------+-----------+-------------+---------
 2023-07-19 13:03:03.207 America/Los_Angeles | INSERT    |        1956 |       0
 2023-07-19 13:03:03.207 America/Los_Angeles | INSERT    |       28196 |       0
 2023-07-19 13:03:03.207 America/Los_Angeles | INSERT    |       27873 |       0

At a high-level the implementation strategy needed to expose information from Iceberg's IncrementalChangelogScan tasks which differs from a normal TableScan. The plan tasks for IncrementalScans include the information on operation type, ordinal, and snapshotId which are are not contained in the normal table scan plan.
When the connector metadata queries for a changelog table type, it returns a schema with a static 4 columns, where the first 3 are static VARCHAR, BIGINT, BIGINT, and the final is dependent upon the user- defined primary key property.
To accomplish this the following changes were made

a new primary key table property was added
logic to generate the changelog table schema
a new piece of info on iceberg splits containing the original table's column handles which is used during split sourcing
a new page source which constructs the correct format page based on the extracted primary key.
finally, some additional refactoring of the IcebergNativeMetadata and IcebergHiveMetadata classes to consolidate certain bits of logic for the ConnectorMetadata

And of course, this is preliminary work. There is still some more optimization that could be done.

Remaining failure seems to be an anomaly/unrelated to these changes:
2023-07-24T20:58:42.4281820Z 2023-07-25 02:43:42 INFO: FAILURE     /    com.facebook.presto.tests.hive.TestHiveTableStatistics.testStatisticsForAllDataTypes (Groups: skip_on_cdh) took 15.4 seconds


Update all logging to use new logging method

Description
We have console.log or console.error in many places, but now we have a logging function, we should use that and replace every console.*
The function can be found in this file config/logger.js , and an example of it's usage can be found in https://github.com/EddieHubCommunity/LinkFree/blob/main/pages/api/users/%5Busername%5D/index.js#L25
Screenshots
No response
Additional information
No response

Can you please explain a bit? I also like to contribute to this issue...

The description has been updated, please recheck.

Hey! Can I work on this issue ?

Hey! Can I work on this issue ?

@Vishrut19 we are only assigning one issue per person at the moment.  I can see that you have been assigned and are still working on: https://github.com/EddieHubCommunity/LinkFree/issues/3232

I would like to work on this.

Thank you. I will get started on this!


Fix 'return' outside of function

This resolves an issue where the module wasn't able to be parsed in strict mode.
See: https://github.com/ssbc/ssb-server/issues/683

Published https://github.com/ssbc/chloride/releases/tag/v2.3.0


Lint failing

Describe the bug
Our current lint process is failing because we don't have esling-config-prettier installed.

To reproduce
Run yarn lint.
Expected behavior
We need to install esling-config-prettier + fix all the current error & warnings.
Screenshots
No response
Desktop (please complete the following information)
No response
Smartphone (please complete the following information)
No response
Additional context
No response
Would you like to work on this issue?

[ ] Yes
[ ] No

@pettinarip if you'd like, I can take this as well!

@pettinarip in fixing errors and warnings: how would you prefer handling escaped characters?

  When's it shipping?

or

  {`When's it shipping?`}

@pettinarip in fixing errors and warnings: how would you prefer handling escaped characters?

  When's it shipping?

or

  {`When's it shipping?`}

Probably want this situation clarified in the docs as well.

@nhsz @wackerow @corwintines ^ what do you guys think?
In other EF projects, we have been using the ' way. So, probably it is better to keep them consistent.
=====
Btw, I must say that I find this rule annoying but understand the benefits haha it is what it is 🤷🏼

'

In favor of keeping '

@pettinarip in fixing errors and warnings: how would you prefer handling escaped characters?

  When's it shipping?

or

  {`When's it shipping?`}

Probably want this situation clarified in the docs as well.

@nhsz @wackerow @corwintines ^ what do you guys think?
In other EF projects, we have been using the ' way. So, probably it is better to keep them consistent.
=====
However, I must say that I find this rule annoying but understand the benefits haha it is what it is 🤷🏼

In favor of keeping '

I prefer
{`When's it shipping?`}

But, for consistency sake, I agree and can keep '


Portfolio webpage

This is a Microverse assignment. A single page mobile-first portfolio webpage is created using the following technologies:

Linters :  hint, stylelint
html, css, css-flex
code editor : vs-code

Thanks
Best Regards
Md. Arafat Hossain
On Sat, 3 Jun 2023 at 13:22, Abdus Sattar @.***> wrote:

@.**** approved this pull request.
STATUS: APPROVE 🏆
Hi @HossainAraf https://github.com/HossainAraf,
Your project is complete! There is nothing else to say other than... it's
time to merge it [image: :shipit:]
Congratulations! 🎉
Highlights

PROFESSIONAL README
FOLLOWING THE REVIEWER'S SUGGESTIONS
CORRECT USE OF GITHUB WORKFLOWS
[image: ThumbOkayGIF]
https://user-images.githubusercontent.com/118761303/243090691-1d743d56-1784-407a-b6cc-f60073909611.gif

Optional suggestions
Every comment with the [OPTIONAL] prefix won't stop the approval of this
PR. However, I strongly recommend you to take them into account as they can
make your code better. Some of them were simply missed by the previous
reviewer and addressing them will really improve your application.
Cheers and Happy coding!👏👏👏
Feel free to leave any questions or comments in the PR thread if something
is not 100% clear.
Please, remember to tag me in your question so I can receive the
notification.
As described in the Code reviews limits policy
https://microverse.zendesk.com/hc/en-us/articles/1500004088561 you have a
limited number of reviews per project (check the exact number in your
Dashboard). If you think that the code review was not fair, you can request
a second opinion using this form https://airtable.com/shrQAqnBwek5a0O0s.
—
Reply to this email directly, view it on GitHub
https://github.com/HossainAraf/Portfolio/pull/1#pullrequestreview-1459283412,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/A7A6IL4GC4W5NQAGUXTQUSDXJMT73ANCNFSM6AAAAAAYYGTRDU
.
You are receiving this because you were mentioned.Message ID:
@.***>


Release new version

The latest release isn't usable as it still uses lazyledger in the module name.

Released v0.3.0 https://github.com/celestiaorg/smt/releases/tag/v0.3.0


Godoc is not available

Hello,
a page at http://godoc.org/github.com/surge/surgemq gives a "Not Found" error.

Apologies, but I moved this repo into its own "surgemq" org, so the path is now
http://godoc.org/github.com/surgemq/surgemq
Sorry about that.


Boto debug logging is too verbose

Is your feature request related to a problem? Please describe.
The extension seems to dump the debug logs from botocore, which are pretty verbose and can hide other logs
Describe the solution you'd like
It would be nice to allow the logging to be configurable and/or set the default level to something less verbose (err/warn maybe)

Thanks for opening the issue, sorry it took me so long to get around to it. Logging is no longer so verbose.

Thanks so much for getting to it!


Passport support

Passport package has embedded models, which are tightly coupled to the Illuminate's Eloquent. One way of making Passport work is taking ownership of all the models, but this way you are limited if Passport package updates those models.
A service provider could take responsibility for mapping Illuminate models to Jenssegers' models.

Facing the same issue right now. I'm afraid this solution won't work as Passport models are not resolved by the IoC container, but instantiated using new.

I am using the solution and it works. The models are indeed instantiated using new but their base model is in the use case, therefore the IoC container will take over the class resolving.
Maybe we could use some tests here?

No the IoC container won't take over unless called explicitely using make() . Simple to verify :

    app()->when(\Laravel\Passport\Token::class)->needs(\Illuminate\Database\Eloquent\Model::class)->give(\Jenssegers\Mongodb\Eloquent\Model::class);

    $model = new \Laravel\Passport\Token;
    dd($model instanceof \Jenssegers\Mongodb\Eloquent\Model); // false

Please feel free to use https://github.com/designmynight/laravel-mongodb-passport for passport support with https://github.com/jenssegers/laravel-mongodb

I just created a console command to fix the passport vendor files. Just run php artisan fix:passport.
It is available here: https://github.com/sadnub/laravel-mongodb-passport-fix


AttributeError: 'OpenAIEmbeddings' object has no attribute 'deployment'

get this error AttributeError: 'OpenAIEmbeddings' object has no attribute 'deployment' when deploying LangChain to DigitalOcean - however I don't get it locally.
It seems rather odd, as when going through the source code, OpenAIEmbeddings indeed seem to have a 'deployment' attribute. What could cause this?

In my experience, the problem has occurred since version 0.0.145. I do not know the cause. You can do a downgrade to version 0.0.144.

Getting this error after downgrading: TypeError: IndexFlat.search() missing 3 required positional arguments: 'k', 'distances', and 'labels'
Seems to be a regression issue

@gullerg
The problem arises from this PR (specifically this line)
The deployment has a default value though, so if you create a new object from it, it should have no problems.
Unless, you have saved the object created with an older version of LangChain in a file or something, and loaded it back with a newer version. That way, the deployment field does not even exist and you get this error.

Getting this error after downgrading: TypeError: IndexFlat.search() missing 3 required positional arguments: 'k', 'distances', and 'labels'
Seems to be a regression issue

I'm guessing the fix is downgrading to 0.0.144?

@gullerg The problem arises from this PR (specifically this line)
The deployment has a default value though, so if you create a new object from it, it should have no problems.
Unless, you have saved the object created with an older version of LangChain in a file or something, and loaded it back with a newer version. That way, the deployment field does not even exist and you get this error.

Thank you for the explanation. But may I ask if there is any way to update the old version files without re-run all these embeddings process?

Getting this error after downgrading: TypeError: IndexFlat.search() missing 3 required positional arguments: 'k', 'distances', and 'labels'
Seems to be a regression issue

I'm guessing the fix is downgrading to 0.0.144?

I solved this issue in my fork.

uninstall langchain pip uninstall -y langchain

reinstall langchain pip install git+https://github.com/Laisky/langchain.git@c5505ed3

add an new environment OPENAI_EMBEDDINGS_DEPLOYMENT, this is your azure deployment name of embeddings model.

# -------------------------------------
# azure
# -------------------------------------
os.environ["OPENAI_API_TYPE"] = "azure"
os.environ["OPENAI_API_KEY"] = settings.OPENAI_AZURE_TOKEN
os.environ["OPENAI_API_BASE"] = settings.OPENAI_AZURE_API
os.environ["OPENAI_API_VERSION"] = "2023-05-15"
os.environ["OPENAI_EMBEDDINGS_DEPLOYMENT"] = "embedding"
# -------------------------------------

done


THRIFT-3801: Fix exception with nodejs multiplexer

THRIFT-3801 - Node Thrift client throws exception with multiplexer and responses that are bigger than a single buffer
Supercedes https://github.com/apache/thrift/pull/1063
Supercedes https://github.com/apache/thrift/pull/773
Just want a clean CI build before merging.

The only build failure is unrelated:
https://issues.apache.org/jira/browse/THRIFT-4103
I am going to merge this.


Rename repo to ui not zui?

We should maybe rename the repo to match the npm package name, WDYT?

Done


Screenshots are beneficial

This (and other examples) could be greatly improved by adding a screenshot example. I shouldn't have to download from GitHub just to see what the code is going to give me.

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

ID: 4bd0892f-7da6-17f8-efa2-3127f3597042
Version Independent ID: e0b27f87-e253-738f-569f-e854094f1471
Content: How to: Create a Custom View Mode for a ListView
Content Source: docs/framework/wpf/controls/how-to-create-a-custom-view-mode-for-a-listview.md
Product: dotnet-framework
GitHub Login: @dotnet-bot
Microsoft Alias: dotnetcontent

Thank you for opening this issue. I'll add it to the backlog. Back-filling screenshots is not a high priority for us right now. You can always submit the fix yourself by editing the original article. Click on the Content Source link at the bottom of your original comment. To learn how to edit, see the Editing files in a repository article from GitHub.
Thanks again!

Also added this to our community project, in case someone is interested to help out with this issue.

Hi @mairaw,
Will wok on it.
Regards,
Santosh


Firefox - Caret invisible

Hey,
While using your package, we struggled with some strange error.  When you focus input on Firefox, you can't see caret. I've fixed it and made a pull request. Would you be able to merge it? #233
Best Regards,
Mateusz

@crotoan Thanks! I'll deliver a patch tommorow.


'build-docs' when following spaceflights tutorial results in error; ResolutionImpossible

Description
I was following along the tutorial on your website and installed the already preconfigured spaceflights tutorial. When I want to build the documentation an error occurs.
Context
How has this bug affected you? What were you trying to accomplish?
Steps to Reproduce

Follow the spaceflights tutorial.
https://kedro.readthedocs.io/en/stable/03_tutorial/05_package_a_project.html => kedro build-docs

Expected Result
I expect the dependencies to not result in an error when following the official documentation.
Actual Result
ERROR: Cannot install kedro-tutorial[docs]==0.1 because these package versions have conflicting dependencies.

The conflict is caused by:
    kedro-tutorial[docs] 0.1 depends on ipykernel==6.5.0
    kedro-tutorial[docs] 0.1 depends on ipykernel~=5.3

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
WARNING: You are using pip version 21.2; however, version 21.3.1 is available.
You should consider upgrading via the '/home/fantasticle/myproject/.myvenv/bin/python -m pip install --upgrade pip' command.

Your Environment

Ubuntu 20.04 server edition, 16GB RAM and 4 cores, hosted VM
Python 3.8 running in venv
kedro 0.17.5

Hello @fantasticle, thanks very much for the report and sorry this isn't working. Please can you go into your setup.py file and find the lines that look like this?
extras_require={
        "docs": [
            ...
        ]

and tell me what's in there?
If you have ipykernel~=5.3" then trying changing that to ipykernel>=5.3, <7.0 and re-running the build-docs command.


This issue after DBeaver 24.2.

Description
The dump database Maria dont work to restore database after.
DBeaver Version
24.2
Operating System
Windows 10
Database and driver
Maria DB
Steps to reproduce
No response
Additional context
No response

https://github.com/dbeaver/dbeaver/issues/35428

Thanks for the bug report.
This is a duplicate of #35421. Please track the progress on the issue there.