HamiltonianProblem not supported

Hi, thanks for the awesome package! Unfortunately I'm having issues using it for my work. I basically want to integrate a set of equations of motions defined by a Hamiltonian H(p, x) that is too complex to differentiate by hand. The code below sets up the problem:
using DifferentialEquations
using DiffEqFlux
using Flux

function H(p, x, params)  # complicated (randomly selected) Hamiltonian
    return params[1] * (1 + x[1]^2)^(1/3) * (1 + p[1]^2)^(1/4)
end

function getprob(params)  # set up problem
    tspan = (0.0, 1.0)
    x0, p0 = [0.01], [0.05]
    return HamiltonianProblem(H, p0, x0, tspan, params)
end

Now I want to differentiate solutions of the equations of motion with respect to the parameter vector. The function below sets this up and tries to run the ODE solver:
function testsolve(p0=[0.1])
    prob = getprob(p0)  # set up problem

    p = param(p0)  # initialize parameter

    function predict_rd()
        Tracker.collect(diffeq_rd(p, prob, Tsit5(), saveat=0.1))
    end

    println("test: ", predict_rd())  # try running the diff eq solver
end

When I run testsolve() I get the error
ERROR: MethodError: *(::Tracker.TrackedReal{Float64}, ::ForwardDiff.Dual{ForwardDiff.Tag{DiffEqPhysics.PhysicsTag,Float64},Float64,1}) is ambiguous. Candidates:
  *(a::Tracker.TrackedReal, b::Real) in Tracker at /Users/acoogan/.julia/packages/Tracker/RRYy6/src/lib/real.jl:94
  *(x::Real, y::ForwardDiff.Dual{Ty,V,N} where N where V) where Ty in ForwardDiff at /Users/acoogan/.julia/packages/ForwardDiff/N0wMF/src/dual.jl:140
Possible fix, define
  *(::Tracker.TrackedReal, ::ForwardDiff.Dual{Ty,V,N} where N where V)

followed by a massive stack trace.
It seems like there's a conflict between the datatypes used to define the equations of motion and the parameters tracked by Flux. Is there a way to fix this?
I was not able to get this to work using Zygote rather than ForwardDiff to differentiate H -- hopefully I'm missing something about how to use nested autodifferentiation?

As an update, we have certain mixings of ForwardDiff and Zygote working, like in https://github.com/JuliaDiffEq/SparseDiffTools.jl/commit/26a3fc007ff5063ab66a62189352903131ebbbf9 . You have to be careful with tags but then it works if you avoid Julialang/julia#265 related Zygote issues. The adjoint is almost setup to be using Zygote for the vjps https://github.com/JuliaDiffEq/DiffEqSensitivity.jl/pull/71 , so if that's the case Zygote adjoint may just fix this.


Update vscode and notebooks api dependencies to latest

see package.json

see: https://github.com/RandomFractals/vscode-data-table/commit/18feba7dff60ef81a8b6648a82959462762fa167


fix: End of the Readme is hidden

What does this PR do?
The bottom part of the Readme was hidden because of a missing tag
Type of change

[ ] Chore
[X] Bug fix
[ ] New feature
[ ] Documentation update

Check list

[ ] Unit tests for any smart contract change
[ ] Contracts and functions are documented

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.14%. Comparing base (3c68622) to head (e6632d1).

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #658   +/-   ##
=======================================
  Coverage   94.14%   94.14%
=======================================
  Files          30       30
  Lines         495      495
  Branches      115      115
=======================================
  Hits          466      466
  Misses         28       28
  Partials        1        1

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


compat with pandas 0.20.0 for import of hashing

closes # 2245

so we are going to have an rc1 next day or 2 (though of course it will fail this check)......

Thanks!

Thank you for being proactive here @jreback
On Fri, Apr 21, 2017 at 8:49 PM, Jim Crist<EMAIL_ADDRESS>wrote:

Thanks!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/dask/dask/pull/2246#issuecomment-296335243, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AASszK3M6YjElv5o0n-2VLYwC9hcO36iks5ryU6sgaJpZM4NE2JA
.


New package: AmplitudeTools v1.0.0

Registering package: AmplitudeTools
Repository: https://github.com/zhaoli-IHEP/AmplitudeTools.jl
Created by: @zhaoli-IHEP
Version: v1.0.0
Commit: 0115ef6de366a925baebc0a7746ab9a2f994be97
Reviewed by: @zhaoli-IHEP
Reference: https://github.com/zhaoli-IHEP/AmplitudeTools.jl/issues/9#issuecomment-1569686117

Blocking this from merging, superseded by https://github.com/JuliaRegistries/General/pull/84592


how to modify response body or header after prefilter setComplete() or how to stop filter chain without setComplete()?

here is my situation:
my gateway have a prefilter for ratelimit ,when the request is not allowed by ratelimiter,i run the code  return exchange.getResponse().setComplete();
and at the sametime ,my gateway have a post webfilter(ps:not a gatewayfilter), the filter do statistics for all the requests , include the success and the not allowed.
and the filter need add some response headers or modify response body .
but after the response be setComplete by ratelimitfilter, I cannot modify anything in response, it will throws unsurportopration excetion for readonly respose.
anyone can help me with this?  thanks a lot;)

I also have similar issues for request.

Mono.error()?


[SPARK-49339][INFRA] Use setup-minikube GitHub Action

What changes were proposed in this pull request?
Use Minikube action
Why are the changes needed?
This is introduced in Minikube doc:

https://minikube.sigs.k8s.io/docs/tutorials/setup_minikube_in_github_actions/
https://github.com/marketplace/actions/setup-minikube

Does this PR introduce any user-facing change?
No, this is a infra change.
How was this patch tested?
Pass the CIs and check the CI log on this PR.
Was this patch authored or co-authored using generative AI tooling?
No.

The PR GHA runs in the contributor's repo, is this action allowed by ASF?
https://infra.apache.org/github-actions-policy.html

Yes, this is allowed, @pan3793 . I asked the same question exactly when @TQJADE contributed this to Apache Spark Kubernetes Operator first. Since it works fine, I asked her to contribute here together.

https://github.com/apache/spark-kubernetes-operator/pull/82

@dongjoon-hyun thanks for information, it's fine then.

Thank you, @pan3793 .

For the record, there is only one irrelevant failure and it's a known flaky one.
[info] *** 1 SUITE ABORTED ***
[error] Error: Total 4127, Failed 0, Errors 1, Passed 4126, Ignored 8, Canceled 2
[error] Error during tests:
[error] 	org.apache.spark.util.collection.SorterSuite

from https://github.com/medyagh/setup-minikube/blob/master/action.yml
kubernetes-version:
    description: 'Choose a specific version of Kubernetes, "stable" for the latest stable build, or "latest" for the latest development build'
    required: false
    default: ''

should be pin latest her?

Ya, thank you for double-checking, @bjornjorgensen . We don't need that.
Merged to master~

Thank you again, @TQJADE , @bjornjorgensen , @pan3793 .


Redis and sidecar application

Recently I was working with redis-sentinel and spring-boot adding some params config, eg.
redis.sentinel:
  master: my-master-name
  nodes: <IP_ADDRESS>:6379

I was thinking if should not be good to have an discoverable configuration for those nodes using eureka/consul, instead of passing the node IP we just pass the application sidecar name.
Would be something like this:
redis.sentinel:
  loadBalanced: true
  master: my-master-name
  appname: my-sentinal-sidecar

I don't know if it's a good idea or have any issue about performance, I would like to discuss about it.
Moved from spring-boot #3262

The hardest part here is the health check.  With a non-jvm http app, that app can implement a json response.  We'd have to do something more for this.

And in general, this could be used for other databases or non-http services.

@spencergibb like you mentioned maybe writing a "supervisor" application should do the trick.
It's just an idea but I think would be good to have a easy way to make non-jvm http app being registered in eureka (or similar) and used by it's name instead of IP:PORT as usual.


Write External permissions are ignored when targeting android R

Steps to Reproduce the Problem
Set target ,compile sdk version to 30

Specifications

Image Picker Version: 2.4.0
Android OS: R(sdk 30)
Phone: Pixel 2

Why did this issues has closed?
I have used version 2.4.5 and I'm facing this issue.

@sinhpn92 yes you are right, i didn't have time to describe the issue correctly so i closed it.

@sinhpn92 can you provide your experience also here below in comments. It's serious because in summer we would have to target 30 sdk

@neonwarge04 Currently my fix is a bit messy, I didn't have time to make a good pr, so I've implemented it by myself integrating the lib inside my app. I've removed write external storage usage for android 10 and above and also made some changes in code to make it work.

This should be fixed by #362


Finalisers on embed fields don't get run

Finalisers do not get run for embeds.
@sylvanc pointed out that this might be an issue. I verified it by extending the minimal-cases/finalisers code to confirm.
The following code:
primitive PrimitiveInitFinal
  fun _init() =>
    @printf[I32]("primitive init\n".cstring())

  fun _final() =>
    @printf[I32]("primitive final\n".cstring())

class ClassFinal
  embed f: EmbedFinal = EmbedFinal

  fun _final() =>
    @printf[I32]("class final\n".cstring())

class EmbedFinal
  fun _final() =>
    @printf[I32]("embed final\n".cstring())

actor Main
  new create(env: Env) =>
    ClassFinal

  fun _final() =>
    @printf[I32]("actor final\n".cstring())

Produces the following output when run:
$ ./finalisers
primitive init
actor final
class final
primitive final

If the embed in ClassFinal is changed to a var or let the following output is produced:
$ ./finalisers
primitive init
actor final
class final
embed final
primitive final

I think the most straightforward way to fix this is to add calls to embedded fields finalisers in the enclosing objects' finalisers. That would be in the genfun_fun function in genfun.c, where a special case should be added if the function being generated is a finaliser (i.e. if its name is _final).


Cannot use C interface with gcc

Despite appearing to support a C API, the ntcore_c.h file is not usable with a C compiler.  That's primarily because it #includes <cstddef>, and because it presumes that structs are implicitly typedefed.

The reason is the c API is primarily for interop between other languages. So it's more to create an API with the C abi, rather then be directly usable from C itself. Is there a specific reason you need to use the header from C?

We are running a C-based program on co-processor for use in FRC.  Recent developments have us wanting to be able to take action based on a state determined by the robot.  So we want the robot to write to a Network Table, and the C-based program it be able to pick up those change.  Therefore, we'd like to be able to read from Network Tables in C.
The changes are seem pretty simple; they appear to just be oversights.  I create PR #274 for the changes I made that allow be to compile the C code with gcc, instead of g++.

Release build issue?  I can't get through a release build with warnings (treated as errors) on my machine without my modification.

That issue happens on Travis, and we haven't been able to fix it yet because of the old release of gcc Travis has. I'll test it locally and make sure it builds, then we can push it to build on our main servers.

Hmm, OK.  I moved the more C-stuff inside the __cplusplus ifdef, just in case.  Let me know if you want it taken back out and made universal.

Fixed in wpilibsuite/allwpilib#1007.


Feat 600 support custom params type

:tada: This PR is included in version 5.24.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Update README for VS 2017

Fixes #638

Still getting build errors when using Visual Studio 2017 IDE, so going to look into those before merge..

Ah so the issue isn't related to the IDE vs msbuild, it's issues with the Debug configuration on Windows. I'll put up a a separate PR fixing those.


Call teachers by last names in teacher schedule page

I doubt Mr. Fierce likes being referred to as "David" (though TBH he would probably be cool with that).

Fixed #349.


Cant build.

node_modules/@xmcl/util/fs.ts:136:52 - error TS2345: Argument of type 'Error' is not assignable to parameter of type 'string'.

136             .on("error", (e) => { reject(new Error(e)); })

:(

This is bad :/
The current master is the monorepo.  Personally, I firstly install the rush by npm install at the root package.json (This is not the best practice on rush.js side)
Then, run npm run update under root. (same place above).  It will build every single project under packages/ directory.
If you still get this error after this... tell me what happened

Seems to have built correctly with those commands. I have another issue/question:
When i npm i @xmcl/minecraft-launcher-core
and import a module that imports something from fs.ts i get the same exact error when i try to run tsc on my project.
Just by making a file with this one line:
import '@xmcl/minecraft-launcher-core'

And then running tsc on said file gives out the same error.
https://image.prntscr.com/image/yTsnWwa6RjGnm9qfaCqBjA.png

That's my fault. Wrap the error throw out is really painting the lily...
Seems like my node definition mark the error event param as any instead of Error. Therefore, I can won't get this error at compile time.
This commit and package<EMAIL_ADDRESS>should fix this.
Again, appreciate you report this bug.


Unable forward multicast traffic from directly connected router using pimd and quagga (v0.99) with RHEL 7.5

Hello,
My system is using RHEL 7.5 (Linux kernal 3.10) and I have KVM installed with 5 RHEL VMs that each have quagga (zebra and ospfd) and pimd installed. My current version of quagga does not come with the inherent quagga pimd, so I am using pimd v2.3.2 to help me forward multicast traffic.
I have a simple network topology as follows:
                                             (RP)
           eth1                  eth1 eth2                      eth1  eth2                       eth1
            .1  <IP_ADDRESS>/29  .2   .9   <IP_ADDRESS>/29  .10  .17  <IP_ADDRESS>/29 .18
         R1 =========== R2 ============ R3 ============ R4
     (source)                    .25 || eth3                     (receiver)                     (receiver)
                  <IP_ADDRESS>/29  ||
                                      .26 || eth1
                                           R5
                                     (receiver)

I have successful ospfd dynamic routing enabled on all 5 nodes (each node is essentially a linux router); therefore, i can ping from R1 to R4 without a problem. I can send multicast traffic from R1 to R2. From R2 it does not forward the multicast traffic.
I wireshark on R2 eth1 and confirmed multicast traffic with TTL > 1, when wiresharking R2 eth2 or eth3, I see nothing. I run pimd -r on R2 and I see a successful group with R1 source pointing to R2 eth1 as a RP. I do not see anything when I run pimd -r on anywhere else.
When i perform cat /proc/net/ip_mr_vif on R1, I notice bytes and packets IN on eth1 and bytes and packets OUT on pimreg (this should be 0). When performing the same command on R2, I see no bytes and packets IN or OUT on any interface.
Additional details, I performed the following configuration changes to each VM to help prepare for multicast pimd:
(1) Disabled selinux and firewalld
(2) Added iptables mangle to increase TTL to 32 when sending multicast traffic to <IP_ADDRESS>
(3) I disabled igmp_snooping on virbr virtual networks
(4) I checked in sysctl.conf to ensure mc forwarding, ipv4 forwarding, and disabled rp filters
(5) I checked the kernel /boot/configs to ensure MROUTE, PM-SIM, and other mandatory CONFIG_IFs based on search results i found online
(6) Added static route for multicast <IP_ADDRESS>/4 to eth1 allowing me to pass multicast traffic to R2
(7) Configured pimd on all nodes to use static RP at R2 eth2 <IP_ADDRESS>
(8) Tried using IGMPv2 and IGMPv3; but both did not make a difference
Unfortunately the system I'm working on does not have internet connectivity so I cannot post results and debugs here.
Help is much appreciated!
Thank you,
Eugene Kim

Hi,
sorry to hear you have problems.  Getting up and running with dynamic multicast routing can be a bit of a hassle, although you seem to have done your homework :-)
From personal experience, I recommend setting up a separate "staging" lab network to test theories in before taking on a production setup.  Personally I prefer CORE, which is amazingly simple to test anything layer-3 (and up) on:

Install CORE, they have .deb packages on their GitHub releases page
Install quagga/frr from your distribution
Start CORE and play around with a simple two/three OSPF router setup
When ping between end-devices work we can start playing with pimd
Try my little mcjoin tool, it works as sender and receiver for end devices
Make sure the pimd routers have peered, see the documentation for how to see this
Run mcjoin on one LAN, i.e. both sender and reciver on same LAN
Move the receiver to another LAN on the same router, the mcjoin sender defaults to TTL=1 (see options)

When you have this working in CORE you can shift your attention to the production specific problems, like mangling TTLs with iptables etc.

Hello Troglobit.
Even if I set up a 3 node topology: R1 --- R2 --- R3 with ospf working properly, I can't get pimd to forward my multicast from R1 to R3.
I wrote in detail the configurations I've made on my computers and none seem to be fixing the issue.
I was starting to think that maybe pimd is not supported on RHEL or Linux Kernel 3.10.
Or perhaps my Hypervisor (KVM) doesn't allow for this to work?
Please assist.
Thanks,
Eugene

Hi Eugene,
did you try to break down the problem like I described, and test in a controlled (virtual) environment like CORE and using only one or two routers to begin with?
I don't have the means to test pimd against all possible Linux kernel versions, so it would be great if you could help me narrow things down so I can help you. One of the reasons I ask this of you is that many users have site specific issues, e.g. hardware, drivers, too old kernel, kernel lacking features, or whatever, that are not pimd related.
Best regards
/Joachim

I just started experimenting with PIMD this week and found this issue. I can report that PIMD DOES work on EL7 (in my case, testing with CentOS 7.6.1810, kernel 3.10.0-957.27.2.el7.x86_64). I've used omping and iperf to confirm my routing is working. I'm using vagrant + virtualbox with a 4 node network.
Host1 <---> R1 <---> R2 <---> Host2
I ran into a couple of issues that were my unfamiliarity with multicast and mcast routing. In my case these were:

Making sure TTL was >1 (-T 32 on iperf clients and -t 64 on omping, for example)
Didn't understand that I required an RP. After adding bsr-candidate and rp-candidate to pimd.conf on both R1/R2, things got better, but still wasn't passing traffic
Set rp_filter on all PIM-SM interfaces to NOT be in strict mode (change net.ipv4.conf.ethX.rp_filter from 1 to either 0 [rp filtering disabled] or 2 [loose mode])

After these changes, I've been mostly working. I've had pimd be a little unstable when restarting the daemon and sometimes had to reboot my router VMs to get traffic passing again.
Hope these data points help.
-Shawn

@b00ga Thank you for these great pointers, all worth looking into when starting out with (dynamic) multicast routing.

@eugk123 did you succeed with this environment? Seems like I'm experiencing a very similar issue:
https://github.com/troglobit/pimd/issues/166
If you succeeded to overwhelm it somehow, could you please give me a tip?
Thank you,
Leonid


don't work in production build

I make  fork from  vue-element-admin and then add exampte from ncform-demo on dashboard.
When run "npm run dev" ncform work fine, but when run "npm run build" and deploy it doesn't work.
May be needs some special settings for webpack? I can't see some errors...

Got it, i will test the case as soon as possible

I tested the production mode of the project created by vue-cli （webpack v4.28.4） is OK.
But the production mode of vue-element-admin（webpack 4.16.5） is problematic.
I guess it is a problem with webpack  or some loaders， finally i found the root cause.
The following is the source code fragment of the ncform-common package.
widget:
                        t.widget ||
                        (function(e) {
                          var t = 'input';
                          switch (e) {
                            case 'boolean':
                              t = 'radio';
                              break;
                            case 'object':
                              t = 'object';
                              break;
                            case 'array':
                              t = 'array';
                              break;
                            default:
                              t = 'input';
                          }
                          return t;
                        })(r),

It is compiled into the following code in the vue-element-admin production mode.
widget: t.widget || "input",

This is the root cause.
So the solution is to explicitly declare the widget as shown below
      {
        type: "object",
        properties: {
          name: {
            type: "string"
          },
          gender: {
            type: "boolean",
            ui: {
              widget: "radio"
            }
          }
        },
        ui: {
          widget: "object",
          widgetConfig: {
            layout: "h"
          }
        }
      }

The safest solution is to upgrade webpack and related loaders, but I have no luck to do it successfully for vue-element-admin.

great!


MacOS编译错误：Package minted Error: You must have `pygmentize' installed to use this package

使用平台详情

[ ] 线上：Overleaf
[x] 本地：MacOS
[ ] 本地：Windows
[ ] 本地：各种 Linux 发行版
[ ] 不，我使用的是 _________

编译日志

报错内容 [点击打开]

tongji-undergrad-thesis/main.tex:21: Package minted Error: You must have `pygmentize' installed to use this package.

文件结构
问题描述

在macos上编译发现的一个问题，参考解决方案：https://tex.stackexchange.com/questions/48018/minted-not-working-on-mac

其他信息

I understand what you're saying. Could you share with me the version of macOS you're currently using, the version of TeX Live you have installed, and the method you employed to install pygmentize?

I think I understand what you mean, but personally I don't think this is a bug.
The minted package does indirectly use pymentize, but failing to properly install or locate pymentize on the computer shouldn't be considered a error of this template. However, I agree with tobiaforest's approach that this is a docs issue, as our template lacks explanation for minted usage.
Please let me know if I understood the issue and your intended meaning correctly.


Class CommandStack and Trait Executable cannot be used at the same time

In my Drush Task (https://github.com/boedah/robo-drush/blob/master/src/Drush.php#L51), I extend from CommandStack (to use exec and run) and use Trait Executable (to use option and arg).
The task fails with the latest Robo version (works with 0.4.4) with the message:

ERROR: Robo\Task\Shared\CommandStack and Robo\Task\Shared\Executable define the same property ($workingDirectory) in the composition of Boedah\Robo\Task\DrushStackTask
. This might be incompatible, to improve maintainability consider using accessor methods in traits instead.

I could remove the extension from CommandStack but then have to copy and paste all but printed() and dir() (which is bad).
I think you could leverage this by renaming workingDirectory in CommandStack to something else (workingDir?).
Of course this would mean a BC break, if someone is already setting workingDirectory in CommandStack directly (and not via dir()).
Maybe you could also make this variable private?
Another option, which comes into my mind:
CommandStack and Executable both define printed() and dir().
Maybe CommandStack can use Executable somehow?
But I think this is not easily possible (too much traits seem to get rather messy...).
What do you think?

Please check current master branch. I hope I resolved all collisions

@DavertMik: sadly not :( => #105.


Fix broken links in README file

Fix some broken links in the README.md file to redirect correctly.

I missed these in the monorepo conversion. Thank you!! 🥇


Fix typos

Summary of changes:

Fixed typos

Can one of the admins verify this patch?

These are comments/docs so I'm going to skip integration tests.
Thanks @janczer! :)


Machine stuck in iowait using device mapper

I've made a public container called scraperwiki/go using hack/dind and the principles in this Dockerfile.
The image works on my local machine. It does not work on EC2, I get the behaviour described below. The main difference I'm aware of is that my local machine has AUFS installed where EC2 does not.
I get a prompt by running docker run -t -i -privileged scraperwiki/go dind bash.
When I try to start docker -d &, I get the following output, then nothing:
[/var/lib/docker|2621c420] +job initapi()
[/var/lib/docker|2621c420.initapi()] Creating server

If I subsequently try to use it, it freezes. The whole machine goes into 100% IO wait for longer than 5 minutes. I observe a mkfs.ext4 running, and if I strace it (and wait long enough), I observe:
lseek(3,<PHONE_NUMBER>, SEEK_SET)          =<PHONE_NUMBER>
write(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
32768) = 32768
lseek(3,<PHONE_NUMBER>, SEEK_SET)          =<PHONE_NUMBER>
write(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,
32768

And nothing more, just those two lines. I've waited ten minutes and nothing more has appeared. If I try to run anything (e.g, "ps aux") inside the dind container, it freezes.
After all of the above, the host machine has 1.4GB of free disk space.
/cc @jpetazzo

I still see the issue. Building a docker image on RHEL is much slower than one on Ubuntu due to device mapper.

Lets close this for now as the comments above and if anyone is still having the issue please open a new report with your specific problem and configuration.

I'm still having this problem using device mapper on kvm virtual machines, it's running very slow. By looking at the current master branch I see lazy_itable_init=0 (mentioned by @djmaze) is still in the code:
docker $ grep -ri lazy_itable_init=0 *
daemon/graphdriver/devmapper/deviceset.go:		err = exec.Command("mkfs.ext4", append([]string{"-E", "nodiscard,lazy_itable_init=0,lazy_journal_init=0"}, args...)...).Run()
daemon/graphdriver/devmapper/deviceset.go:			err = exec.Command("mkfs.ext4", append([]string{"-E", "nodiscard,lazy_itable_init=0"}, args...)...).Run()


fix: fix bug that prevented showing the contextual menu on blocks

This PR fixes #158 by updating the key for the "Duplicate" message. At some point, Blockly changed the key from "DUPLICATE" to "DUPLICATE_BLOCK", but Scratch's messages were using the old version, so it wasn't found and threw an exception. There are no references to plain "DUPLICATE" in Scratch or core Blockly.

LGTM but worth checking on the scratch side that this won't break anything in their internationalization workflows.

LGTM but worth checking on the scratch side that this won't break anything in their internationalization workflows.

Sounds good, we're already tracking that separately in https://github.com/gonfunko/scratch-blocks/issues/16


[New API] : Hotel Management API

Brief Description 🤓
This API can used for guest, room and booking management in a hotel.
How will you develop it?🤩
I will use MongoDB as database and Node, Express and Mongoose in the backend. I will create appropriate routes and use controllers for the API.
Deployment
None
Select the open source program you are contributing to
Other
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINES of this project.

Greetings @Varad0014🎀 ! , We are excited to have you dive into another issue with us!🚀
Your involvement in our project has been invaluable, and we're confident that your skills and insights will help us conquer this challenge😇.  Use command /gssoc24 to self assign the issue.  This issue represents an exciting opportunity for us to improve and enhance our project, and we are thrilled to have you on board.
We request you to follow CONTRIBUTING GUIDELINES.
Looking for your PR soon!
In case of any issues, you can contact us on Discord.❣

/gssoc24


Can Deoplete Handle Function Parameter Completion?

This is just a question, but can deoplete do function parameter completion.  I think I saw somewhere that it can use neosnippet plug-in to auto-complete function parameters, is that true?

It is neosnippet feature.
:help g:neosnippet#enable_completed_snippet

@Shougo Thanks support.

OK, but this is rather hidden, I think that adding little info to the README would make this an even more awesome package...


Remove curl transport adapter models and private headers form public API

fixes: https://github.com/Azure/azure-sdk-for-cpp/issues/1022

/azp run


Fix/minor big fixes

Codecov Report

Merging #22 (ca23564) into main (2fedc36) will decrease coverage by 14.81%.
The diff coverage is 7.14%.

@@             Coverage Diff             @@
##             main      #22       +/-   ##
===========================================
- Coverage   85.48%   70.66%   -14.82%
===========================================
  Files           2        2
  Lines          62       75       +13
===========================================
  Hits           53       53
- Misses          7       20       +13
  Partials        2        2

Flag
Coverage Δ

unittests
70.66% <7.14%> (-14.82%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

pkg/cmd/safe/types.go
100.00% <ø> (ø)

pkg/cmd/safe/commands.go
67.64% <7.14%> (-15.99%)
:arrow_down:

Continue to review full report at Codecov.

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


Correcting SSL / TLS error when building image

This pull request corrects an SSL / TLS error when building the image.
When building the image, Powershell Invoke-WebRequest command is used to download apache httpd binaries and .Net package. Without TLS set, the command fails.
Adding a security protocol to the  Invoke-WebRequest command solved the issue.
I also correct the URI to the apache httpd binaires which has moved from the previous URI.

LGTM :-)

Fixes #993

You're welcome :-)
I think that I can correct the apache-http-php Docker file because the problem of the apache-http should be the same this sample.
I was too concentrated on the apache-http image :-(


feat: add generic props type for UseFocusableConfig

When using the app, there are certain instances where I pass down the navigation callback functions to a child component and I would like to know what the props will be.
With the extraProps field declared as an object, it is kind of difficult to gauge what is there unless I explicitly cast the props to a separate variable to show the intended keys.
In this change, I have added a generic type (defaults to object) that gets passed to the UseFocusableConfig. With this, a developer can specify a model and then in the parent component, can declare the props argument to match without the need to cast.

I was also thinking about adding separate types for the different on callback functions, in scenarios where people are declaring a Component's props in an interface. For example, instead of the following:
interface IMenuItemProps {
  onArrowPress: UseFocusableConfig<IMenuItemFocusProps>['onArrowPress'];
}

export const MenuItem = (props: IMenuItemProps) { ... }

You could export the following type:
export type ArrowPressHandler<P = object> = (
  direction: string,
  props: P,
  details: KeyPressDetails
) => boolean;

export interface UseFocusableConfig<P = object> {
  ...
  onArrowPress: ArrowPressHandler<P>;
}

and then with it applied back into the client:
interface IMenuItemProps {
  onArrowPress: ArrowPressHandler<IMenuItemFocusProps>;
}

export const MenuItem = (props: IMenuItemProps) { ... }

I think it improves readability and bit and gives a bit more freedom for type definitions?
Please let me know what you think 😃

Thanks @predikament, I have made the necessary changes to the callback function definitions 👍

@LynchyC: Thanks for the PR.
We have quite a bit of ongoing work, but if all goes to plan I am hoping we will review this and get back to you sometime during next week.


Fix problem with thread safety that produces a race condition

We ran into a scenario where there was a race condition to Base64 decode tokens at the same time.  Since Base64 was an instance on the verifier class, the call to Base64.reset on the decode function was clearing the same instance.
I hope that makes sense.  Race conditions are hard to write a test for....I tried, but couldn't get it to fail. :-/

This is a real problem for us.  Currently, we had to build our own java-jwt while we wait for this to get pull in....  Any chance we can get this pulled in?
Let me know if you have any questions.

@postalservice14 - which version of this library are you using?  We recently applied an update to bump commons-codec from 1.4 to 1.10 - there was a known bug with v1.4.  Checking the 1.10 JavaDoc it does state that Base64 is ThreadSafe - can you confirm please you are using version 2.2.1 of this library and you only have commons-codec v1.10 in your classpath?

I think that may have fixed it.  I'll reopen if I run across it again.  Thanks!


RpcClient error of execution

The processor is running fine locally but after uploading to Aquarium gives me this error and keeps stuck around block 1558856, what could be the reason
repo: https://github.com/zenlinkpro/zenlink-astar-subsquid
logs from Aquarium:

local logs

https://github.com/zenlinkpro/zenlink-astar-subsquid/blob/fc0181c8e1db84b168097a1939fbb1af319ec5e0/src/consts.ts#L5
Do you have secret with such name? Maybe it refers to another chain?

https://github.com/zenlinkpro/zenlink-astar-subsquid/blob/fc0181c8e1db84b168097a1939fbb1af319ec5e0/src/consts.ts#L5 Do you have secret with such name? Maybe it belongs to another chain?

yes, I used blastapi node when deploying, which is the only difference from local. I'll try to remove the secret and use the default node.

Did it help?


Word2Vec optimizations

Added numPartitions param to Word2VecRec. It provides fitting Word2Vec model in distributed mode.
Added udf on scala to multiply scalar by vector. It is used in the Word2VecRec model.

To build jar file from scala code you can use the following commands:
cd scala
sbt package

please merge main to run ci
need to discuss if we agree to fix 3.1.3
need to discuss if we want to place all scala-based functional to a scala branch to avoid additional restrictions and installation difficulites

merged as #38


HDDS-2352. Client gets internal error instead of volume not found in secure cluster

What changes were proposed in this pull request?
Let checkAccess propagate original OMException with VOLUME_NOT_FOUND result code instead of new one with INTERNAL_ERROR.  This is similar to existing logic for buckets.
https://issues.apache.org/jira/browse/HDDS-2352
How was this patch tested?
Tested original steps to reproduce:
$ cd hadoop-ozone/dist/target/ozone-0.5.0-SNAPSHOT/compose/ozonesecure
$ docker-compose exec scm bash
$ kinit -kt /etc/security/keytabs/testuser.keytab<EMAIL_ADDRESS>$ ozone freon ockg -n 1 -t 1
...
2019-10-23 18:52:25,424 [main] INFO       - Creating Volume: vol1, with<EMAIL_ADDRESS>as owner.
2019-10-23 18:52:25,542 [main] INFO       - Creating Bucket: vol1/bucket1, with Versioning false and Storage Type set to DISK and Encryption set to false
...
Successful executions: 1

Also ran ozonesecure acceptance test.

Thank You @adoroszlai for the fix and @dineshchitlangia for the review.

Thanks @dineshchitlangia for the prompt review, and @bharatviswa504 for reviewing and merging it.


Address S3994/S3995/S3996: Use Uri instead of string in parameters/returns/properties

Address existing violations of the following, related rules:

S3994: URI Parameters should not be strings
S3995: URI return values should not be strings
S3996: URI properties should not be strings

in the codebase and set severity to Warning in Steeltoe.Debug.ruleset and Steeltoe.Release.ruleset.
To find existing violations, enable the rule (see above) and rebuild src/Steeltoe.All.sln to make them appear in the Output window.
To address the violations, choose from the following on a case-by-case basis:

Fix the violation by changing the code to not violate the rule

When the method calls into a .NET method that has an overload for Uri, call that instead and update the method signature to take a Uri instead of a string. Consider adding an overload that takes a string, which calls this method

Suppress the violation in code using #pragma warning disable/restore, preceded by a justification comment if not obvious

Note: This issue mitigates security risks, though it requires a more thorough investigation on the best path forward. Should we enable (some of) the rules, or are there too many false positives, leading to numerous suppressions?

Many violations (see the list at https://github.com/SteeltoeOSS/Steeltoe/pull/1053#issuecomment-1332214236) originate from Connectors, which allow a comma-separated URI format that's incompatible with System.Uri. It's unclear to me whether we need to preserve support for that format.


Got rid of the extra space

name: :memo: Documentation Fix
about: Fixing a problem in an existing docs page
Checklist

[ ] Is there an existing issue for this PR?

link issue here

[ ] Have the files been linted and formatted?

What docs page needs to be fixed?

Section: Getting Started
Page: Basic Example

https://redux.js.org/introduction/getting-started#basic-example
What is the problem?
Extra space between words of the example code.
What changes does this PR make to fix the problem?
Removes extra space from the example code.

Thanks !


Prometheus encoder added similar to hostd

Prometheus encoder added to renterd similar to hostd. ?response=prometheus added for various endpoints

@bustedware do you think you'll have some time this month to update your PR?

@peterjan no I don't have time. this effort officially expired in January

Closing this for now since it is no longer maintained.


Hope to increase the LInux process monitoring function

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
希望可以增加LInux进程监控功能，大多数情况下更想关注部署在服务器上的具体服务的内存和CPU占用情况。
Expected Behavior
No response
Steps To Reproduce
No response
Environment
HertzBeat version(s):

Debug logs
No response
Anything else?
No response

got it

support in version v1.2.2 now! #467


Setting up CVAT Analytics on multiple containers

Hey @nmanovic
I am creating cvat jobs with different datasets as separate containers. I have never used the analytics of cvat before and I am interested in using this feature as well. I am able to create multiple cvat containers for example (cvat_1, cvat-redis_1,cvat_db_1 ),(cvat_2,cvat_redis_2, cvat_db_2) etc. but I am unable to create multiple containers for the analytics docker service since the ports are restricted to 5600 and 5601.
When I change the above ports, i get a 500 error when loading kibana.
Can you help me create separate containers for the analytics as well
Thank You

@muck27 , I believe it is better to discuss the question on gitter. Probably somebody from community did that. It is only guess but probably you can use different docker networks: https://docs.docker.com/compose/networking/#specify-custom-networks

I will close the issue. Please ask on gitter.


Call Gemini in OpenAI format (via LiteLLM) - tool calling, image url's, etc. in docs

Adds docs on calling gemini in the openai format

via litellm sdk
via litellm proxy (allows users to set budgets + track usage across llm providers)

cc: @shilpakancharla @Giom-V
let me know if there's anything missing for merge!

Hey @krrishdholakia - thanks for the contribution. I think the idea is solid, and we'd be happy to have something showing how to use litellm in this cookbook, though I have some notes.
Given this is in Python, can you format it as a Python notebook? And can you focus the content specifically on how to use LiteLLM with the Gemini API?
If you want to put it all in one notebook you could, or separate notebooks per topic would be fine if they are detailed enough to justify it. A topic like "Getting started with LiteLLM and the Gemini API" would be great, or something showing the features of litellm would be even better - the idea of track usage + set budgets sounds compelling, if you could show the budgets and usage in the content it'd be excellent.

got it @markmcd i'll update the model strings to correctly reference the gemini api

Hi @markmcd updated with detailed examples for tracking usage + setting budgets. Also did some additional cleanup to reference gemini in the model strings.
Is this good for merge?

can you format it as a Python notebook?

Can you address this?


Add documentation. Change class name in views/verify.py

Coverage remained the same at 76.852% when pulling 997c80cdb9fb823e18a0af0396ee87c4536d8ca3 on add_documentation into e81247fc7591c8bbeea4806d932270c942bbfdf5 on proxy_server.

Coverage remained the same at 76.852% when pulling 09575be8978a9b3703e4ab89873bcf2025125162 on add_documentation into e81247fc7591c8bbeea4806d932270c942bbfdf5 on proxy_server.

Coverage remained the same at 76.852% when pulling 87b97d6289e66bc9877da30456d9f13f84b57518 on add_documentation into e81247fc7591c8bbeea4806d932270c942bbfdf5 on proxy_server.

Coverage remained the same at 76.852% when pulling 8a52abd8114d11ba3458c9ecb5e6c567b9d1f64e on add_documentation into e81247fc7591c8bbeea4806d932270c942bbfdf5 on proxy_server.

Coverage remained the same at 76.852% when pulling 3dacabd8c3f9fe9e29cb0c99fe4295544270ae0a on add_documentation into e81247fc7591c8bbeea4806d932270c942bbfdf5 on proxy_server.


Overhaul sf::IpAddress

So apparently these tests pass:
const sf::IpAddress ipAddress;
CHECK(ipAddress.toString() == "<IP_ADDRESS>"s);
CHECK(ipAddress.toInteger() == 0);
CHECK(ipAddress != sf::IpAddress::Any);

const sf::IpAddress any("<IP_ADDRESS>"s);
CHECK(any.toString() == "<IP_ADDRESS>"s);
CHECK(any.toInteger() == 0x00000000);
CHECK(any == sf::IpAddress::Any);

This is extremely worrisome to me -- because there's a hidden "invalid" state that cannot be distinguished from toString and toInteger.
So here's my proposal:

Rename sf::IpAddress to sf::IpV4Address. This can be done as a pure renaming refactoring PR.
sf::IpV4Address is an always-valid value semantic class. It's just a wrapper around a single sf::Uint32.
To create sf::IpV4Address instances, a factory function returning std::optional<sf::IpV4Address> must be used. The constructor of sf::IpV4Address is private.

Thoughts? @ChrisThrasher @eXpl0it3r @Bromeon

I'd most prefer we just throw during construction. This is impossible for users to ignore, trivial to test, and maintains the clean constructor syntax that C++ developers expect. By returning an optional we're just imposing the error handling on the user who still has to correctly handle that optional or risk throwing a std::bad_optional_access. At least if we throw our own exception we can pick the error message such that it's as clear as possible why construction failed. This also means we get to maintain the other constructors like sf::IpAddress(sf::Uint32) which cannot fail without creating a weird split between fallible construction methods and infallible construction methods.
I know this breaks with SFML convention but maybe we reconsider this design decision because as illustrated here, it's causing us to write messier interfaces.
Exceptions aside, my 2nd favorite option would be std::optional<sf::IpAddress> sf::IpAddress::create(/* all constructor overloads here */) and remove all existing constructors, even those that cannot fail, for the sake of consistency.

Unsure why we want to specify that these are IPv4 addresses unless we plan to add IPv6 addresses in the future. I suppose it's future proofing in case sf::IpV6Address gets added in a later 3.x minor release.

To prevent a physical dependency between sf::IpV4Address and /<string_view>/,...

I disagree with the idea that we need to optimize compile times to this degree. I think it's largely a waste of our time and makes SFML more difficult to maintain for very little benefit to users. If SFML were notorious for lengthy compile times I'd be more agreeable but on my 2021 laptop, a clean build of master including tests and examples takes 10 seconds with incremental builds being too fast to notice much of the time.
I also dislike how, for example, you cannot use all of <SMFL/Graphics/RectangleShape.hpp>'s interface without also including <SFML/Graphics/Texture.hpp>. It's expected that if you include a public header, you don't have to include additional headers to use it yet we break that expectation in the name of faster compile times.

As mentioned before, I think the topic of error handling should be discussed for SFML 3 in general, as sf::IpAddress is not an isolated instance where it becomes relevant.
I have opened issue https://github.com/SFML/SFML/issues/2139 for that.

Exceptions aside, my 2nd favorite option would be std::optional<sf::IpAddress> sf::IpAddress::create(/* all constructor overloads here */) and remove all existing constructors, even those that cannot fail, for the sake of consistency.

For completeness, using suggestion #5 from the error handling issue would be:
#include <SFML/System/Result.hpp>

class IpAddress {
public:
    // "Primary" or "canonical" constructor
    IpAddress(sf::Uint8 a, sf::Uint8 b, sf::Uint8 c, sf::Uint8 d);

    // Named constructor idiom for other ways of instantiation, fallible or not
    static IpAddress fromInteger(sf::Uint32 ip);
    static Result<IpAddress> fromString(std::string_view str); // returns address or error (message/enum/...)
}

I disagree with the idea that we need to optimize compile times to this degree. I think it's largely a waste of our time and makes SFML more difficult to maintain for very little benefit to users. If SFML were notorious for lengthy compile times I'd be more agreeable but on my 2021 laptop, a clean build of master including tests and examples takes 10 seconds with incremental builds being too fast to notice much of the time.

Even though I'm a fan of short compile times, I agree here. Since C++ doesn't have extension methods, we need to artificially split related functionality like IpAddress and IpAddressUtils. A user who wants to create an IP address cannot just look at the sf::IpAddress documentation, but also needs to look at sf::IpAddressUtils. This compile-time optimization becomes a leaky abstraction and has negative impacts on ergonomics.

Even though I'm a fan of short compile times, I agree here. Since C++ doesn't have extension methods, we need to artificially split related functionality like IpAddress and IpAddressUtils. [...] This compile-time optimization becomes a leaky abstraction and has negative impacts on ergonomics.

I just want to make it clear that this subdivision is not merely a compile-time optimization, IMHO it is good engineering practice and an application of the SRP. An "ip address" class should not be concerned on conversions from a string -- that's a completely orthogonal responsibility that should go somewhere else.
It's like having a sf::Sprite constructor taking a sf::Image. Convenient? Possibly. Good engineering? Not quite.
I would advise on performing this separation even if compilation times were not improved.

A user who wants to create an IP address cannot just look at the sf::IpAddress documentation, but also needs to look at sf::IpAddressUtils.

That is not entirely true. The sf::IpAddress documentation can freely mention and provide a hyperlink to sf::IpAddressUtils.

From an IETF perspective there is no such thing as an "invalid IP address". All 2^32 distinct values for v4 and all 2^128 distinct values for v6 always represent an address. Whether an address makes sense in a given context depends on that specific context. I wouldn't needlessly complicate a class that is just meant to be a thin wrapper around the underlying 32-bit value.
The only reason why m_valid was necessary was because sf::IpAddress existed during the C++98 era when std::optional wasn't around yet. Certain address retrieval functions needed a way to indicate that no address was available to be returned. Today it is obvious that std::optional would be used for these cases, but back in the day the optional behaviour was combined into sf::IpAddress itself.
Since we have std::optional now I'd say just clean up the places where sf::IpAddress::None are used or address resolution can fail and just declare that every constructed sf::IpAddress is always valid. sf::IpAddress::resolve() should really be a static function that returns an optional.

Remove default and string constructors
Make resolve() a public static function that returns optional
Return nullopt whenever an IP address is unavailable

Closing because this is almost entirely addressed by #2145


Cannot run npm run build

I have tried on windows but in the end, I keep getting the same message i.e. cannot find the directory and it always refers to "layers/ball" but I have already changed the layers and there is no ball layer.
Thanks

I had the same isuue, you just forgot to save the changes you made, save , refresh and it will normally works ;)
Peace, Love and caféine !

I had the same isuue, you just forgot to save the changes you made, save , refresh and it will normally works ;) Peace, Love and caféine !

Thank you so much for your help it's right I forgot to save the changes it works perfectly again thank also special thanks to the developer.


Release Azure.Value in the Azure.Core package

This is tracking release of the Azure.Value [link] type in Azure.Core. Depending on timing, we could make use of this in other packages linked below.

Do we have any other context on the Azure.Value type?

@KrzysztofCwalina and @tg-msft asked me to consider using it for an upcoming KV release, but seems it won't make it in time. They asked me to open a tracking issue.

Per @KrzysztofCwalina:

The following package GA is blocked on this. We want to not ship this type and use Value instead: https://apiview.dev/Assemblies/Review/e1389ac1af984a86a079127e8093937a#Azure.Communication.JobRouter.LabelValue

Filling in some context:

KeyVault has shipped a KeyVaultSettingValue type that would have used Azure.Value if it had been available.  Usage samples for that are here.
Azure.Communication.JobRouter.LabelValue has some samples here
The original PR for Azure.Value is here: https://github.com/Azure/azure-sdk-for-net/pull/27487

KeyVaultSettingValue does do one thing a little differently than Value, and it may or may not be worth considering. To avoid polymorphic types for a single value, we recommended a type: string property for the value. Any primitive can encode as a string, so this avoided more complexity in the generated models we use as an HLC. Thus, ToString always returns the string-formatted value, and customers can set a string. This allows a customer on an older SDK version to read/write values that are added to the service, which are not part of the schema (the key/value pairs themselves).
Maybe Value is meant more for polymorphic types, but this might be something to consider. At least when I opened this tracking issue, Value did not support an everything-as-a-string fallback.

A service team has asked how they can indicate in a swagger or typespec file that Value should be used in a model - it would be good to provide a solution to this.

@KrzysztofCwalina, we should touch-base on whether or not this is currently a priority, and if so, what our approach is now given System.ClientModel


Users/bearmannl/update odt camelcasing

First step to get the package renamed with proper CamelCasing.
Microsoft Reviewers: Open in CodeFlow

This is going to take more effort than I thought. I'll delete all the versions and the root folder. Add the versions back with the proper CamelCasing one by one, etc.


Create an initial OL enrollment table using dbt

Initial implementation of an OL enrollment table/product. The PR establishes organizational standards for intermediate and mart SQL, noting, intermediate maintains sub directories for our products (e.g., mitxonline). I also used this PR to go through the process of adding new fields to the overall enrollment table, which required starting with updates to staging SQL, then work up to the "core" mart level.
Two considerations for reviewers of this PR:

Organization/layout of the "intermediate", "core" directories and the contained SQL.
The process of adding new fields, e.g., username and email in this PR. This felt cumbersome at times, i.e., many updates in many files to add two fields.

@shaidar @abeglova I am new to sqlfluff, but have a check failing. Unfortunately, the output from the checks is truncated and I am still trying to figure out how to get sqlfluff working correctly locally. Are either of you concerned about that failed check above? Or do you know a way for me to see the full output for the failed check?

It's mainly just a formatting issue:


Efficient-Large-Model/VILA1.5-13b weird outputs

I am running inference with the Efficient-Large-Model/VILA1.5-13b model.
When using the Efficient-Large-Model/VILA1.5-3b and Efficient-Large-Model/Llama-3-VILA1.5-8B models, the results are generated correctly without any issues.
However, when running inference with the 13B model, I get weird outputs like the ones shown in the image.
Is anyone else experiencing this issue?

this usually because you set the wrong conv template. Could you use vicuna_v1 instead?

I've used both default llava_v0 and vicuna_v1, but the results are the same..


Improvements to poll-plus app

Hello!
We have a few ideas to improve poll app.

Separate lines between vote variants

Add translation to other languages
Show poll settings (single, multiple) in header or differ them by poll color
Highlight vote button in multiple choice votes
Add counter of all chat users and users that voted.
Like Voted X of Y
where X - number of users who voted, Y - total number of users in chat
Good to show that in header

@RonLek hey!
Can you work on that issue?


Frontend web development react angular vue : Angular(7.5) -> Error Handling

Description 📜
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.
Fixes #7700

Type of change 📝

[ ] Au#dio (Should be in mp3 format Includes speech clarity, Concise ,Low distortion)
[ ] Vi#deo (Animations, screen-recordings, presentations and regular explanatory films are all possibilties etc)
[x] Doc#umentation (Content Creation in the form of codes or tutorials)
[ ] Other (If you choose other, Please mention changes below)

Domain of Contribution 📊

[ ] Android Dev #(Flutter)
[ ] Android Dev #(Java)
[ ] Android Dev #(Kotlin)
[ ] Backend Dev #(Java)
[ ] Backend Dev #(.NET)
[ ] Backend Dev #(PHP)
[ ] Backend Dev #(Python)
[ ] C/#CPP
[ ] Competitive #Programming
[ ] Cyber #Security
[ ] DS#A
[ ] Data#base
[ ] Datascience with #Python
[ ] Datascience with #R
[ ] Frontend Dev #HTML/CSS/JS
[x] Frontend Dev #React/Angular/Vue
[ ] Go#lang
[ ] Interview #Prep
[ ] Java_#Domain
[ ] JavaScript_#Domain
[ ] ME#RN
[ ] Machine #Learning
[ ] Open #Source
[ ] Python_#Domain
[ ] Ru#st
[ ] Statis#tics
[ ] UI/#UX

Checklist ✅

[x] I follow Contributing Guidelines & Code of conduct of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I'm GWOC'21 contributor

Screenshots / Gif (Optional) 📸

@mukeshmjn once review this PR from your side and get merged.

@HastiSutaria Its Nice and Clean Impressive PR LGTM! 👍 lets wait for the supervisor approval if they mention any changes then make that to .

Thank you.

@HastiSutaria content is well structurised and clean.. Just one thing instead of word angularjs use angular.. Just update it and I'll merge :)

Updated ! @mukeshmjn


Automatically add docs permalinks

Add a job after deploy_preview which adds the preview_url to changelog.md in a new commit. Example
⚠ Potential blocker: To avoid an infinite loop, the automated comment needs to skip CI, but then we don't get a green PR because the last commit didn't run checks :/

Why this approach:
By adding the permalink to changelog.md, it will

be published in release notes
committed to the repo for docs to parse & read and show a version switcher

This solution isn't ideal, but there's a reason for that:
Constraints:

To show a version switcher in docs, we need the permalinks on main branch for deploy/production action
The needed permalink is only created on deploy/preview on changeset-release/main branch, not on main (on main, we don't have a preview_url, just primer.style/react)
Keep this information in the repo instead of using an external database

Failed attempts:

using actions/artifacts

we can't store preview_url permalinks as artifacts because artifacts created from one branch are not accessible in a different branch

using actions/cache

cache created from a branch like changeset-release/main cannot be accessed on main
cache values cannot be read from rest api either

using release assets

release assets can be accessed by rest api, but a release is created on main, while preview_url is on branch changeset-release/main

Successful attempt: 🤞

update changelog.md

on changeset-release/main, add preview_url to changelog.md as "Permalink to docs", commit it!
release notes will automatically use changelog.md and have a permalink

Alternative approach, haven't tried yet:

Commit on main after release branch is merged

use same guard as production/deploy (= no changes since release)
get last deployment for release tracking branch (rest api)
Get preview_url (environment_url) for deployment (rest api)
Add permalink to deployments.json, changelog.md (commit from actions)
Update release notes with permalink (rest api)

Update release notes after release branch is merged

basically like the above approach, but don't commit, keeping main branch clean
fetch release notes before deploy/production to populate version switching
changelog.md does not have permalinks

Use a closed issue as database

Instead of commits, add comments to issue. it's still in the repo
Accessible across branches
Doesn't trigger or skip actions
Doesn't update changelog or release notes though, need another action for that

later:

what will happen on forks?
after testing this out with a release, going to add past deployments manually + extract to primer/.github

Open questions:

To avoid an infinite loop, the automated comment needs to skip CI, but then we don't get a green PR :/
~changesets uses changelog.md for release notes, right? (i'm 99% sure)~ Confirmed ✅
Deployments take a while, if there is another commit before deployment finishes, the commit will fail, which is good i think? (maybe we should cancel ongoing deployments) anyways

Bump @siddharthkp, should we try to revive this? Looks like it was already reviewed.

@lesliecdubs I haven't had a chance to see what was still pending in this PR. I can dedicate some time next week

I'd love to include docs permalinks in the Primer Changelog for reference.

Right now, we add permalink to release notes manually, example: https://github.com/primer/react/releases


Add msitjanakpuri (MSIT Janakpuri)

@PracticalMetal Please provide us with a proof, which shows that the school recognizes the domain you are submitting as an official email domain for the students.
You can provide us with any of the following:

A copy of instruction (a hard-copy or electronic one) given to you by the school that tells you to use an email address in this email domain
An URL of a page at the official school website that says that students use this email domain
A reference to a recognized journal where an article was published by someone from the school, with explicit affiliation to the school, and e-mail address from the email domain
A WHOIS data that link the email domain to the school somehow
A copy of official letter from the school representative saying that the school provides e-mail addresses in this domain to the students
Anything else that can prove this fact in similar way, i.e. can be verified independently.

@PracticalMetal You might miss my previous comment. Please react.

Thanks for your reply. I used my github student developer account to get education pack for the same.

@PracticalMetal You can apply for free JetBrains license with your GitHub username. Please use GitHub tab at https://www.jetbrains.com/shop/eform/students. I close this request without merging. Please reopen it if you will need it in future. Thank you.


Use coingecko API for trending

cloudscraper stopped working, so we should use the API again

Or use a different method to scrape coingecko, since top categories also broke now


An @objc protocol can inherit from a marker protocol

... because marker protocols have no witness tables.
Fixes rdar://91011153.

@swift-ci please smoke test and merge

@swift-ci please smoke test macOS

Intermittent LLDB failure is independent of this change.


Keycloak operator improvments

Some small additions to support some default values and to behave more like a generic helm chart.
One of the major changes is the naming of the ServiceAccount, but everything else should be a nice extra without breaking anything :smile:

I didn't change the chart version. Do you want to do it or should I include it in this PR?


"The system cannot find the path specified" for files in ~/.config

Bug description

When using the Windows file explorer and opening files from my user home directory's .config (/home/myuser/.config/example.txt), I get the error "The system cannot find the path specified". This does not happen when opening files from, eg. /home/myuser/some-git-repo/example.txt. \
This doesn't seem to be an issue when using other WSL distros, atleast from what I can find online. I think it's a permission issue, with my Windows user not having the same permissions as my Unix user. But I really don't know. Am I missing something obvious?
To Reproduce
Steps to reproduce the behavior:

Install NixOS-WSL
Change the username with wsl.defaultUser according to the docs
Link config-files (git, mpv, ...) to my users home directory with Home Manager using home.file:

{ lib, pkgs, ... }:

{
  config = {
    home.packages = [ pkgs.unstable.mpv ];

    # Link the shared MPV configuration
    home.file.".config/mpv" = {
      source = ./config;
      recursive = true;
    };
  };
}

Enter ~/.config and do explorer.exe .
Try to open files (for example with Notepad)
Try to open files that aren't linked using Home Manager, and get same error.

Logs
Usually this error:
The system cannot find the path specified

or this:
Cannot find the \\wsl.localhost\NixOS\home\myuser\.config\git\config.txt file.

or opening with VSCode gives an empty file.
WSL version

WSL version: <IP_ADDRESS>
Kernel version: <IP_ADDRESS>-2
WSLg version: 1.0.65
MSRDC version: 1.2.5620
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.26100.1-240331-1435.ge-release
Windows version: 10.0.22631.4169

The home-manager files probably won't work because windows cannot resolve the symlink.

Oh yeah of course. I don't know why I didn't think about that. Man that's too bad..


Error on Multisig

I followed the EOSIO multisig tutorial (https://steemit.com/eos/@genereos/eos-multisig-tutorial), but there is a error when I execute the multisig transaction after all the accounts approved it.

The detailed steps are as follow:
I created four accounts: mymultisig11, partner11111, partner22222 and partner33333.
./cleos set account permission mymultisig11 active '{"threshold":2,"keys":[],"accounts":[{"permission":{"actor":"partner11111","permission":"active"},"weight":1},{"permission":{"actor":"partner22222","permission":"active"},"weight":1},{"permission":{"actor":"partner33333","permission":"active"},"weight":1}],"waits":[]}' owner -p mymultisig11@owner
./cleos set account permission mymultisig11 owner '{"threshold":2,"keys":[],"accounts":[{"permission":{"actor":"partner11111","permission":"owner"},"weight":1},{"permission":{"actor":"partner22222","permission":"owner"},"weight":1},{"permission":{"actor":"partner33333","permission":"owner"},"weight":1}],"waits":[]}' -p mymultisig11@owner
./cleos multisig propose payme '[{"actor": "partner22222", "permission": "active"},{"actor": "partner33333", "permission": "active"}]' '[{"actor": "mymultisig11", "permission": "active"}]' eosio.token transfer '{"from":"mymultisig11", "to":"partner11111", "quantity":"25.0000 SYS", "memo":"Pay partner11111 some money"}' -p partner11111@active
./cleos multisig approve partner11111 payme '{"actor": "partner22222", "permission": "active"}' -p partner22222@active
./cleos multisig approve partner11111 payme '{"actor": "partner33333", "permission": "active"}' -p partner33333@active
./cleos multisig exec partner11111 payme -p partner11111@active
P.S. I'm sure that the wallet is unlocked and the related private keys are inside my wallet.

I met the same problem.

@liuzhl518 I followed exactly the same detailed-steps you mentioned above (copy-paste) and I've got no problem executing the multisig transaction (I can see that partner11111 has received 25.0000 in the end). Can you please try the above detailed-steps to reconfirm? Also if you still get the same error, try to start your nodeos with --verbose-http-errors argument, so we can get more verbose error description.

I met the same problem... @andriantolie  what version of Eos you are running on? I've tried the latest 1.0.6. but met the same problem

I'm using the latest master as today

@andriantolie I've tried the latest 1.0.6 as well, but I still got the same error. Then I started nodeos with --verbose-http-errors, the error description is as follow:

According to the error logs,
{"auth":{"actor":"jack","permission":"owner"},"provided_delay":0,"provided_permissions":[{"actor":"eosio.msig","permission":"eosio.code"}],"provided_keys":[],"delay_max_limit_ms":388800000}
the provided permissions which is from eosio.msig contract occured something dismatch.  It seems a bug of eosio.msig contract.

msig requires this to work:
$ push action eosio setpriv '["eosio.msig", 1]' -p eosio@active

The above command needs either the bios or system contracts installed to work.

@tbfleming It works! Thank you so much!
Can you tell me what does this command do? From the code, I notice this command set eosio.msig  privileged, but I don't know how does the privilege work.

Think of a privileged account as the root account under Linux; code running under it can do anything. A typical chain has 2 privileged accounts: eosio and eosio.msig.

Ah, no wonder I didn't encounter the issue. I did set my eosio.msig to be privileged account as part of the boot sequence. Good to know that the problem is solved now, I'm going to close this issue. :)

@tbfleming how come eosio.msig has to be set privileged to execute the transaction? Why is it not set to privileged by default?

privileged allows msig to sudo the declared authorities in the transaction after verifying the signatures. It's not privileged by default because it doesn't exist by default. eosio is the only account that gets created automatically.

msig requires this to work:
$ push action eosio setpriv '["eosio.msig", 1]' -p eosio@active

when i type
cleos push action eosio setpriv '["eosio.msig", 1]' -p eosio@active
i got the error
error 2019-03-22T01:31:50.099 thread-0  main.cpp:3449                 main                 ] Failed with error: Assert Exception (10)
!action_type.empty(): Unknown action setpriv in contract eosio


When is it possible again to associate VSTS test cases with unit tests written in MS Test V2?

As described here, it is not anymore officially supported to associate test cases created in VSTS with unit test that are written with the MS Test V2 framework.
Is there any information about when this features will be reactivated?

Thank you for your feedback. Product suggestions and feature requests are best posted and upvoted on the UserVoice website at https://visualstudio.uservoice.com/forums/330519-team-services, where they are tracked by the product teams. Please post your suggestion there. Thank you.


GOBBLIN-1355: Make task interruption optional on Gobblin task cancellation

Dear Gobblin maintainers,
Please accept this PR. I understand that it will not be reviewed until I have checked off all the steps below!
JIRA

[x] My PR addresses the following Gobblin JIRA issues and references them in the PR title. For example, "[GOBBLIN-XXX] My Gobblin PR"

https://issues.apache.org/jira/browse/GOBBLIN-1355

Description

[x] Here are some details about my PR, including screenshots (if applicable):
Currently, the thread running a Gobblin task is interrupted when a task cancellation is invoked. When such a task is managing a Kafka consumer for instance, the interrupt leaves the consumer instance in a corrupt state, particularly if the consumer is in the middle of a poll() when the interrupt occurs. This in turn prevents the subsequent clean up of the consumer instance resulting in a potential resource leak.

With this change, we provide the option to avoid interrupting the thread in aforementioned scenarios and let the poll() return before the thread is shutdown.
Tests

[x] My PR adds the following unit tests OR does not need testing for this extremely good reason:
Trivial change.

Commits

[x] My commits all reference JIRA issues in their subject lines, and I have squashed multiple commits if they address the same issue. In addition, my commits follow the guidelines from "How to write a good git commit message":

Subject is separated from body by a blank line
Subject is limited to 50 characters
Subject does not end with a period
Subject uses the imperative mood ("add", not "adding")
Body wraps at 72 characters
Body explains "what" and "why", not "how"

Codecov Report

Merging #3195 (a9c5a4b) into master (1b31c90) will increase coverage by 0.00%.
The diff coverage is 33.33%.

@@           Coverage Diff            @@
##             master   #3195   +/-   ##
========================================
  Coverage      9.10%   9.11%
- Complexity     1726    1727    +1
========================================
  Files          2017    2017
  Lines         77221   77215    -6
  Branches       8568    8569    +1
========================================
+ Hits           7033    7036    +3
+ Misses        69500   69491    -9
  Partials        688     688

Impacted Files
Coverage Δ
Complexity Δ

...pache/gobblin/configuration/ConfigurationKeys.java
0.00% <ø> (ø)
0.00 <0.00> (ø)

...src/main/java/org/apache/gobblin/runtime/Task.java
51.01% <33.33%> (-0.01%)
57.00 <0.00> (ø)

.../gobblin/cluster/HelixRetriggeringJobCallable.java
0.00% <0.00%> (ø)
0.00% <0.00%> (ø%)

.../org/apache/gobblin/cluster/GobblinTaskRunner.java
62.17% <0.00%> (+0.64%)
33.00% <0.00%> (+1.00%)

Continue to review full report at Codecov.

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

Codecov Report

Merging #3195 (a9c5a4b) into master (1b31c90) will increase coverage by 0.00%.
The diff coverage is 33.33%.

@@           Coverage Diff            @@
##             master   #3195   +/-   ##
========================================
  Coverage      9.10%   9.11%
- Complexity     1726    1727    +1
========================================
  Files          2017    2017
  Lines         77221   77215    -6
  Branches       8568    8569    +1
========================================
+ Hits           7033    7036    +3
+ Misses        69500   69491    -9
  Partials        688     688

Impacted Files
Coverage Δ
Complexity Δ

...pache/gobblin/configuration/ConfigurationKeys.java
0.00% <ø> (ø)
0.00 <0.00> (ø)

...src/main/java/org/apache/gobblin/runtime/Task.java
51.01% <33.33%> (-0.01%)
57.00 <0.00> (ø)

.../gobblin/cluster/HelixRetriggeringJobCallable.java
0.00% <0.00%> (ø)
0.00% <0.00%> (ø%)

.../org/apache/gobblin/cluster/GobblinTaskRunner.java
62.17% <0.00%> (+0.64%)
33.00% <0.00%> (+1.00%)

Continue to review full report at Codecov.

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


Dropdown List Icon

Icon Request

Icon name: dropdown
Tags of this icon: drodown, field
Screenshots of similar icons:

https://remixicon.com/icon/dropdown-list


Fix the doc build

Previous PR https://github.com/Microsoft/MixedRealityToolkit-Unity/pull/3731/files didn't update the toc.yml, but the build didn't catch the issue because it was broken due to SDK versioning issues (and then scene rename issues).
Basically there were a chain of things that were broken and we only now got to the point where we can see it working.

Looking at the checks, this is the first time we've gotten to a clean build again after all of the merges and activity that we have had.
https://github.com/Microsoft/MixedRealityToolkit-Unity/pull/3782/checks
In the interest of ensuring that the rest of the PRs also get this I'm going to force merge this in.


There is no example of restful boolean operator in the documentation

Hi. I want to try boolean operate in quickwit's restful search, but I'm not sure what I'm doing is right.

So please author can provide an example of Boolean Operators search, like AND, +, OR, NOT and -. thank you!
Below is my approach:
OR
curl "http://<IP_ADDRESS>:7280/api/v1/gh-archive/search/stream?query=body:It+OR+seems+OR+like+OR+frontend+OR+might&fastField=id"

AND
curl "http://<IP_ADDRESS>:7280/api/v1/gh-archive/search/stream?query=body:It+seems+like+frontend+might&fastField=id"

@sangensong Thanks for the report! We'll address that in the next version.
You approach is correct, except for the body: field specifier.
You need to repeat it for every term, or alternatively, you can use the searchField query parameter
as defined in https://quickwit.io/docs/reference/rest-api


Video title name include special character need handle when not specific output file name.

ex: ./youtubedr https://www.youtube.com/watch?v=n3kPvBCYT3E
2020/04/20 18:28:15 Download to file= /Users/USER/Movies/youtubedr/Silhouette / Eurobeat Remix.mov

What kind of approach do you prefer to fix the issuse?

replace special character with space (or other valid characters)
when special character is found, use id as file name
when special character is found, print error message and exit process
etc..

I suggest the least confusing/surprising/intrusive approach: removing invalid characters unsupported by the platform's file system.
Maybe trimming the duplicate whitespace that it may cause too.

I opened a PR to help c:

@Julian-Chu  Would you please help to check this PR #29,  if you have time? I have invited you as a contributor to this project.
Thank you.

@kkdai  my pleasure. I will take care of PR #29

fixed by #29


In 11.13 event handler can not be removed anymore

The following code worked as expected in 11.12:
final EventType<T> eventType = ...
final EventHandler<? super T> eventHandler = ...

FXGL.getInput().addEventHandler(eventType, eventHandler);

//Now the event handler is registered and the program reacts on user interaction

FXGL.getInput().removeEventHandler(eventType, eventHandler);

//The handler has been removed and the program does not react on the user interaction anymore

With an update to 11.13 the removeEventHandler does not work anymore. The event handler is still registered.

Add / remove event handler test is passing and I cannot seem to reproduce this manually either. Perhaps the issue is elsewhere? If there is a minimal reproducible example that would help too.

The behaviour might be related to the semantics of this change. Both filter and handler capture the same event. However, if the same event is being fired into both filter and handler, then it is a bug. I'll look into this later today.

I will try to provide a sample :)

Interesting behavior. While I can not reproduce the mentioned error with a first sample I found another problem.
Sample Code:
public class EventHandlerSample extends GameApplication {

    public static void main(final String[] args) {
        launch(args);
    }

    @Override
    protected void initSettings(final GameSettings settings) {
    }

    @Override
    protected void initGame() {
        final EventType<MouseEvent> eventType = MouseEvent.MOUSE_RELEASED;
        final EventHandler<MouseEvent> eventHandler = e -> System.out.println("ON EVENT");

        FXGL.getInput().addEventHandler(eventType, eventHandler);

        Executors.newSingleThreadExecutor().execute(() -> {
            try {
                Thread.sleep(10_000);
            } catch (final InterruptedException e) {
                e.printStackTrace();
            }
            System.out.println("PING");
            Platform.runLater(() -> FXGL.getInput().removeEventHandler(eventType, eventHandler));
        });
    }
}

Once the application started you will see a "ON EVENT" message for every mouse click (mouse release) on the canvas until the "PING" message is printed to the console. Afterwards no message will be shown for mouse clicks.
With 11.12 the behavior is as expected but with 11.13 the I see 2 "ON EVENT" messages for each mouse click...

And this sample shows the initially described problem. This happens only when handers are added / removed within a handler. The following code produces different output to the console when using it with 11.12 or 11.13:
public class EventHandlerSample extends GameApplication {

    private final EventHandler<MouseEvent> mouseReleasedEventHandler1 = new EventHandler<>() {
        @Override
        public void handle(final MouseEvent mouseEvent) {
            System.out.println("ON MOUSE RELEASED 1");
            mouseEvent.consume();
            FXGL.getInput().removeEventHandler(MouseEvent.MOUSE_RELEASED, this);
            FXGL.getInput().addEventHandler(MouseEvent.MOUSE_RELEASED, mouseReleasedEventHandler2);
        }
    };

    private final EventHandler<MouseEvent> mouseReleasedEventHandler2 = new EventHandler<>() {
        @Override
        public void handle(final MouseEvent mouseEvent) {
            System.out.println("ON MOUSE RELEASED 2");
            mouseEvent.consume();
            FXGL.getInput().removeEventHandler(MouseEvent.MOUSE_RELEASED, this);
            FXGL.getInput().addEventHandler(MouseEvent.MOUSE_RELEASED, mouseReleasedEventHandler1);
        }
    };

    public static void main(final String[] args) {
        launch(args);
    }

    @Override
    protected void initSettings(final GameSettings settings) {
    }

    @Override
    protected void initGame() {
        FXGL.getInput().addEventHandler(MouseEvent.MOUSE_RELEASED, mouseReleasedEventHandler1);
    }
}

Thanks for this. This is indeed a bug caused by the addition of event
filters in 11.13. The javafx scene fires both filters and handlers through
the same node in Input, causing event duplication.
I will turn these samples into integration tests (unit tests are passing
and won't work here since each module behaves correctly on its own) and
then fix the bug.
On Tue, 9 Feb 2021, 3:47 pm Hendrik Ebbers<EMAIL_ADDRESS>wrote:

And this sample shows the initially described problem. This happens only
when handers are added / removed within a handler. The following code
produces different output to the console when using it with 11.12 or 11.13:
public class EventHandlerSample extends GameApplication {
private final EventHandler<MouseEvent> mouseReleasedEventHandler1 = new EventHandler<>() {
    @Override
    public void handle(final MouseEvent mouseEvent) {
        System.out.println("ON MOUSE RELEASED 1");
        mouseEvent.consume();
        FXGL.getInput().removeEventHandler(MouseEvent.MOUSE_RELEASED, this);
        FXGL.getInput().addEventHandler(MouseEvent.MOUSE_RELEASED, mouseReleasedEventHandler2);
    }
};

private final EventHandler<MouseEvent> mouseReleasedEventHandler2 = new EventHandler<>() {
    @Override
    public void handle(final MouseEvent mouseEvent) {
        System.out.println("ON MOUSE RELEASED 2");
        mouseEvent.consume();
        FXGL.getInput().removeEventHandler(MouseEvent.MOUSE_RELEASED, this);
        FXGL.getInput().addEventHandler(MouseEvent.MOUSE_RELEASED, mouseReleasedEventHandler1);
    }
};

public static void main(final String[] args) {
    launch(args);
}

@Override
protected void initSettings(final GameSettings settings) {
}

@Override
protected void initGame() {
    FXGL.getInput().addEventHandler(MouseEvent.MOUSE_RELEASED, mouseReleasedEventHandler1);
}

}
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/AlmasB/FXGL/issues/964#issuecomment-776037414, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AA3NT5WT4G7CGF5BWJ4KMTDS6FKKBANCNFSM4XKRBZDQ
.

This should now be fixed, once the CI completes (5-10mins), to get the latest build, you can use this:
<dependencies>
    <dependency>
        <groupId>com.github.almasb</groupId>
        <artifactId>fxgl</artifactId>
        <version>dev-SNAPSHOT</version>
    </dependency>
</dependencies>

<repositories>
    <repository>
        <id>oss.sonatype.org-snapshot</id>
        <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    </repository>
</repositories>

Please can you check and let me know if everything works as expected?

Will do later. THX

Looks like the event handling issue is solved. But several JavaFX shapes are not visible anymore when using this version. I always add one javafx Group that implements the FXGL View interface to an entity. Looks like this groups are not visible anymore.

I will try to provide a sample

Looks like it is related to the Z index. My shapes are part of the scene but with the update they are all behind entities that have a lower Z-Index

The setZ() semantics changed in 11.13 since we now support 3D. Please use
setZIndex() to set z-index. Let me know if it works
On Mon, 15 Feb 2021, 1:23 pm Hendrik Ebbers<EMAIL_ADDRESS>wrote:

Looks like it is related to the Z index. My shapes are part of the scene
but with the update they are all behind entities that have a lower Z-Index
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/AlmasB/FXGL/issues/964#issuecomment-779221353, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AA3NT5X4CU4ERQVXXXYGTADS7EN5ZANCNFSM4XKRBZDQ
.

yes, that solves the problem :)


Breaks protocol-less urls

This line breaks protocol-less URLs (that start with //), i.e. it changes //example.com into /example.com.

I went to fix this, but after seeing how this plugin work I now think a better recipe is just using gulp-rework.
var gulp = require('gulp');
var rework = require('gulp-rework');
var reworkUrl = require('rework-plugin-url');

gulp.task('default', function () {
	return gulp.src('src/app.css')
		.pipe(rework(reworkUrl(function(url) {
          // modifications on url, e.g. using http://medialize.github.io/URI.js/
          return url;
        ))
		.pipe(gulp.dest('dist'));
});

I suggest this plugin be deprecated because a combination of gulp-rework, rework-plugin-url and a URL mutation library such as URI.js can give the same results.

@tepez I think this is good a suggestion and will update the readme to reflect this


its not buy or sell on lineer

seems : ["2019-3-27 23:31:41"] ERROR: lineer is an invalid execution strategy ["2019-3-28 00:18:33"] INFO : Test: Buying 0.291 ETHBTC @ market price ["2019-3-28 00:18:34"] INFO : Test: Buying 1758 MTHETH @ market price ["2019-3-28 00:18:34"] INFO : Test: Selling 1758 MTHBTC @ market price ["2019-3-28 00:18:35"] INFO : Test: Executed BTC-ETH-MTH position in 1478 ms ["2019-3-28 00:46:33"] ERROR: Cannot exceed execution cap of 1 execution ["2019-3-28 02:30:41"] INFO : Test: Buying 830 BCPTBTC @ market price ["2019-3-28 02:30:41"] INFO : Test: Selling 830 BCPTETH @ market price ["2019-3-28 02:30:42"] INFO : Test: Selling 0.291 ETHBTC @ market price ["2019-3-28 02:30:42"] INFO : Test: Executed BTC-BCPT-ETH position in 1394 ms ["2019-3-28 03:18:33"] ERROR: Cannot exceed execution cap of 1 execution

Oh, i was turn down to trading config. sorry


Update to Chromium 91.0.4472.114

This PR updates Chromium to 91.0.4472.114.

The first commit updates to 91.0.4472.106.  This is one of the smaller updates I've seen.  No significant changes on ungoogled-chromium's side.
Blog entry
Change log

The second commit updates to 91.0.4472.114.  The only change needed for this one is a version bump.
Blog entry
Change log

Resolves #1547

Looks good

Another small update has released, so I've updated the PR to include it as well!

FWIW they seem to have 91.0.4472.115 now: https://chromium.googlesource.com/chromium/src/+/refs/tags/91.0.4472.115

New tags get pushed all the time but not every ends up as a stable release, see https://chromiumdash.appspot.com/releases?platform=Linux


Overriding templates for flipper-ui

Hi @jnunemaker :wave:
We're currently adding flipper to Classroom for GitHub https://github.com/education/classroom/pull/474, and I was trying to figure out how to override the flipper-ui views.
Is there a way to do this?
My attempt at doing it myself was rather unsuccessful.
I tried to override adding to the Rails lib directory /lib/flipper-ui/flipper/lib/views/layout.erb, but I was unsuccessful.
Any help would be much appreciated!

Overriding the views is not possible as this is built as a rack middleware, not a rails engine, so it can be used with any web framework, instead of just rails. What is the goal you are trying to accomplish in overriding the template?

@jnunemaker since we already have primer and markup already done I wanted to build it into Classroom to make it feel like it is apart of the app.
If that's the case, I will probably just build the functionality we need inside Classroom itself. Or make a rails engine flipper-rails? and throw it in.

Gotcha. In general, I worry less about it feeling apart of the application and more about saving the time of having to recreate it all but to each their own! I'll close this out. Thanks for the discussion.


HTMLDocument struct has invalid MDN links in the docs.

Describe the Bug
The HTMLDocument struct (web_sys) has invalid links to the MDN docs for some of the functions.
Steps to Reproduce

Go to https://rustwasm.github.io/wasm-bindgen/api/web_sys/struct.HtmlDocument.html
Click any of the MDN Links, it redirects you to an invalid MDN page.

Additional Context
As an example, clicking on the domain fn's MDN link, it leads you to:
https://developer.mozilla.org/en-US/docs/Web/API/HTMLDocument/domain
But it appears that the correct URL is:
https://developer.mozilla.org/en-US/docs/Web/API/Document/domain

Ah, they even explicitly point out the following:

You can find documentation for the members of HTMLDocument under the Document interface.

This is likely because HTMLDocument and XMLDocument inherit from Document.


[BugFix] Fix get error tablet schema during query.

Why I'm doing:
This pr(https://github.com/StarRocks/starrocks/pull/48485) try to get a tablet schema from GlobalTableSchemaMap according to a unique schema_id to avoid coping tablet schema during query. However, there are some scenarios where the same schema ID maps to different tablet schemas.
e.g.

create table in old version sr which has three columns, with the column names and unique IDs being:  {c1:1, c2:3, c3:2} and tablet schema id is 'x'
do some replace partition operations such as optimize table. Because the table is created in old version, the unique is is assigned by BE. So the new created tablet schema is {c1:1, c2:2, c3:3} and schema id is  'x'
when we try to insert a new tablet schema with id is 'x' into GlobalTableSchemaMap, we will check the the column unique id. If check failed, we do not update the GlobalTableSchemaMap but create a new tablet schema to the new tablet.
when we init olap_reader, the schema_id assigned by FE is 'x', we try to get the tablet schema from 'GlobalSchemaMap` which maybe not correct.

What I'm doing:
Do not get tablet schema from GlobalSchemaMap and get tablet schema from tablet directly when we found the schema_id is equal.
Fixes https://github.com/StarRocks/StarRocksTest/issues/8385
What type of PR is this:

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

Does this PR entail a change in behavior?

[ ] Yes, this PR will result in a change in behavior.
[x] No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

[ ] Interface/UI changes: syntax, type conversion, expression evaluation, display information
[ ] Parameter changes: default values, similar parameters but with different default values
[ ] Policy changes: use new policy to replace old one, functionality automatically enabled
[ ] Feature removed
[ ] Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

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

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

[ ] This is a backport pr

Bugfix cherry-pick branch check:

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

[x] 3.3
[x] 3.2
[ ] 3.1
[ ] 3.0
[ ] 2.5

https://github.com/StarRocks/starrocks/pull/49998，branch-3.2


Updating Google API

close

No problem @ericayhayes -- I have also accidentally made pull requests in the wrong direction! Let me know if you need assistance or have suggestions for our instructions


Problem With The Connection For Oreo

There is a code in receiveractivity.java
line : 448
in wifiscanner class
if (WifiUtils.isShareThemSSID(result.SSID) && (isOreoOrAbove() || WifiUtils.isOpenWifi(result))) {
Log.d(TAG, "signal level: " + result.level);
connectToWifi(result.SSID);
foundSTWifi = true;
break;
}
but with oreo device everytime that condition is not calling and skipping the part
As you mantion in description about oreo and hotspot with password stuff  .That's true but can't connect with other device please reply

Did you get any solution for this ?


KoLiteCommandOptions.execute must be a function

Before this it caused the options-object to be of any object (function, number, array etc).

@toha73 thanks mate!

note
https://github.com/CodeSeven/KoLite/blob/93f00e07820b9c8488077903ec49e22eaf56cbe7/knockout.command.js#L35


Dat upstream bugs

There are a couple bugs that I'll need upstream help solving. They are:

[ ] https://github.com/mafintosh/hyperdrive/issues/87. This issue keeps beaker from being able to open archives created by dat.land.
[x] https://github.com/mafintosh/hyperdrive/issues/93. This issue keeps beaker from opening static dats.
[x] https://github.com/maxogden/dat/issues/503. Dat stops sharing after a period

#93 is fixed. Two to go

#87 is fixed by dat.land updating hyperdrive.

i have trouble reproducing maxogden/dat#503

Almost there!

i'll try to bump the dat.land team to fix the remaining one

Going to go ahead and close this


closing paren moved to end of line - after a end of line comment

rustfmt -V && cat src/rustfmtbug.rs && rustfmt --write-mode diff src/rustfmtbug.rs
0.8.4 ()
pub trait X {
    fn a(&self) -> &'static str;
    fn bcd(&self,
           c: &str, // comment on this arg
           d: u16, // comment on this arg
           e: &Vec<String> // comment on this arg
       ) -> Box<Q>;
}
Diff in -obfuscated--/src/rustfmtbug.rs at line 3:
     fn bcd(&self,⏎
            c: &str, // comment on this arg⏎
            d: u16, // comment on this arg⏎
-           e: &Vec<String> // comment on this arg⏎
-       ) -> Box<Q>;⏎
+           e: &Vec<String> // comment on this arg)⏎
+           -> Box<Q>;⏎
 }⏎

Which options are you using?

Hi Nick.
All the default options - straight out of the box with no toml file to configure it.
Bruce

Does your "poor-formatting" label cover the fact that my code doesn't compile after rustfmt changes the code?


Question: about sidecar behavior for a mock

Hello,
I have a question about how to work with mountebank when there's a sidecar in the middle. When running my application (subject under test) to access its upstream dependencies, it needs to go through a specific address dependency.xyz.com (for example), that address points to an envoy sidecar which knows how to reach a given dependency.
My question is that I want upon registering an imposter, to then mountebank register itself with the sidecar such that is available for my subject under test to request. Is there a way to achieve this?
I was going through the documentation but couldn't find something similar.

There's nothing specifically for sidecar registration. I wonder if setting
the http_proxy (or https_proxy) environment variables would work? They're
respected for proxy operations http://www.mbtest.org/docs/api/proxies.
-Brandon
On Tue, May 19, 2020 at 4:05 PM Oscar Funes<EMAIL_ADDRESS>wrote:

Hello,
I have a question about how to work with mountebank when there's a sidecar
in the middle. When running my application (subject under test) to access
its upstream dependencies, it needs to go through a specific address
dependency.xyz.com (for example), that address points to an envoy sidecar
which knows how to reach a given dependency.
My question is that I want upon registering an imposter, to then
mountebank register itself with the sidecar such that is available for my
subject under test to request. Is there a way to achieve this?
I was going through the documentation but couldn't find something similar.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/bbyars/mountebank/issues/553, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAARFPZVYK3RBJFBIP5Y7FDRSLYA7ANCNFSM4NFLHM3A
.

Thank you! Will try that


InvalidCastException when using Any or Contains on nested array

I have a setup where object A contains an array of object B, which in turn has an array of strings (or other primitives).
When I query the nested B's for a value, I get an InvalidCastException back like:
Unable to cast object of type 'System.Linq.Expressions.MethodCallExpression2' to type 'System.Linq.Expressions.BinaryExpression'.
I've tried tweaking the query and the models, and re-reading the docs, but I can't find a way to pass the expression down.
Full code:
using Redis.OM;
using Redis.OM.Modeling;
using StackExchange.Redis;

var connection = new RedisConnectionProvider(ConfigurationOptions.Parse("localhost:6379"));

// connection.Connection.DropIndex(typeof(TypeA));

connection.Connection.CreateIndex(typeof(TypeA));

connection.RedisCollection<TypeA>().Insert(new TypeA(1, new[] { new TypeB(2, new[] { "foo", "bar" }), new TypeB(3, new[] { "fob" }) }));
connection.RedisCollection<TypeA>().Insert(new TypeA(3, new[] { new TypeB(4, new[] { "foo", "bar" }), new TypeB(5, new[] { "baf" }) }));

var res = connection.RedisCollection<TypeA>()
    .Where(x => x.TypeBs.Any(y => y.Values.Contains("foo")))
    .ToList();

res.ForEach(x => Console.WriteLine($"{x}: {string.Join(" | ", x.TypeBs.SelectMany(y => $"{y.Id} ~ {string.Join(" + ", y.Values)}"))}"));

Console.ReadLine();

[Document(StorageType = StorageType.Json, Prefixes = new[] { "typeA" }, IndexName = "idx:typeA")]
public record TypeA([property: RedisIdField, Indexed] int Id, [property: Indexed] TypeB[] TypeBs);

public record TypeB([property: RedisIdField, Indexed] int Id, string[] Values);

And for clarification, it's not an issue caused by the double array; the same happens if TypeB is queried equivalently like:
var ids = new[] { 2 };

var res = connection.RedisCollection<TypeA>()
    .Where(x => x.TypeBs.Any(y => ids.Contains(y.Id)))
    .ToList();

What is the solution? I'm also trying to filter based on a value in a nested array with complex types.

What is the solution? I'm also trying to filter based on a value in a nested array with complex types.

I think an easy fix, would be to rearrange your model if possible

@zulander1 could u please explain what do u mean by rearrange? I also have the same problem. My document contains array of values (tags) and I receive an array of values to filter on. how do u propose to manage this?

@AndersenGans for this example i would re-arrange it like this, you will probably need to do two lookups but this would work..
public record TypeB([property: RedisIdField, Indexed] int Id, string[] Values, int TypeAId);
fyi didn't test it

just trying to make my issue as clear as possible, arrays of primitive types, require .Any() method but no luck so far, what would u suggest in this case then?

try this:
var documents = await connection.RedisCollection()
.AnyAsync(x => x.AuthOptions.Contains("test"));// exception Unable to cast object of type 'System.Linq.Expressions.MethodCallExpressionN' to type 'System.Linq.Expressions.BinaryExpression'

but this wouldn't allow me to search by multiple possible values for tag field? like if I want to search whether AuthOptions field contains "Contactless" or "SMS" or whatever else as well. it is only possible to check for one specific value?

in Redis its possible to do like this:
FT.SEARCH idx-Test "@random_tag_field:{option1 | option2 | option3}"
could u provide how is it possible to do same with Redis.OM?

in Redis its possible to do like this: FT.SEARCH idx-Test "@random_tag_field:{option1 | option2 | option3}" could u explain how is it possible to do same with Redis.OM?

it is possible but it's bug.. with the query phaser ..

in Redis its possible to do like this: FT.SEARCH idx-Test "@random_tag_field:{option1 | option2 | option3}" could u explain how is it possible to do same with Redis.OM?

it is possible but it's bug.. with the query phaser ..

just out of curiosity - is it somewhere in your backlog already? 🙂

@slorello89 can help answer that!

closing this out to tidy up