[Accessibility] Accessibility feedback

In the official Bootstrap 4  all the components written in JQuery are fully accessible.
https://getbootstrap.com/docs/4.0/getting-started/accessibility/
But in this library, most components are not accessible at all. Does this library totally ignore the accessibility?
Actually most big companies like us Bank, we take accessibility very seriously when we choose a third part library.
We really hope the author of this library can take accessibility seriously like React-Bootstrap.
https://github.com/react-bootstrap/react-bootstrap/wiki#100-roadmap (See Accessibility section)

Yes, this library is 508 compliant as much as bootstrap itself is. We have keyboard navigation/control of dropdowns and such, provide aria-* were applicable, and allow the user of the library to add their own attributes to all of the components (such as when tying a dropdownmenu to it's label via aria-labelledby. Since we do not generate IDs, the user would need to provide that).
No library is perfect, and as you can see other issues have been opened about a11y with specific components and those issues have been resolved. If you have specific conerns, please list them here or in individual issues so that they can be addressed.

Take modal dialog for example (https://getbootstrap.com/docs/4.0/components/modal/):

Modal container has role = dialog
Modal content has role = document
Modal must be focused when it is opened
Tab and Shift+Tab do not move focus outside modal
When modal closes, focus returns to the element that had focus before the dialog was invoked.
Keyboard interaction Tab/Shift +Tab: move focus to the next/previous focusable element.
Similar to other components like menu, tooltip, accordion, tabs and etc. Actually all the accessibility implementation for those components can be found in Bootstrap 4 official website.

Modal container has a default role of "dialog" but it is can overridden by providing you own role on Modal.
Yes, modal content has a role of "document" and that role cannot be overridden, is that the issue?
The Modal is focused when it is opened, you can even opt out of this by provided autoFocus={false} in case you want to focus on something within the modal (like an input) yourself.
Modal focus is an open issue #310, but even bootstrap's focus trap has a major a11y problem as it traps the focus too well, the keyboard user cannot tab to get to the browser's chrome. It completely traps the user on the page. This needs to be solved first. The only worse than not having an a11y feature is having a bad one.
This is related to 4, but probably could be it's ticket.
This is how the browser works. Use the right tabindex values or do not use them at all and the browser will tab to the next and previous focusable element automatically. You should also order your components element logically.

So 4 and 5 are the only issues, 4 is being tracked, but event bootstrap has a11y issues with it's implementation. 5 is related (and would probably be fixed at the same time), but can be it's own issue.

Tooltips
https://getbootstrap.com/docs/4.0/components/tooltips/

missing role="tooltip" to the tooltip container
missing aria-describeby when it is open
Popover
https://getbootstrap.com/docs/4.0/components/popovers/
missing role="tooltip" to the popover container
missing aria-describeby when it is open
Tabs
https://getbootstrap.com/docs/4.0/components/navs/
missing role="tablist" to the ul
missing role="tab" to the li
Collapse
https://getbootstrap.com/docs/4.0/components/collapse/
missing aria-expanded and aria-controls for the toggle button
missing id for collapse container
Radio buttons and checkbox buttons
https://getbootstrap.com/docs/4.0/components/buttons/#button-plugin
semantically all radio buttons should be native radio input eg:

<label class="btn btn-secondary active">
    <input type="radio" name="options" id="option1" autocomplete="off" checked=""> Radio 1 (preselected)
  </label>

semantically all checkbox buttons should native checkbox eg:

<label class="btn btn-secondary">
    <input type="checkbox" checked="" autocomplete="off"> Checkbox 1 (pre-checked)
  </label>

Here is the question I asked on Bootstrap 4 github page regarding their accessibility standard:
https://github.com/twbs/bootstrap/issues/22406
You can see the reply from @patrickhlauke:
we strive towards making interactive controls/widgets expose all the correct roles/values/state properties (to satisfy, say, 4.1.2), to make things works with keyboard (2.1.1).

Actually most Jquery components they build are accessible for both keyboard and screen reader users and also meet WCAG 2.0 AA/AAA standard.
I think it is better to implement the same accessibility behavior with their JQuery components when we create React Bootstrap 4 components, because Accessibility is also a very important feature of Bootstrap 4.

I'd like to work on this.

@gergely-nagy go for it

Further issues: make sure you're not adding extraneous semantic HTML elements when using these components. For example, <CardTitle> has a default tag of h4, meaning that the "default" card examples have lots of extra headings. This interferes with navigation on Screen Readers. Instead, these components should have default tags that are not semantically loaded (e.g., span).

I'm currently having some issues with the navbar.  The tab key / arrow keys for dropdowns work as expected.  However in all the examples the tab button will 'skip' all the links inside the dropdown when it's closed.  For me, it tabs through all the links inside the dropdown regardless if the dropdown is open.
How do i fix this!?  I just want it to work like the examples.  I've updated all my packages to the latest and double checked that I have all the classnames the example has.  Not sure where to go from here....
@TheSharpieOne @changLiuUNSW any suggestions?  The boss is breathing down my neck for this one...

@mackbrowne Are you able to post code or create a demo showcasing this (https://stackblitz.com/edit/reactstrap-v6?file=Example.js)

@TheSharpieOne and anyone else, just reporting back.  I'm using animation to open/close the dropdown menu.
I found this snippet.  it ended up being the issue.
display: block

on the DropdownMenu component, for some reason breaks the tabbing on the navbar, no idea why but that was the issue.

That snippet is for bootstrap v3, I may not be compatible with bootstrap v4 which is why you get that issue

Came here after I noticed the Accordion (collapse) does not have Bootstraps aria-expanded controls.
https://getbootstrap.com/docs/4.0/components/collapse/#accessibility
Has there been a fix for this?

@anevaude I opened #1627 to track that effort.

@anevaude I opened #1627 to track that effort.

Oh awesome, thanks! I'll follow that.


[Bug]: failed to Create new Chunk in database

Is there an existing issue for the same bug?

[X] I have checked the existing issues.

Branch name
0.7
Commit ID
tonightmare
Other environment information
Linux Ubuntu 22.04 with docker deplyment

Actual behavior
when I tried to Create new Chunk in database, below error message shows that embedding model is not authorized...
please hlep check what cause this problem ?

Expected behavior
I just need to manually add chunk information to improve my RAG search result.
Steps to reproduce
I tried 3 different embedding module, all meet such problem.

Additional information
No response

also when I try to add keyword to existing chunk, it also shows the same error message.

0.7.0 has that problem.
I suggest you  to  use dev version.

the bug can be reproduced using dev version, because the current embedding module is not user configured at knowledgebase. It use the global embedding module, i fixed the bug at the upcate scene： https://github.com/infiniflow/ragflow/pull/1163


facets: mobile ui

This is half baked, but I'm thinking something like a drawer that you can pull out, then you can swipe left/right to see facet counts.
Maybe you get a preview of the data with a scrim that obscures it unless you click?

Sort of related: #40 makes it possible to see the column options as a modal.
It might be neat if the modal also proactively fetched the facet(s) and showed you their values. You could swipe left/right to pan through the facets.
This ticket is about the static display of facets, but perhaps on mobile the real thing is being able to quickly preview?

Not going to work on this anytime soon, so closing


Fix test_reference_implicit_with_code_inlinehilite_python

Fix the test with the latest pymdownx

Ah if this needs to support multiple versions we might have to somehow make it conditional

Thanks! We can simply dev-depend on a recent enough pymdownx version :slightly_smiling_face: Asserting the output in our own tests suite shouldn't affect actual features or users, which can use older pymdownx versions.


Add support for swipe actions to the message list screen

The default actions are currently:

Swipe right: Toggle selection
Swipe left: Mark as read/unread

https://user-images.githubusercontent.com/218061/193022916-7e7ec151-2461-49a4-9d6c-65c5a1f7116c.mp4
Closes #1426

The colors need some tweaking.

Are colors the only blocker?

Are colors the only blocker?

For a first version we can ship in a beta, yes.
Things we want to add in later betas:

Optional text with the name of the action next to the icon
Deselect item while swipe is in progress, restore selection state afterwards (if the action doesn't remove the message)
Allow dragging a list item a small distance when swiping in that direction is disabled (or the action isn't supported on that message); reveal a dark gray background indicating the action isn't available
For actions that don't remove the list item, don't animate the view all the way out, then back. Stop somewhere in the middle, then animate back.
Lots of fixes regarding animations


FormAtomValues should accept FormAtom instead of FormAtomFields

Describe the bug
The naming of FormAtomValues indicates that given form atom, it will return the form values.
The problem is it accepts form fields, not form object thus making it confusing.
To Reproduce

const userForm = formAtom({
  first: fieldAtom({
    value: "",
  }),
  last: fieldAtom({
    value: "",
  }),
});

type Values = FormAtomValues<typeof userForm> // ERR!
// The helper type in reality accepts `FormAtomFields`
// and thus should be named `FormAtomFieldsValues`

// Currently custom helper is needed!
type FormValues<Form extends FormAtom<any>> = Form extends FormAtom<
  infer Fields
>
  ? FormAtomValues<Fields>
  : never;

type Values = FormValues<typeof userForm>

Expected behavior

the call to FormAtomValues should work when given FormAtom.
The existent FormAtomValues can be renamed to FormFieldsValues or FieldsValues or FieldAtomsValues ...

Why this makes sense

Clear definition of form & fields

fields is object containing the fieldAtoms
form is return value of formAtom which accepts the fields

Simple forms can be constructed without having a separate variable for the fields. Currently I often move the argument back and forth which is not good.
This would be consistent with the hook useFormAtomValues which takes formAtom as argument, not form fields.

Additional context

docs must be updated

Here's the documentation on the API updates:
https://github.com/jaredLunde/form-atoms/blob/acbee934097d90e27a69825dd907e9428a80fce0/README.md#formvalues
Would love your feedback! You've been super insightful and instrumental in improving this library.

I've updated my calls to the new & improved ones and I love it 😍
Thank you for your work.


Docker Image mongo:3.2 won't start because of Permission denied

Following output is displayed if container is started:
chown: changing ownership of '/dev/stdout': Permission denied
chown: changing ownership of '/dev/stderr': Permission denied
Please fix this in docker-entrypoint.sh

docker version

Client:
Version:      17.03.0-ce
API version:  1.26
Go version:   go1.7.5
Git commit:   3a232c8
Built:        Tue Feb 28 08:10:07 2017
OS/Arch:      linux/amd64

Server:
Version:      17.03.0-ce
API version:  1.26 (minimum version 1.12)
Go version:   go1.7.5
Git commit:   3a232c8
Built:        Tue Feb 28 08:10:07 2017
OS/Arch:      linux/amd64
Experimental: false

docker image inspect mongo
[
    {
        "Id": "sha256:ffae984aa30cfde62ca06d127b65b5d37252b89ad407d0c2c632212d52ba58ca",
        "RepoTags": [
            "mongo:latest"
        ],
        "RepoDigests": [
            "mongo@sha256:e5a4f6caf4fb6773e41292b56308ed427692add67ffd7c655fdf11a78a72df4e"
        ],
        "Parent": "",
        "Comment": "",
        "Created": "2017-03-21T18:27:48.94406564Z",
        "Container": "2f4eef809837f7184b072d3536a2f71c16f41dcfb674fc52a1ef406de6a41313",
        "ContainerConfig": {
            "Hostname": "15ebb19d5ddb",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "27017/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "GOSU_VERSION=1.7",
                "GPG_KEYS=0C49F3730359A14518585931BC711F9BA15703C6",
                "MONGO_MAJOR=3.4",
                "MONGO_VERSION=3.4.2",
                "MONGO_PACKAGE=mongodb-org"
            ],
            "Cmd": [
                "/bin/sh",
                "-c",
                "#(nop) ",
                "CMD [\"mongod\"]"
            ],
            "ArgsEscaped": true,
            "Image": "sha256:70f490c1f75d8b83fa78563bfcff681c16d77553ba0d4780c62a9008b2fee1b3",
            "Volumes": {
                "/data/configdb": {},
                "/data/db": {}
            },
            "WorkingDir": "",
            "Entrypoint": [
                "docker-entrypoint.sh"
            ],
            "OnBuild": [],
            "Labels": {}
        },
        "DockerVersion": "1.12.6",
        "Author": "",
        "Config": {
            "Hostname": "15ebb19d5ddb",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "27017/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "GOSU_VERSION=1.7",
                "GPG_KEYS=0C49F3730359A14518585931BC711F9BA15703C6",
                "MONGO_MAJOR=3.4",
                "MONGO_VERSION=3.4.2",
                "MONGO_PACKAGE=mongodb-org"
            ],
            "Cmd": [
                "mongod"
            ],
            "ArgsEscaped": true,
            "Image": "sha256:70f490c1f75d8b83fa78563bfcff681c16d77553ba0d4780c62a9008b2fee1b3",
            "Volumes": {
                "/data/configdb": {},
                "/data/db": {}
            },
            "WorkingDir": "",
            "Entrypoint": [
                "docker-entrypoint.sh"
            ],
            "OnBuild": [],
            "Labels": {}
        },
        "Architecture": "amd64",
        "Os": "linux",
        "Size": 358964731,
        "VirtualSize": 358964731,
        "GraphDriver": {
            "Name": "overlay",
            "Data": {
                "RootDir": "/var/lib/docker/overlay/a737e1148a57aed1362100567229e2ed1ad29dacbee93c84dceed1838fed64fc/root"
            }
        },
        "RootFS": {
            "Type": "layers",
            "Layers": [
                "sha256:483da7fbbc1a693d269f42733de4b60db96a2157be65a100c0a0cfe002327ecc",
                "sha256:144cfca37e38cadb4a046b24d4472bd2ca9f996e183fd97e6975428858f37dc0",
                "sha256:92c7f3c3f729bdcc7226e10afe036607b5a6f9d2617cf329e604823d5d761b0e",
                "sha256:0f58e2d21079e1914a74c107af538f2335935671756d237d75c182eb7ee3b360",
                "sha256:29f5883477dbf074ea34ad109bf5819de47c53e64f0ab238d180b03c997365d3",
                "sha256:a5fe28d6e759f4cce422f697978a7feab82c0027138f9a20098ae58d924b9b2b",
                "sha256:2febb6f8ed4e89df5427ca30bd49c4538df865e15ed2e6bf6a1182c2dc69289f",
                "sha256:0c1029e243e98b3e5547fb8a01e27f04336b14fc7fe23bd078a581a9b6a2b4e0",
                "sha256:8b59e97d607e5d01fb5624cc3ac136f25b4a45c462c167b0b4220532b2c903bb",
                "sha256:6a4ae0bc9ea79d78c2e9980a3956bf5ebc5095831f7b3fb1a2bc7b7e827b4163",
                "sha256:96e178a2cc3f4b1295cf0b878ceda5526590066c17b76bd61c04ab8d9ea5746d"
            ]
        }
    }
]

But not here.
cat /etc/upstream-release/lsb-release

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial

uname -a

Linux laptop 4.4.0-67-generic #88-Ubuntu SMP Wed Mar 8 16:34:45 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

docker version

Client:
Version:      17.03.0-ce
API version:  1.26
Go version:   go1.7.5
Git commit:   60ccb22
Built:        Thu Feb 23 11:02:43 2017
OS/Arch:      linux/amd64
Server:
Version:      17.03.0-ce
API version:  1.26 (minimum version 1.12)
Go version:   go1.7.5
Git commit:   60ccb22
Built:        Thu Feb 23 11:02:43 2017
OS/Arch:      linux/amd64
Experimental: false

docker image inspect mongo
[
    {
        "Id": "sha256:ffae984aa30cfde62ca06d127b65b5d37252b89ad407d0c2c632212d52ba58ca",
        "RepoTags": [
            "mongo:latest"
        ],
        "RepoDigests": [
            "mongo@sha256:e5a4f6caf4fb6773e41292b56308ed427692add67ffd7c655fdf11a78a72df4e"
        ],
        "Parent": "",
        "Comment": "",
        "Created": "2017-03-21T18:27:48.94406564Z",
        "Container": "2f4eef809837f7184b072d3536a2f71c16f41dcfb674fc52a1ef406de6a41313",
        "ContainerConfig": {
            "Hostname": "15ebb19d5ddb",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "27017/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "GOSU_VERSION=1.7",
                "GPG_KEYS=0C49F3730359A14518585931BC711F9BA15703C6",
                "MONGO_MAJOR=3.4",
                "MONGO_VERSION=3.4.2",
                "MONGO_PACKAGE=mongodb-org"
            ],
            "Cmd": [
                "/bin/sh",
                "-c",
                "#(nop) ",
                "CMD [\"mongod\"]"
            ],
            "ArgsEscaped": true,
            "Image": "sha256:70f490c1f75d8b83fa78563bfcff681c16d77553ba0d4780c62a9008b2fee1b3",
            "Volumes": {
                "/data/configdb": {},
                "/data/db": {}
            },
            "WorkingDir": "",
            "Entrypoint": [
                "docker-entrypoint.sh"
            ],
            "OnBuild": [],
            "Labels": {}
        },
        "DockerVersion": "1.12.6",
        "Author": "",
        "Config": {
            "Hostname": "15ebb19d5ddb",
            "Domainname": "",
            "User": "",
            "AttachStdin": false,
            "AttachStdout": false,
            "AttachStderr": false,
            "ExposedPorts": {
                "27017/tcp": {}
            },
            "Tty": false,
            "OpenStdin": false,
            "StdinOnce": false,
            "Env": [
                "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
                "GOSU_VERSION=1.7",
                "GPG_KEYS=0C49F3730359A14518585931BC711F9BA15703C6",
                "MONGO_MAJOR=3.4",
                "MONGO_VERSION=3.4.2",
                "MONGO_PACKAGE=mongodb-org"
            ],
            "Cmd": [
                "mongod"
            ],
            "ArgsEscaped": true,
            "Image": "sha256:70f490c1f75d8b83fa78563bfcff681c16d77553ba0d4780c62a9008b2fee1b3",
            "Volumes": {
                "/data/configdb": {},
                "/data/db": {}
            },
            "WorkingDir": "",
            "Entrypoint": [
                "docker-entrypoint.sh"
            ],
            "OnBuild": [],
            "Labels": {}
        },
        "Architecture": "amd64",
        "Os": "linux",
        "Size": 358986787,
        "VirtualSize": 358986787,
        "GraphDriver": {
            "Name": "aufs",
            "Data": null
        },
        "RootFS": {
            "Type": "layers",
            "Layers": [
                "sha256:483da7fbbc1a693d269f42733de4b60db96a2157be65a100c0a0cfe002327ecc",
                "sha256:144cfca37e38cadb4a046b24d4472bd2ca9f996e183fd97e6975428858f37dc0",
                "sha256:92c7f3c3f729bdcc7226e10afe036607b5a6f9d2617cf329e604823d5d761b0e",
                "sha256:0f58e2d21079e1914a74c107af538f2335935671756d237d75c182eb7ee3b360",
                "sha256:29f5883477dbf074ea34ad109bf5819de47c53e64f0ab238d180b03c997365d3",
                "sha256:a5fe28d6e759f4cce422f697978a7feab82c0027138f9a20098ae58d924b9b2b",
                "sha256:2febb6f8ed4e89df5427ca30bd49c4538df865e15ed2e6bf6a1182c2dc69289f",
                "sha256:0c1029e243e98b3e5547fb8a01e27f04336b14fc7fe23bd078a581a9b6a2b4e0",
                "sha256:8b59e97d607e5d01fb5624cc3ac136f25b4a45c462c167b0b4220532b2c903bb",
                "sha256:6a4ae0bc9ea79d78c2e9980a3956bf5ebc5095831f7b3fb1a2bc7b7e827b4163",
                "sha256:96e178a2cc3f4b1295cf0b878ceda5526590066c17b76bd61c04ab8d9ea5746d"
            ]
        }
    }
]

Workaround
docker run --name some-mongo mongo bash -c "echo 1 && mongod --auth"
Bug start from 3.4/docker-entrypoint.sh

This is a duplicate of https://github.com/docker-library/mongo/issues/149, fixed in https://github.com/docker-library/mongo/issues/151.  See https://github.com/docker-library/official-images/pull/2780 for progress on getting this image updated on the Hub (which will happen before EOD today). :+1:

Actually I pulled the new image and get this error in the logs:
chown: changing ownership of '/proc/1/fd/1': Permission denied
chown: changing ownership of '/proc/1/fd/2': Permission denied
about to fork child process, waiting until server is ready for connections.
forked process: 18
ERROR: child process failed, exited with error number 1

@stemau98 can you please try running the image with --user mongodb and paste the full log? (so that the daemon it starts can actually write to stdout/stderr and we can see what the real error is)
ie:
$ docker run -it --rm --user mongodb mongo:3.4
about to fork child process, waiting until server is ready for connections.
forked process: 12
2017-03-24T20:26:09.652+0000 I CONTROL  [initandlisten] MongoDB starting : pid=12 port=27017 dbpath=/data/db 64-bit host=8ca88681e10a
2017-03-24T20:26:09.653+0000 I CONTROL  [initandlisten] db version v3.4.2
2017-03-24T20:26:09.653+0000 I CONTROL  [initandlisten] git version: 3f76e40c105fc223b3e5aac3e20dcd026b83b38b
2017-03-24T20:26:09.653+0000 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.1t  3 May 2016
2017-03-24T20:26:09.653+0000 I CONTROL  [initandlisten] allocator: tcmalloc
2017-03-24T20:26:09.653+0000 I CONTROL  [initandlisten] modules: none
2017-03-24T20:26:09.653+0000 I CONTROL  [initandlisten] build environment:
2017-03-24T20:26:09.653+0000 I CONTROL  [initandlisten]     distmod: debian81
2017-03-24T20:26:09.653+0000 I CONTROL  [initandlisten]     distarch: x86_64
2017-03-24T20:26:09.653+0000 I CONTROL  [initandlisten]     target_arch: x86_64
2017-03-24T20:26:09.653+0000 I CONTROL  [initandlisten] options: { net: { bindIp: "<IP_ADDRESS>" }, processManagement: { fork: true, pidFilePath: "/tmp/tmp.Lh96uZj1Ee" }, systemLog: { destination: "file", path: "/proc/1/fd/1" } }
2017-03-24T20:26:09.663+0000 I STORAGE  [initandlisten]
2017-03-24T20:26:09.663+0000 I STORAGE  [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
2017-03-24T20:26:09.663+0000 I STORAGE  [initandlisten] **          See http://dochub.mongodb.org/core/prodnotes-filesystem
2017-03-24T20:26:09.663+0000 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=15562M,session_max=20000,eviction=(threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
2017-03-24T20:26:09.994+0000 I CONTROL  [initandlisten]
2017-03-24T20:26:09.994+0000 I CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
2017-03-24T20:26:09.994+0000 I CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
2017-03-24T20:26:09.994+0000 I CONTROL  [initandlisten]
2017-03-24T20:26:10.066+0000 I FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
2017-03-24T20:26:10.179+0000 I INDEX    [initandlisten] build index on: admin.system.version properties: { v: 2, key: { version: 1 }, name: "incompatible_with_version_32", ns: "admin.system.version" }
2017-03-24T20:26:10.180+0000 I INDEX    [initandlisten] 	 building index using bulk method; build may temporarily use up to 500 megabytes of RAM
2017-03-24T20:26:10.181+0000 I INDEX    [initandlisten] build index done.  scanned 0 total records. 0 secs
2017-03-24T20:26:10.182+0000 I COMMAND  [initandlisten] setting featureCompatibilityVersion to 3.4
2017-03-24T20:26:10.183+0000 I NETWORK  [thread1] waiting for connections on port 27017
child process started successfully, parent exiting
2017-03-24T20:26:10.254+0000 I NETWORK  [thread1] connection accepted from <IP_ADDRESS>:59408 #1 (1 connection now open)
2017-03-24T20:26:10.254+0000 I NETWORK  [conn1] received client metadata from <IP_ADDRESS>:59408 conn1: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "3.4.2" }, os: { type: "Linux", name: "PRETTY_NAME="Debian GNU/Linux 8 (jessie)"", architecture: "x86_64", version: "Kernel 4.4.52-gentoo" } }
2017-03-24T20:26:10.257+0000 I -        [conn1] end connection <IP_ADDRESS>:59408 (1 connection now open)

/usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*

killing process with pid: 12
2017-03-24T20:26:10.284+0000 I CONTROL  [signalProcessingThread] got signal 15 (Terminated), will terminate after current cmd ends
2017-03-24T20:26:10.284+0000 I NETWORK  [signalProcessingThread] shutdown: going to close listening sockets...
2017-03-24T20:26:10.284+0000 I NETWORK  [signalProcessingThread] closing listening socket: 7
2017-03-24T20:26:10.284+0000 I NETWORK  [signalProcessingThread] closing listening socket: 8
2017-03-24T20:26:10.284+0000 I NETWORK  [signalProcessingThread] removing socket file: /tmp/mongodb-27017.sock
2017-03-24T20:26:10.285+0000 I NETWORK  [signalProcessingThread] shutdown: going to flush diaglog...
2017-03-24T20:26:10.285+0000 I FTDC     [signalProcessingThread] Shutting down full-time diagnostic data capture
2017-03-24T20:26:10.285+0000 I STORAGE  [signalProcessingThread] WiredTigerKVEngine shutting down
2017-03-24T20:26:10.616+0000 I STORAGE  [signalProcessingThread] shutdown: removing fs lock...
2017-03-24T20:26:10.617+0000 I CONTROL  [signalProcessingThread] now exiting
2017-03-24T20:26:10.617+0000 I CONTROL  [signalProcessingThread] shutting down with code:0

MongoDB init process complete; ready for start up.

2017-03-24T20:26:11.313+0000 I CONTROL  [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=8ca88681e10a
2017-03-24T20:26:11.313+0000 I CONTROL  [initandlisten] db version v3.4.2
2017-03-24T20:26:11.313+0000 I CONTROL  [initandlisten] git version: 3f76e40c105fc223b3e5aac3e20dcd026b83b38b
2017-03-24T20:26:11.313+0000 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.1t  3 May 2016
2017-03-24T20:26:11.313+0000 I CONTROL  [initandlisten] allocator: tcmalloc
2017-03-24T20:26:11.313+0000 I CONTROL  [initandlisten] modules: none
2017-03-24T20:26:11.313+0000 I CONTROL  [initandlisten] build environment:
2017-03-24T20:26:11.313+0000 I CONTROL  [initandlisten]     distmod: debian81
2017-03-24T20:26:11.313+0000 I CONTROL  [initandlisten]     distarch: x86_64
2017-03-24T20:26:11.313+0000 I CONTROL  [initandlisten]     target_arch: x86_64
2017-03-24T20:26:11.313+0000 I CONTROL  [initandlisten] options: {}
2017-03-24T20:26:11.319+0000 I -        [initandlisten] Detected data files in /data/db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
2017-03-24T20:26:11.319+0000 I STORAGE  [initandlisten]
2017-03-24T20:26:11.319+0000 I STORAGE  [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
2017-03-24T20:26:11.319+0000 I STORAGE  [initandlisten] **          See http://dochub.mongodb.org/core/prodnotes-filesystem
2017-03-24T20:26:11.319+0000 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=15562M,session_max=20000,eviction=(threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
2017-03-24T20:26:12.256+0000 I CONTROL  [initandlisten]
2017-03-24T20:26:12.256+0000 I CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
2017-03-24T20:26:12.256+0000 I CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
2017-03-24T20:26:12.256+0000 I CONTROL  [initandlisten]
2017-03-24T20:26:12.259+0000 I FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
2017-03-24T20:26:12.260+0000 I NETWORK  [thread1] waiting for connections on port 27017

@tianon Starting the container with --user mongodb solved the problem. It would be a good idea to add this to the docs on Docker Hub.
Thx for your support!

Hrm... I'm hitting this even when setting --user mongodb:
# docker run -it --rm --user mongodb mongo:3.4
about to fork child process, waiting until server is ready for connections.
forked process: 10
ERROR: child process failed, exited with error number 1

(Docker CE 17.03.1 and 17.04 on an Ubuntu 14.04 system (64-bit, with kernel 4.4.0-72))

yep same issue here when pulling mongo:3.2 or 3.4

@jonathonf me too

about to fork child process, waiting until server is ready for connections.
forked process: 13
ERROR: child process failed, exited with error number 1

Ubuntu 14.04 3.13.0-32-generic
Docker version 1.12.6, build 78d1802
docker image mongo 3.4

same issue when pulling latest image
here is the logs without mongodb user:
docker run --rm --name fail-mongo mongo
chown: cannot dereference '/proc/1/fd/1': Permission denied
chown: cannot dereference '/proc/1/fd/2': Permission denied
about to fork child process, waiting until server is ready for connections.
forked process: 17
ERROR: child process failed, exited with error number 1

and here is the logs with mongodb user:
docker run -u mongodb --rm --name success-mongo mongo
about to fork child process, waiting until server is ready for connections.
forked process: 11
2017-04-13T04:02:54.151+0000 I CONTROL  [initandlisten] MongoDB starting : pid=11 port=27017 dbpath=/data/db 64-bit host=4998c588ab8e
2017-04-13T04:02:54.162+0000 I CONTROL  [initandlisten] db version v3.4.3
2017-04-13T04:02:54.162+0000 I CONTROL  [initandlisten] git version: f07437fb5a6cca07c10bafa78365456eb1d6d5e1
2017-04-13T04:02:54.162+0000 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.1t  3 May 2016
2017-04-13T04:02:54.162+0000 I CONTROL  [initandlisten] allocator: tcmalloc
2017-04-13T04:02:54.162+0000 I CONTROL  [initandlisten] modules: none
2017-04-13T04:02:54.162+0000 I CONTROL  [initandlisten] build environment:
2017-04-13T04:02:54.162+0000 I CONTROL  [initandlisten]     distmod: debian81
2017-04-13T04:02:54.162+0000 I CONTROL  [initandlisten]     distarch: x86_64
2017-04-13T04:02:54.162+0000 I CONTROL  [initandlisten]     target_arch: x86_64
2017-04-13T04:02:54.162+0000 I CONTROL  [initandlisten] options: { net: { bindIp: "<IP_ADDRESS>", port: 27017, ssl: { mode: "disabled" } }, processManagement: { fork: true, pidFilePath: "/tmp/tmp.FvzqOLJOFh" }, systemLog: { destination: "file", path: "/proc/1/fd/1" } }
2017-04-13T04:02:54.167+0000 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=1384M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
2017-04-13T04:02:54.310+0000 I CONTROL  [initandlisten]
2017-04-13T04:02:54.310+0000 I CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
2017-04-13T04:02:54.310+0000 I CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
2017-04-13T04:02:54.310+0000 I CONTROL  [initandlisten]
2017-04-13T04:02:54.311+0000 I CONTROL  [initandlisten]
2017-04-13T04:02:54.311+0000 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
2017-04-13T04:02:54.311+0000 I CONTROL  [initandlisten] **        We suggest setting it to 'never'
2017-04-13T04:02:54.311+0000 I CONTROL  [initandlisten]
2017-04-13T04:02:54.311+0000 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
2017-04-13T04:02:54.311+0000 I CONTROL  [initandlisten] **        We suggest setting it to 'never'
2017-04-13T04:02:54.311+0000 I CONTROL  [initandlisten]
2017-04-13T04:02:54.362+0000 I FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
2017-04-13T04:02:54.416+0000 I INDEX    [initandlisten] build index on: admin.system.version properties: { v: 2, key: { version: 1 }, name: "incompatible_with_version_32", ns: "admin.system.version" }
2017-04-13T04:02:54.416+0000 I INDEX    [initandlisten] 	 building index using bulk method; build may temporarily use up to 500 megabytes of RAM
2017-04-13T04:02:54.421+0000 I INDEX    [initandlisten] build index done.  scanned 0 total records. 0 secs
2017-04-13T04:02:54.421+0000 I COMMAND  [initandlisten] setting featureCompatibilityVersion to 3.4
child process started successfully, parent exiting
2017-04-13T04:02:54.423+0000 I NETWORK  [thread1] waiting for connections on port 27017
2017-04-13T04:02:54.652+0000 I NETWORK  [thread1] connection accepted from <IP_ADDRESS>:58563 #1 (1 connection now open)
2017-04-13T04:02:54.652+0000 I NETWORK  [conn1] received client metadata from <IP_ADDRESS>:58563 conn1: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "3.4.3" }, os: { type: "Linux", name: "PRETTY_NAME="Debian GNU/Linux 8 (jessie)"", architecture: "x86_64", version: "Kernel 3.10.0-123.el7.x86_64" } }

/usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/*

2017-04-13T04:02:54.680+0000 I -        [conn1] end connection <IP_ADDRESS>:58563 (1 connection now open)
killing process with pid: 11
2017-04-13T04:02:54.689+0000 I CONTROL  [signalProcessingThread] got signal 15 (Terminated), will terminate after current cmd ends
2017-04-13T04:02:54.689+0000 I NETWORK  [signalProcessingThread] shutdown: going to close listening sockets...
2017-04-13T04:02:54.689+0000 I NETWORK  [signalProcessingThread] closing listening socket: 7
2017-04-13T04:02:54.689+0000 I NETWORK  [signalProcessingThread] closing listening socket: 8
2017-04-13T04:02:54.689+0000 I NETWORK  [signalProcessingThread] removing socket file: /tmp/mongodb-27017.sock
2017-04-13T04:02:54.689+0000 I NETWORK  [signalProcessingThread] shutdown: going to flush diaglog...
2017-04-13T04:02:54.689+0000 I FTDC     [signalProcessingThread] Shutting down full-time diagnostic data capture
2017-04-13T04:02:54.691+0000 I STORAGE  [signalProcessingThread] WiredTigerKVEngine shutting down
2017-04-13T04:02:54.882+0000 I STORAGE  [signalProcessingThread] shutdown: removing fs lock...
2017-04-13T04:02:54.883+0000 I CONTROL  [signalProcessingThread] now exiting
2017-04-13T04:02:54.883+0000 I CONTROL  [signalProcessingThread] shutting down with code:0

MongoDB init process complete; ready for start up.

2017-04-13T04:02:55.711+0000 I CONTROL  [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=4998c588ab8e
2017-04-13T04:02:55.711+0000 I CONTROL  [initandlisten] db version v3.4.3
2017-04-13T04:02:55.711+0000 I CONTROL  [initandlisten] git version: f07437fb5a6cca07c10bafa78365456eb1d6d5e1
2017-04-13T04:02:55.711+0000 I CONTROL  [initandlisten] OpenSSL version: OpenSSL 1.0.1t  3 May 2016
2017-04-13T04:02:55.711+0000 I CONTROL  [initandlisten] allocator: tcmalloc
2017-04-13T04:02:55.711+0000 I CONTROL  [initandlisten] modules: none
2017-04-13T04:02:55.711+0000 I CONTROL  [initandlisten] build environment:
2017-04-13T04:02:55.711+0000 I CONTROL  [initandlisten]     distmod: debian81
2017-04-13T04:02:55.711+0000 I CONTROL  [initandlisten]     distarch: x86_64
2017-04-13T04:02:55.711+0000 I CONTROL  [initandlisten]     target_arch: x86_64
2017-04-13T04:02:55.711+0000 I CONTROL  [initandlisten] options: {}
2017-04-13T04:02:55.715+0000 I -        [initandlisten] Detected data files in /data/db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
2017-04-13T04:02:55.715+0000 I STORAGE  [initandlisten] wiredtiger_open config: create,cache_size=1384M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
2017-04-13T04:02:56.291+0000 I CONTROL  [initandlisten]
2017-04-13T04:02:56.291+0000 I CONTROL  [initandlisten] ** WARNING: Access control is not enabled for the database.
2017-04-13T04:02:56.291+0000 I CONTROL  [initandlisten] **          Read and write access to data and configuration is unrestricted.
2017-04-13T04:02:56.291+0000 I CONTROL  [initandlisten]
2017-04-13T04:02:56.292+0000 I CONTROL  [initandlisten]
2017-04-13T04:02:56.292+0000 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/enabled is 'always'.
2017-04-13T04:02:56.292+0000 I CONTROL  [initandlisten] **        We suggest setting it to 'never'
2017-04-13T04:02:56.292+0000 I CONTROL  [initandlisten]
2017-04-13T04:02:56.292+0000 I CONTROL  [initandlisten] ** WARNING: /sys/kernel/mm/transparent_hugepage/defrag is 'always'.
2017-04-13T04:02:56.292+0000 I CONTROL  [initandlisten] **        We suggest setting it to 'never'
2017-04-13T04:02:56.292+0000 I CONTROL  [initandlisten]
2017-04-13T04:02:56.295+0000 I FTDC     [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
2017-04-13T04:02:56.296+0000 I NETWORK  [thread1] waiting for connections on port 27017

Same error today with the official installation procedure (https://hub.docker.com/_/mongo):
warning: initdb logs cannot write to '/proc/1/fd/1', so they are in '/data/db/docker-initdb.log' instead
about to fork child process, waiting until server is ready for connections.
forked process: 29
ERROR: child process failed, exited with 51
To see additional information in this output, start without the "--fork" option.

@gregfr, this issue is quite old and likely does not have the same cause, please open a new issue with more details and logs. For example: does it also fail while running with --user mongodb? what was your exact docker run line? Host information, docker version, or other information that will help us reproduce it?


Usage of axidma transfer functions

Hi!
I want to use your driver for a simple openCV application with a filter in hardware. For the image transfer between PL and PS I use a VDMA block with transmit and receive channel. The benchmark example works fine and I started to adapt your axidma_transfer example to send and receive a frame of my openCV software implementation. Using the axidma_twoway_transfer function (and VDMA looped back) I receive the correct matrix again. Using two seperate oneway transfers one after the other for transmit and receive I receive some corrupted lines between correct ones (Possibly the transmit is faster than the consuming of data at the input of VDMA?)
So after trying around a lot the last days I have a few questions.

Does the twoway transfer function directly put received data from the input buffer to the output buffer (And therefore is only for testing reasons and any HW filters in between would just be ignored)?
If so, is it the right approach to use oneway transfer for sending to PL, let the PL execute it's filters and then send it back to the PS using another oneway transfer?
How can I make sure that two seperate oneway transfers are in sync? And later on also with a custom IP block?
How do I correctly use blocking and non-blocking mode? I found out that if the transmit operation is in waiting mode it times out. And from the receiving operation I get corrupted lines no matter if I use blocking mode or not.
Or should I better get rid of this frame after frame idea and use the video transfer function you provide? (As far as I understood only that way I get a tlast signal after each line of the image, which could be important for my filter i can imagine)

I hope I was clear enough with my questions and thank you for your time!

I believe you're having a bit of a conceptual miunderstanding with how the hardware and the driver interact. My responses are inline below:

Does the twoway transfer function directly put received data from the input buffer to the output buffer (And therefore is only for testing reasons and any HW filters in between would just be ignored)?

The driver is not directly responsible for the transfer of any data. It merely acts as control and sets up an AXI (V)DMA transactiont. For the transmit, it initiates a CPU to FPGA transfer that goes out to the hardware. At the same time it also sets up an FPGA to CPU transfer that waits until data is ready from the hardware and accepts data. In both cases, the FPGA acts as the master in the transaction, so the hardware directly controls the data flow and contents.

If so, is it the right approach to use oneway transfer for sending to PL, let the PL execute it's filters and then send it back to the PS using another oneway transfer?

No, because of the answer to (1.). I think this is where some of the misunderstanding is coming from. The CPU and FPGA are asynchronous with respect to one another, and the control happens through the driver and the AXI (V)DMA IP.

How can I make sure that two seperate oneway transfers are in sync? And later on also with a custom IP block?

In short, you don't need to. As described in (1.), the FPGA and by extension your HW filters act as the master in the transaction, so they control when data is accepted from the CPU and sent back to the CPU. If the oneway transfers are data dependent, then they will implicitly be in-sync.

How do I correctly use blocking and non-blocking mode? I found out that if the transmit operation is in waiting mode it times out. And from the receiving operation I get corrupted lines no matter if I use blocking mode or not.

There's no "correct" way to use these per-se, it is dependent on the behavior you want to have. The transmit operation in wait mode will time out if it requires that data is sent back to the CPU, because the call with wait is blocking, so you cannot issue any additional transactions. For example, if you had the loopback example, and you did a blocking transmit transaction, this would also timeout, because it requires that a receive transaction is setup to receive the data being looped back to the CPU; there is a data dependency between the transmit and receive channels.

Or should I better get rid of this frame after frame idea and use the video transfer function you provide? (As far as I understood only that way I get a tlast signal after each line of the image, which could be important for my filter i can imagine)

This also very much depends on the application, If you find yourself continuously doing the exact same transactions, then you should probably utilize the cyclic/continous mode. This is especially true if the data you're transferring is really video data (e.g. out to a display or from a camera).
If you provide with more specifics, I can help you dig into this data corruption issue.

Thanks a lot for your answers! Especially, your hint in the first answer, that actually the hardware controls the data flow, got me on the right track to solve the issues and let me understand the whole procedure better.
The "corrupted" lines in the image I got back from the FPGA resulted from the frame settings within the trans structure (width, height, depth) that are hard coded in the axidma_rw_transfer function (I have seen your FIXME comments there). I adapted them to my resolution and pixel depth and now it also works fine with my custom filter. Regardless of a blocking or non-blocking receive transfer as it should be. I also understand now why there was no problem with the loopback design, as there was no hardware in between that required the correct control bits.
So thank you again for answering my really basic questions and your work on this understandable and easy to implement driver.

Ahh crap, sorry about that, I forgot about fixing that issue. If you use the axidma_video_transfer function, it will properly account for the parameters of the video stream.
I'll create a separate issue for that and get a fix up.

I've created an issue for this, any follow up discussion can happen there. I'm going to close this issue.


[examples] models_rlgl_solar_system crashes

While translating your samples for my own Nim wrapper, I found some strange problems with models_rlgl_solar_system.c
Say, I compiled rlgl.h to DLL with gcc -c -DBUILD_LIBTYPE_SHARED -DRLGL_STANDALONE -DRLGL_SUPPORT_TRACELOG -DRLGL_IMPLEMENTATION and linked my code to it. I guess it's supported, right ?
Now, there are 3 problems with aforementioned sample:

It crashes on first rlPushMatrix() (invalid memory access)
If I add, say rlMatrixMode(RL_PROJECTION) before it, it crashes on rlBegin(RL_TRIANGLES)
If I add rlglInit(screenWidth, screenHeight) before everything, it crashes on calling it.

So. What could be done ? Is given sample up-to-date ? Probably I missed something ?

@Guevara-chan I just tried it and it works ok on Windows desktop, but I just compiled the example, not created a dynamic library.
Note that raylib already includes all rlgl symbols so maybe there is some symbols conflicts id provided by rlgl.dll and raylib.dll... also note that your code should be compiled with -DUSE_LIBTYPE_SHARED when using rlgl.dll.

Note that raylib already includes all rlgl symbols

Wait, it does ? All better then: I guess, I will just link existing headers to libraylib instead of compiling up custom ones.

OK: all works now as intended. Many thanks !


Fuzz test convert and twins scenario

This is a new testing tool using google/gofuzz to create a random hotstuff.pb.go message, and uses functions in convert.go to create a message that will be used in a twins scenario test by replacing it with the first message sent from a node in the scenario test. Crashes accumulates over a series of tests with different random messages and gets output in an organized list after the test is run 1000 times.
made by Asbjørn Salhus and Magnus Brandsegg
cd fuzz
go test -run TestFuzz

Not ready to merge this yet or it will be mergeable in the future..., but I've cleaned up some of the code, in particular related to printing protobuf messages as Go struct literals and replaced some of the confusing interface logic.


Edit header and footer

Use the PSD located at: https://www.dropbox.com/s/4ul36qjkb1qinvb/docs-mockup-interimhome.psd?dl=0 for reference.
We need to use this interim approach until the re-designed phonegap.com goes live.

I left off the newsletter subscription form... for now.


How i can get access to swal2 modal content?

Inside callbacks, without direct $('.swal2-content')? 😄

Hm, maybe you can use the first parameter of the onClose callback.
See https://github.com/limonte/sweetalert2/blob/master/sweetalert2.d.ts#L457
It's a raw HTMLElement however, not a jQuery wrapper, since SweetAlert is not a jQuery plugin and does not depends on jQuery. But onClose: function(modalElement) { $(modalElement); } is still better than a selector for sure.
We can't modify the Promise signature returned by swal() without causing a breaking change.

@toverux Sigh. I have form in swal content. And i want to get access to this form for some operation and submit on swal accept, not onClose 😃

Oh, then you may want to do that : https://jsfiddle.net/c63u5o85/3/
So your modal resolves directly with the data. Still uses a selector, that said. But a little better.

@toverux Oh dude, thanks for idea of using preConfirm 😃

Done in v6.3.2
swal.getContent()

@rorc Thanks for the nice request!

@limonte Hmm, maybe will be better, if swal.getContent()  will return fresh content without wrapper .swal2-content? 😄

Your request was $('.swal2-content'), it's exactly how swal.getContent() works and that's the right way.

@limonte Yea, but i need content without uneccesary wrapper only.
I written $('.swal2-content') only for find for inside swal.
My final code was $('.swal2-content form') =)

http://www.w3schools.com/jsref/prop_element_children.asp

@limonte Dude, i meant swal.getContent() for getting clean user content without excess wrappers...

What should swal.getContent() return in your opinion for those cases:

swal({text: 'simle text'})
swal({html: '
paragraph 1

paragraph 2
'})

".swal2-content".innerHTML

".swal2-content".innerHTML

How string with HTML of the swal2-content could be useful?

Here my case:
$.get(e.target, function(response) {
                    swal({
                        html: response,
                        /* some params */
                    }).then(() => {
                        let form = $(swal.getContent().children);

                        $.post(form[0].action, form.serialize());
                    });
                });


Fix extra arg consumption by %% (Fixes #441)

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Description
Resolves #441: [c/stdio/sprintf] %% consumes an extra arg
When trying to use %% in sprintf to represent a % sign, it was consuming an extra value from ...args.
Modification
Conditionally incrementing index i. e. Only if modifier is not %.
  ...
  const arg = param ? args[param - 1] : args[index]

  if (modifier !== '%') {
    index++
  }

  if (precision === undefined || isNaN(precision)) {
  ...

The failure examples in #441 now work as desired:

const str = sprintf('%d%%%d.', 1, 2);
console.log(str);

Output: 1%2.

const str = sprintf('%s is a %d%% %s %s.', 'Param', 90, 'good', 'boy');
console.log(str);

Output: Param is a 90% good boy.

Fix looks alright.
Please add a comment with example call that was broken and is fixed with your patch, similar to the one in lines 10-11.
If you'd like, you can also credit yourself with a bugfixed by comment. Example comment

@kukawski Done! I just updated the PR.


feat: add share options

Changelog:

Add telegram sharing option
Add line sharing option

I'm happy to add this functionality however this PR needs a couple of changes:

[ ] Change the Line SVG to use the icon from FontAwesome (and modify the asset to match the existing SVGs in the theme in terms of structure and adding fill="currentColor" to the path so it is themed correctly)
[ ] Add the required i18n strings for sharing.telegram and sharing.line (including placeholders in all the languages other than English, as required)

Wow, you really went above and beyond with the i18n strings. I was only expecting blank commented out placeholders but you've managed to actually translate them all! I'm happy to merge this one in. I'll get to it later today.


Support return address for Shapeshift

In case something goes wrong. Initial plan was to reject transactions which fall below the minimum transaction limit set by Shapeshift, but unfortunately that is tied to the exchange rate of Bitcoin.
In order to support this, converting an address (number) to a hex string is needed.

Implemented with https://github.com/axic/shapeshiftbot/commit/4a47c530cf36d972be5a3e91861a0865441a128f


Argument --swe_bench_tasks is unclear

Is the --swe_bench_tasks in /harness/run_evaluation.py any clarification?
How can I access the SWE-bench task instances when directly importing the dataset by huggingface? Should I record the instances into a json file when running the inference?

At this time, the code unfortunately doesn't support running evaluation against task instances from the HuggingFace dataset. This is a good call out - we'll leave this issue open and add support for this within the week (i.e. you can specify --swe_bench_tasks test and it will immediately prepare the dataset under the hood for you.
For the time being, we have direct download links for the dev and test set. Once you have downloaded them locally, you can pass the path to these files as the argument, and it should work.

Edit: Just added support in commit 30d61034.
Hopefully this resolves the issue! Let me know if anything looks off + feel free to close if this addresses the problem.

Thanks @john-b-yang ! Another suggestion (just a minor point) is to separate the text in the dataset into issue, readme, and code. Sometimes the readme is unnecessary and will largely increase the context. This also happens when we incorporate the testbed feedback into the multi-turn conversation, so I also hope there is a method that can help users understand the exact number of testbed tests. These are not related to the current issue, and I will start a new issue if you think those are necessary.

@LinxinS97 interesting, would you mind creating another issue to carry out the conversation there? If I understand correctly, are you referring to the prompt construction in inference/ that incorporates a repository's README? We can discuss more in the issue (also, if you could include an example, that would be super helpful). Tysm! I will close this issue for now.


How to run it without using Docker?

Much appreciated your hard work.
Can you please add some description to the readMe file on How to run the API without using Docker.

thanks qiangxue great work and it helps a lot, also if you have time, please add MySQL support.
Mysql is widely used for web development

Thanks for using this project. Mysql support is as easy as changing the connection string.


Update Foldable.scala

By expecting the function argument Option[Unit], the type is force and wrong answers such as Some(1) or Some("hi") also work because they are converted to type Unit. By expanding the expected type to Any, we require the answer be Some(()) or Some()

Hi @toidiu ,
We've just merged a fix for the Travis issue. Could you please re-base from master? Thanks!

@juanpedromoreno Tests seem to be failing. Do you have any recommendations on how to write an appropriate test for this new case?
The test seems to be failing since now we expect Any rather than Unit. However when I change it to Any, the test won't compile.
def `traverse_ function` = {
  val aNone: Option[Any] = None  // <----- CHANGE TO ANY
  check(
    Test.testSuccess(
      FoldableSection.foldableTraverse _,
      Option(()) :: aNone :: HNil
    )
  )
}

@toidiu I guess that you want to change the first parameter of the foldableTraverse exercise, hence aNone val should stay as initially, you might want to change the first element in the HList ( Option(()) ).


Class '_CompactLinkedHashMap' has no instance method 'map'. :hammock/hammock_core.dart:82:31

Hi I'm getting the following error when loading some of my json Data.
Class '_CompactLinkedHashMap' has no instance method 'map'.
NoSuchMethodError: method not found: 'map'
Receiver: Instance of '_CompactLinkedHashMap'
Arguments: [Closure: (dynamic) => dynamic]
STACKTRACE:
#0      Object._noSuchMethod (dart:core-patch/object_patch.dart:42)
#1      Object.noSuchMethod (dart:core-patch/object_patch.dart:45)
#2      SimpleDocumentFormat.jsonToManyResources (package:hammock/hammock_core.dart:82:31)
#3      JsonDocumentFormat.documentToManyResources (package:hammock/hammock_core.dart:60:26)
#4      ResourceStore._parseManyResources. (package:hammock/src/resource_store.dart:87:84)
#5      _rootRunUnary (dart:async/zone.dart:902)
#6      _ZoneDelegate.runUnary (dart:async/zone.dart:508)
#7      _onRunUnary. (package:angular/core/zone.dart:126:63)
#8      VmTurnZone._onRunBase (package:angular/core/zone.dart:108:16)
#9      _onRunUnary (package:angular/core/zone.dart:126:17)
#10     _CustomZone.runUnary (dart:async/zone.dart:804)
#11     _Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:484)
#12     _Future._propagateToListeners (dart:async/future_impl.dart:567)
#13     _Future._completeWithValue (dart:async/future_impl.dart:358)
#14     _Future._asyncComplete. (dart:async/future_impl.dart:412)
#15     _rootRun (dart:async/zone.dart:891)
#16     _ZoneDelegate.run (dart:async/zone.dart:501)
#17     _onScheduleMicrotask. (package:angular/core/zone.dart:131:45)
#18     RootScope._runAsyncFns (package:angular/core/scope.dart:924:25)
#19     RootScope.digest (package:angular/core/scope.dart:813:38)
#20     Scope.apply (package:angular/core/scope.dart:316:24)
#21     RootScope.RootScope. (package:angular/core/scope.dart:768:12)
#22     _rootRun (dart:async/zone.dart:895)
#23     _ZoneDelegate.run (dart:async/zone.dart:501)
#24     VmTurnZone._finishTurn (package:angular/core/zone.dart:172:21)
#25     VmTurnZone._onRunBase (package:angular/core/zone.dart:115:43)
#26     _onRunUnary (package:angular/core/zone.dart:126:17)
#27     _CustomZone.runUnary (dart:async/zone.dart:804)
#28     _CustomZone.runUnaryGuarded (dart:async/zone.dart:712)
#29     _CustomZone.bindUnaryCallback. (dart:async/zone.dart:738)
This only occurs with some Lists of entities but not all.
The Stacktrace points to
QueryResult jsonToManyResources(type, json) =>
new QueryResult(json.map((j) => jsonToResource(type, j)).toList());
all I could figure out is that json.map seems to not exists.
It looks like you are expecting a different object from the JSON decoder than the one you get.
This occurs in Dartium with manually configured serializers/deserializers
hammock_mapper worked, but i can't use it due to its usage of reflection, which is incompatible with dart2js

Turns out the Backend was responding with funny JSON answers for the affected Objects.
Instead of responding with [{"id":1,...},{"id:2,....}] it responded with {0:{"id":1,...},{"id:2,....}}
I dont know if the second is valid JSON or not. thus i leave this Issue open until I have an answer.
If its valid, then we only need a little check which function to execute either jsontomanyresources or jsontoresource.

It turns out that a List of Objects can not only occur in JSON-List notation but also in JSON-Object notation. JSON-oBject notation gets serialized into a map object, which has no map function. I suggest using the forEach function.

Fixed with PR #19


Jump links and :target pseudo-class don't work as expected

Describe the bug

If you click a link with its href set to a section on the page (via the fragment of the URI) multiple times in a row the browser won't jump to the section anymore, even if you change the scroll position. This happens every time the fragment is already part of the URI. The only exception I found was if you set window.location.hash manually to the URI with the fragment. Then the jump-links work as expected but you have to press them twice to trigger the :targetpseudo-class. :target is not triggered without the window.location.hash workaround. By sheer chance, I activated the experimental feature CSSOM View Smooth Scrolling and apparently that fixed the issue. But since this flag is non-standard a fix would be helpful.
Logs
Browser Console: [Warning]  received an unexpected slot "default". (index.mjs, line 1667)
To Reproduce
Example: https://mxmlndml.github.io/sveltekit-jump-links/
Code repo: https://github.com/MXMLNDML/sveltekit-jump-links
Expected behavior

Jump links should work like in other browsers (Firefox, Chromium-based) or with vanilla html/css in Safari. Or just like the SvelteKit docs in Safari (which claim to be build with SvelteKit). Additionally the :target pseudo-class should work the first time you click a link.
Information about your SvelteKit Installation:

Diagnostics

Safari 14.0.2 (desktop), Safari iOS 14.6 (mobile) → won't jump a second time to the section + :target not working
Firefox 89.0 → jump-links work as expected, but :target works only after the second time you press the link

Severity
It is just annoying, nothing severe.

Closing, as it looks like we fixed this at some point! My favourite kind of issue


Stickiness for LB

What if we do the processing on same node just after downloading? So we do not need stickiness,right?

could be also a solution.

because of the jobs we will deploy only one instance. should be also enough at this point of time.


Using LazyListScope as parameter to other function should be possible on iOS

Describe the bug
Given code should compile
fun foo(
    content: LazyListScope.() -> Unit
) {
}

It fails with error:
error: There are still 3 unbound symbols after generation of IR module <shared>:
Unbound public symbol IrSimpleFunctionPublicSymbolImpl: androidx.compose.foundation.lazy/LazyListScope.item|-2398404341226065315[0]
Unbound public symbol IrSimpleFunctionPublicSymbolImpl: androidx.compose.foundation.lazy/LazyListScope.items|8564101490881923997[0]
Unbound public symbol IrSimpleFunctionPublicSymbolImpl: androidx.compose.foundation.lazy/LazyListScope.stickyHeader|431226128286809998[0]

Affected platforms
Select one of the platforms below:

iOS

Versions

Kotlin version*: 1.8.20
Compose Multiplatform version*: 1.4.0
OS version(s)* (required for Desktop and iOS issues): 16.2
OS architecture (x86 or arm64): x86

Reproduced. Adding a bit more context:
Same function with @Composable annotation does work:
@Composable
fun foo(
    content: LazyListScope.() -> Unit
) {
}

Or this works too:
fun foo(
    content: @Composable LazyListScope.() -> Unit
) {
}

@MikolajKakol Thank you for submitting the bug. I just want to confirm that your intention was indeed to not have @Composable anntation neither on the foo function nor the content lambda?
Regardless, the issue is valid and it should compile.

Yes, it is intended. We use it to separate the code that goes into LazyColumn. Errors, I provided here and before are from migrating a large Android project with around 200 screens in compose.

An interesting workaround is to add an empty composable like this:
fun foo(
    content: LazyListScope.() -> Unit
    t: @Composable () -> Unit = {},
) {
}

Thanks for extra input. It's helpful

The workaround is to add @HiddenFromObjC annotation:
@OptIn(ExperimentalObjCRefinement::class)
@HiddenFromObjC
fun foo(
    content: LazyListScope.() -> Unit
) {
}

A proper fix is in progress.

I close this issue if you don't mind. I'm sure it's a duplicate of https://github.com/JetBrains/compose-multiplatform/issues/3086 because they have the same workaround.

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.


Alternatives for live editing on REANA cluster

Since we have experienced many troubles with minikube lately we have investigated the alternatives and compared:

Shared volume support
Live feedback
Stable

Telepresence
no
yes
yes

Rebuild/restart
yes
no
yes

Volume mounting
yes
yes
no

Since we depend on shared volume mounting for REANA, Telepresence is not yet an option (maybe when we support S3 storage backend). Regarding the two other options, the only virtualization backend for minikube which supports volume mounting is VirtualBox but it is giving some problems from time to time, so rebuild+kill pods technique is the alternative (optimization of Dockerfiles will come to facilitate the workflow).
@reanahub/developers

For rebuild+kill pods it is interesting to plug some trigger after save in your editor, for example for VS Code:
{
    "saveAndRun": {
        "commands": [
            {
                "match": ".py",
                "isAsync": true,
                "cmd": "full_component_name=$(basename ${workspaceRoot}) && component_name=${full_component_name/reana-/} && eval `minikube docker-env` && docker build . -t reanahub/$full_component_name:latest && kubectl delete pods -l app=$component_name",
                "silent": true
            }
        ]
    }
}

I think there is some limited volume support, where it uses sshfs to proxy the state, I haven't tried this though:
https://www.telepresence.io/howto/volumes
also there is Draft from Azure
https://github.com/Azure/draft

I think there is some limited volume support, where it uses sshfs to proxy the state, I haven't tried this though:

https://www.telepresence.io/howto/volumes

Yes, this is precisely the link where no points to in the table. It is easy to setup for let say Kubernetes secrets which is exactly what they show as an example. For our use case, sharing workflow workspaces, when a developer works on for example yadage engine, she/he needs to have the real volume mounted in her/his computer and set it under $TELEPRESENCE_ROOT which brings us again to square 0 (where we have problems with volume mounting). Thats why I point out that if we support S3 interfaces we can more easily develop locally using Telepresence, but this is yet to come.

also there is Draft from Azure

https://github.com/Azure/draft

Regarding Draft, from what I saw there is not much difference between it and rebuilding+killing pods without using any new tool, looks like the bottleneck of rebuilding is still there from what I understand.


For MultispectralCD dataset

Thank you for your excellent job!
It seems that you have performed special processing on the OSCD dataset.

When I was running the code, the 'ms_data. npy' files was missing from the training set path.
2.The label data seems to be in another folder.

Look forward to your reply！

Hi @Jamie-Adams369 ,
Thank you for your interest to our work! ms_data.npy is the multispectral data with 13 bands. Since each band is a separate file in the original OSCD dataset, we have combined them into a matrix of HxWx13 for convenience. You can generate it yourself.
Best,


port higher-order Ramda functions which accept variadic functions

In Ramda we're slowly replacing variadic functions with fixed-arity functions. I'm very much in favour of this. I'd like to go a step further in Sanctuary by fixing the arities of function arguments. R.both, for example, has type (** -> Boolean) -> (** -> Boolean) -> (** -> Boolean), where ** represents zero or more arguments. I'd like to provide a both function in Sanctuary which is less flexible but which handles the common case with a simpler type, (a -> Boolean) -> (a -> Boolean) -> a -> Boolean.
The following is a list of such functions I'd like Sanctuary to provide (which I'll update it if turns out not to be exhaustive).

both :: (a -> Boolean) -> (a -> Boolean) -> a -> Boolean
either :: (a -> Boolean) -> (a -> Boolean) -> a -> Boolean
anyPass :: [a -> Boolean] -> a -> Boolean
allPass :: [a -> Boolean] -> a -> Boolean
complement :: (a -> Boolean) -> a -> Boolean
ifElse :: (a -> Boolean) -> (a -> b) -> (a -> b) -> a -> b
converge :: (b -> c -> d) -> (a -> b) -> (a -> c) -> a -> d
flip :: (a -> b -> c) -> b -> a -> c

This approach was briefly discussed in ramda/ramda#1395.

If no one is working on this I can grab both, either and complement?

Please do, @svozza. :)

Quick question, do we want to do the non-short circuiting version using lift?

I think we should short-circuit. It's likely Ramda will do the same.

Should I just wrap the relevant Ramda functions because we're still on v0.17 or will I reimplement them from scratch?

It would be clearer to implement them from scratch. This will also simplify the process of upgrading to Ramda v0.18.x.

What will we do about either given that it shares a name with a function currently in Sanctuary.

Yikes! That's a terrific question. and and or already exist as well. We should not merge #110 until we resolve this conundrum.

Perhaps what we actually want are fixed-arity versions of R.lift: S.lift, S.lift2, and S.lift3. This would allow S.lift2(S.and) and S.lift2(S.or) to function as both and either respectively.
/cc @benperez

I've always thought S.either could be named better but having an either function not related to the Either type could be confusing.

@svozza, do you think the S.lift{,2,3} option is worth exploring?

So do we mean, not provide functions like S.both and S.either and just let people compose the lift2 or lift3 versions instead? As long as we don't mind losing the short-circuiting then yeah that could definitely work. Btw, how deep do we want the type checking on this stuff to go? Like do we want to create a pseudotype that checks that the function that's passed in in unary and the argument is of the correct type?

So do we mean, not provide functions like S.both and S.either and just let people compose the lift2 or lift3 versions instead?

Yes, that's what I have in mind.

Btw, how deep do we want the type checking on this stuff to go? E.g., do we want to create a pseudotype that checks that the function that's passed in is unary and the argument is of the correct type?

I'm working on a more ambitious pull request to replace plaid/sanctuary-def#1. It will allow one to specify the a in [a], Maybe a, Either a b, etc. Even in this experimental branch, though, I treat a function's type as Function rather than Function a b (i.e. a -> b). I don't see how we'd determine a function's input and output types. We could check arity, but I'm not sure this is a good idea.

Yeah,  I agree I can't see how you could reliably do that and checking the arity would mean any variadic  function would automatically fail unless it wrapped in something like R.arity. That's a lot to expect from a user.
Regarding the first suggestion, I think go for it, it's far more in the spirit of Sanctuary than ramda. Maybe use or and and in the doc examples to give people a nudge.

Maybe use or and and in the doc examples to give people a nudge.

Good idea. We could even include lift examples in the and and or sections so people looking to logically combine functions will discover lift(and) and lift(or). :)

@davidchambers :+1: for S.lift, S.lift2, S.lift3 and friends

Thanks to contributions from @svozza and @benperez, we now have access to all these functions!
//    both :: (a -> Boolean) -> (a -> Boolean) -> a -> Boolean
const both = S.lift2(S.and);

//    either :: (a -> Boolean) -> (a -> Boolean) -> a -> Boolean
const either = S.lift2(S.or);

//    anyPass :: [a -> Boolean] -> a -> Boolean
const anyPass = S.anyPass;

//    allPass :: [a -> Boolean] -> a -> Boolean
const allPass = S.allPass;

//    complement :: (a -> Boolean) -> a -> Boolean
const complement = S.lift(S.not);

//    ifElse :: (a -> Boolean) -> (a -> b) -> (a -> b) -> a -> b
const ifElse = S.ifElse;

//    converge :: (b -> c -> d) -> (a -> b) -> (a -> c) -> a -> d
const converge = S.lift2;

//    flip :: (a -> b -> c) -> b -> a -> c
const flip = S.flip;

:cake:


Jenkins move raspi and bebop builds to regular armhf toolchain

It seems to work. http://ci.px4.io:8080/blue/organizations/jenkins/PX4_misc%2FFirmware-hardware_linux/detail/pr-jenkins_raspi/2/pipeline/


Keep getting redirect error

URL
No response
How to reproduce the issue?
No response
Screenshot(s) or anything else?
For the past few days, i've been getting this error that is really annoying. Everytime I press save, it opens up a pop-up with the text:
"The requested redirect uri is malformed or doesn't match client redirect URI." Please help, many thanks are appreciated.
Which deployed environments do you see the issue in?
Released version at openstreetmap.org/edit
What version numbers does this issue effect?
No response
Which browsers are you seeing this problem on?
Opera

This error comes from the OSM website application when iD attempts to authenticate using OAuth: openstreetmap/openstreetmap-website#4363. I’m not sure why you’re suddenly running into this though. If iD doesn’t have the permissions it needs yet, it might have opened a popup window in which osm.org prompts you to give iD permission. You might need to disable your browser’s popup blocker to see it.
As a temporary workaround, you can click the “Download osmChange file” link at the bottom of the save screen. This will download an .osc file that you can upload using either JOSM or Level0.

Hello. While your answer is probably really helpful and could work for some people, the pop-up appears when I hit Save. It doesn't allow me to do the Download osmChange file since it just goes gray.
Although I will try to disable my pop-up blocker for openstreetmap.org, I have my doubts it will work.

@CatRBLX we did not hear form anyone else about this so I a assume this is a local issue that resolved itself. I will close this issue but feel free to reopen it should the error still show up.


Split up autoupdate functions (sync and async).

I will properply remove the CollectionElement Class before 3.0. If I do, I will rename you function. But currently, the name is correct.


fix: notification requestpermission returning undefined

Standards checklist:

[x] The PR title is descriptive.
[x] The PR doesn't replicate another PR which is already open.
[x] The PR has self-explained commits history.
[x] The code is mine, or it's from somewhere with an Apache-2.0 compatible license.
[x] The code is efficient, to the best of my ability, and does not waste computer resources.
[x] The code is stable, and I have tested it myself, to the best of my abilities.
[x] If the code introduces new classes, methods, I provide a valid use case for all of them.

Changes:

Add check for undefined returned by Notification.requestPermission().

Other comments:
The issue was found on latest DuckDuckGo browser.

Tested on PRE deploy<PHONE_NUMBER>. Functions correctly on DuckDuckGo 0.30.9.


RViz visualizer launches with a blank view

Behavior is observed at times when launching office.launch.xml.

Closing this issue as its related to rviz rendering.


Users/magleaso/unbreak publish radio check

Task name: upackv0
Description: Fix bug mentioned in #18975
Documentation changes required: N
Added unit tests: N
Attached related issue: Y
Checklist:

[X] Task version was bumped - please check instruction how to do it
[x] Checked that applied changes work as expected

Tested by @zhenghao104


Download links target _blank and append UI marker

Why are these changes being introduced:

We want to display a message in our restricted CDN auth flow that instructs a user to close the window/tab when the download is complete to return to their search if they came from TIMDEX UI.

Relevant ticket(s):

https://mitlibraries.atlassian.net/browse/GDT-317
https://mitlibraries.atlassian.net/browse/GDT-304

How does this address that need:

Adds target=_blank to download link tags
appends ?timdex-ui=true to download link URLs

Document any side effects to this change:

A bunch of tests reformatted automatically on save. The only relevant changes to the tests were on lines 246-247

Developer
Accessibility

[ ] ANDI or WAVE has been run in accordance to our guide.
[ ] This PR contains no changes to the view layer.
[ ] New issues flagged by ANDI or WAVE have been resolved.
[ ] New issues flagged by ANDI or WAVE have been ticketed (link in the Pull Request details above).
[ ] No new accessibility issues have been flagged.

New ENV

[ ] All new ENV is documented in README.
[ ] All new ENV has been added to Heroku Pipeline, Staging and Prod.
[ ] ENV has not changed.

Approval beyond code review

[ ] UXWS/stakeholder approval has been confirmed.
[ ] UXWS/stakeholder review will be completed retroactively.
[ ] UXWS/stakeholder review is not needed.

Additional context needed to review
The download links for restricted MIT downloads should now pop into a new window/tab. The messaging for the CDN auth app has not been updated to inform the user to close the window to return to the search, but that will be added soon.
All download links (restricted and not) should get ?timdexui=true appended.
Links to metadata or external sites should not be affected.
Code Reviewer
Code

[ ] I have confirmed that the code works as intended.
[ ] Any CodeClimate issues have been fixed or confirmed as
added technical debt.

Documentation

[ ] The commit message is clear and follows our guidelines
(not just this pull request message).
[ ] The documentation has been updated or is unnecessary.
[ ] New dependencies are appropriate or there were no changes.

Testing

[ ] There are appropriate tests covering any new functionality.
[ ] No additional test coverage is required.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

2 of 2 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.003%) to 98.635%

Totals

Change from base Build<PHONE_NUMBER>:
0.003%

Covered Lines:
578

Relevant Lines:
586

💛  - Coveralls


In WithParsed () method, I cann't await async in lambda .

The call  await new Command(x).Execute() which is called from within  await async lambda, does not wait for the task completion and the next line is executed immediately.
The next code isn't working fine:
   static void Main(string[] args)
    {
	  RunOptions(args);
    }

   static void RunOptions(string[] args)
    {
	var parser= new Parser();
      var result = parser.ParseArguments<Options>(args);
         //note async x in lambda
        result.WithParsed(async x => {
            await new Command(x).Execute();
        });
  }

I think it is expected because it's against the principle  use async all the way up
How to use  async/await in result.WithParsed
I want to re-write the code to use asyn Main() in C#7.1
  static async Task Main(string[] args)
    {
	await  RunOptions(args);
    }

   static async Task RunOptions(string[] args)
    {
        //rewrite the code using result.WithParsed(...)
       // or WithParsed don't support async/await
   }

I find this example for MapResult , but i need to use .WithParsed`

Hi Mohamed, why can't you use MapResult? WithParsedis designed intentionally to take anAction, which as you noted cannot be awaited. MapResultis designed explicitly with 'return values' in mind, which is why it takes aFunc<TOpt, TResult>`.
Assuming you don't want to use the WithNotParsed method to handle errors, you should be able to replace your last line above with something like the following (not tested):
result.MapResult<Options>(async x =>
{
    return await new Command(x).Execute();
},
errors => Task.FromResult<TypeReturnedFromExecute>(null));

Note we just return a no-op in the error path. No big deal, it will have the same effect as not handling the errors at all.

Hi @nemec , Thanks  for your solution and I accept it.
I tried it, and did a minor modification in  your code , and it's working fine.
            await result.MapResult(async
               x =>
                     {
                         await new Command(x).Execute();
                     },
                 errors => Task.FromResult(0)
	  );

MapResult is the BEST.  :)


Sisimai 4221p2

Coverage increased (+0.7%) to 95.462% when pulling 56d000295cf68bc288125d7b1a507f154562ae08 on sisimai-4221p2 into 9b08cead07fc5b82714c991a79036d5b1bc25829 on master.


How to underline partial text with dialog message?

How can a specific part of the message be underlined?
Here is my current code for the dialog message:
headerDialog.setMessage(getResources().getString(R.string.lorem_ipsum) + "\n" +                         getResources().getString(R.string.dolor) + "\n" +                         getResources().getString(R.string.sit) + "\n" +                         getResources().getString(R.string.amet));
I only want the 'lorem_ipsum' string to be underlined and aligned to the horizontal centre.

In this library you can use HTML tags in the message. So, if you want some text to be underlined, you can simply use the  HTML tag.
Example:
headerDialog.setMessage(Html.fromHtml("Your underlined text
Another line"));
Remember to replace /n with

Alongside being underlined, how can it ALSO be aligned to the horizontal centre?

Use
headerDialog.setMessageGravity(Gravity.CENTER_HORIZONTAL);

So, is there any method at all that can be used to just align that particular line?

You can center it with html.
headerDialog.setMessage(Html.fromHtml("
centered and underlined text

Another line"));

For some reason that didn't work  for me. Are there any typo in that code?

You can use a WebView as the message.

Create and save a html file with your message content (with html tags)
Create a webview layout
Load the layout to the dialog
headerDialog.setView(R.layout.webview_layout);
Load the html file to the webview
WebView webView = (WebView) headerDialog.getInflatedView().findViewById(R.id.myWebView); webView.loadUrl("file:///android_asset/file.html");

Not efficient to be honest as I want to do this programmatically

There is no other way to do it (as I know).
But you can also load html content to a webview programmatically instead of using an assets file 😄


help me :   Connection aborted.', ConnectionResetError(54, 'Connection reset by peer'

How can I solve this problem? I've been struggling for a long time and can't find a solution. Please help me thanks!!!
**Environment

OS / hardware: macOS 13.2.1 / M1
Python version  3.11.3

did you resolve this problem now ? I met the same problem too

I am facing the same issue. It occurs as if randomly, and more frequently when loading large documents. Sometimes I am lucky not to get into it, but it is very annoying. I am on same hardware, but on linux.


[JTC] Angle wraparound for first segment of trajectory

I experienced a problem with the angle_wraparound of continuous joints if the current position and the first point of the trajectory have an offset of 2*pi.
I forgot that case when I implemented angle_wraparound, and saw now that this was already part of ROS 1. So I ported the existing implementation and updated the tests (I think now that they were wrong before anyways).
This wraparound of state_before_traj_msg_.positions could also be done inside the update method of the controller instead of the trajectory class (avoiding ABI break). Comment if you think it should be changed.
I added new tests for the trajectory class to check if wraparound_joint works.  position_error_not_angle_wraparound and position_error_angle_wraparound could also be improved, I opened #802

I think it's more consistent to keep this change to the Trajectory class than avoiding ABI breakages.
Also... better to not load more things into update()

@bmagyar do you agree with the changes now and might want to approve it?


Extend local database of domains on detecting new lock

Extend local database of domains on detecting new locks to ensure the correct work of domainsContains.

Instead of modifying domains we just extend the array of domains with blockedDomains in domainsContains.


Unable to reset to "factory" defaults

Environmental Info:
K3s Version:
k3s version v1.22.7+k3s1 (8432d7f2)
go version go1.16.10

Node(s) CPU architecture, OS, and Version:
uname -a
Linux server 4.18.0-305.el8.x86_64 #1 SMP Wed May 19 18:55:28 EDT 2021 x86_64 x86_64 x86_64 GNU/Linux

cat /etc/redhat-release
AlmaLinux release 8.4 (Electric Cheetah)

Cluster Configuration:
Single node cluster.
Describe the bug:
I have used k3s to learn about Kubernetes. I have changed a lot of  config variables, changed load-balancers, etc..
Now I want a clean start, but I'm unable get rid of the old setup.
Steps To Reproduce:
I have run:
sh /usr/local/bin/k3s-killall.sh;
sh usr/local/bin/k3s-uninstall.sh
sudo rm -rf /var/lib/rancher/k3s

Installed K3s:
curl -sfL https://get.k3s.io | sh -

Expected behavior:
K3s is in it's default "factory" state
Actual behavior:
All my pods, services, ingresses, configs still exist. It's like nothing ever changed.
Additional context / logs:
Uninstall output
++ id -u
+ '[' 1000 -eq 0 ']'
+ exec sudo /usr/local/bin/k3s-uninstall.sh
++ id -u
+ '[' 0 -eq 0 ']'
+ /usr/local/bin/k3s-killall.sh
+ for service in /etc/systemd/system/k3s*.service
+ '[' -s /etc/systemd/system/k3s.service ']'
++ basename /etc/systemd/system/k3s.service
+ systemctl stop k3s.service
+ for service in /etc/init.d/k3s*
+ '[' -x '/etc/init.d/k3s*' ']'
+ killtree
+ kill -9
+ do_unmount_and_remove /run/k3s
+ set +x
+ do_unmount_and_remove /var/lib/rancher/k3s
+ set +x
+ do_unmount_and_remove /var/lib/kubelet/pods
+ set +x
+ do_unmount_and_remove /var/lib/kubelet/plugins
+ set +x
+ do_unmount_and_remove /run/netns/cni-
+ set +x
+ ip netns show
+ grep cni-
+ xargs -r -t -n 1 ip netns delete
+ ip link show
+ grep 'master cni0'
+ read ignore iface ignore
+ ip link delete cni0
Cannot find device "cni0"
+ ip link delete flannel.1
Cannot find device "flannel.1"
+ ip link delete flannel-v6.1
Cannot find device "flannel-v6.1"
+ rm -rf /var/lib/cni/
+ iptables-save
+ grep -v KUBE-
+ grep -v flannel
+ grep -v CNI-
+ iptables-restore
# Warning: iptables-legacy tables present, use iptables-legacy-save to see them
+ ip6tables-save
+ grep -v KUBE-
+ grep -v CNI-
+ grep -v flannel
+ ip6tables-restore
+ command -v systemctl
/bin/systemctl
+ systemctl disable k3s
Removed /etc/systemd/system/multi-user.target.wants/k3s.service.
+ systemctl reset-failed k3s
Failed to reset failed state of unit k3s.service: Unit k3s.service not loaded.
+ systemctl daemon-reload
+ command -v rc-update
+ rm -f /etc/systemd/system/k3s.service
+ rm -f /etc/systemd/system/k3s.service.env
+ trap remove_uninstall EXIT
+ for cmd in kubectl crictl ctr
+ '[' -L /usr/local/bin/kubectl ']'
+ rm -f /usr/local/bin/kubectl
+ for cmd in kubectl crictl ctr
+ '[' -L /usr/local/bin/crictl ']'
+ rm -f /usr/local/bin/crictl
+ for cmd in kubectl crictl ctr
+ '[' -L /usr/local/bin/ctr ']'
+ rm -f /usr/local/bin/ctr
+ rm -rf /etc/rancher/k3s
+ rm -rf /run/k3s
+ rm -rf /run/flannel
+ rm -rf /var/lib/rancher/k3s
+ rm -rf /var/lib/kubelet
+ rm -f /usr/local/bin/k3s
+ rm -f /usr/local/bin/k3s-killall.sh
+ type yum
+ yum remove -y k3s-selinux
{yum ran and did its thing}

Backporting

Never mind. Seems it was an issue with kubernetes client sync. Sorry.


FPGA: Remove db query 9 for 2023.2

Existing Sample Changes
Description
This change removes db query 9 from the 2023.2 code samples.
Type of change
Please delete options that are not relevant. Add a 'X' to the one that is applicable.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Implement fixes for ONSAM Jiras

How Has This Been Tested?
I ran db1, db9, db11, and db12 in emulator flow after this change
https://spetc.intel.com/testsummary?testRunIds=8227959
We see that db9 now has the message that it is not a valid query number

I can't comment on unmodified code so here are a few comments:
1/ "This reference design shows how four queries can be accelerated using oneAPI. To do so, we create a set of common database operators (found in the src/db_utils/ directory) that are combined in different ways to build the four queries."
2/ "You'll need a large FPGA part to be able to fit the query 9 variant of this design"
Once you fixed that, you can open the PR on the main code samples repo, thanks!

Closing to open up a PR on the main repo


Can not render some specified expression

Before reporting a bug

[X] Check common issues.
[X] Check the bug is reproducible in the demo. If not, check KaTeX is up-to-date and installed correctly.
[X] Search for existing issues.

Describe the bug:
Some expression showed as below can not be rendered in correct way, I guess there is something wrong with katex interpreting the LaTeX code.
(La)TeX code:
The code of (La)TeX you tried to render:
$$ L =  \underbrace{ \frac{1}{N} \sum_i L_i }_\text{data loss} +   \underbrace{ \lambda R(W) }_\text{regularization loss} $$

and this,
$$
L = \frac{1}{N} \sum_i \sum_{j\neq y_i} \left[ \max(0, f(x_i; W)_j - f(x_i; W)_{y_i} + \Delta) \right]  + \lambda \sum_k\sum_l W_{k,l}^2
$$

Expected behavior:
Above code segments failed to show in right way, but most of latex code can be rendered successfully in browser. Please refer to Screenshots.
Screenshots:

however, it render this formula successfully in katex demo site

Environment (please complete the following information):

KaTeX Version:  I use Starter template to import KaTeX. The script is showed in Additional context
Device: PC Chrome
OS: Windows 10
Browser: Chrome & Edge
Version: The latest I promise

Additional context:
<link rel="stylesheet"<EMAIL_ADDRESS>integrity="sha384-dbVIfZGuN1Yq7/1Ocstc1lUEm+AT+/rCkibIcC/OmWo5f0EA48Vf8CytHzGrSwbQ" crossorigin="anonymous">

<!-- The loading of KaTeX is deferred to speed up page rendering -->
<script defer<EMAIL_ADDRESS>integrity="sha384-2BKqo+exmr9su6dir+qCw08N2ZKRucY4PrGQPPWU1A7FtlCGjmEGFqXCv5nyM5Ij" crossorigin="anonymous"></script>

<!-- To automatically render math in text elements, include the auto-render extension: -->
<script defer<EMAIL_ADDRESS>integrity="sha384-kWPLUVMOks5AQFrykwIup5lo0m3iMkkHrD0uJ4H5cjeGihAutqP0yW0J6dpFiVkI" crossorigin="anonymous"  onload="renderMathInElement(document.body);"></script>

Can you check whether there are any console error messages? Could you post a complete HTML file e.g. on gist?

Can you check whether there are any console error messages? Could you post a complete HTML file e.g. on gist?

Oh! i am really sorry for my mistake! I have checked my html over and over again, but overlook one severe problem that<em> has been inserted into latex code for I used vscode markdown-pdf extension to convert markdown format into html/pdf before.
Please change the label of this issue and delete it if it can.
Sorry for my mistake again 😭, and sincerely appreciate your help!

Glad you found the error!  No problem.


[discussion] Logging levels

Hi, I am experimenting with stored procedures written in rust and noticed that there are much fewer logging levels than in Tarantool itself. The main reason is a mismatch of levels in rust and Tarantool. I think that it is a good idea to avoid ambiguity but I still want to discuss the possibility of changing Rust's Debug to Tarantool's Verbose. It will make more sense for Rust programmers.
https://github.com/picodata/tarantool-module/blob/8a1006460de486b908ddd8dfeb00c0ba149a860f/tarantool/src/log.rs#L78-L88

Sounds like a good idea. Considering the amount of info debugging info tarantool spurts on on "debug" level we might as well call it "trace"

Mapping can be adjusted using with_mapping constructor. I think both this issue and #19 can be closed.
https://github.com/picodata/tarantool-module/blob/7dbfdf17cecfa0b6a395798e37b621416078fc66/tests/src/log.rs#L15-L28

It seems that I closed this issue too early.
https://github.com/picodata/tarantool-module/blob/9326a296ec5add45d883341c17ae34e8ebca8c25/tarantool/src/log.rs#L45-L48
This function does not take into account custom mapping and no logging is performed. I think it should be changed like that
        let level: SayLevel = (self.0)(metadata.level());
        level <= SayLevel::from_i32(unsafe { ffi::LOG_LEVEL }).unwrap()


verified = 1 flag should do more

If the option isn't defined, I believe the bot should be far more limited. Referencing this guide: https://dev.twitch.tv/docs/irc/guide
If the verified = 1 option is not in the config:

Bots should be limited to 100 messages/30 seconds (assuming moderator status)
Whispers should be limited to 3/second; 100/minute
Eval command should also be limited (using eval command for bans, etc)

This will definitely help. I was importing playsounds for a mate; his bot was rate limited as a result of trying to spam whispers. If this is the case, then perhaps the bot should collate it's whispers?
Successfully imported x playsounds etc

In light of twitch's new restrictions on new accounts, I think the bot should not whisper responses at all if it doesn't have the verified flag (maybe put them in chat?)


Merge findRandom and findManyRandom into a single query?

We could use the standard take field in findRandom to hold the number of random results to return, defaulting to 1. This would reduce the number of functions introduced to user's models. Simpler is better.
Note: this will we require a major version bump. Be sure to update documentation.

I'm reconsidering this somewhat as I'm not sure if there's a clean way to do it.


Add openlab repo list cmd

In order to query the list of repos which enable the openlab app or
allinone app, we propose to add a new cmd to support it.
usage: openlab repo list [-h] [--server SERVER] [--app-id APP_ID]
                          [--app-key APP_KEY]

optional arguments:
  -h, --help         show this help message and exit
  --server SERVER    Specify base server url. Default is github.com
  --app-id APP_ID    Specify the github APP ID, Default is 7102
                     (allinone: 7102, OpenLab: 6778).
  --app-key APP_KEY  Specify the app key file path. Default is
                     /var/lib/zuul/openlab-app-key.pem

closed: theopenlab/openlab#272

One more thing, please update openlabcmd README as well.

One more thing, please update openlabcmd README as well.

Done, thanks

LGTM


DLL load failed:  sp\xe9cifi\xe9 not find

Hi,
I had a problem to connect to the database with my computer and RobotFramework.
Python : 2.7
RobotFramework :  robotframework-2.9.2.win-amd64
RobotFramework Ride: robotframework-ride-<IP_ADDRESS>.win-amd64.exe
Libraries : Database (robotframework_databaselibrary-0.8.1) / String / OperatingSystem / Collections
Module : cx_Oracle-5.1.3-11g.win-amd64-py2.7
Steps :
1st Line : Connect To Database Using Custom Params // cx_Oracle //user='rc4', password='*****', dsn='(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=-)(PORT=)))(CONNECT_DATA=(SID=*****)))'
2nd Line : Disconnect From Database
Observed :
FAIL : ImportError: DLL load failed: Le module sp\xe9cifi\xe9 est introuvable.
Expected:
I should succeed to connect to the database.
If somebody can help me it could be awesome...
Thanks

First your problem is with robotframework-databaselibrary not in this project. Second, you are not reporting an issue but asking for help. This should be done on the google groups or Slack channels.
The error message is clear; it did not find the database driver. Try to install the driver from cx_Oracle-5.1.3-11g.win-amd64-py2.7 and put in a directory that is listed on the %PATH% variable.

Yeah, this problem isn't related to RF core. Questions are best sent to robotframework-users or other such forums anyway.

Ok sorry , I thought it was linked. Thanks for your help .


w: GNU w output header includes output from uptime

The header in GNU version contains the output from uptime as part of the header.
 15:12:54 up  5:47,  1 user,  load average: 0.68, 0.61, 0.74
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT

coreutils already has an implementation for uptime so the code for this already exists.

uptime is a crate on its own (https://crates.io/crates/uu_uptime), so, at least theoretically, it should be possible to reuse it in this way in w.

or move the critical functions into uucore
https://docs.rs/uucore/latest/uucore/

Thanks for the suggestions. Most of the functions are simply formatting functions which probably don't need to be in uucore. I think using the uptime crate might be okay for this. I will take a look into it.


Fix VAST Wrapper ads failing to play

Proposed Changes
Code block handling invalid mediaFiles has gone astray in v3.42.0. mediaFileIsValid is undefined on line 804, and this seems to break Wrapper ads (it can be seen in vod_vast_wrapper.html example of the repo).
This fix tries to move the block where it should be.
Feel free to close this PR and fix it as seems fit to you. I just wanted to highlight the problem.
Relevant issues
Fixes #852

This was fixed by https://github.com/fluid-player/fluid-player/pull/855, closing my PR


Update network setting, bundle information for rc3 bits.

We are in process to create the new bundles which have new metadata info which we need to handle also the network config need to be updated for same. This is the tracker issue for it.

This is fixed by #142


Move all public images to /public/img

There are some images in the root of /public. These should be moved to /public/images.

Completed with PR #486


[Enhancement] add flag hudi_mor_force_jni_reader

What type of PR is this：

[ ] BugFix
[ ] Feature
[X] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Which issues of this PR fixes ：

Fixes #
Problem Summary(Required) ：

Right now, HUDI MOR and COW have two different impls. MOR goes via JNI and COW goes via C++. And If MOR has no delta logs, it also goes via C++(not JNI), which is hard for us to test. Because sometimes QA does not know if there is delta logs or not.
So the purpose of this SV is to enfoce hudi mor reader goes via JNI, we can test it thoroughly.
Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[ ] I have checked the version labels which the pr will be auto backported to target branch

[ ] 2.5
[ ] 2.4
[ ] 2.3
[ ] 2.2

run starrocks_admit_test

[FE PR Coverage Check]
:disappointed: fail : 1 / 9 (11.11%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/connector/RemoteScanRangeLocations.java
0
4
00.00%
[200, 212, 213, 214]

:large_blue_circle:
com/starrocks/qe/CoordinatorPreprocessor.java
0
3
00.00%
[1015, 1016, 1018]

:large_blue_circle:
com/starrocks/qe/SessionVariable.java
1
2
50.00%
[849]

@MergifyIO backport branch-2.5


Update to the root README file

Clarify the language describing the project
Also added small code snippet of example

/assign @cpanato

@cpanato @ShwethaKumbla PTAL


[DB2] Add activerecord-jdbcas400-adapter

Add an AS/400 adapter.
I hope see it in RubyGem in 1.3.4 :)
Thanks !

For historical purposes you can find the new repository here