Optimize decomposition of cirq.QubitPermutationGate

Description of the issue
https://github.com/quantumlib/Cirq/pull/5093 introduced a default decomposition for cirq.QubitPermutationGate using odd-even sort to decompose the gate into minimum number of adjacent swap operations.
We should optimize this decomposition assuming all to all connectivity and minimizing resulting circuit depth.
Cirq version
0.14dev

the optimal number of swaps needed to sort a permuation = n - number of cycles.  The standard way to sort permutations using swaps is to break down the permutation into cycles and then sort each cycles using cycle_length - 1 swaps. for example if the permuation is (1, 3, 2) then the cycles are (1,) and (2, 3) the first cycle is already sorted but the the second cycle needs one swap operation.
another example is (7, 6, 4, 5, 3, 4, 1, 10, 8, 9) in this cases the cycles are (1, 7), (2, 6, 4, 5, 3), (8, 10, 9) the first one needs 1 swap, the second needs 4 swaps (2, 6), (2, 4), (2, 5), (2, 3) the third one needs two swaps (8, 10) (8, 9)


Add the settings page

Add the settings page. This is a rollup of all of the settings pages in Gradebook classique

This issue was moved to sakaiproject/sakai#1360


Team delete bug

When you delete more than one team without refreshing it doesn't update the state propably. The delete happen but its doesnt appear until you refresh the page.
To reproduce:

Create 3 teams
Delete 1 team
Delete 2 team

Nice catch! Should I assign you on this?

Probably now you can assign it yourself:)

yes i will assign me :) thanks


Add Github Workflow to run Search Benchmark

🗣 Description
Add Github Workflow to run Search Benchmark: manually and every Saturday at 10 AM UTC (2AM PT)
Example benchmark run: https://github.com/spiceai/spiceai/actions/runs/12285418904 (note: miniml score is low as it runs only on the subset of data - see note below)
🔨 Related Issues
Closes https://github.com/spiceai/spiceai/issues/3800
🤔 Concerns
Local embeddings are slow so currently limited to only 20000 test records. There is the following item to investigate/address this: https://github.com/spiceai/spiceai/issues/3803. We can update workflow to run tests on self-hosted MacOS runner with Metal acceleration support which is faster, but https://github.com/spiceai/spiceai/issues/3803 should be completed first.

lgtm. Where do we currently track the search bench result? Is it through a read-write spiceai dataset like connector / accelerator bench?

Yeah - we don't currently write results but working on approach to write them into spiceai.benchamarks.oss_search_benchmarks dataset. This will be added next.


Add a way to distinguish whether the user explicitly ran forge build or it is part of a process like forge test

Component
Forge
Describe the feature you would like
Referring to https://github.com/foundry-rs/foundry/pull/9325#issuecomment-2482602927
Sometimes, it's useful to be able to act based on whether the subcommand was explicitly called, or it triggered as part of another process.
For instance, when running forge test, this triggers forge build but the user didn't explicitly run it.
In the case above, this would be useful to adjust the output of the command, since a low verbosity like -v might be ok if forge build was explicitly called, but a higher level like -vvvvv would be more suitable for when the output is triggered by forge test.
Additional context
No response

I think we already have this
https://github.com/foundry-rs/foundry/blob/44c86e76d5e37505cd7349a867e64a845b5b9b2d/crates/forge/bin/main.rs#L137-L153

Hi @mgiagante thanks for opening this, I'll convert this ticket into a note in the https://github.com/foundry-rs/foundry/issues/8794 meta-ticket


Update transparent-data-encryption-byok-azure-sql.md

Update best practices to include soft delete recommendation

Thank you @becczhang


Properly Handle Workspace Id's when Deleting a Workspace

There are three main changes involved in this fix for the deletion of a workspace.

Updated the result writer to not attempt to append ACL values if the response is a simple VisalloResponse.SUCCESS. This fixed the WorkspaceDelete route. The result writer was causing an error since the workspace id available was for the workspace that was just deleted. Since it's a simple SUCCESS response, there's no need to load the ontology and attempt to append the ACL.
Updated the result writer to first check if the object being written is a workspace. In that case, the ACL should be appended using its id rather than the id of whatever workspace is selected. This fixes the WorkspaceCreate route.
Updated the result writer to prefer workspace id's from request values rather than what is stored as the user's currentWorkspaceId. This fixes a race condition where an old workspace has been deleted and a new one has not yet been persisted as the current workspace.

[x] joeferner
[ ] sfeng88
[ ] mwizeman joeybrk372 jharwig

Testing Instructions:

Create a new user and log in
Create a new Case
Delete the default Case
Ensure no errors occur in the logs
Delete the new Case, which should be the user's last Case
Ensure no errors occur in the logs
Ensure that a new default Case is created and made active

CHANGELOG
Fixed: BAD AUTHORIZATION errors when deleting workspaces

Don't think you need a changelog since this fixes a 4.0 only feature?

@jharwig Fixed. Thanks!


Documentation request

Hello Chris!
Thank you for putting effort into this library.  Do you have any plans on writing the documentation for it or at least updating the README.md with a reference to the existing documentation that describes the consumption of the library and high level ideas about the underlying machinery?

The short answer is no. The source code provides an example of how to use
this library. The purpose of this library is to fill a gap until Microsoft
officially supports WSFed, which will be in the next couple of months.
After that, I would hope that all users of this library migrate to that. I
actually don't use this library any more as we were able to moved to Open
ID Connect.
On Mon, Sep 11, 2017 at 1:04 PM ANOTHER GUY<EMAIL_ADDRESS>wrote:

Hello Chris!
Thank you for putting effort into this library. Do you have any plans on
writing the documentation for it or at least updating the README.md with a
reference to the existing documentation that describes the consumption of
the library and high level ideas about the underlying machinery?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/chrisdrobison/aspnetcore-wsfed/issues/21, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABu24bivzzWXKZLkTwp_bvqkyX8axl89ks5shYRagaJpZM4PToIn
.

Fair enough.


Make HyperLogLog indexBitLength more efficient

Previously, it calculated the Log2 of an integer n known to be a power of
two by (int) Log(n)/Log(2), which is two slow log ops, a float
division, and a cast.  This replaces it with 31 - Integer.numberOfLeaderZeros(n), which is two int machine instructions.

The test error "TestMBeanServerResource.testIsInstanceOf:127 » Socket Connection reset" seems both unrelated, and transitory.

cc @martint I think you did the initial implementation, so I'd love to hear your thoughts!

Merged, thanks!


A footer with the version of the project

https://github.com/ponsfrilus/rapport-de-stage/issues/14

Footer is done but there is no version in it


Viva Insights = MyA (full)?

If a user is licensed for Viva Insights does that then mean that they get access to MyA (Full)? if so this page should be updated to state that.

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

ID: 8f1b78b4-21ad-2234-0822-149ffe88814b
Version Independent ID: 5dad7085-6921-5392-f0a7-f5b6e9b5cc0b
Content: MyAnalytics plans and environments - Workplace Intelligence
Content Source: WorkplaceAnalytics/MyAnalytics/Overview/plans-environments.md
Product: mya
GitHub Login: @paul9955
Microsoft Alias: v-mideh

@JeremyTyers - Yes, I'm working with the team now on doc updates. Admins will see MyAnalytics (Full) change to Viva Insights (formerly MyAnalytics) in the Microsoft 365 admin center around Sept. 7, 2021 and I'll publish updated docs for that UX change. Thanks for asking about this!


the C# versions in title and nav bar don`t match

the C# versions in title and nav bar don`t match.

[Enter feedback here]

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

ID: 85c9d0ef-c6b0-87f2-746d-6940b1377a54
Version Independent ID: 575e8c7c-a170-a9d0-ee59-c42451cd1ac9
Content: Table of contents - C# language specification
Content Source: standard/README.md
Product: dotnet-csharp
Technology: csharp-spec
GitHub Login: @dotnet-bot
Microsoft Alias: wiwagn

Good catch @ali50m
I've opened a PR to address this issue.


Add a contravariant functor instance to ObjectEncoder

Current coverage is 82.13% (diff: 100%)

Merging #472 into master will increase coverage by 0.12%

@@             master       #472   diff @@
==========================================
  Files            80         80
  Lines          2157       2161     +4
  Methods        2053       2054     +1
  Messages          0          0
  Branches        104        107     +3
==========================================
+ Hits           1769       1775     +6
+ Misses          388        386     -2
  Partials          0          0

Powered by Codecov. Last update 0c1ee23...3fc6a0d

Thanks @backuitist!

Thanks for the quick review @travisbrown

Thanks, @backuitist! The test failure looks like an unrelated fluke (the string ꩘ apparently parses as a valid Java integer)—I'll fix it in a separate PR, restart the test for now, and merge when green.


[ENG-726] Finalize submission modal for choosing embargo and DOI

Purpose
Add a modal for finalizing registration submission. User can choose whether to embargo the registration and whether to create DOI.
Summary of Changes
Side Effects

QA Notes

Pull Request Test Coverage Report for Build 3399

19 of 35 (54.29%)  changed or added relevant lines in 3 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.06%) to 75.469%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

lib/osf-components/addon/components/registries/finalize-registration-modal/manager/component.ts
10
16
62.5%

lib/osf-components/addon/components/registries/finalize-registration-modal/component.ts
7
17
41.18%

Files with Coverage Reduction
New Missed Lines
%

app/application/route.ts
1
67.8%

Totals

Change from base Build 3396:
-0.06%

Covered Lines:
7817

Relevant Lines:
9098

💛  - Coveralls


Evaluation code result is accuracy=0.001: how to use this model?

I am trying to use this repo and tried Evaluation code(https://github.com/shkarupa-alex/tfswin#evaluation), written on readme, for 1st step. However, the result returns accuracy=0.001 as follows.

1250/1250 [==============================] - 172s 127ms/step - loss: nan - accuracy: 0.0010 - sparse_top_k_categorical_accuracy: 0.0000e+00
[nan, 0.0010000000474974513, 0.0]

I read model.py and find "load wights" so I thought that Evaluation code returns around 70% acc., like table attached on Evaluation section. And I found imagenet_v2 download is success, I can see some jpeg img on imagenet_V2 dir, created by Evaluation code.
imagenet2 = tfds.load('imagenet_v2', split='test', shuffle_files=True)
My question is, how to get the result like the table on evaluation section?  (and what is the point I was wrong with getting acc=0.001? )
Here is a Dockerfile I created and used for this repo (sry idk how to attach Dockerfile so it change to txt file)
Dockerfile_tfswin.txt
docker run \   --gpus all \   -it -e \   TF_FORCE_GPU_ALLOW_GROWTH=true \   -v $MOUNT_DATA:/root/data \   -v $MOUNT_DIR:/root/scripts \   -v /tmp/.X11-unix:/tmp/.X11-unix \   -p 6060:6060 \   --env="DISPLAY"  \   --name tfswin \   --rm tfswin \   bash
and Evaluation code I used (copy&paste from evaluation section on readme, and just change model name) (for same reason with Dockerfile, I change py to txt)
test_tfswin.txt
Thank you!

Thank you for quick reply! I will try it in few days and report! sry I'm going to home now and next work day will be... few days later.

sry for late response. it seems work thx!


Does not download files

Hello,
today I noticed this error message:
An attempt was made to access a socket in a way forbidden by its access permissions.
v0.1.6, wedl-windows-amd64.exe

That's a weird error, maybe windows related?
Anyway, noticed that csrf token was preventing download for me as well, should be fixed with 0.1.8

Well, v0.1.8 is working fine :) Thank you


images are ignored if they are  positioned  higher than 5440 pixels on the vertical axis

Hi There
I've noticed a strange bug using html2canvas:
If the html document is quite long, and i have  tags at the bottom of the page: say 5440 pixels on the vertical axis and higher: then the screenshot ignores them. The screenshot does include other markup in this area of the page, however image ( tags ) are ignored.
Specifications:

html2canvas version tested with:html2canvas 1.0.0-rc.5
Browser & version:Chrome 79.0.3945.79
Operating system: macOS Mojave 10.14.6

solve my problem thank you very much


Fix tr use for combinedfields in pkg xml

When specifying combinedfields begin and end in a package XML file, IE reports some unexpected start tag messages. This is because some "td" tags are not enclosed in "tr" tags in these cases, both at the begin and end of the combinedfields table that is generated. Firefox seems to be forgiving of this.
This has been investigated because BBscan177 who is developing pfBlockerNG is trying to use the combinedfields feature and it was not working so well. I will ask him to try these changes for RELENG_2_2 and confirm that they work.
When combinedfields is not set, then the code path with this change results in the same HTML being output as previously, so it should not change the HTML generated for packages that do not use combinedfields - i.e. I claim not to have broken anything else :)

Note: see https://github.com/pfsense/pfsense/pull/1668 for a version of this that I have used on a 2.2.2 system with success - if there are any tricky bits in cherry-picking this back to RELENG_2_2 then use that pull request as a guide to what works.


cancel_algo_order doesn't work

cancel_algo_order and cancel_advance_algo_order don't work because the body of the request has to be an array, as you can read here https://www.okx.com/docs-v5/en/#rest-api-trade-cancel-algo-order.
Trying to exectute functions with correct parameters therefore results in JSON Syntax error.
Current interfaces only allow body: Dict[str, Any]. Should be somethink like body: Dict[str, Any] | List[Dict[str, Any]] as Union.
Exemple of working params from official Python SDK
result = tradeAPI.cancel_algo_order([{'algoId': '297394002194735104', 'instId': 'BTC-USDT-210409'}])

Thanks for raising this. As the documentation specifies parameters in a table with nothing specifically denoting that the body should be an array of objects rather than a single object, this hasn't been picked up, but you're absolutely right that this is non-functional and should be handled. You've mentioned cancel_algo_order and cancel_advance_algo_order here, but this will apply to many other methods that follow this pattern so should be driven from the example rather than just the parameter spec table itself. Will get a fix out for this as soon as reasonably possible. Thanks for your feedback.

this has been fixed now to take body as an array rather than dict. thanks for your feedback


add linter to ensure we always await async function calls/promises

More often than not, we want to await and not doing so leads to scary bugs. For cases where we explicitly don't want to await, we can add a lint ignore line comment.
https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/docs/rules/no-floating-promises.md

tried to enable this but ran into some issues
new .eslintrc
{
  "root": true,
  "parser": "@typescript-eslint/parser",
  "plugins": ["@typescript-eslint"],
  "extends": ["eslint:recommended"],
  "rules": {
    "max-len": ["error", { "code": 180, "comments": 180 }],
  },
  "overrides": [
    {
      "files": ["*.ts", "*.tsx"],
      "extends": ["plugin:@typescript-eslint/eslint-recommended", "plugin:@typescript-eslint/recommended"],
      "parserOptions": {
        "project": ["./tsconfig.json"],
      },
      "rules": {
        "@typescript-eslint/ban-types": [
          "error",
          {
            "extendDefaults": true,
            "types": {
              // don't throw an error for the empty object type ({})
              "{}": false,
            },
          },
        ],
        "@typescript-eslint/no-floating-promises": "error",
      },
    },
  ],
}

running pnpm lint in CLI
/Users/kevin/Projects/latticexyz/mud/packages/cli/dist/index.d.ts
  0:0  error  Parsing error: ESLint was configured to run on `<tsconfigRootDir>/dist/index.d.ts` using `parserOptions.project`: /users/kevin/projects/latticexyz/mud/tsconfig.json
However, that TSConfig does not include this file. Either:
- Change ESLint's list of included files to not include this file
- Change that TSConfig to include this file
- Create a new TSConfig that includes this file and include it in your parserOptions.project
See the typescript-eslint docs for more info: https://typescript-eslint.io/linting/troubleshooting#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file

but it doesn't seem to be catching the issue in #3119


Add alert component and related functions to add them

Related to Issue #
What changes has been added?
Frontend
Add alert component and functions to add them. Examples will be added later.


Remove iDope.top

I tried visiting idope.top, its redirecting to chaturbate profiles.

The current link on master is idope.se which seems to work fine at the moment.


IClaimsTransformation - TransformAsync Never Called in Net Core 3.1

I have many apps running under Net Core 2.2 that use a ClaimsTransformation to add application specific user claims to a use.
I am creating a new up under Net Core 3.1 and attempting to use the same strategy, but it fails, TransformAsync is never called.
This has been brought up before, but there was no real solution, only that playing with the order of the services sometimes worked and the issue was closed.
Startup Class
    public class Startup
    {
        public Startup(IConfiguration configuration, IWebHostEnvironment Env)
        {
            Configuration = configuration;

            var config = new ConfigurationBuilder()
                .SetBasePath(Env.ContentRootPath)
                .AddJsonFile("appsettings.json", optional: true, reloadOnChange: true)
                .AddEntityFrameworkConfig(Configuration)
                .Build ();

            Configuration = config;
        }

        public IConfiguration Configuration { get; }

        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddControllersWithViews();

            services.AddAuthentication(IISDefaults.AuthenticationScheme);

            services.AddScoped<IClaimsTransformation, ClaimsTransformer>();

            services.AddDbContext<DataDbContext>(options =>
                options.UseSqlServer(Configuration.GetConnectionString("DataConnection")));

            services.AddDbContext<IDDbContext>(options =>
                options.UseSqlServer(Configuration.GetConnectionString("IDConnection")));

            string ApplicationName = Configuration.GetSection("ApplicationInformation")["AppDotName"];

            services.AddAuthorization(options =>
                {
                    options.AddPolicy("IT", policy => policy.RequireClaim(ApplicationName, "IT"));
                    options.AddPolicy("AppUser", policy => policy.RequireClaim(ApplicationName, "Application User - Entry Level"));
                });

            services.Configure<IISOptions>(Options =>
                Options.AutomaticAuthentication = true);

            services.AddIdentity<ApplicationUser, IdentityRole>()
                .AddEntityFrameworkStores<IDDbContext>();

            services.AddSingleton(Configuration);

            services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();

            services.AddAutoMapper(typeof(Startup));
        }

        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
            else
            {
                app.UseExceptionHandler("/Home/Error");
                // The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
                app.UseHsts();
            }
            app.UseHttpsRedirection();
            app.UseStaticFiles();

            app.UseAuthentication();
            app.UseRouting();

            app.UseAuthorization();

            app.UseEndpoints(endpoints =>
            {
                endpoints.MapControllerRoute(
                    name: "default",
                    pattern: "{controller=Home}/{action=Index}/{id?}");
            });
        }
    }

Claims Transformation Class
    public class ClaimsTransformer : IClaimsTransformation
    {
        private readonly UserManager<ApplicationUser> _userManager;
        private readonly IConfiguration _configuration;

        public ClaimsTransformer(UserManager<ApplicationUser> UserManger, IConfiguration Configuration)
        {
            _userManager = UserManger;
            _configuration = Configuration;
        }
        public async Task<ClaimsPrincipal> TransformAsync(ClaimsPrincipal principal)
        {
            string AppDotName = _configuration.GetSection("ApplicationInformation")["AppDotName"];
            ApplicationUser User = new ApplicationUser();

            string UMName = principal.Identity.Name.Split((char)92).Last() +<EMAIL_ADDRESS>            try
            {
                User = await _userManager.FindByNameAsync(UMName);
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }

            IList<Claim> UserClaims = await _userManager.GetClaimsAsync(User);

            List<Claim> ClaimsToAdd = UserClaims.Where(c => c.Type == AppDotName).ToList();

            foreach(Claim NC in ClaimsToAdd)
            {
                if(!principal.HasClaim(NC.Type, NC.Value))
                {
                    (principal.Identity as ClaimsIdentity).AddClaim(NC);
                }
            }
            return principal;
        }
    }

The Claims Transformer's constructor is called as expected, but TransformAsync is not.
I have searched the web, but most references are back to Net Core 2.2 or earlier and there, it works.

Chris,
Changing the order had no effect. The TransformAsync still is never called.
Regarding claims per request v sign-in, I am open to any and all suggestions that will make this work.  So far hours playing with order of the app. entries and service entries and reading had lead nowhere.

To try to get more information, I injected IAuthorizationServer and called .AuthorizeAsync(...) and TransformAsync in the IClaimsTransformation is never called.
Injecting IClaimsTransformation and manually calling TransformAsync(...) does indeed call TransformAsnc which works as it should.
It seems like the Default Authorization Service isn't doing what it is supposed to and calling TransformAsync.

Here's where TransformAsync is expected to be called:
https://github.com/aspnet/AspNetCore/blob/c7937640a4079465d36441724933eae5a9ca0085/src/Http/Authentication.Core/src/AuthenticationService.cs#L80-L95
Is AuthenticateAsync returning a result with Succeeded set?
The only other thing that would prevent this is the new transform cache which is designed to prevent transformation from running multiple times.

To try to get more information, I injected IAuthorizationServer and called .AuthorizeAsync(...) and TransformAsync in the IClaimsTransformation is never called.

Where did you try this? In a controller? The transform cache would prevent TransformAsync from running multiple times. A better test would be to call AuthenticateAsync in a middleware early in your app pipeline.

I am not running AuthenticateAync manually anywhere, however looking at httpcontext.user.identity, IsAuthenticated is true so it would seem the AuthenticateAsync is being run, and the user is authenticated.  From the code above, yes it would seem that it is the Transform Cache causing the issue, but I am not sure how to go about proving that.
I set up the TransformAsync and AuthorizeAsync in a controller for test purposes only.  I wanted them somewhere where I could verify that the user was authenticated, that the transform actually did what it was supposed to and that AuthorizeAsync behaved as expected.
Do you have something specific that you want me to try as middleware and, if so, where it should be?
Any ideas how to check the transform cache?
Does this matter if the app is using Windows authentication?

It sounds like we're getting a little stuck in debugging :). @GRS-Leedo can you provide a runnable sample app that reproduces the problem you're seeing?
@Tratcher 's earlier suggestion was to have a custom middleware in the pipeline before UseAuthentication and call IAuthorizationService.AuthorizeAsync there.

Does this matter if the app is using Windows authentication?

Yes, this can matter, but we need clarification on what server you are using (IIS/HttpSysServer/Kestrel/etc.).
A repro app is really the best way to get clarity here so we can see the whole context rather than having to toss debugging steps back and forth ;).

While I understand that a repro app is helpful, I have production deadlines to meet and writing a repro app from scratch will take time.  I have already lost many hours trying to get this to work and have had to revert from Net Core 3.1 back to 2.26 in order to move forward on developing my current app.  The truly frustrating part is that claims transformation has run fine through many versions of Net Core 2, but 3.1 breaks it.  I purposefully skipped 3.0 figuring that the kinks would get worked out for 3.1.
When I get some time, I will work on a repro app.  I have not written much middleware so that isn't something that I can just whip up.
I am using VS2019 Pro and the test app runs under IIS Express during debug with Windows Authentication.

ClaimsTest.zip
Ok, here is a bare bones project that I threw together.  It exhibits the same issue.
I ran the app first with no policy requirement on the Home Controller, just Authorize.  The app behaved as expected except TransformAsync is never called.
I then added the policy requirement to the Home Controller and the app responds with Access Denied and again, TransformAsyc is never called.
Does the _transformCache persist in any way?  Is it stored as a cookie in the browser?

Did the file get attached?  If not, here it is again.
ClaimsTest.zip

Thanks, we'll give it a try.
The _transformCache is a per-request cache designed to prevent redundant transformations.

Ok, I see the trouble. Your app has both Identity and Windows Auth enabled, and Identity is winning.
            services.AddAuthentication(IISDefaults.AuthenticationScheme);

vs.
            services.AddIdentity<ApplicationUser, IdentityRole>()
                .AddEntityFrameworkStores<IDDbContext>();

AddAuthentication sets the DefaultScheme (Windows), but AddIdentity sets the DefaultAuthenticateScheme (Identity.Application) which takes priority for the Auth middleware. You're not logged in using Identity cookies so claims transformation doesn't run. Commenting out AddIdentity gets you back to Windows auth and allows transformations to run. Setting DefaultAuthenticateScheme to IISDefaults.AuthenticationScheme after AddIdentity also fixes it.
            services.AddAuthentication(options =>
            {
                options.DefaultAuthenticateScheme = IISDefaults.AuthenticationScheme;
            });

Setting IISDefaults.AuthenticationScheme on your authorization policy would also do it.
options.AddPolicy("IT", policy => policy.RequireClaim("test", "it").AddAuthenticationSchemes(IISDefaults.AuthenticationScheme));

@GRS-Leedo Let us know if that resolves your issue! If not, we can investigate further.

@Tratcher Thanks so much!  I was updating from 2.2 to 3.0 this morning and experienced the same issue described above.  I followed your instructions and that worked perfectly.

My actual claims transformer needs identity so commenting out Add Identity didn't work.  Moving Add Authentication to after Add Identity did work.
`            services.AddIdentity<ApplicationUser, IdentityRole>()
.AddEntityFrameworkStores();
        services.AddAuthentication(options =>
            {
                options.DefaultAuthenticateScheme = IISDefaults.AuthenticationScheme;
            });`

With this change, my app runs.  Thank you very much.  I am going to look at refactoring my Claims Transformation to not rely on identity, so that I can remove the Add Identity entirely.

Note the behavior that changed here between 2.2 and 3.0 is probably related to https://github.com/aspnet/AspNetCore/pull/11390 rather than anything to do with the the new transform cache. Out-of-proc used to call AuthenticateAsync(Windows) at the start of every request which would result in claims transformation running. That no longer happens in 3.0. The other change was that in-proc is now the default mode and it never did call AuthenticateAsync(Windows) at the start of the pipeline like out-of-proc used to.


Index 0 out of bounds for length 0 -- Check script 'modules/local/jupyternotebook/./parametrize.nf' at line: 27

Running: NXF_VER=23.04.0 nextflow run ./main.nf seems to be the last nextflow version that runs without the above error.

Yeah, this was also brought up in the nmp-liver project: https://github.com/icbi-lab/nmp-liver/commit/0036ef0a7a1bb10fa22734610ff96f44f226a0df
The parametrize script needs some updating, also in nf-core modules. I didn't have time to look into it yet.


Missing t in Youtube link

Old (Working Version https://github.com/Malin001/Legilimens-Hogwarts-Legacy-Collectible-Finder ) links are shown as
Butterfly Chest #2 - https://youtu.be/ImMInXddlXE&t=26
New (Non Working https://github.com/Malin001/Legilimens-Hogwarts-Legacy-cpp) Links are shown as
Butterfly Chest #2 - https://youtu.be/ImMInXddlXE&=26
missing the t after the & results in all videos starting at the beginning of the video

Fixed in v0.1.1


Teething problems with new Practice dashboards

1. Measures are selected as having the most potential for improvement are inconsistent with ranked list:

this may be because the measure is selected based on only one month of data (unlike the ranked list which takes into account 6 months of data). E.g. this practice gets opioids highlighted (97th percentile last month) but at the top of the ranked list is glaucoma (96th percentile last month) https://openprescribing.net/practice/E81030/measures/
But sometimes they are measures with no data, e.g. https://openprescribing.net/practice/F85024/

This also applies to the CCG dashboards.

2. Links for the worst measure do not work correctly
When the measure title is clicked on, it redirects to ccg/[practice_code]/[measure_name] which comes up with an error.
3. There seems to be a problem when the worst measure is the low-priority omnibus measure:

3. For some practices no PPU savings appear:
https://openprescribing.net/practice/F85024/

This might not be an error but because there are no savings: https://openprescribing.net/practice/F85024/price_per_unit/
However, this makes it look broken, so it would be helpful to have an appropriate message on the practice home page. E.g. "smiley face - we found no savings above the £1000 threshold for the latest month!"

Closing in favour of new subissues referenced above


LedgerUpdateStream not shutting down correctly

This happens for example when using CTRL-C to exit the application.

This is probably due to: https://github.com/iotaledger/hornet/issues/1557

Fixed in part by #279


LoadProhibited in FreeRTOS Event List processing (IDFGH-2300)

In a complex UART/MQTT/WebSockets/SSL scenario, under heavy load (UART data in/out processing every 10ms, several os Tasks, bombarded with MQTT messages and sends few MQTT messages per second, using both CPU cores)  i randomly run into this repeatable error, which seems to occur as invalid pointer is dereferenced in FreeRTOS queue processing code. The 0x1d could hardly be a valid pointer given ESP32 memory map.
Down to sys_sem_signal it's only the semafor queue object being referenced, and error occurs later down the stream as the semafor owning task is extracted and system-wide event list adjusted, I would suspect the error is occuring somewhere in FreeRTOS internals.
No idea how to fix this so far, no workarounds.
Guru Meditation Error of type LoadProhibited occurred on core  1. Exception was unhandled.
Register dump:
PC      : 0x4008683f
PS      : 0x00060133
A0      : 0x80085698
A1      : 0x3ffbea50
A2      : 0x0000001d
A3      : 0x00060f23
A4      : 0x00060f23
A5      : 0x0000003c
A6      : 0x00000000
A7      : 0x00000000
A8      : 0x800842d8
A9      : 0x3ffbea40
A10     : 0x00000003
A11     : 0x00060123
A12     : 0x00060123
A13     : 0x00000006
A14     : 0x3ffbff3e
A15     : 0x00000014
SAR     : 0x00000019
EXCCAUSE: 0x0000001c
EXCVADDR: 0x0000002d
LBEG    : 0x4000c2e0
LEND    : 0x4000c2f6
LCOUNT  : 0xffffffff

Backtrace: 0x4008683f:0x3ffbea50 0x40085698:0x3ffbea70 0x40083eb4:0x3ffbea90 0x400eff21:0x3ffbeab0 0x40135c93:0x3ffbead0 0x4010

Remote debugging using /dev/ttyUSB1
uxListRemove (pxItemToRemove=0x1d) at /home/nathan/xnode/esp-idf/components/freertos/./list.c:212
212	List_t * const pxList = ( List_t * ) pxItemToRemove->pvContainer;
(gdb) bt
#0  uxListRemove (pxItemToRemove=0x1d) at /home/nathan/xnode/esp-idf/components/freertos/./list.c:212
#1  0x40085698 in xTaskRemoveFromEventList (pxEventList=<optimized out>)
    at /home/nathan/xnode/esp-idf/components/freertos/./tasks.c:3028
#2  0x40083eb4 in xQueueGiveFromISR (xQueue=0x3ffce388,
    pxHigherPriorityTaskWoken=0x3ffb6524 <g_lwip_critical_section_needs_taskswitch>)
    at /home/nathan/xnode/esp-idf/components/freertos/./queue.c:1369
#3  0x400eff21 in sys_sem_signal (sem=0x3ffce37c) at /home/nathan/xnode/esp-idf/components/lwip/port/freertos/sys_arch.c:136
#4  0x40135c93 in event_callback (conn=<optimized out>, evt=<optimized out>, len=<optimized out>)
    at /home/nathan/xnode/esp-idf/components/lwip/api/sockets.c:1920
#5  0x40137e80 in err_tcp (arg=0x3ffd7530, err=-12 '\364') at /home/nathan/xnode/esp-idf/components/lwip/api/api_msg.c:397
#6  0x400eb239 in tcp_input (p=<optimized out>, inp=<optimized out>)
    at /home/nathan/xnode/esp-idf/components/lwip/core/tcp_in.c:366
#7  0x400e55ed in ip4_input (p=0x3ffd7ca4, inp=0x3ffbcd2c) at /home/nathan/xnode/esp-idf/components/lwip/core/ipv4/ip4.c:678
#8  0x400e52d4 in ethernet_input (p=0x3ffd7ca4, netif=0x3ffbcd2c)
    at /home/nathan/xnode/esp-idf/components/lwip/netif/ethernet.c:176
#9  0x400f02dc in tcpip_thread (arg=<optimized out>) at /home/nathan/xnode/esp-idf/components/lwip/api/tcpip.c:142
(gdb)

Look at this: https://github.com/espressif/esp-idf/issues/233

Thanks. I had a look and #233 does not tell me much. I compile in Debug, I have similar issues (different backtrace, but landing in same line in list.c) since some time, not only on recent IDF.

Sometimes it's the simple things that matter. Increase of task stack size from 10k to 16k did the trick.
See this for further reference.
https://github.com/espressif/esp-idf/blob/master/components/freertos/list.c#L166

Hi @nathanjel ,
Thanks for reporting this. It looks like the same as an issue that we're also tracking internally, we've seen the same crash but only under high network load conditions.
We're continuing to investigate and will update you as soon as we have some more information.
Angus

Exactly - this happens when the device is "bombarded" with messages during load testing. (a few hundred bytes MQTT message every 1ms). The software itself is generallly a port from our original implementation on TI's CC3200, where load testing was never an issue. Results improved after we implemented rate limiting on ESP32 port (rejecting messages when messages/sec limit exceeded) but never reached the stability of our original implementation - see all my other bug reports.
Did You consider upgrading FreeRTOS from 8.2 to a newer version?

I tried these suggestions - no luck.
https://github.com/espressif/esp-idf/blob/master/components/freertos/list.c#L166

Seem to happen easier if code is running on core 1 and it happens both on incoming and outgoing packets. Queues are used throughout the system so I doubt that it has anything to do with the problem.
I can also tell you that using raw api and queues does not manifest the problem, so issue is probably somewhere in netconn and it's even logic.

It seems to remain a theme in my app now, if under load.
I get an issue in a similar place, few lines later in xTaskRemoveFromEventList, but this time out of normal Queue code, while using a compiled state machine
Remote debugging using /dev/ttyUSB1
uxListRemove (pxItemToRemove=0x3ffcf778) at /home/nathan/xnode/esp-idf/components/freertos/./list.c:218
218		if( pxList->pxIndex == pxItemToRemove )
(gdb) bt
#0  uxListRemove (pxItemToRemove=0x3ffcf778) at /home/nathan/xnode/esp-idf/components/freertos/./list.c:218
#1  0x40085266 in xTaskRemoveFromEventList (pxEventList=<optimized out>)
    at /home/nathan/xnode/esp-idf/components/freertos/./tasks.c:3017
#2  0x40083a9a in xQueueGenericSend (xQueue=0x3ffcf8c4, pvItemToQueue=<optimized out>, xTicksToWait=0, xCopyPosition=0)
    at /home/nathan/xnode/esp-idf/components/freertos/./queue.c:769
#3  0x400f74bd in InternalSend (queue_addr=0x3ffcf8c4, message=STATUS_MESSAGE_CONFIGURATION_SAVE_REQUEST, supplement=0x0)
    at /home/nathan/xnode/SNESP32/main/./status.c:346
#4  0x401072d4 in NetFSM_Msg (this=0x3ffcf680, queue_addr=0x3ffcf8c4, message=STATUS_MESSAGE_CONFIGURATION_SAVE_REQUEST)
    at /home/nathan/xnode/SNESP32/components/xnode/./netfsm.c:72
#5  0x40106f6c in NetMap_RemoteBrokerLive_EVENT_TIMER_TICK (fsm=0x3ffcf69c)
    at /home/nathan/xnode/SNESP32/components/xnode/./stripnode_net_sm.c:948
#6  0x40128ae0 in stripnode_netContext_EVENT_TIMER_TICK (fsm=0x3ffcf69c)
    at /home/nathan/xnode/SNESP32/components/xnode/./stripnode_net_sm.c:1708
#7  0x400f7969 in StatusTask (pvParameters=<optimized out>) at /home/nathan/xnode/SNESP32/main/./status.c:506
(gdb)

Apparently there seems to be a very simple resolution to these problems. I have no apparent tool to measure the exact values (no JTAG in my setup), but experimented in 512B increments.
Consider changing the default value in ESP-IDF, eventually with some more research.
diff --git a/sdkconfig b/sdkconfig
index 48e66b5..fa1dbb7 100644
--- a/sdkconfig
+++ b/sdkconfig
@@ -177,7 +183,7 @@ CONFIG_FREERTOS_ASSERT_FAIL_ABORT=y
 # CONFIG_FREERTOS_ASSERT_DISABLE is not set
 CONFIG_FREERTOS_BREAK_ON_SCHEDULER_START_JTAG=y
 # CONFIG_ENABLE_MEMORY_DEBUG is not set
-CONFIG_FREERTOS_ISR_STACKSIZE=1536
+CONFIG_FREERTOS_ISR_STACKSIZE=3072
 # CONFIG_FREERTOS_LEGACY_HOOKS is not set
 # CONFIG_FREERTOS_DEBUG_INTERNALS is not set

Two interesting observations

There seems to be corelation between SPI Flash settings and the stability. This could mean a possible hardware issue on my end. Coming down from 80MHz QIO to 26MHz QIO did the trick and reliefed me of most of the occurences of the issue and improved the observed stability of network connection under load. DIO at 80 and 40Mhz did not work well. We have a custom PCB, so multiple things could go wrong.

There seems to be some locking issue - using GDB stub one can notice that there must have been a change in the FreeRTOS Tasks list while the block of code was ran.

The code says the list was not empty (queue.c from FreeRTOS)
				else
				{
					if( listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE )
					{
						if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
						{
							/* The task waiting has a higher priority so

And GDB shows that at the time of dump, the list was empty
#0  uxListRemove (pxItemToRemove=0x1d) at /home/nathan/xnode/esp-idf/components/freertos/./list.c:214
#1  0x40084cb8 in xTaskRemoveFromEventList (pxEventList=<optimized out>)
    at /home/nathan/xnode/esp-idf/components/freertos/./tasks.c:3017
#2  0x400838f4 in xQueueGiveFromISR (xQueue=0x3ffd29c0,
    pxHigherPriorityTaskWoken=0x3ffb77c4 <g_lwip_critical_section_needs_taskswitch>)
    at /home/nathan/xnode/esp-idf/components/freertos/./queue.c:1369
#3  0x400edf35 in sys_sem_signal (sem=0x3ffd29b4) at /home/nathan/xnode/esp-idf/components/lwip/port/freertos/sys_arch.c:136
#4  0x40109230 in event_callback (conn=<optimized out>, evt=<optimized out>, len=<optimized out>)
    at /home/nathan/xnode/esp-idf/components/lwip/api/sockets.c:1920
#5  0x4010b2ba in recv_tcp (arg=0x3ffe8a28, pcb=0x3ffe8c38, p=<optimized out>, err=0 '\000')
    at /home/nathan/xnode/esp-idf/components/lwip/api/api_msg.c:281
#6  0x400e9f34 in tcp_input (p=<optimized out>, inp=<optimized out>)
    at /home/nathan/xnode/esp-idf/components/lwip/core/tcp_in.c:429
#7  0x400e5679 in ip4_input (p=0x3ffe9970, inp=0x3ffbdb50) at /home/nathan/xnode/esp-idf/components/lwip/core/ipv4/ip4.c:678
#8  0x400e53b9 in ethernet_input (p=0x3ffe9970, netif=0x3ffbdb50)
    at /home/nathan/xnode/esp-idf/components/lwip/netif/ethernet.c:176
#9  0x400ee2b8 in tcpip_thread (arg=<optimized out>) at /home/nathan/xnode/esp-idf/components/lwip/api/tcpip.c:142
(gdb) up
#1  0x40084cb8 in xTaskRemoveFromEventList (pxEventList=<optimized out>)
    at /home/nathan/xnode/esp-idf/components/freertos/./tasks.c:3017
3017		( void ) uxListRemove( &( pxUnblockedTCB->xEventListItem ) );
(gdb) print pxUnblockedTCB
$1 = (TCB_t *) 0x1
(gdb) print px
pxCurrentTCB               pxEventList                pxOverflowTimerList        pxStack
pxCurrentTimerList         pxIndex                    pxPortInitialiseStack      pxTopOfStack
pxDelayedTaskList          pxNext                     pxPrevious                 pxUnblockedTCB
pxEnd                      pxOverflowDelayedTaskList  pxReadyTasksLists
(gdb) print px
pxCurrentTCB               pxEventList                pxOverflowTimerList        pxStack
pxCurrentTimerList         pxIndex                    pxPortInitialiseStack      pxTopOfStack
pxDelayedTaskList          pxNext                     pxPrevious                 pxUnblockedTCB
pxEnd                      pxOverflowDelayedTaskList  pxReadyTasksLists
(gdb) print pxCurrentT
pxCurrentTCB        pxCurrentTimerList
(gdb) print pxCurrentTCB
$2 = {0x3ffbe0b8, 0x3ffbfa60}
(gdb) print pxE
pxEnd        pxEventList
(gdb) print pxEventList
$3 = <optimized out>
(gdb) up
#2  0x400838f4 in xQueueGiveFromISR (xQueue=0x3ffd29c0,
    pxHigherPriorityTaskWoken=0x3ffb77c4 <g_lwip_critical_section_needs_taskswitch>)
    at /home/nathan/xnode/esp-idf/components/freertos/./queue.c:1369
1369							if( xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) != pdFALSE )
(gdb) print px
pxCurrentTCB               pxHigherPriorityTaskWoken  pxOverflowTimerList        pxQueueSetContainer
pxCurrentTimerList         pxIndex                    pxPortInitialiseStack      pxReadyTasksLists
pxDelayedTaskList          pxNext                     pxPrevious
pxEnd                      pxOverflowDelayedTaskList  pxQueue
(gdb) print pxQueue
$4 = (Queue_t * const) 0x3ffd29c0
(gdb) print pxQueue->xTasksWaitingToReceive
$5 = {uxNumberOfItems = 0, pxIndex = 0x3ffd29ec, xListEnd = {xItemValue =<PHONE_NUMBER>, pxNext = 0x3ffd29ec,
    pxPrevious = 0x3ffd29ec}}
(gdb)

This makes absolute sense, if one realizes that locking on the &xTaskQueueMutex happens only in the call to xTaskRemoveFromEventList, while it should happen before we check if the list is empty at all. I guess the idea behind could be that TaskQueueMutex should be locked anyhow elsewhere, but it does not look like this. Trying to code something around this now.

This one is definitely a race condition.
In FreeRTOS/tasks.c tick handler xTaskIncrementTick(), a task's xEventListItem can be removed from the containing list, and the mutex is only on xTaskQueueMutex
Now, if the xEventListItem is on a specific queue's event list, e.g. pxQueue->xTasksWaitingToReceive, then  what can happen is that in the queue manipulating functions, e.g. 'xQueueGenericSend' we have a check if the queue's waiting to receive list is empty (e.g. listLIST_IS_EMPTY( &( pxQueue->xTasksWaitingToReceive ) ) == pdFALSE ) protected only by queue mutex, but not by xTaskQueueMutex, so that between that check and the subsequent call xTaskRemoveFromEventList( &( pxQueue->xTasksWaitingToReceive ) ) == pdTRUE the above mentioned tick handler can get called and remove the item from queue's list and we will get the above result.

Seems my pull request came in at the same time as this
https://github.com/espressif/esp-idf/commit/01c4a980ee05b5eddefd9d01a2bbdecde9944ce7
Anyhow, now the issue does not occur. Thanks.

Thanks for your PR, we have been discussing ways to fix this issue and your looks like a solid one. We will need to have a more detailed look, but I do see a chance this will be merged as a more reliable solution.

Thumbs up for more reliable.  "reducing the window where the race condition can happen" does not make me sleep like a baby at night.

Thank You. My initial solution that I applied internally to be able to continue work was very similar to the one in 01c4a98, but the code was more messy and thus I was not offering it to the wider community. The one proposed is elegant, and as the additional list check is being done with the protection of xTaskQueueMutex it should be solid and reliable enough - as far as I see it the window of opportunity is closed - but happy to learn where Your concerns come from. I also tested this with my heavy-duty code and the problem has not re-occured.
Adding the xTaskMutex around all the invocations indeed seems more robust, but it also is heavyweight as the overhead counted in instructions executed is much larger than the workaround, and it messes more with FreeRTOS internals. I think both are just patches needed to work around fundamental single-core driven FreeRTOS design concepts.
In my head I picture a solution that drops the queue-tasklist coupling completly and replaces it with something - maybe a lock-free ringbuffer that would store queue "events", for consideration by the scheduler...

this issue still exists (sdk v2.1). no heavy load on the network is required - for me it happens when I send a single SSL request just after wifi reconnects details

I am getting this issue as well
This started when i create a separate task to send MQTT messages in a for loop.
I also have a parallel task which is continuously reading from the CAN bus and a two event loops:

for Wifi
MQTT

@rebeliousconformist
Can you please share the version of IDF you use? The use-case you're describing sounds like a  common scenario so should be easily reproducible.

Hi david,
im using v4.1-dev-1086-g93a8603c5
Also, with the CAN bus task off, the MQTT connects to the rabbitMQ server perfectly.
When both the tasks are running in parallel (MQTT and CAN tx/rx) the MQTT send at most 22 or 23 messages to the server irrespective of the number of topics.
With the CAN bus readout task switched off. the MQTT event loop works fine.
When the MQTT is called from a Task, then it send only 22-23 messages. I presume it is getting preempted by either the Wifi event loop or the MQTT event loop.
I have to cleanup my code before i post anything else.
Also when the semaphores are removed, then the errors go away.
Ill post my code soon

Hi @david-cermak the event loop crash error is resolved in the latest developments.

Hi @rebeliousconformist
Thanks for the update! Closing the underlying internal tracker then.

https://github.com/espressif/esp-idf/issues/8336 looks like a similar issue with event groups in esp-idf v4.4, does vTaskRemoveFromUnorderedEventList() also need a similar fix?

Hi, this stills happens in v4.4.2 release. To trigger it you can use led_strip examlple (esp_idf/examples/peripherals/rmt) combined with the connection example. You have to make a freertos task that constantly turn on and turn off the ws2812 rgb leds in intervals of 100 ms. Meanwhile the rgb task is loop, you have to try to connect to wi-fi. This error causes two behaviours, the first is the Loadprohibited guru handler, the second one is that the program freezes at rmt_write_sample


Add Graph.aheadBehind and tests

@orderedlist my gift to you.

My not passing test gift to you apparently...

That looked like a segfault. I'll dig into this more.


NIFI-8528 Migrate NiFi Registry into NiFi codebase

https://issues.apache.org/jira/browse/NIFI-8528
For all changes:

[x] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?

[x] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

[x] Has your PR been rebased against the latest commit within the target branch (typically main)?

[ ] Is your initial contribution a single, squashed commit? Additional commits in response to PR reviewer feedback should be made on this branch and pushed to allow change tracking. Do not squash or use --force when pushing to allow for clean monitoring of changes.

For code changes:

[x] Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder?
[ ] Have you written or updated unit tests to verify your changes?
[ ] Have you verified that the full build is successful on JDK 8?
[ ] Have you verified that the full build is successful on JDK 11?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-assembly?
[ ] If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly?
[ ] If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties?

For documentation related changes:

[ ] Have you ensured that format looks appropriate for the output in which it is rendered?

Note:
Please ensure that once the PR is submitted, you check GitHub Actions CI for build issues and submit an update to your PR as soon as possible.

Good catch @kevdoran, I would agree that we should get rid of the husky hooks. Looks there are a couple of conflicts that need to be cleaned up as well. I'd be a +1 otherwise, as well.

@kevdoran, @markap14  I agree, the Husky hooks should be opt-in.
That being said I'd rather have that done as a separate issue. I consider the change non-trivial that needs to be tested and confirmed by devs who have some experience with Husky. (I have not unfortunately.) Better not tie to this one imo.


Allow building without rayon

Currently p3-maybe-rayon has parallel enabled by default, it should probably not be default, and all consumer crates need feature flags
As well, p3-matrix, p3-dft, p3-maybe-rayon, p3-uni-stark, & others need fixes to import the right traits to work seamlessly

This was done in https://github.com/Plonky3/Plonky3/pull/217


Break an inifite loop in text wrapping.

This breaks an infinite loop triggered by wrapping a text containing a word longer than the targed width (e.g., a long URL).

Thanks!


Getting connection failures. Possible to get more logging?

I'm currently getting the below from HA when attempting to test the new integration.
From zwave-js-server I only see:
Client disconnected
There is not enough information from either side to understand why it is failing. Is it possible to get more logging out of the server? Also, is the any doc on how to set the log level?
I could see it being useful to be able to set the log level to 'silly' or similar, and when set that way, dump every listener connection and every message that goes through.
Here's what I see in HA from the integration and the websocket client:
2021-01-19 00:25:26 DEBUG (MainThread) [zwave_js_server] Trying to connect
2021-01-19 00:25:36 INFO (MainThread) [zwave_js_server] Connected to Home<PHONE_NUMBER> (Server 1.0.0-alpha.0, Driver 6.0.0-beta.3)
2021-01-19 00:25:36 INFO (MainThread) [homeassistant.components.zwave_js] Connected to Zwave JS Server
2021-01-19 00:25:36 DEBUG (MainThread) [zwave_js_server] Publishing message: {'command': 'start_listening', 'messageId': '5b2d7326644e4e9a94fdd5b4df2d35e8'}
2021-01-19 00:25:36 INFO (MainThread) [zwave_js_server] Connection closed
2021-01-19 00:25:36 WARNING (MainThread) [homeassistant.config_entries] Config entry for zwave_js not ready yet. Retrying in 10 seconds

Opened PR https://github.com/zwave-js/zwave-js-server/pull/48 but in this case the only extra info I get is that the connection was closed with code 1006, meaning "Abnormally".

Opened PR https://github.com/zwave-js/zwave-js-server/pull/48 but in this case the only extra info I get is that the connection was closed with code 1006, meaning "Abnormally".

Is still still an issue and/or needed ?

Is still still an issue and/or needed ?

I think I'm seeing the same; after an HA restart, I can make just one zwave-js based command, and then the integration seems to quit, with the same short message logged in zwave-js;
2021-02-16 08:29:06.367 INFO ZWAVE-SERVER: Client disconnected

I'm seeing nothing logged in HA from homeassistant.component.zwave_js when this happens.

We've added more logging in https://github.com/home-assistant/core/pull/46867.


Spartan AntiCheat Adjustment

Since early January 2023, bedrock detections for the Spartan AntiCheat are available fully by the default file/purchase and without the need for an additional purchase like previously, so I've adjusted its description and list.

There's no extra purchase to enable bedrock detections, that's simply an incorrect way of viewing this.
Spartan AntiCheat is no longer "Spartan AntiCheat", it instead is "Spartan AntiCheat: Java Edition" and "Spartan AntiCheat: Bedrock Edition". Therefore the project has been divided into two projects with each one focusing on a different kind of player. My Discord message is less elaborative but still claims similarly.
To conclude myself, you can mention "Spartan AntiCheat: Java Edition" in the list that ignores bedrock players and "Spartan AntiCheat: Bedrock Edition" in the list that fully checks bedrock players. Any other way of mentioning this would be inherently incorrect.

There's no extra purchase to enable bedrock detections, that's simply an incorrect way of viewing this.
Spartan AntiCheat is no longer "Spartan AntiCheat", it instead is "Spartan AntiCheat: Java Edition" and "Spartan AntiCheat: Bedrock Edition". Therefore the project has been divided into two projects with each one focusing on a different kind of player. My Discord message is less elaborative but still claims similarly.
To conclude myself, you can mention "Spartan AntiCheat: Java Edition" in the list that ignores bedrock players and "Spartan AntiCheat: Bedrock Edition" in the list that fully checks bedrock players. Any other way of mentioning this would be inherently incorrect.

Thanks for the clarification. Could you make a PR for these changes?

There's no extra purchase to enable bedrock detections, that's simply an incorrect way of viewing this.
Spartan AntiCheat is no longer "Spartan AntiCheat", it instead is "Spartan AntiCheat: Java Edition" and "Spartan AntiCheat: Bedrock Edition". Therefore the project has been divided into two projects with each one focusing on a different kind of player. My Discord message is less elaborative but still claims similarly.
To conclude myself, you can mention "Spartan AntiCheat: Java Edition" in the list that ignores bedrock players and "Spartan AntiCheat: Bedrock Edition" in the list that fully checks bedrock players. Any other way of mentioning this would be inherently incorrect.

Thanks for the clarification. Could you make a PR for these changes?

Yes, I will do so at the first chance later today.

Just created a pull request: https://github.com/GeyserMC/GeyserWiki/pull/154
Linking it here so the process is better tracked, let me know if I should not in the future.


New package: LocalAttributes v1.0.0

Registering package: LocalAttributes
Repository: https://github.com/arohatgi29/LocalAttributes.jl
Created by: @arohatgi29
Version: v1.0.0
Commit: 73b53ac9dcf42e0d81ddea6192a598b8f1a49f3a
Reviewed by: @arohatgi29
Reference: https://github.com/arohatgi29/LocalAttributes.jl/issues/1#issuecomment-2110513682

Hello and congrats on the new package! I would recommend LocalSeismicAttributes as a better suited name however, the current one is too generic and computer-science-vibey

Hi Guillaume, Thank you for the suggestion. I changed the name of the repository.
I used JuliaRegistrator Bot and it opened a new repository- #106804. But I see the name is still not changed in PR #106804. I can create another repository in my Local and create a new PR. WOuld that be ok?

You just need to update https://github.com/arohatgi29/LocalAttributes.jl/blob/73b53ac9dcf42e0d81ddea6192a598b8f1a49f3a/Project.toml#L1 etc

Thanks. Here is the new PR #106807

Hi @fredrikekre @gdalle @goerz, I talked to my supervisor regarding the name of the new package. The concept of local attributes applies not only to seismic applications, but that is where it started. We can treat any signal using our package, not only seismic signals. We are doing a conjugate gradient with shaping regularization.  Would it be okay if I change the package name? (I will make the description more robust in the new PR)


fix: dont use TTY in docker if not present, rem TTY necessity in tests

When running tests in Gitlab CI they fail because currently docker commands are hardcoded with -ti argument. This gives the following errors:
not ok 182 checking amavis: VIRUSMAILS_DELETE_DELAY override works as expected
# (from function `assert_success' in file test/test_helper/bats-assert/src/assert.bash, line 114,
#  in test file test/tests.bats, line 705)
#   `assert_success' failed
#
# -- command failed --
# status : 1
# output : the input device is not a TTY
# --
#
not ok 183 checking amavis: old virusmail is wipped by cron
# (from function `assert_success' in file test/test_helper/bats-assert/src/assert.bash, line 114,
#  in test file test/tests.bats, line 711)
#   `assert_success' failed
#
# -- command failed --
# status : 1
# output : the input device is not a TTY
# --
#
not ok 184 checking amavis: recent virusmail is not wipped by cron
# (from function `assert_success' in file test/test_helper/bats-assert/src/assert.bash, line 114,
#  in test file test/tests.bats, line 719)
#   `assert_success' failed
#
# -- command failed --
# status : 1
# output : the input device is not a TTY
# --
#

This fix only passes -ti if a TTY was detected in setup.sh and skips the -ti in the failing tests where it is not necessary.
Info @wt-io-it

Makes sense.


feat: rewrite plausible script [ch-00]

So this was a little trick I found in the plausible / vercel docs. It is kindddd of morally dubious, as we're actively going around users who use ad-blocking systems. But i don't find it that bad and plausible noted between 6%-29% of users have adblocking enabled (we're probably on the higher side with tech-savvy users).
So its up to you guys if we should merge this or not. If we do, the client will request /a/b.js on our own domain and vercel will do the work of serving https://plausible.io/js/plausible.js in its place.
EDIT: I implemented this with my instance of plausible on my homepage if you want to see what it looks like in the real world: https://ndo.dev/
EDIT 2: The routes key is apparently considered legacy and not compatible with rewrites, redirects, etc. so I upgraded it to the newer headers key. See: https://vercel.com/docs/configuration#project/routes/upgrading

I really like this, looks like a clever workaround but as we are open source here I think we should respect if the user wants to avoid tracking.
I pass the ball to @tnolet

LGTM
Plausible is collecting very few metrics and this should be acceptable and will enable us to stay away from Google Analytics and similar tools.

I don't approve of anything that tricks a user. Opting out of tracking is something we need to embrace instead of work around.


add bytes sent including headers to json results

originally in #2, we already have bytes received

Hi @ldemailly , May I work on this task? From this task, I understand that you are looking for adding headers to json body. Current json result;
{
  "RunType": "GRPC Ping Delay=250ms",
  "Labels": "fortio-stage.istio.io , cemturker-HP-EliteBook-840-G3",
  "StartTime": "2018-07-05T20:27:39.491016944+03:00",
  "RequestedQPS": "8",
  "RequestedDuration": "5s",
  "ActualQPS": 7.231679114210312,
  "ActualDuration":<PHONE_NUMBER>,
  "NumThreads": 8,
  "Version": "1.1.0-pre",
  "DurationHistogram": {
    "Count": 40,
    "Min": 0.450575182,
    "Max": 0.550071401,
    "Sum": 19.950548129,
    "Avg": 0.498763703225,
    "StdDev": 0.03627434127679184,
    "Data": [
      {
        "Start": 0.450575182,
        "End": 0.5,
        "Percent": 60,
        "Count": 24
      },
      {
        "Start": 0.5,
        "End": 0.550071401,
        "Percent": 100,
        "Count": 16
      }
    ],
    "Percentiles": [
      {
        "Percentile": 50,
        "Value": 0.4914043794782609
      },
      {
        "Percentile": 75,
        "Value": 0.518776775375
      },
      {
        "Percentile": 90,
        "Value": 0.53755355075
      },
      {
        "Percentile": 99,
        "Value": 0.548819615975
      },
      {
        "Percentile": 99.9,
        "Value": 0.5499462224975
      }
    ]
  },
  "Exactly": 0,
  "RetCodes": {
    "1": 40
  },
  "Destination": "https://fortio-stage.istio.io",
  "Streams": 4,
  "Ping": true
}

Todo one is like;(I added headers at the end as difference from first json.)
{
  "RunType": "GRPC Ping Delay=250ms",
  "Labels": "fortio-stage.istio.io , cemturker-HP-EliteBook-840-G3",
  "StartTime": "2018-07-05T20:27:39.491016944+03:00",
  "RequestedQPS": "8",
  "RequestedDuration": "5s",
  "ActualQPS": 7.231679114210312,
  "ActualDuration":<PHONE_NUMBER>,
  "NumThreads": 8,
  "Version": "1.1.0-pre",
  "DurationHistogram": {
    "Count": 40,
    "Min": 0.450575182,
    "Max": 0.550071401,
    "Sum": 19.950548129,
    "Avg": 0.498763703225,
    "StdDev": 0.03627434127679184,
    "Data": [
      {
        "Start": 0.450575182,
        "End": 0.5,
        "Percent": 60,
        "Count": 24
      },
      {
        "Start": 0.5,
        "End": 0.550071401,
        "Percent": 100,
        "Count": 16
      }
    ],
    "Percentiles": [
      {
        "Percentile": 50,
        "Value": 0.4914043794782609
      },
      {
        "Percentile": 75,
        "Value": 0.518776775375
      },
      {
        "Percentile": 90,
        "Value": 0.53755355075
      },
      {
        "Percentile": 99,
        "Value": 0.548819615975
      },
      {
        "Percentile": 99.9,
        "Value": 0.5499462224975
      }
    ]
  },
  "Exactly": 0,
  "RetCodes": {
    "1": 40
  },
  "Destination": "https://fortio-stage.istio.io",
  "Streams": 4,
  "Ping": true,
  "headers": [{"key":"User-Agent", "value":"istio/fortio-1.1.0-pre"},{"key":"Authorization", "value":"basic_1231231"}]
}

Am I undestand right?

look at a load tesr json not grpcping which isn’t really interesting (I am surprised it even does json)
Therr will be a received size histogram, we should add send size and kbytes/sec calc (total size sent includind headers and post size)

Sorry for copy paste mistake :). I updated the jsons above. I took result json which belongs to grpc. In short, I got my answer. I will inform you to how am I going to implement.

Hi @ldemailly .  For the solution, I'm going to reuse stats.Histogram and stats.HistogramData for request data. Before starting the client.fetch methods, I'm going to calculate the total size of the request that will be sent(as a whole) and the header size. For every client.fetch methods, when response sizes are added(In the current implementation, it is done in Run method), the request will be added as well(assume that header size and whole message is already saved in the struct before all process begin). I'm thinking to rename sizes to responseSizes because I'm thinking to add requestSizes in the HTTPRunnerResults. Does it make sense? Am I missing something?

When using the fast client (fortio home grown http client) the request is pre calculated so the size is already known - maybe that feature can be only for that client at first, we don't need an histogram because it's a constant size, no distribution (unless I miss something which is possible) just a stats.Counter
Basically unless some write error occurs, that sent size is # of requests sent * that pre cooked size
But it's still interesting to have to get an idea of the network traffic

I agree that responseSizes would be a better name - that breaks backward compatibility in a small way, not sure if anyone relies on that so I think it's ok and we can document in the next release notes

Hmm okay, I won't use stats.Histogram then. I'm going to add two new fields that named sentRequestSize and sentRequestSizeKBPS and full fill the fields with the fast client(I will try it with the default client as well).


List only one item par line in all

Follow-up of #1214
Place one imported item per line so that diff looks simpler when adding a new item. (like in functional, which is what I am working in #1243)
Note: I do not intend to start a discussion on how/if we should run formatter for the codebase. Please have that kind of discussion elsewhere.

Thanks!


Overall Nova Pro experience on Linux

Apologies for the "not an issue" topic here. I was curious overall how well (or not) the Nova Pro Wireless works on Linux? Other reports I saw online said it was a big step backwards from the Pro Wireless it replaced, as more needed to be done in software rather than through the hardware hub. This was the only project I saw for changing the chat mix, but what about anything else that is still missing from the Linux experience? What features don't work?
Thanks!

As far as I know chatmix is the only thing missing on linux compared to older headsets.
I've never really used Sonar outside of figuring out how the chatmix controls work, so I don't really know what other features it provides. I do know it enables some kind of virtual surround sound implementation, but I've never really been a fan of those.
Other settings like EQ can be set using the base station itself (although i think Sonar can disable the hardware EQ if it's running).

Thanks!


Clarify API token permission needed

refs https://jira.cfops.it/browse/PCX-4384
Specify the exact permission that an API token must have in order to make requests to the Stream GraphQL Analytics API
@dcpena for edits on how to frame the "prerequisite" part of this in the context of an ordered list of steps.

@dcpena - something funky going on here with indentation
https://92f4b32f.cloudflare-docs-7ou.pages.dev/stream/getting-analytics/fetching-bulk-analytics/

@dcpena - something funky going on here with indentation
https://92f4b32f.cloudflare-docs-7ou.pages.dev/stream/getting-analytics/fetching-bulk-analytics/

Ooo, that is wonky. I checked if this behavior was occurring in other parts of the docs, and it is so I imagine it's a CSS thing that needs fixed. I can file a ticket with the DA team to get it corrected.

Updated to show simple request/response in GraphQL format, rather than kludge it all into a cURL request.

At the top of the page, an aside is included that says users need the account analytics permission. Do we want to keep the aside, or do we want to remove it in favor of the prerequisite line? I have no preference, especially because I believe this page will get tidied up a bit in a later phase of the docs refresh.

@dcpena nice catch, moved this up on the page into the aside in https://github.com/cloudflare/cloudflare-docs/pull/5310/commits/28b7bd949e5ff8f3ffdaf421bc88b97824137503

@victor-perov — can you please take another look? Decided it's simpler here to just show the GraphQL queries, with proper syntax highlighting, rather than curl requests.

Closing in favor of https://github.com/cloudflare/cloudflare-docs/pull/5752


gtp: fix extension headers and support FixLengths

fixes #67

@mosajjal can you review this change?

I'm not an expert on GTP. need some time to read upon it and understand what's going on.


fix the integration test

CLA is valid!

please bump the minor version number, and npm publish please. thanks


Suggestion: Resolve Kernel Compilation Errors on Ubuntu 22.04.2

Hi Team,
I've been using your project and I must say, it's amazing. However, I've noticed a minor issue when running on Ubuntu 22.04.2 that could use some attention.
During my use, I've encountered kernel compilation errors that seem to be tied to the binutils version. Luckily, I've found a workaround: using kernel version 5.19 seems to resolve the problem.
So, I'm thinking it could be useful to implement this fix into the project. If you're open to it, I'm ready to prepare a PR for this change.
Here's a brief overview of what the fix would look like:
-  # Use kernel v5.4
-  ./init.sh --kernel-version v5.4
-
+  if [ "$( cat /etc/os-release | grep ^VERSION= | cut -d'"' -f2)" = "22.04.2 LTS (Jammy Jellyfish)" ];
+  then
+    # Use kernel v5.19
+    ./init.sh --kernel-version v5.19
+  else
+    # Use kernel v5.4
+    ./init.sh --kernel-version v5.4
+  fi

Let me know what you think about small fixes like that, and if there are any further steps I should take.

Thank you for the kind words and thanks for checking out the project.
That is a great suggestion. The reason the current setup uses Ubuntu 20.04 is precisely this reason, so it's fun to hear you are running into the same. The v5.4 kernel version is only there for the 4th example demonstrating a known bug in the Linux kernel, but defaulting to something more recent is a good idea.
I'll run the examples through v5.19 (minus example 4 since that needs v5.4) and confirm everything works great with it. If so, we'll push up that change. so things are a bit smoother.
I'll leave this open in the meantime.

Great! We can default to using kernel v5.19 and special case the 4th example to use v5.4. Thanks for your help!


Resolve $ref's except schema ones

Create a utility function to resolve all the $refs in the AsyncAPI document, except the ones that are schemas.
Currently, schemas are present at:

Topic Item Parameters
Message payload and headers.
components.schemas

References

https://github.com/xeipuuv/gojsonpointer
https://github.com/xeipuuv/gojsonreference

Implementation suggestion
We can implement this as a separate package so other people can benefit from it too.

[ ] :bug: Unit tests
[ ] :books: Documentation

Idea: if there are existing Go libraries for $ref resolution, this may be achieved by 'hiding' the $refs within schema objects e.g. by temporarily renaming them (or by detaching and later re-attaching the schema objects themselves).

I was thinking the same but seems there's nothing that resolves $refs in Go :/

Resolving external $refs in Javascript cost me quite a lot in coffee...

I know, prepare some more coffee for us too 😄

So the requested functionality is actually the below, right?
https://github.com/APIDevTools/swagger-parser/blob/master/docs/swagger-parser.md#resolveapi-options-callback

Almost! It's this one: https://github.com/APIDevTools/swagger-parser/blob/master/docs/swagger-parser.md#dereferenceapi-options-callback

Ah, ok thanks for clarification.
Let's me think about how this can be done (in Go)....

Great! Let us know if you need help!

Just to manage expectations - I have no experience in Go (I started looking at it this weekend) so it will take some time ;-)

No problem! This issue is not blocking anything else in the pipeline, so take your time and make sure you enjoy it! :)

There is a working version of this in the parser right now so I'm going to close this issue for now.
Any improvement or addition to this functionality can be created in another issue.

This is awesome! :tada:


Basic tutorial

add some improvements to DaCapo and the basic tutorial for learning instance segmentation through affs + watershed
DaCapo:

avoid doing any special postprocessing to convert to uint8 when writing out the predictions. just store as float32
avoid converting back to float in the watershed postprocessor, just use the predictions as saved in the zarr.

Tutorial:

add labels colormap
train z affs
use valid padding

Loss and validation plots are included below.
There is still something strange happening with the loss after the first validation.
The results still aren't as nice as they should be on such a simple toy dataset.

thank you Will !


Review acceptance tests

In the past, this module had a custom spec_helper_aceptance.rb. There are also some basic acceptance tests in https://github.com/voxpupuli/puppet-keepalived/tree/master/spec/acceptance. We should review this and enable the tests again.

with #157 merged, acceptance tests are enabled but not reviewed.


Document Routing Agent Service Account

It might be worth mentioning that the Service account used for the Agent should be the same as the Admin in d365 and local admin on the computer running the agent. In my last 3 deployments I had to do that to make it work.
Now the Documents are printing but the status window never shows any docs being printed.
I think a little cosmetic progress of things would help people like us wandering in dark.

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

ID: 2128b07d-7349-6642-f05f-c94fe800d104
Version Independent ID: 0568d0d1-8035-3423-f791-7bd82a5d070f
Content: Install the Document Routing Agent to enable network printing - Finance & Operations | Dynamics 365 | #MSDyn365FO
Content Source: articles/dev-itpro/analytics/install-document-routing-agent.md
Service: dynamics-ax-platform
GitHub Login: @TJVass
Microsoft Alias: tjvass

Totally agree #ddexter26. Would have been nice to explicitly mention the SAME admin account that administers D365fO is also the same account to run the agent under.

Agree with the service account needing to be a local admin on the computer running the agent as you seem to need to install the agent when logged in as the service account user.

I've found the main problem customers experience is they will install the DRA while logged in as their own user, then attempt to configure it to Run as a Windows service which results in an 'Error : AcquireToken failed' entry logged in the Microsoft.Dynamics.AX.Framework.DocumentRouting.log file every 5 seconds. I'm guessing it's something to do with the Azure access token's being acquired and stored under the user's name, which the service user doesn't have access to. Solution is to always install and configure DRA while logged in as the service account.

Awesome, if this = "Solution is to always install and configure DRA while logged in as the service account." Can be documented, we are golden.

I have another problem with this solution. If customers want to use service account, do they need one more license? Also it is needed to have one DRA for  each environment, due to generated Application ID (one for PROD, one for SBX, …)? This is not really effective when customer have more environments. Another thing is refreshing token every 90 days for running DRA as service?

@Rain-Runner: No, the Document Routing Client role assigned to the service account user in D365O doesn't need a D365O license. (Does display it somewhere there when assigning the role that it doesn't need one).
And yes, need to have one DRA per environment that you wish to print from, preferably two or more for production.

just a try: check this file Microsoft.Dynamics.AX.Framework.DocumentRouting.config under "C:\ProgramData\Microsoft\Microsoft Dynamics 365 for Operations - Document Routing" check by changing the parameters.
AADInstance
ApplicationId
Tenant
AXResourceId

Production environment is running on ****.onmicrosoft.com account  Hence, unable to use admin account of D365FO as a service agent while configuring DRA as service. In this scenario, how to configure DRA as service for network printers. If it's possible through D365FO admin account then what should be the procedure?

Yes, you can use any System Admin Account. Same procedure you need to follow.


We should be able to add / and /* to  RouterService

Currently this is not possible to do :
RouterService.RouteBuilder routerBuilder = new RouterService.RouteBuilder();
routerBuilder //
        .any("/", new RootResource() //
        .any("/myResource", new MyResource() //
        .any("/*", new Default());
router = routerBuilder.build();

If you do that RootResource will never be called.
I think this is because / and /* will create 2 RequestMatcher which will be considered as equal and so Default will override RootResource in handlers hashmap.
Maybe the solution is to add isPrefixed  attribute to equals() and hashcode() methods ?
(triggered by https://github.com/open-coap/java-coap/issues/27#issuecomment-1527757330)

Not directly linked but not sure to get why isPrefixed is transient ? :thinking:
static final class RequestMatcher {
    private final Method method;
    private final String uriPath;
    private transient final boolean isPrefixed;

Well, that transient was to prevent adding isPrefixed to equals method.

Oh I was thinking transient was about Java Serialization. Not sure to know how this is related to equals ? Maybe  something related to IDE code generation ?

That is needed by this testing tool: https://jqno.nl/equalsverifier/ to skip fields from being tested.


Internal errors during analysis

Problem encountered on https://dotnet.microsoft.com/en-us/platform/upgrade-assistant/tutorial/install-upgrade-assistant
Operating System: windows
Provide details about the problem you're experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.
Analyzing a .NET Framework 4.6.1 project, got two errors.
[10:01:52 INF] Loaded 5 extensions
[10:01:54 INF] MSBuild registered from C:\Program Files\dotnet\sdk\5.0.104\
[10:01:55 INF] Found Visual Studio v17.1.32228.430 [C:\Program Files\Microsoft Visual Studio\2022\Enterprise]
[10:02:00 INF] Recommending executable TFM net5.0 because the project builds to an executable
[10:02:46 WRN] No version of FluentCommandLineParser found that supports ["net5.0"]; leaving unchanged
[10:02:52 INF] Marking package RestSharp, Version=105.2.1 for removal because it doesn't support the target framework but a newer version (105.2.3) does
[10:02:57 INF] Marking package RestSharp, Version=105.2.3 for removal because it doesn't support the target framework but a newer version (106.15.0) does
[10:02:57 WRN] Package RestSharp needs to be upgraded across major versions (105.2.3 -> 106.15.0) which may introduce breaking changes
[10:02:57 FTL] Package analysis failed (analyzer Target compatibility reference analyzer: Collection was modified; enumeration operation may not execute.
[10:02:57 INF] Reference to .NET Upgrade Assistant analyzer package (Microsoft.DotNet.UpgradeAssistant.Extensions.Default.Analyzers, version 0.3.310801) needs added
[10:02:59 ERR] Package analysis failed

@mc0re This was fixed sometime back, could you specify what version of upgrade-assistant are you using?


Performing javascripts inside progressive_reder

Nice gem!
However, I've noticed that javascript is not being performed properly when I wrap code in the block:
<%=progressive_render do %>
<script type="text/javascript">
  $(document).on('turbolinks:load', function() {
    alert("test")
  });
</script>
<% end %>

Is it something with my setup or this feature is not supported?

Hey @rafaltrojanowski, thanks!
The gem injects content from that block via jQuery.html(..). If that doesn't execute script contents then perhaps there's more we can do here?
Have you tried just alert("test") in your script block (w/o the turbolinks:load event)? The gem doesn't trigger any turbolinks events. It does raise progressive_render:end if you need to execute code on that event.

Have you tried just alert("test") in your script block (w/o the turbolinks:load event)?

It helps :)
However, observed that to make it fully work in cases when user switch between pages (with turbolinks) we would need to use it with document ready:
<%=progressive_render do %>
  <script type="text/javascript">
    $(document).ready(function(){
      alert("hi there!")
   });
  </script>
<% end %>

I think I'm satisfied with this solution. I guess that support for turbolinks requires some additional work.
Thanks for your help @johnsonj!

sweet!


Save Caption button doesn't work

Expected behavior: Clicking the save button should save the typed in caption to the caption text file.
Actual behavior: It doesn't look like it does anything, not sure if there are errors logged but the Ctrl + S still works.
Steps to reproduce: See below.

May have been something specific to my env, restarted the PC and it seems to be working normally.
Note that I did the run.py -> run.pyw change, so not sure if that had an impact.

Issue confirmed and fixed. Next update will bring changes to master 🚀
Thanks a lot for the report 😄


Move javascript development dependencies to devDependencies

This doesn't really impact anything because we're not a library.  But I think it's more consistent.  There were things mixed around like prettier.

Codecov Report

Merging #141 (ad24af5) into main (eedef6c) will increase coverage by 0.03%.
The diff coverage is n/a.

:exclamation: Current head ad24af5 differs from pull request most recent head 8e7567e. Consider uploading reports for the commit 8e7567e to get more accurate results

@@            Coverage Diff             @@
##             main     #141      +/-   ##
==========================================
+ Coverage   93.23%   93.26%   +0.03%
==========================================
  Files         107      107
  Lines        2659     2659
==========================================
+ Hits         2479     2480       +1
+ Misses        180      179       -1

Impacted Files
Coverage Δ

lib/inferno/exceptions.rb
88.37% <0.00%> (+2.32%)
:arrow_up:

Continue to review full report at Codecov.

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


Why do you set require_grad to false in BatchNorm layers when training?

bn1,bn2,bn3 In resnet_models.Bottleneck

In resnet_models.ResNet:
def train(self, mode=True, freezeBn=True):
super(ResNet, self).train(mode=mode)
if freezeBn:
print("Freezing BatchNorm2D.")
for m in self.modules():
if isinstance(m, nn.BatchNorm2d):
m.eval()
m.weight.requires_grad = False
m.bias.requires_grad = False

We freeze the BN layer since the batch_size in each GPU is so small.


getEvent race condition without setTimeout

in https://github.com/niles-bot/niles/commit/a16f3d77c0998fd6921f30a84a8754e1a196ab5a getEvent was delayed with setTimeout in order to avoid a race condition where messageid would be overwritten with the previous calendar
this is fixed in https://github.com/mchangrh/Niles/commit/288a8fb5641becc461748ad2e5bb73d241397c51

closed in #181


Define a mechanism for allowing fuel-core to query relevant commit information

Define a mechanism for allowing fuel-core to query gas cost and other relevant information to adjust block building time, size, and general gas cost.

Related:
https://github.com/FuelLabs/fuel-block-committer/issues/110
Should they be merged @digorithm @MujkicA ?

Yeah, this is the same as #110. Closing this in favour of the new one (since we're already tracking it).


chapter 4.1 - docker isn't the Hutch default config

in this section: https://hutchdatascience.org/FH_WDL101_Cromwell/fred-hutch-customizations.html#standard-runtime-variables
the top bit says "These runtime variables are both the defaults for our Fred Hutch configuration" and it lists below docker: "ubuntu:latest".
Sounds from that like I will be working in a container by default, but I think I can tell (from some tests I just ran) that the default is NOT to run within a docker container.   My test is this: I add which codeml to diy-cromwell-server/testWorkflows/helloHostname.wdl and I run it  (codeml is something I installed in my own gizmo environment).   When the runtime block is empty, which codeml succeeds in finding my executable (/home/jayoung/malik_lab_shared/linux_gizmo/bin/codeml), so I think it can't be running within a container.   But if I add which codeml to helloSingularityHostname.wdl, where the docker container is specifically requested using docker: "ubuntu:latest", it returns nothing, as I would expect when running in the container.
Solution could be just to rewrite the top bit.  Maybe a separate spot would be a good place to summarize the default Hutch config - simply discuss here common config options the user MIGHT want to mess with. Or just show after each of these options what the default actually is.
Also in the Hutch-specific section: is dockerSL: "ubuntu:latest" actually the default, as implied by that section's header? Again, maybe split out list of possible config variables from the list of defaults.
I also totally don't understand the thing about the soft links right now. It might get clearer once I actually start running stuff within containers/scratch.  Examples might be the best way to help me see how I'd use that.

ah yes, very good point.  I'll re-think how I can reframe this regarding defaults on all this stuff.  the docker, dockerSL and modules all need more clear info about that.


Argo Workflow Running Status Is there a real-time Workflow API?

My application scenario:
I want to push the real-time running status of Argo Workflow task to System A, and system A can synchronize my current workflow status in real time.

you can use hooks to get workflow status


Protected download links using access tokens?

My app needs to serve files to web users, but it's impossible to set Authorization headers for <a> links and also impossible to download (large) files using ajax. Instead, I could pass the access token as some other GET parameter or as part of the path. This means that the route has to be outside of the middleware group.
In short I need a way to obtain the OAuthUser from the access token that I have as a variable in a controller without using the regular middleware. Is there some way to achieve this?

This works for me:
`use League\OAuth2\Server\ResourceServer;
use Illuminate\Support\Facades\App;
...
$checker = App::make(ResourceServer::class);
$validRequest = $checker->isValidRequest(false, $accessToken);
if ($validRequest) {
$session = $checker->getAccessTokenStorage()->get($accessToken)->getSession();
$userId = $session->getOwnerId();

}`


set working directory for shortcuts

@r15ch13 I haven't test this. Do you have a low cost way to test core? I don't have a VM.

If you want a cheap and quick windows VM setup you can do this:
1.) Install VirtualBox
2.) run scoop install vagrant
3.) Make a directory named win7 and run the following two commands in it:
vagrant init matthewjberger/win7-64-en
vagrant up

4.) Then open virtualbox and you'll see your VM running. Select it and it will pop up the gui for the VM
Good luck!
Note:
You can spin up a new vm in this same manner and you'll already have the win7 base ready to go because it only needs to download the first time. Each VM you spin up is a copy of the base so you can safely delete it without destroying the original win7 base box that you downloaded.

@winteryoung I test everything with my current production system. One year old Win10 installation.
I really should switch to using VMs, but I think they are annoying. (I often fix scoop issues between two rounds of PUBG :D)

I agree. They were annoying to me too until I started using vagrant! :)

I think I will give docker for windows a try. The hyper-v solution seems promising.

@winteryoung Keep in mind that VirtualBox and VMware Workstation Player will not work anymore when you install Hyper-V.

@r15ch13 thx. I don't have them installed.

There's a problem to test core. The install script is coupled with lukesampson urls. Is there any guidelines to how to test core?

If there's no guidelines, I will create a new script to install locally.


Operator documents issues tracking

This issue tries to track problems in operator documents. Please feel free to add or comments below if you find other operator documents that confuse you, lack details or does not make sense. You are also very welcome to contribute to the documentation. See also #3504 and #3513 for some guidelines of documentations.
Activation
Ref: #3538

[x] Softmax activation? The doc says Softmax Activation is only available with CUDNN on GPUand will be computed at each location across channel if input is 4D. but the act_type does not contain Softmax.
[x] softrelu: what exactly is softrelu? Maybe good to add formulas for each of the activation type.
[x] See also: add link to LeakyReLU for people looking for leaky activations.

BatchNorm

[ ] Details: provide formula and reference. See e.g. the torch doc
[ ] Shared statistics: do we support BN with shared statistics for RNNs now? If yes, document it.

BlockGrad

[ ] Details: give an example use case in RNN unrolling.

Cast
Concat

[ ] data and num_args: since we specialized the calling convention for this kind of operators. It might be good to also specialize their auto-gen docstring so that they are less confusing.

Convolution
Correlation

[ ] Details: provide formula or more explanation?

Crop

[ ] Formats: punctuations and spaces are missing. E.g. "... will be used This function support ...", "... we will use the h_wfor crop height ..."
[ ] Examples: maybe need examples. I'm a bit confused by "2nd and 3rd dim", is it counting from 0 or 1?

Custom

[ ] Details: maybe add link to documentations on how to implement custom operators.

Deconvolution

[ ] Details: maybe add formula and references. I often find it is very confusing when different toolkits use different names for similar things like deconvolution, unconvolution, convolution_transpose, dialated convolution, etc.

Dropout
Ref: #3566

[x] Details: I guess everybody knows dropout, but adding a formula is not bad.

ElementWiseSum

[ ] Doc: not sure why this operator is not taking a data argument. Maybe examples are needed.
[ ] Clarification: what is the difference between this and +? Does this do something special?

Embedding
Ref #3596

[x] Details and examples: I find the doc quite confusing until I check the code in RNN examples. The inputs are not one-hot encoded, but just integer indices. The input_dim is the input vocabulary size, while "input dim of one-hot encoding" sounds like the axis of the multi-dim tensor that is used to do one-hot encoding.

Flatten

[x] Details

FullyConnected
IdentityAttachKLSparseReg

[ ] Details: formula and references (if any)

L2Normalization

[ ] Details: "Set the l2 norm of each instance to a constant", but to what constant?

LRN

[ ] Details: the doc sounds like that this is just a convolution operator.

LeakyReLU

[ ] Details: formula for each activation type.

LinearRegressionOutput

[ ] Details: formula

LogisticRegressionOutput

[ ] Details: formula

MAERegressionOutput

[ ] Details: formula

MakeLoss

[ ] Example

Pooling

[ ] Details: document expected input and output shape, add examples

RNN

[ ] Details: formula for each cell type?

ROIPooling

[ ] Details: maybe link to some references and example directory?

Reshape

[ ] Format: shape argument missing type

SVMOutput

[ ] Details

SequenceLast
SequenceMask
SequenceReverse
SliceChannel
Softmax

[ ] Maybe should remove this at some point? Deprecated for a long time.

SoftmaxActivation
SoftmaxOutput

[ ] Fix: "If set to true, for a (n,k,x_1,..,x_n) dimensional input tensor, softmax will generate n_x_1_...*x_n output", does not seem to be correct, the output is still the same shape as the input, just normalized along one axis.

SpatialTransformer

[ ] Details: reference and example?

SwapAxis

[ ] Details

UpSampling

[ ] Related issue: https://github.com/dmlc/MXNet.jl/issues/108

+1 for removing Softmax, SoftmaxActivation should be aliased as softmax

SliceChannel and slice_axis

Also I think there should be a clearer indexing operator

I found the test case for sequencemask is also missing

documents which confused me:

ElementWiseSum. why need 'num_args'?
UpSampling. 'sample_type' could add some explanation, why need 'num_args'? what if I give a single symbol?
slice_axis. could 'end' be -1? and does the result contain 'end' index?
and seems there is no Shape, Mean operators in mxnet

https://github.com/apache/incubator-mxnet/issues/7811


Change trial period to 1 month

Per reddit suggestion, a trial period of 1 month would be more reasonable.  It would give people time to maybe block out an hour or so over the weekend to look into things and understand how they work or to evaluate over several days.

The trial period has been extended to 1 month.


jQuery attached to the partial after a ic-put-to doesn't work

So I am able to successfully do the following on a post show page with many comments:
<a ic-get-from="<%= edit_comment_path @comment %>"
   ic-target="#comment-<%= @comment.id %>">Edit

And then
<a ic-put-to="<%= comment_path @comment %>"
   ic-target="#comment-<%= @comment.id %>">Save

So intercooler-js works flawlessly in showing the edit form for any given single comment, and then updating the comment in place. The issue is that once the comment is shown after an update, the jQuery which is attached to the comment partial view does not work.
The specific piece of code from the partial, on which the jQuery gets called :
<a class="toggle" href="#toggle-comment-share-div-<%= @comment.id %>">share
<div id="toggle-comment-share-div-<%= @comment.id %>">
   <div class="share" data-url="<%= url %>" data-text="<%= @post.title %>">

The jquery that gets called when the share link is clicked does not work, though the other comments on the page with the link work. I searched for in the issues if someone else faced the same problem, but I didnt see it, also I apologize if I missed it being addressed in the documentation.

How do you have your event listener wired in?
You may want to use the Intercooler.ready function (in place of the normal
jQuery ready):
Intercooler.ready(function(addedContent){
addedContent.find("someSelector").on(...)
});
Cheers,
Carson
On August 11, 2017 at 3:37:23 PM, newterminator<EMAIL_ADDRESS>wrote:
So I am able to successfully do the following:
Edit
And then
Save
So intercooler-js works flawlessly in showing the edit form, and then
updating the comment in place. The issue is that once the comment is shown
after an update, the jQuery which is attached to the partial view does not
work.
What I mean in terms of code is:
share

The jquery that gets called when the share link is clicked does not work,
though the other comments on the page with the link work. I searched for in
the issues if someone else faced the same problem, but I didnt see it, also
I apologize if I missed it being addressed in the documentation.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/LeadDyno/intercooler-js/issues/214, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAcov19l96EhWhLAbvkRo-Zv1o6wwk_Iks5sXNeigaJpZM4O1M-M
.

Thanks for the quick reply @carsongross . Intercooler.ready did the trick. I also want to take the opportunity to thank you for making those rails videos. They are super helpful, even today, 3 years after being made, at least the first one I saw to get started, helped flawlessly, which is kinda nice in the ever changing/deprecating/obsolete messages world. Cheers.