[Proposal] Init value in response type

The logic here https://github.com/FormidableLabs/reason-urql/blob/8bb9cf6de62cc3b870bb7b7e59c79f136f04c0ca/src/components/UrqlMutation.re#L59 looks a bit off for dynamic mutations.
By definition, a dynamic mutation will occur after the hook is called, so fetching will always be false, and data and error will always be None as long as the mutation hasn't been called.
I propose to introduce an Init (or something similar) to handle this case in the response type. This will very likely require the use of a state to know whether or not the mutation has been triggered already or not.
We could even consider having a Refetching constructor if needed.
The Relude library handles this case as well: https://github.com/reazen/relude/blob/master/src/Relude_AsyncData.re#L11

🤔 Hmmm, I'm not sure I fully understand the use case here. How does the Init constructor differ from NotFound? NotFound essentially acts as a catch all case, and can handle both:

The case you mention, where you haven't yet executed a mutation.
The case where you execute a mutation and, for some reason, you receive neither data or errors.

I'm not sure what Refetching would add either. It's not supported upstream in urql to differentiate loading states between "this is the first fetch" and "this is a subsequent fetch", so I'm not inclined to support that in the bindings. It's also fairly easy, as you mention, for a user to track whether or not this particular execution is the first execution simply using their own useState or useRef hook that updates when they call executeMutation.
If you can provide a more fleshed out use case for Init that shows how it substantively differs from NotFound, I'd consider adding it in. For now, the core focus of the library is on binding urql as closely as possible, and NotFound represents a "catch all" case we provide as a combination of initial state and a truly "no data or errors found" state. Hope that makes sense!

Thank you very much for the quick reply.
There are two different use cases here, one for Init and one for Refetching.
Init
The way I understand NotFound is the one you're describing: "The Urql client hasn't found any data for this request".
But there is a difference between "The client hasn't found any data", and "The client hasn't found any data yet". Conceptually, those are two different things, and one might need to display two different ui: "Please perform a request" and "The request has been performed, but nothing was found". It's actually a situation I had to face pretty often, and it doesn't really sound like an edge case.
As for having a custom hook handling this using a state, it's what I did, but it's not as trivial as it may look at first, especially due to the fact that the function returned by the useDynamicMutation hook has an extremely dynamic type. (I made a gist here).
The fact this library has to be as close as possible to the initial Urql library makes perfectly sense, and I'd be glad to use the custom hook above if it was working as intended.
(Not related, but the word "NotFound" is rather confusing and I had to read the code to finally understand it. I initially thought it meant that the graphql endpoint was not found, not the data.)
Refetching
This one is mainly meant to be use with the queries, not the mutations. There is at least one rather common use case for that: infinite lists. "Fetching" displays "Please wait, fetching init data", while "Refetching" displays both the already fetched data and a different loader/message.
Notice that this one is not part of the original proposal, it's trivial to implement, and it would differ too much from the original Urql library.

Ok, I think I see what you're getting at. How would you propose we differentiate between Init and NotFound in our pattern matching? Right now we rely on checking three values from urql – fetching, data, and error in a tuple. The match for NotFound is (false, None, None). Would we need to introduce an extra condition – executed – such that we could differentiate these states, such that Init is something like (false, None, None, false) and NotFound is something like (false, None, None, true)? Or do you have another pattern match in mind? FWIW (false, None, None) will is the initial state that urql uses, so you're correct that it could probably be better represented as Init.
I'm

Thank @parkerziegler. Yes, that's exactly what I meant, sorry for the bad explanations ^^
I totally agreee with this: I suppose I'm just a little leery of introducing this across all hooks as it feels like it can be solved in user land as your Gist demonstrates, this kind of use cases can be implemented in the user land (just like Refetching or Fetching would actually), and it could have a big impact on the current apps using Reason Urql since it's technically a breaking change (due to the exhaustive pattern matching feature of OCaml).
There are several things we can do here:

Add a warning in the doc, add the Init constructor, and release a 2.x.x version
Create a "Helper" module including some common hooks (I made a generic version of the hook above here: https://gist.github.com/gaku-sei/274781656fdad151ac41ce6161fec087)
Just adding the hook in the examples folder under xx-request-with-init or something
Add the example in the doc
???

@gaku-sei yeah, this would break a lot of folks' code, so for now I'm inclined to say we just add an example to the docs with a new section called "Tracking Request State" or something of that nature. I think getting_started.md would be a great place for it.
I'll slate this to be added as well in v2.0, but there are some other higher priority changes I'll want to get in that release as well, including BuckleScript 7 support. Does that work as a good compromise for you (docs now, added in a 2.0 down the road)? If so, I'd love to have you contribute the docs section if you're up for it!

Empty constructor added in v2.0.0. Init parameter was eschewed after review from urql core team members, since this isn't a well-defined state in the upstream library and can be tracked in user land using a ref.


WriteCompressor does not implement Send

It seems like all the compressors and decompressors are not Send because of CompressionContext and DecompressionContext respectively.
Here is the minimal reproduction code.
use lzzzz::{lz4f::*};

fn is_send<T: Send>(t: &T) {}

fn main() {
    let buf = vec![];
    let w = WriteCompressor::new(&mut buf, Preferences::default());
    is_send(&w);
}

Here is the backtrace for the Send bound.
error[E0277]: `std::ptr::NonNull<lzzzz::lz4f::binding::LZ4FCompressionCtx>` cannot be sent between threads safely
  --> tests/lz4f_stream.rs:20:9
   |
13 |     fn is_send<T: Send>(t: &T) {}
   |        -------    ---- required by this bound in `write_compressor::is_send`
...
20 |         is_send(&w);
   |         ^^^^^^^ `std::ptr::NonNull<lzzzz::lz4f::binding::LZ4FCompressionCtx>` cannot be sent between threads safely
   |
   = help: within `std::result::Result<lzzzz::lz4f::stream::comp::write::WriteCompressor<&mut std::vec::Vec<u8>>, lzzzz::lz4f::error::Error>`, the trait `std::marker::Send` is not implemented for `std::ptr::NonNull<lzzzz::lz4f::binding::LZ4FCompressionCtx>`
   = note: required because it appears within the type `lzzzz::lz4f::api::CompressionContext`
   = note: required because it appears within the type `lzzzz::lz4f::stream::comp::Compressor`
   = note: required because it appears within the type `lzzzz::lz4f::stream::comp::write::WriteCompressor<&mut std::vec::Vec<u8>>`
   = note: required because it appears within the type `std::result::Result<lzzzz::lz4f::stream::comp::write::WriteCompressor<&mut std::vec::Vec<u8>>, lzzzz::lz4f::error::Error>`

Is this a bug or a fundamental limitation of the liblz4?

It seems like the lz4-sys crate does treat the contexts as Send, however its probably better to verify directly with the liblz4 devs.

I'm not compretely sure if CompressionComtext is Send-safe, but it shouldn't have thread-dependent storage by its nature.
All the compressors and decompressors now implement Send from v0.2.0.

Confirmation that the Compression / Decompression context is Send-safe https://github.com/lz4/lz4/issues/887#issuecomment-663653157.


add word boundaries to the foo trigger

very simple.

:+1: If I've done this correctly, me pressing the merge button will trigger a full reaction including a redploy.
Check back in ~10 minutes.


Add merge and json patch

Closes #357
Following the conversation on #357 and #268 , I figured I could start working on this feature as my first contribution to kubeclient. As @cben proposed, I'm simply adding json_patch_* and merge_patch_* methods to the client.

released in gem 4.3.0.


[General] URL Issues in the website

Steps:
Go to http://www.zols.org/
Click Guide or Fork us @ Github
Watch Browser URL
Expected Result:
User should be redircted to  http://www.zols.org/gulde.html or to http://gihub.com/sathish/zols
Actual Result:
Nothing happens

Solved using instructions at
https://help.github.com/articles/tips-for-configuring-an-a-record-with-your-dns-provider/


 It doesn't change anything. :-)
I.e. my master is showing it is ahead of yours because of some merges. Don't know why this is.

Not thank you for your contribution then :D
That's amazing to see that Github allows a PR with 0 file changed ^^'


Globals: Add DialogDefaults.DefaultFocus, Consolidate others to their own static classes

Description

How Has This Been Tested?

Type of Changes

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation (fix or improvement to the website or code docs)

Checklist

[X] The PR is submitted to the correct branch (dev).
[X] My code follows the code style of this project.
[ ] I've added relevant tests.

In principle yes, it makes sense to have global defaults for every parameter, even those of MudDialog. I first thought, this would be better suited for DialogOptions but then, it is a parameter of a component and thus the default value would be expected to be customizable like all the other component parameters.

When we add defaults for all components, there will be hundreds of definitions in MudGlobal. It might become quite unmanageable. You sure we shouldn't make static subclasses of MudGlobal for every component?
i.e.
MudGlobal.DialogDefaults.DefaultFocus = ...
MudGlobal.ButtonDefaults.Variant = ...

@henon Do you want to implement your vision for that API separately and I rebase? Or tell me what the classes would look like and I can do it in this PR?

public static class MudGlobal {
  public static class DialogDefaults {
    public DefaultFocus DefaultFocus = DefaultFocus.Element;
  }
  public static class ButtonDefaults {
    public static Variant Variant = Variant.Text;
  }
}

Here is another idea, add these on top of what you already have:
    public static class PopoverDefaults
    {
        /// <summary>
        /// The default transition delay for <see cref="MudOverlay"/> and <see cref="MudPicker{T}"/>.
        /// </summary>
        public static TimeSpan Delay { get; set; } = TransitionDefaults.Delay;

        /// <summary>
        /// The default transition time for components like <see cref="MudTooltip"/>, <see cref="MudOverlay"/>, <see cref="MudPicker{T}"/>.
        /// </summary>
        public static TimeSpan Duration { get; set; } = TransitionDefaults.Duration;
    }

    public static class PickerDefaults
    {
        /// <summary>
        /// The default transition delay for <see cref="MudOverlay"/> and <see cref="MudPicker{T}"/>.
        /// </summary>
        public static TimeSpan Delay { get; set; } = TransitionDefaults.Delay;

        /// <summary>
        /// The default transition time for components like <see cref="MudTooltip"/>, <see cref="MudOverlay"/>, <see cref="MudPicker{T}"/>.
        /// </summary>
        public static TimeSpan Duration { get; set; } = TransitionDefaults.Duration;
    }

    public static class TooltipDefaults
    {
        /// <summary>
        /// The default transition delay for <see cref="MudOverlay"/> and <see cref="MudPicker{T}"/>.
        /// </summary>
        public static TimeSpan Delay { get; set; } = TransitionDefaults.Delay;

        /// <summary>
        /// The default transition time for components like <see cref="MudTooltip"/>, <see cref="MudOverlay"/>, <see cref="MudPicker{T}"/>.
        /// </summary>
        public static TimeSpan Duration { get; set; } = TransitionDefaults.Duration;
    }

That way, on top of changing the delay and transition duration for all via TransitionDefaults we can also set them differently for popover, picker and tooltip.

@henon Good idea. Added.


RE: #1155 - Optimize Data Fetching

RE: Update to include thirdweb-dev & thridwed-examples, optimize and fix from #1155

📝 Changed routes:

/open-source

(view full size)

Commit d65038b49aebf9d7430d029955e1f54220826e53 (https://thirdweb-ekowlmt0s.thirdweb-preview.com).

lol idk what i did was just working in my dev server testing it... sorry dont know why it pushed differently? ill check again was working untill i switched it to the promise all 🤣

seems like it's working fine but we need the list of profiles we're filtering out (all thirdweb internal profiles)

seems like it's working fine but we need the list of profiles we're filtering out (all thirdweb internal profiles)

yeah wasnt updating on my side correctly, repo seems to make my pc freeze and load super slow sorry... pushed fixes also added bots to filter

thx @BankkRoll!


chmod and exfat drives

Changing permissions on exfat drives is not allowed. The entrypoint script fails.
bitcoin           | chown: changing ownership of '/home/bitcoin/.bitcoin': Operation not permitted
Why exactly are those two lines needed?
https://github.com/ruimarinho/docker-bitcoin-core/blob/master/23/docker-entrypoint.sh#L12-L13

Is there any workarounds for this so far?

Those lines are there to ensure good security practices: only the bitcoin user can read, write and execute files contained in it.
However, the entrypoint is completely optional. It's there as a helper. You have two workarounds:

Switching filesystems. Exfat does not support storing the bits required to hold permission data. I suppose this is not practical for you.

Replacing the entrypoint but a direct call to bitcoind. An example command ignoring the bundled entrypoint:
docker run --rm -it --entrypoint bitcoind ruimarinho/bitcoin-core:24 -version

Hope this helps!


Initial value validation (.initial) not working on select element

Versions:

VueJs: 2.4.2
Vee-Validate: 2.0.0-rc.14

Description:
Initial value validation (the .initial modifier) does not seem to work on select elements.
Steps To Reproduce:
Observe this very simple numeric input box: https://jsfiddle.net/o1env7mq/2/
It has an initial value, and a validation rule using the .initial modifier. The field is correctly validated and no error is shown as a value is present.
Now observe this almost identical example that instead uses a select element: https://jsfiddle.net/kcuL61vk/8/
It has the same initial value as before and the validation rule is the same as before. The field is not correctly validated and an error is shown even though a value is present.

This was a tricky one to fix, for whatever reason the select input value isn't ready until sometime after the bind cycle for the directive. So .value and selectedOptions weren't accurate that early. It only happens with select inputs with v-model that isn't watchable by the $watch API (simple dot expressions) as far as I have tested.
I have patched this by attempting the get the model value from the v-model directive present on the vnode which should have the value ready, this is ideal as the validator will try to look for that first and if it cannot find it then it will fallback to how it used to resolve things.

Nice! I tried to debug this issue for a bit, and I also noticed that the input value wasn't present during the phase where it's attached; I figured this would be tricky to fix. Great job that you did it! Can confirm that it works now :)


Help Needed: Non-Windows Platform Support

I would love to be able to support non-Windows platforms using PowerShell 7. Unfortunately, I have not had any luck finding compatible libraries, i.e., System.Data.SqLite.dll and SQLite.Interop.dll. I am more than happy to accept PRs or even pointers on where to look.

I will take a look when I get home from vacation.

Hi there,
I Stumbled across this thread...
you might want to look at the following Nuget packages:
https://www.nuget.org/packages/SQLite
https://www.nuget.org/packages/System.Data.SQLite
https://www.nuget.org/packages/System.Data.SQLite.Core
You can extract the assemblies from there. And with a few switches (Assembly load logic), this could do the trick for you.
Or you use the sqlite-netFx-source-1.0.XXX.0.zip file to build the libSQLite.Interop.so / SQLite.Interop.dll yourself ;-)
Let me know if you need support/help.

Worth noting that it doesn't support ARM architecture, though.
Also, I pointed jhoneill over to this issue in the hopes he can provide more context on how he acquired/compiled the non-Windows binaries.

I Stumbled across this thread... you might want to look at the following Nuget packages https://www.nuget.org/packages/System.Data.SQLite

That's the one I'm using. I include a script in GetSQL to download and set them up :-)
As @ImportTaste  says though, that one doesn't have ARM support.  Really the ideal would be for .NET to support SQLite directly on all platforms, but I'm not holding out a lot of hope of that happening soon.

Sorry @jhoneill I don't get the point!
You can create the required SQLite.Interop.dll for yourself, everything is open source!
 In my case: I use the latest preview on this device! But it will work fine with the regular Visual Studio 2022 community edition.
And the compiler is free, so why not using it?

   Write-Verbose -Message 'We will not add it again, but we try to use the existing internal helper instead'
}
else
{
   $null = (Add-Type -MemberDefinition $code -Namespace Internal -Name Helper)
}

# Pre-load the platform specific DLL version
$null = ([Internal.Helper]::LoadLibrary($InteropPath))

# Next, load the .NET assembly. Since the Interop DLL is already pre-loaded, all is good
$null = (Add-Type -Path $SystemDataPath)

The rest is up to your usage, in my case it's a highly customized implementation (with parts a reuse from the MySQLite module).
My Build script generates a SQLite.Interop.dll for all my platforms, like Windows on AMD64 and ARM, MacOS ARM64 (x64 is no longer my scope), or Linux on AMD64 and ARM64. Nothing fancy, but it works fine.
And again: I can provide the generic binaries described above and/or the plain source code (I might need to remove some internals only, but that will have no impact).

And by the way: The Build on Linux and macOS will not require Visual Studio. The GCC Tooling will be used in this case.

@jhochwald  that's helpful., thanks.
There's a bit of a mindset of "I don't build binaries, I deliver PowerShell code", and "People should not need to trust binaries I've compiled"  (Plus there are problems running tests on a platform I don't have).  And in my case I've kept adding things to GetSql because I need them not as a community effort. So the world gets what I wanted rather than a product for the greatest number of people - that's how we got here, not a defence or saying that's how it should be.
Jeff and I can both look at building and distributing the binary (@jdhitsolutions  it makes sense for only one of us to do the work), but I'd prefer to deliver it with instruction "Get the source from here, and follow these steps to build for your platform". These days because I can compile the few things I need with a DotNet.exe command and I do all my editing with VSCode I no longer have Visual Studio installed (I still have a licence for the full version just didn't put it on this laptop when I got it in Feb 2022).

@jdhitsolutions you might want to take a look at these repositories:

SQLite.Interop-win
SQLite.Interop

If you want to upgrade from sqlite-netFx <IP_ADDRESS> to <IP_ADDRESS>, you need to tweak the SHA256 checksum. no further changes are required.
I also tweaked the PowerShell Code (SQLite.Interop-win) a bit to avoid issues and make it a bit more robust.
In short: Within package.ps1 the batch creation (staring in line 93 of the original) never really worked well for me.
On Windows I did a lot of tests with the Cross-Compile, and it seems to work fine (building the ARM/ARM64 binaries on an i7/X64). I also did many builds on native ARM64 just to ensure that it works the same way :)
I do have (and use) both platforms, therefore I was able to check and test a lot on them.
For Linux, you can use a simple WSL or Docker image. On my Dev Box and the Surface Pro 9 5G I had to use the WSL, because docker never really worked on these two!
To create a build on the Mac, the system needs a full blown XCode installations with the command line tools installed as well. This will bring GCC with it.
Just run the package.sh and it will create a zip with all the files. Samples: SQLite.Interop-<IP_ADDRESS>-osx.ARM64.14.1.zip or SQLite.Interop-<IP_ADDRESS>-debian.AMD64.12.zip (Used Debian 12 on an ARM64). And I also tested the Linux ARM64 binaries I created on my Debian WSL on an Ampere based VM with Ubuntu, it works very well.
On Windows (or Windows on ARM), the following archive will be created: SQLite.Interop-<IP_ADDRESS>-win.zip.
As I mentioned before: I never created the x64 binaries on a Mac! I should work the same way, but I never tested it (mostly because I don't need it anymore).
What do you think @jhoneill? Is this a kind of an "Get the source from here, and follow these steps to build for your platform" instruction you mentioned above?
In general, the Visual Studio Community Edition is enough, therefore no licence is needed. I'm using the Community Edition only! Ok, to be honest: I'm using JetBrains Rider most of the time. I'm not using VSC much. In this case I had to.

And I published my changes here:

SQLite.Interop-win
SQLite.Interop

Hope this helps.

It would probably be best to come up with a Github Actions workflow to build all the different binaries, honestly.

How would you do that for Windows? You need a full blown Visual Studio 2022 (at least the community edition), with some special workloads installed.
But you can see what changes are needed, therefore give it try.

Here's the runner they use for Windows, it has that and more: https://github.com/actions/runner-images/blob/main/images/win/Windows2022-Readme.md

Awesome! I never saw all the details (workloads), but I’m not really use GitHub for builds.
Should be easy for you to automate the build as you mentioned before.

It would probably be best to come up with a Github Actions workflow to build all the different binaries, honestly.

How would you do that for Windows? You need a full blown Visual Studio 2022 (at least the community edition), with some special workloads installed. But you can see what changes are needed, therefore give it try.

Here's the runner they use for Windows, it has that and more: https://github.com/actions/runner-images/blob/main/images/win/Windows2022-Readme.md

And b the way: https://github.com/actions/runner-images/blob/main/images/macos/macos-13-arm64-Readme.md
That image might be cool for an automates macOS build. Not the latest OS, but it’s enough to create the assembly and ARM64.

I have updated my repositories to build the <IP_ADDRESS>
SQLite.Interop and
SQLite.Interop-win
SQLiteConnection is also published on the PowerShell Gallery. This demonstrates how to package all the native shared libraries in a PowerShell module.
sqlite-tools has also been updated to provide native ARM compiled tools on Windows.
I use a Windows Dev Kit 2023 to validate the Windows ARM64 builds. The macOS versions are built on a mini and the Linux builds in dockers.
I have also simplified the code to determine the Runtime Identifier by getting it directly from dotnet rather than predicting it.

I think I finally got this working on Linux. I have not done anything with MacOS because I have no way of testing anything. I am open to PRs with MacOS support that have been thoroughly tested and verified.

Given that I have SQLiteConnection already published in the gallery with compiled native dlls I was wondering if it was worth refactoring to create the database connection with New-SQLiteConnection, then you could get rid of all of the native dll and interop code and your solution would be pure PowerShell functions and platform agnostic.

@rhubarb-geek-nz In a perfect world with unlimited time and resources, that would probably make the most sense. But that is a bigger project that I can't tackle now. I have a working module that supports Windows and Linux. If someone wants to submit a PR with validated MacOS support that would be great. Even if I refactored, I still have no way to test MacOS code and I am leery of publishing something I can't run. Now, if someone wants to buy me a new Macbook Pro, I wouldn't say no. 😄

I get your point about the open source question. At the very least I should include file hashes. I'll have to think about this. This module is a dependency on other projects and I don't want to force the user to have to manually build files before they can use the other module.
I suppose I could modify this module to include code to build the assemblies and ship the module with the most current build. But I have to find a balance between true open source and ease of use. I don't want to bury the user with requirements.

But I have to find a balance between true open source and ease of use.

Hopefully most users are just installing from the powershell gallery

I am absolutely expecting that.


Various small cleanups.

Add deduction guide for Span.
Merge data split mode setter into the MetaInfo column sync method.
Check CUDA warning for cross space function calls.

cc @rongou


split into multiple module project

only split by module without other changes.
@slawekjaranowski

@slawekjaranowski done.
please review again.

we should address issues:

we can not change path for generated xsd files
api - should contains only interfaces, enums , ...
api - should have minimal dependencies - even no additional dependencies
we need check project site after such change

https://groups.google.com/g/mojohaus-dev/c/hRltMfTmB4o/m/CuRRV7fdAAAJ

Done in #758 @XenoAmess thanks for your effort.


Changelog and breaking changes

Hey,
just wanted to ask if you can introduce a changelog where you list release changes and breaking changes. This way developers can get a better overview what has change in the project. :+1:

It's a good idea. I have added a changelog.txt in the 1.3.5 release.


[Question] - running a managed identity application locally

I'm currently doing some investigative work around Service Fabric and Managed Identity, and when trying to deploy locally the deployment fails with "Application managed identity principalid cannot be null or empty", which I'm assuming is down to it being in a local environment.
Is there a way for it to be assigned to a local account when deployed locally? Or do I need to transform the applicationmanifest?
My ultimate aim is for a stateless web app to be able to use the AddAzureKeyVault extension for IConfigurationBuilder with Managed Identity, but falling at the first hurdle!

We have the Principals section Inserted by a config transform when deploying to Azure. For local we don't have the Principals declared. If you want to locally debug an application deployed to Azure with managed identity, you can use Azure Service Authentication in VisualStudio, and granting the necessary permissions to your user principal in Azure. You can use DefaultAzureCredential to resolve the identity.

We have the Principals section Inserted by a config transform when deploying to Azure. For local we don't have the Principals declared. If you want to locally debug an application with managed identity, you can use Azure Service Authentication in VisualStudio, and granting the necessary permissions to your user principal in Azure. You can use DefaultAzureCredential to resolve the identity.

What tool are you using for config transform? I too need to add the Principals and Identities sections when deploying in production.
I tried  SlowCheetah but is not available for VS 2022.

@francescocristallo We use this extension in Azure DevOps

In a future release the SF MI token service will be able to run in ‘standalone’ mode, so the application’s token acquisition flow would work locally as it would in the cloud. Watch release notes for this becoming available.
/cc @dragav

@craftyhouse Is there any update on being able to configure MI token service to run in ‘standalone’ mode on Service Fabric? It's not great to have to update the ApplicationManifest.xml and ServiceManifest.xml files.

The change to make MITS run in standalone mode is done, although not included in the now-outgoing SF90 release. That may not be sufficient, though, for deploying apps locally with MI-like behavior. I don't have a timeline for that yet.

Thanks for the update. We wouldn't expect the SF app to automatically pick up a managed identity when running locally. For other types of app we typically use code like this:
`
#if DEBUG
var tokenCredential = new ClientSecretCredential(configuration.TenantId, configuration.ClientId, configuration.ClientSecret);
#else
var tokenCredential = new ManagedIdentityCredential(configuration.ClientId);
#endif
var secretClient = new SecretClient(keyvaultUrl, tokenCredential);
`
i.e. When running locally we give it credentials (client secret) for a development managed identity so the code can still access azure resources. So long as we can do this trick with a local Service Fabric app we'll be happy.
Is this helpful at all?

Both ManagedIdentityCredential and DefaultIdentityCredential would work locally and in the cloud - when the environment is configured correctly. There is no need for ifdefs.
The problem, as you and others outlined above, is the application manifest. In a cloud deployment, the application resource declaration references a managed identity, which triggers a workflow to augment the app's manifest with the appropriate token endpoint - i.e. the resulting, actual app manifest will merge settings declared by you (under Principals) with the app-specific metadata from the SF Resource Provider. In a local deployment, there is nothing from which to generate this additional metadata, and so the validation of the Principals section fails. (Which then requires you to 'patch' the local manifest by removing MI references.)
Running MITS locally in standalone mode is one part of solving the development scenario; the next step is to address the app manifest generation problem described above.

According to my investigation, I find the application in the local Service Fabric runs under network service context, and the network service context doesn't share Azure CLI with the logon account context. This means when we run az login to log in with our account, it doesn't share the context with the application in Service Fabric.

Reference
https://learn.microsoft.com/en-us/azure/service-fabric/service-fabric-application-runas-security
By default, Service Fabric applications run under the account that the Fabric.exe process runs under.

Here is a workaround

Download “Psexec” from https://docs.microsoft.com/en-us/sysinternals/downloads/psexec
Run the following command to start a PowerShell window under network service contextpsexec -i -u "nt authority\network service" powershell

Run az login in the new PowerShell window, then you can use your account to local debug the application in service fabric.

Since local service fabric doesn't support managed identity, we still need to update the ApplicationManifest.xml and ServiceManifest.xml

Add a user in the application’s ApplicationManifest.xml.<Principals>
  <Users>
     <User Name="user" AccountType="NetworkService" />
  </Users>
</Principals>
<Policies>
   <DefaultRunAsPolicy UserRef="user" />
</Policies>

Remove ManagedIdentities from ServiceManifest.xml

Hi @dragav, I am having the same issue as described above during deployment process. I am trying to release SF app with SystemAssigned identity defined from ADO to Azure and I am using ServiceFabricDeploy@1 ADO step. The step fails with the same error as mentioned above "##[error]Application managed identity PrincipalId cannot be null or empty." Patching the manifest is not an option for us, since we release into actual environment, do you have any recommendations for me how I can workaround this issue?

@alexey-aouslender-sp this thread is about deploying locally (for testing purposes); you seem to want to deploy an app to an Azure cluster directly? That is not the intent of MI - only apps deployed as Azure resources (via ARM/SF RP) can have managed identities. The app manifest is patched by the SF runtime as the deployment request arrives in the cluster - from the RP.
If I misunderstood your scenario, please clarify what you intend to accomplish.

Thank you @dragav for your feedback, I was under impression that I can release an app with system assigned managed identity directly to the cluster. I checked the documentation and it clearly states that it only possible with ARM templates.


Fast switching of streams/tracks for large conferences / Third Room etc.

Related https://github.com/matrix-org/sfu-to-sfu/issues/15

Duplicate of https://github.com/matrix-org/sfu-to-sfu/issues/15
(actually)


Support for minimum and maximum values

Please implement support for minimum and maximum value

Hello @ayzerobug !
I will do it soon.

@ayzerobug
I just released with min and max values.
Please update your package to 2.1.13.
Thanks!


Still maintained?

is this project still alive?
//cc @ahand

Yes, it's still maintained. I haven't seen a need to update it in awhile. The useragent strings for the major platforms haven't changed lately. And the up-and-coming mobile platforms like Sailfish and Tizen haven't really been going anywhere lately... But anyways, we're keeping an eye on the space.
If you see a need for an update for any reason, please let us know!
Anthony


Integration issue

Hello,
i am trying to use your Ghettostudio in our university as a webrtc recorder integrated with Opencast. But i have a problem with socketio. Do we need a server.js file ?
I am a bit lost with socketio because i never used this before.
I have a second question, when i am trying to upload a video record by ghettostudio, Opencast tell my that the duration isn't set. Do you know which file i have to modify for set this duration ?
Best regards,
Lylian Blaud.

Hi Lylian
Sorry for the late reply; for some reason I have not received notification in my mailbox.

Short story: socket.io is not necessary for the site to work with Opencast.

Long story: Socket.io is used to manage connections between devices so that WebRTC connections can be created. Since Opencast does not support WebRTC (last I checked), the socket.io component is not necessary for Opencast.

Browser recordings do not have the header that contain the video's duration (this is due to
how the MediaRecorder API works). However, you can create Opencast workflows that sidestep this issue (see the inspect operation).

Either way, I'll have a look at a workable OC workflow (with one of these browser recorded videos) and post the results here for you.
Are you using LTI between Opencast and your LMS? I plan to make a PR to Opencast to have this tool work via LTI (timeframe unknown, unfortunately).

@Lyliian I had a look: the default fast workflow completed successfully when using the browser generated videos.
My setup:
CentOS 7.1
FFmpeg 3.4.5
Java 1.8.0_181
Opencast dev (7-SNAPSHOT)

If you still cannot complete a workflow, could you upload the the relevant log output to say pastebin (and add the link here thereafter)?

@slampunk I tried to use the same default fast workflow when using the browser generated videos. This one completed successfully but it's impossible to read the video. Opencast don't find any track.

@Lyliian which version of Opencast and FFmpeg are you using? You say

This one completed successfully but it's impossible to read the video.

Do you mean the workflow completed successfully?
Its best if you can provide OC logs for the workflow so that we can thoroughly investigate why your OC has problems with the browser recorded videos.


Feature allow custom browser names

Custom browser-names can now be defined as described in the docs. Furthermore, as a side-effect, browser-names can also be defined when testing manually. This is done by adding the argument displayName=<displayName> to the query-string.

Thanks, you're on a roll :)

Could you add a e2e test for this please, so we are sure this works as intended?

Yes! Will do this evening.
On Thu, Jan 14, 2016, 22:12 Friedel Ziegelmayer<EMAIL_ADDRESS>wrote:

Could you add a e2e test for this please, so we are sure this works as
intended?
—
Reply to this email directly or view it on GitHub
https://github.com/karma-runner/karma/pull/1806#issuecomment-171781122.

Done

Thanks for all the great work :octocat:


Test unpinned python dependencies using travis cron

Since some time, requirements*.txt include pinned versions of python dependencies.  Thus, we do not check compatibility against updated dependencies and thus can miss potential issues.  Unpinning the versions is also not great, as dependencies update asynchronously to Fiona commits triggering the CI.
This PR updates the travis configuration so that when a build is triggered using a travis cron job, the pinned versions in the requirements*.txt are removed, thus installing the latest dependencies.  For cron jobs, only known working builds are included (currently excluding gdal 3.0 and trunk).
In order to use these changes, a travis cron job needs to be configured: More options -> settings -> cron jobs: branch: master, interval: daily, options: always run
Potentials caveats are:

a cron job can only be executed for roughly 1000 times for the same commit.
a broken dependency can invalidate the proj/gdal cache and thus increase the build time for commits

Furthermore, this PR contains some cleanup in the travis configuration and removes enum34 and ordereddict as dependencies (drop of support for python < 3.5). Probably, six could also be removed, but this needs some refactoring.

Also, I noticed there are some inconsistencies between dependencies listed in README.rst and setup.py/requirements.txt. e.g. attrs (is this even used) and click-plugins.
grep -nr "attrs" .
./CHANGES.txt:144:- Dependency on attrs is made explicit.
./requirements.txt:2:attrs==18.2.0
./setup.py:269:    'attrs>=17',

Coverage remained the same at 82.494% when pulling 8f8f7b4d54948baf7d6d467748a457f495ba6779 on rbuffat:travis_cron_pydependencies into 417b94c21deb4745a39313891f51f67ebe98b871 on Toblerity:master.

Coverage remained the same at 82.494% when pulling 8f8f7b4d54948baf7d6d467748a457f495ba6779 on rbuffat:travis_cron_pydependencies into 417b94c21deb4745a39313891f51f67ebe98b871 on Toblerity:master.

@rbuffat thanks for looking into this. I'd like to have a little more discussion about this one. Until now, the Fiona builds have been focused on testing Fiona against different versions of Python and GDAL and we've pinned dependencies so that Python requirements don't change and continually break the build, obscuring issues with GDAL. I'm reluctant to change our strategy, because dependency incompatibilities haven't been common, but I suppose we should consider a change of strategy.

@sgillies  I don't mind if you don't merge this RR. The idea was a bit spontaneous after I stumbled on greenkeeper.io which does dependency checking for node js integrated into github and I wanted to try if something similar can be done with python. I think the situation between nodejs, where I assume there are a lot of fast changing libraries, and fiona is quite different.  As you mentioned before, all the dependencies fiona uses are quite major and stable. I suspect the dependency with the highest potential for issues is cython (e.g https://github.com/Toblerity/Fiona/issues/212).
I completely agree that the best strategy for regular commits / PR is to use a known working set of pinned dependencies. However, this strategy leaves two questions open:

Do the minimal specified requirements in setup.py still work? (not yet addressed)
Does fiona works with the latest version of its dependencies? (addressed in this PR)

If we should test these cases depends on the likelihood of something to break versus the work needed to create, maintain and run a system that checks them.
After having a daily cron job enabled on travis for this branch for a few days I noticed that for two consecutive days there were some network errors (HTTP code 503) for random builds.  Thus, if we want to go forward with testing on a daily basis probably the unit tests should be adopted that they just emit a warning and do not fail if the network is not available.
E   fiona._err.CPLE_HttpResponseError: HTTP response code: 503
E   fiona.errors.DriverError: '/vsizip/vsicurl/http://raw.githubusercontent.com/OSGeo/gdal/master/autotest/ogr/data/poly.zip' does not exist in the file system, and is not recognized as a supported dataset name.

@rbuffat thanks. I'm going to close this one if you still don't mind.


The APK for the app? 🍩

I found the app here: https://education.github.com/globalcampus/student
Wanted to know if this was ship ready
If yes, how can we directly use this app, without building it from scratch :)

Certainly, the app is not yet finished, as there is some core functionality still being worked on, although most of the basic features are already completed (add account, add transaction, filter by date, filter by account, show pie chart, etc).
That:s why I linked it there.
Anyways, once it is done, I'll publish the .apk in the releases section.

And if you think it's ready for an "open audience": will you start tagging releases here and attach the APK there, so it can be found easily?

I definitely will. Thanks for the feedback!

Great! Please drop a note here in this issue when the APK is there :star_struck:

I apologize for the late response but I've finally attached the debug build in the first Alpha release, so that it can be downloaded easily.
Despite being a pre-release it contains most of the application logic. The remaining finishing features will be added soonly 🚀.

Thanks a lot! How about a release build, with properly set versioning? The current one, despite being v0.1.0-alpha, identifies as
package: name='com.jxareas.xpensor' versionCode='1' versionName='1.0'

which not only is a bit confusing, but also makes it hard for my updater to check for a newer version (it would ignore all tags pointing to a version <= 1.0, as it thinks they are older).

Whoops! 😅 Yeah, as you can see I was migrating the Gradle files from Groovy to KTS and actually forgot to update the version in the ProjectProperties.kt file. Thanks for reminding me! I appreciate it a lot and will correct it ASAP.

Oh, already done – and there I wait for a ping :see_no_evil: Set it up then for my repo, should become visible here with the next sync at 7 pm UTC. Be welcome to pick a badge if you want to link there form e.g. your readme :smiley:
For now it's clearly marked "alpha" and "debug"; as soon as you provide release builds, the warning will be removed.
Thanks again!

Will do, I appreciate the info! I've also updated the previous release with the build .apk.

I usually don't replace APKs which have already been published – but that can of course be done. Though it would require the replacement to be properly signed :wink:
$ apksigner verify --verbose xpensor-release.apk
DOES NOT VERIFY
ERROR: Missing META-INF/MANIFEST.MF

If you're planning a new release within a week or two, it would fully suffice to wait for that. If not, and there's a properly signed release build, I can replace the existing APK – which would only affect new installs of course.


Update index.js

Replaced line 46 with the correct server error code.

Hey, I'm closing this PR right away. There's no issue here, I'll attach a link to give clarity.
Understanding switch statemennts


I broke the notebook file

Lines In [28]: and In [31]: seem to have stopped working when I did the PEP8 alterations: #2 .

We will have to work towards a stable current draft, able to run all our tox and travis tests...


[GLUTEN-2582][CH]Bug fix crash in array struct select

Changelog category (leave one):
Bug fix
Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Bug fix problem described in: https://github.com/oap-project/gluten/issues/2582
While use array as filter, like select * from table where data[0].a = 1,  it will use arrayElement function to do its filter action,  and go to #perform#executeTuple at arrayElement.cpp, which will return directly, and not init sink to builder.
and the sink_null_map_holder in builder not init, still is a nullptr, the left procedure will transform on this nullptr, and cause crash.
Documentation entry for user-facing changes

[ ] Documentation is written (mandatory for new features)

Information about CI checks: https://clickhouse.com/docs/en/development/continuous-integration/

Can one of the admins verify this patch?


This article is about process improvement of business model hope you …

…like it

@Musfirazia the document that you have shared doesn't feel like that it's an article, more like it seems like a research paper. Please improve the article quality and commit again.


NUMBERS-84: Adding NaN and infinite checks to Quaternion

Adding NaN and infinite checks to Quaternion normalize() and inverse() methods.

Coverage remained the same at 92.691% when pulling 3d1df35417f177c4ab9181b98678d9601c01c65e on darkma773r:numbers-84 into c0bf9f7d93c9f5fd09bd123a089614727ee1ad6e on apache:master.


Embeddings are not generated

After python localrag.py is run, the cursor moves to next line but no embedding is created. No action afterwards.

will take a look,di you ollama pull mxbai-embed-large?

I think it is something to do with /n/n in the upload.py. I removed the empty lines between chunks in vault file and revise the code to add only /n, the code now works.

okey very interesting. i might update that in the upload.py. thnx :)


suggestion trigger

i select a function name of suggestions window and for trigger it i want to use "(" instead "enter"/"tab".  like < idle >.

@byehack, sorry for the confusion.

It is trivial to add the option but the python.autoComplete.addBrackets should be set to false since otherwise you'll get print(()). Per LSP when completion character is typed then the entry is accepted and the completion character is added. When python.autoComplete.addBrackets: true, the entry is a snipped as in print($0) so you get double braces. Side effect of ``python.autoComplete.addBrackets: falseis that you getprint()when completing with(but you'll get plainprint` when completing with tab or space.

microsoft/vscode-python#10306

Per https://github.com/microsoft/vscode-python/issues/10306#issuecomment-604103769, I don't think we're going to be doing this at this time. Closing for consistency with the extension.


Bug: Prices are different at our service than they are at the printing providers.

CRITICAL

Shapeways and sculpteo seem to be ok while imaterialise is off by far in testing case. Analysis has been conducted and saved for later. Right now it appears to be an deviation in imaterialise Web Tool and API.


ECCN for opencl

Hi, For documentation purpose and project release process we need the Export control classification number(ECCN) for Opencl if it applies. Can you please let me know the ECCN ?

Hi,
The OpenCL Headers are published open source and do not contain encryption technology and so are not subject to EAR.
Consequently the ECCN is EAR99.
Thanks


Add a cwp demo link

I'm not sure it's suitable putting it into here. But it could be a good idea about how to use this project.

Needs a disclaimer that it is for "Chinese Users" as it is mentioned in the repo

Yes. Good point. But if it became more mature, I'd like to expand it to other users cases.


TTL on traces

Requirement - what kind of business use case are you trying to solve?
Provide a way to control TTL for traces without needing to configure individual storage systems manually.

Problem - what in Jaeger blocks you from solving the requirement?
I can not find any documentation on how to handle maintenance with Jaeger. Are we suppose to access whatever preferred database backend manually and clean up data over the course of months of usage? Wouldn't this require us to understand the data model jaeger is using to make sure things aren't left in a broken state?

Proposal - what do you suggest to solve the problem or improve the existing situation?

Any open questions to address
I believe cassandra offers TTL on data, ES generally has some sort of cron job running to fake TTL, the in memory dev setup has a way to specify the max amount of records and so on.
Is there a way to simply standardize this so that it can be configured at the Jaeger level and let the plugin determine how to implement it?

EDIT: Doing more research on this I see that ES does support TTL. I suppose the correct way is to just fully understand your backend storage and manually configure it during or after the schema creation?

In Cassandra the TTL is defined per-table, and is configurable through the schema script/container we provide.
ES did not have TTL support previously, so there's an index cleaner container provided. Could you please link to the docs where you founds it does provide TTL?
If you would like to suggest a PR to change the docs, it would be great.

You are correct, after looking this up again it seems it was removed around 2017 due to how it was implemented. They suggest using delete_query instead via scheduled jobs.
I guess the issue here is two fold, from my experience cassandra and ES are not the type of database you can simple install and they work out of the box without extended maintenance and monitoring. This creates a bit of an issue when what you are looking for is a distributed trace system and it requires you to understand its dependencies.
Perhaps maybe there should be some documentation on how to maintain Jaeger for the long term? I know this would be storage specific but my simple question is how do I maintain this application over the course of a year or 5 without understanding the backing storage or your data model and their relationships with one another?

how do I maintain this application over the course of a year or 5 without understanding the backing storage or your data model and their relationships with one another?

The repo provides scripts for db schema and when we extend the schema we will provide data migration scripts. Otherwise I don't think it is a realistic expectation to be able to run Jaeger without any operational knowledge of the underlying database. Your other options are:

use a hosted database like Elasticsearch on AWS, which still requires some operational knowledge, at least about db schema, or
use a hosted version of Jaeger.


Yet another Subdomain package

I'm happy to announce that I created a package for this problem as well 🎉
If you are looking for an easy package for subdomain multilingual urls, this package is for you. 😜
Old Way: https://example.com/de, https://example.com/fr etc.
New Way: https://de.example.com, https://fr.example.com etc.
Link to the package:
https://github.com/pmochine/Laravel-Tongue

hello, @pmochine
thanks for your contrinbution, what does your package offer more that this ?


Replace Clone bound with Freeze

There is currently an RFC being considered for the Freeze trait. I believe that targeting this trait could simplify evmap's implementation (likely removing ShallowCopy) and expanding its bounds (it's an auto trait for all structs not directly containing UnsafeCell). The current belief is that there are only niche use cases for this trait and not worth adding to the standard library, but it would be great to hear if a more well known crate like evmap could benefit from it's addition.

Hmm, I don't see how Freeze removes the need for ShallowCopy? Just because a type has no interior mutability does not mean it can be cheaply aliased the way ShallowCopy enables.

Hmm. I think it does so long as you keep track of the number of aliases that exist? If I'm wrong I'd love to have a counter example.
The general idea is if something is immutable, you can't tell the difference whether you're viewing a copy from location A or a copy from location B (self-referential structs excluded and not safe in Rust anyway). In Rust you can tell that there are two copies of non-copy things because drop is called by each. However, if you take on the responsibility of calling drop by ManuallyDrop on insert, you can have multiple copies of an immutable item and your users would never know the difference.  You can create copies of the immutable bytes with the very fast ptr::copy_nonoverlapping and when the last copy is about to go out of scope, you call ptr::drop_in_place on it.
Besides managing the drops, the Freeze bound is the necessary enabler for this type of scheme because if T has a Mutex or any interior mutability, you will never know when it is actually safe to copy the bytes. There may be other caveats that I'm not thinking of (like can you copy_nonoverlapping a MaybeUninit?), but the working theory is
Manual dropping + Reference counting + Freeze  =  Very cheap aliasing
So instead of the Copy, ShallowCopy, Clone dance, you would: have a Freeze bound, use copy_nonoverlapping between maps, and manually call drop on the items that have been replaced when you switch over the readers.
If Freeze was an auto trait, you would also have a significantly wider scope of compatible structs than you'll get with either Copy or Clone and they would all have equally cheap copying cost.
Hopefully this makes sense, and I don't actually expect you to pursue this because even in theory it's only a marginal gain, but I thought it may be worth considering in light of the RFC.

Actually, thinking some more about it, I wonder if the concern is the other way around: there may be types that do have interior mutability that users nevertheless want to implement ShallowCopy for, because they know they never modify that value when it is present in the map.
That said, I think your argument is probably sound that Freeze would go a long way towards what ShallowCopy is trying to capture. It's a little weird though, because ShallowCopy isn't really about interior mutability — it was originally intended as a way to indicate that an alias copy of type can be cheaply constructed. I feel like even though Freeze probably implies ShallowCopy (or close to it), they're different enough in semantics that I think I'd want them to be separate. As mentioned above, it might be that a user wants to ShallowCopy a value that isn't Freeze (and it's on them to not invoke the interior mutability). I don't know if I can think of the opposite case — where someone wants a type to be Freeze but not ShallowCopy — but the fact that it isn't clear makes me think that these really are distinct types with (subtly) different meanings.

Yeah. You're right. Freeze would at best be a subset, and theoretically you shouldn't have to disallow InteriorMutability in the types. In an ideal world you could do something like only give out &immut references which could be used anywhere & was used, but then error or warn if there was attempt to write to an UnsafeCell. Then you could still safely do the cheap ptr::copy, ManuallyDrop trick and you wouldn't have the limits on the types. Unfortunately, I don't think something like &immut is coming anytime soon. Anyway, I've been thinking about Freeze for my own projects and I thought I'd point it out as a potentially interesting alternative approach for evmap. I'm going to close this, but thanks for your time and thoughts! Cheers!


explicitly set service provider on redhat systems

filebeat ships an init script, even on EL7 systems. puppet 4 cannot correctly check the status of init scripts through the EL7 systemd->init wrapper and thus attempts to start the service every time. While this doesn't actually try and start the service, the systemd wrapper is smart enough, it does cause an always changing scenario on every run.
Explicitly setting the provider to 'redhat' solves this and is safe even on older non-systemd redhat systems.

Thanks for catching this - I pushed this up to the forge in v0.5.8.

Thanks for the quick turnaround!


Set tabHeight to be dynamic

TabDropHint currently uses a hardcoded tabHeight value of 28.
This PR updates the implementation to make tabHeight dynamic, while maintaining backward compatibility.
The new behavior becomes more flexible and responsive to changes in the UI.
Feel free to let me know your thoughts.
(New) Dynamic Tab Height:

(Old) Hardcoded Tab Height:

Changes are the following:

The signature of the internal mothod refresh(tabPos, width, height) has been updated to refreshInsertion(tabPos, tabAreaPos, width, height). The name change is to avoid conflict with refresh(startX, startY, width, height), as both methods accept the same primitive types (double).
A new protected method getTabAreaPos has been added within TabDropHint, returning the maximum Y-coordinate of the tab area.
The CustomDropHint sample class now uses dynamic height instead of a fixed height.

Your code is perfect. Keep the PRs coming. Merged.
Thank you,

👍 Thanks for the kind words, glad to contribute.


Unable to deploy using create2 on private chain.

When trying to deploy our diamond contracts on our private chain, we get the following error:
$ /path/node_modules/.bin/hardhat --network staging deploy
Nothing to compile
No need to generate any newer typings.
sending eth to create2 contract deployer address (0x3fab184622dc19b6109349b94811493bf2a45362) (tx: 0xa1b6b912160ec5fba1095876574bf712210e48e1f2338de3bc689a059044f735)...
deploying create2 deployer contract (at 0x4e59b44847b379578588920ca78fbf26c0b4956c) using deterministic deployment (https://github.com/Arachnid/deterministic-deployment-proxy)An unexpected error occurred:

Error: ERROR processing /path/deploy/10_deploySpc.ts:
Error: legacy pre-eip-155 transactions not supported (error={"name":"ProviderError","code":-32000,"_isProviderError":true}, method="sendTransaction", transaction="0xf8a58085174876e800830186a08080b853604580600e600039806000f350fe7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf31ba02222222222222222222222222222222222222222222222222222222222222222a02222222222222222222222222222222222222222222222222222222222222222", code=UNSUPPORTED_OPERATION, version=providers/5.6.8)
    at Logger.makeError (/path/node_modules/@ethersproject/logger/src.ts/index.ts:261:28)
    at Logger.throwError (/path/node_modules/@ethersproject/logger/src.ts/index.ts:273:20)
    at checkError (/path/node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:119:16)
    at Web3Provider.<anonymous> (/path/node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:603:20)
    at step (/path/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:48:23)
    at Object.throw (/path/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:29:53)
    at rejected (/path/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:21:65)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at DeploymentsManager.executeDeployScripts (/path/node_modules/hardhat-deploy/src/DeploymentsManager.ts:1222:19)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async DeploymentsManager.runDeploy (/path/node_modules/hardhat-deploy/src/DeploymentsManager.ts:1052:5)
    at async SimpleTaskDefinition.action (/path/node_modules/hardhat-deploy/src/index.ts:438:5)
    at async Environment._runTaskDefinition (/path/node_modules/hardhat/src/internal/core/runtime-environment.ts:219:14)
    at async Environment.run (/path/node_modules/hardhat/src/internal/core/runtime-environment.ts:131:14)
    at async SimpleTaskDefinition.action (/path/node_modules/hardhat-deploy/src/index.ts:584:32)
    at async Environment._runTaskDefinition (/path/node_modules/hardhat/src/internal/core/runtime-environment.ts:219:14)
    at async Environment.run (/path/node_modules/hardhat/src/internal/core/runtime-environment.ts:131:14)
    at async SimpleTaskDefinition.action (/path/node_modules/hardhat-deploy/src/index.ts:669:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Do we need to create the deployment proxy ourselves? If so, maybe a bit of documentation would be useful.
If we deploy it ourselves, how would we tell hardhat-deploy at which address the deployment proxy is? Would a deployment of https://github.com/Arachnid/deterministic-deployment-proxy be sufficient?

So - it seems that the function trying to get the deployment proxy up and running is using this:
  public async getDeterministicDeploymentFactoryDeploymentTx(): Promise<string> {
    const info = await this.getDeterminisityDeploymentInfo();
    return (
      info?.signedTx ||
      '0xf8a58085174876e800830186a08080b853604580600e600039806000f350fe7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe03601600081602082378035828234f58015156039578182fd5b8082525050506014600cf31ba02222222222222222222222222222222222222222222222222222222222222222a02222222222222222222222222222222222222222222222222222222222222222'
    );
  }

On the hardhat network it seems because the fake hardhat network hasn't passed the EIP155 block.
On an existing chain, it's very likely that these contracts were deployed pre-EIP155 - so the transaction was accepted.
On a private chain though, it's a different story - EIP155 has "already happened" and this transaction isn't accepted (It might be missing the chain ID, as EIP155 is a counter-measure to cross-chain transaction replay attacks I think?)...
What do you advise?
Would it be possible to deploy the deployment contract ourselves, and somehow give its address to Hardhat when using `diamond.deploy(deterministicSalt: '0x...', deploymentProxyAddress: '0x....')?

Also - as we could start testing our contracts on our staging chain without having to deploy them deterministically, I've tried to deploy them without deterministic options. Well - it seems that hardhat-deploy is still trying to deploy the contract factory for create2 even when not asked to use deterministic stuff.
Is there a way to deploy diamonds without any deterministic routines involved?

Since I cannot seem to deploy diamonds without deterministic deploys, I tried to dig deeper into how we could have our own deployment proxies. I ended up generating our own. In hardhat.config.ts it looks like something like this:
  ...,
  networks: {
    hardhat: {
      live: false,
      // saveDeployments: true,
      tags: ['local', 'test']
    },
    localhost: {
      live: true,
      saveDeployments: true,
      tags: ['local'],
    },
    staging: {
      live: true,
      saveDeployments: true,
      url: nodeUrl('staging'),
      chainId: 18021981,
      accounts: accounts('staging'),
      tags: ['staging']
    },
    production: {
      live: true,
      saveDeployments: true,
      url: nodeUrl('production'),
      chainId: 18021982,
      accounts: accounts('production'),
      tags: ['staging']
    }
  },
  ...

Against all odds, this works great locally. It seems that created2 is delegated properly to the factories using the signed transactions.
However when trying to deploy in one of our live chains, I get the following errors:
Error: ERROR processing /project/deploy/10_deploySpc.ts:
Error: cannot estimate gas; transaction may fail or may require manual gas limit [ See: https://links.ethers.org/v5-errors-UNPREDICTABLE_GAS_LIMIT ] (reason="execution reverted", method="estimateGas", transaction={"from":"0x717634cfe06FFAB2CEAA7fcf1b9019813f4B25FE","to":"0x13d35d4268ae26f2fD345c29A28182225aA9d10A","data":"0x...TRUNCATED, TOO LONG!!!","accessList":null}, error={"name":"ProviderError","code":-32000,"_isProviderError":true}, code=UNPREDICTABLE_GAS_LIMIT, version=providers/5.6.8)
    at Logger.makeError (/project/node_modules/@ethersproject/logger/src.ts/index.ts:261:28)
    at Logger.throwError (/project/node_modules/@ethersproject/logger/src.ts/index.ts:273:20)
    at checkError (/project/node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:78:20)
    at Web3Provider.<anonymous> (/project/node_modules/@ethersproject/providers/src.ts/json-rpc-provider.ts:603:20)
    at step (/project/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:48:23)
    at Object.throw (/project/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:29:53)
    at rejected (/project/node_modules/@ethersproject/providers/lib/json-rpc-provider.js:21:65)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at DeploymentsManager.executeDeployScripts (/project/node_modules/hardhat-deploy/src/DeploymentsManager.ts:1222:19)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async DeploymentsManager.runDeploy (/project/node_modules/hardhat-deploy/src/DeploymentsManager.ts:1052:5)
    at async SimpleTaskDefinition.action (/project/node_modules/hardhat-deploy/src/index.ts:438:5)
    at async Environment._runTaskDefinition (/project/node_modules/hardhat/src/internal/core/runtime-environment.ts:219:14)
    at async Environment.run (/project/node_modules/hardhat/src/internal/core/runtime-environment.ts:131:14)
    at async SimpleTaskDefinition.action (/project/node_modules/hardhat-deploy/src/index.ts:584:32)
    at async Environment._runTaskDefinition (/project/node_modules/hardhat/src/internal/core/runtime-environment.ts:219:14)
    at async Environment.run (/project/node_modules/hardhat/src/internal/core/runtime-environment.ts:131:14)
    at async SimpleTaskDefinition.action (/project/node_modules/hardhat-deploy/src/index.ts:669:5)
error Command failed with exit code 1.

Any idea what could be happening? Is hardhat deploying the factory itself, or do I need to do anything?

A bit more information... I was able to get a tad further:
$ /project/node_modules/.bin/hardhat --network production deploy
Nothing to compile
No need to generate any newer typings.
sending eth to create2 contract deployer address (0x17AdB725223aEa5F990Fcdf1Cd02E3284F2ecc90) (tx: 0xd9eda6d0f72d59decae22841626699c012482c79694ee2b2f92867b2aa4f63c5)...
deploying create2 deployer contract (at 0x882eB7eD0758c5Db6DEd44a04655dFa252cfA521) using deterministic deployment (https://github.com/Arachnid/deterministic-deployment-proxy) (tx: 0x1ad3e523d54d7415274ad55929d0f63cfd3f9263c08277bfe6a10d94556d7667)...
deploying "SpcTopFacet"closed {"name":"SocketError","code":"UND_ERR_SOCKET","socket":{"bytesWritten":36625,"bytesRead":26422},"transactionHash":"0x08df44fb3a1817587e24bf30ad1f2ab79a50d79b6f29aaaee43debb52154b5d3"} SocketError: closed
    at TLSSocket.onSocketClose (/project/node_modules/undici/lib/client.js:967:31)
    at TLSSocket.emit (events.js:412:35)
    at TLSSocket.emit (domain.js:475:12)
    at net.js:686:12
    at TCP.done (_tls_wrap.js:564:7) {
  code: 'UND_ERR_SOCKET',
  socket: {
    localAddress: undefined,
    localPort: undefined,
    remoteAddress: undefined,
    remotePort: undefined,
    remoteFamily: undefined,
    timeout: undefined,
    bytesWritten: 36625,
    bytesRead: 26422
  },
  transactionHash: '0x08df44fb3a1817587e24bf30ad1f2ab79a50d79b6f29aaaee43debb52154b5d3'
}
An unexpected error occurred:

Error: ERROR processing /project/deploy/10_deploySpc.ts:
SocketError: closed
    at TLSSocket.onSocketClose (/project/node_modules/undici/lib/client.js:967:31)
    at TLSSocket.emit (events.js:412:35)
    at TLSSocket.emit (domain.js:475:12)
    at net.js:686:12
    at TCP.done (_tls_wrap.js:564:7)
    at DeploymentsManager.executeDeployScripts (/project/node_modules/hardhat-deploy/src/DeploymentsManager.ts:1222:19)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async DeploymentsManager.runDeploy (/project/node_modules/hardhat-deploy/src/DeploymentsManager.ts:1052:5)
    at async SimpleTaskDefinition.action (/project/node_modules/hardhat-deploy/src/index.ts:438:5)
    at async Environment._runTaskDefinition (/project/node_modules/hardhat/src/internal/core/runtime-environment.ts:219:14)
    at async Environment.run (/project/node_modules/hardhat/src/internal/core/runtime-environment.ts:131:14)
    at async SimpleTaskDefinition.action (/project/node_modules/hardhat-deploy/src/index.ts:584:32)
    at async Environment._runTaskDefinition (/project/node_modules/hardhat/src/internal/core/runtime-environment.ts:219:14)
    at async Environment.run (/project/node_modules/hardhat/src/internal/core/runtime-environment.ts:131:14)
    at async SimpleTaskDefinition.action (/project/node_modules/hardhat-deploy/src/index.ts:669:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Now the weirdest thing is happening - hardhat console --network staging works fine, and I can query balances for example.
But trying to deploy again gives me:
yarn run v1.22.17
$ /project/node_modules/.bin/hardhat --network staging deploy
Nothing to compile
No need to generate any newer typings.
An unexpected error occurred:

Error: ERROR processing /project/deploy/10_deploySpc.ts:
SocketError: closed
    at TLSSocket.onSocketClose (/project/node_modules/undici/lib/client.js:967:31)
    at TLSSocket.emit (events.js:412:35)
    at TLSSocket.emit (domain.js:475:12)
    at net.js:686:12
    at TCP.done (_tls_wrap.js:564:7)
    at DeploymentsManager.executeDeployScripts (/project/node_modules/hardhat-deploy/src/DeploymentsManager.ts:1222:19)
    at processTicksAndRejections (internal/process/task_queues.js:95:5)
    at async DeploymentsManager.runDeploy (/project/node_modules/hardhat-deploy/src/DeploymentsManager.ts:1052:5)
    at async SimpleTaskDefinition.action (/project/node_modules/hardhat-deploy/src/index.ts:438:5)
    at async Environment._runTaskDefinition (/project/node_modules/hardhat/src/internal/core/runtime-environment.ts:219:14)
    at async Environment.run (/project/node_modules/hardhat/src/internal/core/runtime-environment.ts:131:14)
    at async SimpleTaskDefinition.action (/project/node_modules/hardhat-deploy/src/index.ts:584:32)
    at async Environment._runTaskDefinition (/project/node_modules/hardhat/src/internal/core/runtime-environment.ts:219:14)
    at async Environment.run (/project/node_modules/hardhat/src/internal/core/runtime-environment.ts:131:14)
    at async SimpleTaskDefinition.action (/project/node_modules/hardhat-deploy/src/index.ts:669:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Related to https://github.com/rsksmart/rskj/issues/1805, dropping to v2.9.7 of HH seemed to fix it.

Yep - thanks @jamesduncombe !!!


Assignment expiry timeframe

The doc says "after the assignment expires in PIM.", but does not define what the actual valid timeframe for the assignment is. Is the sysadmin role assignment setup for 1 day when you call the applyAdminRole API?

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

ID: 677e918d-e3bd-4f2e-708a-c06a77ed6826
Version Independent ID: 677e918d-e3bd-4f2e-708a-c06a77ed6826
Content: Use Entra Privileged Identity Management in Power Platform admin center to manage high-privileged admin roles - Power Platform
Content Source: power-platform/admin/manage-high-privileged-admin-roles.md
Service: power-platform
Sub-service: admin
GitHub Login: @srpoduri
Microsoft Alias: sripod

The assignment in Dataverse is permanent since we do not know how long the assignment in PIM is. Remove the sysadmin role assignment using the Powershell script provided depending on how your IT policies are structured around PIM defaults.

Thanks for your comment, @rajyraman. This issue has been assigned to the doc author for review.

Thank you for the clarification @srpoduri


Example isn't functional due to medgraphqlapi module isn't found

Please provide instructions to load medgraphqlapi module.

This is a great comment. Yes, I should provide a self-contained example that runs.


Compilation without BOOST_LOG_WITHOUT_EVENT_LOG fails on Windows

The compilation of the log component fails because a missing header file: simple_event_log.h
This file should be generated with the mc tool, but instead, the CMakeLists adds the mc file to the sources.

Do you know how to run this tool with cmake? I can then integrate the cmake code into the build.

Poco has some code for finding it.
I'm, not sure why they limited the registry lookup for the Visual Studio generator - I think those lookups should always work on windows, and definitely when the MSVC variable is 1 (such as when compiling with cl and ninja - I'll test this.


Monitoring SPB

menambahkan field di unit payment order manager untuk laporan monitoring SPB

Coverage increased (+0.01%) to 77.362% when pulling 62ee391a7999ecd745b8ba76731ed8f65793d72b on baguswidypriyono:dev into d9111bd20707d59a1fe7e57f68c69540f8516d35 on danliris:dev.


need a button sign in page to home page

when we click on sign in page there is no option to go back to home page
i can work on this issue can you assign me this issue under gssoc 23

i can solve this issue can you assign me this issue

@mandliyarajendra11 are you working on this issue?

yes sir even fixed


How to integrate Handlebars

I have a requirement where I want to have few parts application to be handled through tailor and rest through templating engine like Handlebars. I believe using any templating engine will help us in managing views more efficiently. How easy it would be to use Handlebars with the current tailor.js setup ?

Yes it should be possible if you do the template compilation in a fragment server
Example 1

     <fragment src="http://handle-bar-fragment.blah"/>

In your fragment server.js, you can do
var http = require("http");
var Handlebars = require("handlebars");
var compiled = Handlebars.precompile(template);

http.createServer((req, res) => {
   var template = "
whatever {{ name }}
";
   var compiled = Handlebars.precompile(template);
   // stream the template code
   response.end(compiled);
})

Example 2
If you don't want to run servers, you can simply use the handlebar runtime like you do in regular HTML

You can also have fragments in the above HTML and tailor would stream them like regular setup.

This helps. I want to set Handlebar as the view engine in the tailor app and not in the fragment. Actually I was also trying to figure how how can I dynamically set variables in the HTML of Tailor app. For example I see specify  How is it possible to set localhost via config variable. I might sound little dumb but I am unable to figure out this as we are not using any view engine within the tailor app.

Can you post an example html of how you would like to get it working?

Let say I have base layout defined this way:
<!doctype html>

Sample

        {{{body}}}

Child views defined like this(I would have multiple child views each can have multiple fragments). :
Hello World

{{somevalue}}
The "somevalue" is being populated by Handlebars during server rendering. In case if we don't use Handlebars what should be the best way to assign values from node object to views. E.g. I want my host and port no. for different env coming from some config file. Any pointers should help.

You can use handlebars as long as you process the template string before you return it from Tailor. What I've done is create a custom fetchTemplate function. In that function you will have access to the template HTML string which you can feed into the handlebars compile function to get your data into the template.
Let me know if you have any more questions.


Can't start

Execution error (UnsupportedClassVersionError) at java.lang.ClassLoader/defineClass1 (ClassLoader.java:-2).
schnorr/Schnorr has been compiled by a more recent version of the Java Runtime (class file version 62.0), this version of the Java Runtime only recognizes class file versions up to 61.0
Just FYI. from just pure clone and run
lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 22.04.2 LTS
Codename:	jammy
java --version
openjdk 17.0.7 2023-04-18
OpenJDK Runtime Environment (build 17.0.7+7-Ubuntu-0ubuntu122.04.2)
OpenJDK 64-Bit Server VM (build 17.0.7+7-Ubuntu-0ubuntu122.04.2, mixed mode, sharing)

Yes, it’s compiled using openjdk-17 (17.0.2)

On Jun 4, 2023, at 09:21, techny210 @.***> wrote:
Execution error (UnsupportedClassVersionError) at java.lang.ClassLoader/defineClass1 (ClassLoader.java:-2).
schnorr/Schnorr has been compiled by a more recent version of the Java Runtime (class file version 62.0), this version of the Java Runtime only recognizes class file versions up to 61.0
Just FYI. from just pure clone and run
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Codename: jammy
java --version
openjdk 17.0.7 2023-04-18
OpenJDK Runtime Environment (build 17.0.7+7-Ubuntu-0ubuntu122.04.2)
OpenJDK 64-Bit Server VM (build 17.0.7+7-Ubuntu-0ubuntu122.04.2, mixed mode, sharing)
—
Reply to this email directly, view it on GitHub https://github.com/unclebob/more-speech/issues/41, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAJAJPEMNKRYPHLLAOFBGTXJSKVFANCNFSM6AAAAAAYZ7I63Y.
You are receiving this because you are subscribed to this thread.

Robert C. Martin (Uncle Bob) | @.***
Uncle Bob Consulting LLC.    | @unclebobmartin
847.922.0563                 | cleancoder.com


Removing GDRenderW as submodule

Because the contents wont load and it is a bit thougher to work with.

omg so sad 😢

rip in rip 😢😢😢😢😢😭😭😭😭😭😿😿


I got 76.67fps on 1080Ti

Here is the output:
python eval_fps.py 512,1024
=========Speed Testing=========
Elapsed Time: [1.30 s / 100 iter]
Speed Time: 13.04 ms / iter   FPS: 76.69

And  on the resolution of 1024,2048 it's even more slower.
 CUDA_VISIBLE_DEVICES=0 python eval_fps.py 1024,2048
=========Speed Testing=========
Elapsed Time: [4.95 s / 100 iter]
Speed Time: 49.51 ms / iter   FPS: 20.20

#4 Please refer to this issue, you should clear the GPU occupation then test the fps

Here is the output:
python eval_fps.py 512,1024
=========Speed Testing=========
Elapsed Time: [1.30 s / 100 iter]
Speed Time: 13.04 ms / iter   FPS: 76.69

And on the resolution of 1024,2048 it's even more slower.
 CUDA_VISIBLE_DEVICES=0 python eval_fps.py 1024,2048
=========Speed Testing=========
Elapsed Time: [4.95 s / 100 iter]
Speed Time: 49.51 ms / iter   FPS: 20.20

Have you solved the problem?


Document actor system

You can see this live at https://github.com/pquentin/rally/blob/document-actor-system/docs/architecture/actor_system.md.

I went through PrepareBenchmark so far. A few remarks, a wish list for later mostly:

I fixed TrackPreparationActor, would you like contributing your other fixes to this branch or in another pull request?

@dliappis @inqueue I've adjusted description based on the previous discussion and also updated diagrams for StartBenchmark section while I was reviewing the code myself. I will continue with extra additions in this doc in other PRs, if needed. PTAL.

One thing I wanted to ask is how come this isn't living under the official docs e.g. in the Reference Documentation or Additional Information sections? (is it because Mermaid isn't available?)

It should be possible to use Mermaid with Sphinx but it would require additional package, see https://github.com/mgaitan/sphinxcontrib-mermaid. That's work in progress. If/when this matures we can include this in official documentation.


Questions Added

I have added three coding round questions, 1 technical interview, DBMS ,OS and system design question. Also, 2 miscellaneous questions.

No description provided.

Pls resolve the conflict.

@rishabh115 please check this out, is it okay?

@rishabh115 please check this out, is it okay?

Still it hasn't been resolved


[FEATURE REQUEST] Dynamically tuning concurrency/connection limit or bailing after n connection failures

A common problem I run into is that some sites have issues when supporting too many concurrent connections, or too high a rate of connections- of course every site has its breaking point- but read my next paragraph for more detail on this. This can be mitigated by tuning feroxbuster with -t and -L for each individual target, of course.
The problem comes in when doing testing across a large amount of sites at once, using, e.g. GNU parallel. If you are performing testing against a medium or large organization with many websites, sometimes you'll need to batch a large set of commands due to testing time constraints, and it won't be practical to test and tune the  -t and -L setting for each individual site, since they can vary quite a bit within a large set. Consider for this example a list of 1000 or more sites.
A nice feature would be to either:

(Simple Solution) Simply bail out after n connection failures
(Complex / Better Solution) Tune the threads and/or concurrent connections setting dynamically, based on the occurrence of connection failures

Some workarounds here:

As I mentioned, manually testing each site and having a per-site -t and -L setting; this is prohibitively expensive in terms of time during a large-scale test
Using a very conservative value across all sites; this is detrimental to the large amount of sites that can handle (in many cases) many multiples of that conservative setting, slowing the entire testing run of the entire batch down significantly

This may be beyond the scope of what you would like to implement and maintain within feroxbuster, but for me, it would be a very useful feature.
Curious what you think about this
Thanks, I appreciate your development on this tool. I haven't seen a public tool that performs as well as feroxbuster, with such flexibility and robust and advanced features since skipfish- which is no longer maintained and never really had a happy medium between "way too agressive" and "completely limited in its findings"

I'm not sure how this got closed, but reopening.
As always, thank you for your awesome requests and suggestions!
I like the idea of this, and I think once we get #107 merged (which allows us to cancel a scan), this ticket becomes much more manageable.  Given how things are structured, I think the following will need to happen:

track errors (discussed here)
some configurable way of either opting-in or opting-out of auto-tuning (if opt-in, probably include a dial for number of errors or something)
pause scanning for a handful of seconds to allow requests already in flight to complete
limit concurrency in a way that makes sense

-t would require cancelling a directory and restarting it, whereas -L could just keep things paused until that directory is allowed to proceed.  -L feels like the better solution, if it's effective.  Would need some testing.

As I've walked myself through this, I don't think this issue is blocked by #107 necessarily.  #107 only becomes a blocker of the -L solution doesn't really help/work.  We won't really know if it's effective or not until it's attempted.

... closed automatically again ...

Update on this one: I've added metrics for most things I can think of.
String output
──────────────────────────────────────────────────
 📊                Scan Summary                📊
───────────────────────────┬──────────────────────
 Average Dir Scan          │      1.6992 secs
 Longest Dir Scan          │      2.2181 secs
 Shortest Dir Scan         │      1.0123 secs
 Total Scan Time           │      3.2576 secs
 403 Forbidden             │           2
 Client Error Codes        │         1442
 Errors                    │           2
 Redirects                 │           6
 Requests Expected per Dir │          206
 Requests Sent             │         1451
 Resources Discovered      │           9
 Success Status Codes      │           3
───────────────────────────┴──────────────────────

JSON output
{"type":"statistics","timeouts":0,"requests":1451,"expected_per_scan":206,"total_expected":1451,"errors":2,"successes":3,"redirects":6,"client_errors":1442,"server_errors":0,"total_scans":7,"links_extracted":0,"status_403s":2,"wildcards_filtered":0,"responses_filtered":0,"resources_discovered":9,"directory_scan_times":[1.631990827,1.603911018,1.558497619,1.684073758,1.012269852,2.218053672,2.185941124],"total_runtime":[0.0]}

Any other useful info you can think of @mzpqnxow ?

Update on this one: I've added metrics for most things I can think of.
String output
──────────────────────────────────────────────────
 📊                Scan Summary                📊
───────────────────────────┬──────────────────────
 Average Dir Scan          │      1.6992 secs
 Longest Dir Scan          │      2.2181 secs
 Shortest Dir Scan         │      1.0123 secs
 Total Scan Time           │      3.2576 secs
 403 Forbidden             │           2
 Client Error Codes        │         1442
 Errors                    │           2
 Redirects                 │           6
 Requests Expected per Dir │          206
 Requests Sent             │         1451
 Resources Discovered      │           9
 Success Status Codes      │           3
───────────────────────────┴──────────────────────

JSON output
{"type":"statistics","timeouts":0,"requests":1451,"expected_per_scan":206,"total_expected":1451,"errors":2,"successes":3,"redirects":6,"client_errors":1442,"server_errors":0,"total_scans":7,"links_extracted":0,"status_403s":2,"wildcards_filtered":0,"responses_filtered":0,"resources_discovered":9,"directory_scan_times":[1.631990827,1.603911018,1.558497619,1.684073758,1.012269852,2.218053672,2.185941124],"total_runtime":[0.0]}

Any other useful info you can think of @mzpqnxow ?

Update: v2.0.0 will add --rate-limit that accepts a number representing the desired number of requests per second.
Not considering this closed, as automatically detecting and adjusting rate is still a goal, however, i think the correct mechanism is now in place to tweak the scan speed.

progress on this issue can be seen at #212


Check for blast DB when reviving old jobs.

old job may be from previous release and target DB may no longer exist

Handled by pr #89


appimage icon not registering with desktop

On Arch Linux, Hyper's .AppImage icon is broken when registering with the desktop. I've tried manually creating a .desktop file, but couldn't get the icon to load. I just installed appimaged which automatically looks in various paths for AppImage files and registers them. It correctly registered Hyper, but the icon is still broken.
To test if this was just Hyper or something else, I tried installing Etcher in the same way, which worked and the icon loads fine.

You may be running into a known issue with appimaged, https://github.com/probonopd/AppImageKit/issues/328. Any help appreciated.


Add support for detecting Intel CascadeLake CPUs

Should close
https://github.com/google/cpu_features/issues/260

@toor1245  rereview please

Thx @WilliamTambellini for the patch and thx @toor1245 for the review !


Revert the change to winuibuildagents

We've had a number of strange lab build failure over the last few days, I'm reverting the winuiBuildAgents change to see if the issue is there.

/azp run

/azp run

/azp run

Instead of reverting everything, just update the yml files to switch the pool name back

i.e. replace all instances of:
pool:
  name: 'winuibuildagents'

with
pool:
  name: 'windows-2019''

The rest of the changes don't need to be reverted.

/azp run

looks like the build failures are not unique to the winui pool :/

It looks like you reverted your entire change. So it still ran on winuibuildpool.

/azp run

Yuck. Sorry, I think you need to use
vmImage: 'windows-2019'
instead of
name: 'windows-2019'

/azp run

/azp run

/azp run


feat: replace to testing-wallet (old: replace to cfd-js-wasm)

This is a fix to replace cfd-js with cfd-js-wasm.
With this fix, cfd-dlc-js removes the cfd/cfd-core/libwally-core dependency.
The modifications are as follows:

Replace cfd-js with cfd-js-wasm.
Changed CfdUtils and related processes to async (because cfd-js-wasm uses async).
Changed test to Promise input. (Generate and acquire the set value immediately before the test)
Replace integration test with wallet-for-testing that supports wasm.

Since the correction in step 3 is large (but simple), please confirm if this proposal is correct. :pray:

Change policy:

Only wallet-for-testing is switched to cfd-js excluded version.

To remove the dependency between wallet-for-testing and cfd-js.


Add new methods related to SageMaker Processing job

Hello,
I noticed that coverage of methods related to SageMaker Processing job is missing.
In this pull request I tried to cover:

create_processing_job
describe_processing_job
list_processing_jobs

It's my first contribution to this repository, so please let me know how can I improve my code.
Thanks in advance!

Codecov Report

Merging #4533 (513d386) into master (e379ac1) will decrease coverage by 0.01%.
The diff coverage is 86.11%.

@@            Coverage Diff             @@
##           master    #4533      +/-   ##
==========================================
- Coverage   95.16%   95.14%   -0.02%
==========================================
  Files         514      514
  Lines       58371    58479     +108
==========================================
+ Hits        55549    55642      +93
- Misses       2822     2837      +15

Flag
Coverage Δ

servertests
48.00% <11.11%> (-0.07%)
:arrow_down:

test_responses
32.29% <16.66%> (-0.03%)
:arrow_down:

unittests
95.05% <86.11%> (-0.02%)
:arrow_down:

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

Impacted Files
Coverage Δ

moto/sagemaker/models.py
88.34% <85.29%> (-0.25%)
:arrow_down:

moto/sagemaker/responses.py
90.62% <87.50%> (-0.45%)
: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 e379ac1...513d386. Read the comment docs.


iOS network settings problem

Making a change to the network settings on the network settings page causes the old network connection to be torn down and a new one to be created. On iOS it seems this causes a race condition where the OS refuses to reopen the connection because the port is still in use.
A workaround is to just restart the app after making a network change.

Unfortunately I'm deciding to postpone work on iOS indefinitely. Apart from the cost and Apple's silly requirements for screenshots on ancient devices and promotional videos which make for a huge waste of time, development on flutter+xcode has been just too brittle for me.


Adding leaflet and data validator - Testing CI

[x] Adding leaflet for map
[x]  Adding map UI for zeppelin
[x] Adding map chart for zeppelin
[x] Adding sample tutorial for notebook on map
[x] Adding SQL for tutorial
[x] Adding data validation
[x] Test Cases

This PR is CI fixing for PR#152 for data validation and adding leaflet map for zeppelin

All data validation are added completed. (factories, services, config), Test cases also added
grunt test out put.

@Madhuka can you please rebase it on\merge in a latest master?
\cc @corneadoug for the review

@bzz : we can close this.
#262 contains the data validation features

Map Visualization for Zeppelin would be a great addition!
I've tried the code and ran into several problems.
I don't think it's good to select the lat and lon statically like so:
https://github.com/Madhuka/incubator-zeppelin/blob/milestone05-map/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js#L866
It would be nice if they were detected automatically. Maybe if there are columns lat, latitude, lon, long or longitude, pick them?
The same goes for the key:
https://github.com/Madhuka/incubator-zeppelin/blob/milestone05-map/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js#L863
If a key exists twice, it obviously breaks. Key and message are the same though, but I may be interested in the same message at different locations.
There should be a settings drop down like for the other chart types where this can be configured. With the current version, that doesn't seem to work. (Only for me?)


use real overloads for cast_tree*

cast_tree (resp. cast_tree_nonnull) comes in regular and _const-suffixed flavors.  But there's no real reason to have suffixed functions for this; regular C++ overloads will accomplish the same thing, at the small cost of making it slightly less obvious what kind of thing is being returned at the callsite.
This series also fixes, in passing, the code for cast_tree_const; it claimed to be returning const pointers, but wasn't actually doing anything of the sort.  Fortunately, making it live up to the code comments proved to be a simple code change, and not something more involved trying to change the users of cast_tree_const.
Motivation
Better use of language features, more regular code (e.g. cast_tree and cast_tree_nonnull on const TreePtrs now are consistent).
Test plan
No user-visible changes; existing tests should be sufficient.

Not sure how people feel about the small readability impact, or whether people feel like that's mitigated by IDE-esque features.
The more aggressive version of this change does away with separate functions altogether and adds as/as_nonnull member functions on TreePtr:
template <typename To> To *as();
template <typename To> const To *as() const;
template <typename To> To &as_nonnull();
template <typename To> const To &as_nonnull() const;

with ideally obvious implementations.

Gonna leave this one for @elliottt just in case there was intention behind adding these

This series also fixes, in passing, the code for cast_tree_const; it claimed to be returning const pointers, but wasn't actually doing anything of the sort.

Talking with @elliottt on slack indicates that I read too fast; the original code was returning T const *, and the new code is returning const T*...which is of course the same thing.  Doh.


[v1.28] CLI Deprecations for v1.28.0

Proposed Changes

Completely remove ipsec from flannel
Completely remove options for multiple entries in flannel-backend

Types of Changes

Verification

Testing

Linked Issues
https://github.com/k3s-io/k3s/issues/7297

User-Facing Change

Further Comments

Probably worth making sure @Oats87 and co aren't using these in v2prov, but that'd be a bit surprising


Added cpuacct cgroup module and memory usage

See above title.

Don't CR yet, decided to add more features to this PR.

@DanielShaulov ready for CR.


[BUG] This error occurs when push_to_hub is true

Prerequisites

[X] I have read the documentation.
[X] I have checked other issues for similar problems.

Backend
Local
Interface Used
CLI
CLI Command
!autotrain --config config.yml
UI Screenshots & Parameters
task: text-classification
base_model: google/muril-large-cased
project_name: hindi-hate-muril-large-cased
log: tensorboard
backend: local
data:
path: data/ # this must be the path to the directory containing the train and valid files
train_split: train # this must be either train.csv or train.json
valid_split: null # this must be either valid.csv or valid.json
column_mapping:
text_column: text # this must be the name of the column containing the text
target_column: target # this must be the name of the column containing the target
hub:
username: ${HF_USERNAME}
token: ${HF_TOKEN}
push_to_hub: True
params:
batch_size: 8
epochs: 2
gradient_accumulation: 2
lr: '1.0081057587621143e-05'
max_seq_length: 128
mixed_precision: none
optimizer: adamw_torch
scheduler: linear
Error Logs
ERROR    | 2024-07-17 17:41:04 | autotrain.trainers.common:wrapper:120 - train has failed due to an exception: Traceback (most recent call last):
File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/huggingface_hub/utils/_errors.py", line 304, in hf_raise_for_status
response.raise_for_status()
File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/api/repos/create
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/autotrain/trainers/common.py", line 117, in wrapper
return func(*args, **kwargs)
File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/autotrain/trainers/text_classification/main.py", line 182, in train
callbacks_to_use.extend([UploadLogs(config=config), LossLoggingCallback(), TrainStartCallback()])
File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/autotrain/trainers/common.py", line 192, in init
self.api.create_repo(
File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn
return fn(*args, **kwargs)
File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/huggingface_hub/hf_api.py", line 3256, in create_repo
hf_raise_for_status(r)
File "/home/zeus/miniconda3/envs/cloudspace/lib/python3.10/site-packages/huggingface_hub/utils/_errors.py", line 371, in hf_raise_for_status
raise HfHubHTTPError(str(e), response=response) from e
huggingface_hub.utils._errors.HfHubHTTPError: 401 Client Error: Unauthorized for url: https://huggingface.co/api/repos/create (Request ID: Root=1-66980230-03fcb5ba0e5db25244386b79;403134ea-5560-4513-81bb-1913ac476f99)
Invalid username or password.
ERROR    | 2024-07-17 17:41:04 | autotrain.trainers.common:wrapper:121 - 401 Client Error: Unauthorized for url: https://huggingface.co/api/repos/create (Request ID: Root=1-66980230-03fcb5ba0e5db25244386b79;403134ea-5560-4513-81bb-1913ac476f99)
Invalid username or password.
INFO     | 2024-07-17 17:41:06 | autotrain.parser:run:199 - Job ID: 6522
Additional Information
I have this on two platforms but error still persist

did you export HF_TOKEN and HF_USERNAME ?

did you export HF_TOKEN and HF_USERNAME ?

Yeah I did that

in that case the token you are using doesnt have write access to create repos under the username you chose.

in that case the token you are using doesnt have write access to create repos under the username you chose.

I created token from write permission

The error says token doesnt have access. So, id request you to kindly check the token and username. it could be possible that either has a typo or created with wrong permissions. 🙂

I created token with write permission, Like this