DialPipe problem with multiple calls / waiting for busy pipe

Currently there is some work in progress (https://github.com/portainer/portainer/pull/1186) to add mapped named pipe support into Portainer so it will be easier to run it in a Windows container (  docker run -u ContainerAdministrator -it -v //./pipe/docker_engine://./pipe/docker_engine -p 9000:9000 stefanscherer/portainer:insider -H npipe:////./pipe/docker_engine )
We're using winio.DialPipe() to connect to the Docker engine from inside a microsoft/nanoserver-insider container.
At the moment we see problems in Portainer as it sometimes makes multiple requests requested by the web frontend. Here's a WireShark screenshot with the problem.

The two /api/endpoints/1/docker/xx GET requests use separate connections and run in parallel. One of the calls aborts with "open //./pipe/docker_engine: The system cannot find the file specified."
I have seen the check for cERROR_PIPE_BUSY and first thought that createFile() returns cERROR_FILE_NOT_FOUND and aborts immediatelly.
We are using the default timeout right now
    return winio.DialPipe(namedPipePath, nil)

but I also tried giving a 5 second timeout
    timeout := 5000 * time.Millisecond
    return winio.DialPipe(namedPipePath, &timeout)

Digging deeper it seems like the waitNamedPipe() just does not wait long enough or cannot start wait for the pipe.
Adding some Println in DialPipe I now see this running Portainer in the second DialPipe call:
DialPipe createFile err All pipe instances are busy.
DialPipe waitNamedPipe ms 4998
DialPipe waitNamedPipe returns err The system cannot find the file specified.
DialPipe returns err The system cannot find the file specified.
The problem is that  waitNamedPipe returns immediatelly and does not wait the given 5000 milliseconds.
How can we make DialPipe more reliable?

It seems the problem only appears inside a container.
I stripped a test down down to this (with some debug Println in go-winio):
package main

import (
	"fmt"
	"time"

	"github.com/StefanScherer/go-winio"
)

func main() {
	namedPipePath := "\\\\.\\pipe\\docker_engine"
	timeout := 5000 * time.Millisecond
	conn1, err1 := winio.DialPipe(namedPipePath, &timeout)
	fmt.Println("err1", err1)
	conn2, err2 := winio.DialPipe(namedPipePath, &timeout)
	fmt.Println("err2", err2)
	if conn1 != nil {
		conn1.Close()
	}
	if conn2 != nil {
		conn2.Close()
	}
}

And running the container I very often see the problem opening the pipe the second time:
$ docker run -u ContainerAdministrator -v //./pipe/docker_engine://./pipe/docker_engine stefanscherer/testpipe:insider
DialPipe createFile err <nil>
err1 <nil>
DialPipe createFile err All pipe instances are busy.
DialPipe waitNamedPipe ms 5000
DialPipe waitNamedPipe returns err The system cannot find the file specified.
DialPipe returns err The system cannot find the file specified.
err2 open \\.\pipe\docker_engine: The system cannot find the file specified.

Only a few times I got
$ docker run -u ContainerAdministrator -v //./pipe/docker_engine://./pipe/docker_engine stefanscherer/testpipe:insider
DialPipe createFile err <nil>
err1 <nil>
DialPipe createFile err <nil>
err2 <nil>

Running the testpipe.exe on the Windows Insider Docker host seems to work every time.

cc @jstarks

Any update on this?
@StefanScherer @friism do we know when the named pipe mount feature will be released?

@deviantony I will try to get more info at DockerCon today about this.

Maybe @jstarks finds a minute after DockerCon to give us advise if it's fine to merge portainer PR now if go-winio doesn't need an update itself.

Any update on this?

I just stumbled upon this issue in terraform-providers/terraform-provider-docker#58.
I hit this on Windows 10 using Docker for Windows.  It does not only happen when running inside a container.
I wrote a stress test for the Win32 named pipes API and managed to reproduce the FILE_NOT_FOUND error in the calls to both CreateFile() and WaitNamedPipe().  See this gist for the source code.  It's Python rather than Go, but you should be able to recognize the error handling pattern.
Long story short: there is a race condition in the Win32 named pipe API where the CreateFile() and WaitNamedPipe() calls on the client can be invoked while the server has no outstanding calls on ConnectNamedPipe() (e.g. while it's dispatching a connection).  The BSD-style sockets API solved this using a listen backlog, but there doesn't seem to be an equivalent in the Win32 named pipes API.
I'm pretty sure the client needs to handle the FILE_NOT_FOUND error in both calls with a short (ideally randomized) pause and a retry to stay resilient to that race condition.  That's what I ended up doing in my stress test and it became very stable afterward.

I submitted a pull request with a tentative fix for this issue.  The test suite in terraform-providers/terraform-provider-docker#58 now passes reliably when run with a build containing this fix.


Remove redundant import of matplot lib from the Tox21 and the QM9 example.

Import of matplotlib in the examples are redundant as it is not used. So we should remove it. But some people reports they cause errors without it. So let me know if you encounter similar phenomena.

I tested both examples with Python 2.7 and 3.6 (under Arch Linux). No problems encountered.
matplotlib version: 2.2.2

Thank you for investigation. I sent a PR that fixes it.

Fixed via #148


RawTable::allocation_info returns non zero size for a fresh empty map

The following code:
#[test]
fn test() {
    assert_eq!(hashbrown::raw::RawTable::<()>::new().allocation_info().1.size(), 0);
}

fails with:
thread 'test' panicked at 'assertion failed: `(left == right)`
  left: `17`,
 right: `0`', src/lib.rs:3:5

Since RawTable::new doesn't allocate any memory I'd expect this to return 0.

cc @stepancheg


unable to delete bulk records when sorted with on relation table property (count)

Package
filament/filament
Package Version
v2.17.38
Laravel Version
10.10.0
Livewire Version
No response
PHP Version
8.2.2
Problem description
When sorting on a related count column in the table, you get an error message when you want to delete the selected rows in the bulk action.
response: (example of the git repo)
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'clothing_count' in 'order clause'
Expected behavior
that the selected rows are deleted without error message
Steps to reproduce
clone repo
configure a mysql database
migrate and seed
start laravel
go to the agencies resource
select one or more rows
bulk action, choose delete selected
sql error
Reproduction repository
https://github.com/henk-n/sortissue/
Relevant log output
No response

Fixed by #6554


Error Message

'WScript.Sleep' is not recognized as an internal or external command,
operable program or batch file.
I'm getting this error message when running the bat

Please help. :(

I followed all the steps and the bot is activated.

@amoney232423 try starting the bot through the console.

@amoney232423 If it didn't work, go to where your files are, cd (file path), there's a tut online, then type exactly this (cmd admin):
npm install discord.js
And hit enter.
After you installed it, type this:
node bot.js
Then hit enter. Hope it worked :-)


Create InputError and InputSection

Release Type: Non-breaking changes
Fixes https://x-team-internal.atlassian.net/browse/XP-3705
Description
Update InputField and related components to match requirements for the XP-Reg signup forms.
Checklist

[x] set yourself as an assignee
[x] set appropriate labels for a PR (In Review or In Progress depending on its status)
[x] move respective JIRA issue to the PEER REVIEW column
[x] Flow typechecks passed (npm run flow)
[x] if added a new UI component that is meant to be used directly by other apps, remember to export that from the appropriate bundle file: src/index.js and/or src/registration.js
[x] component's documentation (.stories.js file) is changed or added accordingly to reflect any new or updated use cases and/or debug cases
[x] manually tested the app by running it in several different browsers (Firefox, Chrome, Opera, Safari, MS IE/Edge, etc.) and checked nothing is broken and operates as expected!

Related PRs

branch
PR

XP-3705-adjust-inputfield-styles
XP Registration

Steps to Test or Reproduce
SvgIcon
New exclamation icon was added
http://localhost:9001/?path=/story/core-components-svgicon--basic-color
InputError
New InputError component was created.
http://localhost:9001/?path=/story/core-components-form-components-inputerror--basic-usage

InputField
The InputField got some visual updates for the error and disabled states.
http://localhost:9001/?path=/story/core-components-form-components-inputfield--default-usage
The navigation of the stories of this component got refactored to something much more organised:

InputLabel
The former Label got renamed to InputLabel so it keeps consistent with other elements related to the input.
http://localhost:9001/?path=/story/core-components-form-components-inputlabel--basic-usage
InputSection
The InputSection is the component that composes InputLabel+InputField+InputError. I wanted to use the InputGroup name, but that's already taken and it didn't seemed good idea to refactor for this purpose.
http://localhost:9001/?path=/story/core-components-form-components-inputsection--basic-usage

SignupForm
Given that InputSection was added, the SignupForm got simplified and the the SignupForm.InputGroup then became the new InputSection.
http://localhost:9001/?path=/story/ui-components-signupform--basic-usage

For the sake of completeness I added some more showcases for the InputSection:


[release/5.0] Drive prebuilts down to 0

For .NET 5.0, we would like to get to a place where there are 0 prebuilts.
At that point, a source-build built .NET 5.0 SDK can be used to build a subsequent .NET 5.0 SDK without using any prebuilt binaries (SDK, nuget packages, tools, etc).
This allows source-build consumers (such as Linux distributions) to bootstrap .NET 5.0 SDK once, and then use that to build further versions of 5.0 without needing any prebuilts. This makes it possible to package .NET 5.0 SDK in Linux distributions where prebuilt binaries are disallowed (such as Debian and Fedora).
This is similar to what's already available for the release/3.1 branch in source-build.
I know that this is a shared goal/understanding among many of the folks working here, but I couldn't find it explicitly documented. So I am filing this issue for awareness.

cc @tmds

I think https://github.com/dotnet/source-build/issues/1577 was intended to track this, but it's not totally clear.

I think #1577 is to add back the check to ensure that the prebuilts that we have don't grow or change.  This issue is more explicit about getting to zero.  Let's keep this one to drive the prebuilt removal work.

@dagood @dseefeld I'd like to understand this better. Can you explain how you do this? What tools/steps are involved? Is there some documentation about this?

Since we expect 0 prebuilts, we basically need to turn this back on, and follow the errors:
https://github.com/dotnet/source-build/blob/26531ea7074211d64f4ff2a696a0b483319aecf7/.vsts.pipelines/jobs/ci-linux.yml#L119
There is a decent amount of useful info that the build saves to track down individual prebuilt usage errors, in addition to the usual binlogs. This is done in the production build (where some baseline of prebuilts is always expected due to circular references) and tarball (where 0 are expected):
#> find artifacts/prebuilt-report/ -type f
artifacts/prebuilt-report/prebuilt-usage.xml
artifacts/prebuilt-report/annotated-usage.xml
artifacts/prebuilt-report/generated-new-baseline.xml
artifacts/prebuilt-report/snapshots/PackageVersions.props.pre.application-insights.xml
artifacts/prebuilt-report/snapshots/PackageVersions.props.pre.sourcelink.xml
...
artifacts/prebuilt-report/snapshots/PackageVersions.props.pre.templating.xml
artifacts/prebuilt-report/snapshots/PackageVersions.props.pre.installer.xml
artifacts/prebuilt-report/baseline-comparison.xml
artifacts/prebuilt-report/all-project-assets-json-files.zip

Removing prebuilt usage can be accomplished by:

Adding patches to remove parts of the build that shouldn't be running at all (e.g. tests)
Adding packages to dotnet/source-build-reference-packages if they are only compiled against, never run
Fixing parts of the build that should be producing a certain package but aren't
Fixing parts of the build where packages aren't flowing properly to a downstream repo (Package Version Props issues)
Adding new repositories to source-build to produce packages that must be source-built

We did have long-term tooling set up to track progress in the initial burndown for 3.1, but I don't think that will be necessary: we know 3.1 works with 0 prebuilts, so I think this will mostly be going after small regressions. (And adding Cecil https://github.com/dotnet/source-build/issues/1537.)

@dagood Is there something I can do here without stepping on others' toes? I want to help out but I have seem commits that indicate others are already working on this too. Is there some low hanging fruit that others are not already working on?

I think adding jbevain/cecil is pretty independent and would be very useful: https://github.com/dotnet/source-build/issues/1537. Thanks for the offer. 😄 https://github.com/dotnet/source-build/pull/1758 is similarly adding a repo, as an example. I think Cecil might have a somewhat more challenging .proj because it's not using Arcade--I expect it'll need dotnet-based build commands more like linker, newtonsoft-json, or nuget-client.
I'm not super familiar with the status of the overall prebuilt fixes that @dseefeld and @crummel are working on (in particular regressions in the existing repos), but maybe there's something that can be carved out there as well if adding Cecil doesn't fit.

Adding https://github.com/jbevain/cecil/ as a repo turned out to be unnecessary: https://github.com/dotnet/source-build/issues/1537
Is there any other lower hanging fruit I can take?

We talked about this in triage, and IIRC @dseefeld is planning to update here with some more info and ideas once the big rock of using a "real" previously-source-built archive is done, as that's expected to clarify where we're actually at right now.

I added the current status on prebuilts to the description.  Prebuilts that aren't being investigated have no owner.  If you'd like to investigate any, comment here and I'll update the table.  I'll update the table with current prebuilt status weekly.

The SDK includes the Microsoft.CodeAnalysis.NetAnalyzers analyzer. That means we should built it. The analyzer lives in https://github.com/dotnet/roslyn-analyzers repo.

https://github.com/dotnet/source-build/pull/1935 was the final PR to get to zero prebuilts.


Unnecessary unwrap ?

When I navigate in the code I see in the method in CustomVc at the line 235 in lib.rs
    pub fn last(&self) -> Option<&T> {
        let len = self.len();
        if len == 0 {
            None
        } else {
            Some(self.get(len - 1).unwrap())
        }
    }

but why all of that ? You can just write
pub fn last(&self) -> Option<&T> {
    let len = self.len();
    if len == 0 {
        None
    } else {
        self.get(len - 1)
    }
}

(and same thing with the last_mut)

Ah, it is written this way essentially to be defensive — the get should not fail. If the code was written the way you propose, then it could silently start failing if, say, the len == 0 clause was changed somehow. In this small code snippet the risk of that is pretty minor, but as a general rule I like the more verbose variant because it represents an asset.


Move fork-ts-checker-webpack-plugin dependency to react-dev-utils

Fix Cannot find module 'fork-ts-checker-webpack-plugin'.

Thanks. Releasing soon.

If you are contributing on behalf of someone else.


Add kubeconfig_content configuration parameter to the provider

Problem this change solves:
If kubeconfig is stored somewhere (configuration servers, AWS SSM, etc.) but not on the file system then terraform plan will fail because the provider needs the config to check the state but the file can be created only when plan is done.
I hit this problem on AWS: I manage environments from a container in a build pipeline and kubeconfig  is generated by another module (https://github.com/terraform-aws-modules/terraform-aws-eks). This fix allows to pass variable with kubeconfig directly to the provider and complete both plan and apply phases successfully.

:+1:  We need this please!

@ericchiang I updated the code, thanks for your feedback

Also, please squash your commits! :)

@ericchiang can you take a look and merge it if everything is fine now?


Contribution in README.md

Write down, everyone who helped mocha-mix for 2.0

koulmomo
schottra
hasPatrickC
davidandrus


Certain mod configurations can apparently result in null object due to load order

I haven't personally observed this, but apparently if load order loads mercenaries after necromancy then null object can occur.
[Info   :   BepInEx] Loading [ChebsMercenaries 2.4.0]
[Error  : Unity Log] The AssetBundle 'N:\_SteamLibraryN\steamapps\common\Ashlands Modded\BepInEx\plugins\ChebsMods\chebgonaz' can't be loaded because another AssetBundle with the same files is already loaded.
[Warning:ChebsMercenaries] Exception caught while loading assets: System.NullReferenceException: Object reference not set to an instance of an object
  at ChebsValheimLibrary.Base.LoadPrefabFromBundle (System.String prefabName, UnityEngine.AssetBundle bundle, System.Boolean radeonFriendly) [0x00000] in <89eaf17415d64cffa73428255271a66c>:0
  at ChebsMercenaries.BasePlugin+<>c__DisplayClass24_0.<LoadChebGonazAssetBundle>b__0 (ChebsMercenaries.Items.WeaponOfCommand w) [0x00016] in <ace6ff3c52de4bdaaed8be71ac466dc0>:0
  at System.Collections.Generic.List`1[T].ForEach (System.Action`1[T] action) [0x0001e] in <17d9ce77f27a4bd2afb5ba32c9bea976>:0
  at ChebsMercenaries.BasePlugin.LoadChebGonazAssetBundle () [0x00042] in <ace6ff3c52de4bdaaed8be71ac466dc0>:0
[Error  : Unity Log] NullReferenceException: Object reference not set to an instance of an object
Stack trace:
ChebsMercenaries.BasePlugin.LoadChebGonazAssetBundle () (at <ace6ff3c52de4bdaaed8be71ac466dc0>:0)
ChebsMercenaries.BasePlugin.Awake () (at <ace6ff3c52de4bdaaed8be71ac466dc0>:0)
UnityEngine.GameObject:AddComponent(Type)
BepInEx.Bootstrap.Chainloader:Start()
UnityEngine.GameObject:.cctor()
PlatformTools.Common.SingletonMonoBehaviour`1:get_Instance()
PlatformTools.PlatformManagerInitializer:OnRuntimeMethodLoad()

One solution to this is to implement a soft dependency on Necromancy for Mercs

ChebsNecromancy-4.10.3.zip
necromancy with a soft dependency on mercs for testing


run program with multiple GPU

Describe the bug
I want to run Llama 3.2 90B with 5 A40 (240GB VRAM) to generate quff file. But only one of those GPU is used, so i run into CUDA_ERROR_OUT_OF_MEMORY.


Avoid many rsync connections

The current method of calling rsync many times has some issues:

it's slow
lots of password prompts if not using key-based auth (#261)

We may be able multiplex ssh channels as discussed in #161. If not we may need another approach to transferring the kitchen to the node.

Now that I have a bit more experience working with ControlMaster, I get the impression we could at least multiplex the rsync connections with each other. Initial googling seems to indicate that Net::SSH might still need is own connection.
I'll plan to give this a shot and bump the minor rev when it happens since I could see it breaking some peoples setups if ControlMaster is disabled or unavailable.


musicbee: Fix license

That is not the license.
Musicbee has no stated license. It is freeware.

The FAQ explains it is freeware. Use it as URL so users can verify it...


Added 'segment_volumes' feature

Codecov Report

Merging #602 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master   #602   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          41     41
  Lines        2028   2031    +3
=====================================
+ Hits         2028   2031    +3

Continue to review full report at Codecov.

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


Some suggestion for the README

First, the installation documentation is not on docs/install.rst as described.
As a suggestion, a link to nbviewer for the jupyter files would be useful, something like this.
Also, the license is on LICENSE, not licenses/license.rst, which has a BSD 2-clause, not a 3-clause as in the README.
Finally, all the documentation and examples should probably go on one root folder, or even in Github's own wiki.

It would be nice as well if you could add somewhere a link to the paper presented at ADASS XXVII -if possible.

thanks for comments, we improved and added documentation.


Can't install Twitch Leecher

I used this program before and it worked fine. I uninstalled the previous version, because somehow it wasn't able to upgrade TL version I was in (2.0.5 -> 2.0.7) But it still wouldn't upgrade. It always leads me to

I went to the closed issues and the closest to what I am facing is this one #750. However, even after I did it, it still wouldn't work. I don't know what to do now. Here is the log txt if you need it.
log.txt

Thx for the log.

[27CC:5834][2022-04-04T13:36:43]e000: Error 0x80070070: Failed to set end of file.
[27CC:5834][2022-04-04T13:36:43]e000: Error 0x80070070: Failed to extract all files from container, erf: 1:B:0
[27CC:0AF8][2022-04-04T13:36:43]e000: Error 0x80070070: Failed to begin and wait for operation.
[27CC:0AF8][2022-04-04T13:36:43]e000: Error 0x80070070: Failed to extract payload: a0 from container:

The error code 0X80070070 is an MSI installer error stating your drive is full (not engough space on disk).
If this is the case, you know how to solve it 😄
If this is NOT the case, the only additional cause could be anti virus software not letting the installer write files on disk. We had false positives mostly in AVAST anti virus. SO check your anti virus software if you have something installed.
Other than that the issue does not have anything to do with your old uninstalled version of TL. Everything seems to be ok considering the log.

Ah ok! I am installing it at the D drive tho which has ample amount of space, does it matter the C drive space?

Yes, the Windows installer system always extracts the payload files to the temporary folder. Per default that is on your C:\ drive.

Thanks! I have managed to install it! It is just that my C drive is filling up so much up till there are no free storage left! I have to check on that, but that is a completely separate problem! Thanks again for the fix!


[QUESTION] org-capture-templates

(setq org-capture-templates
'(("d" "Dream" entry
(file+headline +org-capture-todo-file "Dream")
"* TODO %?\n  :PROPERTIES:\n  :CATEGORY: dream\n  :END:\n   %i\n"
:prepend t :kill-buffer t))
I add above in my ~/.doom.d/config.el. When I startup the emacs, the org-capture-templates is current.After press "SPC X",  org-capture-templates become the default value. How can I change it

Doom adds it's own templates. Your template is therefore overwritten when org is started.
The solution is to add your capture to the list of templates after org loads.
Put the following in your config.el:
(after! org
  (add-to-list 'org-capture-templates
             '(("d" "Dream" entry
               (file+headline +org-capture-todo-file "Dream")
               "* TODO %?\n :PROPERTIES:\n :CATEGORY: dream\n :END:\n %i\n"
               :prepend t :kill-buffer t))

Doom adds it's own templates. Your template is therefore overwritten when org is started.
The solution is to add your capture to the list of templates after org loads.
Put the following in your config.el:
(after! org
  (add-to-list 'org-capture-templates
             '(("d" "Dream" entry
               (file+headline +org-capture-todo-file "Dream")
               "* TODO %?\n :PROPERTIES:\n :CATEGORY: dream\n :END:\n %i\n"
               :prepend t :kill-buffer t))

I got it. Thanks


Improvements based on trying on Jenkins core

cc @lemeurherve not sure if you've seen this.
I added epics support in https://github.com/lemeurherve/jira-issues-importer/pull/3/commits/a3f4237e90f90216c008153cfbf8ce690bff9638 :)

I think good enough for now?


Include Validation Error Short URLs in Console Outputs

When the user sees a validation error, they should also be provided with the appropriate (short) URL which sends them to the documentation page describing what that error means and how they might go about fixing it. The documentation pages + short URLs should have been set up in Issue #254
N.B. There is one URL per error type, not error message. There will be multiple different error messages for the same error type group.

@MuazzamChaud I haven't had the time/concentration to create the purl URIs for this task. If you could help me then this could be your next task.


Error fonttools/lib/python3.12/site-packages/fontTools/subset/init.py", line 3478, in _closure_glyphs

For file test.zip This command:
pyftsubset 'test.ttf' --output-file='new-test.ttf' --unicodes='U+21-23' --layout-features="" --drop-tables+=GSUB --no-notdef-glyph

throw the error
Traceback (most recent call last):
  File "/home/webuser/.local/bin/pyftsubset", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/home/webuser/.local/share/pipx/venvs/fonttools/lib/python3.12/site-packages/fontTools/misc/loggingTools.py", line 375, in wrapper
    return func(*args, **kwds)
           ^^^^^^^^^^^^^^^^^^^
  File "/home/webuser/.local/share/pipx/venvs/fonttools/lib/python3.12/site-packages/fontTools/subset/__init__.py", line 3808, in main
    subsetter.subset(font)
  File "/home/webuser/.local/share/pipx/venvs/fonttools/lib/python3.12/site-packages/fontTools/subset/__init__.py", line 3596, in subset
    self._closure_glyphs(font)
  File "/home/webuser/.local/share/pipx/venvs/fonttools/lib/python3.12/site-packages/fontTools/subset/__init__.py", line 3478, in _closure_glyphs
    self.last_retained_order = max(self.reverseOrigGlyphMap.values())
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: max() iterable argument is empty

But it works fine if we remove --no-notdef-glyph flag.

Can you confirm that you are subsetting to an empty font? Ie. the font has none of the requested Unicodes?

Can you confirm that you are subsetting to an empty font? Ie. the font has none of the requested Unicodes?

Yes. The font file doesn't have requested unicodes.


Update README.md

typo

Thanks for spotting this typo. I also fixed it on the usage page where I copied the code in the read-me from.


Delay instantation of brcast in ThemeProvider so it can be inited wit…

…h correct initialState
What:
Delayed initialization of brcast to componentWillMount
Why:
So it won't ever get "untrue" initialState in case of nested ThemeProviders
Checklist:

[ ] Documentation
[ ] Tests
[x] Ready to be merged
[ ] Added myself to contributors table

This is a follow up PR to the discussion here

Codecov Report

Merging #365 into master will not change coverage.
The diff coverage is 100%.

@@          Coverage Diff          @@
##           master   #365   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files          10     10
  Lines         179    181    +2
  Branches       50     51    +1
=====================================
+ Hits          179    181    +2

Impacted Files
Coverage Δ

src/theme-provider.js
100% <100%> (ø)
:arrow_up:

Continue to review full report at Codecov.

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


HHH-18721 Add failing reporducer test case

This PR adds a reproducer test case for https://hibernate.atlassian.net/browse/HHH-18721

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.

Closing since the Jira was rejected.


[cluster-test] Improving node cleanup of CT teardown

This PR added an abstracted fn - delete<T>, which can allow current 3 steps of deleting resource procedure of delete_all for cleanup: delete_pod, delete_service, delete_job running concurrently instead of sequential
test command:
./scripts/cti --pr 7106 --run bench -- --duration 120
with timeframe breakdown clock counter in millisecs.
Before change:
start of steup
    swarm kube end 1036
    grafana end 16
    cluster builder start
        **end cleanup - cluster builder 28** <-----------
	end spawn nodes - cluster builder 186759
    cluster builder end 245356
end of setup 247428
end of health check 19426
end of after experiment health check 5057
start of tear down
    **end of tear down- cleanup 173645** <-----------
    get_workspace - cleanup 3
    set_asg_size - cleanup 630
end of tear down 174279

After change:
start of steup
    swarm kube end 1039
    grafana end 17
    cluster builder start
        **end cleanup - cluster builder 20** <--------------
	end spawn nodes - cluster builder 195927
    cluster builder end 267183
end of setup 269261
end of health check 20053
end of after experiment health check 5044
start of tear down
    **end of tear down- cleanup 106286** <-------------
    get_workspace - cleanup 3
    set_asg_size - cleanup 1106
end of tear down 107396

We can found around 40% time reduce for cleanup work of delete pod, delete service and delete job
Motivation
(Write your motivation for proposed changes here.)
Have you read the Contributing Guidelines on pull requests?
(Write your answer here.)
Test Plan
(Share your test plan here. If you changed code, please provide us with clear instructions for verifying that your changes work.)
Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/diem/diem/developers.libra.org, and link to your PR here.)

Can you add details to the PR on what are we changing and why does it improve speed?

Can you add details to the PR on what are we changing and why does it improve speed?

Can you add details to the PR on what are we changing and why does it improve speed?

details added~

Can you add details to the PR on what are we changing and why does it improve speed?

details added~

/land

/land

/land

/land


Conservative bloomfilter

This takes #3 and fumpts it, and adds a few other known-safe tweaks.

feel like should benchmark those changes to know the difference and any other impact. Otherwise, we should think about setting options from the SDK side like:
https://github.com/cosmos/cosmos-db/issues/50

feel like should benchmark those changes to know the difference and any other impact. Otherwise, we should think about setting options from the SDK side like:
#50

it did reduce compaction by quite a bit but I wasn't able to see the growth in disk space difference.

@JayT106 I agree with you, but would like to mention that benchmarks for this library should properly run in iavl.


Z check when displaying gizmos

Gizmo displayed have no z order, just draw order.

related to #46

Fixed by commit 7b4554c


Test+Fix for Query string in repo URL is discarded when downloading packages

First attempt at adding additional test cases to TestResolveReferenceURL() to check for issue #4419, as well as proposing a fix.

@bacongobbler This will need to be picked into 2.10


Path different operation is unstable

Since we don't care about element's order, so it's hard to figure out which element is first, that's why the path different may cause different result.
To solve the issue, we need to re-think about the element order mechanism.

https://github.com/mocircle/cidrawing/commit/0d3653ea63bb75cc94d1652f1492d7072fbaa443


Doesn't compile with Studio 3.4.x

Hi there,
When I upgraded studio to latest 3.4.x and gradle to 5.x.x . it keeps throwing compilation error . Any workaround for this ?

I am also having this issue since upgrading to gradle plugin 3.4.0, gradle 5.1.1.
e: Supertypes of the following classes cannot be resolved. Please make sure you have the required dependencies in the classpath:
    class io.palaima.debugdrawer.commons.BuildModule, unresolved supertypes: io.palaima.debugdrawer.base.DebugModuleAdapter
    class io.palaima.debugdrawer.actions.ActionsModule, unresolved supertypes: io.palaima.debugdrawer.base.DebugModule
    class io.palaima.debugdrawer.commons.DeviceModule, unresolved supertypes: io.palaima.debugdrawer.base.DebugModuleAdapter

Maybe lost some dependency, such as io.palaima.debugdrawer:debugdrawer-base:0.8.0

Adding debugImplementation "io.palaima.debugdrawer:debugdrawer-base:$debugDrawer" worked for me.

   debugImplementation "io.palaima.debugdrawer:debugdrawer-base:0.8.0"


“Legacy plugin AppleCoreSpigot v1.1.1 does not specify an api-version”

It looks like the gods of bit-rot are getting hungry:
[00:20:03 ERROR]: [STDERR] [org.bukkit.craftbukkit.v1_18_R1.legacy.CraftLegacy] Initializing Legacy Material Support. Unless you have legacy plugins and/or data this is a bug!
[00:20:11 WARN]: Legacy plugin AppleCoreSpigot v1.1.1 does not specify an api-version.
[00:20:11 INFO]: [AppleCoreSpigot] Loading AppleCoreSpigot v1.1.1

This is on Paper 1.18.1:216

Thanks! Should be fixed in the latest release: https://github.com/jmattingley23/AppleSkinSpigot/releases/tag/latest


Add Mysteryvibe Crescendo support

See https://github.com/buttplugio/buttplug-csharp/blob/master/Buttplug.Server/Bluetooth/Devices/MysteryVibe.cs

buttplug-js will soon be part of buttplug-wasm in https://github.com/buttplugio/buttplug-rs-ffi, closing this bug as it relates to implementation that will be taken care of in buttplug-rs.


[FEATURE] Add DDS strings helper

Introduction
Most visual data in game requires the text to be within the games DDS strings.
This can be somewhat troublesome for a helper library that does most the work for you.
Its expected than when for example you add a sync disk with name X into the game, it shows up as such
and that the modder does not have to manually add the DDS files.
As a first start, I'd like to add DdsStrings helper to add these entries.
Then mods can use this, and the common lib can also further use these for implementations of other helpers.
Description of the feature
A method that can easily and straightforward insert/update/delete a key in a specific dictionary.
Feature usage
Lib.DdsStrings.Add("evidence.syncdisks", "syncdisk_policeman", "Police officer");
Lib.DdsStrings.Update("evidence.syncdisks", "syncdisk_policeman", "Police officer 2");
Lib.DdsStrings.Delete("evidence.syncdisks", "syncdisk_policeman");

Dependencies and Prerequisites
No
Implementation details
As a helper class within the Lib class

Implemented in 1.1.5


Cannot fetch Galaxy Watch 4 Classic Firmware

Describe the bug

The tool cannot fetch Galaxy Watch 4 fw

To Reproduce
Steps to reproduce the behavior:

Go to device model  Set it to- SM-R890
Click on Check Updates
Update is found, click on download, it doesnt work and throws error 408, when I give correct serial number it throws error 400
See error

Expected behavior
Firmware should be downloaded
Screenshots

Desktop (please complete the following information):

OS: Windows 11 Home
Browser: Chrome
Version 1.17.5

Additional context
Nothing  much

Samsung doesn't serve full firmware for watches.

@zacharee it does, I'm getting a 1.7GB OTA from Watch 4 Manager

The OTA system is completely separate from the system Bifrost uses, and hasn't been successfully reverse engineered yet.

Ah okay, anything we can expect or not?

Probably not. The system is very complex and seems to depend on generating unique keys based on the secure element in the device to register it.

@zacharee I managed to grab ota link via packet capture, but it says it requires a key value pair

@zacharee what could be case where link says "Access Denied"?

URL
here


Docker Service.docker fails in linux build validation pipeline

https://github.com/abbgrade/psdocker/actions/workflows/build-validation.yml?query=branch%3Adevelop
Message:

ProcessCommandException: Cannot find a process with the name "com.docker.service". Verify the process name and call the cmdlet again.

linux and windows agents are effected


Enhances planner plan set, Closes #4404

This PR enhances planner plan set.
Closes #4404

Great job @nicodecleyre, we'll try to review it ASAP!

Thank you for your review @Adam-it ! I've processed your feedback! 🤩

ready to merge 🚀

merged manually


Suggestion: tell about building

SQLite3 Node module can be built with an sqlite3.h and a libsqlite3.so. It's convenient to get the latest SQLite3 version (ex. the actual is 3.19.2, and I built the library with the amalgation C file).
I’ve just checked the same can be done with the promisified SQLite module:
npm install -g --build-from-source --sqlite=/<some-dir>/sqlite3 sqlite

It works.
This may be useful to users to tell about this option.

Feel free to open a PR adding to the readme

v4 now allows for any sqlite library to be used as long as it conforms to the sqlite3 API. You might want to check it out.


.ebextensions/cron.config not created if .ebextensions directory does not exist

When running
wheneverize-eb .

.ebextensions/cron.config is not created if the directory .ebextensions does not exist.

Fixed in https://github.com/dignoe/whenever-elasticbeanstalk/pull/26


Adding a controller module to manage transitioning integrations to their desired status.

I need to add some integration tests for this, but I think this implements the basic framework around managing the workflow state that @KurtStam, @iocanel and I discussed today.

want to pull in/rebase and add the deployment data from https://github.com/redhat-ipaas/ipaas-rest/pull/231?


feat: add danger file with basic conf

Messages

:book:
Changed Files in this PR:
 - .github/workflows/pipeline.yaml- package-lock.json- package.json

  Generated by :no_entry_sign: dangerJS against 3af8dfa1b28d22bb7c7f70b7d1881336419feb30


Update README to show syntax for fetching a specific service

Resolves #186
The syntax has been changed and the examples have been updated. There's one left in the README to update

Thanks!


"No authorization token" behind apache proxypass

hello
thanks for the great tool i've been looking for for a while !
i've just installed all this on a lamp server that runs websites and such, and your app works perfectly locally.
but i'd rather use proxypass to have a nice url and already configured ssl than opening new ports on the server, router, etc.
# keepass-note
ProxyPass /keepass http://localhost:8443/keepass
ProxyPassReverse /keepass http://localhost:8443/keepass
<Proxy https://localhost:8443>
    Require all granted
</Proxy>

usually this setup works fine with node.js but here i run into this error :
UnauthorizedError: No authorization token was found
   at middleware (/var/www/keepass-node/node_modules/express-jwt/lib/index.js:80:21)
   at /var/www/keepass-node/node_modules/express-unless/index.js:47:5
   at Layer.handle [as handle_request] (/var/www/keepass-node/node_modules/express/lib/router/layer.js:95:5)
   at trim_prefix (/var/www/keepass-node/node_modules/express/lib/router/index.js:312:13)
   at /var/www/keepass-node/node_modules/express/lib/router/index.js:280:7
   at Function.process_params (/var/www/keepass-node/node_modules/express/lib/router/index.js:330:12)
   at next (/var/www/keepass-node/node_modules/express/lib/router/index.js:271:10)
   at jsonParser (/var/www/keepass-node/node_modules/body-parser/lib/types/json.js:100:40)
   at Layer.handle [as handle_request] (/var/www/keepass-node/node_modules/express/lib/router/layer.js:95:5)
   at trim_prefix (/var/www/keepass-node/node_modules/express/lib/router/index.js:312:13)

i can't find any information on such an error. do you have any idea why this happens ?

Hi @krodelabestiole :-)
I also didn't see that error, yet, but the reason is a missing Authorization header which is used to pass your credentials in a secure manner to the internal keepass reader.
Since you mentioned using the Apache ProxyPass* directives, I found some hints on StackOverflow. Apache seems to strip Authorization headers for security reasons. I won't be able to easily reproduce the issue on my host (I'm not an Apache user anymore), so I would just paste some links here which might be helpful for you. In essence they aim at telling the Apache not to strip the required Authorization header:

http://stackoverflow.com/questions/26549250/apache-strips-down-authorization-header?lq=1
https://httpd.apache.org/docs/2.4/en/mod/core.html#cgipassauth

Please give the mentioned fixes a try and if something works for you, I'd be glad if you could write them down in this issue for other people with such problems. Thanks!
As a side note: I actually use the HAProxy for reverse proxying. You might consider using it instead of Apache.

@gesellix Thanks for your quick answer !

write down your fix in a comment for other people with such problems

of course i would ! but i suspect the problem is a bit too tricky for me unfortunately...
I can't try cgipassauth yet because it requires apache 2.4.13 and jessie's latest apache version is only 2.4.10.
Anyway maybe my issue has more to do with the proxy-chain-auth directive for mod_proxy_http.
I found this topic which looks related : http://stackoverflow.com/questions/6213028/setting-up-mod-proxy-to-pass-http-authentication-to-server
But it doesn't change anything yet. Do you have any idea what value should I choose for AuthType None|Basic|Digest|Form ? And Auth(Basic)Provider ?
I tried a bit randomly the basic value combined to a basic auth in keepass-node config, and got another error :
UnauthorizedError: Format is Authorization: Bearer [token]

There are different aspects to consider here:

you can secure the access to keepass-node with a basic authentication, which means that the browser will add an Authorization: Basic ... header to your requests. The username and password are entered in a browser's dialog box and are base64 encoded.
the access to your keepass file needs the keepass password, though. That password is entered in the login form where you select your keepass kdbx file. Since that password is considered to be very important and shouldn't be easily readable by someone tampering with your connections, it's encoded as JWT payload. The JWT itself is be transmitted as Authorization: Bearer ... header.
the Proxy-Authorization header is mostly necessary for corporate proxies where you need to authenticate at your proxy and at the service behind it. So, you authorize yourself twice, at first at the proxy and then at a service (e.g. keepass). Both authorization header values are base64 encoded, so the headers usually start with Authorization: Basic ... and Proxy-Authorization: Basic .... The proxy should remove the Proxy-Authorization header and only pass on the Authorization header to the service behind.

So regarding your question: I'd expect that the proxy-chain-auth directive would make sense for the last case, but won't help for the Authorization: Bearer ... token, which is the one making problems.
Did you try adding the following directives (to .htaccess) instead of CGIPassAuth?
RewriteEngine On
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]

Another snippet I've found was:
SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

Essentially, they only seem to work with PHP, which recognizes HTTP_AUTHORIZATION as AUTHORIZATION header, but you might give it a try.
Sorry for only blindly providing some blind shots :-/
I'll try to reproduce your issue when time permits. If you have your Apache config/source online somewhere or if you could share something like a minimal example, I can give it a try without learning again how to configure the Apache correctly ;-)

here is my keepass.conf :
ProxyRequests Off
ProxyPreserveHost Off

# keepass-note
<Location /keepass>
    ProxyPass http://localhost:8443/keepass
    ProxyPassReverse http://localhost:8443/keepass
    AuthType basic
    AuthBasicAuthoritative Off
    SetEnv proxy-chain-auth On
    # SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
    AuthBasicFake username_set_in_keepass_node_config and_its_password
    # RewriteEngine On
    # RewriteCond %{HTTP:Authorization} ^(.*)
    # RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
    Require all granted
    #Require valid-user
</Location>

I have simplified a bit and removed every ssl related directive (i guess it has nothing to do with the issue)
i've tried to put the rewrite rules in the conf because i wouldn't know where to put the .htaccess (i guess apache is not using kp-node directory at all in that case). it's commented out because it doesn't change anything.
with this setup (authbasicfake) i get the Bearer [token] error, so i guess i'm a bit more advanced...
i think i will give up on this for now, for all this auth thing is a bit away from my understanding, despite your much appreciated explanations.
obviously i keep on following this thread and stay available for any suggestion or test.

I'll give it a try to make it work with the Apache Httpd - but with low priority. Thanks for sharing your config!
If possible for you and if you only need a simple reverse proxy, I'd still suggest to give alternatives a try. I recommend https://caddyserver.com/ or http://www.haproxy.org/ - myself being a HAProxy user for the same use case like yourself. See https://github.com/gesellix/gesellix/blob/master/provisioning/roles/proxy/templates/haproxy.cfg.j2#L76 as an example.


function onSoundCompleted doesn't work?

Describe your problem here.
it doesnt call it on sound finish????
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
No response

Use onSoundFinished. Don't ask me. It's in the code

wow very cool


Pipeline GetVectorByIds and Not Use ThreadPool

issue: #919
Improve DiskANN GetVectorByIds further by pipeline if the number of requested Ids in a call exceeds buffer size.
The concurrency is totally controlled by the outside, e.g. Milvus. In Milvus, the maximum concurrency is the same as cpu_num.
Knowhere side - Single Thread
2G 256 Dim
50 random IDs, 1M round
  | Avg (us) | Min (us) | Max (us)
-- | -- | -- | --
I/O Request per thread in Pool | 429 | 181 | 5859
Batch + Pool | 339 | 309 | 1413
No Pool, No Pipeline in this case | 241 | 195 | 1471
1000 random ids, 10k round
| Avg (us) | Min (us) | Max (us)
-- | -- | -- | --
I/O Request per thread in Pool | 2910 | 2649 | 5718
Batch + Pool | 5344 | 4779 | 6789
No Pool, Pipeline | 2673 | 2404 | 4102
10000 random ids, 10k round
| Avg (us) | Min (us) | Max (us)
-- | -- | -- | --
I/O Request per thread in Pool | 26314 | 24655 | 43706
Batch + Pool | 47974 | 46950 | 81613
No Pool, Pipeline | 20119 | 19587 | 25483

@liliu-z

/hold

/lgtm

/unhold


[5.5] Added str_compare and str_exactly helpers

Two string helpers

str_exactly compares two strings.
str_compare compares two strings case insensitively.

Thanks, but I don't think we need to bloat the core with more functions. str_exactly is the same as ===.

@GrahamCampbell  I understand but I think the code looks more clean as compare to the === and strtolower('something') === strtolower('SomeThing') statements.

These are implemented badly. You cannot compare strings in a case insensitive way without also working with locale information. You need locale rules to determine if two letters are the same. The uppercase version if "i" (Latin Small Letter I, U+0069) is "İ" (Latin Capital Letter I with Dot Above, U+0130) in Turkish, not "I" (Latin Capital Letter I, U+0049) as you are probably used to. Wikipedia has an article on this; Dotted and dotless I.
The documentation should at least state that the functionality is only guaranteed/tested for ASCII.


docs: Add note about actions secrets usage

Document how the secrets can be used in the workflow.

Thank you for your contributions. Please send pull requests to https://gitea.com/gitea/docs .


Cannot  Cheapest Product

I'm using  your uber SDK on iOS app. Last days, I can get cheapest product with ridesClient.fetchCheapestProduct() function. But today, that function always return nil value.
Any problem with your server or sdk. Please help me about this issue
(I'm in Vietnam and my client_id still works fine for Android)
Thanks

Hey @nlhdung, I'm unable to reproduce this bug. Can you please give me more details about how you're using the SDK?
Are you getting an error in the response object? If so, are you adding your Server Token properly?
See here: https://github.com/uber/rides-ios-sdk#sdk-configuration

Since this is question is from over a month ago, I'm going to close this until further response :)


Fix ViewControllerInjector for UITabBarController

The UITabBarController's property childViewControllers only contains the visible tabs, when there are more than 4 tabs on a smaller screen a more tab gets created. This screws with the injection and ignores the tabs that are now in the more tab. This pull request tries to fix this issue by instead calling the UITabBarController's viewController property which does contain the other tabs.

It might make more sense to use a category for this, let me know what you think.

Hi @Pireax. Thanks for your fix. I think it makes sense, although I've tested UITabBarController case before, it must be a change in latest iOS versions. I'll merge it.


refactor: use js-yaml to parse both JSON and YAML

Motivation
YAML 1.2 has made YAML a strict superset of JSON, so we don't need JSON.parse anymore.
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
Tests that read JSON fixtures still pass

In the future we might support other formats as well, so not sure it's worth removing the extension switch

I tried encapsulating the readConfigFile function in utils-validation but found it quite painful to make file paths reconcile. If there's truly a need to support more formats, we can still discriminate based on extension; but for now I value simplicity and I can't really see a format that we should absolutely add🤔 TOML?

Thanks, LGTM


添加神通数据库根据jdbcUrl获取DbType的支持

seata使用druid作为DbTypeParser，无法解析神通的jdbcUrl,添加神通数据库根据url判断类型枚举的逻辑

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

请在本地运行mvn validate修复checkstyle的问题

test


Karpenter doesnt support custom resources requests/limit

Version

Karpenter: v0.10.1

Kubernetes: v1.20.15
Expected Behavior
Karpenter should be able to trigger an autoscale
Actual Behavior
Karpenter isnt able to trigger an autoscale
Steps to Reproduce the Problem
We're using Karpenter on EKS. We have pods that has custom resource requests/limits in their spec definition - smarter-devices/fuse: 1. Karpenter seems to not respecting this resource and fails to autoscale and the pod remains to be in pending state
Resource Specs and Logs

Provisioner spec
apiVersion: karpenter.sh/v1alpha5
kind: Provisioner
metadata:
  name: default
spec:
  limits:
    resources:
      cpu: "100"
  provider:
    launchTemplate: xxxxx
    subnetSelector:
      xxxxx: xxxxx
  requirements:
  - key: karpenter.sh/capacity-type
    operator: In
    values:
    - on-demand
  - key: node.kubernetes.io/instance-type
    operator: In
    values:
    - m5.large
    - m5.2xlarge
    - m5.4xlarge
    - m5.8xlarge
    - m5.12xlarge
  - key: kubernetes.io/arch
    operator: In
    values:
    - amd64
  ttlSecondsAfterEmpty: 30
status:
  resources:
    cpu: "32"
    memory: 128830948Ki

pod spec
apiVersion: apps/v1
kind: Deployment
metadata:
  name: fuse-test
  labels:
    app: fuse-test
spec:
  replicas: 1
  selector:
    matchLabels:
      name: fuse-test
  template:
    metadata:
      labels:
        name: fuse-test
    spec:
      containers:
      - name: fuse-test
        image: ubuntu:latest
        ports:
          - containerPort: 8080
            name: web
            protocol: TCP
        securityContext:
          capabilities:
            add:
              - SYS_ADMIN
        resources:
          limits:
            cpu: 32
            memory: 4Gi
            smarter-devices/fuse: 1  # Custom resource
          requests:
            cpu: 32
            memory: 2Gi
            smarter-devices/fuse: 1  # Custom resource
        env:
        - name: S3_BUCKET
          value: test-s3
        - name: S3_REGION
          value: eu-west-1

karpenter controller logs:
controller 2022-06-06T15:59:00.499Z    ERROR    controller    no instance type satisfied resources {"cpu":"32","memory":"2Gi","pods":"1","smarter-devices/fuse":"1"} and requirements kubernetes.io/os In [linux], karpenter.sh/capacity-type In [on-demand], kubernetes.io/hostname In [hostname-placeholder-3403], node.kubernetes.io/instance-type In [m5.12xlarge m5.2xlarge m5.4xlarge m5.8xlarge m5.large], karpenter.sh/provisioner-name In [default], topology.kubernetes.io/zone In [eu-west-1a eu-west-1b], kubernetes.io/arch In [amd64];

Looks like you're running purely into the CPU resources here. I added the feature label as it looks like you're requesting to be able to add custom resources into the ProvisionerSpec.Limits?

@njtran , this is the bit:

smarter-devices/fuse: 1  # Custom resource

As discussed on slack:

@Todd Neal and I were recently discussing a mechanism to allow users to define extended resources that karpenter isn't aware of. Right now, we are aware of the extended resources on specific EC2 instance types, which is how we binpack them. One option would be to enable users to define a configmap of [{instancetype, provisioner, extendedresource}] that karpenter could use for binpacking.

Thanks @ellistarn - yes, the proposed solution looks good. Sorry for asking, but any ETA on this? We're not able to use Karpenter because of this right now.

Thanks @ellistarn - the proposed solution looks good. Sorry for asking, but any ETA on this? as we're unable to use Karpenter because of this.

@ellistarn Hope you are doing well !
I encountered the same issue while working on karpenter, So wanted to know it's been implemented via. any existing PR ?

This isn't currently being worked on -- we're prioritizing consolidation and test/release infrastructure at the moment. If you're interested in picking up this work, check out https://karpenter.sh/v0.13.1/contributing/

For us this is a blocking issue with Karpenter. Our use case is fuse and snd devices that are created as custom device resources from smarter device manager
As a simpler workaround @ellistarn @tzneal  why not just ignore resources that Karpenter is unaware of?
Taking this error message:
Failed to provision new node, incompatible with provisioner "default", no instance type satisfied resources {....smarter-devices/fuse":"2"} ...

it looks like Karpenter has all information available of "manageable" resources and those that are not?

I'm having the same issue with hugepages

https://gitlab.com/gitlab-org/gitlab-runner/-/merge_requests/3717

We also need this, for nitro enclaves.

we also need this when using "fuse" device plugin resoruce,    here is what we  met and currently working around this issue.
#308

If Karpenter were able to support https://kubernetes.io/docs/concepts/scheduling-eviction/dynamic-resource-allocation/ in its compute scheduling, would that satisfy the different devices listed on this thread?

If Karpenter were able to support https://kubernetes.io/docs/concepts/scheduling-eviction/dynamic-resource-allocation/ in its compute scheduling, would that satisfy the different devices listed on this thread?
Note: This is only an alpha feature in 1.27 so still early days - but it does look like the "correct" avenue from a Kubernetes perspective

I think so? In that with some effort all custom resources could be re-written as dynamic resource allocations.
This is probably a good fit for nitro enclaves; but probably a bad fit for e.g. hugepages.
Likely Karpenter will need to gain support for both.


Public setting not updating

I select the setting and click on public, but not working.

Hey @sykhan1st,
Can you give us some more information?
Like which browser are you on?

It looks like account support to me. @sykhan1st please share some screenshots, errors of your browser's console. Alternatively, you can email us<EMAIL_ADDRESS>with the your account details.

Hey @sykhan1st,
Can you give us some more information?
Like which browser are you on?

i am using Edge browser.

It looks like account support to me. @sykhan1st please share some screenshots, errors of your browser's console. Alternatively, you can email us<EMAIL_ADDRESS>with the your account details.

going to email support, thank you

[image: image.png]
On Wed, May 26, 2021 at 3:57 PM Mrugesh Mohapatra @.***>
wrote:

It looks like account support to me. @sykhan1st
https://github.com/sykhan1st please share some screenshots, errors of
your browser's console. Alternatively, you can email us:
@.*** with the your account details.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/freeCodeCamp/freeCodeCamp/issues/42259#issuecomment-849076418,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AQKFIXVCLG7AIGFI36CXDATTPVHCNANCNFSM45SMUSFQ
.

--
Thank you
Shafiat Khan

Hey @sykhan1st ,
I am closing this because you are receiving support by e-mail.
If this issue does appear to be a global issue feel free to reopen it again.


Update or deprecate Get-OspreyUserAdminAudit

This uses the deprecated admin audit log to check for user changes. There is not really an easy 1 to 1 migration to the UAL in this case. Same problem as in other places, where we'd need to search for very specific commands being ran, and also filter out potential system garbage.
I think the best way moving forward with this and a few other functions is to determine exactly what changes would be made on an account when it's compromised (such as adding an additional MFA method) and pulling those from the UAL.

Decided to deprecate for now.


Add license as a file

It's a common convention to have the license included as a separate file. Would be great to see the same here. 👍

Added. Thanks for pointing it out.


Upgrade to angular 5

Hi, i get this error when update myproject to angular5
**ng build --env=homolog -
Module build failed: Error: /var/www/html/.../node_modules/ng2-search-filter/src/ng2-filter.module.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
The missing file seems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library. Please open an issue in the library repository to alert its author and ask them to package the library using the Angular Package Format (https://goo.gl/jB3GVv).
at AngularCompilerPlugin.getCompiledFile (/var/www/html/..../node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:653:23)
at plugin.done.then (/var/www/html/...../node_modules/@ngtools/webpack/src/loader.js:467:39)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
@ ./src/app/app.module.ngfactory.js 80:0-63
@ ./src/main.ts
@ multi ./src/main.ts
ERROR in ./node_modules/ng2-search-filter/src/ng2-filter.pipe.ts
Module build failed: Error: /var/www/html/...../node_modules/ng2-search-filter/src/ng2-filter.pipe.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
The missing file se& ng build --env=homolog --prod  --aot ems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library. Please open an issue in the library repository to alert its author and ask them to package the library using the Angular Package Format (https://goo.gl/jB3GVv).
at AngularCompilerPlugin.getCompiledFile (/var/www/html/..../node_modules/@ngtools/webpack/src/angular_compiler_plugin.js:653:23)
at plugin.done.then (/var/www/html/....node_modules/@ngtools/webpack/src/loader.js:467:39)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
@ ./src/app/dashboard/robot-instance/robot-instance.component.ngfactory.js 32:0-61
@ ./src/app/app.module.ngfactory.js
@ ./src/main.ts
@ multi ./src/main.ts

Hi, has anyone fix this?
or know something?

ERROR in ./node_modules/ng2-search-filter/index.ts
Module build failed: Error: C:\Users\Pedro\Desktop\ngsignoss\signossApp\node_modules\ng2-search-filter\index.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
The missing file seems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library. Please open an issue in the library repository to alert its author and ask them to package the library using the Angular Package Format (https://goo.gl/jB3GVv).
at AngularCompilerPlugin.getCompiledFile (C:\Users\Pedro\Desktop\ngsignoss\signossApp\node_modules@ngtools\webpack\src\angular_compiler_plugin.js:656:23)
at plugin.done.then (C:\Users\Pedro\Desktop\ngsignoss\signossApp\node_modules@ngtools\webpack\src\loader.js:467:39)
at process._tickCallback (internal/process/next_tick.js:109:7)
@ ./src/app/app.module.ts 22:26-54
@ ./src/main.ts
@ multi webpack-dev-server/client?http://<IP_ADDRESS>:0 ./src/main.ts

@pedro412 what version of ng2-search-filter are you using? that file doesn't exists, how are you importing the module? can you please show us your module.ts?

Hi Sure<EMAIL_ADDRESS>when installing it gives me this WARNS:

Then when trying to import:

and finally it gives me the error ❌
ERROR in ./node_modules/ng2-search-filter/index.ts
Module build failed: Error: C:\Users\admpalvarez\Desktop\chile\v1\FarmaciasChile\node_modules\ng2-search-filter\index.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
The missing file seems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library. Please open an issue in the library repository to alert its author and ask them to package the library using the Angular Package Format (https://goo.gl/jB3GVv).
at AngularCompilerPlugin.getCompiledFile (C:\Users\admpalvarez\Desktop\chile\v1\FarmaciasChile\node_modules@ngtools\webpack\src\angular_compiler_plugin.js:656:23)
at plugin.done.then (C:\Users\admpalvarez\Desktop\chile\v1\FarmaciasChile\node_modules@ngtools\webpack\src\loader.js:467:39)
at
at process._tickCallback (internal/process/next_tick.js:160:7)
@ ./src/app/pages/pages.module.ts 23:26-54
@ ./src/app/app.module.ts
@ ./src/main.ts
@ multi webpack-dev-server/client?http://<IP_ADDRESS>:0 ./src/main.ts

@solodynamo I thinks this issue is with the postinstall script, this is not longer neccesary with the new package format, check #32


Transactional Caches currently ignore user defined vetoes

The transaction code currently ignore user defined eviction veto functions.  I think this might be as simple as the used veto function being a logical or of the users veto with the xa veto.

Created some high level design docs around XA caches.
I believe there is no reason to not support user specified vetoes.


Error on Get: Could not load file or assembly 'Newtonsoft.Json, Version=<IP_ADDRESS>"

When calling to CacheManager.GetCache("mochPartitionedCache").Get<T>(key)  I'm getting this exception:
System.IO.FileLoadException   HResult=0x80131040   Message=Could not load file or assembly 'Newtonsoft.Json, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)   Source=Alachisoft.NCache.Client   StackTrace:    at Alachisoft.NCache.Client.RemoteCache.SafeDeserialize[T](Object serializedObject, String serializationContext, BitSet flag, CacheImplBase cacheImpl, UserObjectType userObjectType)    at Alachisoft.NCache.Client.Cache.SafeDeserialize[T](Object serializedObject, String serializationContext, BitSet flag, UserObjectType userObjectType)    at Alachisoft.NCache.Client.Cache.GetInternal[T](String key, String group, String subGroup, LockAccessType accessType, TimeSpan lockTimeout, LockHandle& lockHandle)    at Alachisoft.NCache.Client.Cache.Get[T](String key)    at Ness.Diyur.Cache.DistributedCacheManager.Get[T](String key) in D:\DevProjects\Ness.Diyur.ESB\Ness.Diyur.Cache\DistributedCacheManager.cs:line 20    at DiyurESB.ServerTest.InfrastructureTests.DistributedCacheTest() in D:\DevProjects\Ness.Diyur.ESB\DiyurESB.ServerTest\InfrastructureTests.cs:line 89
I've installed NCache <IP_ADDRESS> and the Open Source SDK NuGet package. The NCache service is running.
and the Add and Insert method's are working well.
I'm using Newton.Json 12.0.3 for another needed.
What the problem?
Thanks for help

Hi @ShoshanaTzi .
I've sent this to our engineering team and I'll get back to you once I have an update.
Please let me know if there are any questions.

Hi,
Thank you for your email.
After I installed the NCache in my local-server, there was no more error
בתאריך יום ג׳, 1 בספט׳ 2020 ב-17:33 מאת Mark-NCache <
notifications@github.com>:

Hi @ShoshanaTzi https://github.com/ShoshanaTzi .
I've sent this to our engineering team and I'll get back to you once I
have an update.
Please let me know if there are any questions.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Alachisoft/NCache/issues/58#issuecomment-684898912,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFZJ4WZAPTE5ODJJR2C6J6DSDUA27ANCNFSM4QQDPEXQ
.


Change default for resolverImplicitCatalog

The chaise-config property, resolverImplicitCatalog, has 3 options currently. Their behavior is as follows:

catalog id

matches current catalog and resolver is setup for shorter links, resolver link is provided without catalog id (/id/X where X is the filter)
doesn't match, resolver link is provided with catalog id (/id/N/X where N is the catalog id and X is the filter)

false

always use resolver in catalog qualified form (/id/N/X)

not defined

don't use resolver at all

Proposed change:

C: resolver on, /id/RID for /id/C/RID, /id/N/RID for others

false: resolver on, always use explicit /id/N/RID

null: disable use of resolver URLs

undefined/property absent from config: same as false

catalog id:  behave the same as before

true or not defined: always use resolver in catalog qualified form (/id/N/X)

false: don't use resolver at all

On Feb 12, Josh Chudy modulated:

The chaise-config property, resolverImplicitConfig, has 3 options
...
Proposed change:
• catalog id
□ behave the same as before
• true or not defined
□ always use resolver in catalog qualified form (/id/N/X)
• false
□ don't use resolver at all

I don't think this change makes sense with the original property
name.  We should either replace the property entirely with a different
definition or just carefully distinguish null and undefined:

C: resolver on, /id/RID for /id/C/RID, /id/N/RID for others
false: resolver on, always use explicit /id/N/RID
null: disable use of resolver URLs
undefined/property absent from config: same as false

I like @karlcz's solution as it doesn't break any backward compatibility.

@svoinea can you please help review the issue by testing this resolverImplicitCatalog chaise-config parameter? Chaise should react appropriately depending on the set value.

I have tested it on pbcconsortium.isrd.isi.edu, and only the first case was working as expected by me:
resolverImplicitCatalog: 1

and https://pbcconsortium.isrd.isi.edu/id/1-882P, https://pbcconsortium.isrd.isi.edu/id/1/1-882P and https://pbcconsortium.isrd.isi.edu/id/3/1-19RC were OK.
I tried the other three cases:
resolverImplicitCatalog: false

resolverImplicitCatalog: null

and resolverImplicitCatalog missing, and all of them were honouring the  https://pbcconsortium.isrd.isi.edu/id/1-882P, which I expected it shouldn't.
pbcconsortium.isrd.isi.edu receives daily updates.

@svoinea I don't understand your comment.  What do you mean that URLs were "OK" and what do you mean by, "all of them were honouring the "?
It sounds to me like you are talking about the behavior of the resolver. This setting resolverImplicitCatalog is for Chaise and of course will not not change the behavior of the resolver on the server in any way. It will only change the type of URL offered by Chaise in the share/bookmark GUI.

By OK, I mean the URLs were converted to https://pbcconsortium.isrd.isi.edu/chaise/record/#1/Beta_Cell:Dataset/RID=1-882P or https://pbcconsortium.isrd.isi.edu/chaise/record/#3/vocab:specimen_terms/RID=1-19RC.
I have retested and confirm that the links that appears under the Share button are matching the description for all the four cases.
The issue can be closed from my point of view.


关于自定义数据集训练效果的问题

作者您好，我详细看了您 #35 & #143 的回答，如何理解 ”输入长度是周期的整数倍” 跟数据周期性呢？目前用默认参数训练以下dataset（MS, 48, target=close）的效果并不好，我该如何调整参数呢？谢谢您的解答.
BTC.csv

Hi, thanks for sharing your data. It seems that all your data are in a relative large value. You may find the normalization De-normalization technique proposed by Non-stationary Transformer useful. https://github.com/thuml/Nonstationary_Transformers


Setting services.plex.package has no effect on the version run

Describe the bug
Setting services.plex.package does not result in the correct version being executed. The package is downloaded correctly and the services are written with the right paths. Somehow, the actual version that is run by the system is a previous version.
Steps To Reproduce
Steps to reproduce the behavior:

Set services.plex.package to an arbitrary version

Expected behavior
The system executes the right package.
Additional context
plex.nix:
    package = pkgs.plex.overrideAttrs (x: let
        version = "<IP_ADDRESS>31-1a38e63c6";
        sha1 = "7d0751f7efaa7b5fc9ac2a3cdb130712db6b6d89";
      in {
        src = pkgs.fetchurl {
          url = "https://downloads.plex.tv/plex-media-server-new/${version}/debian/plexmediaserver_${version}_amd64.deb";
          inherit sha1;
        };
      }
    );
  };

systemctl status plex (note the version being executed):
● plex.service - Plex Media Server
     Loaded: loaded (/nix/store/658akg3f0mmv9ihnqyfgglkrjz9syysi-unit-plex.service/plex.service; enabled; vendor preset: enabled)
     Active: active (running) since Thu 2021-08-26 02:12:49 CEST; 6min ago
    Process: 3976490 ExecStartPre=/nix/store/lh6wxvjvwq0pvk2yi6w8hw6687212mfn-plex-run-prestart (code=exited, status=0/SUCCESS)
   Main PID: 3976493 (chrootenv)
         IP: 507.2K in, 357.6K out
         IO: 0B read, 0B written
      Tasks: 58 (limit: 38410)
     Memory: 95.9M
        CPU: 6.622s
     CGroup: /system.slice/plex.service
             ├─3976493 /nix/store/pakqylpxaspsh7l5hm9xisy6pbw2rlnw-chrootenv/bin/chrootenv /nix/store/hw943lpnn2dvffps900rxxwq6b7la7y6-plexmediaserver-init /
             ├─3976501 /nix/store/whcizl7j33carha01081qi704xcz95i5-plexmediaserver-<IP_ADDRESS>02-280ab6053/lib/plexmediaserver/Plex Media Server
             ├─3976743 Plex Plug-in [com.plexapp.system] /nix/store/whcizl7j33carha01081qi704xcz95i5-plexmediaserver-<IP_ADDRESS>02-280ab6053/lib/plexmediaserver/Resources/Plu>
             ├─3977103 /nix/store/whcizl7j33carha01081qi704xcz95i5-plexmediaserver-<IP_ADDRESS>02-280ab6053/lib/plexmediaserver/Plex Tuner Service /nix/store/whcizl7j33carha01>
             └─3977136 Plex Plug-in [com.plexapp.agents.imdb] /nix/store/whcizl7j33carha01081qi704xcz95i5-plexmediaserver-<IP_ADDRESS>02-280ab6053/lib/plexmediaserver/Resource>

plex.service (cat /nix/store/658akg3f0mmv9ihnqyfgglkrjz9syysi-unit-plex.service/plex.service):
[Unit]
After=network.target
Description=Plex Media Server

[Service]
Environment="LANG=en_US.UTF-8"
Environment="LC_ALL=en_US.UTF-8"
Environment="LD_LIBRARY_PATH=/run/opengl-driver/lib"
Environment="LOCALE_ARCHIVE=/nix/store/8y24k2dqb62nrv9m8j8jkc2134c7qxka-glibc-locales-2.32-48/lib/locale/locale-archive"
Environment="PATH=/nix/store/xs38mci2dj4isxayifazwdma1dk9w9bl-coreutils-8.32/bin:/nix/store/ccb8104ais1q6mbzq98vsn5lmj2wp88f-findutils-4.7.0/bin:/nix/store/32k710p5xmv4x4lvv5gkqynnw1hixyad-gnugrep-3.6/bin:/nix/store/nhf3114vx6v0gih1gpm3cg3fkyhnclac-gnused-4.8/bin:/nix/store/71lqc2a8cslg4wxj6ypla7gvflphjhn0-systemd-247.6/bin:/nix/store/xs38mci2dj4isxayifazwdma1dk9w9bl-coreutils-8.32/sbin:/nix/store/ccb8104ais1q6mbzq98vsn5lmj2wp88f-findutils-4.7.0/sbin:/nix/store/32k710p5xmv4x4lvv5gkqynnw1hixyad-gnugrep-3.6/sbin:/nix/store/nhf3114vx6v0gih1gpm3cg3fkyhnclac-gnused-4.8/sbin:/nix/store/71lqc2a8cslg4wxj6ypla7gvflphjhn0-systemd-247.6/sbin"
Environment="PLEX_DATADIR=/var/lib/plex"
Environment="PLEX_MEDIA_SERVER_MAX_PLUGIN_PROCS=6"
Environment="PLEX_MEDIA_SERVER_TMPDIR=/tmp"
Environment="PLEX_MEDIA_SERVER_USE_SYSLOG=true"
Environment="PLEX_PLUGINS="
Environment="TZDIR=/nix/store/0fgr90x0rsbl9j2rv3935mrm9mfy0zls-tzdata-2020f/share/zoneinfo"

ExecStart=/nix/store/kk6hrv8zni38jn971aabil9ipzj8lx46-plexmediaserver/bin/plexmediaserver
ExecStartPre=!/nix/store/lh6wxvjvwq0pvk2yi6w8hw6687212mfn-plex-run-prestart
Group=plex
KillSignal=SIGQUIT
Restart=on-failure
Type=simple
User=plex

Notify maintainers
@badmutex
@forkk
@lnl7
@pjones
@thoughtpolice
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
nix-shell -p nix-info --run "nix-info -m"                                                                                130 ↵
these 3 paths will be fetched (0.07 MiB download, 0.36 MiB unpacked):
  /nix/store/74kv08wjf06ifgk4dxrnra4qhzr5s1w4-gcc-wrapper-10.3.0
  /nix/store/7gdji02y6rbnzv5mcxcf3mwksk785y8j-stdenv-linux
  /nix/store/wzach25vwapl3sa6f7gylqank3jhhsin-bash-interactive-4.4-p23-dev
copying path '/nix/store/wzach25vwapl3sa6f7gylqank3jhhsin-bash-interactive-4.4-p23-dev' from 'https://cache.nixos.org'...
copying path '/nix/store/74kv08wjf06ifgk4dxrnra4qhzr5s1w4-gcc-wrapper-10.3.0' from 'https://cache.nixos.org'...
copying path '/nix/store/7gdji02y6rbnzv5mcxcf3mwksk785y8j-stdenv-linux' from 'https://cache.nixos.org'...
 - system: `"x86_64-linux"`
 - host os: `Linux 5.10.60, NixOS, 21.05.20210825.bc1a0f5 (Okapi)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.4pre20210802_47e96bb`
 - channels(root): `"nixos-21.05.2549.a1007637cea, home-manager-21.05, nixos-unstable-21.11pre304920.dd98b100651"`
 - channels(giulio): `""`
 - nixpkgs: `/nix/store/qn3ccbpy48qa2wimxg3awpbfz0v87521-source`

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:

Have you tried overwriting plexRaw as well?
It took myself a long time, until I was able to overwrite the plex package.
What has worked for me:
There are two packages.

pkgs.plex
pkgs.plexRaw

The plex package inherits plexRaw -> you need to define the package version within plexRaw.
Overwriting the plex package did nothing in my case.
In case you want to look at a example: look into my repository! I'm overwriting plexRaw.
I'm always running the latest plex version to test it, before creating a version bump PR into nixpkgs.

Awesome, thank you @MayNiklas!
One question, though: why the package is not updated with the latest version? I think that a flag usePlexPass would be useful if a user has Plex Pass.

@peperunas I can't speak for the Nix project as a whole, but I can speak for myself and my own experience regulary updating the plex package. This comment is going to describe the process of a version update in nixpkgs. It should explain, why I personally think there is a good reason not to add another plex Version to NixPkgs.
I'm tracking all the version updates, plex publishes.
There are a lot!
Package maintianers manually have to commit every version bump into the repositories.
nixpkgs has a lot of open PR's - it's a lot of work for the maintainers to go through them.
As soon as plex has a new public (stable) release, I create a PR. Most of the time, I create the PR within a few hours after plex publishes the version to their custom Debian repository. Most of the time, we need 12-72 hours untill the update gets merged into the master branch. After that, the nixos-unstable branch needs to get updated... That causes a small delay as well.
Are you using plex from the nixos-unstable branch or are you using 21.05? I would say, that with the unstable branch, the updates are ~ 5 days behind the release. As it seems, we are currently not backporting plex updates into 21.05. You need to use plex from the unstable branch to get regular updates.
Plex publishes a lot of updates.
Take a look at: https://forums.plex.tv/t/plex-media-server/30447/
Sometimes, we still have an open PR while plex releases the next version.
Talking about the "plex pass version":
Plex pass users are getting beta versions early. It's very usual, to exclude beta packages from package repositories.
Including such a "plex-pass.nix" package, would at least double the number of plex version update PR's (not every beta release gets released as a stable version).
Also: chances are high, that the version is allready outdated, the moment it get's merged into nixos-unstable.
I get it: you are a PlexPass user (I have one too). You would like to receive the newest beta versions. But I personally don't think, it's pracical for a project like nixpkgs.
PR's need to get cretated,  tested & merged. That takes time and ressources!
Also: we are using NixOS: it's pretty easy to use your own custom plex package with the newest releases ;)
Did I helped you solving your problem with plexRaw?
In this case: could you please close the issue?
In case you need additional help with plex & nixos: feel free to contact me.
Depending on your setup, it should help to pin pkgs.plex to the unstable branch.

Thanks again @MayNiklas, incredibly detailed and useful response.
I will just switch to the unstable branch, as you said, it makes more sense.

@peperunas You're welcome!
Keep in mind: you don't have to use the unstable branch for your whole system (only if you want to have a rolling release experience). You are able to use the unstable branch just for a few packages.
Of course: switching your whole system is usually easier - imo it's very reliable too!


Added docs for express-mongoose application

Updated docs for samples-express-mongoose .

hey @s2ahil please resolve the conflicts! Also the documentation is incomplete, please add the output of the record and test and how it works with docker as well.


openvpn config tls_auth / key_direction

Hi,
Currently, the tls_auth is defined as this:
{ Value, "tls_auth", "/etc/openvpn/tlsauth.key 1", translate("Additional authentication over TLS") },

It should probably be a FileUpload. As for the 1 flag, this can also be set using key_direction. This allows an easy way to configure the tls_auth file without using SSH to do it.

Ok, I'll change this to FileUpload. Also key_direction will be added.

You should open ticket at https://dev.openwrt.org/ as openvpn package should be changed too.

Why does it need to be changed? Because it needs to be able to generate the tls-auth key you mean? Otherwise it can just point to the file uploaded to /lib/uci/upload/ I guess?

First of all key_direction option is not accepted by openvpn from core OpenWrt system, so I have to think about reimplementing some controller and view functionality.

I found I need one more option by experimenting and adding them myself directly to the lua code, in addition to key_direction also tls_version_min was needed. My current config:
config openvpn 'eduvpnnnn'
	option nobind '1'
	option tls_cipher 'TLS-DHE-RSA-WITH-AES-128-GCM-SHA256:TLS-DHE-RSA-WITH-AES-256-GCM-SHA384'
	option client '1'
	option comp_lzo 'yes'
	option dev 'tun'
	option remote_cert_tls 'server'
	option verb '3'
	option cipher 'AES-256-CBC'
	option persist_key '1'
	option auth 'SHA256'
	option tls_version_min '1.2'
	option key_direction '1'
	option persist_tun '1'
	option remote 'dev.eduvpn.org'
	option cert '/lib/uci/upload/cbid.openvpn.eduvpnnnn.cert'
	option key '/lib/uci/upload/cbid.openvpn.eduvpnnnn.key'
	option ca '/lib/uci/upload/cbid.openvpn.eduvpnnnn.ca'
	option tls_auth '/lib/uci/upload/cbid.openvpn.eduvpnnnn.tls_auth'
	option enabled '1'

The modifications to /etc/init.d/openvpn were easy, I just added key_direction tls_version_min to append_params, that worked.
Changes in openvpn-advanced.lua under Cryptography:
{ Value,                "tls_version_min",				"1.0",  translate("minimum TLS version supported")},
{ FileUpload,		"tls_auth",						"/etc/openvpn/tlsauth.key",				translate("Additional authentication over TLS") },

I could send a pull request for this if you are interested, or maybe this needs more thinking. Let me know if I can help!

It's easy to edit it in place, but /etc/init.d/openvpn locates at main OpenWrt repository. So you have to create a ticket to request changes. I'm not official  luci-openvpn maintainer. I'm just a person who made it to work with current version of OpenWrt. So you freely add your pull request but if it's merged it would break system for others.

I found it! I'll create a pull request there as well. As far as I know those two changes are independent of each other. If one modifies luci without modifying the init script it just won't work (like now), and if one modifies the init script without modifying luci one is not able to set it in the GUI, but only in the configuration file manually...

I sent an email to mirko@, as he is the maintainer of the OpenVPN package it seems, requesting the change. I am not subscribed to openwrt-devel@ so the mail there bounced :(

Okay, resent.
https://lists.openwrt.org/pipermail/openwrt-devel/2015-August/035456.html

Hi, the patch for init script hasnt been accepted yet, have it?
Of course we can modify the config file manually, but..

option tls_auth '/lib/uci/upload/cbid.openvpn.eduvpnnnn.tls_auth 1'

key_direction option seems not working. Does'not exist in generated config file /var/etc/openvpn-myvpn.conf

Are there any news on this?

key_direction option seems not working. Does'not exist in generated config file /var/etc/openvpn-myvpn.conf

As main OpenWrt repositry moved to github you can create issue or make changes and create pull-request
https://github.com/openwrt/openwrt/tree/master/package/network/services/openvpn

Please re-test with latest version and open a new issue if something is still pending.


Do not use subunit conversion filters/binaries

This is was only used to convert from subunit versions, but not needed anymore since all the things support version 2 now.
Besides the package python-subunit in Pike does not install/provide subunit-1to2 subunit-2to1 filters/binaries becasue of the single spec switch

Thanks!

Will this work for older clouds before Pike?

@kbaikov what's the problem with the singlespec switch?

@toabctl Single spec switch installs subunit-1to2 and subinit-2to1 only for python3 as you can see here: https://build.suse.de/package/view_file/Devel:Cloud:8:Pike/python-python-subunit/python-python-subunit.spec?expand=1
But that was not the case before the switch as you can see in Newton and Ocata versions: e.g: https://build.suse.de/package/view_file/Devel:Cloud:8:Ocata/python-python-subunit/python-python-subunit.spec?expand=1

@vmoravec yes, it will work. Ostestr is old and available in Newton and Ocata.
Besides the tempest.subunit.log that we generate is only used in the old rally dashboard, that is not used anymore.

yes, it will work. Ostestr is old and available in Newton and Ocata.

@kbaikov is it also available for Liberty (SOC6) ?

@toabctl yes, e.g.: https://build.suse.de/package/show/Devel:Cloud:6/python-os-testr

Single spec switch installs subunit-1to2 and subinit-2to1 only for python3 as you can see here: https://build.suse.de/package/view_file/Devel:Cloud:8:Pike/python-python-subunit/python-python-subunit.spec?expand=1

@kbaikov might be fixed with https://build.opensuse.org/request/show/528946

@toabctl ah, super cool. Will this be in M4? Because right now all the tempest jobs report as failed in M3.

I am testing SOC6 here: https://ci.suse.de/job/openstack-mkcloud/86196/

SOC6 passed. Merging.


Fix extract_attribute() behavior for numeric hash key inside expanded array

Summary
Mongoid::Matcher.expand_attribute() did not correctly handles numeric hash keys inside expanded arrays. This PR provides the fix + test cases.
Test Output (No Changes)
% rake spec

  1) Matcher.extract_attribute traversal.yml numeric Hash key inside expanded array has the expected exists flag
     Failure/Error: actual[0].should == expected_exists

       expected: true
            got: false (using ==)
       Diff:
       @@ -1 +1 @@
       -true
       +false

  2) Matcher.extract_attribute traversal.yml numeric Hash key inside expanded array has the expected value
     Failure/Error: actual[1].should == expected_value

       expected: [3]
            got: nil (using ==)

  3) Matcher.extract_attribute traversal.yml multiple numeric Hash keys inside expanded array has the expected exists flag
     Failure/Error: actual[0].should == expected_exists

       expected: true
            got: false (using ==)
       Diff:
       @@ -1 +1 @@
       -true
       +false

  4) Matcher.extract_attribute traversal.yml multiple numeric Hash keys inside expanded array has the expected value
     Failure/Error: actual[1].should == expected_value

       expected: [5, 6]
            got: nil (using ==)

XYZ examples, 4 failures

Test Output (Fix Implemented)
XYZ examples, 0 failures

Closing this temporary PR because the real PR has been submitted against Mongoid:master here: https://github.com/mongodb/mongoid/pull/4969


Missing dlls when using turbo tool

Hello, I'm currently trying to create a Windows Node.js container where I want to use turbo but I'm getting an error when trying to use it. I have created an issue on their repository https://github.com/vercel/turborepo/issues/8878, but currently, from the conclusion of one of their team members, they think that there are some DLLs missing. I have only found this page, but that seems to be an outdated list of available DLLs as that page was updated in 2017. When I compare the required DLLs with that list, I came up with this:
    KERNEL32.dll [AVAILABLE??? There is duplicate or is this file different from lowercase version?]
    api-ms-win-crt-convert-l1-1-0.dll [NOT AVAILABLE]
    api-ms-win-crt-environment-l1-1-0.dll [NOT AVAILABLE]
    api-ms-win-crt-filesystem-l1-1-0.dll [NOT AVAILABLE]
    api-ms-win-crt-heap-l1-1-0.dll [NOT AVAILABLE]
    api-ms-win-crt-locale-l1-1-0.dll [NOT AVAILABLE]
    api-ms-win-crt-math-l1-1-0.dll [NOT AVAILABLE]
    api-ms-win-crt-private-l1-1-0.dll [NOT AVAILABLE]
    api-ms-win-crt-runtime-l1-1-0.dll [NOT AVAILABLE]
    api-ms-win-crt-stdio-l1-1-0.dll [NOT AVAILABLE]
    api-ms-win-crt-string-l1-1-0.dll [NOT AVAILABLE]
    api-ms-win-crt-time-l1-1-0.dll [NOT AVAILABLE]
    advapi32.dll [NOT AVAILABLE]
    bcrypt.dll [NOT AVAILABLE]
    crypt32.dll [AVAILABLE]
    iphlpapi.dll [AVAILABLE]
    kernel32.dll [AVAILABLE]
    netapi32.dll [AVAILABLE]
    ntdll.dll [AVAILABLE]
    ole32.dll  [AVAILABLE]
    oleaut32.dll [AVAILABLE]
    pdh.dll [AVAILABLE]
    powrprof.dll [AVAILABLE]
    psapi.dll [AVAILABLE]
    secur32.dll [AVAILABLE]
    shell32.dll [AVAILABLE]
    shlwapi.dll [AVAILABLE]
    user32.dll [AVAILABLE]
    userenv.dll [AVAILABLE]
    ws2_32.dll [AVAILABLE]

And here is my testing container:
FROM mcr.microsoft.com/windows/servercore:ltsc2022 as installer

SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]

# PATH isn't actually set in the Docker image, so we have to set it from within the container
RUN $newPath = ('C:\Program Files (x86)\GnuPG\bin;{0}' -f $env:PATH); \
	  Write-Host ('Updating PATH: {0}' -f $newPath); \
	  [Environment]::SetEnvironmentVariable('PATH', $newPath, [EnvironmentVariableTarget]::Machine)
# doing this first to share cache across versions more aggressively

ENV NODE_VERSION 22.8.0
ENV NODE_CHECKSUM d6e1c4fca93997224cac0bec09b4201aa018f50171d38c6b85abe483012839c9

# Version and checksum of the GPG installer (Source: https://www.gnupg.org/download/integrity_check.html)
ENV GPG_VERSION 2.4.5_20240307
ENV GPG_CHECKSUM d2ac821ceacf9409ebcdb42ae330087ada30c732981f00b356f9c2f08fac4dc1

RUN Invoke-WebRequest $('https://www.gnupg.org/ftp/gcrypt/binary/gnupg-w32-{0}.exe' -f $env:GPG_VERSION) -OutFile 'gpg-installer.exe'; \
  if ((Get-FileHash gpg-installer.exe -Algorithm sha256).Hash -ne $env:GPG_CHECKSUM) { Write-Error 'GPG checksum mismatch' }; \
	Start-Process -FilePath 'gpg-installer.exe' -ArgumentList '/S' -Wait; \
	gpg --version;

RUN @( \
      '4ED778F539E3634C779C87C6D7062848A1AB005C', \
      '141F07595B7B3FFE74309A937405533BE57C7D57', \
      '74F12602B6F1C4E913FAA37AD3A89613643B6201', \
      'DD792F5973C6DE52C432CBDAC77ABFA00DDBF2B7', \
      '61FC681DFB92A079F1685E77973F295594EC4689', \
      '8FCCA13FEF1D0C2E91008E09770F7A9A5AE15600', \
      'C4F0DFFF4E8C1A8236409D08E73BC641CC11F4C8', \
      '890C08DB8579162FEE0DF9DB8BEAB4DFCF555EF4', \
      'C82FA3AE1CBEDC6BE46B9360C43CEC45C17AB93C', \
      '108F52B48DB57BB0CC439B2997B01419BD92F80A', \
      'A363A499291CBBC940DD62E41F10027AF002F8B0', \
      'CC68F5A3106FF448322E48ED27F5E38D5B0A215F' \
    ) | foreach { \
      gpg --batch --keyserver hkps://keys.openpgp.org --recv-keys $_ ; \
      if (-not $?) { \
        gpg --batch --keyserver keyserver.ubuntu.com --recv-keys $_ ; \
      } \
    } ; \
    [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 ; \
    Invoke-WebRequest $('https://nodejs.org/dist/v{0}/SHASUMS256.txt.asc' -f $env:NODE_VERSION) -OutFile 'SHASUMS256.txt.asc' -UseBasicParsing ; \
    gpg --batch --decrypt --output SHASUMS256.txt SHASUMS256.txt.asc ; \
    Invoke-WebRequest $('https://nodejs.org/dist/v{0}/node-v{0}-win-x64.zip' -f $env:NODE_VERSION) -OutFile 'node.zip' -UseBasicParsing ; \
    $sum = $(cat SHASUMS256.txt.asc | sls $('  node-v{0}-win-x64.zip' -f $env:NODE_VERSION)) -Split ' ' ; \
    if ((Get-FileHash node.zip -Algorithm sha256).Hash -ne $sum[0]) { Write-Error 'SHA256 mismatch' } ; \
    Expand-Archive node.zip -DestinationPath C:\ ; \
    Rename-Item -Path $('C:\node-v{0}-win-x64' -f $env:NODE_VERSION) -NewName 'C:\nodejs'

FROM mcr.microsoft.com/windows/servercore:ltsc2022 as runner

SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]

COPY --from=installer C:/nodejs C:/nodejs

RUN $newPath = ('C:\nodejs;{0}' -f $env:PATH); \
	  Write-Host ('Updating PATH: {0}' -f $newPath); \
	  [Environment]::SetEnvironmentVariable('PATH', $newPath, [EnvironmentVariableTarget]::Machine); \
	  # Because we need to use it in the current session
	  $env:PATH = $newPath; \
	  node --version; \
	  npm --version;

# This should go trough
RUN npm install @redocly/cli@latest --global; \
    redocly --version

# This doesn't go trough
RUN npm install turbo --global; \
    turbo --version

I think I might have found a solution to this. I didn't realize that the tool needs the VC redistributable. So I tried using this, and it seems to work. I didn't think the redistributable might be missing, as I had tested it on our company's Windows server, and it worked there.


Fixed the MentorList route

It is not yet to fix . Click this link https://deploy-preview-32--mentors.netlify.com/ and click any mentor and it will redirect mentor detailed  pages. Now refresh it will not work properly.

Hmm, I'm not getting the same behavior. When I click on a mentor it shows nothing and when I refresh it shows nothing as well. Is the a specific browser I should be using? Please advise.


Rust's basename is slower than ruby's on my machine

bench_rust_basename      0.391744        0.384262        0.389821        0.395799        0.388389
bench_ruby_basename      0.343923        0.347006        0.347610        0.341183        0.340708

What version of Rust are you running?  Here are my numbers.  Rust is definitely faster.
rustc --version
rustc 1.9.0-nightly (526f2bf5c 2016-04-09)
bench_rust_basename	 0.163431	 0.162723	 0.162924	 0.162847	 0.162748
 PASS (0.85s) :: bench_rust_basename
bench_ruby_basename	 0.211582	 0.212547	 0.209508	 0.209389	 0.209801
 PASS (1.09s) :: bench_ruby_basename

rustc 1.11.0-nightly (5c2a5d449 2016-06-11)

Are you compiling with cargo build --release ?  Because if you forget the --release flag it won't be optimized and will add debug stuff.

I upgraded my Rust version.
rustc --version
rustc 1.11.0-nightly (bb4a79b08 2016-06-15)
bench_rust_basename	 0.162883	 0.165921	 0.161602	 0.162563	 0.160645
 PASS (0.85s) :: bench_rust_basename
bench_ruby_basename	 0.208703	 0.208496	 0.216547	 0.214996	 0.215486
 PASS (1.10s) :: bench_ruby_basename

It's still faster on my PC.  What kind of computer are you using and what OS?

Also do you have a production environment you're targeting?  You may want to benchmark it there as well.

What Ruby version are you using? Can't reproduce this with MRI 2.3.1 -O3.

I'm at
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-linux]

@gogainda ?

ruby 2.2.0p0 (2014-12-25 revision 49005) [i686-linux]

i686 means you're running a 32bit OS.  I wonder if all 32bit operating systems would be similarly affected.

so problem with 32bit OS?

Maybe so.  We should be able to improve on this regardless.

We should get some other operating system results on this as well.  Windows & Mac.

With more feedback we can implement a modification on the refinements and monkey-patches.  If this is always true on 32 bit machines than we can add a flag to prevent the faster methods from being replaced.  If there are consistent identifiers we'll use those to ensure the fastest methods will be used.

Could it be a problem with rust being run on 32bit OS, instead of ruby?

It's not a problem of Rust.  "I'm guessing" it has to do with Rust having optimizations for 64 bit operating systems.

If so, the solution could be to write more performant implementation of basename which would be fast even on 32bit OS?

At this point that would have to be writing assembly code.  Which is not feasible.


Update signature open dataset

Proposal for the new API of open_dataset(). It is implemented in apiv2.py and it doesn't modify the current behavior of api.open_dataset().
It is something in between the first and second alternative suggested at https://github.com/pydata/xarray/issues/4490#issue-715374721, see the related quoted text:

Describe alternatives you've considered
For the overall approach:

We could keep the current design, with separate keyword arguments for decoding options, and just be very careful about passing around these arguments. This seems pretty painful for the backend refactor, though.
We could keep the current design only for the user facing open_dataset() interface, and then internally convert into the DecodingOptions() struct for passing to backend constructors. This would provide much needed flexibility for backend authors, but most users wouldn't benefit from the new interface. Perhaps this would make sense as an intermediate step?

Instead of a class for the decoders, I have added a function: resolve_decoders_kwargs.
resolve_decoders_kwargs performs two tasks:

If decode_cf is False, it sets to False all the decoders supported by the backend (using inspect).
It filters out the None decoder keywords.

So xarray manages the keyword decode_cf and passes on only the non-default decoders to the backend. If the user sets to a non-None value a decoder not supported by the backend, the backend will raise an error.
With this implementation drop_variable should be always supported by the backend. But I think this could be implemented easely by all the backends. I wouldn't group it with the decoders: to me, it seems to be more a filter rather than a decoder.
The behavior decode_cf is unchanged.
PRO:

the user doesn't need to import and instantiate a class.
users get the argument completion on open_dataset.
the backend defines directly in open_backend_dataset_${engine} API the accepted decoders.
xarray manages decode_cf, not the backends.

Missing points:

deccode_cf should be renamed decode. Probably, the behavior of decode should be modified for two reason:

currently If decode_cf is False, it sets the decoders to False, but there is no check on the other values. The accepted values should be: None (it keeps decoders default values), True (it sets all the decoders to True), False (it sets all the decoders to False).
currently we can set both a decoder and decode_cf without any warning. , but the

Deprecate backend_kwargs (or kwargs).
Separate mask_and_scale?

I think that we need a different PR for the three of them.

[x] related to  https://github.com/pydata/xarray/issues/4490#
[x] Passes isort . && black . && mypy . && flake8

As discussed, let's stick with the current PR
@aurghs @alexamici you should have "merge" permissions now!

I fixed the type ints and the two test failures are unrelated to the changes.
I'm going to test my shiny new merge rights :)


What is the use of the 'hosts' key in the cors config?

What is the use of the 'hosts' key in the cors config? I can't find anything in the code.

@steffex it's right, I did not find any reference either.

I think that's not used anymore since we're using middleware now

I would like to know that too!

Not used indeed.