HTTPCookies keys

Problem: I was unable to find a way to access HTTPCookies name String keys. Thus an apriori knowledge of such cookie name keys is required to retreive any cookie values.
Expectation: Since HTTPCookies is, in essence, similar to a Dictionary of cookieName:cookieValue pairs, I had expected some access to the array of keys. And, also expected the standard Swift for … in Dictionary … iteration to work.
See "Iterating Over a Dictionary" section in The Swift Programming Language
Example:
let cookies: HTTPCookies = request.http.cookies

// keys: [String] style interation
for cookieName in cookies.keys {
    print("\(cookieName)=\(cookies[cookieName])")
}
// ERROR: Value of type 'HTTPCookies' has no member 'keys'

// direct Dictionary style interation
for (cookieName, cookieValue) in cookies {
    print("\(cookieName)=\(cookieValue)")
}
// ERROR: Type 'HTTPCookies' does not conform to protocol 'Sequence'

Attemps to add the capabilities via extension HTTPCookies failed because of the access restriction of private var cookies: [String: HTTPCookieValue] internal storage.
Version:
HTTP version 3.0.7

There's a new, mutable property HTTPCookies.all that allows you to access the [String: HTTPCookieValue] data. This will be tagged in 3.1.0. Thanks!


Add InputNoteRecord methods

What should be done?
InputNoteRecord contains many fields that are grouped in the base InputNote struct (such as inputs and recipient). We should add methods for returning these fields from InputNoteRecord itself instead of relying on converting to InputNote first
How should it be done?
Add methods for retrieving fields for InputNoteRecord
When is this task done?
When we can get domain types from InputNoteRecord
Additional context
No response

I can take this up if its still open


Smart (), [], {}, '', and ""

Description of the problem or steps to reproduce
Smart (), [], {}, '', and ""
Specifications
User friendly auto (), [], {}, '', and ""
Micro version:
MBP2018:~ westleyk$ micro -version
Version: 1.4.1
Commit hash: 1856891
Compiled on August 10, 2018
MBP2018:~ westleyk$

Commit hash: Commit hash: 1856891
OS: macOS Mojave version 10.14 Beta (18A377a) // Yes, I'm running a beta.
Terminal: xterm-256color, /bin/bash
Expected behavior:
This example is very long, but it should make sense,
MBP2018:~ westleyk$ micro fubar.sh

#!/bin/sh

#   ⬇ curser is right here, now when I type  "  (a quote mark) I want it to put one at the end if the word.
if [ $1 == "hi" ]; then
    echo hello
    echo hi
    exit 0
fi

exit 0

Like so:
#!/bin/sh

#    ⬇ ⬇ now there are two "  (quote mark) around the word.
if [ "$1" == "hi" ]; then
    echo hello
    echo hi
    exit 0
fi

exit 0

Likewise, I can do the same thing here:
#!/bin/sh

if [ $1 == "hi" ]; then
 #      ⬇ curser is here, so I type  "  (a quote mark) I want it to put one at the end if the word.
    echo hello
    echo hi
    exit 0
fi

exit 0

Like so:
#!/bin/sh

if [ $1 == "hi" ]; then
 #      now there are two quote marks.
    echo "hello"
    echo hi
    exit 0
fi

exit 0

Actual behavior:
MBP2018:~ westleyk$ micro fubar.sh

#!/bin/sh

#   ⬇ curser is right here, then I type a  "  (a quote mark),
if [ $1 == "hi" ]; then
    echo hello
    echo hi
    exit 0
fi

exit 0

Then, this happens:
#!/bin/sh

#    ⬇ WTF IS THAT???  not very user friendly.
if [ ""$1 == "hi" ]; then
    echo hello
    echo hi
    exit 0
fi

exit 0

+1, but if its too difficult to change this, simply not adding a complimentary " when there's text immediately to the right (or left).

Can you explain in a little more details?

If you consider the pipe as the cursor, in this scenario,
if [ |$1 == "hi" ]; then

would just yield ➡
if [ |"$1 == "hi" ]; then

But
if [| $1 == "hi" ]; then

would become ➡
if [|"" $1 == "hi" ]; then

Now I get it!
here is what mine is doing:
https://asciinema.org/a/kPz8uUonwNtPfM1878uKLHs6D

I spinned-up a workaround that I use in my setup:
// ~/.config/micro/bindings.json

{
  "\"": "command:textfilter wrap '\"' '\"'",
  "(": "command:textfilter wrap '(' ')'",
  "{": "command:textfilter wrap '{' '}'",
  "[": "command:textfilter wrap '[' ']'",
  "Alt-/": "lua:comment.comment",
  "CtrlBacktab": "PreviousTab",
  "CtrlG": "lua:comment.comment",
  "CtrlR": "command:reload",
  "CtrlTab": "NextTab",
  "CtrlUnderscore": "lua:comment.comment"
}

# ~/bin/wrap

l="$1" r="$2"

test "$2" && shift 2
test "$1" && r="$r\n"

printf "${l}%s${r}" "${*:-$(cat)}"

Let's say I have this:
#! /bin/sh

echo a word.

Now, if I select a word and type " it will be converted into "a word"; likewise with [, { and (.
No, it's not as "smart" as you describe, but better than nothing. :sweat_smile:
This could definitely be best implemented as a plugin (or if there's a way to automatically select the word next to the cursor and then run wrap...). But until then, I hope this helps.

Interesting, this issue is 2 years old and this has not been "fixed" yet (not even for v2.0.0)... Your simple workaround is definitely better then the default behavior (and very helpful), but I feel this should be enhanced (for a very smart autocomplete), and be included with the stock micro binary.
I would really like it see this feature be part of micro (or as a plugin), but for now (and likely forever), vim is my goto editor. But I still appreciate this more simple editor, and your workaround makes it a bit better :+1:

Take a look at this: https://github.com/deusnefum/micro-quoter.
It's available as a plugin: micro -plugin install quoter. :wink:

The manipulator plugin also has functions to wrap a selection in quotes, brackets. etc.


Add new cookies group

Describe the feature
There is two types of cookies:
necessary and optional.
Please allow add new group custom cookies.
In a lot of websites, the cookies are grouped like "necesary", "ads", "analytics", "geo", etc... not only 2 "static" group of cookies
Additional information

[ ] Would you be willing to help implement this feature?

Final checks

[X] Check existing discussions and issues.

PRs welcome!

here you are an example of other consent banner cookies with custom categories
https://cookieconsent.orestbida.com/reference/configuration-reference.html#categories

Or maybe extend, not only optional and necessary.
Extend to

Necessary
Functionality
Analytics
Marketing

Extend in this enum to :
export declare enum CookieType {
NECESSARY = "necessary",
FUNCTIONALITY = "functionality",
ANALYTICS = "analytics",
MARKETING = "marketing"
}

I think the categories should be configurable eventually, as configurability is a goal of this project.

I think the categories should be configurable eventually, as configurability is a goal of this project.

@dargmuesli
Do you know when you will implement this configurability?

Yes, I won't implement this feature myself, that's why I wrote "PR welcome" and tagged this issue with the "help wanted" label.

@dargmuesli
I create new pull request to fix this issue


Cannot explain recurring OOM error

Hi there,
I am trying to use the int8 quantized model of BLOOM 175B for inference and am closely following the bloom-accelerate-inference.py script. I have about 1000 prompts for which I need the outputs.  I use beam size of 1 (greedy search) and batch size of 1 since I can't fit more into my GPU memory (I have 4 * 80 GB A100 GPUs). max_new_tokens is set to 64.
When running inference on this list of prompts, after successfully generating on the first few sentences (61 in this case), my script crashes with an OOM error:
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 14.00 MiB (GPU 0; 79.17 GiB total capacity; 77.63 GiB already allocated; 11.31 MiB free; 77.92 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
Though long prompts often cause OOM, in this case, I do not think it is due to the length of the current prompt. I logged just to make sure, but prompts longer than the current one have been successfully generated in the past (in the first 61 prompts I was referring to).
I am unable to figure out what the possible reason could be. Any suggestions/ideas?

Can you provide a bit more details?
How have you launched the job?
Is this a standalone job or a server deployment using the Makefile?

Hello, thank you so much for responding. I launch it as a standalone job like this (prompts.pkl was created a previous preprocessing script that works as expected):
CUDA_VISIBLE_DEVICES=0,1,2,3 python ${preprocessing_dir}/query_bloom.py \
    --name bigscience/bloom --dtype int8 \
    --batch_size 1 --num-beams 1 --early-stopping \
    --prompts_file ${results_dir}/prompts.pkl \
    --hypo_file ${results_dir}/hypo.txt

I have uploaded query_bloom.py as a gist over here. It is based off of the bloom-accelerate-inference.py script and is a wrapper on top of it.

May be it is because it was trying to generate too much tokens?

could be

Hi @richarddwang , yes but I do set max_new_tokens to be 64, if you check my code. So this does not seem to be the issue...

could be due to large number of input tokens


Update the documentation to point to the TensorRT backend repo

@tanmayv25  I believe there are also some updates needed in the server/ repo docs. Specifically I think compose.md needs updating to mention that tensorrt backend is no longer built into triton.


allocator: improve logs consistency

built on top of https://github.com/docker/swarmkit/pull/2823; only the last commit is new, but thought to keep it separate

Codecov Report

Merging #2824 (20c609d) into master (b98a45d) will increase coverage by 0.03%.
The diff coverage is 72.72%.

@@            Coverage Diff             @@
##           master    #2824      +/-   ##
==========================================
+ Coverage   61.75%   61.78%   +0.03%
==========================================
  Files         155      155
  Lines       31145    31137       -8
==========================================
+ Hits        19234    19239       +5
+ Misses      10361    10346      -15
- Partials     1550     1552       +2


Triton server failed

Compiled the model with TensorRT-LLM. Everything is fine at this stage
Moved the files (lama_float16_tp2_rank0.engine, lama_float16_tp2_rank1.engine, config.json, model.cashe) to the tensorrtllm_backend repository in the folder tensorrtllm_backend/all_models/inflight_batcher_llm/tensorrt_llm/1/, also moved the tokenizer to the folder tensorrtllm_backend/tensorrt_llm/tokenizer
Specified settings preprocessing/config.pbtxt - path to tokenizer, the rest as in the manual
Started the container - everything is ok
Start server python /opt/scripts/launch_triton_server.py --model_repo /all_models/inflight_batcher_llm --world_size 2 I get errors

[

](url)

You should ask this question in https://github.com/triton-inference-server/tensorrtllm_backend


Find All doesn't find all in IL Views

Binary Ninja Version
2.4 Stable
Describe the bug
Find all code doesn't wait for IL functions to be populated prior to searching their contents as can be seen by searching for 'Loading' on any sufficiently large binary

To Reproduce
Steps to reproduce the behavior:

CMD+F
Type 'Loading'
Click 'Find all'
Click 'Find'

Expected behavior
Find all should generate all IL to be searched.

Fixed in https://github.com/Vector35/binaryninja/commit/7bbcb062ba2669768c3518fafa1503a7bf2d71ad. Credit goes to @plafosse


Doc: Update the IRC link from freenode to libera

Update the IRC link from freenode to libera

Thanks for the update, @aniruddha2000 !
Seeing this, I realize it should be updated to point to the flatcar docs as the source of truth where the channel is
https://github.com/kinvolk/flatcar#participate-and-contribute

@vbatts ok added the information in the https://github.com/kinvolk/flatcar#participate-and-contribute
And created a PR https://github.com/kinvolk/Flatcar/pull/419

ah, other way around. Matrix is our primary, and libera.chat is somewhat un-official. These docs should only link to the flatcar docs. :-D


In-progress strokes are invisible when the camera is panned too far from the origin.

Describe the bug
In-progress strokes are invisible when the camera is panned too far from the origin. I believe the root-cause is related to frustum culling (See additional context).
To Reproduce
Steps to reproduce the behavior:

Zoom out
Zoom in elsewhere
Draw a stroke
See that the in-progress stroke is invisible until you release the mouse (or you've passed POINTS_CHUNK_THRESHOLD)

Expected behavior
The in-progress stroke is visible no matter where the camera is.
Additional context
I believe the root cause is https://github.com/bevyengine/bevy/issues/4294. I was able to resolve this locally by editing make_chalk to add the NoFrustumCulling component to in-progress strokes.

Thanks for reporting this issue and a possible solution. I'll try this.


remove webhook

@homunkulus r+

:pushpin: Commit 5b4867a has been approved by japaric

:hourglass: Testing commit 5b4867a with merge 5b4867a...

:broken_heart: Test failed - status-appveyor

@homunkulus retry

:hourglass: Testing commit 5b4867a with merge 5b4867a...

@homunkulus r+

:pushpin: Commit 48d96c5 has been approved by japaric

:hourglass: Testing commit 48d96c5 with merge 48d96c5...

:broken_heart: Test failed - status-appveyor

@homunkulus r+

:pushpin: Commit aa259ec has been approved by japaric

:hourglass: Testing commit aa259ec with merge aa259ec...

@homunkulus r+

:pushpin: Commit 90a5883 has been approved by japaric

:hourglass: Testing commit 90a5883 with merge 90a5883...

:broken_heart: Test failed - status-travis


feat(button): add large variant

:tada: This PR is included in version 5.1.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


TooManyRequestsException: Rate Exceeded.

When enabling the warm config with a value of 20, I often get this error when deploying. It will also temporally cause the website to return TooManyRequestsException: Rate Exceeded.
  MyWeb sst:aws:Nextjs → MyWebPrewarm aws:lambda:Invocation
   invoking Lambda Function (MyWebWarmerHandlerFunction): {"errorType":"TooManyRequestsException","errorMessage":"Rate Exceeded.","trace":["TooManyRequestsException: Rate Exceeded.","    at G (file:///var/task/index.mjs:51:174698)","    at uye (file:///var/task/index.mjs:51:128580)","    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","    at async file:///var/task/index.mjs:13:38951","    at async file:///var/task/index.mjs:13:4524","    at async file:///var/task/index.mjs:21:15654","    at async file:///var/task/index.mjs:2:17360","    at async Promise.all (index 6)","    at async t1e (file:///var/task/index.mjs:51:285163)"]}

@danielstevenberger following up on this, what value did u set warming to? And did increasing the account limit help?

Hey sorry for the delayed response. I can request an increase, but is it normal for that to be caused during deployment. It happens when I have no traffic. I was wondering if it's something with the warmers during deployment causing a temporary spike.


problem installing on windows

hey pal, please check my PR  #1 , and make this wheel compatible on windows os :D

thanks for your nicely written python libraries :)


How to hide the SettingsButton and AlignmentMarker with  the video widget?

These are important to the Cardboard ecosystem and are not designed to be hidden.


MDL MOL file properties block parsing issue (reading polymers wrongly)

Description:

RDKit Version: '2017.09.2'
Platform: Linux Ubuntu

I have a MDL MOL file:
00021001.cdx
ChemDraw05011606362D
6  5  0  0  0  0  0  0  0  0999 V2000
-0.8250    0.8250    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
-0.8250    0.0000    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
0.0000    0.8250    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
-0.8250   -0.8250    0.0000 R34-(n+m+k) 0  0  0  0  0  0  0  0  0  0  0  0
0.0000    0.0000    0.0000 Si  0  0  0  0  0  0  0  0  0  0  0  0
0.8250    0.0000    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
1  2  1  0
1  3  1  0
2  4  1  0
2  5  1  0
5  6  1  0
A    1
(R\S1
A    2
P\sk
A    3
NH2)\sn
A    6
(OR\S2\n)\sm
M  END
rdkit can't parse this parse correctly

mol_file = "/home/pankaj/Downloads/US20160159157A1-20160609/US20160159157A1-20160609-C00001.MOL"
m = Chem.MolFromMolFile(mol_file, sanitize= True)
Draw.MolToImage(m)
print(Chem.MolToMolBlock(m))

00021001.cdx
RDKit          2D
6  5  0  0  0  0  0  0  0  0999 V2000
-0.8250    0.8250    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
-0.8250    0.0000    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
0.0000    0.8250    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
-0.8250   -0.8250    0.0000 R   0  0  0  0  0  1  0  0  0  0  0  0
0.0000    0.0000    0.0000 Si  0  0  0  0  0  4  0  0  0  0  0  0
0.8250    0.0000    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
1  2  1  0
1  3  1  0
2  4  1  0
2  5  1  0
5  6  1  0
M  ISO  1   4  34
A    1
(R\S1
A    2
P\sk
A    3
NH2)\sn
A    6
(OR\S2\n)\sm
M  END
Also, in other polymer MOL files: Brackets etc (SDI, SBT etc) are not handled.

The mol block pasted in above seems to have been corrupted, could you please edit the description of the issue and make sure that the mol block is included in triple back quotes so that it shows up properly:

     RDKit          3D

  8  7  0  0  0  0  0  0  0  0999 V2000
   -1.2455   -0.1191    1.2916 C   0  0  0  0  0  0  0  0  0  0  0  0
   -0.7745   -0.0015    0.0269 C   0  0  0  0  0  0  0  0  0  0  0  0
   -1.3101   -1.0096   -0.7639 F   0  0  0  0  0  0  0  0  0  0  0  0
   -1.2520    1.5459   -0.7254 Cl  0  0  0  0  0  0  0  0  0  0  0  0
    0.7442   -0.1150   -0.0297 C   0  0  2  0  0  0  0  0  0  0  0  0
    1.0272   -1.4847    0.0970 O   0  0  0  0  0  0  0  0  0  0  0  0
    1.5709    0.9222    1.3663 Br  0  0  0  0  0  0  0  0  0  0  0  0
    1.2399    0.2617   -1.2628 F   0  0  0  0  0  0  0  0  0  0  0  0
  1  2  1  0
  2  3  1  0
  2  4  1  0
  2  5  1  0
  5  6  1  1
  5  7  1  0
  5  8  1  0
M  END

Hi @greglandrum , you are right that MOL file could have issues. I tried to convert this using openbabel and I got this:
==============================
*** Open Babel Warning  in Expand
  Alias (NH^2 was not chemically interpreted

==============================
*** Open Babel Warning  in Expand
  Alias P)\sj was not chemically interpreted

==============================
*** Open Babel Warning  in Expand
  Alias (OR\S2\n)\sh was not chemically interpreted

00029001.cdx
 OpenBabel03231812332D

  6  5  0  0  0  0  0  0  0  0999 V2000
   -1.6500    0.4125    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
   -0.8250    0.4125    0.0000 R#  0  0  0  0  0  0  0  0  0  0  0  0
    0.0000    0.4125    0.0000 C   0  0  3  0  0  0  0  0  0  0  0  0
    0.0000   -0.4125    0.0000 R#  0  0  0  0  0  0  0  0  0  0  0  0
    0.8250    0.4125    0.0000 Si  0  0  0  0  0  0  0  0  0  0  0  0
    1.6500    0.4125    0.0000 C   0  0  0  0  0  0  0  0  0  0  0  0
  1  2  1  0  0  0  0
  2  3  1  0  0  0  0
  3  4  1  0  0  0  0
  3  5  1  0  0  0  0
  5  6  1  0  0  0  0
A    1
(NH^2
A    3
P)\sj
A    6
(OR\S2\n)\sh
M  RGP  2   2   1   4  34
M  END
1 molecule converted

However, the patent file had corresponding CDX file which I converted to mol file using openbabel  which is as follow:
 OpenBabel03231809172D

  6  5  0  0  0  0  0  0  0  0999 V2000
    1.4604   -5.3903    0.0000 *   0  0  0  0  0  0  0  0  0  0  0  0
    1.4604   -6.4389    0.0000 *   0  0  0  0  0  0  0  0  0  0  0  0
    2.5090   -5.3903    0.0000 *   0  0  0  0  0  0  0  0  0  0  0  0
    1.4604   -7.4875    0.0000 *   0  0  0  0  0  0  0  0  0  0  0  0
    2.5090   -6.4389    0.0000 Si  0  0  0  0  0  0  0  0  0  0  0  0
    3.5575   -6.4389    0.0000 *   0  0  0  0  0  0  0  0  0  0  0  0
  1  2  1  0  0  0  0
  1  3  1  0  0  0  0
  2  4  1  0  0  0  0
  2  5  1  0  0  0  0
  5  6  1  0  0  0  0
A    1
(R1
A    2
Pk
A    3
NH2)n
A    4
R34-(n+m+k)
A    6
(OR2)m
M  END

This file can be visualized very nicely with Marvin JS but not with rdkit. I am wondering why rdkit is ignoring all the A block of mol file.

I think you are perhaps confused about what marvin is doing.  Marvin is simply showing the "alias" as the atom label, it's not doing anything with it chemically.
Note that the example you just gave works fine in RDKit and the aliases are indeed in the atoms
>>> data ="""
...  OpenBabel03231809172D
...
...   6  5  0  0  0  0  0  0  0  0999 V2000
...     1.4604   -5.3903    0.0000 *   0  0  0  0  0  0  0  0  0  0  0  0
...     1.4604   -6.4389    0.0000 *   0  0  0  0  0  0  0  0  0  0  0  0
...     2.5090   -5.3903    0.0000 *   0  0  0  0  0  0  0  0  0  0  0  0
...     1.4604   -7.4875    0.0000 *   0  0  0  0  0  0  0  0  0  0  0  0
...     2.5090   -6.4389    0.0000 Si  0  0  0  0  0  0  0  0  0  0  0  0
...     3.5575   -6.4389    0.0000 *   0  0  0  0  0  0  0  0  0  0  0  0
...   1  2  1  0  0  0  0
...   1  3  1  0  0  0  0
...   2  4  1  0  0  0  0
...   2  5  1  0  0  0  0
...   5  6  1  0  0  0  0
... A    1
... (R1
... A    2
... Pk
... A    3
... NH2)n
... A    4
... R34-(n+m+k)
... A    6
... (OR2)m
... M  END"""
>>> from rdkit import Chem
>>> m = Chem.MolFromMolBlock(data)
>>> m = Chem.MolFromMolBlock(data)
>>> for atom in m.GetAtoms():
...   print atom.GetPropsAsDict()
...
{'_CIPRank': 2, '__computedProps': <rdkit.rdBase._vectSs object at 0x10915ec50>, 'molFileAlias': '(R1'}
{'_CIPRank': 4, '__computedProps': <rdkit.rdBase._vectSs object at 0x10915ec50>, 'molFileAlias': 'Pk'}
{'_CIPRank': 0, '__computedProps': <rdkit.rdBase._vectSs object at 0x10915ec50>, 'molFileAlias': 'NH2)n'}
{'_CIPRank': 1, '__computedProps': <rdkit.rdBase._vectSs object at 0x10915ec50>, 'molFileAlias': 'R34-(n+m+k)'}
{'_CIPRank': 5, '__computedProps': <rdkit.rdBase._vectSs object at 0x10915ec50>}
{'_CIPRank': 3, '__computedProps': <rdkit.rdBase._vectSs object at 0x10915ec50>, 'molFileAlias': '(OR2)m'}

Thanks @bp-kelley for explaining this. Very helpful. BTW, is it possible to show Alias using rdkit.Chem.Draw  instead of Symbol ?


Movement "multiplier"

After testing the sensitivity per layer, i noticed that i need to divide the value i had by a 1000
Could it be possible to have a "movementMultiplier" for all the movements, so my script can just write the same value without dividing

Do You mean, that setting some value to global movement works different than setting the same value to per layer movement?

No, i have 18 different values, that are integers, usually between +/- 20, but using those number in the tool make it slightly broken.
Found out that i actually had to divide the number i had by 1920, which for number like 3 give out really long value.
What i suggest is a "global multiplier" value so you can put number a bit smaller and just scale them by 1/2000, could be a global "scaling" factor.

I think it may be a little confusing. Sensitivity value represents exactly how many times more than the cursor distance from the center should the layer move and in my opinion it should stay that way.


DocsArchive-<IP_ADDRESS>Auto archive content

Please don't merge this PR until target archive repo PR https://github.com/OPS-E2E-PPE/docs-archive-test-target_2dff5794-06d6-441b-a349-870019c644c7/pull/1 is merged into live branch.
Auto archive content to https://github.com/OPS-E2E-PPE/docs-archive-test-target_2dff5794-06d6-441b-a349-870019c644c7.git

Docs Build status updates of commit e4d1f88:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error]

Cannot sync git repo to specified commit because branch Release_Archive_master_2020-04-07-02-55-52 has been deleted or has been force pushed: fatal: couldn't find remote ref refs/heads/Release_Archive_master_2020-04-07-02-55-52

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


Revert "Updated references to container-engine.yaml to kubernetes-engine.yaml"

Reverts GoogleCloudPlatform/java-docs-samples#932

@kurtisvg PTAL


Error when numbers exeed 100

It has an error when numbers are more than 100, it keeps putting 20s and 10s in between numbers, Please fix the issue as soon as possible because our  app must be live within a week from today. Thank you very much.

Everything is okay now thanks.


Adding badge

I've more event in the same day and want to add badge with number of events in this day.. Is that possible?

DayView are using spans that can be added with decorators. Please take a look at the wiki or the sample for examples. https://github.com/prolificinteractive/material-calendarview/wiki/Decorators


The joystick example panics when JoyAxisMotion.value is 1<<15

Steps to reproduce:

Plug a gamepad.
Run cargo run --example joystick.
Press the left direction on the gamepad's axis.

(The overflow comes from val.abs().)

Arf! This is going to be difficult for me to fix without a gamepad. Fancy stepping up and writing a patch? ;)

The problem is simple though: when val is -2^15, val.abs() overflows.
So instead of doing val.abs() > X, you could do val < -X || val > X.
(The problem is also present in the game_controller example.)

I'll look at writing a patch then.


Clarify Ubuntu 20.04 support

The table at the top of the page says 20.04 is supported and 20.10 is not, while the nav on the right and the content says 20.10 is supported and 20.04 is not.

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

ID: 80707602-f283-e796-d3b8-3287fbc011dc
Version Independent ID: 1d732b15-9e64-633a-000c-ad96d9d3818a
Content: Install .NET on Ubuntu - .NET
Content Source: docs/core/install/linux-ubuntu.md
Product: dotnet
Technology: dotnet-install
GitHub Login: @adegeo
Microsoft Alias: adegeo

Thank you for bringing this up. It looks like I marked the wrong header as not supported!

Thank you for bringing this up. It looks like I marked the wrong header as not supported!

@adegeo can you please clarify which is supported and which is not?

@alyssajotice Hiya! We only support .NET on versions in Ubuntu's support policy. As of July, 20.10. We've corrected the article today but our publishing cycle is generally the morning of the next day.

@adegeo, thank you for the clarification.

@alyssajotice
That said, .NET will probably still work just fine if you choose to run it on it. Obviously .NET 5 (which has been released for quite a while) will continue to run on Ubuntu 20.10, we just don't guarantee that .NET 6 will as we're not going to be testing it on an unsupported Ubuntu release.


keyboard.sendMessage in background to windowhandle

Hey, guys.
I love this library. I'm currently developing a bot for a game that should also work in the background. Most of my bots I developed with C#. There I was also able to send keystrokes for games in the background.
I also want this functionality for robot-js.
REF: MSDN::SendMessage function
Best regards

Hello, thank you for your feedback. This feature has actually been requested in https://github.com/Robot/robot/issues/16, I wish I had an ETA for you. One of the issues is that there is no consistent way of sending inputs to specific windows. Sometimes SendMessage works, as you mentioned and sometimes not. I'm also not aware of any method of injecting input to windows that rely on raw input or check that they're active before accepting input. These techniques are used as counter measures against automated gameplay and can't be bypassed without detouring or patching of some kind. Moreover, I'm not sure if there are similar restrictions on Mac & Linux. Regardless, I might just end up exposing PostMessage. In the meantime, you should be able to use that native function directly using existing robot key constants.

Sorry didn't found that #16 in with my keywords while searching. Thx so far.


mysql   table = logger_watcher，，，  what is it like?

table construction？

its just table name . you dont need to defined table construction, The program automatically creates a data table when the table does not exist .


Unused parameter in stan model

It looks like all references to the mu_b_T_model_estimation_error parameter are commented out in the poll_model_2020.stan model as well as poll_model_2020_no_mode_adjustment.stan.  Presumably this variable should be removed from the parameters declaration.  I'm not sure if this is the current Stan behavior, but there are at least some cases from past versions  where unused parameters can negatively impact model behavior through unintended impacts on the posterior.
https://github.com/TheEconomist/us-potus-model/blob/85be55ae7b0bc68cb155a9ca975e155837eb4851/scripts/model/poll_model_2020.stan#L68

fixed and closing


[web] CanvasKit crashes: PictureRecorder is not recording

Demo
https://user-images.githubusercontent.com/19204050/116785503-68c64d80-aa89-11eb-96f1-1a9400533dd5.mp4
You can see the HTML renderer on the left side and CanvasKit on the right side.
Steps to Reproduce

Run flutter create --platforms=web bug.
Run cd bug.
Replace pubspec.yaml with the following contents:

Click to expand snippet
name: bug
description: https://github.com/flutter/flutter/issues/81614
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1

environment:
  sdk: ">=2.12.0 <3.0.0"

dependencies:
  flutter:
    sdk: flutter
  flutter_math_fork: 0.3.1+1

flutter:
  uses-material-design: true

Replace lib/main.dart with the following contents:

Click to expand snippet
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter_math_fork/flutter_math.dart';

void main() {
  runApp(MaterialApp(
    home: _Foo(),
  ));

  FlutterError.onError = (details) {
    // Force verbose errors.
    if (kDebugMode) {
      FlutterError.dumpErrorToConsole(details);
    }
  };
}

class _Foo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Example title'),
      ),
      body: Column(
        children: [
          Padding(
            padding: const EdgeInsets.symmetric(vertical: 16),
            child: SingleChildScrollView(
              scrollDirection: Axis.horizontal,
              child: Math.tex(
                r'\overline{\sqrt{\vec{v_{crash}}}}' * 12,
                options: MathOptions(
                  fontSize: 32,
                ),
              ),
            ),
          ),
          FloatingActionButton.extended(
            onPressed: () => Navigator.of(context).push(MaterialPageRoute(
              builder: (context) => _Foo(),
            )),
            icon: Icon(Icons.ac_unit),
            label: Text('Example button 🙂'),
          ),
          Padding(
            padding: const EdgeInsets.all(16),
            child: Container(
              width: 200,
              height: 200,
              color: Colors.redAccent,
            ),
          ),
        ],
      ),
    );
  }
}

Run flutter run -d chrome --web-renderer=html.

You will see the math symbols displayed and some example UI I created around it. Everything works fine, you can click the button.

Run flutter run -d chrome --web-renderer=canvaskit.

The app will start flashing immediately, printing Flutter: restoring WebGL context. to the console continuously.
Once you press the button, the app explodes completely and the following error is printed to the console:
Click to expand error log
══╡ EXCEPTION CAUGHT BY SCHEDULER LIBRARY ╞═════════════════════════════════════════════════════════
The following JSNoSuchMethodError was thrown during a scheduler callback:
TypeError: Cannot set property 'name' of null

When the exception was thrown, this was the stack:
<EMAIL_ADDRESS>225:70                                                       ea
<EMAIL_ADDRESS>1:1
Surface$_flush
<EMAIL_ADDRESS>12:230
flush
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/canvaskit/surface.dart 293:14
flush
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/canvaskit/surface.dart 269:5
[_presentSurface]
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/canvaskit/surface.dart 95:14
<fn>
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/canvaskit/surface.dart 25:26
submit
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/canvaskit/embedded_views.dart 350:12
submitFrame
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/canvaskit/rasterizer.dart 36:28
draw
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/platform_dispatcher.dart 569:7
render
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/ui/src/ui/window.dart 91:50
render
packages/flutter/src/rendering/view.dart 220:15
compositeFrame
packages/flutter/src/rendering/binding.dart 466:18
drawFrame
packages/flutter/src/widgets/binding.dart 879:13
drawFrame
packages/flutter/src/rendering/binding.dart 328:5
[_handlePersistentFrameCallback]
packages/flutter/src/scheduler/binding.dart 1150:15
[_invokeFrameCallback]
packages/flutter/src/scheduler/binding.dart 1087:9
handleDrawFrame
packages/flutter/src/scheduler/binding.dart 1003:5
[_handleDrawFrame]
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/platform_dispatcher.dart 962:13
invoke
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine/platform_dispatcher.dart 151:5
invokeOnDrawFrame
C:/b/s/w/ir/cache/builder/src/out/host_debug/flutter_web_sdk/lib/_engine/engine.dart 313:45
<fn>
════════════════════════════════════════════════════════════════════════════════════════════════════

And once the following error is printed to the console, the app zooms in in a really weird way and stops working completely:
Bad state: PictureRecorder is not recording

Versions
Click to see flutter doctor output
[✓] Flutter (Channel master, 2.3.0-1.0.pre.84, on Microsoft Windows [Version 10.0.19042.928], locale en-150)
    • Flutter version 2.3.0-1.0.pre.84
    • Framework revision 5e2f8631f8 (5 days ago), 2021-04-26 17:54:04 +0000
    • Engine revision f5db8e3792
    • Dart version 2.14.0 (build 2.14.0-43.0.dev)

[✓] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19042.928]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 90.0.4430.93
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 90.0.818.49

Hi @creativecreatorormaybenot
Thanks for filing the issue, I can confirm it!

flutter doctor -v
[✓] Flutter (Channel stable, 2.0.6, on Microsoft Windows [Version 10.0.19042.928], locale en-US)
    • Flutter version 2.0.6 at C:\Users\Taha\Code\flutter_stable
    • Framework revision 1d9032c7e1 (3 days ago), 2021-04-29 17:37:58 -0700
    • Engine revision 05e680e202
    • Dart version 2.12.3

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\Taha\Code\SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = C:\Users\Taha\Code\SDK
    • Java binary at: C:\Users\Taha\Code\android-studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.9.4)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.9.31205.134
    • Windows 10 SDK version 10.0.19041.0

[✓] Android Studio (version 4.1.0)
    • Android Studio at C:\Users\Taha\Code\android-studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[✓] IntelliJ IDEA Community Edition (version 2021.1)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.3.3
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.55.2)
    • VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.21.0

[✓] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19042.928]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 90.0.4430.93
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 90.0.818.51

! Doctor found issues in 1 category.

[✓] Flutter (Channel master, 2.3.0-1.0.pre.205, on Microsoft Windows [Version 10.0.19042.928], locale en-US)
    • Flutter version 2.3.0-1.0.pre.205 at C:\Users\Taha\Code\flutter_master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 96e4b47f5d (18 hours ago), 2021-05-02 07:24:01 -0700
    • Engine revision 3e578c6e0d
    • Dart version 2.14.0 (build 2.14.0-48.0.dev)

[!] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\Taha\Code\SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = C:\Users\Taha\Code\SDK
    • Java binary at: C:\Users\Taha\Code\android-studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.9.4)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.9.31205.134
    • Windows 10 SDK version 10.0.19041.0

[✓] Android Studio (version 4.1.0)
    • Android Studio at C:\Users\Taha\Code\android-studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b01)

[✓] IntelliJ IDEA Community Edition (version 2021.1)
    • IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2020.3.3
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.55.2)
    • VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.21.0

[✓] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.19042.928]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 90.0.4430.93
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 90.0.818.51

! Doctor found issues in 1 category.

This is caused by having more overlay surfaces active at once than the browser can support. I have a fix which caps the maximum number of overlay canvases to get around this problem.

@hterkelsen That sounds good, thanks for investigating. I am wondering, why are the "overlay surfaces" (I am not familiar with the concept) required when using CanvasKit?
I assume they are not used in HTML mode when displaying <img> HTML platform views.
Second questions: what are the implications of capping the number of overlay canvases? Does this mean only a limited number of <img> elements will be visible?

What are overlay surfaces / why does CanvasKit use them?
Are there implications connected to the maximum cap?

@creativecreatorormaybenot In CanvasKit mode, everything gets turned into Skia drawing commands and rendered using a single <canvas>. However, we can't use Skia to render platform views, so in order to get paint commands that occur after the platform view to render over top of the platform view, we need to create another canvas (we call this an overlay surface). Basically, if you have N platform views, we will generate DOM that looks something like this:
<skia-scene>
  <canvas></canvas>
  <platform-view-1></platform-view-1>
  <canvas></canvas>
  <platform-view-2></platform-view-2>
  <canvas></canvas>
  ...
  <platform-view-N></platform-view-N>
  <canvas></canvas>
</skia-scene>

In order to use Skia, each of those canvases must have a GL context, but browsers only support a limited number of contexts. In order to get around this, I am proposing limiting the number of overlay canvases: which will make the scene look like this (assuming M maximum overlays):
<skia-scene>
  <canvas></canvas>
  <platform-view-1></platform-view-1>
  <canvas></canvas>
  <platform-view-2></platform-view-2>
  <canvas></canvas>
  <platform-view-M></platform-view-M>
  <platform-view-M+1></platform-view-M+1>
  ...
  <platform-view-N></platform-view-N>
  <canvas></canvas>
</skia-scene>

At some point we'll stop making overlay canvases, and all drawing operations will go to the last overlay. So we won't cap the maximum number of <img> elements, but if you are planning to interleave those <img> elements with Flutter drawings (in the example app this approach shouldn't cause it to render any differently from expected).
Hope this clears things up.

@hterkelsen Thanks a lot for explaining!
This seems like a really good solution to me! And in our real use case (not the minimal example), this should be fine (I think) 🚀

Just got this working. Will send the PR out once I write some tests.

Awesome news @hterkelsen 🔥


Added the possibility to send notifications using Home Assistant

I wanted to send notifications using Home Assistant, so I added the functionality :)

Looks like there's some linting issues. npx eslint . --fix should fix nearly all of it automatically.

Looks like it needs one more npx eslint . --fix, and it should be good to go.
I use HomeAssistant myself, so it's pretty cool to see this added. Thanks!


How to send Binance transaction testnet??

let wallet = HDWallet(mnemonic: "**** ****", passphrase: "")

let privateKey = wallet.getKeyForCoin(coin: .binance)
let publicKey = privateKey.getPublicKeySecp256k1(compressed: true)

let token = BinanceSendOrder.Token.with {
    $0.denom = "BNB" // BNB or BEP2 token symbol
    $0.amount = 4   // Amount, 1 BNB
}

let orderInput = BinanceSendOrder.Input.with {
    //$0.address = CosmosAddress(hrp: .binance, publicKey: publicKey)!.keyHash
    $0.address = SegwitAddress(hrp: .binance, publicKey: publicKey).witnessProgram
    $0.coins = [token]
}

let orderOutput = BinanceSendOrder.Output.with {
    // $0.address = CosmosAddress(string: "bnb1hlly02l6ahjsgxw9wlcswnlwdhg4xhx38yxpd5")!.keyHash
    // $0.address = SegwitAddress(string: "")!.witnessProgram
    $0.address = "tbnb16h65pzx8xjg0xlmuz9lzvkawc6hj82gq9wxulh".data(using: .utf8)!
    $0.coins = [token]
}

let input = BinanceSigningInput.with {
    $0.chainID = "Binance-Chain-Nile" // Testnet Chain id
    $0.accountNumber = 727198         // On chain account number
    $0.sequence = 1                   // Sequence number
    $0.source = 0                     // BEP10 source id
    $0.privateKey = privateKey.data
    $0.memo = ""
    $0.sendOrder = BinanceSendOrder.with {
        $0.inputs = [orderInput]
        $0.outputs = [orderOutput]
    }
}

let output: BinanceSigningOutput = AnySigner.sign(input: input, coin: .binance)
print("output", output.encoded.dataToHexString())

let param = ["sync": output.encoded.dataToHexString(), "body": ""] as [String: Any]

When I try to send above param to https://testnet-dex.binance.org/api/v1/broadcast results in failed response as:
{"code":400,"failed_tx_index":0,"message":"broadcast tx 400: invalid hex in a given tx","success_tx_results":[]}

Please support to solve this issue.

keyhash was wrong, should not use SegwitAddress().witnessProgram, and we don't support testnet address in AnyAddress or old CosmosAddress, but you can calculate the keyhash by yourself:
Hash::sha256ripemd(publicKey)

Then please provide some example to get proper keyhash and send Binance transaction.

please check https://github.com/trustwallet/wallet-core/blob/master/swift/Tests/Blockchains/BinanceChainTests.swift#L28

Thank you for quick response..For mainnet which address should I use SegwitAddress or cosmos address or AnyAddress??

in latest version, no more CosmosAddress, only AnyAddress

Ok..Thank you

I have done transaction using mainnet by followed your suggested code..But still am getting same error response as:
{
code = 400;
"failed_tx_index" = 0;
message = "broadcast tx 400: invalid hex in a given tx";
"success_tx_results" =     (
);
}
Instead it should say no balance only..

Make sure you set correct chain id

Using this Binance-Chain-Tigris
I have balance also..But still receiving same error..
Following this link only: https://docs.binance.org/api-reference/dex-api/paths.html#apiv1broadcast
Requesting two parameters that is sync and body.
For sync parameter am using our output.encode.hexString value....What should I use in body parameter?? Any idea??


xahaud.cfg Documentation

Would be nice to have some documentation of setting that are able to be set in xahaud.cfg and available options for those settings.

There are example configurations here: https://github.com/Xahau/xahaud/tree/dev/cfg.
Let me know if that doesn't help you


.When/.WhenAsync should include an overload that included the context

There are times when validation rules are turned on or off based on some secondary data that is stored in the RootContextData.

I'll try and get this added for the next release but probably won't be for a while as I'm snowed under this week.

Thank you sir.

This has ended up being a bigger change than I thought.
I realised that this would end up introducing a breaking change to PropertyRule.ApplyConditionTo and DelegatingValidator's constructor, so I'm going to push this back to the 7.4 release as I need to do some impact analysis first. The options are either to introduce breaking changes in these places or to add new overloads.
We'd also have to extend Unless/UnlessAsync to support the same signature for consistency.


Nvflare no docker

Fixes # n/a
Description
Updated NVFlare examples.
The examples here show how to train federated learning models with NVFlare and MONAI-based trainers.
nvflare_example shows how to run NVFlare with MONAI on a local machine to simulate an FL setting (server and client communicate over localhost). It also shows how to run a simulated FL experiment completely automated using the admin API.
nvflare_example_docker provides further details on running FL with MONAI and NVFlare using docker containers for the server and each client for easier real-world deployment.
Status
Ready/Work in progress/Hold
Checks

[ ] Notebook runs automatically ./runner [-p <regex_pattern>]

Thanks for the update.
And I am surprised that this PR is so big..
Thanks.

A large number of changes come mainly from moving the existing nvflare tutorial to a new subfolder nvflare_example_docker.

@wyli Thanks. We restructured the code following your suggestions.


Add DeepSpeed!

Closes https://github.com/microsoft/DeepSpeed/issues/1674.
Before submitting

[x] Was this discussed/approved via a GitHub issue? (no need for typos and docs improvements)
[x] Did you create/update your configuration file?
[x] Did you add your config to CI - GitHub action and Azure pipeline?
[ ] Are all integration tests passing?

What does this PR do? [optional]
Fixes # (issue).
Did you have fun?
Make sure you had fun coding 🙃

can we rather make these test GPU independent?
trainer = Trainer(strategy=DeepSpeedPlugin(), max_epochs=1, precision=16, gpus=torch.cuda.device_count())

can we rather make these test GPU independent?
trainer = Trainer(strategy=DeepSpeedPlugin(), max_epochs=1, precision=16, gpus=torch.cuda.device_count())

but I guess it does not make sense to run deepspeed without GPU, right?

Spoke about this offline with @Borda doesn't make much sense to run DeepSpeed without the GPU.
We're currently blocked by Azure not having GPUs for our CI apparently, so we'll wait till then to merge this :)


add danish translations

Added danish translations into new strings.xml file in values-da folder

Hi @esafirm ,
I would request you please merge this PR asap so that our team can use the new version with danish translations before our next release. Please note that our next release is planned within next three days. Thanks.
Regards
Yasir

Hello,
Any news about the new release with this PR?
Thanks

@yasiralijaved hi sorry, really busy at work. Will review it ASAP


Keyboard removes itself on second entry

If I

show keyboard
set a character
press enter
then reshow the keyboard with a new label
enter another character

The keyboard disapears, without any events.
If I then point the cursor at where it was, I can get it to click a character, then it shows itself again.
 this.keyboard.setAttribute('super-keyboard',{
            label,
            show:true,
        })
        this.keyboard.addEventListener('superkeyboardismiss', e => console.log('dismiss'))
        this.keyboard.addEventListener('superkeyboardinput', e => onEnter(e.detail.value))

How I'm managing it
`    signIn: function (){
        this.hideOptions()
        this.showKeyboard('Please enter your email', this.validateEmail.bind(this))
        this.title.setAttribute('text', {value: 'Sign In'})
    },
    validateEmail: function (value){

        if(!validateEmail(value))
           return this.showKeyboard('Please enter a valid email', this.validateEmail.bind(this))

        this.el.setAttribute('login', {email:value})
        this.showKeyboard('Please enter your password', this.processSignIn.bind(this))

    },
    processSignIn: function(value){
        console.log(this.data.email, value)
    },
    signUp: function (){},

    showKeyboard: function (label, onEnter){

        this.el.setAttribute('follow-orientation', {disabled: true})
        this.keyboard.setAttribute('super-keyboard',{
            label,
            show:true,
        })
        this.keyboard.addEventListener('superkeyboardismiss', e => console.log('dismiss'))
        this.keyboard.addEventListener('superkeyboardinput', e => onEnter(e.detail.value))
    },`

I've got around it by completely removing the keyboard and recreating it for each entry however this isn't ideal..


SAP On Azure Reference Architecture : Standard Load Balancer missing in DR region.

[Enter feedback here]
In general, we always have a Standard Load Balancer in the DR region for the DB node. On the reference architecture, Standard Load Balancers for (A)SCS, Web-Dispatcher & DB is missing as Standard Load Balancer cannot be replicated to DR using ASR.
Many thanks
Jitendra Singh

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

ID: 9961de25-4a65-ef77-079e-cf0359ec5857
Version Independent ID: 7b9bb7e7-ef88-a37f-5ca0-5f8a07f0f9d6
Content: Run SAP NetWeaver in Windows on Azure - Azure Architecture Center
Content Source: docs/reference-architectures/sap/sap-netweaver.yml
Service: architecture-center
Sub-service: reference-architecture
GitHub Login: @lbrader
Microsoft Alias: pnp

Thanks for reporting - this issue is under review. This is a Microsoft Internal DevOps Bug ID # 433277

Hi @jitandrasngh
Sorry for the delay.
The document has changed a lot since the issue was reported. Moreover, the document is not in the same location as when the issue was created.
I will close the ticket, but feel free to open a new one if you still have concerns.
#please-close


Property allowing to specify granularly permission while readonly mode is enabled.

May be helpfull while we want to create custom delete process path with extra steps.

Published 0.26.0 to NPM.


attempt to compare nil with number when staging via visual-lines selection

Description
I've encountered a very weird bug when trying to stage certain sections of a file via visual-lines (i.e. the V selection followed by s for staging).
cc #1233
Neovim version
NVIM v0.10.0
Build type: Release
LuaJIT 2.1.1716656478
Operating system and version
macOS 14.5.0
Steps to reproduce
This bug is a bit hard to reproduce (for example, if I omit the editing part then the bug won't reproduce at all), but the following steps has allowed 100% reproduction on my machine with the default minimal.nvim, regardless of repo (tried on https://github.com/rust-lang/rustup, https://github.com/rami3l/nvim-config and https://github.com/rami3l/ting).
I'm still not sure if it's a minimal reproduction though.

nvim -u minimal.lua
In any git repo, change a random place like in the following example. This includes changing a current line (e.g. return to return // s), and adding a new line above it (e.g. // foo).
The :Neogit panel shows some diff like the following:

[..]
-	return
+       // foo
+	return // s
[..]

Use S to stage the unstaged changes, and use u to unstage it again.
Delete the // foo line, now the diff should look like the following:

[..]
-	return
+	return // s
[..]

Use V to select the first line, and use s to stage it.
Use V to select the second line, and use s to stage it.

Expected behavior
Staging completed without error.
Actual behavior
E5108: Error executing lua: ...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:18: The coroutine failed with this message: ....local/share/nvim/lazy/neogit/lua/neogit/lib/ui/init.lua:192: attempt to compare nil with number
stack traceback:
        [C]: in function 'error'
        ...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:18: in function 'callback_or_next'
        ...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:45: in function 'step'
        ...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:48: in function 'execute'
        ...share/nvim/lazy/plenary.nvim/lua/plenary/async/async.lua:118: in function 'cb'
        .../.local/share/nvim/lazy/neogit/lua/neogit/lib/buffer.lua:582: in function <.../.local/share/nvim/lazy/neogit/lua/neogit/lib/buffer.lua:581>

Minimal config

This is the original `minimal.lua` without any changes.
-- NOTE: See the end of this file if you are reporting an issue, etc. Ignore all the "scary" functions up top, those are
-- used for setup and other operations.
local M = {}

local base_root_path = vim.fn.fnamemodify(debug.getinfo(1, "S").source:sub(2), ":p:h") .. "/.min"
function M.root(path)
  return base_root_path .. "/" .. (path or "")
end

function M.load_plugin(plugin_name, plugin_url)
  local package_root = M.root("plugins/")
  local install_destination = package_root .. plugin_name
  vim.opt.runtimepath:append(install_destination)

  if not vim.loop.fs_stat(package_root) then
    vim.fn.mkdir(package_root, "p")
  end

  if not vim.loop.fs_stat(install_destination) then
    print(string.format("> Downloading plugin '%s' to '%s'", plugin_name, install_destination))
    vim.fn.system({
      "git",
      "clone",
      "--depth=1",
      plugin_url,
      install_destination,
    })
    if vim.v.shell_error > 0 then
      error(string.format("> Failed to clone plugin: '%s' in '%s'!", plugin_name, install_destination),
        vim.log.levels.ERROR)
    end
  end
end

---@alias PluginName string The plugin name, will be used as part of the git clone destination
---@alias PluginUrl string The git url at which a plugin is located, can be a path. See https://git-scm.com/book/en/v2/Git-on-the-Server-The-Protocols for details
---@alias MinPlugins table<PluginName, PluginUrl>

---Do the initial setup. Downloads plugins, ensures the minimal init does not pollute the filesystem by keeping
---everything self contained to the CWD of the minimal init file. Run prior to running tests, reproducing issues, etc.
---@param plugins? table<PluginName, PluginUrl>
function M.setup(plugins)
  vim.opt.packpath = {}                      -- Empty the package path so we use only the plugins specified
  vim.opt.runtimepath:append(M.root(".min")) -- Ensure the runtime detects the root min dir

  -- Install required plugins
  if plugins ~= nil then
    for plugin_name, plugin_url in pairs(plugins) do
      M.load_plugin(plugin_name, plugin_url)
    end
  end

  vim.env.XDG_CONFIG_HOME = M.root("xdg/config")
  vim.env.XDG_DATA_HOME = M.root("xdg/data")
  vim.env.XDG_STATE_HOME = M.root("xdg/state")
  vim.env.XDG_CACHE_HOME = M.root("xdg/cache")

  -- NOTE: Cleanup the xdg cache on exit so new runs of the minimal init doesn't share any previous state, e.g. shada
  vim.api.nvim_create_autocmd("VimLeave", {
    callback = function()
      vim.fn.system({
        "rm",
        "-r",
        "-f",
        M.root("xdg")
      })
    end
  })
end

-- NOTE: If you have additional plugins you need to install to reproduce your issue, include them in the plugins
-- table within the setup call below.
M.setup({
  plenary = "https://github.com/nvim-lua/plenary.nvim.git",
  telescope = "https://github.com/nvim-telescope/telescope.nvim",
  diffview = "https://github.com/sindrets/diffview.nvim",
  neogit = "https://github.com/NeogitOrg/neogit"
})
-- WARN: Do all plugin setup, test runs, reproductions, etc. AFTER calling setup with a list of plugins!
-- Basically, do all that stuff AFTER this line.
require("neogit").setup({}) -- For instance, setup Neogit

This seems to be fixed with https://github.com/NeogitOrg/neogit/pull/1386.
Thanks a lot @CKolkey! I'm closing this issue for now.


Expense report - Approved report still shows the button to approve in ND

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: v9.0.78-2
Reproducible in staging?: Yes
Reproducible in production?: Yes
Email or phone of affected tester (no customers<EMAIL_ADDRESS>Issue reported by: Applause Internal Team
Device used: macOS Sequoia 15.1.1, Desktop-Web / iPhone SE 3rd generation, iOS 18.2, app-mWeb
App Component: Money Requests
Action Performed:

Open the URL: https://staging.expensify.com
Log in with a expensifail account
Click on Travel > Book or manage travel
Book a hotel can be any (On payment filter select: 'Pay at property')
After your booking is successful, go to https://staging.expensify.com
Click on 'Reports'
Click the booked hotel report > Click on 'Submit' > Click on 'Send'
Go to https://staging.new.expensify.com (Log in with the same expensifail account)
Open the chat of the booked hotel
Click on the expense report of the booked hotel (In the preview of the expense it says 'This booking is pending')
Click on 'Approve' button at top right corner

Expected Result:
The approve button should not appear, as it has been previously approved.
Actual Result:
The approve button is shown.
Workaround:
Unknown
Platforms:

[ ] Android: Standalone
[ ] Android: HybridApp
[x] Android: mWeb Chrome
[ ] iOS: Standalone
[ ] iOS: HybridApp
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

Screenshots/Videos
https://github.com/user-attachments/assets/1b97d8b4-49db-45a1-9fbf-be9fb1337187
View all open jobs on GitHub

I wonder if this is setup to be approved first on Spotnana? @stitesExpensify can you take a look?


Add download button if downloadSrc property is set

This pull request adds a download button next to the close button if the "downloadSrc" property is set.
Here's an example:
http://bessei-it.eu/ng-gallery/download-button/
The last picture has no downloadSrc property so the button isn't visible.

Cool. If you are interested I can add you as a collaborator and you will have push access to this repository?

Thanks!
Push access: Sure, that would be great!

Thank you. You now have push access. Just set you local git configuration to you username so your commits will be visible.

fyi https://help.github.com/articles/set-up-git/

Perfekt, thank you. I will check the git explanations.


Cannot run any spotdl commands

What is the purpose of your issue?

[x] Bug

Description

Any "spotdl" command used results in the below error.
Log

Traceback (most recent call last):
File "C:\Python27\Scripts\spotdl-script.py", line 11, in
load_entry_point('spotdl==0.9.3', 'console_scripts', 'spotdl')()
File "c:\python27\lib\site-packages\pkg_resources_init_.py", line 489, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "c:\python27\lib\site-packages\pkg_resources_init_.py", line 2852, in load_entry_point
return ep.load()
File "c:\python27\lib\site-packages\pkg_resources_init_.py", line 2443, in load
return self.resolve()
File "c:\python27\lib\site-packages\pkg_resources_init_.py", line 2449, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "c:\python27\lib\site-packages\spotdl.py", line 5, in
from core import metadata
File "c:\python27\lib\site-packages\core\metadata.py", line 7, in
import urllib.request
ImportError: No module named request

Python was outdated. My Apologies.

Python was outdated. My Apologies.

How did you fix it? Having same issue

@luterferraz Install Python 3.6 or later version.


Add download SVG link to the live editor

This makes it easier to use the generated SVG file in offline documents that can not rely on the permalink

In addition (or as a work-around), tools like svg-crowbar could be added to the live editor

Good idea! @naseer, what do you think? Anything you would be interested in looking at?

Sure - I can look at it - any suggestion on how to save the svg along with styling? I don't know much about svg :)

I think the styling is in place already. The graph generation collects it.
ons 25 mar 2015 kl. 19:26 skrev Naseer Ahmed<EMAIL_ADDRESS>
Sure - I can look at it - any suggestion on how to save the svg along with
styling? I don't know much about svg :)
—
Reply to this email directly or view it on GitHub
https://github.com/knsv/mermaid/issues/144#issuecomment-86159626.

@naseer, any progress on this one? Let me know if I can help.

@knsv  - Unfortunately, I haven't been able to spend any time on this yet due to work commitments.


Same tag gets accepted twice

If you put the same connect code twice, it will result in two differents entries on the ranking.

fixed with 9e62851


Cryptic error if you haven't run npm run archivist-create

The error seems to come from auth in the mage server console window, and invalidusername on client side.

Please provide more details than this, including:

Log output
Specifically what you think is weird about it.
Optionally, any suggestions on how we could fix this issue.

After discussion with @Tatsujinichi - the issue boils down to MAGE not telling you that you had to run archivist before running it.
TBH while I can hardly think of a way to solve this one, I have been frustrated a bit by this in the past (also by the fact that you need to both create and migrate, which may seem a bit strange).
So no solutions for now, but I suggest we keep this issue around to see what we can do about it in the future.

I think one thing that can be done is to make "create" imply "migrate" (not the other way around though).

That would be nice. From there  not sure how we could warn the user that running it would be needed... at the very least, it appears like it would ne a lot of untrustworthy code.

Can Mage know from the config if we have vaults that are supposed to be there and are not? On start up say throw a 'VaultException' vault unreachable or something similar?

It could. But I suspect it would take a fair bit of code to make this happen. Either:

Each vault backend throws that error if a db/bucket/whatever is not found
Each vault expose some exists method, which would be called during initialization and which some part of the core initialization code would be able to throw an error on.

Removed the milestone for now. This is taking more time to solve, unfortunately, but it is not forgotten.


Any english version via NPM or something ?

Good job so far guys, thanks for a flexible chart library. 👍
But I just was wondering one thing about any official english version
via npm install echarts and import echarts from 'echarts' or something ?
PS: I see its chinese texts and axis-id ��-�0 and more.

Thanks! We will think about publishing a english version

Is there any progress on this?
At least if no English version is explicitly published on NPM or somewhere, we should make this couple of strings to be translatable by Translation files, this actually also makes more sense.

I can see that there is a langEN.js but no way to really use in when using npm that I can see. Any help or  update is very much appreciated!

import echarts from 'echarts/dist/echarts-en';


js: Create mechanism to track duplicate in-flight requests.

In Zulip we often have this flow:

web user clicks on an action (such as picking a reaction emoji)
server process request
server sends an event
event handling code does the UI response

In these scenarios, especially for users with slow connections, we can get races where the user tries to re-do the request before the in-flight request gets fully processed.  This causes us to spam the server in the best case, and in the worst case we can bad UI experiences or spammy error reporting.  (The emoji reaction scenario possibly led to us getting blueslip errors from impatient users clicking twice and violating our assertion that the emoji had not yet been added.)
We should create a modules called in_flight.js to deal with these scenarios.  An example API would be as below.
function send_add_reaction(msg_id, emoji) {
    var fingerprint = in_flight.add_reaction_fingerprint({
        message_id: message_id,
        emoji_name: emoji_name
    });

    if (in_flight.pending(fingerprint)) {
        return;
    }

    in_flight.start(fingerprint);

    var url = '/json/messages/' + message_id + '/emoji_reactions/' + emoji_name;
    channel.post(...);
}

function handle_add_reaction_event(event) {
    if (people.is_my_user_id(event.user_id) {
        fingerprint = in_flight.add_reaction_fingerprint({
            message_id: event.message.id,
            emoji_name: event.emoji.name
        });
        in_flight.clear(fingerprint);
    }
    // do real work
}

This is a mildly advanced project.  The amount of code to make this happen will be relatively small, but we'll want somebody who can design a good API for this, and we'll want extensive unit testing.

If we implement this for reactions as our first experiment, then we should be able to upgrade blueslip warning to a blueslip error.  Look for #4295 in the code, and you'll see a comment explaining that.

@zulipbot claim

The way this is set up would be kind of not great from the perspective that the objects would have to be deep compared since they'd be different objects with the same contents.

I'm closing this as non-actionable, since I think most folks will view the extra complexity here as being possibly as risky as double-sends, and I haven't heard tons of bug reports that seem to be a symptom of this.


feat(linter) add fixer to prefer-set-size

#5149  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @camc314 and the rest of your teammates on  Graphite


How to build exe from source code

i want to build my own exe with the source code, how to do that ?

Hello, my name is zlElo.
You don't have to build an own .exe file! You find all installers for your System/OS in the Releases. The newest Release is the Version 1.8.1, here is the Link:
https://github.com/Devsfy/wiregui/releases/tag/1.8.1
I hope I can help you :)

I wanna build it from source but npm output shows critical vulnerabilities

For which OS?

Windows 11

Can you help me compile? Because i want to add autoconnect feature and custom gui... is this an electon app?

Which version of node do I need?

Run the comments below and update all, if you have some packages they are older than others, you might get some errors

Here is the output after running commands you posted

Hm. You should check your package.json and version up if needed.

Like how... i updated all its missing some plugins idk im not electron dev

I'm a python dev :) But whatever. Have you tried to run 'npm audit fix'?

There are some big issues, but no fixes. I think the problem is, that the project is dead.

Nvm thx for help

you should be able to generate a .exe running
yarn install
yarn make

the output should be in Project/out/make/squirrel.windows/x64/wiregui-x.x.x Setup.exe
it's been a while since i last used wireguard, that's why there was no more updates

hey @zlElo, i see that you're very active in many issues here, drop me a message if you ever have interest in maintaining wiregui, I don't need to use wireguard anymore so it's hard for me to keep updating it

Hi @wuzi thanks for your message :) Thank you for the great opportunity to continue such a project, but TypeScript isn't my programming language… I'm a python programmer and I don't have TypeScript skills. And unfortunately I don't have time to learn it either. But thanks again for this chance.
Greets


Any link to download localdata directly (direct link)?

Sorry, i have bad internet connection to download localdata directly from master duel app. Some body know where i can download that folder directly? (google drive link maybe)
Thanks.

You're probably not going to find anyone with the latest data uploaded. They do a couple of ~100mb updates a month as well so you'd need to be able to download/update in some capacity.


[BUG] no themes installed and no configs is found

Describe the bug
A clear and concise description of what the bug is.
idk if this is default behaviour but:
using the aur git failed
aur helper failed
installed with cargo
no macchina dir in .config
To Reproduce
Steps to reproduce the behavior:
1.fail insstall with aur and git
2.install with cargo
3.macchina
4.check the themes dir only to see it doesnt exist and inst prepopullated with the necessary files (if that is the default behaviour)
Expected behavior
A clear and concise description of what you expected to happen.
well install goes smoothly. ready to make and edit themes with the macchina dir and polluted with the files
Screenshots
If applicable, add screenshots to help explain your problem.
macchina --doctor output
Add a screenshot or copy and paste the output of --doctor if an element you're supposed to be seeing isn't showing up.
Let's check your system for errors... Here's a summary:
**```
We've collected 18 readouts, including 3 failed read(s) and 0 read(s) which resulted in a warning.
Readout "OperatingSystem" failed with message: This metric is not available on this platform or is not yet implemented by libmacchina.
Readout "WindowManager" failed with message: Unknown window manager.
Readout "LocalIP" failed with message: Unable to get local IPv4 address.
**System Information**
You don't have to provide this information if you're not comfortable doing so, but it'll help us solve the issue a lot faster.
 - Distribution: [`EndeavourOS`]
 - Desktop Environment [Hyprland]
 - Operating System [Linux]
 - Terminal [Kitty]
 - Macchina's version [6.1.8]

How did you install it from the AUR? Can you attach the error output?
macchina does not create a config.toml nor any themes for you by default. You should assemble it yourself by reading the manual or manually download and customize the provided configuration and themes found in the repository.
I'm closing the issue because it's a non-issue from our perspective. If you're still having issues with downloading macchina from the AUR, please open another issue or rename this one to better fit the description.


Clarify treatment of endGroup in dart2js parser

The dart2js parser uses several constructs on the form someToken.endGroup.foo for some selector foo where it may or may not be guaranteed that someToken.endGroup is non-null. If it is guaranteed that someToken.endGroup is non-null (in particular when someToken is known to be an OPEN_PAREN_TOKEN) then some null checks can be removed, and if it may be null then some extra checks seem to be needed.

The scanner ensures that endGroup is always non-null, even if there's an error.

Well, unless you're looking at:
a < 2


docs: config db updates

Pull Request Test Coverage Report for Build 870672396

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 17.663%

Totals

Change from base Build 863939919:
0.0%

Covered Lines:
2023

Relevant Lines:
11820

💛  - Coveralls


[Subtask] support catalog pre event for Gravitino server

Describe the subtask

add corresponding CatalogPreEvent
generate pre-event in CatalogEventDispatcher
add test in TestCatalogEvent
add document in gravitino-server-config.md

Please refer to the implemetation of table pre event in #5539
Parent issue
#5317

Can be assigned to me.

@sunxiaojian , done, thanks


Setting ghostClass by drag target instead of drag source

This is a follow up to this Vue.Draggable issue.
The problem arises in situations where there are multiple groups of draggables with different styles. Imaging two groups, one with style A, the other with style B. There are two ways to model the ghostClass:

Without a ghostClass, dragging items within each groups works fine (ghost has correct style), but dragging from one group to the other will result in a ghost which does not fit to the target group.
Defining cross ghost classes (ghostClass of group A => style B and vice versa) results in correct ghosts when dragging from one group to the other, but then dragging within a group has the wrong ghost.

A possible enhancement to handle such use cases would be to let the drag target define the ghostClass instead of the drag source. In fact, in most use cases I can come up with, there is no necessity to let the source control the ghost, and giving control to the target would always be preferred. So the question is if the behavior could just be switched or if both modes should be supported.
Here are some JSFiddles to illustrate the problem (use case: dragging between a horizontal and vertical layout):

No ghostClass
Cross ghostClass

I have the same problem when I drag items from a group to another with different styles: the source group has some margin between items and the target has not. If I use no ghost class the margin is applied to the ghost when I am over the target. If instead I set the ghost class to force the target style, then the target style is applied even when the item is still in the source group. Is there any workaround or fix?


Write tests

What
Need to write tests for the components.
Why
Testing is a must.
How

Use Enzyme (+ mocha)
Introduce at least basic testing scenarios (will be listed below).

Test scenarios
Below are the test scenarios for Enzyme tests.
Basics

[ ] FormProvider renders with correct default (fallback) props.
[ ] Form renders with correct default (fallback) props (rules, messages)
[x] Form grabs the rules and messages from FormProvider properly
[x] Form can be serialized manually
[x] Form can be validated manually
[ ] Field renders with correct default (fallback) props
[ ] Custom field component is registered properly within the parent form
[x] Fields wrapped in Field.Group are registered properly within the parent form
[ ] Custom field components wrapped in Field.Group are registered properly within the parent form

Validation

[ ] Empty optional field without any rules.
[ ] Filled optional field with rule.
[ ] Empty required field without any rules.
[ ] Filled required field without any rules.
[ ] Filled required field with rules.
[ ] The same for custom styled fields

Update

Installed mocha and chai
Added npm test, added npm test to prepublishOnly hook
Wrote basic test to ensure library exports are fine

Update

Provided unit tests for fieldUtils method, except of validation ones
Provided some minor adjustments of fieldUtils methods (i.e. arguments accepted/passed)

Update

Provided tests for validateSync

I will continue writing utility tests, only async validation tests left to test fieldUtils.
Also, as a part of my change, I will split validation tests into separate scenarios, as this makes them easier to debug and see what's not working.

Update
#96 added tests for fieldUtils.validateAsync.

Prepared the basics for React unit tests under #98. Also, provided some tests for Field.Group as an example under the same pull request.

Update

Form manual serialization
Form manual validation

The following tests are added under #106.

Update

connectField properly registers the custom field
connectField propagates necessary native Field props to the custom field component

Merged under #107.

Update

connectField properly register custom field component within Field.Group

Implemented under #108. Now all basic tests at the moment are completed.

All the mentioned validation scenarios were covered with the merge of integration tests.
Writing unit tests is still a must, the guidelines and step-by-step examples were merged in the documentation under Developers > Testing. This issue is no longer relevant, closing.


add an example Notebook.

Can you please add an example notebook demonstrating the use of the library on UCR data and on a CUSTOM dataset?.

Hey, thank you for the comment! I added an additional code file that uses the "Worms" dataset from UCR, found here https://www.timeseriesclassification.com/description.php?Dataset=Worms.
The only change required for univariate datasets is to transform them from the 2-D format (samples, timesteps) to the 3-D format (samples,1,timesteps). Moreover, since there is only one channel, LightWaveS will be executed only on 1 MPI node. Other than that, the process is similar.
Can you elaborate on the custom dataset part? As long as the dataset is in 3-D numpy format (samples,channels,timesteps) the algorithm should work normally.
I hope this helps!

Can you please add an example notebook demonstrating the use of  MAFAULDA dataset.I'm a beginner.So I'm not sure I can replicate your program


Do not support websocket now?

In the history of the git:
8917796 Turn off web sockets
In the code:

Yes, websockets needs rework. I'll put it in a list

@soopsio enabled in https://github.com/VolantMQ/volantmq/pull/141


Max disk cache size restrictions

Hey - a lot of our users have uninstalled our app because it was taking too much disk space within a day or two of being downloaded.
I checked and for active users, 100MB-200MB of images/day is not unheard of. Unfortunately, they linger on in the cache and after a few days their app is taking up 1GB of space and they delete it.
Is there a way to:
1- Check current FFImageLoading disk cache size?
2- Delete the least recently used N files?
I can set diskduration to 1 day but it means that moderately active users (i.e. if they don't use the app every day) will get cache misses all the time.

@patook

1- Check current FFImageLoading disk cache size?

All files are in one directory. Those folders by default: https://github.com/luberda-molinet/FFImageLoading/blob/master/source/FFImageLoading.Shared/Cache/SimpleDiskCache.cs#L55-L63

2- Delete the least recently used N files?

Reading CreationTimeInUTC attribute. You can remove files which you don't want to use cache anymore.
Filenames are created like this: `{hashed key}.{cache validity duration in seconds}

Look here: https://github.com/luberda-molinet/FFImageLoading/blob/master/source/FFImageLoading.Shared/Cache/SimpleDiskCache.cs#L212-L217
It would be a nice feature to add

CurrentDiskCachePath property in config file
MaxDiskCacheSize property

+1 for this :)

Disk cache cleaning routine is here: https://github.com/luberda-molinet/FFImageLoading/blob/master/source/FFImageLoading.Shared/Cache/SimpleDiskCache.cs#L230-L251

Hi @daniel-luberda
Is it actual issue?)
I watched code and noticed, that there are these properties :)

Setting a maximum disk cache size, and removing the least recently used to make room for new images would be an excellent feature to have.

https://github.com/luberda-molinet/FFImageLoading/issues/859


OpenTabletDriver-<IP_ADDRESS> - Dotnet SDK 6.0.36 is EOL, please use 8.0 (LTS) or 9.0 (Current)

Describe the bug
home manager switch refuses to evaluate, since dotnet-runtime-6.0.36 is marked as insecure
Steps To Reproduce
Steps to reproduce the behavior:
HomeManager Config:
{ config, pkgs, ... }:

{
  home.packages = [
    pkgs.opentabletdriver
  ];
}

home-manager switch
error: Package ‘dotnet-runtime-6.0.36’ in /nix/store/cv1ra2falylwgap7q9p501mn8shyg1b1-nixos/nixos/pkgs/development/compilers/dotnet/build-dotnet.nix:212 is marked as insecure, refusing to evaluate.

Expected behavior
OpenTabletDriver should use 8.0 (LTS) or 9.0 (Current) version of dotnet-runtime instead of permitting old versions as an exception if possible
Screenshots
No screenshots, just terminal output :)
Additional context

The source file in question should be
Lines 35, 37:
  dotnetInstallFlags = [ "--framework=net6.0" ];
  dotnet-sdk = dotnetCorePackages.sdk_6_0;

Metadata

 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.63, NixOS, 25.05 (Warbler), 25.05beta712559.4633a7c72337`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.10`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Notify maintainers

@gepbird
@thiagokokada
Note for maintainers: Please tag this issue in your PR.

Add a :+1: reaction to issues you find important.

Fixed by: https://github.com/NixOS/nixpkgs/pull/360389.


Mark s_get_executable_path as static, fixes #729

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

Having the latest clang in CI seems like a good idea after merging this.

Applied in https://github.com/awslabs/aws-c-common/pull/770


Add equality operators to SqlStatement class

Fixes #107

This change is

We talked with Scott offline about this PR. But I added him to this PR anyway to make sure he saw it.

Alright, I'll wait for LGTM from @scotthart then!

@scotthart Thanks! Merging


Update material-ui version

Do you think it will be relevant to update material-ui version to 0.15.2 to get update made on TextField and SelectedItem component ?

Fixed in v4.0.0.


[FLINK-8181] [kafka] Make FlinkFixedPartitioner insensitive to topic rescaling

What is the purpose of the change
This PR fixes a behavioral regression caused by 9ed9b68397b51bfd2b0f6e532212a82f771641bd.
In that commit, the new FlinkFixedPartitioner no longer returns identical target partitions once a target topic is rescaled.
With this PR, the FlinkFixedPartitioner returns identical target Kafka partitions for a given target Kafka topic when rescaling happens. A cache is maintained in the partitioner to remember the determined target partition for each target topic, calculated at the time of the topic's first appearance at the partitioner.
Brief change log

Make the FlinkFixedPartitioner insensitive to topic rescaling
Add new test FlinkFixedPartitionerTest#testIncreasingPartitions().
Minor hotfix to properly use independent partitioner instances in all tests of FlinkFixedPartitionerTest.

Verifying this change
Covered by new test FlinkFixedPartitionerTest#testIncreasingPartitions(). The test fails without the fix.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): no
The public API, i.e., is any changed class annotated with @Public(Evolving): no
The serializers: no
The runtime per-record code paths (performance sensitive): yes
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: no
The S3 file system connector: no

Documentation

Does this pull request introduce a new feature? no
If yes, how is the feature documented? n/a

I don't quite understand this bug and fix. Any failure/recovery in Flink will basically result in a loss of the cache. That means this does not give you any added guarantees here - only stickyness between recoveries.
I would follow @aljoscha's advise and check what Kafka's own behavior for this is. The fact that Flink switches the partition when Kafka adds more topics may also be considered correct. Making this stateful and sticky to its first-ever partitioning scheme means also that when scaling Kafka out, one needs to savepoint/restore the Flink job and tell it to not pick up previous state. Quite tricky as well.
Is this an actual user-reported problem?
If this code is added, it needs to be performance optimized:

map.contains() followed by map.get() is an antipattern (can we guard for that via spotbugs?) - two hash map accesses. Just do map.get() and check for null, that is only one hash map access.
Because a very common case will be having one topic, the code should be optimized for one topic, meaning memoization if the latest value/access to save the hashmap lookup when the method is always invoked with the same string object.

This is not an actual user-reported problem.
I considered this a regression due to the fact that the original FlinkFixedPartitioner implementation did not switch partitions at all between recoveries, even in the case of scaling out Kafka.
Let me explain a bit the history of the fixed partitioner with a bit of code (sorry for not have provided this information earlier). The previous implementation: https://github.com/apache/flink/blob/release-1.2/flink-connectors/flink-connector-kafka-base/src/main/java/org/apache/flink/streaming/connectors/kafka/partitioner/FixedPartitioner.java.
As you can see, the original implementation of the fixed partitioner already has the following problems:

State of the partitioner (i.e., the targetPartition) is lost on failure, and re-determined on restore.
The API for the partitioner itself is problematic, in the case of multiple topics. Please see FLINK-6288 for a description on that.
It, however, does have the guarantee that provides stickiness between recoveries.

Now, the issue this PR is fixing occurred when fixing problem 2. in 9ed9b68.
The FlinkFixedPartitioner no longer provided stickiness between recoveries; the partitioner will switch partitions in the case of scaling out Kafka.

After some offline discussion with @aljoscha, we decided to leave the FlinkFixedPartitioner as it is, and close this PR. I personally also agree with this mainly due to:

However, if we were to re-visit the semantics of the fixed partitioner, it could be that it actually makes more sense that the fixed partitioner switches partition on scaling out Kafka.
Since 9ed9b68 is actually part of Flink 1.3 already, and we haven't received any complaints so far on the changed semantics, it definitely is arguable that we don't really need to apply this PR fix at all.

Thanks, +1


CoreResourceReader query

We need to be able to query CoreResourceReader for resources with particular interpretation or ends of the association.
Possibilities are:

Return all resources with arbitrary predicate and object of given value
Let user specify RDF predicate and object
Let user query by example using model objects

Resolved by introducing a concept of views.
See https://github.com/mff-uk/dataspecer/blob/e541a496d9721cb650e0d03ee05d082e750ad0b6/packages/core-v2/src/semantic-model/async-queryable/queries.ts#L8


Adding org login merged

replacing PR 359

the new list of bills with upcoming hearings on the home page still needs the correct filter.  once this code is merged - @sashamaryl will add the hook for useUpcomingBills()

@jkoren could you link the issues this PR addresses? Under "Development" to the right of this. Thanks!

yes, I just did


[Improvement]: Migrate JS Library Icons to Use Internal CDN Instead of Third-Party URLs

Is there an existing issue for this?

[X] I have searched the existing issues

Summary
Within the JS Library feature of our application, we currently rely on third-party URLs to source icons for various JavaScript libraries. This dependency on external resources can lead to issues such as broken icons and inconsistent user experiences if those URLs become unavailable.
Proposed Solution:
Migrate all JS Library icons to be hosted on our internal CDN to ensure their consistent availability and performance.
Update the icon fields in the JS Library configurations to point to the new CDN-hosted versions.
Benefits:
Ensures that icons for JS libraries are always available and not dependent on external services.
Potentially faster icon loading times by reducing reliance on third-party hosts.
Enhanced security and greater control over the assets used in our application.
Why should this be worked on?
This should be worked on to ensure reliability, performance, and security. By moving JS Library icons to our internal CDN, we eliminate the risk of broken icons from third-party outages, reduce load times, and maintain better control over our resources. This leads to a more consistent and dependable user experience.

Starting contributing to my first open source project with this repo - attempt #35560

@DivyDeshmukh thanks for you interest in contributing to appsmith!
This particular issue may not be suitable, because we will need to get the relevant icons, etc. Can I encourage you to take a look at the issues with label Inviting contribution?
Here's the filter: https://github.com/appsmithorg/appsmith/issues?q=is%3Aopen+is%3Aissue+label%3A"Inviting+Contribution"

@DivyDeshmukh thanks for you interest in contributing to appsmith! This particular issue may not be suitable, because we will need to get the relevant icons, etc. Can I encourage you to take a look at the issues with label Inviting contribution? Here's the filter: https://github.com/appsmithorg/appsmith/issues?q=is%3Aopen+is%3Aissue+label%3A"Inviting+Contribution"

Ok thanks for informing me.

hey, is the issue currently open?
I can help in solving the issue.


Confirm and stabilise preset names

Can we expand the abbreviations in the preset names? eg. headlineBoldItalic50 instead of headlineBldIta50.

Akemi has explained the reason for the abbreviations is due to restricted width in Figma's UI, but is discussing using the expanded names with the rest of the DS team. We'll go ahead with the expanded names in the code for now, but can always rename later if needed.


Remove the selected number of characters from the status bar

This is basically a duplicate of https://github.com/microsoft/vscode/issues/932 / https://github.com/microsoft/vscode/issues/15344 / https://github.com/microsoft/vscode/pull/17955 / https://github.com/microsoft/vscode/issues/21628 / https://github.com/microsoft/vscode/pull/87311, and maybe others that I missed.  All of those issues have been closed and locked, preventing any further discussion.
The stance seems to be that the number of selected lines will not be added to VS Code because that could be done by an extension.  That's fair, so I'd instead like to request that the number of selected characters be removed from the status bar.

Removing it would be consistent with not showing the selected number of lines.

I rarely care about the number of selected characters, and it's occupying valuable space on my status bar that instead could be used for, say, an extension showing the selected number of lines.

The current text shows "(N selected)".  Selected what?  What are the units?  Grapheme clusters?  Unicode code points?  UTF-16 code units?  UTF-8 code units/bytes?  Does it depend on the encoding of the open file?  This is so ambiguous and confusing that IMO it's better to just omit it.  Also see https://github.com/microsoft/vscode/issues/87626 where this was misinterpreted to mean the selected number of lines.

Interestingly in multiple cursor state, it actually tell you how many characters have been selected.

I wonder if you can do the reverse, disable the built-in cursor position display, and replace it with some extension.

@alexdima Since you championed using an extension for selected line counts in the referenced issues, perhaps you can champion this one too?


README calls out problems starting from Kafka 2.2.

To prevent giving the false impression that it is safe to use Ruby client with those clusters.

I didn't know it was unsafe to use ruby-kafka with those versions? Is there a reproducible example of that? The linked fluentd issues seems very superficial.

Sorry, just anecdotes. Someone might want to run a stress-test, but I don't have the bandwidth for it now.


Draft: Adding a full Updatable Live View for any renderable type

Type of changes

[ ] Bug fix
[x] New feature
[ ] Documentation / docstrings
[ ] Tests
[ ] Other

Checklist

[x] I've run the latest black with default args on new code.
[ ] I've updated CHANGELOG.md and CONTRIBUTORS.md where appropriate.
[ ] I've added tests for new code.
[x] I accept that @willmcgugan may be pedantic in the code review.

Description
I've been looking at ways to have live updating data table from rich. Whenever I used LiveRender it always faced any issues if something else was being logged.
So with that in mind I took what was there already from the Progress component and made a generalized Live Updating view. It allows for the component to be updated by the user with an update() function. It currently isn't threaded like Progress is, but could be expanded maybe with a LiveThreaded?
Limitations
If the render component is too large, then it will start too not fully clear any of the Renderable above the console view. I have messed around with creating a safe flag that will have it print "the terminal is too small" instead when this is true. I didn't want to add it here yet before getting feedback.
Showcase

Some gist examples

Will have to see about removing commits that came before these changes.


One-Way adds 'undefined' property value on object with no properties

I'm submitting a bug report
Although I am sure this is the expected behavior and my scenario might be an edge case.

Library Version:
1.6.0 (aurelia-framework 1.2)

Please tell us about your environment:

Operating System:
Windows 10

Node Version:
v8.9.4

NPM Version:
6.3.0

JSPM OR Webpack AND Version
webpack 3.12.0

Browser:
all

Language:
all

Current behavior:
When using one-way binding on an objects property in a view, that property is added to the object with a value an undefined when that object is created without any properties, which makes it feel like the view is updating my model (aka two-way).  See https://stackblitz.com/edit/aurelia-javascript-qekbtf?embed=1&file=src/app.js for an example.
The undefined value gets added here
Expected/desired behavior:

What is the expected behavior?
No property is added the object if it does not exist and the value is undefined

What is the motivation / use case for changing the behavior?
Using the example I provided: When canDeactivate runs I compare the initial foo to the current foo so I can warn users of any unsaved changes before navigating away. I not only compare property values, but property count too (i am using lodash.isequal). However, when a user goes to a view model and does nothing, then tries to navigate away, they receive my warning because the properties in the view have been added to my empty object. There are many ways I can work around this, and I have done that in my app. However, in my example I am using redux so i am expecting all state mutations to come from my reducer. There might not be a solution, but I wanted to address this before I moved on since it bothered me that something outside of my reducer was changing my object and that the change originated from the view in one-way binding.

The behavior you see is because that's how Aurelia observation works. Property interceptors need to be installed upfront in order to detect changes so it can work when you do this.foo.bar = 'random message'.

Thanks for the reply, and from debugging the code I could tell this was the expected behavior of the binding system. Maybe this is more of a documentation item since it can be the source of bugs in a state driven application that expects all changes to come from one function. Especially since Aurelia has the aurelia-store plugin, which includes documentation on the Redux DevTools. Using the Redux DevTools tools was my original source of confusion because it always showed an empty object since my state was being changed from the outside. I only figured it out by having a logging middleware log out all the actions in my system.

The documentation part could always use some help. At the moment, how it works section (https://aurelia.io/docs/binding/how-it-works) covers high level perspective and is lacking part like this. Would be nice if you could help add some more 😉

Absolutely, I will work on that. Anything to help out.


Current celcius temperature is showing the fahrenheit value

Since the new update allowing to see the current value (nice!), I indeed see the value, but the fahrenheit one, even though it says C right beside of it.
I wonder if it has to do with the fact I am in Canada with the US config.
I'd love to PR a fix myself but am really unsure as to how to test this repo locally. Any help is welcome!

My gut feeling is this line returns a fahrenheit value. I'm not sure where that comes from though as my FGLair account is all set in celcius
Thanks!

Thanks @m4thieulavoie  this situation is similar to what I face in Australia.   My account is on the US server but I wanted Celsius displayed.  The way the config region works is it looks at the values 'cn' and 'eu" and chooses the China or Europe servers for logon.   Any other value defaults to the US server.  Therefore in Australia I use 'au' in the config and all works well, you woudl be able to test this theory by replacing 'us' with 'ca' in your config.
cn = https://ads-field.ayla.com.cn/apiv1/
eu = https://ads-field-eu.aylanetworks.com/apiv1/
else = https://ads-field.aylanetworks.com/apiv1/
climate:
  - platform: fglair_heatpump_controller
    username: !secret fglair_username
    password: !secret fglair_password
    region: 'ca'
    tokenpath: 'token.txt'

Oh that's rad, I didn't realize that region could take more values. That worked 💪 I might open a PR updating the docs to publicize the other possible values 👍