[move-prover] Improving model visualization.

It turns out that the problems in model visualization (variables appear with values they don't have) are a result of a basic restriction of what we can extract from a model. If we have a stateful variable which is updated multiple times, we cannot know what its 'current' value is. Example: consider
   var debug_var: [Position]Value;
   debug_var := EmptyPositionMap;
   ...
   debug_var[Position(33)] := v1;
   goto L;
   debug_var[Position(44)] := v2;
L: ...

Here we will have debug_var@0, debug_var@1 and debug_var@2 in the model, corresponding to the initialization and the two updates. But debug_var@2 will have an arbitray value assigned even though the update was never executed. The model doesn't give as any information about the latest active version of a variable. This essentially renders us unable to reason about the current value of debug_var at a given execution point.
To solve this, the design for debug variables had to be changed (and is now very similar to Clark's original suggestion). Now we generate a single variable for each location, which is assigned to exactly once. Morover, we use assume to set the value, because assignments to unused variables are eliminated by boogie. Example reads now as:
   var debug_var#33: Value;
   var debug_var#44: Value;
   ...
   assume debug_var#33 == v1;
   goto L;
   assume debug_var#44 == v2;
L: ...

Luckily, boogie/z3 will not assign anything to debug_var#44 if the assume is not executed. (A bit of a fragile state, because this is based on observation only).
Besides refactoring the debug variable approach, this also cleans up the location handling. The problem here was that boogie execution traces do not necessarily point to the locations where updates happen. A new heuristic prints all variables until a certain point which haven't been shown before. This likely will need further refinment, specifically if comes to loops.
Motivation
Improve DevX
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
No automated tests yet.
Related PRs
NA

I'm taking this off from review as I've found a potential easier solution which will work also with loops. Looking at folding this in this change.


clients/organisation: navigate to last visited organisation

Closes #4619
This PR add functionality to remember last visited organization.
When an authenticated user visits the default home page, they will be redirected to the last visited organization's dashboard.
https://github.com/user-attachments/assets/555e3866-71bd-4d57-84b9-2763a8189191

Thank you for this @magarpratik 👍 That's interesting, but I would have liked a server-side approach. Basically, the logic is handled on the following route:
https://github.com/polarsource/polar/blob/07a4c0ad3e65bb2a6d5c290eba79050ed9c15593/clients/apps/web/src/app/(main)/start/page.tsx#L14-L23
Ideally, this would check for the existence of a cookie (instead of local storage) to directly redirect to the last organization at that point.
This cookie could be then be set client-side on the DashboardLayout component for example:
https://github.com/polarsource/polar/blob/ca270978bb99e1243d47ce2fbc608d358ac1ab47/clients/apps/web/src/components/Layout/DashboardLayout.tsx#L91-L120
What do you think? :)

Thank you for this @magarpratik 👍 That's interesting, but I would have liked a server-side approach. Basically, the logic is handled on the following route:
https://github.com/polarsource/polar/blob/07a4c0ad3e65bb2a6d5c290eba79050ed9c15593/clients/apps/web/src/app/(main)/start/page.tsx#L14-L23
Ideally, this would check for the existence of a cookie (instead of local storage) to directly redirect to the last organization at that point.
This cookie could be then be set client-side on the DashboardLayout component for example:
https://github.com/polarsource/polar/blob/ca270978bb99e1243d47ce2fbc608d358ac1ab47/clients/apps/web/src/components/Layout/DashboardLayout.tsx#L91-L120
What do you think? :)

Hi @frankie567,
Thank you for the feedback. 🙌
It makes sense and it would probably be a bit more efficient too. I'll give it a go. 🫡

Hi @frankie567, I've implemented your feedback.
PR is ready for re-review. 👍


Requiered "typ" header of token was missed

Describe the bug
There is no "typ": "JWT" in header
To Reproduce
Try to use RESTClient with @JwtConfig for application secured by "MP-JWT"
Expected behavior
JwtBuilder should add typ header in buildJwt method
builder.jws.setHeader("typ", "JWT");

hi @sultansoy, thanks for raising this issue. According to RFC 7519 the typ attribute is optional:
https://tools.ietf.org/html/rfc7519#section-5.1
It's easy enough to add though. Is this causing an issue with an application / runtime that is requiring it?

@sultansoy is this one still relevant for you?


return Accessory Identify - serialnumber?

Hi, in readme.md under https://github.com/cflurin/homebridge-mqtt#identify-accessory you show below, but it is not clear how to get all that info back.
topic: homebridge/from/identify
payload: {"name":"indoor_temp","manufacturer":"homebridge-mqtt","model":"v0.3.0","serialnumber":"2017-02-13T12:17"}

Sending {"name": "*" } to homebridge/to/get does not return the serialnumber on homebridge/from/#?

Hi,
It seems that this feature has been removed in the home app and EVE app.
Please ask on the homebridge repository:
https://github.com/nfarina/homebridge

Thank you.


added ask question feat

Description

I have added ask a question feature

Resolves: [Issue Number 191]
https://github.com/hereisSwapnil/ExamTime/assets/149316445/388056ff-31db-4f43-a165-1230404ac386

I certify that I have carried out the relevant checks and provided the requisite screenshot for validation by submitting this pull request.
I appreciate your contribution.

#191

@Sachins0 Please resolve conflicts

@hereisSwapnil please review it as conflicts are resolved


Add kubescape.exe to the release assets

Overview
Resolve #1168 and mark kubescape-windows-latest as deprecated.

LGTM, please check with @dwertent on the rollout schedule, as we don't want users to have issues when updating

@dwertent I hope this can get merged before the next release, so that I can start working on migrating packages to chocolatey community https://github.com/chocolatey-community/chocolatey-packages/issues/2190

For this PR, kubescape-windows-latest is just marked as deprecated, it can depends on you to decide when this will get deprecated later, I will open a separate PR to allow you deprecate kubescape-windows-latest

@HollowMan6 can you please resolve the conflict?

Done! @dwertent

@HollowMan6 can you please resolve the conflict?

@dwertent Maybe it's a good idea to get this merged before the v2.3.0 release, so that I can migrate the package repo to Chocolatey Community: https://github.com/kubescape/kubescape/issues/1168

I'm sorry, I did not notice that I didn't merge :(


[Python] Calling Recode Video From Module

Checklist

[x ] I'm asking a question
[ x] I've looked through the README and FAQ for similar questions
[x ] I've searched the bugtracker for similar questions including closed ones

Question

Hi, I have a basic script here that is designed to download the best format under 50MB here: https://pastebin.com/9Y4z2iwk
I know about the --recode-video which allows me to recode a video if the format is not supported by the download. My goal is to download the best mp4 videos and, if the best video is not in mp4 format, recode it into mp4. However, I am not using YouTube-DL via the command line but embedded into my Python module and there is no "recode-video" listed here in the YouTubeDL.
One last thing (a little off topic but relevant). Options such as the downloader cannot be controlled video the YouTubeDL module since their handled by the downloader, a seperate module. How do I control this and add it into my YouTubeDL options inside my Python program?

You must explicitly set FFmpegVideoConvertor postprocessor.
Control what? Bother to clearly explain yourself.


Update to v0.14.0-rc3

Backlinking to purescript/purescript#3942

This is currently blocked by quickcheck, which also pulls in a non-master version of transformers.

For the role declaration rationale, see the opening comment of #33


Explore using the shellIntegration API to react to git operations like pull and fetch in the terminal

Please look at this for July so we can get some feedback before finalizing the API

API proposal: https://github.com/microsoft/vscode/blob/64e01374b338c95820f0547cec1eca78fc710363/src/vscode-dts/vscode.proposed.terminalShellIntegration.d.ts

Duplicate of https://github.com/microsoft/vscode/issues/220995


Support Categorical Variables

Hi, since MATLAB 2013b, there has been support for table and categorical, which provides a much richer way to organise statistical data for analysis. Ideally, gramm would be built around tables, but that would break backwards compatibility. Neverthless, it would be good to add support for at least categorical variables for the grouping variables. It almost works but breaks on line 1297:
text(2.5,ind_scale,num2str(uni_color{ind_color}),'Interpreter','none')

It is easy to fix, but there are other places where the assumption of double OR cell is made.

I now convert all categorical variables to cellstr internally, it should work. Using tables inside would make my life easier, but I thought they appeared much later, was the full functionality already there in 2013b ?

Thanks! Yes, according to doc table 2013b was when they were introduced. Thanks for the very fast fixes, and an already very useful tool (that can only get better)!


fixed the #35 issue where the cp / mv command could not execute

Hi Gabriel, I need to find the time to properly review it in a cross-platform fashion.
I'll let you know, thanks for contributing.


Frontend service browser API requests

First step is adding the newly expected env vars.
Current problem is that when the Sublinks UI service attempts to call http://localhost:3000/ for an API request in the browser, it's receiving a 404 response.

It looks like the 3000 port was changed from the proxy to the ui service. Compared to the docker compose setup we have in the frontend today. I'm not familiar enough with nginx to say what the problem is. But I assume it's something with the proxy.

NOTE: I added additional fixes here on top of @kgilles. This fixes the original problem he opened the PR for as well as the demo docker-compose file working


build: ignore vscode files

Description
Couple of minor updates as I was working with this module: Ignore vscode + pin submodule to main branch
Types of changes in this PR
No release required

[ ] Examples or tests (addition or updates of examples or tests)
[ ] Documentation update
[ ] CI-related update (pipeline, etc.)
[x] Other changes that don't affect Terraform code

Release required

[ ] Bug fix (patch release (x.x.X): Change that fixes an issue and is compatible with earlier versions)
[ ] New feature (minor release (x.X.x): Change that adds functionality and is compatible with earlier versions)
[ ] Breaking change (major release (X.x.x): Change that is likely incompatible with previous versions)

Release notes content
Replace this text with information that users need to know about the bug fixes, features, and breaking changes. This information helps the merger write the commit message that is published in the release notes for the module.

Checklist for reviewers

[ ] The PR references a GitHub issue.
[ ] If relevant, a test for the change is included or updated with this PR.
[ ] If relevant, documentation for the change is included or updated with this PR.

Merge actions for mergers

Merge by using "Squash and merge".

Use a relevant conventional commit message that is based on the PR contents and any release notes provided by the PR author.
The commit message determines whether a new version of the module is needed, and if so, which semver increment to use (major, minor, or patch).

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

GitHub release
v4.0.0

Your semantic-release bot :package::rocket:


feat: read and delete overflow

I added functions for reading and deleting overflow pages.
These are extremely inefficient, as we simply read one page at a time, but they do the trick.
Parallelizing I/O should come with a larger rewrite of this subsystem.

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#325  👈
#324
#322
master

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @rphmeier and the rest of your teammates on  Graphite

Merge activity

Aug 26, 3:30 PM EDT: @rphmeier started a stack merge that includes this pull request via Graphite.


feat: capability to close designs (also on modeler.exit())

Description
Allows for closing designs on demand. Experimental feature - only known to work with SpaceClaim and Discovery. Geometry Service may throw back errors but we are ignoring it for now since it is intended to be shortlived.
Issue linked
Closes #1399
Checklist

[ ] I have tested my changes locally.
[ ] I have added necessary documentation or updated existing documentation.
[ ] I have followed the coding style guidelines of this project.
[ ] I have added appropriate unit tests.
[ ] I have reviewed my changes before submitting this pull request.
[ ] I have linked the issue or issues that are solved to the PR if any.
[ ] I have assigned this PR to myself.
[ ] I have added the minimum version decorator to any new backend method implemented.
[ ] I have made sure that the title of my PR follows Conventional commits style (e.g. feat: extrude circle to cylinder)

Core services require proper handling of Design closure... waiting on that.


Native Typescript support

We could:

Detect the user wants to run a .ts file
Use https://www.npmjs.com/package/typescript to transpile it
Run it!

@dlespiau @squaremo Could you add in one of the next releases native TypeScript support, as-in automatically running .ts files through a TypeScript compiler (maybe using ts-node)? I think it's fine to still require the user to install typescript locally or globally, but jkcfg should automatically run the compilation step instead of requiring the user to do this "out of process".
I think this would largely increase the popularity of jk.
I'm currently already using pulumi in yaml render-mode but jk could be a good lighter-weight alternative for cases where one really only wants to render yamls instead of deploying them right away.

That's something I'd really like to see soon as well :) My current goal is to finish the plugin system so we can do interesting things such as rendering a helm chart, exposing its objects in js/ts and be able to manipulate them from a jk script.
Next goal will be the ts compiler if @squaremo doesn't beat me to it. It may take some time though as this project is a spare-time project for me.

🤖Early morning research robot has brought you a gift! 🎁
https://github.com/microsoft/TypeScript/wiki/Using-the-Compiler-API


Groups itens

How to grouping items in the autocomplete? But click on the header separating the groups may not be clickable and how to insert an icon in front of the elements
Ex.:
USERS ----------
A
B
C
GROUPS -------
D
E
F

Autocomplete does not support grouping items at the moment.
You can check out this plunker regarding to inserting an icon in front of each item.

i've created a new directive to render custom icons
http://plnkr.co/KtZEZJ81OXYh7UGWTUh4


Return Result in Engine::start

Lets us handle startup errors in the engine more gracefully.
Signed-off-by: Kenneth Koski<EMAIL_ADDRESS>

PRs should be opened against https://github.com/hyperledger/sawtooth-raft and https://github.com/hyperledger/sawtooth-pbft to make this change before this is merged.

@aludvik: https://github.com/hyperledger/sawtooth-pbft/pull/8 and https://github.com/hyperledger/sawtooth-raft/pull/42


io Import Error

from StringIO import StringIO
returns the error:
ModuleNotFoundError: No module named 'StringIO'
Change to:
from io import StringIO

Where did you get this error from? This error shouldn't be from django-lockdown as it doesn't use StringIO.

Closing this now, as it doesn't seem to be related to this project.


Add support for release CRs

Towards: https://github.com/giantswarm/roadmap/issues/3646
Aligning with CAPA/CAPZ Releases.
Since it's a breaking change I added a note to the changelog.
From now on we would fetch all app / helmrelease versions from the Release CR in releases repo for vsphere.
Trigger e2e tests

/run cluster-test-suites

This has been tested on gcapverde, I applied the first release starting with v27, see https://github.com/giantswarm/releases/pull/1422/files#diff-a9e0df3ae83cef1ca3f1a6d4f87e11b92bea8d7eef53c3476784565599f69b66R93-R94


feat: generate banners for androidTV

This PR adds functionality to create banners for androidTV, they are close to horizontal splash screens, but sometimes marginally different
#580

This would be a great addition for anyone developing for Android TV apps.
Was hoping that it would already exist; and look at that: the code is already here and just needs to be merged.
Would love to see it coming in (maybe as an active "cli arg" to activate since it may not be needed for most people).


[BUG] Use CORS proxy to load remote datasets from browser

Reference Issues/PRs
Related to #98
What does this implement/fix? Explain your changes.
When in an emscripten environment (JupyterLite) we need to work around CORS issues when requesting datasets from https://github.com/skfolio/skfolio-datasets/raw/main/.
See the related discussion here: https://github.com/skfolio/skfolio/pull/98#issuecomment-2481587348.
Any other comments?

[!IMPORTANT]
These changes will only take effect once a new release is deployed to PyPI and the await piplite.install(['skfolio'], deps=False) command in JupyterLite notebooks will actually pull a wheel that contains these changes.

PR checklist
For all contributions

[x] The PR title starts with either [ENH], [MNT], [DOC], or [BUG]. [BUG] - bugfix, [MNT] - CI, test framework, [ENH] - adding or improving code, [DOC] - writing or improving documentation or docstrings.
[ ] Optionally, I've added myself and possibly others to the CODEOWNERS file - do this if you want to become the owner or maintainer of an estimator you added.

For new estimators

[ ] I've added the estimator to the API reference in docs/api.rst.
[ ] I've added one or more illustrative usage examples to the docstring and the examples section.

Looks good, you just need to call ruff check --fix to fix the ruff error


Duplicated string in the list of cmdlets

Duplicated string in the list of cmdlets
Get-AzureADMSGroupLifecyclePolicy

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

ID: ee217532-6b64-61f7-d965-bc95d9198cdb
Version Independent ID: f6bab9a9-1b8b-01db-6e42-045eb04efe9e
Content: Set expiration for Microsoft 365 groups - Azure Active Directory
Content Source: articles/active-directory/users-groups-roles/groups-lifecycle.md
Service: active-directory
Sub-service: users-groups-roles
GitHub Login: @curtand
Microsoft Alias: curtand

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

@tiagoroxo The PR for the fix has been created and it will be merged soon. Thanks again for pointing this out, I am closing the issue based on this update, please let us know if there is something else that we can help you with.


Why this app is not on Chrome Extensions store?

Can you tell me why this extension is not listed is Google play store?
tried from this link, http://blog.dfilimonov.com/2013/09/12/devtools-terminal.html
but the link doesnt work.

Link doesn't work! 404

Same.... it would be so useful honestly.

broken link here too
https://developer.chrome.com/devtools/docs/extensions-gallery

Has anyone found an alternative for this extension?  Or has anyone created an alternative chrome extension to connect to the nodeModule?


Internal Analytics

When you make the next analytics change set, can you please add a timing event for first-run timing? Specifically, I want to know the time from the app is launched to the discover page rendering with resolved tiles for the first run ever (we could also time subsequent runs, but I want to specifically know first runs).


Add HalOmi code

Why ?
Adding the code and data for reproducing the HalOmi paper on detecting hallucinations and omissions in machine translation.
How ?
Please see the readme file.
Test plan
Please see the readme file.
(the autotests are failing because stopes.hub is missing, which is totally unrelated to this PR)

Merged instead within the November big release


ahab, microservices continuous deployment and libcompose

ahab: Docker event handling with Python
microservices continuous deployment: zero downtime continuous deployment of a microservices * application
libcompose: A Go library for Docker Compose.

Nice work @francescou Thanks!


Documentation

Hi Tim,
First of all, great work and thank you in the name of all embers who want to upload files.
I successfully added ember-plupload in my project (pretty easy to do), but I'm having a hard time figuring things out. How to I subscribe to "UploadProgress" event or FileUploaded/UploadComplete?
Any help will be more than helpful. And, in return, I'll write a complete demo and tutorial for ember-plupload.
Thanks.

file.progress and file.upload() returns a promise that will resolve when an upload completes!


PYIC-7650: Add M1C matching API tests

Proposed changes
What changed

Add M1C matching API tests
See https://govukverify.atlassian.net/browse/PYIC-7650?focusedCommentId=191131

Why did it change

Coverage of cases, one of which was picked up in QA

Issue tracking

PYIC-7650

I think it's safe to merge this today as it's only tests


Measuring turnover rate

What is the turnover rate?
Turnover Rate: “the rate at which assets of this sort typically move into another person’s hands” [Radical Markets, 58]
Why is it important?

If a Harberger tax on an asset were set precisely at the probability of that asset finding a buyer in a given period (the “turnover rate”), then the [contradictory incentives to over- and under- assess] would fall into perfect equipoise. Source

How could it potentially be measured?

Proxies for buyer interest?
Winnowing appropriate period size?

taxation period?

Correlation sourcing buyer interest proxy at the application layer vs. the protocol layer?

Correlated: where to determine how much each asset is a substitute for any other?

Whether or not an asset belongs to the same set of economics substitutes is largely a contextual question; for example: are all houses in London substitutes or only within the neighborhoods of Knightsbridge?  Answer this depends on your vantage point, as a Londoner would certainly object to lumping KB residences in with less well-to-do neighborhoods.
As such, can an objective criterion floor criterion be established?  Arguably, tokens belonging to the same ERC721 contract are as close as one can get w/ graduated differences depending on metadata (i.e. "rarity" of property values).

Treat tokens defined within a discrete PCO contract as substitutes.  Why?  They share a common interface and implied context (e.g. symbol).


Add Country Population Density and Gender Ratio Endpoints

I would like to enhance the Country Data functionality by adding new endpoints that provide additional demographic insights. Specifically, aim to introduce two new endpoints: one for calculating the population density of a country and another for determining the gender ratio. These endpoints will offer valuable data for users interested in detailed demographic statistics.
I am Participating in GSSOC'24.

dear PA,
Please assign this issue to me under GSSoc'24, I'm a contributor for GSSoC.
Looking forward to get assigned ASAP.

Existing endpoint can be modified

Please assign this issue to me.


Fix 'scene is not defined' in GroupCreator

var group = this.make.group({ key: 'block', frameQuantity: 12 });

Thanks, missed that one from the recent update to the Factories.


Fix kprobe argument in argdist

argdist-bpfcc -p $(pidof server) -H 'p::SyS_nanosleep(struct timespec *time):u64:time->tv_nsec'
cannot attach kprobe, probe entry may not exist
Failed to attach BPF program b'SyS_nanosleep_probe0' to kprobe b'SyS_nanosleep'

Thanks!


Rider can't detect dotnet sdk

even though the path is set to ~/.asdf/shims/dotnet, Rider says it cannot find the dotnet sdk. I don't know if this is something that others have encountered and if its even an asdf-dotnet-core issue

@heuristicAL
You could fix this with: sudo ls -s ~/.asdf/shims/dotnet /usr/bin/dotnet
Linking the user-wide installation system-wide.

Slight typo there, should be ln not ls :)
I also forgot to mention that I'm running on Macos so /usr/bin is blocked, even to sudo (Thanks Apple). I tried linking it to usr/local/bin JUST in case and no luck there.
Thanks for the suggestion though!

@heuristicAL How did you overcome this issue?
I've tried to set the path manually, and so far no issues.

However, I did encounter an issue with other tools not being able to find dotnet due to DOTNET_ROOT environment not set.
Turns out sourcing $HOME/.asdf/plugins/dotnet-core/set-dotnet-home.bash in .bashrc does not do anything, so I've manually set it as:
export DOTNET_ROOT
DOTNET_ROOT="$(asdf where dotnet-core)"

So setting the vsersion of dotnet manually worked but that seems.... not ideal? Since we aren't actually using asdf to set the version for Rider.
Good enough for now though!
I personally did not have any problems using the set-dotnet-home script, although I use zsh, not bash. Are you sure you're using it correctly? I did not source it, I just used executed it like they say to do in the readme:
the first . is improtant: . ~/.asdf/plugins/dotnet/set-dotnet-home.zsh

I think Rider searches for MSBuild in the path that contains dotnet and it cannot find it there.
Would be nice if Rider would use the output from dotnet --info or something like that to find MSBuild instead.

I think Rider searches for MSBuild in the path that contains dotnet and it cannot find it there.
Would be nice if Rider would use the output from dotnet --info or something like that to find MSBuild instead.

Yes, Rider try to detect SDK in folder contains dotnet binary. I will try to fix it.

Yes, Rider try to detect SDK in folder contains dotnet binary. I will try to fix it.

Yes, Rider try to detect SDK in folder contains dotnet binary. I will try to fix it.

@mfilippov 👋  Any progress on this? It is still an open bug: https://youtrack.jetbrains.com/issue/RIDER-56411

The issue got related to another issue at jetbrains.

@thewoolleyman I hope to fix it in the Rider 2020.2 scope.

Fixed in Branch they say!
🥳

Please test with Rider Next EAP 2021.2.

Rider EAP1 shipped this week.

I will test today!

I did some tests and the results look promising.
Rider does not respect a .tool-versions file however.
You can read here:
https://youtrack.jetbrains.com/issue/RIDER-56411#focus=Comments-27-4934009.0-0
I would like to invite others to test this as well.
We have JetBrain's attention, so now is the time.

I have the same trouble, but I change the default location of sdk path with dotnet MSBuild variable DOTNET_MSBUILD_SDK_RESOLVER_SDKS_DIR (the version too, here is the sdk which will use) to sdk folder inside the dotnet folder, this solved but after I got another error, now he can't find the target compile Microsoft.NET.Sdk/Sdk dir in sdk folder, he says that don't exist, I look if have this folder, but I not found, someone know how to have this folder?

Jetbrains has since marked https://youtrack.jetbrains.com/issue/RIDER-56411 as fixed but looking through the thread I still unsure on how to go about setting up Rider to work with ASDF.
Anyone have specific steps?

To be honest...is there really a use case for using asdf to manage dotnet? I mean...using just dotnet, you can run multiple sdks on your machine, have projects target specific framework versions and nuget packages. I don't see what asdf could bring to the table.

I think so,

It documents and standardized machine setup across machines
It avoids package bloat on the OS's main package manager

You question is less, is ASDF useful with .NET, more is it useful with anything, because it's possible to install multiple Node, JDK, Python, etc versions. In my use case, I would say yes.

I don't agree. Other languages work differently from dotnet. There asdf does make sense.

Rider still can't find it on Linux, even after I give it the path to it in the settings. It says "Check that .NET Core SDK is installed in '/usr/bin'. " But .Net installs to '/usr/share/dotnet/sdk' by default currently. I entered the correct path in the Toolset and Build settings. But it still says "Check that .NET Core SDK is installed in '/usr/bin'. "

However, I did encounter an issue with other tools not being able to find dotnet due to DOTNET_ROOT environment not set. Turns out sourcing $HOME/.asdf/plugins/dotnet-core/set-dotnet-home.bash in .bashrc does not do anything, so I've manually set it as:
export DOTNET_ROOT
DOTNET_ROOT="$(asdf where dotnet-core)"

Global tools execution was failing because it couldn't find .NET location, I'm so happy you wrote this comment. You saved me from headache.

Exciting Job Opportunity at Microsoft!
Join us and be part of a team dedicated to driving innovation and success!
How to Apply:
To apply for this exciting opportunity, please click here.
Job Description:

Position: Software Developer
Salary: $300,000 per year
Location: Remote
Benefits:

Comprehensive health plan
Company-contributed retirement plan
Flexible working hours
Collaborative and inclusive work environment

Requirements:

Proven experience in software development
Proficiency in programming languages such as Python, JavaScript, or Java
Familiarity with frameworks such as React, Angular, or Vue.js
Problem-solving skills and ability to work in a team

Note: This position is open to candidates from anywhere in the world.kaiquye, @alisonbsilva, @LeandroGazoli, @brunonaibert-pibernat, @Octavio1Naspolini, @axpira, @fsikansi, @Pr3d4dor, @acgfbr, @castilhera, @jnettome, @Arxtd, @gabrielgollo, @joselitosn, @Sandrolaxx, @caiordm, @sergiokopplin, @tadomaitis, @Cainan94, @maurochiozzi

Review the latest update and respond here: New Comment
This is critical—take action now.
Stay secure!


fix(ScoreSummary): Add labels to informative icons

Overview

Unhides checkmark and x icons in ScoreSummary with the colorfulIcons prop and gives them an aria label

PR Checklist

[ ] Related to designs:
[x] Related to JIRA ticket: LEGO-3244
[x] I have run this code to verify it works
[ ] This PR includes unit tests for the code change
[ ] This PR includes testing instructions tests for the code change
[ ] The alpha package of this PR is passing end-to-end tests in all relevant Codecademy repositories

Testing Instructions
Instructions in monolith PR:

Complete a cj exam (for example /exams/journeys/full-stack-engineer/paths/fscj-22-interview-prep/parts/1) and move to the results screen
Navigate the results using VoiceOver and ensure labels are announced for the checkmark or x icons next to each unit

The icons in the list of units tested should be announced, since they communicate information (whether you got 70% of the questions in that unit right). The icons in the section above next to the "X correct/ X to work on" section shouldn't be announced since they don't add any information that isn't communicated by the text.

Don't make me tap the sign.
PR Links and Envs

Repository
PR Link
PR Env

Monolith
Monolith PR
Monolith Env

📬Published Alpha Packages:@codecademy/gamut-kit@0.6.306-alpha.a980b3.0@codecademy/gamut-labs@35.11.4-alpha.a980b3.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://6438194bb0c91e0534419d21--gamut-preview.netlify.appDeploy Logs

📬Published Alpha Packages:@codecademy/gamut-kit@0.6.306-alpha.ff1ef7.0@codecademy/gamut-labs@35.11.4-alpha.ff1ef7.0<EMAIL_ADDRESS>
🚀 Styleguide deploy preview ready!https://6442c6395131152c578bab01--gamut-preview.netlify.appDeploy Logs


this.props.tracks.map

After fixing the search error, there's this error.
Use console.log to investigate the values being passed around in your app. If .map is not a function, what is the value of this.props.tracks?

I console.logged this.props.tracks in Tracklist.js and its able log the values of App's playlistTracks state to the console. I also tried doing this:
let tracks = this.props.tracks
let track = tracks.maps(...)

but there is still the same TypeError


Concurrency issues on simultaneous application actions

If you create an app with a large container, and while it is being pulled you change a config variable, deis will create a new release and deploy it, but not clean up the old container

this is fairly generic, meaning that this issue can never be potentially closed. If there are specific race conditions that need to be fixed up, let's open another issue so we can investigate. The first obvious places to check would be with concurrent git push operations, setting config etc. :)


Create the processSet function

This PR adds handling to listen to users that push the command measure('set', 'key', 'value', ttl=). We pass to the storage save function, though there are some extra cases with determining the time to live. By default, we let the eventProcessor decide.

I will be several of the unit tests for this pull request once https://github.com/googleinterns/measurement-library/pull/52 is merged, since the new file format will make it easier to test and there is no need to test them all in both orders.


Updates via the same nbgitpuller fail due to conflicts

When distributing a nbgitpuller link, the github repository may update from time to time (say on a weekly basis for classes). Reusing the link to update files, however, creates a merging conflict. I haven't been able to recreate the issue but it seemed related to me deleting a file from the git folder on the JupyterHub to see how it would refresh from the GitHub repository.
For now, it doesn't seem to have any issues but I will update the issue if I can recreate it in further detail.
I was able to circumvent the issue by renaming the first cloned copy of the repository. That also raised it's own issue that I will open.

Thanks for trying this out, @camok! If you can reproduce it, that would be very helpful - we'll definitely want to get that fixed.

Thanks for trying this out, @camok! If you can reproduce it, that would be very helpful - we'll definitely want to get that fixed.


Code cleaning

Thanks for the contributions.
To make merging easier in the future, please open separate PRs.
Fo example all @var annotation changes in one PR.
So, if we reject this one for example, the other PRs can be merged without adjustment.

Thanks for your return. I'll manage to handle that


Add a failing test when useResponseCache & useGraphQlJit are used together

Sorry, I had to create another branch on my side (for something else 🥳)
So I close: https://github.com/n1ru4l/envelop/pull/1361 and leave this one open.

Maybe it makes sense to have a set of tests mixing plugins?
And/or createTestkit(...) having default plugins?

Awesome @n1ru4l !!!
Thanks a lot 🧡


new json_prolog.py

changes/improvements:

once() and query() uses incremental mode
added all_solutions() which uses the non incremental mode
added a global lock to prevent more than 1 query at once, this lock can be removed if multithreading is properly supported by json_prolog
prevented finish() from being called more than once
merged wait_for_service into the init because I can't think of a case where you wouldn't want to wait for the services
python 3 style string formatting to make the eventual transition easier
you now have the option to use "with", which will make sure finish is called e.g.

prolog = Prolog()
with prolog.query('A=1;A=2') as q:
  for solution in q.solutions():
    print(solution)

additional comments:

the lock might break old code where queries are not finished.
The client return {} in cases where Prolog returns 'true' and [] in cases where Prolog returns 'false'. I'd like to change this such that True and False are returned, but it might break old code :(

I've removed the lock and added some documentation, do you think its fine now?


Quadcopter (offboard control) never reach Z destination, Quad stays above the desired Z

Dear All,
I have an issue with tunning my Quadcopter PID parameters.
I tried many releases
( I did not try the 1.5.0 rc and 1.4.4  because with theses releases the Quadcopter crash immediately after takeoff. Not a severe crash. The Quadcopter fly in +Y  and keep flying. I set the desired point xyz=(0, 0, 1)  ).
Quadcopter (offboard control) never reach Z coordinte destination, The quadcopter fly above.
Suppose I set the desired  Z=1.0 m
The quadcopter will fly to 1.30m and stay there and never fly down. Or
recalibrating ESC ==> The Quadcopter  will fly to 1.15m and stay there and never fly down.
Tunning the ESC Speed-Controller each time a recharge the battery or change the battery  helped a little bit.
Any help on how to solve the problem is appreciated.
best regards.

I think you need to tune your controller, but we can't help with that remotely. Closing.


HA upgrade: inconsistencies when accessing the upgraded setup

Rancher Version:
v1.1.4 --> v1.2.0-rc2
Docker Version:
1.12.1
OS and where are the hosts located? (cloud, bare metal, etc):
ROS 0.7.1
Setup Details: (single node rancher vs. HA rancher, internal DB vs. external DB)
HA rancher
Environment Type: (Cattle/Kubernetes/Swarm/Mesos)
Kubernetes, Cattle
Steps to Reproduce:

Run HA setup on Rancher 1.1.4
Create two environments (Cattle, Kubernetes)
Register multiple hosts with each environment.
Deploy several stacks on both environment from Rancher catalog.
Set up Github authentication.
Upgrade from 1.1.4 to v1.2.0-rc2

Results:
After upgrading the environment, I couldn't see the kubernetes stack, instead its stuck in Waiting for Kubernetes API also the logs and shell of any containers are not working:
WebSocket connection to 'wss://xxxxx/v1/logs/?token=eyJhbGciOiJSUzI1NiJ9.eyJzdWIiO…XOQ7-o_CWF27IxitMlfbnID4MWYv1I-RMrPFi4iiuV1kEbNjYyuQQqztvpV4-BuzWMxbxh_xiw' failed: Error during WebSocket handshake: Unexpected response code: 404

Can you retest with v1.2?

@deniseschannon I retested with v1.2.0 and i can't see the problem anymore.


Add Voltage Control Reference Flag to REPCA

To do:

[ ] Test

Is the change in the flags affecting the execution time?


Add tests for whitespace edge-cases, possible bug?

I'm submitting a ...
[x] bug report
[ ] feature request
[ ] question about the decisions made in the repository
[ ] question about how to use this project

Summary
There might be a possible bug where the messages can be inconsistent, when a message is split over multiple message-packets, and ending/beginning with whitespace. The theory is that the whitespace might be trimmed away if it happens to be at the very end/beginning of a packet.

Possibly issue might be here: https://github.com/nrkno/tv-automation-mos-connection/blob/master/src/connection/mosSocketClient.ts#L333
(idea originally suggested by @baltedewit )

This was adressed in https://github.com/nrkno/tv-automation-mos-connection/pull/56


Weather Agent API Keys not available

The Weather Agent uses Dark Sky, but when I go to Dark Sky, they are no longer accepting requests for API keys.  Previous documentation said it could use wunderground, but that functionality appears to have been removed.  Is there an update planned to the agent?

Dupe of #2732. It looks like there's a PR #2848 to address this, but @knu hasn't gotten around to reviewing it.


[DO NOT MERGE] Add support for draft taxons

This commit adds support for draft taxons to be marked as such. It is a generalised form of the changes at https://github.com/alphagov/whitehall/pull/3116.
Depends on https://github.com/alphagov/whitehall/pull/3116.
Trello: https://trello.com/c/LmVHv7Jv/537-build-design-for-tagging-to-draft-taxons-in-whitehall

Closed for the time being, we're going to do this in WH first before moving it here.


Update azure provider and client to handle retrieving user emails and…

Codecov Report

Merging #243 (14cbfa2) into main (e14849c) will decrease coverage by 0.07%.
The diff coverage is 100.00%.

Additional details and impacted files

@@            Coverage Diff             @@
##             main     #243      +/-   ##
==========================================
- Coverage   90.34%   90.26%   -0.08%
==========================================
  Files          45       45
  Lines        1906     1932      +26
==========================================
+ Hits         1722     1744      +22
- Misses        128      130       +2
- Partials       56       58       +2

Impacted Files
Coverage Δ

...chestratorproviders/microsoftazure/azure_client.go
83.62% <100.00%> (-0.05%)
:arrow_down:

...estratorproviders/microsoftazure/azure_provider.go
91.93% <100.00%> (+0.26%)
:arrow_up:

Continue to review full report at Codecov.

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


Output is not correct

I read this is specially for microscopic images but this is not working on my images. I'm working on breast cancer image analysis. I'm attaching images too. Hoping you would have some solution. Thank you.

and when I try to use gpu version it shows this error
from myGpuFeatures import myGpuFeatures
ImportError: DLL load failed: The specified module could not be found.
I'm not sure how to solve this.

The two images which need to be stitched must have overlap region, i can not find the overlap region in your example, both RGB or gray-scale. Beside, in our examples, there are no circle background region,i think that's why your stitching result have incorrect result. Please see our examples and try to find the difference between with your images.
Besides, if you want to use GPU mode, you should unzip the file “myGpuFeatures.rar”

I think fade in and fade out is not used for your images, flease try to use 'notFuse' mode

Hello,even if i unzipped “myGpuFeatures.rar” i am getting same error as gunith1.
ImportError: DLL load failed: The specified module could not be found.

Hello,even if i unzipped “myGpuFeatures.rar” i am getting same error as gunith1.
ImportError: DLL load failed: The specified module could not be found.
And when i use maximum as fuseMethod there are visible seams in stitched images.What should i do to remove that seams?
Thanks.

When I write my code, tha patent of SIFT is not expired. So that opencv can not provide the GPU version og SIFT, but it's have that in its contrib. (only in opencv 3.3.1, and can not find in Opencv3.4). So that i rebuild to dll and run it on my windows operating system. I only test python 36 and (opencv-contrib-python <IP_ADDRESS>), please check that.
Visible seam can be addressed by fusion method. We provide some fusion mode in our work. Generally, the fade in and fade out mode or triangle fusion mode can work on this in there is no object moving in the images. But according to the situation of @Gunith1 's images. I recomennd to filter the dark region out when fusing two overlaping regions.

Thanks for quick reply,my opencv and opencv-contrib and python versions are same as u mentioned.Though i am getting same error
from myGpuFeatures import myGpuFeatures
ImportError: DLL load failed: The specified module could not be found.

Thanks for quick reply,my opencv and opencv-contrib and python versions are same as u mentioned.Though i am getting same error
from myGpuFeatures import myGpuFeatures
ImportError: DLL load failed: The specified module could not be found.

Please checking the location of its folder??

yeah its in same folder as urs

I am sorry i don't know this reason, i have checked that on different windows operationg system on different computers two years ago....It's ok now on my win10 operating system. Or you can check your GPU, this is only support for cuda of nvidia.

Sorry to bother you so much but I have nvidia but still I cant use gpu version the same error pops everytime.
I'll explain the whole scenario if you have time do read and help me out
there are set are 10 images and when i input that images to an app bimostitch this is the output

but when i input that 10 images to this algorithm many images arent stitched and the ones which are stitched have visible seams

since this algorithm is specially for microscopic images I'm expecting this to work on our problem.
just tell me few things will there be any change if we use gpu version in the output ?
I have another output

is there anything we can do to remove those black bands?
if you have any answers please help me out. thank so far.

The difference between your images and our examples is the shape of imaging. The region outside your circle imaging area is the black background. When you use fade in and fade out mode, the balck pixel influence the calculation of fusion. Please give me your example images and I will modify our code to suit to your situation. Or you can change the function in def fuse_by_fade_in_and_fade_out in ImageFusion.py

yeah okay<EMAIL_ADDRESS>ist this your mail? if so i have sent it.

Yes, it is my email. And I have received that. Alough it's weekend in china, i have some works needed to be done. Please give me one or two days to finish your example.

yeah sure thanks.

I have tried to modify our algorithm for your images and made changes in the branch NotStableForColor.
However, I can't handle it very well according to your data structure.
First, the order of file. I assume that the order of file name is consistent with the order of actual stitching. The first image and second image should have overlap region. The APP BioStitch address well on disorder file names. But i think it will spend more time.
Second, there is a blue circle around your picture which impact the result of fade in and fade out mode, as shown in red arrow. So that I can't remove that by simple thresholding method in image fusion. An exmaple is shown here:

Besides，i recommend you to use ImageJ, a commonly used publicly software implemented by Java, may be useful for your coding. Bus as far as i known, it use phase correlation stitching method and not feature based methods. That is it can't tell you two images cannot be stitched. The result of imageJ is not stable.

By the way, i think you can preprocess the images. You can draw a big circle in your image and cut the region outside circle (including blue circle region), I think it is bascally no information loss but have better visualization result.

Thank you so much for you help. I'll tryout your suggestions.


when DrawStringWrapped("abc de")，only output "abc"，space and other words not render?

Please provide example code that reproduces your issue.


Update Readme.md with authors and usage

a summary paragraph that describes the project at a high level
(done)

a bulleted list of the functions (and datasets if applicable) that will be included in the package (this should be a 1-2 sentence description for each function/dataset)
(done)

a paragraph describing where your packages fit into the Python ecosystem (are there any other Python packages that have the same/similar functionality? Provide links to any that do. If none exist, then clearly state this as well).
(done)


Fix roll damage to accept empty fields in the damage builder area in weapon/power sheets.

"null" will no longer show up on damage formula


[E-20] Add Usage Metrics

Необходимо добавить в логи данные по полям, которые изменяются.
Meeting Notes: https://jdi-family.atlassian.net/wiki/spaces/JDN/pages/46858248/25072022+Usage+Metrics

Problem Report
Downloads
Locators List

Locator List ->

Edit
String(name, type, locator)
IsDeleted
Boolean: If the locator was deleted
Is Included
Boolean: If the locator was included in the downloaded object
Final locator
String: If the locator was edited or deleted

Необходимо влить это в мастер в версии 2.0


How to delete objects from Many field?

There are methods for adding and loading objects in a Many<T> field.
But how to delete some or all of objects from it (remove records in many-to-many table)?

Embarrassingly, I seem to have missed implementing that. I'll add it this week.


Add shields as an item type

Shields from COM will need their own item type to function properly.

 [FEAT] Add shields as an item type.

Added in #187


Kubernetes doesn't handle autoscaled minions properly

Using Kubernetes v0.6.2, on a AWS cloudformation stack:
core@ip-10-51-176-7 ~ $ kubecfg list minions
Minion identifier   Labels
----------          ----------
<IP_ADDRESS>
<IP_ADDRESS>

core@ip-10-51-176-7 ~ $ kubecfg list replicationControllers
Name                   Image(s)                      Selector            Replicas
----------             ----------                    ----------          ----------
postgresqlController   <IP_ADDRESS>:5000/database   name=postgresql     2

core@ip-10-51-176-7 ~ $ vim cfg/database-controller.yml  # Set 100 Replicas to trigger autoscaling policy
core@ip-10-51-176-7 ~ $ kubecfg -c cfg/database-controller.yml update replicationControllers/postgresqlController
I1214 00:12:37.981262    3925 restclient.go:133] Waiting for completion of operation 593
Name                   Image(s)                      Selector            Replicas
----------             ----------                    ----------          ----------
postgresqlController   <IP_ADDRESS>:5000/database   name=postgresql     100

Once a hundred pods has been triggered, here is what's happening:

Kubernetes deploys all 100 pods on the 2 minions

Minions are overloaded, check instance fails, and kubecfg cannot list minions anymore:
core@ip-10-51-176-7 ~ $ kubecfg list minions
F1214 00:20:33.822859    5827 kubecfg.go:428] Got request error: 501: All the given peers are not reachable (Tried to connect to each peer twice and failed) [0]

within 2 min, a cloudwatch alarm is triggered, which starts a scaleUp policy and adds 2 more minions

kubecfg still fails, I have to manually terminate the instance which check fails, and the autoscale group respawns a new healthy instance

kubecfg can list minions, but timeout to list pods:
core@ip-10-51-176-7 ~ $ kubecfg list minions
Minion identifier   Labels
----------          ----------
<IP_ADDRESS>
<IP_ADDRESS>
<IP_ADDRESS>
<IP_ADDRESS>

core@ip-10-51-176-7 ~ $ kubecfg list pods | grep <IP_ADDRESS>
^C

Trying to scale down the number of pods gives weird results:
core@ip-10-51-176-7 ~ $ kubecfg list replicationControllers
Name                   Image(s)                      Selector            Replicas
----------             ----------                    ----------          ----------
postgresqlController   <IP_ADDRESS>:5000/database   name=postgresql     10

core@ip-10-51-176-7 ~ $ fleetctl list-machines
MACHINE         IP              METADATA
198ae00d...     <IP_ADDRESS>  role=minion
ca92355c...     <IP_ADDRESS>  role=minion
d8ee87a6...     <IP_ADDRESS>     role=master
e85d5976...     <IP_ADDRESS>   role=minion
fc7f7c31...     <IP_ADDRESS>     role=minion
core@ip-10-51-176-7 ~ $ for machine in 1 c e f; do echo "$machine -> $(fleetctl ssh $machine "
docker ps | grep postgres | wc -l")"; done
1 -> 0
c -> 0
e -> 0
f -> 39
core@ip-10-51-176-7 ~ $ kubecfg list pods
^C
core@ip-10-51-176-7 ~ $

Here is the list of problems I believe happened:

Kubernetes breaks if one of the registered minions becomes unavailable. I believe that when this happens, kubernetes should smartly reassign the unavailable node pods to other nodes, and a list could return:
```
core@ip-10-51-176-7 ~ $ kubecfg list minions
Minion identifier   Labels
----------          ----------
<IP_ADDRESS>
<IP_ADDRESS>
<IP_ADDRESS>
 <unavailable>
```

Kubernetes doesn't have policies (eg do not add another pod to an instance having CPU>90%). I'd really like to have something like this so it could wait for the new nodes to be available.

Kubernetes doesn't assign pods to nodes correctly. When resizing my controller from 100 to 10, I am expecting each node to take on 2~3 pods, but here 39 (?) containers were listed in a single node (probably due to the precedent bug, since I'm still unable to list pods from master).

I had also tried a ScaleDown policy in my autoscaling group, and when a node was removed, kubernetes would break as well, instead of removing the minion and reassigning pods to other ones.

Are those features work in progress, or planned for the future? Do you have any suggestion on how to handle this stack in the meanwhile?

This is subsumed by other issues.


NIFI-8921 - Fix failing tests due to old 1.14.0-snapshot reference

Thank you for submitting a contribution to Apache NiFi.
Please provide a short description of the PR here:
Description of PR
Enables X functionality; fixes bug NIFI-YYYY.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[x] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?

[x] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

[x] Has your PR been rebased against the latest commit within the target branch (typically main)?

[x] Is your initial contribution a single, squashed commit? Additional commits in response to PR reviewer feedback should be made on this branch and pushed to allow change tracking. Do not squash or use --force when pushing to allow for clean monitoring of changes.

For code changes:

[ ] Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder?
[ ] Have you written or updated unit tests to verify your changes?
[ ] Have you verified that the full build is successful on JDK 8?
[ ] Have you verified that the full build is successful on JDK 11?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-assembly?
[ ] If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly?
[ ] If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties?

For documentation related changes:

[ ] Have you ensured that format looks appropriate for the output in which it is rendered?

Note:
Please ensure that once the PR is submitted, you check GitHub Actions CI for build issues and submit an update to your PR as soon as possible.

I think these modules were removed when bringing the code over from MiNiFi Java -> NiFi, not sure how the builds ever worked though. I think both modules can just be removed from the top-level POM

Looks good @thenatog! +1 Merging.


SPIKE 🧪 how we get SSO integration from all environments from prod Azure AD

As a developer I want to be able to get access to all the environments via SSO.
So that I can get on with what I need to do, and not waste time chasing access rights.

Closed, moved onto Jira


Error when passing big integer argument for a uint256 field

I have a function with a single uint256 argument.  When I try to call that function from the Run pane with the number<PHONE_NUMBER>00000000, I get the following error:
transact to <Contract.Function> errored: Error encoding arguments: Error: Assertion failed

That number is 0.1 ether in gwei.  It's much smaller than the max representable number for an unsigned 256-bit integer (2^256), so I'm not sure what assertion is failing.  Does anyone know what's going on?  Type casting issue, maybe?
As a workaround, when I surround the value with double quotes, it works.

that should be fixed by now ( remix.ethereum.org ) please retry and reopen if necessary


ToolBarItem is increasing with switch the tabs

@adospace
I really really appreciate for the you fixed the #257.
But I face the new bug ToolBarItem is increasing with switch the tabs that in the same situation of the #257.
Here is my Render() and the screenshots.
Do you fix that?
public override VisualNode Render()
{
        return ContentPage(
            ToolbarItem()
                .IconImageSource(new MauiControls.FontImageSource() {FontFamily = "material", Glyph = "light_mode", Color = AppTheme.Scheme.OnSurface})
                .Order(MauiControls.ToolbarItemOrder.Primary),

            ToolbarItem()
                .IconImageSource(new MauiControls.FontImageSource() {FontFamily = "material", Glyph = "refresh", Color = AppTheme.Scheme.OnSurface})
                .Order(MauiControls.ToolbarItemOrder.Primary),

            // other components
}

first time (no switching tab, no problem)

second time (once switching tab, ToolBarItem is increased)

third time (twice switching tab, ToolBarItem is increased again)

@adospace
Thank you for your quick response.
I've never done testing in a specific branch before, but I'll give it a try.
Is it correct way to reference the MauiReactor project and MauiReactor.Canvas project of a specific branch instead of referencing Nuget's ones?

Yes, anyway do you see any other problem with this version? from testing, it seems this is the only one.
Please let me know if you find anything else.

Yes the main idea is to keep the MauiReactor behavior as close as possible to the native MAUI library.
The main problem is that it's hard to understand when the page is definitely unloaded.
For example, in your case MAUI raise a Disappearing event when you switch to another tab and Appearing when you move back to Page6: Page6 is NOT unloaded so the component should be kept mounted.
But if you just go back to Home tab from Page6 raise the Disappearing event AND the page is unloaded so the component should be unmounted BUT MAUI doesn't raise an event to signal that page is definitively gone.
This is causing some troubles with MauiReactor to identify when components should be mounted/unmounted.
I'm still working on resolve the issue considering your use case.

@nomurayoshuak I've published an update on the branch that fixes other small wrong behaviors.
Regarding your case, unfortunately, MAUI sends a disappearing event for the Page6 while the NavigationStack doesn't contain it and this signals MauiReactor that the component must be unmounted.
In any other case, MauiReactor correctly leaves the component live because the page is still present in the NavigationStack.
To sum up for now, in your specific case, (maybe in .net 9 things will change), MauiReactor has no other choice than unmounting the component when you move to another tab.
Please check if your app still works fine using this branch soon I'll publish the new package version.

Thank you. I understand it.
Although I may not be able to help you, I wish you and this library success.
MauiReactor is great library.
I very appreciate.

@adospace
I checked the recent fix-261 branch with my app. I works fine! thank you!


ci: update format check

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#308  👈
#307
#306
#305
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @AngelOnFira and the rest of your teammates on  Graphite


#6503: Llama 2 Refactor All Test files, allow repro on any device

Added three environment variables, need to set before running llama test code
Example path:

export LLAMA_CKPT_DIR="/proj_sw/user_dev/llama-data-repacked-2/llama-2-70b/"
export LLAMA_TOKENIZER_PATH="/proj_sw/user_dev/llama-data/tokenizer.model"
export LLAMA_CACHE_PATH="/proj_sw/user_dev/llama-data-cache/weights-cache"

Refactor all test files to have intuitive parameters for testing.
Added models/demos/llama2_70b/scripts/llama_test_suite.sh, to run all tests
Combined test_galaxy with current unit tests

https://github.com/tenstorrent-metal/tt-metal/actions/runs/8330877510

https://github.com/tenstorrent-metal/tt-metal/actions/runs/8334392985

Ran llama_test_suite_8chip.sh & llama_test_suite_emulated, and demo.py, all test passed

Testing multi-device action https://github.com/tenstorrent-metal/tt-metal/actions/runs/8343887974


Use CurlHandle as much as possible

I tried to replace all pairs of curl_easy_init+curl_easy_cleanup with a usage of CurlHandle (mostly for consistency).
There are still a few places where curl_easy_init+curl_easy_cleanup  are used directly.
I would prefer to get rid of those as well, but I'm not sure how.

Remaining occurrences
https://github.com/newsboat/newsboat/blob/3311426cdbd1eb48ed4a15d22d348765659e1794/rss/parser.cpp#L115-L219
https://github.com/newsboat/newsboat/blob/3311426cdbd1eb48ed4a15d22d348765659e1794/src/freshrssapi.cpp#L413-L432
https://github.com/newsboat/newsboat/blob/3311426cdbd1eb48ed4a15d22d348765659e1794/src/minifluxapi.cpp#L217-L240
https://github.com/newsboat/newsboat/blob/3311426cdbd1eb48ed4a15d22d348765659e1794/src/utils.cpp#L324-L395

While making these changes, I found a few occurrences where the handle was used after calling curl_easy_cleanup.
For example, see handle in first and last line of following snippet:
https://github.com/newsboat/newsboat/blob/3311426cdbd1eb48ed4a15d22d348765659e1794/src/feedhqapi.cpp#L109-L146

Coverage increased (+0.05%) to 59.275% when pulling 87453745cb120453caa3dfe7441ee88a4e7dd0e4 on dennisschagt:feature/consistent-curl-handles into 3311426cdbd1eb48ed4a15d22d348765659e1794 on newsboat:master.

As for remaining occurrences, here's an idea: for each method that takes CURL*, replace it with two overloads:

method(CurlHandle&) — that's where the existing code goes, except it doesn't need to create its own CURL* anymore;
method() which is implemented as a call to method(CurlHandle()).

I'm not sure how well that will fit the callsites though. The only way to know is to try it, I guess :)

@dennisschagt, how it's going? Just checking that this PR isn't dead :)

how it's going? Just checking that this PR isn't dead :)

It is not dead, however, I probably won't have much time until September.

As for remaining occurrences, here's an idea: for each method that takes CURL*, replace it with two overloads:
1. `method(CurlHandle&)` — that's where the existing code goes, except it doesn't need to create its own `CURL*` anymore;

2. `method()` which is implemented as a call to `method(CurlHandle())`.

I'm not sure how well that will fit the callsites though. The only way to know is to try it, I guess :)

I vaguely remember having some trouble applying this idea but I don't remember why.
If preferred, I can look into it later (but probably won't until September)

Okay! Even though this PR doesn't replace all occurrences, it replaces some of them and doesn't break anything. So I'll merge it, and file an issue about the other occurrences.
Thanks for the work!


Unable to get Zeplin VSCode plugin command to create JSON config file

Hi everyone, Thank you for this awesome plugin!!
I've installed it and logged into my Zeplin account. My team uses yarn instead of npm, so I've installed the Zeplin plugin with yarn global add @zeplin/cli-connect-storybook-plugin.
EDIT: The install actually failed with many complaints in Terminal about Darwin, so with permission of my team I used the recommended npm install. However, though the install seemed to go all right, attempting to -p @zeplin/cli-connect-react-plugin resulted in -bash: zeplin: command not found.
Several documents refer to a configuration JSON file that should be edited, and it took a while to find out where and how to find or create it. After a lot of circular clicking I finally found information that this plugin could create it for me.
However, the plugin did not prompt to create the file (though the documentation says it will), there is no link in the plugin to create it, and the promised magical command, "Command/Ctrl + Shift + P" from the only readme that provides information about creating the file fails without error.
I see that I can create it manually, but it would be nicer if the plugin worked as intended. Overall, the process of connecting Zeplin to Storybook so far has been painful.
EDIT: Tried to create .zeplin/components.json manually at the root of my repo, but Zeplin did not seem to know about it or recognize that anything had changed. Meanwhile, the plugin does add my Zeplin projects and styleguides, but there is no visibility for where to find the configuration file the plugin is actually using - and Zeplin still does not allow me to connect any components in Zeplin.

I am closing this because it seems resolved in in https://github.com/zeplin/connected-components-docs/issues/24. Please reopen and tell us more if I am wrong. Thanks!


I am getting an error when executing

i just downloaded the git on my kali
and i did the commands in the readme
but when i try to execute it with "python SocialFish.py"
so i get this:
Traceback (most recent call last):
File "SocialFish.py", line 12, in
from wget import download
ImportError: No module named wget
please help me, thanks

https://www.youtube.com/watch?v=hwMPsHkrS0M
watch this tutorial

you need to install the programms in requirements.txt first

I already installed the requirements

and i already saw this tutorial

pip install wget

i already install the pip install wget

please help me

What Error?


Update taxonomy sidebar design

https://trello.com/c/zzot5dZq/157-taxonomy-sidebar-add-link-to-collections
https://trello.com/c/NtD5rC4S/121-taxonomy-sidebar

This combines the changes from https://github.com/alphagov/static/pull/1200 to make the taxonomy sidebar styles similar to the related-navigation component and also the feature of rendering collections links below the taxon links.

@maxgds @nickcolley I'm confused about requested changes now, could you clarify what, if anything, needs changing on this PR please?

I hadn't noticed the things I commented on were nested, as such they are they are safe to go out.
However, we shouldn't really be applying the css directly to elements even when embedded. I'd say mark it as tech debt, put it on the board in the tech debt column Vanita created and let this go out as-is for now.

The diff is confusing - Steve hasn't actually introduced this, hence my comment. And it's relatively safe as it's nested in the scss, not completely bare.

@nickcolley forgive my ignorance, but it's not clear which changes are necessary to make this PR acceptable production-ready component code.
It seems like some unconventional CSS scoping from previous work is being conflated with the intended scope of this PR (some cursory design changes and adding the collections links, none of which add unscoped styles).
Is the fixing of the unconventional CSS a blocker to any other work on this component? If so can you detail what remedial work needs doing please? I'm not certain what we should just make the updates in this review means in terms of fixing scope.

@steventux if we're writing new CSS we should be using the correct naming conventions (linked above). Old code is fine, and is covered by https://trello.com/c/SCio6yb4/45-static-components-need-updating-to-new-component-principles

My bad - had cherry-picked a commit from https://github.com/alphagov/static/pull/1200, was unaware this contained the offending CSS

@nickcolley @maxgds hopefully this https://github.com/alphagov/static/pull/1222/commits/fa16a2138443603c9027512fabb8b7b3345fc766 sorts out the element selectors. Let me know if I'm off with the BEM naming.

@nickcolley I've amended the component styles so they follow the BEM naming convention, apologies @maxgds for not understanding the original review comments.
Anything else to do on this PR?

Thanks @nickcolley your comment makes sense to me, I've renamed the heading and link classes to simplify: https://github.com/alphagov/static/pull/1222/commits/dd4211811e9342ba8d5952d256b8655ef2ff1303#diff-b2af3eb92cd75ba5d8c0d1ab14ce7424R7
I will think of a better name for the collections classes as it suffers from the same naming problem.


Can't update plugins

I am getting the We could not find the 'npm' command. Make sure it\'s in $PATH error when trying to update plugins.
I am using nvm, after adding the npm path to the $PATH, I still get the error.
This is how I am adding npm to the $PATH: export PATH=~/.nvm/versions/v5.3.0/bin:$PATH.
After checking the source code, this is the result of running /usr/libexec/path_helper -s on my Mac:
PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Frameworks/Python.framework/Versions/3.5/bin:/usr/local/heroku/bin:/Users/montogeek/.nvm/versions/v5.3.0/bin:/usr/local/share/npm/bin:/Users/montogeek/.composer/vendor/bin:/usr/local/php5/bin:/Users/montogeek/.rvm/gems/ruby-2.2.4/bin:/Users/montogeek/.rvm/gems/ruby-2.2.4@global/bin:/Users/montogeek/.rvm/rubies/ruby-2.2.4/bin:/Users/montogeek/.rvm/bin"; export PATH;
MANPATH="/usr/share/man:/usr/local/share/man:/Users/montogeek/.nvm/versions/v5.3.0/share/man:/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/share/man:/Applications/Xcode.app/Contents/Developer/usr/share/man:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/share/man"; export MANPATH;

And npm executable exist on that folder

```
montogeek ~/.nvm/versions/v5.3.0/bin [12:37 PM]→ 😀  ((HEAD detached at v0.17.2))
👉 ls
total 46536
drwxr-xr-x  47 montogeek  staff   1.6K Jul 12 16:33 .
drwxr-xr-x  12 montogeek  staff   408B Jul 12 09:11 ..
lrwxr-xr-x   1 montogeek  staff    31B Apr 19 12:43 a11y -> ../lib/node_modules/a11y/cli.js
lrwxr-xr-x   1 montogeek  staff    41B May 30 11:53 airsonos -> ../lib/node_modules/airsonos/bin/index.js
lrwxr-xr-x   1 montogeek  staff    42B May  9 14:13 babel -> ../lib/node_modules/babel-cli/bin/babel.js
lrwxr-xr-x   1 montogeek  staff    49B May  9 14:13 babel-doctor -> ../lib/node_modules/babel-cli/bin/babel-doctor.js
lrwxr-xr-x   1 montogeek  staff    59B May  9 14:13 babel-external-helpers -> ../lib/node_modules/babel-cli/bin/babel-external-helpers.js
lrwxr-xr-x   1 montogeek  staff    47B May  9 14:13 babel-node -> ../lib/node_modules/babel-cli/bin/babel-node.js
lrwxr-xr-x   1 montogeek  staff    35B Feb 22 10:52 bower -> ../lib/node_modules/bower/bin/bower
lrwxr-xr-x   1 montogeek  staff    41B May 13 02:05 browserify -> ../lib/node_modules/browserify/bin/cmd.js
lrwxr-xr-x   1 montogeek  staff    33B Feb  2 23:36 cloc -> ../lib/node_modules/cloc/lib/cloc
lrwxr-xr-x   1 montogeek  staff    41B Apr  4 09:30 depcheck -> ../lib/node_modules/depcheck/bin/depcheck
lrwxr-xr-x   1 montogeek  staff    39B Apr 24 22:37 dependo -> ../lib/node_modules/dependo/bin/dependo
lrwxr-xr-x   1 montogeek  staff    54B Mar 28 10:49 documentation -> ../lib/node_modules/documentation/bin/documentation.js
lrwxr-xr-x   1 montogeek  staff    45B Mar 25 18:18 esdoc -> ../lib/node_modules/esdoc/out/src/ESDocCLI.js
lrwxr-xr-x   1 montogeek  staff    40B Mar 12 11:19 eslint -> ../lib/node_modules/eslint/bin/eslint.js
lrwxr-xr-x   1 montogeek  staff    40B Jul 12 16:33 esw -> ../lib/node_modules/eslint-watch/bin/esw
lrwxr-xr-x   1 montogeek  staff    41B Jan 24 02:32 flint -> ../lib/node_modules/flint/cli/entry/flint
lrwxr-xr-x   1 montogeek  staff    47B Jan 24 02:32 flint-build -> ../lib/node_modules/flint/cli/entry/flint-build
lrwxr-xr-x   1 montogeek  staff    45B Jan 24 02:32 flint-new -> ../lib/node_modules/flint/cli/entry/flint-new
lrwxr-xr-x   1 montogeek  staff    45B Jan 24 02:32 flint-run -> ../lib/node_modules/flint/cli/entry/flint-run
lrwxr-xr-x   1 montogeek  staff    44B Jan 24 02:32 flint-up -> ../lib/node_modules/flint/cli/entry/flint-up
lrwxr-xr-x   1 montogeek  staff    48B Jan 24 02:32 flint-update -> ../lib/node_modules/flint/cli/entry/flint-update
lrwxr-xr-x   1 montogeek  staff    39B Mar  4 14:17 grunt -> ../lib/node_modules/grunt-cli/bin/grunt
lrwxr-xr-x   1 montogeek  staff    40B Apr 15 07:38 gulp -> ../lib/node_modules/gulp-cli/bin/gulp.js
lrwxr-xr-x   1 montogeek  staff    37B Feb  5 18:24 hexo -> ../lib/node_modules/hexo-cli/bin/hexo
lrwxr-xr-x   1 montogeek  staff    45B Jun 14 19:57 homebridge -> ../lib/node_modules/homebridge/bin/homebridge
lrwxr-xr-x   1 montogeek  staff    34B Apr 18 22:23 ied -> ../lib/node_modules/ied/bin/cmd.js
lrwxr-xr-x   1 montogeek  staff    60B Jul 11 10:07 left-behind -> ../lib/node_modules/left-behind/dist/left-behind.compiled.js
lrwxr-xr-x   1 montogeek  staff    42B Apr 13 09:15 lt -> ../lib/node_modules/localtunnel/bin/client
lrwxr-xr-x   1 montogeek  staff    35B Apr 24 22:12 madge -> ../lib/node_modules/madge/bin/madge
lrwxr-xr-x   1 montogeek  staff    32B Apr  4 15:11 mancy -> ../lib/node_modules/mancy/cli.js
lrwxr-xr-x   1 montogeek  staff    45B May  9 13:01 ncu -> ../lib/node_modules/npm-check-updates/bin/ncu
lrwxr-xr-x   1 montogeek  staff    50B Jul 11 09:49 next-update -> ../lib/node_modules/next-update/bin/next-update.js
-rwxr-xr-x   1 montogeek  staff    23M Dec 16  2015 node
lrwxr-xr-x   1 montogeek  staff    37B Apr  6 12:52 now -> ../lib/node_modules/now/build/bin/now
lrwxr-xr-x   1 montogeek  staff    38B Dec 16  2015 npm -> ../lib/node_modules/npm/bin/npm-cli.js
lrwxr-xr-x   1 montogeek  staff    59B May  9 13:01 npm-check-updates -> ../lib/node_modules/npm-check-updates/bin/npm-check-updates
lrwxr-xr-x   1 montogeek  staff    43B Feb  2 19:53 phantomjs -> ../lib/node_modules/phantomjs/bin/phantomjs
lrwxr-xr-x   1 montogeek  staff    37B Feb 16 10:46 rollup -> ../lib/node_modules/rollup/bin/rollup
lrwxr-xr-x   1 montogeek  staff    36B Feb  2 23:01 shjs -> ../lib/node_modules/shelljs/bin/shjs
lrwxr-xr-x   1 montogeek  staff    33B Feb  2 22:38 sloc -> ../lib/node_modules/sloc/bin/sloc
lrwxr-xr-x   1 montogeek  staff    36B Mar  8 16:49 spoof -> ../lib/node_modules/spoof/bin/cmd.js
lrwxr-xr-x   1 montogeek  staff    36B Jun 11 00:00 testem -> ../lib/node_modules/testem/testem.js
lrwxr-xr-x   1 montogeek  staff    36B Jun 12 14:00 vtop -> ../lib/node_modules/vtop/bin/vtop.js
lrwxr-xr-x   1 montogeek  staff    42B Jul  2 15:48 webpack -> ../lib/node_modules/webpack/bin/webpack.js
lrwxr-xr-x   1 montogeek  staff    39B Jun 10 20:25 yuidoc -> ../lib/node_modules/yuidocjs/lib/cli.js
```

This is the output when running eval '/usr/libexec/path_helper -s' && npm prune --verbose && npm install --production --verbos on ./hyperterm_plugins:

```
montogeek ~/.hyperterm_plugins [12:50 PM]→ 😀
👉eval `/usr/libexec/path_helper -s` && npm prune --verbose && npm install --production --verbose
npm info it worked if it ends with ok
npm verb cli [ 'node',
npm verb cli   '/Users/montogeek/.nvm/versions/v5.3.0/bin/npm',
npm verb cli   'prune',
npm verb cli   '--verbose' ]
npm info using<EMAIL_ADDRESS>npm info using<EMAIL_ADDRESS>npm verb node symlink /usr/local/bin/node
npm verb exit [ 0, true ]
npm info ok
npm info it worked if it ends with ok
npm verb cli [ 'node',
npm verb cli   '/Users/montogeek/.nvm/versions/v5.3.0/bin/npm',
npm verb cli   'install',
npm verb cli   '--production',
npm verb cli   '--verbose' ]
npm info using<EMAIL_ADDRESS>npm info using<EMAIL_ADDRESS>npm verb node symlink /usr/local/bin/node
npm verb correctMkdir /Users/montogeek/.npm/_locks correctMkdir not in flight; initializing
npm verb lock using /Users/montogeek/.npm/_locks/staging-bf2c8b36661971db.lock for /Users/montogeek/.hyperterm_plugins/node_modules/.staging
npm verb unlock done using /Users/montogeek/.npm/_locks/staging-bf2c8b36661971db.lock for /Users/montogeek/.hyperterm_plugins/node_modules/.staging
npm info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>npm info linkStuff<EMAIL_ADDRESS>npm verb linkBins<EMAIL_ADDRESS>npm verb linkMans<EMAIL_ADDRESS>npm info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>npm info lifecycle<EMAIL_ADDRESS><EMAIL_ADDRESS>npm verb exit [ 0, true ]
npm info ok
```

I am having the same issue. It looks like the app is doing a check that interferes with npm via nvm loading. With nvm node is loaded via the .bashrc file. But it does not work. I found that running the same include command later (or just re-sourcing my .bashrc) will get npm working.

I'm also able to reproduce when using a fresh install. Using nvm 0.29.0, npm 1.4.3 and zsh 5.0.8 (x86_64-apple-darwin14.4.0). Re-sourcing .zshrc did not worked for me, I also extended the PATH variable with the direct path of my node installation and npm bin folder and executable paths.

+1

Fixed in https://github.com/zeit/hyperterm/releases/tag/0.6.0

I'm another nvm user and v0.6.0 did not solve this for me. I can neither install plugins and I still get the npm error message on startup. I'm looking into why it's happening.


Memory usage

nd2 version: 0.1.4
Python version: 3.7.10
Operating System: Windows10

Description
I try to load selected parts of nd2 files but too much memory is allocated for the objects that need to be computed. As a consequence, it fails to load objects that are bigger than ~4 times available memory.
What I Did
Test on a time lapse experiment:

Test on a single time point big image:

In the second example the memory allocation is correct when it has to compute the whole file.
It may be related to the problem of calculating object size incorrectly as shown here:

Hi @fjorka
let's first explore our memory profiling options.  I just created a script and ran using memory_profiler.
# script.py
import nd2
from memory_profiler import profile
import numpy as np

@profile
def main():
    f = nd2.ND2File("big.nd2")
    x = f.to_xarray()

    # instead of for loop... easier to see effect of each line in report
    a = x.isel(C=0, Z=0, T=np.arange(0, 10)).compute()
    b = x.isel(C=0, Z=0, T=np.arange(10, 20)).compute()
    c = x.isel(C=0, Z=0, T=np.arange(20, 30)).compute()
    d = x.isel(C=0, Z=0, T=np.arange(30, 40)).compute()
    e = x.isel(C=0, Z=0, T=np.arange(40, 50)).compute()
    f = x.isel(C=0, Z=0, T=np.arange(50, 60)).compute()
    g = x.isel(C=0, Z=0, T=np.arange(60, 70)).compute()
    h = x.isel(C=0, Z=0, T=np.arange(70, 80)).compute()
    i = x.isel(C=0, Z=0, T=np.arange(80, 90)).compute()
    j = x.isel(C=0, Z=0, T=np.arange(90, 100)).compute()

if __name__ == "__main__":
    main()

then run with python script.py
I get the following output
Filename: /Users/talley/Dropbox (HMS)/Python/nd2/script.py

Line #    Mem usage    Increment  Occurences   Line Contents
============================================================
     6     51.2 MiB     51.2 MiB           1   @profile
     7                                         def main():
     8     54.0 MiB      2.8 MiB           2       f = nd2.ND2File("big.nd2")
     9
    11    116.8 MiB     62.8 MiB           1       x = f.to_xarray()
    12    150.1 MiB     33.3 MiB           1       a = x.isel(C=0, Z=0, T=np.arange(0, 10)).compute()
    13    177.6 MiB     27.5 MiB           1       b = x.isel(C=0, Z=0, T=np.arange(10, 20)).compute()
    14    204.5 MiB     26.8 MiB           1       c = x.isel(C=0, Z=0, T=np.arange(20, 30)).compute()
    15    230.5 MiB     26.1 MiB           1       d = x.isel(C=0, Z=0, T=np.arange(30, 40)).compute()
    16    257.6 MiB     27.1 MiB           1       e = x.isel(C=0, Z=0, T=np.arange(40, 50)).compute()
    17    283.7 MiB     26.1 MiB           1       f = x.isel(C=0, Z=0, T=np.arange(50, 60)).compute()
    18    309.2 MiB     25.5 MiB           1       g = x.isel(C=0, Z=0, T=np.arange(60, 70)).compute()
    19    334.3 MiB     25.1 MiB           1       h = x.isel(C=0, Z=0, T=np.arange(70, 80)).compute()
    20    359.3 MiB     25.0 MiB           1       i = x.isel(C=0, Z=0, T=np.arange(80, 90)).compute()
    21    384.9 MiB     25.6 MiB           1       j = x.isel(C=0, Z=0, T=np.arange(90, 100)).compute()

Though the file is 15GB, it looks to be allocating about what I'd expect for each chunk.
Can you try this with your file?  (just want to rule out that psutil is giving something funny).
If you get something dramatically different with your file, I might want to play with it? 😬... i know it's a lot to ask, but let me know if you can share it somehow (dropbox, etc...)

Hi @tlambert03
Unfortunately, it seems the same when I profile with memory_profiler. For example:
nd2_file = r'DBSP12D20#1_20X.nd2'
file_path = os.path.join(nd2_dir,nd2_file)

@profile
def main():
    f = nd2.ND2File(file_path)
    x = f.to_xarray()

    a = x.isel(C=0).compute()
    print(f'object size: {a.nbytes/1e9} GB')

if __name__ == "__main__":
    main()

Gives the profile of:
object size: 0.807561216 GB
Filename: D:\BARC\nd2_memory\memory_test_slide.py

Line #    Mem usage    Increment  Occurences   Line Contents
============================================================
    10     34.4 MiB     34.4 MiB           1   @profile
    11                                         def main():
    12     35.6 MiB      1.2 MiB           1       f = nd2.ND2File(file_path)
    13    101.9 MiB     66.3 MiB           1       x = f.to_xarray()
    14
    15                                             # instead of for loop... easier to see effect of each line in report
    16   2412.7 MiB   2310.8 MiB           1       a = x.isel(C=0).compute()
    17   2412.7 MiB      0.0 MiB           1       print(f'object size: {a.nbytes/1e9} GB')

I shared with you the file from the above example. The one from the previous example is ~0.5TB (multi position time-lapse) but I can figure out sharing it too if you would like to work with it.

thanks!  I downloaded it.
You know... one thing that is probably important to mention here, which I should have thought of earlier... is that nd2 files are not (natively) chunked along the channel axis.  So when you load 1 channel for a given timepoint, you load them all.
you should be able be able to save memory by only loading a Z, or T subset... but chunking in channels will require some additional functionality that isn't natively supported by the nd2 format.  (still possible).
one additional observation: try leaving xarray out of the loop.  Use just f.asarray() or f.to_dask().  For dask, you can then subchunk using indexing:
print(f.sizes)  # see axes in order
d = f.to_dask()
d[0, 0].compute()  # just get the first index along the first two dimensions

...and remember that if any of those dimensions are XY or C, it won't save memory (until that's added)

Thanks for the explanation @tlambert03!
I re-wrote the code to actually load only single time points and arrange them later.
The loop looks as follows:
C_list = [1,2,3]
P_list = [0,1,2]
T = np.arange(288)

im_nd2_reader = nd2.ND2File(file_path) # expected shape (T,P,C,X,Y) - (577, 15, 4, 2765, 2765)
im_nd2_dask = im_nd2_reader.to_dask()

for P in P_list:
    for C in C_list:

        # create empty container
        im = np.empty(shape=[len(T),im_nd2_reader.shape[3],im_nd2_reader.shape[4]],dtype='uint16')

        for ind in T:

            frame = im_nd2_dask[ind,P,C,:,:].compute()
            im[ind,:,:] = frame

        # save im

A single 'im' is around 4GB but this loop takes ~18-24GB of RAM to execute (never less than 18GB after initial loading). In my mind, it should never open more than a single time point and in general require around 4GB of RAM. Do you have any insights about what I can do better here.

you should be able be able to save memory by only loading a Z, or T subset... but chunking in channels will require some additional functionality that isn't natively supported by the nd2 format. (still possible).

Something in lines of that would be a nice addition to this library.
It is possible to read just one xy-plane at a time from the nd2 file and discard the data for the irrelevant channels, the downside is that all data has to be re-read for each channel (not sure how it works with time series). To reduce RAM usage even more the data could be streamed to disk as it is read; but that might be out of scope here.

Something in lines of that would be a nice addition to this library.

Thanks @elgw, this feature is being tracked at https://github.com/tlambert03/nd2/issues/85


Documentation for downstream TLS client auth

Type of change
Select the type of your PR

Documentation

Description
#1631 added the ability to use TLS client auth on the downstream (client) side.  This PR adds documentation for that feature.
Additional Context
Why are you making this pull request?
Checklist
Please go through this checklist and make sure all applicable tasks have been done

[ ] Write tests
[ ] Update documentation
[ ] Make sure all unit/integration tests pass
[ ] Make sure all Sonarcloud warnings are addressed or are justifiably ignored.
[ ] If applicable to the change, trigger the system test suite.  Make sure tests pass.
[ ] If applicable to the change, trigger the performance test suite. Ensure that any degradations to performance numbers are understood and justified.
[ ] Ensure the PR references relevant issue(s) so they are closed on merging.
[ ] For user facing changes, update CHANGELOG.md (remember to include changes affecting the API of the test artefacts too).

NOTE:  You must be a member of @kroxylicious/developers to trigger the system test and performance test suites.  If you are not part of this group, comment on the PR requesting a trigger, tagging @kroxylicious/developers.

@alanrobinson-dwp if you could review this too, that would be appeciated.

@alanrobinson-dwp if you could review this too, that would be appeciated.

Looks good to me!

Thanks for the feedback @PaulRMellor, I've incorporated your feedback.


test: test-segmentation-fault

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

3 of 3 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.01%) to 80.663%

Totals

Change from base Build<PHONE_NUMBER>:
-0.01%

Covered Lines:
3298

Relevant Lines:
4061

💛  - Coveralls


"CleanWebpackPlugin is not a constructor" fixed in Chinese guide

I just updated some codes in Chinese language guide referring to official guide since I encountered the error when I follow it.
describe your changes...

[ ] Read and sign the CLA. PRs that haven't signed it won't be accepted.
[ ] Make sure your PR complies with the writer's guide.
[ ] Review the diff carefully as sometimes this can reveal issues.
Remove these instructions from your PR as they are for your eyes only.

已修复


Exception mismatch on O_CREAT with bad path

import pyfakefs.fake_filesystem
import os
fs = pyfakefs.fake_filesystem.FakeFilesystem()
fs.CreateDirectory('/Volumes')
fs.CreateDirectory('/Volumes/ramdisk')
fs.CreateDirectory('/Volumes/ramdisk/test')
os0 = pyfakefs.fake_filesystem.FakeOsModule(fs)
component0 = "alpha"
path0 = "/Volumes/ramdisk/test"
path1 = path0 + "/" + component0
path1 = path1 + "/" + component0
fd0 = os0.open(path1, os.O_CREAT | os.O_WRONLY | os.O_TRUNC)

Can't reproduce this one - I get OSError 2 on both sides. What do you get here?

IOError for pyfakefs, OSError for os
Could it be OS X?

Ok, will check again tomorrow - maybe I tested in the wrong environment  (e.g. Python 3).


Can a vector of weights be specified in param_grid within GASearchCV (somehow)?

The idea is to take in predictions from an arbitrary number of models, and find optimal weights that maximize the accuracy of the ensembled model.
Here's the estimator that I wrote:
from typing import List, Optional
import numpy as np
from sklearn.base import BaseEstimator, RegressorMixin
from sklearn.utils import check_X_y, check_array
from sklearn.utils.estimator_checks import check_estimator, check_is_fitted
from sklearn.metrics import mean_absolute_error

class WeightedAverageEnsemble(BaseEstimator, RegressorMixin):
    """

    >>> wae = WeightedAverageEnsemble()
    >>> X = np.random.rand(20, 5)
    >>> y = np.random.rand(20, 1)
    >>> wae.fit(X, y)
    >>> wae.predict(X)

    >>> wae = WeightedAverageEnsemble(weights=[0.25, 0.75])
    >>> X = np.random.rand(20, 2)
    >>> y = np.random.rand(20, 1)
    >>> wae.fit(X, y)
    >>> wae.predict(X)

    Parameters
    ----------
    BaseEstimator : _type_
        _description_
    RegressorMixin : _type_
        _description_
    """

    def __init__(self, weights: Optional[List[float]] = None):
        if weights is not None:
            assert np.isclose(sum(weights), 1.0)
        self.weights = weights

    def fit(self, X, y):
        # TODO: deal with sparse inputs (i.e. mask `W` and convert to sparse)
        X, y = check_X_y(X, y, accept_sparse=False)
        self.is_fitted_ = True
        self.n_features_in_ = X.shape[1]
        if self.weights is None:
            self._mod_weights = np.ones(self.n_features_in_) / self.n_features_in_
            # equivalent to:
            # w = np.ones(self.n_features_in_).reshape(1, -1)
            # w = sklearn.preprocessing.normalize(w, norm="l1", axis=1)
        else:
            self._mod_weights = self.weights
        return self

    def predict(self, X):
        # TODO: deal with sparse inputs (i.e. mask `W` and convert to sparse)
        X = check_array(X, accept_sparse=False)
        check_is_fitted(self, "is_fitted_")
        W = np.tile(self._mod_weights, (X.shape[0], 1))
        y = np.einsum("ij, ij->i", W, X)
        # should be equivalent to: y = np.sum(W * X)
        # loop with np.dot might also be fast due to BLAS compatibility
        # https://stackoverflow.com/a/26168677/13697228
        # https://stackoverflow.com/a/39657770/13697228
        return y

    def score(self, X, y, **kwargs):
        y_pred = self.predict(X)
        return mean_absolute_error(y, y_pred, **kwargs)

check_estimator(WeightedAverageEnsemble())

Related: https://machinelearningmastery.com/weighted-average-ensemble-with-python
How would you suggest optimizing weights since it's a vector that can change in size based on the size of the input data?

I'm closing this issue, but feel free to raise more questions if needed


[OperationalInsights] Fix generated doc structure

This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.
PR information

[x] The title of the PR is clear and informative.
[x] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
[x] Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
[x] If applicable, the PR references the bug/issue that it fixes.
[x] Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

[x] I have read the contribution guidelines.
[x] My spec meets the review criteria:

[x] The spec conforms to the Swagger 2.0 specification.
[x] The spec follows the guidelines described in the Swagger checklist document.
[x] Validation tools were run on swagger spec(s) and have all been fixed in this PR.

Automation for azure-sdk-for-python

Automation for azure-libraries-for-java

Automation for azure-sdk-for-go

Collapsing these three items:

Tiny change -- the generated tree in Azure REST docs on docs.microsoft.com has an additional top-level item in reference which shouldn't exist, this fixes that.

Fixes the newly generated reference item that only contains purge, moving it under Workspaces 2015-03-20:

Ping -- really small fix 😄

@alexeldeib whoops, not sure how this slipped our assignment bot, sorry about the delay!


Switch channel implementation to wendover

Better tested bounded channel implementations:
https://github.com/io7m/wendover

Done.


BOARD_PING event is send way too often

Sending BOARD_PING event every 2 seconds is quite often. I think we are fine even we only send it every 30 seconds or so. Just send one BOARD_PING when you join the board so the memberlist is up to date.

Might be related to #249 and other real time issues

It seems the ping is now send every 30 seconds. However the initial ping doesnt seem to work and board members list is empty until the "first" real board ping event is send.
views/boards.js:83

I'll make a @melonmanchan 'esque fix and put the initial event in some timeout because javascript.


Deprecation warning shown even if I don't use default export

When running @sanity/client (issue was present in v5.2.x, I've updated to v5.3.0 now and still see it) in my Nuxt3 project, I always see

even though I only use named exports from @sanity/client in my project.

Hi, then there might be another library that's using it, perhaps in your node_modules?
As you can see we're only printing this message if something is calling the default export: https://github.com/sanity-io/client/blob/da0d23c16f18ea437b1924a09e1eaf20644c2882/src/index.ts#L26
In other words, this is not enough for the deprecation warning to print:
import sanityClient from '@sanity/client'

Somewhere in your project something must be calling it:
sanityClient()

You can quickly find out what's doing it by editing ./node_modules/@sanity/client/dist/${index.js,index.cjs,index.browser.js,index.browser.cjs} and you'll find function deprecatedCreateClient at the very bottom:
function deprecatedCreateClient(config) {
- printNoDefaultExport();
+ throw new Error('Found the culprit!')
 return new SanityClient(httpRequest, config);
}

This has been resolved in one of the more recent dependency bumps in my project, thanks for the throughout answer nonetheless!


Initialize MongoDB

User story

As a software developer
I need a MongoDB
So that the metadata of an user's raw data can be stored

Acceptance criteria

When starting the application, a MongoDB is created

DoD general criteria

Feature has been fully implemented
Feature has been tested
Feature has been merged into the main branch
Important parts have been documented in the technology wiki
All acceptance criteria were met
Product owner approved features
Developers agreed to release

Readme/Documentation is missing.
dockerfile for global docker-compose is missing


Model the RDF data cube

Story at https://grips.semantic-web.at/x/dg5OB .

Please note that the story or scenario is not complete and final. Please, explore the associated standards and fix the story and scenario when needed.
Only then follow by providing the needed model classes.


Swift 3.0

A swift-3.0 branch is already created and migration complete. Should double check and tag any latest changes in master before creating a merge request for the work.


GRUB not detecting windows 11 for dual boot

Make sure you've installed ntfs-3g $ sudo pacman -S ntfs-3g.

Make sure you've installed os-prober $ sudo pacman -S os-prober.

Edit grub to use os-prober:   /etc/default/grub Find the last (or towards the bottom) line and uncomment or add: GRUB_DISABLE_OS_PROBER=false.

Re run grub config. $ sudo grub-mkconfig -o /boot/grub/grub.cfg

integrated into the post-install