Class cast exception

Hello there,
tldr; when i'm trying to start foreground tast I get this exception:
java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
	at com.pravera.flutter_foreground_task.service.ForegroundServiceManager.saveOptions(ForegroundServiceManager.kt:98)
	at com.pravera.flutter_foreground_task.service.ForegroundServiceManager.start(ForegroundServiceManager.kt:24)
	at com.pravera.flutter_foreground_task.MethodCallHandlerImpl.onMethodCall(MethodCallHandlerImpl.kt:47)
	at io.flutter.plugin.common.MethodChannel$IncomingMethodCallHandler.onMessage(MethodChannel.java:233)
	at io.flutter.embedding.engine.dart.DartMessenger.handleMessageFromDart(DartMessenger.java:85)
	at io.flutter.embedding.engine.FlutterJNI.handlePlatformMessage(FlutterJNI.java:818)
	at android.os.MessageQueue.nativePollOnce(Native Method)
	at android.os.MessageQueue.next(MessageQueue.java:325)
	at android.os.Looper.loop(Looper.java:142)
	at android.app.ActivityThread.main(ActivityThread.java:6944)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)

My code is pretty much like in the example and I have no clue where to find the problem. In a task, I'm displaying the timestamp so I do not know what kind of integer is trying to be cast into long.

This is getting weirder and weirder. I took your example and installed it on the device with Android 8.0, when I clicked the start button, the consol shows me only:
[log] 2021-07-14 11:35:00.822222	FlutterForegroundTask started.
and nothing else appears.
The same happened on Android 10 and 11.

@zawadZwd
Can you show me the callback() function you implemented?

Sure thing
void geolocatorCallback() async {
  try {
    FlutterForegroundTask.initDispatcher((timestamp) async {
      var localization = await Geolocator.getCurrentPosition();
      dev.log('timestamp: ${timestamp.toString().substring(0, 19)}');
      FlutterForegroundTask.update(
        notificationTitle: 'Current GPS localization',
        notificationText: '${localization.latitude}, ${localization.longitude}',
      );
    }, onDestroy: (timestamp) async {
      dev.log('geolocatorCallback() is dead.. x_x');
    });
  } catch (e) {
    dev.log('Geolocator callback error: $e');
  }
}

But from my observation looks like the issue occurs after invoking task trigger:
Future<void> turnOnGps() async {
      try {
        var localization = await Geolocator.getCurrentPosition();
        FlutterForegroundTask.start(
          notificationTitle: 'Current GPS localization',
          notificationText: '${localization.latitude}, ${localization.longitude}',
          callback: geolocatorCallback,
        );
      } catch (e) {
        print('Error: $e');
      }
  }

@zawadZwd
yes. I'll test it in a little bit and let you know the results.

@zawadZwd
The first issue is a type casting error that can be fixed quickly. I will update it as soon as possible to prevent any bugs from occurring :)
The second issue is most likely a permission issue. Check this out.

Make sure you have added background permission.

<uses-permission android:name="android.permission.ACCESS_BACKGROUND_LOCATION" />

Make sure the location permission is always allowed. I recently saw a problem with the Geolocator plugin that didn't work well for permission requests. https://github.com/Baseflow/flutter-geolocator/issues/771

This is the best way to do this if you are providing streams to the plugins you want to use.

void callback() {
  final positionStream = Geolocator.getPositionStream();
  StreamSubscription<Position>? streamSubscription;

  FlutterForegroundTask.initDispatcher((timestamp) async {
    if (streamSubscription != null) return;

    streamSubscription = positionStream.listen((event) {
      print('timestamp: ${timestamp.toString()}');

      FlutterForegroundTask.update(
          notificationTitle: 'Current GPS localization',
          notificationText: '${event.latitude}, ${event.longitude}');
    });
  }, onDestroy: (timestamp) async {
    await streamSubscription?.cancel();
    print('callback() is dead.. x_x');
  });
}

@zawadZwd
Fixed a type casting error. Upgrade to flutter_foreground_task: ^2.0.5.

You rock! Things work perfectly fine now :)
fun - and strange - fact is the previous version, ^2.0.4, worked well on M1 Macbook with the Android emulator, after cloning repo to windows, it stops. But now it doesn't even matter ;) time to close it. Thank you very very much!


Frequent Lost Connection and Reestablished issues

Preconditions

[X] Requirements fulfilled
[X] The known issues did not answer my question
[X] The question has not been asked in the past or the answer does not satisfy me
[X] There is currently no other opened issue that matches my question
[X] I cannot find any answer to my question in GitHub discussions

Current Situation
I'm getting frequent connection losses which almost always happens while watching something.  This is on 3rd generation ATV 4K.  The ATV is connected via GigE as is my Homebridge server running via Docker image on a Synology DS220+.  Both are connected via GigE on a flat (single subnet) network.  The Synology has over 2GB RAM free at all times and CPU load is very low at all times.  The ATV is currently running tvOS 18 but this issue has been happening before upgrading to tvOS 18 and has persisted through various versions of the plugin.
The issue is typically no bother except when it occurs seemingly at exactly the time I'm "powering off" the ATV via the original remote.  My only reason for using the plugin is to catch the "power off" even to trigger control of various lights so when it occurs at these times, my automation fails to trigger.  It doesn't happen every time I power off, or at least not such that it causes my automation to fail to run.
The connection losses do seem to occasionally happen while there's no interaction with the ATV (ie. in the middle of something actually being played).  Reviewing the logs, it appears that most of the connection losses occur when switching between apps.  As I think about my nightly pattern and tie it back to the logs, I do see some consistency in many of the connection losses.    I also tend to return the "cursor" back to our primary used app (YouTube TV) and "park" the cursor there, without actually launching the app, then power off.  I'm certain there are times where I power off more quickly and other times when it may be a few seconds before I power off.  Perhaps when I take more time in doing so, the connection has time to reestablish to catch the power off event and successfully trigger the automation?  Nonetheless, if the connection losses weren't happening at all, this would never be an issue.
Logs
log attached

Configuration
{
    "name": "Apple TV Enhanced",
    "deviceStateDelay": 0,
    "avadaKedavraAppAmount": 15,
    "disableVolumeControlRemote": false,
    "absoluteVolumeControl": false,
    "discover": {
        "multicast": true,
        "blacklist": [
            "<IP_ADDRESS>",
            "08:66:98:ED:B8:AB",
            "<IP_ADDRESS>",
            "08:66:98:D9:92:78"
        ]
    },
    "forceVenvRecreate": false,
    "logLevel": 3,
    "updateCheckLevel": "stable",
    "updateCheckTime": 3,
    "deviceSpecificOverrides": [
        {
            "overrideMediaTypes": false,
            "overrideDeviceStates": false,
            "overrideDeviceStateDelay": false,
            "deviceStateDelay": 0,
            "overrideRemoteKeysAsSwitch": false,
            "overrideAvadaKedavraAppAmount": false,
            "avadaKedavraAppAmount": 15,
            "overrideCustomInputURIs": false,
            "overrideDisableVolumeControlRemote": false,
            "disableVolumeControlRemote": false,
            "overrideAbsoluteVolumeControl": false,
            "absoluteVolumeControl": false
        }
    ],
    "_bridge": {
        "username": "0E:23:05:E0:89:CE",
        "port": 33401
    },
    "platform": "AppleTVEnhanced"
}

Operating System
Linux
Operating System: Bits
64-bit
Operating System: Distribution
Ubuntu (running command in HB terminal
Operating System: Distribution Version
22.04.5 LTS (Jammy Jellyfish) in HB terminal, Synology OS is DSM 7.2.2-72806
Docker
no
Docker Image
None
Docker Image Tag
2024-10-25
Homebridge Version
1.8.5
Homebridge Config UI Version
v4.62.0
Homebridge Storage Path
/var/lib/homebridge
Homebridge Apple TV Enhanced Version
1.9.1
Node Version
v20.18.0
NPM Version
10.8.2
Python Version
3.10.12
PIP Version
22.0.2
HDMI Hops
Polk Magnifi Max AX sound bar
Audio Output
no
Same Subnet
yes
Additional Context
homebridge-appletv-enhanced.log.txt
Log is not in debug mode because I didn't have it in debug at the time the most recent issue occurred.  If necessary, I can put in debug and attempt to reproduce.
I'm leaving the MAC addresses in the log to make it easy to tell the difference between our main TV (which my automations are tied to) and a bedroom unit (which is WiFi connected) but the bedroom unit isn't currently used for any automations thus it's a non-issue on that one.  Also, the times to look at would be those happening sometime after 9pm, typically closer to 9:30-10pm, as that's our watching pattern and when an automation is supposed to trigger on power off.

After looking over the attached log again, I noticed one obvious issue that I had overlooked earlier.  On 10/28 @ 9:31pm, you can see where I exited the app I was previously in (Plex beginning at 8:10pm), back to the Home Screen, parked the cursor on the YouTube TV app icon, then powered off.  My automation worked that night and there likely was a 7sec or so pause between exiting Plex and turning off the ATV.
If you look at 10/29 @ 9:55pm, you can see a similar pattern, though this time exiting Apple's app, but you never see the "active state off" message that should have followed the "current app....YouTube tv" message.   And 10/29 was one of the nights that my automation failed to run.
It definitely seems that the exiting of apps is where the connection losses are coming from and the connection not reestablishing in time before I turn it off causes that state change to be missed and ultimately my automation to not trigger.

After looking over the attached log again, I noticed one obvious issue that I had overlooked earlier. On 10/28 @ 9:31pm, you can see where I exited the app I was previously in (Plex beginning at 8:10pm), back to the Home Screen, parked the cursor on the YouTube TV app icon, then powered off. My automation worked that night and there likely was a 7sec or so pause between exiting Plex and turning off the ATV.
If you look at 10/29 @ 9:55pm, you can see a similar pattern, though this time exiting Apple's app, but you never see the "active state off" message that should have followed the "current app....YouTube tv" message. And 10/29 was one of the nights that my automation failed to run.
It definitely seems that the exiting of apps is where the connection losses are coming from and the connection not reestablishing in time before I turn it off causes that state change to be missed and ultimately my automation to not trigger.

Honestly, I think you are overthinking it a bit. There are times where the plugin is loosing connection every few minutes. It is likely a problem with your network. In any case, the plugin is utilizing the project pyatv which is doing the heavy lifting in the background. So if pyatv looses the conneciton, my plugin just kills the old process and spins up another process of atvscript push_update. So if you think the root cause is not your network, go ahead and open an issue here.


[SPARK-22644][ML][TEST][WIP] Make ML testsuite support StructuredStreaming test

What changes were proposed in this pull request?
We need to add some helper code to make testing ML transformers & models easier with streaming data. These tests might help us catch any remaining issues and we could encourage future PRs to use these tests to prevent new Models & Transformers from having issues.
I add a MLTest trait which extends StreamTest trait, and override createSparkSession. So ML testsuite can only extend MLTest, to use both ML & Stream test util functions.
I only modify one testcase in LinearRegressionSuite, for first pass review.
Link to #19746
How was this patch tested?
N/A

Test build #84286 has started for PR 19843 at commit 072f4b9.

Test build #84287 has started for PR 19843 at commit 08954fe.

Test build #84287 has finished for PR 19843 at commit 08954fe.

This patch fails due to an unknown error code, -9.
This patch merges cleanly.
This patch adds no public classes.

Test build #84286 has finished for PR 19843 at commit 072f4b9.

This patch fails due to an unknown error code, -9.
This patch merges cleanly.
This patch adds the following public classes (experimental):
class LinearRegressionSuite extends MLTest with DefaultReadWriteTest
trait MLTest extends StreamTest with TempDirectory
trait TransformerStreamTest extends StreamTest
  case class CheckAnswerRows(expectedAnswer: Seq[Row], lastOnly: Boolean, isSorted: Boolean,

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/84287/
Test FAILed.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/84286/
Test FAILed.

Jenkins retest this please.

Test build #84290 has started for PR 19843 at commit 08954fe.

@MrBago @jkbradley

Test build #84290 has finished for PR 19843 at commit 08954fe.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/84290/
Test PASSed.

@MrBago Thanks!
I update code, now new action class CheckAnswerRowsByFunc is added. I do not add common trait as both of them are simple and I don't want to break old code.

Test build #84328 has started for PR 19843 at commit ea19849.

Test build #84328 has finished for PR 19843 at commit ea19849.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
  case class CheckAnswerRows(expectedAnswer: Seq[Row], lastOnly: Boolean, isSorted: Boolean)
  case class CheckAnswerRowsByFunc(checkFunction: Row => Unit, lastOnly: Boolean)

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/84328/
Test PASSed.

Merged build finished. Test PASSed.

This looks awesome; I just had a couple of comments.  Btw, this is fancy test code.  It might be nice to add a little unit test to MLTest.scala to make sure that testTransformer does indeed fail when the per-row check fails.

add UT for MLTest and change to use PipelineModel.

Test build #84600 has started for PR 19843 at commit 8318611.

Test build #84600 has finished for PR 19843 at commit 8318611.

This patch passes all tests.
This patch merges cleanly.
This patch adds the following public classes (experimental):
class MLTestSuite extends MLTest

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/84600/
Test PASSed.

I'll make a call: Given that the SQL tests do not use clearActive, let's not bother with it.  If we see flakiness, then we can try adding clearActive as a fix.

Test build #84637 has started for PR 19843 at commit 9629b31.

Test build #84637 has finished for PR 19843 at commit 9629b31.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/84637/
Test PASSed.

Merged build finished. Test PASSed.

Also, can you please remove "WIP" from the PR title and update the Testing part of the PR description?

LGTM, but I'll wait for the PR title & description updates to merge this.  Thanks!

Test build #84675 has started for PR 19843 at commit 930c113.

Test build #84675 has finished for PR 19843 at commit 930c113.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/84675/
Test PASSed.

LGTM
Will merge after fresh tests

Test build #4008 has started for PR 19843 at commit 930c113.

Test build #4008 has finished for PR 19843 at commit 930c113.

This patch fails Scala style tests.
This patch merges cleanly.
This patch adds no public classes.

retest this please

Test build #84796 has started for PR 19843 at commit 930c113.

That failure was caused by a bad change elsewhere which has been reverted.  Testing again...

Test build #4009 has started for PR 19843 at commit 930c113.

Test build #84796 has finished for PR 19843 at commit 930c113.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/84796/
Test PASSed.

Test build #4009 has finished for PR 19843 at commit 930c113.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merging with master
Thanks @WeichenXu123 and @MrBago !


Add canceled subscription functionality

What's this PR do?

adds webhook pieces that listen for a subscription cancelled event and react accordingly
cleans up the new stripe subscription pieces
restructures quarantined records to use the legacy donation flow for now

Why are we doing this? How does it help us?

we need to account for cancelled subscriptions
quarantined records are too much of a bear to lump in with non-quarantined records on /donate

we'll have to have further discussions on how we want to handle these going forward, but this works in the meantime

How should this be manually tested?
Running through the same steps as seen in this pr but in staging and sans the set up steps should suffice. Should also test giving a donation that would naturally be quarantined.
How should this change be communicated to end users?
We'll let membership know when the new updates are launched
Are there any smells or added technical debt to note?
As mentioned above, this solution for quarantined records is only temporary until we can get a better handle on what needs the membership team has for quarantined records
What are the relevant tickets?
Have you done the following, if applicable:
(optional: add explanation between parentheses)

[x] Added automated tests? ( )
[ ] Tested manually on mobile? ( )
[ ] Checked BrowserStack? ( )
[ ] Checked for performance implications? ( )
[ ] Checked accessibility? ( )
[ ] Checked for security implications? ( )
[ ] Updated the documentation/wiki? ( )

TODOs / next steps:

[ ] your TODO here

No surprises on my end after testing on staging. I saw my donations as expected based on the test steps from PR #1073
I have to admit that I didn't go through the code changes too thoroughly. I started to attempt to compare how we handled quarantined donations in the add_donation method (before) vs. the add_stripe_donation (after) but I got kinda turned around. I think the code will be more clear after everything is on the new system in which case we can make stuff more DRY and readable. In my mind if your testing of the quarantined flow works, we should be safe. Happy to meet tomorrow AM if you want to look at that part together

Yeah, it will be much cleaner when everything is on the same page, for sure. Thanks for testing it.


type alias failing type check after 2.3.1 update

TypeScript Version:  2.3.1
type ResponseTypes = "" | "json" | "text";

interface Test {
    responseType: string | ResponseTypes;
}

let t: Test = {
    responseType: "json"
};

let tt: ResponseTypes;

tt = t.responseType;

Expected behavior: should not give error on type checking for above code, but it gives error stating "Type 'string' is not assignable to type 'ResponseTypes'.". this was working fine with 2.2 and start breaking with 2.3.1
Actual behavior: should allow proper type checking when using type aliases

because there is a string in the list of types, it is treated as "string".  string is a super type of any literal string type. so string  | "json" | "text" is just string.

Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.


[FolioReaderKit.FolioReaderCenter respondsToSelector:]: message sent to deallocated instance 0x7fb6f6188a00

Version used: pod 'FolioReaderKit', '~> 0.8'

Recreation of bug:
In our project we launch the FolioReader in one view controller (Page A)
A user will close Page A to then do a push to Page B
On page B there is a normal vanilla UITextField with delegates, etc.
If a user
(a) launches the  FolioReader,
(b) then closes it
(c) goes Page B
(d) Presses on a given UITextField
A crash occurs, I was only able to locate the crash using Zombies
The crash states:

[FolioReaderKit.FolioReaderCenter respondsToSelector:]: message sent to deallocated instance 0x7fb6f6188a00

My code to call the FolioReader is thus:
if let path = bookPath {
                    print ("Attempting to open eBook at path: \(bookPath)")
                    dispatch_async(dispatch_get_main_queue(), {
                        let config = FolioReaderConfig()
                        FolioReader.presentReader(parentViewController: self, withEpubPath: path, andConfig: config, shouldRemoveEpub: true, animated: true)
                    })
                }
                else {
                    print ("Error: Unable to open ebook")
                }

It does not matter if I wrap it in a Dispatch or not.

Seems to be the same issue as:  https://github.com/FolioReader/FolioReaderKit/issues/187


Other Request Handlers....

Hello David,
I have been away for a while, but as I mentioned in my last post https://github.com/TooTallNate/Java-WebSocket/issues/197 I'd be back :)
Previously I had mentioned that I'd like to have a call-back for the user, so HTTP requests could be relayed to the user's code.  I'm still very interested in this topic.
There seems to have been a lot of activity to Java-websockets project.  Again, thanks for
sharing such a great project.  I've looked over some of the design and code and appreciate the
density of functionality and compactness.  It's nice to have a well designed project without a bazillion dependencies dragged along.
Nice !
I've noticed the clientHeader is no longer available and the decoding is attempted in each Draft.
It made me think that if the Draft decoding finishes and there were no successful upgrades, then
that would be the time for the connection to be sent to the user.
This is my attempt to implement the "non-websocket" call back.
I tried to implement it with the least amount of impact and following the same style and design as what I saw in java_websockets
The changes are small and confined only to two files:
WebSocketImpl.java - had to handle draft == null on opening and closing connections
WebSocketListener.java gets a new callback method :
/** This method is activated when no valid websocket Draft is found. */
public void onRawOpen(WebSocket conn, ByteBuffer d);
An example of a silly HTTP 1.0 response would be the following:
@Override
public void onRawOpen(WebSocket conn, ByteBuffer d) {
String s = new String(d.array());
String sub = s.substring(0, d.limit());
    log.info(String.format("onRawOpen %s", sub));
    String response =
        "HTTP/1.0 200 OK\r\n"
                    + "Content-Type: text/html; charset=utf-8\r\n"
                    + "\r\n"
                    + "<html>\r\n"
                    + "hello java_websocket !\r\n"
                    + "</html>\r\n"
                    + "\r\n";
    conn.send(response);
    conn.close();
}

Obviously, more dynamic response handlers could be used, but all would depend on the users code and not Java-WebSocket library.
The user would then have the ability to implement any type of response handler they thought was important.. e.g.
HTTP 1.1, REST API, SOAP, JSP etc, etc....
without further changes to the java-websocket library.
I would like to send you the 2 files for you to review...
Thanks.
Regards,
Greg.

Closing this issue for #490
Greetings
marci4


Fix #29: Added cog for avatar spookification.

.savatar or .spookyavatar or .spookify manipulates the user's avatar and sends back an embedded, scarier image.

Hello, I am working on a different issue on this project, but am unable to figure out the ctx parameter. I am unsure how this parameter works, and what value to actually pass into it. I am aware there is little to no documentation on this yet, wondering if anyone could help?

Please don't comment on random PRs that are unrelated to the issue you're working on.
The documentation for Context is found here: https://discordpy.readthedocs.io/en/rewrite/ext/commands/api.html#discord.ext.commands.Context


Tasks on executor can fail silently

Exceptions raised in threads,  even non-daemon threads, are not propagated. Exceptions and traceback are printed to std-err. This means a task in a thread can get an exception and not be able to send a status update, so the failure  is invisible to the scheduler. To fix this I am doing a try-except within the thread target method to insure that a status update with the exception message and traceback is always sent to the framework.

Closed via 9b1b6c00a05a3d6ab3b0ebd984dd3c7ff23cb97f


SendOneLamportToRandomAddress not working

import { WalletAdapterNetwork, WalletNotConnectedError } from '@solana/wallet-adapter-base';
import { ConnectionProvider, WalletProvider, useConnection, useWallet } from '@solana/wallet-adapter-react';
import { WalletConnectButton, WalletDisconnectButton, WalletModalProvider, WalletMultiButton } from '@solana/wallet-adapter-react-ui';
import { PhantomWalletAdapter, SlopeWalletAdapter, SolflareWalletAdapter } from '@solana/wallet-adapter-wallets';
import { clusterApiUrl, Keypair, SystemProgram, Transaction } from<EMAIL_ADDRESS>import React, { FC, ReactNode, useMemo, useCallback, useState } from 'react';

require('./App.css');
require('@solana/wallet-adapter-react-ui/styles.css');

const App: FC = () => {
    return (
        <Context>
            <Content />
        </Context>
    );
};
export default App;

const Context: FC<{ children: ReactNode }> = ({ children }) => {
    // The network can be set to 'devnet', 'testnet', or 'mainnet-beta'.
    const network = WalletAdapterNetwork.Devnet;

    // You can also provide a custom RPC endpoint.
    const endpoint = useMemo(() => clusterApiUrl(network), [network]);

    const wallets = useMemo(
        () => [
            /**
             * Select the wallets you wish to support, by instantiating wallet adapters here.
             *
             * Common adapters can be found in the npm package `@solana/wallet-adapter-wallets`.
             * That package supports tree shaking and lazy loading -- only the wallets you import
             * will be compiled into your application, and only the dependencies of wallets that
             * your users connect to will be loaded.
             */
            new PhantomWalletAdapter(),
            new SlopeWalletAdapter(),
            new SolflareWalletAdapter(),
        ],
        []
    );

    return (
        <ConnectionProvider endpoint={endpoint}>
            <WalletProvider wallets={wallets} autoConnect>
                <WalletModalProvider>{children}</WalletModalProvider>
            </WalletProvider>
        </ConnectionProvider>
    );
};

export const SendOneLamportToRandomAddress: FC = () => {
    const { connection } = useConnection();
    const { publicKey, sendTransaction } = useWallet();

    const onClick = useCallback(async () => {
        if (!publicKey) throw new WalletNotConnectedError();

        const transaction = new Transaction().add(
            SystemProgram.transfer({
                fromPubkey: publicKey,
                toPubkey: Keypair.generate().publicKey,
                lamports: 1,
            })
        );

        const {
            context: { slot: minContextSlot },
            value: { blockhash, lastValidBlockHeight }
        } = await connection.getLatestBlockhashAndContext();

        const signature = await sendTransaction(transaction, connection, { minContextSlot });

        await connection.confirmTransaction({ blockhash, lastValidBlockHeight, signature });
    }, [publicKey, sendTransaction, connection]);

    return (
        <button onClick={onClick} disabled={!publicKey}>
            Send 1 lamport to a random address!
        </button>
    );
};

const Content: FC = () => {
    return (
        <div className="App">
            <WalletMultiButton />
            <WalletDisconnectButton />
            <SendOneLamportToRandomAddress />
        </div>
    );
};

CONSOLE ERRORS:
Warning: ReactDOM.render is no longer supported in React 18.
Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17.
Learn more: https://reactjs.org/link/switch-to-createroot

Uncaught (in promise) ReferenceError: Buffer is not defined
    at toBufferLE (browser.js:48:1)
    at bigIntLayout.encode (bigint.ts:30:1)
    at Structure.encode (Layout.ts:1205:1)
    at encodeData (instruction.ts:32:1)
    at SystemProgram.transfer (system.ts:796:1)
    at App.tsx:62:1
    at HTMLUnknownElement.callCallback (react-dom.development.js:4164:1)
    at Object.invokeGuardedCallbackDev (react-dom.development.js:4213:1)
    at invokeGuardedCallback (react-dom.development.js:4277:1)
    at invokeGuardedCallbackAndCatchFirstError (react-dom.development.js:4291:1)

i had this error but resolved it by
first then
npm install --save buffer
then adding to the code
import { Buffer } from "buffer";
Buffer.from("anything", "base64");
window.Buffer = window.Buffer || require("buffer").Buffer;

As @hourzn mentioned, this is because you're missing a polyfill for Buffer. Assuming you're using Create React App, it doesn't polyfill things by default. You need to configure it to go so, with react-app-rewired. I recommend using this starter project, which already has the dependencies and config you need.
https://github.com/solana-labs/wallet-adapter/blob/master/packages/starter/create-react-app-starter/config-overrides.js

As @hourzn mentioned, this is because you're missing a polyfill for Buffer. Assuming you're using Create React App, it doesn't polyfill things by default. You need to configure it to go so, with react-app-rewired. I recommend using this starter project, which already has the dependencies and config you need.
https://github.com/solana-labs/wallet-adapter/blob/master/packages/starter/create-react-app-starter/config-overrides.js

thank for answer, but im using this starter


"Launch Stack" link is not working

"Launch Stack" button's link is not working. I get 2 error messages in Cloudformation console.
You must specify a Stack ID. Displaying your Stacks page.
S3 error: Access Denied For more information check http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html

Resolved this by making the stack public.
If you are looking for AWS Step Functions support, consider running the "Launch Stack" from this branch which will be merged into master shortly.  https://github.com/aws-samples/amazon-sagemaker-safe-deployment-pipeline/tree/sfn-workflow


Make original lodash accessible from lodash-fp or provide a factory to bower that takes lodash as a parameter

I want to put this in production, but lodash is already present I can't justify the extra page weight from loading lodash twice.
This was brought up before, but my suggesion is a bit different. Please either expose the bundled lodash (so I can just use this lib and reference the unmodified lodash for the legacy stuff), or provide a small factory in the bower repo that takes lodash as a parameter (but does not bundle lodash).

Yep, I'll likely expose the convert module.

The current convert module requires in individual lodash modules, so I just want to be sure your intention is to handle the case where all of lodash is loaded in a browser scenario - in my case with AMD, but it should work with or without a module loader. I would imagine convert optionally taking in a lodash parameter. Is that your current line of thinking?

Cool, with a little tweaking the convert method will bundle to 1.78 kB gzipped.

Patched https://github.com/lodash/lodash-fp/commit/e0fc551d9ad0cd7f8a577e99e161e66d03244ef9.


ThriftScanner.serversWaitedForWrites - what does this do?

There is some confusing logic/use of this static map that I don't understand. In the places that it's updated, servers are only added to it, never removed. In the way that it's used, it sets the boolean waitForWrites to true if the map does not contain the tablet server address, then add's the server address to it. So, waitForWrites is only true the first time, and false every time after, for a particular server for the life of the Accumulo Client. On the server side, the ThriftScanClientHandler.start(Multi)Scan methods wait for writes to complete, then continue the scan. But again, it looks like it will only ever wait for the first scan for a table from a particular client. I don't see where this has anything to do with writes. Maybe some code got removed in an prior version that removed added/removed servers from this object? This situation appears the same in the 1.10 code too.

I went back to version 1.3.5 and the code looks the same.


Revert "Consistently format dates in ERB"

Reverts alphagov/smart-answers#3270

 Revert "Consistently format dates in ERB"


chore(flags): Remove old feature flags

Description

Notice

[x] Have you followed the guidelines in our Contributing guide?
[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[x] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[ ] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)

closes #2995
Risk

Testing

Engineering

Operations

Screenshots (if applicable)

Converting to draft until this PR is ready.

I'll run the lint and fix the errors

Also @developerfred please ensure the template is filled out before opening.
Closing this PR until the contribution guidelines have been followed.

@0xApotheosis done here https://github.com/developerfred/shapeshift-web/commit/b905b9c8a98e63034f7f2a7e91be5a552741b32c

@developerfred still no PR template?

@developerfred please do not apply for future bounties.

@0xdef1cafe ok, thanks! sorry about this.


Changed assets root to relative in production mode

The less places to change config values we have the better would be. All works fine with relative path to assets so why not use it.
Personally I've spent at least some hours trying to figure out why SVGs weren't showing. Had to open dev console, see that some scripts are trying to be searched on saleor-demo aws cloud, grep the thing. Hopefully, I found what was wrong, but someone may not.

Codecov Report

Merging #1066 into master will decrease coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1066      +/-   ##
==========================================
- Coverage   63.42%   63.38%   -0.04%
==========================================
  Files         105      105
  Lines        5818     5818
  Branches      721      721
==========================================
- Hits         3690     3688       -2
  Misses       1991     1991
- Partials      137      139       +2

Impacted Files
Coverage Δ

saleor/core/utils/random_data.py
83.2% <0%> (-0.79%)
:arrow_down:

Continue to review full report at Codecov.

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

I agree that hardcoding the path here is problematic. We wanted to do a similar change and drop filename hashing on Webpack level and enable it on Django's collectstatic level (not all files are processed by Webpack but all should be properly hashed).

@patrys
Sounds great. Anyway, I'm currently working solo on project and implementing this seems overkill in my case, at least for now.
However I would do commits on any widely useful results I'd have

This has been recently resolved by using the environmental variable.


Error occurd when create Xcode project using Tulsi

Hi, Thanks for your great job. But when I installed the Tulsi and then tried to generate the Xcode project, I got the following error :

Any ideas about it ? Or anything I can do ? Looking forward your reply!

Hi,
I had the same problem, I tried many things and probably installing python solved it

@camillol @chuoling @jiuqiant
Camillol - pls see this Tulsi related issue

This is not actually Tulsi-related, it's Bazel failing when fetching external dependencies. In this case, local_config_git is actually required by TensorFlow.
Try a command line build, maybe it will display a better error message.

We are closing this issue for now due to lack of activity.


[BUG] Zep Admin console leaks database password

Describe the bug
The postgres password is incorrectly redacted from the DSN on the Settings page of the Zep Admin dashboard
To Reproduce
Visit the Settings page of the admin dashboard; the database password is visible at Store.Postgres.DSN
See this go playground for a minimal reproduction: https://go.dev/play/p/LTKmPmFcVMh
Expected behavior
The settings page should not display the database password
Logs
N/A
Environment (please complete the following information):

Zep version: v0.21.0
Zep SDK and version: N/A
Deployment: K8S

Additional context
Suggested fix: in the regex, move the case-insensitive flag out of the first group to avoid making it a non-capturing group:
`(?i)(postgres://[^:]+:)([^@]+)`

See this go playground for a minimal reproduction: https://go.dev/play/p/LTKmPmFcVMh

Thanks for reporting!
@ellipsis-dev fix

This has been resolved in v0.22.0. Thanks again for reporting the issue!


Reset initialized flag & instance while destroy(). split PR #1105

Ⅰ. Describe what this PR did
reset initialized flag & instance when destroy RpcClient.
Ⅱ. Does this pull request fix one issue?

fix #983
Ⅲ. Why don't you add test cases (unit test/integration test)?
unit test is included in another PR, for splitting #1105 into 2 PRs.
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews

Codecov Report

Merging #1162 into develop will decrease coverage by 0.05%.
The diff coverage is 0%.

@@              Coverage Diff              @@
##             develop    #1162      +/-   ##
=============================================
- Coverage      41.97%   41.92%   -0.06%
  Complexity      1385     1385
=============================================
  Files            246      246
  Lines          10239    10247       +8
  Branches        1343     1343
=============================================
- Hits            4298     4296       -2
- Misses          5378     5386       +8
- Partials         563      565       +2

Impacted Files
Coverage Δ
Complexity Δ

...main/java/io/seata/core/rpc/netty/RmRpcClient.java
0% <0%> (ø)
0 <0> (ø)
:arrow_down:

...main/java/io/seata/core/rpc/netty/TmRpcClient.java
28.48% <0%> (-0.68%)
12 <0> (ø)

...server/store/file/FileTransactionStoreManager.java
45.64% <0%> (-0.7%)
19% <0%> (ø)

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 3428623...5ad626e. Read the comment docs.

thanks for reply, as #1105 PR include is too big, I have split it into 2 PRs.


yajra Datatables quick search function not searching

Good Day!
I am having a problem with the searching of records in my datatables. Only the tracking_id column can be searched. I need all of the columns to be searched.
Here is my query php code:
$result = Document::join('user','document.user_id','=','user.id')
->join('classification','document.classification_id','=','classification.id')
->select('document.id',DB::raw('CONCAT(document.tracking_type,"-",document.tracking_date,"-",document.tracking_seq_no) AS tracking_id'),'document.date_prepared','document.subject','classification.description as doc_class')
->orderBy('document.created_at','desc')->get();

return Datatables::collection($result)
->addColumn('check',function($record){
    return '<input type="checkbox" name="check['.$record->id.']" class="checkboxes" value='.$record->id.'>';})
->addColumn('action',function($record){
    return 'tracking_id . '">View Record';})
->addColumn('document.tracking_id',function($record){
    return $record->tracking_id;})
->editColumn('document.doc_class',function($record){
    return $record->doc_class;})
->addColumn('document.subject',function($record){
    return $record->subject;})
->addColumn('document.date_prepared',function($record){
    return date('F d, Y', strtotime($record->date_prepared));})
->make(true);

JS Declaration:
docstable = $('.docstable').DataTable({
    processing: true,
    serverSide: true,
    ajax: "/ajax/docrec"
    columnDefs: [
        {targets:[0,1], orderable:false}
    ],
    columns: [
        {data:'check'},
        {data:'action'},
        {data:'tracking_id',name:'document.tracking_id'},
        {data:'doc_class',name:'document.doc_class'},
        {data:'subject',name:'document.subject'},
        {data:'date_prepared',name:'document.date_prepared'}
    ]
});

Is there a way like Bllim Datatables that can search all specified columns by using searchColumns() in php code? Thank you

Quick search in all columns are supported by default but since you are using join queries, there are some changes on how you have to declare the name on your script like on this demo.
BTW, why are using collection instead of eloquent? I suggest you remove get() on your query and use return Datatables::eloquent($result) instead?

Hello !
To me, the global search is always returning a empty result. My datatable is empty after search. Filled up with all data when i remove all search inputs.
But i do it as simple as :
  $users = $this->mainRepo->model->get();         return Datatables::of($users)->make(true);

up ?

@mtx-z when you invoke ->get() you are using collections instead of LDT's object.
$users = User::select(['id', 'name', 'email', 'password', 'created_at', 'updated_at']); //Eloquent Object

$users->all(); // Collection

Laravel Datatables automatically does ->get() and I advice you do not use ->get() when you
return Datatables::of($users)->make(true);

Based on your example you do not need ->get()

$users = $this->mainRepo->model->get(); return Datatables::of($users)->make(true);

just

$users = $this->mainRepo->model; return Datatables::of($users)->make(true);

Hi @ChaosPower and thanks a lot for your answer.
I tried your solution but it didn't worked. Actually $this->mainRepo->model is my model instance, from App\Models. It is binded to the mainRepo stuff but it's not related to my problem.
I updated to have something like this (from my repository) :
$query = $this->model->with($with);
$dataTable ?: $query->orderBy($orderBy, $sort);
return !$dataTable ? $query->get($columns) : $query->select($columns);
I use this method to manage all DataTables data from my models. If the dataTable variable is false, no ordering is applyed, and i use a select('*').
In the end, the chained method could look like :
$this->model->with('relation')->select('*'); where model is App\Models\User.
The column ordering is now working perfectly, but the default text search have still no effect on the search. All results are displayed not depending my input.
Did i done something wrong again ?
Thx a lot for your help

I finally did it :) ty

I also suddenly cannot search relation, I used $this->model->with('relation')->select('*');
mtx-z can you share the solution ?

Hey. The code I used was specific to me.
The this->model contain an instance of my model.
Can you provide your code?

\\ In controller
$result = MsCustomer::with('company')->select('ms_customers.*');
return Datatables::of($result)->make(true);

\\ In view
$('#data-table').DataTable({
    ajax: '{!! route('master.customer.data') !!}',
    columns: [
        { data: 'id', name: 'id' },
        { data: 'code', name: 'code' },
        { data: 'name', name: 'name' },
        { data: 'email', name: 'email' },
        { data: 'company.name', name: 'company.name' },
   ]
});

Datatables run and display data include the relation company.name, but cannot search the relation. I guess, the code already similar like this demo
I have model MsCustomer with declare protected $table = 'ms_customers', also relation 'company' inside MsCustomer model. Then MsCompany model with table name 'ms_companies'.
I can search id, code, name, and email, but not the relation 'company.name'. There is something wrong with above code ?

I have the same problem with @maengkom, my table loaded fine. but when i search the result always empty
in Controller
$agenda = AgendaMasuk::with('surat')             ->whereNotNull('surat_id')->where('group_id', $group->id)             ->select('agenda_masuks.*');         return Datatables::of($agenda)->make(true);
in view
var table = $('#surats').DataTable({         "jQueryUI"   : true,         "paging"     : true,         "lengthMenu" : [ 5, 10, 25, 50, 75, 100, "All" ],         "autoWidth"  : false,         "stateSave"  : false,         "order"      : [[ 0, 'asc' ]],         "processing" : true,         "scrollX"    : true,         "serverSide" : true,         "ajax": {             "url": $('#surats').data('url'),             "type": "POST"         },         "columns": [             {                 className: 'text-center',                 data: 'no_agenda',                 name: 'agenda_masuks.no_agenda'             },             {                 className: 'text-center',                 data: 'surat.no_surat',                 name: 'surat.no_surat'             },             {                 className: 'text-center',                 data: 'tanggal',                 name: 'agenda_masuks.tanggal'             },             {                 data: 'surat.sifat',                 name: 'surat.sifat',                 sortable: false             },             {                 data: 'surat.pengirim',                 name: 'surat.pengirim'             },             {                 data: 'surat.tujuan',                 name: 'surat.tujuan'             },             {                 data: 'surat.ringkasan',                 name: 'surat.ringkasan',                 sortable: false             },             {                 data: null,                 defaultContent: '-',                 name: 'disposisi',                 searchable: false,                 sortable: false             },             {                 data: null,                 defaultContent: '-',                 name: 'file',                 searchable: false,                 sortable: false             }         ]     });

@maengkom I have the same problem, i was not able to use the global search on object values AND relation values (only the id).
For example, all of my models have a "translation_model" associated. Wich contain the public text and only it. Well, my datatable cannot automaticaly search the name of the translations.
To fix that, i edited the ajax call to add some parameter (text search, select value...) and I use this values to filter the eloquent query before sending it to Datatable.
From here, you can filter on anything (for the actual case, it's a "where" with a "whereas translation" where "translations.name='search_value'" as it is eloquent.

@nsetyo have you checked the returned collection ? Does the data in the collection match what datatable needs ?

@mtx-z yes it does. i temporary fix this with using join queries instead

@nsetyo @mtx-z the owner already confirmed the search relation still has a bug. check this out https://github.com/yajra/laravel-datatables/issues/698
I'm trying help to fix it and still learning the code in filtering method inside the package but still confuse where should be fixed 😆

All of my search fields are functioning now but I have 1 problem left. Based on the given demo by yajra (Owner), there is Created At & Updated At field in the table. I also have a field in my table displaying date and time but the thing is, if I formatted the displayed date and time to a much readable for users, the the datatable was unable to search those newly formatted date and time.
Example: (Default Date and Time format displayed)

You can use filterColumn api to override the default sql for searching on date column to match on what was displayed .

follow by https://datatables.yajrabox.com/eloquent/joins will worked

For addcolumn, it should be searchable.


Purchaser verbs are inconsistent

The verbs for the purchaser are inconsistent, making it a half-baked resource: we have a get and a patch as if it was a resource, but no post.
we should either have a proper post so that it becomes completely a resource, or remove the patch and get, make the purchaser a data structure and make it accessible via patch booking. Note the former (adding a post) is non-breaking while the latter is
Right now some parties are trying to create a purchaser using a patch purchaser, which is from a REST standpoint a big no-no

@nixxus1030 It is not a long ago since we removed ID from the purchaser. I think we head towards Purchasers being modified from patch booking endpoint. Or just highlight that purchaser always exist for booking, and therefore patch is the correct way to modify it, but the creation can't be trigerred from the client side.

For GDPR reasons the purchaser exists only within a booking, not as a resource on its own (same as for passengers). The patch is essentially a patch of the booking with the limited scope of adding/changing the purchaser data structure of the booking.

if we don't want purchaser to be a subresources (you are correct @CGantert345 , it cannot be a resource. However it could be a subresource, which exactly matcheswhat you state - that it only exists within the context of the booking, url would be like booking/id/purchaser) and not make a post purchaser, then we either

make it completely a data structure
** remove GET and PATCH verbs (breaking)
** add the purchaser specification in the patch booking request
OR
make purchaserSpecifications mandatory in post booking, so we ensure there is always a purchaser (breaking as well)

Note however that unless we indeed do not want to accept a booking that does not have a purchaser, my preference would be to make of the purchaser an actual subresource, because

it is a distinct subelement of the booking
it makes the API (or that part of the API at least) REST consistent again without breaking change

all 3 solutions are REST acceptable - we need to align on which one we prefer. Since it is a bug, we may get way with introducing a breaking change in the fix without major bump version (we did it in the past) - but again the non breaking approach is cleaner IMO

The current specs does lead to unharmonised implementations:

an OSDM provider makes the purchaser functionality mandatory, so it can be patched afterwards
an OSDM provider creates an empty purchaser when not provided in the booking, so it can be patched afterwards
an OSDM provider utilises the PATCH as an "upsert". If not existing the patch creates a purchaser and if already existing it updates
an OSDM provider strictly follows the REST principles and a purchaser cannot be added after booking creation

It would be good to align here to make sure OSDM clients will only have 1 scenario to worry about and not different behaviours.
I think introducing a POST will solve all of the above. This gives the OSDM client the flexibility to update or add a purchaser and prevents the need to provide fake or dummy data during booking time (as this information is often not known upfront).

Implies a breaking change --> candidate for v.4.0

--> Align with Nicloas.

I think we are now aligned on adding a post purchaser ?

you can only patch a purchaser that exists
a purchaser can exist if it was created in the context of the POST bookoing OR if it was added with an explicit POST purchaser afterwards
purchaser information is not required to make a booking - could be required for confirmation & fulfillment


Examples of context documents & questions

Hello, the blog works great out of box but the biggest issue is there are no examples on how to structure the context document in Kendra so my questions to the bot are much more contextual.

Hi.. How many documents do you have indexed by Kendra?
The example uses the Retreive API, here is some documentation on how that works. https://docs.aws.amazon.com/kendra/latest/dg/searching-retrieve.html . Here is some additional information on Kendra relevance tuning. https://docs.aws.amazon.com/kendra/latest/dg/tuning.html#tuning-index

I just have one. It would be great if you can provide an example document and the corresponding GenAi questions to ask so we know how to structure these documents. We're not Ai/ML specialists, trying to demo this in a contact center setup. Otherwise this blog will be very narrowly focused for people with a lot of time and interest to learn how kendra works.


Convert Lambda to Closure

Lambda cannot be used in Groovy and has to be converted.
@Test
void expectArgumentException() {
    Assertions.assertThrows(IllegalArgumentException.class, () -> book.setPages(-1),
                            "Negative page number must fail");

}

There is already an intention which needs to be triggered: org.jetbrains.plugins.groovy.annotator.intentions.ConvertLambdaToClosureAction

With Groovy 3 it might not be necessary.


Bootstrap 4.4 responsive containers

components: Container
bootstrap version 4.4.1

Bootstrap 4.4 has added responsive containers:
https://getbootstrap.com/docs/4.4/layout/overview/#containers
Examples:
https://getbootstrap.com/docs/4.4/examples/grid/#containers
I can probably tackle this, but will need a bit of input.  Currently the Container component has one prop fluid which is a boolean.  For this feature would it be better to create a new props (size) where you can set the size breakpoint?
Example:
<Container size="fluid" />
<Container size="xl" />
<Container size="sm" />

It would be best to be backwards compatible and avoid a breaking change. That said, we could support both size and fluid (if fluid is true, it would force the same as size="fluid" regardless of the value of size)
Or, we can use fluid like fluid="md" indicating that at the md breakpoint the container would become fluid (which is what the new styles seem to do). It would keep a single prop, and be backwards compatible since fluid={true} would work the same.
I kinda like the second way. I know we use size elsewhere, but that is more about setting a size regardless of breakpoints and not an actual breakpoint.

Ok that makes sense.
For the fluid behavior, the size breakpoint actually indicates the container would be fluid up to the breakpoint, then would behave as a regular container on that breakpoint and after.  For example, fluid="md" would mean xs, sm would be fluid, and md, lg, xl would be regular sized.
That being said, would fluid="md" still be the best convention?  If you're ok with this, I will implement the changes.

That is a good point, but I still kind of like it. I was trying to think of what the prop would be based on the value and how/when it affect the width. Maybe max or maxWidth, but then setting true there doesn't make sense.

Sounds good.  Will go with fluid="breakpoint" for the PR.


types declaration file for typescript user

Here is the typescript declaration file for this plugin.

you can call the options interface DragdealerOptions if you want. no matter , the only thing is that you do not change the Dragdealer syntaxe for understanding purpose . it should be writen like you call your javascript plugin Dragdealer. .
in fact the use wil be like this :
class sample {
 slider: Dragdealer;

 init(){
   var options:DragdealerOptions = {
   x: 1,
   steps: 2,
   loose: true,
   callback: (x, y) => {
     // Only 0 and 1 are the possible values because of "steps: 2"
     if (!x) {
       this.slider.disable();
       $('#slide-to-unlock-new').fadeOut();
     }
   }
  }
 this.slide = new Dragdealer('slide-to-unlock-new', options);
 }
}

where in typescript the  line
slider :Dragdelaer , is to declare a property of the class that will be of Dragdealer type representing by the interface Dragdelaer
its the same for the line
var options:DragdealerOptions = { .....}
we declare and set a variable of type DragdealerOptions .
and when we do the
this.slide = new Dragdealer(...) the new is declare in the interface DragdealerConstructor that return an object symbolize by the interface Dragdealer.

@cdelhomme Why did you close the PR? I wanted to merge after that small change.

Sorry i've click on the wrong button

No worries! 😄
So are you OK with changing DragDealearOption to DragdealearOptions?

Yes no problem
Envoyé depuis Yahoo Mail pour Android
Le mer., oct. 31, 2018 à 11:13, Ovidiu<EMAIL_ADDRESS>a écrit :
No worries! 😄
So are you OK with changing DragDealearOption to DragdealearOptions?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.

no problem


Added possibility to run tests using chrome

Now it is possible to execute tests on chrome using the following commang line:
CAPYBARA_DRIVER=chrome cucumber

:+1:


Readme's link to Message Correlation documentation is broken

Readme's link to Message Correlation documentation is broken:
https://docs.zeebe.io/reference/message-correlation.html

Thanks for reporting! Fixed

Thanks for reporting! Fixed


Future must be safely set_result

At this line, it’s safe to add if not fut.done() check before set_result, in case of InvalidStateError, because fut may be already timeout.

HI @garvenlee agree! Would you like to open a PR about it? I see you are using/studying this client carefully and providing great feedbacks! Many thanks about it! It would be nice if you'd like to contribute on it so the community can benefit!

Hi @garvenlee
Please have a look to the PR if you have time and approve it


Please review for any updates on schema changes or "copy and paste" errors

I have been trying to create an Alert Rule for the 'Recommendation' event through Az PowerShell 2.6 and it took longer than it should have since the documentation states that there could be 4 values for the Event Level: “Critical”, “Error”, “Warning”, or “Informational”.
However this is incorrect since the only valid value it was able to accept was "Informational" after getting many "Bad Requests" responses when I wanted to catch all event levels.

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

ID: 893c638a-7f95-a912-e60f-8596c19aaac2
Version Independent ID: d6ff9ba3-bd8d-3a2e-692a-bdbf6f3d707c
Content: Azure Activity Log event schema
Content Source: articles/azure-monitor/platform/activity-log-schema.md
Service: azure-monitor
Sub-service: logs
GitHub Login: @johnkemnetz
Microsoft Alias: dukek

@jcuello Thanks for the comment. We are actively investigating on the issue and will get back to you shortly with an update.

Assigning @johnkemnetz for visibility, review and document enhancement considerations.

#reassign:ofirmanor

@ofirmanor Have you heard about this problem with the PowerShell?

#label:"TriagedFeb2021"

Hello @jcuello, can you share with us the rule that you were trying to create? It will help us figure out what the issue can be,

#assign: @yairgil

Hi @jcuello,
Thank you for your dedication to our documentation and for bringing this issue to our attention. We have added this issue to our product backlog. f you find another possible update to our documentation, please don't hesitate to reach out again.
#please-close


App store rejection due to embedding Flutter.xcframework in iOS app extensions

Steps to reproduce

Follow the official Flutter documentation for integrating Flutter into iOS app extensions.
Set Flutter.xcframework to "Embed & Sign" in the extension target's build settings as instructed.
Archive and submit the app to the App Store.

Expected results
The app should pass the App Store validation and be successfully submitted.
Actual results
The app is rejected with the following errors:
Invalid Bundle. The bundle at 'Runner.app/PlugIns/YourExtension.appex' contains disallowed file 'Frameworks'. (ID: ...)
Invalid Bundle. The bundle at 'Runner.app/PlugIns/YourExtension.appex' contains disallowed nested bundles. (ID: ...)
CFBundleIdentifier Collision. There is more than one bundle with the CFBundleIdentifier value 'io.flutter.flutter' under the iOS application 'Runner.app'. (ID: ...)

Code sample
No special code, juste Xcode configuration follow on previous documentation.
Screenshots or Video

Screenshots / Video demonstration
[Upload media here]

Logs
Logs
Invalid Bundle. The bundle at 'Runner.app/PlugIns/YourExtension.appex' contains disallowed file 'Frameworks'. (ID: ...)
Invalid Bundle. The bundle at 'Runner.app/PlugIns/YourExtension.appex' contains disallowed nested bundles. (ID: ...)
CFBundleIdentifier Collision. There is more than one bundle with the CFBundleIdentifier value 'io.flutter.flutter' under the iOS application 'Runner.app'. (ID: ...)

Flutter Doctor output
Doctor output
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.1, on Manjaro Linux 6.6.46-1-MANJARO, locale fr_FR.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2024.1)
[✓] IntelliJ IDEA Community Edition (version 2024.1)
[✓] Connected device (2 available)
[✓] Network resources

• No issues found!

Additional Information
Is this rejection due to a misconfiguration on my part, or is there an issue in the current Flutter documentation? Should Flutter.xcframework be embedded in iOS app extensions, or does this need to be addressed differently?

Closing as duplicate of https://github.com/flutter/flutter/issues/142531.


Connection Migration API

This is a proposal for adding a Connection Migration API.
The Config gains a new field that controls if the peer (not the endpoint itself) is allowed to initiate connection migration:
type Config struct {
    // …
    // AllowConnectionMigration controls if the peer is allowed to initiate connection migration.
    AllowConnectionMigration bool
}

The state can be checked on the ConnectionState. See below for more explanation on Path.
type ConnectionState struct {
     // …
     // ConnectionMigrationDisabled says if it’s possible to migrate this connection to a new interface.
     // The peer has the option to disable migration by sending the disable_active_migration transport parameter.
     ConnectionMigrationDisabled bool
     // Path is the network path that’s currently in use.
     Path *Path
}

On the client side, migration is initiated by calling ProbePath on the Connection:
// PathStatus is the status of a path.
type PathStatus int

const (
     // PathStatusProbing means that the path is being probed (i.e. a PATH_CHALLENGE frame has been sent).
     PathStatusProbing PathStatus = iota
     // PathStatusTimeout means that path probing ran into a timeout,
     // or that a previously successfully probed path was abandoned.
     PathStatusTimeout
     // PathStatusProbeSuccess means that path probing succeeded. It is now possible to switch to this path.
     PathStatusProbeSuccess
     // PathStatusActive means that this is the path that’s used to send QUIC packets
     PathStatusActive
)

// Path is a network path.
type Path struct {
     // Status is the status of this path.
     Status PathStatus
     // Notify is a channel (cap 1) that a new value is added to every time the status changes.
     // Note that the status can change even after path validation succeeded (e.g. because a path times out).
     Notify <-chan struct{}
     // might add some path characteristics (RTT, MTU, loss rate, etc.) here later
}

// Commit switches the QUIC connection to this path.
// It immediately stops sending on the old path, and sends on this new path.
// It’s only valid to call Use if the status is ProbeStatusProbeSuccess.
func (*Path) Commit() error

// Abandon abandons a path.
// It is not possible to abandon the path that’s currently active.
// This stops the sending of keep-alive packets, eventually leading to a timeout of the path.
func (*Path) Abandon() error

// ProbePath probes a new path.
// This triggers send a packet containing a PATH_CHALLENGE frame and receiving a PATH_RESPONSE frame.
// Therefore, probing takes at least one RTT.
// Note that the RTT of the new path might be different from the old path’s RTT.
// It is only valid
// 1. on the client side, and
// 2. if the peer hasn’t disabled connection migration.
// Additionally, this function will return an error if there’s no spare Connection ID available.
// Once successfully probed, the path will be kept alive by regularly sending keep-alive packets.
func (*Connection) ProbePath(*Transport) (Path, error)

Why does ProbePath take a Transport, and not an IP address or a net.PacketConn? This is because we need to be able to receive packets sent on the new path, i.e. we need to demultiplex them from other packets that might be received on the same interface. This is exactly what a Transport does.
Internally, ProbePath adds all the connection IDs that we issued to the peer to the new Transport as well. Since in RFC 9000, connection IDs are not bound to paths, we can’t know which CID the peer will use on the new path. As a slight optimization, we might be able to omit CIDs that are already used on other paths.

come on  I love this

In the proposed API, does the client must explicitly initiate PathProbe and then Commit?  If that is the case, then the connection migration is not transparent to the application. It will also come with performance cost because it's driven by how well the application is developed to make use of the feature. How about adding an option in API where client can 1) specify the path options 2) set the KPIs of migration (similar to the characteristic in notify. Example: switch to another path when active path pkt loss is over 20%)?  These settings are done ahead of time and the migration happens later without involvement of the application. I know that this may turn connection migration into a traffic engineering middleware that also have to do the jobs of preventing pingpong of paths. But leaving that job to the application client is probably worse?

If that is the case, then the connection migration is not transparent to the application.

That is explicitly not the intention. Connection migration is an advanced feature, and will require fine tuning depending on the use case.

That is explicitly not the intention. Connection migration is an advanced feature, and will require fine tuning depending on the use case.

I agree. We need this to be explicit in order to interoperate NAT-traversal / ICE.
There are several proposed RFCs which are somewhat based on QUICs connection migrations:

https://datatracker.ietf.org/doc/html/draft-perkins-quic-p2p-mux-00
https://datatracker.ietf.org/doc/html/draft-thatcher-p2p-quic-00
https://datatracker.ietf.org/doc/html/draft-seemann-quic-nat-traversal-02

Thanks @marten-seemann for advancing this!
When designing an API, I find it helpful to not only describe the APIs, but also to show how they would be used in some common cases, to validate it.
For instance how would an app that uses an http.Client that is capable of migrating connections look like?
From the app perspective, the logic can be in the http3.Transport. But how would that work?
I'm trying to figure that out, but here is my understanding of what needs to be done on network change:

Create a new connection on the new network

Create a new net.PacketConn on the new network.
Create a new quic.Transport with the new packet conn.
Call Transport.DialEarly to get a new quic.EarlyConection

Call Connection.ProbePath on the new early connection
If successful, replace the early connection that the HTTP client is using somehow. We need to do this for all active connections, we will need to intercept and track all HTTP client connections somehow.

It may be helpful to have an Early Connection type that supports replacing the underlying EarlyConnection. Or can we just replace the PacketConn?
We could also consider adding a quic.Migrate(quic.Transport, net.PacketConn)
Does that make sense? i'm still new to QUIC and trying to figure it out.

I'm a bit confused. Is this proposal for the client or server API?
I'm reading the RFC, and according to Initiating Connection Migration, the client initiates the migration by simply sending packets from the new location.
That means we could simply replace the net.PacketConn that the quic.Transport and quic.Connection are using.
No need for probing, since that's the server's responsibility. Of course, the client code needs to still respond to the probes.
In that case, would it make sense to simply have a quic.Transport.Migrate(net.PacketConn) API?

It may be helpful to have an Early Connection type that supports replacing the underlying EarlyConnection.

I don't understand. The whole point of connection migration is to keep the connection state.

I'm reading the RFC, and according to Initiating Connection Migration, the client initiates the migration by simply sending packets from the new location.
That means we could simply replace the net.PacketConn that the quic.Transport and quic.Connection are using.
No need for probing, since that's the server's responsibility. Of course, the client code needs to still respond to the probes.

This is not correct. The client has to probe the new path before using it. Even if it was not mandated by the RFC, it wouldn't be a smart move to give up a working path for a new path that might or might not work at all.

For instance how would an app that uses an http.Client that is capable of migrating connections look like?

That's a separate question. HTTP/3 is an application and the code is just part of this repo for reasons of convenience (see #4674). This issue is dealing with a transport-layer API. If / how this we'll expose this at the HTTP/3 layer remains to be seen.


Restrict metrics layer installation to Node >=14.10

Stacked with PR - #767
The main functionality of this PR is to modify nodejs-engine so that the metrics script is only include when the Node.js version is 14.10 or higher + integration tests to verify that behavior.
This PR also includes some refactoring around code related to obtaining the current Node.js version which is used by both nodejs-engine and nodejs-npm-engine. This is now available in nodejs-utils as node::get_node_version.
Some common error handling output was also moved into nodejs-utils.
W-14838686

Closing this PR. The suggestion you noted @joshwlewis is a better fit. The code to restrict the layer installation + the unit tests have been moved into #767.


Dvci 170 - Lab Result Verification

Overview
This PR allows our app to scan and display SHCs that contain Lab Results. Credentials of type #laboratory that comply with the Generic Laboratory Result Observation profile, can now be scanned, verified and displayed back to the user.
What Changed

Added LabCard component that gets used in HealthCardDisplay when a VC of type https://smarthealth.cards#laboratory is scanned
LabCard component displays the code, effectiveDateTime, value[x], referenceRange, and performer of the Observations in the SHC. Helper functions were added to handle elements that could have multiple data types. code and value[x] draw display values from the value sets that live in src/components/LabCard.
An error is thrown if both #laboratory and #immunization types are found in the VC's type array, as we decided it is against the Vaccination and Testing IG to allow both in one Bundle.
LabCard.test.js was added to test UI rendering of the LabCard component.

To Test

Make sure lab data is displaying appropriately

Here is a test lab QR code that has all Must Support fields populated:

See DVCI-170 for a link to a real SHC.

Check that the fields being displayed by the LabCard correspond to what would be expected from a resource conforming to the Generic Lab Results profile.
Test different edge cases and error scenarios using our Lab Result QR Code examples  on Confluence.
Make sure you are still able to scan vaccine cards, and that no functionality was broken.

This looks really good! I tested with various test lab QRs for different scenarios, which helped me better understand the code. I left a few open-ended questions to think about when displaying and testing lab results, so let me know if you want to talk through any of my comments.
I tested out the mismatch patient demographic data scenario and that still works as expected, so we can keep that code out of the try block.
I did try scanning an immunization card, then clicked on "Add another SHC for same person" and scanned a lab result card without running into any errors. I know that we cannot have immunization and observation resources in the same card, so would that rule also apply to a situation like this where are scanning multiple SHCs for the same patient, but some are for vaccinations and some are for labs?

I don't necessarily think so, but I guess that's up for us to decide. I think we didn't want to support displaying both resources from the same SHC, since this would technically make that card noncompliant with the vaccination and testing FHIR IG, so we're assuming that those type of cards won't exist. But there technically isn’t anything wrong with someone displaying their immunization card and then their lab card, so I don't see a strong reason why we would need to throw an error here.
A potential use case could be that someone shows their card with only one vaccine that doesn’t make them "fully vaccinated". We display "Cannot determine vaccination status", but then they also go on to scan their lab card showing a recent negative test, proving that they've met criteria to enter the venue in question.

Thanks for adding those unit tests and styling changes! I like the decision to only include the reference range field if the card contains a reference range, and I like the new ordering of the fields on the SMART Health Card.
When scanning example QRs, I realized the DOB styling doesn't match the changes from Zara's PR. We should use the same styling for both the vaccination and immunization cards - should be an easy fix :)
Also, I noticed that this is what gets displayed when the card does not contain the #laboratory type:

Is this the expected display? It feels odd that the card doesn't have the same width as the "Scan QR" button.

@sarahmcdougall I fixed the DOB styling in https://github.com/dvci/shc-web-verifier/pull/77/commits/4c7d656ce534fcff6d139d2b4a2ddd8039da7a01.
The shrinking card width is an existing UI quirk independent of the lab results display, so I created DVCI-332 to address it.


getWebpackConfig does not contain changes from modules.

When using nuxt webpack (or getWebpackConfig programmatically), changes from modules (e.g. the tailwind module) are not reflected in the resulting config.
Versions

nuxt: v2.15.3
node: v14.16.1

Reproduction

Check out the repo and install dependencies
Run yarn nuxt webpack module.rules\[3].oneOf\[1].use\[2].options.plugins --depth 10 (if no match, then try yarn nuxt webpack module.rules --depth 10 instead and search for the postcss-loader part manually)
See as similar output - no tailwind included.

[
  [Function (anonymous)] {
    postcssPlugin: 'postcss-import',
    postcssVersion: '7.0.35'
  },
  [Function (anonymous)] {
    postcssPlugin: 'postcss-url',
    postcssVersion: '7.0.35'
  },
  [Function (anonymous)] {
    postcssPlugin: 'postcss-preset-env',
    postcssVersion: '7.0.35'
  },
  [Function (anonymous)] {
    postcssPlugin: 'cssnano',
    postcssVersion: '7.0.35'
  }
]

Run yarn dev now and check the output:

[
  [Function (anonymous)] {
    postcssPlugin: 'postcss-import',
    postcssVersion: '7.0.35'
  },
  [Function (anonymous)] {
    postcssPlugin: 'postcss-url',
    postcssVersion: '7.0.35'
  },
  Processor {
    version: '7.0.35',
    plugins: [
      [Function (anonymous)],
      [Function: formatNodes]
    ],
    postcssPlugin: 'tailwind',
    postcssVersion: '7.0.35'
  },
  [Function (anonymous)] {
    postcssPlugin: 'postcss-preset-env',
    postcssVersion: '7.0.35'
  }
]

Expected: No difference between outputs
Actual: Difference because the tailwind module is not executed during nuxt webpack. Same goes for the getWebpackConfig itself.

the problem seems to be that getWebpackConfig is not firing the webpack:config event so modules are not aware of the generated configuration.
This is a function I'm using to work around it:
const { loadNuxt } = require('@nuxt/core-edge')
const { getBuilder } = require('@nuxt/builder-edge')

async function patchedGetWebpackConfig(name, options) {
  const nuxt = await loadNuxt(options)
  const builder = await getBuilder(nuxt)
  const config = await builder.bundleBuilder.getWebpackConfig('modern')
  await nuxt.callHook('webpack:config', [config])
  return config
}

// usage
const config = await patchedGetWebpackConfig('modern', { for: 'dev' })

We are approaching the Nuxt 2 EOL date (June 30, 2024) - see this article for more information. This is advance warning that I'm going to close this issue then, as it's currently marked as a Nuxt 2 related bug.
If it's a critical or security issue, please do comment and let me know, in case it is possible to address it before the EOL date.
If it's a an issue you think is relevant for Nuxt 3, please feel free to open a fresh issue (or just comment here so I can update labels, etc.). 🙏
Thank you for your understanding and for your contribution to Nuxt. ❤

It's the day, at last. Nuxt 2 is now marked end-of-life.
My apologies we never got round to resolving this bug in the 2.x branch, but we do have to draw a line somewhere. Again, if you think this is still relevant for Nuxt going forward, please feel free to open a fresh issue (or just comment here so I can update labels, etc.). 🙏


Middleman breaks if every article doesn't have excerpt_ separator characters

If a blog summary_separator is set:
blog.summary_separator = "==="

and an article does not have a separator in it, Middleman throws an error:
TypeError: type mismatch: String given
    /Users/bob/.rvm/gems/ruby-2.3.0/gems/middleman-blog-4.0.0/lib/middleman-blog/blog_article.rb:110:in `=~'
    /Users/bob/.rvm/gems/ruby-2.3.0/gems/middleman-blog-4.0.0/lib/middleman-blog/blog_article.rb:110:in `default_summary_generator'
    /Users/bob/.rvm/gems/ruby-2.3.0/gems/middleman-blog-4.0.0/lib/middleman-blog/blog_article.rb:98:in `summary'
    /Users/bob/Dropbox/Web Development/Projects/Middleman/BRP/source/index.html.erb:11:in `block (2 levels) in singleton class'

All articles must have the separator.
Is that intended?

Nope, that's a bug

I have tried to replicate this with the latest versions and cannot. @bobrocke If you can provide a repo then please do so. Closing for now as over 1 year old.


Limit uploaded avatar image-size to 4096x3072 by default

Uploading large files may cause Gitea to crash on OOM. This load the image-header first and checks the sizes before proceeding.
(e.g. a 64250x64250 image becomes 4.1 Gigapixels. Which would allocate 16GB of RAM in RGBA8888.)
Since this can be used for DoS-attacks we should backport it. Just don't know which version yet :slightly_smiling_face:

Codecov Report

Merging #4353 into master will increase coverage by 0.01%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master    #4353      +/-   ##
==========================================
+ Coverage   20.09%   20.11%   +0.01%
==========================================
  Files         153      153
  Lines       30705    30715      +10
==========================================
+ Hits         6171     6177       +6
- Misses      23590    23596       +6
+ Partials      944      942       -2

Impacted Files
Coverage Δ

models/user.go
22.11% <0%> (-0.22%)
:arrow_down:

modules/process/manager.go
73.91% <0%> (+4.34%)
:arrow_up:

modules/avatar/avatar.go
100% <0%> (+18.75%)
:arrow_up:

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 69796dd...cb69ac8. Read the comment docs.


First draft of 2023 ImageXD talk

To view the slides, type make and connect to http://localhost:8000

Other than the missing pyopensci slide, these LGTM.

Notes:

I suggest stating that we plan to fund Outreachy interns next year also, so they might want to keep an eye out for that if they missed out this year
image.sc is 99% biologists because of its origin, but it is intended to be generalist. (Same as napari, coincidentally 😅) Not sure what the intent of the text on the slide is, but I would aim to phrase it so that the above is clear.
personally, I dislike text-only presentations — especially when that text isn't code! I suggest sprinkling in e.g. images to illustrate thin plate splines and our biology-focused docs, for example. And a photo of the Scientific Python meeting at SciPy 2022, as another example.

btw there was talk of getting a t-shirt even though I wasn't able to make it???? 😂

Thanks, Juan! And yes, I'll definitely still do a graphics edit, haven't gotten around to that yet.
I'm sure a t-shirt can be organized. Ping Juanita on our Discord.

Just so everyone knows the outcome of the above cliffhanger: Juanita gave me my shirt at SciPy 2023 and I love it. 😃 🥰 😂


Axiom PURLs are broken

From<EMAIL_ADDRESS>on July 24, 2012 08:46:19
Reproduce, e.g. by http://purl.obolibrary.org/obo/bfo/axiom/566
Original issue: http://code.google.com/p/bfo/issues/detail?id=115

From<EMAIL_ADDRESS>on July 24, 2012 13:11:48
They dereference to an information page now. We need to figure out what to do that would be more helpful than that.
Status: Started


When creating fluids from gases set their alpha value to no transparency

Tints for gases are int he format 0xRRGGBB whereas for fluids the format is 0xAARRGGBB. This means that mods like Blood Magic, Tinker's Construct, Ceramics, etc that obey they alpha value of fluids for rendering would render our liquids as invisible.
At some point it may make sense for us to also obey the alpha value for when we render fluid's but I am currently unaware of any fluids that actually make use of this feature.

Pending the change to the bit shifting, LGTM.


disk: fix ensureLVM for partition tables without /boot

When the partition table did not have a boot partition, we created it but then unconditionally returned, which meant that we did not the LVM skeleton and wrap the root partition. Properly handle this case and also re-initialize the rootPath in this case since the underlying Partition[] array in PartitionTable object.
Add an extra blueprint with only one customisation which exposes this bug.

This needs an additional fix for ensuring /usr and / are above a minimum size.
Fix incoming (with manifests).

Should be good to go

New rebase: See last 2 commits


Incorrect values written to Registry for Inno Installers

Please fill out the issue checklist below and provide ALL the requested information.

[x] I reviewed open and closed github issues that may be related to my problem.
[x] I tried updating to the latest version of the CF CLI to see if it fixed my problem.
[ ] I attempted to run the command with CF_TRACE=1 to help debug the issue.
[x] I am reporting a bug that others will be able to reproduce.

Describe the bug and the command you saw an issue with
While adding the package in Windows Package Manager (WinGet) https://github.com/microsoft/winget-pkgs/pull/107769, I found that the DisplayVersion written to Registry is incorrect in case of Inno installers. The DisplayVersion written is the raw string VERSION instead of the actual version string. DisplayName also contains the raw string instead of the actual version (but this isn't as important as version being incorrect). Since WinGet relies on metadata from Registry to be the source of accurate information about a given package, WinGet users will fail to know accurate information about the package and may even fail to receive an upgrade if matching logic determines the string VERSION > any given version e.g. 8.6.1
What happened
DisplayVersion and DisplayName keys written to Registry (and visible in Apps&Features / appwiz.cpl) contain the string VERSION instead of the actual version

Expected behavior
DisplayVersion and DisplayName Registry values should contain the actual version string e.g. 8.6.1 for https://github.com/cloudfoundry/cli/releases/tag/v8.6.1
Exact Steps To Reproduce

Install x64 / x86 installer from https://github.com/cloudfoundry/cli/releases/tag/v8.6.1
Notice the version in appwiz.cpl / Apps&Features / DisplayVersion string in Registry

Provide more context
Happens with both x64 and x86 installers of 8.6.1

Thanks for your input. Please consider making PR, as all release scripts are OSS and located here

Thank you for your submission. If you still run into this issue with the latest CLI v8,  please open a new ticket with the necessary information mentioned in our issue template.


RYA-309 Added delete support to indexers

Description

What Changed?
Delete was never called on the secondary indexers
in mongo.
Created a test to ensure that it now happens and
added support.

Tests

Coverage?
partial indexer coverage in several cases.   Geo to be added in a future ticket.

Links
Jira
Checklist

[ ] Code Review
[x] Squash Commits

People To Reivew
@meiercaleb
@amihalik

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-rya-master-with-optionals-pull-requests/270/Failed Tests: 1incubator-rya-master-with-optionals-pull-requests/org.apache.rya:rya.pcj.fluo.integration: 1org.apache.rya.indexing.pcj.fluo.integration.KafkaRyaSubGraphExportIT.embeddedKafkaTest

asfbot build

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-rya-master-with-optionals-pull-requests/268/Build result: ABORTED[...truncated 6.52 MB...][INFO]                                                                         [INFO] ------------------------------------------------------------------------[INFO] Building Apache Rya PCJ Fluo Demo 3.2.11-incubating-SNAPSHOT[INFO] ------------------------------------------------------------------------[INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ rya.pcj.fluo.demo ---[WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: java.util.concurrent.ExecutionException: Invalid object ID 12 iota=55[INFO] [INFO] --- apache-rat-plugin:0.11:check (check-licenses) @ rya.pcj.fluo.demo ---[INFO] 51 implicit excludes (use -debug for more details).[INFO] Exclude: /resources/META-INF/services/[INFO] 4 resources included (use -debug for more details)[INFO] Rat check: Summary of files. Unapproved: 0 unknown: 0 generated: 0 approved: 4 licence.[WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: java.util.concurrent.ExecutionException: Invalid object ID 12 iota=55[INFO] [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-mvn) @ rya.pcj.fluo.demo ---[WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: java.util.concurrent.ExecutionException: Invalid object ID 12 iota=55[INFO] [INFO] --- maven-remote-resources-plugin:1.5:process (default) @ rya.pcj.fluo.demo ---Build was abortedchannel stoppedSetting status of 202c644444f21f5451d8952bfba07e9049fda7f0 to FAILURE with url https://builds.apache.org/job/incubator-rya-master-with-optionals-pull-requests/268/ and message: 'FAILURE 'Using context: Jenkins: clean package -Pgeoindexing

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-rya-master-with-optionals-pull-requests/269/Build result: ABORTED[...truncated 6.48 MB...][INFO]                                                                         [INFO] ------------------------------------------------------------------------[INFO] Building Apache Rya PCJ Fluo Demo 3.2.11-incubating-SNAPSHOT[INFO] ------------------------------------------------------------------------[INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ rya.pcj.fluo.demo ---[WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: java.util.concurrent.ExecutionException: Invalid object ID 12 iota=55[INFO] [INFO] --- apache-rat-plugin:0.11:check (check-licenses) @ rya.pcj.fluo.demo ---[INFO] 51 implicit excludes (use -debug for more details).[INFO] Exclude: /resources/META-INF/services/[INFO] 4 resources included (use -debug for more details)[INFO] Rat check: Summary of files. Unapproved: 0 unknown: 0 generated: 0 approved: 4 licence.[WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: java.util.concurrent.ExecutionException: Invalid object ID 12 iota=55[INFO] [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-mvn) @ rya.pcj.fluo.demo ---Build was aborted[WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: java.util.concurrent.ExecutionException: Invalid object ID 12 iota=55[INFO] [INFO] --- maven-remote-resources-plugin:1.5:process (default) @ rya.pcj.fluo.demo ---channel stoppedSetting status of 8e43e1d42d02756218fe175aff0214b5bde9d1ad to FAILURE with url https://builds.apache.org/job/incubator-rya-master-with-optionals-pull-requests/269/ and message: 'FAILURE 'Using context: Jenkins: clean package -Pgeoindexing

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-rya-master-with-optionals-pull-requests/271/Build result: ABORTED[...truncated 24.94 MB...][INFO]                                                                         [INFO] ------------------------------------------------------------------------[INFO] Building rya.giraph 3.2.11-incubating-SNAPSHOT[INFO] ------------------------------------------------------------------------[INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ rya.giraph ---[WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: java.util.concurrent.ExecutionException: Invalid object ID 34 iota=55[INFO] [INFO] --- apache-rat-plugin:0.11:check (check-licenses) @ rya.giraph ---[INFO] 51 implicit excludes (use -debug for more details).[INFO] Exclude: DEPENDENCIES[INFO] 8 resources included (use -debug for more details)[INFO] Rat check: Summary of files. Unapproved: 0 unknown: 0 generated: 0 approved: 8 licence.Build was aborted[WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: java.util.concurrent.ExecutionException: Invalid object ID 34 iota=55[INFO] [INFO] --- maven-enforcer-plugin:1.3.1:enforce (enforce-mvn) @ rya.giraph ---channel stopped[WARNING] Failed to notify spy hudson.maven.Maven3Builder$JenkinsEventSpy: hudson.remoting.ChannelClosedException: channel is already closed[INFO] [INFO] --- maven-remote-resources-plugin:1.5:process (default) @ rya.giraph ---Setting status of 5ac80dd81807d83268f465bd3a90c5246bcea870 to FAILURE with url https://builds.apache.org/job/incubator-rya-master-with-optionals-pull-requests/271/ and message: 'FAILURE 'Using context: Jenkins: clean package -Pgeoindexing

asfbot build

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-rya-master-with-optionals-pull-requests/275/Failed Tests: 1incubator-rya-master-with-optionals-pull-requests/org.apache.rya:rya.pcj.fluo.integration: 1org.apache.rya.indexing.pcj.fluo.integration.KafkaRyaSubGraphExportIT.embeddedKafkaTest

asfbot build

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/incubator-rya-master-with-optionals-pull-requests/281/

@meiercaleb is good to go.


is there any way to move mail from one account to another account using Message::move() function ?

Please be aware that these issues will be closed if inactive for more then 14 days :)

@Webklex need help !!

Hi @jil1092000 ,
thanks for your question. It is possible, but not so trivial. You could use Folder::appendMessage() to "create" a new mail inside the mailbox of the other account.
Here is the method:
https://github.com/Webklex/php-imap/blob/master/src/Folder.php#L279
Best regards & happy coding,


added cancellation after deadline is hit

When deadline is reached in transaction submission loop, we want to cancel the last submitted transaction in order to avoid entering next submission loop with potentially different solver (therefore different sender address). In this situation, two different transactions with similar settlement orders could be mined, one of them will be successful, other one will be mined as failed with error from settlement contract: GPv2: order filled
This cancellation significantly reduces the chances of this error happening.
The rest of the code is refactor/cleanup so we can call cancelling on specific line in the code.

Codecov Report

Merging #1564 (67fa098) into main (3d31f37) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main    #1564      +/-   ##
==========================================
- Coverage   66.78%   66.77%   -0.02%
==========================================
  Files         170      170
  Lines       32716    32724       +8
==========================================
+ Hits        21851    21853       +2
- Misses      10865    10871       +6

therefore different sender address). In this situation, two different transactions with similar settlement orders could be mined, one of them will be successful, other one will be mined as failed

Unfortunate side effect of having per solver accounts. If we had only one account for all settlements then we could run different submission strategies at the same time without worrying because they'd have the same nonce. Relevant to @nlordell as we talked about that today.


[Feature Request]: Applying animations to the cards on website on loading the page

How would you like to enhance the existing project.
Enhancement: I would like to apply animations to the website which will make the website look more dynamic.
Describe breifly how would you implement the same.
Solution: Will try out different animation packages.
Are you contributing for a program?
GSSoC23
Code of Conduct

[X] I follow CONTRIBUTING GUIDELINE of this project.

hey @dhrumishah lets collaborate to this project

close with no update


Improving the augmentation pipeline

Currently the code contains several presets for the "MakeCutouts" class and augmentation pipeline. We should consider removing some of them and settling on a single preset.
From my personal experience and tests, the following transformations improve generation only for certain prompts, while degrading others: RandomSharpness, RandomElasticTransform, RandomThinPlateSpline.
These augmentations are in the class 'MakeCutoutsNRUpdate' https://github.com/EleutherAI/vqgan-clip/blob/9eb2039060836034a2a45f8eb68bdf16c95b7b08/src/masking.py#L178
and "MakeCutouts"
https://github.com/EleutherAI/vqgan-clip/blob/9eb2039060836034a2a45f8eb68bdf16c95b7b08/src/masking.py#L80
These contains other redundant augmentations like "RandomResizedCrop", "RandomCrop",  and "RandomGaussianNoise" (which has a similar effect to noise_fac on line 227)
I don't think we've tested "RandomErasing" augmentation before. additionally, "RandomHorizontalFlip" is missing. It does create a bias for certain kind of results, but it is still a useful augmentation and often forces better symmetry when generating faces.

Currently the code contains several presets for the "MakeCutouts" class and augmentation pipeline. We should consider removing some of them and settling on a single preset.

I agree. Based on your experience, what is the best augmentations to use for a generic prompt? @crowsonkb? @neverix?

I agree. Based on your experience, what is the best augmentations to use for a generic prompt? @crowsonkb? @neverix?

I am using these augmentations.
K.RandomHorizontalFlip(p=0.5),
K.RandomAffine(degrees=30, translate=0.1, p=0.8, padding_mode='border'),
K.RandomPerspective(0.2,p=0.4),
K.ColorJitter(hue=0.01, saturation=0.01, p=0.7),`


WIP: improvement/opentelemetry

@dabeeeenster should we just close this one for now?

Yes

Customer using https://www.observeinc.com/ so would be good to get tested against that platform.


How to change features keybinds?

Title

For Triggerbot.cs I just added a field with hotkey, and for aimbot I have not yet provided it, but you can add what you want to the code yourself.


How to change IP before save?

Because of some networking, impressionist can't pull the real IP. I have the IP I want to use, but I'm not sure how to overwrite impressionists incorrect ip.
How can I update the object before it pushes the impressionist data to the database?
Something like:
impressionist( @ip_address => "<IP_ADDRESS>" )

Also, can you count with specifications? Like I have a field action_name in the impressions database and I only want to count hits where that equals a value.
a.impressionist_count( :filter=>:ip_address, :action_name => "public", :start_date => sta.days.ago, :end_date => 1.minute.ago )
Unfortunately intuitively adding, :action_name => "my value" didn't only pull where action name = public.


Migrate actions to newer node

Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-python@v3, peaceiris/actions-hugo@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

@artur-rs @Asiderr Based on this: https://github.com/3mdeb/3mdeb-website/pull/111, it seems that the update of actions does not require any magic; if you do not have any issues with the above PR in 24 hours. I will merge it.

Merged.