special case 3D cross product of 2D space?

I have a 2D vector field in the x-y plane, and I need to calculate the cross product with zhat (the unit vector in the z-direction).  I set this up with VectorCrossProductInterpolator(*zhat), but I get errors that are not unexpected.  If I set the dimension of the VectorCoefficient zhat to 3, I get an error that this is not equal to the mesh dimension, which is 2.  If I set the dimension of zhat to 2, then I get an error that the zhat dimension is not 3.  VectorCrossProductInterpolator seems to only support 3D operations.
It is generally valid to do the zhat cross product with a 2D x-y field since the result remains in the x-y plane, and this is what my math requires.  Is there a way to set this up?

Hi, @M8kmyday,
This is clearly a very special case and VectorCrossProductInterpolator does not support it. The trouble is that in general the vector coefficient provided to this interpolator could be non-zero in any of its components. This would lead to results which are not contained in the 2D plane. We would need to verify that these components are indeed zero at every interpolation point which would not be very efficient (and we try to avoid testing doubles for equality whenever possible).
You could write a custom interpolator based on the VectorCrossProductInterpolator which does this. It would not need a vector coefficient if you want to assume that this coefficient is always zhat. This would avoid the verification that I spoke of. The MatrixCoefficient defined inside VectorCrossProductInterpolator could then be replaced with a 2x2 MatrixCoefficient which would probably work with call to ProjectMatrixCoefficient.
Best wishes,
Mark

Ok.  Thanks for the details on an approach.

With Mark's feedback on an approach, I have something working using this code:
class zHatCrossProduct2D : public DiscreteInterpolator
{
public:
zHatCrossProduct2D() {}
void AssembleElementMatrix2(const FiniteElement &nd_fe,
const FiniteElement &rt_fe,
ElementTransformation &Trans,
DenseMatrix &elmat);
};
void zHatCrossProduct2D::AssembleElementMatrix2(
const FiniteElement &dom_fe,
const FiniteElement &ran_fe,
ElementTransformation &Trans,
DenseMatrix &elmat)
{
// Vector coefficient product with vector shape functions
struct VCrossVShapeCoefficient : public MatrixCoefficient
{
const FiniteElement &fe;
DenseMatrix vshape;
  VCrossVShapeCoefficient(const FiniteElement &fe_, int dim)
     : MatrixCoefficient(fe_.GetDof(),dim), fe(fe_),
       vshape(height, width)
  {
     MFEM_ASSERT(width == 2, "");
  }

  virtual void Eval(DenseMatrix &M, ElementTransformation &T,
                    const IntegrationPoint &ip)
  {
     M.SetSize(height, width);
     fe.CalcPhysVShape(T, vshape);
     for (int k = 0; k < height; k++)
     {
        M(k,0) = -vshape(k,1);
        M(k,1) =  vshape(k,0);
     }
  }

};
int dim=2;
VCrossVShapeCoefficient dom_shape_coeff(dom_fe,dim);
if (ran_fe.GetRangeType() == FiniteElement::SCALAR)
{
// ToDo - VQ has been taken out, so this line needs to be fixed up.
// However, a SCALAR result would never show up in this code, so it should
// not be a problem to just leave it.
//elmat.SetSize(ran_fe.GetDof()*VQ->GetVDim(),dom_fe.GetDof());
}
else
{
elmat.SetSize(ran_fe.GetDof(),dom_fe.GetDof());
}
Vector elmat_as_vec(elmat.Data(), elmat.Height()*elmat.Width());
ran_fe.ProjectMatrixCoefficient(dom_shape_coeff, Trans, elmat_as_vec);
}
Then:
     DiscreteLinearOperator Ht_re(fespace_Et, fespace_Ht);
     Ht_re.AddDomainInterpolator(new zHatCrossProduct2D());
     Ht_re.Assemble();
     Ht_re.Finalize();
     ParGridFunction grid_Ht_re(fespace_Ht);
     Ht_re.Mult(grid_Et_im,grid_Ht_re);

This seems to be working and giving the right result [still needs the right scaling and the imaginary part].  Here is the electric field for a microstrip line with the fields properly fringing from the trace to the ground plane:

and here is the magnetic field using the new zHatCrossProduct2D interpolator with the fields properly circling around the trace:

If anyone has the time to look at the code, I would appreciate feedback on what might be wrong.

This looks good to me.

Thanks!


config.json file not found OS X 10.12

getting the following error...  config.jaon is in .hombridge directory
Stevens-Mac-mini:~ sstout_macmini$ homebridge
[10/25/2016, 5:30:16 AM] Loaded plugin: homebridge-nest
[10/25/2016, 5:30:16 AM] Registering platform 'homebridge-nest.Nest'
[10/25/2016, 5:30:16 AM] ---
[10/25/2016, 5:30:17 AM] Loaded plugin: homebridge-wemo
[10/25/2016, 5:30:17 AM] Registering accessory 'homebridge-wemo.WeMo'
[10/25/2016, 5:30:17 AM] ---
[10/25/2016, 5:30:17 AM] config.json (/Users/sstout_macmini/.homebridge/config.json) not found.
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:
┌────────────┐
│ 031-45-154 │
└────────────┘

[10/25/2016, 5:30:17 AM] Homebridge is running on port 53726.

you have to name the file config.json


Optimize power operation.

Using a vectorized call instead of a comprehension gives a 7x speedup, tested on a synthetic Llama 2 setup.

Does it actually take a while for you to run? How many tokens are you running this on?
All seems to be working though, thanks! :slightly_smiling_face:
Both of your changes have made it to 1.0.2 which is now public.

Does it actually take a while for you to run? How many tokens are you running this on?

Yeah, I found it while looking at a peculiar dataset - but yes it takes a while. 1.95B tokens.


Fix direct calls to previous window procedures

Prevents crashes if Get/SetWindowLongPtr(GWLP_WNDPROC) returns a thunk on Windows. Closes #1872.

:white_check_mark: Build sws 1104-master completed (commit https://github.com/reaper-oss/sws/commit/fe8e09baf0 by @cfillion)

Windows 64-bit

build/BuildUtils/SWS_Template.ReaperLangPack
build/BuildUtils/whatsnew.html
build/reaper_sws-x64.dll
build/reaper_sws-x64.pdb
build/sws-<IP_ADDRESS>-Windows-x64-fix-wndproc-direct-calls-fe8e09ba.exe
build/sws_python64.py

Windows 32-bit

build/BuildUtils/SWS_Template.ReaperLangPack
build/BuildUtils/whatsnew.html
build/reaper_sws-x86.dll
build/reaper_sws-x86.pdb
build/sws-<IP_ADDRESS>-Windows-x86-fix-wndproc-direct-calls-fe8e09ba.exe
build/sws_python32.py

macOS x86 64-bit

build/reaper_sws-x86_64.dylib
build/sws-<IP_ADDRESS>-Darwin-x86_64-fix-wndproc-direct-calls-fe8e09ba.dmg

macOS x86 32-bit

build/reaper_sws-i386.dylib
build/sws-<IP_ADDRESS>-Darwin-i386-fix-wndproc-direct-calls-fe8e09ba.dmg

macOS ARM 64-bit

build/sws-<IP_ADDRESS>-Darwin-arm64-fix-wndproc-direct-calls-fe8e09ba.dmg
build/reaper_sws-arm64.dylib

Linux x86 64-bit

build/reaper_sws-x86_64.so
build/sws-<IP_ADDRESS>-Linux-x86_64-fix-wndproc-direct-calls-fe8e09ba.tar.xz

Linux x86 32-bit

build/sws-<IP_ADDRESS>-Linux-i686-fix-wndproc-direct-calls-fe8e09ba.tar.xz
build/reaper_sws-i686.so

Linux ARM 64-bit

build/sws-<IP_ADDRESS>-Linux-aarch64-fix-wndproc-direct-calls-fe8e09ba.tar.xz
build/reaper_sws-aarch64.so

Linux ARM 32-bit

build/reaper_sws-armv7l.so
build/sws-<IP_ADDRESS>-Linux-armv7l-fix-wndproc-direct-calls-fe8e09ba.tar.xz


create or use existing 3d vector lib

boost qvm looks ok, now using a stub cell class to assign a vec3 position and print the coordinates to stdout


Can this package be used as an external access interface to reviews?

Hi All,
I was wondering if this package was ever intended to be used as an API for a rayyan survey.
I am entirely new to your system, but my use case is that I wanted to be able to get the latest state of an ongoing survey and export it without needing to use the web interface and click export.
Is this what this package is meant to do, or is this mostly an in-house thing?
Also, is the postgresql server accessible for direct connection? If so, is this safe? Does it have like a read-only mode so I can make sure nothing bad happens?

Hi @frederico-klein. Thanks for reaching out!
This package is used internally by Rayyan and is not intended for live data access.
Please send an email to<EMAIL_ADDRESS>explaining your use case in more detail so that the team can help you better. There are ways to get data out of Rayyan like the Rayyan API, but it needs some scripting.

Where is the rayyan api? I am fine with "scripting"

It is currently in closed preview, but I believe the team can help you once they understand your needs. The Rayyan mobile app already uses Rayyan API and can be found here.

Hmm, is this a rest api? I am not good with web stuff.
I would be nice to have a simple python script wrapper. I am not sure how much time I can put into this to learn how to make one myself.
It is maybe a nice feature request? I will send an email as you suggested.
Thank you anyway!


I tried to upload to vimeo service, but error 405 occurs

Describe the bug
I tried to upload a tus method to vimeo, but got error 405 on the vimeo endpoint. When I searched the link library on the android side, it was the same as the issue of https://github.com/tus/tus-android-client/issues/19.
To Reproduce
vimeo endpoint is : https://asia-files.tus.vimeo.com/files/vimeo-prod-src-tus-asia/f27a3fb980bf9d92435cfe91c6ca0479
upload it to the vimeo endpoint
Expected behavior
Normal upload
Setup details
Please provide following details, if applicable to your situation:

Runtime environment: Android 10, Api 29 version
Used tus-android-client version:  v0.1.9
Used tus-java-client version: v0.4.2
Used tus server software: ???

https://github.com/frusdelion/tus-flutter-client/pull/5


Windows freeze with a huge code block parsing

I set up Highlight.js to load 500 ms after window loading:
jQuery(window).load(function() {
    setTimeout(function() {
        $('pre code').each(function(i, block) {
            hljs.highlightBlock(block);
        });
    }, 500);
});

I can scroll on the page, but it freezes when Highlight.js start parsing on a huge code block, like this one: https://gist.github.com/Soullivaneuh/acc9c0ec725f094bcfbd
Do you have a solution to load parsing "in background" and avoid this page freezing?
Using 8.8.0 version.

You can mark this block as no-highlight to avoid freeze.

...

You can mark this block as no-highlight to avoid freeze.

Well, that's a workaround... or not, because this will just disable highlighting.
I want this piece of code to be highlighted, but in background with no window freezing.

Probably the only thing you could try to do is to write your own initialization function that would call hljs.highlight() repeatedly on chunks of the input string of some manageable size. This function returns a parsing state that you can pass back as a 4th parameter to pick up parsing from the previous point.

@isagalaev Thanks for the tip.
But I'm not sur to undersand well the way to do.
Could you please provide a code sample based on mine?

Once we have web worker support (https://github.com/isagalaev/highlight.js/pull/963), you can highlight your code blocks in a worker asynchronously without freezing the page.
You will have to create a separate JavaScript file for the worker, which could look like this:
importScripts('../libs/highlight.pack.min.js');

self.onmessage = function (event) {
    var result = hljs.highlightAuto(event.data);
    postMessage(result);
};

Then you can use it with this modified snippet of yours:
jQuery(window).load(function() {
    $('pre code').each(function(i, block) {
        var code = $(block).text(),
            worker = new Worker('js/myworker.js');

        worker.onmessage = function (event) {
            var result = event.data;
            $(block).addClass('language-' + result.language).html(result.value);
            worker.terminate();
        };

        worker.postMessage(code);
    });
});

Of course you have to keep browser support in mind: http://caniuse.com/#feat=webworkers
Another thing, which wasn't mentioned here is that highlight.js can be a bit slow if it needs to autodetect the language. So make sure you add the language-<javascript|xml|...> class to your code blocks.

Yep, web workers looks like a good solution here.

@frigus02 Thanks for the tip, will test.
@Sannis Maybe, but the library should implement a native solution like this to avoid this kind of issue.
At least, a special documentation part should be added for this.


Issue using web UI on deployed scancode.io docker container

I've deployed scancode.io on a server using docker and I am accessing it through an ssh tunnel.
I am trying to create a project by setting a project name, uploading a file, and choosing a pipeline, but when I hit the create button, I am stuck at this screen

When I check the logs for the scancodeio_web container, there is a message
WARNING Forbidden (Origin checking failed - http://<IP_ADDRESS>:8001 does not match any trusted origins.): /project/add/

When I try to create an empty project, I get this message.

We recently added support for the CSRF_TRUSTED_ORIGINS Django setting at https://github.com/nexB/scancode.io/blob/main/scancodeio/settings.py#L47
https://docs.djangoproject.com/en/4.0/ref/settings/#std-setting-CSRF_TRUSTED_ORIGINS
@JonoYang Could you try to set CSRF_TRUSTED_ORIGINS=http://<IP_ADDRESS>:8001 in your docker.env config file?
Let me know if that solve your issue and we'll add this to the documentation.

@tdruez Thanks, I've added CSRF_TRUSTED_ORIGINS=http://<IP_ADDRESS>:8001,http://localhost:8001 to docker.env and it fixed the issue!

Ok great. Let's keep this one open until we add some notes to the documentation.

Added in the docs.


Missing reference to business-finance icons pack in style.css file

Confirm uniqueness of the issue
I have searched the issues of this repository and believe that this is not a duplicate.
Describe the bug
In mian style.css file, there is a reference to a non-existent path to /business-finance/style.css icons , thus all the app icons are not loaded and the application cant be build.
https://github.com/Vectopus/Atlas-icons-font/blob/main/style.css#L5
@import "packs/basic-ui/style.css";
@import "packs/business-finance/style.css"; // Non-existent reference
@import "packs/christmas/style.css";

Steps to Reproduce
Steps to reproduce the behavior:

Install the atlas icons package npm i @vectopus/atlas-icons
Import icons @import<EMAIL_ADDRESS>See error in console

ERROR in<EMAIL_ADDRESS><EMAIL_ADDRESS>Module build failed (from ./node_modules/css-loader/dist/cjs.js):
Error: Can't resolve 'packs/business-finance/style.css'

Expected behavior
No reference error
Possible solution
Remove the reference or correct the path
Bypass for atlas-icons users
Until fixed, import only the icons you need separately from packs dir
@import url("/node_modules/@vectopus/atlas-icons/packs/achievement/style.css");
@import url("/node_modules/@vectopus/atlas-icons/packs/arrow/style.css");
@import url("/node_modules/@vectopus/atlas-icons/packs/audio/style.css");
...

Hi @Pe5h4!
Thank you for reporting this issue and sorry for inconvenience.
I just fixed this issue, please update your dependencies.
Thank you

Hello @mosamy19,
thank you for prompt fix & response!


Fix bug when diagraming nested method calls

Nested methods would only get drawn correctly if no actions preceeded the method call. If a previous action had been chosen in the plan, the parents would get chosen incorrectly.
Change-type: patch

LGTM


Rounded corners bug after PackerSync

Before:

After running :PackerSync:

Here's my minimal config, what could be wrong?
components = {
      {
        text = '',
        fg = get_hex('ColorColumn', 'bg'),
        bg = get_hex('Normal', 'bg'),
      },
...
}

The same issue here, but this happens every time I open neovim, running packer compile (not lazy) after startup could fix this temporary, but corners would become white again when nvim was reopened.
Notice that if I put
local get_hex = require('cokeline/utils').get_hex
print(get_hex('ColorColumn', 'bg'))
...

in configuration file[^1], nvim would print 1 instead of color code in the terminal when it starts up, but if it was runned manually after the start up, get_hex acts completely normal.
[^1]: even at the end of the init file

Is this still occurring?

Closing due to inactivity and lack of  a packer-based minimal config, but feel free to reopen if this still needs fixing.


Linux support?

Hi everyone,
I'm trying to use this library in a docker container on Linux.
the library is starting successful but when it comes to receive a mail it's throwing this exception:
[Client receive loop] Exception: System.IndexOutOfRangeException, Index was outside the bounds of the array.
Any Idea?
Thanks in advance

Found a solution:
EMailParser.cs in line 37
I changed
if (!char.IsWhiteSpace(split[j][0]) || string.IsNullOrWhiteSpace(split[j]))
against
if (string.IsNullOrWhiteSpace(split[j]) || !char.IsWhiteSpace(split[j][0]))

Hi,
Thanks for reporting the issue. I will apply your fix in a second.

Issue fixed in version 1.1.5.


[Improvement] [Api] Failed to create task group for non-root user

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
Failed to create task group for non-root user，Because there is no permission

What you expected to happen
normal user can create task group too.
How to reproduce
login a normal user and try to create task group.
Anything else
No response
Version
dev
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

I'll check out this issue.


Autodidax has some bugs involving reduce_sum

This works in JAX:
import jax
from jax import grad, vmap
import jax.numpy as np

def simple(a):
  b = a
  t = a + b
  return t * b

def f(a):
  L0 = np.sum(simple(a))
  return L0

def g(a):
  dL0_da = vmap(grad(f), in_axes=0)(a)
  L1 = np.sum(dL0_da * dL0_da)
  return L1

key = jax.random.PRNGKey(0)
print(grad(g)(jax.random.normal(key,(2,4))))

However, the same code does not work in autodidax:
def simple(a):
  b = a
  t = a + b
  return t * b

def f(a):
  L0 = reduce_sum(simple(a))
  return L0

def g(a):
  dL0_da = vmap(grad(f), in_axes=0)(a)
  L1 = reduce_sum(dL0_da * dL0_da)
  return L1

print(grad(g)(np.random.rand(2,4)))

gives
[<ipython-input-27-03f392c346bd>](https://localhost:8080/#) in batched_f(*args)
     17     args_flat, in_tree = tree_flatten(args)
     18     in_axes_flat, in_tree2 = tree_flatten(in_axes)
---> 19     if in_tree != in_tree2: raise TypeError
     20     f_flat, out_tree = flatten_fun(f, in_tree)
     21     outs_flat = vmap_flat(f_flat, in_axes_flat, *args_flat)

TypeError:

Actually, I was thinking that it would fail because there doesn't appear to be any transpose rule for reduce_sum, but it doesn't seem that Autodidax got that far. What I was actually trying to do was see how Autodidax formulated the transpose rule for sum, because if you support vmap + arbitrary dims to reduce on it gets pretty complicated.

Thanks for finding this! (And I'm glad you're looking at Autodidax!) I'll fix it.
But in the meantime maybe take a look at JAX's transpose rule for reduce_sum if you haven't already. It's basically just a call to broadcast. What complexity do you have in mind?

On the off chance it's useful, broadcast_in_dim can be implemented in a few lines of NumPy like this. We handled np.sum directly in the original Autograd this way with a helper.

The main problem with Autodidax here is just a bad error message. The assertion failure means that the in_axes specification doesn't match the provided argument tuple. In this case, it's because Autodidax's vmap doesn't have in_axis/out_axis tree prefix support, and so in_axes needs to be a tuple corresponding to the argument tuple. That is, if we pass in_axes=(0,) then the issue goes away. Note that all the other calls to vmap in the file pass an in_axes which is a tuple rather than an integer.
However, if we fix that it runs into a real bug!

After #9909 this works in Autodidax:
def simple(a):
  b = a
  t = a + b
  return t * b

def f(a):
  L0 = reduce_sum(simple(a))
  return L0

def g(a):
  dL0_da = vmap(grad(f), in_axes=(0,))(a)
  L1 = reduce_sum(dL0_da * dL0_da)
  return L1

print(grad(g)(np.random.normal((2,4))))

Autodidax doesn't have any tests though, so it probably has bugs.

Here's the transpose rule for reduce_sum in that commit.

Thanks a lot!


Gov Notify Templates - API Links to Production

Policy and Operational colleagues are reviewing and editing templates on Gov Notify to ensure all content is relevant and up to date. They also want Digital to move the templates used in automated processes (like IAs and Character) to a folder only the Digital Team can access as currently anyone can edit those templates.
The following needs to completed as a first step:

[ ] A List of all templates in Notify used by the platform and where they are located

@andrew-isaac Here is the list of all templates: https://docs.google.com/spreadsheets/d/1mjLJBPMXkaFFdhPw7QMtZQucfHAeCN9pW_tiip5SkB0/edit?usp=share_link


Feature: Comments

Be able to comment out a single line or block.
Examples
// Production
User
  Load Balancer
    Webserver
      Database

"""
Development Environment
"""
User
  Webserver
    Database

For me this would be useful for noting down extra details that come up during collabourative brainstorming sessions.
A future idea would be to optionally render the comment text in the SVG nearby the child node.
PS: Great tool!

@danielsnider Thanks for making this issue! I bet a lot of people would find the ability to make comments helpful.  I'm migrating all issues related to syntax-changes over to discussions so people can share their thoughts.
(For other people) Please 👍  the original post if you're also looking for this feature. It will help me prioritize! 🙏


[MM-32946][MM-40602] Ensure URL is valid before showing tooltip link, allow parsed URLs that aren't valid to open in browser

Summary
When I added tests for MattermostView, I introduced an issue where we force the URL to turn into a URL object.
This PR makes sure that whatever URL we create is valid before we do so.
Also added a fix to allow parsed, but technically invalid URIs to open in the browser.
Ticket Link
https://mattermost.atlassian.net/browse/MM-32946
https://mattermost.atlassian.net/browse/MM-40602
Closes https://github.com/mattermost/desktop/issues/1474
Allow parsed, but technically invalid URIs to open in the browser.

@jupenur Just looking for some quick input on allowing invalid URIs to open in browser.


Landing page update

Migrate the original "Get-started with Mixed Reality" file to new hub page.
Refer to https://dev.azure.com/ceapex/Engineering/_boards/board/t/Content Eng/Stories/?workitem=180578.

Docs Build status updates of commit 6bf7f60:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

mixed-reality-docs/TOC.md
:white_check_mark:Succeeded
View

mixed-reality-docs/design.md
:white_check_mark:Succeeded
View

mixed-reality-docs/development.md
:white_check_mark:Succeeded
View

mixed-reality-docs/index.md
:white_check_mark:Succeeded

mixed-reality-docs/index.yml
:white_check_mark:Succeeded
View

mixed-reality-docs/mixed-reality.md
:white_check_mark:Succeeded
View

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Include button to screenshot current frame

It would be great to include a screenshot button, which copies the current frame of the presentation into your clipboard, so you can for example paste it into your notes.

Here's how to do it in firefox:
https://github.com/TUM-Dev/gocast/assets/44805696/b3d3bc67-63c2-429f-a2b1-95f134106e12

Your OS already has this feature. Your browser probably as well. Any reason you can't use those?

Yes, I know, but that requires at least 4 clicks, an integrated button would decrease this action to 1 click


Tcs 66 gateway routing queries depending on the symbols/time periods being requested

No longer needed - updated branch already merged


Create Table Column API documentation

🧹 Tech Debt
We need to create a document that users should be directed to that detail the various features of the table columns. The spec documents, as they are, do not provide the most accessible, digestible information to quickly inform users what the existing capabilities are, and how they can be extended. We should do better.
Areas that could be captured include (but are not limited to):

The abstract API provided by the TableColumn base class, including but not limited to:

column-id -- its usages/purpose and validation associated with it
assigning an action menu slot to a column, how to respond to events on it

Do some of the action menu docs belong on the table itself since that is where the menu is slotted?

The mixin pattern we leverage to provide column sizing behaviors/APIs

Sort API

For column writers: operandDataRecordFieldName and sortOperation

[x] Column ordering

[x] Header content

[x] Sorting: sort-direction and sort-index

[x] Column id

[ ] Column sizing

[ ] Action menus (see above)

[x] The TableColumnText class

FYI @atmgrifter00 @msmithNI the infrastructure for documenting column APIs in storybook has now been submitted. I'm not currently planning to pick up the remaining tasks in this issue (column sizing or moving the action menu docs to a column story) but you should be unblocked if you'd like to do so.


Slug Not Saving with  SluggableObserver::SAVED

Hi There,
I added the SluggableObserver observer to my model to save slug after a model has been created as I would like to include the primary key (id) in the slug. Without the observer, my slug saved fine but as soon as I added the sluggable observer and ID to the source, it no longer saves.
   public function sluggable(): array
  {
       return [
      'slug' => [
        'source' => ['id', 'name'],
      ]
    ];
  }

    public function sluggableEvent(): string
  {

    return SluggableObserver::SAVED;
  }

Am I missing something?

Thanks for your reply. I'm using Laravel Version 8.35.1


Resolve imports from top of source tree, remove many relative imports

This should make moving code around easier.

@stevekuznetsov I want to give you a heads up on this one and make sure you're cool with it. this image shows the differences:

references in the current directory remain relative, so it's easy to move around a directory of files as a package
references outside the current directory are changed to be rooted at the top of the source tree

I'll be honest I just let the IDE handle these (and they get auto-collapsed in my editor even) so let's go with whatever you think is best.


How to define \symrm in Mathjax 2.7

Hi guys, I want to write bold but non-Italic Greek letters in bookdown html (rendered by Mathjax 2.7). One solution may be the commond \symrm, but it is not supported in Mathjax 2.7. And new version of Mathjax is not well supported in bookdown, see this issue.
So my problem is how to define \symrm in Mathjax 2.7.
Thanks!

The default MathJax-TeX fonts in v2 don't include upright versions of the Greek letters, bold or otherwise, so in order to accomplish this, you would need to use one of the other fonts.   The STIX font does include the needed characters, so you could use that.  Because the v2 CommonHTML output only supports MathJax-TeX, you would need to use either the older HTML-CSS output, or the SVG output renderer.
Here is a MathJax configuration that defines a version of \symbf that could be used to get bold upright Greek letters:
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
  "HTML-CSS": {
    fonts: ["STIX-Web"]
  },
  SVG: {
    font: "STIX-Web"
  },
  TeX: {Augment: {
    Definitions: {macros: {symbf: 'Symbf'}},
    Parse: {prototype: {
      csMathchar0mi: function (name, mchar) {
        var MML = MathJax.ElementJax.mml;
        var def = {};
        if (Array.isArray(mchar)) {def = mchar[1]; mchar = mchar[0]}
        this.Push(this.mmlToken(MML.mi(MML.entity("#x"+mchar)).With(def)));
      },
      Symbf: function (name) {
        var MML = MathJax.ElementJax.mml;
        var math = this.ParseArg(name);
        this.Push(MML.mstyle(math).With({mathvariant: "bold"}));
      }
    }}
  }}
});
</script>
<script src="https://cdn.jsdelivr.net/npm/mathjax@2.7.9/unpacked/MathJax.js?config=TeX-AMS_SVG"></script>

The csMathchar0mi function is overriden to not include an explicit mathvariant="italic" that is in the original version, so that that mstyle element's mathvariant will be applied.  This shouldn't hurt anything else, I think.

Thanks! I am completely clueless about Mathjax, HTML, and JavaScript. But your codes run for me!
But how to set the default output as HTML-CSS so that I don't have to right-click on the formula and select it.
Really appreciated.

The example I have above uses SVG output, which should work for you.  If you want to use HTML-CSS, then you have to change TeX-AMS_SVG to TeX-AMS_HTML.
It looks like bookdown has TeX-MML-AM_CHTML as the default in some of its templates (e.g., here, so you have to edit that to be TeX-AMS_HTML.  It also looks like there may be some sort of mathjax variable that can be set to the URL of the MathJax you want to load.  If you can change that value to
https://cdn.jsdelivr.net/npm/mathjax@2.7.9/unpacked/MathJax.js?config=TeX-AMS_HTML

that should also do it.


Additional Heat Map: Last year

Is your feature request related to a problem? Please describe.
No problem. Just completing the already existing analytics.
Describe the solution you'd like
A heat map showing the number of emails for the last year per day (meaning the previous 365 days from today), similar to the contributions heat map of GitHub. Vertical axis is the day of week (7 values), horizontal axis is the week number (52-53 values).
Describe alternatives you've considered
A possible alternative is just showing number of emails for the last month, but for the last year would give a much better overview.
Additional context
None.

I would like to complement this by asking if it were possible to have 'Sunday' at the beginning of the week? Appreciating that this is not necessarily the standard for everyone, across the world.

@ianzucker1 Good point. This also relates to the existing heatmaps (temporal distributions), currently starting on monday. Please open a feature request for this and we'll see how we can make this possible (I think we need some kinde of general add-on options here).


TypeError: Cannot read property 'string' of undefined

Reproduction steps:
1-) create-react-app empty-dir
2-) npm install react-hextech
3-) in app.js to following:
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
import { Button } from "react-hextech";

class App extends Component {
  render() {
    return (
      <div className="App">
        <Button/>
      </div>
    );
  }
}

export default App;

4-) npm start , you should see the error: TypeError: Cannot read property 'string' of undefined

`

no fix yet?

working on it

I think the issue is due to the React version I'm using for this lib. I'll update to React 16 when I can.

@Talha-T try version 2.0.0 from NPM

I will try in the morning - thanks

import React from "react";
const Hex = require("react-hextech");

export default () => (<Hex.Button>Test!</Hex.Button>);

result:

I can't use {} imports because intellisense doesn't suggest anything.

try importing the styles
import 'react-hextech/lib/styles.css'

fixed


repr in session

issue #23 __rerp__()
copy_session = repr(session)
print(eval(copy_session) == session)
# returns True

This issue was migrated from an old repository: https://github.com/CiscoDevNet/catalystwan/pull/37


ignore host network pods in all endpoints

What type of PR is this?

bug
Which issue does this PR fix:
We shouldn't populate pods in host network to PolicyEndpoint's endpoints.
What does this PR do / Why do we need it:
The endpoints from host network pods in ingress/egress/podselector can become redundant data in nodes and CRs.
If an issue # is not available please add steps to reproduce and the controller logs:
Testing done on this change:

Tested in local dev cluster and cyclonus tests were passed.
Automation added to e2e:

Will this PR introduce any new dependencies?:

Will this break upgrades or downgrades. Has updating a running cluster been tested?:
Does this PR introduce any user-facing change?:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Let's add a simple test result with host networking pods matching ingress, egress and pod selector endpoint selectors..

Let's add a simple test result with host networking pods matching ingress, egress and pod selector endpoint selectors..

The results doc has been shared offline. Please let me know if we want to add the result here as well.


Add PowerShell to Ubuntu Repositories

Right now to install it on  ubuntu, you have to download the .deb and then use dpkg -i. This is what apt-get is meant to not make you do. Can you guys make your own PPA and put it on that?

Why would anyone down-vote this.  I should be able to apt-get powershell

This might be solved. https://github.com/PowerShell/PowerShell/blob/master/docs/installation/linux.md

As @dragon788 pointed out, you can apt-get (and yum) install PSCore6 today via the Microsoft repository, getting into the official Ubuntu repository will be more difficult until after 6.0.0 is out I would believe

Given the fact that we support packages.microsoft.com, and that Ubuntu is highly unlikely to take our packages until we've reached a stable state, I'm moving this out to 6.1.0 (meaning "post-6.0.0").

@SteveL-MSFT If getting into the official repos is tough, what about a PPA?

@chalbersma what is PPA?

PPA are a semi-sanctioned way to create & host packages for ubuntu. Generally it's used to provide newer or development packages straight from maintainers or to provide packages that aren't in the ubuntu base repos.

It should also be possible to just create a regular repository at Bintray
or other repository hosting services, as this does not necessarily have to
be a Launchpad PPA (which I believe requires using Bazaar to host the code
being compiled).
 Generally it's used to provide newer or
development packages straight from maintainers or to provide packages that
aren't in the ubuntu base repos.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/PowerShell/PowerShell/issues/1905#issuecomment-308279984,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAdxXs9GSXklisG7nizooJWaSrKKBNj5ks5sDx_WgaJpZM4Jn3IS
.

We've already been publishing to the official Microsoft Linux repository packages.microsoft.com so it's not clear to me the value of publishing to another repository other than the distro's official one?

@SteveL-MSFT It gives a standard way to publish and subscribe to the repos and it will help you build repositories for all Ubuntu Releases (like 17.04).

@chalbersma got it, this is something we can look into, but I don't think it's something that's high priority for the 6.0.0 release, leaving as 6.1.0 work item

@SteveL-MSFT Fair enough. Thanks for considering it.

Although I prefer to use Docker containers to obtain PowerShell, I agree that this would be a valuable add to the official Ubuntu repositories.

Now that PSCore6 is published as a snap and Ubuntu 18.10 install includes option to install snaps as part of install (and PSCore6 does show up there), I consider this closed.


External ecr-credential-provider not registered on kubelet in v20230322

What happened:
Latest AMI version build compatibility to the --image-credential-provider-config, in the file install-worker.sh the file is sed based on the presence of a specific tag (--cloud-provider aws)
This line was changed, and the current install-worker.sh is not able to enable that plugin anymore. (or configure kubelet)
What you expected to happen:
We expected that plugin to be enabled by default, or to be notified that this was changed and find a solution to resolve this.
How to reproduce it (as minimally and precisely as possible):
Install latest version of EKS AMI, the  configuration injected at this line are missing:
https://github.com/awslabs/amazon-eks-ami/blob/v20230322/scripts/install-worker.sh#L167
Anything else we need to know?:
Environment:

AWS Region: eu-west-1
Instance Type(s): AMD64
EKS Platform version (use aws eks describe-cluster --name <name> --query cluster.platformVersion):
Kubernetes version (use aws eks describe-cluster --name <name> --query cluster.version): 1.22+ version are impacted
AMI Version: AMI Release v20230322
Kernel (e.g. uname -a): 5.10
Release information (run cat /etc/eks/release on a node):

One way to mitigate this would be to pass these flags with --kubelet-extra-args/KUBELET_EXTRA_ARGS during node bootstrap:
--image-credential-provider-config /etc/eks/ecr-credential-provider/ecr-credential-provider-config --image-credential-provider-bin-dir /etc/eks/ecr-credential-provider

Or, if you use a custom launch template but not a custom AMI, you can do something like this prior to the bootstrap:
  IMAGE_CREDENTIAL_PROVIDER_FLAGS='\\\n    --image-credential-provider-config /etc/eks/ecr-credential-provider/ecr-credential-provider-config \\\n   --image-credential-provider-bin-dir /etc/eks/ecr-credential-provider'
  sudo sed -i s,"KUBELET_EXTRA_ARGS","KUBELET_EXTRA_ARGS $IMAGE_CREDENTIAL_PROVIDER_FLAGS", /etc/eks/containerd/kubelet-containerd.service

I'll put up a fix momentarily. Apologies for the hassle, the existing sed is very fragile.

Reopening until an AMI release is available with the fix in #1240.

Sorry for the confusion -- I closed this issue inadvertently. A fix has been merged here, but the ensuing AMI release is not yet available. It's currently working its way through our release pipeline, and we expect it to be available in all regions within 24 hours.

Thanks,
no worries, we will keep a close 👁 on this.
Thanks again for the swift feedback.
Is there any plan to decommission this in the future? Or are we safe for some time?

Hi, with the workaround https://github.com/awslabs/amazon-eks-ami/issues/1239#issuecomment-1490658274 included I can see that the kubelet flags are now set and the credentials provider binary and configuration are in the correct place however when I hop onto a node in my cluster and run "ctr image pull xxxx.dkr.ecr.etc.etc" for a private image in another AWS account it will not allow me to pull.  Containerd will only authenticate if the repository is located within the same account.
All the required IAM is in place, if I install docker on the node and run a login I can pull the images cross account.  Is there something I am missing that we need to configure to allow containerd to utilise the credentials-provider?
Thanks

Hello @cartermckinnon,
Do you have an ETA on the release of the new AMI?
Thanks,
Gil

At the present time (eu-west-1, using Karpenter) we are having to use the userdata workaround detailed above

Sorry for the delay -- given the limited impact of this change, and the possible mitigations, we decided to roll this fix out along with our initial 1.26 release. That build is working its way through our release process now, and will be available in all regions within the next few days.


run latest black on appconfiguration

Description
Please add an informative description that covers that changes made by the pull request and link all relevant issues.
If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.
All SDK Contribution checklist:

[ ] The pull request does not introduce [breaking changes]
[ ] CHANGELOG is updated for new features, bug fixes or other significant changes.
[ ] I have read the contribution guidelines.

General Guidelines and Best Practices

[ ] Title of the pull request is clear and informative.
[ ] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

[ ] Pull request includes test coverage for the included changes.

API change check
API changes are not detected in this pull request.

Passes black, but failing pylint for azure-appconfiguration-provider. The latter is tracked by https://github.com/Azure/azure-sdk-for-python/issues/34147

/check-enforcer override


Submit ticket to whitelist all remaining CP Receivers in Staging

Problem statement
In order to "test in staging" with a STLT, their staging environment needs to be whitelisted. Due to recent slowdowns in the onboarding process due to whitelisting issues, it may remove potential blockers if we can get all existing receivers Staging environments re-whitelisted before we start onboarding them.
What you need to know

Previous audit of existing staging connection tests
Only receivers using SFTP need to be whitelisted
First test is to check you can reach the server locally to find out if the STLT needs to whitelist us.
Run sftp <hostname> on your terminal to make sure STLT doesn't have a firewall. If unable to reach they need to whitelist us.
Check connection by going into Receiver settings in ReportStream Admin UI.
If it works locally, find out if we need to whitelist the SFTP server in staging. Login as SU to azure, start an SSH session on the pdhstaging-function app, and run this command sftp <hostname>.
If unable to reach the server the server needs to be whitelisted

Acceptance criteria

[x] Document which SFTP servers need to whitelist RS
[x] Document which SFTP servers CDC needs to whitelist
[x] Submit ticket to DevOops with servers CDC needs to whitelist

@victor-chaparro Can you reference DevOps ticket here

DevOps ticket: https://app.zenhub.com/workspaces/prime-devops-606cb208a8c112000fd48349/issues/gh/cdcgov/prime-devops/123


ListModules Unicode support

MODULEENTRY32W's module_entry.szExePath does not seem to return
a valid Unicode string. Use GetModuleFileNameExW explicitly to retrieve
valid Unicode module names.

Closing in favor of https://github.com/google/orbit/pull/3847 wich adds UTF-8 support to "A" variants of Windows API


Delete triggering_events.md

Removing file, Redirect has been submitted: https://github.com/sendgrid/docs/pull/2673

@Zaftula it looks like the build failed because this file was referenced from Glossary/index.html and /Glossary/subjects.html, so if we remove it, it will cause broken links in both of those files. Can you please update those files and remove the links?


Some repos don't show up under Github usage for some packages

https://twitter.com/bchavez/status/1151651956445700096?s=21

https://twitter.com/bchavez/status/1151653672234835968
Same with OfficeDev/TrainingContent.
575 stars:
https://github.com/OfficeDev/TrainingContent
Dependency on Bogus:
https://github.com/OfficeDev/TrainingContent/search?q=Bogus&unscoped_q=Bogus
Not on the NuGet list:

Bogus' NuGet page:
https://www.nuget.org/packages/Bogus/

@bchavez  The https://github.com/OfficeDev/TrainingContent repository is listed as a Javascript project by GitHub and we currently only index C# projects

@mogah what about https://github.com/dsuryd/dotNetify

@mogah what about https://github.com/dsuryd/dotNetify

According to the GitHub API, it is a JavaScript project as well: https://api.github.com/repos/dsuryd/dotNetify

Something should change because the following false statement is being made on NuGet's website that reads as follows:

Showing the top 10 GitHub repositories that depend on Bogus:

The statement is clearly false given the example GitHub repositories above. The whole point of this new feature is to establish trust, yes?
IMHO, we should fix the query to match the statement or the other way around.

It might be that GitHub dependency detection might need to improve a bit,
I.e. Cake.Core, a quick search

csproj - 480+ hits
package.config 350 hits

But GitHub Usage on NuGet showing 4 GitHub repositories that depend on Cake.Core.
https://www.nuget.org/packages/Cake.Core/#show-github-usage

@devlead - what repos, which have over 100 stars, categorized as c# by GitHub, and references Cake.Core not show up?

@karann-msft ah, that I missed probably not that many. Then probably all's well.


How to create a new map?

Hi, thank you for your great work about swarm simulator. I want to create a map for my lab. But I don't know how to do it with swarm simulator. Could you give me some advice. Thanks.

This simulator receives the Octomap bt file as a map input.
There are various ways to generate Octomap, and I recommend using an external package such as octomap_server (http://wiki.ros.org/octomap_server)
First, publish the desired map as a ROS pointcloud2 message.
If you can't publish the map as a pointcloud2 message, you may need to write a bridge node for message conversion.
Second, use the octomap_saver node to save the pointcloud2 as an Octomap bt file (See 2.4 in the above link)

This simulator receives the Octomap bt file as a map input. There are various ways to generate Octomap, and I recommend using an external package such as octomap_server (http://wiki.ros.org/octomap_server) First, publish the desired map as a ROS pointcloud2 message. If you can't publish the map as a pointcloud2 message, you may need to write a bridge node for message conversion. Second, use the octomap_saver node to save the pointcloud2 as an Octomap bt file (See 2.4 in the above link)

Thank you so much for your reply. I will try it.


Data is not populated in dynamoDB

I have deployed the application.. and ran the python code its fetching data from twitter.. i could see the data in console. But the values are not populated in DynamoDB. Table is empty now

this is the error in lambda funcation.
Kinesis: lambda-stream-processing-EventStream-CVSLJKT7HYWT
arn:aws:kinesis:us-east-1:666224412884:stream/lambda-stream-processing-EventStream-CVSLJKT7HYWT
Batch size: 25Last result: PROBLEM: Function call failed

@KrishnaAnanhti If you had deployed it using the default parameters (s3 bucket key for codeUri), at some point the code deployed there weren't in sync with the latest in the repo. we fixed the issue please try again
If you had not, have a look at the cloudwatch logs of the lambda to see what the actual error is.


Syntax error in hdf5.mak?

I don't know Make at all, but I was unable to submit a job until changing
ifdef ZLIB_VER
    HDF5_ZLIB_DEP = --with-zlib=$(PREFIX)
endif

to
ifdef ZLIB_VER
HDF5_ZLIB_DEP = --with-zlib=$(PREFIX)
endif

(note the indents). If this seems correct, I can open a PR with the small fix.

good catch, should be fixed in #12


Solved 'Find the square of a number'

Created PR to issue referencing https://github.com/edu-python-course/problem-sets/issues/69

I have changed the base branch to devel.
We are following GitFlow approach within this project.
master branch contains released features only, and the devel is used to accumulate changes while development.

Hey @shorodilov, I have changed the import statement accordingly. Can you please let me know what other changes I need to make? Thanks in advance!

Hey @shorodilov, I have changed the import statement accordingly. Can you please let me know what other changes I need to make? Thanks in advance!

Thanks a lot for your work.
It seems tests are keeping fail.
I will review this tomorrow morning (EEST) and come back here asap.


<Forza Horizon 4>

Game Title
Forza Horizon 4
Game Website
https://forzamotorsport.net/en-us/games/fh4
Anti-Cheat Software
Other
Status of the Anti-Cheat
❔ Unconfirmed
Proof of Mention
N/A

this game's multiplayer works fine...?


2.1.0

Checklist

[x] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[x] Reset the build number to 0 (if the version changed)
[x] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe/recipe.yaml) and found it was in an excellent condition.

Blocked by https://github.com/conda-forge/conda-smithy/pull/2148 and https://github.com/conda-forge/conda-smithy/issues/2145


Optionally ignore deep links

What kind of change does this PR introduce?
This PR adds the ability to prevent supabase_flutter from handing deep links (which affords the opportunity for a user to fully handle deep linking on their own). This is done by adding a parameter ignoreDeepLinks to  theSupabase.initialize method.
This PR is another attempt to address #541.
What is the current behavior?
Currently, supabase_flutter handles deep linking and there is no way for a user of supabase_flutter to opt out. A good summary of the issue can be found here: #541.
A different PR (#605) was made to tackle that issue, but it doesn't seem like it will be accepted. #605 was attempting to expose any deep links that supabase_flutter didn't handle to the user. However, the following was said in response to #605:

Instead of fixing this in supabase-flutter, I would instead fix that in app_links so that they create only one stream and broadcast that.

This PR in contrast, is simply allowing for an escape hatch to stop supabase_flutter from handing any deep links, so a user can fully handle them on their own.
What is the new behavior?
When ignoreDeepLinks is true, then supabase_flutter doesn't handle deep links at all.

I like this direction since it allows the supabase_flutter dependency to be less intrusive by default. However, I also like that supabase_flutter has the ability to handle these links. Perhaps in addition to the ignore arg, we could also add a method to the library which can act as a callback for handling a specific deep link.
For example, I use the auto_route package to catch my deep links. This is useful because it puts the links in the same place as routing is happening and I can benefit from context, guards, and other features that come for free that way. Right now, I have to use the pure-dart version of supabase in order to allow auto_route to function. This means I need to handle session persistence manually. What if I could just turn off supabase's deep link handling and then add to auto_route's handler like so:
            routerConfig: _appRouter.config(
              deepLinkBuilder: (deepLink) {
                if (deepLink.path.contains('special_route')) {
                  // Go somewhere special
                } else {
                  final result = await Supabase.instance.client.handleDeepLink(deepLink);
                  if (result.handled) return const DeepLink([SupaRoute()]);
                }

                return const DeepLink([HomeRoute()]);
              },
            ),

This should hopefully allow for the best of both worlds without requiring a change to app_links which may not even be possible.

@point-source
You can call the getSessionFromUrl method to get the session from deep links.
routerConfig: _appRouter.config(
  deepLinkBuilder: (deepLink) {
    if (deepLink.path.contains('special_route')) {
      // Go somewhere special
    } else {
      await Supabase.instance.client.auth.getSessionFromUrl(deepLink);
    }

    return const DeepLink([HomeRoute()]);
  },
),

Closing in favor of #848


Change ETS queue table permissions to protected

NOTE: opened to replace #781
Sometimes realtime replication stops working, the reason why it has stopped is unclear, diagnosis is further complicated by the fact that the ETS queue table (buffer of objects due to be replicated to the sink) is private (can only be seen by the riak_repl2_rtq gen_server instance).
If it were possible to examine the contents of that table the support engineer could examine the queued objects and perhaps discover that there is a large object causing head of line blocking. At the moment the only option is to kill the process and let the supervisor restart it, destroying all useful information in the process. The diagnostic information is opaque and needlessly so.
The table doesn't need to be changed to public as it's probably undesirable to modify state outside the public API for this gen_server.
I propose that the permissions be changed to 'protected' in order to improve visibility.

Reviewed and approved @ #781.


Add Base.show for Simulation and Domain

This PR closes #76 .
An example of experiment configuration displayed on Julia REPL
julia> include("test/runtests.jl")
[ Info: Testing ClimaAtmos.Simulations...
[ Info: Bickley jet 2D plane test does not run for Float32.
Simulation set-up:
        model type:     ShallowWaterModel
        model vars:     (:h, :u, :c)

Domain set-up:
        Horizontal plane:       [-6.3, 6.3) × [-6.3, 6.3)
        horz elem:              (16, 16)
        poly order:             4

Timestepper set-up:
        method: SSPRK33
        dt:     0.040000
        tspan:  (0.000000, 1.000000)

@jiahe23 can you squash and rebase :)?

bors r+


Ensure adoptium-ca-certificates deb file is archived

The packaging job does not currently archive the ca-certificates .deb package. This PR resolves that.
Signed-off-by: Stewart X Addison<EMAIL_ADDRESS>

Supercedes https://github.com/adoptium/installer/pull/372 which was merged prematurely

I'm running one more test after resolving the new merge conflict. Hopefully won't be a problem but I'm not trusting these changes any more today ;-)

I'm running one more test after resolving the new merge conflict. Hopefully won't be a problem but I'm not trusting these changes any more today ;-)

I'm letting you merge, #notmyfault ;-)

I'm letting you merge, #notmyfault ;-)

Haha - you know that's my preference anyway ;-)

Temurin 8 redhat github check failed but I've seen intermittent failures on those, so I'm going to force a re-run of the checks.

Temurin 8 redhat github check failed but I've seen intermittent failures on those, so I'm going to force a re-run of the checks.

Those failures (Also on 17 redhat) seem to be happening for other PRs so I'm not going to let that block merging of this, but they will need to be addressed - will raise as a separate issue.


Request: built-in React components for modal settings

It would be great to have React components for modal settings. At the moment, I can add setting rows to a modal like such:
import { Setting } from 'obsidian'
import { useEffect, useRef } from 'react'

const ModalComponent = () => {
  const settingRef1 = useRef<HTMLDivElement>(null)
  const settingRef2 = useRef<HTMLDivElement>(null)

  useEffect(() => {
    const settingContainer1 = settingRef1.current
    const settingContainer2 = settingRef2.current
    if (
      !settingContainer1 ||
      !settingContainer2
    ) return () => { }

    settingContainer1.empty()
    settingContainer2.empty()

    new Setting(settingContainer1)
      .setName('My Setting')
      .setDesc('My Description.')
      .addText(text => {
        text
          .setValue('My Text')
          .onChange(newText => console.log(newText))
      })

    new Setting(settingContainer2)
      .addButton(button => {
        button
          .setButtonText('My Button')
          .onClick(() => console.log('Button pressed.'))
      })
  }, [])

  return (
    <>

    </>
  )
}

But it gets a bit messy. It mixes up multiple DOM logics which makes me wonder if it could cause unintended side effects with React. It would be great if there were built-in React components for this purpose, and allow us to write code like this:
const ModalComponent = () => {
  return (
    <>
      <Setting
        name='My Setting'
        desc='My Description'>
          <Text onChange={newText => console.log(newText)}>My Text</Text>
      </Setting>
      <Setting>
          <Button onClick={() => console.log('Button pressed')}>My Button</Button>
      </Setting>
    </>
  )
}

I attempted to create my own version of built-in React modal settings by copying classNames from the inspector. But it would be harder to replicate all the features and eventListeners, and to have it be future-proof. It would be amazing if there were built-in React components for this purpose!

Obsidian does not use React (or anything like it) internally, so it makes no sense for us to include React components in the API.


Place holder PR for honor reclaim policy blog

Place holder blog PR for https://github.com/kubernetes/enhancements/issues/2644

Instead of (in addition to) posting a blog, we may want to write some documentation on this feature.
xref: #32338

xref: https://github.com/kubernetes/website/pull/32338

@tengqm As there's already opened up PR by you, I think we should close this! Let me know your thoughts 🙂

@mehabhalodiya I was expecting "more" from this PR. The PR I committed only has limited information about the feature. Users may want to know more about it, such as the design motivation, how it works, how to use it, any caveats they need to know, so on and so forth. These warrant some docs to be created.
I'm not against a blog post. Considering that a blog post may decay soon because we the doc team don't have enough resource to keep them updated, I was suggesting some more "formal" documentation about this feature. It can be a few paragraphs, with and without an example, or a new page somewhere.

I'll mark this as WIP
/retitle [WIP] Add blog article about storage honor reclaim policy

@deepakkinni already opened a placeholder PR for blog here: https://github.com/kubernetes/website/pull/32453
I'm closing this one.


🪲 Upward warp skips panels in certain situations

Received a report from Oggy#9577 (via Discord) with the following:

So, if you place the Elevator on the 3x3x1 Block ( Point A )  from the Shape menu it will let you travel downwards ( Point B ) , but not upwards onto the elevator placed on the 3x3x1block.  ( Error message of No elevator on top floor found).
However, if placing another one above ( Point C ) the 3x3x1block it would let you travel from the very bottom to the very top and then back down onto the 3x3x1 block.
So all in all can travel from A to B, but not from B to A.
B to C to A would work again.

I tried but was unable to reproduce this issue.
Perhaps the reporter is running on an older version of Quantum Elevators?
🔗 https://youtu.be/XgrkbIvJrHc

Also could not reproduce with this...
🔗 https://youtu.be/1haLJPn8oPY
but after getting more info, I rotated the 3x3x1 block wall shape to lay it flat and was able to reproduce the issue.
📝 Expecting that I need to account for multidim block rotation in movement/calculation, which I was not doing before.


enhance: add allowlists support

What would you like to be added?
/kind enhancement
Context
Firewall bouncer is responsible for creating firewall rules (iptables, nftables or pf).
Issue
It is currently impossible to add an allowlist to prevent some IP addresses to be blocked by firewall rules.
It is also impossible to specify a TCP/UDP port on which we don't want to block any connection.
Proposition
Add support for 2 new configuration parameters:

ignore_addresses: array of IP addresses or network ranges to be ignored by crowdsec firewall rules
ignore_ports: array of TCP/UDP ports ports to be ignore by crowdsec firewall rules

For iptables, the bounce could create rules in CROWDSEC_CHAIN before its blocking rule, with an action RETURN if source IP address match an ip from ignore_addresses or if destination port match a port in ignore_ports.
Why is this needed?
When an IP address is present in Crowdsec CTI, it is currently impossible to not block it.
If we want to not use crowdsec for some traffic, we cannot change the firewall rules to apply to some specific ports only or to exclude some ports.
Crowdsec bouncer recreate its iptables CHAIN at every restart, so we cannot properly insert exceptions (maybe we could add a script launched by systemd after crowdsec start, but it's very hacky).
A workarround would be to use ipset mode only and create firewall rules manually. However, crowdsec creates multiple ipsets and its not possible in advance to know how many there will be.

If the address is classified as malicious and is given out via a blocklist then you can specify a CAPI whitelist:

Thank you for providing this as I completely missed it.
If I may, I would still argue that having a central place for whitelist would be a better UX rather than defining same IP address in multiple locations (both in the enricher and in the central API).

Yes this is true, if the IP is malicious or in the blocklist take away from the above whitelisting issue do you want them to be able to contact any ports?

We deploy crowdsec on front load balancers that receive traffic for multiple services. In our use case we want to filter everything that is HTTP/HTTPS but not SMTP as we rely on other mechanisms to block IP addresses, like RBL and other stuff. Also we want logging to be visible in our SMTP server when an IP is blocked. That's why we would like to exclude port TCP/25 from the ports being controlled by crowdsec.

If it more you never want to block these ports then you can add a postrun rule to the systemd unit of the firewall remediation (yes it is hacky workaround) EG

We'll probably do that, but I opened this enhancement request to provide a valid use-case where change in product would be nice.

If I may, I would still argue that having a central place for whitelist would be a better UX rather than defining same IP address in multiple locations (both in the enricher and in the central API).

We are working on this: we are going to add a dedicated allowlist feature in LAPI that will handle both content from CAPI (community blocklist and 3rd party blocklists) and local decisions, so you won't have to handle allowlists in a lot of different places.

We deploy crowdsec on front load balancers that receive traffic for multiple services. In our use case we want to filter everything that is HTTP/HTTPS but not SMTP as we rely on other mechanisms to block IP addresses, like RBL and other stuff. Also we want logging to be visible in our SMTP server when an IP is blocked. That's why we would like to exclude port TCP/25 from the ports being controlled by crowdsec.

For this situation, I'd suggest to use the ipset mode (if using iptables) or set-only mode (if using nftables) (see documentation here).
With this mode, the bouncer will only manage the content of the set itself (ie, a single set that you will have to create beforehand), and you will be able to create custom rules that will make use of it (eg, -m set --match-set my_crowdsec_set -p tcp -m tcp -m multiport --dports 80,443 -j DROP)

We are working on this: we are going to add a dedicated allowlist feature in LAPI that will handle both content from CAPI (community blocklist and 3rd party blocklists) and local decisions, so you won't have to handle allowlists in a lot of different places.

Good to know. I guess that answers 50% of my request, which is already good.

For this situation, I'd suggest to use the ipset mode (if using iptables) or set-only mode (if using nftables) (see documentation here).

That's true. We initially were afraid of that because we observed a change in recent crowdsec release where it created multiple ipset as all IP addresses could not fit in 1 single. And we thought we would have to identify how many ipset were used by crowdsec first. But after more tests, it seems that only 1 ipset is used when we're in ipset mode.
So, instead of using the systemd ExecStartPost, we will instead manage rules using puppet or ansible.

We initially were afraid of that because we observed a change in recent crowdsec release where it created multiple ipset as all IP addresses could not fit in 1 single

This change was made in order to add support for usage metrics (and here): as we need to track dropped packets or bytes per decision origin, we have to create multiple sets, it's not related to the maximum size of a set.
This change was not really documented, as we consider the way we manage the rules in managed mode to be an internal implementation detail (and we don't want people to rely on the chains/rules/sets we may or may not create), but we should probably at least mention it in the documentation.


Lookup, Search and FlowField on Permission / (Aggregated) Permission Set table

Hi,
I am using the latest docker finus preview image and am currently migrating our V1 extension to V2. So far so good.
In our extension (which is permission related) we use permission sets to link certain functionality to users. Therefore we have a simple lookup to the table Aggregated Permission Set and a flowfield to retrieve the name. Both is not allowed since these tables cannot be used for extension development. Furthermore we need to be able to perform search and find actions in the Permission table. Here we have the same issue.
I have read that we should use the Tenant Permission and the Tenant Permission Set table, however they do, AFAIK, not contain all the necessary information for our extension. For both the lookup and the search actions it is incomplete. Therefore this is not acceptable for us. I know about the target: "Internal" setting in app.json which allows me to test it locally, however I cannot build the extension without it and I suppose I therefore cannot submit the .app file for AppSource.
Is there a workaround for this? We really need to be able to set filters on the Permission table on e.g. Object Type and Object ID. We do not need to alter the tables, we only do lookups. I've looked around here but cannot find a solution yet.
Any advice is appreciated, thanks.
Kind regards,
Rogier

The tables Aggregated Permission Set, Permission Set, Permission, Tenant Permission and Tenant Permission Set have been all made available for Extension development.
Hopefully this unblocks your scenario.


UVI Request

--- UVI JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from  to before v5.10.51",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c5e4a10d7bd5d4f419d8b9705dff60cf69b302a1"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "c5e4a10d7bd5d4f419d8b9705dff60cf69b302a1",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "wl1251: Fix possible buffer overflow in wl1251_cmd_scan\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v5.10.51 by commit c5e4a10d7bd5d4f419d8b9705dff60cf69b302a1. For more details please see the references link."
}
--- UVI JSON ---

This issue has been assigned UVI-2021-1001296


Updated the docker script and Dockerfile. Seems to work better now

Updated docker scripts

Coverage remained the same at 99.814% when pulling 41ab11b2b347debac137b0a528937c327fd42f48 on basvodde:master into a0fa279453bf9156ee8df0bb25e33bc72615c798 on cpputest:master.


Support usernames

Description
This PR updates the user model and endpoints to handle unique usernames. It also makes usernames required on user model creation and removes the names field as required.

No longer wish to support usernames as human-readable names are a better experience for the product at the moment.


 This reenables the ability to cancel/stop a compose.

This is dependent on https://github.com/osbuild/osbuild-composer/pull/757 landing first

👍 I reviewed the UI and everything looks as expected. Thanks for opening this!

@jgiardino I manually tested this and it seems good to me.


Possible errors in Ego4d visualizations

I am extracting the frames (PNR, pre, and post) for the State change object detection validation set. I noticed that in the Ego4d visualizer, some videos begin at frame 0 and some begin at frame 1. May I confirm that for the frame number in the annotations, they all assume that videos start from frame 0? For example, the pnr frame at frame 5 is essentially the 6th frame of the video? I believe that the videos in the visualizations that start with frame 1 has a off by one frame error in the visualization. The bounding box seems to be tighter if applied to the next frame. Thanks for your time and just wanted to confirm if this is really the case!!

This frame alignment is a known issue - this will be resolved shortly. The reason is due to the start time of the video. If you could send your example along to confirm this that would be great.


Simplify contentview logic

This PR unifies the (1) "oh the contentview failed let's log an exception and just do raw mode" and (2) "let's remove the content decoding" logic we have for mitmproxy, mitmdump and (soon) mitmweb.

@cle1000: Can you adjust for this in the contentviews PR?


[Browser Bookmarks] Add Vivaldi support

Extension
https://www.raycast.com/raycast/browser-bookmarks
Description
Please add Vivaldi browser support
Who will benefit from this feature?
All Vivaldi users
Anything else?
No response

Thanks for the feature request. Would you like to work on it? I can provide some guidance on how to contribute to this extension so that you can open a pull request. You can contact me here or in the Slack community if you need further help.


Android: requestOneTimePayment appears to not be called

Hello!
So I followed everything in the ReadMe. I verified everything listed in MainApplication.java, settings.gradle & build.gradle.  I ran the command to link the library. Everything works as expected on iOS. Yet, when I try it on Android, it seems to keep on loading.
Here's how I'm using it:
getPaypal = async () => {
  try {
    this.setState({ isLoading: true });

    // Get Token
    const tokenResponse = await axios.get(`${API_GOES_HERE}/client_token`);
    const { client_token: token } = tokenResponse.data;

    console.log('Client Token', token);

    // Request Payment with Token
    const { nonce } = await requestOneTimePayment(token, {
      amount: '250', // required
      // any PayPal supported currency (see here: https://developer.paypal.com/docs/integration/direct/rest/currency-codes/#paypal-account-payments)
      currency: 'USD',
      // any PayPal supported locale (see here: https://braintree.github.io/braintree_ios/Classes/BTPayPalRequest.html#/c:objc(cs)BTPayPalRequest(py)localeCode)
      localeCode: 'en_US',
      shippingAddressRequired: false,
      userAction: 'commit', // display 'Pay Now' on the PayPal review page
      // one of 'authorize', 'sale', 'order'. defaults to 'authorize'. see details here: https://developer.paypal.com/docs/api/payments/v1/#payment-create-request-body
      intent: 'authorize',
    });

    console.log('Payment Nonce', nonce);

    // Create Charge
    const payload = { nonce, amount: '250' };
    const headers = { Accept: 'application/json', 'Content-Type': 'application/json' };
    const chargeResponse = await axios.post(`${API_GOES_HERE}/charge`, payload, { headers });

    console.log('Charge Response', JSON.stringify(chargeResponse.data, null, 2));

    this.setState({ paymentConfirm: 'approved' });
  } catch (error) {
    Alert.alert('Whoops! Something went wrong. Please retrace your steps and try again');
    console.log(error);
  } finally {
    this.setState({ isLoading: false });
  }
};

The token shows up in the console log.
isLoading stays true, "Payment Nonce" never gets console logged, so I'm assuming that requestOneTimePayment is never finishing up.
Is there something I could be missing or any other recommendations?
Thanks!

hey. your code seems fine tbh.. which version of braintree sdk are you using on android (we currently are using 2.17.0)? also, which version of android are you testing this on?

hey @riso !
for braintree we're using 2.17.0 so
implementation "com.braintreepayments.api:braintree:2.17.0"
i'm testing on my personal device, so Pixel 3a XL, Android Version 9.
we're also using react-native 0.59.8 and i see in your package.json, your react native dependency is listed as 0.41.2. not sure if that makes a difference but i feel like it's worth mentioning.
so i thought maybe i should update braintree. so i tried to update it to version 3.1.0, which requires me to update the minSdkVersion in android/build.gradle. it's currently at 16 but it requires 21. updating that has been difficult since i'm limited on experience in android studio but not sure if that's the direction i should go in...

hmm yeah we're also on RN 0.59.9, and we just tested on Android 9 as well..

interesting! alright, the issue is probably elsewhere then. i'll keep digging but if you can think of anything else i'd appreciate the help.
thanks!

out of curiosity, could you try and use intent: 'sale' instead of authorize? seems to be the only thing that we do differently.
also, could you checked your merged manifest in android studio and see if you have a section that includes BraintreeBrowserSwitchActivity and inside that you should have a <data> element with your application id in it. There's some detailed instructions in this other issue https://github.com/smarkets/react-native-paypal/issues/14#issuecomment-493059370

@dres-cifuentes
I am also facing the exact same issue and I have checked my dependencies and all seems correct. Did you by any chance find a solution?

Hi @riso & @smubarak-ali , I did find a solution and it has to do with  BrainTreeBrowserSwitchActivity
In the AndroidManifest.xml file, we added this:
        <activity android:name="com.braintreepayments.api.BraintreeBrowserSwitchActivity"
            android:launchMode="singleTask">
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
                <data android:scheme="${applicationId}.braintree" />
            </intent-filter>
        </activity>

and it worked. sorry about the last response, hope this helps!

Hey, sorry for commenting on this closed issue but I happen to get the same scenario and none of the suggestions I found on the repo helped.
I have checked my merged manifest and it looks like this:

Also tried adding to AndroidManifest.xml as mentioned by @dres-cifuentes , but no luck.
Tried intent: 'sale' and other intents, but didn't work either.
To test if the library is linked, if I pass an invalid token I get Error: Tokenization Key or client token was invalid. However when I try with a valid token (for instance the one from Braintree docs) I don't get any error, but the PayPal screen won't open.
Any help is appreciated
thanks!

Hello. I have same issue. I was checking android studio logcat while opening requestOneTimePayment.
W/ActivityThread: handleWindowVisibility: no activity for token android.os.BinderProxy@bd4eb07
onActivityCreated
Connecting to remote service
Activity resumed, time: 927795
have you any advice to check this log ?
Thank you.

@mrmello please keep in mind that:

Note: The scheme you define must use all lowercase letters. If your package contains underscores, the underscores should be removed when specifying the scheme in your Android Manifest.

from braintree android sdk page
https://developers.braintreepayments.com/guides/client-sdk/setup/android/v2

We have tested all solutions. But nothing helps. We have still the issue, that nothing happens when calling requestOneTimePayment.

@dres-cifuentes solution should be added in the documentation. As it's very necessary to add the redirection route after the payment is successful.

@ahsanihsan this already exists in the package AndroidManifest.xml.
https://github.com/smarkets/react-native-paypal/blob/9ee2024d3c557657f3f9860b8720f0167bdf602e/android/src/main/AndroidManifest.xml#L8
the example project doesn't need it to work.  Is this issue on particular version of android?

@ElliDy is your issue on ios or android?  Could you provide some logs?

@nzankich hi Bro , i'm facing the issue with android device. I 've tested many times but it still didn't work. The problem is the requestOneTimePayment or requestBillingAgreement only run 1 time and after that it does nothing. I try it in try catch but not catching anything. Any workaround guys ...

@DangKhoi1997 could you see if you can reproduce on the example app?


Make query processor more friendly for embedded usage

Currently, the query processor assumes input to be coming from deserialized JSON, therefore some query options such as limit and int-from are expected to be of type float64, which is awkward in embedded usage scenarios.
Change the behaviour so that during query processing, int, int64, uint64 are acceptable when JSON integer is expected.

@HouzuoGuo maybe this one can be solved now as well? So it can be fixed for good

@archey Good idea, but at the moment I'm working on some features in https://github.com/HouzuoGuo/websh. Are you feeling adventurous to add those examples to example.go?


feat: implement parseHintReference

Description
TODO add more details
See Go reference

Please assign this to me

@lana-shanghai @dhruvkelawala This is already done here no? https://github.com/keep-starknet-strange/ziggy-starkdust/blob/main/src/parser/deserialize_utils.zig

Ohh good. I didn't invest much time on it anyways


Detect network connection in spanish

Hello, there is my little contribution
I added the missed search string lines in spanish for detect the network connection

Great work, thanks!


Feat/civ 1604: check and submit noc

JIRA link (if applicable)
https://tools.hmcts.net/jira/browse/CIV-1604
Change description

add approver for noc requests
add change organisation field

Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[ ] No

changes are here https://github.com/hmcts/civil-ccd-definition/pull/1033


Error: performing genesis failed

🐛 Bug Report
📝 Description
Hi! I'm trying to quickstart an external node following the instructions provided at https://docs.zksync.io/infra/quickstart.html#setup-instructions, but I'm encountering error "Error: performing genesis failed"
🔄 Reproduction Steps
git clone https://github.com/matter-labs/zksync-era.git
cd zksync-era/docs/guides/external-node
cd docker-compose-examples
docker compose --file mainnet-external-node-docker-compose.yml up
🤔 Expected Behavior
The node will recover from a snapshot on its first run
😯 Current Behavior
Error: performing genesis failed
📎 Log Output

Error: performing genesis failed

Caused by:
    0: ensure_genesis_state
    1: Root hash mismatched: From config: 0xbc59c242d551e3939b9b2939b8b686efa77ba3833183045d548aa5f53357ba95, Calculated 0x79b383138554ae78daa0cd096ca63d7e69dc7e1868daf3c9a86d01918df1ffe3

Stack backtrace:
   0: anyhow::context::<impl anyhow::Context<T,E> for core::result::Result<T,E>>::context
   1: zksync_core::sync_layer::genesis::perform_genesis_if_needed::{{closure}}
   2: zksync_external_node::init::ensure_storage_initialized::{{closure}}
   3: zksync_external_node::run_node::{{closure}}
   4: zksync_external_node::main::{{closure}}
   5: tokio::runtime::park::CachedParkThread::block_on
   6: tokio::runtime::runtime::Runtime::block_on
   7: zksync_external_node::main
   8: std::sys_common::backtrace::__rust_begin_short_backtrace
   9: std::rt::lang_start::{{closure}}
  10: core::ops::function::impls::<impl core::ops::function::FnOnce<A> for &F>::call_once
             at ./rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/core/src/ops/function.rs:284:13
  11: std::panicking::try::do_call
             at ./rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/panicking.rs:524:40
  12: std::panicking::try
             at ./rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/panicking.rs:488:19
  13: std::panic::catch_unwind
             at ./rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/panic.rs:142:14
  14: std::rt::lang_start_internal::{{closure}}
             at ./rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/rt.rs:148:48
  15: std::panicking::try::do_call
             at ./rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/panicking.rs:524:40
  16: std::panicking::try
             at ./rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/panicking.rs:488:19
  17: std::panic::catch_unwind
             at ./rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/panic.rs:142:14
  18: std::rt::lang_start_internal
             at ./rustc/5c6a7e71cd66705c31c9af94077901a220f0870c/library/std/src/rt.rs:148:20
  19: main
  20: <unknown>
  21: __libc_start_main
  22: _start

2024-05-23T14:44:09.105538Z  WARN zksync_external_node: The external node is in the alpha phase, and should be used with caution.
2024-05-23T14:44:09.105546Z  INFO zksync_external_node: Started the external node
2024-05-23T14:44:09.105640Z DEBUG zksync_core::api_server::healthcheck: Starting healthcheck server with checks AppHealthCheck { components: Mutex { data: [CheckHealth { name: "main_node_http_rpc" }, CheckHealth { name: "connection_pool" }], poisoned: false, .. }, slow_time_limit: 500ms, hard_time_limit: 3s } on <IP_ADDRESS>:3081
2024-05-23T14:44:09.107413Z  INFO zksync_external_node::version_sync_task: Starting syncing protocol version of blocks
2024-05-23T14:44:09.108752Z  INFO zksync_external_node::init: Node has neither genesis L1 batch, nor snapshot recovery info
2024-05-23T14:44:09.108759Z  INFO zksync_external_node::init: Chosen node initialization strategy: Genesis
2024-05-23T14:44:12.971022Z DEBUG zksync_core::sync_layer::genesis: System contract with address 0x0000000000000000000000000000000000000006 is absent at genesis state
2024-05-23T14:44:13.213303Z DEBUG zksync_core::sync_layer::genesis: System contract with address 0x0000000000000000000000000000000000000007 is absent at genesis state
2024-05-23T14:44:13.459612Z DEBUG zksync_core::sync_layer::genesis: System contract with address 0x0000000000000000000000000000000000000008 is absent at genesis state
2024-05-23T14:44:13.706616Z DEBUG zksync_core::sync_layer::genesis: System contract with address 0x0000000000000000000000000000000000000100 is absent at genesis state
2024-05-23T14:44:13.955174Z DEBUG zksync_core::sync_layer::genesis: System contract with address 0x0000000000000000000000000000000000008012 is absent at genesis state
2024-05-23T14:44:15.130389Z DEBUG zksync_core::sync_layer::genesis: System contract with address 0x000000000000000000000000000000000000800e is absent at genesis state
2024-05-23T14:44:15.374074Z DEBUG zksync_core::sync_layer::genesis: System contract with address 0x000000000000000000000000000000000000800f is absent at genesis state
2024-05-23T14:44:16.110704Z DEBUG zksync_core::sync_layer::genesis: System contract with address 0x0000000000000000000000000000000000008011 is absent at genesis state
2024-05-23T14:44:16.355317Z DEBUG zksync_core::sync_layer::genesis: System contract with address 0x0000000000000000000000000000000000010000 is absent at genesis state
2024-05-23T14:44:16.355703Z  INFO zksync_core::genesis: running regenesis
2024-05-23T14:44:16.497057Z  INFO zksync_core::genesis: chain_schema_genesis is complete
2024-05-23T14:44:16.497074Z DEBUG zksync_core::metadata_calculator::helpers: Loading storage logs data for L1 batch #0 for Lightweight tree
2024-05-23T14:44:16.497406Z DEBUG zksync_core::metadata_calculator::metrics: Metadata calculator stage `LoadL1BatchHeader` completed in 287.463µs
2024-05-23T14:44:16.498112Z DEBUG zksync_core::metadata_calculator::metrics: Metadata calculator stage `LoadTouchedSlots` with 35 records completed in 695.463µs
2024-05-23T14:44:16.498364Z DEBUG zksync_core::metadata_calculator::metrics: Metadata calculator stage `LoadLeafIndices` with 35 records completed in 240.023µs
2024-05-23T14:44:16.498368Z DEBUG zksync_core::metadata_calculator::helpers: Made touched slots disjoint with protective reads; remaining touched slots: 35
2024-05-23T14:44:16.498384Z DEBUG zksync_core::metadata_calculator::metrics: Metadata calculator stage `LoadChanges` completed in 1.273133ms
2024-05-23T14:44:16.501606Z  WARN zksync_core::api_server::healthcheck: Stop signal sender for healthcheck server was dropped without sending a signal
2024-05-23T14:44:16.501615Z  INFO zksync_core::api_server::healthcheck: Stop signal received, healthcheck server is shutting down
2024-05-23T14:44:16.501658Z  INFO zksync_core::api_server::healthcheck: Healthcheck server shut down
2024-05-23T14:44:16.501664Z  INFO zksync_external_node: Stop signal received, Postgres metrics scraping is shutting down

Hi, man, I've been met same error, just check and confirm the  era-contract revision is right.

By the way, if you modified the era-contract, the config 0xbc59c242d551e3939b9b2939b8b686efa77ba3833183045d548aa5f53357ba95 should be updated.


Cannot change different inputs in different points of time

💻 Environment
Platform: Windows
OS Version: Version	10.0.17134 Build 17134
Toggl Version: 7.4.422
🐞 Actual behavior
The Windows app is absolutely unusable!
I can confirm this behaviour for about a week.
What the app does is that it disables writing into different inputs in different times. The behaviour seems absolutely non-deterministic.
When I create a new entry and I use the autocomplete feature for description, I then cannot change it further, the UI input is absolutely unresponsive to keyboard and mouse as well.
When I want to change the start or end time of an entry, it sometimes works, sometimes doesn't. I cannot find any pattern that it follows.
💯 Expected behavior
Well, for the app to work exactly as to used to. That all the inputs can be written into. :)
📦 Additional info

@IndrekV any update on this? The app is still painfully hard to use.


App Crashing

While testing sats card in iOS (Device Supporting NFC)
Step:- 1 In Create gift User Enters the amount and Proceeds via Satscard
Step:- 2 Clicks on Detect satsCard
App gets crashed.
See for reference
https://user-images.githubusercontent.com/107177634/185857894-83b98173-4ba8-4a3b-8d0e-2576c8a4879b.MP4

not able to reproduce @Deveshshankar

Need to check

Completed


Image argumentation

Hi, is that possible to do argumentation on images as hue flip expose etc?

Yes, of course


[Feature] Copy task node between different workflows

Is your feature request related to a problem? Please describe.
For now, we can copy task node at same workflow, but can't copy to another workflow. So is it possible to copy task node between different workflows?

good idea


Redact logging credentials when the Loader decides to log itself

This is for our internal issue BT-2156.  Rust-s3's debug impls are logging AWS creds.  There are probably others, but the one that caused us to need to fix this was the loader instance here.  We can use Derivative to have more advanced debug-deriving features, then exclude fields as shown in the diff.
We might need to do this again later, but this at least gets the immediate problem solved.

What do you think of something like this:
diff --git a/Cargo.toml b/Cargo.toml
index c1bfc1a..d0b4bda 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -53,6 +53,7 @@ test_validate_all = ["test_validate_writes", "test_validate_reads"]

 [dependencies]
 attohttpc = { version = "0.18", default-features = false }
+aws-region = { version = "0.23" }  # we just want the same as rust-s3
 backtrace = "0.3"
 # We use blake2b to compare the actual db file and our replicated snapshot,
 # but only during tests.
diff --git a/src/loader.rs b/src/loader.rs
index e6d44dd..95d42f2 100644
--- a/src/loader.rs
+++ b/src/loader.rs
@@ -84,23 +84,21 @@ impl Chunk {
 }

 /// Workaround for the fact that rust-s3 doesn't redact credentials in debug
-/// impls.
-#[allow(clippy::ptr_arg)]
-fn redacted_bucket_fmt(buckets: &Vec<Bucket>, fmt: &mut std::fmt::Formatter) -> std::fmt::Result {
+/// impls: only print the bucket name and region.
+fn redacted_bucket_fmt(buckets: &[Bucket], fmt: &mut std::fmt::Formatter) -> std::fmt::Result {
     #[derive(Debug)]
-    #[allow(dead_code)] // Because we disregard Debug in dead code analysis.
     struct RedactedBucket<'a> {
-        name: &'a str,
-        region: String,
+        _name: &'a str,
+        _region: &'a awsregion::Region,
     }

     let redacted = buckets
         .iter()
         .map(|x| RedactedBucket {
-            name: x.name.as_str(),
+            _name: x.name.as_str(),
             // rust-s3 isn't capable of avoiding this clone because the Region
             // enum doesn't have a method to get `&str`.
-            region: x.region.to_string(),
+            _region: &x.region,
         })
         .collect::<Vec<_>>();

Also, what do you think of adding a small unit test to confirm that the loader doesn't contain a dummy credential string?

All good suggestions. I will incorporate those shortly.

Pushed that. I decided that the dead code annotation is better than marking these fields unused because it would be weird to have unused fields in a Debug impl with no further context.  IMO Rust should lint better about this case specifically but shrug.

We don't take a slice because the derivative docs say:

The function must the following prototype:
fn fmt(&T, &mut std::fmt::Formatter) -> Result<(), std::fmt::Error>;


UNOMI-679 : add displayed variant informations in the window object

https://issues.apache.org/jira/browse/UNOMI-679

I think we should upgrade the version in package.json to 1.1.0 for next development iteration