feat: add imageDimension property on component

Hi @rouftom,
i think that change dimension of icon upload is impossible without a configuration parameters... so i added as array of integer to add different size for X-Y smDown and X-Y smUp

Hi @fefoweb,
Thank you for your contribution to this project. I had planned to look into this project for the past few days to make some optimizations but unfortunately I didn't have enough time to do so. I find your contribution interesting. In my opinion, I suggest we use the useMediaQuery hook instead to automatically detect the window size and adjust the size of the upload image (xs, sm, md, etc...) and reduce redundant code in Hidden tags. Then we could for example rename the variable imageDimension in placeholderImageDimension and transform it into an object which would represent the different dimensions as follows:
<FileUpload
  // other props
  placeholderImageDimension={{
    xs: { width: 128, height: 128 },
    sm: { width: 128, height: 128 },
    md: { width: 164, height: 164 },
    lg: { width: 256, height: 256 }
  }}
/>

// Inside FileUpload component
const {otherProps, ..., placeholderImageDimension } = props

let imageDimension = { width: 128, height: 128 }
if (useMediaQuery(theme.breakpoints.up('xs')) && placeholderImageDimension.xs) {
  imageDimension = placeholderImageDimension.xs
}
if (useMediaQuery(theme.breakpoints.up('sm')) && placeholderImageDimension.sm) {
   imageDimension = placeholderImageDimension.sm
}
if (useMediaQuery(theme.breakpoints.up('md')) && placeholderImageDimension.md) {
   imageDimension = placeholderImageDimension.md
}
if (useMediaQuery(theme.breakpoints.up('lg')) && placeholderImageDimension.lg) {
   imageDimension = placeholderImageDimension.lg
}

// Placeholder image
<img
  alt="loading image..."
  src={imageSrc || uploadImage}
  width={imageDimension.width}
  height={imageDimension.height}
/>

What do you think ? Can you do that ?

Hi @rouftom!
yes this is a valid idea... i can do this!
I will modify this pull request!

Ok thanks.


[Feature Request] Manipulate data before LLM input

Is your feature request related to a problem? Please describe.
Describe the solution you'd like
I've got a webhook from a third party that I can't modify the shape of before it hits my promptflow endpoint.
Is there a way that I can first modify/massage the data coming in before the "Inputs" step of the flow?
Describe alternatives you've considered
The payload has a lot of top level key values, so can just manually add each of them to the Inputs, just looks pretty messy.
Additional context
Add any other context or screenshots about the feature request here.

Thanks for the feedback!
Could you describe more on what's the webhook here?
Do you mean it has a big dict with many keys and you need to pass the it as many inputs to a flow?
Is it appliable that you change the flow input to accept a dict? You can add a node parsing the dict inside the flow.
@simon-v-swyftx

Do you mean it has a big dict with many keys and you need to pass the it as many inputs to a flow?
Yep that's exactly right!

It's almost as if I want a python tool before the "Inputs" step.
So rather than having something like this:

I now need to add my big dict manually (and this gets a little annoying as I have two different webhooks, with slightly different shape hitting this endpoint)

Of course I could spin up another endpoint to act as a middleware, but I'd much prefer to handle it all in the promptflow
@wangchao1230

Could you create a flow with a object input webhook, and add preprocess python node in the flow before the llm node to process that input?
Is there any blocker you met with this way?

I believe the problem is that the input section assumes a property called 'webhook' in this example.
Assume the payload looks like this which I cannot change
{
    "property1": "hello",
    "property2": "test",
    "property3": "world",
    "property4": "texthere",
    ...many many more properties that could be nested
}

with the following flow:
id: use_functions_with_chat_models
name: Use Functions with Chat Models
environment:
  python_requirements_txt: requirements.txt
inputs:
  webhook:
    type: object
    default: {}
outputs:
  answer:
    type: string
    reference: ${ingest_webhook.output}
    is_chat_output: true
nodes:
- name: ingest_webhook
  type: python
  source:
    type: code
    path: ingest_webhook.py
  inputs:
    connection: Intercom
    webhook: ${inputs.webhook}
  use_variants: false

where injest_webhook.py looks like:
from promptflow import tool
from promptflow.connections import CustomConnection

@tool
def injest_webhook(connection: CustomConnection, webhook: object = None) -> str:
    return str(webhook)

The above will error, because I haven't defined all the properties.
but the below will work:
{
    "webhook": {
        "property1": "hello",
        "property2": "test",
        "property3": "world",
        "property4": "texthere",
    }
}

In this case you might need to add some preprocess logic in your promptflow endpoint.
How do you deploy the endpoint?
You might custom your service using sample like this: https://github.com/microsoft/promptflow/blob/main/examples/tutorials/flow-deploy/create-service-with-flow/simple_score.py

I had deployed the web-classifications example via a GH action as per the sample llmops repo.
Great I'll take a look thank you!

Could you share a link to the that sample llmops repo?

Sure https://github.com/Azure/llmops-gha-demo 🙂 @wangchao1230


Use httpdate::HttpDate as our inner date type (replace time)

Extends #22 (fixes #21). Since httpdate::parse_http_date and fmt_http_date are implemented in terms of the httpdate::HttpDate type, I figured this was worth a try.  The existing benchmarks (e.g. round trip for Date header) are improved with this variant over #22 (which itself is an improvement over master).

Could you publish a new version?

Released.


fix sofa 非dubbo 子模块启动时获取 发生`No bean named referenceAnnotationBeanPost…

…Processor` 异常
What is the purpose of the change
Brief changelog
Verifying this change

Checklist

[x] Make sure there is a GitHub_issue field for the change (usually before you start working on it). Trivial changes like typos do not require a GitHub issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[ ] Each commit in the pull request should have a meaningful subject line and body.
[ ] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[ ] Check if is necessary to patch to Dubbo 3 if you are work on Dubbo 2.7
[ ] Write necessary unit-test to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add sample in dubbo samples project.
[ ] Add some description to dubbo-website project if you are requesting to add a feature.
[ ] GitHub Actions works fine on your own branch.
[ ] If this contribution is large, please follow the Software Donation Guide.

sofa application 容器启动时 调用SofaModuleBeanFactoryPostProcessor 执行 postProcessBeanFactory 方法 会把当前 容器中BeanFactoryPostProcessor  BeanPostProcessor 类型的 BeanDefinition 都注册存储到  PROCESSORS_OF_ROOT_APPLICATION_CONTEXT  中，此时 ReferenceAnnotationBeanPostProcessor 已经被从当前容器中移除 BeanDefinition 实例也同时销毁 ，但是DubboInfraBeanRegisterPostProcessor 类型的 BeanDefinition  被加入了

在 sofa 子模块容器启动时 创建子容器以后 会从父容器中获取PROCESSORS_OF_ROOT_APPLICATION_CONTEXT 类，获取 到 DubboInfraBeanRegisterPostProcessor 注册到子容器中，在执行到 beanFactoryPostProcessor 方法时 从容器中获取 ReferenceAnnotationBeanPostProcessor bean的时候  子容器中 并没有 ReferenceAnnotationBeanPostProcessor 对应的实例和相关的BeanDefinition  父容器中也没有 所以会抛出异常。

Codecov Report

Merging #10451 (2cf6f4f) into 3.0 (b3f533d) will decrease coverage by 0.18%.
The diff coverage is 50.00%.

@@             Coverage Diff              @@
##                3.0   #10451      +/-   ##
============================================
- Coverage     65.73%   65.54%   -0.19%
  Complexity      318      318
============================================
  Files          1235     1235
  Lines         53916    53918       +2
  Branches       8154     8155       +1
============================================
- Hits          35442    35341     -101
- Misses        14617    14701      +84
- Partials       3857     3876      +19

Impacted Files
Coverage Δ

...g/context/DubboInfraBeanRegisterPostProcessor.java
90.47% <50.00%> (-4.27%)
:arrow_down:

...nt/metadata/ServiceInstanceHostPortCustomizer.java
65.78% <0.00%> (-21.06%)
:arrow_down:

.../apache/dubbo/rpc/filter/ProfilerServerFilter.java
62.85% <0.00%> (-20.00%)
:arrow_down:

...dubbo/remoting/exchange/support/DefaultFuture.java
80.17% <0.00%> (-11.21%)
:arrow_down:

...che/dubbo/registry/client/NopServiceDiscovery.java
44.44% <0.00%> (-11.12%)
:arrow_down:

...va/org/apache/dubbo/remoting/TimeoutException.java
22.22% <0.00%> (-11.12%)
:arrow_down:

.../remoting/transport/netty4/NettyServerHandler.java
58.13% <0.00%> (-9.31%)
:arrow_down:

...dubbo/common/status/support/LoadStatusChecker.java
58.33% <0.00%> (-8.34%)
:arrow_down:

.../common/threadpool/serial/SerializingExecutor.java
70.37% <0.00%> (-7.41%)
:arrow_down:

...bo/rpc/protocol/dubbo/DecodeableRpcInvocation.java
70.19% <0.00%> (-6.74%)
:arrow_down:

... and 23 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


What to do with additional materials

Our additional materials section is just a list of random stuff at the moment.
I think we should decide what to do here.
First, we should make it more clear that this is optional bonus material.
As this is mainly intended for people who finish the workshop early, I think we could have one main suggestion on what to do that works for most participants. This could also be an external link.
What do you think about this?

For example, DataFrames could be interesting for the participants.

We will merge the Intro with the Useful Links Chapter, and remove the link to "Foundation Revisited".


Feature/file attachment checking giving alert

Add the ability to check attachment duplicates within one institution when uploading file attachments.
The file duplicate check scope is an institution rather than a collection.
The duplicate information is updated or deleted when replacing or deleting a file attachment.
Add a new button to the Save dialog if file attachment duplicates are found, and clicking this button will open the 'duplicate data' page.
Modify the 'duplicate data' page, making it better display different kind of duplicate information
Make sure all duplicate information is retained if users edit or clone an item,  or create a new version of an item.

According to the Codebuild on last Friday, the changes may break a few autotests,  so I will fix them tomorrow.

Heya @PenghaiZhang . Has this had text review/input from @cathfitz ?


Method to adjust Container Indicators background-color color-mix

Would it be possible to have option for background-color color-mix in Container Indicators?
The color mix work not as well when there are tab overlaps (e.g. tab option 12)
Currently the following section is commented out to turn off the Container Indicators background-color color-mix:
/*
.tabbrowser-tab[usercontextid] .tab-background
{
    background-color: color-mix(in srgb, var(--identity-icon-color) 25%, transparent);
}
*/

All is ready. Don't use the new style version right now. Wait until the browser is updated to version 117


Using on node.js v12 may fail

Due to the use of an old version of graceful-fs. v4.1.1
See also:
https://github.com/TotallyInformation/node-red-contrib-uibuilder/issues/72

I had the same issue due to cb.apply is not a function

Updated all dependencies, closing issue but feel free to open if still a problem.


Error activities/windows

Need to create error activities/windows when a player tries to join a game with a game code that doesn't exist.

What about just making a Toast.makeText(this, "Game doesn't exist", Toast.LENGTH_LONG).show(); and making the player stay on the joinGameActivity?

Added temporary notifications using Toast for now


Compiling for WebOS LG Question

I recently left a question and I think there was a misunderstanding. Is there any commands to compile the example source demo into a webos project. Like some other ReactTV Projects have commands (react-tv-cli  -webos). Im very familiar with building apps for tv, but I'm not sure how to get this to compile for WebOS. Any advice? Thanks so much..

Hello again @titus-shoats!

I recently left a question and I think there was a misunderstanding.

I was the one who replied to and closed your previous issue. Let's try again. ☺

Is there any commands to compile the example source demo into a webos project. Like some other ReactTV Projects have commands (react-tv-cli -webos). Im very familiar with building apps for tv, but I'm not sure how to get this to compile for WebOS. Any advice? Thanks so much..

Unfortunately We do not maintain demo-builds for all platforms, as it would be a massive overhead.
Running the demo project on a WebOS TVs should however be relatively straightforward (especially if you have past experience with the platform):

Check out this repository
Install its dependencies
Add a dev-server configuration (in webpack.config.dev.js) to define the host / port you intend to serve it from:

devServer: {
    host: 'MY.PUBLIC.NETWORK.IP' // An IP that the TV you intend to use can actually reach
    port: 1234 // If you want to serve it on a different port (Default: 3000)
  }

(This is to ensure it can be reached and loaded externally, i.e. from your TV.)

Define a target in Webpack to ensure the library is transpiled and can run on your intended device

target: ['es5']

(This is usually needed because this library is not pre-transpiled and the ES support is quite varying across the different TV model-years, so it's better to ensure it's transpiled to something that works everywhere for you.)

Run the development build script: https://github.com/NoriginMedia/Norigin-Spatial-Navigation/blob/main/package.json#L12
Point your WebOS application to where the demo is served from and run it

Hope you figure it out. Happy coding!

This is exactly what I was looking for thanks so much!

This is exactly what I was looking for thanks so much!

Happy to hear that!
I will close this issue then. Happy coding!


Deprecate payments

Version

Describe the bug
Payments support is being deprecated. We need to deprecate/obsolete/delete all of the payments schema objects in the Microsoft.Bot.Schema namespace.

Is this an R8 work item like  the JS sibling?


mish_cuda in Dockerfile

Hello !
I am new to Dockers and I would like to install mish_cuda with a docker. I pull the image pytorch/pytorch:1.9.0-cuda11.1-cudnn8-runtime which is suitable configuration for my train.py. CUDA version 11.2 is available in host system.
I write in Dockerfile:
FROM pytorch/pytorch:1.9.0-cuda11.1-cudnn8-runtime

RUN python3 -m pip install --no-cache-dir \
        opencv-python==<IP_ADDRESS> \
        torch==1.8.1+cu111 \
        torchvision==0.9.1+cu111 \
        torchaudio==0.8.1 -f https://download.pytorch.org/whl/lts/1.8/torch_lts.html \
        pycocotools \
        pillow \
        matplotlib \
        numpy \
        PyYAML \
        tqdm \
        tensorboard

RUN git clone https://github.com/thomasbrandon/mish-cuda
RUN python3 mish-cuda/setup.py

ENTRYPOINT ["python3"]

but I take
Traceback (most recent call last):
File "//mish-cuda/setup.py", line 19, in
CUDAExtension(
File "/usr/local/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 867, in CUDAExtension
library_dirs += library_paths(cuda=True)
File "/usr/local/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 975, in library_paths
if (not os.path.exists(_join_cuda_home(lib_dir)) and
File "/usr/local/lib/python3.9/site-packages/torch/utils/cpp_extension.py", line 1982, in _join_cuda_home
raise EnvironmentError('CUDA_HOME environment variable is not set. '
OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
Where I should define where CUDA_HOME is in the host environment as I use Docker ?
Thank you in advance!

You'd need the CUDA SDK installed in the docker (it only uses the CUDA drivers from the host, not the SDK and development stuff). As you're using the PyTorch runtime image it doesn't include the SDK. The devel image (pytorch/pytorch:1.9.0-cuda11.1-cudnn8-devel) will include it and so should have the environment variable set.
But you're using PyTorch 1.9 which has a native Mish so there's no need for this implementation.


Add CXX version to precompiled header name

This idea was discussed with @rok-cesnovar here: https://github.com/roualdes/bridgestan/issues/151#issuecomment-1624241349
Submisison Checklist

[x] Run tests: ./runCmdStanTests.py src/test
[x] Declare copyright holder and open-source license: see below

Summary:
This adds CXX_MAJOR and CXX_MINOR to the name of the precompiled header file when it is enabled. The goal is to prevent the annoying errors from clang updates etc.
Intended Effect:
Prevent clang updates from breaking PCH builds, see cmdstanpy issues
How to Verify:
Side Effects:
This could lead to several PCHs being made over time if the user doesn't run a make clean-all every now and then. This could cause the directory size to increase over time for an installation.
Documentation:
None
Copyright and Licensing
Please list the copyright holder for the work you are submitting (this will be you or your assignee, such as a university or company):
Simons Foundation
By submitting this pull request, the copyright holder is agreeing to license the submitted work under the following licenses:

Code: BSD 3-clause (https://opensource.org/licenses/BSD-3-Clause)
Documentation: CC-BY 4.0 (https://creativecommons.org/licenses/by/4.0/)

Note: to really have this work well, we need https://github.com/stan-dev/math/pull/2922

@rok-cesnovar - CI passed for this. Is there any more testing we can do? Maybe try building with a system that has multiple versions of clang installed?

I ran this on a system that has both clang-11 and clang-12:
git clone https://github.com/stan-dev/cmdstan --recursive
make clean-all

sudo ln -s /usr/bin/clang-11 /usr/bin/clang
sudo ln -s /usr/bin/clang++-11 /usr/bin/clang++

make build -j8
make examples/bernoulli/bernoulli

sudo rm /usr/bin/clang
sudo rm /usr/bin/clang++
sudo ln -s /usr/bin/clang-12 /usr/bin/clang
sudo ln -s /usr/bin/clang++-12 /usr/bin/clang++

make examples/bernoulli/bernoulli

ls stan/src/stan/model/
  finite_diff_grad.hpp           gradient.hpp             hessian_times_vector.hpp  log_prob_grad.hpp    model_base_crtp.hpp   model_header_11_0.d        model_header_12_0.hpp.gch  test_gradients.hpp
grad_hess_log_prob.hpp         gradient_dot_vector.hpp  indexing                  log_prob_propto.hpp  model_functional.hpp  model_header_11_0.hpp.gch  prob_grad.hpp
grad_tr_mat_times_hessian.hpp  hessian.hpp              indexing.hpp              model_base.hpp       model_header.hpp      model_header_12_0.d        rethrow_located.hpp

Cleaning up works great as well. The only question I have is:

is "_12_0" enough of a detailed version to notably make this precompiled headers experience better?

is "_12_0" enough of a detailed version to notably make this precompiled headers experience better?

One question which might help answer that is "Can you run that same experiment against develop?"
My understanding is the answer is no, compiling with clang-12 would fail unless you run a make clean-all beforehand. Assuming I'm correct, at a bare minimum this seems to be an improvement.
There's a related question which is "could/should we be doing more?", which I'm less confident about. If we really wanted to we could try to put the compiler patch version (e.g. 12.0.x) in there as well

On develop it failed with:
make examples/bernoulli/bernoulli

--- Translating Stan model to C++ code ---
bin/stanc  --o=examples/bernoulli/bernoulli.hpp examples/bernoulli/bernoulli.stan

--- Compiling, linking C++ code ---
clang++ -std=c++1y -D_REENTRANT -Wno-sign-compare -Wno-ignored-attributes      -I stan/lib/stan_math/lib/tbb_2020.3/include    -O3 -I src -I stan/src -I stan/lib/rapidjson_1.1.0/ -I lib/CLI11-1.9.1/ -I stan/lib/stan_math/ -I stan/lib/stan_math/lib/eigen_3.4.0 -I stan/lib/stan_math/lib/boost_1.78.0 -I stan/lib/stan_math/lib/sundials_6.1.1/include -I stan/lib/stan_math/lib/sundials_6.1.1/src/sundials    -DBOOST_DISABLE_ASSERTS          -c -include-pch stan/src/stan/model/model_header.hpp.gch -x c++ -o examples/bernoulli/bernoulli.o examples/bernoulli/bernoulli.hpp
error: Objective-C was enabled in PCH file but is currently disabled
error: PCH file was compiled for the tune CPU '' but the current translation unit is being compiled for target 'generic

So I agree, this is an improvement and lets merge it as is. We will see if a patch version is needed once this fix is out in the wild.


Reset doesn't update the value prop on a custom component

Describe the bug
I have a custom input field which uses the same logic for the input field to handle the label as: https://smeltejs.com/components/text-fields
The issue that I have is, that when I call the reset function on the context, it will reset the value, but the value prop on the component itself is not changed. The component needs to react on value changes, to set the label back. But instead the label is still minimized at the top of the field. It's a little bit strange, because the value itself is reset in the text field. The problem is only that the value prop gets not updated.
A workaround is to use the form data directly and bind it to the value of the field:
const { form: passwordForm, data: passwordData } = createForm<PasswordForm>({
  ...
});

$: password = getValue($passwordData, (d) => d.password);

<form use:passwordForm>
    <PasswordField
        id="password"
        name="password"
        label={$LL.Form.Fields.Password()}
        value={password}
    />
</form>

With this the value prop on the input component gets updated.
Which package/s are you using?
felte (Svelte), @felte/reporter-svelte, @felte/validator-yup
Environment

OS: MacOs
Browser: Brave
Version: 1.2.6

To reproduce
No response
Small reproduction example
No response
Screenshots
No response
Additional context
No response

Hey! When you say "custom component" do you mean something built with createField? If so, it does accept an onFormReset function to handle situations like this.

Ah. I think I see where the issue comes from. Yeah, while Felte does reset the value of the input itself (in HTML), browser's don't dispatch any event when a value changes programatically. So there's no way for Svelte to know the value has changed.
Assigning the value as you mentioned before works, but for ergonomics maybe creating the component with createField and implementing onFormReset solves your issue?

I tried your suggestion, but it doesn't work. Maybe I have done something wrong.
Here is the update component with createField:

    <input
        use:field
        on:focus={toggleFocused}
        on:blur={handleBlur}
        on:input={handleInput}
        aria-label={label}
        {id}
        {name}
        {type}
        {maxlength}
        {disabled}
        {value}
        class="w-full input input-bordered focus:outline-none pt-4"
        class:pr-12={$$slots.rightIcon != null}
    />

        {label}

    {#if $$slots.rightIcon != null}

<slot name="rightIcon" />

    {/if}

<ValidationMessage for={id} let:messages={message}>
    {#if message}

            <AlertCircle size={15} />

{message}

    {/if}
</ValidationMessage>

With this code I get the following error:
create-field.ts:71 Uncaught RangeError: Maximum call stack size exceeded.
    at dispatchEvent (create-field.ts:71:13)
    at onInput (create-field.ts:144:5)
    at HTMLInputElement.handleInput (InputField.svelte:34:9)
    at dispatchEvent (create-field.ts:71:13)
    at onInput (create-field.ts:144:5)
    at HTMLInputElement.handleInput (InputField.svelte:34:9)
    at dispatchEvent (create-field.ts:71:13)
    at onInput (create-field.ts:144:5)
    at HTMLInputElement.handleInput (InputField.svelte:34:9)
    at dispatchEvent (create-field.ts:71:13)

I can fix that by removing onInput(value);. But after removing the part, the onFormReset function will not be called.
Do you have an idea?


Please invite me to the GitHub Community Organization

Please invite me to the GitHub Community Organisation.

Name: Thomas Vogg
Discord Username(if exists):

Additional Context: Just saw your inspiring YouTube Video with Ruth Ikegah.

I really like the idea of open source community and development and would love to join, to participate, to grow!
:nerd_face:

Eddie or Mikey will send you an invite as soon as they can 🤓

Invitation sent for the GitHub Organisation. Welcome to the community 🎉
Don't forget after accepting to make it public so it appears on your GitHub profile for everyone else to see, you can do this by finding your name in the GitHub organisation list and change the dropdown to public https://github.com/orgs/EddieJaoudeCommunity/people
Tips for practising:
Customise your GitHub profile, here is a live stream on it https://www.youtube.com/watch?v=cT6GXCuS0Zo
Practice repo, instructions on how to add your name to the README in the README https://github.com/EddieJaoudeCommunity/hacktoberfest-practice
Remember contributing to open source is not just about code, its about collaboration, communication and adding value
I hope that helps


Anti-aliasing in Windows doesn't work.

well, this is now fixed, almost 4 years later :)

:+1: congrats :smile:


shadowThemeOnly not founded

When I use this library, I get this error.

/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/dropdown_below-0.0.5/lib/dropdown_below.dart:543:32: Error: No named parameter with the name 'shadowThemeOnly'.
theme: Theme.of(context, shadowThemeOnly: true),
^^^^^^^^^^^^^^^
/C:/src/flutter/packages/flutter/lib/src/material/theme.dart:106:20: Context: Found this candidate, but the arguments don't match.
static ThemeData of(BuildContext context) {
^^

Hi @Tokenizer94, thx for use this package.
I'm already fixed this issue in version 0.0.6
Try install version 0.0.6 and issue is gone, than you can close this issue Thx XD!

Thanks.


Detailed information

Hello, do you have any papers related to this project? Can I convert my tif file into your mat file

Hi @SHAOTAO1998
Unfortunately, I do not have any papers to provide, this was only a university project.


fix: use production version of react/jsx-runtime

Description
Use production version of react/jsx-runtime to disable development warnings and also speed up the code. Change the react/jsx-runtime import to react/cjs/react-jsx-runtime.production.min in transpiled bundle.
How to test (in easiest way):

link or install locally this package from my PR in @asyncapi/generator package
test @asyncapi/markdown-template template and you shouldn't see any warnings related to key props.

Related issue(s)
Resolves https://github.com/asyncapi/generator-react-sdk/issues/37

@jonaslagoni You had right (in one of the issue comments) with production version of react :) Thanks!

@jonaslagoni You had right (in one of the issue comments) with production version of react :) Thanks!

@magicmatatjahu would there be any use-case where we would not want to use production version? 🤔
Thinking about in development, anything production lib makes deficult?

@magicmatatjahu would there be any use-case where we would not want to use the production version? 🤔
Thinking about in development, anything production lib makes difficult?

I thought about that, but react only make warns for internal props like key which for as doesn't needed and ref which doesn't work properly due to fact that we don't handle dynamic component, but only render component to string, so this prop is unnecessary.

@jonaslagoni We can make two separate compilation process for dev and prod and integrate it with generator with flag --compile=prod|dev, but only when community raise that issue :)

@jonaslagoni We can make two separate compilation process for dev and prod and integrate it with generator with flag --compile=prod|dev, but only when community will raise that issue :)

As long as adding this production dependency does not suddenly hide warnings and problems that make the development of templates harder we should be good 👍

The warnings will be hidden, but they don't matter to us because they are used only for dynamic components that may change in runtime, eg in html app :) I also checked the markdown-template by adding a few bug and we have an error trace due to the source-map, so it's not bad :) Errors will still appear from jsx-runtime but we only hide warnings :)


custom js and carousels not working

Hi,
I tried bootstrap carousel and owl carousel but it's not working along with barba.js.  Is there any way can I do it with your script?

You need to use events. There are probably over 100 issues here with the answer. Have a look at issue #291.

Thank you so much! I referred to your comment and it worked.


Added: Configuration parameters array constructor injection

Added: Configuration parameters array constructor injection
test added

Hi @topotru, would you mind addressing the issues that StyleCI is reporting? I'll do my own reviews meanwhile.
Thanks

Done

@topotru Just added two small comments :)

Yeah )

Done

Beautiful, thank you!

Thank you! )

Don't forget about changelog

Oh right, thanks

Andres, maybe you will make minor release?
or temporary remove rows 75-82  from readme cause they are not released yet?

I treat the master branch as the "unreleased" branch but you've made me realized that it can be confusing. I'll do the release tonight. Thanks for the feedback


⚠ Jenkins Plugins Artifactory has degraded performance

In 08636c1, Jenkins Plugins Artifactory (https://get.jenkins.io/plugins/artifactory/) experienced degraded performance:

HTTP code: 200
Response time: 1024 ms

Resolved: Jenkins Plugins Artifactory performance has improved in b43ac53 after 1 hour, 6 minutes.


Change KeysignPayload to using protobuf

Currently KeysignPayload is serialised to JSON message , and then use it to generate QR code , which make the Qr Code quite big , sometimes it might exceed it's limit 4kb
Let's change it to use protobuf

decided to just zip the json payload for now


Refacto: move profiles rules filter to generic class and use it systematically in jobs

To merge after #486

Codecov Report
Attention: Patch coverage is 67.24138% with 19 lines in your changes are missing coverage. Please review.

Project coverage is 65.51%. Comparing base (80851c6) to head (9c8c524).

Additional details and impacted files

@@            Coverage Diff             @@
##             main     #487      +/-   ##
==========================================
- Coverage   68.48%   65.51%   -2.97%
==========================================
  Files          48       48
  Lines        3011     3010       -1
  Branches      648      648
==========================================
- Hits         2062     1972      -90
- Misses        769      851      +82
- Partials      180      187       +7

Flag
Coverage Δ

unittests
65.24% <63.79%> (-2.71%)
:arrow_down:

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

Files
Coverage Δ

...loyment_toolbelt/jobs/job_profiles_synchronizer.py
41.83% <66.66%> (-8.96%)
:arrow_down:

qgis_deployment_toolbelt/jobs/job_splash_screen.py
67.85% <0.00%> (-10.72%)
:arrow_down:

...ployment_toolbelt/jobs/job_plugins_synchronizer.py
73.01% <40.00%> (-4.41%)
:arrow_down:

...deployment_toolbelt/jobs/job_plugins_downloader.py
50.75% <54.54%> (-1.92%)
:arrow_down:

qgis_deployment_toolbelt/jobs/generic_job.py
89.15% <78.37%> (+6.39%)
:arrow_up:

... and 6 files with indirect coverage changes


Adding Mac quick install script for mxnet with Python

[Script Authored by Bhavin Thaker]

Quick install script for Mac OS users.
This scripts install MXNet for Python users on Mac.
Tested on Sierra and ElCapitan versions.

@miguelgfierro @thirdwing @hetong007
Recently R test fails randomly at the load step. Could you look into it?
https://travis-ci.org/dmlc/mxnet/jobs/191057732

This seems an error from Travis, see https://github.com/travis-ci/travis-ci/issues/4192

does this fix work?
ulimit -s 1082768  # Require a bit of more memory.


Speakers Page shows speaker twice if they give talk a) alone and b) second one together with another speaker

The Speakers Page shows speaker twice if they give talk a) alone and b) second one together with another speaker. Expected is, that the talk shows up across each speakers image.
This might be an issue in the format and server. Please open relevant issues in those projects.

@mariobehling The issue lies in the api data as the speaker data for a talk containing two people is listed together as speaker 1 and speaker 2 which lets the app generator treat them as one.

@mariobehling @aayusharora I opened an issued in the orga-server please check this issue .
Seems like the organised entered two names in the speaker field which is causing the problem.
Please guide about how to handle the case.

@mariobehling Please suggest this. In that case this will belong to two separate sessions.  Thanks

@aayusharora Not sure, what is the question: The goal of the open event project was that we can have multiple relationships, e.g. several speaker for one session.

@mariobehling We can have multiple speakers for a session but in the above case the organiser has entered names of two speakers in one data cell instead of adding them separately.
Please check https://github.com/fossasia/open-event-orga-server/issues/3240


Update EventIds to be unique and be consistent with ILogger/DiagnosticSource

Issues #218 #6802
(Didn't update breaking change exceptions yet.)
(Doesn't cover #6946 - Template-based format strings.)
This change introduces unique event IDs and a pattern such that every time an event is logged it is sent to both ILogger and DiagnosticSource. Specifically:

EventIds are globally unique across core/relational/any given provider. (As discussed in #218)
The same EventIds are used for ILogger and DiagnosticSource (ILogger uses the int/name tuple, DiagnosticSource uses just the name)
EventIds align with logger categories
Automated tests for the EventId/LoggerExtensions pattern--every EventId has a LoggerExtension method that works as expected.
Warnings configuration is updated to use the new event ids
Updated IsEnabled to handle warnings as errors and ignored warnings more transparently.

Backlog: We could probably gen all of this boilerplate from a metadata file like we do for resx.

/cc @NickCraver @avanderhoorn Pinging you on this for visibility into some of the breaking changes to the way we use ILogger and DiagnosticSource in EF Core 2.0. This is not the final code--we're still investigating/deciding on what to do about the payload types for DiagnosticSource (see #7939) and intending to update structured logging (see #6946).

...so I'm guessing that's a no?

@NickCraver Sorry for not seeing your comments. GitHub did not send me the usual notifications--not sure why. We have been discussing payload types today and I am going to go comment on #7939 and then ask a follow up question here.

@NickCraver Based on my last comment on #7939 (using nominal types for payload) would you still be using the DiagnosticName attribute?

For my part looks great and includes a ton more than we had before! Re typed vs dynamic objects, I was a part of the original discussions in aspnet around that and fought for types messages but lost that one. So for my part, I'm all for typed objects.

Sorry, crazy day here - yes to typed objects, absolutely. I need to think through a full consumption, but yes: I think we wouldn't need the const constraints given all the changes together.
All together this set of changes looks awesome for consumers. Great work!


Flaky test: RSH1b2 (push admin should list devices by id) - Device_Registrations__list__should_list_devices_by_client_id

Sometimes we get this on Travis:
3426    ✗ Device_Registrations__list__should_list_devices_by_client_id

┆Issue is synchronized with this Jira Bug by Unito

An intermittent crash can happen in the PushAdmin tests. For example (PushAdmin.swift:444), for some reason if the realtime.push.admin.deviceRegistrations.list call takes more than the waitUntil timeout, then an uncaught NSInternalInconsistencyException can happen with the reason: 'Attempted to report a test failure to XCTest while no test case was running'. Since the realtime.push.admin.deviceRegistrations.list request isn't cancelled when the test case ends, the callback will be called, for example with a network timeout error, and the crash will occur when the fail method is performed because the test case doesn't exist anymore.

Closing outdated issue. The codebase changed drastically since then and all skipped tests were unskipped, see PRs for https://github.com/ably/ably-cocoa/issues/1406 and https://github.com/ably/ably-cocoa/issues/1848
If you encounter frequently failing test again, please create a new issue with a best guess why it might be happening.


Mediascape issues with new XR

There are a couple of issues with Mediascape, since we went to the new XR plugin system:

[x] some walls were only rendered in one eye. I've fixed this by setting render mode to "multipass" but this is supposed to be less efficient than single pass.
[x] When going to the studio you see nothing until you remove the HMD and put it on again. I've also seen this for other scene changes (calibration->pilot0), it may have to do with our dynamic initialisation of XR plugins.
[x] It appears the costume isn't always attached to the hands when in the stage scene.

All of this has been implemented and tested.


Amazon rejected...

hello,
im getting this message after starting the "program" : Damn, Amazon rejected our request. Retrying in five seconds. But first i get the normal message, that the deal is available .. after sleeping 30 sec i will get the reject error.

Yea this is because Amazon is detecting the script as a possible bot and shows a capture image.
Do you have the php curl extension enabled? This way the script uses cookies which could help since it almost reacts like a browser. Maybe Amazon is not rejecting that quick then. You just need to install and enable php_curl and restart the script, theres no further configuration is needed.

Hi ! first of all thanks for sharing... really awesome. I have a question, I have knowledge about HTML CSS, a bit of php, but not that much. I am using windows, and trying to use your script.  Never used the command line on windows, .. Could you maybe give me some noob tipps.. Something like step by step ( thannnnnks)

Download the Tool https://github.com/dstuecken/Amazon-WD-Alerts/releases/download/1.0.2/amazon-wd-alerts.zip and extract it into c:\

Then download php from http://windows.php.net/downloads/releases/php-5.6.29-nts-Win32-VC11-x86.zip, then extract it to c:\amazon-wd-alerts, then open your console and type the following
c:
cd amazon-wd-alerts
php.exe check.php B01BWAHNH4

Hello, thank you for your answer,  it worked but not 100 %, getting this error message : " Error creating resource: [message] fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
[message] fopen(https://www.amazon.de/gp/offer-listing/B01WAHNH4): failed to open stream: Invalid argument
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312"
Think it hast something to do with PHP environment ? Regards

Yes, rename php.ini-production to php.ini in your c:\amazon-wd-alerts directory. Them open the php.ini file and remove the ; from ;extension=php_openssl.dll, so it looks like this:
... ;extension=php_oci8_12c.dll  ; Use with Oracle Database 12c Instant Client extension=php_openssl.dll ;extension=php_pdo_firebird.dll ...

Good morning, thanks again for trying to help me, but it is still not working.
I am connected to the internet via LAN, and yeah that is all. I've done what you have told me, If you still have any other idea it would be great, here are the error messages (thanks)
C:\amazon-wd-alerts>php.exe check.php B01BWAHNH4
The system cannot find the path specified.
I'm happy to start scanning for your deals!
Error creating resource: [message] fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
[message] fopen(https://www.amazon.de/gp/offer-listing/B01BWAHNH4): failed to open stream: Invalid argument
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
Error creating resource: [message] fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
[message] fopen(https://www.amazon.de/gp/offer-listing/B01BWAHNH4): failed to open stream: Invalid argument
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
Error creating resource: [message] fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
[message] fopen(https://www.amazon.de/gp/offer-listing/B01BWAHNH4): failed to open stream: Invalid argument
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
Error creating resource: [message] fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
[message] fopen(https://www.amazon.de/gp/offer-listing/B01BWAHNH4): failed to open stream: Invalid argument
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
Error creating resource: [message] fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
[message] fopen(https://www.amazon.de/gp/offer-listing/B01BWAHNH4): failed to open stream: Invalid argument
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
Error creating resource: [message] fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
[message] fopen(https://www.amazon.de/gp/offer-listing/B01BWAHNH4): failed to open stream: Invalid argument
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
Error creating resource: [message] fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
[message] fopen(https://www.amazon.de/gp/offer-listing/B01BWAHNH4): failed to open stream: Invalid argument
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
Error creating resource: [message] fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
[message] fopen(https://www.amazon.de/gp/offer-listing/B01BWAHNH4): failed to open stream: Invalid argument
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
Error creating resource: [message] fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
[message] fopen(https://www.amazon.de/gp/offer-listing/B01BWAHNH4): failed to open stream: Invalid argument
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
Error creating resource: [message] fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
[message] fopen(https://www.amazon.de/gp/offer-listing/B01BWAHNH4): failed to open stream: Invalid argument
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
Error creating resource: [message] fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
[message] fopen(https://www.amazon.de/gp/offer-listing/B01BWAHNH4): failed to open stream: Invalid argument
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
Error creating resource: [message] fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
[message] fopen(https://www.amazon.de/gp/offer-listing/B01BWAHNH4): failed to open stream: Invalid argument
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
Error creating resource: [message] fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
[message] fopen(https://www.amazon.de/gp/offer-listing/B01BWAHNH4): failed to open stream: Invalid argument
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
Error creating resource: [message] fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
[message] fopen(https://www.amazon.de/gp/offer-listing/B01BWAHNH4): failed to open stream: Invalid argument
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
Error creating resource: [message] fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
[message] fopen(https://www.amazon.de/gp/offer-listing/B01BWAHNH4): failed to open stream: Invalid argument
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
Error creating resource: [message] fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
[message] fopen(https://www.amazon.de/gp/offer-listing/B01BWAHNH4): failed to open stream: Invalid argument
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
Error creating resource: [message] fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
[message] fopen(https://www.amazon.de/gp/offer-listing/B01BWAHNH4): failed to open stream: Invalid argument
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
Error creating resource: [message] fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
[message] fopen(https://www.amazon.de/gp/offer-listing/B01BWAHNH4): failed to open stream: Invalid argument
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
Error creating resource: [message] fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
[message] fopen(https://www.amazon.de/gp/offer-listing/B01BWAHNH4): failed to open stream: Invalid argument
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
Error creating resource: [message] fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
[message] fopen(https://www.amazon.de/gp/offer-listing/B01BWAHNH4): failed to open stream: Invalid argument
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
Error creating resource: [message] fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
[message] fopen(https://www.amazon.de/gp/offer-listing/B01BWAHNH4): failed to open stream: Invalid argument
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
Error creating resource: [message] fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
[message] fopen(https://www.amazon.de/gp/offer-listing/B01BWAHNH4): failed to open stream: Invalid argument
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
Error creating resource: [message] fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
[message] fopen(https://www.amazon.de/gp/offer-listing/B01BWAHNH4): failed to open stream: Invalid argument
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
Error creating resource: [message] fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
[message] fopen(https://www.amazon.de/gp/offer-listing/B01BWAHNH4): failed to open stream: Invalid argument
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
Error creating resource: [message] fopen(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP?
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312
[message] fopen(https://www.amazon.de/gp/offer-listing/B01BWAHNH4): failed to open stream: Invalid argument
[file] C:\amazon-wd-alerts\vendor\guzzlehttp\guzzle\src\Handler\StreamHandler.php
[line] 312

Please try again with this PHP configuration: php.ini.zip
Extract into your C:\amazon-wd-alerts directory.
It has something to do with your ssl extension. It is not loaded properly.

Hey ! again thanks to triyng to figure it out, hopefully, you like to fix stuff 👍
So, I am on my private machine at home, when I do here the first tutorial what you have explained, I will get this error message : C:>cd c:\amazon-wd-alerts
c:\amazon-wd-alerts>php.exe check.php B01BWAHNH4
Warning: require(C:\amazon-wd-alerts\vendor\composer/../symfony/polyfill-mbstring/bootstrap.php): failed to open stream: No such file or directory in C:\amazon-wd-alerts\vendor\composer\autoload_real.php on line 66
Fatal error: require(): Failed opening required 'C:\amazon-wd-alerts\vendor\composer/../symfony/polyfill-mbstring/bootstrap.php' (include_path='.;C:\php\pear') in C:\amazon-wd-alerts\vendor\composer\autoload_real.php on line 66
c:\amazon-wd-alerts>
doing normal tutorial
the other one with prepared folder
When doing the changes, and adding the PHP file which you have created or added for me, then I will get this error message :
c:\amazon-wd-alerts>php.exe check.php B01BWAHNH4
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\php\ext\php_curl.dll' - Das angegebene Modul wurde nicht gefunden.
in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'C:\php\ext\php_curl.dll' - Das angegebene Modul wurde nicht gefunden.
in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\php\ext\php_openssl.dll' - Das angegebene Modul wurde nicht gefunden.
in Unknown on line 0
Warning: PHP Startup: Unable to load dynamic library 'C:\php\ext\php_openssl.dll' - Das angegebene Modul wurde nicht gefunden.
in Unknown on line 0
PHP Warning:  require(C:\amazon-wd-alerts\vendor\composer/../symfony/polyfill-mbstring/bootstrap.php): failed to open stream: No such file or directory in C:\amazon-wd-alerts\vendor\composer\autoload_real.php on line 66
Warning: require(C:\amazon-wd-alerts\vendor\composer/../symfony/polyfill-mbstring/bootstrap.php): failed to open stream: No such file or directory in C:\amazon-wd-alerts\vendor\composer\autoload_real.php on line 66
PHP Fatal error:  require(): Failed opening required 'C:\amazon-wd-alerts\vendor\composer/../symfony/polyfill-mbstring/bootstrap.php' (include_path='.;C:\php\pear') in C:\amazon-wd-alerts\vendor\composer\autoload_real.php on line 66
Fatal error: require(): Failed opening required 'C:\amazon-wd-alerts\vendor\composer/../symfony/polyfill-mbstring/bootstrap.php' (include_path='.;C:\php\pear') in C:\amazon-wd-alerts\vendor\composer\autoload_real.php on line 66
Good night :)


Locking on orientdb

OrientDB Version: <3.1.7>
Java Version: <openjdk 13.0.2 2020-01-14>
OS: <Linux api-content-7c984f76ff-jrwnn 4.15.0-1102-azure #113~16.04.1-Ubuntu SMP Wed Dec 9 20:42:32 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux>
Expected behavior

Actual behavior
<Orientdb is not responsive, cannot login or list any databases from the studio start page.>
Steps to reproduce
This happens after a lot of parallel read/write the multiple databases. So I don't have the steps to reproduce it. However I have the full thread dump and logs output from orient, if required I will email it separately.
There were 60+ threads BLOCKED in the thread dump, all waiting to acquire [0x00000003c00353a8] or [0x00000003c00e88c0].
As you can see the thread listing databases already hold [0x00000003c00e88c0], but it never returns. The server has been like that for at least an hour and eventually we have to shutdown all databases and restart orient.
Do you know what is com.orientechnologies.orient.server.OServer.listDatabases doing? We do have a lot of databases (1068, and each with a lot of files. around 2000 per each database)
"OrientDB HTTP Connection /<IP_ADDRESS>:2480<-/<IP_ADDRESS>:35688": waiting to acquire [0x00000003c00e88c0], holding [0x00000003c00353a8]
	at com.orientechnologies.orient.core.db.OrientDBEmbedded.openNoAuthorization(OrientDBEmbedded.java:453)
	at com.orientechnologies.orient.core.db.OrientDBEmbedded.openNoAuthorization(OrientDBEmbedded.java:79)
	at com.orientechnologies.orient.server.OSystemDatabase.openSystemDatabase(OSystemDatabase.java:93)
	at com.orientechnologies.orient.server.OSystemDatabase.execute(OSystemDatabase.java:102)
	at com.orientechnologies.orient.server.security.ODefaultServerSecurity.getSystemUser(ODefaultServerSecurity.java:329)
	at com.orientechnologies.orient.server.security.authenticator.OSystemUserAuthenticator.isAuthorized(OSystemUserAuthenticator.java:88)
	at com.orientechnologies.orient.server.security.ODefaultServerSecurity.isAuthorized(ODefaultServerSecurity.java:355)
	at com.orientechnologies.orient.server.network.protocol.http.command.get.OServerCommandGetListDatabases.execute(OServerCommandGetListDatabases.java:66)
	at com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpAbstract.service(ONetworkProtocolHttpAbstract.java:253)
	at com.orientechnologies.orient.server.network.protocol.http.ONetworkProtocolHttpAbstract.execute(ONetworkProtocolHttpAbstract.java:811)
	at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:67)

"OrientDB (/<IP_ADDRESS>:2424) <- BinaryClient (/<IP_ADDRESS>:51416)": running, holding [0x00000003c00e88c0]
	at sun.nio.fs.UnixNativeDispatcher.stat0(Native Method)
	at sun.nio.fs.UnixNativeDispatcher.stat(UnixNativeDispatcher.java:291)
	at sun.nio.fs.UnixFileAttributes.get(UnixFileAttributes.java:70)
	at sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:52)
	at sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:144)
	at sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99)
	at java.nio.file.Files.readAttributes(Files.java:1737)
	at java.nio.file.Files.isDirectory(Files.java:2192)
	at com.orientechnologies.orient.core.db.OrientDBEmbedded.lambda$scanDatabaseDirectory$6(OrientDBEmbedded.java:969)
	at com.orientechnologies.orient.core.db.OrientDBEmbedded$$Lambda$233/292680111.accept(Unknown Source)
	at java.lang.Iterable.forEach(Iterable.java:75)
	at com.orientechnologies.orient.core.db.OrientDBEmbedded.scanDatabaseDirectory(OrientDBEmbedded.java:967)
	at com.orientechnologies.orient.core.db.OrientDBEmbedded.listDatabases(OrientDBEmbedded.java:841)
	at com.orientechnologies.orient.server.OServer.listDatabases(OServer.java:1303)
	at com.orientechnologies.orient.server.OConnectionBinaryExecutor.executeSubscribeDistributedConfiguration(OConnectionBinaryExecutor.java:1782)
	at com.orientechnologies.orient.client.remote.message.OSubscribeDistributedConfigurationRequest.execute(OSubscribeDistributedConfigurationRequest.java:35)
	at com.orientechnologies.orient.server.OConnectionBinaryExecutor.executeSubscribe(OConnectionBinaryExecutor.java:1768)
	at com.orientechnologies.orient.client.remote.message.OSubscribeRequest.execute(OSubscribeRequest.java:74)
	at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.sessionRequest(ONetworkProtocolBinary.java:355)
	at com.orientechnologies.orient.server.network.protocol.binary.ONetworkProtocolBinary.execute(ONetworkProtocolBinary.java:239)
	at com.orientechnologies.common.thread.OSoftThread.run(OSoftThread.java:67)

Thanks,
Kathy

Could you please send the entire stack trace of all the threads?

I don't have the entire stack trace anymore, but I have managed to avoid the lock and improve the performance by moving a lot of the databases outside the default storage, to some custom storage.
I discovered that listDatabases and scanDatabaseDirectory was called on every command executed remotely, and when you have a lot of folders in the directory, somehow when multiple execute threads were called, they locks up each other.
If I move most of the databases into the custom storage like this by changing the server config xml, then because scanDatabaseDirectory doesn't scan custom storages, it speeds things up. This is only a workaround, but it clearly shows where the issue is.

.
.
.
.


[CSL-776] Improve 'getKnownPeers' strategy

I think before merging this  PR we should merge
https://github.com/serokell/kademlia/pull/7
and merge this commit
https://github.com/serokell/time-warp-nt/tree/kademlia-csl770
into master

Please explain in English what your commit does because I have no idea

@neongreen You can see description of CSL-776 ;)

Also, pls merge master

@neongreen @rockbmb @georgeee please rereview and confirm everything to look good to you.


Disable uniform uploads when testing on Travis

Disable uniform uploads when testing on travis.
Change the default epsilon for 16bit float devices to 1e-4 instead of 1e-3 and change the clip test to stop testing 1-epsilon < 1 since the IEEE 754 buckets around 1 are different than around 0.
Bring back node 8 testing since the LTS is for another 14 months. And test cpu backend in both node envs.

DEV

This change is

I see - that makes sense - thanks!


Replace azure pipelines with github actions.

Summary of the changes / Why this improves CrateDB
Checklist

[x] User relevant changes are recorded in CHANGES.txt
[x] Touched code is covered by tests
[x] Documentation has been updated if necessary
[x] CLA is signed
[x] This does not contain breaking changes, or if it does:

It is released within a major release
It is recorded in CHANGES.txt
It was marked as deprecated in an earlier release if possible
You've thought about the consequences and other components are adapted
(E.g. AdminUI)

@Mergifyio refresh

mergify rule seems to work fine


About FLOPs

Hi,
I'm calculating the FLOPs of the default settings of HBOnet where width_mult = 1.0 and input size is 3x224x224 with thop (https://github.com/Lyken17/pytorch-OpCounter). Below please find my script with Python3.5.
import hbonet
from thop import profile, clever_format
import torch
model = hbonet.hbonet()
flops, params = profile(model, inputs=(torch.randn(1,3,224,224), ))
flops, params = clever_format([flops, params], "%.3f")
print(flops, params) #984.760M 4.562M
It turns out to me that FLOPs and params are 984.760M & 4.562M, respectively. As you can see, the number of flops is far more than 300M claimed in your paper.
May I know if you counted nn.Upsample and nn.BatchNorm2d in your paper? To make it clear, could you please release the code you used to count FLOPs in your paper? Many thanks in advance.

In my case, the toolbox you mentioned outputs wrong results frequently. I prefer https://github.com/nmhkahn/torchsummaryX. You could also check it by yourself to see which one is more precise. BTW, upsample and BN layers are usually not included according to the definition of FLOPs.


Add threat model statement

mOSL is built around my use cases. If you'd like to extend it feel free to fork it or do whatever you like with it as it's licensed under the MIT License.
It only supports the latest release of macOS and doesn't care about older releases.
It is designed to apply more {sensible | strict} defaults.
It aims to reduce attack surface but it is pragmatic in this pursuit. The author utilises Bluetooth for services such as Handoff and so it is left enabled.
There is no specific focus on enhancing privacy.
It will not protect you from the FSB, MSS, DGSE, or FSM

Threat Model
The main goal is to enforce already secure defaults and apply more strict non-default options.
It aims to reduce attack surface but it is pragmatic in this pursuit. The author utilises Bluetooth for services such as Handoff so it is left enabled.
There is no specific focus on enhancing privacy.
Finally, mOSL will not protect you from the FSB, MSS, DGSE, or FSM.


#4395 Added Adopters list in Readme.md

This PR is for #4395 Adding Adopters list to Readme.md file

Hey @bwplotka Yes sure thanks. i will keep this in mind from next time.


Fix 3d grid origin collision flicker.

Fixes #20563.

I don't know how to do that. Closing this PR


Add Excel OpenSpout exporter

PhpSpreadsheet is not very performant for larger files. Here is a suggestion to add OpenSpout as an additional exporter. It performs ~40x faster in my test setup.
HTML tags are stripped from the input data because there is no rich text support in OpenSpout.

Looks good, thanks  👍

Published as well now, sorry.

Thanks very much!


Assorted kqueue fixes/improvements

See the commits for description

Thanks for the PR.
The commit that removes the RefCell looks fine to me.
I do have a question about removing the EV_DISABLE. The reason it was originally used was to handle reregister. Specifically, if you register a socket w/ Readable + Writable, then you reregister it with only Readable, that should prevent any writable events from being fired. Since kqueue tracks readable and writable separately, it seems that this change would mean that there is no way to "reregister" a FD to remove an interest. Is this correct?

I do have a question about removing the EV_DISABLE. The reason it was originally used was to handle reregister. Specifically, if you register a socket w/ Readable + Writable, then you reregister it with only Readable, that should prevent any writable events from being fired. Since kqueue tracks readable and writable separately, it seems that this change would mean that there is no way to "reregister" a FD to remove an interest. Is this correct?

In the 2nd commit I take care to ensure mio EV_DELETEs the writable event in the scenario you describe, essentially preserving the semantics of the code previously.
Since in the 2nd commit code also checks registration errors on a per-kevent basis,  so it is able to precisely ignore the errors that arise when event that’s being EV_DELETEd does not exist. This is still preferable over the EV_DISABLE approach, due to problem described in the 1st commit (not all kinds of descriptors can be registered with EV_WRITE|EV_DISABLE).
EV_DELETE approach may also be more efficient during actual polling, but I haven’t confirmed that.

Ok, that makes sense. I think this is a good change.
On Mon, Jan 30, 2017 at 11:13 AM Simonas Kazlauskas <
<EMAIL_ADDRESS>wrote:

I do have a question about removing the EV_DISABLE. The reason it was
originally used was to handle reregister. Specifically, if you register a
socket w/ Readable + Writable, then you reregister it with only Readable,
that should prevent any writable events from being fired. Since kqueue
tracks readable and writable separately, it seems that this change would
mean that there is no way to "reregister" a FD to remove an interest. Is
this correct?
In the 2nd commit I take care to ensure mio EV_DELETEs the writable event
in the scenario you describe, essentially preserving the semantics of the
code previously.
Since in the 2nd commit code also checks registration errors on a per-
kevent basis, so it is able to precisely ignore the errors that arise
when event that’s being EV_DELETEd does not exist. This is still
preferable over the EV_DISABLE approach, due to problem described in the
1st commit (not all kinds of descriptors can be registered with
EV_WRITE|EV_DISABLE).
EV_DELETE approach may also be more efficient during actual polling, but
I haven’t confirmed that.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/carllerche/mio/pull/529#issuecomment-276160034, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAAYJCr2ets4VOKEgUWluWqVAyIFhHCDks5rXjZwgaJpZM4LwofA
.

Hmm, so the tests don't pass locally for me (OS X 10.12.2)
It looks like registering a kqueue handle w/ write interest works?

running 1 test
test sys::unix::kqueue::does_not_register_rw ... FAILED

failures:

---- sys::unix::kqueue::does_not_register_rw stdout ----
	thread 'sys::unix::kqueue::does_not_register_rw' panicked at 'called `Result::unwrap_err()` on an `Ok` value: ()', ../src/libcore/result.rs:837
note: Run with `RUST_BACKTRACE=1` for a backtrace.

It passes on Travis’ 10.11 OS X and all of the BSDs I’ve tested (which is FreeBSD). Must be a OS X bug or maybe undocumented (apple likes those) and intended change.
I’m fine with removing the failing check, as really only the other one matters.

Thanks, merged 11e6cb32df2152cd2b0fd9668f42547f55bcdbc5


Decalring SetHandler time

Hi I am trying to use your library for my code, everything seems to be working on compile. However, I am getting an error code saying src\main.cpp: In function 'void setup()':
src\main.cpp:89:27: error: 'click' was not declared in this scope
buttonA.setClickHandler(click);
I am using the multiple buttons part from your code

Hey, did you define a function called click() in your source code?
This is what the compiler is looking for.

No, I haven't defined the same, since your example code had no part defining the same. How would you advice to have the same defined?

Please take another look at the example:
examples/MultipleButtons/MultipleButtons.ino
Below the loop() there IS the click() function defined.

Am 27.04.2022 um 10:23 schrieb rassalrich @.***>:

No, I haven't defined the same, since your example code had no part defining the same. How would you advice to have the same defined?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.


device-mapper-libs-2.02.173-r1: BAD signature

I'm having this error when trying to install docker:
> docker run -it alpine:edge sh
/ # apk update
fetch http://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
v3.6.0-3554-ga296738ed8 [http://dl-cdn.alpinelinux.org/alpine/edge/main]
v3.6.0-3549-g61b02a8cbf [http://dl-cdn.alpinelinux.org/alpine/edge/community]
OK: 8756 distinct packages available
/ # apk add docker
(1/7) Installing ca-certificates (20170801-r0)
(2/7) Installing libmnl (1.0.4-r0)
(3/7) Installing libnftnl-libs (1.0.7-r0)
(4/7) Installing iptables (1.6.1-r0)
(5/7) Installing device-mapper-libs (2.02.173-r1)
ERROR: device-mapper-libs-2.02.173-r1: BAD signature

I was able to reproduce it in different computers so I think it's something wrong with the repositories.

Looks like a package was pushed without bumping the revision: https://git.alpinelinux.org/cgit/aports/commit/main/lvm2?id=d12e28603897bebc4f7b8e3c1a5183ffdff67d79. I am purging it from cache and it should be fixed in the next 10 minutes.


Is ARM example on this page still up-to-date?

I'm looking for an ARM template that has all the rules for the NSG configured, as mentioned above. Is this page example still up-to-date ? https://docs.microsoft.com/en-us/azure/api-management/api-management-using-with-vnet .

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

ID: 8d854b3c-f9f9-7f6a-f889-e19acac2961c
Version Independent ID: ed544e54-d24b-2f37-05b6-8b60eacd2026
Content: How to use Azure API Management with virtual networks
Content Source: articles/api-management/api-management-using-with-vnet.md
Service: api-management
GitHub Login: @vladvino
Microsoft Alias: apimpm

I mean this page: https://github.com/Azure/azure-quickstart-templates/blob/master/201-api-management-create-with-internal-vnet/azuredeploy.json

@jochenvanwylick Thank you for your feedback! We will review and update as appropriate.

@jochenvanwylick @jochenvw Yes, the schema version is updated fairly recently and the template is deploying successfully.
Since this channel is for driving improvements towards MS Docs and we haven't determined any changes for this particular documentation upon reviewing your feedback, we'll proceed to close this issue. If there are further questions regarding this matter, please reopen it and we will gladly continue the discussion.


Region is lost for AwsSigV4HttpConnection when using AssumeRoleAWSCredentials

Describe the bug
Summary:
Given a basic aws credential that assumes a role for access to an Opensearch serverless endpoint, when the access token refreshes then I find logs trying to access "GET <IP_ADDRESS>/latest/dynamic/instance-identity/document" which times out causing latency in my application. This indicates that the region is not being found on the token refresh and the credential search is trying to find the region and finally failing to query EC2 instance metadata. This introduces 5 seconds of latency on these token refresh requests. The app still continues to work and the token does refresh but the region search causes issues in my logs and latency in the application. The search behavior is found in the following file. https://github.com/aws/aws-sdk-net/blob/master/sdk/src/Core/Amazon.Runtime/AWSRegion.cs#L179
Expected Behavior
When using an AssumeRoleAWSCredential and specifying the region on creation of the AwsSigV4HttpConnection, token refreshes should pull the region from that specified in the AwsSigV4HttpConnection.
Current Behavior
Given a basic aws credential that assumes a role for access to an Opensearch serverless endpoint, when the access token refreshes then I find logs trying to access "GET <IP_ADDRESS>/latest/dynamic/instance-identity/document" which times out causing latency in my application.
Reproduction Steps
//Ensure that credentials are not in the environment or profile but just passed in via strings.
var awsCredential = new BasicAWSCredentials(credentials.AccessKey, credentials.Secret);
var newCredentials = new AssumeRoleAWSCredentials(
                                                       awsCredential,
                                                       roleArn,
                                                       "opensearch-session");
var connection = new AwsSigV4HttpConnection(newCredentials, RegionEndpoint.USEast2, "aoss");
var connectionSettings = new ConnectionSettings(endpointUri, connection);
var openSearchClient = new OpenSearchClient(connectionSettings);
//wait for token refresh to occur.

Possible Solution
Work around:
Set the AWS_REGION environment variable so that the fall through region search finds something. This is less than optimal when utilizing multiple AWS credentials and regions.
Additional Information/Context
Token refresh for assumed credentials appears to happen hourly.
AWS .NET SDK and/or Package version used
AWSSDK.Core <IP_ADDRESS>
Targeted .NET Platform
.Net 6.0, .net framework 4.72
Operating System and version
Windows Server 2019

@isaacws Good morning. AwsSigV4HttpConnection is the class in OpenSearch .NET Client library. It has RegionEndpoint as one of the parameters in the constructor. This library is not maintained by AWS SDK team. Have you tried opening the issue in their support forums where the library might not be setting the region in client configuration internally?
Thanks,
Ashish

@ashishdhingra Thank you for the clarification. Perhaps this would be better suited in the AwsSigV4HttpConnection suite. I'll open the issue there. It could be a combination of factors between the two packages. It is definitely following the escalation search ending in the EC2 on token refresh which made me think it was something in the AssumeRoleAWSCredentials

Created bug with OpenSearch .Net Client github. https://github.com/opensearch-project/opensearch-net/issues/490

@isaacws Since you have opened issue in OpenSearch repo, please confirm if we could close the issue here.

I did receive a response back from the OpenSearch team. Here is a link to why this issue should be in the AWS-SDK project.
https://github.com/opensearch-project/opensearch-net/issues/490#issuecomment-1880213351
Given this information, it seems to me AssumeRoleAWSCredentials should accept a region, after all it is on credential refresh that it can't find the region and then fails. I misunderstood the mechanism by which the AwsSigV4HttpConnection was used in this context. The region is only related to signature calculations for this object. The token refresh is however dealt with by the SDK and that is where region is not being found in my use case.

opensearch-project/opensearch-net#490 (comment)

@isaacws Could you please advise how you came to conclusion that credential search is causing region to be probed? Refer Assume role credential provider, where there is no dependency on the region.
What SDK operation your application and opensearch library trying to invoke when you notice the latency? If the region endpoint is not provided while invoking SDK service operation, then SDK would try to probe the region.
Thanks,
Ashish

We are using datadog and I can see a probe to try to get region and failing all the way back to EC2. I assume without digging further this occurs on  GenerateNewCredentials

@isaacws Since you said the request to instance metadata times out. Do you know if you have disabled instance metadata on the EC2 instances? You can tell the SDK to not use EC2 instance metadata by setting the AWS_EC2_METADATA_DISABLED environment variable to true.

@normj My setup is literally the reproduction code. I do not have any environmental variables set. All values are passed into the classes manually from strings. The issue was worked around by setting the region in the environmental variable but I would not think that is ideal when dealing with multiple regions and aws accounts.

@isaacws My question was more how was the EC2 instance setup. I'm trying to figure out why you are getting time out even reaching instance metadata service. The way the FallbackRegionFactory works is once it ever resolves a region it caches the result and used that for all future calls for GetRegionEndpoint. You can see that here https://github.com/aws/aws-sdk-net/blob/master/sdk/src/Core/Amazon.Runtime/AWSRegion.cs#L179
So in your situation it seems like instance metadata service is never accessible. Or am I misunderstanding the situation and you are not even running on an EC2 environment but the code is still trying to go to EC2 instance metadata and slowly failing.

Sorry for the slow response here as I have been on vacation. I am not running an EC2 instance. The region search ends on the EC2 method. I am not running EC2 at all so the EC2 query is what times out.


Add abi3 + num_bigint conversion

Fix #3196

Hello @youknowone
Thank you for contributing to PyO3!
The project is undergoing changes on its licensing model to better align with the rest of the Rust crates ecosystem.
Before your work gets merged, please express your consent by leaving a comment on this pull request.
Thank you!

@DataTriny Thank you. https://github.com/PyO3/pyo3/pull/3108#issuecomment-1574004992

bors r+


Hello, I had to make some minor changes to get the echo server to work for me. Thank for the excellent work. I am looking forward to incorporating it into my site :). Regards, Derrick

-The form submission did not work for me. I put the event handling on
the button and everything clicked.
-Now supports MozWebSocket.
-Modified to use local jquery.js
-Host and port can now specified from the command line.

Sorry I don't think I did that quite right. Regards.


[python] Generalize tiledbsoma.io.add_X_layer to obsm, varp, etc. [WIP / not ready for review]

Issue and/or context:
#643
Based on computational-biologist feedback comparing main-old to main

Codecov Report
Base: 79.31% // Head: 90.34% // Increases project coverage by +11.03% :tada:

Coverage data is based on head (c64f993) compared to base (21f92c2).
Patch coverage: 100.00% of modified lines in pull request are covered.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
Additional details and impacted files
@@             Coverage Diff             @@
##             main     #814       +/-   ##
===========================================
+ Coverage   79.31%   90.34%   +11.03%
===========================================
  Files          70       30       -40
  Lines        3490     1895     -1595
===========================================
- Hits         2768     1712     -1056
+ Misses        722      183      -539

Flag
Coverage Δ

python
90.34% <100.00%> (-0.14%)
:arrow_down:

r
?

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

Impacted Files
Coverage Δ

apis/python/src/tiledbsoma/io.py
82.49% <100.00%> (+0.18%)
:arrow_up:

apis/python/src/tiledbsoma/collection.py
91.23% <0.00%> (-1.55%)
:arrow_down:

R/TileDBURI.R

src/rutilities.cpp

inst/tiledb/include/tiledb/config.h

inst/tiledb/include/tiledb/domain.h

R/SOMASparseNdArray.R

src/include/span/span.hpp

inst/tiledb/include/tiledb/array_schema.h

src/include/tiledbsoma/managed_query.h

... and 32 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


Gracefully fallback to default if given sinkId or deviceId does not exists

Not sure how we want these to behave, to be discussed:
For output selection (AudioContext and sinkId), if the required sinkId is wrong, we get the following error message NotFoundError: invalid sinkId "coucou"
For input selection (getUserMedia and deviceId), if the required deviceId is wrong we have the following, and quite cryptic, error message: called Option::unwrap() on a None value
In both cases, it seems that Chrome and Firefox fallback to default device (Chrome additionally add a log in the console)

Logging and using a default seems sane to me. I can build that


ci: add Snyk

Description

This PR adds Snyk to the CI but we have to configure it reagrding auth and the project on snyk.io @joeworkman

Closes https://github.com/foundation/foundation-sites/issues/11638

Types of changes

[ ] Documentation
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (anything that would change an existing functionality)
[x] Maintenance (refactor, code cleaning, development tools...)

Checklist

[x] I have read and follow the CONTRIBUTING.md document.
[x] The pull request title and template are correctly filled.
[x] The pull request targets the right branch (develop or develop-v...).
[x] My commits are correctly titled and contain all relevant information.
[ ] I have updated the documentation accordingly to my changes (if relevant).
[ ] I have added tests to cover my changes (if relevant).

Do we still need this? I integrated Snyk into GH. This is causing the travis build to fail because it needs to authenticate with snaky.io.

Snyk has also an integration on the marketplace and this is controlled at snyk.io afaik.
This should not be part of CI which is just for running the normal tests so far. All others services should use their respective integration.

All of that has been done already. I am close this PR then...

Well, but the policy file might be needed.
cc @lirantal

I indeed do see that there's a GitHub CI integration here which means it will break the build when new vulnerabilities are introduced in packages:

The GitHub integration could be considered a better approach because it will also provide you with:

automatic pull requests open to upgrade vulnerable libraries
automatic pull requests open to upgrade outdated libraries

However, those two bullets are dependent on whether you indeed turned these features on in the integration settings page so you should make sure that this happens indeed. The slight concern with them that is unique to this repository though is that you use multiple lockfiles and Snyk will probably just identify and pick one of them to relock when it suggests an upgrade.
kudos on stepping up the security level 👏

Snyk has also an integration on the marketplace and this is controlled at snyk.io afaik.

Please add/invite me to the org on snyk.io @joeworkman

However, those two bullets are dependent on whether you indeed turned these features on in the integration settings page so you should make sure that this happens indeed.


Added compression middleware under --compression to gzip responses

Creating those .gz files could add to much work for dev. This is why if we compress the response by default using a cli flag might be better.

This will actually break the stream on Chrome Canary 😢
I'm closing it for now.


Don't run TLSFuzzer tests when it is not properly set

Follow-up PR for #17340
If TLSFuzzer submodule is not checked up, skip the test.
Checklist

[ ] documentation is added or updated
[x] tests are added or updated

Don't get why automation didn't mark it as "ready to merge"


Extractor hiccups in KBC EU 141

@pivnicek  MSSQL EX still can’t fetch some tables (https://papertrailapp.com/groups/23635/events?q=docker-475e441901f47605fa7bf49358eed082). Just for reference, I made a Zendesk ticket right now. As you recommended me few weeks ago, I hack it by “advance mode”, but it is still hard to get the Schema name in the UI, I know that table is “ParcelScanAdditionalInfo” and while writing it to source table input dialogue, schemas disappear and I can just see
ParcelScanAdditionalInfo
ParcelScanAdditionalInfo

without and further reference. What is next trap that I need to do a SELECT * FROM "Config"."ParcelScanAdditionalInfo"; instead of SELECT * FROM "ParcelScanAdditionalInfo"; (but schema is unknown since UI hide it for me once pressing first key in table selector.
It would be great, if

[ ] extractor is able to fetch any table from the list
[ ] UI doesn't hide schema names and ideally allow you to choose more tables at once easilly

All my issues are happening here https://connection.eu-central-1.keboola.com/admin/projects/141/extractors/keboola.ex-db-mssql/1069762

just for ref. UI issue is https://github.com/keboola/kbc-ui/issues/1672

@padak a quick patch work-around for this is here: https://github.com/keboola/kbc-ui/pull/1919
Could you please give it a try and see if it helps?

That patch has been merged so this should be fixed now.


Update README.md

Currently the note, that this loader's functionality is on by default in Webpack 2, is not visible in the documentation page.
Moved it under its own section, hoping it'll now be visible.

@michael-ciniawsky Updated, let me know if it is ok now!


Add UDP encryption support

Please describe the Improvement and/or Feature Request
UDP is commonly used for intra-cluster communication and securing this traffic is critical to a zero trust security model. Using service mesh to fulfil this need simplifies securing Kubernetes clusters.
Encryption could either be achieved with DTLS, or by tunnelling the traffic over TCP.
Scope (please mark with X where applicable)

New Functionality          [X]
Install                    [ ]
SMI Traffic Access Policy  [ ]
SMI Traffic Specs Policy   [ ]
SMI Traffic Split Policy   [ ]
Permissive Traffic Policy  [ ]
Ingress                    [ ]
Egress                     [ ]
Envoy Control Plane        [X]
CLI Tool                   [ ]
Metrics                    [ ]
Certificate Management     [ ]
Sidecar Injection          [ ]
Logging                    [ ]
Debugging                  [ ]
Tests                      [ ]
CI System                  [ ]
Demo                       [ ]
Project Release            [ ]

Possible use cases

DNS traffic between pods and kube-dns
UDP traffic - e.g. HTTP/3, or telephony protocols such as SIP or PFCP.

According to the information here, Envoy does not support DTLS as of today.


"no files to check" with sample .pre-commit-config.yaml

Testing out this pre-commit repo with the sample config file given in the README. In my git top directory I have 1 .tex file however when I commit, pre-commit tells me that there are no files to check. Do I need to add something to the config file?

Hi, I cannot reproduce that. I created a new empty repository, added a test.tex and .pre-commit-config.yaml, and ran pre-commit install --install-hooks. With that, I get the expected messages when committing "broken" LaTeX. Maybe you could provide some more details, a list of filenames in your repository, the versions of pre-commit and its dependencies (pip freeze) and the operating system.

Hi, I think I have figured it out. It seems to be an error using VS Code conflicts with git? Unsure why.
I did what you said, created an empty git repo etc and found no issues. I then replicated this in the repo that I was originally using and I had no issues as well. The next step I took then was to test the test repo in VS code and it reproduces the error.
I updated my git extension through VS code and this seems to have resolved the issue.
Thanks for responding and apologies for using your time on my mistake.

Glad you got it working. I never had problems with VS Code, but I keep it updated. I'm happy to help.


Add method to remove rows with null values

Adds this functionality:
Removes rows with null values. You can choose to drop the row if 'all' values are nulls or if
'any' of the values is null.
transformer = DataFrameTransformer(df)

transformer.remove_empty_rows(how="any") # or how="all"

Coverage remained the same at 52.381% when pulling 5970c26c3a1a1129cedac01061cd3c4320d2eb6c on develop into b4673860c88b8a5bb4d122c4a80807def195b802 on master.


Refactor

Codecov Report

Merging #725 (f2a76d1) into main (684d437) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##             main     #725   +/-   ##
=======================================
  Coverage   85.74%   85.74%
=======================================
  Files         308      308
  Lines       28832    28832
=======================================
  Hits        24721    24721
  Misses       4111     4111

Impacted Files
Coverage Δ

...e_compiler/prelude_type_configuration_qualifier.rs
0.00% <0.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 684d437...f2a76d1. Read the comment docs.


docs: Update GitHub  pages links and point to new repository name

looks good overall, as far as I can tell the non-related looking changes are just fromatting/ordering (automatic?)
as @CruzanCaramele had previously signed the CLA (dynatrace-oss) and is DT employee anyway merging w/o CLA to fix broken docs asap


Error propagation

Not yet tested! (RFC)
Scope of changes

Propagates exceptions occuring in the worker thread to sweep_device_get_scan.

Modifies queue code to play nice with move-only types
Manages dynamically allocated memory via unqiue_ptr as long as possible to prevent any memory leaks
Combines pointer to scan and exception pointer (one of them being nullptr) into one struct and passes them through the queue
Removes some redundant type defs accross the code base for consistency reasons (ccan drop that commit from the PR if prefered)

Known Limitations

Not yet tested (seeking early feedback)
Actual error handling (instead of just reporting) might be desired (see https://github.com/scanse/sweep-sdk/issues/91)

builds and runs just fine for me under normal conditions, but I haven't had a chance to test the actual error propagation yet. I'll try to induce  or simulate some errors tomorrow and check that everything works.

Sorry for the delay. I wasn't able to get a device to error (that's a good thing in most cases haha ), but manually throwing an exception in accumulate scans definitely propagates through. So its looking good to me. @daniel-j-h any comments? if not I'll merge this in.

@MikeGitb can you rebase/fix merge conflicts on master and I'll merge this.

done

Merged. Thanks!


Error  import momentJalaali from 'moment-jalaali'

after two months I rebuild my project but it keeps getting this error:
"react-datepicker2": "^3.0.3",
"react": "^16.9.0",

node v10.16.3   or even  node v8.10.0

/node_modules/react-datepicker2/dist/index.js:1
import momentJalaali from 'moment-jalaali';

Is something changed in the library? It was working fine before! and my production application works fine with the date picker but locally it is not!

@afsanefda This package has a lot of major updates and I think you should reinstall it.

The main problem was the node version and I think some of my babel configs were broken!
remove node_modules folder and yarn install or yarn upgrade.
remove the build folder also and rebuild the project!  In my case, it worked fine!


Mouse misaligned with interaction

Describe the bug
Clicking on the dropdown gets no response. Mousing over the dropdown doesnt highlight, but mousing nearby does.
To Reproduce
https://gist.github.com/Snayff/4b17d63b8e72149a33d5a1ba6094533c
Expected behaviour
Mousing over the dropdown should interact with it.
Screenshots

Platform and software (please complete the following information):

OS: Windows 10
Pygame GUI version: 0.5.7
Pygame version: 2.0.0

Additional context
Tried changing resolution to base and scaled. Tried using different UIElements.
I am sure I am missing something obvious, but I have reread the start guide and followed along and I think I am doing what is needed. I've also referred to my old project, as this happened a couple of times in that project, but I have followed that, too. Any advice would be appreciated!
Edit:
Setting the base and scaling resolutions to the same aligns the mouse, but the mouse click still fails to register with the drop down.
The events are coming through, though...
<Event(1024-MouseMotion {'pos': (498, 20), 'rel': (0, 1), 'buttons': (0, 0, 0), 'window': None})>
<Event(1025-MouseButtonDown {'pos': (498, 20), 'button': 1, 'window': None})>
<Event(1026-MouseButtonUp {'pos': (498, 20), 'button': 1, 'window': None})>
<Event(32847-UserEvent {'user_type': 3, 'ui_element': <UIButton GUISprite(in 1 groups)>, 'ui_object_id': 'drop_down_menu.#expand_button'})>

Edit2:
Clicking in a text line seems to work just fine. I can type and make changes. Its only the drop down that wont seem to change.

Copying comment from the gist:
I'm guessing this is related to the scaling you are doing to the surface the UI is rendered to without also scaling the mouse events. You can handle scaling the mouse events yourself or you can have a go at using the semi-hidden/undocumented .mouse_pos_scale_factor attribute of the ui_manager. Bearing in mind that I didn't document it IIRC because this 'feature' has not really been tested or used by me for more than five minutes. No idea if it works!
The other option is to draw the UI directly onto the window surface (rather than the scaled surface) after line 36. Not sure what you are going for with the scaling, but a common technique is to scale up low resolution artwork for a 'pixel art' effect but draw the UI at the 'native' resolution. Minecraft does something similar in 3D.

Had a test of this right now in 0.6.0 and I guess one of the changes I made to the drop down has fixed it accidentally. Hooray!

Test code used (adapted from earlier gist):
import pygame
import time

from pygame import Rect
from pygame_gui import UIManager
from pygame_gui.elements import UIDropDownMenu

class Game:
    def __init__(self):
        pygame.init()

        self.window: Window = Window(self)
        self._data_editor: DataEditorScene = DataEditorScene(self)

        # point this to whatever scene is active
        self.active_scene = self._data_editor

        self.clock = pygame.time.Clock()

    def update(self):
        self.active_scene.update()

    def render(self):
        self.window.render_frame()
        self.active_scene.render()

    def run(self):
        self.update()
        self.render()

class Window:
    def __init__(self, game: Game):
        self.game: Game = game

        self.base_resolution = [640, 360]
        self.scaled_resolution = [1280, 720]

        self.window = pygame.display.set_mode(self.scaled_resolution, 0, 32)
        self.display = pygame.Surface(self.base_resolution)
        self.dt = 0.1
        self.frame_start = time.time()

    def render_frame(self):
        self.window.blit(pygame.transform.scale(self.display, self.window.get_size()), (0, 0))
        pygame.display.update()
        self.display.fill((0, 0, 0))

        self.dt = time.time() - self.frame_start
        self.frame_start = time.time()

class DataEditorScene:
    """
    Handles EventScene interactions and consolidates the rendering. EventScene is used to give players a text choice.
    """

    def __init__(self, game: Game):
        self.game = game
        self.ui: DataEditorUI = DataEditorUI(game)

    def update(self):
        self.ui.update()

    def render(self):
        self.ui.render(self.game.window.display)

class DataEditorUI:
    def __init__(self, game: Game):
        self.game = game
        # init pygame gui
        resolution = self.game.window.scaled_resolution
        self._gui_manager = UIManager((resolution[0], resolution[1]))
        self._gui_manager.mouse_pos_scale_factor = (0.5, 0.5)

        self.refresh_ui()

    def update(self):
        dt = self.game.clock.tick() / 1000.0
        self._gui_manager.update(dt)

        # pass events to pygame gui
        for event in pygame.event.get():
            self._gui_manager.process_events(event)

    def render(self, surface: pygame.surface):
        self._gui_manager.draw_ui(surface)

    def refresh_ui(self):
        # positions
        start_x = 10
        start_y = 10
        option_width = 500
        option_height = 20

        # update pos
        current_x = start_x
        current_y = start_y

        # select unit
        unit_types = ["test1", "test2"]
        UIDropDownMenu(
            options_list=unit_types,
            starting_option=unit_types[0],
            relative_rect=Rect((current_x, current_y), (option_width, option_height)),
            manager=self._gui_manager,
        )

# run game
game = Game()
while True:
    game.run()

I had the same problem here when i tried to downscaling 4K images ressources to render them into a more classical resolution (1080p for example) with pygame.transform.smoothscale(). It works fine but i have to scale the mouse position to interact with ui element. Anyway, I have tested with UITextEntryLine and i had a problem with focus with mouse. After some search, i found that the line mouse_x, mouse_y = event.pos  in UIManager.process_events() should be replaced by                             mouse_x, mouse_y = self.calculate_scaled_mouse_position(event.pos). And it worked !
I am not sure this will correct every scaling problems but as I will use many widget of pygame_gui in a scaled GUI, I will test more this "functionnality" which i think would be very useful even if I think it should be handled directly by pygame with an option in pygame.display.set_mode(). I will make a pull request shortly (I hope) but I need to make more tests with probably a patch to general_ui_test_app.py with scaling options.

Thanks for catching that in the manager's process events!
As I've not had any interaction with 4k hardware myself yet scaling hasn't been a personal focus, but I'll certainly correct things when they are pointed out.


Code clean up in view of V2

We should grep all FIXMEs introduced during v2 work, and also try to identify spurious v1 imports in v2 code (or v2 imports in v1) code.

Let's address this one
FIXME: define RESERVED_ARGUMENTS = [", ...]

(to be used in the API, both in POST and PATCH of workflowtask)