tipping_probabilities: Kills Kernel when basin array is large

Describe the bug
Upon invoking prob = tipping_probabilities(basins_before,basins_after), Julia kernel dies. I did some testing. Could it depend on the array size? If the array size of the provided basins before/after is large, could it cause Julia Kernel to die (possibly by memory exhaustion)? I am asking since I am new to Julia and do not know how to debug any "Killed" kernel message. In my case, basins_before and basins_after are 4-D arrays of 100x100x100x100 elements, reaching up to 200 MB, but just with three deterministic attractors. The formula for the computation of the tipping probabilities is straightforward.  tried with much smaller arrays and `tipping_probabilities' works. I am not sure what else could cause the killing.
Package versions
Status ~/.julia/environments/v1.8/Manifest.toml
[608a59af] ChaosTools v2.9.0
⌅ [5732040d] DelayEmbeddings v2.4.1
[61744808] DynamicalSystems v2.3.2
⌅ [6e36e845] DynamicalSystemsBase v2.8.0
⌅ [ed8fcbec] Entropies v1.1.2
[639c3291] RecurrenceAnalysis v1.8.1
Info Packages marked with ⌅ have new versions available but compatibility constraints restrict them from upgrading. To see why use status --outdated -m

Notice that Attractors.jl is a separate module now that has several updates and modifications from the version of basins/tipping/etc. currently present in the feature frozen DynamicalSystems.jl documentation. I've transferred the issue to the appropriate repo. I'd recommend using Attractors.jl directly for now.

@Datseris @awage, there is a potential issue with how tipping_probabilities are computed at the moment. The result is correct if the grid steps are unitary in all directions. If they are not, then the measure of each basin before and after their intersection must consider the grid size. Here is my temporary workaround (testing pending):

function tipping_probabilities(basins_before, basins_after, grid)
    @assert size(basins_before) == size(basins_after)

    bid, aid = unique.((basins_before, basins_after))
    P = zeros(length(bid), length(aid))
    N = length(basins_before)
    # Make -1 last entry in bid, aid, if it exists
    put_minus_1_at_end!(bid); put_minus_1_at_end!(aid)

    # Notice: the following loops could be optimized with smarter boolean operations,
    # however they are so fast that everything should be done within milliseconds even
    # on a potato
    for (i, ι) in enumerate(bid)
        B_i = findall(isequal(ι), basins_before)
        μ_B_i = 0
        ## This for cycle computes the measure of the basins_before given the non-unitary grid
        for ind in B_i
            # μ = measure on non-unitary grid
            μ_B_i += grid[1][ind[1]]*grid[2][ind[2]]*grid[2][ind[3]]*grid[4][ind[4]]
        end
        for (j, ξ) in enumerate(aid)
            B_j = findall(isequal(ξ), basins_after)
            overlap = B_i ∩ B_j   ## Have not tested it yet: if it does not return a logic vector of size B_i then it must be modified to do so
            ## The following computes the overlap in the non-unitary grid
            for ind in overlap
                ## Overal in non-unitary grid
                μ_overlap = grid[1][ind[1]]*grid[2][ind[2]]*grid[2][ind[3]]*grid[4][ind[4]]
            end
            P[i, j] = μ_overlap/μ_B_i
        end
    end
    return P
end

This is unrelated with current issue that seems to be out-of-memory problems, right? The latest post is about non-uniform grids, which at the moment are anyways not supported yet.

@Datseris Indeed. Sorry, I posted here as I thought I mentioned it, but I agree; it can be misleading. Would you rather me post it separately as a Feature request?

yes please.

Done. I am removing the last posts within the next 24 hours.


Don't rely on GOOS and GOARCH

Split on " " and take the 3rd element instead. Do all go versions follow the
same pattern? Seems like the previous code was basically expecting it already.
This fixes #235 for me.

@kr @neurogeek I've already run into this once with a user having previously installed godep via amd64 on darwin and then updating to a newer go version, but using the 386 package instead and then having issues pushing code.  So unless you have any objections wrt the implementation I'm going to merge this at some point.

SGTM


[BUG] As of Rain World 1.9.07b getting errors in log (apologies if already known or this is non-issue)

Environment
Using Catch-all and forwarded to BepInex.  Steam, Rain World version 1.9.07b
Expected behavior
No log error
Observed behavior
Had errors in log, and figured I would inform, if not big deal, my bad.  I really appreciate what you do.
Steps to Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Logs
Send any of the following logs: consoleLog.txt, exceptionLog.txt and BepInEx/logOutput.log, however many are present.
[Debug  :Atmo_Purge]
Errored on: TwoPools2+<>c.<>9 (exception: Late bound operations cannot be performed on fields with types for which Type.ContainsGenericParameters is true.) 	TwoPools2+<>c.<>9__22_0 (exception: Late bound operations cannot be performed on fields with types for which Type.ContainsGenericParameters is true.)
TwoPools2+<>c.<>9__23_0 (exception: Late bound operations cannot be performed on fields with types for which Type.ContainsGenericParameters is true.) 	TwoPools2+<>c.<>9__26_0 (exception: Late bound operations cannot be performed on fields with types for which Type.ContainsGenericParameters is true.)
 	Atmo.Helpers.VT2.k__BackingField (exception: Late bound operations cannot be performed on fields with types for which Type.ContainsGenericParameters is true.)
Atmo.Helpers.VT2.<defBName>k__BackingField (exception: Late bound operations cannot be performed on fields with types for which Type.ContainsGenericParameters is true.) 	Atmo.Data.VarRegistry.PREFIX_VOLATILE (exception: Cannot set a constant field) 	Atmo.Data.VarRegistry.PREFIX_GLOBAL (exception: Cannot set a constant field) 	Atmo.Data.VarRegistry.PREFIX_PERSISTENT (exception: Cannot set a constant field) 	TwoPools2+<>c.<>9 (exception: Late bound operations cannot be performed on fields with types for which Type.ContainsGenericParameters is true.)
TwoPools2+<>c.<>9__22_0 (exception: Late bound operations cannot be performed on fields with types for which Type.ContainsGenericParameters is true.) 	TwoPools2+<>c.<>9__23_0 (exception: Late bound operations cannot be performed on fields with types for which Type.ContainsGenericParameters is true.)
TwoPools`2+<>c.<>9__26_0 (exception: Late bound operations cannot be performed on fields with types for which Type.ContainsGenericParameters is true.)
Screenshots
If applicable, add screenshots to help explain your problem.

[Debug  :Atmo_Purge]
Errored on: TwoPools2+<>c.<>9 (exception: Late bound operations cannot be performed on fields with types for which Type.ContainsGenericParameters is true.) 	TwoPools2+<>c.<>9__22_0 (exception: Late bound operations cannot be performed on fields with types for which Type.ContainsGenericParameters is true.)
TwoPools2+<>c.<>9__23_0 (exception: Late bound operations cannot be performed on fields with types for which Type.ContainsGenericParameters is true.) 	TwoPools2+<>c.<>9__26_0 (exception: Late bound operations cannot be performed on fields with types for which Type.ContainsGenericParameters is true.)
 	Atmo.Helpers.VT2.k__BackingField (exception: Late bound operations cannot be performed on fields with types for which Type.ContainsGenericParameters is true.)
Atmo.Helpers.VT2.<defBName>k__BackingField (exception: Late bound operations cannot be performed on fields with types for which Type.ContainsGenericParameters is true.) 	Atmo.Data.VarRegistry.PREFIX_VOLATILE (exception: Cannot set a constant field) 	Atmo.Data.VarRegistry.PREFIX_GLOBAL (exception: Cannot set a constant field) 	Atmo.Data.VarRegistry.PREFIX_PERSISTENT (exception: Cannot set a constant field) 	TwoPools2+<>c.<>9 (exception: Late bound operations cannot be performed on fields with types for which Type.ContainsGenericParameters is true.)
TwoPools2+<>c.<>9__22_0 (exception: Late bound operations cannot be performed on fields with types for which Type.ContainsGenericParameters is true.) 	TwoPools2+<>c.<>9__23_0 (exception: Late bound operations cannot be performed on fields with types for which Type.ContainsGenericParameters is true.)
TwoPools`2+<>c.<>9__26_0 (exception: Late bound operations cannot be performed on fields with types for which Type.ContainsGenericParameters is true.)

Err sorry for triple posting here.  But that second post is JUST the error Debug stuff from the log.

these are messages from memory cleanup task which is leftover from 1.5 and is no longer needed, since there is no longer a possibility of mod DLLs being hot reloaded like they were on Remix. i should probably not log them by default lol


Is this actually available in Nigeria?

It says that we can get toll numbers, but there is no option in the teams admin or legacy portal - you can't even select Nigeria from the list, it's not even there? Does the article need to be amended or is there a prerequisite?

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

ID: a2695858-2551-817d-fae4-c7311e0585a6
Version Independent ID: bc7aa126-964f-5305-b685-5fd2d7f36b0f
Content: Availability in Nigeria - Microsoft Teams
Content Source: Teams/country-and-region-availability-for-audio-conferencing-and-calling-plans/availability-in-nigeria.md
Service: msteams
GitHub Login: @LanaChin
Microsoft Alias: v-lanac

@SDkempf94  Thank you for submitting feedback and contributing to the docs. We are currently investigating this.

@LanaChin please could you assist?

@LanaChin Hi Lana, could you please help with this issue? Thanks

Looking into this.

Hi @SDkempf94 - Currently, you can't get service numbers through the Teams admin center for Nigeria. Please contact the PSTN service desk who will be able to help you out. See this article for contact info: https://docs.microsoft.com/microsoftteams/manage-phone-numbers-for-your-organization/contact-pstn-service-desk.  Thank you.


The VISIBILITY_STAFF  constant name  in cms/api.py is very misleading

Hi
The line
VISIBILITY_STAFF=2

in cms/api.py is misleading.
It dosen't add up to the following code in cms/menu.py lines 179 to 184:
if page.limit_visibility_in_menu == None:
    attr['visible_for_authenticated'] = True
    attr['visible_for_anonymous'] = True
else:
    attr['visible_for_authenticated'] = page.limit_visibility_in_menu == 1
    attr['visible_for_anonymous'] = page.limit_visibility_in_menu == 2
attr['is_home'] = page.is_home

I've tested the different values and using and by passing VISIBILITY_STAFF to create_page I can see the menu item when I'm anonymous (not logged in)  but not when I'm authenticated. If fits with what to be expected when reading cms/menu.py but not with the constant name in cms/api.py
Just wanted to let you know.
Cheers
Rune

Fixed in #4049


Store and Reuse AccessToken for Silent Login

Once logged in, if a user reloads the SPA either by refreshing the page or navigating via the address bar, the login context is "lost", and the user must trigger another login. At least for my Azure AD provider the subsequent login redirects immediately without the need for interaction.
I wonder if it would it be possible to store the users access_token and expires in SessionStorage? That way when the context is configured, it could first check those stored values and attempt a silent login flow to obtain a new access, refresh, and id token. I believe the Microsoft Graph Toolkit components function in this way to persist the login state across page reloads.
What are your thoughts?

At least for my Azure AD provider the subsequent login redirects immediately without the need for interaction.

And this is how it should be. Access tokens should not be stored. They are actually only active in a single session (tab). Not even shared with other tabs.
There was a discussion on #1 about the same topic, which goes into a bit more detail. Maybe it pin it :grin:
Let me know if this explains it.


fix: bug 2067 onEndSession and intialFilledEntities issue

:tada: This PR is included in version 0.353.13 :tada:
The release is available on:

npm package (@next dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[shared_preferences] Use path_provider directly in windows/linux

In some cases, the path_provider needs to be customized by the upper layer, and the direct use of path_provider_windows/path_provider_linux limits this situation.
link: https://github.com/flutter/flutter/issues/106194
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/plugins repo does use dart format.)
[x] I signed the CLA.
[x] The title of the PR starts with the name of the plugin surrounded by square brackets, e.g. [shared_preferences]
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
[x] I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is test-exempt.
[x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

close by https://github.com/flutter/flutter/issues/106194


not work with thread

I use wslay with thread pool in c, and I got a problem。
To simplify the problem， as the fork-echoserv example:
struct wslay_event_msg *g_msg = NULL;

void echo_data (wslay_event_context_ptr ctx){
    printf("--->echo data!!!\n");
    wslay_event_queue_msg(ctx, g_msg);
}

void on_msg_recv_callback(wslay_event_context_ptr ctx,
                          const struct wslay_event_on_msg_recv_arg *arg,
                          void *user_data)
{
  /* Echo back non-control message */
  if(!wslay_is_ctrl_frame(arg->opcode)) {
      struct wslay_event_msg *msgarg = malloc(sizeof(struct wslay_event_msg));
      msgarg->opcode = arg->opcode;
      msgarg->msg = arg->msg;
      msgarg->msg_length = arg->msg_length;

       g_msg = msgarg;

       //this is work !!
       //echo_data(ctx);

       //but this not
       pthread_t thread;
       pthread_create(&thread, NULL, (void *)echo_data, (void *)ctx);
  }
}

use thread, package can't be send.
。。。。。。
I just find this problem only in OSX, it's work in Linux

I think working well in linux is just coincidence.  wslay has no mutex inside it, and using wslay_event_context_ptr from multiple threads is unsafe, and must be avoided.
If some work must be done in the different thread, all required data must be copied, and get passed to the new thread.  Just copying pointer value is not enough.  You have to make new buffer of size arg->msg_length, and copy the data pointed by arg->msg of length arg->msg_length to the new buffer, and pass it to the thread.

This example is just trying to show that the asynchronous call to write in recv_callback does not send a packet at OSX.
Such copy data and the use of global variables in this example, just lazy : )

hello , I meed the same problem, I want to send lots of data, but wslay_event_queue_msg seems to work only in main thread. Is there any idea?

wslay_event_context must not be used by multiple thread at the same time.  If you'd like to use it from multiple thread, use mutex around the calls.


Evaluate JobTree

Pro: Dynamic job creation
Pro: Encapsulates all code of a distributed workload in a single, self-contained class
Pro: Supports multiple batch backends
Pro: In-house expertise
Pro: Community adoption
Con: Relies on shared file system (?)
Con: Does not model disk space as a requirement (?)
Con: DAG to jobTree transform is not straight forward and introduces artificial dependencies
Con: Doesn't feel like a good fit for massively parallel but simple, cookie cutter  workloads


os-ddclient: OPNsense backend - custom dyndns2 endpoint

Important notices
Before you add a new report, we ask you kindly to acknowledge the following:

[x] I have read the contributing guide lines at https://github.com/opnsense/plugins/blob/master/CONTRIBUTING.md
[x] I have searched the existing issues, open and closed, and I'm convinced that mine is new.
[x] When the request is meant for an existing plugin, I've added its name to the title.

Is your feature request related to a problem? Please describe.
Current state: The OPNsense backend that has been added to os-ddclient allows to choose the interface and also to only use the interface's IPv6 address for the available dyndns providers. This, in theory, solves the issue with CGNAT that I described a while back (#2872) where the CGNAT IPv4 and the public IPv6 is pushed to the dyndns provider when using the ddclient backend.
A workaround was using external services that just reply the IPv6 address to ddclient. But sometimes I got timeouts and honestly prefer to do those things locally.
Describe the solution you'd like
As written here I'd like to suggest to offer a generic dyndns2 option like the "Custom" service option when using the ddclient backend where I can just enter the dyndns server I'm using - btw: it's desec.io .
Describe alternatives you've considered
The other option would be to port the interface chek IP method with the IPv4/IPv6 option for the ddclient backend which already has the "Custom" service option. Not sure which is easier to implement / maintain.
Additional context

@ei-ke for the dyndns2 protocol this (https://github.com/opnsense/plugins/commit/410cb9dbf812d2e02aa38adba13176501869a369) should be all that's needed.


chore: specify tls_trust_file for sendmail

Closes https://github.com/Informasjonsforvaltning/fdk-community-service/issues/203


Warning/error message during installation

I have the following warning/error message when I tried to install colly using the following command go get -u github.com/gocolly/colly/...
package github.com/PuerkitoBio/goquery: no Go files in C:\Users\name\go\src\github.com\PuerkitoBio\goquery
Is there something missing from my side?

It works for me, what is your go version?

go version go1.10.3 windows/amd64

I had to go back to this package and do a git reset --hard on it. Then it worked.

Closing as this seems to be more related to go get than colly.


Which version should be packaged ?

I'm looking at updating the archl8inux aur package for this, but am unclear which version I should update to .
The last relase is 0.4.8 , but there are several newer versions tagged like <IP_ADDRESS> , 0.4.9 , 0.5 & 0.5.1 .
Which should be considered the latest stable version ?

The latest release is 0.5.1 since we just git tagged it and don't post it in GitHub anymore (this repo now serves as mirror).
See https://gitea.artixlinux.org/artix/opensysusers/releases for upstream links.

Thank you for making clear where upstream files can be found.
On the gitea releases page, version 0.4.9 is clearly marked as stable and the only version that shows that mark.
are 0.5 & 0.5.1 considered development versions ?
If not, you may want to move the 'stable' mark to reflect this.

0.5.1 is considered stable since we have it in our official repos. https://gitea.artixlinux.org/packagesO/opensysusers


JAVA Out of of Memory

Hi,
I am running VariantQC using docker (tag latest) with  multiple Input VCFs (-V sampleName sampleName.vcf.gz ) option.  I have more than 1500 samples that I would like to have in the same report, but  when I run it I get an error out of memory.
I have tried to specify the memory size in docker command but did not help. Moreover, I have increased the java heap memory size (-Xms ) but does not works as a input option.
Do you know a way to increase the  memory   ?
Have you tried to run it with the multiple Input VCFs on so many samples ?

Hi @Maux82, for one of my lab's projects (https://mgap.ohsu.edu/) we run this on about 3000. But yes, once you get that large this can be an issue. We run those jobs on a cluster and generally would give java -Xmx of 172 or so. What were you actually using?
In our hands, we generally don't get memory errors, but VCFs with lots of samples can take an extremely long time. You can split by chromosome, but this results in some loss of information since you need to re-aggregate and the HTML loses some of the benefits (though has some use). I might consider taking your VCF and subsetting into three VCFs with 500 samples/ea and running. Most of the memory requirement is coming from loading and passing around that many genotypes. VariantQC essentially works by running multiple instances of VariantEval.


"settings" button does nothing

Version 29.0.0.  Clicking on the toolbar icon I can see in the lower-left "Version 29.0.0" and "rate 5 stars" and "settings".  The "settings" button is clickable, but does nothing.

Have the same issue on Version 66.0.3359.139 (Official Build) (64-bit)


Add Razor Pages using Entity Framework (CRUD) code generation error

Issue description
Doing this tutorial: https://docs.microsoft.com/en-us/aspnet/core/tutorials/razor-pages/model?view=aspnetcore-2.2&tabs=visual-studio
When trying to "Scaffold the movie model" I get an error, "There was an error running the selected code generator: 'Package restore failed...' " I read several related issues, but was unable to resolve error and move forward
{ description here }
Software versions
VS 2017 Version 15.9.3
.NET Core 2.2
.NET Framework Version 4.7.03062
dotnet --info output:
.NET Core SDK (reflecting any global.json):
Version:   2.2.200-preview-009648
Commit:    90d0b07dbc
Runtime Environment:
OS Name:     Windows
OS Version:  6.1.7601
OS Platform: Windows
RID:         win7-x64
Base Path:   C:\Program Files\dotnet\sdk\2.2.200-preview-009648\
Host (useful for support):
Version: 2.2.4
Commit:  f95848e524
.NET Core SDKs installed:
1.0.3 [C:\Program Files\dotnet\sdk]
2.1.202 [C:\Program Files\dotnet\sdk]
2.1.500 [C:\Program Files\dotnet\sdk]
2.1.600-preview-009426 [C:\Program Files\dotnet\sdk]
2.2.106 [C:\Program Files\dotnet\sdk]
2.2.200-preview-009648 [C:\Program Files\dotnet\sdk]
.NET Core runtimes installed:
Microsoft.AspNetCore.All 2.1.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.All 2.2.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.All]
Microsoft.AspNetCore.App 2.1.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.0 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 2.2.4 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 1.0.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 1.1.1 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.0.9 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.1.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.0 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 2.2.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download

I would unistall the SDK's your not using and install the latest SDK.
BTW, Issues should be opened from the doc page.


Update embedded-kafka to 3.2.1

Updates io.github.embeddedkafka:embedded-kafka from 2.8.1 to 3.2.1.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Adjust future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "io.github.embeddedkafka", artifactId = "embedded-kafka" } ]

Or, add this to slow down future updates of this dependency:
dependencyOverrides = [{
  pullRequests = { frequency = "@monthly" },
  dependency = { groupId = "io.github.embeddedkafka", artifactId = "embedded-kafka" }
}]

labels: test-library-update, early-semver-major, semver-spec-major, commit-count:1

Superseded by #142.


Disable trace logs

Is your feature request related to a problem? Please describe.
When using the library it prints trace logs on normal execution like llama_print_timings . I would like to disable them.
Describe the solution you'd like
Disable normal trace logs when calling the model
Describe alternatives you've considered
Additional context

Fixed using:
model.verbose = False


Healthcheck interval makes for a lot of noise

After firing up the docker image, I noticed there is a lot of noise related to doing dns resolution on <IP_ADDRESS>.
I figured out it was due to the health check , running every 1 second.
Might be worthwhile to either a) give it a configurable interval or b) have facilities to quell the noise for the health-check specifically.

Oh, agreed, 1 seconds is a bit much, I didn't see that part:
https://github.com/inspircd/inspircd-docker/blob/bfbc233cae332cd84e54afbe8cb860411773f6f6/Dockerfile#L58
I guess once a minute would be fine as well. Can you provide the error message you see? Maybe I can motivate @SaberUK to add an option to ignore <IP_ADDRESS> (or other network masks) for those :)

I had to build the image without the healthcheck to keep my server up this morning, so I'll have to pull up a dev version.

Going to open another issue regarding the health-check crashing issue.

@SISheogorath This is the message that keeps repeating:
Mon Sep 30 2019 23:26:00 core_dns: cache: Checking cache for <IP_ADDRESS>.in-addr.arpa


2.x Update Karyon admin integration  in the embedded server.

NetflixOSS » eureka » eureka-pull-requests #181 ABORTED

NetflixOSS » eureka » eureka-pull-requests #182 SUCCESS
This pull request looks good


os/exec: Cmd produces misleading error when using Setpgid

What version of Go are you using (go version)?
$ go version
go version go1.8.1 darwin/amd64

What operating system and processor architecture are you using (go env)?
$ go env
GOARCH="amd64"
GOBIN=""
GOEXE=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOOS="darwin"
GOPATH="/Users/aron/go"
GORACE=""
GOROOT="/usr/local/go"
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_amd64"
GCCGO="gccgo"
CC="clang"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/ts/s940qvdj5vj1czr9qh07fvtw0000gn/T/go-build901749947=/tmp/go-build -gno-record-gcc-switches -fno-common"
CXX="clang++"
CGO_ENABLED="1"
PKG_CONFIG="pkg-config"
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"

What did you do?
package main

import (
	"fmt"
	"os/exec"
	"syscall"
)

func main() {
	var cmd *exec.Cmd
	var err error

	cmd = exec.Command("/bin/ls")
	cmd.Dir = "/this/does/not/exist"
	cmd.SysProcAttr = &syscall.SysProcAttr{
		Setpgid: true,
	}
	err = cmd.Run()
	fmt.Printf("error was: %v\n", err)

	cmd = exec.Command("/bin/ls")
	cmd.Dir = "/this/does/not/exist"
	err = cmd.Run()
	fmt.Printf("error was: %v\n", err)
}

What did you expect to see?
$ go run baddir.go
error was: chdir /this/does/not/exist: no such file or directory
error was: chdir /this/does/not/exist: no such file or directory

What did you see instead?
$ go run baddir.go
error was: fork/exec /bin/ls: no such file or directory
error was: chdir /this/does/not/exist: no such file or directory

Note that the error string makes the reader believe that "/bin/ls" is the thing that may not exist. Compare when not using Setpgid; the working directory is properly reported as not existing.

This issue is also present on a linux/amd64 system (still using Go 1.8.1).

Workaround: Test that the configured working directory exists before attempting to exec a process.

Looks like the presence of a SysProcAttr is enough to avoid this pre-check (which produces the nice error message):
https://github.com/golang/go/blob/88672de7af5c6a146d64ad2bba7282716fd0d65d/src/os/exec_posix.go#L22-L31

Hello @aronatkins, sorry that we hadn't looked at this.
Am I right to allude that you'd suggest that we Stat for presence of the directory regardless of
if we have the SysProcAttr or not?
If so, that code was updated by @hanwen's CL https://golang.org/cl/6297083 to solve issue https://github.com/golang/go/issues/3649.
Interestingly I think @rsc postulated in https://github.com/golang/go/issues/3649#issuecomment-66067306, such a problem as you've reported.
I'll invite @hanwen and @rsc to chime in, and perhaps we might punt this bug to Go1.11. If that happens apologies for that, we'll most definitely work on it during Go1.11.

@odeke-em Thanks for the update. I'm OK with shifting this out of Go 1.10.
From reading #3649, it appears that there are certain SysProcAttr configurations where we want to test the Dir directly, certain cases where that directory might need to be considered with the chroot, and certain cases where the error needs to come from deeper in the call stack. I don't have enough context to see the change that addresses all these cases.
@rsc's comment https://github.com/golang/go/issues/3649#issuecomment-66067306 is exactly what this issue is tracking.

Cool, milestone set to Go1.11, please feel free to revert if there is something that we can do for Go1.10.

Has been a long time but a friendly ping on this bug. It seems like it was punted to Go 1.11 but now 18 months later it seems like it wasn't fixed in that release (which I'm using), and neither in Go 1.12 which I also tested.
I've just spent 2 days debugging a complex system issue that came down to the target directory not existing and I passed by the erroneous cmd.Dir statement many times without stopping due to the misleading error.
Happy to contribute where possible. 🙂


llvm-cov dependency missing

I have my pkgs set to
      overlays = [
        (import rust-overlay)
        (self: super: let
          toolchain = (super.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml).override { extensions = [ "rust-src" ]; };
        in {
          rustc = toolchain;
        })
      ];
      pkgs = import nixpkgs { inherit system overlays; };

but then when I have pkgs.cargo-llvm-cov as a dependency of something else, I get
error:
       … while calling the 'derivationStrict' builtin

         at /builtin/derivation.nix:9:12: (source not available)

       … while evaluating derivation 'nix-shell'
         whose name attribute is located at /nix/store/35dcag44a0ymww0vy0s4jjgxwpv9g62d-source/pkgs/stdenv/generic/make-derivation.nix:300:7

       … while evaluating attribute 'buildInputs' of derivation 'nix-shell'

         at /nix/store/35dcag44a0ymww0vy0s4jjgxwpv9g62d-source/pkgs/stdenv/generic/make-derivation.nix:347:7:

          346|       depsHostHost                = lib.elemAt (lib.elemAt dependencies 1) 0;
          347|       buildInputs                 = lib.elemAt (lib.elemAt dependencies 1) 1;
             |       ^
          348|       depsTargetTarget            = lib.elemAt (lib.elemAt dependencies 2) 0;

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: attribute 'llvmPackages' missing

       at /nix/store/35dcag44a0ymww0vy0s4jjgxwpv9g62d-source/pkgs/development/tools/rust/cargo-llvm-cov/default.nix:33:10:

           32|
           33|   llvm = rustc.llvmPackages.llvm;
             |          ^
           34|

How can I get llvmPackages to be a part of rustc?

nixpkgs' packages use nixpkgs' rustc which has additional attributes and is packaged to use nixpkgs' dependencies (eg. LLVM). We are shipping binary distributed ones which use upstream (patched) LLVM.

    (self: super: let
      toolchain = (super.rust-bin.fromRustupToolchainFile ./rust-toolchain.toml).override { extensions = [ "rust-src" ]; };
    in {
      rustc = toolchain;
    })

Please use our packages individually and not make it override nixpkgs'. We do not support it.


Harmonize contribute pages from numpy.org and scipy.org

What do you have in mind? I updated the this website to be close to what NumPy has.

The NumPy page recently received an update, so just wanted to por that.

You are talking about this one right https://numpy.org/contribute/ ? Because that was my model for https://scipy.org/contribute/. I just removed the part about slack.

Yes, Jarrod recently made a commit.

Making a PR as we speak.


Particles generator appears to be broken in <IP_ADDRESS>

Hello and first thank you for this amazing software!
I spotted a regression when switching to the latest version: the particle generator is broken: the particles are blinking and moving really fast, even when removing velocity and gravity.

Noted, I'll check it out. Thank you for reporting.

Does the bug only occur when loading project from previous version. Or does it also happen on newly created one as well?

On both, I had an old project that triggered the bug so I checked on the welcome files and still happens (even after clearing my AppData). I posted you a gif on twitter : https://twitter.com/OwlyCode/status/1703843473713983764

The welcome file is bugged (since I only update it in stable release). I mean when you create the node on empty project.

Oh I see. It's ok on a new file!


line chart not showing lines

Browser Name: Chrome
Browser Version:  43.0.2357.124 (64-bit)
Platform OS: Mac OSX 10.10.3

This might have happened after one of my recent changes to interpolation.
We should also add a test to spec line chart for this. :)


Fix shop selection when adding a payment

When selecting one or more shops in the creation process of a payment option resulted in an error.

Hello,
thank you for creating this pull request.
I have opened an issue on our Issue Tracker for you. See the issue link: https://issues.shopware.com/#/issues/SW-15892.
Please use this issue to track the state of your pull request.


Write test for AddEpochInfo

Closes: #1834
What is the purpose of the change
Adds a table driven test for AddEpochInfo functionality, and a unit test for its behavior on duplicates.
This is part of followup from #1893
Testing and Verifying
This change added tests
Documentation and Release Note

Does this pull request introduce a new feature or user-facing behavior changes? no
Is a relevant changelog entry added to the Unreleased section in CHANGELOG.md?no
How is the feature or change documented? not applicable

Fixed formatting, added a zero duration test


[MindNode] Allow to set the path to the Mindnode app in the extensions parameters

Extension
https://www.raycast.com/thuggyduck/mindnode
Description
Hello,
I'm currently using Mindnode through Setapp, but the extension fails to locate it due to a differing path from the standard version.
I believe this issue could be resolved if the extension allowed users to manually direct it to their specific Mindnode application location.
Who will benefit from this feature?
Setapp users
Anything else?
Thanks in advance for entertaining the idea!

Hi, thanks for using this extension!
Well, I just supported the mindnode on setapp and waiting for merge #11368 .


Nvim-R: Usage: rice^@^@rice: error: no such option: --no-save^@

Hey,
I understand that there is only partial support for Nvim-R, but I thought I'd report this issue.
After setting let R_app = 'rice', I get this error message when trying to start Nvim-R with an R file open:
Usage: rice^@^@rice: error: no such option: --no-save^@
I tried both pip install rice and pip install git+https://github.com/randy3k/rice.
I couldn't find any mentions of this error message in either rice's or Nvim-R's issues. Any idea what the issue is?
Cheers!

try this instead
let g:R_app = 'rice'
let g:R_cmd = 'R'

Please note that it now only send the selection / line to rice but not evaluate it. It is because rice and Nvim-R are both "hacking" into R console to send code and rice supports multiline input. There are still some work needed to be done in order to make this happens.

Alright, the master branch rice is working with Nvim now.

I think it is now fully operational. Please let me know if it also works for you.

0.0.8 is out.

It works great! Thanks for making the change so quickly.

BTW, Nvim-R has a settings to turn of the highlight of the terminal, it may be useful.
let g:R_app = "rice"
let g:R_cmd = "R"
let g:R_hl_term = 0


Unable to Set Up oauth connections in MacOS Client

Bug Description:
When trying to create an oauth connector in MacOS, what appears to be an browser pop up from within Altair pops up, title shows the title of the site it would be connecting to, but the page is completely black and I cannot grant the permission.  This does work on the same computer as a Chrome Extension.  This is to a Webex Developers API.
Screenshot:

Can you check the console if there are any errors? Cmd + Alt + I should pop the developer tools open in the desktop app

There are no errors in the developer console.

I mean check the console in the dialog that opened. There may be some CSP or other errors that block the content from rendering. This is the google signin page rendered with the developer console open.

It looks like the issue is the CSP set in Altair blocks the scripts from non-Altair and non-google domains. I'll fix this in the next release.

Get this in the current version

Yeah that checks out. That PR should fix it


SPIN_VERSION env var is set by this action

As seen here, this action sets the SPIN_VERSION env var in the action environment.
This means users of this action attempting to supply their own value via an env var of the same name won't be able to do so.
Consider the following:
env:
    SPIN_VERSION: v2.4.2

jobs:
  myjob:
      - name: Install Spin
        uses: fermyon/actions/spin/setup@v1
        with:
          version: ${{ env.SPIN_VERSION }}

env.SPIN_VERSION will end up resolving to the output of spin --version per https://github.com/fermyon/actions/blob/ff08c824f11ad96ae0f8d8ac814df25718579fe4/src/spin.ts#L14.

Hi @vdice,
That code to set environment variable is executed after spin has been installed (using the input). but yeah it will be overwritten if any further steps wants to use it (in theory with same version as originally requested).
did you run into this issue during any particular workflow? I can take a look at that. thanks


Cannot get statusicon to work in 5.4

I downloaded and compiled version 5.4 to get the STATUSICON option. However, I cannot get that to work as I thought it would. For example I have the following code:
if [ "$#" -eq 0 ]; then
  check_state
  if [[ "${STATE}" == "Connected" ]]; then
    echo "STATUSICON|lock.png"
    echo "DISABLED|Enable App"
    echo "Disable App"
  else
    echo "STATUSICON|unlock.png"
    echo "Enable App"
    echo "DISABLED|Disable App"
  fi
  echo "----"
  echo "icon error.png"
fi

if [[ $1 == icon* ]]; then
  echo "icon" >> /tmp/abc
  echo "STATUSICON|error.png"
fi

if [[ $1 == Disable* ]]; then
    /path/to/app disconnect
    echo "STATUSICON|unlock.png"
fi

So it builds the menu correctly and when I select the "icon error.png" option from the menu I can see that the word icon is printed into the /tmp/abc file as expected meaning that the if statement matched the parameter. However, I never see the status icon change from here. The call to check_state at the top successfully changes the icon but after it is set that 1 time I never seem to be able to change it again.
Any ideas?

As it is, the undocumented STATUSICON and STATUSTITLE syntax (recently added by a 3rd party contributor) is only supported when building the contents of the menu. The output of the command when a menu item is selected is ignored.

Thank would explain it. Thanks!


Feature proposal: saving current request setup under named alias

This is great package, thanks for sharing your work!
As I've been using it couple of days I noticed that it's quite inconvenient, having to repeatedly change request settings every time I want to send different request.
The option of saving current state of request would solve the problem.
Given this output of httpie post:
http://<IP_ADDRESS>:3000/api/oauth/token> http --form --style native POST http://<IP_ADDRESS>:3000/api/oauth/token user_id==value client_id=value client_secret=value grant_type=password password=test  username=testuser1 Content-Type:application/x-www-form-urlencoded

We could use eg.: http://<IP_ADDRESS>:3000/api/oauth/token> alias getToken
which would save the request under getToken keyword. Later, we could call getToken request and optionally overwrite any req options like so:
http://<IP_ADDRESS>:3000/api/oauth/token> getToken username=testuser2 password=test2

I like your idea of saving a state, but I think the user interface could be better. The user interface design of this tool mimic the Unix/Linux shell environment, but alias getToken does not look like one. Perhaps we should approach this with Unix pipelines:
# Print the current state
> env
username==testuser
password==testpassword

# Export the current state to a file
> env > state.txt

# Import state from a file
> source state.txt

You're right @eliangcs , that would be even better.

I've started working on the unix pipelines feature as well as env and source commans.
HERE is the current state of development.
What's been done:

[x] Redirecting command output to files write & append operations aka. > & >>

This currently works for env, preview and action commands
Eg.: env > /tmp/env.log

    `httpie post some=data > /tmp/httpie.log`

[x] env command
[x] some tests

What needs to be done:

[ ] source command
[ ] tests for redirecting of command output to file
[ ] we need to decide how the env command should behave (the explanation bellow)
[ ] concurrent support of logging command output & writing to output data to a file

The dilemma I'm facing now is how should I implement the env command - It quite makes sense to output only request data & headers when we are echoing output to a terminal, however when we redirect output of the env command to a file, we need to write all context data - that means the exact same data which are currently saved for example to $HOME/.local/share/http-prompt/context/localhost.80.
So, because of that I think the output of the env command should be always all context data, no matter if we echo to a console or write to a file.
May I ask for some feedback on the current state @eliangcs , please?

@fogine Thank you very much for taking the effort to do this! I think when a user does source file, http-prompt should execute the file content line by line, just as you enter those lines manually. So for example, you have a file named ./abc.txt:
cd http://example.com
name=abc
query==foo
Content-Type:application/json

When a user does source ./abc.txt, the result should be equivalent to what happens when you enter these commands:
http://localhost> cd http://example.com
http://example.com> name=abc
http://example.com> query==foo
http://example.com> Content-Type:application/json

I agree we should output all context data, no matter we're writing to a terminal or a file. So if a user does env, it should print not only request headers and data, but also a cd to the current URL, such as:
http://example.com> env
cd http://example.com
name=abc
query==foo
Content-Type:application/json

Does it make sense?

@eliangcs , you provided excellent contribution guide and therefore ease the process of starting out for me, thanks!
The way how you described the env command should work makes totally sense. However I have few more related points I'd like to discuss with you:

The current source command concept does not count with the context (aka. state) switching but rather polluting of the current state of the http-prompt console... which is totally correct for the command named source. However, we also need a functionality which would allow as to quickly switch to completely different context without the need of executing rm * command.
Consider the following example:

contents of ./abc.txt file:
cd http://someurl.com
name=abc
query==foo

the http-prompt console:
http://localhost> env
cd http://localhost
bar=baz

http://localhost> source ./abc.txt
http://someurl.com> env
cd http://someurl.com
name=abc
query==foo
bar=baz         # !!! we would have to execute `rm *` before the `source` command so that the `bar` parameter wouldn't have been included... which is cool but a man gets bored quickly of having to type too much :)

that's why we should consider introducing another command exec alongside the source command.
Only difference would be that the exec would clear current state before executing contents of ./abc.txt file (that way it would reflect the behavior of the bash exec command). What is your opinion about that?

What should be the filepath relative to? ... when command output is redirected to file and we got relative path to file?
When we do eg.: env ./some/relative/path/to/file...
My suggestions are either $HOME or XDG Base Directory (~/.local/share/http-prompt)

@fogine I think exec is a great idea! A user can use source to override context partially, while exec can be used to replace the current context with a new one.
The file path should be relative to the current working directory. When we have shell command support (WIP in #61), we can do something cool like:
> value=="a very long string"
> env > ./out.txt

# Compute sha1 hash of 'value' in shell, and assign back to querystring parameter 'value_sha1'
> value_sha1==`cat ./out.txt | grep value | sed "s/^value==//g" | sha1sum`

As I've been implementing the exec & source commands. I've stumbled upon an issue with event listener for the url_changed  event. This is causing unexpected loading of saved context data from the $HOME/.local/share/http-prompt/context/localhost.80 file every time a cd command is executed from the sourced file.
I could overcome this somehow, however I think that the functionality of loading saved context on a base url change won't be needed anymore.  The feature can be replaced by the env & source & exec commands...
This is how we could alter the behavior of automatic context saving:
Automatically saved context data would be saved always to the single $HOME/.local/share/http-prompt/context file and only on the http-prompt exit.
Any thoughts about the issue, @eliangcs ?
Thanks!

@fogine I agree with you. Automatic context saving should happen only when http-prompt exits. Feel free to alter this behavior. Thanks!

@eliangcs , I've updated the list HERE so it reflects current state of the development. All discussed features have been implemented (with additional output redirection option eg.: httpie post | tee /tmp/httpie.log  ... which logs to the console and writes to provided file).
The automatic context saving feature has been altered so it saves only the current environment to the single file.
The only thing which is not done yet are tests (will come shortly...).
Also, there are the lexer definitions I struggle with, particularly with preview | action commands integration:
httpie post > /tmp/test # is highlighted as incorrect
httpie post bar=baz > /tmp/test # is highlighted as incorrect
post > /tmp/test # is also highlighted as incorrect

I made few attempts which I expected to work (but they didn't)...
Would you have a time to look at the lexer definitions, please?

I've made some progress with the lexer rules, however it's not that easy as it might look like ...

@fogine Cool! Sorry I didn't reply you earlier. I'm looking forward to using this new feature!

@eliangcs , I'm trying to run tests for all python versions via the tox, I've followed the steps you mention in the contribution guide. When I run the tox command in project's directory I get the following error for all python versions except the py34 and py35:

ImportError while importing test module 'path/to/http-prompt/tests/test_cli.py'.
Original error message:
'No module named enum'
Make sure your test modules/packages have valid Python names.

In the contribution guide you mention:

Again, make sure you're not in a virtualenv, run tox

Do I understand correctly that the tox must be installed and run via the system wide python & pip installation?
My ~/.pyenv/versions/ looks like this:
2.6.9/
2.7.11/
3.3.6/
3.4.4/
3.5.1/
http-prompt/
pypy-5.0.0/
pypy3-2.4.0/

and ~/.pyenv/versions/http-prompt/lib/ contains only the python3.5/ directory`
I've installed the tox via pip install tox so the tox binary is now located at ~/.local/bin/tox
Do you have an idea what am I doing wrong?
Thanks!

@fogine tox should be installed on one of your pyenv's Python versions. Try doing this:
$ cd /path/to/http-prompt
$ pyenv local 3.5.1 3.4.4 3.3.6 2.7.11 2.6.9 pypy-5.0.0 pypy3-2.4.0
$ pip install tox
$ tox

If you run which tox, the output should be ~/.pyenv/shims/tox.

I've uninstalled system wide tox installation and have done:
path/to/http-promptt> which python
~/.pyenv/shims/python

path/to/http-prompt> python --version
Python 3.5.1  # the version is the version from the http-prompt virtualenv

path/to/http-prompt> which pip
~/.pyenv/shims/pip

path/to/http-prompt> pip install tox
path/to/http-prompt> tox

but when I run the last command (tox) I get the exac same error for the all versions except py34 and py35...

The way how I installed the tox means that I run it under virtualenv, doesn't it?
I'm a little bit confused because in the contribution guide you say:

Again, make sure you're not in a virtualenv, run tox
$ cd ~/Projects/http-prompt
$ tox

Could you explain further to me what does it exactly mean to NOT be in a virtualenv. Until now I thought it means using system wide python installation

@fogine I guess your pyenv/tox setup is ok, but enum package wasn't there until Python 3.4. You should either drop using enum or use (the backport)[https://pypi.python.org/pypi/enum34], but I would suggest *not use enum because it's better to reduce as many dependent packages as possible for a CLI tool like http-prompt.

@eliangcs, I completely forgot that it was me who started using the enum module. Now it works, thanks very much!


Trace-dependent security policies [bug oracle without claims]

As explained in #148, the aim is to develop a complementary bug oracle that solely depends on the trace and the exchanged messages.

Exactly, using vscode you even get autocomplete. Modifying the source code directly just causes a mess git submodules.

Its still put dependant, but abstractions could be built in rust which simplify the instrumentation

Its still put dependant, but abstractions could be built in rust which simplify the instrumentation

OK I like it.
I can now use this to check matching conversation (based on the hash transcript, so actually checking agreement on the hash transcript). I'll do that today.

Closing because it is out of date.


[Investigate] Gen 1 pipettes pause for ~15 seconds after every tip ejection

overview
Customers are reporting a long pause after pipettes drop tips which is resulting in significantly longer protocol run-times.
This ticket is to track an investigation of this issue and define one or more potential solutions.
Current Open Questions:

[ ] Is the delay caused by the pipette plunger's homing?
[ ] Is there an issue with the pipette's current?
[ ] Is this seen in Gen2s, or just Gen1 pipettes?
[ ] Is this seen in single-channel pipettes, or just multi-channels?

current behavior
After every tip ejection, the pipettes seem to freeze for ~15 seconds before progressing to the next step in the protocol.
steps to reproduce

Drop tips from a Gen 1 multi-channel pipette into the trash or a tip rack.
Watch the pipette freeze before progressing to the next step in the protocol.

expected behavior
The pipette should resume movement immediately after tips are ejected.

I believe the drop_tip and return_tip homes afterwards. If you set that value to False then it should work. What i did was tell the tool when i wanted to drop the tip or return the tip instead of letting it do it via  a .transfer. Code was something like this p300.drop_tip([location],home_after=False) or p300.return_tip(home_after=False). Adding this solved the delay problem for me with Gen1 pipettes.

So what's happening here is that P300, P50, and P10 Multi Gen 1 model 1.5 pipettes will go through their drop tip behavior twice. This behavior was added to make absolutely sure the tips get dropped - we were having customer reports that occasionally the tips wouldn't drop off the pipettes, which can ruin a protocol (of course, so can the added time!).
If you've never seen this issue, you can disable this behavior by editing the settings for your multichannel pipette. In the Opentrons App, click the robot tab and select your robot in the left pane. Click Pipettes and Modules, then click "Settings" under the multi pipette. Then, clear the checkbox next to "double drop tip":

Once you've done this for your multichannel pipettes, they will only do the drop tip behavior once.
Sorry we couldn't get back to you sooner, but I hope this helps!


The correct way to test the performance from ucudnn-tensorflow1.6

Sys info:
CentOS7, TF1.6, Python3.6, CUDA9.0, cuDNN7.0.5, gcc 4.9.3,
Description:

The ucudnn is successfully built in DP-mode.
2）I tried the test in the repository, it's result is reasonable, and DP-mode is working.
Then I wrote a python script to only run one conv2D kernel from AlexNet. The script is in below:

import numpy as np
import tensorflow as tf
import time

input_data = np.array(np.random.rand(256,27,27,64)).astype(np.float32)
weight_data = np.array(np.random.rand(5,5,64,192)).astype(np.float32)

with tf.device('/device:GPU:0'):
    input_x = tf.constant(input_data)
    filters = tf.constant(weight_data)
    x = tf.nn.conv2d(input_x, filters, strides=[1,1,1,1], padding='SAME')
init = tf.global_variables_initializer()

sess = tf.Session()
sess.run(init)
times= []
for i in range(10):
    a1=time.time()
    sess.run(x)
    a2=time.time()
    print('Time:',(a2-a1))
    if i>0:
        times.append(a2-a1)

Output is :
$ python tf_conv2d.py
/home/web_server/dlpy72/py3.6/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:517: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint8 = np.dtype([("qint8", np.int8, 1)])
/home/web_server/dlpy72/py3.6/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:518: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/home/web_server/dlpy72/py3.6/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:519: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint16 = np.dtype([("qint16", np.int16, 1)])
/home/web_server/dlpy72/py3.6/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:520: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/home/web_server/dlpy72/py3.6/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:521: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  _np_qint32 = np.dtype([("qint32", np.int32, 1)])
/home/web_server/dlpy72/py3.6/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:526: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
  np_resource = np.dtype([("resource", np.ubyte, 1)])
2019-09-02 12:03:45.345094: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1212] Found device 0 with properties:
name: TITAN Xp major: 6 minor: 1 memoryClockRate(GHz): 1.582
pciBusID: 0000:84:00.0
totalMemory: 11.91GiB freeMemory: 3.15GiB
2019-09-02 12:03:45.345211: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1312] Adding visible gpu devices: 0
2019-09-02 12:03:45.834470: I tensorflow/core/common_runtime/gpu/gpu_device.cc:993] Creating TensorFlow device (/job:localhost/replica:0/task:0/device:GPU:0 with 2875 MB memory) -> physical GPU (device: 0, name: TITAN Xp, pci bus id: 0000:84:00.0, compute capability: 6.1)
Time: 3.398329257965088
Time: 0.011669397354125977
Time: 0.011150836944580078
Time: 0.011324405670166016
Time: 0.011104106903076172
Time: 0.011148929595947266
Time: 0.01110696792602539
Time: 0.011095523834228516
Time: 0.011104822158813477
Time: 0.011106252670288086

4）However, I tried to compare the result with the official tensorflow-gpu 1.6.0 or changing the runtime options to difference values, but the speed shows no different.
Would you give some advice about the setting for tensorflow to observe the performance of ucudnn?
Thanks

I noticed the Conv2DOp is called with CPUDevice. I need to take a further look into it.


[TS SDK] Adding condition to determine mutable types in SDK

We changed the ts / rust SDK to accomodate for labels shared objects that could have mutable set to true, or set to false.
We test with e2e testing.

Thanks for addressing the comments and adding the test cases!


Events table infinite scroll.

Uses ag-grid 'infinite' row model type
Added option to display event index. (very useful in testing)
Tested on Chrome Version 85.0.4183.83 (Official Build) (64-bit) using samples traces in TraceCompassTutorialTraces
Signed-off-by: Akshay Sharma<EMAIL_ADDRESS>

I've squashed the original commit, post-review changes, and a couple minor additions into a single commit 5bb8ed5245f894dd1c833a603f47108b19c75fbb.

I have found a small bug with page up and down.
Here is a video illustrating the issue. https://youtu.be/7ow_GePBqMk


SET SINGLE_USER doc confuses most engineers I work with

https://github.com/MicrosoftDocs/sql-docs/blob/live/docs/relational-databases/databases/set-a-database-to-single-user-mode.md
@MightyPen Hope 2019 is treating you well :)
There are a couple of problems with this documentation:

Even Microsoft SQL Server MVPs have hard a hard time reading this documentation correctly. I worked with one vendor where it took them 9 months to fix a bug related to AUTO_UPDATE_STATISTICS_ASYNC ON.  I attribute most of this delay to the fact there is no good script that demonstrates best practices.

The best practices around killing all connections to a database are scattered all over the place, and no one place contains a general script that can do the job regardless of how your database is set-up.

The link https://docs.microsoft.com/en-us/sql/t-sql/statements/alter-database-transact-sql-set-options?view=sql-server-2017 has a verbose section on AUTO_UPDATE_STATISTICS_ASYNC, but doesn't say anything about how turning it on can negatively affect ALTER DATABASE { database_name  | CURRENT }   SET SINGLE_USER WITH ROLLBACK IMMEDIATE:

AUTO_UPDATE_STATISTICS_ASYNC { ON | OFF }
ON
Specifies that statistics updates for the AUTO_UPDATE_STATISTICS option are asynchronous. The query optimizer does not wait for statistics updates to complete before it compiles queries.
Setting this option to ON has no effect unless AUTO_UPDATE_STATISTICS is set to ON.
By default, the AUTO_UPDATE_STATISTICS_ASYNC option is set to OFF, and the query optimizer updates statistics synchronously.
OFF
Specifies that statistics updates for the AUTO_UPDATE_STATISTICS option are synchronous. The query optimizer waits for statistics updates to complete before it compiles queries.
Setting this option to OFF has no effect unless AUTO_UPDATE_STATISTICS is set to ON.
The status of this option can be determined by examining the is_auto_update_stats_async_on column in the sys.databases catalog view.
For more information that describes when to use synchronous or asynchronous statistics updates, see the section "Using the Database-Wide Statistics Options" in Statistics.

"Using the Database-Wide Statistics Options" is not even an actual section in https://docs.microsoft.com/en-us/sql/relational-databases/statistics/statistics?view=sql-server-2017 - I have no idea what it should link to, but probably "Statistics Options" section here: https://docs.microsoft.com/en-us/sql/relational-databases/statistics/statistics?view=sql-server-2017#statistics-options

https://docs.microsoft.com/en-us/sql/relational-databases/databases/set-a-database-to-single-user-mode?view=sql-server-2017#Prerequisites has a bizarre pre-requisite that will only fail at run-time, and the pre-requisite is not even in a warning section.  It's a bit like that xkcd comic about Little Bobby Drop Tables.

Even when you read the pre-requisites, it links you to a wall of text in the Arguments section of the ALTER DATABASE command which probably has the build instructions for the next Tesla model car somewhere on the page. :) For more information, see ALTER DATABASE SET Options (Transact-SQL). - I can see why the vendor I was working with gave up trying to figure out what I was talking about when I explained to them that asynchronous stat jobs were causing their scripts to fail.  It's actually gotten even more complicated now that the "Click a product" feature has come into place.
Based on the pre-requisites, I would think I should scroll to the section on the ALTER DATABASE SET Options page about "AUTO_UPDATE_STATISTICS_ASYNC", but that doesn't seem to have any useful information or warnings/
When you go to the Examples on the ALTER DATABASE SET Options page, it mentions NOTHING about "AUTO_UPDATE_STATISTICS_ASYNC" in the examples on how to set a database to READ_ONLY.
Finally, if I scroll to the section under Arguments and look at SINGLE_USER, I see the following:

Before you set the database to SINGLE_USER, verify the AUTO_UPDATE_STATISTICS_ASYNC option is set to OFF. When set to ON, the background thread used to update statistics takes a connection against the database, and you will be unable to access the database in single-user mode. To view the status of this option, query the is_auto_update_stats_async_on column in the sys.databases catalog view. If the option is set to ON, perform the following tasks:

Set AUTO_UPDATE_STATISTICS_ASYNC to OFF.

Check for active asynchronous statistics jobs by querying the sys.dm_exec_background_job_queue dynamic management view.

If there are active jobs, either allow the jobs to complete or manually terminate them by using KILL STATS JOB.

That's it.  No example code on how to properly check for active asynchronous statistics jobs, just a wall of text embedded deep in the docs.  Again, I can totally see why the vendor I was working with did not put in the extra effort to fix my bug - the documentation was just a tangled web here.

My suggestions for improvement would be:

Update https://docs.microsoft.com/en-us/sql/relational-databases/databases/set-a-database-to-single-user-mode?view=sql-server-2017 to move the pre-requisites into a Warning section instead of a tame pre-requisites section - color will help people to read more carefully.
Fix [!code-sqlDatabaseDDL#AlterDatabase8] so that it works in all scenarios.
Fix bad section links in ALTER DATABASE SET Options page so that the two references to the Statistics page point to actual sections, rather than the whole page.
Fix the documentation for the argument SINGLE_USER in the ALTER DATABASE SET Options page so that there is a link back to [!code-sqlDatabaseDDL#AlterDatabase8] or even https://docs.microsoft.com/en-us/sql/relational-databases/databases/set-a-database-to-single-user-mode?view=sql-server-2017 so that developers can more easily find the appropriate way to kill all connections to a database.
Consider adding some search engine optimization to https://docs.microsoft.com/en-us/sql/relational-databases/databases/set-a-database-to-single-user-mode?view=sql-server-2017 so that the phrase "kill all connections to a database" are included, so that eventually this page becomes the top search result in Bing/Google/DuckDuckGo for how to kill all active connections to a database.
Fix SSMS as well so that the SMO library correctly scripts out this action as well (this may be too much to ask, at least of the documentation team).

One last comment.  The vendor I work with also, prior to eventually fixing the issue based on the convoluted documentation, suggested that the issue was fixable by doing the following:
SET DEADLOCK_PRIORITY 10;
ALTER DATABASE [YourDBName] SET SINGLE_USER WITH ROLLBACK IMMEDIATE;

This was claimed to be the "undocumented" solution by the Microsoft SQL Server MVP for about 6 months.
This advise appears to come adapted from the following blog/website: https://sqlstudies.com/2017/02/16/deadlock-on-alter-database/

@jzabroski Hi John, Thanks for this detail. This is an important documentation article, so we would like to make all necessary improvements to it as soon as we can.
To set expectations, it will be weeks, hopefully not months, before we can take a close look at this Issue 1640 and the docu article. We have far more work to do than we have resources to get to everything promptly  :-)
.
CC: @stevestein

Thanks, @MightyPen
@stevestein , below is my attempt at a script to kill stats job.  The idea being this script could be stacked above a SET SINGLE_USER command.  It's a bit messy, AND it doesn't appear like it will work on Data Parallel Warehouse databases (according to the insane docs on the background job queue DMV - which I didn't even realize when I wrote up this initial suggestion to improve this area that the name of the DMV depends on what product you run against).
I should know within a few nights of testing this if it actually works in the wild.  I debated waiting to see if it worked prior to posting this, but I also don't want to forget, either.  Consider this my contemporaneous notes :)
/*
From: https://docs.microsoft.com/en-us/sql/relational-databases/system-dynamic-management-views/sys-dm-exec-background-job-queue-transact-sql?view=sql-server-2017#remarks
Quote: This view returns information only for asynchronous update statistics jobs. For more information about asynchronous update statistics.
*/

SET XACT_ABORT ON;
SET NOCOUNT ON;

DECLARE @DatabaseName SYSNAME; -- Database on which the job is to execute.
DECLARE @job_id INT; -- 	Job identifier.

DECLARE StatsJobsCursor CURSOR FAST_FORWARD LOCAL
FOR
SELECT DB_NAME(database_id) AS DatabaseName, job_id
FROM sys.dm_exec_background_job_queue
WHERE DB_NAME(database_id) = DB_NAME();

OPEN StatsJobsCursor
FETCH NEXT FROM StatsJobsCursor INTO @DatabaseName, @job_id
WHILE @@FETCH_STATUS = 0
BEGIN

	DECLARE @SqlCmd1 VARCHAR(MAX) = 'ALTER DATABASE [' + @DatabaseName + '] SET AUTO_UPDATE_STATISTICS_ASYNC OFF';
	IF EXISTS (SELECT * FROM sys.databases d WHERE d.[name] = @DatabaseName AND d.is_auto_update_stats_async_on = CAST(1 AS BIT))
	BEGIN
		RAISERROR(@SqlCmd1, 16, 1) WITH NOWAIT;
		EXEC sp_executesql @stmt = @SqlCmd1;
	END

	DECLARE @SqlCmd2 VARCHAR(MAX) = 'KILL STATS JOB ' + CAST(@job_id AS VARCHAR);

	BEGIN TRY
		RAISERROR(@SqlCmd2, 16, 1) WITH NOWAIT;
		EXEC sys.sp_executesql @stmt = @SqlCmd2;
	END TRY
	BEGIN CATCH
		DECLARE @ErrorMessage NVARCHAR(MAX) =
			'Error: ERROR_MESSAGE[' + ERROR_MESSAGE()
			+ '] ERROR_NUMBER[' + CAST(ERROR_NUMBER() AS NVARCHAR)
			+ '] ERROR_SEVERITY[' + CAST(ERROR_SEVERITY() AS NVARCHAR)
			+ '] ERROR_STATE[' + CAST(ERROR_STATE() AS VARCHAR) + ']'
		RAISERROR(@SqlCmd2, 16, 1) WITH NOWAIT;
	END CATCH

	FETCH NEXT FROM StatsJobsCursor INTO @DatabaseName, @job_id
END

/* Clean up our work */
CLOSE StatsJobsCursor;
DEALLOCATE StatsJobsCursor;

@stevestein Hi Steve, you were OOF when this public PR 1640 was entered, so here is a reminder now that you have returned.
This PR is Assigned to you for consideration and processing.   Thx G

@jzabroski - This issue will be fixed in the documentation, although we cannot yet say when. We have created a new internal tracking number for this work item: 1504619. We are closing this Issue, and are letting the new item track this going forward. You will receive another notice after the internal item if completed. Thank you for submitting this Issue.
If you find any more info feel free to add to this closed issue as it will be reviewed/referenced when this item is eventually worked on.
Thanks!

@stevestein Sounds great!  Thanks for the update, Steve!


fix(iOS,Podfile): fix workaround condition.

If the React Native version is not defined using the env-arg, we are not overriding the version (currently, we use v0.66).

CC @igorgn @jonathanmos


fix(modules): output client_key and client_certificate for GKE

The Helm provider requires a way to authenticate to the Cluster to deploy software packages in Kubernetes
As per their documentation, the client_key and client_certificate are also needed to accomplish this: https://registry.terraform.io/providers/hashicorp/helm/latest/docs#credentials-config

Checklist

I applicable, I acknowledge that I have:

[x] Read the contributing guide
[x] Ran terraform fmt on all modified files
[x] Regenerated the relevant README.md files using tools/tfdoc.py
[ ] Made sure all relevant tests pass

I'm closing this PR as in the end it worked (better) using the following approach:
Adding this to my providers.tf
data "google_client_config" "current" {}

And authenticating to the cluster with:
provider "helm" {
  kubernetes {
    host  = module.gke-multitenant.clusters.cluster-0.endpoint
    token = data.google_client_config.current.access_token
    cluster_ca_certificate = base64decode(module.gke-multitenant.clusters.cluster-0.ca_certificate)
  }
}


White noise Emulationstation

Hi all!
I installed RetroPie on a Raspberry pi 2 en it works fine but when I launch any game the log.txt says:
req sound [detailed.launch]
lvl2:      (missing)
but the sound in the game works great and at return of emulationstation sounds a white noise
whta can I do?

Same missing here, but there is no sound at the beginning launching the game. When the sound comes, it is laggy and the video slows down too.


added stopwatch timer app

Added stopwatch timer app made in JS. @surajondev kindly add Hacktoberfest tag and merge the PR, thanks!

Thanks for the PR. It has been merged.


Mousemove

I have a use case where I would like to get mouse X and Y, as well as get move events. Getting X and Y isn't enough, because I'm hoping to read mouse motion when someone is playing a shooter game. Usually the way these are written, the game resets the mouse position to the center of the screen very quickly, so getting X and Y would just tell me the mouse is in the center of the screen.
I see the python mouse module has support for these, and that you're actively working on this. Do you think you could put this on your roadmap?

(I might open a PR in LepikEvents if it would be helpful)

opened https://github.com/Borecjeborec1/lepikEvents/pull/1

code staged almost ready to merge once that lepikEvents PR is merged : https://github.com/xGulfie/LepikJS

Sorry for late response, I was aways for a while.
Thanks for that. lepikevents (v1.5.14+) code is already merged  and LepikJS (v1.3.8+) package should now contain the mouseMove event.
Huge thanks for that. The refactoring of python code is cool too!


use either tfp/acr claim to determine b2c policy

Purpose
App.jsx   checks for tpf  claim to know the policy that issued the token and decide the necessary action. As a result, the sample SPA doesn't  work  correctly when using a custom policy based on https://github.com/Azure-Samples/active-directory-b2c-custom-policy-starterpack. This is because the starter-pack policies return the tfp   claim as acr
Does this introduce a breaking change?

[ ] Yes
[- ] No

Pull Request Type
What kind of change does this Pull Request introduce?

[-] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

Get the code

git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install

Test the code

What to Check
Verify that the following are valid

...

Other Information

@vinmugambi please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
@microsoft-github-policy-service agree [company="{your company}"]

Options:

(default - no company specified) I have sole ownership of intellectual property rights to my Submissions and I am not making Submissions in the course of work for my employer.
(when company given) I am making Submissions in the course of work for my employer (or my employer has intellectual property rights in my Submissions by contract or applicable law). I have permission from my employer to make Submissions and enter into this Agreement on behalf of my employer. By signing below, the defined term “You” includes me and my employer.

Contributor License Agreement

@microsoft-github-policy-service agree [company="{your company}"]

@microsoft-github-policy-service agree

@microsoft-github-policy-service agree


Remove custom js libs from git commit when it's not edited

After a major refactor, we've ended up in a case where custom js libs are written to file for every git operation. This can lead to serious performance issue when the application has couple of js libs.
We should write the JS lib to file only when there's a change.

@nidhi-nair @sondermanish Can you confirm if this would be still relevant post Git DSL cleanup

Resolved as part of auto-commit


Delete NavigationQuery

After https://github.com/serlo/frontend/pull/1678 we can delete the NavigationQuery

To early :see_no_evil:  https://serlo.slack.com/archives/CEB781NCU/p1654694531208639?thread_ts=1654692760.944419&cid=CEB781NCU


Basics of DSA with Python

You can add some basic codes in Python like factorial, prime and perfect number , largest of three number, etc.
https://github.com/IEEE-WIE-VIT/WIE-WoC/tree/main/DSA Coding/Basics

hi i will do it

Go ahead


Docker image on arm?

Hey,
I got the manual ynam command to pull my transactions into YNAB, yay!
Does the docker image work on arm? I got the following warning when I ran the docker run command that included the quickstart argument. Very new to docker, so my apologies if I'm doing this wrong.
WARNING: The requested image's platform (linux/amd64) does not match the detectd host platform (linux/arm64/v8) and no specific platform was requested
exec /usr/bin/sudo: exec format error
I'm using portainer to manage my containers. Do you have any experience with this?
I got portainer  working just fine but now I'm trying to schedule the container to run once a day.
Here is a guide I'm using to attempt this: https://www.portainer.io/blog/using-the-edge-agent-on-your-local-docker-instance
What should my command be to run once a day? Not even sure if that is the right question. Sorry for my ignorance!
Of course non of this matters if the image can't run on arm, let me know.
Thanks again for your help!

Nothing about ynam precludes it from working on arm, although I've never tried it. If you want a quick fix, downloading the source and running docker build snowskeleton/ynam <ynam_source_directory> should work. Long term, I’ll look into incorporating an arm version into my release process.
I'm not specifically familiar with that container service. My setup is an Ubuntu server running on x86 hardware. I have a cron job scheduled every 10 minutes. I just rewrote the Docker part of the README the other day, so that should have up to date info on what command to run. If part of my instructions don't make sense, please ask. I want them to be as thorough as possible.

So after running the docker build command  "sudo docker build snowskeleton/ynam /home/ynam", it gave:
"docker build" requires exactly 1 argument.
See 'docker build --help'.
I then ran sudo docker build snowskeleton/ynam /home/ynam, and it gave:
Sending build context to Docker daemon  325.1kB
Step 1/8 : FROM selenium/standalone-chrome as b1
---> 2324e0524f83
Step 2/8 : ENV PATH=$HOME/.local/bin:$PATH
---> Using cache
---> 340c29c9232c
Step 3/8 : RUN sudo su
---> [Warning] The requested image's platform (linux/amd64) does not match the                                      detected host platform (linux/arm64/v8) and no specific platform was requested
---> Running in 2a570a97feea
exec /bin/sh: exec format error
The command '/bin/sh -c sudo su' returned a non-zero code: 1
What dumb mistake am I making?
I get the following error when trying to run the image installed through instructions in the ReadMe:
exec /usr/bin/sudo: exec format error
After doing a quick search, some people on a form said this could be do to having differing architectures. That's why I was pursuing trying to get an arm version. Do you have any thoughts?
Thanks!

To answer your first question, I mistyped the command I gave you. The tag has to be prepended with a -t flag like so
docker build -t snowskeleton/ynam <ynam_source_directory>

But! That shouldn't be necessary, as I got the docker hub version to support both arm64 and amd64. You should be able to pull a fresh image from snowskeleton/ynam:latest and it'll work. Lemme know if it doesn't.

Ah gotcha! I kind of assumed maybe something wasn't quite right.
Thanks so much for doing that!! I got the new version and after inspecting the image I see arm 64!
Sadly I'm still having the same issue. I keep getting exec /usr/bin/sudo: exec format error. Do you have any other ideas.
I've done fixes like adding docker to sudo and several other random things, but still getting the same error. Planning on playing around with the Dockerfile a little to see if I can fix the issue. Here's a thread I've been looking at https://stackoverflow.com/questions/25845538/how-to-use-sudo-inside-a-docker-container. I'm thinking my system doesn't like something about the sudo su. Before now I've really had no experience with docker or linux for that matter. It's been good! Definitely  will need it at some point in software development.
Thanks! I owe you a coffee or something!

My instinct says the sudo error is a red herring. Usually this type of low level, opaque system failure is because docker isn't installed correctly, for some definition of "correctly." The first thing I check in these cases is that the docker group exists and that your user is a part of it (and that you've restarted your shell since making/joining said group). You can also try running some other images to see if they work. docker run hello-world is an easy test, so is docker run ubuntu. They might give you different, more insightful errors.


Horizon package

This PR introduces horizon package that allows making requests to Horizon server.
As a sidenote, I think we should think about changing the name of this repository to go-stellar-sdk.

I realized it's not possible to use response structs directly from horizon repository because it's using gb. As a workaround, I simply copied the structs required by the current methods. The long term solution could be to extract response structures to a separate repository and then use it from horizon and go-stellar-base.

Regarding the duplication of the json structs,  I believe that is fine.  We're in a bit of a strange situation because horizon depends upon go-stellar-base and so go-stellar-base should not do the reverse.
For now, manual copying is fine, but if we find it becoming a problem, we might use something like https://godoc.org/golang.org/x/tools/cmd/bundle to automate the copying.

OK, fixed all issues. Added 2 comments regarding HorizonError.

+1

Thanks for adding this package bartek, It's awesome.  I'm looking forward to it growing over time


using teacher_force failed when using tensorflow as backend

I am using teacher_force with tensorflow backend. But it failed when fit function called.
when using theano as backend, my source code worked.
my condition is as followeing.
Keras                              2.0.6
tensorflow                         1.2.1
theano                             0.10.0b1
and my minimal code is like below.
input_length = MAX_SL
input_dim = len(corpus)
output_length = MAX_TL
output_dim = len(corpus)
LSTM_hidden_dim = 50

# make recurrent model
input_node = Input((input_length, input_dim), name = "main_input_decoder")
readout_tm = Input([output_dim], name = "readout_input")
lstm_st1 = Input((LSTM_hidden_dim,), name = "lstm_hidden_1")
lstm_st2 = Input((LSTM_hidden_dim,), name = "lstm_hidden_2")
s, lstm_st_t1, lstm_st_t2 = rs.LSTMCell(LSTM_hidden_dim)([readout_tm, lstm_st1, lstm_st2])
output = Dense(output_dim)(s)
output_model = rs.RecurrentModel(input = input_node, output=output
                     , readout_input=readout_tm, return_sequences = True
                     , initial_states = [lstm_st1, lstm_st2]
                     , final_states = [lstm_st_t1, lstm_st_t2]
                     , decode = True, output_length = MAX_TL, unroll = False
                    , teacher_force = True
                     , stateful = False, name = "decoder_model")

#use above recurrent model
input_node3 = Input((input_length, input_dim))
ground_truth = Input([output_length, output_dim], name="ground_truth")
decoded = output_model(input_node3, ground_truth=ground_truth)

model = Model([input_node3, ground_truth], decoded)
model.compile(optimizer='adam', loss='binary_crossentropy')

model.fit([inputs, outputs], outputs, epochs=1000, verbose = 1)

error is like this.
InvalidArgumentError: The node 'decoder_model/while_1/Variable_1/Assign' has inputs from different frames. The input 'decoder_model/while_1/Const_1' is in frame 'decoder_model/while_1/decoder_model/while_1/'. The input 'decoder_model/while_1/Variable_1' is in frame ''.

Is this bag? or is there wrong point on my code?

hey. i got the same error using the exact example provided in the "teach force" documentation. please @farizrahman4u , fix asap. thanks!


[Experimental] Add RBD mirroring support based on image snapshots

This commit is fully experimental, with a hack/slash approach to get
RBD mirroring working.
The RBD mirroring mode of snapshot based mirroring is enabled in
this commit, using under development Ceph Octopus release.
The basic design is to name the images with the pvc name-namespace
as its header, and to trigger seraching for such an image when the
CreateVolume parameters specify "mirrored", instead of first creating
the the image.
Signed-off-by: ShyamsundarR<EMAIL_ADDRESS>

@ShyamsundarR bump

I will be taking this up, closing this one. @ShyamsundarR Thanks for experimenting on this one.


Custom Network with other caffe build

Hi all,
did anybody succesfully trained custom networks that include different layers that the official caffe-build with NVIDIA DIGITS?
As far as i understand only the "official" BVLC/caffe is supported from DIGITS but isn't there any way to use other caffe-builds within DIGITS?
Actually the error i get is that when i copy the train net-definition into the custom Network area and try to start training it says "no Name bn_param in caffe.Layerparam". I recognized that there is no bn_param.cpp in the Layer Folder of the official caffe build, what explains this error. In other Forum i read that caffe supports "Batch_norm_param"-layer, but if i replace bn_param with Batch_norm_param another error occurs "no Name shift_filler found".
Is there any Chance to get it work by e.g. copying the missing (bn_param) layer into the Folders of the official caffe build? i guess ist not that easy, i tried a lot of things but nothing worked so far.
Or is there a possibility to tell DIGITS not to use the "Standard" caffe-build but the "custom-caffe"-build? I added the custom-caffe build path to my bashrc, didnt work too...
Any help would be appreciated!
thank you.
Regards
Stefan

You should modify your caffe.proto and get the param definition.
I think you should merge the caffe.proto in NVcaffe with yourcaffe.
After this, you can add your personal layers and get a work version.

Thank you very much for your Response!
i am not very familiar with changing code inside the caffe structure, could you give me a short tutorial how to proceed with this?
Thank you in advance!

I don't think I can help you too much because there is no tutorial. Every state of art cnn model defined many new layers and new params. I think you can follow this steps to make the changes.

merge the caffe.proto to make sure every parameter is defined in final version.
copy the new layers and related util files to the final version.
merge the util files both used.
This is always not a easy job. If you want to merge branches based on BLVC/caffe with NVIDIA/caffe you should also pay attentions to the parelle GPU issues.
Anyway, you should familiar with caffe at first.

Hi douzsh,
ok, thank you anyway for your help, i will try to figure this out.
I already trained some Networks with custom caffe-builds sucessfully, the thing is just, i want to visualize the Training process and the convolutional layers and this works great with DIGITS (at least for the Standard Networks that worked for me so far).

hmm, i didnt make any success so far after hours of trying out to merge the custom data...
another question, where can i see the DIGITS path to the caffe-version that is used? its kind of strange, any changes i make have absolutely no influence at all to DIGITS?!
Stefan

I think you should first train your model by command line like
./build/tools/caffe train --solver='solver.pt'
If you can train your model sucessful with nvcaffe, than you can try
export CAFFE_ROOT=/path/to/caffe/
and restart your digits server.

Thank you douzsh!
What is not really clear to me, is DIGITS using the "normal" caffe build i cloned and built from BVLC\caffe? For my understanding there exists a NVIDIA\caffe build, but i cant find this Installation at all on my Computer. I installed DIGITS by the Installation guide under https://github.com/NVIDIA/DIGITS/blob/master/docs/UbuntuInstall.md
, i didnt had to define any caffe path or anything else. so i am a Little bit confused what caffe built DIGITS actually uses...
my idea was to Change the caffe path for DIGITS to my custom caffe build...but it seems not to be that easy?! On the other Hand, why shouldnt it work if i tell DIGITS the custom build caffe path  and DIGITS gets the (new) caffe layers etc. from this source...this is actually my understanding Problem.
regards
Stefan

I didnot use apt-get for digits installation.
I can answer part of your questions.

digits use nvidia/caffe but not BVLC/caffe.
If you want to change config settings of your apt-get digits, you can find command on your link page. sudo python -m digits.config.edit -v
with which you can change the config file and update to digits server.

Going back to the initial comment the issue is @Almo1982 is using an older specification for network description. The specification for nv-caffe 0.14 may be found there this is mostly in line with the latest spec from the BVLC tree. As @Almo1982 correctly found out bn_param has been renamed batch_norm_param with this commit from BVLC fork. Also note that shift_filler was removed.
In summary: @Almo1982 wherever your custom network is coming from it is using an old format. You need to upgrade to a more recent spec.

Thank you for this Information!
Slowly i think i understand the structure of the caffe build...that means i have to rework my old custom Network in my Train_val.prototxt to fit the new (current) caffe spec, e.g. changing the bn_param to the actual valid batch_norm_param declaration. When shift_filler is removed, i am asking myself how to replace this then?! Just erasing this cant be the solution??? So there is a last understanding Problem...how to replace old declarations (bn_param) with new ones (Batch_norm_param) that have different Parameter values?
I have to work through this in very detail, i dont see any other Chance ;-)

I think the Caffe users list is a better place to ask those questions.


Try react-leaflet-geosearch instead

https://github.com/TA-Geoforce/react-leaflet-geosearch

Accidentally pushed this to main directly. Oh well, it works. Fixed.


Stop evaluation during cool down period

#156428400

@boyang9527  @qibobo , please see the update

LGTM

LGTM


Problem with plugins

I'm trying to use the Datepicker plugin, following this tutorial: https://demos.creative-tim.com/impact-design-system-pro/docs/plugins/datepicker/, but it didn't work.
On the HTML page I added the code snippet below:

                         <input class="form-control datepicker" placeholder="Select date" type="text" value="06/20/2020">

On the _scripts.html page I added the code snippet below:

To test it, I tried to use other puglins available in the free version, and they didn't work either.
Is there any problem with the plugins available in the template?
Thanks.

@tatidealencar are you sure the path is correct to plugin? Please check your console log.

@tatidealencar any news on this? Did you manage to get it working?

Closed, unless @tatidealencar comes back with clarification whether she resolved the problem or not :)


Use configured domain instead of 'docker' for service names

Use the user's Domain setting for service names as well, not just for the
container name. Previously the service names always got the ".docker" domain
appended instead of what the user configured.

Turns out this is already covered by https://github.com/mageddo/dns-proxy-server/pull/169


merge_partitions fails for datasets with multiple topologies

Merging partitions with multiple topologies (1D2D model) raises: "ValueError: Expected 4 UGRID topologies for 4 partitions, received: [...]"
MWE:
import glob
import xugrid as xu

file_nc = r'p:\1230882-emodnet_hrsm\GTSMv5.0\SO_NHrivGTSM\computations\BD014_fix_mapformat4\output\gtsm_model_0*_map.nc'
file_nc_list = glob.glob(file_nc)
partitions = []
for iF, file_nc_one in enumerate(file_nc_list):
    print(iF+1,end=' ')
    uds_part = xu.open_dataset(file_nc_one)
    partitions.append(uds_part)
uds = xu.merge_partitions(partitions)

Debugged this, it appears the issue stems from the fact that the 1D grid only occurs in one partition, whereas the 2D grid occurs in all four partitions.
What would be appropriate behavior here @Huite : Be strict, as is the current behavior, or allow mixed Datasets with 2D grids as well as 1D grid in some partitions?

For visual reference, this issue contains an image of the grid: https://github.com/Deltares/dfm_tools/issues/497

Good question. It seems reasonable to allow this.
The check is easy to adapt by also checking for length 1:
    n = n_partition
    if not all(len(v) == n or len(v) == 1 for v in grouped.values()):
        raise ValueError(
            f"Expected {n} UGRID topologies for {n} partitions, received: " f"{grouped}"
        )

Maybe everything already __ just __ works if you only remove the check?
Alternatively, you can essentially skip all the work by checking for length 1 grids in the merging:

    # First, take identical non-UGRID variables from the first partition:
    merged = data_objects[0][other_vars]

    # Merge the UGRID topologies into one, and find the indexes to index into
    # the data to avoid duplicates.
    merged_grids = []
    for grids in grids_by_name.values():
        # First, merge the grid topology.
        grid = grids[0]
        if len(grids) == 1:
            merged_grid = grid
            indexes = {dim: slice(None, None) for dim in grid.dimensions}
        else:
            merged_grid, indexes = grid.merge_partitions(grids)

        merged_grids.append(merged_grid)

        # Now remove duplicates, then concatenate along the UGRID dimension.
        for dim, dim_indexes in indexes.items():
            vars = vars_by_dim[dim]
            selection = [
                obj[vars].isel({dim: index}, missing_dims="ignore")
                for obj, index in zip(data_objects, dim_indexes)
            ]
            merged_selection = xr.concat(selection, dim=dim)
            merged.update(merged_selection)


fix: prevent endless estimation on erronous gas limit estimation

What it solves
Resolves #3958
How this PR fixes it
Errors during gas estimation (GS13) will cause a fallback of gas limit 0.
The hook useExecutionStatus now accepts a gas limit of 0 as not a loading state.
How to test it
See #3958
Analytics changes
Screenshots

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

1 of 1 (100.0%)  changed or added relevant line in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.004%) to 36.609%

Totals

Change from base Build<PHONE_NUMBER>:
-0.004%

Covered Lines:
3845

Relevant Lines:
9542

💛  - Coveralls

Cool I get the warning message I expect now


no attribute 'ansible_eth0

fatal: [quay-v2.pichuang.local -> localhost]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'ansible.vars.hostvars.HostVarsVars object' has no attribute 'ansible_eth0'"}

Source
https://github.com/redhat-cop/infra-ansible/blob/master/roles/load-balancers/manage-haproxy/tasks/generate-config.yml#L38-L41

Related case https://github.com/ansible/ansible/issues/4848

Command
ansible all  -i ../../inventory/quay-enterprise  -m setup

因為預設沒有 eth0 所以要改這邊
https://github.com/redhat-cop/infra-ansible/blob/master/playbooks/container-registry/templates/haproxy_backend.cfg.j2#L8


Hlines not drawn with gutter-restrict: top

I use this package for all my tables to replicate the booktabs style, and it is wonderful to use.
However, with the latest version of tablex and typst, the following code, does not show the hline.
#import "tablex.typ": tablex, hlinex

#tablex(
  columns: 3,
  row-gutter: 1em,
  auto-lines: false,
  [H1], [H2], [H3],
  hlinex(gutter-restrict: top),
  [seconde], [row], [with content]
)

But gutter-restrict: bottom works as expected.

What can I do to fix this? Plus, is there maybe an option to draw it right in the center of the gutter?
For now, I use bottom everywhere, but it is way more visually pleasing if it is aligned right. Please help my OCD :)

Fixed in 7029956f6cc4fe6659b1066f8cea4c447b4c67bc, thanks!
There are still some other minor gutter issues I wish to fix before the next release, but you can use the code from that commit (or from main) in the meantime.

is there maybe an option to draw it right in the center of the gutter?

Not currently; please open a separate issue suggesting this :)

Wow, thanks for this fast fix! It works :D
Top looks pretty slick, I think the center option is not necessary, now.


Fix an issue with unsafe picker access to setNativeProps.

Fixing an issue where PickerIOS and DatePicker are being accessed unsafely, As a side effect we are also using ref callbacks as oppose to strings.
Fixed after spotting an issue in our app where the picker is closed and the callback attempts to update native props for an item that no longer exists.

Makes sense. Thanks!
@facebook-github-bot shipit


Denotions are broken. Seen as \boldone

At the page, some of the denotions are broken. Please see the attachment

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

ID: 62270863-b11b-2a2b-f198-169596f1b423
Version Independent ID: 7d700dfd-b9af-37a6-02ce-e66176574172
Content: Vectors & matrices in quantum computing - Azure Quantum
Content Source: articles/concepts-vectors-and-matrices.md
Service: azure-quantum
Sub-service: core
GitHub Login: @SoniaLopezBravo
Microsoft Alias: sonialopez

Hi @Akelyaporten - Thank you so much for catching this one. We'll fix it asap.


zookeeper not started when for namenode initialization

Elided output
PLAY [initialize namenodes 1] **************************************************

TASK [setup] *******************************************************************
ok: [master0]

TASK [namenode format] *********************************************************
changed: [master0]

TASK [initialize shared edits] *************************************************
changed: [master0]

TASK [format zookeeper] ********************************************************
fatal: [master0]: FAILED! => {"changed": true, "cmd": "sh -lc 'hdfs zkfc -formatZK -force'
FATAL ha.ZKFailoverController: Unable to start failover controller. Unable to connect to ZooKeeper quorum at master0:2181,master1:2181,master2:2181. Please check the configured value for ha.zookeeper.quorum and ensure that ZooKeeper is running."

Fixed in v0.2.0