Create a color palette

As in https://github.com/seattle-uat/civiform/pull/531/files#r596437082
We need a theme / color palette so we don't have to select colors directly each time.
e.g.
Theme.TEXT_PRIMARY = StyleUtils.joinStyles(Style.TEXT_BLACK, StyleUtils.dark(Styles.TEXT_GREY_100));
Theme.BG_PRIMARY = StyleUtils.joinStyles(Style.BG_WHITE, StyleUtils.dark(Styles.BG_GRAY_600));

Suggest splitting this out into
1 - Core visual styling for admins
2 - core visual styling for applicants
3 - core visual styling for City of Seattle applicants

Here is another good place to look into the style and design system for gov.
https://designsystem.digital.gov/design-tokens/


Implement functions to create a Bezier that goes through 3 specified points

Implement functions to create a Bezier that goes through 3 specified points

quadraticFromPoints creates a quadratic Bezier that passes through 3 points

starts at the first point, ends at the third
will go through second at the position corresponding to t on the curve

cubicFromPoints creates a cubicBezier that passes through 2 points

starts at the first point, ends at the third
will go through second at the position corresponding to t on the curve
d1 is a parameter used to specify...

Add UI interactive section

Adjust existing framework to handle manipulating the point on the curve instead of the handlers
Add two sliders to the cubic case

Something a little funky is happening on the UI when t = 0 or t = 1. The bezier snaps to a straight line, and the endpoint teleports to the (first) handle. If this is the expected behavior, we should change the slider settings to prevent them from choosing those values of t.

This happens because for t=0 or t=1, by the function definition, we are trying to create a curve where the middle point is either at the beginning or the end of the curve. If the start/end point provided are not equal to that middle point, it is technically impossible to create such a curve! So I followed what bezier js does, and overwrite the corresponding start/end point to be equal to the middle point.
Since it's a unique edge case, I think it might be nice to include it in the interactive docs to demonstrate that it's expected behaviour. On the other hand, I also agree that the sudden snapping can seem weird. Let me know what you think with this additional context!

This makes sense, thanks! Please add a comment explaining this decision into the function.


Handle CREATE [TEMPORARY|TEMP] VIEW [IF NOT EXISTS]

Tried giving this a go as I encountered the same problem as #976! Let me know what you folks think or if there is any changes needed!
Closes #976

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

79 of 82 (96.34%)  changed or added relevant lines in 4 files are covered.
4 unchanged lines in 3 files lost coverage.
Overall coverage increased (+0.1%) to 87.334%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/parser/mod.rs
5
6
83.33%

src/ast/mod.rs
4
6
66.67%

Files with Coverage Reduction
New Missed Lines
%

src/ast/mod.rs
1
78.83%

src/parser/mod.rs
1
82.73%

src/lib.rs
2
12.28%

Totals

Change from base Build<PHONE_NUMBER>:
0.1%

Covered Lines:
16727

Relevant Lines:
19153

💛  - Coveralls

The CI failures do not appear to be related to this PR

The CI failures do not appear to be related to this PR -- see https://github.com/sqlparser-rs/sqlparser-rs/pull/995

@gabivlj  if you can merge up from main, I think the CI will pass on this PR.
I tried to do it but I do not have permissions:
alamb@MacBook-Pro-8:~/Software/sqlparser-rs$ git merge upstream/main
Auto-merging src/ast/mod.rs
Auto-merging src/parser/mod.rs
Merge made by the 'ort' strategy.
 src/ast/mod.rs     |  2 +-
 src/ast/visitor.rs |  2 +-
 src/parser/mod.rs  | 12 ++++++++----
 3 files changed, 10 insertions(+), 6 deletions(-)
alamb@MacBook-Pro-8:~/Software/sqlparser-rs$ git push
Enumerating objects: 29, done.
Counting objects: 100% (28/28), done.
Delta compression using up to 16 threads
Compressing objects: 100% (15/15), done.
Writing objects: 100% (15/15), 1.81 KiB | 371.00 KiB/s, done.
Total 15 (delta 11), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (11/11), completed with 8 local objects.
To github.com:gabivlj/sqlparser-rs.git
 ! [remote rejected] gabivlj/main -> gabivlj/main (permission denied)
error: failed to push some refs to 'github.com:gabivlj/sqlparser-rs.git'

Sure! Thanks for the heads up

Thanks again @gabivlj

thanks !


How to use CONTAINS inside LET block?

OrientDB Version: 3.0.19
Java Version: "11" 2018-09-25
OS: 10.14.4

There are two tables TableA and TableB.
TableA has fieldOne column of LINKSET type containing records of TableB.
TableB has otherField column of BOOLEAN type.

I would like to get information in $testVar whether there are records in the TableA which are linked via fieldOne to the records of TableB where otherField=true.
The other option, I figure is :
SELECT $testVar FROM `TableA` LET $testVar = (
SELECT * FROM `TableB` WHERE @rid IN $parent.$current.fieldOne AND otherField=true
)

The result is what I expected but that is absolutely slow, unacceptable.
Is there other faster solution on how to achieve that, please?
maybe, something like this :
SELECT $testVar FROM `TableA` LET $testVar = (
$parent.$current.fieldOne CONTAINS (otherField=true)
)

But it results in : Error parsing query
Thank you for your ideas in advance.

Hi @petervavro
This seems extremely convoluted and inefficient...
Why don't you just write it as a simple expression:
SELECT expand(fieldOne[otherField = true]) FROM TableA

Thanks
Luigi

Hi @luigidellaquila,
Thank you for your reply. In my case, the condition is a little more complicated e.g. :
(otherField = true OR (fieldX > 24 AND fieldY = 4))
But, I figured it is possible to do this:
SELECT fieldOne[(otherField = true OR (fieldX > 24 AND fieldY = 4))] FROM `TableA`;

and that seems to solve my problem. Thank you!


Empty changelog creation

I am using semantic tags such as 1.2.0, 1.2.1, 1.2.2, or v1.2.0, v1.2.1, v1.2.2 and still getting empty body.

That's not enough information for me. Please post your workflow, link to your repo, have a reproducible example, something like that.

I want to rephrase the problem "Change-log action failed to read commits between previous and new commit, it is being stuck on commits between  " 2.3.22-partner and 2.3.22-rc tag"

Tags like 2.3.22-partner, 2.3.22-rc and 2.3.22-dev seem unlikely to me to work, it’s not something I’ve tested myself, it’s not something I need to work for myself either. As such it’s not something I’m going to put time into, sorry.
I welcome you to send a PR that adds missing support.


Unexpected behavior with DM Channels

https://discord.com/channels/780985109608005703/780990015294799913/1109519386332627006
Permission errors when using bot in DM

Should be fixed as of https://github.com/get-got/discord-downloader-go/commit/aecb730362142a47eb67c5ac88b200247140e7a8


Clipboard module crashes QS when it contains large files

I think this is known, but I don't see an issue for it.
Using a photo editor requires lots of copying and pasting of images. This can clog up the Clipboard with large files, which eventually leads to QS crashing when the Clipboard is invoked.
I eventually got it working again by deleting:
~/Library/Application Support/Quicksilver/Data/Clipboard/
~/Library/Application Support/Quicksilver/Shelves/QSPasteboardHistory.qsshelf
in that order. The first path contained all the high memory Objects. My Shelf is still intact after these deletions.
Any way to prevent this behaviour?

QS currently keeps all its clipboard history in memory. When files get big,
this means keeping a lot of files in memory.
It has been mentioned (at some point) that clipboard history should be
stored on file, but I'm not sure where/when this was. this would fix this
problem.
On 25 November 2011 23:29, philostein <
<EMAIL_ADDRESS>
wrote:

I think this is known, but I don't see an issue for it.
Using a photo editor requires lots of copying and pasting of images. This
can clog up the Clipboard with large files, which eventually leads to QS
crashing when the Clipboard is invoked.
I eventually got it working again by deleting:
~/Library/Application Support/Quicksilver/Data/Clipboard/
~/Library/Application
Support/Quicksilver/Shelves/QSPasteboardHistory.qsshelf

in that order. The first path contained all the high memory Objects. My
Shelf is still intact after these deletions.

Any way to prevent this behaviour?

Reply to this email directly or view it on GitHub:
https://github.com/quicksilver/Quicksilver/issues/594

Hmm, IIRC it can also crash at launch because of that (I wasn't aware that it happened on opening the window too). I'm not sure how that can be fixed, but I think memory-mapping the clipboard files should alleviate that by not loading the whole file in memory.


Update introduction.md

修改英文逗号为中文逗号

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

thanks


support multi-value enviornment variables with the -m flag

fixes #17
I've changed the eslint complexity rule to a warning since I did not want to refactor the getCommandArgsAndEnvVars to have a lower complexity (which would require me to make a considerable redesign).

[Current coverage][cc-pull] is 100%

Merging [#19][cc-pull] into [master][cc-base-branch] will not change coverage

@@           master   #19   diff @@
===================================
  Files           1     1
  Lines          32    40     +8
  Methods         0     0
  Messages        0     0
  Branches        0     0
===================================
+ Hits           32    40     +8
  Misses          0     0
  Partials        0     0

Powered by Codecov. Last updated by [22bf76d...de7c076][cc-compare]
[cc-base-branch]: https://codecov.io/gh/kentcdodds/cross-env/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/kentcdodds/cross-env/compare/22bf76db754be5f68ddb4f7e25838c2f2a814ea7...de7c076ba835c0a731a87ebdf6363f6be41e4e1f?src=pr
[cc-pull]: https://codecov.io/gh/kentcdodds/cross-env/pull/19?src=pr

Hmmm... I'm not certain this is the solution that I'm looking for. I'm actually also not certain that I want to fix this limitation at all. I want to avoid complicating the API. With >100k downloads per month, this is the first time someone's complained about this limitation. Also, NODE_PATH specifically is an antipattern and should be avoided (in fact, it will likely not be supported with ES6 modules are implemented in node). So I just don't see the use cases be significant enough to add this functionality. Feel free to fork.
I'd rather just add something in the README to indicate that this is a limitation of cross-env.


can't install on win7

when i run npm install
it throw error

what should i do?
node -- v6.11.0
electron -- v1.6.11
win7

You should read the dependencies section of the development FAQ


low level access to SPI

:pushpin: Commit a409420 has been approved by japaric

@homunkulus r+

:hourglass: Testing commit a409420 with merge a409420...

:broken_heart: Test failed - status-travis

@homunkulus r+

:pushpin: Commit 9d94e83 has been approved by japaric

:hourglass: Testing commit 9d94e83 with merge 9d94e83...

:sunny: Test successful - status-travis
Approved by: japaric
Pushing 9d94e8353110ffb8436f256e0e0be6e76ce2a20c to master...


Can not train with multi-gpus

❓ Questions and Help
Starting with  IWSLT 2014 dataset,  train.py works fine only if CUDA_VISIBLE_DEVICES is set with only one GPU.

If I use Multi-GPUs by setting CUDA_VISIBLE_DEVICES=0,1,2,3 or just removing CUDA_VISIBLE_DEVICES option from command line

Error: mkl-service + Intel(R) MKL: MKL_THREADING_LAYER=INTEL is incompatible with libgomp.so.1 library.
	Try to import numpy first or set the threading layer accordingly. Set MKL_SERVICE_FORCE_INTEL to force it.
Error: mkl-service + Intel(R) MKL: MKL_THREADING_LAYER=INTEL is incompatible with libgomp.so.1 library.
	Try to import numpy first or set the threading layer accordingly. Set MKL_SERVICE_FORCE_INTEL to force it.
Error: mkl-service + Intel(R) MKL: MKL_THREADING_LAYER=INTEL is incompatible with libgomp.so.1 library.
	Try to import numpy first or set the threading layer accordingly. Set MKL_SERVICE_FORCE_INTEL to force it.
Traceback (most recent call last):
  File "/home/anaconda3/bin/fairseq-train", line 11, in <module>
    load_entry_point('fairseq', 'console_scripts', 'fairseq-train')()
  File "/workhub/codes/fairseq/fairseq_cli/train.py", line 339, in cli_main
    nprocs=args.distributed_world_size,
  File "/home/anaconda3/lib/python3.7/site-packages/torch/multiprocessing/spawn.py", line 200, in spawn
    return start_processes(fn, args, nprocs, join, daemon, start_method='spawn')
  File "/home/anaconda3/lib/python3.7/site-packages/torch/multiprocessing/spawn.py", line 158, in start_processes
    while not context.join():
  File "/home/anaconda3/lib/python3.7/site-packages/torch/multiprocessing/spawn.py", line 113, in join
    (error_index, exitcode)
Exception: process 1 terminated with exit code 1

If I use torch.distributed.launch, python -m torch.distributed.launch --nproc_per_node 1 train.py data-bin/iwslt14.tokenized.de-en  --lr 0.25 --clip-norm 0.1 --dropout 0.2 --max-tokens 400

Traceback (most recent call last):
  File "train.py", line 11, in <module>
    cli_main()
  File "/workhub/codes/fairseq/fairseq_cli/train.py", line 326, in cli_main
    nprocs=torch.cuda.device_count(),
  File "/home/anaconda3/lib/python3.7/site-packages/torch/multiprocessing/spawn.py", line 200, in spawn
    return start_processes(fn, args, nprocs, join, daemon, start_method='spawn')
  File "/home/anaconda3/lib/python3.7/site-packages/torch/multiprocessing/spawn.py", line 158, in start_processes
    while not context.join():
  File "/home/anaconda3/lib/python3.7/site-packages/torch/multiprocessing/spawn.py", line 119, in join
    raise Exception(msg)
Exception:

-- Process 2 terminated with the following error:
Traceback (most recent call last):
  File "/home/anaconda3/lib/python3.7/site-packages/torch/multiprocessing/spawn.py", line 20, in _wrap
    fn(i, *args)
  File "/workhub/codes/fairseq/fairseq_cli/train.py", line 308, in distributed_main
    main(args, init_distributed=True)
  File "/workhub/codes/fairseq/fairseq_cli/train.py", line 48, in main
    args.distributed_rank = distributed_utils.distributed_init(args)
  File "/workhub/codes/fairseq/fairseq/distributed_utils.py", line 81, in distributed_init
    raise ValueError('Cannot initialize distributed with distributed_world_size=1')
ValueError: Cannot initialize distributed with distributed_world_size=1

Traceback (most recent call last):
  File "/home/anaconda3/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/home/anaconda3/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/anaconda3/lib/python3.7/site-packages/torch/distributed/launch.py", line 263, in <module>
    main()
  File "/home/anaconda3/lib/python3.7/site-packages/torch/distributed/launch.py", line 259, in main
    cmd=cmd)
subprocess.CalledProcessError: Command '['/home/anaconda3/bin/python', '-u', 'train.py', '--local_rank=0', 'data-bin/iwslt14.tokenized.de-en', '--lr', '0.25', '--clip-norm', '0.1', '--dropout', '0.2', '--max-tokens', '400']' returned non-zero exit status 1.

Before asking:

search the issues.
search the docs.

What is your question?
I installed NCCL as it's shown in 3.1 https://docs.nvidia.com/deeplearning/sdk/nccl-install-guide/index.html. And I'm not sure if the error is relevant with nccl.
Code

What have you tried?
What's your environment?

fairseq Version (0.9.0)
PyTorch Version (1.5.0)
OS (Linux Ubuntu18.04)
How you installed fairseq (pip install --editable .):
Python version: 3.7
CUDA/cuDNN version: 10.2/7.6.5
GPU models and configuration: Tesla K80
Any other relevant information: NCCL 2.6.4

The problem is solved by downgrading pytorch from 1.5.0 to 1.4.0.

If it works on one GOU, then seems like an issue with your environment rather than fairseq. Can you try running some of the nccl-tests: https://github.com/NVIDIA/nccl-tests and also the pytorch distributed tests: https://github.com/pytorch/pytorch/tree/master/test/distributed

For what it's worth, I got same error in completely unrelated (single-GPU) code due to upgrading to PyTorch 1.5.0. Setting MKL_SERVICE_FORCE_INTEL=1 made the error message go away and the code worked but I don't know what side effects it may have had in performance.
Related bug on pytorch repo: https://github.com/pytorch/pytorch/issues/37377

@alexholdenmiller Can you confirm if there were any side effects in terms of performance?

I didn't benchmark it carefully in this case (and note that this appeared to be necessary in pytorch 1.6 as well), though it would be hard to tell if it was due to changing this flag or due to the new version though since both happened at once. However, I didn't notice any drastic change in performance (positive or negative) with the version changes in my code base.

The error persists in PyTorch 1.7 when using fairseq.
The ugly fix that works for sure is to use either of os.environ['MKL_THREADING_LAYER'] = 'GNU'  or os.environ['MKL_SERVICE_FORCE_INTEL'] = '1' .
The problem, however, because of this workaround is that when training on multiple GPUs, once the training is done, the process won't quit and will just sit there hogging the GPUs. When I manually ctrl + c the process, it abruptly exits with a bunch of multiprocessing.py errors, followed by {integer} semaphores leaked to clean up at shut down warning message.
^CTraceback (most recent call last):
  File "train.py", line 15, in <module>
Process SpawnProcess-1:
    cli_main()
  File "/abc/fair/fairmod2/fairseq_cli/train.py", line 462, in cli_main
    distributed_utils.call_main(cfg, main)
  File "/abc/fair/fairmod2/fairseq/distributed/utils.py", line 338, in call_main
    torch.multiprocessing.spawn(
  File "/xyz/lib/python3.8/site-packages/torch/multiprocessing/spawn.py", line 199, in spawn
2021-03-15 18:44:32 | INFO | wandb.sdk.internal.internal | Internal process exited
2021-03-15 18:44:32 | INFO | wandb.sdk.internal.internal | Internal process exited
    return start_processes(fn, args, nprocs, join, daemon, start_method='spawn')
  File "/xyz/lib/python3.8/site-packages/torch/multiprocessing/spawn.py", line 157, in start_processes
    while not context.join():
  File "/xyz/lib/python3.8/site-packages/torch/multiprocessing/spawn.py", line 75, in join
    ready = multiprocessing.connection.wait(
  File "/xyz/lib/python3.8/multiprocessing/connection.py", line 931, in wait
    ready = selector.select(timeout)
  File "/xyz/lib/python3.8/selectors.py", line 415, in select
    fd_event_list = self._selector.poll(timeout)
KeyboardInterrupt
Traceback (most recent call last):
2021-03-15 18:44:32 | INFO | wandb.sdk.internal.internal | Internal process exited
  File "/xyz/lib/python3.8/multiprocessing/process.py", line 318, in _bootstrap
    util._exit_function()
  File "/xyz/lib/python3.8/multiprocessing/util.py", line 357, in _exit_function
    p.join()
  File "/xyz/lib/python3.8/multiprocessing/process.py", line 149, in join
    res = self._popen.wait(timeout)
  File "/xyz/lib/python3.8/multiprocessing/popen_fork.py", line 47, in wait
    return self.poll(os.WNOHANG if timeout == 0.0 else 0)
  File "/xyz/lib/python3.8/multiprocessing/popen_fork.py", line 27, in poll
    pid, sts = os.waitpid(self.pid, flag)
KeyboardInterrupt

Its annoying that the process won't quit by itself even hours after training is done. It just sits there. I haven't encountered this when using on a single GPU.
This PyTorch bug talks about this issue as well.

The error persists with PyTorch 1.7 when using fairseq.
The ugly fix that works for sure is to use either of os.environ['MKL_THREADING_LAYER'] = 'GNU'  or os.environ['MKL_SERVICE_FORCE_INTEL'] = '1' . This lets the code run as expected.
The problem, however, because of this workaround is that when training on multiple GPUs, once the training is done, the process won't quit and will just sit there hogging the GPUs. When I manually ctrl + c the process, it abruptly exits with a bunch of multiprocessing errors, followed by {integer} semaphores leaked to clean up at shut down warning message.
^CTraceback (most recent call last):
  File "train.py", line 15, in <module>
Process SpawnProcess-1:
    cli_main()
  File "/abc/fair/fairmod2/fairseq_cli/train.py", line 462, in cli_main
    distributed_utils.call_main(cfg, main)
  File "/abc/fair/fairmod2/fairseq/distributed/utils.py", line 338, in call_main
    torch.multiprocessing.spawn(
  File "/xyz/lib/python3.8/site-packages/torch/multiprocessing/spawn.py", line 199, in spawn
2021-03-15 18:44:32 | INFO | wandb.sdk.internal.internal | Internal process exited
2021-03-15 18:44:32 | INFO | wandb.sdk.internal.internal | Internal process exited
    return start_processes(fn, args, nprocs, join, daemon, start_method='spawn')
  File "/xyz/lib/python3.8/site-packages/torch/multiprocessing/spawn.py", line 157, in start_processes
    while not context.join():
  File "/xyz/lib/python3.8/site-packages/torch/multiprocessing/spawn.py", line 75, in join
    ready = multiprocessing.connection.wait(
  File "/xyz/lib/python3.8/multiprocessing/connection.py", line 931, in wait
    ready = selector.select(timeout)
  File "/xyz/lib/python3.8/selectors.py", line 415, in select
    fd_event_list = self._selector.poll(timeout)
KeyboardInterrupt
Traceback (most recent call last):
2021-03-15 18:44:32 | INFO | wandb.sdk.internal.internal | Internal process exited
  File "/xyz/lib/python3.8/multiprocessing/process.py", line 318, in _bootstrap
    util._exit_function()
  File "/xyz/lib/python3.8/multiprocessing/util.py", line 357, in _exit_function
    p.join()
  File "/xyz/lib/python3.8/multiprocessing/process.py", line 149, in join
    res = self._popen.wait(timeout)
  File "/xyz/lib/python3.8/multiprocessing/popen_fork.py", line 47, in wait
    return self.poll(os.WNOHANG if timeout == 0.0 else 0)
  File "/xyz/lib/python3.8/multiprocessing/popen_fork.py", line 27, in poll
    pid, sts = os.waitpid(self.pid, flag)
KeyboardInterrupt

/xyz/lib/python3.8/multiprocessing/resource_tracker.py:216:
UserWarning: resource_tracker: There appear to be 12 leaked semaphore objects to clean up at shutdown

Its annoying that the process won't quit by itself even hours after training is done. It just sits there. I haven't encountered this when using on a single GPU.
This PyTorch bug talks about this issue as well.

I meet the same problem like you.


StaticL2: Clone before unserializing

This fixes issues uncovered by unserializing items that have previously been unserialized in StaticL2.

Coverage remained the same at 100.0% when pulling 469d048129e627357577b99ff6c8489d627048fb on clone-before-unserialize into 7a2c731b55eb29a53b1af990f5d23d8eaa7e0aba on master.

Coverage remained the same at 100.0% when pulling fe198ad99c26fd68891113c6bdab6b054cb4c94e on clone-before-unserialize into 7a2c731b55eb29a53b1af990f5d23d8eaa7e0aba on master.


chore: add calorie counter workshop

Checklist:

[x] I have read and followed the contribution guidelines.
[x] I have read and followed the how to open a pull request guide.
[x] My pull request targets the main branch of freeCodeCamp.
[x] I have tested these changes either locally on my machine, or GitPod.

Closes https://github.com/freeCodeCamp/CurriculumExpansion/issues/647

Just saw that you have merge conflicts @zairahira


config: ensure chart substituted before install happens

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


Fix Rest calls without placeholders

Fix errors caused by default value of placeholders not being set before call to buildBindings

Codecov Report

Merging #166 into master will not change coverage.
The diff coverage is 100%.

@@           Coverage Diff           @@
##           master     #166   +/-   ##
=======================================
  Coverage   83.91%   83.91%
=======================================
  Files          48       48
  Lines        2536     2536
=======================================
  Hits         2128     2128
  Misses        408      408

Impacted Files
Coverage Δ

src/ApiCore/RequestBuilder.php
93.54% <100%> (ø)
:arrow_up:

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 ffa3216...01452d9. Read the comment docs.


POST to a GET for creating a webhook?

The documentation says:

Add webhook subscription
...
Change the request to POST from GET.

Why do you use a GET request to Add a web hook subscription?

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

ID: dc58af9c-d9b8-5ed0-6117-2db7a1d425de
Version Independent ID: 7cc8696c-5946-0414-b5be-c7561d0e31b5
Content: Create a new subscription
Content Source: docs/apis/webhooks/lists/create-subscription.md
Product: sharepoint
GitHub Login: @spdevdocs
Microsoft Alias: spdevdocs

@AskYous
Is the below doc the correct content source?

https://docs.microsoft.com/en-us/sharepoint/dev/apis/webhooks/get-started-webhooks#add-webhook-subscription

I think it means that you need to change the request method to POST, as in the former step, the request method is GET.
Baker Kong
Microsoft SharePoint Community Support

Ah! I misread it. I thought it said to change from POST to GET.


Small collections not randomizing

Steps to Reproduce
Use Unsplash Source to load a small collection, for example, this one with 6 photos. You should get a random one of those six, but I only get one of those images?
(I also made an issue on Unsplash JS, as I was unsure where to put this.)

@pschfr Do you have an example of how to reproduce this?  I found the bug here. I'm actually going to close these issues because the problem is on the Unsplash API side (not in either of these wrappers - or even Source, for that matter). I'll file an issue with the rest of the dev team and we'll get it patched up.

Good to hear! Thanks for your time 😄

This ever get fixed? I don't mean to be a nag.

Any word on a fix?

Has this been patched? I kinda need this for a site I'm making...

Anywhere I can track the status of this>

@pschfr Hey sorry for the delay getting back to you. We deployed a fix for this last week. Should be working just fine :+1:

Awesome thanks! I can verify it works!


Rendering FPS

Right now I'm rendering through each state's Render.
Is there a way to render through the project like SDG, or is this the preferred method?
Seems I only have access to the static back/framebuffers so all I can do is change the clear color.

I got it working more simply with just Project.fps but I see there is an inbuilt fps in Plume and I don't really understand how it works so I'll leave this open.


Question : How to implement this in tinyMCE or textAngular ?

@TolotraRam You requirement is for a code-editor or an html-style editor?

Hi, great job
It's for an html-style editor like tinyMCE or CKeditor or textAngular.

Great!
Dont forget to give us a star :star:

:)

Any news? :)

Nope yet, we need to define if going to use a wyswyg editor or a code editor..
Im looking for any project that can switch in both...

I am not sure if we understand each other. I thought this issue is related to integration of this project as filemanager for tinymce and not tinymce as editor for files in filemanger.

@jlamer Is to add a wysiwyg to angular-filemanager, to implement this project in other editor, should follow the doc steps, then create a transversal flag (maybe in localstorage) that indicates the last path choosen (for a file selection for example)


Fix pilot tests sharing mutable global state

Currently all of these test modify the same proxy object. Instead, we
should copy it each time we use.
Related: https://github.com/istio/istio/issues/24824

@howardjohn: The following test failed, say /retest to rerun all failed tests:

Test name
Commit
Details
Rerun command

integ-pilot-k8s-tests_istio
6e775ac712c57401f937e2ffa7463de3fb46446e
link
/test integ-pilot-k8s-tests_istio

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

/retest


[ACR] Add IP rules

Latest improvements:
MSFT employees can try out our new experience at OpenAPI Hub  - one location for using our validation tools and finding your workflow.

Contribution checklist:

[x] I have reviewed the documentation for the workflow.
[x] Validation tools were run on swagger spec(s) and have all been fixed in this PR.
[x] The OpenAPI Hub was used for checking validation status and next steps.

ARM API Review Checklist

[ ] Service team MUST add the "WaitForARMFeedback" label if the management plane API changes fall into one of the below categories.
adding/removing APIs.
adding/removing properties.
adding/removing API-version.
adding a new service in Azure.

Failure to comply may result in delays for manifest application. Note this does not apply to data plane APIs.

[ ] If you are blocked on ARM review and want to get the PR merged urgently, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.
Please follow the link to find more details on API review process.

Automation for azure-sdk-for-python

Automation for azure-sdk-for-ruby

Automation for azure-sdk-for-node

Automation for azure-sdk-for-go

Automation for azure-sdk-for-java

Can one of the admins verify this patch?

This is a subsequent PR of https://github.com/Azure/azure-rest-api-specs/pull/4506
As requested by Azure Network Team, we have to support IP rules together with virtual network rules to ship this feature.
@ravbhatnagar As agreed earlier with this issue https://github.com/Azure/azure-rest-api-specs/issues/4625 Adding these properties won't be a breaking change to this api-version. We will release a new api-version (presumably 2019-02-01) to follow the exact pattern suggested by ARM.
/cc @mnltejaswini @sajayantony

Automation for azure-sdk-for-js

Signing off from ARM side as we already have an issue to track the PUT behavior.


--raw option is not working

I'm submitting a...

[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
Current behavior

When generating the app using the --raw option, I'm still asked which UI library I want to use (and it's generated with said library.
Expected behavior

It is supposed to generate an app using not UI library.
Minimal reproduction of the problem with instructions

Generate an application using the --raw option:
ngz new --raw

Environment
- generator version: 3.2.1
- node version: 8.9.1
- npm version: 5.6.0
- OS:  Mac

The option will be available with the next 4.0.0 release, currently on hold due to a last minute bug in angular-cli that should be fixed in a few days.
Since the PR have been already merged in master the option is present in the docs, sorry for the confusion.


RunnableWithMessageHistory streaming bug

System Info
0.0.348, linux , python 3.11
Who can help?
No response
Information

[ ] The official example notebooks/scripts
[ ] My own modified scripts

Related Components

[ ] LLMs/Chat Models
[ ] Embedding Models
[ ] Prompts / Prompt Templates / Prompt Selectors
[ ] Output Parsers
[ ] Document Loaders
[ ] Vector Stores / Retrievers
[ ] Memory
[ ] Agents / Agent Executors
[ ] Tools / Toolkits
[x] Chains
[ ] Callbacks/Tracing
[ ] Async

Reproduction
 chain_with_history = RunnableWithMessageHistory(
        chain,
        lambda session_id: RedisChatMessageHistory(session_id, url=REDIS_URL, ttl=600),
        input_messages_key="inputs",
        history_messages_key="history",
    )
    return chain_with_history

  response = customer_support_invoke().stream(
          {"inputs": userChats.inputs, "profile": userChats.profile},
          config={"configurable": {"session_id": "123"}},
      )
      for s in response:
          print(s.content, end="", flush=True)

if I streaming twice , it will raise an error "ValueError: Got unexpected message type: AIMessageChunk
"
Expected behavior
streaming correctly

@dosu-bot
do you have a simple way to resolve it.

@dosu-bot
error still exist:
Traceback (most recent call last):
File "/root/shujiancoding/SinocareGPT/customer_support.py", line 191, in
for c in response:
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 3005, in stream
yield from self.bound.stream(
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 3005, in stream
yield from self.bound.stream(
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 1882, in stream
yield from self.transform(iter([input]), config, **kwargs)
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 1872, in transform
yield from self._transform_stream_with_config(
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 1121, in _transform_stream_with_config
for chunk in iterator:
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 1836, in _transform
for output in final_pipeline:
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 3030, in transform
yield from self.bound.transform(
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 1872, in transform
yield from self._transform_stream_with_config(
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 1121, in _transform_stream_with_config
for chunk in iterator:
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 1836, in _transform
for output in final_pipeline:
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 686, in transform
for chunk in input:
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 686, in transform
for chunk in input:
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 2141, in transform
yield from self._transform_stream_with_config(
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 1121, in _transform_stream_with_config
for chunk in iterator:
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 2126, in _transform
chunk = AddableDict({step_name: future.result()})
^^^^^^^^^^^^^^^
File "/root/.pyenv/versions/3.11.6/lib/python3.11/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/root/.pyenv/versions/3.11.6/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/root/.pyenv/versions/3.11.6/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 686, in transform
for chunk in input:
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/utils/iter.py", line 52, in tee_peer
item = next(iterator)
^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 3030, in transform
yield from self.bound.transform(
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/passthrough.py", line 466, in transform
yield from self._transform_stream_with_config(
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 1121, in _transform_stream_with_config
for chunk in iterator:
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/passthrough.py", line 456, in _transform
yield cast(Dict[str, Any], first_map_chunk_future.result())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.pyenv/versions/3.11.6/lib/python3.11/concurrent/futures/_base.py", line 456, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/root/.pyenv/versions/3.11.6/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/root/.pyenv/versions/3.11.6/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 2141, in transform
yield from self._transform_stream_with_config(
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 1121, in _transform_stream_with_config
for chunk in iterator:
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 2126, in _transform
chunk = AddableDict({step_name: future.result()})
^^^^^^^^^^^^^^^
File "/root/.pyenv/versions/3.11.6/lib/python3.11/concurrent/futures/_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "/root/.pyenv/versions/3.11.6/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result
raise self._exception
File "/root/.pyenv/versions/3.11.6/lib/python3.11/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 3030, in transform
yield from self.bound.transform(
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 696, in transform
yield from self.stream(final, config, **kwargs)
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 491, in stream
yield self.invoke(input, config, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 2631, in invoke
return self._call_with_config(
^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 886, in _call_with_config
output = call_func_with_variable_args(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/config.py", line 308, in call_func_with_variable_args
return func(input, **kwargs)  # type: ignore[call-arg]
^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 2549, in _invoke
output = call_func_with_variable_args(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/config.py", line 308, in call_func_with_variable_args
return func(input, **kwargs)  # type: ignore[call-arg]
^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/runnables/history.py", line 249, in _enter_history
return hist.messages.copy()
^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_community/chat_message_histories/redis.py", line 54, in messages
messages = messages_from_dict(items)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/messages/init.py", line 98, in messages_from_dict
return [_message_from_dict(m) for m in messages]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/messages/init.py", line 98, in
return [_message_from_dict(m) for m in messages]
^^^^^^^^^^^^^^^^^^^^^
File "/root/.cache/pypoetry/virtualenvs/sinocaregpt-AEuQH49k-py3.11/lib/python3.11/site-packages/langchain_core/messages/init.py", line 86, in _message_from_dict
raise ValueError(f"Got unexpected message type: {_type}")
ValueError: Got unexpected message type: AIMessageChunk
Error in LangChainTracer.on_chain_error callback: ImportError('sys.meta_path is None, Python is likely shutting down')

@dosu-bot
    userChats = UserChats(
        user_id="33b2b7b03ba8467f972877b999dc3af8",
        inputs="oppo 保活",
        profile={
            "用户名": "罗和平",
            "年龄": "70",
            "性别": "男",
            "身高": "163.5cm",
            "体重": "67.15kg",
            "腰围": "94cm",
            "糖尿病类型": "2型",
            "确诊时间": "2003-10-29",
            "最近HbA1c": "11.8 (2023-10-29)",
            "是否佩戴连续血糖监测器": "是",
            "主要症状": "患者10年前发现血糖高，诊断为2型糖尿病，患者现予以二甲双胍 1片 每天一次 及达美康 2片 每天一次治疗，有口干、尿多，有视物模糊、手脚麻木，夜间睡眠可，皮肤瘙痒感，双下肢怕冷，头晕、头痛。",
            "既往病史": "过敏性鼻炎、肾结石",
            "药物过敏史": "无",
            "流行病史": "无",
            "个人史": "抽烟，一天10根",
            "家族史": "无",
        },
    )

    response = customer_support_invoke().stream(
        {"inputs": userChats.inputs, "profile": userChats.profile},
        config={"configurable": {"session_id": "123"}},
    )
    for c in response:
        print(c.content, end="", flush=True)

above is my code. If I run it twice, it will raise an error.

The same bug met  here. I will trace the issue.

I'm having this problem too, and my temporary solution is Customizing MyRedisChatMessageHistory
It's running fine now.
import json
import logging
from typing import Optional
from typing import List

from langchain_core.messages.ai import AIMessageChunk

from langchain_core.chat_history import BaseChatMessageHistory
from langchain_core.messages import (
    BaseMessage,
    messages_from_dict
)

from langchain_community.utilities.redis import get_client

logger = logging.getLogger(__name__)

def message_to_dict(message: BaseMessage) -> dict:
    if isinstance(message, AIMessageChunk):
        data = message.dict()
        data["type"] = "ai"
        return {"type": "ai", "data": data}
    return {"type": message.type, "data": message.dict()}

class MyRedisChatMessageHistory(BaseChatMessageHistory):
    """Chat message history stored in a Redis database."""

    def __init__(
        self,
        session_id: str,
        url: str = "redis://localhost:6379/0",
        key_prefix: str = "message_store:",
        ttl: Optional[int] = None,
    ):
        try:
            import redis
        except ImportError:
            raise ImportError(
                "Could not import redis python package. "
                "Please install it with `pip install redis`."
            )

        try:
            self.redis_client = get_client(redis_url=url)
        except redis.exceptions.ConnectionError as error:
            logger.error(error)

        self.session_id = session_id
        self.key_prefix = key_prefix
        self.ttl = ttl

    @property
    def key(self) -> str:
        """Construct the record key to use"""
        return self.key_prefix + self.session_id

    @property
    def messages(self) -> List[BaseMessage]:  # type: ignore
        """Retrieve the messages from Redis"""
        _items = self.redis_client.lrange(self.key, 0, -1)
        items = [json.loads(m.decode("utf-8")) for m in _items[::-1]]
        messages = messages_from_dict(items)
        return messages

    def add_message(self, message: BaseMessage) -> None:
        """Append the message to the record in Redis"""
        self.redis_client.lpush(self.key, json.dumps(message_to_dict(message)))
        if self.ttl:
            self.redis_client.expire(self.key, self.ttl)

    def clear(self) -> None:
        """Clear session memory from Redis"""
        self.redis_client.delete(self.key)

this is referenced here and there was a proposed change: https://github.com/gpt-engineer-org/gpt-engineer/issues/804


fix documentation for consistency and readability

This should be fairly uncontroversial, but putting it out as a PR in case anyone has comments.

@waldyrious Besides the specific changes proposed above, the last WikiPage method delete doesn't have a Doxygen block at all. And since the code tests $reason's existence, I'm thinking it should default to null in the parameter list as well: delete( $reason = null )
What were you saying about perfectionism again? :wink:

Great eye for detail @Xymph :) I believe I've applied all the fixes you suggested (and a couple more that I missed previously). Please take another look!

Thanks for the review 👍


Create Visit trait

Implements a zero-cost visitor for VNodes via a trait pattern instead of an iterator.
Alternative to https://github.com/DioxusLabs/dioxus/pull/2722 to solve https://github.com/DioxusLabs/dioxus/issues/1177.
Exports the Visit trait:
pub trait Visit {
    /// Visit a [`VNode`].
    fn visit_vnode(&mut self, vdom: &VirtualDom, vnode: &VNode) { ... }

    /// Visit a template node.
    fn visit_node(&mut self, vdom: &VirtualDom, vnode: &VNode, node: TemplateNode) { ... }

    /// Visit an element.
    fn visit_element(
        &mut self,
        vdom: &VirtualDom,
        vnode: &VNode,
        tag: &'static str,
        namespace: Option<&'static str>,
        attrs: &'static [TemplateAttribute],
        children: &'static [TemplateNode],
    ) { ... }

    /// Visit an element attribute.
    fn visit_attr(&mut self, vdom: &VirtualDom, vnode: &VNode, attr: &TemplateAttribute) { ... }

    /// Visit a dynamic node.
    fn visit_dynamic(
        &mut self,
        vdom: &VirtualDom,
        vnode: &VNode,
        index: usize,
        node: &DynamicNode,
    ) { ... }

    /// Visit a placeholder.
    fn visit_placeholder(&mut self, vdom: &VirtualDom, vnode: &VNode, index: usize) { ... }

    /// Visit a fragment.
    fn visit_fragment(&mut self, vdom: &VirtualDom, vnode: &VNode, roots: &[VNode]) { ... }

    /// Visit a text node.
    fn visit_text(&mut self, vdom: &VirtualDom, vnode: &VNode, text: &str) { ... }
}

And default methods under the visit module:
/// Default method to visit a [`VNode`].
pub fn visit_vnode<V: Visit + ?Sized>(visitor: &mut V, vdom: &VirtualDom, vnode: &VNode) { ... }

/// Default method to visit a template node.
pub fn visit_node<V: Visit + ?Sized>(
    visitor: &mut V,
    vdom: &VirtualDom,
    vnode: &VNode,
    node: TemplateNode,
) { ... }

/// Default method to visit an element.
pub fn visit_element<V: Visit + ?Sized>(
    visitor: &mut V,
    vdom: &VirtualDom,
    vnode: &VNode,
    tag: &'static str,
    namespace: Option<&'static str>,
    attrs: &'static [TemplateAttribute],
    children: &'static [TemplateNode],
) { ... }

/// Default method to visit a dynamic node.
pub fn visit_dynamic<V: Visit + ?Sized>(
    visitor: &mut V,
    vdom: &VirtualDom,
    vnode: &VNode,
    index: usize,
    node: &DynamicNode,
) { ... }

/// Default method to visit a placeholder.
pub fn visit_placeholder<V: Visit + ?Sized>(
    visitor: &mut V,
    vdom: &VirtualDom,
    vnode: &VNode,
    index: usize,
) { ... }

/// Default method to visit a fragment.
pub fn visit_fragment<V: Visit + ?Sized>(
    visitor: &mut V,
    vdom: &VirtualDom,
    vnode: &VNode,
    roots: &[VNode],
) { ... }

I see two main use cases for #1177:

Renderers like dioxus-tui need to traverse the virtual dom and don't care about caching too much
Components like head::Title need to look through their children and find a specific node. This could also allow more lints like warning if an outlet is not found in the children of a router

Right now any general version of vnode traversal only really useful for 1 because it requires direct access to the VirtualDom. I don't think we can create a unified solution to both until we move component state to the runtime
The visitor approach lets you avoid matching over the node type which is nice, but the API is a bit odd if you don't know about templates which seems common for 2. You still need to deal with static and dynamic attribute values separately and there are indexes floating around the methods to link Template and VNode state together
I think the visitor API works better for 1. It fits an immediate mode renderer very nicely. Still a bit rough around the edges because of templates, but a lot better than how you would implement this today. Renders like dioxus-ssr also seem like a natural fit, but I don't think we would use this in practice because we need to cache the template and avoid traversing it every time
What do you think about combining the two APIs? The visitor could visit the more abstract version of nodes that the cursor API provides. Then for use case 2 you can just use the cursor directly

Right now any general version of vnode traversal only really useful for 1 because it requires direct access to the VirtualDom. I don't think we can create a unified solution to both until we move component state to the runtime

Makes sense 👍 If we can move component state I feel like this could easily be used without the VirtualDom

The visitor approach lets you avoid matching over the node type which is nice, but the API is a bit odd if you don't know about templates which seems common for 2.

Totally agree, I am wondering if we could ease that with docs like the syn crate https://docs.rs/syn/latest/syn/visit/index.html

You still need to deal with static and dynamic attribute values separately and there are indexes floating around the methods to link Template and VNode state together

You make an interesting point here, I feel like we could change the Visit trait to visit both the same. Maybe visit_dynamic can delegate to visit_attribute or visit_element?

What do you think about combining the two APIs? The visitor could visit the more abstract version of nodes that the cursor API provides. Then for use case 2 you can just use the cursor directly

That makes a lot of sense to me 👍 I personally think it would be nice to have an iterator for more dynamic situations (and easier children.map(...) etc) and a visitor for static situations (like renderers, debugging, and maybe lints now that you mention it)

Closing this since I'm not very committed to the structure of the rsx!{} call output (vnodes/nodes/etc) and am hesitant to support any iterators/traits until I feel like the rest is stable.
Currently it's possible to traverse the tree manually - as we do in a variety of places - but not very ergonomic.


Test trasfer amount errors

Add integration tests:

transfering incorrect amounts (negative, higher than available,etc).
Minting fee to an account
Making transactions without fee
Checking fee calculation

This was already done as part of testing with the RPC State Reader


Refactor method name viewPatient

Summary

Just find the naming inconsistent because we have getViewPatient, but the setter called viewPatient

Checks

[x] Link PR to issue
[x] Add Reviewer
[x] Pass CI

Codecov Report

Merging #313 (ee7bb2c) into master (e57efcf) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##             master     #313   +/-   ##
=========================================
  Coverage     74.06%   74.06%
  Complexity     1037     1037
=========================================
  Files           141      141
  Lines          3385     3385
  Branches        384      384
=========================================
  Hits           2507     2507
  Misses          735      735
  Partials        143      143

Impacted Files
Coverage Δ

src/main/java/gomedic/model/Model.java
100.00% <ø> (ø)

src/main/java/gomedic/model/ModelManager.java
93.80% <ø> (ø)

.../logic/commands/addcommand/AddActivityCommand.java
78.57% <100.00%> (ø)

...gic/commands/addcommand/AddAppointmentCommand.java
67.74% <100.00%> (ø)

...ic/logic/commands/addcommand/AddDoctorCommand.java
86.36% <100.00%> (ø)

...c/logic/commands/addcommand/AddPatientCommand.java
75.00% <100.00%> (ø)

...ic/commands/clearcommand/ClearActivityCommand.java
100.00% <100.00%> (ø)

...edic/logic/commands/clearcommand/ClearCommand.java
100.00% <100.00%> (ø)

...ogic/commands/clearcommand/ClearDoctorCommand.java
100.00% <100.00%> (ø)

...gic/commands/clearcommand/ClearPatientCommand.java
100.00% <100.00%> (ø)

... and 7 more

Continue to review full report at Codecov.

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


[Feature][Module: ChatData] GBase数据库国内应用较多，希望能够支持

Search before asking

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

Description
[Feature][Module: ChatData] GBase数据库国内应用较多，希望能够支持
Use case
[Feature][Module: ChatData] GBase数据库国内应用较多，希望能够支持
Related issues
无
Feature Priority
None
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Search before asking

[x]  I had searched in the issues and found no similar feature requirement.

Description
[Feature][Module: ChatData] GBase数据库国内应用较多，希望能够支持
Use case
[Feature][Module: ChatData] GBase数据库国内应用较多，希望能够支持
Related issues
无
Feature Priority
None
Are you willing to submit PR?

[ ]  Yes I am willing to submit a PR!

GBase我们后面会考虑接入，目前数据接入方式扩展起来也比较简单，你可以尝试一下，继承RDBMSDatabase类，扩展几个方法就可以接入了，欢迎贡献代码!

Hello. I'd like to try to resolve this.


How to activate conda environment for other steps?

I'm trying to use setup-miniconda and I'm stuck on a simple step:
    steps:
      - uses: actions/checkout@v2
      - uses: conda-incubator/setup-miniconda@v2
        with:
          miniforge-version: latest
          python-version: ${{ matrix.python-version }}
          channels: conda-forge
          activate-environment: my-venv
      - name: Info
        run: |
          which python

On the next steps I want to use python interpreter of the Conda environment by default. When I do which python, I'm expecting to get something like .../conda/env/my-venv/bin/python but it's still /usr/bin/python.

In the section labeled IMPORTANT in the readme of the repo, and all the
examples: there is a step that ensures the shell uses the activation
scripts... It is usually most convenient to do this at the top level of the
workflow, but you may just want it in certain steps.

Ok sorry I missed this, thanks!

Hmm I'm still confused, when I use shell: bash -l {0}:

which python returns /usr/share/miniconda3/envs/my-venv/bin/python
but which conda returns /usr/share/miniconda3/condabin/conda

I was expecting that both commands was on the same environment (ie. which conda returning /usr/share/miniconda3/envs/my-venv/bin/conda). Is it possible?

Oh wait I can use conda -n my-venv for my use case.


Repeated initialization of a standalone dependent resource fails

From https://github.com/keycloak/keycloak/pull/22299#issuecomment-1671589868 -
Keycloak is creating an Operator per test class.  Via cdi there is a single instance of each controller being constructed.  When initAndRegisterEventSources is then called multiple times on these controllers if they maintain the same standalone depenent resource instance, the subsequent calls fail with an NPE:
Caused by: java.lang.NullPointerException: Cannot invoke "java.util.Map.size()" because "m" is null
	at java.base/java.util.HashMap.putMapEntries(HashMap.java:495)
	at java.base/java.util.HashMap.putAll(HashMap.java:783)
	at io.javaoperatorsdk.operator.processing.event.source.informer.InformerManager.addIndexers(InformerManager.java:196)
	at io.javaoperatorsdk.operator.processing.event.source.informer.InformerEventSource.setConfigurationService(InformerEventSource.java:355)
	at io.javaoperatorsdk.operator.processing.event.EventSourceManager.registerEventSource(EventSourceManager.java:160)
	... 71 more

See https://github.com/keycloak/keycloak/actions/runs/5809929842/job/15750155150#step:8:10297
This does not seem to affect dependent resources that are registered via annotations.
The cause is nulling out the indexerBuffer https://github.com/operator-framework/java-operator-sdk/blob/b66ef938a9290a1dbf83b35e152f144cc01bcb8a/operator-framework-core/src/main/java/io/javaoperatorsdk/operator/processing/event/source/informer/InformerEventSource.java#L368
If this should be called multiple times, it should be re-initialized instead.
For now the keycloak pr https://github.com/keycloak/keycloak/pull/22299 is working around this by creating a new depedent resource instance each time prepareEventSources is called.  Does that seem ok for now, or should we make sure new instances of the Reconcilers are created for each test?

I'm also seeing this with non-stanalone sources after some additional test changes.  I'll link to the workaround in the pr once it is opened.  The basic problem is that we're manually re-creating the operator per each test class, which may not be a good idea.


Possible Unhandled Promise Rejection (id: 0): Error: E_IAP_NOT_AVAILABLE in IOS

My react-native -0.67.3
react-17.0.2
react-native-iap -8.0.5
Some days before when i upload the project to the appstore  it was ok Everything , I can able to get the products as well the subscriptions .. But suddenly i am getting a warning message
Possible Unhandled Promise Rejection (id: 0):
Error: E_IAP_NOT_AVAILABLE
and the prodcut and the subscription list are coming [] , an empty array ...Can some one help me to fix that issue or what to do that i can able to get the products ... i also trying changing the react-native-iap-8.0.8 but the same result happens here...please help...

Getting same issue and not able to open the ios subscription.

in my case, I just re-run 'pod install' and make sure the output contains "Installing RNIap", and the error is gone.


New release

Hello @jschrewe, thanks for taking the time and merging the latest changes. Could you make a new release now in pypi? Now django-mongodbforms supports Django 1.7!

:+1: this is making our deploys harder.

I've forked this project and released django-mongoengine-forms on PyPI. I've stripped out a lot of the legacy stuff and it should be compatible with Django 1.9.
If you find any issues I'd be very happy to hear them.


Add requested formatting guideline changes

Purpose
This commit will add the changes requested at the formatting guideline review.
Related #14864

Codecov Report

Merging #15139 into master will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master   #15139   +/-   ##
=========================================
  Coverage     23.09%   23.09%
  Complexity     4970     4970
=========================================
  Files          1341     1341
  Lines         66491    66491
  Branches       9052     9052
=========================================
  Hits          15357    15357
  Misses        49440    49440
  Partials       1694     1694

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 431d980...bd09949. Read the comment docs.


routeChanged event emited unduly

I'm migrating a vanilla Vue.js projecto to Nuxt.js. I'm facing an issue and I'm not able to determine the source of it.
Basically, when calling a specific action the following event is being emited without calling router.push or any other router method - Check it here https://cl.ly/3B3r011V1S31. Additionally, this is happing only on the first action dispatch. That action calls another action that returns a promise, I don't know if that could be the source of the issue.
Thanks in advance for any help.

Forget about this, it was caused by an error on my app. Thanks anyway


Do not allow containers in privileged mode for the apiserver-proxy PodSecurityPolicy

/area security
/kind enhancement
What this PR does / why we need it:
There is no need to allow a container to run in privileged mode for the apiserver-proxy PodSecurityPolicy when there is no container currently in the apiserver-proxy DaemonSet that requires to run in privileged mode.
Which issue(s) this PR fixes:
Indirectly part of https://github.com/gardener-security/standard-compliance/issues/3
Release note:

NONE

/lgtm

/approve


Responsive Images

When attaching an image using Evernote iOS App the image doesn't resize when viewed on a mobile screen

@macjasp, do you have a URL I can refer to for testing? The images are scaling properly for my basic tests so I want to double-check against a live sample (if possible).

Sure. Try blog.carmody.me

@macjasp, I made a small tweak. Update your fork and give it a shot.


Multilevel or back to back detectors

Hi,
Is there any option to have back to back detectors in the single pipeline?
detection->classification in the roi is there.
But is there any option for
detection->detection in given roi?

Hi,
Not supported directly by gvadetect at the moment.
But you can do that with little C++/Python programming: build gvadetect->gvaclassify pipeline and set C++/Python callback at gvaclassify source pad to convert tensor data created by gvaclassify into bounding boxes.
Is it for use case similar to detect vehicle -> detect license place for each vehicle?

Hi, @mikhail-nikolskiy , thank you for your response. Yes the application is similar to detect vehicle -> detect license plate.
How to write back the meta data generated by the python code?
I was trying to modify the existing code and put detection within detected region of first level. There I am getting buffer is not writable. Any clue?

@vtpl1 same problem,have you solve it ?

Hi @vtpl1 ,
Sorry for the late response, I assume you are changing the follow code based on @mikhail-nikolskiy advice, this is my understanding:
You should remove the label setting logic from age_gender_classification.py loop and replace it with the logic like ssd_object_detection.py and finally call frame.add_region()
but initially you can add some random values, so you can make a quick try by call add_region() only.

Mark Liu

@easychizy I write a new plugin: I want to use "frame.pop_region()" to delete regions  and use "frame.add_region" to add regions. and then errors occur:
(gst-launch-1.0:33): GStreamer-CRITICAL **: 01:01:59.980: gst_buffer_remove_meta: assertion 'gst_buffer_is_writable (buffer)' failed
terminate called after throwing an instance of 'std::runtime_error'
what():  GVA::VideoFrame: Underlying GstVideoRegionOfInterestMeta for RegionOfInterest at index 0 doesn't belong to this VideoFrame
(gst-launch-1.0:1854): GStreamer-CRITICAL **: 01:49:04.477: gst_buffer_add_meta: assertion 'gst_buffer_is_writable (buffer)' failed
but I find that it also can add and pop regions in gvatrack plugin/vas/tracker.cpp,why?

The gvadetect element guarantees writable buffer on source pad, as gvadetect calls gst_buffer_make_writable before pushing to next element. Unfortunaly this is not the case for gvaclassify, it doesn't call gst_buffer_make_writable.
Two options to solve "writable buffer" problem

Create and register simple GStreamer element which calls gst_buffer_make_writable before add_region. This helps as element can output new buffer, callback can't.

Attach bounding box information as custom fields "x","y","w","h" into existent meta, like this code
GVA::VideoFrame video_frame(buffer, caps);
// Iterate detected objects and all attributes (tensors)
for (GVA::RegionOfInterest &roi : video_frame.regions()) {
for (auto tensor : roi.tensors()) {
vector data = tensor.data();
double x, y, w, h;
     .. calculate x, y, w, h from tensor data

     tensor.set_double("x", x);
     tensor.set_double("y", y);
     tensor.set_double("w", w);
     tensor.set_double("h", h);

@mikhail-nikolskiy I create and register a GStreamer element reference on the gvatrack to implement my own tracking function，and also I have done this:
buffer= gst_buffer_make_writable(buffer);
GVA::VideoFrame frame(buffer, track_video_info.get());
for (auto &roi : frame.regions())
{
frame.pop_region();
}
but it also occur the same error,why?

@easychizy  sorry ,I did not do that.

Does gvadetect -> gstreamercrop element - > gvadetect work? Is that a possible solution?

Hi @Sharan-Sundar,
This pipeline should not work for now. We are going to add a feature to support “detect vehicle -> detect license place for each vehicle” use case.
If you has a different use case, I would suggest you to post a new issue.
Mark

Hi @mliu2020 . Yes I also have the same use case(“detect vehicle -> detect license place for each vehicle”) and it's great that you are adding a new feature. Can you tell me approximately when it will come out? Just so that I can plan a temporary fix as of now.

Since 2021.2 release all the inference elements have "inference-region" property that allows to use cascades of gvadetect elements in a pipeline.
https://github.com/openvinotoolkit/dlstreamer_gst/wiki/gvadetect
  inference-region    : Identifier responsible for the region on which inference will be performed
                        flags: readable, writable
                        Enum "InferenceRegionType" Default: 0, "full-frame"
                           (0): full-frame       - Perform inference for full frame
                           (1): roi-list         - Perform inference for roi list

Usage example:
... ! gvadetect inference-region=full-frame ! gvadetect inference-region=roi-list ! ...

@vtpl1 @wang7393 @Sharan-Sundar I am closing this issue as the feature is added in 2021.2 release. Please see adranit's comment above and feel free to create a new issue if any further help is needed.

@vtpl1 @wang7393 @Sharan-Sundar I am closing this issue as the feature is added in 2021.2 release. Please see adranit's comment above and feel free to create a new issue if any further help is needed.


fix use correct database on autoDatabase

Hello,
I've found a bug when using autoLogin & autoDatabase that it was using the default db instead of using the database from the Config.
Feel free to comment or change anything
Thanks!

closing as immudb-node was updated to v2


inconsistent enforcement of keygen size

PR #15472 put a maximum size of generated keys.  This is wrong, it should only be enforced in FIPS mode which has requirements.  OpenSSL is a toolkit and someone might want/need to generate long keys, perhaps not for production use.
I point out that there is no similar enforcement of mimimum size:
; ./apps/openssl genpkey -algorithm rsa -pkeyopt rsa_keygen_bits:512

(Yes, under 512 is not supported.

This isn't a FIPS requirement.
Having a circumvention mechanism might be prudent.

It would be straightforward to modify the RAND_bytes_ex() and RAND_priv_bytes() to take a strength argument which is passed through to the underlying RNG to get universal enforcement.
Adding a strength argument to these calls might be prudent even if the underlying changes don't happen.

OTC resolution: make the check FIPS only for the moment.


Send data

Forgive me if it's in here somewhere but I've played with it and can't seem to crack it, is there a way to send and receive data via the ipv4 Address. I keep trying to connect to the http://{ipv4Address}:{port} but can't and then I'll need to send and receive data. I read up about using tcp here: http://rossmartindev.blogspot.com.ng/2012/12/my-phonegap-bonjour-plugin-it-can.html.
Is there a way to do this please?

This plugin is about discovering devices on a network.
To exchange data you could use cordova-plugin-websocket-server


Calling method checkPermissions on plugin in ml-kit branch returns undefined

Describe the bug
This problem ocurrs when trying to calling BarcodeScanner.checkPermissions() function in iOS in ml-kit branch:
⚡  To Native ->  CapacitorCommunityBarcodeScanner checkPermissions 131742848
⚡  TO JS undefined
⚡  [log] - status: undefined
⚡  [log] - some problem with the camera
The start method returns -1.
The request permission method does return an error, but I'm assuming by the plugin.m file that it isn't really implemented.
To Reproduce
Steps to reproduce the behavior:
npm run build -> npx cap sync -> npx cap run ios   or in xcode
Then when app launches and I click the button where the method is associated, xcode gives me that error.
Expected behavior
That the app the functions work as intended, giving me a valid value.
 The project compiles in www without problems and the version of the plugin indicated in xcode when compiling is 3.0.1 so I don't understand how this is happening.
The code:
html:
<ion-header [translucent]="true">
  <ion-toolbar>
    <ion-title> Tab 1 </ion-title>
  </ion-toolbar>
</ion-header>

<ion-content [fullscreen]="true">
  <ion-header collapse="condense">
    <ion-toolbar>
      <ion-title size="large">Tab 1</ion-title>
    </ion-toolbar>
  </ion-header>

  <ion-button (click)="startScan()">scan</ion-button>
</ion-content>

page.ts:
import { Component } from '@angular/core';
// import { BarcodeScanner } from '@capacitor-community/barcode-scanner';
import { BarcodeScanner } from '@capacitor-community/barcode-scanner';
@Component({
  selector: 'app-tab1',
  templateUrl: 'tab1.page.html',
  styleUrls: ['tab1.page.scss'],
})
export class Tab1Page {
  constructor() {}
  async startScan() {
    // BarcodeScanner.hideBackground(); // make background of WebView transparent
    console.log('tryin to scan!');
    // console.log(BarcodeScanner);
    const status = await BarcodeScanner.checkPermissions();
    console.log('status:', status);
    if (status !== 'granted') {
      console.log(
        'some problem with the camera\n',
        'If you want to grant permission for using your camera, enable it in the app settings.'
      );
      const req = await BarcodeScanner.requestPermissions();
      console.log('request:', req);
    } else if (status === 'granted') {
      console.log('camera permission granted!');
    }

    const result = await BarcodeScanner.start(); // start scanning and wait for a result

    // if the result has content
    console.log('result?');
    if (result) {
      console.log(result); // log the raw scanned content
    }
  }
}

angular target in tsconfig is es5 because of it is an old iPhone and info.plist camera permissions are set

@fewNeurons the ml-kit branch is a complete work in progress (and kind of a mess) and it is very well possible that the requestPermission stuff is broken. The plan was to rewrite the permission check completely since the current implementation is far from perfect anyways, so my plan was to use the same implementation that is used in https://github.com/ionic-team/capacitor-plugins/tree/main/camera
A simple workaround for now would be to just use this plugin for the permission check, with this workaround you can at least test the ml-kit implementation....
Unfortunately this branch does not have the highest priority atm since I was not able to find anyone who is willing help me develop the android part of it (I am not really used to develop Android apps and it would take me ages to do that all myself).
Thank you anyways for testing it out and I will have a loot at it once I find time to do so.
Right now I think that we need to create a different plugin for the ml-kit stuff anyways, I am not sure about this.

Hi @thegnuu, thank you for your response and your workaround suggestion. Another plugin seams right in a future. I have been thinking of implementing the Android version myself. I will be updating you about my progress!

If you are willing to implement some android code and help out here this would be awesome. The current "discussion" is found here #107
I will close this issue for now, keeping this issue in my backlog for the ml-kit stuff. Feel free to ask question or post news on the ml-kit issue!
Thank you!

Hi again, I've made it able to work in this quick demo https://github.com/fewNeurons/barcode-scanner-test

@ferranJS Can you please share how did u resolve it
Facing similar issues in mlkit
Error calling method requestPermissions on plugin BarcodeScanner: No method found.


Please create some documentation

Some documentation on how to use your library would be great.
Please add something to the Readme or consider adding a wiki to this project.

Hi,
you're perfectly right. I should do it!
Unfortunately I'm going to put online my new startup (tomorrow), so I'm a little bit busy these days.
I hope you can wait a little and I be back! :-)
In the meanwhile you can give a look to the specs folder; it should help you to understand how it works.
Furthermore the syntax is really close to the neo4jrb library (I was inspired to).
Ciao,
CA

Hi Carlo,
yes you are right and I did that. :)
Good luck with your venture. I'm guessing you will be using neology for it as well?
Cheers,
Marcel

thanks!
Unfortunately not, because I had not time to implement a caching and a transaction layer...
But I will work on it asap! :-)
Anyway, my startup is www.opinionage.com   (have a tour! ;-)


WIP: Allow dependencies to be defined on params

Relates to https://github.com/openshift/ansible-service-broker/issues/859

From discussing at the community meeting we agreed that this will require a minor version bump of the Bundle spec bringing us to version 1.1 (per our docs since this is the addition of an optional field). Please update developers.md with an example of using this and defining its use in the Bundle spec as I linked above.

Thanks for doing a doc PR!


React-native 0.57.x

Can you make this work newest react-native... thx

what's problem with 0.57.x?
发自我的 iPhone

在 2018年12月27日，下午8:30，Kaitsuvaan<EMAIL_ADDRESS>写道：
Can you make this work newest react-native... thx
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

What went wrong:
Could not resolve all files for configuration ':app:debugRuntimeClasspath'.

Could not find any version that matches com.facebook.react:react-native:0.55+.
Versions that do not match:
0.20.1
0.20.0
0.19.1
0.19.0
0.18.0
+ 13 more
Searched in the following locations:

Hi, I had the same problem before. I solved it by directly changing build.gradle in node_modules/react-native-bluetooth-escpos-printer/android. There is a line that require react-native ver 0.55+ . Change it to 0.57+  and u shud be fine

thx @firdaussoberi , duplicate with  https://github.com/januslo/react-native-bluetooth-escpos-printer/issues/5

@firdaussoberi hmm... works but get new errors :D

Task :react-native-bluetooth-escpos-printer:compileDebugJavaWithJavac FAILED
XXXXX\node_modules\react-native-bluetooth-escpos-printer\android\src\main\java\cn\jystudio\bluetooth\escpos\RNBluetoothEscposPrinterModule.java:10: error: package cn.jystudio.bluetooth.escpos.command.sdk does not exist
import cn.jystudio.bluetooth.escpos.command.sdk.Command;
XXXX\node_modules\react-native-bluetooth-escpos-printer\android\src\main\java\cn\jystudio\bluetooth\escpos\RNBluetoothEscposPrinterModule.java:11: error: package cn.jystudio.bluetooth.escpos.command.sdk does not exist
import cn.jystudio.bluetooth.escpos.command.sdk.PrintPicture;
^

Sure you linked?
发自我的 iPhone

在 2018年12月27日，下午9:45，Kaitsuvaan<EMAIL_ADDRESS>写道：
@firdaussoberi hmm... works but get new errors :D
Task :react-native-bluetooth-escpos-printer:compileDebugJavaWithJavac FAILED
XXXXX\node_modules\react-native-bluetooth-escpos-printer\android\src\main\java\cn\jystudio\bluetooth\escpos\RNBluetoothEscposPrinterModule.java:10: error: package cn.jystudio.bluetooth.escpos.command.sdk does not exist
import cn.jystudio.bluetooth.escpos.command.sdk.Command;
XXXX\node_modules\react-native-bluetooth-escpos-printer\android\src\main\java\cn\jystudio\bluetooth\escpos\RNBluetoothEscposPrinterModule.java:11: error: package cn.jystudio.bluetooth.escpos.command.sdk does not exist
import cn.jystudio.bluetooth.escpos.command.sdk.PrintPicture;
^
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or mute the thread.

Yeah, i think u should react-native link after changing the build.gradle. Sometimes other errors like in local android/MainApplication. java and AndroidManifest.xml pops up but that's just about it

so this library was long long dead

so this library was long long dead

More like peacefully dormant but yeah I'd agree it needs fresh updates. Maybe author is busy. So far still using it with both android/ios and works with RN0.60

somebody that know android development, please update this library, there is problem with react-native-bluetooth-escpos-printer/android/build.gradle
apply plugin: 'com.android.library'
android {
compileSdkVersion 27 //this need to be update to 28
buildToolsVersion "27.0.3" //this need to be update to 28.0.3
defaultConfig {
    minSdkVersion 16
    targetSdkVersion 24
    versionCode 1
    versionName "1.0"
}
lintOptions {
    abortOnError false
}
sourceSets {
    main {
        aidl.srcDirs = ['src/main/java']
    }
}

}
repositories {
jcenter { url "http://jcenter.bintray.com/" }
maven {url "http://repo.spring.io/plugins-release/"}
mavenCentral()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
maven {
url 'https://maven.google.com'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])// this need to change be implementation
implementation 'com.facebook.react:react-native:+'  // From node_modules
implementation group: 'com.android.support', name: 'support-v4', version: '27.0.0'
implementation "com.google.zxing:core:3.3.0"
}


[Bug] Not receiving invalidation messages on RedisPool

Redis version - 7.0.5
Platform - mac
Using Docker and/or Kubernetes - no
Deployment type - centralized (pool)
fred.rs: 6.3.0
Invalidation messages are received with RedisClient but not with RedisPool.
The following code works:
    // redis_config - server: centralised(localhost), version: resp3, all else default

    let basic = RedisClient::new(redis_config.clone(), None, None);
    let _ = basic.connect();
    basic.wait_for_connect().await?;

    basic
        .start_tracking(
            vec!["data"], // PREFIX
            true,         // BCAST
            false,        // OPTIN  (not compatible with BCAST)
            false,        // OPTOUT (not compatible with BCAST)
            false,        // NOLOOP (doesn't matter, we never modify keys)
        )
        .await?;

    {
        let mut invalidations = basic.on_invalidation();
        tokio::spawn(async move {
            while let Ok(invalidation) = invalidations.recv().await {
                println!("invalidation event");
            }
        });
    }

This prints "invalidation event" when you change a key starting with "data".
However, replace the first line to use RedisPool and it no longer prints anything.
    let basic = RedisPool::new(redis_config.clone(), None, None, 5)?;

Logs
I didn't get any log output 🤔

@sebastianhopkins-lh this should also be addressed in 7.x. The interface in 6.x is especially misleading here - when you call start_tracking or on_invalidation on the pool you're actually only calling it on one of the underlying clients. The new interface makes this explicit by requiring the caller to use clients, etc. You could also apply that to your v6 code, but the v7 interface should be easier.


Removing tqdm to reduce logging in kibana.  Leaving commented out for…

… ease of debugging in local runs.

Thanks @christabone !


feat - scroll overflow color to fit content color

Ionic version:  (check one with "x")
[ ] 1.x
[x] 2.x
I'm submitting a ...  (check one with "x")
[ ] bug report
[x] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
When having a content with a background color, when doing overflow scroll on iOS (when scrolled to top, drag down) the background is white.
Expected behavior:
The overflow background should be the same color as the content, with an option to supress.
Or perhaps (better imo) to have:
<ion-content overflowTopColor="primary" overflowBottomColor="secondary"
Other information:
This was asked on the ionic forums a long time ago:
https://forum.ionicframework.com/t/ios-set-ui-bounce-colors/81057/2
Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
Ionic Framework Version: 2.2.0
Ionic CLI Version: 2.2.1
Ionic App Lib Version: 2.2.0
Ionic App Scripts Version: 1.1.4
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 10
Node Version: v6.9.1
Xcode version: Not installed

Hello! Thanks for the feature request. I'm going to move this issue over to our internal list of feature requests for evaluation. We are continually prioritizing all requests that we receive with outstanding issues. We are extremely grateful for your feedback, but it may not always be our next priority. I'll copy the issue back to this repository when we have begun implementation. Thanks!

This issue was moved to driftyco/ionic-feature-requests#131

Any alternative solution for this?


Cut and paste of Mailadresses not possible (eg from TO to CC)

Checklist

[X] I have used the search function to see if someone else has already submitted the same bug report.
[X] I will describe the problem with as much detail as possible.

App version
6.603
Where did you get the app from?
Google Play
Android version
12
Device model
Sony Xperia 5 II
Steps to reproduce

press long on a mail address in the TO field
press cut
press long in the CC field
press insert
nothing happens

Expected behavior
expected behavior: mail address is inserted
Actual behavior
nothing happens
work around:
go in any text field: insert. mark mail address, cut or copy. insert Mail address in CC field.
Logs
No response

After analysing the issue, I was able to replicate the bug.
On long-pressing on the whole edit text + pasting it on a non-recipient box, what we get is - "<email_address>, ". Evidence below:
https://github.com/thunderbird/thunderbird-android/assets/40279132/0b2efa66-2454-4de4-b4c5-948087b1321f
Because our EditText's input type is marked as textEmailAddress|textMultiLine, the box cannot process the comma, after the email address.
Given that these edit texts are handled internally by splitwise's TokenAutoComplete, I suggest we instead add a new cut icon to recipient_alternate_item.xml:
https://github.com/thunderbird/thunderbird-android/assets/40279132/2cee84d7-f2ae-4c50-b4f7-07cbc3d8a5b7

Duplicate of #2961


Problem with rspec test in the search method

Hi guys, I'm doing this spec and when I try to do the search without the sleep I get 0 results in the total and whe I use the sleep I get 1(The correct value)
require 'spec_helper'

describe Search::SInfluencer do

  before do
    influencer = create_influencer_stubbed(first_name: 'Alvaro', last_name: 'Uribe', twitter_screen_name: 'AlvaroUribeVel')
    influencer.save
    Influencer.any_instance.stub(:actual_campaign_fee) { 1000 }
    Influencer.__elasticsearch__.client.indices.delete index: Influencer.index_name rescue nil
    Influencer.import
  end

  describe '#search' do

    context 'searchs for keyword' do
      it 'searchs for the keyword screen_name' do
        searcher = Search::SInfluencer.new
        response = searcher.search({ keywords: 'AlvaroUribeVel' })
        sleep 1
        puts "response >> #{response.results.total}"
        expect(response.records.to_a.first.user.twitter_screen_name).to eql 'AlvaroUribeVel'
      end
    end

  end
end

@mrkaspa Let's close this?


Don't install cupy when core module is not compiled correctly

When cupy is not compiled correctly, import cupy shows this error message:
ImportError: cannot import name core

core is a Cython module. When configuration is invalid, for example when CUDA is not found, this module cannot be compiled.
We need to stop install CuPy itself in such case. Or, we need to split repositories and packages.

Changing install packages after build is not easy. This issue is automatically solved when we split Chainer and CuPy, because we can stop installing CuPy when core is not correctly built.

CuPy is separated out to another package, and Chainer does not install it automatically now, so this issue has been fixed.


[KYUUBI #5726][AUTHZ] Support optimize path-based table for Delta Lake in Authz

:mag: Description
Issue References 🔗

This pull request fixes #5726.
Describe Your Solution 🔧
org.apache.spark.sql.delta.commands.OptimizeTableCommand add uriDescs.
Types of changes :bookmark:

[ ] Bugfix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Test Plan 🧪
Behavior Without This Pull Request :coffin:
Behavior With This Pull Request :tada:
Related Unit Tests
org.apache.kyuubi.plugin.spark.authz.ranger.DeltaCatalogRangerSparkExtensionSuite.test("optimize path-based table")

Checklists
📝 Author Self Checklist

[x] My code follows the style guidelines of this project
[x] I have performed a self-review
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[x] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[x] This patch was not authored or co-authored using Generative Tooling

📝 Committer Pre-Merge Checklist

[ ] Pull request title is okay.
[ ] No license issues.
[ ] Milestone correctly set?
[ ] Test coverage is ok
[ ] Assignees are selected.
[ ] Minimum number of approvals
[ ] No changes are requested

Be nice. Be informative.

Codecov Report
Attention: 4 lines in your changes are missing coverage. Please review.

Comparison is base (d4dd1cb) 61.33% compared to head (62c52b2) 61.32%.
Report is 2 commits behind head on master.

Files
Patch %
Lines

...yuubi/plugin/spark/authz/serde/uriExtractors.scala
69.23%
2 Missing and 2 partials :warning:

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5732      +/-   ##
============================================
- Coverage     61.33%   61.32%   -0.02%
  Complexity       23       23
============================================
  Files           607      607
  Lines         35839    35863      +24
  Branches       4917     4923       +6
============================================
+ Hits          21982    21993      +11
- Misses        11471    11478       +7
- Partials       2386     2392       +6

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

thanks, merged to master

Thanks, @yaooqinn @bowenliang123


wiki: update local development environment instructions

The wiki says to download App Engine, but the App Engine Flex docs say you should just run your code with "go run", no dev_appserver.py involved.
https://github.com/golang/gddo/wiki/Development-Environment-Setup
https://cloud.google.com/appengine/docs/flexible/go/quickstart

/cc @shantuo

I should've stated that more clearly. Basically, dev_appserver.py is used for the search API, which is an "App Engine Standard" only feature. I agree that the AE Standard part should be better decoupled with the rest of the app so that people can run "go run" for local dev.


DateTimePicker is not defined when input is clicked with Svelte 5

Hi there 👋🏻 ,
I am migrating a Svelte 4 project to Svelte 5 and I'm facing an issue with the package (cf screenshot of my console) when I click on the DateInput. No problem with the date binding, the date appears correctly in the input.

Here is my code:
<script>
  import { DateInput } from 'date-picker-svelte';

  let date = $state(new Date);
</script>

<DateInput bind:value={date} />

Here are my specs:

Mac OS Sequoia 15.0
Svelte 5.1.2
date-picker-svelte 2.14.0
Bun 1.1.33 or Node 22.4.1

No issue when I am using Svelte 4 🤓
Can you help me on this please? 😊

I'm not seeing the error: https://svelte.dev/playground/066d0f02c5104a7293ccba0be4ae8636?version=5.1.2
Could you provide a REPL or repro?


Log Scheduling

The refresh time of readings must be determined, and implemented to be variable.

[x] Periodic calls to arduino for data packets
[x] Need to differentiate between monitoring devices, and BFGs
[x] Need to keep track of file size and available disk space
[x] Each packet sent should get a response before sending another one

Packets are done in groups. All packets need responses before another set of packets can be sent


Add transitive implementation dependencies to the PMD auxclasspath

Certain PMD diagnostics load classes referenced in the analyzed source
file, for example, to reconstruct type hierarchies. Such classes are
loaded from the auxclasspath. Prior to this CL only compile outputs and
compile classpath were used as auxclasspath. PMD was complaining about
missing class if some library on compile classpath was referencing other
class from its implementation dependency because Gradle doesn't add
transitive implementation dependencies to the compile classpath.
This CL introduces new internal configuration sourcesetPmdAuxClasspath
that extends compile classpath but is resolved as a runtime classpath
thus including all transitive implementation dependencies.
This CL doesn't cover all possible corner cases because referenced
classes from transitive compileOnly dependencies are not available.
An additional user-visible configuration pmdAux is added to work
around this. The user who encounters the NoClassDefFoundError due to
compileOnly dependency can add it to pmdAux configuration while
avoiding pollution of the compile classpath.
Fixes #17410
See https://pmd.github.io/latest/pmd_userdocs_cli_reference.html#auxclasspath

@bot-gradle test this

OK, I've already triggered ReadyForMerge build for you.

@bot-gradle test and merge

OK, I've already triggered a build for you.

Pre-tested commit build failed.

@bot-gradle test and merge

OK, I've already triggered a build for you.

Pre-tested commit build failed.

@bot-gradle test and merge

OK, I've already triggered a build for you.