SimpleTrustRegion() diverges while SimpleNewtonRaphson() converges in MWE

First, I want to say thank you for developing this package! I've been using NLsolve.jl for years now and am excited by the increased performance I'll obtain with your fast implementations of NewtonRaphson and TrustRegion algorithms.
I've put together an MWE that involves finding the solution to a spacecraft trajectory optimization problem using simple forward shooting. I already know a solution to this problem, and am setting an initial guess that is very near this solution. As expected, SimpleNewtonRaphson() successfully converges to the solution, but SimpleTrustRegion() diverges.
I suppose this could be a non-issue as there are no convergence guarantees when solving general nonlinear systems, but from my experience with this problem, I find it strange that the trust region algorithm fails to converge in this case. I understand that SimpleTrustRegion() was implemented recently, so I wanted to post this issue in the hopes that it will help identify any bug that could be causing this behavior.

using DifferentialEquations
using StaticArrays
using SimpleNonlinearSolve

# State/Costate equations of motion for min-fuel trajectory optimization in CRTBP model
function crtbp_min_fuel_eom(x, p, t)
    # Grab states
    rx = x[1]; ry = x[2]; rz = x[3]
    vx = x[4]; vy = x[5]; vz = x[6]
    m  = x[7]

    # Grab costates
    lam_rx = x[8]; lam_ry = x[9]; lam_rz = x[10]
    lam_vx = x[11]; lam_vy = x[12]; lam_vz = x[13]

    # Grab parameters
    mu = p[1]
    T_max = p[2]
    c = p[3]
    u = p[4]

    return @fastmath begin
        # Start of MATLAB generated code
        t2 = mu+rx;
        t3 = lam_vx*lam_vx;
        t4 = lam_vy*lam_vy;
        t5 = lam_vz*lam_vz;
        t8 = ry*ry;
        t9 = rz*rz;
        t10 = 1.0/m;
        t11 = mu-1.0;
        t12 = t2-1.0;
        t13 = t2*t2;
        t17 = t3+t4+t5;
        t14 = t12*t12;
        t18 = t8+t9+t13;
        t20 = 1.0/sqrt(t17);
        t19 = t8+t9+t14;

        # We can make this code faster so we will...
        #t21 = 1.0/pow(t18,3.0/2.0);
        #t22 = 1.0/pow(t18,5.0/2.0);
        tt1 = sqrt(t18)
        tt13 = tt1*tt1*tt1
        tt15 = tt13*tt1*tt1
        t21 = 1.0/tt13
        t22 = 1.0/tt15

        # Same thing here...
        #t23 = 1.0/pow(t19,3.0/2.0);
        #t24 = 1.0/pow(t19,5.0/2.0);
        tt2 = sqrt(t19)
        tt23 = tt2*tt2*tt2
        tt25 = tt23*tt2*tt2
        t23 = 1.0/tt23
        t24 = 1.0/tt25

        t26 = t11*t21;
        t29 = ry*rz*t11*t22*3.0;
        t25 = mu*t23;
        t28 = mu*ry*rz*t24*3.0;
        t27 = -t25;
        return SA[
            vx, vy, vz,
            rx+vy*2.0+t2*t26+t12*t27-T_max*lam_vx*t10*t20*u,
            ry-vx*2.0+ry*t26+ry*t27-T_max*lam_vy*t10*t20*u,
            rz*t26+rz*t27-T_max*lam_vz*t10*t20*u,
            -(T_max*u)/c,
            -lam_vy*(mu*ry*t12*t24*3.0-ry*t2*t11*t22*3.0)-lam_vz*(mu*rz*t12*t24*3.0-rz*t2*t11*t22*3.0)-lam_vx*(t26+t27+mu*t14*t24*3.0-t11*t13*t22*3.0+1.0),
            -lam_vz*(t28-t29)-lam_vx*(mu*ry*t12*t24*3.0-ry*t2*t11*t22*3.0)-lam_vy*(t26+t27+mu*t8*t24*3.0-t8*t11*t22*3.0+1.0),
            -lam_vy*(t28-t29)-lam_vx*(mu*rz*t12*t24*3.0-rz*t2*t11*t22*3.0)+lam_vz*(t25-t26-mu*t9*t24*3.0+t9*t11*t22*3.0),
            -lam_rx+lam_vy*2.0,
            -lam_ry-lam_vx*2.0,
            -lam_rz,
            -(T_max*(t10*t10)*u)/t20,
        ]
    end
end

function condition(u,t,integ)
    c = integ.p[3]
    λv = sqrt(u[11]*u[11] + u[12]*u[12] + u[13]*u[13])
    return -c*λv/u[7] - u[14] + 1.0
end

function affect!(integrator)
    params_pre_affect   = integrator.p
    new_throttle_factor = params_pre_affect[end] == 1 ? 0 : 1
    integrator.p = (params_pre_affect[1], params_pre_affect[2], params_pre_affect[3], new_throttle_factor)
    return nothing
end

function initialize!(c, u, t, integrator)
    c   = integrator.p[3]
    λv  = sqrt(u[11]*u[11] + u[12]*u[12] + u[13]*u[13])
    S   = -c*λv/u[7] - u[14] + 1.0
    sf  = 1
    if S > 0
        sf = 0
    end
    ps  = integrator.p
    integrator.p = (ps[1], ps[2], ps[3], sf)
    return nothing
end

function shooting_function(λ0, p)
    # Grab parameters
    x0      = p[1]
    xf      = p[2]
    tspan   = p[3]
    mu      = p[4]
    T_max   = p[5]
    c       = p[6]

    # Form full initial state
    y0 = SA[
        x0[1], x0[2], x0[3], x0[4], x0[5], x0[6], x0[7],
        λ0[1], λ0[2], λ0[3], λ0[4], λ0[5], λ0[6], λ0[7],
    ]

    # Integrate dynamics from initial condition
    cb   = ContinuousCallback(
        condition,
        affect!;
        initialize = initialize!,
        rootfind = SciMLBase.RightRootFind,
    )

    prob = ODEProblem{false,SciMLBase.FullSpecialize}(
        crtbp_min_fuel_eom,
        y0,
        tspan,
        (mu, T_max, c, 1),
    )

    sol  = solve(
        prob,
        Vern9();
        abstol = 1e-14,
        reltol = 1e-14,
        save_everystep = false,
        save_start = false,
        initialize_save = false,
        maxiters = 1e7,
        callback = cb,
    )
    sxf  = sol[end]

    # Return final boundary condition residual
    return SA[
        sxf[1] - xf[1],
        sxf[2] - xf[2],
        sxf[3] - xf[3],
        sxf[4] - xf[4],
        sxf[5] - xf[5],
        sxf[6] - xf[6],
        sxf[14],
    ]
end

function main()
    # CRTBP parameters
    G = 6.673e-20
    m_e = 5.9742e24     # kg
    m_m = 7.3483e22     # kg
    r_em = 384400.0     # km
    mu = 1.21506038e-2

    # Define spacecraft parameters
    T_max_si = 10e-3    # kg*km/s^2
    I_sp_si = 3000.0    # s
    g_0_si = 9.81e-3    # km/s^2
    c_si = I_sp_si * g_0_si
    m0_si = 1500.0      # kg

    # Units
    LU = r_em
    TU = 1.0 / sqrt((G*(m_e + m_m)) / LU^3)
    MU = m0_si

    # Scale parameters
    T_max_nd = T_max_si * TU^2 / (MU * LU)
    c_nd = c_si * TU / LU

    # Define time of flight
    tspan = (0.0, 8.6404*86400.0 / TU)

    # Define initial spacecraft state
    x0 = SA[
        -0.0194885115, -0.0160334798, 0.0,
        8.9188819237, -4.0817936888, 0.0, 1.0,
    ]

    # Define initial co-state guess (Traj. B min. fuel solution from Acta Astronautica paper)
    λ0 = SA[
        15.68499615832586,
        33.031211178919726,
        -0.09381690521953079,
        -0.10207501688908052,
        0.045012820414046514,
        -0.00015063964363906,
        0.1334329267459845,
    ]

    # Define target spacecraft state (note final mass unconstrainted)
    xf = SA[
        0.8233851820, 0.0, -0.0222775563,
        0.0, 0.1341841703, 0.0,
    ]

    # Define Nonlinear Problem
    params = (x0, xf, tspan, mu, T_max_nd, c_nd)

    # Try to solve
    prob = NonlinearProblem{false}(shooting_function, λ0, params)

    # Here, SimpleTrustRegion() diverges whereas SimpleNewtonRaphson() converges

    λ0 = solve(prob, SimpleTrustRegion(); verbose = true) # Unfortunately, verbose = true does nothing currently :(
    #λ0 = solve(prob, SimpleNewtonRaphson(); verbose = true)

    # Compute residual
    resid = shooting_function(λ0, params)

    # If residual is small enough, we have a solution
    max_resid = maximum(abs.(resid))
    display(max_resid)

    return nothing
end

main()

@avik-pal @FHoltorf did SimpleTrustRegion get all of the updates that TrustRegion did?

I dont think so, the step size here is still https://github.com/SciML/SimpleNonlinearSolve.jl/blob/a65354ab2617f6f9e7bbf9c30c712e7c8a1c97fc/src/utils.jl#L63 instead of $J$ \ $\delta f$

Yes, it doesn't seem to have been fixed. The key issue seems to lie in
https://github.com/SciML/SimpleNonlinearSolve.jl/blob/a65354ab2617f6f9e7bbf9c30c712e7c8a1c97fc/src/trustRegion.jl#L137
and
https://github.com/SciML/SimpleNonlinearSolve.jl/blob/a65354ab2617f6f9e7bbf9c30c712e7c8a1c97fc/src/trustRegion.jl#L191C24-L191C24
which incorrectly compute what $H$ and $g$ should be, i.e., $H = J'J$ and $g = J'f$. With those definitions, $-H \ g$ is technically correct (it just tends to be numerically unfavorable compared to computing $-J \ f$ if $J$ is full rank).  I can go over it tomorrow and open a PR.

Fix in latest patch


Add situation3d and lexicon3d to paper list

Hi Yunze, congratulations on Situation3D and Lexicon3D being accepted to CVPR and NeurIPS, respectively! We missed these two papers in our previous survey, and I'd like to update them in the next version. Could you add me on WeChat (ID: mxz1997112) so I can check with you after the update?

Hi Yunze, congratulations on Situation3D and Lexicon3D being accepted to CVPR and NeurIPS, respectively! We missed these two papers in our previous survey, and I'd like to update them in the next version. Could you add me on WeChat (ID: mxz1997112) so I can check with you after the update?

Added you on Wechat


 does not open in ios mode (Ionic4)

Ionic version: (check one with "x")
(For Ionic 1.x issues, please use https://github.com/ionic-team/ionic-v1)
[ ] 2.x
[ ] 3.x
[x] 4.x
I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
Current behavior:
Setup an  with a mechanism to open it (like  or explicitly calling the menu's open() method).
On Android / "md" mode, the menu appears as "overlay" type as expected.
On iOS / "ios" mode, nothing happens.
Expected behavior:
On both modes, the menu appears (as "push" type for iOS).
Steps to reproduce:
Try opening the menu, either using the  in the header toolbar, or using the provided "Open menu" button that calls the 's open() method.
Related code:
4.0.0-alpha.1 mode="md": http://plnkr.co/edit/fI2RbafAdmyPWVYn0Rfj?p=preview (this works)
4.0.0-alpha.1 mode="ios": http://plnkr.co/edit/GOmqwcxEPUZVHgkVeRtY?p=preview (does not work)
0.1.5 mode="ios": http://plnkr.co/edit/NZCrtv2lubaRxeNStdjx?p=preview (works)
<ion-button onclick="openMenu()">Open menu</ion-button>

const menu = document.querySelector('ion-menu[menu-id="myMenu"]');

function openMenu() {
  menu.open();
}

Other information:
This works in iOS in @ionic/core version 0.1.5, but fails from 0.1.6 to 4.0.0-alpha.1 (current)
Note: in Plunker for some reason version 0.1.5 sometimes has troubles picking up the menu in "md" mode.

https://github.com/IonicBrazil/organizacao
https://www.techiediaries.com/ionic-angularjs/


Ask for move the index bar to the left of the screen

Hi, I like your theme. And I try to change the style by myself with failed. Could you tell me how to change the index bar from the right side to the left side? Thanks.

cd ‘hexo-theme-jane/source/css/_partial/sidebar.styl’, and change the position from 'right: 0' to 'left: 0'.
then, you also need to edit the ‘style.sty’,  cd ‘hexo-theme-jane/source/css/style.styl’, find ‘#main’, and change the padding from ‘padding-right: 50px;’  to ‘padding-left: 50px;’ . The purpose is make the articles center.

Thank you very much !

Guess @Link-Zhang you would like to display the scrollbar by removing/commeting these code
::-webkit-scrollbar {     width: 0px; }
in style.sty file.


Generating countries.geojson

Hello!
I want to generate my own countries.geojson file with custom languages.
Actually I've already done it, but I'm a little bit confused about the rank property.
How to generate the rank property?
Or maybe you could publish your script for generating countries.geojson? I've not found this script in repository.
Thank you.

I want to generate my own countries.geojson file with custom languages.
Actually I've already done it, but I'm a little bit confused about the rank property.

in the Bachelor Thesis   - there is some information:
3.3.4 Place Label Rank Calculation
"Ranks are important for determining at which zoom level which places should be displayed.
The NaturalEarth database contains places with scaleranks assigned by humans and is the
most important source for better quality labels (historic places might be much more important
despite having a very small population). This dataset is merged with the imported OpenStreetMap
data. They can also be used to limit density at lower zoom levels to decrease data
density. Using the scalerank and other information such as place type and population the
actual rank called localrank is calculated. An example of localrank calculation can be seen in
figure Figure 13 (localrank is denoted as number inside circle)."
so my guess - this info from NaturalEarth

Thank you, @ImreSamu


Support ResourceQuota in bundles

Feature Request
Is your feature request related to a problem? Please describe.
We use olm to provide our operator (through operatorhub). We currently cannot add our ResourceQuota manifests to the bundle.
Describe the solution you'd like
We would like ResourceQuota to be added to the list of supported resources.

@souleb can you expand on the use case for adding a ResourceQuota to a bundle?

Our operator uses a priorityClass system-cluster-critical because it is generally one of the first component to be installed, and is needed in order to have a k8s cluster ready. Some cloud providers require a ResourceQuota declaration in order to allow deployments to use this priorityClass. So installing our operator from an olm bundle wouldn't work on those cloud providers.

@souleb That's an interesting use case. I think so the operator bundle design assumes that operators are optional components that do not require a special priority or is part of the cluster lifecycle. Adding support for this object type is probably not too difficult, but it's always interesting to hear about the actual use cases.


NETOBSERV-903 banner style fix

It seems banner kills page div styling:

I would suggest putting these on position: absolute:

/lgtm

/approve


Link to individual professors' RateMyProfessors on course reviews page

Thought it might be a good feature—everyone probably looks it up anyway 🤭

Good idea!
Related - #62


Could not load asset

Hello there,
i can log in but when i try to click on any menu button i get errors.
I am using webapi-5.2.1-S7.1.jar && spongeapi 7.1.0-SNAPSHOT-f28d4ba

Part of my Serverlog:
[11:03:25] [qtp1678647478-106/WARN] [webapi]: Could not load asset: admin/static/js/2.c121efff.chunk.js
[11:03:25] [qtp1678647478-106/INFO] [webapi]: ERROR: null
[11:04:40] [qtp1678647478-103/WARN] [webapi]: Could not load asset: admin/static/js/11.93af923a.chunk.js
[11:04:40] [qtp1678647478-103/INFO] [webapi]: ERROR: null
[11:04:43] [qtp1678647478-69/WARN] [webapi]: Could not load asset: admin/static/js/1.a2528bb6.chunk.js
[11:04:43] [qtp1678647478-69/INFO] [webapi]: ERROR: null
[11:04:44] [qtp1678647478-103/WARN] [webapi]: Could not load asset: admin/static/js/5.2171dd27.chunk.js
[11:04:44] [qtp1678647478-103/INFO] [webapi]: ERROR: null
[11:04:45] [qtp1678647478-69/WARN] [webapi]: Could not load asset: admin/static/js/14.f80244c3.chunk.js
[11:04:45] [qtp1678647478-69/INFO] [webapi]: ERROR: null
[11:04:56] [qtp1678647478-115/WARN] [webapi]: Could not load asset: admin/static/js/4.37fa4ef8.chunk.js
[11:04:56] [qtp1678647478-115/INFO] [webapi]: ERROR: null
[11:04:57] [qtp1678647478-103/WARN] [webapi]: Could not load asset: admin/static/js/18.793e6a07.chunk.js
[11:04:57] [qtp1678647478-103/INFO] [webapi]: ERROR: null
[11:04:58] [qtp1678647478-115/WARN] [webapi]: Could not load asset: admin/static/js/15.7a23ef02.chunk.js
[11:04:58] [qtp1678647478-115/INFO] [webapi]: ERROR: null
[11:04:58] [qtp1678647478-103/WARN] [webapi]: Could not load asset: admin/static/js/0.15f566b5.chunk.js
[11:04:58] [qtp1678647478-103/INFO] [webapi]: ERROR: null
[11:04:59] [qtp1678647478-115/WARN] [webapi]: Could not load asset: admin/static/js/16.95e087fa.chunk.js
[11:04:59] [qtp1678647478-115/INFO] [webapi]: ERROR: null
[11:05:00] [qtp1678647478-103/WARN] [webapi]: Could not load asset: admin/static/js/8.036da3a6.chunk.js
[11:05:00] [qtp1678647478-103/INFO] [webapi]: ERROR: null
[11:05:04] [qtp1678647478-115/WARN] [webapi]: Could not load asset: admin/static/js/12.63c6205f.chunk.js
[11:05:04] [qtp1678647478-115/INFO] [webapi]: ERROR: null
[11:05:14] [qtp1678647478-103/WARN] [webapi]: Could not load asset: admin/static/js/9.c799ea69.chunk.js
[11:05:14] [qtp1678647478-103/INFO] [webapi]: ERROR: null
[11:05:15] [qtp1678647478-69/WARN] [webapi]: Could not load asset: admin/static/js/10.411df28a.chunk.js
[11:05:15] [qtp1678647478-69/INFO] [webapi]: ERROR: null
[11:07:57] [qtp1678647478-69/WARN] [webapi]: Could not load asset: admin/static/js/19.e5bfd641.chunk.js

It works for me, so my first guess would be that this is a caching issue from the browser.
Can you try using another browser and/or a private session? You can also use shift-releod to make sure the browser isn't caching any files

Worked like a charme!
Sorry that i bothered you -.-

No problem, dont worry


Create Typescript definition file

It would be really nice to have a Typescript definition file for redux at DefinitelyTyped

@pdeva they already has one https://github.com/borisyankov/DefinitelyTyped/blob/master/redux/redux.d.ts
I have a plan to use redux with TypeScript, so I'm making more complete .d.ts file right now.

@pdeva Is that file sufficient? I'm not a TS user yet.

Closing as duplicate of #206.

the current typescript definition does not contain a declaration for the compose method which seems to be imported and used in the redux-devtools example code her:
https://github.com/gaearon/redux-devtools

Indeed, it's missing. For 1.0, I don't think it's worth adding (signature changed since), but for 2.x, compose should match _.compose from Lodash.. I think. Feel free to make a PR to DefinitelyTyped.

I just created the pull request for this:
https://github.com/borisyankov/DefinitelyTyped/pull/5796

Please help review the new official typings in https://github.com/reactjs/redux/pull/1413.


Issue159 open file whilst current file is not saved

Codecov Report

Merging #161 (d359ef1) into main (77473fa) will decrease coverage by 0.02%.
The diff coverage is 98.11%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
@@            Coverage Diff             @@
##             main     #161      +/-   ##
==========================================
- Coverage   99.79%   99.77%   -0.02%
==========================================
  Files         107      108       +1
  Lines        6282     6318      +36
==========================================
+ Hits         6269     6304      +35
- Misses         13       14       +1

Files
Coverage Δ

ScenarioGUI/gui_classes/gui_combine_window.py
100.00% <100.00%> (ø)

...s/test_main_window_functions/test_new_save_load.py
100.00% <100.00%> (ø)

ScenarioGUI/gui_classes/translation_class.py
0.00% <0.00%> (ø)


ARTEMIS-3117 Provide CachingOpenSSLContextFactory

to mitigate performance degradation in JDK 11 during TLS connection initialization.
See https://issues.apache.org/jira/browse/ARTEMIS-3117
This is an alternative to https://github.com/apache/activemq-artemis/pull/3456 based on feedback by @franz1981
This PR introduces an additional SSLContextConfig object that can be passed around instead of having to provide 6-7 parameters on each method invocation throughout the call chain.

@ehsavoie, can you review this please to make sure it's not going to break any of the integration you implemented originally?

@jbertram @ehsavoie I have two questions:

why was the SSLContextFactory lookup implemented via a ServiceLoader and using a priority-based selection algo. This seems unnecessarily complicated. why was it not implemented in a way that e.g. the fully qualified class of the context factory to be used can be specified in the transport settings of the broker.xml instead?
why is CachingSSLContextFactory holding the cache in a static map and not an instance field? https://github.com/apache/activemq-artemis/blob/52263663c48082227916cc3477f8892d9f10134b/artemis-core-client/src/main/java/org/apache/activemq/artemis/core/remoting/impl/ssl/CachingSSLContextFactory.java#L35

Is there any good reason not enable SSL context caching by default? Esp. since Artemis will require Java 11 soon where SSL context is significantly more expensive.

The rationale for not using caching by default was simply to avoid changing the default behavior as users can be sensitive to that. Moving to Java 11 may change that. At the very least we should call this out in the upgrade documentation.

Great work! Thanks again, @sebthom.


Complete minimal bundle.json that needs no fixup

Hmm, looks like that bundle is deliberately designed to need a fixup! Will add a separate file.

Would it make sense to add a note in the doc as to how the files should be used?
Thanks!

Sure! Do you mean the README? Where specifically do you think would be best?

@trishankatdatadog can you rebase your PR 🙏 ?

@silvin-lubecki Is this ok now?

The build failure is because if #98, I still haven't figured out the reason for it, but it is definitely not introduced by this PR.


Fix undo redo stops when copy paste / drop creates a new file

@jrieken To get undo/redo working when pasting creates a new file, I had to combine the workspace edit so that we make a single call to the BulkEditService. This still results into two undo/redo stops being created: the top one for adding the text to the file, and the second one for creating the file. Is there a way to combine these two to a single undo/redo stop?

@mjbvz I believe the undoRedoGroupId can help but I need to recall where to get one from and if that actually works...


onDrag not called when remove a finger

First, thanks for all your work.
I have a little issue on the lib : If I drag an item with two fingers, onDrag is called (perfect for my usecase) but when i remove one  finger (there is still one finger moving on the item), the function onDrag is not called anymore. If i put two fingers again on the item, onPinch is called but not onDrag.
Thank you.

Thanks! Well, in theory onDrag shouldn’t trigger with two fingers... Let me check what happens there. You need two fingers padding + pinching, is that it? That might be a bit complex to handle and would add a lot of logic to the lib I’m afraid.

Wow you are really fast :)
If draging is not working with more than one finger it's ok i can handle it but in this case, if we pass from two finger to one finger onDrag function should fire ?

Hmmm onDrag should only fire onTouchStart or onMouseDown so I don’t think it should trigger...

(I keep checking for react-spring to update before I go to sleep ;)

Hey @minnits!
So I just checked and drag won't start if there's more than 1 finger on the target.
What happens though is that if your second finger isn't detected (ie it is indeed touching the screen but isn't touching the target although it might seem very close to it), the drag will start.
The element target is only responsible for initiating the drag, future touchMove and touchEnd events are then delegated to the window, which means that the second, non originally-detected finger, is tracked by the window.
The dragEnd event is triggered on touchEnd on the window element, but it doesn't check how many fingers are left on screen. Meaning that if any of your fingers are lift up during the drag, the drag will stop even though you still have a finger in contact with your target element.
So I guess this boils down to this:

Is this an acceptable behavior? I would say yes, but it can be improved in making non-initiating touches irrelevant for future interactions.
Should the drag NOT start if two touches are detected on screen (whether on target or not)? This would require adding a global window listener, which might be a bit of an overkill within the scope of this lib.
Should there be an option to let users pan with two fingers while being able to pinch? you tell me, but this would require a significant amount of logic to detect a  drag from a pinch if both need to respond to two fingers.

Hi @dbismut, maybe i'm doing something wrong on my side but drag works with more than one finger on the target, i made a small exemple here using spring example : https://codesandbox.io/s/hopeful-waterfall-s4ccr?file=/src/index.js
I can drag with 1/2/3 fingers, with fingers on the target.
I think when a finger is detected on the target, drag start and then active the drag on the window. After that the second point is detected on the target, drag is already declared on the window so it is not start again but not canceled too that's why we can drag with more than one finger in my opinion.
I see an other limitation of the lib, we can't interact with two items at the same time (drag two items) that's a problem too for me. Unfortunately I think i need to go deeper in the js touchevent to get it working as i want :/
Ps: I saw you are french i'm too ;)

Ok let me import this into my examples locally so I debug this. Indeed, interacting with two targets should be possible within the scope of this lib.

@minnits ok so it happens when the second finger touches the element *after* the first touch is registered. Let me see how I can fix this, possibly in a future release.

Here is a simplified sandbox for reference: https://codesandbox.io/s/wild-grass-71o9d

Hey @minnits try this https://urwww.csb.app/ which pulls PR #164 and that allows to divs to be dragged independently from each other.
I still need to fix something with pinching but that's closer to what you were expecting right?

@dbismut nice, possible to pinch the two items at the same time too ?

You mean with four fingers?

yes i mean one hand with two finger on one item and one hand with two fingers on the second

😅 that’s a tough one for the scope of this lib. Out of the top of my head it would probably require the two touches to start inside the component element (which is a strong constraint for small targets). Or possibly to have at least one one target and the other one close enough. I’ll have a shot over the week-end.

lol, yes two fingers must start on the item and interact only with this item (with the card example you can easily put two fingers on the frame). I'm used to C++ development, touch are handle like this in components. Last week, I achieve to make a working demo with angular and hammer.js corresponding to this behavior and i'm trying to do the same with React because i prefer React :). Don't tie yourself in knots for that ^^

@minnits finally got the time to have a look at this, turns out it was simpler than expected, using targetTouches instead of touches did the trick. Have a look at updated:  https://urwww.csb.app/

@dbismut nice that's exactly what i need ! How can i use it ? I need to link a special package like you did in your demo ? Any chance that these new changes take place in the release library ?
Thank you :)

Yes for the moment it’s only available from the PR #164
I’m not sure when it will be ready as @thephoenixofthevoid is performing some structural changes. We’ll also release a beta first as it includes some breaking changes that may cause some trouble in some situations.

@dbismut everything works perfectly in my app thanks a lot :)


Travis container infrastructure

This should speed up travis builds. An update of the mock library also broke all python2.6 builds.

:shipit:


Prepare release of 2021.03.25-rc2

:notebook_with_decorative_cover: Description
This is in preparation for the 2nd release candidate for next week's release. We fixed a few crucial bugs in the meantime. To be merged after #1473.

This needs a rebase now.


 Unfortunately, I have no idea why. Is there some debug mode that I can turn on?
I'm using OSX 10.10 with the latest Node.js and NPM and dependencies as of today.
All I can say is that I'm using Testem like that and I only have 8 tests that don't do much:
new Testem().startDev({
    test_page: "framework/test/index.mustache",
    launch_in_dev: ["PhantomJS"],
    proxies: { "/api": { target: "http://localhost:80"} },
    css_files: [
        "tmp/sass_compiler-tmp_cache_dir-*/styles/screen.css",
        "tmp/sass_compiler-tmp_cache_dir-*/framework/styles/screen.css"
    ],
    src_files: [
        "node_modules/jasmine-ajax/lib/mock-ajax.js",
        "tmp/concat-tmp_dest_dir-*/assets/app.js",
        "testem/setupIntegration.js",
        "tmp/coffee_script_filter-tmp_dest_dir-*/integrationTests/**/*.js"
    ]
});

I have turned on debugging. Here's the complete Testem.log:
  1 info Test'em starting...
  2 info Seeking for config file...
  3 info Seeking for config file...
  4 info Hook before_tests started
  5 info Hook before_tests finished
  6 info Launching PhantomJS
  7 info Process PhantomJS already killed.
  8 info spawning: phantomjs - ["/Users/alex/Development/testem/assets/phantom.js","http://localhost:7357/83"]
  9 info New client connected: PhantomJS 2.0 83
 10 info tmp/coffee_script_filter-tmp_dest_dir-NjZSFsa9.tmp/integrationTests/articleSpec.js changed (enabled).


Add new client

As a user I can so that I can find him/her anytime I want

Already Implemented in AB3.


Fix Remove-DbaDatabase - RESTORING databases

Added a verification that the database is ONLINE before running ALTER DB SET SINGLE_USER

Type of Change

[x] Bug fix (non-breaking change, fixes #2035)
[ ] New feature (non-breaking change, adds functionality)
[ ] Breaking change (effects multiple commands or functionality)
[x] Ran manual Pester test and has passed (`.\tests\manual.pester.ps1)
[x] Pester test is included

Purpose
Fixing #2035
Approach
Adding if exists (select * from sys.databases where name = 'db' and status = 0) to check if the database is online and thus should be put into a single_user mode.
 Will let the tests run and merge. I did have to change your PR to commit to development instead of mater. right now, I merge so often that it's not a big deal but it may cause a conflict in the future.

@potatoqualitee not a big deal :blush: I'll make sure to push into the dev branch next time

It failed but on the credential. It's interesting, appveyor fails far less at night. We had a streak of green there. Either way, thank you!


openxr-loader: 1.0.9 -> 1.0.10

Semi-automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/KhronosGroup/OpenXR-SDK-Source/releases.
meta.description for openxr-loader is: "Khronos OpenXR loader"
meta.homepage for openxr-loader is: "https://www.khronos.org/openxr"
meta.changelog for openxr-loader is: ""
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

0 of 0 passed binary check by having a zero exit code.

0 of 0 passed binary check by having the new version present in output.

found 1.0.10 with grep in /nix/store/hkgw1qhnw055f7qql8xfw7wwbvf0ijmy-openxr-loader-1.0.10

directory tree listing: https://gist.github.com/153764a7d480e19a5cbbd35ae0ac17e7

du listing: https://gist.github.com/f6828ad56c0dc5a03db11457e1bfb03e

Rebuild report (if merged into master) (click to expand)

3 total rebuild path(s)

1 package rebuild(s)

1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
0 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
openxr-loader

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/hkgw1qhnw055f7qql8xfw7wwbvf0ijmy-openxr-loader-1.0.10 \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(r-ryantm's Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A openxr-loader https://github.com/r-ryantm/nixpkgs/archive/cf6e8ac128cfd91cffe0db880c97e97f986539fa.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/hkgw1qhnw055f7qql8xfw7wwbvf0ijmy-openxr-loader-1.0.10
ls -la /nix/store/hkgw1qhnw055f7qql8xfw7wwbvf0ijmy-openxr-loader-1.0.10/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review 1

1 package built:

openxr-loader

Maintainer pings
cc @ralith for testing.

@GrahamcOfBorg build openxr-loader


Simplify button macro

Currently there's a mix of buttonStyle, type, submitType and variants params, which could be aligned so all correct attributes and classes are applied when just the variant is set.
Can buttonContext and newWindowDescription also be merged? No (19/07)

Needs to be done before REACT work

Includes #2047


cherrypick: port resume dialog fix from .net (#3525)

Fixes #3524

Pull Request Test Coverage Report for Build 723370315

0 of 0   changed or added relevant lines in 0 files are covered.
218 unchanged lines in 5 files lost coverage.
Overall coverage increased (+0.01%) to 84.958%

Files with Coverage Reduction
New Missed Lines
%

libraries/botbuilder-lg/src/templateExtensions.ts
1
84.48%

libraries/botbuilder-dialogs-adaptive/src/input/inputDialog.ts
8
89.04%

libraries/botbuilder-core/src/skills/skillConversationIdFactory.ts
9
17.39%

libraries/botbuilder-dialogs/src/skillDialog.ts
14
84.66%

libraries/botbuilder-dialogs-adaptive/src/adaptiveDialog.ts
186
38.7%

Totals

Change from base Build 720051946:
0.01%

Covered Lines:
18902

Relevant Lines:
21190

💛  - Coveralls


Corrupted indentation in "Files Changed" section of a pull request

Gitea version (or commit ref): cd8cdbd
Git version: 2.21 on client (don't know what's on try.gitea but it's irrelevant)
Operating system: linux
Database (use [x]):

[ ] PostgreSQL
[ ] MySQL
[ ] MSSQL
[x] SQLite

Can you reproduce the bug at https://try.gitea.io:

[x] Yes (https://try.gitea.io/gavlig/indent_bug/pulls/1/files)
[ ] No
[ ] Not relevant

Log gist:

Description
Diff viewer(Files Changed) for pull requests corrupts indentation with "+-" signs. I don't know what would be a proper fix for this, but just removing them already solves the issue for me. I guess those can be added in the same column where the line numbers are. If that's an acceptable change i could make a PR for that
Screenshots

Here i manually removed "+" signs for the code to become aligned

Viewing file also does ident same as in diff: https://try.gitea.io/gavlig/indent_bug/src/commit/eb951aee841acd700b2d51a6c296e592c1dedb34/main.cpp

So the reason it's still indented is this issue: https://github.com/go-gitea/gitea/issues/5596
but it's a different bug


Fix typo in scrollTo documentation

Looks like there was a copy/paste error that duplicated a couple lines and added an extra nested ul element

Thank you @chrisjstott!


Minor changes to adopt to "outdated" information

Fixed a broken link, since (at least for me) the page wasn't loading with the additional last /
Adjusted the uml to be consistent with the actual packages
Adjusted the uml, so ICNDBApi's getRandomJokes returns a joke-array instead of a list of jokes

Besten Dank!


Unable to stay logged in to Gratipay.com with multiple devices

This isn't a high priority, but I figured I'd log it since I couldn't find an existing issue.
With pretty much any other website with logins like Twitter, GitHub, facebook, etc., I can stay logged in on multiple devices (computers, smartphones, etc.).
This doesn't work on Gittip.com. I have two devices, and whenever I login to Gittip.com on one, it signs me out of the other. Logging back in is as easy as clicking on the "login with..." link once (so no passwords to enter), but until I do that, I see the anonymous version of Gittip.com.
If possible, this should be fixed. For people who check Gittip.com from multiple devices, it can cause confusion if they see the anon version instead of their personalized one.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Bump in 2016.

Closing in light of our decision to shut down Gratipay.
Thank you all for a great run, and I'm sorry it didn't work out! 😞  💃


Dupe

https://cdn.discordapp.com/attachments/1267121404193804329/1296151046820724746/Screen_Recording_20241013_221755_YouTube.mp4?ex=67113e3a&is=670fecba&hm=bd5af28e68ff8f897b287137bb4b5a325315e8771f409c6967b63c2537867de0&

This is a fake video, we saw the original video, it was advertising some modified ui utils mod (it was an obsfucated jar, probably a virus)
This is also way to simple for it to work, they essentially just dropped an item and closed the shulker. That will not duplicate items.

Okey, thanks for the quick reply. Sorry for the misunderstandings.


equivalent function SQL Server's TRANSLATE() to in Presto

I need to translate the special characters (in Portuguese language) of a string column into 'raw' characters, using Amazon Presto. In SQL Server, I could do that using the TRANSLATE function:
select
city_name,
translate(city_name,'áéíóúÁÉÍÓÚäëïöüÄËÏÖÜâêîôûÂÊÎÔÛãẽĩõũÃẼĨÕŨ','aeiouAEIOUaeiouAEIOUaeiouAEIOUaeiouAEIOU') as cityname_raw
FROM cities

That would return exactly what I need:
city_name
Goiânia
São Paulo
Palhoça
Várzea Paulista
city_name_raw
Goiania
Sao Paulo
Palhoca
Varzea Paulista
However, I didn't find an equivalent function in Presto. Could it be developed?
I realize there is a workaround using several nested replaces, but translate() would be better.

https://github.com/apache/hive/blob/master/ql/src/java/org/apache/hadoop/hive/ql/udf/generic/GenericUDFTranslate.java

Going to close this issue since the function was implemented in #4080


github.com/julienschmidt/httprouter

I tried the "Usage" sample code on the home page of this repo exactly as is, but using httprouter instead of http.NewServeMux(). I also added a second handler but it cannot read any session variable which is set from the first handler. Is this a known issue?

If ound the answer. The session cookie is not being written by the browser if the domain is localhost, so you need to set Domain="" and Path="/" in session.Options after you create the store:
store := cookiestore.New([]byte("my_secret"))

// Set a 20 minute session timeout using MaxAge
store.Options(sessions.Options{
	MaxAge: 1200,
	Domain: "",
	Path:   "/",
})


Transform method doesn't get triggered

Hi there,
I am using Java as backed, pagination is handled by Spring, so data needs to be transformed to be displayed properly in the table. Following instructions here,  I added a transform method to translate the data I receive to the data vuetable understand. As far as I understand, the transform method should be triggered to build the table but nothing happens and I get an error because the pagination-path is not found. The code is as follows:

Playes

          <vuetable
              api-url="/api/players"
              table-wrapper="#content"
              data-path="mydata"
              pagination-path="pagination"
              :fields="columns"
          ></vuetable>

new Vue({
  el: '#app',
  data: {
    columns: ['name', 'games', 'minsPlayed' ]
  },
  methods: {
    transform: function(data) {
      console.log("DATA " + JSON.stringify(data));

      var transformed = {}

      transformed.pagination = {
        total: data.totalElements,
        per_page: data.size,
        current_page: data.number,
        last_page: data.totalPages,
        from: data.from,
        to: data.to
      }
      transformed.mydata = []

      for (var i=0; i < data.length; i++) {
        transformed.data.push({
          player.name: data[i].player.name,
          games: data[i].games,
          minsPlayed: data[i].minsPlayed
        })
      }
    }
  }
})

vue.js, resource and vue-table are added from CDN
And the error I get:

vuetable: pagination-path "pagination" not found. It looks like the data returned from the sever does not have pagination information or you may have set it incorrectly.
(anonymous) @ vue-table.min.js:1

The transform function should return the transformed object. The example in the wiki is also missing this. Sorry for that.


Config flow deprecation warning and start add-on error

What version of Music Assistant has the issue?
2.0.2
What version of the Home Assistant Integration have you got installed?
2024.5.1
Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

[X] Yes

The problem
I noticed a deprecation warning with a fresh setup, a little later I got an error stating the add-on coudn't be started.
Went into settings/add-on's and the MA add-on was running fine. Maybe related to the missing progress task in the warning
How to reproduce
Fresh install of integration without a run in by add on
Music Providers
Na
Player Providers
Na
Full log output
The warning:
Logger: homeassistant.data_entry_flow
Source: data_entry_flow.py:817
First occurred: 21:20:28 (1 occurrences)
Last logged: 21:20:28

custom_components.mass.config_flow::ConfigFlow calls async_show_progress without passing a progress task, this is not valid and will break in Home Assistant Core 2024.8. Please report it to the custom integration author

And the error
This error originated from a custom integration.

Logger: custom_components.mass
Source: custom_components/mass/config_flow.py:167
integration: mass (documentation, issues)
First occurred: 21:25:07 (1 occurrences)
Last logged: 21:25:07

Failed to start MusicAssistant Server add-on: timeout

Additional information
No response
What version of Home Assistant Core are your running
2024.5.3
What type of installation are you running?
Home Assistant OS
On what type of hardware are you running?
Raspberry Pi

Can somebody reproduce this or was this just a random fluke once ?

I think this issue is related: https://github.com/music-assistant/hass-music-assistant/issues/2445

The addon manager is now removed from the HA integration so this issue is now obsolete.


[Extension Bug] JetBrains Toolbox Recent Projects is not working

Extension – JetBrains Projects

Author: @gdsmith

Description
Hi, I want to use RayCast to quickly open my JetBrains Projects through my toolbox. I tried to follow all instructions, changed the path and toggled the scripts on and off, but still nothing.

More info:

My JetBrains IDEs are installed in /Applications
Toolbox Version: JetBrains Toolbox 1.22.10970, macOS 12.1
Raycast Version: 1.26.3
Calling the ides through the terminal (e.g. webstorm) works fine

Same problem.

I actually fixed it: https://github.com/mallowigi/raycast-jetbrains-projects
I'm just too lazy to do a clean PR, and besides the author doesnt seem to care anyway.

I actually fixed it: https://github.com/mallowigi/raycast-jetbrains-projects
I'm just too lazy to do a clean PR, and besides the author doesnt seem to care anyway.

@mallowigi Accept my apologies, this had slipped my mind over the holiday period, my initial suspicion was that it was a version issue, but I got slightly sidetracked with fixing my dev environment after upgrading to the latest MacOS.
Could you perhaps help me pick through the code changes you made to get a PR out? It looks like you needed to set a custom location for where JetBrains Toolbox was installed, is that correct?
@TomDeSmet maybe if you can confirm where you have installed JetBrains Toolbox to that could also help.

Oh that's great to hear. What I did is to add a new setting for the location of where the ides are installed. And because I saw that you assumed they would be installed in ~/Applications, I had to change the hardcoded string locations.
Also there was an issue with IntelliJ specifically as the app was called IntelliJ IDEA Ultimate but the product was IntelliJ IDEA (or something like that) so I made a replacements function for cases like these.

The other changes I made was to cleanup the project a bit by putting each react component in its own file, replace thenables by async await, change type to be Pascal case and other things like that. I wanted to have a "better fork" but I refrained at the last minute as it would mean I'd have to maintain it and I have no time to do so.

Both Toolbox and PHPStorm are installed in my applications folder. However, I created a new folder for the shell scripts location under my users root folder.

Do you both have something different for "Tools install location" here then:

Both Toolbox and PHPStorm are installed in my applications folder. However, I created a new folder for the shell scripts location under my users root folder.

Shell scripts folder can already be customised so I'm assuming either you didn't set that or the issue is related to the "Tools install location".

Yes, in my case it's /Applications

@mallowigi is that something you set or is that a new default for toolbox?

I set

I'm having the default, so /Users/tom/... as in the screenshot.

Shell scripts folder can already be customised so I'm assuming either you didn't set that

I did change this in the extension settings.

@mallowigi okay, not got IDEA ultimate, but will PR a fix for the custom "Tools install location" setting when I can.
@TomDeSmet what IDEs are you using? Can you provide a screenshot of the error you are getting?

Same error as in the original post.
I'm only using PhPStorm.

@TomDeSmet okay, seems like it's not finding the history files, any chance you can provide output for the following: find ~/Library/Application\ Support/JetBrains/Toolbox/apps -type f -name .history.json. Can you also confirm which versions of Toolbox / PhpStorm / MacOS you are on?

@mallowigi any chance you can check if #596 fixes your issues? Seems to work fine with IDEA Community Edition.

how do i check ? do i need to checkout ?

Yes, check out the branch locally and cd extensions/jetbrains folder, then it should just be a case of npm install and npm run dev (I'm assuming you have things set up correctly locally as you have your custom version working)

Ok, looks good

I do not get any output from find ~/Library/Application\ Support/JetBrains/Toolbox/apps -type f -name .history.json
I'm using Mac Big Sur 11.6, PhPStorm 2021.3 and JetBrains Toolbox 1.22.10970, macOS 11.6

The full path is this: /Applications/PhpStorm.app
I will wait for the new release :)

@TomDeSmet did you install PhpStorm via Toolbox? It looks like it's not where toolbox is saaying it should be…

No I didn’t. I installed toolbox just to be able to use your extension so after I installed php storm.

Okay, yes, you need to install PhpStorm via Toolbox for it to work correctly, sorry about that. I can maybe add some info on that to the error message for when it can't find the correct info…

Would it solve anything if I update PhPstorm using toolbox?

@TomDeSmet I think that would fix it

This did the trick. Tnx.

I have PhpStorm installed via toolbox but its not finding any projects

Hi, I faced the same problem.

and I checked my permission, looks like I have the permission
I have no idea what's wrong, if need any context just tell me, thanks help

Did you read the error description? You have to set the path to your shell
scripts in the extension settings.
On Sat, 11 Nov 2023, 15:21 Lindsay, @.***> wrote:

Hi, I faced the same problem.
[image: 截圖 2023-11-11 下午11 18 29]
https://user-images.githubusercontent.com/56778568/282250091-09c7f279-c035-4496-ad05-adc0c311e0f9.png
[image: 截圖 2023-11-11 下午11 18 44]
https://user-images.githubusercontent.com/56778568/282250096-d9dc8dc7-9df3-4ad3-a654-c6eff762855f.png
and I checked my permission, looks like I have the permission
I have no idea what's wrong, if need any context just tell me, thanks help
[image: 截圖 2023-11-11 下午11 19 56]
https://user-images.githubusercontent.com/56778568/282250133-27a826bc-dcbc-4da5-989f-e13d48d4b233.png
—
Reply to this email directly, view it on GitHub
https://github.com/raycast/extensions/issues/541#issuecomment-1806842793,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAG53F6PGZPJM2T4BVXF6A3YD6JWXAVCNFSM5KIXDEDKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBQGY4DIMRXHEZQ
.
You are receiving this because you were mentioned.Message ID:
@.***>

Did you read the error description? You have to set the path to your shell scripts in the extension settings.
…
On Sat, 11 Nov 2023, 15:21 Lindsay, @.> wrote: Hi, I faced the same problem. [image: 截圖 2023-11-11 下午11 18 29] https://user-images.githubusercontent.com/56778568/282250091-09c7f279-c035-4496-ad05-adc0c311e0f9.png [image: 截圖 2023-11-11 下午11 18 44] https://user-images.githubusercontent.com/56778568/282250096-d9dc8dc7-9df3-4ad3-a654-c6eff762855f.png and I checked my permission, looks like I have the permission I have no idea what's wrong, if need any context just tell me, thanks help [image: 截圖 2023-11-11 下午11 19 56] https://user-images.githubusercontent.com/56778568/282250133-27a826bc-dcbc-4da5-989f-e13d48d4b233.png — Reply to this email directly, view it on GitHub <#541 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG53F6PGZPJM2T4BVXF6A3YD6JWXAVCNFSM5KIXDEDKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOBQGY4DIMRXHEZQ . You are receiving this because you were mentioned.Message ID: @.>

That solved it for me. I was adding the path to my $PATH, I didn't realize it was a setting for the extension. The error description could maybe be worded better. Something like "Make sure the correct path to the shell scripts is set in the settings for this extension. The current path is /usr/local/bin."

@maxsoderquist that's pretty much what it already says, but with the caveat that you only need to do this if you have a custom path set, though there is a typo in there that may not have helped. Would the following work better for you?

If you have set a custom path for your shell scripts (in JetBrains Toolbox), you must also set that in the settings for this extension. This is currently set to /usr/local/bin.

@maxsoderquist that's pretty much what it already says, but with the caveat that you only need to do this if you have a custom path set, though there is a typo in there that may not have helped. Would the following work better for you?

If you have set a custom path for your shell scripts (in JetBrains Toolbox), you must also set that in the settings for this extension. This is currently set to /usr/local/bin.

Perfect! It was probably the typo that threw me.


ghjjk

Problem description
[this should explain why the current behavior is a problem and why the expected output is a better solution.]
Expected Output
Environment Information
Os, Python version, ...

dfjnko

hello


Updated babel installation instructions for Flow

updated how to install babel presets to use the newer namespace conventions that comes with newer versions of Babel, version 7.
My react app kept crashing when I tried installing Flow.
I have updated the docs on Flow's documentation, then I saw the same issue here.
Here is the PR on Flow's docs just in case - https://github.com/facebook/flow/pull/7856

💯


sbt proxy configuration problems

It seems that I have a problem configuring proxy for SBT. I tried the following methods
steps

Configured the following parameters in %SBT_HOME%\conf\stbconfig.txt:

-Dhttp.proxySet=true
-Dhttp.proxyHost=proxy_server
-Dhttp.proxyPort=proxy_port
-Dhttp.nonProxyHosts="localhost|<IP_ADDRESS>"
-Dhttp.proxyUser=username
-Dhttp.proxyPassword=password
-Dhttps.proxyHost=proxy_server
-Dhttps.proxyPort=proxy_port
-Dhttps.nonProxyHosts="localhost|<IP_ADDRESS>"
-Dhttps.proxyUser=username
-Dhttps.proxyPassword=password

I added the above parameters sbtopts file but didn't work.

I tried the solutions that said to pass the configurations in command line as environment variables ( JAVA_OPTS or SBT_OPTS) but it seems that it didn't worked for me.

problem
Unresolved dependencies) and/or warnings ( [warn] Your proxy requires authentication.)
The output of the sbt new scala/hello-world.g8 is:
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; sup
port was removed in 8.0
[info] Set current project to workspace (in build file:/D:/workspace/)
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: org.scala-sbt.sbt-giter8-resolver#sbt-giter8-resolver_2.12;0.1.3: Res
olution failed several times for dependency: org.scala-sbt.sbt-giter8-resolver#s
bt-giter8-resolver_2.12;0.1.3 {compile=[default(compile)]}::
[warn]  sbt-releases-repo: unable to get resource for org.scala-sbt.sbt-giter8-r
esolver#sbt-giter8-resolver_2.12;0.1.3: res=http://repo.typesafe.com/typesafe/iv
y-releases/org.scala-sbt.sbt-giter8-resolver/sbt-giter8-resolver_2.12/0.1.3/ivys
/ivy.xml: java.net.ConnectException: Failed to connect to repo.typesafe.com/34.2
06.225.108:80
[warn]  sbt-plugins-repo: unable to get resource for org.scala-sbt.sbt-giter8-re
solver#sbt-giter8-resolver_2.12;0.1.3: res=http://repo.scala-sbt.org/scalasbt/sb
t-plugin-releases/org.scala-sbt.sbt-giter8-resolver/sbt-giter8-resolver_2.12/0.1
.3/ivys/ivy.xml: java.net.ConnectException: Failed to connect to repo.scala-sbt.
org/<IP_ADDRESS>:80
[warn]  maven-central: unable to get resource for org/scala-sbt/sbt-giter8-resol
ver#sbt-giter8-resolver_2.12;0.1.3: res=http://repo1.maven.org/maven2/org/scala-
sbt/sbt-giter8-resolver/sbt-giter8-resolver_2.12/0.1.3/sbt-giter8-resolver_2.12-
0.1.3.pom: java.net.ConnectException: Failed to connect to repo1.maven.org/151.1
01.44.209:80
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[error] java.lang.RuntimeException: Retrieval of org.scala-sbt.sbt-giter8-resolv
er:sbt-giter8-resolver:0.1.3 failed.
[error]         at scala.sys.package$.error(package.scala:27)
[error]         at sbt.TemplateCommandUtil$.classpathForInfo(TemplateCommand.sca
la:119)
[error]         at sbt.TemplateCommandUtil$.infoLoader(TemplateCommand.scala:81)

[error]         at sbt.TemplateCommandUtil$.$anonfun$run$1(TemplateCommand.scala
:48)
[error]         at sbt.TemplateCommandUtil$.$anonfun$run$1$adapted(TemplateComma
nd.scala:47)
[error]         at scala.collection.LinearSeqOptimized.find(LinearSeqOptimized.s
cala:111)
[error]         at scala.collection.LinearSeqOptimized.find$(LinearSeqOptimized.
scala:108)
[error]         at scala.collection.immutable.List.find(List.scala:86)
[error]         at sbt.TemplateCommandUtil$.run(TemplateCommand.scala:47)
[error]         at sbt.TemplateCommandUtil$.runTemplate(TemplateCommand.scala:34
)
[error]         at sbt.TemplateCommandUtil$.$anonfun$templateCommand$2(TemplateC
ommand.scala:17)
[error]         at sbt.Command$.$anonfun$applyEffect$4(Command.scala:125)
[error]         at sbt.Command$.$anonfun$applyEffect$2(Command.scala:121)
[error]         at sbt.MainLoop$.processCommand(MainLoop.scala:121)
[error]         at sbt.MainLoop$.$anonfun$next$2(MainLoop.scala:105)
[error]         at sbt.State$$anon$1.runCmd$1(State.scala:227)
[error]         at sbt.State$$anon$1.process(State.scala:233)
[error]         at sbt.MainLoop$.$anonfun$next$1(MainLoop.scala:105)
[error]         at sbt.internal.util.ErrorHandling$.wideConvert(ErrorHandling.sc
ala:16)
[error]         at sbt.MainLoop$.next(MainLoop.scala:105)
[error]         at sbt.MainLoop$.run(MainLoop.scala:98)
[error]         at sbt.MainLoop$.$anonfun$runWithNewLog$1(MainLoop.scala:76)
[error]         at sbt.io.Using.apply(Using.scala:22)
[error]         at sbt.MainLoop$.runWithNewLog(MainLoop.scala:70)
[error]         at sbt.MainLoop$.runAndClearLast(MainLoop.scala:52)
[error]         at sbt.MainLoop$.runLoggedLoop(MainLoop.scala:37)
[error]         at sbt.MainLoop$.runLogged(MainLoop.scala:29)
[error]         at sbt.StandardMain$.runManaged(Main.scala:104)
[error]         at sbt.xMain.run(Main.scala:71)
[error]         at xsbt.boot.Launch$$anonfun$run$1.apply(Launch.scala:109)
[error]         at xsbt.boot.Launch$.withContextLoader(Launch.scala:128)
[error]         at xsbt.boot.Launch$.run(Launch.scala:109)
[error]         at xsbt.boot.Launch$$anonfun$apply$1.apply(Launch.scala:35)
[error]         at xsbt.boot.Launch$.launch(Launch.scala:117)
[error]         at xsbt.boot.Launch$.apply(Launch.scala:18)
[error]         at xsbt.boot.Boot$.runImpl(Boot.scala:41)
[error]         at xsbt.boot.Boot$.main(Boot.scala:17)
[error]         at xsbt.boot.Boot.main(Boot.scala)
[error] Retrieval of org.scala-sbt.sbt-giter8-resolver:sbt-giter8-resolver:0.1.3
 failed.

notes
Tried also with sbt 1.0.0 and I also have the above mentioned error. Is not a proxy configuration problem because the same info( proxy server/port, username/password) I use for another tool and everything works excellent.
sbt version: 1.0.2

i have the same issue, any update, very frustrated...

me too

i found this, and hopefully is useful to everyone. the solution of using ~/.sbt/repositories posted by @bignano works for me

+1 Me too

The same problem also for me

Same. Any Update?

+1

Already set SBT_OPT env, and my proxy works well for other tools...
Still get the following error:
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  ::          UNRESOLVED DEPENDENCIES         ::
[warn]  ::::::::::::::::::::::::::::::::::::::::::::::
[warn]  :: org.scala-sbt#compiler-bridge_2.12;1.1.0: public: unable to get resource for org/scala-sbt#compiler-bridge_2.12;1.1.0: res=https://repo1.maven.org/maven2/org/scala-sbt/compiler-bridge_2.12/1.1.0/compiler-bridge_2.12-1.1.0.pom: java.io.IOException: Failed to authenticate with proxy

+1

me too
I saw the post someone wrote his java command was pointed to jre not jdk and it was reason proxy authentication failed. So I checked my java it was no problem.
Finally I gave up and got through it by setting local proxy to bridge PROXY with authentication.
I spent almost 2 days for this issue, very frustrated also

@aishinoharac Using Fiddler or something similar?

@SIkebe Squid. easier than Apache i think. only 1 minute to set up.

@ardeleanasm Thanks!

I set up mitmproxy between myself and my proxy to see the traffic flow. I was careful to set the settings above and the maven proxy settings and ensured there were no env vars. When I do an 'sbt new' on a project that requires fetching some maven dependency, I see the github traffic go through mitmproxy fine, but then sbt exits with:
Unknown exception: Connection to https://repo1.maven.org refused
There is no record of it going through the proxy! Some how it is ignoring the proxy settings.

Any update on this issue?

@eed3si9n Thanks! -Dsbt.gigahorse=false worked for me :smile:

@SIkebe Thanks for the confirmation.

You can also add updateOptions := updateOptions.value.withGigahorse(false) to build.sbt


windowsfix for np.int64

changed two lines of code for windows fix to set standard dtype of np.int64, which has been a float on windows

the issue with the testing loose pip installation seems to be a general issue in the development branch correct? How should we proceed so that we can merge this PR to support the memory mapped temp arrays also on windows? Anything that still needs to be done within this PR?

@sophiamaedler  Done


develop changes

embed initial commit

changes for embed

walk

refactor

refactor

filepath join

filepath dir

get relative path

refactor struct

embed test

removing statik dependency

missed a print

missed a print

remove commented line

removed file

remove test dir

Merged using https://github.com/countertenor/mozart/pull/69


Problems with Rstudio overall

I am having a lot of issues with my Rstudio overall (It keeps crashing on me. Every time i open it—even after removing objects, quitting, and restarting my laptop— I have some files in my environment that I do not even know where they come from. It runs codes sometimes and does not at other times without me making any changes at all)
I had already committed and pushed my part1. But now it is giving me trouble to rerun the codes even though I have made absolutely no changes to my part 1.  First it was giving me error when I was trying to create a function for scoring. After a few restarts, it now gives me error before even getting there. I try to split my data into train and test:
partition <- titanic2_tbl %>%
mutate(Survived = as.numeric(Survived)) %>%
select(Survived, Pclass, Sex, Age) %>%
sdf_partition(train = 0.75, test = 0.25, seed = 1234)
I get the following error.
"Error in (function (classes, fdef, mtable) : unable to find an inherited method for function ‘select’ for signature ‘"tbl_spark"
I have all my libraries loaded and even packages updated. My problems show up, come and go so randomly that I don't know how to submit my homework!

@golnar-bt could you share your sessionInfo()?

@golnar-bt
maybe you load package is wrong.

Thank you. There was something wrong with Rstudio on my laptop. I had to take it in to IT bar on my campus. Thank you all for responding !


Linux improvements

Improved installing instructions;
Improved error handling on Linux;
Implemented multiple retries on Linux in case of failure;
Improved overall api:

WireGuardFlutter is now a singleton. Use WireGuardFlutter.instance to get the current wireguard state;
vpnStageSnapshot is no longer a function. Use wireguard.vpnStageSnapshot getter to listen to the wireguard state;
removed unused parameters from functions;

Implement VpnStage enum that is used over strings.

hiI bruno, thank you for your PR

hi bruno, i get error for testing iOS.
_microtaskLoop (dart:async/schedule_microtask.dart:40:21)
_startMicrotaskLoop (dart:async/schedule_microtask.dart:49:5)
[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: type 'String' is not a subtype of type 'VpnStage'
WireGuardFlutterMethodChannel.vpnStageSnapshot. (package:wireguard_flutter/wireguard_flutter_method_channel.dart:16:48)
_MapStream._handleData (dart:async/stream_pipe.dart:213:31)


it8xxx2_evb: tests/kernel/sched/schedule_api/ assertion fail

Describe the bug
Can not run the test case of tests/kernel/sched/schedule_api/ on it8xxx2_evb board.
Please also mention any information which could help others to understand
the problem you're facing:

What target platform are you using? -> it8xxx2_evb
What have you tried to diagnose or workaround this issue?
The slice_ticks is equal to 1639 (t = 200, to_hz = 8192, off = 999, from_hz = 1000, (200x8192+999)/1000 = 1639) , but the assertion shows it should be an even number.

To Reproduce
Steps to reproduce the behavior:

west build -p always -b it8xxx2_evb tests/kernel/sched/schedule_api/
echo "intel@123" | sudo -S ~/itedlb4-linux-v104/ite -f build/zephyr/zephyr.bin -s check

Expected behavior
The test should pass
Impact
The test case fails in the daily test.
Logs and console output
                START - test_slice_reset
                ASSERTION FAIL [slice_ticks % 2 == 0] @ WEST_TOPDIR/zephyr/tests/kernel/sched/schedule_api/src/test_sched_timeslice_reset.c:146
                        timeslice in ticks much be divisible by two
                E:      a0: 00000004    t0: aaaaaaaa
                E:      a1: 00000092    t1: 10000000
                E:      a2: 00f02705    t2: aaaaaaaa
                E:      a3: 00f02700    t3: 00000020
                E:      a4: 00000020    t4: 00000001
                E:      a5: 00001880    t5: aaaaaaaa
                E:      a6: a0000000    t6: aaaaaaaa
                E:      a7: 00000000
                E:      ra: 80001f26
                E:    mepc: 80002e8e
                E: mstatus: 00001880
                E:
                E: >>> ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0
                E: Current thread: 0x80102508 (test_slice_reset)
                Caught system error -- reason 4 0
                Fatal error was unexpected, aborting...

Environment (please complete the following information):

OS: Ubuntu
Toolchain: zephyr-sdk-0.13.2
Commit SHA or Version used: 6e8cb0d1553a6ffde52f4e047c37c1cbfe23bd46

Additional context
None

This issue is discussing with<EMAIL_ADDRESS>He found that if we remove the assertion, the test can pass.
We do not know why the assertion is here.

@carlescufi Could you please change the label from Microchip to ITE? I made a typo in the issue title. The issue is only seen on ITE. Thanks.


[question] django-civil transition

Hi guys and gals!
I was curious, is there any road-map of transitioning from django-civil to this new package? I've looked around nublas but could not find much in terms of documentation / other notes.
Thanks!

Actually django-civil is actually not developed anymore, but some concepts from it are already inside nublas.
Documentation, notes, unit testing in nublas is a TODO, but since i'm alone on this project i need some help for sure.


SecretsManager: Add some error messages for BatchGetSecretValue

For the batch_get_secret_value call, adds error reporting for secrets that aren't found or those that are marked as deleted. These will be included in the format returned from the AWS call:
{
  'SecretValues': [],
  'Errors': [
    {
      'SecretId': 'secret-id-arn',
      'ErrorCode': 'ResourceNotFoundException',
      'Message': "Secrets Manager can't find the specified secret."
    }
  ],
  'ResponseMetadata': ...
}

I'd love to see this! What's the current state, @connor9? Can I somehow support?


Replace Font Request

Do not like the default Microsoft elegant black font, hope to provide font replacement function

@710848889 We don't have any plans to implement this option.


'IGListKit/IGListAdapterUpdateListener.h' file not found

I am trying to get started with IGListKit. I am trying to run the example and am stuck at a build error: 'IGListKit/IGListAdapterUpdateListener.h' file not found (see image).
All help is appreciated.
New issue checklist

[x] I have reviewed the README and documentation
[x] I have searched existing issues and this is not a duplicate

General information

IGListKit version: 3.1.1

iOS version(s): 9.0+

CocoaPods/Carthage version: 1.3.1

Xcode version: 9.1

Devices/Simulators affected: Y

Reproducible in the demo project? (Yes/No): Y

Related issues:

Debug information
# Please include debug logs using the following lldb command:
po [IGListDebugger dump]

Ran "pod update" in Examples-ios directory. Works fine now.

Gonna follow up on this, the whole project should be usable after cloning 🤔
Sent with GitHawk

Great. Let me know if I can do anything to help.

BTW - the Demos are super slick. I can’t wait to dive in and explore how to use in my apps.

Ran "pod update" in Examples-ios directory. Works fine now.
Remind "Could not find proper version of cocoapods (1.3.0) in any of the sources"


Type refinement for a key that is a string not working

// @flow

export type EnumType = { name: string, enumValues: Array<{ name: string }> };

export type Schema = { [key:string]: string|EnumType|Schema };

function f(schema: Schema) {
  const v: string|EnumType|Schema = schema["hello"];
  if (typeof v === "object" && typeof v.name === "string") {
    // The following should work, but produces an error
    (v: { name: string });
  }
}

The issue here is that Flow can't decide whether or not it's an EnumType or Schema at L11.
You can make it exclusive by doing the following:
export type Schema = { [key:string]: string|EnumType|Schema } & {name: void};

Unfortunately Flow doesn't have any concept or precedence that I know of that will help in this situation.

Shouldn't it be able to tell that no matter which it is, either could have name: string and so accessing name: string should be valid either way?

Flow knows it's a string, it just doesn't agree that v is a {name: string}. v could be a Schema, in which case v's name property has more possible type values & v itself has more properties.

Ok.  We tried if(v.enumValues instanceof Array) as well, but that fails because flow is currently resolving the recursive type to any, I think.


Azure libraries version 1.x

Azure core & azure identity (and maybe more) recently went to 1.x, while we are still at 0.x.
https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/azcore/go.mod
https://github.com/Azure/azure-sdk-for-go/blob/main/sdk/azidentity/go.mod
A user had an issue with using these new packages in conjunction with our code.
Moving to the new packages is actually a breaking change - since they require a minimum version of go 1.18

Hey Asaf, just a note on this:
The 1.x versus 0.x is just semantics.  azidentity relies on msal which is still at 0.x.  Moving to 1.x simply means that breaking changes require major version increases and change how you release code.  For some reason it makes people feel better to see a 1.x, but it can also lead to seeing projects do 1.x, 2.x, 3.x, 4.x.....  The decision to move is simply an internal decision on how much trouble you want to deal with on breaking changes and what it means to be 1.x for your team (supports some set of X capabilities).  The thing to remember is that moving to 1.x has real effects on how you manage your Go code afterwards.
But keeping version syncs with another package repo is probably unreasonable for kusto. If they have to go to a 2.0, should kusto do so even if it doesn't need it?  You may not want to upgrade to breaking releases when they do.  And that is something else to keep in mind, if they go to breaking releases and you are past 1.x, you have to bump major versions.
The go version to 1.18 should not be seen as a breaking change.  If you release a new version that requires 1.18, you simply should have to tick up the minor release .  You'd be adding non-breaking features that require a new version of Go.  Requiring a new version of the compiler should not require a major semantic version bump (for 1.x and up code) unless Go itself does a major semantic version upgrade.   All your previous client's code will continue to work, they simply require the new version of Go.  Otherwise when Go no longer supports a compiler version, you'd be upgrading major versions.
As a note, here is Go team's official support model:
Each major Go release is supported until there are two newer major releases.  We fix critical problems, including critical security problems, in supported releases as needed by issuing minor revisions (for example, Go 1.6.1, Go 1.6.2, and so on).
  It is probably time to move that marker up to 1.18 for the next release anyways.

@element-of-surprise
Thanks for the comment John.
I wanted to ask you about this scenario specifically, if a go module depends on this package, and unrelatedly on the azure 1.x package, would it really break our package?
Can't go handle our dependency and the module's dependency separately?

Conflicting Go versions required in go.mod will be resolved by taking the highest version in the dependency graph, I believe.
Examples with - or support for - azidentity rather than autorest would be desirable as autorest will go EOL in March 2023.
As seen here: https://azure.microsoft.com/updates/support-for-azure-sdk-libraries-that-do-not-conform-to-our-current-azure-sdk-guidelines-will-be-retired-as-of-31-march-2023/
As far as I'm aware, the list of supported Go libraries/SDKs doesn't include a data plane interface for querying Kusto, as this package does.
The list of 'supported' Go Azure libraries: https://azure.github.io/azure-sdk/#go

The newest version - 0.10.0 - uses azidentity and azcore at their newest versions. Closing.


Unable to sync gzipped assets to S3: Error: ETag does not match MD5 checksum

I have written the following code. I am trying to upload two folders to different paths parallely wherein one path is a subfolder of the other.
const uploadDir = (client) => new Promise((resolve, reject) => {

  const expiresDate = new Date();
  expiresDate.setFullYear(expiresDate.getFullYear() + 1);

  const params = {
    localDir: COMPRESSED_ASSETS_PATH,
    s3Params: {
      Prefix: 'path1',
      CacheControl: 'max-age=315360000, no-transform, public',
      ContentEncoding: 'br',
      Expires: expiresDate,
    },
  };
  const uploader = client.uploadDir(params);
  const paramsIE = _.merge(params, {
    localDir: `${COMPRESSED_ASSETS_PATH}-ie`,
    s3Params: {
      Prefix: `path1/folderName`,
      ContentEncoding: 'gzip',
    },
  });
  const uploaderIE = client.uploadDir(paramsIE);
  uploader.on('error', err => {
    console.error(`Unable to sync compressed assets to S3: ${err.stack}`);
    reject();
  });

  /* uploader.on('progress', () => {
    console.log('==> progress', uploader.progressAmount, uploader.progressTotal);
  }); */

  uploader.on('end', () => {
    console.log('==> ✅  All compressed assets uploaded to S3');
    resolve();
  });

  uploaderIE.on('error', err => {
    console.error(`Unable to sync gzipped assets to S3: ${err.stack}`);
    reject();
  });

  /* uploaderIE.on('progress', () => {
   console.log('==> progress', uploaderIE.progressAmount, uploaderIE.progressTotal);
   }); */

  uploaderIE.on('end', () => {
    console.log('==> ✅  All gzipped assets uploaded to S3');
    resolve();
  });
});

The uploads happen each time I run the code, but inspite of successful uploads sometimes randomly I get the error even though no changes are made:
Unable to sync gzipped assets to S3: Error: ETag does not match MD5 checksum

Same problem here, any news?


razzle-start-server-webpack-plugin: monitor.js -> Cannot find update.

🐛 Bug report
Not sure if this is a bug or a feature.
I was using v3.4.5 with the experimental features all enabled. Moving to v4.0.3 made the re-compilation of components (on change), real slow (it's a big project). It happens with or without react-refresh This is likely because of the new way of hot reloading as presented in razzle-start-server-webpack-plugin/src/monitor.js.
Current Behavior
Rebuilds unrelated modules.

Expected behavior
Rebuilding only changed modules.

Reproducible example

I will try to attempt to reproduce it in a fresh project.
Suggested solution(s)

Not sure if it's a bug or a feature. Would be awesome if you could provide an answer which explains why this message is shown in the latest but not in 3.4.5. Like I'm very curious about the motivation around this way of handling updates.
Additional context

Your environment

Software
Version(s)

Razzle
4.0.3

Razzle Plugins
css

Node
12.20.0

Browser

npm/Yarn
npm @ 6.14.8

Operating System
Linux/Ubuntu/PopOS

TypeScript
3.8.3

React
16.8.6

It is a new version of start-server plugin. May be a bug, HMR is finnicky.. Not sure how to fix this. :(

maybe hot is not set.. hm..

I feel like it might have to do with anonymous components.
I noticed that with 1 project @ razzle 3.4.5 hot reloads properly (a rather fresh project, soft page reloads). The project I upgraded from 3.4.5 to 4.0.3 is rather old and probably uses a lot of anonymous components. The old project is hard reloading pages on change @ razzle 3.4.5 (it does seem to compile faster as @ razzle 4.0.3).
I notice Next.js has a codemod to automatically name anonymous components (I don't use Next.js though and I doubt there is something for a default CRA):
https://nextjs.org/docs/advanced-features/codemods#name-default-component

Given the project isn't setup on a react-refresh proof way, I ended up disabling react refresh. Also I ensured only that only thread-loader + babel-loader are ran on the TypeScript files. Using this in combination with webpack 5 long term caching ended up to give a pretty similar recompile performance. As a bonus, start up time is way faster and bundle-analyzer works better (not sure if this is because of Webpack 5)


Add to Wikipedia

If this still works, you should add it to the literate programming tools on Wikipedia. There are probably more people out there who know markdown than know TeX.

Thanks, it still works, but isn't really something I ended up using much, due to it being a little less ergonomic than I'd like.

Useful for documenting experimental tasks.


Doc: How to know that a NuGet library supports .NET Core

We need a doc on this.
There already is some content that talks about it, but not a single topic dedicated to it.
This should be both:

I have the NuGet package.
I am browsing a NuGet feed (NuGet.org, VS Online, ...)

@kraigb would this be something that would be covered in the NuGet docs instead?

Yes, I think this would be appropriate under Finding and Choosing Packages, http://docs.nuget.org/ndocs/consume-packages/finding-and-choosing-packages. I'll create an issue in the NuGet repo for that.

Closed, as this will be handled in the NuGet Repo. See https://github.com/NuGet/Home/issues/4109


Apple Pencil use has interrupted line detection at start of freeform stroke

Preflight Checklist

[x] I agree to follow the Code of Conduct that this project adheres to.
[x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Describe the bug
The Apple Pencil (2 in this case) is very helpful for sketches; however, the ability to use it in freeform mode doesn't seem to work well. When you attempt to initiate a stroke it draws a very short line and then seems to stop accepting input from the pencil. If you start your stroke very, very slow then it seems that you can continue that stroke at a regular speed.
I've uploaded a video to Google Drive (link below) where you can see several attempted strokes that end up being very short lines, and then other strokes that were started very slowly and then are fully detected at a regular pace afterwards.
To Reproduce
Steps to reproduce the behavior:

Turn on freeform drawing.
Try to draw with an Apple Pencil.

Expected behavior
Apple Pencil strokes should convert into a full stroke in draw.io.
Screenshots
https://drive.google.com/file/d/1bgZdexVXN41_4a6BFLXBE8LLd_uliwde/view?usp=drivesdk
draw.io version (In the Help->About menu of the draw.io editor):

draw.io version 16.1.0

Desktop (please complete the following information):

OS: iPad OS 15.1
Browser: Chrome
Google Chrome | 96.0.4664.101 (Official Build) stable (64-bit)
OS | iOS 15.1
User Agent | Mozilla/5.0 (iPad; CPU OS 15_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/96.0.4664.101 Mobile/15E148 Safari/604.1

This will be fixed in the next release. As a workaround, try sketch.diagrams.net for now.


[Question] Generated by auto-changelog

How can I move Generated by auto-changelog. to end of generated file instead of default top location?

Use a custom template and just copy one of the default templates into your project, then you can edit it however you like!


Billing page MAU explanation is absent

This page seems to be the place that the docs should define exactly what a Monthly Active User (MAU) is.   But it has no definition - nor can I find one elsewhere in the docs.
e.g.   Do I get billed for multiple times per month for the same user authenticating multiple times - I assume not, but it is not stated.  Although I can find that each attempt at MFA is charged.
Do I get billed for failed authentication attempts?

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

ID: 10c6698d-da67-a802-3f77-ae8091ea4782
Version Independent ID: b5397a88-c4df-26d2-e9d2-29491d76ea00
Content: Billing model for Azure Active Directory B2C
Content Source: articles/active-directory-b2c/billing.md
Service: active-directory
Sub-service: b2c
GitHub Login: @msmimart
Microsoft Alias: mimart

@steverash Thank you for your feedback . We will investigate and update the thread.


need more examples

Is there any repo using ants as an example?
ants is an amazing package , though i feel it needs more documentation and examples

I believe ants is a crucial library with concise APIs, besides we do have documentation: https://pkg.go.dev/github.com/panjf2000/ants/v2

As for the users of ants： https://github.com/panjf2000/ants#-user-cases


Create turkish.dart

Hello there! thank you for contributing!
just one more little change in lib/time_ago_provider.dart, Turkish language should be exported. after that its ready to merge and publish.


Updated tablets_per_node to include "copying"

Load balancer puts tablets in "Copying" state.
Updated tablets_per_node view to show which nodes have tablets in that state
This satisfies issue#152

Previous comments have been resolved with new checkins.


Export only explicitly exported identifiers

Only export identifiers set in the exports list. This fixes #106.
We filter the identifiers after code generation which means we need to keep the original purs identifiers in the ChezDefinition. The only case where we don't keep track of the original identifier name in the ChezDefinition is the zero arity constructor for which we generate a predicate. So I added a new ChezDefinition for the predicate and then delay the generation of the predicate identifier name until the Printer.

Since the backend optimizer inlines code, you can’t only export things exported in the PS source, as an inlined definition may refer to an unexpired definition.

@natefaubion so do we have to always export everything?

In general, yes, the expectation is that all symbols which are reachable from PureScript are available in some way across module boundaries, as inlining necessarily breaks high-level module abstractions. The reason why exports are still useful is that one might mangle private names differently or otherwise reference them in a different way.

Ok, then I guess we can close this and #106.


Could SwiftUI's @propertyWrapper be an alternative form of injection?

Been messing around with various bits of the latest beta and it occurred to be that an implementation of SwiftUI's @propertyWrapper could be used to access a container and inject a property.
Any thoughts?

I like the idea. I think it could make usage throughout the code more clear and concise.
E.g. @Injected var analytics: AnalyticsService

I have been playing with this idea as well, see #421.
Main issue that I see is passing resolver to the property wrapper - I haven't figured out better way than global variable 😞

Haven't tried it, but could the resolver (main Container) be passed via an @Environment reference?
So it would be a requirement to set the container into the environment of the main view, then all propertywrappers can access it.
Honestly don't know if that will work :-)

Using a property wrapper would mean having Swinject inject those dependencies as well when doing unit test.
Doing that we would change Swinject from a dependency injection container to a Service Locator.
I would rather wait for annotations being available in Swift.

@pjechris I agree, this would result in a not testable code, but there is no requirement to use it in the entire codebase..
I could see this as a much more powerful replacement for the SwinjectStoryboard - one rarely unittests the UI layer, and it would enable the injection into other UI objects not only UIViewController

Looks like [this feature of property wrapers] is already implemented in latest Xcode-beta, which enables us to get a resolver instance from the enclosing type 🎉
POC implemented here, in action here.

Any updates?

I'm digging into this to see if we can get it officially released! Also looking at how this could factor into SwiftUI. Stay tuned for more updates here!


ditch require('url')

it weighs 15kb minified; which is very bad; given that we only want the path we could add a (well-tested) regex to do the same

Done in 2209110a7317a78e4e2fa4dec4ffaee0890f8af1


IMPRV/GRID-244

@joneit Externalized Column Picker

@joneit  The only reason this is failing is because TravisCI can't resolve the ./images folder. Gulp Test works locally for me. Can you review this and attempt to build locally

Remove editorActivationKeys from defaults.js

@joneit  Still waiting for a review here


Api key support

Add plugin support for getting a token for a tenant via the API Key.
Modify Tenant UI login page to support both Wallet creds and API key options.
One caveat/discussion point for this is that there exists 2 token endpoints

{wallet_id}/token
{tenant_id}/token

Current token fetching via the tenant UI is the wallet_id one (a calling LOB could theoretically use either but we've generally gone with wallet_id).
What I modified here is the tenant_id endpoint, as that's the one that's actually in the Innkeeper plugin.
So what a caller would do is use the Tenant ID and API Key(s). Which is not totally ideal as it's a different ID than if they use the wallet ID.
But then I also kind of like it this way as it's a completely separate deliverable set of creds to a caller that don't associate with the wallet itself. It's tenant based, not wallet based... Probably some discussion to be had here. I think we should modify the {wallet_id}/token endpoint to support this as well, and fix a separate issue I've discussed with Sherman too around securing the call.

Just a comment. The tenant_id based token was added in traction because we cannot seed a wallet_id. So for the innkeeper tenant/wallet, we needed a way to fetch tokens with a known id. And wallet_id is not known until it is created. So that is really there for the innkeeper tenant itself to bootstrap.

Just a comment. The tenant_id based token was added in traction because we cannot seed a wallet_id. So for the innkeeper tenant/wallet, we needed a way to fetch tokens with a known id. And wallet_id is not known until it is created. So that is really there for the innkeeper tenant itself to bootstrap.

Thanks @usingtechnology .
It's a convenient endpoint to encapsulate token fetching with an API Key in the Innkeeper plugin. As well allows us to have API access use Tenant based values rather than wallet (although someone with an API Key token can get the wallet ID so not a security thing or anything).
So leaning towards keeping API access through that endpoint only rather than extending to wallet_id/token as well.
Any concerns you can think of with using {tenant_id}/token given it's original intent? Or think it's repurpose for this as well?

No, no real issues except for possible confusion? May want to think about not allowing token fetch by wallet_id? So using traction is tenant based only. Or just leave it and document the API Key is only used with the tenant_id endpoint. And if you are guiding developers to using that tenant_id endpoint, then you should update the tenant-ui to use it. It's the best example of using traction apis.

No, no real issues except for possible confusion? May want to think about not allowing token fetch by wallet_id? So using traction is tenant based only. Or just leave it and document the API Key is only used with the tenant_id endpoint. And if you are guiding developers to using that tenant_id endpoint, then you should update the tenant-ui to use it. It's the best example of using traction apis.

Yeah I like this idea too.


Hide Specific Mailboxes In Unified Inbox

The ability to have unified inbox exclude certain accounts from showing would be nice.
I don't want my work account to show messages in there, because it is the only account in which I actually keep stuff lingering in the inbox, rather than archiving it or deleting it when I read it. So it just is a bit cluttered to sit it all mixed in unified inbox with my personal mail.

Using the “manage folders” button in the side bar, you can include/exclude specific folders (including the inbox of an account) from the unified inbox.

I am not seeing any options for the unified inbox in manage folders

Manage folders -> inbox -> unify

@seniorm0ment: In the future please use the forum for support requests.
If you want to request a feature, please search the user manual and this issue tracker first to make sure it doesn't already exist. Then make sure to use the proper issue template.


KMS client fail to start under FIPS compliant mode

Help us help you
Tell us more about
your Tink deployment.
Is your feature request related to a problem?
If so, provide a description of the problem.
Context: I am making our service FIPS compliant, we depends on https://github.com/tink-crypto/tink-java-gcpkms and when we start our server we fail to start the kms client due to this error

java.security.GeneralSecurityException: cannot build GCP KMS client
at com.google.crypto.tink.integration.gcpkms.GcpKmsClient.withCredentials(GcpKmsClient.java:141)
at com.google.crypto.tink.integration.gcpkms.GcpKmsClient.withDefaultCredentials(GcpKmsClient.java:155)
Caused by: java.io.IOException: parseAlgParameters failed: PBE AlgorithmParameters not available
at java.base/sun.security.pkcs12.PKCS12KeyStore.parseAlgParameters(PKCS12KeyStore.java:855)
at java.base/sun.security.pkcs12.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:2113)
at java.base/sun.security.util.KeyStoreDelegator.engineLoad(KeyStoreDelegator.java:221)
at java.base/java.security.KeyStore.load(KeyStore.java:1473)
at com.google.api.client.util.SecurityUtils.loadKeyStore(SecurityUtils.java:80)
at com.google.api.client.googleapis.GoogleUtils.getCertificateTrustStore(GoogleUtils.java:86)
at com.google.api.client.googleapis.javanet.GoogleNetHttpTransport.newTrustedTransport(GoogleNetHttpTransport.java:87)
at com.google.api.client.googleapis.javanet.GoogleNetHttpTransport.newTrustedTransport(GoogleNetHttpTransport.java:58)
at com.google.crypto.tink.integration.gcpkms.GcpKmsClient.withCredentials(GcpKmsClient.java:135)
... 4 more
Caused by: java.security.NoSuchAlgorithmException: PBE AlgorithmParameters not available
at java.base/sun.security.jca.GetInstance.getInstance(GetInstance.java:159)
at java.base/java.security.Security.getImpl(Security.java:676)
at java.base/java.security.AlgorithmParameters.getInstance(AlgorithmParameters.java:157)
at java.base/sun.security.pkcs12.PKCS12KeyStore.parseAlgParameters(PKCS12KeyStore.java:849)
... 12 more

What sort of feature would you like to see?
it seems like com.google.api.client.util.SecurityUtils.loadKeyStore failed, please advice
Have you considered any alternative solutions?
I have try to move away from google.api.client.googleapis dependency but failed
Would you like to add additional context?
Provide any other context about the feature request.

Thanks for the report. This is working as intended.
Tink provides FIPS mode to guarantee that only FIPS compliant encryptions happen. If you use a KMS, Tink cannot guarantee anymore that this is true.
Note that the work around is simply to not use FIPS mode in Tink. Tink can still be FIPS complaint, even if it is not in FIPS mode.
I understand that this can be annoying, and we are working on providing more fine grained configuration options, but this will take a while to materialize.


R shiny with a package installed from github

This comes from https://github.com/jupyterhub/mybinder.org-deploy/issues/907 reported by @Athanasiamo:

Hi. Is there any way to install a package from github in a binderhub shiny app deploy?
I've tried adding devtools::install_github() in the install.R file, (after devtools install ofc), but that > does not seem to do it? At least the build is failing.

The lines in install.R get run as an Rscript (I think that is the right terminology) so in principle you should be able to use devtools::install_github() there. We also use it to install other things for you. So this should work :-/ Maybe a link to the repository is indeed the next step.

Hey! I found this issue on repo2docker, and I am trying to get it working with a commit tag
https://github.com/jupyter/repo2docker/issues/397

It completes building with the new commit tag to install_github(), but fails to launch the application.
# An error has occurred
The application failed to start.

The application exited during initialization.

It would be great if we could get more information during such instances, because it it really hard to debug what is going on based on this error message.
Github repo in question: https://github.com/LCBC-UiO/virtual_histology_2019
We're trying to launch the shiny application in the folder vh_new

It seems like this is a question about how to change the RShiny server configuration so that you get more details. Not sure how to do that, might be a question for the RShiny server documentation. Hopefully they let you configure the emaount of debug information via an environment variable which you can set in a start script. Or start your own RShiny server from a terminal once inside the binder and then visit .../proxy/<portnumber> to see what is happening.
For local debugging I find it useful to install http://repo2docker.readthedocs.io/ and run it locally, that way you get the most amounts of logs and faster turn around times compared to mybinder.org.

I'm testing with repo2docker now, but am afraid the error message for the shiny instance is  not helping alot.
500 GET /shiny/vh_new_simp/?token=39a10562139bdebc608ed34ee561146ae688c66e82dbb7b4 (<IP_ADDRESS>) 424.10ms referer=None
[I 13:13:24.736 NotebookApp] No existing shiny found
[I 13:13:24.737 NotebookApp] Starting process...
[2019-03-08T13:13:25.272] [INFO] shiny-server - Shiny Server v<IP_ADDRESS>7 (Node.js v8.10.0)
[2019-03-08T13:13:25.274] [INFO] shiny-server - Using config file "/tmp/tmpp9cpfi2k"
[2019-03-08T13:13:25.330] [INFO] shiny-server - Starting listener on <IP_ADDRESS>:43243
[2019-03-08T13:13:25.776] [INFO] shiny-server - Created bookmark state directory: /var/lib/shiny-server/bookmarks
[2019-03-08T13:13:25.776] [INFO] shiny-server - Created user bookmark state directory: /var/lib/shiny-server/bookmarks/amowinckel
[2019-03-08T13:13:26.167] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[I 13:13:26.193 NotebookApp] shiny startup complete
[2019-03-08T13:13:26.580] [INFO] shiny-server - Error getting worker: Error: The application exited during initialization.
[E 13:13:26.589 NotebookApp] {
      "Host": "<IP_ADDRESS>:58945",
      "Connection": "keep-alive",
      "Upgrade-Insecure-Requests": "1",
      "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.119 Safari/537.36",
      "Dnt": "1",
      "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8",
      "Accept-Encoding": "gzip, deflate, br",
      "Accept-Language": "en-GB,en;q=0.9,nb-NO;q=0.8,nb;q=0.7,en-US;q=0.6",
      "Cookie": "username-127-0-0-1-58945=\"2|1:0|10:1552050730|24:username-127-0-0-1-58945|44:YWM1NGNkYjM0ZWJiNDI2ODg1Mzc2ZDk2ZTA2MGIyMWM=|f91d0c4c6dbd0a8943a360cd2d224a9677fbc8eebba2daf6559f81d6ccccbd64\"; _xsrf=2|23c36901|45e56a1bd7128101fc69e2017f7218e5|1552050730"
    }
[E 13:13:26.589 NotebookApp] 500 GET /shiny/vh_new_simp/?token=39a10562139bdebc608ed34ee561146ae688c66e82dbb7b4 (<IP_ADDRESS>) 1854.13ms referer=None

My hunch is that this is a problem with the shiny app or the shiny server (or most likely the combination of repo2docker, shiny app and rshiny server). On mybinder.org I would have thought it could have been the maximum memory size we give people. You can modify the link to launch the app like so https://mybinder.org/v2/gh/LCBC-UiO/virtual_histology_2019/master?urlpath=shiny/ which just shows the directory contents (via the RShiny app). However that also fails so I think it isn't a problem in Binder that is causing this :-/
Do you know someone who knows more about RShiny (I've never used it or really debugged it) who could have ideas?

the shiny app it self is running just fine locally, also in completely new R sessions. I have no experience with working with rshiny server though. This app also launches just fine on shinyapps.io, so I'm quite confident it is not the app it self, but likely something wrong in the specification between the app and repo2docker, but it is really hard to debug with the sparse information repo2docker is giving.

I tried running the shiny app from RStudio by visiting the repo on mybinder.org, going to RStudio, opening vh_new_simp/server.R and then pressing "Run app" at the top of the editor window.
That ends up printing the following in the console:
> shiny::runApp('vh_new_simp')
Loading required package: shiny
Error in library(shinydashboard) :
  there is no package called ‘shinydashboard’

Do you know what shinydashboard is? Is this a package your app uses or something that shiny provides?
it would be good to get this more detailed output when you visit the shiny app directly in the browser. I suspect that there is a config option we could set when starting the shiny server to do that. I haven't yet found the documentation on how to find out what the options are though.

omg! I'm missing shinydashboard from the install.R. That is pretty facepalmy. Just pushed a new version adding it, can't believe I missed it. Hoping this is the fix to all the issues, but as you note, being able to get more info on where things are failing would be amazing. I had not even thought that the RStudio instance might be able to run the shiny app, that is a very nice trick to know for future debugging.

I had not even thought that the RStudio instance might be able to run the shiny app, that is a very nice trick to know for future debugging.

How do people normally run shiny apps locally? I found it by clicking around the RStudio GUI and noticing that there was a "Run app" button. We should add a FAQ entry about this way of running a shiny app and getting more output so that people from the future can find it.
In addition to a FAQ entry a short how-to on Shiny apps (how to modify the mybinder.org URL, how to debug it, pitfalls when you come from shinyapps.io, etc) here would be great but a lot more work than adding a FAQ entry.
Do you want to make a Pull Request to add to the FAQ?

absolutely, the rstudio things for debugging shiny is a good idea to have in the faq. I can start on something if you like. While my issue is not 100% resolved yet, I'm learning all sorts of tricks ;)
Right now, the shiny app in vh_new (the main shiny app we want to serve) is being launched through rstudio in mybinder, but is failing to launch with the shiny/vh_new url


Update sketch to 44

After making all changes to the cask:

[x] brew cask audit --download {{cask_file}} is error-free.
[x] brew cask style --fix {{cask_file}} left no offenses.
[x] The commit message includes the cask’s name and version.

Thank you for the contribution. It was merged directly as dc37773c0257ffdcf9f214c21ec651dfeafab2a6. Your contribution is still credited to you.


merge header values in AbstractMessage case insensitively

This code can be reached when an HTTP response is received containing appearance of same header with differing cases. (Believe it or not, I encountered this in a third party production system from Microsoft; presumably headers being added to their responses by multiple layers of disparate code.) Here is a sample of an HTTP response that surfaces the bug:
Content-Type: text/plain
Set-Cookie: foo=bar
SET-COOKIE: baz=1

Expected result should be header collection like:
[
  'Content-Type' => 'text/plain',
  'Set-Cookie' => ['foo=bar', 'baz=1'],
]

Trying to select 5.3 as target but github going awry...


second pass at wrapped create-doa

Tysm for this @e-roy! I'm gonna self-request a review and have a look at this today. :))

Tysm for this @e-roy! I'm gonna self-request a review and have a look at this today. :))

Do I need to approve the request?  If so, how do I do that?  Sorry, new guy here :)

Do I need to approve the request? If so, how do I do that? Sorry, new guy here :)

No worries at all. No, you don't need to approve anything. I just requested a review from myself!

Done! :)