programmatically and gesture swipe up support

Just like Tinder gives swipe up feature for super like . Is it possible to have another method just like swipe left and swipe right?
I still don't understand the use of
cardActionDown() ,   cardActionUp() methods.
Also while swipe left or right programmatically the transition is very fast how can I delay the transition and show the Like Dislike Image?

mmm i have to confess i haven't had a look at tinder in a long time, there are some things on my todo list for making this library better for a wider range of uses and that is one of them.
it should be pretty easy to add, I can roll out a quick beta version of the feature for you tomorrow if you'd like
of course if that's not quick enough it would not be too much work to add it yourself just adding a method to detect if the card has been swiped up to checkCardForEvent() in SwipeListener and piping the callback through to the user.

I will try but it will be great if you could add this functionality

I did implement the swipe up functionality but messed up with the animation  So It will be better if you can add
Below are the imortant codes added
public void checkCardForEvent() {
    if (cardBeyondLeftBorder()) {
        animateOffScreenLeft(160)
                .setListener(new Animator.AnimatorListener() {

                    @Override
                    public void onAnimationStart(Animator animation) {

                    }

                    @Override
                    public void onAnimationEnd(Animator animation) {

                        callback.cardOffScreen();
                    }

                    @Override
                    public void onAnimationCancel(Animator animation) {

                    }

                    @Override
                    public void onAnimationRepeat(Animator animation) {
                    }
                });
        callback.cardSwipedLeft();
        this.deactivated = true;
    } else if (cardBeyondRightBorder()) {
        animateOffScreenRight(160)
                .setListener(new Animator.AnimatorListener() {

                    @Override
                    public void onAnimationStart(Animator animation) {

                    }

                    @Override
                    public void onAnimationEnd(Animator animation) {
                        callback.cardOffScreen();
                    }

                    @Override
                    public void onAnimationCancel(Animator animation) {

                    }

                    @Override
                    public void onAnimationRepeat(Animator animation) {

                    }
                });
        callback.cardSwipedRight();
        this.deactivated = true;
    }
        else if (cardBeyondUpBorder()) {
        animateOffScreenUp(160)
                .setListener(new Animator.AnimatorListener() {

                    @Override
                    public void onAnimationStart(Animator animation) {

                    }

                    @Override
                    public void onAnimationEnd(Animator animation) {
                        callback.cardOffScreen();
                    }

                    @Override
                    public void onAnimationCancel(Animator animation) {

                    }

                    @Override
                    public void onAnimationRepeat(Animator animation) {

                    }
                });
        callback.cardSwipedUp();
        this.deactivated = true;
    } else {
        resetCardPosition();
    }
}

private boolean cardBeyondLeftBorder() {
    Log.d("values2", ""+card.getX()+"---"+card.getHeight()+"---"+parentHeight);

    //check if cards middle is beyond the left quarter of the screen
    return (card.getX() + (card.getWidth() / 2) < (parentWidth / 4.f));
}

private boolean cardBeyondRightBorder() {
    //check if card middle is beyond the right quarter of the screen
    Log.d("values1", ""+card.getX()+"---"+card.getWidth()+"---"+parentWidth);

    return (card.getX() + (card.getWidth() / 2) > ((parentWidth / 4.f) * 3));
}

private boolean cardBeyondUpBorder() {

    //check if card middle is beyond the Top quarter of the screen
    Log.d("values", ""+card.getX()+"---"+card.getHeight()+"---"+parentHeight);
    return (card.getY() + (card.getHeight() / 2) < ((parentHeight / 4.f )));

}
private ViewPropertyAnimator resetCardPosition() {
    if(rightView!=null)rightView.setAlpha(0);
    if(leftView!=null)leftView.setAlpha(0);
    return card.animate()
            .setDuration(200)
            .setInterpolator(new OvershootInterpolator(1.5f))
            .x(initialX)
            .y(initialY)
            .rotation(0);
}

public ViewPropertyAnimator animateOffScreenLeft(int duration) {
    return card.animate()
            .setDuration(duration)
            .x(-(parentWidth))
            .y(0)
            .rotation(-30);
}

public ViewPropertyAnimator animateOffScreenRight(int duration) {
    return card.animate()
            .setDuration(duration)
            .x(parentWidth * 2)
            .y(0)
            .rotation(30);
}

public ViewPropertyAnimator animateOffScreenUp(int duration) {
return card.animate()
.setDuration(duration)
.x(0)
.y(-(parentHeight))
.rotation(0);
}
I dont know much about animations so looking up to your code I just assumed and wrote the values
cardBeyondUpBorder() and animateOffScreenUp is important because swipe up works properly but doing it programmatically it doesnot work for first two child and starts working from 3rd position

https://github.com/rajeevjaiswal/Swipe-Deck.git You can check here

@aaronbond any update?

sorry i've been busy this past week, but it's still on my todo.

@aaronbond It will be great if features like swipe up, swipe down, re add previous card can be optional in the library

@aaronbond I really need this feature are you going to work on it? please let me know

Hey rajeev,
sorry about the delay I've been extremely busy with other commitments lately
in addition I've put off small changes to completely re write the code base
and improve the overall quality.
let me see if i can whip something up though
On Wed, Mar 30, 2016 at 5:46 PM, Rajeev Jaiswal<EMAIL_ADDRESS>wrote:

@aaronbond https://github.com/aaronbond I really need this feature are
you going to work on it? please let me know
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/aaronbond/Swipe-Deck/issues/25#issuecomment-203277852

Hi @aaronbond ,
Any updates regarding this?

Hi, unfortunately i have had a lot more work and extra curricular activities than i anticipated lately and no time to add these featurese myself (or work on the re write) i have a big hackathon this weekend but i should be able to get it done after that as my responsibilities cool down a little then.
sorry about that, but if you really want it it's not difficult to do and you can send me a pull request with the feature.

@aaronbond If you see above I have tried to implement the swipe up feature and it works but swipe up programatically animation misbehaves for the first two data in the array list.
I shall wait till your hackathon get over.
Goodluck for your hackathon.

hi,
i need this feature too  :(

https://github.com/aaronbond/SwipeDeck2 << please try this version and if it is missing any feature raise a new issue there and i will add it very promptly.


Dev --> Master 02-10-2020: Update release note date

Hello @astuteape,Thanks again for the PR! We appreciate your contribution and look forward to                                              continued collaboration. Thanks!                                             Team SendGrid DX


Proposal: add "appid" query parameter

If the application has custom signing keys you can add a appid parameter to the openid-configuration-URL, so you receive the correct jwks_uri with the additional keys.
see https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-protocols-oidc

https://github.com/TheNetworg/oauth2-azure/blob/3f8d322e9cb5b8713cc3cc785bbeef0165b921bf/src/Provider/Azure.php#L69
It may be safe to add the appid-queryparam in all cases.

This is pretty neat, didn't know about this feature!


Ensure UDPos files are sorted

Sorting the UDPos files to ensure fixed order.
Also two other minor fixes.

Sorry, the PR ended up having scope creep. I'll update and ping you.


How to dispose top-level IServiceProvider

Since IServiceProvider doesn't implement IDisposable, and ServiceProvider (which does implement it) is internal, how are you supposed to dispose a "top-level service provider", i.e. the result of calling IServiceCollection.BuildServiceProvider()?
I could of course do a (provider as IDisposable)?.Dispose(), but it would be nicer if the interface implemented IDisposable. That way it would work better with generic constraints etc.
I understand that there's little to do with the interface itself, since it's an old interface that's been reused, but would it be possible to add a separate one?
Something along the lines of
namespace Microsoft.Extensions.DependencyInjection
{
    public interface IServiceProvider : System.IServiceProvider, IDisposable { }
}

I think I've gotten around the problem by immediately creating a scope, which is disposable, and use its provider, but I don't think it's a good solution.
What was the reasoning for using the existing interface? And why is everything internal? :stuck_out_tongue_closed_eyes:

Moving this to Backlog as we are not planning to make any changes for this at this time.

What about an answer and close it instead?

https://github.com/aspnet/Mvc/issues/3726#issuecomment-163535556
Nope :smile:

I don't get it. Is that the answer? How does that relate to this?
I don't really care about the interface, but there has to be some way to get a hold of the concrete type to call dispose on it, without resorting to casting etc.?

Yeah not sure what @davidfowl is talking about there...
But the answer for now is that unfortunately we don't have a good answer on this. I think creating a scope immediately is an acceptable workaround in the meantime. This is certainly something we can reconsider.

We'd have to expose the concrete type (which we were trying to avoid) from BuildServiceProvider

@Eilon we can consider this for 2.0. Make a breaking change to the return value of BuildServiceProvider and make the internal ServiceProvider public.

Let's do another fun DI triage 😄


SchedulerStateManagerAdaptor failed to fetch data from Zookeeper path in Heron Cluster

In Heron, I instantiated a SchedulerStateManagerAdaptor named adaptor using IStateManager and created a new Runtime config to saved this adaptor. Then, I created a ISchedulerClient object for invoking its schedulerClient.updateTopology function. Code as follows:
Code1: Initialized the SchedulerStateManagerAdaptor in construction function of one class.
String stateMgrClass = Context.stateManagerClass(this.config); // get state manager instance
IStateManager stateMgr = null;
try {
     stateMgr = ReflectionUtils.newInstance(stateMgrClass);
     FileUtils.writeToFile(filename, "Create IStateManager object success...");
} catch (ClassNotFoundException | InstantiationException | IllegalAccessException e) {
     e.printStackTrace();
}
stateMgr.initialize(this.config);
stateManagerAdaptor = new SchedulerStateManagerAdaptor(stateMgr, 5000);

Code2: Created new Config object and get ISchedulerClient instance.
Config runtime = Config.newBuilder()
                .putAll(primaryRuntime)
                .put(Key.TOPOLOGY_NAME, Context.topologyName(config))
                .put(Key.SCHEDULER_STATE_MANAGER_ADAPTOR, stateManagerAdaptor)
                .build();
ISchedulerClient schedulerClient = new SchedulerClientFactory(config, runtime).getSchedulerClient();

Code3: Invoked the updateTopology function of the schedulerClient.
if (!schedulerClient.updateTopology(updateTopologyRequest)) {
     throw new TopologyRuntimeManagementException(String.format(
             "Failed to update " + topology.getName() +" with Scheduler, updateTopologyRequest=" + updateTopologyRequest));
}

However, when running this scheduler, this Exception happened:

I don't know what's wrong with it! But when I invoke the adaptor.getPhysicalPlan in the file that created adaptor object, it worked. What reason caused this problem? Thanks for your help.

Does anyone know how to solve this problem? Or what is the cause of the problem?

@nwangtw  Thanks for your commit. Let's me introduce my question in detail. First, I created a CustomScheduler that have been deployed on Heron. In the CustomScheduler, besides the main thread that heron runs, I created a new thread after created job by Heron. The new created Thread is responsible for running my programs. This problem is happening in the thread I created.
Second, I can submit topologies and activate them normally using the CustomScheduler.  So that means my CustomScheduler is deployed correctly and the main thread is right.
For your curious, my submit commands is:
heron submit aurora/yitian/devel --config-path ~/.heron/conf ~/aurora-topolgoies/heron-with-dependencies.jar zyt.custom.topology.aurora.SentenceWordCountTopology SentenceWordCountTopology --deploy-deactivated --verbose
As for this problem happened in the new thread that I created as above mentioned. In this new thread, I wanted to update a topology when it was running by using UpdateTopologyManager with a new PackingPlan. I want to make the effect of this method just like using the update command to update the topology. So I attempted to create ISchedulerClient and new runtime Config to update the topology by invoking ISchedulerClient.updateTopology function. Then this problem happened.
I sorry for I couldn't give more information about the WARNING, because it is the only information I can find out. But here is my code:
public void doSchedule(PackingPlan packingPlan) {
        String stateMgrClass = Context.stateManagerClass(this.config); // get state manager instance
        IStateManager stateMgr = null;
        try {
            stateMgr = ReflectionUtils.newInstance(stateMgrClass);
            FileUtils.writeToFile(filename, "Create IStateManager object success...");
        } catch (ClassNotFoundException | InstantiationException | IllegalAccessException e) {
            e.printStackTrace();
        }

        try {
            stateMgr.initialize(this.config);
            SchedulerStateManagerAdaptor stateManagerAdaptor = new SchedulerStateManagerAdaptor(stateMgr, 5000);

            // Then created the new packingplan. It is omitted here.
            PackingPlans.PackingPlan currentPackingPlan = serializer.toProto(packingPlan);
            PackingPlans.PackingPlan proposedPackingPlan = serializer.toProto(newPackingPlan);

            // build updatetopologyrequest object to update topogolgy
            Scheduler.UpdateTopologyRequest updateTopologyRequest =
                    Scheduler.UpdateTopologyRequest.newBuilder()
                            .setCurrentPackingPlan(currentPackingPlan)
                            .setProposedPackingPlan(proposedPackingPlan)
                            .build();

            // create runtime config using statemanageradaptor, this adaptor not included topology information
            // just add topologyname and adaptor to build schedulerCLient object
            Config primaryRuntime = LauncherUtils.getInstance().createPrimaryRuntime(topology);
            Config newRuntime = Config.newBuilder()
                    .putAll(primaryRuntime)
                    .put(Key.TOPOLOGY_NAME, Context.topologyName(config))
                    .put(Key.SCHEDULER_STATE_MANAGER_ADAPTOR, stateManagerAdaptor)
                    .build();

            // Create a ISchedulerClient basing on the config
            ISchedulerClient schedulerClient = getSchedulerClient(newRuntime);

			// In fact, I can't get the physicalplan right here by testing. I don't know why.
			// TopologyAPI.Topology topology3 = stateManagerAdaptor.getPhysicalPlan(topologyName).getTopology();

            if (!schedulerClient.updateTopology(updateTopologyRequest)) {
                throw new TopologyRuntimeManagementException(String.format(
                        "Failed to update " + topology.getName() + " with Scheduler, updateTopologyRequest="
                                + updateTopologyRequest));
            }

        } finally {
            // close zookeeper client connnection
            SysUtils.closeIgnoringExceptions(stateMgr);
        }
    }

I have updated the question in detail. Does anyone have any ideas?

@nwangtw Thanks a lot. Your understanding is corrent. I do want to get physical plan after the topology is submitted. I tried to get the physical plan after successfully submitting the topology for 3 minutes. At that time, the instances was running normally and registered in stmgrs(zookeeper). But running updateTopology function still shows the same error as before. I extracted the specific error message as shown below.
[2018-07-10 16:52:00 +0800] [WARNING] com.twitter.heron.spi.statemgr.SchedulerStateManagerAdaptor: Exception processing future: java.lang.RuntimeException: Failed to fetch data from path: /heron/pplans/AuroraMonitorSentenceWordCountTopology
[2018-07-10 16:52:00 +0800] [FINEST] org.apache.curator.utils.DefaultTracerDriver: Trace: DeleteBuilderImpl-Foreground - 7 ms
[2018-07-10 16:52:00 +0800] [INFO] com.twitter.heron.statemgr.zookeeper.curator.CuratorStateManager: Closing the CuratorClient to: heron01:2181
[2018-07-10 16:52:00 +0800] [FINE] org.apache.curator.framework.imps.CuratorFrameworkImpl: Closing
[2018-07-10 16:52:00 +0800] [FINE] org.apache.curator.CuratorZookeeperClient: Closing
[2018-07-10 16:52:00 +0800] [FINE] org.apache.curator.ConnectionState: Closing
[2018-07-10 16:52:00 +0800] [INFO] com.twitter.heron.statemgr.zookeeper.curator.CuratorStateManager: Closing the tunnel processes
Exception in thread "Thread-4" java.lang.NullPointerException
	at com.twitter.heron.scheduler.UpdateTopologyManager.getTopology(UpdateTopologyManager.java:338)
	at com.twitter.heron.scheduler.UpdateTopologyManager.updateTopology(UpdateTopologyManager.java:147)
	at com.twitter.heron.scheduler.UpdateTopologyManager.updateTopology(UpdateTopologyManager.java:112)
	at zyt.custom.my.scheduler.aurora.AuroraCustomScheduler.onUpdate(AuroraCustomScheduler.java:196)
	at com.twitter.heron.scheduler.client.LibrarySchedulerClient.updateTopology(LibrarySchedulerClient.java:70)
	at zyt.custom.my.scheduler.aurora.AuroraSchedulerController.triggerSchedule(AuroraSchedulerController.java:154)
	at zyt.custom.my.scheduler.aurora.AuroraSchedulerThread.run(AuroraSchedulerThread.java:45)

In Zookeeper, there will also be an Exception that the client disconnects after the connection is established. Is the failure to get physical plan because of  the disconnection of the zookeeper? What's more, Heron cluster uses zookeeper to run normally, but the client connection of this zookeeper failed. I cannot figure it out what's going on about it.
The EndOfStreamException of Zookeeper is as follows. And even if I use the default AuroraScheduler, Zookeeper still has the EndOfStreamException. Does this mean that there is a problem with zookeeper？ For more information on Zookeeper EndOfStreamException, there is the link: #2955
2018-07-10 16:52:10,133 [myid:] - INFO  [SyncThread:0:ZooKeeperServer@687] - Established session 0x164828618e9002c with negotiated timeout 30000 for client /<IP_ADDRESS>:44428
2018-07-10 16:52:10,137 [myid:] - INFO  [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@648] - Got user-level KeeperException when processing sessionid:0x164828618e9002c type:create cxid:0x5b4473bc zxid:0x1685 txntype:-1 reqpath:n/a Error Path:/heron/tmasters/AuroraMonitorSentenceWordCountTopology Error:KeeperErrorCode = NodeExists for /heron/tmasters/AuroraMonitorSentenceWordCountTopology
2018-07-10 16:52:11,139 [myid:] - INFO  [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@648] - Got user-level KeeperException when processing sessionid:0x164828618e9002c type:create cxid:0x5b4473be zxid:0x1686 txntype:-1 reqpath:n/a Error Path:/heron/tmasters/AuroraMonitorSentenceWordCountTopology Error:KeeperErrorCode = NodeExists for /heron/tmasters/AuroraMonitorSentenceWordCountTopology
2018-07-10 16:52:12,143 [myid:] - INFO  [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@648] - Got user-level KeeperException when processing sessionid:0x164828618e9002c type:create cxid:0x5b4473c0 zxid:0x1687 txntype:-1 reqpath:n/a Error Path:/heron/tmasters/AuroraMonitorSentenceWordCountTopology Error:KeeperErrorCode = NodeExists for /heron/tmasters/AuroraMonitorSentenceWordCountTopology
2018-07-10 16:52:13,209 [myid:] - INFO  [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@648] - Got user-level KeeperException when processing sessionid:0x164828618e9002c type:create cxid:0x5b4473c2 zxid:0x1688 txntype:-1 reqpath:n/a Error Path:/heron/tmasters/AuroraMonitorSentenceWordCountTopology Error:KeeperErrorCode = NodeExists for /heron/tmasters/AuroraMonitorSentenceWordCountTopology
2018-07-10 16:52:14,220 [myid:] - INFO  [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@648] - Got user-level KeeperException when processing sessionid:0x164828618e9002c type:create cxid:0x5b4473c4 zxid:0x1689 txntype:-1 reqpath:n/a Error Path:/heron/tmasters/AuroraMonitorSentenceWordCountTopology Error:KeeperErrorCode = NodeExists for /heron/tmasters/AuroraMonitorSentenceWordCountTopology
2018-07-10 16:52:15,241 [myid:] - INFO  [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@648] - Got user-level KeeperException when processing sessionid:0x164828618e9002c type:create cxid:0x5b4473c6 zxid:0x168a txntype:-1 reqpath:n/a Error Path:/heron/tmasters/AuroraMonitorSentenceWordCountTopology Error:KeeperErrorCode = NodeExists for /heron/tmasters/AuroraMonitorSentenceWordCountTopology
2018-07-10 16:52:16,248 [myid:] - INFO  [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@648] - Got user-level KeeperException when processing sessionid:0x164828618e9002c type:create cxid:0x5b4473c8 zxid:0x168b txntype:-1 reqpath:n/a Error Path:/heron/tmasters/AuroraMonitorSentenceWordCountTopology Error:KeeperErrorCode = NodeExists for /heron/tmasters/AuroraMonitorSentenceWordCountTopology
2018-07-10 16:52:17,280 [myid:] - INFO  [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@648] - Got user-level KeeperException when processing sessionid:0x164828618e9002c type:create cxid:0x5b4473ca zxid:0x168c txntype:-1 reqpath:n/a Error Path:/heron/tmasters/AuroraMonitorSentenceWordCountTopology Error:KeeperErrorCode = NodeExists for /heron/tmasters/AuroraMonitorSentenceWordCountTopology
2018-07-10 16:52:18,304 [myid:] - INFO  [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@648] - Got user-level KeeperException when processing sessionid:0x164828618e9002c type:create cxid:0x5b4473cc zxid:0x168d txntype:-1 reqpath:n/a Error Path:/heron/tmasters/AuroraMonitorSentenceWordCountTopology Error:KeeperErrorCode = NodeExists for /heron/tmasters/AuroraMonitorSentenceWordCountTopology
2018-07-10 16:52:19,344 [myid:] - INFO  [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@648] - Got user-level KeeperException when processing sessionid:0x164828618e9002c type:create cxid:0x5b4473ce zxid:0x168e txntype:-1 reqpath:n/a Error Path:/heron/tmasters/AuroraMonitorSentenceWordCountTopology Error:KeeperErrorCode = NodeExists for /heron/tmasters/AuroraMonitorSentenceWordCountTopology
2018-07-10 16:52:20,347 [myid:] - INFO  [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@648] - Got user-level KeeperException when processing sessionid:0x164828618e9002c type:create cxid:0x5b4473d0 zxid:0x168f txntype:-1 reqpath:n/a Error Path:/heron/tmasters/AuroraMonitorSentenceWordCountTopology Error:KeeperErrorCode = NodeExists for /heron/tmasters/AuroraMonitorSentenceWordCountTopology
2018-07-10 16:52:21,353 [myid:] - INFO  [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@648] - Got user-level KeeperException when processing sessionid:0x164828618e9002c type:create cxid:0x5b4473d2 zxid:0x1690 txntype:-1 reqpath:n/a Error Path:/heron/tmasters/AuroraMonitorSentenceWordCountTopology Error:KeeperErrorCode = NodeExists for /heron/tmasters/AuroraMonitorSentenceWordCountTopology
2018-07-10 16:52:22,361 [myid:] - INFO  [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@648] - Got user-level KeeperException when processing sessionid:0x164828618e9002c type:create cxid:0x5b4473d4 zxid:0x1691 txntype:-1 reqpath:n/a Error Path:/heron/tmasters/AuroraMonitorSentenceWordCountTopology Error:KeeperErrorCode = NodeExists for /heron/tmasters/AuroraMonitorSentenceWordCountTopology
2018-07-10 16:52:23,368 [myid:] - INFO  [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@648] - Got user-level KeeperException when processing sessionid:0x164828618e9002c type:create cxid:0x5b4473d6 zxid:0x1692 txntype:-1 reqpath:n/a Error Path:/heron/tmasters/AuroraMonitorSentenceWordCountTopology Error:KeeperErrorCode = NodeExists for /heron/tmasters/AuroraMonitorSentenceWordCountTopology
2018-07-10 16:52:24,372 [myid:] - INFO  [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@648] - Got user-level KeeperException when processing sessionid:0x164828618e9002c type:create cxid:0x5b4473d8 zxid:0x1693 txntype:-1 reqpath:n/a Error Path:/heron/tmasters/AuroraMonitorSentenceWordCountTopology Error:KeeperErrorCode = NodeExists for /heron/tmasters/AuroraMonitorSentenceWordCountTopology
2018-07-10 16:52:25,001 [myid:] - INFO  [SessionTracker:ZooKeeperServer@358] - Expiring session 0x164828618e90022, timeout of 30000ms exceeded
2018-07-10 16:52:25,001 [myid:] - INFO  [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@486] - Processed session termination for sessionid: 0x164828618e90022
2018-07-10 16:52:25,375 [myid:] - INFO  [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@648] - Got user-level KeeperException when processing sessionid:0x164828618e9002c type:create cxid:0x5b4473da zxid:0x1695 txntype:-1 reqpath:n/a Error Path:/heron/tmasters/AuroraMonitorSentenceWordCountTopology Error:KeeperErrorCode = NodeExists for /heron/tmasters/AuroraMonitorSentenceWordCountTopology
2018-07-10 16:52:26,378 [myid:] - INFO  [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@648] - Got user-level KeeperException when processing sessionid:0x164828618e9002c type:create cxid:0x5b4473dc zxid:0x1696 txntype:-1 reqpath:n/a Error Path:/heron/tmasters/AuroraMonitorSentenceWordCountTopology Error:KeeperErrorCode = NodeExists for /heron/tmasters/AuroraMonitorSentenceWordCountTopology
2018-07-10 16:52:27,379 [myid:] - INFO  [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@648] - Got user-level KeeperException when processing sessionid:0x164828618e9002c type:create cxid:0x5b4473de zxid:0x1697 txntype:-1 reqpath:n/a Error Path:/heron/tmasters/AuroraMonitorSentenceWordCountTopology Error:KeeperErrorCode = NodeExists for /heron/tmasters/AuroraMonitorSentenceWordCountTopology
2018-07-10 16:52:28,386 [myid:] - INFO  [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@648] - Got user-level KeeperException when processing sessionid:0x164828618e9002c type:create cxid:0x5b4473e0 zxid:0x1698 txntype:-1 reqpath:n/a Error Path:/heron/tmasters/AuroraMonitorSentenceWordCountTopology Error:KeeperErrorCode = NodeExists for /heron/tmasters/AuroraMonitorSentenceWordCountTopology
2018-07-10 16:52:29,393 [myid:] - INFO  [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@648] - Got user-level KeeperException when processing sessionid:0x164828618e9002c type:create cxid:0x5b4473e2 zxid:0x1699 txntype:-1 reqpath:n/a Error Path:/heron/tmasters/AuroraMonitorSentenceWordCountTopology Error:KeeperErrorCode = NodeExists for /heron/tmasters/AuroraMonitorSentenceWordCountTopology
2018-07-10 16:52:30,000 [myid:] - INFO  [SessionTracker:ZooKeeperServer@358] - Expiring session 0x164828618e90027, timeout of 30000ms exceeded
2018-07-10 16:52:30,001 [myid:] - INFO  [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@486] - Processed session termination for sessionid: 0x164828618e90027
2018-07-10 16:52:30,395 [myid:] - INFO  [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@648] - Got user-level KeeperException when processing sessionid:0x164828618e9002c type:create cxid:0x5b4473e4 zxid:0x169b txntype:-1 reqpath:n/a Error Path:/heron/tmasters/AuroraMonitorSentenceWordCountTopology Error:KeeperErrorCode = NodeExists for /heron/tmasters/AuroraMonitorSentenceWordCountTopology
2018-07-10 16:52:31,401 [myid:] - INFO  [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@648] - Got user-level KeeperException when processing sessionid:0x164828618e9002c type:create cxid:0x5b4473e6 zxid:0x169c txntype:-1 reqpath:n/a Error Path:/heron/tmasters/AuroraMonitorSentenceWordCountTopology Error:KeeperErrorCode = NodeExists for /heron/tmasters/AuroraMonitorSentenceWordCountTopology
2018-07-10 16:52:32,409 [myid:] - INFO  [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@648] - Got user-level KeeperException when processing sessionid:0x164828618e9002c type:create cxid:0x5b4473e8 zxid:0x169d txntype:-1 reqpath:n/a Error Path:/heron/tmasters/AuroraMonitorSentenceWordCountTopology Error:KeeperErrorCode = NodeExists for /heron/tmasters/AuroraMonitorSentenceWordCountTopology
2018-07-10 16:52:33,413 [myid:] - INFO  [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@648] - Got user-level KeeperException when processing sessionid:0x164828618e9002c type:create cxid:0x5b4473ea zxid:0x169e txntype:-1 reqpath:n/a Error Path:/heron/tmasters/AuroraMonitorSentenceWordCountTopology Error:KeeperErrorCode = NodeExists for /heron/tmasters/AuroraMonitorSentenceWordCountTopology
2018-07-10 16:52:34,413 [myid:] - INFO  [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@648] - Got user-level KeeperException when processing sessionid:0x164828618e9002c type:create cxid:0x5b4473ec zxid:0x169f txntype:-1 reqpath:n/a Error Path:/heron/tmasters/AuroraMonitorSentenceWordCountTopology Error:KeeperErrorCode = NodeExists for /heron/tmasters/AuroraMonitorSentenceWordCountTopology
2018-07-10 16:52:35,001 [myid:] - INFO  [SessionTracker:ZooKeeperServer@358] - Expiring session 0x164828618e90025, timeout of 30000ms exceeded
2018-07-10 16:52:35,001 [myid:] - INFO  [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@486] - Processed session termination for sessionid: 0x164828618e90025
2018-07-10 16:52:35,007 [myid:] - WARN  [NIOServerCxn.Factory:<IP_ADDRESS>/<IP_ADDRESS>:2181:NIOServerCnxn@368] - caught end of stream exception
EndOfStreamException: Unable to read additional data from client sessionid 0x164828618e9002c, likely client has closed socket
	at org.apache.zookeeper.server.NIOServerCnxn.doIO(NIOServerCnxn.java:239)
	at org.apache.zookeeper.server.NIOServerCnxnFactory.run(NIOServerCnxnFactory.java:203)
	at java.lang.Thread.run(Thread.java:748)
2018-07-10 16:52:35,008 [myid:] - INFO  [NIOServerCxn.Factory:<IP_ADDRESS>/<IP_ADDRESS>:2181:NIOServerCnxn@1044] - Closed socket connection for client /<IP_ADDRESS>:44428 which had sessionid 0x164828618e9002c
2018-07-10 16:52:45,072 [myid:] - INFO  [NIOServerCxn.Factory:<IP_ADDRESS>/<IP_ADDRESS>:2181:NIOServerCnxnFactory@192] - Accepted socket connection from /<IP_ADDRESS>:44444
2018-07-10 16:52:45,074 [myid:] - WARN  [NIOServerCxn.Factory:<IP_ADDRESS>/<IP_ADDRESS>:2181:ZooKeeperServer@896] - Connection request from old client /<IP_ADDRESS>:44444; will be dropped if server is in r-o mode
2018-07-10 16:52:45,074 [myid:] - INFO  [NIOServerCxn.Factory:<IP_ADDRESS>/<IP_ADDRESS>:2181:ZooKeeperServer@942] - Client attempting to establish new session at /<IP_ADDRESS>:44444
2018-07-10 16:52:45,078 [myid:] - INFO  [SyncThread:0:ZooKeeperServer@687] - Established session 0x164828618e9002d with negotiated timeout 30000 for client /<IP_ADDRESS>:44444
2018-07-10 16:53:05,000 [myid:] - INFO  [SessionTracker:ZooKeeperServer@358] - Expiring session 0x164828618e9002c, timeout of 30000ms exceeded
2018-07-10 16:53:05,000 [myid:] - INFO  [ProcessThread(sid:0 cport:2181)::PrepRequestProcessor@486] - Processed session termination for sessionid: 0x164828618e9002c

Interesting. This looks tricky.
CLI does have the zk connection because state data on zk is needed to verify topology in submit and update commands. I am wondering if the UpdateTopologyManager is initialized correctly in your case, or maybe the the zk connection has been closed by the submission handler. Maybe worth checking with extra logs on the opening and closing of zk connection.

@nwangtw Thanks for your reply. In order to verify whether it is caused by the abnormality of zookeeper, I tested the same code in a single-node local environment with the same zookeeper version. The results show that in the local single-node environment, the physical plan data can be successfully obtained and the topology was updated successfully. But I don't know why it doesn't work in the Aurora+Mesos cluster environment.
What's more, by testing, I found that using the following code, the data can be successfully obtained in the single-node environment with zookeeper, but in the cluster environment, the Could not getNodeData Exception occurs.
The code: I can get the ISchedulerStateManager instance to obtain physical plan from zookeeper in single-node. But It does not work in Aurora cluster environment.
stateManagerAdaptor = Runtime.schedulerStateManagerAdaptor(this.runtime);
The Exception:
[2018-07-11 02:15:37 +0800] [WARNING] com.twitter.heron.spi.statemgr.SchedulerStateManagerAdaptor: Exception processing future: java.lang.RuntimeException: Could not getNodeData
Exception in thread "rescheduler" java.lang.NullPointerException
	at zyt.custom.my.scheduler.aurora.AuroraHotEdgeSchedulerWithTxtLog.getPhysicalPlanInfo(AuroraHotEdgeSchedulerWithTxtLog.java:384)
	at zyt.custom.my.scheduler.aurora.AuroraHotEdgeSchedulerWithTxtLog.triggerSchedule(AuroraHotEdgeSchedulerWithTxtLog.java:296)
	at zyt.custom.my.scheduler.aurora.AuroraHotEdgeSchedulerWithTxtLog.access$400(AuroraHotEdgeSchedulerWithTxtLog.java:65)
	at zyt.custom.my.scheduler.aurora.AuroraHotEdgeSchedulerWithTxtLog$2.run(AuroraHotEdgeSchedulerWithTxtLog.java:257)
	at java.lang.Thread.run(Thread.java:748)

So I confused that what is the difference between getting data from zookeeper in a single node or in the cluster environment?

Hmm. Not sure.
Maybe you could check in the aurora scheduler, the job has been started successfully and all the processes are running ok?

@nwangtw The Aurora scheduler shows that the job runs without problems, and the heron-ui also shows that the topology can run successfully.

In addition, as for the data in the zookeeper can be successfully obtained in the single-node environment, but failed in the cluster environment.  Is it possible that because the node running tmaster cannot get the data from the node running zookeeper (if they are running on different nodes) in a cluster environment? If it is, do you have any ideas about the cause of this problem? Thanks.

Do you have any suggestions on how to solve this problem? And I don't seem to be sure what the real cause of the problem is. @nwangtw Thanks so much.


[Question]:  Any GO version updates?

What is your question?
I've been following the progress on the Go version since the update in May, and I've been checking weekly for any developments. Do we have any updates on the conversion to Go?

https://github.com/NixOS/nixpkgs/issues/320031#issuecomment-2189211348


Compiling error with float*

I get the error:
In file included from ../Additional/i686-w64-mingw32/include/LuaState.h:36:0,
from Universal_System/Extensions/Lua/include.h:10,
from Universal_System/Extensions/Lua/lua.cpp:1:
../Additional/i686-w64-mingw32/include/./Traits.h: In instantiation of 'struct lua::traits::function_traits<float*>':
../Additional/i686-w64-mingw32/include/./LuaFunctor.h:108:85:   required from 'int lua::stack::push(lua_State*, T) [with T = float*; lua_State = lua_State]'
../Additional/i686-w64-mingw32/include/./LuaFunctor.h:59:47:   required from 'int lua::Functor<Ret, Args>::call(lua_State*) [with Ret = float*; Args = {float*, float*}; lua_State = lua_State]'
Universal_System/Extensions/Lua/lua.cpp:2213:1:   required from here
../Additional/i686-w64-mingw32/include/./Traits.h:17:39: error: 'operator()' is not a member of 'float*'
: public function_traits<decltype(&T::operator())>
And I don't know why, is there something I am doing wrong?

Probably you have older version of mingw which is not supported... What does g++ -v say?

g++ -v says that I use "4.8.1 (GCC)" and unfortunately  I cant really  post the Code because the whole function containing the error is about 5.000 lines full of extern function defining, and I eradicated (I deleted all float and used a lot of double or int instead) the problem a (long) time ago. I can try to find the problem again.


fix paket add/remove with just project name

Fix for adding by project name (without .*sproj extenstion) for projects with names containing periods (e.g. Paket.Bootstrapper.csproj). My bad.

thanks


Assigning F5 Key to "Run Project" resets after restart of Godot

Godot version
v4.0.beta10.official [d0398f62f]
System information
macOS Monterey, Version 12.6.1 (21G217), Apple M1 Chip
Issue description
The keyboard shortcut for "Run Project" (Command + B) doesn't work on my machine on any Godot version that I've tried so far (3.5.x, 4.0beta8,9,10). That's why I wanted to reassign it to F5 because this key works fine.
But every time I assign F5 to "Run Project" it resets after restarting Godot.
❌ I could observe this behaviour for:

Name: "Run Project" Binding: F5 -> Screenrecording
Name: "Search Help" Binding: F1

✅ The key remains assigned for the following combinations:

Name: "Run Project" Binding: F10
Name: "Run Project" Binding: Shift + L
Name: "Show Helpers" Binding: F5 -> Screenrecording

Steps to reproduce

Launch Godot v4.0.beta10 on macOS
Open "Editor" -> "Editor Settings"
Switch to "Shortcuts" tab
Filter by name and search for "Run Project"
Assign F5 key to "Run Project"
Close "Editor Settings" window
Quit Godot Engine
Repeat steps 1 - 4
"Run Project" is no longer assigned to F5 but instead has returned to Command + B

https://user-images.githubusercontent.com/11938237/209873062-b4dad0a0-07f7-41ba-afbe-9a686f929469.mp4
Minimal reproduction project
N/A

Thanks for the report with detail - looks like a duplicate of https://github.com/godotengine/godot/issues/66428.
Could you please try what I mention in a comment there and reply to that thread?

You could also open your editor_settings.tres file in VS Code for example, and see if/how it changes as you restart the editor. The customised shortcuts are listed at the bottom.


Make the kernel run in release modes

Currently the kernel is panicking in release modes

It looks like the only issue blocking us to run properly in release modes is the NVMe initialization bug. Currently if run in debug mode, the -trace nvme* logs show no traces at all. If you use the any of the release mode binaries instead, the NVMe traces show several errors. Follow the traces and hunt the bug.

This issue is solved. The only thing left to fix is a race condition in the NVMe driver, but that should be another task.


doc: use seeds instead of dapiAddresses for use with devnet

Connecting to a devnet one should use the seeds config instead of dapiAddresses, otherwise the rapid dapi requests can get one banned: https://dashplatform.readme.io/docs/tutorial-connect-to-a-network-dash-masternode#using-the-devnet

Do these devnets actually have a seed? With only 3 nodes in the standard local network, I imagine banning could still be an issue regardless and we may need a whitelist option.

@dashameter Are you connecting to a devnet created using the dashmate local preset? My understanding is that such devnets should have rate limiting disabled so this shouldn't be an issue.


The alternative holiday in Korea is wrong.

I watched wrong korea holiday.
I watched under url,  182th line.
https://github.com/dr-prodigy/python-holidays/blame/master/holidays/countries/korea.py
name = "Alternative public holiday"
alt_date = date(2020, OCT, 17)
self[alt_date] = name
Korean Alternative public holiday was August.
Could you change holiday?

Yes, I agree. Please check it.

Hi, released in beta. Thank you both, cheers


Web - KYC - 404 page after clicking http://use.expensify.com/fees link on Terms and Fees page

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:
Preparation (on OldDot):

Log in with a new applause.expensifail account
Navigate to OldDot > Account > Payments and add a Personal Bank account using Plaid/Fidelity
Verify you see a payment type for WALLET with a deposit status of "Silver"

NewDot steps:

Go to https://staging.new.expensify.com/
and login with previously created account
Open 1:1 conversation with any user
Click + icon and select the "Send Money" option
Enter any amount and continue
Verify the payment method selected in the confirm button is "Pay with Expensify"
Confirm the payment and verify the KYC verification flow is triggered (confirm additional details to process the payment)
Fill out the additional details. Enter first name Alberta, last name Charleson and SSN as 3333. Enter any data for the other fields.
Click Save & continue
Verify you proceed to the Onfido privacy page
Complete the Onfido verification flow. You can use fake Maria Dela Cruz document as the identification passport. You must select Philippines as the country.
Terms and Fees page is displayed
Click link http://use.expensify.com/fees

Expected Result:
Corresponding page should be displayed
Actual Result:
404 page is displayed.
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[x] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: <IP_ADDRESS>
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail:
https://expensify.testrail.io/index.php?/tests/view/3401344
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://user-images.githubusercontent.com/93399543/234034798-aa18ad03-ff12-4443-a71b-85e40c5e95f4.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub

Triggered auto assignment to @kevinksullivan (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

Bug0 Triage Checklist (Main S/O)

[ ] This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
[ ] This bug is not a duplicate report (check E/App issues and #expensify-bugs)

If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead

[ ] This bug is reproducible using the reproduction steps in the OP. S/O

If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
If the reproduction steps aren't clear and you determine the correct steps, please update the OP.

[ ] This issue is filled out as thoroughly and clearly as possible

Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.

[ ] I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@kbecciv was this ever working properly? I just went to the URL and get a 404 error.
https://use.expensify.com/fees

@kevinksullivan Not sure if it's working properly before.

yeah looks like this is expected and noted here. This is a feature on internal beta and not a priority.
https://github.com/Expensify/Expensify/issues/150538


Fix #41

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
http://guh.guru:8080/job/guh-webinterface-pull-request/32/
Test PASSed.


Please consider adding some screenshots

Please add some screenshots so user can have idea before actually setting up project :+1:

Added to Todo

Nice.

I second this. Does it tint the image?


chore: Update readme and version

:rocket: This PR description was created by Ellipsis for commit be24dc1a8f6700b7e6ebd73c299c7759596ec4a7.

Summary:
This PR updates the README, enforces environment variable requirements, modifies the usage of load_dotenv(), and extends similar changes to multiple files in the examples directory, including an update to the langchain_core supported version.
Key points:

Updated README.md with new installation instructions and updated langchain_core supported version.
Enforced ZEP_COLLECTION_NAME environment variable in ingest.py, message_history_vector_store_chain.py, rag_vector_store_chain.py.
Modified load_dotenv() in ingest.py to use find_dotenv() for locating .env file.
Extended similar changes in load_dotenv() usage across multiple files in examples directory.

Generated with :heart: by ellipsis.dev

@ellipsis-dev please ensure that "LangChain" is spelt correctly in the comments in this PR. Exclude code from your review.

@ellipsis-dev please ensure that "LangChain" is spelled correctly in the comments in this PR. Exclude code from your review.


Adjust the way include paths are handled so it uses the project directory and not the CMake source directory.

This should be a very low cost fix with good robustness benefit.
The goal here is to simply replace CMAKE_SOURCE_DIR with PROJECT_SOURCE_DIR and still have CMake work correctly.
This change should allow people to use the NovelRT Engine via FetchContent functionality.

I'll check this!

Awesome, let us know if you need anything

Running the steps of the README on a  Linux Mint install I cannot build the project. I attach the error logs. Did I miss something?
err.log

You have - but no worries I got you. :)
Our readme states we do not work with GCC at this time and it's due to the exact error about type punning you are getting.
If you can, please use clang or MSVC instead.

Oh, I missed this! I got it, I'll try again, thanks for the quick feedback.


debugger timeout when send break-point request

node.exe --inspect-brk=11031 xxTEA.js
Debugger listening on ws://<IP_ADDRESS>:11031/69841ef3-6704-45c5-902a-f16296458837
For help, see: https://nodejs.org/en/docs/inspector
Error: Set breakpoints request timed out
at Timeout.setTimeout [as _onTimeout] (c:\Users\xxx\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\ms-vscode.node-debug2\node_modules\vscode-chrome-debug-core\out\src\utils.js:71:24)
at ontimeout (timers.js:427:11)
at tryOnTimeout (timers.js:289:5)
at listOnTimeout (timers.js:252:5)
at Timer.processTimers (timers.js:212:10)
xxTEA.zip
when i try to debug file xxTEA.js which attached  step by step,deubgger hang and timeout.
node version:v11.9.0 x64
OS:window 10 x64 professional
vscode version:
1.32.1 (user setup)
05f146c7a8f7f78e80261aa3b2a2e642586f9eb3
2019-03-08T00:51:49.278Z
Electron: 3.1.3
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Windows_NT x64 10.0.17134

Thanks for the report and sorry for the slow response but I need more details. This works ok for me, where are you setting breakpoints? What are the exact steps? You can set "trace": true and reproduce the issue, then upload the log from the path printed to the debug console.


Added DigiExam

We proudly use Electron! 👍

Thank you for your contribution! Since you're submitting a closed source app, please include evidence of it being built with Electron. (See submission guidelines or refer to #386 for ways you can show it's an electron app)

@vanessayuenn Hope this screen shot is fine!


Update allowedPeers.mainnet.ts

Motivation
I love this project and willing to support and involved in this project
Change Summary
I was build farcaster node on mainnet and share my peerID
Merge Checklist
Choose all relevant options below by adding an x now or at any time before submitting for review

[ ] PR title adheres to the conventional commits standard
[ ] PR has a changeset
[ ] PR has been tagged with a change label(s) (i.e. documentation, feature, bugfix, or chore)
[x] PR does not require changes to the protocol
[ ] All commits have been signed

Additional Context
If this is a relatively large or complex change, provide more details here that will help reviewers

PR-Codex overview
This PR focuses on adding a new allowed peer for the mainnet.
Detailed summary

Added a new allowed peer for the mainnet: 12D3KooWLaAwoVekyBYw399eAJJ38Pvxfrmd2wxHa2KSYr91Loqh (@logos00000)

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

I'm not invited can you give me access to farcaster ?
On Tue, Jul 4, 2023 at 1:55 AM Varun Srinivasan @.***>
wrote:

@.**** commented on this pull request.
In apps/hubble/src/allowedPeers.mainnet.ts
https://github.com/farcasterxyz/hub-monorepo/pull/1062#discussion_r1251158616
:

@@ -48,4 +48,5 @@ export const MAINNET_ALLOWED_PEERS = [
'12D3KooWS39hrt41rMuD5ZfPFMxUVycxVwz7w15CxZVhxP4AZDGr', // @rozhnovskiyigor
'12D3KooWHXZkdEYWb5RCajv7YbffasjYNSEP1U68DMR1JeZ4QiXH', // @fedecastelli
'12D3KooWCPdo8CNq3pu7oyJQYFzV6d4GbHUH8HTUbtHM6jpv6buy', // @cameron

'12D3KooWLaAwoVekyBYw399eAJJ38Pvxfrmd2wxHa2KSYr91Loqh', // @logos00000

can you please add your farcaster id here
—
Reply to this email directly, view it on GitHub
https://github.com/farcasterxyz/hub-monorepo/pull/1062#pullrequestreview-1511591872,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AXFH45BUAICPIA735LPM4HTXOMBPTANCNFSM6AAAAAAZ3RSKXA
.
You are receiving this because you authored the thread.Message ID:
@.***>


Hello, thank you for your implementation. I don't know if it's abnormal or not.

Hello, thank you for your implementation. It is well written and easy to go through.
I downloaded the code and ran the synthetic hawkes data set under the default setting I found that the predicted inter-event time remained the same.

This plot is the mean predicted inter-event time and mean ground truth inter-event time for 64 sequences in hawkes data set.
Also, the training loss does not change significantly during the training.

Starting epoch... 0
2021-05-14 11:16:23.015432: I tensorflow/stream_executor/platform/default/dso_loader.cc:42] Successfully opened dynamic library libcublas.so.10
Loss during batch 0 last BPTT = -4.655, lr = 0.00999
Loss on last epoch = -4.6547, new lr = 0.00999, global_step = 70
Starting epoch... 1
Loss during batch 0 last BPTT = -6.581, lr = 0.00999
Loss on last epoch = -6.5805, new lr = 0.00999, global_step = 140
Starting epoch... 2
Loss during batch 0 last BPTT = -6.584, lr = 0.00998
Loss on last epoch = -6.5837, new lr = 0.00998, global_step = 210
Starting epoch... 3
Loss during batch 0 last BPTT = -6.585, lr = 0.00997
Loss on last epoch = -6.5846, new lr = 0.00997, global_step = 280
Starting epoch... 4
Loss during batch 0 last BPTT = -6.585, lr = 0.00997
Loss on last epoch = -6.5855, new lr = 0.00997, global_step = 350
Starting epoch... 5
Loss during batch 0 last BPTT = -6.586, lr = 0.00996
Loss on last epoch = -6.5863, new lr = 0.00996, global_step = 420
Starting epoch... 6
Loss during batch 0 last BPTT = -6.587, lr = 0.00995
Loss on last epoch = -6.5871, new lr = 0.00995, global_step = 490
Starting epoch... 7
Loss during batch 0 last BPTT = -6.588, lr = 0.00994
Loss on last epoch = -6.5879, new lr = 0.00994, global_step = 560
Starting epoch... 8
Loss during batch 0 last BPTT = -6.589, lr = 0.00994
Loss on last epoch = -6.5887, new lr = 0.00994, global_step = 630
Starting epoch... 9
Loss during batch 0 last BPTT = -6.590, lr = 0.00993
Loss on last epoch = -6.5895, new lr = 0.00993, global_step = 700
Starting epoch... 10
Loss during batch 0 last BPTT = -6.590, lr = 0.00992
Loss on last epoch = -6.5903, new lr = 0.00992, global_step = 770

I don't know if it's abnormal or not. Any reply will be appreciated.
Thank you very much!

That is ... neither here nor there. I cannot say off the top of my head whether that is a good prediction or not, it seems to be the mean of the durations.
Does the same behavior persist with other example tests as well?


[main] Upgrade to latest dependencies

Cron. -knative-prow-robot
/cc knative-sandbox/channel-wg-leads
/assign knative-sandbox/channel-wg-leads
Produced via:
./hack/update-deps.sh --upgrade --release v0.23
./hack/update-codegen.sh

Details:
bumping knative.dev/eventing 31cda4c...8565fcd:
  > 8565fcd Clean up resources created by Feature tests (# 5289)
  > 73ce225 [Rekt] Channel Delivery Spec data plane tests. (# 5279)
  > 5ed9b36 event type v1beta1 (# 5272)
  > 5855490 Running validation for events on broker ingress (# 5275)
  > 0fa5989 Add pre-review checklist to PR template (# 5184)
  > f1909db Improve performance of eventfilter lookups (# 5288)
  > 60bc1cf break delivery/routing tests into features (# 5287)
  > 79e83bd adding more polling for channel tests (# 5284)
bumping knative.dev/reconciler-test b0c3de2...4598ca0:
  > 4598ca0 add feature to context, add refs to feature (# 183)
  > 15b4e12 Fail on feature.Require errors. (# 182)
  > 2e99af8 upgrade to latest dependencies (# 179)
  > 9efa295 implement step planning event (# 178)

/retest

/retest


Plugins: allow command patches to overridden

This is a baby step towards allowing plugins to be configurable during scribe definition.
Primarily this aims to allow people to work around #250 in the simplest way. In this version the invoker can override the list of command patches they want and therefore not load things like the bold command patch.

Looks good :+1:


Use PureComponents for dashboard

Pull Request Test Coverage Report for Build 1515

99 of 112 (88.39%)  changed or added relevant lines in 21 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.02%) to 82.677%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/components/ClusterOverview/Alerts/Alerts.js
5
6
83.33%

src/components/Dashboard/DashboardCard/DashboardCardTitleHelp.js
4
5
80.0%

src/components/Dashboard/DashboardCard/DashboardCardTitleSeeAll.js
4
5
80.0%

src/components/ClusterOverview/Capacity/Capacity.js
4
6
66.67%

src/components/ClusterOverview/Health/Health.js
8
10
80.0%

src/components/ClusterOverview/Utilization/Utilization.js
8
10
80.0%

src/components/ClusterOverview/Compliance/Compliance.js
6
10
60.0%

Totals

Change from base Build 1508:
-0.02%

Covered Lines:
3813

Relevant Lines:
4404

💛  - Coveralls

Pull Request Test Coverage Report for Build 1767

99 of 112 (88.39%)  changed or added relevant lines in 21 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.02%) to 82.677%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/components/ClusterOverview/Alerts/Alerts.js
5
6
83.33%

src/components/Dashboard/DashboardCard/DashboardCardTitleHelp.js
4
5
80.0%

src/components/Dashboard/DashboardCard/DashboardCardTitleSeeAll.js
4
5
80.0%

src/components/ClusterOverview/Capacity/Capacity.js
4
6
66.67%

src/components/ClusterOverview/Health/Health.js
8
10
80.0%

src/components/ClusterOverview/Utilization/Utilization.js
8
10
80.0%

src/components/ClusterOverview/Compliance/Compliance.js
6
10
60.0%

Totals

Change from base Build 1508:
-0.02%

Covered Lines:
3813

Relevant Lines:
4404

💛  - Coveralls


[tui] use the new r3bl_ansi_color crate for detecting terminal color capabilities

A bit of history is useful here. In the early days of the crate, I was using some 3rd party crates to do:

Terminal capability detection. The terminal capability detection crate never actually worked (fails totally on macOS Terminal.app, which is the default terminal that ships with macOS, and on Windows)
ANSI color output. This crate has a copyleft license so I had to replace it and rewrite it. I’ve had to rewrite so many crates so far (the latest one being simplelog, and include them in the r3bl_rs_utils repo workspace).

So currently the r3bl_tui crate does NOT use the r3bl_ansi_color crate detection capabilities. Instead it uses the broken old way using some existing crate. The task is to replace this deprecated functionality with the newer one (from r3bl_ansi_color crate). PLMK if this makes sense or if more information is needed, as I can add links to source files.

Currently the existing r3bl_tui crate does not do the right thing when detecting terminal capabilities. It currently does not work on Windows.
There is a better way to detect terminal color capabilities on mac, windows, linux in the r3bl_ansi_color crate which is what we should be using.

👎🏽 Here's the code for the old way:

https://github.com/r3bl-org/r3bl_rs_utils/blob/main/tui/src/tui/color_wheel/detect_color_support.rs#L37

👍🏽 Here's the code for the new way:

https://github.com/r3bl-org/r3bl_rs_utils/blob/main/ansi_color/src/detect_color_support.rs#L27

Both are similar.

In summary, the goals are:

Replace the old color detection capabilities with the new reliable ones from r3bl_ansi_color
Use the capabilities provided in ansi_color in the color_wheel folder in the r3bl_rs_utils repo
As a bonus, this might also get everything working correctly on Windows (which currently shows grayscale output due to the problematic terminal capability detection).

@Harshil-Jani I've added more clarification to this issue; apologies that it was so poorly worded and confusing. PLMK if this makes more sense. I can rewrite if needed and also provide links directly to the source code.


[EUWE] Update bower.json to source sinon via registry

Looks like sinonjs.org stopped hosting the version we were sourcing.
Instead source the desired version through the registry.
@miq-bot add_label darga/yes, bug
/cc @simaishi

Darga backport details:
$ git log -1
commit 64973248b6f9b29fcb1ed5f749b71aafd6ce803f
Author: Satoe Imaishi<EMAIL_ADDRESS>Date:   Mon Feb 27 14:58:37 2017 -0500

    Merge pull request #540 from jjlangholtz/euwe-update-sinon-bower-source

    [EUWE] Update bower.json to source sinon via registry
    (cherry picked from commit 1918f0f9b1e9caa6813c119497c5e3126fe5f04e)


Android NullPointerException

Hi,
I got an error on Android users devices (5/6 times on 1000+ users)
NullPointerException
Attempt to invoke virtual method 'android.content.SharedPreferences android.content.Context.getSharedPreferences(java.lang.String, int)' on a null object reference

Hi, thanks for reporting this issue. We'll look into it and update the thread when it's been fixed. Thanks.

Hi - we've released native Android SDK 10.3.2 which fixes the issue. Please update your Gradle dependencies to pull that into your project.


pressing 'm' on selected issue not working (help wanted)

hello, new windows user here. maybe I'm missing something but it seems I can't get the 'm' key working
Describe the bug
can't transition selected issue
Please provide following details

JiraCLI Version:
(Version="v1.3.0", GitCommit="ed84fe74f68ba1b2cf0504a931ca09a03b2c9fed", CommitDate="2023-01-02T09:59:32+00:00", GoVersion="go1.19.4", Compiler="gc", Platform="linux/amd64")
Are you using Jira cloud or on-premise jira server?
Version:         8.2.3
Build Number:    802003
Deployment Type: Server
Default Locale:
What operating system are you using? Also mention version.
windows wsl
What terminal are you using? Also mention version.
wsl subsystem

To Reproduce
Steps to reproduce the behavior:
list current sprint issue
press m
nothing happens

Hi @gianpaolof, this feature is not yet release. If you wish to use the feature you can either compile the binary manually or use one of the following means to install dev build.
# Docker
docker run -it --rm ghcr.io/ankitpokhrel/jira-cli:main

# Golang
go install github.com/ankitpokhrel/jira-cli/cmd/jira@main

# Homebrew
$ brew install jira-cli --HEAD

any chance you have a timeline for this release?

@sf8193 that is already available in past releases? Is that not working for you?

This is available in the new release v1.4.0


Cancel Add Peer kills my resources

Describe The Problem
When I try to add a new peer and press cancel all my resources of my docker container nearly hit 100%.

When I stop the dashboard (nearly impossible) all resources are back top normal. So expect the problem has something to do the dashboard.

To Reproduce
./wgd.sh start

OS Information:

OS: Debian Bookworm
Python Version: Python 3.11.2

Sample of your .conf file
I think this does not apply here.

Hi! I'm sorry that you're encountering this issue.. To understand this better, did you install the dashboard manually into Docker or other existing docker image? Could you please try to run the dashboard with ./wgd.sh debug and let me know what is outputting in the console while you repeat the action you mentioned?

I do understand the current version of WGDashboard use quite a bit of ram.. especially when you have a tons of peers lol, this was a design flaw back then: "To handle everything on the backend" lol. I'm currently working on the next release, by moving a tons of feature to the frontend and the backend serve as a REST API.

Hi @donaldzou,
I installed it manually in an LXC conatainer, after installing wirguard via this
Sure!
./wgd.sh debug
------------------------------------------------------------
| Starting WGDashboard in the foreground.                  |
 * Serving Flask app 'WGDashboard'
 * Debug mode: off
WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
 * Running on all addresses (<IP_ADDRESS>)
 * Running on http://<IP_ADDRESS>:10086
 * Running on http://<IP_ADDRESS>:10086
Press CTRL+C to quit
User not signed in - Attempted access: configuration
<IP_ADDRESS> - - [02/Jun/2024 08:46:27] "GET /configuration/wg0 HTTP/1.1" 302 -
<IP_ADDRESS> - - [02/Jun/2024 08:46:27] "GET /signin?redirect=wireguard:10086/configuration/wg0 HTTP/1.1" 200 -
<IP_ADDRESS> - - [02/Jun/2024 08:46:28] "GET /static/img/logo.png HTTP/1.1" 304 -
<IP_ADDRESS> - - [02/Jun/2024 08:46:43] "POST /auth HTTP/1.1" 200 -
<IP_ADDRESS> - - [02/Jun/2024 08:46:43] "GET /configuration/wg0 HTTP/1.1" 200 -
Finish fetching peers in 0.0041 seconds
<IP_ADDRESS> - - [02/Jun/2024 08:46:43] "GET /get_config/wg0?search= HTTP/1.1" 200 -

after this everything hangs
My System has 1 Core and 512MB RAM.

Hi I did some testing on a VM and matched your configuration:
Distributor ID: Ubuntu
Description:    Ubuntu 24.04 LTS
Release:        24.04
Codename:       noble

     *-cpu
          description: CPU
          vendor: QEMU
          physical id: 400
          bus info: cpu@0
          version: virt-7.2
          slot: CPU 0
          size: 2GHz
          capacity: 2GHz
          configuration: cores=1 enabledcores=1 threads=1
     *-memory
          description: System Memory
          physical id: 1000
          size: 512MiB
          capacity: 512MiB
          capabilities: ecc
          configuration: errordetection=multi-bit-ecc

and everything runs perfectly with v<IP_ADDRESS>. I'm wondering,

after this & cancel add peer on the UI everything hangs!
After a few minutes I killed the dashboard and everything is back to normal:

did you mean after you clicked the blue Add button, then it just hang and showing Adding...?

Hi,
No the Cancel button inside the Dialog.

I tried some adjustments, I increased my disk too 3 GB which slows down the resource allocation a bit, but after some time the result is the same.
I'll try the same thing with more memory this week (but I think this should not be the problem, because my system idles around 50Mb, so wg-dashboard has more more 400Mb of memory left)

That's weird lol... mind if I ask which browser you're using?

Yes it is :/
Sure Google Chrome 125

Yes it is :/ Sure Google Chrome 125

I see I see... Let me see why this is happening..

Same problem here

Same problem here

Hi @MeierAlex , could you please let me know which OS and which Python version you're using?

Hi @snailcatcher , I'm thinking will it caused by a permission issue? Maybe trying to run with sudo ./wgd.sh debug and see if the issue still persist

Same issue,
After pressing the cancel button, resource consumption begins, which ends in system instability
Uploading 2024-08-13_15-57-52.mp4…

Important addition, I have two configurations wg0 and wg1, when adding a peer to wg0 and refusing everything is fine. But, when working with wg1, just trying to add a peer begins to consume resources, and if you quickly fill in all the details and click save, the peer is added, but the memory continues to melt.

Do you mind providing the configuration for wg1 please? Or if you wish, to download the beta version of v4 and see that if that helps: git clone -b v4.0.beta3 https://github.com/donaldzou/WGDashboard.git

@donaldzou
wg1conf.txt
Configuration in attachment. Is there anything else needed besides wg1.conf?

@donaldzou
I experimented a little, this is what I found out, if I delete the second line, then everything works
Address = <IP_ADDRESS>/24
Address = fdXX:XX:XX::1/64

produce hi load

Address = <IP_ADDRESS>/24

work fine

@dndhost @snailcatcher Is this still relevant?


Value error on reshaping image

Python 2.7.12 (default, Jul  1 2016, 15:12:24)
Traceback (most recent call last):
  File "./noteshrink.py", line 585, in <module>
    main()
  File "./noteshrink.py", line 582, in main
    notescan_main(options=get_argument_parser().parse_args())
  File "./noteshrink.py", line 557, in notescan_main
    samples = sample_pixels(img, options)
  File "./noteshrink.py", line 340, in sample_pixels
    pixels = img.reshape((-1, 3))
ValueError: total size of new array must be unchanged

i have installed all requirements except notescanm which isn't pip installable.

I tried running the script on the photo you attached, and it worked fine.
"notescan" is simply the original name of the repo/project before it was noteshrink, it has now been changed in the requirements.txt.
Not sure why this error is occurring. What output do you see if you insert the line
print '*** image has shape', img.shape, '***'

immediately before line 340?

1

That's not expected behavior, but I don't quite know why that might be the case. I'm guessing that it's a difference between one of the package versions in your environment and mine, but can't for the life of me think of what it might be.
Closing this for now because you found a work-around.


Cryptography Game

Fixes #420

@TusharAMD please merge

@TusharAMD this PR was made before the announcement so please merge this one, also u have merged 7 after the announcement so please at least merge the ones yesterday

https://grantjenks.com/docs/freegames/crypto.html


Project Overview Documentation and Block diagram

https://github.com/UHHRobotics22-23/marimbabot/tree/doc/block_diagram

I assume this can be closed since we merged the PR @ateRstones


[WIP] YUNIKORN-1390 - MPIOperator Example to Yunikorn Site

This is a WIP due to https://github.com/apache/yunikorn-k8shim/pull/478.

Is this still WIP or can we go ahead and get both the k8shim and this one committed indepently. I doubt there will be much delay between committing the example change and this website update

Is this still WIP or can we go ahead and get both the k8shim and this one committed indepently. I doubt there will be much delay between committing the example change and this website update

It’s almost done. I think I have some link issues that I have to fix. I put it in WIP mostly because I wasn’t sure how long the other PR would take.

PR is ready for review.

Thank you for your feedback! I’m at a conference this week but I will address these comments soon.


Cutting Multiple release branches needs a manual build of all packages

When a new release branch is being cut from the trunk (if the user is following a trunk based development model or gitflow), sfpowerscripts will not  build any version of the package as its already built in main/master .  An earlier cut release branch would already have built some of the package and there is no need to release them at  all, though build is an activity which is relatively faster in nature, this could have issues during deployment where a full deployment of the package is not ideal. In a large org, redeploying an entire set of packages could take hours.
sfpowerscripts should provide options to the users to cut multiple release branches without the need of rebuilding all the packages

There are two workarounds for this issue.

Maintain a long-lived release branch and merge the trunk onto the release branch rather than cutting multiple release branches.
or
When you cut the release branches, ensure there is at least one build that is building all the packages. In a subsequent commit, modify the release definition to only deploy packages that you intent to deploy for that particular release by removing it from the release definition files.

In the current implementation, no packages will be built when cutting a branch from a commit that was already part of a build. The workaround is to disable --diffcheck, so that release candidates are built, or to manually transfer release candidates into the prod feed, or update npm rc tags for single package registry.

@aly76  I have updated the issue and associated wording to denote the current behaviour

@aly76  I think this is not an issue and is working as expected when using a single feed. One should just use the LATEST_TAG in release definition yaml and everything should be good. Any impact on versioning should be handled by the user semantically.
In case of using multiple feeds, this has to tie into the proposal https://github.com/Accenture/sfpowerscripts/pull/500/files
If you agree with this, happy to close this one


Move everything related to integration tests to its own section in the build script.

This is meant to make the build script easier to read. Otherwise, it's a no-op.

Codecov Report

Merging #497 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master     #497   +/-   ##
=========================================
  Coverage     90.36%   90.36%
  Complexity      616      616
=========================================
  Files           117      117
  Lines          2284     2284
  Branches        210      210
=========================================
  Hits           2064     2064
  Misses          163      163
  Partials         57       57

Continue to review full report at Codecov.

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


net/http: header.WriteSubset is case sensitive

What version of Go are you using (go version)?

$ go version
go version devel +0e015e20cf Wed Sep 11 12:26:35 2019 +0000 linux/amd64

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
Not relevant
What did you do?
https://play.golang.org/p/gtm6ZUm4omF
	h := http.Header{}
	exclude := map[string]bool{}
	for k, v := range headers {
		h.Add(k, v)
		exclude[k] = true
	}
	h.WriteSubset(os.Stdout, exclude)

What did you expect to see?
Nothing
What did you see instead?
All lowercase headers
Notes
I think this should either be documented or fixed as WriteSubset is the only method for http.Header that does not perform canonicalization.
/cc @bradfitz @rsc as per https://dev.golang.org/owners
/cc @kele as we found this together

WriteSubset is so weird. Unfortunate that we had to export it.
I guess we can document it, but the existing docs are pretty clear:

If exclude is not nil, keys where exclude[key] == true are not written.

A map lookup is never case insensitive.


Update Project create_script to reflect new Tigerdata schema

Right now, the Project:create_script rake task is missing several key metadata values, and will cause multiple errors when attempting to execute in Aterm. Update the script to reflect the newer 0.6.1 Tigerdata schema
Acceptance criteria

[ ] in lib/tasks/projects.rake —  update the asset.create command in the script

[ ] Remove Code
[ ] Add ProjectDirectory
[ ] Add Submission
[ ] Refactor StoragePerformance to just Performance
[ ] Add SchemaVersion

I started making these changes in this PR https://github.com/pulibrary/tiger-data-app/pull/721 but then got side tracked and added a bunch of other unrelated changes to the PR. But it can serve as a guideline.

Hey team! Please add your planning poker estimate with Zenhub @hectorcorrea @JaymeeH @jrgriffiniii @leefaisonr


bad type for FormData

with version 3.x.x, I have an error with "form-data" in a Typescript project:
import formData from 'form-data';
import Mailgun from 'mailgun.js';

const mailgun = new Mailgun(formData)

the error:
 error TS2345: Argument of type 'typeof FormData' is not assignable to parameter of type 'FormData'.
  Type 'typeof FormData' is missing the following properties from type 'FormData': append, delete, get, getAll, and 3 more.

even if we import "@types/form-daya" or<EMAIL_ADDRESS>(the default is now 4.0.0)

I noted in https://github.com/mailgun/mailgun-js/issues/110 that it looks like it's expecting an instance of form data instead of the class/constructor.  Types should be something like
Mailgun(formData: new () => FormData)

Closing this issue since the fix was merged


Why make the destination relative?

If the source is absolute path you're making the dest path relative... why?
...
// If the pattern is a blob
                        if (!stat) {
                            // If the source is absolute
                            if (_path2.default.isAbsolute(relFileSrc)) {
                                // Make the destination relative
                                relFileDest = _path2.default.join(_path2.default.relative(context, relFileDirname), _path2.default.basename(relFileSrc));

                                // If the source is relative
                            } else {
                                    relFileDest = _path2.default.join(relFileDest, relFileSrc);
                                }

                            // If it looks like a directory
                        } else if ((0, _toLooksLikeDirec...

When I put a source and destination path absolute I want them to stay absolute ... right?
This is my code:
new CopyWebpackPlugin([{from: path.join(__dirname, root, 'assets/**/*'), to: path.join(__dirname, 'public/assets')}])

We don't write files directly to the filesystem (using fs). Instead, we write files to compilation.assets (webpack's asset management), then webpack writes the results. The keys in compilation.assets are file paths that are relative to the output directory, so we have to convert absolute paths to relative ones.
If you're having trouble figuring out where the plugin is writing your files, the latest version (v4.0.0) has a debug mode. Set it to info to see where it's writing your files.


Export Python environment yml

Despite the dependence said on 'readme.md' page (scipy, sklearn, numpy, pytorch), I also found several other packages that require installation: pyyaml, easydict, tqdm, tensorboardx. It might be a good idea to export the python environment to yml as shown in this link [https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#creating-an-environment-from-an-environment-yml-file].
[https://github.com/lrjconan/LanczosNetwork]
"""
Dependencies
Python 3, PyTorch(1.0), numpy, scipy, sklearn
"""

Thanks for your suggestion! Will do.


Implement package validator as a compiler flag

Similar to how --init generates a tsconfig, we should add a --validateLib, which looks at the package.json in the current directory, checks it for a valid entrypoint for library usage (so a "types" field referencing a file or an index.d.ts file), then loads up the .d.ts files found into a compilation, checks them, and issues errors if any .d.ts files within the project are not module files/have triple slash references.
cc @DanielRosenwasser

I would say this should be a standalone tool. either way, we should implement the logic as proposed.

ATTW FTW


Update kedro dependencies

Update plugin dependencies to recent versions:
kedro - 0.18.*

Support for further versions of kedro, airflow and mlflow
This plugin requires dependency updates, with probable breaking changes. This prevents users from using latest and greatest mlflow, kedro and airflow versions which is not only important feature-wise but also from the security standpoint as there are critical CVEs.
Looking at setup.py - the culprits are:
Kedro locked to an old version
"kedro>=0.16, <0.18",
Dependent plugin which prevents update to MLFlow 2.X
kedro-mlflow==0.4.1"
Outdated Airflow Plugins
"apache-airflow[kubernetes]==2.1.0",
"apache-airflow-providers-cncf kubernetes==1.1.0",
"apache-airflow-providers-apache-spark==2.0.1"\


Missing Purges

Noticed this while setting up new mirror. We don't seem to be purging project/<normalized_name> key when projects are deleted.
This leads bandersnatch to get confused and fall behind until the key is purged so the JSON api returns a 404

Also appears to miss purges due to maintainership changes and _pypi_hidden (legacy) changes.

Legacy doesn't purge Warehouse at all

fine with me, pypi_hidden is useless in warehouse anyways.

👍

pypi-legacy interference resolved in https://github.com/pypa/pypi-legacy/pull/785
Still need maintainer changes to purge project/ keys though.

Should just require adding:
    config.register_origin_cache_keys(
         Role,
         purge_keys=[
             key_factory("user/{obj.user.username}"),
             key_factory("project/{obj.project.normalized_name}")
         ],
     )


Feature request: ability to set OFFSET variable

I like to request to have a feature that can handle TIMESTAMP variable in a steam
https://docs.snowflake.com/en/sql-reference/sql/create-stream#using-time-travel-with-the-source-table
example: if i want to reload the data from from August 1, then this package should recreate streams )
eg: dbt run --vars {{TIMESTAMP: '01/08/2023 00:00:00'}}
- CREATE STREAM mystream ON TABLE mytable AT (TIMESTAMP => TO_TIMESTAMP_TZ('TIMESTAMP: '01/08/2023 00:00:00', 'mm/dd/yyyy hh24:mi:ss'));
If this variable is not defined, then stream should work naturally (without any offset)
This feature will help users to reload/reprocess historical data from any point in time during any incidents etc (a very common use case in our company and other customers as well)

TIMESTAMP var is now supported


Random listener updates if jwk entry has multiple keys

Is this the right place to submit this?

[X] This is not a security vulnerability or a crashing bug
[X] This is not a question about how to use Istio

Bug Description
When using Requestauthentication with jwksUri returning multiple keys (standard ory hydra setup) we can see random listener updates triggered by changing the order in config :
#istioctl proxy-status
Clusters Match
Listeners Don't Match
--- Istiod Listeners
+++ Envoy Listeners
@@ -14638,15 +14638,15 @@
                                                 "name": "envoy.filters.http.jwt_authn",
                                                 "typedConfig": {
                                                     "@type": "type.googleapis.com/envoy.extensions.filters.http.jwt_authn.v3.JwtAuthentication",
                                                     "providers": {
                                                         "origins-0": {
                                                             "issuer": "https://hydra.labs.internal/",
                                                             "localJwks": {
-                                                                "inlineString": "{\"keys\":[{\"use\":\"sig\",\"kty\":\"RSA\",\"kid\":\"9cacd9df-2725-496a-a52a-f0202a2498eb\",\"alg\":\"RS256\",\"n\":\"aaaaa\",\"e\":\"AQAB\"},{\"use\":\"sig\",\"kty\":\"RSA\",\"kid\":\"995777af-157d-4808-91e1-5789952e3633\",\"alg\":\"RS256\",\"n\":\"bbbbb\",\"e\":\"AQAB\"}]}\n"
+                                                                "inlineString": "{\"keys\":[{\"use\":\"sig\",\"kty\":\"RSA\",\"kid\":\"995777af-157d-4808-91e1-5789952e3633\",\"alg\":\"RS256\",\"n\":\"bbbbb\",\"e\":\"AQAB\"},{\"use\":\"sig\",\"kty\":\"RSA\",\"kid\":\"9cacd9df-2725-496a-a52a-f0202a2498eb\",\"alg\":\"RS256\",\"n\":\"aaaaa\",\"e\":\"AQAB\"}]}\n"
                                                             },

well-known/jwks.json  file returned by server:   "keys": [     {       "use": "sig",       "kty": "RSA",       "kid": "9cacd9df-2725-496a-a52a-f0202a2498eb",       "alg": "RS256",       "n": "aaaaa",       "e": "AQAB"     },     {       "use": "sig",       "kty": "RSA",       "kid": "995777af-157d-4808-91e1-5789952e3633",       "alg": "RS256",       "n": "bbbbb",       "e": "AQAB"     }   ] }
Version
istioctl version
client version: 1.22.3
control plane version: 1.22.3
data plane version: 1.22.3 (39 proxies)

kubectl version
Client Version: v1.30.1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.29.6-gke.1038001

Additional Information
No response

Local  jwks does not parse the response of the server. So wondering why the jwks server returns random ordered ks

The response from hydra has always the same order in return

After running the test for an extended period we can see indeed that hydra was the issue here


Read-only root file system

Add readOnlyRootFilesystem to our Deployments and StatefulSets. Why? Cause it's more securer.
One thing I needed to do to make this work was to add a volume for /tmp, which I guess is by default part of /. This resulted in an actual problem in hive-controllers creating a Session for AWS... but I did it for all the things just in case.
This scares me a little bit. For one thing, any time we mess with securityContexts we seem to break our friends running hive under vanilla k8s. But also, who knows what corner cases are expecting to be able to write somewhere in the root file system? We won't find out if, like, trying to use additional certs under OpenStack is a problem until some customer tries it.
HIVE-2350

/hold for testing and risk assessment
/test e2e-gcp
/test e2e-azure

/test security
just to make sure we didn't pick up any others before I fix this

Glad I checked. Resolving the two new vulns via HIVE-2398 / #2180.

/test security

/hold cancel
:crossed_fingers:

/override ci/prow/security
Same low-sev, not-yet-fixed vuln we've been tracking.

/cherry-pick mce-2.5


⚠ Bofrost.at has degraded performance

In 0eac7d4, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 925 ms

Resolved: Bofrost.at performance has improved in 99dce96.


update the domain to prow.ppc64le-cloud.org

/cc @Rajalakshmi-Girish

/meow

@mkumatag:

In response to this:

/meow

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: mkumatag
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [mkumatag]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mkumatag: Updated the config configmap in namespace prow at cluster default using the following files:

key config.yaml using file config/prow/config.yaml

In response to this:

/cc @Rajalakshmi-Girish

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.


Minor spec utility helper

Think this change is worth making?  I think it's helpful because each test case shows up as a different case:
rails redirect with flash snippet
  with fakefs
    uses shorter syntax for :notice
    does not rewrite if flash and redirect are not adjacent
    uses longer syntax for :error
    uses shorter syntax for :alert
    uses longer syntax for :message

and the helper can handle the mkdir_p call.   No worries if you think it's not a change worth making though.

Coverage decreased (-0.4%) to 99.512% when pulling ed4e240ce1c0ae9c1cb4dd0bde8887e5887861bd on tcopeland:test_structure_tweak into 32b505a84eb2e5b70bafdd839a57a0811ceb3d23 on xinminlabs:master.

Coverage increased (+0.0001%) to 99.919% when pulling 25b41f38baf69a6cf15aaeca15fc89b135fb6ddc on tcopeland:test_structure_tweak into 18e972899636b044ce85ccf9fc70d15d03557d4e on xinminlabs:master.

@flyerhzm oops I had meant to put a yield in the helper method so that an individual spec could do anything else it needed before and after the @rewriter.process call.  Fix pushed.
Although, now that you say that, maybe having that helper method call @rewriter.process is good enough and client code would be reduced to:
verify 'app/controllers/posts_controller.rb', posts_controller_content, posts_controller_rewritten_content

I guess it depends on how much the specs need to do before/after processing.  I see upgrade_4_0_to_4_1_spec calls @rewriter.warnings after processing, but we could have the helper method return the @rewriter object which would handle that scenario.
I think that seems simpler; I'll modify this PR to do that if you agree.

@tommotorefi I think it's good to use yield/block, which is more flexible.


Hello Triangle sample crash on some device but working on others.

Describe the bug
When trying to run from Android Studio on a relatively old device Sony Xperia Z3 (runs Android 6.0 and supports OpenGL ES 3.0), the sample crash with the following stacktrace.
java.lang.UnsatisfiedLinkError: dlopen failed: cannot locate symbol "__aeabi_memmove8" referenced by "/data/app/com.google.android.filament.ibl-1/lib/arm/libfilament-jni.so"...
        at java.lang.Runtime.loadLibrary(Runtime.java:372)
        at java.lang.System.loadLibrary(System.java:1076)
        at com.google.android.filament.Filament.<clinit>(Filament.java:22)
        at com.google.android.filament.Filament.init(Filament.java:30)
        at com.google.android.filament.ibl.MainActivity.<clinit>(MainActivity.kt:41)
        at java.lang.Class.newInstance(Native Method)
        at android.app.Instrumentation.newActivity(Instrumentation.java:1068)

To Reproduce
Steps to reproduce the behavior:

./build.sh -p desktop -i release
./build.sh -p android release
./gradlew :samples:sample-hello-triangle:installDebug

Expected behavior
Application runs normally
Smartphone (please complete the following information):

Device: Sony Xperia Z3
OS: Android 6.0

Additional context
The same sample runs on a newer device (Samsung S10e), and AVD (after forcing it to use OpenGL ES 3.0).
Note: Using the latest master.

We recently made a fix for this. Let us know if it still happens.


Add technology names to doc titles and h1's to improve discoverability in search

Task:
Improve search
Add ASP.NET technology names to doc titles and H1's where feasible across the entire doc set. Both ASP.NET Core and ASP.NET.
Background:
This seems trivial but it makes a difference. Where we have corrected this so far we see around a 40% increase in clicks from search with indications that the community is getting to where they need to be rather than having to visit pages and read details to determine if the topic is applicable to their need.
Here is an example: https://docs.microsoft.com/en-us/aspnet/core/mvc/controllers/routing
Page title (metadata): You can do the following either across a content set via a file in the repo, or for each article individually as it appears was done so far.
Change: title: Routing to Controller Actions
To: title: Routing to Controller Actions - ASP.NET Core MVC  [Note hyphen in place of text: You don’t need to add a complete phrase.]
H1:
Change: # Routing to Controller Actions in ASP.NET Core MVC
To: # Routing Controller Actions in ASP.NET Core MVC
Verify the rich snippet results in search engines on a few as you go to make sure we are getting the results.

@rachelappel @scottaddie  let;s try to do this when reviewing articles.

Add ASP.NET technology names to doc titles and H1's where feasible across the entire doc set. Both ASP.NET Core and ASP.NET.

For the sake of clarity, is @wadepickett referring to the "title" metadata value when he says "doc titles"?

For the sake of clarity, is @wadepickett referring to the "title" metadata value when he says "doc titles"?

I think so. We also need to honor the character limit of title meta-data and H1's. @tdykstra  knows what those limit are.

59 and 100 -- https://review.docs.microsoft.com/en-us/help/contribute/contribute-how-to-write-seo-basics?branch=master#page-title-description-and-friendly-filename

@guardrex  how hard would this be to complete?

"doc titles and H1's " so that should be both metadata and the # line

I was working this issue over on :point_right: https://github.com/aspnet/Docs/issues/5280

@rachelappel Yes, I'm doing that over on #5280 ... I just got temporarily slammed with other issues. I can get back to that soon ... maybe even this evening.

The actual comment on that issue that shows what the script is setup to check is this one :point_right: https://github.com/aspnet/Docs/issues/5280#issuecomment-369466835


Develop context storage.

The class should to now all context for the request and repeat one if need.

AI which we started need repeat all context ever request. The storage no need.


How to iterate over all config keys

How can I iterate over all config keys and values?

That method is not documented on that page or anywhere else except the source code :-)   But thank you for the hint. That works.  => SOLVED.

Well, it is not easy to find I agree, but apart from the source code the documentation also points to the Accessible API docs, which in turn lists the #propertyNames() method in its Method Summary


[Sui Code Bug] export declare type Ordering = 'Ascending' | 'Descending';

Steps to Reproduce Issue

Call function => getTransactionsForAddress(param : publickey)
const resultOfdiget = await provider.getTransactionsForAddress(pubkey);

## Expected Result
digests of publickey
e.g.
nWtT9aJrzvjWez5ca6tG6qPS6ZIeJFi8Wg5U5M2NdR4=
## Actual Result
{code: -32602, message: 'invalid type: string "Descending", expected a boolean at line 1 column 12'}
the problem is

Type of Order

export declare type Ordering = 'Ascending' | 'Descending';
<EMAIL_ADDRESS>

Default value of Function

async getTransactionsForAddress(addressID, ordering = "Descending") {
<EMAIL_ADDRESS>
the solution is
change to type to boolean : false / true
## System Information

OS: mac OS monterey 12.6
Compiler<EMAIL_ADDRESS>"^0.15.0",

Hi @DevJihwan -- if you update to the latest version of the TS SDK (0.16.0) you will find that the API has been updated.  We had an issue (#6034) where the TS SDK didn't deploy with the new devnet version, and this seems like a symptom of that.  Thanks for reporting!

Hi @DevJihwan -- if you update to the latest version of the TS SDK (0.16.0) you will find that the API has been updated. We had an issue (#6034) where the TS SDK didn't deploy with the new devnet version, and this seems like a symptom of that. Thanks for reporting!

Okay! thanks. i will try it


Incorrect quotes highlighting

In this code quotes are highlighted even though afaik they shouldn't be

Same thing happens if I somehow modify the second word here

But if I modify "Hello" the highlighting becomes correct

@mximp please, help us here

@yegor256 This issue is a duplicate of objectionary/eo-intellij-plugin#19

@yasamprom it really is, sorry, didn't notice. I can close it then, but pls fix it :))

Duplicate of #19


⚠ Bofrost.at has degraded performance

In 43b7298, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2062 ms

Resolved: Bofrost.at performance has improved in 39a7988.


default message with UTF8 content leads to bad POT content

If you put a default message in a language that implies UTF8, then you get broken encoding in the POT file.
For instance:
                  <FormattedMessage
                    id="InvitationDetails.INVITATION_REJECTED"
                    defaultMessage="rejetée"
                  />

Generates this:
#. [InvitationDetails.INVITATION_ACCEPTED] - undefined
#: messages/_default.json
msgid "acceptÃ©e"
msgstr ""

See also https://github.com/evenchange4/react-intl-po/issues/54 where the lack of headers is pointed.

It's a duplicate of #54, i'm working on a PR about that. Closing.


Which tensorflow version to use?

I'm trying to run ace_run.py, and I get an AttributeError: module 'tensorflow' has no attribute 'gfile' error, which seems to be caused by an incorrect tensorflow version.

I guess it is 1.14


Add dockerfile build args documentation

I had to dig a little bit to find out if it was possible to pass build arguments on a tye.yaml file. Turns out it is possible, it was made on #521, but I didn't find any docs explaining how. I just added a new section to the schema.md, let me know if there's anything I can add to make it more clear.

@danspark Thanks for the contribution.  Would you mind also adding the property to the JSON schema?

@danspark Thanks for the contribution. Would you mind also adding the property to the JSON schema?

Done!


Models are too dark, please add Ambient lighting

Is your feature request related to a problem? Please describe.
The models are too dark on viewport when compared to the other 3d viewing programs.
Here's the comparison image with the window's default 3D Viewer: https://imgur.com/a/pzuUEmb
Describe the solution you'd like
Add ambient light (if already doesn't exist) and an option to increase the ambient light intensity

You can add a hdri to nicely illuminate the model. Works on PBR materials only though.

EXR is not supported yet. You can use your HDR file by using the option --hdri=/path/to/file.hdr or by adding the option directly in your JSON config file.

and an option to increase the ambient light intensity

There is already an option to increase light intensity though. --light-intensity

more info about all the options here: https://f3d.app/doc/user/OPTIONS.html

@Meakk : I think we need to adress this one soon: #34

Agree

None of the solutions provided worked. I've run it with the command that passes hdri and it did show up in the viewport but the model is still dark! I think there's an error in the lighting calculations.
Screenshot comparisons: https://imgur.com/a/pw3fUB7

Yes, FBX files are not using PBR so the hdri will have no effect. Regarding the light intensity option, I think it should work.

Unfortunately I had to uninstall this tool as It didn't met my requirements. I've wanted this mainly for thumbnails in explorer and loading the models really fast but the lighting is suboptimal for my needs so I've switched back to using default 3D Viewer but with another extension for windows called Space Thumbnails that provides the thumbnails I needed.
For anyone having the same problems mainly need the thumbnails can get it from here

Thanks for sharing this great tools I had never heard off before !