Add script to ensure unique DisplayVersions

Checklist for Pull Requests

[x] Have you signed the Contributor License Agreement?
[ ] Is there a linked Issue?

One of the reasons the publishing pipeline failed recently was due to some packages having overlapping DisplayVersion. While this overlap should have been caught by the pipelines and prevented, somehow they slipped through.
This script will iterate through the entirety of the manifests folder on a local machine and fetch the manifests that have DisplayVersion specified. Using this, for each package that specifies a DisplayVersion, it will create a list of all the DisplayVersions aggregated from each package version. This is filtered for uniqueness and compared to itself. If they are equal, there is no overlap. If they are not equal, there is an overlap.
The script will return either a list of identifiers and the overlapping DisplayVersions, along with the PackageVersions that the errors were found in; or null if there are no overlaps
The script will have an exit code of 1 if there were overlaps found, or 0 if no overlaps

Microsoft Reviewers: Open in CodeFlow

@wingetbot run

[Policy] Needs Manual Merge
@denelon / @stephengillie

Just out of curiosity: Is there a way to make this work without having a local copy of the repo?

WIth a local copy, the script is just incurring disk calls, and this becomes basically a database query for an oddly-collated database.
WIthout the local copy, web API calls and responses are needed.

I'm sure there is, but given that the repo is only expected to grow, the only other way would be to download the indexV1, extract it, and run complex SQL queries against it. This wouldn’t be possible with indexV2 either.


about principle and algorithm

hi! this is so coooooool!and i have a question.What is the principle and algorithm？

It consists of three main steps: calibration, detection, and measurement
Ref:

hi! this is so coooooool!and i have a question.What is the principle and algorithm？

Ref

thanks for replying me.and i wanna ask how did you calculate real distance between people？how did you transform the camera photo into plane graph...hhh

As the input video may be taken from an arbitrary perspective view, the first step of the pipeline is computing the transform (more specifically, the homography) that morphs the perspective view into a bird’s-eye (top-down) view. We term this process calibration. As the input frames are monocular (taken from a single camera), the simplest calibration method involves selecting four points in the perspective view and mapping them to the corners of a rectangle in the bird’s-eye view. This assumes that every person is standing on the same flat ground plane. From this mapping, we can derive a transformation that can be applied to the entire perspective image. This method, while well-known, can be tricky to apply correctly. As such, we have built a lightweight tool that enables even non-technical users to calibrate the system in real-time.
During the calibration step, we also estimate the scale factor of the bird’s eye view, e.g. how many pixels correspond to 6 feet in real life.
Ref: click here for more detail.

Hi, I am wondering how did you compute the homograph, which part of the code did this?


[WIP] Cms db merge

Will close #22

What kind of change does this PR introduce? (check at least one)

[ ] Bugfix
[ ] Feature
[ ] Code style update
[ ] Refactor
[ ] Build-related changes
[ ] Other, please describe:

Does this PR introduce a breaking change? (check one)

[ ] Yes
[ ] No

If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements:

[ ] It's submitted to the master branch
[ ] When resolving a specific issue, it's referenced in the PR's title (e.g. fix #xxx, where "xxx" is the issue number)

If adding a new feature, the PR's description includes:

[ ] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)

Other information:

Sneaked in a new route, addressing #51, while at it.


(docs)aws: replace "ssh-agent add" with "ssh-add"

Two reasons for this:

More likely than not, a modern OS will have a separate ssh-add utility installed (and some, e.g., Mac OS X, does not have an "add" option as a a part of the installed ssh-agent binary.
"ssh-add" is referenced in several other places in the docs, while "ssh-agent add" is only referenced in this one place. We should aim for consistency, and "ssh-add" seems to have momentum on its side.

Thanks for the contribution! Please ensure your commits follow our style guide. This code will be tested once a Deis maintainer reviews it.
Your Pull Request can earn you credit at DigitalOcean! See http://docs.deis.io/en/latest/contributing/hacking/#digitalocean-credit for details.

So close @jackfrancis! The commit subject should be docs(aws): replace "ssh-agent add" with "ssh-add". Could you amend it please?

@carmstrong done, and noted about the preference against the present tense!

and noted about the preference against the present tense!

:+1:

Jenkins, add to whitelist.

LGTM.

Accidentally closed the PR.


docs(tt_um_fstolzcode): update docs for tinyZuse

Updated docs to reflect final design of the FPU

Hi @fstolzcode, some of the changes break the datasheet, where you have \x, e.g.
b'\x85\xab\x00' = 42.75

b'\x82\xe0\x00' = 7.0

I suggest wrapping those in backticks (`), so they are interpreted as code sections and do not break Pandoc


⚠ Samsung has degraded performance

In 2b05719, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2708 ms

Resolved: Samsung performance has improved in b0d77cc.


chore: bdd-spring-1576779748 to 0.0.1

chore: Promote bdd-spring-1576779748 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Stop including Microsoft.AspNetCore.Razor.LanguageServer as a MEF component

The RazorExtension VSIX includes Microsoft.AspNetCore.Razor.LanguageServer as a MEF component, which definitely makes it very unclear what the Visual Studio MEF composition contains. To solve this, we should stop registering MS.ANC.Razor.LanguageServer with MEF, and add VS implementations for any needed Exports.

I'm stealing this from you @DustinCampbell, since I added it, I'll clean it up. Will open the PR if https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=9247248&view=results passes

I'm stealing this from you @DustinCampbell, since I added it, I'll clean it up. Will open the PR if https://devdiv.visualstudio.com/DevDiv/_build/results?buildId=9247248&view=results passes

Sweet!


[AutoPR cognitiveservices/data-plane/LUIS/Runtime] Add LUIS runtime TypeScript test configuration

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/6166

(message created by the CI based on PR content)


Ambient declarations (.d.ts) not being discovered anymore

Suddenly this morning, a particular ambient declaration has started causing errors, preventing anything from working.
This is the project & branch I'm working in: https://github.com/atrauzzi/gerty/tree/hashi-gerty
I think it's a fairly straightforward webpack & ts-node setup.  Again, it's been working up until this morning...
$ cross-env NODE_ENV=development node_modules/webpack-dev-server/bin/webpack-dev-server.js --port 5174 --inline --disable-host-check --config=webpack.debug.ts

/Users/atrauzzi/Development/atrauzzi/gerty/node_modules/ts-node/src/index.ts:261
    return new TSError(diagnosticText, diagnosticCodes)
           ^
TSError: ⨯ Unable to compile TypeScript:
src/Util.ts(2,24): error TS7016: Could not find a declaration file for module 'sudo-prompt'. '/Users/atrauzzi/Development/atrauzzi/gerty/node_modules/sudo-prompt/index.js' implicitly has an 'any' type.
  Try `npm install @types/sudo-prompt` if it exists or add a new declaration (.d.ts) file containing `declare module 'sudo-prompt';`

    at createTSError (/Users/atrauzzi/Development/atrauzzi/gerty/node_modules/ts-node/src/index.ts:261:12)
    at getOutput (/Users/atrauzzi/Development/atrauzzi/gerty/node_modules/ts-node/src/index.ts:367:40)
    at Object.compile (/Users/atrauzzi/Development/atrauzzi/gerty/node_modules/ts-node/src/index.ts:558:11)
    at Module.m._compile (/Users/atrauzzi/Development/atrauzzi/gerty/node_modules/ts-node/src/index.ts:439:43)
    at Module._extensions..js (internal/modules/cjs/loader.js:718:10)
    at Object.require.extensions.(anonymous function) [as .ts] (/Users/atrauzzi/Development/atrauzzi/gerty/node_modules/ts-node/src/index.ts:442:12)
    at Module.load (internal/modules/cjs/loader.js:605:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:544:12)
    at Function.Module._load (internal/modules/cjs/loader.js:536:3)
    at Module.require (internal/modules/cjs/loader.js:643:17)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I know that's a common error message, but I had already done what's necessary to mitigate it.  Here is my ambient.d.ts at the root of the project:
declare module "*.jpg" {
    const path: string;
    export default path;
}

declare module "hostile" {
    const hostile: any;
    export default hostile;
}

declare module "sudo-prompt" {

	export function exec(cmd: string, options: { name?: string, icns?: string }, callback: (error: string, stdout: string, stderr: string) => void): any;
}

declare module "webpack-shell-plugin";

declare module "ps-tree";

Hmm... I think I managed to get some vague insight into what's going on here.  Seems like crossing the boundary of another project might be upsetting things a little.


work in feedback from Yves Großmann

We should work in the feedback from Yves Großmann:
https://github.com/yvgrossmann/rse-teaching-competencies

@jcohen02 , @jpthiele , @mhagdorn , @MakisH : My git skills give up by now....
I'd like to have some feedback on the changes that I brought about in this commit from the feedback by @yvgrossmann :
https://github.com/the-teachingRSE-project/competencies/commit/76d9ff749f21950aae063524b39467a9bae217e9

Here's the ref, that we might want to consider: https://zenodo.org/records/10374839

All points are already addressed by @jcohen02 in #347.

As far as I can see, the fork here does not contain new commits.

there will be a second try of me vs. git ....


🚀 Feature: Bring in eslint-plugin-node-dependencies's valid-semver rule

Splitting out from https://github.com/JoshuaKGoldberg/eslint-plugin-package-json/issues/43#issuecomment-1727005424 & #42: eslint-plugin-node-dependencies has a valid-semver rule. Let's merge it into this package!
https://ota-meshi.github.io/eslint-plugin-node-dependencies/rules/valid-semver.html
~Blocked on #40, but once that PR is merged this will be good to go.~ ✅

Note that this is different from #130 -> #135. valid-version is for the root-level version. This is for individual package versions.

Are you thinking this would just be incorporated into the valid-package-definition rule / PJV to tighten the testing of the version version check that it does, or as its own rule?  It feels like it could be its own rule.  So the valid-package-definition is more about the shape of the package.json being valid, whereas this would be a more granular check of the version ranges?  What do you think?


.env

where do i put the OPENAI key?

I just released a new version which has also support for a secrets.yaml file.
Just install the latest version (cargo install cai) and run cai to get information on how to configure it.
If you still rather want to use env variables,
here is a description of several ways to set them: https://askubuntu.com/a/58828


some issues

when i add some element dynamically  than list not appear show

Can you please provide the details of the issue like the source code, web browsers or any error messages?


Kivy Lang Documentation Missing for #:include

Software Versions

Python: v3.8.5
OS: Ubuntu 20.04
Kivy: v2.0.0

Describe the bug
A bit of documentation is missing from kivy.lang. If a root widget is defined in a file included via the #:include, that root widget is silently ignored. Perhaps a line should be added to the documentation for #:include that states that root widgets may not be defined in files referenced by #:include.
Expected behavior
The current documentation leads the user to expect that root widgets defined in an included kv file will be honored, but that is not the case
To Reproduce
Simple code to illustrate:
main.py:
from kivy.app import App

class SillyApp(App):
    pass

SillyApp().run()

silly.kv:
#:include moreSilly.kv
moreSilly.kv:
Label:
    text: 'Abba'

When you include a root widget in a KV file, the widget is created and returned. This happens also for included kv files.
It's just that when a kv file is included, the widget is created but then dropped because it's not part of the API for a kv file that includes another kv file to return the widget created by the included kv file. I don't think we need to include this in the docs, because it's not suggested anywhere that it would be returned and it also hasn't come up before and it would just be distracting in the docs.


fix: match mergify automerge rules to actionlint rules

This fixes an issue I hit in https://github.com/instructlab/instructlab/pull/1724 - previously, changing a non-workflow file in .github would block automerge as Mergify expected a result from actionlint, but actionlint only runs when a workflow file is changed. This PR aligns the regexs we are using in the respective configurations.
Checklist:

[x] Commit Message Formatting: Commit titles and messages follow guidelines in the
conventional commits.
[ ] Changelog updated with breaking and/or notable changes for the next minor release.
[ ] Documentation has been updated, if necessary.
[ ] Unit tests have been added, if necessary.
[ ] Integration tests have been added, if necessary.

I marked this as part of milestone for 0.19.0, but feel free to correct me if I am wrong.

@RobotSail all good, this one is def not critical to the project :+1:


Use Buildkite and Docker

Adds a dockerfile and docker-compose file for reproducible CI containers.
Adds a buildkite pipeline for running lintes, browser, and node tests in parallel.

Generates a build page that looks like this:

Fixes #8

!merge


Remove dead code for supporting Ruby < 2.3

As of #989, this library requires Ruby >= 2.3, so the following changes were in order:

The validate_headers function is only executed for Ruby versions prior to 2.3.
The patron adapter had tests that were only run for Ruby 1.9. These tests should actually have been written for all Ruby versions greater than 1.9.

Great cleanup. Thank you @rzane !


'Refresh' doesn't work well in the context menu for Blob Containers.

Repro Steps:

Expand storage account.
Right click Blob Containers node and select 'Refresh'.
Verify whether this action can work well or not.

Expect:
'Refresh' works well with refreshing icon.
Actual:
it doesn't work well.
More Info:
It also reproduces for File Shares/Queues/Tables node.

Hi, Stephen,
This is what I want to express: I test time after time, 'Refresh' is really executed successfully when right clicking the Blob Containers/File Shares/Queues/Tables, but I can't see any indication, such as refreshing icon.
Please see the difference between supplied subscription and Blob Containers node through the link below:
\trinlab2\BAQAFiles\CloudToolsTest\v-haiz\video\compare.mp4
Thanks.

Moved to https://github.com/Microsoft/vscode-azuretools/issues/181


The placeholder of mat-chip-grid-input couldn't always show

Is this a regression?

[ ] Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was
No response
Description

see this picture, I just want the New fruit.... placeholder always show, which is the default behavior in Angular 13.0, so do you have any solutions to make this always show in Angular 15?
Reproduction
StackBlitz link:
Steps to reproduce:
1.
2.
Expected Behavior
Always show the placeholder
Actual Behavior
only shows if I focus the input text.
Environment

Angular:
CDK/Material:
Browser(s):
Operating System (e.g. Windows, macOS, Ubuntu):

Duplicate of https://github.com/angular/components/issues/16380.


parse auth_time as an int

Fix for https://github.com/Intility/fastapi-azure-auth/issues/166

Thanks so much 😊 I'll get a new release out tomorrow.

@JonasKs Gentle reminder to create a new release with this fix, pretty please?

I'll get a release out tomorrow!

I've created a new release. Thanks for the contribution 😊


Remove a redundant heuristic

This adds a test for #5529, then removes the heuristic that caused that odd behavior.
I believe this heuristic is redundant with what the resolver already does.
If you believe this heuristic is needed please suggest a test case and I will add it to this PR.
This tests and closes #5529 and should close #5702.

r? @matklad
(rust_highfive has picked a reviewer for you, use r? to override)

Looks like some of these test cases are already in. let me investegate.

Ah yeah I believe the failing tests are why this logic was here, but it should definitely be fine to move around the logic to keep the tests passing!

As usual when code looks redundant there's a corner case that has not been considered. In this case the fact that was not in my mental model was that querying some dependencies can have observable side effects. Specifically, git dependencies will be pulled too the latest commit.

Ok so there is an externality for querying a Crates.io dependency. It triggers a registry update #2895. (Although If I wanted to do an update but not update the registry, I'd think --offline is a better suggestion now that we have it.)
I seem to be out of ideas.

Hm in general I've tried to minimize in Cargo the number of locations where the type of source is specialized, ideally all of them should be total black boxes to the resolver and Cargo. (that doesn't actually manifest currently but it's somewhat close!)
I'm not 100% sure that https://github.com/rust-lang/cargo/issues/5529 is a bug per se in the sense that both crate graphs are "correct" and Cargo doesn't have much ability to pick between the two to say which is "more correct". It may be the case though that we could add a new heuristic for sorting dependencies on whether the dependency will cause a slow update? (something like fetching the index or updating a git repo)
One thing we could also try is adding dummy entries from the lockfile into the "can be locked to" set in the registry. That way we may end up throwing them away if nothing uses it, but it's at least there as a candidate to be used?

I'm not 100% sure that #5529 is a bug per se

I'd think that a quickchek like invariant is that if a lockfile was newly generated and nun of the inputs have changed then all cargo update ... commands will not change the lock file. But given that the heuristics in the resolver are order dependant, I am not sure that this invariant is true.

One thing we could also try is adding dummy entries from the lockfile into the "can be locked to" set in the registry. That way we may end up throwing them away if nothing uses it, but it's at least there as a candidate to be used?

Rufly this heuristic should be looking at union(things locked, things preferred by conservative update) instead of just things locked?

@Eh2406 I believe so yeah!
Awhile back I made some tweaks which were targeted at fixing errors during an update which otherwise didn't need to happen, and along the way what I ended up doing was to basically sort version candidates to the front if they were already in the lock file (preferring those) over other candidates. The upside of this is that most of the time the candidates in the lock file always work, but in the rare case they cause conflicts or something like that we still have the other candidates to try.
I think is similar in the sense that we should first try what was already in the lock file (in theory) or whatever candidates are available in the lock file. If that all fails though we should fall back to normal version resolution and update the registry and such. In theory this is sort of like an iterator where each call to next() may return a long time, and it's sorted by lockfile-first which don't need to update the registry.
I'm not sure how much of that's easy to implement though :(

I very agree! I really like your move things in lockfile to the front heuristic! The thrust of this PR is that we should rely on it more, and reduce the use of ="lockfile ver" heuristics.
Naively removing this heuristic did not work, as it indirectly signals some externalities not to trigger. So what we want is for the resolver to backtrack from querying with out externalities to querying with externalities. I have been thinking on that and have not figured out how to teach the resolver to do that. :-(
But I do think we can add a new layer of backtracking, If we add an argument to querying for whether to trigger externalities then we can do a conservative update by calling the resolver with that argument set to no externalities if it succeeds we are good, if not we can rerun the resolver argument set to use externalities.
I think this will work but have not tried it yet. I don't know when I will so I left this as notes for futcher me.

So what we want is for the resolver to backtrack from querying with out externalities to querying with externalities

I think this is exactly the problem, yeah!
I'm down for a solution to this so long as it keeps test passing, so feel free to go wild!

I'm gonna close this for now to help clear out the queue, but I'm all for merging w/ the last point figured out!


Wavy footer

Describe the project you want to add with tech stack

This project contains a footer which is wavy in nature,just like blue waves of the sea this footer can be used in any such sites.It attractive and can be reused many times.Can you assign this task to me?
Expected behavior

Screenshots (optional)

Additional context (optional )

@MohitGupta121 ,@TusharKesarwani Can you assign this task to me?


Meet the GitHub community standards

Ref: https://github.com/erikras/react-final-form/community
Just like erikras/final-form#3 🙂

Codecov Report

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

@@          Coverage Diff          @@
##           master     #8   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           8      8
  Lines         121    121
  Branches       33     33
=====================================
  Hits          121    121

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 2ced13d...6f7b3cc. Read the comment docs.

I love problems being reported as both problems and solutions. 👍 Thanks, @MichaelDeBoey!

@erikras You're welcome 🙂
They're just some small changes that somebody eventually will do, so why not contribute a little bit to an awesome library 🙂


alternative to np.corrcoef for correlation distance

Hi @HeikoSchuett ,
given that we use einsum for all other RDM calc cases, I figured we could also use it for correlation distance. that speeds up performance massively compared to numpy corrcoef.
def correlation_distance(X):
    """[correlation distance]

    Args:
        X ([dataset]): conditions x voxels dataset

    Returns:
        RDM in upper triangular form.
    """
    X = X - X.mean(axis=1, keepdims=True)
    X /= np.sqrt(np.einsum('ij,ij->i', X, X))[:, None]

    m = X.shape[0]
    r, c = np.triu_indices(m, 1)

    return 1 - np.einsum('ik,jk', X, X))[r, c]

Hi Ian,
sounds very sensible. We could then use the numpy implementation as the test in parallel to the euclidean implementation.
Could you start this as a pull request with the new implementation of the correlation distance build in?


bug: Icon size for button

For medium button, the icon size is 16. The good size is 20.
And for large button, the icon size is 16. The good size is 24.

Since I am working on button with single icon, I will include this fix in the PR.


[angularjs] Migrate to ui-router

Current version of AngularJS frontend uses obsolete built-in routing module. I suggest migrating to ui-router.

Thanks to submit this PR to the https://github.com/spring-petclinic/spring-petclinic-angular1 project


Install docs

Adds an Install section to the Zipline docs where we can provide detailed installation instructions for various platforms and package managers.

@ssanderson Looks like we've got some extra commits in this PR.

@ssanderson Looks like we've got some extra commits in this PR.

s/git rebase master/git rebase origin/master

@ssanderson I didn't have to install python-devel, presumably some other package pulled it in as dependency, but wouldn't hurt to add it to be explicit.

Awesome work, lgtm


cmd/compile: panics with generic type alias and based-on constraint

Go version
1.23rc1
Output of go env in your module/workspace:
n/a

What did you do?
https://go.dev/play/p/kMvT8_f91aK?v=gotip
What did you see happen?
: internal compiler error: panic: /usr/local/go/src/cmd/compile/internal/types2/subst.go:56: assertion failed
etc.
What did you expect to see?
no panic

Related Issues and Documentation

cmd/compile: compile panics with generic type alias #68526
cmd/compile: panic for cyclic generic interfaces #56045
go/types,types2: internal compiler error: panic: cmd/compile/internal/types2/check.go:595: assertion failed #66878 (closed)
cmd/compile: internal compiler error importing a recursive type (recursive through a type constraint) #51219 (closed)
cmd/compile: internal compiler error: panic: builtins.go: assertion failed #61486 (closed)
cmd/compile: compiler panic for generic alias type #68054 (closed)
cmd/compile: assertion failure in validType test [go1.23] #66323 (closed)
cmd/compile: generics + constant cycle causes panic in type checker #52748 (closed)
cmd/compile/internal/types2: panic when type function selector is not instantiated #48048 (closed)
cmd/compile: crash while exporting aliases (with GODEBUG=gotypesalias=1) #66550 (closed)

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

CC @griesemer @timothy-king

Reproduced at 1.23rc2. Interestingly, the code typechecks fine when checked by the typechecker alone.

Reduced example: https://go.dev/play/p/X9GxAbUdgeA?v=gotip

Simpler reproducer:
package main

type A[P any] = struct{ _ P }

type N[P any] A[P]

func f[P any](N[P]) {}

var _ = f[int]

@griesemer Do we need to backport this to 1.23?

@gopherbot please backport this issue to go1.23

@cuonglm Yes, we should backport this. I believe an issue is not needed per @dmitshur 's e-mail:

Any CLs that land after CL 600176 ("internal/goversion: update Version to 1.24") but target Go 1.23 must be cherry-picked to release-branch.go1.23. Cherry-pick CLs can be created following the same steps as usual but do not need a backport issue or approval from the release team. Please continue to use your judgment about what should be included this late in the Go 1.23 release cycle.


Configure Azure Pipelines

This pipeline configuration builds the application and produces a build for the Release configuration.

 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.:x: davidsuly sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


Merge pull request #1 from foundryvtt/master

Fix level of champion archetype's healing touch feat in archetypes jo…

A mistake


Bump grpc to 1.19

Closes #114

See #106 for bumping grpc to 1.18.

@ncherro Let me know if there is any blocking task for this to get merged.

@mhamrah Thanks. Can you push namely/protoc:1.19_0 to https://hub.docker.com/r/namely/protoc/tags ?

Yes- will do today!
On Tue, Mar 26, 2019 at 1:43 AM Takuya N<EMAIL_ADDRESS>wrote:

@mhamrah https://github.com/mhamrah Thanks. Can you push
namely/protoc:1.19_0 to https://hub.docker.com/r/namely/protoc/tags ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/namely/docker-protoc/pull/115#issuecomment-476483825,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAFkGiXkc8dprPlqhcOrILygNAcotaDJks5vabOfgaJpZM4cFZr0
.

--
https://www.namely.com/
Mike Hamrah
Chief Architect
*w: *namely.com
Our mission is to build a better workplace.
https://twitter.com/namelyhr https://www.linkedin.com/company/namely/
https://www.facebook.com/namelyinc/

This is pushed, apologies for the delay.


DataFrameWidget prints the wrong value when two columns have the same name

(This is from our Spark training)
DataFrameWidget is confused when two columns have the same name. For example, the following query has two columns called "airport", coming from the "airports" table, but with different aliases. However, the widget will show the same value in both columns, even though the data frame prints correctly if I do df.show().
SELECT f.origin, a.airport, f.dest, b.airport, f.count
  FROM flights_between_airports2 f
  JOIN airports a ON f.origin = a.iata
  JOIN airports b ON f.dest = b.iata

I can work around this by adding aliases for “a.airport AS airport1” and “b.airport AS ..." in the SELECT:
SELECT f.origin, a.airport AS airport_a, f.dest, b.airport AS airport_b, f.count
  FROM flights_between_airports2 f
  JOIN airports a ON f.origin = a.iata
  JOIN airports b ON f.dest = b.iata

ahah.... well, besides the fact that this is probably also wrong :-), we need to find a way to use something else as the key for column names, which goes again relation algebra (two vars cannot have the same unless they have identical values ^^)

hmm when spark notices ambigous column names it prints them like colName#77 vs colName#33, so we could use this as the key. didn't check yet how to get it, but using column index would work (besides complicating all the things, without much added value).
easier would be to transform the dataframe before displaying, instead of handling this extreme case in the widgets...
  df.withColumn($"$dupCol#$num", $"$someHowGetAliasOfColumn")

wdyt?

Yeah, what needs to be done then is to use this thing if the index as key and show only the name in the UI I guess

but only if it do not complicate things...

@dragos , btw why do you need DataFrameWidget at all (is it anyhow better than others)?
- unlimited paging, oh well, who needs that?
there is whole bunch of widgets inside front/widgets/package.scala, including TableChart(someDF, maxPoints = 20), PivotChart, display etc.
I'm considering even to drop/deprecate the DataFrameWidget until we refactor all other widgets to be more-powerful.


Insider release: 'Experimental editor' shows two different color when select the text

Seems to be a theming problem. When the editor's background color is customized, multiple CSS classes must be defined:
.monaco-editor-background,
.monaco-editor,
.monaco-editor .margin {
	background-color: rgb(218, 255, 234);
}


fix: MD038/no-space-in-code

Spaces inside code span elements

@nschonni : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@nschonni Thank you for submitting these updates, however, when I look at the live files, the current formatting is not incorrect. It is just another way to show code blocks with the single tick. The registry key is debatable, but I think they are escaping the key and the value separately. I'm going to close this pull request without making the change, but please let me know if you have any questions. Thanks!


Issues when bundling with Rollup

Version: 6.1.0
When I bundle my library which uses rollup to generate browser as well as server builds it bundles perfectly but then in my consumer project when I run it on SSR it throws error TypeError: global.XMLHttpRequest is not a constructor
Rollup config
const browserConfig = fs.readdirSync('src')
  .filter((service) => !ignoreFiles.includes(service))
  .map((service) => ({
    input: `src/${service}/index.js`,
    external: [...Object.keys(packageJson.peerDependencies)],
    plugins: [
      babel({
        exclude: 'node_modules/**',
        runtimeHelpers: true,
        externalHelpers: true,
      }),
      nodeBuiltIns(),
      nodeResolve({ browser: true }),
      commonjs(),
      json(),
    ],
    output: {
      file: `browser/${service}.js`,
      format: 'esm',
    },
  }));

const serverConfig = fs.readdirSync('src')
  .filter((service) => !ignoreFiles.includes(service))
  .map((service) => ({
    input: `src/${service}/index.js`,
    external: [...Object.keys(packageJson.peerDependencies), 'fs'],
    plugins: [
      babel({
        exclude: 'node_modules/**',
        runtimeHelpers: true,
        externalHelpers: true,
      }),
      nodeBuiltIns(),
      nodeResolve(),
      commonjs(),
      json(),
    ],
    output: {
      file: `server/${service}.js`,
      format: 'cjs',
      exports: 'named',
    },
  }));

export default [
  ...browserConfig,
  ...serverConfig,
];

Also to my notice for server bundle it includes XMLHttpRequest, how's that possible?
Some code from server bundle
function checkTypeSupport(type) {
  if (!xhr) {
    xhr = new global.XMLHttpRequest();
    // If location.host is empty, e.g. if this page/worker was loaded
    // from a Blob, then use example.com to avoid an error
    xhr.open('GET', global.location.host ? '/' : 'https://example.com');
  }
  try {
    xhr.responseType = type;
    return xhr.responseType === type
  } catch (e) {
    return false
  }

}

On my consumer app I'm using webpack

Hey @kamleshchandnani. The code you pasted that mentions XMLHttpRequest isn't from Bugsnag, so I guess something else is causing this problem for you?
I'm going to close this off as it doesn't look like a bug with Bugsnag to me, but feel free to writing to<EMAIL_ADDRESS>and we will do what we can to help get things working. Cheers!


SpinKitPouringHourglass name changed

Describe the bug
Try correcting the name to the name of an existing method, or defining a method named 'SpinKitPouringHourglass'.
_indicator = SpinKitPouringHourglass(
^^^^^^^^^^^^^^^^^^^^^^^
FAILURE: Build failed with an exception.
The dependent flutter_spinkit package upgraded and the Class name SpinKitPouringHourglass changed to SpinKitPouringHourGlass , thus build error occures
The related link is here

I also encounter this problem. After I fix the typo at line 166 of \lib\src\widgets\indicator.dart, problem solved.

I also encounter this problem. After I fix the typo at line 166 of \lib\src\widgets\indicator.dart, problem solved.

could u provide more information?
my problem, quite simile:
Error: Method not found: 'LoadingIndicator'.
Widget w = indicator ?? (_instance.indicatorWidget ?? LoadingIndicator());
^^^^^^^^^^^^^^^^

I also encounter this problem. After I fix the typo at line 166 of \lib\src\widgets\indicator.dart, problem solved.

could u provide more information?
my problem, quite simile:
Error: Method not found: 'LoadingIndicator'.
Widget w = indicator ?? (_instance.indicatorWidget ?? LoadingIndicator());
^^^^^^^^^^^^^^^^

Your problem seems different from mine.  My easyloading version is 5.0.0, have you tried to upgrade your version to the latest one?

5.0.0, ??

I have 3.0.0
I replace my \lib\src\widgets\indicator.dart with GitHub package repo, make changes in 'SpinKitPouringHourGlass' and it works.

5.0.0, ??

I have 3.0.0
I replace my \lib\src\widgets\indicator.dart with GitHub package repo, make changes in 'SpinKitPouringHourGlass' and it works.

Perhaps upgrading your dependency in your project should be a better choice. A small suggestion.

Just upgraded dependencies and now I'm getting this error.
Try correcting the name to the name of an existing method, or defining a method named 'SpinKitPouringHourglass'.
_indicator = SpinKitPouringHourglass(
^^^^^^^^^^^^^^^^^^^^^^^

5.0.0, ??

I have 3.0.0
I replace my \lib\src\widgets\indicator.dart with GitHub package repo, make changes in 'SpinKitPouringHourGlass' and it works.

Perhaps upgrading your dependency in your project should be a better choice. A small suggestion.

as I see, last version is 3.0.0
I didn't find any newer version.

Just upgraded dependencies and now I'm getting this error.
Try correcting the name to the name of an existing method, or defining a method named 'SpinKitPouringHourglass'.
_indicator = SpinKitPouringHourglass(
^^^^^^^^^^^^^^^^^^^^^^^

as kidozh method:
manually change SpinKitPouringHourglass to SpinKitPouringHourGlass

Worked Thanks 👍👍

the bug reason is flutter_spinkit update to 5.1.0 and change the SpinKitPouringHourglass to SpinKitPouringHourGlass,but this lib use SpinKitPouringHourglass, so，add  flutter_spinkit: 5.0.0 in the dependencies ,then will well

5.0.0, ??

I have 3.0.0
I replace my \lib\src\widgets\indicator.dart with GitHub package repo, make changes in 'SpinKitPouringHourGlass' and it works.

Perhaps upgrading your dependency in your project should be a better choice. A small suggestion.

as I see, last version is 3.0.0
I didn't find any newer version.

Just upgraded dependencies and now I'm getting this error.
Try correcting the name to the name of an existing method, or defining a method named 'SpinKitPouringHourglass'.
_indicator = SpinKitPouringHourglass(
^^^^^^^^^^^^^^^^^^^^^^^

as kidozh method:
manually change SpinKitPouringHourglass to SpinKitPouringHourGlass

thank you guy, that work for me


Javscript help with this grid

I am trying to use Javascript to place an AjaxGrid on an MVC 5 view when the submit button is clicked. I've been hacking away for half a day and made no progress. Can someone offer a tip here?
this function is called on submit:
function onbtnSubmit() {
   var sourceurl = 'validpath';   //Points to a MVC controller action, built from serializeform().
    var thegrid = new MvcGrid(document.querySelector('.mvc-grid')).;
     thegrid.sourceurl = sourceurl;
     thegrid.reload();
}

This is on the view:
@Html.AjaxGrid(Url.Action("SNPMemberCarePlanGrid", "Reports"))

Theoretically it looks okay, you don't see the request happening or you are getting an error?
Should be easy enough to find a root cause from stepping into reload function.

This is the full function:
function onbtnSubmit() {
if (ValidateReportForm()) {
var theformdata = $("#TheReportForm").serialize();
var thesourceurl = '@Url.Action("SNPMemberCarePlanGrid", "Reports")' + '?' + theformdata.replace('"', '');
var thegrid = new MvcGrid(document.querySelector('.mvc-grid'));
thegrid.dataSource = thesourceurl;
thegrid.reload();
}
    return false;
}

Theoretically it looks okay, you don't see the request happening or you are getting an error?
Should be easy enough to find a root cause from stepping into reload function.

I'll try that. thanks.


SubstringLayoutRenderer - Fixed bug when Start is higher than actual length

See also https://travis-ci.org/NLog/NLog/builds/450439888

Have now changed the NLog.UnitTests-project so LogManager.ThrowExceptions = true by default. Instead of being at random depending on the test-execution-order.

Have now changed the NLog.UnitTests-project so LogManager.ThrowExceptions = true by default. Instead of being at random depending on the test-execution-order.
No longer hiding exceptions like those in Substring-Unit-Tests.

good one!


chore: change the handling of sparse note arrays

Instead of returning a new array with the notes collapsed at the beginning, we instead require that the array returned by the oracle has that shape already. This makes the constrain function not change the value being constrained, which is useful for approaching https://github.com/AztecProtocol/aztec-packages/issues/6543 via https://github.com/noir-lang/noir/issues/4442.

Benchmark results
No base data found for comparison.

Detailed results
All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call  to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.
This benchmark source data is available in JSON format on S3 here.
Proof generation
Each column represents the number of threads used in proof generation.

Metric
1 threads
4 threads
16 threads
32 threads
64 threads

proof_construction_time_sha256
5,706
1,551
710
782
774

L2 block published to L1
Each column represents the number of txs on an L2 block published to L1.

Metric
8 txs
32 txs
64 txs

l1_rollup_calldata_size_in_bytes
772
772
772

l1_rollup_calldata_gas
6,820
6,844
6,856

l1_rollup_execution_gas
587,360
587,384
587,396

l2_block_processing_time_in_ms
1,349
5,068
10,057

l2_block_building_time_in_ms
33,309
132,005
262,790

l2_block_rollup_simulation_time_in_ms
33,128
131,360
261,524

l2_block_public_tx_process_time_in_ms
20,445
83,013
165,279

L2 chain processing
Each column represents the number of blocks on the L2 chain where each block has 16 txs.

Metric
5 blocks
10 blocks

node_history_sync_time_in_ms
15,147
28,288

node_database_size_in_bytes
21,336,144
38,064,208

pxe_database_size_in_bytes
29,868
59,425

Circuits stats
Stats on running time and I/O sizes collected for every kernel circuit run across all benchmarks.

Circuit
protocol_circuit_simulation_time_in_ms
protocol_circuit_witness_generation_time_in_ms
protocol_circuit_proving_time_in_ms
protocol_circuit_input_size_in_bytes
protocol_circuit_output_size_in_bytes
protocol_circuit_proof_size_in_bytes
protocol_circuit_num_public_inputs
protocol_circuit_size_in_gates

private-kernel-init
158
3,656
21,707
19,985
61,999
86,720
2,643
1,048,576

private-kernel-inner
606
5,142
40,410
89,053
61,999
86,720
2,643
2,097,152

private-kernel-reset-small
576
2,702
23,781
117,961
61,999
86,720
2,643
1,048,576

private-kernel-tail
529
2,847
40,074
86,849
79,454
10,688
267
2,097,152

base-parity
7.56
895
4,373
128
64.0
2,208
2.00
131,072

root-parity
49.6
142
41,433
27,064
64.0
2,720
18.0
2,097,152

base-rollup
786
2,821
43,455
111,158
957
3,136
31.0
2,097,152

root-rollup
93.7
114
8,335
11,518
821
3,456
41.0
524,288

public-kernel-app-logic
244
208
761
96,978
85,095
116,448
3,572
4,096

public-kernel-tail
872
788
1,168
388,207
7,755
10,176
251
512

public-kernel-setup
228
266
901
138,309
85,095
116,448
3,572
4,096

public-kernel-teardown
233
265
1,118
143,320
85,095
116,448
3,572
4,096

merge-rollup
6.50
89.7
1,622
2,760
957
3,136
31.0
65,536

private-kernel-tail-to-public
N/A
10,023
73,261
N/A
N/A
116,960
3,588
4,194,304

Stats on running time collected for app circuits

Function
app_circuit_proof_size_in_bytes
app_circuit_proving_time_in_ms
app_circuit_size_in_gates
app_circuit_num_public_inputs

SchnorrAccount:entrypoint
16,128
49,245
2,097,152
437

Test:emit_nullifier
16,128
2,482
65,536
437

FPC:fee_entrypoint_public
16,128
8,573
524,288
437

FPC:fee_entrypoint_private
16,128
9,113
524,288
437

Token:unshield
16,128
50,261
2,097,152
437

SchnorrAccount:spend_private_authwit
16,128
2,680
131,072
437

Token:transfer
16,128
34,691
2,097,152
437

Tree insertion stats
The duration to insert a fixed batch of leaves into each tree type.

Metric
1 leaves
16 leaves
64 leaves
128 leaves
512 leaves
1024 leaves
2048 leaves
4096 leaves
32 leaves

batch_insert_into_append_only_tree_16_depth_ms
11.3
18.3
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_count
16.7
31.8
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_ms
0.657
0.563
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_32_depth_ms
N/A
N/A
52.4
80.6
263
503
988
1,955
N/A

batch_insert_into_append_only_tree_32_depth_hash_count
N/A
N/A
95.9
159
543
1,055
2,079
4,127
N/A

batch_insert_into_append_only_tree_32_depth_hash_ms
N/A
N/A
0.536
0.497
0.477
0.470
0.469
0.467
N/A

batch_insert_into_indexed_tree_20_depth_ms
N/A
N/A
62.5
120
377
740
1,471
2,923
N/A

batch_insert_into_indexed_tree_20_depth_hash_count
N/A
N/A
106
208
692
1,363
2,707
5,395
N/A

batch_insert_into_indexed_tree_20_depth_hash_ms
N/A
N/A
0.544
0.538
0.512
0.509
0.509
0.509
N/A

batch_insert_into_indexed_tree_40_depth_ms
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
67.7

batch_insert_into_indexed_tree_40_depth_hash_count
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
108

batch_insert_into_indexed_tree_40_depth_hash_ms
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
0.593

Miscellaneous
Transaction sizes based on how many contract classes are registered in the tx.

Metric
0 registered classes
1 registered classes

tx_size_in_bytes
84,741
673,219

Transaction size based on fee payment method
| Metric |  |
| - |  |
Transaction processing duration by data writes.

Metric
0 new note hashes
1 new note hashes
2 new note hashes

tx_pxe_processing_time_ms
29,392
4,260
98,758

Metric
0 public data writes
1 public data writes
2 public data writes
4 public data writes
8 public data writes

tx_sequencer_processing_time_ms
1,409
2,667
2,083
3,262
1,983

This is apparently a legitimate failure, I'm trying to understand what causes it.

An end-to-end test failed because we're filtering before checking for sparseness. We do want to filter, and because that happens in noir we can't rely on the oracle providing post-filter non-sparse values. So this approach won't work at all - closing this PR.


Blurry images when saved with ascending sizes coming from array inside loop

Describe the bug
I experimented with Intervention Image and observed that in my example the right order of the image sizes in the array is important to have the images saved without quality issues. I guess that the image once loaded is cached and reused in the next loop runs.
If I have the sizes from low to high (300,...,2200) the images are blurry. If I have the sizes from high to low (2200,...,300) everthing's fine.
Code Example
@php
    $image_paths = ['../resources/img/ryan-schroeder-Gg7uKdHFb_c-unsplash.jpg'];
    $image_sizes = [2200, 1200, 900, 600, 300];
    // $image_sizes = [300, 600, 900, 1200, 2200];

    foreach ($image_paths as $image_path) {
        $imagePathInfo = pathinfo($image_path);
        $imageName = $imagePathInfo['filename'];
        $imageDir = $imagePathInfo['dirname'];

        foreach ($image_sizes as $size) {
            $image = Image::read($image_path);
            $image_path = "$imageDir/$imageName" . "_$size.webp";
            $aspect_ratio = $image->size()->aspectRatio();
            $height = $size / $aspect_ratio;

            $file_already_exists = file_exists($image_path);

            if (!$file_already_exists) {
                $image->scale($size);
                $image->toWebp();
                $image->save($image_path);
            }
        }
    }
@endphp

Expected behavior
I expected that the image is newly read in every single loop passage and then processed.
Images
If applicable, add problematic images or screenshots to help explain your problem.
Environment (please complete the following information):

PHP Version:
OS: Windows 10
Intervention Image Version: (Laravel-Image 1.3.0)
GD or Imagick: Imagick

I think the error is in your code. You're overwriting the $image_path variable in the second loop. So that during the second run the already scaled image is read and used instead of the original.

I think the error is in your code. You're overwriting the $image_path variable in the second loop. So that during the second run the already scaled (down) image is read and used instead of the original path from the first loop.
Apart from that, you do not need the $image->toWebp(); call, as the subsequent $image->save(); call includes the Webp-encoding depending on the file extension of the $image_path. See documentation.

Oh gosh, I guess it was too late 😄

@olivervogel could you also give me a hint why there is no difference in quality (ergo file size) when passing different quality values to toWebp()?
It doesn't matter, if I use 100, 85 or 10.

Do you have a code example? A quick test I did results in different file sizes for different qualities.
$image = ImageManager::imagick()
    ->read('./example.jpg');

foreach ([100, 85, 10] as $quality) {
    $path = './quality_' . $quality . '.webp';
    $image->save($path, quality: $quality);
    echo "Filesize for " . $quality . " is " . filesize($path) . "\n";
}

Results in:
Filesize for 100 is 244440
Filesize for 85 is 22308
Filesize for 10 is 4736

Similar result with GD.


Scaling Issues on multiple platforms

Now the user can provide de scaling factor of the resolution for windows and linux.
Now MacOS, Linux Scaled, Windows Scaled,  Android Browser and IOS AI screenshots have improved highlights rectangles.
Android Browser Fix

Android Browser Old

Android Native Old And New

IOS Browser Fix

IOS Browser Old

IOS Native Fix

IOS Native Old

Windows unscaled Old and New | Linux unscaled Old and New| Mac Fix | Linux scaled Fix | Windows Scaled Fix

Linux Scaled Old | Windows Scaled Old | Mac Old

Relates to:
https://github.com/MohabMohie/SHAFT_ENGINE/issues/422


cloud 50

[Enter feedback here]

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

ID: 31a40001-def3-bb19-78a9-97f0405b0838
Version Independent ID: f6c57b1d-d527-1b51-092a-a8d6098b506b
Content: Using cloud economics to develop a cloud adoption strategy - Cloud Adoption Framework
Content Source: docs/strategy/index.md
Service: caf
Sub-service: caf-methodology-strategy
GitHub Login: @mpvenables
Microsoft Alias: martinek

### Tasks

Closing. If you would like to report a Cloud Adoption Framework documentation issue to the team, please open a new issue and include relevant information/repro steps in the Comment section.


prism missing tp command

[12:30:01] [Server thread/INFO] [nucleus]: Server ran the command: /pr tp
[12:30:01] [Server thread/INFO]: Input command tp was not a valid subcommand!
tp
^
[12:30:01] [Server thread/INFO]: Usage: /pr [ext|rs|i|l|rb|undo|near|?]

The teleport command isn't necessary because you can click on non-grouped results to teleport.


[Bug]: Button click does not work

What happened?
Code runs but when I click the button it does not execute the wanted code.
What should have happened?
Should register the click
Code
const { InPageWidgetBuilder, Control } = require('console-gui-tools')

const widget1 = new InPageWidgetBuilder()
widget1.addRow({ text: "┌────────┐", color: "yellow", style: "bold" })
widget1.addRow({ text: "│ START! │", color: "yellow", style: "bold" })
widget1.addRow({ text: "└────────┘", color: "yellow", style: "bold" })

const button1 = new Control({
  id: "btn1",
  visible: false,
  attributes: { x: 30, y: 18, width: 10, height: 3 },
  children: widget1
})
button1.on("relativeMouse", (event) => {
   if (event.name === "MOUSE_LEFT_BUTTON_RELEASED") {
        require('fs').writeFileSync('button.txt', 'Button clicked!')
   }
})```

### Library Version

3.3.0

### Node Version

18.5.0

### What operating system are you using?

Windows

### Terminal

Tried CMD & windows terminal. I also tried on my macbook and got the same results.

### Interest to fix the bug

- [ ] I would like to fix this bug!

import { ConsoleManager, Button, ConfirmPopup } from "../dist/esm/ConsoleGui.mjs"

const opt = {
    title: "Click the button",
    layoutOptions: {
        type: "single",
    },
    logLocation: "popup",
    enableMouse: true
}

const GUI = new ConsoleManager(opt)

GUI.on("exit", () => {
    closeApp()
})

GUI.on("keypressed", (key) => {
    switch (key.name) {
    case "q":
        new ConfirmPopup({
            id: "popupQuit",
            title: "Are you sure you want to quit?"
        }).show().on("confirm", () => closeApp())
        break
    default:
        break
    }
})

const closeApp = () => {
    console.clear()
    process.exit()
}

const style1 = {
    borderColor: "red",
    color: "red",
}

const btnProps = {
    id: "btnClickMe",
    text: "Click Me! (Ctrl+R)",
    x: 10,
    y: 15,
    style: style1,
    key: { name: "r", ctrl: true },
}

const button = new Button(btnProps)
button.on("click", () => {
    button.absoluteValues.x = Math.floor(Math.random() * 30)
    button.absoluteValues.y = Math.floor(Math.random() * 30)
    GUI.refresh()
})

GUI.refresh()

Hello! You have to usebutton.on("click", () => {}) event listener!
Remember that to use mouse in windows you have to use WSL because windows does not handle terminal mouse protocol.


[5.3][CodeCompletion] Inherit options when parsing new buffer

Cherry-pick of #31741 into release/5.3

Explanation: In fast-completion mode, we parse the new buffer to find the context of the completion. Previously, the parsing was performed without any options so #if directives could evaluate differently from the original source file. This used to cause giving up performing fast-completion, or perform it in a wrong context.
Scope: Code completion
Risk: Low
Issue: rdar://problem/63063182
Testing: Added regression test cases
Reviewer: Ben Langmuir (@benlangmuir)

@swift-ci Please test

@swift-ci Please nominate

Build failed
Swift Test OS X Platform
Git Sha - 8c2a7d85cb49cf578032d2a3cd6bd7aba296a89f

Unrelated lldb failure
@swift-ci Please test macOS

Build failed
Swift Test OS X Platform
Git Sha - 8c2a7d85cb49cf578032d2a3cd6bd7aba296a89f

@swift-ci Please test macOS

Build failed
Swift Test OS X Platform
Git Sha - 8c2a7d85cb49cf578032d2a3cd6bd7aba296a89f


[DEPENDENCIES] Upgrade Kotlin version to 2.0.21 for #1897, cleanup dependencies, upgrade Milvus and Guava

Issue #1897

Dependency upgrade before  #1897
Change

Use Kotlin BOM for dependency resolution
Remove explicit Kotlin dependencies from multiple modules
This eliminates redundant Kotlin standard library dependencies across various pom.xml files. The change resolves potential conflicts and reduces unnecessary dependency overhead.

Updated guava version from 32.0.0-jre to 32.1.2-jre in langchain4j-zhipu-ai/pom.xml.
Updated Milvus SDK to version 2.4.2

General checklist

[x] There are no breaking changes
[ ] I have added unit and integration tests for my change
[ ] I have manually run all the unit and integration tests in the module I have added/changed, and they are all green
[ ] I have manually run all the unit and integration tests in the core and main modules, and they are all green

[ ] I have added/updated the documentation
[ ] I have added an example in the examples repo (only for "big" features)
[ ] I have added/updated Spring Boot starter(s) (if applicable)

Checklist for adding new maven module

[ ] I have added my new module in the root pom.xml and langchain4j-bom/pom.xml

Checklist for adding new embedding store integration

[ ] I have added a {NameOfIntegration}EmbeddingStoreIT that extends from either EmbeddingStoreIT or EmbeddingStoreWithFilteringIT
[ ] I have added a {NameOfIntegration}EmbeddingStoreRemovalIT that extends from EmbeddingStoreWithRemovalIT

Checklist for changing existing embedding store integration

[ ] I have manually verified that the {NameOfIntegration}EmbeddingStore works correctly with the data persisted using the latest released version of LangChain4j

@kpavlov thank you! Some modules still use kotlin-stdlib-jdk8 (in this PR), is it on putpose?
A few things to make sure we are on the same page:

kotlin-stdlib-jdk8 is currently used only for okhttp and we plan to replace okhttp with jdk 11 httpclient by default, although okhttp could be used as well
Does okhttp/retrofit works fine with kotlin-stdlib instead of kotlin-stdlib-jdk8?
I cannot commit to keep Kotlin-related stuff in this repository, I need to understand the scope first

Kotlin std-library dependency is kotlin-stdlib. kotlin-stdlib-jdk8 should be used only on jdk 8 with Kotlin < 1.8.
Since kotlin-bom is upgraded, it will get kotlin-stdlib-jdk8 2.0.21 automatically.
https://kotlinlang.org/docs/maven.html#set-dependencies

Some modules still use kotlin-stdlib-jdk8 (in this PR), is it on putpose?

Nope, I didn't notice it, will fix

I don't understand, why this dependency was added? In compile scope. There are no references to Kotlin stdlib code

https://github.com/langchain4j/langchain4j/issues/1506

That's the unit and integration testing for.

Tests can miss something, it is never a bad idea to double-check

@kpavlov there are conflicts now, sorry about that


Fix invalid type of credProps extension output

This PR resolves #415

Adds new type, AuthenticationExtensionsCredentialPropertiesOutputs

This properly conforms to the output type defined in the spec.

Changes AuthenticatorExtensionsClientOutputs.CredProps type from bool? to AuthenticationExtensionsCredentialPropertiesOutputs?
Adds link to spec entry on credProps extension in XML comment for AuthenticatorExtensionsClientOutputs.CredProps to conform with comment pattern in rest of file

Hello @geel9 and thanks for the PR. I believe this is already solved in #411?

I appreciate the effort to contribute!


Notebook: Insert Link button behaviors in Markdown vs in WYSIWYG

Azure Data Studio Version:
Version: 1.32.0 (user setup)
Commit: 4a45ba7cf20dd4129f1a08e5e776dfb33e3d1d1e
Date: 2021-08-16T18:08:28.086Z
VS Code: 1.56.0
Electron: 12.0.7
Chrome: 89.0.4389.128
Node.js: 14.16.0
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 10.0.19043

Insert Link in markdown behavior is different from Insert Link in WYSIWYG.
Steps to Reproduce:

Use Insert Link button in Markdown and paste from "copy relative path" that has spaces in the path.
Use Insert Link button in WYSIWYG and paste from "copy relative path" that has spaces in the path.

WYSIWYG creates and translates link to relative properly.
Markdown does not create a link.

Does this issue occur when all extensions are disabled?: Yes

@VasuBhog is this at all related to the encoding/decoding work that you're doing?
Curious if we can lump it in with that work or if this is wholly separate.

@chlafreniere I believe that I can check this in as well with the other work.


OP-281 Add create command

Changes Unknown when pulling<PHONE_NUMBER>cec1b228c5e148a5d9691a2074a9a0 on OP-281-create-command into ** on master**.

Changes Unknown when pulling 0723bd3103c7a9c430cec7d8d340926168686f5a on OP-281-create-command into ** on master**.


Add remark on muted for cover size

This is related to the comment on #368
I wanted to add this remark as I found it non-trivial to have to add such an attribute for full cover mode

cc @jsierles @brentvatne @isair Do you have any opinion on this topic in general? Would love to see this PR merged as this behavior is not to be expected and actually costed us a lot of debugging time. Would be cool to change the behavior in this case, but merging this first would be huge plus


Npc nagivation

npc.getNavigator().cancelNavigation();
npc.getTrait(SentinelTrait.class).npcNameTargets.clear();
npc.getNavigator().setTarget(newloc);
Here's how i try to move my npcs, but when this is called, the npc will just move and freeze when sentinel refresh every 10 ticks, so i have to call the function twice to actually tell them to move to where i want.

The idea of Sentinel is it has its own AI.  The latter would be using the "/npc path" waypoint system (accessible via API code as well of course) to make it move. Which is only there to allow users to make "patrol" Sentinel NPCs.

thx :)


About the image_processor

Hi, really appreciate for your amazing work!
In LLaVA, the image_processor is CLIPImageProcessor. However, I can't locate the CLASS or FUNCTION of the image_processor when using Intern-ViT. Specifically, the image_processor is used in the train.py. I wonder whether the the image_processor is same in LLaVA and InternVL?
Looking forward to your reply!
`
def getitem(self, i) -> Dict[str, torch.Tensor]:
flag = False
while not flag:
try:
sources = self.list_data_dict[i]
if isinstance(i, int):
sources = [sources]
assert len(sources) == 1, "Don't know why it is wrapped to a list"  # FIXME
if 'image' in sources[0]:
image_file = self.list_data_dict[i]['image']
image_folder = self.data_args.image_folder
processor = self.data_args.image_processor
image = Image.open(os.path.join(image_folder, image_file)).convert('RGB')
if self.data_args.image_aspect_ratio == 'pad':
def expand2square(pil_img, background_color):
width, height = pil_img.size
if width == height:
return pil_img
elif width > height:
result = Image.new(pil_img.mode, (width, width), background_color)
result.paste(pil_img, (0, (width - height) // 2))
return result
else:
result = Image.new(pil_img.mode, (height, height), background_color)
result.paste(pil_img, ((height - width) // 2, 0))
return result
image = expand2square(image, tuple(int(x*255) for x in processor.image_mean))
image = processor.preprocess(image, return_tensors='pt')['pixel_values'][0]
else:
image = processor.preprocess(image, return_tensors='pt')['pixel_values'][0]
sources = preprocess_multimodal(
copy.deepcopy([e["conversations"] for e in sources]),
self.data_args)
`

Hi, really appreciate for your amazing work! In LLaVA, the image_processor is CLIPImageProcessor. However, I can't locate the CLASS or FUNCTION of the image_processor when using Intern-ViT. Specifically, the image_processor is used in the train.py. I wonder whether the the image_processor is same in LLaVA and InternVL? Looking forward to your reply! ` def getitem(self, i) -> Dict[str, torch.Tensor]: flag = False while not flag: try: sources = self.list_data_dict[i] if isinstance(i, int): sources = [sources] assert len(sources) == 1, "Don't know why it is wrapped to a list" # FIXME if 'image' in sources[0]: image_file = self.list_data_dict[i]['image'] image_folder = self.data_args.image_folder processor = self.data_args.image_processor image = Image.open(os.path.join(image_folder, image_file)).convert('RGB') if self.data_args.image_aspect_ratio == 'pad': def expand2square(pil_img, background_color): width, height = pil_img.size if width == height: return pil_img elif width > height: result = Image.new(pil_img.mode, (width, width), background_color) result.paste(pil_img, (0, (width - height) // 2)) return result else: result = Image.new(pil_img.mode, (height, height), background_color) result.paste(pil_img, ((height - width) // 2, 0)) return result image = expand2square(image, tuple(int(x*255) for x in processor.image_mean)) image = processor.preprocess(image, return_tensors='pt')['pixel_values'][0] else: image = processor.preprocess(image, return_tensors='pt')['pixel_values'][0] sources = preprocess_multimodal( copy.deepcopy([e["conversations"] for e in sources]), self.data_args)
`

Hi, the image transform we used is In code, It does the same thing as CLIPImageProcessor, and you can compare the parameters of the two in detail.

CLIPImageProcessor returns pixel value. I notice that in the example inference code of InterVL2, the image process code of dynamic resolution is provided. I wonder whether it work if I replace CLIPImageProcessor with your image process code of dynamic resolution?
`
import math
import numpy as np
import torch
import torchvision.transforms as T
from decord import VideoReader, cpu
from PIL import Image
from torchvision.transforms.functional import InterpolationMode
from transformers import AutoModel, AutoTokenizer
IMAGENET_MEAN = (0.485, 0.456, 0.406)
IMAGENET_STD = (0.229, 0.224, 0.225)
def build_transform(input_size):
MEAN, STD = IMAGENET_MEAN, IMAGENET_STD
transform = T.Compose([
T.Lambda(lambda img: img.convert('RGB') if img.mode != 'RGB' else img),
T.Resize((input_size, input_size), interpolation=InterpolationMode.BICUBIC),
T.ToTensor(),
T.Normalize(mean=MEAN, std=STD)
])
return transform
def find_closest_aspect_ratio(aspect_ratio, target_ratios, width, height, image_size):
best_ratio_diff = float('inf')
best_ratio = (1, 1)
area = width * height
for ratio in target_ratios:
target_aspect_ratio = ratio[0] / ratio[1]
ratio_diff = abs(aspect_ratio - target_aspect_ratio)
if ratio_diff < best_ratio_diff:
best_ratio_diff = ratio_diff
best_ratio = ratio
elif ratio_diff == best_ratio_diff:
if area > 0.5 * image_size * image_size * ratio[0] * ratio[1]:
best_ratio = ratio
return best_ratio
def dynamic_preprocess(image, min_num=1, max_num=6, image_size=448, use_thumbnail=False):
orig_width, orig_height = image.size
aspect_ratio = orig_width / orig_height
# calculate the existing image aspect ratio
target_ratios = set(
    (i, j) for n in range(min_num, max_num + 1) for i in range(1, n + 1) for j in range(1, n + 1) if
    i * j <= max_num and i * j >= min_num)
target_ratios = sorted(target_ratios, key=lambda x: x[0] * x[1])

# find the closest aspect ratio to the target
target_aspect_ratio = find_closest_aspect_ratio(
    aspect_ratio, target_ratios, orig_width, orig_height, image_size)

# calculate the target width and height
target_width = image_size * target_aspect_ratio[0]
target_height = image_size * target_aspect_ratio[1]
blocks = target_aspect_ratio[0] * target_aspect_ratio[1]

# resize the image
resized_img = image.resize((target_width, target_height))
processed_images = []
for i in range(blocks):
    box = (
        (i % (target_width // image_size)) * image_size,
        (i // (target_width // image_size)) * image_size,
        ((i % (target_width // image_size)) + 1) * image_size,
        ((i // (target_width // image_size)) + 1) * image_size
    )
    # split the image
    split_img = resized_img.crop(box)
    processed_images.append(split_img)
assert len(processed_images) == blocks
if use_thumbnail and len(processed_images) != 1:
    thumbnail_img = image.resize((image_size, image_size))
    processed_images.append(thumbnail_img)
return processed_images

def load_image(image_file, input_size=448, max_num=6):
image = Image.open(image_file).convert('RGB')
transform = build_transform(input_size=input_size)
images = dynamic_preprocess(image, image_size=input_size, use_thumbnail=True, max_num=max_num)
pixel_values = [transform(image) for image in images]
pixel_values = torch.stack(pixel_values)
return pixel_values
`

If you are only using internvit, you do not need to use dynamic resolution. Dynamic resolution is used to enable internvl to support larger resolutions by dividing the image into several tiles. Internvit will process each tile as an independent image, and then the embeddings of each tile will be aggregated and input into the LLM.

Indeed, I am finetuning InternVL2-26B on my own task. However, I don't find the training code of InternVL2-26B and I need to modify llava training code to run finetuning. That is why I want to figure out the image_processor.
Not sure if I understand this correctly：if I want to finetune InternVL2, dynamic resolution is necessary in the training code, or if I only use internvit as VE with other LLM, dynamic resolution is unnecessary.

The dynamic resolution is necessary only in our training code. You can use dynamic resolution and our training code to make other LLM support higher resolutions, and we will release our InternVL2 finetune code soon.

Got it. Thanks again and looking forward to your finetune code!


Even Lazier Loading?

There are lots of cases where I don't even want to install a plugin until the trigger for the lazy load fires (once).
Have you ever thought about such a thing?
Thanks!

Unfortunately, it is too complicated and useless.
Closing.


Emacs with nativecomp fails to build

Describe the bug
Running nix-build -E '(import ./. {}).emacs.override {nativeComp = true;}' in nixpkgs fails.
Steps To Reproduce
Steps to reproduce the behavior:

Fetch a recent nixpkgs
nix-build -E '(import ./. {}).emacs.override {nativeComp = true;}'
Observe

Expected behavior
I wanted Emacs to build and hopefully be a bit faster (:
Additional context
Log for /nix/store/pwn94hy09nv9rgg40b1hgy1fhw984w8l-emacs-27.2.drv
Notify maintainers
I don't see a meta.maintainers so @adisbladis
Metadata
Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute: emacs
# a list of nixos modules affected by the problem
module:

From the log it seems that you're building Emacs 27 while native compilation was only added in Emacs 28.

I don't use the emacs package from nixpkgs, I had a cursory look at the nix file now and I think only Emacs 27 is supported there. It seems that native compilation handling was added in preparation for these changes but it's not actually usable yet.
You can use the nix-community emacs overlay to install a newer version though (https://github.com/nix-community/emacs-overlay). This is what I've been using for a while, that overlay provides a package emacsUnstableGcc which is the Emacs 28 pre-release with native compilation enabled.

Native comp is not supported for older Emacs versions, closing.

This infrastructure can currently only be used with Emacs versions from https://github.com/nix-community/emacs-overlay.
It's just that a lot of the support infra for native compilation is required to be in nixpkgs.

@adisbladis You should probably add something along the lines of meta.broken = version < 18 && nativeComp then for the next traveler who finds this (:


[FEATURE] Taglines in Cards

Description

Currently the cards has a description as a result, we have different height for different cards
Make sure the description is not visible in the cards, just the tagline is visible
Make sure all the cards has equal height, no cards must be greater than another

Screenshots
Present change :

What we need :

Additional information

You might need to get the data from Backend, so maybe write server side codes too
You need to get this done by like 7days (MAX)

🥦 Browser
Brave
👀 Have you checked for similar open issues?

[X] I checked and didn't find similar issue

🏢 Have you read the Contributing Guidelines?

[X] I have read the Contributing Guidelines

Are you willing to work on this issue ?
No, someone else can work on it

Can you assign me this issue @IAmTamal

Please assign me this task @IAmTamal I will do it right within one day.

@the-macson , go for it !

okay


Migrate redmine to the new ruby infrastructure

See gitlab for inspiration https://github.com/NixOS/nixpkgs/commit/6eaa4199202c905776a8227f1b6a8056ed2686fd
Note: this will get rid of the last __noChroot in nixpkgs.

(triage) @domenkozar has this been fixed?


Implement Kafka ingestion

What
The 3 most common sources for data ingestion into ClickHouse today are:

CSV
Postgres
Kafka

We support CSV and Postgres (obviously), but we probably want to support Kafka. Event streams are a very common use for analytics.
I was talking with Tyler, one of the main inventors of delta-rs, and he mentioned: https://github.com/delta-io/kafka-delta-ingest. He mentioned that, at Scribd, they implemented kafka-delta-ingest to drastically reduce costs and ingestion bottlenecks when ingesting data from Kafka. I believe this could be the right way for us to implement Kafka ingestion as well, and potentially offer really good performance compared to other solutions out there (would need to benchmark).
Why
^
How
^

Closing these as we're archiving this repository for good


Add external JS library

Hey guys,
I tried to add an external library to angular2-seed, but I couldn't make it work.
The desired library is https://github.com/callmecavs/jump.js
I followed the Wiki, therefore I added the following lines:
project.config.ts
    this.NPM_DEPENDENCIES = [       ...this.NPM_DEPENDENCIES,       {src: 'jump.js/dist/jump.min.js', inject: 'libs'},
  SYSTEM_BUILDER_CONFIG: any = { ...     packages: { ...       'jump.js': {         main: 'dist/jump.min.js',         defaultExtension: 'js'       }     }   };
After that, I tried to import the library, but it still undefined:
import jump from 'jump.js';
Could someone please tells me that what is the proper way to add an external JS library?
Thanks in advance!

For support requests you can use gitter or take a look at project's the wiki page in order to get more complete idea on how the it works.


nixpkgs podman and qemu on darwin don't play well together

Describe the bug
On darwin podman machine requires qemu to be installed. It also assumes that qemu has either been installed from source or via brew. This results in error messages where podman can't find the edk2 file.
Steps To Reproduce
Steps to reproduce the behavior:

install both podman and qemu using nix.
run podman machine init test
run podman machine start test

Expected behavior
To see a successfully started virtual machine. Instead you will see the following:
$> podman machine init test                                                                                ~
Extracting compressed file
Image resized.
Machine init complete
To start your machine run:

	podman machine start test
$> podman machine start test                                                                                ~
Starting machine "test"
INFO[0000] waiting for clients...
INFO[0000] new connection from  to /var/folders/z4/0zhrndk13bxd8jdrz_51h75c0000gn/T/podman/qemu_test.sock
Waiting for VM ...
qemu-system-aarch64: -drive file=edk2-aarch64-code.fd,if=pflash,format=raw,readonly=on: Could not open 'edk2-aarch64-code.fd': No such file or directory
Error: dial unix /var/folders/z4/0zhrndk13bxd8jdrz_51h75c0000gn/T/podman/test_ready.sock: connect: connection refused
ERRO[0003] cannot receive packets from , disconnecting: cannot read size from socket: EOF

Additional context
For context the issue in podman appears to be this: https://github.com/containers/podman/blob/main/pkg/machine/qemu/options_darwin_arm64.go#L47 . It would be possible to work around this by modifying by modifying the appropriate machine configuration in ~/.config/containers/podman/machine/qemu/${name}.json but that would require there to be a known good location for the edk2 file to live and right now it's only in the store path for qemu and that can change over time. Ideally the quemu share path would be put in the profile and podman would be patched to search the current nixos profile path for qemu instead.
As it is if you want to use podman and qemu on darwin then qemu can't be installed via nix it would have to installed via brew intead.
Notify maintainers
@zowoq @marsam
Metadata
nix-shell -p nix-info --run "nix-info -m"                                                                                ~
 - system: `"aarch64-darwin"`
 - host os: `Darwin 21.3.0, macOS 12.2.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.7.0`
 - channels(root): `"nixpkgs"`
 - channels(zaphar): `"darwin"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

This is sort of a bug and sort of not. podman is still useable if you manage the qemu machines yourself on darwin or connect to remote machines. However, I think most podman users will expect the podman machine incantantions` to work.

nixpkgs podman has lots of problems on darwin (and linux). I mentioned this specific bug to upstream while reporting another issue. https://github.com/containers/podman/issues/13394#issuecomment-1058541998
Also see https://github.com/NixOS/nixpkgs/pull/163015.

Interesting. It would be nice if there was a way for us to tell podman where qemu stuff was so it didn't try to guess from a few hard coded paths but I'm not confident that upstream will be doing so anytime soon. I guess I'll have to get something done via an overlay but that kind of sucks.

You've probably seen it, just to link it: https://github.com/containers/podman/issues/12379#issuecomment-1005455529.

I just corrected the path for: edk2-aarch64-core.fd, nothing else.

That is a manual workaround yes. But it sort of defeats the purpose of the
using nix if you have to do this and you'll have to update the path if you
ever upgrade qemu so it's only a temporary fix.
On Tue, May 10, 2022 at 9:11 AM Ivan Kovnatsky @.***>
wrote:

I just corrected the path for: edk2-aarch64-core.fd, nothing else.
—
Reply to this email directly, view it on GitHub
https://github.com/NixOS/nixpkgs/issues/169118#issuecomment-1122370141,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAAJ5N2RB22VHLWO6OLOLNTVJJOATANCNFSM5TUPLN6Q
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Jeremy Wall
http://jeremy.marzhillstudios.com
@.***

It seem that this is fixed? Just tried newest version of podman and it correctly created and started VM.

I think this will be fixed by https://github.com/containers/podman/pull/17027 in podman 4.5.0 and may have been cherry-picked back to 4.4 in https://github.com/containers/podman/pull/17429/commits/a1cc3733b10fac655090df63ddece908caee2e19
Currently I'm getting podman 4.3 in unstable, it looks like 4.4 is in master: https://github.com/NixOS/nixpkgs/commit/03d50d87c785b658ef0427bbaab43db02556e78b
That said, it seems? to be working on 4.3 right now, so maybe my PR wasn't needed in the first place?
M1 Mac, 13.3
$ nix shell -i -k HOME nixpkgs#bash nixpkgs#podman nixpkgs#qemu --command bash -c 'export PATH=/usr/bin:$PATH; podman machine init && podman machine start'
Downloading VM image: fedora-coreos-37.20230401.2.0-qemu.aarch64.qcow2.xz: done
Extracting compressed file
Image resized.
Machine init complete
To start your machine run:

        podman machine start

Starting machine "podman-machine-default"
Waiting for VM ...
Mounting volume... /Users/n8henrie:/Users/n8henrie

This machine is currently configured in rootless mode. If your containers
require root permissions (e.g. ports < 1024), or if you run into compatibility
issues with non-podman clients, you can switch using the following command:

        podman machine set --rootful

API forwarding listening on: /Users/n8henrie/.local/share/containers/podman/machine/podman-machine-default/podman.sock

The system helper service is not installed; the default Docker API socket
address can't be used by podman. If you would like to install it run the
following commands:

        sudo /nix/store/rw74mlcsgf6bq31i0mhvbdgvfhz81cmw-podman-4.3.1/bin/podman-mac-helper install
        podman machine stop; podman machine start

You can still connect Docker API clients by setting DOCKER_HOST using the
following command in your terminal session:

        export DOCKER_HOST='unix:///Users/n8henrie/.local/share/containers/podman/machine/podman-machine-default/podman.sock'

Machine "podman-machine-default" started successfully

This issue has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/out-share-linked-with-nix-profile-install-but-not-otherwise/27561/1

I just did a recent installation of podman (v4.8.1) and qemu on a fresh setup.  I was able to create the VM and use it without issue.  I suggest closing this issue :)  Thanks for the work here!
My script + invocations used to stand up the VM and use it, in case it matters:
with-podman.sh:
#!/usr/bin/env bash

set -euo pipefail

container_name="nix-run"
script="$@"

podman machine init --cpus 12 --memory 8192 --disk-size 50 \
      --volume $HOME:$HOME || true
podman machine start || true
podman container ls -a | grep $container_name > /dev/null || \
        podman create -t --name $container_name -w /workdir \
            -v $PWD:/workdir nixos/nix
container_id=$(podman start $container_name)
echo "$container_id"
podman exec $container_id $script
podman stop $container_name || true
podman machine stop

And an example run:
$ ./with-podman.sh ls -al
Error: podman-machine-default: VM already exists
Error: cannot start VM podman-machine-default: VM already running or starting
nix-run
total 12
drwxr-xr-x 11 root nobody  352 Dec 24 13:17 .
dr-xr-xr-x  1 root root     77 Dec 24 13:26 ..
drwxr-xr-x 10 root nobody  320 Dec 24 13:41 .git
-rw-r--r--  1 root nobody  283 Dec 22 00:50 README.org
-rw-r--r--  1 root nobody 3809 Dec 24 00:29 flake.nix
drwxr-xr-x  3 root nobody   96 Dec 24 00:30 hosts
drwxr-xr-x  4 root nobody  128 Dec 24 00:40 modules
drwxr-xr-x  3 root nobody   96 Dec 24 00:42 pkgs
drwxr-xr-x  3 root nobody   96 Dec 24 00:52 profiles
drwxr-xr-x  4 root nobody  128 Dec 24 00:41 shell
-rwxr-xr-x  1 root nobody  523 Dec 24 13:40 with-podman.sh
nix-run
Waiting for VM to exit...
Machine "podman-machine-default" stopped successfully

You can also make the path be ~/.nix-profile/share/qemu/edk2-aarch64-code.fd.
I've found podman to not be a good experience though and would highly recommend giving colima a shot.

why didn't i know about colima sooner? I've actively searched for docker alternatives.

I retract my previous claim that this ticket should be closed.  I don't know why one of my machines was spared this issue.  Another machine using a more recent podman at 4.9.3 ran into this issue and required the manual fix listed above.

I've found podman to not be a good experience though and would highly recommend giving colima a shot.

Added these two:
  home.packages = with pkgs; [
    colima
    docker
  ]

Ran:
$ colima start
$ docker run hello-world
Hello from Docker!

Wow, that is indeed a much better experience than what I've been banging my head against so far just to get a container running on macOS. Just wanted to say hi and thank you @Atemu. I'm learning Nix through home-manager and as I'm scavenging through various GitHub issues this is not the first time I've come across your name providing valuable comments turning my showstoppers into elegant solutions. Much appreciated!

I believe that Podman 5.0.0 might fix this by allowing Podman to use the builtin virtualization technology on darwin. I've started a PR to upgrade it here: https://github.com/NixOS/nixpkgs/pull/299302

Podman 5.0.0 might fix this by allowing Podman to use the builtin virtualization technology on darwin.

Apparently Podman 5.0.x requires vfkit to be installed in order to use the built-in hypervisor. There is no Nix package for vfkit and the current Nix package for Podman doesn't seem to install it.  I was able to get Nix-installed Podman to work by installing vfkit with (gasp) Homebrew.
I opened the following issue to report this information separately: https://github.com/NixOS/nixpkgs/issues/305868

I also did this using the homebrew support in nix Darwin

That's cool that you can do that! But I'm trying to replace Homebrew with Nix...

Should I open an issue to request a vfkit package?

Should I open an issue to request a vfkit package?

Done: https://github.com/NixOS/nixpkgs/issues/306179


flushing stdout to prevent buffering

Adding stdout flushing to log_message method. This is required because when nginx ldap auth daemon does logging - there is a lag in the logs being dumped to the file because of the buffering done. For users monitoring the nginx ldap auth daemon log file - this prevents them from viewing logs in real time.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@aliasgarjh - can you please review and update?


corrected spelling in the word

The SendGrid account may require

correctedspelling in the sentense SendGrid account may require

Fixes #18745


feat: show flow's mem usage in INFORMATION_SCHEMA.FLOWS

I hereby agree to the terms of the GreptimeDB CLA.
Refer to a related PR or issue link (optional)
What's changed and what's your intention?
Add a column to show flow's mem usage in system table, so one can tune flow's ttl option as needed.
Please explain IN DETAIL what the changes are in this PR and why they are needed:
in distributed mode Flownode's heartbeat task will reguarly ask for a StateReport which include all flows' mem usage data, and send them to metasrv, then metasrv can use this info to build system table, however there is a small latency in data update since heartbeat duration is in seconds but this usually is ok since flow's mem usage grow very slowly usually. In standalone mode can just query flow's mem size
Checklist

[ ] I have written the necessary rustdoc comments.
[ ] I have added the necessary unit tests and integration tests.
[ ] This PR requires documentation updates.

What's the status of this PR?

I need to refactor this pr to make it more similiar to CollectStatHandler to make it more clean, convert it to draft for now


Error: 500 when try to do Text Classification

I always get error 500 when trying to do training (Attached Image). I've tried several base model and hardware but still the same error 500. Is there something wrong?

Well, iam not aware about the logs there. i found that there are wrong label at my dataset. and not it works.

but, when i open the link, the training was early stopped because of  something. I put the logs below
`
===== Application Startup at 2023-12-01 15:08:02 =====
==========
== CUDA ==
CUDA Version 12.1.1
Container image Copyright (c) 2016-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
This container image and its contents are governed by the NVIDIA Deep Learning Container License.
By pulling and using the container, you accept the terms and conditions of this license:
https://developer.nvidia.com/ngc/nvidia-deep-learning-container-license
A copy of this license is made available in this container at /NGC-DL-CONTAINER-LICENSE for your convenience.
WARNING: The NVIDIA Driver was not detected.  GPU functionality will not be available.
Use the NVIDIA Container Toolkit to start this container with GPU support; see
https://docs.nvidia.com/datacenter/cloud-native/ .

INFO    AUTOTRAIN_USERNAME: apriandito
INFO    PROJECT_NAME: test-0
INFO    TASK_ID: 2
INFO    DATA_PATH: apriandito/autotrain-data-test
INFO    MODEL: https://huggingface.co/bert-base-uncased
INFO    OUTPUT_MODEL_REPO: apriandito/test-0
INFO:     Started server process [35]
INFO:     Waiting for application startup.
INFO    {'data_path': 'apriandito/autotrain-data-test', 'model': 'https://huggingface.co/bert-base-uncased', 'lr': 5e-05, 'epochs': 3, 'max_seq_length': 128, 'batch_size': 8, 'warmup_ratio': 0.1, 'gradient_accumulation': 1, 'optimizer': 'adamw_torch', 'scheduler': 'linear', 'weight_decay': 0.0, 'max_grad_norm': 1.0, 'seed': 42, 'train_split': 'train', 'valid_split': 'validation', 'text_column': 'autotrain_text', 'target_column': 'autotrain_label', 'logging_steps': -1, 'project_name': 'test-0', 'auto_find_batch_size': False, 'fp16': False, 'save_total_limit': 1, 'save_strategy': 'epoch', 'token': 'hf_**********************************', 'push_to_hub': True, 'repo_id': 'apriandito/test-0', 'evaluation_strategy': 'epoch', 'username': 'apriandito', 'log': 'none'}
INFO    ['accelerate', 'launch', '--num_machines', '1', '--num_processes', '1', '--mixed_precision', 'no', '-m', 'autotrain.trainers.text_classification', '--training_config', '/tmp/model/training_params.json']
INFO    Started training with PID 102
INFO    Process status: running
The following values were not passed to accelerate launch and had defaults used instead:
--dynamo_backend was set to a value of 'no'
To avoid this warning pass in values for each of the problematic parameters or run accelerate config.
/app/env/lib/python3.10/site-packages/bitsandbytes/cextension.py:34: UserWarning: The installed version of bitsandbytes was compiled without GPU support. 8-bit optimizers, 8-bit multiplication, and GPU quantization are unavailable.
warn("The installed version of bitsandbytes was compiled without GPU support. "
/app/env/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cpu.so: undefined symbol: cadam32bit_grad_fp32
INFO    Starting training...
INFO    Training config: {'data_path': 'apriandito/autotrain-data-test', 'model': 'https://huggingface.co/bert-base-uncased', 'lr': 5e-05, 'epochs': 3, 'max_seq_length': 128, 'batch_size': 8, 'warmup_ratio': 0.1, 'gradient_accumulation': 1, 'optimizer': 'adamw_torch', 'scheduler': 'linear', 'weight_decay': 0.0, 'max_grad_norm': 1.0, 'seed': 42, 'train_split': 'train', 'valid_split': 'validation', 'text_column': 'autotrain_text', 'target_column': 'autotrain_label', 'logging_steps': -1, 'project_name': '/tmp/model', 'auto_find_batch_size': False, 'fp16': False, 'save_total_limit': 1, 'save_strategy': 'epoch', 'token': '*****', 'push_to_hub': True, 'repo_id': 'apriandito/test-0', 'evaluation_strategy': 'epoch', 'username': 'apriandito', 'log': 'none'}
Downloading readme:   0%|          | 0.00/803 [00:00<?, ?B/s]
Downloading readme: 100%|██████████| 803/803 [00:00<00:00, 6.90MB/s]
INFO    Process status: sleeping
Downloading data files:   0%|          | 0/2 [00:00<?, ?it/s]
Downloading data:   0%|          | 0.00/1.10M [00:00<?, ?B/s]
Downloading data: 100%|██████████| 1.10M/1.10M [00:00<00:00, 6.32MB/s]
Downloading data: 100%|██████████| 1.10M/1.10M [00:00<00:00, 6.31MB/s]
Downloading data files:  50%|█████     | 1/2 [00:00<00:00,  5.66it/s]
Downloading data:   0%|          | 0.00/260k [00:00<?, ?B/s]
Downloading data: 100%|██████████| 260k/260k [00:00<00:00, 5.37MB/s]
Downloading data files: 100%|██████████| 2/2 [00:00<00:00,  8.83it/s]
Extracting data files:   0%|          | 0/2 [00:00<?, ?it/s]
Extracting data files: 100%|██████████| 2/2 [00:00<00:00, 2436.42it/s]
Generating train split:   0%|          | 0/4283 [00:00<?, ? examples/s]
Generating train split: 100%|██████████| 4283/4283 [00:00<00:00, 508555.20 examples/s]
Generating validation split:   0%|          | 0/1071 [00:00<?, ? examples/s]
Generating validation split: 100%|██████████| 1071/1071 [00:00<00:00, 456004.42 examples/s]
/app/env/lib/python3.10/site-packages/transformers/utils/hub.py:604: UserWarning: Using from_pretrained with the url of a file (here https://huggingface.co/bert-base-uncased) is deprecated and won't be possible anymore in v5 of Transformers. You should host your file on the Hub (hf.co) instead and use the repository ID. Note that this is not compatible with the caching system (your file will be downloaded at each execution) or multiple processes (each process will download the file in a different temporary file).
warnings.warn(
Downloading (…)co/bert-base-uncased:   0%|          | 0.00/229k [00:00<?, ?B/s]
Downloading (…)co/bert-base-uncased: 100%|██████████| 229k/229k [00:00<00:00, 137MB/s]
ERROR   train has failed due to an exception:
ERROR   Traceback (most recent call last):
File "/app/env/lib/python3.10/site-packages/transformers/configuration_utils.py", line 707, in _get_config_dict
config_dict = cls._dict_from_json_file(resolved_config_file)
File "/app/env/lib/python3.10/site-packages/transformers/configuration_utils.py", line 803, in _dict_from_json_file
return json.loads(text)
File "/app/env/lib/python3.10/json/init.py", line 346, in loads
return _default_decoder.decode(s)
File "/app/env/lib/python3.10/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/app/env/lib/python3.10/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/app/src/autotrain/utils.py", line 280, in wrapper
return func(*args, **kwargs)
File "/app/src/autotrain/trainers/text_classification/main.py", line 87, in train
model_config = AutoConfig.from_pretrained(config.model, num_labels=num_classes)
File "/app/env/lib/python3.10/site-packages/transformers/models/auto/configuration_auto.py", line 1048, in from_pretrained
config_dict, unused_kwargs = PretrainedConfig.get_config_dict(pretrained_model_name_or_path, **kwargs)
File "/app/env/lib/python3.10/site-packages/transformers/configuration_utils.py", line 622, in get_config_dict
config_dict, kwargs = cls._get_config_dict(pretrained_model_name_or_path, **kwargs)
File "/app/env/lib/python3.10/site-packages/transformers/configuration_utils.py", line 710, in _get_config_dict
raise EnvironmentError(
OSError: It looks like the config file at '/tmp/tmp7n4tbxce' is not a valid JSON file.

INFO    Pausing space...
INFO    Process status: zombie
INFO    Training process finished. Shutting down the server.
`

please use bert-base-uncased as model name instead of URL

OMG thats a silly mistake.

fixed.


Support formatting with error codes

For quickfix and loclist in Vim, you can set nr for an error code, and this error code will be displayed in windows, etc. However, strings are not accepted for nr, and most sensible tools use human-readable names for errors instead of numbers. Currently, most of the linters show the error code in the windows and in echo messages by placing the error codes inside of the text keys for the dictionaries like so:
{'text': 'some-error-code: Something is wrong !'}

The format of the dictionaries should be changed so the code is stored separately from the message.
{'code': 'some-error-code', 'text': 'Something is wrong!'}

Then a format function could be applied to both the eventual items which are used in loclist and quickfix, and the same format function could be applied to echo messages, like it is now, which would include the error codes by default.

%...code...% can be used for the error code now, where surrounding characters appear as written if there is an error code set. All of the linters need to be updated to set the code key for the items. The function for fixing the items needs to be updated to pass the code key on. The comparison functions for de-duplicating items need to be modified to include the codes.

For pylint I just threw away the msgid values like E0103 and went with the names like not-in-loop which are actually human-readable. If someone complains I'll add an option for it.

pycodestyle errors and warnings are now style errors and warnings, except E999, which is the code for syntax errors.

I've modified just about every linter I could easily modify to capture the error codes. I'm going to call this good now. If anyone wants to configure error codes for other linters, they can open a pull request for it.

The README should be updated to include %...code...% as a possible formatting variable

I updated the README now. Good suggestion. :+1:

I would like to have pylint show absolute msg_id instead of symbolic name(prefer E0103 over not-in-loop), please add this option. Reason: It is much more easier to look up the exact error.
I tried to do this by let g:ale_python_pylint_options = '--msg-template="{msg_id}:{line:3d},{column}: {obj}: {msg}" --disable "C0103,W0621"'. I don't why it does not work.
If ale_python_pylint_options has only limited support for pylint. I think it is better to clarify in the doc.
Thanks.

Thanks to @katsuya-horiuchi, you can now use let g:ale_python_pylint_use_msg_id = 1 or let b:ale_python_pylint_use_msg_id = 1 to use the numeric error codes instead of the symbolic ones.


Fixing missing parameter in person.update

Hi @ihoegen, most of README.md is auto-generated from in-source comments.  For your change to survive the next jsdoc2md run, you will need to update the source too.


Coverity 1224619: Uninitialized pointer field

RAT check successful! https://ci.trafficserver.apache.org/job/RAT-github/459/

clang format successful! https://ci.trafficserver.apache.org/job/clang-format-github/449/

Intel CC build successful! https://ci.trafficserver.apache.org/job/icc-github/572/

Linux build successful! https://ci.trafficserver.apache.org/job/linux-github/2038/

AU check successful! https://ci.trafficserver.apache.org/job/autest-github/446/

FreeBSD11 build successful! https://ci.trafficserver.apache.org/job/freebsd-github/2142/

clang-analyzer build successful! https://ci.trafficserver.apache.org/job/clang-analyzer-github/703/

clang format successful! https://ci.trafficserver.apache.org/job/clang-format-github/464/

RAT check successful! https://ci.trafficserver.apache.org/job/RAT-github/473/

FreeBSD11 build successful! https://ci.trafficserver.apache.org/job/freebsd-github/2156/

Linux build successful! https://ci.trafficserver.apache.org/job/linux-github/2052/

AU check failed! https://ci.trafficserver.apache.org/job/autest-github/460/

Intel CC build successful! https://ci.trafficserver.apache.org/job/icc-github/587/

clang-analyzer build successful! https://ci.trafficserver.apache.org/job/clang-analyzer-github/716/

AU test failed.
[approve ci]

clang format successful! https://ci.trafficserver.apache.org/job/clang-format-github/480/

RAT check successful! https://ci.trafficserver.apache.org/job/RAT-github/489/

FreeBSD11 build successful! https://ci.trafficserver.apache.org/job/freebsd-github/2172/

Intel CC build successful! https://ci.trafficserver.apache.org/job/icc-github/603/

AU check successful! https://ci.trafficserver.apache.org/job/autest-github/478/

Linux build successful! https://ci.trafficserver.apache.org/job/linux-github/2069/

clang-analyzer build successful! https://ci.trafficserver.apache.org/job/clang-analyzer-github/732/