ESLint error in Vue components

After testing the latest version of this in a mockup Typescript project, I have found that inside a Vue component
I cannot seem to avoid the eslint error: 'google' is not defined.eslint (no-undef).
It seems to work fine inside a .ts file, and all the Google API Types are available (e.g. google.maps.LatLngLiteral), but that error persists.
Would love some help in finding what's needed here. It may even be an eslint problem, but not sure.

This problem doesn't exist using the older dev-dependencies:
    "@typescript-eslint/eslint-plugin": "^2.33.0",
    "@typescript-eslint/parser": "^2.33.0",

But these are quite old.
An alternative I could try is making my own namespace which can handle all the input type definitions and so we don't need the google definitions anymore - but not today ⌚

Does your .eslintrc.js file contain the google line in the extends section?
extends: [
    "eslint:recommended",
    "plugin:import/errors",
    "plugin:import/warnings",
    "plugin:import/typescript",
    "google",
    "plugin:@typescript-eslint/recommended"
  ],

Can't seem to get that to work @kbottner ?
Are you using the latest? Is it working for you?

I filed that addition to issue #25 and haven't moved back to X5 since I was waiting on a resolution. But I am using Google Maps directly and that is how I got eslint to appropriately work.

Fixed this in #62 I think with a typeRoot property in tsconfig.


Implement std::error::Error for BufanyError

It makes this error easier to import and handle from external crates. Only thing that has to be implemented is fmt::Display since debug is already implemented. I'm happy to open a PR if agreed.

Sounds good, go for it.
While you are on it, could you also add a default feature "std" and feature-gate the implementation? I know std::error::Error is an issue for our no_std friends which might like this library at some point.

Released as part of 0.5.0. Thanks a lot!


Histogram values sum implementation

Implementation of values total sum calculation in histograms.
The total sum of values is required to comply with Prometheus format standard:
https://prometheus.io/docs/concepts/metric_types/#histogram
Also, sum allows to calculate the average value, which could be useful for some metrics.
The corresponding issue:
https://github.com/userver-framework/userver/issues/707
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/.

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/


Fix for out_path only working for directories

Now out_path creates the right file, see #383. All tests but 3 pass, but those were not working before on my system. All behavior should thus be the same.

I now see that the Julia formatter has changed all the formatting in the Weave.jl file, but I am not sure how to fix that... I'll look into it later if that is a problem.

Can you please remove the changes made by formatter ? I'd like to keep the style consistent with the other parts of code base (especially whitespaces around kwargs)

Sure thing, formatting should now be correct.

Thanks for your contribution !


NO-ISSUE modified code so that it catches instances of the component …

This includes an update that catches the blade-ui-kit formatting.
<x-heroicon-o-cloud-download class="h-7 w-7" />

becomes
<x-heroicon-o-cloud-arrow-down class="h-7 w-7" />

Thanks for your amazing work on this!!!  It made my upgrade SO much easier.  Since I was using the blade-ui-kit, I had to make a tiny change, but once that was done it saved my bacon (144 files changed on my project).
Much, much appreciated!

Thanks for your amazing work on this!!! It made my upgrade SO much easier.

I had to make a tiny change, but once that was done it saved my bacon

Could you mind explaining this change, I'm not entirely sure what it does, other than split the regex replacement into a separate method.
I did notice one bug i have not fixed yet, unrelated to this, but might be somewhat related, and that is that it does not account for newlines directly after the icon name so
<x-heroicon-o-name\n will not be caught properly, need to fix the regex for that later.

The main change (I think) is in these 2 lines:
// New pattern for Blade component syntax
$bladePattern = "#<x-heroicon-{$variant}-".preg_quote($oldName, '#')."([\s>])#";
$contents = $this->replacePattern($contents, $bladePattern, "<x-heroicon-{$variant}-{$newName}$1", $replaced);
Essentially - the original version wasn't catching the format <x-heroicon-anything class="h-4 w-4" .../> in my code for some reason.  Once I added that, it worked like a charm.
Example from my code that the first one didn't catch but the 2nd one would:
                                        <x-heroicon-o-plus class="mr-2 h-7 w-7" />

That's from my current code, so it won't match against your list, but hopefully it provides some insight.

Issue mentioned in the PR should be fixed in v1.1.0..


[BUG]When using Set-PnPPageTextPart update text with a img link, the image was disappeared after user edit the page from SPO UI.

I used the below PS cmdlet to update a page which has a Text web part, the content was updated correctly. However, when an user updated that changed page from SPO page edit view and save it. the image was gone.
Set-PnPPageTextPart -Page PSTest1 -InstanceId 64149e67-f0d8-48fb-abfe-34b46aa28f3c -Text "MyText"

Expected behavior
the end user can update the page from SPO UI
Actual behavior
After running the PS to insert the img tag inside the page, when end user updated the page and save it from SPO UI, the image was disappeared.
Steps to reproduce behavior
Please see image below

What is the version of the Cmdlet module you are running?
1.9.0
Which operating system/environment are you running PnP PowerShell on?

[X] Windows
[ ] Linux
[ ] MacOS
[ ] Azure Cloud Shell
[ ] Azure Functions
[ ] Other : please specify

@khamphou , thanks for your note. I realized that when I added a image, it became to separate web part which also provides additional functions like resize, zoom. just wondering if there is a way to add that programmatically?

It seems like the PnP.Framework used by PnP Powershell included inline web part logic. but the PnP.PowerShell (v1.10) which I used doesn't include that feature yet. So the solution is to interact with object directly like below. hopefully the new PnP.PowerShell version will include that. Thanks
$p = Get-PnPPage PSTest1
$wpText = $p.NewTextPart()
$html = $p.GetInlineImage($wpText, "/sites/FrankCommunication1/SiteAssets/SitePages/Event/48279-car-500x300.jpg")
$text = "MyText" + $html
$wpText.Text = $text
$p.AddControl($wpText, $p.Sections[0].Columns[0])
$p.Save()

Thank you for the updates.
Is this new method available for pnp powershell nightly build 1.10.13 ?
the code you mentionned was tested and worked ? or just a portable version of the pnp core c# code ?


Hide .bundle folders

Related to the newly introduced bundle install --jobs=4 --retry=3 command

:+1:


Copy uploads to another S3 location after completion

This would improve security, but also make downstream deployment more difficult (an async task is necessary) and increase the latency before an upload is usable.
We might decide not to implement this.

Decision: will emit a signal when finalize happens. Will provide a utility to do a rename. Downstreams can wire it up to their async implementation if they want. Joist doesn't handle the model save (just the S3 move).


parts object so we can work around the off by one day bug

Is your feature request related to a problem? Please describe.
Yes, this would give users a high quality mechanism to get around the 1 day off bug: https://github.com/Hacker0x01/react-datepicker/issues/1018
Describe the solution you'd like
We we would add a third parameter to onChange which would enable users to produce a LocalDate (or PlainDate as the Temporal spec calls it) without having to do workarounds such as those described in https://github.com/Hacker0x01/react-datepicker/issues/1018
export interface IDateParts{
    year: number;
    month: number;
    dayOfMonth: number;
    hour: number;
    minutes: number;
    seconds: number;
    /** a string so that you can capture negative numbers */
    offset: string
}

onChange(
        date: WithRange extends false | undefined ? Date | null : [Date | null, Date | null],
        event: React.SyntheticEvent<any> | undefined,
        parts: IDateParts
    ): void;

For example, you could then use that parts object to do a high quality translation to LocalDate since you'd know that you can disregard hours and minutes:
import { LocalDate } from  "@js-joda/core"

const handleOnChange = (,,parts) => {
  if(parts.hours === null || parts.hours === undefined){
    // We now know that the selection was a day not a date/time
    const myLocalDate= LocalDate.of(parts.year, parts.month, parts.dayOfMonth));
    setDate(myLocalDate);
  }
}

And of course you can still handle moments in time types too:
import { ZonedDateTime } from  "@js-joda/core"

const handleOnChange = (,,parts) => {
  var myZDT = ZonedDateTime.of(
    LocalDate.of(parts.year, parts.month, parts.dayOfMonth),
    LocalTime.of(parts.hour, parts.minutes),
    ZoneId.SYSTEM
  );
  setDate(myZDT);
}

Describe alternatives you've considered
There are a great many workarounds listed in https://github.com/Hacker0x01/react-datepicker/issues/1018 and none of them are considered to be universally successful or more superior to another. My approach described in https://dev.to/dgreene1/making-your-datepicker-easier-to-work-with-21n4 gets closer by using domain driven types (like the Temporal spec) to give more clarity. But that approach is also hamstrung by having to work on formatting the ISO string. So the approach above removes the JS Date object from the mix entirely and allows true representation of LocalDate (i.e. a date without time).
Additional context

The numbers and strings in the parts object would have to have the same index (i.e. 0 or 1) as the JS date numbers and JsJoda's so we would create strong interop and future proof for Temporal.
While I would classify this as a workaround at the moment due to the desire to make a non-breaking change, ideally in the future the onChange method would not return a Date object at all since that is inherently the problem.
I'm not sure that offset is something we need to support. Any thoughts? If this was approved I would only add offset if we were able to make sure it was the offset that the picker was using.
I wish that we didn't have to support seconds since it’s not available in the calendar area (unless https://github.com/Hacker0x01/react-datepicker/pull/3214 were to be reopened and merged); however, due to the ability to pass in a custom format, the input allows people to type fractions of seconds:

Looks clean. Also keep the ability for developers to use the date library of their choice (luxon, datejs, Day.js etc)

@martijnrusschen does the proposal look good to you?

Sorry for the delay. Makes sense to me.

Thank you for approving the solution. Unfortunately our team has moved into another focus and will be unable to implement this. However, I do feel that this is winning solution to the associate issue which is multiple years old. So I hope that someone will choose to implement it.

I’m requesting that this stay open (ie remove the stale label) since the proposed solution has the potential to close the multi year issue that is plaguing many business.


Erlang - Cluster.Strategy.Kubernetes leads to error

Bug Description
When using Cluster.Strategy.Kubernetes as a strategy users get an error:
{"time":"2023-11-09T18:17:39.456Z","severity":"error","message":"[libcluster:service_cluster] request to kubernetes failed!: {:failed_connect, [{:to_address, {'kubernetes.default.svc.cluster.local', 443}}, {:inet, [:inet], :nxdomain}]}","metadata":{"domain":["elixir"],"erl_level":"error"}}

Steps to Reproduce
The declaration of the topology is
 topologies = [
            service_cluster: [
              strategy: Cluster.Strategy.Kubernetes,
              config: [
                kubernetes_ip_lookup_mode: :pods,
                kubernetes_node_basename: app_name,
                kubernetes_selector: "app=#{app_name}-web",
                kubernetes_namespace: namespace,
                polling_interval: polling_interval
              ]
            ]
          ]

Backtrace
No response
Relevant Logs
No response
Your operating system and version
Mac OS 14.1
Local process
User is developing in Elixir
Local process version
No response
Additional Info
https://canary.discord.com/channels/933706914808889356/1169678897420439582/1174664744146309150
User works around the issue by changing their code to use Elixir.Cluster.Strategy.DNSPoll.

Should be retested after https://github.com/metalbear-co/mirrord/pull/2179

@infiniteregrets Can you retest please?


add simple koa session/state support

@mingyang91, could you add tests for the koa features? We could merge this changes then 😉

Okay, please wait a few hours

Ok, please review

I don't know why i got codecov/patch — 83.33% of diff hit (target 91.32%).
I check Details, the COVERAGE REACH is all green.
😖

I don't know why i got codecov/patch — 83.33% of diff hit (target 91.32%).

Your changes has only 83.33% coverage:
https://codecov.io/gh/pleerock/routing-controllers/compare/b9e39b4eaac5481e439594bcea0f65154318a272...28c685c01f20cdd90be38f52389f0779795d8542/diff
You need to write test e.g. for throwing Error while using @State with Express.

@19majkel94 please confirm this PR

@pleerock looks like @mingyang91 have fixed all shortcomings, you can check and merge then

@19majkel94 @mingyang91 thank you guys!


Explore: Creating a Utility section in Storybook

We are looking for a home for the two potential utilities on the product site which are currently listed as a pattern

Cascade
Drag and drop

Rather than cluttering the left hand nav, is it a good idea to have this only live in Storybook?

### Tasks
- [ ] Explore new section within storybook, nested?

### Utilities
- [ ] Action bar
- [ ] Delimited list
- [ ] Scroll gradient
- [ ] String formatter
- [ ] Tag overflow
- [ ] Truncated list
- [ ] ~Cascade~

@ljcarot

@aubrey-oneal As a follow up to some of our experimental component audit, we also felt like we should add a utility section, but I do think we should have more discussion on if/how we document utilities. #6157

here are some notes i've compiled while looking into this.
the main thing is that because storybook is first and foremost a library for displaying UI components. it's not really equipped to showcase non-UI elements like general utils and hooks. so while keeping this in mind, i think the best way to work around this is ensure stories are written in a way that illustrates what the utils do by creating some basic example code. we had a similar concept with storybook only components, but to lessen file clutter i think you can get away with something as simple as creating the example implementation directly in the stories file.
consider this example: here is a simple string reversal utility
// reverse.ts
const reverse = (str: string): string => {
  return str.split("").reverse().join("");
};

export default reverse;

here is what a accompanying story could look like:
// reverse.stories.tsx
import type { Meta, StoryObj } from "@storybook/react";
import reverse from "./reverse";

export interface ReverseProps {
  text: string;
}

const ReverseDemo = (props: ReverseProps) => {
  const { text } = props;
  return (

{reverse(text)}

  );
};

const meta: Meta<typeof ReverseDemo> = {
  component: ReverseDemo,
  tags: ["autodocs"],
};

export default meta;
type Story = StoryObj<typeof ReverseDemo>;

export const Default: Story = {
  args: {
    text: "a test string",
  },
};

what we end up with is a simple story that displays the functionality of the utility while also allowing the user to interact with it directly via the args

the only caveat i can see with this approach is that there may be some manual documenting necessary to explain function parameters if the args table isn't enough. not the end of the world, but something to keep in mind if further explanation is necessary.
core appears to do something similar in their hooks section.

as per our discussion earlier today: we should also take a look at moving storybook config from core and into ibm-products as well revisiting the config and preview template to see if we still need all the customization that is built into it. it may be that a lot of the stuff in there is dated and not necessary. we might be able to remove a bunch of that code in order to simplify our storybook config.

the overflow logic from TagOverflow can easily be extracted into a reusable hook
import { useState, useEffect, useCallback, useRef } from 'react';
import { useResizeObserver } from '../../global/js/hooks/useResizeObserver';

const useOverflow = ({
  items,
  containingElementRef,
  containerRef,
  multiline,
  measurementOffset,
  overflowRef,
  maxVisible,
  onOverflowTagChange,
}) => {
  const itemRefs = useRef<Map<string, string> | null>(null);
  const itemOffset = 4;
  const overflowIndicatorWidth = 40;

  const resizeElm =
    containingElementRef && containingElementRef.current
      ? containingElementRef
      : containerRef;
  const [containerWidth, setContainerWidth] = useState(0);
  const [visibleItems, setVisibleItems] = useState([]);
  const [overflowItems, setOverflowItems] = useState([]);

  const handleResize = () => {
    if (typeof resizeElm !== 'function' && resizeElm.current) {
      setContainerWidth(resizeElm.current.offsetWidth);
    }
  };

  useResizeObserver(resizeElm, handleResize);

  const getMap = () => {
    if (!itemRefs.current) {
      itemRefs.current = new Map();
    }
    return itemRefs.current;
  };

  const itemRefHandler = (id, node) => {
    const map = getMap();
    if (id && node && map.get(id) !== node.offsetWidth) {
      map.set(id, node.offsetWidth);
    }
  };

  const getVisibleItems = useCallback(() => {
    if (!itemRefs.current) {
      return items;
    }

    if (multiline) {
      const visibleItems = maxVisible ? items?.slice(0, maxVisible) : items;
      return visibleItems;
    }

    const map = getMap();
    const optionalContainingElement = containingElementRef?.current;
    const measurementOffsetValue =
      typeof measurementOffset === 'number' ? measurementOffset : 0;
    const spaceAvailable = optionalContainingElement
      ? optionalContainingElement.offsetWidth - measurementOffsetValue
      : containerWidth;

    const overflowContainerWidth =
      overflowRef &&
      overflowRef.current &&
      overflowRef.current.offsetWidth > overflowIndicatorWidth
        ? overflowRef.current.offsetWidth
        : overflowIndicatorWidth;
    const maxWidth = spaceAvailable - overflowContainerWidth;

    let childrenWidth = 0;
    let maxReached = false;

    return items.reduce((prev, cur) => {
      if (!maxReached) {
        const itemWidth = (map ? Number(map.get(cur.id)) : 0) + itemOffset;
        const fits = itemWidth + childrenWidth < maxWidth;

        if (fits) {
          childrenWidth += itemWidth;
          prev.push(cur);
        } else {
          maxReached = true;
        }
      }
      return prev;
    }, []);
  }, [
    containerWidth,
    containingElementRef,
    items,
    maxVisible,
    measurementOffset,
    multiline,
    overflowRef,
  ]);

  useEffect(() => {
    let visibleItemsArr = getVisibleItems();

    if (maxVisible && maxVisible < visibleItemsArr.length) {
      visibleItemsArr = visibleItemsArr?.slice(0, maxVisible);
    }

    const hiddenItems = items?.slice(visibleItemsArr.length);
    const overflowItemsArr = hiddenItems?.map(({ tagType, ...other }) => {
      return { type: tagType, ...other };
    });

    setVisibleItems(visibleItemsArr);
    setOverflowItems(overflowItemsArr);
    onOverflowTagChange?.(overflowItemsArr);
  }, [getVisibleItems, items, maxVisible, onOverflowTagChange]);

  return {
    visibleItems,
    itemRefHandler,
    overflowItems,
  };
};

export default useOverflow;
...
const { visibleItems, overflowItems, itemRefHandler } = useOverflow({
  items,
  containingElementRef,
  containerRef,
  multiline,
  measurementOffset,
  overflowRef,
  maxVisible,
  onOverflowTagChange,
});

here's a basic setup i've configured locally

i've put utils in their own separate section and divided some of them into specific subgroups like Components (Cascade) and Hooks (usePrefix)

Will share this in tomorrow’s sprint demo then open follow up tasks to close this out for current sprint.

currently waiting on feedback from @aubrey-oneal in #6394


Feature/saving by directory management

This PR addresses the problem of saving large amounts of samples. This approach uses model package defined way of saving outputs and then moving all generated batches to output directory.
The one thing I cannot do nicely is adding the sample index to the final filenames. (For cases where models outputs several files for one sample like image and mask)

According to #37, saving samples in such a format (every output type in the same directory) makes it hard to compute fid. Do you think we could split them into separate directory?

According to #37, saving samples in such a format (every output type in the same directory) makes it hard to compute fid. Do you think we could split them into separate directory?

Thanks for making me aware of issue #37 and the case for FID. As you also pointed out, the second option would in #37 would make FID (and similar) calculations more straightforward, but, on the other hand, an update of medigan's guidelines and models (e.g., 00004, polyp models) would be needed. To avoid the need to guideline and model updates while still having maximum flexibility of file storage pattern for users, I suggest a hybrid approach:
An additional parameter of the generate function, e.g., create_output_folder_by_type: bool. If true, medigan separates the outputs of different types (e.g., masks and imgs) into separate folders as suggested in option 2 in #37. Else, all generated files are in the same folder as in option 1 in #37.

Bugs fixed and all tests pass.


Always include equals signs in x-www-form-urlencoded bodies

What
Previously, equals signs in x-www-form-urlencoded bodies were being treated the same as in the querystring (optional if no value). This change alters this behavior and always includes equals signs in request bodies no matter what.
For example:
{name: "foo", value: "bar"} // foo=bar
{name: "foo", value: ""} // foo=

Closes #264

This also is happening with GET calls and query parameters. I'm using version 6.3.2 (Windows)

Nice catch on this one. Query parameters are a bit different since the equals sign is optional there, unlike in form-urlencoded

这个不错。查询参数有点不同，因为等号在那里是可选的，不像 form-urlencoded

Where to set options ? Equals sign is getting stripped from empty parameters. This causes a problem in ASP .NET sites as each parameter gets treated as a "keyless" parameter and each one gets concatenated to a query param with a null key.


Hide custom tag which caused error

Try to wrap custom tag execution in try-catch block and skip tag if exception has raised.
Also, skip tags that used invalid SQL.

We have basic behavior.
Now we should refactor DataAccess to throw meaning full exception and inside try-catch block build message and log it.


Document release process

Document

How to create a proper release (create a tag, publish it, create a github release)
How a snapshot release is done and how to integrate it in your project
...?

Also document how to publish to maven local for (PR) testing...

This is what I wrote so far:
## 📦 How to Release

### 1. Check out the `main` Branch

   - Make sure you're on the `main` branch and have the latest changes:

     ```bash
     git checkout main
     git pull origin main
     ```

### 2. Update the Version in `library/build.gradle.kts`

   - Remove `-SNAPSHOT` from the version in `library/build.gradle.kts`.

   - Commit this change:

     ```bash
     git commit -m "Prepare next release" .
     ```

### 3. Create a Git Tag and Push It

   - Tag the release version and push it:

     ```bash
     git tag x.y.z
     git push origin x.y.z
     ```

### 4. Trigger the Release Action

   - This will kick off a GitHub action (`release.yml`) to release your library to a [Sonatype](https://s01.oss.sonatype.org/) staging repository. 📤

### 5. Sign in to Sonatype and Close the Staged Repo

   - Head to [Sonatype](https://s01.oss.sonatype.org/) and sign in (credentials are in the Bitwarden Open Source Collection).
   - Search for the staged repo, click **Close**.
   - Once it's successfully **Closed**, click **Release** and check "Drop after release".

### 6. Create a Release on GitHub

   - After step 4 is complete, head to the GitHub release page and create a new release. 🎉

### 7. Bump the Version for Development

   - Increment the **minor** version in `library/build.gradle.kts` and add `-SNAPSHOT` to mark it as a development version.

   - Commit this change:

     ```bash
     git commit -m "Next development version" .
     ```

### 8. Push and Celebrate! 🎉💃

   - Push your changes and take a moment to celebrate a job well done!

As Markdown:
📦 How to Release
1. Check out the main Branch

Make sure you're on the main branch and have the latest changes:
git checkout main
git pull origin main

2. Update the Version in library/build.gradle.kts

Remove -SNAPSHOT from the version in library/build.gradle.kts.

Commit this change:
git commit -m "Prepare next release" .

3. Create a Git Tag and Push It

Tag the release version and push it:
git tag x.y.z
git push origin x.y.z

4. Trigger the Release Action

This will kick off a GitHub action (release.yml) to release your library to a Sonatype staging repository. 📤

5. Sign in to Sonatype and Close the Staged Repo

Head to Sonatype and sign in (credentials are in the Bitwarden Open Source Collection).
Search for the staged repo, click Close.
Once it's successfully Closed, click Release and check "Drop after release".

6. Create a Release on GitHub

After step 4 is complete, head to the GitHub release page and create a new release. 🎉

7. Bump the Version for Development

Increment the minor version in library/build.gradle.kts and add -SNAPSHOT to mark it as a development version.

Commit this change:
git commit -m "Next development version" .

8. Push and Celebrate! 🎉💃

Push your changes and take a moment to celebrate a job well done!


[virtctl] Bump crypto ssh to make the preauth authentiation for some newer ssh server configurations work

What this PR does / why we need it:
Fixes an issue where golang ssh can't connect to some ssh servers which
do not accept ssh-rsa preauthentication and make the connetions fail
with:
userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedKeyTypes [preauth]

Update to a newer golang.org/crypto version which brings in https://go-review.googlesource.com/c/crypto/+/123955/.
Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):
Fixes #6851
Special notes for your reviewer:
Release note:

Make virtctl ssh work with ssh-rsa+ preauthentication

/retest

/cc @dominikholler

@rmohr thanks for the quick fix. Maybe I compiled it the wrong way, but for me the new virtctl binary compiled from this PR did not solve the issue.

A few questions: do you have the guest agent enabled or the guest agent socket set in your env? Do you use password or public key, do you use a RSA or an ec key?

I use the default fedora 35 image, with guest-agent enabled, 5 years old rsa key, password enabled: https://gist.github.com/dominikholler/d08b8ee7449bce38c10b55149f129b0a

I use the default fedora 35 image, with guest-agent enabled, 5 years old rsa key, password enabled: https://gist.github.com/dominikholler/d08b8ee7449bce38c10b55149f129b0a

Thanks. Can you try again with the latest code change?

/hold
this will need https://github.com/golang/crypto/pull/197 being merged until this can go in.

/retest

/retest

@dominikholler can confirm that it works on fc35.

/test pull-kubevirt-e2e-k8s-1.22-ipv6-sig-network

/unhold

/cc @dominikholler

/retest
Verified.
/cc @dhiller
Would you mind doing a code-review? It is just a vendor change.

/override pull-kubevirt-e2e-k8s-1.21-sig-storage
/override pull-kubevirt-e2e-kind-1.22-sriov


Possible (probable) @fact_throws bug

@fact_throws PETSc.PetscError PETSc.chk(73)`

does not work correctly. Noting it here for the future.
reported by @kshyatt

Yep, looks this is broken for any exception not defined at the toplevel:

julia> module Foo
       type MyException
       end
       end

julia> using FactCheck

julia> @fact_throws Foo.MyException throw(Foo.MyException())
ERROR: Foo.MyException()
 in eval at ./boot.jl:263


Blockchain data clients

Planned Implementations

[ ] #18
[ ] Explorer V1 package
[ ] Indexed node package
[ ] uexplorer package

Interface
All packages must implement and extend the following interface:
type BoxQuery = {
  boxId?: HexString,
  contract?: HexString,
  address?: Base58String
}

type TokenQuery = {
  tokenId: HexString
}

interface IChainDataClient<B extends BoxQuery, T extends TokenQuery> {
  getBoxes(query: B): Box<bigint>[];
  getTokens(query: T, output: "metadata" | "box" = "box"): TokenMetadata[] | Box<bigint>[];
  getHeaders(count: number): Header[];

  checkTransaction(transaction: UnsignedTransaction<Amount>): boolean;
  submitTransaction(transaction: UnsignedTransaction<Amount>): boolean;
}

@arobsn I suggest to have different set of transaction processing methods
// reduces transaction (doesn't require knowledge of secrets)
// The resulting transaction can be signed using ErgoPay
reduceTransaction(transaction: UnsignedTransaction<Amount>): ReducedTransaction;

// protected by apiKey, signs reduced transaction (requires knowledge of secrets)
// this method can be implemented by Ergo node via embedded wallet
signTransaction(transaction: ReducedTransaction): SignedTransaction

// checks the transaction validity and it's signatures (doesn't require knowledge of secrets)
// runs verifier part of SigmaProtocol (see https://hackernoon.com/sigma-protocols-for-the-working-programmer)
checkTransaction(transaction: SignedTransaction): boolean;

// submits signed transaction to blockchain
submitTransaction(transaction: SignedTransaction): boolean;

@aslesarenko thanks for your suggestions! That will be certainly implemented for data providers which support such features.
IChainDataClient is a minimal interface that all blockchain data providers have in common, the intention is to enable dependency injection by having a minimal implementation warranty across all client packages.

@arobsn yes, and I propose to make clear distinction between Unsigned,  Reduced and Signed transactions. Of all the 4 methods, only one (signTransaction) requires knowledge of secrets and hence some wallet. Others can be implemented by any party, i.e. by Ergo node.
The signatures
checkTransaction(transaction: UnsignedTransaction<Amount>): boolean;
  submitTransaction(transaction: UnsignedTransaction<Amount>): boolean;

imply that you can implicitly sign transaction to verify its validity, which is only possible when the secrets are known, which is big requirement.

Oh, that's my fault, fixed!

Oh, that's my fault, fixed!

Ah, makes sense.
I still suggest to add reduceTransaction as a optional method (i.e. it can throw NotSupportedException).
reduceTransaction is important capability for ErgoPay support.
For example any wallet, can use it to reduce transactions (which is necessary for ErgoPay)
and the wallet don't need to have interpreter implementation available.
For example Python, C#, etc.

For example any wallet, can use it to reduce transactions (which is necessary for ErgoPay)
and the wallet don't need to have interpreter implementation available.

That's interesting, definitively worths pushing APIs to provide this endpoint, updated interface and opened an issue on ergo-graphql: https://github.com/nautls/ergo-graphql/issues/74


make sure addon-update.sh parses heapster files

@alena1108

This fixes https://github.com/rancher/rancher/issues/7820

LGTM


Update docs

That export const dynamic = 'force-dynamic' is needed when the GET is dynamic. This should be added to the docs instead of having to reach SO for the answer:
https://stackoverflow.com/questions/76191857/dynamicservererror-dynamic-server-usage-headers-in-nextjs-13-3
DYNAMIC_SERVER_USAGE is the error I was getting but didn't see anywhere in the docs.

Can you help explain how this relates to Wallet Adapter?


Add test with both pthread and newlib enabled

This commit adds a test case that reproduces sdk-ng#45.
Signed-off-by: Vincent Wan<EMAIL_ADDRESS>

Codecov Report

Merging #13599 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master   #13599   +/-   ##
=======================================
  Coverage   52.45%   52.45%
=======================================
  Files         322      322
  Lines       46592    46592
  Branches    10768    10768
=======================================
  Hits        24442    24442
  Misses      17247    17247
  Partials     4903     4903

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 80c9a6a...d63d5b8. Read the comment docs.

Closing this in favor of #13685


add MyButton version

Reference Issues/PRs
#21
What does this implement/fix? Explain your changes.
MyButton version added to the footer on the website.
Any other comments?

Since the version_check.py PR has not merged yet, I will merge this one and then open a new one regarding adding this version to version checker.


MWPW-161564: add cards tagged with "worldwide" for all signed in users

Before: https://stage--dme-partners--adobecom.hlx.live/channelpartners/home/announcements/
After: https://mwpw-161564-worldwide-announcements--dme-partners--adobecom.hlx.live/channelpartners/home/announcements/

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 82.86%. Comparing base (c7bf51c) to head (fec05a4).
Report is 3 commits behind head on stage.

Additional details and impacted files
@@            Coverage Diff             @@
##            stage     #122      +/-   ##
==========================================
+ Coverage   82.68%   82.86%   +0.17%
==========================================
  Files          10       10
  Lines        3246     3244       -2
==========================================
+ Hits         2684     2688       +4
+ Misses        562      556       -6

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


API for listing consumers of specific topics in cluster

The API is simple enough, the tests are a bit cumbersome to set up.
Outstanding concerns:

We do not know how this will work on the real cluster with so much more data.
The tests are annoyingly dependent on a time.sleep(), which is not optimal

We need to make sure environment variables are set up before this can be merged.

Multiple attempts have been made on removing the time.sleep(120)
I will let it rest for now.

This is no longer required. We decided to fetch this data from elsewhere, so no changes are necessary for the confluent-gateway in this regard.


Fix landscape hangs infintely on apply when using workspaces.

When using workspace feature in terraform, terraform apply prompt looks like

Do you want to perform these actions in workspace "WORKSPACE"?

, so existing regex would not work. This patch fixes it.

Thanks for the fix, @synthdnb.


docs: make it easier to launch the project

what's wrong with the documentation?
The aim is to make it easier to launch the project by updating the README.md file with a "Run project locally" section.
Add screenshots
Here is an overview of the documentation updated with this new section:

Record

[X] I have checked the existing issues
[X] I have read the Contributing Guidelines
[X] I agree to follow this project's Code of Conduct
[X] I want to work on this issue

already mentioned in https://github.com/priyankarpal/ProjectsHut/blob/main/contributing.md

@priyankarpal I think you've misunderstood what I'm proposing. I'm just proposing documentation to simplify how to launch the project locally. It's not about helping to add a new project.


Add rest 116 themes images

@Mayccoll here is the rest of themes images for the website :framed_picture:

Amazing!!!! :tada:
Literally, I don't have words.
There are some incredible themes and the work was incredible.
Thank you very much.


Report target voltage in CLI when available

ST-Link probes support reporting the target voltage detected on their VAPP pin, which is a useful problem-solving tool when solving connection issues. openocd prints this information by default for every operation:
Info : Target voltage: 1.529843

I propose that probe-rs-cli and related tools would benefit from reporting this information to the user whenever available.
Additionally, there are several QoL improvements which could easily be built on top of this functionality. Firstly, warning in the case of a voltage which is clearly too low, again in the style of openocd:
Error: target voltage may be too low for reliable debugging

I can also imagine it being easy to detect a disconnected VAPP pin by taking several consecutive measurements and comparing them. When left disconnected, the measured target voltage seems to flicker between several values, in my case:
0.003141
1.556545
0.001571

whereas a correctly connected VAPP fluctuates by around 0.02v. When handling errors like SwdDpFault, SwdApError, JtagGetIdcodeError and SwdDpParityError (for which little-to-no useful debugging information is currently available), automatically detecting a disconnected VAPP from the fluctuating target voltage would be a useful diagnostic.

I’d be happy to try working on any of these enhancements, but I’m new to rust and would need some guidance. I already browsed through the code and found a few places which seem relevant, but it isn’t obvious to me exactly where the features I propose would best fit into the codebase.

I’d be happy to try working on any of these enhancements, but I’m new to rust and would need some guidance. I already browsed through the code and found a few places which seem relevant, but it isn’t obvious to me exactly where the features I propose would best fit into the codebase.

Oh, I forgot to mention: the same error case caused by leaving VAPP disconnected can sometimes cause probe-rs-cli info to print an empty Available Access Ports: rather than an error. Whatever codepath leads to that outcome would therefore also be a candidate for low target voltage or disconnected-VAPP diagnostics, but it’s also possible that printing an empty Available Access Ports: rather than an error should be considered a separate bug.

Oh, I forgot to mention: the same error case caused by leaving VAPP disconnected can sometimes cause probe-rs-cli info to print an empty Available Access Ports: rather than an error. Whatever codepath leads to that outcome would therefore also be a candidate for low target voltage or disconnected-VAPP diagnostics, but it’s also possible that printing an empty Available Access Ports: rather than an error should be considered a separate bug.

I think it's a great idea to add this.
I would suggest to add a new function to the DebugProbe trait, which can be used to read the target voltage.
The function can then be implemented by the different probes.
On the Probe struct you can then add a similar function, which forwards to the actual probe. Similar to how the Probe::speed_khz() function works.
For reporting the voltage, it would probably be easiest in the beginnnig to add some log output to the Probe::attach method, which prints the detected voltage.

I think it's a great idea to add this.
I would suggest to add a new function to the DebugProbe trait, which can be used to read the target voltage.
The function can then be implemented by the different probes.
On the Probe struct you can then add a similar function, which forwards to the actual probe. Similar to how the Probe::speed_khz() function works.
For reporting the voltage, it would probably be easiest in the beginnnig to add some log output to the Probe::attach method, which prints the detected voltage.


Using 'istioConfig' throws invalid JSON payload error

Hi,
I have been trying to use 'istioConfig' to enable Istio on a GKE cluster.
I am using python templates in combination with hierarchical configuration setup for organization and department provided in the deployment manager samples.
The config for GKE cluster looks as follows in the python config file for the module:
config = {
         "properties": {
            "clusterLocationType": "Zonal",
            "zone": "us-east1-b",
            "cluster": {
                "initialNodeCount": 6,
               "nodeConfig": {
                       "machineType": "g1-small"
               },
                "addonsConfig": {
                   "httpLoadBalancing": {},
                   "horizontalPodAutoscaling": {},
                   "kubernetesDashboard": {
                       "disabled": True
                   },
                   "istioConfig": {}
               }
            }
         }
}

Upon running deployment manager, I get following:
  message: "{\"ResourceType\":\"container.v1.cluster\",\"ResourceErrorCode\":\"400\"\
    ,\"ResourceErrorMessage\":{\"code\":400,\"message\":\"Invalid JSON payload received.\
    \ Unknown name \\\"istioConfig\\\" at 'cluster.addons_config': Cannot find field.\"\
    ,\"status\":\"INVALID_ARGUMENT\",\"details\":[{\"@type\":\"type.googleapis.com/google.rpc.BadRequest\"\
    ,\"fieldViolations\":[{\"field\":\"cluster.addons_config\",\"description\":\"\
    Invalid JSON payload received. Unknown name \\\"istioConfig\\\" at 'cluster.addons_config':\
    \ Cannot find field.\"}]}],\"statusMessage\":\"Bad Request\",\"requestPath\":\"\
    https://container.googleapis.com/v1/projects/testproject/zones/us-east1-b/clusters\"\
    ,\"httpMethod\":\"POST\"}}"

I am not sure if this is a bug or if I have misconfigured the istio config.
Regards,
Giriraj

You are missing a few critical lines between config and properties:
'name': cluster_name,
   'type': 'gcp-types/container-v1beta1:projects.locations.clusters',
where cluster_name is a python variable. Pay attention to the type because it's not in typical python template examples. You are using Istio which is in Beta. Here is an example of the .py and .yaml file.

I recommend you to take a look at our update CFT GKE template..


Implement Heat map

First of all this is an amazing library and really helpful. However I'm wondering whether we can show a heat map based on points we show on the map ? I didn't try any code to implement that since I couldn't find anything regarding heat maps on guide. Is it possible with current release?

Hello! 👋I'm glad the library has been useful to you! I've looked into heatmaps for iOS and it seems like you are right with regards to nothing being listed regarding heatmaps. The strange thing is that documentation is hidden for  heatmaps. I'll take a look to see if there's anything I can do.

Thank you for replying. Actually I need to show these points on Android mainly and need to support iOS as well. So I'm hoping whether your module has a documentation which will provide JS APIs to do these?


Readme file enhanced

Description
I have added a list of Open Source programs in which this projected has been a part of. I have also corrected all the grammatical errors in the Readme file.
Fixes #58
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update

How Has This Been Tested?

[ ] Test A
[ ] Test B

Test Configuration:

Firmware version:
Hardware:
Toolchain:
SDK:

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

Can you put me a image how it looks like

Sure. Here you go


refactor(example): add README on example/electricity trade

Is your feature request related to a problem? Please describe.
The current example/electricity-trade does not have any README or documents for users.
Describe the solution you'd like
To provide the README

@takeutak Can this one now be closed since the linked PR has been merged?


ATEM program image as LIVE button.

PLEASE USE THE FOLLOWING PAGE IF YOU WANT SUPPORT FOR A NEW DEVICE OR SOFTWARE PROGRAM: https://github.com/bitfocus/companion-module-requests/issues/new
Describe the feature
Can we get jpeg images from the ATEM program on a button.  Ecamm live and other software apps allow images to show up on the streamdeck which can help.
Is this platform dependent (windows, mac, ..)?
Any platform
If documentation is required to implement, do you know where to find it?
https://youtu.be/Ts-o64Tdo1k?t=1061
Usecases

times you do not have a monitor
When you place just a stream deck in a location for quick actions without a monitor

I think the simple answer here is this is no
Firstly, in the video you linked that is done via the elgato software which will likely be using an api in Ecamm to stream the images, and can be done within the machine.
I can think of a couple of ways to do this with some atems:

The mini range allow the atem to take a snapshot to the media pool, which we could trigger and transfer off. This will be horribly inefficient, and in a best case scenario could do about 1 frame a second (limited by the network on the atem), and be about a second delayed. It is also likely to get confused, and depending on how the atem feature works, risks wiping other stills in the pool. or could have other side effects
Some older models can be connected over usb to capture video. This could work, but requires them to be connected via usb, and is something in my experience that doesnt work well/at all with recent firmwares and will likely take exclusive control of the 'camera' device

A better way for this would be to capture the program output via some pcie/usb capture card, and for a more generic flow of streaming video into a button. But I dont think companion has a great structure for this to be done currently. It could be looked at if there is demand


Stop using application-periodic-default-gke job

Related:

Part of: https://github.com/kubernetes/test-infra/issues/23778

The job should be migrated to not depend on proprietary/hosted clusters, and instead use a cluster that is provisioned by open source software, e.g.

kubernetes/kops
kubernetes-sigs/kind
kubernetes/kubernetes/cluster/kube-up.sh

The job is currently continuously failing, so if it's not actively being used, another option is to delete it entirely, ref: https://testgrid.k8s.io/sig-apps#application-periodic-default-gke

Based on https://github.com/kubernetes-sigs/application/pull/138 I'm going to assume the job is safe to remove

/assign


congrats!

congrats on this amazing work! just added your projects to our website at http://www.capstone-engine.org/showcase.html
keep it up, cheers!

Thank you!

I would also like to say thank you for this project. I've used it via your website and the output is quite nice.

Any plans to add raw binary decompilation ? I have a simple home-made dissembler with file format parsing and procedure search I'd love to add decompilation just like in IDA. Some standalone retdec tool would be great where user specifies input file and architecture and gets in return "C" code with corresponding asm addresses in the comments.

@don1001 RetDec supports raw binary decompilation. For example, to decompile raw machine code (x86, little endian) in file named FILE into C source code, run e.g.
./decompile.sh FILE --mode raw --arch x86 --endian little --raw-entry-point ADDR --raw-section-vma ADDR

For more details, run ./decompile.sh --help and read our raw-machine-decompilation guide.


Update cairo

Wait, isn't this on main already? 🤔 https://github.com/software-mansion/scarb/blob/2320962b8ec876f9be37f0a29b13f2b6d0c415f7/Cargo.toml#L38-L61


Hide app from dock and add context menu

This PR contains the changes discussed on #151.

Hide app from dock and applications switcher
Add Context Menu to Tray
Add Toggle and Quit items to Context Menu

Coverage remained the same at 88.889% when pulling b92fd319e1f33e6c0955b52441dab1b91c09e129 on akz92:develop into 5c37ec090de198e4b72397fc22ecb0204b7df9d9 on vutran:develop.

Coverage remained the same at 88.889% when pulling 105398882b8a0d82672e23cd07b297489fba2f12 on akz92:develop into 5c37ec090de198e4b72397fc22ecb0204b7df9d9 on vutran:develop.


The custom resolution does not work properly after update 1.4.0 on MGS2 and MGS3.

The options "Windowed" and "Borderless" doesn't work as intended, the game always launch on fullscreen.

After this new update, if you launch the game on fullscreen (via the launcher, setting the option on fullscreen) you can still get windowed and windowed borderless even without the mod.
Fullscreen -> (1st ALT+ENTER) -> Windowed -> (2nd ALT+ENTER) -> Windowed Borderless.
Pd:
After doing this, you will not be able to return to fullscreen.
You can also launch the game on windowed (via the launcher, setting the option on windowed) and just one ALT+ENTER will be needed to get the windowed borderless.

Should be fixed as of v2.0.


Incorrect alignment TextField & SelectField (align-self: flex-end;) in Flexbox

Hi,
I have found the following issue, when having textfield and select field in two-column flexbox layout. When both components are one line, the lines bellow the text in TextField and selection in SelectField are prefectly aligned. But my textbox may have multiple, so to have the field and box aligned, I created a flexbox, with the select aligned-self to flex-end.
Problem: when the textfield has multiple rows, the bottom lines of both components are misaligned by several pixels, which looks ugly :-)

link to the page, where its used

                        <TextField
                            floatingLabelText="Input"
                            hintText="Text to be hashed"
                            errorText={inputErrorText}
                            defaultValue={subject}
                            multiLine={true}
                            rows={1}
                            rowsMax={10}
                            fullWidth={true}
                            floatingLabelFixed={true}
                            ref={node => {
                                inputNode = node
                            }}
                        />

                        <EncodingSelect encodings={supportedEncodings} value={selectedEncoding} onChange={onInputEncodingChange}/>

.unidirectional-input {
  display: -ms-flex;
  display: -webkit-flex;
  display: flex;

  .unidirectional-input-encoding {
    width: 20%;
    margin-left: auto;
    align-self: flex-end;
    div {
      width: 100% !important;
    }
  }
  > div:first-child {
    width: 80%;
  }
}

Material-UI: 0.16.6
React: 15.0.1
Browser: Chrome Version 55.0.2883.87, Microsoft Edge 38.14393.0.0

Have you tried without the intermediate
s ?
ie TextField and EncodingSelect as direct children of div.unidirectional-input, specifying:
hint: Material-UI components provide a style property.

I have removed the intermediary div and you were absolutely correct. The problem is fixed.
Thanks!


Unable to select a specific ruby version if .ruby-version contains a different version

Describe the bug
The problem is that when I have a config file in the directory with some ruby version. I can't select the other ruby version in mise.
To Reproduce
Suppose you have a config file (.ruby-version in my case) in the directory.
Open that directory in the console.
Mise selects the ruby version according config file automatically.
Now try to select a different ruby version in mise. After the change, it changes back to the version from the config.
Expected behavior
Generally auto-switching to the config version is ok and might be helpful. But I expect that mise will not change the version of ruby, if I specified it manually. I believe that is the preferable way to how it should work.
mise doctor output
mise version:
  2024.2.5 macos-arm64 (59362f2 2024-02-06)

build:
  Target: aarch64-apple-darwin
  Features: DEFAULT, NATIVE_TLS, OPENSSL
  Built: Tue, 6 Feb 2024 14:26:35 +0000
  Rust Version: rustc 1.75.0 (82e1608df 2023-12-21)
  Profile: release

shell:
  /bin/zsh
  zsh 5.9 (x86_64-apple-darwin23.0)

mise dirs:
  data: /Users/dmitry.pogrebnoy/.local/share/mise
  config: /Users/dmitry.pogrebnoy/.config/mise
  cache: /Users/dmitry.pogrebnoy/Library/Caches/mise
  state: /Users/dmitry.pogrebnoy/.local/state/mise
  shims: /Users/dmitry.pogrebnoy/.local/share/mise/shims

mise environment variables:
  MISE_SHELL=zsh

settings:
  activate_aggressive = false
  all_compile = false
  always_keep_download = false
  always_keep_install = false
  asdf_compat = false
  cargo_binstall = true
  color = true
  disable_default_shorthands = false
  disable_tools = []
  experimental = false
  jobs = 4
  legacy_version_file = true
  legacy_version_file_disable_tools = []
  node_compile = false
  not_found_auto_install = true
  paranoid = false
  plugin_autoupdate_last_check_duration = "7d"
  python_compile = false
  python_default_packages_file = "/Users/dmitry.pogrebnoy/.default-python-packages"
  python_pyenv_repo = "https://github.com/pyenv/pyenv.git"
  python_venv_auto_create = false
  raw = false
  trusted_config_paths = []
  quiet = false
  verbose = false
  yes = false
  ci = false
  debug = false
  trace = false
  log_level = "info"

  [status]
  missing_tools = "if_other_versions_installed"
  show_env = false
  show_tools = false

activated: yes
shims_on_path: no
config files:
  ~/.ruby-version
  ~/.mise.toml

plugins:
  bun      (core)
  deno     (core)
  go       (core)
  java     (core)
  node     (core)
  python   (core)
  ruby     (core)

toolset:
<EMAIL_ADDRESS>
1 problem found:
new mise version 2024.2.6 available, currently on 2024.2.5

Additional context
his issue affects the issue about proper support of mise in RubyMine IDE - https://youtrack.jetbrains.com/issue/RUBY-32015/Support-the-mise-ex-rtx-ruby-tool-version-manager.

Now try to select a different ruby version in mise. After the change, it changes back to the version from the config.

I don't know what this means

Yep, about mise use and about mise shell. Let me explain it in more detail. The same steps work also for .mise.toml files, let suppose that we have .mise.toml for simplicity.
Complete steps for the reproduction:

Install<EMAIL_ADDRESS>in mise.
Create empty directory.
Create .mise.toml file with content 3.2.0 in the directory from the previous step.
Open that directory in the console.
Run ruby -v. Output is ruby 3.2.0 (2022-12-25 revision a528908271) [arm64-darwin23] - system ruby.
Run mise list ruby. Output is:

Plugin  Version  Config Source                     Requested
ruby    3.2.0    ~/Desktop/mise_example/.mise.toml 3.2.0
ruby    3.3.0

So the version is automatically selected by 3.2.0. because it is stated in the config file. It is expected.
Now suppose you would like to use some other version of ruby in the console. Then your next step is the following:
7. Run /Users/dmitry.pogrebnoy/.local/bin/mise shell<EMAIL_ADDRESS>On that step I expect that now I have ruby 3.3.0 enabled. Let's check:
8. Run ruby -v. Output is ruby 3.2.0 (2022-12-25 revision a528908271) [arm64-darwin23] - still system ruby.
9. But! If I call mise shell<EMAIL_ADDRESS>then the version will change to 3.3.0.
10. Let's check. Run ruby -v. Output is ruby 3.3.0 (2023-12-25 revision 5124f9ac75) [arm64-darwin23].
Could you please explain why it works as it is? I expect that it should work the same in both cases.

@jdx Also, some kind of a related question is why mise use ruby@<something> changes not only the currently selected ruby version, but also a value in .mise.toml config file? If I want to use some other ruby version just for several commands, I don't want to change the value in config.

Run ruby -v. Output is ruby 3.2.0 (2022-12-25 revision a528908271) [arm64-darwin23] - still system ruby

Because mise shell is a shell function that sets environment variables. A CLI cannot do that.

If I want to use some other ruby version just for several commands, I don't want to change the value in config.

that's what mise shell is for. mise needs to change something (an env var or config file) so it knows which version to use.

Thank you for the clarification!


t2ramsey_tutorial: Fixed printing of text

Summary
Removed spaces in the math print that were not displaying correctly in the docs.
Details and comments

@coruscating , I did a quick fix to the tutorial following your comment. Please review and check if it appears correctly now.


Update to cordova-custom-config@5

Due to build incompatibilities with cordova-android@7, we should update this plugin to support the new version and fix issues.
See https://github.com/dpa99c/cordova-custom-config#changes-in-cordova-custom-config5 for breaking changes
EDIT: Seems that the problem might also be related to cordova-android@7, still investigating

Seems that the issue was due to an unclean node_modules folder, closing.

Reopening, but as a feature: the syntax has changed for cordova-custom config @5, so config.xml should be updated accordingly.

After investigation, our cordova config.xml does not need any changes, so I'm killing the issue.


Saving metadata with libcamera-vid

Is it possible to save the metadata (exposure time, gain etc. and ideally the results of the algorithms like lux level, color temperature etc.) for each frame recorded by libcamera-vid, similar to --save-pts? I know that there is already an option --metadata for libcamera-still (#307).

Unfortunately there is no such option at this time.  When we get a chance, we will look to add it.

Not planned yet, but we will put this feature on our backlog.

Actually William has just a little time before he leaves so we may have a quick look into this!
@will-v-pi FYI

#358 should add this option, allowing you to output the metadata to either a json file, or in plain text form like in libcamera-still.

Wow that's great (and quick), thank you so much!

This has now been merged.


Run v2 - NMS: Inconsistencies on Test Results > Results row view

After running tests and reviewing the test results row:

The total counts tested and accessible do not match the number of URLs listed in this view
There should be 2 URLs listed, only 1 appears listed
This is happening for any test with more than 1 URL

See attached screenshots

While this issue is fixed if there are two URLs, there is still a problem if testing more URLs. See screenshot. This test has 6 urls, only 3 appear in the results. See screenshot

Also fixed now


AD doesn't work at boot

Active Directory doesn't work at boot. Restarting the service after login fixes it.
Modding vitiofs.exe to always debug log, we see:
*** VIRTFS::Start: The service V was not run as the LocalSytem user
*** UpdateLocalUidGid: Local UID=18, local GID=18

Modding it further to print the SID strings:
*** VIRTFS::Start: The service VirtIO-FS was not run as the LocalSytem user, 1008
*** UpdateLocalUidGid: Local User  SID:S-1-5-18
*** UpdateLocalUidGid: Local Group SID:S-1-5-18
*** UpdateLocalUidGid: Local UID=18, local GID=18

1008 is the error code from WTSQueryUserToken at boot.

Similar issue reported here
A solution is to run the service as an "Automatic (Delayed Start)" service.
This solution sucks. delayed start on my box is /super/ delayed.

What's the session ID in this case? Should be 0.
But, it is shared between different pseudo users "SYSTEM", NETWORK SERVICE," and "LOCAL SERVICE" - that should have different security tokens.
Another direction could be try to understand after check which service start WTSQueryUserToken works and put this service as dependency for virtio-fs service.

I was able to fix it last night; just ran out of steam to push it.


wine{Unstable,Staging}: 3.18 -> 3.20

Motivation for this change
Simple update
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Fits CONTRIBUTING.md.

thanks!


Add git commit plugin

Add support for the git commit plugin as described here.

Done and documented in the wiki.


Added Philippine(cebuano) translation

Description

#236
Type of change

[x] Bug fix (added a non-breaking change which fixes an issue)
[ ] New feature (added a non-breaking change which adds functionality)
[ ] Updated documentation (updated the readme, templates, or other repo files)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

How Has This Been Tested?

[x] Tested locally with a valid username
[x] Tested locally with an invalid username
[x] Ran tests with composer test
[ ] Added or updated test cases to test new features

Checklist:

[x] I have checked to make sure no other pull requests are open for this issue
[x] The code is properly formatted and is consistent with the existing code style
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings

I literally forgot to add excluding to ceb and fil sorry for the inconvenience


Issue with k8s.io/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume/

This is a Bug Report

Problem:
Command on documentation is incorrect:
kubectl apply -k ./
Error: unknown shorthand flag: 'k' in -k
Proposed Solution:
kubectl apply -f ./
Page to Update:
k8s.io/docs/tutorials/stateful-application/mysql-wordpress-persistent-volume/

@AdamSharif-MSFT, see issue #13664. Have you tried v1.14?

/triage needs-information

/priority awaiting-more-evidence

Apologies for the delay, I have a feeling I was using an old version of the client perhaps, but now I can correctly use the kubectl apply -k command, so this issue can be closed. Thanks for your help!


Disable the built-in benchmarks

This way is possible to do cargo bench -- <criterion-only-options>

Thanks for the PR and sorry for the slow response -- I messed up my notification settings somehow.


[QUESTION] pyspark 任务实际成功但web页面显示失败

如上图日志里打印出了程序状态是success，但是web页面上显示失败（下图)

which version?

English is needed

Whether your problem has been resolved, if not, please check the worker log for errors


Update packages for SDK 2.0.2

@JoelPasvolsky: @arcondello said he wants to make some changes in dwave-system before we release a new version.

Thank you, @randomir and @arcondello, the updated dwave-system will further reduce doctest errors (though there will remain a handful I have not gotten to yet)

Just noticed now that we missed updating dwavebinarycsp to version 0.1.2. Noting here in case we see we're re-releasing for some reason.


Integration on flutter_gherkin with PATROL.

Use case
Currently, most Flutter Automation is taking place with Gherkin as it is easy to understand and can easily be used by QAs, so is there any plan to have an integration test with flutter_gherkin? as it would be easier for the projects/apps to migrate to PATROL.
Proposal
Feature: Open In-app Browser and Do Login
@tag
Scenario: Login
  Given I have login Button
  When I tap on Login Button        # this will take script inside in-app browser
  Then I enter "username" at index 0
  Then I enter "password" at index 1
  I tap on login now in in-app browser

related https://github.com/leancodepl/patrol/discussions/1180


Open in new split

Is it possible to open a new search query in a new split, like cscope in vim using e.g. scs?

If you are using Telescope, then use C-x for horizontal split and C-v for vertical split.

If you are using Telescope, then use C-x for horizontal split and C-x for vertical split.
For QuickFix, C-w Enter for horizontal split. Vertical split is not that straightforward, you can check this SO answers.


Steinerpy doesn't take non-tuples as input for graph representation

Check issue #9
The following code doesn't execute.
# from steinerpy import *
from steinerpy.library.graphs.graph import *
from steinerpy.context import Context

class PQR(IGraph):
    graph = {1: {8}, 8:{1, 0}, 0:{7, 3, 8}, 3:{0, 4, 2}, 4:{3}, 2:{3, 5, 9, 6}, 5:{2}, 9:{2}, 6:{2}, 7:{0} }
    def __init__(self):
        pass

    def neighbors(self, v):
        adj = []
        # print(v)
        for x in self.graph[v]:
            adj.append(x)
        return adj
        # return

    def cost(self, u, v):
        if u in self.graph :
            if v in self.graph[u]:
                return 1
        return 0

    def node_count(self):
        return len(self.graph.keys())

    def edge_count(self):
        return 9
    pass

terminals = [1, 7, 3]
graph = PQR()

context = Context(graph, terminals)

context.run('S*-BS')
results = context.return_solutions()
print(results)

This is normal behavior atm (needs to be better documented tho).
Consider wrapping nodes in a tuple with a dummy index:
graph = {
      (1,0): {(8,0)},
      (8,0):{(1,0), (0,0)},
      (0,0):{(7,0), (3,0), (8,0)},
      (3,0):{(0,0), (4,0), (2,0)},
      (4,0):{(3,0)}, (2,0):{(3,0),(5,0), (9,0), (6,0)},
      (5,0):{(2,0)},
      (9,0):{(2,0)},
      (6,0):{(2,0)},
      (7,0):{(0,0)}
     }


BUG: Email settings do not write SMTPUser field in view email_settings.php

The SMTPUser field is not writing correctly to the settings table.
On line 155 of the email_settings.php file, the name attribute needs to be replaced with "SMTPTimeout". As a result, the SMTPTimeout Key is being duplicated in the database.
<input type="number" name="SMTPTimeout" class="form-control" value="<?= old('SMTPTimeout', setting('Email', 'SMTPTimeout')) ?>">
In lines 94, 141 and 164 of the same file you need to correct the SELECT TAGS with double quotes for better formatting
94 - <select name="SMTPPort""
141 - <select name="SMTPCrypto""
164 - <select name="SMTPKeepAlive""

Thanks for catching this.
I'm heading out on vacation for a week or so. Are you able to submit a PR with that change?


Feature Request: Reuse random port number when using run command

The chalet CLI has a run command, which sets up and runs a temporary server, outputs the server's logs to STDOUT, and removes the server config (to clean up) when the server process has stopped.
However, if I need to stop the server and restart it for some reason, then it will run under a different port number the second time (typically the next number in some sequence). If I switch to the browser tab where I had loaded the app in its first run, it will have the first port number in its URL, but that port number is no longer being used — therefore reloading that tab will fail with a server-not-found error.
It would be great if the chalet daemon would remember servers previously run and their assigned port numbers, so that if another server is run with the same name, the previously used port number could be reused. This could simply be an in-memory hash that would persist only while the chalet daemon is running. The run command would still clear the server's temporary config file when the run command exits, but just keep the port number in an entry for that server name in the daemon's memory.

And no, using the -p/--port is not a suitable workaround for this request. I specifically want chalet to assign the port numbers and ensure that each server will have a unique port number. However, I also want chalet to reuse a port number when a server is killed and restarted.


Unable to start correctly

Hi and Thanks for the efforts!
I have a problem starting the docker.
I tried lunching it but got the following error in logs:
Starting Virtual DSM for Docker v3.34...
/run/network.sh: line 144: /usr/sbin/dnsmasq  --dhcp-range=<IP_ADDRESS>,<IP_ADDRESS> --dhcp-host=02:11:32:AA:BB:CC,,<IP_ADDRESS>,VirtualDSM,infinite --dhcp-option=option:netmask,<IP_ADDRESS> --dhcp-option=option:dns-server,<IP_ADDRESS> --dhcp-option=option:router,<IP_ADDRESS> --dhcp-option=option:domain-search,lan --dhcp-option=option:domain-name,lan: File name too long

And the docker is restarting constantly.
Tried without macvlan and with. The same result.

Yes!
Thank you!


e2e: fix incorrect identifier in OnRamps test

Description
E2E test started failing consistently in the OnRamps test.
Tested

E2E passes again

How others should test
N/A
Backwards compatibility
N/A

Hey @MuckT since NA is mentioned in how others should test , we are skipping this PR
CC: @jeanregisser
Thanks..!


[test] test the new audio sample 700171

LGTM, just don't break the "End of Dialogue" into one dialogue, thanks. @HAOOO99


Steps to reproduce

npm i
farm start
访问 http://localhost:9000/ 无法显示home组件

Reproduce link
https://github.com/289420843/farm-test.git
What is actually happening?
受到配置影响
minify: {
exclude: ["\.html"],
},

控制台显示错乱
[ Farm ] ✓ Lazy compilation done(....\ est
arm-test\src
iews\home.vue) in 3ms.
界面未显示 home组件

System Info
System:
    OS: Windows 10 10.0.18363
    CPU: (6) x64 Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz
    Memory: 4.34 GB / 31.93 GB
  Binaries:
    Node: 16.18.1 - d:\Program Files\nodejs\node.EXE
    Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 8.19.2 - d:\Program Files\nodejs\npm.CMD
    pnpm: 8.15.3 - d:\Program Files\nodejs\pnpm.CMD
  Browsers:
    Edge: Spartan (44.18362.449.0)
    Internet Explorer: 11.0.18362.1
  npmPackages:
    @farmfe/core: 1.2.0 => 1.2.0

i have the same error when i import component dynamically.
for (let p of pages) {
  let path = `../pages/${p.path}`;
  let Com = (await import(path)).default;
 ...
}

and i got error

![image](https://github.com/farm-fe/farm/assets/1448114/ed1056c1-1c4d-4a90-bc8a-3db24eb64d3b)

i have the same error when i import component dynamically.
for (let p of pages) {
  let path = `../pages/${p.path}`;
  let Com = (await import(path)).default;
 ...
}

and i got error
![Snipaste_2024-06-26_10-45-51](https://github.com/farm-fe/farm/assets/1448114/251c52e1-5cc8-4a44-be93-c151dc7a8e8f)

This is not a same problem, you should use import.meta.glob(xx) if you want to batch import pages in farm. see https://www.farmfe.org/docs/features/script#vite-style-importmetaglob

for (let p of pages) {
  let path = `../pages/${p.path}`;
  let Com = (await import.meta.glob(/* @vite-ignore */path)).default;
  childRoutes.push({
    path: p.pageId, element: <Com />
  })
}

Actually, what I need is to traverse the pages folder to set up routes. I don't think this solution fully addresses that.


Add material-ui-codemod to npm please.

Problem Description

Material-UI:
React:
Browser:

@alexhawkins - please use gitter for this sort of request.


Can't find dropdown list option TogglePlacementHints under Configuring the Placement Hints button

Hello! So I was going through this tutorial, and for step 2 under the "Configuring the Placement Hints button", don't get the dropdown list option "TogglePlacementHints".
If it helps to know, I am using MRTK 2.1.0.

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

ID: 3d715666-5a8f-a497-db0e-152491d52813
Version Independent ID: be21949e-301f-78cb-ccc2-0fe6eb87c009
Content: Getting started tutorials - 7. Creating a Lunar Module sample application - Mixed Reality
Content Source: mixed-reality-docs/mrlearning-base-ch6.md
Product: mixed-reality
Technology: mr-dev
GitHub Login: @jessemcculloch
Microsoft Alias: jemccull

Hi @IzzyGomezThree, check if the TogglePlacementHints script component is on the LunarModule gameobject. This should have been done during step 3 in the previous section, Configuring the Lunar Module.

Thank you so much @martinwilter , I accidentally put that component on the Rocket Launcher. Cheers!


The stageBlockBytes should calculate the checksum length

writeback files may contain checksum values, so the stageBlockBytes deletions should use parseObjOrigSize(key) rather than fi.size

Indeed, many places in the code has mixed file size and object size.


Needs update to the code samples

The code samples are outdated and require updates.
Eg:

Pod definition is without limit for resources.
ApiVersion refers to beta
etc.,

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

ID: 04922c04-a2da-186c-5946-1cc4d9a7447b
Version Independent ID: 6e490885-cdd7-079a-0b3a-4688616b0954
Content: Deploy a SQL Server container with Azure Kubernetes Services (AKS) - SQL Server
Content Source: docs/linux/tutorial-sql-server-containers-kubernetes.md
Product: sql
Technology: linux
GitHub Login: @MikeRayMSFT
Microsoft Alias: mikeray

@jkshan -- Shanmugam, thank you for your feedback.  Please consider these resources:

DBA Stack Exchange
Stack Overflow

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

@vin-yu  would you mind looking into this issue?

@jkshan - I've taken this issue and logged it internally, reference 1779828
Thank you.


A.I. Update Summer 2024 : New Apps, Updates, and Deprecations

Exciting New Apps

Open WebUI is an extensible, feature-rich, and user-friendly self-hosted WebUI designed to operate entirely offline. It supports various LLM runners, including Ollama and OpenAI-compatible APIs. NetworkChuck Guide : host ALL your AI locally

Ollama allows you to run a wide variety of AI models on Akash GPUs. It provides a simple API (port 11434) for easy integration with your applications. Explore compatible front-ends and follow the quickstart guide to get started.

PrivateGPT is a production-ready AI project that allows you to ask questions about your documents using the power of Large Language Models (LLMs), even in scenarios without an Internet connection. 100% private, no data leaves your execution environment at any point. NetworkChuck Guide : Run your own AI (but private)

InvokeAI is a leading creative engine for Stable Diffusion models, empowering professionals, artists, and enthusiasts to generate and create visual media using the latest AI-driven technologies. The solution offers an industry leading WebUI, supports terminal use through a CLI, and serves as the foundation for multiple commercial products. Craft Computing Guide :  Self-Hosted AI Image Generation - InvokeAI

faster-whisper: An optimized version of the Whisper speech recognition model, designed for improved performance and faster transcription.

whisper-gui: A graphical user interface for the Whisper speech recognition system, making it more accessible to non-technical users.

GPUStack is an open-source GPU cluster manager for running large language models(LLMs). Scales with Your GPU Inventory: Easily add more GPUs or nodes to scale up your operations. Supports a Wide Variety of Hardware: Run with different brands of GPUs in Apple MacBooks, Windows PCs, and Linux servers.

gpustack-worker: Add extra workers to form a GPUStack cluster

whisper-asr: An automatic speech recognition (ASR) system based on the Whisper model, with additional features and optimizations. It is trained on a large dataset of diverse audio and is also a multi-task model that can perform multilingual speech recognition as well as speech translation and language identification. Exposes a Swapper API endpoints.

Botpress is a platform used to build LLM-powered AI agents and chatbots.  Build, deploy, and monitor AI-powered chatbots and agents. It allows you to reliably automate complex conversations, tasks, and workflows across a variety of communication channels. Tim Harris Video AI : How to Use Botpress Chatbot Tutorial for Beginners

Langflow is a new, visual framework for building multi-agent and RAG applications. It is open-source, Python-powered, fully customizable, LLM and vector store agnostic. Its intuitive interface allows for easy manipulation of AI building blocks, enabling developers to quickly prototype and turn their ideas into powerful, real-world solutions. Tech With Tim : Build a RAG Based LLM App in 20 Minutes! | Full Langflow Tutorial

Updated Apps

alpaca-cpp
babyagi
babyagi-ui
chatchat
daila
serge
tgpt

Deprecated Apps

gpt4all
chatgpt self-hosted chat

Awesome @88plug !
 It would be more effective to break it down into smaller, more manageable PRs, focusing on one change at a time.
However, I'll let @Dimokus88 continue if he is comfortable working on this one as is.

Thanks for the PR @88plug!
In general, these changes have been tested and work.
The only thing that might be worth considering is the possibility of changing the image tags latest, gpu and so on to number versionand adding a link where the user could chack the image version if necessary?
As you know, providers cache images and using latest and similar tags can lead to the impossibility of deploying the current version.
Where are such tags used:
botpress/deploy.yaml
faster-whisper-cpu/deploy.yaml
faster-whisper-gpu/deploy.yaml
gpustack-worker/deploy.yaml
gpustack/deploy.yaml
invoke-ai-cpu/deploy.yaml
invoke-ai-gpu/deploy.yaml
langflow/deploy.yaml
privategpt-cpu/deploy.yaml
serge-cpu/deploy.yaml
serge-gpu/deploy.yaml
whisper-asr-cpu/deploy.yaml
whisper-asr-gpu/deploy.yaml
whisper-gui-cpu/deploy.yaml
whisper-gui-gpu/deploy.yaml


Build failed due to missing licence spec for lib/commons-text-1.6.jar

Describe the bug
Cannot build current Ghidra master as of 15th May 2020 due to an error in ip.gradle:
No License specified for external library: lib/commons-text-1.6.jar in module /var/lib/jenkins/workspace/Ghidra/ghidra/Ghidra/Framework/Generic

To Reproduce
Build according to build instructions.
Expected behavior
Build completes, output files are produced.
Environment (please complete the following information):

OS: Linux - Ubuntu 18.04
Java Version: openjdk 11.0.7 2020-04-14
Ghidra Version: Git master branch HEAD, e08efb1

Will be fixed by @astrelsky 's #1878 PR.

Fixed by 1675f226b381e407e24a591d210c6306c1c3fffe.  This issue can be closed.


Picker will not render in ios

react-native, react and native-base version
"native-base": "^2.1.4",
"react": "16.0.0-alpha.6",
"react-native": "0.44.3",

Expected behaviour
Picker gets rendered
Actual behaviour
App throws error.
Steps to reproduce (code snippet or screenshot)
<Picker>
  <Picker.Item label='Test' value='test' />
</Picker>

Screenshot of emulator/device

Is the bug present in both ios and android or in any one of them?
Judging by the source, this probably works fine on Android, though I did not test.
Any other additional info which would help us debug the issue quicker.

The example works pretty fine for me. Try rendering multiple values of Item instead of just one.

Whoa, okay, yeah, that worked. I know no one would typically have just one item in a picker, but it seems like it should be able to work with that. Maybe using React.children instead of accessing this.props.children directly would be better?
Anyways, thanks for the help, i'll close.


Using Console and System.Windows.Media.Media3D in RoslynPad

Hello,
I am trying to use RoslynPad for the very first time and I cant get rid of compilation error
CS0433: The type 'Console' exists in both 'System.Console, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' and 'mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089'
To Reproduce
Use joined csx
Expected behavior
Version

OS: Win10
Media3d.zip

Build (or commit ID if built from source):

RoslynPad 15.1

Use #r "framework:Microsoft.WindowsDesktop.App" (or desktopapp snippet) instead of directly referencing PresentationCore


updating module to support auto-import

Issue #, if available:
Description of changes:
Update the module to accept auto-import configs via CDK for SCRATCH_2 storage types
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

AWS CodeBuild CI Report

CodeBuild project: IDFModuleTestsInfrastructur-59JoFoVH64CI
Commit ID: 427e84f81e84f186451b3339540bc2a382f66b28
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: IDFModuleTestsInfrastructur-59JoFoVH64CI
Commit ID: 459aa9e473c5f70251fad6a025ac3a4588274f18
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: IDFModuleTestsInfrastructur-59JoFoVH64CI
Commit ID: 7462f81641ae4c0903e34dd8087f8d6b49149d9c
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

AWS CodeBuild CI Report

CodeBuild project: IDFModuleTestsInfrastructur-59JoFoVH64CI
Commit ID: a82caf9588f307219cd7efca497e8b652feb2968
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


In cardsview if the cards are semi transparent then after swiping to left or right the next card will be visible under the current card

try adding a semi transparent card and swipe to any directon partialy and then stay on the original card, the new card will be created under the current card and because current card is semi transparent the next card will be visible under it. I think this is a bug.

@alicint hey, thanks for feedback
How should it work in your opinion? Let's imagine, that you have 1000 cards. It won't be great idea to renderer them on start, will it?

yeah definitely I don't mean that it should load all at once, maybe hiding the next card when user isn't swiping yet?

@alicint in this case you are loosing pretty animation.
Well, if you want to customize animation, you may easily achieve it
Inherit these classes:

https://github.com/AndreiMisiukevich/CardView/blob/master/PanCardView/Processors/BaseCardFrontViewProcessor.cs
https://github.com/AndreiMisiukevich/CardView/blob/master/PanCardView/Processors/BaseCardBackViewProcessor.cs

And implement your approach (it must be rather easy, set IsVisible = true, only on apply)


Service principals - how?

Nice to see some official documentation on how PAT tokens are managed programmatically.
It fails to mention one important use case though: How to do this with service principals. When attempting to use the Azure CLI to log in as a service principal then follow this guide, I get
{"$id":"1","innerException":null,"message":"Service principals are not allowed to perform this action.","typeName":"Microsoft.TeamFoundation.Framework.Server.InvalidAccessException, Microsoft.TeamFoundation.Framework.Server","typeKey":"InvalidAccessException","errorCode":0,"eventId":3000}%

Service principals is an important use case to avoid part of the automation pipeline depend on a single person which may be sick or leave the company, especially for these kinds of tokens that gets renewed. It needs to be fully automated, so we are looking for an officially supported way to do this.

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

ID: 8c98ff42-ba90-99c8-1adf-26ff376bc960
Version Independent ID: 8c98ff42-ba90-99c8-1adf-26ff376bc960
Content: Get Azure AD tokens for users by using the Azure CLI - Azure Databricks
Content Source: databricks/dev-tools/api/latest/aad/user-aad-token.md
Service: azure-databricks
GitHub Login: @mssaperla
Microsoft Alias: saperla

@rickardp
Thanks for your feedback! We will investigate and update as appropriate.

@rickardp
I'm going to assign this to the document author so they can take a look at it accordingly
@mssaperla
Could you Please review this and update as appropriate.

Thanks for providing feedback that helps improve our documentation. We've created an internal work item (DOC-#9196) to address your feedback. The timeline for resolution varies based on resourcing.
#please-close

@rickardp This content is available here: https://learn.microsoft.com/en-us/azure/databricks/dev-tools/api/latest/aad/service-prin-aad-token#--get-an-azure-ad-access-token-with-the-azure-cli


[WIP] Basic implementation of JNumber conversions

This is a very simple implementation of JNumber conversions (#37).
@Ichoran This version throws exceptions, but only for toBigDecimal and toDouble (because it also uses BigDecimal underneath). BigDecimal (unlike .toDouble) will throw an exception if the value is too large. Apart from reimplementing the BigDecimal parser to return an Option[BigDecimal] rather than throwing an exception, I am unaware of another solution.
BigDecimal is used in toDouble to because it uses BigDecimal to see if we have lost precision, i.e.
  private[ast] def toDouble(value: String): Option[Double] = {
    try {
      val asDouble = value.toDouble
      if (BigDecimal(value, MathContext.UNLIMITED) == BigDecimal(asDouble, MathContext.UNLIMITED))
        Some(asDouble)
      else
        None
    } catch {
      case _: java.lang.NumberFormatException => None
    }
  }

I am not sure if there is a better way to detect if toDouble has lost precision due to conversion, but for now it works
TODO

[ ] Write tests (some basic tests of the .toInt and toLong demonstrates that it appears to work, but some more comprehensive tests/benchmarks are needed)
[ ] Write benchmarks

Current issues
There is a lot of code duplication in .toInt and .toLong. Although I can generalize this, there are a couple of problems

I don't want to involve macros, especially since this project is also supporting Scala 2.10
Scala really doesn't have a generic number type (unlike Spire for example https://github.com/non/spire). And if we are going to use something like Spire for a generic number type, we may as well change the constructor of JNumber to be a Real and we can call it a day. This means we can't really create a parameterized function over "Number"

We also don't support .toFloat, unless anyone is aware of a sane way to do this I don't think we will support it

Codecov Report

Merging #42 into master will decrease coverage by 10.83%.
The diff coverage is 1.86%.

@@             Coverage Diff             @@
##           master      #42       +/-   ##
===========================================
- Coverage   44.68%   33.85%   -10.84%
===========================================
  Files           5        5
  Lines         687      892      +205
  Branches      133      223       +90
===========================================
- Hits          307      302        -5
- Misses        380      590      +210

Impacted Files
Coverage Δ

shared/src/main/scala/scalajson/ast/package.scala
31.25% <0%> (-26.53%)
:arrow_down:

js/src/main/scala/scalajson/ast/JValue.scala
0% <0%> (ø)
:arrow_up:

...s/src/main/scala/scalajson/ast/unsafe/JValue.scala
0% <0%> (ø)
:arrow_up:

jvm/src/main/scala/scalajson/ast/JValue.scala
66.37% <28.57%> (-7.03%)
:arrow_down:

...m/src/main/scala/scalajson/ast/unsafe/JValue.scala
58.43% <33.33%> (-1.08%)
:arrow_down:

Continue to review full report at Codecov.

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

@Ichoran @eed3si9n  I have just revised the JNumber conversions as instructed. In particular, does the conversion to BigDecimal make sense?

BigDecimal looks fine to me, but you didn't do anything complicated there.  It's the integer ones that have more potential for error.

BigDecimal looks fine to me, but you didn't do anything complicated there. It's the integer ones that have more potential for error.

Yeah I have a test case for these, will add them in over the next few days

@eed3si9n The toFloat functions are there for completeness. There are issues when working with Float (which are well documented) but at least these functions behave correctly as expected


In 0.11 // comments doesn't work inside multi-line comments

Previously, single line comments can disable multi-line comments #24, but this has now been fixed https://github.com/typst/typst/issues/1113

😅 Ok let's revert that.


[bug] Memory is leaked when raising an exception from a custom XPath handler

Please describe the bug
If I'm using a custom XPath function and I raise an exception within my handler, memory is leaked.
Help us reproduce what you're seeing
Run this script and watch the process's memory utilization grow:
#! /usr/bin/env ruby

require 'nokogiri'

loop do
  doc = Nokogiri::XML.parse("<foo></foo>")
  begin
    doc.xpath('//foo[exceptional()]', Class.new {
                def exceptional()
                  raise "ONOES"
                end
              }.new)
    exit 1 # should never be reached
  rescue => e
    puts e
  end
end

Expected behavior
Memory shouldn't be leaking.
Environment
# Nokogiri (1.10.10)
    ---
    warnings: []
    nokogiri: 1.10.10
    ruby:
      version: 2.7.0
      platform: x86_64-linux
      description: ruby 2.7.0p0 (2019-12-25 revision 647ee6f091) [x86_64-linux]
      engine: ruby
    libxml:
      binding: extension
      source: packaged
      libxml2_path: "/home/flavorjones/.rvm/gems/ruby-2.7.0/gems/nokogiri-1.10.10/ports/x86_64-pc-linux-gnu/libxml2/2.9.10"
      libxslt_path: "/home/flavorjones/.rvm/gems/ruby-2.7.0/gems/nokogiri-1.10.10/ports/x86_64-pc-linux-gnu/libxslt/1.1.34"
      libxml2_patches:
      - 0001-Revert-Do-not-URI-escape-in-server-side-includes.patch
      - 0002-Remove-script-macro-support.patch
      - 0003-Update-entities-to-remove-handling-of-ssi.patch
      - 0004-libxml2.la-is-in-top_builddir.patch
      - 0005-Fix-infinite-loop-in-xmlStringLenDecodeEntities.patch
      libxslt_patches: []
      compiled: 2.9.10
      loaded: 2.9.10

Additional context
I discovered this while working on #1610. It's not clear to me yet (I haven't taken the time to look) whether libxml2 is leaking this memory or if it's something in Ruby-space; but I suspect it's libxml2 not being able to clean up the XPath context because we've longjmped over it.
In which case, we may need to do something more invasive to wrap the calls back into Ruby space in a rescue block.
I'd also be curious to see if the following functionality is also susceptible to the same class of issue (raising an exception from a Ruby callback):

SAX parsing callbacks
XSLT registered transformation functions

I'd also be curious to see if the following functionality is also susceptible to the same class of issue (raising an exception from a Ruby callback):

SAX parsing callbacks

Yep, as part of my work on #3265, I discovered that raising from a callback like SAX::Document#characters will leak (because the C code needs to free that string!).


Proxy scanner: Check config map for changes to trigger rolling upgrade

Current behaviour: when updating the config map for the proxy scanner (for example adding new container registry) the proxy scanner deployment will not be upgraded. To apply the new changes the proxy-scanner pod has to be deleted manually to trigger a deployment of a new pod using the new config map.
New behaviour: The config map checksum is checked and if the config map is updated a rolling upgrade is triggered. Therefore the changes are automatically applied and no manual intervention is required.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Try jupyter with ruby

Hi!
We hope that you will add Ruby's binder link to try Jupyter.
https://github.com/RubyData/docker-stacks

Really nice to see it going forward!

Thanks for the PR @kojix2. This is off to a good start. The "Try" page is intended to demonstrate an example notebook using the language. I recommend adding a simple Ruby example to the repo's notebook that uses commands in addition to puts

@kojix2 Please use this image instead of in RubyData/docker-stacks:
https://mybinder.org/v2/gh/RubyData/binder/master?filepath=ruby-data.ipynb
This contains examples of simple visualization (borrowed from Julia's notebook) and machine learning.


chore(cost-insights): update readme with updated sidebar path

Signed-off-by: djamaile<EMAIL_ADDRESS>Hey, I just made a Pull Request!

// packages/app/src/sidebar.tsx (old) -> // packages/app/src/components/Root/Root.tsx (new)
Was implementing cost insights last week and noticed this outdated path. A quick update to reflect the current reality.
:heavy_check_mark: Checklist

[x] A changeset describing the change and affected packages. (more info)
[ ] Added or updated documentation
[ ] Tests for new functionality and regression tests for bug fixes
[ ] Screenshots attached (for UI changes)
[x] All your commits have a Signed-off-by line in the message. (more info)

@Rugvip my bad 🤦 , added it!