Add explicit dependency of nvim-lspconfig on cmp-nvim-lsp

The plugin spec for neovim/nvim-lspconfig does a require('cmp_nvim_lsp') in the LspAttach event handler but does not explicitly add a dependency on hrsh7th/cmp-nvim-lsp.
This is fine in the default kickstart.nvim layout but may not work if someone decides to break the specs into separate folders or decides to remove/disable nvim-cmp.
This PR simply adds the explicit dependency where used.

Should the cmp-nvim-lsp dependency be removed from the nvim-cmp setup?

I'm seeing lots of questions here and not many answers.
@jstrot thanks for your contribution, could you please respond to some of these comments? Happy to merge this if we can get consensus around what will work.

I don't know how this was deleted in the first place

I think it's been missing since day-1 (4c4096cf30acace7bf3cf5a0a4b6c5346a0d5a59).
When plugins are initialized in a specific order (like a monolithic init.lua does), the dependency is already loaded. The issue  arises if someone splits apart the config into separate files, e.g, lua/plugin/*.lua.

Should the cmp-nvim-lsp dependency be removed from the nvim-cmp setup?

The issue I'm addressing is neovim/nvim-lspconfig missing a dependency on hrsh7th/cmp-nvim-lsp since neovim/nvim-lspconfig's config function there's a call to require('cmp_nvim_lsp')
As for nvim-cmp itself, once of the sources is "nvim_lsp" so its dependency on cmp-nvim-lsp should be kept.

I'm seeing lots of questions here and not many answers.
@jstrot thanks for your contribution, could you please respond to some of these comments? Happy to merge this if we can get consensus around what will work.

Sorry for taking time to respond, I hardly get time during the week...
I'm happy to answer further questions and comments.
Thanks.

Should the cmp-nvim-lsp dependency be removed from the nvim-cmp setup?

The issue I'm addressing is neovim/nvim-lspconfig missing a dependency on hrsh7th/cmp-nvim-lsp since neovim/nvim-lspconfig's config function there's a call to require('cmp_nvim_lsp')
As for nvim-cmp itself, once of the sources is "nvim_lsp" so its dependency on cmp-nvim-lsp should be kept.

I thought that if the LSP config loads before the nvim-cmp plugin, the cmp-nvim-lsp should be available in the nvim-cmp setup. If so, is an explicit dependency needed in the nvim-cmp setup?


Ktor server controllers

I haven't completely fleshed out this idea but just playing around with it, I feel like it shouldn't be too hard to add generation of a Ktor-based server as an option. And since afaik there are no Ktor-generators for OpenAPI in existence yet, it would probably be a pretty useful feature.
The idea would be to generate the same controller interfaces as for Spring or Micronaut right now, with the main difference that they don't use annotations but rather the Ktor DSL.
For example, Spring:
@Controller
@Validated
@RequestMapping("")
interface InternalEventsController {
    /**
     * Generate change events for a list of entities
     *
     * @param bulkEntityDetails
     */
    @RequestMapping(
        value = ["/internal/events"],
        produces = ["application/json", "application/problem+json"],
        method = [RequestMethod.POST],
        consumes = ["application/json"]
    )
    fun post(
        @RequestBody @Valid
        bulkEntityDetails: BulkEntityDetails
    ): ResponseEntity<EventResults>
}

Ktor:
interface InternalEventsController {
    /**
     * Generate change events for a list of entities
     *
     * @param bulkEntityDetails
     */
    fun post(
        bulkEntityDetails: BulkEntityDetails
    ): HttpResponse<EventResults>

    companion object {
        // needs to be called from somewhere
        fun addRouting(routing: Routing, controller: InternalEventsController) {
            routing.route("/internal/events") {
                post {
                    val request = call.receive<BulkEntityDetails>()
                    val response = controller.post(request)
                    call.respond(response)
                }
            }
        }
    }
}

Hey. I personally do not need this feature anymore right now but I could still try and give some feedback if you want me to.

@atollk please have a look at #280 when you have time 🙏


Error Measurements

Is your feature request related to a problem? Please describe.
Add Error measurements calculator
Describe the solution you'd like
Just follow the momentum calculator and similar to it add the contents of error measurements

Can i work on this issue @Amit366 ?

@ashish-patwal yes u can but add as much formula as possible

and also if possible add some content

Yes i will .

@ashish-patwal r u working on it??

yes , i had some other work to do urgently . That's why the delay .


Vue 3 support?

Is Vue 3 support planned (or even desired)?
The Vue 3 API is now stable, so no major changes are expected. The community is pretty excited for the improvements in Vue 3, so it would be nice if it also worked in zero.

I'm curious about vue 3 support as well.


Incorrect markup for "Heidi Van Pelt"

The name "Heidi Van Melt" is marked up here as
<Name><GivenName>Heidi</GivenName> <And>Van</And> <Surname>Pelt</Surname></Name>
This appears to be incorrect. I would suggest:
<Name><GivenName>Heidi</GivenName> <Surname>Van</Surname> <Surname>Pelt</Surname></Name>
or
<Name><GivenName>Heidi</GivenName> <MiddleName>Van</MiddleName> <Surname>Pelt</Surname></Name>

I agree with the GivenName Surname Surname tagging. Want to make a PR @turkanis?


Using existing TGW already registered to existing global network fails

The solutions allows an existing TGW and existing global network to be set. Looks like the solution assumes the TGW would not already be registered with the global network. In my case this is not the case. Would be nice if it was possible to say the TGW is already registered with the global network to skip this step.

Added pull request to allow a conditional flag so you can skip registration if this is already done https://github.com/awslabs/serverless-transit-network-orchestrator/pull/36

Hello @charliejllewellyn Thanks for submitting the request. We've added this to the backlog and will review it in a future release

We have fixed this issue in V3.0.0 which released this week.


2.2.0 upgrade _unload function error

Right after upgrading to 2.2.0, there's a repetitive error for _unload function.
From journalctl -f -n 100 -eu plugin_loader:
Apr 22 00:07:40 steamdeck PluginLoader[1125]: [browser][INFO]: Installing Bluetooth from URL (Version: 2.2.0)
Apr 22 00:11:59 steamdeck PluginLoader[1125]: [browser][INFO]: Incrementing installs for Bluetooth from URL https://plugins.deckbrew.xyz/plugins (version 2.2.0)
Apr 22 00:16:19 steamdeck PluginLoader[1125]: [browser][INFO]: uninstalling Bluetooth
Apr 22 00:16:19 steamdeck PluginLoader[1125]: [browser][INFO]:  at dir /home/deck/homebrew/plugins/Bluetooth
Apr 22 00:16:19 steamdeck PluginLoader[1125]: [browser][INFO]: Installed Bluetooth (Version: 2.2.0)
Apr 22 00:16:19 steamdeck PluginLoader[1125]: ======== Running on http://<IP_ADDRESS>:1337 ========
Apr 22 00:16:19 steamdeck PluginLoader[1125]: (Press CTRL+C to quit)
Apr 22 00:16:19 steamdeck PluginLoader[1201]: [plugin][INFO]: Calling Loader unload function.
Apr 22 00:16:19 steamdeck PluginLoader[1201]: [plugin][INFO]: Attempting to unload with plugin Bluetooth's "_unload" function.
Apr 22 00:16:19 steamdeck PluginLoader[1201]: [plugin][INFO]: Could not find "_unload" in Bluetooth's main.py
Apr 22 00:16:19 steamdeck PluginLoader[1125]: [loader][INFO]: Loaded Bluetooth
Apr 22 00:16:19 steamdeck PluginLoader[1125]: [loader][INFO]: Loaded Bluetooth
Apr 22 00:16:19 steamdeck PluginLoader[1125]: [loader][INFO]: Loaded Bluetooth
Apr 22 00:16:19 steamdeck PluginLoader[1125]: [loader][INFO]: Loaded Bluetooth
Apr 22 00:16:19 steamdeck PluginLoader[1125]: [loader][INFO]: Loaded Bluetooth
Apr 22 00:16:19 steamdeck PluginLoader[1125]: [loader][INFO]: Loaded Bluetooth
Apr 22 00:16:19 steamdeck PluginLoader[1125]: [loader][INFO]: Loaded Bluetooth
Apr 22 00:16:19 steamdeck PluginLoader[1125]: [loader][INFO]: Loaded Bluetooth
Apr 22 00:16:19 steamdeck PluginLoader[1125]: [loader][INFO]: Loaded Bluetooth
Apr 22 00:16:20 steamdeck PluginLoader[1125]: [loader][INFO]: Loaded Bluetooth
Apr 22 00:16:20 steamdeck PluginLoader[46098]: [plugin][INFO]: Calling Loader unload function.
Apr 22 00:16:20 steamdeck PluginLoader[46098]: [plugin][INFO]: Attempting to unload with plugin Bluetooth's "_unload" function.
Apr 22 00:16:20 steamdeck PluginLoader[46098]: [plugin][INFO]: Could not find "_unload" in Bluetooth's main.py
Apr 22 00:16:21 steamdeck PluginLoader[46077]: [plugin][INFO]: Calling Loader unload function.
Apr 22 00:16:21 steamdeck PluginLoader[46077]: [plugin][INFO]: Attempting to unload with plugin Bluetooth's "_unload" function.
Apr 22 00:16:21 steamdeck PluginLoader[46077]: [plugin][INFO]: Could not find "_unload" in Bluetooth's main.py
Apr 22 00:16:21 steamdeck PluginLoader[46078]: [plugin][INFO]: Calling Loader unload function.
Apr 22 00:16:21 steamdeck PluginLoader[46078]: [plugin][INFO]: Attempting to unload with plugin Bluetooth's "_unload" function.
Apr 22 00:16:21 steamdeck PluginLoader[46078]: [plugin][INFO]: Could not find "_unload" in Bluetooth's main.py
Apr 22 00:16:21 steamdeck PluginLoader[46079]: [plugin][INFO]: Calling Loader unload function.
Apr 22 00:16:21 steamdeck PluginLoader[46079]: [plugin][INFO]: Attempting to unload with plugin Bluetooth's "_unload" function.
Apr 22 00:16:21 steamdeck PluginLoader[46079]: [plugin][INFO]: Could not find "_unload" in Bluetooth's main.py
Apr 22 00:16:21 steamdeck PluginLoader[46081]: [plugin][INFO]: Calling Loader unload function.
Apr 22 00:16:21 steamdeck PluginLoader[46081]: [plugin][INFO]: Attempting to unload with plugin Bluetooth's "_unload" function.
Apr 22 00:16:21 steamdeck PluginLoader[46081]: [plugin][INFO]: Could not find "_unload" in Bluetooth's main.py
Apr 22 00:16:21 steamdeck PluginLoader[46083]: [plugin][INFO]: Calling Loader unload function.
Apr 22 00:16:21 steamdeck PluginLoader[46083]: [plugin][INFO]: Attempting to unload with plugin Bluetooth's "_unload" function.
Apr 22 00:16:21 steamdeck PluginLoader[46083]: [plugin][INFO]: Could not find "_unload" in Bluetooth's main.py
Apr 22 00:16:21 steamdeck PluginLoader[46087]: [plugin][INFO]: Calling Loader unload function.
Apr 22 00:16:21 steamdeck PluginLoader[46089]: [plugin][INFO]: Calling Loader unload function.
Apr 22 00:16:21 steamdeck PluginLoader[46087]: [plugin][INFO]: Attempting to unload with plugin Bluetooth's "_unload" function.
Apr 22 00:16:21 steamdeck PluginLoader[46087]: [plugin][INFO]: Could not find "_unload" in Bluetooth's main.py
Apr 22 00:16:21 steamdeck PluginLoader[46089]: [plugin][INFO]: Attempting to unload with plugin Bluetooth's "_unload" function.
Apr 22 00:16:21 steamdeck PluginLoader[46089]: [plugin][INFO]: Could not find "_unload" in Bluetooth's main.py
Apr 22 00:16:21 steamdeck PluginLoader[46094]: [plugin][INFO]: Calling Loader unload function.
Apr 22 00:16:21 steamdeck PluginLoader[46094]: [plugin][INFO]: Attempting to unload with plugin Bluetooth's "_unload" function.
Apr 22 00:16:21 steamdeck PluginLoader[46094]: [plugin][INFO]: Could not find "_unload" in Bluetooth's main.py

What Steam Client version are you running?
I tested stable and beta and did not face this error. 🤔

Will close this issue once it's merged in Decky.

Glad to be of help <3

Fixed in 2.2.1 that was just released.
Thanks for the bug report!


fix typo, improve warning message

The code looks fine, but there still appear to be some minor spacing issues.  At least, in the web UI review of the diff's.  I think we can approve this, then deal with re-spacing ( via tabs ) in another PR.

Ship it.

Consecutive errors is correct.  When a successful image is taken it sets numErrors = 0;


Auto-indent fails to break out of nested context

Manual transfer from https://github.com/microsoft/pyrx/issues/2956
dataSetSize = 10

input = []
output = []
for i in range(10):
    number = random.random()
    input.append(number)
    if number < 0.5:
        output.append(0)
    else:
        output.append(1)
|<- hit enter here
		|<-jumps here
|<- expected here

Simpler repro:
if True:
    x = 1
|<- hit enter here

It doesn't repro for me if the |<- hit enter here line is the last line in the file.

This issue has been fixed in prerelease version 2022.11.41, which we've just released. You can find the changelog here: CHANGELOG.md


run AQL in remote method

Any example to show how to run AQL in loopback remote method?

@reidlaiatags See https://github.com/mrbatista/loopback-connector-arangodb/blob/master/test/core.test.coffee#L190

@codeyad I am closing the issue as resolved. If the issue is still persisting, please fell free to leave a comment and I will re-open the issue. Thanks.

@reidlaiatags I am closing the issue as resolved. If the issue is still persisting, please fell free to leave a comment and I will re-open the issue. Thanks.


Dep upgrades (esp. FBJS)

Upgrade FBJS to latest version which features wifi strength meter.

Coverage remained the same at 91.827% when pulling 29f2327407ea81f0b970e871b3441e2d84320404 on RickCarlino:huge_upgrade into ef2a9245c604f8f462d6de50090c2d00cb94b010 on FarmBot:staging.

Coverage remained the same at 91.827% when pulling 29f2327407ea81f0b970e871b3441e2d84320404 on RickCarlino:huge_upgrade into ef2a9245c604f8f462d6de50090c2d00cb94b010 on FarmBot:staging.


Crash in Godot 4.3rc2

The addon will cause Godot 4.3rc2 to crash on startup of the editor when there are ControllerIconTexture resources.
I've tracked it down to ControllerIconTexture._load_texture_path() . Commenting out the deferred call seems to "resolve" the issue. I do not know enough about the intention here though so the problem might be somewhere else?
Anyway, this is what I did to get rid of the crash in case it helps identify the real cause.
func _load_texture_path():
	# Ensure loading only occurs on the main thread
	#if OS.get_thread_caller_id() != OS.get_main_thread_id():
	#	_load_texture_path_main_thread.call_deferred()
	#else:
	#	_load_texture_path_main_thread()
	_load_texture_path_main_thread()

[edit] oh I think it is being looked at here?  https://github.com/rsubtil/controller_icons/pull/96

#96 was now closed since this was fixed on the engine side; this is very likely the same problem, so I'll close this for now. For anyone else encountering this issue:

[!note]
This bug was introduced on v4.3.beta1, and it is present up until v4.3.rc2; the next RC release should fix this, so please wait for the next RC release, or use v4.3.dev6 for now.


Unrecognized containers

I just installed ctop using the script for Linux in the readme.
When I run it, I see three containers that are not mine.  Is it accidentally pointed at a test server, perhaps?
Containers shown in ctop:

My containers:

@oxblue-rbollig can you check against your local $DOCKER_HOST and docker ps -a output?

Ah, drat!  They are docker containers on my local system, not LXD containers.
Documentation says

ctop comes with built-in support for Docker and runC; connectors for other container and cluster systems are planned for future releases.

So, this is not a bug.  Sorry!


feat: implementing toxiproxy, testcontainers, and an integration test

Adding Testcontainers and Toxiproxy to demonstrate an integration test of database behaviour during network outage.

Thanks for putting this together, @Mukamik!
Looks like the pos-pr-open-to-main GitHub check is failing.
I'm re-running to make sure it's not a flaky issue.
18:55:43.155 [main] DEBUG com.github.dockerjava.zerodep.shaded.org.apache.hc.client5.http.wire - http-outgoing-0 << "[read] I/O error: null"
18:55:43.156 [docker-java-stream--1841746279] DEBUG com.github.dockerjava.zerodep.shaded.org.apache.hc.client5.http.wire - http-outgoing-0 << "[read] I/O error: null"
18:55:43.161 [main] DEBUG com.github.dockerjava.zerodep.ApacheDockerHttpClientImpl$ApacheResponse - Failed to close the response
java.nio.channels.ClosedChannelException: null
	at java.base/sun.nio.ch.SocketChannelImpl.ensureOpenAndConnected(SocketChannelImpl.java:215)
	at java.base/sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:403)
	at java.base/sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:59)
	at java.base/sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:107)
	at java.base/sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:101)
	at com.github.dockerjava.zerodep.shaded.org.apache.hc.client5.http.impl.io.LoggingInputStream.read(LoggingInputStream.java:81)

@Mukamik after re-running the pos-pr-open-to-main (point-of-sale-ci) GitHub check, we're getting the same error: 😅
20:36:27.088 [docker-java-stream-529698192] DEBUG com.github.dockerjava.zerodep.shaded.org.apache.hc.client5.http.wire - http-outgoing-0 << "[read] I/O error: null"
20:36:27.090 [main] DEBUG com.github.dockerjava.zerodep.ApacheDockerHttpClientImpl$ApacheResponse - Failed to close the response
java.nio.channels.ClosedChannelException: null
	at java.base/sun.nio.ch.SocketChannelImpl.ensureOpenAndConnected(SocketChannelImpl.java:215)
	at java.base/sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:403)
	at java.base/sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:59)

Link to full Cloud Build logs here.
Do you know if this could be related to the changes from this pull-request?


Close .nav on any items tapped/clicked

It is needed when you have hash links that load another content via ajax, and the menu stays opened, and we dont want that.
In short:
		mouseHover = ('onmouseleave' in document) ? ['mouseenter', 'mouseleave'] : ['mouseover', 'mouseout'],
		+ mouseClick = ('ontouchstart' in document) ? ['tap'] : ['click'],

...
			for (var i = 0, itemsLength = items[length]; i < itemsLength; i++) {
				if (items[i][getElementsByTagName]('UL')[length]) {
					on(items[i], mouseHover[0], enterHandler);
					on(items[i], mouseHover[1], leaveHandler);
					+ on(items[i], mouseClick[0], leaveHandler);

Ah yes I forgot about that. I will think of a good solution but it's good I have something to start with ;)

onclick for top visible item with chevron should reveal dropdown
onclick for other items should hide all dropdowns
click on body should hide all dropdowns
these probaby arent needed:
mouseenter should accompany the touchenter
mouseleave should accompany the touchleave

@thednp I ended up with this https://gist.github.com/englishextra/76206ce67897113f5520e31a766fc5ce

@thednp here is the repo for you to test: https://github.com/englishextra/navbar.js

Thanks.

@englishextra please get ready to test the next version of navbar.js featuring ES6/ES7 scripting, rollup build tools, improved SCSS sources for faster render and mobile first design with responsive view special functions.

@englishextra please check the roadmap, you might like what it's all about.
Closing this down, future commit will solve this issue.

npm install navbar.js

@thednp Thanks


MINOR: add upgrade text

I'll backport this to the 2.3 branch as well.

This is docs-only change, so the test failure is definitely not related. Committing.


The error message sh: write error: Invalid argument is not understandable.
But the actual meaning is when "docker run --rm --privileged multiarch/qemu-user-static:register" try to add "binfmt_misc" entry files /proc/sys/fs/binfmt_misc/qemu-$arch, those files already exist.
/proc/sys/fs/binfmt_misc/qemu-$arch files are special files . [1]
When updating the file, we have to delete the file at once.
I am not sure which Linux distribution you are using.
When installing RPM qemu-user-staticon CentOS or Fedora, it adds the /proc/sys/fs/binfmt_misc/qemu-$arch files as a post script after yum install qemu-user-static.
There is deb package qemu-user-static package on Debian or Ubuntu.
It is possible those files already exist when you run "docker run --rm --privileged multiarch/qemu-user-static:register".
Here is the way to change flags:  to flags: F for /proc/sys/fs/binfmt_misc/qemu-aarch64.
# prompt is executed by root user. sudo does not work for the operation.
But if you try this operation, that is by your own responsibility.
If the environment is really clean without binfmt_misc files. Maybe condition is like this.
$ ls /proc/sys/fs/binfmt_misc
register  status

# echo -1 > /proc/sys/fs/binfmt_misc/qemu-aarch64

$ ls /proc/sys/fs/binfmt_misc/qemu-aarch64
ls: cannot access '/proc/sys/fs/binfmt_misc/qemu-aarch64': No such file or directory

# echo ":qemu-aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-aarch64-static:" > /proc/sys/fs/binfmt_misc/register

$ ls /proc/sys/fs/binfmt_misc/qemu-aarch64
/proc/sys/fs/binfmt_misc/qemu-aarch64

$ cat /proc/sys/fs/binfmt_misc/qemu-aarch64
enabled
interpreter /usr/bin/qemu-aarch64-static
flags:
offset 0
magic 7f454c460201010000000000000000000200b700
mask ffffffffffffff00fffffffffffffffffeffffff

# echo -1 > /proc/sys/fs/binfmt_misc/qemu-aarch64

$ ls /proc/sys/fs/binfmt_misc/qemu-aarch64
ls: cannot access '/proc/sys/fs/binfmt_misc/qemu-aarch64': No such file or directory

# echo ":qemu-aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-aarch64-static:F" > /proc/sys/fs/binfmt_misc/register

$ cat /proc/sys/fs/binfmt_misc/qemu-aarch64
enabled
interpreter /qus/bin/qemu-aarch64-static
flags: F
offset 0
magic 7f454c460201010000000000000000000200b700
mask ffffffffffffff00fffffffffffffffffeffffff

I would close this ticket, as it is expected behavior.
But you like to reopen, you can do it.
Thanks for reporting!
By the way today we release a new image "multiarch/qemu-user-static" that can build and run standard architecture specific container instead of multiarch compatible imagtes.
Like this.
$ uname -m
x86_64

$ docker run --rm -t arm64v8/ubuntu uname -m
standard_init_linux.go:211: exec user process caused "exec format error"

$ docker run --rm --privileged multiarch/qemu-user-static --reset -p yes

$ docker run --rm -t arm64v8/ubuntu uname -m
aarch64

[1] https://www.kernel.org/doc/html/latest/admin-guide/binfmt-misc.html

The register image is using below QEMU's scripts/qemu-binfmt-conf.sh script internally.
So, if the message is not understandable, you might be able to report to QEMU project.
Below is the logic to add binfmt_misc entry.
https://github.com/qemu/qemu/blob/master/scripts/qemu-binfmt-conf.sh#L269-L270
qemu_register_interpreter() {
    echo "Setting $qemu as binfmt interpreter for $cpu"
    qemu_generate_register > /proc/sys/fs/binfmt_misc/register
}

@junaruga I'm not sure I follow all of what you said. Could you please expand a little bit on it?
My build output can be found here: https://travis-ci.com/hoshsadiq/qemu-testing/builds/124639278
As you can the /proc/sys/fs/binfmt_misc/ is empty and doesn't have the files as suggested in your comment (unless I misunderstood).

https://travis-ci.com/hoshsadiq/qemu-testing/builds/124639278

@hoshsadiq in your Travis log, below command outputs error message then finishes with exit status: 0. that is what we have to fix.
$ docker run --rm --privileged multiarch/qemu-user-static:$QUS_VERSION --reset -p yes
Status: Downloaded newer image for multiarch/qemu-user-static:v4.0.0-4
sh: write error: Invalid argument
...

That means docker run --rm --privileged multiarch/qemu-user-static:$QUS_VERSION --reset -p yes failed to create /proc/sys/fs/binfmt_misc/qemu-* files.
I do not know why for now. To know it, we need to debug /qemu-binfmt-conf.sh injecting set -x in it.
But in your case I found why the issue happened.
Here is my repository forked from your qemu testing repository.
https://github.com/junaruga/qemu-testing/tree/feature/debug
https://travis-ci.org/junaruga/qemu-testing/builds/577460704
diff --git a/.travis.yml b/.travis.yml
index 8a2fc7a..b31a117 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,4 +1,4 @@
-dist: trusty
+dist: xenial
 # sudo: required
 language: minimal

After changing dist from trusty to xenial, you can run it without errors.

This repository's .travis.yml might be also useful.
https://github.com/junaruga/ci-multi-arch-test

Ah.  I was meant to be using bionic. Seems this is supported on Xenial and above. Thank you!

echo ":qemu-aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-aarch64-static:F" > /proc/sys/fs/binfmt_misc/register

@lugeng I got the same error, did you find a solution? Thanks!

The F flag is a relatively new feature of the kernel binfmt_misc. Maybe it does not work if uname -r < 4. See https://github.com/multiarch/qemu-user-static/issues/100#issuecomment-566033988

facing the same issue, kernel is 4.4, OS: Ubuntu 18.04.4 LTS. Tried running both, with and without -p yes, but no progress.

must uname -r  > 4.8

I have similar issue in docker.io/library/docker:19.03.14 container  (Linux reynwz-containerize-pod 3.10.0-1160.62.1.el7.x86_64 #1 SMP Wed Mar 23 09:04:02 UTC 2022 x86_64 Linux) running the following but getting errors:
docker run --rm --privileged multiarch/qemu-user-static --reset -p yes

Status: Downloaded newer image for multiarch/qemu-user-static:latest
Setting /usr/bin/qemu-alpha-static as binfmt interpreter for alpha sh: write error: Invalid argument
Setting /usr/bin/qemu-arm-static as binfmt interpreter for arm sh: write error: Invalid argument
Setting /usr/bin/qemu-armeb-static as binfmt interpreter for armeb sh: write error: Invalid argument
Setting /usr/bin/qemu-sparc-static as binfmt interpreter for sparc sh: write error: Invalid argument
Setting /usr/bin/qemu-sparc32plus-static as binfmt interpreter for sparc32plus sh: write error: Invalid argument
Setting /usr/bin/qemu-sparc64-static as binfmt interpreter for sparc64 sh: write error: Invalid argument
Setting /usr/bin/qemu-ppc-static as binfmt interpreter for ppc sh: write error: Invalid argument
Setting /usr/bin/qemu-ppc64-static as binfmt interpreter for ppc64 sh: write error: Invalid argument
Setting /usr/bin/qemu-ppc64le-static as binfmt interpreter for ppc64le sh: write error: Invalid argument
Setting /usr/bin/qemu-m68k-static as binfmt interpreter for m68k sh: write error: Invalid argument
Setting /usr/bin/qemu-mips-static as binfmt interpreter for mips sh: write error: Invalid argument
Setting /usr/bin/qemu-mipsel-static as binfmt interpreter for mipsel sh: write error: Invalid argument
Setting /usr/bin/qemu-mipsn32-static as binfmt interpreter for mipsn32 sh: write error: Invalid argument
Setting /usr/bin/qemu-mipsn32el-static as binfmt interpreter for mipsn32el sh: write error: Invalid argument
Setting /usr/bin/qemu-mips64-static as binfmt interpreter for mips64 sh: write error: Invalid argument
Setting /usr/bin/qemu-mips64el-static as binfmt interpreter for mips64el sh: write error: Invalid argument
Setting /usr/bin/qemu-sh4-static as binfmt interpreter for sh4 sh: write error: Invalid argument
Setting /usr/bin/qemu-sh4eb-static as binfmt interpreter for sh4eb sh: write error: Invalid argument
Setting /usr/bin/qemu-s390x-static as binfmt interpreter for s390x sh: write error: Invalid argument
Setting /usr/bin/qemu-aarch64-static as binfmt interpreter for aarch64 sh: write error: Invalid argument
Setting /usr/bin/qemu-aarch64_be-static as binfmt interpreter for aarch64_be sh: write error: Invalid argument
Setting /usr/bin/qemu-hppa-static as binfmt interpreter for hppa sh: write error: Invalid argument
Setting /usr/bin/qemu-riscv32-static as binfmt interpreter for riscv32 sh: write error: Invalid argument
Setting /usr/bin/qemu-riscv64-static as binfmt interpreter for riscv64 sh: write error: Invalid argument
Setting /usr/bin/qemu-xtensa-static as binfmt interpreter for xtensa sh: write error: Invalid argument
Setting /usr/bin/qemu-xtensaeb-static as binfmt interpreter for xtensaeb sh: write error: Invalid argument
Setting /usr/bin/qemu-microblaze-static as binfmt interpreter for microblaze sh: write error: Invalid argument
Setting /usr/bin/qemu-microblazeel-static as binfmt interpreter for microblazeel sh: write error: Invalid argument
Setting /usr/bin/qemu-or1k-static as binfmt interpreter for or1k sh: write error: Invalid argument
Setting /usr/bin/qemu-hexagon-static as binfmt interpreter for hexagon sh: write error: Invalid argument

Any hints whats the problem and what can I do to fix this issue?
 Try to upgrade it.

must uname -r > 4.8
@lqhandsome Yeah, that was the issue, thanks. :)


Remove the Yarn.lock

Be carefull not removing any important package in process .

Hello, I'm a GSSo'C 2022 Contributor,
Please assign me this issue.

@AviralSheoran  I have assigned the issue to you Best Wishes , for any problem reach out to us on discord .

@SaraswatGit in case he's not able to finish the task please assign me the same under GSSOC 2022

@nitishsaini706  I have assigned the issue to you Best Wishes , for any problem reach out to us on discord .

hello sir @SaraswatGit  I Contributed To This Project In JWOC . And Now I Am Contributor/ participant . where i can Find Discord  Link For GSSOC  ?

@abhiimali  It must have been mailed to you if ur selected , check in spams .

@SaraswatGit I already completed this task and pushed the pr for review
please review and merge the same


Adding link to GitHub

These changes fixes #178
I updated Card.jsx and SchedulePage.jsx to change styling depending on themeName.
I also made the exercises and schedule names italic.
This is how it looks now on dark mode for exercise cards:

And this is how  it looks like now on dark mode for schedules:

@gabrysia694 Yes definitely, I will make an update :)

@gabrysia694 Would it be ok like this?


Use namespaces / PSR-4

Since ffmpeg-php already requires PHP 5.3 it would be great if it would use namespaces and follow the PSR-2 standard  (I'd recommon to at least follow PSR-0 for autoloading).
If you want to follow PSR standards [1] you could use php-cs-fixer.phar [2] to check for the requirements defined by the standards.
This would be more autoloader friendly and no own implementation of such an autoloader would be required. It would also better integrate into frameworks such as Symfony2 and Zend2 which already heavily depend on namespaces.
[1] PSR-0: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-0.md PSR-1: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md PSR-2: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md
[2] https://github.com/fabpot/PHP-CS-Fixer

Btw, if we're talking standards, PSR-4 is likely the current option.

Yep, time goes on so quickly ;]

Yesterday I was thinking about migrating to PSR-4. I guess I'll start the process on PSR-4 branch in a couple of days or weeks. @theMadness will you find some time for reviews or maybe event making a few commits yourself ?

I'll try to squeeze some in. I'm pushing hard on some pressing tasks, but I might be able to carve some time.

Ok cool. Don't worry it's going to be ongoing long running task, I'm no
gonna press you ;]
On 6 March 2017 at 21:51, theMadness<EMAIL_ADDRESS>wrote:

I'll try to squeeze some in. I'm pushing hard on some pressing tasks, but
I might be able to carve some time.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/char0n/ffmpeg-php/issues/15#issuecomment-284528220,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AALzBvjpHVd43oWMXR3i1W4A6kbtBD8-ks5rjHHNgaJpZM4AZQLK
.

--
Vladimír Gorej
email: v gorej<EMAIL_ADDRESS>tel: +420 777 861 279, +421 948 023 011
web: https://www.linkedin.com/in/vladimirgorej

Are you going to start a branch for this?

Created PSR-4 branch. For now master is frozen before PSR-4 is ready. Need to study what PSR-4 is and how write code in it. Then I'll begin initial work.

It's a pretty straightforward concept, if you need assistance let me know and we can chat about it.

Am I on the right track here: http://www.php-fig.org/ ?

Yep
On Wed, Mar 8, 2017, 12:35 PM Vladimir Gorej<EMAIL_ADDRESS>wrote:

Am I on the right track here: http://www.php-fig.org/ ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/char0n/ffmpeg-php/issues/15#issuecomment-285160880,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJ0YOZroxP93INl5DZJ0ip_l97FkXToks5rjxEIgaJpZM4AZQLK
.

Yes. It's basically a standard for naming classes.

I've create a PSR project to manage things there. I have also added you as a collaborator to ffmpeg-php, so that you have direct push access to branches. But please contains your future commits to PSR-4 branch for now.

Ok, we have a small issue, the instructions out there are to bring in the dev-master branch, if people followed that instruction, they will end up bringing in a library whose class names won't match ANY of the code they have.
Options:

We ignore that fact, people should know what to expect when they bring in dev-master versions
We move the PSR-4 version to a new repo
We tag 3.* releases from the PSR-4 branch and leave dev-master as pointing to the 2.*

We still have develop branch. What about leaving 2.* branch on master and after PSR-4 is ready, renaming it to develop and making it default branch. This way we solve all problems in one shot. After reasonable amount of time, we merge develop to master and make ti again default branch. Non-PSR-4 code will be available under release tag or we allocate it a special branch. Non-PSR-4 will be there for legacy reasons only and will not receive any new features and bugfixes.
Does it make sense ?

So, option 3 for a while, and then switch to option 1? It could work, I think all 3 options are viable, and they all have drawbacks.

Yeah, I also think it can work. Agreed then.

Pushed some code.

@theMadness great work.  Is it possible to have namespace just FFMpegPHP instead of Char0n\FFMpegPHP ? Or is it too generic ?

You usually want to have the namespace be vendorname\libraryname  to avoid collisions with other libraries.

Added codesniffer composer scripts to validate the PSR standards. @theMadness see the git log for more details.

Done some work again in today's commits. Branch is not ready to receive progressive code adding and changes. First tests for Movie class integrated. Circle ci is checking that every commit is OK.
@theMadness FYI: I have been communicating with original author of ffmpeg C extension Todd Kirby. He has been pleased that this project is still  alive and he will be joining us  in near future as a committer. I have already negotiated mentioning our lib here: https://sourceforge.net/projects/ffmpeg-php/. He is still working on editing this page: http://ffmpeg-php.sourceforge.net/

Downright Impressive.

@theMadness entire codebase transformed into PSR-4. What remains is to compile proper README.md and we're good to go for a psr release.

That's great, I don't currently use this library anymore (new job) but I'm
here if needs be.
On Wed, Aug 23, 2017, 5:50 AM Vladimir Gorej<EMAIL_ADDRESS>wrote:

@theMadness https://github.com/themadness entire codebase transformed
into PSR-4. What remains is to compile proper README.md and we're good to
go for a psr release.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/char0n/ffmpeg-php/issues/15#issuecomment-324319170,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAJ0YKC00iZZ-YLQsIivbwBUxdShhkvLks5sbB_rgaJpZM4AZQLK
.

@theMadness maybe if you find some free time, do a final code review of the PS4 code. Thank you.

Ok this is done on PSR-4-develop branch.


Cannot build wheel on Ubuntu

I'm getting an error when using this library as a dependency for my project. It seems to install fine on Windows but on my Ubuntu container it is having issues. I'm getting a warning which states the following:
  WARNING: Generating metadata for package table2ascii produced metadata for project name unknown. Fix your #egg=table2ascii fragments. Discarding https://files.pythonhosted.org/packages/0d/e9/65658efb967949efc69a3fab57722912bfecbabe359966931a9b801be4ff/table2ascii-1.1.0.tar.gz#sha256=7d4767ad57e8b78cee07aa6400df1bf50f18e0e6ef78d5f4f2cd035744662974 (from https://pypi.org/simple/table2ascii/) (requires-python:>=3.7): Requested unknown from https://files.pythonhosted.org/packages/0d/e9/65658efb967949efc69a3fab57722912bfecbabe359966931a9b801be4ff/table2ascii-1.1.0.tar.gz#sha256=7d4767ad57e8b78cee07aa6400df1bf50f18e0e6ef78d5f4f2cd035744662974 (from -r requirements.txt (line 8)) has inconsistent name: filename has 'table2ascii', but metadata has 'unknown'
And then the wheel-build process fails with the following error:
× Building wheel for table2ascii (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [65 lines of output]
      running bdist_wheel
      running build
      running install
      running install_egg_info
      Traceback (most recent call last):
        File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
          main()
        File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 261, in build_wheel
          return _build_backend().build_wheel(wheel_directory, config_settings,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 230, in build_wheel
          return self._build_with_temp_dir(['bdist_wheel'], '.whl',
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 215, in _build_with_temp_dir
          self.run_setup()
        File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 158, in run_setup
          exec(compile(code, __file__, 'exec'), locals())
        File "setup.py", line 16, in <module>
          setup(name="table2ascii", version=version())
        File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 153, in setup
          return distutils.core.setup(**attrs)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 148, in setup
          return run_commands(dist)
                 ^^^^^^^^^^^^^^^^^^
        File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 163, in run_commands
          dist.run_commands()
        File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 967, in run_commands
          self.run_command(cmd)
        File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 986, in run_command
          cmd_obj.run()
        File "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py", line 335, in run
          self.run_command('install')
        File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 986, in run_command
          cmd_obj.run()
        File "/usr/lib/python3/dist-packages/setuptools/command/install.py", line 68, in run
          return orig.install.run(self)
                 ^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/lib/python3/dist-packages/setuptools/_distutils/command/install.py", line 622, in run
          self.run_command(cmd_name)
        File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 985, in run_command
          cmd_obj.ensure_finalized()
        File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 107, in ensure_finalized
          self.finalize_options()
        File "/usr/lib/python3/dist-packages/setuptools/command/install_egg_info.py", line 25, in finalize_options
          self.set_undefined_options('install_lib',
        File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 287, in set_undefined_options
          src_cmd_obj.ensure_finalized()
        File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 107, in ensure_finalized
          self.finalize_options()
        File "/usr/lib/python3/dist-packages/setuptools/command/install_lib.py", line 17, in finalize_options
          self.set_undefined_options('install',('install_layout','install_layout'))
        File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 290, in set_undefined_options
          setattr(self, dst_option, getattr(src_cmd_obj, src_option))
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 103, in __getattr__
          raise AttributeError(attr)
      AttributeError: install_layout. Did you mean: 'install_platlib'?
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for table2ascii

I don't see that issue occurring when I try it.
Is there an update available for pip? If so, you can update with pip install -U pip.

Sorry for the trouble, it seemed that I was having issues with any versions after 1.0.1 but then I tried using a python environment where I wasn't sudoing pip and everything worked fine.


Does or will this lib support insta messaging?

Had a look at the examples and it didn't seem to be in there. So any future plans for supporting insta messaging?
I found php and js libs that support that feature, but as of now I'm only a python dev so would be nice to have a python implementation.

Hi, Instabot supports this methods, but instant library is not under development now. So if you transfer the working code from instabot to instapro, that would be nice.


Editor autosaves over filesystem changes when playing

If I work in an external editor, then switch back to Godot, the "Please Confirm..." files changed dialog appears.  However, it is possible to click "play" with the dialog box still open, which will cause the editor to play the project, saving all of the old versions of the files over the externally changed versions.
The "Please Confirm..." dialog should probably not allow any other interaction with the editor until the situation has been resolved.

yeah i thought this worked but it eventually broke, I think due to a PR,
thanks for reporting thought Will fix it before next version
On Sun, Aug 9, 2015 at 6:26 PM, Kevin Smith<EMAIL_ADDRESS>wrote:

If I work in an external editor, then switch back to Godot, the "Please
Confirm..." files changed dialog appears. However, it is possible to click
"play" with the dialog box still open, which will cause the editor to play
the project, saving all of the old versions of the files over the
externally changed versions.
The "Please Confirm..." dialog should probably not allow any other
interaction with the editor until the situation has been resolved.
—
Reply to this email directly or view it on GitHub
https://github.com/okamstudio/godot/issues/2350.

--
OkamStudio

Is there a way to force focus on a GUI element?  I looked into fixing this (in tools/editor/plugins/script_editor_plugin.cpp) but disabling the play buttons didn't seem like a proper fix to me.


Software crashes if the LabVIEW exe isn't present

If you have an invalid LabVIEW path or a path to an version of LabVIEW that isn't installed an exception occurs.
This needs to be checked and handled properly.

Fixed by @rose-a changes.


How do I run an npm command with NPM_TOKEN?

I'm not able to figure it out... perhaps you know?

Forgive me for tagging you @satazor but I see you were the last person to commit.

I guess you can pass npm token as a env var? Cross spawn has the same options as node’s spawn.


UB for borrowed type containing interior mutability

Filing to track @jDomantas's report in https://www.reddit.com/r/rust/comments/m42fjx/safetouse_procmacrofree_selfreferential_structs/gqt6jkm/.
The signature of get_or_init_dependent improperly permits the caller to pick an arbitrarily short lifetime 'a, and then put a reference that is only live for 'a into Dependent. Then it's possible for them to later pick a longer lifetime 'b and get a Dependent<'b> back out, leading to Use After Free or other undefined behavior in safe code.
use once_self_cell::sync_once_self_cell;
use std::cell::Cell;

struct Owner(Cell<&'static str>);

struct Borrowed<'a>(Cell<&'a str>);

impl<'a> From<&'a Owner> for Borrowed<'a> {
    fn from(owner: &'a Owner) -> Borrowed<'a> {
        let r = owner.0.get();
        Borrowed(Cell::new(r))
    }
}

sync_once_self_cell!(
    SelfRef,
    Owner,
    Borrowed<'_>,
);

fn do_evil(cell: &SelfRef) {
    let str = String::from("short lived");
    let dep = cell.get_or_init_dependent();
    dep.0.set(&str);
}

fn main() {
    let cell = SelfRef::new(Owner(Cell::new("static string")));
    do_evil(&cell);
    let dep = cell.get_or_init_dependent();
    println!("string: {:?}", dep.0.get());
}

See this comment chain for more background and discussion of different approaches https://www.reddit.com/r/rust/comments/m42fjx/safetouse_procmacrofree_selfreferential_structs/gqxvk7r/?context=10000
I'll fix it once I find the time.

This gets addressed by https://github.com/Voultapher/once_self_cell/pull/7, the relevant place are:

https://github.com/Voultapher/once_self_cell/pull/7/files#diff-b1a35a68f14e696205874893c07fd24fdb88882b47c23cc0e0c80a30c7d53759R228
https://github.com/Voultapher/once_self_cell/pull/7/files#diff-83383586981657b45e01cb93536cb01924ff72508d8605bc108c3df989cade15
https://github.com/Voultapher/once_self_cell/pull/7/files#diff-b1a35a68f14e696205874893c07fd24fdb88882b47c23cc0e0c80a30c7d53759R334


MAoT Raster Off Road Mobility using services Received errors 999999, 010213, 010325, 010067

Ran the tool using services and received errors 999999, 010213, 010325, 010067. The may be due to version differences between the template and the current software/services builds.
Error 99999 General Fault Error
Error 010213 Error in reading grid  "There was an error encountered when trying to read the specified grid. Problems accessing a grid are most commonly the result of missing required component files in the grid's folder. Consult the documentation to see the required files for the ESRI Grid format. If all of the required components are present, it is also possible that the files that contain the binary raster data are internally corrupted."
Error 010325 Run-time error - *** "The tool or method encountered an error during execution. This is a general response that may be used for many possible error conditions or where a specific cause could not be trapped."
Error 010067 Error in executing grid expression "There was a problem executing the map algebra expression"

Tested this with AGOL's Terrain service (as both elevation and percent slope) and it completes successfully, with correct cell size...
Executing: RasterOffroadMobility AOI "C:\Users\matt2542\Documents\GitHub\solutions-geoprocessing-toolbox\suitability\toolboxes\tooldata\Military Aspects of Terrain Tools.gdb\maotVehicleParameters" "M1 Abrams" "Terrain (AGOL)" "Pct Slope (AGOL)" C:\Workspace\Test\TestForErikReid\aTarget.gdb\mfROM_M1_0001 # "C:\Users\matt2542\Documents\GitHub\solutions-geoprocessing-toolbox\suitability\toolboxes\tooldata\Military Aspects of Terrain Tools.gdb\maotLandCover" MAX # "C:\Users\matt2542\Documents\GitHub\solutions-geoprocessing-toolbox\suitability\toolboxes\tooldata\Military Aspects of Terrain Tools.gdb\maotSoils" DRY # "C:\Users\matt2542\Documents\GitHub\solutions-geoprocessing-toolbox\suitability\toolboxes\tooldata\Military Aspects of Terrain Tools.gdb\maotSurfaceRoughness" "PROJCS['WGS_1984_UTM_Zone_42N',GEOGCS['GCS_WGS_1984',DATUM['D_WGS_1984',SPHEROID['WGS_1984',6378137.0,298.257223563]],PRIMEM['Greenwich',0.0],UNIT['Degree',0.0174532925199433]],PROJECTION['Transverse_Mercator'],PARAMETER['false_easting',500000.0],PARAMETER['false_northing',0.0],PARAMETER['central_meridian',69.0],PARAMETER['scale_factor',0.9996],PARAMETER['latitude_of_origin',0.0],UNIT['Meter',1.0]];-5120900 -9998100 10000;-100000 10000;-100000 10000;0.001;0.001;0.001;IsHighPrecision"
Start Time: Mon Feb 23 15:05:10 2015
Running script RasterOffroadMobility...
START: 02/23/2015  15:05:13
scratch: C:\Workspace\Test\TestForErikReid\scratch.gdb
Using cell size: 6.93042680604
Building vehicle table...
vehicleTable: {'HMMWV': ['LIGHT_WHEELED', 'HMMWV', 2.6, 144.0, 60.0, 45.0], 'MRAP Buffalo': ['HEAVY_WHEELED', 'MRAP Buffalo', 24.25, 105.0, 60.0, 45.0], 'M113 APC': ['LIGHT_TRACKED', 'M113 APC', 15.5, 66.0, 60.0, 45.0], 'Wild Ass/Donkey': ['PACK_ANIMAL', 'Wild Ass/Donkey', 0.25, 56.0, 45.0, 45.0], 'Generic ATV': ['ATV', 'Generic ATV', 0.25, 90.0, 60.0, 45.0], 'M2 Bradley': ['MEDIUM_TRACKED', 'M2 Bradley', 27.0, 66.0, 60.0, 45.0], 'M1 Abrams': ['HEAVY_TRACKED', 'M1 Abrams', 69.5, 72.0, 60.0, 45.0], 'IAV Stryker': ['MEDIUM_WHEELED', 'IAV Stryker', 19.0, 100.0, 60.0, 45.0]}
vehicleParams: ['HEAVY_TRACKED', 'M1 Abrams', 69.5, 72.0, 60.0, 45.0]
Clipping slope...
Reclassifying Slope ...
reclassSlope: C:\Workspace\Test\TestForErikReid\reclassSlope.tif
Con: 02/23/2015  15:05:23
Clipping Elevation...
F1: 02/23/2015  15:05:37
slopeClip: C:\Workspace\Test\TestForErikReid\scratch.gdb\slopeClip
Surface Curvature ...
Curvature: 02/23/2015  15:05:38
Focal Stats: 02/23/2015  15:05:41
maxRasStat:<PHONE_NUMBER>77 - <type 'float'>
fsRasStat: C:\Workspace\Test\TestForErikReid\scratch.gdb\focalStats - <type 'Raster'>
BEFORE: [u'C:\\Workspace\\Test\\TestForErikReid\\scratch\\f1.tif', u'C:\\Workspace\\Test\\TestForErikReid\\scratch\\f2.tif'] 02/23/2015  15:05:44
Two factors [u'C:\\Workspace\\Test\\TestForErikReid\\scratch\\f1.tif', u'C:\\Workspace\\Test\\TestForErikReid\\scratch\\f2.tif'] : 02/23/2015  15:05:44
DONE: 02/23/2015  15:05:46
Removing intermediate datasets...
Removing: C:\Workspace\Test\TestForErikReid\scratch.gdb\slopeClip
Removing: C:\Workspace\Test\TestForErikReid\reclassSlope.tif
Removing: C:\Workspace\Test\TestForErikReid\scratch.gdb\elevClip
Removing: C:\Workspace\Test\TestForErikReid\scratch.gdb\constNoEffect
Removing: C:\Workspace\Test\TestForErikReid\scratch\f1.tif
Removing: C:\Workspace\Test\TestForErikReid\scratch.gdb\curvature
Removing: C:\Workspace\Test\TestForErikReid\scratch.gdb\focalStats
Removing: C:\Workspace\Test\TestForErikReid\scratch\f2.tif
Done
Completed script RasterOffroadMobility...
Succeeded at Mon Feb 23 15:05:50 2015 (Elapsed Time: 39.90 seconds)


Take the latest version of base

This PR brings the latest version of base.

@armiol @alexander-yevsyukov PTAL


Detect when the user is editing the same file in multiple tabs and wa…

…rn about it

We could consider automatically merging the changes. The event has the old and new values. In theory, we could just take the new value, set the current state to it, and suppress the update to local storage (because it's already in there, and otherwise the other tab would see the change and recurse...). If people are editing different pages, it'll work out fine. If they've got the same page open twice (unlikely), then the last write wins, which seems intuitive.
But if we go for this, there might be subtle data races I'm not thinking about. Do you anticipate any problems? I'd like to set up some tests for this, at the very least.

We could consider automatically merging the changes. The event has the old and new values. In theory, we could just take the new value, set the current state to it, and suppress the update to local storage (because it's already in there, and otherwise the other tab would see the change and recurse...). If people are editing different pages, it'll work out fine. If they've got the same page open twice (unlikely), then the last write wins, which seems intuitive.
But if we go for this, there might be subtle data races I'm not thinking about. Do you anticipate any problems? I'd like to set up some tests for this, at the very least.

This sounds sensible.  I wonder if we can explain some of this. Maybe the simplest thing would be to suggest the user refreshes and checks the page contains what they expect when they receive the alert.
"If you edited another section in the other tab your data here should be safe, but in any case it might be wise to refresh, make sure the correct file is open and this section contains what you expect"?
Separately I think there's an issue with tabs and editing different files in different tabs, too. If you refresh it switches to whatever file you last changed to in another tab? Is this something we wanna think about?

Separately I think there's an issue with tabs and editing different files in different tabs, too. If you refresh it switches to whatever file you last changed to in another tab? Is this something we wanna think about?

This is a really good point. We're also using local storage right now to indicate the last edited file. I think we'd be OK if someone keeps the tab open and doesn't refresh and keeps using the page normally (but I'll verify). If they refresh, then it'll switch over to one file, maybe unexpectedly. We could use session storage (which is per tab) but then that loses the "auto open last file" feature...

Tests
Playwright can do multiple tabs, so we could automate these. For now, just recording what I did manually. https://playwright.dev/docs/pages
Same file, different pages

Opened summary in tab 1, filled in some text boxes
Opened path check in tab 2, answered some questions
Verify the path check data shows up in tab 1, navigate back to summary, and verify the text boxes are still filled out
Likewise in tab 2 -- check summary, then back to the questions

Same file, same page

Opened the same path check question in two tabs
Edit in tab 1, check it shows up in both tabs
Edit in tab 2, check it shows up in both tabs

As weird as this one is, it works. Where it might break is something like the PMP or JAT, where there's more temporary state (for things like focusing/editing one object). The user could edit a critical in one tab, then delete it from another. This'll break the first tab in a weird way. I'd say we should just expect users to not actually do this.
Different files

In tab 1, open file 1 and edit stuff
In tab 2, open file 2 and edit stuff
Observe both tabs working normally and independently
Refresh each tab. In one of the tabs, it switches to the other file, so that both tabs wind up on the same file.

This is a little bit confusing, but it only happens when refreshing or opening a new tab. If we want to fix it, we could either stick the current filename in the URL as a query parameter and propagate it everywhere we open links (very gross solution) or try two different storages for last-opened-file -- session and local storage. Write it in both. Read first from session, then fallback to local.
Possible errors
A determined user can cause some weirdness by filling out street check in one tab, then changing the route check type to path in another tab. This doesn't really break anything; the filled-out street check data gets ignored by the rest of the tool. This is already possible anyway if the user enters the URL directly and bypasses the clickable navigation.

I forgot a test case
Deleting a file in one tab

Open the same file in two tabs
Delete it in tab1
Observe the alert in tab 2, but that state is otherwise still there
Make more edits in tab 2, then open file manager and verify the file got recreated

This is a little bit confusing, but it only happens when refreshing or opening a new tab. If we want to fix it, we could either stick the current filename in the URL as a query parameter and propagate it everywhere we open links (very gross solution) or try two different storages for last-opened-file -- session and local storage. Write it in both. Read first from session, then fallback to local.

For the different files case, there doesn't seem to be a simple way for us to handle this. I tried setting session storage too and using that first, but when opening a link in a new tab, session storage gets cleared out (per design). I also tried a svelekit hook but it doesn't get called when opening something in a new tab.
The only implementation I can think of is to add URL query parameters to every single link to indicate the file to load. That's an extremely invasive code change. For now I think we can just warn people when they're editing different files in multiple tabs and also opening multiple tabs per file.
OK to merge this?

I think this is worth merging as an incremental step. The multi-file experience will still be confusing, but it was before anyway. Thoughts?


Fix LaTeX display of composite gate matrix.

The code gate_latex[0:-4] is presumably intended to remove the escaped double slashes \\\\ at the end of the last row of the matrix, but only 2 characters need to be removed because the escape sequences are interpreted before the removal happens. The existing code also erroneously removes the final 0j which should be displayed.
(It's very confusing because if you look at the raw notebook source code, each slash is escaped again resulting in a sequence of eight slashes \\\\\\\\!)

Very nice catch @dlyongemallo -- thanks!


Error in updating the value at myStr

Challenge Concatenating Strings with Plus Operator has an issue.
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:

// Example
var ourStr = "I come first. " + "I come second.";

// Only change code below this line

var myStr = "This is the start." + " This is the end. ";

@vineethkasula Thank you for reporting this issue. You have an extra space in your string.
This is a standard message notifying you that this issue seems to be a request for help. Instead of asking for help here, please click the "help" button on the challenge on freeCodeCamp, which will take you to the help chatroom for that specific challenge. You can also view our full list of official chatrooms.
If you think I'm wrong in closing this issue, please reopen it and add further clarification. Thank you, and happy coding!

I have the same answer and tried to get help in two chatrooms.
In the Javascript chatroom i was told to put in another space, but at the left and the right of the code i allready have a space.
var myStr = "This is the start."  +  "This is the end.";
I don't know where to ask for help now but here.

Hi @RenevandenHeuvel!
The correct answer must be:
This is the start. This is the end.
Your code is missing a space after the period of the first string. Here is the result of your code:
This is the start.This is the end.

Thanks, i had to a break by the way, because I also was referring to another challenge in the chatrooms :)


protect api endpoint

used CORS for clip.laavesh.co

done!

done in microsoft azure and using the flask api


Fixing Issue-1261 for uPortal

Checklist

[ ] the individual contributor license agreement is signed
[ ] commit message follows commit guidelines
[ ] tests are included
[ ] documentation is changed or added
[ ] message properties have been updated with new phrases
[ ] view conforms with WCAG 2.0 AA

Description of change

@sherazahmed83 any chance this could be directed to jasig/uPortal?

https://help.github.com/articles/fork-a-repo
https://help.github.com/articles/creating-a-pull-request-from-a-fork


[AH-20] Add code security check

Description
To be sure your code is safe it is worth to add some security check as well as add it to CI pipeline stage.
SNYK?
Notes
TBD

SNYK was configured as SCA tool and added to CI/CD pipeline.


SEV-SNP  support

thanks for doing clear commit messages. To be picky, perhaps consider using conventional commit messages, that is, use
SEV-SNP: does xyz

instead of
[SEV-SNP]Does xyz

thanks for doing clear commit messages. To be picky, perhaps consider using conventional commit messages, that is, use
SEV-SNP: does xyz

instead of
[SEV-SNP]Does xyz

I see, will reword them later.

there are a lot of redundant spaces in the code (red blocks), I think they were added from previous cc commits. Consider clearing them towards the end.

there are a lot of redundant spaces in the code (red blocks), I think they were added from previous cc commits. Consider clearing them towards the end.

fixed

On Thu May 23, 2024 at 1:03 PM CEST, Tianhao Wang wrote:

@shrik3 commented on this pull request.

@@ -3021,8 +3021,11 @@ impl MemoryDef {
const GUEST_HOST_SHARED_HEAP_OFFEST: u64 =  MemoryDef::GUEST_PRIVATE_HEAP_END;
const GUEST_HOST_SHARED_HEAP_END: u64 =  MemoryDef::GUEST_HOST_SHARED_HEAP_OFFEST + MemoryDef::GUEST_HOST_SHARED_HEAP_SIZE;

const GHCB_OFFSET: u64 = MemoryDef::GUEST_HOST_SHARED_HEAP_OFFEST + MemoryDef::PAGE_SIZE*2;
const HYPERCALL_PARA_PAGE_OFFSET :u64 = MemoryDef::GUEST_HOST_SHARED_HEAP_OFFEST + MemoryDef::PAGE_SIZE*3;

// Reuse RDMA area for sev-snp special pages

it was commented elsewhere that RDMA stuffs are not supported under cc context.
I have missed it then. Sorry for the noise=)


301 Form L5

Hello.
Am getting some strange things in laravel like redirecting. No Idea why..
http://prntscr.com/6rk3re
I open form like this:
{!! Form::open(array('action'=>'Home@indexPost')) !!}
... my content ...
{!! Form::close() !!}
But it's giving me 301 redirect.
Routes.php
Route::get('/', 'Home@index');
Route::post('/', 'Home@indexPost');
If I make like this:
Route::get('/', 'Home@index');
Route::post('/post', 'Home@indexPost');
it works, but why does it not work o same slash ?

You can't have a slash before post.

Also, L5 doesn't have a form component anymore.


Why do checkboxes and radios have transparent backgrounds?

The following came from a question I asked on the design system slack channel.
https://ukgovernmentdigital.slack.com/archives/C6DMEH5R6/p1572279335253200
TLDR: checkboxes and radios have transparent backgrounds. This means they don't stand out visually against non white panels as text input elements do.
From thread:
does anyone know why the checkboxes (and I assume radio buttons) have transparent backgrounds? Rather than a white background (which would probably be the default browser rendering of a standard checkbox).
GOV checkbox (with transparent background):

Default checkbox (without GOV styling):

Anon 1:
I suspect that’s because they’re custom rendered rather than native checkboxes, and we want to support users who change their text and background colours.
11 replies
Anon 2:
Hi Dave,
This decision pre-dates the design system so I'll need to do a bit of digging to see if we can find out why - but my guess is something along the lines of what Anon 1 said. Will come back to you.
Have you seen any problems around this, or are you just wondering?
After some investigation - it appears that his is the pertinent commit: https://github.com/alphagov/govuk_elements/commit/4972b81697fbf5b9ac12a211010c623e625ab3ab
Dave Haigh
I am looking at using small checkboxes as a filter for a list. The filters are located on a light grey panel (similar to the call to action blocks on GOV.UK guidance pages). As you can see in the screenshot the checkbox doesn’t stand out well as the background is transparent.
Im not sure on the answer to this but… should the scenario be:

If user HAS NOT specified any browser background colour then they should be white;
Else if user HAS a specified background colour in certain modes then they should be either transparent or that colour (when in that mode)

Is the above correct?
Is it possible?
3.Also, some other elements do not respect user specified background colours such as text inputs (they’re always white). Why are only the checks and radios transparent?

i’ve specified my background colour to be red (in any mode) in this screenshot:

Anon 3
I don’t really have a good answer for you other than that the radios and checkboxes in the Design System are based on those introduced in Elements back in 2016 by people that no longer work here. As Anon 2 said, we don’t have the context of every historical decision. We could definitely look at changing that behaviour, but we’d need to test thoroughly to make sure they still work in all of these sorts of scenarios.

The current styles allow us to change the colour of the entire checkbox and radio button easily. We have a couple of instances across our service where we have a white checkbox on a solid colour. If the checkbox had a solid white background here, then we wouldn’t see the tick.

For some more context this decision was made in the legacy GOV.UK Elements project: https://github.com/alphagov/govuk_elements/pull/296
I've added awaiting-triage for us to look into this as a team.

@robpataki Hi Rob,
A quick correction: We don't actually define the white background on text inputs or textareas; these are the user agent styles supplied by the browser. We originally did this because explicitly defining colours (even to make them transparent) used to trigger an accessibility issue in Firefox when using forced colour modes, although this seems to have been fixed since.
Conversely, we explicitly define black text and a white background on <select> inputs because the user agent styles in some browsers are lower contrast than desired.
Unfortunately when it comes to radios and checkboxes, my guess is as good as the commit message in the original post: it's so users who customise their text and background colours get matching styles.


dispense function works error.

under windows7 x64 standard version. when I try to using client after acquire the client instance. The first time it throw the error like below.
Checking pool info after client destroyed:  0 1
Checking pool info after client destroyed:  1 1
TypeError: Cannot call method 'set' of undefined
at dispense (c:\xxxx\node_modules\sol-redis-pool\node_modules\generic-pool\lib\generic-pool.js:250:16)
at Object.exports.Pool.me.acquire (c:\xxxx\node_modules\sol-redis-pool\node_modules\generic-pool\lib\generic-pool.js:319:5)
at RedisPool.acquireClient [as acquire] (c:\xxxx\node_modules\sol-redis-pool\index.js:96:16)

Unable to replicate the issue on Window 7 x64 Enterprise.


Add custom and zone cleaning to Neato Vacuums

Description:
Adding custom cleaning and zone cleaning to the neato vacuum
Credits for the initial custom_component with beta zone cleaning support to @dshokouhi
https://github.com/home-assistant/home-assistant/pull/19835 can be closed in favor of this one.
Related issue (if applicable): fixes #
Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#8421
Example entry for configuration.yaml (if applicable):
neato:
  username: !secret neato_username
  password: !secret neato_password

Checklist:

[X] The code change is tested and works locally.
[X] Local tests pass with tox. Your PR cannot be merged unless tests pass
[X] There is no commented out code in this PR.

If user exposed functionality or configuration variables are added/changed:

[X] Documentation added/updated in home-assistant.io

If the code communicates with devices, web services, or third-party tools:

[ ] New dependencies have been added to the REQUIREMENTS variable (example).
[ ] New dependencies are only imported inside functions that use them (example).
[ ] New or updated dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[ ] New files were added to .coveragerc.

If the code does not interact with devices:

[ ] Tests have been added to verify that the new code works.

I think this looks good! Before merge, we should verify under what domain we want to register the service.

I posted on #devs_backend about the service domain, but no answer so far.

@MartinHjelmare any news on the service domain?

@balloob? :point_up:

I just noticed that Xiaomi had their zone cleaning service under vacuum so maybe for consistency we leave it under vacuum?  This PR was just recently merged: https://github.com/home-assistant/home-assistant/pull/19777

Then we have to change it again. :cry:

Then we have to change it again. 😢

Done in the latest force-push (conflicts resolution). I'm going to update the documentation accordingly.

Can be merged when build passes.

I want to make my website Goklean4u user-friendly, which is the best service that I can use.


Submitting form programatically

I have a Form called question1 that looks like this:
<Formsy.Form ref="question1" onSubmit={this.onSubmit} onSuccess={this.onSuccess} onValid={this.onValid} onInvalid={this.onInvalid}>
    <RadioButtonGroup name='user_type' options={options} class={classes} validationError="This is a required field." required />
</Formsy.Form>

Notice that I don't have a submit button.  This is intentional because I have an app.jsx parent component that includes a footer navigation bar that contains previous and next buttons for navigating through a questionnaire.  Each question is a separate form, starting with question1 above.
I'm using RefluxJS for communicating actions between question1.jsx and app.jsx so that when app.jsx calls the submitQuestion1 action (as a result of the user clicking the Next button), question1.jsx listens on that action and calls its own custom submit method, which actually does the form submission as shown here:
/**
 * Question 1
 * Renders Question 1
 *
 * @prop null
 */
'use strict';

var $ = require('jquery');
var is = require('is_js');
var React = require('react');
var Reflux = require('reflux');
var Utilities = require('utilities');
var Actions = require('actions');
var Store = require('store');
var Formsy = require('formsy-react');

// Components
var RadioButtonGroup = require('../../components/radio-button-group/radio-button-group');

var Question1 = React.createClass({

  mixins: [
    Reflux.listenTo(Actions.submitQuestion1, "submit"),
  ],

  onSubmit: function (data) {
    console.log("This is not called... why?");
  },

  onSuccess: function (e) {

  },

  onValid: function (e) {
    this.setState({
      canSubmit: true
    });

    // Validate the Next Button
    Actions.enableNextButton();
  },

  onInvalid: function (e) {

  },

  submit: function () {
    if (this.state.canSubmit) {

      // Submit the Form
      $(this.refs.question1.getDOMNode()).submit();
    }
  },

  render: function () {

    var options = [
      {
        title: 'Mine',
        value: 'A'
      },
      {
        title: 'Child',
        value: 'P'
      }
    ];

    return (
      <div className='question1'>
        <Formsy.Form ref="question1" onSubmit={this.onSubmit} onSuccess={this.onSuccess} onValid={this.onValid} onInvalid={this.onInvalid}>
          <RadioButtonGroup name='user_type' options={options} class={classes} validationError="This is a required field." required />
        </Formsy.Form>
      </div>
    );
  }

});

This line $(this.refs.question1.getDOMNode()).submit(); technically works, it submits the form, but my onSubmit function is not called even though it is specified here: <Formsy.Form ref="question1" onSubmit={this.onSubmit} onSuccess={this.onSuccess} onValid={this.onValid} onInvalid={this.onInvalid}>.
Does Formsy support programmatic submission of forms?

Seems silly, but I got this to work by adding an invisible submit button and then triggering a click on it in my submit function:
Form:
<Formsy.Form id="question1" ref="question1" onSubmit={this.onSubmit} onSuccess={this.onSuccess} onValid={this.onValid} onInvalid={this.onInvalid}>
    <RadioButtonGroup name='user_type' options={options} class={classes} validationError="This is a required field." required />
    <button style={{display:'none'}} ref="question1button" type="submit" disabled={!this.state.canSubmit}>Submit</button>
</Formsy.Form>

Submit Function:
submit: function () {
    if (this.state.canSubmit) {

        // Submit the Form
        $(this.refs.question1button.getDOMNode()).click();
    }
}

Hi @eriklharper ,
Aha, I see. Yeah, onSubmit should trigger when the form itself is programmatically triggered. Will check this out, keeping it open as a BUG. thanks and glad you worked it out :-)

Thanks @christianalfoni for looking into that, will be interested to see the solution!  I'll look into things on my end here as well.

Hi @eriklharper,
Have you tried not wrapping in jQuery? This seems to work on my end. Just do:
this.refs.question1.getDOMNode().submit();

Use native behavior. jQuery probably does some crazy wrapping messing things up :-)

Thanks @christianalfoni that does work for me, except that I can't stop the form from performing its default action for some reason.  It submits the form and refreshes the page, which is not what I want to happen since my form is submitting data to a local store instead of a server.  I've since changed the implementation to not actually call the native form submit function, and instead I've relied on a custom action that I can call from elsewhere to trigger saving the form data using getCurrentValues() which, by the way is a handy feature that isn't well documented in the Readme.
I found that to get around cross-browser form implementation issues, I've come to rely more on handling the submit action of my forms manually and not relying on the browser's native form behavior.
Also, for some reason when I wrap it in the jquery selector, it prevents the page reload on submit, and that's probably because by default jQuery prevents the default action?

Hi again @eriklharper ,
Hm, yeah. You would have to register a native event listener preventing that behavior. What a pickle this is :-D
Yeah, getCurrentValues() is actually an internal method, but glad I exposed it now. Let me add this as an enhancement and document it. Glad it worked out for you. Sounds like a very reasonable implementation.
Yeah, jQuery registers a listener and wraps "event.preventDefault" by default I believe :-)

Am I the only one having trouble intercepting the submit event for a form created with Formsy.Form? I cannot get either onsubmit or onSubmit callbacks to be called at all.

Hi @mull,
Could you explain a bit more what you are trying to achieve? Formsy handles the native form submition and prevents default behaviour. What do you need the form event for?

That's the thing, it doesn't seem to! Perhaps it does on master, I did only try with the latest version through npm. The code below is basically my setup. Calling the testSubmit method would submit the form and reload the page. Trying to add an event listener to the  node in the DOM and using preventDefault wouldn't work either.
testSubmit() {
  this.refs.form.getDOMNode().submit();
},

render() {
  return (
    <Formsy.Form ref="form">
      {/* some inputs */}
    </Formsy.Form
  );
}

Hi @mull,
This is probably the wiring of React I believe, since you trigger a native event doing that. Put you can do this:
testSubmit() {
  this.refs.form.submit(); // Point directly to the form component
},

render() {
  return (
    <Formsy.Form ref="form">
      {/* some inputs */}
    </Formsy.Form
  );
}

Does that solve your challenge?

Well crap! That looks easy enough... dang. :) I'll get back to you within 24hrs on that!

Hehe, great ;-)

Yeah, this is one thing about React that takes some time to sink in.  A lot of times you are re-implementing features of a native DOM element (in this case the submit action of a <form>).  This is the beauty of React and Formsy: you rely on the Formsy API to handle the submit, not the DOM api, which brings the benefit of allowing custom behavior and removes the complexities that occur with the native DOM implementations, which tend to vary across browsers as we all know.

I kind of confused myself here. We're actually wrapping Formsy.Form with our own component, which of course didn't have the submit() function. Gotta remember that next time. :grin:

@mull ,
But things work as you want now? If so, I will close the issue :-)

Oh yeah it works for sure. :) thanks!

Sweet!

@christianalfoni submit via ref will also trigger native event because I believe ref stores underlying dom elements. Hidden input technique will work.
I know this is an old issue, just sharing my two cents :)

@christianalfoni calling submit via ref will make a native event. Programatically clicking submit button will make a synthetic event - http://codepen.io/arshdkhn1/pen/WpQwxX?editors=0110


Add pitch shift filter

https://github.com/cwilso/Audio-Input-Effects/blob/master/js/jungle.js

https://github.com/urtzurd/html-audio/blob/gh-pages/static/js/pitch-shifter.js
https://github.com/Tonejs/Tone.js/blob/dev/Tone/effect/PitchShift.ts


[bug] Useless features can be selected

[ ] A player can toggle features useless and still select them. I did this for all 5 sub-rounds in binary select and got a final round score of -1; the round was not saved in the database.
[ ] You could think about the streak mechanism if only useless (according to the view of the player) features are presented. If playing honestly, the player marks all features as useless and then skips the round. However, this destroys the streak.
[ ] You could also think of sub-round skipping. Currently, only whole rounds can be skipped. However, it might be that e.g. only 1 of 5 selections in binary mode cannot be answered by the player, but the rest could.

would it work, that if both features are marked useless, the next two features are shown in binarySelect?

As product owner, I would be satisfied with a solution showing a new pair of features if both are marked useless (maybe with some notification/help so that the user is not confused once this happens).

is there anything left to do on this issue?

Don't think so


ability to reference specific worksheets in an import would be nice

Not going to reference individual sheets exactly, but rather will load all tables instead of just the first.


odr-audioenc recipe fails to detect libmagicwand

This was done using the Debian Jessie minimal image released in September. I don't have the fine detail to hand unfortunately.
pi@raspberrypi:~ $ list="odr-audioenc odr-padenc fdk-aac ka9q-fec"
pi@raspberrypi:~ $ pybombs install $list
PyBOMBS - INFO - PyBOMBS Version 2.2.0
PyBOMBS.DepManager - ERROR - Package does not exist: libmagickwand (declared as dependency for package odr-audioenc)
However:
pi@raspberrypi:~ $ sudo apt-get install libmagickwand-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libmagickwand-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
I haven't really looked into it further. I was able to compile odr-audioenc in the usual way, so it looks like the recipe fails to detect it for some reason.

Just worked in a fresh prefix on PC with Ubuntu 16.04.1.
Try:
pybombs recipes update
list="odr-audioenc odr-padenc fdk-aac ka9q-fec"
pybombs -vv install $list 2>&1 | tee -a build.log
Create a gist with the log

On a VM installed debian-8.6.0-amd64-netinst and selecting only 'minimal system utilities':
apt install python3-pip python3-venv
python3 -m venv pybombs
. pybombs/bin/activate
pip install pybombs
pybombs recipes add gr-recipes git+https://github.com/gnuradio/gr-recipes.git
pybombs recipes add gr-etcetera git+https://github.com/gnuradio/gr-etcetera.git
pybombs recipes add dab-recipes git+https://github.com/Opendigitalradio/DAB-recipes.git
pybombs prefix init ~/prefix/ -a dab
list="odr-audioenc odr-padenc"  # Let pybombs resolve dependences
pybombs install $list
. ~/prefix/setup_env.sh
odr-padenc
odr-audioenc
Built without issue, I consider issue closed without further information.


Ai virtual drag and drop issue #844

issue #844   fixed

pls check it @invigorzz313

@ashis2004 Include the outputs in the Readme.md and/or in .ipynb file.

Also it is suggested to put the code in multiple cells and proper comments to describe it.

And you can make the changes in the current PR itself without closing it (make the commits to this same branch). But if you still wish to raise a new PR, make sure to close the previous related ones.


Added resources

Added a bunch of resources from
https://stackoverflow.com/documentation/common-lisp/534/getting-started-with-common-lisp/27861/common-lisp-learning-resources#t=201703281952155730075

Closing since I don't think this repo is maintained anymore.


Add support for YAML config files

Increase the clarity of the usage documentation
Add the requirements.txt dependency file
Include the PyYAML package

I don't think we need docker-compose for this action as it only runs one container

I don't think we need docker-compose for this action as it only runs one container

Good point. Compose is truly, as you said, better suited for multi-container applications.


UI Mask bug

When the Placeholder is set as placeholder="" the mask cannot be done.
Next issue:
In mask cannot be declared only some symbols as: +, -
It would be super define some symbols in array.

UI.Utils modules was split in individuals repositories. If still valid, please consider re-submitting on its dedicated repository: https://github.com/angular-ui/ui-mask
See the README for details.


Exception has occurred: Object

When calling the stack.sync API, I get an exception which is reported as...

The promise rejected with the reason "#".

Here's a screenshot of a debugger showing the failing line within the minified code of the project running my test case.

See https://gist.github.com/joepie91/04cc8329df231ea3e262dffe3d41f848#why-its-unnecessary-to-include-minified-builds for some reasoning that suggests the contentstack package should not be minified before distribution via NPM given it creates problems like this for no reason.
See also e.g. https://www.briefs.fm/3-minutes-with-kent/221 for more explanation. I have no idea why it's minified and it makes debugging it near to impossible.

Hi @cefn thanks for raising this we will be looking into this and we will update once we have a fixed it
cc: @netrajpatel

Hi @cefn , thanks for your patience. A PR has been created for this fix and is being reviewed currently.
https://github.com/contentstack/contentstack-javascript/pull/261


adds additional mouse button indices

Adds the additional X11 mouse buttons.
This commit addresses issue #568.

Sorry, but as CI shows this is not how it works. The code that you are modifying is generated from an XML description of the X11 protocol:
https://gitlab.freedesktop.org/xorg/proto/xcbproto/-/blob/496e3ce329c3cc9b32af4054c30fa0f306deb007/src/xproto.xml#L2711-2738
You are modifying the generated code directly and CI fails because it detects that the generated code changes after re-generating it.


Custom Crop Shape

Is it possible to use my custom shape?

Not for sure, go a head and the check it, https://github.com/ArthurHub/Android-Image-Cropper/wiki.
Can you help me to figure out the solution for my problem
https://github.com/ArthurHub/Android-Image-Cropper/issues/381
I am a starter to Android, hope you will help me.

nope, that is super complicated


Namespace not specified.

What went wrong:
A problem occurred configuring project ':blue_thermal_printer'.
Could not create an instance of type com.android.build.api.variant.impl.LibraryVariantBuilderImpl.
Namespace not specified. Specify a namespace in the module's build file. See https://d.android.com/r/tools/upgrade-assistant/set-namespace for information about setting the namespace.
If you've specified the package attribute in the source AndroidManifest.xml, you can use the AGP Upgrade Assistant to migrate to the namespace value in the build file. Refer to https://d.android.com/r/tools/upgrade-assistant/agp-upgrade-assistant for general information about using the AGP Upgrade Assistant.

@Shek863  could solve it? I have the same error.

any solution ? got this error after upgrading flutter sdk from 3.24 to  3.27


Use high-resolution timestamps

I tried to follow #337, but it was too tangled to understand and just wrote it from scratch. Only the other-OS struct fields from there were used. #337 also tried to increase the resolution of the clocks for timing; I didn't bother with this change here.
Fixes #371.

Ping?

+1, I've just hit timestamp issue in my environment after adding some automatic tests to our metabuild system, could be nice to put it behind w/o adding sleeps.

@QuLogic, I believe MSDN guys had itanium (IA64) hardware in mind when writing the article.
x86/amd64 hardware handles misaligned access w/o involving OS, even performance impact vanished with the years, see e.g., here.
It would be nice to use a wrapper macro getUint64(ptr) for misaligned access, which can expand to a simple cast & dereference on x86 hardware.

@maximuska ARM (unsure about v8, but certainly v5-7) requires natural alignment, or an OS exception handle and fixup.

Yeah, I know.
Anyone here uses ARM build servers?
On Feb 16, 2017 9:33 AM, "Daniel Stone"<EMAIL_ADDRESS>wrote:

@maximuska https://github.com/maximuska ARM (unsure about v8, but
certainly v5-7) requires natural alignment, or an OS exception handle and
fixup.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/ninja-build/ninja/pull/1219#issuecomment-280254315,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAFq-swBR53dOoLKn2_bfiSNpA15NgdAks5rc_u4gaJpZM4LYhpA
.

@maximuska Yes, I do, partly because for smaller projects at least, Ninja-backed build systems can make it quicker to build on-device (or on an ARM build server; there are many vendors shipping blade-style servers) than to set up cross-compiling.

@fooishbar ARM doesn't require natural alignment since ARMv6. The ARMv6 architecture introduced the first hardware support for unaligned accesses.  ARM11 and Cortex-A/R processors can deal with unaligned accesses in hardware, removing the need for software routines. source

I rebased this and changed it up a bit to use (low, high) instead of dealing with endian issues in the old manner.

Turns out this delay was somewhat useful because I manager to find a bug in re-reading the saved timestamp.
Apparently, casting from a signed narrow type to an unsigned wide type does sign extension, producing a completely incorrect result out of the lower 32 bits, but it's kind of random because it depends on the 32nd bit.

Thanks for the patch! Sorry about the slow turnaround time.
Generally looks great.
Did you check how this affects empty build time? The larger log size might impact incremental build speeds, it'd be good to know by how much.

As an aside, Meson has a PR that runs this patch on our testsuite on macOS, Windows (mingw, cygwin, native), and Linux (Ubuntu): https://github.com/mesonbuild/meson/pull/1931. Also contains a test for the high-res changes. It's running a full build on all platforms right now.

I rebased this to fix the conflicts, and modified some bits so that it works correctly on Windows, Cygwin, and MinGW.

Small caveat about macOS: if you're using HFS+, these patches will do nothing because the filesystem timestamp resolution is 1s. However, I tested on AppleFS and the patches work perfectly.
@nico

Did you check how this affects empty build time? The larger log size might impact incremental build speeds, it'd be good to know by how much.

So I tested full, incremental, and empty builds on Linux (Fedora 26, 64-bit) with a rotating disk and ext4 relatime,data=ordered
I compared ninja before and after these patches on gst-build, which is a huge mostly-C project with ~3000 targets and a 7.3MB build.ninja file.

The log file size increased from 312K to 360K with these patches.

Hot cache:
Full builds, incremental builds, and empty builds took the same time for both.

Cold cache echo 2 > /proc/sys/vm/drop_caches empty builds:
I was getting strange results (it was faster with the patches than without), and after doing a bunch of testing and statistical analysis, I figured out that it was all noise. Both take the same time.

So all in all, these patches have negligible to no effect on the build times.

This is rebased and I think I fixed the issue on Windows with the last commit. @nirbheek will try it out on the Meson test suite when he has a chance.

what is about merging to next?

We are now using this patch for testing downstream: mesonbuild/meson#2328.

Alright, it's early in the cycle, so let's merge this and see what (if anything) breaks :-) Do you want to send a short note to the list asking people to test this out? (If not, I can do it.)

...and thanks everyone who contributed to this patch and helped with measuring performance. Much appreciated, and thanks for your patience.


WIP: Ignore projects without any handled item

Solves #63
TODO: Add toggle to view ignored projects

Looks good, thanks!
Maybe an odd question but will this work with the lazy loading of the new projects?
I am just thinking about the case when we load a new group of projects where all the projects will be skipped. It will do nothing in that case, won't it? (There are many of those projects so it is possible.)

I am just thinking about the case when we load a new group of projects where all the projects will be skipped. It will do nothing in that case, won't it? (There are many of those projects so it is possible.)

If we click load more and it fetches 50 new projects and lets say 40 of those are ignored, then it will only display 10. On loading more, it will fetch the next 50 projects and apply the same logic to them.
In case all 50 are ignored, then yes it will display nothing and you'll have to click load more again to view the next batch.

In case all 50 are ignored, then yes it will display nothing new and you'll have to click load more again to view the next batch.

This could be fixed by giving some kind of indication about the current page at the bottom. Like page numbers or something. So that will give an indication that the page has changed even if there are no new visible cards. And once the API starts returning an empty list, we can tell the user that theyve reached the last page

It can easily get to the situation that you need to click multiple times without any response to get new values. (There is a user in the middle with a really big amount of ignored packages.)

Can we load another group when we ignore all 50 packages?

Can we load another group when we ignore all 50 packages?

I spent multiple hours trying to make it work but there is no way to reliably predict how many times the react component is rerendered and when it has finished rendering. That and fighting async/await made me give up for today.
Basically I was deciding what to ignore just before render. This works if I'm just ignoring/allowing them but if I want to keep track of how many total projects ive ignored I'll have to maintain a list in the state.
This should be a trivial one liner change but isnt cause there is no such thing as 'append to DOM' in react, the entire component is re-rendered whenever the state changes (ie whenever the projects list is modified)
Its also possible that I'm making a very very stupid mistake, but I think the proper way to do it is to just decide what to ignore after fetching it, not deciding just before render
I'll do it properly tomorrow or someday this week.

@IceWreck thanks for spending so much time on it!

Uggghhh Done !!!!!!!
I spent so much time overcomplicating things including:

adding babel plugins so i could use JavaScript ES7 features like async/await
asynchronous recursion in js which didnt sit well react useState
trying to keep track of react rerenders so id know when to fetch more
unsuccessful time based hacks (just to try them out, i know stuff like this will never be used in production)

and finally I re-read useEffect is the React docs and the solution was so damn simple.

BTW you should consider removing the github user m4ta1l from the prod db. They deleted or renamed their GitHub account and have enabled packit service in 2744 repos out of which only two are actually using packit.
While after this PR the dashboard will ignore their unused repos, it still takes 50-70 seconds to automatically load the next useful repository. So we have to add some kind of indication (other than console logs) that its loading more repos (in a separate PR, not this one please)

BTW you should consider removing the github user m4ta1l from the prod db. They deleted or renamed their GitHub account and have enabled packit service in 2744 repos out of which only two are actually using packit (ogr fork and one other).

Yes, this user was the reason I've created that issue..;)

Uggghhh Done !!!!!!!

Nice that you've figured that out!

@IceWreck Are we missing something? Do you consider this still a WIP?
I am really looking forward to seeing this merged..;)

@IceWreck Are we missing something? Do you consider this still a WIP?
I am really looking forward to seeing this merged..;)

Need to add a button to view ignored ones as well. I have daily quizzes till 15th Dec instead of exams so Ill do it after that.
Other than the button its done. If you want I'll rebase this now so it can be merged and then add the button (and some indication about the current page) in a separate PR.

If you want I'll rebase this now so it can be merged and then add the button (and some indication about the current page) in a separate PR.

Yes, that would be nice!
Good luck with the quizzes!

Thank you!


[WV-252] Convert static methods TEAM REVIEW

Static methods
The static method conversions appear to have been addressed in #2316.
Fixes
PEP8 E211 whitespace before '('
PEP8 W391 blank line at end of file
typo in string (googgle -> google)

👍


Grub from release-19.09 fails to load on Dell XPS 7390 Developer Edition; grub from master works

Describe the bug
(Note: I've assigned this to myself since I'm still trying to find a solution. I have a work-around using Ubuntu's grub-mkimage.)
Booting from a NixOS live CD fails on my Dell XPS 7390 Developer Edition, but works on my old Thinkpad.
I have found a work-around: in the Ubuntu installation that comes with the laptop, I ran the following command to generate a new grub image:
sudo grub-mkimage -o fromub.efi -p /EFI/boot -O x86_64-efi fat iso9660 part_gpt part_msdos normal boot linux configfile loopback chain halt efifwsetup efi_gop ls search search_label search_fs_uuid search_fs_file gfxmenu gfxterm gfxterm_background gfxterm_menu test all_video loadenv exfat ext2 ntfs btrfs hfsplus udf videoinfo png echo serial

I told the bios to boot from "fromub.efi", and I saw the grub menu and was able to successfully boot into the NixOS installer.
PopOS seems to have the same issue: https://github.com/pop-os/pop/issues/730
To Reproduce

I downloaded the "minimal installation CD" from here (linked from the Getting NixOS 19.09 page), and flashed it to a USB stick using dd.

I inserted the USB into my laptop (using a USB A-to-C adapter), turned it on, pressed F12 to tell the BIOS I wanted to choose a different boot device.

Two different boot options appear for the USB stick (probably because it has two partitions). I click one of them (I tried both with the same result).

I see an empty screen with a "dell" logo in the middle and a text cursor in the upper-left corner.

Expected behavior
The Grub menu appears, showing NixOS boot options.
My next steps

Running grub-mkimage --version on the Ubuntu 18.04 installation I used to work around the problem shows 2.02-2ubuntu8.13, and I think NixOS 19.09 has 2.02.  I think I'll try the latest Grub version on NixOS, and if that doesn't work, look into whether there's anything special about Ubuntu's version of Grub.

It might be unrelated to the grub version. I might try my workaround using the grub-mkimage I already have on nixos 19.09, and see whether that works as well as the Ubuntu workaround.

Update: it looks like Grub 2.04 works but 2.02 doesn't.
Details:

I tried my workaround with grub installed using nix-build -A grub2_efi using two different nixpkgs revisions. With the 19.09 channel, git revision c5aabb0d603, it hangs, and grub-mkimage --version shows 2.02. With master, git revision 2e52f98dd, it works, and the version is 2.04.

Note: it looks like 19.09 was going to have grub 2.04, but it was reverted back to 2.02 due to https://github.com/NixOS/nixpkgs/issues/61718

Just asked<EMAIL_ADDRESS>for advice on patching Grub 2.02 to fix the issue. If there's a simple fix, it would probably make sense to apply it to 19.09.

No response on the help-grub mailing list. I don't think I will have time to figure out on my own how to patch grub 2.02 to work, so I will unassign myself.
I'm not sure whether to close this issue. I'm tempted to close it because I don't see who will have time to work on it, but on the other hand, judging by the fact that three users have commented on pop-os/pop#730, it might affect others.

I can confirm this issue. My workaround was to format the drive with archlinux (since mkfs.ext4 was broken on the 20.03-pre iso) and to install 19.09 by switching the channel while installing from the 20.03-pre.iso...
Although I have not had success to start the x server afterwards. 😦

@mradke the X server didn't work for me until I switched to the latest kernel (boot.kernelPackages = pkgs.linuxPackages_5_3). This is on master; I haven't even tried with a release branch.

Ah nice. Thanks for letting me know. Then not all hope it lost it seems 😄


Fix documentation grammar

Q
A

Is bugfix?
no

New feature?
no

Breaks BC?
no

Tests pass?
yes

Fixed issues

Thanks!


[6.0] Import new Android overlay (#477)

Explanation: Now that this new overlay was merged into the 6.0 compiler too in swiftlang/swift#74758, this adds the overlay to the files that currently import Glibc.
Scope: Add imports on Android only
Issue: None
Original PR: #477
Risk: None
Testing: Passed all CI on trunk, plus on my daily Android CI, finagolfin/swift-android-sdk#151
Reviewer: @bnbarham

Should these also be bionic?

No, the one import had to be Android, as this library uses C functions that aren't in the current Bionic module, so I then checked canImport(Android) everywhere for consistency.

@swift-ci please test

Passed CI, ready for merge.