(fix) - event bubbling

Fixes: https://github.com/developit/preact/issues/1290
Removes: 24Bytes from the main package.
This is no definite change yet, we should try and weigh what is being lost by moving from Promise.resolve -> setTimeout
Explanation by @developit: https://github.com/developit/preact/issues/1290#issuecomment-479656134

Coverage decreased (-1.9%) to 98.141% when pulling 8e930118f31018340c235d0419e856e030337695 on fix/event into a032782675cc84adb39b5c182dedce0a1a72fcc2 on master.

Personally I think this represents a nice compromise. setTimeout clamping is avoided in most cases, and only kicks in when folks trigger setState loops. However, there may be a drawback when it comes to many nested setState() calls triggered by rendering a large tree. It would be good to put a demo/test around that case to see how long such a render would take.


Update package.json

@testing-library/jest-dom has already been updated to 5.16.1

Looks good to me, please sign SLA if you want to get this merged.


Bot wont run - Can't connect to BTC-E, and problem loading config.txt

Whenever I try and run auto.py, it loads the prices, and states that it can't connect to BTC-E

[0.00037, 0.00037, 0.00037, 0.00037, 0.00037, 0.00037, 0.00037, 0.00037, 0.00037, 0.00037]
[0.00037, 0.00037, 0.00037, 0.00037, 0.00037, 0.00037, 0.00037, 0.00037, 0.00037, 0.00037]
BUYING  === 0.00036815
SELLING === 0.00037185
AVERAGE === 0.00037
CURRENT === 0.00037
BALANCE: trc 7.80403815 / btc 0.0003943
LAST ACTION Something went wrong! Could not connect to BTC-E! Error Code 1
All my API Keys have trade and info enabled
There was also a problem loading config.txt, I had to manually go into auto.py and direct it to the directory of config.txt

Hi,
I´m having the same error as all. in my case is because only can make trade if BTC is more than 0.001, if is less than this the error happen.
i´m using it for 2 days. but i make modifications in code, only for tests!
if anyone want my code i will attach the auto.py modified :)
auto.zip
remember i´m testing, and if it help in anyway this code i´m glad to help :)
PS:Sorry for the poor english


Is there a Possible or Will be consider as enhancement

Hi All
Once I install the RancherOS on my two boxes and will manage via Rancher Agent is there a possible way to migrate my container from one RancherOs to another one from UI just by Drag n Drop from the Rancher UI. If this is not possible I hope we need this feature to bring it up.
Thanks in Advance,
Keerthi

This is not currently possible because the storage volumes would have to be migrated with the container, along with any other containers that depend on those same volumes, recursively.  This is roughly what Flocker does.
It may be possible in the future once we have a better story around volume management in Rancher.

Is there a logical way round of for example mount one of the NFS volume to all the docker and can point /var/lib/docker and then will it work?

I'm not sure if docker will work with multiple separate hosts sharing a /var/lib/docker.. But you could certainly use a NFS mount on every host and bind individual volumes to directories in it.  There is still no live-migration action to do the actual move, but you could use the Clone action on a container and change the host it will be put on to create a new container on the new host, then delete the old one on the old host.

This feature is no doubt the only thing holding us back to virtualization. Rancher has never ceased to amaze us. We actually had been looking for a way to safeguard our volume, and that's why I am still stuck with virtualization with all the overhead.
But I saw rancher-volume project it has all needed , like create,save and restore volume.
But my question is , I have not seen it in the web manager yet ?
Or are they planning it for a specific release ?
Secondly, if save and restore has been achieved for rancher volume, then live migration is just in already.
So folks, does this feature have a timeline ? We want get out of virtualization

For full live migration of a container, I think docker has to add support for this first. There's work in progress for this, but I don't think there's an ETA yet. See for example https://github.com/docker/docker/pull/13602, but I'm not sure if this is currently held back because of the introduction of RunC (https://github.com/opencontainers/runc)

Ok. But how can one do volume snapshot , save and restore in rancher web manager

@lavvy Currently, it's not available in Rancher. You can follow this issue https://github.com/rancher/rancher/issues/29, which will be incorporating the rancher-volume project when it's completed.

Now that convoy-gluster is available, would this be possible?

Duplicate of #438


Sublime 3 .tmp files triggering remote Remove action

Recieved Update event on 'snippets/.subl7ee.tmp'
Recieved Update event on 'snippets/collection-grid-item.liquid'
Successfully performed Update operation for file snippets/collection-grid-item.liquid to waitandsee.myshopify.com
Recieved Remove event on 'snippets/collection-grid-item.liquid'
Successfully performed Remove operation for file snippets/collection-grid-item.liquid to waitandsee.myshopify.com

If you disable atomic saving it will no longer delete the file.
Recieved Update event on 'snippets/collection-grid-item.liquid'
Successfully performed Update operation for file snippets/collection-grid-item.liquid to waitandsee.myshopify.com

By default atomic_saving is set as true, so I thought it may be worth noting this bug somewhere Google might find it .

You could add *.tmp to your ignores and it won't get picked up by the watcher.

Ah, I wasn't sure about that. Should I be referencing the config.yml structure from the Shopify_theme gem?

I believe you can. I've got a few minor features to get completed then I'll put some effort into improving the documentation. It's really bad at the moment :(

@thisislawatts I've updated the docs and even have a website that doesn't look super terrible now. Does this help explain things a bit better?
http://themekit.cat/docs/

That's looking great, thanks for following up on this.


Update index.jinja

Fix text to copy when the button is pressed. It should copy the shown text. An even better solution would be to make a single source of truth for both the shown text and the copied text.
This PR also fixes a broken link to the SuperEditor Quickstart guides.

@suragch - Whenever we merge something into main we also need to cherry pick that into stable. Can you put up a PR pointing at stable that includes a cherry pick of this commit from main?

@matthew-carroll The stable branch doesn't have doc/website/source/index.jinja at all, so I'm getting a conflict with the cherry pick. What is the difference between main and stable here?

Ok, I guess I never cherry picked the original docs. In that case, don't worry about cherry picking in this case.


New forward simulation

[x] 1. Generate imported cases according to a Poisson distribution with rate λ

[x] 2. Get a true Rt profile from real data, assuming epsilon=1

[x] 3. Generate local cases using that Rt and those imported cases and some ε

[x] 4. For each local cases data, infer Rt twice, once with epsilon=1 and once with epsilon=ε

[x] 5. Calculate some metric between the two Rt posteriors. Ideas: Frequency of time that they differ significantly. ...?

[x] 6. Plot that metric as a heatmap, with ε on one axis and λ on the other

Closed by https://github.com/SABS-R3-Epidemiology/transmission-heterogeneity-results/pull/13


Raspberry Official 7" Touchscreen support

Touchscreen always black on R70 build. I try plug and unplug hdmi, but it doesnot help.
But on R68 it start itself, out-of-box, without hdmi manipulation.
How can I start it on R70?

i would also love a resolution for this!
same issue here

I haven't installed FydeOS yet, but I have an Rpi 3b+ and the official 7 inch touchscreen. Has this issue been resolved? I can test, if need be

Can you provide /var/log/message? Chromium OS for rpi3 is based on RPI official kernel with official configure. You can compile the kernel yourself and copy it to sd card.

Interesting.. Could we try the #gentoo kernel? Any blobs we should know about?

Bulk closure of dated issues

Has this been resolved?

hello same issue here i have rollback to r68 :(


broke xlsx file when InsertRow

Excelize broke xlsx file when InsertRow and sheet contain some summarized cells.
For example
 A

1   1
2   2
3   3
4   4
5   5
6   15
Sum in cell A6.
xlsx.InsertRow("Sheet1", 2) and as result file is broken.

HI @dmp73, thanks for your issue. Use this method with caution, which will affect changes in references such as formulas, charts, and so on. If there is any referenced value of the worksheet, it will cause a file error when you open it. The excelize only partially updates these references currently. I will add formula adjust support for this function later.

Hi @dmp73, I have fixed it. Please try to upgrade the library with the master branch code.


adjoint vector-Jacobian product form of precomputed gradients for reverse

Summary:
Add precomputed gradients class for multivariate functions that reduces user burden from understanding autodiff stack management and expression templates to computing the function and a simple vector-Jacobian product.
Description:
For a multivariate function f:R^N -> R^M and input x in R^N, the chain rule for reverse mode autodiff unfolds to:
for (n in 1:N)
  for (m in 1:M)
    x[m].adjoint += f(x)[n].adjoint * J[n, m];

where J is the M x N Jacobian, i.e.,
J[m, n] = d f(x)[n] / d x[m].

Taken as a whole, this is neatly expressed as:
x.adjoint += f(x).adjoint * J;

So we should be able to take a user-defined functor:
/**
 * Structure for implementing a multivariate reverse-mode automatic
 * differentiation function based on vector-Jacobian products.
 */
struct foo {
  /**
   * Return value of function for the specified argument .  This operation
   * may store intermediate values needed for vector-Jacobian product
   * as member variables using only memalloc (i.e., no members on heap).
   *
   * @param x argument to function
   * @return value of function
   */
  VectorXd apply(const VectorXd& x);

  /**
   * Return the product of the specified vector with the Jacobian
   * of the function.
   *
   * @param fx_adj adjoint of the function result
   * @return adjoint-Jacobian product
   */
  VectorXd multiply_adjoint_jacobian(const VectorXd& fx_adj) const;
};

From that, we can create an appropriate implementation of chain() for the first result and make the rest non-chainable as we have done for other specialized function.  This chain() method will just call the multiply_adjoint_jacobian method of the object and do the increments.  The user will never have to even think about our autodiff types.
The obvious next step would be to generalize to matrix arguments (not so hard given Eigen's underlying memory layout and access) and then to pairs of arguments in {matrix, vector, scalar}.  That might not be too hard given Eigen's templating and underlying linear memory layout and indexing.
Current Version:
v2.17.0

Jenkins, retest this please.

Here's a sketch that should work once it's debugged.  All the work's done in the first vari returned in the result.  The rest of the result are not chainable, so they don't go on the usual stack.  But they are preserved.
// Further generalize to generic inputs and outputs with
// template int params: Rx, Cx, and Ry, Cy

struct foo_fun : public arena_allocated {
  template <typename T>
  Matrix<T, -1, 1> apply(const Matrix<T, -1, 1>& x) const;

  VectorXd apply_jac(const VectorXd& x);

  VectorXd multiply_adjoint_jacobian(const VectorXd& fx_adj) const;
};

template <typename T>
Matrix<T, -1, 1> foo(const Matrix<T, -1, 1>& x) {
  return adj_jac_apply<foo_fun>(x);
}

template <class F>
vector_d adj_jac_apply(const vector_d& x) {
  F f;
  return f.apply(x);
}

template <class F>
vector_v adj_jac_apply(const vector_v& x) {
  F* f = new F();
  vector_d val_x = value_of(x);
  vector_d val_y = f.apply_jac(val_x);
  int N = val_y.size();
  if (N == 0) return vector_v(0);

  vector_v y;
  y.reserve(N);
  apply_vari* vi = new apply_vari<F>(f, x, f_xd);
  for (int i = 0; i < N; ++i)
    y.emplace_back((vi -> y_vi_)[i]);
  return y;
}

teplate <typename F>
struct apply_vari : public vari {
  F& f_;
  int N_;
  vari** x_vi_;
  int M_;
  vari** y_vi_;  // only first one is chainable, its chain method is special

  apply_vari(F& f, const vector_v& x, const vector_d& val_y)
      : vari(val_y(0)), f_(f),
        N_(x.size()), x_vi_(memory::memalloc_.array_alloc<vari*>(N_)),
        M_(val_y.size()), y_vi_(memory::memalloc_.array_alloc<vari*>(M_)) {
    for (int n = 0; n < N_; ++n)
      x_vi_[n] = x(n).vi_;
    y_vi_[0] = this;
    for (int m = 1; m < M_; ++m)
      y_vi_[m] = new vari(val_y(m));
  }

  void chain() {
    vector_d y_adjoint(M_);
    for (int m = 0; i < M_; ++m)
      y_adj(i) = y_vi_[m] -> adj_;
    vector_d y_adj_jac = f_.multiply_adjoint_jacobian(y_adj);
    for (int n = 0; n < N_; ++n)
      x_vi_[n] -> adj_ += y_adj_jac(n);
  }
};

Yes, that's the n-th dimension of the result (f maps R^N -> R^M)  If we store the Jacobian, then we need that loop to do the increment.  It's essentially how the code plays out if you were to write out the naive loop.

I guess what I was wondering is that if N isn't equal to M, and f(x) has
only M dimensions, accessing the Nth dimension of f might not make sense?
Chris
On Tue, Jul 3, 2018 at 4:16 PM Bob Carpenter<EMAIL_ADDRESS>wrote:

Yes, that's the n-th dimension of the result (f maps R^N -> R^M) If we
store the Jacobian, then we need that loop to do the increment. It's
essentially how the code plays out if you were to write out the naive loop.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/stan-dev/math/issues/876#issuecomment-402294331, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ALTv-8hM1XBDQq_wFrR51LDGwBd_22y5ks5uC98tgaJpZM4UR8bP
.

My mistake.  I just always get confused about the indexing of Jacobians because it's R^N -> R^M.  The loop should be over m in 1:M and and index f(x)[m].

Was this fixed by #924?


Brand-new account shows staked balance.

UI Version: 0.9.3
Description:

I created a brand-new account and the wallet is showing that it already has 130 STEAK staked.

what do you mean by "brand-new"?

probabaly has to do with #1112


[24.05] qemu: 8.2.6 -> 8.2.7

Fixes: CVE-2024-6505
Fixes: CVE-2024-7409

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.

Built qemu.tests successfully on nixos x86_64 & macos 12 x86_64 with just the same spice-related failures as ever.

@infinisil I'm not sure checking org access in CI like this is really the right thing to do?  It means that if somebody leaves the org, CI starts failing on every unrelated PR.


'GetDefinitionsResponseValue' has no len() on pipelines update

This is autogenerated. Please review and update as needed.
Describe the bug
Command Name
az pipelines update Extension Name: azure-devops. Version: 0.18.0.
Errors:
The command failed with an unexpected error. Here is the traceback:
object of type 'GetDefinitionsResponseValue' has no len()
Traceback (most recent call last):
  File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 657, in execute
    raise ex
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 720, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 712, in _run_job
    return cmd_copy.exception_handler(ex)
  File "/home/svi_core_2/.azure/cliextensions/azure-devops/azext_devops/dev/common/exception_handler.py", line 31, in azure_devops_exception_handler
    reraise(*sys.exc_info())
  File "/opt/az/lib/python3.6/site-packages/six.py", line 703, in reraise
    raise value
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 691, in _run_job
    result = cmd_copy(params)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 328, in __call__
    return self.handler(*args, **kwargs)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/command_operation.py", line 121, in handler
    return op(**command_args)
  File "/home/svi_core_2/.azure/cliextensions/azure-devops/azext_devops/dev/pipelines/pipeline_create.py", line 186, in pipeline_update
    id = get_definition_id_from_name(name, pipeline_client, project)
  File "/home/svi_core_2/.azure/cliextensions/azure-devops/azext_devops/dev/pipelines/build_definition.py", line 106, in get_definition_id_from_name
    if len(definition_references) == 1:
TypeError: object of type 'GetDefinitionsResponseValue' has no len()

To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

az pipelines update --name {} --organization {} --project {} --branch {} --yml-path {} --debug

Expected Behavior
Looking at the code, there is a reason why this isnt working:
https://github.com/Azure/azure-devops-cli-extension/blob/effbefe7bc6a41d3f319790f287de49558bd5fa6/azure-devops/azext_devops/devops_sdk/released/build/build_client.py#L576-L589
This object doesnt have a len.
https://github.com/Azure/azure-devops-cli-extension/blob/effbefe7bc6a41d3f319790f287de49558bd5fa6/azure-devops/azext_devops/dev/pipelines/build_definition.py#L103-L108
Even then, the GetDefinitionsResponseValue doesnt have project or id fields.
Environment Summary
Linux-5.3.0-26-generic-x86_64-with-debian-10.6
Python 3.6.10
Installer: DEB

azure-cli 2.24.2

Extensions:
azure-devops 0.18.0

Additional Context

@POLIMATISUNILBABU : can you look into this?

Observation

looks like name  parameter is got removed from the API itself. (Need to verify)
RCA:
Unable to fetch pipeline id from name
Mitigation strategy:

Remove name property from command
or keep name and Throw error if command executed with name

Time taken for Proposal : 2 days
Code implementation and testing : 1 day

Observation

looks like name parameter is got removed from the API itself. (Need to verify)
RCA:
Unable to fetch pipeline id from name
Mitigation strategy:

Remove name property from command
or keep name and Throw error if command executed with name

Time taken for Proposal : 2 days
Code implementation and testing : 1 day

for Mitigation strategy can we instead get id of the pipeline using name?
we need to make sure the scenario customer is trying to achieve is met post the fix

@roshan-sy for Mitigation strategy can we instead get id of the pipeline using name?
we need to make sure the scenario customer is trying to achieve is met post the fix

Noted

given that --name is marked as deprecated we can remove it, just make sure that things are working with -id
https://github.com/Azure/azure-devops-cli-extension/blob/fab8405a174fc264d516c27ed66653efbac02a29/azure-devops/azext_devops/dev/pipelines/arguments.py#L88


auto-cpufreq: should start on boot if enabled

Describe the bug
I believe the auto-cpufreq daemon should start on boot if enabled.
To Reproduce

Enable auto-cpufreq daemon: services.auto-cpufreq.enable = true;.
Reboot the system.
Run systemctl status auto-cpufreq.
Observe auto-cpufreq as dead/inactive.

Expected behavior
auto-cpufreq service should be started on boot.
Additional context
I was using the unstable service in 20.09 and it worked as expected. In 21.05 stable, the service starts dead/inactive and my system is very slow. I manually start the service and I'm back to the NixOS I know and love.
I was able to fix this by adding the following to my configuration:
  systemd.services.auto-cpufreq.wantedBy = [ "default.target" ];

Notify maintainers
@Technical27
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

system: "x86_64-linux"
host os: Linux 5.10.40, NixOS, 21.05.804.5de44c15758 (Okapi)
multi-user?: yes
sandbox: yes
version: nix-env (Nix) 2.3.12
channels(pnelson): ""
channels(root): "nixos-21.05.804.5de44c15758, nixos-unstable-21.11pre294109.fbfb79400a0, nixos-hardware"
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:

https://github.com/NixOS/nixpkgs/issues/81138

Sorry for being late, #126897 should fix this.

I have the exact same issue now, on 23.11.

Same here, also facing this problem on 23.11...

@nicoo

For others who might still be hitting this, I thought I was too.  When checking the logs I saw that power-profiles-daemon was starting up, causing auto-cpufreq to shut down.  I fixed this by adding: services.power-profiles-daemon.enable = false;
From looking at this code, and be kind with me here since I'm a nix beginner, while this is off by default it is enabled when using gnome.

I think the best action would be to add an assertion to give users a prompt like with tlp.  If this looks correct I can open a PR for it


datepicker: watchers count

I've been looking at ways to improve performance in my app. I've read that reducing number of unnecessary watchers is something that can help.
Using a simple watch counter I see that the number of watchers increases by 296 when a datepicker is introduced into the page. See this plunker for a demo. AFAIK this is due to the html template using ng-repeat to create the table of days.
Some questions:

Is this a real issue i.e. is my analysis correct?
If it is a problem, can anything be done?

I was looking into this problem (because we have it too).
One solution would be to do an ng-if on the popup. My thought was to have it just do ng-if="isOpen", but that doesn't work as it loses the data stored in the model then, for some reason.
The other option is to create another variable that a user can pass in to say when they want it to be initialised. This would be bound to ng-if and would mean that once it is opened the first time, it is brought into the html and the watchers are assigned.
This would help people who have multiple, as it ends up being a big problem.
However, when trying to do it, I have 5 tests failing. I reckon these are because of the slight performance hit that you get when using ng-if meaning that the popup isn't ready for when it tries to click a date. I'll work on this a bit later tomorrow, but it's at least something that can be done.

@YaManicKill See this pull request for the ng-if implementation: https://github.com/angular-ui/bootstrap/pull/1915

Ah, yeah that's exactly what I was working on. Any plans to actually merge it in?

+1
Is there any update on this?

https://github.com/angular-ui/bootstrap#impt---2015-plans-and-angular-13-support

+1
28212 watchers for me ;)

There's simply too many watchers on the templates.  Doing a quick look through of the popup.html, the ng-repeat that is building the day/week/cell grid, for each day displayed: id={{dt.uid}} = 1 watch, aria-disabled={{!!dt.disabled}} = 1 watch, ng-class="{'btn-info': dt.selected}" = 1 watch, ng-class="{'text-muted' : dt.secondary = 1 watch, {{dt.label}} = 1 watch which adds up to 5 watches per cell in the grid.

@RobJacobs I decided to create a monkey patched version of the bower library in the end. My use case was the date picker to appear on focus of the input field where the suggested ng-if would not work.
https://github.com/cpaof/bootstrap-bower for anyone that's interested.

We are planning on tackling the performance issue with the datepicker once we release 0.13.0.

Looking into this issue and looks like https://github.com/angular-ui/bootstrap/pull/2619 adds 40 watchers on the typical use case, even if no custom class was provided.

I think we can continue in #3770


Review new connection flow for GoViral on staging

Unclear to me how to test the process. The OH staging button "connect to GoViral" to the OH page on the production GoViral site, which links to the production site of Open Humans. Is there a URL on a staging version GoViral I should start at?


Why database cannot open on Android 11?

I have install and tried several ways but still unable to connect database. My database is pre-defined that I create using DB Browser.
Expected Behavior
Database should be able to open at the very first place.
Current Behavior
Database cannot open
Possible Solution

Steps to Reproduce (for bugs)
import SQLite from 'react-native-sqlite-storage';
SQLite.DEBUG(true);
SQLite.enablePromise(false);

export const AppSignIn = (props) => {
    const OpenDB = () => {
        return new Promise((resolve, reject) => {
            global.db = SQLite.openDatabase(
                {
                    name: 'mysqlite.db',
                    createFromLocation: '~mysqlite.db',
                },
                () => {
                    console.log("Connection success!");
                },
                error => {
                    console.log(error);
                    reject();
                });
            resolve();
        });
    }
    const ReadDB = () => {
        return new Promise((resolve) => {
            global.db.transaction(function (tx) {
                tx.executeSql(
                    // The rest of the trx
                );
                resolve();
            });
        });
    }
    async function ConnectDB() {
        return new Promise(async (resolve, reject) => {
            await OpenDB()
                .then(async () => {
                    await ReadDB()
                        .then(() => {
                            console.log('YEAY FINALLY');
                            resolve();
                        })
                })
                .catch((error) => {
                    console.log(error);
                    reject();
                });
        });
    }
    React.useEffect(() => {
        (async () => {
            await ConnectDB()
                .then()
                .catch();
        })();
    }, []);
}

I have post in StackOverflow too
Context
I cannot start any transaction
Your Environment
Samsung Galaxy Android 11,
"react-native-sqlite-storage": "^6.0.1",
"react": "17.0.2",
"react-native": "0.65.1",
"@react-navigation/native": "^6.0.4",
Debug logs Android 11 (Samsung Galaxy A71)
LOG  OPEN database: mysqlite.db
LOG  SQLite.open({"name":"mysqlite.db","createFromLocation":"~mysqlite.db","dblocation":"nosync","assetFilename":"~mysqlite.db"})
LOG  new transaction is waiting for open operation
LOG  Phone connected? true, Server connected? true
LOG  OPEN database: mysqlite.db failed, aborting any pending transactions
LOG  [Error: Could not open database]
Debug logs Android 9 (Redmi 6)
LOG  OPEN database: mysqlite.db
LOG  SQLite.open({"name":"mysqlite.db","createFromLocation":"~mysqlite.db","dblocation":"nosync","assetFilename":"~mysqlite.db"})
LOG  new transaction is waiting for open operation
LOG  Phone connected? true, Server connected? true
LOG  Connection success!
LOG  SQLite.backgroundExecuteSqlBatch({"dbargs":{"dbname":"mysqlite.db"},"executes":[{"qid":1111,"sql":"BEGIN","params":[]},{"qid":1111,"sql":"SELECT * FROM MSCRAP","params":[]}]})
LOG  YEAY FINALLY
LOG  item: 0
LOG  []
LOG  SQLite.backgroundExecuteSqlBatch({"dbargs":{"dbname":"mysqlite.db"},"executes":[{"qid":1111,"sql":"COMMIT","params":[]}]})

At targetting SDK 30, what I've done is removing content from
react-native.config.js

module.exports = {
    dependencies: {
        "react-native-sqlite-storage": {
            platforms: {
                android: {
                    sourceDir: "../node_modules/react-native-sqlite-storage/platforms/android-native",
                    packageImportPath: "import io.liteglue.SQLitePluginPackage;",
                    packageInstance: "new SQLitePluginPackage()"
                }
            }
        }
    }
};

I also removing import io.liteglue.SQLitePluginPackage; from MainApplication.java and the database can open finally.

At targetting SDK 30, what I've done is removing content from react-native.config.js

module.exports = {
    dependencies: {
        "react-native-sqlite-storage": {
            platforms: {
                android: {
                    sourceDir: "../node_modules/react-native-sqlite-storage/platforms/android-native",
                    packageImportPath: "import io.liteglue.SQLitePluginPackage;",
                    packageInstance: "new SQLitePluginPackage()"
                }
            }
        }
    }
};

I also removing import io.liteglue.SQLitePluginPackage; from MainApplication.java and the database can open finally.

FTS5 will not work if you do this one


Feat/escape jinja templates

Escape Jinja templates for automaton workflows
Workflow definition can also accept Jinja templates. To avoid mixing of resolutions, workflow templates need to be escaped. With these changes, now it is possible to write \{\{ and \}\}, which, as a result, won't be resolved during template preparation.
Strings \{\{ and \}\} will be replaced with propper jinnja sequence {{ and }} before sending to Dynatrace instance.

please use our PR template :)

I wrote a quick fuzzer to see if the escape-unescape use-case works:
func FuzzEscapeJinjaTemplates(f *testing.F) {
	seeds := []string{"", "some", "seed", "{{", "}}", `\{\{`, "{{thisisanexample}}"}

	for i := range seeds {
		f.Add(seeds[i])
	}

	f.Fuzz(func(t *testing.T, given string) {
		result := string(UnescapeJinjaTemplates(EscapeJinjaTemplates([]byte(given))))
		assert.Equal(t, given, result)
	})
}

The code errors nearly immediately for the given string
           	Error:      	Not equal:
            	            	expected: "\\{\\{"
            	            	actual  : "{{"

Afaik, we discussed that we want to escape the \\{ case as well because we can never be sure what customers configure. They might just have it in a name, a field, wrongly configure it, or anything.

See comment above, I really think we need to take care of \{

After live discussion and investigation, we found that the automation framework already handles this case. So it is not the issue anymore.

Due to change of requests, this PR is replaced with https://github.com/Dynatrace/dynatrace-configuration-as-code/pull/1007


How do I check if my app has camera permissions in Windows?

When I remove access, this image is automatically placed, but I don't see anything that tells me the status.

I tried to verify the permissions this way but it always returns true.
public async Task<bool> CheckPermissions()
        => (await Permissions.RequestAsync<Permissions.Camera>()) == PermissionStatus.Granted;

you can do something like this just on windows
using (var mediaCapture = new MediaCapture())
{
    try
    {
        await mediaCapture.InitializeAsync(new MediaCaptureInitializationSettings
        {
            StreamingCaptureMode = StreamingCaptureMode.Video
        });
        return PermissionStatus.Granted;
    }
    catch (UnauthorizedAccessException)
    {
        return PermissionStatus.Denied;
    }
    catch (Exception)
    {
        return PermissionStatus.Disabled;
    }
}

you can do something like this just on windows
using (var mediaCapture = new MediaCapture())
{
    try
    {
        await mediaCapture.InitializeAsync(new MediaCaptureInitializationSettings
        {
            StreamingCaptureMode = StreamingCaptureMode.Video
        });
        return PermissionStatus.Granted;
    }
    catch (UnauthorizedAccessException)
    {
        return PermissionStatus.Denied;
    }
    catch (Exception)
    {
        return PermissionStatus.Disabled;
    }
}

Thanks!!

you can do something like this just on windows
using (var mediaCapture = new MediaCapture())
{
    try
    {
        await mediaCapture.InitializeAsync(new MediaCaptureInitializationSettings
        {
            StreamingCaptureMode = StreamingCaptureMode.Video
        });
        return PermissionStatus.Granted;
    }
    catch (UnauthorizedAccessException)
    {
        return PermissionStatus.Denied;
    }
    catch (Exception)
    {
        return PermissionStatus.Disabled;
    }
}

Thanks!!!!


Fix bug with bulk counts and update description validation

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 91.82%. Comparing base (c857b1b) to head (aa59ee7).

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #269   +/-   ##
=========================================
  Coverage     91.81%   91.82%
  Complexity      534      534
=========================================
  Files            93       93
  Lines          1894     1896    +2
  Branches        124      124
=========================================
+ Hits           1739     1741    +2
  Misses          104      104
  Partials         51       51

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Enhanced Capabilities

Includes enhanced capabilities for searching and playing music from Apple Musice, Spotify, Deezer, Deezer Elite, and your local Sonos music library.  Also includes advanced room capabilities allowing you to avoid having to say the room with every command.
jishi/nod-sonos-http-api Main branch has now been updated with the new musicSearch API required to support this.

Awesome - thanks for bringing it back upstream, @jplourde5

No problem.  I was just waiting on Jimmy's merge.


questions about arrow-private building commands

Hi, wondering what commands you are using for arrow-private build.
I saw there are multiple customized presets as openformat-release, openformat-release-static and etc. However, I'm trying to build it on Ubuntu20.04 with the exact same settings as the paper has described and simple build commands as mkdir build && cd build; cmake .. --preset openformat-release; cmake --build .; make install, the builds failed as it cannot find some libraries. Manually setting the options for the libraries won't work either.
I'm wondering is there any other options you're using while building arrow-private? I appreciate your help and thanks a lot!

openformat-release is the option for building the arrow repo. What's the error message? If it is an error from an Arrow dependency lib, you can try bundled build for that dependency instead of system build to see if it can solve the issue.

It shows libprotoc was set to Protobuf_PROTOC_LIBRARY-NOTFOUND no matter I'm using -DARROW_DEPENDENCY_SOURCE=BUNDLED or apt install protobuf-compiler without the arguments. I trie to build under normal release mode and manually set protoc_root but it failed in make install later saying cannot find the package.
Besides, I have a question regarding the location of executable files. I'm quite curious why it is located in arrow-private/cpp/out/build/openformat-release/release/parquet-scan-columnbatch? My command won't generate a openformat-release dir automatically.

Could you try
cmake --preset openformat-release -B./out/build/openformat-release -G Ninja
cmake --build ./out/build/openformat-release --parallel 8 --target parquet-scan-columnbatch

ninja is optional (it is just recommended by Arrow), make should also be ok.

icic. Thank you! and I assume that it is might related to my conda settings as it is built within an activated conda environment.

I found out that building shared libraries together with system builds might have caused too many linker errors and version mismatch.
I build the file finally using this command:
cmake --preset openformat-release-static -B./out/build/openformat-release-static -G Ninja -DARROW_DEPENDENCY_SOURCE=BUNDLED -DARROW_DEPENDENCY_USE_SHARED=OFF
cmake --build ./out/build/openformat-release --parallel 8 --target parquet-scan-columnbatch


shutdown lifetime issues

See https://github.com/python-trio/pytest-trio/issues/63, where there can be shutdown issues with the trio-websocket server (using a connection after stream is closed).
#3 mentions some design improvements

I'm planning to address the recommendations in #3, and then I'll check if that fixes this issue, too.

confirmed that #23 fixes this

Thanks, I'll close this now.


Include PoC using https://github.com/trickest/cve

https://github.com/trickest/cve has code and data to collect PoC (e.g., the TLA for a proof of concept exploit for a given vulnerability).
We should collect these

Hi, I want to work on this issue. could you please tell me how to proceed?

Closed in favor of https://github.com/nexB/vulnerablecode/issues/655


Default branch is gh-pages

The default branch is gh-pages, where you would expect master to be the default and gh-pages used for pages. This is confusing, since the master branch is older than the current gh-pages branch. Maybe change default branch to master and merge latest changes from gh-pages?

Having a single branch gh-pages should be enough IHMO (it's a small project, with its little along)
I suggest we delete the master branch.

Branch gh-pages has a special meaning (https://help.github.com/articles/user-organization-and-project-pages/#project-pages). Since the project does not use GitHub Pages, why not drop the gh-pages branch and make master the default. A project without a master would seem weird to many people I guess.

What do you mean by it's not using Github pages ?
The thing is : keep the demo along the code ! http://makinacorpus.github.io/Leaflet.Snap/

My bad, had not noticed that

master branch has been deleted as it was not updated.


[Feature]:  Adding the language selector button

Hi, I saw that the language selection option is missing, which is a very important thing for variety of users in the OTT platform. So, I want  to contribute to this feature. This comes under GSSOC'23.

Hey @sourabhsikarwar, if it's not done yet, I want to work on this issue under GSSOC'23.
The language selector button will look similar to the Netflix language selector button.

Hi @sourabhsikarwar, hope you are well. Just to let you know I m still working on this feature, some progress so far. I need some more time to finally to say it is working or not. So please give me some more time to work on it. Thanks


Add a PrunedLiveness utility.

This bare-bones utility will be the basis for
CanonicalizeOSSALifetime. It is maximally flexible and can be adopted
by any analysis that needs SSA-based liveness expressed in terms of
the live blocks. It's meant to be layered underneath various
higher-level analyses.
We could consider revamping ValueLifetimeAnalysis and layering it on
top of this. If PrunedLiveness is adopted widely enough, we can
combine it with a block numbering analysis so we can micro-optimize
the internal data structures.

@gottesmm This is the thoroughly documented version of the code that was already reviewed. 170 lines of comments for 100 lines of very basic code, 40 lines that aren't just boilerplate.

@swift-ci smoke test

@swift-ci smoke test

@swift-ci smoke test and merge


Update images

[ ] Update the main OpenCDMS logo with the version attached

[ ] Update favicon with the ico image here
[ ] Remove CoreUI header logo from mobile view (see below)

Fixed in #6


Add Entity descriptor for beamline-level object

With the aim of making a beamline ec repository document the capabilities and state of a beamline.
A Beamline is composed of multiple levels:
Physical components (motors, detectors, other hardware): how well do these map to Resource entities? With potential dependency chains to explain device interactions (e.g. temperature controller A requires pump B, or stage C is a dependency of detector D that is mounted to it?). Resources only allow one string of spec.type, does this allow a useful level of device granularity when defining beamline capabilities?
Can a device be suitably defined by some agreed upon standardised fields, something like this?
apiVersion: backstage.io/v1alpha1
kind: Resource
metadata:
  name: stage-y
  namespace: p45  # Prevents name having to be globally unique
  description: Make, model
  tags:  # Some useful common definition of hardware capabilities? Or as labels, or as annotations?
    - axis_physical
    - axis_vertical
    - axis_limited  # Provides axis_max, axis_min labels?
  labels:  # Labels are
    axis_max: xxx
    axis_min: xxx
    axis_precision: xxx
  annotations:  # How Panda TTLOUT are wired to device external triggers?
    input.p45.panda1.ttlout: 1
    input.p45.panda2.ttlout: 1
spec:
  type: axis
  dependsOn:
    - resource:p45/stage-x  # mounted on top?
  owner: p45  # Is owner p45 or controls engineer or?
#  system:  # Define a Controls system for the hardware, IOCS?

IOCs that control the physical components- are these Components, with dependencies on the physical components (if those are Resources, these can be Components fairly simply)
apiVersion: backstage.io/v1alpha1
kind: Component
metadata:
  name: stage-y
  namespace: p45
  description: IOC controlling stage-y Resource
spec:
  type: IOC
  lifecycle: production
  owner: user:JoeBloggs # Controls engineer for p45?
#  system: Controls  # Define a Controls system for the hardware, IOCS?
  dependsOn:
    - resource:p45/stage-y
   providesApis:
    -  EPICS-CA # Define how to talk to the device?
    - # Can we generate an API from pvinfo/PVI/cainfo?

Central or Beamline services (from acquisition, analysis or controls): Components, which may also contribute to a System, such as the Athena system.
Does a Beamline consist of a System, or only the components that belong to the system that are enabled for it?
A Component can only be part of one System, so cannot readily have a Beamline defined as a System (components exist on multiple beamlines, and may already be a part of a System).
Suggested schema for Beamline-level object
apiVersion: # Diamond apiVersion string
kind: Beamline
metadata:
  name: p45
  namespace: p45  # may have multiple beamlines in same namespace if share resources
  description: P45 Test rig, configured with x, y, theta stage, det, diff cameras, white light and monochromatic laser.......
spec:
  lifecycle: production
  owner: user:JoeBloggs # Multiple responsible persons?
services:
- p45-specific-service
- stage-y  # ioc
centralServices:
- central-service-being-made-use-of

Docs on how to add a new Kind of Entity: https://backstage.io/docs/features/software-catalog/extending-the-model#adding-a-new-kind


Use https oembed endpoints where available

Fixes #6288
Many of the oembed endpoints currently listed with an http:// URL now redirect to https://. Changing these to https:// saves a redundant redirect and avoids failures where the http URL has been blocked (see #6288). Also simplified the patterns for matching http or https - the group in http(?:s)? is redundant and should just be https?.
To find the endpoints that had changed to https, I simply visited each URL as given, with no additional parameters, and if it redirected to an https URL on the same domain, updated the URL (and tweaked the corresponding regexps to allow https URLs if they didn't already). I didn't spend any time verifying which of them still actually provided a working oembed service (and some of them definitely do look dead).

Merged in bb3243b9a9929b23c697258089299ffbbfd00b29


Strip leading zeros on dates

One place in the code stripped the leading zero from the date. We don't do this anymore with https://github.com/cfpb/cfgov-refresh/pull/871, but should we? Should the dates be NOV 02, 2015 or NOV 2, 2015?

cc @schaferjh @duelj @ajbush

Hmmm. The main reason I can think of for keeping the leading zero is for uniform spacing.....but that doesn't seem like it should be more important than legibility, and I definitely think the date is more legible without the 0. Any other opinions?

This is still an issue on the blog and elsewhere probably, but could likely be solved by copying the work done in https://github.com/cfpb/cfgov-refresh/pull/3204

Discussion in https://github.com/cfpb/cfgov-refresh/pull/3240 came to the likely conclusion that a wrapper around strftime would be what is needed to fix this.
See the "dates and date ranges" section in the content strategy doc linked via https://[GHE]/UX/Content-Strategy for background on date styles.

Another example, https://www.consumerfinance.gov/coronavirus/mortgage-and-housing-assistance/ has Page last modified: July 06, 2021 at the bottom of the page.


Code Review - Initial Component Release

Hey all! This is my second Dash app ever (first one being dash-webcam). I appreciate your reviews for this one.
Accept the Collaboration invite: https://github.com/xhlulu/dash-player/invitations
Demo: https://dash-player-usage.herokuapp.com/

@chriddyp I added three new props that lets you control the update interval rate for current time, second loaded and duration. Check it out here: https://dash-player-usage.herokuapp.com/


The Reader does not accept refreshing manually

Steps to Reproduce

Change "Refresh Feeds" settings to any option.
Change the settings to "Manually only".

What is happening: the reader does not accept that option and always revert to the last chosen option before switching to manual refresh.
This bug has been happening for very long time.
Expected behavior
The player does not auto refresh and only refresh manually.
Screenshots or screen recording
No response
Device, Operating system, and app version
Version: 2024.12.100-dev

@TheOneImprove I wasn't able to reproduce this. Does this happen to any other setting or just the "Refresh Feeds" one?


wanted to add signed certificates for url how to add certificates to nginx ingress controller

Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: [e.g. iOS]
Browser [e.g. chrome, safari]
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

got it updated certificates via helm upgrade command in k8s-configure by creating new tls secret

Hi!
Thank you for your request!
For convenience, we have added a guide to updating ssl certificate - https://github.com/hystax/optscale/blob/integration/documentation/apply_SSL_certificate.md


How attitude is corrected by accelerometer in EKF2

Hi, all
I'm currently trying to understand EKF2 implementation. I found yaw angle could be corrected by magnetometer, but cannot understand how pitch/roll angle is corrected by accelerometer, for accelerometer isn't taken as an observervation.
However, I've noticed that following code seems related to pitch/roll angle correction, for when I commented it out, the pitch/roll angle drifting slowly.
ecl/EKF/vel_pos_fusion.cpp
83:	if (_fuse_pos) {
...
89:		if (_control_status.flags.gps) {
...
101:		} else if (_control_status.flags.ev_pos) {
...
110:		} else {
...
117:			_vel_pos_innov[3] = _state.pos(0) - _last_known_posNE(0);
118:			_vel_pos_innov[4] = _state.pos(1) - _last_known_posNE(1);

Anyone can explain the logic briefly? Appreciate it.
@priseborough

It's hard to explain briefly. The EKF compares the velocity velocity and position predicted by the inertial navigation calculations with the GPS measurements and is able to use the inconsistency to estimate the error in the attitude. I recommend you study the matlab derivation and take a course in Kalman filtering theory and inertial navigation if you wish to understand it.
https://github.com/PX4/ecl/blob/master/matlab/scripts/Inertial Nav EKF/GenerateNavFilterEquations.m

@priseborough
Thanks for your explaination. I'll study related materials.
BTW, it seems that GPS is a necessity for correction of attitude, velocity and position.
Only with MAG, no GPS, for EKF2, I think yaw will be corrected, and velocity/position will drift. but will attitude(roll/pitch) drift of not?
Maybe I should disconnect GPS in Pixhawk, and take a look of the EKF2 output.

Without GPS, the filter operates in a mode where it uses position observations at the last known position. This constrains roll pitch drift errors provided the vehicle is not doing sustained horizontal manoeuvres.

@priseborough
Thanks for your reply. It does helps to understand EKF2.
Without GPS, as the comment of vel_pos_fusion.cpp says "No observations - use a static position to constrain drift", if the vehicle does standstill, the attitude estimation should be correct. Just as the condition you mentioned "provided the vehicle is not doing sustained horizontal manoeuvres".
In other words, if the vehicle is moving constantly, the attitude estimation will slightly be wrong for a moment, and after it stops moving, the attitude estimation will be right again.
Is the understanding right?
Just now, I unplug the GPS and blade, and take the vehicle horizontally in hand far away, meanwhile monitor the attitude output, the pitch/roll angles does go over 1 degrees. Finally, I lay the vehicle horizontally on ground, the pitch/roll angles become 0 degree in a moment.
Can this experiment show the EKF2 does slight wrong attitude estimation with GPS, and in a sustained horizontal moment?
Thanks again for you patience.


Switch order of checks in RunListener

This avoids the WARNING with UnsupportedOperationException when the
listener is called for WorkflowRuns (related to JEP-210).
This probably fixes JENKINS-55004 - Since RunListener.onFinalized is called for every finished Run (even WorkflowRuns) AFAICS, this avoids the JEP-210-related warning on every finished pipeline job...

Ping @daniel-beck @jenkinsci/code-reviewers This creates serious amounts of bogus log files - would be nice to get this fixed...

Replaced by https://github.com/jenkinsci/compress-buildlog-plugin/pull/10
@TobiX If you still care, PTAL.


dockerfile

在docker build  client里的时候发生错误：ERROR: failed to solve: process "/bin/sh -c npm install && npm i -g serve" did not complete successfully: exit code: 1，不知道您是否有解决办法

更正一下错误信息：ERROR: failed to solve: process "/bin/sh -c npm install && npm i -g serve" did not complete successfully: exit code: 254

This issue has been closed because it is over a year old and has not received any recent activity. If you are still experiencing this issue, please open a new issue and provide a detailed description of the problem


To create UI Design of the Website

To create UI design of the website with the help of Figma Designs
Below is the doc link for the features and tech stack as discussed in the meetings.
https://docs.google.com/document/d/18Z5lAuILwlqWcw9K4C4FEzFRwvym53EHkLPXNNsDF7U/edit?usp=sharing

Assigning this issue to @jayeshw28

https://www.figma.com/file/WAqQz93sPUDjkJs2t0oqK9/IIITians-Network?type=design&node-id=49%3A2&mode=design&t=vL83F6WePmJwADHa-1
The design is in the figma file, yet it is not interactive but the interactions of objects are specified in UI Kit so study the 'UI Kit' carefully.

https://www.figma.com/file/WAqQz93sPUDjkJs2t0oqK9/IIITians-Network?type=design&node-id=49%3A2&mode=design&t=vL83F6WePmJwADHa-1
This is link to  view only figma file. The design is not self Interactive, yet the Interactions you will find in _ 'UI Kit'_ page in same file so study it carefully to make the UI interactions.


GRE over IPv4 traffic from VM to Contrail is not destributed

When VMs exchange tunneled like GRE over IPv4 traffic between each other traffic is not geting destributed accross contrail cores which cause overload of one  conrail core and leads to packet drops.
Following patch fix that:
branch R3.2 version cd1162a112a48745f1ba9c215faede962bfed7d8

diff --git a/dpdk/vr_dpdk_ethdev.c b/dpdk/vr_dpdk_ethdev.c
index c11fc4d..437e0f5 100644
--- a/dpdk/vr_dpdk_ethdev.c
+++ b/dpdk/vr_dpdk_ethdev.c
@@ -769,6 +769,20 @@ dpdk_mbuf_rss_hash(struct rte_mbuf *mbuf, struct vr_ip *ipv4_hdr,
case VR_IP_PROTO_UDP:
hash = rte_hash_crc_4byte(*l4_ptr, hash);
break;

case VR_IP_PROTO_GRE:

   if (likely(l4_ptr != NULL))

   {

       struct vr_gre_key* gre_hdr = (struct vr_gre_key *)l4_ptr;

       if (likely(gre_hdr->gre_comm_hdr.gre_flags & VR_GRE_FLAG_KEY))  {

           hash = rte_hash_crc_4byte(gre_hdr->gre_key , hash);

           RTE_LOG(DEBUG, VROUTER, "%s: GRE key %d, RSS hash: 0x%x (emulated)\n",

               __func__, gre_hdr->gre_key, hash);

       } else

           RTE_LOG(DEBUG, VROUTER, "%s: GRE without key, RSS hash: 0x%x (emulated)\n",

               __func__, hash);

   }

   break;

}
mbuf->ol_flags |= PKT_RX_RSS_HASH;
@@ -873,7 +887,7 @@ dpdk_mbuf_parse_and_hash_packets(struct rte_mbuf mbuf)
mbuf->ol_flags &= ~PKT_RX_RSS_HASH;
/ Go to parsing. */
} else {

           return 0; /* Looks like GRE, but no MPLS. */

           return dpdk_mbuf_rss_hash(mbuf, ipv4_hdr, NULL); /* Looks like GRE, but no MPLS. */
       }
   } else if (ipv4_hdr->ip_proto == VR_IP_PROTO_UDP) {
       /* At this point the packet may be:

diff --git a/include/vr_packet.h b/include/vr_packet.h
index c9e542f..0257297 100644
--- a/include/vr_packet.h
+++ b/include/vr_packet.h
@@ -857,6 +857,12 @@ struct vr_gre {
unsigned short gre_proto;
} attribute((packed));
+struct vr_gre_key {

struct vr_gre gre_comm_hdr;
unsigned int gre_key;
+} attribute((packed));

struct vr_pcap {
/* timestamp seconds */
unsigned int pcap_ts_sec;

Please file review requests using Gerritt.
Raja
From: aalexeykhan<EMAIL_ADDRESS>Reply-To: Juniper/contrail-vrouter<EMAIL_ADDRESS>Date: Wednesday, July 12, 2017 at 3:25 AM
To: Juniper/contrail-vrouter<EMAIL_ADDRESS>Cc: Subscribed<EMAIL_ADDRESS>Subject: [Juniper/contrail-vrouter] GRE over IPv4 traffic from VM to Contrail is not destributed (#100)
When VMs exchange tunneled like GRE over IPv4 traffic between each other traffic is not geting destributed accross contrail cores which caouse overload of one conrail core and leads to packet drops.
Following patch fix that:
branch R3.2 version cd1162ahttps://github.com/Juniper/contrail-vrouter/commit/cd1162a112a48745f1ba9c215faede962bfed7d8
diff --git a/dpdk/vr_dpdk_ethdev.c b/dpdk/vr_dpdk_ethdev.c
index c11fc4d..437e0f5 100644
--- a/dpdk/vr_dpdk_ethdev.c
+++ b/dpdk/vr_dpdk_ethdev.c
@@ -769,6 +769,20 @@ dpdk_mbuf_rss_hash(struct rte_mbuf *mbuf, struct vr_ip *ipv4_hdr,
case VR_IP_PROTO_UDP:
hash = rte_hash_crc_4byte(*l4_ptr, hash);
break;
·         case VR_IP_PROTO_GRE:
·            if (likely(l4_ptr != NULL))

·            {

·                struct vr_gre_key* gre_hdr = (struct vr_gre_key *)l4_ptr;

·                if (likely(gre_hdr->gre_comm_hdr.gre_flags & VR_GRE_FLAG_KEY))  {

·                    hash = rte_hash_crc_4byte(gre_hdr->gre_key , hash);

·                    RTE_LOG(DEBUG, VROUTER, "%s: GRE key %d, RSS hash: 0x%x (emulated)\n",

·                        func, gre_hdr->gre_key, hash);

·                } else

·                    RTE_LOG(DEBUG, VROUTER, "%s: GRE without key, RSS hash: 0x%x (emulated)\n",

·                        func, hash);

·            }

·            break;
·         }
mbuf->ol_flags |= PKT_RX_RSS_HASH;
@@ -873,7 +887,7 @@ dpdk_mbuf_parse_and_hash_packets(struct rte_mbuf mbuf)
mbuf->ol_flags &= ~PKT_RX_RSS_HASH;
/ Go to parsing. */
} else {
·                    return 0; /* Looks like GRE, but no MPLS. */

·                    return dpdk_mbuf_rss_hash(mbuf, ipv4_hdr, NULL); /* Looks like GRE, but no MPLS. */
·                }
·            } else if (ipv4_hdr->ip_proto == VR_IP_PROTO_UDP) {
·                /* At this point the packet may be:

diff --git a/include/vr_packet.h b/include/vr_packet.h
index c9e542f..0257297 100644
--- a/include/vr_packet.h
+++ b/include/vr_packet.h
@@ -857,6 +857,12 @@ struct vr_gre {
unsigned short gre_proto;
} attribute((packed));
+struct vr_gre_key {

struct vr_gre gre_comm_hdr;
unsigned int gre_key;
+} attribute((packed));

struct vr_pcap {
/* timestamp seconds */
unsigned int pcap_ts_sec;
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/Juniper/contrail-vrouter/issues/100, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFni17dnXGIMOlHMSspIwCAFapmCUi4Iks5sNJ8igaJpZM4OVbTL.

Hello Raja,
The patch has been posted to reivew
https://review.opencontrail.org/#/c/33997/
Passed Jenkins autotest.
What next?
Shall i invite some body for review?
Thank you,
Alexey.


Question: PostgreSQL $like operator use ILIKE instead of LIKE

Hi,
Is it possible to use .find with a where parameter so PostgreSQL will use ILIKE instead of LIKE when building the query?

Never mind, I just found the answer here: https://github.com/mikro-orm/mikro-orm/blob/6c56a05a86b78fc9c3ebc6ddceb75072289e6b48/packages/core/src/enums.ts
$ilike is supported for postgres


Update ACM CRD for v1.16.0

Do not merge until 2023-08-17

Released delayed until 2023-08-14

Released delayed until 2023-08-14

Is that a typo? August 14th was a few days ago

Yea. 2023-08-21 Monday


Make systemd unit more production-like

Type: feature
Fixed the following things in systemd unit:

Added Restart=always to ensure verdaccio keeps running after fail caused by plugins (e.g. verdaccio-ldap, see https://github.com/Alexandre-io/verdaccio-ldap/issues/39)
Removed totally useless ExecStop clause
Added --config start parameter

Please read errors

I updated commit, and my big comment to your second question vanished from conversation :( I hope you still have it in your mailbox.

@tiandrey Ooops, yes, for some reason it also disappeared for me :-/ I don't see your comment anywhere. I'm adding my comment again (luckily I use a paste manager xD)

Your comment email just came in, I'm pasting
@tiandrey wrote:

I personally use fpm (https://github.com/jordansissel/fpm) - it builds DEBs and RPMs from npm just fine. And it automatically installs configs from conf subdir to /etc/verdaccio.

@tiandrey could you add a new section here https://github.com/verdaccio/verdaccio/blob/master/docs/server.md and document all these new things? There was no info before, but I'm sure user will ask in the future.

Sure. Updated docs.

It looks good to me, except the pending question about the Restart option.


AggregatedResultBundle

Introduce AggregatedResultBundle to be used in load_tracking Invariance aggregated tests and #829

@ionela-voinescu Following our discussion:

Updated AggregatedResultBundle to optionally force the Result to use, to allow using different result aggregation functions.
Made use of it in Invariance.test_freq_invariance, which is now properly handling Result.UNDECIDED. It now returns an AggregatedResultBundle, itself wrapping one AggregatedResultBundle for each CPU. The inner per-CPU AggregatedResultBundle are regular ones, but the top-level one only requires one inner bundle to pass, instead of all of them.

note to self: ready to be merged once the sched_android tests are validated using AggregatedResultBundle


Building "x64-windows-dbg" failed

I'm trying to install PCL for Visual Studio 2015 Update 3. The following error appears during the installation with vcpkg:
-- Build x64-windows-rel
-- Build x64-windows-rel done
-- Build x64-windows-dbg
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:44 (message):
Command failed: C:/Program Files/CMake/bin/cmake.exe;--build;.;--config;Debug;--target;install;--;-v
Working Directory: C:/Users/Anna/vcpkg/buildtrees/pcl/x64-windows-dbg
See logs for more information:
C:\Users\Anna\vcpkg\buildtrees\pcl\install-x64-windows-dbg-out.log
C:\Users\Anna\vcpkg\buildtrees\pcl\install-x64-windows-dbg-err.log
Call Stack (most recent call first):
scripts/cmake/vcpkg_build_cmake.cmake:73 (vcpkg_execute_required_process)
scripts/cmake/vcpkg_install_cmake.cmake:24 (vcpkg_build_cmake)
ports/pcl/portfile.cmake:61 (vcpkg_install_cmake)
scripts/ports.cmake:72 (include)
Error: Building package pcl:x64-windows failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with .\vcpkg update, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
Package: pcl:x64-windows
Vcpkg version: 0.0.100-unknownhash
Is there a solution to continue the installation?

I was able to solve the problem, apparently there was not enough disk space to terminate the installation


Create performance benchmark tests for all plugins

Is your feature request related to a problem? Please describe.
There are no individual performance benchmark testing for each of the plugin components by code commits (PR). Most teams complete code readiness on the code freeze date and test after the release candidate is built. Teams should have a nightly load testing framework for each code commit/PR similar to Apache Lucene’s - http://people.apache.org/~mikemccand/lucenebench/indexing.html

@praveensameneni the framework to on-board workloads exist already but plugin teams need to provide appropriate workload to automate the benchmark runs. This can be completed only after plugin teams provide the customized workload.

@bbarani is correct.  We run nightly performance tests with a few selected workloads from the complement included with OSB.  These don't focus specifically on plugins, but exercise any in the overall flow.  To test a specific plugin, an appropriate workload or modification to one of the existing ones would be necessary.


vscode can't open twon instance?

I writing the fron-end code from Sublime Text3 to Visual Studio Code. But I only open one instance of vscode one times, sometimes, I should open another project at same time. Now the vscode on windows only support one intance one time?

Looks like a duplicate of https://github.com/Microsoft/vscode/issues/48


Create a test for #38

We should write a regression test for #38 in a follow-up PR.

Specifically it looks like we have no tests of the to_stdout code path reached via the CLI AFAICT.


Modified the readme.

What the program do ?

In what programming language it is written?

This pull request do not contains files in specific folders. Please fix it and reopen


Not able to run in the code

Do we need monitor and scoreboard in order to get the output ?
and if possible kindly share the final code asap

By seeing title Can you pin point your issue what you are not able to run in code?
You can always use waves unless if you are using this for simple transactions

we are running the exact code from github
getting this issue
On Fri, 16 Feb, 2024, 00:15 makararasi, @.***> wrote:

By seeing title Can you pin point your issue what you are not able to run
in code?
You can always use waves unless if you are using this for simple
transactions
—
Reply to this email directly, view it on GitHub
https://github.com/makararasi/UVM_AXI4-Stream/issues/2#issuecomment-1946930676,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BGF7VDJGWKEA37HPO6HTTXDYTZJTLAVCNFSM6AAAAABDKYMNFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBWHEZTANRXGY
.
You are receiving this because you authored the thread.Message ID:
@.***>

this is the error
** Error: (vopt-13320) Use '-top ' to specify the top-level
module/architecture.
On Fri, 16 Feb, 2024, 00:49 Shubham Sharma, @.***>
wrote:

we are running the exact code from github
getting this issue
On Fri, 16 Feb, 2024, 00:15 makararasi, @.***> wrote:

By seeing title Can you pin point your issue what you are not able to run
in code?
You can always use waves unless if you are using this for simple
transactions
—
Reply to this email directly, view it on GitHub
https://github.com/makararasi/UVM_AXI4-Stream/issues/2#issuecomment-1946930676,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BGF7VDJGWKEA37HPO6HTTXDYTZJTLAVCNFSM6AAAAABDKYMNFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBWHEZTANRXGY
.
You are receiving this because you authored the thread.Message ID:
@.***>

When you are mentioning an issue you have to mention the steps you followed to reach this issue and put whole log. Its hard to understand single line error message

The steps we followed are we did not change anything in the code we just downloaded the files and tried to run on the eda playground tool online by uploading the files there.
In the top.sv file in the run_test() we mentioned the test name i.e. run_test("axi4_test") and we just select the tool as Mentor Questa and run the porogram.
rest of the code is same.

The steps we followed are we did not change anything in the code we just downloaded the files and tried to run on the eda playground tool online by uploading the files there. In the top.sv file in the run_test() we mentioned the test name i.e. run_test("axi4_test") and we just select the tool as Mentor Questa and run the porogram. rest of the code is same. uart.txt

??

This is not with steps mentioned in repo. Debug your own test issues or post edaplayground link and I will support when I get time.

https://www.edaplayground.com/x/nRkD
asap


Interactive strategic plan URL is broken

Visit /budget/strategic-plan/
Click Interactive URL for /budget/strategic-plan/interactive/
Get Django default 404.

cc @kave @kurtw

So when DEBUG = True, it won't render out 404 view. If you turn debug off then you'll see the correct page displayed, however you also won't get the static assets because when DEBUG is off django won't do the configuration to render those things. (on the servers that's handled by apache)

So is DEBUG = True set on flapjack.demo then? Because it's the proper 404 on [flapjack.demo]/budget/strategic-plan/interactive/, but it should be the interactive strategic plan page not a 404.
Should look like [refresh.demo]/budget/strategic-plan/interactive/

Related bug: #867

This particular issue was fixed when we moved to wagtail.


CI sidechain integration test failed randomly

Fail happened at PR https://github.com/integritee-network/worker/pull/1022, run https://github.com/integritee-network/worker/actions/runs/3141362962/jobs/5104418212
Second run passed. Still wanted to document it somewhere in case it happens again
2022/09/28 07:44:42 Ready: http://integritee-worker-2:4646/is_initialized.

Worker 1 logs:
Syncing Parentchain block number 7 at Sidechain block number  201
[2022-09-28T07:44:44Z ERROR itp_top_pool_author::author] Error removing trusted call from top pool: PoolError(InvalidTrustedOperation)
[2022-09-28T07:44:44Z ERROR its_consensus_aura::block_importer] Could not remove call Hash(0xc5ddbedfa84f6981372e6c29c94795c966dbf3fce0f7c8bee1874ed0f6392eb9) from top pool

Worker 2 logs:
[2022-09-28T07:44:38Z WARN  its_consensus_common::peer_block_sync] Got ancestry mismatch error upon block import. Attempting to fetch missing blocks from peer
[2022-09-28T07:44:43Z ERROR its_consensus_aura::block_importer] Could not remove call Hash(0x384b33660ea41b26f281e89d27f20e6eed5535029a356972f81dd3e8d5d3e10c) from top pool
[2022-09-28T07:44:44Z ERROR itp_top_pool_author::author] Error removing trusted call from top pool: PoolError(InvalidTrustedOperation)
[2022-09-28T07:44:44Z ERROR its_consensus_aura::block_importer] Could not remove call Hash(0x837d2b8257ea6be4153c4c7bcc6a10188274b2fc6f7ba5de75f2e2623a20b239) from top pool

I can confirm it 😂 it happens in our CI as well, with parachain as parentchain.

The error messages about not being able to remove an operation from the TOP pool are false positives. They were introduced by mistake, with PR #972. Not being able to remove an operation when importing a sidechain block is part of our 'regular' workflow.
That being said, it does not explain the failures we see. We'll have to investigate further. It might be a rare case of a fork happening on the sidechain. Since we don't handle forks yet, the integration test will fail.

I noticed that if I always use worker1 to send extrinsic (for balance-transfer) and balance-getter, the test passes - at least in my 20+ tests so far.

Looking at the logs again, I suspect that we have forks in our sidechain more often than we would like. I see a lot of messages of the kind
Sidechain block from queue (number: 213) was already imported (current block number: 213). Block will be ignored.

This can be an indication for forks happening. Those would also explain why our sidechain tests fail (on an almost regular basis now). The tests explicitly send the getters and calls to both workers to ensure we have consistency on the sidechain.
Once we implement a way of tracking forks, using our sidechain finality concept (issue #687) we will be able to confirm or disprove these suspicions.

A first investigation and subsequent resolution was done in PR #1087 (also added some more explanations in the PR description).
From what I found, we're not dealing with forks, but we see a number of blocks that are either discarded upon proposal or upon import, because of latency issues. Those effects however do not produce forks.

For completeness, I will document some more of my findings regarding the sidechain timings here (some of which were also described in PR #1087).
When running the sidechain under certain performance constraints (such as a GitHub action runner), we observe 2 effects:

Sidechain block proposals are discarded because slot time is exceeded
Sidechain blocks are broadcasted and added to the import queue AFTER the next slot has also begun producing a sidechain block. This will result in blocks with duplicate block numbers, and the second block will be discarded upon import.

Note: When discarding a block either on proposal or import, the executed calls / state diff it contained are not lost for good. The calls remain in the TOP pool until they are successfully imported in a block. Which means they will simply be executed again in the next proposed block.
Both of these behaviors do not result in a fork or compromise the integrity of the sidechain. In order to observe this behavior in the logs, I added the following log levels to components:
RUST_LOG=warn,ws=warn,sp_io=warn,substrate_api_client=warn,jsonrpsee_ws_client=warn,jsonrpsee_ws_server=warn,enclave_runtime=warn,integritee_service=warn,ita_stf=warn,enclave_runtime::top_pool_execution=info,its_rpc_handler::import_block_api=info,its_consensus_slots=info,itp_stf_executor::executor=debug

This can be set in your local shell, or in the docker/docker-compose.yml file, in the environment section of the worker.
Log Outputs
Duplicate block imported
--- START SLOT 1 ---
[2022-11-01T17:47:02Z INFO  enclave_runtime::top_pool_execution] Elapsed time to process sidechain block import queue: 152 ms
[2022-11-01T17:47:02Z INFO  enclave_runtime::top_pool_execution] Remaining time in slot (id: Slot(5557749408), stage Before AURA): 146 ms, 48.66666666666667% of slot time
[2022-11-01T17:47:02Z INFO  its_consensus_slots] Proposing sidechain block (number: 157, hash: 0xb9ae…9bdc) based on parentchain block (number: 6, hash: 0xb6e474201e0538e1fc4242eb36c63fe13fb46b6b10c3f0a93e7be78668e38758)
[2022-11-01T17:47:02Z INFO  enclave_runtime::top_pool_execution] Remaining time in slot (id: Slot(5557749408), stage After AURA): 84 ms, 28.000000000000004% of slot time
[2022-11-01T17:47:02Z INFO  enclave_runtime::top_pool_execution] No time remaining in slot (id: Slot(5557749408), stage: After broadcasting and sending extrinsic)
--- END SLOT ---

--- START SLOT 2 ---
[2022-11-01T17:47:02Z INFO  enclave_runtime::top_pool_execution] Elapsed time to process sidechain block import queue: 0 ms
[2022-11-01T17:47:02Z INFO  enclave_runtime::top_pool_execution] Remaining time in slot (id: Slot(5557749409), stage Before AURA): 285 ms, 95% of slot time
[2022-11-01T17:47:02Z INFO  its_rpc_handler::import_block_api] Add block 157 to import queue
[2022-11-01T17:47:02Z INFO  its_consensus_slots] Proposing sidechain block (number: 157, hash: 0x629b…8454) based on parentchain block (number: 6, hash: 0xb6e474201e0538e1fc4242eb36c63fe13fb46b6b10c3f0a93e7be78668e38758)
[2022-11-01T17:47:02Z INFO  enclave_runtime::top_pool_execution] Remaining time in slot (id: Slot(5557749409), stage After AURA): 222 ms, 74% of slot time
[2022-11-01T17:47:02Z INFO  enclave_runtime::top_pool_execution] Remaining time in slot (id: Slot(5557749409), stage After broadcasting and sending extrinsic): 164 ms, 54.666666666666664% of slot time
[2022-11-01T17:47:02Z INFO  its_rpc_handler::import_block_api] Add block 157 to import queue
--- END SLOT ---

--- START SLOT 3 ---
[2022-11-01T17:47:03Z WARN  its_consensus_common::peer_block_sync] Sidechain block from queue (number: 157) was already imported (current block number: 157). Block will be ignored.

Here we see that block 157 is being proposed (slot 1), but it is only added to the import queue AFTER the subsequent slot (2) has already started, so we did not import block 157, so the last block we know is still 156 and we propose another block 157. When slot 3 starts, we find 2 blocks with number 157 there. We import the first one and discard the second (which results in the log warning).


Include requirements.pip in the sdist

requirements.pip isn't being included in the final sdist package resulting in failures during pip install. Noticed this when trying to install from PyPi:
# pip install gutenberg
Collecting gutenberg
  Using cached Gutenberg-0.4.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 20, in <module>
      File "/tmp/pip-build-SUHROb/gutenberg/setup.py", line 19, in <module>
        install_requires=list(line.strip() for line in open('requirements.pip')))

    IOError: [Errno 2] No such file or directory: 'requirements.pip'

This fixes that. The PyPi package will need to be updated.

Apparently I'm solving a non-problem. A fresh checkout of this repo + python setup.py sdist generates an installable sdist. So perhaps PyPi just needs a corrected version.


Don't raise an error from Client.AddToUserAgent

This is essentially just string concatenation, there is no real reason
to return an error here. This causes clients to write dozens of lines
of pointless error handling or just not handle the err.
Thinking about the contract of this function, if I've asked for it to
append "" (empty string) to the user agent, and it does nothing, then
it has been a success. Raising an error in that case is a bit weird.
"foo" + "" does not result in an error, which is essentially what
this is doing.

Thank you for your contribution to Go-AutoRest! We will triage and review it as soon as we can.
As part of submitting, please make sure you can make the following assertions:

[x] I've tested my changes, adding unit tests if applicable.
[x] ~I've added Apache 2.0 Headers to the top of any new source files.~ Not applicable

@jhendrixMSFT thanks for the reply. Do you have any versioning strategy for this repo which could accommodate this change? i.e. could this be earmarked for a future "v2.0" release (or rather, v1 looking at the current version numbers).
In the mean time I will go ahead and update the docs regarding the error.

Oh interesting, so we should be updating our code to move to that new set of SDK packages I guess. Thanks for the info!

Closing as stale.  Please reopen if still needed.


[Feature]: Add development support for Dev Containers

Background & Description
With advancements in Dev Containers it is now possible to create a reliable and consistent development working environment declaratively.
The value of implementing is:

Automate environment setup
Make environment setup independent of OS, IDEs, platform/architecture, etc. by following open specifications
Reliable and consistent environment between developers (stop causing issues like "it works on my machine")

API & Usage
No response
How to implement
With VS Code, add Dev Container and implement any environment dependencies, tooling, setup, etc.
And to do it declaratively in the same repo so setup can be version-controlled, and reproducible reliably.

I would like to understand the problem that you want to solve:
In my understanding the project doesn't contains external dependencies other than llama.cpp. And we will still need Github pipelines to be able to compile the binaries in all platforms. DecContainers will not solve this issue.
Docker containers  (in my knowledge) will limit the GPU usage to NVIDIA + CUDA, the rest of the GPU alternatives will not use the GPU executing as a docker container.
DevContainers is the technology that Microsoft is pushing, but I would like to understand the value that you expect in this project.

Because I've been fighting with setup issues and haven't managed to get it going yet.

Besides, our company hosting is containerized. And having a self-hosted AI agent is key for us. This means we need LLamaSharp to be containerized.
Having a dev container allows us to:

Quickly get a working environment where we can test a product and get it working
Understand the components, dependencies, and tooling necessary to host LLamaSharp in production
Deploy in Kubernetes/OpenShift and use standard monitoring, security, and scaling patterns

This has less to do with Microsoft tooling and more to do with using vendor-agnostic industry standards.

The issue you're getting there is because the DLLs/SOs cannot be loaded, probably because there's a missing dependency. Usually that's because of a GPU issue (e.g. bad drivers, incompatible hardware, missing cudart etc), which wouldn't be fixed by containerising it.
I don't know anything about dev containers, so feel free to tell me if anything I'm saying here is rubbish!

I didn't know much about dev container but I'm pretty sure LLamaSharp can be integrated into a docker container (CPU or CUDA). Could you please tell more about why dev container instead of docker container?

Oh, was the error you showed above from using the CPU backend? If so everything I said about GPU/drivers/etc issues is not relevant!


issues #220

fix #220

This will be fixed already in the next release with the direct support of Flutter 1.12+ (already available on the master branch). Thanks anyway for the support!


Does not work on Raspberry Pi Zero

$ granian
Illegal instruction
$ uname -a
Linux pizero 6.1.31+ #1654 Tue May 30 17:08:26 BST 2023 armv6l GNU/Linux
$ dpkg --print-architecture
armhf
$ sudo cat /proc/cpuinfo
processor	: 0
model name	: ARMv6-compatible processor rev 7 (v6l)
BogoMIPS	: 997.08
Features	: half thumb fastmult vfp edsp java tls
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x0
CPU part	: 0xb76
CPU revision	: 7

Hardware	: BCM2835
Revision	: 9000c1
Serial		:<PHONE_NUMBER>b13298
Model		: Raspberry Pi Zero W Rev 1.1
usr/local/lib/python3.9/dist-packages/granian $ objdump -f _granian.cpython-39-arm-linux-gnueabihf.so

_granian.cpython-39-arm-linux-gnueabihf.so:     file format elf32-littlearm
architecture: armv7, flags 0x00000150:
HAS_SYMS, DYNAMIC, D_PAGED
start address 0x0000e700

https://raspberrypi.stackexchange.com/questions/87392/pi1-armv6-how-to-disable-armhf-packages/87403#87403:

Both Raspbian and Debian pride themselves in suppporting the "armhf" architecture. Of course, they mean two different things !
Raspbian "armhf": ARMv6 + VFPv2
Debian "armhf": ARMv7

@JakubKoralewski I'm quite sure it's not possible to produce wheels for armv6 architecture.
The only suggestion I can make is to get the source code and Rust and try to compile it directly on the target architecture, even if I have no idea if it works. You might try with pip directly or with maturin.

@JakubKoralewski it looks like they build also granian: https://piwheels.org/project/granian/
Unfortunately it seems that recent maturin versions won't play well (this is deducted by the fact similar packages seems to suffer the same issue, like https://piwheels.org/project/pydantic-core/).
I still think this is quite hard to fix in granian itself, maybe you can open up an issue in the maturin project for this.

I'm closing this due to inactivity, it also seems some versions are available on piwheels

@gi0baro I have the same on a mac mini m1
root@4321ef340a67:/usr/src/app# granian
<jemalloc>: Unsupported system page size
<jemalloc>: Unsupported system page size
memory allocation of 8 bytes failed
Aborted (core dumped)
root@4321ef340a67:/usr/src/app#


fix(button): Padding behaviour

Description
This PR is a fix for #903. It contains the following:

Added padding props (pX and pY to button docs)

Added logic to handle parsing padding from style props on Button component

Added test case for renders the <Button> component with padding values from style prop

@lordelogos Can we remove the support for pX and pY and rely on the style like other properties?

@bukinoshita you were the author of the commit that implemented it https://github.com/resendlabs/react-email/commit/67e054114d0ffca313a9ba4edf2a053ec04c255c. would make sense to revert that first, rather than stall documentation on the current code. at present the documentation doesn't reflect the state of the component, not a good DX there.

What happens if the user passes something like this?
<Button pY={8} style={{ paddingTop: '10px', paddingBottom: '10px' }}>

What happens if the user passes something like this?
<Button pY={8} style={{ paddingTop: '10px', paddingBottom: '10px' }}>

pY and pX no longer exist
The padding values will be picked from the style prop.
in this case padding will be "10px 0 10px 0"

changes look good, but it seems like we would stop supporting p props so it looks like a breaking change, we also need to update some examples (I searched for pX inside the repo for instance and there's a couple of references to it)

Will update the examples in a new PR.
This is good to go


Add pagination builder functions

This PR adds a pair of URL builder functions to calculate next and previous URL values given a paginated client request.
This is needed for both #242 and #215 since in these cases, relying on Transaction Service next and previous values is not possible, because pagination is being modified in the request sent to Transaction Service. More context is present in this discussion.
In this PR:

buildNextPageURL and buildPreviousPageURL functions are added to the service codebase.
Unit tests are added to PaginationData covering these new functions.

Coverage: 85.115% (+0.09%) from 85.026% when pulling cc9d8cbbd3e53def518c643e102d67a7798290ee on add-pagination-cursor-builder into 1bcb254cfafb01cd18da074ebc55c323d62a76d4 on main.


Import MSBuildUserExtensionsPath\VisualStudioVersion

Historically, per-VS-version customization was possible because imports
under MSBuildUserExtensionsPath were versioned. After moving to
ToolsVersion=Current, that would no longer be possible if we continued
keying off MSBuildToolsVersion.
VisualStudioVersion and MSBuildToolsVersion used to match (from 12.0 to
15.0). So switching to VisualStudioVersion shouldn't be noticeable for
folks that aren't in the minutia of MSBuild--just place the files in the
folder you logically would have anyway.
Closes #4149.

cc @duncanp-sonar

On further consideration (https://github.com/Microsoft/msbuild/issues/4149#issuecomment-461633740) I've talked myself out of this. It's nice to have a single place for "all MSBuilds 16+" (saves churn on folks who use user extensions), and if it becomes necessary for a user extension to further have a dev16/dev17 (or whatever) split, it can handle that internally by further conditional imports.
Distributing an update with conditional imports would take the same amount of effort as distributing an update to support the 17.0 folder, so I think there's no reason to change away from Current.


SDK 2.1.500 fails to set IsTestProject in net40 projects

From @jnm2 on November 22, 2018 16:3
Here's a full repro: DotnetTestBug.zip
Projects like this worked in all SDKs up to 2.1.500 because Microsoft.NET.Test.Sdk sets <IsTestProject>true</IsTestProject>:
<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <!-- This works in all SDK versions until 2.1.500: -->
    <TargetFramework>net40</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="NUnit" Version="3.11.0" />
    <PackageReference Include="NUnit3TestAdapter" Version="3.11.0" />
    <PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
  </ItemGroup>

</Project>

E.g. using SDK 2.1.403, you get this output for dotnet test:
Test run for C:\Users\Joseph\Desktop\DotnetTestBug\Using SDK 2.1.403\bin\Debug\net40\TestProject1.dll(.NETFramework,Version=v4.0)
Microsoft (R) Test Execution Command Line Tool Version 15.8.0
...
Test Run Successful.

Starting with SDK 2.1.500, <IsTestProject>true</IsTestProject> is no longer set. dotnet test gives:
Skipping running test for project C:\Users\Joseph\Desktop\DotnetTestBug\Using SDK 2.1.500\TestProject1.csproj. To run tests with dotnet test add "\<IsTestProject>true\<IsTestProject>" property to project file.

Note that the same <PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" /> is used in both cases.
Wasn't sure if this belonged here or at https://github.com/Microsoft/vstest/issues.
Issues

Is it your intention to require test projects which include a net40 target to have to manually include <IsTestProject>true</IsTestProject> directly in the test csproj? Why isn't this the case for net45, since VSTest 15.9 supports net40 and net45 equally?

To run tests with dotnet test add "<IsTestProject>true<IsTestProject>"

This is invalid XML. Second tag should be a closing tag: <IsTestProject>true</IsTestProject>

Copied from original issue: dotnet/sdk#2690

@livarcocc Seems like a problem with build and the way nuget is resolving the targets for net40 framework.
Building a project targeting net40, I obeserved that the props (Microsoft.Net.Test.Sdk) file is not getting honored.

Do you have a binlog to see why they are not being honored? And what do you mean by not being honored? Are they not being set? Are they being overwritten?

@livarcocc
Attached are the diagnostic logs for the build.
IsTestProject is being set to true for net451 project but not for net40 project.
diag_net40.txt
diag_net451.txt

@livarcocc Gentle ping.

@jnm2 While we identify and fix this issue, I hope adding the tag in the csproj works for you.
@ViktorHofer There was need for a separate net40 folder, as net45 used to suffice.
With changes to dotnet test to actually check for IsTestProject property before running the tests, we identified that props(which adds the IsTestProject property) wasn't getting honored for net40 projects.
I have shared the log outputs in my previous comment, in case you want to take a look.
Will creating another folder net40 resolve this? Is that the guidance ?

Instead of adding an additional net40 folder I would just downgrade the net45 one to net40. With that both the props and targets files will be honored. I can send a PR for that if you agree.

Sounds fine to me.
/cc: @mayankbansal018

Downgrading to net20 if fine, as long as the props file gets picked up.

Why? Net40 is the minimum supported version.

@ViktorHofer That was just a sarcastic remark I assume, please go ahead make the change. :)

@ViktorHofer, @singhsarab , I didn't mean it to be sarcastic. I just misread your earlier comment & thought you were moving it to net20, because when we tried it locally net40 did not work for us. Please go ahead and make your change.


Configure codecov

Closes #108.
Summary
This patch configures codecov in the repository.
Checklist

[x] Read the contributing guidelines.
[x] Configured pre-commit and ran colcon test locally.
[x] Signed all commits for DCO.
[ ] Added tests (regression tests for bugs, coverage of new code for features).
[x] Updated documentation (as needed).
[x] Checked that CI is passing.

.codecov.yml reference isn't particularly straightforward.

@hidmic Tell me about it :sweat:. Done in https://github.com/Ekumen-OS/beluga/pull/191/commits/a213ee10b9beb008511f04239a2d2e62e5ad7411.


Fix media gallery issues

https://franklin.moleculardevices.com/products/microplate-readers/multi-mode-readers/spectramax-i3x-readers
Please fix these issues, globally.

Remove the scroll bar in the video gallery pop-up.

Once the carousel reaches the last slide, it should automatically cycle back to the first slide.

Move the arrow icon slightly upwards to center

@MeghnaTewari can you verify if all issues are fixed here? https://main--moleculardevices--hlxsites.hlx.page/products/microplate-readers/multi-mode-readers/spectramax-i3x-readers

@duynguyen Issue number 1 and 2 are still reproducible to me

@MeghnaTewari sorry wrong link: https://936--moleculardevices--hlxsites.hlx.page/products/microplate-readers/multi-mode-readers/spectramax-i3x-readers

@duynguyen Other changes look good, but there is still an issue with the arrow icon. For some images/ videos, it is still not in the center. Can we do something about it?
Example- https://936--moleculardevices--hlxsites.hlx.page/products/microplate-readers/multi-mode-readers/spectramax-i3x-readers#

https://936--moleculardevices--hlxsites.hlx.page/products/cellular-imaging-systems/high-content-imaging/imagexpress-pico#

Also, I have noticed images that are originally smaller, are extremely zoomed in here
Example- https://936--moleculardevices--hlxsites.hlx.page/products/cellular-imaging-systems/high-content-imaging/imagexpress-pico#

Screenshot from live

This image is cutting off from the bottom

Additionally, when you click the back arrow button from the 2nd slide, it takes you to the last slide instead of the first slide.
https://936--moleculardevices--hlxsites.hlx.page/products/cellular-imaging-systems/high-content-imaging/imagexpress-pico#

@MeghnaTewari could you please check again? I align all images to center of the page. Arrow buttons should be in fixed position so that you don't need to move mouse when clicking them.

Looks great! Thanks.


Map view

We should offer a map view for things like heatmaps etc.

We could accept a subset of geoJSON like this:
{
  "time": "{iso8601-date-time}",
  "value": {
      "total": {
         "value1": {
           "geometry": ... SOME GEOJSON VALUE ...
           "value": "123"
         }
      }
   }
}

Or the geometry value could be a URL to a GeoJSON feature (e.g. http://mapit.mysociety.org/area/2514.geojson)


feat: area/cyclops-ui: Add support for Template Status Check

closes #303
📑 Description
✅ Checks

[ ] I have updated the documentation as required
[x] I have performed a self-review of my code

ℹ Additional context
@petar-cvit the video you're seeing below was tested some hours ago until I pulled the latest changes, to test the status check feature I intentionally removed chart.yaml from the template named as test-3 and performed status check which failed as per the feature and the templates those were still valid successfully passed the status check.
https://github.com/cyclops-ui/cyclops/assets/99421476/2d3eb046-4d0b-4f8f-b9da-0f38746698d4
But the problem arises when I pulled the latest changes before Opening this PR, I thought of revalidating the feature but this time the outcome was something different, in the previous video you can see the template named as test-3 failed the status check as it didn't contain chart.yaml but when I tested again with the same scenario in the below video after pulling latest changes the status check even passed for the template reference named test-2 which didn't contain files like chart.yaml, values.schema.json, but after the deletion of the repo the status check failed as expected.
https://github.com/cyclops-ui/cyclops/assets/99421476/23689991-21e7-465d-883b-d103e117fef0
I don't know if it is intentional or not but this commit seems to be the reason, and also in the latest changes the template reference check feature is not there anymore, templates are being created/edited from invalid references also without chart.yaml

Hey @Sheikh-Abubaker, I did this intentionally since we technically can deploy a template without a Chart.yaml and values.schema.json, that's why I decided not to return an error.
You can test it by setting a GitHub repo that doesn't exist or a path that doesn't exist. Also, could you print a specific error on why the template failed? You should get it from the backend if it fails.
But apart from this, looks great!

Also, could you print a specific error on why the template failed? You should get it from the backend if it fails.

@petar-cvit DONE!!
https://github.com/cyclops-ui/cyclops/assets/99421476/8f2a62f1-f8f3-4869-ba04-6880e029fa57

Hey @Sheikh-Abubaker, I did this intentionally since we technically can deploy a template without a Chart.yaml and values.schema.json, that's why I decided not to return an error.

Yes that's right, I myself have seen many helm charts that don't have values.schema.json but still they are valid, so it's great and more flexible this way.

Hey @Sheikh-Abubaker, could you set Validate as the column name?

could you set Validate as the column name?

Hey @petar-cvit DONE🎉!!!!

Looks good! Left some comments, but great job overall

Thank you!!!😅

Thanks @Sheikh-Abubaker 🧡

You're welcome @petar-cvit 🧡


PRL-6019 - Changes to include citizen documents for system generated,…

JIRA link (if applicable)
https://tools.hmcts.net/jira/browse/PRL-6019
Change description
Added changes to include citizen documents with system generated docs, orders from prev proceedings, awp, sos & bulk scan uploaded docs
Does this PR introduce a breaking change? (check one with "x")
[ ] Yes
[x] No

Merging citizen view all documents changes into one common base branch


add hound add script for linux

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@ebbeb5d). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master       #7   +/-   ##
=========================================
  Coverage          ?   97.73%
=========================================
  Files             ?       36
  Lines             ?      796
  Branches          ?        0
=========================================
  Hits              ?      778
  Misses            ?       18
  Partials          ?        0

Impacted Files
Coverage Δ

...tTests/Predicates/AnyPredicateEquatableTests.swift
97.14% <ø> (ø)

Tests/MockSwiftTests/Mocks/MockableTests.swift
100% <ø> (ø)

...sts/MockSwiftTests/Predicates/PredicateTests.swift
92.85% <ø> (ø)

...ckSwiftTests/Mocks/MockGivenIntegrationTests.swift
97.43% <ø> (ø)

...unctions/Behaviour/MockDefaultExtensionTests.swift
100% <ø> (ø)

Tests/MockSwiftTests/Mocks/VerifiableTests.swift
100% <ø> (ø)

...ts/Functions/Calls/FunctionCallRegisterTests.swift
100% <ø> (ø)

Tests/MockSwiftTests/Mocks/MockTests.swift
100% <ø> (ø)

...iftTests/Predicates/PredicateComparableTests.swift
96.1% <ø> (ø)

...s/Functions/Behaviour/FunctionBehaviourTests.swift
100% <ø> (ø)

... and 5 more

Continue to review full report at Codecov.

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