Kadane algo

🚀 Feature
(A clear and concise description of what the feature is.)
Have you read the Contributing Guidelines on Pull Requests?
Yes
Motivation
Kadane algo is frequently used algo to check maximum sum subarray.
Pitch
Kadane algo is a algorithm used to check maximum sum subarray in any array.

@atarax665 please assign this problem to me.

@atarax665 please assign this problem to me.

it is already implemented

it is already implemented


API Endpoint not found

IgNotFoundError: GET /api/v1/fbsearch/suggested_searches/?type=users - 404 Not Found;
    at Request.handleResponseError (C:\bot_insta\insta_bot\node_modules\instagram-private-api\dist\core\request.js:103:20)
    at Request.send (C:\bot_insta\insta_bot\node_modules\instagram-private-api\dist\core\request.js:54:28)
    at async FbsearchRepository.suggestedSearches (C:\bot_insta\insta_bot\node_modules\instagram-private-api\dist\repositories\fbsearch.repository.js:7:26)
IgNotFoundError: GET /api/v1/fbsearch/suggested_searches/?type=users - 404 Not Found;
    at Request.handleResponseError (C:\bot_insta\insta_bot\node_modules\instagram-private-api\dist\core\request.js:103:20)
    at Request.send (C:\bot_insta\insta_bot\node_modules\instagram-private-api\dist\core\request.js:54:28)
    at async FbsearchRepository.suggestedSearches (C:\bot_insta\insta_bot\node_modules\instagram-private-api\dist\repositories\fbsearch.repository.js:7:26)

I am getting this error after pos-login, I can get around this by commenting out the lines
// () => this.client.fbsearch.suggestedSearches('users'),
// () => this.client.fbsearch.suggestedSearches('blended'),

the problem is that when doing this, when sending some messages through the API my account receives a 3 day restriction on sending messages

I can confirm this and this doesn't happen after I remove the post login flow execution in my case:
import { IgApiClient } from 'instagram-private-api'
import dotenv from "dotenv";

dotenv.config();

const ig = new IgApiClient();
ig.state.generateDevice(process.env.IG_USERNAME);
(async () => {
    await ig.simulate.preLoginFlow();
    const loggedInUser = await ig.account.login(process.env.IG_USERNAME, process.env.IG_PASSWORD);
    // process.nextTick(async () => await ig.simulate.postLoginFlow());
    const userFeed = ig.feed.user(loggedInUser.pk);
    const myPostsFirstPage = await userFeed.items();;
    console.log(myPostsFirstPage[0])
})();

Same here. Removing the ig.simulate.postLoginFlow() removed the error for me but I worry that may end up having other side effects / increasing likelihood of bot detection.

Yes, that does cause other side effects. The API becomes pretty unusable after removing that.

The prelogin /post login flows are outdated. You don't need to use


HL-839 | Tables now sort based on date value

Description :sparkles:
By default, <Table> sorts data as A,B,C...
Use custom function to change the sort algorithm for dates.
before

after

Codecov Report

Merging #2135 (13fe654) into develop (c213af7) will decrease coverage by 0.01%.
The diff coverage is 31.81%.

@@             Coverage Diff             @@
##           develop    #2135      +/-   ##
===========================================
- Coverage    30.87%   30.87%   -0.01%
===========================================
  Files          812      812
  Lines        16559    16572      +13
  Branches      3588     3590       +2
===========================================
+ Hits          5112     5116       +4
- Misses       10857    10864       +7
- Partials       590      592       +2

Impacted Files
Coverage Δ

...onents/applicationsArchive/ApplicationsArchive.tsx
0.00% <0.00%> (ø)

...omponents/batchProcessing/BatchApplicationList.tsx
0.00% <0.00%> (ø)

frontend/shared/src/utils/date.utils.ts
87.38% <30.00%> (-5.69%)
:arrow_down:

...src/components/applicationList/ApplicationList.tsx
57.35% <33.33%> (-0.86%)
:arrow_down:

...components/batchProcessing/ApplicationsHandled.tsx
25.00% <100.00%> (+1.59%)
:arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

API branch is deployed to platta: https://kesaseteli-pr2135.api.dev.hel.ninja/healthz :rocket::rocket::rocket:

HANDLER branch is deployed to platta: https://handler-pr2135.dev.hel.ninja :rocket::rocket::rocket:

EMPLOYER branch is deployed to platta: https://kesaseteli-pr2135.dev.hel.ninja :rocket::rocket::rocket:

YOUTH branch is deployed to platta: https://youth-pr2135.dev.hel.ninja :rocket::rocket::rocket:

TestCafe result is success for https://kesaseteli-pr2135.dev.hel.ninja :laughing::tada::tada::tada:


Data is missing since 23-12-24.

Looks like scraper does not scrape Russian losses correctly since 2023-12-24
Is it possible to fix this?
Data is missing since 23-12-24
https://github.com/leedrake5/Russia-Ukraine/tree/main/data/bySystem/Totals/Full/2023-12-24.csv
https://github.com/leedrake5/Russia-Ukraine/tree/main/data/bySystem/Totals/Full/2023-12-25.csv
https://github.com/leedrake5/Russia-Ukraine/tree/main/data/bySystem/Totals/Full/2023-12-26.csv
https://github.com/leedrake5/Russia-Ukraine/tree/main/data/bySystem/Totals/Full/2023-12-27.csv

Sorry I missed this early, I ran into this and fixed a month ago. I clicked on the links and they are now working, let me know if I should reopen.


JsonSelector breaks for MedianColor

{"id":"i_CuMWCPS6D3hnTmwA_1","feature":[100,-0.04735537,-0.010409119]}
starts with an Integer, so PrimitiveTypeProvider.fromObject tries to generate an Integer-Array. This throws a ClassCastException since you can't cast Doubles to Integers.
This is fixed for me (44f4a05aaf2da23338349b8947e9a28ce3da9f07) and JSON isn't used in production as far as I'm aware but I'll leave this here as a reference for maybe a future PR. (JSON has other issues which I'm fixing as-i-go on the evaluation branch)

Fixed by merging Pull Request #44


Corrected lapply comment in callbacks.R

The comment was made false by the removal of the pipes. What was originally the first lapply is now the second. I've done what I can on my own machine to confirm that the second call is indeed doing the job, although one could argue that it's actually the second and the third that are doing the job.
Given that we're using two lapplys for one job, I can't help but think that there is an mapply or Map way to do this better. However, I've tried my best and come up with nothing.

Codecov Report

Merging #6967 (eeb5fec) into master (f94f479) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #6967   +/-   ##
=======================================
  Coverage   82.09%   82.09%
=======================================
  Files          13       13
  Lines        3916     3916
=======================================
  Hits         3215     3215
  Misses        701      701

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 f94f479...eeb5fec. Read the comment docs.


Option to only show a class' short name instead of the full namespace and class

Is your feature request related to a problem? Please describe.
While recently setting up a new endpoint, I added a rule that uses a model to have it check that the name provided is unique in the table. Now one way to do this is to put Model::class instead of the actual table name as this allows it to automatically point to the correct table if that ever changed. Eg, 'name' => 'required|unique:'.Role::class.',name|max:255',
When you go to look at the endpoint LRD, this renders as unique:Silber\Bouncer\Database\Role,name | max:255 and while not horrible, it'd be nice if that full namespace wasn't shown.
Describe the solution you'd like
Instead of it showing unique:Silber\Bouncer\Database\Role,name | max:255, it would show as unique:Role, name | max:255
Describe alternatives you've considered
Using the table name instead of the class name

Doable, will reply soon after today’s baseball game.

ok this is possible, but do you really need this?
I could add it to settings as "Display options: short|long" or something and do everything on the frontend.

It would be beneficial as our api documentation will be available to 3rd party clients and there is no benefit for them to see the full class name in it.
Doing it on the frontend is not the most ideal, but at least it'd give an option that I could work with.

I also thought at first to do it on backend. I agree that doing it on front end is not ideal.
Just didn’t feel like cluttering the config file.
haven’t started on it yet so we can still decide

Feel free to reopen with a pull req.


perf: pager component display logical optimization

Related ISSUE
Type Of Change

[ ] 🐞 Bug fix (non-breaking change which fixes an issue)
[x] ✨ New feature (non-breaking change which adds functionality)
[x] 📝 Document (This change requires a documentation update)
[x] 🎨 Theme style (Theme style beautification)
[ ] ⚠  Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] 🔨 Workflow (Workflow changes)

Clear Describe
pager component display logical optimization
Description

according the habit to most people,
put button "previous" to left and the button "next" to right.
use grid style on Pager component.
add a little animation to these button.
post title inside the button limited to 2 lines.
add markdown sub & sup syntax support.
add the docs about.

Test Case
Scrrenshots
This is what the Pager component display in my blog. When the title of one of the buttons occupies two lines and the other only occupies one line, the display is abnormal.

and after will be like this

and below is  the screenshot of pc and pad

the two markdown file is for test.

@Renovamen 辛苦帮我review一下🍺


Bugfix for #5900

Related issue (if applicable): fixes #5900

Closing in favour of #5903

Reopening, as this fix is needed in addition to #5903

@turbokongen After #5903 , why is this needed? How can get_value return None after it has already returned non-None?

@andrey-git don't we return None after 5 retries ?

Worked for me, too. Thanks!


tour: Range and Close fails

Context: https://tour.golang.org/concurrency/4
Code:
package main

import (
	"fmt"
)

func fibonacci(n int, c chan int) {
	x, y := 0, 1
	for i := 0; i < n; i++ {
		c <- x
		x, y = y, x+y
	}
	close(c)
}

func main() {
	c := make(chan int, 10)
	go fibonacci(cap(c), c)
	for i := range c {
		fmt.Println(i)
	}
}

Output:
/usr/local/go/src/sync/pool.go:9:2: read /usr/local/go/src/runtime/symtab_test.go: read /usr/local/go/src/runtime/symtab_test.go: cannot allocate memory

The code works for me in the Tour and on localhost, it seems like a random server error.
I linked all the other related posts to #512 (there are many duplicates/reports)

Closing as a dup of  #541


DO NOT MERGE but please fix [GHSA-hp87-p4gw-j4gq] Unhandled exception in gopkg.in/yaml.v3

This is not an improvement PR, do NOT merge it
This is a request to fix the broken GHSA
As there seems to be no other way to deal with a totally broken GitHub CVE, I'm afraid I need to give notice via an improvement request in the hope something hooman notices how messed up this GitHub CVE is ... albeit admittedly based on upstream.

The affected versions data is wrong, as it does not concern the widely used yaml.v2. This now causes an enormous number of false positives. See https://github.com/go-yaml/yaml/issues/666#issuecomment-1133337993.
yaml.v3 has (not only) incompatible unmarshalling changes that can silently break a lot of applications trying to upgrade from yaml.v2 to yaml.v3. For instance, at least in some situations the keys of unmarshalled maps change from interface{} to string. This and other API changes require lots of downstream changes, albeit yaml.v2 isn't vulnerable to the DoS attack that makes v3 panic'king.

#350 should handle this. But I would ask the @advisory-database folx to update this ASAP as I have repos that are incorrectly making my security folks farklempt.

@dylan-tock thanks for the fix PR and sorry all for the error.
@thediveo you're also welcome to make an issue in this repo if a PR isn't what you want to do.


tooltip to show the time in another timezone

Would be useful if you could specify a format and locale string for the tooltip so that you can display the time in your local timezone but show the UTC time in a tooltip, or vice versa
It appears at the moment a tooltiip only works if in 'relative' mode

Will review a pull request with proposed functionality.
On Mon, 1 Aug 2016 at 14:03, Brent S.A. Cowgill<EMAIL_ADDRESS>wrote:

Would be useful if you could specify a format and locale string for the
tooltip so that you can display the time in your local timezone but show
the UTC time in a tooltip, or vice versa
It appears at the moment a tooltiip only works if in 'relative' mode
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/andreypopp/react-time/issues/30, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAB3gtYdV7gps0Xdz0tEoT3VP81GM_hdks5qbdJ7gaJpZM4JZeZ1
.


Latest Sundials does not work on Julia v1.11+

**Describe the bug 🐞**
The SuiteSparse version bump on Julia v1.11 is no longer compatible with Sundials_jll.  This breaks installation of the latest version of Sundials.jl on Julia master.
Expected behavior
A new version of Sundials_jll should be compiled that works with SuiteSparse v7.4.0.
Minimal Reproducible Example 👇
(tmp.jQGX3ZJqve) pkg> add<EMAIL_ADDRESS>   Resolving package versions...
ERROR: Unsatisfiable requirements detected for package SuiteSparse_jll [bea87d4a]:
 SuiteSparse_jll [bea87d4a] log:
 ├─possible versions are: 7.4.0 or uninstalled
 └─found to have no compatible versions left with Sundials_jll [fb77eaff]
   └─Sundials_jll [fb77eaff] log:
     ├─possible versions are: 3.1.1 - 6.6.0 or uninstalled
     └─restricted to versions 5.2.2 by an explicit requirement, leaving only versions: 5.2.2

Output of versioninfo()

julia> versioninfo()
Julia Version 1.11.0-DEV.1290
Commit 8c49e5e476* (2024-01-18 14:41 UTC)
Platform Info:
  OS: macOS (arm64-apple-darwin23.1.0)
  CPU: 10 × Apple M1 Pro
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, apple-m1)
Threads: 1 default, 0 interactive, 1 GC (on 8 virtual cores)

This fixes Sundials 5 to SuiteSparse 7.2, which can be relaxed: https://github.com/JuliaPackaging/Yggdrasil/blob/619f01b5b1bbba6dab633bea6eb8782934232102/S/Sundials/Sundials%405/build_tarballs.jl#L94

New Sundials_jll 5.2.3 is now published.


Update signature-pad.blade.php

Fix variable name for last PR to disable downloads
In the file
https://github.com/savannabits/filament-signature-pad/blob/main/src/Forms/Concerns/HasSignaturePadAttributes.php
The function name is isDisabledDownload not isDownloadDisabled

Addresses issue #9

Hi, can you please commit this fix to master and make a new release? The current release is actually broken now. Very useful component and easy to use!


2A03(NES APU) to AY8910

Functional requirements

Closed this issue because it is obvious that this is an unimplemented feature.


Draft: MCS support with Submariner

This PR is very stale. Closing. We can always re-open if we need to.


Linux terminal hangs after quit the GUI on Net5.0

Run UICatalog in WSL and quit. Try to type and it's hang and you have to close WSL. Do the same with the Example and you can type normally. May be it's related with Shutdown already related before.

I can't repro this either in Windows Terminal with Ubuntu or ConEmu.
What terminal are you using?

That said, almost nothing else works in WSL for me. Tab key works to move between panes, but arrows don't nav. Hmm....

Also not working with CMD and WSL2.

Example has same issue for me.

I use the default WSL2 terminal. I'm not sure what which open. How can I check that? I'm going test in VMWare to see if it's fail too. It's all messed up. With the Ubuntu 20.04 I seen the Example is fail too.

Ahhh...
If I start it from bash it works fine (and exits fine). but if I run it from pwsh most keystrokes don't work (but it exits fine).

Weird thing is, ocgv works fine everywhere!

The hangs after quit only happens with the Net5.0. The mouse issues only happens with Ubuntu which has the libncurses 6.2 version.

Writing reset or stty sane, even if I can't see it, the terminal returns to normal. The problem is to code this in ncurses.

I already discovered what is causing this. Are the StartReportingMouseMoves and StopReportingMouseMoves methods.

		public override void StartReportingMouseMoves ()
		{
			Console.Out.Write ("\x1b[?1003h");
			Console.Out.Flush ();
		}

		public override void StopReportingMouseMoves ()
		{
			Console.Out.Write ("\x1b[?1003l");
			Console.Out.Flush ();
		}

Commenting them the behavior issue stops but the problem it's the mouse movement also stops too.

I won't waste any more time on this problem because it only happens with Net5.0. With netcoreapp3.1 this problem does not happen, so until the final version of Net5.0 this problem can be corrected.

The problem still exists. I just tested with Net5.0 and gui.cs 1.0.0-pre.6 .

Yes indeed. But if you test with the NetDriver with the Application.UseSystemConsole = true the hangs don't happens, neither on Windows, WSL or Linux.

I confirm that it does not hang any more. However, after I close the application and I use a mouse button in the terminal I get strange text like:
�,`�(`�(a�(a�(a�(a�(a�(`�-`�-`�.`�.a�.a�.a�.`�.`�.`�.`�.a�.a�.a�.a�.a�.a
on the terminal.
My environment is:  Kubuntu 20.04, Konsole Version 19.12.3

Ah I see. I am using CSI in the Unix for resizing and perhaps it is not clearing on exit.

Is this another bug or related? Shall I open another issue?

No, it is still under development in this PR #1021.

I just did a dotnet build -c Release && ./UICatalog/bin/Release/net5.0/UICatalog of 62b5800c84bb5b22935f2e63dc75db1b47bbadae on Ubuntu 20.04 gnome-terminal and after quitting the application, the terminal is fubar.

Comment the Application.HeightAsBuffer = true; or set Application.HeightAsBuffer = false; and see the difference, please. Thanks.

Tried both, but it did not fix the problem.

Can you post a print screen, please? Thanks.

Oh, I'm now noticing that I didn't explain the problem before... sorry! After the application quits, when I press the left (or right) cursor key, the cursor caret moves a whole word at a time instead of a character at a time. It seems the ctrl key is stuck. Hummm, I'm also noticing this after running the dotnet command... maybe this is a problem with the dotnet runtime? anyhow, whatever it is, its messing the terminal.

Ah. Ok. The terminal is not restoring properly. It is a issue not solved yet.

To bypass this without close the terminal, I do:
Ctrl+C
reset
With Application.UseSystemConsole, running with the -usc argument that behaviour don't happens.

tagging myself, so I can review later
@migueldeicaza

I can no longer repro this in WSL (Debian) from main.
I can no longer repro this in WSL (Ubuntu 20.04) from main.
Anyone else?

On WSL (Ubuntu 20.04.2 LTS) and on a Linux (VirtualBox) still happens with Curses. I have to type reset to restore.
With the NetDriver there is no hang.
Tested with the latest main.

On WSL (Ubuntu 20.04.2 LTS) and on a Linux (VirtualBox) still happens with Curses. I have to type reset to restore.
With the NetDriver there is no hang.
Tested with the latest main.

Can you repro it with WSL as well?

Yes @tig

I wonder what's different on my machine.

Maybe your Linux version (Debian) but I doubt. It's not affecting only to me, because others are already say the same. It's only happens using he CursesDriver.
I already tried to resolve but without success. I only only run through SSH with remote access to shared folders. I don't build inside Linux.

I can also reproduce this on linux with both alacritty and xterm. After quitting the app, the terminal keeps adding characters with just the mouse moving over it. Even in the app the mouse behaves wrong - just moving it seems to be reporting mouse clicks to the app. Can I help somehow with this issue?

Hi, yes, I know. Although stopping mouse repporting at exit, the terminal continues to report these movements and hangs the terminal. I think the problem is not from .NET because with NetDriver this does not happen. If you can help, I'll thank you very much, you do not even have to ask :-)

I'll try to take a look sometime this week, we'll see how that goes :)

"this week" became "next week" :)
I don't have much success so far, the mouse situation seems to be putting ncurses in a weird state - if I click with the left mouse button, then mouse movement starts reporting left mouse clicks, if I use the mouse wheel, then mouse movement starts reporting mouse wheel events, but much faster than before.
I tried to regenerate the constants.cs file for ncurses with the original code from mono-ncurses, the differences mostly weren't interesting except for maybe Button4 codes (they are different) and AllEvents - it generated 0xfffffff but there's 0x7ffffff in code. I changed it, but I didn't notice any difference in functionality.
On the topic of interesting observations - the ncurses library gets loaded dynamically twice. I'm not sure if this causes any side effects yet, this might be the next thing I verify.
Long story short I'm worried that the native binding isn't completely correct, but I haven't found what exactly is wrong (yet).

I finally fixed it, I hope :-) #931

Leaving open until we verify.

For me, quitting the UICatalog now works a lot better, but still not completely correctly. After exiting, the terminal behaves as if only 25 lines of text could be visible on the screen, which is much less that is actually available. I can reproduce this in both alacritty and xterm. To maybe visualize better:
Normal terminal in the gui.cs repo runing ll three times:

The same situation right after quitting the UICatalog:

The output just scrolls up as if it didn't have more lines available. Resizing the terminal fixes this immediately.
Also, it's starting to look like my problem with crazy mouse behavior is a different issue.

Maybe is due to this:
Console.Out.Write ("\x1b[1;25r");
Can you please check it?

Commenting out this and the flush right after seems to fix it :D
The prompt after that is at the bottom at the terminal, but this is a nitpick:

For comparison, this is what it looks like after I exit neovim:

Not sure if this is worth doing, though.

Try commenting all this:
Console.Out.Write ("\x1b[2J");
Console.Out.Flush ();
Console.Out.Write ("\x1b[1;25r");
Console.Out.Flush ();

Perfect:

Ok thanks. I'll send a PR with that lines commented.

This is great sluthing folks!
This stuff is black-art level stuff. The more documentation on why these changes work, the better.

I added this to the code:
// I'm commenting this because was used in a trying to fix the Linux hanging and forgot to exclude it.
// Clear and reset entire screen.
//Console.Out.Write ("\x1b[2J");
//Console.Out.Flush ();

// Reports current cursor line and column.
//Console.Out.Write ("\x1b[1;25r");
//Console.Out.Flush ();


SSR not working on the notFound route

Hello,
SSR seems to not work on the notFound route - I see content but It's not prerendered in html.
With normal routes ssr works great, but It doesn't work with notFound route.
Any workarounds?
FlowRouter.route('/hello', {
    action: function (params, queryParams) {
        //SSR works here
        ReactLayout.render(MainLayout, {content: <Hello name="World"/>});
    }
});

FlowRouter.notFound = {
    action: function () {
        //SSR doesn't works here
        ReactLayout.render(MainLayout, {content: <Hello name="404"/>});
    }
};

Yep. This is not implemented yet. We are looking at how to do this properly.

+1


Introduce rfc-0005-support-composing-supply-chains

Readable

I wonder if we could combine this with more intelligent (perhaps field-based?) matching between Workloads and SupplyChains to reduce or eliminate the usage of YTT.
@slevine regardless of which solution we end up using for this (There's another proposal on the table) this is a strong desire of mine. We still need looping which we can roll into our standard templates eventually and continue to support with ytt for now, but when we do get there, we have a simple way to deterministically surface exactly which parameters and inputs are used by the template. We can warn supply chain authors when they fail to provide a required input, and workload's and deliverables can warn when required params are missed.

I've put together a collection of previously discussed alternate syntaxes for this RFC
Typed supply chains (ClusterSourceSupplyChain, ClusterImageSupplyChain, ClusterConfigSupplyChain):
https://gist.github.com/jwntrs/9957c0e99851428b4bf52510d5902285
Allow inlining snippets (which also needs some form of typing):
https://gist.github.com/jwntrs/5cb67f37ed9963cb8381cdcc90bc4e00
Allow our existing templates to enumerate resources:
https://gist.github.com/jwntrs/1df402ccc2202d9e7eb39f97f502d2bd
Allow options to have resources:
https://gist.github.com/jwntrs/bf4f1081e3664615ed640dd90e41a981

Fundamental design issues?

Not so much an issue but an open question around the shape of snippets as started by @jwntrs, and then continued by me.


Bootstrap Darkroom - No Titles and Descriptions in PhotoSwipe Diashow

I use the Bootstrap Darkroom with PhotoSwipe Diashow
When I look at an separate photo with PhotoSwipe, there is just the photo and at the bottom of the site it shows the filename.
I think this behavior has changed and I think that the title and the description of the photo was visible in earlier versions of bootstrap darkroom.
It would be nice to fix this, that the title and the description of the photo is shown when using PhotoSwipe Diashow.

You can try to replace the file:
themes/bootstrap_darkroom/template/_photoswipe_js.tpl
With my customized:  https://www.arkivfoto.net/_photoswipe_js.txt
Rename to .tpl

Thanks RStoroy!
It works by changing the themecontroller.php, you mentioned in the Piwigo Forum.
@plegall
Please can this change be implented in the upcoming version of Bootstrap Darkroom in themecontroller.php.
I think this helpful for every user.


Update instructions for local preview and Netlify preview.

Preview: https://deploy-preview-8692--kubernetes-io-master-staging.netlify.com/docs/home/contribute/create-pull-request/

/assign @mistyhacks


Add error boundary for lacking database support on match pages

When visiting a match page in a private window in Firefox/Safari, users see an empty page with no information whatsoever.
Compare to the main page, which has the following database support detection message:

Addressed in 22a3298780c2f2a79ac1017c27f169d8423e1df5.


Can I build and run windows platform with device or simulator flag in mac os?

I want to dev windows mobile in mac os. So I create windows platform with command 'cordova platform add windows', but when I try to build or run with  command 'cordova build/run windows', It will failed with error 'No valid MSBuild was detected for the selected target.'
Visual studio 2017 for mac is installed and added dotnet and msbuild to environment path.
Cordova (Cordova CLI) : 8.0.0
Cordova Platforms : ios 4.5.4 windows 6.0.0
OS: macOS High Sierra
Xcode : Xcode 9.4.1 Build version 9F2000

Uh, I don't think anyone ever tried that.
You might want to try the environment variables mentioned in this blog post: https://cordova.apache.org/announcements/2018/02/27/cordova-windows-6.0.0.html

@janpio
I add MSBUILDDIR variable and try to build again. Failed with error "CordovaError: No valid MSBuild was detected for the selected target: Windows SDK not found. Ensure that you have installed Windows 10.0 SDK along with Visual Studio or install Windows 10.0 SDK separately from https://dev.windows.com/en-us/downloads".
Is that means windows 10.0 SDK must run with Windows 10 OS?

Very much possible, yes. I messed with that code (finding MSBuild) some time ago, and I am not sure if it was actually made for a non Windows environment. You will probably have to look at the code to figure that out (Best use the error messages you are getting to find the correct code parts).

Reading this again later: No, this just means that you have to have the Windows 10.0 SDK installed. It's very possible that this only works on Windows of course.

I checked: https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk makes it clear that Windows 10 SDK can only be installed on Windows 10, and not on macOS or Linux.
Thus the response to your initial question is unfortunately: No, building, running and emulating a Cordova Windows app will only work on Windows.


[YBUG.IO] hello. i am here before 8 ian....

hello. i am here before 8 ian. and i can t deposit or trade. i write many time to dragonly but no help.. that is bad..
Source url: https://live.sovryn.app/wallet
Reported by<EMAIL_ADDRESS>Reported at: 14 Feb at 21:58 UTC
Location: RO
Browser: Chrome 88.0.4324.150
OS: Windows 10.0
Screen: 1920x1080
Viewport: 1920x969
Screenshot:

For more details please visit report page on Ybug:
https://ybug.io/dashboard/reports/detail/m4hsb9zya93cxp7fjrpm

Related to #384


Can't get controlled sort to work in custom header

(english is not my main language so sorry if there are any errors)
Hello there! I need some help, I'm trying to add a DataTable with custom header and controlled sorting based on state and I'm struggling really hard, can someone help me?
My page looks like this:
function PainelDeControleAtendimentos() {
    const initialSort = { prop: 'abertos_ontem_sum', order: 'asc' }

    const [ordenacao, setOrdenacao] = useState(initialSort)

    const headers = [
        {
            title: unidadeSelecionada ? 'Agente' : 'Unidade',
            prop: unidadeSelecionada ? 'producao_agente' : 'producao_unidade',
            isFilterable: true,
        },
        { title: 'Ontem', prop: 'abertos_ontem_sum', isSortable: true },
        { title: 'Hoje', prop: 'abertos_hoje_sum', isSortable: true },
        { title: 'Total', prop: 'abertos_total_sum', isSortable: true },
        { title: 'Agendados', prop: 'agendados_sum', isSortable: true },
        { title: 'Ontem', prop: 'tabulados_ontem_sum', isSortable: true },
        { title: 'Hoje', prop: 'tabulados_hoje_sum', isSortable: true },
    ]

   const handleChangeSort = (sort) => {
        if (!sort)
            return

        if (ordenacao.prop === sort.prop) {
            setOrdenacao((prev) => ({ prop: sort.prop, order: prev.order === 'asc' ? 'desc' : 'asc' }))
        } else {
            setOrdenacao(sort)
        }
    }

    return (
  <DatatableWrapper
    body={dadosTabela}
    headers={headers}
    paginationOptionsProps={{
      initialState: {
        rowsPerPage: 10,
      },
    }}
    sortProps={{
      initialState: initialSort,
    }}
  >

      <TableHead
        ordenacaoAtual={ordenacao}
        handleChangeSort={handleChangeSort}
        unidadeSelecionada={unidadeSelecionada}
      />

      <TableHeader
        controlledProps={{
          sortState: {
            prop: ordenacao.prop,
            order: ordenacao.order,
          },
          onSortChange: handleChangeSort,
        }}
      />

      <TableBody>
        {(rows) =>
          rows.map((row, index) => (
            <tr key={`${row.id}-${index}`}>

                {!unidadeSelecionada ? (
                  <Tooltip value="Clique para filtrar">
                      <Button
                        variant="link"
                        className="p-0 text-start"
                        onClick={() =>
                          handleBranchNameClick(row.producao_unidade)
                        }
                      >
                        {row.producao_unidade}
                      </Button>
                  </Tooltip>
                ) : (
                  {row.producao_agente}
                )}

              {row?.abertos_ontem_sum || 0}
              {row?.abertos_hoje_sum || 0}
              {row?.abertos_total_sum || 0}
              {row?.agendados_sum || 0}
              {row?.tabulados_ontem_sum || 0}
              {row?.tabulados_hoje_sum || 0}

          ))
        }
        </TableBody>

    </DatatableWrapper>
  );

}

(TableHead component is my own custom component, that handles sort change and TableHeader is react-bs-datatable's component, that I'm currently hiding using CSS)
Is there an easier to create a custom table header component or maybe I'm doing something wrong with my controlled sorting? I need some help fixing it one way or the other

hi @devMagno, thanks for creating an understandable issue! At the moment, unfortunately when we want to make a controlled table, we have to define like, everything. So we can't just define the sort state only, but we have to define sort state, filter state, etc.
Example sandbox here: https://codesandbox.io/s/clever-danilo-3dfdvl?file=/src/App.tsx.
However, making only certain things controlled perhaps is a better way to go. I'll see what I can do to tweak it. Meanwhile, would the temporary solution above sufficient for you?

hi @devMagno, after contemplating, I don't think I want to support partial controlled table, because the nature of controlled tables are that, consumers are in control of the table and as such, if we are allowing partially controlled table, it may lead to some edge cases (and more complexity in the codebase).
What I suggest is, keep using uncontrolled table, but take advantage of useDatatableWrapper hook. Something like this sandbox: https://codesandbox.io/s/crazy-lucy-2fw4t2?file=/src/App.tsx.
function SemiControlledTableSetter({ sortState }: { sortState: SortType }) {
  const { onSortChange } = useDatatableWrapper();
  useEffect(() => {
    onSortChange(sortState);
  }, [onSortChange, sortState]);

  return null;
}

<DatatableWrapper
  body={STORY_BODY}
  headers={STORY_HEADERS}
  paginationOptionsProps={{
    initialState: {
      rowsPerPage: 10,
      options: [5, 10, 15, 20]
    }
  }}
>
  <SemiControlledTableSetter sortState={sortState} />

  {/* ... */}
</DatatableWrapper>

So the way it works above is that, we are taking advantage of the <DatatableWrapper> being a React.Context. Inside SemiControlledTableSetter, we accept the prop sortState, in which we will propagate the sort state inside the table internals. That way, we can somewhat "control" the table from outside, but the rest of the mechanism are still using the internals for uncontrolled table. Hence, we can achieve partially controlled table.
Let me know if that helps. Thanks!

Hi @imballinst, thanks for the quick reply!
I'll try the useDatatableWrapper and I'll let you know if it works! Thank you!

@imballinst
It worked exactly as I expected, thanks!!

Awesome, happy to help @devMagno! I'll close this issue then, let me know if there are other things that I can help with 🙇♂


Get-ADReplicationAttributeMetadata - invalid character error

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
The cmdlet returns error:  "Get-ADReplicationAttributeMetadata: '►', hexadecimal value 0x10, is an invalid character." (or it shows another pictograms between ' ') for some accounts. Tested in Powershell 7.3.9 or 7.4.0
In Powershell 5.1: All accounts work fine
Expected behavior
Get-ADReplicationAttributeMetadata -Object "CN=xx,OU=xx,DC=xx,DC=xx" -Server dc1.xx.xx
AttributeName                                    : msRTCSIP-OptionFlags
AttributeValue                                   :
FirstOriginatingCreateTime                       :
IsLinkValue                                      : False
LastOriginatingChangeDirectoryServerIdentity     :
LastOriginatingChangeDirectoryServerInvocationId : bbd...
LastOriginatingChangeTime                        : 01.12.2020 8:27:40
LastOriginatingChangeUsn                         : 70482120
LastOriginatingDeleteTime                        :
LocalChangeUsn                                   : 46923
Object                                           : CN=xx,OU=xx,DC=xx,DC=xx
...

Actual behavior
Get-ADReplicationAttributeMetadata -Object "CN=xx,OU=xx,DC=xx,DC=xx" -Server dc1.xx.xx
Get-ADReplicationAttributeMetadata: '►', hexadecimal value 0x10, is an invalid character.

Error details
Exception             :
    Type           : Microsoft.ActiveDirectory.Management.ADException
    TargetSite     :
        Name          : CommonCatchAll
        DeclaringType : Microsoft.ActiveDirectory.Management.AdwsConnection, Microsoft.ActiveDirectory.Management, Vers
ion=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=31bf3856ad364e35
        MemberType    : Method
        Module        : Microsoft.ActiveDirectory.Management.dll
    Message        : '►', hexadecimal value 0x10, is an invalid character.
    InnerException :
        Type       : System.ArgumentException
        Message    : '►', hexadecimal value 0x10, is an invalid character.
        TargetSite :
            Name          : WriteElementTextBlock
            DeclaringType : System.Xml.XmlEncodedRawTextWriter, System.Private.Xml, Version=<IP_ADDRESS>, Culture=neutral, P
ublicKeyToken=cc7b13ffcd2ddd51
            MemberType    : Method
            Module        : System.Private.Xml.dll
        Source     : System.Private.Xml
        HResult    : -2147024809
        StackTrace :
   at System.Xml.XmlEncodedRawTextWriter.WriteElementTextBlock(Char* pSrc, Char* pSrcEnd)
   at System.Xml.XmlEncodedRawTextWriter.WriteString(String text)
   at System.Xml.XmlWellFormedWriter.WriteString(String text)
   at System.Xml.XmlDictionaryWriter.WriteTextNode(XmlDictionaryReader reader, Boolean isAttribute)
   at System.Xml.XmlDictionaryWriter.WriteNode(XmlDictionaryReader reader, Boolean defattr)
   at System.ServiceModel.Channels.BufferedMessage.OnBodyToString(XmlDictionaryWriter writer)
   at System.ServiceModel.Channels.Message.ToString(XmlDictionaryWriter writer)
   at System.ServiceModel.Channels.Message.ToString()
   at Microsoft.ActiveDirectory.Management.AdwsConnection.SearchAnObject(ADSearchRequest request)
    Source         : Microsoft.ActiveDirectory.Management
    HResult        : -2146233088
    StackTrace     :
   at Microsoft.ActiveDirectory.Management.AdwsConnection.CommonCatchAll(Exception exception)
   at Microsoft.ActiveDirectory.Management.AdwsConnection.SearchAnObject(ADSearchRequest request)
   at Microsoft.ActiveDirectory.Management.AdwsConnection.Search(ADSearchRequest request)
   at Microsoft.ActiveDirectory.Management.ADWebServiceStoreAccess.Microsoft.ActiveDirectory.Management.IADSyncOperatio
ns.Search(ADSessionHandle handle, ADSearchRequest request)
   at Microsoft.ActiveDirectory.Management.ADObjectSearcher.PagedSearch(Object& pageCookie, Boolean& hasSizeLimitExceed
ed, Int32 pageSize, Int32 sizeLimit)
   at Microsoft.ActiveDirectory.Management.ADObjectSearchResultEnumerator.System.Collections.IEnumerator.MoveNext()
   at Microsoft.ActiveDirectory.Management.ADObjectSearcher.FindOne(Boolean& foundMoreThanOneResult)
   at Microsoft.ActiveDirectory.Management.Commands.ADFactoryUtil.GetObjectFromIdentitySearcher(ADObjectSearcher search
er, ADEntity identityObj, String searchRoot, AttributeSetRequest attrs, CmdletSessionInfo cmdletSessionInfo, String[]&
warningMessages)
   at Microsoft.ActiveDirectory.Management.Commands.ADFactory`1.GetExtendedObjectFromIdentity(T identityObj, String ide
ntityQueryPath, ICollection`1 propertiesToFetch, Boolean showDeleted, Boolean showLinkTtl)
   at Microsoft.ActiveDirectory.Management.Commands.ADFactory`1.GetExtendedObjectFromIdentity(T identityObj, String ide
ntityQueryPath, ICollection`1 propertiesToFetch, Boolean showDeleted)
   at Microsoft.ActiveDirectory.Management.Commands.GetADReplicationAttributeMetadata.GetADReplicationAttributeMetadata
ProcessCSRoutine()
   at Microsoft.ActiveDirectory.Management.CmdletSubroutinePipeline.Invoke()
   at Microsoft.ActiveDirectory.Management.Commands.ADCmdletBase`1.ProcessRecord()
CategoryInfo          : NotSpecified: (:) [Get-ADReplicationAttributeMetadata], ADException
FullyQualifiedErrorId : ActiveDirectoryServer:0,Microsoft.ActiveDirectory.Management.Commands.GetADReplicationAttribute
Metadata
InvocationInfo        :
    MyCommand        : Get-ADReplicationAttributeMetadata
    ScriptLineNumber : 1
    OffsetInLine     : 1
    HistoryId        : 3
    Line             : Get-ADReplicationAttributeMetadata -Object "CN=xx,OU=xx,DC=xx,DC=xx" -Server dc1.xx.xx
    Statement        : Get-ADReplicationAttributeMetadata -Object "CN=xx,OU=xx,DC=xx,DC=xx" -Server dc1.xx.xx
    PositionMessage  : At line:1 char:1
                       + Get-ADReplicationAttributeMetadata -Object "CN=xx,OU=xx …
                       + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    InvocationName   : Get-ADReplicationAttributeMetadata
    CommandOrigin    : Internal
ScriptStackTrace      : at <ScriptBlock>, <No file>: line 1

Environment data
Name                           Value
----                           -----
PSVersion                      7.4.0
PSEdition                      Core
GitCommitId                    7.4.0
OS                             Microsoft Windows 10.0.20348
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Visuals
No response

What form is the attribute it is having problems with?
ADReplicationAttributeMetadata.AttributeValue
is an object, that does not mean there is a correct automatic to string representation of the value.

It was tested with AD Users only, and for the object parameter was used Distinguished Name (DN) and GUID. Used DN or GUID of the same user returned me the same issue.
In the Expected behavior is reported, what I obtain for the same tested user in Powershell 5.1 - running on the same server like pwsh7. So there must be some difference in pwsh7.
Thanks

Are you able to retrieve the value and assign it to a variable even if you can't display it?
If you can get it as a variable can you then see what type of data it actually is (eg is it an array of bytes or shorts )?

Do you mean this infos?
PS C:\Program Files\PowerShell\7> $Vondrackova = Get-ADUser "CN=xx,OU=xx,DC=xx,DC=xx" -Server dc1.xx.xx
PS C:\Program Files\PowerShell\7> $Vondrackova.GetType()
IsPublic IsSerial Name                                     BaseType

True     False    ADUser                                   Microsoft.ActiveDirectory.Management.ADAccount
PS C:\Program Files\PowerShell\7> $Vondrackova.DistinguishedName.GetType()
IsPublic IsSerial Name                                     BaseType

True     True     String                                   System.Object
PS C:\Program Files\PowerShell\7> $Vondrackova.ObjectGUID.GetType()
IsPublic IsSerial Name                                     BaseType

True     True     Guid                                     System.ValueType
PS C:\Program Files\PowerShell\7> Get-ADReplicationAttributeMetadata -Object $Vondrackova.DistinguishedName -Server dc1.xx.xx
Get-ADReplicationAttributeMetadata: '►', hexadecimal value 0x10, is an invalid character.
PS C:\Program Files\PowerShell\7> Get-ADReplicationAttributeMetadata -Object $Vondrackova.ObjectGUID -Server dc1.xx.xx
Get-ADReplicationAttributeMetadata: '►', hexadecimal value 0x10, is an invalid character.

I am not familiar with AD but I might be able to help you get access to the data if we know what types they are that are causing problems. Yes there are huge differences between PowerShell Desktop and PowerShell Core
That is good!
If the DistinguishedName is a string, then it should already be a string so no conversion needed.
I am inferring that the ObjectGUID is really a GUID which is a binary type. While there is a standard conversion from GUID to string it might not be kicking in. Does the GUID have the hex digits "10" in it, as that is what the error messaging was complaining about.
Can you try
$Vondrackova.ObjectGUID.ToString()

To see if it can convert itself without assistance?

Yes, the conversion is working fine and it returns correct string same as string showed in AD User console - without any error.
And the user objectGUID does not contain the hex digit "10" - verified in AD User console also.

That is progress, but as far as I can really help. Has this ever worked on PowerShell 7 or is this the first time you tried?
With what you now know, do you have access to all the data fields you need?

Can you narrow down the specific fields and what data is causing the problem?
If the fields contain valid data and are being used elsewhere it sounds like a translation/conversion problem. Is the problem only when you try and display them? Can you filter out those fields before display if they are not needed?


Ariel updated for Sierra 10.12.6??

Have not been able to get it to run for a while, and I now have a new iMac 21.5 in 2017.  I used the migration method to move everything to the new iMac, and the Ariel option appears in the screen saver list in preferences. But it doesn't work  - screen just goes dark.
This is my first time to write an issue here, so maybe it has been previously addressed.

Agreed. Doesn't work on Sierra 10.12.6 :(

Aerial works fine on 10.2.6.
@andrewjohnstrong If you're getting an error saying that it needs to be updated, then that a longstanding bug in macOS. Select Aerial in System Preferences, close System Preferences and reopen it. Aerial should now be showing the preview okay.
@jeb605 Please delete Aerial from your Mac. You might have multiple copies. Check /Library/Screen Savers and /Users/YOURUSERNAME/Library/Screen Savers. And install the latest version from scratch from here. Within the preferences there are options to cache the videos. Cached the videos and then see if it works. If it doesn't please update this issue with what happens.

I see a black screen on preview sorry.

@andrewjohnstrong Do you have the latest version installed? Do you have the videos cached?

Oddly it now appears to be working :)
On Mon, Sep 11, 2017 at 8:51 PM, Alistair McMillan<EMAIL_ADDRESS>
wrote:

@andrewjohnstrong https://github.com/andrewjohnstrong Do you have the
latest version installed? Do you have the videos cached?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/JohnCoates/Aerial/issues/376#issuecomment-328493853,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAn9qIPREkfQp9o0hIxmialwqiPqG5U8ks5shRCigaJpZM4PQdnM
.

@andrewjohnstrong If the videos aren't cached, then they'll stream from Apple's servers through their CDN partner. That can be affected in a number of ways by your network. For example some proxy servers stop people accessing the videos.
If you have the latest version installed you can cache all the videos when you have a good connection, avoiding these problems.

Thanks Alistair :) How do you cache the videos?
On Tue, Sep 12, 2017 at 6:25 AM, Alistair McMillan<EMAIL_ADDRESS>
wrote:

@andrewjohnstrong https://github.com/andrewjohnstrong If the videos
aren't cached, then they'll stream from Apple's servers through their CDN
partner. That can be affected in a number of ways by your network. For
example some proxy servers stop people accessing the videos.
If you have the latest version installed you can cache all the videos when
you have a good connection, avoiding these problems.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/JohnCoates/Aerial/issues/376#issuecomment-328648136,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAn9qCOOBbla8x8i3sxlyytgsUOEeGe_ks5shZc5gaJpZM4PQdnM
.

Ignore that! Found the settings :)
On Tue, Sep 12, 2017 at 6:33 AM, Andrew Strong<EMAIL_ADDRESS>wrote:

Thanks Alistair :) How do you cache the videos?
On Tue, Sep 12, 2017 at 6:25 AM, Alistair McMillan <
<EMAIL_ADDRESS>wrote:

@andrewjohnstrong https://github.com/andrewjohnstrong If the videos
aren't cached, then they'll stream from Apple's servers through their CDN
partner. That can be affected in a number of ways by your network. For
example some proxy servers stop people accessing the videos.
If you have the latest version installed you can cache all the videos
when you have a good connection, avoiding these problems.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/JohnCoates/Aerial/issues/376#issuecomment-328648136,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAn9qCOOBbla8x8i3sxlyytgsUOEeGe_ks5shZc5gaJpZM4PQdnM
.

I’m also getting the blank dark screen in preview.  I checked the Cache screen- is this the way it should be?
And in that screen above, when I click on the Download Now button, the words Loading JSON appear but nothing seems to happen - total progress and Current video progress bars do not grow.
ALSO, I noticed in library that Apple’s own screen saver has some photos in the Folder named 2-Aerial that are named Aerial01.jpg  through Aerial09.jpg.
Could this naming method be causing a problem.
thanks.

On Sep 9, 2017, at 11:38 AM, Alistair McMillan<EMAIL_ADDRESS>wrote:
Aerial works fine on 10.2.6.
@andrewjohnstrong https://github.com/andrewjohnstrong If you're getting an error saying that it needs to be updated, then that a longstanding bug in macOS. Select Aerial in System Preferences, close System Preferences and reopen it. Aerial should now be showing the preview okay.
@jeb605 https://github.com/jeb605 Please delete Aerial from your Mac. You might have multiple copies. Check /Library/Screen Savers and /Users/YOURUSERNAME/Library/Screen Savers. And install the latest version from scratch from here https://github.com/JohnCoates/Aerial/releases. Within the preferences there are options to cache the videos. Cached the videos and then see if it works. If it doesn't please update this issue with what happens.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/JohnCoates/Aerial/issues/376#issuecomment-328284780, or mute the thread https://github.com/notifications/unsubscribe-auth/AeRvacaIRuYi1bLK7y_wOEvRJ_Vq5c6yks5sgrEEgaJpZM4PQdnM.

@jeb605 It's nothing to do with the Aerial photos.
Most likely you are behind a proxy or firewall that is blocking you. If you're using a laptop, please try downloading the videos on another network.

It now works.  My son showed me that in  our Xfinity ISP router protected browsing was on, and then  how to turn it off.  Then it worked.  Thanks for the help.

Glad to hear that you got it working. :)


Fix incorrect Installed_Apps issue

I previously added an import for Crypto_App which was not suppose to be added. Also ran the migrations for login model.


Document valid characters for logoFile in neoforge.mods.toml

The documentation for logoFile in neoforge.mods.toml on the Mod Files page makes no mention of the valid characters for logoFile. I was told on Discord the valid characters are lowercase letters, digits, dashes, periods, and underscores. Since uppercase letters were supported in Forge (in my experience), it may be beneficial to note what they are.
If you attempt to use uppercase letters in logoFile, Minecraft will crash when viewing the mod information with an error similar to:
java.lang.IllegalArgumentException: Illegal segment Mod_Logo.png in path [Mod_Logo.png]
    at TRANSFORMER/minecraft@1.20.6/net.minecraft.FileUtil.validatePath(FileUtil.java:175) ~[client-1.20.6-20240429.153634-srg.jar%23172!/:?] {re:classloading}
    at TRANSFORMER/minecraft@1.20.6/net.minecraft.server.packs.PathPackResources.getRootResource(PathPackResources.java:43) ~[client-1.20.6-20240429.153634-srg.jar%23172!/:?] {re:classloading}
    ...

This was tested in NeoForge 20.6.119 and 20.4.237.

The reason uppercase characters worked in the past was because NeoForge used to have its own class net.neoforged.neoforge.resource.PathPackResources which powered the resource-handling for mod JARs, and was consequently used when getting the logo file from the mod JAR as a root resources.
However in #284 / 1.20.2, we removed that class in favor of vanilla's own implementation in net.minecraft.server.packs.PathPackResources. In doing so, we inherited the restrictions of the vanilla class, which includes enforcing essentially the same restrictions on regular resources (accessed by resource location) on root resources (accessed by string paths) -- only lowercase letters, digits, underscore, periods, and hyphens.

Closed by #178


Failed to parse JSON

ERROR: Failed to parse JSON "Expecting value: line 1 column 1 (char 0)" while requesting "https://twitter.com/i/search/timeline?f=tweets&vertical=default&include_available_features=1&include_entities=1&reset_error_state=false&src=typd&max_position=TWEET-425002525969121280-427502182905434112&q=%23fracro%20since%3A2013-08-11%20until%3A2014-03-24&l=None"
Traceback (most recent call last):
  File "c:\users\gopro~1\docume~1\proget~2\sms-us~1\venv\lib\site-packages\twitterscraper\query.py", line 53, in query_single_page
	json_resp = json.loads(response.text)
  File "C:\Users\gopro_015\AppData\Local\Programs\Python\Python36\Lib\json\__init__.py", line 354, in loads
	return _default_decoder.decode(s)
  File "C:\Users\gopro_015\AppData\Local\Programs\Python\Python36\Lib\json\decoder.py", line 339, in decode
	obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Users\gopro_015\AppData\Local\Programs\Python\Python36\Lib\json\decoder.py", line 357, in raw_decode
	raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

	Operating System
		Windows 10 Pro 64-bit
	CPU
		Intel Core i5 7200U @ 2.50GHz	55 °C
		Kaby Lake-U/Y 14nm Technology
	RAM
		8,00GB Single-Channel Unknown @ 1064MHz (15-15-15-35)
	Motherboard
		Dell Inc. 0M4RDT (U3E1)
	Graphics
		Generic PnP Monitor (1920x1080@60Hz)
		S24D330 (1920x1080@59Hz)
		Intel HD Graphics 620 (Dell)
	Storage
		238GB SanDisk X400 2.5 7MM 256GB (SATA (SSD))	34 °C
	Optical Drives
		No optical disk drives detected
	Audio
		Realtek Audio

Python 3.6

Can you please try 0.8.0? I believe I have removed the headers which caused the JSONDecodeError

I've updated but it's not clear yet if the bug is fixed due to #138

It appears it's working now, I'm not getting any errors


There are problems plotting the texture picture in android

1、when i set the android Acitivty theme such like this: android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"
2、i get GLSurfaceView and setView TRANSLUCENT
config.r = config.g = config.b = config.a = 8;
View v=initializeForView(mListem,config);
if (v instanceof GLSurfaceView) {
GLSurfaceView glView = (GLSurfaceView) v;
glView.getHolder().setFormat(PixelFormat.TRANSLUCENT);
//glView.setZOrderMediaOverlay(true);
//glView.setZOrderOnTop(true);
}
3、When I draw a texture with TRANSLUCENT png , there will be a problem.

For example: see the desktop icon

See: https://github.com/libgdx/libgdx/wiki/Issue-Tracker. Please use the forum or irc for personal support requests.
If you do think that there is an issue with libgdx, then please provide the information required as you were requested when opening this issue, see also: https://github.com/libgdx/libgdx/wiki/More-Info.


How to install Intellitest?

There are no details of how to install/enable intellitest, especially in Visual Studio 2019 Enterprise.

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

ID: 90af3c96-5c6f-3cb6-db38-dc33de91755f
Version Independent ID: 0bdf2b57-b748-b4e9-3c57-c7a2dda4cc1d
Content: Overview - Visual Studio
Content Source: docs/test/intellitest-manual/index.md
Product: visual-studio-windows
Technology: vs-ide-test
GitHub Login: @Mikejo5000
Microsoft Alias: mikejo

@samsmithnz -- Sam, thank you for your question and feedback.  Please consider these resources:

Visual Studio on Q&A
Visual Studio MSDN Forum
Stack Overflow
Reddit

@Mikejo5000 -- Mike, please look into this issue.

And visual studio 2022... but I guess this is stale now. :/

@samsmithnz Sorry for the very slow response. I see the test options in Visual Studio Enterprise and a .NET Framework project. The note in the Overview page indicates that both are required. I know you have Enterprise. What kind of app are you creating?

I think I was looking for help in a .NET Core/5/6 project - and I missed the .NET Framework requirement. Sounds like it's not coming to Core? I'm going to close.


Revise timeseries to enable deterministic result after optimize

Can you say a bit more about the approach here?  I'm not sure I understand it at first glance.
(also, fwiw, I think that this is probably lower priority than other work.  Happy to engage, but also happy to defer this conversation to later)

make_timeseries_part already makes the assumption that column projection will not change dtypes, but will only select a subset of columns in dtypes. The _projection operant just saves the column subset to use (if any).

This looks good to me.  Thanks @rjzamora !


Upgrade observability bundle

What this PR does / why we need it
upgrades the observability bundle to ensure the prometheus agent is restarted if the MC prometheus is flooded
Checklist

[x] Update changelog in CHANGELOG.md.

Trigger e2e tests

/test create
/test upgrade

/test create
/test upgrade


Bug report

What's your nodejs Version.

V 18.19.0

What's the version you downloaded the bot?

i dont can find, so i think the latest. i downloaded today

Desktop (please complete the following information):

OS: Debian
Version: 12

Describe the bug

The Error "Cannot read properties of undefined (reading 'get')"

To Reproduce

Steps to reproduce the behavior e.g:

Execute a Command (it doesn't matter if its an command or not)
See error

Expected behavior

I want to test the bot so i installed it and than this happend

Additional context, text and screenshots!

https://pastebin.com/rsbANAcK (we removed any private infos from our server)

Use updated version, use node.js v18, have visual studio installed


Organize entries in the field

Now it is displayed like this.

Let me edit the images in ug also.


disable_for_time is an undocumented required key of the cloudflare_teams_account's proxy attribute

Confirmation

[X] This is a bug with an existing resource and is not a feature request or enhancement. Feature requests should be submitted with Cloudflare Support or your account team.
[X] I have searched the issue tracker and my issue isn't already found.
[X] I have replicated my issue using the latest version of the provider and it is still present.

Terraform and Cloudflare provider version
Terraform 1.6.0 with the provider 4.41.0
Affected resource(s)

cloudflare_teams_account

Terraform configuration files
resource "cloudflare_account" "account" {
  name              = local.account_name
  type              = local.account_type
  enforce_twofactor = true
}

resource "cloudflare_teams_account" "teams" {
  account_id           = cloudflare_account.account.id
  activity_log_enabled = true
  tls_decrypt_enabled  = false

  block_page {
    enabled          = local.page_block_enabled
    background_color = "#ffffff"
    logo_path        = local.company_logo
    header_text      = "Website Blocked"
    footer_text      = "Cloudflare Zero Trust blocked access to this website."
    name             = local.org_name
    mailto_address   = local.page_block_contact
    mailto_subject   = "Cloudflare Zero Trust Block"
  }

  body_scanning {
    inspection_mode = "shallow"
  }

  antivirus {
    enabled_download_phase = true
    enabled_upload_phase   = true
    fail_closed            = false
  }

  fips {
    tls = true
  }

  proxy {
    tcp        = true
    udp        = true
    root_ca    = true
    virtual_ip = false
  }

  url_browser_isolation_enabled = false

  logging {
    redact_pii = false
    settings_by_rule_type {
      dns {
        log_all    = "all"
        log_blocks = "blocked"
      }
      http {
        log_all    = "all"
        log_blocks = "blocked"
      }
      l4 {
        log_all    = "all"
        log_blocks = "blocked"
      }
    }
  }
}

Link to debug output
N/A, just a  doc update so I didn't collect debug logs
Panic output
No response
Expected output
Applied successfully with previous versions of the provider, the new required attribute is fine and appears valid, but it is absent from the provider documentation, so it took some digging to determine that the new required attribute needs to be provided as a part of the value for proxy
Actual output
Error: Missing required argument
│
│   on teams.tf line 31, in resource "cloudflare_teams_account" "teams":
│   31:   proxy {
│
│ The argument "disable_for_time" is required, but no definition was found.

Steps to reproduce

Attempt to apply without defining the new attribute for proxy
Review provider documentation for details about the new attribute, and find that it is undocumented.

Additional factoids
Commit that added the new attribute: https://github.com/cloudflare/terraform-provider-cloudflare/commit/444612103c877ee9f32ddbac7cba69a794cf2944
References
No response

Closing in favor of a PR, missed the doc update issue type callout.


fixes #291

This is clean up for #291 and doesn't alter anything now (it isn't used).
The syntax for using this (PR example):
  county_boundaries_PR_shifted:
    command: scale_shifted_shps(county_boundaries_census_sp, fips = I(c('72','78')), scale = I(3))

The reason this exists is that we simplify all of the counties and state borders using lat/lon geometries from their actual location, then move some and scale some of them up or down for display (AK and PR notably). So, we are oversimplifying PR relative to its final display (it gets scaled up) and undersimplifying AK relative to its final display (it gets scaled down) when trying to hit the sweet spot with scaling factors so that the 1) file size isn't too big, 2) we don't simplify so much that we drop counties/islands.
This potential solution may be useful in the future but is probably not now. There is a lot of challenging things going on in the custom projection js code that I couldn't wrap my head around, but the hope is we can pre-scale and then be able to take the scaling out of js (see here ) or ...maybe both pre-scale and pre-shift sometime further down the road.
red is original and black is scaled:

I don't think this code fully works with the AK islands that are further west than -180° longitude, but I am not noodling around with that right now because I don't think this is going to be used in the near-term.

If we are going to end up using this code, we should probably extend this issue to properly handle Alaska.


[careful] handlebars 3+4

This is not easy. Handlebars 3 has some security issues (#252).
Unfortunately upgrading to v4 is not a piece of cake, as compiled templates with v3, are not going to be compatible with parser v4. This means that published v3 components are not going to be executable anymore with v4 and they need a new compilation phase.
This means that for a graceful migration, we will

Introduce Handlebars 4 in this PR as default compiler for new components. This will include the Handlebars 3 polyfill so that pre-compiled templates with previous version will keep working.
Publish oc with a new minor version so that all the components in a registry will be republished after being recompiled with H4
Work on a following PR to remove Handlebars 3 polyfill support as a cleaning step + new oc minor publish.

I think this is ready to be reviewed. This is pretty huge and kind of a big deal so I'd like a LGTM from multiple people, perhaps @antwhite @jankowiakmaria @mattiaerre
The behaviour here is:

Handlebars v4 is from here used by the CLI for compiling new components.
When component is already published with v3 compiler, the client-side client, the node.js client, and the registry all are able to still use v3 for the execution

I tried to add some tests there and there to ensure both versions are supported, but another pair of eyes is good to ensure all is good and covered.


[ASTGen] Start using 'TokenSyntax.rawText'

TokenSyntax.text causes instantiation of a heap allocated Swift.String for each access. TokenSyntax.rawText is faster than that because it's just a reference to a slice of the pre-allocated buffer. Also, converting to BridgedString is simplar, and guaranteed to be free, unlike bridging via String.withUTF8(_:)

https://github.com/apple/swift-syntax/pull/2383
@swift-ci Please smoke test

https://github.com/apple/swift-syntax/pull/2383
@swift-ci Please smoke test

Ideally, we would expose the TokenSpecSets for the keywords. Then ASTGen could exhaustively switch over all the choices that such a token might have.

Maybe, we should factor out the portion of it. i.e. not relying on Lexeme.

I agree that some design work would need to be done here. That’s why we haven’t exposed these enums as public API yet.


incorrect values in custom resources fail but do not generate workflow logs

When custom resources like kubernetes_memory_limit or kubernetes_job_timeout are specified with an incorrect type, the workflow fails, but reana-client logs do not show any logs at all.
The issue was discovered for CWL in https://github.com/reanahub/reana-workflow-engine-cwl/pull/214#pullrequestreview-835171935 but, after more checks (here), I discovered it also affects Snakemake.
To reproduce
Go to helloworld example. Set kubernetes_memory_limit to something like:
rule helloworld:
...
    resources:
        kubernetes_memory_limit=1000. # or "500MB"
...

The correct value is a string like "1000MiB" but we specified integer.

Run workflow using reana-client run -w snake-no-logs -f reana-snakemake.yaml

Check logs using reana-client logs -w snake-no-logs. It will be empty.

Check workflow logs using `kubectl logs  workflow engine and you will some errors.

This issue is most probably caused by job-status-consumer


Fix OpenAD error in shelfice pkg

What changes does this PR introduce?
Bug fix
What is the current behaviour?
OpenAD throws an error in the shelfice package when the non-linear free surface is used because of a comparison between the active variable hFacC and a floating point parameter.
What is the new behaviour
No error.  maskC is used for the comparison.
Does this PR introduce a breaking change?
No.
Other information:
This has been tested with OpenAD and the isomip verification experiment.

Looks good to me! isomip AD tests with TAF also pass (so do forward tests).

LGTM.
I would prefer to wait a little bit before merging this PR (have not get all daily testreport output yet + some tests are only running every 3 days) so that if an other minor change is needed because of merged PR #406 it could be done at the same time.
However, if you prefer to merge it sooner, it's fine too.

I have another small change: There's a tape initialisation in the wrong place in the_main_loop.F that leads to a compile warning of using a potentially unitialised variable. Since this is connected to xx_gentim2d_dummy, it probably doesn't matter too much, but still we can fix this here (since I probably introduced this problem in #406). Should I do it?

@mjlosch If you feel like, I think (but it's just me) it would be good to fix this other little thing here.  @jahn do you agree ?

Sure, go ahead!

@mjlosch & @jahn I updated a little bit this PR description. All things are good to me so could merge soon.


Maintain list of ex-officers

When an Officer is removed from the LPD, make an entry in an Officers_old table with the officer_id, reason for removal, and list of roles held.
Keep old patrol time and other information for a specified number of days before deleting
This will allow for Staff and the bot to restore Officers with their previous roles, among other things.

I have the theory for how this will work pretty much ironed out, need to figure out how to make some crafty SQL queries.
ExOfficers uses the same role storage as detention, with officer_id, standard removal reason like displayed in the log, and DEFAULT CURRENT_TIMESTAMP for the stopped_monitoring time.
To select current officers,
SELECT officer_id FROM Officers WHERE officer_id = %s AND officer_id NOT IN (SELECT {this is the crafty part
         I need to select all officer_ids where the Officers.started_monitoring_time < ExOfficers.stopped_monitoring_time and the officer_id is the same... Yeah it's complicated for midnight on no sleep... }

Long story short I deleted the whole feature branch because it was so far behind and honestly I had no idea where it was on things. It's gonna get redone.


write node label attribute on commission success

@pierredelisle Updates the NodeLabel when the device name is set or updated.

Nice! Thanks for the PR.


Exporting to android makes Godot UI hang

When exporting to an android device the UI completely freezes. To the point that whenever I switch workspaces it sometimes even won't redraw. (I'm on linux)
I would guess that's because the export happens on some main drawing thread where it probably belongs in a separate thread.

Can you or anyone reproduce this issue in the current master branch / nightly builds? I believe the situation may have evolved since January.

Closing as old, as there was no answer from OP and I haven't seen other similar reports.


LEGO: Pull request from lego/hb_04604851-bac4-4681-9f74-73de611d6e48_20220619153425200 to main

LEGO: Pull request from lego/hb_04604851-bac4-4681-9f74-73de611d6e48_20220619153425200 to main with localized lcls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.002%) to 42.108%

Totals

Change from base Build<PHONE_NUMBER>:
0.002%

Covered Lines:
28151

Relevant Lines:
62378

💛  - Coveralls


sanity check the describeSGOutput to avoid nil pointer erros during i…

sanity check the describeSGOutput to avoid nil pointer erros during integration tests. Also we get nice fail message

What does this PR do? / Related Issues / Jira
wraps the function to dettach SGs from instances into a sanity check for nil pointers to avoid errors when API does not respond or other issues.

Codecov Report
Attention: 10 lines in your changes are missing coverage. Please review.

Comparison is base (19654c3) 13.56% compared to head (6be511c) 13.55%.

Additional details and impacted files

@@            Coverage Diff             @@
##             main     #213      +/-   ##
==========================================
- Coverage   13.56%   13.55%   -0.02%
==========================================
  Files          17       17
  Lines        1342     1343       +1
==========================================
  Hits          182      182
- Misses       1147     1148       +1
  Partials       13       13

Files
Coverage Δ

pkg/verifier/aws/entry_point.go
0.00% <0.00%> (ø)

/lgtm

/lgtm
/approve
Tested locally


Add CRYPTO_get_alloc_counts.

Should these be public?  I'm not seeing an obvious need.
For memory allocation failure testing, it would be sufficient for the test suite to define its own local malloc/realloc/free that keep the counts without polluting the public interface.
You might also want to consider a reset/zero the counters capability.
If they are going to be public, they really should use atomic add operations for thread safety.

Yes it can be done that way.  Or it can be put under MEM_DEBUG ifdef if you prefer.  And we don't guarantee thread-safety of our malloc so the guarantee isn't changed.  Want it ifdef'd?

pthreads(7) claims, under Posix at least, that malloc and friends are thread safe.  That is unlikely to be true for all implementations on all platforms.
I'm somewhat ambivalent about conditioning them using MEM_DEBUG or including the counting implementation in test.  It just doesn't feel like making them a public and supported API is right, I really am having difficulty coming up with a meaningful use case outside of memory stressing.
I still think a reset the counters command would be worthwhile -- this could be rolled into the query making it a query and zero operation.
I'm happy to go either way on the atomics -- the tests will have control over what happens and should be able to avoid nastinesses.  Memory stress testing won't (initially) be hunting for concurrency issues.

PS: I do like this idea from a stability and leak catching viewpoint.

I think it makes sense, given the likely use-case, to make this only visible during MEM_DEBUG.
I don't (yet?) see a need to clear the counts.
Additional commit (to be squashed) that uses atomic_add (so have to be ints not long) and locks.

updated doc-fix commit pushed.  thanks for the feedback so far!

Okay, everything is written in terms of CRYPTO_atomic_add now.

I've reinstated #4414 for consideration.  It adds a CRYPTO_atomic_read call that pairs with the atomic add.  This would be more useful than having GET add zero which will generate lock prefixes, a basic read doesn't on x64.

Additional commit to rename the lock pushed.

A few changes, needs reconfirm.  All commits will be squashed.

Thanks for the feedback and improvements all.  Merged.


Cotary Create: Stepper improvement

#276

This branch is going to be merge because we want the last code in heroku - but still WIP


Fix tags in user guide for addPatient

Codecov Report
Base: 72.15% // Head: 63.81% // Decreases project coverage by -8.34% :warning:

Coverage data is based on head (8de470f) compared to base (abd852d).
Patch has no changes to coverable lines.

Additional details and impacted files
@@             Coverage Diff              @@
##             master     #118      +/-   ##
============================================
- Coverage     72.15%   63.81%   -8.35%
- Complexity      399      409      +10
============================================
  Files            70       81      +11
  Lines          1232     1437     +205
  Branches        125      147      +22
============================================
+ Hits            889      917      +28
- Misses          311      481     +170
- Partials         32       39       +7

Impacted Files
Coverage Δ

.../seedu/address/logic/parser/AddressBookParser.java
76.19% <0.00%> (-23.81%)
:arrow_down:

...in/java/seedu/address/logic/parser/ParserUtil.java
81.25% <0.00%> (-15.98%)
:arrow_down:

...rc/main/java/seedu/address/model/ModelManager.java
90.74% <0.00%> (-9.26%)
:arrow_down:

...c/main/java/seedu/address/model/person/Person.java
89.79% <0.00%> (-7.83%)
:arrow_down:

.../java/seedu/address/storage/JsonAdaptedPerson.java
94.54% <0.00%> (-5.46%)
:arrow_down:

...rc/main/java/seedu/address/logic/LogicManager.java
71.42% <0.00%> (-3.58%)
:arrow_down:

.../java/seedu/address/model/util/SampleDataUtil.java
19.04% <0.00%> (-0.96%)
:arrow_down:

src/main/java/seedu/address/model/Model.java
100.00% <0.00%> (ø)

src/main/java/seedu/address/ui/PersonCard.java
0.00% <0.00%> (ø)

...rc/main/java/seedu/address/ui/PersonListPanel.java
0.00% <0.00%> (ø)

... and 16 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Add Universal Search Suggestions

[Insert URL to the plugin here]
[Adds search suggestions when typing something.]
By submitting this pull request I confirm I've read and complied with the below requirements 🖖
Requirements for your pull request

You have read and understood the Contribution Guidelines.
This pull request has a title in the format Add [Name of Plugin].

✅ Add GEmojiSharp
❌ Update readme.md
❌ Adding GEmojiSharp
❌ Added GEmojiSharp

Your entry should include a short description of the plugin. The first character should be uppercase and the description should end in a dot. It should be an objective description and not a tagline or marketing blurb.

✅ - [GEmojiSharp](…) - Find and copy GitHub Emoji to the clipboard.
❌ - [GEmojiSharp](…) - A GitHub Emoji plugin for PowerToys Run.
❌ - [GEmojiSharp](…)

The link text should be the Name of the plugin found in the plugin.json file. The URL should be the link to the GitHub repo, or a link to an anchor in the readme.

✅ - [GEmojiSharp](https://github.com/hlaueriksson/GEmojiSharp) - …
❌ - [GEmojiSharp.PowerToysRun](…) - …
❌ - [GEmojiSharp](https://github.com/hlaueriksson/GEmojiSharp/releases/download/v1.0.0/GEmojiSharp.PowerToysRun.1.0.0.zip) - …

Your entry should be added at the bottom of the appropriate category.

@hlaueriksson

Hi @Fefedu973
Nice plugin!
It's similar to my Bang plugin.
I created an issue in your repo with feedback.

Hi @Fefedu973
Nice plugin!
It's similar to my Bang plugin.
I created an issue in your repo with feedback.

Yeah I saw it, thanks !
The first time I saw your plugin was after I finished mine (I was a little sad to have done something that already existed lol) but they are not 100% the same so it is still nice

Yeah, I should put my plugins here. Sometimes it feels awkward to toot my own horn.

Yeah, I should put my plugins here. Sometimes it feels awkward to toot my own horn.

Yeah I understand (this what i though when i saw that you didn't put your own plugins on this page) but i think you deserve it and that thoses plugins deserve a place here

Yeah, I should put my plugins here. Sometimes it feels awkward to toot my own horn.

The feedback has been taken into account !

Great work!
Can you update the PR title, name and description of the plugin?

yeah !

Done @hlaueriksson !

Is there anything else I need to change or is this all good?

@Fefedu973 thanks for your contribution. However I'm not comfortable merging this until https://github.com/Fefedu973/PowerToys-Run-Plugin-Updater/issues/1 is fixed.
This list is curated and built on trust. I cannot endorse a plugin that fails to satisfy the Security Policy.

@Fefedu973 thanks for your contribution. However I'm not comfortable merging this until https://github.com/Fefedu973/PowerToys-Run-Plugin-Updater/issues/1 is fixed.
This list is curated and built on trust. I cannot endorse a plugin that fails to satisfy the Security Policy.

How can I fix that ? Should I sign my software by buying the expensive Microsoft thing ?

The idea of updating the plugin from the PowerToy Run context itself is awesome.
Instead of downloading an external winui app, is it possible to do the same thing from PowerToy Run?

The code could be distributed via a NuGet package and used by plugins with the DynamicLoading setting in plugin.json.
I'm wondering how antivirus providers will consider this approach?

Oh no this means that I will need to throw my app away ): nevermind however the implementation of an updater directly in the plugin looks hard to me because while updating the plugin replaces its own files but the plugin needs to be running while doing the update process...

Oh no this means that I will need to throw my app away ): nevermind however the implementation of an updater directly in the plugin looks hard to me because while updating the plugin replaces its own files but the plugin needs to be running while doing the update process...

Hi @Fefedu973
I created a NuGet package that adds support for updating PowerToys Run Plugins:

https://github.com/hlaueriksson/Community.PowerToys.Run.Plugin.Update

Very nice! I'm going to replace my updater software with yours, (I'm a little bit sad because I put a lot of Elbow grease in this project but yours is better and pass the antivirus test)
Thanks!

I'm sorry if my feedback came across as harsh.
 It serves as a learning experience. 🌱

I'm sorry if my feedback came across as harsh.
 It serves as a learning experience. 🌱

No this is not the feedback I fully understand but it is the code that I left behind, but you are right.
I'm currently trying to understand how to implement your package in my code but I wasn't able to understand the given code snippet in the readme, could you please explain to me briefly what are the different methods of the package and how to implement it In my case (I didn't understand for example why you set the plugin settings like this) I think that the given code lacks comments.
Thanks 👍

Take a look at the code here for now; https://github.com/hlaueriksson/GEmojiSharp/tree/master/src/GEmojiSharp.PowerToysRun
I will add better documentation in the readme tomorrow. 😇

I have already tried but the code is almost the same. I'm going to wait for the doc then
Thanks

I have updated the docs.

Thanks , I'll take a look

There are a few bugs I will try to fix in a 0.2.0 release.

Okay nice

the documentation is nice but the issue is with the main.cs code i really don't know why you manage settings like that or your code style in general. Is there anyway you give us just what we need to add to an aleready build project rather than a whole main.cs template where we are lost between what we should add to our code to make it work, what is aleready here but not exactly the same due to different coding styles. I think you get the point i'm lost lol 😭

Take a look at the sample project:

https://github.com/hlaueriksson/Community.PowerToys.Run.Plugin.Update/tree/main/samples/Community.PowerToys.Run.Plugin.Sample

I created that with the dotnet new template:

https://github.com/hlaueriksson/Community.PowerToys.Run.Plugin.Templates

And then I added Community.PowerToys.Run.Plugin.Update to it.
So, if you create your own project with:
dotnet new ptrun-proj -o Community.PowerToys.Run.Plugin.Sample

You can diff the to project and figure out what changes are needed to support updates.
Like so:

Oh, I didn't use that template for my project so this is why the coding style is different And I can't get out of it

Oh, I didn't use that template for my project so this is why the coding style is different And I can't get out of it

Hey ! I implemented your update logic !

I was really loving my update dialog maybe we could team up to implement Something similar (ui wise) as my plugin updater in your package (it would looks less crappy than the powershell script but it would be better integrated than my own old solution)


[v2.0] Index error when migrating

In my mongodb console : db.roles.getIndexes() prints
[
	{
		"v" : 1,
		"key" : {
			"_id" : 1
		},
		"name" : "_id_",
		"ns" : "admin.roles"
	},
	{
		"v" : 1,
		"unique" : true,
		"key" : {
			"name" : 1
		},
		"name" : "name_1",
		"ns" : "admin.roles"
	}
]

This prompt an error at meteor startup : MongoError: E11000 duplicate key error index: admin.roles.$name_1 dup key: { : null } because field name isn't used anymore in v2.
This error is triggered despite the running of Package['alanning:roles'].Roles._forwardMigrate() from the meteor shell.
Had to run db.roles.dropIndex("name_1") from the mongo shell!
Hope this helps, cheers :)

Ah, yes, we should probably drop old indexes in Roles._forwardMigrate. Thanks for reporting this.


How do you generate these binaries?

Hi Alix!
Thanks a lot for your contributions to this project! I am able to use your binaries, but I am wondering how you are generating these binaries in the first place? Is there a chromium page where you can specify a configuration and it will generate the right chromium binary for you? I think this would be a helpful addition to the readme as it wont leave your users in the dark in the event it becomes hard for you to generate the binaries. Plus the community can help you out as well.
Also there is an opportunity for improvement in your readme documentation under the Lambda section where you can update the commands for uncompressing the .br binary and then zipping it up as a layer that can then be uploaded to lambda (currently it shows an example for tarballs).
Thanks,
Govind

Hey @govindrai, from day one I've been including the compilation instructions in the README and the automated Ansible playbook to compile it is published as well. Regarding your other point:

Also there is an opportunity for improvement in your readme documentation under the Lambda section where you can update the commands for uncompressing the .br binary and then zipping it up as a layer that can then be uploaded to lambda (currently it shows an example for tarballs).

This is not quite right, the part where it untars is related to the (necessary) previous npm pack step.
I thought about not using Brotli to compress the Chromium binary so that it could be uploaded as a Lambda Layer, but the code itself will need to be refactored to allow for this, namely this snippet:
https://github.com/alixaxel/chrome-aws-lambda/blob/f91f050419b79f3f364160c8a2695c9f1f39e4d4/source/index.js#L89-L106
It may come in the future, but for now it's not as simple as uncompressing the binary and uploading it.


Restore sys.exit calls

If it's important to keep the previous sys.exit behaviour this PR should restore that, it turned out to be pretty simple to deal with in pytest.
The bulk of the changes are updating the tests to account for the differences in behaviour this causes vs the current version.

Part of the problem might be that I didn't add the extra code to catch JSON decoding errors like I did in the MI task PR. I was going to do that tomorrow after realising it should be in this one too.
Anyway will check it out in the morning and get back to you!

All the tests are still passing for me, I've tried 3 different machines and Python versions in case it was something to do with that.
Did you have any problems with the tests in the previous version with the sys.exit calls removed? If you let me know which OS/Python version you're using I'll try that! Or if there's anything else that might be different about your environment I should test?
I also don't understand how some of the tests in your screenshot are failing, e.g. test_validate_passages should always be loading the first turn from sample_run.json which has 3 responses containing 4 unique turn IDs. None of those 4 appear in the reduced database so it should always generate 4 warnings but it looks like it's only generated 1 somehow?? If you run pytest -k test_validate_passages -s do you see the warning messages being displayed?
Similarly test_validate_small is trying to validate sample_run.json against the reduced database so most of the IDs won't be validated, so it should abort after exceeding 25 warnings. But it apparently isn't doing that. Can't see an obvious link between the 5 that are failing either.

Specifically, I tried testing for the warnings in the check_response and check_provenance methods in utls.py, but those show up

Can you send me 1-2 of your malformed runs so I can test them too?

I deleted and recreated my virtual environment and the expected errors from the malformed runs started to show up. I also found a tiny bug in the code I wrote to check the provenance score order and provenance count. I've added a commit to address those.

If you let me know which OS/Python version you're using I'll try that! Or if there's anything else that might be different about your environment I should test?

I have an Ubuntu 20.04 and my python version is 3.8.10. I've also recreated my virtual environment and reinstalled the requirements just to be sure. Seems like a different set of tests are failing now:

If you run pytest -k test_validate_passages -s do you see the warning messages being displayed?

I don't get any error messages when I run that command.

I'm happy to merge this since the main script functionality works. Sorting out the tests could be for another PR -- it seems to be an issue with my setup, so I can look into that. Is that okay?

Sure, if you're happy with it as-is that's fine with me!
I'll try installing your version of Ubuntu in a VM at some point and see if I can get it to behave the same way, it seems like a weird problem and I'm curious what might be going on...

Any chance there was an instance of the validator service still active when you were running the tests?
I did this accidentally after setting up an Ubuntu VM and it seems to produce very similar behaviour with 4-5 tests failing and the rest passing. The tests all assume there is no service running so that would explain why it's sometimes giving unexpected results.

Any chance there was an instance of the validator service still active when you were running the tests?

Turns out that was the issue.
Thanks again!


upload progress?

hi
everything is in the title, can t get it working
just doing a simple
var form = yield formidable.parse(this);
console.log(form)
form.on('progress', function(bytesReceived, bytesExpected) {
      console.log(bytesReceived, bytesExpected)
});

TypeError: form.on is not a function
how can we do please?
thanks

Something like the following could work (untested):
var form = new require('formidable').IncomingForm()
form.on('progress', function(bytesReceived, bytesExpected) {
      console.log(bytesReceived, bytesExpected)
})
var result = yield formidable.parse(form, this)

hello
thanks for the reply
the form works but nothing is printed int the console :/

Did you integrated the form.on('progress', ...) and yield formidable.parse(...) in the same order as in the snippet, so the event registration before blocking because of the yield?

my code is
//parse le form
var f = new require('formidable').IncomingForm()
f.on('progress', function(bytesReceived, bytesExpected) {
        socket.emit('formMsg', bytesReceived+'/'+bytesExpected)
})
console.log(f)
var form = yield formidable.parse(f, this)

so yes :)

hello
this is very strange :
1/ the progress event seems called only once the file is totally uploaded..
2/ why the hell the file is not viewable while uploading in my uploadDir, i can only see it when the file is totaly uplodded i don t know where it s writed while uploading :/
thanks !

These issues seem to be more related to formidable itself than to the koa wrapper. Anyway:

Maybe you will get more events when trying a bigger file or when uploading not from localhost to localhost?
try the term temporary path on https://github.com/felixge/node-formidable

hello
i try with files of 300mo to 13 GB ! can t do bigger :) from localhost or to my server same thing
i try to update my formidable package then look at this
you mean the file.path = null ?
normally it seems i need to set this in the fileBegin event but this event do not work for the moment, i retry
brb !

Yes, I mean the sentence above that

The path this file is being written to. You can modify this in the 'fileBegin' event in case you are unhappy with the way formidable generates a temporary path for your files.

However, I never changed the temporary path myself. So cannot actually help with that, but it is common practice to upload files to a temporary location and just move them to the final location once uploading has finished.
For the progress issue I would recommend to search stackoverflow and formidable's issue page.

same problem ....
here s my route, i stop it with a return just after parse now to test...
// post add function
module.exports.add = function *() {
    var socket = io('http://localhost:3000');

    var results = {};
    doc = {};
    docs = [];
    //parse le form
    var f = new formi.IncomingForm();
    f.uploadDir = "/data/websites/traceroute/uploads";

    f.on('fileBegin', function(name, file) {
      console.log(name + ' ' + file + " upload started!")
    });

    f.on('progress', function(bytesReceived, bytesExpected) {
        socket.emit('formMsg', bytesReceived+'/'+bytesExpected)
    })

    console.log(f)
    var form = yield formidable.parse(f, this)

    return;
}

i can t see any log before the file is 100% uploaded

as you can see i already use a custom uploadDir

I think there is a difference between the upload dir and the temporary location during upload.

https://github.com/felixge/node-formidable/issues/377

yes but i think i can t use this since the fileBegin event do not work :/
i ll try ...


WIP: Refine error returned by Authenticator

There has been inconsistency in terms of the error returned by
authenticator.
This commit introduces an error ErrAuth to explicitly flag an
authentication failure, which should be treated as user error such
as "invalid credentials", and other errors will be treated as system error.

Coverage decreased (-1.6%) to 58.347% when pulling 1e9b18ce5ecfba362f3cde04b494fe13f7ac379f on reasonerjt:authenticator-error-refine into 4752de15848371abdab8468ae532ff87c57d6baf on vmware:master.


minifab gets stuck bringing up the network

Pls help me debug the issue. I have a spec file that was working fine on Ubuntu 20.04 a couple of weeks back, but not working anymore. It's working fine on Windows 10.
OS: OS: Ubuntu 20.04.1 LTS x86_64
Docker version 19.03.13, build 4484c46d9d
spec.yaml
fabric:
  cas:
  - "ca1.dfp.com"
  - "ca1.amc.com"
  peers:
  - "peer1.dfp.com"
  - "peer1.amc.com"
  orderers:
  - "orderer1.dff.com"
  settings:
    ca:
      FABRIC_LOGGING_SPEC: DEBUG
    peer:
      FABRIC_LOGGING_SPEC: DEBUG
    orderer:
      FABRIC_LOGGING_SPEC: DEBUG

The command I ran was: minifab netup -o dfp.com -e true -f default
The last few lines of the output is:
TASK [Start all ca nodes] ******************************************************
changed: [minifab] => (item={'fullname': 'ca1.dfp.com', 'mspid': 'dfp-com', 'name': 'ca1', 'org': 'dfp.com', 'port': '7054', 'portmap': '', 'type': 'ca', 'url': 'ca1.dfp.com'})
changed: [minifab] => (item={'fullname': 'ca1.amc1.com', 'mspid': 'amc1-com', 'name': 'ca1', 'org': 'amc1.com', 'port': '7054', 'portmap': '', 'type': 'ca', 'url': 'ca1.amc1.com'})

TASK [Error!] ******************************************************************
skipping: [minifab]

TASK [Set tool gopath] *********************************************************
ok: [minifab]

TASK [Start cli container for all fabric operations] ***************************
changed: [minifab]

TASK [wait for 3 seconds and orderer nodes to select leader] *******************
ok: [minifab]

TASK [generate the script to check status] *************************************
changed: [minifab]

TASK [Run the orderer raft leader election script on cli container] ************

And it gets stuck there for a long time. Could you help me debug the issue? The code was working fine on Windows 10, so I suspect its not issue with spec.yaml

Can you do minifab cleanup, then do the command again?

I wonder if you are using very old minifab script , please check if your script still uses hfrd/minifab:latest image.

My minifab is latest. In fact I setup the environment on a clean ubuntu installation. I also tried minifab cleanup.
#!/bin/bash
[ ! -d "$(pwd)/vars" ] && mkdir vars
ADDRS=$(ifconfig|grep 'inet '|grep -v '\.1 '|tr -s ' '|awk '{$1=$1};1'|cut -d ' ' -f 2|cut -d '/' -f 1|paste -sd "," -|sed s/addr://g)
if [ -f "$(pwd)/spec.yaml" ]; then
  echo "Using spec file: $(pwd)/spec.yaml"
  docker run --rm --name minifab -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd)/vars:/home/vars \
  -v $(pwd)/spec.yaml:/home/spec.yaml -e "ADDRS=$ADDRS" hyperledgerlabs/minifab:latest /home/main.sh "$@"
else
  echo "Using default spec file"
  docker run --rm --name minifab -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd)/vars:/home/vars \
  -e "ADDRS=$ADDRS" hyperledgerlabs/minifab:latest /home/main.sh "$@"
fi

I tried it again this morning, and it worked fine. I swear I didn't make any changes and it was working with the same code. Not sure what went wrong the last few times I tried. Closing the issue. Thank you.
alvin@calvin-2004:~/code/mfbc$ minifab netup -o dfp.com -e true
Using spec file: /home/calvin/code/mfbc/spec.yaml
Minifab Execution Context:
    FABRIC_RELEASE=2.3.0
    CHANNEL_NAME=mychannel
    PEER_DATABASE_TYPE=golevel
    CHAINCODE_LANGUAGE=go
    CHAINCODE_NAME=simple
    CHAINCODE_VERSION=1.0
    CHAINCODE_INIT_REQUIRED=true
    CHAINCODE_PARAMETERS="init","a","200","b","300"
    CHAINCODE_PRIVATE=false
    CHAINCODE_POLICY=
    TRANSIENT_DATA=
    BLOCK_NUMBER=newest
    EXPOSE_ENDPOINTS=true
    CURRENT_ORG=dfp.com
    HOST_ADDRESSES=<IP_ADDRESS>
    WORKING_DIRECTORY: /home/calvin/code/mfbc
....
# Preparing for the following operations: *********************
  verify options, download images, generate certificates, start network, network status
.................
# Running operation: ******************************************
  verify options
.
# Running operation: ******************************************
  download images
............
# Running operation: ******************************************
  generate certificates
........................................................................................................
# Running operation: ******************************************
  start network
.......................
# Running operation: ******************************************
  network status
.......
# Docker node status ******************************************
  5838b44a80_cli : Up 7 seconds
  ca1.amc.com : Up 8 seconds
  ca1.dfp.com : Up 9 seconds
  orderer1.dff.com : Up 10 seconds
  peer1.amc.com : Up 11 seconds
  peer1.dfp.com : Up 12 seconds

# Fabric network peer and orderer node health status **********
         peer1.dfp.com "OK"
         peer1.amc.com "OK"
      orderer1.dff.com "OK"
  Network Status: 100%

# STATS *******************************************************
minifab: ok=189	failed=0

real	1m34.126s
user	1m24.598s
sys	0m12.326s

It seems the process is stuck when there are two entries in the orderers section of the spec file. Is it something I am doing wrong, or something wrong with my system? I tested with just one orderer (orderer1.dff.com) and it worked fine. But when I add 'orderer1.amc1.com' I am getting the issue.
fabric:
  cas:
    - 'ca1.dfp.com'
    - 'ca1.amc1.com'
  peers:
    - 'peer1.dfp.com'
    - 'peer1.amc1.com'
  orderers:
    - 'orderer1.dff.com'
    - 'orderer1.amc1.com'
  settings:
    ca:
      FABRIC_LOGGING_SPEC: DEBUG
    peer:
      FABRIC_LOGGING_SPEC: DEBUG
    orderer:
      FABRIC_LOGGING_SPEC: DEBUG


Adding backspace again

I was checking alextop99 commit when he added REPLAY and the same happened to him.
Maybe this is a setting on the ino file?

Anyway, thank you for this project. I'm having a great time experimenting with it

Hm Ok weird.