Board resets to previous state despite value of position

I have the following code (simplified to remove unrelated stuff):
import { Box, Flex } from "@chakra-ui/react";
import { ReactNode, useEffect, useMemo, useRef, useState } from "react";
import { Chessboard, ClearPremoves } from "react-chessboard";
import { Chess,  Move,  ShortMove } from "chess.js";
import {
  Piece,
  Square,
} from "react-chessboard/dist/chessboard/types";
import { useGetAccountResource } from "../../api/useGetAccountResource";
import {
  getChessResourceType,
  useGlobalState,
} from "../../context/GlobalState";
import { Game } from "../../types/surf";
import { gameToFen } from "../../utils/chess";

export const MyChessboard = ({ objectAddress }: { objectAddress: string }) => {
  const [globalState] = useGlobalState();

  const parentRef = useRef<HTMLDivElement>(null);
  const [dimensions, setDimensions] = useState({ width: 0, height: 0 });

  const localGame = useMemo(() => new Chess(), []);
  const [chessBoardPosition, setChessBoardPosition] = useState(localGame.fen());

  const { data: remoteGame, error } = useGetAccountResource<Game>(
    objectAddress,
    getChessResourceType(globalState, "Game"),
    { refetchInterval: 1500 },
  );

  useEffect(() => {
    console.log("blah");
    if (remoteGame === undefined) {
      return;
    }

    console.log("setting");
    setChessBoardPosition(gameToFen(remoteGame));
  }, [remoteGame, localGame, chessBoardPosition, setChessBoardPosition]);

  // The only way I could find to properly resize the Chessboard was to make use of its
  // boardWidth property. This useEffect is used to figure out the width and height of
  // the parent flex and use that to figure out boardWidth. We make sure this triggers
  // when the game data changes, because we don't render the Chessboard until that data
  // comes in.
  useEffect(() => {
    const observer = new ResizeObserver((entries) => {
      for (let entry of entries) {
        setDimensions({
          width: entry.contentRect.width,
          height: entry.contentRect.height,
        });
      }
    });

    if (parentRef.current) {
      observer.observe(parentRef.current);
    }

    return () => {
      observer.disconnect();
    };
  }, [localGame]);

  if (error) {
    return (
      <Box p={10}>{`Error loading game: ${JSON.stringify(
        error,
        null,
        2,
      )}`}</Box>
    );
  }

  // Because width and height are zero when first loading, we must set a minimum width
  // of 100 pixels otherwise it breaks the board (it will just show the number zero),
  // even once the width and height update.
  console.log(`Dimensions: ${JSON.stringify(dimensions)}`);
  const width = Math.max(
    Math.min(dimensions.width, dimensions.height) * 0.8,
    24,
  );
  // If the width is less than 25 we hide the chessboard to avoid perceived flickering
  // on load.
  let boxDisplay = undefined;
  if (width < 25) {
    boxDisplay = "none";
  }

  /**
   * @returns Move if the move was legal, null if the move was illegal.
   */
  function makeAMove(move: ShortMove): Move | null {
    const result = localGame.move(move);
    setChessBoardPosition(localGame.fen());
    return result;
  }

  function onPieceDrop(
    sourceSquare: Square,
    targetSquare: Square,
    piece: Piece,
  ) {
    const move = makeAMove({
      from: sourceSquare,
      to: targetSquare,
      // TODO: Handle this.
      promotion: "q",
    });

    console.log("move", JSON.stringify(move));

    // If move is null then the move was illegal.
    if (move === null) return false;

    return true;
  }

  console.log(`Final FEN: ${chessBoardPosition}`);

  return (
    <Flex
      ref={parentRef}
      w="100%"
      flex="1"
      justifyContent="center"
      alignItems="center"
    >
      <Box display={boxDisplay}>
        <Chessboard
          boardWidth={width}
          position={chessBoardPosition}
          onPieceDrop={onPieceDrop}
        />
      </Box>
    </Flex>
  );
};

The point of this code is to update the local state of the board based on the state of the game from a remote source.
The state updates seem to be correct, but the board doesn't seem to "persist" the state I give it. Instead, it shows it briefly and then resets back to the initial state. You can see what I mean in the recording.
https://github.com/Clariity/react-chessboard/assets/7816187/dcf62c0d-1fea-46f5-9f6e-3919be7b5796
When logging to the console, I can see this:
Final FEN: rnbqkbnr/pppppppp/8/8/3P4/8/PPP1PPPP/RNBQKBNR b - d3 0 1

This tells me I'm passing in the correct state of the game to my Chessboard.
I have tried removing the Flex and Box wrapping the Chessboard and that does nothing.
Setting a static boardWidth and removing that resizing hook doesn't help.
I have tried using just useState without useMemo but that doesn't help.
Given I'm passing in a certain FEN to Chessboard and it doesn't show it anyway, it tells me it is some kind of bug with the Chessboard, but I'm not too sure.
Any ideas on what I can do to fix this?
Versions:

chess.js: 0.13.4 (using 0.12.1 doesn't help)
react-chessboard: 4.3.2

Notably this only happens at the start, once remoteGame updates or I move a piece locally to update the local state, it updates to the correct visual state.

I just managed to mitigate this issue by disabling React.StrictMode, it seems like the double update is what was making this issue appear. Good that it surfaced it, but not good bc I don't know how to fix the underlying issue.

That was the first thing I tried, same issue.
jfyi that code with useMemo is also from the examples (that comes from the storyboard, plus some of the other issues in this repo).

Hi @banool !
The issue more likely is somewhere here in this useEffect.
  useEffect(() => {
    console.log("blah");
    if (remoteGame === undefined) {
      return;
    }

    console.log("setting");
    setChessBoardPosition(gameToFen(remoteGame));
  }, [remoteGame, localGame, chessBoardPosition, setChessBoardPosition]);

First of all, by directly calling
 setChessBoardPosition(gameToFen(remoteGame)); you make double source of truth, because after that your  localGame.fen() and  remoteGame.fen() will be different!!! Instead of that please sync your local and remote game states first and after that call setChessBoardPosition. something like this will be fine:
   localGame.load(gameToFen(remoteGame));
   setChessBoardPosition(localGame.fen());

Secondly, please make sure that the dependency array of your useEffect doesn't contain extra dependencies, for example localGame is absolutely useless there (change my mind)

Here is a repro with the latest code.
First, clone the code:
git clone https://github.com/banool/aptos-chess.git
git checkout 0964d0e4ad8fe8437da94a9e3fcdf2121debd051

Run the dev site:
pnpm install
pnpm start

Open the site: http://localhost:3000/#/0xd81a98dab67b5bd2943e85dee7a6b8026837f09b63d0f86529af55601e2570b3?network=testnet
You will see the pieces appear in the right spot and then snap back to the starting position. Disabling strict mode fixes this, implying some kind of bug that manifests only on running effects / render an extra time.
As you can see, I just have localGame, not chessBoardPosition. I don't know why the examples have duplicate sources of truth but I don't do that here, it seems much simpler to have just localGame.
The logging is pretty clear, the same FEN is passed into the Chessboard each time so it shouldn't behave this way.
The relevant code from the repo: https://github.com/banool/aptos-chess/blob/main/frontend/src/pages/GamePage/MyChessboard.tsx.

Love the library, so I hate to jump on this complaint bus, but I faced a similar (slightly different, but possibly related) issue just now.
I'm creating a puzzle mode, and as with most puzzle modes, you have the first move being the opponent's move, and then you respond. There is a useEffect that plays the next move of the mainline whenever it's the opponents turn, but after the first move, it often snaps back to the starting position. Debugging reveals that that particular useEffect is called multiple times on the first move, and it appears that the chessboard rerenders the starting position after this useEffect gets triggered. Disabling ReactMode is not ideal for our project.
However, for anyone's future reference, I believe it may have something to do with how the Context component takes a while to match the diffs between the current and previous boards. I did come up with a somewhat hacky solution - there is a ref (for removing premoves) where the useImperativeHandle call is after the diff-matching. I passed in the ref, and kept checking and retrying the first move until it became defined, and then for a little bit of time after that. It works, but obviously it's not an ideal solution.
I get that to get the nice piece-moving animations, it would be difficult to disable the diff-matching on the initial board. However, I would love to know if there are better ways of doing this.

@banool I believe your issue has nothing to do with the react-chessboard library.
Imo your issue comes from the fact that when you make a move, you are correctly setting the new board position in your makeAMove function, that's why you see briefly the new position on the board. But then your useEffect gets called because chessBoardPosition got updated, this updates back chessBoardPosition with the starting fen.

I'm working on a project and ran into this issue too! It is indeed caused by React's Strict Mode which intentionally mounts everything twice to help you caught / find remounting bugs during development (on production it only mounts once).
Disabling it is a workaround but obviously not ideal. The reason solution would be to find out why the library is failing to handle 2 quick re-renders correctly and then falling back to the initial position.
I tried some 'hacky workarounds' but they caused other issues with animations / flickering.
I'll try to look into it later if I get some time.

@mobeigi It can also be an error in your code like in @banool case probably. Have you shared your code somewhere so people can maybe help you ?

@mobeigi It can also be an error in your code like in @banool case probably. Have you shared your code somewhere so people can maybe help you ?

Possibly but I doubt it. I setup a simple board and used React to update the fen binded to a prop on page load.  Due to strict modes double render it caused the flickering.
Sadly I didn't have time to investigate further and moved on.

Updating board state in a useEffect isn't recommended, you should initialise a board state in a useState setter and update it with events, not side effects

Same Issue here, using an api to get the game state and setting it game is then loaded in from a Context, the effect is exactly the same as banool's. Using a key "fixes" the issue but makes the Chessboard mount and unmount causing flickering instead so not ideal.
Logs (which are correct):

LHS is with a key and causes flickering when a move is made vs RHS which goes back to default:

@mobeigi and @Gen1Code if your app is open source or you can extract this part of your code to a public repo, I can take a look into it if you want.

@Gen1Code Found your repo on your profile, I opened an issue over there with hints for where I think the issue comes from in your case.

I used to have this issue when user refreshes in online chess games. Data used to be fetched from server but position wouldn't change despite different fen value passed to the chessboard. So, I just added a delay of 200ms before the chessboard renders. Added a state loadingChessBoard and set it to false by default and set it to true after 200ms. Position updates like butter now!


other hidden traffic

Hi, I was asking about the possibility of having the other traffic visible when you have your flight selected like a flyer, it's very unpleasant that when you click on your flight all the others disappear

Hi
Can you elaborate a little more?
I don't understand

when you click on a plane all the others disappear and it's an unpleasant thing it would be nice if when you click on a plane it highlights yours but the other planes also remain visible

Could you show me a picture?

yes when not selected airplane

and when select airplane the another traffic they disappear

Sorry. You are using VATSIM SimAware. I do not create or manage this.
My SimAware is a different application for Discord.
Please contact VATSIM.


chore: add codecov badge to docs/index.md

Codecov Report
Base: 72.15% // Head: 72.15% // No change to project coverage :thumbsup:

Coverage data is based on head (2415dfa) compared to base (46dbd6a).
Patch has no changes to coverable lines.

Additional details and impacted files
@@            Coverage Diff            @@
##             master      #27   +/-   ##
=========================================
  Coverage     72.15%   72.15%
  Complexity      399      399
=========================================
  Files            70       70
  Lines          1232     1232
  Branches        125      125
=========================================
  Hits            889      889
  Misses          311      311
  Partials         32       32

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.


Significant Module Refactor

Ahhhhhh....sooooooo much cleaner. Modules are broken down and clearer and there aren't modules exporting a whole bunch of random functions (that's left for utils modules).
The drizzle flow is, generally:

prepare - register helpers, partials and other template preparation
parse - parse content and data from different kinds of source files and build context objects
render - compile templates
write - write files out to the filesystem

Module files are arranged according to that now. Far less oddly-coupled things.
Though structure has changed quite a bit here, functionality hasn't much. I've just moved things around. I'm going to spend the rest of the day writing a bunch more tests to fill in some gaps...
/cc @mrgerardorodriguez

@lyzadanger I had one small question, but I think :+1:

This is looking great @lyzadanger! Well done! :grinning:


how to get contact persons using contact id or contact name?

contact persons are not included to responce


Action security

Codecov Report
Patch and project coverage have no change.

Comparison is base (ce0341d) 80.85% compared to head (1ce3b87) 80.85%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #929   +/-   ##
=======================================
  Coverage   80.85%   80.85%
=======================================
  Files         108      108
  Lines        3353     3353
  Branches      770      770
=======================================
  Hits         2711     2711
  Misses        637      637
  Partials        5        5

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


Getting typescript warning

🐛 Bug Report
Getting a red squiggly under eva[theme] on
<ApplicationProvider {...eva} theme={{ ...eva[theme], ...myTheme }}>
Element implicitly has an 'any' type because expression of type 'string' can't be used to index type 'typeof import("f:/Projects/my_takeouts_app/node_modules/@eva-design/eva/index")'.
  No index signature with a parameter of type 'string' was found on type 'typeof import("f:/Projects/my_takeouts_app/node_modules/@eva-design/eva/index")'.

To Reproduce
Steps to reproduce the behavior:
Follow this guide
https://akveo.github.io/react-native-ui-kitten/docs/guides/runtime-theming#register-theme
Expected behavior
No warning
UI Kitten and Eva version

Package
Version

@eva-design/eva
2.0.0

@ui-kitten/components
5.0.0

Environment information
VSCode
Windows 10 Pro

👋  there!
What is a theme in your code? Anyways, if you're trying to use it as an eva object key, make sure to tell TS it is light or dark.
type ThemeKey = 'light' | 'dark';
const theme: ThemeKey = 'light';

<ApplicationProvider {...eva} theme={{ ...eva[theme as "light" | "dark"], ...myTheme }}>

Will also work ;)


Mark the root as seen, so we don't recurse into it.

Fixes #1838.

Landed on af5b665640cfc1cfc0133a99299127896460f35a. Thanks.


Fix disk size calculation in Nutanix spec validation

What this PR does / why we need it:
Minor fix to the disk size calculation for disk size validation for Nutanix specs. It compares kilobytes to bytes before, which meant the disk size needed to be really large to pass the webhook.
Which issue(s) this PR fixes (optional, in fixes #<issue number> format, will close the issue(s) when PR gets merged):
Fixes #
Special notes for your reviewer:
Optional Release Note:

NONE

Signed-off-by: Marvin Beckers<EMAIL_ADDRESS>

/lgtm

/retest

/hold
pull-machine-controller-e2e-aws-spot-instance is likely not succeeding any time soon. I've opened #1150 to move to a different AZ.

/hold cancel

/retest
//lgtm

/retest

/retest

/retest


Update BlackjackGame.py

PR Title
Update BlackjackGame.py
Summary
These improvements enhance the gameplay experience and make the Blackjack code more robust and user-friendly
Description

Enhanced Betting Functionality:
Improved Card Handling:
Enhanced Game Logic:

The changes are as follows

Enhanced Betting Functionality:
Valid Bet Validation: The placeBet() method now ensures that players enter valid bets within the specified range and that they have sufficient funds.
Clear Error Messages: Informative messages are provided for invalid inputs or insufficient funds.

Improved Card Handling:
Ace Value Adjustment: The adjustAceValue() method correctly handles cases where an ace's value should be reduced to 1 to prevent a bust.

Enhanced Game Logic:
Simplified Winner Determination: The playRound3() method now uses a separate determine_winner() function to improve code readability and maintainability.

Additional Features:
Initial Bankroll: Players now start with an initial bankroll of 1000 units.
Betting Limits: Minimum and maximum betting limits have been introduced.

[dsg753]

Excellent work @dsg753 !!!

Thank you .

Are you on twitter @dsg753

Thank you
Yes Im on tweeter @dsg753
On Tue, Aug 27, 2024, 6:29 PM Adwait Dash @.***> wrote:

Are you on twitter @dsg753 https://github.com/dsg753
—
Reply to this email directly, view it on GitHub
https://github.com/DhanushNehru/Python-Scripts/pull/263#issuecomment-2312880860,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BKTGHM4MTUGM5ELJWA5IHELZTSLNDAVCNFSM6AAAAABNEH5K5GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJSHA4DAOBWGA
.
You are receiving this because you were mentioned.Message ID:
@.***>


CB-16424 Change Azure LB default sku to Standard

Changes the default SKU from BASIC to STANDARD. Note that the changes for adding the standard LB
were done as part of a previous change, so no additional logic needed to be added.
See detailed description in the commit message.

I don't think that it works, are you sure that you have tested this pull request? See more details here: https://jira.cloudera.com/browse/CB-12165

I don't think that it works, are you sure that you have tested this pull request? See more details here: https://jira.cloudera.com/browse/CB-12165

There are circumstances when the Standard SKU LB won't work, and in those we have an API in place to use either the Basic SKU instead or to disable the LB entirely. Ganesh mentioned it in his last comment on CB-12165. The JIRA where I added the API options is at https://jira.cloudera.com/browse/CB-13668. This intent behind this is to change the default, but the flexibility offered by the new API options is still in place.
However, I met with the networking team today and am going to take this down until I do a little more experimentation.


no matches found: [32,32]

I install according to the instructions and get:
zsh: no matches found: [32,32]

Can you be a bit more specific about what system you're using, what you tried, and what happened? Where in the process did installation fail? Logs would be great.

I have the same problem when checking the installation. I'm using macOS Mojave.
After running
pip install -e .

it says
Successfully installed atari-py-0.1.6 atomicwrites-1.2.1 attrs-18.2.0 box2d-py-2.3.5 cloudpickle-0.5.2 gym-0.10.9 joblib-0.13.0 more-itertools-4.3.0 mpi4py-3.0.0 pluggy-0.8.0 py-1.7.0 pytest-3.10.0 seaborn-0.8.1 spinup

But when running
python -m spinup.run ppo --hid [32,32] --env Walker2d-v2 --exp_name installtest

I got the error: zsh: no matches found: [32,32].

Could you try running
python -m spinup.run ppo --hid "[32,32]" --env Walker2d-v2 --exp_name installtest
and seeing if that works?

It works, thank you.

The issue appears to be that Z-Shell (zsh) interprets square brackets as meaning "check for a pattern" instead of just reading them as strings. Escaping the square brackets solves the problem. Tomorrow I'll decide on a revision for the docs.

I found the same issue. I just escaped them. like so -
python -m spinup.run ppo --hid [32,32] --env Walker2d-v2 --exp_name installtest

I'm on mac High Sierra, and get the error at the final step of the installation after pip installing on the spinningup repo. When I test the install with the test script:
python -m spinup.run ppo --hid [32,32] --env Walker2d-v2 --exp_name installtest
it returns:
zsh: no matches found: [32,32].
Adding "" resolves this issue:
python -m spinup.run ppo --hid "[32,32]" --env Walker2d-v2 --exp_name installtest
Thanks!

Looks like this works pip install openai"[datalib]"
thanks to https://github.com/openai/spinningup/issues/6#issuecomment-437325294

I have solved this by using: pip install openai"[embeddings]" and it worked!


Display 1 picture, avoid timeout to main TV screen

Hi,
I have a simolar issue that was posted in #260 but i did not see a solution.  I am trying to permantly display a single image w/o ever going to a screensaver rotating to other images.  I have disabled the screensaver though roku.  However, after about 1 1/2 hours, the photview app closes and TV returns to main home roku screen. I have talked to the TV manufacturer (it is a roku TV) and they claim this is not a funtion of tv software programming.  Is there a way to prevent the app from reverting back to tv home screen?
Thanks,
Bill

@wmutschler - When a single image is displayed it basically pauses all timers and sits there if nothing more to rotate. Assuming your screensaver is OFF, the channel it at the mercy of the Roku OS to keep the image displayed. It's possible after 1 1/2 hours, the Roku OS is crashing or going into some sleep mode.  In any case, it would be outside the scope of the channel.


Add test case for 4:2:2 fuzzing failure

running 1 test
Overrun in OBU bit buffer into next OBU
test test_encode_decode::fuzz_422_77x17_tile_cols_2_dav1d ... FAILED

failures:

---- test_encode_decode::fuzz_422_77x17_tile_cols_2_dav1d stdout ----
thread 'test_encode_decode::fuzz_422_77x17_tile_cols_2_dav1d' panicked at 'assertion failed: `(left == right)`

Diff < left / right > :
<1
>0

', src/test_encode_decode/mod.rs:144:7

Coverage increased (+0.08%) to 80.786% when pulling 993419f783928bc39384da55e38d8a036cf265ae on barrbrain:fuzz-fail into 62c206672524de6f9fc767cdcf03c6110a4ce0a3 on xiph:master.


Search autocomplete

Add an auto-complete component that provides suggestions for searches:

Tags
Recent searches
Bookmarks

Is it this feature that moves the cursor around while editing a tag?


About training problem with stage 2

Hi, I finished training model with stage 1, but with stage 2, I see the content_image_file in load_data function, my json file does not have this variable. So the content_prompt with the content_image_file are similar? Should I need to add this variable in my json file before training in stage 2?
Thank you so much, I look forward to hearing from you soon.

content_image_file is the content input image that has been processed by contouring. Please follow
our tutorial to prepare it (preferably resized to 512x512) and add this variable in json file.

Thank you so muchhh.

:)

Hi, T_T I have a question that, I do not know how to inference the code after training with new checkpoints, could you please explain to me?
Thank you so much.

In my folder, just has model.safetensors, model_1.safetensors, optimizer.bin, random_states_0.pkl and random_state_1.pkl

Hope you achieve the results you desire. :)

Yeah, thank you so much. I hope so ^^.


Question about the residual

Greetings.
In models/sesr.py, self.linear_blocks were set to have in_filters = out_filters = FLAGS.int_features.
Which implied that, when trained with collapsed linear blocks (LinearBlock_c), the residual will be added to the weight tensor wt. (models/model_utils.py ln:139)
However, in models/sesr.py ln:72, if self.residualFlag is set to true, it seems that an extra residual will be added to the input.
Will this cause any problem?
Thanks for your great work btw.
Wenny

Hi Wenny, thanks for the question. The self.residualFlag is set to True only for LinearBlock_e and not for LinearBlock_c. Please see the comment here https://github.com/ARM-software/sesr/blob/master/models/sesr.py#L38-L44. You are correct, if we did two residual adds in case of LinearBlock_c, there may be issues. Only LinearBlock_c has internal residual add and LinearBlock_e does not have this residual. Since we wanted to support both Expanded Linear Block (LinearBlock_e) and Collapsed Linear Block (LinearBlock_c) during training, we used this self.ResidualFlag to support it. Hope this helps.

Dear kbhardwa,
Thanks for your quick reply. That makes everything clear.
Best regards,
Wenny


Change target button for DirectInput/PS3 Mode in documentation

The recent reversion (#612) undid the edit from #570
The target hotkey for DirectInput/PS3 has been corrected to be B3 again.

Awesome. Thanks!


Update deprecated Grammarly server

Language server
grammarly
Requested feature
The current Grammarly server is deprecated (See: repo). The new server is this one.
It would be great if someone could update it! :)
Other clients which have this feature
No response

Thanks for your report. The configs here are best-effort:

It is hoped that these configurations serve as a "source of truth", but they are strictly best effort. If something doesn't work, these configs are useful as a starting point, which you can adjust to fit your environment.

If you have an improvement or fix, please send a PR!
If you have a specific question we'll try to answer it (keeping in mind the configs in this repo are best-effort and unsupported).
If you found a bug in the core lsp module, the best way to get it fixed is to describe steps to reproduce it without the particular LSP server and other factors particular to your environment. Or better, by adding a failing test case to lsp_spec.lua, which has code to setup a fake LSP server to simulate various scenarios.


Card completion everywhere!!!!

This has a bunch of changes.
The top nav now has auto-completion, but it is in a drop down.  There is the same number of clicks right now, but i'm definitely looking for feedback there.
The card page needs to put the code for the card into the search box in order to get to the card you actually selected.  Otherwise cards whose names are substring matches for other cards will show the search results page, not the card you selected in the dropdown.
Top Nav

Card Page

Advanced Search Page

Deployed to production.


QfTF/vfs: DEFAULT_MODULE_MAPPINGS missing module/callable culling

Ok, right now (since we're working on TF/vfs) the function is set to be verbose and comment about everything it removes from the default module mappings list.  It does the following:

checks that the module is importable
checks that the specified function/class exists
checks that the specified function/class is callable

..rejects anything that doesn't fit, returns a culled list.

This one should be good to go (though appveyor is queueing, possibly from #234 occupying it)


New package: XINGInc.MidorizakiKasumi version 1.1.2

[ ] Have you signed the Contributor License Agreement?
[ ] Have you checked that there aren't other open pull requests for the same manifest update/change?
[ ] This PR only modifies one (1) manifest
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.6 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

Automatic Validation ended with: >  >

2024-02-28 00:38:30.805 [CLI ] Installer [X64,msi,Unknown,ja-JP] not applicable: Machine is not compatible with X64 >
2024-02-28 00:38:39.689 [CLI ] Installer [X64,msi,Unknown,ja-JP] not applicable: Machine is not compatible with X64 >
2024-02-28 00:38:39.690 [CLI ] No suitable installer found for manifest CeVIO.CeVIOCS7 with version <IP_ADDRESS>   (Automated response - build 841.)

https://github.com/microsoft/winget-pkgs/pull/141268#issuecomment-1969383286

Automatic Validation ended with:
(Automated response - build 855.)


Disable post-submit Gold failures entirely

Follow up to https://github.com/flutter/flutter/pull/100308
Related issues

Fixes #100276
#100304

#100308 should have disabled post-submit failures, but while diagnosing that, the main issue from Gold appeared to be resolved by @kjlubick and the tree went green.
This did not last long though, more image changes rolled in and Gold appears to not have ingested them properly again. To unblock the tree this will disable the post-submit failures until Gold is working again. Will continue to monitor in #100304
Pre-launch Checklist

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] I read the Tree Hygiene wiki page, which explains my responsibilities.
[x] I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
[x] I signed the CLA.
[x] I listed at least one issue that this PR fixes in the description above.
[x] I updated/added relevant documentation (doc comments with ///).
[x] I added new tests to check the change I am making, or this PR is test-exempt.
[x] All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Also cc this week's gardener @christopherfujino :)
I'll need to land this on red to green the tree, or at least part of the tree redness.

Manually landing to green the part of the tree that is red due to Gold. There is a benchmark test that is currently breaking the tree that is unrelated to this.

Thanks @Piinks!


Eyecandy used in README

Hi, may I ask what is the program used in this pic?

I wrote a python script to achieve a similar result but this one looks very neat!

That is my small program written in Go!
https://gist.github.com/cocopon/177716dff3580e69df53431399fb86ef

That's a very cool script!


fix(edit/workload): add weight to tabs

Fixed tab order to prevent tab order from changing when switching languages
https://github.com/rancher/rancher/issues/34802

The target of this PR isn't a live branch and there are no plans on releasing changes made to it.


File changes in PR

Using API, how do I get files changed in a PR. The PR API should return GitPullRequest which should contain GitCommitRef[]. As per the document GitCommitRef should contain GitChange[]  where each GitChange will show what changed.
However none of this comes when sending a Get request to PR endpoint. Even with includeCommits=true no actual changes are shown.
I also tried to use the diff endpoint to get changes between branches but to no avail. This is the response I get from diff endpoint which is utterly useless.
{"allChangesIncluded":true,"changeCounts":{},"changes":[],"commonCommit":"c03a8711ea215a80f9283e10d104eebccd17bd43","baseCommit":"76ea7f4ac6d008a7947d810f296ae360317e9e33","targetCommit":"152314ddc8bf05d12d871f381cb500489ebbc371","aheadCount":1,"behindCount":83}

Simply put - how do I get list of files changed and changes between them in a PR?

It's not obvious from the docs, but you need to use the PR Iterations API.  Use this to list the iterations in the PR, then you want to get the number of the latest iteration.  Then, you can use PR Iteration Changes to get the list of changes for an iteration, or between two iterations.  If you want all changes, use the latest iteration and set the compareTo=0.
Once you have the list of changes, you need to use the Items API to get the actual contents.
Hopefully that helps until we can get some better samples posted.
cc @steved0x

@mmitrik Thanks. I can get list of files changed in the PR using iteration changes. But I am still not able to get the diff between files. The Items api just returns be the file for a given commit. Is there a way I can see what changed in a file (lines added/removed/modified)?

So I was working on trying to create an extension for vscode that integrates with AZDO and wanted to get the diff of the files before I landed on this issue. Don't even remember when I raised it 😸. Well anyways, is there an update for this? @mmitrik You would have moved on to other roles so can you recommend someone I can connect with directly?
cc: @tedchamb since you are the top contributor.

Not positive of the best person for this.  @aaronhallberg might be able to advise.

Not positive of the best person for this.  @aaronhallberg might be able to advise.

@goflores, who would be the best person to help with this REST API question?

@goflores, who would be the best person to help with this REST API question?

@ankitbko Try to swap target and base versions, that will do the trick. But it won't show you the diff, only path of changed and change type, you can check samples here
Use this to get diff:
Step1: Use the Rest API to get commit id from PR.
GET https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/diffs/commits?api-version=6.0
Step2: You could use the Rest API to get the commit by commit id.
GET https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/commits/{commitId}?changeCount={changeCount}&api-version=5.0
In the Rest API Result, you need to record the value of “parentsid”, “path”.
Step3: You could use the following API to get the diff content.
Post https://dev.azure.com/{organization}/{project}/_api/_versioncontrol/fileDiff?__v=5&diffParameters={value}&repositoryId={repositoryid}
The {value} is Json type.
Here is an example:
{"originalPath":"filepath","originalVersion":"Parentsid","modifiedPath":"filepath","modifiedVersion":"commitid","partialDiff":true,"includeCharDiffs":true}
You could add the value to the API URL.

@ankitbko Try to swap target and base versions, that will do the trick. But it won't show you the diff, only path of changed and change type, you can check samples here
Use this to get diff:
Step1: Use the Rest API to get commit id from PR.
GET https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/diffs/commits?api-version=6.0
Step2: You could use the Rest API to get the commit by commit id.
GET https://dev.azure.com/{organization}/{project}/_apis/git/repositories/{repositoryId}/commits/{commitId}?changeCount={changeCount}&api-version=5.0
In the Rest API Result, you need to record the value of “parentsid”, “path”.
Step3: You could use the following API to get the diff content.
Post https://dev.azure.com/{organization}/{project}/_api/_versioncontrol/fileDiff?__v=5&diffParameters={value}&repositoryId={repositoryid}
The {value} is Json type.
Here is an example:
{"originalPath":"filepath","originalVersion":"Parentsid","modifiedPath":"filepath","modifiedVersion":"commitid","partialDiff":true,"includeCharDiffs":true}
You could add the value to the API URL.

Thank you. I didnt see fileDiff api in the documentation though.

Thank you. I didnt see fileDiff api in the documentation though.

_api/_versioncontrol/fileDif is gioving 404 for my instance.


Download blocked

After using the Marzipano Tool, Google is now blocking the downloaded file, claiming its malicious. I cant find a way to disable this, either.

Can you attach a screenshot?

Mine has been blocked too. Here's a screenshot of the alert at the bottom of the screen and also the Google page it leads to.

I'm getting the Block message as well, is there a work around?

I just downloaded via FireFox. No block on there.

Due to the number of issues it was causing, we decided to omit the webserver executable from generated tours. Let us know if the error persists.

Thanks @melmilloway  that worked ... and I just retried Chrome and that works now @tjgq   Thanks for the help


Screenshot was NaN% different from saved snapshot with undefined different pixels.

Hey!
This is very very cool. Nice work :)
I just gave it a crack in our project but getting the following:
Screenshot was NaN% different from saved snapshot with undefined different pixels.
  See diff for details: undefined

It's saving the screenshot correctly but haven't got a run to pass yet with/without a saved image available in the screenshots dir.
Is there anything special I have to do on first run? I've tried with both suggested env options
updateSnapshots=true failOnSnapshotDiff=false but no luck getting the test to pass.
I also followed the suggested instructions,
and have tried the following options in my commands:
addMatchImageSnapshotCommand({
  capture: 'viewport', // capture viewport in screenshot
})

addMatchImageSnapshotCommand({
  failureThreshold: 0.03, // threshold for entire image
  failureThresholdType: 'percent', // percent of image or number of pixels
  customDiffConfig: { threshold: 0.1 }, // threshold for each pixel
  capture: 'viewport', // capture viewport in screenshot
})

Thanks for any help you can provide.

Thanks!
In addition to addMatchImageSnapshotCommand, are you also adding the plugin?
It should be added in /cypress/plugins/index.js with:
const {
  addMatchImageSnapshotPlugin,
} = require('cypress-image-snapshot/plugin');

module.exports = (on, config) => {
  addMatchImageSnapshotPlugin(on, config);
};

Yup! Have that in there.

Hmm so on the first run cy.matchImageSnapshot should not cause any tests to fail and just record snapshot images to use on later runs.
I just tried a first run locally without any issues by installing https://github.com/palmerhq/cypress-image-snapshot/tree/master/examples, removing /cypress/snapshots, and running the tests.
Would you mind sharing your cypress.json config and Cypress version?  I'm wondering if there is an edge case with a specific setup that we're not handling.

Interesting - I just tried deleting cypress/snapshots and trying with/without args to cy.matchImageSnapshot() and still got the same error.
Sure:
{
  "$schema": "https://on.cypress.io/cypress.schema.json",
  "baseUrl": "http://localhost:3000",
  "viewportWidth": 1000,
  "viewportHeight": 1500,
  "video": true,
  "defaultCommandTimeout": 20000,
  "ignoreTestFiles": "*.inprogress.js",
  "projectId": REDACTED,
  "reporter": "junit",
  "reporterOptions": {
    "mochaFile": "cypress/results/results-[hash].xml",
    "toConsole": "false"
  }
}

Cypress v3.0.1

Ah okay so since Cypress's screenshot functionality has changed a lot across 3.x.x versions, you'll need to use<EMAIL_ADDRESS><2.0.0 with<EMAIL_ADDRESS>or upgrade Cypress.

Also just added a note to the README as this is confusing behavior.

Woo! You hit the nail on the end - that fixed it. I think we can now close this issue with the note in the README. As an added bonus, upgrading Cypress fixed a long-term issue I was having on my machine - so thanks for being the impetus for upgrading. 🎉

@crosscompile Hi Jack, the issue is still there, because iam using
on(after:screenshot) event & addMatchImageSnapshotPlugin(on, config);  in plugins/index.js,
Either the code written in after screenshot function or cypress image snapshot is working, both are not working simultaniously.
please look into this issue which i have posted in cypress
https://github.com/cypress-io/cypress/issues/6648
versions:
cypress: ^3.8.3,
cypress-image-snapshot: ^3.1.1


.ge domains

Problem
There's no whois server registered to the IANA Route Database Zone for all .ge domains.
Conclusion
That makes all .ge domains fails.

Please refer to http://www.registration.ge/ for whois lookup


Performance test reports "IOError: [Errno 4] Interrupted system call"

Happened in https://grpc-testing.appspot.com/job/gRPC_performance_pull_requests/11263/consoleFull
No test appeared to be failing but failed at almost-completion time I think

Fixed with #10715


flag/config to avoid print cicd label changes, ignoreForDiff

Command

[ ] check-image-updates
[ ] delete
[X] deploy
[X] diff
[ ] helm-pull
[ ] helm-update
[ ] list-images
[ ] list-targets
[ ] poke-images
[ ] prune
[ ] render
[ ] seal
[ ] validate
[ ] version

Who are you?
option to disable labels changes in diff
What do you want to do?
Execute as:
kluctl deploy -t "apealive" --dry-run

Avoid to print:

Well I assumed sth like below will do the job either, but possibly having a flag would either help (for CLI operations in cases we don't care the change):
ignoreForDiff:
  - group: cicd-1
    fieldPathRegex: metadata.labels.kluctl.*
  - group: cicd-2
    fieldPathRegex: metadata.labels.argo.*

Why do you need that?
cleaner output on CLI

There are already the --ignore-tags and --ignore-annotations flags when using kluctl diff. These are not available for kluctl deploy however, as it would be unclear what "ignoring" means when deploying.

you are right. I will change my default make target for "kluctl diff" (with ignore flags) rather then "kluctl deploy --dry-run"


container-entrypoint-initdb.d sql

Would be nice to show how to please get data out of an existing database into container-entrypoint-initdb.d/*.sql files.
I'm mounting oradata:/opt/oracle/oradata and instead of opaque .dbf files, I want .sql to work with.
I think the steps are something like:

docker exec oracle expdp SYSTEM/$(PASSWORD)@XE dumpfile=export.dmp logfile=export.log
docker exec oracle impdp dumpfile=export.dmp sqlfile=export.sql

Though it would be good if you could please confirm since it doesn't quite work for me:
docker exec oracle expdp SYSTEM/letmein@XE dumpfile=export.dmp logfile=export.log

Export: Release <IP_ADDRESS>.0 - Production on Thu Jan 26 09:00:02 2023
Version <IP_ADDRESS>.0

Copyright (c) 1982, 2021, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 21c Express Edition Release <IP_ADDRESS>.0 - Production
ORA-39001: invalid argument value
ORA-39000: bad dump file specification
ORA-31641: unable to create dump file "/opt/oracle/admin/XE/dpdump/export.dmp"
ORA-27038: created file already exists
Additional information: 1

make: *** [export] Error 1

❯ make dmp2sql
docker exec oracle impdp dumpfile=export.dmp sqlfile=ddl.sql

Import: Release <IP_ADDRESS>.0 - Production on Thu Jan 26 09:00:38 2023
Version <IP_ADDRESS>.0

Copyright (c) 1982, 2021, Oracle and/or its affiliates.  All rights reserved.

Username: UDI-00005: unexpected End-Of-File encountered while reading input.

My goal is to establish a test database that quickly stands up in a CI/CD pipeline for a test suite to be run. Any other tips to get this going would be great. I think I need your "slim-faststart" images right?

Hi @kaihendry,
Thanks for using these images!
The container doesn't provide any built-in functionality to extract data from a database, that's left to the user to decide how, where and in what format.
However, there are multiple ways to unload data from an Oracle Database, export & import being one of them.
If you just want SQL scripts, the best way is probably using Oracle's SQLcl command-line tool and the UNLOAD command.
I'm curious though, in what scenarios would you have data in the database that hasn't been first inserted via setup/init scripts or similar given that these images provide an empty database (aside from the Oracle Database internal data dictionary, etc)? Why the need to extract data from the database, could you elaborate more, please? I'd like to understand the process that you have in mind.
Yes, generally speaking the *-faststart images are the best for CI/CD environments as they already have an uncompressed, ready-to-go database and are hence faster to start up.

Hi! I've put my reasoning upon https://stackoverflow.com/questions/75332894/

The goal is to export an existing test Oracle database to SQL so that it can be run in a test pipeline using a Docker images's /container-entrypoint-initdb.d bootstrap. Currently we mount an oradata export, but it's opaque what the actual data is, hence the desire to use SQL so that it can be maintained via git.

The SQLcl command appears unpackaged In your Docker image or anywhere else, do you have any suggestions there? Ideally want to script this.
The scenario I guess is that is that it's a legacy project that never started using a testing database bootstrapped from setup/init scripts.
Thank you!

Hi @kaihendry,
Ah yes, thanks for that additional explanation!
The only tooling from Oracle that allows you to unload DDL and data into SQL statements is SQL Developer and SQLcl (both use the same common core).
Other third-party tools may provide similar functionality and might be a better fit for what you are looking for.
If you want SQL statements, your best bet from an official Oracle tooling aspect is SQLcl, however, be aware that its UNLOAD functionality is table-based, i.e. you have to run it table by table.
SQLcl is indeed not packaged with my images as it is a standalone Java-based command-line utility. However, you can either just pull it from the web as part of the pipeline (https://download.oracle.com/otn_software/java/sqldeveloper/sqlcl-latest.zip) (Note, it requires Java 11 or up to run) or pull it as a separate container from container-registry.oracle.com/database/sqlcl:latest and add it to the same network as the database container in order for it to connect.
Note, SQLcl also has built-in Liquibase support (lb command) that can generate a changelog of the current state of the database. I don't know too much about Liquibase but it may be another way to get to SQL statements, see https://docs.liquibase.com/workflows/liquibase-community/updating-the-database.html
Hope this helps!

docker pull container-registry.oracle.com/database/sqlcl:latest
Error response from daemon: Get "https://container-registry.oracle.com/v2/": x509: certificate signed by unknown authority

Does one need a user/pass to pull that sqlcl image btw?

I'm hoping to show the flow from your install.sql -> export.sql here: https://github.com/kaihendry/oracle-sql
Guess my aim is to track any differences between export and import SQL. 😬

No, no user/pass is needed.
It pulls fine for me:
$ podman pull container-registry.oracle.com/database/sqlcl:latest
Trying to pull container-registry.oracle.com/database/sqlcl:latest...
Getting image source signatures
Copying blob b316fdf08e1d done
Copying blob d26998a7c52d done
Copying blob 547ce718d15e done
Copying blob c07ee00b160d done
Copying config aa5931f47c done
Writing manifest to image destination
Storing signatures
aa5931f47c27e387adc5c912851ac65684f48641851c34592516e5247932d613

I wonder whether my setup ignored certificate issues, a quick google just pointed me to this, perhaps it helps: https://stackoverflow.com/questions/50768317/docker-pull-certificate-signed-by-unknown-authority
Oh nice, thanks for using that sample data too!
Hm, how will you ignore/detect a difference in the position of a given SQL statement?

Tbh I have no idea how I can tell there is a difference between the export/import SQL. The exported SQL is bound to be very different based on my experiments with Oracle SQL Developer Export Wizard.
I wonder how AWS DMS/SCT knows they've actually synced the data or not. Databases seem really hard to sync compared to an S3 blob!!

Yes, the exported SQL will include storage and other logically unrelated properties to the data and data model structure.

Are there some tools to clean up the produced SQL?
Want to avoid any noise for bootstrapping this oracle test container 😬

Not sure about cleanup, but I'd check out Liquibase and its SQL mode. Given that it is a DDL change-tracking tool, it might have what you need.

Just in case it can be helpful, I had to do something similar the other day using SQLcl. If you just need DDL and SQL inserts, here is our quick and dirty code.

Thanks @akridge .. I actually do something like that already https://github.com/kaihendry/oracle-sql/blob/main/unload.sh
Though indeed it suffers from issues like being per table and it feels unstable on large tables.
Thanks to @gvenzl there is a workaround for the table by table restore if you disable key constraints and add it back in later. :sweat: https://dabase.com/blog/2023/oracle/#there-is-no-oracle-dump


BUG: modal after modal (fade/transition mode)

sorry for my english :)
if i close a modal and direct after open an new modal and fade is active,
the class in body will removed after the new modal is all ready open.
so the overflow will affect on the body, not on the modal.
FIX: bootstrap.js
--- modal.js.org	2018-05-04 18:20:23.851752230 +0200
+++ modal.js	2018-05-04 18:22:37.011368935 +0200
@@ -186,6 +186,7 @@
   if (transition) {

   $(document.body).removeClass(ClassName.OPEN)
   const transitionDuration  = Util.getTransitionDurationFromElement(this._element)

   $(this._element)

@@ -310,7 +311,6 @@
this._element.setAttribute('aria-hidden', true)
this._isTransitioning = false
this._showBackdrop(() => {

   $(document.body).removeClass(ClassName.OPEN)
   this._resetAdjustments()
   this._resetScrollbar()
   $(this._element).trigger(Event.HIDDEN)

Bug reports must include a live demo of the problem. Per our contributing guidelines, please create a reduced test case via CodePen or JS Bin and report back with your link, Bootstrap version, and specific browser and OS details.

here you can see the problem:
https://codepen.io/multigcs/pen/QraOPX

@multigcs you have two differents ways to fix your issue instead of editing a lib (which is a very bad practice) :

Remove fade class on your modals (by doing that you'll remove modal's animation)
Listening Modal's events, Modal use transition so you have to wait to the end of this transition, so you can do that :

$('#myModal1').on('hidden.bs.modal', function () {
  $('#myModal2').modal('show')
})

Next button HTML
<button onClick="$('#myModal1').modal('hide')" type="button" class="btn btn-danger">Next</button>

And everything will work correctly 😉


Working on own dataset

Hello sir,
I tried your algorithm with predefined probv dataset and it works fine. Thank you for the code sir.
I wanted to create my own dataset, so I made one HR and temporal several LRs LR000,LR001,LR002 etc..But I am not sure how to get the QM000.png, QM001.png (the quality maps) and the SM.png (status map). Is there any software where I can make them in batch? what's the difference between the quality map and the status map?. I read your paper, so it it like cloud and cloud shadows removal?, what else could be removed sir?
Am new to image domain so any explanation would be of great help

Hi @bibuzz,
Thanks for your interest in our repository.
I think that you could find all your answer in THIS publication, where the authors of the Proba-V dataset have described which tools and pre-processing steps they applied to generate all data.

Thank you for the response. Beginning to read the paper. I have a doubt, If I don't include the status map and quality map for your algorithm, i mean remove that part of the code, then super resolution will not work?

Yes, it will work perfectly fine.

For my dataset , its 10m 384x384 (HR) and 20m 192x192 (LRs),  so then scale is 2, I only have 4 temporal LRs at the moment
Is my settings for this step correct?
#-------------
General Settings
#-------------
PATH_DATASET = 'dataset' # pre-processed dataset path
name_net = 'RAMS' # name of the network
LR_SIZE = 48 # pathces dimension
SCALE = 2 # upscale of the proba-v dataset is 3
HR_SIZE = LR_SIZE * SCALE # upscale of the dataset is 3
OVERLAP = 48 # overlap between pathces
CLEAN_PATH_PX = 0.85 # percentage of clean pixels to accept a patch
band = 'NIR' # choose the band for the training
checkpoint_dir = f'ckpt/{band}_{name_net}_retrain' # weights path
log_dir = 'logs' # tensorboard logs path
submission_dir = 'submission' # submission dir
and
#-------------
Network Settings
#-------------
FILTERS = 48 # features map in the network
KERNEL_SIZE = 3 # convolutional kernel size dimension (either 3D and 2D)
CHANNELS = 4 # number of temporal steps
R = 8 # attention compression
N = 12 # number of residual feature attention blocks
lr = 1e-4 # learning rate (Nadam optimizer)
BATCH_SIZE = 48 # batch size
EPOCHS_N = 120 # number of epochs
I am asking because I tried various combinations and the first patch of HR is not matching the first patch of LR visually in this step
print first patch and check if LR is in accordance with HR
fig, ax = plt.subplots(1,2, figsize=(10,10))
ax[0].imshow(X_train_patches[0,:,:,0], cmap = 'gray')
ax[1].imshow(y_train_patches[0,:,:,0], cmap = 'gray')

Hello Sir,
I have removed the status map and quality maps and consider all my images(taken from sentinel2) to be cloud free and clear.
HR image - 10m resolution - 384x384
LR images - 20m resolution - 192x192 (scale 2)
I made patches and my first patch of HR matches first patch of LR, I skipped the clarity patches checks step .
But in this step I am getting error
build rams network
rams_network = RAMS(scale=SCALE, filters=FILTERS,
kernel_size=KERNEL_SIZE, channels=CHANNELS, r=R, N=N)
the settings I gave were:
#-------------
General Settings
#-------------
PATH_DATASET = 'dataset' # pre-processed dataset path
name_net = 'RAMS' # name of the network
LR_SIZE = 48 # pathces dimension
SCALE = 2 # upscale of the proba-v dataset is 3
HR_SIZE = LR_SIZE * SCALE # upscale of the dataset is 3
OVERLAP = 48 # overlap between pathces
CLEAN_PATH_PX = 0.85 # percentage of clean pixels to accept a patch
band = 'NIR' # choose the band for the training
checkpoint_dir = f'ckpt/{band}_{name_net}_retrain' # weights path
log_dir = 'logs' # tensorboard logs path
submission_dir = 'submission' # submission dir
#-------------
Network Settings
#-------------
FILTERS = 48 # features map in the network
KERNEL_SIZE = 3 # convolutional kernel size dimension (either 3D and 2D)
CHANNELS = 4 # number of temporal steps
R = 8 # attention compression
N = 12 # number of residual feature attention blocks
lr = 1e-4 # learning rate (Nadam optimizer)
BATCH_SIZE = 48 # batch size
EPOCHS_N = 120 # number of epochs
This is the error I get

ValueError                                Traceback (most recent call last)
 in
1 # build rams network
----> 2 rams_network = RAMS(scale=SCALE, filters=FILTERS,
3                  kernel_size=KERNEL_SIZE, channels=CHANNELS, r=R, N=N)
D:\SuperResolution\RAMS\utils\network.py in RAMS(scale, filters, kernel_size, channels, r, N)
137
138     # Upscaling
--> 139     x = conv3d_weightnorm(scale ** 2, (3,3,3), padding='valid')(x)
140     x = layers.Lambda(lambda x: x[...,0,:])(x)
141     x = layers.Lambda(lambda x: tf.nn.depth_to_space(x, 3))(x)
~\AppData\Roaming\Python\Python39\site-packages\tensorflow\python\keras\engine\base_layer.py in call(self, *args, **kwargs)
994     # >> model = tf.keras.Model(inputs, outputs)
995     if _in_functional_construction_mode(self, inputs, args, kwargs, input_list):
--> 996       return self._functional_construction_call(inputs, args, kwargs,
997                                                 input_list)
998
~\AppData\Roaming\Python\Python39\site-packages\tensorflow\python\keras\engine\base_layer.py in _functional_construction_call(self, inputs, args, kwargs, input_list)
1132         layer=self, inputs=inputs, build_graph=True, training=training_value):
1133       # Check input assumptions set after layer building, e.g. input shape.
-> 1134       outputs = self._keras_tensor_symbolic_call(
1135           inputs, input_masks, args, kwargs)
1136
~\AppData\Roaming\Python\Python39\site-packages\tensorflow\python\keras\engine\base_layer.py in _keras_tensor_symbolic_call(self, inputs, input_masks, args, kwargs)
865       return nest.map_structure(keras_tensor.KerasTensor, output_signature)
866     else:
--> 867       return self._infer_output_signature(inputs, args, kwargs, input_masks)
868
869   def _infer_output_signature(self, inputs, args, kwargs, input_masks):
~\AppData\Roaming\Python\Python39\site-packages\tensorflow\python\keras\engine\base_layer.py in _infer_output_signature(self, inputs, args, kwargs, input_masks)
905           self._maybe_build(inputs)
906           inputs = self._maybe_cast_inputs(inputs)
--> 907           outputs = call_fn(inputs, *args, **kwargs)
908
909         self._handle_activity_regularization(inputs, outputs)
~\AppData\Roaming\Python\Python39\site-packages\tensorflow\python\autograph\impl\api.py in wrapper(*args, **kwargs)
693       except Exception as e:  # pylint:disable=broad-except
694         if hasattr(e, 'ag_error_metadata'):
--> 695           raise e.ag_error_metadata.to_exception(e)
696         else:
697           raise
ValueError: in user code:
C:\Users\Upasana\miniconda2\envs\RAM\lib\site-packages\tensorflow_addons\layers\wrappers.py:152 call  *
    outputs = self.layer(inputs)
C:\Users\Upasana\AppData\Roaming\Python\Python39\site-packages\tensorflow\python\keras\engine\base_layer.py:1057 __call__  **
    outputs = call_fn(inputs, *args, **kwargs)
C:\Users\Upasana\AppData\Roaming\Python\Python39\site-packages\tensorflow\python\keras\layers\convolutional.py:253 call
    outputs = self._convolution_op(inputs, self.kernel)
C:\Users\Upasana\AppData\Roaming\Python\Python39\site-packages\tensorflow\python\util\dispatch.py:206 wrapper
    return target(*args, **kwargs)
C:\Users\Upasana\AppData\Roaming\Python\Python39\site-packages\tensorflow\python\ops\nn_ops.py:1131 convolution_v2
    return convolution_internal(
C:\Users\Upasana\AppData\Roaming\Python\Python39\site-packages\tensorflow\python\ops\nn_ops.py:1261 convolution_internal
    return op(
C:\Users\Upasana\AppData\Roaming\Python\Python39\site-packages\tensorflow\python\ops\nn_ops.py:3129 _conv3d_expanded_batch
    return gen_nn_ops.conv3d(
C:\Users\Upasana\AppData\Roaming\Python\Python39\site-packages\tensorflow\python\ops\gen_nn_ops.py:1425 conv3d
    _, _, _op, _outputs = _op_def_library._apply_op_helper(
C:\Users\Upasana\AppData\Roaming\Python\Python39\site-packages\tensorflow\python\framework\op_def_library.py:748 _apply_op_helper
    op = g._create_op_internal(op_type_name, inputs, dtypes=None,
C:\Users\Upasana\AppData\Roaming\Python\Python39\site-packages\tensorflow\python\framework\func_graph.py:599 _create_op_internal
    return super(FuncGraph, self)._create_op_internal(  # pylint: disable=protected-access
C:\Users\Upasana\AppData\Roaming\Python\Python39\site-packages\tensorflow\python\framework\ops.py:3561 _create_op_internal
    ret = Operation(
C:\Users\Upasana\AppData\Roaming\Python\Python39\site-packages\tensorflow\python\framework\ops.py:2041 __init__
    self._c_op = _create_c_op(self._graph, node_def, inputs,
C:\Users\Upasana\AppData\Roaming\Python\Python39\site-packages\tensorflow\python\framework\ops.py:1883 _create_c_op
    raise ValueError(str(e))

**ValueError: Negative dimension size caused by subtracting 3 from 2 for '{{node weight_normalization_421/compute_weights/conv3d_408/Conv3D}} = Conv3D[T=DT_FLOAT, data_format="NDHWC", dilations=[1, 1, 1, 1, 1], padding="VALID", strides=[1, 1, 1, 1, 1]](Placeholder, weight_normalization_421/compute_weights/mul, ^weight_normalization_421/compute_weights/Identity)' with input shapes: [?,?,?,2,48], [3,3,3,48,4].**

Any help would be appreciated

I noticed in utils/network.py
#-------------
Settings
#-------------
MEAN = 7433.6436 # mean of the proba-v dataset
STD = 2353.0723 # std of proba-v the dataset
Since I am using sentinel images and not of prob-v dataset, then do I need to change the MEAN and STD, How do I calculate them?

Hi @bibuzz!

Any help would be appreciated

Please clone the repository again, there was an issue in how our code was managing an even number of temporal frames. Now it should work with your 4 channels. Anyway, note that out Temporal Reduction Block  works better with an odd number (minimum of 3), so you should consider adding a temporal step to your dataset.

#-------------
MEAN = 7433.6436 # mean of the proba-v dataset
STD = 2353.0723 # std of proba-v the dataset
Since I am using sentinel images and not of prob-v dataset, then the MEAN and STD will be different ? How do I calculate them?

Those two values are used in the normalization and denormalization layers and they were simply computed on all the training images of the dataset. Just compute mean and standard deviation of your images pixel values.


Adds typing

Description
Adds type hinting to the application code and a mypy based test to enforce static analysis checks pass. I feel like this will raise the quality of code by eliminating entire classes of bugs before they can be written.
Checklist

[x] Add tests for these changes
[ ] Test coverage is not decreased
[ ] Entire test suite passes

Codecov Report

Merging #74 into master will decrease coverage by 0.61%.
The diff coverage is 91.86%.

@@            Coverage Diff             @@
##           master      #74      +/-   ##
==========================================
- Coverage   97.83%   97.21%   -0.62%
==========================================
  Files          19       19
  Lines        1015     1042      +27
  Branches      166      170       +4
==========================================
+ Hits          993     1013      +20
- Misses         14       17       +3
- Partials        8       12       +4

Impacted Files
Coverage Δ

src/spellbot/__init__.py
95.76% <90.00%> (-0.90%)
:arrow_down:

src/spellbot/assets.py
100.00% <100.00%> (ø)

src/spellbot/data.py
100.00% <100.00%> (ø)

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 850e997...d8904c4. Read the comment docs.


Error when installing plugins (NeoVim)

When I try install plugin on Windows 10 I get the following error:

my minimal vimrc:
call plug#begin('~/nvim/plugged')
Plug 'tomasr/molokai'
call plug#end()

If I use a simple Vim(gVim) everything is fine.

Type:

[x] Bug
[ ] Enhancement
[ ] Feature Request
[ ] Question

OS:

[ ] All/Other
[ ] Linux
[ ] OS X
[x] Windows

Vim:

[ ] Terminal Vim
[ ] GVim
[x] Neovim

https://github.com/junegunn/vim-plug/issues/599#issuecomment-282140942

@sprainbrains your image seems broken ;) Can you put the actual error text you have? I think I might have the same issue, but without seeing the error it's hard to say!


Throw exceptions when the websocket dies.

From my testing 24/24 in the last week with this client implementation, I ran through an issue:
My websocket process was still running, however I was not getting any information from the chain more.  There should be a catch mechanism when the flow of data stops.

The socket now re-connects automatically be default (configurable via socket option autoReconnect).
The onClose and onError options on the socket can be used to detected closing/error of the connection.
I'm not convinced we should add first-class support for message not flowing anymore. Will think about it.
However, will add related issues around reconnection (max retry, error on unable to reconnect) and error throwing when required.

@raphaelgodro New development happens on https://github.com/dfuse-io/client-js/, hopefully, the reported error is now fixed on the new client (some work was made to have a keep alive to ensure TCP connection is closed even if only half of the connection is non-working).
New discussion can happen on the new repository if needed.


Typo line 453 GoodVibes.py "trhular"

In line 453 there's a typo in the error message
else: log.Fatal("\n   FATAL ERROR: Wrong number of arguments used.\n   Correct format: GoodVibes.py (-qh grimme/trhular) (-f cutoff_freq) (-t temp) (-c concn) (-v scalefactor) g09_output_file(s)\n")
truhlar is the correct command, not trhular.

Whoops! Reverted back to an old typographical error when updating something else. Thanks for spotting, now fixed


S3 open fails on files that contain '@' in their path

Problem description
Be sure your description clearly answers the following questions:

What are you trying to achieve?
What is the expected result?
What are you seeing instead?

Steps/code to reproduce the problem
In order for us to be able to solve your problem, we have to be able to reproduce it on our end.
Without reproducing the problem, it is unlikely that we'll be able to help you.
Include full tracebacks, logs and datasets if necessary.
Please keep the examples minimal (minimal reproducible example).
When trying to use smart_open.open on a S3 file that contains '@' in its name, I get the following exception:
 with smart_open.open(
 File \"/usr/lib/python3.8/site-packages/smart_open/smart_open_lib.py\", line 224, in open
 binary = _open_binary_stream(uri, binary_mode, transport_params)
 File \"/usr/lib/python3.8/site-packages/smart_open/smart_open_lib.py\", line 400, in _open_binary_stream
 fobj = submodule.open_uri(uri, mode, transport_params)
 File \"/usr/lib/python3.8/site-packages/smart_open/s3.py\", line 221, in open_uri
 parsed_uri = parse_uri(uri)
 File \"/usr/lib/python3.8/site-packages/smart_open/s3.py\", line 110, in parse_uri
 access_id, access_secret = auth.split(':')
ValueError: too many values to unpack (expected 2)

You can reproduce this scenario using the following code:
from smart_open.s3 import parse_uri

url = "s3://bucket-name/a12b34cd-5e67-890f-1234-56d789012e34/Re: Subject @ Tue 18 Sept 2019 11:15am - 11:30am (john@example.com).eml"
parse_uri(url)

Output:
File ..../py3.8/lib/python3.8/site-packages/smart_open/s3.py:110, in parse_uri(uri_as_string)
    108 if '@' in uri and ':' in uri.split('@')[0]:
    109     auth, uri = uri.split('@', 1)
--> 110     access_id, access_secret = auth.split(':')
    112 head, key_id = uri.split('/', 1)
    113 if '@' in head and ':' in head:

ValueError: too many values to unpack (expected 2)

Versions
Please provide the output of:
import platform, sys, smart_open
print(platform.platform())
print("Python", sys.version)
print("smart_open", smart_open.__version__)

macOS-12.4-arm64-arm-64bit
Python 3.8.16 (default, Dec  7 2022, 01:24:57)
[Clang 14.0.0 (clang-14<IP_ADDRESS>)]
smart_open 6.3.0

Checklist
Before you create the issue, please make sure you have:

[X] Described the problem clearly
[X] Provided a minimal reproducible example, including any required data
[X] Provided the version numbers of the relevant software

seems related https://github.com/RaRe-Technologies/smart_open/pull/776

Seems to work fine after merge of #776 👍 :
>>> from smart_open.s3 import parse_uri
>>> url = "s3://bucket-name/a12b34cd-5e67-890f-1234-56d789012e34/Re: Subject @ Tue 18 Sept 2019 11:15am - 11:30am (john@example.com).eml"
>>> parse_uri(url)
{'scheme': 's3', 'bucket_id': 'bucket-name', 'key_id': 'a12b34cd-5e67-890f-1234-56d789012e34/Re: Subject @ Tue 18 Sept 2019 11:15am - 11:30am (john@example.com).eml', 'port': 443, 'host': 's3.amazonaws.com', 'ordinary_calling_format': False, 'access_id': None, 'access_secret': None}

@rileypeterson, that's amazing! Could you please let me know when the next release is scheduled? Thank you!

@mayk0gan I don't know when the next release is scheduled

released in v6.4.0


Update MD file on new branch 2017-11-24_11-30-57

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

split/updateTestRef1.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


rbd: fix use-after-free of addr

Signed-off-by: Xiubo Li<EMAIL_ADDRESS>

I would probably do it with a label but this is fine too.

Okay, thanks @idryomov


search-bar-fixed

Closes #535

Description
I have fixed the search now it will look good on all devices and made some other things responsive as well.
Screenshots

Checklist

[x] My code adheres to the established style guidelines of the project.
[x] I have included comments in areas that may be difficult to understand.
[x] My changes have not introduced any new warnings.
[x] I have conducted a self-review of my code.

@k-deepak04 I have made the search bar responsive and fit at center , and I have also made some headings responsive as well.

@k-deepak04 One suggestion the previous search bar was looking better ,Earlier I fixed the issue with that search bar , but when I pulled the latest changes to remain up to date with main branch , this search bar got changed like above one. Hence I solved the issue using the above search bar.


Dataset2 of report SCCM_Report-Site_Discovery.rdl is not efficient, cause timeout issue when there are > 1000 rows

[Enter feedback here]
Found one performance issue of this report: SCCM_Report-Site_Discovery.rdl. Dataset2 query 2 tables together without join. It cause DB timeout, and report cannot be shown.
SELECT COUNT(DISTINCT IESystemInfo.[IEVer0]) AS SystemIEVerCount
,COUNT(DISTINCT IEURLInfo.Domain0) AS DomainCount
,COUNT(DISTINCT IEURLInfo.[URL0]) AS URLCount
,CAST(MIN(IESystemInfo.[IEVer0]) AS INT) AS SystemIEVerMin
,COUNT(DISTINCT IEURLInfo.[ActiveXGUID0]) AS ActiveXGuidCount
,MIN(IEURLInfo.[DocMode0]) AS DocModeMin
FROM [dbo].[v_GS_IESYSTEMINFO] AS IESystemInfo,
[dbo].[v_GS_IEURLINFO] AS IEURLInfo
It should be updated to below with join.
SELECT COUNT(DISTINCT IESystemInfo.[IEVer0]) AS SystemIEVerCount
,COUNT(DISTINCT IEURLInfo.Domain0) AS DomainCount
,COUNT(DISTINCT IEURLInfo.[URL0]) AS URLCount
,CAST(MIN(IESystemInfo.[IEVer0]) AS INT) AS SystemIEVerMin
,COUNT(DISTINCT IEURLInfo.[ActiveXGUID0]) AS ActiveXGuidCount
,MIN(IEURLInfo.[DocMode0]) AS DocModeMin
FROM [dbo].[v_GS_IESYSTEMINFO] AS IESystemInfo
inner join
[dbo].[v_GS_IEURLINFO] AS IEURLInfo on IESystemInfo.resourceID=IEURLInfo.ResourceID

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

ID: 2883b89f-a5ec-c549-3a9e-22c010d0b527
Version Independent ID: 6518eff2-f389-a4c7-0d8d-f3ba47c650cc
Content: Enterprise Site Discovery Step by Step Guide
Content Source: edgeenterprise/edge-ie-mode-site-discovery.md
Product: microsoft-edge
GitHub Login: @appcompatguy
Microsoft Alias: collw

I independently came to the same conclusion. The query as it stands contains a cross-join. Increase in data exponentially aggravates performance. After analyzing the two views being joined I believe this should never have been a cross join. It only makes sense as an INNER JOIN. I assume all the DISTINCT counts are a sloppy way to circumvent the duplicates created by the cross join.


fix(@angular-devkit/build-angular): address vulnerability in webpack-dev-server

webpack-dev-server <3.11.0 contains a low severity vulnerability due to one of its dependencies (yargs-parser).  This change updates to 3.11.0 to remove the vulnerability.
https://npmjs.com/advisories/1500
Closes: #17716

Can you update protractor to v7 as well?


Question: What is the purpose of dist/immutable-nonambient.d.ts?

Why does it exist?
What happen if it is removed?

Sorry for my ignorance, since I'm the new owner of this project. Where is the dist/ directory? I don't see it in the source or the installed version from npm.

I opened this issue on the wrong repo. I'm sorry.


Bug: Crash on adding a pointer deref at 0x91044624 for One Piece Unlimited Adventure

Bug report content:

One piece Unlimited Adventure (Japanese version) it crashes after i try to add another offset to this address [0x91044624]

Unable to reproduce, waiting for reply from original reporter.


Added isort to pre_commit file

Changelog / Overview
As we might have https://pre-commit.ci/ activated soon, I think having isort automated is only beneficial.
Note that I did not run pre-commit install yet (https://pre-commit.com/#3-install-the-git-hook-scripts)
I got the isort script from here: https://github.com/PyCQA/isort/blob/07cf92116d1d880aa54f8e664804d9e8ffdfeb2a/docs/configuration/pre-commit.md

Motivation

Explanation for Changes

Testing Status

Further Comments

Checklist

[ ] I have read the Contributing Guidelines
[ ] I have written a descriptive PR title (see top of PR template for examples)
[ ] I have written a changelog entry for the PR or deem it unnecessary
[ ] My new functions/classes either have a docstring or are private
[ ] My new functions/classes have tests added and (optional) examples in the docs
[ ] My new documentation builds, looks correctly formatted, and adds no additional build warnings

Reviewer Checklist

[ ] The PR title is descriptive enough
[ ] The PR is labeled correctly
[ ] The changelog entry is completed if necessary
[ ] Newly added functions/classes either have a docstring or are private
[ ] Newly added functions/classes have tests added and (optional) examples in the docs
[ ] Newly added documentation builds, looks correctly formatted, and adds no additional build warnings

Looks good 👍🏻


[libp11] Build error

Building package libp11[core]:arm64-linux...
-- Using community triplet arm64-linux. This triplet configuration is not guaranteed to succeed.
-- [COMMUNITY] Loading triplet configuration from: /build/vcpkg/triplets/community/arm64-linux.cmake
-- Installing port from location: /root/.cache/vcpkg/registries/git-trees/3e1dfab09a42b5321a76f7df1f131f66aa06ac24
-- Note: libp11 only supports dynamic library linkage. Building dynamic library.
-- Using cached /build/vcpkg/downloads/libp11-9ca6a71c890b5583c8af3b4900172626bca55e72.tar.gz
-- Cleaning sources at /build/vcpkg/buildtrees/libp11/src/26bca55e72-1572b0719a.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /build/vcpkg/downloads/libp11-9ca6a71c890b5583c8af3b4900172626bca55e72.tar.gz
-- Applying patch store_key_cert.patch
-- Using source at /build/vcpkg/buildtrees/libp11/src/26bca55e72-1572b0719a.clean
-- Getting CMake variables for arm64-linux-dbg
-- Getting CMake variables for arm64-linux-rel
-- Generating configure for arm64-linux
-- Finished generating configure for arm64-linux
-- Prerun shell with arm64-linux
-- Configuring arm64-linux-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:127 (message):
Command failed: /bin/bash -c "V=1 ./../src/26bca55e72-1572b0719a.clean/configure  "--disable-silent-rules" "--verbose" "--enable-shared" "--disable-static" "--prefix=/build/europa/build-debug-arm64/vcpkg_installed/arm64-linux/debug" "--bindir=\${prefix}/../tools/libp11/debug/bin" "--sbindir=\${prefix}/../tools/libp11/debug/sbin" "--libdir=\${prefix}/lib" "--includedir=\${prefix}/../include" "--datarootdir=\${prefix}/share/libp11""
Working Directory: /build/vcpkg/buildtrees/libp11/arm64-linux-dbg
Error code: Subprocess killed
See logs for more information:
/build/vcpkg/buildtrees/libp11/config-arm64-linux-dbg-out.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_configure_make.cmake:796 (vcpkg_execute_required_process)
/root/.cache/vcpkg/registries/git-trees/3e1dfab09a42b5321a76f7df1f131f66aa06ac24/portfile.cmake:11 (vcpkg_configure_make)
scripts/ports.cmake:142 (include)
Error: Building package libp11:arm64-linux failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with git pull and ./vcpkg update.
Then check for known issues at:
https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+libp11
You can submit a new issue at:
https://github.com/microsoft/vcpkg/issues/new?template=report-package-build-failure.md&title=[libp11]+Build+error
including:
package: libp11[core]:arm64-linux -> 3.4.3#3
vcpkg-tool version: 2021-11-24-unknownhash
vcpkg-scripts version: 5ddd7f026 2021-12-01 (1 year, 7 months ago)

root@5c59eb86fbbb:/build/vcpkg/buildtrees/libp11# cat config-arm64-linux-dbg-out.log
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking build system type... aarch64-unknown-linux-gnu
checking host system type... aarch64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... root@5c59eb86fbbb:/build/vcpkg/buildtrees/libp11#

Could you please provide the error log? /build/vcpkg/buildtrees/libp11/config-arm64-linux-dbg-out.log

vcpkg-tool version: 2021-11-24-unknownhash
vcpkg-scripts version: https://github.com/microsoft/vcpkg/commit/5ddd7f02689b7c5aab78711d77f61db5d2e5e79c 2021-12-01 (1 year, 7 months ago)

You are using a very old vcpkg version. Maybe try to update vcpkg first: https://learn.microsoft.com/en-us/vcpkg/about/faq#how-do-i-update-vcpkg

vcpkg-tool version: 2021-11-24-unknownhash
vcpkg-scripts version: 5ddd7f0 2021-12-01 (1 year, 7 months ago)

You are using a very old vcpkg version. Maybe try to update vcpkg first: https://learn.microsoft.com/en-us/vcpkg/about/faq#how-do-i-update-vcpkg

doesn't resolve the issue. The building was successful in last week.

root@5c59eb86fbbb:/build/vcpkg/buildtrees/libp11# cat config-arm64-linux-dbg-out.log checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether make supports nested variables... (cached) yes checking build system type... aarch64-unknown-linux-gnu checking host system type... aarch64-unknown-linux-gnu checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... root@5c59eb86fbbb:/build/vcpkg/buildtrees/libp11#

Please provide the complete file, I don't see the error message

This issue hasn’t been updated in 3 month, if it is still an issue, please reopen this issue.


JWT does not contain sub claim

One of the standard fields in a JWT is sub (subject), which is the global ID of the user in the system, but Spring apparently does not generate it. It does generate user_name, but that is not a standard. Proposal: the sub field should match the userId field that the Kafka streams use. In the case that people are using the ManagementPortal for user and ID management, that would be the user ID, if an external user management system is used and that system exposes the userId that researchers want to use, could sub be set to be the externalId?

According to the JWT spec:

The sub (subject) claim identifies the principal that is the subject of the JWT. The claims in a JWT are normally statements about the subject. The subject value MUST either be scoped to be locally unique in the context of the issuer or be globally unique. The processing of this claim is generally application specific. The sub value is a case-sensitive string containing a StringOrURI value. Use of this claim is OPTIONAL.

#42 adds sub, iat and iss claims to the JWT, as well as a roles claim. The decoded payload now looks like this:
{
  "sub": "admin",
  "aud": [
    "res_ManagementPortal"
  ],
  "sources": [],
  "user_name": "admin",
  "scope": [
    "read",
    "write"
  ],
  "roles": [
    ":ROLE_SYS_ADMIN",
    ":ROLE_USER",
    "TestProject:ROLE_PROJECT_ADMIN"
  ],
  "iss": "ManagementPortal",
  "exp":<PHONE_NUMBER>,
  "iat":<PHONE_NUMBER>,
  "authorities": [
    "ROLE_SYS_ADMIN",
    "ROLE_USER"
  ],
  "jti": "1f1aabae-f4c9-4faa-a0bb-05c33a220f63",
  "client_id": "ManagementPortalapp"
}

@blootsvoets, @nivemaham, i think we should leave the 'system roles', i.e. the roles without associated project, out of the roles claim. An application like Rest-API does not need to know the ManagementPortal roles of the user, only the project roles. What do you think? If you agree i'll do one more commit to #42, and merge it to dev.

Merged to dev, closing this since sub claim is now present in the JWT.


Fix cache config for https origins

Fixes cache config for https origins.
There was a bug, that https origins would result in edge remap targets of https://... and corresponding edge parent lines of port=443 and corresponding mid remap sources of https:// ... 443.
Except that Edge-Mid communication has always been HTTP, and the Mid parents are :80, and Mids are listening on 80, and Mids don't have the certificates necessary to serve HTTPS.
So that config resulted in Edges making TLS HTTPS requests to the Mid's port 80. Which should fail, but seems to sometimes succeed, possibly due to Keep-Alives from other requests.
This fixes HTTPS Origins to properly use http://...:80 remaps everywhere. We would like to add internal HTTPS support in the future, but that's a much larger feature. Today, ATC doesn't support that. Moreover, that shouldn't depend on whether the Origin is HTTPS.
The correct bug fix here is to use http and 80 for internal cache communication, regardless of the origin protocol.
Which this fix does.
Includes tests.
Includes changelog.
No docs, no interface change.
Which Traffic Control components are affected by this PR?

Traffic Control Cache Config (T3C, formerly ORT)

What is the best way to verify this PR?
Run tests. Generate config with an HTTPS Origin on a Delivery Service that uses mids, verify config is generated to properly use http and port 80 for all internal edge-mid communication.
If this is a bugfix, which Traffic Control versions contained the bug?
Probably all of them.
PR submission checklist

[x] This PR has tests
[x] This PR has documentation
[x] This PR has a CHANGELOG.md entry
[x] This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY (see the Apache Software Foundation's security guidelines for details)

Sadly this doesn't seem to work for the MSO case. There doesn't seem to be a way to mark a server as priority https and trying to change the dummy origin to https didn't seem to do anything.

It doesn't add the ability to HTTPS MSO, no. That'll take more work (which is on our short list FWIW).
But it should make MSO correctly use http for edge--mid communication, even if the MSO DS OrgServerFQDN field is https (which I think is a bug regardless of MSO, and I think this fixes for both non-MSO and MSO).

This works for the simple delivery service case, although there remains a parent.config entry for https (in addition to http) on the edge.

I'm looking into this now. I don't think it breaks anything, but it's definitely not ideal. I'll try to find and fix.


fix: zsh completion to work with source

Anther thing to mention, I tried to tested it since I have bash, and I haven't been able to get completion working for flags. I tried upgrading from default bash (v3) to v5, and upgraded bash-completion from v1 to v2. Also tried hardcode completion results. Trying to figure out what I'm missing in my bash config.

@waltzofpearls The newer bash version is indeed required. You also need to install bash completion (brew install bash-completion@2) and after that the following in your .bashrc should do the trick:
  [[ -r "/opt/homebrew/etc/profile.d/bash_completion.sh" ]] && . "/opt/homebrew/etc/profile.d/bash_completion.sh"

source <(mysocketctl completion bash)


URL crawler ERROR

Hi there, I am running anything-llm in docker and have issues with the URL crawler on several websites.
e.g. I want to scan http://get-nord.de and it gave me following errors. The
Working on http://get-nord.dehttps://www.linkedin.com/showcase/get-nord/?originalSubdomain=de...
looks wrong to me.
...
Working on http://get-nord.de...
Working on http://get-nord.de/besuchen/newsletter...
Working on http://get-nord.dehttps://www.linkedin.com/showcase/get-nord/?originalSubdomain=de...
Traceback (most recent call last):
File "/app/collector/v-env/lib/python3.10/site-packages/urllib3/connection.py", line 174, in _new_conn
conn = connection.create_connection(
File "/app/collector/v-env/lib/python3.10/site-packages/urllib3/util/connection.py", line 72, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "/usr/lib/python3.10/socket.py", line 955, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/collector/v-env/lib/python3.10/site-packages/urllib3/connectionpool.py", line 714, in urlopen
httplib_response = self._make_request(
File "/app/collector/v-env/lib/python3.10/site-packages/urllib3/connectionpool.py", line 415, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/app/collector/v-env/lib/python3.10/site-packages/urllib3/connection.py", line 244, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "/usr/lib/python3.10/http/client.py", line 1282, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.10/http/client.py", line 1328, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.10/http/client.py", line 1277, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.10/http/client.py", line 1037, in _send_output
self.send(msg)
File "/usr/lib/python3.10/http/client.py", line 975, in send
self.connect()
File "/app/collector/v-env/lib/python3.10/site-packages/urllib3/connection.py", line 205, in connect
conn = self._new_conn()
File "/app/collector/v-env/lib/python3.10/site-packages/urllib3/connection.py", line 186, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f59ad809810>: Failed to establish a new connection: [Errno -2] Name or service not known
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/collector/v-env/lib/python3.10/site-packages/requests/adapters.py", line 486, in send
resp = conn.urlopen(
File "/app/collector/v-env/lib/python3.10/site-packages/urllib3/connectionpool.py", line 798, in urlopen
retries = retries.increment(
File "/app/collector/v-env/lib/python3.10/site-packages/urllib3/util/retry.py", line 592, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='get-nord.dehttps', port=80): Max retries exceeded with url: //www.linkedin.com/showcase/get-nord/?originalSubdomain=de (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f59ad809810>: Failed to establish a new connection: [Errno -2] Name or service not known'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/collector/main.py", line 80, in
main()
File "/app/collector/main.py", line 56, in main
crawler()
File "/app/collector/scripts/link.py", line 92, in crawler
parse_links(links)
File "/app/collector/scripts/link.py", line 123, in parse_links
req = session.get(link, timeout=20)
File "/app/collector/v-env/lib/python3.10/site-packages/requests/sessions.py", line 602, in get
return self.request("GET", url, **kwargs)
File "/app/collector/v-env/lib/python3.10/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
File "/app/collector/v-env/lib/python3.10/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
File "/app/collector/v-env/lib/python3.10/site-packages/requests/adapters.py", line 519, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='get-nord.dehttps', port=80): Max retries exceeded with url: //www.linkedin.com/showcase/get-nord/?originalSubdomain=de (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f59ad809810>: Failed to establish a new connection: [Errno -2] Name or service not known'))

Bug: Link following does not differentiate between a FQDN and a relative path. If a FQDN is found it should skip that link if the hostname origins are not the same since you can then wind up scraping the entire internet on accident.


[MM-45555] - Update pricing modal to reflect updated design

Summary
Update pricing modal design
Ticket Link
https://mattermost.atlassian.net/browse/MM-45555
https://mattermost.atlassian.net/browse/MM-45879
Screenshots
Check spinwick for different pricing modal states
Release Note
NONE

/update-branch

/update-branch

E2E tests not automatically triggered, because PR has no approval yet. Please ask a developer to review and then try again to attach the QA label.

Two issues I noticed:

I upgraded to Professional but actually was upgraded to Enterprise.

Most likely an existing bug but once you upgrade to Enterprise (even though the intention was Professional), then go to System Console > Subscription page, click View Plans, the Pricing Modal allows you to click Upgrade again because it's enabled.

Cws@10102020

Hey Maria. I have failed to reproduce issue 1. On the current spinwick, I upgraded to professional successfully. I have fixed issue 2

Noticed the Start Trial is showing even though they are in Professional - starting a trial gives an error in this case (we may be preventing it in the backend)
@johndavidlugtu is it expected for them to start a trial when already in Professional ?

/e2e-test

Successfully triggered e2e testing!
https://git.internal.mattermost.com/qa/cypress-ui-automation/-/pipelines/223779

In self-managed we should surface the same View Plans button we have in the subscription card but in the License page (see below) - I've added a ticket to address that separately from this PR https://mattermost.atlassian.net/browse/MM-46060

Noticed the Start Trial is showing even though they are in Professional - starting a trial gives an error in this case (we may be preventing it in the backend)
@johndavidlugtu is it expected for them to start a trial when already in Professional ?
Also, @annelieseklein thoughts on the way the legal text is pushing down the Top Features section compared to the others?

If they haven't activated a Trial before, they should be able to start an Enterprise trial while on Starter or Professional.

If they haven't activated a Trial before, they should be able to start an Enterprise trial while on Starter or Professional.

Now I remember the discussions around this, activating a trial during Professional is not as straight forward because 1- we currently don't have a way at the end of the trial to downgrade back to Professional, we currently automatically downgrade to Starter. 2- There would be some billing implication that we would need to sort out.
@johndavidlugtu if we still want to support this, we need to hash out those details and would be covered in a separate work. Feel free to open a ticket if you would still consider this a valuable addition.
In the meantime for the purposes of this PR, @AGMETEOR we need to disable the Start trial if they are currently in Professional as it is not yet supported.

If they haven't activated a Trial before, they should be able to start an Enterprise trial while on Starter or Professional.

Now I remember the discussions around this, activating a trial during Professional is not as straight forward because 1- we currently don't have a way at the end of the trial to downgrade back to Professional, we currently automatically downgrade to Starter. 2- There would be some billing implication that we would need to sort out. @johndavidlugtu if we still want to support this, we need to hash out those details and would be covered in a separate work. Feel free to open a ticket if you would still consider this a valuable addition.
In the meantime for the purposes of this PR, @AGMETEOR we need to disable the Start trial if they are currently in Professional as it is not yet supported.

Thanks for the context @marianunez ! It's definitely something we should support at some point. That said, I don't think this is a priority right now

/update-branch

@AGMETEOR The legalese should go actually above the Top features in this new plans modal. Also can we please reduce the spacing between the legalese text?

@AGMETEOR also the grey part of the legalese text should be 56% Center channel text - so probably just a little lighter than what you have it here


Update Find test commands and Result Display

Details

[x] Added additional find test commands for each predicate class.
[x] Reformatted the result display panel after the user enters a command.

Codecov Report

Merging #188 (3c5c43c) into master (d622a87) will increase coverage by 1.13%.
The diff coverage is 100.00%.

@@             Coverage Diff              @@
##             master     #188      +/-   ##
============================================
+ Coverage     47.34%   48.48%   +1.13%
- Complexity      355      368      +13
============================================
  Files            89       89
  Lines          1679     1679
  Branches        184      184
============================================
+ Hits            795      814      +19
+ Misses          815      797      -18
+ Partials         69       68       -1

Impacted Files
Coverage Δ

...rc/main/java/seedu/trackermon/model/show/Show.java
83.72% <100.00%> (ø)

...rmon/model/show/NameContainsKeywordsPredicate.java
71.42% <0.00%> (ø)

...rmon/model/show/ShowContainsKeywordsPredicate.java
70.00% <0.00%> (+40.00%)
:arrow_up:

...rmon/model/show/TagsContainsKeywordsPredicate.java
71.42% <0.00%> (+71.42%)
:arrow_up:

...on/model/show/RatingContainsKeywordsPredicate.java
71.42% <0.00%> (+71.42%)
:arrow_up:

...on/model/show/StatusContainsKeywordsPredicate.java
71.42% <0.00%> (+71.42%)
:arrow_up:

Continue to review full report at Codecov.

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


A fix for lfec's file args issue

This addresses issue #109.

These changes have already been included, the last one in 23bdfb2067d942cbc9dbdd81602f9ed1d880e75d so I am closing the request.


Is there a way to remove a highlight from a selection instead a whole element?

I'm trying to unmark a single selection but removeHighlights removes all the highlights.

There is no such functionality right now. You can only remove highlight(s) from a given element (http://mir3z.github.io/texthighlighter/doc/TextHighlighter.html#removeHighlights).
However, you are more than welcome to implement this by yourself and then request a pull.

This took me a while to figure out as well, since I was trying to use .click(), which doesn't add listeners to nodes that don't exist yet.
The solution was to use .on() instead:
$(document.body).on('click','.highlighted', function(e){
	hltr.removeHighlights(e.target);
});


Duplicate InputEventJoypadButtons

Godot version:
3.2
Issue description:
I have an XBox One controller. Whenever I press any button, I get double input events.
This
func _input(event: InputEvent) -> void:
	if not event.is_action_type():
		return
	if event is InputEventJoypadButton:
		prints(event.button_index, event.pressed, event.pressure)

results in
0 True 0
0 True 0
0 False 0
0 False 0

This is weird though, because I don't remember having this issue before and it's the same in 3.1 and 3.0. I checked if my controller isn't somehow duplicated in the system, but it doesn't seem to be the case and also non-Godot games don't have this issue.
Minimal reproduction project:
ReproductionProject.zip

Seems to work fine here on Linux with a generic PS3/PC controller, as well as with a Steam Controller emulating an Xbox 360 controller:
0 True 0 Prepare for trouble
0 False 0 and make it double

It does sound like something's off with your device, especially if it used to work fine but now you get the same issue from 3.0 to 3.2.

@KoBeWi : Are you on OS X, by any chance? I don't know if it's the same issue, we have recently noticed duplicated input events that only seems to happen on OS X...

I'm on Windows 10. The issue seems to have stopped btw :I

I can't reproduce this on win10 / xbox360 controller.
However, there's a similar issue on master: https://github.com/godotengine/godot/pull/40770#issuecomment-667544538
But rather than duplicated events, _input() is called twice

Well, I can still reproduce it (on a Xbox ONE controller as I mentioned). The issue doesn't happen with an emulated Xbox 360 controller.
The master issue is unrelated.

Ok, I found out what is the potential cause, although it doesn't make much sense xd
My controller is wireless. I used to plug it with cable, but the socket broke and I switched to using it wireless. The duplicate input happens only when the controller is connected via bluetooth. It doesn't happen on USB.

@KoBeWi  The duplicate input happens only when the controller is connected via bluetooth. It doesn't happen on USB.

I tried using Xbox One Controller via bluetooth and it's working fine, but I'm using the xpadneo driver (Manjaro Linux).
Btw, I came from #21550.


Question about the Raspberry pi example

I have followed the guide and now i have the deployments running but the pod keeps crashing. When i check the actual container the logs says:
I0613 14:02:34.782924       1 light_mapper.go:168] Changing the state of the device to online
I0613 14:02:34.784542       1 light_mapper.go:242] Watching on the device twin values for device: led-light-instance-01
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x66e450]
goroutine 1 [running]:
main.equateTwinValue(0x0, 0x0, 0x0, 0x400007d2f0)
/var/opt/godir/src/github.com/kubeedge/examples/led-raspberrypi/light_mapper.go:248 +0x198
main.main()
/var/opt/godir/src/github.com/kubeedge/examples/led-raspberrypi/light_mapper.go:280 +0x16c

@gilles537 This problem is caused since the desired value has not been set yet. We have to set the desired value for "power-status" in the device instance
I'll raise a PR for the error handling here & edit the device instance placed at "led-raspberrypi/sample-crds/led-light-device-instance.yaml" to include the desired value


gh:524 - xs method added to series and frame.pyi

[x] Closes #524
[x] Tests added: Please use assert_type() to assert the type of any return value

axis=1 still fails pytest I have tried everything it shows a Key Error

thanks @ramvikrams

Thanks sir