Customizable config file with ability to use local aws-proxy to access OpenSearch

Description
Set environment variables based on local config file and access OpenSearch with proxy credentials
Issues Resolved
https://github.com/opensearch-project/dashboards-desktop/issues/11

Squashing for readability. Electron app with customizable config and ability to connect to aws proxy

Great progress,
a few comments in general

move the code to src folder instead of put on project root folder
could we add a few screen shot about what look UI looks like so far

Great progress, a few comments in general

move the code to src folder instead of put on project root folder
could we add a few screen shot about what look UI looks like so far

I migrated all code to the src folder, and changed the paths in commit 0924bed, 8fb16b4
I also added a screenshot for the initial page in commit 53c9349. I will add more screenshots for the next commits with opensearch dashboards connecting.


Task/name split

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

21 of 23 (91.3%)  changed or added relevant lines in 2 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.09%) to 89.81%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

sis_provisioner/utils.py
8
10
80.0%

Totals

Change from base Build<PHONE_NUMBER>:
0.09%

Covered Lines:
379

Relevant Lines:
422

💛  - Coveralls


2021-11-18-Uranium Finance

Add article about Uranium Finance 50M

you have 3 pull requests open. work within one.


maintainers: remove bb010g

Description of changes
I no longer wish to maintain these remains of NixOS. May we meet again elsewhere in a healthy place.
Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

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

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

7 packages built:

angryipscanner
betterdiscordctl
git-my
swt
swt_jdk8
tuxguitar
vuze

Didn't think to ask this earlier, but I would appreciate a backport of https://github.com/NixOS/nixpkgs/commit/e0f994357c1bf848d4fb59b3313adcee4ad3e1ec to 24.05. cc/ @eclairevoyant since you're doing a few of those

I've only backported PRs affecting the CODEOWNERs file, sorry, I'd rather not be responsible for backporting a dozen other PRs


skip autobackports

Taken from Astropy's config.
PR Checklist

[ ] Give a detailed description of the PR above.
[ ] Document changes in the CHANGES.rst file. See existing changelog for examples.
[ ] Add tests, if applicable, to ensure code coverage never decreases.
[ ] Make sure the docs are up to date, if applicable, particularly the docstrings and RST files in docs folder.
[ ] Ensure linear history by rebasing, when requested by the maintainer.

@meeseeksdev backport


Let's remove request to marketplace for workspace recommendations

Open a repo that has some workspace recommendations (like vscode)
Notice that we are sending a request to the Marketplace on VS Code startup
This request is not actually needed. We send it just to check if the recommended extension names are valid
We should just remove this request 🔪

One less request to MP @skofman1 @xavierdecoster


Going back to previous screen

Hello I have been using that library and every page has that side menu and every page has two buttons  forward and back. When user pressed forward following code is running.
            let storyboard = UIStoryboard(name: "Main", bundle: nil)
            var destinationVC:UIViewController!
            destinationVC = storyboard.instantiateViewController(withIdentifier: "SecondVC") as! SecondVC
            sideMenuController()?.setContentViewController(destinationVC)
            hideSideMenuView()

Is it proper usage or is it wrong because I have 20 pages and in every page I need to implement that code.
Also, when user pressed previous button it should go back I am trying to use
navigationController?.popToRootViewController(animated: true) code but it is not working. What is the problem with it. Thanks in advance.

I wrote a detailed README that explains everything.


[help wanted] Error: The import processing cannot be resolved

Hello,
I am trying to use Processing in VScode, but I can't run my sketch, because the processing packages can not be imported. I don't understand, why it happens.
I followed this steps. Mabe have to do something else?
I'm using Linux Mint.

What exactly is the error? Can you post the error message, that would be helpful in understanding what doesn't work.
Can you run a very basic "Hello world" processing program? If so, then the problem isn't with VSCode, as that is just linking to your processing install.

This is, what i get.

That is because .java files are handled by default by VSCode as... well, Java. And in straight java there isn't a processing class to include. You'll want to change that to PDE https://code.visualstudio.com/docs/languages/overview#_changing-the-language-for-the-selected-file
Either way your code should actually run when you execute it with processing, this extension doesn't provide intellisense like that.


StateFlow support in the Container

Can we change the public val stateFlow: Flow<STATE>  in the Container to  public val stateFlow: StateFlow<STATE>.
While initializing the container in ViewModel, we will be setting up the initial state. In Jetpack compose while consuming this, we can get the initial state from (Mutable)StateFlow and collectAsState()
@Composable
fun SomeCompose(viewModel: SomeViewModel){

    val someState = viewModel.container.stateFlow.collectAsState(initial = [initialState])

    // will be changed to

    val someState = viewModel.container.stateFlow.collectAsState()

}

we can get initial state from (Mutable)StateFlow and collectAsState()

Fixed in #38.


Remove non tag probe support

Remove all probe code from the portal. Resources can still be tagged with sensors so that users can search by these tags.

I used a line count app I found on line: http://line-count.herokuapp.com/concord-consortium/rigse
And it gave me these results for master:

Language
Files
Lines of Code
Total Lines

JavaScript
75
45666
58649

Text
57
0
7724

Json
2
22
22

PHP
1
15
19

Stylesheets
5
587
650

Ruby
1600
59005
76685

Shell
13
128
266

Html
14
2075
2113

Perl
1
26
48

Xml
2
8
8

I'm not sure how it is counting haml, and yaml. If it is counting it as Ruby, then the 4K lines removed here reduce the lines of Ruby by about 5%.


V0.47 regression : "can't evaluate field pages in type *hugolib.Pager" error

Hi,
Since update to the 0.47 version, I'm having the following error:
$ hugo serve
Building sites … ERROR 2018/08/18 19:18:33 Error while rendering "taxonomyTerm" in "": template: _default/list.html:34:19: executing "main" at <$paginator.pages>: can't evaluate field pages in type *hugolib.Pager
ERROR 2018/08/18 19:18:33 Error while rendering "home" in "": template: _default/list.html:34:19: executing "main" at <$paginator.pages>: can't evaluate field pages in type *hugolib.Pager
ERROR 2018/08/18 19:18:33 Error while rendering "section" in "": template: _default/list.html:34:19: executing "main" at <$paginator.pages>: can't evaluate field pages in type *hugolib.Pager
Total in 15 ms
Error: Error building site: logged 3 error(s)

And here is the code I have at the line 33 of the _default/list.html template:
{{ $paginator := .Paginate (where .Site.RegularPages "Section" "in" .Site.Params.mainSections) }}
{{ range $paginator.Pages }}
{{ .Render "summary" }}
{{ end }}

#5094


Rebuild error in UE4 4.18

The UE4 version is 4.18 in Ubuntu16.04 and the Setup is success. But in the Rebuild process, it got the following error:
ERROR: UBT ERROR: Failed to produce item: /home/carla/Unreal/CarlaUE4/Plugins/Carla/Binaries/Linux/libUE4Editor-Carla.so
Makefile:620: recipe for target 'CarlaUE4Editor' failed
make: *** [CarlaUE4Editor] Error 5

What should i do to deal with this problem.
thank you.

Hi @dosthwrong,
That's some compilation error, check the log (before that) to see the actual error.


math.xxx calls in function on NumberProxy is not being traced.

🐛 Bug
As per title suggests, with symbolic values cache, NumberProxy operation via math.xxx calls are not traced.
To Reproduce
import torch
import thunder
import math

def foo(a, b):
    return math.fmod(a, b)

a = 1.2
b = 2.0

jfoo = thunder.jit(foo, cache="symbolic values")
out = jfoo(a, b)

print("\n\tcompute last trace:\n", thunder.last_traces(jfoo)[-1])

Looking at the trace below, we do not have prims.fmod in trace but it just baked in the result and this is wrong.
        compute last trace:
 # Constructed by Delete Last Used (took 0 milliseconds)
import torch
from thunder.executors.torchex import no_autocast

@torch.no_grad()
@no_autocast
def computation():
  return 1.2

Seems to found another issue with basic indexing.
    def foo(a, size0, size1):
        return a[:, :, size0:size1]

    size0 = 8
    size1 = 16
    a = torch.randn(2, 4, 30, device="cuda")

    a_ref = a.detach()
    outs_ref = foo(a_ref, size0, size1)

    jfoo = thunder.jit(foo, cache="symbolic values")
    outs = jfoo(a, size0, size1)

Even though the trace is using size0 and size1, it's not taking them as inputs from prologue to compute.
def computation(a):
  # a: "cuda:0 f32[2, 4, 30]"

  # /volume/thunder_jit_reshape.py:52:          return a[:, :, size0:size1]
  t18 = ltorch.getitem(a, (slice(None, None, None), slice(None, None, None), slice([IntegerProxy name=i0, value=8, static=CONSTRAINT.CONSTRAINABLE], [IntegerProxy name=i1, value=16, static=CONSTRAINT.CONSTRAINABLE], None)))  # t18: "cuda:0 f32[2, 4, 8]"
    # b2 = prims.lt(size0, 0)  # b2: "bool False"
    # b3 = prims.ge(size0, 0)  # b3: "bool True"
    # b4 = prims.lt(size1, 0)  # b4: "bool False"
    # b5 = prims.ge(size1, 0)  # b5: "bool True"
    # b6 = prims.gt(size0, size1)  # b6: "bool False"
    # b7 = prims.ge(size0, 30)  # b7: "bool False"
    # b8 = prims.ge(size1, 30)  # b8: "bool False"
    # b9 = prims.eq(size0, 0)  # b9: "bool False"
    # t18 = prims.slice_prim(a, [0, 0, size0], [2, 4, size1], [1, 1, 1])  # t18: "cuda:0 f32[2, 4, 8]"
  return t18


useLink does not work in strict mode; useTitle does work ok

https://codesandbox.io/s/lucid-marco-fqsqtj?file=/src/App.js
If you disable StrictMode in index.js then useLink starts working as it should. Has no effect on useTitle

That is a good point, <link> is a bit of a tough one as it allows for duplicates to be present hence we aren't doing very strict checks on them. The main reason behind this happening is that React executes effects twice. We actually try to find the node in the tree by matching all the attributes but we aren't finding it as the dom has not committed the paint yet 😅 I'm having to think pretty hard about this one tbh


Cant plot r.plot_kde('val_loss') AttributeError: Unknown property cbar

Full code
https://colab.research.google.com/drive/1XBMF3tOQwRLuPrGJib-YkN20_9nmMVT4?authuser=3#scrollTo=Cgi6jl_6R6fj&line=17&uniqifier=1

I think you have to share the notebook with me, it says "401 credentials error".

Fixed

still same

Maybe need to create new link
https://colab.research.google.com/drive/1XBMF3tOQwRLuPrGJib-YkN20_9nmMVT4?authuser=3#scrollTo=Cgi6jl_6R6fj&line=17&uniqifier=1

Okay, its still same link, its work on my other browser without login, but doesnt work on another device.

This link works: https://colab.research.google.com/drive/1XBMF3tOQwRLuPrGJib-YkN20_9nmMVT4
Your original link specifically mentions authorization.

What do you get with matplotlib.__version__ in that notebook?

'3.0.2'

Can you try installing something starting with 2 instead and see what happens.

'xtick.labelbottom is not a valid rc parameter. See rcParams.keys() for a list of valid parameters.'
On 2.1.2
On 2.2.4 i get some graphs but still get error Unknown property cbar

How about matplotlib==1.5.3

KeyError: 'axes.titlepad'

The issue is now fixed. If you start your notebook with:
!pip install git+https://github.com/autonomio/talos@daily-dev
!pip install git+https://github.com/mikkokotila/astetik
But note that you must have astetik v.1.9.7 ... for some reason I was able to achieve this only with the above code on colab, even though that's the current pypi version.
The issue was that Seaborn (which is underlying astetik which is the plot API for Talos) had moved colorbar related arguments from sns.kdeplot(). The v.1.9.7 version of astetik resolves that.
Closing here.

I get now unhashable type: '_ColorPalette' with astetik

Can you share the whole trace?

11
12 # heatmap correlation
---> 13 r.plot_corr()
14
15 # a four dimensional bar grid
/usr/local/lib/python3.6/dist-packages/talos/commands/reporting.py in plot_corr(self, metric, color_grades)
98         cols = self._cols(metric)
99
--> 100         return corr(self.data[cols], color_grades=color_grades)
101
102     def plot_regs(self, x='val_acc', y='val_loss'):
/usr/local/lib/python3.6/dist-packages/astetik/plots/corr.py in corr(data, corr_method, annot, mask, line_width, line_color, color_grades, auto_sizing, palette, style, dpi, title, sub_title, x_label, y_label, legend, x_scale, y_scale, x_limit, y_limit, save)
166                     linecolor=line_color,
167                     cmap=palette,
--> 168                     annot=annot)
169
170     # HEADER
/usr/local/lib/python3.6/dist-packages/seaborn/matrix.py in heatmap(data, vmin, vmax, cmap, center, robust, annot, fmt, annot_kws, linewidths, linecolor, cbar, cbar_kws, cbar_ax, square, ax, xticklabels, yticklabels, mask, **kwargs)
494     if square:
495         ax.set_aspect("equal")
--> 496     plotter.plot(ax, cbar_ax, kwargs)
497     return ax
498
/usr/local/lib/python3.6/dist-packages/seaborn/matrix.py in plot(self, ax, cax, kws)
258         # Draw the heatmap
259         mesh = ax.pcolormesh(self.plot_data, vmin=self.vmin, vmax=self.vmax,
--> 260                              cmap=self.cmap, **kws)
261
262         # Set the axis limits
/usr/local/lib/python3.6/dist-packages/matplotlib/init.py in inner(ax, data, *args, **kwargs)
1808                         "the Matplotlib list!)" % (label_namer, func.name),
1809                         RuntimeWarning, stacklevel=2)
-> 1810             return func(ax, *args, **kwargs)
1811
1812         inner.doc = _add_data_doc(inner.doc,
/usr/local/lib/python3.6/dist-packages/matplotlib/axes/_axes.py in pcolormesh(self, alpha, norm, cmap, vmin, vmax, shading, antialiased, *args, **kwargs)
6000             raise ValueError(
6001                 "'norm' must be an instance of 'mcolors.Normalize'")
-> 6002         collection.set_cmap(cmap)
6003         collection.set_norm(norm)
6004         collection.set_clim(vmin, vmax)
/usr/local/lib/python3.6/dist-packages/matplotlib/cm.py in set_cmap(self, cmap)
340         cmap : colormap or registered colormap name
341         """
--> 342         cmap = get_cmap(cmap)
343         self.cmap = cmap
344         self.changed()
/usr/local/lib/python3.6/dist-packages/matplotlib/cm.py in get_cmap(name, lut)
172         return name
173
--> 174     if name in cmap_d:
175         if lut is None:
176             return cmap_d[name]
TypeError: unhashable type: '_ColorPalette'

Can you report anything do with plotting to https://github.com/mikkokotila/astetik as its caused there. This is related with a known bug in Seaborn.

So, you wanna me to post issues on astetik or wait until they will fix it in seaborn?

That's right, a temporary fix can be implemented on the Astetik level for the short-term.

I'm still confused, do you mean I need post this issues on astectik or new time then I will have issues with plotting I need post in on astetik repo?
(just don't know how your work organized)

Can you post this to Astetik. If you find new issues, create a new issue in Talos.


Use n-logger for logging

There's a logger built into probot, but it doesn't send logs to splunk. n-logger does.

Related: #5.

Closing as duplicate of #5.


RPC does not work with optional parameter

What version of Hono are you using?
4.2.9
What runtime/platform is your app running on?
Node v20
What steps can reproduce the bug?
Declare multiple routes, include one route using optional parameter like /api/:a/:b?
What is the expected behavior?
RPC mode should work normally
What do you see instead?
RPC got fallback to match any string, with no known HTTP methods

Additional information
No response

This is fixed by #2576


How to get the diagnostic icons in the gutter?

I have the theme, neovim lsp and a nerdfonts patched font setup and configured, but instead of a fancy icon, I get a red E in the gutter.

How do I get the nice icon like in your screenshots?
Thanks for the awesome theme!

Nevermind, figured it out. It was lspsaga in case anyone else is wondering.


code optimization

Signed-off-by: happyelf<EMAIL_ADDRESS>

Hello,
Thank you for the PR. It looks like this PR mixes a few different kinds of changes.
What does this optimize:
diff --git a/src/main/java/org/apache/commons/io/filefilter/DelegateFileFilter.java b/src/main/java/org/apache/commons/io/filefilter/DelegateFileFilter.java
index a4fdc74..b5163da 100644
--- a/src/main/java/org/apache/commons/io/filefilter/DelegateFileFilter.java
+++ b/src/main/java/org/apache/commons/io/filefilter/DelegateFileFilter.java
@@ -74,9 +74,8 @@ public DelegateFileFilter(final FileFilter filter) {
public boolean accept(final File file) {
if (fileFilter != null) {
return fileFilter.accept(file);

   } else {

       return super.accept(file);
   }

   return super.accept(file);

}

?
I usually make changes like the above as well but I would not consider them "optimizations". This kind of change (to me) makes the code more readable.
Perhaps you can explain what you mean by optimization? I usually think of performance, speed or memory.


Allow to hide interfaces when rendering multiple components

This is useful when one wishes to --gen-contents when rendering
multiple components, but one does not want to render all modules in the module graph.  This
is in particular useful when adding base package to interfaces, to prevent from rendering all of its modules making the important modules hard to find. Adding base package through --read-interface is useful so links to things like IO can be resolved.
This PR changes parsing of --read-interface in backward compatible way.

We should bump the version of haddock program, this will allow cabal to use that feature when it's available.

@coot Do you need it in a timeline shorter than GHC 9.4?

Do we have a chance to get cabal and haddock releases before ghc-9.4? If we do, then I think it would be nice. But it's worth to mention that if cabal's release comes before haddock's then some parts will be broken (building with documentation of dependencies, because of #1488).

Ok, we'll coordinate with Cabal then

@Mikolaj FYI :point_up:

Hi! That's a perfect moment, because we are going to release cabal 3.8.1 soon and we can depend on the new haddock and there is just enough time to test it a tiny bit. Would you mind creating a cabal PR?

I forgot, and was reminded by @Kleidukos that cabal does not depend directly on haddock. Here's some brainstorming:

but GHC bundles haddock, right? so there may be an indirect dep via base?
but one can probably re-install haddock (though probably cabal plans try not to) and then, indeed, there is are no dep constrains in cabal that would prevent this
if the above is right, then indeed it's hard to expose pre-release users of cabal to new haddocks
I mean, newer than what the stable GHC bundles
we'd need to add the haddock dep, force it to be newer than bundled, include it in cabal's gitlab artifacts that users download
that sounds too risky so close to 3.8.1
any ideas?

Sadly, it seems we need cabal to be able to work with old haddock in 9.2 and with new one in 9.4. Sounds like CPP. BTW, tt would be bad if older cabal, e.g., 3.6.3 was broken with haddock from 9.4. If so, GHC 9.4 would need to advertise it requires cabal 3.8. But there's probably not enough time before 9.4 release to set it all up, given that cabal is not yet even aware of the changes. Could we slow it down or make optional or degrade gracefully in case of new haddock and old cabal?

I've now git-grepped:
Cabal/ChangeLog.md:  * `--hyperlink-source` now uses Haddock's hyperlinker backend when
Cabal/ChangeLog.md:    Haddock is new enough, falling back to HsColour otherwise.

Cabal/src/Distribution/Simple/Haddock.hs-    when (flag haddockHoogle && version < mkVersion [2,2]) $
Cabal/src/Distribution/Simple/Haddock.hs:      die' verbosity "Haddock 2.0 and 2.1 do not support the --hoogle flag."

so apparently we can at least determine the version of haddock and act accordingly (and not via CPP).

Disable what exactly for what version?

@coot: pardon me being dense and let me rephrase and please correct me. Current master branch of cabal is not broken, right? It would be broken if your cabal PR was merged and found its way into a released cabal, but new haddock was not released by that time? And a way to prevent this breakage is to test for haddock version in the PR and disable all the functionality that doesn't work with old haddock?

Current master branch of cabal is not broken, right?

Right, it isn't.

It would be broken if your cabal PR was merged and found its way into a released cabal, but new haddock was not released by that time?

It actually wouldn't. Today I added a requirement for the haddocks command to use haddock-2.26.1; So if cabal was released but haddock wouldn't users could either:

wait
compile haddock; and use --with-haddock (my PR contains a patch which fixed --with-haddock flag)

And a way to prevent this breakage is to test for haddock version in the PR and disable all the functionality that doesn't work with old haddock?

Yes


Align SaProt with Text?

Hi ProTrek,
Thanks for sharing this wonderful work!
Quick question: Instead of aligning three Bert models (text, AA, 3Di), why not using text Bert with your previous SaProt model? Wonder if you have tried this approach.
Thanks!

Hi, thank you for your interest in our work!
We didn't align SaProt with text encoder because we want ProTrek to be compatible with  a broad range of applications. SaProt requires both protein sequence and structure to achieve best performance, which limits its retrieval performance in sequence-only or structure-only retrieval tasks. Aligning three modalities provides much more flexibility for users with different needs. Besides, the sequence encoder of ProTrek stills captures structural information since it was pre-trained to align with the structure encoder, so it is not that necessary to adopt SaProt in our ProTrek.
Hope this could resolve your problem :)

I see. Awesome. Thanks for explaining!


nix-prefetch-git does not show --branch-name in its help message

Describe the bug
nix-prefetch-git does not show --branch-name in its help message
To Reproduce
Steps to reproduce the behavior:
nix run nixpkgs.nix-prefetch-git -c nix-prefetch-git --help

Expected behavior
I would expect to see a description of the --branch-name argument.
Metadata
 - system: `"x86_64-linux"`
 - host os: `Linux 5.3.11, NixOS, 19.09.1279.5f506b95f9f (Loris)`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.3`
 - channels(cloud): `"home-manager, unstable-20.03pre197736.91d5b3f07d2"`
 - channels(root): `"nixos-19.09.1279.5f506b95f9f"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

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

Should be fixed by #74287


Remove blinker dependency

Description

Related issue https://linear.app/serverless/issue/SC-593/python-sdk-big-latency-overhead#comment-ed4329da
Remove blinker usage and use a simple pub/sub logic
Blinker dependency is still needed in case of flask instrumentation, so it's still packaged.

Testing done
Unit tested

@medikoo ready for review please

If we improved the initialization time, it'll be good to narrow the initialization duration threshold in performance test

Yes, we did improve init time, I've reduced it to 400ms now.


Update “Autoscale the DNS Service in a Cluster”

Update https://kubernetes.io/docs/tasks/administer-cluster/dns-horizontal-autoscaling/

use code block highlighting
add glossary tooltips where appropriate
switch to a more recent cluster-proportional-autoscaler image

untested; I'm relying on the image having its own release process and the project using semantic versioning

mention that addons manager is deprecated
note that this guide assumes cluster nodes are AMD64

overall looks good, i do have however q question.

/lgtm

/approve


This is ridiculous!

I want to white list a single email address not write a novel!!! Please simplify!

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

ID: 4babe398-9d2b-60ab-603b-4b564159ae3b
Version Independent ID: 4babe398-9d2b-60ab-603b-4b564159ae3b
Content: Configure spam filter policies
Content Source: microsoft-365/security/office-365-security/anti-spam-policies-configure.md
Service: microsoft-365-security
Sub-service: mdo
GitHub Login: @chrisda
Microsoft Alias: chrisda

@onsite-insights, are you a regular user trying to allow a single email address in Outlook, or are you an admin trying to allow a single address?
Another pertinent question is: did you discover the article in question through Bing/Google search, or did a link in the product take you to it?
If you're a regular user, see this.
If you're an admin, the best way to allow a sender is to report the message to Microsoft as a false positive (good mail marked as bad). Instructions are here. Be sure to toggle Allow emails with similar attributes (URL, sender, etc.) when you do.

To make it easier for you to submit feedback on articles on learn.microsoft.com, we're transitioning our feedback system from GitHub Issues to a new experience.
As part of the transition, this GitHub Issue will be moved to a private repository. We're moving Issues to another repository so we can continue working on Issues that were open at the time of the transition. When this Issue is moved, you'll no longer be able to access it.
If you want to provide additional information before this Issue is moved, please update this Issue before December 15th, 2023.
With the new experience, you no longer need to sign in to GitHub to enter and submit your feedback. Instead, you can choose directly on each article's page whether the article was helpful. Then you can then choose one or more reasons for your feedback and optionally provide additional context before you select Submit.
Here's what the new experience looks like.
Note: The new experience is being rolled out across learn.microsoft.com in phases. If you don't see the new experience on an article, please check back later.
First, select whether the article was helpful:

Then, choose at least one reason for your feedback and optionally provide additional details about your feedback:

Article was helpful
Article was unhelpful

Finally, select Submit and you're done!


Issue 300 Redis caché

As requested in issue #300
The maxZoom mechanism I implemented is different than the other caches. I think the other caches are only caching the higher zoom levels. I will open a separate issue for this.

@ear7h nice! Thanks for tacking this guy. The travis check is failing initially because the package you rely on has not been vendored. Can you use govendor and then push an update? I will review the driver's license in the mean time.

@ARolek I was meaning to ask how to handle the dependency, I'll include it.
@gdey I'll work on the styling and use explicit returns

looks like you vendored the redis client but forgot to add it to your commit. i see the changes to the vendor.json file but the package is not included.
Also let's update the travis config to include redis and make sure the env var is set to run the tests. Thanks again for tackling this!

@ARolek ah okay, I've never used govendor. I thought the vendor directory was treated like node_modules I'll add it

The failed test here is a result of different go versions returning different error messages for the same error. Should I use a switch on the go version? Or is there another way to handle this.

@ear7h I think the error is type OpError. You could create an OpError instance and fill it with the values you expect then compare the Error() string outputs of both errors. This should work across Go versions.
Additionally, now that Go 1.10 is out, we're going to drop support for Go 1.7.x as we target the 3 newest versions.

Coverage increased (+0.2%) to 45.526% when pulling 364dd1b58366c23768fa9dda74b8630fb1b5e9fb on ear7h:master into fe132f52d543d832a3d51f142944d094d7181236 on terranodo:v0.6.0.

Coverage increased (+0.2%) to 45.526% when pulling 364dd1b58366c23768fa9dda74b8630fb1b5e9fb on ear7h:master into fe132f52d543d832a3d51f142944d094d7181236 on terranodo:v0.6.0.

Coverage increased (+0.2%) to 45.526% when pulling 364dd1b58366c23768fa9dda74b8630fb1b5e9fb on ear7h:master into fe132f52d543d832a3d51f142944d094d7181236 on terranodo:v0.6.0.

Coverage increased (+0.2%) to 45.526% when pulling 364dd1b58366c23768fa9dda74b8630fb1b5e9fb on ear7h:master into fe132f52d543d832a3d51f142944d094d7181236 on terranodo:v0.6.0.

@ear7h @ARolek just informed me that we are still missing the MaxZoom changes. Could you get those in? I'm not sure what exactly the change needs to be.

@gdey Yea I'll do that. I was also gonna refactor the cache.Key struct to use uint for X/Y/Z values (#312 ), should it be included in this pull request?
cc @ARolek

@ear7h I would say send in #312 in a different PR. I'm working towards releasing v0.6.0 this week and it would be cool to have the redis cache included. I don't want it to be blocked by the uint conversion since that's a clean up task.


[BUG] Add identifier option is not responding while editing existing client

Add identifier option is not responding while editing existing client.  This option only working on new entry.

I am using latest version from GitHub, do let me know if you need any additional information on this.
Regards,
Saugata D.

Additionally, there is an option to clear cache in web interface, to have this function in the app would be really helpful.

Regards,
Saugata D.

Hi. Please open a new issue for the feature request. To have better tracking.

Fixed on v1.7.0.

Hi,
I have tested this, now I am able to add new identifier.

Great!


Can we save experiment parameters in the exmperiment log folder

Short summary about the issue/question:
Save experiment parameters in the exmperiment log folder.
Brief what process you are following:
Json file of experiment parameters can be downloaded with WebUI, but cannot be found in the corresponding log folder. There are only dispatcher.log and nnimanager.log.

How to reproduce it:

nni Environment:

nni version: v0.8-319-g19173aa4
nni mode(local|pai|remote): local
OS: Ubuntu 18.04.3 LTS (GNU/Linux 4.15.0-58-generic x86_64)
python version: Python 3.7.3
is conda or virtualenv used?:  Conda
is running in docker?: no

need to update document(yes/no): no
Anything else we need to know:

Inside the code, where is experiment.json created for the web interface?

https://github.com/microsoft/nni/blob/master/src/webui/src/static/function.ts (line 150)

I don't think I'd totally understand. By experiment parameters, do you mean search space? or the parameters in a single trial?

If this downloadable, there should be a corresponding Restful API. You can investigate into it after you press F12 to see the console. And if it's not listed in our documentation, this might be a docs issue.

Each experiment has its own log folder located at ~/nni/experiment/XXXX/log.  For now, there are only dispatcher.log and nnimanager.log. What I am saying is that can we save the downloadable experiment.json in this folder as well, so that we could easily fetch all experiment details even webui is closed.

If you are trying to get experiment parameters without WebUI, you can try nnictl. Refer to the docs for more details.

I don't think I can get all historical experiment parameters via nnictl.

In the next release, 1.1, you will be able to use nnictl experiment view to launch a WebUI to view a historical experiment. Maybe we should make this tool more powerful.

Sounds cool~ Looking forward to the next release.

Sounds cool~ Looking forward to the next release.

Please check 1.1, and let us know your feedback =).


[Storage][Functions] Fix blob trigger message serialization

This PR makes BlobTriggerMessage format consistent with track 1 extensions (v4 and lower).
We preserved ability to read already produced messages that aren't consistent to assure extension continuity.
Fixes https://github.com/Azure/azure-sdk-for-net/issues/24013

/azp run net - storage - tests


Support custom labels in Jaeger all-in-one deployments (#629)

Proposed fix for Issue #629. Wrote test to fail where "name", "hello" and "another" custom labels have empty corresponding strings in the selectors, then update selector to use commonSpec.Labels, matching the template's labels. Tests pass after change.
Diff also contains a few gofmt and go.sum updates.

Thank you, @albertteoh!


2FA migration article

how to set up
how to reset 2FA

Link: https://help.aiven.io/en/articles/947120-two-factor-authentication
Fixes: #877
Image was removed because it is outdated and does not add any relevant information.

I've some questions how to organize this because we do have small articles about 2FA, for e.g. about how to disable it. Enable, disable and configure it should either be part of the same article or be organized in HowTo -> Two-factor authentication. Otherwise, it may not be easy to find information. What do you think @lornajane?

How about a "Manage 2FA" howto? We could have one step to enable, one step to configure, and one to disable it. Probably with a link to the password reset because I think that also disables? What do you think? The howtos really should be independent but if they are so closely related and only one step each, then feel free to either keep them separate or combine them as outlined here. I'm happy either way

I organized all in the same sections. The URL is not included in any redirect and I could not find any original article for the "Disable two-factor authentication" on the help Aiven io. I believe is more clear and straightforward for the instructions now. However, feel free to drop your ideas if you feel different about the approach.

I think we may need to address #882 before we can go deleting files like this. Removing or renaming files will leave us with a broken link and we don't currently have a setup for that. Let me try to figure this out (but it might be a couple of weeks away)

Hi @lornajane I'm converting to draft till we have more information about the links, oki? Let me know if you think it should be done differently

Related to this: https://github.com/aiven/devportal/pull/965

@laysauchoa I think this is unblocked now, could you take another look at this PR and see if there's anything else we would need before we can review?

It can be reviewed now :)

Hi @laysauchoa the fixes link points to the PR itself. Do you have an issue for this PR which might contain additional details/requirement?

I added cross reference and seems to be correct.
Reference:
https://docs.readthedocs.io/en/stable/guides/cross-referencing-with-sphinx.html
If I understood wrong, could you add more details about why you think is an issue? and we can try to check together.

I added cross reference and seems to be correct.
Reference: https://docs.readthedocs.io/en/stable/guides/cross-referencing-with-sphinx.html
If I understood wrong, could you add more details about why you think there is an issue? and we can try to check together.

I meant the "Fixes " within the PR description links to this PR instead of some issue. But if this is a regular help article migration without any special requirement mentioned in an issue, this can be disregarded.


Parse go test -json output

Into something that CI will understand and be useful.

So one easy way to do this, is to use gotestsum and use the resulting junit report. No idea, if that also works with github actions, but we use that here: https://gitlab.com/famedly/company/backend/services/synapse/-/merge_requests/11/diffs#587d266bb27a4dc3022bbed44dfa19849df3044c_29_44
You basically just replace go test -v with gotestsum --junitfile report.xml --format standard-verbose and you get a junit report.xml aswell as normal test output on stdout.


verify-contract-config: improve error messages

Nah, keeping the irritants as objects that can be destructured is good. I will use the (TV type value) wrapper that allows for preserving a value while printing it in a type-meaningful way. But also improve that TV API.


mac OS  Press the “Caps Lock” key and the application will crash

Expected Behavior

Current Behavior

Possible Solution

Steps to Reproduce (for bugs)

Context

Your Environment

IOHook Version:
Environment name and version (e.g. Chrome 39, node.js 5.4, electron 11.2):
Operating System and version (desktop or mobile):
Optional Link to your project:

This is a known issue with loading ioHook in the electron main process. Try loading it in the electron renderer.

I have the same problem，
How to solve it？

I'm facing the same problem with my electron app.
@dabinghao123 @kiritnarain @VolitationXiaoXing Can we resolve it by using different versions?

I have the same problem～


Problem with software serial?

First I want to say thank you for this solution and all your work.
My problem is that it just doesn't work, I am quite sure that I did everything right. The actual guess is that the esp8266 has a quite bad software serial and is not capable to receive the correct data from victron device (MPPT 75/15).
For debug purposes, I modified the code in function RecvWithEndMarker like so:
rc = victronSerial.read();
Serial.println("Daten empfangen!");
Serial.println(rc);
The output of this looks strange:

I am sure that I have the same hardware as you have. Here is my setup:

Do you have any idea what could be the problem?

After a bit of investigating, I found two problems (maybe there are even more):

the software serial input (RX) buffer is set to 64 byte. This is by far not enough. I am testing with 256 byte at the moment. You have to set this value in the softwareserial library for the esp8266
hardware problem: the HC connection of the level shifter board must be connetced to the 5V output of the victron ve.direct connector

So my current situation is the following:

I switched to a ESP-01 to get rid of the software serial. Now I am using the hardware serial.
I have a Victron Phoenix 500/24 which is working properly with the ESP-01.
My Victron MPPT 75/15 is still not working.

I am sure that the data flowes porperly from the 75/15 to the ESP-01. But for some reason the parsing is not successful. The data packet is much larger than from the Phoenix device, that may also cause problems.

Just a remark I had as I begun looking at your code.
Your need SoftwareSerial because you need a second UART to communicate with the device, right?
It is much more elegant to use the library Telnetstream for the user communication with the ESP over WiFi (you "print" to Telnet instead) which liberates the serial hardware UART to read efficiently from the Victron MPPT port.
That would solve your timing/performance problem and you don't even need a cable to your ESP to read the data.

I have a pull request with the Telnet option.
Hardware:
IMHO the level shifter is overkill. a simple 1kΩ resistor does the job as well.
Unfortunately the +5V from the VE-interface is too weak and cannot be used to power the ESP.
I will test tomorrow, but I believe a micro-buck converter like the D-SUN* to power the ESP from the battery and the last cable is gone...
*https://www.ebay.de/itm/174939210703

I have tested a version using Serial.swap() instead of SoftwareSerial.
The serial communication to the user happens over Telnet.
Work perfectly and is ways faster.
See my pull request.
Else you can see my fork here:
https://github.com/rin67630/esp8266-victron-mppt-solarchargecontroller-Telnet/tree/main
Regards


Remove Tobin Tax handling

Description
The TobinTax was never activated in a way that Rosetta uses/tracks it (even with the "Toborked" accidental HF), so this PR removes all associated code. Note: it is technically optional (treating it as a 0-tax going forwards would result in the same behavior, but Rosetta logic is simpler without it).
Things removed:

TobinTax DB table creation, accessors
TobinTax handling in block_processor logic
special handling for log vs. transfer operations matching
unused types in analyzer/types.go

I think it makes a lot of sense to clean this up. Looks good from a first look, will check again once the other PRs are merged.


Replace the partial sync API

This replaces the partial sync API introduced in #547 with one that supports named queries, and that allows subscribing to an existing Results so bindings can build queries using their high-level APIs. It supersedes @cmelchior's PR in #610 based on discussions on Slack about the difficulty of adapting that implementation to Cocoa's API.
Not yet supported:

[x] Unsubscribing (this may come in a later PR?)

Remaining work needed here:

[x] Further tests around subscription naming.

Things to further evaluate:

[x] Is the locking in Subscription::Notifier correct? There's a comment on ResultsNotifier::do_add_required_change_info that outlines what's safe to access when, but I've not thought too hard about how that relates to this code.
[x] Should Subscription::Notifier be where the error / subscription completed state is stored, or should it be storing it on the Subscription as part of delivering the notification?

I'm flagging this for review despite their being some work remaining so I can start getting feedback.

@bdash I have tried to include it in Realm JS' three build systems, and it compiles fine :smile:

The sync tests on Linux have been timing out on CI so I ran them locally. It looks like we're hitting a deadlock. DaemonThread::remove_commit_helper on the main thread is attempting to acquire m_mutex which is held by the notification thread, but the code calling remove_commit_helper holds RealmCoordinator's m_realm_mutex, which the notification thread is attempting to acquire. This looks like an existing problem that this PR just happens to trigger 😦

a8d79de should work around the deadlock for now.

Still hanging on CI. Hopefully I'll be able to reproduce it locally if I run in the same docker environment used on CI.

I've had absolutely no luck reproducing the hang locally, even when using the same Docker script that CI is running 😫

Ok, I'm finally able to reproduce the hang locally by using cpulimit to limit the process to only 1% of the available CPU resources. It's the same deadlock as described above, this time hit when the test case itself opens a Realm. I think we'll need to fix the underlying deadlock to get this merged ☹

The deadlock mentioned above was fixed by #633.

@bdash Thanks for the hard work on this!


mutableComparisonSamplers is unclear

If the Vulkan implementation does not allow descriptors with comparison samplers to be updated, then how can comparison samplers be used at all?  The only way to populate a descriptor in Vulkan is with vkUpdateDescriptorSets.

You have to use an immutable sampler in this case.  See VkDescriptorSetLayoutBinding.pImmutableSamplers.


add mjpg-streamer as routing mode to usb peripheral manager

created new microservice instead - nuvlabox/data-source-mjpg


what happened? leaf_value have most value 100 , -100

when training，I found training error is too large.  log below:
[LightGBM] [Info] Finished loading data in 37.422715 seconds
[LightGBM] [Info] Total Bins 257321
[LightGBM] [Info] Number of data: 27529332, number of used features: 1694
[LightGBM] [Info] Finished initializing training
[LightGBM] [Info] Started training...
[LightGBM] [Info] Trained a tree with leaves=1023 and max_depth=12
[LightGBM] [Info] Iteration:1, training l2 : 988.97
[LightGBM] [Info] 143.878967 seconds elapsed, finished iteration 1
[LightGBM] [Info] Trained a tree with leaves=1023 and max_depth=12
[LightGBM] [Info] Iteration:2, training l2 : 658.242
[LightGBM] [Info] 303.504403 seconds elapsed, finished iteration 2
[LightGBM] [Info] Trained a tree with leaves=1023 and max_depth=12
[LightGBM] [Info] Iteration:3, training l2 : 401.259
[LightGBM] [Info] 468.440862 seconds elapsed, finished iteration 3
[LightGBM] [Info] Trained a tree with leaves=1023 and max_depth=12
[LightGBM] [Info] Iteration:4, training l2 : 221.76
[LightGBM] [Info] 629.556858 seconds elapsed, finished iteration 4
[LightGBM] [Info] Trained a tree with leaves=1023 and max_depth=12
[LightGBM] [Info] Iteration:5, training l2 : 135.788
[LightGBM] [Info] Trained a tree with leaves=1023 and max_depth=12
[LightGBM] [Info] Iteration:6, training l2 : 113.339
[LightGBM] [Info] 1005.897337 seconds elapsed, finished iteration 6
[LightGBM] [Info] Trained a tree with leaves=1023 and max_depth=12
[LightGBM] [Info] Iteration:7, training l2 : 106.062
[LightGBM] [Info] 1116.347294 seconds elapsed, finished iteration 7
[LightGBM] [Info] Trained a tree with leaves=1023 and max_depth=12
[LightGBM] [Info] Iteration:8, training l2 : 101.916
[LightGBM] [Info] 1267.562547 seconds elapsed, finished iteration 8
[LightGBM] [Info] Trained a tree with leaves=1023 and max_depth=12
[LightGBM] [Info] Iteration:9, training l2 : 100.249
[LightGBM] [Info] 1405.155376 seconds elapsed, finished iteration 9
[LightGBM] [Info] Trained a tree with leaves=1023 and max_depth=12
[LightGBM] [Info] Iteration:10, training l2 : 98.618
[LightGBM] [Info] 1544.943491 seconds elapsed, finished iteration 10
[LightGBM] [Info] Trained a tree with leaves=1023 and max_depth=12
[LightGBM] [Info] Iteration:11, training l2 : 97.2549
[LightGBM] [Info] 1692.742952 seconds elapsed, finished iteration 11
[LightGBM] [Info] Trained a tree with leaves=1023 and max_depth=12
[LightGBM] [Info] Iteration:12, training l2 : 9206.71
[LightGBM] [Info] 1792.214484 seconds elapsed, finished iteration 12
[LightGBM] [Info] No further splits with positive gain, best gain: -inf
[LightGBM] [Info] Trained a tree with leaves=665 and max_depth=12
[LightGBM] [Info] Iteration:13, training l2 : 2053.83
[LightGBM] [Info] 1863.073878 seconds elapsed, finished iteration 13
[LightGBM] [Info] No further splits with positive gain, best gain: -inf
[LightGBM] [Info] Trained a tree with leaves=783 and max_depth=12
[LightGBM] [Info] Iteration:14, training l2 : 970.311
[LightGBM] [Info] 1938.056689 seconds elapsed, finished iteration 14
[LightGBM] [Info] No further splits with positive gain, best gain: -inf
[LightGBM] [Info] Trained a tree with leaves=991 and max_depth=12
data_model.txt file below:
Tree=11
leaf_value=0.0082561796236230636 100 -0.14689737626502855 -100 100 -15.002534942245445 2.6718082472956435 -6.5908630074976431 100 100 -100 -15.017993725709903 100 -5.7049102371097185 100 0.64749341900421009 -0.0069847474228686328 -0.47089925630733431 100 -8.6486830642845636 79.807276716068202 -0.2558033877779175 0.64931163008203852 -100 -100 -100 -100 -0.74844905493409364 -100 5.6040351548118919 0.67342211479639591 -0.10532849256658712 -100 5.1969921019976137 -100 0.047884156996104182 -100 -100 0.40962642223210727 -8.7292002908878725 26.647804133839447 -22.552134557151497 21.931341260549161 -2.0000718305879128 -1.3197301252276346 3.3065118670409768 2.0957457194801514 4.3383734301108738 17.811992894233132 1.1374991725849206 -30.069503019340885 -1.6768450680847256 0.79880326920984956 0.19429760461342829 -7.8559614802066378 -12.001371782830653 21.252225078389444 1.5438435853899977 0.10516160228183974 -5.4693152472715347 10.538458392542282 3.8651953555960752 0.24402520026491348 2.5417293449198004 -1.1120345280245623 6.9522709109985703 14.914966700579587 5.68716961543078 -28.597762654025559 0.78299033636216464 6.5994195126056541 2.9817881783207816 -0.75725984938854007 1.8898359235780231 0.23024143120571053 3.0446177528096445 -4.0948355662179372 1.7288704170056128 1.525269906024902 -3.9818208724133637 3.9903029419333098 -2.4635298046490792 1.0764522427372742 -0.93694743548722847 -0.15290708884085719 -0.81326972148452947 0.6560682690563806

@hlee13
it is by design. refer to : https://github.com/Microsoft/LightGBM/blob/master/include/LightGBM/tree.h#L13
BTW, a large range of regression target cannot be fitted well. It is better for you to use some transform (e.g log) to reduce your regression target.

what is the leaf value 100 means

it means the prediction score in that tree is 100.
We limit its range explicitly to avoid the unstable trees.

what is the data reason lead to so large score, that make assign to 100.

@hlee13
You can check your label first, to see are there some very large targets.
You also can try to use bigger min_data, which can reduce the bias of leaf output.

I used min_data, and the label range is [1, 1000].  the label range worked well ever.

@hlee13
can you provide the detailed parameters ?
And what is your objective function ?

task = train
boosting_type = gbdt
objective = regression_l1
metric = l2
metric_freq = 1
is_training_metric = true
max_bin = 255
data = data.train
num_trees = 200
learning_rate = 0.1
num_leaves = 1023
max_depth = 12
snapshot_freq = 10
tree_learner = data
feature_fraction = 0.9
bagging_freq = 5
bagging_fraction = 0.8
min_data_in_leaf = 100
min_sum_hessian_in_leaf = 5.0
is_enable_sparse = true
use_two_round_loading = true
is_save_binary_file = true
is_pre_partition = true
boost_from_average = false
output_model = data_model.txt
categorical_feature=1,2
num_machines = 2
local_listen_port = 12400
machine_list_file = mlist.txt

@hlee13
I see. I think the reason is the L1 objective:
https://github.com/Microsoft/LightGBM/blob/062bfa7964414ffcdf1a9000425d1187a19d3a82/src/objective/regression_objective.hpp#L96-L121
@henry0312 can you check this ? The grad / hess sometimes is large.

May L2 work well?

@hlee13
L2 is more smooth, and sure for most regression tasks.

This is because the l1 objective approximates delta function with Gaussian function
So you need to adjust gaussian_eta parameter that controls the width of Gaussian function.
See:

https://github.com/Microsoft/LightGBM/blob/062bfa7964414ffcdf1a9000425d1187a19d3a82/src/objective/regression_objective.hpp#L81
https://github.com/Microsoft/LightGBM/blob/f8597c93bce24724349b8a17ffc4fab05b64e97c/include/LightGBM/utils/common.h#L483

BTW, why gaussian_eta doesn't apper in Parameters....?

@henry0312 you can create a PR to fix that.

@hlee13 cf. https://github.com/Microsoft/LightGBM/pull/178#issuecomment-271280902 for approximation with Gaussian function.

@guolinke OK. I'll create a PR.

should I set gaussian_eta less than 1.0?

@hlee13 It depends on your situation. just try :)
And I think you can also try l2 objective.

L2 objective also occur the problem.

@hlee13 can you provide more details ?  like the output model.

data_model.txt.snapshot_iter_80.txt
Tree 68

@hlee13
Your model is trained by 2 machines? can you try the single machine ?

@hlee13 updates ?

my datasets is too large, 2 machines worked well ever. Now I try lambda_l2

@hlee13
I am afraid it is the bug of parallel training .
If this issue is randomly show-up, it may have some bugs in parallel training. can you help to confirm this ?

Ok, I try it.

[LightGBM] [Info] Finished loading parameters
[LightGBM] [Warning] Set TCP_NODELAY failed.
[LightGBM] [Info] Trying to bind port 12400...
[LightGBM] [Info] Binding port 12400 succeeded
[LightGBM] [Info] Listening...
[LightGBM] [Warning] Set TCP_NODELAY failed.
[LightGBM] [Warning] Connecting to rank 1 failed, waiting for 10000 milliseconds
[LightGBM] [Warning] Set TCP_NODELAY failed.
[LightGBM] [Info] Connected to rank 1
[LightGBM] [Info] Local rank: 0, total number of machines: 2
[LightGBM] [Info] Finished initializing network
Is related to TCP_NODELAY ?

@hlee13 I think it isn't the reason.
TCL_nodelay can speed up the communication of small packages.

@guolinke  work well on single machine with half of dataset

can quick fix this problem

@hlee13 and this bug can re-produce (100 output in 58-th tree) when using 2 machines ?

this bug re-produce when using 2 machines.
Tree 12
task = train
boosting_type = gbdt
objective = regression_l1
lambda_l2 = 0.01
metric = l2
metric_freq = 1
is_training_metric = true
max_bin = 255
data = data.train
valid_data = data.validate
num_trees = 200
learning_rate = 0.1
gaussian_eta = 0.9
num_leaves = 255
max_depth = 10
snapshot_freq = 10
tree_learner = data
feature_fraction = 0.9
bagging_freq = 5
bagging_fraction = 0.8
min_data_in_leaf = 100
min_sum_hessian_in_leaf = 5.0
is_enable_sparse = true
use_two_round_loading = true
is_save_binary_file = true
is_pre_partition = true
boost_from_average = false
output_model = data_model.txt
categorical_feature=1,2
num_machines = 2
local_listen_port = 12400
machine_list_file = mlist.txt

can I quick fix the bug

@hlee13 , sure if you have found one

@hlee13 when you test the half data with single, did you test for the both two machines ? And they all work fine ?
you can set a much bigger min_data to fix it.

I used min_data 10000 ever

@hlee13 using min_data=10000 is not working ?
can you reproduce this by using a sampled small data, and provide the sampled data ? so that we can debug on it.

would the accuracy on single machine be better than two machines (distribution).

@hlee13
In general, training by bigger data will be better.

[LightGBM] [Info] Finished loading parameters
[LightGBM] [Warning] Set TCP_NODELAY failed.
[LightGBM] [Info] Trying to bind port 12400...
[LightGBM] [Info] Binding port 12400 succeeded
[LightGBM] [Warning] Set TCP_NODELAY failed.
[LightGBM] [Info] Listening...
[LightGBM] [Warning] Connecting to rank 1 failed, waiting for 10000 milliseconds
[LightGBM] [Warning] Set TCP_NODELAY failed.
[LightGBM] [Info] Connected to rank 1
[LightGBM] [Info] Local rank: 0, total number of machines: 2
[LightGBM] [Info] Finished initializing network
Met Exceptions:
std::bad_alloc
[LightGBM] [Info] Finished linking network in 0.000568 seconds
two machine throw bad_alloc, single machine work well on same machine.

commit id :6af850441aad93c4636ce13b673d3fa5db421cbe

@hlee13 can you try the latest code ? I had updated some networks codes.
BTW, it seems you can run it successfully before, why it fails now ?

now dataset is sample of old dataset.

@hlee13
So why it fails ? cost by the sampling ?  re-running it still fails ?

yes.

branch master yet failed

@hlee13 can you try to set histogram_pool_size=1024 ?

histogram_pool_size is a new parameter?

can you provide the data? you can send it to my email

ok, i try

@hlee13 any news?


[Question] is there a setting to skip javadoc jars?

Right now sbt-sonatype requires javadoc jar is available for upload when releasing, is there a way to skip javadocs? There is a weird scaladoc compilation bug on 2.10.6 preventing cats from generating javadocs.

I believe sbt-sonatype do nothing in the build process. If you need to skip javadoc/scaladoc generation in sbt, do something like: http://stackoverflow.com/questions/21461798/how-to-disable-scaladoc-generation-in-dist-task-in-play-2-2-x-using-project-bui

That's what we did. However the we got this error message after that change:

[info] Failed: javadoc-staging, failureMessage:Missing: no javadoc jar found in folder '/org/typelevel/cats-laws_sjs0.6_2.10/0.5.0'

i.e. we are not generating the javadoc jar but now it's complaining that it couldn't find the javadoc jar. I understand that sbt-sonatype might not be directly managing which artifacts get uploaded, but I am relatively new to sbt, so any help would be appreciated.

http://central.sonatype.org/pages/requirements.html#supply-javadoc-and-sources

If, for some reason (for example, license issue or it's a Scala project), you can not provide -sources.jar or -javadoc.jar , please make fake -sources.jar or -javadoc.jar with simple README inside to pass the checking.

thanks very much！@xuwei-k
Closing.

per gitter, a good way to do this is:
sources in (Compile, doc) := Seq()

This generates an empty -javadoc.jar, which lets sonatypeRelease complete successfully
example in the wild


.Net: Add request uri and payload to RestApiOperationResponse

Motivation and Context
Closes #6071
Description

Contribution Checklist

[ ] The code builds clean without any errors or warnings
[ ] The PR follows the SK Contribution Guidelines and the pre-submission formatting script raises no violations
[ ] All unit tests pass, and I have added new tests where possible
[ ] I didn't break anyone :smile:

Not planning to proceed with this option for now as there is a cost to duplicating the request data

@markwallace-microsoft can we add request method as well? There might be cases where URL is the same, but operation is different. That information might be useful in making sure that LLM didn't choose the wrong operation.


python3Packages.aiounittest: 1.3.1 -> 1.4.0

Motivation for this change
Update to latest upstream release 1.4.0
Change log: https://github.com/kwarunek/aiounittest/releases/tag/1.4.0
Things done

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

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

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Relase notes)

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

[x] Fits CONTRIBUTING.md.

@ofborg eval
(Sorry, ofborg's certs recently had an issue, meaning that it was unable to
react to PRs. This has been fixed, but all PRs filed in this period will need
ofborg to be manually kicked off.)

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
Result of nixpkgs-review pr 128947 run on x86_64-linux 1

13 packages failed to build and already failed to build on hydra master:

dyndnsc: log was empty
esphome: log was empty
platformio: log was empty
python38Packages.dependency-injector: log was empty
python38Packages.fastapi: log was empty
python38Packages.json-logging: log was empty
python38Packages.slack-sdk: log was empty
python38Packages.starlette: log was empty
python39Packages.dependency-injector: log was empty
python39Packages.fastapi: log was empty
python39Packages.json-logging: log was empty
python39Packages.slack-sdk: log was empty
python39Packages.starlette: log was empty

1 package failed to build and are new build failure:

home-assistant: log was empty

33 packages built:

chia
opsdroid
python38Packages.aiosqlite
python38Packages.aiounittest
python38Packages.airly
python38Packages.bellows
python38Packages.databases
python38Packages.google-cloud-firestore
python38Packages.orm
python38Packages.yalexs
python38Packages.zha-quirks
python38Packages.zigpy
python38Packages.zigpy-cc
python38Packages.zigpy-deconz
python38Packages.zigpy-xbee
python38Packages.zigpy-zigate
python38Packages.zigpy-znp
python39Packages.aiosqlite
python39Packages.aiounittest
python39Packages.airly
python39Packages.bellows
python39Packages.databases
python39Packages.google-cloud-firestore
python39Packages.orm
python39Packages.yalexs
python39Packages.zha-quirks
python39Packages.zigpy
python39Packages.zigpy-cc
python39Packages.zigpy-deconz
python39Packages.zigpy-xbee
python39Packages.zigpy-zigate
python39Packages.zigpy-znp
theharvester

This is a semi-automatic executed nixpkgs-review with nixpkgs-review-checks extension. It is checked by a human on a best effort basis and does not build all packages (e.g. lumo, tensorflow or pytorch).
Result of nixpkgs-review pr 128947 run on x86_64-linux 1

13 packages failed to build and already failed to build on hydra master:

dyndnsc: log was empty
esphome: log was empty
platformio: log was empty
python38Packages.dependency-injector: log was empty
python38Packages.fastapi: log was empty
python38Packages.json-logging: log was empty
python38Packages.slack-sdk: log was empty
python38Packages.starlette: log was empty
python39Packages.dependency-injector: log was empty
python39Packages.fastapi: log was empty
python39Packages.json-logging: log was empty
python39Packages.slack-sdk: log was empty
python39Packages.starlette: log was empty

34 packages built:

chia
home-assistant
opsdroid
python38Packages.aiosqlite
python38Packages.aiounittest
python38Packages.airly
python38Packages.bellows
python38Packages.databases
python38Packages.google-cloud-firestore
python38Packages.orm
python38Packages.yalexs
python38Packages.zha-quirks
python38Packages.zigpy
python38Packages.zigpy-cc
python38Packages.zigpy-deconz
python38Packages.zigpy-xbee
python38Packages.zigpy-zigate
python38Packages.zigpy-znp
python39Packages.aiosqlite
python39Packages.aiounittest
python39Packages.airly
python39Packages.bellows
python39Packages.databases
python39Packages.google-cloud-firestore
python39Packages.orm
python39Packages.yalexs
python39Packages.zha-quirks
python39Packages.zigpy
python39Packages.zigpy-cc
python39Packages.zigpy-deconz
python39Packages.zigpy-xbee
python39Packages.zigpy-zigate
python39Packages.zigpy-znp
theharvester


Log "Waiting for 'Go'" when not doing up down in

Felt like this matches with the "Waiting for 'Look To'..."
Removed the !, which aren't used elsewhere / in RingingRoom

To hijack this slightly, the 2 logging statements I'd like to move to debug as not generally useful?

INFO:ROWGEN:Reset
INFO:ROWGEN:Reset calls

Looks good - we should probably stick something in the CHANGE_LOG about this.
I think its another tweak that comes under the existing

Print summary string of what Wheatley is going to ring before every touch

I think it's another tweak that comes under the existing
* Print summary string of what Wheatley is going to ring before every touch

Yep makes sense - I'm happy with that. I'll merge now.


Invalid value warnings

/home/zeth/PycharmProjects/spapros/spapros/evaluation/metrics.py:364: RuntimeWarning: invalid value encountered in double_scalars
  return tmp.sum() / n
/home/zeth/PycharmProjects/spapros/spapros/evaluation/metrics.py:364: RuntimeWarning: invalid value encountered in double_scalars
  return tmp.sum() / n
/home/zeth/PycharmProjects/spapros/spapros/evaluation/metrics.py:364: RuntimeWarning: invalid value encountered in double_scalars
  return tmp.sum() / n
/home/zeth/PycharmProjects/spapros/spapros/evaluation/metrics.py:364: RuntimeWarning: invalid value encountered in double_scalars
  return tmp.sum() / n
/home/zeth/PycharmProjects/spapros/spapros/evaluation/metrics.py:364: RuntimeWarning: invalid value encountered in double_scalars
  return tmp.sum() / n
/home/zeth/PycharmProjects/spapros/spapros/evaluation/metrics.py:364: RuntimeWarning: invalid value encountered in double_scalars
  return tmp.sum() / n

When running:
spapros evaluation data/small_data_raw_counts.h5ad results/selections_genesets_1.csv data/small_data_marker_list.csv genesets_1_0 genesets_1_1 genesets_1_13 --parameters data/parameters.yml
I guess that we are dividing by 0 somewhere. Think this one is for you @LouisK92

Thanks, fixed with 9bdadc75147421e5f2382492c13f87745b4b53d7


Element not found issue after installing any linux distro

Your Windows build number:  Microsoft Windows [Version 10.0.18363.720]

What you're doing and what's happening:

Enable WSL and restart
Download Ubuntu from Microsoft store and launch
It shows 'Installing..' and then it says "Element not found"
It then gives me option to enter username but it again says "element not found' and it then says it has been terminated
[logs.zip]

What's wrong / what should be happening instead:  The ubuntu or any other linux distro is not getting setup and it says the windows subsystem for linux has terminated

For WSL launch issues, please [collect detailed logs](https://github.com/Microsoft/WSL/blob/master/CONTRIB

UTING.md#8-detailed-logs).

logs.zip

/dupe #5002


fix(olm): Fix the issue with missing events due to rate limit

Event recorder has a rate limit (defaultSpamBurst) 25 events per
10 minutes. After the limit is reached, refill rate reduces to
1 event per 5 minutes which causes some events to get lost.
Currently implementation allows CSV to be stuck in Pending phase
for a long time if there are some missing requirements. As a result,
during sync cycle, CSV continues to spam CSVReasonRequirementsNotMet
events. Now, the code is fixed to not send any identical events that
match current state of CSV.
Signed-off-by: Vu Dinh<EMAIL_ADDRESS>

Nice work tracking this down!

/approve
/lgtm

/retest

/retest

/retest

/retest

/lgtm


Fix lane centering with single lane line

This is to fix the new lane centering issue that was introduced by changes to the 0.6 MPC.  The new MPC logic does improve OP performance with single lane lines IF the lane is wide.  However, if the lane is not wider than the US Interstate Highway standard, then the values below will cause the MPC to steer the vehicle too far away from the 1 visible lane line.  This fix will prevent that by using a more conservative default width, which will draw the vehicle closer to the 1 visible lane line.

@rbiasini this commit seems to make my vehicle ride much too closely to a single lane line. Additionally, lane width is set when both lane lines are detected, right? So if I was in a curve where both lines weren't solid throughout (such as the right one dropped out), the "center" would then immediately revert to the single lane line calculation (this PR)
Then, if the right lane line, or whatever, was picked up again, center would immediately be set to the actual center. This can cause the recent undesired behavior of my vehicle jerking around in corners and often crossing the center line.

https://discordapp.com/channels/469524606043160576/574796986822295569/602316109701447701
Jerking around, crossing the center line:
5e7462b4437e3372|2019-07-21--01-16-12--23
5e7462b4437e3372|2019-07-21--01-06-21--1
5e7462b4437e3372|2019-07-21--00-47-12--7
Reverting this PR:
5e7462b4437e3372|2019-07-22--00-29-18--3 (uploading)
Community feedback:
https://discordapp.com/channels/469524606043160576/524327905937850394/602649713321312258
https://discordapp.com/channels/469524606043160576/524327905937850394/600337881021546517

You know what would be cool @Gernby @pd0wm @geohot  ? If OP took the actual, calculated lane lines when they were both detected, and setup more of slow decay moving average back to a single lane line estimation; kind of like how ParamsLearner works with slow angle offset, with higher v_ego increasing the learning rate (possibly). This way there isn't sudden center changes dependent on if both lane lines are detected, or not.

Slow decay sounds good.  Let me know when you're done coding that ;-)

@zorrobyte  It seems that the issue you're describing is due to the existing "decay" rate being too high.  The current decay rate will cause lane width to transition back to the speed_lane_width in about 1 second after a lane line disappears.  If the coefficient in the highlighted line below was changed to 0.01, the rate would be about 5 seconds.

That makes sense @Gernby 0.05*20hz = 1 sec.
I'll test this fix and report my findings.

I think that the coefficient 2 lines down should be reduced by the same factor, or it may create weird behaviors

I just realized that my ret.steerActuatorDelay was set to 0.8 and not 0.08 as I expected.
I'm going to have to invalidate all of my comments and start testing over again. FML.

Damn, and I thought Comma's stock value of 0.5 was high...

I think this was a good PR by @Gernby and I've modified my setup to use even smaller values than the PR (I set speed_lane_width to 2.8).  I live in an area with small lanes (Los Angeles), which is probably not the norm, and when one lane line is not detected well stock OP (devel) tends to pull into the other lane.
Basically, if your lane width is overestimated by the speed_lane_width variable your vehicle will have the effect of moving away from the high-probability lane line, which makes little sense IMO.  It seems safer to have the default setup hug the one visible lane line vs potentially move into the other lane.

@jasonhamilton see https://github.com/commaai/openpilot/pull/755

@zorrobyte Thanks! That code looks promising!


CASSIE Suggestion

Just a suggestion, allow server owners to enable a CASSIE announcement if 069 spawned, and make it configurable.

And also add a configurable death CASSIE announcement, instead of it saying "SCP 049 contained successfully"

Thanks for the suggestion. When I have time and desire I will rewrite SCP-069 to make it more optimal and maybe add some extra skills.


Fix double escaping of block code

Ref #725. When post processing code blocks handled by the code step, unescape previously escaped entities. Make sure to test both fenced_code and codehilte to ensure the output of both are the same in relation to entities.

Thank you! This fixed a bug I had on my pelican blog.


Python modules: allow annotating a chainable method with Self

Allows using Self when creating chainable methods:
+from typing import Self
+
from dagger.mod import function, object_type

@object_type
class Foo:
    name: str = "Bar"

-    def with_bar(self, name: str) -> "Foo"
+    def with_bar(self, name: str) -> Self
        self.name = name
        return self

Fixed an issue with testing in a version that's lower than the one used in the runtime, but still supported by the library. Checks are passing.


Dynamic page size

Is there a way to not set the page size for a layout in config.yaml and instead provide the size in the print request? If not, I would very much like to see it in the future.

I would like to see this update too.

Could be accompanied maxPageSize setting to limit potential load on server.

For anyone looking for this it is already possible.
Set pageSize: '${pageSize}' in your layout and then provide i.e. "pageSize": "842 595" in your spec.


Could not load file or assembly 'System.Collections.Immutable, Version=<IP_ADDRESS>

After updating version 2.0.3 to 2.1.0 and updating to th latest VSIX, I'm trying to generate models and get the following message. I noticed that ZbuModelsBuilder set the depencies to <IP_ADDRESS> but somewhere <IP_ADDRESS> seems to be referenced...
ZbuModelsBuilder: ZbuModelsBuilder failed to generate code: Exception: Response status code does not indicate success (InternalServerError)
{"Message":"An error has occurred.","ExceptionMessage":"Could not load file or assembly 'System.Collections.Immutable, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)","ExceptionType":"System.IO.FileLoadException","StackTrace":"   at Zbu.ModelsBuilder.Building.CodeParser.Parse(ParseResult disco, CSharpCompilation compilation, SyntaxTree tree)\r\n   at Zbu.ModelsBuilder.Building.CodeParser.Parse(IDictionary2 files, IEnumerable1 referencedAssemblies)\r\n   at Zbu.ModelsBuilder.AspNet.ModelsBuilderApiController.GetModels(GetModelsData data)\r\n   at lambda_method(Closure , Object , Object[] )\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.<>c__DisplayClass13.b__c(Object instance, Object[] methodParameters)\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n   at System.Threading.Tasks.TaskHelpers.RunSynchronously[TResult](Func1 func, CancellationToken cancellationToken)"} ZbuModelsBuilder:    at Zbu.ModelsBuilder.AspNet.ModelsBuilderApi.EnsureSuccess(HttpResponseMessage result)    at Zbu.ModelsBuilder.AspNet.ModelsBuilderApi.GetModels(Dictionary2 ourFiles, String modelsNamespace)
at Zbu.ModelsBuilder.CustomTool.CustomTool.ZbuModelsBuilder.GenerateRaw(String wszInputFilePath, String wszDefaultNamespace, IntPtr[] rgbOutputFileContents, UInt32& pcbOutput, String& errMsg)

Nooooo ;-( looking into it.

 Sorry about that. Sorry.

Should be fixed with 2.1.1.

Confirmed! #h5yr!


Update timer_button.dart

Outline button has been removed from flutter 3. This change would make the extension work properly in flutter 3.

Please merge as soon as possible


Show an inline notification on accepting first completion

An implementation for https://github.com/sourcegraph/cody/issues/667.
I initially implemented decorations both when the completion was visible and when accepted, as described in the issue above:
https://github.com/sourcegraph/cody/assets/1078012/b027245a-9af3-4a33-b01b-aac9d5a0b0d8
However, there was some concerns about being able to reliably shown this only when a Cody completion is visible. Specifically, when VS Code asks us for completions, there is no guarantee they will be shown (because it may be asking multiple providers at once). We also can't tell if the user hits escape to hide the inline completion so the decoration could be hidden.
So this change implements only the accepted decoration:
https://github.com/sourcegraph/cody/assets/1078012/e456a00f-d6d9-4a9d-b7d6-abd62f2625a0
@toolmantim WDYT? Still needs tests but I want to ensure the implementation is right before adding them.
Fixes https://github.com/sourcegraph/cody/issues/667
Test plan
Tested with a new e2e test (pnpm test:e2e).

@toolmantim pushed some changes to add a test and some mock/shim changes required for them to pass, please check this still all looks reasonable. Thanks!

Pushed some minor tweaks in c0763840745f767c4e6667e692d40496f5b88bbf and 9c5fb2f774ce879090a2c1165dce7d78dda29089 to fix some test flakes.


Further development?

This seems to be dormant now.  Is there a plan to take this past scanning and into discovery and streaming data into node-red from a BLE peripheral device such as an RFduino?  I have looked for another node-red node that might do this but have not found one.

More advanced features are always more than welcome. From my side I've carried out what I needed for now, so I won't be undertaking that development myself.
I'm happy, however, to review and incorporate changes you may make. Eventually should you be making major contributions it may also make more sense for you to get write access directly.

Thx @cpedrinaci ,
I have something for a phone (cordova-based) but no immediate need for a node-red version.  Will reopen this if and when that changes.


Set storage to user-owned, change entity identification

Fixes #115

Download:
Environment: MINGW=C:\Qt\Tools\mingw530_32, QTDIR=C:\Qt\5.11\mingw53_32, QT=5.11, ARCH=x86
installer/trik-studio-installer-master-x86.exe
trik-studio-master_qt5.11_x86.zip
Environment: MINGW=C:\Qt\Tools\mingw492_32, QTDIR=C:\Qt\5.6\mingw49_32, QT=5.6, ARCH=x86
installer/trik-studio-installer-master-x86.exe
trik-studio-master_qt5.6_x86.zip


Why the model architecture trained by openvino training extension is different with the pretrained model which from OMZ.

Hello,
This is John. As the title mentioned, we tried to use this repo to train an object detection - Person Vehicle Bike Detector sample. After converted the trained model to IR, we found its architecture is different with the person-vehicle-bike-detection-crossroad-1016 pretrained model in OMZ. Below is a visualized model architecture of both models. (left one is trained by this repo, right one is from OMZ)

Does it lack some flags during ONNX-to-IR?
Thanks,
John

@FengYen-Chang please use export.py with —alt_ssd_export flag to reproduce model from omz. Details about the flag you can find in documentation here on github.

Hi @Ilya-Krylov,
Really thanks, and I am sorry I didn't read the document well.
Thanks,
John


podman load doesn't work on xz compressed files

/kind bug
Description
podman load on xz compressed files fails.
Steps to reproduce the issue:

Perform a podman load on an xz compressed file.

Describe the results you received:
open container-feeder471485113/manifest.json: not a directory
There are two things related to this issue. The first one is that the fall-through logic in PullImage is masking the actual bug, which made debugging the issue harder. I guess we could improve the situation by being more verbose when falling through the various transports. The second one is that containers/image currently doesn't support xz compressed images and compressed layers. @cyphar has fixed the latter with https://github.com/containers/image/pull/427. I tested https://github.com/containers/image/pull/427 locally with libpod by updating the vendored image library, which required just a minor tweak in the code to reflect the new tar API.
Describe the results you expected:
A successful image load.

Sounds like a nice, easy improvement. We can track the PR in c/image and merge once that's ready.

@umohnani8 you did the gz, how hard would it be to add this ?

@baude If it is fixed in containers/image, just a matter of vendoring it in.

I've implemented it in containers/image#427. Just going through review now.

@umohnani8 Could you follow up on this one?

@rhatdan ACK. Will keep an eye on the containers/image PR for this.

Fixed in #1137.


Clarify sample continuity theorem

I'm trying to understand the Gaussian process sample continuity theorem stated on page 35. The text says:

The following result is adequate for most settings arising in practice and may be proven as a corollary to the slightly weaker (and slightly more complicated) conditions assumed in Adler and Taylor’s theorem 1.4.1.

Would it be possible to provide any additional guidance on how to derive the theorem stated on p.35 of the Bayes Opt book from Adler and Taylor's Theorem 1.4.1? I tried reading Adler and Taylor's Theorem, but I struggled to understand it.

I'm sorry for the confusion. The key to this argument could, perhaps with some work, have been squeezed into a footnote (and I may try to do so now).
We begin with the expression on the LHS of Adler and Taylor's condition (1.4.4), which, by no coincidence, was also discussed in #47:
E|ϕ - ϕ'|².

Let us assume that K is α-Hölder continuous and show that Adler and Taylor's condition is satisfied. Let's ignore the mean function for now and assume the process is centered, μ ≡ 0 [*].
By assumption, we have
E|ϕ - ϕ'|² = K(x, x) + K(x', x') - 2K(x, x') ≤ C|x - x'|ᵃ

for some C ≥ 0. Consider the function
h(x) = |x - x'|ᵃ |log |x - x'||¹⁺ᵃ

on the (compact) interval [0, 1]. Note that h(0) = h(1) = 0 on the boundary and that h > 0 on the interior (0, 1). Thus h achieves a maximum M > 0 somewhere in (0, 1). That implies
E|ϕ - ϕ'|² ≤ C|x - x'|ᵃ ≤ CM / |log |x - x'||¹⁺ᵃ

for |x - x'| < 1. That is sufficient for Adler and Taylor's theorem.
[*] As before, to deal with nonzero μ just assume it's continuous and add it back in.

Did this help @chrisyeh96?


[examples] swap pool implementation

Implements a liquidity pool with a token.
Features

Anyone can create a Pool in a similar way they deploy a Coin<T> - by publishing a module with a type tag.
Pool trades any token against SUI. Can easily be extended to support any T1 against any T2 by adding another generic param.
Liquidity token (LSP) is created for every pool; received for providing liquidity and can be used to withdraw SUI and token T.
Fee percentage is specified for each pool on creation. The value can be down to 2 digits after a dot: 0.01.

Tests

Price changes whenever someone uses it.
Passing all LSP tokens withdraws all liquidity from the pool.
Max value of a Coin<T> or Coin<SUI> stored is u64_max / 10000 =<PHONE_NUMBER>370955.

Entrypoints

create_pool - create a pool, add initial amount of liquidity
swap_sui - swap Coin<SUI> for Coin<T>
swap_token - swap Coin<T> for Coin<SUI>
add_liquidity - provide amounts of both T and SUI and receive LSP token
remove_liquidity - burn LSP token and get SUI and T

@sblackshear We now have a Witness, and coin is now: Coin<LSP<POOL_WITNESS, TOKEN>>, that limits options for cheating assuming that pools are created in module initializers.
@kchalkias I've added max value checkers. With current scaling for fees we allow U64_MAX / 10_000. Math is now done in u128 inside get_input_price function. Tests for these values are added.

Sorry for taking so long to get to this!

Hi! Not sure how useful this comment would be, as this is just an example PoC for other developers to see, but just wanted to leave a comment about slippage. It would be really useful for the swap functions to have a 'minimum amount out' parameter to allow slippage thresholds to be set.


v0.2 design won't work

v0.2 design won't work as following example compiles:
    let escape = |idx| in_arena!(arena, {
        if let Some(idx) = idx {
            println!("{}", arena[idx]);
            idx
        } else {
            arena.add("hello")
        }
    });
    escape(Some(escape(None)));

We want to prevent escaping tag type from inner function of in_arena! but there is no way to express that in current Rust as far as I know.
Furthermore, escaping cannot prevent by the type system alone (not using lifetimes):
    fn recursive(idx: Option<Box<dyn std::any::Any>>) {
        in_arena!(arena, {
            if let Some(idx) = idx {
                println!("{}", arena[*idx.downcast().unwrap()]);
            } else {
                recursive(Some(Box::new(arena.add("hello"))));
            }
        });
    }
    recursive(None);

Cool, you found a counter example! Thank you so much!
I will probably remove the macro and leave the unsafe functions in place. That and possibly add a bounds-checked safe variant.

Thinking a bit more about the issue, I may have an idea how to preclude this at runtime: Keep a static AtomicBool with each Tag type, fetch & set to true on instantiation. If the fetched bool is true, panic.

Thinking a bit more, we also need to set our bool to false when we drop the Arena. Otherwise our code could only run once.

A threadlocal bool would be better than an AtomicBool, too.

If I'm not mistaken, adding mutex guard doesn't prevent us from running my first example.
The arena is already dropped when first escape(None) is returned.

So we have to ensure no index escapes the closure.

Yes, and that condition can be represented with hypothetical hyper-ranked trait bounds syntax:
fn in_arena<R, C>(closure: C) -> R where C: for<B> FnOnce(Arena<B>) -> R;

Haskell's ST monad uses such signature. However, the above is

Not available in Rust.
Still vulnerable to type erasure Any as shown in my second example.

What we can do in Rust's type system is using lifetimes:
fn in_arena<R, C>(closure: C) -> R where C: for<'b> FnOnce(Arena<'b>) -> R;

This works because:

Higher ranked bound is supported for lifetimes.
Any requires 'static bound and thus lifetimes cannot be escaped.

Maybe this work?
trait WithArena {
   type Output: Sized;
   fn with_arena<B>(arena: Arena<B>) -> Self::Output;
}

I have found a way to bind the indices to a tag lifetime without using a closure (which to me seems beneficial as it allows using returns and ? within the in_arena expression.
I just published 0.2.1 with the changes. I'm not entirely sure if it's sound now, but at least the indices can no longer escape.

Great! I think v0.2.1 is sound. Closing as the problem is now solved.


Sleep timer

Due Diligence

[X] I have done my due diligence

What can we help you with?
Is there a way to get the sleep timer? There's a sleep timer (stop music after x minutes) on spotify, but this option is not available when selecting the raspotify device. Is there a way to do something similar?

I'm not the maintainer, but I think this might be outside the scope of what this project does/is meant to do. To achieve this, you could write your own program that triggers the "pause" endpoint of the Spotify API. I have an alarm clock project that uses raspotify to do the reverse of this (start at a certain time). I use crontab to schedule it. You can see the code here: https://github.com/janek/music-alarm-clock.
If you want the easiest/quickest way to do this, it could be worth trying to do it with make.com - depends on how you imagine triggering the pause (what interface/device you'd like to use for it). If you use code you have to manage authorizing Spotify yourself, which also means creating a an account as a Spotify Developer, etc.


ISPN-10276 StoreMigrator marshalling changes

https://issues.jboss.org/browse/ISPN-10276

Updated

@wburns Good points, updated.

Integrated into master, thanks @ryanemerson !


MAINT: stats.qmc: transition to rng (SPEC 7)

Reference issue
Toward gh-21833
What does this implement/fix?
To prepare for the deprecation and removal of seed and its legacy behavior from stats.qmc classes., this allows for use of the new keyword rng alongside seed.
Additional information
Note that when the _transition_to_rng decorator receives an integer as the rng argument, it normalizes it using default_rng before passing it to the wrapped function. Also, if a QMCEngine is passed a np.random.default_rng directly, it doesn't use it; rather, it spawns a new RNG from it.  Therefore, with the decorator in place, both of the following happen in sequence: the rng argument is always normalized, and a new Generator is spawned from it.
So as-written, if we want to preserve the stream of numbers when the _transition_to_rng decorator is removed, we would always need to normalize the argument rng argument with default_rng AND spawn a new Generator from that; we would not keep the current logic that "if the argument is an instance of Generator, spawn; otherwise, normalize".
There is no problem with this; it's just a bit peculiar. A motivated individual is welcome to adjust the current implementation after this PR merges if this is not the desired long-term behavior.

thanks both!


Fix the rect elemets position when drawing svgs

@MatheusrdSantos I patched my pdf-lib with your code and it is better, but still does not produce correct SVG in React. I see that the SVG is streatched in Y axis.

Hi, @rocinante-sys.
Sorry for my late response. Could you provide an example of the SVG you are using and the result you got?


Colored slice view?

Presently all example (image) data are rendered in black-and-white in the Slice view.
Is it a planned feature to allow showing colored slices?

What sort of image are you visualizing? I don't have any multi-component volumes on hand to test, but loading 2D JPEGs (and viewing them on the Z axis) show color, albeit a bit transparent by default due to the windowing level.

If you're referring to applying the color transfer function (that you see in the 3D view) to the 2D slices, then that might be something to consider as a toggle. But I don't know how useful that would be off the top of my head.

If you're referring to applying the color transfer function (that you see in the 3D view) to the 2D slices, then that might be something to consider as a toggle. But I don't know how useful that would be off the top of my head.

Hi Forrest. Yes, I was referring to applying the color transfer function (that I see in the 3d view) to the 2D slices. Therefore, a toggle would be ideal.
This is a common scenario in our scientific computing data visualization. For example, in 3d, we show volume rendering, and in 2d slices, we show color-coded contours using the same colormap.
An example, in the following ParaView visualization, we present two slices to show the formation of structures in a simple way: https://www.nas.nasa.gov/SC19/assets/images/content/7_Dong_C_SC19_1_big.png

Those slices could be made with "Slice" filter in PV. The only thing that will be missing would be the "transparency part" of the color map for that field. But that could be faked by clipping by scalars those slice as well.

Yes, Sebastien. I agree doing the slicing in PV + toggling slices in Glance is a good solution.
Nevertheless, I think allowing color mapping in Glance's slice view would be a very useful feature liked by many scientific computing people :)

I agree with the color map for slices. But those features were driven by medical needs initially. But I'm sure @floryst can figure out something and provide a toggle to enable it.

This is now implemented, with an extra option that independently toggles opacity and color.


Indicator for required field

Supporting PR for #1302, purely focusing on UI for the required field.
Open to thoughts and suggestions.

This PR can't be merged until the CI failures are resolved.

How should this be handled for Non English Languages?

Resolved


Allow locking of the draw mode

When adding many features of the same type, it becomes unnecessarily repetitive to keep selecting the draw mode (point, line, or area). There should be a mechanism to lock into a mode so it stays active even after adding a feature. Double-clicking would be a simple way to lock, with a single click sufficient to unlock.
This would be especially powerful combined with #5873 since then users could quickly add many features of the same type with no clicks required in-between additions.
While theoretically this would make it easier to accidentally add many untagged features, #5830 will prevent their upload and help users tag or remove them.
Draw mode buttons with quick presets after #5873:

With single feature draw mode active (on click or hotkey):

Possible UI with locked draw mode active (on double click):

I'm working on this today, targeting a "Repeat" toolbar button that appears during adding/drawing.

I did this. Get ready for speed!
🏎💨💨💨

:-)


Can't install the spatial branch of scanpy

Trying for the first time the tutorial notebook and I stumble onto the error below

pip install git+https://github.com/theislab/scanpy.git@spatial

Collecting git+https://github.com/theislab/scanpy.git@spatial
  Cloning https://github.com/theislab/scanpy.git (to revision spatial) to /tmp/pip-req-build-1aajpyr3
  Running command git clone -q https://github.com/theislab/scanpy.git /tmp/pip-req-build-1aajpyr3
  WARNING: Did not find branch or tag 'spatial', assuming revision or ref.
  Running command git checkout -q spatial
  error: pathspec 'spatial' did not match any file(s) known to git.
ERROR: Command errored out with exit status 1: git checkout -q spatial Check the logs for full command output.

Hi @cartal!
I believe the spatial branch has been merged into master now. So you no longer need the `@spatial@ in there.
@giovp could you update this in the tutorial, please?

Thanks @LuckyMD ,
This fixed my issue.

Sorry for that. Now the branch spatial is back in place and should be ready to be used as the tutorial describes very soon.


Test vercel deploy

PR made to test vercel deploy

Closing as everything works as expected. Thanks a lot for your help on this 🙏 🙏 🙏


[Page] Code of Conduct - Initial Complete Design

Context
This issue tracks the progress of the first design and its implementation for the code of conduct page of sveltevietnam.dev

tracked in figma


Missing required authentication credential

Hi,
Thank you for this library! I am trying to create a form that, when submitted, writes data to a Google sheet. I used vue-gapi and configured it as specified, but when I click my submit button I get the following error: "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential."
This is the code that sets up the API:
import VueGAPI from 'vue-gapi'
const apiConfig = {
  apiKey: 'MY_KEY',
  clientId: 'MY_ID',
  discoveryDocs: ['https://sheets.googleapis.com/$discovery/rest?version=v4'],
  scope: 'https://www.googleapis.com/auth/spreadsheets'
}

Vue.use(VueGAPI, apiConfig)

This is the code that tries to write to the sheet:
this.$getGapiClient().then((gapi) => {
          const params = {
            spreadsheetId: '1IZfst0hsjboYwn8KZe-oAbQj8LBPZDBKmBHnoQA-nsE',
            range: 'Sheet1',
            valueInputOption: 'RAW',
            insertDataOption: 'INSERT_ROWS'
          }
          const valueRangeBody = {
            majordimension: 'ROWS',
            values: ['testing', 'testing', 'testing', 'testing', 'testing', 'testing', 'testing', 'testing']
          }
          let request = gapi.client.sheets.spreadsheets.values.append(params, valueRangeBody)
          request.then(
            function (response) {
              console.log(response.result)
              alert(
                'The form has been submitted. Thank you for your help updating the entry!'
              )
              this.selected = []
            },
            function (reason) {
              console.error('error: ' + reason.result.error.message)
            }
          )
        })

I've been Googling for a while with no luck, so any ideas would really be appreciated!

@eparadise
Glad to know your using VueGAPI, thanks!
For the issue, I'll first ask: which version are you currently using?
Also, are the values properly stored in localStorage?

@eparadise, I'm not sure if you're still experiencing this issue, but I'm guessing the user needed to login first.
I'm going to close this out given its age but happy to help / re-open if you're still experiencing issues.


pass:text fails for text colour that is a temp vec

The following code fails:
local c = lovr.math.vec4(1,1,1,1)
pass:text({c,"text"}, ...)

with error Error: Expected nil, number, table, vec3, or vec4 for color value
I think it's because luax_optcolor isn't temp vec aware: https://github.com/bjornbytes/lovr/blob/efc81e4cec9629483d3541a34d17eeb05592e040/src/api/api.c#L441

Fixed in a79b3af7e5fdddf43cb5e86a557b7811eb22e7b9.  Thanks!

Did you fix this within 4 minutes of me reporting it?! ⚡
Thanks :)


Possibility for Z-Indexing (layers)?

Web developers have been accustomed to dealing with plain HTML to represent UI, which gives us the ability to generate layers via Absolute Positioning and z-indexing.
Do you guys plan on implementing Z-indexing or absolute positioning?

well i agree with you @vjeux  but the fact that we need some time to put a view in the front or in the back what ever the position in the DOM. and position absolute is not the solution for that

Well i know it's closed but it's very useful to have these properties bringSubviewToFront and inverse
See The PR https://github.com/facebook/react-native/pull/1891


(question) how does test cases use previous test's result?

I see object_instance.save() inside many test functions.
For instance
def test_is_valid_shipping_method(checkout_with_item, address, shipping_zone):
    checkout = checkout_with_item
    checkout.shipping_address = address
    checkout.save()

I guess following tests are using the saved object instance, or am I misreading intention of the code?
Maybe something like this?
order.save()

do_something(order_id=order.id)
def do_something(order_id):
   pass

All tests are separated and the changes they make are rolled back. The order in which tests are executed does not matter.

Thanks for the answer


Accept unix abstract namespace paths starting with @

Hello there,
I was writing some unix specific code using your library (thanks for this library by the way) and I came across this "issue".
Many libraries support specifying abstract namespace paths by prepending the path with the '@' character.
This is pretty common in Unix and convenient as well since it's not convenient to format paths or add the null character (\0) at the start of the path so '@' is used instead.
However, since this was not handled explicitly in the Unix code I thought of adding this functionality.
I would say this is more of a quality of life improvement rather than a feature since the library already supports abstract namespace paths.

Hmm... I'm not sure about this. Generally speaking we prefer not to modify any parameters and just provide a thin, safe layer on top of the API provided by the OS/libc.

Yeah, you are right. I looked into the kernel code and it doesn't explicitly handle this. It is a convention handled by either application code or other libraries. Since this is a thin OS layer, this should probably be handled in the application code.
Thanks for the response. Closing this issue now.


CMake 3.28 no longer supports exec_program

The iOS toolchain is broken on the SFML 2.6.x branch when using CMake 3.28 (which is now used by Github Actions). The "MacOS XCode iOS" CI job is also failing due to this.
CMake 3.28 disabled the long deprecated exec_program command with policy CMP0153. This PR replaces it with the newer execute_process function.
This issue does not affect the master branch, as the toolchain file no longer exists there (and the changed code in Config.cmake is also different).
CI is failing on the Android jobs in this PR, but that will be resolved once https://github.com/SFML/SFML/pull/2887 is merged. As long as the "MacOS XCode iOS" job is passing then this PR works.

SFMLBuildMaster: Build this please.

SFMLBuildMaster: Build this please.

Thank you for fixing CI!