PolygonComponent does not respond to hover and click event regions

What happened?
Creating a descendant of PolygonComponent did not respond correctly trigger hover and click events.
What do you expect?
When using over a PolygonComponent it should trigger hover and click events when rotated.
How can we reproduce this?
import 'dart:math';

import 'package:flame/components.dart';
import 'package:flame/events.dart';
import 'package:flame/game.dart';
import 'package:flame/input.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';

class GameWorld extends World {
  GameWorld(this.gameController);

  GameController gameController;
}

class GameController {}

class SpaceGame extends FlameGame with ScrollDetector, ScaleDetector, KeyboardEvents {
  SpaceGame({
    required super.world,
  }) {
    // camera = CameraComponent.withFixedResolution(width: 800, height: 600);
  }

  @override
  Color backgroundColor() => const Color(0x00000000);

  @override
  Future<void> onLoad() async {
    final vertices = ([Vector2(100, 100), Vector2(100, 50), Vector2(50, 50), Vector2(50, 100)]);

    Random r = Random();
    const vBase = 20.0;
    for (var i = 0; i < 10; ++i) {
      world.add(Actor(vertices,
          velocity: Vector2((r.nextDouble() * vBase) - (vBase / 2), (r.nextDouble() * vBase) - (vBase / 2)),
          position: Vector2((r.nextDouble() * 5000) - 2500, (r.nextDouble() * 5000) - 2500),
          angle: r.nextDouble() * 2 * pi,
          spin: (r.nextDouble() * 2) - 2));
    }
  }

  @override
  KeyEventResult onKeyEvent(
    RawKeyEvent event,
    Set<LogicalKeyboardKey> keysPressed,
  ) {
    if (keysPressed.contains(LogicalKeyboardKey.arrowLeft)) {
      camera.moveBy(Vector2(-10, 0));
    }
    if (keysPressed.contains(LogicalKeyboardKey.arrowRight)) {
      camera.moveBy(Vector2(10, 0));
    }
    if (keysPressed.contains(LogicalKeyboardKey.arrowUp)) {
      camera.moveBy(Vector2(0, -10));
    }
    if (keysPressed.contains(LogicalKeyboardKey.arrowDown)) {
      camera.moveBy(Vector2(0, 10));
    }

    return KeyEventResult.ignored;
  }

  static const zoomPerScrollUnit = 0.02;

  @override
  void onScroll(PointerScrollInfo info) {
    // camera.viewfinder.zoom += info.scrollDelta.global.y.sign * zoomPerScrollUnit;
    // clampZoom();
    print("zoom");
  }

  @override
  void onScaleUpdate(ScaleUpdateInfo info) {
    final currentZoom = camera.viewfinder.zoom;
    final delta = info.delta.global;
    final change = delta.y.sign * zoomPerScrollUnit;
    final newZoom = (currentZoom + change).clamp(0.05, 3.0);
    camera.viewfinder.zoom = newZoom;
    // camera.viewfinder.position.translate(-delta.x, -delta.y);
  }
}

class Actor extends PolygonComponent with HoverCallbacks, TapCallbacks {
  Actor(
    super.vertices, {
    required this.velocity,
    required Vector2 super.position,
    required super.angle,
    required this.spin,
  }) : super(
          size: Vector2.all(100),
          // anchor: Anchor.center,
          paint: Paint()..color = Color(Random().nextInt(0xffffffff)),
        ) {
    color = paint.color;
    debugMode = true;
  }
  final Vector2 velocity;
  final double spin;
  late Color color;

  @override
  void update(double dt) {
    super.update(dt);
    position += velocity * dt;
    // angle += spin * dt;
  }

  @override
  void onHoverEnter() {
    print('hover enter');
    paint.color = Colors.black;
  }

  @override
  void onHoverExit() {
    print('hover exit');
    paint.color = color;
  }

  @override
  bool onTapDown(TapDownEvent event) {
    print('tapped');
    return true;
  }
}

void main() {
  final spaceGame = SpaceGame(world: GameWorld(GameController()));
  runApp(
    GameWidget(game: spaceGame),
  );
}

What steps should take to fix this?
No response
Do have an example of where the bug occurs?
No response
Relevant log output
No response
Execute in a terminal and put output into the code block below
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.16.9, on Ubuntu 23.04 6.2.0-39-generic, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2023.1)
[✓] IntelliJ IDEA Ultimate Edition (version 2023.3)
[✓] VS Code (version unknown)
    ✗ Unable to determine VS Code version.
[✓] Connected device (2 available)
[✓] Network resources

• No issues found!

Affected platforms
Linux, Web
Other information
No response
Are you interested in working on a PR for this?

[ ] I want to work on this

What Flame version is this with? As far as I know we've never had a method with this signature in TapCallbacks (but I might be wrong):
  bool onTapDown(TapDownEvent event) {

That bool return is from the old events

Its the hover events that are an issue.  I added the onTapDown event handler to test if it was a proble too (and it is.  The version of Flame is 1.15.

I see, and you said the RectangleComponent was working like it should?
Definitely seems like a bug.

RectangleComponent behaves correctly.  Here is a screen shot that shows how the component reacts to the mouseover event when the mouse is in the inverse quadrant of the debug mode rectangle.

Alright, now I fixed it! (it wasn't the fault of #2930 at all, it just happened to break it).
@NathanielAJohnson can you try depending on the branch (fix/polygon-component-vertices) and see if it fixes the issue for you?
Replace flame with the following in your pubspec to depend on the branch:
dependencies:
  flame:
    git:
      url: https://github.com/flame-engine/flame.git
      ref: fix/polygon-component-vertices
      path: packages/flame

This fixed it!  I also verified it against  anchor : Anchor.center and it works as expected.  I changed the polygon to a triangle and it worked as well.  Thank you.

Super, thanks for checking!


Virtual keyboard

Virtual keyboard support only us-US layout for now.
It's reachable under /keyboard.html

Hi Rouven,
Well done for the job ! I'm so excited to test this feature ! It will be done asap.
I hope you provide a french keyboard layout for me =D
Jérémy

Everyone can create keyboard layouts. It's quite easy and well documented ;)

@miroof Hi dude,
question, did you find time to test this feature ?
Do you think you could merge it in recalbox branch ? =)

Hi,
Sorry I was so busy ... I'll take time to take a look this WE and merge it.
Miroof
Le ven. 9 déc. 2016 à 11:37, rockaddicted<EMAIL_ADDRESS>a
écrit :

@miroof https://github.com/miroof Hi dude,
question, did you find time to test this feature ?
Do you think you could merge it in recalbox branch ? =)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/miroof/node-virtual-gamepads/pull/19#issuecomment-265983854,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABIBcNxBCHkal8KO0ZfPLDSiDvAJebk1ks5rGS-GgaJpZM4KPPMC
.


Implementation bug in SqlAuthenticationToken constructor accepting unix epoch

Driver version
12.0
SQL Server version
Any
Client Operating System
Any
JAVA/JVM version
Any
Table schema
Any
Problem description
The implementation of  public SqlAuthenticationToken(String accessToken, long expiresOn) is different from its document. The doc says expiresOn is in seconds while java.util.Date is accepting timestamp in milliseconds.
Expected behavior
Convert the input expiresOn to milliseconds when creating java.util.Date
Actual behavior
Output of what you actually see.
Error message/stack trace
Complete error message and stack trace.
Any other details that can be helpful
Add any other context about the problem here.
JDBC trace logs
Provide the JDBC driver trace logs.  Instructions can be found here: https://docs.microsoft.com/sql/connect/jdbc/tracing-driver-operation

Thank you for the PR, we'll take a look and get back to you with our decision.


Limit flychecking to just a few languages

From valloric: "The only languages for which ycmd provides diagnostic errors are the C-family (C/C++/Objective-C/Objective-C++), Python and C#, AFAIR." So we need to limit the application of flycheck to just these languages. These are the languages that get semantic completion.
All other languages (and buffers of any sort, I suppose) get identifier-based completion.

@valloric I plan to expect diagnostics for only the file types "c", "cpp", "objc", "objcpp", "cs", and "python".  Does that sound right? This all looks pretty straightforward, but I just wanted to double check.

@valloric I plan to expect diagnostics for only the file types "c", "cpp", "objc", "objcpp", "cs", and "python". Does that sound right? This all looks pretty straightforward, but I just wanted to double check.

:+1:

Also, I suppose this list of file types may change/grow in the future. It might be a good idea if ycmd had a function for reporting the file types with semantic support. I could query that when I start the server instead of hard-coding a list.

Agreed, open an issue on ycmd's tracker.

I just checked and it seems I lied; ycmd doesn't provide diagnostics for Python. It's only C-family and C#.

Fixed in c50a5301398d93c15c9f79b07c79b6a9b88ecb69


Manifest Merger Issue

Hi, I added jitpack to my project gradle file and the stepper-indicator library to my app gradle file. However, I'm getting the following build error:
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(25.4.0) from [com.android.support:preference-v14:25.4.0] AndroidManifest.xml:25:13-35
	is also present at [com.android.support:appcompat-v7:26.0.0-beta2] AndroidManifest.xml:28:13-41 value=(26.0.0-beta2).
	Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest.xml:23:9-25:38 to override.

The other dependencies that my app has include:
compile 'com.android.support:preference-v7:25.4.0'
compile 'com.android.support:preference-v14:25.4.0'
compile 'eu.davidea:flexible-adapter:5.0.0-rc2'
compile 'com.android.support:appcompat-v7:25.4.0'
compile 'com.android.support:recyclerview-v7:25.4.0'
compile 'com.android.support:cardview-v7:25.4.0'
compile 'com.android.support:support-v4:25.4.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.google.android.gms:play-services-gcm:11.0.2'
compile 'com.google.android.gms:play-services-auth:11.0.2'
compile 'com.google.android.gms:play-services-ads:11.0.2'
compile 'com.google.firebase:firebase-messaging:11.0.2'
compile 'com.google.firebase:firebase-auth:11.0.2'
compile 'com.squareup.okhttp3:okhttp:3.8.1'

Without upgrading all of the android support libraries to an alpha version, is there a solution to this problem? Thanks!

Fixed with an exclusion.

Hey @huangwaylon,
I'm also facing the same issue, can you tell me what exactly means 'Fixed with an exclusion'?

I am also facing same issue @MaheshNandam do you find the soluction?

hey @Midhilaj ,
Give a try with this: https://github.com/idehub/react-native-google-analytics-bridge/issues/238#issuecomment-381488879


CAMEL-19497: prevent unhandled exceptions from blocking indefinitely

This ensures that the done callback will be called (or, at least, tried to be called) in the case of unhandled exceptions (a few rare cases involving Throwables)

There is also a try catch block a bit further up, it could benefit from also call done in finally

There is also a try catch block a bit further up, it could benefit from also call done in finally

Oh, nice. I'll add it there too. Thanks!

@davsclaus adding to the ones above cause side effects. This one is OK because the callback.done(true); is supposed to run regardless of a exception being thrown or not. On the one above, it's only called when catching an exception, so adding to the finally would also cause it to run when it shouldn't. I'm leaving as is for now - I can investigate later if you want.

ok


how to visualize the loss landscape?

in the paper you mentioned and showed an example of visualizing the loss landscape.
Can you please explain how to do it ?
I would really appreciate it if you can share the code for that since I am new to this topic and your implementation will be super useful!

Hi @seyeeet, the loss landscape was visualized through the following process.

For an image x, compute the classification loss L(x).
Compute vec{n} by backward L, and obtain any random vector vec{r}.
Compute L(x+alpha*vec{n}+beta*vec{r}). -1<beta<1, alpha>0: adversarial attack, alpha<0: adversarial climbing
Plot (alpha, beta, L(x+alpha*vec{n}+beta*vec{r}))

Thanks!

Thanks for your explanation, it is more  clear now.
Can you please explain a little more how to compute vec{n} and vec{r} and what is the shape of vec{n} and vec{r}.
I mean what vec{n} means, I mean what is the dimension of vec and are n and r integers?
Sorry I am new to this and your explanation is very helpful

vec{n} and vec{r} are actually matrices with the same spatial size as the input image.
vec{n} is a gradient map of classification loss L with respect to an image, which can be obtained similar to the following:
https://github.com/jbeomlee93/AdvCAM/blob/fa08f0ad4c1f764f3ccaf36883c0ae43342d34c5/obtain_CAM_masking.py#L138-L142
vec{r} is literally a random matrix.
Thanks.

thank you


Epic: Docs review, restructure, validation and enhancement

Keeping track of KW docs work

Actually being tracked in #204. This one can be closed.


useLocation doesn't work with BrowserRouter

It works fine with HashRouter but when switching to BrowserRouter it stops triggering upon navigating to a different page (still triggers on first page load). My project is a standard CRA. Can reproduce locally and live. Using AWS Amplify. Standard setup with the following rewrite:

</^[^.]+$/> | /index.html | 200 (Rewrite)

Version
"@types/react-router-dom": "^5.1.5"
Test Case
const usePageTracking = (): void => {
  const location = useLocation();
  const [initialized, setInitialized] = useState(false);

  useEffect(() => {
    if (!window.location.href.includes("localhost")) {
      ReactGA.initialize("UA-xx");
    }
    setInitialized(true);
  }, []);

  useEffect(() => {
    if (initialized) {
      ReactGA.pageview(location.pathname + location.search);
    }
  }, [initialized, location]);
};

const App: FunctionComponent = () => {
  usePageTracking();
  ....
}

Steps to reproduce
Expected Behavior
Actual Behavior

@timdorr If it's super obvious why the example taken directly from the docs doesn't work, could you explain or point me to the right place?

It should work just fine. Make sure you have the very latest version (the types aren't the right package for us to know the version you're using). But outside of that, it's hard to know what might be wrong because we can't see any of your setup code.

@timdorr Copied the wrong line, sorry about that. Updated to 5.2.0.
It doesn't work for me and specifically only for BrowserRouter hence the bug report. Here's my App.tsx, nothing special afaict.
import React, { FunctionComponent, Suspense, lazy } from "react";
import { HashRouter as Router, Switch, Route } from "react-router-dom";

import Layout from "components/App/Layout/Layout";
import Loading from "components/App/Loading/Loading";
import Head from "components/App/Head/Head";
import usePageTracking from "utils/usePageTracking";

const Home = lazy(() => import("components/App/Home/Home"));
// ...

const App: FunctionComponent = () => {
  usePageTracking();

  return (
    <>
      <Head />
      <Router>
        <Layout>
          <Suspense fallback={<Loading />}>
            <Switch>
              <Route exact path="/" component={Home} />
              // ...
              <Route path="/" />
            </Switch>
          </Suspense>
        </Layout>
      </Router>
    </>
  );
};

export default App;

You're using the hook from outside the BrowserRouter. It has to be in a component that is wrapped by the BrowserRouter.
I would move the <Router> out to wherever you render the App component. It's generally a good idea to move the Router as close to the top of the tree as possible.

Yep, thanks a lot!


HBSCROLL & BMSCROLL do not function as intended

#HBSCROLL

If any player selects a difficulty containing HBSCROLL, all players are forced into this scroll mode, even if the difficulty that other players select do not include it.

Unsure if this is intentional by design.

While playing on a branching difficulty: If the branch updates to a different branch at any point, the scroll speed will snap back to the TJA's initial BPM, and ignore the scroll speed of any BPMCHANGEs before it. This also means that notes will visually not line up to the hitcircle, as the scroll speed of all further notes no longer lines up with the hitzones.

This issue temporarily fixes itself by using a BPMCHANGE in the new branch, so long as the branch does not get updated again.

#BMSCROLL (In addition to inheriting all issues from #HBSCROLL)

The body of all drumrolls now scroll from the bottom-right, and change shape as it scrolls by. The end of the drumroll scrolls incorrectly as well, and faster than the body.

The start of the drumroll scrolls normally.

Example chart for broken rolls with BMSCROLL (In Oni)
028 - Katharsis.zip


⚠ Bofrost.de has degraded performance

In 9d747fb, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1042 ms

Resolved: Bofrost.de performance has improved in c7686c8 after 35 minutes.


bevy_reflect: Pre-parsed paths

Objective

ℹ This is an adoption of #4081 by @james7132

Fixes #4080.
Provide a way to pre-parse reflection paths so as to avoid having to parse at each call to GetPath::path (or similar method).
Solution
Adds the ParsedPath struct (named FieldPath in the original PR) that parses and caches the sequence of accesses to a reflected element. This is functionally similar to the GetPath trait, but removes the need to parse an unchanged path more than once.
Additional Changes
Included in this PR from the original is cleaner code as well as the introduction of a new pathing operation: field access by index. This allows struct and struct variant fields to be accessed in a more performant (albeit more fragile) way if needed. This operation is faster due to not having to perform string matching. As an example, if we wanted the third field on a struct, we'd write #2—where # denotes indexed access and 2 denotes the desired field index.
This PR also contains improved documentation for GetPath and friends, including renaming some of the methods to be more clear to the end-user with a reduced risk of getting them mixed up.
Future Work
There are a few things that could be done as a separate PR (order doesn't matter— they could be followup PRs or done in parallel). These are:

[ ] Add support for Tuple. Currently, we hint that they work but they do not.
[ ] Cleanup ReflectPathError. I think it would be nicer to give ReflectPathError two variants: ReflectPathError::ParseError and ReflectPathError::AccessError, with all current variants placed within one of those two. It's not obvious when one might expect to receive one type of error over the other, so we can help by explicitly categorizing them.

Changelog

Cleaned up GetPath logic
Added ParsedPath for cached reflection paths
Added new reflection path syntax: struct field access by index (example syntax: foo#1)
Renamed methods on GetPath:

path -> reflect_path
path_mut -> reflect_path_mut
get_path -> path
get_path_mut -> path_mut

Migration Guide
GetPath methods have been renamed according to the following:

path -> reflect_path
path_mut -> reflect_path_mut
get_path -> path
get_path_mut -> path_mut

@alice-i-cecile I addressed most of your open reviews from the original PR (namely the docs and renaming methods). However, I didn't address this one as I wasn't too sure if we necessarily need to extract that logic from the Display impl. Feel free to disagree, though! 😄

@MrGVSV ping me when you want this merged :) This is ready but I'll give you some time to decide how much you want to address in this PR.

bors r+


Invoking API calls directly in render?

In relation to #8 and #7 the useAsyncResource hook now synchronously invokes the passed-in fn. This means that all the examples on the home page effectively invoke API calls directly, synchronously from the component render() fn.
Is this not discouraged by React? Shouldn't we trigger side effects like initiating API calls from a useEffect hook instead? Or are we now supposed to do that ourselves in each component?

The hook always invoked the api call immediately on first render. The PR you mentioned only fixed a bug where the hook would not do the same when the props changed. See the detailed explanation in #7
But to address your concern, please note that Suspense works differently. It's a paradigm shift.
First, keep in mind that React Function Components are just that: functions. They get called (executed) multiple times throughout their lifetime.
So for API calls, the following example will trigger multiple (unexpected) fetch requests, even if the params of the API function don't change, but every time the parent decides to re-render this component. What's more, every time the API call finishes, another one gets triggered immediately:
// first render
const [data, setData] = useState(); // initializes the state, `data` is empty

// starts fetching the user data
fetchUser(userId)
  .then(r => r.json())
  .then(setData); // later, sets the user data, causing a re-render

return !data ? "loading..." : (...)

// ...
// second render

const [data, setData] = useState(); // `data` now contains the user data object

// this (again) starts fetching the user data
fetchUser(userId)
  .then(r => r.json())
  .then(setData); // again, later, sets the user data, causing another re-render

return !data ? "loading..." : (...)

// etc

So an useEffect solves this by treating the API call as a side effect
// first render
const [data, setData] = useState(); // initializes the state, `data` is empty

// runs only AFTER the initial render, and then for every change of `userId`
useEffect(() => {
  // starts fetching the user data
  fetchUser(userId)
    .then(r => r.json())
    .then(setData); // later, sets the user data, causing a re-render
}, [userId]);

return !data ? "loading..." : (...) // renders the loading message

// ...
// second render (for any other reason than the API call being complete)

const [data, setData] = useState(); // `data` is still empty

// this won't get triggered again, because `userId` hasn't changed; the API call is still in-flight
useEffect(() => {
  ...
}, [userId]);

return !data ? "loading..." : (...) // still renders the loading message

// ...
// third render (the API call is complete)

const [data, setData] = useState(); // `data` now contains the user object

// this still won't get triggered, because `userId` still hasn't changed
useEffect(() => {
  ...
}, [userId]);

return !data ? "loading..." : (...) // renders the JSX for the user object

// ...
// fourth render (`userId` changed)

const [data, setData] = useState(); // `data` contains the same previous user object

// this will get triggered AFTER the render, because `userId` changed
useEffect(() => {
  // starts fetching the new user data
  fetchUser(userId)
    .then(r => r.json())
    .then(setData); // later, sets the new user data, causing another re-render
}, [userId]);

return !data ? "loading..." : (...) // renders the JSX for the previous user object

// ...
// fifth render (new API call completed)

const [data, setData] = useState(); // `data` now contains new user object

// this will not get triggered again, because `userId` didn't change from last time
useEffect(() => {
  ...
}, [userId]);

return !data ? "loading..." : (...) // renders the JSX for new user object

With Suspense, however, the pattern is different. Suspense allows you to trigger API calls as early as possible, so you don't waste unnecessary renders. Here's how it works in contrast to the example above:
// first render

const [data] = useAsyncResource(fetchUser, userId); // starts the API call immediately and throws the unfulfilled promise
// this marks the component as being "suspended"
// the in-flight API request (the thrown unfulfilled promise) is cached
// all following code is not executed, because we got a throw command, which we're not catching here

render (...); // this will not be rendered by React

// ...
// second render (for any other reason than `userId` having changed)

const [data] = useAsyncResource(fetchUser, userId); // gets the unfulfilled promise from the cache and throws it again
// the component is still "suspended"

render (...); // still not rendered by React

// ...
// third render (the API call was successful)

const [data] = useAsyncResource(fetchUser, userId); // now the hook returns the data, not throwing anymore
// `data` contains the user object

render (...); // now React renders the JSX with the user object

// ...
// fourth render (`userId` changed)

const [data] = useAsyncResource(fetchUser, userId); // starts a new API call immediately and throws the new unfulfilled promise
// this again marks the component as being "suspended"
// the new in-flight API request (the new thrown unfulfilled promise) is cached
// all following code is not executed, because we got a throw command, which we're not catching here

render (...); // this will again not be rendered by React

// ...
// fifth render (the new API call was successful)

const [data] = useAsyncResource(fetchUser, userId); // the hook returns the new data, not throwing anymore
// `data` now contains the new user object

render (...); // React renders the JSX with the new user object

So ultimately, the bug in #7 was that the API call was NOT triggered as soon as possible, and the useAsyncResource hook would be, for a single render, out of sync with the actual props passed in. Because the change was from a useEffect to a useMemo, the API calls are still not triggered multiple times (so still treated as side effects), but now they are triggered much earlier (synchronously instead of after a wasted render).

Thank you for a very nice explanation, even I was able to understand it :) I wish smth like this was in the React docs.
Ivo


Breadcrumbs v1

@namkedia,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

:warning: Validation status: warnings

File
Status
Preview URL
Details

windows-iotcore/breadcrumbs/toc.yml
:warning:Warning

Details

windows-iotcore/docfx.json
:white_check_mark:Succeeded

windows-iotcore/breadcrumbs/toc.yml

[Warning] Invalid file link:(~/breadcrumbs/windows/iot-core/docs/iotdashboard).

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.


Why do I report an error?,I hope the author can give me an answer.

File "/home/u2023170613/diffusion-atoms-master/main.py", line 204, in main
runner.train()
File "/home/u2023170613/diffusion-atoms-master/runners/diffusion.py", line 177, in train
loss = lattice_loss(model,
^^^^^^^^^^^^^^^^^^^
File "/home/u2023170613/diffusion-atoms-master/functions/losses.py", line 66, in lattice_loss
noise_estimate = get_output(noised_atoms_batch, operations, space_group, sg_type, model, t, device, output_type="lattice", emax=-1)[1]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/u2023170613/diffusion-atoms-master/functions/atomic.py", line 228, in get_output
graph, line_graph = get_graphs(noised_atoms[i], operations[i], device, t[i], lattice_system[i], sg_type[i])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/u2023170613/diffusion-atoms-master/functions/atomic.py", line 215, in get_graphs
graph, line_graph = atom_dgl_multigraph(atoms=atoms, operations=operations)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/u2023170613/diffusion-atoms-master/functions/graph.py", line 143, in atom_dgl_multigraph
u, v, r, sym = nearest_neighbor_edges(
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/u2023170613/diffusion-atoms-master/functions/graph.py", line 95, in nearest_neighbor_edges
assert np.abs(np.linalg.norm(inv_diff) - np.linalg.norm(neig_diff)) < 1e-3, "Inconsistent lattice / symmetry operations"
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError: Inconsistent lattice / symmetry operation

Thank you for reporting!
I managed to reproduce the error, it seems that the issue is due to numerical imprecision. I've increased the threshold in this assert, so it should be fine now.
Let me know if the issue persists.

Thank you for reporting!
I managed to reproduce the error, it seems that the issue is due to numerical imprecision. I've increased the threshold in this assert, so it should be fine now.
Let me know if the issue persists.

Thanks a lot to the authors for their reply, I managed to reproduce the crystal generation part of the paper, but I ran into problems when I wanted to run the code for the evaluation section.

''prop_model_eval''Didn't find it.

Hello author, I very much hope you can answer my doubts,when I use the following command to sample generation, I found that the generated crystals only have a P 1 space group, for which I am very puzzled.
python3 main.py --config config.yml --doc pretrained --sample --sampling_order_path name_of_the_file


How to use model without api with guard

I have models locally downloaded and using from ctransformers import AutoModelForCausalLM
from ctransformers import AutoModelForCausalLM, AutoConfig, Config
conf = AutoConfig(Config(temperature=0.8, repetition_penalty=1.1,
batch_size=52, max_new_tokens=1024,
context_length=2048))
llm = AutoModelForCausalLM.from_pretrained("/content/llama-2-13b-chat.Q4_K_S.gguf",
model_type="llama", config = conf)
with api we can use like this
res = guard(
openai.chat.completions.create,
prompt_params={"doctors_notes": doctors_notes},
max_tokens=1024,
temperature=0.3,
)
but how to use above model in this context

Hey Muhammad,
In that case, you would wrap the model invocation in a custom callable, following the docs here.
In this case it could be as simple as
def custom_llm_callable(prompt):
  return llm( #pass prompt to the llm here

res = guard(
  custom_llm_callable,
  prompt_params={"doctors_notes": doctors_notes},
  max_tokens=1024,
  temperature=0.3,
)

@MuhammadHammadBashir we also recently added support for HuggingFace models.  So if you are using one of those from the transformers library you can treat model.generate like an llm api.
We still need to add better docs for this functionality, but you can find a summary and example here:
https://www.guardrailsai.com/blog/0.3-release/#anthropic-and-hugging-face-models-support

thank you for info.
On Fri, Jan 26, 2024 at 7:50 PM Caleb Courier @.***>
wrote:

@MuhammadHammadBashir https://github.com/MuhammadHammadBashir we also
recently added support for HuggingFace models. So if you are using one of
those from the transformers library you can treat model.generate like an
llm api.
We still need to add better docs for this functionality, but you can find
a summary and example here:
https://www.guardrailsai.com/blog/0.3-release/#anthropic-and-hugging-face-models-support
—
Reply to this email directly, view it on GitHub
https://github.com/guardrails-ai/guardrails/issues/551#issuecomment-1912189183,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKJTVY6G5WUQFBRFQGGPSLTYQO7FHAVCNFSM6AAAAABCFTDTFSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJSGE4DSMJYGM
.
You are receiving this because you were mentioned.Message ID:
@.***>

Hi @MuhammadHammadBashir as there's been no updates on this thread in a few months. If you have any questions or issues still please don't hesitate to reopen this or reach out to me.


Method too large

Describe the bug
On using kotlinx-kover in a project that has a dependency on the amazon s3 kotlin library, I get error output.
Errors
[2023.09.13 18:09:13] (Coverage): Error during class instrumentation: aws.sdk.kotlin.services.s3.endpoints.DefaultEndpointProvider: org.jetbrains.coverage.org.objectweb.asm.MethodTooLargeException: Method too large: aws/sdk/kotlin/services/s3/endpoints/DefaultEndpointProvider.resolveEndpoint (Laws/sdk/kotlin/services/s3/endpoints/EndpointParameters;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;

Expected behavior
No error output. Otherwise, when I search for this error online I should be able to find some suggestions on what I should do. However, I cannot find anything.
Reproducer
Hopefully it is as easy as using kover on any module that depends on the kotlin-aws-s3 library.
Environment

Kover Gradle Plugin version: 0.7.3
Gradle version: 8.3
Kotlin project type: Kotlin/Jvm
Coverage Toolset (if customized in build script): Kover

Hi,

Also, just curious, why is the plugin trying to instrument a class from a library? Isn't coverage supposed to just collect data related to my own classes?

instrumentation performed on already compiled classes that do not store information from where they were taken: from a dependency or from user code.
Therefore, the plugin needs additional information about which class is custom. To do this, the plugin must be modified taking into account Gradle project isolation and configuration caches.
The issue for this feature has been created, but it is in low priority, because this is not a very frequent problem and is solved by configuring the excludeInstrumentation block

But does excludeInstrumentation have any affect?

It will not affect the report in any way if the class from the dependency is specified (in your case from kotlin-aws-s3)

So maybe this issue can be closed.

Yes, this task can be closed in favor of #418


Music mode

Hello . I got my yeelight today. I was wondering If it is possible to use music mode from ubuntu (spotify, youtube etc)

AFAIK music mode is just something by using the Smartphone app. The Smartphone receives sound on it's microphone and converts it into light patterns. So nothing to do with setting up the lights itself. That said in theory you could do the same using a computer and convert music into whatever light mode but this is far beyond this rather simple project

Oh ok thank you.


Language/locale differences from en-US will raise an exception at various points

Issue
Various exceptions are raised when WhatsApp settings are set to anything other than English because there are a few areas in WhatSoup that depend on English characters/words. The date/time formats for non-English settings are likely different as well and also need to be revised with a more flexible solution such as dateutil.
Temporary workaround
Set WhatsApp settings on the phone to use English as the language before running the script. It can be changed back after scraping/exporting a chat.
Issue details
WhatSoup areas that depend on English language/locale:

Identifying 'Search results' element after searching for a specific chat
Loading all messages in a selected chat, has an xpath containing 'Message list'
Finding sender when a message does not contain text, has a condition for 'Voice message'
Determining if vCard/VCF media is in a message, has conditions for 'Message' and 'Add to a group'
Date/time string formatting all expects in the format of MM/DD/YYYY HH:MM AM/PM but there are variations such as YYYY-MM-DD, A.M. / P.M., etc.

Identifying search results
# Look for the unique class that holds 'Search results.'
WebDriverWait(driver, 5).until(expected_conditions.presence_of_element_located(
       (By.XPATH, "//*[@id='pane-side']/div[1]/div/div[contains(@aria-label,'Search results.')]")))

Loading all messages
# Set focus to chat window (xpath == div element w/ aria-label set to 'Message list. Press right arrow key...')
message_list_element = driver.find_element_by_xpath(
  "//*[@id='main']/div[3]/div/div/div[contains(@aria-label,'Message list')]")

Finding sender when a message does not contain text
# Last char in aria-label is always colon after the senders name
if span.get('aria-label') != 'Voice message':
  return span.get('aria-label')[:-1]

Determining if vCard/VCF media is in a message
# Check if 'Message' is in the title (full title would be for example 'Message Bob Ross')
if 'Message' in button.get('title'):
  # Next sibling should always be the 'Add to a group' button
  if button.nextSibling:
    if button.nextSibling.get('title') == 'Add to a group':
      return True

This project not pasting the full chat in any format please help


[bug]: Blank Browser When Launching

Is there an existing issue for this?

[X] I have searched the existing issues

OS
Windows
GPU
cuda
VRAM
12GB
What happened?
Launch invoke.bat > Option 2 > Open http://<IP_ADDRESS>:9090/ > Blank screen.
It was working earlier toady and has now stopped working. When it stopped working with Chrome, I tried launching it with Edge which worked once and hasn't worked since.
Tried running update.bat
Tried running as Admin
Restarting does not fix anything
Last 3 lines of code

Point your browser at http://<IP_ADDRESS>:9090
System config requested
Patchmatch initialized

Screenshots
No response
Additional context
No response
Contact Details
No response

I literally have the same problem you found any fix yet?

I literally have the same problem you found any fix yet?

No, I've reinstalled it twice and the issue comes back, even with a completely fresh install and even when trying different browsers. I have no idea why.
If you find a fix, please let me know.

sure

sure

Out of curiosity, do you use either an LG TV as a monitor or use scaling on your system?
I think it might be related to that, but I'm not sure.

I have the same problem–need to always refresh the page to get it to work. Initial load will always be blank with this error when I open the dev console:
index.be0f03f1.js:32 TypeError: Cannot read properties of undefined (reading 'description')
    at lt.memoizeOptions.resultEqualityCheck (index.be0f03f1.js:479:52310)
    at index.be0f03f1.js:410:83300
    at d (index.be0f03f1.js:410:82251)
    at index.be0f03f1.js:410:83432
    at d (index.be0f03f1.js:410:82251)
    at l (index.be0f03f1.js:471:453)
    at index.be0f03f1.js:471:660
    at Object.useSyncExternalStore (index.be0f03f1.js:30:26615)
    at rn.useSyncExternalStore (index.be0f03f1.js:9:6483)
    at TG.useSyncExternalStoreWithSelector (index.be0f03f1.js:471:729)

I have same issue! Fresh installing didn't work.

I found the problem by running the frontend as dev!
https://github.com/invoke-ai/InvokeAI/blob/5f16148dea45cf42f4e637d802dd1261a436f8b0/frontend/src/features/system/components/ModelSelect.tsx#L26
I don't know why but seems model_list is empty!

Happened to me when I chose stable-diffusion-1.5 to be used
then this appears in console while starting up
** "stable-diffusion-1.5" is not a known model name; falling back to stable-diffusion-1.5.

@sashatc I'm confused. Did you take the models.example and models.yaml file and from the config file and put them in the InvokeAI root directory or am I missing something?
@hossainiir how did you fix the model list being empty?

@jibberishballr I am not sure if you have the same cause. In my case it was stable-diffusion-1.5 being configured (still do not know where the current model selection is stored) as selected model, but it somehow disappeared as a model from configs/models.yaml, so I had to edit configs/models.yaml file to add it back there manually.

@jibberishballr I am not sure if you have the same cause. In my case it was stable-diffusion-1.5 being configured (still do not know where the current model selection is stored) as selected model, but it somehow disappeared as a model from configs/models.yaml, so I had to edit configs/models.yaml file to add it back there manually.

Ah I follow you. Yes, don't have that issue of the config file missing from the yaml file.
I just have a blank browser that never loads the Invoke AI UI.

@jibberishballr - blank browser is the resulting behavior. If you look at browser's developer console - what do you see? Do you see index.be0f03f1.js:32 TypeError: Cannot read properties of undefined (reading 'description')     at lt.memoizeOptions.resultEqualityCheck (index.be0f03f1.js:479:52310)     at index.be0f03f1.js:410:83300     at d (index.be0f03f1.js:410:82251)     at index.be0f03f1.js:410:83432     at d (index.be0f03f1.js:410:82251)     at l (index.be0f03f1.js:471:453)     at index.be0f03f1.js:471:660     at Object.useSyncExternalStore (index.be0f03f1.js:30:26615)     at rn.useSyncExternalStore (index.be0f03f1.js:9:6483)     at TG.useSyncExternalStoreWithSelector (index.be0f03f1.js:471:729)
error as mentioned by @tyk-adrian above?
Do you also see repeating messages in your InvokeAI cmd console like this every time you try to reload browser
`>> System config requested

Patchmatch initialized
System config requested
System config requested
System config requested
System config requested
System config requested
System config requested
System config requested
System config requested`

???

have you guys try copy past the localhost address to other browser like firefox?

I fix this, just connect to <IP_ADDRESS>:9090 instead localhost:9090


feat(config): add interface InitialOptionsTsJest for jest config in ts

Summary

Related to #2325
Test plan

Added e2e tests, green CI
Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information
N.A.

Pull Request Test Coverage Report for Build 547807651

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 93.629%

Totals

Change from base Build 547655795:
0.0%

Covered Lines:
945

Relevant Lines:
975

💛  - Coveralls


libstdc++.so CXXABI and GLIBCXX not found errors on pre-defined Linux App Service instance

I've followed along the ruby quick-start tutorial where the only change is I've included the AppOptics Ruby agent as a dependency in the Gemfile.  The app deploys as expected but the agent cannot load, giving this error:
ERROR -- : Missing AppOpticsAPM libraries.  Tracing disabled.
ERROR -- : Error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /tmp/bundle/gems/appoptics_apm-4.9.0/lib/oboe_metal.so) - /tmp/bundle/gems/appoptics_apm-4.9.0/lib/oboe_metal.so

The AppOptics Ruby agent compiles a native extension during install time.  I think the error is due to the Kudu and App instances being different distros, where Kudu is Debian 9 with libstdc++ v6.0.22 while App is Debian 8 with libstdc++ v6.0.20.  So the extension compiled against Kudu is not compatible with the libstdc++ version on the App instance.
Repro steps.
Follow along the Create a Ruby on Rails App in App Service on Linux tutorial using the demo app https://github.com/Azure-Samples/ruby-docs-hello-world.  Before deploying to Azure, commit a change where you add the AppOptics Ruby agent to the end of the Gemfile so that it looks like this:
$ tail Gemfile
  gem 'capybara', '>= 2.15'
  gem 'selenium-webdriver'
  # Easy installation and use of chromedriver to run system tests with Chrome
  gem 'chromedriver-helper'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

gem 'appoptics_apm'

Then push to the azure remote GH; the deploy should complete successfully.
The log/error given by the failure.
The application runs correctly the but agent is not loaded due to /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.9' not found
Mention any other details that might be useful.
The Kudu instance for my App is Debian 9, while the App instance is Debian 8.  This means a difference in the stdlibc++ library of 6.0.22 (kudu) vs 6.0.20 (app):
kudu
lrwxrwxrwx 1 root root 19 Feb 14  2018 libstdc++.so.6 -> libstdc++.so.6.0.22

app
lrwxrwxrwx 1 root root 19 Dec 13  2018 libstdc++.so.6 -> libstdc++.so.6.0.20

On the App instance if I copy the installed agent gem to the shared persistent drive /home and then run ldd on the compiled extension oboe_metal.so I reproduce the error:
root@314f093478b0:/home# cp -r /tmp/bundle/gems/appoptics_apm-4.9.0/ .

root@314f093478b0:/home# ls -di /home/appoptics_apm-4.9.0/
7881299347971980 /home/appoptics_apm-4.9.0/

root@314f093478b0:/home# ldd /home/appoptics_apm-4.9.0/lib/oboe_metal.so
/home/appoptics_apm-4.9.0/lib/oboe_metal.so: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /home/appoptics_
apm-4.9.0/lib/oboe_metal.so)
/home/appoptics_apm-4.9.0/lib/oboe_metal.so: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /home/appoptic
s_apm-4.9.0/lib/oboe_metal.so)
        linux-vdso.so.1 (0x00007ffcf633a000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f3320beb000)
        liboboe-1.0.so.0 => /home/appoptics_apm-4.9.0/lib/../ext/oboe_metal/lib/liboboe-1.0.so.0 (0x00007f332063b000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f332033a000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f331ff8f000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f331fd79000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f3321113000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f331fb5e000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f331f95a000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f331f73d000)

while on the Kudu instance it goes fine:
root@e0ec7aa5c009:~# ls -di /home/appoptics_apm-4.9.0/
7881299347971980 /home/appoptics_apm-4.9.0/

root@e0ec7aa5c009:~# ldd /home/appoptics_apm-4.9.0/lib/oboe_metal.so
        linux-vdso.so.1 (0x00007ffdf8182000)
        libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fbd2fa70000)
        liboboe-1.0.so.0 => /home/appoptics_apm-4.9.0/lib/../ext/oboe_metal/lib/liboboe-1.0.so.0 (0x00007fbd2f4c0000)
        libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fbd2f1bc000)
        libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fbd2ee1d000)
        libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fbd2ec06000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fbd3000f000)
        libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007fbd2e9ec000)
        libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fbd2e7e8000)
        libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fbd2e5cb000)

Hi
If the problem persists and is related to running it on Azure App Service, please open a support incident in Azure:
https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request
This way we can better track and assist you on this case
Thanks,
Joaquin Vano
Azure App Service


label list cannot filter

Description
It seems ionosctl label list cannot properly interpret flags. For some values it even reacts upon, but the resultset is always the same.
Expected behavior
ionosctl label list interpret and apply flags such as --datacenter-id, --resource-type, --server-id etc.
Environment
dev, prod.
Go Version:
go version go1.19 darwin/arm64

Ionosctl version:
IONOS Cloud CLI version: DEV
SDK GO version: 6.1.0
SDK GO DBaaS Postgres version: v1.0.3
SDK GO Auth version: 1.0.4

OS:
darwin/arm64

Shell:
zsh

How to Reproduce
With a dev account try to list labels. for a datacenter.
ionosctl label list --datacenter-id ad6eb12c-c20a-4f83-876f-c3a8a9e1fbec
try with a server
ionosctl label list --datacenter-id ad6eb12c-c20a-4f83-876f-c3a8a9e1fbec --server-id 03fea0d9-0fde-4351-a3e1-9eea2cfa3a38
note the result is always the same.
try filter by a resource type
ionosctl label list --resource-type lan
ionosctl label list --resource-type Volume
I still can see other resource-types in the result set.
when I use volume --resource-type volume it gives me a 404.
me@~$ io label list --resource-type volume
Error: 404 Not Found {
  "httpStatus" : 404,
  "messages" : [ {
    "errorCode" : "309",
    "message" : "Resource does not exist"
  } ]
}

when I use Volume, I still see other resource-types.

Hello!
Thanks for creating this issue! After doing a bit of investigating, I've broken down this issue into these specific/measureable tasks/bugs:

ionosctl label list in conjunction with a valid type* for --resource-type flag requires certain IDs provided. For example, for server, you need to provide server-id and datacenter-id, but these parameters are not marked as required.

Only some resources have valid endpoints* in the labels API. Until the next major release, the flag --resource-type should be responsible for the above set of resources, while for other resources (i.e. nic, lan, k8s nodepools) the users should use -F/--filter for the resourceType column instead of using this flag.
The default behaivour for unknown --resource-type values is just to do a simple list, as if no value was provided, hence sometimes this command providing the same result-set at times

We should reach a common decision as a team on what to do with this duplicate functionality. Depending on limitations and performance, perhaps next major release --resource-type flag could be deprecated, and merged into -F/--filters flag if it provides a performance increase over simple key/value filtering over the resourceType column

* As of now,  valid types are datacenter,server,volume,ipblock,snapshot.
Thanks again, for opening this issue! As soon as a PR is ready I'll make sure to link it to this issue.


mirror notes

Hi,
notes should also be mirrored, I created a PR to fix this.
refs #37
refs #11

Thanks


auto-separator and decimal optional place at the same time

there's no possible to have auto-separator and decimal optional place at the same time !
for example I want to have 23,444,444.55 but it won't be applied .
here's my config Custom Option(s) section to acheive auto-separator :
autoGroup : true ,
groupSize : 3 ,
groupSeparator: ","

I also added this config for applying decimal optional place while typing but it didn't work and apply :
radixPoint: "."

Are you setting the proper alias on your mask? Also remember to set substituteRadixPoint: false since you are using different decimal and group separators. The following option setup works fine for me:
{
  alias: 'decimal',
  autoGroup : true ,
  groupSize : 3 ,
  groupSeparator: ",",
  radixPoint: ".",
  substituteRadixPoint: false
}

Thank you @Techn1c4l
yes  , I used
alias: 'decimal' .
and I added
 substituteRadixPoint: false to my Code
but  it didn't work and apply !!!
can you help me ?

Thank you @Techn1c4l yes , I used alias: 'decimal' . and I added  substituteRadixPoint: false to my Code but it didn't work and apply !!! can you help me ?

Can you clarify what's exactly the issue? I've tried entering the number from your post and this is the result:

Are you getting something different in your case?

Thank you @Techn1c4l yes , I used alias: 'decimal' . and I added  substituteRadixPoint: false to my Code but it didn't work and apply !!! can you help me ?

Can you clarify what's exactly the issue? I've tried entering the number from your post and this is the result:
Are you getting something different in your case?

I'm using this plugin on APEX v23.1.0 when I hold "." button and insert decimal number , it works ! but without holding "." button , it doesn't apply ! Is that the way you insert decimal numbers like me?

Not sure I'm following you here. What do you mean by "inserting"? Pasting from the clipboard?
Maybe you want it to always show the decimal part? Then use the digitsOptional: false setting.

by

inserting means typing decimal number with "." sign . No I didn't mean copy and pasting , as I said at the first I want to have both auto-separator and decimal optional place for decimal numbers while I'm typing the number !
about the showing the decimal part always , No I don't want it to be shown always , Just whenever the user needs to type decimal part.
right now by keep pressing "." button , I get what I want but I want to know would it be possible to do it without keep pressing on "." button ?

So you are saying that you can only start typing the decimal part if you hold down the "." key? Sounds weird to me. What happens if you you release it?
Can you record the video with a smartphone for example to show me?
Also, there are currently some issues with the group separator which lead to very harsh slowdown of the page. I suggest not to use the group separator at all.

@Techn1c4l
Yes,exactly right
I must hold down "." key and typing the decimal part,
I attach the video on my comment.
I need to use group separator.
https://github.com/RobinHerbots/Inputmask/assets/59958687/45d3b22f-b7e8-4451-907b-530db053cd15

Well, this is really weird. I believe it has something to do with your digit symbols since they are not standard 0-9. It could be this library probably doesn't support digits you are using. Does it work if you don't use the group separator?
Or it could be an issue with your spreadsheet library. Try creating a simple page using the same Inputmask options and see if you have this problem.

Thank You @Techn1c4l
My problem has been solved.
one of my Dynamic Action in zero page of Application was causing that  problem


devops: modify GH actions and Dockerfile

Modify Dockerfile to be faster by not installing Prisma twice and assuming npm
Modify the Dockerfile/GitHub actions workflow to use caching for faster build times
Modify GitHub actions workflow to:

Set the DATABASE_URL environment variable properly
Create the upload directories in the volume
Set the EntraID environment variables properly

NOTE: SQUASH THIS BRANCH!!


docs!: LazyVim now requires Neovim >= 0.9.0

See: https://github.com/LazyVim/LazyVim/commit/bfe04222fe5585179f03197b01a6f6ed711d4421

thanks!


2024-12-24_01-35-12_master-next_aws-sdk-cpp

Automatically created.

Successfully created backport PR for kirkstone-next:

#10937

Successfully created backport PR for scarthgap-next:

#10938

Successfully created backport PR for styhead-next:

#10939


How to give console permission to use commands?

Title. Any help? If it helps, I use GTXGaming server hosting.

The console always has permission to run every command.

^ should be the case.
LuckPerms doesn't control the consoles permissions in any way.


feat: replace strip-ansi with util.stripVTControlCharacters

PR Checklist

[x] Addresses an existing open issue: fixes #5265
[ ] That issue was marked as status: accepting prs
[x] Steps in CONTRIBUTING.md were taken

Overview
Replaced strip-ansi with util.stripVTControlCharacters

[ ] That issue was marked as status: accepting prs

Indeed, still in triage. I want to wait and see if the other members of @mochajs/maintenance-crew have inputs. Marking this PR as a draft in the meantime. Thanks for sending!


perf: Lazy load moment-timezone

SUMMARY
moment-timezone library is over 700kb and it is only used in alerts/reports modal. Loading it by default slows down dashboard's loading time.
This PR implements lazy loading this library.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
Notice the lack of ~800kb network activity in the "after" screenshot
Before:

After:

TESTING INSTRUCTIONS

Open a dashboard
Verify that the moment-timezone chunk was not loaded
3 dots menu -> Manage email report -> Set up an email report
Verify that the timezone picker is working correctly

ADDITIONAL INFORMATION

[ ] Has associated issue:
[ ] Required feature flags:
[ ] Changes UI
[ ] Includes DB Migration (follow approval process in SIP-59)

[ ] Migration is atomic, supports rollback & is backwards-compatible
[ ] Confirm DB migration upgrade and downgrade tested
[ ] Runtime estimates and downtime expectations provided

[ ] Introduces new feature or API
[ ] Removes existing feature or API

Thanks for working on this type of task! That will bring huge benefit to the community.

Glad to see "frontend-infra" getting some ❤ !

@dosubot I'm curious if you can point to libraries that are popular drop-in/easy replacement for moment-timezone and/or moment.js

@mistercrunch @rusackas replacing moment is going to be a big effort as it’s used everywhere, but it’s definitely going to be worthwhile for performance - moment is big

Yeah it's used in 30+ modules ->
$ git grep "import.*moment" superset-frontend/src/
superset-frontend/src/SqlLab/components/QueryTable/index.tsx:import moment from 'moment';
superset-frontend/src/SqlLab/components/SaveDatasetModal/index.tsx:import moment from 'moment';
superset-frontend/src/components/CachedLabel/TooltipContent.test.tsx:import moment from 'moment';
superset-frontend/src/components/CachedLabel/TooltipContent.tsx:import moment from 'moment';
superset-frontend/src/components/Chart/chartAction.js:import moment from 'moment';
superset-frontend/src/components/LastUpdated/index.tsx:import moment, { Moment, MomentInput } from 'moment';
superset-frontend/src/components/ListView/Filters/DateRange.tsx:import moment, { Moment } from 'moment';
superset-frontend/src/components/Timer/Timer.stories.tsx:import moment from 'moment';
superset-frontend/src/components/TimezoneSelector/TimezoneSelector.test.tsx:import moment from 'moment-timezone';
superset-frontend/src/components/TimezoneSelector/index.tsx:import moment from 'moment-timezone';
superset-frontend/src/dashboard/components/Header/index.jsx:import moment from 'moment';
superset-frontend/src/dashboard/components/OverwriteConfirm/OverwriteConfirmModal.tsx:import moment from 'moment';
superset-frontend/src/dashboard/components/SliceHeaderControls/index.tsx:import moment from 'moment';
superset-frontend/src/explore/components/controls/ComparisonRangeLabel.tsx:import moment from 'moment';
superset-frontend/src/explore/components/controls/DateFilterControl/components/CustomFrame.tsx:import { Moment } from 'moment';
superset-frontend/src/explore/components/controls/DateFilterControl/utils/constants.ts:import moment from 'moment';
superset-frontend/src/explore/components/controls/DateFilterControl/utils/dateParser.ts:import moment, { Moment } from 'moment';
superset-frontend/src/explore/components/controls/TimeOffsetControl.tsx:import moment, { Moment } from 'moment';
superset-frontend/src/features/allEntities/AllEntitiesTable.tsx:import moment from 'moment';
superset-frontend/src/features/annotations/AnnotationModal.tsx:import moment from 'moment';
superset-frontend/src/features/datasets/AddDataset/EditDataset/UsageTab/index.tsx:import moment from 'moment';
superset-frontend/src/features/home/ActivityTable.tsx:import moment from 'moment';
superset-frontend/src/pages/AlertReportList/index.tsx:import moment from 'moment';
superset-frontend/src/pages/AnnotationList/index.tsx:import moment from 'moment';
superset-frontend/src/pages/ExecutionLogList/index.tsx:import moment from 'moment';
superset-frontend/src/pages/QueryHistoryList/index.tsx:import moment from 'moment';
superset-frontend/src/preamble.ts:import moment from 'moment';
superset-frontend/src/utils/dates.js:import moment from 'moment';
superset-frontend/src/visualizations/TimeTable/SparklineCell.tsx:import moment from 'moment';

$ git grep "import.*moment" superset-frontend/plugins/
superset-frontend/plugins/legacy-preset-chart-nvd3/src/NVD3Vis.js:import moment from 'moment';
superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberPeriodOverPeriod/transformProps.ts:import moment from 'moment';
superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/utils.ts:import moment from 'moment';
superset-frontend/plugins/plugin-chart-handlebars/src/components/Handlebars/HandlebarsViewer.tsx:import moment from 'moment';

Curious how many different functions we use.
From memory working on bundle sizes in the past, I think they have a large i18n module that we don't really use (I think). I'm not sure if we're shaking that off properly or not, but could be something to look at and make sure we're not importing things we don't need.

Yeah most of it is a locale submodule. I’ll see if we can shake it off

I’ll see if we can shake it off

@mistercrunch @rusackas Do we have a list of locales supported in Superset? We can remove the unsupported ones with a webpack plugin (source)

I wonder if they should be 1:1 with the languages that are enabled in the config file. That'd make it dynamic, support expansion when people add languages (which does happen), and keep things as minimal as possible. Or we could even move this to a similar config.

output is a bit messy, but here are our language packs ->
$ ls -d superset/translations/*
superset/translations/__init__.py               superset/translations/it                        superset/translations/sk
superset/translations/__pycache__               superset/translations/ja                        superset/translations/sl
superset/translations/ar                        superset/translations/ko                        superset/translations/tr
superset/translations/babel.cfg                 superset/translations/messages.pot              superset/translations/uk
superset/translations/de                        superset/translations/nl                        superset/translations/utils.py
superset/translations/empty_language_pack.json  superset/translations/pt                        superset/translations/zh
superset/translations/en                        superset/translations/pt_BR                     superset/translations/zh_TW
superset/translations/es                        superset/translations/requirements.txt
superset/translations/fr                        superset/translations/ru

@mistercrunch @rusackas Managed to tree shake the locales 🙂
Before:

After:


Update all tutorials and howtos

Refactor documentation into separate release/ and drafts/ subtrees
Update ALL tutorials and howtos in release/, editing them for correctness, style/consistency, ensuring "Open in colab" banners are present etc.

This change is


Need to apply service/app name restrictions

Duplicates https://github.com/ainblockchain/ain-blockchain/issues/241


Tower of Hanoi iterative solution

Should I add tower of hanoi problem solution (iterative solution using DP) for hacktoberfest

PR merged


Add test for browsers.

Codecov Report

Merging #72 (3c8c62c) into main (367a518) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #72   +/-   ##
=======================================
  Coverage   92.47%   92.47%
=======================================
  Files          20       20
  Lines        1847     1847
  Branches      181      181
=======================================
  Hits         1708     1708
  Misses        139      139

Flag
Coverage Δ

unittests
92.47% <ø> (ø)

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

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 367a518...3c8c62c. Read the comment docs.


Unable to set cluster.images_minimal_replica to -1

Required information

Distribution: Ubuntu
Distribution version: 20.04
The output of "lxc info" or if that fails:

Kernel version: 5.4.0-77-generic
LXC version: 4.17
LXD version: 4.17
Storage backend in use: dir

Issue description
According to https://github.com/lxc/lxd/blob/master/doc/clustering.md#images I should be able to set
lxc config set cluster.images_minimal_replica -1
However this results in an error
lxc config set cluster.images_minimal_replica -1
Error: unknown shorthand flag: '1' in -1

lxc config set cluster.images_minimal_replica "-1"
Error: unknown shorthand flag: '1' in -1

Steps to reproduce

Run the above command

Ah yeah, it's a good old case of your shell eating the - :)
There are a few ways around this kind of problems in general:

lxc config set cluster.images_minimal_replica -- -1
echo -n "-1" | lxc config set cluster.images_minimal_replica -
lxc config edit

The first is usually how you get around such issues in most commands, by telling the parser where the delimitation between flags and arguments is. The second tells the command to read from standard input and then feeds the value that way. The last gets you the entire config as editable YAML.
(Closing as this is expected behavior for normal UNIX-style command line parsing)

The most common case of this seen by LXD users is with lxc exec where you need to do lxc exec blah -- ls -lh / to prevent the -lh to be interpreted as an argument to lxc exec.

lxc config set cluster.images_minimal_replica=-1 also works.

Oh oops, forgot about that one, will add it to the list above ;)


outline: none

All the links in the new UI have the outline when focused, please add  outline: none for all the links in the UI.

Duplicate of #1369
Please see here for more information


Measuring pressure

XDB401 Pro Coffee Machine Use SS316L Pressure Transducers
Goldpea Raccords de tuyau en T en acier inoxydable 304 Street, raccord en T 3 voies NPT femelle de 0,3 cm x mâle NPT de 0,3 cm x mâle NPT 3 voies

Specs:
0-12Bar
outputV: 0.5-4.5
Arduino

https://forum.arduino.cc/t/3-pin-pressure-sensor/538150
https://forum.arduino.cc/t/pressure-transducer-code/362754/21?page=2
https://forum.arduino.cc/t/pressure-level-sensor/1244264/13?page=2
https://forum.arduino.cc/t/pressure-transducer-code/362754/21

Connection:
https://europe1.discourse-cdn.com/arduino/original/4X/5/9/3/59366f289c73117e1dce3a2158b3be3db8866f70.jpeg

I'm getting a lot of fluctuations:
Terminal output
~~~
elsius temperature: 23.75
2.50 bar pressure with: 0.62V measured voltage.
Celsius temperature: 23.75
-0.92 bar pressure with: 0.45V measured voltage.
Celsius temperature: 23.75
-0.82 bar pressure with: 0.46V measured voltage.
Celsius temperature: 23.75
1.04 bar pressure with: 0.55V measured voltage.
Celsius temperature: 23.81
0.16 bar pressure with: 0.51V measured voltage.
Celsius temperature: 23.87
-2.38 bar pressure with: 0.38V measured voltage.
Celsius temperature: 23.81
-0.04 bar pressure with: 0.50V measured voltage.
Celsius temperature: 23.87
0.35 bar pressure with: 0.52V measured voltage.
Celsius temperature: 23.81
0.84 bar pressure with: 0.54V measured voltage.
Celsius temperature: 23.81
0.64 bar pressure with: 0.53V measured voltage.
Celsius temperature: 23.81
0.94 bar pressure with: 0.55V measured voltage.
Celsius temperature: 23.81
-0.62 bar pressure with: 0.47V measured voltage.
Celsius temperature: 23.81
-0.53 bar pressure with: 0.47V measured voltage.
Celsius temperature: 23.75
1.91 bar pressure with: 0.60V measured voltage.
Celsius temperature: 23.69
-0.53 bar pressure with: 0.47V measured voltage.
Celsius temperature: 23.69
2.99 bar pressure with: 0.65V measured voltage.
Celsius temperature: 23.69
-0.14 bar pressure with: 0.49V measured voltage.
Celsius temperature: 23.81
-1.21 bar pressure with: 0.44V measured voltage.
Celsius temperature: 23.81
-1.02 bar pressure with: 0.45V measured voltage.
Celsius temperature: 23.81
1.72 bar pressure with: 0.59V measured voltage.


Rewrite without third-party libraries.

Fails

:no_entry_sign:
Only issue marked as backward incompatible is allowed to have breaking changes

  Generated by :no_entry_sign: dangerJS against d817f3bfb27673f4c49fd4bd3c1934b3dd2e6076

Fails

:no_entry_sign:
Only issue marked as backward incompatible is allowed to have breaking changes

  Generated by :no_entry_sign: dangerJS against d817f3bfb27673f4c49fd4bd3c1934b3dd2e6076

:tada: This PR is included in version 3.2.0 :tada:
The release is available on:

3.2.0
GitHub release

Your semantic-release bot :package::rocket:

:tada: This PR is included in version 3.2.0 :tada:
The release is available on:

3.2.0
GitHub release

Your semantic-release bot :package::rocket:


xgboost: add headers from dmlc-core and rabit

Adding headers from dmlc-core and rabit.

@abbradar

@Mindavi - are you able to approve and merge? I'm a maintainer, but it seems I can't approve my own PR.

Thanks @bcdarwin. Newby question - to whom should package maintainers escalate for approval? I am unable to approve my own commits it seems.

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/prs-already-reviewed/2617/737

You don't need to approve your own PRs neither do you just be a maintainer of a package to change something about it.


NeonService: Support Prometheus

IGNORE THIS

It looks like Kubernetes injects some environment variables when it starts pod containers:
KUBERNETES_SERVICE_HOST=<IP_ADDRESS>
KUBERNETES_SERVICE_PORT=443
KUBERNETES_SERVICE_PORT_HTTPS=443

https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/#environment-variables
This is exactly what I'm looking for, I'll just look for the existence of KUBERNETES_SERVICE_HOST and I'll probably expose this as NeonHelper property.

Here's how we're going to do this:

[ ] Add a new NeonServiceSettings class to Neon.Service and expose this as a new NeonServiceSettings read property:public class NeonServiceSettings
{
    public bool WaitForNetwork { get; set; } = true;
    public IPEndPoint WaitEndPoint { get; set; } = null;
    public bool ExposeMetrics { get; set; } = true;
    public int MetricsPort { get; set; } = 0;
    public string MetricsPath { get; set; } = "metrics/"
}

Implemented for neonLIBRARY v2.5.0.

We need to figure out how to enable detailed .NET Runtime metrics collection.  prometheus-net has a package for this:
https://github.com/djluck/prometheus-net.DotNetRuntime
...but it only supports ,NET Core (not .NET Framework).

Since the Neon.Service changes for neonLIBRARY v2.5.0 are already breaking, I'm going to convert the Neon.Service package to .NET Core 3.1 and add a new Neon.Service.Framework package for .NET Framework folks (I know there probably aren't any but we need to get used to supporting "The Community")


Add a dynamic_partial_sum operator to tensorflow?

Hi,
In my application I need to do operations that dynamically sum some rows of a matrix to get a new matrix.  There will be an input tensor named "index" that guides which part of the tensor to be summed.
An example is, if the input matrix is
[ [   1,   1,   1],
  [  10,  10,  10],
  [ 100, 100, 100] ]

And the index is
[ [ 0, 2 ],
  [ 2, 3 ]]

which simply says the output tensor will have two rows (because the "index" have two rows), the first row is the sum of rows with row number i that satisfies 0 <= i < 2 in the input, and the second row is the sum of rows with row number 2. So the result should be
[ [  11,  11,  11],
  [ 100, 100, 100] ]

I don't find any existing operation that does this job, so I implement it (support only 2d matrix and GPU) by myself.  Since I already have an implementation, I'm not requesting a new feature here. But I do want to know that if the tensorflow team is interested in adding this operation as part of tensorflow. If the answer is yes, I will add CPU support (maybe also xla? I have no idea on how to add xla support yet), and then create a pull request for that.

@ebrevdo, @rmlarsen, what do you two think? What would we call such an operation. It does seem useful. I've wanted to do this type of thing once or twice, even.

Is there a numpy equivalent function or composition of functions that do
this?
On Sun, Feb 19, 2017 at 4:24 PM, Andrew Selle<EMAIL_ADDRESS>wrote:

@ebrevdo https://github.com/ebrevdo, @rmlarsen
https://github.com/rmlarsen, what do you two think? What would we call
such an operation. It does seem useful. I've wanted to do this type of
thing once or twice, even.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/7662#issuecomment-280962290,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABtimxNzOClfnr087AfR8NrJkxeOLF_7ks5reN02gaJpZM4MFYyd
.

There is something similar:
https://docs.scipy.org/doc/numpy-1.10.0/reference/generated/numpy.ufunc.reduceat.html
On Sun, Feb 19, 2017 at 10:50 PM ebrevdo<EMAIL_ADDRESS>wrote:

Is there a numpy equivalent function or composition of functions that do
this?
On Sun, Feb 19, 2017 at 4:24 PM, Andrew Selle<EMAIL_ADDRESS>wrote:

@ebrevdo https://github.com/ebrevdo, @rmlarsen
https://github.com/rmlarsen, what do you two think? What would we call
such an operation. It does seem useful. I've wanted to do this type of
thing once or twice, even.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<
https://github.com/tensorflow/tensorflow/issues/7662#issuecomment-280962290
,
or mute the thread
<
https://github.com/notifications/unsubscribe-auth/ABtimxNzOClfnr087AfR8NrJkxeOLF_7ks5reN02gaJpZM4MFYyd
.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tensorflow/tensorflow/issues/7662#issuecomment-280981873,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AA_Auf9fI0NfkizBfh0iBx83-mzwRgtvks5reQ2IgaJpZM4MFYyd
.

To be honest, numpy's numpy.ufunc.reduceat is so confusing and unnatural to me. I prefer the behavior I define here at this issue.

This functionality seems useful to me. Marking as contributions welcome.

This is the branch I'm working on:
https://github.com/zasdfgbnm/tensorflow/tree/dynamic_sum
I'm still struggling on the organization of codes at tensorflow, I will explore myself, but it will take time.
Do I put the source files to the correct directory, i.e. tensorflow/contrib/framework/kernels?

Isn't this a scan, a gather, and a subtraction?

@girving Yes, in the case of sum it is, but I don't think it is a very idea to implement it this way. Let's say you have a tensor containing 10000 rows, each row have value about ~1, and you want the sum of row number 5000-5005, then computationally speaking, implementing using scan, gather and subtract, you are doing a 5005-5000, which has less precision than 1+1+1+1+1.
In the case of product, it is not, because 0 * something / 0 is NaN. Neither does max and min.  In my application, I only use sum, so it might be OK to use scan-gather-subtraction for me. But I'm not sure if other reduction operations like prod, min, max would be useful to others.
By the way, there are similar thing as the Op I'm implementing named tf.segment_sum, written in C++, see:
https://www.tensorflow.org/api_docs/python/tf/segment_sum
https://github.com/tensorflow/tensorflow/blob/master/tensorflow/core/kernels/segment_reduction_ops.cc

To be honest, numpy's numpy.ufunc.reduceat is so confusing and unnatural to me. I prefer the behavior I define here at this issue.

Over in https://github.com/numpy/numpy/issues/834, we are discussing how to replace reduceat, which I think everyone agrees was poorly designed. We have not yet settled on a replacement, however.


CGAL dependency problem

Having this error after installation:

Hint: problem with the build of the boolean functions on windows because of the CGAL dependency.

i am aware of this problem (on windows). if you don't need the boolean operations, you can just leave them out. to do so, edit the following files:

modules/CMakeLists.txt: comment line 6 (add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/booleans))
src/compas_libigl/__init__.py: comment line 5 (from .booleans import *)

let me know if that doesn't work...

@KIKI007 this is the problem with the CGAL dependency i mentioned during the last meeting. would you mind having a look?

i am aware of this problem (on windows). if you don't need the boolean operations, you can just leave them out. to do so, edit the following files:

modules/CMakeLists.txt: comment line 6 (add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/booleans))
src/compas_libigl/__init__.py: comment line 5 (from .booleans import *)

let me know if that doesn't work...

I have left out the boolen operations. There is also this problem now:

ha sorry forgot about that one. it does multiple boolean operations at once. should also be left out for the same reason...


:sparkles: page profile/[email]/graphs

fix #142

resolve #241

good catch @benjaminbrgs thanks :100:


Dynamic query on timestamptz

Hi all,
my Model has a DateTime property:
public class Appointment : Item
{
    public int ClientId { get; set; }
    public int? OperatorId { get; set; }
    public DateTime Date { get; set; }
    public decimal From { get; set; }
    public decimal To { get; set; }
    public string Notes { get; set; }

    public virtual Client Client { get; set; }
    public virtual Operator Operator { get; set; }
}

The DatabaseContext:
entity.Property(e => e.Date)
  .HasColumnType("timestamptz")
  .IsRequired()
  .HasColumnName("date");

I am using dynamic Linq query, I simply use a where condition over a iQueryable:
iQueryable.Where(condition);
The condition is fully dynamic, I build it based on the passed parametes. If the parameter is a filter for the Date property I don't really know how the query should be. I tried Date == "2023-03-30T00:00:00.000Z" and Date == DateTime.Parse("2023-03-30T00:00:00.000Z") I get:
'timestamp with time zone' literal cannot be generated for Local DateTime: a UTC DateTime is required.
The database field is a timestamptz. I already tried adding the attribute as mentioned here, did not help.
How has the condition to look like?

Maybe use something like:
var x = dbcontext.Appointments.Where("Date == @0", DateTime.Parse("2023-03-30T00:00:00.000Z").ToUniversalTime());

@emaborsa
Did this answer help you?

Sorry, I have not been able to check it yet.

@emaborsa
Did you have time to check?

Unfortunately I didnt, have to work on another project.

I'm closing this now.
In case you still have an issue, comment here or create a new issue.


Issue 190

Fix #190, #191, #192

Warning: i had to change a bit the script bin/build-server. Now it does not create a symlink to the sources anymore, because it messed up the sources with formalisms and tools.
Instead, you now have the bin/build-update command that updates the installed cosy rock with the version in sources. It also takes the prefix as parameter.

HTTP server was broken by 6461502.
It is now fixed.


import statement not emitted in declaration file

Search Terms:
import statement not emitted
Code
git clone https://github.com/ant-design/ant-design
cd ant-design
npm install
npm run compile
ed lib/input/TextArea.d.ts # [1]

Expected behavior:
lib/TextArea.d.ts has a property, TextArea.resizeObserver, that refers to ResizeObserver from 'resize-observer-polyfill', so the file should have an import statement for it. (components/input/TextArea.tsx is the origin of the d.ts file)
Actual behavior:
No import statement
[1] ed is the standard text editor

Was caused by a bug in the type declarations of a dependency of antd.


Enable support for multiple examples

Swagger UI 3.23.0 was recently released with a feature to support multiple examples. This is one of the longest awaited issues (https://github.com/swagger-api/swagger-ui/issues/2651) and one that is exciting to have available on our projects.
Could you consider adding support for it on the current release?

As of v5.0.0 Swashbuckle has been shipping with swagger-ui v3.24.3 or higher.


Changes in game are being overwritten on restart of the launcher.

User changes some settings in game - E.G disables save on wait.
Next time the launcher opens, those settings are restored back to the defaults.

@Mieekaserra  Where are these settings stored? Are we sure this is the launcher? I can't imagine these settings being impacted by the launcher.

Lets say a user edits the Autosave in game. That writes away to the profile Skyrimprefs.ini
next time they open or launch the game - not sure which (could be both)
you OVERWRITE that changed Skyrimprefs.ini from the files in the Launcher\graphics presets
Its pretty much the same with any setting in game - next time they play its reverted to defaults
The only way the user has been able to edit any of the settings in game is by manually editing the Launcher\graphics presets version of skyrim or skyrimprefs.ini

This can be solved in the same way we manage enbs. When the game closes, the file can be copied back to the launcher location so it can be reused next time.


"Boghicea", "Căușeni", "Nistria" and "Slobozia" are listed in the drop-down menu

Description:
"Boghicea", "Căușeni", "Nistria" and "Slobozia" are listed in the drop-down menu alongside its corresponding county and commune, according to the law
Precondition:
The website is up an running.

Step 1
Type "Boghicea" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Boghicea, NEAMȚ (Boghicea)" and "Comuna Boghicea, NEAMȚ".

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 3
Type "Căușeni" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Căușeni, NEAMȚ (Boghicea)".

Step 4
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 5
Type "Nistria" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Nistria, NEAMȚ (Boghicea)".

Step 6
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 7
Type "Slobozia" in the search bar.

Expected results
The location is listed in the drop-down menu as "Sat Slobozia, NEAMȚ (Boghicea)".


README.md refers to "ASSERT_FAILm" when it should be "ASSERT_FALSEm"

The README.md documentation talks about ASSERT_FALSE(cond) and ASSERT_FAILm(msg, cond). However, the actual macro is ASSERT_FALSEm(msg,cond).
Took me about 1 minute to fix after reading the code when it didn't build, but seems like a trivial fix :)

Good catch, thanks. Fixed by fd4d1fd.


OAuth fetchInstallation frequency

Hi, I'm following the doc in https://slack.dev/bolt-js/concepts#authenticating-oauth to set up fetchinstallation. I am saving data to public cloud storage location.
However, I saw a high frequent API calls coming from slack bot's fetchinstallation to fetch installation data stored in public cloud storage. Every time I'm interacting with the slack bot, it will try to fetch installation data from my public cloud storage.
Is it expected behavior? Does slack bolt have any built in cache to minimize the call to fetch installation?

Hi @dt-nwx, thanks for asking the question.

Is it expected behavior?

Yes, it is.

Does slack bolt have any built in cache to minimize the call to fetch installation?

No, it doesn't at this moment and we don't have plans to add such at least in the short term. Therefore, please add the caching logic to your own installation store implementation at this time.
I hope this clarifies!

Thank you @seratch


sreampark do not support sealos image repo

Search before asking

[X] I had searched in the issues and found no similar issues.

Java Version
JAVA8
Scala Version
2.11.x
StreamPark Version
2.1.1
Flink Version
1.17.1
deploy mode
kubernetes-application
What happened
With the help of tools to deploy k8s has become the mainstream, the current K8s cluster deployed by sealos has its own image repository, and the high version of k8s no longer needs docker, so the company has unified the image repository for sealos provided, so the docker image configuration part in streampark is still based on the docker image library, and there are incompatibilities in actual use. Does StreamPark support sealOS image repositories? Similar image repositories also come with sealer.
Error Exception
No response
Screenshots
No response
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!(您是否要贡献这个PR?)

Code of Conduct

[X] I agree to follow this project's Code of Conduct

Rapid deployment of k8s with tools has become the mainstream, the current K8s cluster deployed by sealos has its own image repository, and the high version of k8s no longer needs docker, so the company has unified the image repository for sealos to provide, Streampark in the docker image configuration part is still based on docker image library, in actual use there is incompatibility. Does StreamPark support sealOS image repositories? Similar tools with their own image repositories are sealers, which are very popular.


New examples page proposal

Hello! =)

Recently we release first public version of this project.
https://github.com/OpusCapitaBES/js-react-showroom-client
It allows to write documentation in markdown and run all docs in sandbox with code examples.
It often useful to have possibility to play with components at web page before use it in project.
Do you interested in adding interactivity to your examples page?)
I can make it and send you pull-request. Of course it can be styled as you wish. :blush:

@kvolkovich-sc looks awesome, could you create a branch with one of the pages implemented?


Being assigned projects that I have already reviewed

Description
I just completed reviewing a project. When I clicked on Assign , I got assigned the same project that I finished reviewing 2 mins ago.

This is mainly becuase same project with same content submitted twice. The "Submit" button should be disabled once it's submitted to prevent it to be clicked twice. If then, there will be exactly same content, and from mentor's point of view, he is assigned same project.


How do I delete an installed provider?

What steps did you take and what happened:
I installed the csi azure provider and now I want to uninstall/delete it, how do I go about doing it?
helm delete <release-name>
kubectl delete pods

did not work
What did you expect to happen:
I expect the csi-provider to stop running on my aks cluster
Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]
Which access mode did you use to access the Azure Key Vault instance:
[e.g. Service Principal, Pod Identity, User Assigned Managed Identity, System Assigned Managed Identity]
Environment:

Secrets Store CSI Driver version: secrets-store.csi.x-k8s.io/v1alpha1
Azure Key Vault provider version: (use the image tag):csi-secrets-store-provider-azure
Kubernetes version: (use kubectl version and kubectl get nodes -o wide):
Client Version: version.Info{Major:"1", Minor:"15", GitVersion:"v1.15.0", GitCommit:"e8462b5b5dc2584fdcd18e6bcfe9f1e4d970a529", GitTreeState:"clean", BuildDate:"2019-06-19T16:40:16Z", GoVersion:"go1.12.5", Compiler:"gc", Platform:"windows/amd64"}
Server Version: version.Info{Major:"1", Minor:"16", GitVersion:"v1.16.13", GitCommit:"37c06f456fdb4d25e402b5fbcb72cd6a77a021a9", GitTreeState:"clean", BuildDate:"2020-09-18T21:59:14Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}
Cluster type: (e.g. AKS, aks-engine, etc): aks

it runs a DaemonSet and can be delete using kubectl delete daemonset <name>

it runs a DaemonSet and can be delete using kubectl delete daemonset <name>

just with  kubectl.exe get secretproviderclasses.secrets-store.csi.x-k8s.io you get the name
and then
kubectl.exe delete secretproviderclasses.secrets-store.csi.x-k8s.io <name>


Quick smooth shortcut.

When a key is held down (Shift should be familiar to Blender users), the current tool is temporarily switched to the smooth brush, and goes back to the previous tool when let go.
Additionally, whenever https://github.com/outobugi/Terrain3D/issues/102 is implemented, holding down Shift and CTRL at the same time, it should switch to the erosion brush, as the inverse of smoothing is sharpening, and erosion would be the closest to it.

See my suggestion here: https://github.com/outobugi/Terrain3D/issues/122#issuecomment-1641019108

Let's consolidate this ticket into #122


ImportError: No module named 'Queue'

  File "C:\Python34\lib\site-packages\craigslist\__init__.py", line 3, in <module>     from Queue import Queue ImportError: No module named 'Queue'
Looks like it's not Python3 compatible after all.

The issue has already been fixed. I just hadn't had the time to make a new release yet. I'll do that pretty soon.
Thanks for using the module! :+1:

Any news on this? There hasn't been a new release in over a year but the commits have been coming.

julio, it looks like github's been updated but not the pip install package
xilni, you'll want to go to /users//anaconda/lib/python3.4/site-packages/craigslist/ and rm the init.py file in there
replace it with the current init.py file julio has up on github:
https://raw.githubusercontent.com/juliomalegria/python-craigslist/master/craigslist/__init__.py
(I just copy pasted using vi)

Sorry guys, I've been slacking off on this module. I'll review the pull requests & update the pip package tomorrow.
Thanks for all the collaboratioN!

New version of python-craigslist (1.0.1) is live in PyPI now. That version should fix this issue.
Thanks for bearing with me :)


All services become unreachabe after install

Hello,
Tried to use this script, but after install it all services present on swarm become unreachable, If i specify a service on install process only this one become reachable. Manual container are not affected. Once uninstalled all back to work.
DIRD 3.3.0
Machines are Ubuntu 20.04
What else information is useful to help identify this behavior?

Hi @zimbres thank you for trying DIND. I would need more information, ideally sufficient to reproduce the problem on my own systems. I realise that's difficult when you may be running bespoke applications though.
Still what would be useful is information about your docker swarm topology: how many nodes, how many are used as are load balancers, the load balancers ingress network IPs, the names of the services you're running and the ports and protocols being exposed by each of those services (listed separately), the DIND command line you're running (which should reflect all of the above), confirmation you're running DIND on all nodes, and that you've shutdown and relaunched (or scaled to zero and back) the services selected to be affected by DIND.
That should help get the investigation underway, and we'll take it from there.

Hi, missing was scale down to zero the service after installation! Tks
I realized that I need to set services and ports at installation, otherwise all ports of all services are affected and not only the informed service.
For the records, in my case even with a machine with a /16 subnet on ingress, its working. I have only one service exposed that is an Kong API Gateway where I applied the DIND.
Whats is good strategy to run the script at machine boot? I tried rc.local but at the moment of its execution the ingress network is not available yet.

Hi @zimbres. That's great news. Yes, for service containers that are already running prior to running DIND, DIND will disable SNAT immediately (which will break routing) but not add the policy routing/firewall rules to the service containers, since it only does that for new service containers as they are launched.
It's good to hear DIND is working with a /16 subnet. But a word of warning: I think it will be fine as long as the nodes you are using as load balancers all have a different final byte in their /16 IP address - but otherwise I would expect it to break!
So, for example, if your load balancer nodes are x.y.10.2, x.y.11.3 and x.y.12.4, then the TOS byte, which will be set to 2, 3 or 4, can uniquely identify and represent the load balancer in the container firewall and routing rules. But if one load balancer node was x.y.13.4 then it would clash with x.y.12.4 - both nodes would set the TOS byte to 4, and the containers would set up conflicting and broken firewall and routing rules.
(Thinking this through, I can imagine a workaround to make this safe: instead of using the final byte of the load balancer ingress IP for the TOS byte, instead order the load balancer IPs and for the TOS byte use their index (numbered 1...n where n is the number of load balancer nodes). These TOS bytes will be unique for each load balancer node and still allow operation with ingress networks larger than /24: /16 or even /8. Perhaps I will add this functionality later!)

To run the script at boot, we use something like this systemd unit, installed at /etc/systemd/system/dind.service:
[Unit]
Description=Docker Ingress Routing Daemon
After=sysinit.target dockerd.service
StartLimitIntervalSec=0

[Service]
ExecStart=/usr/local/bin/docker-ingress-routing-daemon --ingress-gateway-ips <IP_ADDRESS> --install
Restart=always

[Install]
WantedBy=multi-user.target

N.B. Obviously it's necessary to customise the ExecStart option according to your requirements.

(Thinking this through, I can imagine a workaround to make this safe: instead of using the final byte of the load balancer ingress IP for the TOS byte, instead order the load balancer IPs and for the TOS byte use their index (numbered 1...n where n is the number of load balancer nodes). These TOS bytes will be unique for each load balancer node and still allow operation with ingress networks larger than /24: /16 or even /8. Perhaps I will add this functionality later!)

FYI I've implemented this workaround so as to provide full support for /16 ingress networks, and hope to push to a branch soon. If you can test, that would be fantastic. Details will be posted to https://github.com/newsnowlabs/docker-ingress-routing-daemon/issues/15.

Hi, o got the point of subnet size, In my case I have just one node under validations to be implemented. So, its not a problem at all.
I chose a /16 subnet after face problem at ingress network with some containers that is in a failing loop and this exhausted the network IP delivery. After some research looks like also Docker advise to use bigger subnets.
I appreciate the systemctl script, works fine.
For sure I can test the version of /16 networks that  you change, but since I running only one node, not sure if will produce the expect results, let me know.

HI @zimbres.  With only one load balancer, there is no risk at all in using DIND v3.3.0 (as long as it doesn't have a .0 ingress IP address!) and my DIND v4.0.0 code would add little value (except it would work with a .0 ingress IP address).
Still, if you have a moment, please check out and test the https://github.com/newsnowlabs/docker-ingress-routing-daemon/tree/indexeds-ids branch, and add any comments on #15 (at least, I hope it will give you clearer logging of DIND's activities).
As we've dealt with your original issue, I will close this issue now.


bug: import attributes is not supported

Background
The extension stops working due to the following error:
SyntaxError: Unexpected token 'with'
    at ESMLoader.moduleStrategy (node:internal/modules/esm/translators:119:18)
    at ESMLoader.moduleProvider (node:internal/modules/esm/loader:473:14)
    at async link (node:internal/modules/esm/module_job:68:21)
(node:7938) ExperimentalWarning: Import assertions are not a stable feature of the JavaScript language. Avoid relying on their current behavior and syntax as those might change in a future version of Node.js.
(Use `Code Helper (Plugin) --trace-warnings ...` to show where the warning was created)
(node:7938) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time

I suspect this was probably due to the current VS Code 1.89.1 does not support import attributes.
VS Code information
Version: 1.89.1
Commit: dc96b837cf6bb4af9cd736aa3af08cf8279f7685
Date: 2024-05-07T05:14:32.757Z
Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Code/1.89.1 Chrome/120.0.6099.291 Electron/28.2.8 Safari/537.36

I guess it the the node version that doesn't support this that ships by default with VS Code.
However you can point to a locally installed node version using the eslint.runtime setting. If you point to a latest node version will it work for you?

TIL eslint.runtime
@dbaeumer Thanks for the suggestion and it works.