Test: contribute to editor title context menu

Test for https://github.com/Microsoft/vscode/issues/11942

[x] anyOS @sandy081
[x] anyOS @ramya-rao-a

Verify you can write an extension that adds menu entries to the editor tab context menu that can do something with the resource that is being shown. This context menu also shows up when tabs are disabled and you right click on the editor title.
The related menu key for package.json is editor/title/context, e.g.:
"commands": [{
    "command": "doSomething",
    "title": "Do Something"
}],
"menus": {
    "editor/title/context": [
        {
            "command": "doSomething"
        }
    ]
}

Any chance we will see the same feature for files in the open editors section ?
(see https://github.com/stef-levesque/vscode-hexdump/issues/10)

@stef-levesque we should have it, can you file a new issue on this topic?


Add stack files

Support stack

Hello,
Good idea to add a stack file. Just a question though: any particular reason to use servant from git instead of the ones released on hackage?

@alpmestan
Oh, It's my mistake. I need servant-0.7 in my development environment.
I'll fix it.

Great, thanks!


api: Create PUT /stream/pull API for idempotent pull stream

What does this pull request do? Explain your changes. (required)
This creates a separate PUT /stream/pull API to replace the autoStartPull query-string
that had been created on the regular creation API initially.
This is because the semantics expected from this pull API are now becoming very different
from the regular POST-based Create Stream API that we have today. Specifically, the 2 new
requirements are:

It should update the stream object if it already exists
It should block the request until the stream actually starts on the media server

Since blocking a connection is a non-standard and non-recommended behavior, that part
was still kept under a query-string. So this API has 2 possible idempotence results:

If waitActive is NOT specified: when the API succeeds, the stream is guaranteed to be created and the pull to have been triggered.
If waitActive IS specified: when the API succeeds, the stream is guaranteed to be created, the pull triggered, and the media server already started the stream.

In both cases, if a stream with the same pull.source already existed, it will have been updated
and then triggered to start.
One caveat is that we make no checks about the stream already being active when this API is called.
In that case, the media server won't actually update the configuration of the ongoing stream, so it is an
exception to the idempotence aimed by this API. We can think of alternatives, like returning an error when
the stream is already active, similar to the PATCH API, but it depends on what the design partner for this
feature expects from this API.
Also notice that I ended up preferring not to use this: https://github.com/livepeer/livepeer-data/pull/180
Doing a simpler poll on the DB instead for the stream.isActive field.
Specific updates (required)

Abstract the "create stream" logic from the existing API into a helper, to be reusable in the new API
Create separate PUT /stream/pull API
Implement logic to update stream object based on PUT payload
Implement logic to wait for stream to become active

How did you test each of these updates (required)
The pull logic on Catalyst is not implement yet so it's not really possible to test it. Mostly tested calling the API itself.
Does this pull request close any open issues?
Implements latest requirements here https://discord.com/channels/423160867534929930/1201860223652859986/1201860228413399040
Checklist

[x] I have read the CONTRIBUTING document.
[x] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[ ] I have added tests to cover my changes.

Are you thinking you'll remove the stream pull logic from the create stream handler in a later PR?

Yeah exactly, we need the confirmation that they migrated to the new one so we can delete the old logic. Will probably do it when removing the experiment itself.


Add index name to SearchAPIClient init

Allows creating SearchAPIClient instance for a given index.
Add SearchAPIClient index creation methods
Adds methods for index and alias creation.
Set str on APIError instances
Fixes the empty error output in Python shell and logged tracebacks.

Add index argument to SearchAPIClient methods instead of constructor
One SearchAPIClient instance can be used to send requests to multiple
search indexes. Index needs to be set in each method call.
Adds a temprorary default value for the index to keep compatibility
with existing client usage. Once support for g-cloud and dos indexes
is added to the apps and index argument is passed on every method call
the default value can be removed.

:+1:


Learning Rate too high

The learning rate of the model is too big and causing the model to not converge, tuning required.

@RamBagga hey can you assign me , i want to work on this !!


Code conventions

This is just supposed to be sort of an intermediate PR just so the "improper" code style is not propagated to other future branches.
I think this is necessary given the upcoming changes in our data backend and query/filter/status systems.
To summarize, this PR includes:

removal of unused or starred imports,
removal of unused variables (for the most part)
adding of type hints in the current hot spots (cli.py, operations.py, query.py)
making regular expressions use raw strings

maybe we should go more towards annotate everything.

I agree, and we should definitely strive for as complete annotations as possible. If anything, to make development easier.

format!


reafactir: cleanup code

Pull Request Test Coverage Report for Build 423278819

50 of 51 (98.04%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.6%) to 93.115%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/unpacker.ts
46
47
97.87%

Totals

Change from base Build 420896339:
0.6%

Covered Lines:
207

Relevant Lines:
219

💛  - Coveralls

Pull Request Test Coverage Report for Build 423278819
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

94 of 100 (94.0%)  changed or added relevant lines in 3 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+0.6%) to 93.115%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/unpacker.ts
46
47
97.87%

src/packer.ts
44
49
89.8%

Files with Coverage Reduction
New Missed Lines
%

src/packer.ts
1
87.74%

Totals

Change from base Build 420896339:
0.6%

Covered Lines:
207

Relevant Lines:
219

💛  - Coveralls


Error with Invoke-WPFMicrowin

Describe the bug
Error with Invoke-WPFMicrowin
To Reproduce
Steps to reproduce the behavior:

Download Win11_23H2_EnglishInternational_x64v2.iso from https://www.microsoft.com/en-us/software-download/windows11/.
Follow Microwin Instructions, selecting Windows 11 Pro as the SKU.
Start process.
See error.

Expected behavior
I expected the process to run with no errors.
Screenshots

Additional context
I'm currently on a Windows 10 machine, Region is Brazil, User name is André. When the process finishes, I still get a microwin.iso file in my Temp folder, but I don't think it is correct, as its size is 11GB+. Also, when downloading oscdimg.exe from CTT Github repo, I got the same hash error as @DiegcD.

This seems to be fixed already in a Pull Request: https://github.com/ChrisTitusTech/winutil/pull/1313.
You could try to run his version by:
irm https://raw.githubusercontent.com/CodingWonders/winutil/CW-MicroWin-AppxFix/winutil.ps1 | iex

But you have to build the iso again.
I tested and is working fine with that version.

Or maybe the issue is the accent in your Windows User name account.
You could try create other user account without accents or any special character and try run the toolkit again.

I will try those out. Thanks a lot!

Or maybe the issue is the accent in your Windows User name account. You could try create other user account without accents or any special character and try run the toolkit again.

I guess that the image unmount process has failed. The process shown in the screenshot above is deleting the files in the Windows image.
We should really detect whether the unmount command has succeeded, and if it's not, try again until it succeeds.

Should work with main branch now.


No way to get the mapping at a path position

I can get the ID of the node at a path position with node_at_path_position, but there's no way to get the corresponding Mapping object, without pulling out the entire Path manually.
There should be a mapping_at_path_position function.

Actually, you can't pull out the path manually either, since xg::XG::path(std::string const&) const isn't written.

I was working on xg paths this evening. But I didn't provide this. The
mapping gets encoded across a number of elements so it needs to be
reconstructed.
On Oct 29, 2015 10:56 PM, "adamnovak"<EMAIL_ADDRESS>wrote:

Actually, you can't pull out the path manually either, since xg::XG::path(std::string
const&) const isn't written.
—
Reply to this email directly or view it on GitHub
https://github.com/ekg/xg/issues/9#issuecomment-152351010.

I think it makes a lot of sense. If you can wait until my update tomorrow
please do as I'm making a number of other edits to XGPath.
Paths in xg are in a difficult spot for another reason. I'm using a
sdsl-lite compressed suffix array to store their names, but this is not
thread safe due to a single cache which the select support uses. I would
love to fix this upstream because it should be possible to store lots of
named paths. I'm thinking annotations like genes, exons, and transcripts.
But the other solution is to hack around it in xg.
On Oct 29, 2015 11:02 PM, "Erik Garrison"<EMAIL_ADDRESS>wrote:

I was working on xg paths this evening. But I didn't provide this. The
mapping gets encoded across a number of elements so it needs to be
reconstructed.
On Oct 29, 2015 10:56 PM, "adamnovak"<EMAIL_ADDRESS>wrote:

Actually, you can't pull out the path manually either, since xg::XG::path(std::string
const&) const isn't written.
—
Reply to this email directly or view it on GitHub
https://github.com/ekg/xg/issues/9#issuecomment-152351010.


Feature.functional test create balancer 37

@dflanigan
Fixes: #37
Addresses:
Initiation of functional tests (end-to-end/blackbox) for lbaasv2 driver.
Start:
Run:
cd test/functional
py.test -v -s .
Context:
This test runs end-to-end exercising the full openstack install of the lbaasv2 driver against a VE.
It asserts that the openstack system starts without a loadbalancer, and becomes aware of one with the proper "provider" field, upon creation.
It then verifies that the loadbalancer is removed upon delete.
It also verifies the corresponding creation and deletion of an appropriately named partition on the bigip.
NOTE:   Some utility fixtures included in draft form.

Looks Good ! Ship it !


"/dev/fd/62: No such file or directory" after installing rbenv-vars on FreeBSD

This appears to be the same as https://github.com/sstephenson/rbenv/issues/401 :smiling_imp: Will submit a pull request in a bit.

...aaaand it was never submitted.

Thanks @waywalker for submitting the PR. What needs to happen in order to merge this PR? I'd be happy to devote a few hours of my time ot make this happen.

Sounds great! https://github.com/rbenv/rbenv-vars/pull/20 is ready to be merged in :-)


Is there a way to get all entries including Ajax Controls and all to browserTimings table

Currently using this SDK we are not getting Ajax controls and all request to browserTimings table we are only getting http:// request. is there any way to track them ?

Hi, Can you please provide some more information, like

How are you consuming the SDK (via SDK / NPM)
What is the runtime / browser / version you are using
By Default the SDK will intercept XMLHttpRequests (if available -- depends on your runtime) unless you disable it via the "disableAjaxTracking"

Is the client attempting to send the requests (use the F12 developer console), and/or try using the browser based debug plugin extension (https://github.com/microsoft/ApplicationInsights-JS/tree/master/extensions/applicationinsights-debugplugin-js) which can be used to help identify and diagnose telemetry issues.

Hi, Can you please provide some more information, like

How are you consuming the SDK (via SDK / NPM)
What is the runtime / browser / version you are using
By Default the SDK will intercept XMLHttpRequests (if available -- depends on your runtime) unless you disable it via the "disableAjaxTracking"

Is the client attempting to send the requests (use the F12 developer console), and/or try using the browser based debug plugin extension (https://github.com/microsoft/ApplicationInsights-JS/tree/master/extensions/applicationinsights-debugplugin-js) which can be used to help identify and diagnose telemetry issues.

How are you consuming the SDK (via SDK / NPM)
==NPM
What is the runtime / browser / version you are using
== angular cli 8 / crome / angular 8

How are you consuming the SDK (via SDK / NPM)
==NPM
What is the runtime / browser / version you are using
== angular cli 8 / crome / angular 8

If you are using the fetch() API instead of XMLHttpRequest's you will need to enable fetch tracking by setting the config entry "disableFetchTracking" during initialization to false (it defaults to true -- don't track fetch calls) - https://github.com/Microsoft/ApplicationInsights-JS#configuration.
If you want to have the additional timings for the Ajax (XHR / fetch) calls you can also enable the "enableAjaxPerfTracking" (defaults to false), this will attempt (wait) for the browser to populate the resource timings (note: not always available) and will report the available timings with the Ajax request (includes DNS, redirect etc) -- https://github.com/microsoft/ApplicationInsights-JS/blob/master/extensions/applicationinsights-dependencies-js/src/ajaxRecord.ts#L60
For the main page view we don't currently report the full set of possible values only the basic ones
https://github.com/microsoft/ApplicationInsights-JS/blob/master/extensions/applicationinsights-analytics-js/src/JavaScriptSDK/Telemetry/PageViewPerformanceManager.ts#L30 -- there is a current bug the network time #1440
Have you tried the debug plugin yet?
As I believe this would be helpful in your case (Angular / Chrome) based

If you are using the fetch() API instead of XMLHttpRequest's you will need to enable fetch tracking by setting the config entry "disableFetchTracking" during initialization to false (it defaults to true -- don't track fetch calls) - https://github.com/Microsoft/ApplicationInsights-JS#configuration.
If you want to have the additional timings for the Ajax (XHR / fetch) calls you can also enable the "enableAjaxPerfTracking" (defaults to false), this will attempt (wait) for the browser to populate the resource timings (note: not always available) and will report the available timings with the Ajax request (includes DNS, redirect etc) -- https://github.com/microsoft/ApplicationInsights-JS/blob/master/extensions/applicationinsights-dependencies-js/src/ajaxRecord.ts#L60
For the main page view we don't currently report the full set of possible values only the basic ones
https://github.com/microsoft/ApplicationInsights-JS/blob/master/extensions/applicationinsights-analytics-js/src/JavaScriptSDK/Telemetry/PageViewPerformanceManager.ts#L30 -- there is a current bug the network time #1440
Have you tried the debug plugin yet?
As I believe this would be helpful in your case (Angular / Chrome) based

Thanks for the detailed information I tried everything but in browserTimeing Table we are only getting http:// request and not any other. Do you have any more thoughts on that ?

pageView table has these many entries

I tried debug plugin as well but it does not helped
Please let me know if you have any more idea
Thanks

Thanks for the detailed information I tried everything but in browserTimeing Table we are only getting http:// request and not any other. Do you have any more thoughts on that ?

pageView table has these many entries

I tried debug plugin as well but it does not helped
Please let me know if you have any more idea
Thanks

The browserTimings table only includes the initial page load, for the additional dependencies they should be in the "dependencies" table as a custom JSON blob field as the UX and backend doesn't have separate db fields for these optional values.
On only getting http:, if your using IE then this is a know issue that we worked around for :443 port only as we would not get told (by navigator) that when using :4200 it's also using https:
https://github.com/microsoft/ApplicationInsights-JS/blob/master/shared/AppInsightsCommon/src/Util.ts#L749
and https://github.com/microsoft/ApplicationInsights-JS/blob/master/shared/AppInsightsCommon/src/Util.ts#L700
If your using chrome / FF or edge (original or Chromium) then this issue doesn't not occur and we would get https://localhost:4200/ from the navigator object.
In this case what is the raw value that is sent to the backend (in the track call) -- using either the debug plugin or F12 dev tools - Network tab? -- it should be https://localhost and if it is I'll need to create an issue with the backend team to track it down -- but I believe they just treat this as a string field...

The browserTimings table only includes the initial page load, for the additional dependencies they should be in the "dependencies" table as a custom JSON blob field as the UX and backend doesn't have separate db fields for these optional values.
On only getting http:, if your using IE then this is a know issue that we worked around for :443 port only as we would not get told (by navigator) that when using :4200 it's also using https:
https://github.com/microsoft/ApplicationInsights-JS/blob/master/shared/AppInsightsCommon/src/Util.ts#L749
and https://github.com/microsoft/ApplicationInsights-JS/blob/master/shared/AppInsightsCommon/src/Util.ts#L700
If your using chrome / FF or edge (original or Chromium) then this issue doesn't not occur and we would get https://localhost:4200/ from the navigator object.
In this case what is the raw value that is sent to the backend (in the track call) -- using either the debug plugin or F12 dev tools - Network tab? -- it should be https://localhost and if it is I'll need to create an issue with the backend team to track it down -- but I believe they just treat this as a string field...


[Bug] You aren't supposed to be here: buff.ly

Body
When trying to access https://buff.ly/3woJOlc, I get this error message:

Version
Manifest-v2
What browser(s) are you seeing the problem on?
Firefox browsers
What platform are you seeing the problem on?
Computer (Windows, Linux, MacOS)
Anything else?
No response

Can you use fast forward won’t get updates (https://codeberg.org/Amm0ni4/bypass-all-shortlinks-debloated)


Add support for running a one off job using an exact time

This adds support for adding a job using an exact timestamp that will only be ran once

Sorry meant to open this against my fork!


Update README.md

I propose a few minor changes to the readme, stressing the origin of this tool in HSIM, and clarifying the compatibility of the two.

Good call, pull request merged and closed.


⚠ ClamAV has degraded performance

In 0dd8a99, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 50 ms

Resolved: ClamAV performance has improved in d9025dc.


Missing an easy way to get intermediate variables computed by the model

Is your feature request related to a problem? Please describe.
From a trained scVI model one can get the variable \rho (mean of the Gamma in the GammaPoisson) very easily with
model.get_normalized_expression(adata).
Here adata refers to some unseen data that I use for assessing the model performance.
Unfortunately I am not able to find an easy way to get other quantities that are computed from the neural network. In particular I would need expected value of the ZINB, not just \rho.
Describe the solution you'd like
A function for getting the distribution objects for intermediate quantities in the neural network, so that the user can manipulate them.
My approach
With some hacking I almost managed to get the quantity I need. Any help to adjust my workaround would be appreciated for the moment. Thanks.
I cloned the function model.get_elbo() to be able to access the inference() function inside the model. The output of inference() contains what I need, that is px_rate, px_r, px_dropout. So finally, inside my clone of get_elbo(), I added a modified copy of get_reconstruction_loss() to compute the expected values of the quantities I need.
My approach almost works, in the sense that as output I get the tensor I want, but with a small number in shape[0] (I guess that get_elbo takes a subset of the data to fastly compute the elbo).
# -------- explanation --------
# doing as in get_elbo() (scvi.core.models.vaemixin.py)
adata = model._validate_anndata(adata)
scdl = model._make_scvi_dl(adata=adata, indices=None, batch_size=None)

from scvi.core._log_likelihood import _CONSTANTS
import torch

# -------- explanation --------
# doing as in compute_elbo() (scvi.core._log_likelihood.py)
# get_elbo() (scvi.core.models.vaemixin.py) calls elbo() (core.data_loaders.scvi_data_loader.py),
# which then calls compute_elbo() (scvi.core._log_likelihood.py)
def my_compute_elbo(vae, data_loader, feed_labels=True, **kwargs):
    """
    Computes the ELBO.

    The ELBO is the reconstruction error + the KL divergences
    between the variational distributions and the priors.
    It differs from the marginal log likelihood.
    Specifically, it is a lower bound on the marginal log likelihood
    plus a term that is constant with respect to the variational distribution.
    It still gives good insights on the modeling of the data, and is fast to compute.
    """
    # Iterate once over the data and compute the elbo
    elbo = 0
    for i_batch, tensors in enumerate(data_loader):
        sample_batch = tensors[_CONSTANTS.X_KEY]
        local_l_mean = tensors[_CONSTANTS.LOCAL_L_MEAN_KEY]
        local_l_var = tensors[_CONSTANTS.LOCAL_L_VAR_KEY]
        batch_index = tensors[_CONSTANTS.BATCH_KEY]
        if feed_labels:
            labels = tensors[_CONSTANTS.LABELS_KEY]
        else:
            labels = None

        # kl_divergence_global (scalar) should be common across all batches after training
        reconst_loss, kl_divergence, kl_divergence_global = vae(
            sample_batch,
            local_l_mean,
            local_l_var,
            batch_index=batch_index,
            y=labels,
            **kwargs
        )
        elbo += torch.sum(reconst_loss + kl_divergence).item()
    n_samples = len(data_loader.indices)
    elbo += kl_divergence_global

    # return elbo / n_samples
    # -------- explanation --------
    # NOW HACKING, calling inference() (scvi.core.modules.vae.py)
    outputs = vae.inference(x=sample_batch, batch_index=batch_index, y=labels)
    x = sample_batch
    px_rate = outputs["px_rate"]
    px_r = outputs["px_r"]
    px_dropout = outputs["px_dropout"]
    from scvi.core.distributions import (
        NegativeBinomial,
        ZeroInflatedNegativeBinomial,
    )
    from torch.distributions import Poisson
    # -------- explanation --------
    # Reconstruction Loss (modified from get_reconstruction_loss() (scvi.core.modules.vae))
    if vae.gene_likelihood == "zinb":
        mean = (
            -ZeroInflatedNegativeBinomial(
                mu=px_rate, theta=px_r, zi_logits=px_dropout
            )
                .mean
        )
    elif vae.gene_likelihood == "nb":
        mean = (
            -NegativeBinomial(mu=px_rate, theta=px_r).mean
        )
    elif vae.gene_likelihood == "poisson":
        mean = -Poisson(px_rate).mean
    print('the mean:', mean)
    return elbo / n_samples, mean

# -------- explanation --------
# check that we have done the things right by comparing the elbo we get from my_compute_elbo()
# and the one from get_elbo(), then print the quantity we need
my_elbo, my_mean = my_compute_elbo(scdl.model, scdl)
my_elbo = -my_elbo
elbo = model.get_elbo(adata)
print(f'my_elbo = {my_elbo}, elbo = {elbo}')
assert np.isclose(my_elbo, elbo)
print(f'my_mean.shape = {my_mean.shape}')

Is this function what you want?
https://docs.scvi-tools.org/en/stable/api/reference/scvi.model.SCVI.get_likelihood_parameters.html#scvi.model.SCVI.get_likelihood_parameters
The docstring maybe isn't specific enough about what it provides.

Wow 👀 I have completely missed that function. It seems to be exactly what I am looking for. I am trying it tomorrow because I am with my phone now. Thanks a lot!

It worked thank you! This is the final code that I use to compute the expected value of the ZINB of the likelihood.
p = model.get_likelihood_parameters(adata)
    from scvi.core.distributions import ZeroInflatedNegativeBinomial

    m = ZeroInflatedNegativeBinomial(
        mu=torch.tensor(p["mean"]),
        theta=torch.tensor(p["dispersions"]),
        zi_logits=torch.tensor(p["dropout"]),
    ).mean.numpy()


Safari support for OES_texture_half_float

I couldn't find where in the repo support for OES_texture_half_float is located, so I'll just say it here.
Desktop Safari 13 and lower do not support it, while TP does.
Can be seen at https://caniuse.com/#feat=mdn-api_oes_texture_half_float

Thank you! :)


Fix: queries could be slower if they contain an expression on

the left side of a comparison, ( e.g: 2 + 1 > x ) instead of the right side

ack


stdenv: support mainProgram in meta

Motivation for this change
Support mainProgram as an attribute of meta for packages.
This is an attribute used by nix run to customize the main program of a package.
For example, pkgs.neovim provides a /bin/nvim executable which users would (almost certainly) prefer nix run to execute instead of a non-existing /bin/neovim.
This was recommended by @grahamc in #120662, and it requires this PR.
Things done

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

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

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

Thanks!


don't run after hooks when alert is present

Geckodriver has changed the default Firefox implementation.
Calling browser.window.present? no longer closes an alert if present, which was the problem when we discussed error checkers back in #283
If we are ok actually deprecating Legacy Firefox support with AfterHooks, this will make a lot of things significantly easier.

merged


Scanner closes unexpectedly in TabBarView

Good day,
I'm attempting to create something along the lines of the below image

However, nesting the mobile scanner within a TabBarView has caused some unexpected behavior.
Just swiping from side to side works as expected (when AutomaticKeepAliveClientMixin is used ).
Clicking on the MY CODE tab button and then swiping back to the SCAN CODE, causes the scanner to stop and display a white screen (as shown below).

QR code screen content:
Scaffold(
  appBar: AppBar(
    title: const Text('QR code'),
    actions: [],
    bottom: TabBar(
      controller: _tabController,
      tabs: const [
        SizedBox(child: Tab(text: 'MY CODE')),
        SizedBox(child: Tab(text: 'SCAN CODE')),
      ],
    ),
  ),
   body: TabBarView(
      controller: _tabController,
      children: <Widget>[
        const Center(
          child: Text('MY CODE'),
        ),
        ScannerWrapper(
          scannerController: _scannerController,
          onDetect: _onDetect,
        )
      ],
    ),
)

Scanner wrapper:
typedef OnDetect = Function(Barcode barcode, MobileScannerArguments? args);
class ScannerWrapper extends StatefulWidget {
  final MobileScannerController scannerController;
  final OnDetect onDetect;
  const ScannerWrapper({Key? key, required this.scannerController, required this.onDetect}) : super(key: key);

  @override
  _ScannerWrapperState createState() => _ScannerWrapperState();
}

class _ScannerWrapperState extends State<ScannerWrapper> with AutomaticKeepAliveClientMixin{
  @override
  Widget build(BuildContext context) {
    super.build(context);
    return Stack(
      children: [
        MobileScanner(
          controller: widget.scannerController,
          onDetect: widget.onDetect,
          allowDuplicates: false,
        ),
        QRScannerOverlay(overlayColour: Colors.black.withOpacity(0.7))
      ],
    );
  }

  @override
  bool get wantKeepAlive => true;
}

Is there a way around this?

Please try again with v3.0.0 and startDelay parameter.


update flux dependency after planner integration

@nathanielc @stuartcarnie there seems to be some non-deterministic behavior coming from the tests package where a test will fail if a service that it uses isn't up. This has only occurred for me as part of CI. I'm not sure if this is normal behavior. I'm hesitant to merge this update if this is not known or expected behavior.

If the test that's failing has nothing to do with flux, then this is likely good to merge.


Union types of tuples and never[] incorrectly mutate into array types

TypeScript Version:  master
Code
const t1 = [0, ''] as [number, string] | undefined || [];
const [a1 = 0] = [0, ''] as [number, string] | undefined || [];
const t2 = [0, ''] as [number, string] | never[];
const [a2 = 0] = [0, ''] as [number, string] | never[];

Both types of t1 and t2 are the same type [number, string] | never[]. But the results of destructuring assignment is different. a1 is number type but a2 is number | string type. a2 should also be number type.

a2 is now number as expected


Add support for multiple format options at the same time

It is now possible to specify multiple output formats to be used in a
single run of the test suite. To specify multiple options pass in a
comma separated list of format options. For example --format junit,text

Created a c style version of the change. I figured if I did both options you could choose.

The other option was chosen so closing this pull request as it's no longer needed.


Insert/Update Sections removes digits at the beginning of the titles

Markdown Sections: Insert/Update and Delete operations do not work correctly on sections that start with digits, even if they are not separated by space from remaining symbols. For example, Insert/Update on markdown file with this sample content
# 3D surface
## 10 ways to do something

results in
# 1.
Delete operation also removes numbers from the title if there is no section numbers (works fine if they are present).
# D surface
## ways to do something with 3D surface

Hi, i'm sorry for this bug, i will fix it.
Thank you~

Thank you! You may see, that I've fixed this issue for the latest stable version in https://github.com/AlanWalk/markdown-toc/pull/44.

Thank you, i will merge it~


Getting unlighthouse to run through Docker.

Details
Is there any guide on how to get unlighthouse to work with Docker? I've been trying for the past day ish but cant get it to run.
Here is the error im getting:
Error: Unable to launch browser for worker, error message: Failed to launch the browser process!
And here is my Dockerfile
FROM node:slim AS app

# We don't need the standalone Chromium
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true

# Install Google Chrome Stable and fonts
# Note: this installs the necessary libs to make the browser work with Puppeteer.
RUN apt-get update && apt-get install curl gnupg -y \
  && curl --location --silent https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
  && sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
  && apt-get update \
  && apt-get install google-chrome-stable -y --no-install-recommends \
  && rm -rf /var/lib/apt/lists/*
RUN npm i -g @unlighthouse/cli puppeteer
CMD npx unlighthouse-ci --site https://simonh.dev

I just want to try out this tool but without a functional docker image it's not really feasible. Is there support for an official image on the roadmap?

Maybe not exactly how you want it as you're interested in running unlighthouse-ci instead of the web frontend.
However i did manage to get unlighthouse running via docker
https://github.com/indykoning/unlighthouse-docker
i think the most important steps were the user and the --no-sandbox argument https://github.com/indykoning/unlighthouse-docker/blob/master/unlighthouse.config.ts#L3

Thanks, I was looking for something like this. Now I want to be able to stop the docker container when the scanning is finished but I cant seem to get the hooks working https://unlighthouse.dev/api/#worker-finished

Got it working
export default {
    puppeteerOptions: {
        args: ["--no-sandbox", "--disable-setuid-sandbox"],
    },
    server: {
        open: false,
    },
    cache: false,
    hooks: {
        'worker-finished': async () => {
            process.exit(0);
        }
    }
}

Thanks guys, I have added some notes about the Docker usage here from your discussions: https://unlighthouse.dev/guide/guides/docker
Let me know if you have anything to add.


feature request: bolt interactive mode

Currently it is not possible to use bolt for interactive ssh remote sessions.
Example:
# continuously analyze the io behavior of a number of remote hosts
bolt command run "vim /etc/puppetlabs/puppet/puppet.conf; puppet agent --test" -n host1,host2,host3

# perform distribution updates
bolt command run "do-release-upgrade && reboot" -n host1,host2,host3

Comparable to https://github.com/scoopex/hostctl (-l, -p) it woule be nice to have three additional feature-options:

--login: just invoke a login to the remote machine in single threaded mode with direct stdin/stdou/stderr
--interactive : execute the specified script/command in single threaded mode with direct stdin/stdou/stderr
--prompt:  can be used in combination with --interactive, invoke the command and ask for (c)ontinue to next host, (r)etry command, (s)hell invocation, (q)uit after the execution

Just my opinion here (and I'm not a collaborator/member of this project), but I think this is out of scope for bolt. There are tools out there to do this, and it seems contradictory to the nature of puppet (which bolt is designed to be utilized with).
Puppet is for automation, and bolt is a way to trigger that automation. If you've gotten to the point of needing interactions and prompts, you're no longer talking automation, and that feels like it no longer belongs.

I agree that this seems fairly different from the use-cases Bolt is targeting. I don't see an argument for why adding this to Bolt would be any better than just using hostctl or similar tools.

My intention for this feature request was that the described helps for the following situations:

if something went wrong with a number of hosts, this simplifies the problem inspection
i often perform canary tests to find problems with automation code, after a number of hosts i can change to unattended execution
this helps to manage critical automation tasks (like distribution upgrades) in a half-automated way

I really love bolt, and these feature seems to be the last remaining part to eliminate all the insufficient cluster-execution / cluster-shell tools i used in the last years

Probably it would be a good idea to split this three parts:

#102 - streaming of stderr/stdout output
support for canary runs with user interaction with : (c)ontinue to next host, (r)etry command, (s)hell invocation, (q)uit
support for non paralleled interactive shell sessions with interaction over stdin, stderr, stdout

What do you think?

(1) seems doable. (2) I think continue, retry, quit make sense, shell invocation starts to feel like a substantial investment in a new direction, which (3) continues. I can see how interactive shells using inventory would be valuable, but I don't see my team going in that direction any time soon. Maybe we could get there by invoking a separate tool to handle the interactive session?


Read file synchronously

The plug-in is currently broken for PATCH, PUT and POST requests. It tries to parse undefined as JSON which obviously fails:
% echo '{ "name": "foo" }' | heroku api POST /apps
 ▸    Request body must be valid JSON

I changed to read the file synchronously. This had the added benefit of being able to remove two packages.
% echo '{ "name": "foo" }' | heroku api POST /apps
 ▸    Name is already taken

The plug-in broke in 599b6e4bb2070ca9c93d8800c5fd10e3ba508f18. Should we improve the testing so it can't happen again?

yes, it's tricky because this plugin falls under murky ownership. I think @heroku/cli should take real ownership of this plugin and get the tests to work again.


Broken thread safety

lazy_loader loaded modules are not thread-safe: when concurrently accessed from several threads all but the first thread get partially loaded module missing most of functionality.
For example librosa uses lazy_loader to load resampy and gets the following error:
AttributeError: module 'resampy' has no attribute 'resample'

To Reproduce
Run the following snippet:
import librosa
import threading
import numpy as np

def resample():
    librosa.resample(np.zeros(1000), orig_sr=24_000, target_sr=16_000, res_type="kaiser_best")

for _ in range(5):
    threading.Thread(target=resample).start()

Expected behavior
No errors reported.
Actual output
Traceback (most recent call last):
Traceback (most recent call last):
  File "C:\Build\envs\dec5\lib\threading.py", line 870, in run
Traceback (most recent call last):
  File "C:\Build\envs\dec5\lib\threading.py", line 870, in run
  File "C:\Build\envs\dec5\lib\threading.py", line 870, in run
Traceback (most recent call last):
  File "C:\Build\envs\dec5\lib\threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
          File "D:\source\internal_ai_deepaudio\training\break_lazy_load.py", line 7, in resample
self._target(*self._args, **self._kwargs)self._target(*self._args, **self._kwargs)

  File "D:\source\internal_ai_deepaudio\training\break_lazy_load.py", line 7, in resample
  File "D:\source\internal_ai_deepaudio\training\break_lazy_load.py", line 7, in resample
    self._target(*self._args, **self._kwargs)
  File "D:\source\internal_ai_deepaudio\training\break_lazy_load.py", line 7, in resample
    librosa.resample(np.zeros(1000), orig_sr=24_000, target_sr=16_000, res_type="kaiser_best")
  File "C:\Build\envs\dec5\lib\site-packages\librosa\core\audio.py", line 677, in resample
    librosa.resample(np.zeros(1000), orig_sr=24_000, target_sr=16_000, res_type="kaiser_best")
  File "C:\Build\envs\dec5\lib\site-packages\librosa\core\audio.py", line 677, in resample
    librosa.resample(np.zeros(1000), orig_sr=24_000, target_sr=16_000, res_type="kaiser_best")
  File "C:\Build\envs\dec5\lib\site-packages\librosa\core\audio.py", line 677, in resample
    librosa.resample(np.zeros(1000), orig_sr=24_000, target_sr=16_000, res_type="kaiser_best")
  File "C:\Build\envs\dec5\lib\site-packages\librosa\core\audio.py", line 677, in resample
    y_hat = resampy.resample(y, orig_sr, target_sr, filter=res_type, axis=axis)
AttributeError: module 'resampy' has no attribute 'resample'
    y_hat = resampy.resample(y, orig_sr, target_sr, filter=res_type, axis=axis)
    y_hat = resampy.resample(y, orig_sr, target_sr, filter=res_type, axis=axis)
AttributeError: module 'resampy' has no attribute 'resample'AttributeError
: module 'resampy' has no attribute 'resample'
    y_hat = resampy.resample(y, orig_sr, target_sr, filter=res_type, axis=axis)
AttributeError: module 'resampy' has no attribute 'resample'
python-BaseException
python-BaseException
python-BaseException
python-BaseException
Exception in thread Exception in thread Thread-8:
Exception in thread Traceback (most recent call last):
Thread-5:
Traceback (most recent call last):
  File "C:\Build\envs\dec5\lib\threading.py", line 932, in _bootstrap_inner
  File "C:\Build\envs\dec5\lib\threading.py", line 932, in _bootstrap_inner
Thread-9:
Traceback (most recent call last):
  File "C:\Build\envs\dec5\lib\threading.py", line 932, in _bootstrap_inner
    self.run()
  File "C:\Build\envs\dec5\lib\threading.py", line 870, in run
    self.run()
  File "C:\Build\envs\dec5\lib\threading.py", line 870, in run
        self._target(*self._args, **self._kwargs)
self.run()
  File "C:\Build\envs\dec5\lib\threading.py", line 870, in run
  File "D:\source\internal_ai_deepaudio\training\break_lazy_load.py", line 7, in resample
    self._target(*self._args, **self._kwargs)
  File "D:\source\internal_ai_deepaudio\training\break_lazy_load.py", line 7, in resample
    librosa.resample(np.zeros(1000), orig_sr=24_000, target_sr=16_000, res_type="kaiser_best")
  File "C:\Build\envs\dec5\lib\site-packages\librosa\core\audio.py", line 677, in resample
    self._target(*self._args, **self._kwargs)
  File "D:\source\internal_ai_deepaudio\training\break_lazy_load.py", line 7, in resample
    librosa.resample(np.zeros(1000), orig_sr=24_000, target_sr=16_000, res_type="kaiser_best")
  File "C:\Build\envs\dec5\lib\site-packages\librosa\core\audio.py", line 677, in resample
    y_hat = resampy.resample(y, orig_sr, target_sr, filter=res_type, axis=axis)
    y_hat = resampy.resample(y, orig_sr, target_sr, filter=res_type, axis=axis)
AttributeError: AttributeError: module 'resampy' has no attribute 'resample'
module 'resampy' has no attribute 'resample'    librosa.resample(np.zeros(1000), orig_sr=24_000, target_sr=16_000, res_type="kaiser_best")

  File "C:\Build\envs\dec5\lib\site-packages\librosa\core\audio.py", line 677, in resample
python-BaseException
    y_hat = resampy.resample(y, orig_sr, target_sr, filter=res_type, axis=axis)
AttributeError: module 'resampy' has no attribute 'resample'
Exception in thread Thread-6:
Traceback (most recent call last):
  File "C:\Build\envs\dec5\lib\threading.py", line 932, in _bootstrap_inner
    self.run()
  File "C:\Build\envs\dec5\lib\threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "D:\source\internal_ai_deepaudio\training\break_lazy_load.py", line 7, in resample
    librosa.resample(np.zeros(1000), orig_sr=24_000, target_sr=16_000, res_type="kaiser_best")
  File "C:\Build\envs\dec5\lib\site-packages\librosa\core\audio.py", line 677, in resample
    y_hat = resampy.resample(y, orig_sr, target_sr, filter=res_type, axis=axis)
AttributeError: module 'resampy' has no attribute 'resample'

Software versions
Windows-10-10.0.22621-SP0
Python 3.8.0 (default, Nov  6 2019, 16:00:02) [MSC v.1916 64 bit (AMD64)]
NumPy 1.23.5
SciPy 1.10.1
librosa 0.10.1
INSTALLED VERSIONS
------------------
python: 3.8.0 (default, Nov  6 2019, 16:00:02) [MSC v.1916 64 bit (AMD64)]

librosa: 0.10.1

audioread: 3.0.1
numpy: 1.23.5
scipy: 1.10.1
sklearn: 1.3.2
joblib: 1.3.2
decorator: 5.1.1
numba: 0.58.1
soundfile: 0.12.1
pooch: v1.8.0
soxr: 0.3.7
typing_extensions: installed, no version number available
lazy_loader: installed, no version number available
msgpack: 1.0.7

numpydoc: None
sphinx: None
sphinx_rtd_theme: None
matplotlib: None
sphinx_multiversion: None
sphinx_gallery: None
mir_eval: None
ipython: None
sphinxcontrib.rsvgconverter: None
pytest: None
pytest_mpl: None
pytest_cov: None
samplerate: None
resampy: 0.4.2
presets: None
packaging: 23.2

I had to repeat it a few times to trigger this behavior, but I see it.

Standalone reproducer:
import threading
import time
import lazy_loader as lazy

def repeat_lazy():
    time.sleep(0.5)
    np = lazy.load('numpy')

for _ in range(50):
    threading.Thread(target=repeat_lazy).start()

@eindenbom Can you give #90 a try?

I do not think #90 fixes the same race condition as reported in this issue. You are fixing a possible race (I am not sure that there is any) in lazy_loader.load(), while in librosa it is executed at librosa load time and therefore protected by module load lock.
The race I have reported is in importlib.util._LazyModule.__getattr__(), line 228: self.__class__ = types.ModuleType.
The __class__ meta attribute is replaced BEFORE actual module is loaded. This creates a race condition if module attribute is requested concurrently from another thread.

The tests confirm that the other race condition exists, but you are right that #90 does not address this issue.

I do not think #90 fixes the same race condition as reported in this issue. You are fixing a possible race (I am not sure that there is any) in lazy_loader.load(), while in librosa it is executed at librosa load time and therefore protected by module load lock.
The race I have reported is in importlib.util._LazyModule.__getattr__(), line 228: self.__class__ = types.ModuleType. The __class__ meta attribute is replaced BEFORE actual module is loaded. This creates a race condition if module attribute is requested concurrently from another thread.

Agreed, this is a CPython bug:
import importlib
import threading
import sys

spec = importlib.util.find_spec('http')
module = importlib.util.module_from_spec(spec)
http = sys.modules['http'] = module

loader = importlib.util.LazyLoader(spec.loader)
loader.exec_module(module)

def check():
    return http.HTTPStatus.ACCEPTED == 202

for _ in range(5):
    threading.Thread(target=check).start()

This looks painful to fix, since attempting to attach a lock to the _LazyModule class or instance would result in a recursive call to __getattribute__. Avoiding that is why self.__class__ is replaced before doing anything else.

Thanks for investigating, @effigies! Adding time.sleep(0.2) into check makes failure more reliable for me.

Can we simply lock up exec_module?
import importlib
import threading
import sys
import time

spec = importlib.util.find_spec('http')
module = importlib.util.module_from_spec(spec)
http = sys.modules['http'] = module

lock = threading.Lock()

def lock_func(f):
    def locked(*args, **kwargs):
        with lock:
            return f(*args, **kwargs)
    return locked

loader = importlib.util.LazyLoader(spec.loader)
loader.exec_module = lock_func(spec.loader.exec_module)
loader.exec_module(module)

def check():
    time.sleep(0.2)
    return http.HTTPStatus.ACCEPTED == 202

for _ in range(5):
    threading.Thread(target=check).start()

I don't think so, because exec_module happens at lazy load time. The race condition happens at the actual attribute lookup.

Yes, but look at the above example, which wraps exec_module in a lock.

In [1]: import importlib
   ...: import threading
   ...: import sys
   ...: import time
   ...:
   ...: spec = importlib.util.find_spec('http')
   ...: module = importlib.util.module_from_spec(spec)
   ...: http = sys.modules['http'] = module
   ...:
   ...: lock = threading.Lock()
   ...:
   ...: def lock_func(f):
   ...:     def locked(*args, **kwargs):
   ...:         with lock:
   ...:             return f(*args, **kwargs)
   ...:     return locked
   ...:
   ...: loader = importlib.util.LazyLoader(spec.loader)
   ...: loader.exec_module = lock_func(loader.exec_module)
   ...: loader.exec_module(module)
   ...:
   ...:
   ...: def check():
   ...:     time.sleep(0.2)
   ...:     return http.HTTPStatus.ACCEPTED == 202
   ...:
   ...: for _ in range(5):
   ...:     threading.Thread(target=check).start()
   ...:

Exception in thread Thread-2 (check):
Traceback (most recent call last):
  File "/home/chris/mambaforge/envs/default/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/home/chris/mambaforge/envs/default/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "<ipython-input-1-1b0c7fd1f576>", line 25, in check
Exception in thread Thread-5 (check):
Traceback (most recent call last):
  File "/home/chris/mambaforge/envs/default/lib/python3.10/threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "/home/chris/mambaforge/envs/default/lib/python3.10/threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "<ipython-input-1-1b0c7fd1f576>", line 25, in check
AttributeError: module 'http' has no attribute 'HTTPStatus'
AttributeError: module 'http' has no attribute 'HTTPStatus'

Hrm, yes, looks like I have to use lock_func(spec.loader.exec_module), but not sure how that alters behavior.

The loader isn't where the race is. I might be wrong, but I don't think that will protect the actual critical operations.

Right, so we'll have to ensure "attribute access + lazy loading" becomes an atomic operation.

I went ahead and opened https://github.com/python/cpython/issues/114763. I think I have a fix.

@eindenbom If you're prepared to build your whole dependency tree for 3.13-dev, you could test out https://github.com/python/cpython/issues/114763. I suspect it can be rebased on the 3.12 branch as well, if you'd prefer.

Should be out in 3.11.9 (https://github.com/python/cpython/pull/115871 - ETA April 1) and 3.12.3 (https://github.com/python/cpython/pull/115870 - ETA April 9).

@effigies Does this affect / make unnecessary https://github.com/scientific-python/lazy_loader/pull/90?

No, my read is that these are two independent races.


Second italic word in title gets upper case in BibLatex export

Debug log ID
ZPUZ8HBI-refs-euc/6.7.240-6
What happened?
In my Zotero library, I have entries containing species names which are composed of an upper case genus epthet and a lower case species epithet. Both should be in italics.
In the Zotero title field, it looks like this:
Kairomone response in Thanasimus predators to pheromone components of Ips typographus
In my file that I export via Better BibLaTeX, I get the following:
title = {Kairomone Response in {{{\emph{Thanasimus}}}} Predators to Pheromone Components of {{{\emph{Ips}}}}{\emph{ Typographus}}}
Note the upper case last word. I attached the output *.bib file.
Exported Items.bib.txt
I expect it to be lower case and both word to be in one \emph-command: {\emph{Ips typographus}}
Thank you for your quick reply to my opened discussion https://github.com/retorquere/zotero-better-bibtex/discussions/3014#discussion-7271360

I can understand the surprise, but that is actually correct. Bib(La)TeX expects Title Case titles, and since typographus is not case-protected, it gets converted to Title Case. For things like proper nouns in all-lowercase, you will want to have something like
Kairomone response in Thanasimus predators to pheromone components of Ips typographus

that's not pretty, but this is how Zotero expects it. Your original input would also have gone wrong if you render it to a Title-Casing style with Zotero itself (I believe Chicago does this), and the way to protect against it is this same way.
If you want to have all ... behave like ..., I can write you a postscript that does that during export.

You can turn that behavior off if you want to though:
https://retorque.re/zotero-better-bibtex/installation/preferences/export/index.html#apply-title-casing-to-titles
https://retorque.re/zotero-better-bibtex/installation/preferences/export/index.html#apply-case-protection-to-capitalized-words-by-enclosing-them-in-braces

Ah, I see. That makes sense.
I can live with the suggested workarounds for now. However, I guess all biologists out there will sooner or later run into this issue. Since the case-changing behaviour does make sense, the cleanest solution would probably be to have an option in a future version to suppress case-changing for italicized words, like you proposed.
Many thanks for pointing this out! It would have taken me a long time to figure it out.

I am not adding an option to suppress case-changing for italicized words. I would be happy to post a postscript that does it though, that would just be added to https://retorque.re/zotero-better-bibtex/exporting/scripting/index.html

Sounds good to me. This would be much appreciated, since we are talking of hundreds of papers. Thanks!

https://retorque.re/zotero-better-bibtex/exporting/scripting/index.html#case-protect-italicized-text
mind that this only works for BBT export. If you render your bibliography in Word or LibreOffice in a title-case style, that will still uppercase the T.

That works perfectly! Thank you!


Use Case: Document Retrieval (with LLMs tagging)

Use Case: Document Retrieval (with LLMs taggin)
Hi there 👋 Thanks for the amazing library, I've had a tons of fun using it.
I have added a new use case, it is document retrieval but with the addition of tagging the documents with LLMs. In my example, I am doing similarity search between an user input and a set of Disney song in order to recommend a song based on the user's mood/emotions/vibes . I've noticed that if you do that directly between the user's input and the lyrics the results are not great. So I've come up with what I've called LLMs tagging, basically:

you take the documents you want to embed and you use a LLMs to create a set of tags and you embed the tags
you take the user input and you use an LLMs to create the set of tags and you embed the tags
finally, you do similarity search between the tags

I've build FairytaleDJ using this approach and I've written an article and I also have a demo on Hugging Face Spaces
Let me know if markdown follows your standards
Thanks a lot 😄
Fra

Thanks a lot @hwchase17 for the reply, any idea where I could include it? Is there another very similar use case? If so, I could add a paragraph there :smile:

Oh, it looks like somehow it got deleted from my side ...


Attribute timestamp?

Ideally each attribute should have a timestamp in order for the client to be able to determine the time for when the attribute value was last updated.

For now I don't see much benefit in this - it requires a big change in the datamodel and its less efficient.
What I can imagine as a middle-ground is a timestamp on node level to update when ANY attribute updates.
What we do in HA is just treat all attributes as new/updated at startup and then just listen to all attribute changed events.

It would certainly help to have a timestamp at the node level.

It would certainly help to have a timestamp at the node level.

OK, I'll see if I can add that quickly in somewhere in the next couple of days


Crosscheck namespaces for all plugins (to resolve the plugin update feature)

Too time consuming. Each developer needs to do it themselves. Most plugins are too old or unmaintained to correct the installation part as there is no gurantee that they still work.


Close Tooltip when Pay Button is Clicked

In the purchase flow, when the Pay button is clicked and the confirmation tooltip is visible, clicking outside the tooltip should close it. Currently clicking on the Pay button doesn't close the tooltip.

In retrospec, this is fine how it is, since clicking the pay button reopens the confirm tooltip, which is expected behavior.


Add checksum to vault download on install-vault?

First, many thanks for your work on these modules --- they've been incredibly valuable.
I noticed that the install-vault script downloads the binary from Hashicorp when building the Packer image. There seems like a way to snatch defeat from the jaws of victory here: if someone compromises that file-server, they could replace the installer and then all is lost.

That's a very fair point, and we've actually been adding more checksums across our other, commercial modules recently. I'd definitely welcome a PR for this. Here's a sample of code I used on a module for running Kafka that would work here:
echo "Downloading Kafka KEYS and PGP Signature file so we can verify the integrity of the Kafka distribution files"
wget "$artifact_asc_download_url"
wget "$kafka_keys_download_url"

echo "Verifying integrity of the Kafka distribution files"
gpg --import "$kafka_keys_name"
gpg --verify "$artifact_asc_name" "$artifact_name"


download csv feature

Related Issue
download csv feature
Closes: #337
Describe the changes you've made
Give a clear description what modifications you have made
Type of change
What sort of change have you made:

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

Mention any unusual behaviour of your code (Write NA if not)
Any unusual behaviour of your code
Additional Info (optional)
Any additional information you want to give
Checklist:

[ ] My code follows the guidelines of this project.
[ ] I have performed a self-review of my own code.
[ ] I have commented my code, particularly whereever it was hard to understand.
[ ] My changes generate no new warnings.
[ ] Any dependent changes have been merged and published in downstream modules.

@ankitapuri don't forget to run
pip install -r requirements.txt


Fix runtime error when installing with pnpm

Description

changes readFileSync to raw vite import to prevent error when installing astro-vtbot with pnpm
fixes #199

Tests

TBD

@martrapp thanks for helping me with testing :)
Docs & Examples

just bugfix

Hi Lukas, great, your change looks very good to me.
Thank you so much for taking care!
I'm happy to do the further testing. I'm already convinced that this change is a real improvement for the stability and maintainability of the code!

That's great to hear! As I said before, let me know if you need any help testing this.


OSError: "JVM DLL not found", but jvm.dll does exists.

I haved installed jre and set Environment Java_Home, and other applications that rely on JVM such as neo4j works well.
Environment
python: Miniconda Python 3.7.3
JVM: jre1.8.0_212， 64bit
jpype: 0.7，64bit

emmm... I reboot the PC, it works well.


OpenSSH Known hosts format re-implemented

Hi Shikhar,
I've re-implemented the Verifier as per the discussion with Krishnan. Also see gist: https://gist.github.com/1321719#comments
He's now verifying this. I'll also have a look at his other bug. Don't merge yet, but do have a look at the code :)
Regards,
Jeroen

Awesome, I see you added some docs on the format as well & better tests. Will review this weekend.
p.s. Can you make it 4 spaces? Should make the diff less noisy

@shikhar: in the diff you can use ?w=1 in the url to ignore whitespace, but I'll reformat the code with 4 spaces as indent.


No OTA error

https://imgur.com/gallery/WeupQSp
No OTA update on phone. All log is on the link provided. Any help would be greatly appreciated!

See this https://twitter.com/jakeashacks/status/1103747007745835011?s=21.

Still no luck chief. No worries. Will be patiently waiting until an update fixes the issue. Thanks!

If you have the tv profile installed delete it and do the steps again

I don't have the tvos downloaded but thanks for the help!


wordlists: init

Description of changes
This is a simplified take on #104712 and was inspired by it a lot
Things done

Built on platform(s)

[X] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[X] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[X] Tested basic functionality of all binary files (usually in ./result/bin/)
23.11 Release Notes (or backporting 23.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[X] Fits CONTRIBUTING.md.

https://github.com/NixOS/nixpkgs/pull/104712/files#diff-2686bfedb20ad54b4cd53e6a12dd787b4b62aa4b7c6d93d2311702706105e24a added documentation to the manual. It would be nice to have documentation added here to know how to use the wordlists at a high level.
For example now, it's unclear to me how to use the wordlists package to get a shell (through nix-shell in particular) with a set of specified wordlists.

I don't think the manual is a good place for the documentation of this package, but I can add some docs to the met long description which would probably be easiest to find for users. To use the package with a specific set of word lists you would overwrite the arg parameter with --arg which is somewhat common in nix, but I can write some docs for that.

I don't think the manual is a good place for the documentation of this package

Why do you think that?
There is a space for package-related documentation in the manual already: https://nixos.org/manual/nixpkgs/stable/#chap-packages .

Because its hard to find that for users compared to the description or longDescription attribute because both of them are shown in search.nixos.org but I can add a section there as well and link it.

@Pamplemousse  I added some docs to the long description, can you check them?

cc @tochiaha

Result of nixpkgs-review pr 260240 run on x86_64-linux 1

29 packages built:

asn
checkSSLCert
crowbar
crowbar.dist
das
das.dist
gnome.gnome-nettool
home-assistant-component-tests.nmap_tracker
librenms
nmap
nmapsi4
python310Packages.netmap
python310Packages.netmap.dist
python310Packages.python-nmap
python310Packages.python-nmap.dist
python310Packages.wfuzz
python310Packages.wfuzz.dist
python311Packages.netmap
python311Packages.netmap.dist
python311Packages.python-nmap
python311Packages.python-nmap.dist
wfuzz (python311Packages.wfuzz)
wfuzz.dist (python311Packages.wfuzz.dist)
rmount
rockyou
rustscan
seclists
unimap
wordlists

This pull request has been mentioned on NixOS Discourse. There might be relevant details there:
https://discourse.nixos.org/t/improvement-proposal-wordlists-packages-for-a-better-security-pentest-user-experience/43310/6


tspan's ExceptionInfo is null.

I accessing the HTTP service make an error. in tspan, tspan's Err is 1 but  tspan's  ExceptionInfo is null , this err msg is in eventlist.
Is there an error in the event list， tspan’s err is 1?

Hi @shaocongcong
I'm not sure if I understood your question, but tspan's ExceptionInfo could be null if exception's message is null.
Also, if tspan's err is 1, then one of the interceptors would have recorded an exception.

I did an experiment here, requesting a wrong network address in a tomcat service, and printing the tspan information found the following problem:

The err field of tspan is 1, but the ExceptionInfo field is empty and the error message is in the eventlist.
The exception to the access address appears twice in the eventlist.

I used the version v1.8.0 and recently found a problem.
The reported stat data in TAgentStatBatch.Gc.GcDetailed.JvmPoolPermGenUsed is -1.

Hi @shaocongcong
Span's error field will be set to 1 if any of it's span events records an exception (via SpanEventRecorder.recordException(Throwable) and the span's exception info field will be empty if the error was set this way.
Since you have errors in the span event list, I think this is what happened.
The exception may also appear more than once if the exception is propagated up the call stack with more than 1 method traced by the agent.
(All plugin interceptors encountered during the propagation will record the exception)
Regarding your second issue, if you're running your application on Java 8, it will be -1 as permgen is removed. If you're not running on Java 8, please check and let me know if other detailed gc metrics are being collected.

Hi @Xylus
Thank you for your reply. I have two more questions to ask for help.

Which field does Permgen take in JDK version 1.8
When testing dubbo service, I found that sometimes the KeyTime in TSpanChunk is 0

Hi @shaocongcong
Happy to help.

You might want to check metaspace for Java 8
Can't really figure out what's going on without more detail/a way to replicate it. But you might want to check the span events in the span chunk as they key time assumes the start time of the first span event (ordered by sequence) in the span chunk.

KeyTime in TSpanChunk is currently not used
KeyTime is used in SpanV2 compression spec for grpc
https://github.com/naver/pinpoint/blob/6bb99cab7d48196f41fc40418927e3470ad606d2/profiler/src/main/java/com/navercorp/pinpoint/profiler/context/compress/SpanProcessorProtoV2.java#L68

@Xylus @emeroad
Thank you for your answers!


ToView method

In Adding Platform Specific Views, the examples all imply that there is a ToView() method on each C# Platform Specific View.  Is this actually the case, or is this pseudo-code for "implement this in an inherited class"? My libraries do not present this functionality.

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

ID: 74c821e6-ae09-bbe7-7bc5-0062c2bb29fb
Version Independent ID: 0daa9061-aebb-529f-2bf1-f2c7b883bcc3
Content: Native Views in C# - Xamarin
Content Source: docs/xamarin-forms/platform/native-views/code.md
Product: xamarin
GitHub Login: @davidbritch
Microsoft Alias: dabritch

Hi @hanseltime
The ToView method is implemented in Xamarin.Forms as an extension method - on iOS in LayoutExtensions.cs - https://github.com/xamarin/Xamarin.Forms/blob/9fe5372c1d80ca8fcff0c4fc397d25f91f6b61d3/Xamarin.Forms.Platform.iOS/Extensions/LayoutExtensions.cs#L31
Therefore, to use this method you have to add a using statement for the appropriate platform namespace - e.g. using Xamarin.Forms.Platform.iOS.


Utility to hash reconciliation

Reported by werndlymob, Aug 9, 2012
A new utility that goes through all files in your collection, and makes sure that the hash in the database matches the physical hash.
This is to check for corruption.
Should run on low disk priority

So looking forward to this.  I had a issue with a drive in my Synology unit, and ended up corrupting 2 different anime series.  But to verify everything else I am running a batch file that calls ffmpeg to try and encode the file to NULL, to insure the video file is playable.  Since I have 7TB of files, this is taking a long time, and if the batch file gets interrupted, I will have to call it for each individual folder.
The windows batchfile that I am using:
set ffm="C:\Program Files\ffmpeg\bin\ffmpeg.exe"
set frmt=*.mkv
cd "Z:\Anime\Sorted"
for /R %%f in (%frmt%) do %ffm% -v error -i "%%f" -f null - 2>error.log
@echo **********************************
@echo **** Press any key to finish *****
@echo **********************************
pause
Also using filebot to put a crc in the extended attributes so I can check for differences in the future faster, but again, if this could be native in JMM, that would be fantastic.  I had actually come here today to add a request for custom utilities section, where I could put items like this that JMM would call against marked entries, but having a crc check native would be so much faster.

Done in 3.7


CookieAuthenticationHandler returns authentication ticket in the cookie value instead of sessionKey

I have defined a Redis implementation of ITicketStore to CookieMiddleware. Is my assumption not right that when SessionStore is defined for the cookiemiddleware that middleware needs to return the SessionKey in the cookie value instead of value of AuthenticationTicket. Please help me understand this little more.
 **var cookieValue = Options.TicketDataFormat.Protect(ticket, GetTlsTokenBinding());**

                var cookieOptions = BuildCookieOptions();
                if (ticket.Properties.IsPersistent && _refreshExpiresUtc.HasValue)
                {
                    cookieOptions.Expires = _refreshExpiresUtc.Value.ToUniversalTime();
                }

                Options.CookieManager.AppendResponseCookie(
                    Context,
                    Options.CookieName,
                    cookieValue,
                    cookieOptions);

Scroll up a few lines:
https://github.com/aspnet/Security/blob/dev/src/Microsoft.AspNetCore.Authentication.Cookies/CookieAuthenticationHandler.cs#L189-L197

I saw these lines before, my question is should we be sending the sessionKey as "cookieValue"instead of whole Authenticket if SessionStore is not null??

We do it this way because the serialization logic only understands auth tickets. We could bypass it but it would require divergent code paths. It would also make the serializer less pluggable.

OK, make sense.


Docs: Enum defaults to true

The README has:
Raygun4MauiSettings raygunMauiSettings = new Raygun4MauiSettings {
    // ...
    MinLogLevel = LogLevel.Debug, // defaults to true
    MaxLogLevel = LogLevel.Critical // defaults to true
};

MinLogLevel and MaxLogLevel are enums. Saying "defaults to true" doesn't make any sense.
The same issue is in the Raygun MAUI docs.

This should be addressed in Raygun4Maui 2.0.0 which will be out soon. Thanks for pointing that out!


Authorization header contains lowercase bearer authorization scheme

As https://tools.ietf.org/html/rfc6750#section-2.1 states,
Clients SHOULD make authenticated requests with a bearer token using
the "Authorization" request header field with the "Bearer" HTTP
authorization scheme.
Unfortunately, DefaultOAuth2AccessToken lowercases the Bearer authorization scheme ( BEARER_TYPE.toLowerCase())
This causes the OAuth2RestTemplate to insert an authorization header with lowercase bearer authorization scheme. Some server implementations fail on the lowercase bearer authorization scheme

If the server sends "Bearer" in it's access token response then Spring OAuth will honour that I believe. This seems like a duplicate of #457 in any case.


Rails Admin incorrectly applies has_many lambda

So I have a model
class Community < ApplicationRecord
     belongs_to :last_post, optional: true, class_name: "Post"
     has_many :posts
     has_many :recent_posts, ->(object) {
                                  .where("posts.created_at > ?", object.last_post.created_at - 12.hours)
                                  .order(created_at: :desc).limit(5) }, class_name: "Post"
end

Rails Admin always crashes when accessing the recent posts field. I was able to fix this in the edit and view pages by doing this in my initializer:
config.model 'Community' do
    list do
      exclude_fields :recent_posts
    end
    edit do
      exclude_fields :recent_posts
    end
    show do
      exclude_fields :recent_posts
    end
  end

But when I try to delete the community, I get the following error:
Trace of template inclusion: /Users/z/.rbenv/versions/2.5.3/lib/ruby/gems/2.5.0/gems/rails_admin-1.4.2/app/views/rails_admin/main/delete.html.haml

undefined method `created_at' for nil:NilClass

 has_many :recent_posts, ->(object) { includes(:preview_attachment, :author)
                                  .where("posts.created_at > ?", object.last_post.created_at - 12.hours) // Error on this line
                                  .order(created_at: :desc).limit(5) }, class_name: "Post"

Rails admin isn't treating the lambda for this has_many correctly. The has_many lambda is supposed to receive the community itself in the lambda as it does everywhere else, but in Rails admin it seems to be receiving some association.
Two options for a fix:
Be able to exclude attributes from delete actions
Properly resolve has_many lambda's

It's the problem with your code, read the error message carefully.


Tutorial: tracing code

1.1: This will cause a CommandException error. The exception is thrown by addressBookParser::parseCommand and is handled by MainWindow.
1.2: This will cause a ParseException thrown by ParserUtil::parseIndex. It is handled by MainWindow
1.3: No issue.
1.4: This will cause a ParseException thrown by EditCommandParser::parse as no field is edited.
1.5: This will cause a ParseException thrown by ParserUtil::parseName as the name is non-alphanumeric.
1.6: No Issue.

2.1: In AddressBookParser, change commandWord to small case before switching.
2.2: Modify method parse in DeleteCommandParser
2.3: Modify saveAddressBook method in JsonAdddressBookStorage class. In addition, have a new class to parse the AddressBook as CSV file before storage.
2.4: Add a new command class under seedu.address.logic.commands module, as well as add a new command parser under seedu.address.logic.parser. Lastly, add another case under parseCommand in AddressBookParser.
2.5: Add the field under seedu.address.model.person and update PersonCard under ui as well as the JavaFX component to display it properly.
2.6: ?


Building from source CFG_TARGET isn't set

Hello,
I've tried to build Cargo from source. After I ran .configure this file was generated:

CFG_PREFIX           := /usr/local
CFG_LOCAL_RUST_ROOT  :=
CFG_RUSTC            := /usr/local/bin/rustc
CFG_BUILD            :=
CFG_HOST             :=
CFG_TARGET           :=
CFG_LOCALSTATEDIR    := /var/lib
CFG_SYSCONFDIR       := /etc
CFG_DATADIR          := /usr/local/share
CFG_INFODIR          := /usr/local/share/info
CFG_MANDIR           := /usr/local/share/man
CFG_LIBDIR           := /usr/local/lib
CFG_LOCAL_CARGO      :=
CFG_CURLORWGET       := /usr/bin/curl
CFG_PYTHON           := /usr/bin/python
CFG_CC               := /usr/bin/cc
CFG_RUSTDOC          := /usr/local/bin/rustdoc
CFG_SRC_DIR          := /home/wvxvw/projects/cargo/
CFG_BUILD_DIR        := /home/wvxvw/projects/cargo/
CFG_CONFIGURE_ARGS   :=
CFG_PREFIX           := /usr/local
CFG_BUILD            :=
CFG_HOST             :=
CFG_TARGET           :=
CFG_LIBDIR           := /usr/local/lib
CFG_MANDIR           := /usr/local/share/man
CFG_RUSTC            := /usr/local/bin/rustc
CFG_RUSTDOC          := /usr/local/bin/rustdoc

As you can see CFG_TARGET isn't set, but it needs to be set to something (what?) in order for the all recipe to do something. What should I set it to? Why isn't it set to anything?

what is the output of /usr/local/bin/rustc -vV?

Ah, sorry, I forgot to look at that, and I'm at a different computer now. I've built Rust on this machine few weeks later, so it's not the same, but should be very close:
rustc 1.0.0-dev (ecf8c64e1 2015-03-21) (built 2015-03-21)
binary: rustc
commit-hash: ecf8c64e1b1b60f228f0c472c0b0dab4a5b5aa61
commit-date: 2015-03-21
build-date: 2015-03-21
host: x86_64-unknown-linux-gnu
release: 1.0.0-dev

I'll only be able to tell the one I've actually used in the post above no earlier than Sunday.

Does configure work on the machine you're on right now? I think that the error handling for detecting the target is pretty bad and this error probably means there was an error running the compiler itself that the configure script forgot to report.

Aaaand, on this machine it does work. The configure script generated CFG_TARGET := x86_64-unknown-linux-gnu.

Minor update. I've rebuilt Rust and now Cargo compiles too:
rustc 1.0.0-dev (30e7e6e8b 2015-04-08) (built 2015-04-09)
binary: rustc
commit-hash: 30e7e6e8b0389d407f8b46ab605a9e3475a851d5
commit-date: 2015-04-08
build-date: 2015-04-09
host: x86_64-unknown-linux-gnu
release: 1.0.0-dev

with this version. This is probably what I'll do with the other computer as soon as I get there, but if you are interested, I'll also post the version of Rust I have there.

Hm, so can you get the original issue to still reproduce?

It appears that my installation of rustc on the machine where I had the initial issue was broken in a way which has nothing to do with Cargo, so I guess there's not much else to do with this issue (I actually couldn't get rustc to even print the version info.)

Hm ok, thanks for confirming!

It appears that my installation of rustc on the machine where I had the initial issue was broken in a way which has nothing to do with Cargo, so I guess there's not much else to do with this issue

So can this be closed then? Or is it open for handling errors while detecting the target?

Yup, sorry, it was too long ago, but I remember I was able to make it work back then, and the issue was something else entirely, so this report may be thrown away :)

Ah yeah I think this is basically about handling errors more robustly in the configure script, right now it's not exactly great :(


Move some gems (dotenv-rails, rubocop, etc) from default group

Since we don't need these gems in production, we shouldn't load/install them in production! This commit moves the gems to the :development, :test group.

This change reduced the Heroku slug size from 149.4M to 148M. That's not nothing! :)


RC10 dependency on re-release Examine 2.0.0-beta2 is incompatible with Umbraco 8.16.0

Which exact Umbraco version are you using? For example: 8.7.0 - don't just write v8 or v9
8.16.0
Bug summary
RC10 requires Examine 2.0.0-beta2, but Umbraco 8.16.0 requires Examine < 2.0.0.
I'm not sure about future versions of Umbraco 8.*, but it would be a deal breaker for us to upgrade Umbraco to support a pre-release Examine package. Given the amount of work you've put in to support Umbraco 8, it's a shame to have one dependency make your whole package incompatible.
Specifics
No response
Steps to reproduce
Try to update to RC10 pre-release of UmbNav
Expected result / actual result
No response

I am unable to reproduce this.
I have upgraded the website to 8.16.0
I have then upgraded UmbNav with the Dependency behaviour set to Lowest and it installs fine with no warning, and it does not upgrade the installed dependency from 1.2.1 in this case.


[iOS] Build failure - Couldn't find preset "jolt" relative to directory

Hi,
I'm having an issue after upgrading from heap-analytics 0.2.0 to 1.1.2. On build I get the error: "TransformError: /Users/[user]/Desktop/spot-save/node_modules/react-native-heap-analytics/build/Heap.js: Couldn't find preset "jolt" relative to directory "/Users/[user]/Desktop/spot-save/node_modules/react-native-heap-analytics".
I've tried reinstalling the pod, and have also set the header search path to recursive. I'm on react-native 0.44.3.
Any help would be greatly appreciated.

Hi @ylac, since the package is already transpiled, it shouldn't be using the babel config. Can you try resetting the packager cache? I'll update the package in our apps and see if I can reproduce this

Hi @negativetwelve, yeah I tried resetting the packager cache but it didn't help. I just reverted to 1.0.0 and it builds ok.
Btw, I think there's a typo in the docs, heap.event should be heap.track?

hmm okay I'll definitely get this babel issue fixed today.
Yeah, that's a typo, I can fix that as well (unless you want to submit a PR? :)

Great thanks, I just submitted the PR (my first ever :) ).

Awesome, that's exciting :) thanks for contributing!

Looks like you stumbled on a pretty big react-native issue @ylac:

https://github.com/developit/mitt/issues/31
https://github.com/acdlite/change-emitter/issues/2

and the big one: https://github.com/facebook/react-native/issues/10966
I'll fix up the packages tonight (I just switched all of them to an "babel" key under package.json :(
thanks again for pointing this out!

This has been fixed and released as v1.3.0 https://github.com/negativetwelve/react-native-heap-analytics/releases/tag/1.3.0


Client Folder

Why was added recently a src/client folder ?
I looked into the styleguide to understand this approach but could not get it.
Are you planning on using server|client folders ?

https://github.com/mgechev/angular2-seed/pull/750

Discussion around your question is in the pull request

Oh thanks
I just saw the commit, not the PR
The pull is self-explanatory, I agree with the new structure but as you said I do not know if I agree on adding a "+" sign lazy-loaded components.
Please update the front readme and angular2-styleguide regarding this approach

we can close this :+1:


No such file or directory error

Hello!
I built pex-file from my project ( https://github.com/Hateman31/RD).
I run 'pex RD -o RD.pex'. When i do "python RD.pex" i get next error:
Traceback (most recent call last):

  File ".bootstrap\_pex\pex.py", line 320, in execute   File ".bootstrap\_pex\pex.py", line 78, in _activate   File ".bootstrap\_pex\environment.py", line 135, in activate   File ".bootstrap\_pex\environment.py", line 179, in _activate   File ".bootstrap\_pex\environment.py", line 124, in update_candidate_distributions   File ".bootstrap\_pex\environment.py", line 110, in load_internal_cache   File ".bootstrap\_pex\environment.py", line 97, in write_zipped_internal_cache   File ".bootstrap\_pex\util.py", line 176, in cache_distribution   File ".bootstrap\_pex\common.py", line 125, in safe_open FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\MyPC\\.pex\\install\\Kivy-1.9.1-cp34-none-win32.w hl.eede4757567c219d7f99978091a446b258778859.aff7e4a3de1a4c60b2fb907744e38d83\\Kivy-1.9.1-cp34-none-win32.whl\\Kivy-1.9.1 .data/data/share/kivy-examples/demo/kivycatalog/container_kvs/AnchorLayoutContainer.kv'

What i do wrong?
Thanks!

Windows is the issue here, pex has no support for it. The only hint I think we give is here: https://github.com/pantsbuild/pex/blob/master/setup.py#L38-L40
We have had some folks spend some time to get parts of ex prepped for Windows, but no concerted effort which would necessarily end in an AppVeyor CI job being wired up so we stay green and, further, continued involvement by win devs to keep things moving forward. Let us know if you're the person to help kick this off, that would be very welcome!

@Hateman31 it looks like the path in your error message is 261 characters long, which exceeds the maximum path length in Windows. See https://github.com/pantsbuild/pex/pull/596 for a proposed fix.


Quests progress got erased again (third time)

What is your Quests version / build number (do not say "latest")?
4.0.5
Describe the problem and how to replicate it. Any console errors to post using a pastebin?
A few months ago I noticed someone's progression got reset.
Like 2 hours ago it happened again, I used an old backup to restore their quest data since it reset completely and they were able to redo quests they've already done.
I made a post here, they said to get updated version of plugin, I did, then now someone just said they came back from lunch and their quests reset. Its happening more often now because we started getting players on the server. It could have been because I restarted the server to fix some other stuff? But im not sure what caused the problem.
Any suggestions on how to fix?

As I stated in discord this is a issue which has several opened cases. But nobody of us or anyone else wasn't able to replicate it, or provide actual cause of this happenings as it seems to be happening to random people.
Reasons could be hundreds. Most popular I can think of are lack of enough ram, since quests it's running on ram entirely to hash all the data.
It could be wring server stopping or force stopping. Could be some kind of Lag cleaner plugin, which in 99% of cases lag more the server or mess with other plugins. Depending on type of lag cleaner it could be some memory saving method that dump any exceesive data of memory which it thinks it could be useless and Therefor this is happening.
As I have said until actual reason what is the cause of all that, this issue is under investigation.

Likely duplicate of #1707


Partition By advanced support

As I can see, you can make partition by on rank, danse_rank and row_number methods.
Could be really useful to support aggregate methods (sum, min, max, avg...) and raw method injection for complex partition by expressions.
knex.select('*')
    .from('accounts')
    .sum('salary', function () {
      this.orderBy('email').partitionBy('address');
    })

to generate:
select *, sum("salary") over (partition by "address" order by "email") from "accounts"

Could be nice to add rows preceding, current row and rows following to partitionBy function.
knex.select('*')
    .from('accounts')
    .sum('salary', function () {
      this.orderBy('email').partitionBy('address').rows([-10, 10]);
    })

select *, sum("salary") over (partition by "address" order by "email" rows between 10 preceding and 10 following) from "accounts"`

And window
WINDOW name AS (PARTITION BY column ORDER BY column ASC)


questions about CompiledModule argument

Hi, guys.
Recently I am testing sd_test.py in turbine, export_clip_model , export_unet_model, export_vae_model could run successfully when argument is vmfb, but it saved a torch ir and regard it as iree's input.
But actually I don't want this torch ir, I want the IR with linalg, just like the old version shark-turbine did (via "torch-to-iree" in cpu.py).
Why turbine doesn't support linalg IR generated ? I remember yesterday when I use a little old version, I can set the argument of "export_clip_model" with linalg, it can generate a right linalg IR, although the export_vae_model with linalg would be error.
The error is here https://github.com/nod-ai/SHARK-Turbine/issues/532#issuecomment-2006186275
So I have two questions:

why deprecate the feature which can generate linalg by turbine;
what should I do if I really need the linalg ir.
Thanks a lot.

It's not deprecated but a different default. The torch IR is more stable as it structurally hardly ever changes. So we often persist that as an intermediate artifact. Linalg is an internal IR, and while it is fine to use, there are a lot of implementation details encoded in that form.
The torch-to-iree pass is still there but it does a number of other things too. It has linalg ops but it has other iree ops in it too -- we made no representation that it is "pure" linalg in any meaningful way. We didn't so much remove a feature but optimized our use.
With that said, passes exist which do the thing you likely want. We just need to expose the option to invoke them. Or give you a python incantation to self serve. What exact code are you running? (There are multiple entry points and I don't track all of the ways in)

I got that, thanks.
I am testing this : SHARK-Turbine/models/turbine_models/tests/sd_test.py

I think this is the pipeline you will actually want: https://github.com/llvm/torch-mlir/blob/3a56714bffae51c3ba12dd44c4a13fbaf9d0fed3/projects/pt1/python/torch_mlir/torchscript.py#L293
The torch-to-iree pipeline emits quite a bit of iree specific ops at the boundaries, whereas this one is the pure pipeline from upstream. I think it is included in the compiler. I need to look up the exact incantation when I'm at my computer.

I think this is the pipeline you will actually want: https://github.com/llvm/torch-mlir/blob/3a56714bffae51c3ba12dd44c4a13fbaf9d0fed3/projects/pt1/python/torch_mlir/torchscript.py#L293
The torch-to-iree pipeline emits quite a bit of iree specific ops at the boundaries, whereas this one is the pure pipeline from upstream. I think it is included in the compiler. I need to look up the exact incantation when I'm at my computer.

Thanks, I will try torch-mlir. Also, please share the  incantation with me if you are ok.

        CompiledModule.run_pass_pipeline(
            module,
            "builtin.module(torch-backend-to-linalg-on-tensors-backend-pipeline)",
            enable_ir_printing=True)

Is probably the incantation you need if you're trying to do it in python. You can find the impl for run_pass_pipeline() here: https://github.com/nod-ai/SHARK-Turbine/blob/main/core/shark_turbine/aot/compiled_module.py#L454
Feel free to friend me on discord: @xida_ren . happy to call to help figure this out!

Thanks @renxida , it did work!
linalg_str = str(CompiledModule.run_pass_pipeline(             inst,             "builtin.module(torch-backend-to-linalg-on-tensors-backend-pipeline)",             enable_ir_printing=False))
i add above code into vae.py, testExportVaeModelDecode succeed, but testExportVaeModelEncode failed.
error looks like:
iree.compiler._mlir_libs._site_initialize.<locals>.MLIRError: Failure while executing pass pipeline: error: "<eval_with_key>.0 from /workspace/bailuan/20231221_pytorch_install/pytorch/torch/fx/experimental/proxy_tensor.py:477 in wrapped":320:0: failed to legalize operation 'torch.constant.int'  note: "<eval_with_key>.0 from /workspace/bailuan/20231221_pytorch_install/pytorch/torch/fx/experimental/proxy_tensor.py:477 in wrapped":320:0: see current operation: %3 = "torch.constant.int"() <{value = -1 : i64}> : () -> !torch.int
Did someone test testExportVaeModelEncode like me? it can run the test pipeline successful, but can't run through "torch-backend-to-linalg-on-tensors-backend-pipeline", it is very strange because I think it have to go through the torch-to-linalg if it want compile out the vmfb.
Some advice?

Thanks @renxida , it did work! linalg_str = str(CompiledModule.run_pass_pipeline( inst, "builtin.module(torch-backend-to-linalg-on-tensors-backend-pipeline)", enable_ir_printing=False)) i add above code into vae.py, testExportVaeModelDecode succeed, but testExportVaeModelEncode failed. error looks like: iree.compiler._mlir_libs._site_initialize.<locals>.MLIRError: Failure while executing pass pipeline: error: "<eval_with_key>.0 from /workspace/bailuan/20231221_pytorch_install/pytorch/torch/fx/experimental/proxy_tensor.py:477 in wrapped":320:0: failed to legalize operation 'torch.constant.int' note: "<eval_with_key>.0 from /workspace/bailuan/20231221_pytorch_install/pytorch/torch/fx/experimental/proxy_tensor.py:477 in wrapped":320:0: see current operation: %3 = "torch.constant.int"() <{value = -1 : i64}> : () -> !torch.int Did someone test testExportVaeModelEncode like me? it can run the test pipeline successful, but can't run through "torch-backend-to-linalg-on-tensors-backend-pipeline", it is very strange because I think it have to go through the torch-to-linalg if it want compile out the vmfb. Some advice?

use "torch-to-iree" works fine.


Impossible to change email address

Whenever I attempt to change my email address I get:
An error occurred: Your profile update was not accepted. The server reports: ["That email is already associated with another account"]

However, my email address cannot be used by anyone else, since it is my email address. To be sure I tried a password reset, but that does not work either, since the email is not in use.

Hey Richard. Thanks for raising the issue.
I have a slight idea of what might be happening. I'll dig into it and see what I can do.


Custom UI

Hi,
Could you provide some methods for custom UI instead of only theme?
For example, if we need to add a imageView for branding or add a new custom login button for Twitter.
Thanks

We have a proposal to consider more customization in #1477 if anyone would like to comment.


python312Packages.pytado: 0.17.7 -> 0.18.5

Changelog: https://github.com/wmalgadey/PyTado/releases/tag/0.18.5

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
25.05 Release Notes (or backporting 24.11 and 25.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

nixpkgs-review result
Generated using nixpkgs-review.
Command: nixpkgs-review pr 368097

x86_64-linux

:x: 1 package failed to build:

home-assistant-component-tests.tado

:white_check_mark: 4 packages built:

python312Packages.python-tado
python312Packages.python-tado.dist
python313Packages.python-tado
python313Packages.python-tado.dist


-i flag to set the icon does not work in Big Sur

Using the -i flag to add an icon to the notification doesn't appear to work in macOS Big Sur. This could be an issue with no work-around, but I wanted to flag it none-the-less.

Same in Monterey

Considering this hasn't been updated since 2019 I think better to look elsewhere:-
https://datajar.co.uk/announcing-notifier/
https://github.com/IBM/mac-ibm-notifications
https://github.com/bartreardon/swiftDialog

https://datajar.co.uk/announcing-notifier/
Has no Bash option, is also not very recent

https://github.com/IBM/mac-ibm-notifications
Can only open urls, but well maintained.

https://github.com/bartreardon/swiftDialog
Has only popups?

In general changing the icon seems to be impossible since macOS 11 (?).
If you only need a banner without interactions, homebrew autoupdater has smart solution, just use a apple script: https://github.com/Homebrew/homebrew-autoupdate/tree/master/notifier
Save it as app and give it a icon, but I need interactions… Perhaps I’ve to learn swift and write my own 😂


after update from 0.66.0 to 0.68.0 got JS error: _lib.customPropTypes.onlyProp is not a function

Uncaught TypeError: _lib.customPropTypes.onlyProp is not a function
    at Object.<anonymous> (GridColumn.js:91)
    at __webpack_require__ (bootstrap 53678e0…:555)
    at fn (bootstrap 53678e0…:86)
    at Object.<anonymous> (Grid.js:29)
    at __webpack_require__ (bootstrap 53678e0…:555)
    at fn (bootstrap 53678e0…:86)
    at Object.<anonymous> (index.js:8)
    at __webpack_require__ (bootstrap 53678e0…:555)
    at fn (bootstrap 53678e0…:86)
    at Object.<anonymous> (index.js:169)

@gshilin What version of webpack do you use? There are no such problem neither in our docs nor locally with Webpack 2.

I use webpack 1.14.0 from create-react-app
On Tue, Apr 18, 2017 at 12:58 PM, Alexander Fedyashov <
<EMAIL_ADDRESS>wrote:

@gshilin https://github.com/gshilin What version of webpack do you use?
There are no such problem neither in our docs nor locally with Webpack 2.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Semantic-Org/Semantic-UI-React/issues/1595#issuecomment-294757594,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAVnPxOhBqOOJet6BXhtXsYrFbaLyXFHks5rxIktgaJpZM4NADIm
.

Can you make a fresh install of deps? rm -r node_modules; npm i
I recently built successfully sample with our example config that uses webpack 1.

Yes, it helped.
Thank you
On Tue, Apr 18, 2017 at 1:08 PM, Alexander Fedyashov <
<EMAIL_ADDRESS>wrote:

Can you make a fresh install of deps? rm -r node_modules; npm i
I recently built successfully sample with our example
https://github.com/Semantic-Org/Semantic-UI-React/tree/master/examples/webpack1
config that uses webpack 1.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Semantic-Org/Semantic-UI-React/issues/1595#issuecomment-294761783,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAVnP0VsBnvLrUNKe2hryTvJCgfLiQzOks5rxIucgaJpZM4NADIm
.


MGMT-18928: take first image from .repoDigests

Background / Context
MGMT-18928: take first image from .repoDigests
While precaching images we pull all the images in parallel,
some of them are pulled twice cause they have more than one repoDigest, though it is totally same image.
Pulling them in parallel can cause podman to corrupt it though it finish ok

Issue / Requirement / Reason for change

Solution / Feature Overview

Implementation Details

Other Information

/approve

/cherrypick release-4.17


Acces items from fields

Hi there is a posibility to access the items row data on field creation, without using itemTemplate. Only want have the item data accesible like in the name to allow compact definitions of fields and move custom widgets away the data for reuse?
Thanks in advance, Jabier.

I finaly fix it by this way:
In custom field create a code  like:
xField.prototype = new jsGrid.Field({
autosearch: false,
url : 'no_url_yet',
itemTemplateImpl: function(value, item) {},
itemTemplate: function(value, item) {
        this.itemTemplateImpl(value, item);
        return 'Go to other row data stored url';
    }
}

And in the Field definition put:
fields: [{ name: "link",
    type: "xfield",
    itemTemplateImpl: function(value, item) {
        this.url = item.url;
    }
]

Glad that you figured it out! Thanks for sharing your solution.

You are welcome. Thanks for this cool grid.


Add legacy structs back for v2->v3 migration

@ctindogaru going to keep this PR for investigation purposes only - looks like there were some things added we should be mindful to not merge.

Yeah agree, I've accidentally created it like an official PR. Should have been just draft.

Closing this as it was meant only for testing.


Update docs for cross compilation.

Document pkg-config cross compilation environment
variables in library documentation.
Fixes #156

Thanks!


Add a comment to an issue and retrieve the comments

Purpose
To enable adding of comments to Jira issues and to be able to retrieve them
Goals
Approach
Added new methof addCommentToIssue to JiraConnector. Added comments to the Issue type.
User stories
Release note
Documentation
Training
Certification
Marketing
Automation tests
Security checks
Samples
Related PRs
Migrations (if applicable)
Test environment
Learning

@copenat - Thanks for the contribution. Could you please resolve the conflicts ?

Sure. Conflicts resolved now.


Move away from using TravisCI

Rushing the progress here - the only remaining issues are:

windows
cowsay

So I'm now rushing this to get regular testing back, can followup later.