Redesign of Hybrid API (GPU Manager) to support concurrent kernel execution

Original issue: https://charm.cs.illinois.edu/redmine/issues/1393

The original design of GPUManager had two data transfer streams and one kernel stream per GPUManager instance, which did make use of the memory copy engines on the GPU but failed to utilize the concurrent kernel execution feature.
More importantly, it relied on an inefficient polling scheme, where the scheduler periodically invokes a function that handles workRequests sitting in a queue and blocks the CPU until all relevant work for the workRequest at the head of the queue is complete. While it did allow overlap of data transfer and kernel execution by handling multiple workRequests in the queue, it was limited by the one kernel stream and synchronization caused by the polling scheme.
The new design is to utilize multiple kernel streams per GPUManager instance to allow concurrent kernel execution (multiple kernels may execute simultaneously, as long as one kernel is not using all resources of the GPU), and to make use of stream callbacks (supported from CUDA 5.0) to remove the CPU blocking caused by the current mechanism. The user's point of view does not change; he/she creates workRequests, calls enqueue() and does some other useful work on the CPU before the callback function is invoked, just like before.

Original date: 2017-02-18 01:34:28

Up for gerrit review.

Original date: 2017-03-01 00:07:44

Previous gerrit commit split into multiple smaller ones.
New gerrit commit: [[~~https://charm.cs.illinois.edu/gerrit/#/c/2274/~~ https://github.com/UIUC-PPL/charm/commit/08d5627a7434dd0967a22f710ac53b3a79af1a08]]

Original date: 2017-09-06 20:51:34

Includes 2 schemes: CUDA event-based & CUDA callback-based, but the default is CUDA event-based due to better performance.
New gerrit patch will be up soon.

Original date: 2017-09-07 19:20:57

Patch: ~~https://charm.cs.illinois.edu/gerrit/#/c/2994/~~ https://github.com/UIUC-PPL/charm/commit/01df5366006a6776c217667cd1399ac04a2d9829


[feature request] Add functionality for setting personal Wallhaven API token

WIP

Irrelevant now due to Wallhaven integration being removed


Ensure proxy and broker stats are reported to Prometheus (with 0) even when no traffic is present

Motivation
In broker/proxy dashboard an instance is not appearing if there's no traffic. Ensure we report 0 if an instance is up but not having any topics/traffic.

run cpp tests


feat: Recursion in public kernels and rollup circuits

This PR adds recursion to both the public kernel and rollup circuits.

Docs Preview
Hey there! 👋 You can check your preview at https://664b20c1da79e896e0b95ea7--aztec-docs-dev.netlify.app


Fail to compile on arm64

When building multi-platform docker image with Hiactor v0.1.1 installed, error occurred on arm64 arch.
docker buildx build --platform linux/amd64,linux/arm64 -f interactive-base.Dockerfile -t registry.cn-hongkong.aliyuncs.com/graphscope/interactive-base --push .

# install hiactor
RUN cd /tmp && git clone https://github.com/alibaba/hiactor.git -b v0.1.1 --single-branch && cd hiactor && \
    git submodule update --init --recursive && ./seastar/seastar/install-dependencies.sh && mkdir build && cd build && \
    cmake -DCMAKE_INSTALL_PREFIX=/opt/flex -DHiactor_DEMOS=OFF -DHiactor_TESTING=OFF -DHiactor_DPDK=OFF -DHiactor_CXX_DIALECT=gnu++17 -DSeastar_CXX_FLAGS="-DSEASTAR_DEFAULT_ALLOCATOR -mno-avx512" .. && \
    make -j && make install && rm -rf /tmp/hiactor

#0 278.7 /tmp/hiactor/build/seastar/src/core/reactor.cc: In member function ‘virtual void seastar::internal::cpu_stall_detector_linux_perf_event::arm_timer()’:
#0 278.7 /tmp/hiactor/build/seastar/src/core/reactor.cc:1204:44: error: attributes at the beginning of statement are ignored [-Werror=attributes]
#0 278.7  1204 |     if (_enabled && _current_period == ns) [[likely]] {
#0 278.7       |                                            ^~~~~~~~~~
#0 631.0 cc1plus: all warnings being treated as errors
#0 631.2 make[2]: *** [seastar_build/CMakeFiles/seastar.dir/build.make:335: seastar_build/CMakeFiles/seastar.dir/src/core/reactor.cc.o] Error 1
#0 631.2 make[1]: *** [CMakeFiles/Makefile2:616: seastar_build/CMakeFiles/seastar.dir/all] Error 2
#0 631.2 make: *** [Makefile:152: all] Error 2

This might be a QEMU-related issue, the compilation can be successfully completed with m1 chip.

The compilation can be successfully completed in Mac with m1 chip.

The error now throwed after switching to a arm64 machine.


Haven

Please add Haven and Haven xAssets. Haven is a fork of Monero for private stablecoins
https://havenprotocol.org/

https://havenprotocol.org/2024/12/12/project-closure-announcement/


Elaborate all the labels

To avoid mis-understanding, need to describe all the labels here

For example:

Help Wanted

help wanted: Extra attention is needed.
good first issue: Good for newcomers.
......


Cicero-SCM-runner

Hi,
Just to leave an issue that I will be attempting to make a Cicero-SCM-runner. I guess the appropriate thing to do is to make my own fork and the make a pull-request later. Sound ok?
best,
Marit

yep perfect!
On Wed, Sep 9, 2020 at 6:38 PM Marit Sandstad<EMAIL_ADDRESS>wrote:

Hi,
Just to leave an issue that I will be attempting to make a
Cicero-SCM-runner. I guess the appropriate thing to do is to make my own
fork and the make a pull-request later. Sound ok?
best,
Marit
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/openscm/openscm-runner/issues/16, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFUH5G3EL4GW27HR4RIH7F3SE45IZANCNFSM4RBRB6CQ
.

Just a quick question; so when you run magicc you have executable binary somewhere that you run (I would need to do the same for cicero) and you set this as an environmental variable. I can't find exactly where that is set, or whether you ship with such an executable when people just install the runner (which maybe they can't really do yet, or they're expected to have the magicc executable from somewhere else). Sorry for the dumb question, I'm sure it would all be obvious for somebody else...

At the moment it's all set with a .env file, but it's not really setup properly.
Anyway, for now the simplest is if you add an extra variable into our .env.sample file (see https://github.com/openscm/openscm-runner/blob/master/.env.sample) with a name e.g. CICERO_EXECUTABLE. Then you need to make a copy of that for yourself and same it in a file called .env (i.e. do cp .env.sample .env) and then make sure your CICERO_EXECUTABLE points to the right place.
Then, whenever you need it in your code, you can get the path to that executable using get_env (see https://github.com/openscm/openscm-runner/blob/a6df89fde9acafce95c592700575706df642c022/src/openscm_runner/utils.py#L9). Note that the environment variables are read from the .env file in this line (https://github.com/openscm/openscm-runner/blob/a6df89fde9acafce95c592700575706df642c022/src/openscm_runner/run.py#L15). That will only be run when you do import openscm_runner. Turns out this isn't a very smart way to do things, but @lewisjared and I haven't got around to fixing it yet and it should be good enough for now.

Ok, a couple of questions: As you will have noticed, I have not managed to get anything together in time. I also have quite a bit of work to do to put it together. Is it still meaningful to try to get it up?
Second, it seems from the test scenario data, that the number of emissions listed are quite limited. Should other emissions just be assumed to be zero?

Also: Should the runs just go from 2015, or do I need to define historical data from somewhere?

Is it still meaningful to try to get it up?

That's up to you and the Cicero team. It's the key to running the scenarios so without this piece, it won't be possible. Do you have some efforts already? You can make a PR then I can give you some tips maybe?

Should other emissions just be assumed to be zero?

This is slightly tricky. At the moment both MAGICC and FaIR take missing emissions from the RCMIP data. If you make a PR I can give you a hand.

Should the runs just go from 2015, or do I need to define historical data from somewhere?

You need to be able to take input data which only starts in 2015. What you do thereafter is up to you. Both MAGICC and FaIR bolt on their own internally hard-coded historical emissions (which are the same as the RCMIP emissions) and do runs from 1750 onwards.

I do have a start but it is still a bit immature for a PR, but then I will try to get it to run and do a PR (will still be plenty of things to rectify...)
Taking historical from RCMIP sounds perfectly fine.
However, for future other emissions like CFCs etc. I can also take them from RCMIP, but are they the same in all ssps? Otherwise do I need to do some matching?

We’ve just used SSP245 in all cases. There are plans to do something
smarter, but that will happen elsewhere so for now just using SSP245 is
fine.
On Fri, 18 Sep 2020 at 6:15 pm, Marit Sandstad<EMAIL_ADDRESS>wrote:

I do have a start but it is still a bit immature for a PR, but then I will
try to get it to run and do a PR (will still be plenty of things to
rectify...)
Taking historical from RCMIP sounds perfectly fine.
However, for future other emissions like CFCs etc. I can also take them
from RCMIP, but are they the same in all ssps? Otherwise do I need to do
some matching?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/openscm/openscm-runner/issues/16#issuecomment-694727203,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AFUH5G2A74BRP6ERLBWLYWDSGMJLRANCNFSM4RBRB6CQ
.

Ok, nice, at least relatively easy to adhere to

So, I'm getting closer to something that resembles an actual adapter (or so I think anyway). There are quite a few moving parts in terms of files I have to use (previous input data, parameter sets etc. For now I'm making a subfolder with that stuff, hope that's an ok solution, otherwise I'd be happy to find a smarter solution).  I am hopeful that I'll be able to put in an at least nearly functional pull-request this week. Is that a somewhat acceptable time frame? (I know this has been slow, but I don't think it really could have been all that much faster...)

 (To get the input, I filter for variables I need and check if the filter is empty to decide whether to take the data from the RCMIP ssp245 or from the given input. Then many of those filters will be empty, and I'd prefer not to get inundated with those warnings...)

The warning comes from this line I think:
https://github.com/IAMconsortium/pyam/blob/master/pyam/core.py#L1339
if len(idx) == 0:
            logger.warning('Filtered IamDataFrame is empty!')

Maybe something like
import logging
logging.getLogger('pyam').setLevel(logging.DEBUG)

can suppress these warnings.
Possibly best to switch this back to logging.warning after you're done with your filtering.

Good suggestion! Only tweak, you'll want to set the logging level higher, not lower so it'll be
import logging
logging.getLogger('pyam').setLevel(logging.ERROR)

Whoopsie, thanks @znicholls! 😄

Thank you both, that worked!

Is there a full list of possible output variables with expected units somewhere, or is it just the RCMIP ones?

Names aren't perfect (if you can use RCMIP names that's probably better but we can also do internal mappings if needed) but this should list should hopefully be obvious enough? Units don't really matter (scmdata will convert without much trouble if needed) but if you follow RCMIP units you won't go wrong.
If you can build it so adding more variables later (if needed) isn't a massive issue that would be ideal.
Key variables
        "Surface Air Temperature Change",
        "Surface Air Ocean Blended Temperature Change",
        "Heat Uptake",
        # concentrations
        "Atmospheric Concentrations|CO2",
        "Atmospheric Concentrations|CH4",
        "Atmospheric Concentrations|N2O",
        # ERFs
        "Effective Radiative Forcing",
        "Effective Radiative Forcing|Anthropogenic",
        "Effective Radiative Forcing|Aerosols",
        "Effective Radiative Forcing|Aerosols|Direct Effect",
        "Effective Radiative Forcing|Aerosols|Indirect Effect",
        "Effective Radiative Forcing|Greenhouse Gases",
        "Effective Radiative Forcing|CO2",
        "Effective Radiative Forcing|CH4",
        "Effective Radiative Forcing|N2O",
        "Effective Radiative Forcing|F Gases",

Extras if you have them
        "Heat Uptake|Ocean",
        "Effective Radiative Forcing|Aerosols|Direct Effect|BC|MAGICC Fossil and Industrial",
        "Effective Radiative Forcing|Aerosols|Direct Effect|BC|MAGICC AFOLU",
        "Effective Radiative Forcing|Aerosols|Direct Effect|OC|MAGICC Fossil and Industrial",
        "Effective Radiative Forcing|Aerosols|Direct Effect|OC|MAGICC AFOLU",
        "Effective Radiative Forcing|Aerosols|Direct Effect|SOx|MAGICC Fossil and Industrial",
        "Effective Radiative Forcing|Aerosols|Direct Effect|SOx|MAGICC AFOLU",
        "Effective Radiative Forcing|HFC125",
        "Effective Radiative Forcing|HFC134a",
        "Effective Radiative Forcing|HFC143a",
        "Effective Radiative Forcing|HFC227ea",
        "Effective Radiative Forcing|HFC23",
        "Effective Radiative Forcing|HFC245ca",
        "Effective Radiative Forcing|HFC32",
        "Effective Radiative Forcing|HFC4310",
        "Effective Radiative Forcing|CF4",
        "Effective Radiative Forcing|C6F14",
        "Effective Radiative Forcing|C2F6",
        "Effective Radiative Forcing|SF6",
        # # carbon cycle
        # "CO2_AIR2LAND_FLUX",
        # "CO2_AIR2OCEAN_FLUX",

Ok, thanks that is helpful. And yes, the plan is to make it relatively (whatever that means) easy to include more variables later.

Ok, finally made a pull request. I think that it in principle works (in terms of, getting inputs running and delivering outputs in the correct format, they should also be roughly calibrated as before, but I've not done much testing of the actual outputs). It's also not based environment variables, but rather on adding inputs as extra files.


.NET Core

Any plan to upgrade the package to .net core?

Hi. Yes, but I wont have time before september to start proting.
If you have time I do appreciate a PR :smile:

If I've time, I'll do.
In the meantime if someone want to use this library with .net core, here a workaround
https://github.com/aspnet-contrib/AspNet.Hosting.Extensions

Thanks. Put it on the readme.

fyi: I've started a new branch to migrate the whole project to .net core. Because of it's internals it's quite a bit work to do so. Actual I've started a "new" project YAWebSec to have a "clean" start for dotnet core - but now I see it as a spike to get started here :smiley: .
So I've reconsidered to do the work in this project (I'll delete later YAWebSec) and bump SecurityHeadersMiddleware to Verson 3.
I think I have to map the "Projects" according to:
SecurityHeaders.Owin -> to my actual NuGet-Package (Security Headers Middleware)
And two Integration Packages Owin-AppBuilder (Katana) and AspNetCore.


add userOnboarding api

This API returns all users object who have joined the discord server and have "ONBOARDING" status for more than 31 days.
It returns users's object
Issue: #1166
API route: "users/onboarding"
Test:
Mine is users

Few lines of your code are not covered in tests please try covering them as well

Done

Can you please share the API contract for it?

Created different PR to handle same issue
https://github.com/Real-Dev-Squad/website-backend/pull/1356


Fix incorrect Style/HashSyntax autocorrection for assignment methods

In Ruby 3.1 and above, code like:
object.attr = {foo: foo}
                    ^^^ Omit the hash value.
pass

was incorrectly autocorrected to:
object.attr({foo:})
pass

The autocorrected code is valid Ruby, but is semantically different. This may and will lead to subtle bugs in user codebases.

Thanks!


Refactoring and cleanup

Listening to all your stylistic suggestions now

Tests?

What about them?

I didn't change any functionality with this PR (okay, 1 response message), so the tests didn't need to change. They only confirm that everything still works as expected.

+1, nothing really major pops out


ref cells are broken

Try compiling the and running the following javascript:
[<JavaScript>]
let foo() =
  let num = ref 0
  [1;2;3] |> Seq.iter(fun x -> num := !num + x)

Check the browsers console window and you will see the following error:
Uncaught TypeError: t.get_Value is not a function
(tested with WebSharper <IP_ADDRESS>)

This is strange, I can't seem to replicate this. This is the JavaScript I get with WebSharper <IP_ADDRESS> for your function:
foo:function()
{
 var num;
 num=[0];
 return Seq.iter(function(x)
 {
  num[0]=num[0]+x;
 },List.ofArray([1,2,3]));
}

Can you paste here what you get?

Thanks for the report. It is an issue with opening the WebSharper.UI.Next.Notation operators, which are shadowing := and ! so that they work with the Var type, but it is incompatible with WebSharper 3.0 ref proxy.
Created an issue there: https://github.com/intellifactory/websharper.ui.next/issues/18


Debug infs and logsumexp

I've found a difference in behavior between the latest versions and a (recent) previous version of the library I was using. I found this trying to debug a larger issue on an hpc application being build using jax but when trying to debug that, this was thrown which might point to the root cause of the larger issue.
I wanted to clarify if the following is expected:
Specifically it appears that when trying to use the debug_infs config option, with a special function that does some checking for np.inf itself (in this case logsumexp), the latest version of the library from pip will throw an error that was passed previously
MWE:
from jax.scipy.special import logsumexp

from jax.config import config
config.update("jax_debug_infs", True)

import numpy as np

x=np.ones(10)
y=logsumexp(x)

print(y)

Using jaxlib 0.1.64 and jax 0.2.10 this prints the value fine (note none of the values in the array that is being summed are inf)
updating to jaxlib 0.1.69 and jax 0.2.18 the following error shows:
Traceback (most recent call last):
  File "test_inf.py", line 9, in <module>
    y=logsumexp(x)
  File "/rds/user/dy297/hpc-work/install/python/lib/python3.8/site-packages/jax/_src/scipy/special.py", line 124, in logsumexp
    sign = jnp.where(out == -np.inf, 0.0, sign)
  File "/rds/user/dy297/hpc-work/install/python/lib/python3.8/site-packages/jax/_src/numpy/lax_numpy.py", line 5871, in deferring_binary_op
    return binary_op(self, other)
  File "/rds/user/dy297/hpc-work/install/python/lib/python3.8/site-packages/jax/_src/numpy/lax_numpy.py", line 421, in <lambda>
    fn = lambda x1, x2: lax_fn(*_promote_args(numpy_fn.__name__, x1, x2))
  File "/rds/user/dy297/hpc-work/install/python/lib/python3.8/site-packages/jax/_src/numpy/lax_numpy.py", line 326, in _promote_args
    return _promote_shapes(fun_name, *_promote_dtypes(*args))
  File "/rds/user/dy297/hpc-work/install/python/lib/python3.8/site-packages/jax/_src/numpy/lax_numpy.py", line 272, in _promote_dtypes
    return [lax._convert_element_type(x, to_dtype, weak_type) for x in args]
  File "/rds/user/dy297/hpc-work/install/python/lib/python3.8/site-packages/jax/_src/numpy/lax_numpy.py", line 272, in <listcomp>
    return [lax._convert_element_type(x, to_dtype, weak_type) for x in args]
  File "/rds/user/dy297/hpc-work/install/python/lib/python3.8/site-packages/jax/_src/lax/lax.py", line 454, in _convert_element_type
    return convert_element_type_p.bind(operand, new_dtype=new_dtype,
  File "/rds/user/dy297/hpc-work/install/python/lib/python3.8/site-packages/jax/core.py", line 264, in bind
    out = top_trace.process_primitive(self, tracers, params)
  File "/rds/user/dy297/hpc-work/install/python/lib/python3.8/site-packages/jax/core.py", line 604, in process_primitive
    return primitive.impl(*tracers, **params)
  File "/rds/user/dy297/hpc-work/install/python/lib/python3.8/site-packages/jax/interpreters/xla.py", line 262, in apply_primitive
    return compiled_fun(*args)
  File "/rds/user/dy297/hpc-work/install/python/lib/python3.8/site-packages/jax/interpreters/xla.py", line 379, in _execute_compiled_primitive
    check_special(prim.name, out_bufs)
  File "/rds/user/dy297/hpc-work/install/python/lib/python3.8/site-packages/jax/interpreters/xla.py", line 398, in check_special
    _check_special(name, buf.xla_shape(), buf)
  File "/rds/user/dy297/hpc-work/install/python/lib/python3.8/site-packages/jax/interpreters/xla.py", line 406, in _check_special
    raise FloatingPointError(f"invalid value (inf) encountered in {name}")
FloatingPointError: invalid value (inf) encountered in convert_element_type

And it appears to be pulling up the -np.inf used to check inside jnp.where(out == -np.inf, 0.0, sign)
Is it expected that these sorts of condition checks inside special functions should fail the debug configs?

Thanks for the report - I'm not sure why this changed between versions, but I think I know the fix. I'll try to get it in today


How to support yarn monorepo?

there are many projects which have their own jest configuration in yarn monorepo workspace, how to configure to make sure jest runner run in every projects with its coreect jest configuration?

one possible solution would be to add those folders/projects of your monorepo to you workspace using the "add folder to workspace" option.
then vscode & jest would recognize those as individual projects.

generally if you have a monorepo which has jest and its config installed to  it should works out of the box.
but if you want's it to use different jest config for each project, there is no way how my plugin can tell if a folder is actually project in a monorepo.
well there is one way - if you use the workspace option of vscode.
there are serval other ideas:
https://github.com/firsttris/vscode-jest-runner/issues/68
and also a PR
https://github.com/firsttris/vscode-jest-runner/pull/84 (
with this PR it would be possible to define one specific project-folder, instead of a dynamic project folder resolution in a mono repo, which i think i what you requested.

'add those folders/projects of your monorepo to you workspace using the "add folder to workspace" option.'  may be not fit for me, because some others config may be effected if one folder of yarn monorepo was configured to vscode's workspace.
there is no way how my plugin can tell if a folder is actually project in a monorepo. :
myabe you could resolve package.json file in workspaceroot, such as
{
  "name": "monoapp",
  "version": "1.0.0",
  "private": true,
  "main": "index.js",
  "workspaces": {
    "packages": [
      "apps/*",
      "packages/*"
    ]
  },

the value of 'private' and 'workspaces' should show you which folder is actually a project. and then you can look into package.json of the correspondent project to do further steps. It would be wonderful if each project in yarn monorepo can't be configured separately in jest-runner!

in version 0.4.24 there is a option to define a fixed project path from where jest & config is used.

I have the same problem with nx workspace. When i specify the path to a jest.config.js of one library, i can run the tests of this library without problem, but tests in other libraries do not run. When I do not specify jest.config.js it runs the test two times, one time passing and one time failing.

Dynamic Jest config (jest.config.js) resolution is now available in version 0.4.27 thx to @vrptnc
please test & report back


release-v4.36.2

release-v4.36.2
please merge https://github.com/v2fly/docker/pull/20 first

ready to merge


Does not work in subdirectories

When I try to run a deployed Lambda function I get the following error:
Syntax error in module 'src/stepfunction/cropping/wrap': invalid syntax (wrap.py, line 11)
The created wrap.py function looks like this:

# vim:fileencoding=utf-8
# wrap.py
# This file is generated on the fly by serverless-python-individually plugin.
import os
import sys

root = os.path.abspath(os.path.join(os.path.dirname(__file__)))
sys.path[0:0] = [root, os.path.join(root, "lib")]

from src/stepfunction/cropping/cropDinA4 import lambda_handler as real_handler # THIS LINE!!!

def handler(event, context):
  return real_handler(event, context)

I guess this is due to the fact that the function is in a subdirectory.
Is there a way that can be supported?

serverless uses forward slashes no matter on which OS:
https://github.com/serverless/serverless/issues/839
I got it working locally and I'll create a pull request for this later today.

Hey @FelschR thanks for the contribution. Sorry for my slow response, I got occupied recently. Anyway, I'll merge your PR later and if everything's fine.


civetweb triggers an error on Windows with Git 2.24

Describe the bug
Using west and Git on Windows worked fine up until Git 2.23 (included).
When running west update using Git 2.24 on Windows, you get:
fatal: filename in tree entry contains backslash: '\'
error: https://github.com/zephyrproject-rtos/civetweb did not send all necessary objects

To Reproduce
On Windows, and with Git 2.24:
west init zephyr
cd zephyr
west update

Additional Context

Git commit that introduced the issue: https://github.com/git/git/commit/e1d911dd4c7b76a5a8cec0f5c8de15981e34da83
Potential civetweb commit with the issue: https://github.com/zephyrproject-rtos/civetweb/commit/4ac467e3e07a2abb02b894c0b508e9885ee4d7d8
Civetweb issue: https://github.com/civetweb/civetweb/issues/812
Git for Windows issue: https://github.com/git-for-windows/git/issues/2435

Workarounds

Disable core.protectNTFS: git config --global core.protectNTFS false

Update to Git 2.25

Environment (please complete the following information):

OS: Windows
Git for Windows 2.24
Commit: civetweb 99129c5efc907ea613c4b73ccff07581feb58a7a

Users on the duplicate issue (#21321) reported the git config --global core.protectNTFS workaround did not work for them.
I would recommend:

apply the git config work around
backing up any local commits, then deleting the civetweb directory (modules/lib/civetweb) entirely
retrying west update

A note about this in our documentation would be nice, I tripped over this the other day.

A note about this in our documentation would be nice, I tripped over this the other day.

The patch fixing it appears to be making its way through review on mainline git and git-for-windows, so hopefully a new version with the fix will be out soon and we can just close this.

Closing this issue. See workarounds in the description

just a tip: if you get the error with git 2.26+, delete modules/lib/civetweb folder, then retry with west update, this fixed me some bad state


Symbol issue

The following assertion fails:
assert(type(Symbol()) === 'Symbol');  // AssertionError
It is taken from the README.md file. The actual result of the type-check is 'symbol' (lowercase)
So, type(Symbol()) !== Symbol.name.

Thanks for the issue @doasync
The reason is because typeof Symbol() == "symbol" which is an early-return in type-detect:
https://github.com/chaijs/type-detect/blob/c7895e499ecc0a93c567adef9fa2b33eec13d2ab/index.js#L54-L57
We could probably change that to:
  var typeofObj = typeof obj;
  if (typeofObj !== 'object') {
    return typeofObj === 'symbol' ? 'Symbol' : typeofObj;
  }

We'd welcome a PR, which includes that change plus a change to the tests:
https://github.com/chaijs/type-detect/blob/c7895e499ecc0a93c567adef9fa2b33eec13d2ab/test/new-ecmascript-types.js#L71-L73

May be it should return lowercase string... because Symbol is primitive data type (as well as boolean, null, undefined, number, string)


OnPress Android - onPress event not always detected

I have a view with a series of circles within an svg view that each have their own onPress event. When running in iOS on the emulator or on an iPhone the onPress events are fired as expected and immediately. When running on an Android device directly I'm finding that on almost every onPress event nothing is happening. If I double- or triple-click on the circle sometimes that'll get it to work.
Is this a known issue or are there any known culprits for this behavior?
Cheers.

duplicated https://github.com/react-native-community/react-native-svg/issues/157

Yep, looks like a duplicate. I had even searched before submitting but thanks for linking. I'll close this one.


(DOCSP-36037) Copy reviews recent changes in the Atlas Go SDK docs

Description
Please include a summary of the fix/feature/change, including any relevant motivation and context.
Link to any related issue(s):
Type of change:

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

Required Checklist:

[x] I have signed the MongoDB CLA
[ ] I have added tests that prove my fix is effective or that my feature works
[x] I have added any necessary documentation (if appropriate)
[ ] I have run make fmt and formatted my code

Further comments

Hi @wtrocki Can you please review these docs changes? It's related to your recent update. Thanks!


Some series labels are lost with current alerts definitions

On some alerts, we lose most of the labels that were attached to the original series that were evaluated. This can be problematic, because these labels can be used to do some advanced routing in Alertmanager or even help troubleshooting.
This is due to the fact that most alerts use aggregation functions and in Prometheus they return a vector of the aggregated labels only.
For example, the ProbeUnsuccessful alert aggregates on instance, so every other label is lost:
min(probe_success) by(instance) != 1

One way we could solve this is to use PromQL's join feature. This is how we could rewrite the ProbeUnsuccessful alert:
probe_success == on (instance) group_left min(probe_success) BY (instance) != 1

What do you think of this issue and the proposed solution?

@aveyrenc LGTM


Decouple PersistentCollection and QueryLanguage

Also:

Rename persistence.bson.codec to persistence.bson.codecs
Change BsonDSL now creates BsonDocuments instead of Bsons
Change BsonEncoder and BsonDecoder no longer extend Conversion
Remove support for heterogeneous arrays in Bsons
Remove java.time.ZoneDateTime from standard codecs in favor of java.time.Instant
Add BsonDocumentEncoder and BsonDocumentDecoder to treat with BsonDocuments instead of BsonValues
Add :* and :# shortcuts to BsonDSL
Add showcase to the documentation

:tada: This PR is included in version 0.4.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


VPN over Cellular

Not sure if this has been covered yet, I’m successful doing the VPN trick over wifi but unable to make it work over cellular.

That won't ever work because of iOS kernel restrictions. (I think it's security to prevent, say, T-Mobile from randomly launching apps on your device.)


Tenant is not removed when the last user of the tenant is deleted

adding the first user of the tenant; the tenant is created

auth_1                        | 2019-01-04 13:27:08,728 - INFO - User bete created by admin
auth_1                        | Consumer already exists
auth_1                        | 2019-01-04 13:27:08,818 - INFO - user bete added to group admin by admin
auth_1                        | 2019-01-04 13:27:12,557 - INFO - Will emit tenant lifecycle event teste - CREATE
auth_1                        | <IP_ADDRESS> - - [04/Jan/2019:13:27:12 +0000] "POST /user HTTP/1.1" 200 378 "-" "PostmanRuntime/7.1.1"
auth_1                        | Consumer already exists
auth_1                        | <IP_ADDRESS> - - [04/Jan/2019:13:27:31 +0000] "POST /password/resetlink?link=052ca5f81a66676ee5442d8bc3bf46d1 HTTP/1.1" 200 32 "http://<IP_ADDRESS>:8000/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
auth_1                        | 2019-01-04 13:27:40,123 - INFO - user bete loged in
auth_1                        | <IP_ADDRESS> - - [04/Jan/2019:13:27:40 +0000] "POST / HTTP/1.1" 200 352 "http://<IP_ADDRESS>:8000/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
auth_1                        | <IP_ADDRESS> - - [04/Jan/2019:13:27:53 +0000] "GET /user HTTP/1.1" 200 399 "http://<IP_ADDRESS>:8000/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
auth_1                        | <IP_ADDRESS> - - [04/Jan/2019:13:27:53 +0000] "GET /user HTTP/1.1" 200 399 "http://<IP_ADDRESS>:8000/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
auth_1                        | <IP_ADDRESS> - - [04/Jan/2019:13:27:54 +0000] "GET /pap/permission?type=system HTTP/1.1" 200 3775 "http://<IP_ADDRESS>:8000/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
auth_1                        | <IP_ADDRESS> - - [04/Jan/2019:13:27:54 +0000] "GET /pap/group HTTP/1.1" 200 318 "http://<IP_ADDRESS>:8000/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"

another user of the same tenant

auth_1                        | 2019-01-04 13:36:57,466 - INFO - User faber created by admin
auth_1                        | 2019-01-04 13:36:57,548 - INFO - user faber added to group admin by admin
auth_1                        | <IP_ADDRESS> - - [04/Jan/2019:13:37:01 +0000] "POST /user HTTP/1.1" 200 376 "-" "PostmanRuntime/7.1.1"
auth_1                        | <IP_ADDRESS> - - [04/Jan/2019:13:37:36 +0000] "GET /user HTTP/1.1" 200 587 "http://<IP_ADDRESS>:8000/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
auth_1                        | <IP_ADDRESS> - - [04/Jan/2019:13:37:36 +0000] "GET /user HTTP/1.1" 200 587 "http://<IP_ADDRESS>:8000/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
auth_1                        | Consumer already exists
auth_1                        | <IP_ADDRESS> - - [04/Jan/2019:13:38:55 +0000] "POST /password/resetlink?link=c0fc907ef9c74335108a9d2eaa5e238b HTTP/1.1" 200 32 "http://<IP_ADDRESS>:8000/" "Mozilla/5.0 (Linux; Android 6.0; MotoG3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.99 Mobile Safari/537.36"
auth_1                        | 2019-01-04 13:39:19,582 - INFO - user faber loged in
auth_1                        | <IP_ADDRESS> - - [04/Jan/2019:13:39:19 +0000] "POST / HTTP/1.1" 200 354 "http://<IP_ADDRESS>:8000/" "Mozilla/5.0 (Linux; Android 6.0; MotoG3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.99 Mobile Safari/537.36"

removing a user

auth_1                        | 2019-01-04 13:39:58,315 - INFO - user faber deleted by admin
auth_1                        | 2019-01-04 13:39:58,315 - INFO - {'id': '4', 'name': 'Bete', 'username': 'faber', 'service': 'teste', 'email'<EMAIL_ADDRESS>'profile': 'admin', 'created_date': '2019-01-04 13:36:57.535693', 'created_by': '1'}
auth_1                        | <IP_ADDRESS> - - [04/Jan/2019:13:39:58 +0000] "DELETE /user/4 HTTP/1.1" 200 42 "http://<IP_ADDRESS>:8000/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
auth_1                        | <IP_ADDRESS> - - [04/Jan/2019:13:39:58 +0000] "GET /user HTTP/1.1" 200 399 "http://<IP_ADDRESS>:8000/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"

removing the last user from the tenant

auth_1                        | 2019-01-04 13:41:00,856 - INFO - user bete deleted by admin
auth_1                        | 2019-01-04 13:41:00,856 - INFO - {'id': '3', 'name': 'Elisabete', 'username': 'bete', 'service': 'teste', 'email'<EMAIL_ADDRESS>'profile': 'admin', 'created_date': '2019-01-04 13:27:08.793973', 'created_by': '1'}
auth_1                        | 2019-01-04 13:41:01,170 - INFO - will emit tenant lifecycle event teste - DELETE
auth_1                        | <IP_ADDRESS> - - [04/Jan/2019:13:41:01 +0000] "DELETE /user/3 HTTP/1.1" 200 42 "http://<IP_ADDRESS>:8000/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
auth_1                        | <IP_ADDRESS> - - [04/Jan/2019:13:41:01 +0000] "GET /user HTTP/1.1" 200 209 "http://<IP_ADDRESS>:8000/" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36"
persister_1                   | [04/01/19 - 13:41:01] |messenger| INFO: Emitting new event message for subject dojot.tenancy@internal
persister_1                   | [04/01/19 - 13:41:01] |messenger| INFO: Received message in tenanct subject.
persister_1                   | [04/01/19 - 13:41:01] |messenger| DEBUG: Tenant is: internal
persister_1                   | [04/01/19 - 13:41:01] |messenger| DEBUG: Message is: b'{"type": "DELETE", "tenant": "teste"}'
persister_1                   | [04/01/19 - 13:41:01] |messenger| INFO: This tenant was already registered. Bailing out.

Although the message indicating that the tenant would be removed, this does not happen. If a new user of this tenant is created, he will have access to the tenant's data.
Affected Version: 0.3.0-nightly_20181227

After the last user is removed from a particular tenant, there might be resources (devices, templates or flows) still associated to it. Thus, it should not be removed.
Tenant CRUD operations should be performed by a user with administrative access in a dojot deployment and it might not be related to user CRUD operations.
Shall we close this issue?


Provide implementable functions for interfaces

Say for example you have a class, maybe CustomImage and you need to "implement" the Gdk.Paintable interface.
You can't do the following, since TypeScript would require you to IMPLEMENT all the properties and functions of the interface.
class CustomImage implements Gdk.Paintable {
}

The above would require you to actually implement all the functions in that function.
This is due to how different GObject-Introspection and Gdk.Paintable treat implementing interfaces. In GI, when you need to implement an interface, all you need to do is implement the vfunc_s.
It would be amazing if ts-for-gir had something like Gdk.Paintable.ImplementationProps or Gdk.Paintable.Interface or something, so that I could do this:
class CustomImage implements Gdk.Paintable.Interface {
}

and all I would need to implement is actually the vfunc_s.

@vixalien Good point, I'll try something there


how to pass Mat or byte[] to python as np.typing.NDArray[np.uint8]

Hi, I'm trying to use mediapipe from .net to estimate human body poses from images. Here's the python code:
import numpy as np
import mediapipe as mp
pose = mp.solutions.pose.Pose()

def mediapipe_body_pose(frame: np.typing.NDArray[np.uint8]) -> list[float]:
    keypoints: list[float] = []
    results = pose.process(frame)
    if results.pose_landmarks:
        for _, landmark in enumerate(results.pose_landmarks.landmark):
            keypoints.append(landmark.x)
            keypoints.append(landmark.y)
    return keypoints

Generated method signaure is like:
  IReadOnlyList<double> MediapipeBodyPose(PyObject frame)

Now I have an OpenCvSharp.Mat returned from VideoCapture.Read(), how do I pass it to generated method MediapipeBodyPose()?
I tried PyObject.From(mat), and get this:
System.InvalidCastException:
Cannot convert Mat [ 960*606*CV_8UC3, IsContinuous=True, IsSubmatrix=False, Ptr=0x24daa6b1b90, Data=0x28e4788e080 ] to PyObject

I figured it out.
def mediapipe_body_pose(width: int, height: int, channel: int, buffer: Buffer) -> list[float]:

    frame = np.ndarray((height, width, channel), np.uint8, buffer)

var buffer = new byte[mat.Width * mat.Height * mat.Channels()];
Marshal.Copy(mat.Data, buffer, 0, buffer.Length);
var landmarks = Program.Python
    .Infer()
    .MediapipeBodyPose(mat.Width, mat.Height, mat.Channels(), PyObject.From(buffer));

It would be nice to have a overload PyObject.From(Span<byte> data) to avoid the buffer allocating and copying.

Did you see the details on the buffer protocol?
https://tonybaloney.github.io/CSnakes/buffers/
This is mostly for returning ndarrays and reading them as spans

Yes, I saw it.
But didn't find out how to pass buffer allocated in C# to Python, untill I look through source code of PyObject.From(). The docs is about the other way around.

The buffer API only gives access to allocated ndarrays created in Python. You cannot create them from C#. I recommend using a 2-D list of floats as the input signature then creating the array in the function. Have a look at the sample project for an example with skl


enable support for accessing old servers as there is no possibility to upgrade them as they run legacy applications. No matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1

Prerequisites

[X] Write a descriptive title.
[X] Make sure you are able to repro it on the latest released version
[X] Search the existing issues.
[X] Refer to the FAQ.
[X] Refer to Differences between Windows PowerShell 5.1 and PowerShell.

Steps to reproduce
try accessing an old SSH server and you will see the problem
ssh<EMAIL_ADDRESS>Expected behavior
I hope it loads the SSH shell normally

Actual behavior
> ssh<EMAIL_ADDRESS>Unable to negotiate with <IP_ADDRESS> port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1

Error details
Unable to negotiate with <IP_ADDRESS> port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1

Environment data
PS C:\MyDartProjects\new_sali> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.3.2
PSEdition                      Core
GitCommitId                    7.3.2
OS                             Microsoft Windows 10.0.22621
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

Visuals

What is your Linux distribution and version?
try old version of ssh.exe at here:
https://github.com/PowerShell/Win32-OpenSSH/releases
This tip comes from powershell fans

What does this have to do with PowerShell?
If I run "ssh" on Linux it uses the native version typically in /usr/bin/ssh. If I use "ssh" on a Windows machine it uses the one from c:\windows\system32\OpenSSH\ssh.exe
If you want to run a legacy version of ssh.exe that is entirely up to you.

Yep ssh is something separate from PowerShell itself and is not controlled by PowerShell. You'll have to ensure the policies you've configured on the client and server match up to allow an algorithm to use. This is all done outside of PowerShell.

even removing "c:\windows\system32\OpenSSH\ssh.exe" from the path. Powershell ssh continues to work, which seems to me that Powershell has ssh built-in, that's why I opened the problem here because until a while ago it was working normally on the Linux Debian 6 server. I ended up finding a solution
PS C:\MyDartProjects\new_sali> cat C:/Users/isaque.neves/.ssh/config
Ciphers +aes128-cbc,aes256-cbc,3des-cbc
KexAlgorithms +diffie-hellman-group14-sha1
HostkeyAlgorithms +ssh-rsa
# If you authenticate using a keypair:
PubkeyAcceptedAlgorithms +ssh-rsa

Are you a powershell fan?
Powershell on ssh let you pass objects on both local and remote Linux servers by powershell-ssh-remoting.
Translate and read my post powershell tip using a browser:
http://bbs.chinaunix.net/thread-4319932-1-1.html
As far as I know, Debian 8 can use the powershell.
I don't know if the new version of Powershell will run on Debian 6.
But,because the powershell can be decompressed and run.
https://github.com/PowerShell/PowerShell/releases/download/v7.0.13/powershell-7.0.13-linux-x64.tar.gz
https://github.com/PowerShell/PowerShell/releases/download/v6.2.7/powershell-6.2.7-linux-x64.tar.gz
Would you like to try it on debian 6?

even removing "c:\windows\system32\OpenSSH\ssh.exe" from the path. Powershell ssh continues to work

You may have multiple different ssh.exe on your path. One way to identify what is being used is to start an ssh session with another host and then use with Windows Task manage to find the "ssh" process and then use "open file location" to see where it lives


Detect usage of trilogy and adapt Dockerfile & docker-compose accordingly

Trilogy has been in production use for quite some time and will see official Rails support soon: https://github.com/rails/rails/pull/47880
This makes sure we detect the usage of trilogy and adapt the output accordingly. We also skip installing the libmysql-dev headers, since they're not needed with trilogy.
Note: This is a first shot and the more I think about it, the more it might make sense to have a separate --trilogy option, instead of having nested conditions. It will result in a bit more code, but I think it's more readable this way.
What do you think?

I'm not sure what a --trilogy option would do?  Add the gem?
In general, detection is better (from a user perspective) than flags.  Flags are good for doing things that can't be detected.


lazyMap method implemented

Codecov Report

Merging #205 (abd48d3) into master (de9cedc) will decrease coverage by 2.05%.
The diff coverage is 7.69%.

@@             Coverage Diff              @@
##             master     #205      +/-   ##
============================================
- Coverage     95.19%   93.13%   -2.06%
- Complexity      176      178       +2
============================================
  Files            34       34
  Lines           499      510      +11
============================================
  Hits            475      475
- Misses           24       35      +11

Impacted Files
Coverage Δ

src/Engines/ElasticSearchEngine.php
72.58% <0.00%> (-15.66%)
:arrow_down:

src/MixedSearch.php
100.00% <100.00%> (ø)

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 de9cedc...abd48d3. Read the comment docs.

I will improve the coverage.

I think make sense to keep MixedModel with Mixedsearch together

I mean in one file

instanceof solution worked far faster than reflection class solution. For this reason I choose this one.

All checks had passed 💯


since will number -> since should be number

just a grammar thing I happened to see

NetflixOSS » SimianArmy » SimianArmy-pull-requests #32 SUCCESS
This pull request looks good

SimianArmy-pull-requests #204 SUCCESS
This pull request looks good


Vector2Angle returns degrees instead of radians

Describe the bug
Vector2Angle returns degrees instead of radians
Expected behavior
See here: https://github.com/raysan5/raylib/issues/2172 for discussion when this change happened.
All raymath functions should return radians not degrees.

#56 will close this issue


Error: The getter 'View' isn't defined for the class '_KeyboardVisibilityBuilderState'.

Could not build the precompiled application for the device.
Error (Xcode): ../../.pub-cache/hosted/pub.dev/helpers-1.2.3/lib/helpers/widgets/keyboard.dart:31:25: Error: The getter 'View' isn't defined for the class '_KeyboardVisibilityBuilderState'.

same here , i  have to rollback to 1.2.0

Same as @ycy1164656 mentioned.
Rolling back to 1.2.0 works for me too.


G Keys not working g910 Spectrum

Hello dear Developer,
i got this beautiful Keyboard and your awesome Software today.
After a little konfiguration everything worked fine, except for the g keys.
They are not changing the Color as expected.
Neither in Desktop mode, not in Cs:Go.
Did i forget anything which might be necessary for it to work properly?
Greetz Anders

You can't configure G-keys and logo with any 3rd party software(Like Artemis). This is normal.
It's Logitech SDK problem, not the software. They've said they will fix the issue, but no news yet.

Ok, thats unfortunate.
Well than that issue can be closed :)

Once Logitech SDK adds support for those keys, I will enable them in Aurora.


align zapi with rest of tools that print help with no args

This commit changes "zapi" to print help when run with no args.
The repl is now run with a new subcommand "zapi repl".
Fixes #1306

This will need to be rebased to #1334.  We should merge that first.


Example request for QLearning

Could you please add an example on how to train and implement QLearning? I find this a very interesting feature.

Hello,
I don't have an example now but you must use the "QLearningLearnForChosenAction" function to learn a new step in the current environment for an action performed.
"stateVectorNNValues" is the values of the environment now and "pastStateVectorNNValues", the values of the environment before the action.
The network must have as many output neurons as possible actions and "chosenActionIndex" is the index of the output action neuron selected.
You can check https://en.wikipedia.org/wiki/Q-learning to fast understand the logic of QLearning.

Is this suitable for reducing error on input vectors? e.g. if I have 4 (3 state, 1 error) inputs and 3 outputs, and from the outputs I take an action that then causes the error to increase or decrease, can I pass back to it the new error state or the change in error state and have it learn that what it did made things better/worse?


cant deploy organization subgraph using personal github

Do you want to request a feature or report a bug?
Bug(not sure)
What is the current behavior?
I have the correct Access token but it says that is invalid.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
It does build correctly and saving IPFS under organization fails.
What is the expected behavior?
Deploy successfully.

If this is still a problem, can you contact us in #hosted-service in our Discord?


Fix Local Scope and Functions test

This fixes #5559 but if the camper mistakenly creates a global variable and runs the test, the test will fail and also the subsequent tests will fail after correction unless the page is refreshed.
@BerkeleyTrue Once the global variable is set, they're not deleted unless page is refreshed. Is there any work around this? Seems like an architecture issue.
closes #5622

Rather than making sure that the variable is not defined globally, which as you pointed out, can lead to a sticky situation unless the page is refreshed with corrected code I think we should make the regex test that the variable declaration occurs inside the function body.

Thought this was not possible since we are in strict mode?

@BerkeleyTrue It's possible if they're actually declaring it globally with var rather than accidentally declaring it globally by leaving off var in a scoped block.

If it has a var it isn't global, but defined to the scope of the the test runner function here which means it will only be defined to the scope where the test is. Once the test completes it will not be reachable.

You should test if the variable is actually declared inside the function. And maybe reflect the console.log output to the screen, so the user see it. currently it allways returns undefined
you could also just change the console.log to one with a capitalized i like console.iog its a dirty workaround but it does fix the problem, haha :-)

You should test if the variable is actually declared inside the function. And maybe reflect the console.log output to the screen, so the user see it. currently it allways returns undefined
you could also just change the console.log to one with a capitalized i like console.iog its a dirty workaround but it does fix the problem, haha :-)

Thanks @abhisekp.  This works for the moment.

Thanks @abhisekp.  This works for the moment.

What's wrong? I still can't pass the test. what exactly the problem?


Disable old SSL Protocols < TLSv1.2

Related to https://github.com/ManageIQ/manageiq-rpm_build/issues/105
https://blog.mozilla.org/security/2018/10/15/removing-old-versions-of-tls/

@bdunne We'll need this in pods and the other locations, right?

Is there a way to default to the OpenSSL protocols defined as valid in our open ssl gem?

I don't see anywhere else that references SSLProtocol or SSLEngine on
I think we default it on the other appliances

Is there a way to know this value without looking at that config file?
In other words, if we delete this line, is it possible to discover what this value is?
Or how do we determine if not stating this at all removes the cypher that we want to remove?

In general, I think it's preferable to use the defaults that come with the system because they are likely more secure than a decision we might make.  So, it's a good question - what are the defaults if we were to remove this?

According to that, we can probably remove the -SSLv2, since it's not even there, but I'm fine with this as is.  My other question still stands though...

@bdunne We'll need this in pods and the other locations, right?

According to that, we can probably remove the -SSLv2, since it's not even there, but I'm fine with this as is. My other question still stands though...

@bdunne We'll need this in pods and the other locations, right?

Pretty sure the pods just use the standard apache configuration with only tweaking the default httpd conf rather than setting our own

@bdunne Is this still a valid PR?

SSLProtocol all -SSLv2 -SSLv3 results in:

TLSv1.0, TLSv1.1, TLSv1.2, TLSv1.3
$ nmap --script ssl-enum-ciphers -p 443 <IP_ADDRESS>
Starting Nmap 7.93 ( https://nmap.org ) at 2023-11-07 16:45 EST
Nmap scan report for <IP_ADDRESS>
Host is up (0.00030s latency).

PORT    STATE SERVICE
443/tcp open  https
| ssl-enum-ciphers:
|   TLSv1.0:
|     ciphers:
|       TLS_DHE_RSA_WITH_AES_128_CBC_SHA (dh 2048) - A
|       TLS_DHE_RSA_WITH_AES_256_CBC_SHA (dh 2048) - A
|       TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA (secp256r1) - A
|       TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (secp256r1) - A
|       TLS_RSA_WITH_AES_128_CBC_SHA (rsa 2048) - A
|       TLS_RSA_WITH_AES_256_CBC_SHA (rsa 2048) - A
|     compressors:
|       NULL
|     cipher preference: client
|   TLSv1.1:
|     ciphers:
|       TLS_DHE_RSA_WITH_AES_128_CBC_SHA (dh 2048) - A
|       TLS_DHE_RSA_WITH_AES_256_CBC_SHA (dh 2048) - A
|       TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA (secp256r1) - A
|       TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (secp256r1) - A
|       TLS_RSA_WITH_AES_128_CBC_SHA (rsa 2048) - A
|       TLS_RSA_WITH_AES_256_CBC_SHA (rsa 2048) - A
|     compressors:
|       NULL
|     cipher preference: client
|   TLSv1.2:
|     ciphers:
|       TLS_DHE_RSA_WITH_AES_128_CBC_SHA (dh 2048) - A
|       TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 (dh 2048) - A
|       TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 (dh 2048) - A
|       TLS_DHE_RSA_WITH_AES_256_CBC_SHA (dh 2048) - A
|       TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 (dh 2048) - A
|       TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 (dh 2048) - A
|       TLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256 (dh 2048) - A
|       TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA (secp256r1) - A
|       TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 (secp256r1) - A
|       TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (secp256r1) - A
|       TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (secp256r1) - A
|       TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 (secp256r1) - A
|       TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (secp256r1) - A
|       TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 (secp256r1) - A
|       TLS_RSA_WITH_AES_128_CBC_SHA (rsa 2048) - A
|       TLS_RSA_WITH_AES_128_CBC_SHA256 (rsa 2048) - A
|       TLS_RSA_WITH_AES_128_GCM_SHA256 (rsa 2048) - A
|       TLS_RSA_WITH_AES_256_CBC_SHA (rsa 2048) - A
|       TLS_RSA_WITH_AES_256_CBC_SHA256 (rsa 2048) - A
|       TLS_RSA_WITH_AES_256_GCM_SHA384 (rsa 2048) - A
|     compressors:
|       NULL
|     cipher preference: client
|   TLSv1.3:
|     ciphers:
|       TLS_AKE_WITH_AES_128_CCM_SHA256 (ecdh_x25519) - A
|       TLS_AKE_WITH_AES_128_GCM_SHA256 (ecdh_x25519) - A
|       TLS_AKE_WITH_AES_256_GCM_SHA384 (ecdh_x25519) - A
|       TLS_AKE_WITH_CHACHA20_POLY1305_SHA256 (ecdh_x25519) - A
|     cipher preference: client
|_  least strength: A

Nmap done: 1 IP address (1 host up) scanned in 0.60 seconds

SSLProtocol all results in:

TLSv1.0, TLSv1.1, TLSv1.2, TLSv1.3
  $ nmap --script ssl-enum-ciphers -p 443 <IP_ADDRESS>
  Starting Nmap 7.93 ( https://nmap.org ) at 2023-11-07 16:47 EST
  Nmap scan report for <IP_ADDRESS>
  Host is up (0.00035s latency).

  PORT    STATE SERVICE
  443/tcp open  https
  | ssl-enum-ciphers:
  |   TLSv1.0:
  |     ciphers:
  |       TLS_DHE_RSA_WITH_AES_128_CBC_SHA (dh 2048) - A
  |       TLS_DHE_RSA_WITH_AES_256_CBC_SHA (dh 2048) - A
  |       TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA (secp256r1) - A
  |       TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (secp256r1) - A
  |       TLS_RSA_WITH_AES_128_CBC_SHA (rsa 2048) - A
  |       TLS_RSA_WITH_AES_256_CBC_SHA (rsa 2048) - A
  |     compressors:
  |       NULL
  |     cipher preference: client
  |   TLSv1.1:
  |     ciphers:
  |       TLS_DHE_RSA_WITH_AES_128_CBC_SHA (dh 2048) - A
  |       TLS_DHE_RSA_WITH_AES_256_CBC_SHA (dh 2048) - A
  |       TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA (secp256r1) - A
  |       TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (secp256r1) - A
  |       TLS_RSA_WITH_AES_128_CBC_SHA (rsa 2048) - A
  |       TLS_RSA_WITH_AES_256_CBC_SHA (rsa 2048) - A
  |     compressors:
  |       NULL
  |     cipher preference: client
  |   TLSv1.2:
  |     ciphers:
  |       TLS_DHE_RSA_WITH_AES_128_CBC_SHA (dh 2048) - A
  |       TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 (dh 2048) - A
  |       TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 (dh 2048) - A
  |       TLS_DHE_RSA_WITH_AES_256_CBC_SHA (dh 2048) - A
  |       TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 (dh 2048) - A
  |       TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 (dh 2048) - A
  |       TLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256 (dh 2048) - A
  |       TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA (secp256r1) - A
  |       TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 (secp256r1) - A
  |       TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (secp256r1) - A
  |       TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (secp256r1) - A
  |       TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 (secp256r1) - A
  |       TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (secp256r1) - A
  |       TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 (secp256r1) - A
  |       TLS_RSA_WITH_AES_128_CBC_SHA (rsa 2048) - A
  |       TLS_RSA_WITH_AES_128_CBC_SHA256 (rsa 2048) - A
  |       TLS_RSA_WITH_AES_128_GCM_SHA256 (rsa 2048) - A
  |       TLS_RSA_WITH_AES_256_CBC_SHA (rsa 2048) - A
  |       TLS_RSA_WITH_AES_256_CBC_SHA256 (rsa 2048) - A
  |       TLS_RSA_WITH_AES_256_GCM_SHA384 (rsa 2048) - A
  |     compressors:
  |       NULL
  |     cipher preference: client
  |   TLSv1.3:
  |     ciphers:
  |       TLS_AKE_WITH_AES_128_CCM_SHA256 (ecdh_x25519) - A
  |       TLS_AKE_WITH_AES_128_GCM_SHA256 (ecdh_x25519) - A
  |       TLS_AKE_WITH_AES_256_GCM_SHA384 (ecdh_x25519) - A
  |       TLS_AKE_WITH_CHACHA20_POLY1305_SHA256 (ecdh_x25519) - A
  |     cipher preference: client
  |_  least strength: A

  Nmap done: 1 IP address (1 host up) scanned in 0.42 seconds

SSLProtocol all -SSLv2 -SSLv3 -TLSv1 -TLSv1.1 results in:

TLSv1.2, TLSv1.3
  $ nmap --script ssl-enum-ciphers -p 443 <IP_ADDRESS>
  Starting Nmap 7.93 ( https://nmap.org ) at 2023-11-07 16:57 EST
  Nmap scan report for <IP_ADDRESS>
  Host is up (0.00044s latency).

  PORT    STATE SERVICE
  443/tcp open  https
  | ssl-enum-ciphers:
  |   TLSv1.2:
  |     ciphers:
  |       TLS_DHE_RSA_WITH_AES_128_CBC_SHA (dh 2048) - A
  |       TLS_DHE_RSA_WITH_AES_128_CBC_SHA256 (dh 2048) - A
  |       TLS_DHE_RSA_WITH_AES_128_GCM_SHA256 (dh 2048) - A
  |       TLS_DHE_RSA_WITH_AES_256_CBC_SHA (dh 2048) - A
  |       TLS_DHE_RSA_WITH_AES_256_CBC_SHA256 (dh 2048) - A
  |       TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 (dh 2048) - A
  |       TLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256 (dh 2048) - A
  |       TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA (secp256r1) - A
  |       TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256 (secp256r1) - A
  |       TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (secp256r1) - A
  |       TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (secp256r1) - A
  |       TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384 (secp256r1) - A
  |       TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (secp256r1) - A
  |       TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256 (secp256r1) - A
  |       TLS_RSA_WITH_AES_128_CBC_SHA (rsa 2048) - A
  |       TLS_RSA_WITH_AES_128_CBC_SHA256 (rsa 2048) - A
  |       TLS_RSA_WITH_AES_128_GCM_SHA256 (rsa 2048) - A
  |       TLS_RSA_WITH_AES_256_CBC_SHA (rsa 2048) - A
  |       TLS_RSA_WITH_AES_256_CBC_SHA256 (rsa 2048) - A
  |       TLS_RSA_WITH_AES_256_GCM_SHA384 (rsa 2048) - A
  |     compressors:
  |       NULL
  |     cipher preference: client
  |   TLSv1.3:
  |     ciphers:
  |       TLS_AKE_WITH_AES_128_CCM_SHA256 (ecdh_x25519) - A
  |       TLS_AKE_WITH_AES_128_GCM_SHA256 (ecdh_x25519) - A
  |       TLS_AKE_WITH_AES_256_GCM_SHA384 (ecdh_x25519) - A
  |       TLS_AKE_WITH_CHACHA20_POLY1305_SHA256 (ecdh_x25519) - A
  |     cipher preference: client
  |_  least strength: A

  Nmap done: 1 IP address (1 host up) scanned in 0.64 seconds

I like dropping -SSLv2 -SSLv3.
But then again, I vote what ever we need to be able to get this merged

Gah - forgot to hit send on the comment :)
I like what's in the current PR, so merged.  Even though technically -SSLv2 -SSLv3 isn't needed, I like that it's explicit, so if someone comes along and asks, there's no question.


API management services should support multi region deployments

Rule request
Suggested rule change
API management services should support multi region deployments for globally distrubuted API consumers.
Applies to the following
The rule applies to the following:

Resource type: Microsoft.ApiManagement/service

Additional context
Multi region deployments

This will be a cool rule to introduce.
I'll take it.


uart-dma example with changing data length

The uart-dma example does not show how to send data with different length using dma.
Is this not supported by this crate or is it even a hardware limitation?
example:
[...]

let data_to_send = [
    &b"Hello"[..], // These are to be sent one at a time to simulate sending messages of different sizes
    &b"I"[..],
    &b"am Bob the Bot"[..],
];

// Setup DMA for USART2 TX with dma channel 1.
let mut transfer =
    streams
        .0
        .into_memory_to_peripheral_transfer(tx.enable_dma(), &mut tx_buffer[..], config);

transfer.start(|_tx| {});
loop {
    while !transfer.get_transfer_complete_flag() {}

    delay_syst.delay(1000.millis());
    led.toggle().unwrap();
    transfer.restart(|_tx| {}); // <---------- Do something here to either change buffer to data_to_send[i],
                                // , or copy to tx_buffer (assuming it is large enough) and tell `transfer` the new data length
}

To me I think it would have made more sense if the uart and dma stream were combined into a "uart-with-dma" rather than a "dma-stream-thing that happens to wrap an uart".
So instead of
let mut transfer =
    streams
        .0
        .into_memory_to_peripheral_transfer(tx.enable_dma(), &mut tx_buffer[..], config);

I would want
let mut tx: Tx<UART2, PIN, DMA> = tx.enable_dma(streams.0, &mut tx_buffer[..]);

since Tx<UART2, PIN, DMA> can then impl core::fmt::Write, set senseful dma configs automatically etc since it has more knowledge of how the dma channel will be used.
Any thoughts? :)


Sonoff basic DHT example

DHT sensor support for Sonoff devices, I've tested it on NodeMCU board and Sonoff Basic using DHT22 sensor, data pin connected to GPIO14.

It doesn't feel like this makes a complete product, it's more like Sonoff switch with temperature/humidity sensor duck taped on top. A do not think this would be something that other people will expect from Sonoff Basic + DHT combination.
I personally would expect something like this: https://www.amazon.com/W1209-50-110°C-Digital-Thermostat-Temperature-Waterproof/dp/B01IT80ATU/ref=sr_1_1
a thing that measures temperature (and/or humidity) and if goes over/under particular thresholds relay opens/closes. So that you can create automations like "close relay if temperature is above X degrees" and relay controls a fan.


Merge pull request #4032 from lwr20/lwr-ebpf-eks

Update ebpf and eks doc
Description

Related issues/PRs

Todos

[ ] Tests
[ ] Documentation
[ ] Release note

Release Note

None required

Deploy preview for calico ready!
Built with commit e1ea9e96401399ee475a2dc4aa9f3ce5dc5e1b8b
https://deploy-preview-4034--calico.netlify.app


FOUC when using NextAppDirEmotionCacheProvider with prepend true

Hi,
Thank you for providing out of the box solution to make MUI Next.JS setup easier, especially with app router!
The issue we encounter is with prepend option set to true:
<NextAppDirEmotionCacheProvider options={{ key: "css", prepend: true }}>
    <AppThemeProvider>{children}</AppThemeProvider>
</NextAppDirEmotionCacheProvider>

I forked the example repo and added a custom button style (a blue border). Repository can be found here: https://github.com/kpericin/mui-next-appdir-demo. There is also stackblitz: https://stackblitz.com/edit/stackblitz-starters-ebxkz3
As you can see in the example, button first gets rendered without a border which gets applied with a delay. If JS is disabled, border never gets applied. This may be the wrong place to raise the issue, but I was wondering is it possible to use prepend: true with Next.JS app router?
There is a workaround for this simple example: not using prepend and increasing specificity of CSS selector which applies the border:
.root.root {
    border: 1px solid blue;
}

While this does work, it is cumbersome and I'm hoping there is a better/simpler solution.

Hello @kpericin,
In the page router version of the tooling I'm able to implement some magic to get prepend working.
https://github.com/garronej/tss-react/blob/d193e1176019427650f3b9e7ca837b2845cef481/src/next/pagesDir.tsx#L106-L108
Unfortunately, with the App Router, I don't know how to do it or even if it's possible. We're relying on the useServerInsertedHTML hook and I don't know how to configure it to provide a precise insertion point...
What's your end goal? You have a global stylesheet and you want it to be after the emotion style in the head so that it has higher priority?

@garronej thank you for the quick response!
We have an existing component library which is based on MUI and heavily customized. We used SCSS modules (each component has *.module.scss file containing style overrides) to override styles so we can migrate away from MUI in the future. It works great for our SPA. Now we need to reuse it in a new Next.JS project which is where we are seeing the issue.
So it's not a global stylesheet but the end goal is the same - we need our CSS styles to be after emotion styles so our styles win.

I understand, your point is entirely valid.
Regrettably, at the moment, I don't have a ready solution, nor the capacity to explore this further immediately.
Here's a suggestion though, you could raise an issue on the Emotion repository. Make sure to include a reproducible example where you are using a custom component with CSS modules. Highlight the issue of not being able to prioritize your CSS module over the Emotion styles. Please avoid using TSS in this instance, you can simply copy and paste TSS's provider instead. After you're done, notify me, and I will bring it to the attention of Emotion's lead developer.
Assuming a feasible solution is found, I assure you that I will promptly implement it.
In case you're unable to invest time into this, the only alternative I could propose is to opt for Next Pages Router. However, I acknowledge that it may not be the most desirable solution for you.

@garronej I opened issue on the Emotion repository: https://github.com/emotion-js/emotion/issues/3059.
I do have some time to look into this, right now looking into it is less work than replacing/reworking our component library. However, I'm not even sure where the issue is - should Next.JS provide better options regarding CSS ordering, or is it something that CSS-in-JS libraries should handle?

I left a comment on Emotion issue with the workaround I found, leaving it here as well if someone else encounters the same issue:
If emotion styles are wrapped into @layer, all other styles which aren't in a layer will take precedence. Here is stackblitz and github branch.

Congratulations for finding a workaround and sharing it with the community.

looks like there might be a legit way: https://mui.com/material-ui/guides/next-js-app-router/#css-injection-order

Emotion option prepend should work in 4.9.1.
Thanks for reporting!
Let me know if it dosen't work.


Linker errors with Maya 2016 and VS 2015

Hi I cannot figure out why I got the following linker errors:
2>cvWrapDeformer.obj : error LNK2001: unresolved external symbol "public: static struct _cl_command_queue * __cdecl MOpenCLInfo::getMayaDefaultOpenCLCommandQueue(void)" (?getMayaDefaultOpenCLCommandQueue@MOpenCLInfo@@SAPEAU_cl_command_queue@@XZ) 2>cvWrapDeformer.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: class MVector __cdecl MVector::operator*(float)const " (__imp_??DMVector@@QEBA?AV0@M@Z) referenced in function "public: static long __cdecl CVWrap::EvaluateWrap(void *)" (?EvaluateWrap@CVWrap@@SAJPEAX@Z) 2>cvWrapDeformer.obj : error LNK2001: unresolved external symbol "public: virtual class MStatus __cdecl MPxNode::dependsOn(class MPlug const &,class MPlug const &,bool &)const " (?dependsOn@MPxNode@@UEBA?AVMStatus@@AEBVMPlug@@0AEA_N@Z)
I have setup my project with the CMake files you provided.

I have same issue as above, could you Please comment us for it?
Thank you

I can't seem to reproduce.  I tried with Maya 2016 and Visual Studio Community 2015 Update 3 and it compiled fine.
D:\dev\maya\cvwrap\build2016>cmake -G "Visual Studio 14 2015 Win64" -DMAYA_VERSION=2016 ../
-- The C compiler identification is MSVC 19.0.24215.1
-- The CXX compiler identification is MSVC 19.0.24215.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Maya: C:/Program Files/Autodesk/Maya2016/include
-- Configuring done
-- Generating done
-- Build files have been written to: D:/dev/maya/cvwrap/build2016

D:\dev\maya\cvwrap\build2016>cmake --build . --target install --config Release
Microsoft (R) Build Engine version 14.0.25420.1
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 6/17/2017 2:53:05 PM.
Project "D:\dev\maya\cvwrap\build2016\install.vcxproj" on node 1 (default targets).
Project "D:\dev\maya\cvwrap\build2016\install.vcxproj" (1) is building "D:\dev\maya\cvwrap\build2016\ZERO_CHECK.vcxproj" (2) on node 1 (default targets).
PrepareForBuild:
  Creating directory "x64\Release\ZERO_CHECK\".
  Creating directory "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\".
InitializeBuildStatus:
  Creating "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  Checking Build System
  CMake does not need to re-run because D:/dev/maya/cvwrap/build2016/CMakeFiles/generate.stamp is up-to-date.
  CMake does not need to re-run because D:/dev/maya/cvwrap/build2016/src/CMakeFiles/generate.stamp is up-to-date.
FinalizeBuildStatus:
  Deleting file "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
  Touching "x64\Release\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
Done Building Project "D:\dev\maya\cvwrap\build2016\ZERO_CHECK.vcxproj" (default targets).

Project "D:\dev\maya\cvwrap\build2016\install.vcxproj" (1) is building "D:\dev\maya\cvwrap\build2016\ALL_BUILD.vcxproj" (3) on node 1 (default targets).
Project "D:\dev\maya\cvwrap\build2016\ALL_BUILD.vcxproj" (3) is building "D:\dev\maya\cvwrap\build2016\src\cvwrap.vcxproj" (4) on node 1 (default targets).
PrepareForBuild:
  Creating directory "cvwrap.dir\Release\".
  Creating directory "D:\dev\maya\cvwrap\build2016\src\Release\".
  Creating directory "cvwrap.dir\Release\cvwrap.tlog\".
InitializeBuildStatus:
  Creating "cvwrap.dir\Release\cvwrap.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  Building Custom Rule D:/dev/maya/cvwrap/src/CMakeLists.txt
  CMake does not need to re-run because D:/dev/maya/cvwrap/build2016/src/CMakeFiles/generate.stamp is up-to-date.
ClCompile:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\CL.exe /c /ID:\dev\maya\cvwrap\src\Maya::Maya /I"C:\Program Files\Autodesk\Maya2016\include" /nologo /W3
   /WX- /O2 /Ob2 /D WIN32 /D _WINDOWS /D NDEBUG /D REQUIRE_IOSTREAM /D _BOOL /D NT_PLUGIN /D "CMAKE_INTDIR=\"Release\"" /D cvwrap_EXPORTS /D _WINDLL /D _MBCS /Gm- /EHsc /MD /G
  S /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /GR /Fo"cvwrap.dir\Release\\" /Fd"cvwrap.dir\Release\vc140.pdb" /Gd /TP /errorReport:queue   " /arch:AVX" D:\dev\maya\cvwra
  p\src\pluginMain.cpp D:\dev\maya\cvwrap\src\cvWrapCmd.cpp D:\dev\maya\cvwrap\src\cvWrapDeformer.cpp D:\dev\maya\cvwrap\src\bindingio.cpp D:\dev\maya\cvwrap\src\common.cpp
  pluginMain.cpp
  cvWrapCmd.cpp
  cvWrapDeformer.cpp
  bindingio.cpp
  common.cpp
  Generating Code...
Link:
  C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\link.exe /ERRORREPORT:QUEUE /OUT:"D:\dev\maya\cvwrap\build2016\src\Release\cvwrap.mll" /INCREMENTAL:NO /
  NOLOGO kernel32.lib user32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comdlg32.lib advapi32.lib "C:\Program Files\Autodesk\Maya2016\lib\OpenMaya.
  lib" "C:\Program Files\Autodesk\Maya2016\lib\OpenMayaAnim.lib" "C:\Program Files\Autodesk\Maya2016\lib\OpenMayaFX.lib" "C:\Program Files\Autodesk\Maya2016\lib\OpenMayaRender
  .lib" "C:\Program Files\Autodesk\Maya2016\lib\OpenMayaUI.lib" "C:\Program Files\Autodesk\Maya2016\lib\Foundation.lib" "C:\Program Files\Autodesk\Maya2016\lib\clew.lib" /MANI
  FEST /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /manifest:embed /PDB:"D:/dev/maya/cvwrap/build2016/src/Release/cvwrap.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /N
  XCOMPAT /IMPLIB:"D:/dev/maya/cvwrap/build2016/src/Release/cvwrap.lib" /MACHINE:X64   /machine:x64 /export:initializePlugin /export:uninitializePlugin /DLL cvwrap.dir\Release
  \pluginMain.obj
  cvwrap.dir\Release\cvWrapCmd.obj
  cvwrap.dir\Release\cvWrapDeformer.obj
  cvwrap.dir\Release\bindingio.obj
  cvwrap.dir\Release\common.obj
     Creating library D:/dev/maya/cvwrap/build2016/src/Release/cvwrap.lib and object D:/dev/maya/cvwrap/build2016/src/Release/cvwrap.exp
  cvwrap.vcxproj -> D:\dev\maya\cvwrap\build2016\src\Release\cvwrap.mll
FinalizeBuildStatus:
  Deleting file "cvwrap.dir\Release\cvwrap.tlog\unsuccessfulbuild".
  Touching "cvwrap.dir\Release\cvwrap.tlog\cvwrap.lastbuildstate".
Done Building Project "D:\dev\maya\cvwrap\build2016\src\cvwrap.vcxproj" (default targets).

PrepareForBuild:
  Creating directory "x64\Release\ALL_BUILD\".
  Creating directory "x64\Release\ALL_BUILD\ALL_BUILD.tlog\".
InitializeBuildStatus:
  Creating "x64\Release\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  Building Custom Rule D:/dev/maya/cvwrap/CMakeLists.txt
  CMake does not need to re-run because D:/dev/maya/cvwrap/build2016/CMakeFiles/generate.stamp is up-to-date.
FinalizeBuildStatus:
  Deleting file "x64\Release\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild".
  Touching "x64\Release\ALL_BUILD\ALL_BUILD.tlog\ALL_BUILD.lastbuildstate".
Done Building Project "D:\dev\maya\cvwrap\build2016\ALL_BUILD.vcxproj" (default targets).

PrepareForBuild:
  Creating directory "x64\Release\INSTALL\".
  Creating directory "x64\Release\INSTALL\INSTALL.tlog\".
InitializeBuildStatus:
  Creating "x64\Release\INSTALL\INSTALL.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
PostBuildEvent:
  setlocal
  "C:\Program Files\CMake\bin\cmake.exe" -DBUILD_TYPE=Release -P cmake_install.cmake
  if %errorlevel% neq 0 goto :cmEnd
  :cmEnd
  endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
  :cmErrorLevel
  exit /b %1
  :cmDone
  if %errorlevel% neq 0 goto :VCEnd
  :VCEnd
  -- Install configuration: "Release"
  -- Installing: D:/dev/maya/cvwrap/build2016/./scripts
  -- Installing: D:/dev/maya/cvwrap/build2016/./scripts/AEcvWrapTemplate.mel
  -- Installing: D:/dev/maya/cvwrap/build2016/./scripts/cvwrap
  -- Installing: D:/dev/maya/cvwrap/build2016/./scripts/cvwrap/bindui.py
  -- Installing: D:/dev/maya/cvwrap/build2016/./scripts/cvwrap/menu.py
  -- Installing: D:/dev/maya/cvwrap/build2016/./scripts/cvwrap/__init__.py
  -- Installing: D:/dev/maya/cvwrap/build2016/plug-ins/cvwrap.mll
  -- Installing: D:/dev/maya/cvwrap/build2016/plug-ins/cvwrap.cl
FinalizeBuildStatus:
  Deleting file "x64\Release\INSTALL\INSTALL.tlog\unsuccessfulbuild".
  Touching "x64\Release\INSTALL\INSTALL.tlog\INSTALL.lastbuildstate".
Done Building Project "D:\dev\maya\cvwrap\build2016\install.vcxproj" (default targets).

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:04.93

Thank you for reply Chad.
Still have same error with your command in cmake as above.
if you do not mind, I would like to share my environment and how things goes in my work space.

I am using
visual studio community 2015 update 3
Autodesk® Maya 2016 Ext 2 - Developer Kit (devkit)

also using your cgmake and repo for building.

cmake commands are
cmake -G "Visual Studio 14 2015 Win64" -DMAYA_VERSION=2018 ../
cmake --build . --config Release

It would help you to understand.
I will try to build again with ext 1 and tell you how it goes.
Thank you for your pay attention.

You have Maya 2016 ext 2, which I think is 2016.5.  But you are specifying
2018 in the cmake command.
On Jun 18, 2017 7:54 PM, "Jeewon Park"<EMAIL_ADDRESS>wrote:
Thank you for reply Chad.
Still have same error with your command in cmake as above.
if you do not mind, I would like to share my environment and how things
goes in my work space.

I am using
visual studio community 2015 update 3
Autodesk® Maya 2016 Ext 2 - Developer Kit (devkit)
2.
also using your cgmake and repo for building.
3.
cmake commands are
cmake -G "Visual Studio 14 2015 Win64" -DMAYA_VERSION=2018 ../
cmake --build . --config Release
It would help you to understand.
I will try to build again with ext 1 and tell you how it goes.
Thank you for your pay attention.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/chadmv/cvwrap/issues/8#issuecomment-309326903, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA7fKW286mmEzo4sejB74znN381XRpAEks5sFeL9gaJpZM4JvfhP
.

oops. sry I just copy and pasted the command from your repo.
I specified version as 2016
I will try the command as below
cmake -G "Visual Studio 14 2015 Win64" -DMAYA_VERSION=2016.5 ../

Ah. I have done to compile it. Successfully Made mll!!
My problem was as below
My devkit was for ext2
which I downloaded it from https://apps.autodesk.com/MAYA/ko/Detail/Index?id=5595681162321676385&os=Win64&appLang=en
I switched my devkit to 2016.1 from
https://github.com/autodesk-adn/Maya-devkit
Thank you for your help Chad.
PS: I have a warning
E:\cvwrap\src\common.cpp(215): warning C4838: conversion from 'unsigned int' to 'int' requires a n                                                                           arrowing conversion [E:\cvwrap\build2016\src\cvwrap.vcxproj]
Is it ok to ignore this warning??

Yes you can ignore.  The latest code removes that warning.


Create a getting started with scpca data section

Closes #52.
Here I'm adding the section on how to get started using an Scpca dataset. I've included sections on importing the RDS files into R, quality control, normalization, downstream analysis, and then working with Seurat.
In the first section I included a short introduction on the two RDS files that are present for each sample and linked out to other sections in the docs when necessary. We do have a FAQ that explains reading into R, but I remembered we talked about repeating some of that information and it seemed like a necessary first step.
For the quality control section, I included information about using miQC and how we have presence of the miQC_pass column in the objects. I have some explanation on what miQC is along with links to the vignette and documentation. I also inserted code chunks to show how you would filter using that column.
In addition to using miQC, we also have stored the basic metrics in the SCE's that we provide and that's what is recommended in OSCA. I included a section on choosing hard cutoffs and tried to caution people to explore diagnostic plots before simply choosing cutoffs. That's why I didn't provide any recommendations on which cutoffs to use there. Some questions I had about the quality control section were:

Does this information seem like too much detail or too little detail for filtering?
Should I not include miQC or hard cutoffs?
Should I include recommended values for hard cutoffs?

For the normalization and feature selection I generally tried to describe what we would recommend while also linking out to other resources so that they could learn on their own outside of our recommendations. I was back and forth on including code chunks in these sections since I don't want people to blindly follow this as a tutorial, but want people to actually read and stay informed. However, the code chunks seemed useful to have to me so they could follow along for each step? Do others have thoughts on this?
In terms of the dimensionality reduction section, I included some detail but did not go too far into the weeds of how PCA and UMAP are calculated. I thought that didn't seem too necessary, but let me know if there should be more detail here.
The last section I included was about using ScPCA data with Seurat. We already have a fairly extensive FAQ on transferring SCE's to a Seurat object so I provided a link to that FAQ followed by tutorials on working with Seurat performing the same steps that I described for working with SCE objects. Should there be more explanation here or more code chunks?
Some other overall questions:

Does the organization make sense? Would you divide it into different sections?
Is the level of detail and the amount of linking to external resources what you had in mind?

I went through and incorporated the suggestions from both @jaclyn-taroni and @jashapiro and made the following changes:

I added the columns description for the colData (taken from the sce contents section), stating that these columns are added by scuttle::addPerCellQCMetrics and can be found in the colData. @jashapiro is this what you had in mind for your comment about adding the names of the columns in?
I removed the background information in the normalization section, simply stating that the counts were unnormalized and needed to be normalized, provided the code to do so and then some links to more information
I removed the section on variable features
I simplified the dimensionality reduction section to have less intro about PCA and UMAP and more here is how to do them. However, I did keep in the cautionary statements about interpreting UMAP since Josh had mentioned he liked having them there. In this section I added a note about selecting variable features and linked to the chapter in OSCA. Is this more what you had in mind here or do you want me to remove more description?
I added a section on scanpy. I tried to mirror the section on Seurat that I had and link out to the FAQ and then provide a few links. If there are other links that you think would be helpful please let me know as the only reliable ones I had were from the scanpy tutorials and there isn't much there.

I might reduce the UMAP caution section to just the crux, something like: "Use caution when interpreting UMAP results; the location, spacing, and density of the clusters can be dependent on parameter choices and random effects, and may not accurately reflect relationships among cells." I mostly want to get it down to 1-2 sentences, as a reminder of things they have hopefully heard before.

I went ahead and incorporated this suggestion and paired it down to 1 sentence along with incorporating the other minor suggestions. Let me know if this looks as expected.


Cannot access style property of a element

Hi there,
Love what this library is trying to do!!! I'm actually trying to take advantage of your JavaScript evaluation functionality, but am having an issue accessing a property off of the element object. I've boiled it down using a modified version of your example online for reference. This runs fine in the browser, but the document.write(node.style.fontSize); line seems to blow up when using AngleSharp. Any help you can provide is appreciated!
//We require a custom configuration
var config = Configuration.Default.WithJavaScript();
//Let's create a new parser using this configuration
var parser = new HtmlParser(config);

//This is our sample source, we will set the title and write on the document
var source = @"<!doctype html>

                <title>Sample</title>

Sample

                ";

var document = parser.Parse(source);

//Modified HTML will be output
Console.WriteLine(document.DocumentElement.OuterHtml);

Console.ReadLine();

Alright so the problem I see here is that the CSS engine is not loaded. Can you try to modify the code to use
var config = Configuration.Default.WithJavaScript().WithCss();

That will provide the default style engine with CSS.

Yep, agreed per your reversed comment above. That is all set.
Any change you could tell me when you guys think you will have support for window added in? I need to get the rending size of elements in my script... something like window.getComputedStyle(node, null).getPropertyValue('width'). Is something that you will support, or for that matter, have a work around for?

This scenario will definitely supported, but unfortunately I can't tell you when it will be available. BTW: window is already available (and I think the getComputedStyle method works as well), but the results could be different from browsers.


Azure Kinect support Australia

Azure Kinect support for Australia
Azure Kinect is not available for purchase in Australia.

I am hoping to find out more around the supply side of things, as I would like to a large volume of Azure Kinects in the near future (likely before the end of the year).  Would anyone be able to tell me (or direct me to where I could find out):

If I was to order 25, 50 or 100 Azure Kinects, what would be the lead time for them to be delivered to my office in Brisbane; and
At the above quantities, would we qualify for any volume discounts?

Could someone please put me in contact with Azure Kinect support in Australia?

@Gavinlenton Thanks for your comment. We will review the issue and get back to you shortly.

@Gavinlenton Sorry for the delay in response.
As mentioned in the FAQ's, The Azure Kinect DK is available for purchase in the United States, China, Germany, Japan and the United Kingdom.

For purchase, availability and other queries, I would suggest you, kindly check the below information and call.
https://www.microsoft.com/en-us/p/azure-kinect-dk/8pp5vxmd9nhq?activetab=pivot%3Aoverviewtab
Availability: For large orders, support, and EDU institute pricing, call us at 1-866-425-4709 Monday through Friday, 6:00 AM to 6:00 PM PDT.
We will now proceed to close this thread. If there are further questions regarding this matter, please tag me in your reply. We will gladly continue the discussion and we will reopen the issue.


fix(profiles): profiles listing was returning the unfiltered list

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

Project coverage is 67.14%. Comparing base (06c0a7c) to head (cc8ca17).

Additional details and impacted files

@@            Coverage Diff             @@
##             main     #497      +/-   ##
==========================================
- Coverage   70.99%   67.14%   -3.86%
==========================================
  Files          48       48
  Lines        3086     3086
  Branches      657      658       +1
==========================================
- Hits         2191     2072     -119
- Misses        705      820     +115
- Partials      190      194       +4

Flag
Coverage Δ

unittests
66.94% <100.00%> (-3.41%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Files
Coverage Δ

qgis_deployment_toolbelt/jobs/generic_job.py
89.15% <100.00%> (ø)

... and 7 files with indirect coverage changes


Tags

tags, except for new loci

I think this should be merging into app and not main? Because this is the new data format


Alembic connection Error

Error when trying to connect to alembic saying my connection didn't exist.

updated alembic.ini with sqlalchemy.url = postgresql://user:password@postgres:5432/myappdb previously didnt have 5432


Not loading

When evaluating:
Metacello new
baseline: 'Chalten';
githubUser: 'ba-st' project: 'chalten' commitish: 'v6.0.0' path: 'repository';
load
It does not load. See attached screenshot

Pharo version?

Pharo 6.0
Latest update: #60543

Update it to Pharo 6.0
Latest update: #60546
And same problem

I've tried in a pristine Pharo 6.0 / Latest update: #60546 image on Linux and it worked.
I've downloaded it with curl https://get.pharo.org/61+vm | bash , open the image and run your code.


add ability to use data to read from file with instance:export

Adds the ability to use either a file or type json to be parsed for instance:export
Potential solution for #144

hi @al-haras , thanks a lot for your contribution. Can you please adjust the description of the command to describe the new functionality?

Thanks again for contributing @al-haras. And sorry for the delay, we had to fix a build and test related issue first.


Moving permission loading from ServiceProvider boot method to middleware

$lock instance on User using LockAware trait is now correctly set. This change requires to add new BeatSwitch\Lock\Integrations\Laravel\Middleware\LockPermissions entry to $middleware array in Kernel class.
The middleware should be put after StartSession middleware.

I would love to see this pull request applied because I want to use Lock on a project in combination with the Dingo package. For now I forked the repo and applied this pull request. I also added some documentation. If someone is having the same problem you may take a look here: https://git.nordwest.freifunk.net/Netmon-SC/lock-laravel/tree/b0.4.2

Should be fixed in the latest release.


feat(#146): pre_readme.py, pre_description.py, pre_topics.py

closes #146

PR-Codex overview
This PR enhances text preprocessing in the models by adding new classes for repository name, topics, description, and README. It also includes corresponding test cases.
Detailed summary

Added PreName, PreTopics, PreDescription, and PreReadme classes
Implemented text preprocessing for repository name, topics, description, and README
Added corresponding test cases for each preprocessing class

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@rultor merge

@rultor merge


MudMenu sub menu appears behind parent menu

Bug type
Component
Component name
MudMenu
What happened?
I'm trying to use a sub menu, in a menu that is placed on a MudAppBar.
But the sub menu appears behind both the parent menu and the MudAppBar:

Expected behavior
The sub menu should be in front of both the parent menu and the MudAppBar.
Reproduction link
https://try.mudblazor.com/snippet/QEmxkpQJoytIGUaX
Reproduction steps

Click "Open Menu"
Hoover the mouse over "Item 1"

Relevant log output
No response
Version (bug)
6.3.0
Version (working)
No response
What browsers are you seeing the problem on?
Microsoft Edge
On what operating system are you experiencing the issue?
Windows
Pull Request

[ ] I would like to do a Pull Request

Code of Conduct

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

duplicate of https://github.com/MudBlazor/MudBlazor/issues/6909?

duplicate of #6909?

Jep, that seems to be the same issue. I'll just close this one then.


ARGOS and GlyGen DB Updates: Advanced search for targeted searching

From Jeet
This advanced option will allow to search based on categories. E.g A word can be searched in the dataset name/BCO name or in the content of the dataset/bco. It can have a option to select an organism or a file format.(having and / or operators) For eg. search the keyword glycohydrolase in human (9606). The advanced targeted search can be similar to the one implemented in GlyGen Protein Advanced Search - https://www.glygen.org/protein-search/, having multiple fields to narrow down search. We can few fields and or categories to begin with.

This is a lot of work, and the need for it has to be justified --> meaning, you have to come up with a use case that cannot be achieved by what we have now. One can search for "glycohydrolase" and use the "human" filter to achieve the use case mentioned here.

@rykahsay I will backlog this and leave it as an item to discuss for ARGOS at a later date with Raja.


Find existence of loop in Dynamic routing Algorithm

Aim

Using linked list, Find a loop in Dynamic routing Algorithm.

[ ] Data Structure

Details

In the Program,If loop is found then it return yes and if loop is not found then it return no and return root.

Programming language

[ ] C++

[ ] LGM-SoC'21

I want to work on this issue.


feat: improve implementation of useFirstMountState() hook

Description

Improve implementation of useFirstMountState() hook.
I think use useEffect can be more efficient when frequently re-rendering
Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as before)

Checklist

[ ] Read the Contributing Guide
[x] Perform a code self-review
[ ] Comment the code, particularly in hard-to-understand areas
[ ] Add documentation
[ ] Add hook's story at Storybook
[ ] Cover changes with tests
[ ] Ensure the test suite passes (yarn test)
[ ] Provide 100% tests coverage
[ ] Make sure code lints (yarn lint). Fix it with yarn lint:fix in case of failure.
[ ] Make sure types are fine (yarn lint:types).

It won't be effective because instead of regular comparison on each render your impelemtation will create new function and call useEffect hook.

Since the deps of useEffect is [], the effect will only run once when the component mounts and never run again. The old way will assign to isFirst.current on every render, I think it`s unnecessary.

[] deps only means that provided function will be called once on first mount, but provided function itself will be dynamically created on each render.

So if we will list the step-by-step execution log:
originally:

get ref with default to true
check isFirst.current is truthy

if truthy - assign false
return true

return isFirst.current if falsy (actually it could be simplifier to return false;)

this PR:

get ref with default to true
create anonimous function
create empty array
pass them to useEffect

inside useEffect

check if dependencies contents changed

if changed - call provided function

return isFirst.current

Thanks for your patient explanation, I think I get the point.