RadialSearch not returning correct number of neighbors

Thanks for this code Eric
The public method RadialSearch returns multiple neighbors when I pass the parameter as 1.
This method is not using the neighbors parameter properly, and is not returning the specified number of neighbors.  Looking at the code, it does an if test on this number, however the code is identical in the two if blocks and the number is not used anywhere.
Here is the code, note that the code is identical in the if statement blocks:
///
/// Searches for the closest points in a hyper-sphere around the given center.
///
/// The center of the hyper-sphere
/// The radius of the hyper-sphere
/// The number of neighbors to return.
/// The specified number of closest points in the hyper-sphere
public Tuple<TDimension[], TNode>[] RadialSearch(TDimension[] center, double radius, int neighboors = -1)
{
var nearestNeighbors = new BoundedPriorityList<int, double>(this.Count);
if (neighboors == -1)
{
this.SearchForNearestNeighbors(
0,
center,
HyperRect.Infinite(this.Dimensions, this.MaxValue, this.MinValue),
0,
nearestNeighbors,
radius);
}
else
{
this.SearchForNearestNeighbors(
0,
center,
HyperRect.Infinite(this.Dimensions, this.MaxValue, this.MinValue),
0,
nearestNeighbors,
radius);
}
        return nearestNeighbors.ToResultSet(this);
    }

Hi,
I had been hoping to use this but we found that the performance seemed to become very poor when we put it into the acceptance environment. It might be that we are simply not using it for the purpose it was designed so a quick summary.
We have a cloud of points in 3D space (so K=3) and we add them. All we need to know is if a point is within a radius of any point of the cloud. So we call  RadialSearch with an origin of the sought point and passing radius squared (another bug that the parameter is called redius and yet has to be radius squared) and a neighboors (sic) of 1.
We anticipated that passing in a count of 1 would return any point within the radius. Obviously this was our assumption and is wrong, it seems to ignore this parameter entirely and the implementation of the RadialSearch uses the neighboors parameter to switch between if ... and else ... but both ...'s are identical code.
However our biggest issue is that even for a cloud of only 800 points, this code is way outperformed by a simple linear search. I guess the purpose of this was to find any points within the radius, we just need a search for the first point, even if it is not the nearest.
I'll dig a little deeper and see if we can do something to get the performance where we need it to be.
Cheers, Nick

Hi again,
As I said in my previous remark, what I really want is not a list of all the neighbours ordered by distance but simply to know if there is a neighbour within the range even if that ultimately is not the nearest.
I see that in RadialSearch you are clearly looking for any points and you declare the bounded priority list as the size of the content. I was going to suggest a fix and then I noticed that hte NearestNeighbors method does what I want. It just declares a bounded priority list of the size of the neighbours parameter. This is probably what I need to get the performance up. If I call this with 1 then I just get the first point encountered.
Sorry ignore my ramblings earlier and thanks for this library.

I should explain what I mean by the performance of a linear search is better. Remember we only want to know the existence of a point. If we query a point that is outside the cloud entirely then the KDTree is way quicker than the linear search because the linear search has to search all points.
However once I started searching for points that are within he cloud, it seems that the KDTree is far far slower than the linear search. Now I realise it is a slightly unfair comparison because you are finding me the closest within a radius and my liner search simply accepts the first match. However if I specify a parameter asking the search to return me 1 point then I'd expect KDTree to be faster than a linear search as that is the purpose of the index. I mean I don't actually care if it is the closest but even if you were returning the closes I'd expect you to be quicker.
This suggests that either I've done something wrong in my usage (profiling shows I'm setting up the index once and then hitting it millions of times causing SearchForNearestNeighbours to be called recursively and fanning out) or perhaps because of the relative size of the radius supplied, too many points are being considered and ordered.
I am sure that give that the number of neighbours is being ignored, that this has something to do with it but when I created a version that uses NearestNeighbours but with a restricted max radius, it too was slow.
Ah well another day of digging :-)

Just in case anyone comes across it in the future..
`///
/// Searches for the closest points in a hyper-sphere around the given center.
///
/// The center of the hyper-sphere
/// The radius of the hyper-sphere
/// The number of neighbors to return.
/// The specified number of closest points in the hyper-sphere
public Tuple<TDimension[], TNode>[] RadialSearch(TDimension[] center, float radius, int neighboors = -1)
{
var nearestNeighbors = new BoundedPriorityList<int, float>(neighboors < 1? this.Count : neighboors);
if (neighboors == -1)
{
this.SearchForNearestNeighbors(
0,
center,
HyperRect.Infinite(this.Dimensions, this.MaxValue, this.MinValue),
0,
nearestNeighbors,
radiusradius);
}
else
{
this.SearchForNearestNeighbors(
0,
center,
HyperRect.Infinite(this.Dimensions, this.MaxValue, this.MinValue),
0,
nearestNeighbors,
radiusradius);
}
        return nearestNeighbors.ToResultSet(this);
    }`


Only work for some languages

Currently, If anycode is installed, it takes precedence over other extensions like Python etc.
Is there a way to use anycode for C++/Rust/Go (languages that I don't use enough to justify a full blown extension) but keep using Python/Pylance for python files.

Yes, there is the anycode.language.features-setting which can be configure per language, e.g this setting.json snippet is how you turn everything off for python
"[python]": {
        "anycode.language.features": {
            "completions": false,
            "definitions": false,
            "references": false,
            "highlights": false,
            "outline": false,
            "workspaceSymbols": false,
            "diagnostics": false
        }
    },


Backtrace: make _stdlib_demangleName part of all platforms

This is an internal function needed to implement the backtrace
interface.  Simply expose it on all platforms.  This also makes the
interface build on Windows.

@swift-server-bot add to allowlist

@swift-server-bot test this please

@compnerd implementation only does not exit on 5.0

Well, I think that we can require Swift 5.4+ on Windows (SPM requires that).


Getting error every time while parsing raw request file

NOTE : I am using M1 Architecture.
[11:27:04] [INFO] parsing HTTP request from 'raw.txt'
Traceback (most recent call last):
File "/opt/homebrew/bin/ghauri", line 33, in
sys.exit(load_entry_point('ghauri', 'console_scripts', 'ghauri')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mrunalchawda/tools/ghauri/ghauri/scripts/ghauri.py", line 443, in main
resp = ghauri.perform_injection(
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/mrunalchawda/tools/ghauri/ghauri/ghauri.py", line 161, in perform_injection
url = req.url
^^^^^^^
File "/Users/mrunalchawda/tools/ghauri/ghauri/common/utils.py", line 131, in url
url = f"{self.protocol}://{self.host}"
^^^^^^^^^^^^^
File "/Users/mrunalchawda/tools/ghauri/ghauri/common/utils.py", line 164, in protocol
referer = self.headers.get("Referer")
^^^^^^^^^^^^
AttributeError: 'HTTPRequest' object has no attribute 'headers'

I think that's related to your python version, which version are you using?

@chawdamrunal I cannot reproduce this. @mastercho might be right you should set the default Python version to 3 instead if 2.

The issue must be resolved for you as I don't see any further comments, closing this issue.


Fix for #101

Extract cluster predictions using predict rather than labels_.
Expanding test coverage.

Hello @sauln, Thank you for submitting the Pull Request !

In the file kmapper/kmapper.py, following are the PEP8 issues :

Line 44:51: W291 trailing whitespace
Line 50:9: E303 too many blank lines (2)
Line 115:17: E722 do not use bare except'
Line 119:9: E722 do not use bare except'
Line 270:59: W291 trailing whitespace
Line 342:1: W293 blank line contains whitespace
Line 343:63: W291 trailing whitespace
Line 344:13: E128 continuation line under-indented for visual indent
Line 344:46: W291 trailing whitespace
Line 345:13: E128 continuation line under-indented for visual indent
Line 346:1: W293 blank line contains whitespace
Line 372:1: W293 blank line contains whitespace
Line 376:1: W293 blank line contains whitespace
Line 454:60: W291 trailing whitespace
Line 485:77: W291 trailing whitespace

In the file test/test_mapper.py, following are the PEP8 issues :

Line 15:1: E302 expected 2 blank lines, found 1
Line 98:36: W291 trailing whitespace
Line 99:13: E128 continuation line under-indented for visual indent
Line 103:1: E303 too many blank lines (3)
Line 139:111: E231 missing whitespace after ','

In the file test/test_visuals.py, following are the PEP8 issues :

Line 27:1: W293 blank line contains whitespace
Line 28:13: W291 trailing whitespace
Line 42:1: W293 blank line contains whitespace
Line 48:8: W291 trailing whitespace

Do see the Hitchhiker's guide to code style

Codecov Report

Merging #109 into master will increase coverage by 2.72%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #109      +/-   ##
==========================================
+ Coverage   87.55%   90.27%   +2.72%
==========================================
  Files           6        6
  Lines         434      432       -2
  Branches       93       92       -1
==========================================
+ Hits          380      390      +10
+ Misses         36       28       -8
+ Partials       18       14       -4

Impacted Files
Coverage Δ

kmapper/kmapper.py
88.55% <100%> (+4.94%)
:arrow_up:

Continue to review full report at Codecov.

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


change mp size 后，训练会出现 size missmatch 的错误

下载100000模型，使用CPM-1-Generate/change_mp.py 将其转为16份，mpsize设置为16去训练，会出现 size missmatch 的错误，感觉应该是模型切分方式与训练脚本不同，请问怎么解决方便？
<IP_ADDRESS>:   File "/CPM/CPM-2-Finetune-master/finetune_cpm2.py", line 790, in main
<IP_ADDRESS>:     model, optimizer, lr_scheduler = setup_model_and_optimizer(args, tokenizer.vocab_size, ds_config, prompt_config)
<IP_ADDRESS>:   File "/CPM/CPM-2-Finetune-master/utils.py", line 231, in setup_model_and_optimizer
<IP_ADDRESS>:     args.iteration = load_checkpoint(model, optimizer, lr_scheduler, args)
<IP_ADDRESS>:   File "/CPM/CPM-2-Finetune-master/utils.py", line 497, in load_checkpoint
<IP_ADDRESS>:     checkpoint_name, sd = model.load_checkpoint(
<IP_ADDRESS>:   File "/opt/conda/lib/python3.8/site-packages/deepspeed/runtime/engine.py", line 1452, in load_checkpoint
<IP_ADDRESS>:     load_path, client_states = self._load_checkpoint(load_dir,
<IP_ADDRESS>:   File "/opt/conda/lib/python3.8/site-packages/deepspeed/runtime/engine.py", line 1487, in _load_checkpoint
<IP_ADDRESS>:     self.load_module_state_dict(state_dict=checkpoint['module'],
<IP_ADDRESS>:   File "/opt/conda/lib/python3.8/site-packages/deepspeed/runtime/engine.py", line 1389, in load_module_state_dict
<IP_ADDRESS>:     self.module.load_state_dict(state_dict, strict=strict)
<IP_ADDRESS>:   File "/CPM/CPM-2-Finetune-master/model/distributed.py", line 90, in load_state_dict
<IP_ADDRESS>:     self.module.load_state_dict(state_dict, strict=strict)
<IP_ADDRESS>:   File "/CPM/CPM-2-Finetune-master/fp16/fp16.py", line 71, in load_state_dict
<IP_ADDRESS>:     self.module.load_state_dict(state_dict, strict=strict)
<IP_ADDRESS>:   File "/opt/conda/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1223, in load_state_dict
<IP_ADDRESS>:     raise RuntimeError('Error(s) in loading state_dict for {}:\n\t{}'.format(
<IP_ADDRESS>: RuntimeError: Error(s) in loading state_dict for EncDecModel:
<IP_ADDRESS>: 	size mismatch for lm_head.weight: copying a param with shape torch.Size([6560, 1024]) from checkpoint, the shape in current model is torch.Size([1640, 4096]).
<IP_ADDRESS>: 	size mismatch for encoder.blocks.0.self_attn.self_attn.project.weight: copying a param with shape torch.Size([3072, 1024]) from checkpoint, the shape in current model is torch.Size([768, 4096]).
<IP_ADDRESS>: 	size mismatch for encoder.blocks.0.ff.dense_relu_dense.wi_0.weight: copying a param with shape torch.Size([2560, 1024]) from checkpoint, the shape in current model is torch.Size([640, 4096]).
<IP_ADDRESS>: 	size mismatch for encoder.blocks.0.ff.dense_relu_dense.wi_1.weight: copying a param with shape torch.Size([2560, 1024]) from checkpoint, the shape in current model is torch.Size([640, 4096]).
<IP_ADDRESS>: 	size mismatch for encoder.blocks.1.self_attn.self_attn.project.weight: copying a param with shape torch.Size([3072, 1024]) from checkpoint, the shape in current model is torch.Size([768, 4096]).
<IP_ADDRESS>: 	size mismatch for encoder.blocks.1.ff.dense_relu_dense.wi_0.weight: copying a param with shape torch.Size([2560, 1024]) from checkpoint, the shape in current model is torch.Size([640, 4096]).
<IP_ADDRESS>: 	size mismatch for encoder.blocks.1.ff.dense_relu_dense.wi_1.weight: copying a param with shape torch.Size([2560, 1024]) from checkpoint, the shape in current model is torch.Size([640, 4096]).
<IP_ADDRESS>: 	size mismatch for encoder.blocks.2.self_attn.self_attn.project.weight: copying a param with shape torch.Size([3072, 1024]) from checkpoint, the shape in current model is torch.Size([768, 4096]).
<IP_ADDRESS>: 	size mismatch for encoder.blocks.2.ff.dense_relu_dense.wi_0.weight: copying a param with shape torch.Size([2560, 1024]) from checkpoint, the shape in current model is torch.Size([640, 4096]).
<IP_ADDRESS>: 	size mismatch for encoder.blocks.2.ff.dense_relu_dense.wi_1.weight: copying a param with shape torch.Size([2560, 1024]) from checkpoint, the shape in current model is torch.Size([640, 4096]).
<IP_ADDRESS>: 	size mismatch for encoder.blocks.3.self_attn.self_attn.project.weight: copying a param with shape torch.Size([3072, 1024]) from checkpoint, the shape in current model is torch.Size([768, 4096]).
<IP_ADDRESS>: 	size mismatch for encoder.blocks.3.ff.dense_relu_dense.wi_0.weight: copying a param with shape torch.Size([2560, 1024]) from checkpoint, the shape in current model is torch.Size([640, 4096]).
<IP_ADDRESS>: 	size mismatch for encoder.blocks.3.ff.dense_relu_dense.wi_1.weight: copying a param with shape torch.Size([2560, 1024]) from checkpoint, the shape in current model is torch.Size([640, 4096]).
<IP_ADDRESS>: 	size mismatch for encoder.blocks.4.self_attn.self_attn.project.weight: copying a param with shape torch.Size([3072, 1024]) from checkpoint, the shape in current model is torch.Size([768, 4096]).

可以参考CPM-1的修改MP的代码转换一下checkpoint。

可以参考CPM-1的修改MP的代码转换一下checkpoint。

感谢回答。我是直接用的CPM-1的修改MP的代码转换后出现的size 不匹配问题 。
你的意思是，CPM-1修改MP的代码只能作为参考，不能直接使用，还是要自己修改一下的是吗？


chore: adaptations for leanprover/lean4#3124

These are adaptations required for Leo's implementation of simprocs from leanprover/lean4#3124.
This is a PR to bump/v4.6.0. Before it can be merged we need to merge

[x] https://github.com/leanprover/std4/pull/496
[x] https://github.com/leanprover-community/aesop/pull/93
and then to update the lakefile so both dependencies point at the bump/v4.6.0 branches.

I've updated a number of Mathlib tactics to adjust to the new type signatures in the simplifier, and these changes need to be reviewed carefully.

[x] depends on: #9452
[x] depends on: #9453
[x] depends on: #9538
[x] depends on: #9539
[x] depends on: #9540
[x] depends on: #9542

!bench

Thanks :tada:
bors merge


Profile for New Registry UI

Right now, users with no Profile Picture displays a missing picture
Definition of done
Have a default profile picture that shows the initials of the user

Don't see the letters for now. But also projects too, maybe a backend bug:

For now the picture for Platform Services Test Account has 4 letters on the user picture.

Though in the current registry same account has two letters which is more readable:

Now the letters are shown correctly:
Private Zenhub Image


#320 disabled jacoco

@amihaiemil/z this pull request is too small, just 4 lines changed (less than 10), there will be no formal code review, see §53 and §28; in the future, try to make sure your pull requests are not too small; @amihaiemil/z please review this and merge or reject

Job gh:amihaiemil/docker-java-api#321 is not assigned, can't get performer

This job is not in scope


Failure to initialize linter-python-pep8 with Atom 1.15.0

linter-registry.js [sm]:144 [Linter] Error running Python Linter TypeError: Cannot read property 'getPath' of undefined(…)(anonymous function) @ linter-registry.js [sm]:144
Atom 1.15.0 on OSX Sierra 10.12.3

Same here


[Enhancement] Add ls_tablet_dir to script engine

Adds ls_tablet_dir to BE script engine.
This PR also adds the ability to invoke some shell commands(actually ls_tablet_dir uses this function), for easy debugging, cause it's dangerous to expose service env, so it's disabled, dev can uncomment binding code to enable this.
mysql> admin execute on 10006 'System.print(StorageEngine.ls_tablet_dir(23007))';
+---------------------------------------------------------------------------------------------------------+
| result                                                                                |
+---------------------------------------------------------------------------------------------------------+
| total 12                                                                                |
| drwxrwxr-x 2 decster decster 4096  6月  6 16:40 .                                                       |
| drwxrwxr-x 3 decster decster 4096  6月  6 16:40 ..                                                      |
| -rw-rw-r-- 1 decster decster  419  6月  6 16:40<PHONE_NUMBER>00001fc5474b383bd1ba6371672d1de58c74a0_0.dat  |
+---------------------------------------------------------------------------------------------------------+
4 rows in set (0.01 sec)

What type of PR is this:

[ ] BugFix
[ ] Feature
[x] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto-backported to the target branch

[x] 3.0
[x] 2.5
[ ] 2.4
[ ] 2.3

@Mergifyio backport branch-3.0

@Mergifyio backport branch-2.5


Snakemake exercise is possibly not clear enough

Feedback after exercise

In snakemake exercise, second bullet point the (touch data/sierra.txt) is in the wrong place. Maybe helpful to add more of the commands in the exercise, if the point of the exercise is to understand whats happening. In my group also many people were very confused what they should observe in the exercise. Also having to scroll up and down ( also by the instructor during demonstration) was seen as very confusing and almost impossible to follow.

I would suggest KISS example first: only one or two input files, and spend 5 minutes to understand graph concept with simple two file case and what means changing timestamp of a file. Some of our team members didn't know what 'touch' does to file and snakemake. After the simple example, you could jump to the current material, because then there is basic understanding when snakemake performs something and how graph can be read.


Uncaught Exception: Attempting to call a function in a renderer window that has been closed or released. Function provid

An uncaught exception was reported.
Info:
OS: win32
Arch: ia32
GPMDP Version: 3.0.1
Time: Thu Mar 24 2016 20:21:16 GMT 0000 (GMT Standard Time)
Error:
Attempting to call a function in a renderer window that has been closed or released. Function provid
Error: Attempting to call a function in a renderer window that has been closed or released. Function provided here: Object.<anonymous> (C:\Users\gamer\AppData\Local\GPMDP_3\app-3.0.1\resources\app\build\inject\GPMInject\interface\mouseButtonNavigation.js:8:8.
    at BrowserWindow.callIntoRenderer (C:\Users\gamer\AppData\Local\GPMDP_3\app-3.0.1\resources\atom.asar\browser\lib\rpc-server.js:201:19)
    at emitTwo (events.js:92:20)
    at BrowserWindow.emit (events.js:172:7)

This issue was created automatically inside the uncaughtException handler

Closing this automatically reported issue as a duplicate of #470


Update versions (1.1.10, 1.1.5)

Update versions (1.1.10, 1.1.5)
TSIA, doing this so we can package a new release!
I messed up v1.1.4 for typescript sorry

Do we need to do major/minor due to some of the bigger changes like output type, etc?


Unable to view logs on private repositories

Describe the bug
When attempting to view logs for a private repository, I get the following error message in VSCode after clicking the log button:
Error running command github-actions.workflow.logs: cannot open gh-actions://<my_organization>/<repo_name>/%234552476769%20-%20<action_name>?12360270249. Detail: Could not load logs. This is likely caused by the extension that contributes github-actions.workflow.logs.
I am logged into an account with organizational admin access both on VSCode and through the extension.
To Reproduce
Steps to reproduce the behavior:

Run a github action on a private repo inside an organization
Attempt to open logs

See error

Expected behavior
Logs should show up as they normally would
Extension Version
v0.25.3

Possibly a duplicate of https://github.com/github/vscode-github-actions/issues/15

Possibly a duplicate of #15

It may be caused by the same thing, but there's no telling since the original poster of #15 didn't include any reproduction steps in their description

Having same error, reproduction steps is exactly what he (OP) shows in printscreens

For me it seems https://github.com/github/vscode-github-actions/pull/115 fixed it.

Works with 0.25.5 :) Closing this


Uncaught (in promise) TypeError: vue__WEBPACK_IMPORTED_MODULE_0__.unref(...) is undefined

hello, i get this error when i delete files :
Uncaught (in promise) TypeError: vue__WEBPACK_IMPORTED_MODULE_0__.unref(...) is undefined

hello, i get this error when i delete files : Uncaught (in promise) TypeError: vue__WEBPACK_IMPORTED_MODULE_0__.unref(...) is undefined

I have the same problem, did you find a solution, or did you find another component?

It is highly possible the ajax returns an invalid response.
Can you provide what returns from the ajax request like:


raftstore: fix redundant heartbeat (#3864)

What have you changed? (mandatory)
cherry-pick #3864.

Please fix CI


del method is not called

Steps to Reproduce
If we have a class with __del__ method:
import sys

class Foo:
    def __init__(self, name):
        self.name = name

    def __del__(self):
        sys.stdout.write(self.name + '\n')

Running the following statements with CPython,
def func():
    foo = Foo('Foo 1')
    bar = Foo('Foo 2')
    del bar

func()
foo = Foo('Foo 3')
foo = Foo('Foo 4')

Expected behavior:
will get output
Foo 2
Foo 1
Foo 3
Foo 4

Actual behavior:
But running with IronPython, there's nothing output.

__del__ is called by dotnet finalizer. When the IronPython process ends and there's some objects in the finalizer queue, these finalizers won't be invoked.
So adding the following C# code at the end of PythonContext.Shutdown(),
GC.Collect();
GC.WaitForPendingFinalizers();

we could get partial output
Foo 3
Foo 2
Foo 1

The missing of Foo 4 from the output, means that the global variable is still referenced

I have run into a similar issue when developing the buffer protocol support for memoryview. Unfortunately, it seems that running gc.collect() is the only way to make it work, due to a different operational principle between the .NET and CPython garbage collectors.
Perhaps we could always do collect and wait for pending finalizers when the IronPython process closes. It is less clear what to do in embedded scenarios.

Interestingly with .NET Framework I get all 4 outputs but with .NET Core only 3 (assuming I add GC collect to PythonContext.Shutdown)?


Ensure that 'version' is a number when calling 'localforage.config'

Fixes #304

:+1:

This is good though a breaking change. That said, I think we should be strict about accepting arguments, so this works for me.
We'll need to note that this is breaking.
Thanks!


Table view of Problems tab shows incorrect Source

Does this issue occur when all extensions are disabled?: No

I don't think this is an issue with the extension as it's specific to the Table view

VS Code Version: 1.68
OS Version: Windows 10 + WSL 2.0

Steps to Reproduce:
Using Metals LSP extension I get strange data in the Source column of the Problems view when switching to Table
In tree view the Source shows bloop which is correct...

In table view the Source column shows _generated_diagnostic_colle which is wrong...

The diagnostic sent to VSCode in JSON is...

[Trace - 02:25:12 PM] Sending notification 'textDocument/publishDiagnostics'
Params: {
  "uri": "file:///root/metals/metals/src/main/scala/scala/meta/internal/metals/filesystem/MetalsPath.scala",
  "diagnostics": [
    {
      "range": {
        "start": {
          "line": 14,
          "character": 0
        },
        "end": {
          "line": 14,
          "character": 31
        }
      },
      "severity": 2,
      "source": "bloop",
      "message": "Unused import"
    }
  ]
}

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.68.0. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

/duplicate
https://github.com/microsoft/vscode/issues/150835

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for similar existing issues. See also our issue reporting guidelines.
Happy Coding!


TLS failed with following error:

https://github.com/zaigie/palworld-server-tool/issues/76
2024/02/04 - 02:15:19 | ERROR | palworld-server-tool/main.go:98 | Server exited with error: open -----BEGIN CERTIFICATE-----
XXXXXXXXXXX
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
XXXXXXXXXX
-----END CERTIFICATE-----: The system cannot find the path specified.
Tried 3 way of input path:
  cert_path: "./xxxx_bundle.pem"
  key_path: "./xxxx.key"

or
  cert_path: "xxxx_bundle.pem"
  key_path: "xxxx.key"

or
  cert_path: "T:\\xxx\\cert\\xxxx_bundle.crt"
  key_path: "T:\\xxx\\cert\\xxxx.key"

Just upload and replace this pem and key to my DSM Synology, it works.


MOVE with dates not converting correctly

I am using version 0.0.21.
When I convert this line;
      C     *ISO0         MOVE      DATE_ISO      P06EFFDT

It shows up like this.
        P06EFFDT = DATE_ISO;

It should appear as
      P06EFFDT = %CHAR( DATE_ISO :*ISO0 );

The hard part about this one is knowing the data type of the result variable without doing a complete code inspection.    I would think the best solution for a case like this is to leave it alone.

Do to the complexities of determining data types and lengths MOVE and MOVEL are no longer supported.


Table 5965 "Service Contract Header": Existing "Service Contract Nos." event OnBeforeGetServiceContractNos issue

With request https://github.com/microsoft/ALAppExtensions/issues/9569 changes were made only in the AssistEdit function but not in all the other relevant places. I tried serviceshub (Request ID:<PHONE_NUMBER>000840) but they concluded it was the responsibility of ALAppExtensions to fix this:
Somewhere between BC17.00 and BC17.03 a change was made in table 5965 "Service Contract Header" to use eventing in the popular no. series area.
In the OnValidate of field "Contract No." and the OnInsert trigger the function GetServiceContractNos() is missing:
You can check the same behaviour in T36, T38 and T5900
    field(1; "Contract No."; Code[20])
    {
        Caption = 'Contract No.';

        trigger OnValidate()
        begin
            if "Contract No." <> xRec."Contract No." then begin
                ServMgtSetup.Get();
                //NoSeriesMgt.TestManual(ServMgtSetup."Service Contract Nos."); A108B0000.o
                NoSeriesMgt.TestManual(GetServiceContractNos()); //A108B0000.n
                "No. Series" := '';
            end;
        end;
    }

trigger OnInsert()
var
    ServiceContractTemplate: Record "Service Contract Template";
    ServContractQuoteTmplUpd: Codeunit "ServContractQuote-Tmpl. Upd.";
    ConfirmManagement: Codeunit "Confirm Management";
    IsHandled: Boolean;
begin
    ServMgtSetup.Get();
    if "Contract No." = '' then begin
        //A108B0000.Event.os
        //ServMgtSetup.TestField("Service Contract Nos.");
        //NoSeriesMgt.InitSeries(ServMgtSetup."Service Contract Nos.",xRec."No. Series",0D,
        //A108B0000.Event.oe
        NoSeriesMgt.InitSeries(GetServiceContractNos(), xRec."No. Series", 0D, //A108B0000.Event.n
          "Contract No.", "No. Series");
    end;
    "Starting Date" := WorkDate;
    "First Service Date" := WorkDate;

    IsHandled := false;
    OnBeforeApplyServiceContractQuoteTemplate(Rec, IsHandled);
    if not IsHandled then begin
        ServiceContractTemplate.Reset();
        if ServiceContractTemplate.FindFirst() then
            if ConfirmManagement.GetResponseOrDefault(Text000, false) then begin
                Commit();
                Clear(ServContractQuoteTmplUpd);
                ServContractQuoteTmplUpd.Run(Rec);
            end;
    end;

    Validate("Starting Date");
end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.
Build ID: 42200.


Integrate namespace optimization into Creator

Because of the execution order an XML created with the Creator object will have a lot of unnecessary namespace definition. Add an option (default TRUE) to optimize the namespaces using the existing transformer.

FluentDOM\Nodes\Creator::$optimizeNamespaces() was added in commit https://github.com/FluentDOM/FluentDOM/commit/e81ee45df49909399ffc6ba068454b2a9c12b33c


Fix Fabric typo

@nandorojo Please also accept the CLA, without that we cannot merge the change. 😉

I'm going to close this one, since the changes and review request have already been applied in:

#2910


i2c: stm32-i2c-(v1/v2) don't handle i2c_burst_write like expected

Discussion for this issue started in #4429
with samples/drivers/i2c_fujitsu_fram adapted to use I2C_1 as I2C_DEV or with a sample app using i2c_burst_write16 function there's the following issue.
Expected behaviour (S = start, P = stop):
S - SLAVE_ADDR|W - FRAM_ADDR_HIGH - FRAM_ADDR_LOW - BYTE_0 - [...] BYTE_n - P
There should be no STOP or REPEATED start condition between the FRAM address and the data.
Behaviour of stm32-i2c drivers:
S - SLAVE_ADDR|W - FRAM_ADDR_HIGH - FRAM_ADDR_LOW - P -
S - SLAVE_ADDR|W -  BYTE_0 - [...] BYTE_n - P

just for reference: mcux i2c driver seems to be unable to handle messages that lack the I2C_MSG_STOP flag all together. Tried to get some reference on how other boards handle these cases with the frdm_kw41z board I have.

@DWagenk I started working on the issue on my personal repository (https://github.com/ydamigos/zephyr/tree/stm32-i2c). Now the stm32 I2C driver uses the I2C API flags, but there are still some loose ends to tie up to make the API's i2c_burst_write functions to work properly.

@ydamigos I just pushed a version to fix this problem in v2 driver to my personal repo. Functionality is tested in non-interrupt mode on stm32f3_disco and works good.
See https://github.com/DWagenk/zephyr/commit/ea33027e83f496c9c6615e5b65e6f33997cc627d
Lets compare and see which approach we want to take.
Since I don't like reusing the flags with different meaning I pass flags_next_msg into the functions, so both are available:
this messages flags       msg->flags
next messages flags      flags_next_message
The rest of the code looks pretty straightforward this way.

functionality is tested in interrupt mode as well: works good, I just don't like the while loops in msg_done when we could use interrupts, but that's nothing to change here/now.

@DWagenk I agree with you and https://github.com/ydamigos/zephyr/commit/76ffd76f86f370cf794295a6e2dbb7c3d7496750 just uses the I2C API flags. The only trick the code does is to set the I2C_MSG_RESTART flag on the first message in order to create the start condition. When the message doesn't have a I2C_MSG_STOP and it is a I2C_MSG_WRITE it enables the RELOAD mode.
I tested the non-interrupt mode for v1/v2 and it worked. Interrupt mode works on v1 (I want to test it a littler more) and I didn't have the time to check it on v2.

@ydamigos I looked into your code and the trick with the I2C_MSG_RESTART flag for first message looks good to me.
I don't know if we get by, without having the knowledge inside the driver, whether next message starts with a restart condition or without one.
If we don't make any assumptions based on message direction inside the driver (like your decision to enable reload mode in i2c_ll_stm32_v2.c line 34 is based on), the API can be used as flexible as in the example code attached, glueing messages together, without having to prepare a single buffer in the app.
For v2 driver this worked with my fork. Even Messages with 300+ bytes and no start/stop/restart condition in between, as long as every single message was less than 255 bytes long.
example.c.txt

If we don't make any assumptions based on message direction inside the driver (like your decision to enable reload mode in i2c_ll_stm32_v2.c line 34 is based on)

@DWagenk I didn't mean to check message direction, just if it has a I2C_MSG_STOP flag. I must have mixed something during a rebase. I will check it a little bit more to see if we could avoid the knowledge, whether next message starts with a restart condition or without one. We should use the same i2c_ll_stm32.c file without ifdefs regarding stm32 I2C version.

@ydamigos ydamigos

We should use the same i2c_ll_stm32.c file without ifdefs regarding stm32 I2C version.

yes, definitely, I just started on v2 and didn't wan't to break v1 before working on it, so I left the old version in place for v1 driver.

I will check it a little bit more to see if we could avoid the knowledge, whether next message starts with a restart condition or without one.

Since this problem should be not only relevant for stm32 we could think of reserving 1 bit (or 2 if we can think of yet another use case where it might be needed) of i2c_msg->flags for driver internal use in general. Would be a bigger change, but might be worth it.
Then we could define I2C_MSG_NEXT_IS_RESTART in i2c_ll_stm32.h and avoid passing around additional flag-bytes.

@DWagenk I merged both approaches in the following https://github.com/ydamigos/zephyr/commit/7a112a0c9def4c809b2344ae6bdd5163f49fe496 keeping us both as authors. Unfortunately, I didn't find the time to check it on hardware. If it is ok with you, let's work on this commit as a base.

@ydamigos I tested v2 driver with stm32f3_disco board and adapted sample i2c_fujitsu_fram file https://gist.github.com/DWagenk/8260d1958e114f4104656190c121fbcf which also contains a long write, that is composed of multiple messages that need to be concatenated by the driver.

non-interrupt mode works
interrupt mode only works when I revert the changes in stm32_i2c_event_isr, so this needs some attention.

interrupt mode works now, see https://github.com/ydamigos/zephyr/commit/7a112a0c9def4c809b2344ae6bdd5163f49fe496#commitcomment-25177689

@DWagenk Thanks for checking it. I hope I will find sometime to check it with stm32 I2C v1 hardware before creating a PR.

PR #4572 was merged.


multipage issue

cannot go to multipage . please give this option

Hi @taseercahmed , you can do that using the current version. Please see the document.
You can insert multiple xml or views object even view id in the parameter of the  following methods :
If you want create multi-paged pdf from xml-
.fromLayoutXML(R.layout.layout_print,R.layout.layout_print)
If you want create multi-paged pdf from view ids -
.fromViewID(activity,R.id.viewId1,R.id.viewId2)
If you want create multi-paged pdf from views-
.fromViewID(view1,view1)
So if you find any trouble,then you are also welcomed again to knock me.

Hi @taseercahmed , you can do that using the current version. Please see the document.
You can insert multiple xml or views object even view id in the parameter of the  following methods :
If you want create multi-paged pdf from xml-
.fromLayoutXML(R.layout.layout_print,R.layout.layout_print)
If you want create multi-paged pdf from view ids -
.fromViewID(activity,R.id.viewId1,R.id.viewId2)
If you want create multi-paged pdf from views-
.fromViewID(view1,view1)
So if you find any trouble,then you are also welcomed again to knock me.

Hi @taseercahmed
Thank you all for the support. Please kindly star and fork and send me the app links you all are using it. If there is no confidentiality then I will list them in my readme.md file.


Bulk Create Exchange Mailboxes for AD users and configure settings

I was trying to update an old line in our PowerShell script to create an exchange mailbox for users with no mailbox
Here's what I have so far:
The goal is to:

Create Mailbox for all ADusers with No mailbox in a specific OU
Add A CustomAttribute in Attribute9
Disable IMAP and POP

Get-User -OrganizationalUnit Our UserOU -RecipentTypeDetails User | Enable-Mailbox -database “Your Database” | Set-Mailbox -CustomAttribute9 OurAttribute | Set-CASMailbox –PopEnabled $False –IMAPEnabled $False
Any help you provide would be extremely appreciated.

I like the idea.
What is the business use of this? What business problem would be being solved.  I'd like to ensure this bog focuses on applying PowerShell rather than using it just because we can. :-).
What are you envisioning using for Attribute9. and where do you get the value for this object attribute?


Remove TryParse and Serialize impls for enums again

I only just now added them, but... they cannot really work. An enum is
an "abstract concept" that does not have an on-the-wire size. Only the
uses of an enum define its size.
This was pointed out by @eduardosm in
https://github.com/psychon/x11rb/pull/267#discussion_r389357568.
Signed-off-by: Uli Schlachter<EMAIL_ADDRESS>

I also added TryFrom implementations for larger types, i.e. an enum that fits into u8 now also implements TryFrom<u16> and TryFrom<u32>.


Error message when loaded

I visited the example page and I got tons of error messages on the console like this.
blueprint3d.js:32770 Uncaught TypeError: Cannot read property 'width' of undefined
3furnishup.github.io/:1 [GroupMarkerNotSet(crbug.com/242999)!:A0926A19A07F0000]RENDER WARNING: there is no texture bound to the unit 0
furnishup.github.io/:1 [GroupMarkerNotSet(crbug.com/242999)!:A0926A19A07F0000]RENDER WARNING: there is no texture bound to the unit 1
furnishup.github.io/:1 [GroupMarkerNotSet(crbug.com/242999)!:A0926A19A07F0000]RENDER WARNING: there is no texture bound to the unit 0
furnishup.github.io/:1 [GroupMarkerNotSet(crbug.com/242999)!:A0926A19A07F0000]RENDER WARNING: there is no texture bound to the unit 1
furnishup.github.io/:1 [GroupMarkerNotSet(crbug.com/242999)!:A0926A19A07F0000]RENDER WARNING: there is no texture bound to the unit 0
furnishup.github.io/:1 [GroupMarkerNotSet(crbug.com/242999)!:A0926A19A07F0000]RENDER WARNING: there is no texture bound to the unit 1
blueprint3d.js:32770 Uncaught TypeError: Cannot read property 'width' of undefined
And there is a function clampToMaxSize in the Three.js where the error occurs.
It seems to be the reason why I can't load this example page on the mobile browser I guess.
(When I load this page on the mobile, several times of reload and then it failed.)
Can you figure out why these situations are happened?
Thanks in advance.

The page has fallen


compat with python3

makes the module works with both python 2 and 3

We're going to be deprecating this library in favor of this one: https://github.com/adafruit/Adafruit_CircuitPython_CharLCD
This library is compatible with Python3.
That library is available on PyPI for you to pip3 install adafruit-circuitpython-charlcd and use on Raspberry Pi thanks to the Adafruit-Blinka library which should install automatically along with the other dependencies needed for using charlcd.  Please see the documentation for API and usage examples. There are Raspberry Pi-specific examples in the examples/ folder in the repo.


Remove AppCheck with Firebase Admin

Behaviour may be included in first party SDK
https://firebase.google.com/docs/reference/android/com/google/firebase/appcheck/FirebaseAppCheck#getLimitedUseAppCheckToken()

Linked SDK is Android only, tracking admin implementation here


How do I set initial value of a reducer to [] with createReducer in typescript?

We know that in typescript, you can't do
let foo = [];
foo.push('bar');

because foo is set to never[] by default.
Now in my code:
const myReducer= createReducer([], {
  'FOO': (state, { bar }) => {
    state.push(bar)
  },
});

It doesn't compile, because I can't push into state. What's the recommended work-around? Thanks!

My guess is that you need to do something like createReducer([] as SomeType[], reducers).

Oops, sorry I thought I tried that and it didn't work. But now it's working, I must have had some other syntax error when I tried. Sorry my bad. Closing.


Delete or check existence of rule without enumeration of all

When accessing the IFirewall.Rules collection all existing rules are enumerated for every access.
This means if I want e.g. delete a few rules by name or check whether a rule exists this becomes time consuming.
The interface INetFwRules provides direct access to removal or existence check of rules.
I've forwarded that functionality to the IFirewall interface.

@Sam13 thank you very much for the PR and the time you have donated to the project.
Few notes:
This behavior is there because unfortunately the name of a rule is not unique and therefore can not be used to uniquely identify a rule. Therefore the library tries to find the rule's COM object, rename it to something unique and then requests a deletion by the newly generated temporary unique name.
https://github.com/falahati/WindowsFirewallHelper/blob/master/WindowsFirewallHelper/InternalCollections/FirewallWASRulesCollection.cs#L22
This is similar to the legacy firewall API. Instead of the name, it uses the process address and therefore we have to generate a temporary file and delete the rule using that.
https://github.com/falahati/WindowsFirewallHelper/blob/master/WindowsFirewallHelper/InternalCollections/FirewallLegacyApplicationCollection.cs#L22
And for port rules, by generating a random port number:
https://github.com/falahati/WindowsFirewallHelper/blob/master/WindowsFirewallHelper/InternalCollections/FirewallLegacyPortCollection.cs#L22
If we want to add a direct method for deleting by name for FirewallWAS, we also need to add two new methods to delete by port number and delete by application name for the FirewallLegacy. And none of these methods should be part of the IFirewall interface since this functionality is not shared and neither is it something very important for the majority of the library users since they need to find their application by going through the whole ruleset anyway. It will be a neat addition for people who are confident about the action and for those people I am sure they are happy to check the type of underlying IFirewall instance before using the methods directly with the class type.
If you are willing to add the related methods to the FirewallLegacy and then remove all added entries in the IFirewall interface, I am more than happy to merge.
Meanwhile, for your specific problem, you can also use groups to toggle your rules. Unfortunately, It is only available with the WAS and is quite limiting compared to modifying the rules directly.

Hi @falahati
Thanks for your quick response.
I wasn't aware that you do something "in between" with the rules. Under that circumstances my PR does not make sense like it is now.
The behavior I'm trying to achieve is:
I have an application which creates a new application rule on startup and removes it on shutdown. I always use the same name for this rule to cleanup rules from previous sessions which may have not terminated correctly.
I already implemented that with the latest stable version of your library but noticed that removal is very slow because when using LINQ to search for existing rules they get enumerated all the time.
So I'm basically looking for operations to check existence and remove rules in a quick way (without enumeration all the time).
Maybe you can propose on how you want that an I'll try to implement that?

Well since you are on the stable V1 of the library, let me suggest trying V2 Prerelease first. Since a lot changed with the rule collections performance-wise. You still need to go through all the rules, but the process should be faster. In fact, the master branch and therefore this commit is now on the V2 prerelease. v1 has a different branch altogether which I am not updating unless there is a bug.
I just updated the prerelease v2 based on the conversation we had here. V2 should be quite reliable. It is essentially in the RC stage now. In the last couple of months, I got no serious report of any bug.
Now to solve your specific problem using the v<IP_ADDRESS> you can do the following:
var existed = FirewallWAS.Instance.Rules.Remove("my rule's name");

or use the following approach:
var rule = new FirewallWASRule(
        "my rule's name",
        80,
        FirewallAction.Allow,
        FirewallDirection.Inbound,
        FirewallProfiles.Domain | FirewallProfiles.Private | FirewallProfiles.Public
    )
    {
        GroupName = "My Application Firewall Rules"
    };
FirewallWAS.Instance.Rules.Add(rule);

And then when checking for rules existence or when you want to enable or disable it, just call the FirewallWAS.Instance.GetGroupByName("My Application Firewall Rules") method and use the returned instance to modify all the rules in the group. Unfortunately, this is only relevant if your rules don't change between your application startup and you only want to enable or disable them.
If your application is not going to target WindowsXP you can safely use the FirewallWAS.Instance property instead of the FirewallManager.Instance. FirewallManager puts everything behind another level of abstraction to be compatible with WindowsXP which is not necessary for the majority of applications. When using FirewallWAS directly you have more access and control over what happens and what you can do. All the newly introduced methods in the latest update are not available through the FirewallManager.Instance unless you conditionally cast the returned value to FirewallWAS or use it directly.
I am going to close this PR, if you have any other question please consider opening an issue.

There is also an indexer now, so you can modify your existing rule instead of removing and recreating it:
var myRule = FirewallWAS.Instance.Rules["my rule's name"];

This will return null if the rule doesn't exist.

@falahati, thanks for your work!
I'm now using v2 and can confirm that it has a much better performance!


open file button

added opening files button that open a menu for opening files without dragging them.

Ooo thanks!! There's one issue, however: on linux the line path = path.Replace("/", "\\"); breaks everything. Commenting it out fixes everything though. Other than that, works great!


Collection overview api update

This api call needs to be simplified to return:

Collection label
Preferred collection UI image (new to v2, not just a nice image from collection, but possibly cropped as well)
Item count
Collection Id

Added a new /api/collections/overview endpoint returning:

@id
name
description
thumbnailUrl
recordCount

This is called in the static controller and now used for the APP_CONFIG.collections property.


Move this project to new dev team?

@smiley22: It is possible to move this project (and other) in an org to improve the code, etc.?

I'm not sure what the point would be of doing that. MailKit exists and is far better quality. It would be a waste of resources to fix this library at this point.


Node.js 12.x being LTS

A couple of days ago, it was the expected change from Node.js v10.x to v12.x being the recommended LTS version. Ideally the Docker image v4 would actually skip v10.x and would directly move to the 12.x branch.

I would not support that! While iobroker supports nodejs 12 basically the e tree commended Version is still nodejs 10 because some adapters are still not ready for nodejs 12 because of incompatible deps ... so I would not support that for an official Container Version.

It is just a hint/suggestion, no need to use any exclamation marks ;-)

No. As I know node10 is recommended at the moment.
If you name me an adapter requiring node12 I will build a beta including node12 for testing...
Regards,
André


Rewrite logger server in Warp (optional)

In an effort to make it easier to make the GUI usable on the web.

Using gRPC instead tracked in the gprc-rewrite branch.


Bring build action up to date

Hi @rtibbles and @jredrejo - for me the image is not working correctly on both Raspberry Pi 4 and 5.
Initially what I see as a completely different behavior from the existing image is that while starting it's asking me to create a username and password (for which I am using the current username and password pi/kolibrifly)

Then once the server has started, I can see the kolibri wifi network and connect to it but it's not possible to access the server at http://<IP_ADDRESS>. It's also not possible to access it at http://<IP_ADDRESS>:8080 after restarting the server.
Here are the logs: logs.zip

Hi @rtibbles and @jredrejo - for me the image is not working correctly on both Raspberry Pi 4 and 5. Initially what I see as a completely different behavior from the existing image is that while starting it's asking me to create a username and password (for which I am using the current username and password pi/kolibrifly)

Then once the server has started, I can see the kolibri wifi network and connect to it but it's not possible to access the server at http://<IP_ADDRESS>. It's also not possible to access it at http://<IP_ADDRESS>:8080 after restarting the server.
Here are the logs: logs.zip

hello @pcenov in order to check if the problem is with the procedure used to build the image inside GitHub or something different, can you check the image I passed you through a google drive?

Hi @jredrejo - it's the same with both the image you sent me and the one form GitHub.

Hi @jredrejo - it's the same with both the image you sent me and the one form GitHub.

weird, I didn't have that problem when I tested it,
@pcenov  what are you  using to create the sdcard with the image? some tools add that feature

@pcenov please, try this new image https://github.com/learningequality/kolibri-image-pi/actions/runs/11920920250/artifacts/2209658399 when you can. This should have the problem you saw solved

Hi @jredrejo - I confirm that now the image is working correctly on both Raspberry Pi 4 and 5!


its not working anymore

error

I will advise you to contact the best hacker around he helped me recover my facebook,fast and reliable his telegram is https://t.me/Blackhathacker111


Native AdTextView font

Hi! Thank you for creating and maintaining this lib :)
(I ran into some issues with google_mobile_ads and switched to this. This was way easier to set up and the ads just worked 🎉 The way to design the layout is a lot more fun to use too even if it's not using Flutter widgets! Anyway...)
It seems currently the font of a TextStyle is not passed on to the native TextView:
https://github.com/bdlukaa/native_admob_flutter/blob/536e1c89581c4a16bf9d2680ab4d2ab5ed5989eb/android/src/main/kotlin/com/bruno/native_admob_flutter/native/NativeAd.kt#L329-L341
It would be nice if I could customize the font to match the look of the rest of my app.

Well, it's quite a different proccess to add a font to a android app. You gotta put the font file on the res folder, and then Android can recognize the font.

Well, it's quite a different proccess to add a font to a android app. You gotta put the font file on the res folder, and then Android can recognize the font.

Hi @bdlukaa ,
Can you give us a very simple example how to implement font change in NativeAd.kt file? I forked your git and tried to modify that file to apply custom font, but it kept failing.


React: migrate the app menu

Description
Migrate the app menu to React without changing its behaviour.
Noticeable things:

It uses the React <MasqStatus> component previously defined in https://github.com/QwantResearch/erdapfel/pull/366

I added a <MasqAvatar> component which factorizes the logic behind the Masq user image or letter fallback. It's used in the menu and the status:

I installed the classnames library which facilitates a lot conditional class toggling on React elements. It's used to add the transition classes.

There are probably a lot of CSS simplifications to do in menu.scss to clean things up and get rid of those absolute pixels sizes everywhere, but we will probably introduce some generic text components progressively, so let's not change everything right now.

@xem thanks for the comments. I'll look into the errors you got.

@xem Thanks the error report, the first warning allowed me to find a bug: the <MasqStatus> component was rendered event when Masq was disabled in the app settings. Now it's fixed :)
I don't know about the last 3 errors however (transitionNode is null). I think it comes from something else entirely, as I didn't touch this part.


Hi,

Hi @korbinzhao,
I contacted you a few months ago to translate your work in english.
I wanted to thank you personally because thanks to you, I finally managed to release my grafana plugin based on mxgraph :
https://github.com/algenty/grafana-flowcharting
Thx a lot

@algenty It is my pleasure to be of some help. grafana-flowcharting is a wonderful plugin.


Fix 119 with Compiler Flags from Anaconda Build

Checklist

[x ] Used a personal fork of the feedstock to propose changes
[x ] Bumped the build number (if the version is unchanged)
[x ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[x ] Ensured the license file is being packaged.

Hopefully closing #119. I added the compiler flags from the anaconda graphviz build. -fPIC in particular seems a plausible source of the fix. https://github.com/conda-archive/conda-recipes/blob/main/graphviz/build.sh
I've confirmed that gvpack now works in build.

I guess this broke some other platforms - will try to fix.

Seems to be passing tests now at least.

Superseded by https://github.com/conda-forge/gts-feedstock/pull/6


Add mbtiles_file_source.cpp in linux.cmake

The following error appears when using maplibre-gl-native from Java with JNI bindings on linux:
java: symbol lookup error: /tmp/libmaplibre-native-13994025245107934612.so: undefined symbol: _ZN4mbgl18MaptilerFileSourceC1Ev

Adding mbtiles_file_source.cpp in linux.cmake solves the issue.

Merged. Thank you for your contribution!

Merged. Thank you for your contribution!

Great, thank you!

Great, thank you!


DBZ-502 Blogpost with Elasticsearch

https://issues.jboss.org/browse/DBZ-502
Can be merged after https://github.com/debezium/debezium-examples/pull/12

@jpechane I've pushed one more commit with a few small adjustments. I'd say let's post it tomorrow afternoon and share on Twitter. Thanks!

Can I also make a few suggestions about the diagrams? The dbz-to-multiple diagram should have one object for each connector, not have a single Confluent logo to represent two connectors. It seems like this is trying to show data flow, but then not having separate objects for each sink connector complicates that understanding. Also, the large red arrows are really distracting. :-)
Also, the dbz-to-multiple-simplified diagram seems like its trying to explain which processes do what. Again, the red arrows are super distracting, and it might work out better to use a different notation (boxes for each process, with boxes inside for each component). Also, shouldn't ZK be on this?

Agreeing with @rhauch on his comments regarding the images and the arrows. Perhaps you can re-use the drawings from my recent presentation? I've just shared the link to the sources with you, so you can extract the SVG sources of the Kafka + Connect + DBZ visualizations from it and re-use for the post.

Thanks for the comments, I tried to incroporate them into the text.
Rearding diagrams I tried to change them before I move to @gunnarmorling's format.

@rhauch ZooKeeper is intentinally omitted as it is completely unrelated to the scenarios described.

@gunnarmorling It would probably make sense to rename the file before the publication - to change the date to the real one

Rearding diagrams I tried to change them before I move to @gunnarmorling's format.

I think they look better now, but I'm still not a huge fan. Any chance you re-do them based on the ones I did? It's not a blocker, but I feel they look a bit more orderly.

It would probably make sense to rename the file before the publication

+1


Crash from invalid train

Describe the Bug
a specific train in my world crashes my game when it tries to render
Reproduction Steps
I'm not sure, I just went into render distance of one of my trains I had parked at a station, none of my other trains did this at all even though I've parked them at the same spot before, and I also have other trains twice the size parked in other spots, none of them crash me
Expected Result
a crash saying "Unable to get Y-rotated facing of down"
Screenshots and Videos
No response
Crash Report or Log
https://pastebin.com/S6vevR7B
Operating System
Windows 10
Mod Version
0.5.1c
Minecraft Version
1.19.2
Other Mods
I can add screenshots of the modlist but  I added create into a modpack I had that had 0 issues before I added it so I don't think anything is affecting this glitch since it's only happening when it tries to render the train
Additional Context
No response

Is there any temprary workaround? (other than avoiding that chunk entirely or restoring a backup of my world)

You can delete the train with the /create killTrain command. Could you provide a world download first? This shouldn't be able to happen.

oh I already found a solution and fixed the issue by just replacing the "create_tracks.dat" file in the world files, and unfortunately I deleted that world backup to prevent my computer from running low on space lol, but if it ever happens again I'll let you know and send a world download!

OH also, I think what happened was that the train somehow tried to park at 2 separate stations at the same time, or something having to do with how my PC isn't that good tbh, I'm not sure if that'll help but I'll do what I can if the issue comes up again!

going to close this then


No automatic parens with class types

          This issue has been fixed in prerelease version 2023.1.31, which we've just released. You can find the changelog here: [CHANGELOG.md](https://github.com/microsoft/pylance-release/blob/main/CHANGELOG.md#2023131-18-January-2023-PreRelease)

Originally posted by @heejaechang in https://github.com/microsoft/pylance-release/issues/3831#issuecomment-1396205655
I tested with prerelease version(2023.1.41), but it does not automatically make brackets with class type functions such as int(), str().. so on. I wonder whether it is bug or not. Was it intended?
P.S. With Jedi server, class type functions make brackets with them.

I don't believe this used to work either, but it does sound like bug.

This issue has been fixed in prerelease version 2023.2.11, which we've just released. You can find the changelog here: CHANGELOG.md


Disable eslint warning on render method in component class

I find it kinda annoying to add inline comments to disable warnings on each class methods. Is there a global setting for disabling eslint on no-unused-vars ?
I tried changing no-unused-vars to false, 0, "off", neither worked. Any solution?
{
  "extends": "airbnb",
  "parser": "babel-eslint",
  "rules": {
    ...rules,
    "no-unused-vars": false
  }
}

I don't really need any fix or workaround for this, I just want to disable it or eslint overall because I just can't handle this:

When I set "no-unused-vars": 0, in my rules section, it disables it. Maybe double check to make sure you saved the file when you reran the linter?

Sorry, I can’t help you because you completely ignored the issue template.
It’s not clear what your code looks like, which version of react-scripts you are using, whether you ejected or not, and where you’re trying to edit the ESLint config (Create React App does not support changing ESLint config before ejecting).
Unfortunately I’ll have to close this issue, but happy to help you if you file another issue and don’t ignore the template we have provided. Cheers!


Missing Institute Added

Education Board Multan, Pakistan was missing from the list

@adeel-gmail Please fork SWOT repository, copy file.zip in the root folder of your forked SWOT repository. Then unzip file.zip there with no changes to the directory structure. Then make a new pull request. If you are not able to make the pull request according the instructions, please send us an email to<EMAIL_ADDRESS>Please mention this request URL in the message. I have to close this request without merging. Thank you for your understanding.


Configuration example using imports statement for git repos causes application crash

What happened?
When configuring devspace.yaml with an import statement following the format of the documentation, devspace CLI commands fail with a stack trace.

Stack trace
panic: runtime error: index out of range [1] with length 1

goroutine 1 [running]:
github.com/loft-sh/devspace/pkg/devspace/dependency/util.switchURLType({0xc0008cdac0?, 0x1b?})
        /Users/runner/work/devspace/devspace/pkg/devspace/dependency/util/util.go:75 +0x1f4
github.com/loft-sh/devspace/pkg/devspace/dependency/util.DownloadDependency({0x2766258, 0xc0001404b0}, {0xc000a20340, 0x30}, 0xc000be3438, {0x277ebb8, 0x4069640})
        /Users/runner/work/devspace/devspace/pkg/devspace/dependency/util/util.go:124 +0xfbe
github.com/loft-sh/devspace/pkg/devspace/config/loader.ResolveImports({0x2766258, 0xc0001404b0}, {0x276cbe0, 0xc000a23800}, {0xc000a20340, 0x30}, 0x277ebb8?, {0x277ebb8, 0x4069640})
        /Users/runner/work/devspace/devspace/pkg/devspace/config/loader/imports.go:74 +0x368
github.com/loft-sh/devspace/pkg/devspace/config/loader.(*configLoader).parseConfig(0xc0002f96d0, {0x2766258, 0xc0001404b0}, 0xc0004d37c0?, {0x2774400, 0xc000a23600}, {0xc0002cacd0?, 0x50?}, {0x0, 0x0}, ...)
        /Users/runner/work/devspace/devspace/pkg/devspace/config/loader/loader.go:317 +0x18b
github.com/loft-sh/devspace/pkg/devspace/config/loader.(*configLoader).LoadWithParser(0xc0002f96d0, {0x2766220, 0xc000a1b740}, {0x0?, 0x0?}, {0x0, 0x0}, {0x2746de0, 0xc0002cae10}, 0xc0002cae60, ...)
        /Users/runner/work/devspace/devspace/pkg/devspace/config/loader/loader.go:176 +0x7cd
github.com/loft-sh/devspace/cmd.parseConfig({0x2774db8, 0x4069c58})
        /Users/runner/work/devspace/devspace/cmd/root.go:350 +0x1f7
github.com/loft-sh/devspace/cmd.BuildRoot({0x2774db8, 0x4069c58}, 0x59?)
        /Users/runner/work/devspace/devspace/cmd/root.go:201 +0x186
github.com/loft-sh/devspace/cmd.Execute()
        /Users/runner/work/devspace/devspace/cmd/root.go:139 +0x50
main.main()
        /Users/runner/work/devspace/devspace/main.go:17 +0x2c

What did you expect to happen instead?
I expected the devspace command to import the github repository specified in the devspace.yaml file without errors.
How can we reproduce the bug? (as minimally and precisely as possible)
Configure devspace.yaml using the imports statement with a git repo as documented in the devspace documentation.
My devspace.yaml:
version: v2beta1

...
imports:
- git: github.com/project/repo.git
  branch: test

Working devspace.yaml, when changing to ssh-format it works as expected:
imports:
- git: git@github.com:project/repo.git
  branch: test

Local Environment:

DevSpace Version: 6.3.3
Operating System: linux
ARCH of the OS: AMD64

Kubernetes Cluster:

Cloud Provider: google
Kubernetes Version: 1.27.1

Anything else we need to know?

@andersbulderbank Hello! Thanks for reporting the issue. The documentation could use a correction here, since we'd need to assume github.com/project/repo.git means either<EMAIL_ADDRESS>OR https://github.com/project/repo.git.
We'll likely do a quick fix to assume<EMAIL_ADDRESS>if the URL is left ambiguous, but for now using a more specific URL should be a quick workaround!


Cookie Persistent not working

Q
A

Bug?
yes

New Feature?
no

Version
6.3.3

Actual Behavior
Cookie aren't resend to new request
Expected Behavior
Cookie should be resent in new request
Steps to Reproduce
<?php

use GuzzleHttp\Client;

$client = new Client([
  'cookies' => true
]);

$request = $client->get('http://localhost/test.php');
print_r($request->getHeaders());
$request = $client->get('http://localhost/test.php');
print_r($request->getHeaders());

Test file
<?php session_start([     'cookie_lifetime' => 86400, ]);

I am really sorry but from the info provided I can not understand what the issue is about.
Please make sure there is a bug. If you need support please refer to other channels. Check here: https://github.com/guzzle/.github/blob/master/SUPPORT.md
If more info are provided I would be happy to reopen the issue.


bug: Layout is scrambled in the beginning for multiple seconds

If you open the Mastowall with a hashtag (I tested it out with #antifasticker) the layout is scrambled for the first seconds. It happens with other tags, too.

It looks like the first call of https://<instance>/api/v1/timelines/tag/antifasticker?limit=20 must be finished, before the layout is applied.

After that initial call is finished, the layout is correctly applied.
Can this be fixed somehow?

Should be way better with this fix:
https://github.com/rstockm/mastowall/commit/6c43c6ebdd3bc82dffd17c06ee35d2ccaadadfce
3 seconds after initial loading the layout is rearranged, then every 10 seconds like before.


[$2,000] Endless launch of the App after tapping on a notification in airplane mode

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

Action Performed:

Lunch the app and log in with any account ( Account A)
Kill the APP
Wait ~5mins and send msg to the mobile user from another device ( Account B), wait for the push notification
After about 10 seconds, put the device on airplane mode.
Tap on the notification

Expected Result:
It should open App to the correct chat, and the new message should be available.
Actual Result:
Endless App launch
Workaround:
Unknown
Platform:

Where is this issue occurring?

iOS
Android

Version Number:* 1.1.30
Reproducible in staging?: Yes
Reproducible in production?: Yes
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://user-images.githubusercontent.com/93399543/149680496-a6713bed-a054-4611-9eac-ba749105acdf.mp4

Upwork job URL: https://www.upwork.com/jobs/~01af0dfa02aa00593f
Issue reported by: Applause
Slack conversation:
View all open jobs on GitHub

Triggered auto assignment to @Julesssss (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

I've seen this on iOS too, but I'm pretty sure the feature used to work. On Android I'm able to get past the splash screen, but I am not taken to the chat which contains the notification message. We should fix this too.

Triggered auto assignment to @trjExpensify (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@Julesssss - shall we drop the iOS from the issue title then? Seems like the expected behaviour is broken on Android as well?

Triggered auto assignment to Contributor-plus team member for initial proposal review - @parasharrajat (Exported)

Current assignee @Julesssss is eligible for the Exported assigner, not assigning anyone new.

Job exported to Upwork here: https://www.upwork.com/jobs/~01149b6e5e9f98a2c3

Job price increased to $750

Issue not reproducible during KI retests. (First week)

@mvtglobally were you able to reproduce this again?

Issue not reproducible during KI retests. (Second week)
One of the testers had issue with not getting notifications, I just retested and not able to reproduce. @trjExpensify

Back from OoO. Will wait for @mvtglobally, but I presume this won't be reproducible during KI retests for the third week and will be closed out.

Still awaiting proposals, we should probably double the price.
I'm not exactly sure how we're supposed to do that though. Do we need to update Upwork too?

@trjExpensify
Issue is still repro, that's why we didn't close it
https://utest-dl.s3.amazonaws.com/testRunStepMinAttachmentsResult/18757968/VID-20220312-WA0050.mp4?AWSAccessKeyId=AKIAJ2UIWMJ2OMC3UCQQ&Expires=1678809788&Signature=eOxWe1%2BJ2LAA0Vru7G23rqdRGFs%3D

Okay, got it. Thanks! Did I miss a process change somewhere whereby we only comment if it's not reproducible in the weekly KI tests now?
@Julesssss I wonder whether this is something we'll solve with the offline project now actually anyway? 🤔 If not, let me know and I'll add a new job to Upwork at $1k.

Nah, lets open an issue as A) this should be fixed sooner rather than later, and B) I doubt this would be included in that DD

Sounds good. New post at $1k on Upwork here: https://www.upwork.com/jobs/~01af0dfa02aa00593f

Price doubled to $2k on Upwork here.

@trjExpensify can we double again please

Yup! Price doubled to $4k. 👍

Issue not reproducible during KI retests. (Third week)
@trjExpensify  should we just close it now?

Yeah, I think so.


CommonCoordinateSpaceVersion link to CommonCoordinateSpace

Unless I am reading this wrong (which is certainly possible) it looks like you have a CommonCoordinateSpaceVersion spec and a CommonCoordinateSpace spec but there is no linkage between the two. I propose adding a is_version_of attribute to CommonCoordinateSpaceVersion pointing to a CommonCoordinateSpace.

If you look at the CommonCoordinateSpace schema in the SANDS model, it has a hasVersion property:
https://github.com/openMetadataInitiative/openMINDS_SANDS/blob/3a542916b22c0b8f4b6dd64c4bba1658614bf78b/schemas/atlas/commonCoordinateSpace.schema.tpl.json#L32-L39
Links in the openMINDS schemas are typically one-directional, and then graph databases can implement reverse links for instances. Lyuba can fill inn more details on this!

@ehennestad just beat me to it, but since I just finished typing this I'll post it anyway!
There is an explicit hasVersion link from CommonCoordinateSpace to CCSV: https://openminds-documentation.readthedocs.io/en/latest/schema_specifications/SANDS/atlas/commonCoordinateSpace.html#hasversion
There is an implicit reverse link, which we haven't formally named (naming reverse links is still a TODO), although fairgraph does indeed use the name is_version_of as you suggest.

ok cool, thanks!


[Type] add optional types

Pull Request Test Coverage Report for Build 626925753

41 of 50 (82.0%)  changed or added relevant lines in 8 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.3%) to 99.65%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/Psl/Type/Internal/ShapeType.php
19
28
67.86%

Totals

Change from base Build 624738517:
-0.3%

Covered Lines:
2565

Relevant Lines:
2574

💛  - Coveralls


We've found that in-flight downloads from the Verdaccio were being immediately terminated in our k8s cluster when the pod was cycled via a rolling deployment.
This change would allow us to set the environment variable HANDLE_KILL_SIGNALS=true and have the HTTP connection handles drained nicely before killing the process.
Without the environment variable, the existing behaviour of the program remains the same (hence minor/feature update)

I just rebased here https://github.com/verdaccio/verdaccio/pull/2121 closing this duplicated.


Forestry basket, Woodcutting boost message + fix

Add Forestry basket to creatable items
Correct issue with +5min trip time not working when log basket is equipped.
Make forestry basket give same trip boost as log basket.
Add a boost message in the trip send message.

[X] I have tested all my changes thoroughly.

Will re-post with Forestry Part 2 edits.


Cannot use my own bag to replace cartographer_paper_revo_lds.bag

myissue.zip
Thank you for filing an issue!
It would help us tremendously if you provid the following so that we can easily
reproduce your issue:

A link to a Git repository containing a branch of cartographer_ros
containing all the configuration, launch, and URDF files required to
reproduce your issue.
A link to a bag file we can use to reproduce your issue.

We will likely be unable to help you without both.
Please remove this boilerplate text before submitting your issue.

I edited /launch/demo_revo_lds.launch:25

Nothing else changed.
After step 1, I remaked it.
$catkin_make_isolated --install --use-ninja
$source install_isolated/setup.bash
Using my own bag, test.bag, to roslaunch demo_revo_lds.launch.
I used UTM-30LX. Below shows the steps that I recorded my bag.
$rosrun hokuyo_node hokuyo_node
$rosbag record -O test.bag /scan

It turns out that:

[ WARN] [1499671086.289104514,<PHONE_NUMBER>.004629894]: W0710 15:18:06.000000 28889 tf_bridge.cc:51] "horizontal_laser_link" passed to lookupTransform argument target_frame does not exist.
Rvie shows nothing.

Would you please help me figure out what were the problems?
Thank you so much!
You can see my bag in the myissue.zip.

You did not provide what you changed in the configs, but looking at your bag your /scan topic has frame_id: laser and you likely didn't fix your urdf.

I fixed it and it worded well. Many thanks.


Display column Type.CHECKBOX as checkbox even when not being edited

In the table I'm using, it's quite natural to display a true/false state as a checked or unchecked checkbox. This doesn't seem to be supported out of the box but by using a formatter which renders it as a checkbox I can make it work.  It takes an extra click to make it editable and it will then change state as expected.
Is there a way to render this that doesn't require the extra click?
Thanks,
  Ben.

const columns = [
   ..., {
        dataField: 'selected',
        text: 'Selected',
        formatter: (cell) => <Checkbox checked={cell} />,
        editor: {
            type: Type.CHECKBOX
        }
    }
];

I think formatter is the best choice, in react-bootstrap-table2, we let developer easy to render or custom their component. Let why i didn't implement some kind of built-in component when table rendering.
but just one question, if user change the checkbox, do you expect the raw data also get changed?

The checkbox renders as if it were an active component on the page.  I think the user would reasonably expect that if they click it that the data would change.

@bggolding understand, I will consider to implement a "pre-render" editing cell, thanks

if you guys can please help with my question?
https://github.com/react-bootstrap-table/react-bootstrap-table2/issues/1182


How to close connection after using fetch(url) ?

I want to know how to close the connection after I use fetch(url) as following code:
const fetch = require('node-fetch')

const main = async () => {
    const response = await fetch('http://km.com.com')
}

main();

bottom line is, u can not do it (yet) they are working on it
#437
#95
The way you would abort it is passing down a signal that you then later abort with
var controller = new AbortController()
var signal = controller.signal
fetch(url, { signal })

// later
controller.abort()

@stormeyes it depends on what you meant by closing connection.
TCP connection will be closed after request is complete, we send "connection: close" header.
https://github.com/bitinn/node-fetch#default-headers
If you want to close a long pending request, then timeout might work .
https://github.com/bitinn/node-fetch#options
If you want to close the connection immediately, then you need abort, which isn't implemented yet.
But of course we still depends on Nodejs core to handle OS socket open/closure.

closing this as duplicate of #95, #437 is working on abort


Improve validation of MP3 frame headers

Some MP3 files have garbage before the MPEG frames. Lofty tries to skip them by looking for sync bits, reading a header, seeking to the next one and comparing that to the first header. This works fine most of the time.
 A header ff ff ff ff has invalid bitrate and frequency (sample rate) but would be returned from Header::read as if it was valid -- the Header struct would be half-zeroed though. The frame length (len) is also zero, so for validation in find_next_frame the next 4 bytes would be read. If those happen to also be ff ff ff ff, it passes validation. The whole file is later determined to be invalid in read_from, which does check the sample rate.
I found this issue when debugging why Amberol wouldn't add some songs to its queue. I have an album of 14 songs where it could only add 6 -- that was gone when I rebuilt it with a version of Lofty with these changes.
My changes basically just turn the error branches into return None. The current behavior is to return the header struct half-filled.
I attached an archive with two small MP3 files:

ok.mp3 will open fine with or without these changes.
8ff.mp3 is the same file with 8 bytes of 0xff prepended. It triggers the issue and will only open with these changes applied.

(I don't know for sure, but I have a feeling that garbage filled with 0xff may be the reason that all-ones bitrate and frequency values are invalid in these headers)

Thanks! This seems to be working fine. :slightly_smiling_face:


Projects can have more than one Bukkit project type assigned to it

If a project changes it's dependencies then in some cases it seems the original Bukkit-type isn't removed, while the second Bukkit-type is also added on (so, it could be both a BukkitModuleType and a SpigotModuleType). This shouldn't happen, only the highest Bukkit-type should remain.

@DemonWav It could also happen if someone depends on multiple Bukkit dependencies (e.g. Bukkit and Spigot) at the same time.


[Task]: How to change threshold in padin config.yaml ??

What is the motivation for this task?

The inferred defects appear clearly on the heat map, but the result is not circled.
I think the threshold is not adjusted properly, so I want to know how to adjust the threshold.

this is my custom yaml

dataset:
name: ICtray_seg
format: folder
root: ./datasets/ICtray_seg
normal_dir: train/good
abnormal_dir: test/post_fake
normal_test_dir: test/good
mask_dir: ground_truth/post_fake
task: segmentation
extensions: null
train_batch_size: 4
test_batch_size: 4
num_workers: 8
image_size:

256
256
center_crop: null
normalization: imagenet
transform_config:
train: null
eval: null
test_split_mode: from_dir
test_split_ratio: 0.2
val_split_mode: same_as_test
val_split_ratio: 0.5
tiling:
apply: false
tile_size: null
stride: null
remove_border_count: 0
use_random_tiling: false
random_tile_count: 16
eval_batch_size: 4
model:
name: padim
backbone: resnet18
pre_trained: true
layers:

layer1
layer2
layer3
normalization_method: min_max # options: [none, min_max, cdf]
metrics:
image:

F1Score
AUROC
pixel:
F1Score
AUROC
threshold:
method: adaptive
manual_image: null
manual_pixel: null
visualization:
show_images: false
save_images: true
log_images: true
image_save_path: null
mode: full
project:
seed: 0
path: results/padim/ICtray_seg/run
unique_dir: false
logging:
logger: []
log_graph: false
optimization:
export_mode: null
trainer:
enable_checkpointing: true
default_root_dir: results/padim/ICtray_seg/run
gradient_clip_val: 0
gradient_clip_algorithm: norm
num_nodes: 1
devices: 1
enable_progress_bar: true
overfit_batches: 0.0
track_grad_norm: -1
check_val_every_n_epoch: 1
fast_dev_run: false
accumulate_grad_batches: 1
max_epochs: 1
min_epochs: null
max_steps: -1
min_steps: null
max_time: null
limit_train_batches: 1.0
limit_val_batches: 1.0
limit_test_batches: 1.0
limit_predict_batches: 1.0
val_check_interval: 1.0
log_every_n_steps: 50
accelerator: auto
strategy: null
sync_batchnorm: false
precision: 32
enable_model_summary: true
num_sanity_val_steps: 0
profiler: null
benchmark: false
deterministic: false
reload_dataloaders_every_n_epochs: 0
auto_lr_find: false
replace_sampler_ddp: true
detect_anomaly: false
auto_scale_batch_size: false
plugins: null
move_metrics_to_cpu: false
multiple_trainloader_mode: max_size_cycle

Describe the solution you'd like
I want to know how to change threshold by my mamual value, if you can give me a example, i wll very appreciate that.
threshold:
method: manual
manual_image: null (is a path of image or what?)
manual_pixel: null (is a pixel value or position in the manual_image ? )
Additional context
No response

Hello.
You adjust it like this:
metrics:
  image:
    - F1Score
    - AUROC
  pixel:
    - F1Score
    - AUROC
  threshold:
    method: manual          # set to manual so it's not calculated automatically
    manual_image: 0.42    # provide threshold value
    manual_pixel: 0.42      # provide threshold value
    ```

So by setting method to manual and providing values.


Enable coveralls support

Changes Unknown when pulling 475e2644e7a87e79454f216dcdab171a18fb7a3f on shochdoerfer:feature/coveralls into ** on bitExpert:master**.


Delete schema in async should set schema(QUEUED) status DELETING

Firstly
graph.schema().getIndexLabel('testil').status()

The status is CREATING
graph.schema().indexLabel('testil').remove()
graph.schema().getIndexLabel('testil').status()

Expect the status DELETING, but is still CREATING,


Add collaborators to this repo

Comment below to be added as a collaborator
We will all be using this repository today. Even though it's public right now, you will not be able to make changes until you're given the correct permissions. We've automated this process via the GitHub API. Once you comment, we will add you as a collaborator.
You'll start to receive a lot of emails. (❗) You can slow these down immediately by clicking the Unwatch button at the top of the page and selecting either the Participating and @mentions or Ignore option.

Comment #0 :)

<EMAIL_ADDRESS>

Hello!

Hello!

Hello.

hello

Hi

Hello there.

Hello

Hello

Comment: Hello Community

Hi


Parameterized Test Selection Does not Work with JUnit 5

According to the documentation in https://docs.gradle.org/current/userguide/java_testing.html, parameterized tests should be selectable by index, like gradle test --tests '*ParameterizedTest.*[2]'. Unfortunately, this does not work.
Expected Behavior
Only one test with one parametrization should be run.
Current Behavior
The test is not detected and not executed.
Context
I try to run single parameterized tests on their own to isolate a bug. While this works fine in an IDE, Gradle fails to do this.
Steps to Reproduce
This can be reproduced by the repo https://github.com/DaGeRe/parameterized-selection-demo While the selection of basic JUnit 4 tests (without vintage-engine) works, the following test selection commands do not work:

./gradlew -b buildJUnit5.gradle -i clean test --tests *ExampleTestJUnit5.test[1]
./gradlew -b buildJUnit5.gradle -i clean test --tests *ExampleTestJUnit4.test[1]
It also does not work when changing [1] to [*], so its not cause by the concrete parametrization not existing.

Your Environment
Build scan URL (Problem persists regardless of Gradle version):

Gradle 7.3.3: https://scans.gradle.com/s/w2c3bxsii2svc
Gradle 7.4: https://scans.gradle.com/s/h5oavin4fg46w

@marcphilipp I was able to reproduce it. Is this expected?

The Problem is that Gradle uses a PostDiscoveryFilter to filter the outcome of test discovery and parameterized test invocations are only later generated dynamically when tests are executed. We recently added IterationSelector to support this use case in JUnit (see https://github.com/junit-team/junit5/issues/2738) but it's not released, yet. Once it's released, the logic in Gradle would need to be changed to use selectors rather than filtering to select tests.

The Problem is that Gradle uses a PostDiscoveryFilter to filter the outcome of test discovery and parameterized test invocations are only later generated dynamically when tests are executed. We recently added IterationSelector to support this use case in JUnit (see junit-team/junit5#2738) but it's not released, yet. Once it's released, the logic in Gradle would need to be changed to use selectors rather than filtering to select tests.

Now version 5.9.0-M1 supports IterationSelector

@gradle/bt-support Is this something you could include in your priorities for the next release?

Thank you for providing a valid reproducer.
The issue is in the backlog of the relevant team but this area of Gradle is currently not a focus one so it might take a while before a fix is made.

@marcphilipp we'll see if the support or jvm team has time to look into this but it would not be before 8.1

I encoutered this bug too. You need remove useJUnitPlatform() from build.gradle to use parametrized test filter correctly :D

I encountered this bug too. You need remove useJUnitPlatform() from build.gradle to use parametrized test filter correctly :D

@svher - what do you replace useJUnitPlatform() with? I am trying to figure out how to remove that from my builds as well.
Since getting the deprecation notice which links to https://docs.gradle.org/8.2/userguide/upgrading_version_8.html#test_framework_implementation_dependencies , I am trying to replace useJUnitPlatform with testRuntimeOnly('org.junit.platform:junit-platform-launcher'). After all, only one should be necessary, right?

It would be nice to see this issue resolved. Many people are using JUnit5 and parameterized tests and be able to use the native gradle test filters would be great. Adding system properties in every project that I am working on in order to filter parameterized tests is cumbersome and not user friendly.
In the meantime, maybe it is worth enriching the respective page in
the [user guide|https://docs.gradle.org/current/userguide/java_testing.html#test_filtering] and mention this gradle/JUnit limitation.

@eskatos Do you have a pot for collecting money to get this implemented? If all readers of this issue donated 10 to 50€, maybe, you get enough money to get this done?

Hi,
I am using TestNG to run data driven parameterized tests. It would be nice if Gradle could allow selection of specic invocation from the datadriven test so only the test that got failed in datadriven test is retried instead of the entire datadriven test with all the paramters.
Unfortunately gradle-retry-plugin cannot resolve this issue alone, as first Gradle needs to allow running single iteration. See Retrying TestNG Datadriven tests run whole test again instead of only running failed invocation
Gradle version 8.8
TestNG version 7.10.2


Sequential reading of JSON arrays

I have an application that logs events as an array of JSON objects. The objects are written one by one to some network stream. I would like to process them when they arrive, not after the application has closed and the array is complete.
So, I would like to have (or be able to write) a class with an interface like this:
class SeqJsonReader {
public:
void append(std::string const &str);
void append(char const *str);
void append(char const *begin, char const *end);
bool has_value() const;
nlohmann::json next_value();
bool at_end() const; // true if closing ']' of array is processed.
};
Usage could be like this:
bool reader_loop(vector const &msgs)
{
SeqJsonReader reader;
auto cur = msgs.begin();
while (!reader.at_end() && cur!=msgs.end()) {
try {
reader.append(*cur++);
while (reader.has_value()) {
nlohmann::json val = reader.next_value();
// do something with val
}
} catch (...) {
return false;
}
}
return true;
}
int main()
{
vector msgs;
msgs.push_back(R"([{"product":"apple","amount":"512","unit":"gram"})");
msgs.push_back(R"(,{"product":"pear")");
msgs.push_back(R"(},42,{"product":"orange","amount":"402","unit":"gram"}])");
reader_loop(msgs);
}
In practice the strings (msgs) would come from a recv call of a socket or something like that.
Am I right that currently this is hard to implement? It seems that I can't parse partial JSON input.

Are you able to change the format at all?  Could you write as individual objects instead of an array?  Essentially JSON Lines http://jsonlines.org/
I'm pretty sure that the latest version can handle this using some of the istream methods.

@gregmarr I'm really sorry to bother you, I have a question about json array of string, it doesn't have a key, how can I detect the value in the array ? Following is my solution
json j = { 1, 2, 3, 4, 5 };
for (auto &e : j)
{
  if (e == 2)
  {
    // json array contains 2
    std::cout << "Found 2" << std::endl;
    // do something
  }
}

Does their has any function like this ?
json j = { 1,  2, 3, 4, 5 };
if (j.contains(2))
{
  // do something
}

@pingsoli You can use std::find (http://en.cppreference.com/w/cpp/algorithm/find), just like you would for a std::vector.

@nlohmann I appreciate your reply, thank you very much. Your reply is really fast, thanks for your replay again. Have a good day.      : )

Greeg, thank you for your suggestion. I'll see if I can convince upstream to change the format.

You could try to use a callback function which you can pass to the parse function, see https://nlohmann.github.io/json/classnlohmann_1_1basic__json_aecae491e175f8767c550ae3c59e180e3.html#aecae491e175f8767c550ae3c59e180e3:
#include <iostream>
#include "json.hpp"

using json = nlohmann::json;

int main(int argc, char* argv[]) {
    json x = {1,2,3,4,5,6,7,8,9};
    std::string s = x.dump();

    json::parser_callback_t cb = [](int depth, json::parse_event_t event, json & parsed)
    {
        if (event == json::parse_event_t::value)
        {
            std::cout << parsed << std::endl;
            return false;
        }
        else
        {
            return true;
        }
    };

    json y = json::parse(s, cb);

    std::cout << y << std::endl;
}

The example shows how to process values individually (here: print to std::cout) and not store them (hence returning false). As a result, the last line returns null, because no value has been created with the parse call. The signature and the approach is different from the one you proposed, but I think you can build on it.

Can I close this issue?

Is there any way to do the callback-based parsing while reading from an ifstream incrementally?

I am afraid this is not possible in the moment. There is a private API, but it is not exposed publicly so far.


Cannot run the exe file

Hi,
I am trying to run the exe file but it just keeps showing me this message (as attached). Could you give some hand please ?
Thanks
Ihshan

Get vc_redist.x64.exe from here: https://support.microsoft.com/en-gb/help/2977003/the-latest-supported-visual-c-downloads

Thanks a lot


Mellanox hardware-accelerated collectives cause crash when using >= 64 nodes/IB cards

Reported upstream here: https://github.com/openucx/ucx/issues/7391
Workaround: disable multicast when using hcoll by adding -x HCOLL_ENABLE_MCAST=0 to the mpirun flags.

This is probably not getting fixed in HCOLL. Use the UCC collectives library instead, which is supported starting in OpenMPI 4.1.4.


Fixed list corruption when quickly swipe dismissing the same item twice

This should take care of both cases. See https://github.com/brnunes/SwipeableRecyclerView/pull/2.

Awesome! Thanks again.


Static CREATE Table Definitions

Right now json inference is used for loading.
Users should be able to specify static create table definitions to ensure all structure and types of their input data.
This should be a configuration on the pipeline, input where the input schema is specified. Each message should be inserted against this schema to verify the structure.

Configuration should support either memory definition or disk definition.
Benchmarks should be performed on each.


Not checking the 'dead' entity flag while iterating over entities.

As far as I understand, dead entities are only filtered before calling the drawing/rendering functions. While iterating over entities we don't seem to be skipping those with their ->dead[i] flag set. I am not sure if that's correct though.
In the function src/game/game.c/mainGame we call simWorld, which checks for collisions between player bullets and enemies (i.e it sets the ->dead[i] flag), later 'mainGame' also calls simPlayer which checks for collisions between the player and the enemies using the checkPlayerCollision function. But the checkPlayerCollision function doesn't skip "dead" enemies, which makes it possible for "dead" enemies to collide with the player.

Hi! Thanks for looking into this, and sorry for the late reply. This is intentional. Essentially the way of thinking about the batch updates is that entities are considered “alive” for the entirety of the step they’re being processed in. They aren’t really dead until they’re filtered out of the entity array at the end of the step. The dead flag can be thought of as willBeDeadOnNextStep. If I allowed entities to die mid-step, there would be an order-dependence on the collision tests, i.e. checking player/enemy collisions first vs. bullet/enemy collisions first would result in different behavior.


Upgrade to haskell-lsp-0.22

Thanks, looks good and won't cause conflicts with anything else in flight.


Event Without Tickets Do not Show View Event Button

This was initially asked in Slack at, https://opencollective.slack.com/archives/GFH4N961L/p1643878367803659
We currently do not show the View Event button on Event Cards both on the collective page (ex: https://opencollective.com/foundation) and on the events page (ex: https://opencollective.com/foundation/events) when the even the event do not have tickets or when the event is passed.
The relevant code is at,
https://github.com/opencollective/opencollective-frontend/blob/ab3deb8b84e20203c57e92533d9a92a15626b480/components/contribute-cards/ContributeEvent.js#L32
and,
https://github.com/opencollective/opencollective-frontend/blob/0e19edff2e94d2b7c4603e6e6a639483e36eb89a/lib/events.js#L21-L23
This creates a problem whereby if an event do not have tickets but it is a current event then the View Event button isn't shown leading to confusion on the part of the user. I suggest that the View Event button should be shown always when the event is not passed irrespective of whether the event has tickets or not. 🤔

Hiding the button was part of the initial design for past events (you'd need to click the title to access them). Looking at https://github.com/opencollective/opencollective/issues/3262#issuecomment-1009589502, it seems that we've moved away from this pattern. So we should indeed always display this button, regardless of whether the event is passed or has no tickets.

Hiding the button was part of the initial design for past events (you'd need to click the title to access them). Looking at #3262 (comment), it seems that we've moved away from this pattern. So we should indeed always display this button, regardless of whether the event is passed or has no tickets.

Thanks. I've updated the PR, showing the View Event button for all events regardless whether they are passed or has no tickets.


Drag tab will cause freeze

vscode: 1.55.0 x64 (system setup), actually it happed long time, not only this version
commit: c185983a683d14c396952dd432459097bc7f757f
date: 2021-03-30T16:01:55.261Z
Electron: 11.3.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: <IP_ADDRESS>-electron.0
OS: Windows_NT x64 6.1.7601 (Windows server 2008 R2 sp1)
--disable-gpu not work.

/gifPlease

Can you see if it still reproduces when disabling the GPU support in VSCode? You can do that by running VSCode from the command line like this: code --disable-gpu
If that helps, you can permanently configure this option via:

Command Palette search for "Configure Runtime Arguments"
Set disable-hardware-acceleration: true
Restart

not work

Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: https://code.visualstudio.com/insiders/

Sorry i'm late, insider build still same issue.


update http to https website links

Q
A

Is bugfix?
❌

New feature?
✔

Breaks BC?
❌

Tests pass?
❌

Fixed issues
https://github.com/yiisoft/yii2/issues/18765

👍🏻